Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
thinkApp
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
游洁
thinkApp
Commits
7e949616
Commit
7e949616
authored
May 30, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
d1b3d592
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
5 deletions
+28
-5
index.vue
src/pages/index/index.vue
+5
-0
workSituation.vue
src/pages/index/workSituation.vue
+23
-5
No files found.
src/pages/index/index.vue
View file @
7e949616
...
...
@@ -177,6 +177,11 @@
onShow
()
{
this
.
getStuCourse
();
this
.
userData
=
uni
.
getStorageSync
(
'userInfo'
);
if
(
this
.
userData
&&
this
.
userData
.
AccountType
==
1
){
uni
.
redirectTo
({
url
:
'/pages/index/workSituation'
})
}
},
onShareAppMessage
()
{
return
{
...
...
src/pages/index/workSituation.vue
View file @
7e949616
...
...
@@ -10,14 +10,14 @@
<view
class=
"index-header-title"
>
welcome
</view>
<view
class=
"index-header-name"
>
周一围
</view>
<view
class=
"index-header-name"
>
{{
userData
.
AccountName
}}
</view>
</view>
</view>
</navbar>
<view
style=
"margin: 40rpx 0 10rpx 0;"
>
<view
style=
"padding:0 50rpx;font-weight: 800;color: #282828;"
>
<view
style=
"font-size: 36rpx;"
>
Good afternoon,
</view>
<view
style=
"font-size: 50rpx;"
>
李
老师
</view>
<view
style=
"font-size: 50rpx;"
>
{{
userData
.
AccountName
}}
老师
</view>
</view>
</view>
<courseCard></courseCard>
...
...
@@ -49,6 +49,7 @@
<Loadmore
:state=
"pageState"
/>
</scroll-view>
</view>
<van-toast
id=
"van-toast"
/>
</view>
</
template
>
...
...
@@ -69,6 +70,7 @@
onMounted
,
provide
,
nextTick
,
inject
}
from
"vue"
;
import
{
...
...
@@ -93,6 +95,12 @@
let
{
proxy
}
=
getCurrentInstance
();
let
Toast
=
inject
(
"$toast"
)
Toast
.
loading
({
message
:
'加载中...'
,
forbidClick
:
true
,
loadingType
:
'spinner'
,
});
let
data
=
reactive
({
titleList
:[
{
name
:
'学生列表'
,
num
:
18
},
...
...
@@ -112,9 +120,11 @@
pageCount
:
0
,
timer
:
null
,
//防抖
dataList
:[],
pageState
:
"more"
pageState
:
"more"
,
loading
:
true
,
userData
:{}
});
data
.
userData
=
uni
.
getStorageSync
(
'userInfo'
);
let
methods
=
{
back
()
{
uni
.
navigateTo
({
...
...
@@ -133,10 +143,12 @@
},
//获取学生列表
getCourseStuList
(){
data
.
loading
=
true
proxy
.
$request
(
"/Teacher/GetCourseStu"
,
data
.
OperationMsg
).
then
(
res
=>
{
if
(
res
){
data
.
dataList
=
res
.
Data
;
data
.
pageState
=
"none"
;
data
.
loading
=
false
return
if
(
data
.
timer
)
data
.
timer
=
null
;
if
(
data
.
Msg
.
PageIndex
===
1
)
{
...
...
@@ -150,11 +162,13 @@
}
else
{
data
.
pageState
=
"more"
;
}
}
})
},
//获取作业情况列表
getGetCourseHomeWorkList
(){
data
.
loading
=
true
proxy
.
$request
(
"/Teacher/GetCourseHomeWork"
,
data
.
OperationMsg
).
then
(
res
=>
{
if
(
res
){
data
.
dataList
=
res
.
Data
;
...
...
@@ -172,11 +186,14 @@
}
else
{
data
.
pageState
=
"more"
;
}
data
.
loading
=
false
}
})
},
//获取考试信息列表
getExamPageList
(){
data
.
loading
=
true
proxy
.
$request
(
"/Exam/GetExamPageList"
,
data
.
Msg
).
then
(
res
=>
{
if
(
res
){
if
(
data
.
timer
)
data
.
timer
=
null
;
...
...
@@ -191,6 +208,7 @@
}
else
{
data
.
pageState
=
"more"
;
}
data
.
loading
=
false
}
})
},
...
...
@@ -229,7 +247,7 @@
this
.
Msg
.
courseId
=
option
.
courseId
},
onShow
()
{
this
.
userData
=
uni
.
getStorageSync
(
'userInfo'
);
//
this.userData = uni.getStorageSync('userInfo');
if
(
this
.
tabNme
==
'学生列表'
){
this
.
getCourseStuList
()
}
else
if
(
this
.
tabNme
==
'作业情况'
){
...
...
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