添加:持有积分添加统计
This commit is contained in:
parent
5e9ac097a0
commit
4088d55219
|
|
@ -716,6 +716,11 @@ export function holdIntegralList(data) {
|
||||||
return request.get(`user/integral/hold_list`, data)
|
return request.get(`user/integral/hold_list`, data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 持有积分 - 列表
|
||||||
|
export function holdIntegralTitleApi(data) {
|
||||||
|
return request.get(`user/integral/hold_list_title`, data)
|
||||||
|
}
|
||||||
|
|
||||||
// 赠送积分 - 列表
|
// 赠送积分 - 列表
|
||||||
export function giveIntegralList(data) {
|
export function giveIntegralList(data) {
|
||||||
return request.get(`user/integral/give_list`, data)
|
return request.get(`user/integral/give_list`, data)
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
<!--<el-button size="small" type="primary" @click="exports">导出</el-button>-->
|
<!--<el-button size="small" type="primary" @click="exports">导出</el-button>-->
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
<cards-data :card-lists="cardLists" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!--列表内容-->
|
<!--列表内容-->
|
||||||
|
|
@ -64,9 +65,11 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { holdIntegralList} from '@/api/marketing'
|
import { holdIntegralList, holdIntegralTitleApi} from '@/api/marketing'
|
||||||
|
import cardsData from '@/components/cards/index'
|
||||||
export default {
|
export default {
|
||||||
name: "preSaleProductList",
|
name: "preSaleProductList",
|
||||||
|
components: { cardsData },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
listLoading: true,
|
listLoading: true,
|
||||||
|
|
@ -81,15 +84,25 @@ export default {
|
||||||
mer_id: ''
|
mer_id: ''
|
||||||
},
|
},
|
||||||
loading: false,
|
loading: false,
|
||||||
|
cardLists: [],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
this.getIntegralTitle();
|
||||||
this.getList('');
|
this.getList('');
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 获取统计数据
|
||||||
|
getIntegralTitle() {
|
||||||
|
holdIntegralTitleApi(this.tableFrom).then((res) => {
|
||||||
|
this.cardLists = res.data
|
||||||
|
}).catch((res) => {
|
||||||
|
this.$message.error(res.message)
|
||||||
|
})
|
||||||
|
},
|
||||||
// 获取列表
|
// 获取列表
|
||||||
getList(num) {
|
getList(num) {
|
||||||
this.listLoading = true;
|
this.listLoading = true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue