diff --git a/ah-jjzhgd-web/src/views/basic/area/index.vue b/ah-jjzhgd-web/src/views/basic/area/index.vue index a9ea240..6460d2e 100644 --- a/ah-jjzhgd-web/src/views/basic/area/index.vue +++ b/ah-jjzhgd-web/src/views/basic/area/index.vue @@ -146,6 +146,7 @@ export default { components: { GtSelect, ProjectSelect, Pagination,modulDialog }, data() { return { + checkRow:{}, componentDialog: { modulName: '', //组件名称 title: '', @@ -204,7 +205,7 @@ export default { if (this.$refs.pwdVerifiersDialog) { this.$refs.pwdVerifiersDialog.resetForm(); } - this.commitUpdateData(); + this.isOpenEditDialog(); }) }, @@ -259,6 +260,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.temp.areaType = Number(this.temp.areaType) this.dialogStatus = 'update' @@ -267,7 +274,7 @@ export default { updateData() { this.$refs['dataForm'].validate((valid) => { if (valid) { - this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) + this.commitUpdateData(); } }) }, @@ -279,6 +286,7 @@ export default { type: 'success', duration: 2000 }) + this.checkRow = {}; this.getList() this.dialogFormVisible = false }).finally(() => { diff --git a/ah-jjzhgd-web/src/views/basic/pm/index.vue b/ah-jjzhgd-web/src/views/basic/pm/index.vue index 6bac8a2..a0f7939 100644 --- a/ah-jjzhgd-web/src/views/basic/pm/index.vue +++ b/ah-jjzhgd-web/src/views/basic/pm/index.vue @@ -145,6 +145,7 @@ export default { components: { BuildSelect, Pagination, modulDialog }, data() { return { + checkRow:{}, componentDialog: { modulName: '', //组件名称 title: '', @@ -211,7 +212,7 @@ export default { if (this.$refs.pwdVerifiersDialog) { this.$refs.pwdVerifiersDialog.resetForm(); } - this.commitUpdateData(); + this.isOpenEditDialog(); }) }, @@ -272,6 +273,12 @@ export default { }, // 编辑 handleUpdate(row) { + this.checkRow = _.cloneDeep(row); + this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) + + }, + isOpenEditDialog(){ + let row = this.checkRow; getPMItemDetail({ id: row.id }).then(res => { this.temp = Object.assign({}, res.data) }) @@ -281,7 +288,7 @@ export default { updateData() { this.$refs['dataForm'].validate((valid) => { if (valid) { - this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) + this.commitUpdateData(); } }) }, @@ -293,6 +300,7 @@ export default { type: 'success', duration: 2000 }) + this.checkRow = {}; this.getList() this.dialogFormVisible = false }) diff --git a/ah-jjzhgd-web/src/views/basic/progressCorrection/index.vue b/ah-jjzhgd-web/src/views/basic/progressCorrection/index.vue index b91548c..d466941 100644 --- a/ah-jjzhgd-web/src/views/basic/progressCorrection/index.vue +++ b/ah-jjzhgd-web/src/views/basic/progressCorrection/index.vue @@ -129,6 +129,7 @@ export default { directives: { waves }, data() { return { + checkRow:{}, componentDialog: { modulName: '', //组件名称 title: '', @@ -196,7 +197,7 @@ export default { if (this.$refs.pwdVerifiersDialog) { this.$refs.pwdVerifiersDialog.resetForm(); } - this.commitUpdateData(); + this.isOpenEditDialog(); }) }, @@ -225,6 +226,12 @@ export default { }, async handleUpdate(row) { + this.checkRow = _.cloneDeep(row); + this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) + + }, + async isOpenEditDialog(){ + let row = this.checkRow; await getProcessItemDetail({ planId: row.planId, bidCode: row.bidCode }).then((res) => { // this.$set(this.processType,res.data.proType) // this.$set(this.bidCode,res.data.bidCode) @@ -255,7 +262,7 @@ export default { updateData() { this.$refs['dataForm'].validate((valid) => { if (valid) { - this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) + this.commitUpdateData(); } }) }, @@ -267,6 +274,7 @@ export default { type: 'success', duration: 2000 }) + this.checkRow = {}; this.getList() this.dialogFormVisible = false }).finally(() => { diff --git a/ah-jjzhgd-web/src/views/basic/project/index.vue b/ah-jjzhgd-web/src/views/basic/project/index.vue index cdaa286..71fb956 100644 --- a/ah-jjzhgd-web/src/views/basic/project/index.vue +++ b/ah-jjzhgd-web/src/views/basic/project/index.vue @@ -421,6 +421,7 @@ export default { directives: { waves }, data() { return { + checkRow:{}, componentDialog: { modulName: '', //组件名称 title: '', @@ -514,7 +515,7 @@ export default { if (this.$refs.pwdVerifiersDialog) { this.$refs.pwdVerifiersDialog.resetForm(); } - this.commitUpdateData(); + this.isOpenEditDialog(); }) }, @@ -615,6 +616,12 @@ export default { }, // 编辑工程 handleUpdate(row) { + this.checkRow = _.cloneDeep(row); + this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) + + }, + isOpenEditDialog(){ + let row = this.checkRow; getProjectItemDetail({ proId: row.proId }).then((res) => { this.temp = Object.assign({}, res.data) const { fileData } = res.data @@ -648,7 +655,7 @@ export default { updateData() { this.$refs['dataForm'].validate((valid) => { if (valid) { - this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) + this.commitUpdateData(); } }) }, @@ -715,6 +722,7 @@ export default { duration: 2000 }) this.dialogFormVisible = false + this.checkRow = {}; this.getList() }).finally(() => { // this.dialogFormVisible = false diff --git a/ah-jjzhgd-web/src/views/basic/quality/index.vue b/ah-jjzhgd-web/src/views/basic/quality/index.vue index 81fb0d2..c5f7228 100644 --- a/ah-jjzhgd-web/src/views/basic/quality/index.vue +++ b/ah-jjzhgd-web/src/views/basic/quality/index.vue @@ -149,6 +149,7 @@ export default { components: { Pagination,modulDialog }, data() { return { + checkRow:{}, componentDialog: { modulName: '', //组件名称 title: '', @@ -221,7 +222,7 @@ export default { if (this.$refs.pwdVerifiersDialog) { this.$refs.pwdVerifiersDialog.resetForm(); } - this.commitUpdateData(); + this.isOpenEditDialog(); }) }, @@ -284,6 +285,12 @@ export default { }, // 编辑 handleUpdate(row) { + this.checkRow = _.cloneDeep(row); + this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) + + }, + isOpenEditDialog(){ + let row = this.checkRow; getQualityItemDetail({ evalId: row.evalId }).then((res) => { const { score } = res.data this.temp = Object.assign({}, res.data) @@ -301,7 +308,7 @@ export default { updateData() { this.$refs['dataForm'].validate((valid) => { if (valid) { - this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) + this.commitUpdateData(); } }) }, @@ -313,6 +320,7 @@ export default { type: 'success', duration: 2000 }) + this.checkRow = {}; this.getList() this.dialogFormVisible = false }).finally(() => { diff --git a/ah-jjzhgd-web/src/views/basic/single/index.vue b/ah-jjzhgd-web/src/views/basic/single/index.vue index 55eb4b0..e079b5a 100644 --- a/ah-jjzhgd-web/src/views/basic/single/index.vue +++ b/ah-jjzhgd-web/src/views/basic/single/index.vue @@ -205,6 +205,7 @@ export default { components: { ProjectNoSelect, BuildSelect, Pagination,modulDialog }, data() { return { + checkRow:{}, componentDialog: { modulName: '', //组件名称 title: '', @@ -302,7 +303,7 @@ export default { if (this.$refs.pwdVerifiersDialog) { this.$refs.pwdVerifiersDialog.resetForm(); } - this.commitUpdateData(); + this.isOpenEditDialog(); }) }, @@ -365,6 +366,12 @@ export default { }, // 编辑 handleUpdate(row) { + this.checkRow = _.cloneDeep(row); + this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) + + }, + isOpenEditDialog(){ + let row = this.checkRow; getSingleItemDetail({ id: row.id }).then(res => { this.temp = Object.assign({}, res.data) this.temp.proType = parseInt(res.data.proType) @@ -376,7 +383,7 @@ export default { updateData() { this.$refs['dataForm'].validate((valid) => { if (valid) { - this.openModulDialog('验证密码', 'pwdVerifiers', '600px', true) + this.commitUpdateData(); } }) }, @@ -388,6 +395,7 @@ export default { type: 'success', duration: 2000 }) + this.checkRow = {}; this.getList() this.dialogFormVisible = false }).finally(() => {