This commit is contained in:
ival 2021-03-25 09:22:17 +08:00
commit 74b260782d
2 changed files with 15 additions and 11 deletions

View File

@ -48,12 +48,12 @@ export default {
{ value: 5, label: '等级五' }
],
formModel: {
gernarateType:'01',
gernarateType:'02',
serviceNumber:'', //
beginTime: '', //
overTime: '', //
runLevel:'', //
departureInterval:180, //
beginTime: '06:00:00', //
overTime: '22:00:00', //
runLevel:3, //
departureInterval:300, //
// inboundRouting:'', // code
// outboundRouting:'', // code
outAndIn:false, //
@ -364,12 +364,12 @@ export default {
// this.$refs.dataform.clearValidate();
// blur
this.formModel = {
gernarateType:'01',
gernarateType:'02',
serviceNumber:'', //
beginTime: '', //
overTime: '', //
runLevel:'', //
departureInterval:180, //
beginTime: '06:00:00', //
overTime: '22:00:00', //
runLevel:3, //
departureInterval:300, //
outAndIn:false, //
// inboundRouting:'', // code
// outboundRouting:'', // code
@ -377,6 +377,7 @@ export default {
runningRouting2: '', // code2
runningRouting:''
};
this.$emit('close');
// this.dialogShow = false;
},
covertRouting(list, cb = e => true) {

View File

@ -2,7 +2,7 @@
<el-dialog :title="title" :visible.sync="dialogShow" custom-class="content-route" width="100%" :fullscreen="true" top="0px" :before-close="close" :z-index="2000" :append-to-body="true">
<div class="content-box">
<div v-if="type=='generateRouting'">
<gernarate-plan ref="gernaratePlanTrain" />
<gernarate-plan ref="gernaratePlanTrain" @close="closeDialog" />
</div>
<jlmap-visual ref="jlmapVisual" @onMenu="onContextmenu" @onSelect="clickEvent" />
<!-- :style="{height: $store.state.app.height-54+'px' }" -->
@ -144,6 +144,9 @@ export default {
if (this.type == 'routeMap') { this.$refs.routeConfig.createRouteEvent(); }
// if (this.type == 'runplanParams') { this.$refs.runPlanConfig.clear(); }
if (this.type == 'generateRouting') { this.$refs.gernaratePlanTrain.doClose(); }
},
closeDialog() {
this.dialogShow = false;
}
}
};