Commit 68c64905 by liuchenxi

update:触达效果

parent 14bf5d40
......@@ -139,6 +139,7 @@ export default {
this.getTableFirstData();
},
changeListTab(index) {
if (index == this.listTabsIndex) return;
this.listTabsIndex = index;
this.currentPage = 1;
this.$refs.table.clearSort();
......@@ -278,16 +279,15 @@ export default {
}
meth(params).then(res => {
this.tableList = [];
console.log(res.result);
if (!res.result.result || !res.result.result.length) return;
// 拼接表头数据
if (this.currentPage == 1) {
let resetArr = [];
this.tableExtra.forEach(item => {
if (item.groupName == '区域合计') resetArr[0] = item;
else if (item.groupName == '计划整体' && this.level < 2) resetArr[1] = item;
});
res.result.result && (this.tableList = resetArr.concat(res.result.result));
}
let resetArr = [];
this.tableExtra.forEach(item => {
if (item.groupName == '区域合计') resetArr[0] = item;
else if (item.groupName == '计划整体' && this.level < 2) resetArr[1] = item;
});
res.result.result && (this.tableList = resetArr.concat(res.result.result));
this.total = res.result.totalCount;
this.loading = false;
});
......@@ -347,15 +347,17 @@ export default {
// 懒加载树结构
async loadNode(node, resolve) {
let params = { level: node.level, storeGroupId: node.data ? node.data.storeGroupId : null };
this.level = node.level;
this.storeGroupId = node.data ? node.data.storeGroupId : null;
if (node.level === 0) {
let allStore = await getGroupTree(params);
this.allStoreId.push(allStore.result[0].storeGroupId); // 设置默认展开所有门店的叶子节点
this.$nextTick(() => this.$refs.treeList.setCurrentKey(this.allStoreId[0])); // 设置树默认高亮结点
return resolve(allStore.result || []);
}
if (node.level == 1) this.getTableFirstData();
if (node.level == 1) {
this.level = node.level;
this.storeGroupId = node.data ? node.data.storeGroupId : null;
this.getTableFirstData();
}
let otherArea = await getGroupTree(params);
return resolve(otherArea.result || []);
},
......
......@@ -41,7 +41,7 @@
<div class="name" v-if="scope.row.cardName">
<div class="top">
{{ scope.row.cardName }}
<span class="type">{{ scope.row.cardName == 0 ? '抵金券' : scope.row.cardName == 1 ? '折扣券' : scope.row.cardName == 2 ? '兑换券' : '--' }}</span>
<span class="type">{{ scope.row.cardType == 0 ? '抵金券' : scope.row.cardType == 1 ? '折扣券' : scope.row.cardType == 2 ? '兑换券' : '--' }}</span>
</div>
<p>{{ scope.row.subTitle }}</p>
</div>
......@@ -174,6 +174,9 @@ export default {
}
}
}
.list_right div {
text-align: center;
}
}
.name {
color: #303133;
......
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