Browse Source

更新知识库

yangg 9 months ago
parent
commit
47a39c8cbd

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/chunk-37fb2d65.61bdb979.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/chunk-af29f6b0.c6080a4f.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/chunk-b5e03698.65b6e7c2.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.7ec06b61.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-37fb2d65.88cba919.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-7325a61e.fd11432e.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-af29f6b0.cb931d9a.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-b5e03698.5f6dd900.js


+ 1 - 1
src/views/knowledgeMenu/category/knowledgeSet.vue

@@ -837,7 +837,7 @@ export default {
                 // Continue checking
                 // Continue checking
                 this.analysisStatusCheckers[row.id] = setTimeout(
                 this.analysisStatusCheckers[row.id] = setTimeout(
                   checkStatus,
                   checkStatus,
-                  5000 + Math.random() * 5000
+                  15000
                 );
                 );
               }
               }
             } else {
             } else {

+ 32 - 13
src/views/knowledgeMenu/index.scss

@@ -1,6 +1,8 @@
 .ledge_box{
 .ledge_box{
-  .data-search{
-      padding:20px 10px 0px 10px;
+  .data-search {
+    display: flex;
+    justify-content: flex-end;
+    padding: 20px 30px 0px 30px;
   }
   }
   .data-list{
   .data-list{
       padding: 10px;
       padding: 10px;
@@ -36,22 +38,38 @@
             clear: both
             clear: both
         }
         }
         .card_box{
         .card_box{
-         
+          position: relative;
           padding: 20px;
           padding: 20px;
+          
           .header{
           .header{
-              display: flex;
-              justify-content: space-between;
-              align-items: center;
+            position: absolute;
+            top: 10px;
+            right: 10px;
+            z-index: 10;
+          }
+          .header_right {
+            cursor: pointer;
+            z-index: 2000; // 确保图标可点击
+            padding-right: 20px;
           }
           }
+          .content {
+            padding-top: 30px; // 为header腾出空间
+          }
+  
         }
         }
 
 
-        .card-col:hover {
+        .el-card:hover {
           /* 鼠标悬停时的更强烈阴影 */
           /* 鼠标悬停时的更强烈阴影 */
           box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2);
           box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2);
         }
         }
 
 
-        .card-col{
-          border-radius: 10px;
+        ::v-deep .custom-popover {
+          z-index: 3000 !important; // 增加 z-index
+        }
+        
+        
+        .el-card{
+         
           margin-bottom: 30px;
           margin-bottom: 30px;
           /* 初始状态的阴影 */
           /* 初始状态的阴影 */
           box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
           box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
@@ -62,7 +80,7 @@
           .card_box{
           .card_box{
             
             
             
             
-            border-radius: 10px;
+            
             height: 235px;
             height: 235px;
               .box_content{
               .box_content{
                 font-family: Arial, Helvetica, sans-serif;
                 font-family: Arial, Helvetica, sans-serif;
@@ -72,6 +90,7 @@
                   height: 100%;
                   height: 100%;
                   .content{
                   .content{
                     margin-top: -50px;
                     margin-top: -50px;
+                    padding-top: 50px;
                       font-size: 22px;
                       font-size: 22px;
                       line-height: 32px;
                       line-height: 32px;
                       font-weight: 600;
                       font-weight: 600;
@@ -92,7 +111,7 @@
                       }
                       }
                       .content_file{
                       .content_file{
                         font-size: 11px;
                         font-size: 11px;
-                        line-height: 16px;
+                        line-height: 14px;
                         
                         
                         display: flex;
                         display: flex;
                         .file{
                         .file{
@@ -100,7 +119,7 @@
                           display: flex;
                           display: flex;
                           flex-direction: column;
                           flex-direction: column;
                           align-items: center;                      
                           align-items: center;                      
-                          margin-right: 10px;
+                          margin-right: 5px;
                           p{
                           p{
                             margin: 0;
                             margin: 0;
                           }
                           }
@@ -111,7 +130,7 @@
                     display: flex;
                     display: flex;
                     justify-content: space-between;
                     justify-content: space-between;
                       font-size: 12px;
                       font-size: 12px;
-                      
+                      margin-top: 15px;
                       color: #999999;
                       color: #999999;
                       vertical-align: middle;
                       vertical-align: middle;
                   }
                   }

+ 56 - 24
src/views/knowledgeMenu/knowledgeList.vue

@@ -50,26 +50,34 @@
                       style="width: 34px; height: 34px"
                       style="width: 34px; height: 34px"
                     /> -->
                     /> -->
                   </div>
                   </div>
-                  <el-popover placement="bottom" trigger="hover">
-                    <el-button
-                      type="success"
-                      icon="el-icon-edit"
-                      @click="editInfo(item)"
-                      >编辑</el-button
-                    >
-                    <el-button
-                      type="danger"
-                      icon="el-icon-delete"
-                      @click="delect(item)"
-                      >删除</el-button
-                    >
-                    <div class="header_right" slot="reference">
-                      <svg-icon
-                        icon-class="sand"
-                        style="width: 24px; height: 30px"
-                      />
-                    </div>
-                  </el-popover>
+                  <el-popover
+        placement="bottom"
+        trigger="click"
+        popper-class="custom-popover"
+      >
+        <div>
+          <el-button
+            type="success"
+            icon="el-icon-edit"
+            @click.stop="editInfo(item)"
+          >编辑</el-button>
+          <el-button
+            type="danger"
+            icon="el-icon-delete"
+            @click.stop="delect(item)"
+          >删除</el-button>
+        </div>
+        <div
+          class="header_right"
+          slot="reference"
+          @click.stop
+        >
+          <svg-icon
+            icon-class="sand"
+            style="width: 24px; height: 30px"
+          />
+        </div>
+      </el-popover>
                 </div>
                 </div>
                 <div class="content">
                 <div class="content">
                   <p style="margin: 0">{{ item.name }}</p>
                   <p style="margin: 0">{{ item.name }}</p>
@@ -78,7 +86,7 @@
                     <div class="file">
                     <div class="file">
                       <svg-icon
                       <svg-icon
                       icon-class="file"
                       icon-class="file"
-                      style="width: 32px; height: 32px; "
+                        style="width: 36px; height: 36px; "
                     />
                     />
                     <p>WORD</p>
                     <p>WORD</p>
                     <p>{{ item.word_count }}</p>
                     <p>{{ item.word_count }}</p>
@@ -86,7 +94,7 @@
                     <div class="file">
                     <div class="file">
                       <svg-icon
                       <svg-icon
                       icon-class="file"
                       icon-class="file"
-                      style="width: 32px; height: 32px; "
+                     style="width: 36px; height: 36px; "
                     />
                     />
                     <p>EXCEL</p>
                     <p>EXCEL</p>
                     <p>{{ item.excel_count }}</p>
                     <p>{{ item.excel_count }}</p>
@@ -94,7 +102,7 @@
                     <div class="file">
                     <div class="file">
                       <svg-icon
                       <svg-icon
                       icon-class="file"
                       icon-class="file"
-                      style="width: 32px; height: 32px; "
+                      style="width: 36px; height: 36px; "
                     />
                     />
                     <p>PDF</p>
                     <p>PDF</p>
                     <p>{{ item.pdf_count }}</p>
                     <p>{{ item.pdf_count }}</p>
@@ -314,12 +322,36 @@ export default {
 };
 };
 </script>
 </script>
   <style lang="scss" scoped>
   <style lang="scss" scoped>
-::v-deep .el-card {
+
+.el-card{
+   /* 鼠标悬停时的更强烈阴影 */
+   box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2);
   border-radius: 10px;
   border-radius: 10px;
 }
 }
+
+.el-row {
+  width:95%;
+  margin-left: 30px;
+}
+::v-deep .el-popover.custom-popover {
+  z-index: 3000 !important;
+  
+  .el-button {
+    display: block;
+    margin: 5px 0;
+    width: 100%;
+  }
+  ::v-deep .el-card {
+  
+  overflow: visible !important; // 确保popover不被截断
+}
 ::v-deep .el-col-offset-1 {
 ::v-deep .el-col-offset-1 {
   margin-left: 2%;
   margin-left: 2%;
 }
 }
+::v-deep .custom-popover {
+  z-index: 3000 !important;
+}
+}
 @import "./index.scss";
 @import "./index.scss";
 </style>
 </style>
   
   

Some files were not shown because too many files changed in this diff