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
2667e5d0
Commit
2667e5d0
authored
May 30, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
cab5cd30
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
7 deletions
+17
-7
jobDetailsComponents.vue
src/components/index/scoreDetails/jobDetailsComponents.vue
+2
-0
examList.vue
src/components/index/workSituation/examList.vue
+11
-6
workSituation.vue
src/pages/index/workSituation.vue
+4
-1
No files found.
src/components/index/scoreDetails/jobDetailsComponents.vue
View file @
2667e5d0
...
@@ -191,6 +191,8 @@
...
@@ -191,6 +191,8 @@
margin-left
:
4
rpx
;
margin-left
:
4
rpx
;
}
}
.jobDetailsComponents-time
{
.jobDetailsComponents-time
{
width
:
95
rpx
;
flex-shrink
:
0
;
color
:
#282828
;
color
:
#282828
;
font-size
:
36
rpx
;
font-size
:
36
rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
...
...
src/components/index/workSituation/examList.vue
View file @
2667e5d0
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<text>
导入考试信息
</text>
<text>
导入考试信息
</text>
</view>
</view>
<view
class=
"examList activeOne"
v-for=
"(item,index) in dataList"
:key=
"index"
>
<view
class=
"examList activeOne"
v-for=
"(item,index) in dataList"
:key=
"index"
>
<view
class=
"examList-center-box"
@
click=
"examDetails(item)"
>
<view
class=
"examList-center-box"
@
click=
"examDetails(item
.ExamId
)"
>
<view
class=
"examList-center-line"
></view>
<view
class=
"examList-center-line"
></view>
<view
class=
"examList-center flex"
>
<view
class=
"examList-center flex"
>
<view
class=
"examList-left"
>
<view
class=
"examList-left"
>
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
<van-icon
class=
"examList-popup-closure"
name=
"cross"
@
click=
"closepopup"
/>
<van-icon
class=
"examList-popup-closure"
name=
"cross"
@
click=
"closepopup"
/>
<view
class=
"examList-popup-title"
>
导入考试信息
</view>
<view
class=
"examList-popup-title"
>
导入考试信息
</view>
<view
class=
"examList-popup-content"
>
<view
class=
"examList-popup-content"
>
<input
v-model=
"uploadParm.ExamName"
class=
"examList-popup-name"
placeholder=
"请输入考试名称"
>
<input
v-model=
"uploadParm.ExamName"
class=
"examList-popup-name"
placeholder=
"请输入考试名称"
/
>
<van-uploader
<van-uploader
class=
"examList-popup-fil-box flex"
class=
"examList-popup-fil-box flex"
multiple
multiple
...
@@ -57,6 +57,7 @@
...
@@ -57,6 +57,7 @@
preview-size=
"120rpx"
preview-size=
"120rpx"
:before-read=
"beforeRead"
:before-read=
"beforeRead"
@
after-read=
"customUpload"
@
after-read=
"customUpload"
:disabled=
"loading"
>
>
<view
class=
"examList-popup-fil"
>
<view
class=
"examList-popup-fil"
>
<van-image
class=
"img"
width=
"32rpx"
height=
"32rpx"
fit=
"cover"
<van-image
class=
"img"
width=
"32rpx"
height=
"32rpx"
fit=
"cover"
...
@@ -75,7 +76,8 @@
...
@@ -75,7 +76,8 @@
toRefs
,
toRefs
,
onMounted
,
onMounted
,
getCurrentInstance
,
getCurrentInstance
,
inject
inject
,
watch
}
from
"vue"
;
}
from
"vue"
;
import
{
uploadFile
}
from
"@/utils/index"
;
import
{
uploadFile
}
from
"@/utils/index"
;
export
default
{
export
default
{
...
@@ -105,13 +107,14 @@
...
@@ -105,13 +107,14 @@
PageSize
:
10
,
PageSize
:
10
,
ExamName
:
''
ExamName
:
''
},
},
dataList
:
props
.
dataList
dataList
:
props
.
dataList
,
loading
:
false
,
});
});
let
methods
=
{
let
methods
=
{
examDetails
(
item
){
examDetails
(
item
){
uni
.
reLaunch
({
uni
.
reLaunch
({
url
:
'/pages/index/examDetails?examId='
+
item
.
ExamId
+
'&createTime='
+
item
.
CreateTime
+
'&examName='
+
item
.
ExamName
+
'&examNum='
+
item
.
StuNum
+
'&avgScore='
+
item
.
AvgScore
url
:
'/pages/index/examDetails?examId='
+
item
});
});
},
},
closepopup
(){
closepopup
(){
...
@@ -224,7 +227,6 @@
...
@@ -224,7 +227,6 @@
CourseId
:
data
.
uploadParm
.
CourseId
,
CourseId
:
data
.
uploadParm
.
CourseId
,
ExamName
:
data
.
uploadParm
.
ExamName
ExamName
:
data
.
uploadParm
.
ExamName
}
}
console
.
log
(
data
.
uploadParm
,
'-----'
)
uni
.
uploadFile
({
uni
.
uploadFile
({
url
:
host
+
'/Upload/UploadStuExamScore'
,
url
:
host
+
'/Upload/UploadStuExamScore'
,
filePath
:
file
[
0
].
url
,
filePath
:
file
[
0
].
url
,
...
@@ -234,6 +236,7 @@
...
@@ -234,6 +236,7 @@
params
:
JSON
.
stringify
(
data
.
uploadParm
)
params
:
JSON
.
stringify
(
data
.
uploadParm
)
},
},
success
(
res
)
{
success
(
res
)
{
data
.
loading
=
true
if
(
res
.
Code
==
1
){
if
(
res
.
Code
==
1
){
uni
.
showToast
({
uni
.
showToast
({
...
@@ -247,6 +250,7 @@
...
@@ -247,6 +250,7 @@
CourseId
:
''
,
CourseId
:
''
,
ExamName
:
''
ExamName
:
''
}
}
data
.
loading
=
false
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'导入失败'
,
title
:
'导入失败'
,
...
@@ -254,6 +258,7 @@
...
@@ -254,6 +258,7 @@
duration
:
500
duration
:
500
})
})
uni
.
hideLoading
();
uni
.
hideLoading
();
data
.
loading
=
false
}
}
this
.
$parent
.
getExamPageList
();
this
.
$parent
.
getExamPageList
();
},
},
...
...
src/pages/index/workSituation.vue
View file @
2667e5d0
...
@@ -46,8 +46,8 @@
...
@@ -46,8 +46,8 @@
<operation
v-if=
"tabNme=='作业情况'"
:dataList=
"dataList"
></operation>
<operation
v-if=
"tabNme=='作业情况'"
:dataList=
"dataList"
></operation>
<studentList
v-if=
"tabNme=='学生列表'"
:dataList=
"dataList"
></studentList>
<studentList
v-if=
"tabNme=='学生列表'"
:dataList=
"dataList"
></studentList>
<examList
v-if=
"tabNme=='考试信息'"
:dataList=
"dataList"
></examList>
<examList
v-if=
"tabNme=='考试信息'"
:dataList=
"dataList"
></examList>
<Loadmore
:state=
"pageState"
/>
</scroll-view>
</scroll-view>
<Loadmore
:state=
"pageState"
/>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -134,6 +134,7 @@
...
@@ -134,6 +134,7 @@
},
},
//获取学生列表
//获取学生列表
getCourseStuList
(){
getCourseStuList
(){
data
.
pageState
=
"loading"
;
proxy
.
$request
(
"/Teacher/GetCourseStu"
,
data
.
OperationMsg
).
then
(
res
=>
{
proxy
.
$request
(
"/Teacher/GetCourseStu"
,
data
.
OperationMsg
).
then
(
res
=>
{
if
(
res
){
if
(
res
){
data
.
titleList
.
forEach
(
item
=>
{
data
.
titleList
.
forEach
(
item
=>
{
...
@@ -148,6 +149,7 @@
...
@@ -148,6 +149,7 @@
},
},
//获取作业情况列表
//获取作业情况列表
getCourseHomeWorkList
(){
getCourseHomeWorkList
(){
data
.
pageState
=
"loading"
;
proxy
.
$request
(
"/Teacher/GetCourseHomeWork"
,
data
.
OperationMsg
).
then
(
res
=>
{
proxy
.
$request
(
"/Teacher/GetCourseHomeWork"
,
data
.
OperationMsg
).
then
(
res
=>
{
if
(
res
){
if
(
res
){
data
.
titleList
.
forEach
(
item
=>
{
data
.
titleList
.
forEach
(
item
=>
{
...
@@ -162,6 +164,7 @@
...
@@ -162,6 +164,7 @@
},
},
//获取考试信息列表
//获取考试信息列表
getExamPageList
(){
getExamPageList
(){
data
.
pageState
=
"loading"
;
proxy
.
$request
(
"/Exam/GetExamPageList"
,
data
.
Msg
).
then
(
res
=>
{
proxy
.
$request
(
"/Exam/GetExamPageList"
,
data
.
Msg
).
then
(
res
=>
{
if
(
res
){
if
(
res
){
data
.
titleList
.
forEach
(
item
=>
{
data
.
titleList
.
forEach
(
item
=>
{
...
...
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