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'
|
||||||
|
|
||||||
# 上传路径
|
# 上传路径
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { getDuplicateQuesionList, deleteDuplicateQuestion } from '@/api/xjapplet/xjdatabase'
|
import { getDuplicateQuesionList, deleteQuestion } from '@/api/xjapplet/xjdatabase'
|
||||||
|
|
||||||
const message = useMessage()
|
const message = useMessage()
|
||||||
const dialogVisible = ref(false)
|
const dialogVisible = ref(false)
|
||||||
@@ -85,16 +85,13 @@ function getShowImg(row) {
|
|||||||
: `https://ss-cloud.ahduima.com/xjxc/pic/${row.imageUrl}`
|
: `https://ss-cloud.ahduima.com/xjxc/pic/${row.imageUrl}`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const emits = defineEmits(['update'])
|
||||||
const handleDelete = (row) => {
|
const handleDelete = (row) => {
|
||||||
message.confirm('是否确认删除该题目?').then(() => {
|
message.confirm('是否确认删除该题目?').then(() => {
|
||||||
deleteDuplicateQuestion({
|
deleteQuestion(row.questionId, row.source).then(() => {
|
||||||
questionId: row.questionId,
|
|
||||||
subject: row.subject,
|
|
||||||
source: row.source,
|
|
||||||
carTypeId: row.carTypeId
|
|
||||||
}).then(() => {
|
|
||||||
message.success('删除成功')
|
message.success('删除成功')
|
||||||
getList()
|
tableList.value = tableList.value.filter((item) => item.questionId !== row.questionId)
|
||||||
|
emits('update')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,26 +7,42 @@
|
|||||||
:label="item.label"
|
:label="item.label"
|
||||||
:name="item.key"
|
:name="item.key"
|
||||||
>
|
>
|
||||||
<el-form :inline="true" label-width="68px" @submit.prevent>
|
<el-form :inline="true" label-width="0" @submit.prevent>
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-form-item label="车型">
|
<el-form-item>
|
||||||
<el-radio-group v-model="queryParams.carTypeId" @change="getQuestionChapter">
|
<el-select
|
||||||
<el-radio label="1001" value="1001">小车</el-radio>
|
v-model="queryParams.carTypeId"
|
||||||
<el-radio label="1002" value="1002">摩托车</el-radio>
|
placeholder="选择车型"
|
||||||
</el-radio-group>
|
filterable
|
||||||
|
style="width: 120px"
|
||||||
|
>
|
||||||
|
<el-option label="小车" value="1001" />
|
||||||
|
<el-option label="摩托车" value="1002" />
|
||||||
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="科目">
|
<el-form-item>
|
||||||
<el-radio-group v-model="queryParams.subject" @change="getQuestionChapter">
|
<el-select
|
||||||
<el-radio label="1" value="1">科一</el-radio>
|
v-model="queryParams.subject"
|
||||||
<el-radio label="4" value="4">科四</el-radio>
|
placeholder="选择科目"
|
||||||
</el-radio-group>
|
filterable
|
||||||
|
style="width: 120px"
|
||||||
|
>
|
||||||
|
<el-option label="科一" value="1" />
|
||||||
|
<el-option label="科四" value="4" />
|
||||||
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="有图片">
|
<el-form-item>
|
||||||
<el-radio-group v-model="queryParams.isPic">
|
<el-select
|
||||||
<el-radio :label="true" :value="true">有</el-radio>
|
v-model="queryParams.isPic"
|
||||||
<el-radio :label="false" :value="false">无</el-radio>
|
placeholder="是否有图片"
|
||||||
</el-radio-group>
|
filterable
|
||||||
|
clearable
|
||||||
|
style="width: 140px"
|
||||||
|
>
|
||||||
|
<el-option label="有图片" :value="true" />
|
||||||
|
<el-option label="无图片" :value="false" />
|
||||||
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
@@ -193,6 +209,7 @@ const queryParams = ref({
|
|||||||
carTypeId: '1001',
|
carTypeId: '1001',
|
||||||
subject: '1',
|
subject: '1',
|
||||||
isPic: undefined,
|
isPic: undefined,
|
||||||
|
isDuplicate: undefined,
|
||||||
keyword: '',
|
keyword: '',
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 20
|
pageSize: 20
|
||||||
|
|||||||
Reference in New Issue
Block a user