diff --git a/src/api/opsVisualization/alarmProcess.js b/src/api/opsVisualization/alarmProcess.js new file mode 100644 index 0000000..ba4380b --- /dev/null +++ b/src/api/opsVisualization/alarmProcess.js @@ -0,0 +1,19 @@ +import request from '@/router/axios'; + +//设备类型通讯链路及排除方案 +export const getWarnPoint = (params) => { + return request({ + url: '/kgApi/monitor-business/getWarnPoint', + method: 'get', + params + }) +} +//排查方案信息列表 +export const getResolveTips = (params) => { + return request({ + url: '/kgApi/monitor-business/getResolveTips', + method: 'get', + params + }) +} + diff --git a/src/api/opsVisualization/serviceDataOAM.js b/src/api/opsVisualization/serviceDataOAM.js new file mode 100644 index 0000000..1f51a2f --- /dev/null +++ b/src/api/opsVisualization/serviceDataOAM.js @@ -0,0 +1,25 @@ +import request from '@/router/axios'; +//报警设备列表 +export const getEquipList = (params) => { + return request({ + url: '/kgApi/monitor-business/getEquipList', + method: 'get', + params + }) +} +//当前报警信息 +export const getWarnMsg = (params) => { + return request({ + url: '/kgApi/monitor-business/getWarnMsg', + method: 'get', + params + }) +} +//报警记录 +export const getWarnHisList = (params) => { + return request({ + url: '/kgApi/monitor-business/getWarnHisList', + method: 'get', + params + }) +} diff --git a/src/page/index/index.vue b/src/page/index/index.vue index 3fc356b..546f812 100644 --- a/src/page/index/index.vue +++ b/src/page/index/index.vue @@ -1,112 +1,106 @@ diff --git a/src/page/index/sidebar/opsSidebar.vue b/src/page/index/sidebar/opsSidebar.vue index b7d0db9..6041075 100644 --- a/src/page/index/sidebar/opsSidebar.vue +++ b/src/page/index/sidebar/opsSidebar.vue @@ -6,37 +6,37 @@ @open="handleOpen" @close="handleClose" background-color="#1E283D" - active-background-color="red" text-color="#fff" - active-text-color="#ffd04b" + active-text-color="#04D4FF" :default-active="$route.path" + :unique-opened="true" router > - + - 系统监控 - 服务监控 + + 系统监控 + + + 服务监控 + - + - 业务数据监控 + 业务数据监控 - 报警信息记录 + 报警信息记录 @@ -50,14 +50,46 @@ export default { data() { return {}; }, - watch: {}, + watch: { + $route(to, from) { + if ( + this.$route.path == "/opsVisualization/tuobu" || + this.$route.path == "/opsVisualization/systemMonitoring" + ) { + document.getElementsByClassName( + "el-submenu__title" + )[0].style.background = + "linear-gradient(90deg, #07a7ff 0%, #142a43 100%)"; + document.getElementsByClassName( + "el-submenu__title" + )[1].style.background = "#1E283D"; + } else if ( + this.$route.path == "/opsVisualization/alarmProcess" || + this.$route.path == "/opsVisualization/serviceDataOAM" + ) { + document.getElementsByClassName( + "el-submenu__title" + )[1].style.background = + "linear-gradient(90deg, #07a7ff 0%, #142a43 100%)"; + document.getElementsByClassName( + "el-submenu__title" + )[0].style.background = "#1E283D"; + } + }, + }, computed: {}, - mounted() {}, + mounted() { + document.getElementsByClassName("el-submenu__title")[0].style.background = + "linear-gradient(90deg, #07a7ff 0%, #142a43 100%)"; + }, methods: {}, }; - \ No newline at end of file diff --git a/src/page/opsVisualization/alarmProcess.vue b/src/page/opsVisualization/alarmProcess.vue index 856edcf..da5fad6 100644 --- a/src/page/opsVisualization/alarmProcess.vue +++ b/src/page/opsVisualization/alarmProcess.vue @@ -1,422 +1,486 @@ \ No newline at end of file diff --git a/src/page/opsVisualization/serviceDataOAM.vue b/src/page/opsVisualization/serviceDataOAM.vue index 07bf249..0087b43 100644 --- a/src/page/opsVisualization/serviceDataOAM.vue +++ b/src/page/opsVisualization/serviceDataOAM.vue @@ -3,75 +3,136 @@ - - - - + +
+ + + + + + + + + + + + + + + + + 查看 + + +
+
+ + +
+
- 报警详情信息 - 报警信息记录 + 报警详情信息 + 报警信息记录
- 设备报警信息详情 + {{ tabKey == 1 ? "报警详情信息" : "报警信息记录" }} 更多
-
+
- {{ item.time }} + {{ item.warnDate }}
- {{ item.content }}dtu编号:{{ item.id }} + {{ item.warnContent }}设备编号:{{ item.equipCode }}
+
+ 暂无数据 +
@@ -114,6 +182,7 @@ .box { width: 100%; height: 26vh; + margin-top: 30px; } .tab_btn { cursor: pointer; @@ -123,8 +192,8 @@ height: 30px; margin-top: 20px; } -.box_nav{ - >span{ +.box_nav { + > span { cursor: pointer; } } @@ -155,464 +224,161 @@ /deep/ .basic-container__card { height: 100%; } +.search_box { + display: flex; + margin-bottom: 30px; + .search_select { + // width: 138px; + height: 40px; + } + .search_input { + width: 238px; + height: 40px; + } + /deep/.el-input__inner { + border-radius: 0; + } + .search_button { + width: 50px; + height: 40px; + border-radius: 0; + display: flex; + justify-content: center; + align-items: center; + margin-left: 6px; + .el-icon-search { + font-size: 19px; + color: #c9c9c9; + } + } +} +.el-table { + ::v-deep td { + padding: 0 !important; + } +} +/deep/.el-table__row { + height: 40px; +} +.el_pagination { + display: flex; + justify-content: end; + border: 1px solid #d1d1d1; + border-top: none; + padding: 10px 7px 7px 7px; + position: absolute; + bottom: 0; + width: 99%; +} +.el_table { + width: 100%; + overflow: auto; + border: 1px solid #d1d1d1; + border-bottom: 50px solid #fff; +} diff --git a/src/permission.js b/src/permission.js index 05858d8..bf69c23 100644 --- a/src/permission.js +++ b/src/permission.js @@ -70,9 +70,11 @@ router.beforeEach((to, from, next) => { if (meta.isAuth === false) { next() } else { - if (to.path.indexOf('/opsVisualization/alarmProcess') == '-1') { + if (to.path.indexOf('/opsVisualization') == '-1') { next('/login') - } else { + } + //运维可视化免登录 + else { next() } } diff --git a/src/router/page/index.js b/src/router/page/index.js index 50ee997..1113f84 100644 --- a/src/router/page/index.js +++ b/src/router/page/index.js @@ -87,6 +87,7 @@ export default [{ path: '/opsVisualization', name: '系统监控', component: Layout, + redirect: '/opsVisualization/tuobu', meta: { keepAlive: true, isTab: false, @@ -94,10 +95,13 @@ export default [{ }, children: [ { - path: "alarmProcess", - name: '系统监控1', + path: 'tuobu', + name: '系统监控', + meta: { + i18n: 'dashboard' + }, component: () => - import( /* webpackChunkName: "page" */ '@/page/opsVisualization/alarmProcess'), + import( /* webpackChunkName: "views" */ '@/page/opsVisualization/tuobu') }, { path: "systemMonitoring", @@ -106,20 +110,17 @@ export default [{ import( /* webpackChunkName: "page" */ '@/page/opsVisualization/systemMonitoring'), }, { - path: "serviceDataOAM", + path: "alarmProcess", name: '业务数据监控', component: () => - import( /* webpackChunkName: "page" */ '@/page/opsVisualization/serviceDataOAM'), + import( /* webpackChunkName: "page" */ '@/page/opsVisualization/alarmProcess'), }, { - path: 'tuobu', - name: 'tuobu', - meta: { - i18n: 'dashboard' - }, + path: "serviceDataOAM", + name: '报警信息记录', component: () => - import( /* webpackChunkName: "views" */ '@/page/opsVisualization/tuobu') - } + import( /* webpackChunkName: "page" */ '@/page/opsVisualization/serviceDataOAM'), + }, ] }, ] diff --git a/src/router/views/index.js b/src/router/views/index.js index 06682fb..6f9f9a6 100644 --- a/src/router/views/index.js +++ b/src/router/views/index.js @@ -243,35 +243,5 @@ export default [{ component: () => import( /* webpackChunkName: "views" */ '@/views/system/systemSetting') }] -}, -{ - path: '/opsVisualization', - component: Layout, - redirect: '/opsVisualization/index', - children: [{ - path: 'index', - name: 'index', - meta: { - i18n: 'dashboard' - }, - component: () => - import( /* webpackChunkName: "views" */ '@/views/opsVisualization/index') - }, { - path: 'alarmProcess', - name: 'alarmProcess', - meta: { - i18n: 'dashboard' - }, - component: () => - import( /* webpackChunkName: "views" */ '@/views/opsVisualization/alarmProcess') - }, { - path: 'tuobu', - name: 'tuobu', - meta: { - i18n: 'dashboard' - }, - component: () => - import( /* webpackChunkName: "views" */ '@/views/opsVisualization/tuobu') - }] -}, +} ]