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
352c8205
Commit
352c8205
authored
May 30, 2022
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
1c57d044
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
8 deletions
+18
-8
examDetailsComponents.vue
src/components/index/scoreDetails/examDetailsComponents.vue
+7
-3
examDetails.vue
src/pages/index/examDetails.vue
+8
-4
scoreDetails.vue
src/pages/index/scoreDetails.vue
+3
-1
No files found.
src/components/index/scoreDetails/examDetailsComponents.vue
View file @
352c8205
<
template
>
<view
class=
"examDetailsComponents-box"
>
<view
class=
"examDetailsComponents activeOne flex"
v-for=
"(item,index) in ExamStu"
:key=
"index"
:class=
"item.StuId ==0?'mismatchActive':''"
>
<view
class=
"examDetailsComponents-time-box flex"
>
<view
class=
"examDetailsComponents-time-box flex"
@
click=
"goStuScoreDetail(item)"
>
<view
class=
"examDetailsComponents-time flex"
>
<view>
{{
item
.
StuName
.
substring
(
0
,
1
)
}}
</view>
<text>
{{
item
.
StuName
.
substring
(
1
,
item
.
StuName
.
length
)
}}
</text>
...
...
@@ -10,7 +10,7 @@
<view
class=
"examDetailsComponents-point"
></view>
</view>
</view>
<view
class=
"examDetailsComponents-center-box"
>
<view
class=
"examDetailsComponents-center-box"
@
click=
"goStuScoreDetail(item)"
>
<view
class=
"Mismatch-box"
v-if=
"item.StuId ===0"
>
<view
class=
"Mismatch-title flex"
>
<van-icon
name=
"warning"
/>
...
...
@@ -72,7 +72,11 @@
showLogin
:
true
,
//多次点击
});
let
methods
=
{
goStuScoreDetail
(
item
){
uni
.
reLaunch
({
url
:
'/pages/index/scoreDetails?examId='
+
item
.
ExamId
+
"&stuId="
+
item
.
StuId
});
}
}
return
{
...
toRefs
(
data
),
...
...
src/pages/index/examDetails.vue
View file @
352c8205
...
...
@@ -10,17 +10,17 @@
<view
class=
"jobDetails-content"
>
<view
class=
"jobDetails-content-header"
>
<view
class=
"jobDetails-conten-title flex"
>
<text>
2022年5月28日
</text>
<view>
化学第一次测试
</view>
<text>
{{
CreateTime
}}
</text>
<view>
{{
ExamName
}}
</view>
</view>
<view
class=
"jobDetails-num-box flex"
>
<view
class=
"jobDetails-num flex"
>
<text>
人数
</text>
<view>
15
</view>
<view>
{{
ExamNum
}}
</view>
</view>
<view
class=
"jobDetails-num flex"
>
<text>
平均得分
</text>
<view>
12
</view>
<view>
{{
AvgScore
}}
</view>
</view>
</view>
</view>
...
...
@@ -56,6 +56,10 @@
ExamId
:
0
,
StuName
:
""
},
CreateTime
:
"2022-05-30"
,
ExamName
:
"测试需要绑"
,
ExamNum
:
0
,
AvgScore
:
0
,
ExamStu
:[]
});
let
methods
=
{
...
...
src/pages/index/scoreDetails.vue
View file @
352c8205
...
...
@@ -128,7 +128,8 @@
userData
:
{},
Msg
:{
ExamId
:
0
,
StuUId
:
0
StuUId
:
0
,
StuId
:
0
},
ExamScore
:{},
Loading
:
true
...
...
@@ -160,6 +161,7 @@
onLoad
(
options
){
this
.
Msg
.
ExamId
=
options
.
examId
;
this
.
Msg
.
StuUId
=
options
.
stuUId
;
this
.
Msg
.
StuId
=
options
.
stuId
;
},
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