Commit 07d4e53f authored by 张锡奇's avatar 张锡奇

upload

parent bf726ef5
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</select> </select>
</div> </div>
<div :class="{_input:true,radius:!typeList.select}" v-if="typeList.input"> <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> <i class='iconfont icon-close' id="close" v-if="inputValue" @click='clearInputValue'></i>
</div> </div>
</div> </div>
...@@ -87,6 +87,10 @@ export default { ...@@ -87,6 +87,10 @@ export default {
} }
}, },
methods:{ methods:{
keyDown(e){
this.search.searchvalue = this.inputValue;
this.global.$emit('searchData');
},
searchData(e,type){ searchData(e,type){
let dateList = this.btns.map(x=>Util.getDate(x)); let dateList = this.btns.map(x=>Util.getDate(x));
let endDate = Util.dateFormat(new Date(),'yyyy-MM-dd'); 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