[update 首页] 增加跳转条款高级搜索
This commit is contained in:
@@ -96,7 +96,8 @@ module.exports = {
|
||||
retrieval: {
|
||||
titleSearch: 'Title Search',
|
||||
fullSearch: 'Full-text Search',
|
||||
advancedSearch: 'Advanced Search'
|
||||
advancedSearch: 'Advanced Search',
|
||||
termSearch: 'Article Search'
|
||||
},
|
||||
// 列表部分
|
||||
tableList: {
|
||||
|
||||
@@ -96,7 +96,8 @@ module.exports = {
|
||||
retrieval: {
|
||||
titleSearch: '标题检索',
|
||||
fullSearch: '全文检索',
|
||||
advancedSearch: '高级检索'
|
||||
advancedSearch: '高级检索',
|
||||
termSearch: '条款检索'
|
||||
},
|
||||
// 列表部分
|
||||
tableList: {
|
||||
|
||||
@@ -13,7 +13,8 @@
|
||||
<div class="btn-box">
|
||||
<a-button type="primary" size="large" icon="search" @click="toSearchWindow('title')">{{ $t('dashboard.retrieval.titleSearch') }}</a-button>
|
||||
<a-button type="primary" size="large" icon="search" @click="toSearchWindow('fullText')">{{ $t('dashboard.retrieval.fullSearch') }}</a-button>
|
||||
<a-button type="primary" size="large" class="btn-ghost" ghost @click="toAdvancedSearch"><img :src="require('@/assets/image/icon/super-search.png')" alt='' class="btn-icon">{{ $t('dashboard.retrieval.advancedSearch') }}</a-button>
|
||||
<a-button type="primary" size="large" class="btn-ghost" ghost @click="toAdvancedSearch()"><img :src="require('@/assets/image/icon/super-search.png')" alt='' class="btn-icon">{{ $t('dashboard.retrieval.advancedSearch') }}</a-button>
|
||||
<a-button type="primary" size="large" class="btn-ghost" ghost @click="toAdvancedSearch(4)"><img :src="require('@/assets/image/icon/super-search.png')" alt='' class="btn-icon">{{ $t('dashboard.retrieval.termSearch') }}</a-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -55,9 +56,12 @@ export default {
|
||||
window.open(href, '_blank')
|
||||
},
|
||||
// 点击跳转到高级检索页
|
||||
toAdvancedSearch () {
|
||||
toAdvancedSearch (standardType) {
|
||||
const { href } = this.$router.resolve({
|
||||
path: '/advancedSearch'
|
||||
path: '/advancedSearch',
|
||||
query: {
|
||||
standardType
|
||||
}
|
||||
})
|
||||
window.open(href, '_blank')
|
||||
},
|
||||
|
||||
@@ -260,7 +260,7 @@ export default {
|
||||
],
|
||||
loading: false,
|
||||
toggleSearchStatus: true, // 检索条件的展开和收起,false收缩状态
|
||||
currStandardType: '1', // 1外部 3企标 4条款 5全部
|
||||
currStandardType: this.$route.query.standardType || '1', // 1外部 3企标 4条款 5全部
|
||||
standardTypeOptions: [
|
||||
// 全部
|
||||
{ label: this.$t('dashboard.advancedSearch.all'), value: '5' },
|
||||
|
||||
Reference in New Issue
Block a user