diff --git a/ruoyi-ui/src/api/MonthlyEquipment/index.js b/ruoyi-ui/src/api/MonthlyEquipment/index.js index e7c06df5..030cbb7f 100644 --- a/ruoyi-ui/src/api/MonthlyEquipment/index.js +++ b/ruoyi-ui/src/api/MonthlyEquipment/index.js @@ -15,7 +15,6 @@ export function getSystemStatusList(query) { //设备状态列表按时间和类型 export function getSystemStatusTabList(query) { - //system/status/tablist return request({ url: "/system/status/tablist", method: "get", diff --git a/ruoyi-ui/src/api/menu.js b/ruoyi-ui/src/api/menu.js index faef101c..8fa64c51 100644 --- a/ruoyi-ui/src/api/menu.js +++ b/ruoyi-ui/src/api/menu.js @@ -3,7 +3,7 @@ import request from '@/utils/request' // 获取路由 export const getRouters = () => { return request({ - url: '/getRouters', + url: '/getRouters/1', method: 'get' }) } \ No newline at end of file diff --git a/ruoyi-ui/src/common/menuData.js b/ruoyi-ui/src/common/menuData.js index 68016a06..2f68291d 100644 --- a/ruoyi-ui/src/common/menuData.js +++ b/ruoyi-ui/src/common/menuData.js @@ -36,13 +36,7 @@ export default [ path: "/perception/trafficSituation", name: "perceptionTrafficSituation", component: "perception/trafficSituation/index.vue", - }, - { - title: "感知事件分析", - path: "/perception/eventAnalysis", - name: "perceptionEventAnalysis", - component: "perception/eventAnalysis/index.vue", - }, + } ], }, { diff --git a/ruoyi-ui/src/utils/request.js b/ruoyi-ui/src/utils/request.js index 1acab51b..6db6928d 100644 --- a/ruoyi-ui/src/utils/request.js +++ b/ruoyi-ui/src/utils/request.js @@ -111,10 +111,13 @@ service.interceptors.response.use(res => { } return Promise.reject('无效的会话,或者会话已过期,请重新登录。') } else if (code === 500) { - Message({ - message: msg, - type: 'error' - }) + if(msg !== 'connect timed out'){ + Message({ + message: msg, + type: 'error' + }) + } + return Promise.reject(new Error(msg)) } // License 状态码 4011 未授权 4031 访问受限,授权过期 diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/HeaderMenu/WarningList.vue b/ruoyi-ui/src/views/JiHeExpressway/components/HeaderMenu/WarningList.vue index dbd28147..c58436a6 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/HeaderMenu/WarningList.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/components/HeaderMenu/WarningList.vue @@ -92,6 +92,8 @@ export default { }, handleDialogClose() { this.eventDetailDialogVisible = false; + + this.$root.$emit('refresh-event-list'); }, reData() { diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/RecentPages/index.vue b/ruoyi-ui/src/views/JiHeExpressway/components/RecentPages/index.vue index fba02e5b..4f7968de 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/RecentPages/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/components/RecentPages/index.vue @@ -266,7 +266,7 @@ export default{ display: flex; align-items: center; justify-content: center; i{ display: none; - width:6px; height: 6px; border-radius: 3px; + width:10px; height: 10px; border-radius: 3px; } &.active i{ display: block; background-color: #FA0; } } diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/Table.vue b/ruoyi-ui/src/views/JiHeExpressway/components/Table.vue index e0aeb9f5..390ef862 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/Table.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/components/Table.vue @@ -22,7 +22,6 @@ export default { } }, created() { - console.log(this) }, } diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/TimeLine/TimeLine2/index.vue b/ruoyi-ui/src/views/JiHeExpressway/components/TimeLine/TimeLine2/index.vue index 24fa0aa6..c82d9304 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/TimeLine/TimeLine2/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/components/TimeLine/TimeLine2/index.vue @@ -70,9 +70,6 @@ export default { let scrollbox = document.getElementById("scrollbox"); scrollbox.scrollTop = scrollbox.scrollHeight; }); - - console.log(88, scrollbox.scrollHeight); - console.log(99, scrollbox.scrollTop); }, }, }, diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/Video/videoStream.js b/ruoyi-ui/src/views/JiHeExpressway/components/Video/videoStream.js index ffdc31d6..e9ad16f8 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/Video/videoStream.js +++ b/ruoyi-ui/src/views/JiHeExpressway/components/Video/videoStream.js @@ -190,12 +190,10 @@ export class HttpLivePlayer { // }); this.player.on(flvJs.Events.ERROR, (errorType, errorDetail, errorInfo) => { - console.log("errorType", errorType); - console.log("errorDetail", errorDetail); - console.log("errorInfo", errorInfo); - Message.warning( - `视频流加载失败, ${ErrorTypesCn[errorType] || "其他错误"}` - ); + console.log("video errorInfo", errorInfo); + // Message.warning( + // `视频流加载失败, ${ErrorTypesCn[errorType] || "其他错误"}` + // ); this.initLiveVideo(); }); diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/VideoMulti/videoStream.js b/ruoyi-ui/src/views/JiHeExpressway/components/VideoMulti/videoStream.js index 0dd0e8da..75beddbc 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/VideoMulti/videoStream.js +++ b/ruoyi-ui/src/views/JiHeExpressway/components/VideoMulti/videoStream.js @@ -166,12 +166,10 @@ export class HttpLivePlayer { // }); this.player.on(flvJs.Events.ERROR, (errorType, errorDetail, errorInfo) => { - console.log("errorType", errorType); - console.log("errorDetail", errorDetail); - console.log("errorInfo", errorInfo); - Message.warning( - `视频流加载失败, ${ErrorTypesCn[errorType] || "其他错误"}` - ); + console.log("video errorInfo", errorInfo); + // Message.warning( + // `视频流加载失败, ${ErrorTypesCn[errorType] || "其他错误"}` + // ); let self = this; setTimeout(() => { self.initLiveVideo(); diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/DrivingGuidance/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/DrivingGuidance/index.vue index 30a45fa7..4efbf63b 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/DrivingGuidance/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/DrivingGuidance/index.vue @@ -14,10 +14,9 @@
- +
- @@ -114,7 +113,6 @@ export default { }; }, async created() { - console.log(333, this.dialogData, 444); this.data = { ...this.dialogData, roadName: null }; getProduct(this.dialogData.productId) @@ -152,6 +150,12 @@ export default { if (roadInfo) this.data.roadName = roadInfo.roadName; }, methods: { + onControlClick(){ + if(this.dialogData.useState){ + this.deviceControlVisible = true + } + + }, updateFormData(formData) { formData.workMode && this.$set(this.data, "workMode", inducerModeDic[formData.workMode]); //(this.data.workMode = inducerModeDic[formData.controlType]); diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/MillimeterWaveRadar/components/DeviceControlDialog.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/MillimeterWaveRadar/components/DeviceControlDialog.vue index 4d23bd82..29470a62 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/MillimeterWaveRadar/components/DeviceControlDialog.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/MillimeterWaveRadar/components/DeviceControlDialog.vue @@ -6,6 +6,7 @@ - +
+ + + + + + + +
+
+ + + @@ -45,14 +78,17 @@ import Button from "@screen/components/Buttons/Button.vue"; import Dialog from "@screen/components/Dialog/index.vue"; import request from "@/utils/request"; -import { throttle } from "lodash" +import Pagination from "@screen/components/Pagination.vue"; +import Table from "@screen/components/Table.vue"; import { Message } from "element-ui"; export default { name: "DeviceControlDialog", components: { Dialog, - Button + Button, + Pagination, + Table, }, model: { prop: "visible", @@ -77,9 +113,10 @@ export default { dateRange: [], searchData: { - pageSize: 12, - pageNum: 1 + pageSize: 10, + pageIndex: 0 }, + tableData:[] }; }, computed: { @@ -88,7 +125,7 @@ export default { return this.visible; }, set(val) { - // this.$emit("update:value", val); + this.$emit("update:value", val); }, }, }, @@ -96,7 +133,9 @@ export default { visible: { immediate: true, handler(bool) { - this.initData(); + if(bool){ + this.initData(); + } }, }, }, @@ -106,21 +145,23 @@ export default { methods: { initData(){ this.dateRange = []; - this.eventType = 'all'; this.searchData = { - pageSize: 12, - pageNum: 1 + pageSize: 10, + pageIndex: 0 } this.bindData(); }, async bindData() { - console.log(this.deviceId) - // request({ - // url: `business/device/events/history/{deviceId}/type/{type}`, - // method: "get", - // }).then(res=>{ - // if (result.code != 200) return Message.error(result?.msg); - // }) + request({ + url: `business/device/events/history/${this.deviceId}/type/${this.eventType}`, + method: "get", + params:{ + ...this.searchData + } + }).then(res=>{ + if (res.code != 200) return Message.error(res?.msg); + console.log(res) + }) }, }, diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/MillimeterWaveRadar/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/MillimeterWaveRadar/index.vue index ea9b8ded..8239ef90 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/MillimeterWaveRadar/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/MillimeterWaveRadar/index.vue @@ -14,7 +14,7 @@ - + diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RoadNetworkFacilities/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RoadNetworkFacilities/index.vue index c62445dc..79ac3798 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RoadNetworkFacilities/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/RoadNetworkFacilities/index.vue @@ -57,12 +57,12 @@ export default { activeName: "first", deviceControlVisible: false, data: { - deviceType: "行车诱导", - deviceStation: "k094+079", - roadName: "G35济泽高速", - direction: "1", - deviceState: "0", - deviceVendors: "XXX厂家", + deviceType: "", + deviceStation: "", + roadName: "", + direction: "", + deviceState: "", + deviceVendors: "", }, formList: [], dateRange: [], 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 a9008e70..92f756ba 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,10 @@ div.switcher { \ No newline at end of file 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 13954347..f0a4a2cf 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 @@ -71,7 +71,8 @@ export default { let data = result.data; if (data.length == 0) { this.tableData = [{ ...defaultTableInfo }]; - return Message.warning("该事件暂无处置预案"); + return; + // return Message.warning("该事件暂无处置预案"); } let dcExecuteAction = data[0].dcExecuteAction || []; this.planId = data[0].id; @@ -99,7 +100,6 @@ export default { this.tableData = dcArr.length == 0 ? [{ ...defaultTableInfo }] : dcArr; - console.log("tableData", this.tableData); }) .catch((err) => { console.log(err); @@ -138,8 +138,8 @@ export default { if(this.tableData[index].isDefault !== true){ param['dcExecuteAction']['executeConfig'] = JSON.stringify(this.tableData[index]['executeConfig']) param['dcExecuteAction']['recoverConfig'] = JSON.stringify(this.tableData[index]['recoverConfig']) - } + request({ url: `business/plans/list/event/emergencyPlans`, method: "post", @@ -222,11 +222,34 @@ export default { if (item.devList && item.devList.length > 0) { dcData.deviceList = item.devList.join(","); } - dcData.executeConfig = JSON.stringify(item.executeConfig); - dcData.recoverConfig = JSON.stringify(item.recoverConfig); + if(item.deviceType === 2 || item.deviceType === 5){ + dcData.executeConfig = JSON.stringify(item.executeConfig); + dcData.recoverConfig = JSON.stringify(item.recoverConfig); + } else { + let zxData = {}, + hfData = {}; + Object.keys(item).forEach((key) => { + if (/^zx_/.test(key)) { + let keyName = key.substring(3); + zxData[keyName] = item[key]; + } + if (/^hf_/.test(key)) { + let keyName = key.substring(3); + hfData[keyName] = item[key]; + } + }); + if (item.deviceType == 12) { + zxData = this.formatData(zxData); + hfData = this.formatData(hfData); + } + dcData.executeConfig = JSON.stringify(zxData); + dcData.recoverConfig = JSON.stringify(hfData); + } + dcArr.push(dcData); }); + let reqData = { operationType: value, //1-执行操作 2-恢复操作 dcEmergencyPlans: { @@ -241,8 +264,6 @@ export default { direction: this.detailData.direction == "菏泽方向" ? "1" : "3", }, }; - console.log("reqData", reqData); - request({ url: "/business/plans/event/confirm", method: "post", @@ -287,6 +308,7 @@ export default { justify-content: space-evenly; margin-top: 10px; .special-button { + cursor: pointer; width: 100px; .icon { background-repeat: no-repeat; 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 c7050b1c..3a35c321 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 @@ -163,7 +163,7 @@ export default { this.form.vehicle = newVehiclesMap; postUpdateSource(this.form).then((res) => { - this.$emit("handleRefresh"); + this.$emit("handleRefresh",'reload'); }); }, }, 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 99f71e17..ce9275f2 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 @@ -83,7 +83,7 @@ export default { Descriptions, StatsDialogVisible, }, - inject: ["provideData"], + inject: ["provideData","reload"], data() { return { provideDetail: null, @@ -107,12 +107,14 @@ export default { }, methods: { handleClick() { + this.$parent.$refs['CrowdnessIndicatorRankings'][0].active = [] this.statsDialogVisible = true; }, handleClose() { this.statsDialogVisible = false; }, - getCommandDispatch() { + getCommandDispatch(type='init') { + console.log(type,'---------') let data = { stakeMark: this.provideDetail.stakeMark, id: this.provideDetail.id, @@ -160,6 +162,10 @@ export default { // this.vehiclesChoice.push(element); this.vehiclesChoice.push(element.resourceId); }); + this.statsDialogVisible = false; + if(type !== 'init'){ + this.reload(); + } }); }, getVehicleTypeList() { diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DisposalProcess/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DisposalProcess/index.vue index 9d3e73f5..97a08fe2 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DisposalProcess/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DisposalProcess/index.vue @@ -104,7 +104,7 @@ :on-error="handleUploadError" accept=".jpg,.jpeg,.png,.mp4" > - {{ imageName }} +
{{ imageName }}
{ if (newVlaue == element.nodeNode) { if (element.commonPhrases != "undefined") { @@ -241,6 +244,7 @@ export default { return (1 / this.adpScale.scaleX) * distance; }, handleFullHeight() { + this.$parent.$refs['CrowdnessIndicatorRankings'][0].active = [] this.isFullHeight = !this.isFullHeight; this.$emit("fullHeight", "CrowdnessIndicatorRankings"); @@ -249,7 +253,6 @@ export default { // 处置过程节点 getProcess() { getProcessNode(this.eventId).then((result) => { - console.log("处置过程节点", result); if (result.code != 200) return []; this.timeLine1List = result.data.map((item) => { return { @@ -268,9 +271,7 @@ export default { //处置过程记录 async disposalRecords(id) { let processIdMap = {}; - console.log("canshu ", id); getProcessList(id).then((result) => { - console.log("处置过程记录", result); this.timeLine2List = result.map((item) => { processIdMap[item.processId] = new Date( item.operationTime @@ -312,6 +313,7 @@ export default { }, // 处置过程发送 onSubmit() { + if (this.context || this.imageUrl) { let content = ""; if (this.testRadio == "input") { @@ -319,7 +321,9 @@ export default { } else { content = this.imageUrl; } + console.log(this.imageUrl, this.fileType,'------------') let type = this.containsArrayElement(this.imageUrl, this.fileType); + console.log(type,'$$$') let data = { eventId: this.eventId, processId: this.processId, @@ -340,9 +344,10 @@ export default { this.context = ""; this.imageUrl = ""; this.imageName = "点击上传"; - this.fileType = []; this.text = ""; this.$message.success("发送成功"); + + this.reload(); }); } else { this.$message.warning("调度指令不能为空"); @@ -362,6 +367,7 @@ export default { postCompleteEvent(data).then((result) => { if (result.code != 200) return []; this.$message.success("事件解除成功"); + this.reload(); }); }) .catch(() => {}); @@ -379,6 +385,7 @@ export default { postNoSkipClear(data).then((result) => { if (result.code != 200) return []; this.$message.success("操作成功"); + this.reload(); }); }) .catch(() => {}); @@ -436,10 +443,15 @@ export default { background-color: #0d5f79; color: #f4f4f4; border-radius: 2px; - line-height: 5px; + line-height: 26px; height: 26px; font-size: 14px; border: 0; + padding: 0px 5px; + + overflow:hidden; + text-overflow:ellipsis; + white-space:nowrap; } } diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/EventInformation/components/EditEventInformationDialog/data.js b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/EventInformation/components/EditEventInformationDialog/data.js index 05d53346..cca8f4cc 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/EventInformation/components/EditEventInformationDialog/data.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/EventInformation/components/EditEventInformationDialog/data.js @@ -662,7 +662,7 @@ export const configList = { type: "RadioGroup", isAlone: true, required: true, - default: "1", + default: 1, options: { activeColor: "linear-gradient(180deg, #37E7FF 0%, #009BCC 100%)", options: [ @@ -762,12 +762,12 @@ export const configList = { type: "RadioGroup", isAlone: true, required: true, - default: "1", + default: 1, options: { activeColor: "linear-gradient(180deg, #37E7FF 0%, #009BCC 100%)", options: [ { - key: "1", + key: 1, label: "主线关闭", }, ], @@ -779,7 +779,7 @@ export const configList = { type: "RadioGroup", isAlone: true, required: true, - default: "1", + default: 1, options: { activeColor: "linear-gradient(180deg, #37E7FF 0%, #009BCC 100%)", options: [ @@ -885,7 +885,7 @@ export const configList = { }, freeway, directionName, - PresetFormItems.emptyLine, + // PresetFormItems.emptyLine, { label: "出入口:", key: "dcEventTrafficControl.exitsInlets", @@ -963,7 +963,6 @@ export const configList = { // console.log("zd", zd); formList.forEach((it) => { if (it.key == "dcEventTrafficControl.rampId") { - console.log("it", it); it.options.options = zd; } }); @@ -1168,7 +1167,7 @@ export const configList = { return false; }, }, - PresetFormItems.startTime, + {...PresetFormItems.startTime,...{key:'startTime'}}, PresetFormItems.expectedEndTime, PresetFormItems.remark, PresetFormItems.source, @@ -1246,40 +1245,39 @@ export const configList = { type: "RadioGroup", isAlone: true, required: true, - // default: "1", options: { activeColor: "linear-gradient(180deg, #37E7FF 0%, #009BCC 100%)", options: [ { - key: "1", + key:1, label: "收费站广场拥堵导致出口压车", }, { - key: "2", + key: 2, label: "收费站设备故障", }, { - key: "3", + key: 3, label: "地方道路原因", }, { - key: "4", + key: 4, label: "省内非集团所辖高速原因", }, { - key: "5", + key: 5, label: "集团所辖道路拥堵", }, { - key: "6", + key: 6, label: "集团所辖枢纽立交异常导致主线压车", }, { - key: "7", + key: 7, label: "路侧起火", }, { - key: "8", + key: 8, label: "备注项添加", }, ], @@ -1446,16 +1444,16 @@ export const configList = { type: "RadioGroup", isAlone: true, required: true, - default: "1", + default: 1, options: { activeColor: "linear-gradient(180deg, #37E7FF 0%, #009BCC 100%)", options: [ { - key: "1", + key: 1, label: "单点", }, { - key: "2", + key: 2, label: "多点", }, ], @@ -1723,16 +1721,16 @@ export const configList = { type: "RadioGroup", isAlone: true, required: true, - default: "1", + default: 1, options: { activeColor: "linear-gradient(180deg, #37E7FF 0%, #009BCC 100%)", options: [ { - key: "1", + key: 1, label: "养护施工类施工", }, { - key: "2", + key: 2, label: "工程建设类施工", }, ], @@ -1869,16 +1867,16 @@ export const configList = { key: "dcEventConstruction.controlMode", type: "RadioGroup", required: true, - default: "1", + default:1, options: { activeColor: "linear-gradient(180deg, #37E7FF 0%, #009BCC 100%)", options: [ { - key: "1", + key:1, label: "封闭", }, { - key: "2", + key: 2, label: "不封闭", }, ], @@ -1902,16 +1900,16 @@ export const configList = { type: "RadioGroup", isAlone: false, required: true, - default: "1", + default: 1, options: { activeColor: "linear-gradient(180deg, #37E7FF 0%, #009BCC 100%)", options: [ { - key: "1", + key: 1, label: "车道", }, { - key: "2", + key: 2, label: "其他", }, ], @@ -1929,20 +1927,20 @@ export const configList = { type: "RadioGroup", isAlone: true, required: true, - default: "1", + default: 1, options: { activeColor: "linear-gradient(180deg, #37E7FF 0%, #009BCC 100%)", options: [ { - key: "1", + key: 1, label: "通行受限", }, { - key: "2", + key: 2, label: "车辆谨慎慢行", }, { - key: "3", + key: 3, label: "车辆正常通行", }, ], @@ -2016,7 +2014,6 @@ export const configList = { label: "出入口:", key: "dcEventConstruction.exitsInlets", type: "RadioGroup", - isAlone: false, required: true, default: "2", options: { diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/EventInformation/components/EditEventInformationDialog/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/EventInformation/components/EditEventInformationDialog/index.vue index 1f95610d..f2709e79 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/EventInformation/components/EditEventInformationDialog/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/EventInformation/components/EditEventInformationDialog/index.vue @@ -49,8 +49,7 @@ export default { formConfigList: [], submitting: false, fData: {}, - resultEventData: {}, - // eventId: "1a91d65cc31f4a9d90122888edb31043", + infoData: {}, roads: [], direction: [], lwss: [], @@ -72,16 +71,8 @@ export default { mounted() {}, methods: { async initData() { - let infoData = await request({ - url: `/dc/system/event/eventSubclass/${this.detailData.id}`, //交通事件 - method: "get", - }); - - console.log('-----',infoData) - if (infoData.code != 200) return Message.error(infoData?.msg); - this.resultEventData = { ...infoData.data }; - - let info = infoData.data; + this.infoData = { ...this.detailData }; + let info = { ...this.detailData }; if (typeof info.stakeMark == "string") { let numbers = info.stakeMark.match(/\d+/g).map(String); info.stakeMark = numbers; @@ -130,7 +121,7 @@ export default { this.$refs.FormConfigRef.validate().then((formData) => { this.submitting = true; - let eventType = this.resultEventData.eventType; + let eventType = this.infoData.eventType; formData.eventType = eventType; if ( (eventType == 1 || eventType == 2) && @@ -141,6 +132,7 @@ export default { if(formData.direction){ formData.direction = formData.direction == '济南方向' ? '3' : '1' } + formData.roadId = 1; if ( eventType == 3 && formData.dcEventTrafficControl.facilityId instanceof Array @@ -172,8 +164,8 @@ export default { // console.log('formData', { // ...formData, - // id: this.resultEventData.id, - // eventState: this.resultEventData.eventState, + // id: this.infoData.id, + // eventState: this.infoData.eventState, // stakeMark: (stakeMark && stakeMark[0] != null) ? ((stakeMark && stakeMark.length > 0) ? ('K' + stakeMark[0].padStart(3,'0') + '+' + stakeMark[1]) : '') : '', // }) // this.submitting = false; @@ -183,8 +175,8 @@ export default { method: "put", data: { ...formData, - id: this.resultEventData.id, - eventState: this.resultEventData.eventState, + id: this.infoData.id, + eventState: this.infoData.eventState, stakeMark: stakeMark && stakeMark[0] != null ? stakeMark && stakeMark.length > 0 @@ -220,6 +212,7 @@ export default { .form { flex: 1; overflow-y: auto; + overflow-x: hidden; } .footer { 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 bf2e3190..19aaa46d 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 @@ -1,13 +1,13 @@