瀏覽代碼

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,
             }