Commit 4a69fced by zhaochengxiang

bug fix

parent b0e1d23d
...@@ -230,6 +230,14 @@ const FC = (props) => { ...@@ -230,6 +230,14 @@ const FC = (props) => {
if (index !== -1) { if (index !== -1) {
item.typeName = supportedTargetTypes[index].targetName; item.typeName = supportedTargetTypes[index].targetName;
} }
(item.targetConfParameters??[]).forEach(_item => {
if (_item.name === 'tableFilterParam') {
item.tableWhiteList = _item.value
} else if (_item.name === 'tableBlacklist') {
item.tableBlackList = _item.value
}
})
}); });
if (sortedInfo.field && sortedInfo.order) { if (sortedInfo.field && sortedInfo.order) {
...@@ -242,9 +250,7 @@ const FC = (props) => { ...@@ -242,9 +250,7 @@ const FC = (props) => {
}) })
} }
console.log('newTasks', newTasks);
newTasks = paginate(newTasks, pagination.pageNum, pagination.pageSize); newTasks = paginate(newTasks, pagination.pageNum, pagination.pageSize);
return newTasks; return newTasks;
} }
......
...@@ -106,7 +106,7 @@ const FC = (props) => { ...@@ -106,7 +106,7 @@ const FC = (props) => {
let _fieldsValue = {}; let _fieldsValue = {};
prevTask?.targetConfParameters?.forEach(item => { prevTask?.targetConfParameters?.forEach(item => {
if (item.name === 'schema') { if (item.name === 'schema') {
setSelectedSchemas(item.value?.split(',').filter(value=> recentSchemas.indexOf(value)!==-1)); setSelectedSchemas((item.value??'').split(',').filter(value=> recentSchemas.indexOf(value)!==-1));
} else { } else {
_fieldsValue[item.name||''] = item.value||''; _fieldsValue[item.name||''] = item.value||'';
} }
......
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