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