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
11430cd3
Commit
11430cd3
authored
Aug 15, 2023
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '字段名修改'
parent
b9070a9d
Pipeline
#77547
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
FlowChart.jsx
...r/workOrder/workflowEdit/workFlowComponents/FlowChart.jsx
+5
-1
FlowChartRt.jsx
...workOrder/workflowEdit/workFlowComponents/FlowChartRt.jsx
+4
-4
No files found.
src/pages/bsmanager/workOrder/workflowEdit/workFlowComponents/FlowChart.jsx
View file @
11430cd3
...
...
@@ -110,7 +110,9 @@ const FlowChart = props => {
if
(
res
.
code
===
0
)
{
message
.
success
(
'删除成功 '
);
}
else
{
message
.
error
({
content
:
<
div
style=
{
{
whiteSpace
:
'pre-line'
,
textAlign
:
'justify'
}
}
>
{
res
.
msg
}
</
div
>
});
message
.
error
({
content
:
<
div
style=
{
{
whiteSpace
:
'pre-line'
,
textAlign
:
'justify'
}
}
>
{
res
.
msg
}
</
div
>,
});
}
});
console
.
log
(
delNodes
,
delLinks
,
'fffff'
);
...
...
@@ -166,6 +168,7 @@ const FlowChart = props => {
currentNode
.
current
=
nodeData
;
setNodeKey
(
nodeData
.
key
);
setEditMsg
(
nodeData
);
debugger
;
setModalType
(
'edit'
);
setVisible
(
true
);
});
...
...
@@ -1080,6 +1083,7 @@ const FlowChart = props => {
// 节点数据改边
const
nodeChage
=
(
key
,
value
)
=>
{
console
.
log
(
key
,
value
);
debugger
;
let
obj
=
JSON
.
parse
(
JSON
.
stringify
(
currentNode
.
current
));
obj
[
key
]
=
value
;
const
nodeDetail
=
JSON
.
stringify
(
obj
);
...
...
src/pages/bsmanager/workOrder/workflowEdit/workFlowComponents/FlowChartRt.jsx
View file @
11430cd3
...
...
@@ -1051,11 +1051,11 @@ const FlowChart = props => {
currentNode
.
current
.
FlowNodeBackfillConfigs
=
jsonData
(
flowNodeBackfillConfigs
);
let
data
=
isJSON
(
currentNode
.
current
.
BtnAliasNameConfig
);
// currentNode.current.BtnAliasNameConfig &&
// JSON.parse(currentNode.current.BtnAliasNameConfig.toString()).saveB
ut
AliasName;
// JSON.parse(currentNode.current.BtnAliasNameConfig.toString()).saveB
tn
AliasName;
if
(
currentNode
.
current
.
BtnAliasNameConfig
)
{
if
(
!
data
)
{
let
BtnAliasNameConfig
=
JSON
.
stringify
({
saveB
ut
AliasName
:
currentNode
.
current
.
BtnAliasNameConfig
,
saveB
tn
AliasName
:
currentNode
.
current
.
BtnAliasNameConfig
,
});
currentNode
.
current
.
BtnAliasNameConfig
=
BtnAliasNameConfig
;
}
...
...
@@ -1314,11 +1314,11 @@ const FlowChart = props => {
debugger
;
// let data =
// i.BtnAliasNameConfig &&
// JSON.parse(i.BtnAliasNameConfig.toString()).saveB
ut
AliasName;
// JSON.parse(i.BtnAliasNameConfig.toString()).saveB
tn
AliasName;
if
(
i
.
BtnAliasNameConfig
)
{
if
(
!
data
)
{
let
BtnAliasNameConfig
=
JSON
.
stringify
({
saveB
ut
AliasName
:
i
.
BtnAliasNameConfig
,
saveB
tn
AliasName
:
i
.
BtnAliasNameConfig
,
});
i
.
BtnAliasNameConfig
=
BtnAliasNameConfig
;
}
...
...
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