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
49debeec
Commit
49debeec
authored
May 08, 2021
by
chenshu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:初始化
parent
62f7ae6b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
7 deletions
+13
-7
src/modules/course-manage/graphics-course/AddGraphicsCourse.jsx
+0
-1
src/modules/course-manage/offline-course/AddOfflineCourse.jsx
+11
-2
src/modules/resource-disk/components/FolderManage.jsx
+2
-4
No files found.
src/modules/course-manage/graphics-course/AddGraphicsCourse.jsx
View file @
49debeec
...
...
@@ -301,7 +301,6 @@ class AddGraphicsCourse extends React.Component {
//上传图片
uploadCoverImage
=
(
imageFile
)
=>
{
debugger
const
{
folderName
}
=
imageFile
;
const
fileName
=
window
.
random_string
(
16
)
+
folderName
.
slice
(
folderName
.
lastIndexOf
(
"."
));
const
self
=
this
;
...
...
src/modules/course-manage/offline-course/AddOfflineCourse.jsx
View file @
49debeec
...
...
@@ -301,7 +301,6 @@ class AddOfflineCourse extends React.Component {
//上传图片
uploadCoverImage
=
(
imageFile
)
=>
{
debugger
const
{
folderName
}
=
imageFile
;
const
fileName
=
window
.
random_string
(
16
)
+
folderName
.
slice
(
folderName
.
lastIndexOf
(
"."
));
const
self
=
this
;
...
...
@@ -504,6 +503,16 @@ class AddOfflineCourse extends React.Component {
});
}
// 使用默认封面图
handleResetCoverUrl
=
()
=>
{
const
{
coverUrl
}
=
this
.
state
;
const
isDefaultCover
=
coverUrl
===
defaultCoverUrl
;
// 如果已经是默认图的话,不做任何任何处理
if
(
isDefaultCover
)
return
;
message
.
success
(
'已替换为默认图'
);
this
.
setState
({
coverUrl
:
defaultCoverUrl
});
}
render
()
{
const
{
id
,
...
...
@@ -573,7 +582,7 @@ class AddOfflineCourse extends React.Component {
<
div
className=
"opt-btns"
>
<
Button
onClick=
{
()
=>
{
this
.
setState
({
showSelect
File
Modal
:
true
showSelect
Cover
Modal
:
true
})
}
}
>
上传图片
</
Button
>
<
span
...
...
src/modules/resource-disk/components/FolderManage.jsx
View file @
49debeec
/*
* @Author: 吴文洁
* @Date: 2020-06-09 09:47:44
* @Last Modified by:
吴文洁
* @Last Modified time: 202
0-07-16 17:53:33
* @Last Modified by:
chenshu
* @Last Modified time: 202
1-05-08 10:46:44
* @Description: 文件夹管理
*/
...
...
@@ -113,7 +113,6 @@ class FolderManage extends React.Component {
// 判断是否继承了父级文件权限
if
(
records
.
length
>
0
&&
!
records
[
0
].
rights
)
{
// debugger
records
.
map
((
item
,
index
)
=>
{
item
.
rights
=
parentRights
;
_records
.
push
(
item
);
...
...
@@ -149,7 +148,6 @@ class FolderManage extends React.Component {
// 判断是否继承了父级文件权限
if
(
records
.
length
>
0
&&
!
records
[
0
].
rights
)
{
// debugger
records
.
map
((
item
,
index
)
=>
{
item
.
rights
=
_parentRights
;
_records
.
push
(
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