Browse Source

脱敏

V1.0
mk 3 years ago
parent
commit
26326f282d
  1. 2
      src/views/modules/base/community/communityForm.vue
  2. 15
      src/views/modules/base/community/roomDetail.vue

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

@ -267,8 +267,10 @@ export default {
let { latitude, longitude } = this.$store.state.user;
this.formType = type
if (row) {
console.log(row);
this.dataForm = JSON.parse(JSON.stringify(row))
this.dataForm.neighborHoodId = this.dataForm.id
this.dataForm.propertyId = this.dataForm.propertyList[0].id
this.neighborHoodId = this.dataForm.neighborHoodId
this.quartersType = this.dataForm.quartersType

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

@ -161,26 +161,23 @@ export default {
},
async handleTuomin (type) {
const url = "/data/aggregator/epmetuser/detailByType";
const url = `/actual/base/communityHouse/getHouseInfoById/${this.houseId}`;
const { data, code, msg } = await requestPost(url, {
id: this.houseId,
type: "checkHouse",
});
const { data, code, msg } = await requestPost(url);
if (code === 0) {
if (type === "phone") {
this.$set(this.dataForm, "showOwnerPhone", data.mobile);
this.$set(this.dataForm, "showOwnerPhone", data.showOwnerPhone);
this.showFlagMobileBtn = !this.showFlagMobileBtn
if(this.showFlagMobileBtn){
this.$set(this.dataForm, 'showOwnerPhone', data.mobile.substr(0,3) +'****'+ data.mobile.substr(7,4) )
this.$set(this.dataForm, 'showOwnerPhone', data.showOwnerPhone.substr(0,3) +'****'+ data.showOwnerPhone.substr(7,4) )
}
}
if (type === "idcard") {
this.$set(this.dataForm, "showOwnerIdCard", data.idCard);
this.$set(this.dataForm, "showOwnerIdCard", data.showOwnerIdCard);
this.showFlagIdCardBtn = !this.showFlagIdCardBtn
if(this.showFlagIdCardBtn){
this.$set(this.dataForm, 'showOwnerIdCard', data.idCard.substr(0,11) +'****'+ data.idCard.substr(16,2) )
this.$set(this.dataForm, 'showOwnerIdCard', data.showOwnerIdCard.substr(0,11) +'****'+ data.showOwnerIdCard.substr(16,2) )
}
}
} else {

Loading…
Cancel
Save