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: '等级五' } { value: 5, label: '等级五' }
], ],
formModel: { formModel: {
gernarateType:'01', gernarateType:'02',
serviceNumber:'', // serviceNumber:'', //
beginTime: '', // beginTime: '06:00:00', //
overTime: '', // overTime: '22:00:00', //
runLevel:'', // runLevel:3, //
departureInterval:180, // departureInterval:300, //
// inboundRouting:'', // code // inboundRouting:'', // code
// outboundRouting:'', // code // outboundRouting:'', // code
outAndIn:false, // outAndIn:false, //
@ -364,12 +364,12 @@ export default {
// this.$refs.dataform.clearValidate(); // this.$refs.dataform.clearValidate();
// blur // blur
this.formModel = { this.formModel = {
gernarateType:'01', gernarateType:'02',
serviceNumber:'', // serviceNumber:'', //
beginTime: '', // beginTime: '06:00:00', //
overTime: '', // overTime: '22:00:00', //
runLevel:'', // runLevel:3, //
departureInterval:180, // departureInterval:300, //
outAndIn:false, // outAndIn:false, //
// inboundRouting:'', // code // inboundRouting:'', // code
// outboundRouting:'', // code // outboundRouting:'', // code
@ -377,6 +377,7 @@ export default {
runningRouting2: '', // code2 runningRouting2: '', // code2
runningRouting:'' runningRouting:''
}; };
this.$emit('close');
// this.dialogShow = false; // this.dialogShow = false;
}, },
covertRouting(list, cb = e => true) { 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"> <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 class="content-box">
<div v-if="type=='generateRouting'"> <div v-if="type=='generateRouting'">
<gernarate-plan ref="gernaratePlanTrain" /> <gernarate-plan ref="gernaratePlanTrain" @close="closeDialog" />
</div> </div>
<jlmap-visual ref="jlmapVisual" @onMenu="onContextmenu" @onSelect="clickEvent" /> <jlmap-visual ref="jlmapVisual" @onMenu="onContextmenu" @onSelect="clickEvent" />
<!-- :style="{height: $store.state.app.height-54+'px' }" --> <!-- :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 == 'routeMap') { this.$refs.routeConfig.createRouteEvent(); }
// if (this.type == 'runplanParams') { this.$refs.runPlanConfig.clear(); } // if (this.type == 'runplanParams') { this.$refs.runPlanConfig.clear(); }
if (this.type == 'generateRouting') { this.$refs.gernaratePlanTrain.doClose(); } if (this.type == 'generateRouting') { this.$refs.gernaratePlanTrain.doClose(); }
},
closeDialog() {
this.dialogShow = false;
} }
} }
}; };