From df90c0c5cfa4de114798015b92120ad8ba8b4826 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期五, 22 十一月 2024 10:45:40 +0800
Subject: [PATCH] MEASURE_VALUE_TYPE

---
 src/views/data/channel/opcua/index.vue |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/views/data/channel/opcua/index.vue b/src/views/data/channel/opcua/index.vue
index 25a160f..d73b62e 100644
--- a/src/views/data/channel/opcua/index.vue
+++ b/src/views/data/channel/opcua/index.vue
@@ -42,14 +42,18 @@
   <!-- 列表 -->
   <ContentWrap>
     <el-table v-loading="loading" :data="list">
-      <el-table-column label="服务名" align="center" prop="serverName"/>
-      <el-table-column label="端点URL" align="center" prop="endpointUrl"/>
+      <el-table-column label="服务名" header-align="center" align="left" prop="serverName" min-width="180"/>
+      <el-table-column label="端点URL" header-align="center" align="left" prop="endpointUrl" min-width="260"/>
       <el-table-column label="安全策略" align="center" prop="securityPolicy"/>
       <el-table-column label="安全模式" align="center" prop="securityMode"/>
-      <el-table-column label="连接方式" align="center" prop="connectionType"/>
+      <el-table-column label="连接方式" align="center" prop="connectionType">
+        <template #default="scope">
+          <dict-tag :type="DICT_TYPE.OPCUA_CONNECTION_TYPE" :value="scope.row.connectionType" />
+        </template>
+      </el-table-column>
       <el-table-column label="用户名" align="center" prop="userName"/>
       <el-table-column label="密码" align="center" prop="password"/>
-      <el-table-column label="安全证书路径" align="center" prop="certificatePath"/>
+      <el-table-column label="安全证书路径" header-align="center" align="left" prop="certificatePath" min-width="200"/>
       <el-table-column label="设备不活动超时时间" align="center" prop="connectInactivityTimeout"/>
       <el-table-column label="重连超时" align="center" prop="reconnectInterval"/>
       <el-table-column label="操作" align="center" min-width="110" fixed="right">
@@ -101,6 +105,7 @@
   import * as OpcUaApi from '@/api/data/channel/opcua'
   import OpcUaDeviceForm from './OpcUaDeviceForm.vue'
   import TagList from './tag/index.vue'
+  import { DICT_TYPE } from '@/utils/dict'
 
   defineOptions({name: 'DataOpcUa'})
 

--
Gitblit v1.9.3