风险值班管理-密码修改

This commit is contained in:
cwchen 2024-09-20 13:48:44 +08:00
parent 6c7d75a635
commit 5a512ab42b
4 changed files with 39 additions and 13 deletions

View File

@ -176,7 +176,7 @@ export default {
if (this.$refs.pwdVerifiersDialog) {
this.$refs.pwdVerifiersDialog.resetForm();
}
this.commitUpdateData();
this.planEditMode = true
})
},
@ -188,7 +188,7 @@ export default {
//
handleSave() {
if (this.currentTime) {
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
this.commitUpdateData();
}
},
commitUpdateData() {
@ -221,7 +221,8 @@ export default {
},
//
handleEdit(val) {
this.planEditMode = true
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
},
//
getList() {

View File

@ -127,6 +127,7 @@ export default {
components: { FileTable, Pagination,modulDialog },
data() {
return {
checkRow:{},
componentDialog: {
modulName: '', //
title: '',
@ -184,7 +185,7 @@ export default {
if (this.$refs.pwdVerifiersDialog) {
this.$refs.pwdVerifiersDialog.resetForm();
}
this.commitUpdateData();
this.isOpenEditDialog();
})
},
@ -235,6 +236,12 @@ export default {
},
//
handleUpdate(row) {
this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
},
isOpenEditDialog(){
let row = this.checkRow;
this.temp = Object.assign({}, row)
this.fileList = row.sourceIds.map(item => {
const { fileName, fileId, id } = item
@ -250,7 +257,7 @@ export default {
updateData() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
this.commitUpdateData();
}
})
},
@ -271,6 +278,7 @@ export default {
type: 'success',
duration: 2000
})
this.checkRow = {};
this.getList()
this.dialogFormVisible = false
}).finally(() => {

View File

@ -109,6 +109,7 @@ export default {
components: { Pagination,modulDialog },
data() {
return {
checkRow:{},
componentDialog: {
modulName: '', //
title: '',
@ -146,10 +147,11 @@ export default {
phoneFormatter(row, column, cellValue, index){
if(row.emergencySource){ console.log(1111)
// console.log(row.emergencySource)
// let en= decryptData(row.emergencySource);
// let phone =en.replace(/\/g, '');
// const formatPhone = desensitize(phone,'phone');
return row.emergencySource;
let en= decryptData(row.emergencySource);
let phone =en.replace(/\/g, '');
const formatPhone = desensitize(phone,'phone');
// return row.emergencySource;
return formatPhone;
}else{
return '';
}
@ -173,7 +175,7 @@ export default {
if (this.$refs.pwdVerifiersDialog) {
this.$refs.pwdVerifiersDialog.resetForm();
}
this.commitUpdateData();
this.isOpenEditDialog();
})
},
@ -217,6 +219,12 @@ export default {
},
//
handleUpdate(row) {
this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
},
isOpenEditDialog(){
let row = this.checkRow;
this.temp = Object.assign({}, row)
if(row.emergencySource){
let emergencySource = decryptData(row.emergencySource).replace(/\/g, '');
@ -229,7 +237,7 @@ export default {
updateData() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
this.commitUpdateData();
}
})
},
@ -245,6 +253,7 @@ export default {
type: 'success',
duration: 2000
})
this.checkRow = {};
this.getList()
this.dialogFormVisible = false
}).finally(() => {

View File

@ -127,6 +127,7 @@ export default {
components: { FileTable, Pagination,modulDialog },
data() {
return {
checkRow:{},
componentDialog: {
modulName: '', //
title: '',
@ -185,7 +186,7 @@ export default {
if (this.$refs.pwdVerifiersDialog) {
this.$refs.pwdVerifiersDialog.resetForm();
}
this.commitUpdateData();
this.isOpenEditDialog();
})
},
@ -236,6 +237,12 @@ export default {
},
//
handleUpdate(row) {
this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
},
isOpenEditDialog(){
let row = this.checkRow;
this.temp = Object.assign({}, row)
this.fileList = row.sourceIds.map(item => {
const { fileName, fileId, id } = item
@ -251,7 +258,7 @@ export default {
updateData() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
this.commitUpdateData();
}
})
},
@ -272,6 +279,7 @@ export default {
type: 'success',
duration: 2000
})
this.checkRow = {};
this.getList()
this.dialogFormVisible = false
}).finally(() => {