Commit f98f745f7508a6e35f737c532eb3a5d17eea89fe
1 parent
51a71cdd
fix: DEFECT-1632 场景联动新增的时候,已经选择了还提示请选择
Showing
1 changed file
with
10 additions
and
7 deletions
... | ... | @@ -189,15 +189,18 @@ |
189 | 189 | ]; |
190 | 190 | }); |
191 | 191 | |
192 | - const changeOutTarget = () => { | |
193 | - clearValidate('outTarget'); | |
192 | + const changeOutTarget = (e) => { | |
193 | + if (!e) validateFields(['outTarget']); | |
194 | + else clearValidate('outTarget'); | |
194 | 195 | emit('getActionFormArr'); |
195 | 196 | }; |
196 | - const [registerAction, { getFieldsValue, resetFields, setFieldsValue, validate, clearValidate }] = | |
197 | - useForm({ | |
198 | - schemas: actionSchema, | |
199 | - showActionButtonGroup: false, | |
200 | - }); | |
197 | + const [ | |
198 | + registerAction, | |
199 | + { getFieldsValue, resetFields, setFieldsValue, validate, clearValidate, validateFields }, | |
200 | + ] = useForm({ | |
201 | + schemas: actionSchema, | |
202 | + showActionButtonGroup: false, | |
203 | + }); | |
201 | 204 | |
202 | 205 | // 获取整个执行动作表单值 |
203 | 206 | const getFieldsValueFunc = () => { | ... | ... |