|
@@ -45,7 +45,7 @@
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
<div class="formContent-item_title">投放时间</div>
|
|
|
- <el-form-item label="巡更日期" prop="startDate">
|
|
|
+ <el-form-item label="巡更日期" prop="startTime">
|
|
|
<el-date-picker
|
|
|
class="width100"
|
|
|
v-model="effectiveDate"
|
|
@@ -96,7 +96,8 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ startTime:[this.$valid.selectRequired('日期')]
|
|
|
}
|
|
|
};
|
|
|
},
|
|
@@ -110,14 +111,13 @@ export default {
|
|
|
beforeAvatarUpload(file) {
|
|
|
const isJPG = ['image/jpg', 'image/png'].includes(file.type);
|
|
|
const isLt2M = file.size / 1024 / 1024 < 2;
|
|
|
-
|
|
|
if (!isJPG) {
|
|
|
this.$message.error('上传图片只能是 JPG,PNG 格式!');
|
|
|
}
|
|
|
if (!isLt2M) {
|
|
|
this.$message.error('上传图片大小不能超过 2MB!');
|
|
|
}
|
|
|
- return isLt2M;
|
|
|
+ return isJPG && isLt2M;
|
|
|
},
|
|
|
clickUpload() {
|
|
|
this.$refs['upload'].$refs['upload-inner'].handleClick();
|