删除展示增长率 #21

Merged
pengda merged 1 commits from wpd_del_growth into master 2 weeks ago
  1. 25
      src/views/super/Ranking/RankBatchList.vue
  2. 8
      src/views/super/Ranking/RankDetail.vue
  3. 16
      src/views/super/Ranking/RankList.vue

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

@ -75,10 +75,6 @@
<template slot-scope="scope">
<div class="flex">
{{ scope.row.value_2 }}
<template v-if="Object.keys(growth_list1).length > 0">
<GrowthText :value="growth_list1[scope.row.id] ? growth_list1[scope.row.id].value : false"
:prop="'growth'+index"/>
</template>
</div>
</template>
</el-table-column>
@ -87,10 +83,6 @@
<div class="flex" slot="reference">
{{ row[field] }}
<template v-if="view === 'month' && (index != 3 || current_month == '')">
<GrowthText :value="growth_list[row.id] && growth_list[row.id][field] ? growth_list[row.id][field].value : false"
:prop="'growth'+index"/>
</template>
<HoverImage v-if="show_detail_index == row.sort && row[field] > 0"
@click="handleClick(row, $index, 'id')"
:normal="require('@/assets/super/list-detail.svg')"
@ -101,10 +93,6 @@
<template v-else slot-scope="scope">
<div class="flex">
{{ scope.row[field] }}
<template v-if="view === 'month' && (index != 3 || current_month == '')">
<GrowthText :value="growth_list[scope.row.id] && growth_list[scope.row.id][field] ? growth_list[scope.row.id][field].value : false"
:prop="'growth'+index"/>
</template>
</div>
</template>
</el-table-column>
@ -160,7 +148,6 @@
<script>
import DateSelect from '@/components/super/DateSelect.vue';
import HoverImage from '@/components/super/HoverImage.vue';
import GrowthText from '@/components/super/GrowthText.vue';
import CustomDropdown from '@/components/CustomDropdown.vue';
export default {
@ -181,7 +168,6 @@ export default {
},
components: {
HoverImage,
GrowthText,
DateSelect,
CustomDropdown
},
@ -223,9 +209,7 @@ export default {
dataRank: '',
tableData: [],
top_list: [],
growth_list: [],
tableData1: [],
growth_list1: [],
show_detail_index: 0,
}
},
@ -443,7 +427,6 @@ export default {
//
const that = this
that.tableData = []
that.growth_list = []
this.$http('POST', '/supernew/ajax_get_agent_batch_list', {
date: that.text,
rank_type: that.dataRank,
@ -454,7 +437,6 @@ export default {
}).then(response => {
this.$nextTick(() => {
that.tableData = response.data.list
that.growth_list = response.data.growth_list
that.total = response.data.total
})
}).catch(error => {
@ -466,7 +448,6 @@ export default {
const that = this
that.tableData = []
that.top_list = []
that.growth_list = []
this.$http('POST', '/supernew/ajax_get_ver_batch_list', {
date: that.text,
rank_type: that.dataRank,
@ -478,7 +459,6 @@ export default {
this.$nextTick(() => {
that.tableData = response.data.list
that.top_list = response.data.top_list
that.growth_list = response.data.growth_list
that.total = response.data.total
})
}).catch(error => {
@ -490,7 +470,6 @@ export default {
const that = this
that.tableData = []
that.top_list = []
that.growth_list = []
this.$http('POST', '/supernew/ajax_get_type_batch_list', {
date: that.text,
rank_type: that.dataRank,
@ -502,7 +481,6 @@ export default {
this.$nextTick(() => {
that.tableData = response.data.list
that.top_list = response.data.top_list
that.growth_list = response.data.growth_list
that.total = response.data.total
})
}).catch(error => {
@ -512,7 +490,6 @@ export default {
getRankingDetail(obj) {
const that = this
that.tableData1 = []
that.growth_list1 = []
this.$http('POST', '/supernew/ajax_get_rank_detail', {
date: that.text,
rank_type: that.dataRank,
@ -522,7 +499,6 @@ export default {
}).then(response => {
this.$nextTick(() => {
that.tableData1 = response.data.list.slice(0, 5)
that.growth_list1 = response.data.growth_list
})
}).catch(error => {
console.error(error, 'error')
@ -531,7 +507,6 @@ export default {
getRankingList(obj) {
const that = this
that.tableData1 = []
that.growth_list1 = []
this.$http('POST', '/supernew/ajax_get_agent_rank_list', {
date: that.text,
rank_type: that.dataRank,

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

@ -94,7 +94,6 @@
<template slot-scope="scope">
<div class="flex">
{{ scope.row.value_2 }}
<GrowthText :value="growth_list[scope.row.id] ? growth_list[scope.row.id].value : false" prop="growth"/>
</div>
</template>
</el-table-column>
@ -161,9 +160,6 @@
<template slot-scope="scope">
<div class="flex">
{{ scope.row.value_2 }}
<template v-if="Object.keys(growth_list).length > 0">
<GrowthText :value="growth_list[scope.row.id] ? growth_list[scope.row.id].value : false" prop="growth"/>
</template>
</div>
</template>
</el-table-column>
@ -208,7 +204,6 @@
import DateSelect from '@/components/super/DateSelect.vue';
import CustomDropdown from '@/components/CustomDropdown.vue';
import HoverImage from "@/components/super/HoverImage.vue";
import GrowthText from "@/components/super/GrowthText.vue";
export default {
name: 'rank_detail',
@ -235,7 +230,6 @@ export default {
},
},
components: {
GrowthText,
HoverImage,
DateSelect,
CustomDropdown
@ -388,7 +382,6 @@ export default {
const that = this
that.tableData = []
that.top_list = []
that.growth_list = []
that.total_value = 0
this.$http('POST', '/supernew/ajax_get_rank_detail', {
rank_type: that.dataRank,
@ -402,7 +395,6 @@ export default {
that.tableData = response.data.list
that.total_value = response.data.total_value
that.top_list = response.data.top_list
that.growth_list = response.data.growth_list
that.total = response.data.total
if (that.showfilterTitle) that.filterTitle = response.data.title

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

@ -80,9 +80,6 @@
<div class="flex" slot="reference">
{{ row.value_1 }}
<template v-if="Object.keys(growth_list).length > 0">
<GrowthText :value="growth_list[row.id] ? growth_list[row.id].value : false" prop="growth"/>
</template>
</div>
</el-popover>
@ -115,7 +112,6 @@
<div class="flex" slot="reference">
{{ row.value_2 }}
<GrowthText :value="growth_list[row.id] ? growth_list[row.id].value : false" prop="growth"/>
<HoverImage v-if="row.value_1>0 && show_detail_index == row.sort && lookMore"
@click="handleClick2(row, $index, 'id')"
:normal="require('@/assets/super/list-detail.svg')"
@ -185,7 +181,6 @@
import DateSelect from '@/components/super/DateSelect.vue';
import CustomDropdown from '@/components/CustomDropdown.vue';
import GrowthText from "@/components/super/GrowthText.vue";
import HoverImage from "@/components/super/HoverImage.vue";
export default {
@ -214,7 +209,6 @@ export default {
},
components: {
HoverImage,
GrowthText,
DateSelect,
CustomDropdown
},
@ -255,7 +249,6 @@ export default {
tableData: [],
total_value: 0,
tableData1: [],
growth_list: [],
top_list: [],
show_detail_index: 0,
}
@ -450,7 +443,6 @@ export default {
const that = this
that.tableData = []
that.total_value = 0
that.growth_list = []
this.$http('POST', '/supernew/ajax_get_agent_rank_list', {
ver_type: that.ver_type,
check_type: that.check_type,
@ -464,7 +456,6 @@ export default {
this.$nextTick(() => {
that.tableData = response.data.list
that.total_value = response.data.total_value
that.growth_list = response.data.growth_list
that.total = response.data.total
if (that.showfilterTitle) that.filterTitle = response.data.title
})
@ -477,7 +468,6 @@ export default {
that.tableData = []
that.total_value = 0
that.top_list = []
that.growth_list = []
this.$http('POST', '/supernew/ajax_get_ver_rank_list', {
aid: that.aid,
check_type: that.check_type,
@ -492,7 +482,6 @@ export default {
that.tableData = response.data.list
that.total_value = response.data.total_value
that.top_list = response.data.top_list
that.growth_list = response.data.growth_list
that.total = response.data.total
if (that.showfilterTitle) that.filterTitle = response.data.title
})
@ -505,7 +494,6 @@ export default {
that.tableData = []
that.total_value = 0
that.top_list = []
that.growth_list = []
this.$http('POST', '/supernew/ajax_get_type_rank_list', {
aid: that.aid,
ver_type: that.ver_type,
@ -520,7 +508,6 @@ export default {
that.tableData = response.data.list
that.total_value = response.data.total_value
that.top_list = response.data.top_list
that.growth_list = response.data.growth_list
that.total = response.data.total
if (that.showfilterTitle) that.filterTitle = response.data.title
})
@ -531,7 +518,6 @@ export default {
getRankingDetail(obj) {
const that = this
that.tableData1 = []
that.growth_list1 = []
this.$http('POST', '/supernew/ajax_get_rank_detail', {
date: that.text,
rank_type: that.dataRank,
@ -541,7 +527,6 @@ export default {
}).then(response => {
this.$nextTick(() => {
that.tableData1 = response.data.list.slice(0, 5)
that.growth_list1 = response.data.growth_list
})
}).catch(error => {
console.error(error, 'error')
@ -550,7 +535,6 @@ export default {
getRankingList(obj) {
const that = this
that.tableData1 = []
that.growth_list1 = []
this.$http('POST', '/supernew/ajax_get_agent_rank_list', {
date: that.text,
rank_type: that.dataRank,

Loading…
Cancel
Save