10 changed files with 516 additions and 166 deletions
@ -0,0 +1,39 @@ |
|||||
|
import * as PresetFormItems from "@screen/pages/control/event/event/FormEvent/PresetFormItems.js"; |
||||
|
|
||||
|
export const formConfigList = [ |
||||
|
{ |
||||
|
label: "事故类型:", |
||||
|
key: "key13", |
||||
|
type: "select", |
||||
|
}, |
||||
|
PresetFormItems.trafficAccidentType, |
||||
|
PresetFormItems.callPolicePersonName, |
||||
|
PresetFormItems.callPolicePersonPhone, |
||||
|
PresetFormItems.route, |
||||
|
PresetFormItems.direction, |
||||
|
PresetFormItems.eventLevel, |
||||
|
PresetFormItems.station, |
||||
|
PresetFormItems.locationMode, |
||||
|
PresetFormItems.pressure, |
||||
|
PresetFormItems.eventHappenTime, |
||||
|
PresetFormItems.aEstimatedReleaseTime, |
||||
|
PresetFormItems.weatherConditions, |
||||
|
PresetFormItems.effect, |
||||
|
PresetFormItems.isMaintenanceAccident, |
||||
|
PresetFormItems.isCongestionAhead, |
||||
|
PresetFormItems.isCurveRoad, |
||||
|
PresetFormItems.isInTunnel, |
||||
|
PresetFormItems.isArrives, |
||||
|
PresetFormItems.isForkRoad, |
||||
|
PresetFormItems.emptyLine, |
||||
|
PresetFormItems.trafficPolicePhone, |
||||
|
{ |
||||
|
...PresetFormItems.emptyLine, |
||||
|
key: "096993", |
||||
|
}, |
||||
|
PresetFormItems.wreckerCalls, |
||||
|
PresetFormItems.spillName, |
||||
|
PresetFormItems.ownerPhone, |
||||
|
PresetFormItems.laneOccupancy, |
||||
|
PresetFormItems.vehicleCondition, |
||||
|
]; |
@ -0,0 +1,72 @@ |
|||||
|
<template> |
||||
|
<Dialog v-model="modelVisible" title="修改事件信息"> |
||||
|
<div class="EditEventInformationDialog"> |
||||
|
<Form class="form" :formList="formConfigList" column="2" labelWidth="120px" /> |
||||
|
|
||||
|
<div class="footer"> |
||||
|
<Button>保存</Button> |
||||
|
<Button style="background: #C9C9C9;">关闭</Button> |
||||
|
</div> |
||||
|
</div> |
||||
|
</Dialog> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import Dialog from "@screen/components/Dialog/index"; |
||||
|
import Form from '@screen/components/FormConfig'; |
||||
|
import Button from '@screen/components/Buttons/Button.vue'; |
||||
|
|
||||
|
import { formConfigList } from "./data.js" |
||||
|
|
||||
|
export default { |
||||
|
name: 'EditEventInformationDialog', |
||||
|
components: { |
||||
|
Dialog, |
||||
|
Form, |
||||
|
Button |
||||
|
}, |
||||
|
model: { |
||||
|
prop: 'visible', |
||||
|
event: 'close' |
||||
|
}, |
||||
|
props: { |
||||
|
visible: Boolean |
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
formConfigList |
||||
|
} |
||||
|
}, |
||||
|
computed: { |
||||
|
modelVisible: { |
||||
|
get() { |
||||
|
return this.visible; |
||||
|
}, |
||||
|
set(val) { |
||||
|
this.$emit('close', val) |
||||
|
} |
||||
|
}, |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style lang='scss' scoped> |
||||
|
.EditEventInformationDialog { |
||||
|
gap: 9px; |
||||
|
width: 810px; |
||||
|
height: 771px; |
||||
|
display: flex; |
||||
|
flex-direction: column; |
||||
|
|
||||
|
.form { |
||||
|
flex: 1; |
||||
|
overflow-y: auto; |
||||
|
} |
||||
|
|
||||
|
.footer { |
||||
|
display: flex; |
||||
|
justify-content: end; |
||||
|
gap: 15px; |
||||
|
} |
||||
|
} |
||||
|
</style> |
Loading…
Reference in new issue