From 9259c2235e31708f954a3578bde3c6a7ab9753e8 Mon Sep 17 00:00:00 2001
From: houzhongjian <houzhongyi@126.com>
Date: 星期一, 30 十二月 2024 15:51:40 +0800
Subject: [PATCH] 1、工作流相关组件更新 2、偶尔出现退出登录时路由报错的bug导致无法回到登录页面 3、全局配置文件修改,移除VITE_UPLOAD_URL配置等

---
 src/views/data/channel/opcua/tag/TagForm.vue |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/views/data/channel/opcua/tag/TagForm.vue b/src/views/data/channel/opcua/tag/TagForm.vue
index 810fbff..adb01a8 100644
--- a/src/views/data/channel/opcua/tag/TagForm.vue
+++ b/src/views/data/channel/opcua/tag/TagForm.vue
@@ -36,7 +36,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"
@@ -54,8 +54,8 @@
 </template>
 <script lang="ts" setup>
   import * as OpcuaTagApi from '@/api/data/channel/opcua/tag'
-  import { CommonEnabledBool } from '@/utils/constants'
-  import { DICT_TYPE, getStrDictOptions, getBoolDictOptions } from '@/utils/dict'
+  import {CommonEnabled} from '@/utils/constants'
+  import { DICT_TYPE, getStrDictOptions, getIntDictOptions } from '@/utils/dict'
 
   defineOptions({name: 'OpcuaTagForm'})
 
@@ -70,7 +70,7 @@
     device: undefined,
     tagName: undefined,
     dataType: undefined,
-    enabled: CommonEnabledBool.ENABLE,
+    enabled: CommonEnabled.ENABLE,
     address: undefined,
     samplingRate: undefined
   })
@@ -134,7 +134,7 @@
       device: undefined,
       tagName: undefined,
       dataType: undefined,
-      enabled: CommonEnabledBool.ENABLE,
+      enabled: CommonEnabled.ENABLE,
       address: undefined,
       samplingRate: undefined
     }

--
Gitblit v1.9.3