|
@@ -50,6 +50,7 @@ export default {
|
|
|
if (this.endTime != null && this.endTime != "" && time) {
|
|
|
return time.getTime() > new Date(this.endTime).valueOf();
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
},
|
|
|
pickerOptions2: {
|
|
@@ -57,6 +58,7 @@ export default {
|
|
|
if (this.startTime != null && this.startTime != "" && time) {
|
|
|
return time.getTime() < new Date(this.startTime).valueOf();
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
},
|
|
|
};
|
|
@@ -87,7 +89,10 @@ export default {
|
|
|
} else if (this.type + "" === "2" && !this.setType(90)) {
|
|
|
this.showMessage("时间跨度不能超过90天!");
|
|
|
return;
|
|
|
- } else if (
|
|
|
+ } else if (this.type + "" === "3" && !this.setType(30)) {
|
|
|
+ this.showMessage("时间跨度不能超过30天!");
|
|
|
+ return;
|
|
|
+ }else if (
|
|
|
new Date(this.endTime).valueOf() < new Date(this.startTime).valueOf()
|
|
|
) {
|
|
|
this.showMessage("结束时间不大于开始时间!");
|