|
|
|
@ -20,7 +20,7 @@ |
|
|
|
<view v-for="(value, key) in filter[filter_key]" :key="key" v-if="key != 'name'"> |
|
|
|
<block v-if="key == 'search_value'"> |
|
|
|
<view class="filter-title">会员编号搜索</view> |
|
|
|
<input class="input-search" placeholder="请输入会员编号" :value="value" @blur="inputBlur(key, $event)" /> |
|
|
|
<input class="input-search" :focus="on_focus" placeholder="请输入会员编号" :value="value" @blur="inputBlur(key, $event)" /> |
|
|
|
</block> |
|
|
|
<block v-else> |
|
|
|
<view class="filter-title">{{ value.name }}</view> |
|
|
|
@ -64,12 +64,18 @@ |
|
|
|
show_filter: false, |
|
|
|
filter: this.productionObj(), |
|
|
|
filter_key: '', |
|
|
|
name: '最新' |
|
|
|
name: '最新', |
|
|
|
on_focus: false |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad(options){ |
|
|
|
console.log(this.filter) |
|
|
|
this.name = options.name || this.name; |
|
|
|
if(this.name == '搜索') { |
|
|
|
this.show_filter = true; |
|
|
|
this.filter_key = 'search'; |
|
|
|
this.on_focus = true; |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 引入数据,并序列化,避免数据引用 |
|
|
|
|