From 69e8493cbde0e52b74f6be5e1f618679befe965a Mon Sep 17 00:00:00 2001 From: zhoule Date: Fri, 1 Mar 2024 17:06:02 +0800 Subject: [PATCH 1/4] bug --- .../event/event/FormEvent/PresetFormItems.js | 3 ++- .../control/event/event/FormEvent/index.vue | 5 ++++ .../pages/control/event/event/data.js | 23 +++++++------------ .../pages/control/event/event/index.vue | 11 +++++---- 4 files changed, 21 insertions(+), 21 deletions(-) diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/PresetFormItems.js b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/PresetFormItems.js index bde66452..28279874 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/PresetFormItems.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/PresetFormItems.js @@ -262,9 +262,10 @@ export const laneOccupancy = { export const eventSources = { label: "事件源:", - key: "eventSources", + key: "eventSource", type: "select", options: { + clearable: true, options: [ { key: "1", diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/index.vue index 81799915..aeca27f2 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/index.vue @@ -173,6 +173,9 @@ export default { // eventType: Number(this.index) + 1, // stakeMark: (stakeMark && stakeMark[0] != null) ? ((stakeMark && stakeMark.length > 0) ? ('K' + stakeMark[0] + '+' + stakeMark[1]) : '') : '', // }) + // this.modelVisible = false; + // this.submitting = false; + // this.$emit('queryData',true) // return; request({ @@ -181,6 +184,7 @@ export default { data: { ...formData, eventType: Number(this.index) + 1, + eventState: 0, stakeMark: (stakeMark && stakeMark[0] != null) ? ((stakeMark && stakeMark.length > 0) ? ('K' + stakeMark[0] + '+' + stakeMark[1]) : '') : '', } }).then((result) => { @@ -191,6 +195,7 @@ export default { Message.error("提交失败"); }).finally(() => { this.submitting = false; + this.$emit('queryData',true); }) }) diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/data.js b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/data.js index dfb336c4..80509943 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/data.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/data.js @@ -58,6 +58,7 @@ export const gjSearchFormList = [ key: "warningSource", type: "select", options: { + clearable: true, options: [ { key: "1", @@ -113,6 +114,7 @@ export const gjSearchFormList = [ required: false, type: "datePicker", options: { + style: 'width: 250px', type: "datetimerange", format: "yyyy-MM-dd HH:mm:ss", valueFormat: "yyyy-MM-dd HH:mm:ss", @@ -123,25 +125,16 @@ export const gjSearchFormList = [ label: "桩号:", required: false, }, - // merge(cloneDeep(PresetFormItems.station), { - // options: { - // options: [ - // { - // key: "endStakeMark[0]", - // }, - // { - // key: "endStakeMark[1]", - // }, - // ], - // }, - // label: "结束桩号:", - // required: false, - // }), ]; export const gzSearchFormList = [ PresetFormItems.eventSources, - PresetFormItems.eventType, + merge(PresetFormItems.eventType, { + options: { + clearable: true, + }, + }), + // PresetFormItems.eventType, { label: "方向:", key: "direction", diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/index.vue index 90ae56fd..d6c633f1 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/index.vue @@ -5,7 +5,7 @@
- + @@ -43,9 +43,10 @@
- + - +
@@ -176,7 +177,7 @@ export default { lastBtnText: text, }; }, - queryData(flag){ + queryData(flag) { this.getData() }, getData() { @@ -353,7 +354,7 @@ export default { this.searchData = { ...this.searchData, eventType: data.eventType, - eventSources: data.eventSources, + eventSource: data.eventSource, warningSource: data?.warningSource || '', direction: data.direction, startTime: daterange && daterange.length > 0 ? daterange[0] : "", From 376f5b5383477fdf1246ca062ba003b1666b3b75 Mon Sep 17 00:00:00 2001 From: zhoule Date: Fri, 1 Mar 2024 17:52:20 +0800 Subject: [PATCH 2/4] bug --- .../components/composeFeatures/assets/charts.js | 4 ++-- .../IndicatorAnalysis/components/crowding/assets/charts.js | 4 ++-- .../components/saturationMax/assets/charts.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/composeFeatures/assets/charts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/composeFeatures/assets/charts.js index f2681aae..9ca5c810 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/composeFeatures/assets/charts.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/composeFeatures/assets/charts.js @@ -2,10 +2,10 @@ import * as echarts from "echarts"; var options = { color: ["#07A3FB"], grid: { - left: "0%", + left: "2px", right: "8%", bottom: "0%", - top: "25px", + top: "28px", containLabel: true, }, tooltip: { diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/crowding/assets/charts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/crowding/assets/charts.js index a05acf4b..7696e28c 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/crowding/assets/charts.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/crowding/assets/charts.js @@ -2,10 +2,10 @@ import * as echarts from "echarts"; var options = { color: ["#E29E37"], grid: { - left: "0%", + left: "2px", right: "0%", bottom: "0%", - top: "25px", + top: "28px", containLabel: true, }, tooltip: { diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/saturationMax/assets/charts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/saturationMax/assets/charts.js index a6c84e4e..f04430e7 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/saturationMax/assets/charts.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/saturationMax/assets/charts.js @@ -6,10 +6,10 @@ var options = { trigger: "axis", }, grid: { - left: "0%", + left: "2px", right: "0%", bottom: "0%", - top: "25px", + top: "28px", containLabel: true, }, From 7cba9843fb3a9ae5bba43044b6c41b7ac3d62323 Mon Sep 17 00:00:00 2001 From: hui <770260999@qq.com> Date: Fri, 1 Mar 2024 18:57:55 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E5=8F=98=E5=BD=A2=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../JiHeExpressway/components/Adaptation.vue | 19 ++++++-- ruoyi-ui/src/views/JiHeExpressway/index.vue | 46 ++++++++++++++----- .../pages/datav/roadNet/index.vue | 4 +- .../pages/datav/roadNet/sensors.vue | 46 +++++++++++++------ ruoyi-ui/vue.config.js | 4 +- 5 files changed, 84 insertions(+), 35 deletions(-) diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/Adaptation.vue b/ruoyi-ui/src/views/JiHeExpressway/components/Adaptation.vue index ca9e5cfd..ff5a269d 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/Adaptation.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/components/Adaptation.vue @@ -15,6 +15,11 @@ export default { defaultHeight: { type: Number, default: () => 1080 + }, + headerHeight: { + type: Number, + default: () => 68 + } }, provide() { @@ -33,10 +38,10 @@ export default { computed: { transformStyle() { const obj = {}; - obj["transform"] = `scaleX(${this.scale.scaleX}) scaleY(${this.scale.scaleY})`; obj["width"] = this.defaultWidth + "px"; - obj["height"] = this.defaultHeight + "px"; + obj["height"] = this.defaultHeight - this.headerHeight + "px"; + obj["top"] = this.headerHeight + "px"; // obj.top = `calc(50% - ${(this.defaultHeight / 2) * this.scaleY}px)`; // obj.left = `calc(50% - ${(this.defaultWidth / 2) * this.scaleX}px)`; @@ -46,12 +51,16 @@ export default { return this.scale } }, + watch:{ + headerHeight(){ + } + }, methods: { initScale() { let winW = window.innerWidth; - let winH = window.innerHeight; + let winH = window.innerHeight - this.headerHeight; - this.setScale(this.scale.scaleX = winW / this.defaultWidth, this.scale.scaleY = winH / this.defaultHeight) + this.setScale(this.scale.scaleX = winW / this.defaultWidth, this.scale.scaleY = winH / (this.defaultHeight - this.headerHeight)) }, setScale(scaleX, scaleY) { const cssGlobalVariable = [ @@ -141,7 +150,7 @@ body { diff --git a/ruoyi-ui/src/views/JiHeExpressway/index.vue b/ruoyi-ui/src/views/JiHeExpressway/index.vue index 133c7c7d..ddf08c79 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/index.vue @@ -1,12 +1,12 @@