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" :value="item.value"
></el-option> ></el-option>
</el-select> </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"> <div class="search-condition">
<el-input <el-input
@keyup.native.enter="search" @keyup.native.enter="search"
@@ -37,7 +22,8 @@
placeholder="请输入关键词" placeholder="请输入关键词"
clearable clearable
></el-input> ></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> <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>
</div> </div>
@@ -93,10 +79,10 @@ export default {
computed: {}, computed: {},
watch: {}, watch: {},
methods: { methods: {
checkStateTypeFunc(data){ // checkStateTypeFunc(data){
this.checkStateType = data // this.checkStateType = data
this.$forceUpdate() // this.$forceUpdate()
}, // },
checkStateFunc(data){ checkStateFunc(data){
if(data === 'All'){ if(data === 'All'){
this.showType = true this.showType = true
@@ -104,13 +90,13 @@ export default {
this.showType = false this.showType = false
} }
}, },
search() { search(checkStateType) {
this.$router.push({ this.$router.push({
name: 'StandardSearch', name: 'StandardSearch',
params: { params: {
selectKey: this.checkState, selectKey: this.checkState,
searchValue: this.checkContent || undefined, searchValue: this.checkContent || undefined,
allType: this.checkStateType, allType: checkStateType,
} }
}) })
}, },