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
0d378422
Commit
0d378422
authored
Sep 02, 2024
by
田翔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 台账回填增加配置
parent
25dd15c5
Pipeline
#92275
failed with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
index.jsx
...ts/flowChartComponents/ConfigAccount/AddAccount/index.jsx
+18
-3
No files found.
src/pages/bsmanager/workOrder/workflowEdit/workFlowComponents/flowChartComponents/ConfigAccount/AddAccount/index.jsx
View file @
0d378422
...
...
@@ -104,6 +104,9 @@ const AddModal = props => {
form
.
validateFields
().
then
(
validate
=>
{
if
(
validate
)
{
let
values
=
form
.
getFieldsValue
()
if
(
!
values
.
Fields
&&
!
values
.
presetValue
)
{
return
message
.
info
(
'请选择源字段或者默认值!'
)
}
let
toData
=
[]
values
?.
users
?.
forEach
(
v
=>
{
let
item
=
v
?.
nodeName
?.
split
(
','
)
...
...
@@ -116,7 +119,7 @@ const AddModal = props => {
mapping
:
[
{
fromData
:
{
tableName
:
props
.
tableName
,
tableName
:
[
'下一节点名称'
].
includes
(
values
.
Fields
)
?
'环境变量'
:
props
.
tableName
,
filed
:
values
.
Fields
,
filedShape
:
''
,
defaultValue
:
values
.
presetValue
,
...
...
@@ -224,19 +227,31 @@ const AddModal = props => {
>
<
Input
placeholder=
"请输入规则名称"
/>
</
Form
.
Item
>
<
Form
.
Item
label=
"源字段"
name=
"Fields"
rules=
{
[{
required
:
true
}]
}
>
<
Form
.
Item
label=
"源字段"
name=
"Fields"
>
<
TreeSelect
showSearch
dropdownStyle=
{
{
maxHeight
:
400
,
overflow
:
'auto'
}
}
allowClear
placeholder=
"请选择表单源字段"
treeDefaultExpandAll
showCheckedStrategy
>
<
TreeNode
value=
{
'环境变量'
}
title=
{
<>
<
span
style=
{
{
marginRight
:
'10px'
}
}
>
环境变量
</
span
>
</>
}
disabled
>
<
TreeNode
value=
{
'下一节点名称'
}
title=
{
'下一节点名称'
}
></
TreeNode
>
</
TreeNode
>
{
tableField
&&
tableField
.
map
(
i
=>
mapTree
(
i
))
}
</
TreeSelect
>
</
Form
.
Item
>
<
Form
.
Item
label=
"默认值"
name=
"presetValue"
>
<
Input
placeholder=
"请输入默认值"
/>
<
Input
placeholder=
"请输入默认值"
allowClear
/>
</
Form
.
Item
>
<
Form
.
List
name=
"users"
label=
'字段映射'
style=
{
{
width
:
'100%'
}
}
>
{
(
fields
,
{
add
,
remove
})
=>
(
...
...
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