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
2e7bf0db
Commit
2e7bf0db
authored
Aug 21, 2025
by
和金晶
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据资产添导入添加安全提示
parent
42573d97
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
AssetTable.jsx
src/view/Manage/AssetManage/Component/AssetTable.jsx
+17
-1
No files found.
src/view/Manage/AssetManage/Component/AssetTable.jsx
View file @
2e7bf0db
import
React
,{
useState
,
useEffect
,
useRef
,
useContext
}
from
"react"
;
import
React
,{
useState
,
useEffect
,
useRef
,
useContext
}
from
"react"
;
import
{
Button
,
Pagination
,
Space
,
Modal
,
Input
,
Table
,
Tooltip
,
Checkbox
,
Typography
,
Dropdown
,
Menu
}
from
"antd"
;
import
{
Button
,
Pagination
,
Space
,
Modal
,
Input
,
Table
,
Tooltip
,
Checkbox
,
Typography
,
Dropdown
,
Menu
}
from
"antd"
;
import
{
InfoCircleFilled
}
from
"@ant-design/icons"
import
classNames
from
'classnames'
;
import
classNames
from
'classnames'
;
import
{
Resizable
}
from
'react-resizable'
;
import
{
Resizable
}
from
'react-resizable'
;
import
ResizeObserver
from
'rc-resize-observer'
;
import
ResizeObserver
from
'rc-resize-observer'
;
...
@@ -551,6 +552,21 @@ const AssetTable = (props) => {
...
@@ -551,6 +552,21 @@ const AssetTable = (props) => {
setImportAssetVisible
(
true
);
setImportAssetVisible
(
true
);
}
}
const
beforeploadTips
=
()
=>
{
Modal
.
info
({
title
:
<
span
style=
{
{
color
:
"#1d82b8"
,
fontWeight
:
"bold"
}
}
>
注意
</
span
>,
okText
:
'本人已确认'
,
content
:
<
span
style=
{
{
color
:
"#ff4d4f"
}
}
><
InfoCircleFilled
style=
{
{
color
:
"#1d82b8"
}
}
/>
严禁在本互联网非涉密平台处理、传输国家秘密,请确认扫描、传输的文件资料不涉及国家秘密。
</
span
>,
okButtonProps
:
{
color
:
'#f40'
},
onOk
:
()
=>
{
importAsset
()
}
});
}
const
onFilterElementClick
=
()
=>
{
const
onFilterElementClick
=
()
=>
{
setFilterElementVisible
(
true
);
setFilterElementVisible
(
true
);
}
}
...
@@ -859,7 +875,7 @@ const AssetTable = (props) => {
...
@@ -859,7 +875,7 @@ const AssetTable = (props) => {
<
Menu
>
<
Menu
>
{
{
(
reference
===
AssetManageReference
&&
nodeType
!==
'custom'
)
&&
<
Menu
.
Item
>
(
reference
===
AssetManageReference
&&
nodeType
!==
'custom'
)
&&
<
Menu
.
Item
>
<
div
className=
'text-center'
onClick=
{
importAsset
}
>
<
div
className=
'text-center'
onClick=
{
beforeploadTips
}
>
导入
导入
</
div
>
</
div
>
</
Menu
.
Item
>
</
Menu
.
Item
>
...
...
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