Compare commits

..

7 Commits
main ... dev-cl

  1. 4
      .env.base
  2. 6
      src/views/Question/UAV/Components/QuestionAddForm.vue
  3. 4
      src/views/Question/UAV/index.vue
  4. 3117
      yarn.lock

@ -4,14 +4,14 @@ 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.55.169.15:48080' # VITE_BASE_URL='http://114.55.169.15:48080'
# VITE_BASE_URL='http://114.215.207.150:48080' # VITE_BASE_URL='http://114.215.207.150:48080'
# 上传路径 # 上传路径
VITE_UPLOAD_URL='http://47.98.161.246:48080/admin-api/system/file/upload' VITE_UPLOAD_URL='http://47.98.161.246:48080/admin-api/system/file/upload'
# VITE_UPLOAD_URL='http://114.55.169.15:48080/admin-api/system/file/upload' # VITE_UPLOAD_URL='http://114.55.169.15:48080/admin-api/system/file/upload'
# 接口前缀 # 接口前缀

@ -236,7 +236,7 @@ const dialogForm = ref({
chooseC: undefined, chooseC: undefined,
chooseD: undefined, chooseD: undefined,
imageUrl: undefined, imageUrl: undefined,
type: '2', type: undefined,
trueAnswer: undefined, trueAnswer: undefined,
carTypeId: undefined, carTypeId: undefined,
skillInfoPic: undefined, skillInfoPic: undefined,
@ -257,7 +257,7 @@ const open = (info = undefined, opts) => {
dialogForm.value.driveTypeName = info.driveTypeName dialogForm.value.driveTypeName = info.driveTypeName
dialogForm.value.carTypeName = info.carTypeName dialogForm.value.carTypeName = info.carTypeName
if (info) { if (info) {
dialogForm.value = { ...dialogForm.value, ...info, chapter: info.chapter } dialogForm.value = { ...info, chapter: info.chapter }
if (dialogForm.value.imageUrl) { if (dialogForm.value.imageUrl) {
imgUrl.value = dialogForm.value.imageUrl.includes('http') imgUrl.value = dialogForm.value.imageUrl.includes('http')
? dialogForm.value.imageUrl ? dialogForm.value.imageUrl
@ -283,7 +283,7 @@ const resetDialogForm = () => {
chooseC: undefined, chooseC: undefined,
chooseD: undefined, chooseD: undefined,
imageUrl: undefined, imageUrl: undefined,
type: '2', type: undefined,
trueAnswer: undefined, trueAnswer: undefined,
carTypeId: undefined, carTypeId: undefined,
skillInfoPic: undefined, skillInfoPic: undefined,

@ -239,9 +239,7 @@ function handleEdit(item) {
function handleAdd() { function handleAdd() {
dialogAddForm.value.open( dialogAddForm.value.open(
{ {
chapter: queryParams.value.chapter, chapter: queryParams.value.chapter
modelId: queryParams.value.modelId,
typeId: queryParams.value.typeId
}, },
chapterOptions.value chapterOptions.value
) )

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save