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