diff --git a/src/views/Question/Database/index.vue b/src/views/Question/Database/index.vue index 50f740d..49e634f 100644 --- a/src/views/Question/Database/index.vue +++ b/src/views/Question/Database/index.vue @@ -8,16 +8,19 @@ :name="item.key" > - + + + @@ -26,12 +29,28 @@ placeholder="选择科目" filterable style="width: 120px" + @change="getQuestionChapter" > - + + + + + - - @@ -197,6 +214,7 @@ import { searchQuestion, getQuestionSort, deleteQuestion } from '@/api/xjapplet/xjdatabase' import QuestionAddForm from './Components/QuestionAddForm.vue' import DialogDuplicateQuestion from './Components/DialogDuplicateQuestion.vue' +import { t } from '@wangeditor/editor' const message = useMessage() @@ -246,6 +264,7 @@ const getQuestionChapter = () => { source: queryParams.value.source }).then((data) => { chapterOptions.value = data + queryParams.value.chapter = '' }) } @@ -264,7 +283,7 @@ function handleReset() { isPic: undefined, keyword: '', pageNo: 1, - pageSize: 100 + pageSize: 20 } getList() } @@ -321,7 +340,8 @@ function handleChangeSource() { } queryParams.value = { ...obj, source: queryParams.value.source } getQuestionChapter() - getList() + tableList.value = [] + total.value = 0 } const dialogDuplicate = ref(null)