| | |
| | | }, |
| | | mapModelNodes: {}, |
| | | dialogVisible2: false, |
| | | isChange: false, |
| | | } |
| | | }, |
| | | components: { |
| | |
| | | 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() |
| | | } |
| | | }, |
| | |
| | | |
| | | } |
| | | }, |
| | | 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') |