chenrui  2 years ago
parent
commit
fd7eefe9a9
1 changed files with 12 additions and 12 deletions
  1. 12 12
      src/views/newUserManagement/index.vue

+ 12 - 12
src/views/newUserManagement/index.vue

@@ -231,7 +231,7 @@ export default {
   },
   methods: {
     async getTreeData () {
-      const result = await this.getQuery(this.queryId)
+      const result = await this.getQueryList(this.queryId)
       if (result && result.length) {
         this.options = result
         this.data[0].children = result
@@ -248,9 +248,9 @@ export default {
         this.treeCheckId = data.user_group_id
         this.formInline = _.cloneDeep(data)
         this.type = 'edit'
-        const result = await this.getQuery(SERVICE_ID.getUserTableId, false, {
+        const result = await this.getQueryList(SERVICE_ID.getUserTableId, {
           user_group_id: data.user_group_id
-        })
+        }, 'user_group_id')
         this.tableData = result
       } else {
         this.formInline.user_group_name = ''
@@ -300,9 +300,9 @@ export default {
       } else {
         code = await this.getChangeList(SERVICE_ID.getUserTableId, this.dataObj, 3)
         if (code) {
-          const result = await this.getQuery(SERVICE_ID.getUserTableId, false, {
+          const result = await this.getQueryList(SERVICE_ID.getUserTableId, {
             user_group_id: this.dataObj.user_group_id
-          })
+          },'user_group_id')
           this.tableData = result
           this.dataObj = {}
           this.clearTableForm()
@@ -349,10 +349,10 @@ export default {
     },
     async handleTableAuth (row) {
       this.dialogFlag = true
-      const result = await this.getQuery(SERVICE_ID.roleListId)
-      const code = await this.getQuery(SERVICE_ID.userAuthorizationId, false, {
+      const result = await this.getQueryList(SERVICE_ID.roleListId)
+      const code = await this.getQueryList(SERVICE_ID.userAuthorizationId, {
         user_id: row.user_id
-      })
+      }, 'user_id')
       
       this.tableCols = result
       this.tableCols.forEach(element => {
@@ -365,8 +365,8 @@ export default {
           }
         });
       });
-      console.log(this.tableCols)
-      console.log(code)
+      // console.log(this.tableCols)
+      // console.log(code)
     },
     handleTablepaswod (row) {
       this.paswordFlag = true
@@ -420,9 +420,9 @@ export default {
             if (this.dataType == 'add') {
               this.clearTableForm()
             }
-            const result = await this.getQuery(SERVICE_ID.getUserTableId, false, {
+            const result = await this.user_id(SERVICE_ID.getUserTableId, {
               user_group_id: this.formInline.user_group_id
-            })
+            }, 'user_group_id')
             this.tableData = result
           }
           this.tableFlag = false