Commit 4930665a by caoyanzhi

update: 会员分组

parent 39dee65d
......@@ -181,9 +181,6 @@ export default {
getMemberGroupList() {
const { classifyName, pageNum } = this.params;
this.loadings = true;
if (pageNum == 1) {
this.groupList = [];
}
memberGroupList({
classifyName,
pageNum,
......@@ -192,12 +189,19 @@ export default {
requestProject: 'gic-member-tag-web',
}).then(res => {
const { errorCode, result } = res;
if (pageNum == 1) {
this.groupList = [];
}
if (errorCode != 0) return;
if (Array.isArray(result.result)) {
this.groupList = this.groupList.concat(result.result.filter(el => el.classifyName != '未分类' && el.classifyName != null));
}
this.params.totalPage = result.totalPage;
this.totalCountGounp = result.totalCount || 0;
}).catch(() => {
if (pageNum == 1) {
this.groupList = [];
}
}).finally(() => {
setTimeout(()=>{
this.loadings = false;
......
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