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
ce438be4
Commit
ce438be4
authored
Jun 30, 2023
by
涂伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://g.civnet.cn:8443/ReactWeb5/maintenance
parents
1c655002
e2679c15
Pipeline
#75279
passed with stages
Changes
4
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
19 deletions
+40
-19
index.jsx
src/components/RuleConfig/index.jsx
+15
-4
AddModal.jsx
...ages/bsmanager/patrolMaintenance/maintenance/AddModal.jsx
+0
-0
FlowChartRt.jsx
...workOrder/workflowEdit/workFlowComponents/FlowChartRt.jsx
+18
-15
api.js
src/services/maintenance/api.js
+7
-0
No files found.
src/components/RuleConfig/index.jsx
View file @
ce438be4
...
@@ -10,7 +10,16 @@ const fnList = [
...
@@ -10,7 +10,16 @@ const fnList = [
{
label
:
'上报人工单统计'
,
value
:
'$fn.caseNum()'
},
{
label
:
'上报人工单统计'
,
value
:
'$fn.caseNum()'
},
];
];
const
RuleConfig
=
props
=>
{
const
RuleConfig
=
props
=>
{
const
{
visible
,
handleCancel
,
fieldList
,
onSubumit
,
RuleContent
,
flag
,
flowID
}
=
props
;
const
{
visible
,
handleCancel
,
fieldList
,
onSubumit
,
RuleContent
,
flag
,
flowID
,
showInsertFn
,
}
=
props
;
const
[
rule
,
setRule
]
=
useState
([]);
const
[
rule
,
setRule
]
=
useState
([]);
const
[
expandedKey
,
setExpandedKey
]
=
useState
(
''
);
// 默认展开项
const
[
expandedKey
,
setExpandedKey
]
=
useState
(
''
);
// 默认展开项
const
[
currentSelectId
,
setCurrentSelectId
]
=
useState
(
''
);
// 选中得节点
const
[
currentSelectId
,
setCurrentSelectId
]
=
useState
(
''
);
// 选中得节点
...
@@ -109,9 +118,11 @@ const RuleConfig = props => {
...
@@ -109,9 +118,11 @@ const RuleConfig = props => {
<
div
className=
{
styles
.
rightContent
}
>
<
div
className=
{
styles
.
rightContent
}
>
{
flag
==
1
&&
<
div
className=
{
styles
.
title
}
>
符合以下条件时工单扭转到对应的节点
</
div
>
}
{
flag
==
1
&&
<
div
className=
{
styles
.
title
}
>
符合以下条件时工单扭转到对应的节点
</
div
>
}
<
div
className=
{
styles
.
textAreaBox
}
>
<
div
className=
{
styles
.
textAreaBox
}
>
<
Dropdown
overlay=
{
fnListRender
}
placement=
"bottom"
arrow
>
{
flag
==
1
&&
(
<
div
className=
{
styles
.
insertFn
}
>
插入函数
</
div
>
<
Dropdown
overlay=
{
fnListRender
}
placement=
"bottom"
arrow
>
</
Dropdown
>
<
div
className=
{
styles
.
insertFn
}
>
插入函数
</
div
>
</
Dropdown
>
)
}
<
TextArea
<
TextArea
id=
"ruleText"
id=
"ruleText"
...
...
src/pages/bsmanager/patrolMaintenance/maintenance/AddModal.jsx
View file @
ce438be4
This diff is collapsed.
Click to expand it.
src/pages/bsmanager/workOrder/workflowEdit/workFlowComponents/FlowChartRt.jsx
View file @
ce438be4
...
@@ -155,17 +155,21 @@ const FlowChart = props => {
...
@@ -155,17 +155,21 @@ const FlowChart = props => {
delLinks
.
add
(
item
.
data
.
LineId
);
delLinks
.
add
(
item
.
data
.
LineId
);
}
}
});
});
CheckDoingFlowNodes
({
activityIds
:
[...
delNodes
]
}).
then
(
res
=>
{
if
(
delNodes
.
size
===
0
)
{
if
(
res
.
code
===
0
)
{
delNode
([...
delNodeIds
],
[...
delNodes
],
[...
delLinks
]);
if
(
res
.
data
>
0
)
{
}
else
{
showCloseList
([...
delNodeIds
],
[...
delNodes
],
[...
delLinks
],
res
.
data
);
CheckDoingFlowNodes
({
activityIds
:
[...
delNodes
]
}).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
if
(
res
.
data
>
0
)
{
showCloseList
([...
delNodeIds
],
[...
delNodes
],
[...
delLinks
],
res
.
data
);
}
else
{
showDeleteConfirm
([...
delNodeIds
],
[...
delNodes
],
[...
delLinks
]);
}
}
else
{
}
else
{
showDeleteConfirm
([...
delNodeIds
],
[...
delNodes
],
[...
delLinks
]
);
message
.
error
(
res
.
msg
);
}
}
}
else
{
});
message
.
error
(
res
.
msg
);
}
}
});
return
false
;
return
false
;
};
};
...
@@ -1039,9 +1043,11 @@ const FlowChart = props => {
...
@@ -1039,9 +1043,11 @@ const FlowChart = props => {
}).
then
(
response
=>
{
}).
then
(
response
=>
{
if
(
response
.
code
===
0
)
{
if
(
response
.
code
===
0
)
{
console
.
log
(
currentNode
.
current
);
console
.
log
(
currentNode
.
current
);
let
list
=
JSON
.
parse
(
JSON
.
stringify
(
currentNode
.
current
));
// let list = JSON.parse(JSON.stringify(currentNode.current));
list
.
FlowNodeBackfillConfigs
=
jsonData
(
list
.
FlowNodeBackfillConfigs
);
// list.FlowNodeBackfillConfigs = jsonData(list.FlowNodeBackfillConfigs);
currentNode
.
current
=
list
;
// currentNode.current = list;
let
flowNodeBackfillConfigs
=
currentNode
.
current
.
FlowNodeBackfillConfigs
;
currentNode
.
current
.
FlowNodeBackfillConfigs
=
jsonData
(
flowNodeBackfillConfigs
);
console
.
log
(
currentNode
.
current
);
console
.
log
(
currentNode
.
current
);
FlowNodeSave
({
FlowNodeSave
({
PreviewImage
:
response
.
data
,
PreviewImage
:
response
.
data
,
...
@@ -1083,10 +1089,8 @@ const FlowChart = props => {
...
@@ -1083,10 +1089,8 @@ const FlowChart = props => {
let
listArr
=
[];
let
listArr
=
[];
val
.
map
((
item
,
index
)
=>
{
val
.
map
((
item
,
index
)
=>
{
console
.
log
(
item
);
console
.
log
(
item
);
debugger
;
if
(
!
item
.
Config
)
{
if
(
!
item
.
Config
)
{
console
.
log
(
item
);
console
.
log
(
item
);
debugger
;
let
arr
=
[];
let
arr
=
[];
arr
.
push
({
arr
.
push
({
mapServer
:
item
.
schemeName
,
mapServer
:
item
.
schemeName
,
...
@@ -1278,7 +1282,6 @@ const FlowChart = props => {
...
@@ -1278,7 +1282,6 @@ const FlowChart = props => {
}),
}),
1.2
,
// 压缩比例
1.2
,
// 压缩比例
base64
=>
{
base64
=>
{
console
.
log
(
base64
);
SaveWorkFlowImage
({
SaveWorkFlowImage
({
flowName
:
flowData
.
flowName
,
flowName
:
flowData
.
flowName
,
base64Data
:
base64
,
base64Data
:
base64
,
...
...
src/services/maintenance/api.js
View file @
ce438be4
...
@@ -47,3 +47,9 @@ export const CM_XWBPlan_ChangeOrder = planIds =>
...
@@ -47,3 +47,9 @@ export const CM_XWBPlan_ChangeOrder = planIds =>
// 获取父级维保模板
// 获取父级维保模板
export
const
GetParentDeviceTemplate
=
query
=>
export
const
GetParentDeviceTemplate
=
query
=>
get
(
`
${
PUBLISH_SERVICE
}
/WorkOrderCenter/GetParentDeviceTemplate`
,
query
);
get
(
`
${
PUBLISH_SERVICE
}
/WorkOrderCenter/GetParentDeviceTemplate`
,
query
);
export
const
GetFeedbackTableFields
=
query
=>
get
(
`
${
PUBLISH_SERVICE
}
/WorkOrderCenter/GetFeedbackTableFields`
,
query
);
export
const
GetAccountConfigInfo
=
query
=>
get
(
`/PandaWorkFlow/WorkFlow/AccountManage/GetAccountConfigInfo`
,
query
);
\ No newline at end of file
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