Unverified Commit 9887ca14 authored by zhu-mingye's avatar zhu-mingye Committed by GitHub

optimization Overflow in job list tree after importing file (#785)

parent fab6ef58
...@@ -18,23 +18,25 @@ ...@@ -18,23 +18,25 @@
*/ */
import React, {useEffect, useState, Key} from "react"; import React, {Key, useEffect, useState} from "react";
import {connect} from "umi"; import {connect} from "umi";
import {DownOutlined, SwitcherOutlined, FolderAddOutlined, UploadOutlined, DownloadOutlined} from "@ant-design/icons"; import {DownloadOutlined, DownOutlined, FolderAddOutlined, SwitcherOutlined, UploadOutlined} from "@ant-design/icons";
import {Tree, Menu, Empty, Button, message, Modal, Tooltip, Row, Col, Input, Upload} from 'antd'; import type {UploadProps} from 'antd';
import type { UploadProps } from 'antd'; import {Button, Col, Empty, Input, Menu, message, Modal, Row, Tooltip, Tree, Upload} from 'antd';
import {getCatalogueTreeData} from "@/pages/DataStudio/service"; import {getCatalogueTreeData} from "@/pages/DataStudio/service";
import {convertToTreeData, getTreeNodeByKey, TreeDataNode} from "@/components/Studio/StudioTree/Function"; import {convertToTreeData, getTreeNodeByKey, TreeDataNode} from "@/components/Studio/StudioTree/Function";
import style from "./index.less"; import style from "./index.less";
import {StateType} from "@/pages/DataStudio/model"; import {StateType} from "@/pages/DataStudio/model";
import { import {
handleData, CODE,
getInfoById, getInfoById,
handleAddOrUpdate, handleAddOrUpdate,
handleAddOrUpdateWithResult, handleAddOrUpdateWithResult,
handleData,
handleOption, handleOption,
handleRemoveById, handleRemoveById,
handleSubmit, CODE, postAll, handleSubmit,
postAll,
} from "@/components/Common/crud"; } from "@/components/Common/crud";
import UpdateCatalogueForm from './components/UpdateCatalogueForm'; import UpdateCatalogueForm from './components/UpdateCatalogueForm';
import SimpleTaskForm from "@/components/Studio/StudioTree/components/SimpleTaskForm"; import SimpleTaskForm from "@/components/Studio/StudioTree/components/SimpleTaskForm";
...@@ -591,6 +593,7 @@ const StudioTree: React.FC<StudioTreeProps> = (props) => { ...@@ -591,6 +593,7 @@ const StudioTree: React.FC<StudioTreeProps> = (props) => {
headers: { headers: {
authorization: 'authorization-text', authorization: 'authorization-text',
}, },
showUploadList: false,
onChange(info) { onChange(info) {
if (info.file.status === 'done') { if (info.file.status === 'done') {
if(info.file.response.code == CODE.SUCCESS){ if(info.file.response.code == CODE.SUCCESS){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment