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
bcfe378b
Commit
bcfe378b
authored
Dec 01, 2022
by
邓超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改子流程配置传参逻辑
parent
d03cd9fe
Pipeline
#64736
waiting for manual action with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
ConfigSubprocess.jsx
...wChartComponents/nodeModalComponents/ConfigSubprocess.jsx
+13
-9
No files found.
src/pages/bsmanager/workOrder/workflowEdit/workFlowComponents/flowChartComponents/nodeModalComponents/ConfigSubprocess.jsx
View file @
bcfe378b
...
@@ -49,13 +49,15 @@ const ConfigSubprocess = (props, ref) => {
...
@@ -49,13 +49,15 @@ const ConfigSubprocess = (props, ref) => {
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
res
.
data
.
ParentFlowMapList
.
forEach
(
item
=>
{
res
.
data
.
ParentFlowMapList
.
forEach
(
item
=>
{
item
.
TableFieldNames
=
item
.
TableFieldNames
.
map
(
ele
=>
({
item
.
TableFieldNames
=
item
.
TableFieldNames
.
map
(
ele
=>
({
value
:
`
${
item
.
TableName
}
-
${
ele
}
-
${
item
.
TableType
}
`
,
value
:
`
${
item
.
TableName
}
-
${
ele
}
`
,
label
:
ele
,
label
:
ele
,
}));
}));
});
});
res
.
data
.
SubFlowMapInfo
.
TableFieldNames
=
res
.
data
.
SubFlowMapInfo
.
TableFieldNames
.
map
(
res
.
data
.
SubFlowMapInfo
.
TableFieldNames
=
res
.
data
.
SubFlowMapInfo
.
TableFieldNames
.
map
(
item
=>
({
item
=>
({
value
:
`
${
res
.
data
.
SubFlowMapInfo
.
TableName
}
-
${
item
}
`
,
value
:
`
${
res
.
data
.
SubFlowMapInfo
.
TableName
}
-
${
item
}
-
${
res
.
data
.
SubFlowMapInfo
.
TableType
}
`
,
label
:
item
,
label
:
item
,
}),
}),
);
);
...
@@ -73,11 +75,11 @@ const ConfigSubprocess = (props, ref) => {
...
@@ -73,11 +75,11 @@ const ConfigSubprocess = (props, ref) => {
: null,
: null,
MapFields: editMsg.SubFlowInfo?.MapFields?.map(item => ({
MapFields: editMsg.SubFlowInfo?.MapFields?.map(item => ({
nodeField: item.ParentFlowMapTableName
nodeField: item.ParentFlowMapTableName
? `
$
{
item
.
ParentFlowMapTableName
}
-
$
{
item
.
ParentFlowMapFieldName
}
-
$
{
? `
$
{
item
.
ParentFlowMapTableName
}
-
$
{
item
.
ParentFlowMapFieldName
}
`
item
.
ParentFlowMapTableType
}
`
: '',
: '',
subNodeField: `
$
{
item
.
SubFlowMapTableName
}
-
$
{
item
.
SubFlowMapFieldName
}
`,
subNodeField: `
$
{
item
.
SubFlowMapTableName
}
-
$
{
item
.
SubFlowMapFieldName
}
-
$
{
item
.
SubFlowMapTableType
}
`,
})),
})),
});
});
}
}
...
@@ -90,7 +92,7 @@ const ConfigSubprocess = (props, ref) => {
...
@@ -90,7 +92,7 @@ const ConfigSubprocess = (props, ref) => {
MapFields = allFields[1]?.value?.map(item => ({
MapFields = allFields[1]?.value?.map(item => ({
ParentFlowMapTableName: item?.nodeField?.split('-')[0],
ParentFlowMapTableName: item?.nodeField?.split('-')[0],
ParentFlowMapFieldName: item?.nodeField?.split('-')[1],
ParentFlowMapFieldName: item?.nodeField?.split('-')[1],
ParentFlowMapTableType: item?.n
odeField?.split('-')[2],
SubFlowMapTableType: item?.subN
odeField?.split('-')[2],
SubFlowMapTableName: item?.subNodeField?.split('-')[0],
SubFlowMapTableName: item?.subNodeField?.split('-')[0],
SubFlowMapFieldName: item?.subNodeField?.split('-')[1],
SubFlowMapFieldName: item?.subNodeField?.split('-')[1],
}));
}));
...
@@ -114,13 +116,15 @@ const ConfigSubprocess = (props, ref) => {
...
@@ -114,13 +116,15 @@ const ConfigSubprocess = (props, ref) => {
if (res.code === 0) {
if (res.code === 0) {
res.data.ParentFlowMapList.forEach(item => {
res.data.ParentFlowMapList.forEach(item => {
item.TableFieldNames = item.TableFieldNames.map(ele => ({
item.TableFieldNames = item.TableFieldNames.map(ele => ({
value: `
$
{
item
.
TableName
}
-
$
{
ele
}
-
$
{
item
.
TableType
}
`,
value: `
$
{
item
.
TableName
}
-
$
{
ele
}
`,
label: ele,
label: ele,
}));
}));
});
});
res.data.SubFlowMapInfo.TableFieldNames = res.data.SubFlowMapInfo.TableFieldNames.map(
res.data.SubFlowMapInfo.TableFieldNames = res.data.SubFlowMapInfo.TableFieldNames.map(
item => ({
item => ({
value: `
$
{
res
.
data
.
SubFlowMapInfo
.
TableName
}
-
$
{
item
}
`,
value: `
$
{
res
.
data
.
SubFlowMapInfo
.
TableName
}
-
$
{
item
}
-
$
{
res
.
data
.
SubFlowMapInfo
.
TableType
}
`,
label: item,
label: item,
}),
}),
);
);
...
...
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