|
@@ -6,7 +6,7 @@ import apiObj from '@api/index';
|
|
|
import BlockContext from './block-context';
|
|
|
import moment from "moment";
|
|
|
import "moment/locale/zh-cn"
|
|
|
-import { disabledDate, getDaysBetween,getValueFromEvent } from '@utils/index'
|
|
|
+import { disabledDate, getDaysBetween, getValueFromEvent } from '@utils/index'
|
|
|
const { post, api, xPost } = apiObj;
|
|
|
const { TextArea } = Input;
|
|
|
function EditBlock(props) {
|
|
@@ -23,8 +23,8 @@ function EditBlock(props) {
|
|
|
if (values.startDate > values.endDate) {
|
|
|
message.warning('开始时间不能大于结束时间');
|
|
|
return
|
|
|
- } else if(!limit && getDaysBetween(values.startDate, values.endDate)>30){
|
|
|
- message.warning('开始时间与结束时间相差不能超过7天');
|
|
|
+ } else if (!limit && getDaysBetween(values.startDate, values.endDate) > 29) {
|
|
|
+ message.warning('开始时间与结束时间相差不能超过30天');
|
|
|
return
|
|
|
}
|
|
|
if (type == 1) {
|