|
|
|
@ -234,7 +234,7 @@ export default {
|
|
|
|
let that = this;
|
|
|
|
let that = this;
|
|
|
|
if (that.formValidate.params.length <= 0) {
|
|
|
|
if (that.formValidate.params.length <= 0) {
|
|
|
|
that.$Message.error("至少需要填写一个活动类型!");
|
|
|
|
that.$Message.error("至少需要填写一个活动类型!");
|
|
|
|
return;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (
|
|
|
|
if (
|
|
|
|
typeof that.formValidate.logo == "undefined" ||
|
|
|
|
typeof that.formValidate.logo == "undefined" ||
|
|
|
|
@ -242,7 +242,7 @@ export default {
|
|
|
|
that.formValidate.logo.length <= 0
|
|
|
|
that.formValidate.logo.length <= 0
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
that.$Message.error("请上传活动封面!");
|
|
|
|
that.$Message.error("请上传活动封面!");
|
|
|
|
return;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.$refs["formValidate"].validate((valid) => {
|
|
|
|
this.$refs["formValidate"].validate((valid) => {
|
|
|
|
if (valid) {
|
|
|
|
if (valid) {
|
|
|
|
|