Commit 0ee3ccac by 胡悦

Merge branch 'master' of 192.168.3.233:glsx-web/glsx-oss-merchant-data

2 parents 977a2105 445ad711
...@@ -83,7 +83,10 @@ ...@@ -83,7 +83,10 @@
type="daterange" type="daterange"
range-separator="至" range-separator="至"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期"> end-placeholder="结束日期"
value-format="yyyy-MM-dd HH:mm:ss"
:default-time="['00:00:00', '23:59:59']"
>
</gl-date-picker> </gl-date-picker>
</gl-form-item> </gl-form-item>
</gl-form> </gl-form>
...@@ -120,8 +123,8 @@ export default { ...@@ -120,8 +123,8 @@ export default {
this.eventBus.$emit('reset') this.eventBus.$emit('reset')
this.times = [] this.times = []
resetSearch(this.searchParams) resetSearch(this.searchParams)
// this.loadingGetList()
} }
this.loadingGetList()
} }
}, },
data() { data() {
...@@ -205,7 +208,7 @@ export default { ...@@ -205,7 +208,7 @@ export default {
this.groupId = params.groupId this.groupId = params.groupId
// this.searchParams.groupId = params.groupId // this.searchParams.groupId = params.groupId
}) })
this.loadingGetList() // this.loadingGetList()
this.getMerchantType() this.getMerchantType()
this.eventBus = this.$root.eventBus this.eventBus = this.$root.eventBus
}, },
...@@ -226,8 +229,8 @@ export default { ...@@ -226,8 +229,8 @@ export default {
}, },
getList() { getList() {
if (this.times.length) { if (this.times.length) {
this.searchParams.startTime = this.times[0].format('yyyy-MM-dd HH:mm:ss') this.searchParams.startTime = this.times[0]
this.searchParams.endTime = this.times[1].format('yyyy-MM-dd HH:mm:ss') this.searchParams.endTime = this.times[1]
} }
const params = this.getParams() const params = this.getParams()
params.groupId = this.groupId params.groupId = this.groupId
......
...@@ -76,10 +76,11 @@ ...@@ -76,10 +76,11 @@
<gl-date-picker <gl-date-picker
v-model="merchantSearch.times" v-model="merchantSearch.times"
type="daterange" type="daterange"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd HH:mm:ss"
range-separator="至" range-separator="至"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期"> end-placeholder="结束日期"
:default-time="['00:00:00', '23:59:59']">
</gl-date-picker> </gl-date-picker>
</gl-col> </gl-col>
</gl-form-item> </gl-form-item>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!