Просмотр исходного кода

feat: 添加 iotId 字段到物质列表和规则

yusheng 2 месяцев назад
Родитель
Сommit
ffb24ba2ea

+ 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.current.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,

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

@@ -1276,6 +1276,7 @@
               minValue: item.minValue,
               paramType: 7,
               paramValue: item.paramValue,
+              iotId:item.iotId,
               remark: '',
               symbol: null,
               tools: [],