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
fb3dc96f
Commit
fb3dc96f
authored
May 06, 2022
by
皮倩雯
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://g.civnet.cn:8443/ReactWeb5/maintenance
parents
298c3429
adb873ad
Pipeline
#49521
passed with stages
in 4 minutes 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
18 deletions
+17
-18
BookConfig.jsx
src/pages/bsmanager/base/standingBook/BookConfig.jsx
+17
-18
No files found.
src/pages/bsmanager/base/standingBook/BookConfig.jsx
View file @
fb3dc96f
...
...
@@ -203,25 +203,21 @@ const BookConfig = props => {
return
;
}
// 添加外部字段
if
(
type
===
'edit'
)
{
let
fil
=
{
...
filed
};
fil
[
'外部字段'
]
=
[];
let
isExternal
;
form
.
getFieldValue
(
fileds
)
.
split
(
','
)
.
forEach
(
item
=>
{
isExternal
=
allFileds
.
some
(
val
=>
val
===
item
);
if
(
!
isExternal
&&
item
!==
''
)
{
fil
[
'外部字段'
].
push
(
item
);
}
});
if
(
fil
[
'外部字段'
].
length
===
0
)
{
delete
fil
[
'外部字段'
];
let
fil
=
{
...
filed
};
fil
[
'外部字段'
]
=
[];
let
isExternal
;
let
list
=
form
.
getFieldValue
(
fileds
)
?
form
.
getFieldValue
(
fileds
).
split
(
','
)
:
[];
list
.
forEach
(
item
=>
{
isExternal
=
allFileds
.
some
(
val
=>
val
===
item
);
if
(
!
isExternal
&&
item
!==
''
)
{
fil
[
'外部字段'
].
push
(
item
);
}
setFiled
(
fil
);
setCheckedList
(
form
.
getFieldValue
(
fileds
).
split
(
','
));
});
if
(
fil
[
'外部字段'
].
length
===
0
)
{
delete
fil
[
'外部字段'
];
}
setFiled
(
fil
);
setCheckedList
(
list
);
setPickItem
(
fileds
);
setIsVisible
(
true
);
};
...
...
@@ -482,7 +478,10 @@ const BookConfig = props => {
</
Form
>
<
ChangeAdd
visible=
{
isVisible
}
onCancel=
{
()
=>
setIsVisible
(
false
)
}
onCancel=
{
()
=>
{
setIsVisible
(
false
);
setCheckedList
([]);
}
}
callBackSubmit=
{
onOK
}
newCheckedList=
{
checkedList
}
filed=
{
filed
}
...
...
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