|
@@ -558,6 +558,8 @@ export default {
|
|
|
* @param item
|
|
|
*/
|
|
|
handleToolEdit(arr, item, index) {
|
|
|
+ console.error(this.errorList)
|
|
|
+ console.error(item)
|
|
|
this.currentExerciseIndex = this.exerciseList.indexOf(item) // 清单列表下的index
|
|
|
this.curOrderIndex = index
|
|
|
if (item.scope === 'school') {
|
|
@@ -788,6 +790,11 @@ export default {
|
|
|
preOrderList.splice(this.curOrderIndex, 1, item)
|
|
|
this.paper.item = preOrderList
|
|
|
}
|
|
|
+ /* 如果编辑好的题目是之前错误的题目 则移除掉 */
|
|
|
+ let isErrorItemIndex = this.errorList.findIndex(i => i.id === item.id)
|
|
|
+ if(isErrorItemIndex > -1){
|
|
|
+ this.errorList.splice(isErrorItemIndex, 1)
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
|