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
de226945
Commit
de226945
authored
Nov 30, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
48bcae95
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
ImportActionIndex.jsx
src/view/Manage/Model/Component/ImportActionIndex.jsx
+13
-4
No files found.
src/view/Manage/Model/Component/ImportActionIndex.jsx
View file @
de226945
import
React
,
{
useState
,
useCallback
,
useRef
,
useEffect
,
useContext
,
useMemo
}
from
'react'
;
import
React
,
{
useState
,
useCallback
,
useRef
,
useEffect
,
useContext
,
useMemo
}
from
'react'
;
import
{
Input
,
Form
,
Typography
,
Button
,
Select
,
Row
,
Col
,
Popover
,
Checkbox
,
Tooltip
,
Table
,
Space
}
from
'antd'
;
import
{
Input
,
Form
,
Typography
,
Button
,
Select
,
Row
,
Col
,
Popover
,
Checkbox
,
Tooltip
,
Table
,
Space
}
from
'antd'
;
import
{
DeleteOutlined
,
CloseOutlined
,
CheckOutlined
,
PlusOutlined
,
QuestionCircleOutlined
}
from
'@ant-design/icons'
;
import
{
DeleteOutlined
,
CloseOutlined
,
CheckOutlined
,
PlusOutlined
,
QuestionCircleOutlined
,
DownOutlined
,
UpOutlined
}
from
'@ant-design/icons'
;
import
{
DndProvider
,
useDrag
,
useDrop
}
from
'react-dnd'
;
import
{
DndProvider
,
useDrag
,
useDrop
}
from
'react-dnd'
;
import
{
HTML5Backend
}
from
'react-dnd-html5-backend'
;
import
{
HTML5Backend
}
from
'react-dnd-html5-backend'
;
import
update
from
'immutability-helper'
;
import
update
from
'immutability-helper'
;
...
@@ -352,6 +352,7 @@ const ImportActionIndex = (props) => {
...
@@ -352,6 +352,7 @@ const ImportActionIndex = (props) => {
const
[
filterData
,
setFilterData
]
=
useState
([]);
const
[
filterData
,
setFilterData
]
=
useState
([]);
const
[
insertIndex
,
setInsertIndex
]
=
useState
(
0
);
const
[
insertIndex
,
setInsertIndex
]
=
useState
(
0
);
const
[
currentItem
,
setCurrentItem
]
=
useState
(
null
);
const
[
currentItem
,
setCurrentItem
]
=
useState
(
null
);
const
[
isCollapse
,
setCollapse
]
=
React
.
useState
(
true
)
const
{
indexIsEditingFunction
}
=
useContext
(
EditModelContext
);
const
{
indexIsEditingFunction
}
=
useContext
(
EditModelContext
);
...
@@ -818,6 +819,13 @@ const ImportActionIndex = (props) => {
...
@@ -818,6 +819,13 @@ const ImportActionIndex = (props) => {
<
QuestionCircleOutlined
className=
'pointer'
/>
<
QuestionCircleOutlined
className=
'pointer'
/>
</
Popover
>
</
Popover
>
}
}
{
isCollapse
?
<
Button
type=
'primary'
size=
'small'
onClick=
{
()
=>
{
setCollapse
(
!
isCollapse
)
}
}
>
展开
<
DownOutlined
/></
Button
>
:
<
Button
type=
'primary'
size=
'small'
onClick=
{
()
=>
{
setCollapse
(
!
isCollapse
)
}
}
>
收起
<
UpOutlined
/></
Button
>
}
</
Space
>
</
Space
>
<
Space
>
<
Space
>
{
{
...
@@ -836,7 +844,8 @@ const ImportActionIndex = (props) => {
...
@@ -836,7 +844,8 @@ const ImportActionIndex = (props) => {
</
div
>
</
div
>
</
Space
>
</
Space
>
</
div
>
</
div
>
<
div
className=
'mb-3'
id=
"containerId"
ref=
{
tableRef
}
>
{
!
isCollapse
&&
<
div
className=
'mb-3'
id=
"containerId"
ref=
{
tableRef
}
>
<
DndProvider
backend=
{
HTML5Backend
}
>
<
DndProvider
backend=
{
HTML5Backend
}
>
<
Form
form=
{
form
}
component=
{
false
}
onValuesChange=
{
onValuesChange
}
>
<
Form
form=
{
form
}
component=
{
false
}
onValuesChange=
{
onValuesChange
}
>
<
Table
<
Table
...
@@ -887,7 +896,8 @@ const ImportActionIndex = (props) => {
...
@@ -887,7 +896,8 @@ const ImportActionIndex = (props) => {
/>
/>
</
Form
>
</
Form
>
</
DndProvider
>
</
DndProvider
>
</
div
>
}
<
RcMenu
id=
{
MENU_ID
}
>
<
RcMenu
id=
{
MENU_ID
}
>
{
{
(
menuData
??[]).
map
(
item
=>
(
(
menuData
??[]).
map
(
item
=>
(
...
@@ -898,7 +908,6 @@ const ImportActionIndex = (props) => {
...
@@ -898,7 +908,6 @@ const ImportActionIndex = (props) => {
}
}
</
RcMenu
>
</
RcMenu
>
</
div
>
</
div
>
</
div
>
);
);
};
};
...
...
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