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,829 +0,0 @@
|
|
|
1
|
-
import * as Vue from 'vue'
|
|
2
|
-
import { analysisCondition, analysisValue, getEntityFieldValue, setEntityFieldValue } from './util'
|
|
3
|
-
import { getSystemFrontendUrl, getUuidv4, isMobileBrowser } from './common-util'
|
|
4
|
-
// 解析初始化条件,api方法;additionalParamMap是上个页面传过来的附加参数集合
|
|
5
|
-
export function initialization(
|
|
6
|
-
jumpPage,
|
|
7
|
-
entity,
|
|
8
|
-
isSql,
|
|
9
|
-
additionalParamerter,
|
|
10
|
-
contextParameter,
|
|
11
|
-
tableName,
|
|
12
|
-
parentFormData,
|
|
13
|
-
gridParams
|
|
14
|
-
) {
|
|
15
|
-
const result = {}
|
|
16
|
-
if (jumpPage) {
|
|
17
|
-
// 页面附加参数
|
|
18
|
-
result.visible = true
|
|
19
|
-
let additionalParameterMap = {}
|
|
20
|
-
if (additionalParamerter && typeof additionalParamerter === 'string' && additionalParamerter !== '') {
|
|
21
|
-
additionalParameterMap = JSON.parse(additionalParamerter)
|
|
22
|
-
} else if (additionalParamerter && typeof additionalParamerter === 'object') {
|
|
23
|
-
additionalParameterMap = additionalParamerter
|
|
24
|
-
}
|
|
25
|
-
// 环境变量,例如:当前用户id、当前用户登录名等
|
|
26
|
-
let contextParameterMap = {}
|
|
27
|
-
if (contextParameter && typeof contextParameter === 'string' && contextParameter !== '') {
|
|
28
|
-
contextParameterMap = JSON.parse(contextParameter)
|
|
29
|
-
} else if (contextParameter && typeof contextParameter === 'object') {
|
|
30
|
-
contextParameterMap = contextParameter
|
|
31
|
-
}
|
|
32
|
-
if (Array.isArray(jumpPage)) {
|
|
33
|
-
for (let i = 0; i < jumpPage.length; i++) {
|
|
34
|
-
let enable = false
|
|
35
|
-
const jumpPageItem = jumpPage[i]
|
|
36
|
-
if (jumpPageItem.jumpConditionType === 'none') {
|
|
37
|
-
enable = true
|
|
38
|
-
} else if (jumpPageItem.jumpConditionType === 'config') {
|
|
39
|
-
if (jumpPageItem.conditions && jumpPageItem.conditions.length > 0) {
|
|
40
|
-
const visible = analysisCondition(
|
|
41
|
-
JSON.stringify(jumpPageItem.conditions),
|
|
42
|
-
entity,
|
|
43
|
-
additionalParameterMap,
|
|
44
|
-
contextParameterMap,
|
|
45
|
-
isSql,
|
|
46
|
-
tableName,
|
|
47
|
-
parentFormData,
|
|
48
|
-
gridParams.pageContext
|
|
49
|
-
)
|
|
50
|
-
enable = visible ? true : false
|
|
51
|
-
} else {
|
|
52
|
-
enable = true
|
|
53
|
-
}
|
|
54
|
-
} else if (jumpPageItem.jumpConditionType === 'customFunc') {
|
|
55
|
-
const param = {
|
|
56
|
-
row: entity,
|
|
57
|
-
additionalParamMap: gridParams.additionalParamMap
|
|
58
|
-
}
|
|
59
|
-
const funcResult = gridParams.options['eventCallBack'][jumpPageItem.customFunc].call(this, param)
|
|
60
|
-
enable = funcResult ? true : false
|
|
61
|
-
}
|
|
62
|
-
if (enable) {
|
|
63
|
-
const jumpPageResult = initialization(
|
|
64
|
-
jumpPageItem.jumpPageSetting,
|
|
65
|
-
entity,
|
|
66
|
-
isSql,
|
|
67
|
-
additionalParamerter,
|
|
68
|
-
contextParameter,
|
|
69
|
-
tableName,
|
|
70
|
-
parentFormData,
|
|
71
|
-
gridParams
|
|
72
|
-
)
|
|
73
|
-
if (jumpPageResult && jumpPageResult.visible) {
|
|
74
|
-
const res = { ...jumpPageResult }
|
|
75
|
-
res.jumpPageSetting = JSON.stringify(jumpPageItem.jumpPageSetting)
|
|
76
|
-
res.jumpPageItem = jumpPageItem
|
|
77
|
-
return res
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
return { visible: false }
|
|
82
|
-
} else {
|
|
83
|
-
result.displayTextJudge = jumpPage.displayTextJudge
|
|
84
|
-
if (jumpPage.displayTextJudge) {
|
|
85
|
-
// 例如:${obj.menu_code}-#-#${input.---}-#-#${context.currentTransactor}
|
|
86
|
-
const label = analysisValue(
|
|
87
|
-
jumpPage.displayText,
|
|
88
|
-
entity,
|
|
89
|
-
additionalParameterMap,
|
|
90
|
-
contextParameterMap,
|
|
91
|
-
gridParams.pageContext
|
|
92
|
-
)
|
|
93
|
-
result.label = label
|
|
94
|
-
}
|
|
95
|
-
if (jumpPage.icon) {
|
|
96
|
-
result.icon = jumpPage.icon
|
|
97
|
-
}
|
|
98
|
-
if (jumpPage.linkTips) {
|
|
99
|
-
result.title = jumpPage.linkTips
|
|
100
|
-
}
|
|
101
|
-
if (jumpPage.buttonDisplayConditionsList) {
|
|
102
|
-
let displayJudgment = ''
|
|
103
|
-
if (jumpPage.buttonDisplayConditionsList) {
|
|
104
|
-
displayJudgment = JSON.stringify(jumpPage.buttonDisplayConditionsList)
|
|
105
|
-
}
|
|
106
|
-
if (displayJudgment && displayJudgment !== '') {
|
|
107
|
-
const visible = analysisCondition(
|
|
108
|
-
displayJudgment,
|
|
109
|
-
entity,
|
|
110
|
-
additionalParameterMap,
|
|
111
|
-
contextParameterMap,
|
|
112
|
-
isSql,
|
|
113
|
-
tableName,
|
|
114
|
-
parentFormData,
|
|
115
|
-
gridParams.pageContext
|
|
116
|
-
)
|
|
117
|
-
result.visible = visible
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
return result
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* 弹框方法
|
|
127
|
-
* @param {*} pageSetting 格式为:
|
|
128
|
-
* {
|
|
129
|
-
* jumpPageSetting:{
|
|
130
|
-
* jumpPageUrl:'弹出的页面编码或路径',
|
|
131
|
-
* jumpPageAdditional:{附加参数},
|
|
132
|
-
* isNeedId:true/false 是否拼接id参数默认是true,
|
|
133
|
-
* jumpPageOpenMode:'popup/newTab/refresh 页面显示方式'
|
|
134
|
-
* jumpPageWidth: '500弹框宽度',
|
|
135
|
-
* jumpPageHeight: '600弹框高度'
|
|
136
|
-
* },
|
|
137
|
-
* system:{frontendUrl:'http://localhost:8080/dsc',code:xxx},
|
|
138
|
-
* dataId: 1,
|
|
139
|
-
* entity:{业务实体信息},
|
|
140
|
-
* additionalParamMap:{上个页面传过来的附加参数},
|
|
141
|
-
* ids:[1,2],
|
|
142
|
-
* parentFormData: {父表单实体,用于解析${parent.xxx}参数}
|
|
143
|
-
* }
|
|
144
|
-
*/
|
|
145
|
-
export function openPage(pageSetting) {
|
|
146
|
-
if (pageSetting) {
|
|
147
|
-
const jumpPageSetting = pageSetting.jumpPageSetting
|
|
148
|
-
const system = pageSetting.system
|
|
149
|
-
const dataId = pageSetting.dataId
|
|
150
|
-
const ids = pageSetting.ids
|
|
151
|
-
const buttonCode = pageSetting.buttonCode
|
|
152
|
-
// 上个页面传过来的附加参数
|
|
153
|
-
const additionalParamMap = pageSetting.additionalParamMap
|
|
154
|
-
const entity = pageSetting.entity
|
|
155
|
-
const parentFormData = pageSetting.parentFormData
|
|
156
|
-
jumpToPage(jumpPageSetting, system, dataId, entity, additionalParamMap, ids, buttonCode, parentFormData).then(
|
|
157
|
-
(openPageParams) => {
|
|
158
|
-
let jumpMode
|
|
159
|
-
if (openPageParams) {
|
|
160
|
-
jumpMode = openPageParams.jumpMode
|
|
161
|
-
}
|
|
162
|
-
if (openPageParams) {
|
|
163
|
-
const popPageSetting = openPageParams
|
|
164
|
-
const path = popPageSetting._path
|
|
165
|
-
if (jumpMode === 'popup') {
|
|
166
|
-
let jumpPageWidth
|
|
167
|
-
let jumpPageHeight
|
|
168
|
-
|
|
169
|
-
if (openPageParams.jumpPageWidth) {
|
|
170
|
-
jumpPageWidth = openPageParams.jumpPageWidth
|
|
171
|
-
} else {
|
|
172
|
-
jumpPageWidth = window.innerWidth - 150
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
if (openPageParams.jumpPageHeight) {
|
|
176
|
-
jumpPageHeight = openPageParams.jumpPageHeight
|
|
177
|
-
} else {
|
|
178
|
-
jumpPageHeight = window.innerHeight - 150
|
|
179
|
-
}
|
|
180
|
-
// 弹出页面
|
|
181
|
-
window.open(
|
|
182
|
-
path,
|
|
183
|
-
'',
|
|
184
|
-
`height=` +
|
|
185
|
-
jumpPageHeight +
|
|
186
|
-
`,width=` +
|
|
187
|
-
jumpPageWidth +
|
|
188
|
-
`,top=100,left=100,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no`
|
|
189
|
-
)
|
|
190
|
-
} else if (jumpMode === 'refresh') {
|
|
191
|
-
window.location.href = path
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
)
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
// 附加参数中是否设值了ID参数。如果添加了id参数,则不需要自动添加dataId参数
|
|
200
|
-
function isHasIdAdditionalParam(jumpPageAdditional) {
|
|
201
|
-
if (jumpPageAdditional && jumpPageAdditional.length > 0) {
|
|
202
|
-
for (let i = 0; i < jumpPageAdditional.length; i++) {
|
|
203
|
-
const item = jumpPageAdditional[i]
|
|
204
|
-
if (item.paramName && (item.paramName === 'id' || item.paramName === 'ID')) {
|
|
205
|
-
return true
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
// 页面跳转处理,api方法;additionalParamMap是上个页面传过来的附加参数集合;
|
|
212
|
-
// isFromChart 是否是从chart方面来,如果是,则弹窗和刷新页面都用winows方式打开
|
|
213
|
-
export function jumpToPage(
|
|
214
|
-
jumpPageSetting,
|
|
215
|
-
system,
|
|
216
|
-
dataId,
|
|
217
|
-
entity,
|
|
218
|
-
additionalParamMap,
|
|
219
|
-
ids,
|
|
220
|
-
buttonCode,
|
|
221
|
-
parentFormData
|
|
222
|
-
) {
|
|
223
|
-
return new Promise((resolve, reject) => {
|
|
224
|
-
if (jumpPageSetting && typeof jumpPageSetting === 'string' && jumpPageSetting !== '') {
|
|
225
|
-
jumpPageSetting = JSON.parse(jumpPageSetting)
|
|
226
|
-
}
|
|
227
|
-
if (!jumpPageSetting.jumpPageUrl) {
|
|
228
|
-
resolve()
|
|
229
|
-
}
|
|
230
|
-
getSystem(system, jumpPageSetting.jumpPageUrl, jumpPageSetting.isNewPage, jumpPageSetting)
|
|
231
|
-
.then((system) => {
|
|
232
|
-
if (
|
|
233
|
-
(jumpPageSetting.jumpPageAdditional && jumpPageSetting.jumpPageAdditional.length > 0) ||
|
|
234
|
-
(jumpPageSetting.jumpPageTitle && jumpPageSetting.jumpPageTitle.indexOf('${') >= 0)
|
|
235
|
-
) {
|
|
236
|
-
// 发送请求,获取附加参数,并存入缓存
|
|
237
|
-
const paramPath =
|
|
238
|
-
window.$vueApp.config.globalProperties.baseAPI + '/component/super-pages/parsing-additional-parameters'
|
|
239
|
-
const paramMap = {}
|
|
240
|
-
paramMap.jumpPageAdditional = JSON.stringify(jumpPageSetting.jumpPageAdditional)
|
|
241
|
-
paramMap.jumpPageTitle = jumpPageSetting.jumpPageTitle
|
|
242
|
-
// 表单页面
|
|
243
|
-
paramMap.entity = entity
|
|
244
|
-
// 把pageData封装到附加参数中
|
|
245
|
-
let pageData = jumpPageSetting._pageData
|
|
246
|
-
if (!pageData) {
|
|
247
|
-
pageData = {}
|
|
248
|
-
}
|
|
249
|
-
if (!additionalParamMap) {
|
|
250
|
-
additionalParamMap = {}
|
|
251
|
-
}
|
|
252
|
-
Object.assign(additionalParamMap, pageData)
|
|
253
|
-
paramMap.additionalParamMap = additionalParamMap
|
|
254
|
-
console.log('paramMap.parentFormData', parentFormData)
|
|
255
|
-
paramMap.parentFormData = parentFormData
|
|
256
|
-
const isHasIdParam = isHasIdAdditionalParam(jumpPageSetting.jumpPageAdditional)
|
|
257
|
-
|
|
258
|
-
window.$vueApp.config.globalProperties.$http.post(paramPath, paramMap).then((result) => {
|
|
259
|
-
// 新页面设计中page信息当作附加参数传达跳转到的页面
|
|
260
|
-
getParamMapWithPageData(jumpPageSetting, result)
|
|
261
|
-
// 存入缓存
|
|
262
|
-
jumpToPageTwo(jumpPageSetting, system, dataId, ids, buttonCode, isHasIdParam).then((openPageParams) => {
|
|
263
|
-
// openPageParams:xxx弹框打开页面时需要的参数 或 刷新页面时路由查询参数
|
|
264
|
-
resolve(openPageParams)
|
|
265
|
-
})
|
|
266
|
-
})
|
|
267
|
-
} else {
|
|
268
|
-
// 新页面设计中page信息当作附加参数传达跳转到的页面
|
|
269
|
-
getParamMapWithPageData(jumpPageSetting)
|
|
270
|
-
jumpToPageTwo(jumpPageSetting, system, dataId, ids, buttonCode, false).then((openPageParams) => {
|
|
271
|
-
// openPageParams:xxx弹框打开页面时需要的参数 或 刷新页面时路由查询参数
|
|
272
|
-
resolve(openPageParams)
|
|
273
|
-
})
|
|
274
|
-
}
|
|
275
|
-
})
|
|
276
|
-
.catch((error) => {
|
|
277
|
-
console.log(error)
|
|
278
|
-
reject(error)
|
|
279
|
-
})
|
|
280
|
-
})
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
// 新页面设计中page信息当作附加参数传达跳转到的页面
|
|
284
|
-
function getParamMapWithPageData(jumpPageSetting, paramResult) {
|
|
285
|
-
let pageData = jumpPageSetting._pageData
|
|
286
|
-
if (!pageData) {
|
|
287
|
-
pageData = {}
|
|
288
|
-
}
|
|
289
|
-
if (!paramResult) {
|
|
290
|
-
paramResult = {}
|
|
291
|
-
}
|
|
292
|
-
if (jumpPageSetting._pageData && Object.keys(jumpPageSetting._pageData).length > 0) {
|
|
293
|
-
// 表示新页面中page数据需要作为跳转页面的附加参数
|
|
294
|
-
if (!paramResult.uuid) {
|
|
295
|
-
paramResult.uuid = getUuidv4()
|
|
296
|
-
}
|
|
297
|
-
pageData = jumpPageSetting._pageData
|
|
298
|
-
}
|
|
299
|
-
if (!paramResult.paramMap) {
|
|
300
|
-
paramResult.paramMap = {}
|
|
301
|
-
}
|
|
302
|
-
const paramMap = { ...pageData, ...paramResult.paramMap }
|
|
303
|
-
let paramStoreId = ''
|
|
304
|
-
if (paramResult && paramResult.uuid) {
|
|
305
|
-
paramStoreId = paramResult.uuid + '_additionalParamMap'
|
|
306
|
-
window.sessionStorage.setItem(paramStoreId, JSON.stringify(paramMap))
|
|
307
|
-
}
|
|
308
|
-
jumpPageSetting.paramStoreId = paramStoreId
|
|
309
|
-
// 解析标题的值
|
|
310
|
-
if (paramResult && paramResult.jumpPageTitle) {
|
|
311
|
-
// 格式如:${obj.ID}aasdfd${obj.name}
|
|
312
|
-
jumpPageSetting.jumpPageTitle = paramResult.jumpPageTitle
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
function getSystem(system, jumpPageUrl, isNewPage, jumpPageSetting) {
|
|
317
|
-
return new Promise((resolve, reject) => {
|
|
318
|
-
if (isFullPath(jumpPageUrl)) {
|
|
319
|
-
resolve(null)
|
|
320
|
-
} else {
|
|
321
|
-
if (
|
|
322
|
-
!system ||
|
|
323
|
-
system === null ||
|
|
324
|
-
(jumpPageSetting.jumpSystemCode && jumpPageSetting.jumpSystemCode !== system.code)
|
|
325
|
-
) {
|
|
326
|
-
if (jumpPageUrl.indexOf('page:') === 0) {
|
|
327
|
-
const pageCode = jumpPageUrl.substring(jumpPageUrl.indexOf('page:') + 'page:'.length)
|
|
328
|
-
const path =
|
|
329
|
-
window.$vueApp.config.globalProperties.baseAPI +
|
|
330
|
-
'/component/business-systems/with-page-codes/' +
|
|
331
|
-
pageCode +
|
|
332
|
-
'?isNewPage=' +
|
|
333
|
-
isNewPage
|
|
334
|
-
window.$vueApp.config.globalProperties.$http
|
|
335
|
-
.get(path)
|
|
336
|
-
.then((data) => {
|
|
337
|
-
resolve(data)
|
|
338
|
-
})
|
|
339
|
-
.catch((error) => {
|
|
340
|
-
reject(error)
|
|
341
|
-
})
|
|
342
|
-
} else {
|
|
343
|
-
// 则根据当前系统编码获得系统
|
|
344
|
-
let systemCode = window.$vueApp.config.globalProperties.customSystem
|
|
345
|
-
if (!systemCode) {
|
|
346
|
-
systemCode = window.$vueApp.config.globalProperties.systemCode
|
|
347
|
-
}
|
|
348
|
-
const path = window.$vueApp.config.globalProperties.baseAPI + '/component/business-systems/' + systemCode
|
|
349
|
-
window.$vueApp.config.globalProperties.$http
|
|
350
|
-
.get(path)
|
|
351
|
-
.then((data) => {
|
|
352
|
-
resolve(data)
|
|
353
|
-
})
|
|
354
|
-
.catch((error) => {
|
|
355
|
-
reject(error)
|
|
356
|
-
})
|
|
357
|
-
}
|
|
358
|
-
} else {
|
|
359
|
-
resolve(system)
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
})
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
// 表示是全路径
|
|
366
|
-
function isFullPath(path) {
|
|
367
|
-
return path.indexOf('http:') === 0 || path.indexOf('https:') === 0
|
|
368
|
-
}
|
|
369
|
-
// 正式跳转
|
|
370
|
-
function jumpToPageTwo(jumpPageSetting, system, dataId, ids, buttonCode, isHasIdParam) {
|
|
371
|
-
return new Promise((resolve, reject) => {
|
|
372
|
-
const jumpPageUrl = jumpPageSetting.jumpPageUrl
|
|
373
|
-
if (!jumpPageUrl) {
|
|
374
|
-
return
|
|
375
|
-
}
|
|
376
|
-
const isMobile = isMobileBrowser()
|
|
377
|
-
if (jumpPageUrl.indexOf('page:') === 0) {
|
|
378
|
-
// 表示是自定义系统跳转页面编码
|
|
379
|
-
jumpWithSuperPage(jumpPageUrl, system, dataId, jumpPageSetting, ids, buttonCode, isHasIdParam, isMobile).then(
|
|
380
|
-
(openPageParams) => {
|
|
381
|
-
resolve(openPageParams)
|
|
382
|
-
}
|
|
383
|
-
)
|
|
384
|
-
} else {
|
|
385
|
-
const additionalParameterStr = analysisAdditionalParameter(jumpPageSetting.paramStoreId)
|
|
386
|
-
// 表示是路径,格式如:http://www.baidu.com 或 http://localhost:9600/demo/#/demo/plan/list 或 /demo/plan/list
|
|
387
|
-
let path = jumpPageUrl
|
|
388
|
-
if (jumpPageUrl.indexOf('path:') >= 0) {
|
|
389
|
-
// 兼容历史数据
|
|
390
|
-
path = jumpPageUrl.substring(jumpPageUrl.indexOf('path:') + 'path:'.length)
|
|
391
|
-
}
|
|
392
|
-
if (isFullPath(path)) {
|
|
393
|
-
// 表示是全路径,例如:http://www.baidu.com 或 http://localhost:9600/demo/#/demo/plan/list
|
|
394
|
-
} else if (system) {
|
|
395
|
-
// 表示是路由路径,例如:/demo/plan/list
|
|
396
|
-
const frontendUrl = getSystemFrontendUrl(system.frontendUrl)
|
|
397
|
-
path = frontendUrl + '/#' + path
|
|
398
|
-
}
|
|
399
|
-
const systemName = getSystemNameWithLanguage(system)
|
|
400
|
-
// 移动端时会有返回值
|
|
401
|
-
const fullPath = jumpToPageWithFullPath(
|
|
402
|
-
dataId,
|
|
403
|
-
path,
|
|
404
|
-
additionalParameterStr,
|
|
405
|
-
jumpPageSetting,
|
|
406
|
-
ids,
|
|
407
|
-
buttonCode,
|
|
408
|
-
isHasIdParam,
|
|
409
|
-
systemName,
|
|
410
|
-
isMobile
|
|
411
|
-
)
|
|
412
|
-
if (fullPath) {
|
|
413
|
-
// 移动端时返回的全路径
|
|
414
|
-
jumpPageSetting._path = fullPath
|
|
415
|
-
}
|
|
416
|
-
resolve(jumpPageSetting)
|
|
417
|
-
}
|
|
418
|
-
})
|
|
419
|
-
}
|
|
420
|
-
/**
|
|
421
|
-
* 全路径时跳转页面处理
|
|
422
|
-
* @param {*} dataId
|
|
423
|
-
* @param {*} path
|
|
424
|
-
* @param {*} additionalParameterStr
|
|
425
|
-
* @param {*} jumpPage
|
|
426
|
-
*/
|
|
427
|
-
function jumpToPageWithFullPath(
|
|
428
|
-
dataId,
|
|
429
|
-
path,
|
|
430
|
-
additionalParameterStr,
|
|
431
|
-
jumpPage,
|
|
432
|
-
ids,
|
|
433
|
-
buttonCode,
|
|
434
|
-
isHasIdParam,
|
|
435
|
-
systemName,
|
|
436
|
-
isMobile
|
|
437
|
-
) {
|
|
438
|
-
path = packagePathParams(dataId, path, jumpPage, ids, buttonCode, isHasIdParam)
|
|
439
|
-
// 保持这种情况参数传递,是为了解决不同域时获得不到window.sessionStorage中存的附加参数问题
|
|
440
|
-
if (additionalParameterStr && additionalParameterStr !== '') {
|
|
441
|
-
let systemNameParam = ''
|
|
442
|
-
if (systemName) {
|
|
443
|
-
systemNameParam = '&_systemName_=' + encodeURI(systemName)
|
|
444
|
-
}
|
|
445
|
-
if (path.indexOf('?') !== -1) {
|
|
446
|
-
path += '&'
|
|
447
|
-
path += additionalParameterStr + systemNameParam
|
|
448
|
-
} else {
|
|
449
|
-
path += '?'
|
|
450
|
-
path += additionalParameterStr + systemNameParam
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
if (isMobile) {
|
|
454
|
-
// 如果是移动端返回全路径即可
|
|
455
|
-
return path
|
|
456
|
-
}
|
|
457
|
-
let jumpMode = 'refresh'
|
|
458
|
-
if (jumpPage) {
|
|
459
|
-
if (jumpPage.jumpPageOpenMode) {
|
|
460
|
-
jumpMode = jumpPage.jumpPageOpenMode
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
if (jumpMode === 'popup') {
|
|
464
|
-
// 弹框
|
|
465
|
-
let jumpPageWidth
|
|
466
|
-
let jumpPageHeight
|
|
467
|
-
|
|
468
|
-
if (jumpPage.jumpPageWidth) {
|
|
469
|
-
jumpPageWidth = jumpPage.jumpPageWidth
|
|
470
|
-
} else {
|
|
471
|
-
jumpPageWidth = window.innerWidth - 150
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
if (jumpPage.jumpPageHeight) {
|
|
475
|
-
jumpPageHeight = jumpPage.jumpPageHeight
|
|
476
|
-
} else {
|
|
477
|
-
jumpPageHeight = window.innerHeight - 150
|
|
478
|
-
}
|
|
479
|
-
const features =
|
|
480
|
-
'height=' +
|
|
481
|
-
jumpPageHeight +
|
|
482
|
-
', width=' +
|
|
483
|
-
jumpPageWidth +
|
|
484
|
-
', top=0, left=0, toolbar=no, menubar=no,' +
|
|
485
|
-
'scrollbars=no,resizable=no, location=no, status=no' // 设置新窗口的特性
|
|
486
|
-
window.open(path, 'newW', features) // 打开新窗口
|
|
487
|
-
} else if (jumpMode === 'newTab') {
|
|
488
|
-
// 新页签
|
|
489
|
-
window.open(path)
|
|
490
|
-
} else {
|
|
491
|
-
// 刷新页面
|
|
492
|
-
location.href = path
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
// path封装参数
|
|
497
|
-
function packagePathParams(dataId, path, jumpPage, ids, buttonCode, isHasIdParam) {
|
|
498
|
-
if (jumpPage.isNeedId === undefined || jumpPage.isNeedId === null || jumpPage.isNeedId === true) {
|
|
499
|
-
if (!isHasIdParam && dataId) {
|
|
500
|
-
// 表示是修改或查看页面,封装id参数
|
|
501
|
-
let paramSeparator = '?'
|
|
502
|
-
if (path.indexOf('?') > 0) {
|
|
503
|
-
paramSeparator = '&'
|
|
504
|
-
}
|
|
505
|
-
path = path + paramSeparator + 'id=' + dataId
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
// window.sessionStorage中存储附加参数的key
|
|
509
|
-
const paramStoreId = jumpPage.paramStoreId
|
|
510
|
-
if (paramStoreId && paramStoreId !== '') {
|
|
511
|
-
const paramStoreIdParam = 'paramStoreId=' + paramStoreId
|
|
512
|
-
if (path.indexOf('?') !== -1) {
|
|
513
|
-
path += '&'
|
|
514
|
-
path += paramStoreIdParam
|
|
515
|
-
} else {
|
|
516
|
-
path += '?'
|
|
517
|
-
path += paramStoreIdParam
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
if (ids && ids.length > 0) {
|
|
521
|
-
const idsStr = ids.join(',')
|
|
522
|
-
const idsPath = 'ids=' + idsStr + '&_idsStr=' + idsStr
|
|
523
|
-
if (path.indexOf('?') !== -1) {
|
|
524
|
-
path += '&'
|
|
525
|
-
path += idsPath
|
|
526
|
-
} else {
|
|
527
|
-
path += '?'
|
|
528
|
-
path += idsPath
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
if (buttonCode) {
|
|
532
|
-
if (path.indexOf('?') !== -1) {
|
|
533
|
-
path += '&buttonCode=' + buttonCode
|
|
534
|
-
} else {
|
|
535
|
-
path += '?buttonCode=' + buttonCode
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
if (jumpPage.isNewPage !== undefined && jumpPage.isNewPage === true) {
|
|
539
|
-
let paramSeparator = ''
|
|
540
|
-
if (path.indexOf('?') !== -1) {
|
|
541
|
-
paramSeparator = '&'
|
|
542
|
-
} else {
|
|
543
|
-
paramSeparator = '?'
|
|
544
|
-
}
|
|
545
|
-
path = path + paramSeparator + 'isNewPage=true'
|
|
546
|
-
}
|
|
547
|
-
return path
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
function getPageCode(jumpPageUrl) {
|
|
551
|
-
let pageCode
|
|
552
|
-
if (jumpPageUrl && jumpPageUrl.indexOf('page:') !== -1) {
|
|
553
|
-
pageCode = jumpPageUrl.substring(jumpPageUrl.indexOf('page:') + 'page:'.length)
|
|
554
|
-
}
|
|
555
|
-
return pageCode
|
|
556
|
-
}
|
|
557
|
-
// 适配移动端跳转页面打开方式
|
|
558
|
-
function refreshMobileDialogType(jumpPageSetting, isMobile) {
|
|
559
|
-
if (jumpPageSetting && isMobile) {
|
|
560
|
-
let openMode = jumpPageSetting.jumpPageMobileOpenMode
|
|
561
|
-
if (!openMode) {
|
|
562
|
-
if (jumpPageSetting.jumpPageOpenMode) {
|
|
563
|
-
// 表示没有配移动端打开方式,根据pc端打开方式适配移动端
|
|
564
|
-
openMode = jumpPageSetting.jumpPageOpenMode
|
|
565
|
-
if (openMode === 'newTab') {
|
|
566
|
-
// 移动端不支持新页签,适配为刷新区域
|
|
567
|
-
openMode = 'refresh'
|
|
568
|
-
}
|
|
569
|
-
} else {
|
|
570
|
-
// 表示没有配置任何打开方式,默认是刷新区域
|
|
571
|
-
openMode = 'refresh'
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
if (openMode === 'refresh') {
|
|
575
|
-
// 如果是刷新区域,则解析时为全屏抽屉
|
|
576
|
-
jumpPageSetting.dialogType = 'drawer'
|
|
577
|
-
jumpPageSetting.jumpPageWidth = '100%'
|
|
578
|
-
jumpPageSetting.isRefreshWhenClosePopup = true
|
|
579
|
-
}
|
|
580
|
-
jumpPageSetting.jumpPageMobileOpenMode = openMode
|
|
581
|
-
// if(!jumpPageSetting.jumpPageTitle){
|
|
582
|
-
// jumpPageSetting.jumpPageTitle = 'QMS质量管理系统'
|
|
583
|
-
// }
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
// 使用页面组件内部调整
|
|
588
|
-
function jumpWithSuperPage(jumpPageUrl, system, dataId, jumpPageSetting, ids, buttonCode, isHasIdParam, isMobile) {
|
|
589
|
-
return new Promise((resolve, reject) => {
|
|
590
|
-
// 表示是自定义系统跳转页面编码
|
|
591
|
-
console.log('----jumpWithSuperPage---', jumpPageUrl, system, dataId, jumpPageSetting)
|
|
592
|
-
const pageCode = getPageCode(jumpPageUrl)
|
|
593
|
-
// 移动端newTab时更新页面打开方式为refresh
|
|
594
|
-
refreshMobileDialogType(jumpPageSetting, isMobile)
|
|
595
|
-
let jumpMode
|
|
596
|
-
if (isMobile && jumpPageSetting && jumpPageSetting.jumpPageMobileOpenMode) {
|
|
597
|
-
// 移动端时,获得移动端打开方式
|
|
598
|
-
jumpMode = jumpPageSetting.jumpPageMobileOpenMode
|
|
599
|
-
}
|
|
600
|
-
if (!jumpMode && jumpPageSetting) {
|
|
601
|
-
// 移动端没有配置则以 打开方式为准
|
|
602
|
-
jumpMode = jumpPageSetting.jumpPageOpenMode
|
|
603
|
-
}
|
|
604
|
-
if (!jumpMode) {
|
|
605
|
-
// 默认是刷新页面
|
|
606
|
-
jumpMode = 'refresh'
|
|
607
|
-
}
|
|
608
|
-
const jumpJsonData = {
|
|
609
|
-
jumpMode: jumpMode
|
|
610
|
-
}
|
|
611
|
-
window.sessionStorage.setItem(pageCode + '-jumpMode', JSON.stringify(jumpJsonData))
|
|
612
|
-
if (jumpMode === 'popup') {
|
|
613
|
-
const path = packageOpenUrl(system, pageCode, dataId, jumpPageSetting, jumpMode, ids, buttonCode, isHasIdParam)
|
|
614
|
-
// 页面布局中的按钮打开
|
|
615
|
-
const popPageSetting = openDialogWhenPopup(jumpPageSetting, system, pageCode, dataId, jumpMode, ids, buttonCode)
|
|
616
|
-
if (
|
|
617
|
-
popPageSetting &&
|
|
618
|
-
jumpPageSetting.isRefreshWhenClosePopup !== undefined &&
|
|
619
|
-
jumpPageSetting.isRefreshWhenClosePopup !== null
|
|
620
|
-
) {
|
|
621
|
-
popPageSetting.isRefreshWhenClosePopup = jumpPageSetting.isRefreshWhenClosePopup
|
|
622
|
-
}
|
|
623
|
-
popPageSetting._path = path
|
|
624
|
-
popPageSetting.customSystem = system.code
|
|
625
|
-
resolve(popPageSetting)
|
|
626
|
-
} else if (jumpMode === 'newTab') {
|
|
627
|
-
// 新页签打开
|
|
628
|
-
const path =
|
|
629
|
-
packageOpenUrl(system, pageCode, dataId, jumpPageSetting, jumpMode, ids, buttonCode, isHasIdParam) +
|
|
630
|
-
'&_t_=' +
|
|
631
|
-
new Date().getTime()
|
|
632
|
-
const popPageSetting = {
|
|
633
|
-
_path: path,
|
|
634
|
-
pageCode: pageCode,
|
|
635
|
-
customSystem: system.code,
|
|
636
|
-
jumpMode: jumpMode
|
|
637
|
-
}
|
|
638
|
-
console.log('----jumpWithSuperPage---', isMobile, popPageSetting)
|
|
639
|
-
if (!isMobile) {
|
|
640
|
-
// 不是移动端时直接open打开pc新页签
|
|
641
|
-
window.open(path)
|
|
642
|
-
}
|
|
643
|
-
resolve(popPageSetting)
|
|
644
|
-
} else {
|
|
645
|
-
// 刷新页面
|
|
646
|
-
const queryParam = {
|
|
647
|
-
pageCode: pageCode,
|
|
648
|
-
customSystem: system.code,
|
|
649
|
-
jumpMode: jumpMode,
|
|
650
|
-
buttonCode: buttonCode,
|
|
651
|
-
ids: ids ? ids.join(',') : ''
|
|
652
|
-
}
|
|
653
|
-
if (
|
|
654
|
-
jumpPageSetting.isNeedId === undefined ||
|
|
655
|
-
jumpPageSetting.isNeedId === null ||
|
|
656
|
-
jumpPageSetting.isNeedId === true
|
|
657
|
-
) {
|
|
658
|
-
if (!isHasIdParam && dataId) {
|
|
659
|
-
// 表示是修改或查看页面,封装id参数
|
|
660
|
-
queryParam.id = dataId
|
|
661
|
-
}
|
|
662
|
-
}
|
|
663
|
-
const paramStoreId = jumpPageSetting.paramStoreId
|
|
664
|
-
if (paramStoreId && paramStoreId !== '') {
|
|
665
|
-
queryParam['paramStoreId'] = paramStoreId
|
|
666
|
-
}
|
|
667
|
-
const path = packageOpenUrl(system, pageCode, dataId, jumpPageSetting, jumpMode, ids, buttonCode, isHasIdParam)
|
|
668
|
-
queryParam._path = path
|
|
669
|
-
resolve(queryParam)
|
|
670
|
-
}
|
|
671
|
-
})
|
|
672
|
-
}
|
|
673
|
-
/**
|
|
674
|
-
* 使用dialog打开弹框,页面布局中的按钮、自定义按钮等使用该方法
|
|
675
|
-
* @param {*} jumpPageSetting
|
|
676
|
-
* @param {*} system
|
|
677
|
-
* @param {*} pageCode
|
|
678
|
-
* @param {*} dataId
|
|
679
|
-
* @param {*} jumpMode
|
|
680
|
-
* @param {*} ids
|
|
681
|
-
* @param {*} buttonCode
|
|
682
|
-
*/
|
|
683
|
-
function openDialogWhenPopup(jumpPageSetting, system, pageCode, dataId, jumpMode, ids, buttonCode) {
|
|
684
|
-
const popPageSetting = {}
|
|
685
|
-
if (jumpPageSetting) {
|
|
686
|
-
popPageSetting.jumpPageTitle = jumpPageSetting.jumpPageTitle
|
|
687
|
-
popPageSetting.jumpPageWidth = jumpPageSetting.jumpPageWidth
|
|
688
|
-
popPageSetting.jumpPageHeight = jumpPageSetting.jumpPageHeight
|
|
689
|
-
popPageSetting.valueMappings = jumpPageSetting.valueMappings
|
|
690
|
-
popPageSetting.updateValueEvent = jumpPageSetting.updateValueEvent
|
|
691
|
-
popPageSetting.closeEvent = jumpPageSetting.closeEvent
|
|
692
|
-
popPageSetting.isRefreshWhenClosePopup = jumpPageSetting.isRefreshWhenClosePopup
|
|
693
|
-
}
|
|
694
|
-
// 是否是自定义系统
|
|
695
|
-
let isDsc = false
|
|
696
|
-
if (typeof system.standard !== 'undefined') {
|
|
697
|
-
isDsc = !system.standard
|
|
698
|
-
}
|
|
699
|
-
popPageSetting.pageCode = pageCode
|
|
700
|
-
if (
|
|
701
|
-
jumpPageSetting.isNeedId === undefined ||
|
|
702
|
-
jumpPageSetting.isNeedId === null ||
|
|
703
|
-
jumpPageSetting.isNeedId === true
|
|
704
|
-
) {
|
|
705
|
-
if (dataId) {
|
|
706
|
-
// 表示是修改或查看页面,封装id参数
|
|
707
|
-
popPageSetting.dataId = dataId
|
|
708
|
-
}
|
|
709
|
-
}
|
|
710
|
-
popPageSetting.isDsc = isDsc
|
|
711
|
-
// 用于获取window.sessionStorage中缓存的附加参数的key值
|
|
712
|
-
popPageSetting.paramStoreId = jumpPageSetting.paramStoreId
|
|
713
|
-
// 打开方式
|
|
714
|
-
popPageSetting.jumpMode = jumpMode
|
|
715
|
-
popPageSetting.ids = ids
|
|
716
|
-
popPageSetting.buttonCode = buttonCode
|
|
717
|
-
// eventBus.$emit('showDialogPage', buttonSetting)
|
|
718
|
-
return popPageSetting
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
function packageOpenUrl(system, pageCode, dataId, jumpPageSetting, jumpMode, ids, buttonCode, isHasIdParam) {
|
|
722
|
-
const frontendUrl = getSystemFrontendUrl(system.frontendUrl)
|
|
723
|
-
let path =
|
|
724
|
-
frontendUrl +
|
|
725
|
-
'/#/dsc-full-screen/page?customSystem=' +
|
|
726
|
-
system.code +
|
|
727
|
-
'&pageCode=' +
|
|
728
|
-
pageCode +
|
|
729
|
-
'&jumpMode=' +
|
|
730
|
-
jumpMode
|
|
731
|
-
const systemName = getSystemNameWithLanguage(system)
|
|
732
|
-
if (systemName) {
|
|
733
|
-
path += '&_systemName_=' + encodeURI(systemName)
|
|
734
|
-
}
|
|
735
|
-
return packagePathParams(dataId, path, jumpPageSetting, ids, buttonCode, isHasIdParam)
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
function getSystemNameWithLanguage(system) {
|
|
739
|
-
if (system) {
|
|
740
|
-
let locale = 'cn'
|
|
741
|
-
if (window.$locale) {
|
|
742
|
-
locale = window.$locale
|
|
743
|
-
}
|
|
744
|
-
if (locale === 'cn') {
|
|
745
|
-
return system.name
|
|
746
|
-
} else {
|
|
747
|
-
return system.enName
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
// 解析跳转页面附带参数
|
|
753
|
-
function analysisAdditionalParameter(paramStoreId) {
|
|
754
|
-
const additionalParamMap = window.sessionStorage.getItem(paramStoreId)
|
|
755
|
-
return analysisAdditionalParameterWithMap(additionalParamMap)
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
// 解析跳转页面附带参数
|
|
759
|
-
function analysisAdditionalParameterWithMap(additionalParamMap) {
|
|
760
|
-
let additionalParameterStr = ''
|
|
761
|
-
if (additionalParamMap) {
|
|
762
|
-
const additionalParameterMap = JSON.parse(additionalParamMap)
|
|
763
|
-
const keys = Object.keys(additionalParameterMap)
|
|
764
|
-
console.log('analysisAdditionalParameterWithMap--Object.keys(additionalParameterMap)=', keys)
|
|
765
|
-
for (let i = 0; i < keys.length; i++) {
|
|
766
|
-
if (additionalParameterStr !== '') {
|
|
767
|
-
additionalParameterStr += '&'
|
|
768
|
-
}
|
|
769
|
-
additionalParameterStr += keys[i]
|
|
770
|
-
additionalParameterStr += '='
|
|
771
|
-
additionalParameterStr += additionalParameterMap[keys[i]]
|
|
772
|
-
}
|
|
773
|
-
}
|
|
774
|
-
return additionalParameterStr
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
export function updateWithPageValue(
|
|
778
|
-
sourceModel,
|
|
779
|
-
sourceTableName,
|
|
780
|
-
jumpPageSetting,
|
|
781
|
-
entity,
|
|
782
|
-
targetTableName,
|
|
783
|
-
isNeedReplaceFieldName
|
|
784
|
-
) {
|
|
785
|
-
if (
|
|
786
|
-
sourceModel &&
|
|
787
|
-
sourceModel !== null &&
|
|
788
|
-
entity &&
|
|
789
|
-
entity !== null &&
|
|
790
|
-
jumpPageSetting &&
|
|
791
|
-
jumpPageSetting !== null &&
|
|
792
|
-
jumpPageSetting.valueMappings
|
|
793
|
-
) {
|
|
794
|
-
let sourceEntity = sourceModel
|
|
795
|
-
if (Array.isArray(sourceModel) && sourceModel.length > 0) {
|
|
796
|
-
// 弹出框中列表选择了多行时,默认只赋值第一行记录
|
|
797
|
-
sourceEntity = sourceModel[0]
|
|
798
|
-
}
|
|
799
|
-
const valueMappings = jumpPageSetting.valueMappings
|
|
800
|
-
valueMappings.forEach((valueMapping) => {
|
|
801
|
-
let sourceField = valueMapping.source
|
|
802
|
-
let targetValue = getEntityFieldValue(sourceEntity, sourceField)
|
|
803
|
-
// sql查询时,会把点“.”改为两个下划线"__"
|
|
804
|
-
const replaceDot = '__'
|
|
805
|
-
if (targetValue === undefined || targetValue === null) {
|
|
806
|
-
// 如果通过字段没有获得字段,则再拼接表名作为字段,重新获得字段值
|
|
807
|
-
if (sourceField && sourceTableName && sourceField.indexOf('.') > 0) {
|
|
808
|
-
// 表示包括点“.”,需要把两个下划线"__"重新改为点“.”,否则会导致查询报500错误
|
|
809
|
-
sourceField = sourceTableName + replaceDot + sourceField
|
|
810
|
-
}
|
|
811
|
-
// 重新获得字段值
|
|
812
|
-
targetValue = getEntityFieldValue(sourceEntity, sourceField)
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
let targetField = valueMapping.target
|
|
816
|
-
if (
|
|
817
|
-
isNeedReplaceFieldName !== undefined &&
|
|
818
|
-
isNeedReplaceFieldName === true &&
|
|
819
|
-
targetField &&
|
|
820
|
-
targetTableName &&
|
|
821
|
-
targetField.indexOf('.') > 0
|
|
822
|
-
) {
|
|
823
|
-
// 表示包括点“.”,需要把两个下划线"__"重新改为点“.”,否则会导致查询报500错误
|
|
824
|
-
targetField = targetTableName + replaceDot + targetField
|
|
825
|
-
}
|
|
826
|
-
setEntityFieldValue(entity, targetField, targetValue)
|
|
827
|
-
})
|
|
828
|
-
}
|
|
829
|
-
}
|