Commit ce47631d by jack

修复bug

1 parent 687daa0b
......@@ -4,6 +4,7 @@
class="clearfix search-form"
:model="formModel"
:size="size"
@submit.native.prevent
>
<el-form-item
v-for="(item, index) in formList"
......@@ -17,6 +18,7 @@
:type="item.inputType || 'text'"
:placeholder="item.placeholder || '请输入'"
:readonly="item.readonly || false"
@keyup.enter.native="onInput"
></el-input>
</template>
<template v-else-if="item.type === 'select'">
......@@ -73,6 +75,11 @@ export default {
type: Array,
default: () => []
}
},
methods:{
onInput(e){
this.$emit('input',e)
}
}
}
</script>
......
<template>
<div class="system-container">
<!-- <button @click="open()">创建</button>
<button @click="add()">添加数据</button>
<button @click="read()">读取数据</button> -->
<div class="container">
<search-form
class="searchTop border-shadow"
:formModel="searchForm"
:formList="vehicleTypeFormList"
@input="onInput"
>
<span class="inline-b" slot="form-slot">
<el-button
......@@ -240,19 +238,10 @@ export default {
this.$Common.confirmDialog(tipData);
},
// open
open(){
creatIndexDb();
//监听回车搜索
onInput(){
this.$refs.searchButton.$el.click();
},
add(){
addItem()
},
read(){
getItem()
}
},
};
</script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!