| | |
| | | type="primary" |
| | | plain |
| | | @click="openForm('create')" |
| | | v-hasPermi="['system:tenant:create']" |
| | | v-hasPermi="['data:channel-http:create']" |
| | | > |
| | | <Icon icon="ep:plus" class="mr-5px" /> |
| | | 新增 |
| | |
| | | <el-table v-loading="loading" :data="list"> |
| | | <el-table-column label="名称" align="center" prop="name" /> |
| | | <el-table-column label="编码" align="center" prop="code" /> |
| | | <el-table-column label="url" align="center" prop="url" /> |
| | | <el-table-column label="url" header-align="center" align="left" min-width="300" prop="url"/> |
| | | <el-table-column label="方法" align="center" prop="method" /> |
| | | <el-table-column label="采集类型" align="center" prop="collectType" /> |
| | | <el-table-column label="参数" align="center" prop="param" /> |
| | | <el-table-column label="描述" align="center" prop="descp" /> |
| | | <el-table-column label="状态" align="center" prop="status" /> |
| | | |
| | | <el-table-column label="描述" header-align="center" align="left" min-width="300" prop="descp"/> |
| | | <el-table-column label="操作" align="center" min-width="110" fixed="right"> |
| | | <template #default="scope"> |
| | | <el-button |
| | | link |
| | | type="primary" |
| | | @click="openForm('update', scope.row.id)" |
| | | v-hasPermi="['system:tenant:update']" |
| | | v-hasPermi="['data:channel-http:update']" |
| | | > |
| | | 编辑 |
| | | </el-button> |
| | |
| | | link |
| | | type="danger" |
| | | @click="handleDelete(scope.row.id)" |
| | | v-hasPermi="['system:tenant:delete']" |
| | | v-hasPermi="['data:channel-http:delete']" |
| | | > |
| | | 删除 |
| | | </el-button> |
| | |
| | | import * as HttpApi from '@/api/data/channel/http' |
| | | import HttpApiForm from './HttpApiForm.vue' |
| | | |
| | | defineOptions({name: 'DataHttp'}) |
| | | defineOptions({name: 'DataHttpApi'}) |
| | | |
| | | const message = useMessage() // 消息弹窗 |
| | | const {t} = useI18n() // 国际化 |