gis-common 2.2.5 → 2.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/resource.min.js +8 -4
- package/package.json +1 -1
package/dist/resource.min.js
CHANGED
|
@@ -242,10 +242,11 @@ __webpack_require__.d(__webpack_exports__, "DevicePixelRatio", function() { retu
|
|
|
242
242
|
COORDINATE_ERROR: '坐标验证失败',
|
|
243
243
|
JSON_PARSE_ERROR: 'JSON解析失败,格式有误',
|
|
244
244
|
JSON_VALUE_ERROR: 'JSON无此键',
|
|
245
|
-
PARAMETER_ERROR: '
|
|
246
|
-
PARAMETER_ERROR_ARRAY: '
|
|
247
|
-
PARAMETER_ERROR_STRING: '
|
|
248
|
-
PARAMETER_ERROR_FUNCTION: '
|
|
245
|
+
PARAMETER_ERROR: '验证数据类型失败',
|
|
246
|
+
PARAMETER_ERROR_ARRAY: '格式类型验证失败:必须是数组',
|
|
247
|
+
PARAMETER_ERROR_STRING: '格式类型验证失败:必须是字符',
|
|
248
|
+
PARAMETER_ERROR_FUNCTION: '格式类型验证失败:必须是函数',
|
|
249
|
+
PARAMETER_ERROR_OBJECT: '格式类型验证失败:必须是对象',
|
|
249
250
|
PARAMETER_ERROR_LACK: '参数缺失'
|
|
250
251
|
});
|
|
251
252
|
// CONCATENATED MODULE: ./src/constant/LayerType.js
|
|
@@ -1033,6 +1034,9 @@ Date.prototype.addDate = function (interval, number) {
|
|
|
1033
1034
|
lastMonthDate: new Date(new Date().getFullYear(), new Date().getMonth() - 1, 1),
|
|
1034
1035
|
thisMonthDate: new Date(new Date().getFullYear(), new Date().getMonth(), 1),
|
|
1035
1036
|
nextMonthDate: new Date(new Date().getFullYear(), new Date().getMonth() + 1, 1),
|
|
1037
|
+
lastWeekDate: new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate() + 1 - 7 - new Date().getDay()),
|
|
1038
|
+
thisWeekDate: new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate() + 1 - new Date().getDay()),
|
|
1039
|
+
nextWeekDate: new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate() + 1 + 7 - new Date().getDay()),
|
|
1036
1040
|
lastDayDate: new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate() - 1),
|
|
1037
1041
|
thisDayDate: new Date(new Date().setHours(0, 0, 0, 0)),
|
|
1038
1042
|
nextDayDate: new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate() + 1),
|