From 2bd9b32aa6378ff6a841780628b844a42dbd8f01 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期五, 31 十月 2025 16:39:29 +0800
Subject: [PATCH] 下载采集器功能

---
 src/views/standard/standardLibrary/index.vue |   51 ++++++++++++++++++---------------------------------
 1 files changed, 18 insertions(+), 33 deletions(-)

diff --git a/src/views/standard/standardLibrary/index.vue b/src/views/standard/standardLibrary/index.vue
index e36597d..9f43cfc 100644
--- a/src/views/standard/standardLibrary/index.vue
+++ b/src/views/standard/standardLibrary/index.vue
@@ -19,38 +19,28 @@
           scrollbar-width: none;
         " @node-click="handleNodeClick"
                @node-drop="handleDrop">
-        <div slot-scope="{ node, data }" class="custom-tree-node">
-          <el-row style="width: 100%">
-            <el-col :class="{ sort: node.level > 3 }" :span="19" :title="data.label" style="text-align: left">
-              <span>
-                <i :class="`node_i ${data.children != undefined
-                  ? data.code === '[1]'
-                    ? 'el-icon-folder-opened'
-                    : 'el-icon-folder'
-                  : 'el-icon-tickets'
-                  }`"></i>
-                {{ data.label }}
-              </span>
-            </el-col>
-            <el-col v-if="
-              checkPermi(['standard:standardLibrary:delStandardTree']) &&
-              (node.data.children === null ||
-                node.data.children === undefined)
-            " :span="2" style="text-align: right">
-              <el-button size="mini" type="text" @click.stop="editTreeName(node.data)">
+        <div slot-scope="{ node, data }" class="custom-tree-node" style="width: calc(100% - 15px)">
+          <div :title="data.label" style="display: flex;align-items: center;flex-wrap: nowrap;flex-direction: row;justify-content: space-between;">
+            <div style="width: calc(100% - 50px);white-space: nowrap;text-overflow: ellipsis;"
+                 :style="`overflow:${(node.data.children === null || node.data.children === undefined)?'clip':'visible'}`"
+            >
+              <i :class="`node_i ${data.children != undefined
+                ? data.code === '[1]'
+                  ? 'el-icon-folder-opened'
+                  : 'el-icon-folder'
+                : 'el-icon-tickets'
+                }`"></i>
+              {{data.label}}
+            </div>
+            <div v-if="(node.data.children === null || node.data.children === undefined)" style="width:50px">
+              <el-button v-if="checkPermi(['standard:standardLibrary:delStandardTree'])" size="mini" type="text" @click.stop="editTreeName(node.data)">
                 <i class="el-icon-edit"></i>
               </el-button>
-            </el-col>
-            <el-col v-if="
-              checkPermi(['standard:standardLibrary:delStandardTree']) &&
-              (node.data.children === null ||
-                node.data.children === undefined)
-            " :span="2" style="text-align: right">
-              <el-button size="mini" type="text" @click.stop="remove(node, data)">
+              <el-button style="margin-left: 0" size="mini" v-if="checkPermi(['standard:standardLibrary:delStandardTree'])" type="text" @click.stop="remove(node, data)">
                 <i class="el-icon-delete"></i>
               </el-button>
-            </el-col>
-          </el-row>
+            </div>
+          </div>
         </div>
       </el-tree>
     </div>
@@ -1336,11 +1326,6 @@
 
 >>>.is-disabled .el-textarea__inner {
   background: rgba(0, 0, 0, 0.05) !important;
-}
-
->>>.el-table__body-wrapper::-webkit-scrollbar {
-  height: 14px;
-  /* 璁剧疆婊氬姩鏉″搴� */
 }
 </style>
 <style scoped>

--
Gitblit v1.9.3