Browse Source

加载优化

pull/5/head
pengda 4 weeks ago
parent
commit
db012fda0e
  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() { getAgentRanking() {
// //
const that = this const that = this
that.tableData = []
that.growth_list = []
that.total = 0
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,
@ -418,6 +421,10 @@ export default {
getVerRanking() { getVerRanking() {
// //
const that = this const that = this
that.tableData = []
that.top_list = []
that.growth_list = []
that.total = 0
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,
@ -439,6 +446,10 @@ export default {
getTypeRanking() { getTypeRanking() {
// //
const that = this const that = this
that.tableData = []
that.top_list = []
that.growth_list = []
that.total = 0
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,

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

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

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

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

Loading…
Cancel
Save