From 98dca2b9fb2298448fc62fdbac5a046c2f4908cc Mon Sep 17 00:00:00 2001 From: lau572 <1010031226@qq.com> Date: Thu, 22 Feb 2024 15:26:14 +0800 Subject: [PATCH 01/22] =?UTF-8?q?websocket=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/websocket.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/views/websocket.vue b/ruoyi-ui/src/views/websocket.vue index 4166759c..ac7d4437 100644 --- a/ruoyi-ui/src/views/websocket.vue +++ b/ruoyi-ui/src/views/websocket.vue @@ -30,8 +30,8 @@ export default { // console.log(location.hostname ) // 建立 websocket 连接 this.socket.initialize({ - // url: 'ws://' + location.hostname + ':' + port + path, - url: "ws://10.7.179.15" + ":" + port + path, + url: 'ws://' + location.hostname + ':' + port + path, + // url: "ws://10.7.179.15" + ":" + port + path, // url: "ws://10.168.64.171" + ":" + port + path, // url: 'ws://10.168.78.127'+ ':' + port + path, From 15425971c97fbd3947893f870e16e1ffb798ee5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=9C=8B?= Date: Thu, 22 Feb 2024 16:33:47 +0800 Subject: [PATCH 02/22] =?UTF-8?q?=E8=BE=96=E6=AE=B5=E7=AE=A1=E7=90=86?= =?UTF-8?q?=EF=BC=8C=E6=90=9C=E7=B4=A2=E5=BC=B9=E7=AA=97=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/JiHeExpressway/common/PresetFormItems.js | 2 +- .../views/jurisdictionalManagement/data.js | 12 +++--------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js b/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js index 16ae2971..f40baffe 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js +++ b/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js @@ -100,7 +100,7 @@ export const station = { }; export const startStation = { - label: "开始桩号:", + label: "起始桩号:", key: "startStakeMark", required: false, type: "MultipleLabelItem", diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/jurisdictionalManagement/data.js b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/jurisdictionalManagement/data.js index 074e1715..d4413bf8 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/jurisdictionalManagement/data.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/jurisdictionalManagement/data.js @@ -1,15 +1,9 @@ import { cloneDeep, merge } from "lodash"; -import * as PresetFormItems from "@screen/pages/control/event/event/FormEvent/PresetFormItems.js"; +import * as PresetFormItems from "@screen/common/PresetFormItems.js"; export const searchFormList = [ - { - label: "开始桩号:", - key: "startStakeMark", - }, - { - label: "结束桩号:", - key: "endStakeMark", - }, + PresetFormItems.startStation, + PresetFormItems.endStation ]; export const addEditFormList = [ From 79b16965ece6d64af4307df9adcbadef5e0a04b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=9C=8B?= Date: Thu, 22 Feb 2024 17:03:21 +0800 Subject: [PATCH 03/22] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E5=8D=8F=E8=B0=83?= =?UTF-8?q?=E8=B0=83=E5=BA=A6=E8=AE=B0=E5=BD=95=20=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E6=97=A0=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../JiHeExpressway/common/PresetFormItems.js | 26 +++++++++++++++---- .../event/coordinateSchedulingRecords/data.js | 22 ++++++++++++++++ 2 files changed, 43 insertions(+), 5 deletions(-) create mode 100644 ruoyi-ui/src/views/JiHeExpressway/pages/control/event/coordinateSchedulingRecords/data.js diff --git a/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js b/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js index f40baffe..09ec829d 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js +++ b/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js @@ -205,15 +205,30 @@ export const startEndStation = { }, }; +// export const direction = { +// label: "方向:", +// key: "direction", +// required: true, +// type: "select", +// options: { +// options: [ +// // { key: "济南方向", label: "济南方向" }, +// // { key: "菏泽方向", label: "菏泽方向" }, +// ], +// }, +// }; + export const direction = { - label: "方向:", + label: "路段方向:", key: "direction", - required: true, - type: "select", + type: "CheckboxGroup", + isAlone: true, + default: [], options: { options: [ - // { key: "济南方向", label: "济南方向" }, - // { key: "菏泽方向", label: "菏泽方向" }, + { key: "1", label: "济南方向" }, + { key: "3", label: "菏泽方向" }, + { key: "2", label: "双向" }, ], }, }; @@ -290,6 +305,7 @@ export const eventLevel = { }, }; + export const laneOccupancy = { label: "车道占用:", key: "lang", diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/coordinateSchedulingRecords/data.js b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/coordinateSchedulingRecords/data.js new file mode 100644 index 00000000..48d4cbc1 --- /dev/null +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/coordinateSchedulingRecords/data.js @@ -0,0 +1,22 @@ +import * as PresetFormItems from "@screen/common/PresetFormItems.js"; +import { merge, cloneDeep } from "lodash"; + +export const searchFormList = [ + PresetFormItems.eventType, + PresetFormItems.direction, + { + label: "时间范围:", + key: "daterange", + required: false, + type: "datePicker", + options: { + type: "daterange", + format: "yyyy-MM-dd HH:mm:ss", + valueFormat: "yyyy-MM-dd HH:mm:ss", + }, + }, + PresetFormItems.startStation, + PresetFormItems.endStation + + +]; From 1f303d59b59624acd8ea97730219b6c4a1024cbe Mon Sep 17 00:00:00 2001 From: zhangzhang <1747194829@qq.com> Date: Thu, 22 Feb 2024 17:29:34 +0800 Subject: [PATCH 04/22] =?UTF-8?q?=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/postTrendsDay/assets/charts.js | 2 +- .../components/postTrendsMonth/index.vue | 282 +++++---- .../components/dailyDisposal/assets/charts.js | 2 +- .../components/eventQuery/assets/charts.js | 12 +- .../components/eventQuery/assets/charts3.js | 4 +- .../components/eventQuery/index.vue | 540 ++++++++++++------ .../components/eventSource/assets/charts.js | 3 +- .../monthStatistics/assets/charts.js | 2 +- .../components/typeAnalysis/assets/charts.js | 2 +- .../TemperatureTrend/assets/charts.js | 280 ++++----- .../visibilityTrends/assets/charts.js | 290 +++++----- .../components/classification/index.vue | 187 +++--- .../components/flowstate/assets/charts.js | 2 +- .../components/situation/index.vue | 1 + .../trafficIndicators/assets/chartsRadar.js | 79 +++ .../components/trafficIndicators/index.vue | 5 +- 16 files changed, 1015 insertions(+), 678 deletions(-) create mode 100644 ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/chartsRadar.js diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsDay/assets/charts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsDay/assets/charts.js index 44e0963a..5ccc5558 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsDay/assets/charts.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsDay/assets/charts.js @@ -49,7 +49,7 @@ var options = { yAxis: [ { type: "value", - name: "(件)", + name: "(起) ", nameTextStyle: { color: "#E5E7E8", fomtSize: 10, diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsMonth/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsMonth/index.vue index f6c93929..7d1a22ce 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsMonth/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/governanceAnalysis/components/postTrendsMonth/index.vue @@ -1,39 +1,86 @@ @@ -96,6 +99,7 @@ export default { width: 100%; align-items: center; justify-content: flex-end; + gap: 6px; } } diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/service/PublishingChannelManagement/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/service/PublishingChannelManagement/index.vue index 7b8848e4..0b03b1a7 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/service/PublishingChannelManagement/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/service/PublishingChannelManagement/index.vue @@ -2,12 +2,20 @@
- - - 刷新 - +
+ + + 新增 + + + + 刷新 + +
@@ -38,6 +46,12 @@ export default { Card, ButtonGradient }, + methods: { + handleOpenDialogAddEdit(data) { + this.addNEditDialogVisible = true; + this.dialogData = data; + }, + } } @@ -56,6 +70,10 @@ export default { height: 60px; display: flex; justify-content: space-between; + div { + display: flex; + gap: 6px; + } } .body { From 45cfd53d53c4bd0a50fa8c460838bc0e2b8538a5 Mon Sep 17 00:00:00 2001 From: zhoule Date: Fri, 23 Feb 2024 09:24:42 +0800 Subject: [PATCH 07/22] =?UTF-8?q?=E6=97=A5=E4=BA=8B=E4=BB=B6=E5=A4=84?= =?UTF-8?q?=E7=BD=AE=E5=8D=A0=E6=AF=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/control/event/event/index.vue | 12 ++++++++++++ .../components/dailyDisposal/assets/charts.js | 4 ++-- .../components/dailyDisposal/index.vue | 9 +++++---- 3 files changed, 19 insertions(+), 6 deletions(-) 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 e60d42f8..a576320e 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 @@ -87,6 +87,11 @@ const directionMapping = { '2': '中', '3': '下行' } +const gzDirectionMapping = { + '1': '菏泽方向', + '2': '双向', + '3': '济南方向' +} const warningStateMapping = { 1: '上报', 2: '已完成', @@ -205,6 +210,13 @@ export default { params: this.searchData, }).then((result) => { if (result.code != 200) return Message.error(result?.msg); + result.rows.forEach(it => { + it.stringDirection = gzDirectionMapping[it.direction] || it.direction; + // if (it.otherConfig) { + // let otherConfig = JSON.parse(it.otherConfig); + // it.pictures = otherConfig.pictures || []; + // } + }) this.data = result.rows; this.total = result.total; }); diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/dailyDisposal/assets/charts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/dailyDisposal/assets/charts.js index d942d30c..c935e8b8 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/dailyDisposal/assets/charts.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/dailyDisposal/assets/charts.js @@ -66,7 +66,7 @@ var options = { { name: "", type: "pie", - radius: "120px", + radius: "60px", width: "200px", center: ["130px", "50%"], roseType: "radius", @@ -111,7 +111,7 @@ var options = { { name: "", type: "pie", - radius: "130px", + radius: "70px", hoverAnimation: false, emphasis: { scale: false }, center: ["130px", "50%"], diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/dailyDisposal/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/dailyDisposal/index.vue index bef82428..96e1de1c 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/dailyDisposal/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/dailyDisposal/index.vue @@ -66,6 +66,7 @@ export default { for (let i = 0; i < data.length; i++) { let it = data[i]; if (it.warningState == 1) { + // it.number = 86; echartsData.push({ name: "上报", value: it.number @@ -141,10 +142,10 @@ export default { context.lineWidth = 1; // 设置线段宽度 // 绘制圆角矩形 - drawRoundRect(context, 242, 36, 180, 24, 12, gr) - drawRoundRect(context, 242, 63, 180, 24, 12, gr) - drawRoundRect(context, 242, 90, 180, 24, 12, gr) - drawRoundRect(context, 242, 117, 180, 24, 12, gr) + drawRoundRect(context, 230, 36, 180, 24, 12, gr) + drawRoundRect(context, 230, 63, 180, 24, 12, gr) + drawRoundRect(context, 230, 90, 180, 24, 12, gr) + drawRoundRect(context, 230, 117, 180, 24, 12, gr) }); }); }, From 2beda874d9200c5116904f9bccec30361823ed2b Mon Sep 17 00:00:00 2001 From: zhoule Date: Fri, 23 Feb 2024 10:04:53 +0800 Subject: [PATCH 08/22] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../control/event/event/FormEvent/data.js | 179 +++++++++++++++--- .../pages/control/event/event/data.js | 2 +- 2 files changed, 158 insertions(+), 23 deletions(-) diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/data.js b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/data.js index a1ff8c8c..274eccb1 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/data.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/data.js @@ -494,6 +494,81 @@ export const tabConfigList = [ }, ], }, + ons: { + input(value, ...args) { + const { data, formList } = args.slice(-1)[0]; + const classify = formList.find( + (it) => it.key == "dcEventTrafficControl.classify" + ); + let ss = { + "3-1": "主线", + "3-2": "收费站", + "3-3": "立交", + "3-4": "服务区", + }; + let ad = { + 1: [ + { + key: "1", + label: `${ss[value]}关闭`, + }, + ], + 2: [ + { + key: "2", + label: "主线限行", + }, + { + key: "3", + label: "主线间隔放行", + }, + { + key: "4", + label: "主线并道", + }, + { + key: "5", + label: "主线限速", + }, + ], + }; + classify.options.options = ad[data.dcEventTrafficControl.controlType]; + + if(data.dcEventTrafficControl) { + data.dcEventTrafficControl.facilityId = null; + } + let facilityType = 1; + if (value == '3-2') { + facilityType = 1; + } else if (value == '3-3') { + facilityType = 3; + } else if (value == '3-4') { + facilityType = 6; + } + if(value && value != '3-1'){ + //路网设施 1 收费站 2 桥梁 3 互通立交 4 枢纽立交 5 隧道 6 服务区 + request({ + url: `/business/facility/query?facilityType=${facilityType}`, + method: "get" + }).then((result) => { + if (result.code != 200) return Message.error(result?.msg); + let lwss = []; + result.data.forEach(it => lwss.push({ key: it.id, label: it.facilityName})) + + formList.forEach((it) => { + if(it.key == "dcEventTrafficControl.facilityId"){ + it.options.options = lwss; + } + }); + + }).catch((err) => { + console.log('err',err) + Message.error("查询失败1", err); + }) + } + + }, + }, }, { label: "管制分类:", @@ -518,7 +593,7 @@ export const tabConfigList = [ ons: { input(value, ...args) { const { data, formList } = args.slice(-1)[0]; - const config = formList.find( + const classify = formList.find( (it) => it.key == "dcEventTrafficControl.classify" ); const measure = formList.find( @@ -591,7 +666,7 @@ export const tabConfigList = [ ], }; measure.options.options = cs[value]; - config.options.options = ad[value]; + classify.options.options = ad[value]; }, }, }, @@ -608,24 +683,7 @@ export const tabConfigList = [ { key: "1", label: "主线关闭", - }, - { - key: "2", - label: "主线限行", - }, - { - key: "3", - label: "主线间隔放行", - }, - { - key: "4", - label: "主线并道", - }, - { - key: "5", - label: "主线限速", - }, - ], + },], }, }, { @@ -743,7 +801,7 @@ export const tabConfigList = [ PresetFormItems.emptyLine, { label: "出入口:", - key: "dcEventTrafficControl.controlCause", + key: "dcEventTrafficControl.exitsInlets", type: "RadioGroup", isAlone: true, required: true, @@ -762,7 +820,7 @@ export const tabConfigList = [ ], }, visible: (data) => { - if (data?.eventSubclass == "3-2") { + if (data?.eventSubclass == "3-2" || data?.eventSubclass == "3-4") { return true; } return false; @@ -784,6 +842,83 @@ export const tabConfigList = [ return false; }, }, + { + label: "立交桥:", + key: "dcEventTrafficControl.facilityId", + type: "select", + isAlone: false, + required: true, + options: { + options: [], + }, + visible: (data) => { + if (data?.eventSubclass == "3-3") { + return true; + } + return false; + }, + ons: { + change(value, ...args) { + const { formList } = args.slice(-1)[0]; + + //匝道 + request({ + url: `/system/ramp/listAll?facilityId=${value}`, + method: "get", + }) + .then((result) => { + if (result.code != 200) return Message.error(result?.msg); + let zd = []; + result.rows.forEach((it) => + zd.push({ key: it.id, label: it.rampName }) + ); + // console.log("zd", zd); + formList.forEach((it) => { + if (it.key == "dcEventTrafficControl.rampId") { + console.log("it", it); + it.options.options = zd; + } + }); + }) + .catch((err) => { + console.log("err", err); + Message.error("查询失败3", err); + }); + }, + }, + }, + { + label: "匝道:", + key: "dcEventTrafficControl.rampId", + type: "select", + isAlone: false, + required: true, + options: { + options: [], + }, + visible: (data) => { + if (data?.eventSubclass == "3-3") { + return true; + } + return false; + }, + }, + { + label: "服务区:", + key: "dcEventTrafficControl.facilityId", + type: "select", + isAlone: false, + required: true, + options: { + options: [], + }, + visible: (data) => { + if (data?.eventSubclass == "3-4") { + return true; + } + return false; + }, + }, { label: "措施:", required: 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 f958b6f8..a5423158 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 @@ -109,7 +109,7 @@ export const gjSearchFormList = [ required: false, type: "datePicker", options: { - type: "daterange", + type: "datetimerange", format: "yyyy-MM-dd HH:mm:ss", valueFormat: "yyyy-MM-dd HH:mm:ss", }, From 26308c4c78efebd26260d2fe6b3127d570d920e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=9C=8B?= Date: Fri, 23 Feb 2024 10:53:15 +0800 Subject: [PATCH 09/22] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BC=B9=E5=87=BA?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E6=A1=86=E4=B8=AD=E5=8D=95=E9=80=89=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E9=80=89=E4=B8=AD=E5=90=8E=E7=9A=84=E5=AD=97=E4=BD=93?= =?UTF-8?q?=E9=A2=9C=E8=89=B2=E4=B8=BA=E7=99=BD=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/assets/styles/JiHeExpressway.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ruoyi-ui/src/assets/styles/JiHeExpressway.scss b/ruoyi-ui/src/assets/styles/JiHeExpressway.scss index f12ce990..0105eb62 100644 --- a/ruoyi-ui/src/assets/styles/JiHeExpressway.scss +++ b/ruoyi-ui/src/assets/styles/JiHeExpressway.scss @@ -133,7 +133,8 @@ .el-radio__label{ color: #fff; } &.is-checked{ .el-radio__label { - color: #3de8ff; + // color: #3de8ff; + color: #fff; } } } From c87f3b87c24220f399c6e996724d8aa0aa31ba88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=9C=8B?= Date: Fri, 23 Feb 2024 10:58:59 +0800 Subject: [PATCH 10/22] =?UTF-8?q?=E5=8D=8F=E8=B0=83=E8=B0=83=E5=BA=A6?= =?UTF-8?q?=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../control/event/coordinateSchedulingRecords/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/coordinateSchedulingRecords/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/coordinateSchedulingRecords/index.vue index d986cb28..be94807d 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/coordinateSchedulingRecords/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/coordinateSchedulingRecords/index.vue @@ -9,7 +9,7 @@ 刷新 - +
@@ -30,6 +30,8 @@ import InputSearch from '@screen/components/InputSearch/index.vue'; import Card from './components/Card/index.vue'; import ButtonGradient from '@screen/components/Buttons/ButtonGradient.vue'; +import { searchFormList } from "./data"; + export default { name: 'CoordinateSchedulingRecords', components: { @@ -40,6 +42,7 @@ export default { }, data() { return { + searchFormList, eventDetailDialogVisible: false } }, From 298c698a05b999824b80d0bd4b79a54f238a4d64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=9C=8B?= Date: Fri, 23 Feb 2024 11:02:01 +0800 Subject: [PATCH 11/22] =?UTF-8?q?=E5=8F=91=E5=B8=83=E6=B8=A0=E9=81=93?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=A2=9E=E5=8A=A0=E6=8C=89=E9=92=AE,?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=AD=9B=E9=80=89=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../JiHeExpressway/common/PresetFormItems.js | 18 ++++++ .../PublishingChannelManagement/data.js | 56 +++++++++++++++++++ .../PublishingChannelManagement/index.vue | 14 ++++- 3 files changed, 87 insertions(+), 1 deletion(-) create mode 100644 ruoyi-ui/src/views/JiHeExpressway/pages/service/PublishingChannelManagement/data.js diff --git a/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js b/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js index 09ec829d..7f61b9c2 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js +++ b/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js @@ -41,6 +41,24 @@ export const source = { }, }; +export const releaseChannel = { + label: "发布渠道:", + key: "channel", + type: "CheckboxGroup", + isAlone: true, + default: [], + options: { + options: [ + { key: "1", label: "微博" }, + { key: "3", label: "微信小程序" }, + { key: "4", label: "服务网站" }, + { key: "5", label: "情报板" }, + { key: "6", label: "手机短信" }, + { key: "7", label: "微信公众号" }, + ], + }, +}; + export const illegalTriggeringType = { label: "类型:", key: "eventSubclass", diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/service/PublishingChannelManagement/data.js b/ruoyi-ui/src/views/JiHeExpressway/pages/service/PublishingChannelManagement/data.js new file mode 100644 index 00000000..09ad820f --- /dev/null +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/service/PublishingChannelManagement/data.js @@ -0,0 +1,56 @@ +import * as PresetFormItems from "@screen/common/PresetFormItems.js"; +import { merge, cloneDeep } from "lodash"; + +export const searchFormList = [ + { + label: "启用日期:", + key: "daterange", + required: false, + type: "datePicker", + options: { + type: "daterange", + format: "yyyy-MM-dd HH:mm:ss", + valueFormat: "yyyy-MM-dd HH:mm:ss", + }, + }, + PresetFormItems.eventType, + PresetFormItems.releaseChannel, + { + label: "信息级别:", + key: "level", + type: "RadioGroup", + isAlone: true, + options: { + activeColor: "linear-gradient(180deg, #37E7FF 0%, #009BCC 100%)", + options: [ + { + key: "1", + label: "影响通行", + }, + { + key: "2", + label: "不影响通行", + }, + ], + }, + }, + { + label: "启用状态:", + key: "status", + type: "RadioGroup", + isAlone: true, + options: { + activeColor: "linear-gradient(180deg, #37E7FF 0%, #009BCC 100%)", + options: [ + { + key: "1", + label: "启用", + }, + { + key: "2", + label: "停用", + }, + ], + }, + }, +]; diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/service/PublishingChannelManagement/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/service/PublishingChannelManagement/index.vue index 0b03b1a7..f5aefd76 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/service/PublishingChannelManagement/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/service/PublishingChannelManagement/index.vue @@ -17,7 +17,7 @@ - + @@ -29,6 +29,9 @@ + + + @@ -38,6 +41,8 @@ import InputSearch from '@screen/components/InputSearch/index.vue'; import Card from './components/Card'; import ButtonGradient from '@screen/components/Buttons/ButtonGradient.vue'; +import { searchFormList } from './data'; + export default { name: 'PublishingChannelManagement', components: { @@ -46,6 +51,13 @@ export default { Card, ButtonGradient }, + data() { + return { + searchFormList, + addNEditDialogVisible: false, + dialogData: null + } + }, methods: { handleOpenDialogAddEdit(data) { this.addNEditDialogVisible = true; From 70130583d9653191dd453d5632e5c94eb11ea529 Mon Sep 17 00:00:00 2001 From: zhoule Date: Fri, 23 Feb 2024 14:11:28 +0800 Subject: [PATCH 12/22] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/api/event/perceiveEvent.js | 2 +- .../components/RoadStateCard/index.vue | 23 +++++++++++---- .../JiHeExpressway/components/Video/index.vue | 6 +++- .../EventDetailDialog/Carousel/index.vue | 4 +-- .../event/event/EventDetailDialog/index.vue | 29 ++++++++++++------- .../pages/control/event/event/index.vue | 8 ++--- .../components/eventQuery/index copy.vue | 2 +- .../components/eventQuery/index.vue | 2 +- 8 files changed, 51 insertions(+), 25 deletions(-) diff --git a/ruoyi-ui/src/api/event/perceiveEvent.js b/ruoyi-ui/src/api/event/perceiveEvent.js index 7a147f24..c8336aa6 100644 --- a/ruoyi-ui/src/api/event/perceiveEvent.js +++ b/ruoyi-ui/src/api/event/perceiveEvent.js @@ -165,7 +165,7 @@ export function geTwarningTotal(query) { export function getRoadSectionList(query) { //system/status/tablist return request({ - url: '/business/roadSection/list', + url: '/business/roadSection/listAll', method: 'get', params: { ...query, diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/RoadStateCard/index.vue b/ruoyi-ui/src/views/JiHeExpressway/components/RoadStateCard/index.vue index 6126f45b..e0acb02b 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/RoadStateCard/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/components/RoadStateCard/index.vue @@ -2,7 +2,7 @@
- +
@@ -15,10 +15,10 @@
-
@@ -82,7 +82,7 @@ export default { ]) } }, - data(){ + data() { return { picUrl: './test.png' } @@ -94,6 +94,19 @@ export default { }, created() { this.statusMap = statusMap; + }, + methods: { + getFirstBtnText(state) { + let text = '详情'; + if(state == 5) text = '去确认' + if(state == 4) text = '详情' + if(state == 3) text = '处置记录' + return text; + }, + getLastBtnText(state) { + let text = '去处置'; + return text; + }, } } diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/Video/index.vue b/ruoyi-ui/src/views/JiHeExpressway/components/Video/index.vue index a47c01f4..83f0da7e 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/Video/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/components/Video/index.vue @@ -1,6 +1,6 @@