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
51944cef
Commit
51944cef
authored
Dec 30, 2019
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
''
parent
a4943e47
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
6 deletions
+5
-6
index.html
index.html
+1
-1
schoollist.js
src/models/schoollist.js
+3
-3
SjdIndex.js
src/pages/SjdIndex.js
+0
-1
index.js
src/utils/index.js
+1
-1
No files found.
index.html
View file @
51944cef
...
...
@@ -18,6 +18,6 @@
</head>
<body>
<div
id=
"root"
></div>
<script
src=
"dist/main.js?15776
88646861
"
charset=
"utf-8"
></script>
<script
src=
"dist/main.js?15776
91544208
"
charset=
"utf-8"
></script>
</body>
</html>
\ No newline at end of file
src/models/schoollist.js
View file @
51944cef
...
...
@@ -64,7 +64,7 @@ export default {
},
*
goSchoolSystem
({
payload
},
{
call
,
put
,
select
})
{
const
{
school
,
sid
,
type
}
=
payload
;
LocalStorage
.
setItem
(
'sid'
,
s
id
||
school
.
id
);
LocalStorage
.
setItem
(
'sid'
,
s
chool
.
school_teacher
.
school_
id
);
LocalStorage
.
setItem
(
'role'
,
school
.
school_teacher
?
school
.
school_teacher
.
type
:
5
);
if
(
school
.
school_teacher
)
{
LocalStorage
.
setItem
(
'rootMap'
,
rootMap
.
rootMap
);
...
...
@@ -75,7 +75,7 @@ export default {
type
:
'webapp/updateState'
,
payload
:
{
sid
:
school
.
id
,
role
:
school
.
school_teacher
?
school
.
school_teacher
.
type
:
''
,
role
:
school
.
school_teacher
?
school
.
school_teacher
.
type
:
5
,
},
});
yield
call
(
commonAjax
.
schoolLoginTime
,
{
...
...
@@ -86,7 +86,7 @@ export default {
yield
put
({
type
:
'permissionget'
,
payload
:
{
sid
:
school
.
id
,
sid
:
school
.
school_
id
,
},
});
}
else
{
...
...
src/pages/SjdIndex.js
View file @
51944cef
...
...
@@ -179,7 +179,6 @@ class SjdIndex extends React.Component {
localStorage
.
clear
();
mainDom
=
redirectLogin
;
}
else
{
console
.
log
(
role
,
rootMap
,
sid
,
'dasdasdas'
);
if
(
!
role
||
!
rootMap
||
!
sid
)
{
mainDom
=
redirectSchoolList
;
}
...
...
src/utils/index.js
View file @
51944cef
...
...
@@ -936,7 +936,7 @@ function btnPermission(menus, btnId) {
const
role
=
LocalStorage
.
getItem
(
'role'
);
if
(
role
==
2
)
{
flag
=
true
;
}
if
(
role
==
5
)
{
}
else
if
(
role
==
5
)
{
flag
=
true
;
}
else
if
(
menus
.
indexOf
(
btnId
)
==
-
1
)
{
flag
=
false
;
...
...
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