guhongwei 3 gadi atpakaļ
vecāks
revīzija
1b1a56c0bc
1 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  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}` });
       }
     },
     // 数据模板下载