龚焕茏
2024-05-08 45dbe6e15268e874d6bbc7ce68801f6db0a1c0ae
src/views/exam/paper/edit.vue
@@ -340,6 +340,7 @@
      })
    },
    addQuestion (titleItem) {
      console.log('titleItem', titleItem)
      this.currentTitleItem = titleItem
      this.questionPage.showDialog = true
      this.search()
@@ -358,7 +359,9 @@
      let _this = this
      this.questionPage.multipleSelection.forEach(q => {
        questionApi.select(q.id).then(re => {
          _this.currentTitleItem.questionItems.push(re.response)
          if (!_this.currentTitleItem.questionItems.some(obj => obj.id === re.response.id)) {
            _this.currentTitleItem.questionItems.push(re.response)
          }
        })
      })
      this.questionPage.showDialog = false