Browse Source

批量注册

guhongwei 3 years ago
parent
commit
1b1a56c0bc
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/views/account/adminCenter/users/index.vue

+ 5 - 1
src/views/account/adminCenter/users/index.vue

@@ -100,7 +100,11 @@ export default {
       var p1 = data.file.map((item) => ({ uri: item.url }))[0];
       var p1 = data.file.map((item) => ({ uri: item.url }))[0];
       let res = await this.import(p1);
       let res = await this.import(p1);
       if (this.$checkRes(res)) {
       if (this.$checkRes(res)) {
-        console.log(res);
+        this.$toast({ type: `success`, message: `操作完成` });
+        this.search();
+        this.dialog = { show: false, title: '批量注册', type: '1' };
+      } else {
+        this.$toast({ type: `success`, message: `${res.errmsg}` });
       }
       }
     },
     },
     // 数据模板下载
     // 数据模板下载