diff --git a/public/blue_line.png b/public/blue_line.png deleted file mode 100644 index 770a374e..00000000 Binary files a/public/blue_line.png and /dev/null differ diff --git a/public/china_under.jpg b/public/china_under.jpg deleted file mode 100644 index baf4d453..00000000 Binary files a/public/china_under.jpg and /dev/null differ diff --git a/public/cloud.jpg b/public/cloud.jpg deleted file mode 100644 index 4aa48dd6..00000000 Binary files a/public/cloud.jpg and /dev/null differ diff --git a/public/earth.jpg b/public/earth.jpg deleted file mode 100644 index c8ba0de5..00000000 Binary files a/public/earth.jpg and /dev/null differ diff --git a/public/earth_cloud-bk.png b/public/earth_cloud-bk.png deleted file mode 100644 index 79f6e27d..00000000 Binary files a/public/earth_cloud-bk.png and /dev/null differ diff --git a/public/earth_cloud.png b/public/earth_cloud.png deleted file mode 100644 index 1e35fabc..00000000 Binary files a/public/earth_cloud.png and /dev/null differ diff --git a/public/earth_light.jpeg b/public/earth_light.jpeg deleted file mode 100644 index dbc0d0ee..00000000 Binary files a/public/earth_light.jpeg and /dev/null differ diff --git a/public/green_line.png b/public/green_line.png deleted file mode 100644 index 65ee6b81..00000000 Binary files a/public/green_line.png and /dev/null differ diff --git a/public/light.png b/public/light.png deleted file mode 100644 index 8956cced..00000000 Binary files a/public/light.png and /dev/null differ diff --git a/public/point.png b/public/point.png deleted file mode 100644 index dab484c9..00000000 Binary files a/public/point.png and /dev/null differ diff --git a/public/red_line.png b/public/red_line.png deleted file mode 100644 index 70f5e4d8..00000000 Binary files a/public/red_line.png and /dev/null differ diff --git a/public/statusEnd.svg b/public/statusEnd.svg deleted file mode 100644 index 5d704b65..00000000 --- a/public/statusEnd.svg +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/public/statusIng.svg b/public/statusIng.svg deleted file mode 100644 index 98d402c7..00000000 --- a/public/statusIng.svg +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/public/statusUn.svg b/public/statusUn.svg deleted file mode 100644 index 17e8ce0c..00000000 --- a/public/statusUn.svg +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/public/water.jpg b/public/water.jpg deleted file mode 100644 index 1a38c936..00000000 Binary files a/public/water.jpg and /dev/null differ diff --git a/src/api/pcm/adapter.js b/src/api/pcm/adapter.js new file mode 100644 index 00000000..33f99a3b --- /dev/null +++ b/src/api/pcm/adapter.js @@ -0,0 +1,9 @@ +import request from '@/utils/request' + +export const getAdapterList = (params) => { + return request({ url: '/pcm/v1/adapter/list', method: 'get', params }) +} + +export const deleteAdapter = (id) => { + return request({ url: `/pcm/v1/adapter/delete?id=${id}`, method: 'delete' }) +} diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 40230ddc..e4f252f3 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -37,6 +37,9 @@ 告警中心 + + 适配器管理 + 退出登录 @@ -95,6 +98,10 @@ export default { this.$store.dispatch('user/setRouteType', 'monitorManagement') this.$router.push({ path: '/monitorManagement/warnList' }) }, + toAdapterManagement() { + this.$store.dispatch('user/setRouteType', 'adapterManagement') + this.$router.push({ path: '/adapterManagement/list' }) + }, toSetting() { this.$store.dispatch('user/setRouteType', 'setting') this.$router.push({ path: '/setting/monitor' }) diff --git a/src/router/index.js b/src/router/index.js index dc8da818..be794ba6 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -18,6 +18,7 @@ import resourceManagementRouter from './modules/resourceManagement' import modelarts from './modules/modelarts' import taskManagementRouter from './modules/taskManagement' import strategyManagementRouter from './modules/strategy' +import adapterMangementRouter from './modules/adapterManagement' /* Router Modules */ // import componentsRouter from './modules/components' // import tableRouter from './modules/table' @@ -128,7 +129,8 @@ export const constantRoutes = [ resourceManagementRouter, modelarts, taskManagementRouter, - strategyManagementRouter + strategyManagementRouter, + adapterMangementRouter ] const createRouter = () => new Router({ diff --git a/src/router/modules/adapterManagement.js b/src/router/modules/adapterManagement.js new file mode 100644 index 00000000..c680d3e2 --- /dev/null +++ b/src/router/modules/adapterManagement.js @@ -0,0 +1,28 @@ +import Layout from '@/layout' +const Router = { + path: '/adapterManagement', + component: Layout, + name: '适配器管理', + meta: { + title: '适配器管理', + icon: 'yunweijiankongmokuai' + }, + children: [ + { + path: 'list', + component: () => import('@/views/adapterManagement/list'), + redirect: 'list', + children: [ + { + path: '', + component: () => import('@/views/adapterManagement/list'), + name: 'list', + // redirect: 'podWarn', + meta: { title: '适配器列表', icon: 'xunijiguanli-zhuji', affix: true }, + hidden: false + } + ] + } + ] +} +export default Router diff --git a/src/views/adapterManagement/list.vue b/src/views/adapterManagement/list.vue new file mode 100644 index 00000000..ba6e67a5 --- /dev/null +++ b/src/views/adapterManagement/list.vue @@ -0,0 +1,95 @@ + + + + + diff --git a/src/views/taskManagement/taskList/list.vue b/src/views/taskManagement/taskList/list.vue index 1e14330f..cbde2b35 100644 --- a/src/views/taskManagement/taskList/list.vue +++ b/src/views/taskManagement/taskList/list.vue @@ -11,6 +11,7 @@ ref="multipleTable" class="multipleTable" :columns="columns" + :filter-map="filterMap" func-name="getVirtualMachineList" :default-sort="{prop: 'existTime', order: 'ascending'}" tooltip-effect="dark" @@ -31,6 +32,11 @@ export default { components: { List }, data() { return { + filterMap: { + name: { + label: '名称' + } + }, columns: [ { prop: 'name', label: '任务名称', sortable: true, formatter: (row) => { return this.viewDetail(row)}>{row.name} } }, {