Commit a6f130c9 by cwq0219

修改

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