修复 banner 返回字段不对

This commit is contained in:
YunaiV 2023-10-24 20:29:23 +08:00
parent 6644a4d4a6
commit 539352f598

View File

@ -9,12 +9,12 @@
> >
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="Banner标题" prop="title"> <el-form-item label="标题" prop="title">
<el-input v-model="formData.title" placeholder="请输入 Banner 标题" /> <el-input v-model="formData.title" placeholder="请输入 Banner 标题" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="图片"> <el-form-item label="图片" prop="picUrl">
<UploadImg v-model="formData.picUrl" /> <UploadImg v-model="formData.picUrl" />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -42,7 +42,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="位" prop="position"> <el-form-item label="" prop="position">
<el-radio-group v-model="formData.position"> <el-radio-group v-model="formData.position">
<el-radio <el-radio
v-for="dict in getIntDictOptions(DICT_TYPE.PROMOTION_BANNER_POSITION)" v-for="dict in getIntDictOptions(DICT_TYPE.PROMOTION_BANNER_POSITION)"
@ -92,6 +92,8 @@ const formRules = reactive({
title: [{ required: true, message: 'Banner 标题不能为空', trigger: 'blur' }], title: [{ required: true, message: 'Banner 标题不能为空', trigger: 'blur' }],
picUrl: [{ required: true, message: '图片 URL 不能为空', trigger: 'blur' }], picUrl: [{ required: true, message: '图片 URL 不能为空', trigger: 'blur' }],
status: [{ required: true, message: '活动状态不能为空', trigger: 'blur' }], status: [{ required: true, message: '活动状态不能为空', trigger: 'blur' }],
position: [{ required: true, message: '位置不能为空', trigger: 'blur' }],
sort: [{ required: true, message: '排序不能为空', trigger: 'blur' }],
url: [{ required: true, message: '跳转地址不能为空', trigger: 'blur' }] url: [{ required: true, message: '跳转地址不能为空', trigger: 'blur' }]
}) })
const formRef = ref() // Ref const formRef = ref() // Ref