人车管理-密码修改

This commit is contained in:
cwchen 2024-09-20 13:35:42 +08:00
parent 8e26ac07cf
commit 6c7d75a635
3 changed files with 30 additions and 6 deletions

View File

@ -137,6 +137,7 @@ export default {
components: { ProjectSelect, Pagination, CarAccessRecordTable,modulDialog },
data() {
return {
checkRow:{},
componentDialog: {
modulName: '', //
title: '',
@ -213,7 +214,7 @@ export default {
if (this.$refs.pwdVerifiersDialog) {
this.$refs.pwdVerifiersDialog.resetForm();
}
this.commitUpdateData();
this.isOpenEditDialog();
})
},
@ -270,6 +271,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.phone){
let phone = decryptData(row.phone).replace(/\/g, '');
@ -290,7 +297,7 @@ export default {
updateData() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
this.commitUpdateData();
}
})
},
@ -309,6 +316,7 @@ export default {
type: 'success',
duration: 2000
})
this.checkRow = {};
this.getList()
this.dialogFormVisible = false
}).finally(() => {

View File

@ -258,6 +258,7 @@ export default {
components: { HelmetSelect, ProfessionSelect, TeamSelect, ProjectSelect, Pagination, AccessRecordTable,modulDialog },
data() {
return {
checkRow:{},
componentDialog: {
modulName: '', //
title: '',
@ -337,7 +338,7 @@ export default {
if (this.$refs.pwdVerifiersDialog) {
this.$refs.pwdVerifiersDialog.resetForm();
}
this.commitUpdateData();
this.isOpenEditDialog();
})
},
@ -446,6 +447,12 @@ export default {
},
//
handleUpdate(row) {
this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
},
isOpenEditDialog(){
let row = this.checkRow;
getTeamStaffDetail({ id: row.userId }).then((res) => {
this.temp = Object.assign({}, res.data)
if(res.data.idNumber){
@ -478,7 +485,7 @@ export default {
updateData() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
this.commitUpdateData();
}
})
},
@ -505,6 +512,7 @@ export default {
type: 'success',
duration: 2000
})
this.checkRow = {};
this.getList()
this.dialogFormVisible = false
}).finally(() => {

View File

@ -158,6 +158,7 @@ export default {
directives: { waves },
data() {
return {
checkRow:{},
componentDialog: {
modulName: '', //
title: '',
@ -222,7 +223,7 @@ export default {
if (this.$refs.pwdVerifiersDialog) {
this.$refs.pwdVerifiersDialog.resetForm();
}
this.commitUpdateData();
this.isOpenEditDialog();
})
},
@ -281,6 +282,12 @@ export default {
},
//
handleUpdate(row) {
this.checkRow = _.cloneDeep(row);
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
},
isOpenEditDialog(){
let row = this.checkRow;
getTeamItemDetail({ id: row.teamId }).then((res) => {
this.temp = Object.assign({}, res.data)
if(res.data.idNumber){
@ -300,7 +307,7 @@ export default {
updateData() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true)
this.commitUpdateData();
}
})
},
@ -321,6 +328,7 @@ export default {
type: 'success',
duration: 2000
})
this.checkRow = {};
this.dialogFormVisible = false
this.getList()
}