修复物料监控下料时间筛选参数
This commit is contained in:
@@ -41,11 +41,11 @@
|
||||
<el-form-item :label="$t(key('finish_time'))" prop="start_time">
|
||||
<el-date-picker
|
||||
v-model="search.start_time"
|
||||
type="datetimerange"
|
||||
type="daterange"
|
||||
range-separator="-"
|
||||
:start-placeholder="$t(key('start_time'))"
|
||||
:end-placeholder="$t(key('end_time'))"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
value-format="yyyy-MM-dd"
|
||||
style="width:330px"
|
||||
/>
|
||||
</el-form-item>
|
||||
@@ -166,8 +166,10 @@ export default {
|
||||
workingsubclass: this.search.workingsubclass || undefined
|
||||
}
|
||||
if (Array.isArray(this.search.start_time) && this.search.start_time.length === 2) {
|
||||
params.start_time = this.search.start_time[0]
|
||||
params.end_time = this.search.start_time[1]
|
||||
params.start_time = [
|
||||
`${this.search.start_time[0]} 00:00:00`,
|
||||
`${this.search.start_time[1]} 23:59:59`
|
||||
]
|
||||
}
|
||||
return params
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user