调整权限生成延迟问题
This commit is contained in:
parent
93094cf623
commit
1317b182c5
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user