diff --git a/ah-jjzhgd-web/src/views/man-car/car/index.vue b/ah-jjzhgd-web/src/views/man-car/car/index.vue index 5a65ca7..c5fd231 100644 --- a/ah-jjzhgd-web/src/views/man-car/car/index.vue +++ b/ah-jjzhgd-web/src/views/man-car/car/index.vue @@ -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(() => { diff --git a/ah-jjzhgd-web/src/views/man-car/staff/index.vue b/ah-jjzhgd-web/src/views/man-car/staff/index.vue index af10bdd..d91702a 100644 --- a/ah-jjzhgd-web/src/views/man-car/staff/index.vue +++ b/ah-jjzhgd-web/src/views/man-car/staff/index.vue @@ -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(() => { diff --git a/ah-jjzhgd-web/src/views/man-car/team/index.vue b/ah-jjzhgd-web/src/views/man-car/team/index.vue index 157372d..037d683 100644 --- a/ah-jjzhgd-web/src/views/man-car/team/index.vue +++ b/ah-jjzhgd-web/src/views/man-car/team/index.vue @@ -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() }