super-page-runtime 2.3.47-sit2 → 2.3.47
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 +136 -136
- package/dist/es/components/runtime/utils/events/event-util.js +121 -121
- package/dist/es/components/runtime/utils/events/print-label.js +34 -33
- package/dist/es/components/runtime/utils/events/standard-event.js +22 -22
- package/dist/es/components/runtime/utils/events/validator-util.js +209 -206
- package/dist/es/components/runtime/utils/page-init-util.js +47 -45
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/{button-runtime2.vue.js → button-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button-group/{buttongroup-runtime2.vue.js → buttongroup-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/dropdown/{dropdown-runtime2.vue.js → dropdown-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/{exportpdf-runtime2.vue.js → exportpdf-runtime.vue2.js} +3 -3
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/{printlabel-runtime2.vue.js → printlabel-runtime.vue2.js} +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/column-line/{column-line-runtime2.vue.js → column-line-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +2 -2
- 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 +9 -7
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/{common-homepage-search2.vue.js → common-homepage-search.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +9 -9
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/{gauge-runtime2.vue.js → gauge-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/{pie-runtime2.vue.js → pie-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/{radar-runtime2.vue.js → radar-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/{scatter-runtime2.vue.js → scatter-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +104 -99
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/{table-runtime2.vue.js → table-runtime.vue2.js} +9 -9
- 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/common/file-task-notice.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/{card-runtime2.vue.js → card-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/collapse/{collapse-runtime2.vue.js → collapse-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/container/{container-runtime2.vue.js → container-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/fixed/{FixedBox2.vue.js → FixedBox.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/fixed/{YxAffix2.vue.js → YxAffix.vue2.js} +4 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/flex/{flex-runtime2.vue.js → flex-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/form/{form-runtime2.vue.js → form-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/iframe/{iframe-runtime2.vue.js → iframe-runtime.vue2.js} +5 -5
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/{tabs-runtime2.vue.js → tabs-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tools/{tools-runtime2.vue.js → tools-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/bar-code/{barcode-runtime2.vue.js → barcode-runtime.vue2.js} +11 -9
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/{table-runtime2.vue.js → table-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/{tree-runtime2.vue.js → tree-runtime.vue2.js} +5 -5
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/checkbox/{checkbox-runtime2.vue.js → checkbox-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/custom/{custom-runtime2.vue.js → custom-runtime.vue2.js} +4 -4
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +102 -0
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/{depttree-runtime2.vue.js → depttree-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/divider/{divider-runtime2.vue.js → divider-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/file-upload/{fileupload-runtime2.vue.js → fileupload-runtime.vue2.js} +7 -5
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/image-upload/{imageupload-runtime2.vue.js → imageupload-runtime.vue2.js} +5 -4
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-number/{input-number-runtime2.vue.js → input-number-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +81 -0
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/label/{label-runtime2.vue.js → label-runtime.vue2.js} +5 -3
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/link/{link-runtime2.vue.js → link-runtime.vue2.js} +8 -6
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/placeholder/{placeholder-runtime2.vue.js → placeholder-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/radio/{radio-runtime2.vue.js → radio-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/{richtext-runtime2.vue.js → richtext-runtime.vue2.js} +4 -4
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/select/{select-runtime2.vue.js → select-runtime.vue2.js} +8 -7
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/{separatelabel-runtime2.vue.js → separatelabel-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/{switch-runtime2.vue.js → switch-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/tag/{tag-runtime2.vue.js → tag-runtime.vue2.js} +3 -3
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/textarea/{textarea-runtime2.vue.js → textarea-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +12 -10
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/component/{workflow-opinion-box2.vue.js → workflow-opinion-box.vue2.js} +3 -3
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/{extract-workflow-runtime-dialog2.vue.js → extract-workflow-runtime-dialog.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/{extract-workflow-runtime2.vue.js → extract-workflow-runtime.vue2.js} +3 -3
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/{pictureflow-runtime2.vue.js → pictureflow-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/{textflow-runtime2.vue.js → textflow-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/{workflowbutton-runtime2.vue.js → workflowbutton-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/{workflownode-runtime2.vue.js → workflownode-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/home-chart.vue.js +8 -8
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +7 -6
- package/dist/es/components/runtime/views/super-page.vue.d.ts +2 -2
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/{super-page2.vue.js → super-page.vue2.js} +99 -98
- package/package.json +2 -2
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime2.vue.js +0 -102
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime2.vue.js +0 -80
- /package/dist/es/components/runtime/views/assemblys/chart/common/{common-chart-header-breadcrumb2.vue.js → common-chart-header-breadcrumb.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/common/{common-chart-header-group2.vue.js → common-chart-header-group.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/common/{common-chart-header2.vue.js → common-chart-header.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/common/{home-chart-condition-render2.vue.js → home-chart-condition-render.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/table/{group-column-item2.vue.js → group-column-item.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/table/{group-column2.vue.js → group-column.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/table/{normal-column2.vue.js → normal-column.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/table/{table-pageination2.vue.js → table-pageination.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{event-call-component2.vue.js → event-call-component.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{export-form-report-dialog2.vue.js → export-form-report-dialog.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{file-task-notice2.vue.js → file-task-notice.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{format-file-task-notice-message2.vue.js → format-file-task-notice-message.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{remove-signer-dialog2.vue.js → remove-signer-dialog.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{remove-signer-table2.vue.js → remove-signer-table.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{remove-transactor-dialog2.vue.js → remove-transactor-dialog.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{save-chart-condition-dialog2.vue.js → save-chart-condition-dialog.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{task-informition-dialog2.vue.js → task-informition-dialog.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/data/table/{main-table-runtime2.vue.js → main-table-runtime.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/data/table/{sub-table-runtime2.vue.js → sub-table-runtime.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/{error-render2.vue.js → error-render.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/form/common/{title-suffix-element2.vue.js → title-suffix-element.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/{home-chart-render2.vue.js → home-chart-render.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/{object-render2.vue.js → object-render.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/{page-bottom2.vue.js → page-bottom.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/{home-chart2.vue.js → home-chart.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/{super-page-dialog3.vue.js → super-page-dialog.vue3.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, getCurrentInstance as
|
|
1
|
+
import { defineComponent as e, ref as a, getCurrentInstance as t, onMounted as l, onUpdated as o, nextTick as u, onUnmounted as n, resolveDirective as i, withDirectives as s, createElementBlock as r, openBlock as v, unref as p, normalizeStyle as m, normalizeClass as c, createCommentVNode as g, createVNode as f, createBlock as d, createElementVNode as y, Fragment as C, renderList as h, watch as P } from "vue";
|
|
2
2
|
import b from "./assemblys/object-render.vue.js";
|
|
3
3
|
import { updateOptionDatasources as k, updateChartDatasources as j } from "../utils/page-helper-util.js";
|
|
4
|
-
import { registerParamStoreId as x, queryPageDesignWhenPreview as $, queryPageDesignByCode as
|
|
4
|
+
import { registerParamStoreId as x, queryPageDesignWhenPreview as $, queryPageDesignByCode as S, convertToPageContext as T, packageAdditionalMapWithLocationSearch as w, packageAdditionalMapWithRoute as D, packageAdditionalMapWithPageRequest as N } from "../utils/page-init-util.js";
|
|
5
5
|
import { addComponentRef as q, removePageAllRef as R, initComponentRefState as _ } from "../utils/global-refs.js";
|
|
6
6
|
import { removeCustomFuncFromWindow as F, handleEvent as M, initPageEvents as O, getCustomFunc as I } from "../utils/events/event-util.js";
|
|
7
7
|
import E from "./assemblys/common/export-form-report-dialog.vue.js";
|
|
@@ -9,7 +9,7 @@ import A from "./assemblys/common/task-informition-dialog.vue.js";
|
|
|
9
9
|
import W from "./assemblys/common/remove-signer-dialog.vue.js";
|
|
10
10
|
import V from "./assemblys/common/remove-transactor-dialog.vue.js";
|
|
11
11
|
import B from "../utils/eventBus.js";
|
|
12
|
-
import { doFileTaskFunc as L, getTaskInformitions as U, getRemoveSigner as J, getRemoveTransactor as H, getFormData as z, exportFormReport as Q, doImportFinally as G, doAddSigner as K, doCreateCopyTask as X, doAssign as Y, doAddTransactor as Z, doReturnTaskTo as ee, doRemoveSigners as ae, doRemoveTransactors as
|
|
12
|
+
import { doFileTaskFunc as L, getTaskInformitions as U, getRemoveSigner as J, getRemoveTransactor as H, getFormData as z, exportFormReport as Q, doImportFinally as G, doAddSigner as K, doCreateCopyTask as X, doAssign as Y, doAddTransactor as Z, doReturnTaskTo as ee, doRemoveSigners as ae, doRemoveTransactors as te, updateValuesWhenCloseDialog as le, refreshFormOrListPage as oe, saveChartConditionBase as ue, getAdditionalParamMap as ne } from "../utils/events/standard-event.js";
|
|
13
13
|
import "../utils/api/api-util.js";
|
|
14
14
|
import { ElMessage as ie } from "element-plus";
|
|
15
15
|
import { useI18n as se } from "vue-i18n";
|
|
@@ -20,24 +20,24 @@ import pe from "./super-page-dialog.vue.js";
|
|
|
20
20
|
import { useRoute as me, useRouter as ce } from "vue-router";
|
|
21
21
|
import { jumpToPage as ge } from "agilebuilder-ui/src/utils/jump-page-utils";
|
|
22
22
|
import { setSessionCache as fe, getUsername as de } from "agilebuilder-ui/src/utils/auth";
|
|
23
|
-
import { deepCopy as ye, refreshMobileDialogType as
|
|
24
|
-
import { isMobileBrowser as
|
|
23
|
+
import { deepCopy as ye, refreshMobileDialogType as Ce } from "../utils/common-util.js";
|
|
24
|
+
import { isMobileBrowser as he } from "agilebuilder-ui/src/utils/common-util";
|
|
25
25
|
import { usePageContextStore as Pe } from "../utils/page-store.js";
|
|
26
26
|
import be from "agilebuilder-ui/src/store";
|
|
27
27
|
import ke from "./assemblys/common/save-chart-condition-dialog.vue.js";
|
|
28
28
|
import je from "../utils/ai-chat-util.js";
|
|
29
29
|
import xe from "./assemblys/page-bottom.vue.js";
|
|
30
30
|
import $e from "./assemblys/common/event-call-component.vue.js";
|
|
31
|
-
import { scrollIntoViewWithContainer as
|
|
32
|
-
const
|
|
33
|
-
const
|
|
31
|
+
import { scrollIntoViewWithContainer as Se } from "../utils/anchor-util.js";
|
|
32
|
+
const Te = ["element-loading-text"], we = e({ __name: "super-page", props: { pageCode: { type: String, required: false }, pageVersion: { type: Number, required: false }, pageId: { type: Number, required: false }, dataId: { type: Number, required: false }, pageDesign: { type: Object, required: false }, isTest: { type: Boolean, required: false }, dimensions: { type: String, required: false }, publishVersion: { type: Number, required: false }, taskId: { type: Number, required: false }, pageRequest: { type: Object, required: false }, contentHeight: { type: [String, Number], default: null }, isDialog: { type: Boolean, required: false }, isPreview: { type: Boolean, required: false } }, emits: ["open", "opened", "close", "closed"], setup(e2, { expose: we2, emit: De }) {
|
|
33
|
+
const Ne = Pe(), { t: qe } = se(), Re = e2, _e = a(false), Fe = a(""), Me = { list: "list-page-container", form: "form-page-container" }, Oe = a(null), Ie = a([]), Ee = a(""), Ae = a({}), We = a(null), Ve = a(null), Be = a(false), Le = a(false), Ue = a(false), Je = a(false), He = a(false), ze = a(false), Qe = a(null), Ge = a(false), Ke = a([]), Xe = a([]), Ye = a([]), Ze = a(false), ea = a(false), aa = a(null), ta = a(false), la = a(false), oa = a(null), ua = a(null), na = a(null), ia = a(null);
|
|
34
34
|
let sa = a(null);
|
|
35
|
-
const ra = a(null), va = a(null), pa = me(), ma = a(null), ca = a(0), ga =
|
|
35
|
+
const ra = a(null), va = a(null), pa = me(), ma = a(null), ca = a(0), ga = he();
|
|
36
36
|
let fa, da;
|
|
37
|
-
const ya = a(false),
|
|
37
|
+
const ya = a(false), Ca = a(null), ha = a(false), Pa = a(null);
|
|
38
38
|
function ba(e3) {
|
|
39
|
-
const a2 =
|
|
40
|
-
return a2.isTest = Re.isTest, a2.isTest && Re.dimensions && (a2.dimensions = Re.dimensions), Re.isDialog || (
|
|
39
|
+
const a2 = T(e3);
|
|
40
|
+
return a2.isTest = Re.isTest, a2.isTest && Re.dimensions && (a2.dimensions = Re.dimensions), Re.isDialog || (w(a2.entity.request), D(pa, a2.entity.request)), N(Re.pageRequest, a2.entity.request, Re.isDialog), a2;
|
|
41
41
|
}
|
|
42
42
|
function ka(e3) {
|
|
43
43
|
var _a2;
|
|
@@ -46,27 +46,27 @@ const we = ["element-loading-text"], De = e({ __name: "super-page", props: { pag
|
|
|
46
46
|
sa.value.isDialog = true === Re.isDialog, Fe.value = Me[sa.value.pageType] ?? "", fa = setTimeout(() => {
|
|
47
47
|
!function(e4, a3) {
|
|
48
48
|
if (!a3 || 0 == a3.length) return;
|
|
49
|
-
const
|
|
50
|
-
|
|
49
|
+
const t3 = a3.filter((e5) => "remote" != e5.filterType);
|
|
50
|
+
t3 && t3.length > 0 && k(e4, t3, void 0);
|
|
51
51
|
}(sa.value, e3.initOptionConfigs);
|
|
52
52
|
}, 0), da = setTimeout(() => {
|
|
53
|
-
|
|
53
|
+
e3.initChartServiceConfigs, function(e4, a3) {
|
|
54
54
|
if (!a3 || 0 == a3.length) return;
|
|
55
55
|
if (e4.initChartData = {}, e4.initChartData.data = ye(e4.entity.data), e4.initChartData.page = ye(e4.entity.page), a3 && a3.length > 0) {
|
|
56
|
-
const
|
|
57
|
-
j(e4,
|
|
56
|
+
const t3 = a3.filter((e5) => false !== e5.initializationQuery);
|
|
57
|
+
j(e4, t3, null, true);
|
|
58
58
|
}
|
|
59
59
|
}(sa.value, e3.initChartServiceConfigs);
|
|
60
60
|
}, 200), sa.value.initDataSources = [], _(sa.value), Ie.value = sa.value.items ? sa.value.items : [];
|
|
61
|
-
const
|
|
62
|
-
Ee.value =
|
|
63
|
-
const
|
|
64
|
-
return
|
|
65
|
-
Ve.value = e4, ra.value = e4.configureObj, va.value = e4.pageContext,
|
|
61
|
+
const t2 = sa.value.runtime ? sa.value.runtime : {};
|
|
62
|
+
Ee.value = t2.class, Ae.value = t2.style, O(e3, sa.value), ve(sa.value.rules), M(null, sa.value, e3, "beforeload");
|
|
63
|
+
const l2 = sa.value.code;
|
|
64
|
+
return Ne.setPageContext(sa.value), Qe.value = l2 + "_", B.$on(Qe.value + "export-form-report", (e4) => {
|
|
65
|
+
Ve.value = e4, ra.value = e4.configureObj, va.value = e4.pageContext, ha.value = false, Be.value = true;
|
|
66
66
|
}), B.$on(Qe.value + "export-pdf-report", (e4) => {
|
|
67
|
-
Ve.value = e4, ra.value = e4.configureObj, va.value = e4.pageContext,
|
|
67
|
+
Ve.value = e4, ra.value = e4.configureObj, va.value = e4.pageContext, ha.value = true, Be.value = true;
|
|
68
68
|
}), B.$on(Qe.value + "import-file", (e4) => {
|
|
69
|
-
Ve.value = e4,
|
|
69
|
+
Ve.value = e4, wa.value.click();
|
|
70
70
|
}), B.$on(Qe.value + "assign-task", (e4) => {
|
|
71
71
|
Ve.value = e4, He.value = true, ze.value = false;
|
|
72
72
|
}), B.$on(Qe.value + "copy-task", (e4) => {
|
|
@@ -95,16 +95,17 @@ const we = ["element-loading-text"], De = e({ __name: "super-page", props: { pag
|
|
|
95
95
|
});
|
|
96
96
|
}), B.$on(Qe.value + "prohibit-edit", (e4) => {
|
|
97
97
|
}), B.$on(Qe.value + "open-dialog", (e4) => {
|
|
98
|
-
var a3,
|
|
99
|
-
ua.value = e4.pageContext, na.value = e4.configureObj, ia.value = e4.eventParams, a3 = na.value,
|
|
100
|
-
return new Promise((
|
|
98
|
+
var a3, t3, l3;
|
|
99
|
+
ua.value = e4.pageContext, na.value = e4.configureObj, ia.value = e4.eventParams, a3 = na.value, t3 = ia.value, l3 = e4.jumpPageSetting, function(e5, a4, t4) {
|
|
100
|
+
return new Promise((l4, o2) => {
|
|
101
101
|
var _a3;
|
|
102
|
-
if (
|
|
102
|
+
if (t4) l4(t4);
|
|
103
103
|
else {
|
|
104
|
-
const
|
|
105
|
-
if (
|
|
106
|
-
false !==
|
|
104
|
+
const t5 = e5 && e5.props && e5.props.linkPage ? e5.props.linkPage : null;
|
|
105
|
+
if (t5 && t5.jumpPageUrl) {
|
|
106
|
+
false !== t5.isNewPage && true !== t5.isNewPage && (t5.isNewPage = true);
|
|
107
107
|
const e6 = ne(sa), o3 = !!((_a3 = na.value.props.linkPage) == null ? void 0 : _a3.isNeedId);
|
|
108
|
+
na.value;
|
|
108
109
|
let u2 = o3 && a4 ? a4.id : null, n2 = o3 && a4 ? a4.ids : null, i2 = a4 ? a4.selections : [], s2 = a4 ? a4.row : null;
|
|
109
110
|
if (!s2) if (s2 = {}, i2 && i2.length > 0) s2 = i2.length > 1 ? i2 : i2[0];
|
|
110
111
|
else {
|
|
@@ -112,39 +113,39 @@ const we = ["element-loading-text"], De = e({ __name: "super-page", props: { pag
|
|
|
112
113
|
a5 && Object.assign(s2, a5), e7 && Object.assign(s2, e7);
|
|
113
114
|
}
|
|
114
115
|
const r2 = ye(ua.value.entity.page);
|
|
115
|
-
|
|
116
|
-
e7.isNeedId = o3,
|
|
116
|
+
t5._pageData = r2, ge(t5, null, u2, s2, e6, n2).then((e7) => {
|
|
117
|
+
e7.isNeedId = o3, l4(e7);
|
|
117
118
|
});
|
|
118
|
-
} else
|
|
119
|
+
} else l4(false);
|
|
119
120
|
}
|
|
120
121
|
});
|
|
121
|
-
}(a3,
|
|
122
|
+
}(a3, t3, l3).then((e5) => {
|
|
122
123
|
if (e5) {
|
|
123
|
-
let
|
|
124
|
-
const
|
|
125
|
-
|
|
126
|
-
const o2 =
|
|
127
|
-
if (ia.value || (ia.value = {}), ia.value.paramStoreId =
|
|
124
|
+
let t4 = {};
|
|
125
|
+
const l4 = a3 && a3.props && a3.props.linkPage ? a3.props.linkPage : null;
|
|
126
|
+
l4 && Object.assign(t4, ye(l4)), Object.assign(t4, e5), Ce(t4, ga);
|
|
127
|
+
const o2 = t4.jumpMode, u2 = t4;
|
|
128
|
+
if (ia.value || (ia.value = {}), ia.value.paramStoreId = t4.paramStoreId, u2.parentPageCode = ua.value.code, u2.parentPageVersion = ua.value.version, u2.isNewPage = true, "popup" === o2 || "refresh" === o2) {
|
|
128
129
|
const e6 = u2.linkType;
|
|
129
130
|
(function(e7, a4) {
|
|
130
|
-
const
|
|
131
|
-
return new Promise((
|
|
132
|
-
if (
|
|
131
|
+
const t5 = de();
|
|
132
|
+
return new Promise((l5, o3) => {
|
|
133
|
+
if (t5) if ("popup" !== a4 && !ga || ua.value.systemCode === e7.customSystem) l5(true);
|
|
133
134
|
else if (e7.customSystem) {
|
|
134
135
|
const a5 = e7.customSystem;
|
|
135
|
-
be.dispatch("getCurrentUserPermissions", { loginName:
|
|
136
|
-
|
|
136
|
+
be.dispatch("getCurrentUserPermissions", { loginName: t5, systemCode: a5 }).then(() => {
|
|
137
|
+
l5(true);
|
|
137
138
|
}).catch(() => {
|
|
138
|
-
|
|
139
|
+
l5(true);
|
|
139
140
|
});
|
|
140
|
-
} else ie({ showClose: true, type: "error", message: qe("superPageRuntimeMessage.popMsg") }),
|
|
141
|
-
else
|
|
141
|
+
} else ie({ showClose: true, type: "error", message: qe("superPageRuntimeMessage.popMsg") }), console.error("弹框参数缺少customSystem参数,parentPageContext.value.systemCode={}", ua.value.systemCode), l5(false);
|
|
142
|
+
else l5(true);
|
|
142
143
|
});
|
|
143
144
|
})(u2, o2).then((a4) => {
|
|
144
145
|
if (a4) if (ga && (ua.value.systemCode !== u2.customSystem || e6 && "url" === e6)) {
|
|
145
146
|
let e7 = u2._path;
|
|
146
147
|
e7 = e7.replace(/&?_systemName_=[^&]*/, ""), location.href = e7;
|
|
147
|
-
} else u2._isIframe = false, "popup" === o2 ? (oa.value = u2,
|
|
148
|
+
} else u2._isIframe = false, "popup" === o2 ? (oa.value = u2, la.value = true) : "refresh" === o2 && _a.push({ path: "/dsc/page", query: u2 });
|
|
148
149
|
}), B.$on(Qe.value + "close-dialog", (e7) => {
|
|
149
150
|
!function(e8) {
|
|
150
151
|
const a4 = e8.jumpMode;
|
|
@@ -152,13 +153,13 @@ const we = ["element-loading-text"], De = e({ __name: "super-page", props: { pag
|
|
|
152
153
|
}(e7);
|
|
153
154
|
});
|
|
154
155
|
}
|
|
155
|
-
}
|
|
156
|
+
} else console.error("页面配置信息不存在");
|
|
156
157
|
});
|
|
157
158
|
}), B.$on(Qe.value + "save-chart-condition", (e4) => {
|
|
158
159
|
ya.value = true;
|
|
159
160
|
}), B.$on("pageLoaded", () => {
|
|
160
161
|
const e4 = { runtime: { events: sa.value.events }, systemCode: "", systemVersion: 0, code: "", version: 0, workflowCode: "", workflowVersion: 0, name: "", uuid: "", label: "" };
|
|
161
|
-
sa.value.canClick = true, _e.value = false, M(null, sa.value, e4, "load"),
|
|
162
|
+
sa.value.canClick = true, _e.value = false, M(null, sa.value, e4, "load"), Se(Ne.getAutoAnchorComponentConditions(), sa.value);
|
|
162
163
|
}), B.$on(Qe.value + "event-call-component", (e4) => {
|
|
163
164
|
var _a3;
|
|
164
165
|
(_a3 = Pa.value) == null ? void 0 : _a3.renderComponent(e4.componentName, e4.componentProps);
|
|
@@ -168,7 +169,7 @@ const we = ["element-loading-text"], De = e({ __name: "super-page", props: { pag
|
|
|
168
169
|
}, 3e3), ca.value++, sa.value.isRefresh = false);
|
|
169
170
|
}), z(sa.value, null, (_a2 = Re.pageRequest) == null ? void 0 : _a2.isNeedId);
|
|
170
171
|
}
|
|
171
|
-
const ja =
|
|
172
|
+
const ja = t();
|
|
172
173
|
function xa() {
|
|
173
174
|
u(() => {
|
|
174
175
|
var _a2, _b;
|
|
@@ -176,8 +177,8 @@ const we = ["element-loading-text"], De = e({ __name: "super-page", props: { pag
|
|
|
176
177
|
if (sa.value && (sa.value.pageRuntimeStyle || (sa.value.pageRuntimeStyle = {}), !ga)) {
|
|
177
178
|
let a2 = Re.contentHeight;
|
|
178
179
|
Number(a2) && (a2 += "px");
|
|
179
|
-
const
|
|
180
|
-
|
|
180
|
+
const t2 = a2 ?? ((_b = (_a2 = e3 == null ? void 0 : e3.getBoundingClientRect) == null ? void 0 : _a2.call(e3)) == null ? void 0 : _b.height) ?? 0;
|
|
181
|
+
t2 && (sa.value.pageRuntimeStyle.height = t2);
|
|
181
182
|
}
|
|
182
183
|
});
|
|
183
184
|
}
|
|
@@ -185,31 +186,31 @@ const we = ["element-loading-text"], De = e({ __name: "super-page", props: { pag
|
|
|
185
186
|
const e3 = sa.value.entity.data, a2 = null == e3.ID ? e3.id : e3.ID;
|
|
186
187
|
pa && pa.query && pa.query._t_ && a2 && fe(pa.query._t_ + "_id", a2);
|
|
187
188
|
}
|
|
188
|
-
function
|
|
189
|
+
function Sa() {
|
|
189
190
|
Be.value = false, Ve.value = null;
|
|
190
191
|
}
|
|
191
|
-
function
|
|
192
|
-
Q(Ve.value.pageContext, Ve.value.configureObj, a2,
|
|
192
|
+
function Ta(e3, a2) {
|
|
193
|
+
Q(Ve.value.pageContext, Ve.value.configureObj, a2, ha.value);
|
|
193
194
|
}
|
|
194
|
-
|
|
195
|
+
l(() => {
|
|
195
196
|
var _a2;
|
|
196
197
|
ma.value = ((_a2 = pa.query) == null ? void 0 : _a2.paramStoreId) ?? null, x(ma.value), function() {
|
|
197
|
-
if (
|
|
198
|
+
if (Ne.resetComponentCounters(), Ne.resetAutoAnchorComponentConditions(), Re.isPreview && Re.pageDesign) {
|
|
198
199
|
_e.value = true;
|
|
199
200
|
let e3 = Re.pageDesign;
|
|
200
201
|
const a2 = ba(e3);
|
|
201
202
|
$(e3, a2).then((a3) => {
|
|
202
203
|
e3.contextParam = a3.contextParam, e3.branchFieldAuth = a3.branchFieldAuth, e3.systemParam = a3.systemParam, e3.isWorkflowEntity = a3.isWorkflowEntity, e3.dataTypeMaps = a3.dataTypeMaps, We.value = e3, ka(e3).then(() => {
|
|
203
|
-
$a(),
|
|
204
|
+
$a(), ta.value = true, ga || L(sa.value), xa();
|
|
204
205
|
});
|
|
205
206
|
}).finally(() => {
|
|
206
207
|
_e.value = false;
|
|
207
208
|
});
|
|
208
|
-
} else Re.pageCode && (_e.value = true,
|
|
209
|
+
} else Re.pageCode && (_e.value = true, S(Re.pageCode).then((e3) => {
|
|
209
210
|
if (e3 && e3.designJson) {
|
|
210
|
-
const a2 = e3.designJson,
|
|
211
|
-
|
|
212
|
-
$a(),
|
|
211
|
+
const a2 = e3.designJson, t2 = JSON.parse(a2);
|
|
212
|
+
t2.contextParam = e3.contextParam, t2.branchFieldAuth = e3.branchFieldAuth, t2.systemParam = e3.systemParam, t2.isWorkflowEntityOrg = e3.isWorkflowEntity, "form" === t2.pageType && t2.workflowCode && (t2.isWorkflowEntity = e3.isWorkflowEntity), t2.dataTypeMaps = e3.dataTypeMaps, We.value = t2, ka(t2).then(() => {
|
|
213
|
+
$a(), ta.value = true, ga || L(sa.value), xa();
|
|
213
214
|
});
|
|
214
215
|
}
|
|
215
216
|
}).catch((e3) => {
|
|
@@ -225,24 +226,24 @@ const we = ["element-loading-text"], De = e({ __name: "super-page", props: { pag
|
|
|
225
226
|
}), n(() => {
|
|
226
227
|
R(sa.value), We.value && F(We.value), B.$off(Qe.value + "export-form-report"), B.$off(Qe.value + "export-pdf-report"), B.$off(Qe.value + "import-file"), B.$off(Qe.value + "assign-task"), B.$off(Qe.value + "copy-task"), B.$off(Qe.value + "add-signer"), B.$off(Qe.value + "choose-return-node"), B.$off(Qe.value + "remove-signer"), B.$off(Qe.value + "prohibit-edit"), B.$off(Qe.value + "open-dialog"), B.$off(Qe.value + "save-chart-condition"), B.$off("pageLoaded"), sa.value && M(null, sa.value, sa.value, "onUnmounted"), fa && clearTimeout(fa), da && clearTimeout(da);
|
|
227
228
|
});
|
|
228
|
-
const
|
|
229
|
-
function
|
|
229
|
+
const wa = a(null);
|
|
230
|
+
function Da(e3) {
|
|
230
231
|
true === Le.value && (Le.value = false, K(Ve.value, e3)), true === Je.value && (Je.value = false, X(Ve.value, e3)), true === He.value && (He.value = false, Y(Ve.value, e3)), true === Ue.value && (Ue.value = false, Z(Ve.value, e3));
|
|
231
232
|
}
|
|
232
|
-
function
|
|
233
|
+
function Na(e3) {
|
|
233
234
|
Ke.value = [], Ge.value = false, ee(Ve.value, e3);
|
|
234
235
|
}
|
|
235
236
|
function qa(e3) {
|
|
236
237
|
Xe.value = [], Ze.value = false, ae(Ve.value, e3);
|
|
237
238
|
}
|
|
238
239
|
function Ra(e3) {
|
|
239
|
-
Ye.value = [], ea.value = false,
|
|
240
|
+
Ye.value = [], ea.value = false, te(Ve.value, e3);
|
|
240
241
|
}
|
|
241
242
|
const _a = ce();
|
|
242
243
|
function Fa(e3) {
|
|
243
244
|
var _a2, _b, _c, _d;
|
|
244
|
-
const a2 = (_a2 = oa.value) == null ? void 0 : _a2.closeEvent,
|
|
245
|
-
let
|
|
245
|
+
const a2 = (_a2 = oa.value) == null ? void 0 : _a2.closeEvent, t2 = (_b = oa.value) == null ? void 0 : _b.isRefreshWhenClosePopup;
|
|
246
|
+
let l2, o2;
|
|
246
247
|
const u2 = ua.value.tableName;
|
|
247
248
|
let n2;
|
|
248
249
|
const i2 = ia.value.columnProp ? ia.value.columnProp : null;
|
|
@@ -255,56 +256,56 @@ const we = ["element-loading-text"], De = e({ __name: "super-page", props: { pag
|
|
|
255
256
|
} else n2 = na.value;
|
|
256
257
|
if (e3) {
|
|
257
258
|
const a3 = e3.isNeedValueMapping;
|
|
258
|
-
|
|
259
|
+
l2 = e3.dataModel, o2 = e3.sourceTableName, a3 && le({ parentPageContext: ua.value, parentEventParams: ia.value, parentConfigureObj: n2, sourceModel: l2, sourceTableName: o2, valueMappings: oa.value ? oa.value.valueMappings : null });
|
|
259
260
|
}
|
|
260
|
-
if (M(null, ua.value, n2, "closePopup", { sourceModel:
|
|
261
|
-
const
|
|
262
|
-
a2.apply(a2,
|
|
263
|
-
} else !function(e4, a3,
|
|
261
|
+
if (M(null, ua.value, n2, "closePopup", { sourceModel: l2, sourceTableName: o2, jumpPageSetting: oa.value, entity: ua.value.entity.data, targetTableName: u2, pageContext: sa.value, parentPageContext: ua.value, parentConfigureObj: n2, columnProp: i2 }), "function" == typeof a2) {
|
|
262
|
+
const t3 = (e3 == null ? void 0 : e3.dataModel) ? [{ dataModel: e3.dataModel }] : [];
|
|
263
|
+
a2.apply(a2, t3);
|
|
264
|
+
} else !function(e4, a3, t3) {
|
|
264
265
|
if (e4) {
|
|
265
|
-
const
|
|
266
|
-
|
|
266
|
+
const l3 = I(ua.value, e4);
|
|
267
|
+
l3 && l3.apply(l3, [{ pageContext: sa.value, parentPageContext: ua.value, parentConfigureObj: t3, jumpPageSetting: oa.value, columnProp: a3 }]);
|
|
267
268
|
}
|
|
268
269
|
}(a2, i2, n2);
|
|
269
|
-
oe(ua.value, na.value,
|
|
270
|
+
oe(ua.value, na.value, t2, void 0 !== t2 && false === t2 ? "noOperation" : null), ua.value = null, na.value = null, ia.value = null, B.$off(Qe.value + "close-dialog"), la.value = false;
|
|
270
271
|
}
|
|
271
272
|
function Ma(e3) {
|
|
272
273
|
ue(sa.value, e3).then((e4) => {
|
|
273
|
-
ie({ showClose: true, type: "success", message: qe("superPageRuntimeMessage.successfulSave") }),
|
|
274
|
+
ie({ showClose: true, type: "success", message: qe("superPageRuntimeMessage.successfulSave") }), Ca.value.refreshConditionList();
|
|
274
275
|
});
|
|
275
276
|
}
|
|
276
277
|
function Oa(e3) {
|
|
277
278
|
const a2 = e3.queryCondition;
|
|
278
|
-
let
|
|
279
|
-
a2 && (
|
|
279
|
+
let t2 = {};
|
|
280
|
+
a2 && (t2 = JSON.parse(a2)), t2 && t2.data && Object.assign(sa.value.entity.data, t2.data), t2 && t2.page && Object.assign(sa.value.entity.page, t2.page), ya.value = false;
|
|
280
281
|
}
|
|
281
|
-
return
|
|
282
|
-
let a2 = e3.componentId,
|
|
283
|
-
(a2 ||
|
|
282
|
+
return we2({ pickFileDone: function(e3) {
|
|
283
|
+
let a2 = e3.componentId, t2 = e3.listCode;
|
|
284
|
+
(a2 || t2) && (t2 ? B.$emit(t2 + "-pickFileDone", e3) : B.$emit(a2 + "-pickFileDone", e3));
|
|
284
285
|
}, uploadFileDone: function(e3) {
|
|
285
|
-
let a2 = e3.componentId,
|
|
286
|
-
(a2 ||
|
|
286
|
+
let a2 = e3.componentId, t2 = e3.listCode;
|
|
287
|
+
(a2 || t2) && (t2 ? B.$emit(t2 + "-uploadFileDone", e3) : B.$emit(a2 + "-uploadFileDone", e3));
|
|
287
288
|
}, uploadFileError: function(e3) {
|
|
288
|
-
let a2 = e3.componentId,
|
|
289
|
-
(a2 ||
|
|
289
|
+
let a2 = e3.componentId, t2 = e3.listCode;
|
|
290
|
+
(a2 || t2) && (t2 ? B.$emit(t2 + "-uploadFileError", e3) : B.$emit(a2 + "-uploadFileError", e3));
|
|
290
291
|
}, scanDone: function(e3) {
|
|
291
|
-
let a2 = e3.componentId,
|
|
292
|
-
(a2 ||
|
|
292
|
+
let a2 = e3.componentId, t2 = e3.listCode;
|
|
293
|
+
(a2 || t2) && (t2 ? B.$emit(t2 + "-scanDone", e3) : B.$emit(a2 + "-scanDone", e3));
|
|
293
294
|
}, getFormFormatData: function() {
|
|
294
295
|
return je.getFormFormatDataUtil(sa.value);
|
|
295
296
|
} }), (e3, a2) => {
|
|
296
297
|
var _a2, _b, _c, _d;
|
|
297
|
-
const
|
|
298
|
-
return s((
|
|
298
|
+
const t2 = i("loading");
|
|
299
|
+
return s((v(), r("div", { class: c(["app-container runtime-page-container", [Fe.value]]), style: m((_a2 = p(sa)) == null ? void 0 : _a2.pageRuntimeStyle), "element-loading-text": ((_b = p(sa)) == null ? void 0 : _b.loadingText) ? (_c = p(sa)) == null ? void 0 : _c.loadingText : p(qe)("superPageRuntimeMessage.pageDefaultLoadingText") }, [ta.value ? (v(), r("div", { ref_key: "thisRef", ref: Oe, key: ca.value, class: c(["runtime-page-container-view", Ee.value]), style: m(Ae.value) }, [(v(true), r(C, null, h(Ie.value, (e4, a3) => (v(), d(b, { key: e4.uuid, configure: e4, pageContext: p(sa) }, null, 8, ["configure", "pageContext"]))), 128)), f(xe, { pageContext: p(sa) }, null, 8, ["pageContext"]), Be.value ? (v(), d(E, { key: 0, configure: ra.value, pageContext: va.value, onClose: Sa, onExport: Ta }, null, 8, ["configure", "pageContext"])) : g("", true), y("input", { ref_key: "_selectFile_", ref: wa, type: "file", name: "_selectFile_", style: { display: "none" }, onChange: a2[0] || (a2[0] = (e4) => function() {
|
|
299
300
|
if (Ve.value) {
|
|
300
|
-
if (!
|
|
301
|
-
if ("" ===
|
|
302
|
-
const e5 =
|
|
303
|
-
e5 ? (
|
|
301
|
+
if (!wa.value) return;
|
|
302
|
+
if ("" === wa.value.value || null === wa.value.value) return;
|
|
303
|
+
const e5 = wa.value.files[0];
|
|
304
|
+
e5 ? (wa.value.value = null, G(Ve.value, e5)) : ie({ showClose: true, type: "warning", message: qe("superPageRuntimeMessage.noFileSelected") });
|
|
304
305
|
}
|
|
305
|
-
}()) }, null, 544), Le.value || Je.value || He.value || Ue.value ? (
|
|
306
|
+
}()) }, null, 544), Le.value || Je.value || He.value || Ue.value ? (v(), d(p(re), { key: 1, width: "60%", multiple: ze.value, onClose: Da }, null, 8, ["multiple"])) : g("", true), Ge.value ? (v(), d(A, { key: 2, "task-informitions": Ke.value, onClose: a2[1] || (a2[1] = (e4) => Ge.value = false), onResult: Na }, null, 8, ["task-informitions"])) : g("", true), Ze.value ? (v(), d(W, { key: 3, "task-id": aa.value, "active-tasks": Xe.value, onClose: a2[2] || (a2[2] = (e4) => Ze.value = false), onResult: qa }, null, 8, ["task-id", "active-tasks"])) : g("", true), ea.value ? (v(), d(V, { key: 4, "task-id": aa.value, "transactor-info": Ye.value, onClose: a2[3] || (a2[3] = (e4) => ea.value = false), onResult: Ra }, null, 8, ["task-id", "transactor-info"])) : g("", true), la.value ? (v(), d(pe, { key: 5, parentPageContext: ua.value, parentPageEventParams: ia.value, jumpPageSetting: oa.value, onClose: a2[4] || (a2[4] = (e4) => Fa()) }, null, 8, ["parentPageContext", "parentPageEventParams", "jumpPageSetting"])) : g("", true), ya.value ? (v(), d(ke, { key: 6, ref_key: "chartCondtionRef", ref: Ca, pageContext: p(sa), onClose: a2[5] || (a2[5] = (e4) => ya.value = false), onSave: Ma, onConfirm: Oa }, null, 8, ["pageContext"])) : g("", true), f($e, { ref_key: "eventCallComponentRef", ref: Pa }, null, 512)], 6)) : g("", true)], 14, Te)), [[t2, _e.value || ((_d = p(sa)) == null ? void 0 : _d.isLoading)]]);
|
|
306
307
|
};
|
|
307
308
|
} });
|
|
308
309
|
export {
|
|
309
|
-
|
|
310
|
+
we as default
|
|
310
311
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-runtime",
|
|
3
|
-
"version": "2.3.47
|
|
3
|
+
"version": "2.3.47",
|
|
4
4
|
"description": "AgileBuilder super page runtime",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/es/index.js",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
50
50
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
51
51
|
"@vue/test-utils": "^2.4.4",
|
|
52
|
-
"agilebuilder-ui": "1.2.6
|
|
52
|
+
"agilebuilder-ui": "1.2.6",
|
|
53
53
|
"axios": "^1.6.8",
|
|
54
54
|
"cypress": "^13.6.6",
|
|
55
55
|
"element-plus": "^2.6.1",
|
package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime2.vue.js
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, onMounted as l, nextTick as t, computed as o, resolveComponent as u, openBlock as r, createBlock as n, normalizeStyle as i, unref as d, normalizeClass as c, createSlots as p, withCtx as s, createElementVNode as v, createElementBlock as f, Fragment as g, createTextVNode as m, toDisplayString as h } from "vue";
|
|
2
|
-
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
3
|
-
import { getDateShortCuts as C } from "../../../../utils/form/date-shortcuts.js";
|
|
4
|
-
import { getModelFieldFromPageContext as x, getValueFromVariable as b, setVariableValue as F, getVariableValue as V, isDateDataType as k } from "../../../../utils/page-helper-util.js";
|
|
5
|
-
import { handleAfterInitEvent as T, getCustomFunc as z, handleFormEvent as P } from "../../../../utils/events/event-util.js";
|
|
6
|
-
import j from "../common/title-suffix-element.vue.js";
|
|
7
|
-
import R from "dayjs";
|
|
8
|
-
import { $t as Y } from "../../../../utils/i18n-util.js";
|
|
9
|
-
import { addRequiredClassUtil as D } from "../../../../utils/common-util.js";
|
|
10
|
-
import { DatePickerRange as _, DateQuarterPicker as S } from "agilebuilder-ui";
|
|
11
|
-
const q = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: q2 }) {
|
|
12
|
-
var _a;
|
|
13
|
-
const w = e2, A = a(null), B = w.pageContext.entity ? w.pageContext.entity : {}, I = w.configure.runtime ? w.configure.runtime : {}, M = I.style, U = I.class, N = I.headerStyle, W = I.titleExceedStyle, $ = a(I.props ? I.props : {});
|
|
14
|
-
let E = y(w.pageContext, w.configure, $.value.prop);
|
|
15
|
-
if (w.pageContext.modelFieldsMap && E && E.length > 0 && "data" === E[0]) {
|
|
16
|
-
const e3 = x(E, w.pageContext);
|
|
17
|
-
e3 && function(e4) {
|
|
18
|
-
const a2 = e4.dataType;
|
|
19
|
-
k(a2) && ("year" === $.value.dateType && "YYYY" === $.value.valueFormat || "month" === $.value.dateType && "YYYY-MM" === $.value.valueFormat) && ($.value.valueFormat = "x");
|
|
20
|
-
}(e3);
|
|
21
|
-
}
|
|
22
|
-
let O = null, G = false;
|
|
23
|
-
if ($.value.dateType && $.value.dateType.includes("range")) {
|
|
24
|
-
G = true;
|
|
25
|
-
let e3 = $.value.prop2;
|
|
26
|
-
e3 && e3.startsWith("${") || (e3 = "${page." + w.configure.uuid + "-2}");
|
|
27
|
-
const a2 = b(B, e3, null);
|
|
28
|
-
if (e3 = e3.substring(2, e3.length - 1), O = e3.split("."), !(a2 || B.data && (B.data.id || B.data.ID)) && $.value.defaultValue2) {
|
|
29
|
-
const e4 = b(B, $.value.defaultValue2);
|
|
30
|
-
if (null != e4 && "" !== e4) F(B, O, e4);
|
|
31
|
-
else if (((_a = $.value.moreDefaultValue2) == null ? void 0 : _a.length) > 0) {
|
|
32
|
-
const e5 = $.value.moreDefaultValue2;
|
|
33
|
-
for (let a3 = 0; a3 < e5.length; a3++) {
|
|
34
|
-
const l2 = b(B, e5[a3]);
|
|
35
|
-
if (null != l2 && "" !== l2) {
|
|
36
|
-
F(B, O, l2);
|
|
37
|
-
break;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
const H = a(null), J = a(null), K = a(null);
|
|
44
|
-
function L(e3, a2) {
|
|
45
|
-
if (!e3) return e3;
|
|
46
|
-
if (a2) {
|
|
47
|
-
"number" != typeof e3 || isNaN(e3) || 4 !== e3.toString().length || (e3 = e3.toString());
|
|
48
|
-
try {
|
|
49
|
-
const l2 = R(e3);
|
|
50
|
-
let t2 = null;
|
|
51
|
-
return t2 = "x" === a2 ? l2.toDate().getTime() : R(e3).format(a2), "Invalid Date" === t2 ? e3 : t2;
|
|
52
|
-
} catch (a3) {
|
|
53
|
-
return e3;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
return e3;
|
|
57
|
-
}
|
|
58
|
-
if (l(() => {
|
|
59
|
-
t(() => {
|
|
60
|
-
const e3 = Q.value;
|
|
61
|
-
T(e3, w.pageContext, w.configure, { formItemRef: H.value, componentRef: J.value, titleRef: K.value, value: e3, entity: w.pageContext.entity.data, pageData: w.pageContext.entity.page });
|
|
62
|
-
});
|
|
63
|
-
}), E) {
|
|
64
|
-
const e3 = V(B, E), a2 = L(e3, $.value.valueFormat);
|
|
65
|
-
e3 !== a2 && F(B, E, a2);
|
|
66
|
-
}
|
|
67
|
-
if (O) {
|
|
68
|
-
const e3 = V(B, O), a2 = L(e3, $.value.valueFormat);
|
|
69
|
-
e3 !== a2 && F(B, O, a2);
|
|
70
|
-
}
|
|
71
|
-
const Q = o({ get() {
|
|
72
|
-
if (G) {
|
|
73
|
-
const e3 = [];
|
|
74
|
-
let a2 = V(B, E);
|
|
75
|
-
e3.push(L(a2, $.value.valueFormat));
|
|
76
|
-
let l2 = V(B, O);
|
|
77
|
-
return e3.push(L(l2, $.value.valueFormat)), e3;
|
|
78
|
-
}
|
|
79
|
-
return L(V(B, E), $.value.valueFormat);
|
|
80
|
-
}, set(e3) {
|
|
81
|
-
G ? Array.isArray(e3) ? (F(B, E, e3[0]), F(B, O, e3[1]), A.value = "") : null === e3 && (F(B, E, null), F(B, O, null)) : (F(B, E, e3), null != e3 && (A.value = ""));
|
|
82
|
-
} }), X = a(C($.value.dateScopeDetails, $.value.sourceType, $.value.dateType));
|
|
83
|
-
if ($.value.shortcutsFunc) {
|
|
84
|
-
const e3 = z(w.pageContext, $.value.shortcutsFunc);
|
|
85
|
-
if (e3) {
|
|
86
|
-
let a2 = e3.apply(e3, [{ pageContext: w.pageContext, configureObj: w.configure }]);
|
|
87
|
-
if (a2) {
|
|
88
|
-
Array.isArray(a2) || (a2 = [a2]), X.value || (X.value = []);
|
|
89
|
-
for (let e4 of a2) e4.text && e4.value && X.value.push(e4);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
return q2({ addRequiredClass: function() {
|
|
94
|
-
A.value = D();
|
|
95
|
-
} }), (a2, l2) => {
|
|
96
|
-
const t2 = u("el-time-picker"), o2 = u("el-date-picker"), y2 = u("el-form-item");
|
|
97
|
-
return r(), n(y2, { ref_key: "formItemRef", ref: H, required: $.value.required, class: c(d(U) + (A.value ? " " + A.value : "")), "label-width": $.value.labelWidth, style: i(d(M)) }, p({ default: s(() => ["time" == $.value.dateType || "timerange" == $.value.dateType ? (r(), n(t2, { key: 0, ref_key: "componentRef", ref: J, "is-range": "timerange" == $.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: $.value.clearable, disabled: "disabled" === $.value.state, readonly: "readonly" === $.value.state, size: $.value.size, placeholder: d(Y)($.value.placeholder), "start-placeholder": d(Y)($.value.placeholder), "end-placeholder": d(Y)($.value.endPlaceholder ? $.value.endPlaceholder : $.value.placeholder), "unlink-panels": true, format: $.value.format, "value-format": $.value.valueFormat, modelValue: Q.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => Q.value = e3), shortcuts: X.value, type: $.value.dateType, onChange: l2[1] || (l2[1] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "change")), onBlur: l2[2] || (l2[2] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "blur")), onFocus: l2[3] || (l2[3] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "focus")), onVisibleChange: l2[4] || (l2[4] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "visible-change")), onPanelChange: l2[5] || (l2[5] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "panel-change")), onClear: l2[6] || (l2[6] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "clear")) }, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"])) : "combined" !== $.value.dateRangePickerMode && ["daterange", "datetimerange", "monthrange", "yearrange"].includes($.value.dateType) ? (r(), n(d(_), { key: 1, modelValue: Q.value, "onUpdate:modelValue": l2[7] || (l2[7] = (e3) => Q.value = e3), type: $.value.dateType, disabled: "disabled" === $.value.state, readonly: "readonly" === $.value.state, clearable: $.value.clearable, format: $.value.format, "value-format": $.value.valueFormat, placeholder: d(Y)($.value.placeholder), "start-placeholder": d(Y)($.value.placeholder), "end-placeholder": d(Y)($.value.endPlaceholder ? $.value.endPlaceholder : $.value.placeholder), size: $.value.size, shortcuts: X.value, onChange: l2[8] || (l2[8] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "change")), onBlur: l2[9] || (l2[9] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "blur")), onFocus: l2[10] || (l2[10] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "focus")), onVisibleChange: l2[11] || (l2[11] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "visible-change")), onPanelChange: l2[12] || (l2[12] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "panel-change")), onClear: l2[13] || (l2[13] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "clear")) }, null, 8, ["modelValue", "type", "disabled", "readonly", "clearable", "format", "value-format", "placeholder", "start-placeholder", "end-placeholder", "size", "shortcuts"])) : "quarter" === $.value.dateType ? (r(), n(d(S), { key: 2, modelValue: Q.value, "onUpdate:modelValue": l2[14] || (l2[14] = (e3) => Q.value = e3), type: $.value.dateType, disabled: "disabled" === $.value.state, readonly: "readonly" === $.value.state, clearable: $.value.clearable, format: $.value.format, "value-format": $.value.valueFormat, placeholder: d(Y)($.value.placeholder), size: $.value.size, onChange: l2[15] || (l2[15] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "change")), onBlur: l2[16] || (l2[16] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "blur")), onFocus: l2[17] || (l2[17] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "focus")), onClear: l2[18] || (l2[18] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "clear")) }, null, 8, ["modelValue", "type", "disabled", "readonly", "clearable", "format", "value-format", "placeholder", "size"])) : (r(), n(o2, { key: 3, ref_key: "componentRef", ref: J, clearable: $.value.clearable, style: { width: "100%" }, "unlink-panels": true, disabled: "disabled" === $.value.state, readonly: "readonly" === $.value.state, size: $.value.size, placeholder: d(Y)($.value.placeholder), "start-placeholder": d(Y)($.value.placeholder), "end-placeholder": d(Y)($.value.endPlaceholder ? $.value.endPlaceholder : $.value.placeholder), format: $.value.format, "value-format": $.value.valueFormat, modelValue: Q.value, "onUpdate:modelValue": l2[19] || (l2[19] = (e3) => Q.value = e3), shortcuts: X.value, type: $.value.dateType, onChange: l2[20] || (l2[20] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "change")), onBlur: l2[21] || (l2[21] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "blur")), onFocus: l2[22] || (l2[22] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "focus")), onVisibleChange: l2[23] || (l2[23] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "visible-change")), onPanelChange: l2[24] || (l2[24] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "panel-change")), onClear: l2[25] || (l2[25] = (a3) => d(P)(a3, e2.pageContext, e2.configure, "clear")) }, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"]))]), _: 2 }, [$.value.tittleShow ? { name: "label", fn: s(() => [v("div", { ref_key: "titleRef", ref: K, style: i({ ...d(N), ...d(W) }) }, [$.value.prefixType ? (r(), n(j, { key: 0, pageContext: e2.pageContext, property: $.value }, null, 8, ["pageContext", "property"])) : (r(), f(g, { key: 1 }, [m(h(d(Y)($.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
98
|
-
};
|
|
99
|
-
} });
|
|
100
|
-
export {
|
|
101
|
-
q as default
|
|
102
|
-
};
|
package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime2.vue.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, computed as t, onMounted as n, nextTick as o, onUnmounted as a, watch as u, resolveComponent as i, openBlock as r, createBlock as s, normalizeStyle as p, unref as c, normalizeClass as v, createSlots as f, withCtx as m, createVNode as y, createCommentVNode as g, createTextVNode as d, toDisplayString as x, createElementVNode as C, createElementBlock as T, Fragment as I } from "vue";
|
|
2
|
-
import { SuperIcon as k } from "agilebuilder-ui";
|
|
3
|
-
import { getFormModelFields as V } from "../../../../utils/page-init-util.js";
|
|
4
|
-
import { getModelFieldFromPageContext as w, isNumberDataType as h, setVariableValue as b, getVariableValue as _ } from "../../../../utils/page-helper-util.js";
|
|
5
|
-
import { handleFormEvent as j, handleAfterInitEvent as S, doSuffixOrPrefixClickEvent as R } from "../../../../utils/events/event-util.js";
|
|
6
|
-
import { formatScanRuleSets as O, analysisScanValue as P, setScanAnalysisValue as q } from "../../../../utils/form/scan-util.js";
|
|
7
|
-
import D from "../common/title-suffix-element.vue.js";
|
|
8
|
-
import { isMobileBrowser as M, isDingTalkEnv as N } from "agilebuilder-ui/src/utils/common-util";
|
|
9
|
-
import z from "../../../../utils/eventBus.js";
|
|
10
|
-
import { $t as J } from "../../../../utils/i18n-util.js";
|
|
11
|
-
import { addRequiredClassUtil as L } from "../../../../utils/common-util.js";
|
|
12
|
-
const B = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: B2 }) {
|
|
13
|
-
var _a, _b, _c;
|
|
14
|
-
const F = e2, $ = F.pageContext.entity ? F.pageContext.entity : {}, A = l("text");
|
|
15
|
-
let E = V(F.pageContext, F.configure);
|
|
16
|
-
if (F.pageContext.modelFieldsMap) {
|
|
17
|
-
const e3 = w(E, F.pageContext);
|
|
18
|
-
e3 && (A.value = h(e3.dataType) ? "number" : "text");
|
|
19
|
-
}
|
|
20
|
-
const H = l(M()), U = F.pageContext.code, W = l(E && E.length > 0 ? U + "__" + E.join("__") : null), G = l(null), K = t({ get: () => _($, E), set(e3) {
|
|
21
|
-
b($, E, e3), null != e3 && "" !== e3 && (G.value = "");
|
|
22
|
-
} }), Q = l(null), X = l(null), Y = l(null), Z = F.configure.runtime ? F.configure.runtime : {}, ee = l(Z.props ? Z.props : {}), le = l(!!((_a = ee.value.scan) == null ? void 0 : _a.enable));
|
|
23
|
-
let te = false;
|
|
24
|
-
N() && (te = true);
|
|
25
|
-
let ne = "";
|
|
26
|
-
ne = navigator.userAgent.indexOf("Html5Plus") > 0 ? "app" : "browser";
|
|
27
|
-
const oe = !(!H.value || !ne || "app" !== ne), ae = l(!!((oe || te) && le.value || H.value && le.value && "https:" === window.location.protocol));
|
|
28
|
-
let ue = {};
|
|
29
|
-
((_b = ee.value.scan) == null ? void 0 : _b.enable) && ((_c = ee.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (O(ee.value.scan.ruleList).then((e3) => {
|
|
30
|
-
ue = e3;
|
|
31
|
-
}), u(() => K.value, (e3) => {
|
|
32
|
-
e3 = e3.trim();
|
|
33
|
-
const l2 = P(e3, ue);
|
|
34
|
-
l2 && q(F.pageContext, l2.scanSet, l2.params);
|
|
35
|
-
}));
|
|
36
|
-
const ie = Z.style, re = Z.class, se = Z.headerStyle, pe = Z.titleExceedStyle;
|
|
37
|
-
function ce(e3) {
|
|
38
|
-
return b($, E, e3);
|
|
39
|
-
}
|
|
40
|
-
n(() => {
|
|
41
|
-
z.$on(W.value + "-scanDone", (e3) => {
|
|
42
|
-
ce(e3.result), j(e3.result, F.pageContext, F.configure, "afterScanDone");
|
|
43
|
-
}), o(() => {
|
|
44
|
-
var _a2;
|
|
45
|
-
const e3 = K.value;
|
|
46
|
-
S(e3, F.pageContext, F.configure, { formItemRef: Q.value, componentRef: X.value, titleRef: Y.value, value: e3, entity: F.pageContext.entity.data, pageData: F.pageContext.entity.page }), ae.value && ((_a2 = ee.value.scan) == null ? void 0 : _a2.autoOpen) && fe();
|
|
47
|
-
});
|
|
48
|
-
}), a(() => {
|
|
49
|
-
z.$off(W.value + "-scanDone");
|
|
50
|
-
});
|
|
51
|
-
const ve = l(false);
|
|
52
|
-
function fe() {
|
|
53
|
-
if (oe || te) {
|
|
54
|
-
const e3 = { type: "scan", componentId: W.value, systemCode: F.pageContext.systemCode };
|
|
55
|
-
te && (e3.type = "dingTalkScan"), window.parent.parent ? window.parent.parent.postMessage(JSON.stringify(e3), "*") : window.parent && window.parent.postMessage(JSON.stringify(e3), "*");
|
|
56
|
-
} else if (H.value) if ("https:" === window.location.protocol) ve.value = true;
|
|
57
|
-
else {
|
|
58
|
-
const e3 = { type: "scan", componentId: W.value, systemCode: F.pageContext.systemCode };
|
|
59
|
-
window.parent.postMessage(JSON.stringify(e3), "*");
|
|
60
|
-
}
|
|
61
|
-
else ve.value = true;
|
|
62
|
-
}
|
|
63
|
-
function me(e3) {
|
|
64
|
-
ve.value = false, ce(e3);
|
|
65
|
-
}
|
|
66
|
-
return B2({ getValue: function() {
|
|
67
|
-
return _($, E);
|
|
68
|
-
}, setValue: ce, scanClick: fe, addRequiredClass: function() {
|
|
69
|
-
G.value = L();
|
|
70
|
-
} }), (l2, t2) => {
|
|
71
|
-
const n2 = i("el-input"), o2 = i("scan-code-input-browser"), a2 = i("el-form-item");
|
|
72
|
-
return r(), s(a2, { ref_key: "formItemRef", ref: Q, required: !!ee.value.required, class: v(c(re) + (G.value ? " " + G.value : "")), "label-width": ee.value.labelWidth, style: p(c(ie)) }, f({ default: m(() => [y(n2, { ref_key: "componentRef", ref: X, disabled: "disabled" === ee.value.state, readonly: "readonly" === ee.value.state, size: ee.value.size, clearable: ee.value.clearable, placeholder: c(J)(ee.value.placeholder), maxlength: ee.value.maxLength, "show-word-limit": ee.value.showInputNum, type: A.value, modelValue: K.value, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => K.value = e3), onInput: t2[6] || (t2[6] = (l3) => c(j)(l3, e2.pageContext, e2.configure, "input")), onChange: t2[7] || (t2[7] = (l3) => c(j)(l3, e2.pageContext, e2.configure, "change")), onBlur: t2[8] || (t2[8] = (e3) => function(e4) {
|
|
73
|
-
let l3 = _($, E);
|
|
74
|
-
null != l3 && (l3 = l3.trim()), b($, E, l3), j(e4, F.pageContext, F.configure, "blur");
|
|
75
|
-
}(e3)), onFocus: t2[9] || (t2[9] = (l3) => c(j)(l3, e2.pageContext, e2.configure, "focus")), onClick: t2[10] || (t2[10] = (l3) => c(j)(l3, e2.pageContext, e2.configure, "click")), onClear: t2[11] || (t2[11] = (l3) => c(j)(l3, e2.pageContext, e2.configure, "clear")) }, f({ _: 2 }, ["outer" != ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prefix", fn: m(() => [ee.value.preIconType && ee.value.preIconValue ? (r(), s(c(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: t2[0] || (t2[0] = (l3) => c(R)(K.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(c(J)(ee.value.preText)), 1)]), key: "0" } : void 0, "outer" == ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prepend", fn: m(() => [ee.value.preIconType && ee.value.preIconValue ? (r(), s(c(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: t2[1] || (t2[1] = (l3) => c(R)(K.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(c(J)(ee.value.preText)), 1)]), key: "1" } : void 0, "outer" != ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "suffix", fn: m(() => [ee.value.sufIconType && ee.value.sufIconValue ? (r(), s(c(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: t2[2] || (t2[2] = (l3) => c(R)(K.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(c(J)(ee.value.sufText)), 1)]), key: "2" } : void 0, ae.value || "outer" == ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "append", fn: m(() => [ae.value ? (r(), s(c(k), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: t2[3] || (t2[3] = (e3) => fe()) })) : g("", true), ee.value.sufIconType && ee.value.sufIconValue ? (r(), s(c(k), { key: 1, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: t2[4] || (t2[4] = (l3) => c(R)(K.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(c(J)(ee.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), ve.value ? (r(), s(o2, { key: 0, onClose: me, onCancel: t2[12] || (t2[12] = (e3) => ve.value = false) })) : g("", true)]), _: 2 }, [ee.value.tittleShow ? { name: "label", fn: m(() => [C("div", { ref_key: "titleRef", ref: Y, class: "amb-form-item-label", style: p({ ...c(se), ...c(pe) }) }, [ee.value.prefixType ? (r(), s(D, { key: 0, pageContext: e2.pageContext, property: ee.value }, null, 8, ["pageContext", "property"])) : (r(), T(I, { key: 1 }, [d(x(c(J)(ee.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
76
|
-
};
|
|
77
|
-
} });
|
|
78
|
-
export {
|
|
79
|
-
B as default
|
|
80
|
-
};
|
|
File without changes
|
|
File without changes
|