|
@@ -5,13 +5,16 @@
|
|
|
<TableCard :data="tableData" :columns="columns" v-model:page-no="pageNo" v-model:page-size="pageSize"
|
|
<TableCard :data="tableData" :columns="columns" v-model:page-no="pageNo" v-model:page-size="pageSize"
|
|
|
@change="handleChange" :total="total" @selection-change="handleSelectionChange">
|
|
@change="handleChange" :total="total" @selection-change="handleSelectionChange">
|
|
|
<template #toolbar-left>
|
|
<template #toolbar-left>
|
|
|
- <el-button type="primary" size="large" class="is-solid" @click="handleAdd">新增</el-button>
|
|
|
|
|
- <el-button size="large" @click="handleBatchDelete">批量删除</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" :icon="CirclePlus" size="large" class="is-solid">添加实例</el-button>
|
|
|
|
|
+ <el-button type="primary" disabled :icon="Delete" size="large" class="is-solid">删除</el-button>
|
|
|
|
|
+ <el-button type="primary" disabled :icon="MoreFilled" size="large" class="is-solid">更多</el-button>
|
|
|
|
|
+ <el-button type="primary" :icon="Refresh" size="large" class="is-solid">刷新</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
-
|
|
|
|
|
<template #toolbar-right>
|
|
<template #toolbar-right>
|
|
|
- <el-input v-model="searchKeyword" placeholder="请输入关键词搜索" style="width: 200px" clearable />
|
|
|
|
|
- <el-button type="primary" size="large" @click="handleSearch">搜索</el-button>
|
|
|
|
|
|
|
+ <el-input :prefix-icon="Search" v-model="searchKeyword" size="large" placeholder="请输入关键词搜索" style="width: 300px"
|
|
|
|
|
+ clearable />
|
|
|
|
|
+ <el-button :icon="Search" type="primary" class="is-solid" size="large">搜索</el-button>
|
|
|
|
|
+ <el-button :icon="Upload" type="primary" class="is-solid" size="large">导出</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template #column-status="{ row }">
|
|
<template #column-status="{ row }">
|
|
@@ -19,10 +22,22 @@
|
|
|
{{ row.status }}
|
|
{{ row.status }}
|
|
|
</el-tag>
|
|
</el-tag>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+ <template #column-noHeartbeat="{ row }">
|
|
|
|
|
+ <el-switch v-model="row.noHeartbeat"></el-switch>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template #column-enableLTS="{ row }">
|
|
|
|
|
+ <el-switch v-model="row.enableLTS"></el-switch>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template #column-autoReconnect="{ row }">
|
|
|
|
|
+ <el-switch v-model="row.autoReconnect"></el-switch>
|
|
|
|
|
+ </template>
|
|
|
|
|
|
|
|
<template #column-operation="{ row }">
|
|
<template #column-operation="{ row }">
|
|
|
- <el-button type="primary" link @click="handleEdit(row)">编辑</el-button>
|
|
|
|
|
- <el-button type="danger" link @click="handleDelete(row)">删除</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" link>管理详情</el-button>
|
|
|
|
|
+ <el-button type="primary" link>升级</el-button>
|
|
|
|
|
+ <el-button type="primary" link>编辑</el-button>
|
|
|
|
|
+ <el-button type="warning" link>续费</el-button>
|
|
|
|
|
+ <el-button type="danger" link>删除</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</TableCard>
|
|
</TableCard>
|
|
|
</div>
|
|
</div>
|
|
@@ -31,6 +46,7 @@
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
import TabFilter from '@/components/TabFilter/index.vue'
|
|
import TabFilter from '@/components/TabFilter/index.vue'
|
|
|
import TableCard from '@/components/TableCard/index.vue'
|
|
import TableCard from '@/components/TableCard/index.vue'
|
|
|
|
|
+import { CirclePlus, Delete, MoreFilled, Refresh, Search, Upload } from '@element-plus/icons-vue'
|
|
|
|
|
|
|
|
const activeTab = ref('all')
|
|
const activeTab = ref('all')
|
|
|
const searchKeyword = ref('')
|
|
const searchKeyword = ref('')
|
|
@@ -65,7 +81,7 @@ const columns = [
|
|
|
{ prop: 'autoReconnect', label: '断线自动重连', minWidth: 110 },
|
|
{ prop: 'autoReconnect', label: '断线自动重连', minWidth: 110 },
|
|
|
{ prop: 'maxConcurrent', label: '客户端最大并发数', minWidth: 130 },
|
|
{ prop: 'maxConcurrent', label: '客户端最大并发数', minWidth: 130 },
|
|
|
{ prop: 'createTime', label: '创建时间', minWidth: 150 },
|
|
{ prop: 'createTime', label: '创建时间', minWidth: 150 },
|
|
|
- { prop: 'operation', label: '操作', minWidth: 120, isAction: true }
|
|
|
|
|
|
|
+ { prop: 'operation', label: '操作', minWidth: 240, isAction: true }
|
|
|
]
|
|
]
|
|
|
|
|
|
|
|
const tableData = ref([
|
|
const tableData = ref([
|
|
@@ -76,10 +92,10 @@ const tableData = ref([
|
|
|
expireTime: '2023-12-31',
|
|
expireTime: '2023-12-31',
|
|
|
instanceType: '普通实例',
|
|
instanceType: '普通实例',
|
|
|
status: '正常',
|
|
status: '正常',
|
|
|
- noHeartbeat: '是',
|
|
|
|
|
|
|
+ noHeartbeat: true,
|
|
|
noDataTimeout: '10秒',
|
|
noDataTimeout: '10秒',
|
|
|
- enableLTS: '是',
|
|
|
|
|
- autoReconnect: '是',
|
|
|
|
|
|
|
+ enableLTS: true,
|
|
|
|
|
+ autoReconnect: false,
|
|
|
maxConcurrent: '100',
|
|
maxConcurrent: '100',
|
|
|
createTime: '2023-01-01 10:00:00'
|
|
createTime: '2023-01-01 10:00:00'
|
|
|
}
|
|
}
|