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,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const e = require("vue"), o = require("pinia"), t = require("./eventBus.js"), n = o.defineStore("pageContextUtil", () => {
|
|
4
|
+
const o2 = e.ref({ systemCode: "", systemVersion: -1 }), n2 = e.ref(false), u = e.ref(false), a = e.ref(false), r = e.ref([]), i = e.ref(0), l = e.ref(0);
|
|
5
|
+
let s = null, c = -1, d = -1, v = 0;
|
|
6
|
+
function f() {
|
|
7
|
+
s && clearTimeout(s), s = setTimeout(() => {
|
|
8
|
+
e.nextTick(() => {
|
|
9
|
+
!function() {
|
|
10
|
+
const e2 = i.value, o3 = l.value;
|
|
11
|
+
if (v++, v >= 100) return void (e2 > 0 && e2 === o3 && m(true));
|
|
12
|
+
if (e2 > 0 && e2 === o3) {
|
|
13
|
+
if (e2 === c && o3 === d && !n2.value) return void m(true);
|
|
14
|
+
c = e2, d = o3, f();
|
|
15
|
+
} else c = -1, d = -1, f();
|
|
16
|
+
}();
|
|
17
|
+
});
|
|
18
|
+
}, 30);
|
|
19
|
+
}
|
|
20
|
+
function m(e2) {
|
|
21
|
+
n2.value = e2, p();
|
|
22
|
+
}
|
|
23
|
+
function p() {
|
|
24
|
+
n2.value && u.value && !a.value && (t.$emit("pageLoaded"), a.value = true);
|
|
25
|
+
}
|
|
26
|
+
return { pageContext: o2, setPageContext: function(e2) {
|
|
27
|
+
o2.value = e2;
|
|
28
|
+
}, countComponentsTotalNmber: function() {
|
|
29
|
+
i.value++, n2.value = false, a.value = false;
|
|
30
|
+
}, countComponentsLoadedNumber: function() {
|
|
31
|
+
l.value++, f();
|
|
32
|
+
}, componentsTotalNmber: i, componentsLoadedNumber: l, setPageComponentsLoaded: m, setFormPageDataLoadState: function(e2) {
|
|
33
|
+
u.value = e2, p();
|
|
34
|
+
}, formPageDataLoaded: u, pageComponentsLoaded: n2, restorePageLoadState: function() {
|
|
35
|
+
n2.value = false, u.value = false, a.value = false;
|
|
36
|
+
}, pageLoaded: a, getPageLoaded: function() {
|
|
37
|
+
return a.value;
|
|
38
|
+
}, setPageLoaded: function(e2) {
|
|
39
|
+
a.value = e2;
|
|
40
|
+
}, setAutoAnchorComponentConditions: function(e2, o3) {
|
|
41
|
+
r.value.push({ uuid: e2, conditions: o3 });
|
|
42
|
+
}, getAutoAnchorComponentConditions: function() {
|
|
43
|
+
return r.value;
|
|
44
|
+
}, resetAutoAnchorComponentConditions: function() {
|
|
45
|
+
r.value = [];
|
|
46
|
+
}, resetComponentCounters: function() {
|
|
47
|
+
i.value = 0, l.value = 0, n2.value = false, a.value = false, c = -1, d = -1, v = 0, s && (clearTimeout(s), s = null);
|
|
48
|
+
} };
|
|
49
|
+
});
|
|
50
|
+
exports.usePageContextStore = n;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const e = require("./store.js");
|
|
4
|
+
function t(e2, t2) {
|
|
5
|
+
return e2 + ":" + t2;
|
|
6
|
+
}
|
|
7
|
+
exports.getPageStoreKey = t, exports.setStoreInfo = function(o, r, s, n) {
|
|
8
|
+
const u = t(o, r);
|
|
9
|
+
let c = e.get(u);
|
|
10
|
+
c || (c = {}, e.set(u, c)), c[s] = n;
|
|
11
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const e = require("./common-util.js"), t = require("agilebuilder-ui/src/utils/request"), s = require("./eventBus.js"), o = require("./page-init-util.js"), n = require("./events/event-util.js"), i = require("./i18n-util.js"), r = require("../views/assemblys/chart/table/chart-table-util.js"), u = require("./page-helper-util.js");
|
|
4
|
+
function a(e2, t2, s2) {
|
|
5
|
+
if (!s2 || !t2) return true;
|
|
6
|
+
const o2 = e2.branchFieldAuth;
|
|
7
|
+
if (o2) {
|
|
8
|
+
const e3 = o2.hasAuthFields;
|
|
9
|
+
if (e3 && e3[t2] && e3[t2].indexOf(s2) >= 0) return true;
|
|
10
|
+
const n2 = o2.allAuthFields;
|
|
11
|
+
if (n2 && n2[t2] && n2[t2].indexOf(s2) >= 0) return false;
|
|
12
|
+
}
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
exports.expressJump = function(e2, t2, s2, o2) {
|
|
16
|
+
let i2;
|
|
17
|
+
const u2 = s2 == null ? void 0 : s2.some((s3) => {
|
|
18
|
+
let u3 = false;
|
|
19
|
+
if (s3.scopeFunc) {
|
|
20
|
+
const i3 = n.getCustomFunc(e2, s3.scopeFunc);
|
|
21
|
+
if (i3) {
|
|
22
|
+
i3.apply(i3, [{ pageContext: e2, configureObj: t2, row: o2 }]) && (u3 = true);
|
|
23
|
+
}
|
|
24
|
+
} else if (s3.showCondition && s3.showCondition.length > 0) {
|
|
25
|
+
r.ExpressionEvaluator.evaluate(e2, s3.showCondition, o2) && (u3 = true);
|
|
26
|
+
} else u3 = true;
|
|
27
|
+
if (u3) return i2 = s3, true;
|
|
28
|
+
});
|
|
29
|
+
return { show: u2, toPage: i2 };
|
|
30
|
+
}, exports.getCurrentUserFileTasks = function(s2, o2, n2) {
|
|
31
|
+
const i2 = e.getBaseUrl(s2, n2);
|
|
32
|
+
return t.get(i2 + "/common/last-unread-file-task/" + o2);
|
|
33
|
+
}, exports.getOperationButtons = function(e2, t2, s2, n2) {
|
|
34
|
+
const r2 = !(!t2.props || !t2.props.base) && t2.props.base.showOperation, u2 = t2.btnList;
|
|
35
|
+
t2.btnList, r2 && u2 && u2.forEach((t3) => {
|
|
36
|
+
const r3 = {}, u3 = Object.assign({}, t3.props.base);
|
|
37
|
+
if ("custom" === t3.name ? u3.customControl = u3.name : u3.elementType = "el-button", void 0 === t3.isPermission || t3.isPermission + "" == "true") {
|
|
38
|
+
const s3 = o.getPermissionCodes(t3, e2);
|
|
39
|
+
s3 && (u3.permission = s3);
|
|
40
|
+
}
|
|
41
|
+
if (u3.label = i.$t(u3.title), u3.sourceButton = { uuid: t3.uuid }, r3.props = u3, void 0 !== n2) {
|
|
42
|
+
const e3 = n2(t3);
|
|
43
|
+
r3.onClick = (e3 == null ? void 0 : e3.onClick) ?? e3, r3.eventName = e3 == null ? void 0 : e3.eventName;
|
|
44
|
+
}
|
|
45
|
+
s2.push(r3);
|
|
46
|
+
});
|
|
47
|
+
}, exports.getTableNameByTableUuid = function(e2, t2) {
|
|
48
|
+
const s2 = e2.tableName;
|
|
49
|
+
if (!t2 && s2) return s2;
|
|
50
|
+
let o2;
|
|
51
|
+
return e2.tableRuntimes && t2 && e2.tableRuntimes[t2] && (o2 = JSON.parse(e2.tableRuntimes[t2].configure)), o2 && o2.props && o2.props.dataOrigin ? o2.props.dataOrigin.tableName : null;
|
|
52
|
+
}, exports.isHasFieldAuth = function(e2, t2) {
|
|
53
|
+
var _a;
|
|
54
|
+
const s2 = e2.tableName;
|
|
55
|
+
let o2 = "";
|
|
56
|
+
const n2 = (_a = t2 == null ? void 0 : t2.props) == null ? void 0 : _a.base;
|
|
57
|
+
if (n2 && n2.prop) {
|
|
58
|
+
const e3 = n2.prop;
|
|
59
|
+
o2 = u.getFormPropName(e3);
|
|
60
|
+
}
|
|
61
|
+
return a(e2, s2, o2);
|
|
62
|
+
}, exports.isHasFieldPermissionAuth = a, exports.popupToPage = function(e2) {
|
|
63
|
+
const t2 = e2.pageContext && e2.pageContext.code;
|
|
64
|
+
s.$emit(t2 + "_open-dialog", e2);
|
|
65
|
+
}, exports.setFileTaskRead = function(s2, o2, n2) {
|
|
66
|
+
const i2 = e.getBaseUrl(s2, n2);
|
|
67
|
+
return t.put(i2 + "/common/file-task-read/" + o2);
|
|
68
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const e = require("./common-util.js"), r = require("agilebuilder-ui/src/utils/request");
|
|
4
|
+
require("./eventBus.js");
|
|
5
|
+
const t = require("./page-init-util.js");
|
|
6
|
+
require("agilebuilder-ui/src/utils/common-util"), require("agilebuilder-ui/src/utils/util"), require("element-plus"), require("agilebuilder-ui/src/utils/auth"), require("./global-refs.js"), require("axios"), require("dayjs"), require("agilebuilder-ui/src/utils/calculator/calculator-util"), require("vue"), require("./events/print-label.js"), require("./page-store.js"), require("agilebuilder-ui/src/utils/i18n-util"), require("vue-i18n"), require("async-validator");
|
|
7
|
+
function a(e2, r2, t2, a2) {
|
|
8
|
+
const i = JSON.parse(JSON.stringify(r2.data));
|
|
9
|
+
e2 && (i.nodeId = null);
|
|
10
|
+
const s = { pageCode: a2.code, pageVersion: a2.version, systemCode: a2.systemCode, beanName: a2.beanName, tableName: t2.props.base.treeTableName, treeLabelProp: t2.props.base.treeLabelProp, treeParentIdProp: t2.props.base.treeParentIdProp, currentNode: i, parentNode: null };
|
|
11
|
+
return t2.props.dataOrigin.beanName && (s.beanName = t2.props.dataOrigin.beanName), r2.parent && r2.parent.level > 0 && (s.parentNode = r2.parent.data), s;
|
|
12
|
+
}
|
|
13
|
+
exports.createTreeNode = (t2, i, s) => new Promise((o, n) => {
|
|
14
|
+
var _a;
|
|
15
|
+
if ("beanName" === ((_a = i.props.dataOrigin) == null ? void 0 : _a.optionValueSetType)) {
|
|
16
|
+
const n2 = s.backendUrl, u = e.getBaseUrl(n2, s.isTest) + "/dsc/commons/tree-node", l = a(true, t2, i, s);
|
|
17
|
+
r.post(u, l).then((e2) => {
|
|
18
|
+
o(e2);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}), exports.deleteNode = (t2, i, s) => new Promise((o, n) => {
|
|
22
|
+
var _a;
|
|
23
|
+
if ("beanName" === ((_a = i.props.dataOrigin) == null ? void 0 : _a.optionValueSetType)) {
|
|
24
|
+
const n2 = s.backendUrl, u = e.getBaseUrl(n2, s.isTest) + "/dsc/commons/tree-node", l = a(false, t2, i, s);
|
|
25
|
+
r.delete(u, { data: l }).then((e2) => {
|
|
26
|
+
o(e2);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}), exports.getMenuTreeData = function(a2, i, s, o, n) {
|
|
30
|
+
return new Promise((s2, o2) => {
|
|
31
|
+
var _a, _b;
|
|
32
|
+
if (i && ((_a = i.props.dataOrigin) == null ? void 0 : _a.optionValueSetType)) if ("beanName" === ((_b = i.props.dataOrigin) == null ? void 0 : _b.optionValueSetType)) {
|
|
33
|
+
const o3 = a2.backendUrl, u = a2.systemCode, l = t.getPermissionCodes(i, a2);
|
|
34
|
+
let p = e.getBaseUrl(o3, a2.isTest) + "/dsc/commons/load-tree-node";
|
|
35
|
+
p = e.getRealRestApiPath(p, u, o3, a2.isTest);
|
|
36
|
+
const d = { pageCode: a2.code, pageVersion: a2.version, tableName: a2.tableName, systemCode: u, functionCode: l, beanName: a2.beanName };
|
|
37
|
+
i.props.dataOrigin.beanName && (d.beanName = i.props.dataOrigin.beanName), n && Object.assign(d, n), r.post(p, d).then((e2) => {
|
|
38
|
+
s2(e2);
|
|
39
|
+
});
|
|
40
|
+
} else {
|
|
41
|
+
const e2 = (i.runtime ? i.runtime : {}).props;
|
|
42
|
+
e2 && e2.staticData ? s2(e2.staticData) : s2([]);
|
|
43
|
+
}
|
|
44
|
+
else s2([]);
|
|
45
|
+
});
|
|
46
|
+
}, exports.updateTreeNode = (t2, i, s) => new Promise((o, n) => {
|
|
47
|
+
var _a;
|
|
48
|
+
if ("beanName" === ((_a = i.props.dataOrigin) == null ? void 0 : _a.optionValueSetType)) {
|
|
49
|
+
const n2 = s.backendUrl, u = e.getBaseUrl(n2, s.isTest) + "/dsc/commons/tree-node";
|
|
50
|
+
r.put(u, a(false, t2, i, s)).then((e2) => {
|
|
51
|
+
o(e2);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue"), t = require("agilebuilder-ui"), n = require("../../../../utils/events/event-util.js"), o = require("../../../../utils/i18n-util.js"), l = { class: "page-runtime-header-btn" }, a = e.defineComponent({ __name: "button-runtime", props: { pageContext: {}, configure: {} }, setup(a2, { expose: c }) {
|
|
3
|
+
const i = a2, r = i.configure.runtime ? i.configure.runtime : {}, u = e.ref(r.props ? r.props : {}), p = r.style, s = r.class;
|
|
4
|
+
function m() {
|
|
5
|
+
return "disabled" === u.value.state || d();
|
|
6
|
+
}
|
|
7
|
+
function d() {
|
|
8
|
+
return void 0 !== i.pageContext.canClick && void 0 !== i.pageContext.clickUuid && (!i.pageContext.canClick && i.pageContext.clickUuid === i.configure.uuid);
|
|
9
|
+
}
|
|
10
|
+
const k = e.ref(null);
|
|
11
|
+
return e.onMounted(() => {
|
|
12
|
+
e.nextTick(() => {
|
|
13
|
+
n.handleAfterInitEvent(null, i.pageContext, i.configure, { componentRef: k.value, entity: i.pageContext.entity.data, pageData: i.pageContext.entity.page });
|
|
14
|
+
});
|
|
15
|
+
}), e.onUnmounted(() => {
|
|
16
|
+
i.pageContext.exportNoticeInfo && i.pageContext.exportNoticeInfo.noticeInterval && clearInterval(i.pageContext.exportNoticeInfo.noticeInterval);
|
|
17
|
+
}), c({ click: function() {
|
|
18
|
+
k.value && k.value.$el.click();
|
|
19
|
+
} }), (a3, c2) => {
|
|
20
|
+
const i2 = e.resolveComponent("el-link"), r2 = e.resolveComponent("el-button");
|
|
21
|
+
return e.openBlock(), e.createElementBlock("span", l, [u.value.text ? (e.openBlock(), e.createBlock(i2, { key: 0, ref_key: "componentRef", ref: k, disabled: m(), class: e.normalizeClass(e.unref(s)), style: e.normalizeStyle(e.unref(p)), type: u.value.type, size: u.value.size, loading: d(), onClick: c2[0] || (c2[0] = (t2) => e.unref(n.handleEvent)(t2, a3.pageContext, a3.configure, "click")) }, { default: e.withCtx(() => [u.value.title && "right" == u.value.iconPosition && !u.value.isTextIcon ? (e.openBlock(), e.createElementBlock(e.Fragment, { key: 0 }, [e.createTextVNode(e.toDisplayString(e.unref(o.$t)(u.value.title)) + " ", 1), u.value.iconValue ? (e.openBlock(), e.createElementBlock(e.Fragment, { key: 0 }, [e.createTextVNode(" ")], 64)) : e.createCommentVNode("", true)], 64)) : e.createCommentVNode("", true), u.value.iconType && u.value.iconValue ? (e.openBlock(), e.createBlock(e.unref(t.SuperIcon), { key: 1, iconType: u.value.iconType, iconValue: u.value.iconValue }, null, 8, ["iconType", "iconValue"])) : e.createCommentVNode("", true), u.value.title && "right" != u.value.iconPosition && !u.value.isTextIcon ? (e.openBlock(), e.createElementBlock(e.Fragment, { key: 2 }, [u.value.iconValue ? (e.openBlock(), e.createElementBlock(e.Fragment, { key: 0 }, [e.createTextVNode(" ")], 64)) : e.createCommentVNode("", true), e.createTextVNode(" " + e.toDisplayString(e.unref(o.$t)(u.value.title)), 1)], 64)) : e.createCommentVNode("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "loading"])) : (e.openBlock(), e.createBlock(r2, { key: 1, ref_key: "componentRef", ref: k, disabled: m(), class: e.normalizeClass(e.unref(s)), style: e.normalizeStyle(e.unref(p)), type: u.value.type, size: u.value.size, round: u.value.round, plain: u.value.plain, loading: d(), onClick: c2[1] || (c2[1] = (t2) => e.unref(n.handleEvent)(t2, a3.pageContext, a3.configure, "click")) }, { default: e.withCtx(() => [u.value.title && "right" == u.value.iconPosition ? (e.openBlock(), e.createElementBlock(e.Fragment, { key: 0 }, [e.createTextVNode(e.toDisplayString(e.unref(o.$t)(u.value.title)) + " ", 1), u.value.iconValue ? (e.openBlock(), e.createElementBlock(e.Fragment, { key: 0 }, [e.createTextVNode(" ")], 64)) : e.createCommentVNode("", true)], 64)) : e.createCommentVNode("", true), u.value.iconType && u.value.iconValue ? (e.openBlock(), e.createBlock(e.unref(t.SuperIcon), { key: 1, iconType: u.value.iconType, iconValue: u.value.iconValue }, null, 8, ["iconType", "iconValue"])) : e.createCommentVNode("", true), u.value.title && "right" != u.value.iconPosition ? (e.openBlock(), e.createElementBlock(e.Fragment, { key: 2 }, [u.value.iconValue ? (e.openBlock(), e.createElementBlock(e.Fragment, { key: 0 }, [e.createTextVNode(" ")], 64)) : e.createCommentVNode("", true), e.createTextVNode(" " + e.toDisplayString(e.unref(o.$t)(u.value.title)), 1)], 64)) : e.createCommentVNode("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]))]);
|
|
22
|
+
};
|
|
23
|
+
} });
|
|
24
|
+
module.exports = a;
|
package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue"), t = require("../../object-render.vue.js"), n = require("../../../../utils/events/event-util.js"), o = e.defineComponent({ __name: "buttongroup-runtime", props: { pageContext: {}, configure: {} }, setup(o2) {
|
|
3
|
+
const r = o2, u = r.configure.runtime ? r.configure.runtime : {}, l = u.class, a = e.computed(() => {
|
|
4
|
+
var _a;
|
|
5
|
+
const { gap: e2 } = ((_a = r.configure) == null ? void 0 : _a.props) ?? {};
|
|
6
|
+
return { ...e2 ? { gap: `${e2}px` } : {}, ...u.style ?? {} };
|
|
7
|
+
}), c = e.ref(null);
|
|
8
|
+
return e.onMounted(() => {
|
|
9
|
+
e.nextTick(() => {
|
|
10
|
+
n.handleAfterInitEvent(null, r.pageContext, r.configure, { componentRef: c.value, entity: r.pageContext.entity.data, pageData: r.pageContext.entity.page });
|
|
11
|
+
});
|
|
12
|
+
}), (n2, o3) => {
|
|
13
|
+
const r2 = e.resolveComponent("el-button-group");
|
|
14
|
+
return e.openBlock(), e.createBlock(r2, { ref_key: "componentRef", ref: c, class: e.normalizeClass(["amb-button-group-main", e.unref(l)]), style: e.normalizeStyle(a.value) }, { default: e.withCtx(() => [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(n2.configure.items, (o4, r3) => (e.openBlock(), e.createBlock(t, { key: o4.uuid, pageContext: n2.pageContext, configure: o4 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["class", "style"]);
|
|
15
|
+
};
|
|
16
|
+
} });
|
|
17
|
+
module.exports = o;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue"), t = require("@element-plus/icons-vue"), n = require("../../../../utils/page-helper-util.js"), o = require("../../../../utils/events/event-util.js"), l = require("../../../../utils/i18n-util.js"), r = { key: 1 }, a = e.defineComponent({ __name: "dropdown-runtime", props: { pageContext: {}, configure: {} }, setup(a2) {
|
|
3
|
+
const i = a2, u = i.configure.runtime ? i.configure.runtime : {}, p = u.style, s = u.class, c = e.ref(u.props ? u.props : {});
|
|
4
|
+
let d = null;
|
|
5
|
+
const f = (i.configure.props && i.configure.props.dataOrigin ? i.configure.props.dataOrigin : {}).optionValueSetType;
|
|
6
|
+
function g(e2) {
|
|
7
|
+
e2 ? o.handleFormEvent(e2, i.pageContext, i.configure, "menuShow") : o.handleFormEvent(e2, i.pageContext, i.configure, "menuHidden");
|
|
8
|
+
}
|
|
9
|
+
d = "variable" == f ? e.computed(() => {
|
|
10
|
+
let e2;
|
|
11
|
+
const t2 = n.formatVariableValue(i.pageContext, c.value.menuField);
|
|
12
|
+
if (t2 && Array.isArray(t2)) {
|
|
13
|
+
e2 = t2;
|
|
14
|
+
for (let t3 = 0; t3 < e2.length; t3++) {
|
|
15
|
+
const n2 = e2[t3];
|
|
16
|
+
n2.label || (n2.label = t3 + 1);
|
|
17
|
+
}
|
|
18
|
+
} else {
|
|
19
|
+
const n2 = (t2 ? t2 + "" : "").trim().split(",");
|
|
20
|
+
e2 = [];
|
|
21
|
+
for (let t3 of n2) e2.push({ value: t3, label: t3 });
|
|
22
|
+
}
|
|
23
|
+
return e2;
|
|
24
|
+
}) : e.ref(c.value.options ? c.value.options : []);
|
|
25
|
+
const m = e.ref(null);
|
|
26
|
+
return e.onMounted(() => {
|
|
27
|
+
e.nextTick(() => {
|
|
28
|
+
o.handleAfterInitEvent(null, i.pageContext, i.configure, { componentRef: m.value, entity: i.pageContext.entity.data, pageData: i.pageContext.entity.page });
|
|
29
|
+
});
|
|
30
|
+
}), (n2, a3) => {
|
|
31
|
+
const i2 = e.resolveComponent("el-button"), u2 = e.resolveComponent("el-icon"), f2 = e.resolveComponent("el-text"), v = e.resolveComponent("el-dropdown-item"), y = e.resolveComponent("el-dropdown-menu"), C = e.resolveComponent("el-dropdown");
|
|
32
|
+
return e.openBlock(), e.createBlock(C, { ref_key: "componentRef", ref: m, class: e.normalizeClass(e.unref(s)), style: e.normalizeStyle(e.unref(p)), placement: c.value.placement, "split-button": c.value.splitButton, disabled: "disabled" === c.value.state, type: c.value.buttonType, size: c.value.size, trigger: c.value.trigger, onVisibleChange: g }, { dropdown: e.withCtx(() => [e.createVNode(y, null, { default: e.withCtx(() => [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(e.unref(d), (t2, r2) => (e.openBlock(), e.createBlock(v, { key: t2, onClick: (l2) => e.unref(o.handleEvent)(l2, n2.pageContext, n2.configure, "click", { menuItem: t2 }) }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(e.unref(l.$t)(t2.label)), 1)]), _: 2 }, 1032, ["onClick"]))), 128))]), _: 1 })]), default: e.withCtx(() => ["button" === c.value.triggerElement ? (e.openBlock(), e.createElementBlock(e.Fragment, { key: 0 }, [c.value.splitButton ? (e.openBlock(), e.createElementBlock("span", r, e.toDisplayString(c.value.title), 1)) : (e.openBlock(), e.createBlock(i2, { key: 0, size: c.value.size, type: c.value.buttonType }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(e.unref(l.$t)(c.value.title)), 1)]), _: 1 }, 8, ["size", "type"]))], 64)) : (e.openBlock(), e.createBlock(f2, { key: 1 }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(e.unref(l.$t)(c.value.title)) + " ", 1), e.createVNode(u2, null, { default: e.withCtx(() => [e.createVNode(e.unref(t.ArrowDown))]), _: 1 })]), _: 1 }))]), _: 1 }, 8, ["class", "style", "placement", "split-button", "disabled", "type", "size", "trigger"]);
|
|
33
|
+
};
|
|
34
|
+
} });
|
|
35
|
+
module.exports = a;
|
package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue"), t = require("../button/button-runtime.vue2.js"), o = e.defineComponent({ __name: "exportpdf-runtime", props: { pageContext: {}, configure: {} }, setup: (o2) => (o3, n) => (e.openBlock(), e.createBlock(t, { configure: o3.configure, pageContext: o3.pageContext }, null, 8, ["configure", "pageContext"])) });
|
|
3
|
+
module.exports = o;
|
package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue");
|
|
3
|
+
require("agilebuilder-ui");
|
|
4
|
+
const t = require("../../../../utils/events/event-util.js"), n = require("../button/button-runtime.vue2.js"), l = require("../../../../utils/i18n-util.js"), o = { key: 1 }, r = e.defineComponent({ __name: "printlabel-runtime", props: { pageContext: {}, configure: {} }, setup(r2) {
|
|
5
|
+
const a = r2, u = a.configure.runtime ? a.configure.runtime : {}, i = e.ref(u.props ? u.props : {}), p = e.ref(false);
|
|
6
|
+
i.value.template && i.value.template.length > 1 && (p.value = true);
|
|
7
|
+
const c = u.style, s = u.class, g = e.ref(null);
|
|
8
|
+
return e.onMounted(() => {
|
|
9
|
+
e.nextTick(() => {
|
|
10
|
+
p.value && t.handleAfterInitEvent(null, a.pageContext, a.configure, { componentRef: g.value, entity: a.pageContext.entity.data, pageData: a.pageContext.entity.page });
|
|
11
|
+
});
|
|
12
|
+
}), (r3, a2) => {
|
|
13
|
+
const u2 = e.resolveComponent("el-button"), d = e.resolveComponent("ArrowDown"), m = e.resolveComponent("el-icon"), v = e.resolveComponent("el-text"), f = e.resolveComponent("el-dropdown-item"), k = e.resolveComponent("el-dropdown-menu"), C = e.resolveComponent("el-dropdown");
|
|
14
|
+
return p.value ? (e.openBlock(), e.createBlock(C, { key: 1, ref_key: "componentRef", ref: g, class: e.normalizeClass(e.unref(s)), style: e.normalizeStyle(e.unref(c)), placement: i.value.placement, "split-button": i.value.splitButton, disabled: "disabled" === i.value.state, type: i.value.buttonType, size: i.value.size, trigger: i.value.trigger }, { dropdown: e.withCtx(() => [e.createVNode(k, null, { default: e.withCtx(() => [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(i.value.template, (n2, o2) => (e.openBlock(), e.createBlock(f, { key: n2, onClick: (l2) => e.unref(t.handleEvent)(l2, r3.pageContext, r3.configure, "click", { menuItem: n2 }) }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(e.unref(l.$t)(n2.label)), 1)]), _: 2 }, 1032, ["onClick"]))), 128))]), _: 1 })]), default: e.withCtx(() => ["button" === i.value.triggerElement ? (e.openBlock(), e.createElementBlock(e.Fragment, { key: 0 }, [i.value.splitButton ? (e.openBlock(), e.createElementBlock("span", o, e.toDisplayString(e.unref(l.$t)(i.value.title)), 1)) : (e.openBlock(), e.createBlock(u2, { key: 0, size: i.value.size, type: i.value.buttonType, onClick: a2[0] || (a2[0] = (n2) => e.unref(t.handleEvent)(n2, r3.pageContext, r3.configure, "menuClick")) }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(e.unref(l.$t)(i.value.title)), 1)]), _: 1 }, 8, ["size", "type"]))], 64)) : (e.openBlock(), e.createBlock(v, { key: 1 }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(e.unref(l.$t)(i.value.title)) + " ", 1), e.createVNode(m, null, { default: e.withCtx(() => [e.createVNode(d)]), _: 1 })]), _: 1 }))]), _: 1 }, 8, ["class", "style", "placement", "split-button", "disabled", "type", "size", "trigger"])) : (e.openBlock(), e.createBlock(n, { key: 0, configure: r3.configure, pageContext: r3.pageContext }, null, 8, ["configure", "pageContext"]));
|
|
15
|
+
};
|
|
16
|
+
} });
|
|
17
|
+
module.exports = r;
|
package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue"), r = require("../../../../utils/charts/chart-util.js"), t = require("../../../../utils/page-helper-util.js"), n = require("../../../../utils/charts/chart-columnline-util.js"), o = require("../../../../utils/events/event-util.js"), a = require("../common/common-chart-header.vue.js"), u = require("echarts/core"), i = require("echarts/renderers"), s = require("echarts/charts"), l = require("echarts/components"), c = require("vue-echarts"), p = e.defineComponent({ __name: "column-line-runtime", props: { pageContext: {}, configure: {} }, setup(p2, { expose: f }) {
|
|
3
|
+
u.use([i.CanvasRenderer, s.LineChart, l.GridComponent, l.LegendComponent, l.TitleComponent, l.TooltipComponent, s.BarChart, l.ToolboxComponent, l.DataZoomComponent]);
|
|
4
|
+
const g = p2, h = e.ref(null), d = e.ref(), m = e.ref(null), C = g.configure.props ? g.configure.props.enableDrill : null, v = g.configure.props ? g.configure.props.drillEndTrigger : null, x = g.configure.props ? g.configure.props.linkPage : null, k = {};
|
|
5
|
+
if (g.configure.items) for (const e2 of g.configure.items) e2.props && e2.props.linkPage && e2.props.linkPage.jumpPageUrl ? k[e2.uuid] = e2 : x && x.jumpPageUrl && (k[e2.uuid] = g.configure);
|
|
6
|
+
const I = g.configure.runtime ? g.configure.runtime : {}, q = I.style, y = I.class, D = I.dataConfig, R = I.headerInfo ? I.headerInfo : {}, b = I.chartOption, V = g.configure.props ? g.configure.props : {}, j = r.getCustomTheme(V.customTheme);
|
|
7
|
+
function T(e2) {
|
|
8
|
+
"clearDrill" == v ? m.value && m.value.closeDrill && m.value.closeDrill(0) : "clickEvent" === v && P(e2);
|
|
9
|
+
}
|
|
10
|
+
function P(e2) {
|
|
11
|
+
if (e2.seriesIndex >= b.series.length) return;
|
|
12
|
+
const r2 = b.series[e2.seriesIndex].uuid, t2 = k[r2];
|
|
13
|
+
if (!t2) return;
|
|
14
|
+
const n2 = { data: e2.data, dataIndex: e2.dataIndex, name: e2.name, seriesId: e2.seriesId, seriesIndex: e2.seriesIndex, seriesName: e2.seriesName, seriesType: e2.seriesType, value: e2.value };
|
|
15
|
+
o.doClickJumpPageEvent(g.pageContext, t2, n2);
|
|
16
|
+
}
|
|
17
|
+
r.initChartOption(g.configure, b), e.onMounted(() => {
|
|
18
|
+
const e2 = t.getChartDatasFromPage(g.pageContext, g.configure);
|
|
19
|
+
e2 && S(e2), d.value && (C || Object.keys(k).length > 0) && d.value.chart.on("click", function(e3) {
|
|
20
|
+
C ? m.value && m.value.drill && m.value.drill(e3, g.configure.cacheDatas) : P(e3);
|
|
21
|
+
}), !C && g.configure.clickSet && d.value && r.monitorChartClickToVariable(g.pageContext, g.configure, d.value.chart);
|
|
22
|
+
});
|
|
23
|
+
let w = R.groupValue;
|
|
24
|
+
function O(e2) {
|
|
25
|
+
D && (true !== e2 && (D.autoRefresh = true), t.updateChartDatasources(g.pageContext, [D], R.drillParams));
|
|
26
|
+
}
|
|
27
|
+
e.watch(R, () => {
|
|
28
|
+
w != R.groupValue && (w = R.groupValue, D && (D.services[0].groupValue = R.groupValue), O(false));
|
|
29
|
+
});
|
|
30
|
+
const E = R.monitorFields;
|
|
31
|
+
function S(e2) {
|
|
32
|
+
var _a;
|
|
33
|
+
e2 || (e2 = []), Array.isArray(e2) && (e2 = e2.length > 0 ? e2[0] : {}), e2 || (e2 = {}), e2.hasRender ? e2.hasRender = true : (e2.hasRender = true, D.autoRefresh || (w = e2.groupValue, w && "checkbox" !== R.groupComponent && (w = w.join(",")), R.groupValue = w), D.autoRefresh && C || r.clearChartSelected(g.pageContext, g.configure, (_a = d.value) == null ? void 0 : _a.chart), D.autoRefresh = false, n.updateChartOption(g.pageContext, g.configure, b, e2), d.value && d.value.setOption(b, true));
|
|
34
|
+
}
|
|
35
|
+
return t.monitorFieldChange(g.pageContext, E, () => {
|
|
36
|
+
O(true);
|
|
37
|
+
}), f({ updateChartDatas: S, exportChart: function() {
|
|
38
|
+
return r.exportCommonChart(d.value, R);
|
|
39
|
+
}, chartOption: b }), (r2, t2) => (e.openBlock(), e.createElementBlock("div", { style: e.normalizeStyle(e.unref(q)), class: e.normalizeClass([e.unref(y), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: h }, [e.withDirectives(e.createVNode(a, { ref_key: "headerRef", ref: m, headerInfo: e.unref(R), configure: r2.configure, pageContext: r2.pageContext, onDrillEnd: T, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[e.vShow, e.unref(R).showHeader || r2.pageContext.showHomepageSearch]]), e.createVNode(e.unref(c), { ref_key: "chartRef", ref: d, class: "amb-chart-content", theme: e.unref(j), option: e.unref(b), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
40
|
+
} });
|
|
41
|
+
module.exports = p;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue"), o = require("@element-plus/icons-vue"), r = e.defineComponent({ __name: "common-chart-header-breadcrumb", props: { headerInfo: { type: Object, required: true } }, emits: ["close-drill"], setup(r2, { emit: t }) {
|
|
3
|
+
const l = t;
|
|
4
|
+
return (t2, n) => {
|
|
5
|
+
const c = e.resolveComponent("el-tag"), s = e.resolveComponent("el-breadcrumb");
|
|
6
|
+
return e.openBlock(), e.createBlock(s, { "separator-icon": e.unref(o.ArrowRight) }, { default: e.withCtx(() => [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(r2.headerInfo.drillOptions, (o2, r3) => (e.openBlock(), e.createBlock(c, { key: o2.name, closable: "", type: "success", style: { "margin-left": "4px" }, onClose: (e2) => {
|
|
7
|
+
l("close-drill", r3);
|
|
8
|
+
} }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(o2.label), 1)]), _: 2 }, 1032, ["onClose"]))), 128))]), _: 1 }, 8, ["separator-icon"]);
|
|
9
|
+
};
|
|
10
|
+
} });
|
|
11
|
+
module.exports = r;
|
package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue"), o = e.defineComponent({ __name: "common-chart-header-group", props: { headerInfo: { type: Object, required: true } }, setup(o2) {
|
|
3
|
+
const l = o2;
|
|
4
|
+
return e.watch(l.headerInfo, () => {
|
|
5
|
+
l.headerInfo;
|
|
6
|
+
}), (l2, a) => {
|
|
7
|
+
const n = e.resolveComponent("el-checkbox"), r = e.resolveComponent("el-checkbox-group"), t = e.resolveComponent("el-radio"), u = e.resolveComponent("el-radio-button"), d = e.resolveComponent("el-radio-group");
|
|
8
|
+
return "checkbox" == o2.headerInfo.groupComponent ? (e.openBlock(), e.createBlock(r, { key: 0, modelValue: o2.headerInfo.groupValue, "onUpdate:modelValue": a[0] || (a[0] = (e2) => o2.headerInfo.groupValue = e2) }, { default: e.withCtx(() => [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(o2.headerInfo.options, (o3) => (e.openBlock(), e.createBlock(n, { label: o3.label, value: o3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"])) : "radio" == o2.headerInfo.groupComponent ? (e.openBlock(true), e.createElementBlock(e.Fragment, { key: 1 }, e.renderList(o2.headerInfo.options, (l3) => (e.openBlock(), e.createBlock(t, { modelValue: o2.headerInfo.groupValue, "onUpdate:modelValue": a[1] || (a[1] = (e2) => o2.headerInfo.groupValue = e2), value: l3.value, label: l3.label }, null, 8, ["modelValue", "value", "label"]))), 256)) : (e.openBlock(), e.createBlock(d, { key: 2, modelValue: o2.headerInfo.groupValue, "onUpdate:modelValue": a[2] || (a[2] = (e2) => o2.headerInfo.groupValue = e2) }, { default: e.withCtx(() => [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(o2.headerInfo.options, (o3) => (e.openBlock(), e.createBlock(u, { label: o3.label, value: o3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"]));
|
|
9
|
+
};
|
|
10
|
+
} });
|
|
11
|
+
module.exports = o;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue"), o = require("@element-plus/icons-vue"), r = require("./common-chart-header-group.vue.js"), t = require("./common-chart-header-breadcrumb.vue.js"), n = require("./common-homepage-search.vue.js"), a = require("../../../../utils/page-helper-util.js"), l = { class: "amb-widget-chart-header" }, i = { class: "amb-widget-chart-header-item" }, d = { class: "amb-widget-chart-header-item amb-widget-chart-header-center" }, h = { class: "amb-widget-chart-header-item" }, c = { key: 0, class: "amb-widget-chart-header-item" }, f = e.defineComponent({ __name: "common-chart-header", props: { headerInfo: { type: Object, required: true }, configure: { type: Object, required: true }, pageContext: { type: Object, required: true } }, emits: ["drill-end"], setup(f2, { expose: s, emit: u }) {
|
|
3
|
+
const m = f2, p = e.ref(null), I = e.ref(), g = u;
|
|
4
|
+
function v(e2) {
|
|
5
|
+
const o2 = m.headerInfo.drillOptions.length;
|
|
6
|
+
if (e2 >= o2) m.headerInfo.drillOptions;
|
|
7
|
+
else {
|
|
8
|
+
for (let r2 = o2 - 1; r2 >= e2; r2--) m.headerInfo.drillOptions.splice(r2, 1);
|
|
9
|
+
k(e2);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
function k(e2) {
|
|
13
|
+
const o2 = {};
|
|
14
|
+
for (let e3 of m.headerInfo.drillOptions) e3.fieldName && (o2[e3.fieldName] = e3.value);
|
|
15
|
+
m.headerInfo.drillParams = o2, m.headerInfo.groupValue = m.headerInfo.options[e2].value, b();
|
|
16
|
+
}
|
|
17
|
+
function b(e2) {
|
|
18
|
+
const o2 = m.configure.clickSet;
|
|
19
|
+
if (!o2 || !o2.variables || 0 === o2.variables.length) return;
|
|
20
|
+
const r2 = {};
|
|
21
|
+
e2 && Object.assign(r2, e2);
|
|
22
|
+
const t2 = m.headerInfo.drillOptions;
|
|
23
|
+
if (t2.length > 0) {
|
|
24
|
+
if (!e2) {
|
|
25
|
+
const e3 = t2[t2.length - 1];
|
|
26
|
+
e3.data && Object.assign(r2, e3.data);
|
|
27
|
+
}
|
|
28
|
+
for (let e3 of t2) e3.rawFieldName && a.setVariableValueWithProp(r2, e3.rawFieldName, e3.value);
|
|
29
|
+
}
|
|
30
|
+
for (let e3 of o2.variables) {
|
|
31
|
+
if (!e3.fieldName || !e3.variable) continue;
|
|
32
|
+
const o3 = a.getValueFromSource(r2, e3.fieldName, void 0);
|
|
33
|
+
a.setValueForVariableName(m.pageContext.entity, e3.variable, o3);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
m.headerInfo.drillOptions || (m.headerInfo.drillOptions = []);
|
|
37
|
+
const y = () => {
|
|
38
|
+
I.value.openSearch();
|
|
39
|
+
};
|
|
40
|
+
return s({ drill: function(e2, o2) {
|
|
41
|
+
const r2 = m.headerInfo.drillOptions.length;
|
|
42
|
+
if (r2 + 1 >= m.headerInfo.options.length) {
|
|
43
|
+
return b(o2 && e2.dataIndex < o2.length ? o2[e2.dataIndex] : void 0), void g("drill-end", e2);
|
|
44
|
+
}
|
|
45
|
+
m.headerInfo.options;
|
|
46
|
+
const t2 = m.headerInfo.options[r2], n2 = o2 && e2.dataIndex < o2.length ? o2[e2.dataIndex] : null, a2 = { fieldName: t2.target ? t2.target.replace(".", "_") : "", rawFieldName: t2.target ? t2.target : "", label: e2.name, value: e2.name, data: n2 };
|
|
47
|
+
m.headerInfo.drillOptions.push(a2), k(r2 + 1);
|
|
48
|
+
}, closeDrill: v }), (a2, s2) => {
|
|
49
|
+
const u2 = e.resolveComponent("el-icon"), m2 = e.resolveComponent("el-tooltip");
|
|
50
|
+
return e.openBlock(), e.createElementBlock("div", l, [e.createElementVNode("div", i, [e.withDirectives(e.createElementVNode("label", { style: e.normalizeStyle(f2.headerInfo.style) }, e.toDisplayString(f2.headerInfo.title) + " ", 5), [[e.vShow, f2.headerInfo.title && (!f2.headerInfo.textAlign || "left" == f2.headerInfo.textAlign)]]), !f2.headerInfo.showDrill || f2.headerInfo.groupPosition && "left" != f2.headerInfo.groupPosition ? e.createCommentVNode("", true) : (e.openBlock(), e.createBlock(t, { key: 0, ref_key: "drillObjRef", ref: p, headerInfo: f2.headerInfo, onCloseDrill: v }, null, 8, ["headerInfo"])), !f2.headerInfo.showGroup || f2.headerInfo.groupPosition && "left" != f2.headerInfo.groupPosition ? e.createCommentVNode("", true) : (e.openBlock(), e.createBlock(r, { key: 1, headerInfo: f2.headerInfo }, null, 8, ["headerInfo"]))]), e.createElementVNode("div", d, [e.withDirectives(e.createElementVNode("label", { style: e.normalizeStyle(f2.headerInfo.style) }, e.toDisplayString(f2.headerInfo.title) + " ", 5), [[e.vShow, f2.headerInfo.title && "center" == f2.headerInfo.textAlign]]), f2.headerInfo.showDrill && "center" == f2.headerInfo.groupPosition ? (e.openBlock(), e.createBlock(t, { key: 0, headerInfo: f2.headerInfo, onCloseDrill: v, ref_key: "drillObjRef", ref: p }, null, 8, ["headerInfo"])) : e.createCommentVNode("", true), f2.headerInfo.showGroup && "center" == f2.headerInfo.groupPosition ? (e.openBlock(), e.createBlock(r, { key: 1, headerInfo: f2.headerInfo }, null, 8, ["headerInfo"])) : e.createCommentVNode("", true)]), e.createElementVNode("div", h, [e.withDirectives(e.createElementVNode("label", { style: e.normalizeStyle(f2.headerInfo.style) }, e.toDisplayString(f2.headerInfo.title) + " ", 5), [[e.vShow, f2.headerInfo.title && "right" == f2.headerInfo.textAlign]]), f2.headerInfo.showDrill && "right" == f2.headerInfo.groupPosition ? (e.openBlock(), e.createBlock(t, { key: 0, headerInfo: f2.headerInfo, onCloseDrill: v, ref_key: "drillObjRef", ref: p }, null, 8, ["headerInfo"])) : e.createCommentVNode("", true), f2.headerInfo.showGroup && "right" == f2.headerInfo.groupPosition ? (e.openBlock(), e.createBlock(r, { key: 1, headerInfo: f2.headerInfo }, null, 8, ["headerInfo"])) : e.createCommentVNode("", true)]), f2.pageContext.showHomepageSearch ? (e.openBlock(), e.createElementBlock("div", c, [e.createVNode(m2, { content: "打开查询弹窗", effect: "light" }, { default: e.withCtx(() => [e.createVNode(u2, { onClick: y }, { default: e.withCtx(() => [e.createVNode(e.unref(o.Search))]), _: 1 })]), _: 1 }), e.createVNode(n, { ref_key: "commonHomepageSearchRef", ref: I, configure: f2.configure, pageContext: f2.pageContext }, null, 8, ["configure", "pageContext"])])) : e.createCommentVNode("", true)]);
|
|
51
|
+
};
|
|
52
|
+
} });
|
|
53
|
+
module.exports = f;
|
package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue"), t = require("../../object-render.vue.js"), o = require("../../../../utils/page-helper-util.js"), r = require("element-plus"), i = require("agilebuilder-ui/src/utils/request");
|
|
3
|
+
require("agilebuilder-ui/src/utils/common-util"), require("agilebuilder-ui/src/utils/util"), require("async-validator"), require("../../../../utils/global-refs.js"), require("agilebuilder-ui/src/utils/calculator/calculator-util"), require("../../../../utils/eventBus.js"), require("../../../../utils/page-store.js"), require("agilebuilder-ui/src/utils/i18n-util"), require("vue-i18n"), require("agilebuilder-ui/src/utils/auth"), require("axios"), require("../../../../utils/events/print-label.js");
|
|
4
|
+
const l = { style: { overflow: "auto", height: "calc(100vh - 140px)" }, ref: "dialogBody" }, a = { class: "dialog-footer" }, n = e.defineComponent({ __name: "common-homepage-search", props: { configure: { type: Object, required: true }, pageContext: { type: Object, default: () => {
|
|
5
|
+
} } }, setup(n2, { expose: u }) {
|
|
6
|
+
const s = n2, c = e.ref(false), p = e.ref({}), d = e.ref(0);
|
|
7
|
+
let g;
|
|
8
|
+
e.onMounted(() => {
|
|
9
|
+
g = setTimeout(() => {
|
|
10
|
+
p.value = JSON.parse(JSON.stringify(s.pageContext.entity));
|
|
11
|
+
}, 200);
|
|
12
|
+
}), e.onUnmounted(() => {
|
|
13
|
+
g && clearTimeout(g);
|
|
14
|
+
});
|
|
15
|
+
const m = e.ref([]), C = () => {
|
|
16
|
+
c.value = false;
|
|
17
|
+
}, f = () => {
|
|
18
|
+
const e2 = r.ElLoading.service({ lock: true, text: "Loading", background: "rgba(0, 0, 0, 0.7)" });
|
|
19
|
+
o.updateChartDatasources(s.pageContext, s.pageContext.initChartServiceConfigs, null, false).then(() => {
|
|
20
|
+
c.value = false;
|
|
21
|
+
}).finally(() => {
|
|
22
|
+
c.value = false, e2.close();
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
function v() {
|
|
26
|
+
s.pageContext.entity = JSON.parse(JSON.stringify(p.value)), d.value++;
|
|
27
|
+
}
|
|
28
|
+
function h() {
|
|
29
|
+
const e2 = {};
|
|
30
|
+
s.pageContext.variables.forEach((t3) => {
|
|
31
|
+
const r2 = "${page." + t3.name + "}";
|
|
32
|
+
e2[r2] = o.getValueFromVariable(s.pageContext.entity, r2, null);
|
|
33
|
+
});
|
|
34
|
+
let t2 = window.localStorage.getItem("HOME_MY_CHARTS_CONDITIONS"), l2 = {};
|
|
35
|
+
t2 && (l2 = JSON.parse(t2)), l2[s.configure.homeChartSettingUserId] = e2;
|
|
36
|
+
const a2 = JSON.stringify(e2);
|
|
37
|
+
window.localStorage.setItem("HOME_MY_CHARTS_CONDITIONS", JSON.stringify(l2)), p.value = JSON.parse(JSON.stringify(s.pageContext.entity)), i.post(window.$vueApp.config.globalProperties.baseAPI + "/component/home-chart-settings/search-conditions", { id: s.configure.homeChartSettingUserId, searchConditionsJson: a2 }).then((e3) => {
|
|
38
|
+
r.ElMessage.success("保存成功"), f();
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
return u({ openSearch: () => {
|
|
42
|
+
c.value = true, m.value = s.configure.pushHomepage.searchConditions;
|
|
43
|
+
} }), (o2, r2) => {
|
|
44
|
+
const i2 = e.resolveComponent("el-empty"), u2 = e.resolveComponent("el-form"), s2 = e.resolveComponent("el-button"), p2 = e.resolveComponent("el-dialog");
|
|
45
|
+
return e.openBlock(), e.createBlock(p2, { modelValue: c.value, "onUpdate:modelValue": r2[0] || (r2[0] = (e2) => c.value = e2), title: "筛选", close: C, "append-to-body": "", fullscreen: "", top: "40vh", append: "", width: "70%", draggable: "" }, { default: e.withCtx(() => [e.createElementVNode("div", l, [m.value && 0 !== m.value.length ? e.createCommentVNode("", true) : (e.openBlock(), e.createBlock(i2, { key: 0, description: "未设置筛选条件", "image-size": 50 })), (e.openBlock(), e.createBlock(u2, { key: d.value }, { default: e.withCtx(() => [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(m.value, (o3) => (e.openBlock(), e.createBlock(t, { key: o3.uuid, configure: o3, pageContext: n2.pageContext }, null, 8, ["configure", "pageContext"]))), 128))]), _: 1 }))], 512)]), footer: e.withCtx(() => [e.createElementVNode("div", a, [e.createVNode(s2, { type: "primary", onClick: f }, { default: e.withCtx(() => r2[1] || (r2[1] = [e.createTextVNode(" 确定 ", -1)])), _: 1, __: [1] }), e.createVNode(s2, { type: "default", onClick: v }, { default: e.withCtx(() => r2[2] || (r2[2] = [e.createTextVNode("重置", -1)])), _: 1, __: [2] }), e.createVNode(s2, { type: "primary", onClick: h }, { default: e.withCtx(() => r2[3] || (r2[3] = [e.createTextVNode(" 保存为默认条件 ", -1)])), _: 1, __: [3] })])]), _: 1 }, 8, ["modelValue"]);
|
|
46
|
+
};
|
|
47
|
+
} });
|
|
48
|
+
module.exports = n;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue"), r = require("../../../../utils/charts/chart-util.js"), t = require("../../../../utils/page-helper-util.js"), o = require("../../../../utils/charts/chart-gauge-util.js"), a = require("../common/common-chart-header.vue.js"), n = require("echarts/core"), u = require("echarts/renderers"), i = require("echarts/charts"), s = require("echarts/components"), c = require("vue-echarts"), h = e.defineComponent({ __name: "gauge-runtime", props: { pageContext: {}, configure: {} }, setup(h2, { expose: l }) {
|
|
3
|
+
n.use([u.CanvasRenderer, i.GaugeChart, s.GridComponent, s.TitleComponent, s.TooltipComponent, s.ToolboxComponent]);
|
|
4
|
+
const p = h2, f = e.ref(null), g = e.ref(), m = e.ref(null), d = p.configure.runtime ? p.configure.runtime : {}, C = d.style, x = d.class, v = d.dataConfig, q = d.headerInfo ? d.headerInfo : {}, y = d.chartOption, w = p.configure.props ? p.configure.props : {}, R = r.getCustomTheme(w.customTheme);
|
|
5
|
+
r.initChartOption(p.configure, y), e.onMounted(() => {
|
|
6
|
+
const e2 = t.getChartDatasFromPage(p.pageContext, p.configure);
|
|
7
|
+
e2 && T(e2);
|
|
8
|
+
});
|
|
9
|
+
let V = q.groupValue;
|
|
10
|
+
function b() {
|
|
11
|
+
v && t.updateChartDatasources(p.pageContext, [v], q.drillParams);
|
|
12
|
+
}
|
|
13
|
+
e.watch(q, () => {
|
|
14
|
+
V != q.groupValue && (V = q.groupValue, v && (v.services[0].groupValue = q.groupValue), b());
|
|
15
|
+
});
|
|
16
|
+
const k = q.monitorFields;
|
|
17
|
+
function T(e2) {
|
|
18
|
+
e2 || (e2 = []), Array.isArray(e2) && (e2 = e2.length > 0 ? e2[0] : {}), e2 || (e2 = {}), e2.hasRender ? e2.hasRender = true : (e2.hasRender = true, o.updateChartOption(p.pageContext, p.configure, y, e2), g.value && g.value.setOption(y, true));
|
|
19
|
+
}
|
|
20
|
+
return t.monitorFieldChange(p.pageContext, k, b), l({ updateChartDatas: T, exportChart: function() {
|
|
21
|
+
return r.exportCommonChart(g.value, q);
|
|
22
|
+
} }), (r2, t2) => (e.openBlock(), e.createElementBlock("div", { style: e.normalizeStyle(e.unref(C)), class: e.normalizeClass([e.unref(x), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: f }, [e.withDirectives(e.createVNode(a, { ref_key: "headerRef", ref: m, headerInfo: e.unref(q), configure: r2.configure, pageContext: r2.pageContext, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[e.vShow, e.unref(q).showHeader || r2.pageContext.showHomepageSearch]]), e.createVNode(e.unref(c), { ref_key: "chartRef", ref: g, class: "amb-chart-content", theme: e.unref(R), option: e.unref(y), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
23
|
+
} });
|
|
24
|
+
module.exports = h;
|