|
|
@ -248,10 +248,12 @@ export default {
|
|
|
|
that.formValidate.logo.length <= 0
|
|
|
|
that.formValidate.logo.length <= 0
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
that.$Message.error("请上传活动封面!");
|
|
|
|
that.$Message.error("请上传活动封面!");
|
|
|
|
|
|
|
|
that.loading = false;
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (that.formValidate.params.length <= 0) {
|
|
|
|
if (that.formValidate.params.length <= 0) {
|
|
|
|
that.$Message.error("至少需要填写一个活动类型!");
|
|
|
|
that.$Message.error("至少需要填写一个活动类型!");
|
|
|
|
|
|
|
|
that.loading = false;
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
for (const key in that.formValidate.params) {
|
|
|
|
for (const key in that.formValidate.params) {
|
|
|
@ -264,6 +266,7 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (element.defaultVal.length <= 0) {
|
|
|
|
if (element.defaultVal.length <= 0) {
|
|
|
|
that.$Message.error(`请输入类型${i}的参数!`);
|
|
|
|
that.$Message.error(`请输入类型${i}的参数!`);
|
|
|
|
|
|
|
|
that.loading = false;
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|