|
|
|
@ -766,6 +766,7 @@ export default { |
|
|
|
|
cur >= 0 && item.examQuestions.splice(cur, 1) |
|
|
|
|
}) |
|
|
|
|
item.checkAll = false |
|
|
|
|
this.afterDelQues() |
|
|
|
|
this.calcDifficult() |
|
|
|
|
} else { |
|
|
|
|
Util.warningMsg('请选择数据') |
|
|
|
@ -790,6 +791,17 @@ export default { |
|
|
|
|
e.serialNumber = i + 1 |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// 移除试题后判断重复试题(展示过重复试题后才需要判断) |
|
|
|
|
afterDelQues () { |
|
|
|
|
if (this.repeatQues.length) { |
|
|
|
|
const result = [] |
|
|
|
|
this.form.paperOutline.forEach(e => { |
|
|
|
|
result.push(...e.examQuestions) |
|
|
|
|
}) |
|
|
|
|
result.map(e => e.repeat = false) |
|
|
|
|
this.hasRepeatQues(result) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// 移除试题 |
|
|
|
|
async delQues (item, i, noConfirm) { |
|
|
|
|
try { |
|
|
|
@ -803,6 +815,7 @@ export default { |
|
|
|
|
} |
|
|
|
|
item.examQuestions.splice(i, 1) |
|
|
|
|
item.checkAll = false |
|
|
|
|
this.afterDelQues() |
|
|
|
|
this.calcDifficult() |
|
|
|
|
} catch (e) { } |
|
|
|
|
}, |
|
|
|
@ -1029,7 +1042,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
// 返回 |
|
|
|
|
back () { |
|
|
|
|
this.$router.push(this.$store.state.user.referrer || 'list') |
|
|
|
|
this.$router.push(this.$store.state.user.referrer2 || 'list') |
|
|
|
|
}, |
|
|
|
|
// 拖拽面板 |
|
|
|
|
drag () { |
|
|
|
|