diff --git a/pages.json b/pages.json index 7edacfb..c6fc74d 100644 --- a/pages.json +++ b/pages.json @@ -177,7 +177,8 @@ { "path": "pages/roadTransport/dataSubmission/list", "style": { - "navigationBarTitleText": "综合运输数据报送" + "navigationBarTitleText": "综合运输数据报送", + "enablePullDownRefresh": true } }, { @@ -189,7 +190,8 @@ { "path": "pages/roadTransport/quantitySent/list", "style": { - "navigationBarTitleText": "道路运输发送量" + "navigationBarTitleText": "道路运输发送量", + "enablePullDownRefresh": true } }, { @@ -207,7 +209,8 @@ { "path": "pages/bus/busDataInfo/list", "style": { - "navigationBarTitleText": "公交投入数据" + "navigationBarTitleText": "公交投入数据", + "enablePullDownRefresh": true } } ,{ @@ -219,7 +222,8 @@ { "path": "pages/portShipping/pilotStation/list", "style": { - "navigationBarTitleText": "引航站" + "navigationBarTitleText": "引航站", + "enablePullDownRefresh": true } }, { diff --git a/pages/bus/busDataInfo/form.vue b/pages/bus/busDataInfo/form.vue index 627eb09..fe7d713 100644 --- a/pages/bus/busDataInfo/form.vue +++ b/pages/bus/busDataInfo/form.vue @@ -47,7 +47,7 @@ - {{item.stationId || ''}} + {{item.stationName || ''}} - {{item.stationId || ''}} + {{item.stationName || ''}} @@ -112,9 +112,9 @@ - 人数(万人): + 人数(人): - @@ -275,7 +275,7 @@ this.landList.map(item => { item.isFinish = false; this.form.bizBusDataDetailVOList.push({ - // "landName": item.stationId, + // "landName": item.stationName, // "lastYearpassengerCount": '', // "lastYearvehicleInput": '', // "passengerCount": '', @@ -286,7 +286,7 @@ // "vehicleInputYearOnYear": '', // "yestPassengerCount": '', // "yesterdayvehicleInput": '', - busUnit:item.stationId, + busUnit:item.stationName, // busIndex:'', vehicleInput:'', vehicleInputMom:0, @@ -306,14 +306,14 @@ }) } else { // this.landList = [ - // {stationId: "即墨交通局"}, - // {stationId: "胶州交通局"}, - // {stationId: "青岛公交"}, + // {stationName: "即墨交通局"}, + // {stationName: "胶州交通局"}, + // {stationName: "青岛公交"}, // ] let arr = JSON.parse(JSON.stringify(this.form.bizBusDataDetailVOList)); this.form.bizBusDataDetailVOList = []; this.landList.map(item => { - let idx = arr.findIndex(item2 => item2.busUnit == item.stationId); + let idx = arr.findIndex(item2 => item2.busUnit == item.stationName); console.log(idx) if (idx > -1) { item.isFinish = checkNotEmpty(arr[idx].passengerCount) && checkNotEmpty(arr[idx].vehicleInput) ? true : @@ -322,7 +322,7 @@ } else { item.isFinish = false; this.form.bizBusDataDetailVOList.push({ - "busUnit": item.stationId, + "busUnit": item.stationName, "lastYearpassengerCount": '', "lastYearvehicleInput": '', "passengerCount": '', @@ -411,14 +411,16 @@ // .vehicleInput) === 0 ? 0 : lastYearData.vehicleInput === 0 && parseInt(obj.vehicleInput) > 0 ? 100 : (parseInt(obj // .vehicleInput) - lastYearData.vehicleInput) / lastYearData.vehicleInput * 100; - this.form.bizBusDataDetailVOList[landNameIndex].passengerCountMom = calcMom(checkNotEmpty(obj.passengerCount) ? obj.passengerCount * 10000 : obj.passengerCount,checkNotEmpty(yesterdayData.passengerCount) ? yesterdayData.passengerCount * 10000 : yesterdayData.passengerCount) + // passengerCount + // this.form.bizBusDataDetailVOList[landNameIndex].passengerCountMom = calcMom(checkNotEmpty(obj.passengerCount) ? obj.passengerCount * 10000 : obj.passengerCount,checkNotEmpty(yesterdayData.passengerCount) ? yesterdayData.passengerCount * 10000 : yesterdayData.passengerCount) + this.form.bizBusDataDetailVOList[landNameIndex].passengerCountMom = calcMom(obj.passengerCount,res.data.lastYearData.passengerCount) // !checkNotEmpty(obj // .passengerCount) ? '' : !checkNotEmpty(yesterdayData.passengerCount) ? '' : yesterdayData // .passengerCount === 0 && parseInt(obj.passengerCount) === 0 ? 0 : yesterdayData.passengerCount === 0 && // parseInt(obj.passengerCount) > 0 ? 100 : (parseInt(obj.passengerCount) - yesterdayData.passengerCount) / // yesterdayData.passengerCount * 100; - console.log('check ==>',yesterdayData.passengerCount,checkNotEmpty(yesterdayData.passengerCount)) - this.form.bizBusDataDetailVOList[landNameIndex].passengerCountYoy = calcYoy(checkNotEmpty(obj.passengerCount) ? obj.passengerCount * 10000 : obj.passengerCount, checkNotEmpty(res.data.lastYearData.passengerCount) ? res.data.lastYearData.passengerCount * 10000 : res.data.lastYearData.passengerCount) + // this.form.bizBusDataDetailVOList[landNameIndex].passengerCountYoy = calcYoy(checkNotEmpty(obj.passengerCount) ? obj.passengerCount * 10000 : obj.passengerCount, checkNotEmpty(res.data.lastYearData.passengerCount) ? res.data.lastYearData.passengerCount * 10000 : res.data.lastYearData.passengerCount) + this.form.bizBusDataDetailVOList[landNameIndex].passengerCountYoy = calcYoy(obj.passengerCount,res.data.lastYearData.passengerCount) // !checkNotEmpty(obj // .passengerCount) ? '' : !checkNotEmpty(lastYearData.passengerCount) ? '' : lastYearData // .passengerCount === 0 && parseInt(obj.passengerCount) === 0 ? 0 : lastYearData.passengerCount === 0 && @@ -470,7 +472,8 @@ if (this.pageType == 'add') { let now = new Date(); //11:00-13:30 默认选择0-12 - let dateStr = getDateStr(now, 0); + // let dateStr = getDateStr(now, 0); + let dateStr = getDateStr(now, 0).replaceAll('-','/'); if (new Date(dateStr + ' 11:00').getTime() < new Date().getTime() && new Date().getTime() < new Date(dateStr + ' 13:30').getTime()) { diff --git a/pages/bus/busDataInfo/list.vue b/pages/bus/busDataInfo/list.vue index fee2698..51a37cc 100644 --- a/pages/bus/busDataInfo/list.vue +++ b/pages/bus/busDataInfo/list.vue @@ -26,7 +26,7 @@ - + 查询条件 @@ -39,7 +39,7 @@ - +

重置

@@ -75,6 +75,9 @@ contentnomore: "没有更多数据了", }, status: '', + timeArray:[], + timeName:'', + reportPhase:'', } }, @@ -82,6 +85,14 @@ this.page = 0; this.hasMore = true; this.listData = []; + this.queryTime(); + this.loadMore() + }, + onPullDownRefresh() { + this.page = 0; + this.hasMore = true; + this.listData = []; + this.queryTime(); this.loadMore() }, methods: { @@ -94,7 +105,8 @@ pageSize:this.pageSize, reportDateStart:this.timeRange.length !== 0 ? this.timeRange[0] : '', reportDateEnd:this.timeRange.length !== 0 ? this.timeRange[1] : '', - _t:Date.parse(new Date()) + _t:Date.parse(new Date()), + statPeriod:this.reportPhase } this.$request(getApp().globalData.baseUrl + '/api/biz/busdata/list',params,"GET").then(res =>{ console.log(res) @@ -117,6 +129,13 @@ handleSearch(){ this.$refs.popup.open('bottom') }, + //时段 + queryTime() { + this.$request(getApp().globalData.baseUrl + '/api/dict/dictList?dictType=airport_time' + '&_t=' + Date.parse( + new Date()), {}, 'GET').then(res => { + this.timeArray = res.data; + }) + }, // 点击筛选弹窗中的筛选按钮 searchList(){ this.hasMore = true; @@ -128,12 +147,23 @@ // 点击筛选弹窗中的重置按钮 searchReset(){ this.timeRange = []; + this.timeName = ''; + this.reportPhase = '' this.listData = []; this.hasMore = true; this.page = 0; this.$refs.popup.close() this.loadMore(); }, + // 选中时段数据 + bindPickerChange(e){ + let index = e.target.value //取其下标 + var selected = this.timeArray[index] //获取选中的数组 + console.log(selected) + this.timeName = selected.dictLabel + this.reportPhase = selected.dictValue; + // this.timeName = this.timeArray[index].dictLabel) + }, // 跳转编辑页面 editItem(row){ uni.navigateTo({ @@ -299,10 +329,8 @@ left: 0; right: 0; bottom: 0; - display: flex; - justify-content: space-around; background-color: #F8F8F8; - padding: 20px 30rpx; + padding: 20px 30rpx 40px; .act_btn { width: 690rpx; diff --git a/pages/portShipping/pilotStation/form.vue b/pages/portShipping/pilotStation/form.vue index 8da7674..72be864 100644 --- a/pages/portShipping/pilotStation/form.vue +++ b/pages/portShipping/pilotStation/form.vue @@ -231,10 +231,11 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr } from '../../../common/uti this.timeName = item.dictLabel } }) - // this.getRatio() + this.getYoyMom() }else if(this.pageType == 'add'){ let now = new Date(); - let dateStr = getDateStr(now,0); + // let dateStr = getDateStr(now,0); + let dateStr = getDateStr(now, 0).replaceAll('-','/'); if(new Date(dateStr + ' 11:00').getTime() < new Date().getTime() && new Date().getTime() < new Date(dateStr + ' 13:30').getTime()) { this.form.statPeriod = "0012"; this.index = this.roadTime.findIndex(item => item.dictValue == "0012") diff --git a/pages/portShipping/pilotStation/list.vue b/pages/portShipping/pilotStation/list.vue index 7379dba..bab4a22 100644 --- a/pages/portShipping/pilotStation/list.vue +++ b/pages/portShipping/pilotStation/list.vue @@ -26,7 +26,7 @@
- + 查询条件 @@ -39,7 +39,7 @@ - +

重置

@@ -75,13 +75,23 @@ contentnomore: "没有更多数据了", }, status: '', - + timeArray:[], + timeName:'', + reportPhase:'', } }, onShow() { this.page = 0; this.hasMore = true; this.listData = []; + this.queryTime(); + this.loadMore() + }, + onPullDownRefresh() { + this.page = 0; + this.hasMore = true; + this.listData = []; + this.queryTime(); this.loadMore() }, methods: { @@ -94,7 +104,8 @@ pageSize:this.pageSize, reportDateStart:this.timeRange.length !== 0 ? this.timeRange[0] : '', reportDateEnd:this.timeRange.length !== 0 ? this.timeRange[1] : '', - _t:Date.parse(new Date()) + _t:Date.parse(new Date()), + statPeriod:this.reportPhase } this.$request(getApp().globalData.baseUrl + '/api/biz/bizPilotData/list',params,"GET").then(res =>{ console.log(res) @@ -125,15 +136,33 @@ this.$refs.popup.close() this.loadMore() }, + //时段 + queryTime() { + this.$request(getApp().globalData.baseUrl + '/api/dict/dictList?dictType=airport_time' + '&_t=' + Date.parse( + new Date()), {}, 'GET').then(res => { + this.timeArray = res.data; + }) + }, // 点击筛选弹窗中的重置按钮 searchReset(){ this.timeRange = []; + this.timeName = ''; + this.reportPhase = '' this.listData = []; this.hasMore = true; this.page = 0; this.$refs.popup.close() this.loadMore(); }, + // 选中时段数据 + bindPickerChange(e){ + let index = e.target.value //取其下标 + var selected = this.timeArray[index] //获取选中的数组 + console.log(selected) + this.timeName = selected.dictLabel + this.reportPhase = selected.dictValue; + // this.timeName = this.timeArray[index].dictLabel) + }, // 跳转编辑页面 editItem(row){ uni.navigateTo({ @@ -300,10 +329,8 @@ left: 0; right: 0; bottom: 0; - display: flex; - justify-content: space-around; background-color: #F8F8F8; - padding: 20px 30rpx; + padding: 20px 30rpx 40px; .act_btn { width: 690rpx; diff --git a/pages/roadTransport/dataSubmission/form.vue b/pages/roadTransport/dataSubmission/form.vue index fd5c1eb..2bd227d 100644 --- a/pages/roadTransport/dataSubmission/form.vue +++ b/pages/roadTransport/dataSubmission/form.vue @@ -159,7 +159,8 @@ this.timeName = this.roadTime.find(item => item.dictValue == this.synthData.reportPhase).dictLabel }else if(this.pageType == 'add'){ let now = new Date(); - let dateStr = getDateStr(now,0); + // let dateStr = getDateStr(now,0); + let dateStr = getDateStr(now, 0).replaceAll('-','/'); if(new Date(dateStr + ' 11:00').getTime() < new Date().getTime() && new Date().getTime() < new Date(dateStr + ' 13:30').getTime()){ this.synthData.reportPhase = "0012"; this.index = this.roadTime.findIndex(item => item.dictValue == "0012") diff --git a/pages/roadTransport/dataSubmission/list.vue b/pages/roadTransport/dataSubmission/list.vue index 40c6939..97601dd 100644 --- a/pages/roadTransport/dataSubmission/list.vue +++ b/pages/roadTransport/dataSubmission/list.vue @@ -37,7 +37,7 @@
- + 查询条件 @@ -50,7 +50,7 @@ - +

重置

@@ -87,12 +87,23 @@ contentnomore: "没有更多数据了", }, status: '', + reportPhase:'', + timeArray:[], + timeName:'', } }, onShow(){ this.page = 0; this.hasMore = true; - this.synthData = [] + this.synthData = []; + this.queryTime() + this.loadMore() + }, + onPullDownRefresh() { + this.page = 0; + this.hasMore = true; + this.synthData = []; + this.queryTime() this.loadMore() }, methods: { @@ -107,7 +118,8 @@ _t:Date.parse(new Date()), reportDatetimeStart:this.timeRange.length != 0 ? this.timeRange[0] : '', reportDatetimeEnd:this.timeRange.length != 0 ? this.timeRange[1] : '', - departmentId:this.unit ? this.unit : '' + departmentId:this.unit ? this.unit : '', + statPeriod:this.reportPhase } this.$request(getApp().globalData.baseUrl + '/api/biz/roadtransport/operation/list',params,"GET").then(res =>{ console.log(res) @@ -124,6 +136,13 @@ }) } }, + //时段 + queryTime() { + this.$request(getApp().globalData.baseUrl + '/api/dict/dictList?dictType=airport_time' + '&_t=' + Date.parse( + new Date()), {}, 'GET').then(res => { + this.timeArray = res.data; + }) + }, // 点击编辑按钮 editItem(row){ @@ -159,9 +178,20 @@ this.$refs.popup.close() this.loadMore() }, + // 选中时段数据 + bindPickerChange(e){ + let index = e.target.value //取其下标 + var selected = this.timeArray[index] //获取选中的数组 + console.log(selected) + this.timeName = selected.dictLabel + this.reportPhase = selected.dictValue; + // this.timeName = this.timeArray[index].dictLabel) + }, // 点击筛选弹窗中的重置按钮 searchReset(){ this.timeRange = []; + this.timeName = ''; + this.reportPhase = '' this.hasMore = true; this.synthData = []; this.page = 0; @@ -314,10 +344,8 @@ left: 0; right: 0; bottom: 0; - display: flex; - justify-content: space-around; background-color: #F8F8F8; - padding: 20px 30rpx; + padding: 20px 30rpx 40px; .act_btn { width: 690rpx; diff --git a/pages/roadTransport/transportData/form.vue b/pages/roadTransport/transportData/form.vue index bb44494..141187c 100644 --- a/pages/roadTransport/transportData/form.vue +++ b/pages/roadTransport/transportData/form.vue @@ -76,37 +76,39 @@

投放运力-班车数

- +

投放运力-定线通勤包车(辆)

- +
-

运送农民工报车(辆)

+

投放运力-运送农民工包车(辆)

- +
-

投放运力-除定线、农民工包车(辆)

+

投放运力-除定线通勤、农民工包车(辆)

- +

投放运力-包车数

- +

{{roadData.capacityCharter}}

+

投放运力-总客车数

- + +

{{roadData.capacityTotalBus}}

投放运力-加班数

- +

投放运力-班车班次

- +

投放运力-定线通勤班次

- +

投放运力-运送农民工班次

- +

投放运力-除定线通勤包车、农民工包车班次

- +

投放运力-包车班次

- +

{{roadData.capacityCharterTrips}}

+

投放运力-班次

- +

{{roadData.capacityTotalTrips}}

+

班车客运量(万)

- +

定线通勤包车客运量(万)

- + + +
+ +

运送农民工包车客运量(万)

+ +

除定线通勤包车、农民工包车以外的客运量(万)

- +

包车客运量(万)

- +

{{roadData.charterPassengerVolume}}

+

完成客运量(万)

- +

{{roadData.totalPassengerVolume}}

+
@@ -225,12 +237,6 @@
- -

运送农民工包车客运量(万)

- - - -

定制客运量(万人)

@@ -411,7 +417,7 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../.. return { roadTime:[], unitData:[], - personData:[], + // personData:[], isShowTitle:false, timeName:'', pageType:'', @@ -427,21 +433,21 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../.. regularCommuteCharter:'',//定线通勤包车辆 migrantWorkersCharter:'',//运送农民工报车辆 otherCharter:'',//除定线、农民工包车辆 - capacityCharter:'', //投放运力:包车数 + capacityCharter:0, //投放运力:包车数 capacityShuttle:'', //投放运力:班车数 - capacityTotalBus:"", //投放运力:总客车数 + capacityTotalBus:0, //投放运力:总客车数 regularCommuteTrips:"", //定线通勤班次 migrantWorkersTrips:"", //运送农民工班次 otherTrips:"", //除定线通勤包车、农民工包车班次 - capacityCharterTrips:"", //投放运力:包车班次 + capacityCharterTrips:0, //投放运力:包车班次 capacityShuttleTrips:"", //投放运力:班车班次 - capacityTotalTrips:"", //投放运力:班次 + capacityTotalTrips:0, //投放运力:班次 regularCommutePassengerVolume:"", //定线通勤包车客运量(万) migrantWorkersPassengerVolume:"", //运送农民工包车客运量(万) otherPassengerVolume:"", //除定线通勤包车、农民工包车以外的客运量(万) - charterPassengerVolume:"", //包车客运量(万) + charterPassengerVolume:0, //包车客运量(万) shuttlePassengerVolume:"", //班车客运量(万) - totalPassengerVolume:"", //完成客运量(万) + totalPassengerVolume:0, //完成客运量(万) totalSeatCapacity:"", //总客位数(座) passengerVolumeLastYear:"", //去年同期客运量(万) totalBusLastYear:"", //去年总客车量(辆) @@ -554,7 +560,7 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../.. }else if(options.type == 'add'){ this.pageType = 'add'; this.getDept() - this.getRoadTime() + let now = new Date(); this.roadData.statisticalDate = getDateStr(now, -1);//默认前一天 } @@ -566,6 +572,35 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../.. phoneNumber: tel }); }, + // 计算包车数 + calcBusNum(){ + let capacityShuttle = checkNotEmpty(this.roadData.capacityShuttle) ? parseInt(this.roadData.capacityShuttle) : 0; + let regularCommuteCharter = checkNotEmpty(this.roadData.regularCommuteCharter) ? parseInt(this.roadData.regularCommuteCharter) : 0; + let migrantWorkersCharter = checkNotEmpty(this.roadData.migrantWorkersCharter) ? parseInt(this.roadData.migrantWorkersCharter) : 0; + let otherCharter = checkNotEmpty(this.roadData.otherCharter) ? parseInt(this.roadData.otherCharter) : 0; + this.roadData.capacityCharter = regularCommuteCharter + migrantWorkersCharter + otherCharter + this.roadData.capacityTotalBus = this.roadData.capacityCharter + capacityShuttle; + this.getRatio() + }, + // 计算班次 + calcTotalTrips(){ + let capacityShuttleTrips = checkNotEmpty(this.roadData.capacityShuttleTrips) ? parseInt(this.roadData.capacityShuttleTrips) : 0; + let regularCommuteTrips = checkNotEmpty(this.roadData.regularCommuteTrips) ? parseInt(this.roadData.regularCommuteTrips) : 0; + let migrantWorkersTrips = checkNotEmpty(this.roadData.migrantWorkersTrips) ? parseInt(this.roadData.migrantWorkersTrips) : 0; + let otherTrips = checkNotEmpty(this.roadData.otherTrips) ? parseInt(this.roadData.otherTrips) : 0; + this.roadData.capacityCharterTrips = regularCommuteTrips + migrantWorkersTrips + otherTrips; + this.roadData.capacityTotalTrips = this.roadData.capacityCharterTrips + capacityShuttleTrips + }, + // 计算客运量 + calctotalPassenger(){ + let shuttlePassengerVolume = checkNotEmpty(this.roadData.shuttlePassengerVolume) ? parseInt(this.roadData.shuttlePassengerVolume) : 0; + let regularCommutePassengerVolume = checkNotEmpty(this.roadData.regularCommutePassengerVolume) ? parseInt(this.roadData.regularCommutePassengerVolume) : 0; + let otherPassengerVolume = checkNotEmpty(this.roadData.otherPassengerVolume) ? parseInt(this.roadData.otherPassengerVolume) : 0; + let migrantWorkersPassengerVolume = checkNotEmpty(this.roadData.migrantWorkersPassengerVolume) ? parseInt(this.roadData.migrantWorkersPassengerVolume) : 0; + this.roadData.charterPassengerVolume = regularCommutePassengerVolume + migrantWorkersPassengerVolume + otherPassengerVolume; + this.roadData.totalPassengerVolume = this.roadData.charterPassengerVolume + shuttlePassengerVolume + this.getRatio() + }, showPop(){ this.selectId = this.selectId1; this.$refs.unitPopup.open('bottom') @@ -632,6 +667,7 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../.. this.roadData.reportingUnitId = this.deptNameList.length > 0 ? this.deptNameList[0].deptName : ''; this.roadData.reportingUnitIdIndex = this.deptNameList.length > 0 ? 0 : ''; this.selectId1 = this.unitId; + this.getRoadTime() this.getPeople() }else if(this.pageType == 'edit'){ console.log('reportingUnitId===>',this.roadData.reportingUnitId) @@ -654,7 +690,8 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../.. getRatio(){ let params = { statisticalDate:this.roadData.statisticalDate, - reportPhase:this.roadData.reportPhase + reportPhase:this.roadData.reportPhase, + reportUnit:this.roadData.reportingUnitId } this.$request(getApp().globalData.baseUrl + '/api/biz/roadtransport/road/findByStatisticalDate',params,"GET").then(res =>{ this.lastData = res.data; @@ -778,7 +815,8 @@ import { calcMom, calcYoy, checkNotEmpty, getDateStr, lastYearDate } from '../.. this.getRatio() }else if(this.pageType == 'add'){ let now = new Date(); - let dateStr = getDateStr(now,0); + // let dateStr = getDateStr(now,0); + let dateStr = getDateStr(now, 0).replaceAll('-','/'); if(new Date(dateStr + ' 11:00').getTime() < new Date().getTime() && new Date().getTime() < new Date(dateStr + ' 13:30').getTime()) { this.roadData.reportPhase = "0012"; this.index = this.roadTime.findIndex(item => item.dictValue == "0012") diff --git a/pages/roadTransport/transportData/list.vue b/pages/roadTransport/transportData/list.vue index 054cd68..f55d4f5 100644 --- a/pages/roadTransport/transportData/list.vue +++ b/pages/roadTransport/transportData/list.vue @@ -8,6 +8,7 @@ 报送时间 {{item.statisticalDate || ''}}{{item.reportPhaseValue || ''}} + {{item.reportingUnitId || ''}} +

重置

@@ -125,6 +126,7 @@ size:10, timeArray:[], timeName:'', + reportPhase:'', } }, onShow(){ @@ -184,7 +186,7 @@ var selected = this.timeArray[index] //获取选中的数组 console.log(selected) this.timeName = selected.dictLabel - // this.roadData.reportPhase = selected.dictValue; + this.reportPhase = selected.dictValue; // this.timeName = this.timeArray[index].dictLabel) }, // 点击筛选弹窗中的筛选按钮 @@ -198,6 +200,8 @@ // 点击筛选弹窗中的重置按钮 searchReset(){ this.unit = ''; + this.timeName = ''; + this.reportPhase = '' this.timeRange = []; this.listData = []; this.hasMore = true; @@ -215,7 +219,8 @@ pageSize:this.size, statisticalDateStart:this.timeRange.length !== 0 ? this.timeRange[0] : '', statisticalDateEnd:this.timeRange.length !== 0 ? this.timeRange[1] : '', - _t:Date.parse(new Date()) + _t:Date.parse(new Date()), + statPeriod:this.reportPhase } this.$request(getApp().globalData.baseUrl + '/api/biz/roadtransport/road/list',params,"GET").then(res =>{ console.log(res) @@ -339,6 +344,13 @@ text-align: center; margin-bottom: 30rpx; } + .unit_station { + color: #666; + font-size: 24rpx; + font-family: PingFang SC-Regular, PingFang SC; + font-weight: 400; + text-align: right; + } .item{ width: 570rpx; @@ -440,10 +452,8 @@ left: 0; right: 0; bottom: 0; - display: flex; - justify-content: space-around; background-color: #F8F8F8; - padding: 20px 30rpx; + padding: 20px 30rpx 40px; .act_btn { width: 690rpx;