|
|
@ -766,6 +766,7 @@ export default { |
|
|
|
cur >= 0 && item.examQuestions.splice(cur, 1) |
|
|
|
cur >= 0 && item.examQuestions.splice(cur, 1) |
|
|
|
}) |
|
|
|
}) |
|
|
|
item.checkAll = false |
|
|
|
item.checkAll = false |
|
|
|
|
|
|
|
this.afterDelQues() |
|
|
|
this.calcDifficult() |
|
|
|
this.calcDifficult() |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
Util.warningMsg('请选择数据') |
|
|
|
Util.warningMsg('请选择数据') |
|
|
@ -790,6 +791,17 @@ export default { |
|
|
|
e.serialNumber = i + 1 |
|
|
|
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) { |
|
|
|
async delQues (item, i, noConfirm) { |
|
|
|
try { |
|
|
|
try { |
|
|
@ -803,6 +815,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
item.examQuestions.splice(i, 1) |
|
|
|
item.examQuestions.splice(i, 1) |
|
|
|
item.checkAll = false |
|
|
|
item.checkAll = false |
|
|
|
|
|
|
|
this.afterDelQues() |
|
|
|
this.calcDifficult() |
|
|
|
this.calcDifficult() |
|
|
|
} catch (e) { } |
|
|
|
} catch (e) { } |
|
|
|
}, |
|
|
|
}, |
|
|
@ -1029,7 +1042,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 返回 |
|
|
|
// 返回 |
|
|
|
back () { |
|
|
|
back () { |
|
|
|
this.$router.push(this.$store.state.user.referrer || 'list') |
|
|
|
this.$router.push(this.$store.state.user.referrer2 || 'list') |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 拖拽面板 |
|
|
|
// 拖拽面板 |
|
|
|
drag () { |
|
|
|
drag () { |
|
|
|