From ab3df692b9a04bfb9ec36cd5284dd521e88ebdeb Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: 星期一, 13 六月 2022 21:48:56 +0800
Subject: [PATCH] 增加对空字符串参数的过滤

---
 src/views/system/user/index.vue |   19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index ce053c0..da3a501 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -8,7 +8,7 @@
                   v-model="deptName"
                   placeholder="璇疯緭鍏ラ儴闂ㄥ悕绉�"
                   clearable
-                  prefix-icon="el-icon-search"
+                  prefix-icon="Search"
                   style="margin-bottom: 20px"
                />
             </div>
@@ -19,6 +19,7 @@
                   :expand-on-click-node="false"
                   :filter-node-method="filterNode"
                   ref="deptTreeRef"
+                  highlight-current
                   default-expand-all
                   @node-click="handleNodeClick"
                />
@@ -207,11 +208,13 @@
                </el-col>
                <el-col :span="12">
                   <el-form-item label="褰掑睘閮ㄩ棬" prop="deptId">
-                     <tree-select
-                        v-model:value="form.deptId"
-                        :options="deptOptions"
+                     <el-tree-select
+                        v-model="form.deptId"
+                        :data="deptOptions"
+                        :props="{ value: 'id', label: 'label', children: 'children' }"
+                        value-key="id"
                         placeholder="璇烽�夋嫨褰掑睘閮ㄩ棬"
-                        :objMap="{ value: 'id', label: 'label', children: 'children' }"
+                        check-strictly
                      />
                   </el-form-item>
                </el-col>
@@ -382,7 +385,7 @@
   // 璁剧疆涓婁紶鐨勮姹傚ご閮�
   headers: { Authorization: "Bearer " + getToken() },
   // 涓婁紶鐨勫湴鍧�
-  url: import.meta.env.VITE_APP_BASE_API + "system/user/importData"
+  url: import.meta.env.VITE_APP_BASE_API + "/system/user/importData"
 });
 // 鍒楁樉闅愪俊鎭�
 const columns = ref([
@@ -539,7 +542,7 @@
 const handleFileSuccess = (response, file, fileList) => {
   upload.open = false;
   upload.isUploading = false;
-  proxy.$refs["uploadRef"].clearFiles();
+  proxy.$refs["uploadRef"].handleRemove(file);
   proxy.$alert("<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + response.msg + "</div>", "瀵煎叆缁撴灉", { dangerouslyUseHTMLString: true });
   getList();
 };
@@ -588,7 +591,7 @@
     roleOptions.value = response.roles;
     open.value = true;
     title.value = "娣诲姞鐢ㄦ埛";
-    form.password.value = initPassword.value;
+    form.value.password = initPassword.value;
   });
 };
 /** 淇敼鎸夐挳鎿嶄綔 */

--
Gitblit v1.9.3