From 1391041a2c7c8328e6b39b5e4137d7ec88613471 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Wed, 14 Jul 2021 14:31:04 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../home1/components/searchGroup/index.vue | 61 ++++++++++++------- .../components/solicitopinions/index.vue | 13 ++-- .../searchCenter/pages/standardSearch.vue | 4 ++ 3 files changed, 49 insertions(+), 29 deletions(-) diff --git a/src/pages/home1/components/searchGroup/index.vue b/src/pages/home1/components/searchGroup/index.vue index ee628b2be..72691d218 100644 --- a/src/pages/home1/components/searchGroup/index.vue +++ b/src/pages/home1/components/searchGroup/index.vue @@ -2,26 +2,27 @@ @@ -33,36 +34,50 @@ export default { mixins: [], data() { return { - selectKey: '', - keywords: '', + // 当前查询状态 + checkState: 'All', + // 查询内容 + checkContent: '', jumpPage: [ { - selectKey: '选项1', - label: '国内外标准法规', + label: '全部', + value: 'All' }, { - selectKey: '选项2', - label: '研究报告', + label: '国内标准法规', + value: 'stand' + }, + { + label: '海外标准法规', // value没改 + value: 'bussstand' + }, + { + label: '国内外政策', + value: 'laws' }, { - selectKey: '选项3', label: '企业标准', - }, - { - selectKey: '选项4', - label: '动态&通知', - }, - { - selectKey: '选项5', - label: '流程中心', - }, + value: 'enterprise' + } ], } }, computed: {}, watch: {}, - mounted() {}, - methods: {}, + methods: { + search() { + this.$router.push({ + name: 'StandardSearch', + params: { + selectKey: this.checkState, + searchValue: this.checkContent || undefined + } + }) + }, + }, + mounted(){ + + }, } diff --git a/src/pages/home1/components/solicitopinions/index.vue b/src/pages/home1/components/solicitopinions/index.vue index 2da7e6647..e6279110f 100644 --- a/src/pages/home1/components/solicitopinions/index.vue +++ b/src/pages/home1/components/solicitopinions/index.vue @@ -43,12 +43,13 @@ export default { } ) }, standForComments (item) { - this.$router.push({ - name:'standardForComments', - params: { - id: item.id - } - },) + this.$store.commit('setDetailMap',this.$router.path) + this.$router.push({ + name: 'consultationDetails', + query: { + item: item + } + }) }, }, } diff --git a/src/pages/searchCenter/pages/standardSearch.vue b/src/pages/searchCenter/pages/standardSearch.vue index 62876a7b3..04ef5ace5 100644 --- a/src/pages/searchCenter/pages/standardSearch.vue +++ b/src/pages/searchCenter/pages/standardSearch.vue @@ -363,6 +363,10 @@ export default { mounted() { //查询所有选项 this.queryOptions(); + let globalInputSearch = this.$route.params.searchValue + if (globalInputSearch !== 'allvalue') { + this.keywords = globalInputSearch + } }, unmounted() {