{
- const { graphNodeId, status } = n;
+ const { graphNodeId, status, progress = 0, codeName } = n;
+ const showprogress = showProgressCodeNames.includes(codeName as string);
return {
nodeId: graphNodeId as string,
status: nodeStatus[status || 'STAGING'] as unknown as NodeStatus,
+ statusProcess: showprogress ? Number((progress * 100).toFixed(2)) : 0,
};
});
return { nodeStatus: convertedNodes || [], finished: finished as boolean };
@@ -54,8 +66,15 @@ export class GraphRecordRequestService extends GraphRequestService {
const graphData: { nodes: any[]; edges: any[] } = {} as any;
const { nodes, edges } = graph;
const convertedNodes = nodes?.map((n) => {
- const { graphNodeId, status, ...options } = n;
- return { ...options, id: graphNodeId, status: nodeStatus[status || 'STAGING'] };
+ const { graphNodeId, status, codeName, progress = 0, ...options } = n;
+ const showprogress = showProgressCodeNames.includes(codeName as string);
+ return {
+ ...options,
+ codeName,
+ id: graphNodeId,
+ status: nodeStatus[status || 'STAGING'],
+ statusProcess: showprogress ? Number((progress * 100).toFixed(2)) : 0,
+ };
});
const convertedEdges = edges
diff --git a/apps/platform/src/modules/dag-result/index.less b/apps/platform/src/modules/dag-result/index.less
index ac4dfaa..bacfd75 100644
--- a/apps/platform/src/modules/dag-result/index.less
+++ b/apps/platform/src/modules/dag-result/index.less
@@ -252,3 +252,10 @@
font-size: 12px !important;
}
}
+
+.warningCollapse {
+ :global(.ant-collapse-header) {
+ border-radius: 8px !important;
+ background-color: #fffbe6 !important;
+ }
+}
diff --git a/apps/platform/src/modules/dag-result/result-modal.tsx b/apps/platform/src/modules/dag-result/result-modal.tsx
index 6091707..0c16fff 100644
--- a/apps/platform/src/modules/dag-result/result-modal.tsx
+++ b/apps/platform/src/modules/dag-result/result-modal.tsx
@@ -118,7 +118,17 @@ export const ResultDrawer = () => {
visible={visible}
/>
)}
- {!resultData?.type &&
非数据参与方,无计算结果}
+ {!resultData?.type && (
+ <>
+
非数据参与方,无计算结果
+ {codeName === 'stats/scql_analysis' && (
+ <>
+
自定义scql分析组件请到接收方KUSCIA容器中查数据
+
{`地址:${resultData?.jobId}-${outputId}`}
+ >
+ )}
+ >
+ )}
diff --git a/apps/platform/src/modules/dag-result/result-report.tsx b/apps/platform/src/modules/dag-result/result-report.tsx
index ac916df..0201510 100644
--- a/apps/platform/src/modules/dag-result/result-report.tsx
+++ b/apps/platform/src/modules/dag-result/result-report.tsx
@@ -1,5 +1,5 @@
-import { Tag, Tabs } from 'antd';
-
+import { Tag, Tabs, Collapse, List } from 'antd';
+import { CaretRightOutlined } from '@ant-design/icons';
import styles from './index.less';
import type { Tab } from './result-report-types';
import type { ResultComponentProps } from './types';
@@ -29,7 +29,8 @@ export const ResultReportComponent = (
props: ResultComponentProps<'report'> & { visible: boolean },
) => {
const { data, id, codeName, visible } = props;
- const { gmtCreate, tabs = [] } = data;
+ const { gmtCreate, tabs = [], warning = [] } = data;
+
return (
<>