guhongwei 4 years ago
parent
commit
91b89cd055
1 changed files with 13 additions and 1 deletions
  1. 13 1
      src/views/superAdminCenter/user/index.vue

+ 13 - 1
src/views/superAdminCenter/user/index.vue

@@ -249,7 +249,7 @@ export default {
   methods: {
     ...authUser({ authdelete: 'delete' }),
     ...users(['fetch', 'create', 'query', 'update', 'delete', 'userquery']),
-    ...expertsuser({ exportuserFetch: 'fetch', exportuserCreate: 'create', exportuserUpdate: 'update' }),
+    ...expertsuser({ exportuserFetch: 'fetch', exportuserCreate: 'create', exportuserUpdate: 'update', exportuserDelete: 'delete' }),
     async search({ skip = 0, limit = 10, pid = '', ...info } = {}) {
       if (this.user.code == 'JLCJGLY') {
         const res = await this.userquery({ skip, ...info });
@@ -382,6 +382,18 @@ export default {
                 this.search();
               }
             }
+          } else {
+            let res = await this.exportuserDelete(data.id);
+            if (this.$checkRes(res)) {
+              res = await this.authdelete(data.id);
+              if (this.$checkRes(res)) {
+                this.$message({
+                  message: '删除信息成功',
+                  type: 'success',
+                });
+                this.search();
+              }
+            }
           }
         })
         .catch(() => {});