|
|
@@ -10,6 +10,7 @@ const key = Symbol('PaperQuestionCondition')
|
|
|
|
|
|
export const useProvidePaperQuestionCondition = function (exactMode, handMode) {
|
|
|
const keyword = ref('')
|
|
|
+ const questionId = ref('')
|
|
|
const qtpye = ref('') // 历史遗留拼写错误
|
|
|
const qTypes = ref([])
|
|
|
|
|
|
@@ -119,6 +120,7 @@ export const useProvidePaperQuestionCondition = function (exactMode, handMode) {
|
|
|
pageNum: pageNum.value,
|
|
|
pageSize: pageSize.value,
|
|
|
title: keyword.value,
|
|
|
+ id: questionId.value,
|
|
|
qtpye: qtpye.value,
|
|
|
knowledgeId: knowledgeId.value,
|
|
|
knowledges: knowledgeIds.value.toString()
|
|
|
@@ -134,7 +136,7 @@ export const useProvidePaperQuestionCondition = function (exactMode, handMode) {
|
|
|
loading.value = false
|
|
|
}
|
|
|
}
|
|
|
- watch([keyword, qtpye, knowledgeId, () => knowledgeIds.value.toString()], async ([title, qtpye, knowledgeId, knowledges]) => {
|
|
|
+ watch([keyword, questionId, qtpye, knowledgeId, () => knowledgeIds.value.toString()], async ([title, id, qtpye, knowledgeId, knowledges]) => {
|
|
|
pageNum.value = 1
|
|
|
questionList.value = []
|
|
|
total.value = 0
|
|
|
@@ -144,7 +146,7 @@ export const useProvidePaperQuestionCondition = function (exactMode, handMode) {
|
|
|
})
|
|
|
|
|
|
const payload = {
|
|
|
- keyword, qtpye, qTypes, pageNum, pageSize, total, questionList, getQuestionList,
|
|
|
+ keyword, questionId, qtpye, qTypes, pageNum, pageSize, total, questionList, getQuestionList,
|
|
|
cart, currentSubject, groupedQuestions, subjectStat,
|
|
|
hasQuestion, addQuestion, removeQuestion, removeQuestionGroup, clearCart
|
|
|
}
|