fix: 首页搜索按钮效果变更

This commit is contained in:
zyd
2022-06-06 23:43:38 +08:00
parent a6aa0ab96d
commit d3e84e8110
@@ -14,21 +14,6 @@
:value="item.value"
></el-option>
</el-select>
<el-select
v-model="checkStateType"
class="search-group-itemType"
placeholder="请选择"
@change="checkStateTypeFunc"
>
<el-option
v-for="item in jumpPageType"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</el-select>
<div class="search-condition">
<el-input
@keyup.native.enter="search"
@@ -37,7 +22,8 @@
placeholder="请输入关键词"
clearable
></el-input>
<el-button style="box-shadow:1px 1px 10px rgba(0,0,0,0.2);margin-left: 5px;font-size: 15px;" type="primary" @click="search">一般检索</el-button>
<el-button style="box-shadow:1px 1px 5px rgba(0,0,0,0.2);margin-left: 5px;font-size: 15px;" type="primary" @click="search('titleSearch')">一般检索(标题)</el-button>
<el-button style="box-shadow:1px 1px 50px rgba(0,0,0,0.2);margin-left: 5px;font-size: 15px;" type="primary" @click="search('allTextSearch')">一般检索(全文)</el-button>
<el-button style="box-shadow:1px 1px 10px rgba(0,0,0,0.2);margin-left: 5px;font-size: 15px;" type="primary" @click="seniorSearch">高级检索</el-button>
</div>
</div>
@@ -93,10 +79,10 @@ export default {
computed: {},
watch: {},
methods: {
checkStateTypeFunc(data){
this.checkStateType = data
this.$forceUpdate()
},
// checkStateTypeFunc(data){
// this.checkStateType = data
// this.$forceUpdate()
// },
checkStateFunc(data){
if(data === 'All'){
this.showType = true
@@ -104,13 +90,13 @@ export default {
this.showType = false
}
},
search() {
search(checkStateType) {
this.$router.push({
name: 'StandardSearch',
params: {
selectKey: this.checkState,
searchValue: this.checkContent || undefined,
allType: this.checkStateType,
allType: checkStateType,
}
})
},