加载优化 #5

Merged
pengda merged 1 commits from wpd_loading into master 4 weeks ago
  1. 11
      src/views/super/Ranking/RankBatchList.vue
  2. 4
      src/views/super/Ranking/RankDetail.vue
  3. 14
      src/views/super/Ranking/RankList.vue

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

@ -398,6 +398,9 @@ export default {
getAgentRanking() {
//
const that = this
that.tableData = []
that.growth_list = []
that.total = 0
this.$http('POST', '/supernew/ajax_get_agent_batch_list', {
date: that.text,
rank_type: that.dataRank,
@ -418,6 +421,10 @@ export default {
getVerRanking() {
//
const that = this
that.tableData = []
that.top_list = []
that.growth_list = []
that.total = 0
this.$http('POST', '/supernew/ajax_get_ver_batch_list', {
date: that.text,
rank_type: that.dataRank,
@ -439,6 +446,10 @@ export default {
getTypeRanking() {
//
const that = this
that.tableData = []
that.top_list = []
that.growth_list = []
that.total = 0
this.$http('POST', '/supernew/ajax_get_type_batch_list', {
date: that.text,
rank_type: that.dataRank,

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

@ -412,6 +412,10 @@ export default {
getRankingDetail(obj) {
const that = this
that.tableData = []
that.top_list = []
that.growth_list = []
that.total_value = 0
that.total = 0
this.$http('POST', '/supernew/ajax_get_rank_detail', {
rank_type: that.dataRank,
aid: that.aid,

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

@ -470,6 +470,10 @@ export default {
},
getAgentRanking() {
const that = this
that.tableData = []
that.total_value = 0
that.growth_list = []
that.total = 0
this.$http('POST', '/supernew/ajax_get_agent_rank_list', {
ver_type: that.ver_type,
check_type: that.check_type,
@ -493,6 +497,11 @@ export default {
},
getVerRanking() {
const that = this
that.tableData = []
that.total_value = 0
that.top_list = []
that.growth_list = []
that.total = 0
this.$http('POST', '/supernew/ajax_get_ver_rank_list', {
aid: that.aid,
check_type: that.check_type,
@ -517,6 +526,11 @@ export default {
},
getTypeRanking() {
const that = this
that.tableData = []
that.total_value = 0
that.top_list = []
that.growth_list = []
that.total = 0
this.$http('POST', '/supernew/ajax_get_type_rank_list', {
aid: that.aid,
ver_type: that.ver_type,

Loading…
Cancel
Save