This commit is contained in:
@@ -25,7 +25,7 @@ export default {
|
|||||||
return err;
|
return err;
|
||||||
},
|
},
|
||||||
MaxLength(ltkey, value, max) {
|
MaxLength(ltkey, value, max) {
|
||||||
if (value === undefined || value === null) {
|
if (_.isEmpty(value)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -45,11 +45,10 @@ export default {
|
|||||||
return this.MaxLength(ltkey, value, 255);
|
return this.MaxLength(ltkey, value, 255);
|
||||||
},
|
},
|
||||||
After(startDate, endDate) {
|
After(startDate, endDate) {
|
||||||
if (startDate === undefined || startDate === null) {
|
if (_.isEmpty(startDate)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (_.isEmpty(endDate)) {
|
||||||
if (endDate === undefined || endDate === null) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user