From 4a6b0acd3fa30ef7c8e046b5e3eeec4d1323cf73 Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期四, 13 三月 2025 16:58:24 +0800
Subject: [PATCH] gundongtiao

---
 src/views/system/dept/index.vue |   39 +++++++++++++++++++++++++++++++++++----
 1 files changed, 35 insertions(+), 4 deletions(-)

diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue
index d71e42f..f89e885 100644
--- a/src/views/system/dept/index.vue
+++ b/src/views/system/dept/index.vue
@@ -12,7 +12,7 @@
             style="margin-bottom: 15px"
           />
         </div>
-        <div class="head-container">
+        <!-- <div class="head-container">
           <el-tree
             :data="deptOption"
             :props="defaultProps"
@@ -24,6 +24,21 @@
             highlight-current
             @node-click="handleNodeClick"
           />
+        </div> -->
+        <div class="scrollable-container">
+          <div class="content">
+            <el-tree
+              :data="deptOption"
+              :props="defaultProps"
+              :expand-on-click-node="false"
+              :filter-node-method="filterNode"
+              ref="tree"
+              node-key="id"
+              default-expand-all
+              highlight-current
+              @node-click="handleNodeClick"
+            />
+          </div>
         </div>
       </el-col>
       <el-col :span="20" :xs="24">
@@ -366,12 +381,16 @@
       </el-form>
 
       <div slot="footer" class="dialog-footer">
-
         <el-button @click="cancel">鍙� 娑�</el-button>
         <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
       </div>
       <!-- 鍦ㄧ埗缁勪欢涓� -->
-      <Packagese ref="aaa" :visible="showPackagese" @add="handleChanges" :selectedId="form.hisksid" />
+      <Packagese
+        ref="aaa"
+        :visible="showPackagese"
+        @add="handleChanges"
+        :selectedId="form.hisksid"
+      />
     </el-dialog>
   </div>
 </template>
@@ -509,7 +528,6 @@
   },
   methods: {
     handleQuerys() {
-
       this.showPackagese = true;
       if (this.form.hisksid) {
         this.$refs.aaa.list = [
@@ -750,3 +768,16 @@
 };
 </script>
 
+<style scoped>
+.scrollable-container {
+  width: 200px; /* 璁剧疆瀹瑰櫒鐨勫搴� */
+  height: 629px; /* 璁剧疆瀹瑰櫒鐨勯珮搴� */
+  overflow: auto; /* 鍏佽鍐呭婧㈠嚭鏃舵樉绀烘粴鍔ㄦ潯 */
+  border: 1px solid #ccc; /* 鍙�夛細娣诲姞杈规浠ユ洿濂藉湴鏄剧ず瀹瑰櫒 */
+  position: relative; /* 鍙�夛細浣垮鍣ㄥ唴鐨勭粷瀵瑰畾浣嶅厓绱犺兘澶熸纭樉绀� */
+}
+.content {
+  width: 600px; /* 璁剧疆鍐呭鐨勫搴︼紝浠ヨЕ鍙戞按骞虫粴鍔ㄦ潯 */
+  height: 1000px; /* 璁剧疆鍐呭鐨勯珮搴︼紝浠ヨЕ鍙戝瀭鐩存粴鍔ㄦ潯 */
+}
+</style>
\ No newline at end of file

--
Gitblit v1.8.0