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
3af890d3
Commit
3af890d3
authored
Apr 02, 2025
by
彭俊龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:自动化工单测试优化
parent
9c3f424f
Pipeline
#96680
canceled with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
20 deletions
+14
-20
index.js
...manager/workOrder/autoCase/components/CaseModify/index.js
+13
-19
index.js
src/pages/bsmanager/workOrder/autoCase/index.js
+1
-1
No files found.
src/pages/bsmanager/workOrder/autoCase/components/CaseModify/index.js
View file @
3af890d3
...
...
@@ -36,7 +36,7 @@ import imgStart from '@/assets/images/workFlow/nodeStart.png';
import
styles
from
'./index.less'
;
import
*
as
go
from
'gojs'
;
import
{
isObject
}
from
'lodash'
;
import
{
FormRender
}
from
'panda-xform'
;
//
import { FormRender } from 'panda-xform';
const
days
=
moment
().
daysInMonth
();
const
allDays
=
[...
Array
.
from
({
length
:
days
+
1
},
(
_
,
i
)
=>
i
+
1
)];
const
weeks
=
[
'星期一'
,
'星期二'
,
'星期三'
,
'星期四'
,
'星期五'
,
'星期六'
,
'星期天'
];
...
...
@@ -183,7 +183,7 @@ const CaseModify = props => {
{
let
res
;
if
(
TriggerMethod
===
'定时触发'
)
{
setShowForm
(
ScheduledConfig
.
Values
.
length
>
0
);
getBizMetaData
(
detail
);
res
=
await
GetConditionConfigFlowNode
({
flowId
:
FlowId
});
}
else
{
...
...
@@ -381,6 +381,7 @@ const CaseModify = props => {
};
const
getBizMetaData
=
async
detail
=>
{
if
(
!
flowCenterData
.
length
)
return
;
const
{
ID
,
...
...
@@ -397,13 +398,14 @@ const CaseModify = props => {
ConditionConfig
,
}
=
detail
;
let
paramObj
=
flowCenterData
.
find
(
v
=>
v
.
flowName
===
FlowName
&&
v
.
eventName
===
EventName
);
console
.
log
(
paramObj
,
EventName
,
FlowName
,
'paramObjparamObj'
)
if
(
paramObj
)
{
paramObj
=
{
...
paramObj
,
userId
:
1
,
};
const
vals
=
ScheduledConfig
.
Values
setShowForm
(
vals
.
length
>
0
);
const
{
code
,
data
,
msg
}
=
await
GetBizMetaData
(
paramObj
);
const
{
formJson
,
values
}
=
data
[
0
];
const
jsonObj
=
JSON
.
parse
(
formJson
)
...
...
@@ -421,6 +423,9 @@ const CaseModify = props => {
formJsonRef
.
current
=
jsonObj
setSchemaValues
({
values
:
formValues
,
formJson
:
jsonObj
});
}
else
{
formJsonRef
.
current
=
null
setSchemaValues
({
values
:
[],
formJson
:
{}
});
}
};
...
...
@@ -836,6 +841,7 @@ const CaseModify = props => {
setNodeNames
(
nodeNames
);
if
(
configInfo
.
triggerType
==
'定时触发'
)
{
const
d
=
flowData
.
current
.
find
(
v
=>
v
.
SubFlowId
==
flowId
);
console
.
log
(
flowData
.
current
,
d
,
'wwwwww'
)
if
(
d
){
const
{
FlowName
,
EventName
}
=
d
getBizMetaData
({
...
...
@@ -1626,21 +1632,9 @@ const CaseModify = props => {
}
const
onOpen
=
()
=>
{
//前段已保存的表单数据
// const vals = postData.current.scheduledConfig.values;
// if(vals.length > 0){
// const formvals = schemaValues.values(v=> {
// const val = vals.find(x=> x.fieldName === v.fieldName)
// if(val){
// return {
// ...v,
// fieldValue: val.fieldValue
// }
// }
// return v
// })
// setSchemaValues({ ...schemaValues, values: formvals })
// }
if
(
Object
.
keys
(
schemaValues
.
formJson
).
length
===
0
){
message
.
warn
(
'未获取到表单配置'
)
}
setFormVisible
(
true
)
}
...
...
@@ -2048,7 +2042,7 @@ const CaseModify = props => {
onOk
=
{
onOK
}
destroyOnClose
>
<
FormRender
schemaValues
=
{
schemaValues
}
ref
=
{
formRef
}
/
>
{
/* <FormRender schemaValues={schemaValues} ref={formRef} /> */
}
<
/Modal
>
<
RuleConfig
RuleContent
=
{
ruleContent
.
current
}
...
...
src/pages/bsmanager/workOrder/autoCase/index.js
View file @
3af890d3
...
...
@@ -191,7 +191,7 @@ const AutoCase = props => {
const
getFlowCenterData
=
async
()
=>
{
const
{
code
,
data
,
msg
}
=
await
GetFlowCenterData
({
userID
:
1
,
//
userID: 1,
systemType
:
'业务系统'
,
isFilterOrderMode
:
0
,
isInternal
:
0
...
...
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