首页
This commit is contained in:
@@ -2,26 +2,27 @@
|
||||
<template>
|
||||
<div class="search-group">
|
||||
<el-select
|
||||
v-model="selectKey"
|
||||
v-model="checkState"
|
||||
class="search-group-item"
|
||||
placeholder="请选择"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in jumpPage"
|
||||
:key="item.selectKey"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.selectKey"
|
||||
:value="item.value"
|
||||
></el-option>
|
||||
</el-select>
|
||||
|
||||
<div class="search-condition">
|
||||
<el-input
|
||||
v-model="keywords"
|
||||
@keyup.native.enter="search"
|
||||
v-model="checkContent">
|
||||
type="text"
|
||||
placeholder="请输入关键词"
|
||||
clearable
|
||||
></el-input>
|
||||
<el-button class="primary_button" type="primary">搜索</el-button>
|
||||
<el-button class="primary_button" type="primary" @click="search">搜索</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -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(){
|
||||
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -363,6 +363,10 @@ export default {
|
||||
mounted() {
|
||||
//查询所有选项
|
||||
this.queryOptions();
|
||||
let globalInputSearch = this.$route.params.searchValue
|
||||
if (globalInputSearch !== 'allvalue') {
|
||||
this.keywords = globalInputSearch
|
||||
}
|
||||
|
||||
},
|
||||
unmounted() {
|
||||
|
||||
Reference in New Issue
Block a user