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
a4536280
Commit
a4536280
authored
Apr 01, 2025
by
彭俊龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:工单自动化方案工单模板优化
parent
3c5e8c62
Pipeline
#96646
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
index.js
...manager/workOrder/autoCase/components/CaseModify/index.js
+5
-11
No files found.
src/pages/bsmanager/workOrder/autoCase/components/CaseModify/index.js
View file @
a4536280
...
...
@@ -408,15 +408,16 @@ const CaseModify = props => {
const
{
formJson
,
values
}
=
data
[
0
];
const
jsonObj
=
JSON
.
parse
(
formJson
)
const
formValues
=
vals
.
length
>
0
?
values
.
map
(
v
=>
{
const
d
=
vals
.
find
(
x
=>
v
.
fieldName
===
x
.
f
ieldName
)
const
d
=
vals
.
find
(
x
=>
v
.
fieldName
===
x
.
F
ieldName
)
if
(
d
){
return
{
...
v
,
fieldValue
:
d
.
f
ieldValue
fieldValue
:
d
.
F
ieldValue
}
}
return
v
})
:
values
console
.
log
(
formValues
,
'formValuesformValuesformValues'
);
formJsonRef
.
current
=
jsonObj
setSchemaValues
({
values
:
formValues
,
formJson
:
jsonObj
});
...
...
@@ -1969,19 +1970,12 @@ const CaseModify = props => {
{
configInfo
.
triggerType
==
'定时触发'
&&
<
div
style
=
{{
marginTop
:
'10px'
}}
>
<
Space
>
<
span
>
启用工单模板
:
<
/span
>
<
span
>
是否填写表单
:
<
/span
>
<
Switch
checkedChildren
=
"开启"
unCheckedChildren
=
"关闭"
checked
=
{
showForm
}
onChange
=
{(
e
)
=>
setShowForm
(
e
)}
/
>
{
showForm
&&
<
Button
onClick
=
{()
=>
setFormVisible
(
true
)}
>
点击查看
<
/Button>
}
<
/Space
>
<
/div
>
}
{
showForm
&&
(
<
div
style
=
{{
marginTop
:
'10px'
}}
>
<
Space
>
<
span
>
工单移交模板:
<
/span
>
<
Button
onClick
=
{()
=>
setFormVisible
(
true
)}
>
点击查看
<
/Button
>
<
/Space
>
<
/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