safecheck-client 4.0.0-22 → 4.0.0-24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -618,19 +618,17 @@
618
618
  return true
619
619
  },
620
620
  //查询安检员selectChanged
621
- async searchChecker(id){
621
+ async searchChecker(){
622
+ console.log(this.$login.f.orgid)
623
+ debugger
622
624
  let res=await new HttpResetClass().load('POST', '/rs/search', {
623
625
  data:{
624
- source: `this.getSpecialResByType($user$).where(row.getAttributes().get($rolestr$)!=null ).where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1)`,
625
- userid: this.userlogin.orgid
626
+ source: `root.getResourceById($${this.$login.f.orgid}$,$organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1)`,
627
+ userid: this.$login.f.id
626
628
  }
627
629
  }, {resolveMsg: null, rejectMsg: null})
628
- let arr = []
629
630
  res.data.forEach((resRow) => {
630
- if (!arr.includes(resRow.name) && resRow.state == '在职'){
631
- arr.push(resRow.name)
632
- this.checker.push({label:resRow.name,value:resRow})
633
- }
631
+ this.checker.push({label:resRow.name,value:resRow})
634
632
  })
635
633
  },
636
634
  //设置属性值