dengzedong
2024-09-20 8de0657846ff9d860207aa26b9fa1a1ecd457afb
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 {