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
274f9160
Commit
274f9160
authored
Dec 23, 2020
by
wufan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:合并资料云盘代码
parent
cbfb51a6
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
80 additions
and
85 deletions
+80
-85
src/bu-components/ChooseMembersModal.jsx
+8
-8
src/bu-components/ChooseMembersModal.less
+24
-30
src/bu-components/ManagingMembersModal.jsx
+1
-3
src/bu-components/ManagingMembersModal.less
+2
-2
src/common/less/icon-font.less
+6
-6
src/index.html
+3
-3
src/modules/resource-disk/components/FolderList.jsx
+23
-27
src/modules/resource-disk/components/FolderManage.jsx
+13
-6
No files found.
src/bu-components/ChooseMembersModal.jsx
View file @
274f9160
...
...
@@ -203,7 +203,7 @@ class ChooseMembersModal extends React.Component {
title
:
'全选'
,
// 实际为头像,但在表格上这行要求显示为全选
key
:
'avatar'
,
dataIndex
:
'avatar'
,
width
:
'
18%
'
,
width
:
'
40
'
,
render
:
(
value
,
record
)
=>
{
return
(
<
div
className=
'avatar'
>
...
...
@@ -219,7 +219,8 @@ class ChooseMembersModal extends React.Component {
title
:
''
,
key
:
'adminNameLeft'
,
dataIndex
:
'adminName'
,
width
:
'40%'
,
width
:
'30%'
,
align
:
'center'
,
render
:
(
value
,
record
)
=>
{
const
{
adminName
}
=
record
;
return
(
...
...
@@ -260,13 +261,12 @@ class ChooseMembersModal extends React.Component {
title
:
'操作'
,
key
:
'edit'
,
dataIndex
:
'edit'
,
width
:
'
2
0%'
,
width
:
'
7
0%'
,
align
:
'right'
,
render
:
(
value
,
record
)
=>
{
return
(
<
div
className=
'edit'
onClick=
{
()
=>
this
.
clearOneUser
(
record
)
}
>
{
/* <Icon type="close-circle-o" /> */
}
<
img
src=
"https://image.xiaomaiketang.com/xm/sPxHWhs83R.png"
className=
'edit-img'
alt=
""
/>
<
span
className=
"icon iconfont"
>

</
span
>
</
div
>
)
}
...
...
@@ -288,7 +288,7 @@ class ChooseMembersModal extends React.Component {
onCancel=
{
this
.
handleClose
}
onOk=
{
this
.
addMember
}
title=
{
title
}
width=
{
56
0
}
width=
{
68
0
}
maskClosable=
{
false
}
>
<
div
className=
'choose-container'
>
...
...
@@ -309,7 +309,7 @@ class ChooseMembersModal extends React.Component {
dataSource=
{
allUserList
}
columns=
{
this
.
selectedColumnsLeft
()
}
pagination=
{
false
}
scroll=
{
{
y
:
2
16
}
}
scroll=
{
{
y
:
2
90
}
}
// bordered={true}
size=
{
'small'
}
rowSelection=
{
{
...
...
@@ -342,7 +342,7 @@ class ChooseMembersModal extends React.Component {
dataSource=
{
selectUserList
}
columns=
{
this
.
selectedColumnsRight
()
}
showHeader=
{
false
}
scroll=
{
{
y
:
3
00
}
}
scroll=
{
{
y
:
3
75
}
}
pagination=
{
false
}
size=
{
'small'
}
/>
...
...
src/bu-components/ChooseMembersModal.less
View file @
274f9160
.choose-container{
display: flex;
background-color: #fff !important;
height: 417px;
.container-left{
width: 50%;
padding-right: 10px;
margin-left: 10px;
.container-left-header{
margin-bottom: 10px;
...
...
@@ -12,19 +12,33 @@
.container-left-body{
border: 1px solid #E9E9E9;
.search{
width:
250
px;
width:
305
px;
padding: 7px 7px;
}
.container-left-body-table{
width: 252px;
height: 256px;
>table >thead >tr{
border-bottom:none;
}
width: 300px;
height: 330px;
.ant-table {
border: none;
min-height: 250px !important;
.ant-table-header{
margin-bottom: -7px !important;
>table > .ant-table-thead > tr > th {
background-color: #fff !important;
}
}
.ant-table-tbody{
>tr >td {
border-bottom: none;
background-color: #fff !important;
}
}
}
.ant-empty-normal {
margin: 100px 0 !important;
}
...
...
@@ -35,25 +49,12 @@
border-radius: 50%;
}
}
.ant-table-tbody{
>tr >td {
border-bottom:none;
}
}
.ant-table-row{
background-color: #fff !important;
}
.ant-table-row:hover{
background-color: #E9E9E9;
}
}
}
}
.container-right{
width: 50%;
height: 340px;
.span-left{
margin-left: 10px;
.span-left-l{
...
...
@@ -77,11 +78,11 @@
}
.ant-table {
min-height: 3
03
px !important;
min-height: 3
78
px !important;
}
.ant-empty-normal {
margin: 1
0
0px 0 !important;
margin: 1
3
0px 0 !important;
}
.avatar{
...
...
@@ -100,13 +101,6 @@
>tr .ant-table-selection-column{
width: 30px !important;
}
.ant-table-row{
border: none !important;
background-color: #fff !important;
}
.ant-table-row:hover{
background-color: #e6e1e1;
}
}
}
}
...
...
src/bu-components/ManagingMembersModal.jsx
View file @
274f9160
...
...
@@ -298,12 +298,10 @@ class ManagingMembersModal extends React.Component {
<
div
className=
'managing-left'
>
已有成员
<
Tooltip
title=
"不在名单内的员工不可查看此文件/文件夹"
arrowPointAtCenter
>
{
/* <Icon type="info-circle-o" /> */
}
<
img
src=
"https://image.xiaomaiketang.com/xm/XWy5riGJTi.png"
className=
'tool-tip-left'
alt=
""
/>
<
img
src=
"https://image.xiaomaiketang.com/xm/JbGfBpiPjt.png"
className=
'tool-tip-left'
alt=
""
/>
</
Tooltip
>
</
div
>
<
div
className=
'managing-right'
onClick=
{
()
=>
this
.
handleChooseModal
()
}
>
{
/* <Icon type="plus-circle" /> */
}
<
img
src=
"https://image.xiaomaiketang.com/xm/xkZs3C6G5R.png"
className=
'tool-tip-right'
alt=
""
/>
添加成员
</
div
>
...
...
src/bu-components/ManagingMembersModal.less
View file @
274f9160
...
...
@@ -21,8 +21,8 @@
cursor: pointer;
.tool-tip-right{
margin-right: 4px;
width: 1
4
px;
height: 1
4
px;
width: 1
6
px;
height: 1
6
px;
}
}
}
...
...
src/common/less/icon-font.less
View file @
274f9160
@font-face {
font-family: 'iconfont'; /* project id 2223403 */
src: url('//at.alicdn.com/t/font_2223403_
s8xyuagw3n
.eot');
src: url('//at.alicdn.com/t/font_2223403_
s8xyuagw3n
.eot?#iefix') format('embedded-opentype'),
url('//at.alicdn.com/t/font_2223403_
s8xyuagw3n
.woff2') format('woff2'),
url('//at.alicdn.com/t/font_2223403_
s8xyuagw3n
.woff') format('woff'),
url('//at.alicdn.com/t/font_2223403_
s8xyuagw3n
.ttf') format('truetype'),
url('//at.alicdn.com/t/font_2223403_
s8xyuagw3n
.svg#iconfont') format('svg');
src: url('//at.alicdn.com/t/font_2223403_
wb5zt50q1xj
.eot');
src: url('//at.alicdn.com/t/font_2223403_
wb5zt50q1xj
.eot?#iefix') format('embedded-opentype'),
url('//at.alicdn.com/t/font_2223403_
wb5zt50q1xj
.woff2') format('woff2'),
url('//at.alicdn.com/t/font_2223403_
wb5zt50q1xj
.woff') format('woff'),
url('//at.alicdn.com/t/font_2223403_
wb5zt50q1xj
.ttf') format('truetype'),
url('//at.alicdn.com/t/font_2223403_
wb5zt50q1xj
.svg#iconfont') format('svg');
}
.iconfont{
font-family:"iconfont" !important;
...
...
src/index.html
View file @
274f9160
<!--
* @Author: 吴文洁
* @Date: 2020-08-24 12:20:57
* @LastEditors:
zhangleyu
an
* @LastEditTime: 2020-12-2
2 16:49:48
* @LastEditors:
wuf
an
* @LastEditTime: 2020-12-2
3 16:49:52
* @Description:
* @Copyright: 杭州杰竞科技有限公司 版权所有
-->
...
...
@@ -25,7 +25,7 @@
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link
rel=
"manifest"
href=
"%PUBLIC_URL%/manifest.json"
/>
<link
rel=
"stylesheet"
href=
"//at.alicdn.com/t/font_2223403_
s8xyuagw3n
.css"
>
<link
rel=
"stylesheet"
href=
"//at.alicdn.com/t/font_2223403_
wb5zt50q1xj
.css"
>
<!--
Notice the use of %PUBLIC_URL% in the tags above.
...
...
src/modules/resource-disk/components/FolderList.jsx
View file @
274f9160
...
...
@@ -146,7 +146,6 @@ class FolderList extends React.Component {
id
:
folder
.
id
,
folderName
:
folder
.
folderName
});
console
.
log
(
"folder.rights---"
,
folder
.
rights
);
this
.
setState
({
parentRights
:
folder
.
rights
,
})
...
...
@@ -348,11 +347,17 @@ class FolderList extends React.Component {
Service
.
Hades
(
'public/hadesStore/renameFolder'
,
{
id
:
renameModalData
.
id
,
name
:
folderName
}).
then
(()
=>
{
message
.
success
(
'重命名成功'
);
this
.
setState
({
renameModalData
:
{}
});
this
.
props
.
onRefresh
({
parentId
:
currentFolder
.
id
||
null
});
})
}).
then
(
res2
=>
{
if
(
res2
.
result
.
code
)
{
const
errorMessage
=
'此目录下已存在同名文件'
;
message
.
warning
(
errorMessage
);
return
;
}
else
{
message
.
success
(
'重命名成功'
);
this
.
setState
({
renameModalData
:
{}
});
this
.
props
.
onRefresh
({
parentId
:
currentFolder
.
id
||
null
});
}
});
});
})
}
...
...
@@ -700,27 +705,18 @@ class FolderList extends React.Component {
/>
</
Otherwise
>
</
Choose
>
{
folderPathList
&&
<
CreateFolderModal
title=
"重命名"
folderName=
{
renameModalData
.
folderName
}
folderPathList=
{
folderPathList
}
isOpen=
{
renameModalData
.
visible
}
onClose=
{
()
=>
{
this
.
setState
({
renameModalData
:
{}
})
}
}
onOk=
{
this
.
handleRenameDone
}
/>
}
{
!
folderPathList
&&
<
CreateFolderModal
title=
"重命名"
folderName=
{
renameModalData
.
folderName
}
isOpen=
{
renameModalData
.
visible
}
onClose=
{
()
=>
{
this
.
setState
({
renameModalData
:
{}
})
}
}
onOk=
{
this
.
handleRenameDone
}
/>
}
<
CreateFolderModal
title=
'重命名'
folderName=
{
renameModalData
.
folderName
}
folderPathList=
{
folderPathList
}
isOpen=
{
renameModalData
.
visible
}
onClose=
{
()
=>
{
this
.
setState
({
renameModalData
:
{}
});
}
}
onOk=
{
this
.
handleRenameDone
}
/>
<
UploadProgressModal
isOpen=
{
showUploadModal
}
...
...
src/modules/resource-disk/components/FolderManage.jsx
View file @
274f9160
...
...
@@ -82,21 +82,28 @@ class FolderManage extends React.Component {
}
// 请求当前目录下的文件列表
handleFetchFolderList
=
(
params
=
{})
=>
{
handleFetchFolderList
=
(
params
=
{}
,
isSearch
=
false
)
=>
{
this
.
setState
({
loading
:
true
},
()
=>
{
const
{
parentRights
}
=
params
;
const
{
showResultPage
,
searchName
}
=
this
.
state
;
const
{
currentRootDisk
:
{
disk
}
}
=
this
.
props
;
const
{
showResultPage
,
searchName
,
query
,
_parentRights
}
=
this
.
state
;
const
{
current
}
=
query
;
const
{
currentRootDisk
:
{
disk
}
}
=
this
.
props
;
const
_params
=
{
...
this
.
state
.
query
,
...
query
,
...
params
,
parentRights
,
disk
,
searchName
:
showResultPage
?
searchName
:
null
,
storeId
:
User
.
getStoreId
(),
createId
:
User
.
getUserId
()
}
_params
.
current
=
isSearch
?
1
:
current
;
if
(
parentRights
)
{
this
.
setState
({
_parentRights
:
parentRights
});
}
...
...
@@ -108,7 +115,7 @@ class FolderManage extends React.Component {
// 判断是否继承了父级文件权限
if
(
records
.
length
>
0
&&
!
records
[
0
].
rights
)
{
records
.
map
((
item
,
index
)
=>
{
item
.
rights
=
parentRights
;
item
.
rights
=
_
parentRights
;
_records
.
push
(
item
);
return
_records
;
})
...
...
@@ -151,7 +158,7 @@ class FolderManage extends React.Component {
showResultPage
:
true
},
()
=>
{
// 根据关键字搜索结果页文件列表
this
.
handleFetchFolderList
();
this
.
handleFetchFolderList
(
{},
true
);
});
}
...
...
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