运行图编辑代码调整

This commit is contained in:
joylink_cuiweidong 2020-10-22 13:34:08 +08:00
parent 3d1c5dacd4
commit c7d99e7913
2 changed files with 1 additions and 2 deletions

View File

@ -239,7 +239,6 @@ export default {
this.routingList = resp.data; this.routingList = resp.data;
const startStationFilterMap = {}; const startStationFilterMap = {};
const endStationFilterMap = {}; const endStationFilterMap = {};
debugger;
this.routingList.forEach(routing=>{ this.routingList.forEach(routing=>{
if (!startStationFilterMap[routing.startStationCode]) { if (!startStationFilterMap[routing.startStationCode]) {
startStationFilterMap[routing.startStationCode] = {text:formatName(routing.startStationCode), value:routing.startStationCode}; startStationFilterMap[routing.startStationCode] = {text:formatName(routing.startStationCode), value:routing.startStationCode};

View File

@ -350,7 +350,7 @@ export default {
}, },
async analyticalServiceNumber(data) { async analyticalServiceNumber(data) {
this.serviceNumberConfig.data = Object.keys(data || {}) this.serviceNumberConfig.data = Object.keys(data || {})
.sort((a, b) => { return data[a].oldIndex - data[b].oldIndex; }) .sort((a, b) => { return parseInt(data[a].serviceNumber) - parseInt(data[b].serviceNumber); })
.map(serviceNumber => { return { serviceNumber }; }); .map(serviceNumber => { return { serviceNumber }; });
}, },
async analyticalTripNumber(data) { async analyticalTripNumber(data) {