super-page-runtime 2.3.20-sit2 → 2.3.21-tmp1
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/es/components/runtime/utils/api/page-expose-util.js +124 -133
- package/dist/es/components/runtime/utils/events/event-util.js +3 -3
- package/dist/es/components/runtime/utils/events/print-label.js +26 -25
- package/dist/es/components/runtime/utils/events/standard-event.js +568 -584
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +11 -9
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +8 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +17 -17
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +98 -93
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -2
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +11 -9
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -0
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +12 -10
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +8 -8
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +15 -15
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +34 -34
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +35 -34
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -3
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +1 -0
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +1 -0
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +17 -15
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +13 -22
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +1 -0
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +76 -75
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +76 -76
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +6 -0
- package/dist/lib/assets/chart-themes/bar-theme.js +2 -0
- package/dist/lib/assets/chart-themes/gauge-theme.js +2 -0
- package/dist/lib/assets/chart-themes/pie-theme.js +2 -0
- package/dist/lib/assets/chart-themes/radar-theme.js +2 -0
- package/dist/lib/assets/chart-themes/scatter-theme.js +2 -0
- package/dist/lib/assets/file.png.js +2 -0
- package/dist/lib/assets/folder.png.js +2 -0
- package/dist/lib/components/runtime/utils/ai-chat-util.js +13 -0
- package/dist/lib/components/runtime/utils/anchor-util.js +62 -0
- package/dist/lib/components/runtime/utils/api/api-util.js +3 -0
- package/dist/lib/components/runtime/utils/api/page-expose-util.js +169 -0
- package/dist/lib/components/runtime/utils/assemblys-config.js +16 -0
- package/dist/lib/components/runtime/utils/barcode-util.js +10 -0
- package/dist/lib/components/runtime/utils/charts/chart-columnline-util.js +137 -0
- package/dist/lib/components/runtime/utils/charts/chart-gauge-util.js +34 -0
- package/dist/lib/components/runtime/utils/charts/chart-pie-util.js +78 -0
- package/dist/lib/components/runtime/utils/charts/chart-radar-util.js +52 -0
- package/dist/lib/components/runtime/utils/charts/chart-scatter-util.js +43 -0
- package/dist/lib/components/runtime/utils/charts/chart-util.js +244 -0
- package/dist/lib/components/runtime/utils/common-util.js +91 -0
- package/dist/lib/components/runtime/utils/eventBus.js +3 -0
- package/dist/lib/components/runtime/utils/events/event-util.js +345 -0
- package/dist/lib/components/runtime/utils/events/print-label.js +97 -0
- package/dist/lib/components/runtime/utils/events/standard-event.js +1101 -0
- package/dist/lib/components/runtime/utils/events/validator-util.js +296 -0
- package/dist/lib/components/runtime/utils/form/date-shortcuts.js +34 -0
- package/dist/lib/components/runtime/utils/form/scan-util.js +90 -0
- package/dist/lib/components/runtime/utils/global-refs.js +42 -0
- package/dist/lib/components/runtime/utils/i18n-util.js +11 -0
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +4 -0
- package/dist/lib/components/runtime/utils/page-helper-util.js +354 -0
- package/dist/lib/components/runtime/utils/page-init-util.js +244 -0
- package/dist/lib/components/runtime/utils/page-permission-util.js +26 -0
- package/dist/lib/components/runtime/utils/page-store.js +50 -0
- package/dist/lib/components/runtime/utils/store-util.js +11 -0
- package/dist/lib/components/runtime/utils/store.js +3 -0
- package/dist/lib/components/runtime/utils/table-utils.js +68 -0
- package/dist/lib/components/runtime/utils/tree-utils.js +54 -0
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +24 -0
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +17 -0
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +35 -0
- package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +17 -0
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +41 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +11 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +11 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +53 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +48 -0
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +24 -0
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +34 -0
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +24 -0
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +24 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.js +402 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue.js +36 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +13 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +249 -0
- package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue.js +16 -0
- package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +32 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue.js +32 -0
- package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.js +19 -0
- package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +12 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue.js +21 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +13 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +30 -0
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +15 -0
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +21 -0
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +17 -0
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +15 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.js +27 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +79 -0
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +20 -0
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +15 -0
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +12 -0
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +88 -0
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +43 -0
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +59 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +382 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +322 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +81 -0
- package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +124 -0
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/error-render.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +57 -0
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +35 -0
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +57 -0
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +91 -0
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +47 -0
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +20 -0
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +65 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +20 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +70 -0
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +31 -0
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +26 -0
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +13 -0
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +75 -0
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +188 -0
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +130 -0
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +11 -0
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +29 -0
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +38 -0
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +20 -0
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.js +73 -0
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +132 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/page-bottom.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/page-bottom.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +23 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +23 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +34 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +17 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +20 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +5 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +19 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +14 -0
- package/dist/lib/components/runtime/views/home-chart.vue.js +38 -0
- package/dist/lib/components/runtime/views/home-chart.vue2.js +3 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue.js +23 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue3.js +3 -0
- package/dist/lib/components/runtime/views/super-page.vue.js +5 -0
- package/dist/lib/components/runtime/views/super-page.vue2.js +264 -0
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/i18n/langs/cn.js +2 -0
- package/dist/lib/i18n/langs/en.js +2 -0
- package/dist/lib/index.js +6 -0
- package/dist/lib/style.css +996 -0
- package/dist/umd/favicon.ico +0 -0
- package/dist/umd/index.full.min.js +7429 -0
- package/dist/umd/style.css +996 -0
- package/package.json +2 -2
- package/dist/es/components/runtime/utils/events/data-backfill-util.d.ts +0 -27
- package/dist/es/components/runtime/utils/events/data-backfill-util.js +0 -39
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const e = require("../page-helper-util.js"), t = require("../global-refs.js"), o = require("../eventBus.js"), n = require("agilebuilder-ui/src/utils/request"), a = require("../events/standard-event.js"), i = require("../events/validator-util.js"), r = require("../common-util.js"), s = require("agilebuilder-ui/src/utils/common-util"), l = require("../page-init-util.js"), u = require("../events/event-util.js"), c = require("../table-utils.js"), d = require("../anchor-util.js"), m = { showElement: function(e2, o2, n2) {
|
|
4
|
+
n2 ? b(e2, "showElement", o2) : o2.forEach((o3) => {
|
|
5
|
+
const n3 = t.getComponentRefByCode(e2, o3);
|
|
6
|
+
n3 ? n3.show() : console.error(`未找到code为${o3}的组件`);
|
|
7
|
+
});
|
|
8
|
+
}, hideElement: function(e2, o2, n2) {
|
|
9
|
+
n2 ? b(e2, "hideElement", o2) : o2.forEach((o3) => {
|
|
10
|
+
const n3 = t.getComponentRefByCode(e2, o3);
|
|
11
|
+
n3 ? n3.hide() : console.error(`未找到code为${o3}的组件`);
|
|
12
|
+
});
|
|
13
|
+
}, enableElement: function(e2, o2, n2) {
|
|
14
|
+
n2 ? b(e2, "enableElement", o2) : o2.forEach((o3) => {
|
|
15
|
+
const n3 = t.getComponentRefByCode(e2, o3);
|
|
16
|
+
if (n3) {
|
|
17
|
+
const e3 = n3.getConfigure();
|
|
18
|
+
e3 && e3.runtime.props && (e3.runtime.props.state = "enabled");
|
|
19
|
+
} else console.error(`未找到code为${o3}的组件`);
|
|
20
|
+
});
|
|
21
|
+
}, disableElement: function(e2, o2, n2) {
|
|
22
|
+
n2 ? b(e2, "disableElement", o2) : o2.forEach((o3) => {
|
|
23
|
+
const n3 = t.getComponentRefByCode(e2, o3);
|
|
24
|
+
if (n3) {
|
|
25
|
+
const e3 = n3.getConfigure();
|
|
26
|
+
e3 && e3.runtime.props && (e3.runtime.props.state = "disabled");
|
|
27
|
+
} else console.error(`未找到code为${o3}的组件`);
|
|
28
|
+
});
|
|
29
|
+
}, setEntityDataValue: function(t2, o2) {
|
|
30
|
+
Object.keys(o2).forEach((n2) => {
|
|
31
|
+
e.setValueForVariableName(t2.entity, n2.startsWith("${") ? n2 : "${data." + n2 + "}", o2[n2]);
|
|
32
|
+
});
|
|
33
|
+
}, setEntityPageValue: function(t2, o2) {
|
|
34
|
+
Object.keys(o2).forEach((n2) => {
|
|
35
|
+
e.setValueForVariableName(t2.entity, n2.startsWith("${") ? n2 : "${page." + n2 + "}", o2[n2]);
|
|
36
|
+
});
|
|
37
|
+
}, setEntityValueByType: function(t2, o2, n2) {
|
|
38
|
+
Object.keys(n2).forEach((a2) => {
|
|
39
|
+
e.setValueForVariableName(t2.entity, a2.startsWith("${") ? a2 : "${" + o2 + "." + a2 + "}", n2[a2]);
|
|
40
|
+
});
|
|
41
|
+
}, dynamicControlFormEdit: function(e2, t2, o2) {
|
|
42
|
+
o2 ? b(e2, "dynamicControlFormEdit", t2) : i.updateFormItemEditState(e2, t2);
|
|
43
|
+
}, disabledAllFields(e2) {
|
|
44
|
+
i.disabledAllFields(e2);
|
|
45
|
+
}, dynamicControlTableEdit(e2, t2, o2) {
|
|
46
|
+
i.dynamicControlTableEdit(e2, t2, o2);
|
|
47
|
+
}, executeServiceFlow: function(e2, t2, o2) {
|
|
48
|
+
const i2 = e2.code;
|
|
49
|
+
o2 || (o2 = { entity: e2.entity.data, serviceVariables: {}, requestParams: a.getAdditionalParamMap(e2), taskParamMap: e2.entity.task, dynamicDimensionValue: [], dynamicSortValue: "" }), o2.entity || (o2.entity = e2.entity.data), o2.requestParams || (o2.requestParams = a.getAdditionalParamMap(e2)), o2.taskParamMap || (o2.taskParamMap = e2.entity.task);
|
|
50
|
+
const s2 = e2.backendUrl, l2 = r.getBaseUrl(s2, e2.isTest);
|
|
51
|
+
return n.post(`${l2}/dsc/service-flow/execute/${i2}/${t2}`, o2);
|
|
52
|
+
}, openPage: function(e2, t2) {
|
|
53
|
+
o.$emit(e2.code + "_open-dialog", { pageContext: e2, eventParams: t2.eventParams, configureObj: { props: { linkPage: t2 } } });
|
|
54
|
+
}, refreshPage: function(e2, t2) {
|
|
55
|
+
a.refreshPage(e2, t2);
|
|
56
|
+
}, refreshSubTableHandle: function(e2, n2) {
|
|
57
|
+
let a2;
|
|
58
|
+
const i2 = t.getComponentRefByCode(e2, n2);
|
|
59
|
+
if (i2) {
|
|
60
|
+
const e3 = i2.getConfigure();
|
|
61
|
+
e3 && e3.uuid && e3.name && "table" === e3.name && (a2 = e3.uuid);
|
|
62
|
+
}
|
|
63
|
+
a2 ? o.$emit("_refreshSubTableHandle_" + a2) : console.error("tableUUid is undefined");
|
|
64
|
+
}, refreshChildData(e2, n2, a2) {
|
|
65
|
+
let i2;
|
|
66
|
+
const r2 = t.getComponentRefByCode(e2, n2);
|
|
67
|
+
if (r2) {
|
|
68
|
+
const e3 = r2.getConfigure();
|
|
69
|
+
e3 && e3.uuid && e3.name && "table" === e3.name && (i2 = e3.uuid);
|
|
70
|
+
}
|
|
71
|
+
i2 ? o.$emit("_refreshChildData_" + i2, a2) : console.error("tableUUid is undefined");
|
|
72
|
+
}, getServerConfigValue: (e2) => window.$vueApp.config.globalProperties[e2], getBackendUrl: (e2) => r.getBaseUrl(e2.backendUrl, false), getPlateBackendUrl: () => window.$vueApp.config.globalProperties.baseAPI, getEntity: (e2) => e2.entity.data, getEntityValue: (e2, t2) => e2.entity.data ? e2.entity.data[t2] : null, getPageData: (e2) => e2.entity.page, getPageDataValue: (e2, t2) => e2.entity.page ? e2.entity.page[t2] : null, getAdditionalParams: (e2) => a.getAdditionalParamMap(e2), getAdditionalParamValue(e2, t2) {
|
|
73
|
+
const o2 = a.getAdditionalParamMap(e2);
|
|
74
|
+
return o2 ? o2[t2] : null;
|
|
75
|
+
}, isMobile: () => s.isMobileBrowser(), getComponentRefByProp: (e2, o2) => t.getComponentRefByCode(e2, o2), getComponentRefByCode: (e2, o2) => t.getComponentRef(e2, o2), getFormViewData(o2) {
|
|
76
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
77
|
+
const n2 = o2.entity ? o2.entity : {}, a2 = r.deepCopy(n2), i2 = e.getOptionDatasSourceMap(o2);
|
|
78
|
+
for (const n3 in i2) {
|
|
79
|
+
const i3 = e.getComponentOptionDatasFromPage(o2, n3), r2 = t.getComponentRef(o2, n3);
|
|
80
|
+
if (r2) {
|
|
81
|
+
const t2 = r2.getConfigure();
|
|
82
|
+
if (t2) if (!((_b = (_a = t2.props) == null ? void 0 : _a.dataOrigin) == null ? void 0 : _b.optionValueSetType) || "static" !== ((_d = (_c = t2.props) == null ? void 0 : _c.dataOrigin) == null ? void 0 : _d.optionValueSetType) && "optionGroup" !== ((_f = (_e = t2.props) == null ? void 0 : _e.dataOrigin) == null ? void 0 : _f.optionValueSetType)) {
|
|
83
|
+
if ("dynamicData" === ((_h = (_g = t2 == null ? void 0 : t2.props) == null ? void 0 : _g.dataOrigin) == null ? void 0 : _h.optionValueSetType) && ("select" === (t2 == null ? void 0 : t2.name) || "checkbox" === (t2 == null ? void 0 : t2.name) || "radio" === (t2 == null ? void 0 : t2.name))) {
|
|
84
|
+
const n4 = l.getFormModelFields(o2, t2), i4 = r2.getSelectItemsTitle(), s3 = i4 && i4.length > 0 ? i4 : e.getVariableValue(a2, n4);
|
|
85
|
+
e.setVariableValue(a2, n4, s3);
|
|
86
|
+
}
|
|
87
|
+
} else if (t2.name && ("select" === t2.name && ((_j = (_i = t2.props) == null ? void 0 : _i.base) == null ? void 0 : _j.multiple) || "checkbox" === t2.name)) {
|
|
88
|
+
const n4 = l.getFormModelFields(o2, t2), r3 = e.getVariableValue(a2, n4);
|
|
89
|
+
if (r3) {
|
|
90
|
+
const t3 = f(r3.split(","), i3);
|
|
91
|
+
e.setVariableValue(a2, n4, t3);
|
|
92
|
+
}
|
|
93
|
+
} else {
|
|
94
|
+
const n4 = l.getFormModelFields(o2, t2), r3 = f(e.getVariableValue(a2, n4), i3);
|
|
95
|
+
e.setVariableValue(a2, n4, r3);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
const s2 = o2.listCodesMap;
|
|
100
|
+
for (const n3 in s2) {
|
|
101
|
+
let i3;
|
|
102
|
+
if (n3.indexOf("__") > 0 && (i3 = n3.substring(n3.lastIndexOf("__") + 2)), i3) {
|
|
103
|
+
const r2 = t.getComponentRef(o2, i3);
|
|
104
|
+
if (r2) {
|
|
105
|
+
const t2 = r2.getConfigure(), o3 = t2.code ? t2.code : n3, i4 = l.getModelFields(t2, o3), s3 = e.getVariableValue(a2, i4), u2 = r2.getTableSelectOptions(n3), c2 = r2.getColumns(), d2 = {}, m2 = {};
|
|
106
|
+
c2 && c2.length > 0 && c2.forEach((e2) => {
|
|
107
|
+
"DATE" !== e2.dataType && "TIME" !== e2.dataType || (m2[e2.prop] = e2);
|
|
108
|
+
}), d2.formatDateColumns = m2, p(u2, s3, d2, r2);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
return a2.data;
|
|
113
|
+
}, getFormData: (e2, t2) => a.getFormData(e2, t2), getCustomFunc: (e2, t2) => u.getCustomFunc(e2, t2), replaceUrlPrefix: (e2) => s.replacePrefix(e2), isHasFieldAuthPermission: (e2) => {
|
|
114
|
+
var _a, _b, _c, _d;
|
|
115
|
+
return !(void 0 !== ((_b = (_a = e2 == null ? void 0 : e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isHasFieldAuthPermission) && !((_d = (_c = e2 == null ? void 0 : e2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.isHasFieldAuthPermission));
|
|
116
|
+
}, isHasFieldAuth(e2, t2) {
|
|
117
|
+
c.isHasFieldPermissionAuth(e2, null, t2);
|
|
118
|
+
}, isHasFieldAuthWithTable(e2, t2, o2) {
|
|
119
|
+
c.isHasFieldPermissionAuth(e2, t2, o2);
|
|
120
|
+
}, scrollIntoComponentWithUuid(e2, t2) {
|
|
121
|
+
d.scrollIntoComponentWithUuid(e2, t2);
|
|
122
|
+
}, scrollIntoComponentWithCode(e2, t2) {
|
|
123
|
+
d.scrollIntoComponentWithCode(e2, t2);
|
|
124
|
+
} };
|
|
125
|
+
function p(e2, t2, o2, n2) {
|
|
126
|
+
if (e2 && t2) {
|
|
127
|
+
const a2 = n2.getSuperGridRef();
|
|
128
|
+
t2.forEach((t3) => {
|
|
129
|
+
if (o2 == null ? void 0 : o2.formatDateColumns) {
|
|
130
|
+
const e3 = o2.formatDateColumns;
|
|
131
|
+
Object.keys(e3).forEach((o3) => {
|
|
132
|
+
const n3 = e3[o3];
|
|
133
|
+
t3[o3] && (t3[o3] = a2.rowDoFormat(n3, t3[o3]));
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
Object.keys(e2).forEach((o3) => {
|
|
137
|
+
const n3 = t3[o3], a3 = e2[o3], i2 = a3.options, r2 = a3.column;
|
|
138
|
+
let s2;
|
|
139
|
+
if (r2 && r2.componentType && ("multiselect" === r2.componentType || "checkbox" === r2.componentType)) {
|
|
140
|
+
if (n3) {
|
|
141
|
+
s2 = f(n3.split(","), i2);
|
|
142
|
+
}
|
|
143
|
+
} else s2 = f(n3, i2);
|
|
144
|
+
t3[o3] = s2;
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
function f(e2, t2) {
|
|
150
|
+
let o2;
|
|
151
|
+
return null != e2 && t2 && (Array.isArray(e2) ? (o2 = "", e2.forEach((n2) => {
|
|
152
|
+
o2 = o2 + g(e2, t2) + ",";
|
|
153
|
+
}), o2.indexOf(",") > 0 && (o2 = o2.substring(0, o2.lastIndexOf(",")))) : (o2 = e2, o2 = g(e2, t2))), o2;
|
|
154
|
+
}
|
|
155
|
+
function g(e2, t2) {
|
|
156
|
+
let o2 = e2;
|
|
157
|
+
if (null != e2 && t2) for (let n2 = 0; n2 < t2.length; n2++) {
|
|
158
|
+
const a2 = t2[n2].value, i2 = t2[n2].label ? t2[n2].label : t2[n2].name;
|
|
159
|
+
if (e2 + "" == a2 + "" && null != i2) {
|
|
160
|
+
o2 = i2;
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
return o2;
|
|
165
|
+
}
|
|
166
|
+
function b(e2, t2, o2) {
|
|
167
|
+
e2.initInfo || (e2.initInfo = {}), e2.initInfo[t2] = o2;
|
|
168
|
+
}
|
|
169
|
+
exports.functions = m;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const e = require("vue"), n = require("./page-store.js"), o = (e2) => Object.freeze(Object.defineProperty({ __proto__: null, default: e2 }, Symbol.toStringTag, { value: "Module" })), r = [{ name: "container", label: "容器", icon: "assets/images/group-container.png", items: [{ name: "form", label: "表单", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/container/form/form-runtime.vue.js")))) }, { name: "card", label: "卡片", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/container/card/card-runtime.vue.js")))) }, { name: "collapse", label: "折叠面板", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/container/collapse/collapse-runtime.vue.js")))) }, { name: "layout", label: "Flex", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/container/flex/flex-runtime.vue.js")))) }, { name: "tabs", label: "Tabs", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/container/tabs/tabs-runtime.vue.js")))) }, { name: "tools", label: "工具栏", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/container/tools/tools-runtime.vue.js")))) }, { name: "iframe", label: "Iframe", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/container/iframe/iframe-runtime.vue.js")))) }, { name: "container", label: "布局", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/container/container/container-runtime.vue.js")))) }] }, { name: "form", label: "表单", items: [{ name: "input-text", label: "文本框", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/form/input-text/inputtext-runtime.vue.js")))) }, { name: "select", label: "下拉框", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/form/select/select-runtime.vue.js")))) }, { name: "radio", label: "单选框", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/form/radio/radio-runtime.vue.js")))) }, { name: "checkbox", label: "复选框", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/form/checkbox/checkbox-runtime.vue.js")))) }, { name: "textarea", label: "文本域", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/form/textarea/textarea-runtime.vue.js")))) }, { name: "datePicker", label: "日期/时间", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/form/date-picker/datepicker-runtime.vue.js")))) }, { name: "switch", label: "开关", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/form/switch/switch-runtime.vue.js")))) }, { name: "inputNumber", label: "计数器", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/form/input-number/input-number-runtime.vue.js")))) }, { name: "tag", label: "标签", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/form/tag/tag-runtime.vue.js")))) }, { name: "richText", label: "富文本", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/form/rich-text/richtext-runtime.vue.js")))) }, { name: "divider", label: "分割线", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/form/divider/divider-runtime.vue.js")))) }, { name: "separatelabel", label: "分割标签", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/form/separatelabel/separatelabel-runtime.vue.js")))) }, { name: "placeholder", label: "占位符", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/form/placeholder/placeholder-runtime.vue.js")))) }, { name: "link", label: "链接", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/form/link/link-runtime.vue.js")))) }, { name: "label", label: "Label组件", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/form/label/label-runtime.vue.js")))) }, { name: "dept-tree", label: "组织树", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/form/dept-tree/depttree-runtime.vue.js")))) }, { name: "file-upload", label: "文件上传", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/form/file-upload/fileupload-runtime.vue.js")))) }] }, { name: "button", label: "按钮", items: [{ name: "button-detail", label: "按钮", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/button/button/button-runtime.vue.js")))) }, { name: "button-group", label: "按钮组", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/button/button-group/buttongroup-runtime.vue.js")))) }, { name: "dropdown", label: "下拉菜单", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/button/dropdown/dropdown-runtime.vue.js")))) }, { name: "print-label", label: "打印标签", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/button/print-label/printlabel-runtime.vue.js")))) }, { name: "export-pdf", label: "打印标签", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/button/export-pdf/exportpdf-runtime.vue.js")))) }] }, { name: "workflow", label: "工作流", items: [{ name: "workflow-button", label: "工作流按钮", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js")))) }, { name: "picture-flow", label: "图形历史", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js")))) }, { name: "text-flow", label: "文本历史", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/workflow/text-history/textflow-runtime.vue.js")))) }, { name: "workflow-node", label: "流程环节", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js")))) }, { name: "extract-workflow", label: "抽单", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js")))) }, { name: "extract-workflow-dialog", label: "抽单Dialog", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js")))) }] }, { name: "chart", label: "统计图", items: [{ name: "chart-column-line", label: "柱/折图", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/chart/column-line/column-line-runtime.vue.js")))) }, { name: "chart-pie", label: "饼图", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/chart/pie/pie-runtime.vue.js")))) }, { name: "chart-gauge", label: "仪表盘", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/chart/gauge/gauge-runtime.vue.js")))) }, { name: "chart-radar", label: "雷达图", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/chart/radar/radar-runtime.vue.js")))) }, { name: "chart-scatter", label: "散点图", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/chart/scatter/scatter-runtime.vue.js")))) }, { name: "statistical-table", label: "统计表格", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/chart/table/table-runtime.vue.js")))) }] }, { name: "data", label: "数据", items: [{ name: "table", label: "表格", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/data/table/table-runtime.vue.js")))) }, { name: "tree", label: "树控件", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/data/tree/tree-runtime.vue.js")))) }, { name: "bar-code", label: "条码", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/data/bar-code/barcode-runtime.vue.js")))) }] }, { name: "other", label: "其他", items: [{ name: "custom", label: "自定义", runtimeComponent: e.defineAsyncComponent(() => Promise.resolve().then(() => o(require("../views/assemblys/form/custom/custom-runtime.vue.js")))) }] }];
|
|
4
|
+
exports.assemblyGroups = r, exports.getRuntimeComponentByName = function(e2) {
|
|
5
|
+
if (!e2) return null;
|
|
6
|
+
for (let o2 = 0; o2 < r.length; o2++) {
|
|
7
|
+
let t = r[o2].items;
|
|
8
|
+
for (let o3 = 0; o3 < t.length; o3++) {
|
|
9
|
+
let r2 = t[o3];
|
|
10
|
+
if (r2.name == e2) {
|
|
11
|
+
return n.usePageContextStore().countComponentsTotalNmber(), r2.runtimeComponent;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return null;
|
|
16
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }), exports.generateCodeByRule = function(e, t) {
|
|
3
|
+
let r = true, n = "";
|
|
4
|
+
return e.forEach((e2) => {
|
|
5
|
+
if ("-1" !== e2.propDbName && -1 !== e2.propDbName) {
|
|
6
|
+
const a = t[e2.propDbName];
|
|
7
|
+
e2.supplementaryCharacters && e2.length ? a ? a.length > e2.length ? n += a.substring(0, e2.length) : n += a.padEnd(e2.length, e2.supplementaryCharacters) : n += "".padEnd(e2.length, e2.supplementaryCharacters) : a ? n += a : r = false;
|
|
8
|
+
} else n += e2.fixedValue;
|
|
9
|
+
}), r ? n : null;
|
|
10
|
+
};
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const e = require("../page-helper-util.js"), t = require("../common-util.js"), o = require("./chart-util.js"), a = require("../events/event-util.js");
|
|
4
|
+
exports.updateChartOption = function(i, s, l, r) {
|
|
5
|
+
if (!r || !r.result) return;
|
|
6
|
+
o.setDefaultGrid(l), l.tooltip || (l.tooltip = {}), a.handleChartEvent(i, s, "beforeUpdateChart", l, { resultData: r });
|
|
7
|
+
const u = r && r.result ? r.result : {};
|
|
8
|
+
let n = r && r.groupValue ? r.groupValue : void 0;
|
|
9
|
+
const c = s.serviceDataField;
|
|
10
|
+
let d = null;
|
|
11
|
+
c ? d = u[c] : u && (d = Array.isArray(u) ? u : [u]), d || (d = []), s.runtime.dataConfig.runtimeData = d;
|
|
12
|
+
let f = s.props ? s.props.groups : null;
|
|
13
|
+
if (f || (f = []), !n || 0 === n.length) {
|
|
14
|
+
n = [];
|
|
15
|
+
for (const e2 of f) n.push(e2.group);
|
|
16
|
+
}
|
|
17
|
+
const m = {}, p = [], h = [];
|
|
18
|
+
for (const e2 of f) m[e2.group] = e2.target, e2.target && !p.includes(e2.target) && (p.push(e2.target), n.includes(e2.group) && h.push(e2.target));
|
|
19
|
+
let y = s.props ? s.props.mulGroupShow : "";
|
|
20
|
+
y = "break" == y ? "\r\n" : " ";
|
|
21
|
+
for (const t2 of d) {
|
|
22
|
+
if (!t2) continue;
|
|
23
|
+
const a2 = [];
|
|
24
|
+
for (const o2 of n) {
|
|
25
|
+
const i3 = m[o2], s2 = e.getValueFromSource(t2, i3, void 0);
|
|
26
|
+
s2 && a2.push(s2);
|
|
27
|
+
}
|
|
28
|
+
const i2 = a2.join(y);
|
|
29
|
+
t2[o.CommonName.X_FIELD_NAME] = i2;
|
|
30
|
+
}
|
|
31
|
+
const g = s.items ? s.items : [], F = [], S = {}, v = [], D = {}, N = [], x = [], C = /* @__PURE__ */ new Set(), E = o.caculateFormulaValue(g, d, C);
|
|
32
|
+
for (const e2 of C) N.push(e2);
|
|
33
|
+
for (const e2 of g) {
|
|
34
|
+
const t2 = e2.props ? e2.props : {}, o2 = t2.yaxisSource, a2 = t2.yaxisField, i2 = t2.isCumulative;
|
|
35
|
+
let s2 = null;
|
|
36
|
+
if (!a2 || o2 && "variable" != o2) if ("formula" == o2) {
|
|
37
|
+
let o3 = t2.formula ? t2.formula : "";
|
|
38
|
+
for (const e3 in E) o3 = o3.replace(new RegExp(e3.replace("$", "\\$"), "g"), E[e3]);
|
|
39
|
+
s2 = { uuid: e2.uuid, type: "formula", formula: o3, data: [], dynamicDatas: [] };
|
|
40
|
+
} else s2 = { uuid: e2.uuid, type: "fixed", field: t2.yaxisFix, data: [], dynamicDatas: [] };
|
|
41
|
+
else s2 = { uuid: e2.uuid, type: "variable", field: a2, isCumulative: i2, data: [], dynamicDatas: [] }, a2 && !N.includes(a2) && N.push(a2), a2 && !x.includes(a2) && x.push(a2), i2 && !C.has(a2) && C.add(a2);
|
|
42
|
+
null != s2 && (F.push(s2), S[e2.uuid] = s2), t2.dynamicSeriesField && !v.includes(t2.dynamicSeriesField) && s2 && (s2.dynamicField = t2.dynamicSeriesField, s2.dynamicSeriesTitle = t2.dynamicSeriesTitle, s2.dynamicShowStack = t2.dynamicShowStack, v.push(t2.dynamicSeriesField), D[t2.dynamicSeriesField] = a2);
|
|
43
|
+
}
|
|
44
|
+
const V = {};
|
|
45
|
+
if (v.length > 0) {
|
|
46
|
+
const t2 = [], a2 = {};
|
|
47
|
+
for (const i2 of d) if (i2) for (const s2 of N) {
|
|
48
|
+
const l2 = i2[o.CommonName.X_FIELD_NAME];
|
|
49
|
+
let r2 = a2[l2];
|
|
50
|
+
if (!r2) {
|
|
51
|
+
r2 = {};
|
|
52
|
+
for (const e2 of p) r2[e2] = i2[e2];
|
|
53
|
+
r2[o.CommonName.X_FIELD_NAME] = i2[o.CommonName.X_FIELD_NAME], a2[l2] = r2, t2.push(r2);
|
|
54
|
+
}
|
|
55
|
+
let u2 = e.getValueFromSource(i2, s2, void 0);
|
|
56
|
+
if (!isNaN(u2)) {
|
|
57
|
+
const e2 = r2[s2];
|
|
58
|
+
isNaN || (u2 += e2), r2[s2] = u2;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
for (const t3 of v) {
|
|
62
|
+
const i2 = [];
|
|
63
|
+
for (const s2 of d) {
|
|
64
|
+
if (!s2) continue;
|
|
65
|
+
const l2 = a2[s2[o.CommonName.X_FIELD_NAME]];
|
|
66
|
+
if (!l2) continue;
|
|
67
|
+
let r2 = e.getValueFromSource(s2, t3, void 0);
|
|
68
|
+
r2 = null == r2 || null == r2 ? "" : r2, i2.includes(r2) || (i2.push(r2), x.push(r2), C.add(r2));
|
|
69
|
+
const u2 = D[t3];
|
|
70
|
+
if (void 0 !== u2) {
|
|
71
|
+
const t4 = e.getValueFromSource(s2, u2, void 0);
|
|
72
|
+
let o2 = l2[r2];
|
|
73
|
+
void 0 === o2 ? o2 = t4 : isNaN(t4) || (o2 += t4), l2[r2] = o2;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
V[t3] = i2;
|
|
77
|
+
}
|
|
78
|
+
d = t2;
|
|
79
|
+
}
|
|
80
|
+
o.sortDatas(i, s, d), d = o.limitDatas(i, s, d, p, x);
|
|
81
|
+
const b = [], A = {};
|
|
82
|
+
for (const t2 of d) if (t2) {
|
|
83
|
+
for (const o2 of C) {
|
|
84
|
+
const a2 = e.getValueFromSource(t2, o2, void 0);
|
|
85
|
+
let i2 = A[o2];
|
|
86
|
+
void 0 === a2 || isNaN(a2) || (void 0 === i2 ? i2 = a2 : i2 += a2), A[o2] = i2;
|
|
87
|
+
}
|
|
88
|
+
b.push(t2[o.CommonName.X_FIELD_NAME]);
|
|
89
|
+
for (const a2 of F) {
|
|
90
|
+
let s2 = a2.data;
|
|
91
|
+
const l2 = a2.dynamicDatas;
|
|
92
|
+
if (a2.dynamicField) {
|
|
93
|
+
let o2 = V[a2.dynamicField];
|
|
94
|
+
o2 = o2 || [];
|
|
95
|
+
for (let i2 = 0; i2 < o2.length; i2++) {
|
|
96
|
+
i2 >= l2.length && l2.push([]), s2 = l2[i2];
|
|
97
|
+
const r2 = o2[i2];
|
|
98
|
+
let u2 = e.getValueFromSource(t2, r2, void 0);
|
|
99
|
+
a2.isCumulative && (u2 = A[r2]), s2.push(u2);
|
|
100
|
+
}
|
|
101
|
+
} else if ("fixed" === a2.type) s2.push(a2.field);
|
|
102
|
+
else if ("variable" === a2.type) {
|
|
103
|
+
let o2 = e.getValueFromSource(t2, a2.field, void 0);
|
|
104
|
+
a2.isCumulative && (o2 = A[a2.field]), s2.push(o2);
|
|
105
|
+
} else if ("formula" === a2.type) {
|
|
106
|
+
const e2 = o.executeChartFormula(a2.formula, A, t2, i);
|
|
107
|
+
s2.push(e2);
|
|
108
|
+
} else s2.push(void 0);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
const _ = s.defaultSeries, I = t.deepCopy(null == _ ? [] : _), w = [];
|
|
112
|
+
for (const o2 of I) {
|
|
113
|
+
const a2 = S[o2.uuid];
|
|
114
|
+
if (a2.dynamicField) {
|
|
115
|
+
let s2 = V[a2.dynamicField];
|
|
116
|
+
s2 = s2 || [];
|
|
117
|
+
const l2 = a2.dynamicDatas ? a2.dynamicDatas : [];
|
|
118
|
+
for (let r2 = 0; r2 < s2.length; r2++) {
|
|
119
|
+
const u2 = s2[r2], n2 = t.deepCopy(o2);
|
|
120
|
+
if (a2.dynamicSeriesTitle) {
|
|
121
|
+
const t2 = a2.dynamicSeriesTitle.replace("${name}", u2);
|
|
122
|
+
n2.name = e.formatVariableValue(i, t2);
|
|
123
|
+
} else n2.name = u2;
|
|
124
|
+
n2.data = r2 < l2.length ? l2[r2] : [], "bar" == o2.type && a2.dynamicShowStack && (n2.stack = o2.uuid), w.push(n2);
|
|
125
|
+
}
|
|
126
|
+
} else o2.data = a2 ? a2.data : [], w.push(o2);
|
|
127
|
+
}
|
|
128
|
+
l.series = w;
|
|
129
|
+
const M = s.defaultXaxis, X = s.defaultYaxis;
|
|
130
|
+
if (l.isBar) {
|
|
131
|
+
if (X) for (const e2 of X) e2.data = b;
|
|
132
|
+
l.xAxis = M, l.yAxis = X;
|
|
133
|
+
} else M && M.length > 0 && (M[0].data = b), l.xAxis = M, l.yAxis = X;
|
|
134
|
+
o.formatToolboxI18n(l);
|
|
135
|
+
const j = s.props ? s.props.selGroupVariable : null;
|
|
136
|
+
!(s.props ? s.props.enableDrill : null) && j && (s.highlightInfos = [], e.setValueForVariableName(i.entity, j, null)), a.handleChartEvent(i, s, "afterUpdateChart", l, { resultData: r }), s.groupFields = h, s.cacheDatas = d, s.rawResult = r;
|
|
137
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const e = require("../page-helper-util.js"), t = require("../common-util.js"), r = require("./chart-util.js"), o = require("../events/event-util.js");
|
|
4
|
+
exports.updateChartOption = function(a, l, s, i) {
|
|
5
|
+
if (!i || !i.result) return;
|
|
6
|
+
o.handleChartEvent(a, l, "beforeUpdateChart", s, { resultData: i }), r.setDefaultGrid(s);
|
|
7
|
+
const n = i && i.result ? i.result : {}, u = l.serviceDataField;
|
|
8
|
+
let p = null;
|
|
9
|
+
u ? p = n[u] : n && (p = [n]), p || (p = []);
|
|
10
|
+
const d = l.props ? l.props.nameSource : void 0, c = l.props ? l.props.nameField : void 0, h = l.props ? l.props.nameFixed : void 0, f = l.props ? l.props.yaxisField : void 0, m = [c], v = [], g = [];
|
|
11
|
+
for (const t2 of p) {
|
|
12
|
+
if (!t2) continue;
|
|
13
|
+
let r2 = null;
|
|
14
|
+
r2 = "fixed" == d ? e.formatVariableValue(a, h) : e.getValueFromSource(t2, c, void 0), v.push(r2);
|
|
15
|
+
const o2 = e.getValueFromSource(t2, f, void 0);
|
|
16
|
+
g.push(o2);
|
|
17
|
+
}
|
|
18
|
+
const C = l.defaultSeries;
|
|
19
|
+
let F = C[0].pieColors;
|
|
20
|
+
F = F || [];
|
|
21
|
+
let S = C[0].pieColorMap;
|
|
22
|
+
S = S || {};
|
|
23
|
+
const x = [];
|
|
24
|
+
for (let e2 = 0; e2 < v.length && e2 < g.length; e2++) {
|
|
25
|
+
const t2 = { value: g[e2], name: v[e2] };
|
|
26
|
+
if (e2 < F.length || S[t2.name]) {
|
|
27
|
+
let r2 = S[t2.name];
|
|
28
|
+
r2 || (r2 = F[e2]), r2 && (t2.itemStyle = { color: r2 });
|
|
29
|
+
}
|
|
30
|
+
x.push(t2);
|
|
31
|
+
}
|
|
32
|
+
const b = t.deepCopy(C);
|
|
33
|
+
b[0].data = x, s.series = [b[0]], r.formatToolboxI18n(s), o.handleChartEvent(a, l, "afterUpdateChart", s, { resultData: i }), l.groupFields = m, l.cacheDatas = p, l.rawResult = i;
|
|
34
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const e = require("../page-helper-util.js"), o = require("../common-util.js"), t = require("./chart-util.js"), r = require("../events/event-util.js");
|
|
4
|
+
exports.updateChartOption = function(s, a, l, n) {
|
|
5
|
+
if (!n || !n.result) return;
|
|
6
|
+
r.handleChartEvent(s, a, "beforeUpdateChart", l, { resultData: n }), t.setDefaultGrid(l);
|
|
7
|
+
const u = n && n.result ? n.result : {};
|
|
8
|
+
let i = n && n.groupValue ? n.groupValue : void 0;
|
|
9
|
+
const p = a.serviceDataField;
|
|
10
|
+
let c = null;
|
|
11
|
+
p ? c = u[p] : u && (c = Array.isArray(u) ? u : [u]), c || (c = []);
|
|
12
|
+
let f = a.props ? a.props.groups : null;
|
|
13
|
+
if (f || (f = []), !i || 0 === i.length) {
|
|
14
|
+
i = [];
|
|
15
|
+
for (const e2 of f) i.push(e2.group);
|
|
16
|
+
}
|
|
17
|
+
const m = {}, g = [], h = [];
|
|
18
|
+
for (const e2 of f) m[e2.group] = e2.target, e2.target && !g.includes(e2.target) && (g.push(e2.target), i.includes(e2.group) && h.push(e2.target));
|
|
19
|
+
let d = a.props ? a.props.mulGroupShow : "";
|
|
20
|
+
d = "break" == d ? "\r\n" : " ";
|
|
21
|
+
for (const o2 of c) {
|
|
22
|
+
if (!o2) continue;
|
|
23
|
+
const r2 = [];
|
|
24
|
+
for (const t2 of i) {
|
|
25
|
+
const s3 = m[t2], a2 = e.getValueFromSource(o2, s3, void 0);
|
|
26
|
+
a2 && r2.push(a2);
|
|
27
|
+
}
|
|
28
|
+
const s2 = r2.join(d);
|
|
29
|
+
o2[t.CommonName.X_FIELD_NAME] = s2;
|
|
30
|
+
}
|
|
31
|
+
const y = a.items ? a.items : [];
|
|
32
|
+
if (0 == y.length) return;
|
|
33
|
+
const v = a.props ? a.props : {};
|
|
34
|
+
let F = v.yaxisField;
|
|
35
|
+
if (y[0].props.yaxisField = F, y[0].props.yaxisSource = v.yaxisSource, y[0].props.formula = v.formula, "formula" === v.yaxisSource) {
|
|
36
|
+
const o2 = [], r2 = t.caculateFormulaValue(y, c, o2);
|
|
37
|
+
let a2 = v.formula ? v.formula : "";
|
|
38
|
+
for (const e2 in r2) a2 = a2.replace(new RegExp(e2.replace("$", "\\$"), "g"), r2[e2]);
|
|
39
|
+
F = t.CommonName.Y_TEMP_NAME;
|
|
40
|
+
const l2 = {};
|
|
41
|
+
for (const r3 of c) {
|
|
42
|
+
if (!r3) continue;
|
|
43
|
+
for (const t2 of o2) {
|
|
44
|
+
const o3 = e.getValueFromSource(r3, t2, void 0);
|
|
45
|
+
let s2 = l2[t2];
|
|
46
|
+
void 0 === o3 || isNaN(o3) || (void 0 === s2 ? s2 = o3 : s2 += o3), l2[t2] = s2;
|
|
47
|
+
}
|
|
48
|
+
const n2 = t.executeChartFormula(a2, l2, r3, s);
|
|
49
|
+
r3[F] = n2;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
y[0].props.yaxisField = F, y[0].props.yaxisSource = "", t.sortDatas(s, a, c), c = t.limitDatas(s, a, c, g, [F]);
|
|
53
|
+
const x = [], C = [];
|
|
54
|
+
for (const o2 of c) {
|
|
55
|
+
if (!o2) continue;
|
|
56
|
+
x.push(o2[t.CommonName.X_FIELD_NAME]);
|
|
57
|
+
const r2 = e.getValueFromSource(o2, F, void 0);
|
|
58
|
+
C.push(r2);
|
|
59
|
+
}
|
|
60
|
+
const S = a.defaultSeries;
|
|
61
|
+
let D = S[0].pieColors;
|
|
62
|
+
D = D || [];
|
|
63
|
+
let E = S[0].pieColorMap;
|
|
64
|
+
E = E || {};
|
|
65
|
+
const N = [];
|
|
66
|
+
for (let e2 = 0; e2 < x.length && e2 < C.length; e2++) {
|
|
67
|
+
const o2 = { value: C[e2], name: x[e2] };
|
|
68
|
+
if (e2 < D.length || E[o2.name]) {
|
|
69
|
+
let t2 = E[o2.name];
|
|
70
|
+
t2 || (t2 = D[e2]), t2 && (o2.itemStyle = { color: t2 });
|
|
71
|
+
}
|
|
72
|
+
N.push(o2);
|
|
73
|
+
}
|
|
74
|
+
const V = o.deepCopy(S);
|
|
75
|
+
V[0].data = N, l.series = [V[0]], t.formatToolboxI18n(l);
|
|
76
|
+
const b = a.props ? a.props.selGroupVariable : null;
|
|
77
|
+
!(a.props ? a.props.enableDrill : null) && b && (a.highlightInfos = [], e.setValueForVariableName(s.entity, b, null)), r.handleChartEvent(s, a, "afterUpdateChart", l, { resultData: n }), a.groupFields = h, a.cacheDatas = c, a.rawResult = n;
|
|
78
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const e = require("../page-helper-util.js"), t = require("../common-util.js"), a = require("./chart-util.js"), r = require("../events/event-util.js");
|
|
4
|
+
exports.updateChartOption = function(o, u, i, l) {
|
|
5
|
+
if (!l || !l.result) return;
|
|
6
|
+
r.handleChartEvent(o, u, "beforeUpdateChart", i, { resultData: l }), a.setDefaultGrid(i);
|
|
7
|
+
const s = l && l.result ? l.result : {}, d = u.serviceDataField;
|
|
8
|
+
let n = null;
|
|
9
|
+
d ? n = s[d] : s && (n = Array.isArray(s) ? s : [s]), n || (n = []);
|
|
10
|
+
const c = u.items ? u.items : [], f = [], p = {}, m = [], v = a.caculateFormulaValue(c, n, m);
|
|
11
|
+
for (const e2 of c) {
|
|
12
|
+
const t2 = e2.props ? e2.props : {}, a2 = t2.yaxisSource, r2 = t2.yaxisField;
|
|
13
|
+
let o2 = null;
|
|
14
|
+
if (!r2 || a2 && "variable" != a2) if ("formula" == a2) {
|
|
15
|
+
let a3 = t2.formula ? t2.formula : "";
|
|
16
|
+
for (const e3 in v) a3 = a3.replace(new RegExp(e3.replace("$", "\\$"), "g"), v[e3]);
|
|
17
|
+
o2 = { uuid: e2.uuid, type: "formula", formula: a3, data: [] };
|
|
18
|
+
} else o2 = { uuid: e2.uuid, type: "fixed", field: t2.yaxisFix, data: [] };
|
|
19
|
+
else o2 = { uuid: e2.uuid, type: "variable", field: r2, data: [] };
|
|
20
|
+
o2 && (f.push(o2), p[o2.uuid] = o2);
|
|
21
|
+
}
|
|
22
|
+
const h = u.props ? u.props : {}, x = h.nameField, y = h.maxSource, F = h.maxField, g = h.maxFixed, S = [], b = {};
|
|
23
|
+
for (const t2 of n) {
|
|
24
|
+
if (!t2) continue;
|
|
25
|
+
const r2 = e.getValueFromSource(t2, x, void 0);
|
|
26
|
+
let u2 = null;
|
|
27
|
+
u2 = y && "variable" != y ? g : e.getValueFromSource(t2, F, void 0), S.push({ text: r2, max: u2 });
|
|
28
|
+
for (const a2 of m) {
|
|
29
|
+
const r3 = e.getValueFromSource(t2, a2, void 0);
|
|
30
|
+
let o2 = b[a2];
|
|
31
|
+
void 0 === r3 || isNaN(r3) || (void 0 === o2 ? o2 = r3 : o2 += r3), b[a2] = o2;
|
|
32
|
+
}
|
|
33
|
+
for (const r3 of f) {
|
|
34
|
+
const u3 = r3.data;
|
|
35
|
+
if ("fixed" == r3.type) u3.push(r3.field);
|
|
36
|
+
else if ("variable" == r3.type) {
|
|
37
|
+
const a2 = e.getValueFromSource(t2, r3.field, void 0);
|
|
38
|
+
u3.push(a2);
|
|
39
|
+
} else if ("formula" == r3.type) {
|
|
40
|
+
const e2 = a.executeChartFormula(r3.formula, b, t2, o);
|
|
41
|
+
u3.push(e2);
|
|
42
|
+
} else u3.push(void 0);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
i.radar[0].indicator = S, a.formatToolboxI18n(i);
|
|
46
|
+
const C = u.defaultSeries, j = t.deepCopy(C), D = j[0].data;
|
|
47
|
+
for (const e2 of D) {
|
|
48
|
+
const t2 = p[e2.uuid];
|
|
49
|
+
e2.value = t2.data;
|
|
50
|
+
}
|
|
51
|
+
i.series = j, r.handleChartEvent(o, u, "afterUpdateChart", i, { resultData: l }), u.cacheDatas = n, u.rawResult = l;
|
|
52
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const e = require("../page-helper-util.js"), o = require("../common-util.js"), t = require("./chart-util.js"), r = require("../events/event-util.js");
|
|
4
|
+
exports.updateChartOption = function(s, a, i, u) {
|
|
5
|
+
if (!u || !u.result) return;
|
|
6
|
+
r.handleChartEvent(s, a, "beforeUpdateChart", i, { resultData: u }), t.setDefaultGrid(i);
|
|
7
|
+
const l = u && u.result ? u.result : {}, c = a.serviceDataField;
|
|
8
|
+
let d = null;
|
|
9
|
+
c ? d = l[c] : l && (d = Array.isArray(l) ? l : [l]), d || (d = []);
|
|
10
|
+
const n = a.items ? a.items : [], f = [], p = {};
|
|
11
|
+
for (const e2 of n) {
|
|
12
|
+
const o2 = e2.props ? e2.props : {}, t2 = e2.props ? e2.style : {}, r2 = o2.xaxisField, s2 = o2.sizeField, a2 = { uuid: e2.uuid, xaxisField: r2, yaxisField: o2.yaxisField, yaxisSource: o2.yaxisSource, formula: o2.formula, sizeField: s2, symbolSize: t2.symbolSize, data: [] };
|
|
13
|
+
f.push(a2), p[a2.uuid] = a2;
|
|
14
|
+
}
|
|
15
|
+
const m = [], x = t.caculateFormulaValue(n, d, m);
|
|
16
|
+
for (const e2 of f) if ("formula" === e2.yaxisSource) {
|
|
17
|
+
let o2 = e2.formula ? e2.formula : "";
|
|
18
|
+
for (const e3 in x) o2 = o2.replace(new RegExp(e3.replace("$", "\\$"), "g"), x[e3]);
|
|
19
|
+
e2.formula = o2;
|
|
20
|
+
}
|
|
21
|
+
const h = {};
|
|
22
|
+
for (const o2 of d) if (o2) {
|
|
23
|
+
for (const t2 of m) {
|
|
24
|
+
const r2 = e.getValueFromSource(o2, t2, void 0);
|
|
25
|
+
let s2 = h[t2];
|
|
26
|
+
void 0 === r2 || isNaN(r2) || (void 0 === s2 ? s2 = r2 : s2 += r2), h[t2] = s2;
|
|
27
|
+
}
|
|
28
|
+
for (const r2 of f) {
|
|
29
|
+
const a2 = r2.data, i2 = [];
|
|
30
|
+
if (i2.push(e.getValueFromSource(o2, r2.xaxisField, void 0)), "formula" === r2.yaxisSource) {
|
|
31
|
+
const e2 = t.executeChartFormula(r2.formula, h, o2, s);
|
|
32
|
+
i2.push(e2);
|
|
33
|
+
} else i2.push(e.getValueFromSource(o2, r2.yaxisField, void 0));
|
|
34
|
+
r2.sizeField ? i2.push(e.getValueFromSource(o2, r2.xaxisField, void 0)) : i2.push(r2.symbolSize), a2.push(i2);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
const F = a.defaultSeries, y = o.deepCopy(F);
|
|
38
|
+
for (const e2 of y) {
|
|
39
|
+
const o2 = p[e2.uuid];
|
|
40
|
+
e2.data = o2.data;
|
|
41
|
+
}
|
|
42
|
+
i.series = y, t.formatToolboxI18n(i), r.handleChartEvent(s, a, "afterUpdateChart", i, { resultData: u }), a.cacheDatas = d, a.rawResult = u;
|
|
43
|
+
};
|