From 7067723946f837d0468814c28fe4971b7c331d11 Mon Sep 17 00:00:00 2001
From: liudong <liudong>
Date: 星期六, 24 八月 2024 20:12:28 +0800
Subject: [PATCH] 知识库列表修改

---
 src/views/dmx/knowledgeLib/edit.vue                |   24 ++++++-----
 src/views/dmx/knowledgeLib/index.vue               |   56 +++++++++++++++------------
 src/views/sessionManager/components/updataFile.vue |    1 
 3 files changed, 44 insertions(+), 37 deletions(-)

diff --git a/src/views/dmx/knowledgeLib/edit.vue b/src/views/dmx/knowledgeLib/edit.vue
index 50da19f..64957a6 100644
--- a/src/views/dmx/knowledgeLib/edit.vue
+++ b/src/views/dmx/knowledgeLib/edit.vue
@@ -1,15 +1,17 @@
 <template>
-  <a-button
-    type="text"
-    v-hasPermi="'/kb/rename'"
-    :disabled="props.item.run == '1'"
-    @click="handleClick"
-    size="small"
-  >
-    <template #icon>
-      <icon-edit />
-    </template>
-  </a-button>
+  <a-tooltip content="閲嶅懡鍚�">
+    <a-button
+      type="text"
+      v-hasPermi="'/kb/rename'"
+      :disabled="props.item.run == '1'"
+      @click="handleClick"
+      size="small"
+    >
+      <template #icon>
+        <icon-edit />
+      </template>
+    </a-button>
+  </a-tooltip>
   <a-modal
     v-model:visible="visible"
     title="閲嶅懡鍚�"
diff --git a/src/views/dmx/knowledgeLib/index.vue b/src/views/dmx/knowledgeLib/index.vue
index 8bae1eb..cebcfe3 100644
--- a/src/views/dmx/knowledgeLib/index.vue
+++ b/src/views/dmx/knowledgeLib/index.vue
@@ -464,17 +464,19 @@
                     </div>
                   </template>
                   <template #action="{ record }">
-                    <a-button
-                      type="text"
-                      :disabled="record.run == '1'"
-                      @click="handleClick(record)"
-                      v-hasPermi="'/kb/data_update'"
-                      size="small"
-                    >
-                      <template #icon>
-                        <icon-tool />
-                      </template>
-                    </a-button>
+                    <a-tooltip content="瑙f瀽鏂规硶">
+                      <a-button
+                        type="text"
+                        :disabled="record.run == '1'"
+                        @click="handleClick(record)"
+                        v-hasPermi="'/kb/data_update'"
+                        size="small"
+                      >
+                        <template #icon>
+                          <icon-tool />
+                        </template>
+                      </a-button>
+                    </a-tooltip>
                     <edit
                       :item="record"
                       v-hasPermi="'/kb/rename'"
@@ -485,28 +487,32 @@
                       type="warning"
                       @ok="deleteItem(record)"
                     >
+                      <a-tooltip content="鍒犻櫎">
+                        <a-button
+                          type="text"
+                          size="small"
+                          :disabled="record.run == '1'"
+                          v-hasPermi="'/kb/data_delete'"
+                        >
+                          <template #icon>
+                            <icon-delete />
+                          </template>
+                        </a-button>
+                      </a-tooltip>
+                    </a-popconfirm>
+                    <a-tooltip content="涓嬭浇">
                       <a-button
                         type="text"
                         size="small"
+                        v-hasPermi="'/kb/data_download'"
                         :disabled="record.run == '1'"
-                        v-hasPermi="'/kb/data_delete'"
+                        @click="onDownloadDocument(record)"
                       >
                         <template #icon>
-                          <icon-delete />
+                          <icon-download />
                         </template>
                       </a-button>
-                    </a-popconfirm>
-                    <a-button
-                      type="text"
-                      size="small"
-                      v-hasPermi="'/kb/data_download'"
-                      :disabled="record.run == '1'"
-                      @click="onDownloadDocument(record)"
-                    >
-                      <template #icon>
-                        <icon-download />
-                      </template>
-                    </a-button>
+                    </a-tooltip>
 
                     <!-- <a-button
                       type="text"
diff --git a/src/views/sessionManager/components/updataFile.vue b/src/views/sessionManager/components/updataFile.vue
index 59d6d29..65892da 100644
--- a/src/views/sessionManager/components/updataFile.vue
+++ b/src/views/sessionManager/components/updataFile.vue
@@ -8,7 +8,6 @@
       type="text"
       style="border-radius: 24px"
       @click="visibleChange"
-      :disabled="!activeSessionId"
     >
       <icon-attachment
         size="28"

--
Gitblit v1.8.0