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
b4d6a35a
Commit
b4d6a35a
authored
Jan 22, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
e02c4ac9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
Index.vue
src/pages/Index.vue
+9
-10
No files found.
src/pages/Index.vue
View file @
b4d6a35a
<
template
>
<
q-page
class=
"cloumn home"
>
<
div
class=
"home"
>
<!--
<img
alt=
"Quasar logo"
src=
"~assets/quasar-logo-full.svg"
>
-->
<div
class=
"box"
>
<div
class=
"box"
v-if=
"AccountType==2 || ispower==true"
>
<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>
...
...
@@ -13,10 +12,10 @@
<div
v-if=
"model=='one'"
class=
"flex flex-center"
style=
"flex: 1;min-height: 750px"
>
<img
style=
"width:250px;"
alt=
"Quasar logo"
src=
"../assets/images/logo.png"
/>
</div>
<div
v-if=
"model=='two'"
style=
"
padding-bottom: 50px;min-
height: 750px;overflow: auto"
>
<div
v-if=
"model=='two'"
style=
"height: 750px;overflow: auto"
>
<teachplan></teachplan>
</div>
</
q-page
>
</
div
>
</
template
>
<
script
>
...
...
@@ -34,7 +33,8 @@
],
model
:
'one'
,
AccountType
:
1
,
ispower
:
false
,
ispower
:
false
,
//是否显示备课管理
}
},
created
()
{
...
...
@@ -42,6 +42,7 @@
},
mounted
()
{
let
userInfo
=
this
.
getLocalStorage
();
this
.
AccountType
=
userInfo
.
AccountType
if
(
userInfo
.
AccountType
&&
userInfo
.
AccountType
==
2
){
//是否是教师1不是 2是
this
.
options
=
[
{
label
:
'OKR'
,
value
:
'one'
},
...
...
@@ -52,15 +53,12 @@
if
(
userInfo
.
MenuList
.
length
>
0
){
this
.
getMapList
(
userInfo
.
MenuList
)
//判断菜单权限是否有
}
if
(
this
.
ispower
=
true
){
if
(
this
.
ispower
=
=
true
){
this
.
options
=
[
{
label
:
'OKR'
,
value
:
'one'
},
{
label
:
'备课管理'
,
value
:
'two'
},
];
}
},
methods
:{
getMapList
(
list
){
...
...
@@ -81,6 +79,7 @@
.home
.box
{
width
:
100%
;
height
:
50px
;
}
.home
{
margin
:
0
;
...
...
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