@ztocwst/rc-pro-materials 0.2.2 → 0.2.3-4.1
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/README.md +17 -17
- package/build/index.js +8 -8
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +8 -8
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/designer.html +2 -2
- package/build/lowcode/index.html +2 -2
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.css +1 -1
- package/build/lowcode/preview.js +4 -5
- package/build/lowcode/render/default/view.css +1 -2
- package/build/lowcode/render/default/view.js +9 -58
- package/build/lowcode/view.css +1 -2
- package/build/lowcode/view.js +10 -59
- package/dist/SCM_Comps.css +2 -2
- package/dist/SCM_Comps.js +22 -53
- package/dist/SCM_Comps.js.map +1 -1
- package/es/components/z-Ellipsis/ellipsis.d.ts +4 -4
- package/es/components/z-Ellipsis/index.d.ts +3 -3
- package/es/components/z-agg-block/index.d.ts +3 -3
- package/es/components/z-agg-block/index.less +134 -134
- package/es/components/z-agg-block/z-agg-block.d.ts +27 -27
- package/es/components/z-agg-block/z-agg-block.js +1 -1
- package/es/components/z-auth/auth.d.ts +9 -9
- package/es/components/z-auth/index.d.ts +3 -3
- package/es/components/z-box/box.d.ts +20 -20
- package/es/components/z-box/index.d.ts +3 -3
- package/es/components/z-box/index.less +4 -4
- package/es/components/z-button/index.d.ts +3 -3
- package/es/components/z-button/z-button.d.ts +4 -4
- package/es/components/z-config-provider/configProvider.d.ts +4 -4
- package/es/components/z-config-provider/configProvider.js +45 -4
- package/es/components/z-config-provider/index.d.ts +3 -3
- package/es/components/z-data-table/data-table.d.ts +9 -0
- package/es/components/z-data-table/data-table.js +24 -0
- package/es/components/z-data-table/index.d.ts +3 -0
- package/es/components/z-data-table/index.js +2 -0
- package/es/components/z-div/div.d.ts +6 -6
- package/es/components/z-div/index.d.ts +2 -2
- package/es/components/z-editTable/editTable.d.ts +11 -11
- package/es/components/z-editTable/editTable.js +3 -4
- package/es/components/z-editTable/index.d.ts +2 -2
- package/es/components/z-form/index.d.ts +3 -3
- package/es/components/z-form/z-form.d.ts +10 -10
- package/es/components/z-form/z-form.js +1 -1
- package/es/components/z-list/index.d.ts +3 -3
- package/es/components/z-list/list.d.ts +17 -17
- package/es/components/z-list/list.js +3 -3
- package/es/components/z-operation-records/index.d.ts +3 -3
- package/es/components/z-operation-records/operationRecords.d.ts +4 -4
- package/es/components/z-pointer-block/index.d.ts +3 -3
- package/es/components/z-pointer-block/index.less +15 -15
- package/es/components/z-pointer-block/z-pointer-block.d.ts +16 -16
- package/es/components/z-preview/index.d.ts +3 -3
- package/es/components/z-preview/preview.d.ts +4 -4
- package/es/components/z-pro-provider/index.d.ts +3 -3
- package/es/components/z-pro-provider/z-pro-provider.d.ts +6 -6
- package/es/components/z-ranking-list/index.d.ts +2 -2
- package/es/components/z-ranking-list/index.less +49 -49
- package/es/components/z-ranking-list/z-ranking-list.d.ts +14 -14
- package/es/components/z-ranking-list/z-ranking-list.js +2 -3
- package/es/components/z-simple-bar/index.d.ts +3 -3
- package/es/components/z-simple-bar/index.less +9 -9
- package/es/components/z-simple-bar/z-simple-bar.d.ts +27 -27
- package/es/components/z-singleFactory/index.d.ts +2 -2
- package/es/components/z-singleFactory/zSingerFactory.d.ts +2 -3
- package/es/components/z-slick/index.d.ts +3 -0
- package/es/components/z-slick/index.js +2 -0
- package/es/components/z-slick/slick.d.ts +47 -0
- package/es/components/z-slick/slick.js +35 -0
- package/es/components/z-statistic/index.d.ts +3 -3
- package/es/components/z-statistic/index.less +22 -22
- package/es/components/z-statistic/z-statistic.d.ts +13 -13
- package/es/components/z-table/index.d.ts +3 -3
- package/es/components/z-table/table.d.ts +8 -8
- package/es/components/z-table/table.js +1 -1
- package/es/components/z-templates-data-common/components/chart-renderer/index.d.ts +12 -14
- package/es/components/z-templates-data-common/components/chart-renderer/index.js +33 -13
- package/es/components/z-templates-data-common/data-common.d.ts +20 -105
- package/es/components/z-templates-data-common/data-common.helper.d.ts +2 -61
- package/es/components/z-templates-data-common/data-common.helper.js +2 -336
- package/es/components/z-templates-data-common/data-common.js +81 -62
- package/es/components/z-templates-data-common/index.d.ts +3 -3
- package/es/components/z-tpl/index.d.ts +3 -3
- package/es/components/z-tpl/tpl.d.ts +23 -23
- package/es/components/z-tpl/tpl.js +3 -3
- package/es/components/z-warehouse/index.d.ts +2 -2
- package/es/components/z-warehouse/zWarehouse.d.ts +2 -3
- package/es/components/z-watermark/index.d.ts +3 -0
- package/es/components/z-watermark/index.js +2 -0
- package/es/components/z-watermark/zWatermark.d.ts +3 -0
- package/es/components/z-watermark/zWatermark.js +4 -0
- package/es/index.d.ts +44 -38
- package/es/index.js +4 -0
- package/es/index.scss +1 -1
- package/es/style.js +2 -6
- package/es/utils/hoc.d.ts +6 -6
- package/es/utils/hoc.js +3 -3
- package/es/utils/index.d.ts +13 -13
- package/es/utils/index.js +5 -1
- package/es/utils/props/button.d.ts +13 -13
- package/es/utils/props/common.d.ts +7 -1
- package/es/utils/props/common.js +17 -0
- package/es/utils/props/editTable.d.ts +3 -3
- package/es/utils/props/editTable.js +21 -14
- package/es/utils/props/form.d.ts +36 -0
- package/es/utils/props/form.js +33 -14
- package/es/utils/props/listTpl.d.ts +29 -29
- package/es/utils/props/microModal.d.ts +7 -7
- package/es/utils/props/microModal.js +0 -1
- package/es/utils/props/microSwitch.d.ts +1 -1
- package/es/utils/props/microSwitch.js +4 -3
- package/es/utils/props/modalSelect.d.ts +6 -6
- package/es/utils/props/operationRecords.d.ts +2 -2
- package/es/utils/props/operationRecords.js +4 -4
- package/es/utils/props/preview.d.ts +2 -2
- package/es/utils/props/preview.js +4 -4
- package/es/utils/props/tpl.d.ts +173 -162
- package/es/utils/props/warehouseAndFactory.d.ts +1 -1
- package/es/utils/rcProRequest.d.ts +3 -3
- package/es/utils/rcProRequest.js +3 -3
- package/es/variables.scss +3 -3
- package/lib/components/z-Ellipsis/ellipsis.d.ts +4 -4
- package/lib/components/z-Ellipsis/ellipsis.js +3 -4
- package/lib/components/z-Ellipsis/index.d.ts +3 -3
- package/lib/components/z-Ellipsis/index.js +1 -2
- package/lib/components/z-agg-block/index.d.ts +3 -3
- package/lib/components/z-agg-block/index.js +1 -2
- package/lib/components/z-agg-block/index.less +134 -134
- package/lib/components/z-agg-block/z-agg-block.d.ts +27 -27
- package/lib/components/z-agg-block/z-agg-block.js +2 -3
- package/lib/components/z-auth/auth.d.ts +9 -9
- package/lib/components/z-auth/auth.js +1 -2
- package/lib/components/z-auth/index.d.ts +3 -3
- package/lib/components/z-auth/index.js +1 -2
- package/lib/components/z-box/box.d.ts +20 -20
- package/lib/components/z-box/box.js +1 -2
- package/lib/components/z-box/index.d.ts +3 -3
- package/lib/components/z-box/index.js +1 -2
- package/lib/components/z-box/index.less +4 -4
- package/lib/components/z-button/index.d.ts +3 -3
- package/lib/components/z-button/index.js +1 -2
- package/lib/components/z-button/z-button.d.ts +4 -4
- package/lib/components/z-button/z-button.js +4 -4
- package/lib/components/z-config-provider/configProvider.d.ts +4 -4
- package/lib/components/z-config-provider/configProvider.js +47 -7
- package/lib/components/z-config-provider/index.d.ts +3 -3
- package/lib/components/z-config-provider/index.js +1 -2
- package/lib/components/z-data-table/data-table.d.ts +9 -0
- package/lib/components/z-data-table/data-table.js +27 -0
- package/lib/components/z-data-table/index.d.ts +3 -0
- package/lib/components/z-data-table/index.js +7 -0
- package/lib/components/z-div/div.d.ts +6 -6
- package/lib/components/z-div/div.js +1 -2
- package/lib/components/z-div/index.d.ts +2 -2
- package/lib/components/z-div/index.js +1 -2
- package/lib/components/z-editTable/editTable.d.ts +11 -11
- package/lib/components/z-editTable/editTable.js +7 -9
- package/lib/components/z-editTable/index.d.ts +2 -2
- package/lib/components/z-editTable/index.js +1 -2
- package/lib/components/z-form/index.d.ts +3 -3
- package/lib/components/z-form/index.js +1 -2
- package/lib/components/z-form/z-form.d.ts +10 -10
- package/lib/components/z-form/z-form.js +5 -6
- package/lib/components/z-list/index.d.ts +3 -3
- package/lib/components/z-list/index.js +1 -2
- package/lib/components/z-list/list.d.ts +17 -17
- package/lib/components/z-list/list.js +7 -8
- package/lib/components/z-operation-records/index.d.ts +3 -3
- package/lib/components/z-operation-records/index.js +1 -2
- package/lib/components/z-operation-records/operationRecords.d.ts +4 -4
- package/lib/components/z-operation-records/operationRecords.js +3 -4
- package/lib/components/z-pointer-block/index.d.ts +3 -3
- package/lib/components/z-pointer-block/index.js +1 -2
- package/lib/components/z-pointer-block/index.less +15 -15
- package/lib/components/z-pointer-block/z-pointer-block.d.ts +16 -16
- package/lib/components/z-pointer-block/z-pointer-block.js +1 -2
- package/lib/components/z-preview/index.d.ts +3 -3
- package/lib/components/z-preview/index.js +1 -2
- package/lib/components/z-preview/preview.d.ts +4 -4
- package/lib/components/z-preview/preview.js +3 -4
- package/lib/components/z-pro-provider/index.d.ts +3 -3
- package/lib/components/z-pro-provider/index.js +1 -2
- package/lib/components/z-pro-provider/z-pro-provider.d.ts +6 -6
- package/lib/components/z-pro-provider/z-pro-provider.js +3 -4
- package/lib/components/z-ranking-list/index.d.ts +2 -2
- package/lib/components/z-ranking-list/index.js +1 -2
- package/lib/components/z-ranking-list/index.less +49 -49
- package/lib/components/z-ranking-list/z-ranking-list.d.ts +14 -14
- package/lib/components/z-ranking-list/z-ranking-list.js +5 -7
- package/lib/components/z-simple-bar/index.d.ts +3 -3
- package/lib/components/z-simple-bar/index.js +1 -2
- package/lib/components/z-simple-bar/index.less +9 -9
- package/lib/components/z-simple-bar/z-simple-bar.d.ts +27 -27
- package/lib/components/z-simple-bar/z-simple-bar.js +1 -2
- package/lib/components/z-singleFactory/index.d.ts +2 -2
- package/lib/components/z-singleFactory/index.js +1 -2
- package/lib/components/z-singleFactory/zSingerFactory.d.ts +2 -3
- package/lib/components/z-singleFactory/zSingerFactory.js +3 -4
- package/lib/components/z-slick/index.d.ts +3 -0
- package/lib/components/z-slick/index.js +7 -0
- package/lib/components/z-slick/slick.d.ts +47 -0
- package/lib/components/z-slick/slick.js +39 -0
- package/lib/components/z-statistic/index.d.ts +3 -3
- package/lib/components/z-statistic/index.js +1 -2
- package/lib/components/z-statistic/index.less +22 -22
- package/lib/components/z-statistic/z-statistic.d.ts +13 -13
- package/lib/components/z-statistic/z-statistic.js +1 -2
- package/lib/components/z-table/index.d.ts +3 -3
- package/lib/components/z-table/index.js +1 -2
- package/lib/components/z-table/table.d.ts +8 -8
- package/lib/components/z-table/table.js +5 -6
- package/lib/components/z-templates-data-common/components/chart-renderer/index.d.ts +12 -14
- package/lib/components/z-templates-data-common/components/chart-renderer/index.js +36 -17
- package/lib/components/z-templates-data-common/data-common.d.ts +20 -105
- package/lib/components/z-templates-data-common/data-common.helper.d.ts +2 -61
- package/lib/components/z-templates-data-common/data-common.helper.js +3 -351
- package/lib/components/z-templates-data-common/data-common.js +85 -66
- package/lib/components/z-templates-data-common/index.d.ts +3 -3
- package/lib/components/z-templates-data-common/index.js +1 -2
- package/lib/components/z-tpl/index.d.ts +3 -3
- package/lib/components/z-tpl/index.js +1 -2
- package/lib/components/z-tpl/tpl.d.ts +23 -23
- package/lib/components/z-tpl/tpl.js +7 -8
- package/lib/components/z-warehouse/index.d.ts +2 -2
- package/lib/components/z-warehouse/index.js +1 -2
- package/lib/components/z-warehouse/zWarehouse.d.ts +2 -3
- package/lib/components/z-warehouse/zWarehouse.js +3 -4
- package/lib/components/z-watermark/index.d.ts +3 -0
- package/lib/components/z-watermark/index.js +7 -0
- package/lib/components/z-watermark/zWatermark.d.ts +3 -0
- package/lib/components/z-watermark/zWatermark.js +8 -0
- package/lib/index.d.ts +44 -38
- package/lib/index.js +8 -2
- package/lib/index.scss +1 -1
- package/lib/style.js +1 -3
- package/lib/utils/hoc.d.ts +6 -6
- package/lib/utils/hoc.js +3 -3
- package/lib/utils/index.d.ts +13 -13
- package/lib/utils/index.js +7 -4
- package/lib/utils/props/button.d.ts +13 -13
- package/lib/utils/props/button.js +2 -3
- package/lib/utils/props/common.d.ts +7 -1
- package/lib/utils/props/common.js +19 -3
- package/lib/utils/props/editTable.d.ts +3 -3
- package/lib/utils/props/editTable.js +23 -17
- package/lib/utils/props/form.d.ts +36 -0
- package/lib/utils/props/form.js +35 -17
- package/lib/utils/props/listTpl.d.ts +29 -29
- package/lib/utils/props/listTpl.js +2 -3
- package/lib/utils/props/microModal.d.ts +7 -7
- package/lib/utils/props/microModal.js +1 -3
- package/lib/utils/props/microSwitch.d.ts +1 -1
- package/lib/utils/props/microSwitch.js +5 -4
- package/lib/utils/props/modalSelect.d.ts +6 -6
- package/lib/utils/props/modalSelect.js +2 -4
- package/lib/utils/props/operationRecords.d.ts +2 -2
- package/lib/utils/props/operationRecords.js +6 -7
- package/lib/utils/props/preview.d.ts +2 -2
- package/lib/utils/props/preview.js +6 -7
- package/lib/utils/props/tpl.d.ts +173 -162
- package/lib/utils/props/tpl.js +3 -5
- package/lib/utils/props/warehouseAndFactory.d.ts +1 -1
- package/lib/utils/props/warehouseAndFactory.js +2 -3
- package/lib/utils/rcProRequest.d.ts +3 -3
- package/lib/utils/rcProRequest.js +3 -4
- package/lib/variables.scss +3 -3
- package/package.json +5 -5
- package/es/components/z-templates-data-common/components/custom-renderer/index.d.ts +0 -13
- package/es/components/z-templates-data-common/components/custom-renderer/index.js +0 -172
- package/es/components/z-templates-data-common/components/dim-target/dim-target.helper.d.ts +0 -39
- package/es/components/z-templates-data-common/components/dim-target/dim-target.helper.js +0 -1
- package/es/components/z-templates-data-common/components/dim-target/index.d.ts +0 -16
- package/es/components/z-templates-data-common/components/dim-target/index.js +0 -430
- package/es/components/z-templates-data-common/components/dim-target/index.less +0 -49
- package/es/components/z-templates-data-common/components/dim-target/useUpdateEffect.d.ts +0 -8
- package/es/components/z-templates-data-common/components/dim-target/useUpdateEffect.js +0 -26
- package/es/components/z-templates-data-common/components/link-renderer/index.d.ts +0 -16
- package/es/components/z-templates-data-common/components/link-renderer/index.js +0 -320
- package/es/components/z-templates-data-common/components/link-renderer/index.less +0 -33
- package/es/components/z-templates-data-common/components/table-renderer/index.d.ts +0 -6
- package/es/components/z-templates-data-common/components/table-renderer/index.js +0 -481
- package/es/components/z-templates-data-common/components/table-renderer/table-renderer.helper.d.ts +0 -64
- package/es/components/z-templates-data-common/components/table-renderer/table-renderer.helper.js +0 -220
- package/lib/components/z-templates-data-common/components/custom-renderer/index.d.ts +0 -13
- package/lib/components/z-templates-data-common/components/custom-renderer/index.js +0 -178
- package/lib/components/z-templates-data-common/components/dim-target/dim-target.helper.d.ts +0 -39
- package/lib/components/z-templates-data-common/components/dim-target/dim-target.helper.js +0 -3
- package/lib/components/z-templates-data-common/components/dim-target/index.d.ts +0 -16
- package/lib/components/z-templates-data-common/components/dim-target/index.js +0 -438
- package/lib/components/z-templates-data-common/components/dim-target/index.less +0 -49
- package/lib/components/z-templates-data-common/components/dim-target/useUpdateEffect.d.ts +0 -8
- package/lib/components/z-templates-data-common/components/dim-target/useUpdateEffect.js +0 -30
- package/lib/components/z-templates-data-common/components/link-renderer/index.d.ts +0 -16
- package/lib/components/z-templates-data-common/components/link-renderer/index.js +0 -326
- package/lib/components/z-templates-data-common/components/link-renderer/index.less +0 -33
- package/lib/components/z-templates-data-common/components/table-renderer/index.d.ts +0 -6
- package/lib/components/z-templates-data-common/components/table-renderer/index.js +0 -487
- package/lib/components/z-templates-data-common/components/table-renderer/table-renderer.helper.d.ts +0 -64
- package/lib/components/z-templates-data-common/components/table-renderer/table-renderer.helper.js +0 -229
|
@@ -1,336 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
|
-
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
7
|
-
import rcProRequest from "../../utils/rcProRequest";
|
|
8
|
-
|
|
9
|
-
/** table config */
|
|
10
|
-
export var tableConfigDefault = {
|
|
11
|
-
manual: true,
|
|
12
|
-
toolBars: false,
|
|
13
|
-
hideDefRowSelection: true,
|
|
14
|
-
columns: []
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
/** 字符串拼接分割符 */
|
|
18
|
-
export var separator = '***';
|
|
19
|
-
|
|
20
|
-
/** 时间单位 */
|
|
21
|
-
export var timeUnit = 60 * 1000;
|
|
22
|
-
|
|
23
|
-
/** 介于 前闭后开 */
|
|
24
|
-
export var BETWEEN = '<=,<';
|
|
25
|
-
/** 数据类型 */
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* 计算宽
|
|
29
|
-
* @param length
|
|
30
|
-
* @param width
|
|
31
|
-
*/
|
|
32
|
-
export var computeWidth = function computeWidth(length, width) {
|
|
33
|
-
if (width === void 0) {
|
|
34
|
-
width = 40;
|
|
35
|
-
}
|
|
36
|
-
return length * width;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* 获取最大宽
|
|
41
|
-
* @param strArr
|
|
42
|
-
*/
|
|
43
|
-
export var getMaxWidth = function getMaxWidth(strArr) {
|
|
44
|
-
if (!(strArr !== null && strArr !== void 0 && strArr.length)) return 0;
|
|
45
|
-
var arr = strArr.map(function (s) {
|
|
46
|
-
var _s$toString;
|
|
47
|
-
return s === null || s === void 0 ? void 0 : (_s$toString = s.toString()) === null || _s$toString === void 0 ? void 0 : _s$toString.length;
|
|
48
|
-
});
|
|
49
|
-
var length = Math.max.apply(null, arr);
|
|
50
|
-
return computeWidth(length, 14);
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* 处理 QueryParams 去除空字符串
|
|
55
|
-
*/
|
|
56
|
-
export var handleQueryParams = function handleQueryParams(query) {
|
|
57
|
-
var queryParams = _extends({}, query);
|
|
58
|
-
Object.keys(query).forEach(function (k) {
|
|
59
|
-
if (query[k] === '') {
|
|
60
|
-
queryParams[k] = undefined;
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
return queryParams;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* 处理数据千分位
|
|
68
|
-
*/
|
|
69
|
-
export var handleThousand = function handleThousand(value) {
|
|
70
|
-
if (!Number.isNaN(value) && value) {
|
|
71
|
-
if (String(value).indexOf('.') !== -1) {
|
|
72
|
-
var _String$split = String(value).split('.'),
|
|
73
|
-
start = _String$split[0],
|
|
74
|
-
end = _String$split[1];
|
|
75
|
-
var begin = start.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,');
|
|
76
|
-
return [begin, end].join('.');
|
|
77
|
-
} else {
|
|
78
|
-
return value.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,');
|
|
79
|
-
}
|
|
80
|
-
} else {
|
|
81
|
-
return value;
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* 保留几位小数点
|
|
87
|
-
*/
|
|
88
|
-
export var handleDecimal = function handleDecimal(value, decimal) {
|
|
89
|
-
if (decimal === void 0) {
|
|
90
|
-
decimal = 2;
|
|
91
|
-
}
|
|
92
|
-
if (value === null || value === undefined) return;
|
|
93
|
-
return Number(value).toFixed(decimal);
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* 百分比转化
|
|
98
|
-
*/
|
|
99
|
-
export var handlePercent = function handlePercent(value, decimal, unit) {
|
|
100
|
-
if (decimal === void 0) {
|
|
101
|
-
decimal = 2;
|
|
102
|
-
}
|
|
103
|
-
if (unit === void 0) {
|
|
104
|
-
unit = 100;
|
|
105
|
-
}
|
|
106
|
-
if (value === null || value === undefined) return;
|
|
107
|
-
return (Number(value) * unit).toFixed(decimal) + "%";
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* link外链处理
|
|
112
|
-
*/
|
|
113
|
-
export var handleLink = function handleLink(value, onLink) {
|
|
114
|
-
if (value === null || value === undefined) return;
|
|
115
|
-
return /*#__PURE__*/React.createElement("a", {
|
|
116
|
-
href: "javascript:void(0);",
|
|
117
|
-
onClick: onLink
|
|
118
|
-
}, value);
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* 条件格式设置
|
|
123
|
-
* @param value 处理前的值
|
|
124
|
-
* @param handledValue 被处理后的值 可能会是link标签
|
|
125
|
-
*/
|
|
126
|
-
export var handleCondition = function handleCondition(value, handledValue, conditions) {
|
|
127
|
-
if (value === null || value === undefined) return;
|
|
128
|
-
var val = handledValue;
|
|
129
|
-
for (var _iterator = _createForOfIteratorHelperLoose(conditions), _step; !(_step = _iterator()).done;) {
|
|
130
|
-
var cur = _step.value;
|
|
131
|
-
var condition = cur === null || cur === void 0 ? void 0 : cur.condition;
|
|
132
|
-
if ((condition === null || condition === void 0 ? void 0 : condition.type) === BETWEEN) {
|
|
133
|
-
var _condition$type;
|
|
134
|
-
var _condition$type$split = condition === null || condition === void 0 ? void 0 : (_condition$type = condition.type) === null || _condition$type === void 0 ? void 0 : _condition$type.split(','),
|
|
135
|
-
start = _condition$type$split[0],
|
|
136
|
-
end = _condition$type$split[1];
|
|
137
|
-
if (eval("" + (condition === null || condition === void 0 ? void 0 : condition.start) + start + value) && eval("" + value + end + (condition === null || condition === void 0 ? void 0 : condition.end))) {
|
|
138
|
-
var style = {
|
|
139
|
-
color: cur === null || cur === void 0 ? void 0 : cur.fontColor,
|
|
140
|
-
background: cur === null || cur === void 0 ? void 0 : cur.backgroundColor
|
|
141
|
-
};
|
|
142
|
-
val = /*#__PURE__*/React.createElement("div", {
|
|
143
|
-
style: style
|
|
144
|
-
}, handledValue);
|
|
145
|
-
}
|
|
146
|
-
} else if (eval("" + value + (condition === null || condition === void 0 ? void 0 : condition.type) + (condition === null || condition === void 0 ? void 0 : condition.value))) {
|
|
147
|
-
var _style = {
|
|
148
|
-
color: cur === null || cur === void 0 ? void 0 : cur.fontColor,
|
|
149
|
-
background: cur === null || cur === void 0 ? void 0 : cur.backgroundColor
|
|
150
|
-
};
|
|
151
|
-
val = /*#__PURE__*/React.createElement("div", {
|
|
152
|
-
style: _style
|
|
153
|
-
}, handledValue);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
return val;
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
// mock
|
|
160
|
-
var token = 'scm:tenant:token:2:104:177217352666D386AA01E5AF6293727D';
|
|
161
|
-
|
|
162
|
-
/** 获取维度指标 */
|
|
163
|
-
export var getDimTarget = /*#__PURE__*/function () {
|
|
164
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(rcProContext, params) {
|
|
165
|
-
var _data_env_mapping$env;
|
|
166
|
-
var _ref2, materialsRequest, env, data_env_mapping, __env, res, _res;
|
|
167
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
168
|
-
while (1) switch (_context.prev = _context.next) {
|
|
169
|
-
case 0:
|
|
170
|
-
_ref2 = rcProContext || {}, materialsRequest = _ref2.materialsRequest, env = _ref2.env, data_env_mapping = _ref2.data_env_mapping;
|
|
171
|
-
__env = (_data_env_mapping$env = data_env_mapping === null || data_env_mapping === void 0 ? void 0 : data_env_mapping[env]) !== null && _data_env_mapping$env !== void 0 ? _data_env_mapping$env : data_env_mapping === null || data_env_mapping === void 0 ? void 0 : data_env_mapping['__other']; // 供应链里由子应用透传
|
|
172
|
-
if (!materialsRequest) {
|
|
173
|
-
_context.next = 7;
|
|
174
|
-
break;
|
|
175
|
-
}
|
|
176
|
-
_context.next = 5;
|
|
177
|
-
return rcProRequest(rcProContext, "/data/forward/v1/bigdata/report/view/query/" + params.dataSetName, {
|
|
178
|
-
method: 'POST',
|
|
179
|
-
data: {
|
|
180
|
-
bigDataBody: _extends({}, __env ? {
|
|
181
|
-
env: __env
|
|
182
|
-
} : {}, params)
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
case 5:
|
|
186
|
-
res = _context.sent;
|
|
187
|
-
return _context.abrupt("return", res);
|
|
188
|
-
case 7:
|
|
189
|
-
_context.prev = 7;
|
|
190
|
-
_context.next = 10;
|
|
191
|
-
return fetch("http://scm.gateway.dev.ztyc.com/data/forward/v1/bigdata/report/view/query/" + params.dataSetName, {
|
|
192
|
-
method: 'POST',
|
|
193
|
-
body: JSON.stringify({
|
|
194
|
-
bigDataBody: _extends({
|
|
195
|
-
env: 'dev'
|
|
196
|
-
}, params)
|
|
197
|
-
}),
|
|
198
|
-
headers: {
|
|
199
|
-
'Content-Type': 'application/json',
|
|
200
|
-
token: token
|
|
201
|
-
}
|
|
202
|
-
});
|
|
203
|
-
case 10:
|
|
204
|
-
_res = _context.sent;
|
|
205
|
-
_context.next = 13;
|
|
206
|
-
return _res.json();
|
|
207
|
-
case 13:
|
|
208
|
-
return _context.abrupt("return", _context.sent);
|
|
209
|
-
case 16:
|
|
210
|
-
_context.prev = 16;
|
|
211
|
-
_context.t0 = _context["catch"](7);
|
|
212
|
-
return _context.abrupt("return", {});
|
|
213
|
-
case 19:
|
|
214
|
-
case "end":
|
|
215
|
-
return _context.stop();
|
|
216
|
-
}
|
|
217
|
-
}, _callee, null, [[7, 16]]);
|
|
218
|
-
}));
|
|
219
|
-
return function getDimTarget(_x, _x2) {
|
|
220
|
-
return _ref.apply(this, arguments);
|
|
221
|
-
};
|
|
222
|
-
}();
|
|
223
|
-
|
|
224
|
-
/** 获取报表数据 */
|
|
225
|
-
export var getReportData = /*#__PURE__*/function () {
|
|
226
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(rcProContext, params) {
|
|
227
|
-
var _data_env_mapping$env2;
|
|
228
|
-
var _ref4, materialsRequest, env, data_env_mapping, __env, res, _res2;
|
|
229
|
-
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
230
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
231
|
-
case 0:
|
|
232
|
-
_ref4 = rcProContext || {}, materialsRequest = _ref4.materialsRequest, env = _ref4.env, data_env_mapping = _ref4.data_env_mapping;
|
|
233
|
-
__env = (_data_env_mapping$env2 = data_env_mapping === null || data_env_mapping === void 0 ? void 0 : data_env_mapping[env]) !== null && _data_env_mapping$env2 !== void 0 ? _data_env_mapping$env2 : data_env_mapping === null || data_env_mapping === void 0 ? void 0 : data_env_mapping['__other']; // 供应链里由子应用透传
|
|
234
|
-
if (!materialsRequest) {
|
|
235
|
-
_context2.next = 7;
|
|
236
|
-
break;
|
|
237
|
-
}
|
|
238
|
-
_context2.next = 5;
|
|
239
|
-
return rcProRequest(rcProContext, "/data/forward/v1/bigdata/report/" + params.dataSetName, {
|
|
240
|
-
method: 'POST',
|
|
241
|
-
data: {
|
|
242
|
-
bigDataBody: _extends({}, __env ? {
|
|
243
|
-
env: __env
|
|
244
|
-
} : {}, params)
|
|
245
|
-
}
|
|
246
|
-
});
|
|
247
|
-
case 5:
|
|
248
|
-
res = _context2.sent;
|
|
249
|
-
return _context2.abrupt("return", res);
|
|
250
|
-
case 7:
|
|
251
|
-
_context2.prev = 7;
|
|
252
|
-
_context2.next = 10;
|
|
253
|
-
return fetch("http://scm.gateway.dev.ztyc.com/data/forward/v1/bigdata/report/" + params.dataSetName, {
|
|
254
|
-
method: 'POST',
|
|
255
|
-
body: JSON.stringify({
|
|
256
|
-
bigDataBody: _extends({
|
|
257
|
-
env: 'dev'
|
|
258
|
-
}, params)
|
|
259
|
-
}),
|
|
260
|
-
headers: {
|
|
261
|
-
'Content-Type': 'application/json',
|
|
262
|
-
token: token
|
|
263
|
-
}
|
|
264
|
-
});
|
|
265
|
-
case 10:
|
|
266
|
-
_res2 = _context2.sent;
|
|
267
|
-
_context2.next = 13;
|
|
268
|
-
return _res2.json();
|
|
269
|
-
case 13:
|
|
270
|
-
return _context2.abrupt("return", _context2.sent);
|
|
271
|
-
case 16:
|
|
272
|
-
_context2.prev = 16;
|
|
273
|
-
_context2.t0 = _context2["catch"](7);
|
|
274
|
-
return _context2.abrupt("return", {});
|
|
275
|
-
case 19:
|
|
276
|
-
case "end":
|
|
277
|
-
return _context2.stop();
|
|
278
|
-
}
|
|
279
|
-
}, _callee2, null, [[7, 16]]);
|
|
280
|
-
}));
|
|
281
|
-
return function getReportData(_x3, _x4) {
|
|
282
|
-
return _ref3.apply(this, arguments);
|
|
283
|
-
};
|
|
284
|
-
}();
|
|
285
|
-
|
|
286
|
-
/** 记住勾选 */
|
|
287
|
-
export var saveDimTarget = /*#__PURE__*/function () {
|
|
288
|
-
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(rcProContext, params) {
|
|
289
|
-
var _ref6, materialsRequest, res, _res3;
|
|
290
|
-
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
291
|
-
while (1) switch (_context3.prev = _context3.next) {
|
|
292
|
-
case 0:
|
|
293
|
-
_ref6 = rcProContext || {}, materialsRequest = _ref6.materialsRequest; // 供应链里由子应用透传
|
|
294
|
-
if (!materialsRequest) {
|
|
295
|
-
_context3.next = 6;
|
|
296
|
-
break;
|
|
297
|
-
}
|
|
298
|
-
_context3.next = 4;
|
|
299
|
-
return rcProRequest(rcProContext, "/data/forward/v1/bigdata/report/view/save", {
|
|
300
|
-
method: 'POST',
|
|
301
|
-
data: params
|
|
302
|
-
});
|
|
303
|
-
case 4:
|
|
304
|
-
res = _context3.sent;
|
|
305
|
-
return _context3.abrupt("return", res);
|
|
306
|
-
case 6:
|
|
307
|
-
_context3.prev = 6;
|
|
308
|
-
_context3.next = 9;
|
|
309
|
-
return fetch("http://scm.gateway.dev.ztyc.com/data/forward/v1/bigdata/report/view/save", {
|
|
310
|
-
method: 'POST',
|
|
311
|
-
body: JSON.stringify(_extends({}, params)),
|
|
312
|
-
headers: {
|
|
313
|
-
'Content-Type': 'application/json',
|
|
314
|
-
token: token
|
|
315
|
-
}
|
|
316
|
-
});
|
|
317
|
-
case 9:
|
|
318
|
-
_res3 = _context3.sent;
|
|
319
|
-
_context3.next = 12;
|
|
320
|
-
return _res3.json();
|
|
321
|
-
case 12:
|
|
322
|
-
return _context3.abrupt("return", _context3.sent);
|
|
323
|
-
case 15:
|
|
324
|
-
_context3.prev = 15;
|
|
325
|
-
_context3.t0 = _context3["catch"](6);
|
|
326
|
-
return _context3.abrupt("return", {});
|
|
327
|
-
case 18:
|
|
328
|
-
case "end":
|
|
329
|
-
return _context3.stop();
|
|
330
|
-
}
|
|
331
|
-
}, _callee3, null, [[6, 15]]);
|
|
332
|
-
}));
|
|
333
|
-
return function saveDimTarget(_x5, _x6) {
|
|
334
|
-
return _ref5.apply(this, arguments);
|
|
335
|
-
};
|
|
336
|
-
}();
|
|
1
|
+
/** 字符串分割符 */
|
|
2
|
+
export var separator = "***";
|
|
@@ -5,17 +5,13 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
|
5
5
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
6
6
|
import React, { useRef, useImperativeHandle } from 'react';
|
|
7
7
|
import { ProFormRender } from '@ztocwst/rc-pro';
|
|
8
|
-
import ChartRenderer from "./components/chart-renderer";
|
|
9
8
|
import { processFormProps } from "../../utils";
|
|
10
|
-
|
|
11
|
-
/** 指标配置 */
|
|
12
|
-
|
|
13
|
-
/** 表格相关配置 */
|
|
14
|
-
|
|
9
|
+
import ChartRenderer from "./components/chart-renderer";
|
|
15
10
|
var ZTemplatesDataCommon = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
16
11
|
var querySetting = props.querySetting,
|
|
12
|
+
tabsSetting = props.tabsSetting,
|
|
13
|
+
chartSetting = props.chartSetting,
|
|
17
14
|
_unsafe_MixedSetter_chartSetting_select = props._unsafe_MixedSetter_chartSetting_select;
|
|
18
|
-
var chartSetting = props.chartSetting;
|
|
19
15
|
var formRef = useRef();
|
|
20
16
|
var chartRenderRef = useRef();
|
|
21
17
|
// todo 不知道meta里是哪里配置有问题,出现_unsafe_MixedSetter...
|
|
@@ -29,103 +25,125 @@ var ZTemplatesDataCommon = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
29
25
|
var onFinish = function onFinish(values) {
|
|
30
26
|
chartRenderRef.current.queryChart(values);
|
|
31
27
|
};
|
|
32
|
-
var
|
|
33
|
-
var _ref = _asyncToGenerator(
|
|
34
|
-
var
|
|
28
|
+
var onQueryValues = /*#__PURE__*/function () {
|
|
29
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
30
|
+
var _formRef$current$vali, _formRef$current, _formRef$current$vali2;
|
|
35
31
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
36
32
|
while (1) switch (_context.prev = _context.next) {
|
|
37
33
|
case 0:
|
|
38
|
-
_context.
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
return _context.abrupt("return", (_formRef$current$vali = (_formRef$current = formRef.current) === null || _formRef$current === void 0 ? void 0 : (_formRef$current$vali2 = _formRef$current.validateFields) === null || _formRef$current$vali2 === void 0 ? void 0 : _formRef$current$vali2.call(_formRef$current)) !== null && _formRef$current$vali !== void 0 ? _formRef$current$vali : {});
|
|
35
|
+
case 1:
|
|
36
|
+
case "end":
|
|
37
|
+
return _context.stop();
|
|
38
|
+
}
|
|
39
|
+
}, _callee);
|
|
40
|
+
}));
|
|
41
|
+
return function onQueryValues() {
|
|
42
|
+
return _ref.apply(this, arguments);
|
|
43
|
+
};
|
|
44
|
+
}();
|
|
45
|
+
var onQueryFormatValues = /*#__PURE__*/function () {
|
|
46
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
47
|
+
var _formRef$current$vali3, _formRef$current2, _formRef$current2$val;
|
|
48
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
49
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
50
|
+
case 0:
|
|
51
|
+
return _context2.abrupt("return", (_formRef$current$vali3 = (_formRef$current2 = formRef.current) === null || _formRef$current2 === void 0 ? void 0 : (_formRef$current2$val = _formRef$current2.validateFieldsReturnFormatValue) === null || _formRef$current2$val === void 0 ? void 0 : _formRef$current2$val.call(_formRef$current2)) !== null && _formRef$current$vali3 !== void 0 ? _formRef$current$vali3 : {});
|
|
52
|
+
case 1:
|
|
53
|
+
case "end":
|
|
54
|
+
return _context2.stop();
|
|
55
|
+
}
|
|
56
|
+
}, _callee2);
|
|
57
|
+
}));
|
|
58
|
+
return function onQueryFormatValues() {
|
|
59
|
+
return _ref2.apply(this, arguments);
|
|
60
|
+
};
|
|
61
|
+
}();
|
|
62
|
+
var getCurrentKey = function getCurrentKey() {
|
|
63
|
+
var _chartRenderRef$curre, _chartRenderRef$curre2;
|
|
64
|
+
return (_chartRenderRef$curre = chartRenderRef.current) === null || _chartRenderRef$curre === void 0 ? void 0 : (_chartRenderRef$curre2 = _chartRenderRef$curre.getCurrentKey) === null || _chartRenderRef$curre2 === void 0 ? void 0 : _chartRenderRef$curre2.call(_chartRenderRef$curre);
|
|
65
|
+
};
|
|
66
|
+
var onConfirm = /*#__PURE__*/function () {
|
|
67
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
68
|
+
var values;
|
|
69
|
+
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
70
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
71
|
+
case 0:
|
|
72
|
+
_context3.prev = 0;
|
|
73
|
+
_context3.next = 3;
|
|
74
|
+
return onQueryFormatValues();
|
|
41
75
|
case 3:
|
|
42
|
-
|
|
43
|
-
_context.t0 = _context.t1 !== null;
|
|
44
|
-
if (!_context.t0) {
|
|
45
|
-
_context.next = 7;
|
|
46
|
-
break;
|
|
47
|
-
}
|
|
48
|
-
_context.t0 = _yield$formRef$curren !== void 0;
|
|
49
|
-
case 7:
|
|
50
|
-
if (!_context.t0) {
|
|
51
|
-
_context.next = 11;
|
|
52
|
-
break;
|
|
53
|
-
}
|
|
54
|
-
_context.t2 = _yield$formRef$curren;
|
|
55
|
-
_context.next = 12;
|
|
56
|
-
break;
|
|
57
|
-
case 11:
|
|
58
|
-
_context.t2 = {};
|
|
59
|
-
case 12:
|
|
60
|
-
values = _context.t2;
|
|
76
|
+
values = _context3.sent;
|
|
61
77
|
chartRenderRef.current.queryChart(values);
|
|
62
|
-
|
|
78
|
+
_context3.next = 10;
|
|
63
79
|
break;
|
|
64
|
-
case
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
console.error(
|
|
68
|
-
case
|
|
80
|
+
case 7:
|
|
81
|
+
_context3.prev = 7;
|
|
82
|
+
_context3.t0 = _context3["catch"](0);
|
|
83
|
+
console.error(_context3.t0);
|
|
84
|
+
case 10:
|
|
69
85
|
case "end":
|
|
70
|
-
return
|
|
86
|
+
return _context3.stop();
|
|
71
87
|
}
|
|
72
|
-
},
|
|
88
|
+
}, _callee3, null, [[0, 7]]);
|
|
73
89
|
}));
|
|
74
90
|
return function onConfirm() {
|
|
75
|
-
return
|
|
91
|
+
return _ref3.apply(this, arguments);
|
|
76
92
|
};
|
|
77
93
|
}();
|
|
78
94
|
var onLink = function onLink(values) {
|
|
79
|
-
var _chartRenderRef$
|
|
80
|
-
return (_chartRenderRef$
|
|
95
|
+
var _chartRenderRef$curre3, _chartRenderRef$curre4;
|
|
96
|
+
return (_chartRenderRef$curre3 = chartRenderRef.current) === null || _chartRenderRef$curre3 === void 0 ? void 0 : (_chartRenderRef$curre4 = _chartRenderRef$curre3.onLink) === null || _chartRenderRef$curre4 === void 0 ? void 0 : _chartRenderRef$curre4.call(_chartRenderRef$curre3, values);
|
|
81
97
|
};
|
|
82
98
|
useImperativeHandle(ref, function () {
|
|
83
99
|
return {
|
|
84
|
-
|
|
100
|
+
formRef: formRef,
|
|
101
|
+
onLink: onLink,
|
|
102
|
+
onQueryValues: onQueryValues,
|
|
103
|
+
onQueryFormatValues: onQueryFormatValues,
|
|
104
|
+
getCurrentKey: getCurrentKey
|
|
85
105
|
};
|
|
86
106
|
});
|
|
87
107
|
var formProps = processFormProps(querySetting);
|
|
88
|
-
console.log("formProps", formProps);
|
|
89
108
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(ProFormRender, _extends({}, formProps, {
|
|
90
109
|
formRef: formRef,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(formatData) {
|
|
110
|
+
onFinish: (/*#__PURE__*/function () {
|
|
111
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(formatData) {
|
|
94
112
|
var _formProps$onFinish;
|
|
95
|
-
return _regeneratorRuntime.wrap(function
|
|
96
|
-
while (1) switch (
|
|
113
|
+
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
114
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
97
115
|
case 0:
|
|
98
|
-
|
|
99
|
-
|
|
116
|
+
_context4.prev = 0;
|
|
117
|
+
_context4.next = 3;
|
|
100
118
|
return (_formProps$onFinish = formProps.onFinish) === null || _formProps$onFinish === void 0 ? void 0 : _formProps$onFinish.call(formProps, formatData);
|
|
101
119
|
case 3:
|
|
102
|
-
|
|
120
|
+
_context4.next = 5;
|
|
103
121
|
return onFinish === null || onFinish === void 0 ? void 0 : onFinish(formatData);
|
|
104
122
|
case 5:
|
|
105
|
-
|
|
123
|
+
_context4.next = 10;
|
|
106
124
|
break;
|
|
107
125
|
case 7:
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
_message.error(
|
|
126
|
+
_context4.prev = 7;
|
|
127
|
+
_context4.t0 = _context4["catch"](0);
|
|
128
|
+
_message.error(_context4.t0);
|
|
111
129
|
case 10:
|
|
112
130
|
case "end":
|
|
113
|
-
return
|
|
131
|
+
return _context4.stop();
|
|
114
132
|
}
|
|
115
|
-
},
|
|
133
|
+
}, _callee4, null, [[0, 7]]);
|
|
116
134
|
}));
|
|
117
135
|
return function (_x) {
|
|
118
|
-
return
|
|
136
|
+
return _ref4.apply(this, arguments);
|
|
119
137
|
};
|
|
120
|
-
}()
|
|
138
|
+
}())
|
|
121
139
|
})), /*#__PURE__*/React.createElement(ChartRenderer, {
|
|
122
140
|
chartSetting: chartSetting,
|
|
141
|
+
tabsSetting: tabsSetting,
|
|
123
142
|
chartRenderRef: chartRenderRef,
|
|
124
143
|
onConfirm: onConfirm
|
|
125
144
|
}));
|
|
126
145
|
});
|
|
127
146
|
var ZTemplatesDataCommonContainer = /*#__PURE__*/function (_React$Component) {
|
|
128
|
-
_inheritsLoose(ZTemplatesDataCommonContainer, _React$Component);
|
|
129
147
|
function ZTemplatesDataCommonContainer(props) {
|
|
130
148
|
var _this;
|
|
131
149
|
_this = _React$Component.call(this, props) || this;
|
|
@@ -133,6 +151,7 @@ var ZTemplatesDataCommonContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
133
151
|
_this.chartRef = /*#__PURE__*/React.createRef();
|
|
134
152
|
return _this;
|
|
135
153
|
}
|
|
154
|
+
_inheritsLoose(ZTemplatesDataCommonContainer, _React$Component);
|
|
136
155
|
var _proto = ZTemplatesDataCommonContainer.prototype;
|
|
137
156
|
_proto.render = function render() {
|
|
138
157
|
return /*#__PURE__*/React.createElement(ZTemplatesDataCommon, _extends({}, this.props, {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ZTemplatesDataCommon from './data-common';
|
|
2
|
-
export type { TypeZTemplatesDataCommonProps } from './data-common';
|
|
3
|
-
export default ZTemplatesDataCommon;
|
|
1
|
+
import ZTemplatesDataCommon from './data-common';
|
|
2
|
+
export type { TypeZTemplatesDataCommonProps } from './data-common';
|
|
3
|
+
export default ZTemplatesDataCommon;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import ZTpl from './tpl';
|
|
2
|
-
export type { RcBasicTpl } from '@ztocwst/rc-pro';
|
|
3
|
-
export default ZTpl;
|
|
1
|
+
import ZTpl from './tpl';
|
|
2
|
+
export type { RcBasicTpl } from '@ztocwst/rc-pro';
|
|
3
|
+
export default ZTpl;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 模板列表
|
|
3
|
-
*/
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import type { RcPageProps } from '@ztocwst/rc-pro';
|
|
6
|
-
export default class ZTplListContainer extends React.Component<RcPageProps, any> {
|
|
7
|
-
pageRef: any;
|
|
8
|
-
listRef: any;
|
|
9
|
-
tableRef: any;
|
|
10
|
-
listFormRef: any;
|
|
11
|
-
listFormCurrentRef: any;
|
|
12
|
-
billFormRef: any;
|
|
13
|
-
billFormCurrentRef: any;
|
|
14
|
-
constructor(props: any);
|
|
15
|
-
getPageRef: () => any;
|
|
16
|
-
getListRef: () => any;
|
|
17
|
-
getTableRef: () => any;
|
|
18
|
-
getListFormRef: () => any;
|
|
19
|
-
getBillFormRef: () => any;
|
|
20
|
-
getListFormCurrentRef: () => any;
|
|
21
|
-
getBillFormCurrentRef: () => any;
|
|
22
|
-
render():
|
|
23
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* 模板列表
|
|
3
|
+
*/
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import type { RcPageProps } from '@ztocwst/rc-pro';
|
|
6
|
+
export default class ZTplListContainer extends React.Component<RcPageProps, any> {
|
|
7
|
+
pageRef: any;
|
|
8
|
+
listRef: any;
|
|
9
|
+
tableRef: any;
|
|
10
|
+
listFormRef: any;
|
|
11
|
+
listFormCurrentRef: any;
|
|
12
|
+
billFormRef: any;
|
|
13
|
+
billFormCurrentRef: any;
|
|
14
|
+
constructor(props: any);
|
|
15
|
+
getPageRef: () => any;
|
|
16
|
+
getListRef: () => any;
|
|
17
|
+
getTableRef: () => any;
|
|
18
|
+
getListFormRef: () => any;
|
|
19
|
+
getBillFormRef: () => any;
|
|
20
|
+
getListFormCurrentRef: () => any;
|
|
21
|
+
getBillFormCurrentRef: () => any;
|
|
22
|
+
render(): JSX.Element;
|
|
23
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
|
|
3
|
-
/**
|
|
4
|
-
* 模板列表
|
|
3
|
+
/**
|
|
4
|
+
* 模板列表
|
|
5
5
|
*/
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { RcBasicTpl } from '@ztocwst/rc-pro';
|
|
@@ -11,7 +11,6 @@ var ZTpl = function ZTpl(props) {
|
|
|
11
11
|
return /*#__PURE__*/React.createElement(RcBasicTpl, props);
|
|
12
12
|
};
|
|
13
13
|
var ZTplListContainer = /*#__PURE__*/function (_React$Component) {
|
|
14
|
-
_inheritsLoose(ZTplListContainer, _React$Component);
|
|
15
14
|
function ZTplListContainer(props) {
|
|
16
15
|
var _this;
|
|
17
16
|
_this = _React$Component.call(this, props) || this;
|
|
@@ -52,6 +51,7 @@ var ZTplListContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
52
51
|
_this.billFormCurrentRef = /*#__PURE__*/React.createRef();
|
|
53
52
|
return _this;
|
|
54
53
|
}
|
|
54
|
+
_inheritsLoose(ZTplListContainer, _React$Component);
|
|
55
55
|
var _proto = ZTplListContainer.prototype;
|
|
56
56
|
_proto.render = function render() {
|
|
57
57
|
var tplProps = processTplProps(this.props, {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import ZWarehouse from './zWarehouse';
|
|
2
|
-
export default ZWarehouse;
|
|
1
|
+
import ZWarehouse from './zWarehouse';
|
|
2
|
+
export default ZWarehouse;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export default ZWarehouse;
|
|
1
|
+
declare const ZWarehouse: (props: any) => JSX.Element;
|
|
2
|
+
export default ZWarehouse;
|