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