|
|
@@ -27,7 +27,8 @@ |
|
|
|
placeholder="请输入要搜索的文件名" |
|
|
|
@changeSearchContent="changeSearchContent" |
|
|
|
@hideSearchBar="hideSearchBar" |
|
|
|
@goToSearch="searchForFile"/> |
|
|
|
@goToSearch="searchForFile" |
|
|
|
@maxTextLengthArrived="maxTextLengthArrived"/> |
|
|
|
<div class="search-entry" @click.stop="isShowSearchBar = true" v-if="!isShowSearchBar"></div> |
|
|
|
</template> |
|
|
|
</app-header> |
|
|
@@ -60,6 +61,7 @@ |
|
|
|
@dragstart.native="onfileDragStart(file, $event)" |
|
|
|
draggable |
|
|
|
/> |
|
|
|
<div class="no-file-tips" v-if="searchWorkFileList && searchWorkFileList.length == 0">搜索不到与“{{searchContent}}”相关的文件</div> |
|
|
|
</div> |
|
|
|
<div class="list-group" v-else-if="currentBtnIndex == 1"> |
|
|
|
<FileItem |
|
|
@@ -81,6 +83,7 @@ |
|
|
|
@dragstart.native="onfileDragStart(file, $event)" |
|
|
|
draggable |
|
|
|
/> |
|
|
|
<div class="no-file-tips" v-if="searchCoopFileList && searchCoopFileList.length == 0">搜索不到与“{{searchContent}}”相关的文件</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@@ -628,6 +631,8 @@ export default { |
|
|
|
searchContent: '',//搜索的文件名称 |
|
|
|
searchWorkFileList: [],//搜索得到的工作文件列表 |
|
|
|
searchCoopFileList: [],//搜索得到的协作文件列表 |
|
|
|
|
|
|
|
isAllFileLoaded: false,//当前工作节点下的文件状态是否都加载完毕 |
|
|
|
}; |
|
|
|
}, |
|
|
|
mounted: function () { |
|
|
@@ -690,6 +695,13 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 搜索框字数超出35个字 |
|
|
|
maxTextLengthArrived() { |
|
|
|
this.$notify({ |
|
|
|
message: '请输入35个字之内的搜索内容', |
|
|
|
type: ["warning"], |
|
|
|
}) |
|
|
|
}, |
|
|
|
/** |
|
|
|
* 搜索文件 |
|
|
|
*/ |
|
|
@@ -1952,4 +1964,9 @@ export default { |
|
|
|
.out-wrap::-webkit-scrollbar-thumb:window-inactive { |
|
|
|
background-color: #adadad; |
|
|
|
} |
|
|
|
.no-file-tips { |
|
|
|
font-size: 22px; |
|
|
|
text-align: center; |
|
|
|
margin: 100px auto; |
|
|
|
} |
|
|
|
</style> |