Browse Source

排行榜

pull/2/head
pengda 4 weeks ago
parent
commit
0a80a72024
  1. 36
      src/views/super/Ranking/RankBatchList.vue
  2. 16
      src/views/super/Ranking/RankDetail.vue
  3. 32
      src/views/super/Ranking/RankList.vue

36
src/views/super/Ranking/RankBatchList.vue

@ -225,8 +225,8 @@ export default {
currentPage: 1, //
pageSize: 20, //
total: 0, //
sortBy: 4,
sortOrder: 2,
sort_by: 4,
sort_order: 2,
text: '',//
selectedDate: new Date(),//
dataType: '',
@ -340,15 +340,15 @@ export default {
})
},
handleSortChange({prop, order}) {
this.sortBy = 4;
this.sortOrder = 2;
this.sort_by = 4;
this.sort_order = 2;
if (order == 'ascending') {
this.sortBy = prop;
this.sortOrder = 1;
this.sort_by = prop;
this.sort_order = 1;
}
if (order == 'descending') {
this.sortBy = prop;
this.sortOrder = 2;
this.sort_by = prop;
this.sort_order = 2;
}
this.currentPage = 1;
this.getRankingData()
@ -403,8 +403,8 @@ export default {
this.$http('POST', '/supernew/ajax_get_agent_batch_list', {
date: that.text,
rank_type: that.dataRank,
sortBy: that.sortBy,
sortOrder: that.sortOrder,
sort_by: that.sort_by,
sort_order: that.sort_order,
cur_page: that.currentPage,
page_size: that.pageSize,
}).then(response => {
@ -422,8 +422,8 @@ export default {
const that = this
this.$http('POST', '/supernew/ajax_get_rank_recharge', {
date: that.text,
sortBy: that.sortBy,
sortOrder: that.sortOrder,
sort_by: that.sort_by,
sort_order: that.sort_order,
cur_page: that.currentPage,
page_size: that.pageSize,
}).then(response => {
@ -442,8 +442,8 @@ export default {
this.$http('POST', '/supernew/ajax_get_ver_batch_list', {
date: that.text,
rank_type: that.dataRank,
sortBy: that.sortBy,
sortOrder: that.sortOrder,
sort_by: that.sort_by,
sort_order: that.sort_order,
cur_page: that.currentPage,
page_size: that.pageSize,
}).then(response => {
@ -463,8 +463,8 @@ export default {
this.$http('POST', '/supernew/ajax_get_type_batch_list', {
date: that.text,
rank_type: that.dataRank,
sortBy: that.sortBy,
sortOrder: that.sortOrder,
sort_by: that.sort_by,
sort_order: that.sort_order,
cur_page: that.currentPage,
page_size: that.pageSize,
}).then(response => {
@ -485,8 +485,8 @@ export default {
this.$http('POST', '/supernew/ajax_get_rank_detail', {
date: that.text,
rank_type: that.dataRank,
sortBy: 2,
sortOrder: 2,
sort_by: 2,
sort_order: 2,
...obj
}).then(response => {
this.$nextTick(() => {

16
src/views/super/Ranking/RankDetail.vue

@ -388,21 +388,21 @@ export default {
handleSortChange({prop, order}) {
this.currentPage = 1;
let sortBy = 0;
let sortOrder = 0;
let sort_by = 0;
let sort_order = 0;
if (order == 'ascending') {
sortBy = prop;
sortOrder = 1;
sort_by = prop;
sort_order = 1;
}
if (order == 'descending') {
sortBy = prop;
sortOrder = 2;
sort_by = prop;
sort_order = 2;
}
if (this.type == 'agentnew') {
this.getAgentNew({sortBy: sortBy, sortOrder: sortOrder})
this.getAgentNew({sort_by: sort_by, sort_order: sort_order})
return
}
this.getRankingDetail({sortBy: sortBy, sortOrder: sortOrder})
this.getRankingDetail({sort_by: sort_by, sort_order: sort_order})
},
handleRowHover(row) {
this.show_detail_index = row.sort

32
src/views/super/Ranking/RankList.vue

@ -261,8 +261,8 @@ export default {
currentPage: 1, //
pageSize: 20, //
total: 0, //
sortBy: 1,
sortOrder: 2,
sort_by: 1,
sort_order: 2,
showfilterTitle: false,
filterTitle: "",
text: '',//
@ -428,15 +428,15 @@ export default {
})
},
handleSortChange({prop, order}) {
this.sortBy = 1;
this.sortOrder = 2;
this.sort_by = 1;
this.sort_order = 2;
if (order == 'ascending') {
this.sortBy = prop;
this.sortOrder = 1;
this.sort_by = prop;
this.sort_order = 1;
}
if (order == 'descending') {
this.sortBy = prop;
this.sortOrder = 2;
this.sort_by = prop;
this.sort_order = 2;
}
this.currentPage = 1;
@ -467,8 +467,8 @@ export default {
check_type: that.check_type,
date: that.text,
rank_type: that.dataRank,
sortBy: that.sortBy,
sortOrder: that.sortOrder,
sort_by: that.sort_by,
sort_order: that.sort_order,
cur_page: that.currentPage,
page_size: that.pageSize,
}).then(response => {
@ -489,8 +489,8 @@ export default {
check_type: that.check_type,
date: that.text,
rank_type: that.dataRank,
sortBy: that.sortBy,
sortOrder: that.sortOrder,
sort_by: that.sort_by,
sort_order: that.sort_order,
cur_page: that.currentPage,
page_size: that.pageSize,
}).then(response => {
@ -512,8 +512,8 @@ export default {
ver_type: that.ver_type,
date: that.text,
rank_type: that.dataRank,
sortBy: that.sortBy,
sortOrder: that.sortOrder,
sort_by: that.sort_by,
sort_order: that.sort_order,
cur_page: that.currentPage,
page_size: that.pageSize,
}).then(response => {
@ -535,8 +535,8 @@ export default {
this.$http('POST', '/supernew/ajax_get_rank_detail', {
date: that.text,
rank_type: that.dataRank,
sortBy: 2,
sortOrder: 2,
sort_by: 2,
sort_order: 2,
...obj
}).then(response => {
this.$nextTick(() => {

Loading…
Cancel
Save