Commit b1220de3 by liuchenxi

update: 缓存会员分组

parent 0bf2564c
......@@ -649,6 +649,17 @@ export default {
this.dialogFixedPile.proportions = proportions;
this.dialogFixedPile.proportion = proportions[0] || '';
this.dialogFixedPile.groupNames = names;
},
// 该页面用keeyalive缓存 通过路由判断调用哪个列表接口
'$route'(to,from) {
if(to.path.indexOf('memberGroupList') > -1) {
if(from.path.indexOf('memberLevelDetail') > -1) {
this._gradeList(this.memberTagGradeId);
} else {
this.getGroupList();
this._groupCount();
}
}
}
},
filters: {
......@@ -660,10 +671,10 @@ export default {
return '';
},
formatTimeYMD(data) {
return data && data != '- -' ? data.split(' ')[0] : '--';
return data && data != '- -' ? String(data).split(' ')[0] : '--';
},
formatTimeHMS(data) {
return data && data != '- -' ? data.split(' ')[1] : '--';
return data && data != '- -' ? String(data).split(' ')[1] : '--';
},
formatNum(data) {
const reg = /\d{1,3}(?=(\d{3})+$)/g;
......@@ -1384,7 +1395,7 @@ export default {
}).finally(() => this.reqLock = false);
}
},
activated() {
created() {
this.loading = true;
this.params = {
groupName: this.tagSearch,
......
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