Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
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
罗超
confucius
Commits
d05407ab
Commit
d05407ab
authored
Jan 22, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/confucius
# Conflicts: # src/pages/course/prepareclassDetails.vue
parents
6a1323dc
19a58185
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
86 additions
and
3 deletions
+86
-3
Index.vue
src/pages/Index.vue
+86
-3
No files found.
src/pages/Index.vue
View file @
d05407ab
<
template
>
<q-page
class=
"
flex flex-center
"
>
<q-page
class=
"
cloumn home
"
>
<!--
<img
alt=
"Quasar logo"
src=
"~assets/quasar-logo-full.svg"
>
-->
<img
style=
"width:250px;"
alt=
"Quasar logo"
src=
"../assets/images/logo.png"
/>
<div
class=
"box"
>
<div
style=
"margin: 0 auto;width: 130px;"
>
<el-tabs
v-model=
"model"
>
<el-tab-pane
:label=
"item.label"
:name=
"item.value"
:key=
"item.value"
v-for=
"(item, index) in options"
></el-tab-pane>
</el-tabs>
</div>
</div>
<div
v-if=
"model=='one'"
class=
"flex flex-center"
style=
"flex: 1;min-height: 800px"
>
<img
style=
"width:250px;"
alt=
"Quasar logo"
src=
"../assets/images/logo.png"
/>
</div>
<div
v-if=
"model=='two'"
style=
"padding-bottom: 50px;height: 800px;overflow: auto"
>
<teachplan></teachplan>
</div>
</q-page>
</
template
>
<
script
>
import
teachplan
from
'./course/teacherLesson'
export
default
{
name
:
'PageIndex'
components
:{
teachplan
},
name
:
'PageIndex'
,
data
(){
return
{
options
:[
{
label
:
'OKR'
,
value
:
'one'
},
],
model
:
'one'
,
AccountType
:
1
,
ispower
:
false
,
}
},
created
()
{
},
mounted
()
{
let
userInfo
=
this
.
getLocalStorage
();
if
(
userInfo
.
AccountType
&&
userInfo
.
AccountType
==
2
){
//是否是教师1不是 2是
this
.
options
=
[
{
label
:
'OKR'
,
value
:
'one'
},
{
label
:
'备课管理'
,
value
:
'two'
},
];
}
this
.
ispower
=
false
;
if
(
userInfo
.
MenuList
.
length
>
0
){
this
.
getMapList
(
userInfo
.
MenuList
)
//判断菜单权限是否有
}
if
(
this
.
ispower
=
true
){
this
.
options
=
[
{
label
:
'OKR'
,
value
:
'one'
},
{
label
:
'备课管理'
,
value
:
'two'
},
];
}
},
methods
:{
getMapList
(
list
){
list
.
forEach
(
x
=>
{
if
(
x
.
MenuUrl
==
'/course/teacherLesson'
){
this
.
ispower
=
true
}
if
(
x
.
SubList
.
length
>
0
){
this
.
getMapList
(
x
.
SubList
)
}
})
}
}
}
</
script
>
<
style
>
.home
.box
{
width
:
100%
;
}
.home
{
margin
:
0
;
}
::-webkit-scrollbar
{
display
:
none
;
/* Chrome Safari */
}
.box
{
margin
:
0
0
15px
;
}
.box
.el-tabs__header
{
margin
:
0
;
}
</
style
>
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