Przeglądaj źródła

feat: 添加物联点位列并移除输入限制

添加物联点位列以展示相关信息,同时移除了参数值输入框的只读/禁用限制。
yusheng 1 miesiąc temu
rodzic
commit
68b26a2f3e

+ 6 - 1
src/views/rulesManagement/recordPlan/components/programRulesDialog.vue

@@ -416,7 +416,6 @@
                 size="mini"
                 type="textarea"
                 rows="1"
-                :disabled="!!row.paramCode"
                 autosize
               ></el-input>
             </template>
@@ -906,6 +905,12 @@
             slot: 'paramValue',
             minWidth: 261
           },
+          {
+            prop: 'iotPointName',
+            label: '物联点位',
+            align: 'center',
+            minWidth: 150
+          },
           {
             prop: 'formula',
             label: '计算公式',

+ 7 - 1
src/views/rulesManagement/releaseRules/components/permitAdd.vue

@@ -402,7 +402,6 @@
             type="textarea"
             rows="1"
             autosize
-            :readonly="!!row.paramCode"
           ></el-input>
         </template>
 
@@ -816,6 +815,12 @@
             slot: 'paramValue',
             minWidth: 261
           },
+          {
+            prop: 'iotPointName',
+            label: '物联点位',
+            align: 'center',
+            minWidth: 150
+          },
           {
             prop: 'formula',
             label: '计算公式',
@@ -1894,6 +1899,7 @@
               productName: '',
               productCode: '',
               paramCode: item.paramCode,
+              iotPointName: item.paramValue,
               iotId: item.iotId,
               substanceId: item.substanceId,
               substanceCode: item.substanceCode,