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
74611a86
Commit
74611a86
authored
Apr 01, 2025
by
彭俊龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:工单自动化方案工单模板优化
parent
a4536280
Pipeline
#96647
failed with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
index.js
...manager/workOrder/autoCase/components/CaseModify/index.js
+22
-2
No files found.
src/pages/bsmanager/workOrder/autoCase/components/CaseModify/index.js
View file @
74611a86
...
...
@@ -1607,12 +1607,32 @@ const CaseModify = props => {
}
}
})
console
.
log
(
values
,
'valuesvaluesvalues'
);
setSchemaValues
({
...
schemaValues
,
values
:
formValue
})
console
.
log
(
values
,
formValue
,
'valuesvaluesvalues'
);
postData
.
current
.
scheduledConfig
.
values
=
values
}
setFormVisible
(
false
)
}
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 })
// }
setFormVisible
(
true
)
}
const
validContent
=
<
span
style
=
{{
color
:
'red'
,
fontSize
:
'18px'
}}
>*<
/span>
;
return
(
<
Modal
...
...
@@ -1972,7 +1992,7 @@ const CaseModify = props => {
<
Space
>
<
span
>
是否填写表单:
<
/span
>
<
Switch
checkedChildren
=
"开启"
unCheckedChildren
=
"关闭"
checked
=
{
showForm
}
onChange
=
{(
e
)
=>
setShowForm
(
e
)}
/
>
{
showForm
&&
<
Button
onClick
=
{
()
=>
setFormVisible
(
true
)
}
>
点击查看
<
/Button>
}
{
showForm
&&
<
Button
onClick
=
{
onOpen
}
>
点击查看
<
/Button>
}
<
/Space
>
<
/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