|
@@ -441,6 +441,10 @@ export default class Dag extends React.Component<any, any> {
|
|
|
};
|
|
|
|
|
|
fetchTableInfo = async (params: any) => {
|
|
|
+ this.setState({
|
|
|
+ resultTableName: '',
|
|
|
+ nodeTableInfo: {}
|
|
|
+ });
|
|
|
const { data } = await getNodeResultInfo(params);
|
|
|
if (data.code === 200) {
|
|
|
const { table_name, location, owner, share } = data.data;
|
|
@@ -459,7 +463,9 @@ export default class Dag extends React.Component<any, any> {
|
|
|
|
|
|
fetchResultTable = async (params: any) => {
|
|
|
this.setState({
|
|
|
- tableLoading: true
|
|
|
+ tableLoading: true,
|
|
|
+ nodeTableCol: [],
|
|
|
+ nodeTableData: []
|
|
|
});
|
|
|
const { data } = await getNodeResult(params);
|
|
|
if (data.code === 200) {
|
|
@@ -943,6 +949,7 @@ export default class Dag extends React.Component<any, any> {
|
|
|
title="查看结果表"
|
|
|
open={this.state.isOpenTable}
|
|
|
onCancel={() => this.setState({ isOpenTable: false })}
|
|
|
+ destroyOnClose={true}
|
|
|
footer={null}
|
|
|
width={'60%'}
|
|
|
>
|
|
@@ -1012,6 +1019,7 @@ export default class Dag extends React.Component<any, any> {
|
|
|
</Modal>
|
|
|
<Modal
|
|
|
title="重命名"
|
|
|
+ destroyOnClose={true}
|
|
|
open={this.state.saveModalOpen}
|
|
|
onOk={this.saveTableData}
|
|
|
cancelText="取消"
|
|
@@ -1030,6 +1038,7 @@ export default class Dag extends React.Component<any, any> {
|
|
|
<Modal
|
|
|
title="查看执行日志"
|
|
|
open={this.state.isOpenLog}
|
|
|
+ destroyOnClose={true}
|
|
|
onCancel={() => this.setState({ isOpenLog: false })}
|
|
|
footer={null}
|
|
|
width={'60%'}
|