| | |
| | | <el-button type="warning" size="small" plain icon="el-icon-download" @click="handleExport">导出 |
| | | </el-button> |
| | | </template> |
| | | |
| | | <template slot-scope="{row, size}" slot="phoneNumber"> |
| | | <el-button :size="size" type="text" @click="showStringDispose(row, 'phoneNumberflag')" |
| | | v-text="textDispose(row, 'phoneNumberflag', 'phoneNumber')"> |
| | | </el-button> |
| | | </template> |
| | | <template slot-scope="{row, size}" slot="transactionObjectTel"> |
| | | <el-button :size="size" type="text" @click="showStringDispose(row, 'transactionObjectTelflag')" |
| | | v-text="textDispose(row, 'transactionObjectTelflag', 'transactionObjectTel')"> |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | |
| | | |
| | |
| | | validator: validatorPhone, |
| | | trigger: 'blur' |
| | | }], |
| | | align: 'center' |
| | | align: 'center', |
| | | slot: true, |
| | | }, |
| | | { |
| | | width: 110, |
| | |
| | | search: true, |
| | | align: 'center', |
| | | labelWidth: 110, |
| | | slot: true |
| | | }, |
| | | { |
| | | width: 110, |
| | |
| | | |
| | | return tags |
| | | } |
| | | }, |
| | | |
| | | textDispose () { |
| | | return (row, flag, type) => { |
| | | if (row[flag] || row[type] == null) { |
| | | return row[type] |
| | | } else { |
| | | if (type == 'principalIdCard') { |
| | | return row[type].replace(/^(.{6})(?:\d+)(.{4})$/, "$1******$2") |
| | | } else { |
| | | return row[type].replace(/^(.{3})(?:\d+)(.{4})$/, "$1****$2") |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | showStringDispose (row, type) { |
| | | row[type] = !row[type] |
| | | }, |
| | | |
| | | // 弹窗关闭回调 |
| | | handleClose () { |
| | | this.cancelAudit() |
| | |
| | | this.page.total = data.total |
| | | this.data = data.records |
| | | this.data.forEach(item => { |
| | | this.$set(item, 'phoneNumberflag', false) |
| | | this.$set(item, 'transactionObjectTelflag', false) |
| | | if (item.imageUrls && item.imageUrls != '' && item.imageUrls != null && item.imageUrls.length) { |
| | | var urls = [] |
| | | var names = item.imageUrls.split(",").filter(item => item != '') |