Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
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
ReactWeb5
CivManage
Commits
efe81f3d
Commit
efe81f3d
authored
5 months ago
by
涂伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '新增台账数据提交逻辑优化'
parent
27241fc3
Pipeline
#93985
passed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
standingBook.jsx
src/pages/bsmanager/base/standingBook/standingBook.jsx
+6
-3
No files found.
src/pages/bsmanager/base/standingBook/standingBook.jsx
View file @
efe81f3d
...
...
@@ -241,9 +241,12 @@ const StandingBook = props => {
if
(
res
.
msg
===
'Ok'
&&
res
.
data
.
root
)
{
console
.
log
(
res
.
data
.
root
);
setKeepTableData
(
res
.
data
.
root
);
const
maxOrder
=
res
.
data
.
root
.
reduce
((
pre
,
cur
)
=>
pre
.
order
>
cur
.
order
?
pre
.
order
:
cur
.
order
,
);
const
maxOrder
=
res
.
data
.
root
.
reduce
((
pre
,
cur
)
=>
{
if
(
res
.
data
.
root
.
length
===
1
)
{
return
cur
.
order
;
}
return
pre
.
order
>
cur
.
order
?
pre
.
order
:
cur
.
order
;
},
0
);
setMaxLength
(
maxOrder
+
1
);
// setMaxLength(res.data.root.length + 1);
let
arr
=
formateArrDataA
(
res
.
data
.
root
,
'type'
);
...
...
This diff is collapsed.
Click to expand it.
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