|
|
@ -339,7 +339,7 @@ export default { |
|
|
|
console.log(this.smartRuleList) |
|
|
|
}, |
|
|
|
async setRule (ruleList) { |
|
|
|
// this.startLoading() |
|
|
|
|
|
|
|
if (this.groupList.length == 0 || this.houseItemList.length === 0) { |
|
|
|
setTimeout(() => { |
|
|
|
this.setRule(ruleList); |
|
|
@ -347,6 +347,8 @@ export default { |
|
|
|
return false |
|
|
|
} |
|
|
|
|
|
|
|
this.startLoading() |
|
|
|
|
|
|
|
this.smartRuleList = ruleList |
|
|
|
if (this.smartRuleList && this.smartRuleList.length > 0) { |
|
|
|
|
|
|
@ -374,7 +376,6 @@ export default { |
|
|
|
if (selGroup.length > 0) { |
|
|
|
await this.handleSelGroup(i, selGroup[0], true) |
|
|
|
|
|
|
|
|
|
|
|
let selItem = element.personRule.itemList.filter((item) => |
|
|
|
element.personRule.itemId === item.itemId); |
|
|
|
if (selItem.length > 0) { |
|
|
@ -386,7 +387,7 @@ export default { |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.endLoading() |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|