This commit is contained in:
@jyuhsin
2024-05-24 16:11:20 +08:00
parent f857065a3a
commit 8b6154a201
5 changed files with 47 additions and 74 deletions
@@ -188,7 +188,7 @@ layout("/mobile/platform.html"){
</span>
</span>
</div>
<div>
<div v-if="o.campus">
<span class="train-title">校&emsp;&emsp;区:</span>
<span>{{o.campus}}</span>
</div>
@@ -370,7 +370,7 @@ layout("/layouts/platform.html"){
const valid = await this.$refs['form'].validate()
if (valid) {
const courseValid = this.formData.courseList.some((v, i) => {
const basicValid = v.courseName && v.coursePeopleNumber && v.campus
const basicValid = v.courseName && v.coursePeopleNumber
&& v.courseLocation && v.courseInstructor && v.courseType
const timeValid = v.courseTimeList.length > 0 && v.courseTimeList.every(x => {
return x.courseStartTime && x.courseEndTime && (x.courseStartTime < x.courseEndTime)
@@ -108,7 +108,7 @@
</el-col>
</el-form-item>
<vi-title2 :title="trainType + '信息'">
<vi-title2 :title="trainType + '信息(如不需要校区信息,填写时忽略即可)'">
<template #func>
<el-button @click="addCourse" size="small" type="primary">
添加{{ trainType }}
@@ -137,9 +137,17 @@ layout("/layouts/platform.html"){
},
methods: {
exportSignPerson() {
if(!this.pageForm.activityId) {
this.$message.warning('请先选择活动')
return
}
this.exportPro(loc() + '/exportSignPerson', {activityId: this.pageForm.activityId})
},
exportGiftPerson() {
if(!this.pageForm.activityId) {
this.$message.warning('请先选择活动')
return
}
this.exportPro(loc() + '/exportGiftPerson', {activityId: this.pageForm.activityId})
},
exportPro(url, param) {