|
@@ -216,7 +216,6 @@ class Table extends Component {
|
|
|
currentTable={this.state.currentTable}
|
|
currentTable={this.state.currentTable}
|
|
|
columns={this.state.columns}
|
|
columns={this.state.columns}
|
|
|
remark={this.state.remark}
|
|
remark={this.state.remark}
|
|
|
- currentTableIndex={this.props.currentTableIndex}
|
|
|
|
|
schemaID={schemaID}
|
|
schemaID={schemaID}
|
|
|
userID={userID}
|
|
userID={userID}
|
|
|
schemaData={this.props.schemaData}
|
|
schemaData={this.props.schemaData}
|
|
@@ -226,6 +225,7 @@ class Table extends Component {
|
|
|
pageSize={this.props.pageSize}
|
|
pageSize={this.props.pageSize}
|
|
|
history={this.props.history}
|
|
history={this.props.history}
|
|
|
schemaName={schemaName}
|
|
schemaName={schemaName}
|
|
|
|
|
+ add={this.props.add}
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
}
|
|
}
|
|
@@ -323,7 +323,6 @@ class UpdateTableButton extends Component {
|
|
|
schemaCols.splice(index, 1, newTable);
|
|
schemaCols.splice(index, 1, newTable);
|
|
|
});
|
|
});
|
|
|
} else {
|
|
} else {
|
|
|
-
|
|
|
|
|
schemaCols.splice(index, 1, newTable);
|
|
schemaCols.splice(index, 1, newTable);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -337,13 +336,15 @@ class UpdateTableButton extends Component {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
this.props.showTablePagination(this.props.page, this.props.pageSize, schemaCols)
|
|
this.props.showTablePagination(this.props.page, this.props.pageSize, schemaCols)
|
|
|
- this.props.history.push({
|
|
|
|
|
- pathname: `/graphql-service/my-create/${this.props.schemaName}`,
|
|
|
|
|
- state:{
|
|
|
|
|
- schemaName:this.props.schemaName,
|
|
|
|
|
- schemaID:this.props.schemaID
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ if(this.props.add !== 'add') {
|
|
|
|
|
+ this.props.history.push({
|
|
|
|
|
+ pathname: `/graphql-service/my-create/${this.props.schemaName}`,
|
|
|
|
|
+ state:{
|
|
|
|
|
+ schemaName:this.props.schemaName,
|
|
|
|
|
+ schemaID:this.props.schemaID
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
}}>
|
|
}}>
|
|
|
save
|
|
save
|
|
|
</Button>
|
|
</Button>
|