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
3ff3eeb3
Commit
3ff3eeb3
authored
Sep 03, 2021
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改流程功能编辑功能问题
parent
6f589f22
Pipeline
#33967
passed with stages
in 1 minute 5 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
18 deletions
+24
-18
AddFlowsModal.jsx
...ages/platformCenter/bsmanager/workOrder/AddFlowsModal.jsx
+19
-17
ViewModal.jsx
src/pages/platformCenter/bsmanager/workOrder/ViewModal.jsx
+1
-1
incident.jsx
src/pages/platformCenter/bsmanager/workOrder/incident.jsx
+4
-0
No files found.
src/pages/platformCenter/bsmanager/workOrder/AddFlowsModal.jsx
View file @
3ff3eeb3
...
...
@@ -159,26 +159,28 @@ const AddFlowsModal = props => {
callBackSubmit
();
// setLoading(true);
let
aa
=
form
.
getFieldsValue
().
FlowName
var
index
=
aa
.
lastIndexOf
(
"
\
\"
);
aa=aa.substring(index+1,aa.length);
console
.
log
(
aa
)
console
.
log
(
inputValue
)
console
.
log
(
strr
)
if (type == 'edit') {
CM_Event_EditEvenFlow({
if
(
type
==
'add'
)
{
let
index
=
aa
.
lastIndexOf
(
"
\
\"
);
aa=aa.substring(index+1,aa.length);
CM_Event_AddEvenFlow({
eventTypeId: formObj.ID,
eventFlowId: record.ID
,
flowName: aa
,
roles: strr,
order: maxLength,
})
.then(res => {
// setLoading(false);
if (res.msg === '') {
if (res.msg === '
Ok
') {
form.resetFields();
callBackSubmit();
notification.success({
message: '提示',
duration: 3,
description: '
编辑
成功',
description: '
新增
成功',
});
} else {
notification.error({
...
...
@@ -192,27 +194,26 @@ const AddFlowsModal = props => {
notification.error({
message: '提示',
duration: 3,
description: '
编辑
失败',
description: '
新增
失败',
});
setLoading(false);
//
setLoading(false);
});
}
if (type == '
add
') {
CM_Event_
Add
EvenFlow({
if (type == '
edit
') {
CM_Event_
Edit
EvenFlow({
eventTypeId: formObj.ID,
flowName: aa
,
eventFlowId: record.ID
,
roles: strr,
order: maxLength,
})
.then(res => {
// setLoading(false);
if (res.msg === '
Ok
') {
if (res.msg === '') {
form.resetFields();
callBackSubmit();
notification.success({
message: '提示',
duration: 3,
description: '
新增
成功',
description: '
编辑
成功',
});
} else {
notification.error({
...
...
@@ -226,11 +227,12 @@ const AddFlowsModal = props => {
notification.error({
message: '提示',
duration: 3,
description: '
新增
失败',
description: '
编辑
失败',
});
//
setLoading(false);
setLoading(false);
});
}
};
...
...
src/pages/platformCenter/bsmanager/workOrder/ViewModal.jsx
View file @
3ff3eeb3
...
...
@@ -162,7 +162,7 @@ const ViewModal = props => {
},[
visible
,
flag
])
const
onSumbit
=
()
=>
{
callBackSubmit
()
}
const
addView
=
()
=>
{
...
...
src/pages/platformCenter/bsmanager/workOrder/incident.jsx
View file @
3ff3eeb3
...
...
@@ -422,6 +422,9 @@ const incident = () => {
const
onOK1
=
()
=>
{
setProcessVisible
(
false
)
}
const
onOK11
=
()
=>
{
setViewVisible
(
false
)
}
return
(
<
div
className=
{
styles
.
incidentContainer
}
>
<
div
className=
{
styles
.
contentContainers
}
>
...
...
@@ -550,6 +553,7 @@ const incident = () => {
visible=
{
viewVisible
}
onCancel=
{
()
=>
setViewVisible
(
false
)
}
title2=
{
title2
}
callBackSubmit=
{
onOK11
}
/>
</
div
>
</
div
>
...
...
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