|
@@ -120,7 +120,8 @@
|
|
|
</ElTableColumn>
|
|
</ElTableColumn>
|
|
|
<ElTableColumn prop="successRate" label="发送成功率" align="center" />
|
|
<ElTableColumn prop="successRate" label="发送成功率" align="center" />
|
|
|
<ElTableColumn prop="createdAt" label="创建时间" :formatter="timeFormatter" width="150" />
|
|
<ElTableColumn prop="createdAt" label="创建时间" :formatter="timeFormatter" width="150" />
|
|
|
- <ElTableColumn prop="updatedAt" label="结束时间" :formatter="pauseTimeFormatter" width="150" />
|
|
|
|
|
|
|
+ <ElTableColumn prop="startedAt" label="开始时间" :formatter="startedTimeFormatter" width="150" />
|
|
|
|
|
+ <ElTableColumn prop="updatedAt" label="结束时间" :formatter="updatedTimeFormatter" width="150" />
|
|
|
</PagingTable>
|
|
</PagingTable>
|
|
|
<EditDialog
|
|
<EditDialog
|
|
|
class="task-edit-dialog"
|
|
class="task-edit-dialog"
|
|
@@ -290,7 +291,14 @@ onMounted(() => {
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
-const pauseTimeFormatter = (row, column, value, index) => {
|
|
|
|
|
|
|
+const startedTimeFormatter = (row, column, value, index) => {
|
|
|
|
|
+ if (row.status !== 'idle') {
|
|
|
|
|
+ return timeFormatter(row, column, value, index);
|
|
|
|
|
+ }
|
|
|
|
|
+ return '';
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+const updatedTimeFormatter = (row, column, value, index) => {
|
|
|
if (row.status === 'completed') {
|
|
if (row.status === 'completed') {
|
|
|
return timeFormatter(row, column, value, index);
|
|
return timeFormatter(row, column, value, index);
|
|
|
}
|
|
}
|