|
@@ -5,6 +5,7 @@ import DeleteBox from '../common/deleteBox/deleteBox'
|
|
|
import EmptyContent from '../common/emptyContent/index'
|
|
import EmptyContent from '../common/emptyContent/index'
|
|
|
import DataConnectBox from '../dataSourceDetail/dataConnectBox'
|
|
import DataConnectBox from '../dataSourceDetail/dataConnectBox'
|
|
|
import ListFilter from '../common/listFilter/index'
|
|
import ListFilter from '../common/listFilter/index'
|
|
|
|
|
+import CusIcon from '../common/cusIcon/index'
|
|
|
import './list.less'
|
|
import './list.less'
|
|
|
const CardGrid = Card.Grid
|
|
const CardGrid = Card.Grid
|
|
|
const { Content } = Layout
|
|
const { Content } = Layout
|
|
@@ -241,17 +242,19 @@ class DataConnect extends React.Component {
|
|
|
<Col style={{ display: 'flex' }}>
|
|
<Col style={{ display: 'flex' }}>
|
|
|
</Col>
|
|
</Col>
|
|
|
<Col className='search'>
|
|
<Col className='search'>
|
|
|
- <Col style={{ padding: '0 5px' }}>
|
|
|
|
|
- <ListFilter modelName='dataConnect' model={dataConnect} />
|
|
|
|
|
- </Col>
|
|
|
|
|
- <Col >
|
|
|
|
|
- <Button style={{ marginRight: '8px' }} onClick={() => {
|
|
|
|
|
|
|
+ <Col>
|
|
|
|
|
+ <Button className='btn-refresh' onClick={() => {
|
|
|
dispatch({ type: 'dataConnect/setFilterLabel', label: '' });
|
|
dispatch({ type: 'dataConnect/setFilterLabel', label: '' });
|
|
|
dispatch({ type: 'dataConnect/fetchList', mandatory: true });
|
|
dispatch({ type: 'dataConnect/fetchList', mandatory: true });
|
|
|
}}>
|
|
}}>
|
|
|
- <Icon type="sync" />
|
|
|
|
|
|
|
+ <CusIcon type='bi-refresh'/>
|
|
|
</Button>
|
|
</Button>
|
|
|
- <Button onClick={() => {
|
|
|
|
|
|
|
+ </Col>
|
|
|
|
|
+ <Col>
|
|
|
|
|
+ <ListFilter modelName='dataConnect' model={dataConnect} />
|
|
|
|
|
+ </Col>
|
|
|
|
|
+ <Col>
|
|
|
|
|
+ <Button className='btn-add' onClick={() => {
|
|
|
// 设置新增默认值
|
|
// 设置新增默认值
|
|
|
dispatch({ type: 'dataConnect/setNewModel', model: { dbType: 'oracle', dbName: 'orcl', port: 1521 } });
|
|
dispatch({ type: 'dataConnect/setNewModel', model: { dbType: 'oracle', dbName: 'orcl', port: 1521 } });
|
|
|
dispatch({ type: 'dataConnect/setNewModelFields', fields: [
|
|
dispatch({ type: 'dataConnect/setNewModelFields', fields: [
|
|
@@ -259,7 +262,7 @@ class DataConnect extends React.Component {
|
|
|
{ name: 'boxOperation', value: 'create' }
|
|
{ name: 'boxOperation', value: 'create' }
|
|
|
] });
|
|
] });
|
|
|
}}>
|
|
}}>
|
|
|
- <Icon type="plus" />添加数据链接
|
|
|
|
|
|
|
+ 添加数据链接
|
|
|
</Button>
|
|
</Button>
|
|
|
</Col>
|
|
</Col>
|
|
|
</Col>
|
|
</Col>
|