fix: 增加查询字段,需要等接口配合

This commit is contained in:
lzhizhao 2025-06-10 14:33:17 +08:00
parent 746c671538
commit ced8d97cf7
1 changed files with 40 additions and 3 deletions

View File

@ -22,6 +22,23 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="商品名称">
<el-input
v-model="formInline.name"
placeholder="商品名称"
></el-input>
</el-form-item>
<el-form-item label="预售时间">
<el-date-picker
@change="changeValueOne"
value-format="yyyy-MM-dd HH:mm:ss"
v-model="valueOne"
type="datetimerange"
start-placeholder="开始日期"
end-placeholder="结束日期"
>
</el-date-picker>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="getList">查询</el-button> <el-button type="primary" @click="getList">查询</el-button>
<el-button type="primary" @click="Reset">重置</el-button> <el-button type="primary" @click="Reset">重置</el-button>
@ -126,11 +143,15 @@ export default {
components: { viewDetails }, components: { viewDetails },
data() { data() {
return { return {
valueOne: [],
formInline: { formInline: {
group: '', group: '',
shopId: '', shopId: '',
pageNumber: 1, pageNumber: 1,
pageSize: 10 pageSize: 10,
name: '',
beginDate: '',
endDate: ''
}, },
statusList: [ statusList: [
{ {
@ -162,11 +183,24 @@ export default {
this.formInline = { this.formInline = {
group: '0', group: '0',
// marketId: this.marketId, // marketId: this.marketId,
shopId: this.shopId shopId: this.shopId,
name: '',
beginDate: '',
endDate: ''
} }
this.getList() this.getList()
}, },
methods: { methods: {
changeValueOne(e) {
console.log(e)
if (e) {
this.formInline.beginDate = e[0]
this.formInline.endDate = e[1]
} else {
this.formInline.beginDate = ''
this.formInline.endDate = ''
}
},
getList() { getList() {
// //
this.$api.mer_admin this.$api.mer_admin
@ -183,7 +217,10 @@ export default {
Reset() { Reset() {
this.formInline = { this.formInline = {
group: '0', group: '0',
shopId: this.shopId shopId: this.shopId,
name: '',
beginDate: '',
endDate: ''
} }
this.getList() this.getList()
}, },