|
|
@ -19,7 +19,8 @@ |
|
|
|
"%H:%M", // HH:mm
|
|
|
|
"%H:%M", // HH:mm
|
|
|
|
"%M:%S" // mm:ss
|
|
|
|
"%M:%S" // mm:ss
|
|
|
|
], |
|
|
|
], |
|
|
|
DEFAULT_DATE_STRING: "2000-01-01" |
|
|
|
DEFAULT_DATE_STRING: "2000-01-01", |
|
|
|
|
|
|
|
DEFAULT_HOUR: "00" |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
props: { |
|
|
|
props: { |
|
|
@ -135,11 +136,24 @@ |
|
|
|
|
|
|
|
|
|
|
|
_dateCheck: function (date) { |
|
|
|
_dateCheck: function (date) { |
|
|
|
var c = this._const; |
|
|
|
var c = this._const; |
|
|
|
|
|
|
|
var self = this; |
|
|
|
return BI.any(c.FORMAT_ARRAY, function (idx, format) { |
|
|
|
return BI.any(c.FORMAT_ARRAY, function (idx, format) { |
|
|
|
return BI.print(BI.parseDateTime(c.DEFAULT_DATE_STRING + " " + date, c.COMPLETE_COMPARE_FORMAT), format) === date; |
|
|
|
return BI.print(BI.parseDateTime(c.DEFAULT_DATE_STRING + " " + self._getCompleteHMS(date, format), c.COMPLETE_COMPARE_FORMAT), format) === date; |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_getCompleteHMS: function (str, format) { |
|
|
|
|
|
|
|
var c = this._const; |
|
|
|
|
|
|
|
switch (format) { |
|
|
|
|
|
|
|
case "%M:%S": |
|
|
|
|
|
|
|
str = c.DEFAULT_HOUR + ":" + str; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
default: |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return str; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_getTitle: function () { |
|
|
|
_getTitle: function () { |
|
|
|
var storeValue = this.storeValue || {}; |
|
|
|
var storeValue = this.storeValue || {}; |
|
|
|
var date = BI.getDate(); |
|
|
|
var date = BI.getDate(); |
|
|
|