Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dlink
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaowei
dlink
Commits
9887ca14
Unverified
Commit
9887ca14
authored
Jul 27, 2022
by
zhu-mingye
Committed by
GitHub
Jul 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optimization Overflow in job list tree after importing file (#785)
parent
fab6ef58
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
index.tsx
dlink-web/src/components/Studio/StudioTree/index.tsx
+9
-6
No files found.
dlink-web/src/components/Studio/StudioTree/index.tsx
View file @
9887ca14
...
...
@@ -18,23 +18,25 @@
*/
import
React
,
{
useEffect
,
useState
,
Key
}
from
"react"
;
import
React
,
{
Key
,
useEffect
,
useState
}
from
"react"
;
import
{
connect
}
from
"umi"
;
import
{
Down
Outlined
,
SwitcherOutlined
,
FolderAddOutlined
,
UploadOutlined
,
Down
loadOutlined
}
from
"@ant-design/icons"
;
import
{
Tree
,
Menu
,
Empty
,
Button
,
message
,
Modal
,
Tooltip
,
Row
,
Col
,
Input
,
Upload
}
from
'antd'
;
import
type
{
UploadProps
}
from
'antd'
;
import
{
Down
loadOutlined
,
DownOutlined
,
FolderAddOutlined
,
SwitcherOutlined
,
Up
loadOutlined
}
from
"@ant-design/icons"
;
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
{
convertToTreeData
,
getTreeNodeByKey
,
TreeDataNode
}
from
"@/components/Studio/StudioTree/Function"
;
import
style
from
"./index.less"
;
import
{
StateType
}
from
"@/pages/DataStudio/model"
;
import
{
handleData
,
CODE
,
getInfoById
,
handleAddOrUpdate
,
handleAddOrUpdateWithResult
,
handleData
,
handleOption
,
handleRemoveById
,
handleSubmit
,
CODE
,
postAll
,
handleSubmit
,
postAll
,
}
from
"@/components/Common/crud"
;
import
UpdateCatalogueForm
from
'./components/UpdateCatalogueForm'
;
import
SimpleTaskForm
from
"@/components/Studio/StudioTree/components/SimpleTaskForm"
;
...
...
@@ -591,6 +593,7 @@ const StudioTree: React.FC<StudioTreeProps> = (props) => {
headers: {
authorization: 'authorization-text',
},
showUploadList: false,
onChange(info) {
if (info.file.status === 'done') {
if(info.file.response.code == CODE.SUCCESS){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment