From 0f03522d5a541c26875c1279ba5b18ef59e933fe Mon Sep 17 00:00:00 2001
From: 王旭 <1377869194@qq.com>
Date: 星期四, 11 五月 2023 16:00:31 +0800
Subject: [PATCH] 树结构下拉框点击选中收回

---
 src/views/Archive/index.vue |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/views/Archive/index.vue b/src/views/Archive/index.vue
index 35cf831..5e0455f 100644
--- a/src/views/Archive/index.vue
+++ b/src/views/Archive/index.vue
@@ -93,6 +93,7 @@
             v-model="formInline.depName"
             :placeholder="$t('archiveObj.label3')"
             :popper-append-to-body="false"
+             ref="treeSelect"
           >
             <el-option
               :value="formInline.depcode"
@@ -1442,7 +1443,11 @@
       }
     };
   },
-
+  watch: {
+    "formInline.depName"() {
+      this.$refs.treeSelect.visible = false;
+    },
+  },
   mounted() {
     this.getDepTreeData();
     this.getCategorySelectData();

--
Gitblit v1.9.3