diff --git a/src/api/dataMonitor.js b/src/api/dataMonitor.js new file mode 100644 index 0000000..b9848f6 --- /dev/null +++ b/src/api/dataMonitor.js @@ -0,0 +1,32 @@ +import request from '@/utils/request' +const api = "/mosty-api/mosty-gsxt"; +/** + * 数据监控相关API接口 + */ + +/** + * 获取数据监测统计数据 + * 接口地址:api+ /gsxt/sjjc/jrsjtj + * @returns {Promise} 统计数据 + */ +export function getStatisticsData() { + return request({ + url: api + '/gsxt/sjjc/jrsjtj', + method: 'get' + }) +} + +/** + * 获取数据接入状态列表 + * 接口地址:api+ /gsxt/sjjc/selectList + * @param {string} jklx 监控类型:01 公安内网数据、02 政务数据、03 社会数据、04 非结构化数据 + * @returns {Promise} 监控数据列表 + */ +export function getMonitorList(params) { + return request({ + url: api + '/gsxt/sjjc/selectList', + method: 'get', + params: params + }) +} + diff --git a/src/router/index.js b/src/router/index.js index 6eac2e5..329f8b9 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -485,6 +485,31 @@ export const publicRoutes = [ } ] }, + { + path: "/dataMonitor", + name: "dataMonitor", + meta: { title: "数据监控", icon: "article" }, + children: [ + { + path: "/resourceMonitoring", + name: "resourceMonitoring", + component: () => import("@/views/backOfficeSystem/dataMonitor/resourceMonitoring/index.vue"), + meta: { + title: "数据资源检测", + icon: "article" + } + }, + { + path: "/onlineUserMonitoring", + name: "onlineUserMonitoring", + component: () => import("@/views/backOfficeSystem/dataMonitor/onlineUserMonitoring/index.vue"), + meta: { + title: "在线用户监控", + icon: "article" + } + } + ] + }, { path: "/IntelligentControl", name: "IntelligentControl", diff --git a/src/views/backOfficeSystem/dataMonitor/components/DataTableCard.vue b/src/views/backOfficeSystem/dataMonitor/components/DataTableCard.vue new file mode 100644 index 0000000..6d9b293 --- /dev/null +++ b/src/views/backOfficeSystem/dataMonitor/components/DataTableCard.vue @@ -0,0 +1,297 @@ + + + + + + {{ title }} + + + + + + + + + + + + + + + {{ jklxCname[row.jklx] }} + + + + + + + + + + {{ row.gxsj || '' }} + + + + + + + + {{ row.online ? '在线' : '离线' }} + + + + + + + + + + + diff --git a/src/views/backOfficeSystem/dataMonitor/onlineUserMonitoring/index.vue b/src/views/backOfficeSystem/dataMonitor/onlineUserMonitoring/index.vue new file mode 100644 index 0000000..2d4f04d --- /dev/null +++ b/src/views/backOfficeSystem/dataMonitor/onlineUserMonitoring/index.vue @@ -0,0 +1,5 @@ + + + 开发中。。 + + diff --git a/src/views/backOfficeSystem/dataMonitor/resourceMonitoring/index.vue b/src/views/backOfficeSystem/dataMonitor/resourceMonitoring/index.vue new file mode 100644 index 0000000..18e7cd8 --- /dev/null +++ b/src/views/backOfficeSystem/dataMonitor/resourceMonitoring/index.vue @@ -0,0 +1,336 @@ + + + + + + + + + + + + + + + + + + {{ item.title }} + {{ item.value }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +