Commit 8155f41c authored by honghy's avatar honghy Committed by wux

【后台-会员等级】“启用时间”问题

parent 6bcc79ea
......@@ -20,9 +20,9 @@
<el-form-item :label="$t('启用时间')">
<el-date-picker
v-model="dateRangeCreateTime"
type="daterange"
type="datetimerange"
value-format="yyyy-MM-dd HH:mm:ss"
:start-placeholder="$t('开始日期')"
value-format="yyyy-MM-dd"
:end-placeholder="$t('结束日期')"
>
</el-date-picker>
......@@ -320,13 +320,10 @@ export default {
})
},
handleQuery() {
debugger
this.queryParams.pageNo = 1
let params = { ...this.queryParams }
this.addDateRange(this.queryParams, [
this.dateRangeCreateTime[0] ? this.dateRangeCreateTime[0] + ' 00:00:00' : undefined,
this.dateRangeCreateTime[1] ? this.dateRangeCreateTime[1] + ' 23:59:59' : undefined,
])
this.addBeginAndEndTime(params, this.dateRangeCreateTime, 'Time', false);
getMemberLevelList(params).then((res) => {
this.loading = false
this.memberLevelList = res.data.list
......@@ -335,7 +332,7 @@ export default {
},
handleQueryPagination() {
let params = { ...this.queryParams }
this.addBeginAndEndTime(params, this.dateRangeCreateTime, "createTime", false)
this.addBeginAndEndTime(params, this.dateRangeCreateTime, "Time", false)
getMemberLevelList(params).then((res) => {
this.loading = false
this.memberLevelList = res.data.list
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment