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,354 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const http = require("agilebuilder-ui/src/utils/request"), dayjs = require("dayjs"), calculatorUtil = require("agilebuilder-ui/src/utils/calculator/calculator-util"), globalRefs = require("./global-refs.js"), vue = require("vue"), commonUtil = require("./common-util.js");
|
|
4
|
+
function getComponentOptionConfigs(e, t, o, a) {
|
|
5
|
+
return getComponentOptionConfigsBase(e, (t == null ? void 0 : t.systemCode) ? t.systemCode : o, (t == null ? void 0 : t.systemVersion) ? t == null ? void 0 : t.systemVersion : a);
|
|
6
|
+
}
|
|
7
|
+
function getComponentOptionConfigsBase(e, t, o) {
|
|
8
|
+
if (!e.props || !e.props.dataOrigin) return;
|
|
9
|
+
if (e.name && "table" === e.name) return;
|
|
10
|
+
const a = e.props.dataOrigin, r = { uuid: e.uuid };
|
|
11
|
+
if ("optionGroup" == a.optionValueSetType) r.type = "optionGroup", r.props = { code: a.optionGroup };
|
|
12
|
+
else if ("dynamicData" == a.optionValueSetType) r.type = "dynamicData", r.filterType = a.filterType, r.props = { code: a.dynamicDataSourceCode };
|
|
13
|
+
else if ("dataTable" == a.optionValueSetType) {
|
|
14
|
+
r.filterType = a.filterType;
|
|
15
|
+
const e2 = getTableQueryInfo(a, t, o);
|
|
16
|
+
Object.assign(r, e2);
|
|
17
|
+
} else if ("service" == a.optionValueSetType) {
|
|
18
|
+
r.filterType = a.filterType;
|
|
19
|
+
const e2 = getServiceQueryInfo(a, t, o);
|
|
20
|
+
Object.assign(r, e2);
|
|
21
|
+
}
|
|
22
|
+
return r.type ? r : void 0;
|
|
23
|
+
}
|
|
24
|
+
function getTableQueryInfo(e, t, o) {
|
|
25
|
+
const a = { type: "dataTable" };
|
|
26
|
+
if (a.valueLabelSwitch = !!e.valueLabelSwitch, a.props = { tableName: e.tableName, systemCode: e.tableSysCode ? e.tableSysCode : t, systemVersion: e.tableSysVersion ? e.tableSysVersion : o }, e.sortFields) {
|
|
27
|
+
const t2 = [];
|
|
28
|
+
for (const o2 of e.sortFields) o2.name && t2.push({ prop: o2.name, order: o2.type ? o2.type : "asc" });
|
|
29
|
+
a.props.sorts = t2;
|
|
30
|
+
}
|
|
31
|
+
const r = [];
|
|
32
|
+
if (e.filterList) {
|
|
33
|
+
const t2 = [];
|
|
34
|
+
for (const o2 of e.filterList) {
|
|
35
|
+
if (!o2.propName) continue;
|
|
36
|
+
o2.propDbName || (o2.propDbName = o2.propName);
|
|
37
|
+
const e2 = {};
|
|
38
|
+
Object.assign(e2, o2);
|
|
39
|
+
const a2 = getParamNames(o2.propValue);
|
|
40
|
+
for (const e3 of a2) e3 && (e3.startsWith("${data.") || e3.startsWith("${task.") || e3.startsWith("${page.")) && (r.includes(e3) || r.push(e3));
|
|
41
|
+
o2.propValue, t2.push(e2);
|
|
42
|
+
}
|
|
43
|
+
a.props.searchForm = t2;
|
|
44
|
+
}
|
|
45
|
+
a.props.monitorFields = r;
|
|
46
|
+
const n = [];
|
|
47
|
+
if (e.tableValueField && (a.props.valueField = e.tableValueField), e.tableLableField && -1 == n.indexOf(e.tableLableField) && (a.props.lableField = e.tableLableField), e.autoSets) for (const t2 of e.autoSets) t2.source && -1 == n.indexOf(t2.source) && n.push(t2.source);
|
|
48
|
+
return a.props.queryFields = n, a.props.pageSize = e.displayQuantity, a;
|
|
49
|
+
}
|
|
50
|
+
function getServiceQueryInfo(e, t, o) {
|
|
51
|
+
const a = { type: "service" };
|
|
52
|
+
if (a.valueLabelSwitch = !!e.valueLabelSwitch, a.props = { serivceCode: e.serviceCode, systemCode: e.tableSysCode ? e.tableSysCode : t, systemVersion: e.tableSysVersion ? e.tableSysVersion : o }, e.serviceInputs) {
|
|
53
|
+
const t2 = [];
|
|
54
|
+
for (const o2 of e.serviceInputs) {
|
|
55
|
+
if (!o2.name || o2.value) continue;
|
|
56
|
+
const e2 = {};
|
|
57
|
+
Object.assign(e2, o2), t2.push(e2);
|
|
58
|
+
}
|
|
59
|
+
a.props.inputs = t2;
|
|
60
|
+
}
|
|
61
|
+
return a.props.dataSetField = e.serviceDataSetField, a.props.valueField = e.serviceValueField, a.props.labelField = e.serviceLabelField, a;
|
|
62
|
+
}
|
|
63
|
+
function updateChartDatasources(e, t, o, a) {
|
|
64
|
+
return new Promise((r, n) => {
|
|
65
|
+
if (!t || 0 == t.length) return void n(new Error("无需查询的统计图配置!"));
|
|
66
|
+
const s = commonUtil.deepCopy(t);
|
|
67
|
+
s.forEach((t2) => {
|
|
68
|
+
const o2 = t2.services;
|
|
69
|
+
if (o2 && o2.length > 0) {
|
|
70
|
+
const t3 = o2[0].serviceInputs;
|
|
71
|
+
t3 && (o2[0].serviceInParams = {}, t3.forEach((t4) => {
|
|
72
|
+
const a2 = t4.name, r2 = t4.value;
|
|
73
|
+
o2[0].serviceInParams[a2] = getValueFromVariable(e.entity, r2);
|
|
74
|
+
}), delete o2[0].serviceInputs);
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
const i = e.entity ? e.entity : {}, u = {};
|
|
78
|
+
i.request && Object.assign(u, i.request), i.page && Object.assign(u, i.page), o && Object.assign(u, o);
|
|
79
|
+
const l = {};
|
|
80
|
+
i.task && Object.assign(l, i.task);
|
|
81
|
+
const p = { entityMap: i.data, additionalParamMap: u, taskMap: l, dataSourceList: s, systemCode: e.systemCode, pageCode: e.code }, c = e.backendUrl, g = commonUtil.getBaseUrl(c, e.isTest) + "/common/common-data/find-chart-datas";
|
|
82
|
+
http.post(g, p, { headers: { customSystem: e.systemCode } }).then((t2) => {
|
|
83
|
+
var _a, _b;
|
|
84
|
+
e.chartDataSourceMap || (e.chartDataSourceMap = {});
|
|
85
|
+
for (const o2 in t2) {
|
|
86
|
+
e.chartDataSourceMap[o2] = t2[o2];
|
|
87
|
+
const r2 = globalRefs.getComponentRef(e, o2);
|
|
88
|
+
if (r2) {
|
|
89
|
+
const n2 = r2.getConfigure();
|
|
90
|
+
if ((!a || n2 && (void 0 === n2.initializationQuery || n2.initializationQuery)) && r2.updateChartDatas && (r2.updateChartDatas(t2[o2]), (_b = (_a = n2.runtime) == null ? void 0 : _a.dataConfig) == null ? void 0 : _b.resultSet)) {
|
|
91
|
+
const a2 = t2[o2] && t2[o2].length > 0 ? t2[o2][0] : {}, r3 = a2 && a2.result ? a2.result : {};
|
|
92
|
+
let s2 = null;
|
|
93
|
+
n2.serviceDataField ? s2 = r3[n2.serviceDataField] : r3 && (s2 = Array.isArray(r3) ? r3 : [r3]), s2 || (s2 = []), setValueForVariableName(e.entity, n2.runtime.dataConfig.resultSet, s2);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
r(t2);
|
|
98
|
+
}).catch((e2) => {
|
|
99
|
+
n(e2);
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
function updateChartDatasourcesByComponent(e, t) {
|
|
104
|
+
const o = e.initChartServiceConfigs.find((e2) => e2.uuid === t);
|
|
105
|
+
o && updateChartDatasources(e, [o], null, false);
|
|
106
|
+
}
|
|
107
|
+
function updateOptionDatasources(e, t, o) {
|
|
108
|
+
return new Promise((a, r) => {
|
|
109
|
+
if (!t || 0 == t.length) return void r(new Error("无需查询的配置!"));
|
|
110
|
+
const n = e.entity ? e.entity : {}, s = {};
|
|
111
|
+
n.request && Object.assign(s, n.request), n.page && Object.assign(s, n.page), s.query = o;
|
|
112
|
+
const i = { entityMap: n.data, additionalParamMap: s, dataSourceList: t, systemCode: e.systemCode, query: o }, u = e.backendUrl, l = commonUtil.getBaseUrl(u, e.isTest) + "/common/common-data/find-datas";
|
|
113
|
+
http.post(l, i).then((t2) => {
|
|
114
|
+
e.optionSourceMap || (e.optionSourceMap = {});
|
|
115
|
+
for (const o2 in t2) {
|
|
116
|
+
e.optionSourceMap[o2] = t2[o2];
|
|
117
|
+
const a2 = globalRefs.getComponentRef(e, o2);
|
|
118
|
+
a2 && a2.updateOptions && a2.updateOptions(t2[o2]);
|
|
119
|
+
}
|
|
120
|
+
a(t2);
|
|
121
|
+
}).catch((e2) => {
|
|
122
|
+
r(e2);
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
function getOptionDatasFromPage(e, t) {
|
|
127
|
+
return getComponentOptionDatasFromPage(e, t.uuid);
|
|
128
|
+
}
|
|
129
|
+
function getComponentOptionDatasFromPage(e, t) {
|
|
130
|
+
const o = getOptionDatasSourceMap(e)[t];
|
|
131
|
+
return o || [];
|
|
132
|
+
}
|
|
133
|
+
function getOptionDatasSourceMap(e) {
|
|
134
|
+
if (!e || !e.optionSourceMap) return {};
|
|
135
|
+
const t = e.optionSourceMap;
|
|
136
|
+
return t || {};
|
|
137
|
+
}
|
|
138
|
+
function getChartDatasFromPage(e, t) {
|
|
139
|
+
if (!e || !e.chartDataSourceMap || !t) return null;
|
|
140
|
+
return e.chartDataSourceMap[t.uuid];
|
|
141
|
+
}
|
|
142
|
+
function queryOptionDatasources(e, t, o) {
|
|
143
|
+
return updateOptionDatasources(e, t ? [t] : [], o);
|
|
144
|
+
}
|
|
145
|
+
function autoSetAfterSelect(e, t, o, a, r = []) {
|
|
146
|
+
if (!o || 0 == o.length) return;
|
|
147
|
+
const n = t.entity ? t.entity : {};
|
|
148
|
+
for (const e2 of o) {
|
|
149
|
+
if (!e2.source || !e2.target || r.includes(e2.target)) continue;
|
|
150
|
+
const t2 = getValuesByField(a, e2.source);
|
|
151
|
+
let o2 = e2.target;
|
|
152
|
+
if (!o2 || !o2.startsWith("${")) continue;
|
|
153
|
+
o2 = o2.substring(2, o2.length - 1);
|
|
154
|
+
const s = o2.split(".");
|
|
155
|
+
setVariableValue(n, s, null == t2 ? null : t2.join(","));
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
function getValuesByField(e, t) {
|
|
159
|
+
if (e) {
|
|
160
|
+
const o = [];
|
|
161
|
+
for (const a of e) {
|
|
162
|
+
let e2 = a[t];
|
|
163
|
+
null != e2 && null != e2 || (e2 = ""), o.push(e2);
|
|
164
|
+
}
|
|
165
|
+
return o;
|
|
166
|
+
}
|
|
167
|
+
return null;
|
|
168
|
+
}
|
|
169
|
+
function getVariableValue(e, t) {
|
|
170
|
+
if (!e || !t || 0 == t.length) return;
|
|
171
|
+
let o = e;
|
|
172
|
+
for (let e2 = 0; e2 < t.length; e2++) {
|
|
173
|
+
if (null == o) return o;
|
|
174
|
+
o = o[t[e2]];
|
|
175
|
+
}
|
|
176
|
+
return o;
|
|
177
|
+
}
|
|
178
|
+
function setValueForVariableName(e, t, o) {
|
|
179
|
+
if (!t || !t.startsWith("${")) return;
|
|
180
|
+
setVariableValue(e, (t = t.substring(2, t.length - 1)).split("."), o);
|
|
181
|
+
}
|
|
182
|
+
function setVariableValue(e, t, o) {
|
|
183
|
+
if (!e || !t || 0 == t.length) return;
|
|
184
|
+
let a = e;
|
|
185
|
+
for (let e2 = 0; e2 < t.length; e2++) {
|
|
186
|
+
const r = t[e2];
|
|
187
|
+
e2 + 1 === t.length ? a[r] = void 0 === o ? null : o : (void 0 === a[r] && (a[r] = {}), a = a[r]);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
function setVariableValueWithProp(e, t, o) {
|
|
191
|
+
if (!e || !t) return;
|
|
192
|
+
setVariableValue(e, t.split("."), o);
|
|
193
|
+
}
|
|
194
|
+
function formatVariableValue(e, t) {
|
|
195
|
+
if (!e || "" == t || null == t || null == t) return t;
|
|
196
|
+
const o = e.entity ? e.entity : {}, a = getParamNames(t);
|
|
197
|
+
for (const e2 in a) {
|
|
198
|
+
const r = a[e2], n = getValueFromVariable(o, r);
|
|
199
|
+
if (n && "[object Date]" === Object.prototype.toString.call(n)) return dayjs(n).format("YYYY-MM-DD HH:mm:ss");
|
|
200
|
+
if (n && "number" == typeof n) return n;
|
|
201
|
+
t = t.replace(r, null == n ? "" : n);
|
|
202
|
+
}
|
|
203
|
+
return t;
|
|
204
|
+
}
|
|
205
|
+
function getParamNames(e) {
|
|
206
|
+
if (!e) return [];
|
|
207
|
+
const t = e.match(/\$\{[^\{|\}]+\}/g);
|
|
208
|
+
return t || [];
|
|
209
|
+
}
|
|
210
|
+
function formatValueByType(e, t, o) {
|
|
211
|
+
if (!t || "" == e || null == e || null == e) return e;
|
|
212
|
+
if (o = o || {}, "number" == t || "percent" == t) {
|
|
213
|
+
if (isNaN(e)) return e;
|
|
214
|
+
let a = parseInt(o.decimalDigit);
|
|
215
|
+
if ((null == a || isNaN(a)) && (a = -1), e = parseFloat(e), "percent" == t && (e *= 100), a > -1 && (e = parseFloat(e.toFixed(a))), "percent" == t) e += "%";
|
|
216
|
+
else {
|
|
217
|
+
if (o.thousandsSeparator) {
|
|
218
|
+
const t2 = e.toString().split(".");
|
|
219
|
+
t2[0] = t2[0].replace(/\B(?=(\d{3})+(?!\d))/g, ","), e = t2.length > 1 ? t2.join(".") : t2[0];
|
|
220
|
+
}
|
|
221
|
+
o.symbol && (e = o.symbol + "" + e);
|
|
222
|
+
}
|
|
223
|
+
return e;
|
|
224
|
+
}
|
|
225
|
+
if ("date" == t || "time" == t) {
|
|
226
|
+
let a = "";
|
|
227
|
+
return "date" == t ? (a = o.dateFormat, a || (a = "YYYY-MM-DD")) : (a = o.timeFormat, a || (a = "HH:mm:ss")), dayjs(e).format(a);
|
|
228
|
+
}
|
|
229
|
+
return "custom" == t && o.formatEventUuid, e;
|
|
230
|
+
}
|
|
231
|
+
function getValueFromVariable(e, t, o) {
|
|
232
|
+
if (null == t || null == t) return t;
|
|
233
|
+
if (t.startsWith("${") && t.endsWith("}")) {
|
|
234
|
+
let a = t.substring(2, t.length - 1), r = null, n = null;
|
|
235
|
+
if (a.startsWith("data.")) a = a.substring(5), n = e.data, r = "data";
|
|
236
|
+
else if (a.startsWith("page.")) a = a.substring(5), r = "page", n = e.page;
|
|
237
|
+
else if (a.startsWith("task.")) a = a.substring(5), r = "task", n = e.task;
|
|
238
|
+
else if (a.startsWith("request.")) a = a.substring(8), r = "request", n = e.request;
|
|
239
|
+
else if (a.startsWith("context.")) a = a.substring(8), r = "context", n = e.context;
|
|
240
|
+
else if (a.startsWith("system.")) a = a.substring(7), r = "system", n = e.system;
|
|
241
|
+
else {
|
|
242
|
+
if (a.startsWith("fixed.")) return a.substring(6);
|
|
243
|
+
a.startsWith("row.") && (a = a.substring(4), n = o, r = "row");
|
|
244
|
+
}
|
|
245
|
+
return a ? getValueFromSource(n, a, r) : "";
|
|
246
|
+
}
|
|
247
|
+
return t;
|
|
248
|
+
}
|
|
249
|
+
function getValueFromSource(e, t, o) {
|
|
250
|
+
if ("context" != o && !e || !t) return;
|
|
251
|
+
const a = t.indexOf(".");
|
|
252
|
+
if (a > -1) {
|
|
253
|
+
const r = t.substring(0, a), n = t.substring(a + 1);
|
|
254
|
+
let s = e[r];
|
|
255
|
+
return s && Array.isArray(s) && s.length > 0 && (s = s[0]), getValueFromSource(s, n, o);
|
|
256
|
+
}
|
|
257
|
+
if ("context" == o) {
|
|
258
|
+
if ("currentDate" == t || "currentTime" == t) return /* @__PURE__ */ new Date();
|
|
259
|
+
if (t.startsWith("currentDate") && t.length > 11) {
|
|
260
|
+
const e2 = t.substring(11), o2 = e2.substring(0, 1);
|
|
261
|
+
let a2 = parseInt(e2.substring(1, e2.length - 1), 10);
|
|
262
|
+
const r = e2.substring(e2.length - 1), n = /* @__PURE__ */ new Date();
|
|
263
|
+
return a2 = "+" === o2 ? a2 : -a2, "d" === r || "w" === r ? (a2 = "w" === r ? 7 * a2 : a2, n.setDate(n.getDate() + a2)) : "m" === r ? n.setMonth(n.getMonth() + a2) : "y" === r && n.setFullYear(n.getFullYear() + a2), n;
|
|
264
|
+
}
|
|
265
|
+
if (!e) return;
|
|
266
|
+
}
|
|
267
|
+
return e[t];
|
|
268
|
+
}
|
|
269
|
+
function caculateShowCondition(pageContext, showConditions, row) {
|
|
270
|
+
if (!showConditions || 0 == showConditions.length || !pageContext || !pageContext.entity) return true;
|
|
271
|
+
const entityData = pageContext.entity;
|
|
272
|
+
let conditions = "";
|
|
273
|
+
const maxLen = showConditions.length;
|
|
274
|
+
for (let e = 0; e < maxLen; e++) {
|
|
275
|
+
const t = showConditions[e], o = t.propName;
|
|
276
|
+
let a = t.operator;
|
|
277
|
+
if (!o || "" === o) continue;
|
|
278
|
+
a || (a = "EQ");
|
|
279
|
+
const r = getValueFromVariable(entityData, o, row);
|
|
280
|
+
let n = getValueFromVariable(entityData, t.propValue, row);
|
|
281
|
+
const s = t.dataType;
|
|
282
|
+
"CONTAIN" != a && "NOT_CONTAIN" != a || r && !r.includes && (a = "CONTAIN" == a ? "EQ" : "NET");
|
|
283
|
+
let i = t.variableIsNull, u;
|
|
284
|
+
if (i || (i = "null"), "IS_NULL" !== a && "IS_NOT_NULL" !== a && (void 0 !== n && "" !== n || (n = null, "null" === i ? a = "IS_NULL" : "notequal" === i ? a = "IS_NOT_NULL" : u = true)), null == u) try {
|
|
285
|
+
u = calculatorUtil.executeExpression(r, a, n, s);
|
|
286
|
+
} catch (e2) {
|
|
287
|
+
u = false;
|
|
288
|
+
}
|
|
289
|
+
const l = t.leftBracket, p = t.rightBracket;
|
|
290
|
+
let c = t.joinSign;
|
|
291
|
+
if (l && null !== l && "" !== l && (conditions += l, conditions += " "), conditions += u + " ", p && null !== p && "" !== p && (conditions += p, conditions += " "), e < maxLen - 1 && c && null !== c && "" !== c) {
|
|
292
|
+
const e2 = c.toLowerCase();
|
|
293
|
+
"and" === e2 ? c = e2.replace("and", "&&") : "or" === e2 && (c = e2.replace("or", "||")), conditions += c + " ";
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
return !conditions || eval("(" + conditions + ")");
|
|
297
|
+
}
|
|
298
|
+
function monitorFieldChange(e, t, o) {
|
|
299
|
+
if (!o || !e || !t || 0 == t.length) return;
|
|
300
|
+
const a = [], r = [];
|
|
301
|
+
for (let e2 of t) if (e2.startsWith("${")) {
|
|
302
|
+
e2 = e2.substring(2, e2.length - 1);
|
|
303
|
+
const t2 = e2.split(".");
|
|
304
|
+
"page" !== t2[0] && "task" !== t2[0] && "data" !== t2[0] || (a.push(t2), r.includes(t2[0]) || r.push(t2[0]));
|
|
305
|
+
}
|
|
306
|
+
let n = getMonitorFieldValues(a, e.entity), s = false;
|
|
307
|
+
for (const t2 of r) vue.watch(e.entity[t2], () => {
|
|
308
|
+
s && clearTimeout(s), s = setTimeout(function() {
|
|
309
|
+
const t3 = getMonitorFieldValues(a, e.entity);
|
|
310
|
+
n != t3 && (n = t3, o());
|
|
311
|
+
}, 200);
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
function getMonitorFieldValues(e, t) {
|
|
315
|
+
let o = "";
|
|
316
|
+
for (const a of e) o += "_" + getVariableValue(t, a);
|
|
317
|
+
return o;
|
|
318
|
+
}
|
|
319
|
+
function getFormPropName(e) {
|
|
320
|
+
return e && e.indexOf("${") >= 0 ? e.substring(e.indexOf(".") + 1, e.lastIndexOf("}")) : e;
|
|
321
|
+
}
|
|
322
|
+
function getSizeConfig(e, t) {
|
|
323
|
+
const o = getPageModeType(e);
|
|
324
|
+
let a;
|
|
325
|
+
return t.props && t.props.size && t.props.size[o] && (a = t.props.size[o]), !a && t.props && t.props.size && (a = t.props.size.pc), a;
|
|
326
|
+
}
|
|
327
|
+
function getPageModeType(e) {
|
|
328
|
+
let t = e.dimensions;
|
|
329
|
+
return t || (t = "pc"), t;
|
|
330
|
+
}
|
|
331
|
+
function isPromise(e) {
|
|
332
|
+
return e && "[object Promise]" === Object.prototype.toString.call(e);
|
|
333
|
+
}
|
|
334
|
+
function decomposeVariable(e) {
|
|
335
|
+
if (!e) return [];
|
|
336
|
+
const t = e.match(/\${(.*?)}/);
|
|
337
|
+
return t ? t[1].split(".") : [];
|
|
338
|
+
}
|
|
339
|
+
function getModelFieldFromPageContext(e, t) {
|
|
340
|
+
if (!t.modelFieldsMap) return;
|
|
341
|
+
let o = null;
|
|
342
|
+
for (let a = 0; a < e.length; a++) {
|
|
343
|
+
const r = e[a];
|
|
344
|
+
a + 1 === e.length && (o = t.modelFieldsMap[r]);
|
|
345
|
+
}
|
|
346
|
+
return o;
|
|
347
|
+
}
|
|
348
|
+
function isNumberDataType(e) {
|
|
349
|
+
return "INTEGER" === e || "LONG" === e || "DOUBLE" === e || "FLOAT_COM" === e;
|
|
350
|
+
}
|
|
351
|
+
function isDateDataType(e) {
|
|
352
|
+
return "DATE" === (e = e ? e.toUpperCase() : "") || "TIME" === e || "DATETIME" === e || "TIMESTAMP" === e;
|
|
353
|
+
}
|
|
354
|
+
exports.autoSetAfterSelect = autoSetAfterSelect, exports.caculateShowCondition = caculateShowCondition, exports.decomposeVariable = decomposeVariable, exports.formatValueByType = formatValueByType, exports.formatVariableValue = formatVariableValue, exports.getChartDatasFromPage = getChartDatasFromPage, exports.getComponentOptionConfigs = getComponentOptionConfigs, exports.getComponentOptionConfigsBase = getComponentOptionConfigsBase, exports.getComponentOptionDatasFromPage = getComponentOptionDatasFromPage, exports.getFormPropName = getFormPropName, exports.getModelFieldFromPageContext = getModelFieldFromPageContext, exports.getOptionDatasFromPage = getOptionDatasFromPage, exports.getOptionDatasSourceMap = getOptionDatasSourceMap, exports.getParamNames = getParamNames, exports.getSizeConfig = getSizeConfig, exports.getValueFromSource = getValueFromSource, exports.getValueFromVariable = getValueFromVariable, exports.getVariableValue = getVariableValue, exports.isDateDataType = isDateDataType, exports.isNumberDataType = isNumberDataType, exports.isPromise = isPromise, exports.monitorFieldChange = monitorFieldChange, exports.queryOptionDatasources = queryOptionDatasources, exports.setValueForVariableName = setValueForVariableName, exports.setVariableValue = setVariableValue, exports.setVariableValueWithProp = setVariableValueWithProp, exports.updateChartDatasources = updateChartDatasources, exports.updateChartDatasourcesByComponent = updateChartDatasourcesByComponent, exports.updateOptionDatasources = updateOptionDatasources;
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const e = require("agilebuilder-ui/src/utils/request"), t = require("./events/standard-event.js"), i = require("./interfaces/page-design-types.js"), s = require("./page-helper-util.js"), n = require("agilebuilder-ui/src/utils/auth"), r = require("./api/page-expose-util.js"), o = require("./common-util.js"), a = require("./events/validator-util.js"), l = require("agilebuilder-ui/src/utils/common-util");
|
|
4
|
+
function u(t2, i2) {
|
|
5
|
+
let s2 = "";
|
|
6
|
+
return t2 && i2 && (s2 = "?listViewTableName=" + t2 + "&listViewTablePublishVersion=" + i2), e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime-param" + s2);
|
|
7
|
+
}
|
|
8
|
+
function p() {
|
|
9
|
+
return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/system-param");
|
|
10
|
+
}
|
|
11
|
+
function d(e2) {
|
|
12
|
+
try {
|
|
13
|
+
const t2 = function(e3) {
|
|
14
|
+
if (!e3) return e3;
|
|
15
|
+
try {
|
|
16
|
+
const t3 = window.CryptoJS.enc.Latin1.parse("qwertyuasdfgh456"), i2 = window.CryptoJS.enc.Latin1.parse("1234567812345678");
|
|
17
|
+
return window.CryptoJS.AES.decrypt(e3, t3, { iv: i2, mode: window.CryptoJS.mode.CBC, padding: window.CryptoJS.pad.ZeroPadding }).toString(CryptoJS.enc.Utf8);
|
|
18
|
+
} catch (t3) {
|
|
19
|
+
return e3;
|
|
20
|
+
}
|
|
21
|
+
}(e2);
|
|
22
|
+
if (!t2) return {};
|
|
23
|
+
return JSON.parse(t2);
|
|
24
|
+
} catch (t2) {
|
|
25
|
+
return e2;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function c(e2) {
|
|
29
|
+
try {
|
|
30
|
+
return e2.props && e2.props.judgeHeavyList.length > 0 ? (e2.props.judgeHeavyList.forEach((e3) => {
|
|
31
|
+
e3.duplicateFieldList && e3.duplicateFieldList.length > 0 && (e3.duplicateFieldList = e3.duplicateFieldList.map((e4) => "string" == typeof e4 ? { propDbName: e4 } : e4));
|
|
32
|
+
}), e2.props.judgeHeavyList) : null;
|
|
33
|
+
} catch (e3) {
|
|
34
|
+
console.error("getJudgeHeavyList error:", e3);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function f(e2, t2) {
|
|
38
|
+
if (e2) {
|
|
39
|
+
const i2 = n.getSessionCache(e2);
|
|
40
|
+
if (i2) {
|
|
41
|
+
const e3 = JSON.parse(i2);
|
|
42
|
+
Object.assign(t2, e3);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function m(e2, t2) {
|
|
47
|
+
let i2, s2 = t2;
|
|
48
|
+
t2 || (i2 = e2.props.base ? e2.props.base : {}, s2 = i2.prop);
|
|
49
|
+
let n2 = null;
|
|
50
|
+
return t2 && !t2.startsWith("${") ? n2 = ["data", t2] : !e2 || s2 && s2.startsWith("${") ? s2.startsWith("${") ? (s2 = s2.substring(2, s2.length - 1), n2 = s2.split("."), e2 && n2.length < 2 && (n2 = [e2.uuid])) : e2 && (n2 = ["page", e2.uuid]) : n2 = ["page", e2.uuid], n2 || e2 ? n2 : ["temp"];
|
|
51
|
+
}
|
|
52
|
+
function g(e2, t2, i2, n2) {
|
|
53
|
+
let r2;
|
|
54
|
+
if (t2 && (r2 = s.formatVariableValue(e2, t2), null != r2 && null != r2 && i2)) {
|
|
55
|
+
let e3 = false;
|
|
56
|
+
"checkbox" == i2 ? e3 = true : "select" == i2 && (e3 = n2), e3 && (r2 = (r2 + "").split(","));
|
|
57
|
+
}
|
|
58
|
+
return r2;
|
|
59
|
+
}
|
|
60
|
+
function b(e2, t2) {
|
|
61
|
+
const i2 = t2.pagePermissions;
|
|
62
|
+
if (i2 && i2.length > 0) {
|
|
63
|
+
for (let t3 = 0; t3 < i2.length; t3++) if (i2[t3].simpleCode === e2) return i2[t3];
|
|
64
|
+
}
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
function y(i2, s2, n2) {
|
|
68
|
+
const r2 = i2.tableRuntimes, o2 = t.getAdditionalParamMap(s2);
|
|
69
|
+
let a2;
|
|
70
|
+
const l2 = i2.code;
|
|
71
|
+
return o2 && Object.keys(o2) > 0 && (a2 = JSON.stringify(o2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes: r2, additionalParamMapJson: a2, pageCode: l2, publishVersion: n2, pageType: i2.pageType });
|
|
72
|
+
}
|
|
73
|
+
const h = ["button-detail", "print-label"];
|
|
74
|
+
exports.controlObjectRenderState = function(e2, t2) {
|
|
75
|
+
if (e2.initInfo) {
|
|
76
|
+
["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((i2) => {
|
|
77
|
+
const s2 = e2.initInfo[i2];
|
|
78
|
+
if (s2) if ("dynamicControlFormEdit" === i2) {
|
|
79
|
+
let i3 = s2.filter((e3) => "_all_fields" === e3.name || e3.name === t2);
|
|
80
|
+
if (i3 && i3.length > 0 && (i3 = i3.filter((e3) => "_all_fields" === e3.name), i3 && i3.length > 0)) {
|
|
81
|
+
const e3 = o.deepCopy(i3[0]);
|
|
82
|
+
e3.name = t2, i3 = [e3];
|
|
83
|
+
}
|
|
84
|
+
r.functions.dynamicControlFormEdit(e2, i3, false);
|
|
85
|
+
} else "disableElement" === i2 ? s2.indexOf(t2) >= 0 && r.functions.disableElement(e2, [t2], false) : "enableElement" === i2 ? s2.indexOf(t2) >= 0 && r.functions.enableElement(e2, [t2], false) : "hideElement" === i2 ? s2.indexOf(t2) >= 0 && r.functions.hideElement(e2, [t2], false) : "showElement" === i2 && s2.indexOf(t2) >= 0 && r.functions.showElement(e2, [t2], false);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
}, exports.convertToPageContext = function(e2) {
|
|
89
|
+
var _a, _b, _c;
|
|
90
|
+
if (null == e2) return null;
|
|
91
|
+
const t2 = { uuid: e2.uuid, name: e2.name, label: e2.label, code: e2.code, version: e2.version, dimensions: e2.dimensions, systemCode: e2.systemCode, systemVersion: e2.systemVersion, backendUrl: e2.backendUrl, rules: {}, tableUuids: e2.tableUuids, listCodesMap: e2.listCodesMap, listCodesInitSearchForm: e2.listCodesInitSearchForm, formNoRuleCode: e2.props ? e2.props.formNoRuleCode : null, judgeHeavyList: c(e2), pageType: e2.pageType, beanName: e2.props ? e2.props.beanName : null, importBeanName: e2.props ? e2.props.importBeanName : null, subTablePageInfo: e2.subTablePageInfo, workflowCode: e2.workflowCode, workflowVersion: e2.workflowVersion, refercePropMap: (_a = e2.runtime) == null ? void 0 : _a.refercePropMap, subTableWatchProps: e2.subTableWatchProps, dataTypeMaps: e2.dataTypeMaps, isWorkflowEntity: void 0 !== ((_b = e2.props) == null ? void 0 : _b.activeWorkflow) ? (_c = e2.props) == null ? void 0 : _c.activeWorkflow : e2.isWorkflowEntity, allChartUuids: e2.allChartUuids, branchFieldAuth: e2.branchFieldAuth, entity: { data: {}, task: {}, request: {}, page: {}, context: e2.contextParam, system: e2.systemParam }, propTitleMap: {} };
|
|
92
|
+
if (e2.props && e2.props.notIdInitializationList) {
|
|
93
|
+
let i2 = e2.props.notIdInitializationList;
|
|
94
|
+
"string" == typeof i2 && (i2 = JSON.parse(i2)), i2.length > 0 && (t2.notIdInitializationList = i2);
|
|
95
|
+
}
|
|
96
|
+
if (e2.variables) {
|
|
97
|
+
const i2 = t2.entity.page;
|
|
98
|
+
for (const t3 of e2.variables) t3.name && (t3.isArrayElement ? i2[t3.name] = [] : t3.defaultValue ? i2[t3.name] = t3.defaultValue : i2[t3.name] = void 0);
|
|
99
|
+
}
|
|
100
|
+
return function(e3) {
|
|
101
|
+
if (l.isMobileBrowser()) {
|
|
102
|
+
e3.entity.page._isMobile = "true";
|
|
103
|
+
const t3 = navigator ? navigator.userAgent : null;
|
|
104
|
+
t3 ? t3.indexOf(" uni-app ") > 0 ? (e3.entity.page._isMobileApp = "true", e3.entity.page._isMobileBrowser = "false") : (e3.entity.page._isMobileApp = "false", e3.entity.page._isMobileBrowser = "true") : (e3.entity.page._isMobileApp = "false", e3.entity.page._isMobileBrowser = "false");
|
|
105
|
+
} else e3.entity.page._isMobile = "false";
|
|
106
|
+
}(t2), Object.assign(t2, e2), t2.dimensions = function() {
|
|
107
|
+
const e3 = window.outerWidth;
|
|
108
|
+
if (!e3) return i.PageDimensions.PC;
|
|
109
|
+
return e3 > 768 ? i.PageDimensions.PC : e3 > 414 ? i.PageDimensions.IPAD : i.PageDimensions.PHONE;
|
|
110
|
+
}(), t2.events = e2.runtime && e2.runtime.events ? e2.runtime.events : [], t2;
|
|
111
|
+
}, exports.getDefaultValue = g, exports.getFormModelFields = function(e2, t2, i2) {
|
|
112
|
+
var _a;
|
|
113
|
+
const n2 = m(t2, i2), r2 = e2.entity;
|
|
114
|
+
if (null == r2.data.ID && null == r2.data.id) {
|
|
115
|
+
let i3, o2, a2 = false;
|
|
116
|
+
t2 && (i3 = t2.props.base ? t2.props.base : {}, o2 = t2.name, a2 = i3.multiple);
|
|
117
|
+
const l2 = s.getVariableValue(r2, n2);
|
|
118
|
+
if (null == l2) {
|
|
119
|
+
const t3 = i3 ? i3.defaultValue : null;
|
|
120
|
+
if (t3) try {
|
|
121
|
+
const l3 = g(e2, t3, o2, a2);
|
|
122
|
+
if (null != l3 && "" !== l3) s.setVariableValue(r2, n2, l3);
|
|
123
|
+
else if (((_a = i3.moreDefaultValue) == null ? void 0 : _a.length) > 0) {
|
|
124
|
+
const t4 = i3.moreDefaultValue;
|
|
125
|
+
for (let i4 = 0; i4 < t4.length; i4++) {
|
|
126
|
+
const l4 = g(e2, t4[i4], o2, a2);
|
|
127
|
+
if (null != l4 && "" !== l4) {
|
|
128
|
+
s.setVariableValue(r2, n2, l4);
|
|
129
|
+
break;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
} catch (e3) {
|
|
134
|
+
console.error("设置默认值出错:", n2, e3);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
return n2;
|
|
139
|
+
}, exports.getModelFields = m, exports.getPermissionCodes = function(e2, t2) {
|
|
140
|
+
var _a, _b;
|
|
141
|
+
if (false === ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isPermission)) return "true";
|
|
142
|
+
const i2 = [];
|
|
143
|
+
if (e2.autoPermissions) for (const s2 of e2.autoPermissions) i2.push(t2.code + "." + s2.simpleCode);
|
|
144
|
+
if (e2.functionCodes) {
|
|
145
|
+
const s2 = e2.sourceTypes ? e2.sourceTypes : [], n2 = e2.functionCodes;
|
|
146
|
+
for (let e3 = 0; e3 < n2.length; e3++) {
|
|
147
|
+
const r2 = n2[e3], o2 = e3 < s2.length ? s2[e3] : "";
|
|
148
|
+
let a2 = "";
|
|
149
|
+
if ("service" == o2) a2 = r2;
|
|
150
|
+
else if ("standard" === o2) a2 = t2.code + "." + r2;
|
|
151
|
+
else {
|
|
152
|
+
a2 = "custom" === b(r2, t2).type ? r2 : t2.code + "." + r2;
|
|
153
|
+
}
|
|
154
|
+
i2.includes(a2) || i2.push(a2);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
return i2.join(",");
|
|
158
|
+
}, exports.packageAdditionalMapWithLocationSearch = function(e2) {
|
|
159
|
+
let t2 = decodeURI(window.location.href);
|
|
160
|
+
try {
|
|
161
|
+
window.top && !Array.isArray(window.top) && (t2 = decodeURI(window.top.location.href));
|
|
162
|
+
} catch (e3) {
|
|
163
|
+
}
|
|
164
|
+
if (t2 && t2.includes("?")) {
|
|
165
|
+
t2 = t2.substring(t2.lastIndexOf("?") + 1);
|
|
166
|
+
const i2 = t2.split("&");
|
|
167
|
+
for (const t3 of i2) {
|
|
168
|
+
const i3 = t3.split("=");
|
|
169
|
+
let s2 = i3[0];
|
|
170
|
+
if (s2) {
|
|
171
|
+
const t4 = i3.length > 1 ? i3[1] : "";
|
|
172
|
+
s2.indexOf("ai__") >= 0 && (s2 = s2.substring(s2.indexOf("ai__") + 4)), e2[s2] = t4;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
e2._t_;
|
|
177
|
+
}, exports.packageAdditionalMapWithPageRequest = function(e2, t2) {
|
|
178
|
+
if (e2) {
|
|
179
|
+
Object.assign(t2, e2);
|
|
180
|
+
f(e2.paramStoreId, t2), delete e2.paramStoreId, e2.jumpMode && (t2.jumpMode = e2.jumpMode);
|
|
181
|
+
}
|
|
182
|
+
}, exports.packageAdditionalMapWithRoute = function(e2, t2) {
|
|
183
|
+
if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query, e2.query)) {
|
|
184
|
+
Object.assign(t2, e2.query);
|
|
185
|
+
f(e2.query.paramStoreId, t2);
|
|
186
|
+
}
|
|
187
|
+
}, exports.packageFormRules = function(e2, t2, i2) {
|
|
188
|
+
var _a, _b;
|
|
189
|
+
const n2 = t2.props && t2.props.base ? t2.props.base.prop : null, r2 = o.isWorkflowPage(e2);
|
|
190
|
+
let l2 = false;
|
|
191
|
+
if (r2 && h.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
|
|
192
|
+
const i3 = e2.fieldPermissionMap.get("all_fields");
|
|
193
|
+
false === (i3 == null ? void 0 : i3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", l2 = true);
|
|
194
|
+
}
|
|
195
|
+
if (n2) {
|
|
196
|
+
const o2 = s.getFormPropName(n2);
|
|
197
|
+
if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[o2] || (e2.rules[o2] = []), t2.props.rules.forEach((e3) => {
|
|
198
|
+
a.packageCustomValidator(e3), !i2 && e3 && e3.required && (e3.required = false);
|
|
199
|
+
}), e2.rules[o2] = t2.props.rules), r2 && !l2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
|
|
200
|
+
const s2 = e2.fieldPermissionMap.get(o2);
|
|
201
|
+
if (!i2 && e2.workflowRules && (e2.workflowRules[o2] || e2.workflowRules.rules && e2.workflowRules.rules[o2])) {
|
|
202
|
+
let t3 = e2.workflowRules[o2];
|
|
203
|
+
if (!t3 && e2.workflowRules.rules && (t3 = e2.workflowRules.rules[o2]), t3 && Array.isArray(t3) && t3.length > 0) for (let e3 = 0; e3 < t3.length; e3++) {
|
|
204
|
+
const i3 = t3[e3];
|
|
205
|
+
if (i3 && i3.required) {
|
|
206
|
+
i3.required = false;
|
|
207
|
+
break;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
else t3 && t3.required && (t3.required = false);
|
|
211
|
+
}
|
|
212
|
+
t2.runtime.props || (t2.runtime.props = {}), s2 ? (!i2 && s2.canEdit && (s2.canEdit = false), false === s2.canEdit ? t2.runtime.props.state = "disabled" : s2.canEdit && (t2.runtime.props.state = "", t2.runtime.props.required = true)) : t2.runtime.props.state = "";
|
|
213
|
+
}
|
|
214
|
+
((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop: o2, events: t2.props.customRuleEvents }));
|
|
215
|
+
}
|
|
216
|
+
}, exports.queryPageDesignByCode = function(t2) {
|
|
217
|
+
return new Promise((i2, s2) => {
|
|
218
|
+
(function(t3) {
|
|
219
|
+
return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime/" + t3);
|
|
220
|
+
})(t2).then((e2) => {
|
|
221
|
+
e2 ? p().then((t3) => {
|
|
222
|
+
t3 && (e2.systemParam = d(t3)), u(e2.listViewTableName, e2.listViewTablePublishVersion).then((t4) => {
|
|
223
|
+
t4 ? (e2.contextParam = d(t4.contextParam), e2.branchFieldAuth = t4.branchFieldAuth, e2.isWorkflowEntity = t4.isWorkflowEntity, e2.dataTypeMaps = t4.dataTypeMaps, i2(e2)) : i2(null);
|
|
224
|
+
});
|
|
225
|
+
}).catch(() => {
|
|
226
|
+
i2(e2);
|
|
227
|
+
}) : i2(null);
|
|
228
|
+
});
|
|
229
|
+
});
|
|
230
|
+
}, exports.queryPageDesignWhenPreview = function(e2, t2) {
|
|
231
|
+
return new Promise((i2, s2) => {
|
|
232
|
+
e2 ? p().then((n2) => {
|
|
233
|
+
n2 && (e2.systemParam = d(n2)), e2.tableRuntimes && Object.keys(e2.tableRuntimes).length > 0 ? y(e2, t2, e2.systemVersion).then((t3) => {
|
|
234
|
+
e2.contextParam = d(t3.contextParam), e2.branchFieldAuth = t3.branchFieldAuth, e2.isWorkflowEntity = t3.isWorkflowEntity, e2.dataTypeMaps = t3.dataTypeMaps, e2.superGridItems = t3.superGrids, i2(e2);
|
|
235
|
+
}).catch((e3) => {
|
|
236
|
+
s2(e3);
|
|
237
|
+
}) : u("", "").then((t3) => {
|
|
238
|
+
t3 ? (e2.contextParam = d(t3.contextParam), e2.branchFieldAuth = t3.branchFieldAuth, e2.isWorkflowEntity = t3.isWorkflowEntity, e2.dataTypeMaps = t3.dataTypeMaps, i2(e2)) : i2(null);
|
|
239
|
+
}).catch((e3) => {
|
|
240
|
+
s2(e3);
|
|
241
|
+
});
|
|
242
|
+
}) : i2(null);
|
|
243
|
+
});
|
|
244
|
+
}, exports.queryPageSuperGrids = y;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
var o = ((o2) => (o2.AUTHENTICATED = "AUTHENTICATED", o2.ANONYMOUS = "ANONYMOUS", o2.AUTHORIZED = "AUTHORIZED", o2))(o || {});
|
|
4
|
+
const e = { page: { label: "页面", functions: [{ label: "页面", path: "temp" }] }, gets: { group: "表单标准功能", label: "获取表单数据", functions: [{ funcType: "AUTHENTICATED", path: "/commons/gets$POST" }] }, workflowGets: { group: "标准流程", label: "获取表单及流程数据", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/gets$POST" }] }, save: { group: "表单标准功能", label: "暂存", functions: [{ code: "create", label: "暂存", path: "/commons$POST" }, { code: "update", label: "修改", path: "/commons$POST" }] }, submit: { group: "表单标准功能", label: "提交", functions: [{ path: "/commons/submits$POST" }] }, exportForm: { group: "表单标准功能", label: "导出报告", functions: [{ path: "/commons/export-reports$POST" }] }, exportPDF: { group: "表单标准功能", label: "导出PDF", functions: [{ path: "/commons/exportPDF$POST" }] }, agree: { group: "表单标准功能", label: "同意", functions: [{ path: "/commons/approves$POST" }] }, disagree: { group: "表单标准功能", label: "不同意", functions: [{ path: "/commons/refuses$POST" }] }, back: { group: "表单标准功能", label: "返回", functions: [] }, workflowSave: { group: "流程表单功能", label: "暂存", functions: [{ label: "暂存", code: "save", funcType: "AUTHENTICATED", path: "/workflow-commons$POST" }, { label: "修改", code: "update", funcType: "AUTHENTICATED", path: "/workflow-commons$PUT" }] }, workflowStart: { group: "流程表单功能", label: "起草", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/start$POST" }] }, submitProcess: { group: "流程表单功能", label: "提交流程", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/submit$POST" }] }, submitTask: { group: "流程表单功能", label: "提交任务", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.submit", path: "/workflow-commons/complete-tasks$POST" }] }, approve: { group: "流程表单功能", label: "同意", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.approve", path: "/workflow-commons/complete-tasks$POST" }] }, refuse: { group: "流程表单功能", label: "不同意", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.refuse", path: "/workflow-commons/complete-tasks$POST" }] }, assign: { group: "流程表单功能", label: "指派", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/assigns$POST" }] }, drawTask: { group: "流程表单功能", label: "领取", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/draw-tasks$POST" }] }, abandonReceive: { group: "流程表单功能", label: "放弃领取", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/abandon-receives$POST" }] }, readed: { group: "流程表单功能", label: "已阅", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.readed", path: "/workflow-commons/complete-tasks$POST" }] }, agreement: { group: "流程表单功能", label: "赞成", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.agreement", path: "/workflow-commons/complete-tasks$POST" }] }, oppose: { group: "流程表单功能", label: "反对", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.oppose", path: "/workflow-commons/complete-tasks$POST" }] }, kiken: { group: "流程表单功能", label: "弃权", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.kiken", path: "/workflow-commons/complete-tasks$POST" }] }, addSigner: { group: "流程表单功能", label: "加签", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/add-signers$POST" }] }, removeSigner: { group: "流程表单功能", label: "减签", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/remove-signers$POST" }, { code: "getRemoveSigners", label: "获取可减签人员", funcType: "AUTHENTICATED", path: "/workflow-commons/get-remove-signers$POST" }] }, copyTask: { group: "流程表单功能", label: "抄送", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/copies$POST" }] }, retrieveTask: { group: "流程表单功能", label: "取回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/retrieves$POST" }] }, returnToPreviousTask: { group: "流程表单功能", label: "驳回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/return-to-previous-tasks$POST" }] }, returnTaskTo: { group: "流程表单功能", label: "退回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/returnTaskTo$POST" }, { code: "returnableTaskInformation", label: "获取可退回环节信息", funcType: "AUTHENTICATED", path: "/workflow-commons/returnable-task/{taskId}$POST" }] }, endInstance: { group: "流程表单功能", label: "强制结束", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/end-instance$POST" }] }, extractWorkflow: { group: "流程表单功能", label: "抽单", functions: [{ label: "发起抽单", code: "initiateExtract", funcType: "AUTHENTICATED", path: "/workflow-commons/initiate-extract$POST" }] }, cancelExtractWorkflow: { group: "流程表单功能", label: "取消抽单", functions: [{ label: "取消抽单", code: "cancelExtract", funcType: "AUTHENTICATED", path: "/workflow-commons/cancel-extract$POST" }] }, approveExtractWorkflow: { group: "流程表单功能", label: "同意抽单", functions: [{ label: "同意抽单", code: "approveExtract", funcType: "AUTHENTICATED", path: "/workflow-commons/approve-extract$POST" }] }, refuseExtractWorkflow: { group: "流程表单功能", label: "不同意抽单", functions: [{ label: "不同意抽单", code: "refuseExtract", funcType: "AUTHENTICATED", path: "/workflow-commons/refuse-extract$POST" }] }, listData: { group: "列表功能", label: "列表数据", functions: [{ funcType: "AUTHENTICATED", path: "/commons/list$POST" }] }, listSubData: { group: "列表功能", label: "列表子级", functions: [{ funcType: "AUTHENTICATED", path: "/commons/list-subs$POST" }] }, saveList: { group: "列表功能", label: "暂存", props: { base: { type: "info", plain: true } }, functions: [{ code: "create", label: "暂存", path: "/commons$POST" }, { funcType: "AUTHENTICATED", code: "update", label: "修改", path: "/commons$POST" }] }, delete: { group: "列表功能", label: "删除", props: { base: { type: "danger", plain: true } }, functions: [{ path: "/commons/{tableName}$DELETE" }] }, submitList: { group: "列表功能", label: "提交", props: { base: { type: "primary" } }, functions: [{ path: "/commons/batch-submits$POST" }] }, agreeList: { group: "列表功能", label: "同意", props: { base: { type: "success", plain: true } }, functions: [{ path: "/commons/batch-approves$POST" }] }, disagreeList: { group: "列表功能", label: "不同意", props: { base: { type: "danger", plain: true } }, functions: [{ path: "/commons/batch-refuses$POST" }] }, import: { group: "列表功能", label: "导入", props: { base: { type: "primary", plain: true } }, functions: [{ path: "/commons/import-data$POST" }] }, export: { group: "列表功能", label: "导出", props: { base: { type: "success", plain: true } }, functions: [{ path: "/commons/export-list-data$POST" }] }, search: { group: "列表功能", label: "查询", functions: [] }, showMobileSearch: { group: "列表功能", label: "显示移动端查询区域", functions: [] }, downloadTemplate: { group: "列表功能", label: "下载导入模板", functions: [{ path: "/commons/download-files$GET" }] }, lineEditCreate: { group: "列表行编辑功能", label: "新建", props: { base: { type: "primary" } }, functions: [{ code: "create", label: "暂存", path: "/commons$POST" }] }, lineEditSave: { group: "列表行编辑功能", label: "保存", props: { base: { type: "success", text: true } }, functions: [{ code: "create", label: "保存", path: "/commons$POST" }, { code: "update", label: "修改", path: "/commons$POST" }] }, lineEditDelete: { group: "列表行编辑功能", label: "删除", props: { base: { type: "danger", text: true } }, functions: [{ code: "delete", path: "/commons/{tableName}$DELETE" }] }, lineEditUpdate: { group: "列表行编辑功能", label: "修改", props: { base: { type: "primary", text: true } }, functions: [{ code: "update", label: "修改", path: "/commons$POST" }] }, restoreEdit: { group: "列表行编辑功能", label: "取消", props: { base: { type: "info", text: true } }, functions: [] }, addTransactor: { group: "流程表单功能", label: "增加办理人", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/add-transactors$POST" }] }, removeTransactor: { group: "流程表单功能", label: "减少办理人", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/remove-transactors$POST" }, { code: "getRemoveTransactors", label: "获取可减少办理人员", funcType: "AUTHENTICATED", path: "/workflow-commons/get-remove-transactors$POST" }] } }, t = {};
|
|
5
|
+
exports.FuncType = o, exports.getFunctionInfo = function(o2) {
|
|
6
|
+
if (!o2) return;
|
|
7
|
+
let a = t[o2];
|
|
8
|
+
if (null == a) {
|
|
9
|
+
for (const t2 in e) {
|
|
10
|
+
const n = e[t2].functions;
|
|
11
|
+
if (n) {
|
|
12
|
+
for (const e2 of n) {
|
|
13
|
+
if (o2 === (e2.code ? e2.code : t2)) {
|
|
14
|
+
a = e2;
|
|
15
|
+
break;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
if (a) break;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
t[o2] = a || "";
|
|
22
|
+
}
|
|
23
|
+
return a || void 0;
|
|
24
|
+
}, exports.getStandPermissionInfo = function(o2) {
|
|
25
|
+
return o2 ? e[o2] : void 0;
|
|
26
|
+
};
|