|
@@ -320,7 +320,8 @@ export default {
|
|
|
if (this.queCardForm.queList.length == 0) {
|
|
|
// 为0直接添加
|
|
|
addToQuestionCard({
|
|
|
- questionId: item.id
|
|
|
+ questionId: item.id,
|
|
|
+ ...this.extraData
|
|
|
}).then(() => {
|
|
|
this.queCardForm.queList.push(item)
|
|
|
})
|
|
@@ -329,7 +330,8 @@ export default {
|
|
|
if (item.subjectid == this.queCardForm.queList[0].subjectid) {
|
|
|
// 是,则添加
|
|
|
addToQuestionCard({
|
|
|
- questionId: item.id
|
|
|
+ questionId: item.id,
|
|
|
+ ...this.extraData
|
|
|
}).then((res) => {
|
|
|
this.queCardForm.queList.push(item)
|
|
|
})
|
|
@@ -341,7 +343,7 @@ export default {
|
|
|
},
|
|
|
clearQueCard() {
|
|
|
if (this.queCardForm.queList.length > 0) {
|
|
|
- deleteQuestionCard().then((res) => {
|
|
|
+ deleteQuestionCard(this.extraData).then((res) => {
|
|
|
console.log(res)
|
|
|
this.queCardForm.queList = []
|
|
|
this.msgSuccess('清空成功')
|