diff --git a/ruoyi-ui/src/App.vue b/ruoyi-ui/src/App.vue index 93f035b3..cc8374da 100644 --- a/ruoyi-ui/src/App.vue +++ b/ruoyi-ui/src/App.vue @@ -21,16 +21,19 @@ export default { name: "App", data() { return { - path: this.$route.path, + // path: this.$route.path, }; }, + mounted(){ + this.$store.commit("menu/resetRecent"); + }, components: { websocket, // websocket_phone }, watch: { $route(to, from) { - this.path = this.$route.path; + // this.path = this.$route.path; }, }, metaInfo() { diff --git a/ruoyi-ui/src/api/perception/meteorologyCheck.js b/ruoyi-ui/src/api/perception/meteorologyCheck.js index 59101ae2..6613d948 100644 --- a/ruoyi-ui/src/api/perception/meteorologyCheck.js +++ b/ruoyi-ui/src/api/perception/meteorologyCheck.js @@ -63,3 +63,19 @@ export function getListVisibility() { method: "get", }); } + +// 路网交通状况 +export function getTrafficConditions() { + return request({ + url: "/business/weatherMonitoring/getTrafficConditions", + method: "get", + }); +} + +// 获取县城经纬度 +export function getRegionList() { + return request({ + url: "/business/region/list", + method: "get", + }); +} diff --git a/ruoyi-ui/src/api/service/PublishingChannelManagement.js b/ruoyi-ui/src/api/service/PublishingChannelManagement.js new file mode 100644 index 00000000..ee15d18e --- /dev/null +++ b/ruoyi-ui/src/api/service/PublishingChannelManagement.js @@ -0,0 +1,61 @@ +import request from "@/utils/request"; + +// 发布渠道列表 +export function getChannelsList(pageNum, pageSize, data) { + return request({ + url: `/business/channels/list?pageNum=${pageNum}&pageSize=${pageSize}`, + method: "post", + data, + }); +} + +// 导出发布渠道列表 +export function getChannelsExport() { + return request({ + url: "/business/channels/export", + method: "post", + }); +} + +// 获取发布渠道详情 +export function getChannels(id) { + return request({ + url: "/business/channels/" + id, + method: "get", + }); +} + +// 新增发布渠道 +export function addChannels(data) { + return request({ + url: "/business/channels", + method: "post", + data, + }); +} + +// 修改发布渠道 +export function editChannels(data) { + return request({ + url: "/business/channels", + method: "put", + data, + }); +} + +// 删除发布渠道 +export function delChannels(id) { + return request({ + url: "/business/channels/" + id, + method: "delete", + }); +} + +// 发布渠道修改状态 +export function updateEnabledChannels(data) { + return request({ + url: "business/channels/updateEnabled", + method: "post", + data, + }); +} diff --git a/ruoyi-ui/src/store/modules/menu.js b/ruoyi-ui/src/store/modules/menu.js index 6f0103f4..bd024a7c 100644 --- a/ruoyi-ui/src/store/modules/menu.js +++ b/ruoyi-ui/src/store/modules/menu.js @@ -1,3 +1,4 @@ +import Vue from "vue" const state = { recentPages: [], isRecentOpen:"", @@ -5,12 +6,12 @@ const state = { const mutations = { saveRecent(state){ - sessionStorage.setItem("recentPages", JSON.stringify(state.recentPages)); + localStorage.setItem("recentPages", JSON.stringify(state.recentPages)); }, addRecent(state, item) { if(state.recentPages.length == 0 ){ - state.recentPages = JSON.parse(sessionStorage.getItem("recentPages") || "[]"); + state.recentPages = JSON.parse(localStorage.getItem("recentPages") || "[]"); } let temp; state.recentPages.forEach((unit,index)=>{ @@ -29,13 +30,22 @@ const state = { mutations.saveRecent(state); }, + pinRecent(state, item){ + state.recentPages.forEach((unit, index) => { + if (unit.path == item.path) { + // unit.isPinned = !unit.isPinned; + Vue.prototype.$set(unit, "isPinned", !unit.isPinned); + } + }); + mutations.saveRecent(state); + }, openRecent(state){ state.isRecentOpen = true; - sessionStorage.setItem("isRecentOpen", true); + localStorage.setItem("isRecentOpen", true); }, closeRecent(state){ state.isRecentOpen = false; - sessionStorage.setItem("isRecentOpen", false); + localStorage.setItem("isRecentOpen", false); }, removeRecent(state, item) { let i = state.recentPages.findIndex(unit => unit.path == item.path); @@ -43,9 +53,15 @@ const state = { mutations.saveRecent(state); }, resetRecent(state, para){ - state.isRecentOpen = false; - sessionStorage.setItem("isRecentOpen", false); - sessionStorage.removeItem("recentPages") + let temp = JSON.parse(localStorage.getItem("recentPages") || "[]"); + state.recentPages = []; + temp.forEach((unit, index) => { + if (unit.isPinned) { + state.recentPages.push(unit); + } + }); + localStorage.setItem("recentPages", JSON.stringify(state.recentPages)); + state.isRecentOpen = true; } } @@ -53,7 +69,7 @@ const state = { const getters = { isRecentOpen(state){ if (state.isRecentOpen === ""){ - state.isRecentOpen = JSON.parse(sessionStorage.getItem("isRecentOpen")) || false; + state.isRecentOpen = JSON.parse(localStorage.getItem("isRecentOpen")) || false; } return state.isRecentOpen; } diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/RecentPages/ContextMenu.vue b/ruoyi-ui/src/views/JiHeExpressway/components/RecentPages/ContextMenu.vue new file mode 100644 index 00000000..8d61145c --- /dev/null +++ b/ruoyi-ui/src/views/JiHeExpressway/components/RecentPages/ContextMenu.vue @@ -0,0 +1,36 @@ + + + \ No newline at end of file diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/RecentPages/index.vue b/ruoyi-ui/src/views/JiHeExpressway/components/RecentPages/index.vue index 1450ffd4..0562463e 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/RecentPages/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/components/RecentPages/index.vue @@ -1,24 +1,39 @@ + + diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/MeteorologicalDetection/components/chart.js b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/MeteorologicalDetection/components/chart.js new file mode 100644 index 00000000..8d786f83 --- /dev/null +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/MeteorologicalDetection/components/chart.js @@ -0,0 +1,114 @@ +import * as echarts from "echarts"; + +export const lineChartOption = { + color: ["#2AD9FD"], + xAxis: { + name: "时", + type: "category", + // boundaryGap: ["15%", "15%"], + nameTextStyle: { + color: "#2AD9FD", + align: "right", + fontSize: 15, + padding: [0, -15, 0, 0], + }, + boundaryGap: false, + data: ['00:00','02:00','04:00','06:00'], + axisTick: { + show: false, + }, + axisLabel: { + color: "#fff", + fontSize: 12, + }, + axisLine: { + lineStyle: { + color: "#668598", + }, + }, + }, + yAxis: { + name: "辆", + type: "value", + nameTextStyle: { + color: "#2AD9FD", + // align: "right", + fontSize: 15, + // padding: [0, -15, 0, 0], + }, + // nameGap: 24, + splitLine: { + lineStyle: { + type: [6, 9], + color: "rgba(255,255,255, .3)", + // dashOffset: [10, 10], + // cap: 21, + // width: 2 + }, + }, + axisLabel: { + color: "#fff", + fontSize: 12, + formatter: "{value}", + }, + }, + grid: { + left: 33, + top: 33, + bottom: 24, + right: 36, + }, + tooltip: { + trigger: "axis", + backgroundColor: "rgba(0,0,0,0.36)", + borderWidth: 0, + textStyle: { + color: "#fff", + }, + formatter: "{b}:{c}", + // formatter: function([axisData]) { + // console.log(axisData) + // let str = axisData.name + ' ' + axisData.data + '辆
'; + // // params.forEach(item => { + // // if (item.seriesName === '供温' || item.seriesName === '回温') { + // // str += item.marker + item.seriesName + ' : ' + item.data.value + ' ℃' + '
'; + // // } else if (item.seriesName === '压力值(Mpa)') { + // // // 柱状图渐变时设置marker + // // item.marker = ''; + // // str += item.marker + item.seriesName + ' : ' + item.data.value + ' m'; + // // } + // // }); + // return str; + // } + }, + legend: { + textStyle: { + color: '#2AD9FD' + } + }, + series: [ + { + data: [1,2,3,4], + type: "line", + showSymbol: false, + smooth: true, + name: '温度(℃)', + lineStyle: { + color: "#2AD9FD", + }, + areaStyle: { + opacity: 0.8, + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { + offset: 0, + color: "rgb(90, 227, 255, .9)", + }, + { + offset: 1, + color: "rgba(42,217,253,0)", + }, + ]), + }, + }, + ], +}; diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/MeteorologicalDetection/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/MeteorologicalDetection/index.vue new file mode 100644 index 00000000..57ad41ac --- /dev/null +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/MeteorologicalDetection/index.vue @@ -0,0 +1,218 @@ + + + + + diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RemoteMachine/components/DeviceControlDialog.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RemoteMachine/components/DeviceControlDialog.vue new file mode 100644 index 00000000..200357eb --- /dev/null +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RemoteMachine/components/DeviceControlDialog.vue @@ -0,0 +1,55 @@ + + + + + diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RemoteMachine/components/DeviceParams.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RemoteMachine/components/DeviceParams.vue new file mode 100644 index 00000000..dc8d4b51 --- /dev/null +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RemoteMachine/components/DeviceParams.vue @@ -0,0 +1,199 @@ + + + + + diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RemoteMachine/components/DeviceParamsMulti.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RemoteMachine/components/DeviceParamsMulti.vue new file mode 100644 index 00000000..64b0dda6 --- /dev/null +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RemoteMachine/components/DeviceParamsMulti.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RemoteMachine/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RemoteMachine/index.vue new file mode 100644 index 00000000..3053c351 --- /dev/null +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RemoteMachine/index.vue @@ -0,0 +1,195 @@ + + + + + + \ No newline at end of file diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/index.vue index 411f9696..556bcb0f 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/index.vue @@ -12,19 +12,12 @@ - + - + @@ -131,6 +121,7 @@ export default { this.data = { roadName: null, deviceStateLiteral: deviceInfo?.data.formatValue.deviceState, + ...this.data }; // console.log( @@ -151,9 +142,8 @@ export default { methods: { async getDeviceInfo() { return request({ - url: `/business/device/properties/latest/${ - this.dialogData.iotDeviceId || "10.0.36.143-1883" - }/3`, + url: `/business/device/properties/latest/${this.dialogData.iotDeviceId || "10.0.36.143-1883" + }/3`, method: "get", params: {}, }); @@ -203,7 +193,7 @@ div.switcher { align-items: center; justify-content: end; - > div { + >div { font-size: 16px; padding: 6px 12px; } diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/components/DeviceParams.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/components/DeviceParams.vue index 3241e95e..99d76608 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/components/DeviceParams.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/components/DeviceParams.vue @@ -63,12 +63,15 @@ export default { }).then(result => { if (result.code != 200) return Message.error("操作失败"); result.data.forEach(item => { - devs.push({ - label: item.propertyName, - key: item.property, - gridColumn: 3, - }); - this.devicesData[item.property] = item.formatValue; + if (item.propertyName) { + devs.push({ + label: item.propertyName, + key: item.property, + gridColumn: 3, + }); + this.devicesData[item.property] = item.formatValue; + } + }); this.devicesList = devs; }) diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/index.vue index ba20ca4d..a9008e70 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/index.vue @@ -156,11 +156,18 @@ div.switcher { diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/device/strategy/components/taskEditDialog.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/device/strategy/components/taskEditDialog.vue index e2d45106..39254f5b 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/device/strategy/components/taskEditDialog.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/device/strategy/components/taskEditDialog.vue @@ -6,7 +6,8 @@ --> - + @@ -196,8 +197,8 @@ export default { handler(bool) { if (!bool) return; this.propData?.id ? this.mode = 'edit' : this.mode = 'add'; - this.transformData(); this.initBasicData(); + this.transformData(); }, }, }, @@ -220,6 +221,7 @@ export default { this.editData.devices = _.map(this.propData.devices, "id"); // { "STAY": 90, "ACTION": "1", "SPEED": "0", "COLOR": "ffff00", "FONT": "3", "FONT_SIZE": "24", "CONTENT": "长清收费站\\\\n出入口封闭", "width": "160", "height": "80", "formatStyle": "2" } if (this.propData.deviceType == "2"){ + console.log(this.propData.params , "++========"); this.editData.type2 = BoardUtils.contentToDeviceItem(this.propData.params); } else if (["5","10","13"].includes(this.propData.deviceType)){ this.editData["type" + this.propData.deviceType] = { ...this.propData.params}; diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue index f2e5d41d..ed9b1bec 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue @@ -11,7 +11,7 @@
div { @@ -77,14 +79,16 @@ export default { width: 100%; flex-basis: 50%; margin-bottom: 15px; - &:last-child{ margin-bottom: 0;} + &:last-child { + margin-bottom: 0; + } } } - } .row_02 { - flex: 1; height: 0; + flex: 1; + height: 0; // pointer-events: none; } } diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/roadNetwork/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/roadNetwork/index.vue index 28a61516..ea524cf0 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/roadNetwork/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/roadNetwork/index.vue @@ -31,7 +31,10 @@ - - - \ No newline at end of file +} +.charts { + height: 120px; + width: 100%; +} + diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/congestionIndicator/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/congestionIndicator/index.vue index 9cb3c567..11cdc798 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/congestionIndicator/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/congestionIndicator/index.vue @@ -165,7 +165,8 @@ export default { flex-direction: column; .board { - height: 275px; + // height: 275px; + flex: 1; width: 100%; padding: 0px 0px; border-radius: 5px 5px 5px 5px; @@ -173,23 +174,29 @@ export default { display: flex; align-items: center; flex-direction: column; - margin-top: 20px; - + margin-top: 10px; + overflow: hidden; background: linear-gradient(180deg, rgba(6, 66, 88, 0) 0%, #064258 93%); .bodySort { - position: relative; - display: inline-block; - width: 100%; - height: 100%; + flex: 1; + // height: 120px; + // position: relative; + // display: inline-block; + // width: 100%; + // height: 100%; overflow: auto; - padding: 5px 10px; + // padding: 5px 10px; > div:first-child { .barTitle { background: linear-gradient(180deg, #ff6969 0%, #ffb904 100%); } + .text { + font-size: 12px; + } + .lineHight .inner { background: linear-gradient(180deg, #ff6969 0%, #ffb904 100%); } @@ -197,11 +204,11 @@ export default { > div { display: inline-flex; - width: 95%; + width: 100%; height: 41px; background: #0d517460; border-radius: 0px 0px 0px 0px; - margin: 5px; + // margin: 5px; font-size: 14px; font-family: PingFang SC, PingFang SC; font-weight: 500; @@ -225,6 +232,10 @@ export default { margin: 0 10px; } + .text { + font-size: 12px; + } + .lineHight { width: 60%; height: 8px; @@ -249,7 +260,7 @@ export default { .textStr { display: inline-flex; width: 100%; - height: 45px; + height: 35px; flex-direction: row; > div { @@ -278,8 +289,8 @@ export default { } } -.charts { - height: 180px; - width: 100%; -} +// .charts { +// height: 180px; +// width: 100%; +// } diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/crowding/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/crowding/index.vue index 0609dc80..6f8535b8 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/crowding/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/crowding/index.vue @@ -1,76 +1,74 @@ - - - - - \ No newline at end of file +} +.charts { + height: 120px; + width: 100%; +} + diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/roadIndicators/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/roadIndicators/index.vue index cba807ab..ddef4dde 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/roadIndicators/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/roadIndicators/index.vue @@ -1,374 +1,411 @@ - - - - - \ No newline at end of file + } + } +} +.charts { + height: 180px; + width: 100%; +} + diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/saturationMax/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/saturationMax/index.vue index 9ee68c70..fb55f56b 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/saturationMax/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/saturationMax/index.vue @@ -1,76 +1,76 @@ - - - - - \ No newline at end of file +} +.charts { + height: 120px; + width: 100%; +} + diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/charts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/charts.js index 0eacaff7..bd2f9818 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/charts.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/charts.js @@ -81,7 +81,7 @@ var options = { top: "25%", //上边距 right: "0", //右边距 left: "0", //左边距 - bottom: "0%", //下边距 + bottom: "5%", //下边距 containLabel: true, }, xAxis: { diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/index.vue index 446e9074..094b123b 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/index.vue @@ -92,7 +92,7 @@
上月指标
-
+
本月指标
@@ -317,20 +317,20 @@ export default { gr.addColorStop(1, "rgba(92,197,255,0)"); gr.addColorStop(0, "rgba(92,197,255,0.5)"); // 绘制圆角矩形 - drawRoundRect(context, 98, 11, 90, 22, 12, gr); + drawRoundRect(context, 98, 41, 90, 22, 12, gr); var gr = context.createLinearGradient(35, 0, 75, 0); // 颜色断点 gr.addColorStop(1, "rgba(92,197,255,0)"); gr.addColorStop(0, "rgba(92,197,255,0.5)"); - drawRoundRect(context, -1, 146, 80, 20, 12, gr); + drawRoundRect(context, -1, 176, 80, 20, 12, gr); var gr = context.createLinearGradient(230, 0, 275, 0); // 颜色断点 gr.addColorStop(1, "rgba(92,197,255,0)"); gr.addColorStop(0, "rgba(92,197,255,0.5)"); context.lineWidth = 1; // 设置线段宽度 - drawRoundRect(context, 211, 146, 220, 20, 12, gr); + drawRoundRect(context, 211, 176, 220, 20, 12, gr); const domMap3 = document.getElementById("chart3"); let parentDiv3 = domMap3.firstChild; @@ -348,20 +348,20 @@ export default { gr.addColorStop(1, "rgba(92,197,255,0)"); gr.addColorStop(0, "rgba(92,197,255,0.5)"); // 绘制圆角矩形 - drawRoundRect(context3, 98, 14, 90, 20, 12, gr); + drawRoundRect(context3, 98, 44, 90, 20, 12, gr); var gr = context3.createLinearGradient(35, 0, 75, 0); // 颜色断点 gr.addColorStop(1, "rgba(92,197,255,0)"); gr.addColorStop(0, "rgba(92,197,255,0.5)"); - drawRoundRect(context3, -1, 148, 80, 20, 12, gr); + drawRoundRect(context3, -1, 178, 80, 20, 12, gr); var gr = context3.createLinearGradient(240, 0, 290, 0); // 颜色断点 gr.addColorStop(1, "rgba(92,197,255,0)"); gr.addColorStop(0, "rgba(92,197,255,0.5)"); context3.lineWidth = 1; // 设置线段宽度 - drawRoundRect(context3, 211, 148, 200, 20, 12, gr); + drawRoundRect(context3, 211, 178, 200, 20, 12, gr); }); }); }, @@ -374,14 +374,15 @@ export default { } .congestion { - width: 100%; - margin: 5px 0; + // width: 100%; + // margin: 5px 0; .body { display: flex; flex-direction: row; align-items: center; - height: 395px; + // height: 395px; + flex: 1; width: 100%; font-size: 14px; @@ -417,6 +418,7 @@ export default { font-family: PingFang SC, PingFang SC; font-weight: 500; color: #30bfec; + padding-top: 20px; } #chart2 { @@ -441,9 +443,10 @@ export default { } .board { - height: 320px; + // height: 320px; + flex: 1; width: 100%; - padding: 10px 0px; + padding-top: 10px; border-radius: 5px 5px 5px 5px; opacity: 1; diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/index.vue index 5482f5a4..a39fd111 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/index.vue @@ -4,9 +4,9 @@ - + -
+
@@ -79,36 +79,43 @@ export default { height: 100%; } -.content { - width: 100%; - display: inline-flex; - justify-content: space-between; - pointer-events: none; - margin-top: 19px; - margin-left: 19px; - - > div { - pointer-events: auto; - } - - .content-w { - width: 66.5%; - } - - .content-max { - width: 100%; - } - - .content-l { - width: 25%; - margin-left: 0px; - } -} +// .content { +// // width: 100%; +// // display: inline-flex; +// // justify-content: space-between; +// // pointer-events: none; +// // margin-top: 19px; +// // margin-left: 19px; +// width: 100%; +// margin: auto; +// display: flex; +// flex: 1; +// pointer-events: none; +// margin-top: 19px; +// flex-basis: 20%; + +// > div { +// pointer-events: auto; +// } + +// .content-w {s +// width: 66.5%; +// } + +// .content-l { +// margin-right: 20px; +// flex-basis: 25%; +// display: flex; +// flex-direction: column; +// } +// } .TrafficFlow { width: 100%; height: 100%; - position: relative; + display: flex; + flex-direction: column; + // position: relative; z-index: 6; color: white; @@ -119,36 +126,48 @@ export default { flex: 1; pointer-events: none; margin-top: 19px; + flex-basis: 25%; - .content-l { - width: calc(50%); - min-width: 460px; - margin-right: 20px; + > div { + pointer-events: auto; } - .content-m { - display: inline-flex; - flex-direction: column; - width: calc(100% / 4); - margin-right: 20px; + // .content-w { + // width: 66.5%; + // } - .content-m-t { - width: 100%; - height: 240px; - margin-bottom: 20px; - } + .content-l { + margin-right: 20px; + flex-basis: 25%; + display: flex; + flex-direction: column; } + } + .content-c { + width: 100%; + margin: auto; + display: flex; + // flex: 1; + pointer-events: none; + margin-top: 19px; + flex-basis: 50%; - .content-r { - width: 30%; + .content-max { + flex: 1; + width: 100%; + display: flex; + justify-content: space-between; + align-items: center; + flex-direction: column; } } - .foot { width: 100%; margin: auto; display: flex; - flex: 1; + height: 0; + // flex: 1; + flex-basis: 35%; pointer-events: none; margin-top: 19px; @@ -161,8 +180,8 @@ export default { } .foot-l { - width: 70%; - height: 330px; + flex-basis: 70%; + // height: 330px; } .foot-m { @@ -171,7 +190,9 @@ export default { .foot-r { margin-left: 20px; - width: 33%; + flex-basis: 30%; + flex: 1; + display: flex; } } } diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/index.vue index 63c90b81..4a040678 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/index.vue @@ -1,6 +1,6 @@