Commit 53b31c80 by liuchenxi

update: 会员分组

parent 04adf2a0
......@@ -2337,7 +2337,7 @@ export default {
v = parseInt(v);
break;
case 'double':
v = parseFloat(v).toFixed(2);
v = Number.isNaN(parseFloat(v)) ? NaN : parseFloat(v).toFixed(2);
break;
}
if (Number.isNaN(v)) return ''; // 是否为数字
......
......@@ -670,7 +670,7 @@ export default {
},
fixedPileRate(filed) {
const { fixedPileValue } = this;
return fixedPileValue.value.reduce((str, cur, index, self) => str + cur[filed] + (index < (self.length - 1) ? ' :' : ''), '');
return fixedPileValue.value.reduce((str, cur, index, self) => str + (cur[filed] || 0) + (index < (self.length - 1) ? ' :' : ''), '');
},
},
beforeMount() {
......
......@@ -699,14 +699,14 @@ export default {
let len = (proportions[0] || '').split(':').length || custom.length;
let index = 0;
let names = [];
console.log(v);
while(index < len) {
names.push(`${groupName}-${pileNames[index]}`);
++index;
}
this.dialogFixedPile.proportions = proportions;
this.dialogFixedPile.proportion = proportions[0] || '';
this.dialogFixedPile.groupNames = names;
if (v != 4) this.dialogFixedPile.groupNames = names;
},
// 该页面用keeyalive缓存 通过路由判断调用哪个列表接口
'$route'(to,from) {
......@@ -1305,7 +1305,7 @@ export default {
getGroupList() {
this.loading = true;
this.params.fixedType = this.showFixedList ? 1 : 0;
this.params.permissionType = this.isSelf ? null : 2;
this.params.permissionType = this.isSelf ? 2 : 1;
memberTagGroupList(this.params).then(res => {
this.loading = false;
if (res.errorCode == 1) {
......
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