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/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..6481531 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,scope.row.serverName)" + 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,serverName?:string) => { + tagRef.value.open(id,serverName) + } + /** 删除按钮操作 */ const handleDelete = async (id: number) => { try { -- Gitblit v1.9.3