|
|
@ -23,7 +23,7 @@ import { ReloadOutlined, EyeOutlined } from '@vicons/antd' |
|
|
|
import { useRelation } from './use-relation' |
|
|
|
import { useRelation } from './use-relation' |
|
|
|
import Card from '@/components/card' |
|
|
|
import Card from '@/components/card' |
|
|
|
import Graph from './components/Graph' |
|
|
|
import Graph from './components/Graph' |
|
|
|
import Result from "@/components/result"; |
|
|
|
import Result from '@/components/result' |
|
|
|
|
|
|
|
|
|
|
|
const workflowRelation = defineComponent({ |
|
|
|
const workflowRelation = defineComponent({ |
|
|
|
name: 'workflow-relation', |
|
|
|
name: 'workflow-relation', |
|
|
@ -61,20 +61,25 @@ const workflowRelation = defineComponent({ |
|
|
|
const { t, handleResetDate } = this |
|
|
|
const { t, handleResetDate } = this |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
this.seriesData.length === 0 && ( |
|
|
|
(this.seriesData.length === 0 && ( |
|
|
|
<Result |
|
|
|
<Result |
|
|
|
title={t('project.workflow.workflow_relation_no_data_result_title')} |
|
|
|
title={t('project.workflow.workflow_relation_no_data_result_title')} |
|
|
|
description={t('project.workflow.workflow_relation_no_data_result_desc')} |
|
|
|
description={t( |
|
|
|
status={"info"} |
|
|
|
'project.workflow.workflow_relation_no_data_result_desc' |
|
|
|
size={"medium"}/> |
|
|
|
)} |
|
|
|
) |
|
|
|
status={'info'} |
|
|
|
) || ( |
|
|
|
size={'medium'} |
|
|
|
this.seriesData.length > 0 && ( |
|
|
|
/> |
|
|
|
|
|
|
|
)) || |
|
|
|
|
|
|
|
(this.seriesData.length > 0 && ( |
|
|
|
<Card title={t('project.workflow.workflow_relation')}> |
|
|
|
<Card title={t('project.workflow.workflow_relation')}> |
|
|
|
{{ |
|
|
|
{{ |
|
|
|
default: () => |
|
|
|
default: () => |
|
|
|
Object.keys(this.seriesData).length > 0 && ( |
|
|
|
Object.keys(this.seriesData).length > 0 && ( |
|
|
|
<Graph seriesData={this.seriesData} labelShow={this.labelShow} /> |
|
|
|
<Graph |
|
|
|
|
|
|
|
seriesData={this.seriesData} |
|
|
|
|
|
|
|
labelShow={this.labelShow} |
|
|
|
|
|
|
|
/> |
|
|
|
), |
|
|
|
), |
|
|
|
'header-extra': () => ( |
|
|
|
'header-extra': () => ( |
|
|
|
<NSpace> |
|
|
|
<NSpace> |
|
|
@ -125,7 +130,7 @@ const workflowRelation = defineComponent({ |
|
|
|
) |
|
|
|
) |
|
|
|
}} |
|
|
|
}} |
|
|
|
</Card> |
|
|
|
</Card> |
|
|
|
) |
|
|
|
)) |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|