Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
biz.qingxiao.com
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxuelai
biz.qingxiao.com
Commits
fada4b2b
Commit
fada4b2b
authored
Dec 03, 2019
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
''
parent
63b43bd5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
320 additions
and
249 deletions
+320
-249
courserecord.png
image/menu/courserecord.png
+0
-0
courserecordactive.png
image/menu/courserecordactive.png
+0
-0
menuconfig.js
src/common/menuconfig.js
+2
-2
CallStudents.js
src/components/CallStudents.js
+38
-3
CourseChart.js
src/components/CourseChart.js
+157
-42
CourseChart.less
src/components/CourseChart.less
+35
-9
callstudents.js
src/models/callstudents.js
+4
-3
indexstaic.js
src/models/indexstaic.js
+6
-6
index.js
src/pages/index/index.js
+78
-184
No files found.
image/menu/courserecord.png
0 → 100644
View file @
fada4b2b
1.03 KB
image/menu/courserecordactive.png
0 → 100644
View file @
fada4b2b
781 Bytes
src/common/menuconfig.js
View file @
fada4b2b
...
...
@@ -73,8 +73,8 @@ export default {
width
:
'20px'
,
height
:
'20px'
,
},
activeurl
:
`
${
__IMGCDN__
}
menu/
teacher
active.png`
,
notactiveurl
:
`
${
__IMGCDN__
}
menu/
teacher
.png`
,
activeurl
:
`
${
__IMGCDN__
}
menu/
courserecord
active.png`
,
notactiveurl
:
`
${
__IMGCDN__
}
menu/
courserecord
.png`
,
path
:
'/sjd/record'
,
relativePath
:
[
'/sjd/record'
],
},
...
...
src/components/CallStudents.js
View file @
fada4b2b
...
...
@@ -124,13 +124,13 @@ class CallStudentsForm extends React.Component {
});
return
;
}
if
(
callType
==
1
)
{
if
(
callType
==
1
||
callType
==
3
)
{
dispatch
({
type
:
'callstudents/studentCallPost'
,
payload
:
{
callBack
:
()
=>
{
callBack
:
(
id
)
=>
{
if
(
callBack
&&
(
typeof
callBack
==
'function'
))
{
callBack
();
callBack
(
id
);
}
},
},
...
...
@@ -645,6 +645,41 @@ class CallStudentsForm extends React.Component {
<
/Col
>
<
/Row
>
<
/div>
}
{
callType
==
3
&&
<
div
>
<
Row
gutter
=
{
16
}
className
=
{
pageStyle
.
detailrow
}
>
<
Col
xs
=
{{
span
:
24
}}
sm
=
{{
span
:
12
}}
md
=
{{
span
:
12
}}
lg
=
{{
span
:
6
}}
style
=
{{
marginBottom
:
'20px'
}}
>
<
span
className
=
{
pageStyle
.
detailtitle
}
>
上课班级:
<
/span
>
<
span
className
=
{
pageStyle
.
detaildesc
}
>
{
callStudentSchedule
.
class
&&
callStudentSchedule
.
class
.
title
}
<
/span
>
<
/Col
>
<
Col
xs
=
{{
span
:
24
}}
sm
=
{{
span
:
12
}}
md
=
{{
span
:
12
}}
lg
=
{{
span
:
6
}}
style
=
{{
marginBottom
:
'20px'
}}
>
<
span
className
=
{
pageStyle
.
detailtitle
}
>
上课课程:
<
/span
>
<
span
className
=
{
pageStyle
.
detaildesc
}
>
{
callStudentSchedule
.
course
&&
callStudentSchedule
.
course
.
title
}
<
/span
>
<
/Col
>
<
Col
xs
=
{{
span
:
24
}}
sm
=
{{
span
:
12
}}
md
=
{{
span
:
12
}}
lg
=
{{
span
:
6
}}
style
=
{{
marginBottom
:
'20px'
}}
>
<
span
className
=
{
pageStyle
.
detailtitle
}
>
上课日期:
<
/span
>
<
span
className
=
{
pageStyle
.
detaildesc
}
>
{
callStudentSchedule
.
start_date
}
<
/span
>
<
/Col
>
<
Col
xs
=
{{
span
:
24
}}
sm
=
{{
span
:
12
}}
md
=
{{
span
:
12
}}
lg
=
{{
span
:
6
}}
style
=
{{
marginBottom
:
'20px'
}}
>
<
span
className
=
{
pageStyle
.
detailtitle
}
>
上课老师:
<
/span
>
{
callStudentSchedule
.
school_teacher
&&
callStudentSchedule
.
school_teacher
.
nickname
&&
<
span
className
=
{
pageStyle
.
detaildesc
}
>
{
callStudentSchedule
.
school_teacher
.
nickname
}
<
/span
>
}
<
/Col
>
<
Col
xs
=
{{
span
:
24
}}
sm
=
{{
span
:
12
}}
md
=
{{
span
:
12
}}
lg
=
{{
span
:
6
}}
style
=
{{
marginBottom
:
'20px'
}}
>
<
span
className
=
{
pageStyle
.
detailtitle
}
>
上课教室:
<
/span
>
<
span
className
=
{
pageStyle
.
detaildesc
}
>
{(
callStudentSchedule
.
class_room
&&
callStudentSchedule
.
class_room
.
title
)
||
'未设置'
}
<
/span
>
<
/Col
>
<
Col
xs
=
{{
span
:
24
}}
sm
=
{{
span
:
12
}}
md
=
{{
span
:
12
}}
lg
=
{{
span
:
6
}}
>
<
span
className
=
{
pageStyle
.
detailtitle
}
>
上课时间:
<
/span
>
<
span
className
=
{
pageStyle
.
detaildesc
}
>
{
callStudentSchedule
.
start_date_format
}
-
{
callStudentSchedule
.
end_date_format
}
<
/span
>
<
/Col
>
<
Col
xs
=
{{
span
:
24
}}
sm
=
{{
span
:
12
}}
md
=
{{
span
:
12
}}
lg
=
{{
span
:
6
}}
>
<
span
className
=
{
pageStyle
.
detailtitle
}
>
授课课时:
<
/span
>
<
InputNumber
value
=
{
expend
}
size
=
"middle"
className
=
{
pageStyle
.
hourInput
}
onChange
=
{
this
.
changeExpand
}
/
>
<
/Col
>
<
/Row
>
<
/div>
}
{
callType
==
2
&&
<
div
>
<
Row
gutter
=
{
16
}
className
=
{
pageStyle
.
detailrow
}
>
...
...
src/components/CourseChart.js
View file @
fada4b2b
This diff is collapsed.
Click to expand it.
src/components/CourseChart.less
View file @
fada4b2b
...
...
@@ -85,7 +85,7 @@
align-items: center;
justify-content: space-between;
color: #FFFFFF;
padding:
0
15px 10px;
padding:
10px
15px 10px;
line-height: 1;
.left {
display: flex;
...
...
@@ -107,28 +107,54 @@
display: flex;
align-items: center;
padding: 0 15px;
color: rgba(255,255,255,0.
5
);
color: rgba(255,255,255,0.
7
);
line-height: 1;
padding-bottom: 10px;
font-size: 12px;
word-break: break-all;
.whitedot {
width: 8px;
height: 4px;
border-radius: 2px;
margin-right: 9px;
background-color:
rgba(255,255,255,0.5)
;
background-color:
#A9A9A9
;
}
.name {
margin-right: 5px;
}
}
.classtitlebox {
text-align: center;
//
text-align: center;
color: #FFFFFF;
font-size: 14px;
word-break: break-all;
padding: 10px 15px;
text-align: center;
padding: 0 15px 11px;
// text-align: center;
}
.coursetitlebox {
color: rgba(255,255,255,0.7);
font-size: 14px;
padding: 0 15px 15px;
}
.divideline {
border-bottom: 1px solid rgba(255,255,255,0.1);
}
.btnbox {
display: flex;
align-items: center;
.btnitem {
flex-grow: 1;
text-align: center;
line-height: 50px;
color: #FFFFFF;
cursor: pointer;
&:hover {
background-color: rgba(0,0,0,1);
}
&:first-child {
border-right: 1px solid rgba(255,255,255,0.2);
}
}
}
:global {
.ant-popover-content {
...
...
@@ -137,13 +163,13 @@
border-radius: 4px;
}
.ant-popover-inner-content {
background-color: rgba(0,0,0,0.
7
);
background-color: rgba(0,0,0,0.
8
);
border-radius: 4px;
padding: 15px 0 0;
}
.ant-popover-arrow {
border-top-color: rgba(0, 0, 0, 0.
7
);
border-left-color: rgba(0, 0, 0, 0.
7
);
border-top-color: rgba(0, 0, 0, 0.
8
);
border-left-color: rgba(0, 0, 0, 0.
8
);
}
}
}
...
...
src/models/callstudents.js
View file @
fada4b2b
...
...
@@ -194,7 +194,7 @@ export default {
const
{
sid
}
=
yield
select
(
state
=>
state
.
webapp
);
let
newcallStudentTotal
=
callStudentTotal
;
let
newqueryScheduleStudentListParams
=
{};
if
(
callType
==
1
)
{
// 正常点名
if
(
callType
==
1
||
callType
==
3
)
{
// 正常点名
newqueryScheduleStudentListParams
=
Object
.
assign
(
queryCallStudentListParams
,
{
school_id
:
sid
,
extra
:
'time,recently_course'
,
...
...
@@ -322,6 +322,7 @@ export default {
course_id
:
callStudentSchedule
.
course_id
,
});
const
callStudengListDate
=
yield
call
(
schedulemgtAjax
.
getStudentCalls
,
newqueryScheduleStudentListParams
);
console
.
log
(
'ddddddddddddddddddddddd'
);
yield
put
({
type
:
'updateState'
,
payload
:
{
...
...
@@ -586,7 +587,7 @@ export default {
});
const
loading
=
message
.
loading
(
'点名处理中...'
,
0
);
const
studentCallsDate
=
yield
call
(
schedulemgtAjax
.
studentCalls
,
{
type
:
callType
,
type
:
(
callType
==
1
||
callType
==
3
)
?
1
:
callType
,
school_id
:
sid
,
call_students
:
callStudent
.
join
(
';'
),
expend
,
...
...
@@ -613,7 +614,7 @@ export default {
},
});
if
(
callBack
&&
(
typeof
callBack
==
'function'
))
{
callBack
();
callBack
(
callStudentSchedule
.
id
);
}
}
else
{
yield
put
({
...
...
src/models/indexstaic.js
View file @
fada4b2b
...
...
@@ -482,12 +482,12 @@ export default {
judgetodaycurrentTimestamp
:
(
new
Date
(
staticcenter
.
datetime
.
replace
(
/-/g
,
'/'
)).
getTime
()),
},
});
//
yield put({
//
type: 'coursechart/queryInfo',
//
payload: {
//
dateTime: staticcenter.datetime,
//
},
//
});
yield
put
({
type
:
'coursechart/queryInfo'
,
payload
:
{
dateTime
:
staticcenter
.
datetime
,
},
});
if
(
staticcenter
.
code
==
200
)
{
yield
put
({
type
:
'updateState'
,
...
...
src/pages/index/index.js
View file @
fada4b2b
This diff is collapsed.
Click to expand it.
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