Browse Source

Merge pull request '增加总数显示' (#4) from wpd_total into master

Reviewed-on: #4
pull/5/head
pengda 4 weeks ago
parent
commit
02a6c0041d
  1. 2
      src/views/super/Ranking/RankBatchList.vue
  2. 2
      src/views/super/Ranking/RankDetail.vue
  3. 13
      src/views/super/Ranking/RankList.vue

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

@ -204,7 +204,7 @@ export default {
'year': '年份', 'year': '年份',
}, },
rank_type_desc: { rank_type_desc: {
1: '毛利润/元', 1: '毛利润',
2: '订单数', 2: '订单数',
3: '退单数', 3: '退单数',
4: '充值金额', 4: '充值金额',

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

@ -273,7 +273,7 @@ export default {
'year': '年份', 'year': '年份',
}, },
rank_type_desc: { rank_type_desc: {
1: '毛利润/元', 1: '毛利润',
2: '订单数', 2: '订单数',
3: '退单数', 3: '退单数',
}, },

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

@ -12,7 +12,12 @@
@change="handleDateChange"/> @change="handleDateChange"/>
</CustomDropdown> </CustomDropdown>
</div> </div>
<div class=" flex-common" id=""> <div class=" flex-common">
<div v-if="total_value>0" style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;">
<h3 style="margin: 0;"></h3>
<span style="font-size: 14px; color: #999;">{{ rank_type_desc[dataRank] }}{{ total_value }}</span>
</div>
<el-form> <el-form>
<el-table :data="tableData" <el-table :data="tableData"
:key="dataRank" :key="dataRank"
@ -238,7 +243,7 @@ export default {
data() { data() {
return { return {
rank_type_desc: { rank_type_desc: {
1: '毛利润/元', 1: '毛利润',
2: '订单数', 2: '订单数',
3: '退单数', 3: '退单数',
}, },
@ -270,6 +275,7 @@ export default {
dataType: '', dataType: '',
dataRank: '', dataRank: '',
tableData: [], tableData: [],
total_value: 0,
tableData1: [], tableData1: [],
growth_list: [], growth_list: [],
top_list: [], top_list: [],
@ -476,6 +482,7 @@ export default {
}).then(response => { }).then(response => {
this.$nextTick(() => { this.$nextTick(() => {
that.tableData = response.data.list that.tableData = response.data.list
that.total_value = response.data.total_value
that.growth_list = response.data.growth_list that.growth_list = response.data.growth_list
that.total = response.data.total that.total = response.data.total
if (that.showfilterTitle) that.filterTitle = response.data.title if (that.showfilterTitle) that.filterTitle = response.data.title
@ -498,6 +505,7 @@ export default {
}).then(response => { }).then(response => {
this.$nextTick(() => { this.$nextTick(() => {
that.tableData = response.data.list that.tableData = response.data.list
that.total_value = response.data.total_value
that.top_list = response.data.top_list that.top_list = response.data.top_list
that.growth_list = response.data.growth_list that.growth_list = response.data.growth_list
that.total = response.data.total that.total = response.data.total
@ -521,6 +529,7 @@ export default {
}).then(response => { }).then(response => {
this.$nextTick(() => { this.$nextTick(() => {
that.tableData = response.data.list that.tableData = response.data.list
that.total_value = response.data.total_value
that.top_list = response.data.top_list that.top_list = response.data.top_list
that.growth_list = response.data.growth_list that.growth_list = response.data.growth_list
that.total = response.data.total that.total = response.data.total

Loading…
Cancel
Save