|
|
|
|
@ -351,7 +351,7 @@ import { getDateStr, lastYearDate } from '../../../common/util' |
|
|
|
|
// this.roadData.reportingUnitId = '522' |
|
|
|
|
let now = new Date(); |
|
|
|
|
this.roadData.statisticalDate = getDateStr(now, -1);//默认前一天 |
|
|
|
|
console.log('lastyear ===>',lastYearDate(this.roadData.statisticalDate)) |
|
|
|
|
// console.log('lastyear ===>',lastYearDate(this.roadData.statisticalDate)) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
@ -359,7 +359,7 @@ import { getDateStr, lastYearDate } from '../../../common/util' |
|
|
|
|
getDetail(id){ |
|
|
|
|
this.$request(getApp().globalData.baseUrl + '/api/biz/roadtransport/road/find/' + id,{},"GET").then(res =>{ |
|
|
|
|
this.roadData = res.data; |
|
|
|
|
console.log('last==>',lastYearDate(this.roadData.statisticalDate)) |
|
|
|
|
// console.log('last==>',lastYearDate(this.roadData.statisticalDate)) |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
//选择统计日期 |
|
|
|
|
@ -450,7 +450,8 @@ import { getDateStr, lastYearDate } from '../../../common/util' |
|
|
|
|
}, |
|
|
|
|
// 计算同比环比数据 |
|
|
|
|
calcRatio(){ |
|
|
|
|
|
|
|
|
|
// 环比 |
|
|
|
|
// this.roadData. |
|
|
|
|
}, |
|
|
|
|
// 获取负责人 |
|
|
|
|
getPersonData(){ |
|
|
|
|
|