From 9ec4bd04bcce1ef1e6f8286a12f339d2ae9566db Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期五, 20 九月 2024 09:33:50 +0800 Subject: [PATCH] git mpk --- src/views/data/channel/http/index.vue | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/src/views/data/channel/http/index.vue b/src/views/data/channel/http/index.vue index b607659..f3a7c9d 100644 --- a/src/views/data/channel/http/index.vue +++ b/src/views/data/channel/http/index.vue @@ -60,6 +60,14 @@ </el-button> <el-button link + type="primary" + @click="openTagList(scope.row.id)" + v-hasPermi="['data:channel-http:update']" + > + TAG + </el-button> + <el-button + link type="danger" @click="handleDelete(scope.row.id)" v-hasPermi="['data:channel-http:delete']" @@ -81,10 +89,14 @@ <!-- 表单弹窗:添加/修改 --> <HttpApiForm ref="formRef" @success="getList"/> + <!-- TAG弹窗:添加/修改 --> + <TagList ref="tagRef" @success="getList" /> + </template> <script lang="ts" setup> import * as HttpApi from '@/api/data/channel/http' import HttpApiForm from './HttpApiForm.vue' +import TagList from './tag/index.vue' defineOptions({name: 'DataHttpApi'}) @@ -132,6 +144,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