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