Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaochengxiang
szse
Commits
055ffd85
Commit
055ffd85
authored
Jun 28, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JDBC信息增加提示
parent
2d4b11c9
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
15 deletions
+26
-15
jdbc.json
public/json/jdbc.json
+7
-2
AssetTable.jsx
src/view/Manage/AssetManage/Component/AssetTable.jsx
+2
-0
JDBCInformation.jsx
src/view/Manage/Model/Component/JDBCInformation.jsx
+13
-5
ModelTable.jsx
src/view/Manage/Model/Component/ModelTable.jsx
+4
-8
No files found.
public/json/jdbc.json
View file @
055ffd85
{
{
"impala"
:
{
"impala"
:
{
"url"
:
""
,
"url"
:
""
,
"downloadUrl"
:
""
"downloadUrl"
:
""
,
"urlTip"
:
"复制地址"
,
"downloadTip"
:
"下载驱动"
},
},
"hana"
:
{
"hana"
:
{
"url"
:
""
,
"url"
:
""
,
"downloadUrl"
:
""
"downloadUrl"
:
""
,
"urlTip"
:
"复制地址"
,
"downloadTip"
:
"下载驱动"
}
}
}
}
\ No newline at end of file
src/view/Manage/AssetManage/Component/AssetTable.jsx
View file @
055ffd85
...
@@ -584,6 +584,8 @@ const AssetTable = (props) => {
...
@@ -584,6 +584,8 @@ const AssetTable = (props) => {
if
(
refresh
)
{
if
(
refresh
)
{
setCheckedKeys
([]);
setCheckedKeys
([]);
getDataAssets
();
getDataAssets
();
showMessage
(
'success'
,
(
reference
===
AssetRecycleReference
)?
'挂载成功'
:
'变更目录成功'
);
}
}
}
}
...
...
src/view/Manage/Model/Component/JDBCInformation.jsx
View file @
055ffd85
import
React
,
{
useEffect
,
useState
}
from
'react'
;
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
{
CopyOutlined
,
DownloadOutlined
}
from
'@ant-design/icons'
;
import
copy
from
'copy-to-clipboard'
;
import
copy
from
'copy-to-clipboard'
;
...
@@ -40,17 +40,21 @@ const FC = (props) => {
...
@@ -40,17 +40,21 @@ const FC = (props) => {
</
Typography
.
Text
>
</
Typography
.
Text
>
</
div
>
</
div
>
<
Space
>
<
Space
>
<
Button
type=
'text'
icon=
{
<
CopyOutlined
/>
}
onClick=
{
()
=>
{
<
Tooltip
title=
{
information
?.
impala
?.
urlTip
}
>
<
Button
type=
'link'
icon=
{
<
CopyOutlined
/>
}
onClick=
{
()
=>
{
if
(
information
?.
impala
?.
url
)
{
if
(
information
?.
impala
?.
url
)
{
copy
(
information
?.
impala
?.
url
);
copy
(
information
?.
impala
?.
url
);
showMessage
(
'success'
,
'复制成功'
);
showMessage
(
'success'
,
'复制成功'
);
}
}
}
}
/>
}
}
/>
<
Button
type=
'text'
icon=
{
<
DownloadOutlined
/>
}
onClick=
{
()
=>
{
</
Tooltip
>
<
Tooltip
title=
{
information
?.
impala
?.
downloadTip
}
>
<
Button
type=
'link'
icon=
{
<
DownloadOutlined
/>
}
onClick=
{
()
=>
{
if
(
information
?.
impala
?.
downloadUrl
)
{
if
(
information
?.
impala
?.
downloadUrl
)
{
window
.
open
(
information
?.
impala
?.
downloadUrl
);
window
.
open
(
information
?.
impala
?.
downloadUrl
);
}
}
}
}
/>
}
}
/>
</
Tooltip
>
</
Space
>
</
Space
>
</
div
>
</
div
>
<
div
className=
'flex'
style=
{
{
justifyContent
:
'space-between'
,
alignItems
:
'baseline'
}
}
>
<
div
className=
'flex'
style=
{
{
justifyContent
:
'space-between'
,
alignItems
:
'baseline'
}
}
>
...
@@ -60,17 +64,21 @@ const FC = (props) => {
...
@@ -60,17 +64,21 @@ const FC = (props) => {
</
Typography
.
Text
>
</
Typography
.
Text
>
</
div
>
</
div
>
<
Space
>
<
Space
>
<
Button
type=
'text'
icon=
{
<
CopyOutlined
/>
}
onClick=
{
()
=>
{
<
Tooltip
title=
{
information
?.
hana
?.
urlTip
}
>
<
Button
type=
'link'
icon=
{
<
CopyOutlined
/>
}
onClick=
{
()
=>
{
if
(
information
?.
hana
?.
url
)
{
if
(
information
?.
hana
?.
url
)
{
copy
(
information
?.
hana
?.
url
);
copy
(
information
?.
hana
?.
url
);
showMessage
(
'success'
,
'复制成功'
);
showMessage
(
'success'
,
'复制成功'
);
}
}
}
}
/>
}
}
/>
<
Button
type=
'text'
icon=
{
<
DownloadOutlined
/>
}
onClick=
{
()
=>
{
</
Tooltip
>
<
Tooltip
title=
{
information
?.
hana
?.
downloadTip
}
>
<
Button
type=
'link'
icon=
{
<
DownloadOutlined
/>
}
onClick=
{
()
=>
{
if
(
information
?.
hana
?.
downloadUrl
)
{
if
(
information
?.
hana
?.
downloadUrl
)
{
window
.
open
(
information
?.
hana
?.
downloadUrl
);
window
.
open
(
information
?.
hana
?.
downloadUrl
);
}
}
}
}
/>
}
}
/>
</
Tooltip
>
</
Space
>
</
Space
>
</
div
>
</
div
>
</
Modal
>
</
Modal
>
...
...
src/view/Manage/Model/Component/ModelTable.jsx
View file @
055ffd85
...
@@ -187,7 +187,6 @@ const ModelTable = (props) => {
...
@@ -187,7 +187,6 @@ const ModelTable = (props) => {
// dataIndex: 'path',
// dataIndex: 'path',
// width: 120,
// width: 120,
// ellipsis: true,
// ellipsis: true,
// filter: false,
// render: (text, _, __) => {
// render: (text, _, __) => {
// return (
// return (
// <Tooltip title={text||''}>
// <Tooltip title={text||''}>
...
@@ -201,7 +200,6 @@ const ModelTable = (props) => {
...
@@ -201,7 +200,6 @@ const ModelTable = (props) => {
dataIndex
:
'state'
,
dataIndex
:
'state'
,
width
:
100
,
width
:
100
,
ellipsis
:
true
,
ellipsis
:
true
,
filter
:
false
,
render
:
(
_
,
record
)
=>
{
render
:
(
_
,
record
)
=>
{
let
color
=
''
;
let
color
=
''
;
...
@@ -226,7 +224,6 @@ const ModelTable = (props) => {
...
@@ -226,7 +224,6 @@ const ModelTable = (props) => {
dataIndex
:
'editor'
,
dataIndex
:
'editor'
,
width
:
100
,
width
:
100
,
ellipsis
:
true
,
ellipsis
:
true
,
filter
:
false
,
render
:
(
editor
,
record
)
=>
{
render
:
(
editor
,
record
)
=>
{
const
user
=
users
?.
filter
((
user
)
=>
user
.
pernr
===
editor
);
const
user
=
users
?.
filter
((
user
)
=>
user
.
pernr
===
editor
);
if
(
user
&&
user
.
length
>
0
)
{
if
(
user
&&
user
.
length
>
0
)
{
...
@@ -574,19 +571,18 @@ const ModelTable = (props) => {
...
@@ -574,19 +571,18 @@ const ModelTable = (props) => {
}
}
newCols.push(col);
newCols.push(col);
});
});
if ((visibleColNames||[]).length > 0) {
newCols = newCols.filter(col => visibleColNames.indexOf(col.title)!==-1);
}
if (!modelId) {
if (!modelId) {
newCols = [indexCol, ...newCols, ...fixedCols, actionCol];
newCols = [indexCol, ...newCols, ...fixedCols, actionCol];
} else {
} else {
newCols = [...newCols, ...fixedCols, actionCol];
newCols = [...newCols, ...fixedCols, actionCol];
}
}
if ((visibleColNames||[]).length > 0) {
newCols = newCols.filter(col => visibleColNames.indexOf(col.title)!==-1 || col.filter===false);
}
return newCols;
return newCols;
}, [visibleColNames, attrs, indexCol, actionCol, modelId, detailItem, users])
}, [visibleColNames, attrs, indexCol, actionCol, modelId, detailItem, users])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment