Commit 6cdf2710 authored by godwithdh's avatar godwithdh
parents 6b4f48b7 07d4e53f
......@@ -8,7 +8,7 @@
</select>
</div>
<div :class="{_input:true,radius:!typeList.select}" v-if="typeList.input">
<input class="input" v-model="inputValue" :placeholder="placeholder" v-on:input="changeInput"/>
<input class="input" v-model="inputValue" :placeholder="placeholder" @keyup.13="keyDown($event)" @blur="keyDown"/>
<i class='iconfont icon-close' id="close" v-if="inputValue" @click='clearInputValue'></i>
</div>
</div>
......@@ -87,6 +87,10 @@ export default {
}
},
methods:{
keyDown(e){
this.search.searchvalue = this.inputValue;
this.global.$emit('searchData');
},
searchData(e,type){
let dateList = this.btns.map(x=>Util.getDate(x));
let endDate = Util.dateFormat(new Date(),'yyyy-MM-dd');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment