Commit a6f130c9 by cwq0219

修改

1 parent e277dcf0
...@@ -101,7 +101,7 @@ export default { ...@@ -101,7 +101,7 @@ export default {
border: true, border: true,
stripe: true, stripe: true,
align: 'center', align: 'center',
// height: parseInt(this.$client_height() - 140), height: parseInt(this.$client_height() - 140),
data: [], data: [],
column: [ column: [
{ {
......
...@@ -80,14 +80,13 @@ ...@@ -80,14 +80,13 @@
</gl-form-item> </gl-form-item>
<gl-form-item label='加入分组时间:'> <gl-form-item label='加入分组时间:'>
<gl-date-picker <gl-date-picker
v-model="times" v-model="times"
type="daterange" type="daterange"
range-separator="至" range-separator="至"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
value-format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd"
:default-time="['00:00:00', '23:59:59']" :picker-options="pickerOptions"
:picker-options="pickerOptions"
> >
</gl-date-picker> </gl-date-picker>
</gl-form-item> </gl-form-item>
...@@ -162,7 +161,7 @@ export default { ...@@ -162,7 +161,7 @@ export default {
border: true, border: true,
stripe: true, stripe: true,
align: 'center', align: 'center',
// height: parseInt(this.$client_height() - 140), height: parseInt(this.$client_height() - 140),
data: [], data: [],
column: [ column: [
{ {
...@@ -234,8 +233,8 @@ export default { ...@@ -234,8 +233,8 @@ export default {
}, },
getList() { getList() {
if (this.times.length) { if (this.times.length) {
this.searchParams.startTime = this.times[0] this.searchParams.startTime = this.times[0] + ' 00:00:00'
this.searchParams.endTime = this.times[1] this.searchParams.endTime = this.times[1] + ' 23:59:59'
} }
const params = this.getParams() const params = this.getParams()
params.groupId = this.groupId params.groupId = this.groupId
......
...@@ -76,11 +76,10 @@ ...@@ -76,11 +76,10 @@
<gl-date-picker <gl-date-picker
v-model="merchantSearch.times" v-model="merchantSearch.times"
type="daterange" type="daterange"
value-format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd"
range-separator="至" range-separator="至"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
:default-time="['00:00:00', '23:59:59']"
:picker-options="pickerOptions"> :picker-options="pickerOptions">
</gl-date-picker> </gl-date-picker>
</gl-col> </gl-col>
...@@ -111,7 +110,7 @@ export default { ...@@ -111,7 +110,7 @@ export default {
channelList: [], channelList: [],
pickerOptions: { pickerOptions: {
disabledDate(time) { disabledDate(time) {
return time.getTime() > Date.now() return time.getTime() >= Date.now()
} }
} }
} }
...@@ -155,8 +154,8 @@ export default { ...@@ -155,8 +154,8 @@ export default {
}, },
handleComfrim() { handleComfrim() {
if (this.merchantSearch.times) { if (this.merchantSearch.times) {
this.merchantSearch.startTime = this.merchantSearch.times[0] this.merchantSearch.startTime = this.merchantSearch.times[0] + ' 00:00:00'
this.merchantSearch.endTime = this.merchantSearch.times[1] this.merchantSearch.endTime = this.merchantSearch.times[1] + ' 23:59:59'
delete this.merchantSearch.times delete this.merchantSearch.times
} }
this.eventBus.$emit('reset') this.eventBus.$emit('reset')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!