Commit 8a2e9074 by liuchenxi

update: 会员分组

parent 26efc817
......@@ -9,7 +9,7 @@
</div>
<div class="right-content">
<!-- 左边的会员分组 -->
<div class="left-box">
<div class="left-box" v-show="activeType != 3 || !isNew">
<group-list :activeType="activeType" @getRecommend="getRecommend" @second-list="getsecondList"></group-list>
</div>
<!-- 右边的表格 -->
......
<template>
<!--金字塔分组表格-->
<div class="pyramid-group">
<el-table :data="tableList" :header-cell-style="rowClass">
<el-table :data="tableList" :header-cell-style="rowClass" v-loading="loading">
<el-table-column label="价值" width="140">
<template #header>
<div class="header">
......@@ -59,7 +59,8 @@ export default {
haobanList: [],
tableList: [],
tableHeader: [],
consumeList: [] // 未消费会员
consumeList: [], // 未消费会员
loading: false
};
},
created() {
......@@ -85,10 +86,12 @@ export default {
this.haobanList = result;
},
async getTableList() {
this.loading = true;
const res = await getRequest('/memberTagGrade/gradeGroupListNew', {});
const { result } = res.data;
this.tableList = result.result.filter(el => el.gradeName != '未消费');
this.consumeList = result.result.find(el => el.gradeName == '未消费');
this.loading = false;
},
async onChangeSwitch(item) {
const { hanbanShow, memberTagGradeId } = item;
......@@ -97,6 +100,7 @@ export default {
if (data.errorCode != 1) return this.$message.error(data.message);
},
toDetail(row, index) {
if (!this.$getButtonLimit(this.$buttonCode.memberTagGroupLevelDetail)) return;
if (row.gradeName.includes('未消费')) {
const item = row.itemList[index];
this.$router.push(`/memberLevelDetail?memberTagGroupId=${item.memberTagGroupId}&aliasName=${item.groupName}`)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment