|
@@ -459,7 +459,8 @@ function CommitAuditModal(props) {
|
|
};
|
|
};
|
|
|
|
|
|
const onDIYTableChange = (value, id, label) => {
|
|
const onDIYTableChange = (value, id, label) => {
|
|
- const currentNodeID = auditList[currentTab].nodeId;
|
|
|
|
|
|
+ const currentNodeID = auditList[currentTab]?.nodeId;
|
|
|
|
+ if (!currentNodeID) return;
|
|
const oldData = formComponentValues[currentNodeID] || [];
|
|
const oldData = formComponentValues[currentNodeID] || [];
|
|
|
|
|
|
const ids = id.split(';');
|
|
const ids = id.split(';');
|
|
@@ -551,7 +552,8 @@ function CommitAuditModal(props) {
|
|
};
|
|
};
|
|
|
|
|
|
const onFormValueChange = (changedFields, allValues) => {
|
|
const onFormValueChange = (changedFields, allValues) => {
|
|
- const currentNodeID = auditList[currentTab].nodeId;
|
|
|
|
|
|
+ const currentNodeID = auditList[currentTab]?.nodeId;
|
|
|
|
+ if (!currentNodeID) return;
|
|
const allFormItem = auditList[currentTab].items;
|
|
const allFormItem = auditList[currentTab].items;
|
|
const componentValue = formComponentValues[currentNodeID] || [];
|
|
const componentValue = formComponentValues[currentNodeID] || [];
|
|
const currentFieldID = Object.keys(changedFields)[0];
|
|
const currentFieldID = Object.keys(changedFields)[0];
|
|
@@ -783,6 +785,8 @@ function CommitAuditModal(props) {
|
|
onSubmitNextNode(params);
|
|
onSubmitNextNode(params);
|
|
} catch (error) {
|
|
} catch (error) {
|
|
console.error(error);
|
|
console.error(error);
|
|
|
|
+ setLoading(false);
|
|
|
|
+ message.error('请求失败');
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|