修复 banner 返回字段不对
This commit is contained in:
parent
6644a4d4a6
commit
539352f598
@ -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)"
|
||||||
@ -89,9 +89,11 @@ const formData = ref({
|
|||||||
memo: undefined
|
memo: undefined
|
||||||
})
|
})
|
||||||
const formRules = reactive({
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user