From 535c2aa8633531d1d622a34708f844ed7f77e022 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=8E=8B=E9=92=A6?= <360013221@qq.com>
Date: Thu, 16 May 2024 14:13:02 +0800
Subject: [PATCH 1/9] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=90=88=E6=B5=81?=
=?UTF-8?q?=E5=8C=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/Dialog/index.vue | 1 -
.../components/BroadcastReleases.vue | 41 +++-
.../components/DeviceControlDialog.vue | 156 +++++++++++++++
.../components/DeviceParams.vue | 124 ++++++++++++
.../components/Dialogs/ConfluenceArea/data.js | 44 +++++
.../Dialogs/ConfluenceArea/index.vue | 187 ++++++++++++++++++
.../pages/Home/components/Dialogs/mixin.js | 11 +-
.../Home/components/RoadAndEvents/index.vue | 8 +-
.../RoadAndEvents/utils/buttonEvent.js | 1 +
.../components/sortFaceForecast/index.vue | 49 +----
10 files changed, 563 insertions(+), 59 deletions(-)
create mode 100644 ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/ConfluenceArea/components/DeviceControlDialog.vue
create mode 100644 ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/ConfluenceArea/components/DeviceParams.vue
create mode 100644 ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/ConfluenceArea/data.js
create mode 100644 ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/ConfluenceArea/index.vue
diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/Dialog/index.vue b/ruoyi-ui/src/views/JiHeExpressway/components/Dialog/index.vue
index 1506a111..8aa137f6 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/components/Dialog/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/components/Dialog/index.vue
@@ -105,7 +105,6 @@ export default {
},
methods: {
close() {
- console.log("------");
this.modelVisible = false;
},
updateDialogVisible(bool) {
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Broadcast/components/BroadcastReleases.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Broadcast/components/BroadcastReleases.vue
index af329ca6..6bd999ca 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Broadcast/components/BroadcastReleases.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Broadcast/components/BroadcastReleases.vue
@@ -99,24 +99,47 @@ export default {
if (!this.checkList.length)
return Message.error("请至少选择一个广播设备!");
+ const devices = [];
+ const functions = [];
+ for(let i of this.checkList){
+ const d = _.find(this.musicList,{otherConfig:i})
+ devices.push({
+ "id": d.id,
+ "iotDeviceId": d.iotDeviceId,
+ "deviceType": d.deviceType
+ })
+
+ functions.push({
+ "functionId": "A1",
+ "params": {
+ "name": "task-3",
+ "outVol": "6",
+ "priority": "1",
+ "text": "山东高速欢迎您",
+ "repeatTimes": "3",
+ "termList": [
+
+ {
+ ...JSON.parse(i)
+ }
+ ],
+ "functionType": "startPaTts"
+ }
+
+ })
+ }
this.submitting = true;
request({
- url: `/broadcast/broadcastFunctionCall`,
+ url: `/business/device/batchFunctions`,
method: "post",
data: {
- name: "task-3",
- outVol: "6",
- priority: "1",
- text: this.releaseMessage.trim(),
- repeatTimes: "3",
- termList: this.checkList.map((str) => JSON.parse(str)),
- functionType: "startPaTts",
+ devices,functions
},
})
.then((data) => {
// console.log(data);
- if (data.retCode == "0") {
+ if (data.code == "200") {
Message.success("广播设置成功!");
this.modelVisible = false;
} else {
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/ConfluenceArea/components/DeviceControlDialog.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/ConfluenceArea/components/DeviceControlDialog.vue
new file mode 100644
index 00000000..a8b7b0bb
--- /dev/null
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/ConfluenceArea/components/DeviceControlDialog.vue
@@ -0,0 +1,156 @@
+
+
+
+
+
+
+
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/ConfluenceArea/components/DeviceParams.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/ConfluenceArea/components/DeviceParams.vue
new file mode 100644
index 00000000..e4eb4f10
--- /dev/null
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/ConfluenceArea/components/DeviceParams.vue
@@ -0,0 +1,124 @@
+
+
+
暂无设备参数
+
+
+ {{ data.text }}
+
+
+
+
+
+
+
+
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/ConfluenceArea/data.js b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/ConfluenceArea/data.js
new file mode 100644
index 00000000..1820068a
--- /dev/null
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/ConfluenceArea/data.js
@@ -0,0 +1,44 @@
+export const devicesFormList = [
+ {
+ label: "设备内温度过高",
+ key: `theInternalTemperatureOfTheDeviceOverheats`,
+ // text: "-",
+ gridColumn: 2,
+ },
+ {
+ label: "阵列电压",
+ key: `arrayVoltage`,
+ // text: "-",
+ gridColumn: 2,
+ },
+ {
+ label: "阵列电流",
+ key: `arrayCurrent`,
+ // text: "-",
+ gridColumn: 2,
+ },
+ {
+ label: "发电功率L",
+ key: `generatingPowerL`,
+ text: "-",
+ gridColumn: 2,
+ },
+ {
+ label: "发电功率H",
+ key: `generatingPowerH`,
+ text: "-",
+ gridColumn: 2,
+ },
+ {
+ label: "负载电压",
+ key: `loadVoltage`,
+ text: "-",
+ gridColumn: 2,
+ },
+ {
+ label: "负载电流",
+ key: `loadCurrent`,
+ text: "-",
+ gridColumn: 2,
+ },
+];
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/ConfluenceArea/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/ConfluenceArea/index.vue
new file mode 100644
index 00000000..88e9570d
--- /dev/null
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/ConfluenceArea/index.vue
@@ -0,0 +1,187 @@
+
+
+
+
+
+
+
+../mixin../mixin../mixin
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/mixin.js b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/mixin.js
index 13dd9f9e..c118c862 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/mixin.js
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/mixin.js
@@ -25,10 +25,13 @@ export const dialogDelayVisible = {
computed: {
obverseVisible: {
set(bool) {
- try {
- typeof this.visibleClose === "function" && this.visibleClose?.(bool);
- } catch (error) {}
-
+ if(this.visibleClose){
+ try {
+ typeof this.visibleClose === "function" && this.visibleClose?.(bool);
+ } catch (error) {}
+
+ }
+
setTimeout(() => {
this.$emit("change", bool);
}, 180);
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/index.vue
index 1bd6844e..169cbc77 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/index.vue
@@ -53,6 +53,7 @@ import RoadNetworkFacilities from "./../Dialogs/RoadNetworkFacilities/index.vue"
import SmartDevice from "./../Dialogs/SmartDevice/index.vue";
import RemoteMachine from "./../Dialogs/RemoteMachine/index.vue";
import SolarEnergy from "./../Dialogs/SolarEnergy/index.vue";
+import ConfluenceArea from "./../Dialogs/ConfluenceArea/index.vue";
import Intermodulation from "./../Dialogs/Intermodulation/index.vue";
import GuardrailCollision from "./../Dialogs/GuardrailCollision/index.vue";
import MeteorologicalDetection from "./../Dialogs/MeteorologicalDetection/index.vue";
@@ -79,7 +80,8 @@ export default {
FatigueWakesUp,
RoadNetworkFacilities,
RemoteMachine,
- MeteorologicalDetection
+ MeteorologicalDetection,
+ ConfluenceArea
},
data() {
return {
@@ -246,7 +248,7 @@ export default {
const key = getHandleDeviceType(item) || `${this.active}/${item.title}`;
const status = item.status;
-
+ console.log(item.status,'------------')
if (!status) { //开启
this.nowSelected = item.title;
this.nowSelectedCompleted = false;
@@ -479,4 +481,4 @@ export default {
}
}
}
-
+../Dialogs/ConfluenceArea/index.vue
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js
index b863512a..8fa15c98 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/buttonEvent.js
@@ -57,6 +57,7 @@ export const DeviceForMap = {
},
合流区: {
deviceType: "8",
+ dialog:"ConfluenceArea",
},
护栏碰撞: {
deviceType: "6",
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/sortFaceForecast/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/sortFaceForecast/index.vue
index 7a7ae814..7fc80fed 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/sortFaceForecast/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/meteorologyCheck/components/sortFaceForecast/index.vue
@@ -485,6 +485,7 @@ export default {
},
],
weatherList: [],
+ sort:['长清区','平阴县','东平县','汶上县','梁山县','嘉祥县','巨野县','郓城县']
};
},
@@ -503,28 +504,10 @@ export default {
getWeatherFacts().then((response) => {
let obj = response.data;
let data = [];
- for (let key in obj) {
- // if (key === "weatherFacts1") {
- // obj[key].name = "长清区";
- // } else if (key === "weatherFacts2") {
- // obj[key].name = "平阴县";
- // } else if (key === "weatherFacts3") {
- // obj[key].name = "东平县";
- // } else if (key === "weatherFacts4") {
- // obj[key].name = "汶上县";
- // } else if (key === "weatherFacts5") {
- // obj[key].name = "梁山县";
- // } else if (key === "weatherFacts6") {
- // obj[key].name = "嘉祥县";
- // } else if (key === "weatherFacts7") {
- // obj[key].name = "巨野县";
- // } else if (key === "weatherFacts8") {
- // obj[key].name = "郓城县";
- // }
- data.push(obj[key]);
+ for(let i of this.sort){
+ data.push(_.find(obj,{name:i}))
}
this.weatherList = data;
- // console.log("weatherList", this.weatherList);
});
},
// 按小时查询天气
@@ -533,30 +516,12 @@ export default {
let obj = response.data;
let data = [];
for (let key in obj) {
- // if (key === "hourlyWeather1") {
- // console.log("obj[key]", obj[key][id - 1]);
- // obj[key][id - 1].name = "长清区";
- // } else if (key === "hourlyWeather2") {
- // obj[key][id - 1].name = "平阴县";
- // } else if (key === "hourlyWeather3") {
- // obj[key][id - 1].name = "东平县";
- // } else if (key === "hourlyWeather4") {
- // obj[key][id - 1].name = "汶上县";
- // } else if (key === "hourlyWeather5") {
- // obj[key][id - 1].name = "梁山县";
- // } else if (key === "hourlyWeather6") {
- // obj[key][id - 1].name = "嘉祥县";
- // } else if (key === "hourlyWeather7") {
- // obj[key][id - 1].name = "巨野县";
- // } else if (key === "hourlyWeather8") {
- // obj[key][id - 1].name = "郓城县";
- // }
- data.push(obj[key]);
+ data.push(obj[key][id-1]);
}
let newData = [];
- data.forEach((item) => {
- newData.push(item[id - 1]);
- });
+ for(let i of this.sort){
+ newData.push(_.find(data,{name:i}))
+ }
this.weatherList = newData;
});
},
From 2b33105875ccac8a062b8260ebfa6993d92b096b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=8E=8B=E9=92=A6?= <360013221@qq.com>
Date: Thu, 16 May 2024 18:32:11 +0800
Subject: [PATCH 2/9] =?UTF-8?q?=E5=AE=8C=E6=88=90=E8=AE=BE=E5=A4=87?=
=?UTF-8?q?=E7=AE=A1=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../RemoteMachine/components/DeviceParams.vue | 4 +-
.../SmartDevice/components/DeviceParams.vue | 4 +-
.../DeviceControl/components/ScopeTable.vue | 5 +-
.../Cards/DeviceControl/index.vue | 7 +-
.../Cards/EventInformation/index.vue | 2 +-
.../Cards/ReleaseInformation/index.vue | 2 +-
.../control/event/commandDispatch/index.vue | 23 +-
.../plan/addAndEditDialog/ScopeTable.vue | 1 -
.../smart/manage/data.js | 28 ++
.../smart/manage/images/refresh.svg | 22 +
.../smart/manage/index.vue | 461 +++++++++++++++++-
.../publicService/components/record/index.vue | 6 +
.../pages/service/publicService/index.vue | 6 +-
.../views/JiHeExpressway/scss/el-reset.scss | 8 +
14 files changed, 538 insertions(+), 41 deletions(-)
create mode 100644 ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/manage/data.js
create mode 100644 ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/manage/images/refresh.svg
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
index dc8d4b51..3886a99c 100644
--- 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
@@ -65,7 +65,7 @@ export default {
for (const key in deviceInfo.formatValue) {
// electricity 电流
// voltage 电压
- if (key.includes('electricity')) {
+ if (key.includes('voltage')) {
const args = key.match(/[a-z]+|[0-9]+$/g);
const type = args[0], num = args.slice(-1)[0], prefix = args.slice(0, 2).join('_');
@@ -80,7 +80,7 @@ export default {
{
label: '电流',
key: `${prefix}_electricity_${num}`,
- text: deviceInfo.formatValue[key],
+ text: deviceInfo.formatValue[`${prefix}_electricity_${num}`],
gridColumn: 2,
state: deviceInfo.value[key] > 0
}
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/components/DeviceParams.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/components/DeviceParams.vue
index dc8d4b51..3886a99c 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/components/DeviceParams.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/components/DeviceParams.vue
@@ -65,7 +65,7 @@ export default {
for (const key in deviceInfo.formatValue) {
// electricity 电流
// voltage 电压
- if (key.includes('electricity')) {
+ if (key.includes('voltage')) {
const args = key.match(/[a-z]+|[0-9]+$/g);
const type = args[0], num = args.slice(-1)[0], prefix = args.slice(0, 2).join('_');
@@ -80,7 +80,7 @@ export default {
{
label: '电流',
key: `${prefix}_electricity_${num}`,
- text: deviceInfo.formatValue[key],
+ text: deviceInfo.formatValue[`${prefix}_electricity_${num}`],
gridColumn: 2,
state: deviceInfo.value[key] > 0
}
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DeviceControl/components/ScopeTable.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DeviceControl/components/ScopeTable.vue
index acf49709..9b84a6b8 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DeviceControl/components/ScopeTable.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DeviceControl/components/ScopeTable.vue
@@ -4,10 +4,11 @@
+ style="width: 123px;">
+
@@ -302,9 +303,7 @@ export default {
watch: {
'tableInfo.deviceType': {
async handler(newValue) {
- console.log('aaaaaaaaaaaaaaaaaa', newValue)
await this.loadData(newValue);
- console.log('bbbbbbbbbbb', this.sbOptions)
},
immediate: true,
}
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DeviceControl/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DeviceControl/index.vue
index 95953434..4d5ee9d0 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DeviceControl/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DeviceControl/index.vue
@@ -186,7 +186,8 @@ export default {
}
.container {
- height: 500px;
+ flex:1;
+ min-height: 300px;
overflow-y: auto;
.rowBlock {
@@ -199,13 +200,11 @@ export default {
.foot {
display: flex;
+ height:'100px';
justify-content: space-evenly;
margin-top: 10px;
-
-
.special-button {
width: 100px;
-
.icon {
background-repeat: no-repeat;
background-size: 100% 100%;
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/EventInformation/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/EventInformation/index.vue
index 019cf6ac..bf2e3190 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/EventInformation/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/EventInformation/index.vue
@@ -38,7 +38,7 @@
{{
detailData.eventLevel
? `${
- detailData.eventCause +
+ (detailData.eventCause||'') +
["", "一", "二", "三", "四", "五"][detailData.eventLevel]
}级事件`
: "暂无事件等级"
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/ReleaseInformation/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/ReleaseInformation/index.vue
index 9dc4f38c..82c622b6 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/ReleaseInformation/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/ReleaseInformation/index.vue
@@ -111,7 +111,7 @@ export default {
data: {eventId: this.detailData.id},
})
.then((result) => {
- console.log(result,'信息发布:eventPublishChannels')
+ // console.log(result,'信息发布:eventPublishChannels')
})
}, 500);
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/index.vue
index b0f2b73f..0ca7df3e 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/index.vue
@@ -23,14 +23,14 @@ const components = files.keys().reduce((components, key) => {
}, {});
const originGridArea = {
- EventInformation: "1 / 1 / span 12 / 1", // 事件信息(左1)
- DispatchLiaison: "13 / 1 / span 8 / 2", // 调度联络(左2)13 / 1 / span 11 / 2
- TrafficControl: "21 / 1 / span 13 / 2", //交通管制(左3)24 / 1 / span 10 / 2
+ EventInformation: "1 / 1 / span 11 / 1", // 事件信息(左1)
+ DispatchLiaison: "12 / 1 / span 7 / 2", // 调度联络(左2)13 / 1 / span 11 / 2
+ ReleaseInformation: "19 / 1/ span 9 / 2", //信息发布(左3)
+ TrafficControl: "29 / 1 / span 5 / 2", //交通管制(左4)24 / 1 / span 10 / 2
CrowdnessIndicatorRankings: "1 / 2 / span 12 / 2", //地图 / 拥挤指数排名情况(中1)
DisposalProcess: "13 / 2 / span 21 / 2", //处置过程(中2)
RealTimeVideo: "1 / 3 / span 9 / 3", //实时视频(右1)
- ReleaseInformation: "10 / 3 / span 7 / 3", //信息发布(右2)
- DeviceControl: "17 / 3 / span 17 / 3", //设备管控(右3)
+ DeviceControl: "10 / 3 / span 24 / 3", //设备管控(右3)
// DisposalPlan: "17 / 1 / span 9 / 2", //处置预案(作废)
};
@@ -40,10 +40,7 @@ export default {
...components,
},
props: {
- // detailId: {
- // type: [String, Number],
- // default: "162cb8824ea141f3a96a74ad81c22796",
- // },
+
},
provide() {
return {
@@ -90,11 +87,13 @@ export default {
) {
const gridArea = { ...originGridArea };
// 第一列变化
- gridArea["DispatchLiaison"] = "13 / 1 / span 21 / 2";
- delete gridArea.TrafficControl;
+ gridArea["DispatchLiaison"] = "12 / 1 / span 13 / 2";
+ gridArea["ReleaseInformation"] = "25 / 1 / span 9 / 2";
+ delete gridArea.TrafficControl; //交通管制(左4)24
+
if (["设备设施隐患", "非法上路"].includes(result.data.eventName)) {
// 第三列变化
- gridArea["RealTimeVideo"] = "1 / 3 / span 16 / 3";
+ gridArea["DispatchLiaison"] = "12 / 1 / span 22 / 2";
delete gridArea.ReleaseInformation;
}
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/ScopeTable.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/ScopeTable.vue
index f2c6db75..d6ba395a 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/ScopeTable.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/ScopeTable.vue
@@ -287,7 +287,6 @@ export default {
watch: {
'tableInfo.deviceType': {
async handler(newValue) {
- console.log('aaaaaaaaaaaaaaaaaa', newValue)
let loadData = await this.loadData(newValue);
// console.log('aa', loadData)
this.sbOptions = [];
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/manage/data.js b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/manage/data.js
new file mode 100644
index 00000000..00caefa4
--- /dev/null
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/manage/data.js
@@ -0,0 +1,28 @@
+// import * as PresetFormItems from "@screen/pages/control/event/event/FormEvent/PresetFormItems.js";
+import * as PresetFormItems from "@screen/common/PresetFormItems.js";
+// import { merge, cloneDeep } from "lodash";
+
+import {directionOptions} from '@screen/utils/enum.js';
+export const searchFormList = [
+
+ {
+ label: "设备名称:",
+ key: "deviceName",
+ type: "input",
+ default: ""
+ },
+ {
+ label: "物联编号:",
+ key: "iotDeviceId",
+ type: "input",
+ default: ""
+ }, {
+ label: "设备方向:",
+ key: "direction",
+ type: "select",
+ options: {
+ options: directionOptions,
+ },
+ },
+
+];
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/manage/images/refresh.svg b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/manage/images/refresh.svg
new file mode 100644
index 00000000..e31a5500
--- /dev/null
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/manage/images/refresh.svg
@@ -0,0 +1,22 @@
+
\ No newline at end of file
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/manage/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/manage/index.vue
index a609e984..a950e12d 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/manage/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/manage/index.vue
@@ -1,33 +1,468 @@
-
-
功能开发中...
+
+
+
+
+
+
+
+
+ 导出
+
+
+
+
+
+ 刷新
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ DirectionTypes[scope.row.direction] }}
+
+
+
+
+
+
+
+
+
+
+
+
+ 在线
+ 异常
+
+
+
+
+
+
+
+
+
+ 修改
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/service/publicService/components/record/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/service/publicService/components/record/index.vue
index cfe0df0f..0609ad9f 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/service/publicService/components/record/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/service/publicService/components/record/index.vue
@@ -33,6 +33,12 @@
+
+
+
+
+
+
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/service/publicService/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/service/publicService/index.vue
index 301d5cbc..972820fe 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/service/publicService/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/service/publicService/index.vue
@@ -66,7 +66,7 @@ export default {
color: #ffffff;
min-width: 128px;
position: relative;
- left: 10px;
+ // left: 10px;
}
::v-deep .el-tabs__active-bar {
@@ -94,7 +94,9 @@ export default {
::v-deep .el-tabs__content{ flex: 1;}
}
- .con_tab{width: 100%; height: 100%;}
+ .con_tab{
+ width: 100%; height: 100%;
+ }
.first_tab{
display: flex; flex-direction: column;
.line_01 {
diff --git a/ruoyi-ui/src/views/JiHeExpressway/scss/el-reset.scss b/ruoyi-ui/src/views/JiHeExpressway/scss/el-reset.scss
index 3b8e02ed..537ce4df 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/scss/el-reset.scss
+++ b/ruoyi-ui/src/views/JiHeExpressway/scss/el-reset.scss
@@ -64,7 +64,15 @@ div.el-popper {
.el-select-dropdown__item.is-disabled {
color: #c0c4cc !important;
background-color: #12242e;
+}
+.el-textarea.is-disabled {
+ .el-textarea__inner {
+ border: 1px solid #00799f !important;
+ color: #c0c4cc !important;
+ background-color: rgba(39, 94, 121, 0.3);
+ }
}
+
.el-input.is-disabled {
input.el-input__inner {
color: #c0c4cc !important;
From 13d0b836591f5b2e84ac250531788f033e9aec6c Mon Sep 17 00:00:00 2001
From: lau572 <1010031226@qq.com>
Date: Thu, 16 May 2024 18:45:39 +0800
Subject: [PATCH 3/9] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8C=87=E6=8C=A5?=
=?UTF-8?q?=E8=B0=83=E5=BA=A6=E8=B7=AF=E7=94=B1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ruoyi-ui/src/common/menuData.js | 16 +++++++-------
ruoyi-ui/src/router/index.js | 16 +++++++++++++-
ruoyi-ui/src/store/modules/menu.js | 10 +++++----
.../components/HeaderMenu/CustomMenu.vue | 14 ++++++-------
.../components/RecentPages/index.vue | 21 ++++++++++++++-----
5 files changed, 52 insertions(+), 25 deletions(-)
diff --git a/ruoyi-ui/src/common/menuData.js b/ruoyi-ui/src/common/menuData.js
index c5517702..c7db405c 100644
--- a/ruoyi-ui/src/common/menuData.js
+++ b/ruoyi-ui/src/common/menuData.js
@@ -88,12 +88,12 @@ export default [
name: "emergencyProcessManagement",
component: "control/event/emergencyProcessManagement/index.vue",
},
- {
- title: "指挥调度",
- path: "/control/event/commandDispatch",
- name: "commandDispatch",
- component: "control/event/commandDispatch/index.vue",
- },
+ // {
+ // title: "指挥调度",
+ // path: "/control/event/commandDispatch",
+ // name: "commandDispatch",
+ // component: "control/event/commandDispatch/index.vue",
+ // },
{
title: "管控事件分析",
path: "/control/event/governanceAnalysis",
@@ -226,8 +226,8 @@ export default [
name: "InformationReleaseManagement",
path: "/service/InformationReleaseManagement",
component: "service/InformationReleaseManagement/index.vue"
- },
- {
+ },
+ {
title: "公众服务统计",
name: "publicService",
path: "/service/publicService",
diff --git a/ruoyi-ui/src/router/index.js b/ruoyi-ui/src/router/index.js
index 160652a3..7eed341a 100644
--- a/ruoyi-ui/src/router/index.js
+++ b/ruoyi-ui/src/router/index.js
@@ -90,6 +90,20 @@ const constantRoutes = [
}
]
},
+ {
+ path: '/control//event',
+ component: Layout,
+ hidden: true,
+ redirect: 'noredirect',
+ children: [
+ {
+ path: 'commandDispatch',
+ component: () => import('@/views/JiHeExpressway/pages/control/event/commandDispatch/index'),
+ name: 'commandDispatch',
+ meta: { title: '指挥调度', icon: 'user' }
+ }
+ ]
+ },
// {
// path: '/system/user-auth',
// component: Layout,
@@ -223,4 +237,4 @@ const constantRoutes = [
]
-export { constantRoutes };
\ No newline at end of file
+export { constantRoutes };
diff --git a/ruoyi-ui/src/store/modules/menu.js b/ruoyi-ui/src/store/modules/menu.js
index bd024a7c..cfad661f 100644
--- a/ruoyi-ui/src/store/modules/menu.js
+++ b/ruoyi-ui/src/store/modules/menu.js
@@ -3,7 +3,7 @@ const state = {
recentPages: [],
isRecentOpen:"",
}
-
+
const mutations = {
saveRecent(state){
localStorage.setItem("recentPages", JSON.stringify(state.recentPages));
@@ -25,8 +25,10 @@ const state = {
if (!temp){
item.active = true;
state.recentPages.push(item);
+ } else {
+ let i = state.recentPages.findIndex(unit => unit.path == item.path);
+ state.recentPages[i] = item;
}
-
mutations.saveRecent(state);
},
@@ -65,7 +67,7 @@ const state = {
}
}
-
+
const getters = {
isRecentOpen(state){
if (state.isRecentOpen === ""){
@@ -80,4 +82,4 @@ const getters = {
state,
getters,
mutations,
- }
\ No newline at end of file
+ }
diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/HeaderMenu/CustomMenu.vue b/ruoyi-ui/src/views/JiHeExpressway/components/HeaderMenu/CustomMenu.vue
index 0f6271d5..cda97021 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/components/HeaderMenu/CustomMenu.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/components/HeaderMenu/CustomMenu.vue
@@ -1,32 +1,32 @@
+ 节点:{{ data.processName }}
+
+ {{ data.url }}
+
-
+
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DeviceControl/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DeviceControl/index.vue
index 5ee0890a..ff4c5207 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DeviceControl/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DeviceControl/index.vue
@@ -45,6 +45,7 @@ export default {
inject: ["provideData"],
data() {
return {
+ tableData: [],
data: null,
};
},
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DispatchLiaison/StatsDialogVisible/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DispatchLiaison/StatsDialogVisible/index.vue
index 437333ca..c7050b1c 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DispatchLiaison/StatsDialogVisible/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DispatchLiaison/StatsDialogVisible/index.vue
@@ -222,6 +222,15 @@ export default {
background: #1b586d;
color: #fff;
}
+::v-deep .el-table td.el-table__cell div {
+ line-height: 30px;
+}
+::v-deep .el-checkbox-group {
+ text-align: left;
+ .el-checkbox {
+ min-width: 70px;
+ }
+}
::v-deep .el-table tr {
border: 1px solid #07aec6;
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DispatchLiaison/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DispatchLiaison/index.vue
index 4ea38237..6e3654f9 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DispatchLiaison/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DispatchLiaison/index.vue
@@ -18,7 +18,10 @@
值班领导:
-
+
{{ item.shiftsName }}:
{{ item.shiftsNumber }}
@@ -27,24 +30,27 @@
> -->
+
-
路管人员:
-
+
{{ item.resourceName }}:
{{ item.resourceValue }}
+
-
救援车辆:
-
+
{{ item.resourceValue }}
{{ item.vehicleText }}
+
-
{
- if (element.dispatchType == 1) {
- this.staff.push(element);
- } else {
- this.vehicle.push(element);
- }
- });
+ if (res.data && res.data.resource && res.data.resource.resource) {
+ res.data.resource.resource.forEach((element) => {
+ if (element.dispatchType == 1) {
+ this.staff.push(element);
+ } else {
+ this.vehicle.push(element);
+ }
+ });
+ }
+
this.vehicleTypeList.forEach((i) => {
this.vehicle.forEach((item) => {
if (item.resourceName == i.dictValue) {
@@ -193,7 +203,7 @@ export default {
color: #38d2e7;
}
.value {
- width: 85%;
+ width: 80%;
font-size: 13px;
color: #fff;
display: flex;
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DisposalProcess/DialogVisible/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DisposalProcess/DialogVisible/index.vue
index e54a090f..74c551d0 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DisposalProcess/DialogVisible/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DisposalProcess/DialogVisible/index.vue
@@ -226,7 +226,7 @@