Commit db08e5a2 authored by 彭俊龙's avatar 彭俊龙

fix:修复自动化工单配置方案名称输入框无法删除问题

parent 30d1a3b0
Pipeline #96389 failed with stages
...@@ -780,9 +780,6 @@ const CaseModify = props => { ...@@ -780,9 +780,6 @@ const CaseModify = props => {
conditionConfig: conditionConfig ?? postData.current.conditionConfig, conditionConfig: conditionConfig ?? postData.current.conditionConfig,
scheduledConfig: scheduledConfig ?? postData.current.scheduledConfig, scheduledConfig: scheduledConfig ?? postData.current.scheduledConfig,
}; };
if (schemeName) {
setConfigInfo({ ...configInfo, schemeName: schemeName });
}
if (flowId) { if (flowId) {
const { FlowName, EventName, SubFlowEventConfigID } = flowData.current.find( const { FlowName, EventName, SubFlowEventConfigID } = flowData.current.find(
v => v.SubFlowId === flowId, v => v.SubFlowId === flowId,
...@@ -1223,7 +1220,10 @@ const CaseModify = props => { ...@@ -1223,7 +1220,10 @@ const CaseModify = props => {
style={{ width: '450px' }} style={{ width: '450px' }}
value={configInfo.schemeName} value={configInfo.schemeName}
disabled={mode === 'edit'} disabled={mode === 'edit'}
onChange={v => generatePostData({ schemeName: v.target.value })} onChange={v => {
setConfigInfo({ ...configInfo, schemeName: v.target.value });
generatePostData({ schemeName: v.target.value })
}}
/> />
<p style={{ position: 'absolute', color: 'red' }}>{configInfo.schemeNameErrMsg}</p> <p style={{ position: 'absolute', color: 'red' }}>{configInfo.schemeNameErrMsg}</p>
</Col> </Col>
......
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