调整权限生成延迟问题

This commit is contained in:
zyy 2019-11-25 11:19:52 +08:00
parent 93094cf623
commit 1317b182c5

View File

@ -254,14 +254,14 @@ export default {
}); });
return name; return name;
}, },
deleteForm(index, row) { deleteForm(index, row) { //
const idx = this.ruleList.findIndex(elem => { return elem.id == row.id; }); const idx = this.ruleList.findIndex(elem => { return elem.id == row.id; });
if (idx >= 0) { if (idx >= 0) {
row['isPut'] = false; row['isPut'] = false;
this.ruleList.splice(idx, 1); this.ruleList.splice(idx, 1);
} }
}, },
addRuleForm(index, row) { addRuleForm(index, row) { //
row['isPut'] = true; row['isPut'] = true;
getPermissionGoods(row.id).then(res => { getPermissionGoods(row.id).then(res => {
if (res.data.length) { if (res.data.length) {
@ -270,8 +270,8 @@ export default {
row.goods = res.data[0]; row.goods = res.data[0];
} }
} }
});
this.ruleList.push(row); this.ruleList.push(row);
});
}, },
dialogSelect(row) { dialogSelect(row) {
if (this.addModel.mapId) { if (this.addModel.mapId) {