Browse Source

可视化脱敏

feature
jiangyy 3 years ago
parent
commit
6d9dd432ad
  1. 3
      src/views/modules/base/epidemic/travelPanshi/travelPanshi.vue
  2. 32
      src/views/modules/visual/communityGovern/zhongdianxingcheng/detail.vue

3
src/views/modules/base/epidemic/travelPanshi/travelPanshi.vue

@ -692,7 +692,8 @@ export default {
name: item.name,
mobile: item.realMobile,
idCard: item.realIdCard,
attentionType: 2
attentionType: 2,
isolatedState: item.isolateType
}
})
}

32
src/views/modules/visual/communityGovern/zhongdianxingcheng/detail.vue

@ -7,6 +7,12 @@
<span>详情</span>
</div>
<div class="div_tuomin">
<el-button size="mini"
class="diy-button--search"
@click="handleTuomin">显示脱敏信息</el-button>
</div>
<div class="btn-close"
@click="handleClose">
<img src="@/assets/img/shuju/people/close.png" />
@ -117,7 +123,22 @@ export default {
},
methods: {
async handleTuomin () {
const url = "/data/aggregator/epmetuser/detailByType";
const { data, code, msg } = await requestPost(url, {
id: this.detailId,
type: "routeFollow",
});
if (code === 0) {
this.$set(this.info, 'mobile', data.mobile)
this.$set(this.info, 'idCard', data.idCard)
} else {
this.$message.error(msg);
}
},
handleClose () {
this.$emit("close");
},
@ -161,3 +182,14 @@ export default {
src="@/assets/scss/modules/visual/issue-info.scss"
scoped
></style>
<style lang="scss" scoped>
.div_tuomin {
position: absolute;
top: 10px;
right: 60px;
z-index: 1000;
}
</style>

Loading…
Cancel
Save