提交 2b9c9738 authored 作者: lihuihui's avatar lihuihui
...@@ -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) {
......
...@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论