Browse Source

数据=顺序

data-page
是小王呀\24601 6 months ago
parent
commit
8abf846188
  1. 3
      README.md
  2. 9
      pages/statistics/modules/HotlineRates/HotlineRates.js

3
README.md

@ -9,7 +9,8 @@
15554200534 15554200534
12345678 12345678
18900000002
12345678 12345678
17637262085 17637262085
Makui240345 Makui240345

9
pages/statistics/modules/HotlineRates/HotlineRates.js

@ -89,6 +89,7 @@ Component({
day: '', day: '',
day2: '', day2: '',
showitem: 3, showitem: 3,
orderColumn:"replyCount"
}, },
ready() { ready() {
const { currentDay, lastMonthDay } = formatCurrentAndLastMonthDay(); const { currentDay, lastMonthDay } = formatCurrentAndLastMonthDay();
@ -102,6 +103,9 @@ Component({
}, },
methods: { methods: {
toSort(value){ toSort(value){
this.setData({
orderColumn:""
})
wx.showToast({ wx.showToast({
title: '正在计算排序', title: '正在计算排序',
icon: 'loading', icon: 'loading',
@ -164,6 +168,9 @@ Component({
}) })
}, },
onSearch(){ onSearch(){
this.setData({
orderColumn:""
})
if(this.data.day>this.data.day2){ if(this.data.day>this.data.day2){
wx.showToast({ wx.showToast({
title: '起止日期错误', title: '起止日期错误',
@ -186,6 +193,7 @@ Component({
} }
}, },
getList() { getList() {
if (this.data.curVal == '1') { if (this.data.curVal == '1') {
this.getEventList(false) this.getEventList(false)
} else { } else {
@ -199,6 +207,7 @@ Component({
startDate: this.data.day.toString() + ' ' + '00:00:00', startDate: this.data.day.toString() + ' ' + '00:00:00',
endDate: this.data.day2.toString() + ' ' + '23:59:59', endDate: this.data.day2.toString() + ' ' + '23:59:59',
usableFlag: true, usableFlag: true,
orderColumn:this.data.orderColumn
} }
if(this.data.curVal == '1'){ if(this.data.curVal == '1'){

Loading…
Cancel
Save