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
package/lib/utils/utils.cjs
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("../src/utils/util.cjs");
|
|
3
|
-
require("vue");
|
|
4
|
-
const t = require("../src/utils/global-prop.cjs"), r = { getSearchUserFields() {
|
|
5
|
-
const t2 = e.getI18n();
|
|
6
|
-
return [{ value: "name", label: t2.t("departmentUserTree.searchFieldUserName") }, { value: "loginName", label: t2.t("departmentUserTree.searchFieldLoginName") }, { value: "email", label: t2.t("departmentUserTree.searchFieldEmail") }, { value: "telephone", label: t2.t("departmentUserTree.searchFieldTelephone") }, { value: "jobNumber", label: t2.t("departmentUserTree.searchFieldJobNumber") }, { value: "honorificName", label: t2.t("departmentUserTree.searchFieldHonorificName") }];
|
|
7
|
-
}, removeRow(e2, t2) {
|
|
8
|
-
for (var r2 = e2.length, l = 0; l < r2; l++)
|
|
9
|
-
if (e2[l].id === t2.id)
|
|
10
|
-
return 0 === l ? (e2.shift(), e2) : l === r2 - 1 ? (e2.pop(), e2) : (e2.splice(l, 1), e2);
|
|
11
|
-
return e2;
|
|
12
|
-
}, storeSeachValue(e2, t2, r2) {
|
|
13
|
-
if (r2 && "" !== r2) {
|
|
14
|
-
var l = e2.getObject(t2);
|
|
15
|
-
if (l && l.length > 0) {
|
|
16
|
-
if (0 === l.filter(this.createFilter(r2)).length) {
|
|
17
|
-
const a2 = { value: r2 };
|
|
18
|
-
l.push(a2), e2.setObject(t2, l);
|
|
19
|
-
}
|
|
20
|
-
} else {
|
|
21
|
-
var a = [];
|
|
22
|
-
const l2 = { value: r2 };
|
|
23
|
-
a.push(l2), e2.setObject(t2, a);
|
|
24
|
-
}
|
|
25
|
-
this.restaurants = e2.getObject(t2);
|
|
26
|
-
}
|
|
27
|
-
}, createFilter: (e2) => (t2) => 0 === t2.value.toLowerCase().indexOf(e2.toLowerCase()), handleSelectUtil(e2, t2) {
|
|
28
|
-
this.storeSeachValue(t2, this.searchStoreKey, this.filterText), this.search(e2.value);
|
|
29
|
-
}, analysisLabelTag(e2, t2, r2, l) {
|
|
30
|
-
let a = "";
|
|
31
|
-
if (e2) {
|
|
32
|
-
let s;
|
|
33
|
-
if ("" !== e2 && "string" == typeof e2 ? s = e2.split("-#-#") : "object" == typeof e2 && (s = e2), s && s.length > 0)
|
|
34
|
-
for (var i = 0; i < s.length; i++) {
|
|
35
|
-
let e3 = s[i];
|
|
36
|
-
if (-1 !== e3.indexOf("obj.")) {
|
|
37
|
-
if (e3 = e3.replace("${obj.", "").replace("}", ""), t2) {
|
|
38
|
-
let r3 = t2[e3];
|
|
39
|
-
this.childIsObjectProp(e3) && (r3 = this.childObjectPropOriginalValue(t2, e3)), a += r3;
|
|
40
|
-
}
|
|
41
|
-
} else if (-1 !== e3.indexOf("request.")) {
|
|
42
|
-
if (e3 = e3.replace("${request.", "").replace("}", ""), l) {
|
|
43
|
-
const t3 = l[e3];
|
|
44
|
-
t3 && (a += t3);
|
|
45
|
-
}
|
|
46
|
-
} else if (-1 !== e3.indexOf("input."))
|
|
47
|
-
e3 = e3.replace("${input.", "").replace("}", ""), a += e3;
|
|
48
|
-
else if (-1 !== e3.indexOf("context.") && (e3 = e3.replace("${context.", "").replace("}", ""), r2)) {
|
|
49
|
-
const t3 = r2[e3];
|
|
50
|
-
t3 && (a += t3);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return a;
|
|
55
|
-
}, childIsObjectProp: (e2) => e2.indexOf(".") > 0, childObjectPropOriginalValue(e2, t2) {
|
|
56
|
-
try {
|
|
57
|
-
let r2 = e2;
|
|
58
|
-
return t2.split(".").forEach((e3) => {
|
|
59
|
-
if (!r2)
|
|
60
|
-
throw r2 = "", r2;
|
|
61
|
-
r2 = r2[e3];
|
|
62
|
-
}), r2;
|
|
63
|
-
} catch (e3) {
|
|
64
|
-
return "";
|
|
65
|
-
}
|
|
66
|
-
}, getSelectUsers(e2, t2, r2) {
|
|
67
|
-
return new Promise((l, a) => {
|
|
68
|
-
e2 && t2 ? this.$http.get(window.$vueApp.config.globalProperties.baseAPI + "/component/organization-trees/select-users?searchField=" + e2 + "&selectUserInfo=" + t2 + "&separator=" + r2).then((e3) => {
|
|
69
|
-
l(e3);
|
|
70
|
-
}).catch((e3) => {
|
|
71
|
-
a(e3);
|
|
72
|
-
}) : l([]);
|
|
73
|
-
});
|
|
74
|
-
}, canShowOrgTree: () => new Promise((e2, r2) => {
|
|
75
|
-
const l = t.getCanShowOrgTree();
|
|
76
|
-
if ("false" === l || "true" === l) {
|
|
77
|
-
e2("true" === l);
|
|
78
|
-
} else
|
|
79
|
-
window.$http.get(window.$vueApp.config.globalProperties.baseAPI + "/component/organization-trees/show-org-tree").then((r3) => {
|
|
80
|
-
t.cacheCanShowOrgTree(r3), e2(r3);
|
|
81
|
-
}).catch((t2) => {
|
|
82
|
-
e2(false);
|
|
83
|
-
});
|
|
84
|
-
}) };
|
|
85
|
-
module.exports = r;
|
package/lib/utils/value-set.cjs
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }), require("vue");
|
|
3
|
-
const e = require("../src/utils/common-util.cjs");
|
|
4
|
-
function t(e2) {
|
|
5
|
-
const t2 = e2.enumName, o2 = e2.beanName;
|
|
6
|
-
if (t2 && "" !== t2) {
|
|
7
|
-
if (true === e2.remoteEnum)
|
|
8
|
-
return "enumname:" + t2;
|
|
9
|
-
} else if (o2 && "" !== o2)
|
|
10
|
-
return "beanname:" + o2;
|
|
11
|
-
}
|
|
12
|
-
function o(e2, t2, o2) {
|
|
13
|
-
var _a;
|
|
14
|
-
const a2 = e2 ? e2.enumName : null, n = e2 ? e2.beanName : null;
|
|
15
|
-
let p = { uuid: t2 };
|
|
16
|
-
if (a2 && "" !== a2)
|
|
17
|
-
e2 && true === e2.remoteEnum && (p.type = "enumName", p.props = { prop: t2, valueSet: "enumname:" + a2 });
|
|
18
|
-
else if (n && "" !== n)
|
|
19
|
-
p.type = "beanName", p.props = { prop: t2, valueSet: "beanname:" + n };
|
|
20
|
-
else if (o2 && o2.valueSetOptions) {
|
|
21
|
-
const e3 = JSON.parse(o2.valueSetOptions);
|
|
22
|
-
!e3.type && !e3.dynamicDataSourceCode || "radio" !== o2.componentType && "checkbox" !== o2.componentType && !e3.valueLabelSwitch && ("optionGroup" === e3.type || void 0 !== e3.filterType && "remote" == e3.filterType) || (e3.type && "optionGroup" === e3.type || (Object.assign(p, e3), p.uuid = t2, p.props || (p.props = {}), p.props.tableName = (_a = e3.props) == null ? void 0 : _a.tableName, p.props.prop = t2), e3.dynamicDataSourceCode && (p.type = "dynamicData", p.props || (p.props = {}), p.props.code = e3.dynamicDataSourceCode));
|
|
23
|
-
}
|
|
24
|
-
return p.type ? p : null;
|
|
25
|
-
}
|
|
26
|
-
function a(e2, t2) {
|
|
27
|
-
var _a;
|
|
28
|
-
let o2;
|
|
29
|
-
e2 && (o2 = JSON.parse(e2));
|
|
30
|
-
let a2 = { uuid: t2 };
|
|
31
|
-
if (o2) {
|
|
32
|
-
const o3 = JSON.parse(e2);
|
|
33
|
-
(o3.type || o3.dynamicDataSourceCode) && (o3.type && "optionGroup" === o3.type || (Object.assign(a2, o3), a2.uuid = t2, a2.props || (a2.props = {}), a2.props.tableName = (_a = o3.props) == null ? void 0 : _a.tableName, a2.props.prop = t2), o3.dynamicDataSourceCode && (a2.type = "dynamicData", a2.props || (a2.props = {}), a2.props.code = o3.dynamicDataSourceCode));
|
|
34
|
-
}
|
|
35
|
-
return a2.type ? a2 : null;
|
|
36
|
-
}
|
|
37
|
-
exports.packageEnumAndBeanColumnValueSets = function(n, p, i, r) {
|
|
38
|
-
return e.isPlateSys(window.$vueApp.config.globalProperties.systemCode) ? function(e2, o2) {
|
|
39
|
-
return new Promise((a2, n2) => {
|
|
40
|
-
const p2 = { listCode: o2, valueSetMetas: [] }, i2 = [];
|
|
41
|
-
for (let o3 = 0; o3 < e2.length; o3++) {
|
|
42
|
-
const a3 = e2[o3], n3 = a3.prop ? a3.prop : a3.label, r2 = t(a3), l = a3.titleValueSet;
|
|
43
|
-
if (r2 || l) {
|
|
44
|
-
const e3 = { prop: n3 };
|
|
45
|
-
r2 && (e3.valueSet = r2), l && (e3.titleValueSet = l), p2.valueSetMetas.push(e3), i2.push(o3);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
p2.valueSetMetas.length > 0 ? window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseURL + "/common/super-grids/value-sets", p2).then((t2) => {
|
|
49
|
-
i2.forEach((o3) => {
|
|
50
|
-
let a3;
|
|
51
|
-
const n3 = e2[o3].prop ? e2[o3].prop : e2[o3].label;
|
|
52
|
-
for (const e3 in t2)
|
|
53
|
-
if (n3 === e3) {
|
|
54
|
-
a3 = t2[n3];
|
|
55
|
-
break;
|
|
56
|
-
}
|
|
57
|
-
a3 && (a3.valueSet && (e2[o3].valueSet = a3.valueSet), a3.titleValueSet && (e2[o3].titleValueSetValue = a3.titleValueSet));
|
|
58
|
-
}), a2(e2);
|
|
59
|
-
}).catch((e3) => {
|
|
60
|
-
n2(e3);
|
|
61
|
-
}) : a2(e2);
|
|
62
|
-
});
|
|
63
|
-
}(n, p) : function(t2, n2, p2, i2, r2) {
|
|
64
|
-
return new Promise((l, u) => {
|
|
65
|
-
const s = function(e2) {
|
|
66
|
-
const t3 = [], n3 = [], p3 = {};
|
|
67
|
-
for (let i3 = 0; i3 < e2.length; i3++) {
|
|
68
|
-
const r3 = e2[i3], l2 = r3.prop ? r3.prop : r3.label, u2 = o(r3, l2, r3);
|
|
69
|
-
let s2 = a(r3.titleValueSetOptions, l2);
|
|
70
|
-
(u2 || s2) && (u2 && t3.push(u2), s2 && n3.push(s2), p3[l2] = i3);
|
|
71
|
-
}
|
|
72
|
-
return { dataSourceConfigList: t3, dataSourceConfigListTitle: n3, valueSetColumnIndexs: p3 };
|
|
73
|
-
}(t2);
|
|
74
|
-
if (s.dataSourceConfigList && 0 !== s.dataSourceConfigList.length || s.dataSourceConfigListTitle && 0 !== s.dataSourceConfigListTitle.length) {
|
|
75
|
-
const o2 = s.valueSetColumnIndexs, a2 = { listCode: n2, entityMap: i2, additionalParamMap: p2, dataSourceList: s.dataSourceConfigList, dataSourceListTitle: s.dataSourceConfigListTitle, systemCode: r2 }, c = e.getRelativeBaseUrl(window.$vueApp.config.globalProperties.baseURL + "/common/common-data/find-grid-datas");
|
|
76
|
-
window.$vueApp.config.globalProperties.$http.post(c, a2).then((e2) => {
|
|
77
|
-
const a3 = e2.columnValueSet, n3 = e2.columnTitleValueSet;
|
|
78
|
-
for (let e3 in o2) {
|
|
79
|
-
const p3 = o2[e3], i3 = a3[e3];
|
|
80
|
-
i3 && (t2[p3].valueSet = i3);
|
|
81
|
-
const r3 = n3[e3];
|
|
82
|
-
r3 && (t2[p3].titleValueSetValue = r3);
|
|
83
|
-
}
|
|
84
|
-
l(e2);
|
|
85
|
-
}).catch((e2) => {
|
|
86
|
-
u(e2);
|
|
87
|
-
});
|
|
88
|
-
} else
|
|
89
|
-
l();
|
|
90
|
-
});
|
|
91
|
-
}(n, p, i, r);
|
|
92
|
-
};
|
package/lib/valid-code/index.cjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("../../utils/gogocodeTransfer.cjs"), t = require("vue");
|
|
3
|
-
require("./valid-code.vue2.cjs");
|
|
4
|
-
const o = require("../../_virtual/_plugin-vue_export-helper.cjs")({ name: "ValidCode", model: { prop: "value", event: "input" }, props: { width: { type: String, default: "100px" }, height: { type: String, default: "40px" }, length: { type: Number, default: 4 }, refresh: { type: Number, default: null } }, data: () => ({ codeList: [] }), watch: { refresh() {
|
|
5
|
-
this.createdCode();
|
|
6
|
-
} }, mounted() {
|
|
7
|
-
this.createdCode();
|
|
8
|
-
}, methods: { refreshCode() {
|
|
9
|
-
this.createdCode();
|
|
10
|
-
}, createdCode() {
|
|
11
|
-
const t2 = this.length, o2 = [], r = "ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz0123456789";
|
|
12
|
-
for (let e2 = 0; e2 < t2; e2++) {
|
|
13
|
-
const e3 = [Math.round(220 * Math.random()), Math.round(240 * Math.random()), Math.round(200 * Math.random())];
|
|
14
|
-
o2.push({ code: r.charAt(Math.floor(51 * Math.random())), color: `rgb(${e3})`, fontSize: +[Math.floor(10 * Math.random())] + 6 + 10 + "px", padding: `${[Math.floor(10 * Math.random())]}px`, transform: `rotate(${Math.floor(90 * Math.random()) - Math.floor(90 * Math.random())}deg)` });
|
|
15
|
-
}
|
|
16
|
-
this.codeList = o2, e.$emit(this, "update:value", o2.map((e2) => e2.code).join(""));
|
|
17
|
-
}, getStyle: (e2) => `color: ${e2.color}; font-size: ${e2.fontSize}; padding: ${e2.padding}; transform: ${e2.transform}` }, emits: ["update:value"] }, [["render", function(e2, o2, r, a, d, n) {
|
|
18
|
-
return t.openBlock(), t.createElementBlock("div", { class: "ValidCode disabled-select", style: t.normalizeStyle(`width:${r.width}; height:${r.height}`), onClick: o2[0] || (o2[0] = (...e3) => n.refreshCode && n.refreshCode(...e3)) }, [(t.openBlock(true), t.createElementBlock(t.Fragment, null, t.renderList(d.codeList, (e3, o3) => (t.openBlock(), t.createElementBlock("span", { key: o3, style: t.normalizeStyle(n.getStyle(e3)) }, t.toDisplayString(e3.code), 5))), 128))], 4);
|
|
19
|
-
}], ["__scopeId", "data-v-aa77e3bd"]]);
|
|
20
|
-
module.exports = o;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const t = require("../../utils/gogocodeTransfer.cjs"), i = require("vuex"), e = require("vue"), s = require("../../_virtual/_plugin-vue_export-helper.cjs"), n = { name: "WorkflowButton", props: { buttonInfo: { type: Object, default: null }, hiddenBtns: { type: Array, default: null }, permissionPrefix: { type: String, default: null }, formButtonPosition: { type: String, default: null }, disabled: { type: Boolean, default: false } }, data() {
|
|
3
|
-
return { slotBefore: "before", slotAfter: "after", buttons: [], buttonsPermission: this.getButtonsPermission() };
|
|
4
|
-
}, computed: { ...i.mapGetters(["preventReclick"]) }, provide: () => ({}), created() {
|
|
5
|
-
const i2 = [], e2 = this;
|
|
6
|
-
if ((void 0 === this.buttonInfo.processState || null === this.buttonInfo.processState || "UNSUBMIT" === this.buttonInfo.processState && "WAIT_TRANSACT" === this.buttonInfo.active) && (void 0 !== this.buttonInfo.processState && true !== this.buttonInfo.showButtonSave || i2.push({ i18nButtonName: this.i18nButtonName(this.buttonInfo.saveButton), permission: this.buttonsPermission.save, type: "primary", clickFun: function() {
|
|
7
|
-
t.$emit(e2, "save");
|
|
8
|
-
}, code: "saveButton" }), i2.push({ i18nButtonName: this.i18nButtonName(this.buttonInfo.submitButton), permission: this.buttonsPermission.submitProcess, type: "primary", clickFun: function() {
|
|
9
|
-
t.$emit(e2, "submitProcess");
|
|
10
|
-
}, code: "submitButton" })), this.buttonInfo.processState) {
|
|
11
|
-
if ("WAIT_TRANSACT" === this.buttonInfo.active && "TYPE_READ" === this.buttonInfo.processingMode)
|
|
12
|
-
(!this.hiddenBtns || this.hiddenBtns && -1 === this.hiddenBtns.indexOf("readButton")) && i2.push({ i18nButtonName: this.i18nButtonName(this.buttonInfo.readButton), permission: this.buttonsPermission.completeTask, type: "primary", clickFun: function() {
|
|
13
|
-
e2.completeTask("READED");
|
|
14
|
-
}, code: "readButton" });
|
|
15
|
-
else if ("SUBMIT" === this.buttonInfo.processState) {
|
|
16
|
-
if ("TYPE_READ" === this.buttonInfo.processingMode || !this.buttonInfo.showButtonSave || "WAIT_TRANSACT" !== this.buttonInfo.active && "WAIT_DESIGNATE_TRANSACTOR" !== this.buttonInfo.active && "WAIT_CHOICE_TACHE" !== this.buttonInfo.active && "DRAW_WAIT" !== this.buttonInfo.active || i2.push({ i18nButtonName: this.i18nButtonName(this.buttonInfo.saveButton), permission: this.buttonsPermission.update, type: "primary", clickFun: function() {
|
|
17
|
-
t.$emit(e2, "update");
|
|
18
|
-
}, code: "saveButton" }), this.buttonInfo.active && "WAIT_DESIGNATE_TRANSACTOR" === this.buttonInfo.active && (!this.hiddenBtns || this.hiddenBtns && -1 === this.hiddenBtns.indexOf("selectTransactor")) && i2.push({ i18nButtonName: this.i18nButtonName(this.buttonInfo.submitButton), permission: this.buttonsPermission.selectTransactor, type: "primary", clickFun: function() {
|
|
19
|
-
t.$emit(e2, "selectTransactors");
|
|
20
|
-
}, code: "submitButton" }), this.buttonInfo.active && "WAIT_CHOICE_TACHE" === this.buttonInfo.active && (!this.hiddenBtns || this.hiddenBtns && -1 === this.hiddenBtns.indexOf("selectTache"))) {
|
|
21
|
-
i2.push({ i18nButtonName: this.i18nButtonName(this.buttonInfo.submitButton), permission: this.buttonsPermission.selectTache, type: "primary", clickFun: function() {
|
|
22
|
-
t.$emit(e2, "selectTaches");
|
|
23
|
-
}, code: "submitButton" });
|
|
24
|
-
const s2 = i2.findIndex((t2) => "saveButton" === t2.code);
|
|
25
|
-
-1 !== s2 && i2.splice(s2, 1);
|
|
26
|
-
}
|
|
27
|
-
this.buttonInfo.active && ("DRAW_WAIT" === this.buttonInfo.active || "DEPT_DRAW_WAIT" === this.buttonInfo.active) && this.buttonInfo.showButtonDraw && i2.push({ i18nButtonName: this.i18nButtonName(this.buttonInfo.drawButton), permission: this.buttonsPermission.drawTask, type: "primary", clickFun: function() {
|
|
28
|
-
t.$emit(e2, "drawTask");
|
|
29
|
-
}, code: "drawButton" }), (this.buttonInfo.drawTask && "WAIT_TRANSACT" === this.buttonInfo.active || this.buttonInfo.canAbandonDeptTask && "WAIT_TRANSACT" === this.buttonInfo.active) && this.buttonInfo.showButtonAbandon && i2.push({ i18nButtonName: this.i18nButtonName(this.buttonInfo.abandonButton), permission: this.buttonsPermission.abandonReceive, type: "primary", clickFun: function() {
|
|
30
|
-
t.$emit(e2, "abandonDraw");
|
|
31
|
-
}, code: "abandonButton" }), this.showRetrieve() && i2.push({ i18nButtonName: this.i18nButtonName(this.buttonInfo.backButton), permission: this.buttonsPermission.retrieve, type: "primary", clickFun: function() {
|
|
32
|
-
t.$emit(e2, "retrieveTask");
|
|
33
|
-
}, code: "backButton" }), "WAIT_TRANSACT" === this.buttonInfo.active && "EDIT" === this.buttonInfo.processingMode && i2.push({ i18nButtonName: this.i18nButtonName(this.buttonInfo.submitButton), permission: this.buttonsPermission.submitTask, type: "primary", clickFun: function() {
|
|
34
|
-
e2.completeTask("SUBMIT");
|
|
35
|
-
}, code: "submitButton" }), "WAIT_TRANSACT" !== this.buttonInfo.active || "APPROVE" !== this.buttonInfo.processingMode && "COUNTERSIGN" !== this.buttonInfo.processingMode || (i2.push({ i18nButtonName: this.i18nButtonName(this.buttonInfo.agreeButton), permission: this.buttonsPermission.approve, type: "primary", clickFun: function() {
|
|
36
|
-
e2.completeTask("APPROVE");
|
|
37
|
-
}, code: "agreeButton" }), i2.push({ i18nButtonName: this.i18nButtonName(this.buttonInfo.disagreeButton), permission: this.buttonsPermission.refuse, type: "primary", clickFun: function() {
|
|
38
|
-
e2.completeTask("REFUSE");
|
|
39
|
-
}, code: "disagreeButton" }), "COUNTERSIGN" === this.buttonInfo.processingMode && this.buttonInfo.showButtonAddCounter && i2.push({ i18nButtonName: this.i18nButtonName(this.buttonInfo.addSignerButton), permission: this.buttonsPermission.addSigner, type: "primary", clickFun: function() {
|
|
40
|
-
t.$emit(e2, "addSigner");
|
|
41
|
-
}, code: "addSignerButton" }), "COUNTERSIGN" === this.buttonInfo.processingMode && this.buttonInfo.showButtonDelCounter && i2.push({ i18nButtonName: this.i18nButtonName(this.buttonInfo.removeSignerButton), permission: this.buttonsPermission.removeSigner, type: "primary", clickFun: function() {
|
|
42
|
-
t.$emit(e2, "removeSigner");
|
|
43
|
-
}, code: "removeSignerButton" })), "WAIT_TRANSACT" === this.buttonInfo.active && "VOTE" === this.buttonInfo.processingMode && (i2.push({ i18nButtonName: this.i18nButtonName(this.buttonInfo.approveButton), permission: this.buttonsPermission.agreement, type: "primary", clickFun: function() {
|
|
44
|
-
e2.completeTask("AGREEMENT");
|
|
45
|
-
}, code: "approveButton" }), i2.push({ i18nButtonName: this.i18nButtonName(this.buttonInfo.opposeButton), permission: this.buttonsPermission.oppose, type: "primary", clickFun: function() {
|
|
46
|
-
e2.completeTask("OPPOSE");
|
|
47
|
-
}, code: "opposeButton" }), this.buttonInfo.showButtonKiken && i2.push({ i18nButtonName: this.i18nButtonName(this.buttonInfo.abstainButton), permission: this.buttonsPermission.kiken, type: "primary", clickFun: function() {
|
|
48
|
-
e2.completeTask("KIKEN");
|
|
49
|
-
}, code: "abstainButton" })), "WAIT_TRANSACT" === this.buttonInfo.active && "TYPE_READ" !== this.buttonInfo.processingMode && this.buttonInfo.showButtonCopy && (!this.hiddenBtns || this.hiddenBtns && -1 === this.hiddenBtns.indexOf("copyButton")) && this.buttonInfo.showButtonCopy && i2.push({ i18nButtonName: this.i18nButtonName(this.buttonInfo.copyButton), permission: this.buttonsPermission.copyTask, type: "", clickFun: function() {
|
|
50
|
-
t.$emit(e2, "createCopyTask");
|
|
51
|
-
}, code: "copyButton" }), "TYPE_READ" === this.buttonInfo.processingMode || "WAIT_TRANSACT" !== this.buttonInfo.active && "DRAW_WAIT" !== this.buttonInfo.active || this.hiddenBtns && (!this.hiddenBtns || -1 !== this.hiddenBtns.indexOf("assignButton")) || !this.buttonInfo.showButtonAppoint || i2.push({ i18nButtonName: this.i18nButtonName(this.buttonInfo.appointButton), permission: this.buttonsPermission.assign, type: "", clickFun: function() {
|
|
52
|
-
t.$emit(e2, "assignTask");
|
|
53
|
-
}, code: "appointButton" });
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
"bottomRight" === this.formButtonPosition ? (this.buttons = i2.slice().reverse(), this.slotBefore = "after", this.slotAfter = "before") : this.buttons = i2;
|
|
57
|
-
}, mounted() {
|
|
58
|
-
}, methods: { exportReportButt() {
|
|
59
|
-
t.$emit(this, "exportReport");
|
|
60
|
-
}, completeTask(i2) {
|
|
61
|
-
t.$emit(this, "completeTask", i2);
|
|
62
|
-
}, i18nButtonName(t2) {
|
|
63
|
-
const i2 = "initVal:";
|
|
64
|
-
if (t2.indexOf(i2) >= 0) {
|
|
65
|
-
const e2 = t2.substring(t2.indexOf(i2) + 8);
|
|
66
|
-
return this.$t("workflowButton." + e2);
|
|
67
|
-
}
|
|
68
|
-
return t2;
|
|
69
|
-
}, getButtonsPermission() {
|
|
70
|
-
const t2 = "true", i2 = this.permissionPrefix ? this.permissionPrefix + ".completeTask" : t2;
|
|
71
|
-
return { save: this.permissionPrefix ? this.permissionPrefix + ".save" : t2, submitProcess: this.permissionPrefix ? this.permissionPrefix + ".submitProcess" : t2, approve: this.permissionPrefix ? this.permissionPrefix + ".approve" : i2, refuse: this.permissionPrefix ? this.permissionPrefix + ".refuse" : i2, submitTask: this.permissionPrefix ? this.permissionPrefix + ".submit" : i2, agreement: this.permissionPrefix ? this.permissionPrefix + ".agreement" : i2, oppose: this.permissionPrefix ? this.permissionPrefix + ".oppose" : i2, kiken: this.permissionPrefix ? this.permissionPrefix + ".kiken" : i2, readed: this.permissionPrefix ? this.permissionPrefix + ".readed" : i2, drawTask: this.permissionPrefix ? this.permissionPrefix + ".drawTask" : t2, abandonReceive: this.permissionPrefix ? this.permissionPrefix + ".abandonReceive" : t2, retrieve: this.permissionPrefix ? this.permissionPrefix + ".retrieve" : t2, update: this.permissionPrefix ? this.permissionPrefix + ".update" : t2, assign: this.permissionPrefix ? this.permissionPrefix + ".assign" : t2, selectTransactor: this.permissionPrefix ? this.permissionPrefix + ".selectTransactor" : t2, selectTache: this.permissionPrefix ? this.permissionPrefix + ".selectTache" : t2, copyTask: this.permissionPrefix ? this.permissionPrefix + ".copyTask" : t2, addSigner: this.permissionPrefix ? this.permissionPrefix + ".addSigner" : t2, removeSigner: this.permissionPrefix ? this.permissionPrefix + ".removeSigner" : t2, exportReport: this.permissionPrefix ? this.permissionPrefix + ".exportReport" : t2, drawDeptTask: this.permissionPrefix ? this.permissionPrefix + ".drawDeptTask" : t2, abandonDrawDeptTask: this.permissionPrefix ? this.permissionPrefix + ".abandonDrawDeptTask" : t2 };
|
|
72
|
-
}, isDeptTask() {
|
|
73
|
-
}, showRetrieve() {
|
|
74
|
-
return "COMPLETED" === this.buttonInfo.active && ("TYPE_READ" !== this.buttonInfo.processingMode && (!!this.buttonInfo.showButtonGetBack && (!this.hiddenBtns || -1 === this.hiddenBtns.indexOf("retrieveButton"))));
|
|
75
|
-
} }, emits: ["completeTask", "save", "submitProcess", "update", "selectTransactors", "selectTaches", "drawTask", "abandonDraw", "retrieveTask", "addSigner", "removeSigner", "createCopyTask", "assignTask", "exportReport", ,] }, o = { key: 0, class: "operation-area" }, r = { key: 1, class: "operation-area" };
|
|
76
|
-
const u = s(n, [["render", function(t2, i2, s2, n2, u2, a) {
|
|
77
|
-
const h = e.resolveComponent("el-button"), p = e.resolveDirective("permission");
|
|
78
|
-
return e.openBlock(), e.createElementBlock("span", null, [void 0 !== s2.buttonInfo.theTransactor && false === s2.buttonInfo.theTransactor ? (e.openBlock(), e.createElementBlock("span", o, [e.renderSlot(t2.$slots, u2.slotBefore), e.renderSlot(t2.$slots, "errorArea"), e.renderSlot(t2.$slots, u2.slotAfter)])) : (e.openBlock(), e.createElementBlock("span", r, [e.renderSlot(t2.$slots, u2.slotBefore), (e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(u2.buttons, (i3, n3) => e.withDirectives((e.openBlock(), e.createBlock(h, { key: n3, class: e.normalizeClass(i3.code ? i3.code : ""), disabled: s2.disabled ? s2.disabled : t2.preventReclick, type: i3.type, onClick: i3.clickFun }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(i3.i18nButtonName), 1)]), _: 2 }, 1032, ["class", "disabled", "type", "onClick"])), [[p, i3.permission]])), 128)), e.renderSlot(t2.$slots, u2.slotAfter)]))]);
|
|
79
|
-
}]]);
|
|
80
|
-
module.exports = u;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("../../src/utils/workflow-util.cjs"), t = require("../../src/utils/util.cjs"), o = require("./api.cjs"), i = require("dayjs"), r = require("vue");
|
|
3
|
-
require("./workflow-history-list.vue2.cjs");
|
|
4
|
-
const l = require("../../_virtual/_plugin-vue_export-helper.cjs"), s = { name: "WorkflowHistoryList", props: { workflowId: { type: Number, default: null }, historyList: { type: Array, default: null }, allProcessI18n: { type: Object, default: null }, maxHeight: { type: [String, Number], default: null }, beanName: { type: String, default: null }, entityName: { type: String, default: null } }, data() {
|
|
5
|
-
let e2 = null;
|
|
6
|
-
return this.historyList && this.historyList.length > 0 && (e2 = [].concat(this.historyList)), { loaded: false, histories: e2, processI18n: null, processNameI18n: null, tableMaxHeight: null, tableHeight: null, showProcessingDuration: false };
|
|
7
|
-
}, computed: {}, provide: () => ({}), created() {
|
|
8
|
-
this.workflowId, void 0 !== this.workflowId && null !== this.workflowId ? this.getI18nSet().then((e2) => {
|
|
9
|
-
this.processI18n = e2, this.histories && null !== this.histories ? this.loaded = true : this.getData();
|
|
10
|
-
}) : this.initTableData();
|
|
11
|
-
}, mounted() {
|
|
12
|
-
this.$nextTick(() => {
|
|
13
|
-
this.tableHeight = window.innerHeight - 120;
|
|
14
|
-
});
|
|
15
|
-
}, methods: { ...o, getData() {
|
|
16
|
-
if (this.beanName || this.entityName) {
|
|
17
|
-
const e2 = { beanName: this.beanName, entityName: this.entityName, workflowId: this.workflowId };
|
|
18
|
-
this.$http.post(window.$vueApp.config.globalProperties.baseURL + "/dsc/workflow-commons/instance-histories", e2).then((e3) => {
|
|
19
|
-
this.handleHistory(e3);
|
|
20
|
-
}).catch((e3) => {
|
|
21
|
-
this.loaded = true;
|
|
22
|
-
});
|
|
23
|
-
} else
|
|
24
|
-
this.$http.get(window.$vueApp.config.globalProperties.baseAPI + "/wf-editor/instance-histories/" + this.workflowId).then((e2) => {
|
|
25
|
-
this.handleHistory(e2);
|
|
26
|
-
}).catch((e2) => {
|
|
27
|
-
this.loaded = true;
|
|
28
|
-
});
|
|
29
|
-
}, handleHistory(e2) {
|
|
30
|
-
this.histories = e2.histories, e2 && e2.currentTasks && (this.histories = this.histories.concat(e2.currentTasks)), this.computeStayDurations(this.histories), this.loaded = true, this.maxHeight ? this.tableMaxHeight = Number(this.maxHeight) : (this.$parent.$el.offsetHeight && (this.tableMaxHeight = this.$parent.$el.offsetHeight), this.tableMaxHeight || (this.tableMaxHeight = window.innerHeight - 120));
|
|
31
|
-
}, initTableData(e2) {
|
|
32
|
-
e2 ? (this.histories = e2.histories, e2 && e2.currentTasks && (this.histories = this.histories.concat(e2.currentTasks))) : this.histories = [], this.computeStayDurations(this.histories), this.loaded = true, this.maxHeight ? this.tableMaxHeight = Number(this.maxHeight) : (this.$parent && this.$parent.$el && this.$parent.$el.offsetHeight && (this.tableMaxHeight = this.$parent.$el.offsetHeight), this.tableMaxHeight || (this.tableMaxHeight = window.innerHeight - 120));
|
|
33
|
-
}, getI18nSet() {
|
|
34
|
-
return new Promise((e2, t2) => {
|
|
35
|
-
this.allProcessI18n ? e2(this.allProcessI18n) : this.$http.get(window.$vueApp.config.globalProperties.baseAPI + "/wf-editor/i18n-settings/get-bundle-info?workflowId=" + this.workflowId).then((t3) => {
|
|
36
|
-
e2(t3);
|
|
37
|
-
}).catch((e3) => {
|
|
38
|
-
t2(e3);
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
}, i18nOperation(o2) {
|
|
42
|
-
let i2, r2;
|
|
43
|
-
const l2 = t.getLanguageWithLocale(), s2 = o2.bundleCode;
|
|
44
|
-
return s2 && "" !== s2 && this.processI18n && (i2 = this.processI18n[s2]), i2 && i2.processName && (r2 = i2.processName[l2]), e.i18nOperation(o2, r2, i2, l2);
|
|
45
|
-
}, i18nTaskName(e2) {
|
|
46
|
-
let o2;
|
|
47
|
-
const i2 = e2.bundleCode;
|
|
48
|
-
i2 && "" !== i2 && this.processI18n && (o2 = this.processI18n[i2]);
|
|
49
|
-
let r2 = null;
|
|
50
|
-
const l2 = e2.i18nKey;
|
|
51
|
-
if (l2 && o2 && o2[l2]) {
|
|
52
|
-
const e3 = t.getLanguageWithLocale();
|
|
53
|
-
r2 = o2[l2][e3];
|
|
54
|
-
}
|
|
55
|
-
return r2 && null !== r2 || (r2 = e2.taskName), r2;
|
|
56
|
-
}, getChildren(e2, t2, o2) {
|
|
57
|
-
o2(e2.children);
|
|
58
|
-
}, computeStayDurations(e2) {
|
|
59
|
-
if (e2 && 0 !== e2.length)
|
|
60
|
-
for (let t2 = 0; t2 < e2.length; t2++) {
|
|
61
|
-
const o2 = e2[t2];
|
|
62
|
-
if (o2.processingDuration && (this.showProcessingDuration = true), 0 === t2) {
|
|
63
|
-
o2.stayDuration = "N/A";
|
|
64
|
-
continue;
|
|
65
|
-
}
|
|
66
|
-
const r2 = e2[t2 - 1];
|
|
67
|
-
if (!(o2 && r2 && o2.createdTime && r2.createdTime))
|
|
68
|
-
continue;
|
|
69
|
-
const l2 = i(o2.createdTime).diff(i(r2.createdTime));
|
|
70
|
-
if (!l2 || l2 <= 0) {
|
|
71
|
-
o2.stayDuration = "N/A";
|
|
72
|
-
continue;
|
|
73
|
-
}
|
|
74
|
-
const s2 = Math.max(1, Math.ceil(l2 / 6e4)), a2 = 1440, n2 = Math.floor(s2 / a2), c2 = s2 % a2, h2 = Math.floor(c2 / 60), p2 = c2 % 60;
|
|
75
|
-
let y2 = [];
|
|
76
|
-
n2 > 0 && y2.push(n2 + this.$t("IntervalSelection.tian")), h2 > 0 && y2.push(h2 + this.$t("IntervalSelection.hour")), p2 > 0 && y2.push(p2 + this.$t("IntervalSelection.minute")), 0 === y2.length && y2.push("0" + this.$t("IntervalSelection.minute")), o2.stayDuration = y2.join("");
|
|
77
|
-
}
|
|
78
|
-
} } }, a = { key: 0 }, n = { key: 1 }, c = { key: 2, style: { color: "#e6a23c" } }, h = { key: 3 }, p = { key: 4, style: { color: "red" } }, y = { key: 0 }, w = { key: 1 }, k = { key: 0 }, d = { key: 1 }, u = { key: 0 }, g = { key: 1 }, m = { key: 0 }, f = { key: 1 }, B = { key: 0 }, b = { key: 1 }, S = { key: 0 }, N = { key: 0 }, D = { key: 1 }, E = { key: 0 }, T = { key: 1 }, H = { key: 0, class: "red-circle" }, x = { key: 1, class: "green-circle" }, C = { key: 0 }, $ = { key: 1, style: { color: "#e6a23c" } }, _ = { key: 2 }, L = { key: 0 }, I = { key: 1 };
|
|
79
|
-
const P = l(s, [["render", function(e2, t2, o2, i2, l2, s2) {
|
|
80
|
-
const P2 = r.resolveComponent("el-table-column"), v = r.resolveComponent("el-tag"), V = r.resolveComponent("el-table");
|
|
81
|
-
return l2.loaded ? (r.openBlock(), r.createBlock(V, { key: 0, ref: "historyList", data: l2.histories, height: l2.tableHeight, load: s2.getChildren, "max-height": l2.tableMaxHeight, "tree-props": { children: "children", hasChildren: "hasChildren" }, border: "", "element-loading-text": "Loading", fit: "", "highlight-current-row": "", lazy: "", "row-key": "uuid", style: { width: "100%" } }, { default: r.withCtx(() => [r.createVNode(P2, { label: e2.$t("workflowHistoryList.index"), align: "center", width: "60" }, { default: r.withCtx((e3) => [r.createTextVNode(r.toDisplayString(e3.$index + 1), 1)]), _: 1 }, 8, ["label"]), r.createVNode(P2, { label: e2.$t("workflowHistoryList.taskName"), align: "center" }, { default: r.withCtx((t3) => [t3.row.historyType && "PROCESS_START" === t3.row.historyType ? (r.openBlock(), r.createElementBlock("span", a, r.toDisplayString(e2.$t("workflowHistoryList.processStart")), 1)) : t3.row.historyType && "PROCESS_END" === t3.row.historyType ? (r.openBlock(), r.createElementBlock("span", n, r.toDisplayString(e2.$t("workflowHistoryList.processEnd")), 1)) : t3.row.current ? (r.openBlock(), r.createElementBlock("span", c, r.toDisplayString(s2.i18nTaskName(t3.row)), 1)) : t3.row.special ? true === t3.row.special ? (r.openBlock(), r.createElementBlock("span", p, r.toDisplayString(s2.i18nTaskName(t3.row) + "[" + e2.$t("workflowHistoryList.specailText") + "]"), 1)) : r.createCommentVNode("", true) : (r.openBlock(), r.createElementBlock("span", h, r.toDisplayString(s2.i18nTaskName(t3.row)), 1))]), _: 1 }, 8, ["label"]), r.createVNode(P2, { label: e2.$t("workflowHistoryList.operator"), align: "center", width: "80" }, { default: r.withCtx((e3) => [e3.row.historyType && "PROCESS_END" === e3.row.historyType ? (r.openBlock(), r.createElementBlock("span", y)) : (r.openBlock(), r.createElementBlock("span", w, r.toDisplayString(e3.row.creatorName), 1))]), _: 1 }, 8, ["label"]), r.createVNode(P2, { label: e2.$t("workflowHistoryList.operatorLg"), align: "center", width: "120" }, { default: r.withCtx((e3) => [e3.row.historyType && "PROCESS_END" === e3.row.historyType ? (r.openBlock(), r.createElementBlock("span", k)) : (r.openBlock(), r.createElementBlock("span", d, r.toDisplayString(e3.row.creator), 1))]), _: 1 }, 8, ["label"]), r.createVNode(P2, { label: e2.$t("workflowHistoryList.operatorDept"), align: "center" }, { default: r.withCtx((e3) => [e3.row.historyType && "PROCESS_END" === e3.row.historyType ? (r.openBlock(), r.createElementBlock("span", u)) : (r.openBlock(), r.createElementBlock("span", g, r.toDisplayString(e3.row.departmentName), 1))]), _: 1 }, 8, ["label"]), r.createVNode(P2, { label: e2.$t("workflowHistoryList.operationTime"), align: "center" }, { default: r.withCtx((e3) => [e3.row.historyType && "PROCESS_END" === e3.row.historyType ? (r.openBlock(), r.createElementBlock("span", m)) : (r.openBlock(), r.createElementBlock("span", f, r.toDisplayString(e3.row.formatCreatedTime), 1))]), _: 1 }, 8, ["label"]), r.createVNode(P2, { label: e2.$t("workflowHistoryList.stayDuration"), align: "center", width: "90" }, { default: r.withCtx((e3) => [e3.row.historyType && "PROCESS_END" === e3.row.historyType ? (r.openBlock(), r.createElementBlock("span", B)) : e3.row.copyTask ? r.createCommentVNode("", true) : (r.openBlock(), r.createElementBlock("span", b, r.toDisplayString(e3.row.stayDuration), 1))]), _: 1 }, 8, ["label"]), r.createVNode(P2, { label: e2.$t("workflowHistoryList.taskState"), align: "center", width: "90" }, { default: r.withCtx((t3) => [t3.row.historyType && "PROCESS_END" === t3.row.historyType ? (r.openBlock(), r.createElementBlock("span", S)) : t3.row.current ? (r.openBlock(), r.createBlock(v, { key: 1, type: "warning" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowHistoryList.taskStateDoing")), 1)]), _: 1 })) : (r.openBlock(), r.createBlock(v, { key: 2, type: "success" }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowHistoryList.taskStateDone")), 1)]), _: 1 }))]), _: 1 }, 8, ["label"]), l2.showProcessingDuration ? (r.openBlock(), r.createBlock(P2, { key: 0, label: e2.$t("workflowHistoryList.processingDuration"), align: "center", width: "110" }, { default: r.withCtx((e3) => [e3.row.historyType && "PROCESS_END" === e3.row.historyType ? (r.openBlock(), r.createElementBlock("span", N)) : e3.row.copyTask ? r.createCommentVNode("", true) : (r.openBlock(), r.createElementBlock("span", D, r.toDisplayString(e3.row.processingDuration), 1))]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true), l2.showProcessingDuration ? (r.openBlock(), r.createBlock(P2, { key: 1, label: e2.$t("workflowHistoryList.isOverdue"), align: "center", width: "90" }, { default: r.withCtx((e3) => [e3.row.historyType && "PROCESS_END" === e3.row.historyType ? (r.openBlock(), r.createElementBlock("span", E)) : (r.openBlock(), r.createElementBlock("span", T, [e3.row.overdueDuration && e3.row.overdueDuration > 0 ? (r.openBlock(), r.createElementBlock("div", H)) : (r.openBlock(), r.createElementBlock("div", x))]))]), _: 1 }, 8, ["label"])) : r.createCommentVNode("", true), r.createVNode(P2, { label: e2.$t("workflowHistoryList.operation"), align: "left" }, { default: r.withCtx((t3) => [t3.row.historyType && "PROCESS_END" === t3.row.historyType ? (r.openBlock(), r.createElementBlock("span", C)) : t3.row.current ? (r.openBlock(), r.createElementBlock("span", $, r.toDisplayString(t3.row.transactionResult) + " " + r.toDisplayString(e2.$t("workflowHistoryList.toDoText")), 1)) : (r.openBlock(), r.createElementBlock("span", _, r.toDisplayString(s2.i18nOperation(t3.row)), 1))]), _: 1 }, 8, ["label"]), r.createVNode(P2, { label: e2.$t("workflowHistoryList.opinion"), align: "left" }, { default: r.withCtx((e3) => [e3.row.historyType && "PROCESS_END" === e3.row.historyType ? (r.openBlock(), r.createElementBlock("span", L)) : (r.openBlock(), r.createElementBlock("span", I, r.toDisplayString(e3.row.opinion), 1))]), _: 1 }, 8, ["label"]), r.createVNode(P2, { label: e2.$t("workflowHistoryList.remark"), align: "left" }, { default: r.withCtx((e3) => [r.createElementVNode("span", null, r.toDisplayString(e3.row.remark), 1)]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "height", "load", "max-height"])) : r.createCommentVNode("", true);
|
|
82
|
-
}], ["__scopeId", "data-v-998f4283"]]);
|
|
83
|
-
module.exports = P;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("../../utils/gogocodeTransfer.cjs"), o = require("../../workgroup-tree-inline/src/workgroup-tree-inline.vue.cjs"), t = require("../../workgroup-tree-mobile/src/workgroup-tree-app.vue.cjs");
|
|
3
|
-
require("../../workgroup-tree-mobile/src/workgroup-tree-app.vue2.cjs");
|
|
4
|
-
const l = require("../../src/utils/common-util.cjs"), r = require("vue"), i = require("../../_virtual/_plugin-vue_export-helper.cjs"), n = { name: "WorkgroupTree", components: { InlineWorkgroupTree: o, WorkgroupMobileTree: t }, props: { multiple: { type: Boolean, default: true }, branchInfo: { type: Array, default: null }, title: { type: String, default: null }, width: { type: String, default: "60%" }, selectWorkgroupInfo: { type: [String, Number], default: null }, searchField: { type: String, default: "code" }, separator: { type: String, default: "," }, limitFilterColumn: { type: String, default: "code" } }, data() {
|
|
5
|
-
let e2 = this.$t("imatrixUIMessage.pleaseSelectATeam");
|
|
6
|
-
this.title && (e2 = this.title);
|
|
7
|
-
return { myTitle: e2, isMobile: l.isMobileBrowser() };
|
|
8
|
-
}, methods: { result(o2) {
|
|
9
|
-
e.$emit(this, "close", o2);
|
|
10
|
-
}, selectWorkgroup() {
|
|
11
|
-
this.$refs.workgroupTree.selectWorkgroup();
|
|
12
|
-
} }, emits: ["open", "opend", "close", "closed", "opend", "close", "closed"] }, s = { class: "dialog-footer" };
|
|
13
|
-
const u = i(n, [["render", function(e2, o2, t2, l2, i2, n2) {
|
|
14
|
-
const u2 = r.resolveComponent("WorkgroupMobileTree"), c = r.resolveComponent("inline-workgroup-tree"), p = r.resolveComponent("el-button"), a = r.resolveComponent("el-dialog");
|
|
15
|
-
return r.openBlock(), r.createElementBlock("div", null, [i2.isMobile ? (r.openBlock(), r.createBlock(u2, { key: 0, ref: "workgroupTree", "close-on-click-modal": false, "close-on-press-escape": false, "branch-info": t2.branchInfo, multiple: t2.multiple, "search-field": t2.searchField, "select-workgroup-info": t2.selectWorkgroupInfo, "limit-filter-column": t2.limitFilterColumn, separator: t2.separator, onClose: n2.result }, null, 8, ["branch-info", "multiple", "search-field", "select-workgroup-info", "limit-filter-column", "separator", "onClose"])) : (r.openBlock(), r.createBlock(a, { key: 1, "close-on-click-modal": false, title: i2.myTitle, width: t2.multiple ? "60%" : "40%", "append-to-body": "", class: "user-tree", "model-value": "", onClose: o2[1] || (o2[1] = (o3) => e2.$emit("close")), onClosed: o2[2] || (o2[2] = (o3) => e2.$emit("closed")), onOpen: o2[3] || (o2[3] = (o3) => e2.$emit("open")), onOpend: o2[4] || (o2[4] = (o3) => e2.$emit("opend")) }, { footer: r.withCtx(() => [r.createElementVNode("div", s, [r.createVNode(p, { class: "button--default", size: "default", onClick: o2[0] || (o2[0] = (o3) => e2.$emit("close")) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("imatrixUIPublicModel.cancel")), 1)]), _: 1 }), r.createVNode(p, { size: "default", type: "primary", onClick: n2.selectWorkgroup }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("imatrixUIPublicModel.sure")), 1)]), _: 1 }, 8, ["onClick"])])]), default: r.withCtx(() => [r.createVNode(c, { ref: "workgroupTree", "branch-info": t2.branchInfo, "limit-filter-column": t2.limitFilterColumn, multiple: t2.multiple, onResult: n2.result }, null, 8, ["branch-info", "limit-filter-column", "multiple", "onResult"])]), _: 1 }, 8, ["title", "width"]))]);
|
|
16
|
-
}]]);
|
|
17
|
-
module.exports = u;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("@element-plus/icons-vue"), t = require("../../utils/gogocodeTransfer.cjs"), l = require("vue");
|
|
3
|
-
require("./search-result.vue2.cjs");
|
|
4
|
-
const o = require("../../_virtual/_plugin-vue_export-helper.cjs"), r = { data() {
|
|
5
|
-
let t2 = this.height;
|
|
6
|
-
t2 = t2.substring(0, t2.indexOf("px"));
|
|
7
|
-
return { singleWorkgroupIndex: null, selectedWorkgroup: null, myHeight: parseInt(t2) + 30 + "px", language: window.$locale ? window.$locale : "cn", ElIconPlus: e.Plus, ElIconDelete: e.Delete };
|
|
8
|
-
}, name: "WorkgroupResult", props: { gridData: { type: Array, default: null }, multiple: { type: Boolean, default: false }, isSearchResult: { type: Boolean, default: true }, height: { type: String, default: "300px" }, selectResult: { type: Array, default: function() {
|
|
9
|
-
return [];
|
|
10
|
-
} } }, created() {
|
|
11
|
-
}, methods: { removeWorkgroup(e2, l2) {
|
|
12
|
-
t.$emit(this, "removeWorkgroup", e2, l2);
|
|
13
|
-
}, addWorkgroup(e2, l2) {
|
|
14
|
-
t.$emit(this, "addWorkgroup", e2, JSON.parse(JSON.stringify(l2)));
|
|
15
|
-
}, selectWorkgroup(e2) {
|
|
16
|
-
t.$emit(this, "selectResult", this.gridData[e2]);
|
|
17
|
-
}, rowClick(e2, l2, o2) {
|
|
18
|
-
this.singleWorkgroupIndex = e2.row_index, t.$emit(this, "selectResult", e2);
|
|
19
|
-
}, tableRowClassName({ row: e2, rowIndex: t2 }) {
|
|
20
|
-
e2.row_index = t2;
|
|
21
|
-
}, rowDblclick(e2, l2, o2) {
|
|
22
|
-
this.multiple ? t.$emit(this, "addWorkgroup", null, e2) : t.$emit(this, "resultRowDblclick", e2);
|
|
23
|
-
}, isDisable(e2) {
|
|
24
|
-
if (this.selectResult) {
|
|
25
|
-
const t2 = this.selectResult.filter(this.filterWorkgroup(e2));
|
|
26
|
-
if (t2 && t2.length > 0)
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
return false;
|
|
30
|
-
}, filterWorkgroup: (e2) => (t2) => t2.id === e2.id }, emits: ["removeWorkgroup", "addWorkgroup", "selectResult", "resultRowDblclick", ,] }, i = { style: { height: "100%" } }, a = ["title"], n = ["title"], s = ["title"];
|
|
31
|
-
const c = o(r, [["render", function(e2, t2, o2, r2, c2, d) {
|
|
32
|
-
const u = l.resolveComponent("el-radio"), p = l.resolveComponent("el-table-column"), g = l.resolveComponent("el-button"), m = l.resolveComponent("el-table");
|
|
33
|
-
return l.openBlock(), l.createElementBlock("div", i, [l.createVNode(m, { ref: "superGrid", data: o2.gridData, "max-height": c2.myHeight, "row-class-name": d.tableRowClassName, border: "", fit: "", "row-key": "id", onRowClick: d.rowClick, onRowDblclick: d.rowDblclick }, { default: l.withCtx(() => [false === o2.multiple ? (l.openBlock(), l.createBlock(p, { key: 0, fixed: "", width: "60" }, { default: l.withCtx((e3) => [l.createVNode(u, { modelValue: c2.singleWorkgroupIndex, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => c2.singleWorkgroupIndex = e4), label: e3.$index, onChange: d.selectWorkgroup }, { default: l.withCtx(() => [l.createTextVNode(l.toDisplayString(e3.$index + 1), 1)]), _: 2 }, 1032, ["modelValue", "label", "onChange"])]), _: 1 })) : l.createCommentVNode("", true), o2.multiple && o2.isSearchResult ? (l.openBlock(), l.createBlock(p, { key: 1, label: e2.$t("imatrixUIPublicModel.edit"), align: "center", fixed: "", width: "60px" }, { default: l.withCtx((e3) => [l.createElementVNode("div", null, [l.createVNode(g, { disabled: d.isDisable(e3.row), icon: c2.ElIconPlus, circle: "", size: "default", type: "primary", onClick: (t3) => d.addWorkgroup(e3.$index, e3.row) }, null, 8, ["disabled", "icon", "onClick"])])]), _: 1 }, 8, ["label"])) : l.createCommentVNode("", true), o2.multiple && !o2.isSearchResult ? (l.openBlock(), l.createBlock(p, { key: 2, label: e2.$t("imatrixUIPublicModel.edit"), align: "center", fixed: "", width: "60px" }, { default: l.withCtx((e3) => [l.createElementVNode("div", null, [l.createVNode(g, { icon: c2.ElIconDelete, circle: "", size: "default", type: "danger", onClick: (t3) => d.removeWorkgroup(e3.$index, e3.row) }, null, 8, ["icon", "onClick"])])]), _: 1 }, 8, ["label"])) : l.createCommentVNode("", true), o2.multiple ? (l.openBlock(), l.createBlock(p, { key: 3, label: e2.$t("superGrid.index"), align: "center", width: "60px" }, { default: l.withCtx((e3) => [l.createTextVNode(l.toDisplayString(e3.$index + 1), 1)]), _: 1 }, 8, ["label"])) : l.createCommentVNode("", true), l.createVNode(p, { label: e2.$t("workgroupTree.workingGroupName"), width: 110, prop: "name" }, { default: l.withCtx((e3) => [l.createElementVNode("span", { title: e3.row.name, class: "ellipsis cell--span" }, l.toDisplayString(e3.row.name), 9, a)]), _: 1 }, 8, ["label"]), l.createVNode(p, { label: e2.$t("workgroupTree.workingGroupNumber"), width: 110, prop: "code" }, { default: l.withCtx((e3) => [l.createElementVNode("span", { title: e3.row.code, class: "ellipsis cell--span" }, l.toDisplayString(e3.row.code), 9, n)]), _: 1 }, 8, ["label"]), l.createVNode(p, { label: e2.$t("workgroupTree.workgroupDescription"), width: 300, prop: "description" }, { default: l.withCtx((e3) => [l.createElementVNode("span", { title: e3.row.description, class: "ellipsis cell--span" }, l.toDisplayString(e3.row.description), 9, s)]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "max-height", "row-class-name", "onRowClick", "onRowDblclick"])]);
|
|
34
|
-
}]]);
|
|
35
|
-
module.exports = c;
|