北京线 车次窗 新建列车代码调整
This commit is contained in:
parent
fa233a7031
commit
5721f17cf9
@ -1,13 +1,16 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog class="beijing-01__systerm stand-stop-time" :title="title" :visible.sync="show" width="340px" :before-close="doClose"
|
<el-dialog class="beijing-01__systerm stand-stop-time" :title="title" :visible.sync="show" width="340px" :before-close="doClose"
|
||||||
:zIndex="2000" :modal="false" :close-on-click-modal="false" v-dialogDrag>
|
:zIndex="2000" :modal="false" :close-on-click-modal="false" v-dialogDrag>
|
||||||
<el-form size="small" label-width="80px" :model="addModel" :rules="rules" ref="form">
|
<el-form ref="form" size="small" label-width="80px" :model="addModel" :rules="rules">
|
||||||
<div style="width: 96%;display:flex;flex-dorection:row">
|
<div style="width: 96%;">
|
||||||
<!-- <el-form-item label="车 组 号:" label-width="95px" prop="tripNumber">
|
<el-form-item label="车 组 号:" label-width="95px" prop="trainCode">
|
||||||
<el-input v-model="addModel.tripNumber" disabled></el-input>
|
<el-input v-model="addModel.trainCode" />
|
||||||
</el-form-item> -->
|
</el-form-item>
|
||||||
<el-form-item label="车 次 号:" label-width="95px" prop="trainSource">
|
<el-form-item label="服 务 号:" label-width="95px" prop="serverNumber">
|
||||||
<el-input v-model="addModel.trainSource" :id="domIdTrainSource" @change="handerTrainSource"></el-input>
|
<el-input v-model="addModel.serverNumber" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="车 次 号:" label-width="95px" prop="tripNumber">
|
||||||
|
<el-input v-model="addModel.tripNumber" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
@ -24,8 +27,8 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
import { MapDeviceType, OperationEvent } from '@/scripts/ConstDic';
|
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
|
||||||
import { mouseCancelState } from '../utils/menuItemStatus';
|
import CMD from '@/scripts/cmdPlugin/CommandEnum';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
// name: 'TrainMove',
|
// name: 'TrainMove',
|
||||||
@ -37,32 +40,24 @@
|
|||||||
trainNoList: [],
|
trainNoList: [],
|
||||||
selected: null,
|
selected: null,
|
||||||
addModel: {
|
addModel: {
|
||||||
tripNumber: '',
|
trainCode: '', // 车组号
|
||||||
trainSource: '',
|
serverNumber: '', // 服务号
|
||||||
stationStandSource: '',
|
tripNumber: '' // 车次号
|
||||||
trainGoal: '',
|
|
||||||
stationStandGoal: '',
|
|
||||||
},
|
},
|
||||||
|
|
||||||
rules: {
|
rules: {
|
||||||
// tripNumber: [
|
trainCode: [
|
||||||
// { required: true, message: '请输入车组号', trigger: 'blur' }
|
{ required: true, message: '请输入车组号', trigger: 'blur' }
|
||||||
// ],
|
|
||||||
trainSource: [
|
|
||||||
{ required: true, message: '请输入车次号', trigger: 'blur' }
|
|
||||||
],
|
],
|
||||||
// stationStandSource: [
|
serverNumber: [
|
||||||
// { required: true, message: '请选择车站', trigger: 'change' }
|
{ required: true, message: '请输入服务号', trigger: 'change' }
|
||||||
// ],
|
],
|
||||||
// trainGoal: [
|
tripNumber: [
|
||||||
// { required: true, message: '请输入车次号', trigger: 'blur' }
|
{ required: true, message: '请输入车次号', trigger: 'blur' }
|
||||||
// ],
|
]
|
||||||
// stationStandGoal: [
|
|
||||||
// { required: true, message: '请选择车站', trigger: 'change' }
|
|
||||||
// ],
|
|
||||||
},
|
},
|
||||||
dialogShow: false,
|
dialogShow: false,
|
||||||
loading: false,
|
loading: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -78,12 +73,8 @@
|
|||||||
domIdConfirm() {
|
domIdConfirm() {
|
||||||
return this.dialogShow ? OperationEvent.Train.moveTrainId.menu.domId : '';
|
return this.dialogShow ? OperationEvent.Train.moveTrainId.menu.domId : '';
|
||||||
},
|
},
|
||||||
domIdTrainSource() {
|
|
||||||
// return this.dialogShow ? OperationEvent.Train.trainSource.menu.domId : '';
|
|
||||||
return this.dialogShow ? OperationEvent.Train.setPlanTrainId.menu.domId : '';
|
|
||||||
},
|
|
||||||
title() {
|
title() {
|
||||||
return '添加计划车'
|
return '创建计划车'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@ -114,14 +105,18 @@
|
|||||||
this.$refs['form'].validate((valid) => {
|
this.$refs['form'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
let operate = {
|
let operate = {
|
||||||
send: true,
|
over: true,
|
||||||
type: MapDeviceType.Train.type,
|
operation: OperationEvent.Train.createPlanTrain.menu.operation,
|
||||||
// operation: OperationEvent.Train.moveTrainId.menu.operation,
|
cmdType: CMD.TrainWindow.CMD_Train_Init_Plan,
|
||||||
operation: OperationEvent.Train.addPlanTrainId.menu.operation,
|
param: {
|
||||||
|
trainCode: this.addModel.trainCode, // 车组号
|
||||||
|
serverNumber: this.addModel.serverNumber, // 服务号
|
||||||
|
tripNumber: this.addModel.tripNumber // 车次号
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.$store.dispatch('training/next', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
|
@ -21,7 +21,7 @@ import PopMenu from '@/components/PopMenu';
|
|||||||
import NoticeInfo from './dialog/childDialog/childDialog/noticeInfo';
|
import NoticeInfo from './dialog/childDialog/childDialog/noticeInfo';
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
import { OperateMode } from '@/scripts/ConstDic';
|
import { OperateMode } from '@/scripts/ConstDic';
|
||||||
import { MapDeviceType, OperationEvent, DeviceMenu } from '@/scripts/ConstDic';
|
import { MapDeviceType, DeviceMenu } from '@/scripts/ConstDic';
|
||||||
import { MenuDisabledState, menuConvert, trainMenuFiltration } from './utils/menuItemStatus';
|
import { MenuDisabledState, menuConvert, trainMenuFiltration } from './utils/menuItemStatus';
|
||||||
import TrainDelete from './dialog/trainDelete';
|
import TrainDelete from './dialog/trainDelete';
|
||||||
import TrainDefine from './dialog/trainDefine';
|
import TrainDefine from './dialog/trainDefine';
|
||||||
@ -35,6 +35,7 @@ import TrainSetHead from './dialog/trainSetHead';
|
|||||||
import TrainSetWork from './dialog/trainSetWork';
|
import TrainSetWork from './dialog/trainSetWork';
|
||||||
import TrainFlag from './dialog/trainFlag';
|
import TrainFlag from './dialog/trainFlag';
|
||||||
import { mouseCancelState } from './utils/menuItemStatus';
|
import { mouseCancelState } from './utils/menuItemStatus';
|
||||||
|
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
|
||||||
import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler';
|
import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler';
|
||||||
import CMD from '@/scripts/cmdPlugin/CommandEnum';
|
import CMD from '@/scripts/cmdPlugin/CommandEnum';
|
||||||
|
|
||||||
@ -504,7 +505,7 @@ export default {
|
|||||||
code: this.selected.code,
|
code: this.selected.code,
|
||||||
operation: OperationEvent.Train.createPlanTrain.menu.operation,
|
operation: OperationEvent.Train.createPlanTrain.menu.operation,
|
||||||
param: {
|
param: {
|
||||||
trainWindowCode: this.selected.code
|
sectionCode: this.$store.state.map.trainWindowSectionCode
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user