提交 c3f7a90f authored 作者: matian's avatar matian

update:删除无用代码

上级 f094058b
......@@ -141,15 +141,12 @@ export default {
handleChange() {
this.$emit('change', this.data)
}
},
mounted() {
console.log(this.data, '===123')
}
}
</script>
<style lang="scss" scoped>
.question-list-public__title{
.question-list-public__title {
font-size: 20px;
font-weight: bold;
color: #222;
......@@ -181,14 +178,14 @@ export default {
color: #222;
line-height: 25px;
}
.question-list-item-hd__score{
.question-list-item-hd__score {
margin-left: auto;
padding-top: 10px;
font-size: 16px;
// font-weight: bold;
color: #222;
line-height: 25px;
white-space:nowrap;
white-space: nowrap;
padding-left: 30px;
}
.question-option-item {
......@@ -239,7 +236,7 @@ export default {
flex: 1;
overflow: hidden;
}
.question-list-item-score{
.question-list-item-score {
margin-left: auto;
padding-top: 10px;
font-size: 16px;
......
......@@ -54,8 +54,7 @@ export default {
order: []
}
},
computed: {
},
computed: {},
mounted() {
this.changeQuestion = this.setData()
},
......@@ -69,22 +68,27 @@ export default {
list.question_list.map(item => {
const isOptions = Array.isArray(item.question_options) ? item.question_options[0] : item.question_options
if (!isOptions) {
this.data.score_items[list.question_item_id][item.id].checked_flag ? item.cardStust = 4 : item.cardStust = 5
this.data.score_items[list.question_item_id][item.id].checked_flag
? (item.cardStust = 4)
: (item.cardStust = 5)
return item
} else {
const ans = this.data.answers[list.question_item_id][item.id].answer || this.data.answers[list.question_item_id][item.id].answers
const ans =
this.data.answers[list.question_item_id][item.id].answer ||
this.data.answers[list.question_item_id][item.id].answers
if (!ans.length) {
item.cardStust = 3
return item
} else {
this.data.score_items[list.question_item_id][item.id].is_right ? (item.cardStust = 1) : (item.cardStust = 2)
this.data.score_items[list.question_item_id][item.id].is_right
? (item.cardStust = 1)
: (item.cardStust = 2)
return item
}
}
})
data.push(list)
})
// console.log(data, '=123')
this.order = data
},
goQuestion(id) {
......
......@@ -155,7 +155,6 @@ export default {
// this.accuracText = parseInt((rightNum / totalNum) * 100)
// }
this.data = data
console.log(data)
// this.accuracScore = parseInt(totalNum)
this.status = data.sheet.status
let subjectQuestionTotal = 0
......@@ -167,7 +166,6 @@ export default {
return a.concat(b)
}, [])
const currentQuestionScore = data.sheet.score_items[item.question_item_id]
// console.log(item)
item.question_list.forEach(it => {
const currentItem = currentQuestionScore[it.id]
if (Array.isArray(it.question_options) && it.question_options.length) {
......
......@@ -56,7 +56,6 @@ export default {
})
},
sortChange(columns) {
console.log(columns, '123')
if (columns.order === 'ascending') {
this.tableOptions.remote.params.sort = columns.prop
} else {
......
......@@ -59,7 +59,6 @@ export default {
},
methods: {
sortChange(columns) {
console.log(columns, '123')
if (columns.order === 'ascending') {
this.tableOptions.remote.params.sort = columns.prop
} else {
......@@ -72,11 +71,9 @@ export default {
getCourseNameList() {
getCourseNameList().then(res => {
this.conditionList = res.data
console.log(res, 'fdd')
})
},
toClassData(row) {
console.log(row)
this.$router.push({
path: '/teacher/data/course/classDatas',
query: {
......
......@@ -49,7 +49,6 @@ export default {
})
},
sortChange(columns) {
console.log(columns, '123')
if (columns.order === 'ascending') {
this.tableOptions.remote.params.sort = columns.prop
} else {
......
......@@ -54,7 +54,6 @@ export default {
})
},
toDetail(row) {
// console.log(row)
this.$router.push({
path: '/teacher/data/course/processDetail',
query: {
......
......@@ -67,7 +67,6 @@ export default {
}
},
mounted() {
console.log(this.type, '123dfs')
},
methods: {
toPersonal(row) {
......@@ -85,7 +84,6 @@ export default {
})
},
sortChange(columns) {
console.log(columns, '123')
if (columns.order === 'ascending') {
this.$parent.$parent.$parent.$parent.getClassList()
return columns.prop
......
......@@ -97,7 +97,6 @@ export default {
mounted() {
this.initEchart()
this.initCorrectRate()
// console.log(this.dataInfo.questions_info_2, '12')
},
methods: {
initEchart() {
......@@ -117,7 +116,6 @@ export default {
},
initCorrectRate() {
this.correctRate = this.dataInfo.questions_info_2.reduce((a, b) => ({ ...a, [b.type]: b }), {})
// console.log(this.correctRate, '=123')
}
}
}
......
......@@ -60,7 +60,6 @@ export default {
stu_id: data.student_id
}
})
console.log(data)
},
// 根据首次缴费时间排序
sortChange(columns) {
......
......@@ -93,7 +93,6 @@ export default {
})
},
handleClick(tab, event) {
// console.log(tab, event)
if (tab.index === 1) {
// 待评价
this.getScoreRanking()
......
......@@ -66,7 +66,6 @@ export default {
this.tags.sort((a, b) => a - b)
this.tagInput = ''
}
console.log(this.recordScoreRange, '===123')
},
// 删除标签
removeTag(index) {
......
......@@ -157,7 +157,6 @@ export default {
})
},
sortChange(columns) {
console.log(columns, '123')
if (columns.order === 'ascending') {
this.tableOptions.remote.params.sort = columns.prop
} else {
......@@ -167,7 +166,6 @@ export default {
this.$refs.list.refetch()
},
toDetail(row) {
console.log(row, 'uyeruywgr')
this.$router.push({
path: '/teacher/data/exam/examData/topicData',
query: {
......
......@@ -41,10 +41,12 @@ export default {
this.data = JSON.parse(response.data).sheet
const status = { 3: '考卷生成', 0: '已缓存', 1: '已提交', 2: '已批阅' }
this.infoData = this.infoData.reduce((a, b) => {
a.push(b.map(item => {
item.key === 'status' ? item.value = status[this.data[item.key]] : item.value = this.data[item.key]
a.push(
b.map(item => {
item.key === 'status' ? (item.value = status[this.data[item.key]]) : (item.value = this.data[item.key])
return item
}))
})
)
return a
}, [])
this.setExamData()
......@@ -68,7 +70,6 @@ export default {
prev.push({ ...cur, list })
return prev
}, [])
console.log(this.examData, '123')
}
}
}
......
......@@ -2,7 +2,9 @@
<div>
<div style="font-size: 32px; margin-bottom: 15px">{{ $route.query.examination_name }}</div>
<app-card>
<h1 class="title" style="font-size: 28px">班级排名</h1>
<h1 class="title" style="color: #333; font-size: 16px; border-left: 3px solid #aa1941; padding-left: 7px">
班级排名
</h1>
<el-button type="text" style="float: right; margin-top: -40px" @click="exportClassList">导出</el-button>
<el-tabs v-model="tabActive" style="margin-top: 30px" @tab-click="handleClick">
<el-tab-pane :label="`已结束${classList.checked_count}`" name="finished">
......@@ -73,7 +75,6 @@ export default {
},
created() {
this.getClassList()
console.log(this.$route.query.type, 'type123')
},
methods: {
getClassList() {
......@@ -84,13 +85,11 @@ export default {
type: this.$route.query.type,
status: this.status
}
console.log(this.$route.query.type, 'type')
getClassList(params).then(res => {
this.classList = res.data
})
},
handleClick(tab, event) {
console.log(tab, event)
if (tab.index === 1) {
// 待评价
this.getClassList()
......
......@@ -46,9 +46,6 @@ export default {
}
}
},
mounted() {
console.log(this.$route.query.type, 'fughdkugh')
},
methods: {
toExamData(row) {
// this.$router.push({
......@@ -59,7 +56,6 @@ export default {
// })
},
sortChange(columns) {
console.log(columns, '123')
if (columns.order === 'ascending') {
this.tableOptions.remote.params.sort = columns.prop
} else {
......
......@@ -98,22 +98,21 @@ export default {
prev.push({ ...cur, list })
return prev
}, [])
console.log(this.examData, '123')
}
}
}
</script>
<style lang="scss" scoped>
.flex-box{
.flex-box {
margin: 20px 0;
display: flex;
.flex{
.flex {
flex: 1;
&:nth-child(1){
&:nth-child(1) {
margin-right: 10px;
min-height: 200px;
}
&:nth-child(2){
&:nth-child(2) {
margin-left: 10px;
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论