diff --git a/ruoyi-ui/src/common/menuData.js b/ruoyi-ui/src/common/menuData.js index 9827e639..f58ac82d 100644 --- a/ruoyi-ui/src/common/menuData.js +++ b/ruoyi-ui/src/common/menuData.js @@ -156,6 +156,11 @@ export default [ component: "maintenanceOperations/statisticalAnalysis/index.vue", } ] + }, { + title: "边坡光伏", + name: "photovoltaic", + path: "/maintain/photovoltaic", + component: "developing.vue" } ] }, @@ -239,7 +244,7 @@ export default [ ], }, { - title: "配置中心", + title: "安全生产", name: "config", position: "right", path: "/config", diff --git a/ruoyi-ui/src/views/JiHeExpressway/images/digital/digitalTollStation.jpg b/ruoyi-ui/src/views/JiHeExpressway/images/digital/digitalTollStation.jpg index 3c5b99e5..da1a71bb 100644 Binary files a/ruoyi-ui/src/views/JiHeExpressway/images/digital/digitalTollStation.jpg and b/ruoyi-ui/src/views/JiHeExpressway/images/digital/digitalTollStation.jpg differ diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/datav/roadNet/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/datav/roadNet/index.vue index 0630a48a..477fc9f0 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/datav/roadNet/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/datav/roadNet/index.vue @@ -3,7 +3,11 @@
{{ item.dataAll.title }}:{{ item.dataAll.value }}{{ item.dataAll.unit }}
++ {{ item.dataAll.title }}: + {{ item.dataAll.value }}/{{ item.dataAll.total }} + {{ item.dataAll.unit }} +
{{ item.dataGreen.title }}:{{ item.dataGreen.value }}{{ item.dataGreen.unit }}
@@ -144,8 +148,37 @@ export default { }, mounted(){ this.initData(); + this.mockData(); }, methods: { + mockData(){ + const mock = ()=>{ + let num1 = this.summary[1].dataAll.value + Math.floor(Math.random()*200); + this.summary[1].dataAll.value = num1; + this.summary[1].dataRed.value = (num1/this.summary[1].dataGreen.value*100).toFixed(2); + + let num2 = +this.summary[2].dataAll.value + Math.random()*0.01; + this.summary[2].dataAll.value = num2.toFixed(2); + this.summary[2].dataRed.value = (num2/this.summary[2].dataGreen.value*100).toFixed(2); + + let num3 = this.summary[3].dataAll.value + Math.floor(Math.random()*20); + this.summary[3].dataAll.value = num3; + this.summary[3].dataRed.value = (num3/this.summary[3].dataGreen.value*100).toFixed(2); + + let num4 = 1154 + Math.random()*120; + this.summary[4].dataAll.value = num4.toFixed(2); + this.summary[4].dataGreen.value = (num4/this.summary[4].dataAll.total*100).toFixed(2); + + let num5 = 81 + Math.random()*20; + this.summary[5].dataAll.value = num5.toFixed(2); + this.summary[5].dataGreen.value = (num5/this.summary[5].dataAll.total*100).toFixed(2); + } + mock(); + let interval = setInterval(()=>{ + mock(); + }, 1500); + this.$once("hook:beforeDestroy", () => this.clearInterval(interval)); + }, initData() { this.summary = [ { @@ -156,31 +189,31 @@ export default { }, { width:376, - dataAll: { title: "接入数据总数", value: 1213213447, unit: "条" }, + dataAll: { title: "接入数据总数", value: 1251446, unit: "条" }, dataGreen: { title: "昨日接入数", value: 20624577, unit: "条" }, dataRed: { title: "环比", value: 0.04, unit: "%" } }, { width: 287, - dataAll: { title: "存储占用量", value: 86059, unit: "GB" }, + dataAll: { title: "存储占用量", value: 32, unit: "GB" }, dataGreen: { title: "昨日新增", value: 55, unit: "GB" }, dataRed: { title: "环比", value: 20.5, unit: "%" } }, { width: 376, - dataAll: { title: "服务调用总数", value: 43392688, unit: "次" }, - dataGreen: { title: "昨日服务数", value: 1210345, unit: "次" }, + dataAll: { title: "服务调用总数", value: 752524, unit: "次" }, + dataGreen: { title: "昨日服务数", value: 21034145, unit: "次" }, dataRed: { title: "环比", value: 0.04, unit: "%" } }, { width:226, - dataAll: { title: "内存", value: "1274G/1800G", unit: "" }, + dataAll: { title: "内存", value: 0, total:1800, unit: "G" }, dataGreen: { title: "使用率", value: 70.73, unit: "%" } }, { width: 226, - dataAll: { title: "CPU", value: "71/126", unit: "" }, - dataGreen: { title: "使用率", value: 56.35, unit: "类" } + dataAll: { title: "CPU", value: 0, total:126, unit: "" }, + dataGreen: { title: "使用率", value: 56.35, unit: "%" } } ]; this.manage = [ @@ -224,7 +257,7 @@ export default { diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/assets/charts2.js b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/assets/charts2.js index 54813907..5f8879ce 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/assets/charts2.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/assets/charts2.js @@ -132,7 +132,7 @@ var options = { }, color: colorList, legend: { - top: 100, + top: "middle", right: 20, orient: "vertical", //改变排列方式 icon: "circle", //改变legend小图标形状 @@ -146,12 +146,13 @@ var options = { rich: { a: { align: "left", - width: 45, + width: 60, fontSize: 12, }, b: { align: "left", fontSize: 12, + width: 50, color: "#37E7FF", marginLeft: 0, }, diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/index.vue index 37c7c051..958655e5 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/index.vue @@ -96,9 +96,9 @@