Commit 055ffd85 by zhaochengxiang

JDBC信息增加提示

parent 2d4b11c9
{
"impala": {
"url": "",
"downloadUrl": ""
"downloadUrl": "",
"urlTip": "复制地址",
"downloadTip": "下载驱动"
},
"hana": {
"url": "",
"downloadUrl": ""
"downloadUrl": "",
"urlTip": "复制地址",
"downloadTip": "下载驱动"
}
}
\ No newline at end of file
......@@ -584,6 +584,8 @@ const AssetTable = (props) => {
if (refresh) {
setCheckedKeys([]);
getDataAssets();
showMessage('success', (reference === AssetRecycleReference)?'挂载成功':'变更目录成功');
}
}
......
import React, { useEffect, useState } from 'react';
import { Modal, Typography, Button, Space } from 'antd';
import { Modal, Typography, Button, Space, Tooltip } from 'antd';
import { CopyOutlined, DownloadOutlined } from '@ant-design/icons';
import copy from 'copy-to-clipboard';
......@@ -40,17 +40,21 @@ const FC = (props) => {
</Typography.Text>
</div>
<Space>
<Button type='text' icon={<CopyOutlined />} onClick={() => {
<Tooltip title={information?.impala?.urlTip}>
<Button type='link' icon={<CopyOutlined />} onClick={() => {
if (information?.impala?.url) {
copy(information?.impala?.url);
showMessage('success', '复制成功');
}
}} />
<Button type='text' icon={<DownloadOutlined />} onClick={() => {
</Tooltip>
<Tooltip title={information?.impala?.downloadTip}>
<Button type='link' icon={<DownloadOutlined />} onClick={() => {
if (information?.impala?.downloadUrl) {
window.open(information?.impala?.downloadUrl);
}
}} />
</Tooltip>
</Space>
</div>
<div className='flex' style={{ justifyContent: 'space-between', alignItems: 'baseline' }}>
......@@ -60,17 +64,21 @@ const FC = (props) => {
</Typography.Text>
</div>
<Space>
<Button type='text' icon={<CopyOutlined />} onClick={() => {
<Tooltip title={information?.hana?.urlTip}>
<Button type='link' icon={<CopyOutlined />} onClick={() => {
if (information?.hana?.url) {
copy(information?.hana?.url);
showMessage('success', '复制成功');
}
}} />
<Button type='text' icon={<DownloadOutlined />} onClick={() => {
</Tooltip>
<Tooltip title={information?.hana?.downloadTip}>
<Button type='link' icon={<DownloadOutlined />} onClick={() => {
if (information?.hana?.downloadUrl) {
window.open(information?.hana?.downloadUrl);
}
}} />
</Tooltip>
</Space>
</div>
</Modal>
......
......@@ -187,7 +187,6 @@ const ModelTable = (props) => {
// dataIndex: 'path',
// width: 120,
// ellipsis: true,
// filter: false,
// render: (text, _, __) => {
// return (
// <Tooltip title={text||''}>
......@@ -201,7 +200,6 @@ const ModelTable = (props) => {
dataIndex: 'state',
width: 100,
ellipsis: true,
filter: false,
render: (_, record) => {
let color = '';
......@@ -226,7 +224,6 @@ const ModelTable = (props) => {
dataIndex: 'editor',
width: 100,
ellipsis: true,
filter: false,
render: (editor, record) => {
const user = users?.filter((user)=>user.pernr===editor);
if (user && user.length > 0) {
......@@ -574,19 +571,18 @@ const ModelTable = (props) => {
}
newCols.push(col);
});
if ((visibleColNames||[]).length > 0) {
newCols = newCols.filter(col => visibleColNames.indexOf(col.title)!==-1);
}
if (!modelId) {
newCols = [indexCol, ...newCols, ...fixedCols, actionCol];
} else {
newCols = [...newCols, ...fixedCols, actionCol];
}
if ((visibleColNames||[]).length > 0) {
newCols = newCols.filter(col => visibleColNames.indexOf(col.title)!==-1 || col.filter===false);
}
return newCols;
}, [visibleColNames, attrs, indexCol, actionCol, modelId, detailItem, users])
......
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