Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
Overview
Overview
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
zhaochengxiang
szse
Commits
2c7b390f
Commit
2c7b390f
authored
Jul 19, 2022
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
主数据管理
parent
53357dba
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
112 additions
and
5 deletions
+112
-5
Mock.js
src/view/Manage/DataMaster/Define/Component/Mock.js
+107
-0
ManageTable.jsx
src/view/Manage/DataMaster/Manage/Component/ManageTable.jsx
+1
-1
ManageTree.jsx
src/view/Manage/DataMaster/Manage/Component/ManageTree.jsx
+4
-4
No files found.
src/view/Manage/DataMaster/Define/Component/Mock.js
View file @
2c7b390f
...
@@ -148,6 +148,113 @@ export const attrs = [
...
@@ -148,6 +148,113 @@ export const attrs = [
'attr6'
,
'attr6'
,
];
];
export
const
treeData1
=
[
{
title
:
'parent 1'
,
key
:
'0-0'
,
children
:
[
{
title
:
'parent 1-0'
,
key
:
'0-0-0'
,
children
:
[
{
title
:
'leaf1'
,
key
:
'0-0-0-0'
,
children
:
[
{
title
:
'模版1'
,
key
:
'0-0-0-0-0'
,
},
{
title
:
'模版2'
,
key
:
'0-0-0-0-1'
,
},
{
title
:
'模版3'
,
key
:
'0-0-0-0-3'
,
},
]
},
{
title
:
'leaf2'
,
key
:
'0-0-0-1'
,
},
{
title
:
'leaf3'
,
key
:
'0-0-0-2'
,
},
],
},
{
title
:
'parent 1-1'
,
key
:
'0-0-1'
,
children
:
[
{
title
:
'leaf'
,
key
:
'0-0-1-0'
,
},
],
},
{
title
:
'parent 1-2'
,
key
:
'0-0-2'
,
children
:
[
{
title
:
'leaf1'
,
key
:
'0-0-2-0'
,
},
{
title
:
'leaf2'
,
key
:
'0-0-2-1'
,
},
],
},
{
title
:
'parent 1-3'
,
key
:
'0-0-3'
,
children
:
[
{
title
:
'leaf1'
,
key
:
'0-0-3-0'
,
},
{
title
:
'leaf2'
,
key
:
'0-0-3-1'
,
},
],
},
{
title
:
'parent 1-4'
,
key
:
'0-0-4'
,
children
:
[
{
title
:
'leaf1'
,
key
:
'0-0-4-0'
,
},
{
title
:
'leaf2'
,
key
:
'0-0-4-1'
,
},
],
},
{
title
:
'parent 1-5'
,
key
:
'0-0-5'
,
children
:
[
{
title
:
'leaf1'
,
key
:
'0-0-5-0'
,
},
{
title
:
'leaf2'
,
key
:
'0-0-5-1'
,
},
],
},
],
},
];
export
const
expandedTableData
=
[
export
const
expandedTableData
=
[
{
{
id
:
'1'
,
id
:
'1'
,
...
...
src/view/Manage/DataMaster/Manage/Component/ManageTable.jsx
View file @
2c7b390f
...
@@ -127,7 +127,7 @@ const ManageTable = (props) => {
...
@@ -127,7 +127,7 @@ const ManageTable = (props) => {
</
Space
>
</
Space
>
</
Space
>
</
Space
>
<
InputDebounce
<
InputDebounce
placeholder=
"通过主数据
模版
名称搜索"
placeholder=
"通过主数据名称搜索"
allowClear
allowClear
value=
{
keyword
}
value=
{
keyword
}
onChange=
{
onSearchInputChange
}
onChange=
{
onSearchInputChange
}
...
...
src/view/Manage/DataMaster/Manage/Component/ManageTree.jsx
View file @
2c7b390f
...
@@ -3,7 +3,7 @@ import {Tooltip, Spin, AutoComplete, Tree} from 'antd';
...
@@ -3,7 +3,7 @@ import {Tooltip, Spin, AutoComplete, Tree} from 'antd';
import
{
PlusOutlined
,
ReloadOutlined
}
from
'@ant-design/icons'
;
import
{
PlusOutlined
,
ReloadOutlined
}
from
'@ant-design/icons'
;
import
{
highlightSearchContentByTerms
}
from
'../../../../../util'
;
import
{
highlightSearchContentByTerms
}
from
'../../../../../util'
;
import
{
treeData
}
from
'../../Define/Component/Mock'
;
import
{
treeData
1
}
from
'../../Define/Component/Mock'
;
import
'../../Define/Component/DefineTree.less'
;
import
'../../Define/Component/DefineTree.less'
;
...
@@ -40,11 +40,11 @@ const ManageTree = (props) => {
...
@@ -40,11 +40,11 @@ const ManageTree = (props) => {
};
};
const
newTreeList
=
[];
const
newTreeList
=
[];
generateList
(
treeData
,
newTreeList
);
generateList
(
treeData
1
,
newTreeList
);
return
newTreeList
;
return
newTreeList
;
//eslint-disable-next-line react-hooks/exhaustive-deps
//eslint-disable-next-line react-hooks/exhaustive-deps
},
[
treeData
])
},
[
treeData
1
])
const
onAddClick
=
()
=>
{
const
onAddClick
=
()
=>
{
...
@@ -140,7 +140,7 @@ const ManageTree = (props) => {
...
@@ -140,7 +140,7 @@ const ManageTree = (props) => {
showLine
showLine
showIcon=
{
false
}
showIcon=
{
false
}
autoExpandParent=
{
autoExpandParent
}
autoExpandParent=
{
autoExpandParent
}
treeData=
{
treeData
}
treeData=
{
treeData
1
}
onExpand=
{
onTreeExpand
}
onExpand=
{
onTreeExpand
}
onSelect=
{
onTreeSelect
}
onSelect=
{
onTreeSelect
}
expandedKeys=
{
expandedKeys
}
expandedKeys=
{
expandedKeys
}
...
...
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