Commit 567b616b by zhaochengxiang

代理数据源信息

parent 31a6fbdb
......@@ -155,13 +155,11 @@ const UpdateDatasourceModal = (props) => {
_proxyDatasourceFieldsValue[data.proxyDatasource.name||''] = data.proxyDatasource.value||'';
}
proxyDatasourceForm.setFieldsValue(data.proxyDatasource);
proxyDatasourceForm.setFieldsValue(_proxyDatasourceFieldsValue);
}
const onDatabaseChange = (value) => {
reset();
setSelectedDatabaseKey(value);
getCurrentSupportedDatasourceTypies(allSupportedDatasourceTypies, value);
}
......@@ -177,10 +175,6 @@ const UpdateDatasourceModal = (props) => {
scope: ((scope||[]).length>2?scope[2]:'')
}};
if (action === 'edit') {
newDatasource = {...newDatasource, ...currentDatasource};
}
//深拷贝
newDatasource = JSON.parse(JSON.stringify(newDatasource));
newDatasource && (newDatasource.targetParameters||[]).forEach(item => {
......
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