Commit 21903db1 authored by 涂伟's avatar 涂伟

fix: '表配置优化'

parent fef416b6
Pipeline #67828 failed with stages
......@@ -303,7 +303,7 @@ const EditableCell = ({
margin: 0,
}}
name={dataIndex}
valuePropName={record.IsAddFieldConfig ? 'checked' : ''}
valuePropName="checked"
>
<Checkbox onChange={saveAddCheckBox} />
</Form.Item>
......
......@@ -500,7 +500,7 @@ const AddModal = props => {
const [previewModal, setPreviewModal] = useState(false);
const [editTypeModal, setEditTypeModal] = useState(false);
const [flowTableData, setFlowTableData] = useState([]);
const [evenFlowId, setEvenFlowId] = useState('');
const [eventFlowId, setEventFlowId] = useState('');
const [show, setShow] = useState('hidden');
const [visibleChecked, setVisibleChecked] = useState(false);
const [initWay, setInitWay] = useState(); // 初始上报方式
......@@ -563,7 +563,7 @@ const AddModal = props => {
ID: formObj.ID,
...obj,
Order,
EvenFlowId: evenFlowId,
EventFlowId: eventFlowId,
}).then(res => {
setLoading(false);
if (res.msg === 'Ok') {
......@@ -1137,8 +1137,9 @@ const AddModal = props => {
GetCM_Event_LoadEvenFlows({ eventTypeId: formObj.ID }).then(res => {
if (res.msg === 'Ok') {
if (res.data.length && res.data.length === 1) {
setEvenFlowId(res.data[0].ID);
setEventFlowId(res.data[0].ID);
} else {
setEventFlowId('')
setFlowTableData(res.data);
setEditTypeModal(true);
}
......@@ -1218,7 +1219,7 @@ const AddModal = props => {
};
const chooseFlowOk = prop => {
setEvenFlowId(prop);
setEventFlowId(prop);
};
const pickFiled = fileds => {
......@@ -2117,6 +2118,7 @@ const AddModal = props => {
tableData={flowTableData}
onCancel={() => {
setEditTypeModal(false);
setValue(0)
}}
callBackSubmit={chooseFlowOk}
/>
......
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