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
1
Merge Requests
1
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
8ed646dd
Commit
8ed646dd
authored
Dec 16, 2020
by
wufan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:上课数据路由方式变更为子路由
parent
5254c186
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
28 deletions
+26
-28
src/components/Breadcrumbs.tsx
+0
-1
src/core/variables.less
+1
-1
src/modules/course-manage/DataList/DataList.jsx
+0
-1
src/modules/course-manage/components/LiveCourseFilter.less
+9
-7
src/modules/course-manage/components/LiveCourseList.jsx
+15
-7
src/routes/config/mainRoutes.tsx
+1
-6
src/routes/config/menuList.tsx
+0
-5
No files found.
src/components/Breadcrumbs.tsx
View file @
8ed646dd
...
...
@@ -21,7 +21,6 @@ const Breadcrumbs = (props: BreadcrumbsProps) => {
const
{
goBack
,
navList
,
text
}
=
props
;
function
_onClick
():
any
{
console
.
log
(
"返回来"
)
goBack
?
goBack
()
:
window
.
RCHistory
.
goBack
();
}
const
isString
=
_
.
isString
(
navList
);
...
...
src/core/variables.less
View file @
8ed646dd
...
...
@@ -56,7 +56,7 @@
//old
//color
@xm-color-primary:
#FF7519
;
@xm-color-primary:
#FFB714
;
@xm-color-primary_active: #020201;
@xm-color-primary-darker: #ff8534;
@xm-color-selected: #F58E2C;
...
...
src/modules/course-manage/DataList/DataList.jsx
View file @
8ed646dd
...
...
@@ -26,7 +26,6 @@ class DataList extends React.Component {
<
Breadcrumbs
navList=
"上课数据"
goBack=
{
()
=>
{
console
.
log
(
"准备返回"
);
RCHistory
.
goBack
();
}
}
/>
...
...
src/modules/course-manage/components/LiveCourseFilter.less
View file @
8ed646dd
...
...
@@ -17,18 +17,20 @@
position: absolute;
right: 12px;
}
.resetBtn{
color:#999999;
font-size:18px;
margin-right:8px;
.resetBtn
{
color:
#999999;
font-size:
18px;
margin-right:
8px;
}
.fold-btn{
.fold-btn
{
font-size: 14px;
color: #666666;
line-height: 20px;
.fold-icon{
.fold-icon
{
font-size: 12px;
}
}
}
.data-icon {
cursor: pointer;
}
src/modules/course-manage/components/LiveCourseList.jsx
View file @
8ed646dd
...
...
@@ -7,8 +7,8 @@
*/
import
React
from
'react'
;
import
{
Table
,
Modal
,
Tooltip
,
Badge
,
message
,
Dropdown
,
Button
,
Switch
}
from
'antd'
;
import
{
Table
,
Modal
,
message
,
Dropdown
,
Button
,
Switch
}
from
'antd'
;
import
{
Route
,
withRouter
}
from
'react-router-dom'
;
// import Bus from '@/core/bus';
// import User from "@/core/user";
// import User_t from "@/teacher/core/user";
...
...
@@ -30,6 +30,8 @@ import './LiveCourseList.less';
import
{
QuestionCircleOutlined
}
from
'@ant-design/icons'
;
import
{
appId
,
shareUrl
,
LIVE_SHARE
}
from
'@/domains/course-domain/constants'
;
import
CourseService
from
"@/domains/course-domain/CourseService"
;
import
DataList
from
'../DataList/DataList'
;
const
{
confirm
}
=
Modal
;
const
courseStateShow
=
{
UN_START
:
{
...
...
@@ -135,8 +137,11 @@ class LiveCourseList extends React.Component {
// 前往上课数据页面
handleLinkToClassData
=
(
item
)
=>
{
// TODOLIST 确定后端是否是根据liveCourseId 返回数据
window
.
RCHistory
.
push
(
`/live-course-data?type=large&id=
${
item
.
liveCourseId
}
`
)
const
{
match
}
=
this
.
props
;
window
.
RCHistory
.
push
({
pathname
:
`
${
match
.
url
}
/live-course-data?type=large&id=
${
item
.
liveCourseId
}
`
});
}
parseColumns
=
()
=>
{
const
menu
=
(
item
)
=>
(
...
...
@@ -208,7 +213,7 @@ class LiveCourseList extends React.Component {
dataIndex
:
"quota"
,
render
:
(
val
,
item
)
=>
{
return
(
<
span
className=
"iconfont icon"
onClick=
{
()
=>
{
<
span
className=
"iconfont icon
data-icon
"
onClick=
{
()
=>
{
this
.
handleLinkToClassData
(
item
)
}
}
>

</
span
>
);
...
...
@@ -390,6 +395,8 @@ class LiveCourseList extends React.Component {
const
{
openDownloadModal
,
downloadUrl
,
url
,
columns
,
}
=
this
.
state
;
const
{
match
}
=
this
.
props
;
return
(
<
div
className=
"live-course-list"
>
<
Table
...
...
@@ -426,9 +433,10 @@ class LiveCourseList extends React.Component {
/>
)
}
<
iframe
src=
{
url
}
style=
{
{
display
:
"none"
}
}
/>
<
Route
path=
{
`${match.url}/live-course-data`
}
component=
{
DataList
}
/>
</
div
>
)
}
}
export
default
LiveCourseList
;
\ No newline at end of file
export
default
withRouter
(
LiveCourseList
);
\ No newline at end of file
src/routes/config/mainRoutes.tsx
View file @
8ed646dd
...
...
@@ -2,7 +2,7 @@
* @Author: 吴文洁
* @Date: 2020-04-29 10:26:32
* @LastEditors: wufan
* @LastEditTime: 2020-12-1
4 11:13:16
* @LastEditTime: 2020-12-1
6 16:39:03
* @Description: 内容线路由配置
*/
import
EmployeesManagePage
from
'@/modules/store-manage/EmployeesManagePage'
;
...
...
@@ -53,11 +53,6 @@ const mainRoutes = [
name
:
'创建直播课'
},
{
path
:
'/live-course-data'
,
component
:
DataList
,
name
:
'上课数据'
},
{
path
:
'/resource-disk'
,
component
:
ClassBook
,
name
:
'资料云盘'
...
...
src/routes/config/menuList.tsx
View file @
8ed646dd
...
...
@@ -14,11 +14,6 @@ export const menuList: any = [
// groupCode: "CourseVideoClass",
// link: '/CourseVideoClass'
// }
{
groupName
:
"直播课-上课数据"
,
groupCode
:
"CourseData"
,
link
:
'/live-course-data'
},
]
},
{
...
...
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