From c9a6f7cbb5209415e626df29c7572cf40fe92b66 Mon Sep 17 00:00:00 2001 From: houzhongjian <houzhongyi@126.com> Date: 星期一, 06 一月 2025 11:44:50 +0800 Subject: [PATCH] 1、工作流程功能优化,解决流程图模拟功能simulation不生效的bug 2、system menu等页面修改 3、Footer copyright年份修改为动态 --- src/views/data/channel/modbus/index.vue | 24 +++++++++++++++++++++--- 1 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/views/data/channel/modbus/index.vue b/src/views/data/channel/modbus/index.vue index 27b491f..c97cada 100644 --- a/src/views/data/channel/modbus/index.vue +++ b/src/views/data/channel/modbus/index.vue @@ -39,7 +39,7 @@ type="primary" plain @click="openForm('create')" - v-hasPermi="['system:tenant:create']" + v-hasPermi="['data:channel-modbus:create']" > <Icon icon="ep:plus" class="mr-5px" /> 新增 @@ -68,15 +68,23 @@ link type="primary" @click="openForm('update', scope.row.id)" - v-hasPermi="['system:tenant:update']" + v-hasPermi="['data:channel-modbus:update']" > 编辑 </el-button> <el-button link + type="primary" + @click="openTagList(scope.row.id,scope.row.name)" + v-hasPermi="['data:channel-modbus:update']" + > + TAG + </el-button> + <el-button + link type="danger" @click="handleDelete(scope.row.id)" - v-hasPermi="['system:tenant:delete']" + v-hasPermi="['data:channel-modbus:delete']" > 删除 </el-button> @@ -95,10 +103,14 @@ <!-- 表单弹窗:添加/修改 --> <ModBusDeviceForm ref="formRef" @success="getList" /> + <!-- TAG弹窗:添加/修改 --> + <TagList ref="tagRef" @success="getList" /> + </template> <script lang="ts" setup> import * as ModbusApi from '@/api/data/channel/modbus' import ModBusDeviceForm from './ModBusDeviceForm.vue' +import TagList from './tag/index.vue' defineOptions({name: 'DataModBus'}) @@ -147,6 +159,12 @@ formRef.value.open(type, id) } + /** TAG操作 */ + const tagRef = ref() + const openTagList = (id?: string,name?: string) => { + tagRef.value.open(id,name) + } + /** 删除按钮操作 */ const handleDelete = async (id: number) => { try { -- Gitblit v1.9.3