运行图编制代码调整

This commit is contained in:
joylink_cuiweidong 2020-11-11 14:36:11 +08:00
parent f628e2b486
commit 72ca1a24b2
3 changed files with 21 additions and 2 deletions

View File

@ -302,8 +302,6 @@ export default {
},
'$store.state.socket.inviteSimulationConversition':function(val) {
this.treeData.forEach(item => {
// && item.children.length
// member.disabled
if (item.children) {
const memberList = Object.values(item.children);
memberList.forEach(data =>{

View File

@ -115,6 +115,16 @@ export default {
arriveConfigList: []
// parkSectionCodeList
};
let length = resp.data.parkSectionCodeList.length;
if ( length >= 4) {
if (resp.data.parkSectionCodeList[0].stationCode == resp.data.parkSectionCodeList[1].stationCode) {
resp.data.parkSectionCodeList.shift();
}
length = resp.data.parkSectionCodeList.length;
if (resp.data.parkSectionCodeList[length - 1].stationCode == resp.data.parkSectionCodeList[length - 2].stationCode) {
resp.data.parkSectionCodeList.pop();
}
}
const newstationTimeList = [];
let current = {};
trainInfo.stationTimeList.forEach((stationTime, index)=>{
@ -152,6 +162,7 @@ export default {
});
},
loadInitData(params) {
debugger;
this.isNew = params.isNew;
this.model.planId = this.$route.query.planId;
this.model.serviceNumber = params.serviceNumber;

View File

@ -123,6 +123,16 @@ export default {
arriveConfigList: []
// parkSectionCodeList
};
let length = resp.data.parkSectionCodeList.length;
if ( length >= 4) {
if (resp.data.parkSectionCodeList[0].stationCode == resp.data.parkSectionCodeList[1].stationCode) {
resp.data.parkSectionCodeList.shift();
}
length = resp.data.parkSectionCodeList.length;
if (resp.data.parkSectionCodeList[length - 1].stationCode == resp.data.parkSectionCodeList[length - 2].stationCode) {
resp.data.parkSectionCodeList.pop();
}
}
const newstationTimeList = [];
let current = {};
trainInfo.stationTimeList.forEach((stationTime, index)=>{