From 8de0657846ff9d860207aa26b9fa1a1ecd457afb Mon Sep 17 00:00:00 2001
From: dengzedong <dengzedong@email>
Date: 星期五, 20 九月 2024 09:58:53 +0800
Subject: [PATCH] 路由

---
 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