运行图编制 代码调整
This commit is contained in:
parent
42b59cc752
commit
7ac00f45dc
@ -281,8 +281,16 @@ export default {
|
|||||||
endStationFilterMap[routing.endStationCode] = {text:formatName(routing.endStationCode), value:routing.endStationCode};
|
endStationFilterMap[routing.endStationCode] = {text:formatName(routing.endStationCode), value:routing.endStationCode};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.startStationFilters = Object.values(startStationFilterMap);
|
this.startStationFilters = Object.values(startStationFilterMap).sort((a, b)=>{
|
||||||
this.endStationFilters = Object.values(endStationFilterMap);
|
const startStationA = this.$store.getters['map/getDeviceByCode'](a.value);
|
||||||
|
const startStationB = this.$store.getters['map/getDeviceByCode'](b.value);
|
||||||
|
return startStationA.kmRange - startStationB.kmRange;
|
||||||
|
});
|
||||||
|
this.endStationFilters = Object.values(endStationFilterMap).sort((a, b)=>{
|
||||||
|
const endStationA = this.$store.getters['map/getDeviceByCode'](a.value);
|
||||||
|
const endStationB = this.$store.getters['map/getDeviceByCode'](b.value);
|
||||||
|
return endStationA.kmRange - endStationB.kmRange;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
getMapStationRunUser(mapId).then(resp =>{
|
getMapStationRunUser(mapId).then(resp =>{
|
||||||
@ -326,7 +334,7 @@ export default {
|
|||||||
|
|
||||||
if ((index == 0 && String(this.addModel.startTbFront) != 'undefined') ||
|
if ((index == 0 && String(this.addModel.startTbFront) != 'undefined') ||
|
||||||
(index == list.length - 1 && String(this.addModel.endTbFront) != 'undefined')) {
|
(index == list.length - 1 && String(this.addModel.endTbFront) != 'undefined')) {
|
||||||
return 0
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (index < list.length - 1) {
|
if (index < list.length - 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user