运行图编制代码调整
This commit is contained in:
parent
f628e2b486
commit
72ca1a24b2
@ -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 =>{
|
||||
|
@ -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;
|
||||
|
@ -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)=>{
|
||||
|
Loading…
Reference in New Issue
Block a user