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,249 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue"), o = require("../common/common-chart-header.vue.js"), t = require("../../../../utils/page-helper-util.js"), r = require("../../../../utils/events/event-util.js"), n = require("./group-column.vue.js"), a = require("./normal-column.vue.js"), i = require("./table-pageination.vue.js"), u = require("./chart-table-util.js"), l = require("../../../../utils/common-util.js"), p = e.defineComponent({ __name: "table-runtime", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) } }, setup(p2, { expose: s }) {
|
|
3
|
+
var _a;
|
|
4
|
+
const c = p2, g = c.configure.runtime ? c.configure.runtime : {}, f = g.style, m = g.class, d = g.dataConfig, h = g.headerInfo ? g.headerInfo : {}, C = e.ref(null), v = e.ref(g.props.isEnableGroupHeader), y = e.ref([]), b = e.ref([]), x = e.ref([]), O = e.ref([]), S = e.ref({}), w = e.ref(false), k = e.ref({}), F = e.ref({}), E = e.ref({}), N = [], j = e.ref({}), B = e.ref({}), $ = e.ref(null), V = e.computed(() => v.value ? O.value.filter((e2) => !e2.isLeaf || W(S[e2.columnUuid])) : b.value.filter((e2) => W(e2))), T = e.ref(0);
|
|
5
|
+
let R = [];
|
|
6
|
+
if (!c.configure.props.modelCustom) {
|
|
7
|
+
if (v.value) {
|
|
8
|
+
const e2 = [];
|
|
9
|
+
c.configure.props.groupHeaders.forEach((o2) => {
|
|
10
|
+
o2.parentUuid || e2.push(o2);
|
|
11
|
+
}), e2.sort((e3, o2) => e3.displayOrder - o2.displayOrder), O.value = e2, function() {
|
|
12
|
+
if (c.configure.props.base.showIndex) {
|
|
13
|
+
O.value.unshift({ columnUuid: "$index", displayOrder: 0, isLeaf: true, prop: "$index", titleText: "序号", uuid: "$index" });
|
|
14
|
+
const e3 = u.getIndexColumn();
|
|
15
|
+
e3 && (S.value.$index = e3);
|
|
16
|
+
}
|
|
17
|
+
}();
|
|
18
|
+
} else b.value = c.configure.items;
|
|
19
|
+
(_a = c.configure.items) == null ? void 0 : _a.forEach((e2) => {
|
|
20
|
+
S.value[e2.uuid] = e2, Object.keys(e2.style).length > 0 && (j.value[e2.props.base.prop] = { cellStyle: e2.style, titleStyle: e2.titleStyle }), e2.formula && "" !== e2.formula.trim() && (B.value[e2.props.base.prop] = e2.formula);
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
w.value = c.configure.props.base.showSummary, (w.value || c.configure.props.highOrder.groupField && c.configure.props.highOrder.groupField.length > 0) && (k.value = u.getSummaryTitleColumn(c.configure), w.value && (F.value = u.getSummaryDataColumn(c.configure, "table")), c.configure.props.highOrder.groupField && c.configure.props.highOrder.groupField.length > 0 && (E.value = u.getSummaryDataColumn(c.configure, "group")));
|
|
24
|
+
let I = 300, D = t.getSizeConfig(c.pageContext, c.configure);
|
|
25
|
+
function H(o2) {
|
|
26
|
+
if (o2 || (o2 = []), Array.isArray(o2) && (o2 = o2.length > 0 ? o2[0] : {}), o2 || (o2 = {}), o2.hasRender) return void (o2.hasRender = true);
|
|
27
|
+
const n2 = v.value ? O.value : V;
|
|
28
|
+
r.handleChartEvent(c.pageContext, c.configure, "beforeUpdateChart", n2, { resultData: o2 }), function(o3) {
|
|
29
|
+
var _a2;
|
|
30
|
+
X(o3), "service" === c.configure.props.dataOrigin.dataSource && o3.result ? R = o3.result[c.configure.props.dataOrigin.service.serviceDataField] : "variable" === c.configure.props.dataOrigin.dataSource && (R = t.getValueFromVariable(c.pageContext.entity, c.configure.props.dataOrigin.variable));
|
|
31
|
+
if (R) if (((_a2 = c.configure.props) == null ? void 0 : _a2.dataOrigin.limitEnable) && c.configure.props.dataOrigin.itemNumSource) {
|
|
32
|
+
let r2 = 10;
|
|
33
|
+
if ("fix" === c.configure.props.dataOrigin.itemNumSource) r2 = c.configure.props.dataOrigin.itemNumFix;
|
|
34
|
+
else if ("variable" === c.configure.props.dataOrigin.itemNumSource) {
|
|
35
|
+
r2 = Number(t.getValueFromVariable(c.pageContext.entity, c.configure.props.dataOrigin.itemNumVariable));
|
|
36
|
+
const n3 = c.configure.props.dataOrigin.itemNumVariable.match(/\${(.*?)}/), a2 = n3 ? n3[1].split(".") : [], i2 = JSON.parse(JSON.stringify(R));
|
|
37
|
+
e.watch(() => a2.reduce((e2, o4) => e2[o4], c.pageContext.entity), (e2) => {
|
|
38
|
+
q(e2, i2, o3);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
q(r2, R, o3);
|
|
42
|
+
} else P(R, o3);
|
|
43
|
+
}(o2), o2.hasRender = true, d && (d.autoRefresh = false), r.handleChartEvent(c.pageContext, c.configure, "afterUpdateChart", n2, { resultData: o2 });
|
|
44
|
+
}
|
|
45
|
+
function q(e2, o2, t2) {
|
|
46
|
+
var _a2;
|
|
47
|
+
if (e2 && e2 < o2.length) {
|
|
48
|
+
let r2 = [];
|
|
49
|
+
if (((_a2 = c.configure.props.dataOrigin.limitCountColumns) == null ? void 0 : _a2.length) > 0) r2 = c.configure.props.dataOrigin.limitCountColumns;
|
|
50
|
+
else {
|
|
51
|
+
b.value.filter((e3) => "number" === e3.props.base.dataType).forEach((e3) => {
|
|
52
|
+
r2.push(e3.props.base.prop);
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
if ((r2 == null ? void 0 : r2.length) > 0) {
|
|
56
|
+
const t3 = o2.slice(e2 - 1, o2.length), n2 = {};
|
|
57
|
+
let a2 = b.value[0].props.base.prop;
|
|
58
|
+
"$index" === a2 && (a2 = b.value[1].props.base.prop), t3.forEach((e3) => {
|
|
59
|
+
r2.forEach((o3) => {
|
|
60
|
+
void 0 === n2[o3] && (n2[o3] = 0), n2[o3] = n2[o3] + e3[o3];
|
|
61
|
+
});
|
|
62
|
+
}), o2.length > e2 && (o2 = o2.slice(0, e2 - 1)), n2[a2] = c.configure.props.dataOrigin.overItemAlias, o2.push(n2);
|
|
63
|
+
}
|
|
64
|
+
P(o2, t2);
|
|
65
|
+
} else P(o2, t2);
|
|
66
|
+
}
|
|
67
|
+
function P(e2, o2) {
|
|
68
|
+
var _a2, _b, _c, _d, _e, _f, _g;
|
|
69
|
+
if (U("rowToColumn")) {
|
|
70
|
+
if (x.value = JSON.parse(JSON.stringify(c.configure.items)), e2 = u.rowDataToColumn(e2, c.configure, x.value), !v.value) {
|
|
71
|
+
const o3 = function(e3, o4, t2) {
|
|
72
|
+
const r2 = c.configure.props.dataOrigin.rowToColumn.titleColumns, n2 = c.configure.props.dataOrigin.rowToColumn.dataColumns, a2 = e3.props.dataOrigin.groupField;
|
|
73
|
+
if ((!a2 || 0 === a2.length) && t2.length > 0) {
|
|
74
|
+
const e4 = [];
|
|
75
|
+
return e4.push(u.getNewColumnConfig("$GroupColumn", c.configure.props.dataOrigin.rowToColumn.firstColumnTitle, 0, "string")), Object.keys(t2[0]).forEach((o5, t3) => {
|
|
76
|
+
if ("$GroupColumn" === o5) return;
|
|
77
|
+
const r3 = u.getNewColumnConfig(o5, o5, t3 + 1, "string");
|
|
78
|
+
e4.push(r3);
|
|
79
|
+
}), e4;
|
|
80
|
+
}
|
|
81
|
+
{
|
|
82
|
+
const e4 = [...o4].filter((e5) => !r2.includes(e5.props.base.prop) && !n2.includes(e5.props.base.prop)), a3 = new RegExp(`(${n2.join("|")})$`), i2 = /* @__PURE__ */ new Set();
|
|
83
|
+
return t2.forEach((e5) => {
|
|
84
|
+
Object.keys(e5).forEach((e6) => {
|
|
85
|
+
if (n2.some((o5) => e6.includes(o5))) {
|
|
86
|
+
const o5 = e6.split(a3)[0];
|
|
87
|
+
i2.add(o5);
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
}), i2.forEach((o5) => {
|
|
91
|
+
n2.forEach((r3) => {
|
|
92
|
+
var _a3;
|
|
93
|
+
let n3 = (_a3 = b.value.find((e5) => e5.props.base.prop === r3)) == null ? void 0 : _a3.props.base.name;
|
|
94
|
+
null == n3 && (n3 = "");
|
|
95
|
+
const a4 = u.getNewColumnConfig(`${o5}${r3}`, `${o5}${n3}`, e4.length + 1, "number" == typeof t2[0][`${o5}${r3}`] ? "number" : "string");
|
|
96
|
+
e4.push(a4);
|
|
97
|
+
});
|
|
98
|
+
}), e4;
|
|
99
|
+
}
|
|
100
|
+
}(c.configure, x.value, e2);
|
|
101
|
+
b.value = o3;
|
|
102
|
+
}
|
|
103
|
+
} else U("columnToRow") && (v.value || (b.value = u.getColumnToRowTableConfig(c.configure)), e2 = u.colDataToRow(e2, c.configure));
|
|
104
|
+
if ((_b = (_a2 = c.configure.props) == null ? void 0 : _a2.dataOrigin) == null ? void 0 : _b.dataFormatting) {
|
|
105
|
+
const o3 = r.getCustomFunc(c.pageContext, c.configure.props.dataOrigin.dataFormatting);
|
|
106
|
+
if (o3) {
|
|
107
|
+
const t2 = o3.apply(o3, [{ tableData: e2 }]);
|
|
108
|
+
t2 && (e2 = t2);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
if (Object.keys(B.value).length > 0 && e2 && e2.length > 0 && u.computeFormula(B.value, e2, c.pageContext.entity), ((_c = c.configure.pageination) == null ? void 0 : _c.enable) ? function(e3) {
|
|
112
|
+
"frontend" === c.configure.pageination.type ? (T.value = R.length, M(1, c.configure.pageination.pageSize)) : "backend" === c.configure.pageination.type && (y.value = R, c.configure.pageination.totalFrom && (T.value = e3.result[c.configure.pageination.totalFrom]));
|
|
113
|
+
}(o2) : y.value = e2, ((_e = (_d = c.configure.props) == null ? void 0 : _d.highOrder) == null ? void 0 : _e.groupField) && ((_g = (_f = c.configure.props) == null ? void 0 : _f.highOrder) == null ? void 0 : _g.groupField.length) > 0) {
|
|
114
|
+
const e3 = c.configure.props.highOrder.groupField;
|
|
115
|
+
y.value = function(e4, o3) {
|
|
116
|
+
var _a3, _b2;
|
|
117
|
+
if (0 === E.value.length) return e4;
|
|
118
|
+
const t2 = [], r2 = (_a3 = c.configure.items) == null ? void 0 : _a3.filter((e5) => o3.includes(e5.props.base.prop)), n2 = (_b2 = c.configure.items) == null ? void 0 : _b2.filter((e5) => true === e5.props.base.groupSummary), a2 = {};
|
|
119
|
+
e4.forEach((e5) => {
|
|
120
|
+
const t3 = o3.map((o4) => e5[o4]).join("|");
|
|
121
|
+
a2[t3] || (a2[t3] = []), a2[t3].push(e5);
|
|
122
|
+
});
|
|
123
|
+
const i2 = Object.values(a2);
|
|
124
|
+
for (let e5 = 0; e5 < i2.length; e5++) {
|
|
125
|
+
const o4 = i2[e5], a3 = {};
|
|
126
|
+
n2 == null ? void 0 : n2.forEach((e6) => {
|
|
127
|
+
const t3 = e6.props.base.prop, r3 = u.summaryStatistics(E.value[t3], o4, t3, c.pageContext);
|
|
128
|
+
a3[t3] = r3;
|
|
129
|
+
}), t2.push(...o4), r2 == null ? void 0 : r2.forEach((e6) => {
|
|
130
|
+
const t3 = e6.props.base.prop;
|
|
131
|
+
a3[t3] = u.replacePlaceholders(e6.props.base.summaryTitle, o4[0]);
|
|
132
|
+
}), t2.push(a3), N.push(t2.length - 1);
|
|
133
|
+
}
|
|
134
|
+
return t2;
|
|
135
|
+
}(y.value, e3);
|
|
136
|
+
}
|
|
137
|
+
!function(e3) {
|
|
138
|
+
if (c.configure.props.base.showIndex && -1 === e3.findIndex((e4) => "$index" === e4.props.base.prop)) {
|
|
139
|
+
const o3 = u.getIndexColumn();
|
|
140
|
+
o3 && e3.unshift(o3);
|
|
141
|
+
}
|
|
142
|
+
}(b.value);
|
|
143
|
+
}
|
|
144
|
+
function U(e2) {
|
|
145
|
+
return c.configure.props.dataOrigin.transition === e2 && c.configure.props.dataOrigin[e2].titleColumns && c.configure.props.dataOrigin[e2].titleColumns.length > 0 && c.configure.props.dataOrigin[e2].dataColumns && c.configure.props.dataOrigin[e2].dataColumns.length > 0;
|
|
146
|
+
}
|
|
147
|
+
function z(e2) {
|
|
148
|
+
const o2 = j.value[e2.column.property] ? j.value[e2.column.property].titleStyle : null, t2 = f == null ? void 0 : f.titleStyle;
|
|
149
|
+
return u.getHeaderCellStyleUtil(e2, { cellTitleStyle: o2, titleStyle: t2 }, c);
|
|
150
|
+
}
|
|
151
|
+
function J(e2) {
|
|
152
|
+
return u.getRowStyleUtil(e2, N, c);
|
|
153
|
+
}
|
|
154
|
+
function L(e2) {
|
|
155
|
+
const o2 = j.value[e2.column.property] ? j.value[e2.column.property].cellStyle : null;
|
|
156
|
+
return u.getCellStyleUtil(e2, o2, c);
|
|
157
|
+
}
|
|
158
|
+
D && D.fixHeight && (I = D.fixHeight), D && D.maxHeight && (I = D.maxHeight), I && (I = Number(I + "")), e.onMounted(() => {
|
|
159
|
+
const o2 = t.getChartDatasFromPage(c.pageContext, c.configure);
|
|
160
|
+
if (o2) H(o2);
|
|
161
|
+
else if ("variable" === c.configure.props.dataOrigin.dataSource) {
|
|
162
|
+
!function() {
|
|
163
|
+
const o3 = c.configure.props.dataOrigin.variable.match(/\${(.*?)}/), t2 = o3 ? o3[1].split(".") : [];
|
|
164
|
+
e.watch(() => t2.reduce((e2, o4) => e2[o4], c.pageContext.entity), (e2) => {
|
|
165
|
+
e2 ? H(JSON.parse(JSON.stringify(e2))) : (y.value = [], c.configure.props.modelCustom ? X(null) : v.value ? O.value = c.configure.props.groupHeaders : b.value = c.configure.items);
|
|
166
|
+
});
|
|
167
|
+
}();
|
|
168
|
+
const r2 = t.getValueFromVariable(c.pageContext.entity, c.configure.props.dataOrigin.variable);
|
|
169
|
+
r2 && P(r2, o2);
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
const _ = (o2) => {
|
|
173
|
+
const { columns: t2, data: r2 } = o2, n2 = [];
|
|
174
|
+
return t2.forEach((o3, t3) => {
|
|
175
|
+
if (k.value[o3.property]) {
|
|
176
|
+
const a2 = k.value[o3.property].label;
|
|
177
|
+
return void (n2[t3] = e.h("div", {}, [u.replacePlaceholders(a2, r2)]));
|
|
178
|
+
}
|
|
179
|
+
if (F.value[o3.property]) {
|
|
180
|
+
const e2 = r2.filter((e3, o4) => !N.includes(o4));
|
|
181
|
+
n2[t3] = u.summaryStatistics(F.value[o3.property], e2, o3.property, c.pageContext);
|
|
182
|
+
}
|
|
183
|
+
}), n2;
|
|
184
|
+
};
|
|
185
|
+
function A({ row: e2, column: o2, rowIndex: t2, columnIndex: n2 }) {
|
|
186
|
+
const a2 = o2.property, i2 = c.configure.props.highOrder;
|
|
187
|
+
if (i2.scopeFunc) {
|
|
188
|
+
const a3 = r.getCustomFunc(c.pageContext, i2.scopeFunc);
|
|
189
|
+
if (a3) {
|
|
190
|
+
const r2 = a3.apply(a3, [{ tableData: y.value, row: e2, column: o2, rowIndex: t2, columnIndex: n2 }]);
|
|
191
|
+
if (r2) return r2;
|
|
192
|
+
}
|
|
193
|
+
} else if (i2 && i2.mergeColumn, i2 && i2.mergeRow && i2.mergeRow.includes(a2)) return u.mergeRowByProperty(e2, o2, t2, a2, y.value);
|
|
194
|
+
}
|
|
195
|
+
function G(e2, o2) {
|
|
196
|
+
"frontend" === c.configure.pageination.type ? M(e2, o2) : Q(e2, o2);
|
|
197
|
+
}
|
|
198
|
+
function K(e2, o2) {
|
|
199
|
+
"frontend" === c.configure.pageination.type ? M(e2, o2) : Q(e2, o2);
|
|
200
|
+
}
|
|
201
|
+
function M(e2, o2) {
|
|
202
|
+
R && (y.value = R.slice((e2 - 1) * o2, e2 * o2));
|
|
203
|
+
}
|
|
204
|
+
function Q(e2, o2) {
|
|
205
|
+
c.configure.pageination.currentPageSet && t.setValueForVariableName(c.pageContext.entity, c.configure.pageination.currentPageSet, e2), c.configure.pageination.pageSizeSet && t.setValueForVariableName(c.pageContext.entity, c.configure.pageination.pageSizeSet, o2), t.updateChartDatasourcesByComponent(c.pageContext, c.configure.uuid);
|
|
206
|
+
}
|
|
207
|
+
function W(e2) {
|
|
208
|
+
const o2 = e2.showCondition;
|
|
209
|
+
return t.caculateShowCondition(c.pageContext, o2);
|
|
210
|
+
}
|
|
211
|
+
function X(e2) {
|
|
212
|
+
if (c.configure.props.modelCustom) {
|
|
213
|
+
const o2 = r.getCustomFunc(c.pageContext, c.configure.props.modelCustom);
|
|
214
|
+
if (o2) {
|
|
215
|
+
const r2 = o2.apply(o2, [{ pageContext: c.pageContext, configureObj: c.configure, value: e2 }]);
|
|
216
|
+
t.isPromise(r2) ? r2.then((e3) => {
|
|
217
|
+
b.value = e3.columns;
|
|
218
|
+
}) : b.value = r2.columns;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
function Y(e2, o2, t2) {
|
|
223
|
+
e2.forEach((e3) => {
|
|
224
|
+
const r2 = e3.props.base.prop, n2 = e3.props.base.name;
|
|
225
|
+
let a2 = { name: r2, label: n2, i18nKey: n2 };
|
|
226
|
+
e3.children && e3.children.length > 0 && (a2.children = [], Y(e3.children, a2.children, t2)), e3.props.format && e3.props.format.type && t2.push(e3), o2.push(a2);
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
return s({ updateChartDatas: H, exportChart: function() {
|
|
230
|
+
let e2 = [], o2 = [];
|
|
231
|
+
o2 = v.value ? c.configure.props.groupHeaders : V.value;
|
|
232
|
+
let t2 = [];
|
|
233
|
+
Y(o2, e2, t2);
|
|
234
|
+
return { isTable: true, dataArr: function(e3) {
|
|
235
|
+
let o3 = [];
|
|
236
|
+
y.value && (o3 = l.deepCopy(y.value), o3.forEach((o4) => {
|
|
237
|
+
e3.forEach((e4) => {
|
|
238
|
+
const t3 = u.formatColContent(o4, e4.props.format, e4, c.pageContext, c.configure);
|
|
239
|
+
o4[e4.props.base.prop] = t3;
|
|
240
|
+
});
|
|
241
|
+
}));
|
|
242
|
+
return o3;
|
|
243
|
+
}(t2), columns: e2, title: h == null ? void 0 : h.title };
|
|
244
|
+
} }), (t2, r2) => {
|
|
245
|
+
const u2 = e.resolveComponent("el-table");
|
|
246
|
+
return e.openBlock(), e.createElementBlock("div", { style: e.normalizeStyle(e.unref(f)), class: e.normalizeClass([e.unref(m), "amb-widget-chart amb-widget-flex"]), ref: "thisRef" }, [e.withDirectives(e.createVNode(o, { ref_key: "headerRef", ref: C, headerInfo: e.unref(h), configure: p2.configure, pageContext: p2.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[e.vShow, e.unref(h).showHeader || p2.pageContext.showHomepageSearch]]), e.createVNode(u2, { ref_key: "gridRef", ref: $, data: y.value, style: { width: "100%" }, "max-height": e.unref(I), "header-cell-style": z, "row-style": J, "cell-style": L, "show-summary": w.value, stripe: p2.configure.props.base.stripe, "summary-method": _, "span-method": A }, { default: e.withCtx(() => [v.value ? (e.openBlock(true), e.createElementBlock(e.Fragment, { key: 0 }, e.renderList(O.value, (o2, t3) => (e.openBlock(), e.createElementBlock(e.Fragment, { key: t3 }, [o2.isLeaf ? (e.openBlock(), e.createBlock(a, { key: 1, configure: p2.configure, pageContext: p2.pageContext, column: S.value[o2.columnUuid] }, null, 8, ["configure", "pageContext", "column"])) : (e.openBlock(), e.createBlock(n, { key: 0, configure: p2.configure, pageContext: p2.pageContext, groupColumn: o2, columnsConfigKeyValues: S.value }, null, 8, ["configure", "pageContext", "groupColumn", "columnsConfigKeyValues"]))], 64))), 128)) : (e.openBlock(true), e.createElementBlock(e.Fragment, { key: 1 }, e.renderList(V.value, (o2, t3) => (e.openBlock(), e.createBlock(a, { key: t3, column: o2, configure: p2.configure, pageContext: p2.pageContext }, null, 8, ["column", "configure", "pageContext"]))), 128))]), _: 1 }, 8, ["data", "max-height", "show-summary", "stripe"]), p2.configure.pageination && p2.configure.pageination.enable ? (e.openBlock(), e.createBlock(i, { key: 0, configure: p2.configure, "table-data": y.value, total: T.value, onPageChange: G, onPageSizeChange: K }, null, 8, ["configure", "table-data", "total"])) : e.createCommentVNode("", true)], 6);
|
|
247
|
+
};
|
|
248
|
+
} });
|
|
249
|
+
module.exports = p;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue"), n = require("../../../utils/assemblys-config.js"), o = require("../error-render.vue.js"), r = e.defineComponent({ __name: "event-call-component", setup(r2, { expose: t }) {
|
|
3
|
+
const l = e.ref(null), u = e.ref({}), a = () => {
|
|
4
|
+
l.value = null, u.value = {};
|
|
5
|
+
};
|
|
6
|
+
return t({ renderComponent: async function(r3, t2) {
|
|
7
|
+
try {
|
|
8
|
+
l.value = null, u.value = t2 || {}, await e.nextTick();
|
|
9
|
+
const a2 = n.getRuntimeComponentByName(r3);
|
|
10
|
+
l.value = !a2 || "object" != typeof a2 && "function" != typeof a2 ? o : e.markRaw(a2);
|
|
11
|
+
} catch (e2) {
|
|
12
|
+
console.error("event-call-component renderedComponent error", e2), l.value = o;
|
|
13
|
+
}
|
|
14
|
+
} }), (n2, o2) => (e.openBlock(), e.createBlock(e.resolveDynamicComponent(l.value), e.mergeProps(u.value, { onDestroy: a }), null, 16));
|
|
15
|
+
} });
|
|
16
|
+
module.exports = r;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue"), t = require("../../../utils/common-util.js"), a = require("element-plus"), l = "${", o = "}", n = e.defineComponent({ __name: "export-form-report-dialog", props: { configure: { type: Object, required: true }, pageContext: { type: Object, required: true } }, emits: ["export", "close"], setup(n2, { emit: i }) {
|
|
3
|
+
var _a, _b;
|
|
4
|
+
const r = n2, u = e.ref(false), p = i, s = e.ref([]), c = e.ref([]), m = (_a = r.configure.props) == null ? void 0 : _a.base, d = (_b = r.pageContext) == null ? void 0 : _b.entity.data;
|
|
5
|
+
function g(e2) {
|
|
6
|
+
let t2, a2, n3 = e2;
|
|
7
|
+
const i2 = n3.indexOf(l), r2 = n3.indexOf(o);
|
|
8
|
+
return -1 !== i2 && -1 !== r2 ? (i2 > r2 ? n3 = n3.substring(0, r2) + n3.substring(r2 + 1) : (t2 = n3.substring(i2 + 2, r2), a2 = n3.substring(i2, r2 + 1), c.value.push(t2), c.value, n3 = n3.replace(a2, "")), g(n3)) : c.value;
|
|
9
|
+
}
|
|
10
|
+
function f(e2) {
|
|
11
|
+
p("export", r.configure, e2);
|
|
12
|
+
}
|
|
13
|
+
function x() {
|
|
14
|
+
p("close");
|
|
15
|
+
}
|
|
16
|
+
return e.onMounted(() => {
|
|
17
|
+
m.templateFiles && m.templateFiles.length > 0 ? s.value = t.packageTemplateFiles(m.templateFiles, r.pageContext, r.configure) : m.templateUuid && m.templateName && s.value.push({ templateUuid: m.templateUuid, templateName: m.templateName }), s.value.forEach((e2) => {
|
|
18
|
+
e2 && e2.templateName && (e2.templateName = function(e3) {
|
|
19
|
+
const t2 = g(e3);
|
|
20
|
+
return t2.forEach((t3) => {
|
|
21
|
+
const a2 = l + t3 + o;
|
|
22
|
+
let n3;
|
|
23
|
+
-1 !== e3.indexOf(a2) && Object.prototype.hasOwnProperty.call(d, t3) && (n3 = d[t3] ? d[t3] : "", e3 = e3.replace(a2, n3));
|
|
24
|
+
}), e3;
|
|
25
|
+
}(e2.templateName));
|
|
26
|
+
}), s.value && 0 !== s.value.length || (a.ElMessage({ message: "无符合条件可导出的模板!", type: "warning" }), p("close")), 1 === (s == null ? void 0 : s.value.length) ? (f(s.value[0]), p("close")) : u.value = true;
|
|
27
|
+
}), (t2, a2) => {
|
|
28
|
+
const l2 = e.resolveComponent("el-table-column"), o2 = e.resolveComponent("el-button"), n3 = e.resolveComponent("el-table"), i2 = e.resolveComponent("el-dialog");
|
|
29
|
+
return e.openBlock(), e.createBlock(i2, { modelValue: u.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e2) => u.value = e2), "show-close": true, "append-to-body": true, title: t2.$t("superPageRuntimeMessage.selectTemplate"), onClose: x }, { default: e.withCtx(() => [e.createVNode(n3, { data: s.value, style: { width: "100%" } }, { default: e.withCtx(() => [e.createVNode(l2, { label: t2.$t("superPageRuntimeMessage.temlpate"), prop: "templateShowPath" }, { default: e.withCtx((t3) => [e.createTextVNode(e.toDisplayString(t3.row.templateName), 1)]), _: 1 }, 8, ["label"]), e.createVNode(l2, { label: t2.$t("superPageRuntimeMessage.operating"), width: "200", fixed: "right" }, { default: e.withCtx((a3) => [e.createVNode(o2, { type: "text", size: "small", onClick: (e2) => f(a3.row), loading: void 0 !== r.pageContext.canClick && void 0 !== r.pageContext.clickUuid && !r.pageContext.canClick && r.pageContext.clickUuid === r.configure.uuid }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(t2.$t("superPageRuntimeMessage.export")), 1)]), _: 2 }, 1032, ["onClick", "loading"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"]);
|
|
30
|
+
};
|
|
31
|
+
} });
|
|
32
|
+
module.exports = n;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue");
|
|
3
|
+
require("element-plus");
|
|
4
|
+
const t = require("./format-file-task-notice-message.vue.js"), a = require("vue-i18n"), n = { key: 0 }, r = { key: 0 }, s = { key: 0 }, l = { key: 1 }, i = { key: 1 }, c = { key: 0 }, o = e.defineComponent({ __name: "file-task-notice", props: { lastFileTask: { type: Object, default: null }, backendUrl: { type: String, default: null } }, emits: ["clickMsg"], setup(o2, { expose: u, emit: d }) {
|
|
5
|
+
const { t: m } = a.useI18n(), k = o2, p = d;
|
|
6
|
+
let f = k.lastFileTask;
|
|
7
|
+
function g() {
|
|
8
|
+
p("clickMsg", k.lastFileTask);
|
|
9
|
+
}
|
|
10
|
+
function T(e2) {
|
|
11
|
+
return e2 ? "Success" === e2 ? m("superPageRuntimeMessage.success") : "Fail" === e2 ? m("superPageRuntimeMessage.fail") : "PartSuccess" === e2 ? m("superPageRuntimeMessage.partSuccess") : void 0 : m("superPageRuntimeMessage.doing");
|
|
12
|
+
}
|
|
13
|
+
function S(e2) {
|
|
14
|
+
return e2.taskState ? "Success" === e2.taskState ? "success" : "Fail" === e2.taskState ? "danger" : "PartSuccess" === e2.taskState ? "warning" : void 0 : "primary";
|
|
15
|
+
}
|
|
16
|
+
function y() {
|
|
17
|
+
let e2 = f.message;
|
|
18
|
+
return e2 || function(e3) {
|
|
19
|
+
if (!e3) return "";
|
|
20
|
+
const t2 = new Date(e3);
|
|
21
|
+
return `${t2.getFullYear()}-${String(t2.getMonth() + 1).padStart(2, "0")}-${String(t2.getDate()).padStart(2, "0")} ${String(t2.getHours()).padStart(2, "0")}:${String(t2.getMinutes()).padStart(2, "0")}`;
|
|
22
|
+
}(f.createdTime) + " " + C() + T(f.taskState);
|
|
23
|
+
}
|
|
24
|
+
function C() {
|
|
25
|
+
return f && f.export ? m("superPageRuntimeMessage.asyncExportType") : m("superPageRuntimeMessage.asyncImportType");
|
|
26
|
+
}
|
|
27
|
+
return u({}), (a2, u2) => {
|
|
28
|
+
const d2 = e.resolveComponent("el-text"), k2 = e.resolveComponent("Edit"), p2 = e.resolveComponent("el-icon"), N = e.resolveComponent("el-link");
|
|
29
|
+
return e.unref(f) && e.unref(f).taskCode ? (e.openBlock(), e.createElementBlock("div", n, [e.unref(f).export ? (e.openBlock(), e.createElementBlock("div", l, ["Success" === e.unref(f).taskState && e.unref(f).serverPath ? (e.openBlock(), e.createBlock(N, { key: 0, underline: "always", type: S(e.unref(f)), onClick: u2[1] || (u2[1] = (e2) => g()) }, { default: e.withCtx(() => [e.createVNode(t, { message: y(), backendUrl: o2.backendUrl, serverPath: o2.lastFileTask.serverPath, fileName: o2.lastFileTask.fileName, createdTime: o2.lastFileTask.createdTime, endTime: o2.lastFileTask.modifiedTime }, null, 8, ["message", "backendUrl", "serverPath", "fileName", "createdTime", "endTime"])]), _: 1 }, 8, ["type"])) : (e.openBlock(), e.createElementBlock("div", i, [e.unref(f).taskState ? (e.openBlock(), e.createElementBlock("span", c, [e.createElementVNode("span", null, [e.createVNode(d2, { type: S(e.unref(f)) }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(C() + T(e.unref(f).taskState)), 1)]), _: 1 }, 8, ["type"])]), e.createVNode(d2, { style: { "padding-left": "5px" } }, { default: e.withCtx(() => [e.createVNode(p2, { onClick: u2[2] || (u2[2] = (e2) => g()), title: e.unref(m)("superPageRuntimeMessage.hasReadTip") }, { default: e.withCtx(() => [e.createVNode(k2)]), _: 1 }, 8, ["title"])]), _: 1 })])) : e.createCommentVNode("", true), e.unref(f).taskState && "Success" === e.unref(f).taskState ? e.createCommentVNode("", true) : (e.openBlock(), e.createBlock(t, { key: 1, message: y(), backendUrl: o2.backendUrl, createdTime: o2.lastFileTask.createdTime, endTime: o2.lastFileTask.modifiedTime }, null, 8, ["message", "backendUrl", "createdTime", "endTime"]))]))])) : (e.openBlock(), e.createElementBlock("div", r, [e.unref(f).taskState ? (e.openBlock(), e.createElementBlock("span", s, [e.createElementVNode("span", null, [e.createVNode(d2, { type: S(e.unref(f)) }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(C() + T(e.unref(f).taskState)), 1)]), _: 1 }, 8, ["type"])]), e.createVNode(d2, { style: { "padding-left": "5px" } }, { default: e.withCtx(() => [e.createVNode(p2, { onClick: u2[0] || (u2[0] = (e2) => g()), title: e.unref(m)("superPageRuntimeMessage.hasReadTip") }, { default: e.withCtx(() => [e.createVNode(k2)]), _: 1 }, 8, ["title"])]), _: 1 })])) : (e.openBlock(), e.createBlock(d2, { key: 1, type: S(e.unref(f)) }, { default: e.withCtx(() => [e.createVNode(t, { message: y(), backendUrl: o2.backendUrl, createdTime: o2.lastFileTask.createdTime, endTime: o2.lastFileTask.modifiedTime }, null, 8, ["message", "backendUrl", "createdTime", "endTime"])]), _: 1 }, 8, ["type"])), e.unref(f).taskState && "Success" !== e.unref(f).taskState ? (e.openBlock(), e.createBlock(t, { key: 2, createdTime: e.unref(f).createdTime, endTime: e.unref(f).modifiedTime, message: y(), backendUrl: o2.backendUrl }, null, 8, ["createdTime", "endTime", "message", "backendUrl"])) : e.createCommentVNode("", true)]))])) : e.createCommentVNode("", true);
|
|
30
|
+
};
|
|
31
|
+
} });
|
|
32
|
+
module.exports = o;
|
package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue");
|
|
3
|
+
require("agilebuilder-ui/src/utils/auth"), require("agilebuilder-ui/src/utils/common-util"), require("agilebuilder-ui/src/utils/util"), require("agilebuilder-ui/src/utils/request"), require("dayjs"), require("agilebuilder-ui/src/utils/calculator/calculator-util"), require("../../../utils/global-refs.js"), require("element-plus"), require("../../../utils/eventBus.js"), require("axios"), require("async-validator"), require("../../../utils/page-store.js"), require("agilebuilder-ui/src/utils/i18n-util");
|
|
4
|
+
const t = require("vue-i18n");
|
|
5
|
+
require("../../../utils/events/print-label.js");
|
|
6
|
+
const r = { key: 1 }, i = ["innerHTML"], l = { key: 2 }, n = e.defineComponent({ __name: "format-file-task-notice-message", props: { message: { type: Boolean, default: false }, createdTime: { type: Number, default: null }, endTime: { type: Number, default: null }, serverPath: { type: String, default: null }, fileName: { type: String, default: null }, backendUrl: { type: String, default: null } }, setup(n2) {
|
|
7
|
+
const { t: u } = t.useI18n(), a = n2, s = 0.6 * window.innerHeight;
|
|
8
|
+
function o(e2) {
|
|
9
|
+
if (!e2) return "";
|
|
10
|
+
const t2 = new Date(e2);
|
|
11
|
+
return `${t2.getFullYear()}-${String(t2.getMonth() + 1).padStart(2, "0")}-${String(t2.getDate()).padStart(2, "0")} ${String(t2.getHours()).padStart(2, "0")}:${String(t2.getMinutes()).padStart(2, "0")}:${String(t2.getSeconds()).padStart(2, "0")}`;
|
|
12
|
+
}
|
|
13
|
+
function c() {
|
|
14
|
+
let e2 = a.message;
|
|
15
|
+
return e2 ? e2.split("~~") : [];
|
|
16
|
+
}
|
|
17
|
+
return (t2, a2) => (e.openBlock(), e.createElementBlock("div", { style: e.normalizeStyle("padding-top: 10px;width: 100%;overflow-y:auto;max-height:" + s + "px;") }, [n2.createdTime ? (e.openBlock(), e.createElementBlock("div", { key: 0, style: e.normalizeStyle(n2.serverPath ? "padding-top: 10px" : "") }, e.toDisplayString(o(n2.createdTime) + e.unref(u)("superPageRuntimeMessage.startExecute")), 5)) : e.createCommentVNode("", true), n2.message ? (e.openBlock(), e.createElementBlock("div", r, [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(c(), (t3, r2) => (e.openBlock(), e.createElementBlock("div", { key: r2, style: { "padding-top": "10px" }, innerHTML: t3 }, null, 8, i))), 128))])) : e.createCommentVNode("", true), n2.endTime ? (e.openBlock(), e.createElementBlock("div", l, e.toDisplayString(o(n2.endTime) + e.unref(u)("superPageRuntimeMessage.endExecute")), 1)) : e.createCommentVNode("", true)], 4));
|
|
18
|
+
} });
|
|
19
|
+
module.exports = n;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue"), t = require("element-plus"), s = require("vue-i18n"), o = require("./remove-signer-table.vue.js"), l = { class: "dialog-footer" }, a = e.defineComponent({ __name: "remove-signer-dialog", props: { taskId: { type: Number, default: null }, activeTasks: { type: Array, default: null } }, emits: ["open", "opend", "close", "closed", "result"], setup(a2, { emit: n }) {
|
|
3
|
+
const { t: r } = s.useI18n(), i = n, u = e.ref([]), c = e.ref(null);
|
|
4
|
+
function d() {
|
|
5
|
+
u.value = c.value.getSelections(), 0 !== u.value.length ? i("result", u.value) : t.ElMessage({ showClose: true, type: "warning", message: this.$t("superPageRuntimeMessage.pleaseSelectRemoverUsers") });
|
|
6
|
+
}
|
|
7
|
+
return (t2, s2) => {
|
|
8
|
+
const n2 = e.resolveComponent("el-button"), r2 = e.resolveComponent("el-dialog");
|
|
9
|
+
return e.openBlock(), e.createElementBlock("div", null, [e.createVNode(r2, { "model-value": "", title: t2.$t("superPageRuntimeMessage.selectRemoveUsers"), "close-on-click-modal": false, "append-to-body": "", width: "30%", "max-height": "400", onOpen: s2[1] || (s2[1] = (e2) => i("open")), onOpend: s2[2] || (s2[2] = (e2) => i("opend")), onClose: s2[3] || (s2[3] = (e2) => i("close")), onClosed: s2[4] || (s2[4] = (e2) => i("closed")) }, { footer: e.withCtx(() => [e.createElementVNode("div", l, [e.createVNode(n2, { type: "primary", onClick: d }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(t2.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 }), e.createVNode(n2, { type: "default", onClick: s2[0] || (s2[0] = (e2) => t2.$emit("close")) }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(t2.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: e.withCtx(() => [e.createVNode(o, { ref_key: "removeTableRef", ref: c, taskId: a2.taskId, activeTasks: a2.activeTasks }, null, 8, ["taskId", "activeTasks"])]), _: 1 }, 8, ["title"])]);
|
|
10
|
+
};
|
|
11
|
+
} });
|
|
12
|
+
module.exports = a;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue");
|
|
3
|
+
require("element-plus");
|
|
4
|
+
const t = require("vue-i18n"), a = e.defineComponent({ __name: "remove-signer-table", props: { taskId: { type: Number, default: null }, activeTasks: { type: Array, default: null } }, setup(a2, { expose: r }) {
|
|
5
|
+
const { t: l } = t.useI18n(), n = a2, o = e.ref([]), s = e.ref([]);
|
|
6
|
+
function u(e2) {
|
|
7
|
+
o.value = e2;
|
|
8
|
+
}
|
|
9
|
+
return e.onMounted(() => {
|
|
10
|
+
s.value = function() {
|
|
11
|
+
if (n.activeTasks && n.taskId) return n.activeTasks.filter((e2) => n.taskId !== e2.taskId);
|
|
12
|
+
return [];
|
|
13
|
+
}();
|
|
14
|
+
}), r({ getSelections: function() {
|
|
15
|
+
return o.value;
|
|
16
|
+
} }), (t2, a3) => {
|
|
17
|
+
const r2 = e.resolveComponent("el-table-column"), l2 = e.resolveComponent("el-table");
|
|
18
|
+
return e.openBlock(), e.createBlock(l2, { data: s.value, border: "", style: { width: "100%" }, onSelect: u, onSelectAll: u }, { default: e.withCtx(() => [e.createVNode(r2, { type: "selection", width: "55" }), e.createVNode(r2, { prop: "transactorName", label: t2.$t("superPageRuntimeMessage.transactorName"), width: "180" }, null, 8, ["label"]), e.createVNode(r2, { prop: "transactor", label: t2.$t("superPageRuntimeMessage.transactor"), width: "180" }, null, 8, ["label"]), e.createVNode(r2, { prop: "trustorName", label: t2.$t("superPageRuntimeMessage.trustorName"), width: "180" }, null, 8, ["label"])]), _: 1 }, 8, ["data"]);
|
|
19
|
+
};
|
|
20
|
+
} });
|
|
21
|
+
module.exports = a;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue"), t = require("element-plus"), a = require("./remove-signer-table.vue.js"), o = require("vue-i18n"), r = { key: 0 }, n = { style: { color: "red" } }, s = { key: 1 }, l = { style: { color: "red" } }, c = { key: 2 }, i = { style: { color: "red" } }, u = { key: 3 }, m = { class: "dialog-footer" }, d = e.defineComponent({ __name: "remove-transactor-dialog", props: { taskId: { type: Number, default: null }, transactorInfo: { type: Array, default: null } }, emits: ["open", "opend", "close", "closed", "result"], setup(d2, { emit: p }) {
|
|
3
|
+
var _a, _b;
|
|
4
|
+
const { t: g } = o.useI18n(), k = d2, v = p, f = e.ref([]), y = e.ref(null), N = e.ref([]);
|
|
5
|
+
function C() {
|
|
6
|
+
f.value = y.value.getSelections(), 0 !== f.value.length ? v("result", f.value) : t.ElMessage({ showClose: true, type: "warning", message: this.$t("superPageRuntimeMessage.pleaseSelectRemoverTransactors") });
|
|
7
|
+
}
|
|
8
|
+
return N.value = ((_a = k.transactorInfo) == null ? void 0 : _a.removeTransactors) ? (_b = k.transactorInfo) == null ? void 0 : _b.removeTransactors : [], (t2, o2) => {
|
|
9
|
+
const p2 = e.resolveComponent("el-button"), g2 = e.resolveComponent("el-dialog");
|
|
10
|
+
return e.openBlock(), e.createElementBlock("div", null, [e.createVNode(g2, { "model-value": "", title: t2.$t("superPageRuntimeMessage.delTransactor"), "close-on-click-modal": false, "append-to-body": "", width: "30%", "max-height": "400", onOpen: o2[1] || (o2[1] = (e2) => v("open")), onOpend: o2[2] || (o2[2] = (e2) => v("opend")), onClose: o2[3] || (o2[3] = (e2) => v("close")), onClosed: o2[4] || (o2[4] = (e2) => v("closed")) }, { footer: e.withCtx(() => [e.createElementVNode("div", m, [d2.transactorInfo.transactorNumber > 1 ? (e.openBlock(), e.createBlock(p2, { key: 0, type: "primary", onClick: C }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(t2.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 })) : e.createCommentVNode("", true), e.createVNode(p2, { type: "default", onClick: o2[0] || (o2[0] = (e2) => t2.$emit("close")) }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(t2.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: e.withCtx(() => [d2.transactorInfo.hasActiveSubProcess ? (e.openBlock(), e.createElementBlock("div", r, [e.createElementVNode("span", n, e.toDisplayString(t2.$t("superPageRuntimeMessage.taskMeaage1")), 1)])) : e.createCommentVNode("", true), 0 === d2.transactorInfo.transactorNumber ? (e.openBlock(), e.createElementBlock("div", s, [e.createElementVNode("span", l, e.toDisplayString(t2.$t("superPageRuntimeMessage.taskMeaage2")), 1)])) : e.createCommentVNode("", true), 1 === d2.transactorInfo.transactorNumber ? (e.openBlock(), e.createElementBlock("div", c, [e.createElementVNode("span", i, e.toDisplayString(t2.$t("superPageRuntimeMessage.taskMeaage3")), 1), e.createElementVNode("span", null, e.toDisplayString(t2.$t("superPageRuntimeMessage.handledBy")) + ":" + e.toDisplayString(d2.transactorInfo.transactorName), 1)])) : e.createCommentVNode("", true), d2.transactorInfo.transactorNumber > 1 ? (e.openBlock(), e.createElementBlock("div", u, [e.createVNode(a, { ref_key: "removeTableRef", ref: y, taskId: d2.taskId, activeTasks: N.value }, null, 8, ["taskId", "activeTasks"])])) : e.createCommentVNode("", true)]), _: 1 }, 8, ["title"])]);
|
|
11
|
+
};
|
|
12
|
+
} });
|
|
13
|
+
module.exports = d;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue"), t = require("element-plus"), o = require("vue-i18n"), l = require("../../../utils/events/standard-event.js"), n = { class: "dialog-footer" }, a = e.defineComponent({ __name: "save-chart-condition-dialog", props: { pageContext: { type: Object, default: null } }, emits: ["open", "opend", "close", "closed", "save", "confirm"], setup(a2, { expose: s, emit: i }) {
|
|
3
|
+
const { t: r } = o.useI18n(), u = a2, d = i, c = e.ref([]), p = e.ref(null), m = e.ref([]);
|
|
4
|
+
function C() {
|
|
5
|
+
d("save", p.value);
|
|
6
|
+
}
|
|
7
|
+
function g() {
|
|
8
|
+
0 === c.value.length || c.value.length > 1 ? t.ElMessage({ showClose: true, type: "warning", message: r("superPageRuntimeMessage.pleaseSelectCondition") }) : d("confirm", c.value[0]);
|
|
9
|
+
}
|
|
10
|
+
function v() {
|
|
11
|
+
l.listChartConditions(u.pageContext).then((e2) => {
|
|
12
|
+
m.value = e2;
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function h(e2) {
|
|
16
|
+
c.value = e2;
|
|
17
|
+
}
|
|
18
|
+
return e.onMounted(() => {
|
|
19
|
+
v();
|
|
20
|
+
}), s({ refreshConditionList: v }), (o2, a3) => {
|
|
21
|
+
const s2 = e.resolveComponent("el-input"), i2 = e.resolveComponent("el-col"), u2 = e.resolveComponent("el-button"), c2 = e.resolveComponent("el-row"), f = e.resolveComponent("el-table-column"), V = e.resolveComponent("Delete"), w = e.resolveComponent("el-icon"), x = e.resolveComponent("el-table"), N = e.resolveComponent("el-dialog");
|
|
22
|
+
return e.openBlock(), e.createElementBlock("div", null, [e.createVNode(N, { "model-value": "", title: o2.$t("superPageRuntimeMessage.saveCondition"), "close-on-click-modal": false, "append-to-body": "", width: "40%", "max-height": "400", onOpen: a3[2] || (a3[2] = (e2) => d("open")), onOpend: a3[3] || (a3[3] = (e2) => d("opend")), onClose: a3[4] || (a3[4] = (e2) => d("close")), onClosed: a3[5] || (a3[5] = (e2) => d("closed")) }, { footer: e.withCtx(() => [e.createElementVNode("div", n, [e.createVNode(u2, { type: "primary", onClick: g }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(o2.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 }), e.createVNode(u2, { type: "default", onClick: a3[1] || (a3[1] = (e2) => d("close")) }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(o2.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: e.withCtx(() => [e.createVNode(c2, { style: { "padding-bottom": "10px" }, gutter: 10 }, { default: e.withCtx(() => [e.createVNode(i2, { span: 18 }, { default: e.withCtx(() => [e.createVNode(s2, { modelValue: p.value, "onUpdate:modelValue": a3[0] || (a3[0] = (e2) => p.value = e2), placeholder: o2.$t("superPageRuntimeMessage.pleaseInputConditionName") }, null, 8, ["modelValue", "placeholder"])]), _: 1 }), e.createVNode(i2, { span: 6 }, { default: e.withCtx(() => [e.createVNode(u2, { type: "primary", onClick: C }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(o2.$t("superPageRuntimeMessage.save")), 1)]), _: 1 })]), _: 1 })]), _: 1 }), e.createVNode(x, { data: m.value, border: "", style: { width: "100%" }, onSelect: h }, { default: e.withCtx(() => [e.createVNode(f, { type: "selection", align: "center", width: "55" }), e.createVNode(f, { prop: "name", label: o2.$t("superPageRuntimeMessage.conditionName") }, null, 8, ["label"]), e.createVNode(f, { label: o2.$t("superPageRuntimeMessage.operating"), width: "60" }, { default: e.withCtx((o3) => [e.createVNode(w, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (e2) => {
|
|
23
|
+
return n2 = o3.row, void l.deleteChartCondition(n2.id).then(() => {
|
|
24
|
+
t.ElMessage({ showClose: true, type: "success", message: r("superPageRuntimeMessage.successfulDelete") }), v();
|
|
25
|
+
});
|
|
26
|
+
var n2;
|
|
27
|
+
} }, { default: e.withCtx(() => [e.createVNode(V)]), _: 2 }, 1032, ["onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"])]);
|
|
28
|
+
};
|
|
29
|
+
} });
|
|
30
|
+
module.exports = a;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue"), t = require("element-plus"), o = require("vue-i18n"), l = { class: "dialog-footer" }, a = e.defineComponent({ __name: "task-informition-dialog", props: { taskInformitions: { type: Array, default: null } }, emits: ["open", "opend", "close", "closed", "result"], setup(a2, { emit: n }) {
|
|
3
|
+
const { t: s } = o.useI18n(), r = a2, d = n, i = e.ref(null), u = e.ref();
|
|
4
|
+
function p() {
|
|
5
|
+
i.value ? d("result", i.value) : t.ElMessage({ showClose: true, type: "warning", message: s("superPageRuntimeMessage.pleaseSelectNode") });
|
|
6
|
+
}
|
|
7
|
+
function c(e2) {
|
|
8
|
+
i.value = r.taskInformitions[e2];
|
|
9
|
+
}
|
|
10
|
+
return (t2, o2) => {
|
|
11
|
+
const n2 = e.resolveComponent("el-radio"), s2 = e.resolveComponent("el-table-column"), r2 = e.resolveComponent("el-table"), i2 = e.resolveComponent("el-button"), m = e.resolveComponent("el-dialog");
|
|
12
|
+
return e.openBlock(), e.createElementBlock("div", null, [e.createVNode(m, { "model-value": "", title: t2.$t("superPageRuntimeMessage.selectNode"), "close-on-click-modal": false, "append-to-body": "", width: "50%", "max-height": "400", onOpen: o2[2] || (o2[2] = (e2) => d("open")), onOpend: o2[3] || (o2[3] = (e2) => d("opend")), onClose: o2[4] || (o2[4] = (e2) => d("close")), onClosed: o2[5] || (o2[5] = (e2) => d("closed")) }, { footer: e.withCtx(() => [e.createElementVNode("div", l, [e.createVNode(i2, { type: "primary", onClick: p }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(t2.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 }), e.createVNode(i2, { type: "default", onClick: o2[1] || (o2[1] = (e2) => d("close")) }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(t2.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: e.withCtx(() => [e.createVNode(r2, { data: a2.taskInformitions, border: "", style: { width: "100%" } }, { default: e.withCtx(() => [e.createVNode(s2, { fixed: "", width: "60" }, { default: e.withCtx((t3) => [e.createVNode(n2, { modelValue: u.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e2) => u.value = e2), label: t3.$index, onChange: c }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(t3.$index + 1), 1)]), _: 2 }, 1032, ["modelValue", "label"])]), _: 1 }), e.createVNode(s2, { prop: "nodeName", label: t2.$t("superPageRuntimeMessage.nodeName"), width: "180" }, null, 8, ["label"]), e.createVNode(s2, { prop: "transactorNames", label: t2.$t("superPageRuntimeMessage.transactorNames") }, null, 8, ["label"]), e.createVNode(s2, { prop: "nodeId", label: t2.$t("superPageRuntimeMessage.nodeId"), width: "180" }, null, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"])]);
|
|
13
|
+
};
|
|
14
|
+
} });
|
|
15
|
+
module.exports = a;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue"), n = require("element-plus"), t = require("agilebuilder-ui"), o = require("@element-plus/icons-vue"), r = require("../../object-render.vue.js"), i = require("../../../../utils/i18n-util.js"), l = require("../../../../utils/events/event-util.js"), c = e.defineComponent({ __name: "card-runtime", props: { pageContext: {}, configure: {} }, setup(c2, { expose: u }) {
|
|
3
|
+
var _a, _b;
|
|
4
|
+
const a = c2;
|
|
5
|
+
a.configure.items || (a.configure.items = []);
|
|
6
|
+
const s = e.computed(() => {
|
|
7
|
+
var _a2;
|
|
8
|
+
return [true, void 0].includes((_a2 = a.configure.props) == null ? void 0 : _a2.isCollapse);
|
|
9
|
+
}), p = e.ref(null), f = e.ref(!((_a = a.configure.props) == null ? void 0 : _a.isCollapse) || false !== ((_b = a.configure.props) == null ? void 0 : _b.isCollapseShow)), d = a.configure.runtime ? a.configure.runtime : {}, g = d.style, m = d.class, y = d.headerStyle, x = d.contentStyle, v = () => s.value && (f.value = !f.value);
|
|
10
|
+
return e.onMounted(() => {
|
|
11
|
+
e.nextTick(() => {
|
|
12
|
+
l.handleAfterInitEvent(null, a.pageContext, a.configure, { componentRef: p.value, entity: a.pageContext.entity.data, pageData: a.pageContext.entity.page });
|
|
13
|
+
});
|
|
14
|
+
}), u({ test: function() {
|
|
15
|
+
a.configure.props.title = "teee";
|
|
16
|
+
} }), (l2, c3) => {
|
|
17
|
+
const u2 = e.resolveComponent("el-link");
|
|
18
|
+
return e.openBlock(), e.createBlock(e.unref(n.ElCard), { ref_key: "thisRef", ref: p, style: e.normalizeStyle(e.unref(g)), "data-collapse": String(f.value), class: e.normalizeClass(["yx-card-box-view-main", e.unref(m)]) }, e.createSlots({ default: e.withCtx(() => [e.createElementVNode("div", { class: "yx-card-box-view-context", style: e.normalizeStyle(e.unref(x)) }, [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(l2.configure.items, (n2, t2) => (e.openBlock(), e.createBlock(r, { key: n2.uuid, pageContext: l2.pageContext, configure: n2 }, null, 8, ["pageContext", "configure"]))), 128))], 4)]), _: 2 }, [l2.configure.props.base.tittleShow ? { name: "header", fn: e.withCtx(() => [e.createElementVNode("div", { class: "yx-card-box-view-header", onClick: v }, [e.createElementVNode("div", { class: "yx-card-box-view-title", style: e.normalizeStyle(e.unref(y)) }, [l2.configure.props.iconType && l2.configure.props.iconValue ? (e.openBlock(), e.createBlock(e.unref(t.SuperIcon), { key: 0, iconType: l2.configure.props.iconType, iconValue: l2.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : e.createCommentVNode("", true), e.createTextVNode(" " + e.toDisplayString(e.unref(i.$t)(l2.configure.props.base.title)), 1)], 4), s.value ? (e.openBlock(), e.createBlock(u2, { key: 0, underline: false, icon: f.value ? e.unref(o.ArrowUp) : e.unref(o.ArrowDown), style: { margin: "-15px 0", "z-index": "1" } }, null, 8, ["icon"])) : e.createCommentVNode("", true)])]), key: "0" } : void 0]), 1032, ["style", "data-collapse", "class"]);
|
|
19
|
+
};
|
|
20
|
+
} });
|
|
21
|
+
module.exports = c;
|
package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue"), n = require("../../object-render.vue.js");
|
|
3
|
+
require("../../../../utils/global-refs.js");
|
|
4
|
+
const t = require("../../../../utils/i18n-util.js"), o = require("../../../../utils/events/event-util.js"), l = e.defineComponent({ __name: "collapse-runtime", props: { pageContext: {}, configure: {} }, setup(l2) {
|
|
5
|
+
const r = l2;
|
|
6
|
+
r.configure.props || (r.configure.props = {});
|
|
7
|
+
const i = r.configure.props.defaultOpens ? r.configure.props.defaultOpens : [1], c = !!r.configure.props.accordion, u = e.ref(null), a = r.configure.runtime ? r.configure.runtime : {}, s = a.style, p = a.class, f = a.headerStyle;
|
|
8
|
+
return e.onMounted(() => {
|
|
9
|
+
e.nextTick(() => {
|
|
10
|
+
o.handleAfterInitEvent(null, r.pageContext, r.configure, { componentRef: u.value, entity: r.pageContext.entity.data, pageData: r.pageContext.entity.page });
|
|
11
|
+
});
|
|
12
|
+
}), (o2, l3) => {
|
|
13
|
+
const r2 = e.resolveComponent("SuperIcon"), a2 = e.resolveComponent("el-collapse-item"), m = e.resolveComponent("el-collapse");
|
|
14
|
+
return e.openBlock(), e.createBlock(m, { ref_key: "thisRef", ref: u, modelValue: e.unref(i), "onUpdate:modelValue": l3[0] || (l3[0] = (n2) => e.isRef(i) ? i.value = n2 : null), style: e.normalizeStyle(e.unref(s)), accordion: e.unref(c), class: e.normalizeClass(e.unref(p)) }, { default: e.withCtx(() => [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(o2.configure.items, (l4, i2) => (e.openBlock(), e.createBlock(a2, { name: l4.index }, { title: e.withCtx(() => [e.createElementVNode("div", { style: e.normalizeStyle([e.unref(f), { width: "100%" }]) }, [l4.iconType && l4.iconValue ? (e.openBlock(), e.createBlock(r2, { key: 0, iconType: l4.iconType, iconValue: l4.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : e.createCommentVNode("", true), e.createTextVNode(" " + e.toDisplayString(e.unref(t.$t)(l4.label)), 1)], 4)]), default: e.withCtx(() => [e.createElementVNode("div", null, [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(l4.items, (t2, l5) => (e.openBlock(), e.createBlock(n, { key: t2.uuid, configure: t2, pageContext: o2.pageContext }, null, 8, ["configure", "pageContext"]))), 128))])]), _: 2 }, 1032, ["name"]))), 256))]), _: 1 }, 8, ["modelValue", "style", "accordion", "class"]);
|
|
15
|
+
};
|
|
16
|
+
} });
|
|
17
|
+
module.exports = l;
|
package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue"), t = require("../../object-render.vue.js");
|
|
3
|
+
require("../../../../utils/global-refs.js");
|
|
4
|
+
const n = require("../../../../utils/events/event-util.js"), o = e.defineComponent({ __name: "container-runtime", props: { pageContext: {}, configure: {} }, setup(o2) {
|
|
5
|
+
const l = o2, r = e.ref(null), c = l.configure.runtime ? l.configure.runtime : {}, u = c.leftStyle, i = c.rightStyle, a = c.style, s = c.class;
|
|
6
|
+
return e.onMounted(() => {
|
|
7
|
+
e.nextTick(() => {
|
|
8
|
+
n.handleAfterInitEvent(null, l.pageContext, l.configure, { componentRef: r.value, entity: l.pageContext.entity.data, pageData: l.pageContext.entity.page });
|
|
9
|
+
});
|
|
10
|
+
}), (n2, o3) => {
|
|
11
|
+
const l2 = e.resolveComponent("el-aside"), c2 = e.resolveComponent("el-main"), g = e.resolveComponent("el-container");
|
|
12
|
+
return e.openBlock(), e.createBlock(g, { ref_key: "thisRef", ref: r }, { default: e.withCtx(() => [n2.configure.props.useLeft ? (e.openBlock(), e.createBlock(l2, { key: 0, style: e.normalizeStyle(e.unref(u)) }, { default: e.withCtx(() => [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(n2.configure.leftAslides, (o4, l3) => (e.openBlock(), e.createBlock(t, { key: o4.uuid, pageContext: n2.pageContext, configure: o4 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])) : e.createCommentVNode("", true), e.createVNode(c2, { style: e.normalizeStyle(e.unref(a)), class: e.normalizeClass(e.unref(s)) }, { default: e.withCtx(() => [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(n2.configure.items, (o4, l3) => (e.openBlock(), e.createBlock(t, { key: o4.uuid, pageContext: n2.pageContext, configure: o4 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style", "class"]), n2.configure.props.useRight ? (e.openBlock(), e.createBlock(l2, { key: 1, style: e.normalizeStyle(e.unref(i)) }, { default: e.withCtx(() => [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(n2.configure.rightAslides, (o4, l3) => (e.openBlock(), e.createBlock(t, { key: o4.uuid, pageContext: n2.pageContext, configure: o4 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])) : e.createCommentVNode("", true)]), _: 1 }, 512);
|
|
13
|
+
};
|
|
14
|
+
} });
|
|
15
|
+
module.exports = o;
|