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
c04c3b25
Commit
c04c3b25
authored
May 30, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
8a808686
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
67 deletions
+51
-67
examList.vue
src/components/index/workSituation/examList.vue
+9
-4
operation.vue
src/components/index/workSituation/operation.vue
+12
-16
studentList.vue
src/components/index/workSituation/studentList.vue
+6
-38
index.vue
src/pages/index/index.vue
+3
-0
workSituation.vue
src/pages/index/workSituation.vue
+21
-9
No files found.
src/components/index/workSituation/examList.vue
View file @
c04c3b25
...
...
@@ -5,7 +5,7 @@
<text>
导入考试信息
</text>
</view>
<view
class=
"examList activeOne"
v-for=
"(item,index) in dataList"
:key=
"index"
>
<view
class=
"examList-center-box"
@
click=
"examDetails"
>
<view
class=
"examList-center-box"
@
click=
"examDetails
(item.ExamId)
"
>
<view
class=
"examList-center-line"
></view>
<view
class=
"examList-center flex"
>
<view
class=
"examList-left"
>
...
...
@@ -38,7 +38,7 @@
</view>
</view>
<view
class=
"examList-hint-right"
>
<view>
重新导入
</view>
<view
@
click=
"clickReimport(item)"
>
重新导入
</view>
</view>
</view>
</view>
...
...
@@ -109,9 +109,9 @@
});
let
methods
=
{
examDetails
(){
examDetails
(
item
){
uni
.
reLaunch
({
url
:
'/pages/index/examDetails
'
url
:
'/pages/index/examDetails
?examId='
+
item
});
},
//获取考试信息列表
...
...
@@ -127,6 +127,11 @@
uploadFilesBefore
(){
},
// 重新导入
clickReimport
(
item
){
},
// 添加导入
customUpload
(
event
){
let
host
=
''
if
(
process
.
env
.
NODE_ENV
===
"development"
)
{
...
...
src/components/index/workSituation/operation.vue
View file @
c04c3b25
<
template
>
<view
class=
"operation-box"
>
<view
class=
"operation activeOne"
>
<view
class=
"operation activeOne"
v-for=
"(item,index) in dataList"
:key=
"index"
>
<view
class=
"operation-center-box"
@
click=
"JobDetails"
>
<view
class=
"operation-center-line"
></view>
<view
class=
"operation-center flex"
>
<view
class=
"operation-left"
>
<view
class=
"operation-name"
>
高一作业
</view>
<view
class=
"operation-name"
>
{{
item
.
HomeWorkTitle
}}
</view>
<view
class=
"operation-state flex"
>
<view
class=
"operation-state-point"
></view>
<view
class=
"operation-state-text"
>
进行中
</view>
<view
class=
"operation-state-text"
>
{{
item
.
Status
==
0
?
'未开始'
:(
item
.
Status
==
1
?
'进行中'
:
'已结束'
)
}}
</view>
</view>
</view>
<view
class=
"operation-right flex"
>
<view
class=
"homework-score flex"
>
<view
class=
"homework-score-title"
>
学生数
</view>
<view
class=
"homework-score-num flex"
>
86
{{
item
.
StuNum
}}
</view>
</view>
<view
class=
"homework-score flex"
>
<view
class=
"homework-score-title"
>
已提交
</view>
<view
class=
"homework-score-num flex"
>
86
{{
item
.
SubmitNum
}}
</view>
</view>
<view
class=
"homework-score flex"
>
<view
class=
"homework-score-title"
>
已批阅
</view>
<view
class=
"homework-score-num flex"
>
86
{{
item
.
ReviewNum
}}
</view>
</view>
<view
class=
"homework-score flex"
>
<view
class=
"homework-score-title"
>
优 秀
</view>
<view
class=
"homework-score-num flex"
>
66
{{
item
.
ExcellentNum
}}
</view>
</view>
</view>
...
...
@@ -53,18 +54,13 @@
export
default
{
props
:
{
dataList
:[]
},
components
:
{},
setup
()
{
setup
(
props
)
{
let
data
=
reactive
({
obj
:
{
Name
:
''
,
Photo
:
''
,
},
showPhone
:
false
,
showLogin
:
true
,
//多次点击
dataList
:
props
.
dataList
});
let
methods
=
{
JobDetails
(){
...
...
@@ -77,7 +73,7 @@
...
toRefs
(
data
),
...
methods
};
}
,
}
};
</
script
>
<
style
scoped
>
...
...
src/components/index/workSituation/studentList.vue
View file @
c04c3b25
<
template
>
<view
class=
"studentList-box flex"
>
<view
class=
"studentList-content"
>
<view
class=
"studentList-content"
v-for=
"(item,index) in dataList"
:key=
"index"
>
<view
class=
"studentList flex"
>
<view
class=
"studentList-img"
>
<van-image
width=
"100%"
height=
"100%"
fit=
"cover"
class=
"img"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653
464014000_713
.png"
/>
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653
894192000_645
.png"
/>
</view>
<text>
周杰伦
</text>
</view>
</view>
<view
class=
"studentList-content"
>
<view
class=
"studentList flex"
>
<view
class=
"studentList-img"
>
<van-image
width=
"100%"
height=
"100%"
fit=
"cover"
class=
"img"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653464014000_713.png"
/>
</view>
<text>
周杰伦
</text>
</view>
</view>
<view
class=
"studentList-content"
>
<view
class=
"studentList flex"
>
<view
class=
"studentList-img"
>
<van-image
width=
"100%"
height=
"100%"
fit=
"cover"
class=
"img"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653464014000_713.png"
/>
</view>
<text>
周杰伦
</text>
</view>
</view>
<view
class=
"studentList-content"
>
<view
class=
"studentList flex"
>
<view
class=
"studentList-img"
>
<van-image
width=
"100%"
height=
"100%"
fit=
"cover"
class=
"img"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653464014000_713.png"
/>
</view>
<text>
周杰伦
{{
item
.
StuName
}}
</text>
</view>
</view>
...
...
@@ -57,10 +24,10 @@
export
default
{
props
:
{
dataList
:
[]
},
components
:
{},
setup
()
{
setup
(
props
)
{
let
data
=
reactive
({
obj
:
{
...
...
@@ -69,6 +36,7 @@
},
showPhone
:
false
,
showLogin
:
true
,
//多次点击
dataList
:
props
.
dataList
});
let
methods
=
{
JobDetails
(){
...
...
src/pages/index/index.vue
View file @
c04c3b25
...
...
@@ -152,6 +152,9 @@
data
.
workList
=
[];
proxy
.
$request
(
"/Stu/GetStuWork"
,
this
.
workMsg
).
then
(
res
=>
{
data
.
workList
=
res
.
Data
;
uni
.
reLaunch
({
url
:
'/pages/index/workSituation?tabNme='
+
'作业情况'
+
'&courseId='
+
courseId
});
})
},
async
getColor
(
src
,
index
,
y
)
{
...
...
src/pages/index/workSituation.vue
View file @
c04c3b25
<
template
>
<view
class=
"workSituationpage"
>
<navbar
class=
"navbarSticky"
bg=
"#F6F6F6"
>
<view
class=
"index-header-box"
>
<view
class=
"index-header-box"
@
click=
"back"
>
<view
class=
"index-header-img"
>
<van-image
width=
"100%"
height=
"100%"
fit=
"cover"
class=
"img"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653464014000_713.png"
/>
...
...
@@ -43,8 +43,8 @@
@
scrolltolower=
"lower"
v-if=
"dataList.length > 0"
>
<operation
v-if=
"tabNme=='作业情况'"
></operation>
<studentList
v-if=
"tabNme=='学生列表'"
></studentList>
<operation
v-if=
"tabNme=='作业情况'"
:dataList=
"dataList"
></operation>
<studentList
v-if=
"tabNme=='学生列表'"
:dataList=
"dataList"
></studentList>
<examList
v-if=
"tabNme=='考试信息'"
:dataList=
"dataList"
></examList>
<Loadmore
:state=
"pageState"
/>
</scroll-view>
...
...
@@ -99,12 +99,16 @@
{
name
:
'作业情况'
,
num
:
5
},
{
name
:
'考试信息'
,
num
:
18
},
],
tabNme
:
'
考试信息
'
,
tabNme
:
'
作业情况
'
,
Msg
:{
PageIndex
:
1
,
PageSize
:
10
,
ExamName
:
''
ExamName
:
''
,
courseId
:
''
},
OperationMsg
:{
courseId
:
''
},
pageCount
:
0
,
timer
:
null
,
//防抖
dataList
:[],
...
...
@@ -120,17 +124,20 @@
toggleTitle
(
t
)
{
data
.
tabNme
=
t
if
(
this
.
tabNme
==
'学生列表'
){
this
.
GetExam
StuList
()
this
.
getCourse
StuList
()
}
else
if
(
this
.
tabNme
==
'作业情况'
){
this
.
getGetCourseHomeWorkList
()
}
else
{
this
.
getExamPageList
()
}
},
//获取学生列表
getCourseStuList
(){
proxy
.
$request
(
"/Teacher/GetCourseStu"
,
data
.
Msg
).
then
(
res
=>
{
proxy
.
$request
(
"/Teacher/GetCourseStu"
,
data
.
Operation
Msg
).
then
(
res
=>
{
if
(
res
){
data
.
dataList
=
res
.
Data
;
data
.
pageState
=
"none"
;
return
if
(
data
.
timer
)
data
.
timer
=
null
;
if
(
data
.
Msg
.
PageIndex
===
1
)
{
data
.
dataList
=
res
.
Data
.
PageData
;
...
...
@@ -148,8 +155,11 @@
},
//获取作业情况列表
getGetCourseHomeWorkList
(){
proxy
.
$request
(
"/Teacher/GetCourseHomeWork"
,
data
.
Msg
).
then
(
res
=>
{
proxy
.
$request
(
"/Teacher/GetCourseHomeWork"
,
data
.
Operation
Msg
).
then
(
res
=>
{
if
(
res
){
data
.
dataList
=
res
.
Data
;
data
.
pageState
=
"none"
;
return
if
(
data
.
timer
)
data
.
timer
=
null
;
if
(
data
.
Msg
.
PageIndex
===
1
)
{
data
.
dataList
=
res
.
Data
.
PageData
;
...
...
@@ -214,6 +224,8 @@
},
onLoad
(
option
)
{
this
.
tabNme
=
option
.
tabNme
this
.
OperationMsg
.
courseId
=
option
.
courseId
this
.
Msg
.
courseId
=
option
.
courseId
},
onShow
()
{
this
.
userData
=
uni
.
getStorageSync
(
'userInfo'
);
...
...
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