Commit 8e076df8 authored by Mac's avatar Mac

1

parent e94993f9
......@@ -104,15 +104,27 @@
<el-form-item label="活动名称" class="is-required" prop="ActivityName">
<el-input type="text" class="w400" v-model="addMsg.ActivityName" size="small"></el-input>
</el-form-item>
<el-form-item label="开始时间" class="is-required" prop="StartTime">
<el-date-picker class="w300" value-format="yyyy-MM-dd HH:mm:ss" v-model="addMsg.StartTime" type="datetime" size="small"
<!-- <el-form-item label="开始时间" class="is-required" prop="StartTime">
<el-date-picker class="w300" value-format="yyyy-MM-dd HH:mm:ss" v-model="addMsg.StartTime" type="datetime" size="small"
placeholder="开始时间">
</el-date-picker>
</el-form-item>
<el-form-item label="结束时间" class="is-required" prop="EndTime">
<el-date-picker class="w300" value-format="yyyy-MM-dd HH:mm:ss" v-model="addMsg.EndTime" type="datetime" size="small" placeholder="结束时间">
<el-date-picker class="w300" value-format="yyyy-MM-dd HH:mm:ss" v-model="addMsg.EndTime" type="datetime" size="small" placeholder="结束时间">
</el-date-picker>
</el-form-item> -->
<el-form-item label="开始时间" class="is-required" prop="StartTime">
<el-date-picker class="w300" v-model="addMsg.StartTime" type="datetime" size="small"
value-format="yyyy-MM-dd" placeholder="开始时间">
</el-date-picker>
</el-form-item>
<el-form-item label="结束时间" class="is-required" prop="EndTime">
<el-date-picker class="w300" v-model="addMsg.EndTime" type="datetime" size="small"
value-format="yyyy-MM-dd HH:mm:ss" placeholder="结束时间">
</el-date-picker>
</el-form-item>
<el-form-item label="报名开始时间" class="is-required" prop="SignStartTime">
<el-date-picker class="w300" v-model="addMsg.SignStartTime" type="datetime" size="small"
value-format="yyyy-MM-dd HH:mm:ss" placeholder="报名开始时间">
......@@ -363,38 +375,38 @@
}],
},
pickerBeginDateBefore: {
disabledDate: time => {
if (this.addMsg.EndTime == null) {
return false;
} else {
let endTime = new Date(this.addMsg.EndTime)
return endTime.getTime() < time.getTime()
}
}
},
pickerSignBeginDateBefore: {
disabledDate: time => {
if (this.addMsg.SignEndTime == null) {
return false;
} else {
let endTime = new Date(this.addMsg.SignEndTime)
return endTime.getTime() < time.getTime()
}
}
},
pickerBeginDateAfter: {
disabledDate: time => {
let startTime = new Date(this.addMsg.StartTime)
return startTime.getTime() >= time.getTime()
}
},
pickerSignBeginDateAfter: {
disabledDate: time => {
let startTime = new Date(this.addMsg.SignStartTime)
return startTime.getTime() >= time.getTime()
}
},
// pickerBeginDateBefore: {
// disabledDate: time => {
// if (this.addMsg.EndTime == null) {
// return false;
// } else {
// let endTime = new Date(this.addMsg.EndTime)
// return endTime.getTime() < time.getTime()
// }
// }
// },
// pickerSignBeginDateBefore: {
// disabledDate: time => {
// if (this.addMsg.SignEndTime == null) {
// return false;
// } else {
// let endTime = new Date(this.addMsg.SignEndTime)
// return endTime.getTime() < time.getTime()
// }
// }
// },
// pickerBeginDateAfter: {
// disabledDate: time => {
// let startTime = new Date(this.addMsg.StartTime)
// return startTime.getTime() >= time.getTime()
// }
// },
// pickerSignBeginDateAfter: {
// disabledDate: time => {
// let startTime = new Date(this.addMsg.SignStartTime)
// return startTime.getTime() >= time.getTime()
// }
// },
bdMsg: {
Id: 0, //报名id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment