Ver Fonte

修改接口

chenrui  há 2 anos atrás
pai
commit
1400bf11de
1 ficheiros alterados com 14 adições e 14 exclusões
  1. 14 14
      src/views/newUserManagement/index.vue

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

@@ -163,7 +163,7 @@ import MD5 from 'blueimp-md5'
 export default {
   name: 'NewManageMent',
   components: { Dialog },
-  mixins: [pb],
+  mixins: [pb,pf],
   data () {
     return {
       data: [
@@ -230,7 +230,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
@@ -247,7 +247,7 @@ 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, false, {
           user_group_id: data.user_group_id
         })
         this.tableData = result
@@ -290,16 +290,16 @@ export default {
     async tableRemove () {
       let code = null
       if (this.rmType == '1') {
-        code = await this.generalDataReception(this.queryId, this.rmObj, 3)
+        code = await this.getChangeList(this.queryId, this.rmObj, 3)
         if (code) {
           this.getTreeData()
           this.rmObj = {}
           this.clearForm()
         }
       } else {
-        code = await this.generalDataReception(SERVICE_ID.getUserTableId, this.dataObj, 3)
+        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, false, {
             user_group_id: this.dataObj.user_group_id
           })
           this.tableData = result
@@ -315,11 +315,11 @@ export default {
           let code = null
           const data = this.formInline
           if (this.type == 'add') {
-            code = await this.generalDataReception(this.queryId, data, 1)
+            code = await this.getChangeList(this.queryId, data, 1)
           } else {
             const id = this.formInline.user_group_id
             if (id) {
-              code = await this.generalDataReception(this.queryId, data, 2)
+              code = await this.getChangeList(this.queryId, data, 2)
             }
           }
           if (code) {
@@ -348,8 +348,8 @@ 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, false, {
         user_id: row.user_id
       })
       
@@ -399,7 +399,7 @@ export default {
           }
         }
       }
-      code = await this.generalDataReception(SERVICE_ID.userAuthorizationId,arr, event)
+      code = await this.getChangeList(SERVICE_ID.userAuthorizationId,arr, event)
     },
     hide () {
       this.dialogFlag = false
@@ -411,18 +411,18 @@ export default {
           const data = this.ruleForm
           this.ruleForm.user_pwd= MD5(this.ruleForm.user_pwd)
           if (this.dataType == 'add') {
-            code = await this.generalDataReception(SERVICE_ID.getUserTableId, data, 1)
+            code = await this.getChangeList(SERVICE_ID.getUserTableId, data, 1)
           } else {
             const id = this.ruleForm.user_group_id
             if (id) {
-              code = await this.generalDataReception(SERVICE_ID.getUserTableId, data, 2)
+              code = await this.getChangeList(SERVICE_ID.getUserTableId, data, 2)
             }
           }
           if (code) {
             if (this.dataType == 'add') {
               this.clearTableForm()
             }
-            const result = await this.getQuery(SERVICE_ID.getUserTableId, false, {
+            const result = await this.getQueryList(SERVICE_ID.getUserTableId, false, {
               user_group_id: this.formInline.user_group_id
             })
             this.tableData = result