|
@@ -583,9 +583,13 @@ function CommitAuditModal(props) {
|
|
|
const currentFieldID = Object.keys(changedFields)[0];
|
|
|
const formItem = allFormItem.find(item => item.props.id === currentFieldID);
|
|
|
|
|
|
- // 记录TextNote的值
|
|
|
+ // 记录TextNote 以及其他未填写的值
|
|
|
for (let index = 0; index < allFormItem.length; index++) {
|
|
|
const tempFormItem = allFormItem[index];
|
|
|
+ // 跳过DIYTable控件
|
|
|
+ if (tempFormItem.componentName === 'DIYTable') {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
// 没找到就给默认值
|
|
|
if (!componentValue.find(item => item.id === tempFormItem.props.id)) {
|
|
|
if (tempFormItem.componentName === 'TextNote') {
|
|
@@ -629,7 +633,6 @@ function CommitAuditModal(props) {
|
|
|
value: [changedFields[currentFieldID]],
|
|
|
});
|
|
|
}
|
|
|
- console.log(componentValue);
|
|
|
setFormComponentValues({
|
|
|
...formComponentValues,
|
|
|
[currentNodeID]: componentValue,
|