Commit 5e0e8775 authored by Mac's avatar Mac

新增了一些验证

parent 88d25f63
......@@ -142,7 +142,7 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item label="封面图" size="small">
<el-form-item label="封面图" size="small" prop="CoverImg">
<el-button @click="isShowImage=true" size="small">选择文件</el-button>
<div class="app-gallery-item" style="position: relative;width: 100px;margin-top: 10px;border:none;">
<img v-if="!addMsg.CoverImg || addMsg.CoverImg==''" src="../../assets/img/default.png"
......@@ -197,7 +197,7 @@
<el-form-item label="活动地址" prop="LocationName">
<el-input type="text" class="w400" placeholder="请输入门店地址" v-model="addMsg.LocationName" size="small"></el-input>
</el-form-item>
<el-form-item label="地址经纬度" prop="LngLat">
<el-form-item label="地址经纬度" prop="LonLat">
<label slot="label">门店经纬度
<el-tooltip class="item" effect="dark" content="纬度 | 经度,可在地图上选择位置" placement="top">
<i class="el-icon-info"></i>
......@@ -373,6 +373,16 @@
message: '请填写活动地址',
trigger: 'blur'
}],
LonLat:[{
required: true,
message: '请选择经纬度',
trigger: 'blur'
}],
CoverImg:[{
required: true,
message: '请选择封面图',
trigger: 'blur'
}]
},
// pickerBeginDateBefore: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment