|
|
@ -1,8 +1,17 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="epidemic-form"> |
|
|
<div class="epidemic-form"> |
|
|
<div class="dialog-h-content scroll-h"> |
|
|
<div class="dialog-h-content scroll-h"> |
|
|
|
|
|
|
|
|
|
|
|
<div v-if="view_real_data" |
|
|
|
|
|
class="div_tuomin"> |
|
|
|
|
|
<el-button size="mini" |
|
|
|
|
|
class="diy-button--search" |
|
|
|
|
|
@click="handleTuomin">显示脱敏信息</el-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<div v-if="initLoading" |
|
|
<div v-if="initLoading" |
|
|
class="m-row"> |
|
|
class="m-row" |
|
|
|
|
|
style="margin-top:40px"> |
|
|
<div class="div_table"> |
|
|
<div class="div_table"> |
|
|
|
|
|
|
|
|
<el-table class="table" |
|
|
<el-table class="table" |
|
|
@ -98,10 +107,10 @@ export default { |
|
|
pageSize: 20, |
|
|
pageSize: 20, |
|
|
pageNo: 0, |
|
|
pageNo: 0, |
|
|
tableLoading: false, |
|
|
tableLoading: false, |
|
|
|
|
|
tableData: [], |
|
|
|
|
|
|
|
|
registerId: '', |
|
|
registerId: '', |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
components: {}, |
|
|
components: {}, |
|
|
@ -122,13 +131,12 @@ export default { |
|
|
this.initLoading = true |
|
|
this.initLoading = true |
|
|
this.endLoading() |
|
|
this.endLoading() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
async loadTable () { |
|
|
async loadTable () { |
|
|
this.tableLoading = true |
|
|
this.tableLoading = true |
|
|
|
|
|
|
|
|
const url = "/gov/org/icEmployeeRegister/list" |
|
|
const url = "/gov/org/icEmployeeRegister/detailList" |
|
|
// const url = "http://yapi.elinkservice.cn/mock/245/epmetuser/icNat/natlist" |
|
|
// const url = "http://yapi.elinkservice.cn/mock/245/epmetuser/icNat/natlist" |
|
|
let params = { |
|
|
let params = { |
|
|
pageSize: this.pageSize, |
|
|
pageSize: this.pageSize, |
|
|
@ -152,12 +160,42 @@ export default { |
|
|
} |
|
|
} |
|
|
this.tableLoading = false |
|
|
this.tableLoading = false |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
async handleTuomin () { |
|
|
|
|
|
const url = "/data/aggregator/epmetuser/detailByType"; |
|
|
|
|
|
|
|
|
|
|
|
const { data, code, msg } = await requestPost(url, { |
|
|
|
|
|
id: this.registerId, |
|
|
|
|
|
type: "employeeEpidemicManageDetail", |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
if (code === 0) { |
|
|
|
|
|
this.tableData.forEach(element => { |
|
|
|
|
|
element.mobile = data.mobile |
|
|
|
|
|
element.idCard = data.idCard |
|
|
|
|
|
// this.$set(this.formData, 'showMobile', data.mobile) |
|
|
|
|
|
// this.$set(this.formData, 'showIdCard', data.idCard) |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
this.$message.error(msg); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
handleCancle () { |
|
|
handleCancle () { |
|
|
// this.resetData() |
|
|
// this.resetData() |
|
|
this.$emit('dialogCancle') |
|
|
this.$emit('dialogCancle') |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
handleSizeChange (val) { |
|
|
|
|
|
this.pageSize = val |
|
|
|
|
|
this.pageNo = 1 |
|
|
|
|
|
this.loadTable() |
|
|
|
|
|
}, |
|
|
|
|
|
handleCurrentChange (val) { |
|
|
|
|
|
this.pageNo = val |
|
|
|
|
|
this.loadTable() |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
resetData () { |
|
|
resetData () { |
|
|
|
|
|
|
|
|
@ -190,10 +228,10 @@ export default { |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
props: { |
|
|
props: { |
|
|
// serviceList: { |
|
|
view_real_data: {//显示【显示脱敏信息】按钮 |
|
|
// type: Array, |
|
|
type: Boolean, |
|
|
// default: [] |
|
|
default: true, |
|
|
// }, |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
@ -201,6 +239,13 @@ export default { |
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped> |
|
|
@import "@/assets/scss/modules/management/detail-main.scss"; |
|
|
@import "@/assets/scss/modules/management/detail-main.scss"; |
|
|
|
|
|
|
|
|
|
|
|
.div_tuomin { |
|
|
|
|
|
position: absolute; |
|
|
|
|
|
top: 0; |
|
|
|
|
|
right: 70px; |
|
|
|
|
|
z-index: 1000; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|