desc: 修改宁波一号线运行图导入数据修改

This commit is contained in:
zyy 2019-12-23 14:49:57 +08:00
parent e46915e686
commit a31e358b41
2 changed files with 6 additions and 1 deletions

View File

@ -73,7 +73,11 @@ export default {
var stationName = title.replace(/\s/, ''); var stationName = title.replace(/\s/, '');
if (this.ExcelConfig.columns.indexOf(stationName) == -1 && reg3.test(value)) { if (this.ExcelConfig.columns.indexOf(stationName) == -1 && reg3.test(value)) {
let need = false; let need = false;
// var flag = false; if (value.split(':')[0] == '24') { // 24:XX:XX 类似这种数据 变24为00
const arr = value.split(':');
arr[0] = '00';
value = arr.join(':');
}
if (count == 1) { if (count == 1) {
count = 0; count = 0;
param.endTime = value; param.endTime = value;

View File

@ -176,6 +176,7 @@ export default {
points: points, points: points,
curve: false, curve: false,
lengthFact: 0, lengthFact: 0,
trainWindowCode: '',
kmRangeRight: model.kmRangeRight, kmRangeRight: model.kmRangeRight,
kmRangeLeft: model.kmRangeLeft, kmRangeLeft: model.kmRangeLeft,
region: model.region, region: model.region,