parent
f05c49232a
commit
445a2caab8
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<el-dialog title="选择商品" :visible.sync="dialogVisible" @open="resetHandle()">
|
<el-dialog title="选择商品" :visible.sync="dialogVisible" @open="resetHandle()" @close="reset">
|
||||||
<el-form :model="searhForm" inline>
|
<el-form :model="searhForm" inline>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="searhForm.name" placeholder="商品名称" @input="onInput"></el-input>
|
<el-input v-model="searhForm.name" placeholder="商品名称" @input="onInput"></el-input>
|
||||||
|
|
@ -93,6 +93,9 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
reset(){
|
||||||
|
this.$refs.table.clearSelection()
|
||||||
|
},
|
||||||
onInput: _.debounce(function (event) {//防抖请求
|
onInput: _.debounce(function (event) {//防抖请求
|
||||||
this.getTableData()
|
this.getTableData()
|
||||||
}, 500),
|
}, 500),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue