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

update:删除无用代码

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