jinlin
2024-06-11 c1c99506314644355c105de2a525ea3a248fd91f
web/src/views/modules/taskReliability/OperatConditModel.vue
@@ -53,6 +53,7 @@
        },
        mapModelNodes: {},
        dialogVisible2: false,
        isChange: false,
      }
    },
    components: {
@@ -74,12 +75,13 @@
          console.log(dataList[0].modelList[0].id, ' dataList[0].modelList[0].modelId')
          dataList[0].modelId = dataList[0].modelList[0].id
          console.log(dataList[0], 'dataLoaded(dataList)')
          this.modelChanged(dataList[0])
          this.modelChangedProess(dataList[0])
        }
      },
      async save() {
        let res = await this.$http.post('/taskReliability/OperatConditModel/', this.$refs.tableObj.dataList[0])
        if (res.success) {
          this.isChange = false
          this.$refs.tableObj.query()
        }
      },
@@ -92,7 +94,11 @@
        }
      },
      modelChanged(row) {
      modelChanged(row){
        this.isChange = true
        this.modelChangedProess(row)
      },
      modelChangedProess(row) {
        let modelId = row.modelId
        let modelNodes = this.mapModelNodes[modelId]
        console.log(modelId, 'modelChanged modelId')