|
@@ -21,6 +21,14 @@ export default class DatasourceNodeInfo extends React.Component<any, any> {
|
|
|
project_id: 'test'
|
|
|
})
|
|
|
if (data.code === 200) {
|
|
|
+ data.data.push({
|
|
|
+ id: 0,
|
|
|
+ name: 'train'
|
|
|
+ })
|
|
|
+ data.data.push({
|
|
|
+ id: 1,
|
|
|
+ name: 'test'
|
|
|
+ })
|
|
|
this.setState({debugTable: data.data})
|
|
|
} else {
|
|
|
message.error('获取调试数据表失败')
|
|
@@ -55,6 +63,22 @@ export default class DatasourceNodeInfo extends React.Component<any, any> {
|
|
|
this.props.nodeInfo.dataTableId = val
|
|
|
this.props.nodeInfo.dataTableName = option.label
|
|
|
switch(val) {
|
|
|
+ case 0:
|
|
|
+ case 1:
|
|
|
+ this.props.nodeInfo.inputSource = [
|
|
|
+ {dataSelect: false, dataField:'uuid', dataType:'string'},
|
|
|
+ {dataSelect: false, dataField:'label', dataType:'int'},
|
|
|
+ {dataSelect: false, dataField: 'feature1',dataType: 'double',},
|
|
|
+ {dataSelect: false, dataField: 'feature2',dataType: 'double',},
|
|
|
+ {dataSelect: false, dataField: 'feature3',dataType: 'double',},
|
|
|
+ {dataSelect: false, dataField: 'feature4',dataType: 'double',},
|
|
|
+ {dataSelect: false, dataField: 'feature5',dataType: 'double',},
|
|
|
+ {dataSelect: false, dataField: 'feature6',dataType: 'double',},
|
|
|
+ {dataSelect: false, dataField: 'feature7',dataType: 'double',},
|
|
|
+ {dataSelect: false, dataField: 'feature8',dataType: 'double',},
|
|
|
+ {dataSelect: false, dataField: 'feature9',dataType: 'double',},
|
|
|
+ ]
|
|
|
+ break
|
|
|
case 4:
|
|
|
this.props.nodeInfo.inputSource = [
|
|
|
{dataSelect: true, dataField: 'name', dataType: 'string'},
|