调整权限生成延迟问题

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