|
|
|
|
@ -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('删除题目成功') |
|
|
|
|
}) |
|
|
|
|
|