@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,371 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="page-container">
|
|
3
|
+
<el-form
|
|
4
|
+
:model="formData"
|
|
5
|
+
ref="dataForm"
|
|
6
|
+
label-width="140px"
|
|
7
|
+
label-position="right"
|
|
8
|
+
:rules="rules"
|
|
9
|
+
>
|
|
10
|
+
<el-row>
|
|
11
|
+
<el-col :span="11">
|
|
12
|
+
<el-form-item label="网页标题" prop="webTitle">
|
|
13
|
+
<el-input v-model="formData.webTitle"></el-input>
|
|
14
|
+
</el-form-item>
|
|
15
|
+
</el-col>
|
|
16
|
+
</el-row>
|
|
17
|
+
<el-row>
|
|
18
|
+
<el-col :span="22">
|
|
19
|
+
<span class="tips">登录配置</span>
|
|
20
|
+
</el-col>
|
|
21
|
+
</el-row>
|
|
22
|
+
<el-row>
|
|
23
|
+
<el-col :span="11">
|
|
24
|
+
<el-form-item label="背景图" prop="loginBgImageId">
|
|
25
|
+
<ac-image v-model="formData.loginBgImageId" />
|
|
26
|
+
</el-form-item>
|
|
27
|
+
</el-col>
|
|
28
|
+
</el-row>
|
|
29
|
+
<el-row>
|
|
30
|
+
<el-col :span="11">
|
|
31
|
+
<el-form-item label="显示验证码" prop="loginCaptcha">
|
|
32
|
+
<ac-dict-buttons v-model="formData.loginCaptcha" dictCode="dictYesNo" />
|
|
33
|
+
</el-form-item>
|
|
34
|
+
</el-col>
|
|
35
|
+
</el-row>
|
|
36
|
+
<!--
|
|
37
|
+
<el-row>
|
|
38
|
+
<el-col :span="8">
|
|
39
|
+
<el-form-item label="登录页面" prop="loginPageId">
|
|
40
|
+
<ac-tree
|
|
41
|
+
v-model="formData.loginPageId"
|
|
42
|
+
data-url="/system/page/queryTree"
|
|
43
|
+
type-select="page"
|
|
44
|
+
/>
|
|
45
|
+
</el-form-item>
|
|
46
|
+
</el-col>
|
|
47
|
+
</el-row>
|
|
48
|
+
-->
|
|
49
|
+
<el-row>
|
|
50
|
+
<el-col :span="11">
|
|
51
|
+
<el-form-item prop="ssoScriptId">
|
|
52
|
+
<template #label>
|
|
53
|
+
<el-tooltip>
|
|
54
|
+
<template #content>
|
|
55
|
+
<p>1、如果解释单点登录过来的消息正确时,在脚本中直接返回解释出来的员工Id即可。</p>
|
|
56
|
+
<p>2、如果解释单点登录过来的消息失败时,在脚本中抛出一个错误异常即可。</p>
|
|
57
|
+
</template>
|
|
58
|
+
<div>
|
|
59
|
+
<span style="margin-right: 5px">登录脚本</span>
|
|
60
|
+
<ac-icon iconId="018dca8ec9890493be26" />
|
|
61
|
+
</div>
|
|
62
|
+
</el-tooltip>
|
|
63
|
+
</template>
|
|
64
|
+
<ac-tree
|
|
65
|
+
v-model="formData.ssoScriptId"
|
|
66
|
+
data-url="/system/scriptGroovy/queryTree"
|
|
67
|
+
type-select="script"
|
|
68
|
+
/>
|
|
69
|
+
</el-form-item>
|
|
70
|
+
</el-col>
|
|
71
|
+
</el-row>
|
|
72
|
+
<el-row>
|
|
73
|
+
<el-col :span="22">
|
|
74
|
+
<el-form-item label="页面样式" prop="loginCss" style="height: 350px">
|
|
75
|
+
<ac-code v-model="formData.loginCss" mode="css"></ac-code>
|
|
76
|
+
</el-form-item>
|
|
77
|
+
</el-col>
|
|
78
|
+
</el-row>
|
|
79
|
+
<el-row>
|
|
80
|
+
<el-col :span="22">
|
|
81
|
+
<span class="tips">注册配置</span>
|
|
82
|
+
</el-col>
|
|
83
|
+
</el-row>
|
|
84
|
+
<el-row>
|
|
85
|
+
<el-col :span="5">
|
|
86
|
+
<el-form-item label="开启注册" prop="register">
|
|
87
|
+
<ac-dict-buttons v-model="formData.register" dictCode="dictYesNo" />
|
|
88
|
+
</el-form-item>
|
|
89
|
+
</el-col>
|
|
90
|
+
<el-col :span="6" v-if="formData.register === '1'">
|
|
91
|
+
<el-form-item label="弹窗大小" prop="registerWidth">
|
|
92
|
+
<ac-number v-model="formData.registerWidth" pointer="0" />
|
|
93
|
+
</el-form-item>
|
|
94
|
+
</el-col>
|
|
95
|
+
<el-col :span="11" v-if="formData.register === '1'">
|
|
96
|
+
<el-form-item label="弹窗标题" prop="registerTitle">
|
|
97
|
+
<ac-input v-model="formData.registerTitle" />
|
|
98
|
+
</el-form-item>
|
|
99
|
+
</el-col>
|
|
100
|
+
</el-row>
|
|
101
|
+
<el-row v-if="formData.register === '1'">
|
|
102
|
+
<el-col :span="11">
|
|
103
|
+
<el-form-item label="弹窗页面" prop="registerPageId">
|
|
104
|
+
<ac-tree
|
|
105
|
+
v-model="formData.registerPageId"
|
|
106
|
+
data-url="/system/page/queryTree"
|
|
107
|
+
type-select="page"
|
|
108
|
+
/>
|
|
109
|
+
</el-form-item>
|
|
110
|
+
</el-col>
|
|
111
|
+
<el-col :span="11">
|
|
112
|
+
<el-form-item label="注册脚本" prop="registerScriptId">
|
|
113
|
+
<ac-tree
|
|
114
|
+
v-model="formData.registerScriptId"
|
|
115
|
+
data-url="/system/scriptGroovy/queryTree"
|
|
116
|
+
type-select="script"
|
|
117
|
+
/>
|
|
118
|
+
</el-form-item>
|
|
119
|
+
</el-col>
|
|
120
|
+
</el-row>
|
|
121
|
+
<el-row>
|
|
122
|
+
<el-col :span="22">
|
|
123
|
+
<span class="tips">密码配置</span>
|
|
124
|
+
</el-col>
|
|
125
|
+
</el-row>
|
|
126
|
+
<el-row>
|
|
127
|
+
<el-col :span="11">
|
|
128
|
+
<el-form-item label="开启密码校验" prop="passwordCheck">
|
|
129
|
+
<ac-dict-buttons v-model="formData.passwordCheck" dictCode="dictYesNo" />
|
|
130
|
+
</el-form-item>
|
|
131
|
+
</el-col>
|
|
132
|
+
<el-col :span="11" v-if="formData.passwordCheck === '1'">
|
|
133
|
+
<el-form-item label="密码过期天数" prop="passwordDay">
|
|
134
|
+
<template #label>
|
|
135
|
+
<el-tooltip>
|
|
136
|
+
<template #content>
|
|
137
|
+
<div>填0时为永不过期</div>
|
|
138
|
+
</template>
|
|
139
|
+
<span>
|
|
140
|
+
<span style="margin-right: 5px">密码过期天数</span>
|
|
141
|
+
<ac-icon iconId="018dca8ec9890493be26" />
|
|
142
|
+
</span>
|
|
143
|
+
</el-tooltip>
|
|
144
|
+
</template>
|
|
145
|
+
<ac-number v-model="formData.passwordDay" :point="0"></ac-number>
|
|
146
|
+
</el-form-item>
|
|
147
|
+
</el-col>
|
|
148
|
+
</el-row>
|
|
149
|
+
<el-row v-if="formData.passwordCheck === '1'">
|
|
150
|
+
<el-col :span="11">
|
|
151
|
+
<el-form-item label="必须包含小写字母" prop="passwordLowerLetter">
|
|
152
|
+
<ac-dict-buttons v-model="formData.passwordLowerLetter" dictCode="dictYesNo" />
|
|
153
|
+
</el-form-item>
|
|
154
|
+
</el-col>
|
|
155
|
+
<el-col :span="11">
|
|
156
|
+
<el-form-item label="必须包含大写字母" prop="passwordUpperLetter">
|
|
157
|
+
<ac-dict-buttons v-model="formData.passwordUpperLetter" dictCode="dictYesNo" />
|
|
158
|
+
</el-form-item>
|
|
159
|
+
</el-col>
|
|
160
|
+
</el-row>
|
|
161
|
+
<el-row v-if="formData.passwordCheck === '1'">
|
|
162
|
+
<el-col :span="11">
|
|
163
|
+
<el-form-item label="必须包含数字" prop="passwordDigit">
|
|
164
|
+
<ac-dict-buttons v-model="formData.passwordDigit" dictCode="dictYesNo" />
|
|
165
|
+
</el-form-item>
|
|
166
|
+
</el-col>
|
|
167
|
+
<el-col :span="11">
|
|
168
|
+
<el-form-item label="必须包含特殊字符" prop="passwordSpecialChar">
|
|
169
|
+
<ac-dict-buttons v-model="formData.passwordSpecialChar" dictCode="dictYesNo" />
|
|
170
|
+
</el-form-item>
|
|
171
|
+
</el-col>
|
|
172
|
+
</el-row>
|
|
173
|
+
<el-row v-if="formData.passwordCheck === '1'">
|
|
174
|
+
<el-col :span="11">
|
|
175
|
+
<el-form-item label="最小长度" prop="passwordMinLen">
|
|
176
|
+
<ac-number v-model="formData.passwordMinLen" :point="0"></ac-number>
|
|
177
|
+
</el-form-item>
|
|
178
|
+
</el-col>
|
|
179
|
+
<el-col :span="11">
|
|
180
|
+
<el-form-item label="最大长度" prop="passwordMaxLen">
|
|
181
|
+
<ac-number v-model="formData.passwordMaxLen" :point="0"></ac-number>
|
|
182
|
+
</el-form-item>
|
|
183
|
+
</el-col>
|
|
184
|
+
</el-row>
|
|
185
|
+
<el-row v-if="formData.passwordCheck === '1'">
|
|
186
|
+
<el-col :span="11">
|
|
187
|
+
<el-form-item label="强制修改初始密码" prop="passwordInitialEdit">
|
|
188
|
+
<ac-dict-buttons v-model="formData.passwordInitialEdit" dictCode="dictYesNo" />
|
|
189
|
+
</el-form-item>
|
|
190
|
+
</el-col>
|
|
191
|
+
</el-row>
|
|
192
|
+
<el-row>
|
|
193
|
+
<el-col :span="22">
|
|
194
|
+
<span class="tips">首页配置</span>
|
|
195
|
+
</el-col>
|
|
196
|
+
</el-row>
|
|
197
|
+
<el-row>
|
|
198
|
+
<el-col :span="11">
|
|
199
|
+
<el-form-item label="LOGO图" prop="homeLogoImageId">
|
|
200
|
+
<ac-image v-model="formData.homeLogoImageId"></ac-image>
|
|
201
|
+
</el-form-item>
|
|
202
|
+
</el-col>
|
|
203
|
+
<el-col :span="11">
|
|
204
|
+
<el-form-item label="背景图" prop="homeBgImageId">
|
|
205
|
+
<ac-image v-model="formData.homeBgImageId"></ac-image>
|
|
206
|
+
</el-form-item>
|
|
207
|
+
</el-col>
|
|
208
|
+
</el-row>
|
|
209
|
+
<el-row>
|
|
210
|
+
<el-col :span="22">
|
|
211
|
+
<el-form-item label="页面样式" prop="chooseCss" style="height: 350px">
|
|
212
|
+
<ac-code v-model="formData.chooseCss" mode="css"></ac-code>
|
|
213
|
+
</el-form-item>
|
|
214
|
+
</el-col>
|
|
215
|
+
</el-row>
|
|
216
|
+
<el-row>
|
|
217
|
+
<el-col :span="22">
|
|
218
|
+
<span class="tips">门户配置</span>
|
|
219
|
+
</el-col>
|
|
220
|
+
</el-row>
|
|
221
|
+
<el-row>
|
|
222
|
+
<el-col :span="11">
|
|
223
|
+
<el-form-item label="门户首页" prop="portalPageId">
|
|
224
|
+
<ac-tree
|
|
225
|
+
v-model="formData.portalPageId"
|
|
226
|
+
data-url="/system/page/queryTree"
|
|
227
|
+
type-select="page"
|
|
228
|
+
/>
|
|
229
|
+
</el-form-item>
|
|
230
|
+
</el-col>
|
|
231
|
+
<el-col :span="11">
|
|
232
|
+
<el-form-item label="网页标题" prop="portalTitle">
|
|
233
|
+
<el-input v-model="formData.portalTitle"></el-input>
|
|
234
|
+
</el-form-item>
|
|
235
|
+
</el-col>
|
|
236
|
+
</el-row>
|
|
237
|
+
<el-row>
|
|
238
|
+
<el-col :span="22">
|
|
239
|
+
<el-form-item label="页面样式" prop="portalCss" style="height: 350px">
|
|
240
|
+
<ac-code v-model="formData.portalCss" mode="css"></ac-code>
|
|
241
|
+
</el-form-item>
|
|
242
|
+
</el-col>
|
|
243
|
+
</el-row>
|
|
244
|
+
<el-row>
|
|
245
|
+
<el-col :span="22">
|
|
246
|
+
<span class="tips">样式配置</span>
|
|
247
|
+
</el-col>
|
|
248
|
+
</el-row>
|
|
249
|
+
<el-row>
|
|
250
|
+
<el-col :span="22">
|
|
251
|
+
<el-form-item label="全局样式" prop="extendsCss" style="height: 350px">
|
|
252
|
+
<ac-code v-model="formData.extendsCss" mode="css"></ac-code>
|
|
253
|
+
</el-form-item>
|
|
254
|
+
</el-col>
|
|
255
|
+
</el-row>
|
|
256
|
+
</el-form>
|
|
257
|
+
</div>
|
|
258
|
+
<div class="button-box">
|
|
259
|
+
<el-button
|
|
260
|
+
size="default"
|
|
261
|
+
type="warning"
|
|
262
|
+
@click="resetRSAForm"
|
|
263
|
+
:loading="editLoading"
|
|
264
|
+
>重置密钥</el-button>
|
|
265
|
+
<el-button
|
|
266
|
+
size="default"
|
|
267
|
+
type="primary"
|
|
268
|
+
@click="submitForm"
|
|
269
|
+
:loading="editLoading"
|
|
270
|
+
>保存</el-button>
|
|
271
|
+
</div>
|
|
272
|
+
</template>
|
|
273
|
+
|
|
274
|
+
<script setup>
|
|
275
|
+
import { ref, onMounted, nextTick } from 'vue';
|
|
276
|
+
import { ElMessage, ElMessageBox } from 'element-plus';
|
|
277
|
+
import api from '@/http/api';
|
|
278
|
+
|
|
279
|
+
const rules = ref({
|
|
280
|
+
webTitle: [
|
|
281
|
+
{ max: 100, message: '长度必须小于等于 100 个字符!', trigger: 'change' }
|
|
282
|
+
],
|
|
283
|
+
pageTopContent: [
|
|
284
|
+
{ max: 50, message: '长度必须小于等于 50 个字符!', trigger: 'change' }
|
|
285
|
+
],
|
|
286
|
+
});
|
|
287
|
+
|
|
288
|
+
const editLoading = ref(false);
|
|
289
|
+
const dataForm = ref();
|
|
290
|
+
const formData = ref({
|
|
291
|
+
webTitle: '',
|
|
292
|
+
loginBgImageId: '',
|
|
293
|
+
loginCaptcha: '0',
|
|
294
|
+
homeLogoImageId: '',
|
|
295
|
+
homeBgImageId: '',
|
|
296
|
+
passwordCheck: '1',
|
|
297
|
+
passwordDay: 180,
|
|
298
|
+
passwordUpperLetter: '0',
|
|
299
|
+
passwordLowerLetter: '0',
|
|
300
|
+
passwordDigit: '0',
|
|
301
|
+
passwordSpecialChar: '0',
|
|
302
|
+
passwordMinLen: 6,
|
|
303
|
+
passwordMaxLen: 20,
|
|
304
|
+
passwordInitialEdit: '0',
|
|
305
|
+
extendsCss: ''
|
|
306
|
+
});
|
|
307
|
+
|
|
308
|
+
const loadSetting = async() => {
|
|
309
|
+
const res = await api.post('/system/setting/querySetting');
|
|
310
|
+
if (res && res.data && res.data.id) {
|
|
311
|
+
formData.value = Object.assign({}, formData.value, res.data);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
await nextTick(() => {
|
|
315
|
+
dataForm.value && dataForm.value.clearValidate();
|
|
316
|
+
});
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
const resetRSAForm = () => {
|
|
320
|
+
ElMessageBox.confirm('请确认是否重置密钥?', '提示', { type: 'warning' }).then(() => {
|
|
321
|
+
editLoading.value = true;
|
|
322
|
+
api.post('/system/setting/resetRSAKey', formData.value).then(res => {
|
|
323
|
+
ElMessage.success(res.message);
|
|
324
|
+
editLoading.value = false;
|
|
325
|
+
}).catch(() => {
|
|
326
|
+
editLoading.value = false;
|
|
327
|
+
})
|
|
328
|
+
}).catch(() => {});
|
|
329
|
+
};
|
|
330
|
+
|
|
331
|
+
const submitForm = () => {
|
|
332
|
+
dataForm.value && dataForm.value.validate((valid) => {
|
|
333
|
+
if (valid) {
|
|
334
|
+
ElMessageBox.confirm('请确认是否提交?', '提示', { type: 'info' }).then(() => {
|
|
335
|
+
editLoading.value = true;
|
|
336
|
+
api.post('/system/setting/save', formData.value).then(res => {
|
|
337
|
+
ElMessage.success(res.message);
|
|
338
|
+
editLoading.value = false;
|
|
339
|
+
}).catch(() => {
|
|
340
|
+
editLoading.value = false;
|
|
341
|
+
})
|
|
342
|
+
}).catch(() => {});
|
|
343
|
+
} else {
|
|
344
|
+
ElMessage.error('数据录入不正确,请重新检查!');
|
|
345
|
+
}
|
|
346
|
+
})
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
onMounted(() => {
|
|
350
|
+
loadSetting();
|
|
351
|
+
});
|
|
352
|
+
</script>
|
|
353
|
+
|
|
354
|
+
<style scoped>
|
|
355
|
+
.page-container :deep(.el-form) {
|
|
356
|
+
margin-left: 20px;
|
|
357
|
+
}
|
|
358
|
+
.tips {
|
|
359
|
+
display: block;
|
|
360
|
+
margin-left: 20px;
|
|
361
|
+
padding-top: 10px;
|
|
362
|
+
padding-bottom: 5px;
|
|
363
|
+
font-size: 16px;
|
|
364
|
+
font-weight: 800;
|
|
365
|
+
}
|
|
366
|
+
.button-box {
|
|
367
|
+
position: absolute;
|
|
368
|
+
bottom: 10px;
|
|
369
|
+
right: 10px;
|
|
370
|
+
}
|
|
371
|
+
</style>
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
v-if="!initializing"
|
|
4
|
+
class="vc-app-list-goods-double"
|
|
5
|
+
:style="visual.parseStyle(currNode.currStyle)"
|
|
6
|
+
>
|
|
7
|
+
<div
|
|
8
|
+
v-if="dataList && dataList.length > 0"
|
|
9
|
+
class="vc-app-list-goods-double-list"
|
|
10
|
+
>
|
|
11
|
+
<div
|
|
12
|
+
v-for="(data, index) in dataList"
|
|
13
|
+
:key="index"
|
|
14
|
+
class="vc-app-list-goods-double-item"
|
|
15
|
+
@click="changeItem(data)"
|
|
16
|
+
>
|
|
17
|
+
<div>
|
|
18
|
+
<img v-if='data["图片"]' class="item-image" :src='imageUrl + data["图片"]' alt />
|
|
19
|
+
<vc-icon v-else iconId="018ece4f76dbdc838868" size="120" />
|
|
20
|
+
</div>
|
|
21
|
+
<div class="item-content">
|
|
22
|
+
<div class="item-line">
|
|
23
|
+
<div class="item-name-label" v-if='data["名称标签"]'>{{data["名称标签"]}}</div>
|
|
24
|
+
<div class="item-name ellipsis">{{data["名称"]}}</div>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="item-line">
|
|
27
|
+
<div class="item-label ellipsis">{{(data["标签"] || '').replace(/,/g, ' ')}}</div>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="item-line item-baseline">
|
|
30
|
+
<div class="item-red item-smaller">¥</div>
|
|
31
|
+
<div class="item-red item-bigger">{{tool.getMoneyInt(data["价格"])}}</div>
|
|
32
|
+
<div class="item-red item-smaller item-mr5">.{{tool.getMoneyScale(data["价格"])}}</div>
|
|
33
|
+
<div class="item-red item-smaller item-mr5" v-if='data["价格标签"]'>{{data["价格标签"]}}</div>
|
|
34
|
+
<div class="item-grey item-smaller ellipsis">{{data["价格补充"]}}</div>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
<div
|
|
40
|
+
v-else
|
|
41
|
+
class="vc-app-list-goods-double-empty"
|
|
42
|
+
:style="visual.parseStyle(compStyle)"
|
|
43
|
+
>
|
|
44
|
+
<div style="margin: 40rpx;">暂无数据</div>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
</template>
|
|
48
|
+
|
|
49
|
+
<script setup>
|
|
50
|
+
import { ref, inject, getCurrentInstance, nextTick, onMounted } from 'vue';
|
|
51
|
+
import VcIcon from '@/visual/components/icon/index.vue';
|
|
52
|
+
import visual from '@/visual/js/visual';
|
|
53
|
+
import tool from '@/utils/tool';
|
|
54
|
+
import EventHandler from '@/visual/js/event';
|
|
55
|
+
|
|
56
|
+
const props = defineProps({
|
|
57
|
+
node: Object
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
const initializing = ref(true);
|
|
61
|
+
const currNode = ref(props.node);
|
|
62
|
+
const compStyle = ref({});
|
|
63
|
+
const page = ref({});
|
|
64
|
+
const dataList = ref([]);
|
|
65
|
+
const currValue = ref('');
|
|
66
|
+
const loading = ref('');
|
|
67
|
+
const eventHandler = new EventHandler(
|
|
68
|
+
inject('eventHandler', Function, true),
|
|
69
|
+
getCurrentInstance(),
|
|
70
|
+
currNode.value
|
|
71
|
+
);
|
|
72
|
+
const dataPage = ref(false);
|
|
73
|
+
const hasPage = ref(true);
|
|
74
|
+
const queryInfo = ref({
|
|
75
|
+
pageNumber: 1,
|
|
76
|
+
pageSize: 10
|
|
77
|
+
});
|
|
78
|
+
const imageUrl = ref(import.meta.env.VITE_IMAGE_PATH);
|
|
79
|
+
|
|
80
|
+
const init = async(styleId) => {
|
|
81
|
+
initializing.value = true;
|
|
82
|
+
page.value = {};
|
|
83
|
+
dataList.value = [];
|
|
84
|
+
queryInfo.value.pageNumber = 1;
|
|
85
|
+
hasPage.value = true;
|
|
86
|
+
|
|
87
|
+
visual.initStyle(currNode.value, styleId);
|
|
88
|
+
compStyle.value = currNode.value.currCompStyle || {};
|
|
89
|
+
const compData = currNode.value.compData || {};
|
|
90
|
+
dataPage.value = compData.dataPage || false;
|
|
91
|
+
if (dataPage.value) {
|
|
92
|
+
queryInfo.value.pageSize = compData.dataPageSize || 20;
|
|
93
|
+
} else {
|
|
94
|
+
queryInfo.value.pageSize = compData.dataQueryTotal || 20;
|
|
95
|
+
}
|
|
96
|
+
await findPage();
|
|
97
|
+
await nextTick(() => initializing.value = false);
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
const changeItem = (row) => {
|
|
101
|
+
currValue.value = row['主键id'] || '';
|
|
102
|
+
eventHandler.trigger('点击事件', { row: row });
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
const findPage = async() => {
|
|
106
|
+
loading.value = true;
|
|
107
|
+
const compData = currNode.value.compData || {};
|
|
108
|
+
page.value = await visual.loadData(compData, eventHandler, getData(), currNode.value);
|
|
109
|
+
if (page.value.data && page.value.data.length > 0) {
|
|
110
|
+
dataList.value.push(...page.value.data);
|
|
111
|
+
}
|
|
112
|
+
if ((page.value.totalPage && page.value.totalPage <= queryInfo.value.pageNumber) ||
|
|
113
|
+
!page.value.data || page.value.data.length === 0) {
|
|
114
|
+
hasPage.value = false;
|
|
115
|
+
}
|
|
116
|
+
await nextTick(() => loading.value = false);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
const getData = () => {
|
|
120
|
+
return {
|
|
121
|
+
...queryInfo.value,
|
|
122
|
+
value: currValue.value || '',
|
|
123
|
+
inputParam: currNode.value.inputParam || {}
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
const changeStyle = (styleId) => {
|
|
128
|
+
init(styleId);
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
const refresh = () => {
|
|
132
|
+
init();
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
onMounted(() => {
|
|
136
|
+
refresh();
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
defineExpose({ getData, changeStyle, refresh });
|
|
140
|
+
</script>
|
|
141
|
+
|
|
142
|
+
<style scoped lang="scss">
|
|
143
|
+
.vc-app-list-goods-double {
|
|
144
|
+
width: 100%;
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-direction: row;
|
|
147
|
+
background: #F5F6FA;
|
|
148
|
+
.vc-app-list-goods-double-list {
|
|
149
|
+
display: flex;
|
|
150
|
+
flex-direction: row;
|
|
151
|
+
flex-wrap: wrap;
|
|
152
|
+
overflow: auto;
|
|
153
|
+
padding: 20rpx;
|
|
154
|
+
gap: 20rpx;
|
|
155
|
+
.vc-app-list-goods-double-item {
|
|
156
|
+
white-space: nowrap;
|
|
157
|
+
width: calc(50vw - 30rpx);
|
|
158
|
+
display: flex;
|
|
159
|
+
flex-direction: column;
|
|
160
|
+
border-radius: 10rpx;
|
|
161
|
+
background: white;
|
|
162
|
+
padding-bottom: 6rpx;
|
|
163
|
+
.item-image, image {
|
|
164
|
+
max-width: calc(50vw - 30rpx);
|
|
165
|
+
max-height: calc(50vw - 30rpx);
|
|
166
|
+
border-radius: 10rpx 10rpx 0 0;
|
|
167
|
+
}
|
|
168
|
+
.item-content {
|
|
169
|
+
padding: 10rpx;
|
|
170
|
+
.ellipsis {
|
|
171
|
+
text-overflow: ellipsis;
|
|
172
|
+
white-space: nowrap;
|
|
173
|
+
overflow: hidden;
|
|
174
|
+
}
|
|
175
|
+
.item-red {
|
|
176
|
+
color: #FF3333;
|
|
177
|
+
}
|
|
178
|
+
.item-grey {
|
|
179
|
+
color: #8c939d;
|
|
180
|
+
}
|
|
181
|
+
.item-smaller {
|
|
182
|
+
font-size: 24rpx;
|
|
183
|
+
}
|
|
184
|
+
.item-bigger {
|
|
185
|
+
font-size: 40rpx;
|
|
186
|
+
font-weight: bold;
|
|
187
|
+
}
|
|
188
|
+
.item-baseline {
|
|
189
|
+
align-items: baseline!important;
|
|
190
|
+
}
|
|
191
|
+
.item-line {
|
|
192
|
+
display: flex;
|
|
193
|
+
flex-direction: row;
|
|
194
|
+
align-items: center;
|
|
195
|
+
}
|
|
196
|
+
.item-name-label {
|
|
197
|
+
background: #FF3333;
|
|
198
|
+
color: white;
|
|
199
|
+
font-size: 20rpx;
|
|
200
|
+
border-radius: 10rpx;
|
|
201
|
+
padding: 4rpx 10rpx;
|
|
202
|
+
margin-right: 10rpx;
|
|
203
|
+
}
|
|
204
|
+
.item-name {
|
|
205
|
+
flex-grow: 1;
|
|
206
|
+
width: 1rpx;
|
|
207
|
+
}
|
|
208
|
+
.item-label {
|
|
209
|
+
color: #D97E23;
|
|
210
|
+
font-size: 24rpx;
|
|
211
|
+
height: 50rpx;
|
|
212
|
+
line-height: 50rpx;
|
|
213
|
+
}
|
|
214
|
+
.item-mr5 {
|
|
215
|
+
margin-right: 10rpx;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
.vc-app-list-goods-double-list::-webkit-scrollbar {
|
|
221
|
+
display: none;
|
|
222
|
+
}
|
|
223
|
+
.vc-app-list-goods-double-icon {
|
|
224
|
+
width: 60rpx;
|
|
225
|
+
margin-left: 20rpx;
|
|
226
|
+
border-left: 1rpx solid #ccc;
|
|
227
|
+
display: flex;
|
|
228
|
+
justify-content: center;
|
|
229
|
+
align-items: center;
|
|
230
|
+
}
|
|
231
|
+
.vc-app-list-goods-double-empty {
|
|
232
|
+
width: 100%;
|
|
233
|
+
display: flex;
|
|
234
|
+
justify-content: center;
|
|
235
|
+
align-items: center;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
.vc-loading {
|
|
239
|
+
background: #F5F6FA;
|
|
240
|
+
}
|
|
241
|
+
</style>
|