|
|
@ -248,12 +248,10 @@ 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) {
|
|
|
@ -262,12 +260,10 @@ export default {
|
|
|
|
const element = that.formValidate.params[key];
|
|
|
|
const element = that.formValidate.params[key];
|
|
|
|
if (element.name.length <= 0) {
|
|
|
|
if (element.name.length <= 0) {
|
|
|
|
that.$Message.error(`请输入类型${i}的活动类型名称!`);
|
|
|
|
that.$Message.error(`请输入类型${i}的活动类型名称!`);
|
|
|
|
that.loading = false;
|
|
|
|
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|