agilebuilder-ui 1.1.65-tmp13 → 1.1.65-tmp15
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/index.full.min.js +16440 -0
- package/{es → dist}/style.css +2121 -2120
- package/lib/IntervalSelection/index.js +7 -5
- package/lib/IntervalSelection/src/sectionDate.vue.js +21 -17
- package/lib/IntervalSelection/src/sectionDate.vue2.js +4 -2
- package/lib/_virtual/__vite-browser-external.js +4 -2
- package/lib/_virtual/_plugin-vue_export-helper.js +8 -6
- package/lib/breadcrumb/index.js +5 -3
- package/lib/breadcrumb/src/breadcrumb.vue.js +19 -28
- package/lib/breadcrumb/src/breadcrumb.vue2.js +4 -2
- package/lib/chat-embed/index.js +5 -3
- package/lib/chat-embed/src/chat-addition-data.vue.js +7 -5
- package/lib/chat-embed/src/chat-addition-data.vue2.js +13 -11
- package/lib/chat-embed/src/chat-addition-data.vue3.js +4 -2
- package/lib/chat-embed/src/chat-ai-answer-tip.vue.js +7 -5
- package/lib/chat-embed/src/chat-ai-answer-tip.vue2.js +20 -17
- package/lib/chat-embed/src/chat-ai-answer-tip.vue3.js +4 -2
- package/lib/chat-embed/src/chat-bubble-footer.vue.js +7 -5
- package/lib/chat-embed/src/chat-bubble-footer.vue2.js +22 -17
- package/lib/chat-embed/src/chat-bubble-footer.vue3.js +4 -2
- package/lib/chat-embed/src/chat-embed-message.js +20 -14
- package/lib/chat-embed/src/chat-sender.vue.js +7 -5
- package/lib/chat-embed/src/chat-sender.vue2.js +123 -110
- package/lib/chat-embed/src/chat-sender.vue3.js +4 -2
- package/lib/chat-embed/src/components/answer-auto-chart.vue.js +7 -5
- package/lib/chat-embed/src/components/answer-auto-chart.vue2.js +50 -42
- package/lib/chat-embed/src/components/answer-auto-chart.vue3.js +4 -2
- package/lib/chat-embed/src/components/answer-home-chart.vue.js +7 -5
- package/lib/chat-embed/src/components/answer-home-chart.vue2.js +6 -3
- package/lib/chat-embed/src/components/answer-home-chart.vue3.js +4 -2
- package/lib/chat-embed/src/components/answer-interaction-data.vue.js +7 -5
- package/lib/chat-embed/src/components/answer-interaction-data.vue2.js +84 -74
- package/lib/chat-embed/src/components/answer-interaction-data.vue3.js +4 -2
- package/lib/chat-embed/src/components/history-detail.vue.js +7 -5
- package/lib/chat-embed/src/components/history-detail.vue2.js +32 -27
- package/lib/chat-embed/src/components/history-detail.vue3.js +4 -2
- package/lib/chat-embed/src/header.vue.js +7 -5
- package/lib/chat-embed/src/header.vue2.js +32 -25
- package/lib/chat-embed/src/header.vue3.js +4 -2
- package/lib/chat-embed/src/index.vue.js +7 -5
- package/lib/chat-embed/src/index.vue2.js +211 -185
- package/lib/chat-embed/src/index.vue3.js +4 -2
- package/lib/chat-embed/src/recommendation-message.vue.js +7 -5
- package/lib/chat-embed/src/recommendation-message.vue2.js +8 -5
- package/lib/chat-embed/src/recommendation-message.vue3.js +4 -2
- package/lib/chat-embed/src/sidebar-item.vue.js +7 -5
- package/lib/chat-embed/src/sidebar-item.vue2.js +93 -84
- package/lib/chat-embed/src/sidebar-item.vue3.js +4 -2
- package/lib/chat-embed/src/type.js +5 -3
- package/lib/chat-embed/src/util/chat-embed-util.js +41 -35
- package/lib/chat-embed/src/util/history-message-util.js +85 -63
- package/lib/chat-embed/src/util/mcp-utils.js +8 -5
- package/lib/chat-embed/src/util/text-file-util.js +11 -7
- package/lib/chat-embed/src/voice/index.js +7 -5
- package/lib/chat-embed/src/voice/js/crypto-js.js +995 -987
- package/lib/chat-embed/src/voice/js/processor/index.umd.js +169 -161
- package/lib/chat-embed/src/voice/js/timer.js +10 -7
- package/lib/chat-embed/src/voice/voice.vue.js +70 -61
- package/lib/date-picker-range/index.js +7 -5
- package/lib/date-picker-range/index.vue.js +7 -5
- package/lib/date-picker-range/index.vue2.js +63 -59
- package/lib/date-picker-range/index.vue3.js +4 -2
- package/lib/department-tree/index.js +5 -3
- package/lib/department-tree/src/department-tree.vue.js +17 -11
- package/lib/department-tree-inline/index.js +5 -3
- package/lib/department-tree-inline/src/department-multi-tree-inline.vue.js +27 -17
- package/lib/department-tree-inline/src/department-multi-tree-inline.vue2.js +4 -2
- package/lib/department-tree-inline/src/department-single-tree-inline.vue.js +27 -17
- package/lib/department-tree-inline/src/department-single-tree-inline.vue2.js +4 -2
- package/lib/department-tree-inline/src/department-tree-inline.vue.js +13 -8
- package/lib/department-tree-inline/src/department-tree-service.js +10 -8
- package/lib/department-tree-inline/src/search-result.vue.js +23 -19
- package/lib/department-tree-inline/src/search-result.vue2.js +4 -2
- package/lib/department-tree-mobile/index.js +7 -4
- package/lib/department-tree-mobile/src/department-tree-app.vue.js +12 -9
- package/lib/department-tree-mobile/src/department-tree-app.vue2.js +4 -2
- package/lib/department-tree-mobile/src/department-tree-app.vue3.js +5 -3
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue.js +91 -80
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue2.js +4 -3
- package/lib/department-tree-mobile/src/department-tree-service.js +42 -32
- package/lib/department-tree-mobile/src/dept-path.vue.js +11 -10
- package/lib/department-tree-mobile/src/dept-path.vue2.js +4 -3
- package/lib/department-tree-mobile/src/dept-result.vue.js +14 -11
- package/lib/department-tree-mobile/src/dept-result.vue2.js +4 -3
- package/lib/department-user-tree/index.js +5 -3
- package/lib/department-user-tree/src/department-user-multiple-tree.vue.js +14 -10
- package/lib/department-user-tree/src/department-user-multiple-tree.vue2.js +4 -2
- package/lib/department-user-tree/src/department-user-single-tree.vue.js +14 -9
- package/lib/department-user-tree/src/department-user-tree.vue.js +20 -14
- package/lib/department-user-tree-inline/index.js +5 -3
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.js +28 -17
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue2.js +4 -2
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue.js +33 -21
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue2.js +4 -2
- package/lib/department-user-tree-inline/src/department-user-tree-inline.vue.js +13 -8
- package/lib/department-user-tree-inline/src/department-user-tree-multi-service.js +9 -6
- package/lib/department-user-tree-inline/src/department-user-tree-single-service.js +11 -8
- package/lib/department-user-tree-inline/src/group-user/group-input.vue.js +12 -7
- package/lib/department-user-tree-inline/src/group-user/group-list.vue.js +12 -7
- package/lib/department-user-tree-inline/src/group-user/group-user.vue.js +14 -8
- package/lib/department-user-tree-inline/src/group-user-multiple-tree.vue.js +20 -14
- package/lib/department-user-tree-inline/src/group-user-single-tree.vue.js +23 -17
- package/lib/department-user-tree-inline/src/group-user-tree-service.js +3 -2
- package/lib/department-user-tree-inline/src/search-result.vue.js +15 -12
- package/lib/department-user-tree-inline/src/search-result.vue2.js +4 -2
- package/lib/department-user-tree-mobile/index.js +7 -4
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue.js +12 -9
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue2.js +4 -2
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue3.js +5 -3
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue.js +104 -93
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue2.js +4 -3
- package/lib/department-user-tree-mobile/src/department-user-tree-service.js +30 -20
- package/lib/department-user-tree-mobile/src/dept-path.vue.js +11 -10
- package/lib/department-user-tree-mobile/src/dept-path.vue2.js +4 -3
- package/lib/department-user-tree-mobile/src/dept-result.vue.js +15 -11
- package/lib/department-user-tree-mobile/src/dept-result.vue2.js +4 -3
- package/lib/directives/prevent-reclick.js +3 -2
- package/lib/dynamic-source-select/index.js +7 -5
- package/lib/dynamic-source-select/src/dynamic-source-select-service.js +15 -13
- package/lib/dynamic-source-select/src/dynamic-source-select.vue.js +183 -173
- package/lib/dynamic-source-select/src/dynamic-source-select.vue2.js +4 -2
- package/lib/dynamic-source-select/src/dynamic-source-select.vue3.js +4 -2
- package/lib/dynamic-source-select/src/events.js +3 -2
- package/lib/empty-state/index.vue.js +8 -5
- package/lib/empty-state/index.vue2.js +4 -3
- package/lib/fs-preview/index.js +7 -5
- package/lib/fs-preview/src/fs-preview.vue.js +72 -63
- package/lib/fs-preview/src/fs-preview.vue2.js +4 -2
- package/lib/fs-upload/index.js +7 -5
- package/lib/fs-upload/src/fs-upload-multi.vue.js +32 -24
- package/lib/fs-upload/src/fs-upload-single.vue.js +39 -30
- package/lib/fs-upload/src/fs-upload.vue.js +16 -10
- package/lib/fs-upload/src/see-big-picture.vue.js +11 -8
- package/lib/fs-upload-list/index.js +7 -5
- package/lib/fs-upload-list/src/fs-upload-list.vue.js +40 -33
- package/lib/fs-upload-list/src/fs-upload-list.vue2.js +4 -2
- package/lib/fs-upload-new/index.js +7 -5
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.js +38 -34
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue2.js +4 -3
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.js +109 -101
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue2.js +4 -3
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue.js +7 -5
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.js +33 -26
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue3.js +4 -2
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.js +31 -27
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue2.js +4 -3
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue.js +24 -18
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue2.js +4 -3
- package/lib/fs-upload-new/src/fs-button-upload.vue.js +7 -5
- package/lib/fs-upload-new/src/fs-button-upload.vue2.js +43 -36
- package/lib/fs-upload-new/src/fs-button-upload.vue3.js +4 -2
- package/lib/fs-upload-new/src/fs-drag-upload.vue.js +7 -5
- package/lib/fs-upload-new/src/fs-drag-upload.vue2.js +45 -37
- package/lib/fs-upload-new/src/fs-drag-upload.vue3.js +4 -2
- package/lib/fs-upload-new/src/fs-preview-new.vue.js +8 -5
- package/lib/fs-upload-new/src/fs-preview-new.vue2.js +70 -61
- package/lib/fs-upload-new/src/fs-preview-new.vue3.js +4 -2
- package/lib/fs-upload-new/src/fs-preview-new.vue4.js +4 -2
- package/lib/fs-upload-new/src/fs-upload-new.vue.js +47 -37
- package/lib/fs-upload-new/src/fs-upload-new.vue2.js +4 -3
- package/lib/hamburger/index.js +5 -3
- package/lib/hamburger/src/hamburger.vue.js +14 -10
- package/lib/hamburger/src/hamburger.vue2.js +4 -2
- package/lib/index.js +382 -40
- package/lib/json-view/json-view-dialog.vue.js +15 -12
- package/lib/json-view/json-view-dialog.vue2.js +4 -3
- package/lib/json-view/json-view.vue.js +4 -3
- package/lib/json-view/json-view.vue2.js +31 -27
- package/lib/multipart-upload/index.js +7 -5
- package/lib/multipart-upload/src/index.vue.js +11 -7
- package/lib/multipart-upload/src/multipart-upload-form.vue.js +49 -40
- package/lib/multipart-upload/src/multipart-upload-list.vue.js +67 -59
- package/lib/organization-input/index.js +7 -5
- package/lib/organization-input/src/organization-input.vue.js +37 -31
- package/lib/organization-input/src/organization-input.vue2.js +4 -2
- package/lib/plugins/export-data-new.js +104 -96
- package/lib/plugins/export-data.js +51 -45
- package/lib/plugins/index.js +8 -4
- package/lib/plugins/public-method.js +3 -2
- package/lib/remove-department/index.js +5 -3
- package/lib/remove-department/src/remove-department.vue.js +19 -13
- package/lib/remove-department/src/remove-dept-service.js +10 -9
- package/lib/remove-user/index.js +7 -5
- package/lib/remove-user/src/remove-user-service.js +4 -3
- package/lib/remove-user/src/remove-user.vue.js +22 -16
- package/lib/remove-workgroup/index.js +7 -5
- package/lib/remove-workgroup/src/remove-workgroup-service.js +4 -3
- package/lib/remove-workgroup/src/remove-workgroup.vue.js +18 -12
- package/lib/rich-editor/index.js +7 -5
- package/lib/rich-editor/index.vue.js +76 -28
- package/lib/rich-editor/tinymce/zh_CN.js +2 -2
- package/lib/rich-editor/viewer.vue.js +10 -7
- package/lib/row-form/index.js +7 -5
- package/lib/row-form/index.vue.js +7 -5
- package/lib/row-form/index.vue2.js +47 -41
- package/lib/row-form/index.vue3.js +4 -2
- package/lib/row-form/operation.vue.js +26 -22
- package/lib/row-form/operation.vue2.js +4 -3
- package/lib/scan-code-input/index.js +7 -5
- package/lib/scan-code-input/src/events.js +13 -11
- package/lib/scan-code-input/src/scan-code-input.vue.js +15 -9
- package/lib/scan-code-input-browser/index.js +7 -5
- package/lib/scan-code-input-browser/src/scan-code-input.vue.js +21 -16
- package/lib/secret-info/index.js +7 -5
- package/lib/secret-info/index.vue.js +9 -6
- package/lib/src/api/sso-service.js +36 -34
- package/lib/src/api/tab.js +9 -8
- package/lib/src/assets/401/401.gif.js +4 -2
- package/lib/src/assets/404/404-cloud.png.js +4 -2
- package/lib/src/assets/404/404.png.js +4 -2
- package/lib/src/assets/chat-embed/robot.gif.js +4 -2
- package/lib/src/assets/chat-embed/robot.svg.js +4 -2
- package/lib/src/assets/nonemessage.png.js +4 -2
- package/lib/src/components/Affix/index.vue.js +7 -5
- package/lib/src/components/Affix/index.vue2.js +58 -56
- package/lib/src/components/Affix/index.vue3.js +4 -2
- package/lib/src/components/Card/index.js +38 -33
- package/lib/src/components/Scrollbar/index.vue.js +37 -33
- package/lib/src/components/Scrollbar/index.vue2.js +4 -2
- package/lib/src/directives/permission/index.js +5 -3
- package/lib/src/directives/permission/permission.js +9 -7
- package/lib/src/i18n/i18n.js +7 -3
- package/lib/src/i18n/langs/cn.js +4 -2
- package/lib/src/i18n/langs/en.js +4 -2
- package/lib/src/mixins/resizeMixin.js +3 -2
- package/lib/src/permission.js +46 -43
- package/lib/src/router/index.js +9 -16
- package/lib/src/store/getters.js +4 -2
- package/lib/src/store/index.js +13 -16
- package/lib/src/store/modules/app.js +4 -3
- package/lib/src/store/modules/chat-ai-store.js +22 -19
- package/lib/src/store/modules/permission.js +11 -10
- package/lib/src/store/modules/system.js +9 -7
- package/lib/src/store/modules/tab-content.js +15 -13
- package/lib/src/store/modules/table.js +3 -2
- package/lib/src/store/modules/user.js +95 -89
- package/lib/src/utils/auth-api.js +5 -3
- package/lib/src/utils/auth.js +139 -69
- package/lib/src/utils/calculator/calculator-factory-wf.js +49 -48
- package/lib/src/utils/calculator/calculator-factory.js +58 -57
- package/lib/src/utils/calculator/calculator-util.js +32 -29
- package/lib/src/utils/chat-ai-util.js +25 -17
- package/lib/src/utils/common-util.js +356 -271
- package/lib/src/utils/eventBus.js +6 -3
- package/lib/src/utils/file-util.js +16 -15
- package/lib/src/utils/global-prop.js +37 -21
- package/lib/src/utils/guid.js +8 -5
- package/lib/src/utils/i18n-util.js +24 -16
- package/lib/src/utils/iconUtils.js +23 -16
- package/lib/src/utils/index.js +40 -26
- package/lib/src/utils/insert_css.js +7 -8
- package/lib/src/utils/json-util.js +27 -25
- package/lib/src/utils/jump-page-utils.js +180 -172
- package/lib/src/utils/local-storage.js +3 -2
- package/lib/src/utils/menu.js +11 -10
- package/lib/src/utils/permission.js +26 -22
- package/lib/src/utils/permissionAuth.js +136 -102
- package/lib/src/utils/range-selector.js +45 -41
- package/lib/src/utils/request.js +86 -77
- package/lib/src/utils/resize.js +5 -5
- package/lib/src/utils/restful-interface-utils.js +15 -12
- package/lib/src/utils/util.js +26 -6
- package/lib/src/utils/validate.js +20 -10
- package/lib/src/utils/voice-setting-cache.js +153 -140
- package/lib/src/utils/watermark-cache.js +14 -9
- package/lib/src/utils/watermark.js +30 -23
- package/lib/src/utils/workflow-util.js +26 -25
- package/lib/src/views/dsc-component/Sidebar/Item.vue.js +7 -5
- package/lib/src/views/dsc-component/Sidebar/Item.vue2.js +11 -8
- package/lib/src/views/dsc-component/Sidebar/Item.vue3.js +4 -2
- package/lib/src/views/dsc-component/Sidebar/Link.vue.js +12 -9
- package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue.js +26 -19
- package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue2.js +4 -2
- package/lib/src/views/dsc-component/Sidebar/index.vue.js +20 -12
- package/lib/src/views/dsc-component/tabs/tab-content.vue.js +26 -21
- package/lib/src/views/dsc-component/tabs/tab-content.vue2.js +4 -2
- package/lib/src/views/dsc-component/tabs/tab-content.vue3.js +4 -2
- package/lib/src/views/error-page/401.vue.js +13 -9
- package/lib/src/views/error-page/401.vue2.js +4 -2
- package/lib/src/views/error-page/404.vue.js +11 -7
- package/lib/src/views/error-page/404.vue2.js +4 -2
- package/lib/src/views/layout/EmptyLayout.vue.js +8 -6
- package/lib/src/views/layout/Layout.vue.js +19 -12
- package/lib/src/views/layout/Layout.vue2.js +4 -2
- package/lib/src/views/layout/NewLayout.vue.js +10 -6
- package/lib/src/views/layout/components/AppMain.vue.js +11 -9
- package/lib/src/views/layout/components/AppMain.vue2.js +4 -2
- package/lib/src/views/layout/components/Breadcrumb/index.vue.js +37 -44
- package/lib/src/views/layout/components/Breadcrumb/index.vue2.js +4 -2
- package/lib/src/views/layout/components/Menubar/Item.vue.js +7 -5
- package/lib/src/views/layout/components/Menubar/Item.vue2.js +14 -12
- package/lib/src/views/layout/components/Menubar/Item.vue3.js +4 -2
- package/lib/src/views/layout/components/Menubar/Link.vue.js +12 -9
- package/lib/src/views/layout/components/Menubar/SidebarItem.vue.js +24 -15
- package/lib/src/views/layout/components/Menubar/SidebarItem.vue2.js +4 -2
- package/lib/src/views/layout/components/Menubar/index.vue.js +30 -19
- package/lib/src/views/layout/components/Sidebar/Item.vue.js +8 -6
- package/lib/src/views/layout/components/Sidebar/Item.vue2.js +4 -3
- package/lib/src/views/layout/components/Sidebar/Link.vue.js +11 -8
- package/lib/src/views/layout/components/Sidebar/SidebarItem.vue.js +17 -11
- package/lib/src/views/layout/components/Sidebar/SidebarItem.vue2.js +4 -2
- package/lib/src/views/layout/components/Sidebar/index.vue.js +25 -18
- package/lib/src/views/layout/components/iframe-page.vue.js +10 -8
- package/lib/src/views/layout/components/iframe-page.vue2.js +4 -2
- package/lib/src/views/layout/components/tabs/tab-content.vue.js +14 -10
- package/lib/src/views/layout/components/tabs/tab-content.vue2.js +4 -2
- package/lib/src/views/layout/components/tabs/tab-content.vue3.js +4 -2
- package/lib/src/views/layout/mixin/ResizeHandler.js +5 -3
- package/lib/src/views/layout/tab-content-iframe-index.vue.js +10 -8
- package/lib/src/views/layout/tab-content-iframe-index.vue2.js +4 -2
- package/lib/src/views/layout/tab-content-index.vue.js +18 -12
- package/lib/src/views/layout/tab-content-index.vue2.js +4 -2
- package/lib/src/views/login/authredirect.vue.js +3 -2
- package/lib/src/views/redirect/index.vue.js +8 -17
- package/lib/src/views/svg-icon/src/svg-icon.vue.js +4 -2
- package/lib/src/views/wf-history/tache-subprocess-history.vue.js +13 -11
- package/lib/src/views/wf-history/tache-subprocess-history.vue2.js +4 -2
- package/lib/style.css +769 -769
- package/lib/super-grid/index.js +7 -5
- package/lib/super-grid/src/apis.js +231 -221
- package/lib/super-grid/src/columns-config.vue.js +22 -16
- package/lib/super-grid/src/components/grid-icon.vue.js +34 -26
- package/lib/super-grid/src/components/grid-radio-input.vue.js +18 -15
- package/lib/super-grid/src/components/grid-radio-input.vue2.js +4 -3
- package/lib/super-grid/src/components/mobile-table-card.js +83 -73
- package/lib/super-grid/src/components/select-input.vue.js +106 -98
- package/lib/super-grid/src/components/select-input.vue2.js +4 -3
- package/lib/super-grid/src/custom-formatter.js +74 -69
- package/lib/super-grid/src/dynamic-input.vue.js +159 -142
- package/lib/super-grid/src/eventBus.js +6 -3
- package/lib/super-grid/src/events.js +36 -34
- package/lib/super-grid/src/formValidatorUtil.js +65 -62
- package/lib/super-grid/src/formatter.js +41 -36
- package/lib/super-grid/src/group-column.vue.js +13 -8
- package/lib/super-grid/src/header-context-menu.vue.js +13 -10
- package/lib/super-grid/src/header-context-menu.vue2.js +4 -2
- package/lib/super-grid/src/index-column.vue.js +10 -7
- package/lib/super-grid/src/normal-column-content.vue.js +205 -186
- package/lib/super-grid/src/normal-column-content.vue2.js +4 -2
- package/lib/super-grid/src/normal-column.vue.js +55 -40
- package/lib/super-grid/src/normal-column.vue2.js +4 -2
- package/lib/super-grid/src/public-methods.js +14 -12
- package/lib/super-grid/src/row-detail.vue.js +10 -7
- package/lib/super-grid/src/row-operation.vue.js +26 -19
- package/lib/super-grid/src/row-operation.vue2.js +4 -2
- package/lib/super-grid/src/scan-util.js +26 -24
- package/lib/super-grid/src/search-button.vue.js +17 -12
- package/lib/super-grid/src/search-condition-input.vue.js +12 -8
- package/lib/super-grid/src/search-condition-list.vue.js +13 -10
- package/lib/super-grid/src/search-form-advancedQuery.vue.js +23 -13
- package/lib/super-grid/src/search-form-advancedQuery.vue2.js +4 -2
- package/lib/super-grid/src/search-form-dialog.vue.js +13 -9
- package/lib/super-grid/src/search-form-item.vue.js +24 -16
- package/lib/super-grid/src/search-form-item.vue2.js +4 -2
- package/lib/super-grid/src/search-form-mobile.vue.js +22 -13
- package/lib/super-grid/src/search-form-mobile.vue2.js +4 -2
- package/lib/super-grid/src/search-form-number.vue.js +14 -9
- package/lib/super-grid/src/search-form-open.vue.js +13 -7
- package/lib/super-grid/src/search-form-ordinarySearch.vue.js +19 -11
- package/lib/super-grid/src/search-form-ordinarySearch.vue2.js +4 -2
- package/lib/super-grid/src/search-form.vue.js +77 -65
- package/lib/super-grid/src/search-form.vue2.js +4 -2
- package/lib/super-grid/src/search-methods.js +3 -2
- package/lib/super-grid/src/selection-column.vue.js +9 -7
- package/lib/super-grid/src/store.js +4 -3
- package/lib/super-grid/src/super-grid-service.js +128 -121
- package/lib/super-grid/src/super-grid.vue.js +217 -186
- package/lib/super-grid/src/super-grid.vue2.js +4 -2
- package/lib/super-grid/src/utils.js +322 -265
- package/lib/super-grid/src/view-image-dialog.vue.js +33 -26
- package/lib/super-icon/index.js +7 -5
- package/lib/super-icon/src/index.vue.js +7 -5
- package/lib/super-icon/src/index.vue2.js +11 -8
- package/lib/super-icon/src/index.vue3.js +4 -2
- package/lib/super-nine-grid/index.js +7 -5
- package/lib/super-nine-grid/src/apis.js +8 -5
- package/lib/super-nine-grid/src/custom-formatter.js +7 -5
- package/lib/super-nine-grid/src/formatter.js +29 -28
- package/lib/super-nine-grid/src/search-form-number.vue.js +12 -8
- package/lib/super-nine-grid/src/search-form.vue.js +40 -33
- package/lib/super-nine-grid/src/search-form.vue2.js +4 -2
- package/lib/super-nine-grid/src/search-methods.js +3 -2
- package/lib/super-nine-grid/src/store.js +4 -3
- package/lib/super-nine-grid/src/super-grid-service.js +9 -5
- package/lib/super-nine-grid/src/super-nine-grid.vue.js +105 -95
- package/lib/super-nine-grid/src/super-nine-grid.vue2.js +4 -2
- package/lib/super-nine-grid/src/utils.js +27 -31
- package/lib/svg-icon/index.js +7 -5
- package/lib/svg-icon/src/svg-icon.vue.js +10 -8
- package/lib/svg-icon/src/svg-icon.vue2.js +4 -2
- package/lib/utils/gogocodeTransfer.js +28 -23
- package/lib/utils/memory-cache-utils.js +5 -3
- package/lib/utils/organization.js +53 -40
- package/lib/utils/utils.js +29 -27
- package/lib/utils/value-set.js +70 -68
- package/lib/valid-code/index.js +7 -5
- package/lib/valid-code/src/valid-code.vue.js +13 -10
- package/lib/valid-code/src/valid-code.vue2.js +4 -2
- package/lib/workflow-button/index.js +5 -3
- package/lib/workflow-button/src/workflow-button.vue.js +39 -34
- package/lib/workflow-history-list/index.js +7 -5
- package/lib/workflow-history-list/src/api.js +3 -2
- package/lib/workflow-history-list/src/workflow-history-list.vue.js +65 -59
- package/lib/workflow-history-list/src/workflow-history-list.vue2.js +4 -2
- package/lib/workgroup-tree/index.js +7 -5
- package/lib/workgroup-tree/src/workgroup-tree.vue.js +17 -11
- package/lib/workgroup-tree-inline/index.js +5 -3
- package/lib/workgroup-tree-inline/src/search-result.vue.js +25 -21
- package/lib/workgroup-tree-inline/src/search-result.vue2.js +4 -2
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue.js +52 -43
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue2.js +4 -2
- package/lib/workgroup-tree-inline/src/workgroup-tree-service.js +7 -5
- package/lib/workgroup-tree-mobile/index.js +8 -5
- package/lib/workgroup-tree-mobile/src/dept-result.vue.js +14 -11
- package/lib/workgroup-tree-mobile/src/dept-result.vue2.js +4 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue.js +12 -9
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue2.js +4 -2
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue3.js +5 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.js +86 -76
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue2.js +4 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-service.js +28 -20
- package/lib/workgroup-user-tree/index.js +7 -5
- package/lib/workgroup-user-tree/src/workgroup-user-tree.vue.js +17 -11
- package/lib/workgroup-user-tree-inline/index.js +5 -3
- package/lib/workgroup-user-tree-inline/src/search-result.vue.js +25 -21
- package/lib/workgroup-user-tree-inline/src/search-result.vue2.js +4 -2
- package/lib/workgroup-user-tree-inline/src/workgroup-tree-inline-service.js +11 -9
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.js +43 -34
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue2.js +4 -2
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue.js +11 -10
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue2.js +4 -3
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue.js +15 -11
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue2.js +4 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.js +12 -9
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue2.js +4 -2
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue3.js +5 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.js +104 -93
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue2.js +4 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-service.js +25 -16
- package/lib/year-range-picker/index.js +5 -3
- package/lib/year-range-picker/src/year-range-picker.vue.js +12 -9
- package/package.json +4 -5
- package/vite.config.js +10 -10
- package/es/IntervalSelection/index.js +0 -7
- package/es/IntervalSelection/src/sectionDate.vue.js +0 -49
- package/es/IntervalSelection/src/sectionDate.vue2.js +0 -4
- package/es/_virtual/__vite-browser-external.js +0 -4
- package/es/_virtual/_plugin-vue_export-helper.js +0 -9
- package/es/breadcrumb/index.js +0 -7
- package/es/breadcrumb/src/breadcrumb.vue.js +0 -28
- package/es/breadcrumb/src/breadcrumb.vue2.js +0 -4
- package/es/chat-embed/index.js +0 -7
- package/es/chat-embed/src/chat-addition-data.vue.js +0 -7
- package/es/chat-embed/src/chat-addition-data.vue2.js +0 -14
- package/es/chat-embed/src/chat-addition-data.vue3.js +0 -4
- package/es/chat-embed/src/chat-ai-answer-tip.vue.js +0 -7
- package/es/chat-embed/src/chat-ai-answer-tip.vue2.js +0 -29
- package/es/chat-embed/src/chat-ai-answer-tip.vue3.js +0 -4
- package/es/chat-embed/src/chat-bubble-footer.vue.js +0 -7
- package/es/chat-embed/src/chat-bubble-footer.vue2.js +0 -33
- package/es/chat-embed/src/chat-bubble-footer.vue3.js +0 -4
- package/es/chat-embed/src/chat-embed-message.js +0 -22
- package/es/chat-embed/src/chat-sender.vue.js +0 -7
- package/es/chat-embed/src/chat-sender.vue2.js +0 -160
- package/es/chat-embed/src/chat-sender.vue3.js +0 -4
- package/es/chat-embed/src/components/answer-auto-chart.vue.js +0 -7
- package/es/chat-embed/src/components/answer-auto-chart.vue2.js +0 -59
- package/es/chat-embed/src/components/answer-auto-chart.vue3.js +0 -4
- package/es/chat-embed/src/components/answer-home-chart.vue.js +0 -7
- package/es/chat-embed/src/components/answer-home-chart.vue2.js +0 -6
- package/es/chat-embed/src/components/answer-home-chart.vue3.js +0 -4
- package/es/chat-embed/src/components/answer-interaction-data.vue.js +0 -7
- package/es/chat-embed/src/components/answer-interaction-data.vue2.js +0 -118
- package/es/chat-embed/src/components/answer-interaction-data.vue3.js +0 -4
- package/es/chat-embed/src/components/history-detail.vue.js +0 -7
- package/es/chat-embed/src/components/history-detail.vue2.js +0 -55
- package/es/chat-embed/src/components/history-detail.vue3.js +0 -4
- package/es/chat-embed/src/header.vue.js +0 -7
- package/es/chat-embed/src/header.vue2.js +0 -46
- package/es/chat-embed/src/header.vue3.js +0 -4
- package/es/chat-embed/src/index.vue.js +0 -7
- package/es/chat-embed/src/index.vue2.js +0 -307
- package/es/chat-embed/src/index.vue3.js +0 -4
- package/es/chat-embed/src/recommendation-message.vue.js +0 -7
- package/es/chat-embed/src/recommendation-message.vue2.js +0 -8
- package/es/chat-embed/src/recommendation-message.vue3.js +0 -4
- package/es/chat-embed/src/sidebar-item.vue.js +0 -7
- package/es/chat-embed/src/sidebar-item.vue2.js +0 -118
- package/es/chat-embed/src/sidebar-item.vue3.js +0 -4
- package/es/chat-embed/src/type.js +0 -5
- package/es/chat-embed/src/util/chat-embed-util.js +0 -57
- package/es/chat-embed/src/util/history-message-util.js +0 -96
- package/es/chat-embed/src/util/mcp-utils.js +0 -53
- package/es/chat-embed/src/util/text-file-util.js +0 -12
- package/es/chat-embed/src/voice/index.js +0 -7
- package/es/chat-embed/src/voice/js/crypto-js.js +0 -1013
- package/es/chat-embed/src/voice/js/processor/index.umd.js +0 -178
- package/es/chat-embed/src/voice/js/timer.js +0 -11
- package/es/chat-embed/src/voice/voice.vue.js +0 -104
- package/es/date-picker-range/index.js +0 -7
- package/es/date-picker-range/index.vue.js +0 -7
- package/es/date-picker-range/index.vue2.js +0 -93
- package/es/date-picker-range/index.vue3.js +0 -4
- package/es/department-tree/index.js +0 -7
- package/es/department-tree/src/department-tree.vue.js +0 -23
- package/es/department-tree-inline/index.js +0 -7
- package/es/department-tree-inline/src/department-multi-tree-inline.vue.js +0 -91
- package/es/department-tree-inline/src/department-multi-tree-inline.vue2.js +0 -4
- package/es/department-tree-inline/src/department-single-tree-inline.vue.js +0 -64
- package/es/department-tree-inline/src/department-single-tree-inline.vue2.js +0 -4
- package/es/department-tree-inline/src/department-tree-inline.vue.js +0 -17
- package/es/department-tree-inline/src/department-tree-service.js +0 -108
- package/es/department-tree-inline/src/search-result.vue.js +0 -40
- package/es/department-tree-inline/src/search-result.vue2.js +0 -4
- package/es/department-tree-mobile/index.js +0 -8
- package/es/department-tree-mobile/src/department-tree-app.vue.js +0 -15
- package/es/department-tree-mobile/src/department-tree-app.vue2.js +0 -4
- package/es/department-tree-mobile/src/department-tree-app.vue3.js +0 -5
- package/es/department-tree-mobile/src/department-tree-inline-app.vue.js +0 -121
- package/es/department-tree-mobile/src/department-tree-inline-app.vue2.js +0 -4
- package/es/department-tree-mobile/src/department-tree-service.js +0 -55
- package/es/department-tree-mobile/src/dept-path.vue.js +0 -14
- package/es/department-tree-mobile/src/dept-path.vue2.js +0 -4
- package/es/department-tree-mobile/src/dept-result.vue.js +0 -16
- package/es/department-tree-mobile/src/dept-result.vue2.js +0 -4
- package/es/department-user-tree/index.js +0 -7
- package/es/department-user-tree/src/department-user-multiple-tree.vue.js +0 -20
- package/es/department-user-tree/src/department-user-multiple-tree.vue2.js +0 -4
- package/es/department-user-tree/src/department-user-single-tree.vue.js +0 -19
- package/es/department-user-tree/src/department-user-tree.vue.js +0 -27
- package/es/department-user-tree-inline/index.js +0 -7
- package/es/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.js +0 -165
- package/es/department-user-tree-inline/src/department-user-multiple-tree-inline.vue2.js +0 -4
- package/es/department-user-tree-inline/src/department-user-single-tree-inline.vue.js +0 -69
- package/es/department-user-tree-inline/src/department-user-single-tree-inline.vue2.js +0 -4
- package/es/department-user-tree-inline/src/department-user-tree-inline.vue.js +0 -16
- package/es/department-user-tree-inline/src/department-user-tree-multi-service.js +0 -81
- package/es/department-user-tree-inline/src/department-user-tree-single-service.js +0 -54
- package/es/department-user-tree-inline/src/group-user/group-input.vue.js +0 -39
- package/es/department-user-tree-inline/src/group-user/group-list.vue.js +0 -27
- package/es/department-user-tree-inline/src/group-user/group-user.vue.js +0 -16
- package/es/department-user-tree-inline/src/group-user-multiple-tree.vue.js +0 -78
- package/es/department-user-tree-inline/src/group-user-single-tree.vue.js +0 -34
- package/es/department-user-tree-inline/src/group-user-tree-service.js +0 -34
- package/es/department-user-tree-inline/src/search-result.vue.js +0 -41
- package/es/department-user-tree-inline/src/search-result.vue2.js +0 -4
- package/es/department-user-tree-mobile/index.js +0 -8
- package/es/department-user-tree-mobile/src/department-user-tree-app.vue.js +0 -15
- package/es/department-user-tree-mobile/src/department-user-tree-app.vue2.js +0 -4
- package/es/department-user-tree-mobile/src/department-user-tree-app.vue3.js +0 -5
- package/es/department-user-tree-mobile/src/department-user-tree-inline-app.vue.js +0 -135
- package/es/department-user-tree-mobile/src/department-user-tree-inline-app.vue2.js +0 -4
- package/es/department-user-tree-mobile/src/department-user-tree-service.js +0 -38
- package/es/department-user-tree-mobile/src/dept-path.vue.js +0 -14
- package/es/department-user-tree-mobile/src/dept-path.vue2.js +0 -4
- package/es/department-user-tree-mobile/src/dept-result.vue.js +0 -17
- package/es/department-user-tree-mobile/src/dept-result.vue2.js +0 -4
- package/es/directives/prevent-reclick.js +0 -15
- package/es/dynamic-source-select/index.js +0 -7
- package/es/dynamic-source-select/src/dynamic-source-select-service.js +0 -32
- package/es/dynamic-source-select/src/dynamic-source-select.vue.js +0 -276
- package/es/dynamic-source-select/src/dynamic-source-select.vue2.js +0 -4
- package/es/dynamic-source-select/src/dynamic-source-select.vue3.js +0 -4
- package/es/dynamic-source-select/src/events.js +0 -29
- package/es/empty-state/index.vue.js +0 -9
- package/es/empty-state/index.vue2.js +0 -4
- package/es/fs-preview/index.js +0 -7
- package/es/fs-preview/src/fs-preview.vue.js +0 -120
- package/es/fs-preview/src/fs-preview.vue2.js +0 -4
- package/es/fs-upload/index.js +0 -7
- package/es/fs-upload/src/fs-upload-multi.vue.js +0 -71
- package/es/fs-upload/src/fs-upload-single.vue.js +0 -73
- package/es/fs-upload/src/fs-upload.vue.js +0 -24
- package/es/fs-upload/src/see-big-picture.vue.js +0 -12
- package/es/fs-upload-list/index.js +0 -7
- package/es/fs-upload-list/src/fs-upload-list.vue.js +0 -98
- package/es/fs-upload-list/src/fs-upload-list.vue2.js +0 -4
- package/es/fs-upload-new/index.js +0 -7
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.js +0 -61
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-app.vue2.js +0 -4
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.js +0 -178
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue2.js +0 -4
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-component.vue.js +0 -7
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.js +0 -39
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-component.vue3.js +0 -4
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.js +0 -45
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-input.vue2.js +0 -4
- package/es/fs-upload-new/src/file-upload-mobile/file-upload.vue.js +0 -35
- package/es/fs-upload-new/src/file-upload-mobile/file-upload.vue2.js +0 -4
- package/es/fs-upload-new/src/fs-button-upload.vue.js +0 -7
- package/es/fs-upload-new/src/fs-button-upload.vue2.js +0 -62
- package/es/fs-upload-new/src/fs-button-upload.vue3.js +0 -4
- package/es/fs-upload-new/src/fs-drag-upload.vue.js +0 -7
- package/es/fs-upload-new/src/fs-drag-upload.vue2.js +0 -63
- package/es/fs-upload-new/src/fs-drag-upload.vue3.js +0 -4
- package/es/fs-upload-new/src/fs-preview-new.vue.js +0 -8
- package/es/fs-upload-new/src/fs-preview-new.vue2.js +0 -93
- package/es/fs-upload-new/src/fs-preview-new.vue3.js +0 -4
- package/es/fs-upload-new/src/fs-preview-new.vue4.js +0 -4
- package/es/fs-upload-new/src/fs-upload-new.vue.js +0 -64
- package/es/fs-upload-new/src/fs-upload-new.vue2.js +0 -4
- package/es/hamburger/index.js +0 -7
- package/es/hamburger/src/hamburger.vue.js +0 -15
- package/es/hamburger/src/hamburger.vue2.js +0 -4
- package/es/index.js +0 -383
- package/es/json-view/json-view-dialog.vue.js +0 -19
- package/es/json-view/json-view-dialog.vue2.js +0 -4
- package/es/json-view/json-view.vue.js +0 -4
- package/es/json-view/json-view.vue2.js +0 -36
- package/es/multipart-upload/index.js +0 -7
- package/es/multipart-upload/src/index.vue.js +0 -14
- package/es/multipart-upload/src/multipart-upload-form.vue.js +0 -82
- package/es/multipart-upload/src/multipart-upload-list.vue.js +0 -104
- package/es/organization-input/index.js +0 -7
- package/es/organization-input/src/organization-input.vue.js +0 -224
- package/es/organization-input/src/organization-input.vue2.js +0 -4
- package/es/plugins/export-data-new.js +0 -237
- package/es/plugins/export-data.js +0 -179
- package/es/plugins/index.js +0 -9
- package/es/plugins/public-method.js +0 -14
- package/es/remove-department/index.js +0 -7
- package/es/remove-department/src/remove-department.vue.js +0 -33
- package/es/remove-department/src/remove-dept-service.js +0 -13
- package/es/remove-user/index.js +0 -7
- package/es/remove-user/src/remove-user-service.js +0 -13
- package/es/remove-user/src/remove-user.vue.js +0 -35
- package/es/remove-workgroup/index.js +0 -7
- package/es/remove-workgroup/src/remove-workgroup-service.js +0 -13
- package/es/remove-workgroup/src/remove-workgroup.vue.js +0 -31
- package/es/rich-editor/index.js +0 -7
- package/es/rich-editor/index.vue.js +0 -115
- package/es/rich-editor/tinymce/zh_CN.js +0 -2
- package/es/rich-editor/viewer.vue.js +0 -27
- package/es/row-form/index.js +0 -7
- package/es/row-form/index.vue.js +0 -7
- package/es/row-form/index.vue2.js +0 -62
- package/es/row-form/index.vue3.js +0 -4
- package/es/row-form/operation.vue.js +0 -32
- package/es/row-form/operation.vue2.js +0 -4
- package/es/scan-code-input/index.js +0 -7
- package/es/scan-code-input/src/events.js +0 -15
- package/es/scan-code-input/src/scan-code-input.vue.js +0 -32
- package/es/scan-code-input-browser/index.js +0 -7
- package/es/scan-code-input-browser/src/scan-code-input.vue.js +0 -39
- package/es/secret-info/index.js +0 -7
- package/es/secret-info/index.vue.js +0 -16
- package/es/src/api/sso-service.js +0 -57
- package/es/src/api/tab.js +0 -15
- package/es/src/assets/401/401.gif.js +0 -4
- package/es/src/assets/404/404-cloud.png.js +0 -4
- package/es/src/assets/404/404.png.js +0 -4
- package/es/src/assets/chat-embed/robot.gif.js +0 -4
- package/es/src/assets/chat-embed/robot.svg.js +0 -4
- package/es/src/assets/nonemessage.png.js +0 -4
- package/es/src/components/Affix/index.vue.js +0 -7
- package/es/src/components/Affix/index.vue2.js +0 -83
- package/es/src/components/Affix/index.vue3.js +0 -4
- package/es/src/components/Card/index.js +0 -48
- package/es/src/components/Scrollbar/index.vue.js +0 -52
- package/es/src/components/Scrollbar/index.vue2.js +0 -4
- package/es/src/directives/permission/index.js +0 -7
- package/es/src/directives/permission/permission.js +0 -11
- package/es/src/i18n/i18n.js +0 -7
- package/es/src/i18n/langs/cn.js +0 -4
- package/es/src/i18n/langs/en.js +0 -4
- package/es/src/mixins/resizeMixin.js +0 -21
- package/es/src/permission.js +0 -79
- package/es/src/router/index.js +0 -9
- package/es/src/store/getters.js +0 -4
- package/es/src/store/index.js +0 -13
- package/es/src/store/modules/app.js +0 -41
- package/es/src/store/modules/chat-ai-store.js +0 -36
- package/es/src/store/modules/permission.js +0 -31
- package/es/src/store/modules/system.js +0 -12
- package/es/src/store/modules/tab-content.js +0 -20
- package/es/src/store/modules/table.js +0 -18
- package/es/src/store/modules/user.js +0 -139
- package/es/src/utils/auth-api.js +0 -134
- package/es/src/utils/auth.js +0 -156
- package/es/src/utils/calculator/calculator-factory-wf.js +0 -167
- package/es/src/utils/calculator/calculator-factory.js +0 -93
- package/es/src/utils/calculator/calculator-util.js +0 -56
- package/es/src/utils/chat-ai-util.js +0 -34
- package/es/src/utils/common-util.js +0 -440
- package/es/src/utils/eventBus.js +0 -6
- package/es/src/utils/file-util.js +0 -23
- package/es/src/utils/global-prop.js +0 -38
- package/es/src/utils/guid.js +0 -10
- package/es/src/utils/i18n-util.js +0 -70
- package/es/src/utils/iconUtils.js +0 -26
- package/es/src/utils/index.js +0 -46
- package/es/src/utils/insert_css.js +0 -17
- package/es/src/utils/json-util.js +0 -47
- package/es/src/utils/jump-page-utils.js +0 -264
- package/es/src/utils/local-storage.js +0 -19
- package/es/src/utils/menu.js +0 -14
- package/es/src/utils/permission.js +0 -45
- package/es/src/utils/permissionAuth.js +0 -154
- package/es/src/utils/range-selector.js +0 -105
- package/es/src/utils/request.js +0 -140
- package/es/src/utils/resize.js +0 -11
- package/es/src/utils/restful-interface-utils.js +0 -18
- package/es/src/utils/util.js +0 -361
- package/es/src/utils/validate.js +0 -22
- package/es/src/utils/voice-setting-cache.js +0 -212
- package/es/src/utils/watermark-cache.js +0 -15
- package/es/src/utils/watermark.js +0 -40
- package/es/src/utils/workflow-util.js +0 -42
- package/es/src/views/dsc-component/Sidebar/Item.vue.js +0 -7
- package/es/src/views/dsc-component/Sidebar/Item.vue2.js +0 -12
- package/es/src/views/dsc-component/Sidebar/Item.vue3.js +0 -4
- package/es/src/views/dsc-component/Sidebar/Link.vue.js +0 -14
- package/es/src/views/dsc-component/Sidebar/SidebarItem.vue.js +0 -53
- package/es/src/views/dsc-component/Sidebar/SidebarItem.vue2.js +0 -4
- package/es/src/views/dsc-component/Sidebar/index.vue.js +0 -111
- package/es/src/views/dsc-component/tabs/tab-content.vue.js +0 -66
- package/es/src/views/dsc-component/tabs/tab-content.vue2.js +0 -4
- package/es/src/views/dsc-component/tabs/tab-content.vue3.js +0 -4
- package/es/src/views/error-page/401.vue.js +0 -15
- package/es/src/views/error-page/401.vue2.js +0 -4
- package/es/src/views/error-page/404.vue.js +0 -12
- package/es/src/views/error-page/404.vue2.js +0 -4
- package/es/src/views/layout/EmptyLayout.vue.js +0 -9
- package/es/src/views/layout/Layout.vue.js +0 -28
- package/es/src/views/layout/Layout.vue2.js +0 -4
- package/es/src/views/layout/NewLayout.vue.js +0 -11
- package/es/src/views/layout/components/AppMain.vue.js +0 -13
- package/es/src/views/layout/components/AppMain.vue2.js +0 -4
- package/es/src/views/layout/components/Breadcrumb/index.vue.js +0 -49
- package/es/src/views/layout/components/Breadcrumb/index.vue2.js +0 -4
- package/es/src/views/layout/components/Menubar/Item.vue.js +0 -7
- package/es/src/views/layout/components/Menubar/Item.vue2.js +0 -15
- package/es/src/views/layout/components/Menubar/Item.vue3.js +0 -4
- package/es/src/views/layout/components/Menubar/Link.vue.js +0 -14
- package/es/src/views/layout/components/Menubar/SidebarItem.vue.js +0 -56
- package/es/src/views/layout/components/Menubar/SidebarItem.vue2.js +0 -4
- package/es/src/views/layout/components/Menubar/index.vue.js +0 -90
- package/es/src/views/layout/components/Sidebar/Item.vue.js +0 -9
- package/es/src/views/layout/components/Sidebar/Item.vue2.js +0 -4
- package/es/src/views/layout/components/Sidebar/Link.vue.js +0 -12
- package/es/src/views/layout/components/Sidebar/SidebarItem.vue.js +0 -22
- package/es/src/views/layout/components/Sidebar/SidebarItem.vue2.js +0 -4
- package/es/src/views/layout/components/Sidebar/index.vue.js +0 -58
- package/es/src/views/layout/components/iframe-page.vue.js +0 -14
- package/es/src/views/layout/components/iframe-page.vue2.js +0 -4
- package/es/src/views/layout/components/tabs/tab-content.vue.js +0 -64
- package/es/src/views/layout/components/tabs/tab-content.vue2.js +0 -4
- package/es/src/views/layout/components/tabs/tab-content.vue3.js +0 -4
- package/es/src/views/layout/mixin/ResizeHandler.js +0 -16
- package/es/src/views/layout/tab-content-iframe-index.vue.js +0 -14
- package/es/src/views/layout/tab-content-iframe-index.vue2.js +0 -4
- package/es/src/views/layout/tab-content-index.vue.js +0 -28
- package/es/src/views/layout/tab-content-index.vue2.js +0 -4
- package/es/src/views/login/authredirect.vue.js +0 -7
- package/es/src/views/redirect/index.vue.js +0 -8
- package/es/src/views/svg-icon/src/svg-icon.vue.js +0 -4
- package/es/src/views/wf-history/tache-subprocess-history.vue.js +0 -14
- package/es/src/views/wf-history/tache-subprocess-history.vue2.js +0 -4
- package/es/super-grid/index.js +0 -7
- package/es/super-grid/src/apis.js +0 -458
- package/es/super-grid/src/columns-config.vue.js +0 -82
- package/es/super-grid/src/components/grid-icon.vue.js +0 -47
- package/es/super-grid/src/components/grid-radio-input.vue.js +0 -25
- package/es/super-grid/src/components/grid-radio-input.vue2.js +0 -4
- package/es/super-grid/src/components/mobile-table-card.js +0 -109
- package/es/super-grid/src/components/select-input.vue.js +0 -149
- package/es/super-grid/src/components/select-input.vue2.js +0 -4
- package/es/super-grid/src/custom-formatter.js +0 -168
- package/es/super-grid/src/dynamic-input.vue.js +0 -482
- package/es/super-grid/src/eventBus.js +0 -6
- package/es/super-grid/src/events.js +0 -37
- package/es/super-grid/src/formValidatorUtil.js +0 -109
- package/es/super-grid/src/formatter.js +0 -74
- package/es/super-grid/src/group-column.vue.js +0 -24
- package/es/super-grid/src/header-context-menu.vue.js +0 -15
- package/es/super-grid/src/header-context-menu.vue2.js +0 -4
- package/es/super-grid/src/index-column.vue.js +0 -22
- package/es/super-grid/src/normal-column-content.vue.js +0 -319
- package/es/super-grid/src/normal-column-content.vue2.js +0 -4
- package/es/super-grid/src/normal-column.vue.js +0 -106
- package/es/super-grid/src/normal-column.vue2.js +0 -4
- package/es/super-grid/src/public-methods.js +0 -22
- package/es/super-grid/src/row-detail.vue.js +0 -14
- package/es/super-grid/src/row-operation.vue.js +0 -89
- package/es/super-grid/src/row-operation.vue2.js +0 -4
- package/es/super-grid/src/scan-util.js +0 -100
- package/es/super-grid/src/search-button.vue.js +0 -23
- package/es/super-grid/src/search-condition-input.vue.js +0 -17
- package/es/super-grid/src/search-condition-list.vue.js +0 -20
- package/es/super-grid/src/search-form-advancedQuery.vue.js +0 -116
- package/es/super-grid/src/search-form-advancedQuery.vue2.js +0 -4
- package/es/super-grid/src/search-form-dialog.vue.js +0 -16
- package/es/super-grid/src/search-form-item.vue.js +0 -128
- package/es/super-grid/src/search-form-item.vue2.js +0 -4
- package/es/super-grid/src/search-form-mobile.vue.js +0 -41
- package/es/super-grid/src/search-form-mobile.vue2.js +0 -4
- package/es/super-grid/src/search-form-number.vue.js +0 -26
- package/es/super-grid/src/search-form-open.vue.js +0 -50
- package/es/super-grid/src/search-form-ordinarySearch.vue.js +0 -39
- package/es/super-grid/src/search-form-ordinarySearch.vue2.js +0 -4
- package/es/super-grid/src/search-form.vue.js +0 -201
- package/es/super-grid/src/search-form.vue2.js +0 -4
- package/es/super-grid/src/search-methods.js +0 -164
- package/es/super-grid/src/selection-column.vue.js +0 -11
- package/es/super-grid/src/store.js +0 -4
- package/es/super-grid/src/super-grid-service.js +0 -260
- package/es/super-grid/src/super-grid.vue.js +0 -1052
- package/es/super-grid/src/super-grid.vue2.js +0 -4
- package/es/super-grid/src/utils.js +0 -355
- package/es/super-grid/src/view-image-dialog.vue.js +0 -67
- package/es/super-icon/index.js +0 -7
- package/es/super-icon/src/index.vue.js +0 -7
- package/es/super-icon/src/index.vue2.js +0 -13
- package/es/super-icon/src/index.vue3.js +0 -4
- package/es/super-nine-grid/index.js +0 -7
- package/es/super-nine-grid/src/apis.js +0 -36
- package/es/super-nine-grid/src/custom-formatter.js +0 -35
- package/es/super-nine-grid/src/formatter.js +0 -37
- package/es/super-nine-grid/src/search-form-number.vue.js +0 -13
- package/es/super-nine-grid/src/search-form.vue.js +0 -91
- package/es/super-nine-grid/src/search-form.vue2.js +0 -4
- package/es/super-nine-grid/src/search-methods.js +0 -48
- package/es/super-nine-grid/src/store.js +0 -4
- package/es/super-nine-grid/src/super-grid-service.js +0 -39
- package/es/super-nine-grid/src/super-nine-grid.vue.js +0 -225
- package/es/super-nine-grid/src/super-nine-grid.vue2.js +0 -4
- package/es/super-nine-grid/src/utils.js +0 -32
- package/es/svg-icon/index.js +0 -7
- package/es/svg-icon/src/svg-icon.vue.js +0 -14
- package/es/svg-icon/src/svg-icon.vue2.js +0 -4
- package/es/utils/gogocodeTransfer.js +0 -33
- package/es/utils/memory-cache-utils.js +0 -30
- package/es/utils/organization.js +0 -57
- package/es/utils/utils.js +0 -87
- package/es/utils/value-set.js +0 -94
- package/es/valid-code/index.js +0 -7
- package/es/valid-code/src/valid-code.vue.js +0 -23
- package/es/valid-code/src/valid-code.vue2.js +0 -4
- package/es/workflow-button/index.js +0 -7
- package/es/workflow-button/src/workflow-button.vue.js +0 -85
- package/es/workflow-history-list/index.js +0 -7
- package/es/workflow-history-list/src/api.js +0 -6
- package/es/workflow-history-list/src/workflow-history-list.vue.js +0 -89
- package/es/workflow-history-list/src/workflow-history-list.vue2.js +0 -4
- package/es/workgroup-tree/index.js +0 -7
- package/es/workgroup-tree/src/workgroup-tree.vue.js +0 -23
- package/es/workgroup-tree-inline/index.js +0 -7
- package/es/workgroup-tree-inline/src/search-result.vue.js +0 -39
- package/es/workgroup-tree-inline/src/search-result.vue2.js +0 -4
- package/es/workgroup-tree-inline/src/workgroup-tree-inline.vue.js +0 -128
- package/es/workgroup-tree-inline/src/workgroup-tree-inline.vue2.js +0 -4
- package/es/workgroup-tree-inline/src/workgroup-tree-service.js +0 -35
- package/es/workgroup-tree-mobile/index.js +0 -8
- package/es/workgroup-tree-mobile/src/dept-result.vue.js +0 -16
- package/es/workgroup-tree-mobile/src/dept-result.vue2.js +0 -4
- package/es/workgroup-tree-mobile/src/workgroup-tree-app.vue.js +0 -15
- package/es/workgroup-tree-mobile/src/workgroup-tree-app.vue2.js +0 -4
- package/es/workgroup-tree-mobile/src/workgroup-tree-app.vue3.js +0 -5
- package/es/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.js +0 -109
- package/es/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue2.js +0 -4
- package/es/workgroup-tree-mobile/src/workgroup-tree-service.js +0 -33
- package/es/workgroup-user-tree/index.js +0 -7
- package/es/workgroup-user-tree/src/workgroup-user-tree.vue.js +0 -23
- package/es/workgroup-user-tree-inline/index.js +0 -7
- package/es/workgroup-user-tree-inline/src/search-result.vue.js +0 -39
- package/es/workgroup-user-tree-inline/src/search-result.vue2.js +0 -4
- package/es/workgroup-user-tree-inline/src/workgroup-tree-inline-service.js +0 -73
- package/es/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.js +0 -172
- package/es/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue2.js +0 -4
- package/es/workgroup-user-tree-mobile/src/dept-path.vue.js +0 -14
- package/es/workgroup-user-tree-mobile/src/dept-path.vue2.js +0 -4
- package/es/workgroup-user-tree-mobile/src/dept-result.vue.js +0 -17
- package/es/workgroup-user-tree-mobile/src/dept-result.vue2.js +0 -4
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.js +0 -15
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue2.js +0 -4
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue3.js +0 -5
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.js +0 -135
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue2.js +0 -4
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-service.js +0 -29
- package/es/year-range-picker/index.js +0 -7
- package/es/year-range-picker/src/year-range-picker.vue.js +0 -14
- /package/{es → dist}/favicon.svg +0 -0
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import "./components/Sidebar/index.vue.js";
|
|
2
|
-
import { resolveComponent as e, openBlock as t, createElementBlock as o, normalizeClass as s, createCommentVNode as i, createVNode as n, createElementVNode as r, createBlock as a } from "vue";
|
|
3
|
-
import "./components/AppMain.vue2.js";
|
|
4
|
-
import d from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
import m from "./components/Menubar/index.vue.js";
|
|
6
|
-
import c from "./components/Breadcrumb/index.vue.js";
|
|
7
|
-
import p from "./mixin/ResizeHandler.js";
|
|
8
|
-
import { isShowMenuRoute as u } from "../../utils/common-util.js";
|
|
9
|
-
import l from "./components/tabs/tab-content.vue.js";
|
|
10
|
-
import "./tab-content-index.vue2.js";
|
|
11
|
-
const b = { class: "main-container" };
|
|
12
|
-
const h = d({ name: "Layout", components: { Menubar: m, Breadcrumb: c, TabContent: l }, mixins: [p], data: () => ({ showMenuRoute: u(), systemCode: null }), computed: { sidebar() {
|
|
13
|
-
return this.$store.state.app.sidebar;
|
|
14
|
-
}, device() {
|
|
15
|
-
return this.$store.state.app.device;
|
|
16
|
-
}, classObj() {
|
|
17
|
-
return { hideSidebar: !this.sidebar.opened, openSidebar: this.sidebar.opened, withoutAnimation: this.sidebar.withoutAnimation, mobile: "mobile" === this.device };
|
|
18
|
-
} }, created() {
|
|
19
|
-
this.systemCode = window.$vueApp.config.globalProperties.customSystem, this.systemCode;
|
|
20
|
-
}, methods: { handleClickOutside() {
|
|
21
|
-
this.$store.dispatch("closeSidebar", { withoutAnimation: false });
|
|
22
|
-
} } }, [["render", function(d2, m2, c2, p2, u2, l2) {
|
|
23
|
-
const h2 = e("menubar"), v = e("breadcrumb"), f = e("tab-content");
|
|
24
|
-
return t(), o("div", { class: s([l2.classObj, "app-wrapper"]) }, ["mobile" === l2.device && l2.sidebar.opened ? (t(), o("div", { key: 0, class: "drawer-bg", onClick: m2[0] || (m2[0] = (...e2) => l2.handleClickOutside && l2.handleClickOutside(...e2)) })) : i("", true), n(h2, { "system-code": u2.systemCode, collapse: true, class: "sidebar-container" }, null, 8, ["system-code"]), r("div", b, [u2.showMenuRoute ? (t(), a(v, { key: 0 })) : i("", true), n(f)])], 2);
|
|
25
|
-
}], ["__scopeId", "data-v-5c0a6bf6"]]);
|
|
26
|
-
export {
|
|
27
|
-
h as default
|
|
28
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { resolveComponent as o, openBlock as e, createElementBlock as t, createElementVNode as l, createVNode as r, withCtx as i, createTextVNode as a, toDisplayString as d, createCommentVNode as s, createBlock as u } from "vue";
|
|
2
|
-
import "./tache-subprocess-history.vue2.js";
|
|
3
|
-
import p from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const w = { style: { "padding-bottom": "10px" } }, n = { key: 0, class: "graphDiv" };
|
|
5
|
-
const f = p({ name: "TacheSubprocessHistory", data: () => ({ type: "graph", workflowId: null }), created() {
|
|
6
|
-
const o2 = this.$route.query.workflowId;
|
|
7
|
-
o2 && (this.workflowId = parseInt(o2));
|
|
8
|
-
} }, [["render", function(p2, f2, c, h, y, m) {
|
|
9
|
-
const k = o("el-radio-button"), v = o("el-radio-group"), I = o("workflow-history"), b = o("workflow-history-list");
|
|
10
|
-
return e(), t("div", null, [l("div", w, [r(v, { modelValue: y.type, "onUpdate:modelValue": f2[0] || (f2[0] = (o2) => y.type = o2) }, { default: i(() => [r(k, { label: "graph" }, { default: i(() => [a(d(p2.$t("imatrixUIPublicModel.graphView")), 1)]), _: 1 }), r(k, { label: "list" }, { default: i(() => [a(d(p2.$t("imatrixUIPublicModel.listView")), 1)]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), "graph" === y.type ? (e(), t("div", n, [r(I, { id: y.workflowId }, null, 8, ["id"])])) : s("", true), "list" === y.type ? (e(), u(b, { key: 1, "workflow-id": y.workflowId }, null, 8, ["workflow-id"])) : s("", true)]);
|
|
11
|
-
}], ["__scopeId", "data-v-a936569d"]]);
|
|
12
|
-
export {
|
|
13
|
-
f as default
|
|
14
|
-
};
|
package/es/super-grid/index.js
DELETED
|
@@ -1,458 +0,0 @@
|
|
|
1
|
-
import { $emit as e } from "../../utils/gogocodeTransfer.js";
|
|
2
|
-
import t from "./store.js";
|
|
3
|
-
import { isEditOptionFunction as i, isLastEditRowSave as a, parseSubTableActionCondition as o, scrollYToBottom as s, isHasEditOption as n, getAdditionalParamMap as l, setCurrentRow as r, isDynamicDataSourceSource as d } from "./utils.js";
|
|
4
|
-
import g from "./formValidatorUtil.js";
|
|
5
|
-
import "vue";
|
|
6
|
-
import { setEntityFieldValue as p, getI18n as u, getEntityFieldValue as c, getPropValueNew as h, getPropValue as w } from "../../src/utils/util.js";
|
|
7
|
-
import f from "./eventBus.js";
|
|
8
|
-
import { isPromise as b } from "../../src/utils/common-util.js";
|
|
9
|
-
import { updateWithPageValue as m } from "../../src/utils/jump-page-utils.js";
|
|
10
|
-
import { getGuId as S } from "../../src/utils/guid.js";
|
|
11
|
-
import { ElMessageBox as D } from "element-plus";
|
|
12
|
-
const v = { toolbarRefresh(e2, t2, i2, a2) {
|
|
13
|
-
return this.toolbarFieldParam = i2, this.refresh(e2, t2, i2, a2);
|
|
14
|
-
}, refresh(e2, i2, a2, o2) {
|
|
15
|
-
return new Promise((i3, s2) => {
|
|
16
|
-
if (o2) {
|
|
17
|
-
t.get(this.code).options.subTableData = null;
|
|
18
|
-
}
|
|
19
|
-
if (!a2 && this.toolbarFieldParam && (a2 = this.toolbarFieldParam), this.$refs)
|
|
20
|
-
if (null != e2 && e2 instanceof Array && e2.length > 0)
|
|
21
|
-
if (this.$refs.sf) {
|
|
22
|
-
let t2 = this.$refs.sf.packageSearchParam();
|
|
23
|
-
t2 && t2.length > 0 ? a2 && a2.length > 0 && (1 === t2.length && (t2[0].leftBracket = "(", t2[0].rightBracket = ")"), "or" === t2[t2.length - 1].joinSign && (t2[t2.length - 1].joinSign = "and"), Array.prototype.push.apply(t2, a2)) : a2 && (t2 = [], t2 = a2), this.search(t2, false, e2).then(() => i3()).catch((e3) => s2(e3));
|
|
24
|
-
} else
|
|
25
|
-
this.search(a2, false, e2).then(() => i3()).catch((e3) => s2(e3));
|
|
26
|
-
else if (this.$refs.sf) {
|
|
27
|
-
let e3 = this.$refs.sf.packageSearchParam();
|
|
28
|
-
e3 && e3.length > 0 ? a2 && a2.length > 0 && (1 === e3.length && (e3[0].leftBracket = "(", e3[0].rightBracket = ")"), "or" === e3[e3.length - 1].joinSign && (e3[e3.length - 1].joinSign = "and"), Array.prototype.push.apply(e3, a2)) : a2 && (e3 = [], e3 = a2), this.search(e3, false).then(() => i3()).catch((e4) => s2(e4));
|
|
29
|
-
} else
|
|
30
|
-
this.search(a2, false).then(() => i3()).catch((e3) => s2(e3));
|
|
31
|
-
else
|
|
32
|
-
i3();
|
|
33
|
-
});
|
|
34
|
-
}, showSearchForm() {
|
|
35
|
-
this.showSearch = true, e(this, "showSearch");
|
|
36
|
-
}, cancelSearch() {
|
|
37
|
-
this.showSearch = false, e(this, "cancelSearch");
|
|
38
|
-
}, getSearchForm() {
|
|
39
|
-
const e2 = t.get(this.code);
|
|
40
|
-
return e2.searchForm ? e2.searchForm : [];
|
|
41
|
-
}, createRow(n2, l2, r2, d2) {
|
|
42
|
-
let g2 = -1;
|
|
43
|
-
return d2 && d2.rowIndex > -1 && (g2 = d2.rowIndex + 1), new Promise((d3, c2) => {
|
|
44
|
-
var _a, _b, _c;
|
|
45
|
-
n2 || (n2 = t.get("_list_code"));
|
|
46
|
-
const h2 = t.get(n2), w2 = h2.gridData;
|
|
47
|
-
if ((_b = (_a = h2.superGrid) == null ? void 0 : _a.clearSort) == null ? void 0 : _b.call(_a), h2.lineEdit && h2.lineEdit.editable && void 0 !== h2.loaded && true === h2.loaded) {
|
|
48
|
-
let t2 = true;
|
|
49
|
-
if (i("beforeInsertRow", n2)) {
|
|
50
|
-
const e2 = h2.isSubTableShowPage, i2 = h2.pagination && h2.pagination.pageSize, a2 = this.isMobile;
|
|
51
|
-
t2 = h2.pageContext ? h2.options.lineEditOptions.beforeInsertRow.call(this, { gridData: e2 ? h2.subTableData : h2.gridData, rowIndex: h2.$rowIndex, isMobile: a2, baseURL: this.baseURL, totalData: e2 ? h2.gridData : null, pageSize: i2, additionalParamMap: h2.additionalParamMap, row: l2, pageContext: h2.pageContext, configureObj: h2.configureObj }) : h2.options.lineEditOptions.beforeInsertRow.call(this, e2 ? h2.subTableData : h2.gridData, h2.$rowIndex, a2, this.baseURL, e2 ? h2.gridData : null, i2, h2.additionalParamMap, l2);
|
|
52
|
-
}
|
|
53
|
-
if (void 0 === t2 || true === t2) {
|
|
54
|
-
if (h2.options && h2.options.isFormSubTable) {
|
|
55
|
-
let t4 = h2.gridData;
|
|
56
|
-
void 0 !== h2.isSubTableShowPage && true === h2.isSubTableShowPage && (t4 = h2.subTableData);
|
|
57
|
-
const i2 = t4.filter((e2) => void 0 !== e2.$editing && true === e2.$editing);
|
|
58
|
-
i2 && i2.length > 0 && i2.forEach((t5) => {
|
|
59
|
-
p(t5, "$editing", false), e(f, "un-edit", { row: t5 });
|
|
60
|
-
}), h2.isEditRow = false;
|
|
61
|
-
} else {
|
|
62
|
-
if (!a(n2) || void 0 !== h2.isCreateRow && true === h2.isCreateRow)
|
|
63
|
-
return window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("superGrid.pleaseSaveLine", { row: h2.$rowIndex + 1 }), type: "warning" }), void c2(new Error("please save line"));
|
|
64
|
-
if (void 0 !== h2.$rowIndex && null !== h2.$rowIndex && h2.$rowIndex < h2.gridData.length) {
|
|
65
|
-
const e2 = h2.gridData[h2.$rowIndex];
|
|
66
|
-
p(e2, "$editing", false), h2.isEditRow = false;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
if (false === o(h2, this.parentFormData, {}, (_c = h2.options.actionPermission) == null ? void 0 : _c.addCondition))
|
|
70
|
-
return window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("superGrid.canntAddTip"), type: "warning" }), void c2(new Error("can not create"));
|
|
71
|
-
if (l2 = this.getNewRow(h2.defaultValueColumns, h2.additionalParamMap, h2.contextParameter, l2, n2, r2 ? r2.getDefaultValueFunc : null), p(l2, "$editing", true), h2.isEditRow = true, h2.options && h2.options.isFormSubTable) {
|
|
72
|
-
if (void 0 !== h2.isSubTableShowPage && true === h2.isSubTableShowPage)
|
|
73
|
-
if (h2.isChangePage = true, g2 >= 0) {
|
|
74
|
-
const e2 = (this.currentPage - 1) * this.pageSize + g2;
|
|
75
|
-
h2.addRowIndex = e2 + 1, h2.subTableData.splice(e2, 0, l2);
|
|
76
|
-
} else {
|
|
77
|
-
let e2 = h2.subTableData.length;
|
|
78
|
-
e2 <= 0 && (e2 = -1), h2.subTableData.splice(e2, 0, l2), h2.addRowIndex = h2.subTableData.length;
|
|
79
|
-
}
|
|
80
|
-
else
|
|
81
|
-
g2 >= 0 ? w2.splice(g2, 0, l2) : w2.splice(w2.length, 0, l2), h2.lineEdit.editingCell && (h2.lineEdit.editingCell.row = w2.length);
|
|
82
|
-
h2.$rowIndex = w2.length, this.$nextTick(() => {
|
|
83
|
-
s(n2);
|
|
84
|
-
});
|
|
85
|
-
} else
|
|
86
|
-
w2.splice(0, 0, l2), h2.lineEdit.editingCell && (h2.lineEdit.editingCell.row = 0), h2.$rowIndex = 0;
|
|
87
|
-
const t3 = Object.assign({}, l2);
|
|
88
|
-
if (g2 >= 0 ? h2.orgGridData.splice(g2, 0, t3) : h2.orgGridData.splice(0, 0, t3), h2.lineEdit.editingCell || (h2.lineEdit.editingCell = {}, h2.lineEdit.validateErrorField = ""), i("afterInsertRow", n2)) {
|
|
89
|
-
const e2 = h2.isSubTableShowPage, t4 = h2.pagination && h2.pagination.pageSize, i2 = this.isMobile;
|
|
90
|
-
h2.pageContext ? h2.options.lineEditOptions.afterInsertRow.call(this, { gridData: e2 ? h2.subTableData : h2.gridData, rowIndex: h2.$rowIndex, isMobile: i2, baseURL: this.baseURL, totalData: e2 ? h2.gridData : null, pageSize: t4, additionalParamMap: h2.additionalParamMap, pageContext: h2.pageContext, configureObj: h2.configureObj }) : h2.options.lineEditOptions.afterInsertRow.call(this, e2 ? h2.subTableData : h2.gridData, h2.$rowIndex, i2, this.baseURL, e2 ? h2.gridData : null, t4, h2.additionalParamMap);
|
|
91
|
-
}
|
|
92
|
-
h2.isCreateRow = true, d3(l2);
|
|
93
|
-
} else
|
|
94
|
-
c2(new Error("can not create"));
|
|
95
|
-
} else
|
|
96
|
-
c2(new Error("list not editable or data not loaded completely"));
|
|
97
|
-
});
|
|
98
|
-
}, getNewRow(e2, i2, a2, o2, s2, n2) {
|
|
99
|
-
o2 || (o2 = {}), s2 || (s2 = t.get("_list_code"));
|
|
100
|
-
const l2 = t.get(s2);
|
|
101
|
-
if (l2 && l2.allColumns && this.setColumnsDefaultValue(l2.allColumns, o2, l2, n2), e2 && e2.length > 0)
|
|
102
|
-
for (var r2 = 0; r2 < e2.length; r2++) {
|
|
103
|
-
const t2 = e2[r2];
|
|
104
|
-
if (t2 && t2.prop) {
|
|
105
|
-
const e3 = c(o2, t2.prop);
|
|
106
|
-
if ("$selection" !== t2.prop && "$index" !== t2.prop && t2.defaultValue && "" !== t2.defaultValue && (void 0 === e3 || "" === e3 || null === e3)) {
|
|
107
|
-
let e4;
|
|
108
|
-
e4 = l2.pageContext ? h(t2.defaultValue, l2.pageContext) : w(t2.defaultValue, o2, i2, a2), p(o2, t2.prop, e4);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
return { $rowDataGuId: S(), ...o2 };
|
|
113
|
-
}, setColumnsDefaultValue(e2, t2, i2, a2) {
|
|
114
|
-
for (let o2 = 0; o2 < e2.length; o2++) {
|
|
115
|
-
const s2 = e2[o2], n2 = s2.prop;
|
|
116
|
-
if ("$index" !== n2 && "$selection" !== n2 && "operation" !== n2) {
|
|
117
|
-
if (s2.hasOwnProperty("children"))
|
|
118
|
-
this.setChildrenColumnsDefaultValue(s2.children, t2);
|
|
119
|
-
else if (void 0 === t2[n2]) {
|
|
120
|
-
const e3 = s2.defaultValue;
|
|
121
|
-
let o3 = null;
|
|
122
|
-
a2 && (o3 = a2(i2.pageContext, e3, null, null), void 0 === o3 && (o3 = null)), p(t2, n2, o3);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
p(t2, "$editing", false);
|
|
127
|
-
}, setChildrenColumnsDefaultValue(e2, t2) {
|
|
128
|
-
for (let i2 = 0; i2 < e2.length; i2++) {
|
|
129
|
-
const a2 = e2[i2], o2 = a2.prop;
|
|
130
|
-
a2.hasOwnProperty("children") ? this.setChildrenColumnsDefaultValue(a2.children, t2) : void 0 === t2[o2] && "operation" !== o2 && p(t2, o2, null);
|
|
131
|
-
}
|
|
132
|
-
}, isLastEditRowSaveMessage(e2) {
|
|
133
|
-
e2 || (e2 = t.get("_list_code"));
|
|
134
|
-
const i2 = t.get(e2);
|
|
135
|
-
return !!a(e2) || (window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("superGrid.pleaseSaveLine", { row: i2.$rowIndex + 1 }), type: "warning" }), false);
|
|
136
|
-
}, confirmBeforeSwitchingRow(e2, i2) {
|
|
137
|
-
e2 || (e2 = t.get("_list_code"));
|
|
138
|
-
const { t: o2 } = u(), s2 = t.get(e2).$rowIndex;
|
|
139
|
-
a(e2) || D.confirm(o2("superGrid.rowEditMessageBox.content"), o2("superGrid.rowEditMessageBox.title"), { distinguishCancelAndClose: true, confirmButtonText: o2("superGrid.rowEditMessageBox.confirmButton"), cancelButtonText: o2("superGrid.rowEditMessageBox.cancelButton"), showClose: true, beforeClose: (t2, a2, o3) => {
|
|
140
|
-
"confirm" === t2 ? this.saveRow(s2, e2).then((e3) => {
|
|
141
|
-
i2 == null ? void 0 : i2("confirm"), o3();
|
|
142
|
-
}) : "cancel" === t2 ? (this.restoreCurrentRow(s2, e2), i2 == null ? void 0 : i2("cancel"), o3()) : "close" === t2 && o3();
|
|
143
|
-
} });
|
|
144
|
-
}, editRow(e2, o2, s2, r2) {
|
|
145
|
-
o2 || (o2 = t.get("_list_code"));
|
|
146
|
-
const d2 = t.get(o2);
|
|
147
|
-
if (d2 && d2.lineEdit && d2.lineEdit.editable) {
|
|
148
|
-
if (void 0 !== d2.$rowIndex && null !== d2.$rowIndex && d2.$rowIndex !== e2) {
|
|
149
|
-
if (void 0 === d2.options.lineEditOptions.autoSave || n("autoSave", o2) && true === d2.options.lineEditOptions.autoSave) {
|
|
150
|
-
if (!s2)
|
|
151
|
-
return void this.saveRow(d2.$rowIndex, o2).then((t3) => {
|
|
152
|
-
this.editRow(e2, o2, true);
|
|
153
|
-
});
|
|
154
|
-
} else if (!a(o2))
|
|
155
|
-
return void window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("superGrid.pleaseSaveLine", { row: d2.$rowIndex + 1 }), type: "warning" });
|
|
156
|
-
}
|
|
157
|
-
let t2 = true;
|
|
158
|
-
if (!r2 && i("beforeEdit", o2)) {
|
|
159
|
-
const i2 = d2.isSubTableShowPage, a2 = d2.pagination && d2.pagination.pageSize;
|
|
160
|
-
t2 = d2.options.lineEditOptions.beforeEdit.call(this, { gridData: i2 ? d2.subTableData : d2.gridData, listCode: o2, entity: d2.gridData[e2], row: d2.gridData[e2], rowIndex: e2, columns: d2.columns, isMobile: false, pageGridData: i2 ? d2.gridData : null, pageSize: a2, additionalParamMap: l(d2), pageContext: d2.pageContext, configureObj: d2.configureObj });
|
|
161
|
-
}
|
|
162
|
-
b(t2) ? t2.then((t3) => {
|
|
163
|
-
void 0 !== t3 && true !== t3 || this.doEditRow(d2, e2);
|
|
164
|
-
}) : void 0 !== t2 && true !== t2 || this.doEditRow(d2, e2);
|
|
165
|
-
}
|
|
166
|
-
}, doEditRow(e2, t2) {
|
|
167
|
-
if (void 0 !== e2.$rowIndex && null !== e2.$rowIndex && e2.$rowIndex < e2.gridData.length) {
|
|
168
|
-
const t3 = e2.gridData[e2.$rowIndex];
|
|
169
|
-
p(t3, "$editing", false), e2.isEditRow = false;
|
|
170
|
-
}
|
|
171
|
-
const i2 = e2.gridData[t2];
|
|
172
|
-
p(i2, "$editing", true), e2.$lastSaveRowIndex = null, e2.$rowIndex = t2, e2.isEditRow = true, e2.lineEdit.editingCell && (e2.lineEdit.editingCell.row = t2);
|
|
173
|
-
}, saveRow(e2, t2) {
|
|
174
|
-
return new Promise((i2, a2) => {
|
|
175
|
-
const o2 = this;
|
|
176
|
-
setTimeout(function() {
|
|
177
|
-
o2.saveCurrentRow(e2, t2).then((e3) => {
|
|
178
|
-
i2(e3);
|
|
179
|
-
});
|
|
180
|
-
}, 100);
|
|
181
|
-
});
|
|
182
|
-
}, saveCurrentRow(o2, s2) {
|
|
183
|
-
return new Promise((r2, d2) => {
|
|
184
|
-
s2 || (s2 = t.get("_list_code"));
|
|
185
|
-
const p2 = t.get(s2);
|
|
186
|
-
if (p2.lineEdit && p2.lineEdit.editable) {
|
|
187
|
-
if (void 0 === p2.gridData[o2].$editing || false === p2.gridData[o2].$editing)
|
|
188
|
-
return void window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("superGrid.noNeedToSaveRow", { row: o2 + 1 }), type: "warning" });
|
|
189
|
-
if (p2.$rowIndex !== o2 && !a(s2))
|
|
190
|
-
return void window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("superGrid.pleaseSaveLine", { row: p2.$rowIndex + 1 }), type: "warning" });
|
|
191
|
-
if (p2.$lastSaveRowIndex = null, void 0 !== p2.isHasDynamic && false === p2.isHasDynamic && !p2.lineEdit.urlToSaveRow && !n("urlToSaveRow", s2) && !i("saveRow", s2))
|
|
192
|
-
return void window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("superGrid.pleaseSetURLToSaveRowInformation"), type: "warning" });
|
|
193
|
-
if (!p2.canSaveRow)
|
|
194
|
-
return;
|
|
195
|
-
p2.canSaveRow = false;
|
|
196
|
-
const t2 = p2.gridData[o2];
|
|
197
|
-
let c2 = true;
|
|
198
|
-
n("isEnableValidate", s2) && (c2 = p2.options.lineEditOptions.isEnableValidate);
|
|
199
|
-
let h2 = true;
|
|
200
|
-
if (true === c2 && (h2 = g.validator(t2, s2, o2)), true === h2) {
|
|
201
|
-
let a2 = true;
|
|
202
|
-
if (i("beforeSave", s2) && (a2 = p2.pageContext ? p2.options.lineEditOptions.beforeSave.call(this, { row: t2, columns: p2.columns, additionalParamMap: p2.additionalParamMap, pageContext: p2.pageContext, configureObj: p2.configureObj }) : p2.options.lineEditOptions.beforeSave.call(this, t2, p2.columns, p2.additionalParamMap)), void 0 === a2 || true === a2) {
|
|
203
|
-
e(f, "un-edit", { row: t2 });
|
|
204
|
-
const a3 = l(p2);
|
|
205
|
-
let g2;
|
|
206
|
-
if (i("saveRow", s2) && (g2 = p2.pageContext ? p2.options.lineEditOptions.saveRow.call(this, { row: t2, columns: p2.columns, dataTypeMap: p2.$dataTypeMap, dynamicColumnInfo: p2.dynamicColumnInfo, additionalParamMap: a3, mainDefaultValueColumns: p2.mainDefaultValueColumns, pageContext: p2.pageContext, configureObj: p2.configureObj }) : p2.options.lineEditOptions.saveRow.call(this, t2, p2.columns, p2.$dataTypeMap, p2.dynamicColumnInfo, a3, p2.mainDefaultValueColumns)), !g2 && p2.lineEdit && p2.lineEdit.urlToSaveRow) {
|
|
207
|
-
let e2 = p2.lineEdit.urlToSaveRow;
|
|
208
|
-
n("urlToSaveRow", s2) && (e2 = p2.options.lineEditOptions.urlToSaveRow), g2 = window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseURL + e2, t2);
|
|
209
|
-
}
|
|
210
|
-
if (void 0 !== p2.isHasDynamic && true === p2.isHasDynamic && !g2) {
|
|
211
|
-
const e2 = "/common/dynamic-values", i2 = { mainTableName: p2.basicInfo && p2.basicInfo.tableName ? p2.basicInfo.tableName : "", row: t2, dynamicColumnInfo: p2.dynamicColumnInfo, additionalParamMap: a3, dataTypeMap: p2.$dataTypeMap, dynamicServiceName: p2.dynamicServiceName, mainDefaultValueColumns: p2.mainDefaultValueColumns };
|
|
212
|
-
g2 = window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseURL + e2, i2);
|
|
213
|
-
}
|
|
214
|
-
g2 ? g2.then((e2) => {
|
|
215
|
-
this.afterSave(p2, o2, s2, e2, t2).then((e3) => {
|
|
216
|
-
r2(e3);
|
|
217
|
-
}).catch((e3) => {
|
|
218
|
-
d2(e3);
|
|
219
|
-
});
|
|
220
|
-
}).catch((e2) => {
|
|
221
|
-
p2.canSaveRow = true, i("saveError", s2) && p2.options.lineEditOptions.saveError.call(this, t2, p2.columns, o2, e2), d2(e2);
|
|
222
|
-
}) : (p2.canSaveRow = true, d2(u().t("saveRowRequest is undefined")));
|
|
223
|
-
} else
|
|
224
|
-
p2.canSaveRow = true, d2(u().t("superGrid.theReturnValueOfTheBeforesaveCallbackMethodIsFalse"));
|
|
225
|
-
} else
|
|
226
|
-
p2.canSaveRow = true, d2(u().t("imatrixUIMessage.validationFailed"));
|
|
227
|
-
}
|
|
228
|
-
});
|
|
229
|
-
}, afterSave(e2, t2, a2, o2, s2) {
|
|
230
|
-
return new Promise((l2, r2) => {
|
|
231
|
-
e2.isCreateRow = false, e2.canSaveRow = true, e2.$rowIndex = null, e2.isEditRow = false, e2.$lastSaveRowIndex = t2, window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("superGrid.lineSavedSuccessfully", { row: t2 + 1 }), type: "success" }), (void 0 === e2.options.lineEditOptions.aftersaveIsCancelEditState || n("aftersaveIsCancelEditState", a2) && true === e2.options.lineEditOptions.aftersaveIsCancelEditState) && (p(s2, "$editing", false), e2.isEditRow = false), i("saveSuccess", a2) && (e2.pageContext ? e2.options.lineEditOptions.saveSuccess.call(this, { data: o2, columns: e2.columns, rowIndex: t2, row: s2, additionalParamMap: e2.additionalParamMap, pageContext: e2.pageContext, configureObj: e2.configureObj }) : e2.options.lineEditOptions.saveSuccess.call(this, o2, e2.columns, t2, s2, e2.additionalParamMap), e2.options.lineEditOptions.saveSuccess.call(this, o2, e2.columns, t2, s2, e2.additionalParamMap)), Object.assign(e2.orgGridData[t2], o2), Object.assign(e2.gridData[t2], o2), this.refresh(false, true).then(() => {
|
|
232
|
-
(void 0 === e2.options.lineEditOptions.aftersaveIsCreateRow || e2.options.lineEditOptions.aftersaveIsCreateRow) && this.createRow(a2), l2({ rowIndex: t2, listCode: a2 });
|
|
233
|
-
}).catch((e3) => r2(e3));
|
|
234
|
-
});
|
|
235
|
-
}, restoreRow(e2, t2) {
|
|
236
|
-
return new Promise((i2, a2) => {
|
|
237
|
-
this.restoreCurrentRow(e2, t2), i2();
|
|
238
|
-
});
|
|
239
|
-
}, restoreCurrentRow(e2, o2) {
|
|
240
|
-
o2 || (o2 = t.get("_list_code"));
|
|
241
|
-
const s2 = t.get(o2);
|
|
242
|
-
if (s2.lineEdit && s2.lineEdit.editable) {
|
|
243
|
-
if (null !== s2.$rowIndex && s2.$rowIndex !== e2 && !a(o2))
|
|
244
|
-
return void window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("superGrid.pleaseSaveLine", { row: s2.$rowIndex + 1 }), type: "warning" });
|
|
245
|
-
const t2 = null !== s2.$lastSaveRowIndex && s2.$lastSaveRowIndex === e2 && void 0 !== s2.gridData[e2].id;
|
|
246
|
-
let l2 = true;
|
|
247
|
-
if (i("beforeRestoreValidate", o2)) {
|
|
248
|
-
const i2 = s2.isSubTableShowPage, a2 = s2.pagination && s2.pagination.pageSize, o3 = this.isMobile;
|
|
249
|
-
l2 = s2.options.lineEditOptions.beforeRestoreValidate.call(this, { rowIndex: e2, gridData: i2 ? s2.subTableData : s2.gridData, entity: s2.gridData[e2], isMobile: o3, baseURL: this.baseURL, isEditing: !t2, pageGridData: i2 ? s2.gridData : null, pageSize: a2, additionalParamMap: s2.additionalParamMap, pageContext: s2.pageContext, configureObj: s2.configureObj });
|
|
250
|
-
}
|
|
251
|
-
if (void 0 !== l2 && true !== l2)
|
|
252
|
-
return;
|
|
253
|
-
if (true === t2)
|
|
254
|
-
return void window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("superGrid.lineNoNeedToUndoEdit", { row: e2 + 1 }), type: "warning" });
|
|
255
|
-
let r2 = true;
|
|
256
|
-
if (i("beforeRestore", o2)) {
|
|
257
|
-
const i2 = s2.isSubTableShowPage, a2 = s2.pagination && s2.pagination.pageSize, o3 = this.isMobile;
|
|
258
|
-
r2 = s2.options.lineEditOptions.beforeRestore.call(this, { rowIndex: e2, gridData: i2 ? s2.subTableData : s2.gridData, entity: s2.gridData[e2], isMobile: o3, baseURL: window.$vueApp.config.globalProperties.baseURL, isEditing: !t2, pageGridData: i2 ? s2.gridData : null, pageSize: a2, additionalParamMap: s2.additionalParamMap, pageContext: s2.pageContext, configureObj: s2.configureObj });
|
|
259
|
-
}
|
|
260
|
-
if (void 0 === r2 || true === r2) {
|
|
261
|
-
if (s2.orgGridData[e2].id || s2.orgGridData[e2].ID) {
|
|
262
|
-
const t3 = JSON.parse(JSON.stringify(s2.orgGridData[e2]));
|
|
263
|
-
if (void 0 !== s2.isSubTableShowPage && true === s2.isSubTableShowPage) {
|
|
264
|
-
const t4 = (this.currentPage - 1) * this.pageSize + e2;
|
|
265
|
-
s2.subTableData[t4] = s2.gridData[e2];
|
|
266
|
-
}
|
|
267
|
-
window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("superGrid.lineCancelledSuccessfully", { row: e2 + 1 }), type: "success" }), (void 0 === s2.options.lineEditOptions.afterRestoreIsCancelEditState || n("afterRestoreIsCancelEditState", o2) && true === s2.options.lineEditOptions.afterRestoreIsCancelEditState) && (t3.$editing = false, s2.isEditRow = false), this.restoreCurrentRowTimer = setTimeout(() => {
|
|
268
|
-
s2.gridData[e2] = t3;
|
|
269
|
-
}, 100);
|
|
270
|
-
} else
|
|
271
|
-
this.deleteRow(e2, o2, true);
|
|
272
|
-
s2.$rowIndex = null, s2.isCreateRow = false, i("afterRestore", o2) && (s2.pageContext ? s2.options.lineEditOptions.afterRestore.call(this, { rowIndex: e2, row: s2.orgGridData[e2], additionalParamMap: s2.additionalParamMap, pageContext: s2.pageContext, configureObj: s2.configureObj }) : s2.options.lineEditOptions.afterRestore.call(this, e2, s2.orgGridData[e2], s2.additionalParamMap));
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
}, deleteRow(e2, a2, o2) {
|
|
276
|
-
return new Promise((s2, n2) => {
|
|
277
|
-
var _a, _b;
|
|
278
|
-
a2 || (a2 = t.get("_list_code"));
|
|
279
|
-
const l2 = t.get(a2);
|
|
280
|
-
let r2 = true;
|
|
281
|
-
if (i("beforeDelete", a2)) {
|
|
282
|
-
const t2 = l2.isSubTableShowPage, i2 = l2.pagination && l2.pagination.pageSize, a3 = t2 ? l2.subTableData : l2.gridData, o3 = this.isMobile;
|
|
283
|
-
r2 = l2.pageContext ? l2.options.lineEditOptions.beforeDelete.call(this, { rowIndex: e2, row: l2.gridData[e2], gridData: a3, isMobile: o3, baseURL: this.baseURL, totalData: t2 ? l2.gridData : null, pageSize: i2, additionalParamMap: l2.additionalParamMap, pageContext: l2.pageContext, configureObj: l2.configureObj }) : l2.options.lineEditOptions.beforeDelete.call(this, e2, l2.gridData[e2], a3, o3, this.baseURL, t2 ? l2.gridData : null, i2, l2.additionalParamMap);
|
|
284
|
-
}
|
|
285
|
-
if (void 0 === r2 || true === r2) {
|
|
286
|
-
if (!this.wfSubTableDeleteRowConditionParse(l2, this.parentFormData, l2.gridData[e2]))
|
|
287
|
-
return;
|
|
288
|
-
if (void 0 !== l2.isSubTableShowPage && true === l2.isSubTableShowPage) {
|
|
289
|
-
l2.isDelete = true;
|
|
290
|
-
const t2 = (this.currentPage - 1) * this.pageSize + e2;
|
|
291
|
-
l2.subTableData.splice(t2, 1);
|
|
292
|
-
} else
|
|
293
|
-
l2.gridData.splice(e2, 1), l2.orgGridData.splice(e2, 1);
|
|
294
|
-
if (l2.$lastSaveRowIndex = null, l2.$rowIndex = null, l2.isEditRow = false, window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("superGrid.deleteSuccessful"), type: "success" }), 0 === l2.gridData.length && l2.options && null !== l2.options.isDefaultShowEdit && void 0 !== l2.options.isDefaultShowEdit && true === l2.options.isDefaultShowEdit && this.createRow(a2), l2.isMulitiSelect && ((_b = (_a = l2.superGrid) == null ? void 0 : _a.clearSelection) == null ? void 0 : _b.call(_a)), l2.isCreateRow = false, (void 0 === o2 || !o2) && i("afterDelete", a2)) {
|
|
295
|
-
const t2 = l2.isSubTableShowPage, i2 = l2.pagination && l2.pagination.pageSize, a3 = this.isMobile;
|
|
296
|
-
l2.pageContext ? l2.options.lineEditOptions.afterDelete.call(this, { rowIndex: e2, row: l2.orgGridData[e2], gridData: t2 ? l2.subTableData : l2.gridData, isMobile: a3, baseURL: this.baseURL, totalData: t2 ? l2.gridData : null, pageSize: i2, additionalParamMap: l2.additionalParamMap, pageContext: l2.pageContext, configureObj: l2.configureObj }) : l2.options.lineEditOptions.afterDelete.call(this, e2, l2.orgGridData[e2], t2 ? l2.subTableData : l2.gridData, a3, this.baseURL, t2 ? l2.gridData : null, i2, l2.additionalParamMap);
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
s2();
|
|
300
|
-
});
|
|
301
|
-
}, getDeleteIndexes(e2, t2, i2) {
|
|
302
|
-
const a2 = [];
|
|
303
|
-
return e2.forEach((e3, o2) => {
|
|
304
|
-
if (a2.length !== t2.length) {
|
|
305
|
-
for (const s2 of t2)
|
|
306
|
-
if (e3[i2] === s2[i2]) {
|
|
307
|
-
a2.push(o2);
|
|
308
|
-
break;
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
}), a2.sort((e3, t3) => t3 - e3);
|
|
312
|
-
}, batchDeleteSubTableRowApi(e2, a2, o2) {
|
|
313
|
-
return new Promise((s2, n2) => {
|
|
314
|
-
var _a, _b;
|
|
315
|
-
if (!(a2 = a2 || []).length)
|
|
316
|
-
return window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("imatrixUIMessage.pleaseSelectDeleteData"), type: "warning" }), void s2();
|
|
317
|
-
e2 = e2 || t.get("_list_code");
|
|
318
|
-
const l2 = t.get(e2);
|
|
319
|
-
let r2 = true;
|
|
320
|
-
if (i("beforeDelete", e2)) {
|
|
321
|
-
const e3 = l2.isSubTableShowPage, t2 = l2.pagination && l2.pagination.pageSize, i2 = e3 ? l2.subTableData : l2.gridData, o3 = this.isMobile;
|
|
322
|
-
r2 = l2.pageContext ? l2.options.lineEditOptions.beforeDelete.call(this, { deleteRows: a2, gridData: i2, isMobile: o3, baseURL: this.baseURL, totalData: e3 ? l2.gridData : null, pageSize: t2, additionalParamMap: l2.additionalParamMap, pageContext: l2.pageContext, configureObj: l2.configureObj }) : l2.options.lineEditOptions.beforeDelete.call(this, a2, i2, o3, this.baseURL, e3 ? l2.gridData : null, t2, l2.additionalParamMap);
|
|
323
|
-
}
|
|
324
|
-
if (void 0 === r2 || true === r2) {
|
|
325
|
-
let t2 = [];
|
|
326
|
-
if (void 0 !== l2.isSubTableShowPage && true === l2.isSubTableShowPage) {
|
|
327
|
-
l2.isDelete = true, t2 = this.getDeleteIndexes(l2.subTableData, a2, o2);
|
|
328
|
-
for (const e3 of t2) {
|
|
329
|
-
if (!this.wfSubTableDeleteRowConditionParse(l2, this.parentFormData, l2.subTableData[e3]))
|
|
330
|
-
return;
|
|
331
|
-
l2.subTableData.splice(e3, 1);
|
|
332
|
-
}
|
|
333
|
-
} else {
|
|
334
|
-
t2 = this.getDeleteIndexes(l2.gridData, a2, o2);
|
|
335
|
-
for (const e3 of t2) {
|
|
336
|
-
if (!this.wfSubTableDeleteRowConditionParse(l2, this.parentFormData, l2.gridData[e3]))
|
|
337
|
-
return;
|
|
338
|
-
l2.gridData.splice(e3, 1), l2.orgGridData.splice(e3, 1);
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
if (l2.$lastSaveRowIndex = null, l2.$rowIndex = null, l2.isEditRow = false, window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("superGrid.deleteSuccessful"), type: "success" }), 0 === l2.gridData.length && l2.options && null !== l2.options.isDefaultShowEdit && void 0 !== l2.options.isDefaultShowEdit && true === l2.options.isDefaultShowEdit && this.createRow(e2), l2.isMulitiSelect && ((_b = (_a = l2.superGrid) == null ? void 0 : _a.clearSelection) == null ? void 0 : _b.call(_a)), l2.isCreateRow = false, (void 0 === isRestore || !isRestore) && i("afterDelete", e2)) {
|
|
342
|
-
const e3 = l2.isSubTableShowPage, t3 = l2.pagination && l2.pagination.pageSize, i2 = this.isMobile;
|
|
343
|
-
l2.pageContext ? l2.options.lineEditOptions.afterDelete.call(this, { deleteRows: a2, gridData: e3 ? l2.subTableData : l2.gridData, isMobile: i2, baseURL: this.baseURL, totalData: e3 ? l2.gridData : null, pageSize: t3, additionalParamMap: l2.additionalParamMap, pageContext: l2.pageContext, configureObj: l2.configureObj }) : l2.options.lineEditOptions.afterDelete.call(this, a2, e3 ? l2.subTableData : l2.gridData, i2, this.baseURL, e3 ? l2.gridData : null, t3, l2.additionalParamMap);
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
s2();
|
|
347
|
-
});
|
|
348
|
-
}, focus(e2, t2) {
|
|
349
|
-
r(e2, t2);
|
|
350
|
-
}, getGridData(e2) {
|
|
351
|
-
e2 || (e2 = t.get("_list_code"));
|
|
352
|
-
const i2 = t.get(e2);
|
|
353
|
-
return i2.isSubTableShowPage ? i2.subTableData : i2.gridData;
|
|
354
|
-
}, getColumns(e2) {
|
|
355
|
-
e2 || (e2 = t.get("_list_code"));
|
|
356
|
-
return t.get(e2).columns;
|
|
357
|
-
}, getPagination(e2) {
|
|
358
|
-
e2 || (e2 = t.get("_list_code"));
|
|
359
|
-
return t.get(e2).pagination;
|
|
360
|
-
}, getOptionsValueSet(e2) {
|
|
361
|
-
const i2 = {};
|
|
362
|
-
e2 || (e2 = t.get("_list_code"));
|
|
363
|
-
return t.get(e2).columns.forEach((e3) => {
|
|
364
|
-
const t2 = e3.prop;
|
|
365
|
-
!d(e3) && e3.valueSet && e3.valueSet.length > 0 && (i2[t2] = e3.valueSet);
|
|
366
|
-
}), i2;
|
|
367
|
-
}, getTableSelectOptions(e2) {
|
|
368
|
-
const i2 = {};
|
|
369
|
-
e2 || (e2 = t.get("_list_code"));
|
|
370
|
-
return t.get(e2).columns.forEach((e3) => {
|
|
371
|
-
const t2 = e3.prop;
|
|
372
|
-
!d(e3) && e3.valueSet && e3.valueSet.length > 0 && (i2[t2] = { options: e3.valueSet, column: e3 });
|
|
373
|
-
}), i2;
|
|
374
|
-
}, restoreGridEdit(i2) {
|
|
375
|
-
i2 || (i2 = t.get("_list_code"));
|
|
376
|
-
const a2 = t.get(i2);
|
|
377
|
-
if (a2.options && a2.options.isFormSubTable) {
|
|
378
|
-
let t2 = [];
|
|
379
|
-
if (t2 = a2.isSubTableShowPage ? a2.subTableData : a2.gridData, t2 && t2.length > 0)
|
|
380
|
-
for (let i3 = 0; i3 < t2.length; i3++) {
|
|
381
|
-
const a3 = t2[i3];
|
|
382
|
-
if (void 0 !== a3.$editing && true === a3.$editing) {
|
|
383
|
-
p(a3, "$editing", false), e(f, "un-edit", { row: a3 });
|
|
384
|
-
break;
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
}, closePageDialog(e2) {
|
|
389
|
-
if (this.jumpPageSetting, this.jumpPageSetting) {
|
|
390
|
-
const i2 = t.get(this.code), a2 = this.jumpPageSetting.closeEvent, o2 = this.jumpPageSetting.row;
|
|
391
|
-
let s2;
|
|
392
|
-
if (i2.options.eventCallBack && a2 && null !== a2 && i2.options.eventCallBack[a2] && (s2 = i2.options.eventCallBack[a2]), s2) {
|
|
393
|
-
const t2 = { params: i2.additionalParamMap, additionalParamMap: i2.additionalParamMap, entity: o2 };
|
|
394
|
-
e2 && (t2.eventParams = { popEntity: e2.entity, popPageCode: e2.pageCode, pageCode: this.pageCode }), s2.call(this, t2), e2.jumpInfo && "closeWindowAndRefresh" === e2.jumpInfo.successOperation && this.refresh();
|
|
395
|
-
}
|
|
396
|
-
const n2 = this.jumpPageSetting.isRefreshWhenClosePopup;
|
|
397
|
-
if (void 0 !== n2 && true === n2) {
|
|
398
|
-
const e3 = t.get(this.code);
|
|
399
|
-
this.search(e3.searchForm);
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
this.isShowPageDialog = false, this.jumpPageSetting = null;
|
|
403
|
-
}, updateValues(e2, i2, a2) {
|
|
404
|
-
const o2 = t.get(this.code), s2 = a2;
|
|
405
|
-
if (null != s2 && s2 < this.gridData.length) {
|
|
406
|
-
const t2 = false === this.isSql || o2.options && (void 0 !== o2.options.isAdministerListView && true === o2.options.isAdministerListView || void 0 !== o2.options.isFormSubTable && true === o2.options.isFormSubTable), a3 = this.tableName;
|
|
407
|
-
m(e2, i2, this.jumpPageSetting, this.gridData[s2], a3, !t2);
|
|
408
|
-
const n2 = this.jumpPageSetting && this.jumpPageSetting.updateValueEvent ? this.jumpPageSetting.updateValueEvent : null;
|
|
409
|
-
let l2;
|
|
410
|
-
o2.options.eventCallBack && n2 && null !== n2 && o2.options.eventCallBack[n2] && (l2 = o2.options.eventCallBack[n2]), l2 && l2.call(this, { sourceModel: e2, sourceTableName: i2, jumpPageSetting: this.jumpPageSetting, entity: this.gridData[s2], targetTableName: a3, isNeedReplaceFieldName: !t2, additionalParamMap: o2.additionalParamMap });
|
|
411
|
-
}
|
|
412
|
-
}, refreshChildData(e2, i2, a2) {
|
|
413
|
-
const o2 = t.get(e2);
|
|
414
|
-
null == a2 || false === a2 ? (o2.gridData = i2, this.gridData = i2) : (o2.subTableData = i2, this.subTableData = i2);
|
|
415
|
-
}, getDefaultValueColumns(e2) {
|
|
416
|
-
const i2 = {}, a2 = t.get(e2).defaultValueColumns;
|
|
417
|
-
return a2 && a2.length > 0 && a2.forEach((e3) => {
|
|
418
|
-
i2[e3.prop] = e3.defaultValue;
|
|
419
|
-
}), i2;
|
|
420
|
-
}, reloadSubTableData(e2) {
|
|
421
|
-
t.get(e2).options.subTableData = null, this.fetchListData();
|
|
422
|
-
}, dynamicControlTableEdit(e2, i2, a2) {
|
|
423
|
-
const o2 = t.get(a2);
|
|
424
|
-
if (!i2)
|
|
425
|
-
return;
|
|
426
|
-
let s2 = {};
|
|
427
|
-
o2.options.customRules && (s2 = JSON.parse(JSON.stringify(o2.options.customRules))), i2.forEach((e3) => {
|
|
428
|
-
const t2 = JSON.parse(JSON.stringify(e3)), i3 = e3.name;
|
|
429
|
-
let a3;
|
|
430
|
-
s2[i3] || (s2[i3] = {}), a3 = s2[i3].rules, t2.rules && (a3 || (a3 = []), a3 = a3.concat(t2.rules)), t2.rules = a3, o2.options.customRules || (o2.options.customRules = {}), t2.beforeValidate = e3.beforeValidate, o2.options.customRules[i3] = t2;
|
|
431
|
-
});
|
|
432
|
-
}, doLayout(e2, i2) {
|
|
433
|
-
i2 || (i2 = this.code);
|
|
434
|
-
const a2 = t.get(i2).hiddenColumns;
|
|
435
|
-
if (e2 && e2.length > 0) {
|
|
436
|
-
let t2 = a2;
|
|
437
|
-
t2 || (t2 = []), 0 === t2.length ? t2 = e2 : e2.forEach((e3) => {
|
|
438
|
-
t2.indexOf(e3) < 0 && t2.push(e3);
|
|
439
|
-
}), this.options.hiddenColumns = t2;
|
|
440
|
-
} else
|
|
441
|
-
this.options.hiddenColumns = a2;
|
|
442
|
-
this.$refs && this.$refs.superGrid && this.$refs.superGrid.doLayout();
|
|
443
|
-
}, getCustomFunc(e2) {
|
|
444
|
-
window.$PageUtil.getCustomFunc(this.pageContext, e2);
|
|
445
|
-
}, addRequiredClass(e2, i2, a2, o2) {
|
|
446
|
-
const s2 = t.get(i2);
|
|
447
|
-
this.isFormSubTable && this.isSubTableShowPage && (a2 -= 1, o2 !== this.currentPage && (this.currentPage = o2, this.changePage(o2))), s2.gridData[a2].validateErrorField = e2;
|
|
448
|
-
}, handleSearch(e2, t2) {
|
|
449
|
-
const i2 = this.packageSearchParamNormalType(e2, t2);
|
|
450
|
-
this.doSearch(i2);
|
|
451
|
-
}, wfSubTableDeleteRowConditionParse: (e2, t2, i2) => {
|
|
452
|
-
var _a;
|
|
453
|
-
return false !== o(e2, t2, i2, (_a = e2.options.actionPermission) == null ? void 0 : _a.deleteCondition) || (window.$vueApp.config.globalProperties.$message({ showClose: true, message: u().t("superGrid.rowCanntDeleteTip"), type: "warning" }), false);
|
|
454
|
-
} }, C = { data: () => ({ toolbarFieldParam: null, showSearch: false, isMobile: false, baseURL: "", currentPage: 1, pageSize: 10, code: "", pageCode: "", jumpPageSetting: null, isShowPageDialog: false, gridData: [], subTableData: [], searchForm: [], options: {}, lineEdit: null, loaded: false, configureObj: {}, additionalParamMap: {}, basicInfo: {}, dynamicColumnInfo: {}, $dataTypeMap: {}, mainDefaultValueColumns: [], dynamicServiceName: "", isHasDynamic: false, isMulitiSelect: false, sql: false, restoreCurrentRowTimer: null }), methods: { ...v } };
|
|
455
|
-
export {
|
|
456
|
-
C as apisMixin,
|
|
457
|
-
v as default
|
|
458
|
-
};
|