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
a0ad0021
Commit
a0ad0021
authored
Dec 30, 2019
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
''
parent
8821dbda
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
10 deletions
+14
-10
index.html
index.html
+3
-3
CourseChart.js
src/components/CourseChart.js
+5
-1
index.js
src/pages/index/index.js
+6
-6
No files found.
index.html
View file @
a0ad0021
...
...
@@ -11,13 +11,13 @@
<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>
<script
src=
"/js/ueeditor/ueditor.config.js?20191012222"
charset=
"utf-8"
></script><script
src=
"/js/ueeditor/ueditor.all.js?20191012222"
charset=
"utf-8"
></script>
<script
src=
"js/console-polyfill.js?20191012222"
charset=
"utf-8"
></script><script
src=
"js/es6-shim.min.js?20191012222"
charset=
"utf-8"
></script><script
src=
"js/es5-shim.js?20191012222"
charset=
"utf-8"
></script><script
src=
"js/es5-sham.min.js?20191012222"
charset=
"utf-8"
></script><script
src=
"js/json3.min.js?20191012222"
charset=
"utf-8"
></script><script
src=
"js/html5shiv.min.js?20191012222"
charset=
"utf-8"
></script><script
src=
"js/polyfill.js?20191012222"
charset=
"utf-8"
></script><script
src=
"lib/vendor.dll.js?20191012222"
charset=
"utf-8"
></script>
</head>
</head>
<body>
<div
id=
"root"
></div>
<script
src=
"dist/main.js?157767
1604271
"
charset=
"utf-8"
></script>
<script
src=
"dist/main.js?157767
4696468
"
charset=
"utf-8"
></script>
</body>
</html>
</html>
\ No newline at end of file
src/components/CourseChart.js
View file @
a0ad0021
...
...
@@ -904,7 +904,11 @@ class CourseChart extends React.Component {
<
/Button.Group
>
<
/div
>
<
div
className
=
{
pageStyle
.
rightbox
}
>
{
hasBtnPower
(
'sjd/indexstaic'
,
'planSchedule'
)
&&
<
Button
type
=
"primary"
onClick
=
{
goPlanCourse
}
>
一键排课
<
/Button>
}
{
hasBtnPower
(
'sjd/indexstaic'
,
'planSchedule'
)
&&
<
BtnPermission
btnId
=
"30008"
>
<
Button
type
=
"primary"
onClick
=
{
goPlanCourse
}
>
一键排课
<
/Button
>
<
/BtnPermission
>
}
{
LocalStorage
.
getItem
(
'role'
)
!=
1
&&
<
Select
className
=
{
pageStyle
.
selectitem
}
value
=
{
scheduleListQueryParams
.
teacher_id
}
onChange
=
{
this
.
changeTeacher
}
>
<
Option
value
=
""
>
全部老师
<
/Option
>
...
...
src/pages/index/index.js
View file @
a0ad0021
...
...
@@ -6,7 +6,7 @@ import {
Redirect
,
routerRedux
,
}
from
'dva/router'
;
import
$
from
'jquery'
;
//
import $ from 'jquery';
import
{
connect
}
from
'dva'
;
import
{
message
,
...
...
@@ -112,7 +112,7 @@ class StaticCenter extends React.Component {
createTheme
=
()
=>
{
const
{
dispatch
,
userPermission
}
=
this
.
props
;
if
(
!
btnPermission
(
userPermission
,
30002
))
{
message
.
warn
(
'暂无权限,请管理员开通【主题管理权限】'
,
1
);
message
.
warn
(
'暂无权限,请
联系
管理员开通【主题管理权限】'
,
1
);
return
;
}
dispatch
({
...
...
@@ -125,7 +125,7 @@ class StaticCenter extends React.Component {
createCalendarTheme
=
()
=>
{
const
{
dispatch
,
userPermission
}
=
this
.
props
;
if
(
!
btnPermission
(
userPermission
,
30002
))
{
message
.
warn
(
'暂无权限,请管理员开通【主题管理权限】'
,
1
);
message
.
warn
(
'暂无权限,请
联系
管理员开通【主题管理权限】'
,
1
);
return
;
}
dispatch
({
...
...
@@ -371,7 +371,7 @@ class StaticCenter extends React.Component {
return
;
}
if
(
visible
==
true
&&
!
btnPermission
(
userPermission
,
30007
))
{
message
.
warn
(
'暂无权限,请管理员开通【添加学员】'
,
1
);
message
.
warn
(
'暂无权限,请
联系
管理员开通【添加学员】'
,
1
);
return
;
}
dispatch
({
...
...
@@ -727,7 +727,7 @@ class StaticCenter extends React.Component {
createCourse
=
()
=>
{
const
{
dispatch
,
userPermission
}
=
this
.
props
;
if
(
!
btnPermission
(
userPermission
,
50000
))
{
message
.
warn
(
'暂无权限,请管理员开通【新增课程权限】'
,
1
);
message
.
warn
(
'暂无权限,请
联系
管理员开通【新增课程权限】'
,
1
);
return
;
}
dispatch
({
...
...
@@ -777,7 +777,7 @@ class StaticCenter extends React.Component {
createClass
=
()
=>
{
const
{
dispatch
,
userPermission
}
=
this
.
props
;
if
(
!
btnPermission
(
userPermission
,
30001
))
{
message
.
warn
(
'暂无权限,请管理员开通【添加班级】'
,
1
);
message
.
warn
(
'暂无权限,请
联系
管理员开通【添加班级】'
,
1
);
return
;
}
dispatch
({
...
...
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