Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Q
qualityTesting_studentHome
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
tobacco
qualityTesting_studentHome
Commits
d20e86a8
提交
d20e86a8
authored
7月 15, 2023
作者:
zfl
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
提交学员考试笔记
上级
41065bb6
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
77 行增加
和
17 行删除
+77
-17
user.js
src/api/user.js
+9
-0
student_comments_view.vue
src/views/analysis/components/student_comments_view.vue
+12
-4
index.vue
src/views/analysis/index.vue
+56
-13
没有找到文件。
src/api/user.js
浏览文件 @
d20e86a8
...
@@ -136,6 +136,15 @@ export function getTakeDown(id, data) {
...
@@ -136,6 +136,15 @@ export function getTakeDown(id, data) {
})
})
}
}
//学员笔记
export
function
takeDownNew
(
id
,
data
)
{
return
request
({
url
:
`/student/test_results/takeDownNew/
${
id
}
`
,
method
:
'post'
,
data
})
}
export
function
logout
()
{
export
function
logout
()
{
return
request
({
return
request
({
url
:
'/vue-element-admin/user/logout'
,
url
:
'/vue-element-admin/user/logout'
,
...
...
src/views/analysis/components/student_comments_view.vue
浏览文件 @
d20e86a8
...
@@ -103,7 +103,7 @@
...
@@ -103,7 +103,7 @@
</div>
</div>
</div>
</div>
<div>
<div>
<el-popover
<
!--
<
el-popover
width=
"600"
width=
"600"
placement=
"bottom"
placement=
"bottom"
title=
"学生笔记:"
title=
"学生笔记:"
...
@@ -136,9 +136,9 @@
...
@@ -136,9 +136,9 @@
icon=
"el-icon-edit"
icon=
"el-icon-edit"
circle
circle
></el-button>
></el-button>
</el-popover>
</el-popover>
-->
<el-popover
<
!--
<
el-popover
width=
"300"
width=
"300"
placement=
"bottom-start"
placement=
"bottom-start"
title=
"学生笔记:"
title=
"学生笔记:"
...
@@ -170,7 +170,7 @@
...
@@ -170,7 +170,7 @@
icon=
"el-icon-edit"
icon=
"el-icon-edit"
circle
circle
></el-button>
></el-button>
</el-popover>
</el-popover>
-->
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -213,6 +213,14 @@ export default {
...
@@ -213,6 +213,14 @@ export default {
// console.log(this.statistical_results);
// console.log(this.statistical_results);
this
.
task_id
=
this
.
$route
.
query
.
id
;
this
.
task_id
=
this
.
$route
.
query
.
id
;
},
},
watch
:
{
"summary_data.remark"
:
{
handler
(){
this
.
statistical_results
=
{
...
this
.
summary_data
};
this
.
init
();
}
}
},
mounted
()
{
mounted
()
{
this
.
init
();
this
.
init
();
},
},
...
...
src/views/analysis/index.vue
浏览文件 @
d20e86a8
...
@@ -37,6 +37,10 @@
...
@@ -37,6 +37,10 @@
>
>
<el-popover
placement=
"right"
trigger=
"click"
>
<el-popover
placement=
"right"
trigger=
"click"
>
<div
class=
"table_box"
>
<div
class=
"table_box"
>
<el-row
style=
"padding-bottom:20px"
>
<el-col
:span=
"24"
><el-input
v-model=
"detailed_information.note[e.id]"
placeholder=
"请填写要记录的内容"
@
blur=
"saveNote(e.id)"
></el-input></el-col>
<!--
<el-col
:span=
"6"
><el-button
@
click=
"saveNote(e.id)"
size=
"mini"
class=
"note_mobile_box"
type=
"primary"
>
保存
</el-button></el-col>
-->
</el-row>
<!--
<div><h3>
错误点分析
</h3></div>
-->
<!--
<div><h3>
错误点分析
</h3></div>
-->
<table
border=
"1"
cellspacing=
"0"
>
<table
border=
"1"
cellspacing=
"0"
>
<tr>
<tr>
...
@@ -128,12 +132,10 @@
...
@@ -128,12 +132,10 @@
</tr>
</tr>
</table>
</table>
</div>
</div>
<!--
<span
slot=
"reference"
>
{{
e
.
grades_code
||
'暂无'
}}
</span>
-->
<span
slot=
"reference"
>
<span
slot=
"reference"
>
{{
detailed_information
.
test_results
[
e
.
id
]
||
'暂无'
}}
{{
<i
v-if=
"detailed_information.note && detailed_information.note[e.id]"
class=
"el-icon-edit-outline p_color"
></i>
detailed_information
.
test_results
[
e
.
id
]
||
'暂无'
</span>
}}
</span
>
</el-popover>
</el-popover>
</div>
</div>
</div>
</div>
...
@@ -168,18 +170,18 @@
...
@@ -168,18 +170,18 @@
:summary_data=
"statistical_results"
:summary_data=
"statistical_results"
></StudentComments>
></StudentComments>
</div>
</div>
<div
v-show=
"radio1 == 'summary'"
>
<div
v-if=
"radio1 == 'summary'"
>
<!-- :key="new Date().getTime()" -->
<Summary
<Summary
v-if=
"summary_data"
v-if=
"summary_data"
:summary_data=
"summary_data"
:summary_data=
"summary_data"
:key=
"new Date().getTime()"
></Summary>
></Summary>
</div>
</div>
<div
v-show=
"radio1 == 'general_comment'"
>
<!-- :key="new Date().getTime()" -->
<div
v-if=
"radio1 == 'general_comment'"
>
<OverallAppraisal
<OverallAppraisal
v-if=
"appraisal_data"
v-if=
"appraisal_data"
:appraisal_data=
"appraisal_data"
:appraisal_data=
"appraisal_data"
:key=
"new Date().getTime()"
></OverallAppraisal>
></OverallAppraisal>
</div>
</div>
</el-card>
</el-card>
...
@@ -197,7 +199,7 @@
...
@@ -197,7 +199,7 @@
<
script
>
<
script
>
import
TestInfo
from
'@/components/TestInfo/index.vue'
;
import
TestInfo
from
'@/components/TestInfo/index.vue'
;
import
ImageZoom
from
'@/components/Image/ImageZoom.vue'
;
import
ImageZoom
from
'@/components/Image/ImageZoom.vue'
;
import
{
viewExamResults
}
from
'@/api/user'
;
import
{
viewExamResults
,
takeDownNew
}
from
'@/api/user'
;
import
{
array_conversion
}
from
'@/utils/tool'
;
import
{
array_conversion
}
from
'@/utils/tool'
;
import
Summary
from
'./components/summary-view'
;
import
Summary
from
'./components/summary-view'
;
import
StudentComments
from
'./components/student_comments_view.vue'
;
import
StudentComments
from
'./components/student_comments_view.vue'
;
...
@@ -264,11 +266,49 @@ export default {
...
@@ -264,11 +266,49 @@ export default {
init
()
{
init
()
{
this
.
getTestResultsDetail
();
this
.
getTestResultsDetail
();
},
},
saveNote
(
id
){
let
data
=
{
note
:
this
.
detailed_information
.
note
[
id
],
test_result_id
:
id
,
};
takeDownNew
(
this
.
test_results_id
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
this
.
$message
.
success
(
res
.
message
);
let
remark_ha
=
this
.
remark_ha
(
this
.
detailed_information
.
test_results
,
this
.
detailed_information
.
note
)
this
.
statistical_results
=
null
this
.
statistical_results
=
{
...
this
.
detailed_information
.
statistical_results
};
this
.
statistical_results
[
'remark'
]
=
remark_ha
.
summary_data_remark
}
else
{
this
.
$message
.
error
(
'记录失败,请刷新页面重新尝试'
);
}
})
},
remark_ha
(
test_results
,
note
){
let
summary_data_remark
=
''
let
num
=
0
;
for
(
let
i
in
test_results
){
num
++
if
(
!
note
[
i
]){
note
[
i
]
=
null
}
else
{
summary_data_remark
+=
'第'
+
num
+
'题:'
+
note
[
i
]
+
"
\
n"
;
}
}
return
{
note
:
note
,
summary_data_remark
:
summary_data_remark
,
}
},
//考试结果详情
//考试结果详情
getTestResultsDetail
()
{
getTestResultsDetail
()
{
viewExamResults
(
this
.
test_results_id
).
then
((
res
)
=>
{
viewExamResults
(
this
.
test_results_id
).
then
((
res
)
=>
{
console
.
log
(
'考试结果详情'
);
console
.
log
(
'考试结果详情'
);
console
.
log
(
res
);
console
.
log
(
res
);
let
remark_ha
=
this
.
remark_ha
(
res
.
test_results
,
res
.
note
)
res
.
remark
=
remark_ha
.
summary_data_remark
res
.
note
=
remark_ha
.
note
//学员评估
//学员评估
if
(
res
.
statistical_results
)
{
if
(
res
.
statistical_results
)
{
this
.
statistical_results
=
{
...
res
.
statistical_results
};
this
.
statistical_results
=
{
...
res
.
statistical_results
};
...
@@ -325,8 +365,9 @@ export default {
...
@@ -325,8 +365,9 @@ export default {
}
}
// console.log('二维数据@@@');
// console.log('二维数据@@@');
// console.log(new_arr);
// console.log(new_arr);
// console.log(
JSON.stringify(new_arr)
);
// console.log(
new_arr
);
this
.
questions_list
=
new_arr
;
this
.
questions_list
=
new_arr
;
this
.
detailed_information
=
res
;
this
.
detailed_information
=
res
;
});
});
},
},
...
@@ -339,7 +380,9 @@ export default {
...
@@ -339,7 +380,9 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
@import
'@/styles/element-variables'
;
@import
'@/styles/element-variables'
;
.p_color
{
color
:
$--color-primary
}
.table_container
{
.table_container
{
width
:
80%
;
width
:
80%
;
margin
:
0
auto
;
margin
:
0
auto
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论