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

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

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

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

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

Loading…
Cancel
Save