fix: 搜索后,点击查看已归档的任务,仍然显示这个搜索框
This commit is contained in:
parent
bed2e20a91
commit
88f3d3821e
@ -35,7 +35,7 @@
|
|||||||
</ETooltip>
|
</ETooltip>
|
||||||
</li>
|
</li>
|
||||||
<li :class="['project-icon', searchText!='' ? 'active' : '']">
|
<li :class="['project-icon', searchText!='' ? 'active' : '']">
|
||||||
<Tooltip :always="searchText!=''" @on-popper-show="searchFocus" theme="light">
|
<Tooltip :always="searchAlways" @on-popper-show="searchFocus" theme="light">
|
||||||
<Icon class="menu-icon" type="ios-search" @click="searchFocus" />
|
<Icon class="menu-icon" type="ios-search" @click="searchFocus" />
|
||||||
<div slot="content">
|
<div slot="content">
|
||||||
<Input v-model="searchText" ref="searchInput" :placeholder="$L('名称、描述...')" class="search-input" clearable/>
|
<Input v-model="searchText" ref="searchInput" :placeholder="$L('名称、描述...')" class="search-input" clearable/>
|
||||||
@ -537,6 +537,17 @@ export default {
|
|||||||
|
|
||||||
...mapGetters(['projectData', 'projectParameter', 'transforTasks']),
|
...mapGetters(['projectData', 'projectParameter', 'transforTasks']),
|
||||||
|
|
||||||
|
searchAlways() {
|
||||||
|
return !(!this.searchText
|
||||||
|
|| this.settingShow
|
||||||
|
|| this.userShow
|
||||||
|
|| this.inviteShow
|
||||||
|
|| this.transferShow
|
||||||
|
|| this.workflowShow
|
||||||
|
|| this.logShow
|
||||||
|
|| this.archivedTaskShow);
|
||||||
|
},
|
||||||
|
|
||||||
userWaitRemove() {
|
userWaitRemove() {
|
||||||
const {userids, useridbak} = this.userData;
|
const {userids, useridbak} = this.userData;
|
||||||
if (!userids) {
|
if (!userids) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user