diff --git a/src/views/active/activity.vue b/src/views/active/activity.vue index 4835c08..a4f828a 100644 --- a/src/views/active/activity.vue +++ b/src/views/active/activity.vue @@ -759,8 +759,8 @@ }, submitForm(formName) { var that = this; - - + + this.form.start_time = this.dateRange[0]; this.form.end_time = this.dateRange[1]; if (!this.form.start_time || !this.form.end_time) { @@ -774,15 +774,20 @@ return false; } let upTotal = 0 + if(that.form.numbers_list.length==0){ + that.$message.error('请填写活动场次'); + return false; + } for(var k of that.form.numbers_list){ + console.log(!k.name) if(!k.name){ - that.$message.error('请填写活动名称'); + that.$message.error('请填写活动场次名称'); return false; } k.start_time = k.dateRange[0]; k.end_time = k.dateRange[1]; if (!k.start_time || !k.end_time) { - that.$message.error('请选择活动时间'); + that.$message.error('请选择活动场次时间'); return false; } let checktime = that.compareDate(k.start_time, k.end_plan);