sc
This commit is contained in:
@@ -4,9 +4,9 @@ VITE_NODE_ENV=development
|
|||||||
VITE_DEV=true
|
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'
|
# 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({
|
return await request.delete({
|
||||||
url: `admin-api/applet/xunjia/question/duplicate/delete`,
|
url: `admin-api/applet/xunjia/question/duplicate/delete`,
|
||||||
params
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -170,7 +170,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup name="XjDatabase">
|
<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 QuestionAddForm from './Components/QuestionAddForm.vue'
|
||||||
import DialogDuplicateQuestion from './Components/DialogDuplicateQuestion.vue'
|
import DialogDuplicateQuestion from './Components/DialogDuplicateQuestion.vue'
|
||||||
|
|
||||||
@@ -275,13 +275,8 @@ function handleAdd() {
|
|||||||
function handleDelete(row) {
|
function handleDelete(row) {
|
||||||
message
|
message
|
||||||
.confirm('是否确认删除该题?')
|
.confirm('是否确认删除该题?')
|
||||||
.then(function () {
|
.then(() => {
|
||||||
deleteDuplicateQuestion({
|
deleteQuestion(row.questionId, row.source).then(() => {
|
||||||
questionId: row.questionId,
|
|
||||||
subject: row.subject,
|
|
||||||
source: row.source,
|
|
||||||
carTypeId: row.carTypeId
|
|
||||||
}).then(() => {
|
|
||||||
getList()
|
getList()
|
||||||
message.success('删除题目成功')
|
message.success('删除题目成功')
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user