lsc 2 months ago
parent
commit
55a7c3dbd2

+ 1 - 1
dist/index.html

@@ -32,7 +32,7 @@
       width: 100%;
       background: #e6eaf0;
       font-family: '黑体';
-    }</style><link href=./static/css/app.bccd9a513a2f3f54e88f1677b9f92aed.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.bc3479efe4e7d435ff02.js></script><script type=text/javascript src=./static/js/app.70a697c6bb149350ef81.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.eaa69649628d7861bde673486daeeef6.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.bc3479efe4e7d435ff02.js></script><script type=text/javascript src=./static/js/app.19594d401ef9dcb9e367.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.bccd9a513a2f3f54e88f1677b9f92aed.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.bccd9a513a2f3f54e88f1677b9f92aed.css.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.eaa69649628d7861bde673486daeeef6.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.eaa69649628d7861bde673486daeeef6.css.map


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


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.19594d401ef9dcb9e367.js.map


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


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.70a697c6bb149350ef81.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map


+ 10 - 0
src/App.vue

@@ -562,4 +562,14 @@ html::-webkit-scrollbar-thumb {
   box-sizing: border-box;
 }
 
+.file_mySelect .el-input {
+  width: 80px !important;
+}
+.file_mySelect  .el-input .el-input__inner{
+  height: 28px !important;
+}
+.file_mySelect .el-input__suffix{
+  display: flex;
+  align-items: center;
+}
 </style>

+ 21 - 4
src/components/pages/knowledge/components/relateFiles.vue

@@ -50,11 +50,13 @@
 
         </div>
       </div>
-      <div class="none_box" v-if="fileArray.length == 0">{{lang.nouploadFiles}}</div>
+      <div class="none_box" v-if="fileArray.length == 0" 
+            v-loading.body="isLoading"
+      >{{lang.nouploadFiles}}</div>
       <div
         class="f_box_file_list"
         v-else-if="fileArray.length"
-        v-loading.body="isLoading"
+        
       >
         <div class="list_file_box">
           <el-table
@@ -64,6 +66,8 @@
             style="width: 100%"
             @selection-change="handleSelectionChange"
             ref="myTable"
+            max-height="800px"
+            v-loading="isLoading"
             :row-key="row => row.id"
           >
             <el-table-column
@@ -141,11 +145,20 @@
         <el-pagination
           class="pageBox"
           style="margin-top: 10px"
-          layout="total, prev, pager, next"
+          layout="total, prev, pager, next,  slot"
           :page-size="limit"
           :total="total"
           @current-change="handleCurrentChange"
-        >
+          :page-sizes="[10, 20, 50, 100]"
+      >
+      <el-select v-model="limit" @change="handleSizeChange" class="file_mySelect">
+          <el-option
+              v-for="item in [10, 20, 50, 100]"
+              :key="item"
+              :label="item"
+              :value="item"
+              ></el-option>
+          </el-select>
         </el-pagination>
       </div>
     </div>
@@ -234,6 +247,10 @@ export default {
       this.page = val;
       this.getData();
     },
+    handleSizeChange(val){
+      this.limit = val
+      this.getData()
+    },
     serchFile() {
       this.page = 1;
       this.getData();

+ 15 - 1
src/components/pages/knowledge/fileBox.vue

@@ -93,6 +93,7 @@
           @selection-change="handleSelectionChange"
           :row-key="row => row.id"
           ref="myTable"
+          max-height="800px"
           @row-click="checkFile"
         >
           <el-table-column
@@ -232,11 +233,20 @@
       <el-pagination
         class="pageBox"
         style="margin-top: 10px"
-        layout="total,prev, pager, next"
+        layout="total,prev, pager, next,  slot"
         :page-size="limit"
         :total="total"
         @current-change="handleCurrentChange"
+        :page-sizes="[10, 20, 50, 100]"
       >
+      <el-select v-model="limit" @change="handleSizeChange" class="file_mySelect">
+          <el-option
+              v-for="item in [10, 20, 50, 100]"
+              :key="item"
+              :label="item"
+              :value="item"
+              ></el-option>
+          </el-select>
       </el-pagination>
       <div v-if="proVisible" class="mask">
         <div class="progressBox">
@@ -418,6 +428,10 @@ export default {
       this.page = val;
       this.getData();
     },
+    handleSizeChange(val){
+      this.limit = val
+      this.getData()
+    },
     getData() {
       let type = this.pid.split("/");
       this.isLoading = true;

+ 19 - 3
src/components/pages/knowledge/folder.vue

@@ -242,6 +242,7 @@
           border
           style="width: 100%"
           @selection-change="handleSelectionChange"
+          max-height="800px"
           :row-key="row => row.id"
         >
           <el-table-column
@@ -379,11 +380,20 @@
       <el-pagination
         class="pageBox"
         style="margin-top: 10px;"
-        layout="total, prev, pager, next"
-        :page-size="10"
+        layout="total, prev, pager, next,  slot"
+        :page-size="limit"
         :total="total"
         @current-change="handleCurrentChange"
+        :page-sizes="[10, 20, 50, 100]"
       >
+      <el-select v-model="limit" @change="handleSizeChange" class="file_mySelect">
+          <el-option
+              v-for="item in [10, 20, 50, 100]"
+              :key="item"
+              :label="item"
+              :value="item"
+              ></el-option>
+          </el-select>
       </el-pagination>
     </div>
     <el-dialog
@@ -557,6 +567,7 @@ export default {
       folderDescription: "",
       page: 1,
       total: 0,
+      limit: 10,
       tagLoading1: false,
       tagLoading2: false,
       tagLoading3: false,
@@ -654,6 +665,10 @@ export default {
       this.page = val;
       this.getData();
     },
+    handleSizeChange(val){
+      this.limit = val
+      this.getData()
+    },
     getData() {
       let type = this.pid.split("/");
       let id = this.userid;      
@@ -665,7 +680,7 @@ export default {
         class: this.check2,
         tag: type[0] == "0" ? this.check3 : this.user,
         page: this.page,
-        num: 10
+        num: this.limit
       };
       this.ajax
         .post(this.$store.state.fileApi + (type[0] == "0" ? "getFolderPage3" : "getFolderPageOpen"), [params])
@@ -907,6 +922,7 @@ export default {
   padding-bottom: 0 !important;
   box-sizing: border-box;
   position: relative;
+  overflow: auto;
 }
 
 .f_box_top {

+ 31 - 12
src/components/pages/knowledge/folderFileBox.vue

@@ -72,6 +72,7 @@
       <div v-show="fileType == 1" class="f_box_file_list" v-loading.body="isLoading">
         <div class="list_file_box">
           <el-table :data="fileArray" border style="width: 100%; cursor: pointer;"
+          max-height="800px"
             @selection-change="handleSelectionChange" ref="myTable" :row-key="row => row.id" @row-click="checkFile">
             <template #empty>
               <div class="customC">
@@ -81,30 +82,34 @@
                 <div style="height: 50px;line-height: 40px;">{{ lang.noDataContent }}</div>
               </div>
             </template>
-            <el-table-column type="selection" width="50px" :reserve-selection="true"></el-table-column>
-            <el-table-column prop="name" :label=lang.fileName show-overflow-tooltip min-width="15"></el-table-column>
+            <el-table-column type="selection" width="50px" :reserve-selection="true" fixed></el-table-column>
+            <el-table-column prop="name" :label=lang.fileName show-overflow-tooltip min-width="150px"></el-table-column>
             <el-table-column prop="folderName" :label=lang.folderBelongs show-overflow-tooltip
-              min-width="20"></el-table-column>
-            <el-table-column prop="username" :label=lang.owner show-overflow-tooltip width="120"></el-table-column>
+              min-width="150px"></el-table-column>
+            <el-table-column prop="username" :label=lang.owner show-overflow-tooltip width="100px"></el-table-column>
 
-            <el-table-column :label=lang.sliceClassification width="120px">
+            <el-table-column :label=lang.sliceClassification width="100px">
               <template slot-scope="scope">
                 {{ getState(scope.row.ingestionStatus) }}
               </template>
             </el-table-column>
-            <el-table-column :label=lang.graphExtraction width="120px">
+            <el-table-column :label=lang.graphExtraction width="100px">
               <template slot-scope="scope">
                 {{ getState2(scope.row.extractionStatus) }}
               </template>
             </el-table-column>
-            <el-table-column :label=lang.fileType show-overflow-tooltip width="120">
+            <el-table-column :label=lang.fileType show-overflow-tooltip width="100px">
               <template slot-scope="scope">
                 {{ scope.row.documentType ? scope.row.documentType : "-" }}
               </template>
             </el-table-column>
             <!-- <el-table-column label="公开状态" show-overflow-tooltip width="80px"></el-table-column> -->
-            <el-table-column prop="time" :label=lang.uploadTime show-overflow-tooltip min-width="20"></el-table-column>
-            <el-table-column :label=lang.operate width="100px">
+            <el-table-column prop="time" :label="lang.uploadTime" show-overflow-tooltip width="100px">
+              <template slot-scope="scope">
+                {{ scope.row.time }}
+              </template>
+            </el-table-column>
+            <el-table-column :label=lang.operate width="100px"  fixed="right">
               <template slot-scope="scope">
                 <el-popover placement="bottom-end" trigger="hover" visible-arrow popper-class="custom-popover"
                   width="100px">
@@ -183,8 +188,18 @@
             </el-table-column>
           </el-table>
         </div>
-        <el-pagination class="pageBox" style="margin-top: 10px" layout="total, prev, pager, next" :page-size="limit"
-          :total="total" @current-change="handleCurrentChange">
+        <el-pagination class="pageBox" style="margin-top: 10px" layout="total, prev, pager, next, slot" :page-size="limit"
+          :total="total" @current-change="handleCurrentChange"
+          :page-sizes="[10, 20, 50, 100]"
+      >
+      <el-select v-model="limit" @change="handleSizeChange" class="file_mySelect">
+          <el-option
+              v-for="item in [10, 20, 50, 100]"
+              :key="item"
+              :label="item"
+              :value="item"
+              ></el-option>
+          </el-select>
         </el-pagination>
         <div v-if="proVisible" class="mask">
           <div class="progressBox">
@@ -366,6 +381,10 @@ export default {
       this.page = val;
       this.getData();
     },
+    handleSizeChange(val){
+      this.limit = val
+      this.getData()
+    },
     getData() {
       this.isLoading = true;
       let params = {
@@ -1256,7 +1275,7 @@ export default {
 }
 
 .list_file_box>>>.el-table__header-wrapper {
-  margin-bottom: 10px !important;
+  /* margin-bottom: 10px !important; */
 }
 
 .list_file_box>>>.el-table__row {

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