From 24d32ba3488d6b097525ecc086113778be6f41dc Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期三, 18 九月 2024 08:49:21 +0800
Subject: [PATCH] data tag

---
 src/views/data/channel/opcda/index.vue |   24 +++++++++++++++++++++---
 1 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/src/views/data/channel/opcda/index.vue b/src/views/data/channel/opcda/index.vue
index d9b62fb..b538779 100644
--- a/src/views/data/channel/opcda/index.vue
+++ b/src/views/data/channel/opcda/index.vue
@@ -30,7 +30,7 @@
           type="primary"
           plain
           @click="openForm('create')"
-          v-hasPermi="['system:tenant:create']"
+          v-hasPermi="['data:channel-opcda:create']"
         >
           <Icon icon="ep:plus" class="mr-5px" />
           新增
@@ -53,15 +53,23 @@
             link
             type="primary"
             @click="openForm('update', scope.row.id)"
-            v-hasPermi="['system:tenant:update']"
+            v-hasPermi="['data:channel-opcda:update']"
           >
             编辑
           </el-button>
           <el-button
             link
+            type="primary"
+            @click="openTagList(scope.row.id)"
+            v-hasPermi="['data:channel-opcda:update']"
+          >
+            TAG
+          </el-button>
+          <el-button
+            link
             type="danger"
             @click="handleDelete(scope.row.id)"
-            v-hasPermi="['system:tenant:delete']"
+            v-hasPermi="['data:channel-opcda:delete']"
           >
             删除
           </el-button>
@@ -80,10 +88,14 @@
   <!-- 表单弹窗:添加/修改 -->
   <OpcDaDeviceForm ref="formRef" @success="getList" />
 
+  <!-- TAG弹窗:添加/修改 -->
+  <TagList ref="tagRef" @success="getList" />
+
 </template>
 <script lang="ts" setup>
 import * as OpcDaApi from '@/api/data/channel/opcda'
 import OpcDaDeviceForm from './OpcDaDeviceForm.vue'
+import TagList from './tag/index.vue'
 
 defineOptions({name: 'DataOpcDa'})
 
@@ -131,6 +143,12 @@
     formRef.value.open(type, id)
   }
 
+  /** TAG操作 */
+  const tagRef = ref()
+  const openTagList = (id?: string) => {
+    tagRef.value.open(id)
+  }
+
   /** 删除按钮操作 */
   const handleDelete = async (id: number) => {
     try {

--
Gitblit v1.9.3