Procházet zdrojové kódy

fix: 调整dag数据

nobody před 2 roky
rodič
revize
e27bc902dc

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