liuQiang 1 년 전
부모
커밋
25da6b694b
5개의 변경된 파일14개의 추가작업 그리고 17개의 파일을 삭제
  1. 2 2
      src/views/department/MyFile.vue
  2. 2 0
      src/views/highSearch/HighSearch.vue
  3. 2 2
      src/views/myfile/MyFile.vue
  4. 6 11
      src/views/myjoin/MyJoin.vue
  5. 2 2
      src/views/publicment/MyFile.vue

+ 2 - 2
src/views/department/MyFile.vue

@@ -17,7 +17,7 @@
                     style="height: 75vh;overflow-y: auto;">
                     <div class="searchBox">
                         <div v-if="leftShowList === 2" style="width:100%">
-                            <el-input v-model="searchFire" @keyup.enter="fileBlur" class="searchFire" size="large"
+                            <el-input v-model="searchFire" @keyup.enter="fileBlur" @input="fileBlur" class="searchFire" size="large"
                                 placeholder="搜索文件夹" />
                             <el-icon class="SearchIcon" @click="fileBlur">
                                 <Search />
@@ -25,7 +25,7 @@
                         </div>
                          <div v-else style="width:100%">
                             <el-input v-model="searchFolderTree" @keyup.enter="folderBlur" class="searchFire" size="large"
-                                placeholder="搜索文件" />
+                                placeholder="搜索文件" />
                             <el-icon class="SearchIcon" @click="folderBlur">
                                 <Search />
                             </el-icon>

+ 2 - 0
src/views/highSearch/HighSearch.vue

@@ -131,6 +131,8 @@ onMounted(async () => {});
 
 const doSearch = async () => {
   if (!searchText.value) {
+    listData.value = []
+    noData.value = false
     return;
   }
   // console.log("searchText", searchText.value);

+ 2 - 2
src/views/myfile/MyFile.vue

@@ -17,7 +17,7 @@
                 <div style="height: 75vh;overflow-y: auto;">
                     <div class="searchBox">
                         <div v-if="leftShowList === 2" style="width:100%">
-                            <el-input v-model="searchFire" @keyup.enter="fileBlur" class="searchFire" size="large"
+                            <el-input v-model="searchFire" @keyup.enter="fileBlur" @input="fileBlur" class="searchFire" size="large"
                                 placeholder="搜索文件夹" />
                             <el-icon class="SearchIcon" @click="fileBlur">
                                 <Search />
@@ -25,7 +25,7 @@
                         </div>
                          <div v-else style="width:100%">
                             <el-input v-model="searchFolderTree" @keyup.enter="folderBlur" class="searchFire" size="large"
-                                placeholder="搜索文件" />
+                                placeholder="搜索文件" />
                             <el-icon class="SearchIcon" @click="folderBlur">
                                 <Search />
                             </el-icon>

+ 6 - 11
src/views/myjoin/MyJoin.vue

@@ -102,6 +102,7 @@ import archiveTray from "@/assets/images/archiveTray.png";
 import {documentation}from "@/api/biz/actor.js"
 import {getInfo}from "@/api/biz/info.js"
 import elTableInfiniteScroll from 'el-table-infinite-scroll'
+import {  setIcon } from "@/utils/index.js";
 export default {
     directives: {
         'el-table-infinite-scroll': elTableInfiniteScroll
@@ -221,17 +222,7 @@ export default {
             // console.log(data, e, 'tab');
         }
         function getImage(file) {
-            if (file === '.txt') {
-                return ImgFile.txt
-            } else if (file === '.xlxs' || file === '.docx') {
-                return ImgFile.xlxs
-            } else if (file === '.pptx') {
-                return ImgFile.pptx
-            } else if (file === '.word') {
-                return ImgFile.word
-            } else if (file === '.pdf') {
-                return ImgFile.pdf
-            }
+            return setIcon(file);
         }
         function formatFileSize(fileSize) {
             if (fileSize >= 1024 * 1024 * 1024) {
@@ -363,6 +354,10 @@ export default {
     background-color: #F5F7F9;
     position: relative;
 }
+.juli{
+    width: 22px;
+    height: 22px;
+}
 .preview {
   width: 100%;
   height: 100%;

+ 2 - 2
src/views/publicment/MyFile.vue

@@ -17,7 +17,7 @@
                     style="height: 75vh;overflow-y: auto;">
                     <div class="searchBox">
                         <div v-if="leftShowList === 2" style="width:100%">
-                            <el-input v-model="searchFire" @keyup.enter="fileBlur" class="searchFire" size="large"
+                            <el-input v-model="searchFire" @keyup.enter="fileBlur" @input="fileBlur" class="searchFire" size="large"
                                 placeholder="搜索文件夹" />
                             <el-icon class="SearchIcon" @click="fileBlur">
                                 <Search />
@@ -25,7 +25,7 @@
                         </div>
                          <div v-else style="width:100%">
                             <el-input v-model="searchFolderTree" @keyup.enter="folderBlur" class="searchFire" size="large"
-                                placeholder="搜索文件" />
+                                placeholder="搜索文件" />
                             <el-icon class="SearchIcon" @click="folderBlur">
                                 <Search />
                             </el-icon>