Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Q
qualityTesting_adminHome
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
tobacco
qualityTesting_adminHome
Commits
b6141c0e
提交
b6141c0e
authored
7月 25, 2023
作者:
Yroc
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
排序表格合并
上级
e20e3820
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
35 行增加
和
13 行删除
+35
-13
table.vue
src/components/AnalyseModule/components/table.vue
+28
-6
index.vue
src/views/student/examination_questions/comment/index.vue
+7
-7
没有找到文件。
src/components/AnalyseModule/components/table.vue
浏览文件 @
b6141c0e
...
...
@@ -11,7 +11,7 @@
<tr>
<th
v-for=
"(e, i) in labers"
:key=
"i"
style=
"padding: 15px 10px"
>
{{
e
.
label
}}
<span
v-if=
"!merge_fields"
}}
<span
><i
class=
"el-icon-caret-bottom"
:style=
"
...
...
@@ -164,9 +164,7 @@ export default {
components
:
{},
computed
:
{},
created
()
{
},
created
()
{},
mounted
()
{
this
.
data_f
();
// console.log(this.table_data);
...
...
@@ -175,21 +173,38 @@ export default {
methods
:
{
data_f
()
{
this
.
row_data_name
=
{};
this
.
show_row_key
=
{};
this
.
is_show_table
=
false
;
let
index_list
=
[];
for
(
let
d
in
this
.
merge_fields
)
{
for
(
let
i
in
this
.
table_data
)
{
let
s
=
0
;
if
(
this
.
show_row_key
[
this
.
merge_fields
[
d
]])
{
s
=
this
.
merge_fields_fun
(
i
,
this
.
merge_fields
[
d
]);
this
.
show_row_key
[
this
.
merge_fields
[
d
]][
i
]
=
s
?
true
:
false
;
if
(
!
index_list
[
i
]
&&
s
)
{
index_list
[
i
]
=
true
;
}
}
else
{
let
a
=
{};
let
s
=
this
.
merge_fields_fun
(
i
,
this
.
merge_fields
[
d
]);
a
[
i
]
=
s
?
true
:
false
;
this
.
show_row_key
[
this
.
merge_fields
[
d
]]
=
a
;
if
(
!
index_list
[
i
]
&&
s
)
{
index_list
[
i
]
=
true
;
}
}
}
}
for
(
let
i
in
index_list
)
{
for
(
let
d
in
this
.
merge_fields
)
{
if
(
this
.
merge_fields
[
d
]
==
'wrong_position'
)
{
this
.
show_row_key
[
this
.
merge_fields
[
d
]][
i
]
=
true
;
}
}
}
// console.log(this.show_row_key);
this
.
row_data_name
=
{};
this
.
is_show_table
=
true
;
},
...
...
@@ -198,12 +213,19 @@ export default {
if
(
!
this
.
row_data_name
[
key
]
||
(
this
.
row_data_name
[
key
]
&&
this
.
row_data_name
[
key
]
!=
this
.
table_data
[
index
][
key
])
this
.
row_data_name
[
key
]
!=
this
.
table_data
[
index
][
key
])
||
this
.
show_row_key
[
key
][
index
]
)
{
this
.
row_data_name
[
key
]
=
this
.
table_data
[
index
][
key
];
for
(
let
mf_i
in
this
.
table_data
)
{
if
(
parseInt
(
mf_i
)
>=
parseInt
(
index
))
{
if
(
this
.
table_data
[
index
][
key
]
==
this
.
table_data
[
mf_i
][
key
])
{
if
(
a
&&
this
.
show_row_key
[
key
][
parseInt
(
mf_i
)
+
1
])
{
num
+=
1
;
return
num
;
}
else
if
(
this
.
table_data
[
parseInt
(
index
)][
key
]
==
this
.
table_data
[
parseInt
(
mf_i
)][
key
]
)
{
num
+=
1
;
}
else
{
return
num
;
...
...
src/views/student/examination_questions/comment/index.vue
浏览文件 @
b6141c0e
...
...
@@ -506,12 +506,12 @@ export default {
if
(
res
.
top_data
)
this
.
exactness_question_data
=
this
.
changeRight
(
res
.
top_data
.
dataasc
);
//对题分析
this
.
wrong_position_data
=
this
.
changeWrongPosition
(
res
.
WrongPosition
);
//错误部位
this
.
error_level_data
=
this
.
changeErrorLevel
(
res
.
WrongLevel
);
//错误等级
this
.
wrong_color_data
=
this
.
changeWrongColor
(
res
.
WrongColor
);
//错误颜色
this
.
wrongG_group_data
=
this
.
changeWrongGroup
(
res
.
WrongGroup
);
//错误组别
this
.
holdTobacco_data
=
this
.
changeHoldTobacco
(
res
.
holdTobacco
);
//把烟
this
.
flakeTobacco_data
=
this
.
changeFlakeTobacco
(
res
.
flakeTobacco
);
//片烟
this
.
swingHandle_data
=
this
.
changeSwingHandle
(
res
.
swingHandle
);
//甩把
//
this.error_level_data = this.changeErrorLevel(res.WrongLevel); //错误等级
//
this.wrong_color_data = this.changeWrongColor(res.WrongColor); //错误颜色
//
this.wrongG_group_data = this.changeWrongGroup(res.WrongGroup); //错误组别
//
this.holdTobacco_data = this.changeHoldTobacco(res.holdTobacco); //把烟
//
this.flakeTobacco_data = this.changeFlakeTobacco(res.flakeTobacco); //片烟
//
this.swingHandle_data = this.changeSwingHandle(res.swingHandle); //甩把
});
},
//百分比
...
...
@@ -1017,7 +1017,7 @@ export default {
print_id
:
'wrong_position'
,
color
:
'#E6A23C'
,
title
:
'错误部位'
,
merge_fields
:
[
'answer_position'
,
'wrong_position'
],
//, 'wrong_position'
merge_fields
:
[
'answer_position'
,
'wrong_position'
],
//, 'wrong_position'
labers
,
list
,
is_show
:
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论