|
|
@@ -403,17 +403,24 @@ export default {
|
|
|
//表单提交前校验
|
|
|
beforSubmitV() {
|
|
|
this.falg = false
|
|
|
- let startDate = JSON.parse(JSON.stringify(this.form.drillStartTime))
|
|
|
+ let startDate = JSON.parse(JSON.stringify(this.form.drillStartTime))
|
|
|
+ let objStart=startDate.replace(/-/g,"/");
|
|
|
startDate = Date.parse(new Date(startDate))
|
|
|
-
|
|
|
+ if(!startDate){
|
|
|
+ startDate = Date.parse(new Date(objStart));
|
|
|
+ }
|
|
|
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))
|
|
|
+ let objend=endDate.replace(/-/g,"/");
|
|
|
endDate = Date.parse(new Date(endDate))
|
|
|
+ if(!endDate){
|
|
|
+ endDate = Date.parse(new Date(objend));
|
|
|
+ }
|
|
|
|
|
|
if(!endDate){
|
|
|
Toast('演练结束时间不能为空')
|