Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-training-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-training-new
Commits
069a7af4
提交
069a7af4
authored
10月 12, 2021
作者:
lihuihui
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
https://gitlab.ezijing.com/webapp/x-training-new
上级
2ef85500
5a02401a
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
26 行增加
和
7 行删除
+26
-7
Index.vue
src/modules/user-study/views/Index.vue
+5
-4
List.vue
src/modules/works-show/views/List.vue
+21
-3
没有找到文件。
src/modules/user-study/views/Index.vue
浏览文件 @
069a7af4
...
...
@@ -213,12 +213,13 @@ export default {
},
initQuestions
(
questions
,
selection
)
{
questions
.
forEach
((
item
,
index
)
=>
{
let
select
Item
let
select
Arr
if
(
selection
.
length
)
{
select
Item
=
selection
.
find
(
it
=>
it
.
question_id
===
item
.
id
)
select
Arr
=
selection
.
filter
(
it
=>
it
.
question_id
===
item
.
id
)
}
if
(
selectItem
)
{
const
opt
=
item
.
options
.
filter
(
it
=>
it
.
id
===
selectItem
.
id
)
if
(
selectArr
)
{
const
selectIds
=
selectArr
.
map
(
it
=>
it
.
id
)
const
opt
=
item
.
options
.
filter
(
it
=>
selectIds
.
includes
(
it
.
id
))
item
.
selection
=
[...
opt
]
}
else
{
item
.
selection
=
[]
...
...
src/modules/works-show/views/List.vue
浏览文件 @
069a7af4
...
...
@@ -5,7 +5,11 @@
<el-table
:data=
"prod.data"
style=
"width: 100%"
:header-row-style=
"
{background:'#ededed',color:'#4d4d4d'}" :header-cell-style="{background: 'transparent'}">
<el-table-column
type=
"index"
:index=
"prod.tableIndex"
label=
"序号"
width=
"50"
/>
<el-table-column
prop=
"case_info.name"
label=
"案例名称"
min-width=
"160"
/>
<el-table-column
prop=
"score"
label=
"分数"
min-width=
"120"
/>
<el-table-column
prop=
"score"
label=
"分数"
min-width=
"120"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
is_complete
?
scope
.
row
.
score
:
''
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"updated_at"
label=
"保存时间"
min-width=
"160"
/>
<el-table-column
label=
"操作"
width=
"100"
>
<
template
slot-scope=
"scope"
>
...
...
@@ -21,7 +25,11 @@
<el-table
:data=
"user.data"
style=
"width: 100%"
:header-row-style=
"{background:'#ededed',color:'#4d4d4d'}"
:header-cell-style=
"{background: 'transparent'}"
>
<el-table-column
type=
"index"
:index=
"user.tableIndex"
label=
"序号"
width=
"50"
/>
<el-table-column
prop=
"case_info.name"
label=
"案例名称"
min-width=
"160"
/>
<el-table-column
prop=
"score"
label=
"分数"
min-width=
"120"
/>
<el-table-column
prop=
"score"
label=
"分数"
min-width=
"120"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
is_complete
?
scope
.
row
.
score
:
''
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"updated_at"
label=
"保存时间"
min-width=
"160"
/>
<el-table-column
label=
"操作"
width=
"100"
>
<
template
slot-scope=
"scope"
>
...
...
@@ -37,7 +45,11 @@
<el-table
:data=
"tool.data"
style=
"width: 100%"
:header-row-style=
"{background:'#ededed',color:'#4d4d4d'}"
:header-cell-style=
"{background: 'transparent'}"
>
<el-table-column
type=
"index"
:index=
"tool.tableIndex"
label=
"序号"
width=
"50"
/>
<el-table-column
prop=
"case_info.name"
label=
"案例名称"
min-width=
"160"
/>
<el-table-column
prop=
"score"
label=
"分数"
min-width=
"120"
/>
<el-table-column
prop=
"type"
label=
"类型"
min-width=
"120"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
type
|
toolTypeFilter
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"updated_at"
label=
"保存时间"
min-width=
"160"
/>
<el-table-column
label=
"操作"
width=
"100"
>
<
template
slot-scope=
"scope"
>
...
...
@@ -55,6 +67,7 @@
<
script
>
import
{
getProdRecords
,
getUserRecords
,
getToolRecords
}
from
'../api'
import
{
selectCase
}
from
'@/api/base'
const
toolTypeMap
=
{
1
:
'抖音'
}
export
default
{
data
()
{
return
{
...
...
@@ -87,6 +100,11 @@ export default {
return
this
.
$store
.
state
.
case
}
},
filters
:
{
toolTypeFilter
(
val
)
{
return
toolTypeMap
[
val
]
}
},
created
()
{
this
.
tabActive
=
this
.
$route
.
query
.
type
this
.
fetchProdRecords
()
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论