diff --git a/src/views/super/Ranking/RankBatchList.vue b/src/views/super/Ranking/RankBatchList.vue index 69ca2b3..876e835 100644 --- a/src/views/super/Ranking/RankBatchList.vue +++ b/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(() => { diff --git a/src/views/super/Ranking/RankDetail.vue b/src/views/super/Ranking/RankDetail.vue index a0838b0..9cb972b 100644 --- a/src/views/super/Ranking/RankDetail.vue +++ b/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 diff --git a/src/views/super/Ranking/RankList.vue b/src/views/super/Ranking/RankList.vue index 69688c8..f6151ed 100644 --- a/src/views/super/Ranking/RankList.vue +++ b/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(() => {