Browse Source

bug#383按钮样式,房屋管理地图加载失败问题

V1.0
mk 2 years ago
parent
commit
bd4da68f9f
  1. 2
      src/App.vue
  2. 6
      src/assets/scss/modules/management/detail-main.scss
  3. 2
      src/assets/scss/modules/management/edit-main.scss
  4. 10
      src/views/modules/base/community/buildForm.vue
  5. 3
      src/views/modules/base/community/buildTable.vue
  6. 3
      src/views/modules/base/community/community.vue
  7. 11
      src/views/modules/base/community/communityForm.vue
  8. 4
      src/views/modules/base/community/communityTable.vue
  9. 23
      src/views/modules/base/community/roomDetail.vue
  10. 4
      src/views/modules/base/community/roomTable.vue

2
src/App.vue

@ -155,7 +155,7 @@ export default {
position: relative;
max-height: 83vh;
box-sizing: border-box;
padding: 0 0 16px !important;
padding: 0 0 16px ;
.dialog-h-content {
max-height: calc(83vh - 80px);
box-sizing: border-box;

6
src/assets/scss/modules/management/detail-main.scss

@ -104,11 +104,11 @@
.m-detail-btn{
margin-top:30px;
margin-right:16px;
// margin-bottom:20px;
display: flex;
justify-content: flex-end;
padding-right: 16px;
height: 50px;
align-items: center;
.item_btn {
font-size: 14px;

2
src/assets/scss/modules/management/edit-main.scss

@ -43,6 +43,8 @@
display: flex;
justify-content: flex-end;
padding-right: 16px;
height: 50px;
align-items: center;
}
//取消按钮
::v-deep .el-button--default {

10
src/views/modules/base/community/buildForm.vue

@ -163,10 +163,16 @@ export default {
this.dataForm.longitude = longitude
}
this.$nextTick(() => {
this.initMap(this.dataForm.latitude||latitude, this.dataForm.longitude||longitude);
const latitudeParam = this.dataForm.latitude !== undefined && this.dataForm.latitude != 0
? this.dataForm.latitude
: latitude;
const longitudeParam = this.dataForm.longitude !== undefined && this.dataForm.longitude != 0
? this.dataForm.longitude
: longitude;
this.initMap(latitudeParam, longitudeParam);
})
},
async handleComfirm() {
this.btnDisable = true
setTimeout(() => {

3
src/views/modules/base/community/buildTable.vue

@ -991,4 +991,7 @@ export default {
padding-left: 0px;
padding-right: 0px;
}
::v-deep .el-dialog__body{
padding: 0;
}
</style>

3
src/views/modules/base/community/community.vue

@ -1113,4 +1113,7 @@ export default {
// flex: 1;
width: calc(100% - 300px);
}
::v-deep .el-dialog__body{
padding: 0;
}
</style>

11
src/views/modules/base/community/communityForm.vue

@ -279,12 +279,12 @@ export default {
this.dataForm.latitude = latitude
this.dataForm.longitude = longitude
}
if (!map) {
// if (!map) {
this.initMap(this.dataForm.latitude, this.dataForm.longitude);
} else {
map.setCenter(this.dataForm.latitude, this.dataForm.longitude);
map.setMarker(this.dataForm.latitude, this.dataForm.longitude);
}
// } else {
// map.setCenter(this.dataForm.latitude, this.dataForm.longitude);
// map.setMarker(this.dataForm.latitude, this.dataForm.longitude);
// }
await this.loadAgency()
await this.loadGrid()
await this.loadProperty()
@ -294,7 +294,6 @@ export default {
},
// init
initMap (latitude, longitude) {
map = new daiMap(
document.getElementById("app_community"),
{ latitude, longitude },

4
src/views/modules/base/community/communityTable.vue

@ -1372,4 +1372,8 @@ export default {
.el-message.is-closable .el-message__content {
line-height: 20px;
}
::v-deep .el-dialog__body{
padding: 0;
}
</style>

23
src/views/modules/base/community/roomDetail.vue

@ -42,11 +42,11 @@
<div class="m-info-prop">
<span class="u-info-title u-info-title-80">联系电话</span>
<span class="info-mingan">{{
dataForm.showOwnerPhone ? dataForm.showOwnerPhone : "--"
dataForm.ownerPhone ? dataForm.ownerPhone : "--"
}}</span>
<img v-show="showFlagMobileBtn &&dataForm.showOwnerPhone" src="../../../../assets/img/yanjing1.png" alt="" style="margin-left: 10px">
<img v-show="showFlagMobileBtn &&dataForm.ownerPhone" src="../../../../assets/img/yanjing1.png" alt="" style="margin-left: 10px">
<img v-show="!showFlagMobileBtn" src="../../../../assets/img/yanjing2.png" alt="" style="margin-left: 10px">
<el-button v-if="view_real_data && dataForm.showOwnerPhone"
<el-button v-if="view_real_data && dataForm.ownerPhone"
type="text"
class="div-table-button--blue"
size="small"
@ -55,11 +55,11 @@
<div class="m-info-prop">
<span class="u-info-title u-info-title-80">证件号</span>
<span class="info-mingan">{{
dataForm.showOwnerIdCard ? dataForm.showOwnerIdCard : "--"
dataForm.ownerIdCard ? dataForm.ownerIdCard : "--"
}}</span>
<img v-show="showFlagIdCardBtn &&dataForm.showOwnerIdCard" src="../../../../assets/img/yanjing1.png" alt="" width="14px" style="margin-left: 10px">
<img v-show="showFlagIdCardBtn &&dataForm.ownerIdCard" src="../../../../assets/img/yanjing1.png" alt="" width="14px" style="margin-left: 10px">
<img v-show="!showFlagIdCardBtn" src="../../../../assets/img/yanjing2.png" alt="" width="14px" style="margin-left: 10px">
<el-button v-if="view_real_data && dataForm.showOwnerIdCard"
<el-button v-if="view_real_data && dataForm.ownerIdCard"
type="text"
class="div-table-button--blue"
size="small"
@ -161,23 +161,24 @@ export default {
},
async handleTuomin (type) {
const url = `/actual/base/communityHouse/getHouseInfoById/${this.houseId}`;
const url = `/actual/base/communityHouse/getClearHouseDeatilById/${this.houseId}`;
const { data, code, msg } = await requestPost(url);
if (code === 0) {
console.log(data);
if (type === "phone") {
this.$set(this.dataForm, "showOwnerPhone", data.showOwnerPhone);
this.$set(this.dataForm, "ownerPhone", data.ownerPhone);
this.showFlagMobileBtn = !this.showFlagMobileBtn
if(this.showFlagMobileBtn){
this.$set(this.dataForm, 'showOwnerPhone', data.showOwnerPhone.substr(0,3) +'****'+ data.showOwnerPhone.substr(7,4) )
this.$set(this.dataForm, 'ownerPhone', data.ownerPhone.substr(0,3) +'****'+ data.ownerPhone.substr(7,4) )
}
}
if (type === "idcard") {
this.$set(this.dataForm, "showOwnerIdCard", data.showOwnerIdCard);
this.$set(this.dataForm, "ownerIdCard", data.ownerIdCard);
this.showFlagIdCardBtn = !this.showFlagIdCardBtn
if(this.showFlagIdCardBtn){
this.$set(this.dataForm, 'showOwnerIdCard', data.showOwnerIdCard.substr(0,11) +'****'+ data.showOwnerIdCard.substr(16,2) )
this.$set(this.dataForm, 'ownerIdCard', data.ownerIdCard.substr(0,11) +'****'+ data.ownerIdCard.substr(16,2) )
}
}
} else {

4
src/views/modules/base/community/roomTable.vue

@ -1080,4 +1080,8 @@ export default {
padding-left: 0px;
padding-right: 0px;
}
::v-deep .el-dialog__body{
padding: 0;
}
</style>

Loading…
Cancel
Save