feat: There is no way the, 搜索中心优化

This commit is contained in:
super_liu
2022-05-24 14:13:32 +08:00
parent dcac840800
commit a707908045
2 changed files with 12 additions and 1 deletions
@@ -20,6 +20,7 @@
v-model="checkStateType" v-model="checkStateType"
class="search-group-itemType" class="search-group-itemType"
placeholder="请选择" placeholder="请选择"
@change="checkStateTypeFunc"
> >
<el-option <el-option
v-for="item in jumpPageType" v-for="item in jumpPageType"
@@ -93,6 +94,10 @@ export default {
computed: {}, computed: {},
watch: {}, watch: {},
methods: { methods: {
checkStateTypeFunc(data){
this.checkStateType = data
this.$forceUpdate()
},
checkStateFunc(data){ checkStateFunc(data){
if(data === 'All'){ if(data === 'All'){
this.showType = true this.showType = true
@@ -358,7 +358,7 @@
}, },
data () { data () {
return { return {
selectType: 'titleSearch', selectType: '',
externalStatus:'', externalStatus:'',
itermsConditionsTitle1: '', itermsConditionsTitle1: '',
itermsConditionsTitle2: '', itermsConditionsTitle2: '',
@@ -2690,6 +2690,12 @@
} }
}, },
mounted () { mounted () {
let selectType = this.$route.params.allType
if(selectType !== undefined && selectType !== null && selectType !== ''){
this.selectType = selectType
}else {
this.selectType = 'titleSearch'
}
let external = localStorage.getItem("external"); let external = localStorage.getItem("external");
if(external !== undefined && external !== null){ if(external !== undefined && external !== null){
this.externalStatus = external this.externalStatus = external