浏览代码

批量注册

guhongwei 3 年之前
父节点
当前提交
1b1a56c0bc
共有 1 个文件被更改,包括 5 次插入1 次删除
  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];
       let res = await this.import(p1);
       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}` });
       }
     },
     // 数据模板下载