From 442a635882a5973c9f3401a30bcfa0a43434fa74 Mon Sep 17 00:00:00 2001 From: jinlin <jinlin> Date: 星期三, 17 七月 2024 16:34:51 +0800 Subject: [PATCH] 修改 --- web/src/views/modules/taskReliability/OperatConditModel.vue | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/web/src/views/modules/taskReliability/OperatConditModel.vue b/web/src/views/modules/taskReliability/OperatConditModel.vue index af60490..f0558f9 100644 --- a/web/src/views/modules/taskReliability/OperatConditModel.vue +++ b/web/src/views/modules/taskReliability/OperatConditModel.vue @@ -84,6 +84,7 @@ async save() { let res = await this.$http.post('/taskReliability/OperatConditModel/', this.$refs.tableObj.dataList[0]) if (res.success) { + this.$tip.success() this.isChange = false this.$refs.tableObj.query() } @@ -106,12 +107,17 @@ let modelNodes = this.mapModelNodes[modelId] console.log(modelId, 'modelChanged modelId') console.log(modelNodes, 'modelChanged modelNodes') + console.log(row.children, 'row.children') for (let subRow of row.children) { - if (modelNodes.indexOf(subRow.productId)) { + console.log(subRow,'subRow') + console.log(subRow.productId,'subRow.productId') + if (modelNodes.indexOf(subRow.productId) != -1) { subRow.isDisabled = 0 if (subRow.modelList.length == 1) { subRow.modelId = subRow.modelList[0].id + console.log(subRow.modelId, 'subRow.modelId 111') + console.log(this.mapModelNodes[subRow.modelId], 'this.mapModelNodes[subRow.modelId] 111') } else { //subRow.modelId = null } -- Gitblit v1.9.1