|
@@ -28,6 +28,8 @@
|
|
|
range-separator="至"
|
|
|
start-placeholder="开始日期"
|
|
|
end-placeholder="结束日期"
|
|
|
+ format="yyyy-MM-dd"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
/>
|
|
|
</div>
|
|
|
<div class="filter-control">
|
|
@@ -140,7 +142,9 @@ const defaultListQuery = {
|
|
|
shopName: '', // 供应商名称
|
|
|
status: '', // 上下架状态 0 已上架 1 已下架
|
|
|
pageNum: 1,
|
|
|
- pageSize: 20
|
|
|
+ pageSize: 20,
|
|
|
+ startPvCreateTime: '',
|
|
|
+ endPvCreateTime: ''
|
|
|
}
|
|
|
export default {
|
|
|
name: 'AdvertisList',
|
|
@@ -157,7 +161,14 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
computed: {},
|
|
|
- watch: {},
|
|
|
+ watch: {
|
|
|
+ timesValue: {
|
|
|
+ handler() {
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ immediate: true
|
|
|
+ }
|
|
|
+ },
|
|
|
created() {
|
|
|
this.getList()
|
|
|
},
|
|
@@ -167,12 +178,12 @@ export default {
|
|
|
getList() {
|
|
|
this.listQuery.pageNum = 1
|
|
|
this.list = []
|
|
|
- if (this.time && this.time.length > 0) {
|
|
|
- this.listQuery.startTime = this.time[0]
|
|
|
- this.listQuery.endTime = this.time[1]
|
|
|
+ if (this.timesValue && this.timesValue.length > 0) {
|
|
|
+ this.listQuery.startPvCreateTime = this.timesValue[0]
|
|
|
+ this.listQuery.endPvCreateTime = this.timesValue[1]
|
|
|
} else {
|
|
|
- this.listQuery.startTime = ''
|
|
|
- this.listQuery.endTime = ''
|
|
|
+ this.listQuery.startPvCreateTime = ''
|
|
|
+ this.listQuery.endPvCreateTime = ''
|
|
|
}
|
|
|
this.getShopAdvertisingImage()
|
|
|
},
|