2 lines
638 B
JavaScript
2 lines
638 B
JavaScript
|
|
function t(e){return e.preview_status==="running"||e.preview_status==="queued"?{label:"切分中",type:"primary"}:e.preview_status==="failed"?{label:"切分失败",type:"danger"}:e.preview_status==="cancelled"?{label:"切分已取消",type:"warning"}:e.status==="running"?{label:"生成中",type:"primary"}:e.status==="completed"?e.results_confirmed===!1?{label:"待确认",type:"warning"}:e.output_dataset_id?{label:"已发布",type:"success"}:{label:"已生成",type:"warning"}:e.status==="failed"?{label:"生成失败",type:"danger"}:e.status==="stopped"?{label:"已停止",type:"info"}:{label:"待生成",type:"info"}}export{t as d};
|