提交 9fe2e086 authored 作者: matian's avatar matian

update:删除无用代码

上级 87c5d3aa
......@@ -115,7 +115,6 @@ export default {
this.$message.warning('请选择考试时间')
return
}
// console.log(params)
this.$emit('getBaseInfo', params)
this.$parent.$parent.nextStep()
},
......
......@@ -67,7 +67,6 @@ export default {
const listArray = []
for (let j = 0; j < this.ExamParerList.length; j++) {
if (this.q[i] === this.ExamParerList[j].key) {
console.log(this.ExamParerList[j])
listArray.push(this.ExamParerList[j])
}
}
......
......@@ -132,7 +132,6 @@ export default {
}
},
mounted() {
console.log()
if (this.$route.query.isEdit === '2' && JSON.parse(this.$route.query.row)) {
this.getDetail()
}
......
......@@ -43,9 +43,7 @@ export default {
return a
}
},
mounted() {
console.log(this.params, 'params')
},
methods: {
lastStep() {
this.$parent.$parent.lastStep()
......
......@@ -125,7 +125,6 @@ export default {
info.email = this.tableData[6]
info.educational_background = this.tableData[7]
info.mobile = this.tableData[8]
console.log(info)
this.$emit('getInfo', info)
this.$parent.$parent.nextStep()
},
......@@ -133,18 +132,15 @@ export default {
this.$parent.$parent.lastStep()
},
getDetail() {
console.log(JSON.parse(this.$route.query.row))
const params = {
id: JSON.parse(this.$route.query.row).exam_id
}
getExamPaperDetail(params).then(res => {
console.log(JSON.parse(res.data.exam_info.config).info)
const list = JSON.parse(res.data.exam_info.config).info
const arr = []
Object.keys(list).forEach(key => {
arr.push(list[key])
})
console.log(arr)
this.tableData = arr
})
},
......
......@@ -118,7 +118,6 @@ export default {
}
},
row() {
console.log(this.$route.query.row)
return JSON.parse(this.$route.query.row)
}
},
......@@ -141,7 +140,6 @@ export default {
},
// 添加考生
handleAddStudent() {
console.log(this.row, '----')
this.$router.push({
path: 'createStudent',
query: { id: this.row.exam_id }
......@@ -197,7 +195,6 @@ export default {
}
downloadExamData(params).then(r => {
const blob = new Blob([r], { type: 'application/vnd.ms-excel' })
console.log(blob)
if ('download' in document.createElement('a')) {
const elink = document.createElement('a')
elink.download = '学员数据.xlsx'
......@@ -215,7 +212,6 @@ export default {
this.$confirm('确定发送成绩信息', {
confirmButtonText: '确定'
}).then(() => {
console.log(this.studentIds)
const studentId = this.multipleSelection.map(item => item.student_id).toString()
const params = { exam_id: this.row.exam_id, students_id: studentId }
sendMessage(params).then(res => {
......
......@@ -100,7 +100,6 @@ export default {
},
// 单个删除
handleDelete(row) {
console.log(row)
const params = { id: row.exam_id }
delExamPaper(params).then(res => {
this.$message.success('删除考试成功')
......
......@@ -66,22 +66,18 @@ export default {
// 获取子组件传过来的页面基本信息
getBaseInfo(val) {
this.params = val
console.log(val, '123')
},
// 试卷id
getCheckPaper(val) {
console.log(val)
this.exam_paper = val
},
// 选择的试卷
getCheckPaperList(val) {
console.log(val)
this.checkedPaper = val
},
// @ts-nocheck个人信息
getInfo(val) {
this.config.info = val
// console.log(this.config.info)
},
// 考试配置
getExamConfig(val) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论