Commit a54c98ba authored by 涂伟's avatar 涂伟

fix: 打印属性回显问题

parent 4f04e5fc
Pipeline #74468 passed with stages
...@@ -402,7 +402,7 @@ const FlowModal = props => { ...@@ -402,7 +402,7 @@ const FlowModal = props => {
}, [visible]); }, [visible]);
// 获取表单回显 // 获取表单回显
const getFormData = () => { const getFormData = () => {
form.setFieldsValue({ ...msg }); form.setFieldsValue({ ...msg, isPrint: Boolean(msg.isPrint) });
setFlag(flag + 1); setFlag(flag + 1);
console.log(form.getFieldValue('Prefix'), 'fffff'); console.log(form.getFieldValue('Prefix'), 'fffff');
}; };
...@@ -649,7 +649,7 @@ const FlowModal = props => { ...@@ -649,7 +649,7 @@ const FlowModal = props => {
</Radio> </Radio>
</Radio.Group> </Radio.Group>
</Form.Item> </Form.Item>
<Form.Item label="是否打印" name="isPrint"> <Form.Item label="是否打印" name="isPrint" valuePropName="checked">
<Switch checkedChildren="是" unCheckedChildren="否" /> <Switch checkedChildren="是" unCheckedChildren="否" />
</Form.Item> </Form.Item>
<Form.Item label="打印模板" name="printTemp"> <Form.Item label="打印模板" name="printTemp">
......
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