fix: 增加查询字段,需要等接口配合
This commit is contained in:
parent
746c671538
commit
ced8d97cf7
|
@ -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()
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue