Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-training-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-training-new
Commits
2b9c9738
提交
2b9c9738
authored
10月 13, 2021
作者:
lihuihui
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
https://gitlab.ezijing.com/webapp/x-training-new
上级
231a9aaa
ad99318c
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
2 行增加
和
4 行删除
+2
-4
AnswerList.vue
src/modules/user-study/components/AnswerList.vue
+0
-1
Index.vue
src/modules/user-study/views/Index.vue
+2
-3
没有找到文件。
src/modules/user-study/components/AnswerList.vue
浏览文件 @
2b9c9738
...
@@ -33,7 +33,6 @@ export default {
...
@@ -33,7 +33,6 @@ export default {
return
{}
return
{}
},
},
created
()
{
created
()
{
console
.
log
(
this
.
list
)
},
},
methods
:
{
methods
:
{
handleClick
(
item
)
{
handleClick
(
item
)
{
...
...
src/modules/user-study/views/Index.vue
浏览文件 @
2b9c9738
...
@@ -117,7 +117,6 @@ export default {
...
@@ -117,7 +117,6 @@ export default {
methods
:
{
methods
:
{
init
()
{
init
()
{
Promise
.
all
([
this
.
fetchQuestions
(),
this
.
fetchGetReport
()]).
then
(
res
=>
{
Promise
.
all
([
this
.
fetchQuestions
(),
this
.
fetchGetReport
()]).
then
(
res
=>
{
console
.
log
(
res
)
const
singleChoice
=
[]
const
singleChoice
=
[]
const
multiChoice
=
[]
const
multiChoice
=
[]
// 组装数据
// 组装数据
...
@@ -203,7 +202,6 @@ export default {
...
@@ -203,7 +202,6 @@ export default {
if
(
isFinish
)
this
.
fetchSubmitReport
(
selection
)
if
(
isFinish
)
this
.
fetchSubmitReport
(
selection
)
else
this
.
$message
.
error
(
'请完成全部选题再提交'
)
else
this
.
$message
.
error
(
'请完成全部选题再提交'
)
}
else
{
}
else
{
console
.
log
(
selection
)
if
(
selection
.
length
>
0
)
this
.
fetchSaveReport
(
selection
)
if
(
selection
.
length
>
0
)
this
.
fetchSaveReport
(
selection
)
else
this
.
$message
.
error
(
'您并没有选中项需要保存'
)
else
this
.
$message
.
error
(
'您并没有选中项需要保存'
)
}
}
...
@@ -274,7 +272,8 @@ export default {
...
@@ -274,7 +272,8 @@ export default {
option_ids
:
JSON
.
stringify
(
list
)
option_ids
:
JSON
.
stringify
(
list
)
}
}
saveReport
(
this
.
case
.
id
,
params
).
then
(
res
=>
{
saveReport
(
this
.
case
.
id
,
params
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
&&
res
.
data
&&
res
.
data
.
id
)
{
this
.
recordId
=
res
.
data
.
id
this
.
$message
.
success
(
'保存成功!'
)
this
.
$message
.
success
(
'保存成功!'
)
}
}
})
})
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论