布局搜索中心
This commit is contained in:
@@ -23,7 +23,8 @@
|
||||
v-model="selectValueTwo"
|
||||
:maxLength="100"
|
||||
@keyup.enter.native="wholeOnSearch(selectValueTwo)"
|
||||
v-else-if="active === $t('whole')"
|
||||
v-else-if="active === $t('whole') || active === $t('problemKnowledgeBase')
|
||||
|| active === $t('monthlyReportRegulations')"
|
||||
class="inputSearch"
|
||||
:placeholder="$t('pleaseEnter')+$t('searchContent')"
|
||||
></a-input>
|
||||
@@ -33,18 +34,21 @@
|
||||
>{{$t('query')}}
|
||||
</a-button>
|
||||
<a-button class="textSearch"
|
||||
v-if="active === $t('whole')"
|
||||
v-if="active === $t('whole') || active === $t('problemKnowledgeBase')
|
||||
|| active === $t('monthlyReportRegulations')"
|
||||
@keyup.enter.native="wholeOnSearch(selectValueTwo)"
|
||||
@click="wholeOnSearch(selectValueTwo)"
|
||||
>{{$t('query')}}
|
||||
</a-button>
|
||||
<a-button class="textSearch"
|
||||
v-if="active === $t('whole') || active === $t('DocumentLibrary')"
|
||||
v-if="active === $t('whole') || active === $t('DocumentLibrary')
|
||||
|| active === $t('problemKnowledgeBase') || active === $t('monthlyReportRegulations')"
|
||||
@click="wholeTextSearch(selectValueTwo)"
|
||||
>{{$t('searchInResults')}}
|
||||
</a-button>
|
||||
<a-button class="textSearch"
|
||||
v-if="active === $t('whole') || active === $t('DocumentLibrary')"
|
||||
v-if="active === $t('whole') || active === $t('DocumentLibrary')
|
||||
|| active === $t('problemKnowledgeBase') || active === $t('monthlyReportRegulations')"
|
||||
@click="ResetSearch()"
|
||||
>{{$t('reset')}}
|
||||
</a-button>
|
||||
@@ -61,14 +65,18 @@
|
||||
<a-tab-pane :key="$t('whole')" :tab="$t('whole')"></a-tab-pane>
|
||||
<a-tab-pane :key="$t('DocumentLibrary')" :tab="$t('DocumentLibrary')" force-render>
|
||||
</a-tab-pane>
|
||||
<!-- <a-tab-pane :key="$t('KnowledgeDatabase')" :tab="$t('KnowledgeDatabase')"></a-tab-pane>-->
|
||||
<!-- <a-tab-pane :key="$t('DocumentComparisonLibrary')" :tab="$t('DocumentComparisonLibrary')"></a-tab-pane>-->
|
||||
<!-- <a-tab-pane :key="$t('weekly')" :tab="$t('weekly')"></a-tab-pane>-->
|
||||
<a-tab-pane :key="$t('problemKnowledgeBase')" :tab="$t('problemKnowledgeBase')" force-render>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane :key="$t('monthlyReportRegulations')" :tab="$t('monthlyReportRegulations')" force-render>
|
||||
</a-tab-pane>
|
||||
</a-tabs>
|
||||
</div>
|
||||
</div>
|
||||
<whole ref="wholeRef" :url="url" v-if="active === $t('whole')"/>
|
||||
<DocumentLibrary ref="DocumentLibraryRef" v-else-if="active === $t('DocumentLibrary')"/>
|
||||
<problemKnowledgeBase ref="problemKnowledgeBaseRef" v-else-if="active === $t('problemKnowledgeBase')"/>
|
||||
<monthlyReportRegulations ref="monthlyReportRegulationsRef"
|
||||
v-else-if="active === $t('monthlyReportRegulations')"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -78,13 +86,17 @@
|
||||
<script>
|
||||
import whole from './components/whole'
|
||||
import DocumentLibrary from './components/DocumentLibrary'
|
||||
import problemKnowledgeBase from './components/problemKnowledgeBase'
|
||||
import monthlyReportRegulations from './components/monthlyReportRegulations'
|
||||
import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage'
|
||||
|
||||
export default {
|
||||
name: 'searchCenter',
|
||||
components: {
|
||||
whole,
|
||||
DocumentLibrary
|
||||
DocumentLibrary,
|
||||
problemKnowledgeBase,
|
||||
monthlyReportRegulations
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -259,7 +271,7 @@
|
||||
}
|
||||
|
||||
::v-deep .input-group .ant-select-selection--single {
|
||||
height: 40px!important;
|
||||
height: 40px !important;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
|
||||
Reference in New Issue
Block a user