super-page-runtime 2.3.17 → 2.3.18-tmp2
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/page-init-util.d.ts +2 -1
- package/dist/es/components/runtime/utils/page-init-util.js +84 -65
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +17 -17
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +27 -27
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
- 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 +4 -4
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.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-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue.d.ts +11 -2
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +136 -128
- package/dist/es/style.css +76 -76
- package/dist/lib/_virtual/AttributeMap.js +4 -0
- package/dist/lib/_virtual/Barcode.js +4 -0
- package/dist/lib/_virtual/CODE128.js +4 -0
- package/dist/lib/_virtual/CODE128A.js +4 -0
- package/dist/lib/_virtual/CODE128B.js +4 -0
- package/dist/lib/_virtual/CODE128C.js +4 -0
- package/dist/lib/_virtual/CODE128_AUTO.js +4 -0
- package/dist/lib/_virtual/CODE93.js +4 -0
- package/dist/lib/_virtual/CODE93FullASCII.js +4 -0
- package/dist/lib/_virtual/Delta.js +4 -0
- package/dist/lib/_virtual/EAN.js +4 -0
- package/dist/lib/_virtual/EAN13.js +4 -0
- package/dist/lib/_virtual/EAN2.js +4 -0
- package/dist/lib/_virtual/EAN5.js +4 -0
- package/dist/lib/_virtual/EAN8.js +4 -0
- package/dist/lib/_virtual/ErrorHandler.js +4 -0
- package/dist/lib/_virtual/ITF.js +4 -0
- package/dist/lib/_virtual/ITF14.js +4 -0
- package/dist/lib/_virtual/JsBarcode.js +6 -0
- package/dist/lib/_virtual/MSI.js +4 -0
- package/dist/lib/_virtual/MSI10.js +4 -0
- package/dist/lib/_virtual/MSI1010.js +4 -0
- package/dist/lib/_virtual/MSI11.js +4 -0
- package/dist/lib/_virtual/MSI1110.js +4 -0
- package/dist/lib/_virtual/Op.js +4 -0
- package/dist/lib/_virtual/OpIterator.js +4 -0
- package/dist/lib/_virtual/OverloadYield.js +4 -0
- package/dist/lib/_virtual/SVGPathData.js +4 -0
- package/dist/lib/_virtual/SVGPathData2.js +5 -0
- package/dist/lib/_virtual/UPC.js +4 -0
- package/dist/lib/_virtual/UPCE.js +4 -0
- package/dist/lib/_virtual/_commonjsHelpers.js +33 -0
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/lib/_virtual/alignment-pattern.js +4 -0
- package/dist/lib/_virtual/arrayLikeToArray.js +4 -0
- package/dist/lib/_virtual/arrayWithHoles.js +4 -0
- package/dist/lib/_virtual/arrayWithoutHoles.js +4 -0
- package/dist/lib/_virtual/assertThisInitialized.js +4 -0
- package/dist/lib/_virtual/asyncToGenerator.js +4 -0
- package/dist/lib/_virtual/asyncToGenerator2.js +6 -0
- package/dist/lib/_virtual/auto.js +4 -0
- package/dist/lib/_virtual/backo2.js +4 -0
- package/dist/lib/_virtual/base64-arraybuffer.js +4 -0
- package/dist/lib/_virtual/binary.js +4 -0
- package/dist/lib/_virtual/browser.js +4 -0
- package/dist/lib/_virtual/browser2.js +4 -0
- package/dist/lib/_virtual/canvas.js +4 -0
- package/dist/lib/_virtual/canvas2.js +4 -0
- package/dist/lib/_virtual/checksums.js +4 -0
- package/dist/lib/_virtual/classCallCheck.js +4 -0
- package/dist/lib/_virtual/clipboard.js +4 -0
- package/dist/lib/_virtual/commons.js +4 -0
- package/dist/lib/_virtual/constants.js +4 -0
- package/dist/lib/_virtual/constants2.js +4 -0
- package/dist/lib/_virtual/constants3.js +4 -0
- package/dist/lib/_virtual/constants4.js +4 -0
- package/dist/lib/_virtual/createClass.js +4 -0
- package/dist/lib/_virtual/dayjs.min.js +4 -0
- package/dist/lib/_virtual/decodePacket.browser.js +4 -0
- package/dist/lib/_virtual/defaults.js +4 -0
- package/dist/lib/_virtual/defineProperty.js +4 -0
- package/dist/lib/_virtual/defineProperty2.js +6 -0
- package/dist/lib/_virtual/dijkstra.js +4 -0
- package/dist/lib/_virtual/encodePacket.browser.js +4 -0
- package/dist/lib/_virtual/encoder.js +4 -0
- package/dist/lib/_virtual/error-correction-code.js +4 -0
- package/dist/lib/_virtual/error-correction-level.js +4 -0
- package/dist/lib/_virtual/es.array.concat.js +4 -0
- package/dist/lib/_virtual/es.array.every.js +4 -0
- package/dist/lib/_virtual/es.array.fill.js +4 -0
- package/dist/lib/_virtual/es.array.for-each.js +4 -0
- package/dist/lib/_virtual/es.array.from.js +4 -0
- package/dist/lib/_virtual/es.array.includes.js +4 -0
- package/dist/lib/_virtual/es.array.index-of.js +4 -0
- package/dist/lib/_virtual/es.array.index-of2.js +3 -0
- package/dist/lib/_virtual/es.array.iterator.js +3 -0
- package/dist/lib/_virtual/es.array.join.js +4 -0
- package/dist/lib/_virtual/es.array.map.js +4 -0
- package/dist/lib/_virtual/es.array.reduce.js +4 -0
- package/dist/lib/_virtual/es.array.reduce2.js +3 -0
- package/dist/lib/_virtual/es.array.reverse.js +4 -0
- package/dist/lib/_virtual/es.array.reverse2.js +3 -0
- package/dist/lib/_virtual/es.array.some.js +4 -0
- package/dist/lib/_virtual/es.function.name.js +4 -0
- package/dist/lib/_virtual/es.map.constructor.js +4 -0
- package/dist/lib/_virtual/es.map.js +4 -0
- package/dist/lib/_virtual/es.number.constructor.js +4 -0
- package/dist/lib/_virtual/es.object.to-string.js +4 -0
- package/dist/lib/_virtual/es.parse-float.js +4 -0
- package/dist/lib/_virtual/es.promise.all.js +4 -0
- package/dist/lib/_virtual/es.promise.catch.js +4 -0
- package/dist/lib/_virtual/es.promise.constructor.js +4 -0
- package/dist/lib/_virtual/es.promise.js +4 -0
- package/dist/lib/_virtual/es.promise.race.js +4 -0
- package/dist/lib/_virtual/es.promise.reject.js +4 -0
- package/dist/lib/_virtual/es.promise.resolve.js +4 -0
- package/dist/lib/_virtual/es.promise2.js +3 -0
- package/dist/lib/_virtual/es.reflect.apply.js +4 -0
- package/dist/lib/_virtual/es.reflect.delete-property.js +4 -0
- package/dist/lib/_virtual/es.reflect.get-prototype-of.js +4 -0
- package/dist/lib/_virtual/es.regexp.exec.js +4 -0
- package/dist/lib/_virtual/es.regexp.to-string.js +4 -0
- package/dist/lib/_virtual/es.regexp.to-string2.js +3 -0
- package/dist/lib/_virtual/es.string.ends-with.js +4 -0
- package/dist/lib/_virtual/es.string.ends-with2.js +3 -0
- package/dist/lib/_virtual/es.string.includes.js +4 -0
- package/dist/lib/_virtual/es.string.includes2.js +3 -0
- package/dist/lib/_virtual/es.string.iterator.js +4 -0
- package/dist/lib/_virtual/es.string.match.js +4 -0
- package/dist/lib/_virtual/es.string.match2.js +3 -0
- package/dist/lib/_virtual/es.string.replace.js +4 -0
- package/dist/lib/_virtual/es.string.replace2.js +3 -0
- package/dist/lib/_virtual/es.string.split.js +4 -0
- package/dist/lib/_virtual/es.string.split2.js +3 -0
- package/dist/lib/_virtual/es.string.starts-with.js +4 -0
- package/dist/lib/_virtual/es.string.starts-with2.js +3 -0
- package/dist/lib/_virtual/es.string.trim.js +4 -0
- package/dist/lib/_virtual/es.string.trim2.js +3 -0
- package/dist/lib/_virtual/exceptions.js +4 -0
- package/dist/lib/_virtual/finder-pattern.js +4 -0
- package/dist/lib/_virtual/fixOptions.js +4 -0
- package/dist/lib/_virtual/format-info.js +4 -0
- package/dist/lib/_virtual/galois-field.js +4 -0
- package/dist/lib/_virtual/get.js +4 -0
- package/dist/lib/_virtual/getOptionsFromElement.js +4 -0
- package/dist/lib/_virtual/getPrototypeOf.js +4 -0
- package/dist/lib/_virtual/getRenderProperties.js +4 -0
- package/dist/lib/_virtual/globals.js +4 -0
- package/dist/lib/_virtual/has-cors.js +4 -0
- package/dist/lib/_virtual/html2canvas.js +4 -0
- package/dist/lib/_virtual/index.js +4 -0
- package/dist/lib/_virtual/index10.js +4 -0
- package/dist/lib/_virtual/index11.js +4 -0
- package/dist/lib/_virtual/index12.js +4 -0
- package/dist/lib/_virtual/index13.js +4 -0
- package/dist/lib/_virtual/index14.js +4 -0
- package/dist/lib/_virtual/index15.js +4 -0
- package/dist/lib/_virtual/index16.js +4 -0
- package/dist/lib/_virtual/index17.js +4 -0
- package/dist/lib/_virtual/index18.js +4 -0
- package/dist/lib/_virtual/index19.js +4 -0
- package/dist/lib/_virtual/index2.js +4 -0
- package/dist/lib/_virtual/index20.js +4 -0
- package/dist/lib/_virtual/index21.js +4 -0
- package/dist/lib/_virtual/index22.js +4 -0
- package/dist/lib/_virtual/index23.js +4 -0
- package/dist/lib/_virtual/index24.js +4 -0
- package/dist/lib/_virtual/index3.js +4 -0
- package/dist/lib/_virtual/index4.js +5 -0
- package/dist/lib/_virtual/index5.js +4 -0
- package/dist/lib/_virtual/index6.js +4 -0
- package/dist/lib/_virtual/index7.js +4 -0
- package/dist/lib/_virtual/index8.js +6 -0
- package/dist/lib/_virtual/index9.js +6 -0
- package/dist/lib/_virtual/inherits.js +4 -0
- package/dist/lib/_virtual/internal-metadata.js +4 -0
- package/dist/lib/_virtual/is-binary.js +4 -0
- package/dist/lib/_virtual/iterableToArray.js +4 -0
- package/dist/lib/_virtual/iterableToArrayLimit.js +4 -0
- package/dist/lib/_virtual/jquery.js +4 -0
- package/dist/lib/_virtual/jspdf.es.min.js +5 -0
- package/dist/lib/_virtual/linearizeEncodings.js +4 -0
- package/dist/lib/_virtual/make-built-in.js +4 -0
- package/dist/lib/_virtual/manager.js +4 -0
- package/dist/lib/_virtual/mask-pattern.js +4 -0
- package/dist/lib/_virtual/merge.js +4 -0
- package/dist/lib/_virtual/mode.js +4 -0
- package/dist/lib/_virtual/new-promise-capability.js +4 -0
- package/dist/lib/_virtual/nonIterableRest.js +4 -0
- package/dist/lib/_virtual/nonIterableSpread.js +4 -0
- package/dist/lib/_virtual/object-define-properties.js +4 -0
- package/dist/lib/_virtual/object-define-property.js +4 -0
- package/dist/lib/_virtual/object-get-own-property-descriptor.js +4 -0
- package/dist/lib/_virtual/object-get-own-property-names-external.js +4 -0
- package/dist/lib/_virtual/object-get-own-property-names.js +4 -0
- package/dist/lib/_virtual/object-get-own-property-symbols.js +4 -0
- package/dist/lib/_virtual/object-property-is-enumerable.js +4 -0
- package/dist/lib/_virtual/object.js +4 -0
- package/dist/lib/_virtual/on.js +4 -0
- package/dist/lib/_virtual/optionsFromStrings.js +4 -0
- package/dist/lib/_virtual/parseqs.js +4 -0
- package/dist/lib/_virtual/parseuri.js +4 -0
- package/dist/lib/_virtual/performance-now.js +4 -0
- package/dist/lib/_virtual/polling-fetch.js +4 -0
- package/dist/lib/_virtual/polling-xhr.js +4 -0
- package/dist/lib/_virtual/polling.js +4 -0
- package/dist/lib/_virtual/polynomial.js +4 -0
- package/dist/lib/_virtual/possibleConstructorReturn.js +4 -0
- package/dist/lib/_virtual/qrcode.js +4 -0
- package/dist/lib/_virtual/regenerator.js +4 -0
- package/dist/lib/_virtual/regeneratorAsync.js +4 -0
- package/dist/lib/_virtual/regeneratorAsyncGen.js +4 -0
- package/dist/lib/_virtual/regeneratorAsyncIterator.js +4 -0
- package/dist/lib/_virtual/regeneratorDefine.js +4 -0
- package/dist/lib/_virtual/regeneratorKeys.js +4 -0
- package/dist/lib/_virtual/regeneratorRuntime.js +4 -0
- package/dist/lib/_virtual/regeneratorValues.js +4 -0
- package/dist/lib/_virtual/regex.js +4 -0
- package/dist/lib/_virtual/segments.js +4 -0
- package/dist/lib/_virtual/setPrototypeOf.js +4 -0
- package/dist/lib/_virtual/shared-store.js +4 -0
- package/dist/lib/_virtual/shared.js +4 -0
- package/dist/lib/_virtual/slicedToArray.js +4 -0
- package/dist/lib/_virtual/socket.js +4 -0
- package/dist/lib/_virtual/socket2.js +4 -0
- package/dist/lib/_virtual/stackblur-es.js +5 -0
- package/dist/lib/_virtual/superPropBase.js +4 -0
- package/dist/lib/_virtual/svg-tag.js +4 -0
- package/dist/lib/_virtual/svg.js +4 -0
- package/dist/lib/_virtual/toConsumableArray.js +4 -0
- package/dist/lib/_virtual/toPrimitive.js +4 -0
- package/dist/lib/_virtual/toPropertyKey.js +4 -0
- package/dist/lib/_virtual/transport.js +4 -0
- package/dist/lib/_virtual/typeof.js +4 -0
- package/dist/lib/_virtual/unsupportedIterableToArray.js +4 -0
- package/dist/lib/_virtual/url.js +4 -0
- package/dist/lib/_virtual/util.js +4 -0
- package/dist/lib/_virtual/utils.js +4 -0
- package/dist/lib/_virtual/utils2.js +4 -0
- package/dist/lib/_virtual/version-check.js +4 -0
- package/dist/lib/_virtual/version.js +4 -0
- package/dist/lib/_virtual/vue-plugin-hiprint.js +4 -0
- package/dist/lib/_virtual/web.dom-collections.for-each.js +4 -0
- package/dist/lib/_virtual/web.dom-collections.iterator.js +4 -0
- package/dist/lib/_virtual/web.dom-collections.iterator2.js +3 -0
- package/dist/lib/_virtual/websocket.js +4 -0
- package/dist/lib/_virtual/webtransport.js +4 -0
- package/dist/lib/assets/chart-themes/theme1.d.ts +4 -0
- package/dist/lib/assets/chart-themes/theme1.js +7 -0
- package/dist/lib/assets/chart-themes/theme2.d.ts +4 -0
- package/dist/lib/assets/chart-themes/theme2.js +7 -0
- package/dist/lib/assets/chart-themes/theme3.d.ts +4 -0
- package/dist/lib/assets/chart-themes/theme3.js +7 -0
- package/dist/lib/assets/file.png.js +3 -0
- package/dist/lib/assets/folder.png.js +3 -0
- package/dist/lib/components/runtime/index.d.ts +5 -0
- package/dist/lib/components/runtime/utils/ai-chat-util.js +38 -0
- package/dist/lib/components/runtime/utils/api/api-util.d.ts +1 -0
- package/dist/lib/components/runtime/utils/api/api-util.js +9 -0
- package/dist/lib/components/runtime/utils/api/page-expose-util.d.ts +1 -0
- package/dist/lib/components/runtime/utils/api/page-expose-util.js +494 -0
- package/dist/lib/components/runtime/utils/assemblys-config.js +384 -0
- package/dist/lib/components/runtime/utils/barcode-util.d.ts +8 -0
- package/dist/lib/components/runtime/utils/barcode-util.js +36 -0
- package/dist/lib/components/runtime/utils/charts/chart-columnline-util.js +327 -0
- package/dist/lib/components/runtime/utils/charts/chart-gauge-util.js +77 -0
- package/dist/lib/components/runtime/utils/charts/chart-pie-util.js +162 -0
- package/dist/lib/components/runtime/utils/charts/chart-radar-util.js +130 -0
- package/dist/lib/components/runtime/utils/charts/chart-scatter-util.js +106 -0
- package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +113 -0
- package/dist/lib/components/runtime/utils/charts/chart-util.js +550 -0
- package/dist/lib/components/runtime/utils/common-util.d.ts +33 -0
- package/dist/lib/components/runtime/utils/common-util.js +219 -0
- package/dist/lib/components/runtime/utils/eventBus.d.ts +7 -0
- package/dist/lib/components/runtime/utils/eventBus.js +9 -0
- package/dist/lib/components/runtime/utils/events/event-util.d.ts +92 -0
- package/dist/lib/components/runtime/utils/events/event-util.js +752 -0
- package/dist/lib/components/runtime/utils/events/print-label.d.ts +5 -0
- package/dist/lib/components/runtime/utils/events/print-label.js +174 -0
- package/dist/lib/components/runtime/utils/events/standard-event.d.ts +96 -0
- package/dist/lib/components/runtime/utils/events/standard-event.js +2837 -0
- package/dist/lib/components/runtime/utils/events/validator-util.d.ts +25 -0
- package/dist/lib/components/runtime/utils/events/validator-util.js +730 -0
- package/dist/lib/components/runtime/utils/form/date-shortcuts.d.ts +7 -0
- package/dist/lib/components/runtime/utils/form/date-shortcuts.js +96 -0
- package/dist/lib/components/runtime/utils/form/scan-util.js +194 -0
- package/dist/lib/components/runtime/utils/global-refs.d.ts +65 -0
- package/dist/lib/components/runtime/utils/global-refs.js +88 -0
- package/dist/lib/components/runtime/utils/i18n-util.d.ts +1 -0
- package/dist/lib/components/runtime/utils/i18n-util.js +23 -0
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +247 -0
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +9 -0
- package/dist/lib/components/runtime/utils/page-helper-util.d.ts +174 -0
- package/dist/lib/components/runtime/utils/page-helper-util.js +767 -0
- package/dist/lib/components/runtime/utils/page-init-util.d.ts +48 -0
- package/dist/lib/components/runtime/utils/page-init-util.js +502 -0
- package/dist/lib/components/runtime/utils/page-permission-util.d.ts +26 -0
- package/dist/lib/components/runtime/utils/page-permission-util.js +717 -0
- package/dist/lib/components/runtime/utils/page-store.d.ts +46 -0
- package/dist/lib/components/runtime/utils/page-store.js +71 -0
- package/dist/lib/components/runtime/utils/store-util.d.ts +15 -0
- package/dist/lib/components/runtime/utils/store-util.js +17 -0
- package/dist/lib/components/runtime/utils/store.d.ts +2 -0
- package/dist/lib/components/runtime/utils/store.js +3 -0
- package/dist/lib/components/runtime/utils/table-utils.d.ts +34 -0
- package/dist/lib/components/runtime/utils/table-utils.js +126 -0
- package/dist/lib/components/runtime/utils/tree-utils.js +121 -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 +118 -0
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +55 -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 +135 -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 +19 -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 +110 -0
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +213 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +43 -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 +61 -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 +208 -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 +6 -0
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +179 -0
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +121 -0
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +171 -0
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +122 -0
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +132 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +121 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.js +786 -0
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +43 -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 +63 -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 +169 -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 +63 -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 +631 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +28 -0
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +163 -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/remove-signer-dialog.vue.d.ts +35 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +90 -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.d.ts +26 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue.js +76 -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.d.ts +35 -0
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +114 -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.d.ts +31 -0
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +181 -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.d.ts +26 -0
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +122 -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 +6 -0
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +106 -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 +85 -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 +89 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.js +99 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.d.ts +94 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +224 -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 +82 -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 +69 -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 +40 -0
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +272 -0
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +144 -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 +184 -0
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +943 -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 +718 -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 +187 -0
- package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +531 -0
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +22 -0
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +22 -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 +163 -0
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +101 -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 +212 -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 +290 -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 +176 -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 +61 -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 +225 -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 +116 -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 +310 -0
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +176 -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 +109 -0
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +52 -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 +208 -0
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +287 -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 +364 -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 +54 -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 +168 -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 +132 -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 +116 -0
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.js +169 -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.d.ts +17 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +265 -0
- package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +3 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +209 -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 +47 -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 +50 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +6 -0
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +64 -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 +58 -0
- package/dist/lib/components/runtime/views/home-chart.vue.d.ts +23 -0
- package/dist/lib/components/runtime/views/home-chart.vue.js +168 -0
- package/dist/lib/components/runtime/views/home-chart.vue2.js +3 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +40 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue.js +154 -0
- package/dist/lib/components/runtime/views/super-page-dialog.vue3.js +4 -0
- package/dist/lib/components/runtime/views/super-page.vue.d.ts +126 -0
- package/dist/lib/components/runtime/views/super-page.vue.js +6 -0
- package/dist/lib/components/runtime/views/super-page.vue2.js +856 -0
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/i18n/langs/cn.js +78 -0
- package/dist/lib/i18n/langs/en.js +78 -0
- package/dist/lib/index.d.ts +16 -0
- package/dist/lib/index.js +30 -0
- package/dist/lib/style.css +1169 -0
- package/package.json +2 -2
|
@@ -0,0 +1,943 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const Vue = require("vue");
|
|
3
|
+
const eventUtil = require("../../../../utils/events/event-util.js");
|
|
4
|
+
const commonUtil = require("../../../../utils/common-util.js");
|
|
5
|
+
const standardEvent = require("../../../../utils/events/standard-event.js");
|
|
6
|
+
const commonUtil$1 = require("../../../../../../node_modules/.pnpm/agilebuilder-ui@1.1.58_@vue_29e6d749740d5c0a82211de8e577b320/node_modules/agilebuilder-ui/src/utils/common-util.js");
|
|
7
|
+
const tableUtils = require("../../../../utils/table-utils.js");
|
|
8
|
+
const eventBus = require("../../../../utils/eventBus.js");
|
|
9
|
+
const pageInitUtil = require("../../../../utils/page-init-util.js");
|
|
10
|
+
const pageHelperUtil = require("../../../../utils/page-helper-util.js");
|
|
11
|
+
const globalRefs = require("../../../../utils/global-refs.js");
|
|
12
|
+
const chartTableUtil = require("../../chart/table/chart-table-util.js");
|
|
13
|
+
const _hoisted_1 = ["id"];
|
|
14
|
+
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
15
|
+
__name: "main-table-runtime",
|
|
16
|
+
props: {
|
|
17
|
+
pageContext: {},
|
|
18
|
+
configure: {}
|
|
19
|
+
},
|
|
20
|
+
emits: ["setSafeDeleteTableCode"],
|
|
21
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
22
|
+
const props = __props;
|
|
23
|
+
const pageContext = props.pageContext;
|
|
24
|
+
let configure = props.configure;
|
|
25
|
+
const runtimeInfo = Vue.ref({});
|
|
26
|
+
if (pageContext.isTest) {
|
|
27
|
+
runtimeInfo.value = props.configure.runtime ? props.configure.runtime : {};
|
|
28
|
+
} else {
|
|
29
|
+
if (pageContext.tableRuntimes && pageContext.tableRuntimes[configure.uuid]) {
|
|
30
|
+
configure = JSON.parse(pageContext.tableRuntimes[configure.uuid].configure);
|
|
31
|
+
runtimeInfo.value = configure.runtime ? configure.runtime : {};
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
const runtimeStyle = runtimeInfo.value.style;
|
|
35
|
+
const runtimeClass = runtimeInfo.value.class;
|
|
36
|
+
const systemCode = pageContext.systemCode;
|
|
37
|
+
const backendUrl = pageContext.backendUrl;
|
|
38
|
+
const tableName = configure.props && configure.props.dataOrigin && configure.props.dataOrigin.tableName;
|
|
39
|
+
let baseURL = commonUtil.getBaseUrl(pageContext.backendUrl, pageContext.isTest);
|
|
40
|
+
if (!baseURL) {
|
|
41
|
+
baseURL = window["$vueApp"].config.globalProperties.baseURL;
|
|
42
|
+
}
|
|
43
|
+
const operationButtonObj = Vue.ref({});
|
|
44
|
+
const linkageVariable = [];
|
|
45
|
+
const listOptions = Vue.ref({});
|
|
46
|
+
listOptions.value = getOptions();
|
|
47
|
+
const tableDivRef = Vue.ref();
|
|
48
|
+
const gridRef = Vue.ref();
|
|
49
|
+
const urlToListData = getUrlToListData();
|
|
50
|
+
const listCode = commonUtil.getListCode(pageContext.code, pageContext.version, configure.uuid);
|
|
51
|
+
const myPageCode = pageContext.code;
|
|
52
|
+
const eventPageInfo = myPageCode + "_" + listCode;
|
|
53
|
+
const selections = Vue.ref([]);
|
|
54
|
+
const listToolbarFormData = pageContext.entity.page;
|
|
55
|
+
const searchFormInfo = Vue.ref({ data: [] });
|
|
56
|
+
const superGridItems = pageContext.superGridItems;
|
|
57
|
+
const superGridSetting = superGridItems ? superGridItems[configure.uuid] : null;
|
|
58
|
+
console.log("superGridSetting1111===", superGridItems, superGridSetting);
|
|
59
|
+
const isCanShowMobileSearch = Vue.ref(false);
|
|
60
|
+
const $emit = __emit;
|
|
61
|
+
Vue.onMounted(() => {
|
|
62
|
+
const distanceToAppContainer = getDistanceToAppContainer();
|
|
63
|
+
if (gridRef.value && distanceToAppContainer && distanceToAppContainer.distanceToBottom) {
|
|
64
|
+
gridRef.value.tableHeight = distanceToAppContainer.distanceToBottom - 110;
|
|
65
|
+
}
|
|
66
|
+
if (props.pageContext.pageRuntimeStyle) {
|
|
67
|
+
console.log("pageContext.pageHeight:", props.pageContext.pageRuntimeStyle.height);
|
|
68
|
+
}
|
|
69
|
+
window.addEventListener("message", recieveMessage);
|
|
70
|
+
eventBus.$on(eventPageInfo + "-close-component-page-dialog", function({ jumpInfo, popEntity, popPageCode }) {
|
|
71
|
+
gridRef.value.closePageDialog({
|
|
72
|
+
entity: popEntity,
|
|
73
|
+
pageCode: popPageCode,
|
|
74
|
+
jumpInfo
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
eventBus.$on(eventPageInfo + "_close-dialog-get-entity", () => {
|
|
78
|
+
eventBus.$emit(eventPageInfo + "_close-super-dialog");
|
|
79
|
+
});
|
|
80
|
+
eventBus.$on(listCode + "-pickFileDone", (data) => {
|
|
81
|
+
console.log("superPage5555---listCode---pickFileDone--listCode=", listCode, "data=", data);
|
|
82
|
+
gridRef.value.pickFileDone(data);
|
|
83
|
+
});
|
|
84
|
+
eventBus.$on(listCode + "-scanDone", (data) => {
|
|
85
|
+
console.log("superPage5555---listCode---scanDone--listCode=", listCode, "data=", data);
|
|
86
|
+
gridRef.value.scanDone(data);
|
|
87
|
+
});
|
|
88
|
+
listOptions.value["formSetMaxHeight"] = getComponentHeight();
|
|
89
|
+
if (listOptions.value && listOptions.value.configureObj.props.base && listOptions.value.configureObj.props.base.isSafeDelete) {
|
|
90
|
+
$emit("setSafeDeleteTableCode", listOptions.value.extraParam.tableName);
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
function gridOnMounted() {
|
|
94
|
+
if (configure.props.linkages && configure.props.linkages.length > 0) {
|
|
95
|
+
configure.props.linkages.forEach((linkage) => {
|
|
96
|
+
const variablePath = pageHelperUtil.decomposeVariable(linkage.fieldName);
|
|
97
|
+
if (variablePath && variablePath.length > 1) {
|
|
98
|
+
linkageVariable.push(variablePath[1]);
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
if (linkageVariable.length > 0) {
|
|
102
|
+
addLinkageWatch();
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
Vue.watch(
|
|
107
|
+
() => props.pageContext.searchFormData,
|
|
108
|
+
(searchFormData) => {
|
|
109
|
+
searchFormInfo.value.data = searchFormData;
|
|
110
|
+
}
|
|
111
|
+
);
|
|
112
|
+
Vue.watch(
|
|
113
|
+
() => props.pageContext.entity.data,
|
|
114
|
+
(searchFormData) => {
|
|
115
|
+
searchGridData(props.pageContext.entity.data);
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
Vue.onUnmounted(() => {
|
|
119
|
+
window.removeEventListener("message", recieveMessage);
|
|
120
|
+
eventBus.$off(eventPageInfo + "-close-component-page-dialog");
|
|
121
|
+
eventBus.$off(eventPageInfo + "_close-dialog-get-entity");
|
|
122
|
+
eventBus.$off(listCode + "-pickFileDone");
|
|
123
|
+
eventBus.$off(listCode + "-scanDone");
|
|
124
|
+
});
|
|
125
|
+
function getUrlToListData() {
|
|
126
|
+
let urlToListData2 = baseURL + "/dsc/commons/list";
|
|
127
|
+
if (urlToListData2) {
|
|
128
|
+
urlToListData2 = commonUtil.getRealRestApiPath(urlToListData2, systemCode, backendUrl, pageContext.isTest);
|
|
129
|
+
}
|
|
130
|
+
return urlToListData2;
|
|
131
|
+
}
|
|
132
|
+
function getOptions() {
|
|
133
|
+
var _a;
|
|
134
|
+
const systemCode2 = pageContext.systemCode;
|
|
135
|
+
const permissionPrefix = pageContext.code;
|
|
136
|
+
let initSearchForm = configure.props && configure.props.dataOrigin && configure.props.dataOrigin.sqlFilterCondition !== "[]" ? configure.props.dataOrigin.sqlFilterCondition : null;
|
|
137
|
+
if (typeof initSearchForm === "undefined" || initSearchForm === null) {
|
|
138
|
+
initSearchForm = [];
|
|
139
|
+
}
|
|
140
|
+
const rowKeyProp = (_a = configure.props) == null ? void 0 : _a.dataOrigin.principalLinkage;
|
|
141
|
+
const options = {
|
|
142
|
+
isSql: true,
|
|
143
|
+
optionTableHeight: 0,
|
|
144
|
+
rowKeyProp,
|
|
145
|
+
extraParam: {
|
|
146
|
+
beanName: pageContext.beanName,
|
|
147
|
+
functionCode: permissionPrefix + ".listData",
|
|
148
|
+
tableName,
|
|
149
|
+
systemCode: systemCode2,
|
|
150
|
+
// 系统编码传给列表数据后台请求
|
|
151
|
+
pageCode: pageContext.code,
|
|
152
|
+
pageVersion: pageContext.version
|
|
153
|
+
},
|
|
154
|
+
initSearchForm,
|
|
155
|
+
lineEditOptions: {
|
|
156
|
+
aftersaveIsCreateRow: false,
|
|
157
|
+
autoSave: false,
|
|
158
|
+
enter: enterSave,
|
|
159
|
+
esc: escRestorRow
|
|
160
|
+
},
|
|
161
|
+
indexContinuous: configure.props && configure.props.otherSettings ? configure.props.otherSettings.serialNumberContinuous : false,
|
|
162
|
+
initSearch: configure.props && configure.props.dataOrigin.initializationQuery === false ? false : true,
|
|
163
|
+
// 初始化时是否查询,默认是查询
|
|
164
|
+
resizeHeight: resizeListHeight,
|
|
165
|
+
pageCode: pageContext.code,
|
|
166
|
+
pageVersion: pageContext.version,
|
|
167
|
+
// pageHeight: pageHeight, // 页面的高度 //TODO: pageHeight如何获得,页面高度,计算列表高度应该会用
|
|
168
|
+
additionalParamMap: standardEvent.getAdditionalParamMap(pageContext),
|
|
169
|
+
// 将路由参数传给列表组件
|
|
170
|
+
showOverflowTooltip: !!(configure.props && configure.props.otherSettings && (configure.props.otherSettings.isBreakLine === void 0 || configure.props.otherSettings.isBreakLine === false)),
|
|
171
|
+
// 单元格内容是否换行显示
|
|
172
|
+
isEnableEnterEvent: configure.props && configure.props.otherSettings && configure.props.otherSettings.isEnableEnterEvent,
|
|
173
|
+
// 是否启用回车事件
|
|
174
|
+
isWithDataPermission: configure.props && configure.props.otherSettings && configure.props.otherSettings.isWithDataPermission ? configure.props.otherSettings.isWithDataPermission : false,
|
|
175
|
+
pageDevMode: false,
|
|
176
|
+
isWorkflowEntity: commonUtil.isWorkflowPage(pageContext),
|
|
177
|
+
tableClass: runtimeClass,
|
|
178
|
+
tableStyle: runtimeStyle,
|
|
179
|
+
pageContext,
|
|
180
|
+
configureObj: configure,
|
|
181
|
+
backendUrl: baseURL,
|
|
182
|
+
cellStyleRender: getCellStyle,
|
|
183
|
+
rowStyleRender: getRowStyle,
|
|
184
|
+
titleStyleRender: getTitleStyle,
|
|
185
|
+
validateEitConditions
|
|
186
|
+
};
|
|
187
|
+
setMergeFields(options);
|
|
188
|
+
setOperationButtons(options);
|
|
189
|
+
setSortInfo(options);
|
|
190
|
+
setTreeSetting(options);
|
|
191
|
+
setGridEvents(options);
|
|
192
|
+
return options;
|
|
193
|
+
}
|
|
194
|
+
function setSortInfo(options) {
|
|
195
|
+
if (configure.props && configure.props.dataOrigin && configure.props.dataOrigin.sortField) {
|
|
196
|
+
options.initSortInfo = [];
|
|
197
|
+
configure.props.dataOrigin.sortField.forEach((item) => {
|
|
198
|
+
const sortInfo = {
|
|
199
|
+
order: item.type === "desc" ? "desc" : "asc"
|
|
200
|
+
};
|
|
201
|
+
sortInfo["prop"] = item.name;
|
|
202
|
+
options.initSortInfo.push(sortInfo);
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
function setOperationButtons(options) {
|
|
207
|
+
const operationButtons = [];
|
|
208
|
+
if (!options.operations) {
|
|
209
|
+
options.operations = {};
|
|
210
|
+
}
|
|
211
|
+
tableUtils.getOperationButtons(pageContext, configure, operationButtons, getOperationButtonClickEvent);
|
|
212
|
+
options.operations.operation = operationButtons;
|
|
213
|
+
}
|
|
214
|
+
function setMergeFields(options) {
|
|
215
|
+
var _a;
|
|
216
|
+
if (((_a = configure.props.highOrder) == null ? void 0 : _a.mergeFields) && configure.props.highOrder.mergeFields.length > 0) {
|
|
217
|
+
options.mergeFields = configure.props.highOrder.mergeFields.join(",");
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
function setTreeSetting(options) {
|
|
221
|
+
const dataOrigin = configure.props ? configure.props.dataOrigin : {};
|
|
222
|
+
if (dataOrigin.treeTable) {
|
|
223
|
+
let parentPropDbName;
|
|
224
|
+
const parentPropInfo = dataOrigin.rowKey;
|
|
225
|
+
if (parentPropInfo && parentPropInfo.indexOf("~~") > 0) {
|
|
226
|
+
parentPropDbName = parentPropInfo.substring(parentPropInfo.indexOf("~~") + 2);
|
|
227
|
+
} else {
|
|
228
|
+
parentPropDbName = parentPropInfo;
|
|
229
|
+
}
|
|
230
|
+
options.parentProp = parentPropDbName;
|
|
231
|
+
if (dataOrigin.checkStrictly) {
|
|
232
|
+
options.checkStrictly = dataOrigin.checkStrictly;
|
|
233
|
+
}
|
|
234
|
+
if (options.parentProp) {
|
|
235
|
+
const isLazy = dataOrigin.lazy;
|
|
236
|
+
const defaultExpandAll = dataOrigin.defaultExpandAll;
|
|
237
|
+
if (isLazy === void 0 || isLazy === null) {
|
|
238
|
+
options.lazy = true;
|
|
239
|
+
} else {
|
|
240
|
+
options.lazy = isLazy;
|
|
241
|
+
}
|
|
242
|
+
if (defaultExpandAll === void 0 || defaultExpandAll === null) {
|
|
243
|
+
options.defaultExpandAll = false;
|
|
244
|
+
} else {
|
|
245
|
+
options.defaultExpandAll = defaultExpandAll;
|
|
246
|
+
}
|
|
247
|
+
const listViewTreeTableSetting = {
|
|
248
|
+
parentProp: parentPropDbName,
|
|
249
|
+
lazy: options.lazy,
|
|
250
|
+
defaultExpandAll: options.defaultExpandAll
|
|
251
|
+
};
|
|
252
|
+
options.extraParam.listViewTreeSetting = JSON.stringify(listViewTreeTableSetting);
|
|
253
|
+
options.subRowUrl = baseURL + "/dsc/commons/list-subs";
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
function setGridEvents(options) {
|
|
258
|
+
const tableEvents = configure.runtime && configure.runtime.events ? configure.runtime.events : [];
|
|
259
|
+
eventUtil.setTableEvents(options, tableEvents, pageContext, configure);
|
|
260
|
+
const customEvents = pageContext.customEvents;
|
|
261
|
+
if (customEvents) {
|
|
262
|
+
options.eventCallBack = customEvents;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
function enterSave({ rowIndex, column, row, orgRow }) {
|
|
266
|
+
saveRow(null, null, row, column, rowIndex);
|
|
267
|
+
}
|
|
268
|
+
function saveRow(originalValue, formatValue, row, column, rowIndex) {
|
|
269
|
+
const buttonConfigure = operationButtonObj.value["lineEditSave"];
|
|
270
|
+
const tableConfigure = configure;
|
|
271
|
+
buttonConfigure.props.base.tableUuid = tableConfigure.uuid;
|
|
272
|
+
listOptions.value["lineEditOptions"]["beforeSave"] = beforeSaveRow;
|
|
273
|
+
pageContext.editData = row;
|
|
274
|
+
eventUtil.canExecuteButton({ pageContext, configureObj: buttonConfigure }).then((result) => {
|
|
275
|
+
if (result["canExecute"] === true) {
|
|
276
|
+
listOptions.value["lineEditOptions"]["saveRow"] = saveLineEditRow;
|
|
277
|
+
gridRef.value.saveRow(rowIndex, listCode).then(() => {
|
|
278
|
+
const otherParams = {
|
|
279
|
+
originalValue,
|
|
280
|
+
formatValue,
|
|
281
|
+
row,
|
|
282
|
+
column,
|
|
283
|
+
rowIndex
|
|
284
|
+
};
|
|
285
|
+
eventUtil.doAfterClickEvent(pageContext, buttonConfigure, otherParams);
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
}).finally(() => {
|
|
289
|
+
pageContext.editData = null;
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
function getOperationButtonClickEvent(buttonConfigure) {
|
|
293
|
+
if (!buttonConfigure) {
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
296
|
+
let onClick;
|
|
297
|
+
const eventName = eventUtil.getEventNameByType(buttonConfigure.events, "click");
|
|
298
|
+
if (eventName) {
|
|
299
|
+
operationButtonObj.value[eventName] = buttonConfigure;
|
|
300
|
+
if (eventName === "lineEditSave") {
|
|
301
|
+
onClick = saveRow;
|
|
302
|
+
} else if (eventName === "restoreEdit") {
|
|
303
|
+
onClick = restoreRow;
|
|
304
|
+
} else if (eventName === "lineEditUpdate") {
|
|
305
|
+
onClick = editRow;
|
|
306
|
+
} else if (eventName === "lineEditDelete") {
|
|
307
|
+
onClick = deleteRow;
|
|
308
|
+
}
|
|
309
|
+
if (!onClick) {
|
|
310
|
+
const eventFunc = eventUtil.getEventFuncByType(pageContext, buttonConfigure.events, "click");
|
|
311
|
+
onClick = eventFunc;
|
|
312
|
+
}
|
|
313
|
+
} else {
|
|
314
|
+
operationButtonObj.value[buttonConfigure.uuid] = buttonConfigure;
|
|
315
|
+
onClick = customButtonClick;
|
|
316
|
+
}
|
|
317
|
+
return {
|
|
318
|
+
onClick,
|
|
319
|
+
eventName
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
function beforeSaveRow({ row, columns, additionalParamMap }) {
|
|
323
|
+
const buttonConfigure = operationButtonObj.value["lineEditSave"];
|
|
324
|
+
const tableConfigure = configure;
|
|
325
|
+
buttonConfigure.props.base.tableUuid = tableConfigure.uuid;
|
|
326
|
+
const otherParams = {
|
|
327
|
+
row,
|
|
328
|
+
columns
|
|
329
|
+
};
|
|
330
|
+
return eventUtil.doBeforeClickEvent(pageContext, buttonConfigure, otherParams);
|
|
331
|
+
}
|
|
332
|
+
function saveLineEditRow({
|
|
333
|
+
row,
|
|
334
|
+
columns,
|
|
335
|
+
dataTypeMap,
|
|
336
|
+
dynamicColumnInfo,
|
|
337
|
+
additionalParamMap,
|
|
338
|
+
mainDefaultValueColumns
|
|
339
|
+
}) {
|
|
340
|
+
const buttonConfigure = operationButtonObj.value["lineEditSave"];
|
|
341
|
+
const tableConfigure = configure;
|
|
342
|
+
buttonConfigure.props.base.tableUuid = tableConfigure.uuid;
|
|
343
|
+
return new Promise((resolve, reject) => {
|
|
344
|
+
const otherParams = { tableName: tableConfigure.props.dataOrigin.tableName };
|
|
345
|
+
standardEvent.getSaveFormRequestWithRow(
|
|
346
|
+
pageContext,
|
|
347
|
+
buttonConfigure,
|
|
348
|
+
"/dsc/commons",
|
|
349
|
+
false,
|
|
350
|
+
mainDefaultValueColumns,
|
|
351
|
+
dynamicColumnInfo,
|
|
352
|
+
row,
|
|
353
|
+
otherParams
|
|
354
|
+
).then((commonEntity) => {
|
|
355
|
+
if (commonEntity) {
|
|
356
|
+
resolve(commonEntity.entity);
|
|
357
|
+
} else {
|
|
358
|
+
resolve({});
|
|
359
|
+
}
|
|
360
|
+
}).catch((error) => {
|
|
361
|
+
reject(error);
|
|
362
|
+
});
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
function escRestorRow({ rowIndex, column, row, orgRow }) {
|
|
366
|
+
restoreRow(null, null, row, column, rowIndex);
|
|
367
|
+
}
|
|
368
|
+
function restoreRow(originalValue, formatValue, row, column, rowIndex) {
|
|
369
|
+
const buttonConfigure = operationButtonObj.value["restoreEdit"];
|
|
370
|
+
const tableConfigure = configure;
|
|
371
|
+
buttonConfigure.props.base.tableUuid = tableConfigure.uuid;
|
|
372
|
+
const otherParams = {
|
|
373
|
+
originalValue,
|
|
374
|
+
formatValue,
|
|
375
|
+
row,
|
|
376
|
+
column,
|
|
377
|
+
rowIndex
|
|
378
|
+
};
|
|
379
|
+
const beforeClickResult = eventUtil.doBeforeClickEvent(pageContext, buttonConfigure, otherParams);
|
|
380
|
+
if (!beforeClickResult) {
|
|
381
|
+
return;
|
|
382
|
+
}
|
|
383
|
+
if (commonUtil$1.isPromise(beforeClickResult)) {
|
|
384
|
+
beforeClickResult.then((result) => {
|
|
385
|
+
if (result) {
|
|
386
|
+
gridRef.value.restoreRow(rowIndex, listCode);
|
|
387
|
+
}
|
|
388
|
+
});
|
|
389
|
+
} else {
|
|
390
|
+
gridRef.value.restoreRow(rowIndex, listCode);
|
|
391
|
+
}
|
|
392
|
+
const afterOtherParams = {
|
|
393
|
+
originalValue,
|
|
394
|
+
formatValue,
|
|
395
|
+
row,
|
|
396
|
+
column,
|
|
397
|
+
rowIndex
|
|
398
|
+
};
|
|
399
|
+
eventUtil.doAfterClickEvent(pageContext, configure, afterOtherParams);
|
|
400
|
+
}
|
|
401
|
+
function editRow(originalValue, formatValue, row, column, rowIndex) {
|
|
402
|
+
const buttonConfigure = operationButtonObj.value["lineEditUpdate"];
|
|
403
|
+
const tableConfigure = configure;
|
|
404
|
+
buttonConfigure.props.base.tableUuid = tableConfigure.uuid;
|
|
405
|
+
const otherParams = {
|
|
406
|
+
originalValue,
|
|
407
|
+
formatValue,
|
|
408
|
+
row,
|
|
409
|
+
column,
|
|
410
|
+
rowIndex
|
|
411
|
+
};
|
|
412
|
+
const beforeClickResult = eventUtil.doBeforeClickEvent(pageContext, buttonConfigure, otherParams);
|
|
413
|
+
if (!beforeClickResult) {
|
|
414
|
+
return;
|
|
415
|
+
}
|
|
416
|
+
if (commonUtil$1.isPromise(beforeClickResult)) {
|
|
417
|
+
beforeClickResult.then((result) => {
|
|
418
|
+
if (result) {
|
|
419
|
+
editRowReal(originalValue, formatValue, row, column, rowIndex, buttonConfigure);
|
|
420
|
+
}
|
|
421
|
+
});
|
|
422
|
+
} else {
|
|
423
|
+
editRowReal(originalValue, formatValue, row, column, rowIndex, buttonConfigure);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
function editRowReal(originalValue, formatValue, row, column, rowIndex, buttonConfigure) {
|
|
427
|
+
pageContext.editData = row;
|
|
428
|
+
eventUtil.canExecuteButton({ pageContext, configureObj: buttonConfigure }).then((result) => {
|
|
429
|
+
if (result["canExecute"] === true) {
|
|
430
|
+
gridRef.value.editRow(rowIndex, listCode);
|
|
431
|
+
const afterOtherParams = {
|
|
432
|
+
originalValue,
|
|
433
|
+
formatValue,
|
|
434
|
+
row,
|
|
435
|
+
column,
|
|
436
|
+
rowIndex
|
|
437
|
+
};
|
|
438
|
+
eventUtil.doAfterClickEvent(pageContext, configure, afterOtherParams);
|
|
439
|
+
}
|
|
440
|
+
}).finally(() => {
|
|
441
|
+
pageContext.editData = null;
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
function deleteRow(originalValue, formatValue, row, column, rowIndex) {
|
|
445
|
+
const buttonConfigure = operationButtonObj.value["lineEditDelete"];
|
|
446
|
+
const tableConfigure = configure;
|
|
447
|
+
buttonConfigure.props.base.tableUuid = tableConfigure.uuid;
|
|
448
|
+
const otherParams = {
|
|
449
|
+
originalValue,
|
|
450
|
+
formatValue,
|
|
451
|
+
row,
|
|
452
|
+
column,
|
|
453
|
+
rowIndex
|
|
454
|
+
};
|
|
455
|
+
const beforeClickResult = eventUtil.doBeforeClickEvent(pageContext, buttonConfigure, otherParams);
|
|
456
|
+
if (!beforeClickResult) {
|
|
457
|
+
return;
|
|
458
|
+
}
|
|
459
|
+
if (commonUtil$1.isPromise(beforeClickResult)) {
|
|
460
|
+
beforeClickResult.then((result) => {
|
|
461
|
+
if (result) {
|
|
462
|
+
deleteRowReal(originalValue, formatValue, row, column, rowIndex, buttonConfigure);
|
|
463
|
+
}
|
|
464
|
+
});
|
|
465
|
+
} else {
|
|
466
|
+
deleteRowReal(originalValue, formatValue, row, column, rowIndex, buttonConfigure);
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
function deleteRowReal(originalValue, formatValue, row, column, rowIndex, buttonConfigure) {
|
|
470
|
+
if (row.id || row.ID) {
|
|
471
|
+
pageContext.editData = row;
|
|
472
|
+
eventUtil.canExecuteButton({ pageContext, configureObj: buttonConfigure }).then((result) => {
|
|
473
|
+
if (result["canExecute"] === true) {
|
|
474
|
+
const ids = [];
|
|
475
|
+
if (row.id) {
|
|
476
|
+
ids.push(row.id);
|
|
477
|
+
} else {
|
|
478
|
+
ids.push(row.ID);
|
|
479
|
+
}
|
|
480
|
+
standardEvent.standardEvents.delete({
|
|
481
|
+
pageContext,
|
|
482
|
+
configureObj: buttonConfigure,
|
|
483
|
+
ids
|
|
484
|
+
});
|
|
485
|
+
}
|
|
486
|
+
}).finally(() => {
|
|
487
|
+
pageContext.editData = null;
|
|
488
|
+
});
|
|
489
|
+
} else {
|
|
490
|
+
restoreRow(originalValue, formatValue, row, column, rowIndex);
|
|
491
|
+
const afterOtherParams = {
|
|
492
|
+
originalValue,
|
|
493
|
+
formatValue,
|
|
494
|
+
row,
|
|
495
|
+
column,
|
|
496
|
+
rowIndex
|
|
497
|
+
};
|
|
498
|
+
eventUtil.doAfterClickEvent(pageContext, configure, afterOtherParams);
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
function searchGridData(data) {
|
|
502
|
+
if (!pageContext["dataTypeMaps"]) {
|
|
503
|
+
console.log("!pageContext['dataTypeMaps'] || !pageContext['dataTypeMaps'][tableName]");
|
|
504
|
+
return;
|
|
505
|
+
}
|
|
506
|
+
const dataTypeObj = pageContext["dataTypeMaps"];
|
|
507
|
+
let toolbarFieldParam = [];
|
|
508
|
+
if (data) {
|
|
509
|
+
for (var key in data) {
|
|
510
|
+
const value = data[key];
|
|
511
|
+
if (value !== null && value !== void 0 && value !== "") {
|
|
512
|
+
if (value instanceof Array) {
|
|
513
|
+
if (value.length > 0) {
|
|
514
|
+
const multipleFieldParam = [];
|
|
515
|
+
for (var i = 0; i < value.length; i++) {
|
|
516
|
+
const fieldParam = {};
|
|
517
|
+
if (i === 0) {
|
|
518
|
+
fieldParam["leftBracket"] = "((";
|
|
519
|
+
} else {
|
|
520
|
+
fieldParam["leftBracket"] = "(";
|
|
521
|
+
}
|
|
522
|
+
fieldParam["propName"] = key;
|
|
523
|
+
fieldParam["propDbName"] = key;
|
|
524
|
+
fieldParam["dataType"] = dataTypeObj[key] ? dataTypeObj[key] : "TEXT";
|
|
525
|
+
fieldParam["operator"] = "EQ";
|
|
526
|
+
fieldParam["propValue"] = value[i];
|
|
527
|
+
if (i === value.length - 1) {
|
|
528
|
+
fieldParam["rightBracket"] = "))";
|
|
529
|
+
fieldParam["joinSign"] = "and";
|
|
530
|
+
} else {
|
|
531
|
+
fieldParam["rightBracket"] = ")";
|
|
532
|
+
fieldParam["joinSign"] = "or";
|
|
533
|
+
}
|
|
534
|
+
multipleFieldParam.push(fieldParam);
|
|
535
|
+
}
|
|
536
|
+
toolbarFieldParam = toolbarFieldParam.concat(multipleFieldParam);
|
|
537
|
+
}
|
|
538
|
+
} else {
|
|
539
|
+
const fieldParam = {};
|
|
540
|
+
fieldParam["leftBracket"] = "(";
|
|
541
|
+
fieldParam["propName"] = key;
|
|
542
|
+
fieldParam["propDbName"] = key;
|
|
543
|
+
fieldParam["dataType"] = dataTypeObj[key] ? dataTypeObj[key] : "TEXT";
|
|
544
|
+
fieldParam["operator"] = "EQ";
|
|
545
|
+
fieldParam["propValue"] = value;
|
|
546
|
+
setToolsDateFormatType(fieldParam, key);
|
|
547
|
+
fieldParam["rightBracket"] = ")";
|
|
548
|
+
fieldParam["joinSign"] = "and";
|
|
549
|
+
toolbarFieldParam.push(fieldParam);
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
console.log("toolbarRefresh");
|
|
555
|
+
gridRef.value.toolbarRefresh(null, null, toolbarFieldParam);
|
|
556
|
+
}
|
|
557
|
+
function resizeListHeight(params) {
|
|
558
|
+
const contentHeight = getComponentHeight();
|
|
559
|
+
if (contentHeight) {
|
|
560
|
+
let searchHeight = 0;
|
|
561
|
+
if (params.searchHeight) {
|
|
562
|
+
searchHeight = params.searchHeight;
|
|
563
|
+
}
|
|
564
|
+
return contentHeight - 10 - searchHeight;
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
function getComponentHeight() {
|
|
568
|
+
if (!gridRef.value) {
|
|
569
|
+
return;
|
|
570
|
+
}
|
|
571
|
+
const sizeConfig = pageHelperUtil.getSizeConfig(props.pageContext, props.configure);
|
|
572
|
+
if (sizeConfig) {
|
|
573
|
+
if (sizeConfig["isCalcHeight"]) {
|
|
574
|
+
let thisRefDom = gridRef.value.$el;
|
|
575
|
+
if (!thisRefDom) {
|
|
576
|
+
thisRefDom = gridRef.value;
|
|
577
|
+
}
|
|
578
|
+
if (!thisRefDom) {
|
|
579
|
+
return;
|
|
580
|
+
}
|
|
581
|
+
const rect = thisRefDom.getBoundingClientRect();
|
|
582
|
+
return window.innerHeight - rect.y - 90;
|
|
583
|
+
} else {
|
|
584
|
+
if (sizeConfig.fixHeight) {
|
|
585
|
+
if (gridRef.value) {
|
|
586
|
+
gridRef.value.tableHeight = sizeConfig.fixHeight;
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
if (sizeConfig.maxHeight) {
|
|
590
|
+
return sizeConfig.maxHeight;
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
function customButtonClick(originalValue, formatValue, row, column, rowIndex, button) {
|
|
596
|
+
const otherParams = {
|
|
597
|
+
originalValue,
|
|
598
|
+
formatValue,
|
|
599
|
+
row,
|
|
600
|
+
column,
|
|
601
|
+
rowIndex,
|
|
602
|
+
button,
|
|
603
|
+
id: row.ID ? row.ID : row.id
|
|
604
|
+
};
|
|
605
|
+
const buttonConfigure = operationButtonObj.value[button.sourceButton.uuid];
|
|
606
|
+
const tableConfigure = configure;
|
|
607
|
+
buttonConfigure.props.base.tableUuid = tableConfigure.uuid;
|
|
608
|
+
eventUtil.getHandleEvent(null, pageContext, buttonConfigure, "click", otherParams);
|
|
609
|
+
}
|
|
610
|
+
function recieveMessage(event) {
|
|
611
|
+
if (event.data === "close_open_win") {
|
|
612
|
+
if (gridRef.value) {
|
|
613
|
+
gridRef.value.refresh();
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
function select(selection, row) {
|
|
618
|
+
selections.value = selection;
|
|
619
|
+
const params = {
|
|
620
|
+
selection,
|
|
621
|
+
row
|
|
622
|
+
};
|
|
623
|
+
eventUtil.gridSelectRecord(pageContext, configure, params);
|
|
624
|
+
}
|
|
625
|
+
function selectAll(selection) {
|
|
626
|
+
selections.value = selection;
|
|
627
|
+
const params = {
|
|
628
|
+
selection
|
|
629
|
+
};
|
|
630
|
+
eventUtil.gridSelectAllRecords(pageContext, configure, params);
|
|
631
|
+
}
|
|
632
|
+
function selectionChange(newSelection) {
|
|
633
|
+
const params = {
|
|
634
|
+
newSelection
|
|
635
|
+
};
|
|
636
|
+
eventUtil.gridSelectionChange(pageContext, configure, params);
|
|
637
|
+
}
|
|
638
|
+
function cellClickEvent(row, column, cell, event) {
|
|
639
|
+
const params = {
|
|
640
|
+
row,
|
|
641
|
+
column,
|
|
642
|
+
cell,
|
|
643
|
+
event
|
|
644
|
+
};
|
|
645
|
+
eventUtil.cellClick(pageContext, configure, params);
|
|
646
|
+
}
|
|
647
|
+
function cellDblClickEvent(row, column, cell, event) {
|
|
648
|
+
const params = {
|
|
649
|
+
row,
|
|
650
|
+
column,
|
|
651
|
+
cell,
|
|
652
|
+
event
|
|
653
|
+
};
|
|
654
|
+
eventUtil.cellDblClick(pageContext, configure, params);
|
|
655
|
+
}
|
|
656
|
+
function rowClickEvent(row, column, event) {
|
|
657
|
+
const params = {
|
|
658
|
+
row,
|
|
659
|
+
column,
|
|
660
|
+
event
|
|
661
|
+
};
|
|
662
|
+
eventUtil.rowClick(pageContext, configure, params);
|
|
663
|
+
}
|
|
664
|
+
function rowDblClickEvent(row, column, event) {
|
|
665
|
+
const params = {
|
|
666
|
+
row,
|
|
667
|
+
column,
|
|
668
|
+
event
|
|
669
|
+
};
|
|
670
|
+
eventUtil.rowDblClick(pageContext, configure, params);
|
|
671
|
+
}
|
|
672
|
+
function headerClickEvent(column, event) {
|
|
673
|
+
const params = {
|
|
674
|
+
column,
|
|
675
|
+
event
|
|
676
|
+
};
|
|
677
|
+
eventUtil.headerClick(pageContext, configure, params);
|
|
678
|
+
}
|
|
679
|
+
function validatorSunTableListData() {
|
|
680
|
+
return gridRef.value.validatorSunTableListData();
|
|
681
|
+
}
|
|
682
|
+
function clearSelections() {
|
|
683
|
+
selections.value = [];
|
|
684
|
+
}
|
|
685
|
+
function refresh(parentRowIds, isLineEdit, toolbarFieldParam, isDeleteSubTableData) {
|
|
686
|
+
return gridRef.value.refresh(parentRowIds, isLineEdit, toolbarFieldParam, isDeleteSubTableData);
|
|
687
|
+
}
|
|
688
|
+
function createRow() {
|
|
689
|
+
return gridRef.value.createRow(listCode, {}, { getDefaultValueFunc: pageInitUtil.getDefaultValue });
|
|
690
|
+
}
|
|
691
|
+
function getSelections() {
|
|
692
|
+
return selections.value;
|
|
693
|
+
}
|
|
694
|
+
function getSelectionIds() {
|
|
695
|
+
const dataIds = [];
|
|
696
|
+
if (selections.value !== null) {
|
|
697
|
+
selections.value.forEach((item) => {
|
|
698
|
+
dataIds.push(item.id ? item.id : item.ID ? item.ID : null);
|
|
699
|
+
});
|
|
700
|
+
}
|
|
701
|
+
return dataIds;
|
|
702
|
+
}
|
|
703
|
+
function getTableConfigure() {
|
|
704
|
+
return configure;
|
|
705
|
+
}
|
|
706
|
+
function isDeleteChange(value) {
|
|
707
|
+
gridRef.value.isDeleteChange(value);
|
|
708
|
+
}
|
|
709
|
+
function showMobileSearch() {
|
|
710
|
+
if (isCanShowMobileSearch.value) {
|
|
711
|
+
gridRef.value.showMobileSearch();
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
function canShowMobileSearchFunc(listCode2) {
|
|
715
|
+
isCanShowMobileSearch.value = true;
|
|
716
|
+
}
|
|
717
|
+
function getRowStyle(data) {
|
|
718
|
+
return chartTableUtil.getRowStyleUtil(data, [], props);
|
|
719
|
+
}
|
|
720
|
+
function getCellStyle(data) {
|
|
721
|
+
return chartTableUtil.getCellStyleUtil(data, data.cellStyle, props);
|
|
722
|
+
}
|
|
723
|
+
function getTitleStyle(data) {
|
|
724
|
+
const cellTitleStyle = data.titleStyle;
|
|
725
|
+
const rowTitleStyle = props.configure.style.titleStyle;
|
|
726
|
+
return chartTableUtil.getHeaderCellStyleUtil(data, { cellTitleStyle, titleStyle: rowTitleStyle }, props);
|
|
727
|
+
}
|
|
728
|
+
function getLinkageVariableValues() {
|
|
729
|
+
const values = {};
|
|
730
|
+
linkageVariable.forEach((variable) => {
|
|
731
|
+
values[variable] = props.pageContext.entity.page[variable];
|
|
732
|
+
});
|
|
733
|
+
return values;
|
|
734
|
+
}
|
|
735
|
+
function addLinkageWatch() {
|
|
736
|
+
let waitComponentRenderProps = [];
|
|
737
|
+
if (props.pageContext.toolsInputComponents && props.pageContext.toolsInputComponents.length > 0) {
|
|
738
|
+
props.pageContext.toolsInputComponents.forEach((componentItem) => {
|
|
739
|
+
const isLinkComponent = configure.props.linkages.some((linkage) => linkage.fieldName === componentItem.prop);
|
|
740
|
+
if (isLinkComponent && componentItem.defaultValue) {
|
|
741
|
+
const variablePath = pageHelperUtil.decomposeVariable(componentItem.prop);
|
|
742
|
+
if (variablePath && variablePath.length > 1) {
|
|
743
|
+
waitComponentRenderProps.push(variablePath[1]);
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
});
|
|
747
|
+
}
|
|
748
|
+
if (waitComponentRenderProps.length === 0) {
|
|
749
|
+
linkageVariableWatch();
|
|
750
|
+
} else {
|
|
751
|
+
const values = getLinkageVariableValues();
|
|
752
|
+
waitComponentRenderProps = waitComponentRenderProps.filter((unsetVariable) => {
|
|
753
|
+
return commonUtil.isVariableInvalidValue(values, unsetVariable);
|
|
754
|
+
});
|
|
755
|
+
if (waitComponentRenderProps.length === 0) {
|
|
756
|
+
searchGridData(values);
|
|
757
|
+
linkageVariableWatch();
|
|
758
|
+
} else {
|
|
759
|
+
linkageVariable.forEach((variable) => {
|
|
760
|
+
Vue.watch(
|
|
761
|
+
() => props.pageContext.entity.page[variable],
|
|
762
|
+
() => {
|
|
763
|
+
const values2 = getLinkageVariableValues();
|
|
764
|
+
if (waitComponentRenderProps.length === 0) {
|
|
765
|
+
searchGridData(values2);
|
|
766
|
+
} else {
|
|
767
|
+
waitComponentRenderProps = waitComponentRenderProps.filter((unsetVariable) => {
|
|
768
|
+
return commonUtil.isVariableInvalidValue(values2, unsetVariable);
|
|
769
|
+
});
|
|
770
|
+
if (waitComponentRenderProps.length === 0) {
|
|
771
|
+
searchGridData(values2);
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
},
|
|
775
|
+
{ immediate: true }
|
|
776
|
+
);
|
|
777
|
+
});
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
function linkageVariableWatch() {
|
|
782
|
+
linkageVariable.forEach((variable) => {
|
|
783
|
+
Vue.watch(
|
|
784
|
+
() => props.pageContext.entity.page[variable],
|
|
785
|
+
() => {
|
|
786
|
+
const values = getLinkageVariableValues();
|
|
787
|
+
searchGridData(values);
|
|
788
|
+
}
|
|
789
|
+
);
|
|
790
|
+
});
|
|
791
|
+
}
|
|
792
|
+
function getTableSelectOptions() {
|
|
793
|
+
if (gridRef.value) {
|
|
794
|
+
return gridRef.value.getTableSelectOptions(listCode);
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
function dynamicControlTableEdit(pageContext2, customRules, listCode2) {
|
|
798
|
+
if (gridRef.value) {
|
|
799
|
+
gridRef.value.dynamicControlTableEdit(pageContext2, customRules, listCode2);
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
function doLayout(hiddenColumns) {
|
|
803
|
+
if (gridRef.value) {
|
|
804
|
+
gridRef.value.doLayout(hiddenColumns);
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
const getDistanceToAppContainer = () => {
|
|
808
|
+
if (!tableDivRef.value) return null;
|
|
809
|
+
let appContainer = tableDivRef.value.closest(".app-container");
|
|
810
|
+
if (!appContainer) {
|
|
811
|
+
console.warn("未找到.app-container元素");
|
|
812
|
+
return null;
|
|
813
|
+
}
|
|
814
|
+
const currentRect = tableDivRef.value.getBoundingClientRect();
|
|
815
|
+
const containerRect = appContainer.getBoundingClientRect();
|
|
816
|
+
const scrollY = window.scrollY;
|
|
817
|
+
const distanceToTop = currentRect.top + scrollY - containerRect.top;
|
|
818
|
+
const distanceToBottom = containerRect.bottom - currentRect.top;
|
|
819
|
+
return {
|
|
820
|
+
distanceToTop,
|
|
821
|
+
distanceToBottom
|
|
822
|
+
};
|
|
823
|
+
};
|
|
824
|
+
function changeOperationAddState(value) {
|
|
825
|
+
}
|
|
826
|
+
function validateEitConditions({ row, editConditions }) {
|
|
827
|
+
let result = true;
|
|
828
|
+
if (editConditions && editConditions.length > 0) {
|
|
829
|
+
result = pageHelperUtil.caculateShowCondition(props.pageContext, editConditions, row);
|
|
830
|
+
}
|
|
831
|
+
return result;
|
|
832
|
+
}
|
|
833
|
+
function setToolsDateFormatType(fieldParam, key) {
|
|
834
|
+
const componentRef = globalRefs.getComponentRefByCode(props.pageContext, key);
|
|
835
|
+
if (componentRef) {
|
|
836
|
+
const config = componentRef.getConfigure();
|
|
837
|
+
if (config.name === "datePicker") {
|
|
838
|
+
const type = config.runtime.props.dateType;
|
|
839
|
+
if (type === "year") {
|
|
840
|
+
fieldParam["dateFormatType"] = "YEAR";
|
|
841
|
+
} else if (type === "month") {
|
|
842
|
+
fieldParam["dateFormatType"] = "MONTH";
|
|
843
|
+
} else {
|
|
844
|
+
fieldParam["dateFormatType"] = "DAY";
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
function scrollTo(options, yCoord) {
|
|
850
|
+
if (gridRef.value) {
|
|
851
|
+
gridRef.value.scrollTo(options, yCoord);
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
function setScrollTop(top) {
|
|
855
|
+
if (gridRef.value) {
|
|
856
|
+
gridRef.value.setScrollTop(top);
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
function setScrollLeft(left) {
|
|
860
|
+
if (gridRef.value) {
|
|
861
|
+
gridRef.value.setScrollLeft(left);
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
function getSuperGridRef() {
|
|
865
|
+
return gridRef.value;
|
|
866
|
+
}
|
|
867
|
+
function getSuperGridTableRef() {
|
|
868
|
+
return gridRef.value.getSuperGridTableRef();
|
|
869
|
+
}
|
|
870
|
+
function setCurrentRowIndex(index) {
|
|
871
|
+
var _a;
|
|
872
|
+
(_a = gridRef.value) == null ? void 0 : _a.setCurrentRowIndex(index);
|
|
873
|
+
}
|
|
874
|
+
function setScrollTopByRowIndex(rowIndex) {
|
|
875
|
+
var _a;
|
|
876
|
+
(_a = gridRef.value) == null ? void 0 : _a.setScrollTopByRowIndex(rowIndex);
|
|
877
|
+
}
|
|
878
|
+
function getTableData() {
|
|
879
|
+
var _a;
|
|
880
|
+
return (_a = gridRef.value) == null ? void 0 : _a.getTableData();
|
|
881
|
+
}
|
|
882
|
+
function handleSearch(searchableColumns, searchData) {
|
|
883
|
+
var _a;
|
|
884
|
+
return (_a = gridRef.value) == null ? void 0 : _a.handleSearch(searchableColumns, searchData);
|
|
885
|
+
}
|
|
886
|
+
__expose({
|
|
887
|
+
refresh,
|
|
888
|
+
createRow,
|
|
889
|
+
clearSelections,
|
|
890
|
+
getSelections,
|
|
891
|
+
getSelectionIds,
|
|
892
|
+
getTableConfigure,
|
|
893
|
+
isDeleteChange,
|
|
894
|
+
validatorSunTableListData,
|
|
895
|
+
showMobileSearch,
|
|
896
|
+
getTableSelectOptions,
|
|
897
|
+
dynamicControlTableEdit,
|
|
898
|
+
doLayout,
|
|
899
|
+
changeOperationAddState,
|
|
900
|
+
scrollTo,
|
|
901
|
+
setScrollTop,
|
|
902
|
+
setScrollLeft,
|
|
903
|
+
getSuperGridRef,
|
|
904
|
+
getSuperGridTableRef,
|
|
905
|
+
setCurrentRowIndex,
|
|
906
|
+
setScrollTopByRowIndex,
|
|
907
|
+
getTableData,
|
|
908
|
+
handleSearch
|
|
909
|
+
});
|
|
910
|
+
return (_ctx, _cache) => {
|
|
911
|
+
const _component_super_grid = Vue.resolveComponent("super-grid");
|
|
912
|
+
return Vue.openBlock(), Vue.createElementBlock("div", {
|
|
913
|
+
ref_key: "tableDivRef",
|
|
914
|
+
ref: tableDivRef,
|
|
915
|
+
id: Vue.unref(listCode) + "_tableDiv"
|
|
916
|
+
}, [
|
|
917
|
+
Vue.createVNode(_component_super_grid, {
|
|
918
|
+
ref_key: "gridRef",
|
|
919
|
+
ref: gridRef,
|
|
920
|
+
url: Vue.unref(urlToListData),
|
|
921
|
+
options: listOptions.value,
|
|
922
|
+
code: Vue.unref(listCode),
|
|
923
|
+
settings: Vue.unref(superGridSetting),
|
|
924
|
+
"search-form-info": searchFormInfo.value,
|
|
925
|
+
"list-toolbar-form-data": Vue.unref(listToolbarFormData),
|
|
926
|
+
onSelect: select,
|
|
927
|
+
onSelectAll: selectAll,
|
|
928
|
+
onSelectionChange: selectionChange,
|
|
929
|
+
onCellClick: cellClickEvent,
|
|
930
|
+
onCellDblclick: cellDblClickEvent,
|
|
931
|
+
onRowClick: rowClickEvent,
|
|
932
|
+
onRowDblclick: rowDblClickEvent,
|
|
933
|
+
onHeaderClick: headerClickEvent,
|
|
934
|
+
onRefresh: clearSelections,
|
|
935
|
+
onNewOpenGridDialog: Vue.unref(tableUtils.popupToPage),
|
|
936
|
+
onCanShowMobileSearch: canShowMobileSearchFunc,
|
|
937
|
+
onGridOnmounted: gridOnMounted
|
|
938
|
+
}, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "onNewOpenGridDialog"])
|
|
939
|
+
], 8, _hoisted_1);
|
|
940
|
+
};
|
|
941
|
+
}
|
|
942
|
+
});
|
|
943
|
+
module.exports = _sfc_main;
|