Sfoglia il codice sorgente

feat: 添加iotId字段支持

yusheng 2 mesi fa
parent
commit
026633281d

+ 2 - 0
src/views/recordComponents/bindSubstanceList.vue

@@ -206,6 +206,7 @@
           substanceCode: this.current.code,
           substanceId: this.current.id,
           substanceName: this.current.name,
+          iotId:this.iotId,
           list: data
         };
       },
@@ -231,6 +232,7 @@
             list.push({
               substanceCode: item.substanceCode,
               substanceId: item.substanceId,
+              iotId:item.iotId,
               substanceName: item.substanceName,
               paramCode: listItem.identifier,
               paramValue: listItem.name,

+ 2 - 1
src/views/recordComponents/programRulesDialog.vue

@@ -1024,7 +1024,7 @@
       // 提交
       submit() {
         console.log('this.addForm', this.addForm);
-        return
+        // return
         this.$refs.formRef.validate(async (valid) => {
           if (valid) {
             if (!this.addForm.detailList?.length) {
@@ -1274,6 +1274,7 @@
               minValue: item.minValue,
               paramType: 7,
               paramValue: item.paramValue,
+              iotId:item.iotId,
               remark: '',
               symbol: null,
               tools: [],