|
|
@@ -8,8 +8,8 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<template #extra>
|
|
|
- <a-button type="primary" @click="handleQuery"><Icon icon="i-mdi:magnify" class="mr-1" />搜索</a-button>
|
|
|
- <a-button @click="resetQuery"><Icon icon="i-mdi:refresh" class="mr-1" />重置</a-button>
|
|
|
+ <a-button type="primary" @click="handleQuery">搜索</a-button>
|
|
|
+ <a-button @click="resetQuery">重置</a-button>
|
|
|
</template>
|
|
|
<a-form v-show="showSearch" :model="queryParams" layout="inline" class="query-form">
|
|
|
<a-form-item label="关键词">
|
|
|
@@ -48,22 +48,15 @@
|
|
|
</p>
|
|
|
</div>
|
|
|
<div class="wb-toolbar__actions">
|
|
|
- <a-button type="primary" @click="handleAdd"> <Icon icon="i-mdi:plus" class="mr-1" />新增 </a-button>
|
|
|
+ <a-button type="primary" @click="handleAdd"> 新增 </a-button>
|
|
|
<a-button type="primary" ghost :disabled="single" @click="handleUpdate()">
|
|
|
- <Icon icon="i-mdi:pencil-outline" class="mr-1" />修改
|
|
|
+ 修改
|
|
|
</a-button>
|
|
|
<a-button danger :disabled="multiple" @click="handleDelete()">
|
|
|
- <Icon icon="i-mdi:trash-can-outline" class="mr-1" />删除
|
|
|
+ 删除
|
|
|
</a-button>
|
|
|
- <a-tooltip :title="showSearch ? '隐藏搜索' : '显示搜索'">
|
|
|
- <a-button @click="showSearch = !showSearch">
|
|
|
- <Icon v-if="showSearch" icon="i-mdi:eye-off-outline" />
|
|
|
- <Icon v-else icon="i-mdi:eye-outline" />
|
|
|
- </a-button>
|
|
|
- </a-tooltip>
|
|
|
- <a-tooltip title="刷新">
|
|
|
- <a-button @click="getList"><Icon icon="i-mdi:refresh" /></a-button>
|
|
|
- </a-tooltip>
|
|
|
+ <a-button @click="showSearch = !showSearch">{{ showSearch ? '隐藏搜索' : '显示搜索' }}</a-button>
|
|
|
+ <a-button @click="getList">刷新</a-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -100,24 +93,16 @@
|
|
|
</template>
|
|
|
<template v-else-if="column.key === 'action'">
|
|
|
<a-tooltip title="查看">
|
|
|
- <a-button type="link" size="small" @click="handleView(record)">
|
|
|
- <Icon icon="i-mdi:eye-outline" />
|
|
|
- </a-button>
|
|
|
+ <a-button type="link" size="small" @click="handleView(record)">查看</a-button>
|
|
|
</a-tooltip>
|
|
|
<a-tooltip title="测试连接">
|
|
|
- <a-button type="link" size="small" @click="handleTest(record)">
|
|
|
- <Icon icon="i-mdi:connection" />
|
|
|
- </a-button>
|
|
|
+ <a-button type="link" size="small" @click="handleTest(record)">测试</a-button>
|
|
|
</a-tooltip>
|
|
|
<a-tooltip title="修改">
|
|
|
- <a-button type="link" size="small" @click="handleUpdate(record)">
|
|
|
- <Icon icon="i-mdi:pencil-outline" />
|
|
|
- </a-button>
|
|
|
+ <a-button type="link" size="small" @click="handleUpdate(record)">修改</a-button>
|
|
|
</a-tooltip>
|
|
|
<a-tooltip title="删除">
|
|
|
- <a-button danger type="link" size="small" @click="handleDelete(record)">
|
|
|
- <Icon icon="i-mdi:trash-can-outline" />
|
|
|
- </a-button>
|
|
|
+ <a-button danger type="link" size="small" @click="handleDelete(record)">删除</a-button>
|
|
|
</a-tooltip>
|
|
|
</template>
|
|
|
</template>
|
|
|
@@ -274,7 +259,7 @@
|
|
|
</a-form>
|
|
|
<template #footer>
|
|
|
<a-button :loading="testing" @click="handleTestInDialog">
|
|
|
- <Icon icon="i-mdi:connection" class="mr-1" />测试连接
|
|
|
+ 测试连接
|
|
|
</a-button>
|
|
|
<a-button type="primary" :loading="buttonLoading" @click="submitForm">确 定</a-button>
|
|
|
<a-button @click="cancel">取 消</a-button>
|
|
|
@@ -456,12 +441,12 @@
|
|
|
const columns: any[] = [
|
|
|
{ title: 'Server 名称', dataIndex: 'serverName', key: 'serverName', width: 150, align: 'center', ellipsis: true },
|
|
|
{ title: '传输', key: 'transport', width: 140, align: 'center' },
|
|
|
- { title: '地址', dataIndex: 'url', key: 'url', width: 220, ellipsis: true },
|
|
|
+ { title: '地址', dataIndex: 'url', key: 'url', width: 180, ellipsis: true },
|
|
|
{ title: '工具白名单', key: 'enableTools', width: 160, ellipsis: true },
|
|
|
{ title: '请求头', key: 'headers', width: 80, align: 'center' },
|
|
|
{ title: '状态', key: 'status', width: 70, align: 'center' },
|
|
|
{ title: '更新时间', dataIndex: 'updateTime', key: 'updateTime', width: 150, align: 'center' },
|
|
|
- { title: '操作', key: 'action', width: 200, align: 'center', fixed: 'right' },
|
|
|
+ { title: '操作', key: 'action', width: 240, align: 'center', fixed: 'right' },
|
|
|
];
|
|
|
|
|
|
const showTotal = (value: number) => `共 ${value} 条`;
|