大铁项目 调度台行车计划 修改时间
This commit is contained in:
parent
00f1d98829
commit
1d2cf1c043
@ -657,6 +657,16 @@ export const menuOperate = {
|
||||
modifyDispatcherLogerRpSection:{
|
||||
operation: OperationEvent.CTCCommand.modifyDispatcherLogerRpSection.menu.operation,
|
||||
cmdType: CMD.CTC.CTC_ZONE_SAVE_TRACK_SECTION
|
||||
},
|
||||
// 调度台行车计划修改时间
|
||||
modifyDispatcherLogerRpPlanTime:{
|
||||
operation: OperationEvent.CTCCommand.modifyDispatcherLogerRpSection.menu.operation,
|
||||
cmdType: CMD.CTC.CTC_ZONE_SAVE_PLAN_TIME
|
||||
},
|
||||
// 调度台行车计划修改出入口
|
||||
modifyDispatcherLogerRpDirection:{
|
||||
operation: OperationEvent.CTCCommand.modifyDispatcherLogerRpSection.menu.operation,
|
||||
cmdType: CMD.CTC.CTC_ZONE_SAVE_DIRECTION
|
||||
}
|
||||
},
|
||||
Rail: {
|
||||
|
@ -127,7 +127,6 @@
|
||||
placeholder=""
|
||||
size="mini"
|
||||
popper-class="stationSelect"
|
||||
@focus="focusArriveRunPlan($event,scope.row)"
|
||||
@change="changeArriveRunPlan($event,scope.row,scope.$index)"
|
||||
>
|
||||
<el-option
|
||||
@ -291,7 +290,6 @@
|
||||
placeholder=""
|
||||
size="mini"
|
||||
popper-class="stationSelect"
|
||||
@focus="focusDepartRunPlan($event,scope.row)"
|
||||
@change="changeDepartRunPlan($event,scope.row,scope.$index)"
|
||||
>
|
||||
<el-option
|
||||
@ -676,10 +674,6 @@ export default {
|
||||
this.$refs.stageRunplan.doShow(this.currentRailwaySimulationRunplan[stationCode]);
|
||||
}
|
||||
},
|
||||
focusDepartRunPlan(event, row) {
|
||||
// this.activeDepartRunPlan[row.code] = {sectionCode:event, code:row.code};
|
||||
},
|
||||
// 发车股道
|
||||
changeDepartRunPlan(event, row, index) {
|
||||
const params = {
|
||||
stationCode:row.stationCode,
|
||||
@ -702,9 +696,6 @@ export default {
|
||||
// }
|
||||
// console.log(event, this.tableData[index].departRunPlan.sectionCode, row.departRunPlan.sectionCode, '------');
|
||||
},
|
||||
focusArriveRunPlan(event, row) {
|
||||
// this.activeArriveRunPlan[row.code] = {sectionCode:event, code:row.code};
|
||||
},
|
||||
changeArriveRunPlan(event, row, index) {
|
||||
const params = {
|
||||
stationCode:row.stationCode,
|
||||
|
@ -423,6 +423,7 @@ export default {
|
||||
CTC_ZONE_SAVE_PLAN_TIME:{value:'CTC_ZONE_SAVE_PLAN_TIME', label: '调度台行车计划修改到达计划时间'},
|
||||
CTC_ZONE_SAVE_DIRECTION:{value:'CTC_ZONE_SAVE_DIRECTION', label: '调度台行车计划修改到出入口'},
|
||||
CTC_ZONE_SAVE_STATION:{value:'CTC_ZONE_SAVE_STATION', label: '调度台行车计划修改到发车站'}
|
||||
|
||||
},
|
||||
RAIL: {
|
||||
CMD_RAIL_FILL_IN_TICKET: {value: 'RAIL_FILL_IN_TICKET', label: '填写票据'},
|
||||
|
@ -3841,8 +3841,24 @@ export const OperationEvent = {
|
||||
operation: '1134',
|
||||
domId: '_Tips-CTC-stationCancleTwinkle-Menu{TOP}'
|
||||
}
|
||||
},
|
||||
// 调度台行车计划修改时间
|
||||
modifyDispatcherLogerRpPlanTime:{
|
||||
menu: {
|
||||
operation: '1135',
|
||||
domId: '_Tips-CTC-modifyDispatcherLogerRpPlanTime-Menu{TOP}'
|
||||
}
|
||||
},
|
||||
// 调度台行车计划修改出入口
|
||||
modifyDispatcherLogerRpDirection:{
|
||||
menu: {
|
||||
operation: '1136',
|
||||
domId: '_Tips-CTC-modifyDispatcherLogerRpDirection-Menu{TOP}'
|
||||
}
|
||||
}
|
||||
// CTC_ZONE_SAVE_TRIP_NUMBER
|
||||
// CTC_ZONE_SAVE_STATION
|
||||
},
|
||||
RailCommand: {
|
||||
railFillInTicket: {
|
||||
menu: {
|
||||
|
@ -90,7 +90,7 @@
|
||||
@change="changeArriveRunPlan($event,scope.row,scope.$index)"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in filterSectionList"
|
||||
v-for="item in filterSectionList.filter(section=>{return section.stationCode == scope.row.stationCode})"
|
||||
:key="item.code"
|
||||
:label="item.name"
|
||||
:value="item.code"
|
||||
@ -117,7 +117,7 @@ passenger
|
||||
@change="changeDepartRunPlan($event,scope.row,scope.$index)"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in filterSectionList"
|
||||
v-for="item in filterSectionList.filter(section=>{return section.stationCode == scope.row.stationCode})"
|
||||
:key="item.code"
|
||||
:label="item.name"
|
||||
:value="item.code"
|
||||
@ -131,14 +131,16 @@ passenger
|
||||
<el-table-column width="155" prop="arrivePlanTime" label="到达时间">
|
||||
<template slot-scope="scope">
|
||||
<div v-if="scope.row.arrivePlanTime" class="accessName">
|
||||
{{ scope.row.arrivePlanTime }}
|
||||
<!-- {{ scope.row.arrivePlanTime }} -->
|
||||
<el-date-picker v-model="scope.row.arrivePlanTime" type="datetime" value-format="yyyy-MM-dd HH:mm" format="yyyy-MM-dd HH:mm" @change="changeArrivePlanTime($event,scope.row,scope.$index)" />
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column width="155" prop="departPlanTime" label="出发时间">
|
||||
<template slot-scope="scope">
|
||||
<div v-if="scope.row.departPlanTime" class="accessName">
|
||||
{{ scope.row.departPlanTime }}
|
||||
<!-- {{ scope.row.departPlanTime }} -->
|
||||
<el-date-picker v-model="scope.row.departPlanTime" type="datetime" value-format="yyyy-MM-dd HH:mm" format="yyyy-MM-dd HH:mm" @change="changeDepartPlanTime($event,scope.row,scope.$index)" />
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@ -248,6 +250,32 @@ export default {
|
||||
changeDepartRunPlan(event, row, index) {
|
||||
this.modifyDispatcherLogerRpSection(row, row.departSectionCode, 'D');
|
||||
},
|
||||
// modifyDispatcherLogerRpDirection 调度台行车计划修改出入口
|
||||
|
||||
changeArrivePlanTime(event, row, index) {
|
||||
this.modifyDispatcherLogerRpPlanTime(row, row.arrivePlanTime, 'R');
|
||||
},
|
||||
changeDepartPlanTime(event, row, index) {
|
||||
this.modifyDispatcherLogerRpPlanTime(row, row.departPlanTime, 'D');
|
||||
},
|
||||
// 调度台行车计划修改时间
|
||||
modifyDispatcherLogerRpPlanTime(row, planTime, type) {
|
||||
const params = {stationCode:row.stationCode, runPlanCode:row.runPlanCode, planTime:planTime, model:type};
|
||||
commitOperate(menuOperate.CTC.modifyDispatcherLogerRpPlanTime, params, 3).then(({valid, response})=>{
|
||||
if (valid) {
|
||||
const reslut = response.data;
|
||||
this.tableData.map(data=>{
|
||||
if (data.stationCode == reslut.stationCode && data.runPlanCode == reslut.runPlanCode) {
|
||||
data.arrivePlanTime = reslut.arrivePlanTime;
|
||||
data.departPlanTime = reslut.departPlanTime;
|
||||
}
|
||||
});
|
||||
}
|
||||
}).catch(() => {
|
||||
// this.$message.error('发布失败');
|
||||
});
|
||||
},
|
||||
// 修改发车时间
|
||||
modifyDispatcherLogerRpSection(row, sectionCode, type) {
|
||||
// stationCode 车站编码
|
||||
// runPlanCode 运行计划编码
|
||||
|
Loading…
Reference in New Issue
Block a user