Commit 4461cb8d by zhaochengxiang

增加数据源驱动

parent 44ee5d3b
...@@ -62,7 +62,7 @@ const DatasourceItem = (props) => { ...@@ -62,7 +62,7 @@ const DatasourceItem = (props) => {
if (param.name === 'driver') { if (param.name === 'driver') {
(param.targetDriverNodeList||[]).forEach(item => { (param.targetDriverNodeList||[]).forEach(item => {
if (item.driverId === param.value) { if (item.driverIdStr === param.value) {
param.value = item.name; param.value = item.name;
} }
}) })
......
...@@ -292,7 +292,7 @@ const UpdateDatasourceModal = (props) => { ...@@ -292,7 +292,7 @@ const UpdateDatasourceModal = (props) => {
(item.name==='driver') ? <Select > (item.name==='driver') ? <Select >
{ {
(item.targetDriverNodeList||[]).map((item,index) => { (item.targetDriverNodeList||[]).map((item,index) => {
return <Select.Option key={index} value={item.driverId} >{item.name||''}</Select.Option> return <Select.Option key={index} value={item.driverIdStr} >{item.name||''}</Select.Option>
}) })
} }
</Select> : <Select > </Select> : <Select >
......
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