调整西安一号线导入时间格式化

This commit is contained in:
zyy 2020-04-22 17:08:11 +08:00
parent 45e10ef066
commit 967e77042b

View File

@ -1,4 +1,4 @@
import { createMartPoint, createSeriesModel, createMarkLineModels, hexColor, convertSheetToList } from '@/utils/runPlan'; import { createMartPoint, createSeriesModel, createMarkLineModels, hexColor, convertSheetToList, prefixTime } from '@/utils/runPlan';
export default { export default {
/** 边缘高度*/ /** 边缘高度*/
@ -66,6 +66,9 @@ export default {
// 取需要的字段 // 取需要的字段
if (needList.findIndex(elem => { return elem == titleStr; }) >= 0) { if (needList.findIndex(elem => { return elem == titleStr; }) >= 0) {
stationObj[this.ExcelConfig.columns[titleStr].key] = this.ExcelConfig.columns[titleStr].formatter(valueStr); stationObj[this.ExcelConfig.columns[titleStr].key] = this.ExcelConfig.columns[titleStr].formatter(valueStr);
if (this.ExcelConfig.columns[titleStr].key == 'arriveTime' || this.ExcelConfig.columns[titleStr].key == 'departureTime') {
stationObj[this.ExcelConfig.columns[titleStr].key] = this.ExcelConfig.columns[titleStr].formatter(prefixTime(valueStr));
}
} }
} }
} }