diff --git a/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js b/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js index 51e08685..9cf5dbcb 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js +++ b/ruoyi-ui/src/views/JiHeExpressway/common/PresetFormItems.js @@ -776,7 +776,7 @@ export const trafficAccidentType = { }, { value: "4", - label: "自然", + label: "自燃", }, { value: "5", 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 2b6b4501..6926a669 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 @@ -72,7 +72,6 @@ - 执行: @@ -130,7 +129,7 @@ --> - + {{ itm.deviceName }} 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 08b1bca0..f6652b09 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 @@ -65,6 +65,7 @@ export default { watch: { "provideData.detail"(newValue, oldValue) { if(this.subclass !== newValue.subclass){ + this.subclass = newValue.subclass; this.initData(newValue) } diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DisposalProcess/DialogProcess/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DisposalProcess/DialogProcess/index.vue index fc022912..9f5925d7 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DisposalProcess/DialogProcess/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/DisposalProcess/DialogProcess/index.vue @@ -1,5 +1,5 @@ - + @@ -62,7 +62,7 @@ 重新生成 预览 保存 - 保存并上报 + 保存并上报 关闭 @@ -125,7 +125,7 @@ " style="background: #ffdb82" @click.native="onFileSubmit">保存 保存并上报 + " @click.native="onSubmitUpload" :loading="submitting">保存并上报 关闭 @@ -175,7 +175,7 @@ 重新生成 预览 保存 - 保存并上报 + 保存并上报 关闭 @@ -358,6 +358,7 @@ import { editEventImportantFile, importantFileStatus, } from "@/api/commandDispatch"; +import { Message } from "element-ui"; import { delay, exportFile, confirm } from "@screen/utils/common"; var moment = require("moment"); export default { @@ -380,13 +381,14 @@ export default { }, eventId: String, }, - inject: ["provideData"], + inject: ["provideData", "reload"], data() { return { provideDetail: {}, type: 0, newType: 0, showDocx: false, + submitting: false, fData: {}, formConfigList: [], reportList, @@ -422,8 +424,8 @@ export default { }; }, watch: { - async modelVisible(newValue, oldValue){ - if(newValue){ + async modelVisible(newValue, oldValue) { + if (newValue) { this.provideDetail = this.provideData.detail; this.eventId = this.provideDetail.id; await this.initData(); @@ -457,8 +459,8 @@ export default { }) let info = result.data; if (info.lang && typeof info.lang == "string") { - info.lang = info.lang.split(",") - } + info.lang = info.lang.split(",") + } if (typeof info.stakeMark == "string") { let numbers = info.stakeMark.match(/\d+/g).map(Number); info.stakeMark = numbers; @@ -571,14 +573,38 @@ export default { }, // 事件提交 onSubmit() { - this.$refs.FormConfigRef.validate().then((formData) => { }); - this.$refs.FormReportRef.validate().then((formData) => { - formData.eventId = this.eventId; - editEventImportant(formData).then((result) => { - if (result.code != 200) return Message.error(result?.msg); - // this.$message.success("修改成功"); - this.modelVisible = false; - }); + this.$refs.FormConfigRef.validate().then((form) => { + // 保存事件 + let eventType = this.provideDetail.eventType; + form.eventType = eventType; + let f = formatEvent(form, eventType); + // 保存事件信息 + request({ + url: `/dc/system/event`, + method: "put", + data: { + ...f, + id: this.provideDetail.id, + eventState: this.provideDetail.eventState, + stakeMark: f.stakeMark || '', + }, + }).then((resconfig) => { + + if (resconfig.code != 200) return Message.error(resconfig?.msg); + //保存上报信息 + this.$refs.FormReportRef.validate().then((formData) => { + formData.eventId = this.eventId; + editEventImportant(formData).then((result) => { + if (result.code != 200) return Message.error(result?.msg); + // this.$message.success("修改成功"); + Message.success("提交成功"); + this.modelVisible = false; + this.reload(); + }); + }); + + }) + }); }, // 获取事件状态 @@ -594,7 +620,6 @@ export default { deventImportantFileList(this.eventId, type).then((res) => { if (res.length > 0) { this.formFileData = res[0]; - console.log(789, res); if (type == "1" || type == "2") { this.renewedList = res; } @@ -666,15 +691,27 @@ export default { // 保存并上报 onSubmitUpload() { + this.submitting = true; let data = { ...this.formFileData, status: 1, }; if (this.formFileData && this.formFileData.id) { - editEventImportantFile(data).then((res) => { }); + editEventImportantFile(data).then((res) => { + if (res.code != 200) return Message.error(res?.msg); + this.$message.success('报送成功') + this.submitting = false; + this.modelVisible = false; + }); } else { - addEventImportantFile(data).then((res) => { }); + addEventImportantFile(data).then((res) => { + if (res.code != 200) return Message.error(res?.msg); + this.$message.success('报送成功') + this.submitting = false; + this.modelVisible = false; + }); } + this.getImportantFileStatus(); if (this.activeName == "second") { this.getEventImportantFileList(1); @@ -697,11 +734,16 @@ export default { width: 100%; height: 665px; overflow-y: auto; + overflow-x: hidden; flex-direction: column; - + .title { margin: 10px 0; } + .form{ + overflow-y: auto; + overflow-x: hidden; + } } .file { @@ -857,9 +899,11 @@ export default { } } } -.linespace{ + +.linespace { height: 46px; } + .footer { // display: flex; // max-width: 40%; 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 1f1fbf9a..c7d7d233 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 @@ -97,8 +97,9 @@ :on-success="handleUploadSuccess" :on-error="handleUploadError" accept=".jpg,.jpeg,.png,.mp4" + :before-upload="beforeUpload" > - {{ imageName }} + {{ imageName }} { - numZd.push(parseInt(e)) - }); - info[i][j] = numZd + if(j === 'rampId'){ + if(info[i][j] !== null && info[i][j] !== '' && info[i][j] !== 'NaN'){ + let aryZd = info[i][j].split(','); + let numZd = [] + aryZd.forEach(e => { + numZd.push(parseInt(e)) + }); + info[i][j] = numZd + } else { + info[i][j] = '' + } + } } } @@ -132,11 +137,13 @@ export default { if (it.label==='停车区:' && it.type==='select' ) { //停车区 it.options.options = this.lwss.filter((x) => x.type == 7); } - - }); this.formConfigList = _confirgList; - this.fData = info; + const self = this; + setTimeout(() => { + self.fData = info; + }, 500); + }, onSubmit() { this.$refs.FormConfigRef.validate().then((formData) => { @@ -145,8 +152,8 @@ export default { let eventType = this.infoData.eventType; formData.eventType = eventType; - let f = formatEvent(formData); - console.log(f,'-------') + let f = formatEvent(formData, eventType); + request({ url: `/dc/system/event`, method: "put", diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/TrafficControl/components/AddControlEventInfoDialog/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/TrafficControl/components/AddControlEventInfoDialog/index.vue index faaa7a8f..63fbbc45 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/TrafficControl/components/AddControlEventInfoDialog/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/commandDispatch/Cards/TrafficControl/components/AddControlEventInfoDialog/index.vue @@ -85,7 +85,7 @@ export default { onSubmit() { this.$refs.FormConfigRef.validate().then((formData) => { this.submitting = true; - let f = formatEvent(formData) + let f = formatEvent(formData, 3) f.id = this.eventId; f.eventState = 1; request({ 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 bacbbef4..78cfca49 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 @@ -722,7 +722,7 @@ export const trafficAccidentType = { }, { value: "1-4", - label: "自然", + label: "自燃", }, { value: "1-5", 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 e44de7d4..8143c8b3 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 @@ -108,7 +108,7 @@ export default { this.index = index; let formConfig = configList[this.tabConfigList[index].label]; - if(this.activeName === '服务器异常'){ + if(this.activeName === '服务区异常'){ formConfig.forEach((it) => { if (it.key == "dcEventServiceArea.facilityId") { it.options.options = this.lwss.filter((x) => x.type == 6); @@ -121,7 +121,9 @@ export default { // return this.$refs.FormConfigRef.validate().then((formData) => { this.submitting = true; - let f = formatEvent(formData) + + const eventType = Number(this.index) + 1; + let f = formatEvent(formData, eventType) if(f.startTime){ f.occurrenceTime = f.startTime; @@ -133,7 +135,7 @@ export default { method: "post", data: { ...f, - eventType: Number(this.index) + 1, + eventType: eventType, eventState: 0, stakeMark: f.stakeMark || '' }, @@ -177,12 +179,14 @@ export default { .fader { height: 500px; overflow-y: auto; - overflow-x: none; + overflow-x: hidden; + padding-bottom: 20px; } .form { flex: 1; overflow-y: auto; + overflow-x: hidden; } .footer { diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/index.vue index e33c119e..7776f467 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/plan/addAndEditDialog/index.vue @@ -115,7 +115,7 @@ export default { }, { value: "1-4", - label: "自然", + label: "自燃", }, { value: "1-5", diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/datav/roadNet/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/datav/roadNet/index.vue index 86aa48ba..a5ac68e3 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/datav/roadNet/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/datav/roadNet/index.vue @@ -220,7 +220,7 @@ export default { dataGreen: { title: "使用率", value: 56.35, unit: "%" } } ]; - this.manage = [ + const _manage = [ { title: "ETC门架", value: 25800 }, { title: "雷达", value: 25800 }, { title: "一类交调站", value: 25800 }, @@ -247,7 +247,7 @@ export default { { title: '', value: '' }, ]; - const warningNumber = await request({ url: 'business/warning/countNumber', method: 'get'}); + const warningNumber = await request({ url: 'business/warning/countNumber?warningSource=6', method: 'get'}); if (warningNumber.code != 200) return; _dataShare[7].value = warningNumber.data; @@ -259,20 +259,21 @@ export default { if (odsEnpNumber.code != 200) return; _dataShare[4].value = odsEnpNumber.data; - const odsEtcNumber = await request({ url: 'business/odsTollEtctuData/countNumber', method: 'get'}); - if (odsEtcNumber.code != 200) return; - _dataShare[8].value = odsEtcNumber.data; - + const odsViuNumber = await request({ url: 'business/odsTollViuData/countNumber', method: 'get'}); if (odsViuNumber.code != 200) return; _dataShare[3].value = odsViuNumber.data; + + // 门架流水数据统计 + const odsEtcNumber = await request({ url: 'business/odsTollEtctuData/countNumber', method: 'get'}); + if (odsEtcNumber.code != 200) return; + _manage[0].value = odsEtcNumber.data; const basicNumber = await request({ url: 'business/moduleCall/basicDataNumber', method: 'get'}); if (basicNumber.code != 200) return; - _dataShare[6].value = basicNumber.data; - - + _manage[5].value = basicNumber.data; + this.manage = _manage; this.dataShare = _dataShare; //设备调用次数查询 diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/analysis/charts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/analysis/charts.js index a441e17a..cf7e68c1 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/analysis/charts.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/analysis/charts.js @@ -31,7 +31,7 @@ var options = { }, grid: { top: "25%", //上边距 - right: "1%", //右边距 + right: "1.5%", //右边距 left: "1%", //左边距 bottom: "10%", //下边距 containLabel: true, 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 6c5a41ad..d8f46a39 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 @@ -109,7 +109,7 @@ fit="fit"> - 将文件拖到此处,或点击上传 + 将文件拖到此处,或点击上传 只能上传jpg/png文件,且不超过500kb diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/statistics/FormEvent/PresetFormItems.js b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/statistics/FormEvent/PresetFormItems.js index 65ba1656..31232308 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/statistics/FormEvent/PresetFormItems.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/statistics/FormEvent/PresetFormItems.js @@ -698,7 +698,7 @@ export const trafficAccidentType = { }, { value: "1-4", - label: "自然", + label: "自燃", }, { value: "1-5", diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/statistics/FormEvent/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/statistics/FormEvent/index.vue index 964a4986..8cbc3e4d 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/statistics/FormEvent/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/statistics/FormEvent/index.vue @@ -244,9 +244,17 @@ export default { display: flex; flex-direction: column; + + .fader { + height: 500px; + overflow-y: auto; + overflow-x: hidden; + } + .form { flex: 1; overflow-y: auto; + overflow-x: hidden; } .footer { diff --git a/ruoyi-ui/src/views/JiHeExpressway/utils/enum.js b/ruoyi-ui/src/views/JiHeExpressway/utils/enum.js index e45d096f..8e60b42e 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/utils/enum.js +++ b/ruoyi-ui/src/views/JiHeExpressway/utils/enum.js @@ -306,7 +306,7 @@ export const eventSubClassMap = { }, { value: "1-4", - label: "自然", + label: "自燃", }, { value: "1-5", diff --git a/ruoyi-ui/src/views/JiHeExpressway/utils/enum_event/PresetFormItems.js b/ruoyi-ui/src/views/JiHeExpressway/utils/enum_event/PresetFormItems.js index 73f7f5c0..40283b63 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/utils/enum_event/PresetFormItems.js +++ b/ruoyi-ui/src/views/JiHeExpressway/utils/enum_event/PresetFormItems.js @@ -1000,7 +1000,7 @@ export const constructionMeasurement = { type: "RadioGroup", isAlone: true, required: true, - default: "0", + default: 0, options: { activeColor: "linear-gradient(180deg, #37E7FF 0%, #009BCC 100%)", options: [ @@ -1226,3 +1226,51 @@ export const congestionCause = { return true; }, }; + + +export const locationSelect = [ + { + value: "1", + label: "入口车道", + }, + { + value: "2", + label: "入口匝道", + }, + { + value: "3", + label: "入口", + }, + { + value: "4", + label: "入口内广场", + }, + { + value: "5", + label: "出口车道", + }, + { + value: "6", + label: "出口匝道", + }, + { + value: "7", + label: "外广场", + }, + { + value: "8", + label: "出口", + }, + { + value: "9", + label: "(站外)入口匝道", + }, + { + value: "10", + label: "(站外)出口匝道", + }, + { + value: "11", + label: "出口内广场", + }, +]; \ No newline at end of file diff --git a/ruoyi-ui/src/views/JiHeExpressway/utils/enum_event/data.js b/ruoyi-ui/src/views/JiHeExpressway/utils/enum_event/data.js index c2fc76fe..ebd8bdfd 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/utils/enum_event/data.js +++ b/ruoyi-ui/src/views/JiHeExpressway/utils/enum_event/data.js @@ -94,7 +94,6 @@ export const configList = { console.log("zd", zd); formList.forEach((it) => { if (it.key == "dcEventAccident.rampId") { - console.log("it", it); it.options.options = zd; } }); @@ -295,7 +294,6 @@ export const configList = { console.log("zd", zd); formList.forEach((it) => { if (it.key == "dcEventVehicleAccident.rampId") { - // console.log("it", it); it.options.options = zd; } }); @@ -1393,10 +1391,8 @@ export const configList = { result.rows.forEach((it) => zd.push({ key: it.id, label: it.rampName }) ); - console.log("zd", zd); formList.forEach((it) => { if (it.key == "dcEventTrafficCongestion.rampId") { - console.log("it", it); it.options.options = zd; } }); @@ -1904,10 +1900,8 @@ export const configList = { result.rows.forEach((it) => zd.push({ key: it.id, label: it.rampName }) ); - // console.log("zd", zd); formList.forEach((it) => { if (it.key == "dcEventConstruction.rampId") { - // console.log("it", it); it.options.options = zd; } }); @@ -2348,7 +2342,7 @@ export const configList = { ], } -export const formatEvent = (f) => { +export const formatEvent = (f, eventType = 3) => { const formData = _.cloneDeep(f); if (formData.lang && formData.lang instanceof Array) { formData.lang = formData.lang.join(","); @@ -2360,14 +2354,14 @@ export const formatEvent = (f) => { } if (formData.endStakeMark && formData.endStakeMark[0] != null) { let endStakeMark = formData.endStakeMark; - let strMark = endStakeMark && endStakeMark.length > 0 ? "K" + endStakeMark[0].padStart(3,'0') + "+" + endStakeMark[1].padStart(3,'0') : ""; - if (this.index == 3) { + let strMark = endStakeMark && endStakeMark.length > 0 ? "K" + endStakeMark[0].toString().padStart(3,'0') + "+" + endStakeMark[1].toString().padStart(3,'0') : ""; + if (eventType == 4) { formData.dcEventTrafficCongestion.endStakeMark = strMark; } - if (this.index == 6) { + if (eventType == 7) { formData.dcEventConstruction.endStakeMark = strMark; } - if (this.index == 9) { + if (eventType == 10) { formData.dcEventAbnormalWeather.endStakeMark = strMark; } formData.endStakeMark = ""; @@ -2376,7 +2370,7 @@ export const formatEvent = (f) => { } if(formData.stakeMark){ if(formData.stakeMark.length > 0 && formData.stakeMark[0] != null){ - formData.stakeMark = ("K" + formData.stakeMark[0].padStart(3,'0') + "+" + formData.stakeMark[1].padStart(3,'0')) + formData.stakeMark = ("K" + formData.stakeMark[0].toString().padStart(3,'0') + "+" + formData.stakeMark[1].toString().padStart(3,'0')) }else{ delete formData.stakeMark }
执行: