|
@@ -7,13 +7,13 @@
|
|
|
>
|
|
|
<crumbs
|
|
|
class="crumbs"
|
|
|
- v-if="!latestUsedSearchKey"
|
|
|
+ v-if="!searchKey"
|
|
|
:isDarkTheme="isDarkTheme"
|
|
|
:list="folderPath"
|
|
|
:rootName="$i18n.t(`gather.${materialTypeAlias}`)"
|
|
|
@click-path="onClickPath"
|
|
|
/>
|
|
|
- <div v-if="latestUsedSearchKey" class="crumbs">{{$i18n.t(`gather.${materialTypeAlias}`)}}</div>
|
|
|
+ <div v-if="searchKey" class="crumbs">{{$i18n.t(`gather.${materialTypeAlias}`)}}</div>
|
|
|
|
|
|
<div class="table">
|
|
|
<!-- <div class="table-head-row">
|
|
@@ -46,7 +46,7 @@
|
|
|
<div v-for="(item, i) in uploadStatusList" :key="item.uid">
|
|
|
<div
|
|
|
class="table-body-row"
|
|
|
- v-if="item.parentFolderId === currentFolderId"
|
|
|
+ v-if="item.parentFolderId === currentFolderId && !searchKey"
|
|
|
@click="onClickRow"
|
|
|
>
|
|
|
<!-- 如果已经上传成功 -->
|
|
@@ -230,6 +230,9 @@
|
|
|
<span
|
|
|
v-else-if="tableItemStructure.key === 'name'"
|
|
|
class="name"
|
|
|
+ :class="{
|
|
|
+ searchRes: latestUsedSearchKey,
|
|
|
+ }"
|
|
|
>
|
|
|
<div
|
|
|
class="name-inner ellipsis"
|
|
@@ -237,6 +240,12 @@
|
|
|
>
|
|
|
{{ item[tableItemStructure.key] }}
|
|
|
</div>
|
|
|
+ <div
|
|
|
+ v-if="latestUsedSearchKey"
|
|
|
+ class="parent-info"
|
|
|
+ >
|
|
|
+ {{$i18n.t('gather.dir')}} <span class="parent-name" @click.stop="onClickParentFolder(item)">{{item.dirId === 1 ? $i18n.t('gather.root_dir') : item.dirName}}</span>
|
|
|
+ </div>
|
|
|
</span>
|
|
|
<span
|
|
|
v-else
|
|
@@ -271,7 +280,7 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="btns">
|
|
|
- <button v-if="canUpload" class="ui-button upload-btn" @click="onClickUpload">
|
|
|
+ <button v-if="canUpload && !searchKey" class="ui-button upload-btn" @click="onClickUpload">
|
|
|
<span>{{ $i18n.t("gather.upload_material") }}</span>
|
|
|
<i
|
|
|
class="iconfont icon-material_prompt tool-tip-for-editor"
|
|
@@ -820,7 +829,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- > .name {
|
|
|
+ > .name:not(.searchRes) {
|
|
|
display: inline-block;
|
|
|
height: 100%;
|
|
|
width: 100%;
|
|
@@ -839,6 +848,25 @@ export default {
|
|
|
margin-left: 20px;
|
|
|
}
|
|
|
}
|
|
|
+ > .name.searchRes {
|
|
|
+ height: 100%;
|
|
|
+ width: 100%;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: flex-start;
|
|
|
+ line-height: initial;
|
|
|
+ > .name-inner {
|
|
|
+ flex: 0 0 auto;
|
|
|
+ display: inline-block;
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+ > .parent-info {
|
|
|
+ > .parent-name {
|
|
|
+ color: @color;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
> .name:not(.upload-status-wrap):hover {
|
|
|
> .name-inner {
|
|
|
width: 100%;
|