Commit af2d48f3 authored by 邓超's avatar 邓超

fix: 修改流程样式编码写死问题

parent 8dcaa56d
Pipeline #46001 passed with stages
in 7 minutes 16 seconds
import React, { useEffect } from 'react';
import React, { useEffect, useState } from 'react';
import { CMFlowGet, CMFlowPost } from '@/services/flow/flow';
import { Form, Modal, Input, Radio, Select, notification } from 'antd';
const { Option } = Select;
......@@ -7,6 +7,7 @@ const { TextArea } = Input;
const ProcessConfig = props => {
const { onSubumit, handleCancel, visible, processMsg } = props;
const [form] = Form.useForm();
const [flag, setFlag] = useState(0);
useEffect(() => {
form.resetFields();
if (visible) {
......@@ -18,6 +19,7 @@ const ProcessConfig = props => {
CMFlowGet({ flowId: processMsg.ID }).then(res => {
if (res.code === 0) {
form.setFieldsValue(res.data);
setFlag(flag + 1);
}
});
};
......@@ -93,8 +95,8 @@ const ProcessConfig = props => {
</Form.Item>
<Form.Item label="编码样式" name="coding12Checked">
<Radio.Group>
<Radio value={false}>GIS-2021-0000001 (前缀长度 + 13 位)</Radio>
<Radio value>GIS000000001 (始终 12 位)</Radio>
<Radio value={false}>{form.getFieldValue('codingDefaultText')}</Radio>
<Radio value>{form.getFieldValue('coding12Text')}</Radio>
</Radio.Group>
</Form.Item>
<Form.Item label="接口配置" name="interfaceConfig">
......
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