Selaa lähdekoodia

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

cyy 5 kuukautta sitten
vanhempi
sitoutus
0f1996e6a6
1 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  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'
           type = 'user'
           flag = '1'
           flag = '1'
         }
         }
-        query(type, this.getFormatParams(flag))
+        query(type, this.getFormatParams(flag, '1'))
           .then((response) => {
           .then((response) => {
             this.loading = false
             this.loading = false
             ActionUtils.handleListData(this, response.data)
             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 storeGetters = this.$store.getters
       const params = this.$refs['crud']
       const params = this.$refs['crud']
         ? this.$refs['crud'].getSearcFormData()
         ? this.$refs['crud'].getSearcFormData()
@@ -449,6 +449,9 @@ export default {
       if (this.moreSearchParams) {
       if (this.moreSearchParams) {
         Object.assign(params, this.moreSearchParams)
         Object.assign(params, this.moreSearchParams)
       }
       }
+      if (condition === '1') {
+        params['Q^STATUS_^SL'] = 'actived'
+      }
       // if (this.$utils.isNotEmpty(this.currentOrgId)) {
       // if (this.$utils.isNotEmpty(this.currentOrgId)) {
       //   params['orgId'] = this.partyId || this.currentOrgId
       //   params['orgId'] = this.partyId || this.currentOrgId
       // }
       // }