Commit 64924ae8 authored by 邓超's avatar 邓超

fix: 修改节点外部字段显示bug

parent 0c7c176c
Pipeline #64699 waiting for manual action with stages
...@@ -48,6 +48,21 @@ const ConfigNodeMsg = (props, ref) => { ...@@ -48,6 +48,21 @@ const ConfigNodeMsg = (props, ref) => {
aheadHandle: aheadHandle || aheadHandle === 0 ? aheadHandle : 1, aheadHandle: aheadHandle || aheadHandle === 0 ? aheadHandle : 1,
NodeHandling: NodeHandling || NodeHandling === 0 ? NodeHandling : 1, NodeHandling: NodeHandling || NodeHandling === 0 ? NodeHandling : 1,
}); });
loadEventFields({ eventTableName: editMsg.TableName }).then(res => {
if (res.code === 0) {
let initList = [];
res.data.forEach(item => {
item.root.forEach(ele => {
initList.push(ele.fieldName);
});
});
// 处理外部字段
Object.keys(form.getFieldsValue()).forEach(key => {
saveOutFieldsLength(key, initList);
});
setFiledList(initList);
}
});
setNodeMsg(editMsg); setNodeMsg(editMsg);
}; };
// 获取表名 // 获取表名
...@@ -197,7 +212,7 @@ const ConfigNodeMsg = (props, ref) => { ...@@ -197,7 +212,7 @@ const ConfigNodeMsg = (props, ref) => {
}); });
let obj = {}; let obj = {};
obj[fieldName] = Fields; obj[fieldName] = Fields;
console.log(obj, 'ojoafds'); console.log(obj, fieldName, filedList, 'ojoafds');
nodeChage(fieldName, Fields); nodeChage(fieldName, Fields);
form.setFieldsValue(obj); form.setFieldsValue(obj);
saveOutFieldsLength(fieldName, filedList); saveOutFieldsLength(fieldName, filedList);
......
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