safecheck-client 3.0.33-92 → 3.0.33-95

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.
@@ -576,7 +576,7 @@
576
576
  //查询安检员selectChanged
577
577
  async searchChecker(id){
578
578
  let res=await new HttpResetClass().load('POST', '/rs/search', {
579
- source: `root.getResourceById($${this.userlogin.orgid}$,$organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1)`,
579
+ source: `root.getResourceById($${this.userlogin.orgid}$,$organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$)!=null ).where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1)`,
580
580
  userid: this.$login.f.id
581
581
  }, {resolveMsg: null, rejectMsg: null})
582
582
  let arr = []
@@ -232,26 +232,20 @@
232
232
  }
233
233
  let td=Util.toStandardDateString()
234
234
  //获取今天上传的所有隐患
235
- let arr=await new HttpResetClass().load("POST", `rs/sql/defectDetails`, {data:{condition:` f_filialeid in ('${this.$login.f.orgid}') and f_upload_date>'${Util.toStartDateYearString()} 00:00:00' and f_longitude is not null`}},
235
+ let arr=await new HttpResetClass().load("POST", `rs/sql/defectDetails`, {data:{condition:` f_filialeid in ('${this.$login.f.orgid}') and f_upload_date>'${Util.toStandardDateString()} 00:00:00'`}},
236
236
  {resolveMsg: null, rejectMsg: null})
237
237
  //tag)
238
238
  if(arr.data){
239
239
  this.todayDefectList=[]
240
240
  arr.data.forEach((defect)=>{
241
- //拿出今天的隐患放到今日隐患列表中
242
- console.log("td",td)
243
- console.log("defect",defect)
244
- console.log("defect",defect)
245
241
  if(defect.f_upload_date.indexOf(td)!=-1){
246
242
  this.todayDefectList.push(defect)
247
243
  }
248
- //取出一二三级隐患
249
- console.log("二级隐患",defect.f_defect_level=='二级隐患')
250
- if(defect.f_defect_level=='一级隐患'){
244
+ if(defect.f_defect_level.indexOf('一级') >=0){
251
245
  this.level1.push(defect)
252
- }else if(defect.f_defect_level=='二级隐患'){
246
+ }else if(defect.f_defect_level.indexOf('二级') >=0){
253
247
  this.level2.push(defect)
254
- }else if(defect.f_defect_level=='三级隐患'){
248
+ }else if(defect.f_defect_level.indexOf('三级') >=0){
255
249
  this.level3.push(defect)
256
250
  }else{
257
251
  this.problems.push(defect)