main
张群 2 years ago
commit a566dcaad5
  1. 7
      pages/roadTransport/transportData/form.vue

@ -351,6 +351,7 @@ import { getDateStr, lastYearDate } from '../../../common/util'
// this.roadData.reportingUnitId = '522' // this.roadData.reportingUnitId = '522'
let now = new Date(); let now = new Date();
this.roadData.statisticalDate = getDateStr(now, -1);// this.roadData.statisticalDate = getDateStr(now, -1);//
this.getRatio()
// console.log('lastyear ===>',lastYearDate(this.roadData.statisticalDate)) // console.log('lastyear ===>',lastYearDate(this.roadData.statisticalDate))
} }
@ -359,9 +360,15 @@ import { getDateStr, lastYearDate } from '../../../common/util'
getDetail(id){ getDetail(id){
this.$request(getApp().globalData.baseUrl + '/api/biz/roadtransport/road/find/' + id,{},"GET").then(res =>{ this.$request(getApp().globalData.baseUrl + '/api/biz/roadtransport/road/find/' + id,{},"GET").then(res =>{
this.roadData = res.data; this.roadData = res.data;
this.getRatio()
// console.log('last==>',lastYearDate(this.roadData.statisticalDate)) // console.log('last==>',lastYearDate(this.roadData.statisticalDate))
}) })
}, },
getRatio(){
this.$request(getApp().globalData.baseUrl + '/api/biz/roadtransport/road/findByStatisticalDate/' + this.roadData.statisticalDate,{},"GET").then(res =>{
console.log('比例数据===>',res)
})
},
// //
bindDateChange(e) { bindDateChange(e) {
this.roadData.statisticalDate = e.detail.value; this.roadData.statisticalDate = e.detail.value;

Loading…
Cancel
Save