From 6f35ca70caf02e1c2b7dbab32794c1cc1f5dbf60 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期四, 24 十月 2024 11:15:47 +0800
Subject: [PATCH] 测试完成

---
 src/views/system/user/index.vue |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index b5c2840..19c4bf8 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -871,9 +871,11 @@
     submitForm: function () {
       this.form.hospInfo = JSON.stringify(this.form.deptCodes);
       this.form.deptInfo = JSON.stringify(this.form.wardCodes);
+      if (this.form.deptCodes.length)
       this.form.deptCodes = this.form.deptCodes.map(
         (subArr) => subArr[subArr.length - 1]
       );
+      if (this.form.wardCodes.length)
       this.form.wardCodes = this.form.wardCodes.map(
         (subArr) => subArr[subArr.length - 1]
       );
@@ -977,7 +979,7 @@
     /** 涓嬭浇妯℃澘鎿嶄綔 */
     importTemplate() {
       this.download(
-        "system/user/importTemplate",
+        "smartor/import/getImportPatTemplate",
         {},
         `user_template_${new Date().getTime()}.xlsx`
       );

--
Gitblit v1.9.3