Browse Source

fix: 调整dag数据

nobody 1 year ago
parent
commit
e27bc902dc
2 changed files with 5 additions and 3 deletions
  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,
             }