@arkxos/arkos-system 0.1.0
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/README.md +36 -0
- package/ark_dist/664d11f069eab128.css +2 -0
- package/ark_dist/ArkOsConfig.js +136 -0
- package/ark_dist/ark-meta.json +92 -0
- package/ark_dist/ark_userChunk_1.js +3 -0
- package/ark_dist/ark_userChunk_2.js +5 -0
- package/ark_dist/ark_userChunk_3.js +49 -0
- package/ark_dist/config.js +75 -0
- package/ark_dist/css/views/views-flow-flow.ca26b106.css +5784 -0
- package/ark_dist/favicon.ico +0 -0
- package/ark_dist/fonts/bpmn.5d33bee4.eot +0 -0
- package/ark_dist/fonts/bpmn.67058807.woff2 +0 -0
- package/ark_dist/fonts/bpmn.b5c9250d.ttf +0 -0
- package/ark_dist/fonts/bpmn.e9e7d076.woff +0 -0
- package/ark_dist/img/404.png +0 -0
- package/ark_dist/img/auth_banner.jpg +0 -0
- package/ark_dist/img/avatar.jpg +0 -0
- package/ark_dist/img/avatar2.gif +0 -0
- package/ark_dist/img/avatar3.gif +0 -0
- package/ark_dist/img/bpmn.74eea12b.svg +224 -0
- package/ark_dist/img/loginbg.svg +1 -0
- package/ark_dist/img/logo-r.png +0 -0
- package/ark_dist/img/logo.png +0 -0
- package/ark_dist/img/mobile-bg.d055fadc.png +0 -0
- package/ark_dist/img/no-widgets.svg +57 -0
- package/ark_dist/img/tasks-example.png +0 -0
- package/ark_dist/img/ver.svg +236 -0
- package/ark_dist/index.html +118 -0
- package/ark_dist/js/app.e39a548a.js +1 -0
- package/ark_dist/js/views/views-flow-flow.84dc5300.js +3 -0
- package/ark_dist/js/views/views-flow-flow.84dc5300.js.LICENSE.txt +182 -0
- package/ark_dist/js/views/views-flow-flow.84dc5300.js.map +1 -0
- package/ark_proxy/entry.js +28 -0
- package/ark_proxy_es/entry.js +16 -0
- package/package.json +173 -0
- package/scripts/check.js +13 -0
- package/scripts/meta.js +21 -0
- package/scripts/prepublishOnly.js +28 -0
- package/src/admin/App.vue +13 -0
- package/src/admin/bpmn/custom/context-pad.js +405 -0
- package/src/admin/bpmn/custom/index.js +8 -0
- package/src/admin/bpmn/custom/palette.js +159 -0
- package/src/admin/bpmn/properties-panel/PropertiesView.vue +620 -0
- package/src/admin/bpmn/translate.js +23 -0
- package/src/admin/bpmn/translations.js +211 -0
- package/src/admin/components/affix/index.vue +385 -0
- package/src/admin/components/area-select/index.vue +52 -0
- package/src/admin/components/buttons/index.vue +47 -0
- package/src/admin/components/checkbox/index.vue +83 -0
- package/src/admin/components/code/code.js +149 -0
- package/src/admin/components/code/index.vue +450 -0
- package/src/admin/components/color/index.vue +30 -0
- package/src/admin/components/color-picker/index.vue +57 -0
- package/src/admin/components/color-scheme/index.vue +234 -0
- package/src/admin/components/condition-list/index.vue +170 -0
- package/src/admin/components/date/index.vue +29 -0
- package/src/admin/components/datetime/index.vue +45 -0
- package/src/admin/components/default-value-tips/index.vue +44 -0
- package/src/admin/components/dict-buttons/index.vue +53 -0
- package/src/admin/components/dict-checkbox/index.vue +45 -0
- package/src/admin/components/dict-radio/index.vue +68 -0
- package/src/admin/components/dict-select/index.vue +93 -0
- package/src/admin/components/dict-selects/index.vue +105 -0
- package/src/admin/components/dict-switch/index.vue +64 -0
- package/src/admin/components/dict-tree/index.vue +17 -0
- package/src/admin/components/dm-tree/index.vue +224 -0
- package/src/admin/components/edit-table/index.vue +171 -0
- package/src/admin/components/employee-tree/index.vue +247 -0
- package/src/admin/components/employees-tree/index.vue +80 -0
- package/src/admin/components/entp-tree/index.vue +266 -0
- package/src/admin/components/file/index.vue +310 -0
- package/src/admin/components/form/index.vue +141 -0
- package/src/admin/components/icon/index.vue +77 -0
- package/src/admin/components/icon-buttons/index.vue +52 -0
- package/src/admin/components/icon-select/index.vue +140 -0
- package/src/admin/components/image/index.vue +207 -0
- package/src/admin/components/index.js +16 -0
- package/src/admin/components/input/index.vue +41 -0
- package/src/admin/components/local-img/index.vue +49 -0
- package/src/admin/components/multiple-input/index.vue +64 -0
- package/src/admin/components/multiple-number/index.vue +70 -0
- package/src/admin/components/number/index.vue +134 -0
- package/src/admin/components/organization/index.vue +303 -0
- package/src/admin/components/organization-tree/index.vue +269 -0
- package/src/admin/components/page/index.vue +149 -0
- package/src/admin/components/password/index.vue +21 -0
- package/src/admin/components/radio/index.vue +46 -0
- package/src/admin/components/region-tree/index.vue +269 -0
- package/src/admin/components/remote-select/index.vue +315 -0
- package/src/admin/components/rich-editor/index.vue +152 -0
- package/src/admin/components/role-select/index.vue +58 -0
- package/src/admin/components/script-input/index.vue +97 -0
- package/src/admin/components/select/index.vue +105 -0
- package/src/admin/components/selects/index.vue +100 -0
- package/src/admin/components/style-list/index.vue +500 -0
- package/src/admin/components/switch/index.vue +54 -0
- package/src/admin/components/table/index.vue +920 -0
- package/src/admin/components/textarea/index.vue +28 -0
- package/src/admin/components/tree/index.vue +247 -0
- package/src/admin/components/tree-selects/index.vue +66 -0
- package/src/admin/components/unit-tree/index.vue +269 -0
- package/src/admin/console/index.vue +122 -0
- package/src/admin/layout/console/index.vue +15 -0
- package/src/admin/layout/fullscreen/index.vue +32 -0
- package/src/admin/layout/home/index.vue +11 -0
- package/src/admin/layout/index.vue +139 -0
- package/src/admin/layout/menu/index.vue +102 -0
- package/src/admin/layout/personnel/index.vue +166 -0
- package/src/admin/layout/search/index.vue +78 -0
- package/src/admin/main.js +30 -0
- package/src/admin/pinia/router.js +179 -0
- package/src/admin/router.js +91 -0
- package/src/admin/visual/comp-data.vue +1107 -0
- package/src/admin/visual/comp-event.vue +1677 -0
- package/src/admin/visual/components/app/list/goods/double.vue +184 -0
- package/src/admin/visual/components/app/list/nav/image.vue +114 -0
- package/src/admin/visual/components/app/list/nav/text.vue +130 -0
- package/src/admin/visual/components/button/index.vue +58 -0
- package/src/admin/visual/components/container/index.vue +37 -0
- package/src/admin/visual/components/custom-list/index.vue +127 -0
- package/src/admin/visual/components/data/index.vue +46 -0
- package/src/admin/visual/components/data-table/index.vue +203 -0
- package/src/admin/visual/components/echarts/annular.vue +140 -0
- package/src/admin/visual/components/echarts/bar.vue +115 -0
- package/src/admin/visual/components/echarts/funnel.vue +115 -0
- package/src/admin/visual/components/echarts/gauge.vue +158 -0
- package/src/admin/visual/components/echarts/line.vue +110 -0
- package/src/admin/visual/components/echarts/map.vue +150 -0
- package/src/admin/visual/components/echarts/pie.vue +114 -0
- package/src/admin/visual/components/echarts/radar.vue +145 -0
- package/src/admin/visual/components/echarts/scatter.vue +106 -0
- package/src/admin/visual/components/edit-table/index.vue +71 -0
- package/src/admin/visual/components/form/affix.vue +107 -0
- package/src/admin/visual/components/form/area.vue +76 -0
- package/src/admin/visual/components/form/buttons.vue +90 -0
- package/src/admin/visual/components/form/checkbox.vue +85 -0
- package/src/admin/visual/components/form/date-range.vue +61 -0
- package/src/admin/visual/components/form/date.vue +59 -0
- package/src/admin/visual/components/form/datetime.vue +59 -0
- package/src/admin/visual/components/form/employee-tree.vue +88 -0
- package/src/admin/visual/components/form/employees-tree.vue +6 -0
- package/src/admin/visual/components/form/image.vue +103 -0
- package/src/admin/visual/components/form/index.vue +59 -0
- package/src/admin/visual/components/form/input.vue +84 -0
- package/src/admin/visual/components/form/item.vue +68 -0
- package/src/admin/visual/components/form/number.vue +130 -0
- package/src/admin/visual/components/form/organization-tree.vue +88 -0
- package/src/admin/visual/components/form/password.vue +74 -0
- package/src/admin/visual/components/form/radio.vue +87 -0
- package/src/admin/visual/components/form/rate.vue +66 -0
- package/src/admin/visual/components/form/region-tree.vue +88 -0
- package/src/admin/visual/components/form/rich-editor.vue +94 -0
- package/src/admin/visual/components/form/select.vue +156 -0
- package/src/admin/visual/components/form/switch.vue +85 -0
- package/src/admin/visual/components/form/textarea.vue +62 -0
- package/src/admin/visual/components/form/unit-tree.vue +88 -0
- package/src/admin/visual/components/icon/index.vue +65 -0
- package/src/admin/visual/components/image/index.vue +170 -0
- package/src/admin/visual/components/index.js +44 -0
- package/src/admin/visual/components/list/block.vue +160 -0
- package/src/admin/visual/components/list/button.vue +80 -0
- package/src/admin/visual/components/list/card.vue +101 -0
- package/src/admin/visual/components/list/custom.vue +150 -0
- package/src/admin/visual/components/list/image.vue +116 -0
- package/src/admin/visual/components/list/news.vue +138 -0
- package/src/admin/visual/components/page/index.vue +88 -0
- package/src/admin/visual/components/page-comp/index.vue +110 -0
- package/src/admin/visual/components/portal-menu/index.vue +92 -0
- package/src/admin/visual/components/qrcode/index.vue +77 -0
- package/src/admin/visual/components/router-view/index.vue +12 -0
- package/src/admin/visual/components/row/index.vue +139 -0
- package/src/admin/visual/components/search/index.vue +40 -0
- package/src/admin/visual/components/tabs/index.vue +125 -0
- package/src/admin/visual/components/text/index.vue +64 -0
- package/src/admin/visual/components/video/index.vue +41 -0
- package/src/admin/visual/draggable.vue +49 -0
- package/src/admin/visual/editor.vue +602 -0
- package/src/admin/visual/js/app-form.config.js +1301 -0
- package/src/admin/visual/js/app.config.js +86 -0
- package/src/admin/visual/js/common.config.js +687 -0
- package/src/admin/visual/js/component.config.js +741 -0
- package/src/admin/visual/js/echarts.config.js +2440 -0
- package/src/admin/visual/js/form.config.js +2837 -0
- package/src/admin/visual/js/list.config.js +578 -0
- package/src/admin/visual/js/menu.config.js +62 -0
- package/src/admin/visual/js/visual-comp.js +48 -0
- package/src/admin/visual/tool.vue +1223 -0
- package/src/assets/images/background.jpg +0 -0
- package/src/assets/images/login-bg.jpg +0 -0
- package/src/assets/images/mobile-bg.png +0 -0
- package/src/assets/images/no-data.png +0 -0
- package/src/assets/style/base.css +48 -0
- package/src/assets/style/business.css +5 -0
- package/src/assets/style/code.css +36 -0
- package/src/assets/style/codeless.css +195 -0
- package/src/assets/style/flow.css +12 -0
- package/src/assets/style/global/blue.css +83 -0
- package/src/assets/style/global/default.css +71 -0
- package/src/assets/style/global/green.css +83 -0
- package/src/assets/style/global/purple.css +83 -0
- package/src/assets/style/global/red.css +83 -0
- package/src/assets/style/main.css +608 -0
- package/src/assets/style/menu/black.css +9 -0
- package/src/assets/style/menu/default.css +9 -0
- package/src/assets/style/menu/grey.css +9 -0
- package/src/assets/style/visual.css +204 -0
- package/src/auto-imports.d.ts +307 -0
- package/src/business/App.vue +131 -0
- package/src/business/components/dict-select/index.vue +88 -0
- package/src/business/components/index.js +13 -0
- package/src/business/components/input/index.vue +38 -0
- package/src/business/components/table/index.vue +928 -0
- package/src/business/home/index.vue +45 -0
- package/src/business/iframe/index.vue +63 -0
- package/src/business/layout/aside/history/history.vue +518 -0
- package/src/business/layout/aside/index.vue +116 -0
- package/src/business/layout/aside/menu/index.vue +47 -0
- package/src/business/layout/aside/menu/menuItem.vue +83 -0
- package/src/business/layout/aside/menu/submenu.vue +88 -0
- package/src/business/layout/fullscreen/index.vue +41 -0
- package/src/business/layout/header/index.vue +81 -0
- package/src/business/layout/header/menu/index.vue +47 -0
- package/src/business/layout/header/menu/menuItem.vue +43 -0
- package/src/business/layout/header/menu/submenu.vue +34 -0
- package/src/business/layout/home/index.vue +20 -0
- package/src/business/layout/index.vue +330 -0
- package/src/business/layout/message/index.vue +250 -0
- package/src/business/layout/personnel/index.vue +549 -0
- package/src/business/layout/search/index.vue +75 -0
- package/src/business/layout/subsystem/index.vue +124 -0
- package/src/business/main.js +36 -0
- package/src/business/pinia/menuBadge.js +58 -0
- package/src/business/pinia/router.js +190 -0
- package/src/business/router.js +98 -0
- package/src/choose/App.vue +203 -0
- package/src/choose/main.js +22 -0
- package/src/choose/router.js +33 -0
- package/src/codeless/components/affix/index.vue +393 -0
- package/src/codeless/components/affix-view/index.vue +244 -0
- package/src/codeless/components/buttons/index.vue +59 -0
- package/src/codeless/components/checkbox/index.vue +107 -0
- package/src/codeless/components/date/index.vue +105 -0
- package/src/codeless/components/datetime/index.vue +65 -0
- package/src/codeless/components/dialog-select/index.vue +170 -0
- package/src/codeless/components/dict-buttons/index.vue +97 -0
- package/src/codeless/components/dict-radio/index.vue +94 -0
- package/src/codeless/components/dict-select/index.vue +181 -0
- package/src/codeless/components/dict-selects/index.vue +145 -0
- package/src/codeless/components/dict-switch/index.vue +94 -0
- package/src/codeless/components/dict-tree/index.vue +116 -0
- package/src/codeless/components/edit-table/index.vue +160 -0
- package/src/codeless/components/employee-tree/index.vue +254 -0
- package/src/codeless/components/employees-tree/index.vue +87 -0
- package/src/codeless/components/entp-tree/index.vue +261 -0
- package/src/codeless/components/entps-tree/index.vue +93 -0
- package/src/codeless/components/icon/index.vue +65 -0
- package/src/codeless/components/image/index.vue +298 -0
- package/src/codeless/components/index.js +16 -0
- package/src/codeless/components/input/index.vue +63 -0
- package/src/codeless/components/number/index.vue +150 -0
- package/src/codeless/components/organization-tree/index.vue +262 -0
- package/src/codeless/components/organizations-tree/index.vue +79 -0
- package/src/codeless/components/password/index.vue +42 -0
- package/src/codeless/components/radio/index.vue +57 -0
- package/src/codeless/components/region-tree/index.vue +262 -0
- package/src/codeless/components/remote-distinct/index.vue +354 -0
- package/src/codeless/components/remote-select/index.vue +363 -0
- package/src/codeless/components/rich-editor/index.vue +159 -0
- package/src/codeless/components/roles/index.vue +68 -0
- package/src/codeless/components/select/index.vue +95 -0
- package/src/codeless/components/selects/index.vue +116 -0
- package/src/codeless/components/show-dict/index.vue +52 -0
- package/src/codeless/components/show-employees/index.vue +29 -0
- package/src/codeless/components/show-organizations/index.vue +29 -0
- package/src/codeless/components/show-roles/index.vue +45 -0
- package/src/codeless/components/signature-pad/index.vue +224 -0
- package/src/codeless/components/switch/index.vue +56 -0
- package/src/codeless/components/textarea/index.vue +37 -0
- package/src/codeless/components/tree/index.vue +244 -0
- package/src/codeless/components/unit-tree/index.vue +262 -0
- package/src/codeless/components/units-tree/index.vue +93 -0
- package/src/codeless/components/video/index.vue +255 -0
- package/src/codeless/components/video-view/index.vue +130 -0
- package/src/codeless/js/codeless.js +47 -0
- package/src/codeless/view/form-auto.vue +192 -0
- package/src/codeless/view/form-custom.vue +10 -0
- package/src/codeless/view/form-model.vue +421 -0
- package/src/codeless/view/form-query.vue +171 -0
- package/src/codeless/view/form.vue +575 -0
- package/src/codeless/view/page-comp.vue +1318 -0
- package/src/codeless/view/page.vue +280 -0
- package/src/codeless/view/table-edit-item.vue +184 -0
- package/src/codeless/view/table-edit.vue +490 -0
- package/src/codeless/view/table.vue +1606 -0
- package/src/codeless/view/tree.vue +431 -0
- package/src/configs/subApp.ts +9 -0
- package/src/directives/collapse/index.js +123 -0
- package/src/directives/drag/index.js +43 -0
- package/src/directives/index.js +9 -0
- package/src/directives/resize/index.js +23 -0
- package/src/entrance/libProperties.ts +24 -0
- package/src/entrance/libTypes.ts +26 -0
- package/src/error/404.vue +23 -0
- package/src/flow/chart.vue +130 -0
- package/src/flow/deal.vue +776 -0
- package/src/flow/signature.vue +216 -0
- package/src/flow/start.vue +18 -0
- package/src/http/api.js +192 -0
- package/src/http/request.js +81 -0
- package/src/login/App.vue +421 -0
- package/src/login/main.js +30 -0
- package/src/login/router.js +33 -0
- package/src/main.ts +20 -0
- package/src/mobile/App.vue +51 -0
- package/src/mobile/home/index.vue +34 -0
- package/src/mobile/main.js +26 -0
- package/src/mobile/router.js +101 -0
- package/src/mobile/view/page.vue +99 -0
- package/src/pinia/index.js +5 -0
- package/src/pinia/modules/dataField.js +77 -0
- package/src/pinia/modules/dataForm.js +46 -0
- package/src/pinia/modules/dataTable.js +46 -0
- package/src/pinia/modules/dictionary.js +66 -0
- package/src/pinia/modules/employee.js +46 -0
- package/src/pinia/modules/icon.js +46 -0
- package/src/pinia/modules/keepAlive.js +35 -0
- package/src/pinia/modules/organization.js +189 -0
- package/src/pinia/modules/page.js +46 -0
- package/src/pinia/modules/pageButton.js +44 -0
- package/src/pinia/modules/pageComp.js +46 -0
- package/src/pinia/modules/role.js +46 -0
- package/src/pinia/modules/setting.js +56 -0
- package/src/pinia/modules/subsystem.js +64 -0
- package/src/pinia/modules/user.js +177 -0
- package/src/plugins/index.ts +24 -0
- package/src/portal/App.vue +27 -0
- package/src/portal/home/index.vue +52 -0
- package/src/portal/main.js +31 -0
- package/src/portal/page/index.vue +39 -0
- package/src/portal/pinia/router.js +176 -0
- package/src/portal/router.js +86 -0
- package/src/router/constantRoutes.ts +13 -0
- package/src/router/loadComponent.ts +29 -0
- package/src/router/readme.txt +21 -0
- package/src/sso/sso.js +19 -0
- package/src/sso/sso.vue +138 -0
- package/src/types/axios.d.ts +13 -0
- package/src/types/func.ts +14 -0
- package/src/types/global.d.ts +108 -0
- package/src/types/layout.d.ts +59 -0
- package/src/types/mitt.d.ts +40 -0
- package/src/types/pinia.d.ts +93 -0
- package/src/types/views.d.ts +27 -0
- package/src/types/window.d.ts +8 -0
- package/src/utils/aes.js +75 -0
- package/src/utils/browser.js +13 -0
- package/src/utils/bus.js +4 -0
- package/src/utils/cache.js +6 -0
- package/src/utils/codeless.js +92 -0
- package/src/utils/color.js +274 -0
- package/src/utils/date.js +180 -0
- package/src/utils/loading.js +22 -0
- package/src/utils/page.js +36 -0
- package/src/utils/progress.js +19 -0
- package/src/utils/system.js +92 -0
- package/src/utils/theme.js +79 -0
- package/src/utils/tool.js +431 -0
- package/src/utils/websocket.js +124 -0
- package/src/views/codeless/appVersion.vue +593 -0
- package/src/views/codeless/dataFormEdit.vue +1463 -0
- package/src/views/codeless/dataModel.vue +2584 -0
- package/src/views/codeless/dataModelPage.vue +535 -0
- package/src/views/codeless/dataTableEdit.vue +1678 -0
- package/src/views/codeless/datasource.vue +308 -0
- package/src/views/codeless/interface.vue +833 -0
- package/src/views/codeless/interfaceToken.vue +255 -0
- package/src/views/codeless/page.vue +752 -0
- package/src/views/codeless/pageButton.vue +255 -0
- package/src/views/codeless/pageCompEdit.vue +2330 -0
- package/src/views/codeless/pageEdit.vue +661 -0
- package/src/views/codeless/relationPage.vue +349 -0
- package/src/views/codeless/scriptGroovy.vue +736 -0
- package/src/views/codeless/scriptGroovyEdit.vue +248 -0
- package/src/views/codeless/scriptGroovyExecute.vue +212 -0
- package/src/views/codeless/scriptGroovySimple.vue +1057 -0
- package/src/views/codeless/scriptTool.vue +563 -0
- package/src/views/codeless/subsystem.vue +309 -0
- package/src/views/codeless/template.vue +739 -0
- package/src/views/codeless/variable.vue +727 -0
- package/src/views/codeless/view.vue +738 -0
- package/src/views/codeless/viewEdit.vue +244 -0
- package/src/views/codeless/viewSimple.vue +1034 -0
- package/src/views/collect/task.vue +898 -0
- package/src/views/collect/taskLog.vue +238 -0
- package/src/views/dictionary/dictionary.vue +866 -0
- package/src/views/employee/employee.vue +355 -0
- package/src/views/flow/flow.vue +369 -0
- package/src/views/flow/flowInst.vue +73 -0
- package/src/views/flow/flowLineBranch.vue +406 -0
- package/src/views/flow/flowNodeMan.vue +426 -0
- package/src/views/flow/flowOpinion.vue +188 -0
- package/src/views/icon/icon.vue +242 -0
- package/src/views/log/loginLog.vue +41 -0
- package/src/views/log/operatorLog.vue +176 -0
- package/src/views/menu/menu.vue +883 -0
- package/src/views/menu/menuList.vue +858 -0
- package/src/views/message/message.vue +299 -0
- package/src/views/mobile/editor.vue +1100 -0
- package/src/views/mobile/mobile.vue +568 -0
- package/src/views/mobile/tool.vue +1258 -0
- package/src/views/monitor/database.vue +11 -0
- package/src/views/monitor/details-diskspace.vue +56 -0
- package/src/views/monitor/details-gc.vue +93 -0
- package/src/views/monitor/details-memory.vue +143 -0
- package/src/views/monitor/details-process.vue +132 -0
- package/src/views/monitor/details-threads.vue +106 -0
- package/src/views/monitor/line-chart.vue +93 -0
- package/src/views/monitor/mem-chart.vue +22 -0
- package/src/views/monitor/panel.vue +90 -0
- package/src/views/monitor/performance.vue +36 -0
- package/src/views/monitor/threads-chart.vue +16 -0
- package/src/views/operation/backup.vue +593 -0
- package/src/views/operation/center.vue +420 -0
- package/src/views/operation/restore.vue +94 -0
- package/src/views/organization/organization.vue +366 -0
- package/src/views/role/role.vue +502 -0
- package/src/views/schedule/schedule.vue +338 -0
- package/src/views/schedule/scheduleLog.vue +40 -0
- package/src/views/sequence/sequence.vue +283 -0
- package/src/views/setting/setting.vue +371 -0
- package/src/visual/components/app/list/goods/double.vue +241 -0
- package/src/visual/components/app/list/nav/image.vue +135 -0
- package/src/visual/components/app/list/nav/text.vue +159 -0
- package/src/visual/components/button/index.vue +95 -0
- package/src/visual/components/container/index.vue +128 -0
- package/src/visual/components/data/index.vue +60 -0
- package/src/visual/components/data-table/index.vue +260 -0
- package/src/visual/components/echarts/annular.vue +173 -0
- package/src/visual/components/echarts/bar.vue +172 -0
- package/src/visual/components/echarts/funnel.vue +167 -0
- package/src/visual/components/echarts/gauge.vue +186 -0
- package/src/visual/components/echarts/line.vue +172 -0
- package/src/visual/components/echarts/map.vue +206 -0
- package/src/visual/components/echarts/pie.vue +158 -0
- package/src/visual/components/echarts/radar.vue +196 -0
- package/src/visual/components/echarts/scatter.vue +153 -0
- package/src/visual/components/edit-table/index.vue +71 -0
- package/src/visual/components/form/affix.vue +440 -0
- package/src/visual/components/form/area.vue +134 -0
- package/src/visual/components/form/buttons.vue +120 -0
- package/src/visual/components/form/checkbox.vue +126 -0
- package/src/visual/components/form/date-range.vue +97 -0
- package/src/visual/components/form/date.vue +88 -0
- package/src/visual/components/form/datetime.vue +87 -0
- package/src/visual/components/form/employee-tree.vue +300 -0
- package/src/visual/components/form/employees-tree.vue +91 -0
- package/src/visual/components/form/image.vue +440 -0
- package/src/visual/components/form/index.vue +85 -0
- package/src/visual/components/form/input.vue +116 -0
- package/src/visual/components/form/item.vue +68 -0
- package/src/visual/components/form/number.vue +157 -0
- package/src/visual/components/form/organization-tree.vue +300 -0
- package/src/visual/components/form/password.vue +103 -0
- package/src/visual/components/form/radio.vue +122 -0
- package/src/visual/components/form/rate.vue +93 -0
- package/src/visual/components/form/region-tree.vue +300 -0
- package/src/visual/components/form/rich-editor.vue +114 -0
- package/src/visual/components/form/select.vue +172 -0
- package/src/visual/components/form/switch.vue +105 -0
- package/src/visual/components/form/textarea.vue +91 -0
- package/src/visual/components/form/unit-tree.vue +300 -0
- package/src/visual/components/icon/index.vue +73 -0
- package/src/visual/components/image/index.vue +445 -0
- package/src/visual/components/index.js +26 -0
- package/src/visual/components/list/block.vue +234 -0
- package/src/visual/components/list/button.vue +123 -0
- package/src/visual/components/list/card.vue +129 -0
- package/src/visual/components/list/custom.vue +214 -0
- package/src/visual/components/list/image.vue +182 -0
- package/src/visual/components/list/news.vue +174 -0
- package/src/visual/components/page-comp/index.vue +67 -0
- package/src/visual/components/portal-menu/index.vue +191 -0
- package/src/visual/components/qrcode/index.vue +98 -0
- package/src/visual/components/router-view/index.vue +51 -0
- package/src/visual/components/row/index.vue +175 -0
- package/src/visual/components/search/index.vue +96 -0
- package/src/visual/components/tabs/index.vue +103 -0
- package/src/visual/components/text/index.vue +111 -0
- package/src/visual/components/video/index.vue +93 -0
- package/src/visual/js/echarts.js +220 -0
- package/src/visual/js/event.js +476 -0
- package/src/visual/js/visual-comp.js +48 -0
- package/src/visual/js/visual.js +508 -0
- package/src/visual/view/page.vue +357 -0
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
// Labels
|
|
3
|
+
'Activate the global connect tool': '激活全局连接工具',
|
|
4
|
+
'Append {type}': '添加{type}',
|
|
5
|
+
'Add Lane above': '在上面添加道',
|
|
6
|
+
'Divide into two Lanes': '分割成两个道',
|
|
7
|
+
'Divide into three Lanes': '分割成三个道',
|
|
8
|
+
'Add Lane below': '在下面添加道',
|
|
9
|
+
'Append compensation activity': '追加补偿活动',
|
|
10
|
+
'Change type': '修改类型',
|
|
11
|
+
'Connect using Association': '使用关联连接',
|
|
12
|
+
'Connect using Sequence/MessageFlow or Association': '使用顺序/消息流或者关联连接',
|
|
13
|
+
'Connect using DataInputAssociation': '使用数据输入关联连接',
|
|
14
|
+
Remove: '移除',
|
|
15
|
+
'Activate the hand tool': '全体移动',
|
|
16
|
+
'Activate the lasso tool': '套索移动',
|
|
17
|
+
'Activate the create/remove space tool': '激活创建/删除空间工具',
|
|
18
|
+
'expanded SubProcess': '扩展子过程',
|
|
19
|
+
'IntermediateThrowEvent/BoundaryEvent': '中间抛出事件/边界事件',
|
|
20
|
+
'Pool/Participant': '池/参与者',
|
|
21
|
+
'Parallel Multi Instance': '并行多重事件',
|
|
22
|
+
'Sequential Multi Instance': '时序多重事件',
|
|
23
|
+
DataObjectReference: '数据对象参考',
|
|
24
|
+
DataStoreReference: '数据存储参考',
|
|
25
|
+
Loop: '循环',
|
|
26
|
+
'Ad-hoc': '即席',
|
|
27
|
+
'Create {type}': '创建{type}',
|
|
28
|
+
Task: '节点',
|
|
29
|
+
'Send Task': '发送任务',
|
|
30
|
+
'Receive Task': '接收任务',
|
|
31
|
+
'User Task': '用户任务',
|
|
32
|
+
'Manual Task': '手工任务',
|
|
33
|
+
'Business Rule Task': '业务规则任务',
|
|
34
|
+
'Service Task': '服务任务',
|
|
35
|
+
'Script Task': '脚本任务',
|
|
36
|
+
'Call Activity': '调用活动',
|
|
37
|
+
'Sub Process (collapsed)': '子流程(折叠的)',
|
|
38
|
+
'Sub Process (expanded)': '子流程(展开的)',
|
|
39
|
+
'Start Event': '开始节点',
|
|
40
|
+
StartEvent: '开始节点',
|
|
41
|
+
'Intermediate Throw Event': '中间节点',
|
|
42
|
+
TextAnnotation: '文本注释',
|
|
43
|
+
'End Event': '结束节点',
|
|
44
|
+
EndEvent: '结束节点',
|
|
45
|
+
Gateway: '网关',
|
|
46
|
+
Group: '分组',
|
|
47
|
+
'Intermediate/Boundary': '中间/边界节点',
|
|
48
|
+
'Intermediate/Boundary Event': '中间/边界节点',
|
|
49
|
+
'Message Start Event': '消息开始事件',
|
|
50
|
+
'Timer Start Event': '定时开始事件',
|
|
51
|
+
'Conditional Start Event': '条件开始事件',
|
|
52
|
+
'Signal Start Event': '信号开始事件',
|
|
53
|
+
'Error Start Event': '错误开始事件',
|
|
54
|
+
'Escalation Start Event': '升级开始事件',
|
|
55
|
+
'Compensation Start Event': '补偿开始事件',
|
|
56
|
+
'Message Start Event (non-interrupting)': '消息开始事件(非中断)',
|
|
57
|
+
'Timer Start Event (non-interrupting)': '定时开始事件(非中断)',
|
|
58
|
+
'Conditional Start Event (non-interrupting)': '条件开始事件(非中断)',
|
|
59
|
+
'Signal Start Event (non-interrupting)': '信号开始事件(非中断)',
|
|
60
|
+
'Escalation Start Event (non-interrupting)': '升级开始事件(非中断)',
|
|
61
|
+
'Message Intermediate Catch Event': '消息中间捕获事件',
|
|
62
|
+
'Message Intermediate Throw Event': '消息中间抛出事件',
|
|
63
|
+
'Timer Intermediate Catch Event': '定时中间捕获事件',
|
|
64
|
+
'Escalation Intermediate Throw Event': '升级中间抛出事件',
|
|
65
|
+
'Conditional Intermediate Catch Event': '条件中间捕获事件',
|
|
66
|
+
'Link Intermediate Catch Event': '链接中间捕获事件',
|
|
67
|
+
'Link Intermediate Throw Event': '链接中间抛出事件',
|
|
68
|
+
'Compensation Intermediate Throw Event': '补偿中间抛出事件',
|
|
69
|
+
'Signal Intermediate Catch Event': '信号中间捕获事件',
|
|
70
|
+
'Signal Intermediate Throw Event': '信号中间抛出事件',
|
|
71
|
+
'Message End Event': '消息结束事件',
|
|
72
|
+
'Escalation End Event': '定时结束事件',
|
|
73
|
+
'Error End Event': '错误结束事件',
|
|
74
|
+
'Cancel End Event': '取消结束事件',
|
|
75
|
+
'Compensation End Event': '补偿结束事件',
|
|
76
|
+
'Signal End Event': '信号结束事件',
|
|
77
|
+
'Terminate End Event': '终止结束事件',
|
|
78
|
+
'Message Boundary Event': '消息边界事件',
|
|
79
|
+
'Message Boundary Event (non-interrupting)': '消息边界事件(非中断)',
|
|
80
|
+
'Timer Boundary Event': '定时边界事件',
|
|
81
|
+
'Timer Boundary Event (non-interrupting)': '定时边界事件(非中断)',
|
|
82
|
+
'Escalation Boundary Event': '升级边界事件',
|
|
83
|
+
'Escalation Boundary Event (non-interrupting)': '升级边界事件(非中断)',
|
|
84
|
+
'Conditional Boundary Event': '条件边界事件',
|
|
85
|
+
'Conditional Boundary Event (non-interrupting)': '条件边界事件(非中断)',
|
|
86
|
+
'Error Boundary Event': '错误边界事件',
|
|
87
|
+
'Cancel Boundary Event': '取消边界事件',
|
|
88
|
+
'Signal Boundary Event': '信号边界事件',
|
|
89
|
+
'Signal Boundary Event (non-interrupting)': '信号边界事件(非中断)',
|
|
90
|
+
'Compensation Boundary Event': '补偿边界事件',
|
|
91
|
+
'Exclusive Gateway': '分支节点',
|
|
92
|
+
'Parallel Gateway': '并行开始节点',
|
|
93
|
+
'Inclusive Gateway': '相容节点',
|
|
94
|
+
'Complex Gateway': '并行结束节点',
|
|
95
|
+
'Event based Gateway': '事件节点',
|
|
96
|
+
Transaction: '转运',
|
|
97
|
+
'Sub Process': '子流程',
|
|
98
|
+
'Event Sub Process': '事件子流程',
|
|
99
|
+
'Collapsed Pool': '折叠池',
|
|
100
|
+
'Expanded Pool': '展开池',
|
|
101
|
+
|
|
102
|
+
// Errors
|
|
103
|
+
'no parent for {element} in {parent}': '在{parent}里,{element}没有父类',
|
|
104
|
+
'no shape type specified': '没有指定的形状类型',
|
|
105
|
+
'flow elements must be children of pools/participants': '流元素必须是池/参与者的子类',
|
|
106
|
+
'out of bounds release': 'out of bounds release',
|
|
107
|
+
'more than {count} child lanes': '子道大于{count} ',
|
|
108
|
+
'element required': '元素不能为空',
|
|
109
|
+
'diagram not part of bpmn:Definitions': '流程图不符合bpmn规范',
|
|
110
|
+
'no diagram to display': '没有可展示的流程图',
|
|
111
|
+
'no process or collaboration to display': '没有可展示的流程/协作',
|
|
112
|
+
'element {element} referenced by {referenced}#{property} not yet drawn': '由{referenced}#{property}引用的{element}元素仍未绘制',
|
|
113
|
+
'already rendered {element}': '{element} 已被渲染',
|
|
114
|
+
'failed to import {element}': '导入{element}失败',
|
|
115
|
+
|
|
116
|
+
// 属性面板的参数
|
|
117
|
+
Id: '编号',
|
|
118
|
+
Name: '名称',
|
|
119
|
+
General: '常规',
|
|
120
|
+
Details: '详情',
|
|
121
|
+
'Message Name': '消息名称',
|
|
122
|
+
Message: '消息',
|
|
123
|
+
Initiator: '创建者',
|
|
124
|
+
'Asynchronous Continuations': '持续异步',
|
|
125
|
+
'Asynchronous Before': '异步前',
|
|
126
|
+
'Asynchronous After': '异步后',
|
|
127
|
+
'Job Configuration': '工作配置',
|
|
128
|
+
Exclusive: '排除',
|
|
129
|
+
'Job Priority': '工作优先级',
|
|
130
|
+
'Retry Time Cycle': '重试时间周期',
|
|
131
|
+
Documentation: '文档',
|
|
132
|
+
'Element Documentation': '元素文档',
|
|
133
|
+
'History Configuration': '历史配置',
|
|
134
|
+
'History Time To Live': '历史的生存时间',
|
|
135
|
+
Forms: '表单',
|
|
136
|
+
'Form Key': '表单key',
|
|
137
|
+
'Form Fields': '表单字段',
|
|
138
|
+
'Business Key': '业务key',
|
|
139
|
+
'Form Field': '表单字段',
|
|
140
|
+
ID: '编号',
|
|
141
|
+
Type: '类型',
|
|
142
|
+
Label: '名称',
|
|
143
|
+
'Default Value': '默认值',
|
|
144
|
+
Validation: '校验',
|
|
145
|
+
'Add Constraint': '添加约束',
|
|
146
|
+
Config: '配置',
|
|
147
|
+
Properties: '属性',
|
|
148
|
+
'Add Property': '添加属性',
|
|
149
|
+
Value: '值',
|
|
150
|
+
Listeners: '监听器',
|
|
151
|
+
'Execution Listener': '执行监听',
|
|
152
|
+
'Event Type': '事件类型',
|
|
153
|
+
'Listener Type': '监听器类型',
|
|
154
|
+
'Java Class': 'Java类',
|
|
155
|
+
Expression: '表达式',
|
|
156
|
+
'Must provide a value': '必须提供一个值',
|
|
157
|
+
'Delegate Expression': '代理表达式',
|
|
158
|
+
Script: '脚本',
|
|
159
|
+
'Script Format': '脚本格式',
|
|
160
|
+
'Script Type': '脚本类型',
|
|
161
|
+
'Inline Script': '内联脚本',
|
|
162
|
+
'External Script': '外部脚本',
|
|
163
|
+
Resource: '资源',
|
|
164
|
+
'Field Injection': '字段注入',
|
|
165
|
+
Extensions: '扩展',
|
|
166
|
+
'Input/Output': '输入/输出',
|
|
167
|
+
'Input Parameters': '输入参数',
|
|
168
|
+
'Output Parameters': '输出参数',
|
|
169
|
+
Parameters: '参数',
|
|
170
|
+
'Output Parameter': '输出参数',
|
|
171
|
+
'Timer Definition Type': '定时器定义类型',
|
|
172
|
+
'Timer Definition': '定时器定义',
|
|
173
|
+
Date: '日期',
|
|
174
|
+
Duration: '持续',
|
|
175
|
+
Cycle: '循环',
|
|
176
|
+
Signal: '信号',
|
|
177
|
+
'Signal Name': '信号名称',
|
|
178
|
+
Escalation: '升级',
|
|
179
|
+
Error: '错误',
|
|
180
|
+
'Link Name': '链接名称',
|
|
181
|
+
Condition: '条件名称',
|
|
182
|
+
'Variable Name': '变量名称',
|
|
183
|
+
'Variable Event': '变量事件',
|
|
184
|
+
'Specify more than one variable change event as a comma separated list.': '多个变量事件以逗号隔开',
|
|
185
|
+
'Wait for Completion': '等待完成',
|
|
186
|
+
'Activity Ref': '活动参考',
|
|
187
|
+
'Version Tag': '版本标签',
|
|
188
|
+
Executable: '可执行文件',
|
|
189
|
+
'External Task Configuration': '扩展任务配置',
|
|
190
|
+
'Task Priority': '任务优先级',
|
|
191
|
+
External: '外部',
|
|
192
|
+
Connector: '连接器',
|
|
193
|
+
'Must configure Connector': '必须配置连接器',
|
|
194
|
+
'Connector Id': '连接器编号',
|
|
195
|
+
Implementation: '实现方式',
|
|
196
|
+
'Field Injections': '字段注入',
|
|
197
|
+
Fields: '字段',
|
|
198
|
+
'Result Variable': '结果变量',
|
|
199
|
+
Topic: '主题',
|
|
200
|
+
'Configure Connector': '配置连接器',
|
|
201
|
+
'Input Parameter': '输入参数',
|
|
202
|
+
Assignee: '代理人',
|
|
203
|
+
'Candidate Users': '候选用户',
|
|
204
|
+
'Candidate Groups': '候选组',
|
|
205
|
+
'Due Date': '到期时间',
|
|
206
|
+
'Follow Up Date': '跟踪日期',
|
|
207
|
+
Priority: '优先级',
|
|
208
|
+
'The follow up date as an EL expression (e.g. ${someDate} or an ISO date (e.g. 2015-06-26T09:54:00)': '跟踪日期必须符合EL表达式,如: ${someDate} ,或者一个ISO标准日期,如:2015-06-26T09:54:00',
|
|
209
|
+
'The due date as an EL expression (e.g. ${someDate} or an ISO date (e.g. 2015-06-26T09:54:00)': '跟踪日期必须符合EL表达式,如: ${someDate} ,或者一个ISO标准日期,如:2015-06-26T09:54:00',
|
|
210
|
+
Variables: '变量'
|
|
211
|
+
};
|
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="ac-affix-box">
|
|
3
|
+
<el-upload
|
|
4
|
+
:style="uploadStyle"
|
|
5
|
+
action=""
|
|
6
|
+
:class="['ac-affix', {'is-disabled': inputDisabled}]"
|
|
7
|
+
:disabled="inputDisabled"
|
|
8
|
+
:multiple=true
|
|
9
|
+
:http-request="handleUpload"
|
|
10
|
+
:file-list="fileList"
|
|
11
|
+
:show-file-list=false
|
|
12
|
+
:before-upload="handleBeforeUpload"
|
|
13
|
+
>
|
|
14
|
+
<template #trigger>
|
|
15
|
+
<el-button
|
|
16
|
+
v-if="inputDisabled !== true"
|
|
17
|
+
style="margin-right: 10px;"
|
|
18
|
+
type="success"
|
|
19
|
+
>
|
|
20
|
+
<ac-icon
|
|
21
|
+
iconId="018ece4f70fcf0627f81"
|
|
22
|
+
style="margin-right: 5px"
|
|
23
|
+
/>点击上传
|
|
24
|
+
</el-button>
|
|
25
|
+
</template>
|
|
26
|
+
<el-form :disabled="false">
|
|
27
|
+
<el-button
|
|
28
|
+
v-if="affixId != null && affixId !== ''"
|
|
29
|
+
:loading="downloading"
|
|
30
|
+
@click.stop.prevent="downloadPack()"
|
|
31
|
+
type="primary"
|
|
32
|
+
>
|
|
33
|
+
<ac-icon
|
|
34
|
+
iconId="018ece4f749ec5911772"
|
|
35
|
+
style="margin-right: 5px"
|
|
36
|
+
/>打包下载
|
|
37
|
+
</el-button>
|
|
38
|
+
</el-form>
|
|
39
|
+
</el-upload>
|
|
40
|
+
|
|
41
|
+
<el-image-viewer
|
|
42
|
+
v-if="showViewer"
|
|
43
|
+
:loading="loading"
|
|
44
|
+
:z-index="5000"
|
|
45
|
+
:on-close="()=>{ showViewer = false }"
|
|
46
|
+
:url-list="[imageUrl]"
|
|
47
|
+
hide-on-click-modal
|
|
48
|
+
/>
|
|
49
|
+
|
|
50
|
+
<span v-for="(item, index) in fileList" class="file" :key="index">
|
|
51
|
+
<span class="file-item" :class="[{'is-disabled': inputDisabled}]">
|
|
52
|
+
<span class="file-name" :title="item.name">
|
|
53
|
+
<span style="cursor: pointer" v-if="isKnowFile(item)">
|
|
54
|
+
<span @click="showFile(item)">
|
|
55
|
+
{{item.name}}
|
|
56
|
+
</span>
|
|
57
|
+
</span>
|
|
58
|
+
<span
|
|
59
|
+
style="cursor: pointer"
|
|
60
|
+
v-else-if="item.name.toLowerCase().endsWith('.png')
|
|
61
|
+
|| item.name.toLowerCase().endsWith('.jpeg')
|
|
62
|
+
|| item.name.toLowerCase().endsWith('.jpg')
|
|
63
|
+
|| item.name.toLowerCase().endsWith('.bmp')
|
|
64
|
+
|| item.name.toLowerCase().endsWith('.gif')"
|
|
65
|
+
>
|
|
66
|
+
<span @click="showImage(item)">
|
|
67
|
+
{{item.name}}
|
|
68
|
+
</span>
|
|
69
|
+
</span>
|
|
70
|
+
<span v-else><span>{{item.name}}</span></span>
|
|
71
|
+
</span>
|
|
72
|
+
<ac-icon
|
|
73
|
+
v-if="item.status===1"
|
|
74
|
+
size="20"
|
|
75
|
+
color="#999"
|
|
76
|
+
iconId="018dcab3d3dfd6e82393"
|
|
77
|
+
class="spinner"
|
|
78
|
+
title="上传中..."
|
|
79
|
+
/>
|
|
80
|
+
<ac-icon
|
|
81
|
+
v-if="item.status===2"
|
|
82
|
+
size="20"
|
|
83
|
+
color="#999"
|
|
84
|
+
iconId="018dc9c3efed1f464d38"
|
|
85
|
+
title="下载"
|
|
86
|
+
@click="downloadFile(item)"
|
|
87
|
+
/>
|
|
88
|
+
<ac-icon
|
|
89
|
+
v-if="item.status===2"
|
|
90
|
+
size="20"
|
|
91
|
+
color="#999"
|
|
92
|
+
iconId="018dc9c3efd3a0502886"
|
|
93
|
+
title="删除"
|
|
94
|
+
@click="deleteFile(item)"
|
|
95
|
+
></ac-icon>
|
|
96
|
+
</span>
|
|
97
|
+
</span>
|
|
98
|
+
|
|
99
|
+
<el-dialog
|
|
100
|
+
:title="dialogTitle"
|
|
101
|
+
v-model="dialogVisible"
|
|
102
|
+
class="no-padding"
|
|
103
|
+
append-to-body
|
|
104
|
+
destroy-on-close
|
|
105
|
+
draggable
|
|
106
|
+
fullscreen
|
|
107
|
+
>
|
|
108
|
+
<vue-office-docx v-if="dialogFileType === 'docx'" :src="dialogUrl" />
|
|
109
|
+
<vue-office-excel v-if="dialogFileType === 'excel'" :src="dialogUrl" />
|
|
110
|
+
</el-dialog>
|
|
111
|
+
</div>
|
|
112
|
+
</template>
|
|
113
|
+
|
|
114
|
+
<script setup>
|
|
115
|
+
import { onMounted, ref, watch } from 'vue';
|
|
116
|
+
import api from '@/http/api';
|
|
117
|
+
import tool from '@/utils/tool';
|
|
118
|
+
import { ElMessage, ElMessageBox, useDisabled } from 'element-plus';
|
|
119
|
+
// import VueOfficeDocx from '@vue-office/docx';
|
|
120
|
+
// import VueOfficeExcel from '@vue-office/excel';
|
|
121
|
+
|
|
122
|
+
const emit = defineEmits(['update:modelValue', 'change']);
|
|
123
|
+
const props = defineProps({
|
|
124
|
+
modelValue: String,
|
|
125
|
+
multiple: {
|
|
126
|
+
type: Boolean,
|
|
127
|
+
default: true
|
|
128
|
+
},
|
|
129
|
+
uploadStyle: {
|
|
130
|
+
type: String,
|
|
131
|
+
default: ''
|
|
132
|
+
},
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
const uploadCnt = ref(0);
|
|
136
|
+
const affixId = ref('');
|
|
137
|
+
const fileList = ref([]);
|
|
138
|
+
const downloading = ref(false);
|
|
139
|
+
const baseUrl = ref('/');
|
|
140
|
+
const fileUrl = ref(baseUrl.value + '/file/file/');
|
|
141
|
+
const showViewer = ref(false);
|
|
142
|
+
const loading = ref(false);
|
|
143
|
+
const imageUrl = ref('');
|
|
144
|
+
const inputDisabled = useDisabled();
|
|
145
|
+
|
|
146
|
+
const dialogTitle = ref('');
|
|
147
|
+
const dialogVisible = ref(false);
|
|
148
|
+
const dialogFileType = ref('');
|
|
149
|
+
const dialogUrl = ref('');
|
|
150
|
+
|
|
151
|
+
const showImage = (file) => {
|
|
152
|
+
imageUrl.value = '';
|
|
153
|
+
if (file && file.id) {
|
|
154
|
+
imageUrl.value = baseUrl.value + '/file/image/' + file.id;
|
|
155
|
+
showViewer.value = true;
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
const handleUpload = (file) => {
|
|
160
|
+
return new Promise((resolve, reject) => {
|
|
161
|
+
api.upload({ file: file.file, affixId: affixId.value }).then((res) => {
|
|
162
|
+
uploadCnt.value--;
|
|
163
|
+
|
|
164
|
+
const filters = fileList.value.filter(item => item.name === res.data.trueName && item.status === 1);
|
|
165
|
+
if (filters.length > 0) {
|
|
166
|
+
filters[0].id = res.data.id;
|
|
167
|
+
filters[0].status = 2;
|
|
168
|
+
}
|
|
169
|
+
if (!props.multiple) {
|
|
170
|
+
fileList.value = Object.assign([], fileList.value.filter(item => item.name === res.data.trueName));
|
|
171
|
+
emit('change', fileList.value[0]);
|
|
172
|
+
}
|
|
173
|
+
resolve();
|
|
174
|
+
}).catch(() => {
|
|
175
|
+
uploadCnt.value--;
|
|
176
|
+
reject();
|
|
177
|
+
});
|
|
178
|
+
});
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
const handleBeforeUpload = (file) => {
|
|
182
|
+
if (affixId.value == null || affixId.value === '') {
|
|
183
|
+
affixId.value = tool.uuid();
|
|
184
|
+
emit('update:modelValue', affixId.value);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
const isLt100M = file.size / 1024 / 1024 < 100;
|
|
188
|
+
if (!isLt100M) {
|
|
189
|
+
ElMessage.error('上传大小不能超过 100MB!');
|
|
190
|
+
} else {
|
|
191
|
+
if (!props.multiple) {
|
|
192
|
+
fileList.value = Object.assign([], [{ name: file.name, status: 1 }]);
|
|
193
|
+
} else {
|
|
194
|
+
fileList.value.push({ name: file.name, status: 1 });
|
|
195
|
+
}
|
|
196
|
+
uploadCnt.value++;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
return isLt100M;
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
const downloadFile = (file) => {
|
|
203
|
+
api.downloadFileLocal(file.id);
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
const downloadPack = () => {
|
|
207
|
+
downloading.value = true;
|
|
208
|
+
if (affixId.value == null || affixId.value === '') {
|
|
209
|
+
ElMessage.error('暂无附件!');
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
api.downloadAffixLocal(affixId.value)
|
|
213
|
+
.then(() => downloading.value = false)
|
|
214
|
+
.catch(() => downloading.value = false);
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
const deleteFile = (file) => {
|
|
218
|
+
ElMessageBox.confirm('请确认是否删除此文件【' + file.name + '】?', '提示', { type: 'warning' }).then(() => {
|
|
219
|
+
api.deleteAffix(file.id).then(() => {
|
|
220
|
+
fileList.value = fileList.value.filter(item => item.id !== file.id)
|
|
221
|
+
if (fileList.value.length === 0) {
|
|
222
|
+
affixId.value = '';
|
|
223
|
+
emit('update:modelValue', affixId.value);
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
}).catch(() => {});
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
const loadData = () => {
|
|
230
|
+
fileList.value = [];
|
|
231
|
+
if (typeof props.modelValue !== 'undefined' && props.modelValue != null && props.modelValue !== '') {
|
|
232
|
+
api.queryAffix(props.modelValue).then((res) => {
|
|
233
|
+
if (res.data.length > 0) {
|
|
234
|
+
affixId.value = props.modelValue;
|
|
235
|
+
for (let i = 0; i < res.data.length; i++) {
|
|
236
|
+
fileList.value.push({ name: res.data[i].trueName, id: res.data[i].id, status: 2 });
|
|
237
|
+
}
|
|
238
|
+
} else {
|
|
239
|
+
affixId.value = '';
|
|
240
|
+
}
|
|
241
|
+
}).catch((res) => {
|
|
242
|
+
ElMessage.error(res.message);
|
|
243
|
+
});
|
|
244
|
+
} else {
|
|
245
|
+
affixId.value = '';
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
const isKnowFile = (file) => {
|
|
250
|
+
return file.name.toLowerCase().endsWith('.pdf') ||
|
|
251
|
+
file.name.toLowerCase().endsWith('.ofd') ||
|
|
252
|
+
|
|
253
|
+
file.name.toLowerCase().endsWith('.doc') ||
|
|
254
|
+
file.name.toLowerCase().endsWith('.docx') ||
|
|
255
|
+
file.name.toLowerCase().endsWith('.wps') ||
|
|
256
|
+
|
|
257
|
+
file.name.toLowerCase().endsWith('.ppt') ||
|
|
258
|
+
file.name.toLowerCase().endsWith('.pptx') ||
|
|
259
|
+
|
|
260
|
+
file.name.toLowerCase().endsWith('.xls') ||
|
|
261
|
+
file.name.toLowerCase().endsWith('.xlsx') ||
|
|
262
|
+
file.name.toLowerCase().endsWith('.et')
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
const showFile = (file) => {
|
|
266
|
+
dialogUrl.value = '';
|
|
267
|
+
if (file.name.toLowerCase().endsWith('.pdf')) {
|
|
268
|
+
loading.value.showLoading();
|
|
269
|
+
api.download(file.id).then((res) => {
|
|
270
|
+
const blob = new Blob([res.data], { type: 'application/pdf' })
|
|
271
|
+
const href = window.URL.createObjectURL(blob);
|
|
272
|
+
window.open(href, '_blank');
|
|
273
|
+
|
|
274
|
+
loading.value.hideLoading();
|
|
275
|
+
}).catch((res) => {
|
|
276
|
+
ElMessage.error(res.message);
|
|
277
|
+
loading.value.hideLoading();
|
|
278
|
+
});
|
|
279
|
+
} else if (file.name.toLowerCase().endsWith('.docx')) {
|
|
280
|
+
dialogTitle.value = '文件查看【' + file.name + '】'
|
|
281
|
+
dialogUrl.value = fileUrl.value + file.id;
|
|
282
|
+
dialogFileType.value = 'docx';
|
|
283
|
+
dialogVisible.value = true;
|
|
284
|
+
} else if (file.name.toLowerCase().endsWith('.xlsx')) {
|
|
285
|
+
dialogTitle.value = '文件查看【' + file.name + '】'
|
|
286
|
+
dialogUrl.value = fileUrl.value + file.id;
|
|
287
|
+
dialogFileType.value = 'excel';
|
|
288
|
+
dialogVisible.value = true;
|
|
289
|
+
}
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
watch(() => props.modelValue, (newVal) => {
|
|
293
|
+
if (newVal === undefined || newVal == null || newVal === '' ||
|
|
294
|
+
affixId.value == null || affixId.value === '' ||
|
|
295
|
+
newVal !== affixId.value) {
|
|
296
|
+
loadData();
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
|
|
300
|
+
onMounted(() => {
|
|
301
|
+
loadData();
|
|
302
|
+
});
|
|
303
|
+
</script>
|
|
304
|
+
|
|
305
|
+
<style scoped lang="scss">
|
|
306
|
+
.ac-affix-box {
|
|
307
|
+
width: 100%;
|
|
308
|
+
}
|
|
309
|
+
.ac-affix {
|
|
310
|
+
text-align: left;
|
|
311
|
+
margin-bottom: 5px;
|
|
312
|
+
display: flex;
|
|
313
|
+
flex-direction: row;
|
|
314
|
+
}
|
|
315
|
+
.file {
|
|
316
|
+
width: 100%;
|
|
317
|
+
}
|
|
318
|
+
.file-item {
|
|
319
|
+
width: 100%;
|
|
320
|
+
display: flex;
|
|
321
|
+
flex-direction: row;
|
|
322
|
+
align-items: center;
|
|
323
|
+
> span {
|
|
324
|
+
margin-right: 5px;
|
|
325
|
+
}
|
|
326
|
+
:deep(.ac-icon) {
|
|
327
|
+
cursor: pointer;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
.file-name {
|
|
331
|
+
overflow: hidden;
|
|
332
|
+
min-width: 0;
|
|
333
|
+
}
|
|
334
|
+
.file-name > span > span {
|
|
335
|
+
align-items: center;
|
|
336
|
+
text-overflow: ellipsis;
|
|
337
|
+
white-space: nowrap;
|
|
338
|
+
overflow: hidden;
|
|
339
|
+
}
|
|
340
|
+
.file-upload {
|
|
341
|
+
font-size: 18px;
|
|
342
|
+
margin-left: 5px;
|
|
343
|
+
}
|
|
344
|
+
.file-download, .file-delete {
|
|
345
|
+
font-size: 18px;
|
|
346
|
+
cursor: pointer;
|
|
347
|
+
margin-left: 5px;
|
|
348
|
+
width: 25px;
|
|
349
|
+
}
|
|
350
|
+
.file-download:hover, .file-delete:hover {
|
|
351
|
+
color: #409EFF;
|
|
352
|
+
}
|
|
353
|
+
.file-item[class~=is-disabled] .file-delete {
|
|
354
|
+
display: none;
|
|
355
|
+
}
|
|
356
|
+
.pack-button:hover {
|
|
357
|
+
background: #66b1ff;
|
|
358
|
+
border-color: #66b1ff;
|
|
359
|
+
color: #FFF;
|
|
360
|
+
}
|
|
361
|
+
.pack-button:focus {
|
|
362
|
+
color: #409EFF;
|
|
363
|
+
border-color: #c6e2ff;
|
|
364
|
+
background-color: #ecf5ff;
|
|
365
|
+
}
|
|
366
|
+
.pack-button {
|
|
367
|
+
padding: 9px 15px;
|
|
368
|
+
font-size: 14px;
|
|
369
|
+
border-radius: 4px;
|
|
370
|
+
color: #FFF;
|
|
371
|
+
background-color: #409EFF;
|
|
372
|
+
border-color: #409EFF;
|
|
373
|
+
display: inline-block;
|
|
374
|
+
line-height: 1;
|
|
375
|
+
white-space: nowrap;
|
|
376
|
+
cursor: pointer;
|
|
377
|
+
-webkit-appearance: none;
|
|
378
|
+
text-align: center;
|
|
379
|
+
box-sizing: border-box;
|
|
380
|
+
outline: 0;
|
|
381
|
+
margin: 0;
|
|
382
|
+
transition: .1s;
|
|
383
|
+
font-weight: 500;
|
|
384
|
+
}
|
|
385
|
+
</style>
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-cascader
|
|
3
|
+
ref="cascader"
|
|
4
|
+
v-model="currValue"
|
|
5
|
+
:options="areaList"
|
|
6
|
+
:props="{
|
|
7
|
+
value: 'id',
|
|
8
|
+
label: 'text',
|
|
9
|
+
children: 'children',
|
|
10
|
+
leaf: 'isLeaf',
|
|
11
|
+
checkStrictly: props.checkStrictly
|
|
12
|
+
}"
|
|
13
|
+
:size="props.size"
|
|
14
|
+
filterable
|
|
15
|
+
clearable
|
|
16
|
+
@change="handleChange"
|
|
17
|
+
style="width: 100%"
|
|
18
|
+
/>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<script setup>
|
|
22
|
+
import { ref, onMounted } from 'vue';
|
|
23
|
+
// import { useAreaStore } from '@/pinia/modules/area';
|
|
24
|
+
|
|
25
|
+
const modelValue = defineModel();
|
|
26
|
+
const props = defineProps({
|
|
27
|
+
checkStrictly: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: false
|
|
30
|
+
},
|
|
31
|
+
size: String,
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
const areaStore = ref({}); // useAreaStore();
|
|
35
|
+
const areaList = ref([]);
|
|
36
|
+
const cascader = ref();
|
|
37
|
+
const currValue = ref([]);
|
|
38
|
+
|
|
39
|
+
const handleChange = () => {
|
|
40
|
+
if (currValue.value && currValue.value.length > 0) {
|
|
41
|
+
modelValue.value = currValue.value.join(',');
|
|
42
|
+
}
|
|
43
|
+
cascader.value.togglePopperVisible();
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
onMounted(() => {
|
|
47
|
+
currValue.value = modelValue.value ? modelValue.value.split(',') : [];
|
|
48
|
+
// areaStore.value.getAreaList().then(res => {
|
|
49
|
+
// areaList.value = res;
|
|
50
|
+
// });
|
|
51
|
+
});
|
|
52
|
+
</script>
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-radio-group v-model="modelValue" @change="handleChange">
|
|
3
|
+
<el-radio-button key="" value="" v-if="showAll">全部</el-radio-button>
|
|
4
|
+
<el-radio-button
|
|
5
|
+
v-for="item in options"
|
|
6
|
+
:key="item.key"
|
|
7
|
+
:value="item.key"
|
|
8
|
+
>{{item.value}}</el-radio-button>
|
|
9
|
+
</el-radio-group>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script setup>
|
|
13
|
+
import { ref, watch } from 'vue';
|
|
14
|
+
|
|
15
|
+
const modelValue = defineModel();
|
|
16
|
+
const emit = defineEmits(['change']);
|
|
17
|
+
const props = defineProps({
|
|
18
|
+
options: [Array, String],
|
|
19
|
+
showAll: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: false
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
const options = ref([]);
|
|
25
|
+
|
|
26
|
+
const init = (data) => {
|
|
27
|
+
if (data) {
|
|
28
|
+
if (Array.isArray(data)) {
|
|
29
|
+
options.value = data;
|
|
30
|
+
} else if (typeof data === 'string') {
|
|
31
|
+
const optionList = [];
|
|
32
|
+
data.split(',').forEach(item => {
|
|
33
|
+
optionList.push({ key: item, value: item });
|
|
34
|
+
});
|
|
35
|
+
options.value = optionList;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
const handleChange = () => {
|
|
41
|
+
emit('change', modelValue.value);
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
watch(() => props.options, (data) => {
|
|
45
|
+
init(data);
|
|
46
|
+
}, { immediate: true });
|
|
47
|
+
</script>
|