소스 검색

fix: 调整dag数据

nobody 2 년 전
부모
커밋
e27bc902dc
2개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 2
      packages/yili-dag/src/OutputNodeInfo.tsx
  2. 1 1
      packages/yili-dag/src/utils.ts

+ 4 - 2
packages/yili-dag/src/OutputNodeInfo.tsx

@@ -12,8 +12,10 @@ export default class OutputNodeInfo extends React.Component<any, any> {
 
   async componentDidMount(){
     this.props.nodeInfo.outputSource = [
-      {dataField: 'name', dataType: 'string'},
-      {dataField: 'address', dataType: 'string'},
+      {dataField: 'uuid', dataType: 'string'},
+      {dataField: 'label', dataType: 'int'},
+      {dataField: 'prediction', dataType: 'double'},
+      {dataField: 'probability_xj', dataType: 'double'},
     ];
     (this.formRef.current as any).setFieldsValue({
       outputSource: this.props.nodeInfo.outputSource

+ 1 - 1
packages/yili-dag/src/utils.ts

@@ -27,7 +27,7 @@ export const DagToData = (graph: any, dagId: any) => {
           nodes.push({
             id: item.data.nodeId,
             name: item.data.nodeName,
-            op: "datasource",
+            op: "outputsource",
             data: {
               output_source: item.data.outputSource,
             }