|
@ -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; |
|
|
} |
|
|
} |
|
|