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
287b85de
Commit
287b85de
authored
Oct 10, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资源操作
parent
fc264854
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
90 additions
and
29 deletions
+90
-29
table.jsx
src/view/Manage/AssetResourceManage/table.jsx
+90
-29
No files found.
src/view/Manage/AssetResourceManage/table.jsx
View file @
287b85de
...
@@ -263,6 +263,26 @@ const FC = (props) => {
...
@@ -263,6 +263,26 @@ const FC = (props) => {
}
}
const
onAddToAssetClick
=
()
=>
{
}
const
onTaskAllocationClick
=
()
=>
{
}
const
onTaskAutoAllocationClick
=
()
=>
{
}
const
onBatchEditClick
=
()
=>
{
}
const
onReviewClick
=
()
=>
{
}
const
onImportClick
=
()
=>
{
const
onImportClick
=
()
=>
{
}
}
...
@@ -284,7 +304,17 @@ const FC = (props) => {
...
@@ -284,7 +304,17 @@ const FC = (props) => {
}
}
const
onMenuClick
=
({
key
})
=>
{
const
onMenuClick
=
({
key
})
=>
{
if
(
key
===
'import'
)
{
if
(
key
===
'addToAsset'
)
{
onAddToAssetClick
()
}
else
if
(
key
===
'taskAllocation'
)
{
onTaskAllocationClick
()
}
else
if
(
key
===
'taskAutoAllocation'
)
{
onTaskAutoAllocationClick
()
}
else
if
(
key
===
'batchEdit'
)
{
onBatchEditClick
()
}
else
if
(
key
===
'review'
)
{
onReviewClick
()
}
else
if
(
key
===
'import'
)
{
onImportClick
()
onImportClick
()
}
else
if
(
key
===
'export'
)
{
}
else
if
(
key
===
'export'
)
{
onExportClick
()
onExportClick
()
...
@@ -300,6 +330,35 @@ const FC = (props) => {
...
@@ -300,6 +330,35 @@ const FC = (props) => {
const
moreMenu
=
(
const
moreMenu
=
(
<
Menu
onClick=
{
onMenuClick
}
>
<
Menu
onClick=
{
onMenuClick
}
>
{
{
compact
&&
<
React
.
Fragment
>
<
PermissionMenuItem
key=
'addToAsset'
defaultPermission=
{
true
}
>
<
div
className=
'text-center'
>
新增为资产
</
div
>
</
PermissionMenuItem
>
<
PermissionMenuItem
key=
'taskAllocation'
defaultPermission=
{
true
}
>
<
div
className=
'text-center'
>
任务分配
</
div
>
</
PermissionMenuItem
>
<
PermissionMenuItem
key=
'taskAutoAllocation'
defaultPermission=
{
true
}
>
<
div
className=
'text-center'
>
自动分配
</
div
>
</
PermissionMenuItem
>
<
PermissionMenuItem
key=
'batchEdit'
defaultPermission=
{
true
}
>
<
div
className=
'text-center'
>
批量编辑
</
div
>
</
PermissionMenuItem
>
<
PermissionMenuItem
key=
'review'
defaultPermission=
{
true
}
>
<
div
className=
'text-center'
>
复核
</
div
>
</
PermissionMenuItem
>
</
React
.
Fragment
>
}
{
(
node
?.
resourceType
!==
'custom'
&&
node
?.
type
!==
'custom'
)
&&
<
PermissionMenuItem
key=
'import'
defaultPermission=
{
importAble
}
>
(
node
?.
resourceType
!==
'custom'
&&
node
?.
type
!==
'custom'
)
&&
<
PermissionMenuItem
key=
'import'
defaultPermission=
{
importAble
}
>
<
div
className=
'text-center'
>
<
div
className=
'text-center'
>
导入
导入
...
@@ -368,37 +427,39 @@ const FC = (props) => {
...
@@ -368,37 +427,39 @@ const FC = (props) => {
compact
?
<
Dropdown
overlay=
{
moreMenu
}
placement=
"bottomCenter"
>
compact
?
<
Dropdown
overlay=
{
moreMenu
}
placement=
"bottomCenter"
>
<
Button
>
更多
</
Button
>
<
Button
>
更多
</
Button
>
</
Dropdown
>
:
<
React
.
Fragment
>
</
Dropdown
>
:
<
React
.
Fragment
>
{
<
PermissionButton
(
node
?.
resourceType
!==
'custom'
&&
node
?.
type
!==
'custom'
)
&&
<
PermissionButton
defaultPermission=
{
true
}
defaultPermission=
{
importAble
}
onClick=
{
onAddToAssetClick
}
onClick=
{
onImportClick
}
>
>
导入
新增为资产
</
PermissionButton
>
}
<
PermissionButton
defaultPermission=
{
exportAble
}
onClick=
{
onExportClick
}
>
导出
</
PermissionButton
>
</
PermissionButton
>
<
PermissionButton
<
PermissionButton
defaultPermission=
{
changeDirectoryAble
}
defaultPermission=
{
true
}
tip=
{
(
selectedRows
??[]).
length
===
0
?
'请先选择资产'
:
''
}
onClick=
{
onTaskAllocationClick
}
onClick=
{
onChangeDirectoryClick
}
disabled=
{
(
selectedRows
??[]).
length
===
0
}
>
>
变更目录
任务分配
</
PermissionButton
>
</
PermissionButton
>
{
<
PermissionButton
(
node
?.
resourceType
!==
'custom'
&&
node
?.
type
!==
'custom'
)
&&
<
PermissionButton
defaultPermission=
{
true
}
defaultPermission=
{
deleteAble
}
onClick=
{
onTaskAutoAllocationClick
}
tip=
{
(
selectedRows
??[]).
length
===
0
?
'请先选择资产'
:
''
}
>
onClick=
{
onDeleteClick
}
自动分配
disabled=
{
(
selectedRows
??[]).
length
===
0
}
</
PermissionButton
>
>
<
PermissionButton
删除
defaultPermission=
{
true
}
</
PermissionButton
>
onClick=
{
onBatchEditClick
}
}
>
<
Button
onClick=
{
onFilterElementClick
}
>
可见列设置
</
Button
>
批量编辑
</
PermissionButton
>
<
PermissionButton
defaultPermission=
{
true
}
onClick=
{
onReviewClick
}
>
复核
</
PermissionButton
>
<
Dropdown
overlay=
{
moreMenu
}
placement=
"bottomCenter"
>
<
Button
>
更多
</
Button
>
</
Dropdown
>
</
React
.
Fragment
>
</
React
.
Fragment
>
}
}
</
Space
>
</
Space
>
...
...
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