whj 1 year ago
parent
commit
396e54aa26
1 changed files with 6 additions and 3 deletions
  1. 6 3
      src/views/check/checkjob/CheckJob.vue

+ 6 - 3
src/views/check/checkjob/CheckJob.vue

@@ -355,7 +355,9 @@ export default {
           dataIndex: 'startTime',
           checked: true,
           fixed: 'right',
-          width: '200px'
+          width: '200px',
+          sorter: (a, b) => new Date(a.startTime) - new Date(b.startTime)
+
         },
         {
           title: '实际执行日期',
@@ -365,7 +367,8 @@ export default {
           width: '200px',
           customRender: (text, record, index) => {
             return (text == null ? '暂无' : this.BaseTool.Date.formatter(text, this.BaseTool.Date.PICKER_NORM_DATE_PATTERN))
-          }
+          },
+          sorter: (a, b) => new Date(a.actualStartTime) - new Date(b.actualStartTime)
         },
         {
           title: '是否延期',
@@ -374,7 +377,7 @@ export default {
           fixed: 'right',
           width: '100px',
           customRender: (text, record, index) => {
-            return ((text === null || text === 0) ? '否' : '是')
+            return ((text === null || text === 0 || !text) ? '否' : '是')
           }
         },
         {