diff --git a/App.vue b/App.vue
index cf13387..e6fdbd1 100644
--- a/App.vue
+++ b/App.vue
@@ -54,7 +54,8 @@
console.log('App Hide')
},
globalData: {
- baseUrl: 'http://27.223.104.50:8001',//接口前缀
+ // baseUrl: 'http://27.223.104.50:8001',//接口前缀
+ baseUrl: 'http://jtxx.qdjtcx.cn:8001',//接口前缀
mobile: '66007587'
},
methods: {
diff --git a/common/util.js b/common/util.js
index fc10555..3e79f7b 100644
--- a/common/util.js
+++ b/common/util.js
@@ -107,7 +107,7 @@ function calcMom(cur, data) {
}
// 计算同比
function calcYoy(cur, data) {
- console.log(cur,"同比==========",data);
+ // console.log(cur,"同比==========",data);
return !checkNotEmpty(cur) || !checkNotEmpty(data) ? '' : data === 0 && parseInt(cur) === 0 ? 0 : data === 0 && parseInt(cur) > 0 ? 100 : (parseInt(cur) - data) / data * 100;
}
diff --git a/pages/highWay/runData/form.vue b/pages/highWay/runData/form.vue
index c58a9f4..bc594b6 100644
--- a/pages/highWay/runData/form.vue
+++ b/pages/highWay/runData/form.vue
@@ -21,21 +21,23 @@
统计日期:
-
+
{{form.statDate?form.statDate:'请选择时段'}}
+ {{form.statDate?form.statDate:''}}
统计时段:
-
+
{{index>-1?array[index].dictLabel:'请选择时段'}}
+ {{index>-1?array[index].dictLabel:''}}
@@ -46,13 +48,13 @@
+ :class="checkNotEmpty(form.entranceVehicleCount) && form.entranceVehicleCount === yoyMomSumary.minusDaySummaryData.entranceVehicleCount ? 'danger' : ''">
+ :style="checkNotEmpty(form.entranceVehicleCount) && form.entranceVehicleCount === yoyMomSumary.minusDaySummaryData.entranceVehicleCount ?'color: #EB4747':''">
驶入车辆数统计环比
+ :style="checkNotEmpty(form.entranceVehicleCount) && form.entranceVehicleCount === yoyMomSumary.minusDaySummaryData.entranceVehicleCount ?'color: #EB4747':''">
{{formatDigit(form.entranceVehicleCountMom)}}%
@@ -72,13 +74,13 @@
+ :class="checkNotEmpty(form.exitVehicleCount) && form.exitVehicleCount === yoyMomSumary.minusDaySummaryData.exitVehicleCount ? 'danger' : ''">
+ :style="checkNotEmpty(form.exitVehicleCount) && form.exitVehicleCount === yoyMomSumary.minusDaySummaryData.exitVehicleCount ?'color: #EB4747':''">
驶出车辆数统计环比
+ :style="checkNotEmpty(form.exitVehicleCount) && form.exitVehicleCount === yoyMomSumary.minusDaySummaryData.exitVehicleCount ?'color: #EB4747':''">
{{formatDigit(form.exitVehicleCountMom)}}%
@@ -262,6 +264,10 @@
index: 2, //时段选择,默认0-24
userInfo: {},
yoyMom: {}, //同比环比
+ yoyMomSumary: {
+ minusDaySummaryData: {},
+ minusYearSummaryData: {}
+ },//汇总统计同环比
showStaion: false, //展开收起
pageType: '',
deptNameList: [], //当前登录人所在单位
@@ -279,10 +285,14 @@
this.pageType = 'add';
let now = new Date();
this.form.statDate = getDateStr(now, -1); //默认前一天
- this.queryStation('add');
+ // this.queryStation('add');
this.queryTime(); //统计时段
+ }else if(options.item) {
+ this.btnText = '修改并保存';
+ let obj = JSON.parse(options.item);
+ this.queryDetailInfo2(obj.statDate, obj.statPeriod);
}
- if (options.id) {
+ else if (options.id) {
this.btnText = '修改并保存';
this.queryDetailInfo(options.id);
}
@@ -319,20 +329,39 @@
this.queryStation();
})
},
+ //日期和时段查询详情
+ queryDetailInfo2(statDate, statPeriod) {
+ this.$request(getApp().globalData.baseUrl + '/api/biz/highwayParentDataController/getSubData?statDate=' + statDate + '&statPeriod=' + statPeriod, {},
+ 'GET').then(res => {
+ res.data.statDate = statDate;
+ res.data.statPeriod = statPeriod;
+ this.form = res.data;
+ this.queryTime();
+ this.queryStation();
+ })
+ },
//同比环比查询
queryYoYMom() {
if (this.form.statDate && this.form.statPeriod) {
+ //汇总统计
this.$request(getApp().globalData.baseUrl +
- '/api/biz/highwayParentDataController/getYoYAndMoM?statDate=' + this.form.statDate +
+ '/api/biz/highwayParentDataController/getSummaryDataYoYAndMoM?statDate=' + this.form.statDate +
'&statPeriod=' + this.form.statPeriod + '&_t=' + Date.parse(new Date()), {}, "GET").then(
res => {
- this.yoyMom = res.data;
- //如果重新更改填报日期,重新计算同比环比
- if (this.highwaySubDataList.length > 0 && this.form.highwaySubDataList.length > 0) {
- this.highwaySubDataList.map((item, index) => {
- this.checkStationInfo(index);
+ this.yoyMomSumary = res.data;
+ //各收费站同环比查询
+ this.$request(getApp().globalData.baseUrl +
+ '/api/biz/highwayParentDataController/getYoYAndMoM?statDate=' + this.form.statDate +
+ '&statPeriod=' + this.form.statPeriod + '&_t=' + Date.parse(new Date()), {}, "GET").then(
+ res2 => {
+ this.yoyMom = res2.data;
+ //如果重新更改填报日期,重新计算同比环比
+ if (this.highwaySubDataList.length > 0 && this.form.highwaySubDataList.length > 0) {
+ this.highwaySubDataList.map((item, index) => {
+ this.checkStationInfo(index);
+ })
+ }
})
- }
})
}
},
@@ -377,8 +406,8 @@
},
//计算收费站信息是否填写完整
checkStationInfo(index) {
- this.highwaySubDataList[index].isFinish = this.form.highwaySubDataList[index].entranceVehicleCount != '' &&
- this.form.highwaySubDataList[index].exitVehicleCount != '';
+ this.highwaySubDataList[index].isFinish = checkNotEmpty(this.form.highwaySubDataList[index].entranceVehicleCount) &&
+ checkNotEmpty(this.form.highwaySubDataList[index].exitVehicleCount);
//统计计算
let entranceVehicleCount = 0,
exitVehicleCount = 0;
@@ -391,19 +420,17 @@
})
this.form.entranceVehicleCount = entranceVehicleCount;
this.form.exitVehicleCount = exitVehicleCount;
- //环比计算规则 if今天没有值不计算,elseif昨天没有值不计算,elseif昨天===0并且今天===0百分比0,esleif昨天0今天大于0百分比100,else(今天-昨天)/昨天*100
//收费站驶入车辆数统计
- this.form.entranceVehicleCountMom = this.$calcMom(this.form.entranceVehicleCount,this.yoyMom.minusDaysEntranceVehicleSum);
- this.form.entranceVehicleCountYoy = this.$calcYoy(this.form.entranceVehicleCount, this.yoyMom.minusYearsEntranceVehicleSum);
+ this.form.entranceVehicleCountMom = this.$calcMom(this.form.entranceVehicleCount,this.yoyMomSumary.minusDaySummaryData.entranceVehicleCount);
+ this.form.entranceVehicleCountYoy = this.$calcYoy(this.form.entranceVehicleCount, this.yoyMomSumary.minusYearSummaryData.entranceVehicleCount);
//收费站驶出车辆数统计
- this.form.exitVehicleCountMom = this.$calcMom(this.form.exitVehicleCount, this.yoyMom.minusDaysExitVehicleSum);
+ this.form.exitVehicleCountMom = this.$calcMom(this.form.exitVehicleCount, this.yoyMomSumary.minusDaySummaryData.exitVehicleCount);
- this.form.exitVehicleCountYoy = this.$calcYoy(this.form.exitVehicleCount, this.yoyMom.minusYearsExitVehicleSum);
+ this.form.exitVehicleCountYoy = this.$calcYoy(this.form.exitVehicleCount, this.yoyMomSumary.minusYearSummaryData.exitVehicleCount);
//收费站子表计算同比环比
- // if(this.form.highwaySubDataList[index].entranceVehicleCount != '' || this.form.highwaySubDataList[index].exitVehicleCount != ''){
let idx = this.yoyMom.minusDaysList.findIndex(item => {
return item.tollStationName == this.form.highwaySubDataList[index].tollStationName;
});
@@ -478,8 +505,7 @@
.stationName;
});
if (idx > -1) {
- item.isFinish = arr[idx].entranceVehicleCount != '' && arr[idx]
- .exitVehicleCount != '' ? true : false;
+ item.isFinish = checkNotEmpty(arr[idx].entranceVehicleCount) && checkNotEmpty(arr[idx].exitVehicleCount) ? true : false;
this.form.highwaySubDataList.push(arr[idx]);
} else {
item.isFinish = false;
@@ -515,18 +541,42 @@
//选择统计日期
bindDateChange(e) {
this.form.statDate = e.detail.value;
- this.queryYoYMom();
+ if(this.pageType == 'add') {
+ this.$request(getApp().globalData.baseUrl + '/api/biz/highwayParentDataController/getSubData?statDate=' + this.form.statDate + '&statPeriod=' + this.form.statPeriod, {},
+ 'GET').then(res => {
+ res.data.statDate = this.form.statDate;
+ res.data.statPeriod = this.form.statPeriod;
+ this.form = res.data;
+ this.queryStation();
+ this.queryYoYMom();
+ })
+ }
+ else {
+ this.queryYoYMom();
+ }
},
//统计时段切换
changeStatPeriod(e) {
this.index = e.detail.value;
this.form.statPeriod = this.array[e.detail.value].dictValue;
- console.log('change 时段')
- this.queryYoYMom();
+ console.log('change 时段')
+ if(this.pageType == 'add') {
+ this.$request(getApp().globalData.baseUrl + '/api/biz/highwayParentDataController/getSubData?statDate=' + this.form.statDate + '&statPeriod=' + this.form.statPeriod, {},
+ 'GET').then(res => {
+ res.data.statDate = this.form.statDate;
+ res.data.statPeriod = this.form.statPeriod;
+ this.form = res.data;
+ this.queryStation();
+ this.queryYoYMom();
+ })
+ }
+ else {
+ this.queryYoYMom();
+ }
},
//时段
queryTime() {
- this.$request(getApp().globalData.baseUrl + '/api/dict/dictList?dictType=airport_time' + '&_t=' + Date
+ this.$request(getApp().globalData.baseUrl + '/api/dict/dictList?dictType=highway_time' + '&_t=' + Date
.parse(
new Date()), {}, 'GET').then(res => {
this.array = res.data;
@@ -539,11 +589,28 @@
this.form.statPeriod = '0012';
let idx = this.array.findIndex(item => item.dictValue == '0012');
this.index = idx > -1 ? idx : '';
+ if(idx > -1) {
+ this.index = idx;
+ }else {
+ //字典值没有0-12 默认0-24
+ this.form.statPeriod = '03'; //默认0-24
+ let _idx = this.array.findIndex(item => item.dictValue == '03');
+ this.index = _idx > -1 ? _idx : '';
+ }
} else {
this.form.statPeriod = '03'; //默认0-24
let idx = this.array.findIndex(item => item.dictValue == '03');
this.index = idx > -1 ? idx : '';
}
+ //报送阶段 - 初始化汇总数据
+ this.$request(getApp().globalData.baseUrl + '/api/biz/highwayParentDataController/getSubData?statDate=' + this.form.statDate + '&statPeriod=' + this.form.statPeriod, {},
+ 'GET').then(res => {
+ res.data.statDate = this.form.statDate;
+ res.data.statPeriod = this.form.statPeriod;
+ this.form = res.data;
+ console.log('add == queryTime', this.form)
+ this.queryStation();
+ })
} else {
let idx = this.array.findIndex(item => item.dictValue == this.form.statPeriod);
this.index = idx > -1 ? idx : '';
@@ -575,7 +642,7 @@
}
uni.showModal({
title: '提示',
- content: this.form.id == undefined ? '您确认提交该条报送数据?' : '您确认将该条数据进行修改?',
+ content: this.pageType == 'add' ? '您确认提交该条报送数据?' : '您确认将该条数据进行修改?',
success: (res) => {
if (res.confirm) {
this.submitForm();
@@ -588,7 +655,7 @@
title: '提交中...',
mask: true
})
- this.$request(getApp().globalData.baseUrl + '/api/biz/highwayParentDataController/saveOrUpdate', this
+ this.$request(getApp().globalData.baseUrl + '/api/biz/highwayParentDataController/saveOrUpdateV2', this
.form,
'POST').then(res => {
uni.hideLoading();
diff --git a/pages/highWay/runData/list.vue b/pages/highWay/runData/list.vue
index d6dc7c4..ce96f42 100644
--- a/pages/highWay/runData/list.vue
+++ b/pages/highWay/runData/list.vue
@@ -1,10 +1,10 @@
-
+
报送时间
- {{item.statDate || ''}}{{item.statPeriodValue || ''}}
+ {{item.statDate || ''}}{{renderTime(item.statPeriod)}}
@@ -141,9 +141,14 @@
closeSearch() {
this.$refs.popup.close();
},
+ //时段文本转换
+ renderTime(reportPhase) {
+ let idx = this.array.findIndex(item => item.dictValue == reportPhase);
+ return idx > -1 ? this.array[idx].dictLabel : '';
+ },
//时段
queryTime() {
- this.$request(getApp().globalData.baseUrl + '/api/dict/dictList?dictType=airport_time' + '&_t=' + Date.parse(
+ this.$request(getApp().globalData.baseUrl + '/api/dict/dictList?dictType=highway_time' + '&_t=' + Date.parse(
new Date()), {}, 'GET').then(res => {
this.array = res.data;
})
@@ -156,14 +161,14 @@
Object.keys(this.query).map(key => {
params = params + '&' + key + '=' + this.query[key]
})
- this.$request(getApp().globalData.baseUrl + '/api/biz/highwayParentDataController/list?page=' + this.current +
+ this.$request(getApp().globalData.baseUrl + '/api/biz/highwayParentDataController/getTimeList?page=' + this.current +
'&pageSize=' + this.size + '&_t=' + Date.parse(new Date()) + params, {}, 'GET').then(res => {
if (res.code == 200) {
- res.data.list.map(item => {
- item.highwaySubDataList.map(item2 => {
- item2.show = false;
- })
- })
+ // res.data.list.map(item => {
+ // item.highwaySubDataList.map(item2 => {
+ // item2.show = false;
+ // })
+ // })
console.log(res.data.list)
this.data = this.data.concat(res.data.list);
if (res.data.list.length == 0 || res.data.totalCount < this.size) {
diff --git a/pages/roadTransport/transportData/list.vue b/pages/roadTransport/transportData/list.vue
index a70c21c..eb86bdb 100644
--- a/pages/roadTransport/transportData/list.vue
+++ b/pages/roadTransport/transportData/list.vue
@@ -4,12 +4,12 @@
-
+
报送时间
{{item.statisticalDate || ''}}{{renderTime(item.reportPhase)}}
-
-
+
+
diff --git a/pages/water/waterWay/form.vue b/pages/water/waterWay/form.vue
index 1d84a9f..d6c1678 100644
--- a/pages/water/waterWay/form.vue
+++ b/pages/water/waterWay/form.vue
@@ -12,75 +12,77 @@
{{form.affiliatedUnit}}
-->
-
+
统计日期:
-
+
{{form.reportDate?form.reportDate:'请选择时段'}}
+ {{form.reportDate?form.reportDate:''}}
统计时段:
-
+
{{index>-1?array[index].dictLabel:'请选择时段'}}
+ {{index>-1?array[index].dictLabel:''}}
航次统计:
- {{form.entranceVehicleCount === 0 ? form.entranceVehicleCount : form.entranceVehicleCount || ''}}
+ {{form.voyage === 0 ? form.voyage : form.voyage || ''}}
+ :class="checkNotEmpty(form.voyage) && form.voyage === yoySum.minusDaySummaryData.voyage ? 'danger' : ''">
+ :style="checkNotEmpty(form.voyage) && form.voyage === yoySum.minusDaySummaryData.voyage ?'color: #EB4747':''">
航次统计环比
- {{formatDigit(form.entranceVehicleCountMom)}}%
+ :style="checkNotEmpty(form.voyage) && form.voyage === yoySum.minusDaySummaryData.voyage ?'color: #EB4747':''">
+ {{formatDigit(form.voyageMom)}}%
航次统计同比
- {{formatDigit(form.entranceVehicleCountYoy)}}%
+ {{formatDigit(form.voyageYoy)}}%
人数统计:
- {{form.exitVehicleCount === 0 ? form.exitVehicleCount : form.exitVehicleCount || ''}}
+ {{form.numberOfPeople === 0 ? form.numberOfPeople : form.numberOfPeople || ''}}
+ :class="checkNotEmpty(form.numberOfPeople) && form.numberOfPeople === yoySum.minusDaySummaryData.numberOfPeople ? 'danger' : ''">
+ :style="checkNotEmpty(form.numberOfPeople) && form.numberOfPeople === yoySum.minusDaySummaryData.numberOfPeople ?'color: #EB4747':''">
人数统计环比
- {{formatDigit(form.exitVehicleCountMom)}}%
+ :style="checkNotEmpty(form.numberOfPeople) && form.numberOfPeople === yoySum.minusDaySummaryData.numberOfPeople ?'color: #EB4747':''">
+ {{formatDigit(form.numberOfPeopletMom)}}%
@@ -229,6 +231,8 @@
"yesterdayVoyage": '',
"remarks": ''
}],
+ "numberOfPeople": "",
+ "voyage": '',
"reportDate": "",
"statPeriod": ""
}, //登录form
@@ -240,7 +244,11 @@
showLand: false,
pageType: '',
btnText: '保存',
- mobile: getApp().globalData.mobile
+ mobile: getApp().globalData.mobile,
+ yoySum: {
+ minusDaySummaryData: {},
+ minusYearSummaryData: {}
+ },//汇总同环比
}
},
onLoad(options) {
@@ -250,13 +258,14 @@
let now = new Date();
this.form.reportDate = getDateStr(now, -1); //默认前一天
this.queryTime(); //统计时段
- this.queryLandList(); //陆岛权限列表
+ // this.queryLandList(); //陆岛权限列表
} else if (options.item) {
this.btnText = '修改并保存';
- this.form = JSON.parse(options.item);
- this.form.bizWaterwayIslandDataSaveOrUpdateDTOList = this.form.bizWaterwayIslandDataVOList;
- this.queryLandList(); //陆岛权限列表
- this.queryTime();
+ // this.form = JSON.parse(options.item);
+ // this.form.bizWaterwayIslandDataSaveOrUpdateDTOList = this.form.bizWaterwayIslandDataVOList;
+ // this.queryLandList(); //陆岛权限列表
+ // this.queryTime();
+ this.queryDetailInfo2(options.statDate, options.statPeriod);
} else if (options.id) {
this.btnText = '修改并保存';
this.queryDetailInfo(options.id);
@@ -281,10 +290,10 @@
this.landNameIndex = index;
},
//陆岛列表
- queryLandList() {
+ queryLandList(type) {
this.$request(getApp().globalData.baseUrl + '/api/biz/waterwayIslandData/getByCurrentUserId', {}, 'GET').then(res => {
this.landList = res.data;
- if (this.pageType == 'add') {
+ if (type == 'add') {
this.form.bizWaterwayIslandDataSaveOrUpdateDTOList = [];
this.landList.map(item => {
item.isFinish = false;
@@ -359,6 +368,17 @@
this.landList[index].isFinish = checkNotEmpty(this.form
.bizWaterwayIslandDataSaveOrUpdateDTOList[index].voyage) && checkNotEmpty(this.form
.bizWaterwayIslandDataSaveOrUpdateDTOList[index].numberOfPeople) ? true : false;
+ //重新计算汇总统计
+ let _voyage = 0;
+ let _numberOfPeople = 0;
+ this.form.bizWaterwayIslandDataSaveOrUpdateDTOList.map(item => {
+ _voyage = _voyage + (checkNotEmpty(item.voyage) ? parseInt(item.voyage) : 0);
+ _numberOfPeople = _numberOfPeople + (checkNotEmpty(item.numberOfPeople) ? parseInt(item.numberOfPeople) : 0);
+ })
+ this.form.voyage = _voyage;
+ this.form.numberOfPeople = _numberOfPeople;
+ //重新计算汇总同环比
+ this.calcSum();
this.$request(getApp().globalData.baseUrl + '/api/biz/waterwayIslandData/getYoyMom?statDate=' + this.form
.reportDate + '&statPeriod=' + this.form.statPeriod + '&landName=' + this.form
.bizWaterwayIslandDataSaveOrUpdateDTOList[index].landName + '&_t=' + Date.parse(new Date()), {},
@@ -391,15 +411,50 @@
this.queryLandList();
})
},
+ //根据日期和时段查询详情
+ queryDetailInfo2(statData, statPeriod) {
+ this.$request(getApp().globalData.baseUrl + '/api/biz/waterwayIslandData/getSubData?statDate=' + statData + '&statPeriod=' + statPeriod, {},
+ 'GET').then(res => {
+ res.data.reportDate = statData;
+ res.data.statPeriod = statPeriod;
+ this.form = res.data;
+ this.form.bizWaterwayIslandDataSaveOrUpdateDTOList = this.form.bizWaterwayIslandDataVOList;
+ //查询汇总同环比
+ this.$request(getApp().globalData.baseUrl + '/api/biz/waterwayIslandData/getSummaryDataYoYAndMoM?statDate=' + statData + '&statPeriod=' + statPeriod + '&_t=' + Date.parse(new Date()), {},
+ 'GET')
+ .then(res2 => {
+ res2.data.minusDaySummaryData = res2.data.minusDaySummaryData ? res2.data.minusDaySummaryData : {};
+ res2.data.minusYearSummaryData = res2.data.minusYearSummaryData ? res2.data.minusYearSummaryData : {};
+ this.yoySum = res2.data;
+ this.calcSum();
+ })
+ if(this.pageType != 'add') {
+ this.queryTime(); //统计时段
+ }
+ this.queryLandList();
+ })
+ },
+ //汇总同环比计算
+ calcSum() {
+ this.form.voyageMom = this.$calcMom(this.form.voyage,this.yoySum.minusDaySummaryData.voyage);
+ this.form.voyageYoy = this.$calcYoy(this.form.voyage,this.yoySum.minusYearSummaryData.voyage);
+ this.form.numberOfPeopleMom = this.$calcMom(this.form.numberOfPeople,this.yoySum.minusDaySummaryData.numberOfPeople);
+ this.form.numberOfPeopleYoy = this.$calcYoy(this.form.numberOfPeople,this.yoySum.minusYearSummaryData.numberOfPeople);
+ },
//统计时段切换选择
changeStatPeriod(e) {
this.index = e.detail.value;
this.form.statPeriod = this.array[e.detail.value].dictValue;
console.log('change 时段', this.form)
- //重新计算同比环比
- this.form.bizWaterwayIslandDataSaveOrUpdateDTOList.map((item, index) => {
- this.calcYoyMom(index);
- })
+ if(this.pageType == 'add') {
+ this.queryDetailInfo2(this.form.reportDate, this.form.statPeriod);
+ }
+ else {
+ //重新计算同比环比
+ this.form.bizWaterwayIslandDataSaveOrUpdateDTOList.map((item, index) => {
+ this.calcYoyMom(index);
+ })
+ }
},
//取消
doCancel() {
@@ -408,10 +463,15 @@
//选择统计日期
bindDateChange(e) {
this.form.reportDate = e.detail.value;
- //重新计算同比环比
- this.form.bizWaterwayIslandDataSaveOrUpdateDTOList.map((item, index) => {
- this.calcYoyMom(index);
- })
+ if(this.pageType == 'add') {
+ this.queryDetailInfo2(this.form.reportDate, this.form.statPeriod);
+ }
+ else {
+ //重新计算同比环比
+ this.form.bizWaterwayIslandDataSaveOrUpdateDTOList.map((item, index) => {
+ this.calcYoyMom(index);
+ })
+ }
},
//时段
queryTime() {
@@ -434,6 +494,7 @@
let idx = this.array.findIndex(item => item.dictValue == '03');
this.index = idx > -1 ? idx : '';
}
+ this.queryDetailInfo2(this.form.reportDate, this.form.statPeriod);
} else {
let idx = this.array.findIndex(item => item.dictValue == this.form.statPeriod);
this.index = idx > -1 ? idx : '';
diff --git a/pages/water/waterWay/list.vue b/pages/water/waterWay/list.vue
index 7940b7b..1fcf75a 100644
--- a/pages/water/waterWay/list.vue
+++ b/pages/water/waterWay/list.vue
@@ -1,10 +1,10 @@
-
+
报送时间
{{item.reportDate || ''}}{{item.statPeriodValue || ''}}
+ style="margin-left:16rpx;">{{renderTime(item.statPeriod)}}
item.dictValue == reportPhase);
+ return idx > -1 ? this.array[idx].dictLabel : '';
+ },
//时段
queryTime() {
this.$request(getApp().globalData.baseUrl + '/api/dict/dictList?dictType=airport_time' + '&_t=' + Date.parse(
@@ -152,7 +157,7 @@
Object.keys(this.query).map(key => {
params = params + '&' + key + '=' + this.query[key]
})
- this.$request(getApp().globalData.baseUrl + '/api/biz/waterwayIslandData/list?page=' + this.current +
+ this.$request(getApp().globalData.baseUrl + '/api/biz/waterwayIslandData/getTimeList?page=' + this.current +
'&pageSize=' + this.size + '&_t=' + Date.parse(new Date()) + params, {}, 'GET').then(res => {
if (res.code == 200) {
this.data = this.data.concat(res.data.list);