|
@@ -11,6 +11,12 @@
|
|
|
</Select>
|
|
|
<Button type="primary" @click="getList" style="margin-left: 20px;">查询</Button>
|
|
|
<Button type="primary" @click="reset" style="margin-left: 20px;">重置</Button>
|
|
|
+ </Card>
|
|
|
+ <cards-data
|
|
|
+ :cardLists="cardLists"
|
|
|
+ v-if="cardLists.length >= 0"
|
|
|
+ ></cards-data>
|
|
|
+ <Card :bordered="false">
|
|
|
<Table :columns="columns1" :data="list" ref="table" class="mt25" :loading="loading" highlight-row
|
|
|
no-userFrom-text="暂无数据" no-filtered-userFrom-text="暂无筛选结果">
|
|
|
<template slot-scope="{ row, index }" slot="icons">
|
|
@@ -57,7 +63,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import goodsList from "@/components/goodsList/index";
|
|
|
-
|
|
|
+ import cardsData from "@/components/cards/cards";
|
|
|
import {
|
|
|
mapState,
|
|
|
mapMutations
|
|
@@ -73,7 +79,8 @@
|
|
|
name: 'guquanList',
|
|
|
components: {
|
|
|
userLists,
|
|
|
- goodsList
|
|
|
+ goodsList,
|
|
|
+ cardsData
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -128,6 +135,7 @@
|
|
|
},
|
|
|
list: [],
|
|
|
total: 0,
|
|
|
+ cardLists:[]
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -173,7 +181,9 @@
|
|
|
console.log(this.listFrom.uid,'this.listFrom.uid')
|
|
|
},
|
|
|
reset() {
|
|
|
- this.listFrom.member_id = 0,
|
|
|
+ this.listFrom.page = 1;
|
|
|
+ this.listFrom.uid = ''
|
|
|
+ this.listFrom.product_id = ''
|
|
|
this.getList()
|
|
|
},
|
|
|
pass(row,type) {
|
|
@@ -204,7 +214,17 @@
|
|
|
getJcList(this.listFrom).then(async res => {
|
|
|
let data = res.data
|
|
|
this.list = data.list;
|
|
|
- this.total = res.data.count;
|
|
|
+ this.total = data.count;
|
|
|
+ let arr = []
|
|
|
+ Object.keys(data.count_list).forEach(item => {
|
|
|
+ arr.push({
|
|
|
+ name: item == 'jackpot' ? '未发放奖池': (item == 'grant'? '已发放奖池': '用户领取上限'),
|
|
|
+ col: 8,
|
|
|
+ count: data.count_list[item],
|
|
|
+ className: item == 'jackpot' ? 'md-contacts': (item == 'grant'? "md-contact": "md-cart")
|
|
|
+ })
|
|
|
+ })
|
|
|
+ this.cardLists = arr
|
|
|
this.loading = false;
|
|
|
}).catch(res => {
|
|
|
console.log(res, 'res');
|