fix: 增加查询字段,需要等接口配合
This commit is contained in:
parent
746c671538
commit
ced8d97cf7
|
@ -22,6 +22,23 @@
|
|||
</el-option>
|
||||
</el-select>
|
||||
</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-button type="primary" @click="getList">查询</el-button>
|
||||
<el-button type="primary" @click="Reset">重置</el-button>
|
||||
|
@ -126,11 +143,15 @@ export default {
|
|||
components: { viewDetails },
|
||||
data() {
|
||||
return {
|
||||
valueOne: [],
|
||||
formInline: {
|
||||
group: '',
|
||||
shopId: '',
|
||||
pageNumber: 1,
|
||||
pageSize: 10
|
||||
pageSize: 10,
|
||||
name: '',
|
||||
beginDate: '',
|
||||
endDate: ''
|
||||
},
|
||||
statusList: [
|
||||
{
|
||||
|
@ -162,11 +183,24 @@ export default {
|
|||
this.formInline = {
|
||||
group: '0',
|
||||
// marketId: this.marketId,
|
||||
shopId: this.shopId
|
||||
shopId: this.shopId,
|
||||
name: '',
|
||||
beginDate: '',
|
||||
endDate: ''
|
||||
}
|
||||
this.getList()
|
||||
},
|
||||
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() {
|
||||
//根据店铺查询
|
||||
this.$api.mer_admin
|
||||
|
@ -183,7 +217,10 @@ export default {
|
|||
Reset() {
|
||||
this.formInline = {
|
||||
group: '0',
|
||||
shopId: this.shopId
|
||||
shopId: this.shopId,
|
||||
name: '',
|
||||
beginDate: '',
|
||||
endDate: ''
|
||||
}
|
||||
this.getList()
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue