Browse Source

perf(views): 修复“环境监控”运行状态判断选择参数异常问题

wangshun 1 week ago
parent
commit
640a0a16f0
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/views/env-monitor/EnvMonitor.vue

+ 4 - 1
src/views/env-monitor/EnvMonitor.vue

@@ -448,6 +448,9 @@ const getDeviceListOptionsList = (id: number, show: boolean, runStatusParamCode:
 const adddParametersDevice = (value: SelectValue, option: DefaultOptionType) => {
   runStatusList.value = [];
   inputType.value = option.type;
+  monitoringForm.value.runStatusConditionCode = undefined;
+  monitoringForm.value.runStatusConditionValue = undefined;
+
   if (option.type === 1) {
     option.candidates.forEach((item: string, index: number) => {
       runStatusList.value.push({
@@ -1019,7 +1022,7 @@ onMounted(() => {
     temperatureDifference.value = [];
     await getParamAlgOperator();
     paramAlgOperator.value.forEach((item) => {
-      if (item.dictValueId === 250 || item.dictValueId === 251) {
+      if (item.dictEngValue === 'eq' || item.dictEngValue === 'ne') {
         temperatureDifference.value.push(item);
       }
     });