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