2213980799@qq.com 1 سال پیش
والد
کامیت
3867640a36

+ 1 - 1
src/views/system/organization/components/org-edit.vue

@@ -364,7 +364,7 @@ export default {
       );
     },
     addOpen() {
-      this.$refs.addUserRef.open(true);
+      this.$refs.addUserRef.open();
     },
     clearManagerFirst() {
       this.managerFirst = {};

+ 5 - 9
src/views/system/user/components/add.vue

@@ -61,7 +61,7 @@
         data: [],
         show: false,
         organizationId: '',
-        isHasAccount: false,
+        isHasAccount: '',
         // 表格列配置
         columns: [
           {
@@ -132,24 +132,20 @@
           });
       },
       async open(isHasAccount) {
-        if (isHasAccount) {
-          this.isHasAccount = isHasAccount;
-        }
+        this.isHasAccount = isHasAccount;
         this.query();
         this.show = true;
       },
       /* 表格数据源 */
       async datasource({ page, limit, where, order }) {
-        console.log(this.isHasAccount);
-        // if (!this.isHasAccount) {
-        //   where['hasAccount'] = 0;
-        // }
+
         let data = await getUserPage({
           ...where,
           ...order,
           pageNum: page,
           size: limit,
-          groupId: this.organizationId
+          groupId: this.organizationId,
+          hasAccount:this.isHasAccount||''
         });
 
         return data;

+ 1 - 1
src/views/system/user/components/user-edit.vue

@@ -183,7 +183,7 @@ export default {
   },
   methods: {
     setUsers() {
-      this.$refs.addREf.open();
+      this.$refs.addREf.open('0');
     },
     userBk(data) {
       if (data) {