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
fa578fca
Commit
fa578fca
authored
Aug 21, 2019
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'最新代码提交'
parent
8d2b4b32
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
61 additions
and
12 deletions
+61
-12
sliderblock.png
image/sliderblock.png
+0
-0
index.html
index.html
+29
-2
teachers.js
src/models/teachers.js
+3
-2
EditClassModal.js
src/pages/classmgt/EditClassModal.js
+17
-1
index.js
src/pages/index/index.js
+1
-2
index.js
src/pages/teacher/index.js
+11
-5
No files found.
image/sliderblock.png
0 → 100644
View file @
fa578fca
1.19 KB
index.html
View file @
fa578fca
<!DOCTYPE html>
<html
lang=
"en"
><head><meta
charset=
"UTF-8"
><title>
轻校
</title><link
rel=
"shortcut icon"
href=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/image/qxlogo4.png"
><meta
content=
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0;"
name=
"viewport"
><meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<!-- Polyfills --><!--[if lt IE 10]>
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
轻校
</title>
<link
rel=
"shortcut icon"
href=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/image/qxlogo4.png"
>
<meta
content=
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0;"
name=
"viewport"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<!-- Polyfills -->
<!--[if lt IE 10]>
<script src="js/console-polyfill.js"></script>
<![endif]-->
<script
charset=
"utf-8"
src=
"https://map.qq.com/api/js?v=2.exp&key=XSZBZ-5LHCV-5I2P7-UQHPW-6456F-JBB3B"
></script><link
href=
"/dist/index.css?1566355317524"
rel=
"stylesheet"
><script
src=
"/lib/vendor.dll.js?3"
charset=
"utf-8"
></script><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/console-polyfill.js?3"
charset=
"utf-8"
></script><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es6-shim.min.js?3"
charset=
"utf-8"
></script><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es5-shim.js?3"
charset=
"utf-8"
></script><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es5-sham.min.js?3"
charset=
"utf-8"
></script><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/json3.min.js?3"
charset=
"utf-8"
></script><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/html5shiv.min.js?3"
charset=
"utf-8"
></script><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/polyfill.js?3"
charset=
"utf-8"
></script></head><body><div
id=
"root"
></div><script
src=
"/dist/index.js?1566355317524"
charset=
"utf-8"
></script></body></html>
\ No newline at end of file
<![endif]-->
<script
charset=
"utf-8"
src=
"https://map.qq.com/api/js?v=2.exp&key=XSZBZ-5LHCV-5I2P7-UQHPW-6456F-JBB3B"
></script>
<link
href=
"/dist/index.css?1566376947791"
rel=
"stylesheet"
>
<script
src=
"/lib/vendor.dll.js?3"
charset=
"utf-8"
></script>
<script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/console-polyfill.js?3"
charset=
"utf-8"
></script>
<script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es6-shim.min.js?3"
charset=
"utf-8"
></script>
<script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es5-shim.js?3"
charset=
"utf-8"
></script>
<script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es5-sham.min.js?3"
charset=
"utf-8"
></script>
<script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/json3.min.js?3"
charset=
"utf-8"
></script>
<script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/html5shiv.min.js?3"
charset=
"utf-8"
></script>
<script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/polyfill.js?3"
charset=
"utf-8"
></script>
</head>
<body>
<div
id=
"root"
></div>
<script
src=
"/dist/index.js?1566376947791"
charset=
"utf-8"
></script>
</body>
</html>
\ No newline at end of file
src/models/teachers.js
View file @
fa578fca
...
...
@@ -171,6 +171,7 @@ export default {
const
{
teacherListQueryParams
,
teacherListTotal
,
searching
,
searchteacherListQueryParams
,
}
=
yield
select
(
state
=>
state
.
teachers
);
let
loadmessage
;
if
(
action
==
'search'
)
{
if
(
searching
)
{
return
;
...
...
@@ -181,15 +182,15 @@ export default {
searching
:
true
,
},
});
loadmessage
=
message
.
loading
(
'数据加载中...'
,
0
);
}
let
newTeacherListTotal
=
teacherListTotal
;
const
loadmessage
=
message
.
loading
(
'数据加载中...'
,
0
);
const
newteacherQueryParams
=
Object
.
assign
(
teacherListQueryParams
,
params
,
searchteacherListQueryParams
,
{
school_id
:
sid
,
});
const
teachersinfoData
=
yield
call
(
teachersAjax
.
teachersList
,
newteacherQueryParams
);
setTimeout
(
loadmessage
);
if
(
action
==
'search'
)
{
setTimeout
(
loadmessage
);
yield
put
({
type
:
'updateState'
,
payload
:
{
...
...
src/pages/classmgt/EditClassModal.js
View file @
fa578fca
...
...
@@ -62,6 +62,18 @@ class EditClassModal extends React.Component {
title
:
e
.
target
.
value
,
});
}
delSingleTeacher
=
(
value
)
=>
{
const
{
editClassInfo
}
=
this
.
props
;
const
{
school_teachers
}
=
editClassInfo
;
const
teacherInSchool
=
school_teachers
.
find
(
ele
=>
ele
.
id
==
value
);
console
.
log
(
teacherInSchool
,
'teacherInSchool'
);
console
.
log
((
teacherInSchool
.
all_schedules_count
-
teacherInSchool
.
expired_schedules_count
)
>
0
,
''
);
if
(
teacherInSchool
&&
(
teacherInSchool
.
all_schedules_count
-
teacherInSchool
.
expired_schedules_count
)
>
0
)
{
message
.
warn
(
'该老师还有课程未上,无法删除'
,
1
);
return
;
}
console
.
log
(
'ddddddd'
);
}
render
()
{
const
{
visible
,
...
...
@@ -244,7 +256,11 @@ class EditClassModal extends React.Component {
{
getFieldDecorator
(
'teacher_id'
,
{
initialValue
:
editClassInfo
.
teacher_id
,
})(
<
Select
mode
=
"multiple"
allowClear
placeholder
=
"请选择老师"
>
<
Select
mode
=
"multiple"
onDeselect
=
{
this
.
delSingleTeacher
}
placeholder
=
"请选择老师"
>
{
teacherList
.
map
(
ele
=>
(
<
Option
value
=
{
ele
.
id
}
>
{
ele
.
nickname
}
<
/Option
>
))}
...
...
src/pages/index/index.js
View file @
fa578fca
...
...
@@ -217,7 +217,6 @@ class StaticCenter extends React.Component {
chartEndDate
,
chartStartDate
,
}
=
this
.
props
;
console
.
log
(
staticcenter
);
const
dataArray
=
clockCharts
;
const
month
=
dataArray
.
dates
;
const
clockCount
=
dataArray
.
clock_count
;
...
...
@@ -420,7 +419,7 @@ class StaticCenter extends React.Component {
},
}}
handleStyle
=
{{
img
:
'http://tc.lihail.cn/Group%2019.png'
,
img
:
`
${
__IMGCDN__
}
sliderblock.png`
,
width
:
30
,
height
:
29
,
}}
...
...
src/pages/teacher/index.js
View file @
fa578fca
...
...
@@ -142,11 +142,17 @@ class ClassMgt extends React.Component {
}
changeStatus
=
(
id
,
status
)
=>
{
const
{
dispatch
}
=
this
.
props
;
dispatch
({
type
:
'teachers/teacherStatus'
,
payload
:
{
id
,
status
,
console
.
log
(
status
,
'status'
);
Modal
.
confirm
({
title
:
`确定
${
status
==
1
?
'停用'
:
'启用'
}
该老师吗?`
,
onOk
()
{
dispatch
({
type
:
'teachers/teacherStatus'
,
payload
:
{
id
,
status
,
},
});
},
});
}
...
...
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