zhangjie 5 жил өмнө
parent
commit
43416ba8f7

BIN
public/temps/用户导入模版.xlsx


+ 3 - 1
src/modules/base/views/UserEdit.vue

@@ -144,7 +144,9 @@ export default {
       }
       this.user = userRes.account;
       this.modalForm = this.$objAssign(this.modalForm, this.user);
-      this.modalForm.courseId = this.modalForm.courseId.split(",");
+      this.modalForm.courseId = this.user.courseId
+        ? this.modalForm.courseId.split(",")
+        : [];
       this.getCourseList();
     },
     async getCourseList() {

+ 1 - 1
src/modules/base/views/UserManage.vue

@@ -57,7 +57,7 @@
           >
           </upload-button>
           <el-button icon="icon icon-download-act">
-            <a :href="downloadUrl" download="用户导入模板.xlx"
+            <a :href="downloadUrl" download="用户导入模板.xlsx"
               >用户导入模板下载</a
             >
           </el-button>