Przeglądaj źródła

部分选择器条件下禁用人员未被过滤

cyy 5 miesięcy temu
rodzic
commit
0f1996e6a6
1 zmienionych plików z 5 dodań i 2 usunięć
  1. 5 2
      src/business/platform/org/employee/panel.vue

+ 5 - 2
src/business/platform/org/employee/panel.vue

@@ -340,7 +340,7 @@ export default {
           type = 'user'
           flag = '1'
         }
-        query(type, this.getFormatParams(flag))
+        query(type, this.getFormatParams(flag, '1'))
           .then((response) => {
             this.loading = false
             ActionUtils.handleListData(this, response.data)
@@ -396,7 +396,7 @@ export default {
     /**
      * 获取查询条件格式化参数
      */
-    getFormatParams(flag = '0') {
+    getFormatParams(flag = '0', condition = '0') {
       const storeGetters = this.$store.getters
       const params = this.$refs['crud']
         ? this.$refs['crud'].getSearcFormData()
@@ -449,6 +449,9 @@ export default {
       if (this.moreSearchParams) {
         Object.assign(params, this.moreSearchParams)
       }
+      if (condition === '1') {
+        params['Q^STATUS_^SL'] = 'actived'
+      }
       // if (this.$utils.isNotEmpty(this.currentOrgId)) {
       //   params['orgId'] = this.partyId || this.currentOrgId
       // }