首页
This commit is contained in:
@@ -2,26 +2,27 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="search-group">
|
<div class="search-group">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="selectKey"
|
v-model="checkState"
|
||||||
class="search-group-item"
|
class="search-group-item"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in jumpPage"
|
v-for="item in jumpPage"
|
||||||
:key="item.selectKey"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.selectKey"
|
:value="item.value"
|
||||||
></el-option>
|
></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
|
||||||
<div class="search-condition">
|
<div class="search-condition">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="keywords"
|
@keyup.native.enter="search"
|
||||||
|
v-model="checkContent">
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="请输入关键词"
|
placeholder="请输入关键词"
|
||||||
clearable
|
clearable
|
||||||
></el-input>
|
></el-input>
|
||||||
<el-button class="primary_button" type="primary">搜索</el-button>
|
<el-button class="primary_button" type="primary" @click="search">搜索</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -33,36 +34,50 @@ export default {
|
|||||||
mixins: [],
|
mixins: [],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
selectKey: '',
|
// 当前查询状态
|
||||||
keywords: '',
|
checkState: 'All',
|
||||||
|
// 查询内容
|
||||||
|
checkContent: '',
|
||||||
jumpPage: [
|
jumpPage: [
|
||||||
{
|
{
|
||||||
selectKey: '选项1',
|
label: '全部',
|
||||||
label: '国内外标准法规',
|
value: 'All'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
selectKey: '选项2',
|
label: '国内标准法规',
|
||||||
label: '研究报告',
|
value: 'stand'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '海外标准法规', // value没改
|
||||||
|
value: 'bussstand'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '国内外政策',
|
||||||
|
value: 'laws'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
selectKey: '选项3',
|
|
||||||
label: '企业标准',
|
label: '企业标准',
|
||||||
},
|
value: 'enterprise'
|
||||||
{
|
}
|
||||||
selectKey: '选项4',
|
|
||||||
label: '动态&通知',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
selectKey: '选项5',
|
|
||||||
label: '流程中心',
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
watch: {},
|
watch: {},
|
||||||
mounted() {},
|
methods: {
|
||||||
methods: {},
|
search() {
|
||||||
|
this.$router.push({
|
||||||
|
name: 'StandardSearch',
|
||||||
|
params: {
|
||||||
|
selectKey: this.checkState,
|
||||||
|
searchValue: this.checkContent || undefined
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted(){
|
||||||
|
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -43,12 +43,13 @@ export default {
|
|||||||
} )
|
} )
|
||||||
},
|
},
|
||||||
standForComments (item) {
|
standForComments (item) {
|
||||||
this.$router.push({
|
this.$store.commit('setDetailMap',this.$router.path)
|
||||||
name:'standardForComments',
|
this.$router.push({
|
||||||
params: {
|
name: 'consultationDetails',
|
||||||
id: item.id
|
query: {
|
||||||
}
|
item: item
|
||||||
},)
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -363,6 +363,10 @@ export default {
|
|||||||
mounted() {
|
mounted() {
|
||||||
//查询所有选项
|
//查询所有选项
|
||||||
this.queryOptions();
|
this.queryOptions();
|
||||||
|
let globalInputSearch = this.$route.params.searchValue
|
||||||
|
if (globalInputSearch !== 'allvalue') {
|
||||||
|
this.keywords = globalInputSearch
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
unmounted() {
|
unmounted() {
|
||||||
|
|||||||
Reference in New Issue
Block a user