Parcourir la source

保养管理查询时间优化

il y a 2 ans
Parent
commit
11a3018e6e
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 4 2
      src/views/check/checkjob/CheckJob.vue

+ 4 - 2
src/views/check/checkjob/CheckJob.vue

@@ -507,8 +507,10 @@ export default {
     },
     handleOk () {
       this.visible = true
-      this.queryParam.searchStartTime = this.queryParam.searchStartTime ? this.BaseTool.Date.formatter(this.queryParam.searchStartTime, this.BaseTool.Date.PICKER_NORM_DATETIME_PATTERN) : null
-      this.queryParam.searchEndTime = this.queryParam.searchEndTime ? this.BaseTool.Date.formatter(this.queryParam.searchEndTime, this.BaseTool.Date.PICKER_NORM_DATETIME_PATTERN) : null
+      console.log(11)
+      console.log(this.queryParam.searchEndTime)
+      this.queryParam.searchStartTime = this.queryParam.searchStartTime ? this.BaseTool.Date.formatter(this.queryParam.searchStartTime, this.BaseTool.Date.PICKER_NORM_DATE_PATTERN) + ' 00:00:01' : null
+      this.queryParam.searchEndTime = this.queryParam.searchEndTime ? this.BaseTool.Date.formatter(this.queryParam.searchEndTime, this.BaseTool.Date.PICKER_NORM_DATE_PATTERN) + ' 23:59:59' : null
       this.$refs.table.refresh()
     },
     onSelectChange (selectedRowKeys, selectedRows) {