From a48bd04b2616e7fc2d95062ece5c840edb1d59c4 Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: 星期日, 29 五月 2022 10:28:00 +0800
Subject: [PATCH] 升级unplugin-auto-import到最新版本0.8.5
---
src/views/system/dept/index.vue | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue
index 090384e..7df4b61 100644
--- a/src/views/system/dept/index.vue
+++ b/src/views/system/dept/index.vue
@@ -97,11 +97,13 @@
<el-row>
<el-col :span="24" v-if="form.parentId !== 0">
<el-form-item label="涓婄骇閮ㄩ棬" prop="parentId">
- <tree-select
- v-model:value="form.parentId"
- :options="deptOptions"
- :objMap="{ value: 'deptId', label: 'deptName', children: 'children' }"
+ <el-tree-select
+ v-model="form.parentId"
+ :data="deptOptions"
+ :props="{ value: 'deptId', label: 'deptName', children: 'children' }"
+ value-key="deptId"
placeholder="閫夋嫨涓婄骇閮ㄩ棬"
+ check-strictly
/>
</el-form-item>
</el-col>
@@ -222,9 +224,9 @@
handleQuery();
}
/** 鏂板鎸夐挳鎿嶄綔 */
-async function handleAdd(row) {
+function handleAdd(row) {
reset();
- await listDept().then(response => {
+ listDept().then(response => {
deptOptions.value = proxy.handleTree(response.data, "deptId");
});
if (row != undefined) {
@@ -242,9 +244,9 @@
});
}
/** 淇敼鎸夐挳鎿嶄綔 */
-async function handleUpdate(row) {
+function handleUpdate(row) {
reset();
- await listDeptExcludeChild(row.deptId).then(response => {
+ listDeptExcludeChild(row.deptId).then(response => {
deptOptions.value = proxy.handleTree(response.data, "deptId");
});
getDept(row.deptId).then(response => {
--
Gitblit v1.9.3