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