|
|
|
|
@ -93,17 +93,18 @@ |
|
|
|
|
}, |
|
|
|
|
onLoad(options) { |
|
|
|
|
this.userInfo = uni.getStorageSync('userInfo'); |
|
|
|
|
this.queryStation(); //车展名称列表 |
|
|
|
|
if (options.type == 'add') { |
|
|
|
|
this.pageType = 'add'; |
|
|
|
|
let now = new Date(); |
|
|
|
|
this.form.statDate = getDateStr(now, -1); //默认前一天 |
|
|
|
|
this.queryTime(); //统计时段 |
|
|
|
|
this.queryStation(); //车展名称列表 |
|
|
|
|
} if (options.id) { |
|
|
|
|
this.$request(getApp().globalData.baseUrl+'/api/biz/railwayRunSituation/find//'+options.id,{},"GET").then(res => { |
|
|
|
|
this.form = res.data; |
|
|
|
|
this.queryYoyMom(); |
|
|
|
|
this.queryTime(); //统计时段 |
|
|
|
|
this.queryTime(); //统计时段 |
|
|
|
|
this.queryStation(); //车展名称列表 |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|