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
626001b4
Commit
626001b4
authored
Aug 02, 2021
by
zhujian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
5ef66a49
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
123 additions
and
3 deletions
+123
-3
src/modules/task-center/data-center/Index.tsx
+41
-1
src/modules/task-center/data-center/components/CourseTable.tsx
+12
-0
src/modules/task-center/data-center/components/DataInfo.tsx
+11
-1
src/modules/task-center/data-center/components/ExamTable.tsx
+12
-0
src/modules/task-center/data-center/components/StudyTable.tsx
+12
-0
src/modules/task-center/data-center/index.less
+35
-1
No files found.
src/modules/task-center/data-center/Index.tsx
View file @
626001b4
...
@@ -4,11 +4,36 @@ import { Tabs } from 'antd';
...
@@ -4,11 +4,36 @@ import { Tabs } from 'antd';
import
Service
from
'@/common/js/service'
;
import
Service
from
'@/common/js/service'
;
import
Breadcrumbs
from
"@/components/Breadcrumbs"
;
import
Breadcrumbs
from
"@/components/Breadcrumbs"
;
import
DataInfo
from
'./components/DataInfo'
import
DataInfo
from
'./components/DataInfo'
import
CourseTable
from
'./components/CourseTable'
;
import
ExamTable
from
'./components/ExamTable'
;
import
StudyTable
from
'./components/StudyTable'
;
import
'./index.less'
import
'./index.less'
const
{
TabPane
}
=
Tabs
;
function
DataCenter
(
props
:
any
)
{
function
DataCenter
(
props
:
any
)
{
const
{
match
:
{
params
:
{
planId
}
}
}
=
props
;
const
{
match
:
{
params
:
{
planId
}
}
}
=
props
;
const
[
info
,
setInfo
]
=
useState
<
any
>
({})
const
[
info
,
setInfo
]
=
useState
<
any
>
({})
const
[
tabKey
,
setTabKey
]
=
useState
<
any
>
(
''
)
const
tabList
=
[
{
name
:
'课程目录'
,
key
:
'course'
,
compoment
:
CourseTable
,
},
{
name
:
'学习详情'
,
key
:
'study'
,
compoment
:
StudyTable
,
},
{
name
:
'考试详情'
,
key
:
'exam'
,
compoment
:
ExamTable
,
},
]
useEffect
(()
=>
{
useEffect
(()
=>
{
getInfo
()
getInfo
()
...
@@ -27,7 +52,22 @@ function DataCenter(props: any) {
...
@@ -27,7 +52,22 @@ function DataCenter(props: any) {
props
.
history
.
goBack
();
props
.
history
.
goBack
();
}
}
}
}
/>
/>
<
DataInfo
info=
{
info
}
/>
<
div
className=
"content"
>
<
DataInfo
info=
{
info
}
/>
<
Tabs
defaultActiveKey=
"1"
onChange=
{
()
=>
{
}
}
>
{
tabList
.
map
((
item
:
any
)
=>
{
return
<
TabPane
tab=
{
item
.
name
}
key=
{
item
.
key
}
>
{
<
item
.
compoment
/>
}
</
TabPane
>
})
}
</
Tabs
>
</
div
>
</
div
>
</
div
>
}
}
...
...
src/modules/task-center/data-center/components/CourseTable.tsx
0 → 100644
View file @
626001b4
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
{
withRouter
}
from
"react-router-dom"
;
function
CourseTable
(
props
:
any
)
{
return
<
div
className=
"info_banner"
>
</
div
>
}
export
default
withRouter
(
CourseTable
)
\ No newline at end of file
src/modules/task-center/data-center/components/DataInfo.tsx
View file @
626001b4
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
{
withRouter
}
from
"react-router-dom"
;
import
{
withRouter
}
from
"react-router-dom"
;
import
{
Progress
}
from
'antd'
;
import
ENUM
from
'../../emun'
import
ENUM
from
'../../emun'
const
defaultCover
=
'https://image.xiaomaiketang.com/xm/rEAetaTEh3.png'
;
const
defaultCover
=
'https://image.xiaomaiketang.com/xm/rEAetaTEh3.png'
;
...
@@ -29,7 +30,16 @@ function DataInfo(props: any) {
...
@@ -29,7 +30,16 @@ function DataInfo(props: any) {
</
div
>
</
div
>
<
div
className=
"right"
></
div
>
<
div
className=
"right"
>
<
div
className=
"prog"
>
<
Progress
type=
"circle"
width=
{
85
}
percent=
{
75
}
strokeWidth=
{
10
}
format=
{
percent
=>
<
div
className=
'wcl'
>
{
`${percent}% `
}
<
div
>
完成率
</
div
></
div
>
}
/>
</
div
>
<
div
className=
"num"
>
<
div
className=
"item"
>
{
`指派人数:${12}`
}
</
div
>
<
div
className=
"item"
>
{
`学习人数:${12}`
}
</
div
>
<
div
className=
"item"
>
{
`完成人数:${12}`
}
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
}
}
...
...
src/modules/task-center/data-center/components/ExamTable.tsx
0 → 100644
View file @
626001b4
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
{
withRouter
}
from
"react-router-dom"
;
function
CourseTable
(
props
:
any
)
{
return
<
div
className=
"info_banner"
>
</
div
>
}
export
default
withRouter
(
CourseTable
)
\ No newline at end of file
src/modules/task-center/data-center/components/StudyTable.tsx
0 → 100644
View file @
626001b4
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
{
withRouter
}
from
"react-router-dom"
;
function
CourseTable
(
props
:
any
)
{
return
<
div
className=
"info_banner"
>
</
div
>
}
export
default
withRouter
(
CourseTable
)
\ No newline at end of file
src/modules/task-center/data-center/index.less
View file @
626001b4
.train-data-center{
.train-data-center{
.content{
margin: 0 16px;
}
.infoBox{
.infoBox{
background: #FFFFFF;
background: #FFFFFF;
box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.05);
box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.05);
...
@@ -6,7 +9,7 @@
...
@@ -6,7 +9,7 @@
display: flex;
display: flex;
height: 141px;
height: 141px;
justify-content: space-between;
justify-content: space-between;
margin: 0
16
px 16px;
margin: 0
0
px 16px;
.left{
.left{
display: flex;
display: flex;
.banner{
.banner{
...
@@ -42,18 +45,48 @@
...
@@ -42,18 +45,48 @@
}
}
}
}
.info{
.info{
margin-bottom: 12px;
span,.item{
span,.item{
font-size: 14px;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
font-weight: 400;
color: #666666;
color: #666666;
line-height: 20px;
line-height: 20px;
display: inline-block;
}
}
}
}
}
}
}
}
.right{
display: flex;
margin-right: 32px;
.prog{
width: 85px;
margin-top: 27px;
margin-right: 24px;
.wcl{
font-size: 16px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #666666;
line-height: 22px;
text-align: center;
}
}
.num{
margin-top: 27px;
.item{
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #666666;
line-height: 20px;
margin-bottom: 12px;
}
}
}
}
}
}
}
\ No newline at end of file
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