safecheck-client 4.0.0-1 → 4.0.0-11

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.
@@ -516,6 +516,17 @@ export default {
516
516
  cbc:[]
517
517
  }
518
518
  },
519
+ created() {
520
+ // 使用 $on 监听事件
521
+ this.$root.$on('audit-status-changed', () => {
522
+ console.log('收到审核状态变更事件')
523
+ this.refresh()
524
+ })
525
+ },
526
+ beforeDestroy() {
527
+ // 记得在组件销毁前移除事件监听
528
+ this.$root.$off('audit-status-changed')
529
+ },
519
530
  methods: {
520
531
  //气表品牌查询
521
532
  getTableBrands() {
@@ -761,7 +772,7 @@ export default {
761
772
  if (val) {
762
773
  this.searchData.f_approved = val
763
774
  }
764
- },
775
+ }
765
776
  }
766
777
 
767
778
  }
@@ -318,7 +318,9 @@ export default {
318
318
  // //tag
319
319
  this.$parent.showItem = false
320
320
  this.$parent.showItemUser = false
321
- args.condition += ` and f_orgid in ${this.model.f_filialeids}`
321
+ if(this.model.f_filialeids){
322
+ args.condition += ` and f_orgid in ${this.model.f_filialeids}`
323
+ }
322
324
  args.condition += ` and tcb.f_user_type ='${this.showtype}' `
323
325
  return this.model.search(args.condition, args.model)
324
326
  },