This commit is contained in:
qsh
2025-10-11 17:59:52 +08:00
parent 50d7e3dcb5
commit d4648e14a2
3 changed files with 7 additions and 12 deletions

View File

@@ -54,9 +54,9 @@ export const getDuplicateQuesionList = async (params) => {
})
}
export const deleteDuplicateQuestion = async (params) => {
export const deleteDuplicateQuestion = async (data) => {
return await request.delete({
url: `admin-api/applet/xunjia/question/duplicate/delete`,
params
data
})
}

View File

@@ -170,7 +170,7 @@
</template>
<script setup name="XjDatabase">
import { searchQuestion, getQuestionSort } from '@/api/xjapplet/xjdatabase'
import { searchQuestion, getQuestionSort, deleteQuestion } from '@/api/xjapplet/xjdatabase'
import QuestionAddForm from './Components/QuestionAddForm.vue'
import DialogDuplicateQuestion from './Components/DialogDuplicateQuestion.vue'
@@ -275,13 +275,8 @@ function handleAdd() {
function handleDelete(row) {
message
.confirm('是否确认删除该题?')
.then(function () {
deleteDuplicateQuestion({
questionId: row.questionId,
subject: row.subject,
source: row.source,
carTypeId: row.carTypeId
}).then(() => {
.then(() => {
deleteQuestion(row.questionId, row.source).then(() => {
getList()
message.success('删除题目成功')
})