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

fix: '表配置优化'

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