diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/assets/charts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/assets/charts.js index b26fcf69..3686c892 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/assets/charts.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/assets/charts.js @@ -108,7 +108,7 @@ var options = { color:"#00E4BB", }, data:[{ - name:'增收金额', + name:'高清网络球型摄像机', itemStyle:{ color:new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ offset: 0, diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/components/deviceUptime/assets/charts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/components/deviceUptime/assets/charts.js new file mode 100644 index 00000000..c955c485 --- /dev/null +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/components/deviceUptime/assets/charts.js @@ -0,0 +1,183 @@ +import { options } from "runjs"; + +let data = [100, 0, 0, 0, 40, 40,40, 64,40, 64,40, 64] +let indicator = [ + + { name: '智能设备箱', max: 100 }, + { name: '智能行车诱导系统', max: 100 }, + { name: '一类交通量调查站', max: 100 }, + { name: '激光疲劳唤醒系统', max: 100 }, + { name: '合流区预警系统', max: 100 }, + { name: '毫米波雷达', max: 100 }, + { name: '护碰撞预警系统', max: 100 }, + { name: '路段语音广播系统', max: 100 }, + { name: '气象检测器', max: 100 }, + { name: '站前悬臂式可变信息标志', max: 100 }, + { name: '雨棚可变信息标志', max: 100 }, + { name: '门架式可变信息标志', max: 100 }, + { name: '180°全景摄像机', max: 100 }, + { name: '360°全景摄像机', max: 100 }, + { name: '高清网络枪型固定摄像机', max: 100 }, + { name: '高清网络球形摄像机', max: 100 }, +] + +let options = { + backgroundColor: '#000928', + tooltip: {}, + radar: { + center: ['50%', '50%'], + radius: '75%', + nameGap: 0, + indicator: indicator, + splitLine: { + show: false + + }, + splitArea: { + show: false + }, + axisLine: { + show: true + }, + name: { + textStyle: { + color: '#F2F3F5', + fontSize: '20', + borderRadius: 3, + padding: [3, 5] + } + }, + }, + series: [{ + type: 'radar', + data: [data], + name: '安全作业', + label: { + show: true, + formatter: function (params) { + console.log(params) + return params.value; + }, + color: '#fff', + // position:[-20,-10,-10,-10], + align: 'right', + distance: 10, + align: 'right' + }, + symbolSize: 10, + lineStyle: { //边缘颜色 + width: 2, + color: '#2287FE' + }, + itemStyle: { + borderWidth: 0, + color: '#ffffff00', + borderColor: '#2287F00', + }, + areaStyle: { + color: '#2287FE60', + opacity: 1 + } + }, + { + type: 'radar', + name: '安全作业', + data: [ + [100, 100, 100, 100, 100, 100, 100, 100,100, 100, 100, 100, 100, 100, 100, 100], + ], + + symbol: 'none', + lineStyle: { + width: 1 + }, + itemStyle: { + color: '#2AD1BC' + }, + + areaStyle: { + color: '#2AD1BC29', + opacity: 0.1 + } + }, + { + type: 'radar', + name: '安全作业', + data: [ + [80, 80, 80, 80, 80, 80, 80, 80,80, 80, 80, 80, 80, 80, 80, 80] + ], + + symbol: 'none', + lineStyle: { + width: 1 + }, + itemStyle: { + color: '#2AD1BC' + }, + + areaStyle: { + color: '#2AD1BC29', + opacity: 0.2 + } + }, + { + type: 'radar', + name: '安全作业', + data: [ + [60, 60, 60, 60, 60, 60, 60, 60,60, 60, 60, 60, 60, 60, 60, 60], + ], + + symbol: 'none', + lineStyle: { + width: 1 + }, + itemStyle: { + color: '#2AD1BC' + }, + + areaStyle: { + color: '#2AD1BC29', + opacity: 0.1 + } + }, + { + type: 'radar', + name: '安全作业', + data: [ + [40, 40, 40, 40, 40, 40, 40, 40,40, 40, 40, 40, 40, 40, 40, 40], + ], + symbol: 'none', + lineStyle: { + width: 1 + }, + itemStyle: { + color: '#2AD1BC' + }, + + areaStyle: { + color: '#2AD1BC29', + opacity: 0.1 + } + }, + { + type: 'radar', + name: '安全作业', + data: [ + [20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20], + ], + symbol: 'none', + lineStyle: { + width: 1 + }, + itemStyle: { + color: '#2AD1BC' + }, + + areaStyle: { + color: '#2AD1BC29', + opacity: 0.1 + } + }, + ] +}; + +export default options; \ No newline at end of file diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/components/deviceUptime/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/components/deviceUptime/index.vue new file mode 100644 index 00000000..e69de29b diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/index.vue index 53fe3d88..97a22e8b 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/statisticalAnalysis/index.vue @@ -3,13 +3,48 @@
- +
+
+
+ 设备数 +
{{ item.num }}
+ +
+
+
+ + 枪机 +
+
+
+
+ 在线: +
+ {{ item.online }}% +
+
+
+ 离线: +
+ {{ item.outline }}% +
+
+
+ 丢包: +
+ {{ item.lost }}% +
+
+
+
+
+
- 刷新 - 导出Excel + 刷新 + 导出Excel
@@ -97,6 +132,104 @@ import * as echarts from "echarts"; }, data(){ return { + equipments:[ + { + num : 315, + online: 30, + outline: 30, + lost: 40 + }, + { + num : 315, + online: 30, + outline: 30, + lost: 40 + }, + { + num : 315, + online: 30, + outline: 30, + lost: 40 + }, + { + num : 315, + online: 30, + outline: 30, + lost: 40 + }, + { + num : 315, + online: 30, + outline: 30, + lost: 40 + }, + { + num : 315, + online: 30, + outline: 30, + lost: 40 + }, + { + num : 315, + online: 30, + outline: 30, + lost: 40 + }, + { + num : 315, + online: 30, + outline: 30, + lost: 40 + }, + { + num : 315, + online: 30, + outline: 30, + lost: 40 + }, + { + num : 315, + online: 30, + outline: 30, + lost: 40 + }, + { + num : 315, + online: 30, + outline: 30, + lost: 40 + }, + { + num : 315, + online: 30, + outline: 30, + lost: 40 + }, + { + num : 315, + online: 30, + outline: 30, + lost: 40 + }, + { + num : 315, + online: 30, + outline: 30, + lost: 40 + }, + { + num : 315, + online: 30, + outline: 30, + lost: 40 + }, + { + num : 315, + online: 30, + outline: 30, + lost: 40 + }, + ], activeName:"first", tableData: [{ date: '2023-12-31 13:00:00', @@ -254,6 +387,172 @@ import * as echarts from "echarts";