@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,1034 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="page-container">
|
|
3
|
+
<el-container>
|
|
4
|
+
<el-aside class="page-aside" width="280px" v-drag v-collapse>
|
|
5
|
+
<div class="title">
|
|
6
|
+
<div class="title-content">目录</div>
|
|
7
|
+
<div class="title-button">
|
|
8
|
+
<div class="button-list">
|
|
9
|
+
<div class="button-item">
|
|
10
|
+
<ac-icon
|
|
11
|
+
iconId="018dca412c4e207388f7"
|
|
12
|
+
:style="'cursor: pointer;color: ' + (treeCheck ? 'rgb(0,133,246)' : '#999') + ';font-size: 18px;'"
|
|
13
|
+
:title="treeCheck ? '导入模式' : '导出模式'"
|
|
14
|
+
@click.stop="changeMode"
|
|
15
|
+
/>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="button-item">
|
|
18
|
+
<ac-icon
|
|
19
|
+
iconId="018ece4f749ec5911772"
|
|
20
|
+
style="cursor: pointer;color: rgb(0,133,246); font-size: 18px;"
|
|
21
|
+
title="导出视图"
|
|
22
|
+
@click.stop="handleExport"
|
|
23
|
+
/>
|
|
24
|
+
</div>
|
|
25
|
+
<div class="button-item">
|
|
26
|
+
<el-upload
|
|
27
|
+
action=""
|
|
28
|
+
:http-request="handleImport"
|
|
29
|
+
:show-file-list="false"
|
|
30
|
+
accept=".dat"
|
|
31
|
+
>
|
|
32
|
+
<ac-icon
|
|
33
|
+
iconId="018ece4f70fcf0627f81"
|
|
34
|
+
style="cursor: pointer;color: rgb(0,133,246); font-size: 18px;"
|
|
35
|
+
title="导入视图"
|
|
36
|
+
/>
|
|
37
|
+
</el-upload>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
<el-dropdown trigger="hover">
|
|
41
|
+
<span class="title-button-box">
|
|
42
|
+
<ac-icon iconId="018dc9c3efed46e8b927" size="18" @click.stop />
|
|
43
|
+
</span>
|
|
44
|
+
<template #dropdown>
|
|
45
|
+
<el-dropdown-menu>
|
|
46
|
+
<el-dropdown-item @click.stop="addView({})">
|
|
47
|
+
<ac-icon iconId="018dc9c3efb74ac607cb" color="#67C23A" style="margin-right: 5px" /> 新增视图
|
|
48
|
+
</el-dropdown-item>
|
|
49
|
+
<el-dropdown-item @click.stop="addFolder({})" :divided="true">
|
|
50
|
+
<ac-icon iconId="018dc9c3efed6d208a59" color="orange" style="margin-right: 5px" /> 新增目录
|
|
51
|
+
</el-dropdown-item>
|
|
52
|
+
</el-dropdown-menu>
|
|
53
|
+
</template>
|
|
54
|
+
</el-dropdown>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
<div class="filter-box">
|
|
58
|
+
<el-input placeholder="搜索" v-model="filterText" clearable />
|
|
59
|
+
</div>
|
|
60
|
+
<div class="page-aside-grow">
|
|
61
|
+
<el-tree
|
|
62
|
+
ref="tree"
|
|
63
|
+
class="tree"
|
|
64
|
+
node-key="id"
|
|
65
|
+
v-loading="treeLoading"
|
|
66
|
+
element-loading-text="数据加载中..."
|
|
67
|
+
:data="treeData"
|
|
68
|
+
:props="treeProps"
|
|
69
|
+
:highlight-current="true"
|
|
70
|
+
:default-expanded-keys="treeExpand"
|
|
71
|
+
:expand-on-click-node="!treeCheck"
|
|
72
|
+
:filter-node-method="filterNode"
|
|
73
|
+
:show-checkbox="treeCheck"
|
|
74
|
+
@node-click="nodeClick"
|
|
75
|
+
>
|
|
76
|
+
<template v-slot="{ node, data }">
|
|
77
|
+
<div class="node-item">
|
|
78
|
+
<span v-if="data.type === 'folder'" class="icon">
|
|
79
|
+
<ac-icon v-if="node.expanded" color="orange" iconId="018dc9c3efedbb59d0b3" />
|
|
80
|
+
<ac-icon v-else color="orange" iconId="018dc9c3efed6d208a59" />
|
|
81
|
+
</span>
|
|
82
|
+
<span v-else-if="data.type === 'view'" class="icon">
|
|
83
|
+
<ac-icon color="#117fe8" iconId="018dc9c3efb74ac607cb" />
|
|
84
|
+
</span>
|
|
85
|
+
<span class="node-label" :title="data.text"><span>{{data.text}}</span></span>
|
|
86
|
+
<div class="node-button">
|
|
87
|
+
<el-dropdown trigger="hover" placement="bottom-start">
|
|
88
|
+
<span class="node-button-item">
|
|
89
|
+
<ac-icon iconId="018dca6283a1e534a046" @click.stop />
|
|
90
|
+
</span>
|
|
91
|
+
<template #dropdown>
|
|
92
|
+
<el-dropdown-menu v-if="data.type === 'folder'">
|
|
93
|
+
<el-dropdown-item @click="addView(data.data)">
|
|
94
|
+
<ac-icon iconId="018dc9c3efb74ac607cb" color="#67C23A" style="margin-right: 5px" />新增视图
|
|
95
|
+
</el-dropdown-item>
|
|
96
|
+
<el-dropdown-item @click="addFolder(data.data)">
|
|
97
|
+
<ac-icon iconId="018dc9c3efed6d208a59" color="orange" style="margin-right: 5px" />新增目录
|
|
98
|
+
</el-dropdown-item>
|
|
99
|
+
<el-dropdown-item @click="updateNode(data.data)">
|
|
100
|
+
<ac-icon iconId="018dca6db20c6a3aaf68" color="#0085f6" style="margin-right: 5px" />修改目录
|
|
101
|
+
</el-dropdown-item>
|
|
102
|
+
<el-dropdown-item @click="moveNode(data.data)">
|
|
103
|
+
<ac-icon iconId="018dca444e0754edef13" color="#FF6600" style="margin-right: 5px" />移动目录
|
|
104
|
+
</el-dropdown-item>
|
|
105
|
+
<el-dropdown-item @click="deleteNode(data.data)">
|
|
106
|
+
<ac-icon iconId="018dc9c3efd3a0502886" color="#F56C6C" style="margin-right: 5px" />删除目录
|
|
107
|
+
</el-dropdown-item>
|
|
108
|
+
</el-dropdown-menu>
|
|
109
|
+
<el-dropdown-menu v-else-if="data.type === 'view'">
|
|
110
|
+
<el-dropdown-item @click="editView(data.data)">
|
|
111
|
+
<ac-icon iconId="018dc9c3efb74ac607cb" color="#67C23A" style="margin-right: 5px" />修改视图
|
|
112
|
+
</el-dropdown-item>
|
|
113
|
+
<el-dropdown-item @click="deleteView(data.data)">
|
|
114
|
+
<ac-icon iconId="018dc9c3efd3a0502886" color="#F56C6C" style="margin-right: 5px" />删除视图
|
|
115
|
+
</el-dropdown-item>
|
|
116
|
+
</el-dropdown-menu>
|
|
117
|
+
</template>
|
|
118
|
+
</el-dropdown>
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
</template>
|
|
122
|
+
</el-tree>
|
|
123
|
+
</div>
|
|
124
|
+
</el-aside>
|
|
125
|
+
<el-main class="page-main">
|
|
126
|
+
<div class="box">
|
|
127
|
+
<div class="left">
|
|
128
|
+
<div class="mirror">
|
|
129
|
+
<CodeMirrorEditor
|
|
130
|
+
ref="codeMirror"
|
|
131
|
+
v-model:value="currNode.sqlText"
|
|
132
|
+
:options="codeOptions"
|
|
133
|
+
@cursorActivity="showHint"
|
|
134
|
+
border
|
|
135
|
+
/>
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
<div class="right">
|
|
139
|
+
<el-tabs v-model="tabName" class="fit-tab fit-box">
|
|
140
|
+
<el-tab-pane name="logger" label="解释结果" class="fit-box">
|
|
141
|
+
<el-input type="textarea" readonly v-model="parseLogger"></el-input>
|
|
142
|
+
</el-tab-pane>
|
|
143
|
+
<el-tab-pane name="result" label="执行结果" class="fit-box">
|
|
144
|
+
<div
|
|
145
|
+
v-if="columnList.length > 0 || dataList.length > 0"
|
|
146
|
+
class="show-max-result"
|
|
147
|
+
>
|
|
148
|
+
<ac-icon
|
|
149
|
+
iconId="018dca8cad1b28075ecd"
|
|
150
|
+
title="最大化显示"
|
|
151
|
+
@click="showResult"
|
|
152
|
+
/>
|
|
153
|
+
</div>
|
|
154
|
+
<ac-table
|
|
155
|
+
:columns="columnList"
|
|
156
|
+
:dataList="dataList"
|
|
157
|
+
:showOperators="false"
|
|
158
|
+
:showCheckBox="false"
|
|
159
|
+
:highlightCurrentRow="false"
|
|
160
|
+
:autoLoadPage="false"
|
|
161
|
+
:showQueryForm="false"
|
|
162
|
+
:showPagination="false"
|
|
163
|
+
/>
|
|
164
|
+
</el-tab-pane>
|
|
165
|
+
</el-tabs>
|
|
166
|
+
<div class="button">
|
|
167
|
+
<el-button
|
|
168
|
+
type="info"
|
|
169
|
+
@click="clean"
|
|
170
|
+
>清空日志</el-button>
|
|
171
|
+
<el-button
|
|
172
|
+
type="success"
|
|
173
|
+
@click="parseView"
|
|
174
|
+
>解释并执行</el-button>
|
|
175
|
+
<el-button
|
|
176
|
+
v-if="currNode.id"
|
|
177
|
+
type="primary"
|
|
178
|
+
@click="saveCode"
|
|
179
|
+
>保存</el-button>
|
|
180
|
+
</div>
|
|
181
|
+
</div>
|
|
182
|
+
</div>
|
|
183
|
+
</el-main>
|
|
184
|
+
</el-container>
|
|
185
|
+
</div>
|
|
186
|
+
|
|
187
|
+
<!--新增/编辑目录界面-->
|
|
188
|
+
<el-dialog
|
|
189
|
+
v-model="folderVisible"
|
|
190
|
+
:title="folderTitle"
|
|
191
|
+
width="500px"
|
|
192
|
+
:close-on-click-modal="false"
|
|
193
|
+
destroy-on-close
|
|
194
|
+
draggable
|
|
195
|
+
>
|
|
196
|
+
<el-form
|
|
197
|
+
ref="folderForm"
|
|
198
|
+
label-width="120px"
|
|
199
|
+
label-position="right"
|
|
200
|
+
:model="folderData"
|
|
201
|
+
:rules="folderRules"
|
|
202
|
+
>
|
|
203
|
+
<el-row>
|
|
204
|
+
<el-col :span="24">
|
|
205
|
+
<el-form-item label="目录名称" prop="name">
|
|
206
|
+
<el-input v-model="folderData.name" auto-complete="off"></el-input>
|
|
207
|
+
</el-form-item>
|
|
208
|
+
</el-col>
|
|
209
|
+
</el-row>
|
|
210
|
+
<el-row>
|
|
211
|
+
<el-col :span="24">
|
|
212
|
+
<el-form-item label="上级目录" prop="parentId">
|
|
213
|
+
<ac-tree
|
|
214
|
+
v-model="folderData.parentId"
|
|
215
|
+
dataUrl="/system/viewFolder/queryTree"
|
|
216
|
+
:leafSelect="false"
|
|
217
|
+
/>
|
|
218
|
+
</el-form-item>
|
|
219
|
+
</el-col>
|
|
220
|
+
</el-row>
|
|
221
|
+
</el-form>
|
|
222
|
+
<template #footer>
|
|
223
|
+
<el-button
|
|
224
|
+
size="default"
|
|
225
|
+
type="info"
|
|
226
|
+
@click="folderVisible=false"
|
|
227
|
+
>取消</el-button>
|
|
228
|
+
<el-button
|
|
229
|
+
type="primary"
|
|
230
|
+
size="default"
|
|
231
|
+
:loading="folderLoading"
|
|
232
|
+
@click="submitFolderForm"
|
|
233
|
+
>提交</el-button>
|
|
234
|
+
</template>
|
|
235
|
+
</el-dialog>
|
|
236
|
+
|
|
237
|
+
<!--移动目录界面-->
|
|
238
|
+
<el-dialog
|
|
239
|
+
v-model="moveVisible"
|
|
240
|
+
:title="moveTitle"
|
|
241
|
+
width="500px"
|
|
242
|
+
:close-on-click-modal="false"
|
|
243
|
+
destroy-on-close
|
|
244
|
+
draggable
|
|
245
|
+
>
|
|
246
|
+
<el-form
|
|
247
|
+
ref="moveForm"
|
|
248
|
+
label-width="120px"
|
|
249
|
+
label-position="right"
|
|
250
|
+
:model="moveData"
|
|
251
|
+
>
|
|
252
|
+
<el-row>
|
|
253
|
+
<el-col :span="24">
|
|
254
|
+
<el-form-item label="目录">
|
|
255
|
+
<ac-input
|
|
256
|
+
v-model="moveData.name"
|
|
257
|
+
:disabled="true"
|
|
258
|
+
/>
|
|
259
|
+
</el-form-item>
|
|
260
|
+
</el-col>
|
|
261
|
+
</el-row>
|
|
262
|
+
<el-row>
|
|
263
|
+
<el-col :span="24">
|
|
264
|
+
<el-form-item label="移动到" prop="folderId">
|
|
265
|
+
<ac-tree
|
|
266
|
+
v-model="moveData.folderId"
|
|
267
|
+
dataUrl="/system/viewFolder/queryTree"
|
|
268
|
+
:leafSelect="false"
|
|
269
|
+
/>
|
|
270
|
+
</el-form-item>
|
|
271
|
+
</el-col>
|
|
272
|
+
</el-row>
|
|
273
|
+
</el-form>
|
|
274
|
+
<template #footer>
|
|
275
|
+
<el-button
|
|
276
|
+
size="default"
|
|
277
|
+
type="info"
|
|
278
|
+
@click="moveVisible=false"
|
|
279
|
+
>取消</el-button>
|
|
280
|
+
<el-button
|
|
281
|
+
type="primary"
|
|
282
|
+
size="default"
|
|
283
|
+
:loading="moveLoading"
|
|
284
|
+
@click="submitMoveForm"
|
|
285
|
+
>提交</el-button>
|
|
286
|
+
</template>
|
|
287
|
+
</el-dialog>
|
|
288
|
+
|
|
289
|
+
<!--视图编辑-->
|
|
290
|
+
<el-dialog
|
|
291
|
+
v-model="dialogVisible"
|
|
292
|
+
width="500px"
|
|
293
|
+
:title="dialogTitle"
|
|
294
|
+
:close-on-click-modal="false"
|
|
295
|
+
destroy-on-close
|
|
296
|
+
draggable
|
|
297
|
+
>
|
|
298
|
+
<el-form
|
|
299
|
+
ref="dataForm"
|
|
300
|
+
label-width="120px"
|
|
301
|
+
label-position="right"
|
|
302
|
+
:model="formData"
|
|
303
|
+
:rules="rules"
|
|
304
|
+
>
|
|
305
|
+
<el-row>
|
|
306
|
+
<el-col :span="24">
|
|
307
|
+
<el-form-item label="视图编码" prop="code">
|
|
308
|
+
<el-input v-model="formData.code" :disabled="true" placeholder="系统自动生成" />
|
|
309
|
+
</el-form-item>
|
|
310
|
+
</el-col>
|
|
311
|
+
</el-row>
|
|
312
|
+
<el-row>
|
|
313
|
+
<el-col :span="24">
|
|
314
|
+
<el-form-item label="视图名称" prop="name">
|
|
315
|
+
<el-input v-model="formData.name" />
|
|
316
|
+
</el-form-item>
|
|
317
|
+
</el-col>
|
|
318
|
+
</el-row>
|
|
319
|
+
<el-row>
|
|
320
|
+
<el-col :span="24">
|
|
321
|
+
<el-form-item label="视图来源" prop="source">
|
|
322
|
+
<ac-radio v-model="formData.source" options="内置,数据源" />
|
|
323
|
+
</el-form-item>
|
|
324
|
+
</el-col>
|
|
325
|
+
</el-row>
|
|
326
|
+
<el-row v-if="formData.source === '数据源'">
|
|
327
|
+
<el-col :span="24">
|
|
328
|
+
<el-form-item label="数据源" prop="datasourceId">
|
|
329
|
+
<ac-remote-select
|
|
330
|
+
v-model="formData.datasourceId"
|
|
331
|
+
dataUrl="/system/datasource/queryPage"
|
|
332
|
+
:option="{id: formData.datasourceId, name: formData.datasourceName}"
|
|
333
|
+
/>
|
|
334
|
+
</el-form-item>
|
|
335
|
+
</el-col>
|
|
336
|
+
</el-row>
|
|
337
|
+
<el-row>
|
|
338
|
+
<el-col :span="24">
|
|
339
|
+
<el-form-item label="目录名称" prop="folderId">
|
|
340
|
+
<ac-tree
|
|
341
|
+
v-model="formData.folderId"
|
|
342
|
+
dataUrl="/system/viewFolder/queryTree"
|
|
343
|
+
:leafSelect="false"
|
|
344
|
+
/>
|
|
345
|
+
</el-form-item>
|
|
346
|
+
</el-col>
|
|
347
|
+
</el-row>
|
|
348
|
+
</el-form>
|
|
349
|
+
<template #footer>
|
|
350
|
+
<el-button
|
|
351
|
+
size="default"
|
|
352
|
+
type="info"
|
|
353
|
+
@click="dialogVisible=false"
|
|
354
|
+
>取消</el-button>
|
|
355
|
+
<el-button
|
|
356
|
+
type="primary"
|
|
357
|
+
size="default"
|
|
358
|
+
:loading="dialogLoading"
|
|
359
|
+
@click="submitDataForm"
|
|
360
|
+
>提交</el-button>
|
|
361
|
+
</template>
|
|
362
|
+
</el-dialog>
|
|
363
|
+
|
|
364
|
+
<!--结果显示-->
|
|
365
|
+
<el-dialog
|
|
366
|
+
v-model="resultVisible"
|
|
367
|
+
width="500px"
|
|
368
|
+
title="执行结果"
|
|
369
|
+
:close-on-click-modal="false"
|
|
370
|
+
destroy-on-close
|
|
371
|
+
fullscreen
|
|
372
|
+
>
|
|
373
|
+
<ac-table
|
|
374
|
+
:columns="columnList"
|
|
375
|
+
:dataList="dataList"
|
|
376
|
+
:showOperators="false"
|
|
377
|
+
:showCheckBox="false"
|
|
378
|
+
:highlightCurrentRow="false"
|
|
379
|
+
:autoLoadPage="false"
|
|
380
|
+
:showQueryForm="false"
|
|
381
|
+
:showPagination="false"
|
|
382
|
+
/>
|
|
383
|
+
</el-dialog>
|
|
384
|
+
</template>
|
|
385
|
+
|
|
386
|
+
<script setup>
|
|
387
|
+
import { ref, nextTick, watch, onMounted, onBeforeMount } from 'vue';
|
|
388
|
+
import { ElMessage, ElMessageBox } from 'element-plus';
|
|
389
|
+
import api from '@/http/api';
|
|
390
|
+
import CodeMirrorEditor from 'codemirror-editor-vue3';
|
|
391
|
+
import 'codemirror/mode/css/css.js';
|
|
392
|
+
import 'codemirror/lib/codemirror.css';
|
|
393
|
+
import 'codemirror/theme/dracula.css';
|
|
394
|
+
import 'codemirror/mode/vue/vue.js';
|
|
395
|
+
import 'codemirror/mode/htmlmixed/htmlmixed.js';
|
|
396
|
+
import 'codemirror/mode/javascript/javascript.js';
|
|
397
|
+
import 'codemirror/mode/sql/sql.js';
|
|
398
|
+
import 'codemirror/addon/selection/active-line.js';
|
|
399
|
+
import 'codemirror/addon/selection/mark-selection.js';
|
|
400
|
+
import 'codemirror/addon/search/searchcursor.js';
|
|
401
|
+
import 'codemirror/addon/scroll/annotatescrollbar.js';
|
|
402
|
+
import 'codemirror/addon/search/matchesonscrollbar.js';
|
|
403
|
+
import 'codemirror/addon/search/match-highlighter.js';
|
|
404
|
+
import 'codemirror/mode/clike/clike.js';
|
|
405
|
+
import 'codemirror/addon/edit/matchbrackets.js';
|
|
406
|
+
import 'codemirror/addon/comment/comment.js';
|
|
407
|
+
import 'codemirror/addon/dialog/dialog.js';
|
|
408
|
+
import 'codemirror/addon/dialog/dialog.css';
|
|
409
|
+
import 'codemirror/addon/search/search.js';
|
|
410
|
+
import 'codemirror/keymap/sublime.js';
|
|
411
|
+
import 'codemirror/addon/fold/foldgutter.css';
|
|
412
|
+
import 'codemirror/addon/fold/brace-fold.js';
|
|
413
|
+
import 'codemirror/addon/fold/comment-fold.js';
|
|
414
|
+
import 'codemirror/addon/fold/foldcode.js';
|
|
415
|
+
import 'codemirror/addon/fold/foldgutter.js';
|
|
416
|
+
import 'codemirror/addon/fold/indent-fold.js';
|
|
417
|
+
import 'codemirror/addon/fold/markdown-fold.js';
|
|
418
|
+
import 'codemirror/addon/fold/xml-fold.js';
|
|
419
|
+
import 'codemirror/addon/hint/show-hint.js';
|
|
420
|
+
import 'codemirror/addon/hint/anyword-hint.js';
|
|
421
|
+
import 'codemirror/addon/hint/javascript-hint.js';
|
|
422
|
+
import 'codemirror/addon/hint/sql-hint.js';
|
|
423
|
+
import '@/assets/style/code.css';
|
|
424
|
+
import loading from '@/utils/loading';
|
|
425
|
+
import code from '@/admin/components/code/code.js';
|
|
426
|
+
|
|
427
|
+
const tree = ref();
|
|
428
|
+
const hintList = ref([]);
|
|
429
|
+
const filterText = ref('');
|
|
430
|
+
const treeLoading = ref(false);
|
|
431
|
+
const treeKey = ref('');
|
|
432
|
+
const treeData = ref([]);
|
|
433
|
+
const treeExpand = ref([]);
|
|
434
|
+
const treeCheck = ref(false);
|
|
435
|
+
const treeProps = ref({
|
|
436
|
+
children: 'children',
|
|
437
|
+
label: function(data) {
|
|
438
|
+
return data.text +
|
|
439
|
+
(data.data.code !== undefined && data.data.code != null
|
|
440
|
+
? ' [' + data.data.code + '] '
|
|
441
|
+
: ' ')
|
|
442
|
+
}
|
|
443
|
+
});
|
|
444
|
+
const currNode = ref({
|
|
445
|
+
sqlText: ''
|
|
446
|
+
});
|
|
447
|
+
|
|
448
|
+
const folderTitle = ref('');
|
|
449
|
+
const folderVisible = ref(false);
|
|
450
|
+
const folderLoading = ref(false);
|
|
451
|
+
const folderForm = ref();
|
|
452
|
+
const folderData = ref({});
|
|
453
|
+
const folderRules = ref({
|
|
454
|
+
name: [{ required: true, message: '请输入目录名称', trigger: ['blur', 'change'] }],
|
|
455
|
+
});
|
|
456
|
+
|
|
457
|
+
const moveTitle = ref('');
|
|
458
|
+
const moveVisible = ref(false);
|
|
459
|
+
const moveLoading = ref(false);
|
|
460
|
+
const moveForm = ref();
|
|
461
|
+
const moveData = ref({});
|
|
462
|
+
|
|
463
|
+
const dialogVisible = ref(false);
|
|
464
|
+
const dialogTitle = ref('');
|
|
465
|
+
const dialogLoading = ref();
|
|
466
|
+
const dataForm = ref();
|
|
467
|
+
const formData = ref({});
|
|
468
|
+
const rules = ref({
|
|
469
|
+
name: [
|
|
470
|
+
{ required: true, message: '请输入视图名称', trigger: ['blur', 'change'] },
|
|
471
|
+
{ max: 100, message: '视图名称长度最多只能是100个字符', trigger: ['blur', 'change'] }
|
|
472
|
+
],
|
|
473
|
+
datasourceId: [
|
|
474
|
+
{ required: true, message: '请选择数据源', trigger: ['blur', 'change'] },
|
|
475
|
+
],
|
|
476
|
+
});
|
|
477
|
+
|
|
478
|
+
const codeMirror = ref();
|
|
479
|
+
const codeOptions = ref({});
|
|
480
|
+
const tabName = ref('logger');
|
|
481
|
+
const parseLogger = ref('');
|
|
482
|
+
const columnList = ref([]);
|
|
483
|
+
const dataList = ref([]);
|
|
484
|
+
|
|
485
|
+
const resultVisible = ref(false);
|
|
486
|
+
|
|
487
|
+
const changeMode = () => {
|
|
488
|
+
treeCheck.value = !treeCheck.value;
|
|
489
|
+
if (treeCheck.value) {
|
|
490
|
+
tree.value.setCheckedNodes([]);
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
const handleExport = () => {
|
|
495
|
+
const nodes = tree.value.getCheckedNodes(false, true);
|
|
496
|
+
if (!nodes || nodes.length === 0) {
|
|
497
|
+
ElMessage.error('请先选择视图!');
|
|
498
|
+
return;
|
|
499
|
+
}
|
|
500
|
+
const data = { folderIds: [], viewIds: [] };
|
|
501
|
+
nodes.forEach(node => {
|
|
502
|
+
if (node.type === 'folder') {
|
|
503
|
+
data.folderIds.push(node.id);
|
|
504
|
+
} else if (node.type === 'view') {
|
|
505
|
+
data.viewIds.push(node.id);
|
|
506
|
+
}
|
|
507
|
+
});
|
|
508
|
+
api.downloadFile('/system/view/exportData', data).then(res => api.saveFileLocal(res));
|
|
509
|
+
};
|
|
510
|
+
|
|
511
|
+
const handleImport = (file) => {
|
|
512
|
+
api.uploadFile('/system/view/importData', { file: file.file }).then((res) => {
|
|
513
|
+
ElMessage.success(res.message);
|
|
514
|
+
loadTreeData();
|
|
515
|
+
});
|
|
516
|
+
};
|
|
517
|
+
|
|
518
|
+
const filterNode = (value, data) => {
|
|
519
|
+
if (!value) return true;
|
|
520
|
+
return data.text.indexOf(value) >= 0 ||
|
|
521
|
+
(data.data.code != null && data.data.code.indexOf(value) >= 0);
|
|
522
|
+
};
|
|
523
|
+
|
|
524
|
+
const nodeClick = (data, treeNode) => {
|
|
525
|
+
if (currNode.value && (currNode.value.id === data.id || currNode.value.fid === data.id)) {
|
|
526
|
+
treeNode.checked = !treeNode.checked;
|
|
527
|
+
} else {
|
|
528
|
+
treeNode.checked = true;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
if (treeNode.checked) {
|
|
532
|
+
currNode.value = data;
|
|
533
|
+
if (data.type === 'view') {
|
|
534
|
+
loadGroovy(data);
|
|
535
|
+
} else {
|
|
536
|
+
currNode.value = { fid: data.id, sqlText: '' };
|
|
537
|
+
}
|
|
538
|
+
} else {
|
|
539
|
+
tree.value.setCurrentKey(null);
|
|
540
|
+
currNode.value = { sqlText: '' };
|
|
541
|
+
}
|
|
542
|
+
};
|
|
543
|
+
|
|
544
|
+
const loadGroovy = (data) => {
|
|
545
|
+
currNode.value = { id: data.id || '', sqlText: '' };
|
|
546
|
+
loading.showLoading();
|
|
547
|
+
api.post('/system/view/queryBy', { id: data.id }).then(res => {
|
|
548
|
+
const data = res.data || {};
|
|
549
|
+
if (!data.sqlText) {
|
|
550
|
+
data.sqlText = '';
|
|
551
|
+
}
|
|
552
|
+
currNode.value = data;
|
|
553
|
+
loading.hideLoading();
|
|
554
|
+
}).catch(() => loading.hideLoading());
|
|
555
|
+
};
|
|
556
|
+
|
|
557
|
+
const addView = (data) => {
|
|
558
|
+
formData.value = { folderId: data.id, source: '内置' };
|
|
559
|
+
dialogTitle.value = '新增视图';
|
|
560
|
+
dialogVisible.value = true;
|
|
561
|
+
};
|
|
562
|
+
|
|
563
|
+
const editView = (data) => {
|
|
564
|
+
formData.value = data;
|
|
565
|
+
dialogTitle.value = '编辑视图';
|
|
566
|
+
dialogVisible.value = true;
|
|
567
|
+
};
|
|
568
|
+
|
|
569
|
+
const deleteView = (data) => {
|
|
570
|
+
const url = '/system/view/delete';
|
|
571
|
+
ElMessageBox.confirm('请确认是否删除【' + data.name + '】?', '提示', { type: 'warning' }).then(() => {
|
|
572
|
+
api.post(url, { id: data.id }).then(res => {
|
|
573
|
+
ElMessage.success(res.message);
|
|
574
|
+
treeExpand.value.push(data.parentId || '0');
|
|
575
|
+
treeExpand.value.push(data.folderId || '0');
|
|
576
|
+
treeKey.value = data.parentId || data.folderId || '0';
|
|
577
|
+
loadTreeData();
|
|
578
|
+
});
|
|
579
|
+
}).catch(() => {});
|
|
580
|
+
};
|
|
581
|
+
|
|
582
|
+
const addFolder = (data) => {
|
|
583
|
+
showFolderDialog('新增', { parentId: data.id || '', ordinal: 10 });
|
|
584
|
+
};
|
|
585
|
+
|
|
586
|
+
const showFolderDialog = (tips, data) => {
|
|
587
|
+
folderTitle.value = tips + '目录';
|
|
588
|
+
folderVisible.value = true;
|
|
589
|
+
folderData.value = Object.assign({}, data);
|
|
590
|
+
folderForm.value && folderForm.value.resetFields();
|
|
591
|
+
};
|
|
592
|
+
|
|
593
|
+
const updateNode = (data) => {
|
|
594
|
+
showFolderDialog('修改', data);
|
|
595
|
+
};
|
|
596
|
+
|
|
597
|
+
const moveNode = (data) => {
|
|
598
|
+
moveTitle.value = '移动目录';
|
|
599
|
+
moveVisible.value = true;
|
|
600
|
+
moveData.value = { id: data.id, name: data.name, folderId: data.parentId };
|
|
601
|
+
moveForm.value && moveForm.value.resetFields();
|
|
602
|
+
};
|
|
603
|
+
|
|
604
|
+
const deleteNode = (data) => {
|
|
605
|
+
const url = '/system/viewFolder/delete';
|
|
606
|
+
ElMessageBox.confirm('请确认是否删除【' + data.name + '】?', '提示', { type: 'warning' }).then(() => {
|
|
607
|
+
api.post(url, { id: data.id }).then(res => {
|
|
608
|
+
ElMessage.success(res.message);
|
|
609
|
+
treeExpand.value.push(data.parentId || data.folderId || '0');
|
|
610
|
+
treeKey.value = data.parentId || data.folderId || '0';
|
|
611
|
+
loadTreeData();
|
|
612
|
+
});
|
|
613
|
+
}).catch(() => {});
|
|
614
|
+
};
|
|
615
|
+
|
|
616
|
+
const submitFolderForm = () => {
|
|
617
|
+
folderForm.value && folderForm.value.validate((valid) => {
|
|
618
|
+
if (valid) {
|
|
619
|
+
ElMessageBox.confirm('请确认是否提交?', '提示', { type: 'info' }).then(() => {
|
|
620
|
+
folderLoading.value = true;
|
|
621
|
+
api.post('/system/viewFolder/save', folderData.value).then(res => {
|
|
622
|
+
ElMessage.success(res.message);
|
|
623
|
+
folderVisible.value = false;
|
|
624
|
+
folderLoading.value = false;
|
|
625
|
+
treeExpand.value.push(res.data.id || '0');
|
|
626
|
+
treeKey.value = res.data.id || '0';
|
|
627
|
+
loadTreeData();
|
|
628
|
+
}).catch(() => {
|
|
629
|
+
folderLoading.value = false;
|
|
630
|
+
});
|
|
631
|
+
}).catch(() => {});
|
|
632
|
+
}
|
|
633
|
+
});
|
|
634
|
+
};
|
|
635
|
+
|
|
636
|
+
const submitMoveForm = () => {
|
|
637
|
+
moveForm.value && moveForm.value.validate((valid) => {
|
|
638
|
+
if (valid) {
|
|
639
|
+
ElMessageBox.confirm('请确认是否提交?', '提示', { type: 'info' }).then(() => {
|
|
640
|
+
moveLoading.value = true;
|
|
641
|
+
const data = { id: moveData.value.id, parentId: moveData.value.folderId };
|
|
642
|
+
const url = '/system/viewFolder/updateParentId';
|
|
643
|
+
api.post(url, data).then(res => {
|
|
644
|
+
ElMessage.success(res.message);
|
|
645
|
+
moveVisible.value = false;
|
|
646
|
+
moveLoading.value = false;
|
|
647
|
+
treeExpand.value.push(moveData.value.id || '0');
|
|
648
|
+
treeKey.value = moveData.value.id || '0';
|
|
649
|
+
loadTreeData();
|
|
650
|
+
}).catch(() => {
|
|
651
|
+
moveLoading.value = false;
|
|
652
|
+
})
|
|
653
|
+
}).catch(() => {});
|
|
654
|
+
}
|
|
655
|
+
});
|
|
656
|
+
};
|
|
657
|
+
|
|
658
|
+
const submitDataForm = () => {
|
|
659
|
+
dataForm.value && dataForm.value.validate((valid) => {
|
|
660
|
+
if (valid) {
|
|
661
|
+
ElMessageBox.confirm('请确认是否提交?', '提示', { type: 'info' }).then(() => {
|
|
662
|
+
api.post('/system/view/saveSimple', formData.value)
|
|
663
|
+
.then((res) => {
|
|
664
|
+
ElMessage.success(res.message);
|
|
665
|
+
afterSubmit(res.data);
|
|
666
|
+
}).catch(() => {
|
|
667
|
+
});
|
|
668
|
+
}).catch(() => {});
|
|
669
|
+
} else {
|
|
670
|
+
ElMessage.error('数据录入不正确,请重新检查!');
|
|
671
|
+
}
|
|
672
|
+
});
|
|
673
|
+
};
|
|
674
|
+
|
|
675
|
+
const afterSubmit = (data) => {
|
|
676
|
+
treeKey.value = data.id || '';
|
|
677
|
+
dialogVisible.value = false;
|
|
678
|
+
loadGroovy(data);
|
|
679
|
+
loadTreeData();
|
|
680
|
+
};
|
|
681
|
+
|
|
682
|
+
const loadTreeData = () => {
|
|
683
|
+
treeLoading.value = true;
|
|
684
|
+
api.post('/system/view/queryTree').then(res => {
|
|
685
|
+
const node = tree.value.getCurrentNode();
|
|
686
|
+
if (node !== undefined && node != null) {
|
|
687
|
+
treeExpand.value = [node.id, node.data.parentId, node.data.folderId, '0'];
|
|
688
|
+
} else {
|
|
689
|
+
treeExpand.value = ['0'];
|
|
690
|
+
}
|
|
691
|
+
treeData.value = res.data.children;
|
|
692
|
+
treeLoading.value = false;
|
|
693
|
+
if (treeKey.value) {
|
|
694
|
+
nextTick(() => {
|
|
695
|
+
tree.value.setCurrentKey(treeKey.value);
|
|
696
|
+
});
|
|
697
|
+
}
|
|
698
|
+
}).catch(() => {
|
|
699
|
+
treeLoading.value = false;
|
|
700
|
+
});
|
|
701
|
+
};
|
|
702
|
+
|
|
703
|
+
const showHint = () => {
|
|
704
|
+
code.showHint(codeMirror.value.cminstance, hintList.value);
|
|
705
|
+
};
|
|
706
|
+
|
|
707
|
+
const saveCode = () => {
|
|
708
|
+
ElMessageBox.confirm('请确认是否提交?', '提示', { type: 'info' }).then(() => {
|
|
709
|
+
api.post('/system/view/save', currNode.value).then((res) => {
|
|
710
|
+
ElMessage.success(res.message);
|
|
711
|
+
});
|
|
712
|
+
}).catch(() => {});
|
|
713
|
+
};
|
|
714
|
+
|
|
715
|
+
const clean = () => {
|
|
716
|
+
parseLogger.value = '';
|
|
717
|
+
columnList.value = [];
|
|
718
|
+
dataList.value = [];
|
|
719
|
+
};
|
|
720
|
+
|
|
721
|
+
const parseView = () => {
|
|
722
|
+
if (!currNode.value.sqlText) {
|
|
723
|
+
ElMessage.error('调试语句不能为空!');
|
|
724
|
+
return;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
parseLogger.value = '';
|
|
728
|
+
columnList.value = [];
|
|
729
|
+
dataList.value = [];
|
|
730
|
+
|
|
731
|
+
let data;
|
|
732
|
+
if (!currNode.value.id) {
|
|
733
|
+
data = { source: '内置', sqlText: currNode.value.sqlText };
|
|
734
|
+
} else {
|
|
735
|
+
data = currNode.value;
|
|
736
|
+
}
|
|
737
|
+
api.post('/system/view/parseView', data).then(res => {
|
|
738
|
+
parseLogger.value = '';
|
|
739
|
+
|
|
740
|
+
const tempColumnList = [];
|
|
741
|
+
(res.data.columnList).forEach(column => {
|
|
742
|
+
tempColumnList.push({
|
|
743
|
+
prop: column.columnName,
|
|
744
|
+
label: column.columnLabel,
|
|
745
|
+
sortable: false
|
|
746
|
+
});
|
|
747
|
+
});
|
|
748
|
+
columnList.value = tempColumnList;
|
|
749
|
+
|
|
750
|
+
const tempDataList = [];
|
|
751
|
+
(res.data.dataList).forEach(data => {
|
|
752
|
+
const tempData = {};
|
|
753
|
+
for (const p in data) {
|
|
754
|
+
tempData[p] = (data[p] || '') + '';
|
|
755
|
+
}
|
|
756
|
+
tempDataList.push(tempData);
|
|
757
|
+
});
|
|
758
|
+
dataList.value = tempDataList;
|
|
759
|
+
tabName.value = 'result';
|
|
760
|
+
}).catch(error => {
|
|
761
|
+
parseLogger.value = error.message;
|
|
762
|
+
tabName.value = 'logger';
|
|
763
|
+
});
|
|
764
|
+
};
|
|
765
|
+
|
|
766
|
+
const showResult = () => {
|
|
767
|
+
resultVisible.value = true;
|
|
768
|
+
};
|
|
769
|
+
|
|
770
|
+
watch(() => filterText.value, val => {
|
|
771
|
+
tree.value.filter(val);
|
|
772
|
+
});
|
|
773
|
+
|
|
774
|
+
onBeforeMount(() => {
|
|
775
|
+
codeOptions.value = code.loadOptions('text/x-sql', 4);
|
|
776
|
+
});
|
|
777
|
+
|
|
778
|
+
onMounted(async() => {
|
|
779
|
+
hintList.value.push(...await code.loadModelHint());
|
|
780
|
+
loadTreeData();
|
|
781
|
+
await nextTick(() => codeMirror.value.refresh());
|
|
782
|
+
});
|
|
783
|
+
</script>
|
|
784
|
+
|
|
785
|
+
<style scoped lang="scss">
|
|
786
|
+
.mirror {
|
|
787
|
+
line-height: 25px;
|
|
788
|
+
:deep(.cm-match-highlight) {
|
|
789
|
+
background-color: #ffff0066;
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
.mirror pre, .mirror div, .mirror span,
|
|
793
|
+
.mirror :deep(.CodeMirror pre.CodeMirror-line),
|
|
794
|
+
.mirror :deep(.CodeMirror pre.CodeMirror-line-like) {
|
|
795
|
+
font-family: "Courier New", "Helvetica Neue", Helvetica, "PingFang SC",
|
|
796
|
+
"Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif!important;
|
|
797
|
+
}
|
|
798
|
+
.title {
|
|
799
|
+
display: flex;
|
|
800
|
+
flex-direction: row;
|
|
801
|
+
margin-right: 10px;
|
|
802
|
+
height: 40px;
|
|
803
|
+
align-items: center;
|
|
804
|
+
|
|
805
|
+
.title-content {
|
|
806
|
+
flex-grow: 1;
|
|
807
|
+
font-size: 18px;
|
|
808
|
+
}
|
|
809
|
+
.title-button {
|
|
810
|
+
display: flex;
|
|
811
|
+
flex-direction: row;
|
|
812
|
+
justify-content: center;
|
|
813
|
+
align-items: center;
|
|
814
|
+
}
|
|
815
|
+
.title-button .button-list {
|
|
816
|
+
display: flex;
|
|
817
|
+
flex-direction: row;
|
|
818
|
+
align-items: center;
|
|
819
|
+
.button-item {
|
|
820
|
+
margin: 0 5px 0 5px;
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
.title-button .title-button-box {
|
|
824
|
+
height: 30px;
|
|
825
|
+
width: 40px;
|
|
826
|
+
border-radius: 5px;
|
|
827
|
+
display: flex;
|
|
828
|
+
flex-direction: row;
|
|
829
|
+
align-items: center;
|
|
830
|
+
justify-content: center;
|
|
831
|
+
border: none;
|
|
832
|
+
cursor: pointer;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
.title-button .title-button-box:hover {
|
|
836
|
+
background: #eaeaea;
|
|
837
|
+
border: none;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
.title-button .title-button-box:focus-visible {
|
|
841
|
+
outline: unset;
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
.filter-box {
|
|
846
|
+
margin-right: 10px;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
.tree :deep(.el-tree-node__content) {
|
|
850
|
+
height: 40px;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
.page-aside-grow {
|
|
854
|
+
width: 100% !important;
|
|
855
|
+
|
|
856
|
+
:deep(.el-tree) {
|
|
857
|
+
display: flex;
|
|
858
|
+
flex-direction: column;
|
|
859
|
+
width: 1px !important;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
:deep(.el-tree-node) {
|
|
863
|
+
display: flex;
|
|
864
|
+
flex-direction: column;
|
|
865
|
+
width: 100% !important;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
:deep(.el-tree-node__content) {
|
|
869
|
+
display: flex;
|
|
870
|
+
flex-grow: 1;
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
.node-item {
|
|
875
|
+
display: flex;
|
|
876
|
+
flex-direction: row;
|
|
877
|
+
align-items: center;
|
|
878
|
+
width: 100%;
|
|
879
|
+
|
|
880
|
+
.icon {
|
|
881
|
+
display: flex;
|
|
882
|
+
align-items: center;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
.node-label {
|
|
886
|
+
margin-left: 6px;
|
|
887
|
+
flex-grow: 1;
|
|
888
|
+
width: 1px;
|
|
889
|
+
text-overflow: ellipsis;
|
|
890
|
+
overflow: hidden;
|
|
891
|
+
display: flex;
|
|
892
|
+
|
|
893
|
+
> span {
|
|
894
|
+
width: 100%;
|
|
895
|
+
text-overflow: ellipsis;
|
|
896
|
+
overflow: hidden;
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
.node-button {
|
|
900
|
+
margin-right: 10px;
|
|
901
|
+
display: flex;
|
|
902
|
+
justify-content: center;
|
|
903
|
+
align-items: center;
|
|
904
|
+
}
|
|
905
|
+
.node-button .node-button-item {
|
|
906
|
+
height: 30px;
|
|
907
|
+
width: 40px;
|
|
908
|
+
display: flex;
|
|
909
|
+
justify-content: center;
|
|
910
|
+
align-items: center;
|
|
911
|
+
border-radius: 5px;
|
|
912
|
+
}
|
|
913
|
+
.node-button .node-button-item:focus-visible {
|
|
914
|
+
outline: unset;
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
:deep(.el-tree-node:not(.is-current):focus>.el-tree-node__content) {
|
|
918
|
+
background-color: unset!important;
|
|
919
|
+
}
|
|
920
|
+
:deep(.el-tree-node:focus>.el-tree-node__content) {
|
|
921
|
+
background-color: unset!important;
|
|
922
|
+
}
|
|
923
|
+
:deep(.el-tree-node:focus>.el-tree-node__content:hover) {
|
|
924
|
+
background-color: #f5f7fa!important;
|
|
925
|
+
}
|
|
926
|
+
:deep(.el-tree-node.is-current:focus>.el-tree-node__content) {
|
|
927
|
+
background-color: #ecf5ff!important;
|
|
928
|
+
}
|
|
929
|
+
.node-item:hover {
|
|
930
|
+
.node-button .node-button-item:hover {
|
|
931
|
+
background: #eaeaea;
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
.page-main {
|
|
935
|
+
padding: 0!important;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
.box {
|
|
939
|
+
display: flex;
|
|
940
|
+
flex-direction: row;
|
|
941
|
+
height: 100%;
|
|
942
|
+
width: 100%;
|
|
943
|
+
.left {
|
|
944
|
+
width: 1px;
|
|
945
|
+
height: 100%;
|
|
946
|
+
flex-grow: 1;
|
|
947
|
+
display: flex;
|
|
948
|
+
flex-direction: column;
|
|
949
|
+
.mirror {
|
|
950
|
+
height: 1px;
|
|
951
|
+
flex-grow: 1;
|
|
952
|
+
overflow: hidden;
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
.right {
|
|
956
|
+
width: 400px;
|
|
957
|
+
padding: 0 0 0 10px;
|
|
958
|
+
display: flex;
|
|
959
|
+
flex-direction: column;
|
|
960
|
+
:deep(.el-tabs) {
|
|
961
|
+
padding: 0;
|
|
962
|
+
.el-tabs__header {
|
|
963
|
+
margin-bottom: 2px !important;
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
.tool {
|
|
967
|
+
height: 1px;
|
|
968
|
+
overflow: auto;
|
|
969
|
+
flex-grow: 1;
|
|
970
|
+
:deep(.el-collapse-item__header) {
|
|
971
|
+
font-size: 14px;
|
|
972
|
+
}
|
|
973
|
+
.function-item {
|
|
974
|
+
display: flex;
|
|
975
|
+
flex-direction: row;
|
|
976
|
+
.tooltip {
|
|
977
|
+
width: 1px;
|
|
978
|
+
flex-grow: 1;
|
|
979
|
+
flex-wrap: nowrap;
|
|
980
|
+
white-space: nowrap;
|
|
981
|
+
overflow: hidden;
|
|
982
|
+
text-overflow: ellipsis;
|
|
983
|
+
cursor: pointer;
|
|
984
|
+
color: #0055ff;
|
|
985
|
+
margin-right: 10px;
|
|
986
|
+
}
|
|
987
|
+
.example {
|
|
988
|
+
width: 50px;
|
|
989
|
+
color: coral;
|
|
990
|
+
font-weight: bold;
|
|
991
|
+
cursor: pointer;
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
:deep(.el-textarea) {
|
|
996
|
+
height: 100%;
|
|
997
|
+
}
|
|
998
|
+
:deep(.el-textarea__inner) {
|
|
999
|
+
height: 100%;
|
|
1000
|
+
background: #282a36;
|
|
1001
|
+
color: #f1fa8c!important;
|
|
1002
|
+
box-shadow: none;
|
|
1003
|
+
resize: none;
|
|
1004
|
+
padding: 5px 0 5px 10px;
|
|
1005
|
+
overflow-y: auto;
|
|
1006
|
+
font-family: "Courier New", "Helvetica Neue", Helvetica, "PingFang SC",
|
|
1007
|
+
"Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif!important;
|
|
1008
|
+
}
|
|
1009
|
+
.button {
|
|
1010
|
+
padding: 5px 0 0 10px;
|
|
1011
|
+
text-align: right;
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
.content-box {
|
|
1016
|
+
.title {
|
|
1017
|
+
margin-bottom: 10px;
|
|
1018
|
+
font-size: 16px!important;
|
|
1019
|
+
}
|
|
1020
|
+
.content {
|
|
1021
|
+
font-size: 15px!important;
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
.show-max-result {
|
|
1026
|
+
position: absolute;
|
|
1027
|
+
cursor: pointer;
|
|
1028
|
+
top: 5px;
|
|
1029
|
+
right: 5px;
|
|
1030
|
+
z-index: 1000;
|
|
1031
|
+
font-size: 18px;
|
|
1032
|
+
color: red;
|
|
1033
|
+
}
|
|
1034
|
+
</style>
|