From 778f36da39618e73d362f70de5fd77be57b34fb7 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期二, 31 十二月 2024 14:52:53 +0800
Subject: [PATCH] 调度方案配置界面优化

---
 src/views/data/channel/modbus/tag/TagForm.vue |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/views/data/channel/modbus/tag/TagForm.vue b/src/views/data/channel/modbus/tag/TagForm.vue
index fc70722..d248a96 100644
--- a/src/views/data/channel/modbus/tag/TagForm.vue
+++ b/src/views/data/channel/modbus/tag/TagForm.vue
@@ -55,7 +55,7 @@
           <el-form-item label="是否启用" prop="enabled">
             <el-select v-model="formData.enabled" placeholder="请选择">
               <el-option
-                v-for="dict in getBoolDictOptions(DICT_TYPE.IS_ENABLED)"
+                v-for="dict in getIntDictOptions(DICT_TYPE.COM_IS_INT)"
                 :key="dict.value"
                 :label="dict.label"
                 :value="dict.value"
@@ -82,7 +82,7 @@
   import * as ModBusTagApi from '@/api/data/channel/modbus/tag'
   import { CommonEnabled } from '@/utils/constants'
   import {isPositiveInteger} from '@/utils/validate'
-  import { DICT_TYPE, getStrDictOptions, getBoolDictOptions } from '@/utils/dict'
+  import { DICT_TYPE, getStrDictOptions, getIntDictOptions } from '@/utils/dict'
 
   defineOptions({name: 'ModBusTagForm'})
 
@@ -98,7 +98,7 @@
     dataType: undefined,
     enabled: CommonEnabled.ENABLE,
     format: undefined,
-    device: '1',
+    device: '',
     address: '',
     samplingRate: undefined,
     tagDesc: '',
@@ -133,7 +133,6 @@
       formLoading.value = true
       try {
         formData.value = await ModBusTagApi.getModBusTag(id)
-        formData.device = device
       } finally {
         formLoading.value = false
       }

--
Gitblit v1.9.3