修复:添加商品名称输入框和清空按钮,并更新查询参数
This commit is contained in:
parent
47d2149c0d
commit
f8f8d85272
|
@ -2,6 +2,15 @@
|
|||
<div>
|
||||
<el-card class="!border-none mb-4" shadow="never">
|
||||
<el-form class="mb-[-16px]" :model="queryParams" inline>
|
||||
<el-form-item label="商品名称" prop="store_name">
|
||||
<el-input
|
||||
class="w-[280px]"
|
||||
v-model="queryParams.store_name"
|
||||
@keydown.enter="resetPage"
|
||||
clearable
|
||||
placeholder="请输入商品名称"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="门店" prop="store_id">
|
||||
<el-select
|
||||
v-model="queryParams.store_id"
|
||||
|
@ -151,7 +160,8 @@ const queryParams = reactive({
|
|||
start_time: moment(startEndTime.value[0]).format('YYYY-MM-DD') + ' 00:00:00',
|
||||
end_time: moment(startEndTime.value[1]).format('YYYY-MM-DD') + ' 23:59:59',
|
||||
is_group: '',
|
||||
store_id: ''
|
||||
store_id: '',
|
||||
store_name: ''
|
||||
})
|
||||
const changeStartEndTime = () => {
|
||||
if (startEndTime.value[0] && startEndTime.value[1]) {
|
||||
|
|
Loading…
Reference in New Issue