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