Commit 44ee5d3b by zhaochengxiang

增加数据源驱动

parent c0ea6ad9
......@@ -59,6 +59,15 @@ const DatasourceItem = (props) => {
<Row>
{
data && (data.targetParameters||[]).map((param, index) => {
if (param.name === 'driver') {
(param.targetDriverNodeList||[]).forEach(item => {
if (item.driverId === param.value) {
param.value = item.name;
}
})
}
return param.show ? (
<Col className='mt-1' key={index} md={8}>
<Typography.Paragraph title={ `${param.cnName||''}: ${param.value||''}` } ellipsis>
......
......@@ -292,7 +292,7 @@ const UpdateDatasourceModal = (props) => {
(item.name==='driver') ? <Select >
{
(item.targetDriverNodeList||[]).map((item,index) => {
return <Select.Option key={index} value={item.driverId} >{item.cnName||''}</Select.Option>
return <Select.Option key={index} value={item.driverId} >{item.name||''}</Select.Option>
})
}
</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