Merge remote-tracking branch 'origin/test_多平台' into test
This commit is contained in:
@ -234,6 +234,8 @@ export default {
|
|||||||
return <span>{record.operator?.name || record.operator?.mobile}</span>;
|
return <span>{record.operator?.name || record.operator?.mobile}</span>;
|
||||||
} else if (column.dataIndex === 'created_at') {
|
} else if (column.dataIndex === 'created_at') {
|
||||||
return exactFormatTime(record.created_at, 'YYYY-MM-DD HH:mm:ss', 'YYYY-MM-DD HH:mm:ss');
|
return exactFormatTime(record.created_at, 'YYYY-MM-DD HH:mm:ss', 'YYYY-MM-DD HH:mm:ss');
|
||||||
|
} else if (column.dataIndex === 'fail_number') {
|
||||||
|
return <span class={`${record.fail_number > 0 ? 'color-#F64B31' : ''}`}>{formatTableField(column, record, true)}</span>;
|
||||||
} else {
|
} else {
|
||||||
return formatTableField(column, record, true);
|
return formatTableField(column, record, true);
|
||||||
}
|
}
|
||||||
@ -243,7 +245,7 @@ export default {
|
|||||||
))}
|
))}
|
||||||
<TableColumn
|
<TableColumn
|
||||||
data-index="operation"
|
data-index="operation"
|
||||||
width={dataSource.value.some((record) => record.status === enumTaskStatus.Failed) ? 180 : 60}
|
width={dataSource.value.some((record) => record.fail_number > 0) ? 180 : 60}
|
||||||
fixed="right"
|
fixed="right"
|
||||||
title="操作"
|
title="操作"
|
||||||
v-slots={{
|
v-slots={{
|
||||||
@ -256,7 +258,7 @@ export default {
|
|||||||
class="mr-8px cursor-pointer"
|
class="mr-8px cursor-pointer"
|
||||||
onClick={() => handleDelete(record)}
|
onClick={() => handleDelete(record)}
|
||||||
/>
|
/>
|
||||||
{record.status === enumTaskStatus.Failed && (
|
{record.fail_number > 0 && (
|
||||||
<Button type="outline" size="mini" class="search-btn" onClick={() => handleDownload(record)}>
|
<Button type="outline" size="mini" class="search-btn" onClick={() => handleDownload(record)}>
|
||||||
下载问题表格
|
下载问题表格
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
Reference in New Issue
Block a user