Commit 424ef5e8 by caoyanzhi

update: 新建分组调整

parent e9b89103
......@@ -183,7 +183,7 @@
:data="tagsGroupList"
:refersh="refreshList"
@addTag="selectedTag"
style="height: 475px"
style="height: 475px;overflow-y: auto;"
></tag-container>
<div class="page-box">
<dm-pagination
......@@ -597,19 +597,21 @@ export default {
getTagsList() {
getMemberTagCount().then(res => {
if (res.result && res.result.length) {
this.tagsList = res.result;
this.tagsList.forEach(first => {
this.tagsList = res.result.map(first => {
first.nameStr = first.name;
first.children.forEach(second => {
second.nameStr = second.name;
second.children.forEach(item => {
item.nameStr = item.name;
if (item.count && item.count > 0) {
item.nameStr = `${item.name} (${item.count})`;
if (Array.isArray(first.children)) {
first.children = first.children.map(second => {
second.nameStr = second.name;
if (Array.isArray(second.children)) {
second.children.map(el => {
el.nameStr = el.count > 0 ? `${el.name} ${el.count}`: el.name;
})
}
});
});
});
return second;
})
}
return first;
})
} else {
this.tagsList = [];
}
......
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