提交 2b9c9738 authored 作者: lihuihui's avatar lihuihui
......@@ -33,7 +33,6 @@ export default {
return {}
},
created() {
console.log(this.list)
},
methods: {
handleClick(item) {
......
......@@ -117,7 +117,6 @@ export default {
methods: {
init() {
Promise.all([this.fetchQuestions(), this.fetchGetReport()]).then(res => {
console.log(res)
const singleChoice = []
const multiChoice = []
// 组装数据
......@@ -203,7 +202,6 @@ export default {
if (isFinish) this.fetchSubmitReport(selection)
else this.$message.error('请完成全部选题再提交')
} else {
console.log(selection)
if (selection.length > 0) this.fetchSaveReport(selection)
else this.$message.error('您并没有选中项需要保存')
}
......@@ -274,7 +272,8 @@ export default {
option_ids: JSON.stringify(list)
}
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('保存成功!')
}
})
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论