Browse Source

交通管制录入,收费站 立交桥可多选

wangqin
zhoule 7 months ago
parent
commit
8217952295
  1. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/data.js
  2. 39
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/index.vue

2
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/data.js

@ -842,6 +842,7 @@ export const tabConfigList = [
required: true, required: true,
options: { options: {
options: [], options: [],
multiple: true,
}, },
visible: (data) => { visible: (data) => {
if (data?.eventSubclass == "3-2") { if (data?.eventSubclass == "3-2") {
@ -858,6 +859,7 @@ export const tabConfigList = [
required: true, required: true,
options: { options: {
options: [], options: [],
multiple: true,
}, },
visible: (data) => { visible: (data) => {
if (data?.eventSubclass == "3-3") { if (data?.eventSubclass == "3-3") {

39
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/FormEvent/index.vue

@ -2,37 +2,18 @@
<Dialog v-model="modelVisible" title="交通事故录入" width="1100px" top="14%"> <Dialog v-model="modelVisible" title="交通事故录入" width="1100px" top="14%">
<div class="EventDetailDialog"> <div class="EventDetailDialog">
<ElTabs v-model="activeName" @tab-click="handleChange"> <ElTabs v-model="activeName" @tab-click="handleChange">
<ElTabPane <ElTabPane v-for="(item, index) in tabConfigList" :key="index" :label="item.label" :name="item.key" />
v-for="(item, index) in tabConfigList"
:key="index"
:label="item.label"
:name="item.key"
/>
</ElTabs> </ElTabs>
<Transition name="fade"> <Transition name="fade">
<Form <Form class="form" ref="FormConfigRef" :formList="formConfig.list" v-bind="getFormOptions" labelWidth="120px" />
class="form"
ref="FormConfigRef"
:formList="formConfig.list"
v-bind="getFormOptions"
labelWidth="120px"
/>
</Transition> </Transition>
</div> </div>
<template #footer> <template #footer>
<Button <Button style="background: #c9c9c9; padding: 0 24px"
style="background: #c9c9c9; padding: 0 24px" @click.native="(modelVisible = false), (submitting = false)">取消</Button>
@click.native="(modelVisible = false), (submitting = false)" <Button style="padding: 0 24px" @click.native="handleSubmit" :loading="submitting">保存</Button>
>取消</Button
>
<Button
style="padding: 0 24px"
@click.native="handleSubmit"
:loading="submitting"
>保存</Button
>
</template> </template>
</Dialog> </Dialog>
</template> </template>
@ -180,12 +161,14 @@ export default {
} else { } else {
formData.lang = ""; formData.lang = "";
} }
if (this.index == 2 && formData.dcEventTrafficControl.facilityId instanceof Array) {
let ids = formData.dcEventTrafficControl.facilityId.join(',');
formData.dcEventTrafficControl.facilityIds = ids
formData.dcEventTrafficControl.facilityId = ''
}
if (formData.endStakeMark && formData.endStakeMark[0] != null) { if (formData.endStakeMark && formData.endStakeMark[0] != null) {
let endStakeMark = formData.endStakeMark; let endStakeMark = formData.endStakeMark;
let strMark = let strMark = endStakeMark && endStakeMark.length > 0 ? "K" + endStakeMark[0] + "+" + endStakeMark[1] : "";
endStakeMark && endStakeMark.length > 0
? "K" + endStakeMark[0] + "+" + endStakeMark[1]
: "";
if (this.index == 3) { if (this.index == 3) {
formData.dcEventTrafficCongestion.endStakeMark = strMark; formData.dcEventTrafficCongestion.endStakeMark = strMark;
} }

Loading…
Cancel
Save