From ebab2501fa485c8d62d90b67aabe6f6d81847636 Mon Sep 17 00:00:00 2001 From: jinlin <jinlin> Date: 星期三, 06 十二月 2023 16:12:05 +0800 Subject: [PATCH] 6 --- web/src/views/modules/testCheckOrder/TestCheckOrder-AddOrUpdate.vue | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/web/src/views/modules/testCheckOrder/TestCheckOrder-AddOrUpdate.vue b/web/src/views/modules/testCheckOrder/TestCheckOrder-AddOrUpdate.vue index 5c945e7..beb4740 100644 --- a/web/src/views/modules/testCheckOrder/TestCheckOrder-AddOrUpdate.vue +++ b/web/src/views/modules/testCheckOrder/TestCheckOrder-AddOrUpdate.vue @@ -116,9 +116,9 @@ export default { data() { return { - parentRow: null, + configDetailRow: null, subtitle: '', - pageName: {plan: '娴嬭瘯璁″垝', explain: '娴嬭瘯璇存槑', record: '娴嬭瘯璁板綍', report: '娴嬭瘯鎶ュ憡'}, + pageName: {plan: '杞欢娴嬭瘯璁″垝', explain: '杞欢娴嬭瘯璇存槑', record: '杞欢娴嬭瘯璁板綍', report: '杞欢娴嬭瘯鎶ュ憡'}, dataForm: { id: '', projectId: '', @@ -141,9 +141,10 @@ }, methods: { init(id, row) { - this.parentRow = row - console.log(id, row, '杞欢娴嬭瘯璁″垝妫�鏌ュ崟') - if (id) { + this.configDetailRow = row + if (row.checkId) { + this.dataForm.id = row.checkId + } else if (id) { this.dataForm.id = id } else { this.dataForm.id = row.id @@ -154,6 +155,7 @@ if (row.projectId) { this.dataForm.projectId = row.projectId } + console.log(id, row, this.subtitle, '杞欢娴嬭瘯璁″垝妫�鏌ュ崟') //this.dataForm.disabled this.getInfo() @@ -182,7 +184,7 @@ if (res.success) { await this.$tip.success() this.$refs.dialog.close() - this.$emit('recall', this.dataForm, this.parentRow) + this.$emit('recall', res.data, this.configDetailRow) } } } -- Gitblit v1.9.1