潘志宝
2024-09-18 6d9c089cebac440c78573e9fa95190ee9ead674c
src/views/data/channel/http/index.vue
@@ -30,7 +30,7 @@
          type="primary"
          plain
          @click="openForm('create')"
          v-hasPermi="['system:tenant:create']"
          v-hasPermi="['data:channel-http:create']"
        >
          <Icon icon="ep:plus" class="mr-5px" />
          新增
@@ -44,20 +44,17 @@
    <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>
@@ -65,7 +62,7 @@
            link
            type="danger"
            @click="handleDelete(scope.row.id)"
            v-hasPermi="['system:tenant:delete']"
            v-hasPermi="['data:channel-http:delete']"
          >
            删除
          </el-button>
@@ -89,7 +86,7 @@
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() // 国际化