|
@@ -17,7 +17,12 @@
|
|
>
|
|
>
|
|
<i slot="prefix" class="el-input__icon el-icon-search"></i>
|
|
<i slot="prefix" class="el-input__icon el-icon-search"></i>
|
|
<div class="fixed-top">
|
|
<div class="fixed-top">
|
|
- <el-radio-group v-model="searchType" size="mini" @input="searchApi(current_search)">
|
|
|
|
|
|
+ <el-radio-group
|
|
|
|
+ v-model="searchType"
|
|
|
|
+ size="mini"
|
|
|
|
+ @input="searchApi(current_search)"
|
|
|
|
+ v-if="!search_txt"
|
|
|
|
+ >
|
|
<el-radio-button label="0">全部</el-radio-button>
|
|
<el-radio-button label="0">全部</el-radio-button>
|
|
<el-radio-button label="1">收藏</el-radio-button>
|
|
<el-radio-button label="1">收藏</el-radio-button>
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
@@ -57,6 +62,18 @@ export default {
|
|
style: {
|
|
style: {
|
|
type: String,
|
|
type: String,
|
|
default:''
|
|
default:''
|
|
|
|
+ },
|
|
|
|
+ defaultVal: {
|
|
|
|
+ type: String,
|
|
|
|
+ default: ''
|
|
|
|
+ },
|
|
|
|
+ defaultOpt: {
|
|
|
|
+ type: Array,
|
|
|
|
+ default: () => []
|
|
|
|
+ },
|
|
|
|
+ params: { //额外的请求参
|
|
|
|
+ type:Object,
|
|
|
|
+ default: () =>{}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
@@ -92,7 +109,8 @@ export default {
|
|
dataBaseInterface.targetSearchByPage({
|
|
dataBaseInterface.targetSearchByPage({
|
|
KeyWord:query,
|
|
KeyWord:query,
|
|
CurrentIndex: page,
|
|
CurrentIndex: page,
|
|
- EdbCollect: this.searchType
|
|
|
|
|
|
+ EdbCollect: this.searchType,
|
|
|
|
+ ...this.params
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if(res.Ret !== 200) return
|
|
if(res.Ret !== 200) return
|
|
|
|
|