diff --git a/src/components/Task.vue b/src/components/Task.vue index f972b39..02320ef 100644 --- a/src/components/Task.vue +++ b/src/components/Task.vue @@ -66,47 +66,109 @@ export default { { colKey: 'operatorName', title: '操作员', + width: 80, }, { colKey: 'publishTime', title: '发布时间', - cell: (h, { row }) => moment(row.publishTime).format('YYYY-MM-DD'), + width: 190, + cell: (h, { row }) => + moment(row.publishTime).format('YYYY-MM-DD HH:mm'), }, { colKey: 'nuclearStationName', title: '核电站名称', ellipsis: true, + width: 300, }, { colKey: 'nuclearCoreName', title: '核反应堆', + width: 120, }, { colKey: 'status', title: '任务状态', + width: 120, cell: (h, { row }) => { if (row.status == 0) { return ( - this.startTask(row.id)}> - 开始任务 - + //
this.startTask(row.id)} + // > + // 开始任务 + //
+
+ + + + + + 未开始 +
) } else if (row.status == 1) { - return 进行中 + return
进行中
} else if (row.status == 2) { - return 继续任务 + return
继续任务
} else { - return 已完成 + return ( +
+ + + + + + 已完成 +
+ ) } }, }, { colKey: 'startTime', title: '开始时间', + width: 190, + cell: (h, { row }) => { + return row.startTime + ? moment(row.startTime).format('YYYY-MM-DD HH:mm') + : '---' + }, }, { colKey: 'endTime', title: '完成时间', + width: 190, + cell: (h, { row }) => { + return row.endTime + ? moment(row.endTime).format('YYYY-MM-DD HH:mm') + : '---' + }, }, { title: '操作', @@ -219,7 +281,88 @@ export default { } -