diff --git a/ruoyi-ui/src/api/board/GPS.js b/ruoyi-ui/src/api/board/GPS.js index e69de29..5bbe4a2 100644 --- a/ruoyi-ui/src/api/board/GPS.js +++ b/ruoyi-ui/src/api/board/GPS.js @@ -0,0 +1,18 @@ +import request from '@/utils/request' + +// 左上 +export function alarmStats(query) { + return request({ + // baseURL:'/monitoring-api', + url: '/business/monitorPlatform/alarmStats', + method: 'get', + }) +} +// 右上 +export function subDevice(query) { + return request({ + // baseURL:'/monitoring-api', + url: '/business/monitorPlatform/SubDevice', + method: 'post', + }) +} diff --git a/ruoyi-ui/src/api/board/equipment.js b/ruoyi-ui/src/api/board/equipment.js new file mode 100644 index 0000000..ba29b76 --- /dev/null +++ b/ruoyi-ui/src/api/board/equipment.js @@ -0,0 +1,28 @@ +import request from '@/utils/request' + +// 树 +export function treeList(query) { + return request({ + // baseURL:'/monitoring-api', + url: '/business/monitorPlatform/treeList', + method: 'get', + }) +} +// 中下 +export function selectDeviceByDeviceModeByMonitorUnitId(query) { + return request({ + // baseURL:'/monitoring-api', + url: '/business/monitorPlatform/selectDeviceByDeviceModeByMonitorUnitId', + method: 'post', + data:query + }) +} +// 右 +export function selectDeviceModeFunctionByFunctionType(query) { + return request({ + // baseURL:'/monitoring-api', + url: '/business/monitorPlatform/selectDeviceModeFunctionByFunctionType', + method: 'post', + data:query + }) +} diff --git a/ruoyi-ui/src/api/board/index.js b/ruoyi-ui/src/api/board/index.js index 8ea2845..78ce192 100644 --- a/ruoyi-ui/src/api/board/index.js +++ b/ruoyi-ui/src/api/board/index.js @@ -1,9 +1,28 @@ import request from '@/utils/request' -// 查询定时任务调度列表 +// 左下 export function monitorUnitPercentage(query) { return request({ - url: '/business/monitorUnit/monitorUnitPercentage', + // baseURL:'/monitoring-api', + url: '/business/monitorPlatform/monitorUnitPercentage', + method: 'get', + }) +} + +// 左上 +export function monitorPercentage(query) { + return request({ + // baseURL:'/monitoring-api', + url: '/business/monitorPlatform/monitorPercentage', + method: 'get', + }) +} + +// 中 +export function allNums(query) { + return request({ + // baseURL:'/monitoring-api', + url: '/business/monitorPlatform/allNums', method: 'get', }) } diff --git a/ruoyi-ui/src/api/board/smartScene.js b/ruoyi-ui/src/api/board/smartScene.js index e69de29..65ab379 100644 --- a/ruoyi-ui/src/api/board/smartScene.js +++ b/ruoyi-ui/src/api/board/smartScene.js @@ -0,0 +1,10 @@ +import request from '@/utils/request' + +// 左上 +export function sceneAllNums(query) { + return request({ + // baseURL:'/monitoring-api', + url: '/business/monitorPlatform/sceneAllNums', + method: 'get', + }) +} diff --git a/ruoyi-ui/src/assets/board/allScenes/bg.jpg b/ruoyi-ui/src/assets/board/allScenes/bg.jpg new file mode 100644 index 0000000..b49a5de Binary files /dev/null and b/ruoyi-ui/src/assets/board/allScenes/bg.jpg differ diff --git a/ruoyi-ui/src/assets/board/allScenes/bg1.png b/ruoyi-ui/src/assets/board/allScenes/bg1.png new file mode 100644 index 0000000..987361f Binary files /dev/null and b/ruoyi-ui/src/assets/board/allScenes/bg1.png differ diff --git a/ruoyi-ui/src/assets/board/allScenes/item.png b/ruoyi-ui/src/assets/board/allScenes/item.png new file mode 100644 index 0000000..f715f75 Binary files /dev/null and b/ruoyi-ui/src/assets/board/allScenes/item.png differ diff --git a/ruoyi-ui/src/components/BoardTopNav/index.vue b/ruoyi-ui/src/components/BoardTopNav/index.vue index 963e374..6f2e46a 100644 --- a/ruoyi-ui/src/components/BoardTopNav/index.vue +++ b/ruoyi-ui/src/components/BoardTopNav/index.vue @@ -1,5 +1,6 @@ @@ -77,4 +87,36 @@ export default { background-image: url("~@/assets/board/common/subheadClick.png"); color: #f3f3f3; } + +.title { + position: absolute; + top: 3%; + left: 50%; + font-size: 2vw; + letter-spacing: 12px; + transform: translate(-50%, -50%); + color: #f6f6f6; +} +.rightImg{ + transform: rotateX(180deg); + background-image: url('~@/assets/board/common/subheadClick1.png'); + background-repeat: no-repeat; + background-size: 100% 100%; + position: absolute; + width: 8vw; + height: 1.66vw; + top: 3.8%; + left: 71%; +} +.right{ + position: absolute; + width: 8vw; + height: 1.66vw; + top: 3.8%; + left: 71%; + line-height: 1.66vw; + font-size: 0.8vw; + color: #d4d4d4; + text-align: center; +} diff --git a/ruoyi-ui/src/router/index.js b/ruoyi-ui/src/router/index.js index 23b0508..20d7c46 100644 --- a/ruoyi-ui/src/router/index.js +++ b/ruoyi-ui/src/router/index.js @@ -93,37 +93,43 @@ export const constantRoutes = [ path: '/board1', component: () => import('@/views/board/index'), name: 'Index', - meta: { title: '1', icon: 'dashboard', affix: true } + meta: { title: 'index', icon: 'dashboard', affix: true } }, { path: '/board2', component: () => import('@/views/board/equipmentMonitoring'), name: 'Index', - meta: { title: '2', icon: 'dashboard', affix: true } + meta: { title: 'equipmentMonitoring', icon: 'dashboard', affix: true } }, { path: '/board3', component: () => import('@/views/board/GPS'), name: 'Index', - meta: { title: '3', icon: 'dashboard', affix: true } + meta: { title: 'GPS', icon: 'dashboard', affix: true } }, { path: '/board4', component: () => import('@/views/board/senso'), name: 'Index', - meta: { title: '4', icon: 'dashboard', affix: true } + meta: { title: 'senso', icon: 'dashboard', affix: true } }, { path: '/board5', component: () => import('@/views/board/smartScene'), name: 'Index', - meta: { title: '5', icon: 'dashboard', affix: true } + meta: { title: 'smartScene', icon: 'dashboard', affix: true } }, { path: '/board6', component: () => import('@/views/board/equipment'), name: 'Index', - meta: { title: '5', icon: 'dashboard', affix: true } + meta: { title: 'equipment', icon: 'dashboard', affix: true } + }, + { + path: '/board7', + component: () => import('@/views/board/allScenes'), + name: 'Index', + meta: { title: 'allScenes', icon: 'dashboard', affix: true } }, ] diff --git a/ruoyi-ui/src/views/board/GPS/index.vue b/ruoyi-ui/src/views/board/GPS/index.vue index 2d622c6..23ff2e5 100644 --- a/ruoyi-ui/src/views/board/GPS/index.vue +++ b/ruoyi-ui/src/views/board/GPS/index.vue @@ -68,6 +68,10 @@ import Chart from "@/components/Charts/Chart"; import BoardTopNav from '@/components/BoardTopNav' import vueSeamlessScroll from "vue-seamless-scroll"; import * as echarts from 'echarts'; +import { + alarmStats, + subDevice +} from '@/api/board/GPS' let map = null import red from '@/assets/board/GPS/red.png' @@ -194,53 +198,9 @@ export default { } }, mounted() { - let option1 = { - ...this.chart1Option, - yAxis: { - axisLine: { - show: true, - lineStyle: { - color: "#fffa", - }, - }, - splitLine: { - show: true, - lineStyle: { - color: "#fff4", - type: 'dashed' - }, - }, - type: "category", - data: this.chart1Data.map(e => e.name), - }, - series: [ - { - name: "数量", - type: "bar", - yAxisIndex: 0, - data: this.chart1Data.map(e => e.value), - barWidth: '60%', - itemStyle: { - normal: { - show: true, - color: new echarts.graphic.LinearGradient(1, 0, 0, 0, [ - { - offset: 0, - color: "#00faff", - }, - { - offset: 1, - color: "#1eadf1", - }, - ]), - }, - }, - }, - ], - } - this.$refs.chart1.setData(option1) this.createMap() this.setMarker() + this.getAlarmStats() }, methods: { createMap(){ @@ -261,6 +221,58 @@ export default { }); map.add(marker) map.add(marker1) + }, + async getAlarmStats(){ + const {rows:data} = await alarmStats() + let option1 = { + ...this.chart1Option, + yAxis: { + axisLine: { + show: true, + lineStyle: { + color: "#fffa", + }, + }, + splitLine: { + show: true, + lineStyle: { + color: "#fff4", + type: 'dashed' + }, + }, + type: "category", + data: data.map(e => e.monitorUnitName), + }, + series: [ + { + name: "数量", + type: "bar", + yAxisIndex: 0, + data: data.map(e => e.sum), + barWidth: '60%', + itemStyle: { + normal: { + show: true, + color: new echarts.graphic.LinearGradient(1, 0, 0, 0, [ + { + offset: 0, + color: "#00faff", + }, + { + offset: 1, + color: "#1eadf1", + }, + ]), + }, + }, + }, + ], + } + this.$refs.chart1.setData(option1) + }, + async getAubDevice(){ + let data = await subDevice() + console.log(data) } } }; diff --git a/ruoyi-ui/src/views/board/allScenes/index.vue b/ruoyi-ui/src/views/board/allScenes/index.vue new file mode 100644 index 0000000..e8c40a5 --- /dev/null +++ b/ruoyi-ui/src/views/board/allScenes/index.vue @@ -0,0 +1,158 @@ + + + + diff --git a/ruoyi-ui/src/views/board/equipment/index.vue b/ruoyi-ui/src/views/board/equipment/index.vue index e3f9ad1..b523139 100644 --- a/ruoyi-ui/src/views/board/equipment/index.vue +++ b/ruoyi-ui/src/views/board/equipment/index.vue @@ -7,7 +7,9 @@ {{ node.label }} @@ -82,6 +84,11 @@