|
@@ -406,8 +406,20 @@ export default {
|
|
|
let startDate = JSON.parse(JSON.stringify(this.form.drillStartTime))
|
|
let startDate = JSON.parse(JSON.stringify(this.form.drillStartTime))
|
|
|
startDate = Date.parse(new Date(startDate))
|
|
startDate = Date.parse(new Date(startDate))
|
|
|
|
|
|
|
|
|
|
+ if(!startDate){
|
|
|
|
|
+ Toast('演练开始时间不能为空')
|
|
|
|
|
+ this.falg = true
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
let endDate = JSON.parse(JSON.stringify(this.form.drillEndTime))
|
|
let endDate = JSON.parse(JSON.stringify(this.form.drillEndTime))
|
|
|
endDate = Date.parse(new Date(endDate))
|
|
endDate = Date.parse(new Date(endDate))
|
|
|
|
|
+
|
|
|
|
|
+ if(!endDate){
|
|
|
|
|
+ Toast('演练结束时间不能为空')
|
|
|
|
|
+ this.falg = true
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
if (startDate >= endDate) {
|
|
if (startDate >= endDate) {
|
|
|
Toast('演练开始时间不能大于或等于演练结束时间')
|
|
Toast('演练开始时间不能大于或等于演练结束时间')
|
|
|
this.falg = true
|
|
this.falg = true
|
|
@@ -467,7 +479,7 @@ export default {
|
|
|
} else {
|
|
} else {
|
|
|
this.beforSubmitV() //校验
|
|
this.beforSubmitV() //校验
|
|
|
if (!this.falg) {
|
|
if (!this.falg) {
|
|
|
- //校验通过触发
|
|
|
|
|
|
|
+ //校验通过触发
|
|
|
this.$refs.form.validate().then(() => {
|
|
this.$refs.form.validate().then(() => {
|
|
|
this.submitHandlerConfirm(type)
|
|
this.submitHandlerConfirm(type)
|
|
|
})
|
|
})
|