Commit 74611a86 authored by 彭俊龙's avatar 彭俊龙

feat:工单自动化方案工单模板优化

parent a4536280
Pipeline #96647 failed with stages
......@@ -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>
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment