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
8bc49d23
Commit
8bc49d23
authored
May 31, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
1111
parents
d7d016df
70d4d8fc
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
153 additions
and
91 deletions
+153
-91
examList.vue
src/components/index/workSituation/examList.vue
+7
-9
setComments.vue
src/components/setComments/setComments.vue
+20
-2
jobDetails.vue
src/pages/index/jobDetails.vue
+2
-2
workSituation.vue
src/pages/index/workSituation.vue
+2
-2
setComments.vue
src/pages/setComments/setComments.vue
+122
-76
No files found.
src/components/index/workSituation/examList.vue
View file @
8bc49d23
...
@@ -89,6 +89,7 @@
...
@@ -89,6 +89,7 @@
export
default
{
export
default
{
props
:
{
props
:
{
dataList
:[],
dataList
:[],
CourseId
:
0
},
},
emits
:[
'change'
],
emits
:[
'change'
],
components
:
{},
components
:
{},
...
@@ -105,7 +106,7 @@
...
@@ -105,7 +106,7 @@
// Uid:726615,
// Uid:726615,
// CourseId:44977497,
// CourseId:44977497,
Uid
:
0
,
Uid
:
0
,
CourseId
:
44977497
,
CourseId
:
props
.
CourseId
,
ExamName
:
''
ExamName
:
''
},
},
fileList
:[],
fileList
:[],
...
@@ -134,19 +135,15 @@
...
@@ -134,19 +135,15 @@
},
},
// 重新导入
// 重新导入
clickReimport
(
item
){
clickReimport
(
item
){
// data.uploadParm.ExamName = item.ExamName
// data.uploadParm.Uid = data.userData.Id
// data.uploadParm.CourseId = data.Msg.CourseId
// data.uploadParm.ExamName = tem.ExamName
uni
.
showModal
({
uni
.
showModal
({
title
:
'提示'
,
title
:
'提示'
,
content
:
'重新导入将要
删除该
数据,是否继续'
,
content
:
'重新导入将要
清除此考试
数据,是否继续'
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
if
(
res
.
confirm
)
{
that
.
DelExamInfo
(
item
)
that
.
DelExamInfo
(
item
)
}
else
if
(
res
.
cancel
)
{
}
else
if
(
res
.
cancel
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'已取消
删除
'
,
title
:
'已取消'
,
icon
:
'none'
,
icon
:
'none'
,
duration
:
500
duration
:
500
})
})
...
@@ -166,7 +163,8 @@
...
@@ -166,7 +163,8 @@
icon
:
'none'
,
icon
:
'none'
,
duration
:
500
duration
:
500
})
})
data
.
show
=
true
data
.
show
=
true
;
proxy
.
$parent
.
getExamPageList
();
}
}
})
})
},
},
...
@@ -231,7 +229,7 @@
...
@@ -231,7 +229,7 @@
data
.
userData
=
uni
.
getStorageSync
(
'userInfo'
)
data
.
userData
=
uni
.
getStorageSync
(
'userInfo'
)
data
.
uploadParm
=
{
data
.
uploadParm
=
{
Uid
:
data
.
userData
.
Id
,
Uid
:
data
.
userData
.
Id
,
CourseId
:
data
.
Msg
.
CourseId
,
CourseId
:
data
.
uploadParm
.
CourseId
,
ExamName
:
data
.
uploadParm
.
ExamName
ExamName
:
data
.
uploadParm
.
ExamName
}
}
data
.
loading
=
true
data
.
loading
=
true
...
...
src/components/setComments/setComments.vue
View file @
8bc49d23
...
@@ -113,11 +113,28 @@
...
@@ -113,11 +113,28 @@
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.setComments-Evaluation
view
text
:first-child
{
border-right
:
1px
solid
#E5E5E5
;
padding
:
0
16
rpx
0
0
;
}
.setComments-Evaluation
view
text
:last-child
{
margin-left
:
16
rpx
;
}
.setComments-Evaluation
view
text
{
display
:
inline-block
;
letter-spacing
:
1
rpx
;
}
.setComments-Evaluation
view
{
.setComments-Evaluation
view
{
float
:
right
;
float
:
right
;
margin-top
:
25
rpx
;
margin-bottom
:
27
rpx
;
font-size
:
24
rpx
;
font-weight
:
500
;
color
:
#CE8086
;
}
}
.setComments-Evaluation
{
.setComments-Evaluation
{
height
:
85
rpx
;
border-top
:
1
rpx
solid
#E5E5E5
;
}
}
.setComments-source
{
.setComments-source
{
font-size
:
20
rpx
;
font-size
:
20
rpx
;
...
@@ -171,7 +188,7 @@
...
@@ -171,7 +188,7 @@
position
:
relative
;
position
:
relative
;
}
}
.setComments-title-right
{
.setComments-title-right
{
width
:
1
7
0
rpx
;
width
:
1
9
0
rpx
;
flex-shrink
:
0
;
flex-shrink
:
0
;
}
}
.setComments-title-left
{
.setComments-title-left
{
...
@@ -213,6 +230,7 @@
...
@@ -213,6 +230,7 @@
font-size
:
24
rpx
;
font-size
:
24
rpx
;
letter-spacing
:
1
rpx
;
letter-spacing
:
1
rpx
;
padding
:
10
rpx
0
;
padding
:
10
rpx
0
;
margin-bottom
:
47
rpx
;
text-align
:
center
;
text-align
:
center
;
}
}
.index-student-information
{
.index-student-information
{
...
...
src/pages/index/jobDetails.vue
View file @
8bc49d23
...
@@ -174,8 +174,8 @@
...
@@ -174,8 +174,8 @@
font-weight
:
500
;
font-weight
:
500
;
color
:
#282828
;
color
:
#282828
;
flex
:
1
;
flex
:
1
;
text-align
:
center
;
text-align
:
center
;
padding-right
:
40
rpx
;
padding-right
:
40
rpx
;
}
}
.jobDetails-header
{
.jobDetails-header
{
margin
:
50
rpx
50
rpx
0
50
rpx
;
margin
:
50
rpx
50
rpx
0
50
rpx
;
...
...
src/pages/index/workSituation.vue
View file @
8bc49d23
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
>
>
<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"
></examList>
<examList
v-if=
"tabNme=='考试信息'"
:dataList=
"exams"
:CourseId=
"currentCourseId"
></examList>
</scroll-view>
</scroll-view>
<Loadmore
:state=
"pageState"
/>
<Loadmore
:state=
"pageState"
/>
</view>
</view>
...
@@ -138,7 +138,7 @@
...
@@ -138,7 +138,7 @@
},
},
changeCourseHandler
(
id
){
changeCourseHandler
(
id
){
console
.
log
(
id
,
'........................'
)
console
.
log
(
id
,
'........................'
)
data
.
Msg
.
c
ourseId
=
id
data
.
Msg
.
C
ourseId
=
id
data
.
OperationMsg
.
courseId
=
id
data
.
OperationMsg
.
courseId
=
id
data
.
currentCourseId
=
id
data
.
currentCourseId
=
id
methods
.
getCourseStuList
()
methods
.
getCourseStuList
()
...
...
src/pages/setComments/setComments.vue
View file @
8bc49d23
...
@@ -2,31 +2,38 @@
...
@@ -2,31 +2,38 @@
<view
class=
"setComments-index-box"
>
<view
class=
"setComments-index-box"
>
<navbar
class=
"navbarSticky"
bg=
"#F6F6F6"
>
<navbar
class=
"navbarSticky"
bg=
"#F6F6F6"
>
<view
class=
"setComments-index-header-box flex"
>
<view
class=
"setComments-index-header-box flex"
>
<van-icon
class=
"setComments-index-header-left"
name=
"arrow-left"
@
click=
"back"
/>
<van-icon
class=
"setComments-index-header-left"
name=
"arrow-left"
@
click=
"back"
/>
<text
class=
"setComments-index-header-title"
>
设置评语
</text>
<text
class=
"setComments-index-header-title"
>
设置评语
</text>
</view>
</view>
</navbar>
</navbar>
<view
class=
"setComments-index-content"
>
<view
class=
"setComments-index-content"
>
<view>
<view
class=
"setComments-index-setType flex"
>
<view>
<view
class=
"setComments-setType-left flex"
>
</view>
<view>
<view>
<van-image
class=
"img"
width=
"29rpx"
height=
"29rpx"
fit=
"cover"
<view>
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1653977710000_475.png"
/>
<text>
自定义评价
</text>
</view>
<view>
从自动评价规则进入修改
</view>
<view
class=
"setComments-setType-text flex"
>
</view>
<text>
自定义评价
</text>
<view>
<view>
从自动评价规则进入修改
</view>
<text>
自动评价规则
</text>
</view>
</view>
</view>
</view>
<view
class=
"setComments-setType-right flex"
>
</view>
<view>
<setComments
:commentList=
"courseCommentList"
></setComments>
<text>
自动评价规则
</text>
</view>
<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>
<setComments></setComments>
</view>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
import
setComments
from
'@/components/setComments/setComments'
import
setComments
from
'@/components/setComments/setComments'
import
{
import
{
reactive
,
reactive
,
toRefs
,
toRefs
,
...
@@ -36,84 +43,123 @@
...
@@ -36,84 +43,123 @@
}
from
"vue"
;
}
from
"vue"
;
import
navbar
from
'../../components/navbar.vue'
import
navbar
from
'../../components/navbar.vue'
export
default
{
export
default
{
props
:
{},
props
:
{
},
components
:
{
components
:
{
navbar
,
navbar
,
setComments
setComments
},
},
setup
()
{
setup
()
{
let
{
let
{
proxy
proxy
}
=
getCurrentInstance
();
}
=
getCurrentInstance
();
let
data
=
reactive
({
let
data
=
reactive
({
value
:
1
,
value
:
1
,
optionsList
:
[{
optionsList
:[
text
:
'部分可见'
,
{
text
:
'部分可见'
,
value
:
0
},
value
:
0
{
text
:
'可见不可见'
,
value
:
1
},
},
{
text
:
'活动商品'
,
value
:
2
},
{
],
text
:
'可见不可见'
,
radioList
:[
value
:
1
{
name
:
'使用默认配置'
,
id
:
1
,
checked
:
true
},
},
{
name
:
'自定义评价'
,
id
:
2
}
{
],
text
:
'活动商品'
,
checked
:
'1'
,
value
:
2
obj
:{},
},
],
radioList
:
[{
name
:
'使用默认配置'
,
id
:
1
,
checked
:
true
},
{
name
:
'自定义评价'
,
id
:
2
}
],
checked
:
'1'
,
Msg
:
{
Msg
:
{
Course
Id
:
''
,
HomeWork
Id
:
''
,
},
},
//课程评论列表
showPhone
:
false
,
courseCommentList
:
[],
showLogin
:
true
,
//多次点击
HomeWorkId
:
''
,
jobDetails
:
{},
dataList
:[],
pageState
:
'more'
});
});
let
methods
=
{
let
methods
=
{
back
()
{
back
()
{
uni
.
navigateBack
({
uni
.
navigateBack
({
delta
:
1
delta
:
1
})
})
},
},
radioChange
(
e
)
{
radioChange
(
e
){
console
.
log
(
"打印国家名称"
,
e
.
target
.
value
)
console
.
log
(
"打印国家名称"
,
e
.
target
.
value
)
},
}
//获取学生列表
}
getCourseRule
()
{
data
.
Msg
.
CourseId
=
""
;
proxy
.
$request
(
"/Teacher/GetCourseCommentList"
,
data
.
Msg
).
then
(
res
=>
{
if
(
res
&&
res
.
Code
==
1
)
{
data
.
courseCommentList
=
res
.
Data
;
}
})
},
}
return
{
return
{
...
toRefs
(
data
),
...
toRefs
(
data
),
...
methods
...
methods
};
};
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
this
.
Msg
.
CourseId
=
option
.
CourseId
;
this
.
Msg
.
HomeWorkId
=
option
.
HomeWorkId
this
.
getCourseRule
();
},
},
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.setComments-index-box
{
.setComments-setType-right
view
text
{
background
:
#F6F6F6
;
margin-right
:
11
rpx
;
}
}
.setComments-setType-right
view
{
.navbarSticky
{
color
:
#D9868D
;
background
:
#F5DEE0
;
border-radius
:
25
rpx
;
width
:
200
rpx
;
height
:
50
rpx
;
line-height
:
50
rpx
;
text-align
:
center
;
letter-spacing
:
1
rpx
;
}
.setComments-setType-right
{
flex-shrink
:
0
;
font-size
:
24
rpx
;
font-weight
:
500
;
}
.setComments-setType-text
view
{
font-size
:
24
rpx
;
color
:
#AFAFAF
;
font-weight
:
400
;
margin-top
:
15
rpx
;
}
.setComments-setType-text
text
{
font-size
:
30
rpx
;
font-weight
:
bold
;
color
:
#282828
;
}
.setComments-setType-text
{
flex-direction
:
column
;
margin-left
:
26
rpx
;
letter-spacing
:
1
rpx
;
}
.setComments-setType-left
view
:first-child
{
flex-shrink
:
0
;
}
.setComments-setType-left
{
flex-grow
:
1
;
margin-right
:
32
rpx
;
}
.setComments-index-setType
{
background
:
#FCEEEF
;
box-shadow
:
0px
6px
52px
0px
rgba
(
230
,
65
,
80
,
0.19
);
border-radius
:
50px
;
margin
:
55
rpx
50
rpx
50
rpx
50
rpx
;
padding
:
33
rpx
50
rpx
;
}
.setComments-index-box
{
background
:
#F6F6F6
;
}
.setComments-index-header-title
{
font-size
:
32
rpx
;
font-weight
:
500
;
color
:
#282828
;
flex
:
1
;
text-align
:
center
;
padding-right
:
40
rpx
;
}
.navbarSticky
{
display
:
sticky
;
display
:
sticky
;
top
:
0
;
top
:
0
;
z-index
:
9
;
z-index
:
9
;
...
...
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