Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
93bfae68
Commit
93bfae68
authored
Dec 10, 2020
by
wufan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:去掉版本号判断
parent
70a0c2b1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
src/modules/resource-disk/components/FolderList.jsx
+4
-5
No files found.
src/modules/resource-disk/components/FolderList.jsx
View file @
93bfae68
...
@@ -566,13 +566,12 @@ class FolderList extends React.Component {
...
@@ -566,13 +566,12 @@ class FolderList extends React.Component {
// 公共文件权限和复制权限
// 公共文件权限和复制权限
const
{
folderType
,
rights
}
=
record
;
const
{
folderType
,
rights
}
=
record
;
// 判断当前版本
// 判断当前版本
const
NewVersion
=
window
.
NewVersion
;
if
(
rights
)
{
if
(
rights
)
{
const
menu
=
(
const
menu
=
(
<
Menu
>
<
Menu
>
{
/* ----------------- 5.0公共文件 --------------------*/
}
{
/* ----------------- 5.0公共文件 --------------------*/
}
{
{
rights
===
"EDIT"
&&
!
record
.
parentId
&&
NewVersion
&&
rights
===
"EDIT"
&&
!
record
.
parentId
&&
[
[
<
Menu
.
Item
key=
"administration"
>
<
Menu
.
Item
key=
"administration"
>
<
span
onClick=
{
()
=>
this
.
handleShowManagingModal
(
record
)
}
>
权限管理
</
span
>
<
span
onClick=
{
()
=>
this
.
handleShowManagingModal
(
record
)
}
>
权限管理
</
span
>
...
@@ -581,19 +580,19 @@ class FolderList extends React.Component {
...
@@ -581,19 +580,19 @@ class FolderList extends React.Component {
]
]
}
}
{
{
folderType
===
'FILE'
&&
NewVersion
&&
folderType
===
'FILE'
&&
<
Menu
.
Item
key=
"download"
>
<
Menu
.
Item
key=
"download"
>
<
span
onClick=
{
()
=>
{
this
.
handleDownload
(
record
)
}
}
>
下载
</
span
>
<
span
onClick=
{
()
=>
{
this
.
handleDownload
(
record
)
}
}
>
下载
</
span
>
</
Menu
.
Item
>
</
Menu
.
Item
>
}
}
{
{
currentRootDisk
.
disk
===
'COMMON'
&&
NewVersion
&&
currentRootDisk
.
disk
===
'COMMON'
&&
<
Menu
.
Item
key=
"copy"
>
<
Menu
.
Item
key=
"copy"
>
<
span
onClick=
{
()
=>
this
.
handleShowCopyFileModal
(
record
)
}
>
复制到
</
span
>
<
span
onClick=
{
()
=>
this
.
handleShowCopyFileModal
(
record
)
}
>
复制到
</
span
>
</
Menu
.
Item
>
</
Menu
.
Item
>
}
}
{
{
hasManagementAuthority
&&
rights
===
"EDIT"
&&
NewVersion
&&
hasManagementAuthority
&&
rights
===
"EDIT"
&&
[
[
<
Menu
.
Item
key=
"move"
>
<
Menu
.
Item
key=
"move"
>
<
span
onClick=
{
()
=>
this
.
handleShowSelectFileModal
(
record
)
}
>
移动到
</
span
>
<
span
onClick=
{
()
=>
this
.
handleShowSelectFileModal
(
record
)
}
>
移动到
</
span
>
...
...
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