Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
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
shenshaokai
jinfa-platform
Commits
61ac71e7
Commit
61ac71e7
authored
May 10, 2022
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复默认不展开的问题
parent
232a718a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
index.tsx
...orderCollectSrm/components/orderMaterialsDrawer/index.tsx
+4
-2
No files found.
src/pages/transaction/purchaseOrder/orderCollectSrm/components/orderMaterialsDrawer/index.tsx
View file @
61ac71e7
...
...
@@ -128,6 +128,8 @@ const OrderMaterialsDrawer: React.ForwardRefRenderFunction<OrderMaterialsDrawerR
const
[
checkedKeysState
,
setCheckedKeysState
]
=
useState
([]);
const
[
halfCheckedState
,
setHalfCheckedState
]
=
useState
([]);
const
[
expandedRowKeys
,
setExpandedRowKeys
]
=
useState
([]);
const
polymericRef
=
useRef
<
NormalTableRefHandleType
|
null
>
(
null
);
const
keyEntities
=
useRef
<
any
>
({});
...
...
@@ -192,6 +194,7 @@ const OrderMaterialsDrawer: React.ForwardRefRenderFunction<OrderMaterialsDrawerR
...
keyEntities
.
current
,
...
convertDataToEntities
(
dataSource
).
keyEntities
,
};
setExpandedRowKeys
(
dataSource
.
map
((
item
)
=>
item
.
key
));
return
{
data
:
dataSource
,
totalCount
:
res
.
data
.
totalCount
,
...
...
@@ -453,7 +456,7 @@ const OrderMaterialsDrawer: React.ForwardRefRenderFunction<OrderMaterialsDrawerR
)
),
childrenColumnName
:
'xx'
,
// 默认是 children,与 dataSource数据中 冲突,随便改了名称,否则不能正常展开
defaultExpandAllRows
:
true
,
// 无效,我giao
expandedRowKeys
,
}
:
undefined
}
searchFormProps=
{
{
schema
:
querySchema
,
...
...
@@ -475,7 +478,6 @@ const OrderMaterialsDrawer: React.ForwardRefRenderFunction<OrderMaterialsDrawerR
),
}
}
beforePaginationChange=
{
handleBeforePaginationChange
}
defaultExpandAllRows
full
/>
</
Drawer
>
...
...
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