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
10d2cf81
Commit
10d2cf81
authored
Jun 01, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
111
parents
71e1bd89
1b54202b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
429 additions
and
402 deletions
+429
-402
JobComponents.vue
src/components/index/JobComponents.vue
+5
-1
examComponents.vue
src/components/index/examComponents.vue
+13
-1
analysisTest.vue
src/components/index/scoreDetails/analysisTest.vue
+2
-2
examDetailsComponents.vue
src/components/index/scoreDetails/examDetailsComponents.vue
+2
-1
jobDetailsComponents.vue
src/components/index/scoreDetails/jobDetailsComponents.vue
+1
-1
courseCard.vue
src/components/index/workSituation/courseCard.vue
+9
-5
examList.vue
src/components/index/workSituation/examList.vue
+25
-18
operation.vue
src/components/index/workSituation/operation.vue
+3
-2
commentDetails.vue
src/components/setComments/commentDetails.vue
+268
-301
commentDetailsPopu.vue
src/components/setComments/commentDetailsPopu.vue
+4
-0
setComments.vue
src/components/setComments/setComments.vue
+10
-3
examDetails.vue
src/pages/index/examDetails.vue
+3
-3
index.vue
src/pages/index/index.vue
+12
-15
jobDetails.vue
src/pages/index/jobDetails.vue
+4
-4
scoreDetails.vue
src/pages/index/scoreDetails.vue
+12
-2
workSituation.vue
src/pages/index/workSituation.vue
+39
-35
commentRulesList.vue
src/pages/setComments/commentRulesList.vue
+17
-8
No files found.
src/components/index/JobComponents.vue
View file @
10d2cf81
...
@@ -101,7 +101,10 @@
...
@@ -101,7 +101,10 @@
font-weight
:
400
;
font-weight
:
400
;
letter-spacing
:
1px
;
letter-spacing
:
1px
;
}
}
.homework-score
{
width
:
116
rpx
;
overflow
:
hidden
;
}
.homework-score
:first-child
{
.homework-score
:first-child
{
margin-right
:
16
rpx
;
margin-right
:
16
rpx
;
}
}
...
@@ -114,6 +117,7 @@
...
@@ -114,6 +117,7 @@
justify-content
:
space-between
;
justify-content
:
space-between
;
flex-shrink
:
0
;
flex-shrink
:
0
;
margin-left
:
11
rpx
;
margin-left
:
11
rpx
;
zoom
:
.9
;
}
}
.JobComponents-year
{
.JobComponents-year
{
...
...
src/components/index/examComponents.vue
View file @
10d2cf81
...
@@ -127,7 +127,7 @@
...
@@ -127,7 +127,7 @@
padding
:
22
rpx
26
rpx
15
rpx
26
rpx
;
padding
:
22
rpx
26
rpx
15
rpx
26
rpx
;
border-radius
:
30
rpx
;
border-radius
:
30
rpx
;
justify-content
:
space-between
;
justify-content
:
space-between
;
margin
:
0
18
rpx
;
/* margin: 0 18rpx; */
}
}
.examComponents.activeThree
.operation-name
{
.examComponents.activeThree
.operation-name
{
...
@@ -225,6 +225,18 @@
...
@@ -225,6 +225,18 @@
border
:
3px
solid
#FFFFFF
;
border
:
3px
solid
#FFFFFF
;
box-shadow
:
0px
0px
12px
0px
rgba
(
255
,
255
,
255
,
0.46
);
box-shadow
:
0px
0px
12px
0px
rgba
(
255
,
255
,
255
,
0.46
);
}
}
.examComponents-center-box
::after
{
/* div是你需要添加背景图片的盒子*/
content
:
""
;
background-image
:
url(https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1654062518000_33.png)
;
background-position
:
30
rpx
bottom
;
background-size
:
74
rpx
auto
;
background-repeat
:
no-repeat
;
opacity
:
1
;
position
:
absolute
;
top
:
0
rpx
;
bottom
:
0
;
right
:
0
;
}
.examComponents-line
{
.examComponents-line
{
width
:
4
rpx
;
width
:
4
rpx
;
...
...
src/components/index/scoreDetails/analysisTest.vue
View file @
10d2cf81
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
width=
"200"
>
{{
item
}}
</th>
width=
"200"
>
{{
item
}}
</th>
</tr>
</tr>
<tr
class=
"analysisTest-content-right flex"
>
<tr
class=
"analysisTest-content-right flex"
>
<td
class=
"analysisTest-td"
v-for=
"(item,index) in ScoreList"
:key=
"index"
>
<td
class=
"analysisTest-td"
style=
"min-width: 56rpx;"
:style=
"
{'min-width':(item.KnowledgePoint.length*20+20)+'rpx'}"
v-for="(item,index) in ScoreList" :key="index">
<view
class=
"analysisTest-number"
>
{{
item
.
Sort
}}
</view>
<view
class=
"analysisTest-number"
>
{{
item
.
Sort
}}
</view>
<view
class=
"analysisTest-difficulty"
>
<view
class=
"analysisTest-difficulty"
>
<view
v-if=
"item.Difficulty == '易'"
><van-icon
name=
"star"
v-for=
"(s,i) in 1"
:key=
"i"
/></view>
<view
v-if=
"item.Difficulty == '易'"
><van-icon
name=
"star"
v-for=
"(s,i) in 1"
:key=
"i"
/></view>
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<view
class=
"analysisTest-ScoreOne"
>
{{
item
.
QScore
}}
</view>
<view
class=
"analysisTest-ScoreOne"
>
{{
item
.
QScore
}}
</view>
<view
class=
"analysisTest-ScoreTwo"
>
{{
item
.
Score
}}
</view>
<view
class=
"analysisTest-ScoreTwo"
>
{{
item
.
Score
}}
</view>
<view
class=
"analysisTest-scoringRate"
>
{{
(
item
.
ScoreRate
*
100
).
toFixed
(
0
)
}}
%
</view>
<view
class=
"analysisTest-scoringRate"
>
{{
(
item
.
ScoreRate
*
100
).
toFixed
(
0
)
}}
%
</view>
<view
class=
"analysisTest-TheAverageAcore"
>
{{
item
.
AvgScore
}}
</view>
<view
class=
"analysisTest-TheAverageAcore"
>
{{
item
.
AvgScore
.
toFixed
(
1
)
}}
</view>
<view
class=
"analysisTest-averageScoringRate"
>
{{
(
item
.
AvgScoreRate
*
100
).
toFixed
(
0
)
}}
%
</view>
<view
class=
"analysisTest-averageScoringRate"
>
{{
(
item
.
AvgScoreRate
*
100
).
toFixed
(
0
)
}}
%
</view>
</td>
</td>
</tr>
</tr>
...
...
src/components/index/scoreDetails/examDetailsComponents.vue
View file @
10d2cf81
...
@@ -179,6 +179,7 @@
...
@@ -179,6 +179,7 @@
background
:
rgba
(
200
,
23
,
39
,
0.1
);
background
:
rgba
(
200
,
23
,
39
,
0.1
);
border
:
2px
solid
#FD3869
;
border
:
2px
solid
#FD3869
;
position
:
relative
;
position
:
relative
;
zoom
:
.9
;
}
}
.examDetailsComponents
.examDetailsComponents-center-box
{
.examDetailsComponents
.examDetailsComponents-center-box
{
background
:
#FFFFFF
;
background
:
#FFFFFF
;
...
@@ -242,7 +243,7 @@
...
@@ -242,7 +243,7 @@
padding
:
0
50
rpx
;
padding
:
0
50
rpx
;
}
}
.examDetailsComponents-box
{
.examDetailsComponents-box
{
height
:
800
rpx
;
height
:
100%
;
overflow-y
:
auto
;
overflow-y
:
auto
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
...
...
src/components/index/scoreDetails/jobDetailsComponents.vue
View file @
10d2cf81
...
@@ -206,7 +206,7 @@
...
@@ -206,7 +206,7 @@
padding
:
0
50
rpx
;
padding
:
0
50
rpx
;
}
}
.jobDetailsComponents-box
{
.jobDetailsComponents-box
{
height
:
800
rpx
;
height
:
100%
;
overflow-y
:
auto
;
overflow-y
:
auto
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
...
...
src/components/index/workSituation/courseCard.vue
View file @
10d2cf81
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
</view>
</view>
<view
class=
"courseCard-title"
v-if=
"courses.AllCourseList.length>0 && Keywords==''"
>
<view
class=
"courseCard-title"
v-if=
"courses.AllCourseList.length>0 && Keywords==''"
>
<view
class=
"workSituation-title-box flex"
>
<view
class=
"workSituation-title-box flex"
>
<view
class=
"workSituation-title
flex
"
<view
class=
"workSituation-title"
:class=
"
{'active':currentIndex==index}"
:class=
"
{'active':currentIndex==index}"
v-for="(t,index) in titleList" :key="index"
v-for="(t,index) in titleList" :key="index"
@click="toggleTitle(index)">
@click="toggleTitle(index)">
...
@@ -215,18 +215,22 @@
...
@@ -215,18 +215,22 @@
}
}
.workSituation-title.active
{
.workSituation-title.active
{
position
:
relative
;
position
:
relative
;
font-weight
:
bold
;
color
:
#FFF
;
background-color
:
#282828
;
}
}
.workSituation-title
{
.workSituation-title
{
flex
:
1
;
flex
:
1
;
color
:
#282828
;
color
:
#282828
;
font-size
:
26
rpx
;
font-size
:
26
rpx
;
font-weight
:
bold
;
border-radius
:
30
rpx
;
align-items
:
center
;
text-align
:
center
;
letter-spacing
:
1
px
;
line-height
:
60
r
px
;
}
}
.workSituation-title-box
{
.workSituation-title-box
{
margin
:
0
50
rpx
;
margin
:
0
50
rpx
;
padding
:
17
rpx
0
17
rpx
28
rpx
;
height
:
64
rpx
;
background
:
#F0F0F0
;
background
:
#F0F0F0
;
border-radius
:
30
rpx
;
border-radius
:
30
rpx
;
}
}
...
...
src/components/index/workSituation/examList.vue
View file @
10d2cf81
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<view
class=
"homework-score flex"
>
<view
class=
"homework-score flex"
>
<view
class=
"homework-score-title"
>
平均得分
</view>
<view
class=
"homework-score-title"
>
平均得分
</view>
<view
class=
"homework-score-num flex"
>
<view
class=
"homework-score-num flex"
>
{{
item
.
AvgScore
}}
{{
item
.
AvgScore
.
toFixed
(
1
)
}}
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -58,7 +58,6 @@
...
@@ -58,7 +58,6 @@
<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
accept=
".excel"
accept=
".excel"
preview-size=
"120rpx"
preview-size=
"120rpx"
:before-read=
"beforeRead"
:before-read=
"beforeRead"
...
@@ -180,6 +179,7 @@
...
@@ -180,6 +179,7 @@
})
})
return
return
}
}
if
(
file
.
url
.
indexOf
(
'xls'
)
==-
1
||
file
.
url
.
indexOf
(
'xlsx'
)
==-
1
)
{
if
(
file
.
url
.
indexOf
(
'xls'
)
==-
1
||
file
.
url
.
indexOf
(
'xlsx'
)
==-
1
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'请上传 xls/xlsx 格式图片'
,
title
:
'请上传 xls/xlsx 格式图片'
,
...
@@ -204,27 +204,34 @@
...
@@ -204,27 +204,34 @@
},
},
uploadFileFun
(
file
){
uploadFileFun
(
file
){
console
.
log
(
file
)
uni
.
showLoading
({
title
:
'正在上传'
,
mask
:
true
})
if
(
!
data
.
uploadParm
.
ExamName
){
if
(
!
data
.
uploadParm
.
ExamName
){
uni
.
showToast
({
uni
.
showToast
({
title
:
'请输入考试名称'
,
title
:
'请输入考试名称'
,
icon
:
'none'
,
icon
:
'none'
,
duration
:
500
duration
:
500
})
})
uni
.
hideLoading
()
return
return
}
}
if
(
file
[
0
].
url
.
indexOf
(
'xls'
)
==-
1
||
file
[
0
]
.
url
.
indexOf
(
'xlsx'
)
==-
1
){
if
(
file
.
url
.
indexOf
(
'xls'
)
==-
1
||
file
.
url
.
indexOf
(
'xlsx'
)
==-
1
){
uni
.
showToast
({
uni
.
showToast
({
title
:
'请上传xls、xlsx格式的文件'
,
title
:
'请上传xls、xlsx格式的文件'
,
icon
:
'none'
,
icon
:
'none'
,
duration
:
500
duration
:
500
})
})
uni
.
hideLoading
()
return
return
}
}
let
host
=
''
let
host
=
''
if
(
process
.
env
.
NODE_ENV
===
"development"
)
{
if
(
process
.
env
.
NODE_ENV
===
"development"
)
{
host
=
'http://192.168.10.36:8082/api'
host
=
'http://192.168.10.36:8082/api'
}
else
{
}
else
{
host
=
'https://
edu
api.oytour.com/api'
host
=
'https://
jjsw
api.oytour.com/api'
}
}
data
.
userData
=
uni
.
getStorageSync
(
'userInfo'
)
data
.
userData
=
uni
.
getStorageSync
(
'userInfo'
)
data
.
uploadParm
=
{
data
.
uploadParm
=
{
...
@@ -236,40 +243,37 @@
...
@@ -236,40 +243,37 @@
uni
.
uploadFile
({
uni
.
uploadFile
({
url
:
host
+
'/Upload/UploadStuExamScore'
,
url
:
host
+
'/Upload/UploadStuExamScore'
,
filePath
:
file
[
0
]
.
url
,
filePath
:
file
.
url
,
name
:
'file'
,
name
:
'file'
,
formData
:
{
formData
:
{
myfile
:
file
[
0
]
,
myfile
:
file
,
params
:
JSON
.
stringify
(
data
.
uploadParm
)
params
:
JSON
.
stringify
(
data
.
uploadParm
)
},
},
success
(
res
)
{
success
(
res
)
{
if
(
res
.
Code
==
1
){
uni
.
hideLoading
()
var
result
=
JSON
.
parse
(
res
.
data
)
if
(
result
.
Code
==
1
){
uni
.
showToast
({
uni
.
showToast
({
title
:
'导入成功'
,
title
:
'导入成功'
,
icon
:
'none'
,
icon
:
'none'
,
duration
:
500
duration
:
500
})
})
uni
.
hideLoading
();
methods
.
closepopup
()
data
.
uploadParm
=
{
//data.loading = false
Uid
:
''
,
CourseId
:
''
,
ExamName
:
''
}
data
.
loading
=
false
//
ctx.emit('change')
ctx
.
emit
(
'change'
)
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'导入失败'
,
title
:
'导入失败'
,
icon
:
'none'
,
icon
:
'none'
,
duration
:
500
duration
:
500
})
})
uni
.
hideLoading
();
data
.
loading
=
false
data
.
loading
=
false
}
}
},
},
fail
(
err
)
{
fail
(
err
)
{
console
.
log
(
"uploadErr"
,
err
)
console
.
log
(
"uploadErr"
,
err
)
uni
.
hideLoading
()
}
}
});
});
proxy
.
$parent
.
getExamPageList
();
proxy
.
$parent
.
getExamPageList
();
...
@@ -428,6 +432,9 @@
...
@@ -428,6 +432,9 @@
flex-shrink
:
0
;
flex-shrink
:
0
;
margin-left
:
11
rpx
;
margin-left
:
11
rpx
;
color
:
#CE8086
;
color
:
#CE8086
;
zoom
:
.9
;
flex
:
1
;
margin-left
:
62
rpx
;
}
}
.examList.activeOne
.examList-state-text
{
.examList.activeOne
.examList-state-text
{
color
:
#BEBEBE
;
color
:
#BEBEBE
;
...
@@ -462,7 +469,7 @@
...
@@ -462,7 +469,7 @@
font-weight
:
bold
;
font-weight
:
bold
;
}
}
.examList-left
{
.examList-left
{
flex-grow
:
1
;
/* flex-grow: 1; */
}
}
.examList-center
{
.examList-center
{
justify-content
:
space-between
;
justify-content
:
space-between
;
...
...
src/components/index/workSituation/operation.vue
View file @
10d2cf81
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<block
v-if=
"dataList && dataList.length>0"
>
<block
v-if=
"dataList && dataList.length>0"
>
<view
class=
"operation activeOne"
<view
class=
"operation activeOne"
v-for=
"(item,index) in dataList"
:key=
"index"
>
v-for=
"(item,index) in dataList"
:key=
"index"
>
<view
class=
"operation-center-box"
@
click=
"JobDetails(i
tem
)"
>
<view
class=
"operation-center-box"
@
click=
"JobDetails(i
ndex
)"
>
<view
class=
"operation-center-line"
></view>
<view
class=
"operation-center-line"
></view>
<view
class=
"operation-center flex"
>
<view
class=
"operation-center flex"
>
<view
class=
"operation-left"
>
<view
class=
"operation-left"
>
...
@@ -69,7 +69,8 @@
...
@@ -69,7 +69,8 @@
dataList
:
props
.
dataList
dataList
:
props
.
dataList
});
});
let
methods
=
{
let
methods
=
{
JobDetails
(
item
){
JobDetails
(
i
){
let
item
=
props
.
dataList
[
i
]
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/index/jobDetails?HomeWorkId='
+
item
.
HomeWorkId
+
'&obj='
+
JSON
.
stringify
(
item
)
url
:
'/pages/index/jobDetails?HomeWorkId='
+
item
.
HomeWorkId
+
'&obj='
+
JSON
.
stringify
(
item
)
});
});
...
...
src/components/setComments/commentDetails.vue
View file @
10d2cf81
This diff is collapsed.
Click to expand it.
src/components/setComments/commentDetailsPopu.vue
View file @
10d2cf81
...
@@ -105,6 +105,10 @@
...
@@ -105,6 +105,10 @@
text-align
:
center
;
text-align
:
center
;
color
:
#FFFFFF
;
color
:
#FFFFFF
;
}
}
.commentPopup-save
{
justify-content
:
center
;
margin-top
:
60
rpx
;
}
.commentPopup-title
{
.commentPopup-title
{
width
:
100%
;
width
:
100%
;
text-align
:
center
;
text-align
:
center
;
...
...
src/components/setComments/setComments.vue
View file @
10d2cf81
<
template
>
<
template
>
<view
class=
"setComments-box"
>
<view
class=
"setComments-box"
>
<view
class=
"setComments-add"
>
<view
class=
"setComments-add"
@
click=
"addComments"
>
<van-icon
name=
"plus"
/><text>
创建评价
</text>
</view>
<van-icon
name=
"plus"
/><text>
创建评价
</text>
</view>
<view
class=
"index-student-information"
>
<view
class=
"index-student-information"
>
<view
class=
"setComments-content-box"
v-if=
"dataList.length>0"
>
<view
class=
"setComments-content-box"
v-if=
"dataList.length>0"
>
<template
v-for=
"(item,index) in dataList"
>
<template
v-for=
"(item,index) in dataList"
>
...
@@ -11,7 +12,7 @@
...
@@ -11,7 +12,7 @@
<text
class=
"setComments-title-left"
>
第
{{
item
.
Times
}}
次评价
</text>
<text
class=
"setComments-title-left"
>
第
{{
item
.
Times
}}
次评价
</text>
<view
class=
"setComments-title-right"
>
<view
class=
"setComments-title-right"
>
<view
class=
"setComments-options flex"
>
<view
class=
"setComments-options flex"
>
<view
class=
"setComments-options-title flex"
@
click=
"clickOptionsShow(item)"
>
<view
class=
"setComments-options-title flex"
@
click
.
stop
=
"clickOptionsShow(item)"
>
<view
class=
"point"
></view>
<view
class=
"point"
></view>
<text>
{{
item
.
ShowTypeStr
}}
</text>
<text>
{{
item
.
ShowTypeStr
}}
</text>
<van-icon
:name=
"item.optionsShow?'arrow-down':'arrow'"
/>
<van-icon
:name=
"item.optionsShow?'arrow-down':'arrow'"
/>
...
@@ -80,6 +81,11 @@
...
@@ -80,6 +81,11 @@
delta
:
1
delta
:
1
})
})
},
},
addComments
(){
uni
.
navigateTo
({
url
:
'/pages/setComments/commentRulesList'
})
},
goComment
(
item
){
goComment
(
item
){
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/setComments/commentDetails?comment='
+
encodeURIComponent
(
JSON
.
stringify
(
item
))
url
:
'/pages/setComments/commentDetails?comment='
+
encodeURIComponent
(
JSON
.
stringify
(
item
))
...
@@ -195,6 +201,7 @@
...
@@ -195,6 +201,7 @@
left
:
0
;
left
:
0
;
right
:
0
;
right
:
0
;
top
:
35
rpx
;
top
:
35
rpx
;
z-index
:
2
;
background
:
#FCEEEF
;
background
:
#FCEEEF
;
padding
:
20
rpx
0
20
rpx
0
;
padding
:
20
rpx
0
20
rpx
0
;
border-radius
:
0
0
25
rpx
25
rpx
;
border-radius
:
0
0
25
rpx
25
rpx
;
...
...
src/pages/index/examDetails.vue
View file @
10d2cf81
<
template
>
<
template
>
<view
class=
"jobDetails-box"
>
<view
class=
"jobDetails-box
flex"
style=
"flex-direction: column;
"
>
<view
class=
"jobDetails-box-bj"
></view>
<view
class=
"jobDetails-box-bj"
></view>
<navbar
class=
"navbarSticky"
bg=
"#FCEEEF"
>
<navbar
class=
"navbarSticky"
bg=
"#FCEEEF"
>
<view
class=
"jobDetails-header-box"
>
<view
class=
"jobDetails-header-box"
>
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<text
class=
"jobDetails-header-title"
>
考试详情
</text>
<text
class=
"jobDetails-header-title"
>
考试详情
</text>
</view>
</view>
</navbar>
</navbar>
<view
class=
"jobDetails-content"
>
<view
class=
"jobDetails-content
flex"
style=
"flex-direction: column;flex:1;height:1px
"
>
<view
class=
"jobDetails-content-header"
>
<view
class=
"jobDetails-content-header"
>
<view
class=
"jobDetails-conten-title flex"
>
<view
class=
"jobDetails-conten-title flex"
>
<text>
{{
CreateTime
}}
</text>
<text>
{{
CreateTime
}}
</text>
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"index-student-information"
>
<view
class=
"index-student-information"
style=
"flex:1;height:1px"
>
<examDetailsComponents
:ExamStu=
"ExamStu"
></examDetailsComponents>
<examDetailsComponents
:ExamStu=
"ExamStu"
></examDetailsComponents>
</view>
</view>
</view>
</view>
...
...
src/pages/index/index.vue
View file @
10d2cf81
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
let
tempArray
=
res
.
Data
;
let
tempArray
=
res
.
Data
;
data
.
stuCourseList
=
tempArray
;
data
.
stuCourseList
=
tempArray
;
if
(
tempArray
&&
tempArray
.
length
>
0
)
{
if
(
tempArray
&&
tempArray
.
length
>
0
)
{
thi
s
.
getStuHomeWorkAndExam
(
tempArray
[
0
].
courseId
)
method
s
.
getStuHomeWorkAndExam
(
tempArray
[
0
].
courseId
)
}
}
})
})
},
},
...
@@ -122,34 +122,31 @@
...
@@ -122,34 +122,31 @@
})
})
},
},
};
};
methods
.
getStuCourse
();
data
.
userData
=
uni
.
getStorageSync
(
'userInfo'
);
if
(
data
.
userData
&&
data
.
userData
.
AccountType
==
1
){
uni
.
redirectTo
({
url
:
'/pages/index/workSituation'
})
}
// onMounted(() => {
onMounted
(()
=>
{
// });
});
return
{
return
{
...
toRefs
(
data
),
...
toRefs
(
data
),
...
methods
,
...
methods
,
};
};
},
},
onShow
()
{
this
.
getStuCourse
();
this
.
userData
=
uni
.
getStorageSync
(
'userInfo'
);
if
(
this
.
userData
&&
this
.
userData
.
AccountType
==
1
){
uni
.
redirectTo
({
url
:
'/pages/index/workSituation'
})
}
},
onShareAppMessage
()
{
onShareAppMessage
()
{
return
{
return
{
title
:
"
甲小鹤
"
,
title
:
"
学情反馈信息
"
,
query
:
"/pages/index/index"
,
query
:
"/pages/index/index"
,
imageUrl
:
""
,
imageUrl
:
""
,
};
};
},
},
onShareTimeline
()
{
onShareTimeline
()
{
return
{
return
{
title
:
"
甲小鹤
"
,
title
:
"
学情反馈信息
"
,
query
:
"/pages/index/index"
,
query
:
"/pages/index/index"
,
imageUrl
:
""
,
imageUrl
:
""
,
};
};
...
...
src/pages/index/jobDetails.vue
View file @
10d2cf81
<
template
>
<
template
>
<view
class=
"jobDetails-box"
>
<view
class=
"jobDetails-box
flex"
style=
"flex-direction: column;
"
>
<navbar
class=
"navbarSticky"
bg=
"#FCEEEF"
>
<navbar
class=
"navbarSticky"
bg=
"#FCEEEF"
>
<view
class=
"jobDetails-header-box flex"
>
<view
class=
"jobDetails-header-box flex"
>
<van-icon
class=
"jobDetails-header-left"
name=
"arrow-left"
@
click=
"back"
/>
<van-icon
class=
"jobDetails-header-left"
name=
"arrow-left"
@
click=
"back"
/>
<text
class=
"jobDetails-header-title"
>
作业情况
</text>
<text
class=
"jobDetails-header-title"
>
作业情况
</text>
</view>
</view>
</navbar>
</navbar>
<view
class=
"jobDetails-content"
>
<view
class=
"jobDetails-content
flex"
style=
"flex:1;height: 1px;flex-direction: column;
"
>
<view
class=
"jobDetails-content-header"
>
<view
class=
"jobDetails-content-header"
>
<view
class=
"jobDetails-conten-title flex"
>
<view
class=
"jobDetails-conten-title flex"
>
<text>
{{
jobDetails
.
CourseName
}}
</text>
<text>
{{
jobDetails
.
CourseName
}}
</text>
...
@@ -31,11 +31,11 @@
...
@@ -31,11 +31,11 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"index-student-information"
>
<view
class=
"index-student-information"
style=
"flex:1;"
>
<van-empty
description=
"暂无数据"
v-if=
"dataList.length === 0"
/>
<van-empty
description=
"暂无数据"
v-if=
"dataList.length === 0"
/>
<jobDetailsComponents
v-if=
"dataList.length>0"
:dataList=
"dataList"
></jobDetailsComponents>
<jobDetailsComponents
v-if=
"dataList.length>0"
:dataList=
"dataList"
></jobDetailsComponents>
</view>
</view>
<
Loadmore
:state=
"pageState"
/
>
<
!--
<Loadmore
:state=
"pageState"
/>
--
>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
...
src/pages/index/scoreDetails.vue
View file @
10d2cf81
<
template
>
<
template
>
<view
class=
"scoreDetailspage"
v-if=
"!Loading"
>
<view
class=
"scoreDetailspage"
v-if=
"!Loading"
>
<navbar
class=
"navbarSticky"
bg=
"#F6F6F6"
>
<navbar
class=
"navbarSticky"
bg=
"#F6F6F6"
>
<view
class=
"scoreDetails-header-box"
>
<view
class=
"scoreDetails-header-box
flex
"
>
<van-icon
class=
"scoreDetails-header-left"
name=
"arrow-left"
@
click=
"back"
/>
<van-icon
class=
"scoreDetails-header-left"
name=
"arrow-left"
@
click=
"back"
/>
<view
style=
"padding-right: 46rpx;flex: 1;text-align:center;font-size: 32rpx;color:#282828;"
>
分数详情
</view>
</view>
</view>
</navbar>
</navbar>
<view
class=
"scoreDetails-header flex"
>
<view
class=
"scoreDetails-header flex"
>
...
@@ -276,6 +279,11 @@
...
@@ -276,6 +279,11 @@
font-size
:
50
rpx
;
font-size
:
50
rpx
;
font-weight
:
800
;
font-weight
:
800
;
color
:
#282828
;
color
:
#282828
;
width
:
100%
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
align-content
:
normal
;
}
}
.scoreDetails-header-name
{
.scoreDetails-header-name
{
font-size
:
30
rpx
;
font-size
:
30
rpx
;
...
@@ -286,6 +294,8 @@
...
@@ -286,6 +294,8 @@
}
}
.scoreDetails-header-tetx
{
.scoreDetails-header-tetx
{
flex-grow
:
1
;
flex-grow
:
1
;
flex
:
1
;
width
:
1px
;
}
}
.scoreDetails-header-img
.img
{
.scoreDetails-header-img
.img
{
display
:
block
;
display
:
block
;
...
@@ -313,7 +323,7 @@
...
@@ -313,7 +323,7 @@
font-size
:
40
rpx
;
font-size
:
40
rpx
;
}
}
.scoreDetails-header-box
{
.scoreDetails-header-box
{
padding
:
37
rpx
31
rpx
;
padding
:
23
rpx
31
rpx
;
}
}
.scoreDetailspage
{
.scoreDetailspage
{
min-height
:
100vh
;
min-height
:
100vh
;
...
...
src/pages/index/workSituation.vue
View file @
10d2cf81
...
@@ -14,13 +14,18 @@
...
@@ -14,13 +14,18 @@
</view>
</view>
</view>
</view>
</navbar>
</navbar>
<view
style=
"margin: 40rpx 0 10rpx 0;"
>
<view
style=
"margin: 40rpx 0 10rpx 0;"
class=
"workSituationAccountName flex"
>
<view
style=
"padding:0 50rpx;font-weight: 800;color: #282828;"
>
<view
style=
"padding:0 50rpx;font-weight: 800;color: #282828;"
>
<view
style=
"font-size: 36rpx;"
>
Hi,
</view>
<view
style=
"font-size: 36rpx;"
>
Hi,
</view>
<view
style=
"font-size: 50rpx;"
>
{{
userData
.
AccountName
}}
老师
</view>
<view
style=
"font-size: 50rpx;"
>
{{
userData
.
AccountName
}}
老师
</view>
</view>
</view>
<view
@
click=
"goSet"
>
设置评语
</view>
<view
class=
"set-text"
>
<view
class=
"flex"
@
click=
"goSet"
>
<text>
设置评语
</text>
<van-image
class=
"img"
width=
"14rpx"
height=
"13rpx"
fit=
"cover"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653977684000_601.png"
/>
</view>
</view>
</view>
</view>
<courseCard
@
change=
"changeCourseHandler"
></courseCard>
<courseCard
@
change=
"changeCourseHandler"
></courseCard>
<view
class=
"index-student-information"
>
<view
class=
"index-student-information"
>
...
@@ -43,9 +48,9 @@
...
@@ -43,9 +48,9 @@
>
>
<operation
v-if=
"tabNme=='作业情况'"
:dataList=
"homeWorks"
></operation>
<operation
v-if=
"tabNme=='作业情况'"
:dataList=
"homeWorks"
></operation>
<studentList
@
selected=
"selectStuHandler"
v-if=
"tabNme=='学生列表'"
:dataList=
"students"
></studentList>
<studentList
@
selected=
"selectStuHandler"
v-if=
"tabNme=='学生列表'"
:dataList=
"students"
></studentList>
<examList
v-if=
"tabNme=='考试信息'"
:dataList=
"exams"
:CourseId=
"currentCourseId"
></examList>
<examList
@
change=
"changeExamHandler"
v-if=
"tabNme=='考试信息'"
:dataList=
"exams"
:CourseId=
"currentCourseId"
></examList>
</scroll-view>
</scroll-view>
<
Loadmore
:state=
"pageState"
/
>
<
!--
<Loadmore
:state=
"pageState"
/>
--
>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -100,7 +105,7 @@
...
@@ -100,7 +105,7 @@
tabNme
:
'作业情况'
,
tabNme
:
'作业情况'
,
Msg
:{
Msg
:{
PageIndex
:
1
,
PageIndex
:
1
,
PageSize
:
1
0
,
PageSize
:
2
0
,
ExamName
:
''
,
ExamName
:
''
,
CourseId
:
''
CourseId
:
''
},
},
...
@@ -137,7 +142,6 @@
...
@@ -137,7 +142,6 @@
})
})
},
},
changeCourseHandler
(
id
){
changeCourseHandler
(
id
){
console
.
log
(
id
,
'........................'
)
data
.
Msg
.
courseId
=
45329247
data
.
Msg
.
courseId
=
45329247
data
.
OperationMsg
.
courseId
=
45329247
data
.
OperationMsg
.
courseId
=
45329247
data
.
currentCourseId
=
45329247
data
.
currentCourseId
=
45329247
...
@@ -145,16 +149,11 @@
...
@@ -145,16 +149,11 @@
methods
.
getExamPageList
()
methods
.
getExamPageList
()
methods
.
getCourseHomeWorkList
()
methods
.
getCourseHomeWorkList
()
},
},
changeExamHandler
(){
methods
.
getExamPageList
()
},
toggleTitle
(
t
)
{
toggleTitle
(
t
)
{
data
.
tabNme
=
t
data
.
tabNme
=
t
// if(t=='学生列表'){
// this.getCourseStuList()
// }else if(data.tabNme=='作业情况'){
// this.getCourseHomeWorkList()
// }else{
// this.getExamPageList()
// }
},
},
//获取学生列表
//获取学生列表
getCourseStuList
(){
getCourseStuList
(){
...
@@ -241,31 +240,13 @@
...
@@ -241,31 +240,13 @@
};
};
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
// this.tabNme = option.tabNme
// this.OperationMsg.courseId = option.courseId
// this.Msg.courseId = option.courseId
},
},
onShow
()
{
onShow
()
{
// if(this.tabNme=='学生列表'){
// this.getCourseStuList()
// }else if(this.tabNme=='作业情况'){
// this.getGetCourseHomeWorkList()
// }else{
// this.getExamPageList()
// }
// this.tabNme = option.tabNme?option.tabNme:'作业情况'
// this.OperationMsg.courseId = option.courseId
// this.Msg.CourseId = option.courseId
},
},
onShow
()
{
onShow
()
{
// this.dataList = []
// if(this.tabNme=='学生列表'){
// this.getCourseStuList()
// }else if(this.tabNme=='作业情况'){
// this.getCourseHomeWorkList()
// }else{
// this.getExamPageList()
// }
},
},
...
@@ -287,6 +268,29 @@
...
@@ -287,6 +268,29 @@
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.set-text
view
.img
{
margin-left
:
10
rpx
;
}
.set-text
view
{
width
:
160
rpx
;
line-height
:
50
rpx
;
background
:
#FFFFFF
;
border
:
1
rpx
solid
#E6A9AE
;
border-radius
:
25
rpx
;
justify-content
:
center
;
font-size
:
24
rpx
;
font-weight
:
bold
;
color
:
#C91727
;
letter-spacing
:
1
rpx
;
}
.set-text
{
width
:
160
rpx
;
flex-shrink
:
0
;
margin-right
:
50
rpx
;
}
.workSituationAccountName
{
justify-content
:
space-between
;
}
.num
{
.num
{
font-size
:
20
rpx
;
font-size
:
20
rpx
;
display
:
inline-block
;
display
:
inline-block
;
...
...
src/pages/setComments/commentRulesList.vue
View file @
10d2cf81
...
@@ -504,14 +504,23 @@
...
@@ -504,14 +504,23 @@
.commentRulesList-box
{
.commentRulesList-box
{
background
:
#FFFFFF
;
background
:
#FFFFFF
;
}
}
.commentRulesList-header-box
{
.commentRulesList-header-title
{
padding
:
20
rpx
42
rpx
;
font-size
:
32
rpx
;
flex-direction
:
row
;
font-weight
:
500
;
align-items
:
center
;
color
:
#282828
;
}
flex
:
1
;
.commentRulesList-header-title
{
text-align
:
center
;
font-size
:
32
rpx
;
padding-right
:
40
rpx
;
font-weight
:
500
;
color
:
#282828
;
flex
:
1
;
text-align
:
center
;
padding-right
:
40
rpx
;
}
.commentRulesList-header-left
{
font-size
:
40
rpx
;
position
:
relative
;
z-index
:
3
;
}
}
.navbarSticky
{
.navbarSticky
{
...
...
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