qsh 3 months ago
parent 50d7e3dcb5
commit d4648e14a2
  1. 4
      .env.base
  2. 4
      src/api/xjapplet/xjdatabase.js
  3. 11
      src/views/Question/Database/index.vue

@ -4,9 +4,9 @@ VITE_NODE_ENV=development
VITE_DEV=true
# 请求路径
# VITE_BASE_URL='http://localhost:48080'
VITE_BASE_URL='http://localhost:48080'
VITE_BASE_URL='http://47.98.161.246:48080'
# VITE_BASE_URL='http://47.98.161.246:48080'
# VITE_BASE_URL='http://114.215.207.150:48080'
# 上传路径

@ -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
})
}

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

Loading…
Cancel
Save