@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,1678 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="page-container">
|
|
3
|
+
<el-form
|
|
4
|
+
ref="dataForm"
|
|
5
|
+
label-width="100px"
|
|
6
|
+
:model="formData"
|
|
7
|
+
class="fit-box full-height"
|
|
8
|
+
:rules="rules"
|
|
9
|
+
>
|
|
10
|
+
<el-tabs v-model="tabName" class="fit-box full-height">
|
|
11
|
+
<el-tab-pane name="table" label="基础信息" class="fit-box full-height">
|
|
12
|
+
<el-row style="margin-top: 10px;">
|
|
13
|
+
<el-col :span="4">
|
|
14
|
+
<el-form-item label="表格名称" prop="name">
|
|
15
|
+
<el-input v-model="formData.name" />
|
|
16
|
+
</el-form-item>
|
|
17
|
+
</el-col>
|
|
18
|
+
<el-col :span="4">
|
|
19
|
+
<el-form-item label="分页大小" prop="defaultPageSize">
|
|
20
|
+
<ac-select v-model="formData.defaultPageSize" options="20,50,100,200" />
|
|
21
|
+
</el-form-item>
|
|
22
|
+
</el-col>
|
|
23
|
+
<el-col :span="4">
|
|
24
|
+
<el-form-item label="显示表头" prop="showHeader">
|
|
25
|
+
<ac-dict-switch v-model="formData.showHeader" dictCode="dictYesNo" />
|
|
26
|
+
</el-form-item>
|
|
27
|
+
</el-col>
|
|
28
|
+
<el-col :span="4">
|
|
29
|
+
<el-form-item label="显示表头调整" prop="showHeaderSetting">
|
|
30
|
+
<ac-dict-switch v-model="formData.showHeaderSetting" dictCode="dictYesNo" />
|
|
31
|
+
</el-form-item>
|
|
32
|
+
</el-col>
|
|
33
|
+
<el-col :span="4">
|
|
34
|
+
<el-form-item label="显示全屏按钮" prop="showFull">
|
|
35
|
+
<ac-dict-switch v-model="formData.showFull" dictCode="dictYesNo" />
|
|
36
|
+
</el-form-item>
|
|
37
|
+
</el-col>
|
|
38
|
+
<el-col :span="4">
|
|
39
|
+
<el-form-item label="显示复选框" prop="showCheckbox">
|
|
40
|
+
<ac-dict-switch v-model="formData.showCheckbox" dictCode="dictYesNo" />
|
|
41
|
+
</el-form-item>
|
|
42
|
+
</el-col>
|
|
43
|
+
</el-row>
|
|
44
|
+
<el-row>
|
|
45
|
+
<el-col :span="4">
|
|
46
|
+
<el-form-item label="显示序号" prop="showOrdinal">
|
|
47
|
+
<ac-dict-switch v-model="formData.showOrdinal" dictCode="dictYesNo" />
|
|
48
|
+
</el-form-item>
|
|
49
|
+
</el-col>
|
|
50
|
+
<el-col :span="4">
|
|
51
|
+
<el-form-item label="显示操作列" prop="showOperate">
|
|
52
|
+
<ac-dict-switch v-model="formData.showOperate" dictCode="dictYesNo" />
|
|
53
|
+
</el-form-item>
|
|
54
|
+
</el-col>
|
|
55
|
+
<el-col :span="4">
|
|
56
|
+
<el-form-item label="显示页码栏" prop="showPagination">
|
|
57
|
+
<ac-dict-switch v-model="formData.showPagination" dictCode="dictYesNo" />
|
|
58
|
+
</el-form-item>
|
|
59
|
+
</el-col>
|
|
60
|
+
<el-col :span="4">
|
|
61
|
+
<el-form-item label="显示边框" prop="showBorder">
|
|
62
|
+
<ac-dict-switch v-model="formData.showBorder" dictCode="dictYesNo" />
|
|
63
|
+
</el-form-item>
|
|
64
|
+
</el-col>
|
|
65
|
+
<el-col :span="4">
|
|
66
|
+
<el-form-item label="合计栏设置" prop="totalJson">
|
|
67
|
+
<ac-icon
|
|
68
|
+
iconId="018ece4f712124866f78"
|
|
69
|
+
size="18"
|
|
70
|
+
style="cursor: pointer"
|
|
71
|
+
@click="showTotalDialog"
|
|
72
|
+
/>
|
|
73
|
+
</el-form-item>
|
|
74
|
+
</el-col>
|
|
75
|
+
<el-col :span="4" style="text-align: right;align-content: center;">
|
|
76
|
+
<el-button
|
|
77
|
+
v-if="!sortFieldInst && (formData.fieldList || []).length > 1"
|
|
78
|
+
type="primary"
|
|
79
|
+
@click="sortDataField"
|
|
80
|
+
>开启排序</el-button>
|
|
81
|
+
<el-button
|
|
82
|
+
v-else-if="(formData.fieldList || []).length > 1"
|
|
83
|
+
type="info"
|
|
84
|
+
@click="unSortDataField"
|
|
85
|
+
>关闭排序</el-button>
|
|
86
|
+
<el-button
|
|
87
|
+
type="success"
|
|
88
|
+
@click="addField"
|
|
89
|
+
>添加字段</el-button>
|
|
90
|
+
</el-col>
|
|
91
|
+
</el-row>
|
|
92
|
+
<div class="fit-box full-height">
|
|
93
|
+
<el-table
|
|
94
|
+
ref="sortFieldTable"
|
|
95
|
+
:show-overflow-tooltip="false"
|
|
96
|
+
tooltip-effect="light"
|
|
97
|
+
class="field-table fit-table edit-table"
|
|
98
|
+
width="100%"
|
|
99
|
+
:data="formData.fieldList"
|
|
100
|
+
:row-key="getFieldRowKey"
|
|
101
|
+
:border="true"
|
|
102
|
+
:stripe="false"
|
|
103
|
+
>
|
|
104
|
+
<el-table-column
|
|
105
|
+
header-align="center"
|
|
106
|
+
align="center"
|
|
107
|
+
label="字段名称"
|
|
108
|
+
:min-width="120"
|
|
109
|
+
prop="fieldName"
|
|
110
|
+
/>
|
|
111
|
+
<el-table-column
|
|
112
|
+
header-align="center"
|
|
113
|
+
label="显示名称"
|
|
114
|
+
:min-width="120"
|
|
115
|
+
prop="aliasName"
|
|
116
|
+
>
|
|
117
|
+
<template #default="scope">
|
|
118
|
+
<el-input v-model="scope.row.aliasName" />
|
|
119
|
+
</template>
|
|
120
|
+
</el-table-column>
|
|
121
|
+
<el-table-column
|
|
122
|
+
header-align="center"
|
|
123
|
+
label="列宽"
|
|
124
|
+
width="120"
|
|
125
|
+
prop="width"
|
|
126
|
+
>
|
|
127
|
+
<template #header>
|
|
128
|
+
<el-tooltip>
|
|
129
|
+
<template #content>
|
|
130
|
+
<div>0时为自动宽度,负数时为最小宽度</div>
|
|
131
|
+
</template>
|
|
132
|
+
<span style="display: inline-flex">
|
|
133
|
+
<span style="margin-right: 5px">列宽</span>
|
|
134
|
+
<ac-icon iconId="018dca8ec9890493be26" />
|
|
135
|
+
</span>
|
|
136
|
+
</el-tooltip>
|
|
137
|
+
</template>
|
|
138
|
+
<template #default="scope">
|
|
139
|
+
<ac-number v-model="scope.row.width" :point="0" :min="-1000" />
|
|
140
|
+
</template>
|
|
141
|
+
</el-table-column>
|
|
142
|
+
<el-table-column
|
|
143
|
+
header-align="center"
|
|
144
|
+
align="center"
|
|
145
|
+
label="是否固定列"
|
|
146
|
+
:width="85"
|
|
147
|
+
prop="aliasName"
|
|
148
|
+
>
|
|
149
|
+
<template #default="scope">
|
|
150
|
+
<ac-dict-switch
|
|
151
|
+
v-model="scope.row.fixed"
|
|
152
|
+
dictCode="dictYesNo"
|
|
153
|
+
/>
|
|
154
|
+
</template>
|
|
155
|
+
</el-table-column>
|
|
156
|
+
<el-table-column
|
|
157
|
+
header-align="center"
|
|
158
|
+
align="center"
|
|
159
|
+
label="是否合并"
|
|
160
|
+
:width="85"
|
|
161
|
+
prop="aliasName"
|
|
162
|
+
>
|
|
163
|
+
<template #default="scope">
|
|
164
|
+
<ac-dict-switch
|
|
165
|
+
v-model="scope.row.ifMerge"
|
|
166
|
+
dictCode="dictYesNo"
|
|
167
|
+
/>
|
|
168
|
+
</template>
|
|
169
|
+
</el-table-column>
|
|
170
|
+
<el-table-column
|
|
171
|
+
header-align="center"
|
|
172
|
+
align="center"
|
|
173
|
+
label="可否编辑"
|
|
174
|
+
:width="85"
|
|
175
|
+
prop="aliasName"
|
|
176
|
+
>
|
|
177
|
+
<template #default="scope">
|
|
178
|
+
<ac-dict-switch
|
|
179
|
+
v-model="scope.row.canEdit"
|
|
180
|
+
dictCode="dictYesNo"
|
|
181
|
+
/>
|
|
182
|
+
</template>
|
|
183
|
+
</el-table-column>
|
|
184
|
+
<el-table-column
|
|
185
|
+
header-align="center"
|
|
186
|
+
align="center"
|
|
187
|
+
label="表头对齐方式"
|
|
188
|
+
width="100"
|
|
189
|
+
prop="headerAlign"
|
|
190
|
+
>
|
|
191
|
+
<template #default="scope">
|
|
192
|
+
<ac-select v-model="scope.row.headerAlign" options="居左,居中,居右" />
|
|
193
|
+
</template>
|
|
194
|
+
</el-table-column>
|
|
195
|
+
<el-table-column
|
|
196
|
+
header-align="center"
|
|
197
|
+
align="center"
|
|
198
|
+
label="内容对齐方式"
|
|
199
|
+
width="100"
|
|
200
|
+
prop="contentAlign"
|
|
201
|
+
>
|
|
202
|
+
<template #default="scope">
|
|
203
|
+
<ac-select v-model="scope.row.contentAlign" options="居左,居中,居右" />
|
|
204
|
+
</template>
|
|
205
|
+
</el-table-column>
|
|
206
|
+
<el-table-column
|
|
207
|
+
header-align="center"
|
|
208
|
+
align="center"
|
|
209
|
+
label="字体颜色"
|
|
210
|
+
width="80"
|
|
211
|
+
prop="contentColor"
|
|
212
|
+
>
|
|
213
|
+
<template #default="scope">
|
|
214
|
+
<el-color-picker v-model="scope.row.contentColor" :predefine="predefineColors" />
|
|
215
|
+
</template>
|
|
216
|
+
</el-table-column>
|
|
217
|
+
<el-table-column
|
|
218
|
+
header-align="center"
|
|
219
|
+
align="center"
|
|
220
|
+
label="操作"
|
|
221
|
+
width="110"
|
|
222
|
+
prop="width"
|
|
223
|
+
>
|
|
224
|
+
<template #default="scope">
|
|
225
|
+
<el-button
|
|
226
|
+
type="primary"
|
|
227
|
+
@click="editField(scope.row)"
|
|
228
|
+
link
|
|
229
|
+
>设置</el-button>
|
|
230
|
+
<el-button
|
|
231
|
+
type="danger"
|
|
232
|
+
@click="deleteField(scope.row)"
|
|
233
|
+
link
|
|
234
|
+
>删除</el-button>
|
|
235
|
+
</template>
|
|
236
|
+
</el-table-column>
|
|
237
|
+
</el-table>
|
|
238
|
+
</div>
|
|
239
|
+
</el-tab-pane>
|
|
240
|
+
<el-tab-pane name="ordinal" label="数据排序" class="fit-box full-height">
|
|
241
|
+
<el-row>
|
|
242
|
+
<el-col :span="24" style="margin-bottom: 8px;">
|
|
243
|
+
<el-button
|
|
244
|
+
type="success"
|
|
245
|
+
@click="addOrdinal"
|
|
246
|
+
>添加排序</el-button>
|
|
247
|
+
<el-button
|
|
248
|
+
v-if="sortOrdinalInst"
|
|
249
|
+
type="info"
|
|
250
|
+
@click="unSortDataOrdinal"
|
|
251
|
+
>关闭排序</el-button>
|
|
252
|
+
<el-button
|
|
253
|
+
v-else-if="(formData.ordinalList || []).length > 1"
|
|
254
|
+
type="primary"
|
|
255
|
+
@click="sortDataOrdinal"
|
|
256
|
+
>开启排序</el-button>
|
|
257
|
+
</el-col>
|
|
258
|
+
</el-row>
|
|
259
|
+
<el-table
|
|
260
|
+
ref="sortOrdinalTable"
|
|
261
|
+
:show-overflow-tooltip="false"
|
|
262
|
+
tooltip-effect="light"
|
|
263
|
+
class="field-table fit-table edit-table"
|
|
264
|
+
width="100%"
|
|
265
|
+
:data="formData.ordinalList"
|
|
266
|
+
:row-key="getFieldRowKey"
|
|
267
|
+
:border="true"
|
|
268
|
+
:stripe="false"
|
|
269
|
+
>
|
|
270
|
+
<el-table-column
|
|
271
|
+
header-align="center"
|
|
272
|
+
label="排序字段"
|
|
273
|
+
:min-width="120"
|
|
274
|
+
prop="fieldId"
|
|
275
|
+
>
|
|
276
|
+
<template #default="scope">
|
|
277
|
+
<ac-select v-model="scope.row.fieldId" :options="fieldOptions" />
|
|
278
|
+
</template>
|
|
279
|
+
</el-table-column>
|
|
280
|
+
<el-table-column
|
|
281
|
+
header-align="center"
|
|
282
|
+
align="center"
|
|
283
|
+
label="排序方式"
|
|
284
|
+
:min-width="120"
|
|
285
|
+
prop="ordinalMode"
|
|
286
|
+
>
|
|
287
|
+
<template #default="scope">
|
|
288
|
+
<ac-radio v-model="scope.row.ordinalMode" options="升序,降序" />
|
|
289
|
+
</template>
|
|
290
|
+
</el-table-column>
|
|
291
|
+
<el-table-column
|
|
292
|
+
header-align="center"
|
|
293
|
+
align="center"
|
|
294
|
+
label="操作"
|
|
295
|
+
:width="80"
|
|
296
|
+
>
|
|
297
|
+
<template #default="scope">
|
|
298
|
+
<el-button
|
|
299
|
+
type="danger"
|
|
300
|
+
@click="deleteOrdinal(scope.row)"
|
|
301
|
+
link
|
|
302
|
+
>删除</el-button>
|
|
303
|
+
</template>
|
|
304
|
+
</el-table-column>
|
|
305
|
+
</el-table>
|
|
306
|
+
</el-tab-pane>
|
|
307
|
+
<el-tab-pane
|
|
308
|
+
name="privilege"
|
|
309
|
+
label="权限过滤"
|
|
310
|
+
class="fit-box full-height"
|
|
311
|
+
style="padding-right: 5px;overflow: auto"
|
|
312
|
+
>
|
|
313
|
+
<el-row>
|
|
314
|
+
<el-col :span="24">
|
|
315
|
+
<el-button
|
|
316
|
+
type="success"
|
|
317
|
+
@click="addPrivilege"
|
|
318
|
+
>添加权限组</el-button>
|
|
319
|
+
</el-col>
|
|
320
|
+
</el-row>
|
|
321
|
+
<el-row
|
|
322
|
+
v-for="privilege in formData.privilegeList || []"
|
|
323
|
+
style="margin-top: 15px;"
|
|
324
|
+
:key="privilege.id || privilege.rowFlag"
|
|
325
|
+
>
|
|
326
|
+
<el-col :span="24">
|
|
327
|
+
<el-row>
|
|
328
|
+
<el-col :span="6">
|
|
329
|
+
<el-form-item label="角色" prop="imageStyle">
|
|
330
|
+
<ac-role-select showAll v-model="privilege.roleId" />
|
|
331
|
+
</el-form-item>
|
|
332
|
+
</el-col>
|
|
333
|
+
<el-col :span="6">
|
|
334
|
+
<el-form-item label="排序" prop="ordinal">
|
|
335
|
+
<ac-number v-model="privilege.ordinal" :point="0" />
|
|
336
|
+
</el-form-item>
|
|
337
|
+
</el-col>
|
|
338
|
+
<el-col :span="12" style="text-align: right;align-content: center">
|
|
339
|
+
<el-button
|
|
340
|
+
v-if="(!sortableInst || sortingId !== (privilege.id || privilege.rowFlag))
|
|
341
|
+
&& (privilege.conditionList || []).length > 1"
|
|
342
|
+
type="primary"
|
|
343
|
+
@click="sortPrivilegeField(privilege)"
|
|
344
|
+
>开启排序</el-button>
|
|
345
|
+
<el-button
|
|
346
|
+
v-if="sortableInst && sortingId === (privilege.id || privilege.rowFlag)"
|
|
347
|
+
type="info"
|
|
348
|
+
@click="unSortPrivilegeField"
|
|
349
|
+
>关闭排序</el-button>
|
|
350
|
+
<el-button
|
|
351
|
+
type="success"
|
|
352
|
+
@click="addPrivilegeCondition(privilege)"
|
|
353
|
+
>添加过滤条件</el-button>
|
|
354
|
+
<el-button
|
|
355
|
+
type="danger"
|
|
356
|
+
@click="deletePrivilege(privilege)"
|
|
357
|
+
>删除权限组</el-button>
|
|
358
|
+
</el-col>
|
|
359
|
+
</el-row>
|
|
360
|
+
<el-table
|
|
361
|
+
:show-overflow-tooltip="false"
|
|
362
|
+
tooltip-effect="light"
|
|
363
|
+
class="field-table edit-table"
|
|
364
|
+
width="100%"
|
|
365
|
+
:ref="el => setRefs(el, privilege)"
|
|
366
|
+
:row-key="getPrivilegeRowKey"
|
|
367
|
+
:data="privilege.conditionList"
|
|
368
|
+
:border="true"
|
|
369
|
+
:stripe="false"
|
|
370
|
+
>
|
|
371
|
+
<el-table-column
|
|
372
|
+
header-align="center"
|
|
373
|
+
label="拼接方式"
|
|
374
|
+
:min-width="120"
|
|
375
|
+
prop="connectSymbol"
|
|
376
|
+
>
|
|
377
|
+
<template #default="scope">
|
|
378
|
+
<ac-select v-model="scope.row.connectSymbol" options="and,or"/>
|
|
379
|
+
</template>
|
|
380
|
+
</el-table-column>
|
|
381
|
+
<el-table-column
|
|
382
|
+
header-align="center"
|
|
383
|
+
label="前置括号"
|
|
384
|
+
:min-width="120"
|
|
385
|
+
prop="frontBracket"
|
|
386
|
+
>
|
|
387
|
+
<template #default="scope">
|
|
388
|
+
<ac-select v-model="scope.row.frontBracket" options="(,((,(((,((((" />
|
|
389
|
+
</template>
|
|
390
|
+
</el-table-column>
|
|
391
|
+
<el-table-column
|
|
392
|
+
header-align="center"
|
|
393
|
+
label="过滤字段"
|
|
394
|
+
:min-width="120"
|
|
395
|
+
prop="fieldId"
|
|
396
|
+
>
|
|
397
|
+
<template #default="scope">
|
|
398
|
+
<ac-select v-model="scope.row.fieldId" :options="fieldOptions" />
|
|
399
|
+
</template>
|
|
400
|
+
</el-table-column>
|
|
401
|
+
<el-table-column
|
|
402
|
+
header-align="center"
|
|
403
|
+
label="比较符"
|
|
404
|
+
:min-width="120"
|
|
405
|
+
prop="compareSymbol"
|
|
406
|
+
>
|
|
407
|
+
<template #default="scope">
|
|
408
|
+
<ac-select
|
|
409
|
+
v-model="scope.row.compareSymbol"
|
|
410
|
+
options="大于,大于等于,等于,小于,小于等于,不等于,模糊"
|
|
411
|
+
/>
|
|
412
|
+
</template>
|
|
413
|
+
</el-table-column>
|
|
414
|
+
<el-table-column
|
|
415
|
+
header-align="center"
|
|
416
|
+
label="比较值"
|
|
417
|
+
:min-width="120"
|
|
418
|
+
prop="compareValue"
|
|
419
|
+
>
|
|
420
|
+
<template #header>
|
|
421
|
+
<span style="margin-right: 5px">比较值</span>
|
|
422
|
+
<ac-default-value-tips />
|
|
423
|
+
</template>
|
|
424
|
+
<template #default="scope">
|
|
425
|
+
<ac-tree
|
|
426
|
+
v-if="scope.row.compareSymbol === 'script'"
|
|
427
|
+
v-model="scope.row.compareValue"
|
|
428
|
+
data-url="/system/scriptGroovy/queryTree"
|
|
429
|
+
type-select="script"
|
|
430
|
+
/>
|
|
431
|
+
<ac-input
|
|
432
|
+
v-else-if="scope.row.compareSymbol !== 'script' && scope.row.manually === '1'"
|
|
433
|
+
v-model="scope.row.compareValue"
|
|
434
|
+
/>
|
|
435
|
+
<component
|
|
436
|
+
v-else-if="scope.row.compareSymbol !== 'script' && scope.row.fieldId"
|
|
437
|
+
v-model="scope.row.compareValue"
|
|
438
|
+
:is="getComponent(scope.row.fieldId) || 'ac-input'"
|
|
439
|
+
v-bind="getOptions(scope.row.fieldId)"
|
|
440
|
+
/>
|
|
441
|
+
<el-input v-else v-model="scope.row.compareValue" />
|
|
442
|
+
<ac-dict-switch
|
|
443
|
+
v-if="scope.row.compareSymbol !== 'script'"
|
|
444
|
+
v-model="scope.row.manually"
|
|
445
|
+
dictCode="dictYesNo"
|
|
446
|
+
style="margin: 0 5px;"
|
|
447
|
+
title="手动录入"
|
|
448
|
+
/>
|
|
449
|
+
</template>
|
|
450
|
+
</el-table-column>
|
|
451
|
+
<el-table-column
|
|
452
|
+
header-align="center"
|
|
453
|
+
label="后置括号"
|
|
454
|
+
:min-width="120"
|
|
455
|
+
prop="behindBracket"
|
|
456
|
+
>
|
|
457
|
+
<template #default="scope">
|
|
458
|
+
<ac-select v-model="scope.row.behindBracket" options="),)),))),))))" />
|
|
459
|
+
</template>
|
|
460
|
+
</el-table-column>
|
|
461
|
+
<el-table-column
|
|
462
|
+
header-align="center"
|
|
463
|
+
align="center"
|
|
464
|
+
label="操作"
|
|
465
|
+
:min-width="80"
|
|
466
|
+
prop="ordinal"
|
|
467
|
+
>
|
|
468
|
+
<template #default="scope">
|
|
469
|
+
<el-button
|
|
470
|
+
type="danger"
|
|
471
|
+
@click="deletePrivilegeCondition(privilege, scope.row)"
|
|
472
|
+
link
|
|
473
|
+
>删除</el-button>
|
|
474
|
+
</template>
|
|
475
|
+
</el-table-column>
|
|
476
|
+
</el-table>
|
|
477
|
+
</el-col>
|
|
478
|
+
</el-row>
|
|
479
|
+
</el-tab-pane>
|
|
480
|
+
<el-tab-pane name="tips" label="提示信息" class="fit-box full-height">
|
|
481
|
+
<el-row>
|
|
482
|
+
<el-col :span="6">
|
|
483
|
+
<el-form-item label="位置" prop="tipsPosition" label-width="80">
|
|
484
|
+
<ac-buttons v-model="formData.tipsPosition" options="顶部,底部" />
|
|
485
|
+
</el-form-item>
|
|
486
|
+
</el-col>
|
|
487
|
+
<el-col :span="6">
|
|
488
|
+
<el-form-item label="来源" prop="tipsOrigin" label-width="80">
|
|
489
|
+
<ac-buttons v-model="formData.tipsOrigin" options="输入,脚本" />
|
|
490
|
+
</el-form-item>
|
|
491
|
+
</el-col>
|
|
492
|
+
<el-col :span="6" v-if="formData.tipsOrigin === '脚本'">
|
|
493
|
+
<el-form-item label="脚本" prop="tipsScriptId" label-width="80">
|
|
494
|
+
<ac-tree
|
|
495
|
+
v-model="formData.tipsScriptId"
|
|
496
|
+
data-url="/system/scriptGroovy/queryTree"
|
|
497
|
+
type-select="script"
|
|
498
|
+
/>
|
|
499
|
+
</el-form-item>
|
|
500
|
+
</el-col>
|
|
501
|
+
</el-row>
|
|
502
|
+
<ac-rich-editor v-if="formData.tipsOrigin === '输入'" v-model="formData.tipsHtml" />
|
|
503
|
+
</el-tab-pane>
|
|
504
|
+
</el-tabs>
|
|
505
|
+
</el-form>
|
|
506
|
+
</div>
|
|
507
|
+
|
|
508
|
+
<!-- 合计栏设置 -->
|
|
509
|
+
<el-dialog
|
|
510
|
+
v-model="totalVisible"
|
|
511
|
+
width="650px"
|
|
512
|
+
title="合计栏设置"
|
|
513
|
+
:close-on-click-modal="false"
|
|
514
|
+
destroy-on-close
|
|
515
|
+
append-to-body
|
|
516
|
+
draggable
|
|
517
|
+
>
|
|
518
|
+
<el-form
|
|
519
|
+
ref="totalForm"
|
|
520
|
+
label-width="120px"
|
|
521
|
+
:model="totalData"
|
|
522
|
+
:rules="totalRules"
|
|
523
|
+
>
|
|
524
|
+
<el-row>
|
|
525
|
+
<el-col :span="24">
|
|
526
|
+
<el-form-item label="表尾合计" prop="showSummary">
|
|
527
|
+
<ac-dict-radio v-model="totalData.showSummary" dictCode="dictYesNo" />
|
|
528
|
+
</el-form-item>
|
|
529
|
+
</el-col>
|
|
530
|
+
</el-row>
|
|
531
|
+
<el-row v-if="totalData.showSummary === '1'">
|
|
532
|
+
<el-col :span="24">
|
|
533
|
+
<el-form-item label="显示合计列" prop="summaryFieldId">
|
|
534
|
+
<el-select v-model="totalData.summaryFieldId">
|
|
535
|
+
<el-option
|
|
536
|
+
v-for="field in fieldList"
|
|
537
|
+
:key="field.id"
|
|
538
|
+
:label="field.fieldName"
|
|
539
|
+
:value="field.id"
|
|
540
|
+
/>
|
|
541
|
+
</el-select>
|
|
542
|
+
</el-form-item>
|
|
543
|
+
</el-col>
|
|
544
|
+
</el-row>
|
|
545
|
+
<el-row v-if="totalData.showSummary === '1'">
|
|
546
|
+
<el-col :span="24">
|
|
547
|
+
<el-form-item label="合计名称" prop="summaryName">
|
|
548
|
+
<el-input v-model="totalData.summaryName" />
|
|
549
|
+
</el-form-item>
|
|
550
|
+
</el-col>
|
|
551
|
+
</el-row>
|
|
552
|
+
<el-row v-if="totalData.showSummary === '1'">
|
|
553
|
+
<el-col :span="24">
|
|
554
|
+
<el-form-item label="合计字段" prop="summaryFieldIds">
|
|
555
|
+
<el-checkbox-group v-model="totalData.summaryFieldIds">
|
|
556
|
+
<el-checkbox
|
|
557
|
+
v-for="field in fieldList"
|
|
558
|
+
:key="field.id"
|
|
559
|
+
:label="field.fieldName"
|
|
560
|
+
:value="field.id"
|
|
561
|
+
/>
|
|
562
|
+
</el-checkbox-group>
|
|
563
|
+
</el-form-item>
|
|
564
|
+
</el-col>
|
|
565
|
+
</el-row>
|
|
566
|
+
</el-form>
|
|
567
|
+
<template #footer>
|
|
568
|
+
<el-button
|
|
569
|
+
size="default"
|
|
570
|
+
type="info"
|
|
571
|
+
@click="totalVisible=false"
|
|
572
|
+
>取消</el-button>
|
|
573
|
+
<el-button
|
|
574
|
+
type="primary"
|
|
575
|
+
size="default"
|
|
576
|
+
@click="submitTotal"
|
|
577
|
+
>确定</el-button>
|
|
578
|
+
</template>
|
|
579
|
+
</el-dialog>
|
|
580
|
+
|
|
581
|
+
<!-- 添加字段 -->
|
|
582
|
+
<el-dialog
|
|
583
|
+
v-model="fieldAddVisible"
|
|
584
|
+
title="添加字段"
|
|
585
|
+
class="no-padding"
|
|
586
|
+
:close-on-click-modal="false"
|
|
587
|
+
destroy-on-close
|
|
588
|
+
fullscreen
|
|
589
|
+
draggable
|
|
590
|
+
>
|
|
591
|
+
<div class="page-container">
|
|
592
|
+
<el-table
|
|
593
|
+
ref="fieldAddTable"
|
|
594
|
+
:show-overflow-tooltip="false"
|
|
595
|
+
tooltip-effect="light"
|
|
596
|
+
class="field-table fit-table"
|
|
597
|
+
width="100%"
|
|
598
|
+
@row-click="rowClick"
|
|
599
|
+
:data="fieldList"
|
|
600
|
+
:border="true"
|
|
601
|
+
:stripe="false"
|
|
602
|
+
>
|
|
603
|
+
<el-table-column
|
|
604
|
+
header-align="center"
|
|
605
|
+
align="center"
|
|
606
|
+
type="selection"
|
|
607
|
+
width="55"
|
|
608
|
+
/>
|
|
609
|
+
<el-table-column
|
|
610
|
+
header-align="center"
|
|
611
|
+
label="字段名称"
|
|
612
|
+
:min-width="120"
|
|
613
|
+
prop="fieldName"
|
|
614
|
+
/>
|
|
615
|
+
<el-table-column
|
|
616
|
+
header-align="center"
|
|
617
|
+
label="显示名称"
|
|
618
|
+
:min-width="120"
|
|
619
|
+
prop="showName"
|
|
620
|
+
/>
|
|
621
|
+
<el-table-column
|
|
622
|
+
header-align="center"
|
|
623
|
+
align="center"
|
|
624
|
+
label="是否主键"
|
|
625
|
+
:width="100"
|
|
626
|
+
prop="primaryKey"
|
|
627
|
+
>
|
|
628
|
+
<template #default="scope">
|
|
629
|
+
<ac-dict-radio showText v-model="scope.row.primaryKey" dictCode="dictYesNo" />
|
|
630
|
+
</template>
|
|
631
|
+
</el-table-column>
|
|
632
|
+
<el-table-column
|
|
633
|
+
header-align="center"
|
|
634
|
+
align="center"
|
|
635
|
+
label="字段类型"
|
|
636
|
+
:width="120"
|
|
637
|
+
prop="fieldType"
|
|
638
|
+
/>
|
|
639
|
+
<el-table-column
|
|
640
|
+
header-align="center"
|
|
641
|
+
align="center"
|
|
642
|
+
label="是否必填"
|
|
643
|
+
:width="100"
|
|
644
|
+
prop="required"
|
|
645
|
+
>
|
|
646
|
+
<template #default="scope">
|
|
647
|
+
<ac-dict-radio showText v-model="scope.row.required" dictCode="dictYesNo" />
|
|
648
|
+
</template>
|
|
649
|
+
</el-table-column>
|
|
650
|
+
</el-table>
|
|
651
|
+
</div>
|
|
652
|
+
<template #footer>
|
|
653
|
+
<el-button
|
|
654
|
+
size="default"
|
|
655
|
+
type="info"
|
|
656
|
+
@click="fieldAddVisible=false"
|
|
657
|
+
>取消</el-button>
|
|
658
|
+
<el-button
|
|
659
|
+
type="primary"
|
|
660
|
+
size="default"
|
|
661
|
+
@click="submitFieldAddForm"
|
|
662
|
+
>确定</el-button>
|
|
663
|
+
</template>
|
|
664
|
+
</el-dialog>
|
|
665
|
+
|
|
666
|
+
<!-- 编辑字段 -->
|
|
667
|
+
<el-dialog
|
|
668
|
+
v-model="fieldVisible"
|
|
669
|
+
width="850px"
|
|
670
|
+
style="height: 610px"
|
|
671
|
+
title="字段编辑"
|
|
672
|
+
class="no-padding"
|
|
673
|
+
:close-on-click-modal="false"
|
|
674
|
+
destroy-on-close
|
|
675
|
+
draggable
|
|
676
|
+
>
|
|
677
|
+
<div class="page-container">
|
|
678
|
+
<el-form
|
|
679
|
+
ref="fieldForm"
|
|
680
|
+
label-width="130px"
|
|
681
|
+
:model="fieldData"
|
|
682
|
+
:rules="fieldRules"
|
|
683
|
+
style="height: 100%;"
|
|
684
|
+
>
|
|
685
|
+
<el-tabs v-model="fieldTabName">
|
|
686
|
+
<el-tab-pane name="field" label="基础信息">
|
|
687
|
+
<el-row>
|
|
688
|
+
<el-col :span="11">
|
|
689
|
+
<el-form-item label="字段名称" prop="fieldName">
|
|
690
|
+
<el-input
|
|
691
|
+
v-model="fieldData.fieldName"
|
|
692
|
+
auto-complete="off"
|
|
693
|
+
:disabled="true"
|
|
694
|
+
></el-input>
|
|
695
|
+
</el-form-item>
|
|
696
|
+
</el-col>
|
|
697
|
+
<el-col :span="11">
|
|
698
|
+
<el-form-item label="显示名称" prop="aliasName">
|
|
699
|
+
<el-input v-model="fieldData.aliasName"></el-input>
|
|
700
|
+
</el-form-item>
|
|
701
|
+
</el-col>
|
|
702
|
+
</el-row>
|
|
703
|
+
<el-row>
|
|
704
|
+
<el-col :span="11">
|
|
705
|
+
<el-form-item label="表头对齐方式" prop="headerAlign">
|
|
706
|
+
<ac-buttons v-model="fieldData.headerAlign" options="居左,居中,居右"
|
|
707
|
+
></ac-buttons>
|
|
708
|
+
</el-form-item>
|
|
709
|
+
</el-col>
|
|
710
|
+
<el-col :span="11">
|
|
711
|
+
<el-form-item label="内容对齐方式" prop="contentAlign">
|
|
712
|
+
<ac-buttons v-model="fieldData.contentAlign" options="居左,居中,居右"
|
|
713
|
+
></ac-buttons>
|
|
714
|
+
</el-form-item>
|
|
715
|
+
</el-col>
|
|
716
|
+
</el-row>
|
|
717
|
+
<el-row>
|
|
718
|
+
<el-col :span="11">
|
|
719
|
+
<el-form-item label="列宽" prop="width">
|
|
720
|
+
<ac-number v-model="fieldData.width" :point="0" :min="-1000" />
|
|
721
|
+
</el-form-item>
|
|
722
|
+
</el-col>
|
|
723
|
+
<el-col :span="11">
|
|
724
|
+
<el-form-item label="字体颜色" prop="contentColor">
|
|
725
|
+
<el-color-picker v-model="fieldData.contentColor" :predefine="predefineColors" />
|
|
726
|
+
</el-form-item>
|
|
727
|
+
</el-col>
|
|
728
|
+
</el-row>
|
|
729
|
+
<el-row>
|
|
730
|
+
<el-col :span="11">
|
|
731
|
+
<el-form-item label="是否合并" prop="ifMerge">
|
|
732
|
+
<ac-dict-switch
|
|
733
|
+
v-model="fieldData.ifMerge"
|
|
734
|
+
dictCode="dictYesNo"
|
|
735
|
+
/>
|
|
736
|
+
</el-form-item>
|
|
737
|
+
</el-col>
|
|
738
|
+
<el-col :span="11">
|
|
739
|
+
<el-form-item label="自动换行" prop="wrap">
|
|
740
|
+
<ac-dict-switch
|
|
741
|
+
v-model="fieldData.wrap"
|
|
742
|
+
dictCode="dictYesNo"
|
|
743
|
+
/>
|
|
744
|
+
</el-form-item>
|
|
745
|
+
</el-col>
|
|
746
|
+
</el-row>
|
|
747
|
+
<el-row>
|
|
748
|
+
<el-col :span="11">
|
|
749
|
+
<el-form-item label="是否固定列" prop="fixed">
|
|
750
|
+
<ac-dict-switch
|
|
751
|
+
v-model="fieldData.fixed"
|
|
752
|
+
dictCode="dictYesNo"
|
|
753
|
+
/>
|
|
754
|
+
</el-form-item>
|
|
755
|
+
</el-col>
|
|
756
|
+
<el-col :span="11">
|
|
757
|
+
<el-form-item label="可否编辑" prop="canEdit">
|
|
758
|
+
<ac-dict-switch
|
|
759
|
+
v-model="fieldData.canEdit"
|
|
760
|
+
dictCode="dictYesNo"
|
|
761
|
+
/>
|
|
762
|
+
</el-form-item>
|
|
763
|
+
</el-col>
|
|
764
|
+
</el-row>
|
|
765
|
+
</el-tab-pane>
|
|
766
|
+
<el-tab-pane name="style" label="样式设置">
|
|
767
|
+
<div style="margin-bottom: 8px">
|
|
768
|
+
<el-button type="success" @click="addDataTableFieldStyle()">添加</el-button>
|
|
769
|
+
</div>
|
|
770
|
+
<el-table
|
|
771
|
+
ref="sortTable"
|
|
772
|
+
element-loading-text="数据加载中..."
|
|
773
|
+
:show-overflow-tooltip="false"
|
|
774
|
+
class="field-table edit-table"
|
|
775
|
+
width="100%"
|
|
776
|
+
:data="fieldData.styleList"
|
|
777
|
+
:border="true"
|
|
778
|
+
:stripe="false"
|
|
779
|
+
>
|
|
780
|
+
<el-table-column
|
|
781
|
+
header-align="center"
|
|
782
|
+
label="匹配值"
|
|
783
|
+
:min-width="100"
|
|
784
|
+
prop="originValue"
|
|
785
|
+
>
|
|
786
|
+
<template #header>
|
|
787
|
+
<el-tooltip>
|
|
788
|
+
<template #content>
|
|
789
|
+
<div>
|
|
790
|
+
<span
|
|
791
|
+
style="cursor: pointer"
|
|
792
|
+
@click="copySymbol('{all}')"
|
|
793
|
+
>{all}</span>: 匹配所有值
|
|
794
|
+
</div>
|
|
795
|
+
</template>
|
|
796
|
+
<span style="display: inline-flex">
|
|
797
|
+
<span style="margin-right: 5px">匹配值</span>
|
|
798
|
+
<ac-icon iconId="018dca8ec9890493be26" />
|
|
799
|
+
</span>
|
|
800
|
+
</el-tooltip>
|
|
801
|
+
</template>
|
|
802
|
+
<template #default="scope">
|
|
803
|
+
<el-input v-model="scope.row.originValue" />
|
|
804
|
+
</template>
|
|
805
|
+
</el-table-column>
|
|
806
|
+
<el-table-column
|
|
807
|
+
header-align="center"
|
|
808
|
+
label="显示类型"
|
|
809
|
+
width="100"
|
|
810
|
+
prop="showType"
|
|
811
|
+
>
|
|
812
|
+
<template #default="scope">
|
|
813
|
+
<ac-select
|
|
814
|
+
v-model="scope.row.showType"
|
|
815
|
+
options="文字,标签,图形,时间,时长,进度条,js脚本"
|
|
816
|
+
/>
|
|
817
|
+
</template>
|
|
818
|
+
</el-table-column>
|
|
819
|
+
<el-table-column
|
|
820
|
+
header-align="center"
|
|
821
|
+
align="center"
|
|
822
|
+
label="显示颜色"
|
|
823
|
+
width="70"
|
|
824
|
+
prop="showColor"
|
|
825
|
+
>
|
|
826
|
+
<template #default="scope">
|
|
827
|
+
<el-color-picker v-model="scope.row.showColor" :predefine="predefineColors" />
|
|
828
|
+
</template>
|
|
829
|
+
</el-table-column>
|
|
830
|
+
<el-table-column
|
|
831
|
+
header-align="center"
|
|
832
|
+
align="center"
|
|
833
|
+
label="是否闪烁"
|
|
834
|
+
width="70"
|
|
835
|
+
prop="flash"
|
|
836
|
+
>
|
|
837
|
+
<template #default="scope">
|
|
838
|
+
<ac-dict-switch
|
|
839
|
+
v-model="scope.row.flash"
|
|
840
|
+
dictCode="dictYesNo"
|
|
841
|
+
/>
|
|
842
|
+
</template>
|
|
843
|
+
</el-table-column>
|
|
844
|
+
<el-table-column
|
|
845
|
+
header-align="center"
|
|
846
|
+
label="显示值"
|
|
847
|
+
:min-width="100"
|
|
848
|
+
prop="targetValue"
|
|
849
|
+
>
|
|
850
|
+
<template #header>
|
|
851
|
+
<el-tooltip>
|
|
852
|
+
<template #content>
|
|
853
|
+
<div>显示类型为【文字】时的:
|
|
854
|
+
<span
|
|
855
|
+
style="cursor: pointer"
|
|
856
|
+
@click="copySymbol('{currValue}')"
|
|
857
|
+
>{currValue}</span> 为当前值
|
|
858
|
+
</div>
|
|
859
|
+
<div>显示类型为【时长】时格式化成:x 天 x 小时 x 分 x 秒,单位为毫秒</div>
|
|
860
|
+
<div>显示类型为【进度条】时的:
|
|
861
|
+
<span
|
|
862
|
+
style="cursor: pointer"
|
|
863
|
+
@click="copySymbol('{currValue}')"
|
|
864
|
+
>{currValue}</span> 为当前值
|
|
865
|
+
</div>
|
|
866
|
+
<div> 示例:
|
|
867
|
+
<span
|
|
868
|
+
style="cursor: pointer"
|
|
869
|
+
@click="copySymbol('{currValue}*100')"
|
|
870
|
+
>{currValue}*100</span> 为进度条的百分比值
|
|
871
|
+
</div>
|
|
872
|
+
<div>显示类型为【js脚本】时的参数获取方式:</div>
|
|
873
|
+
<div>
|
|
874
|
+
<span
|
|
875
|
+
style="cursor: pointer"
|
|
876
|
+
@click="copySymbol('args.data')"
|
|
877
|
+
>args.data</span>:当前行数据
|
|
878
|
+
</div>
|
|
879
|
+
<div>
|
|
880
|
+
<span
|
|
881
|
+
style="cursor: pointer"
|
|
882
|
+
@click="copySymbol('args.user')"
|
|
883
|
+
>args.user</span>:当前登录用户信息
|
|
884
|
+
</div>
|
|
885
|
+
<div>
|
|
886
|
+
<span
|
|
887
|
+
style="cursor: pointer"
|
|
888
|
+
@click="copySymbol('args.org')"
|
|
889
|
+
>args.org</span>:当前登录用户组织机构信息
|
|
890
|
+
</div>
|
|
891
|
+
<div>
|
|
892
|
+
示例:
|
|
893
|
+
<span
|
|
894
|
+
style="cursor: pointer"
|
|
895
|
+
@click="copySymbol(jsDemo)"
|
|
896
|
+
>{{jsDemo}}</span>
|
|
897
|
+
</div>
|
|
898
|
+
</template>
|
|
899
|
+
<span style="display: inline-flex">
|
|
900
|
+
<span style="margin-right: 5px">显示值</span>
|
|
901
|
+
<ac-icon iconId="018dca8ec9890493be26" />
|
|
902
|
+
</span>
|
|
903
|
+
</el-tooltip>
|
|
904
|
+
</template>
|
|
905
|
+
<template #default="scope">
|
|
906
|
+
<ac-select
|
|
907
|
+
v-if="scope.row.showType === '图形'"
|
|
908
|
+
v-model="scope.row.targetValue"
|
|
909
|
+
options="圆形,正方形,椭圆形"
|
|
910
|
+
/>
|
|
911
|
+
<ac-input
|
|
912
|
+
v-else
|
|
913
|
+
:type="scope.row.showType === 'js脚本' ? 'textarea' : 'text'"
|
|
914
|
+
v-model="scope.row.targetValue"
|
|
915
|
+
/>
|
|
916
|
+
</template>
|
|
917
|
+
</el-table-column>
|
|
918
|
+
<el-table-column
|
|
919
|
+
header-align="center"
|
|
920
|
+
align="center"
|
|
921
|
+
label="操作"
|
|
922
|
+
:width="60"
|
|
923
|
+
fixed="right"
|
|
924
|
+
>
|
|
925
|
+
<template #default="scope">
|
|
926
|
+
<el-button
|
|
927
|
+
type="danger"
|
|
928
|
+
@click="deleteDataTableFieldStyle(scope.row)"
|
|
929
|
+
link
|
|
930
|
+
>删除</el-button>
|
|
931
|
+
</template>
|
|
932
|
+
</el-table-column>
|
|
933
|
+
</el-table>
|
|
934
|
+
</el-tab-pane>
|
|
935
|
+
<el-tab-pane name="link" label="页面关联">
|
|
936
|
+
<el-row>
|
|
937
|
+
<el-col :span="22">
|
|
938
|
+
<el-form-item label="页面名称" prop="pageId">
|
|
939
|
+
<ac-tree
|
|
940
|
+
v-model="fieldData.pageId"
|
|
941
|
+
data-url="/system/page/queryTree"
|
|
942
|
+
typeSelect="page"
|
|
943
|
+
@change="changePage"
|
|
944
|
+
/>
|
|
945
|
+
</el-form-item>
|
|
946
|
+
</el-col>
|
|
947
|
+
</el-row>
|
|
948
|
+
<el-row v-if="fieldData.pageId && fieldData.paramList && fieldData.paramList.length > 0">
|
|
949
|
+
<el-col :span="22">
|
|
950
|
+
<el-form-item
|
|
951
|
+
v-if="fieldData.paramList && fieldData.paramList.length > 0"
|
|
952
|
+
label="出参配置"
|
|
953
|
+
prop="pageId"
|
|
954
|
+
>
|
|
955
|
+
<div style="display: flex;flex-direction: column">
|
|
956
|
+
<div
|
|
957
|
+
class="param-item"
|
|
958
|
+
v-for="(param, index) in fieldData.paramList"
|
|
959
|
+
:key="index"
|
|
960
|
+
>
|
|
961
|
+
<div class="param-field">
|
|
962
|
+
<ac-select
|
|
963
|
+
v-model="param.fieldId"
|
|
964
|
+
:options="fieldOptions"
|
|
965
|
+
allow-create
|
|
966
|
+
/>
|
|
967
|
+
</div>
|
|
968
|
+
<div class="param-split"><ac-icon iconId="018eecae20bd010c2adf" /></div>
|
|
969
|
+
<div class="param-page">
|
|
970
|
+
<el-input v-model="param.pageParamName" disabled />
|
|
971
|
+
</div>
|
|
972
|
+
</div>
|
|
973
|
+
</div>
|
|
974
|
+
</el-form-item>
|
|
975
|
+
</el-col>
|
|
976
|
+
</el-row>
|
|
977
|
+
<el-row>
|
|
978
|
+
<el-col :span="22">
|
|
979
|
+
<el-form-item label="显示关联图标" prop="showRelevanceIcon">
|
|
980
|
+
<ac-dict-switch
|
|
981
|
+
v-model="fieldData.showRelevanceIcon"
|
|
982
|
+
dictCode="dictYesNo"
|
|
983
|
+
/>
|
|
984
|
+
</el-form-item>
|
|
985
|
+
</el-col>
|
|
986
|
+
</el-row>
|
|
987
|
+
<el-row>
|
|
988
|
+
<el-col :span="11">
|
|
989
|
+
<el-form-item label="全屏弹窗" prop="fullscreenDialog">
|
|
990
|
+
<ac-dict-switch v-model="fieldData.fullscreenDialog" dictCode="dictYesNo" />
|
|
991
|
+
</el-form-item>
|
|
992
|
+
</el-col>
|
|
993
|
+
<el-col :span="11" v-if="fieldData.fullscreenDialog !== '1'">
|
|
994
|
+
<el-form-item label="弹窗大小" prop="dialogWidth">
|
|
995
|
+
<ac-number v-model="fieldData.dialogWidth" :point="0" />
|
|
996
|
+
</el-form-item>
|
|
997
|
+
</el-col>
|
|
998
|
+
</el-row>
|
|
999
|
+
<el-row>
|
|
1000
|
+
<el-col :span="11">
|
|
1001
|
+
<el-form-item label="显示关闭按钮" prop="showCloseButton">
|
|
1002
|
+
<ac-dict-switch v-model="fieldData.showCloseButton" dictCode="dictYesNo" />
|
|
1003
|
+
</el-form-item>
|
|
1004
|
+
</el-col>
|
|
1005
|
+
<el-col :span="11">
|
|
1006
|
+
<el-form-item label="关闭后刷新" prop="closeRefresh">
|
|
1007
|
+
<ac-dict-switch v-model="fieldData.closeRefresh" dictCode="dictYesNo" />
|
|
1008
|
+
</el-form-item>
|
|
1009
|
+
</el-col>
|
|
1010
|
+
</el-row>
|
|
1011
|
+
<el-row>
|
|
1012
|
+
<el-col :span="11">
|
|
1013
|
+
<el-form-item label="打开前执行脚本" prop="openScriptId">
|
|
1014
|
+
<ac-tree
|
|
1015
|
+
v-model="fieldData.openScriptId"
|
|
1016
|
+
data-url="/system/scriptGroovy/queryTree"
|
|
1017
|
+
typeSelect="script"
|
|
1018
|
+
/>
|
|
1019
|
+
</el-form-item>
|
|
1020
|
+
</el-col>
|
|
1021
|
+
<el-col :span="11">
|
|
1022
|
+
<el-form-item label="关闭后执行脚本" prop="closeScriptId">
|
|
1023
|
+
<ac-tree
|
|
1024
|
+
v-model="fieldData.closeScriptId"
|
|
1025
|
+
data-url="/system/scriptGroovy/queryTree"
|
|
1026
|
+
typeSelect="script"
|
|
1027
|
+
/>
|
|
1028
|
+
</el-form-item>
|
|
1029
|
+
</el-col>
|
|
1030
|
+
</el-row>
|
|
1031
|
+
<el-row>
|
|
1032
|
+
<el-col :span="22">
|
|
1033
|
+
<el-form-item label="显示执行结果" prop="showExecuteResult">
|
|
1034
|
+
<ac-dict-switch v-model="fieldData.showExecuteResult" dictCode="dictYesNo" />
|
|
1035
|
+
</el-form-item>
|
|
1036
|
+
</el-col>
|
|
1037
|
+
</el-row>
|
|
1038
|
+
</el-tab-pane>
|
|
1039
|
+
</el-tabs>
|
|
1040
|
+
</el-form>
|
|
1041
|
+
</div>
|
|
1042
|
+
<template #footer>
|
|
1043
|
+
<el-button
|
|
1044
|
+
size="default"
|
|
1045
|
+
type="info"
|
|
1046
|
+
@click="fieldVisible=false"
|
|
1047
|
+
>取消</el-button>
|
|
1048
|
+
<el-button
|
|
1049
|
+
type="primary"
|
|
1050
|
+
size="default"
|
|
1051
|
+
@click="submitFieldForm"
|
|
1052
|
+
>确定</el-button>
|
|
1053
|
+
</template>
|
|
1054
|
+
</el-dialog>
|
|
1055
|
+
</template>
|
|
1056
|
+
|
|
1057
|
+
<script setup>
|
|
1058
|
+
import { ref, onMounted, onUnmounted, watch, nextTick } from 'vue';
|
|
1059
|
+
import clipboard from 'clipboard';
|
|
1060
|
+
import api from '@/http/api';
|
|
1061
|
+
import { ElMessage, ElMessageBox } from 'element-plus';
|
|
1062
|
+
import Sortable from 'sortablejs';
|
|
1063
|
+
import tool from '@/utils/tool';
|
|
1064
|
+
import loading from '@/utils/loading';
|
|
1065
|
+
|
|
1066
|
+
const emit = defineEmits(['afterSubmit'])
|
|
1067
|
+
const props = defineProps({
|
|
1068
|
+
options: {
|
|
1069
|
+
type: Object,
|
|
1070
|
+
default: () => {}
|
|
1071
|
+
}
|
|
1072
|
+
});
|
|
1073
|
+
const predefineColors = ref([
|
|
1074
|
+
'#409EFF',
|
|
1075
|
+
'#67C23A',
|
|
1076
|
+
'#E6A23C',
|
|
1077
|
+
'#F56C6C',
|
|
1078
|
+
'#909399',
|
|
1079
|
+
'#ff4500',
|
|
1080
|
+
'#ff8c00',
|
|
1081
|
+
'#ffd700',
|
|
1082
|
+
'#90ee90',
|
|
1083
|
+
'#00ced1',
|
|
1084
|
+
'#1e90ff',
|
|
1085
|
+
'#c71585',
|
|
1086
|
+
'#FF7800',
|
|
1087
|
+
]);
|
|
1088
|
+
|
|
1089
|
+
const tabName = ref('table');
|
|
1090
|
+
const sortFieldTable = ref();
|
|
1091
|
+
const sortFieldInst = ref();
|
|
1092
|
+
const formData = ref({});
|
|
1093
|
+
const dataForm = ref();
|
|
1094
|
+
const fieldList = ref([]);
|
|
1095
|
+
const fieldOptions = ref([]);
|
|
1096
|
+
|
|
1097
|
+
const totalVisible = ref(false);
|
|
1098
|
+
const totalForm = ref();
|
|
1099
|
+
const totalData = ref({});
|
|
1100
|
+
|
|
1101
|
+
const fieldTabName = ref('field');
|
|
1102
|
+
const fieldVisible = ref(false);
|
|
1103
|
+
const fieldForm = ref();
|
|
1104
|
+
const fieldData = ref({});
|
|
1105
|
+
const fieldRules = ref({});
|
|
1106
|
+
|
|
1107
|
+
const fieldAddVisible = ref(false);
|
|
1108
|
+
const fieldAddTable = ref();
|
|
1109
|
+
const rowFlag = ref(0);
|
|
1110
|
+
|
|
1111
|
+
const sortOrdinalTable = ref();
|
|
1112
|
+
const sortOrdinalInst = ref();
|
|
1113
|
+
|
|
1114
|
+
const privilegeRefs = ref([]);
|
|
1115
|
+
const sortingId = ref();
|
|
1116
|
+
const sortableInst = ref();
|
|
1117
|
+
const jsDemo = ref("return '<div " +
|
|
1118
|
+
'style="cursor: pointer" ' +
|
|
1119
|
+
"onclick=\"window.open(\\'http://www.baidu.com?id=' + args.data.id + '\\', \\'_blank\\')\"" +
|
|
1120
|
+
">' + args.data.name + '</div>';");
|
|
1121
|
+
|
|
1122
|
+
const rules = ref({
|
|
1123
|
+
name: [
|
|
1124
|
+
{ required: true, message: '请输入名称', trigger: ['change', 'blur'] },
|
|
1125
|
+
{ max: 100, message: '长度必须小于等于 200 个字符!', trigger: ['change', 'blur'] }
|
|
1126
|
+
],
|
|
1127
|
+
defaultPageSize: [
|
|
1128
|
+
{ required: true, message: '请选择默认分页大小', trigger: ['change', 'blur'] },
|
|
1129
|
+
],
|
|
1130
|
+
});
|
|
1131
|
+
const totalRules = ref({
|
|
1132
|
+
showSummary: [
|
|
1133
|
+
{ required: true, message: '请选择表尾合计', trigger: ['change', 'blur'] },
|
|
1134
|
+
],
|
|
1135
|
+
summaryFieldId: [
|
|
1136
|
+
{ required: true, message: '请选择显示合计列', trigger: ['change', 'blur'] },
|
|
1137
|
+
],
|
|
1138
|
+
summaryName: [
|
|
1139
|
+
{ required: true, message: '请输入合计名称', trigger: ['change', 'blur'] },
|
|
1140
|
+
],
|
|
1141
|
+
summaryFieldIds: [
|
|
1142
|
+
{ required: true, message: '请选择合计字段', trigger: ['change', 'blur'] },
|
|
1143
|
+
],
|
|
1144
|
+
});
|
|
1145
|
+
|
|
1146
|
+
const component = ref({
|
|
1147
|
+
单行文本框: 'ac-input',
|
|
1148
|
+
密码文本框: 'ac-password',
|
|
1149
|
+
多行文本框: 'ac-input',
|
|
1150
|
+
富文本框: 'ac-input',
|
|
1151
|
+
单选框: 'ac-select',
|
|
1152
|
+
下拉框: 'ac-select',
|
|
1153
|
+
开关: 'ac-switch',
|
|
1154
|
+
字符: 'ac-input',
|
|
1155
|
+
整数: 'ac-number',
|
|
1156
|
+
小数: 'ac-number',
|
|
1157
|
+
日期: 'ac-date',
|
|
1158
|
+
时间: 'ac-datetime',
|
|
1159
|
+
图片: 'ac-image',
|
|
1160
|
+
视频: 'ac-video',
|
|
1161
|
+
附件: 'ac-affix',
|
|
1162
|
+
下拉选择: 'ac-remote-select',
|
|
1163
|
+
树形控件: 'ac-dm-tree',
|
|
1164
|
+
区划树: 'ac-region-tree',
|
|
1165
|
+
单位树: 'ac-unit-tree',
|
|
1166
|
+
企业树: 'ac-entp-tree',
|
|
1167
|
+
部门树: 'ac-organization-tree',
|
|
1168
|
+
人员树: 'ac-employee-tree',
|
|
1169
|
+
字典树: 'ac-dm-tree',
|
|
1170
|
+
字典开关: 'ac-dict-switch',
|
|
1171
|
+
字典单选框: 'ac-dict-select',
|
|
1172
|
+
字典下拉框: 'ac-dict-select',
|
|
1173
|
+
});
|
|
1174
|
+
const getComponent = (fieldId) => {
|
|
1175
|
+
if (!fieldId) return;
|
|
1176
|
+
|
|
1177
|
+
const field = fieldList.value.find(item => item.id === fieldId);
|
|
1178
|
+
if (!field) return 'ac-input';
|
|
1179
|
+
|
|
1180
|
+
if (field.fieldType === '字符') {
|
|
1181
|
+
if (field.enumerate === '1') {
|
|
1182
|
+
return component.value[field.enumerateType];
|
|
1183
|
+
} else {
|
|
1184
|
+
return component.value[field.inputType];
|
|
1185
|
+
}
|
|
1186
|
+
} else if ('整数、小数、日期、时间、图片、视频、附件'.indexOf(field.fieldType) >= 0) {
|
|
1187
|
+
return component.value[field.fieldType];
|
|
1188
|
+
} else if (field.fieldType === '联动') {
|
|
1189
|
+
if (field.relevanceType === '数据模型') {
|
|
1190
|
+
return component.value['树形控件'];
|
|
1191
|
+
} else {
|
|
1192
|
+
return component.value[field.relevanceType];
|
|
1193
|
+
}
|
|
1194
|
+
} else if (field.fieldType === '大文本') {
|
|
1195
|
+
return component.value[field.inputType];
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
return 'ac-input';
|
|
1199
|
+
};
|
|
1200
|
+
|
|
1201
|
+
const getOptions = (fieldId) => {
|
|
1202
|
+
if (!fieldId) return;
|
|
1203
|
+
|
|
1204
|
+
const field = fieldList.value.find(item => item.id === fieldId);
|
|
1205
|
+
if (!field) return {};
|
|
1206
|
+
|
|
1207
|
+
if (field.fieldType === '字符') {
|
|
1208
|
+
if (field.autoCreate === '1') {
|
|
1209
|
+
return {};
|
|
1210
|
+
} else if (field.enumerate === '1') {
|
|
1211
|
+
return { options: field.enumerateValue || '', allowCreate: true };
|
|
1212
|
+
} else {
|
|
1213
|
+
return { max: field.fieldSize || 100 };
|
|
1214
|
+
}
|
|
1215
|
+
} else if ('整数、小数'.indexOf(field.fieldType) >= 0) {
|
|
1216
|
+
return {
|
|
1217
|
+
point: field.fieldType === '整数' ? 0 : field.fieldPrecision || 0,
|
|
1218
|
+
max: field.maxValue,
|
|
1219
|
+
min: field.minValue
|
|
1220
|
+
};
|
|
1221
|
+
} else if ('日期'.indexOf(field.fieldType) >= 0) {
|
|
1222
|
+
return { format: field.format || undefined, valueFormat: field.format || undefined };
|
|
1223
|
+
} else if (field.fieldType === '图片') {
|
|
1224
|
+
return { limit: 1, maxSize: field.imageMaxSize };
|
|
1225
|
+
} else if (field.fieldType === '视频') {
|
|
1226
|
+
return { limit: 1, maxSize: field.imageMaxSize };
|
|
1227
|
+
} else if (field.fieldType === '联动') {
|
|
1228
|
+
if (field.relevanceType === '数据模型') {
|
|
1229
|
+
const relevanceList = field.relevanceList || [];
|
|
1230
|
+
return {
|
|
1231
|
+
dataFieldId: field.id,
|
|
1232
|
+
leafSelect: relevanceList.length > 1,
|
|
1233
|
+
typeSelect: relevanceList[relevanceList.length - 1].id
|
|
1234
|
+
};
|
|
1235
|
+
} else {
|
|
1236
|
+
return { dictCode: field.relevanceDict || '' };
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
return {};
|
|
1241
|
+
};
|
|
1242
|
+
|
|
1243
|
+
const getFieldRowKey = row => {
|
|
1244
|
+
return row.id || row.rowFlag;
|
|
1245
|
+
};
|
|
1246
|
+
|
|
1247
|
+
const sortDataField = () => {
|
|
1248
|
+
if (sortFieldInst.value) {
|
|
1249
|
+
sortFieldInst.value.destroy();
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
if (sortFieldTable.value) {
|
|
1253
|
+
const el = sortFieldTable.value.$el.querySelector('.el-table__body-wrapper tbody');
|
|
1254
|
+
sortFieldInst.value = Sortable.create(el, {
|
|
1255
|
+
handle: '.el-table__row',
|
|
1256
|
+
onEnd: ({ newIndex, oldIndex }) => {
|
|
1257
|
+
const list = tool.deepClone(formData.value.fieldList);
|
|
1258
|
+
const currRow = list.splice(oldIndex, 1)[0];
|
|
1259
|
+
list.splice(newIndex, 0, currRow);
|
|
1260
|
+
nextTick(() => {
|
|
1261
|
+
formData.value.fieldList = list;
|
|
1262
|
+
});
|
|
1263
|
+
}
|
|
1264
|
+
});
|
|
1265
|
+
}
|
|
1266
|
+
};
|
|
1267
|
+
|
|
1268
|
+
const unSortDataField = () => {
|
|
1269
|
+
if (sortFieldInst.value) {
|
|
1270
|
+
sortFieldInst.value.destroy();
|
|
1271
|
+
}
|
|
1272
|
+
sortFieldInst.value = null;
|
|
1273
|
+
};
|
|
1274
|
+
|
|
1275
|
+
const getPrivilegeRowKey = row => {
|
|
1276
|
+
return row.id || row.rowFlag;
|
|
1277
|
+
};
|
|
1278
|
+
|
|
1279
|
+
const setRefs = (el, privilege) => {
|
|
1280
|
+
if (el) {
|
|
1281
|
+
privilegeRefs.value['privilegeTable_' + (privilege.id || privilege.rowFlag)] = el;
|
|
1282
|
+
}
|
|
1283
|
+
};
|
|
1284
|
+
|
|
1285
|
+
const sortPrivilegeField = (privilege) => {
|
|
1286
|
+
if (sortableInst.value) {
|
|
1287
|
+
sortableInst.value.destroy();
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
const ref = privilegeRefs.value['privilegeTable_' + (privilege.id || privilege.rowFlag)];
|
|
1291
|
+
if (ref) {
|
|
1292
|
+
const el = ref.$el.querySelector('.el-table__body-wrapper tbody');
|
|
1293
|
+
sortableInst.value = Sortable.create(el, {
|
|
1294
|
+
handle: '.el-table__row',
|
|
1295
|
+
onEnd: ({ newIndex, oldIndex }) => {
|
|
1296
|
+
const list = tool.deepClone(privilege.conditionList);
|
|
1297
|
+
const currRow = list.splice(oldIndex, 1)[0];
|
|
1298
|
+
list.splice(newIndex, 0, currRow);
|
|
1299
|
+
nextTick(() => {
|
|
1300
|
+
privilege.conditionList = list;
|
|
1301
|
+
});
|
|
1302
|
+
}
|
|
1303
|
+
});
|
|
1304
|
+
sortingId.value = privilege.id || privilege.rowFlag;
|
|
1305
|
+
}
|
|
1306
|
+
};
|
|
1307
|
+
|
|
1308
|
+
const unSortPrivilegeField = () => {
|
|
1309
|
+
if (sortableInst.value) {
|
|
1310
|
+
sortableInst.value.destroy();
|
|
1311
|
+
}
|
|
1312
|
+
sortableInst.value = null;
|
|
1313
|
+
};
|
|
1314
|
+
|
|
1315
|
+
const sortDataOrdinal = () => {
|
|
1316
|
+
if (sortOrdinalInst.value) {
|
|
1317
|
+
sortOrdinalInst.value.destroy();
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
if (sortOrdinalTable.value) {
|
|
1321
|
+
const el = sortOrdinalTable.value.$el.querySelector('.el-table__body-wrapper tbody');
|
|
1322
|
+
sortOrdinalInst.value = Sortable.create(el, {
|
|
1323
|
+
handle: '.el-table__row',
|
|
1324
|
+
onEnd: ({ newIndex, oldIndex }) => {
|
|
1325
|
+
const list = tool.deepClone(formData.value.ordinalList);
|
|
1326
|
+
const currRow = list.splice(oldIndex, 1)[0];
|
|
1327
|
+
list.splice(newIndex, 0, currRow);
|
|
1328
|
+
nextTick(() => {
|
|
1329
|
+
formData.value.ordinalList = list;
|
|
1330
|
+
});
|
|
1331
|
+
}
|
|
1332
|
+
});
|
|
1333
|
+
}
|
|
1334
|
+
};
|
|
1335
|
+
|
|
1336
|
+
const unSortDataOrdinal = () => {
|
|
1337
|
+
if (sortOrdinalInst.value) {
|
|
1338
|
+
sortOrdinalInst.value.destroy();
|
|
1339
|
+
}
|
|
1340
|
+
sortOrdinalInst.value = null;
|
|
1341
|
+
};
|
|
1342
|
+
|
|
1343
|
+
const init = (options) => {
|
|
1344
|
+
formData.value = {
|
|
1345
|
+
id: options.id || '',
|
|
1346
|
+
modelId: options.modelId || '',
|
|
1347
|
+
name: '',
|
|
1348
|
+
showHeader: '1',
|
|
1349
|
+
showHeaderSetting: '1',
|
|
1350
|
+
showFull: '1',
|
|
1351
|
+
showCheckbox: '1',
|
|
1352
|
+
showOrdinal: '1',
|
|
1353
|
+
showOperate: '1',
|
|
1354
|
+
showPagination: '1',
|
|
1355
|
+
showBorder: '1',
|
|
1356
|
+
totalJson: '',
|
|
1357
|
+
defaultPageSize: '20',
|
|
1358
|
+
defaultTable: '0',
|
|
1359
|
+
fieldList: []
|
|
1360
|
+
};
|
|
1361
|
+
loadDataTable(options.id);
|
|
1362
|
+
loadDataField(options.modelId);
|
|
1363
|
+
};
|
|
1364
|
+
|
|
1365
|
+
const rowClick = (row) => {
|
|
1366
|
+
fieldAddTable.value.toggleRowSelection(row);
|
|
1367
|
+
};
|
|
1368
|
+
|
|
1369
|
+
const showTotalDialog = () => {
|
|
1370
|
+
totalVisible.value = true;
|
|
1371
|
+
if (formData.value.totalJson && formData.value.totalJson.startsWith('{')) {
|
|
1372
|
+
totalData.value = JSON.parse(formData.value.totalJson);
|
|
1373
|
+
} else {
|
|
1374
|
+
totalData.value = {
|
|
1375
|
+
showSummary: '1',
|
|
1376
|
+
summaryName: '合计'
|
|
1377
|
+
};
|
|
1378
|
+
}
|
|
1379
|
+
};
|
|
1380
|
+
|
|
1381
|
+
const submitTotal = () => {
|
|
1382
|
+
totalForm.value.validate(valid => {
|
|
1383
|
+
if (!valid) return;
|
|
1384
|
+
|
|
1385
|
+
if (totalData.value.showSummary !== '1') {
|
|
1386
|
+
formData.value.totalJson = '';
|
|
1387
|
+
} else {
|
|
1388
|
+
formData.value.totalJson = JSON.stringify(totalData.value);
|
|
1389
|
+
}
|
|
1390
|
+
totalVisible.value = false;
|
|
1391
|
+
});
|
|
1392
|
+
};
|
|
1393
|
+
|
|
1394
|
+
const addField = () => {
|
|
1395
|
+
fieldAddVisible.value = true;
|
|
1396
|
+
nextTick(() => {
|
|
1397
|
+
formData.value.fieldList.forEach(field => {
|
|
1398
|
+
const row = fieldList.value.find(item => item.id === field.fieldId);
|
|
1399
|
+
if (row) {
|
|
1400
|
+
fieldAddTable.value.toggleRowSelection(row, true);
|
|
1401
|
+
}
|
|
1402
|
+
});
|
|
1403
|
+
});
|
|
1404
|
+
};
|
|
1405
|
+
|
|
1406
|
+
const submitFieldAddForm = () => {
|
|
1407
|
+
fieldAddTable.value.getSelectionRows().forEach(row => {
|
|
1408
|
+
if (formData.value.fieldList.findIndex(item => item.fieldId === row.id) < 0) {
|
|
1409
|
+
const data = tool.deepClone(row);
|
|
1410
|
+
data.id = null;
|
|
1411
|
+
data.rowFlag = ++rowFlag.value;
|
|
1412
|
+
data.fieldId = row.id;
|
|
1413
|
+
data.fieldName = row.fieldName;
|
|
1414
|
+
data.aliasName = row.showName;
|
|
1415
|
+
data.width = row.fieldName === 'update_time' || row.fieldName === 'create_time' ? 165 : 120;
|
|
1416
|
+
data.ifMerge = '0';
|
|
1417
|
+
data.wrap = '0';
|
|
1418
|
+
data.headerAlign = '居中';
|
|
1419
|
+
data.contentAlign = '居左';
|
|
1420
|
+
formData.value.fieldList.push(data);
|
|
1421
|
+
}
|
|
1422
|
+
});
|
|
1423
|
+
fieldAddVisible.value = false;
|
|
1424
|
+
};
|
|
1425
|
+
|
|
1426
|
+
const editField = (data) => {
|
|
1427
|
+
fieldTabName.value = 'field';
|
|
1428
|
+
fieldData.value = tool.deepClone(data);
|
|
1429
|
+
fieldData.value.showCloseButton = fieldData.value.showCloseButton || '1';
|
|
1430
|
+
if (fieldData.value.pageFieldJson) {
|
|
1431
|
+
fieldData.value.paramList = JSON.parse(fieldData.value.pageFieldJson);
|
|
1432
|
+
}
|
|
1433
|
+
changePage();
|
|
1434
|
+
fieldVisible.value = true;
|
|
1435
|
+
};
|
|
1436
|
+
|
|
1437
|
+
const changePage = () => {
|
|
1438
|
+
if (!fieldData.value.pageId) {
|
|
1439
|
+
fieldData.value.paramList = [];
|
|
1440
|
+
return;
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
api.post('/system/pageParam/queryList', { pageId: fieldData.value.pageId }).then(res => {
|
|
1444
|
+
const pageParamList = res.data || [];
|
|
1445
|
+
const paramList = fieldData.value.paramList;
|
|
1446
|
+
pageParamList.forEach(pageParam => {
|
|
1447
|
+
const fieldParam = paramList.find(item => item.pageParamId === pageParam.id);
|
|
1448
|
+
if (fieldParam) {
|
|
1449
|
+
fieldParam.pageParamName = pageParam.name;
|
|
1450
|
+
} else {
|
|
1451
|
+
paramList.push({ pageParamId: pageParam.id, pageParamName: pageParam.name });
|
|
1452
|
+
}
|
|
1453
|
+
});
|
|
1454
|
+
|
|
1455
|
+
fieldData.value.paramList = paramList.filter(param => pageParamList.find(item => item.id === param.pageParamId));
|
|
1456
|
+
});
|
|
1457
|
+
};
|
|
1458
|
+
|
|
1459
|
+
const fieldFlag = ref(1);
|
|
1460
|
+
const addDataTableFieldStyle = () => {
|
|
1461
|
+
if (!fieldData.value.styleList) {
|
|
1462
|
+
fieldData.value.styleList = [];
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
fieldData.value.styleList.push({
|
|
1466
|
+
fieldFlag: ++fieldFlag.value,
|
|
1467
|
+
showType: '文字',
|
|
1468
|
+
flash: '0',
|
|
1469
|
+
});
|
|
1470
|
+
};
|
|
1471
|
+
|
|
1472
|
+
const deleteDataTableFieldStyle = (data) => {
|
|
1473
|
+
ElMessageBox.confirm('请确认是否删除?', '提示', { type: 'warning' }).then(() => {
|
|
1474
|
+
const index = fieldData.value.styleList.findIndex(item =>
|
|
1475
|
+
(data.id && item.id === data.id) || (item.fieldFlag > 0 && item.fieldFlag === data.fieldFlag));
|
|
1476
|
+
fieldData.value.styleList.splice(index, 1);
|
|
1477
|
+
}).catch(() => {});
|
|
1478
|
+
};
|
|
1479
|
+
|
|
1480
|
+
const submitFieldForm = () => {
|
|
1481
|
+
if (fieldData.value.pageId && fieldData.value.paramList) {
|
|
1482
|
+
fieldData.value.pageFieldJson = JSON.stringify(
|
|
1483
|
+
fieldData.value.paramList.map(param => {
|
|
1484
|
+
const field = fieldList.value.find(item => item.id === param.fieldId);
|
|
1485
|
+
return {
|
|
1486
|
+
fieldId: param.fieldId,
|
|
1487
|
+
fieldName: field ? field.fieldName : '',
|
|
1488
|
+
pageParamId: param.pageParamId,
|
|
1489
|
+
pageParamName: param.pageParamName
|
|
1490
|
+
}
|
|
1491
|
+
}));
|
|
1492
|
+
} else {
|
|
1493
|
+
fieldData.value.pageFieldJson = '';
|
|
1494
|
+
}
|
|
1495
|
+
const data = fieldData.value;
|
|
1496
|
+
const index = formData.value.fieldList
|
|
1497
|
+
.findIndex(item => data.id ? item.id === data.id : item.rowFlag === data.rowFlag);
|
|
1498
|
+
formData.value.fieldList[index] = data;
|
|
1499
|
+
|
|
1500
|
+
fieldData.value = {};
|
|
1501
|
+
fieldVisible.value = false;
|
|
1502
|
+
};
|
|
1503
|
+
|
|
1504
|
+
const deleteField = (data) => {
|
|
1505
|
+
ElMessageBox.confirm('请确认是否删除【' + data.aliasName + '】?', '提示', { type: 'warning' }).then(() => {
|
|
1506
|
+
const index = formData.value.fieldList
|
|
1507
|
+
.findIndex(item => data.id ? item.id === data.id : item.rowFlag === data.rowFlag);
|
|
1508
|
+
formData.value.fieldList.splice(index, 1);
|
|
1509
|
+
});
|
|
1510
|
+
};
|
|
1511
|
+
|
|
1512
|
+
const addOrdinal = () => {
|
|
1513
|
+
if (!formData.value.ordinalList) {
|
|
1514
|
+
formData.value.ordinalList = [];
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
formData.value.ordinalList.push({ rowFlag: ++rowFlag.value });
|
|
1518
|
+
};
|
|
1519
|
+
|
|
1520
|
+
const deleteOrdinal = (data) => {
|
|
1521
|
+
ElMessageBox.confirm('请确认是否删除?', '提示', { type: 'warning' }).then(() => {
|
|
1522
|
+
const index = formData.value.ordinalList
|
|
1523
|
+
.findIndex(item => item.id ? item.id === data.id : item.rowFlag === data.rowFlag);
|
|
1524
|
+
formData.value.ordinalList.splice(index, 1);
|
|
1525
|
+
});
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
const addPrivilege = () => {
|
|
1529
|
+
if (!formData.value.privilegeList) {
|
|
1530
|
+
formData.value.privilegeList = [];
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
formData.value.privilegeList.push({
|
|
1534
|
+
roleId: '',
|
|
1535
|
+
rowFlag: ++rowFlag.value,
|
|
1536
|
+
conditionList: [{}]
|
|
1537
|
+
});
|
|
1538
|
+
};
|
|
1539
|
+
|
|
1540
|
+
const deletePrivilege = (privilege) => {
|
|
1541
|
+
ElMessageBox.confirm('请确认是否删除?', '提示', { type: 'warning' }).then(() => {
|
|
1542
|
+
const index = formData.value.privilegeList
|
|
1543
|
+
.findIndex(item => privilege.id ? item.id === privilege.id : item.rowFlag === privilege.rowFlag);
|
|
1544
|
+
formData.value.privilegeList.splice(index, 1);
|
|
1545
|
+
});
|
|
1546
|
+
};
|
|
1547
|
+
|
|
1548
|
+
const addPrivilegeCondition = (privilege) => {
|
|
1549
|
+
privilege.conditionList.push({ rowFlag: ++rowFlag.value });
|
|
1550
|
+
};
|
|
1551
|
+
|
|
1552
|
+
const deletePrivilegeCondition = (privilege, data) => {
|
|
1553
|
+
ElMessageBox.confirm('请确认是否删除?', '提示', { type: 'warning' }).then(() => {
|
|
1554
|
+
const index = privilege.conditionList
|
|
1555
|
+
.findIndex(item => item.id ? item.id === data.id : item.rowFlag === data.rowFlag);
|
|
1556
|
+
privilege.conditionList.splice(index, 1);
|
|
1557
|
+
});
|
|
1558
|
+
};
|
|
1559
|
+
|
|
1560
|
+
const loadDataTable = (id) => {
|
|
1561
|
+
if (id) {
|
|
1562
|
+
loading.showLoading();
|
|
1563
|
+
api.post('/system/dataTable/queryBy', { id: id }).then(res => {
|
|
1564
|
+
const data = res.data || {};
|
|
1565
|
+
data.defaultPageSize = (data.defaultPageSize || '') + '';
|
|
1566
|
+
formData.value = data;
|
|
1567
|
+
loading.hideLoading();
|
|
1568
|
+
}).catch(() => loading.hideLoading());
|
|
1569
|
+
}
|
|
1570
|
+
};
|
|
1571
|
+
|
|
1572
|
+
const loadDataField = (modelId) => {
|
|
1573
|
+
fieldOptions.value = [];
|
|
1574
|
+
|
|
1575
|
+
api.post('/system/dataField/queryList', { modelId: modelId }).then(res => {
|
|
1576
|
+
fieldList.value = res.data || [];
|
|
1577
|
+
fieldList.value.forEach(field => {
|
|
1578
|
+
fieldOptions.value.push({ key: field.id, value: field.showName });
|
|
1579
|
+
});
|
|
1580
|
+
});
|
|
1581
|
+
};
|
|
1582
|
+
|
|
1583
|
+
const submitData = () => {
|
|
1584
|
+
if (formData.value.ordinalList && formData.value.ordinalList.length > 0) {
|
|
1585
|
+
for (let i = 0; i < formData.value.ordinalList.length; i++) {
|
|
1586
|
+
const ordinal = formData.value.ordinalList[i];
|
|
1587
|
+
if (!ordinal.fieldId) {
|
|
1588
|
+
ElMessage.error('数据排序 / 排序字段 不能为空!');
|
|
1589
|
+
return;
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
if (formData.value.privilegeList && formData.value.privilegeList.length > 0) {
|
|
1595
|
+
for (const privilege of formData.value.privilegeList) {
|
|
1596
|
+
for (let i = 0; i < privilege.conditionList.length; i++) {
|
|
1597
|
+
const condition = privilege.conditionList[i];
|
|
1598
|
+
if (i > 0 && !condition.connectSymbol) {
|
|
1599
|
+
ElMessage.error('权限过滤 / 拼接方式 不能为空!');
|
|
1600
|
+
return;
|
|
1601
|
+
}
|
|
1602
|
+
if (!condition.fieldId) {
|
|
1603
|
+
ElMessage.error('权限过滤 / 过滤字段 不能为空!');
|
|
1604
|
+
return;
|
|
1605
|
+
}
|
|
1606
|
+
if (!condition.compareSymbol) {
|
|
1607
|
+
ElMessage.error('权限过滤 / 比较符 不能为空!');
|
|
1608
|
+
return;
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
dataForm.value && dataForm.value.validate((valid) => {
|
|
1615
|
+
if (valid) {
|
|
1616
|
+
ElMessageBox.confirm('请确认是否提交?', '提示', { type: 'info' }).then(() => {
|
|
1617
|
+
loading.showLoading();
|
|
1618
|
+
api.post('/system/dataTable/save', formData.value).then(res => {
|
|
1619
|
+
ElMessage.success(res.message);
|
|
1620
|
+
emit('afterSubmit');
|
|
1621
|
+
loading.hideLoading();
|
|
1622
|
+
}).catch(() => loading.hideLoading());
|
|
1623
|
+
});
|
|
1624
|
+
} else {
|
|
1625
|
+
ElMessage.error('数据录入不正确,请重新检查!');
|
|
1626
|
+
}
|
|
1627
|
+
});
|
|
1628
|
+
};
|
|
1629
|
+
|
|
1630
|
+
const copySymbol = (symbol) => {
|
|
1631
|
+
clipboard.copy(symbol);
|
|
1632
|
+
ElMessage.success('已复制到剪贴板');
|
|
1633
|
+
};
|
|
1634
|
+
|
|
1635
|
+
watch(() => props.options, (options) => {
|
|
1636
|
+
init(options || {});
|
|
1637
|
+
});
|
|
1638
|
+
|
|
1639
|
+
onMounted(() => {
|
|
1640
|
+
init(props.options || {});
|
|
1641
|
+
});
|
|
1642
|
+
|
|
1643
|
+
onUnmounted(() => {
|
|
1644
|
+
unSortDataField();
|
|
1645
|
+
unSortDataOrdinal();
|
|
1646
|
+
});
|
|
1647
|
+
|
|
1648
|
+
defineExpose({ submitData });
|
|
1649
|
+
</script>
|
|
1650
|
+
|
|
1651
|
+
<style scoped lang="scss">
|
|
1652
|
+
.radio-span {
|
|
1653
|
+
padding: 0 5px;
|
|
1654
|
+
:deep(.el-radio) {
|
|
1655
|
+
margin-right: 10px;
|
|
1656
|
+
}
|
|
1657
|
+
}
|
|
1658
|
+
.param-item {
|
|
1659
|
+
display: flex;
|
|
1660
|
+
flex-direction: row;
|
|
1661
|
+
.param-field {
|
|
1662
|
+
width: 175px;
|
|
1663
|
+
}
|
|
1664
|
+
.param-split {
|
|
1665
|
+
width: 44px;
|
|
1666
|
+
display: flex;
|
|
1667
|
+
justify-content: center;
|
|
1668
|
+
align-items: center;
|
|
1669
|
+
font-size: 20px;
|
|
1670
|
+
}
|
|
1671
|
+
.param-page {
|
|
1672
|
+
flex-grow: 1;
|
|
1673
|
+
}
|
|
1674
|
+
}
|
|
1675
|
+
.param-item+.param-item {
|
|
1676
|
+
margin-top: 5px;
|
|
1677
|
+
}
|
|
1678
|
+
</style>
|