| | |
| | | </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']" |
| | |
| | | <!-- 表单弹窗:添加/修改 --> |
| | | <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'}) |
| | | |
| | |
| | | formRef.value.open(type, id) |
| | | } |
| | | |
| | | /** TAG操作 */ |
| | | const tagRef = ref() |
| | | const openTagList = (id?: string) => { |
| | | tagRef.value.open(id) |
| | | } |
| | | |
| | | /** 删除按钮操作 */ |
| | | const handleDelete = async (id: number) => { |
| | | try { |