Browse Source

11

dev-新版ui
jiangyy 3 years ago
parent
commit
86feec69e6
  1. 7
      src/views/components/smartSearchRule.vue

7
src/views/components/smartSearchRule.vue

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

Loading…
Cancel
Save