@utogether/udp-core 1.0.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/build/index.ts +90 -0
- package/build/plugins.ts +26 -0
- package/dist/403-B1R-4vXw.js +64 -0
- package/dist/404-fXPl8csw.js +64 -0
- package/dist/500-eI5842YB.js +66 -0
- package/dist/AuthorityInfo-CfVH6PaB.js +4 -0
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-DbK-f8jH.js +102 -0
- package/dist/AuthorityPanel-BaLMwMgW.js +4 -0
- package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-C_bkqLD9.js +107 -0
- package/dist/Company-CYC9Avfz.js +25 -0
- package/dist/CompanyPanel-B4MzoqN_.js +206 -0
- package/dist/DataSet-DT-rGICv.js +147 -0
- package/dist/Department-B4BNSiYx.js +25 -0
- package/dist/DepartmentPanel-zJO89L2O.js +224 -0
- package/dist/DesignPanel-S8P0J97f.js +4 -0
- package/dist/DesignPanel.vue_vue_type_style_index_0_lang-DW-_Vqrr.js +1015 -0
- package/dist/DictView-bIS5-rK-.js +95 -0
- package/dist/InvOrganization-MuM2jtsG.js +66 -0
- package/dist/Org-kXHSjsgJ.js +35 -0
- package/dist/Preview-CRyiwUIR.js +48 -0
- package/dist/ReportDefine-WZYIx8Sm.js +10 -0
- package/dist/ReportDesign-D-7GKgpb.js +165 -0
- package/dist/ReportQuery-BIIJny6w.js +75 -0
- package/dist/ReportQueryFrom-OoUl7N2O.js +4 -0
- package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-B878fgj8.js +177 -0
- package/dist/ReportTemplate-Cfeq9US-.js +161 -0
- package/dist/Role-BwTV2QMH.js +25 -0
- package/dist/RoleAssign-De1JjOun.js +26 -0
- package/dist/RolePanel-E3RcdByM.js +4 -0
- package/dist/RolePanel-pUBXsqCM.js +4 -0
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-B2pQwHb0.js +148 -0
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CTIad9_Q.js +126 -0
- package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-vMR1fBi0.js +100 -0
- package/dist/Staff-Czm7A8vI.js +25 -0
- package/dist/StaffInfo-DJzvBuxy.js +4 -0
- package/dist/StaffInfo.vue_vue_type_style_index_0_lang-DMTL7KCh.js +108 -0
- package/dist/StaffPanel-CHk60LEz.js +4 -0
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-iPKLb5wG.js +114 -0
- package/dist/SysUser-BGwbttRn.js +15 -0
- package/dist/SysUserPanel-BCbKoLKt.js +4 -0
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-0QUjnhjF.js +289 -0
- package/dist/SystemMenu-BkqZSDKl.js +151 -0
- package/dist/UserInfo-BsyAcT2d.js +4 -0
- package/dist/UserInfo.vue_vue_type_style_index_0_lang-D0-KDxAh.js +158 -0
- package/dist/await-to-js.es5-BtRbN2QH.js +10 -0
- package/dist/childView-CF83nhxb.js +4 -0
- package/dist/childView-CyuLTUqC.js +4 -0
- package/dist/childView.vue_vue_type_style_index_0_lang-CNSgGda3.js +187 -0
- package/dist/childView.vue_vue_type_style_index_0_lang-Cch4lE-i.js +144 -0
- package/dist/code-rule-Bz-gnktN.js +147 -0
- package/dist/core.es.js +13 -0
- package/dist/core.umd.js +173 -0
- package/dist/cron-task-CIifSUdW.js +135 -0
- package/dist/frameView-_d2mqjjQ.js +43 -0
- package/dist/img/l_img.svg +1 -0
- package/dist/img/minicolors.png +0 -0
- package/dist/img/v_img.svg +1 -0
- package/dist/index-BKIw8tSn.js +9195 -0
- package/dist/layoutView-DLKVepB8.js +3317 -0
- package/dist/log-in-e7D5Ss1P.js +110 -0
- package/dist/log-out--RRncZhN.js +120 -0
- package/dist/login-LREiDfFU.js +251 -0
- package/dist/login-log-CvVnyGi3.js +68 -0
- package/dist/lov-view-DDrIVILB.js +97 -0
- package/dist/menuInfo-B1FUV-Sk.js +4 -0
- package/dist/menuInfo.vue_vue_type_style_index_0_lang-Cnk3vdtD.js +338 -0
- package/dist/pda-app-CRhVGijN.js +2209 -0
- package/dist/redirect-DiaNDu8F.js +15 -0
- package/dist/resource-BCwx9fEv.js +97 -0
- package/dist/su-welcome-189A7N4r.js +526 -0
- package/dist/sys-config-BZ3sejow.js +277 -0
- package/dist/udp-core.css +9 -0
- package/dist/utogether-r08LNiIZ.js +182 -0
- package/index.ts +36 -0
- package/package.json +16 -0
- package/public/img/l_img.svg +1 -0
- package/public/img/minicolors.png +0 -0
- package/public/img/v_img.svg +1 -0
- package/src/App.vue +70 -0
- package/src/api/http.ts +50 -0
- package/src/api/index.ts +31 -0
- package/src/api/mock.ts +20 -0
- package/src/api/user.ts +43 -0
- package/src/assets/images/avatars.jpg +0 -0
- package/src/assets/images/empty.png +0 -0
- package/src/assets/images/login.png +0 -0
- package/src/assets/images/logo.png +0 -0
- package/src/assets/images/mask-text.jpg +0 -0
- package/src/assets/images/minicolors.png +0 -0
- package/src/assets/images/utogether.png +0 -0
- package/src/assets/images/welcome.png +0 -0
- package/src/assets/status/403.svg +1 -0
- package/src/assets/status/404.svg +1 -0
- package/src/assets/status/500.svg +1 -0
- package/src/assets/svg/back_top.svg +1 -0
- package/src/assets/svg/bg.svg +1 -0
- package/src/assets/svg/close.svg +1 -0
- package/src/assets/svg/close_all.svg +1 -0
- package/src/assets/svg/close_left.svg +1 -0
- package/src/assets/svg/close_other.svg +1 -0
- package/src/assets/svg/close_right.svg +1 -0
- package/src/assets/svg/dark.svg +1 -0
- package/src/assets/svg/day.svg +1 -0
- package/src/assets/svg/enter_outlined.svg +1 -0
- package/src/assets/svg/exit_screen.svg +1 -0
- package/src/assets/svg/full_screen.svg +1 -0
- package/src/assets/svg/globalization.svg +1 -0
- package/src/assets/svg/loading.svg +17 -0
- package/src/assets/svg/mdi_keyboard_esc.svg +1 -0
- package/src/assets/svg/refresh.svg +1 -0
- package/src/assets/svg/system.svg +1 -0
- package/src/components/ReCountTo/README.md +2 -0
- package/src/components/ReCountTo/index.ts +18 -0
- package/src/components/ReCountTo/src/normal/index.tsx +165 -0
- package/src/components/ReCountTo/src/normal/props.ts +37 -0
- package/src/components/ReCountTo/src/rebound/index.tsx +67 -0
- package/src/components/ReCountTo/src/rebound/props.ts +14 -0
- package/src/components/ReCountTo/src/rebound/rebound.css +77 -0
- package/src/components/ReCropper/index.ts +14 -0
- package/src/components/ReCropper/src/index.tsx +141 -0
- package/src/components/ReFlicker/index.css +39 -0
- package/src/components/ReFlicker/index.ts +50 -0
- package/src/components/ReFlop/index.ts +14 -0
- package/src/components/ReFlop/src/Filpper.tsx +99 -0
- package/src/components/ReFlop/src/filpper.css +184 -0
- package/src/components/ReFlop/src/index.vue +126 -0
- package/src/components/ReFlowChart/index.ts +24 -0
- package/src/components/ReFlowChart/src/Control.vue +139 -0
- package/src/components/ReFlowChart/src/DataDialog.vue +12 -0
- package/src/components/ReFlowChart/src/NodePanel.vue +151 -0
- package/src/components/ReFlowChart/src/adpterForTurbo.ts +160 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.css +49 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.eot +0 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.js +61 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.json +58 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.svg +47 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.ttf +0 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff +0 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff2 +0 -0
- package/src/components/ReFlowChart/src/config.ts +62 -0
- package/src/components/ReIcon/index.ts +12 -0
- package/src/components/ReIcon/src/Icon.vue +81 -0
- package/src/components/ReIcon/src/hooks.ts +63 -0
- package/src/components/ReIcon/src/iconfont.ts +45 -0
- package/src/components/ReIcon/src/iconifyIconOffline.ts +36 -0
- package/src/components/ReIcon/src/iconifyIconOnline.ts +28 -0
- package/src/components/ReIcon/src/offlineIcon.ts +64 -0
- package/src/components/ReIcon/src/types.ts +20 -0
- package/src/components/ReSplitPane/index.css +49 -0
- package/src/components/ReSplitPane/index.tsx +119 -0
- package/src/components/ReSplitPane/resizer.css +45 -0
- package/src/components/ReSplitPane/resizer.tsx +30 -0
- package/src/components/SuCharts/index.ts +36 -0
- package/src/components/SuCharts/src/EchartBar.vue +134 -0
- package/src/components/SuCharts/src/UserInfo.vue +78 -0
- package/src/components/SuCharts/src/echart-line.vue +85 -0
- package/src/components/SuCharts/src/echart-pie.vue +95 -0
- package/src/components/SuCommon/card/components/Card.vue +148 -0
- package/src/components/SuCommon/card/components/DialogForm.vue +127 -0
- package/src/components/SuCommon/card/index.vue +142 -0
- package/src/components/SuCommon/icon-select/index.vue +241 -0
- package/src/components/SuCommon/table/index.vue +208 -0
- package/src/components/SuCommon/utils/index.ts +103 -0
- package/src/components/SuCommon/utils/slot.tsx +50 -0
- package/src/components/SuFloatButton/index.vue +159 -0
- package/src/components/SuQrcode/index.ts +14 -0
- package/src/components/SuQrcode/src/index.scss +9 -0
- package/src/components/SuQrcode/src/index.tsx +236 -0
- package/src/components/SuScrollTree/ScrollPanel.vue +175 -0
- package/src/components/SuTable/SuTable.vue +334 -0
- package/src/components/SuTypeit/index.ts +51 -0
- package/src/config/index.ts +35 -0
- package/src/contant/index.ts +20 -0
- package/src/directives/elResizeDetector/index.ts +33 -0
- package/src/directives/index.ts +11 -0
- package/src/directives/permission/index.ts +29 -0
- package/src/layout/components/lay-chrome/index.vue +30 -0
- package/src/layout/components/lay-content/index.vue +143 -0
- package/src/layout/components/lay-navbar/index.vue +237 -0
- package/src/layout/components/lay-notice/data.ts +59 -0
- package/src/layout/components/lay-notice/index.vue +83 -0
- package/src/layout/components/lay-notice/noticeItem.vue +160 -0
- package/src/layout/components/lay-notice/noticeList.vue +19 -0
- package/src/layout/components/lay-panel/index.vue +150 -0
- package/src/layout/components/lay-search/components/SearchFooter.vue +67 -0
- package/src/layout/components/lay-search/components/SearchModal.vue +189 -0
- package/src/layout/components/lay-search/components/SearchResult.vue +132 -0
- package/src/layout/components/lay-search/components/index.ts +10 -0
- package/src/layout/components/lay-search/index.vue +25 -0
- package/src/layout/components/lay-select-org/index.vue +69 -0
- package/src/layout/components/lay-setting/index.vue +510 -0
- package/src/layout/components/lay-sidebar/breadCrumb.vue +131 -0
- package/src/layout/components/lay-sidebar/extraIcon.vue +25 -0
- package/src/layout/components/lay-sidebar/hamBurger.vue +72 -0
- package/src/layout/components/lay-sidebar/horizontal.vue +191 -0
- package/src/layout/components/lay-sidebar/mixNav.vue +258 -0
- package/src/layout/components/lay-sidebar/sidebar-logo.vue +98 -0
- package/src/layout/components/lay-sidebar/sidebarItem.vue +205 -0
- package/src/layout/components/lay-sidebar/vertical.vue +94 -0
- package/src/layout/components/lay-tag/index.scss +375 -0
- package/src/layout/components/lay-tag/index.vue +625 -0
- package/src/layout/frameView.vue +71 -0
- package/src/layout/hooks/useBoolean.ts +33 -0
- package/src/layout/hooks/useDataThemeChange.ts +142 -0
- package/src/layout/hooks/useLayout.ts +65 -0
- package/src/layout/hooks/useNav.ts +173 -0
- package/src/layout/hooks/useTag.ts +233 -0
- package/src/layout/hooks/useTranslationLang.ts +51 -0
- package/src/layout/layoutView.vue +215 -0
- package/src/layout/redirect.vue +30 -0
- package/src/layout/routerView/parent.vue +23 -0
- package/src/layout/types.ts +92 -0
- package/src/main.ts +108 -0
- package/src/plugins/echarts/index.ts +58 -0
- package/src/plugins/echarts/theme.json +394 -0
- package/src/plugins/i18n/en.ts +289 -0
- package/src/plugins/i18n/index.ts +76 -0
- package/src/plugins/i18n/module/u-report.ts +64 -0
- package/src/plugins/i18n/module/u-workflow.ts +71 -0
- package/src/plugins/i18n/module/umsg.ts +28 -0
- package/src/plugins/i18n/zh.ts +337 -0
- package/src/plugins/vxe-table/index.ts +46 -0
- package/src/plugins/vxe-table/render.tsx +397 -0
- package/src/router/createComponent.tsx +25 -0
- package/src/router/index.ts +183 -0
- package/src/router/modules/error.ts +32 -0
- package/src/router/modules/home.ts +32 -0
- package/src/router/modules/nested.ts +93 -0
- package/src/router/modules/remaining.ts +83 -0
- package/src/router/modules/tabs.ts +55 -0
- package/src/router/utils.ts +377 -0
- package/src/store/index.ts +9 -0
- package/src/store/modules/app.ts +69 -0
- package/src/store/modules/epTheme.ts +49 -0
- package/src/store/modules/multiTags.ts +109 -0
- package/src/store/modules/permission.ts +103 -0
- package/src/store/modules/settings.ts +40 -0
- package/src/store/modules/system.ts +180 -0
- package/src/store/modules/types.ts +49 -0
- package/src/style/button.scss +78 -0
- package/src/style/clear-mixin.scss +28 -0
- package/src/style/dark.scss +218 -0
- package/src/style/element-plus.scss +206 -0
- package/src/style/index.scss +76 -0
- package/src/style/login.css +336 -0
- package/src/style/login2.css +106 -0
- package/src/style/print-lock.css +375 -0
- package/src/style/reset.scss +272 -0
- package/src/style/sidebar.scss +770 -0
- package/src/style/suprint.css +985 -0
- package/src/style/tailwind.css +68 -0
- package/src/style/theme.scss +143 -0
- package/src/style/transition.scss +42 -0
- package/src/style/vxetable.scss +256 -0
- package/src/utils/authority/index.ts +29 -0
- package/src/utils/browers.ts +59 -0
- package/src/utils/dataFormat/index.ts +223 -0
- package/src/utils/http/index.ts +297 -0
- package/src/utils/http/types.d.ts +46 -0
- package/src/utils/index.ts +47 -0
- package/src/utils/lifecycle.ts +20 -0
- package/src/utils/mitt.ts +19 -0
- package/src/utils/propTypes.ts +47 -0
- package/src/utils/storage/index.ts +51 -0
- package/src/views/components/contextmenu/basic.vue +74 -0
- package/src/views/components/contextmenu/context-menu.vue +40 -0
- package/src/views/components/contextmenu/menuDynamic.vue +99 -0
- package/src/views/components/contextmenu/menuGroup.vue +71 -0
- package/src/views/components/count-to/index.vue +43 -0
- package/src/views/components/cropping/index.vue +59 -0
- package/src/views/components/cropping/picture.jpeg +0 -0
- package/src/views/components/split-pane/index.vue +82 -0
- package/src/views/components/video/index.vue +57 -0
- package/src/views/error/403.vue +50 -0
- package/src/views/error/404.vue +50 -0
- package/src/views/error/500.vue +52 -0
- package/src/views/login/login-view.vue +314 -0
- package/src/views/login/utils/motion.ts +47 -0
- package/src/views/login/utils/rule.ts +70 -0
- package/src/views/login/utils/verifyCode.ts +52 -0
- package/src/views/organization/company/Company.vue +56 -0
- package/src/views/organization/company/CompanyPanel.vue +259 -0
- package/src/views/organization/department/Department.vue +58 -0
- package/src/views/organization/department/DepartmentPanel.vue +283 -0
- package/src/views/organization/inv-org/InvOrganization.vue +53 -0
- package/src/views/organization/org/Org.vue +43 -0
- package/src/views/organization/staff/Staff.vue +58 -0
- package/src/views/organization/staff/StaffInfo.vue +163 -0
- package/src/views/organization/staff/StaffPanel.vue +144 -0
- package/src/views/system/cron/cron-task.vue +157 -0
- package/src/views/system/menu/AuthorityPanel.vue +140 -0
- package/src/views/system/menu/SystemMenu.vue +191 -0
- package/src/views/system/menu/menuInfo.vue +368 -0
- package/src/views/system/role/AuthorityInfo.vue +147 -0
- package/src/views/system/role/Role.vue +57 -0
- package/src/views/system/role/RolePanel.vue +191 -0
- package/src/views/system/role/UserInfo.vue +193 -0
- package/src/views/system/role-assign/RoleAssign.vue +57 -0
- package/src/views/system/role-assign/RolePanel.vue +136 -0
- package/src/views/system/sys/sys-config.vue +291 -0
- package/src/views/system/sysUser/SysUser.vue +45 -0
- package/src/views/system/sysUser/SysUserPanel.vue +278 -0
- package/src/views/uapp/pda/pda-app.vue +176 -0
- package/src/views/udev/coderule/code-rule.vue +121 -0
- package/src/views/udev/dict/DictView.vue +106 -0
- package/src/views/udev/dict/childView.vue +222 -0
- package/src/views/udev/lov/childView.vue +180 -0
- package/src/views/udev/lov/lov-view.vue +91 -0
- package/src/views/ufile/aggregation/File.vue +87 -0
- package/src/views/ufile/file/water-mark.vue +103 -0
- package/src/views/uhome/components/menu-favorite.vue +331 -0
- package/src/views/uhome/su-welcome.vue +339 -0
- package/src/views/ulogin/login.vue +316 -0
- package/src/views/umsg/monitor/msg-monitor.vue +36 -0
- package/src/views/umsg/msg/TemplateContent.vue +103 -0
- package/src/views/umsg/msg/msg-template.vue +66 -0
- package/src/views/umsg/send/childView.vue +142 -0
- package/src/views/umsg/send/msg-send.vue +95 -0
- package/src/views/upms/interface/log-in.vue +106 -0
- package/src/views/upms/interface/log-out.vue +107 -0
- package/src/views/upms/user/login-log.vue +60 -0
- package/src/views/urpt/dataSet/DataSet.vue +139 -0
- package/src/views/urpt/design/DesignPanel.vue +526 -0
- package/src/views/urpt/design/Preview.vue +65 -0
- package/src/views/urpt/design/ReportDesign.vue +249 -0
- package/src/views/urpt/design/bg.png +0 -0
- package/src/views/urpt/design/panel.ts +841 -0
- package/src/views/urpt/design/print-data.ts +59 -0
- package/src/views/urpt/query/ReportQuery.vue +122 -0
- package/src/views/urpt/query/ReportQueryFrom.vue +252 -0
- package/src/views/urpt/report-request/ReportDefine.vue +10 -0
- package/src/views/urpt/static-resource/resource.vue +116 -0
- package/src/views/urpt/template/ReportTemplate.vue +198 -0
- package/tsconfig.json +30 -0
- package/types/env.d.ts +1 -0
- package/types/global-components.d.ts +12 -0
- package/types/global.d.ts +236 -0
- package/types/image.d.ts +7 -0
- package/types/index.d.ts +73 -0
- package/types/router.d.ts +107 -0
- package/types/shims-tsx.d.ts +22 -0
- package/types/shims-vue.d.ts +20 -0
- package/vite.config.ts +73 -0
package/build/index.ts
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: wei.li
|
|
3
|
+
* @Date: 2022-03-07 11:37:59
|
|
4
|
+
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
+
* @LastEditTime: 2024-07-03 17:08:08
|
|
6
|
+
* @Description: file content
|
|
7
|
+
*/
|
|
8
|
+
import { readdir, stat } from 'fs';
|
|
9
|
+
import dayjs, { type Dayjs } from 'dayjs';
|
|
10
|
+
import xutils from 'xe-utils';
|
|
11
|
+
import duration from 'dayjs/plugin/duration';
|
|
12
|
+
|
|
13
|
+
import gradientString from 'gradient-string';
|
|
14
|
+
import boxen from 'boxen';
|
|
15
|
+
|
|
16
|
+
dayjs.extend(duration);
|
|
17
|
+
|
|
18
|
+
const boxenOprions: any = {
|
|
19
|
+
padding: 0.5,
|
|
20
|
+
borderColor: 'cyan',
|
|
21
|
+
borderStyle: 'round'
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const staticPath = 'dist';
|
|
25
|
+
const fileListTotal: number[] = [];
|
|
26
|
+
|
|
27
|
+
const recursiveDirectory = (folder: string, callback: Function): void => {
|
|
28
|
+
readdir(folder, (err, files: string[]) => {
|
|
29
|
+
if (err) throw err;
|
|
30
|
+
let count = 0;
|
|
31
|
+
const checkEnd = () => {
|
|
32
|
+
++count == files.length && callback();
|
|
33
|
+
};
|
|
34
|
+
files.forEach((item: string) => {
|
|
35
|
+
stat(folder + '/' + item, async (err, stats) => {
|
|
36
|
+
if (err) throw err;
|
|
37
|
+
if (stats.isFile()) {
|
|
38
|
+
fileListTotal.push(stats.size);
|
|
39
|
+
checkEnd();
|
|
40
|
+
} else if (stats.isDirectory()) {
|
|
41
|
+
recursiveDirectory(`${folder}/${item}/`, checkEnd);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
files.length === 0 && callback();
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
const formatBytes = (a: number, b?: number): string => {
|
|
50
|
+
if (0 == a) return '0 Bytes';
|
|
51
|
+
const c = 1024,
|
|
52
|
+
d = b || 2,
|
|
53
|
+
e = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'],
|
|
54
|
+
f = Math.floor(Math.log(a) / Math.log(c));
|
|
55
|
+
return parseFloat((a / Math.pow(c, f)).toFixed(d)) + ' ' + e[f];
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export function viteBuildInfo() {
|
|
59
|
+
let config: { command: string };
|
|
60
|
+
let startTime: Dayjs;
|
|
61
|
+
let endTime: Dayjs;
|
|
62
|
+
let totalTime: string;
|
|
63
|
+
return {
|
|
64
|
+
name: 'vite:buildInfo',
|
|
65
|
+
configResolved(resolvedConfig: { command: string }) {
|
|
66
|
+
config = resolvedConfig;
|
|
67
|
+
},
|
|
68
|
+
buildStart() {
|
|
69
|
+
if (config.command === 'build') {
|
|
70
|
+
startTime = dayjs(new Date());
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
closeBundle() {
|
|
74
|
+
if (config.command === 'build') {
|
|
75
|
+
endTime = dayjs(new Date());
|
|
76
|
+
totalTime = dayjs.duration(endTime.diff(startTime)).format('mm分ss秒');
|
|
77
|
+
recursiveDirectory(staticPath, () => {
|
|
78
|
+
console.log(
|
|
79
|
+
boxen(
|
|
80
|
+
gradientString('cyan', 'magenta').multiline(
|
|
81
|
+
`🎉 恭喜打包完成(总用时${totalTime},打包后的大小为${formatBytes(xutils.sum(fileListTotal))})`
|
|
82
|
+
),
|
|
83
|
+
boxenOprions
|
|
84
|
+
)
|
|
85
|
+
);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
}
|
package/build/plugins.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: wei.li
|
|
3
|
+
* @Date: 2022-05-26 10:25:57
|
|
4
|
+
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
+
* @LastEditTime: 2025-04-16 15:10:58
|
|
6
|
+
* @Description: file content
|
|
7
|
+
*/
|
|
8
|
+
import vue from '@vitejs/plugin-vue';
|
|
9
|
+
import { viteBuildInfo } from './';
|
|
10
|
+
import svgLoader from 'vite-svg-loader';
|
|
11
|
+
import vueJsx from '@vitejs/plugin-vue-jsx';
|
|
12
|
+
import tailwindcss from '@tailwindcss/vite';
|
|
13
|
+
|
|
14
|
+
export function getPluginsList() {
|
|
15
|
+
return [
|
|
16
|
+
tailwindcss(),
|
|
17
|
+
vue(),
|
|
18
|
+
// jsx、tsx语法支持
|
|
19
|
+
vueJsx(),
|
|
20
|
+
// 线上环境删除console
|
|
21
|
+
viteBuildInfo(),
|
|
22
|
+
// 自定义主题
|
|
23
|
+
// svg组件化支持
|
|
24
|
+
svgLoader()
|
|
25
|
+
];
|
|
26
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { createElementBlock as l, openBlock as a, createStaticVNode as m, defineComponent as r, resolveComponent as F, resolveDirective as n, createVNode as f, createElementVNode as M, unref as B, withDirectives as h, createTextVNode as e, createBlock as u, withCtx as k } from "vue";
|
|
2
|
+
import { c as y, u as v, H as C } from "./index-BKIw8tSn.js";
|
|
3
|
+
const E = {
|
|
4
|
+
width: "251",
|
|
5
|
+
height: "294"
|
|
6
|
+
};
|
|
7
|
+
function _(c, s) {
|
|
8
|
+
return a(), l("svg", E, s[0] || (s[0] = [
|
|
9
|
+
m('<g fill="none"><path fill="#E4EBF7" d="M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023"></path><path fill="#FFF" d="M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65"></path><path stroke="#FFF" d="m38.652 136.36 10.425 5.91m.912 6.235-12.58 10.73"></path><path fill="#FFF" d="M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13m17.618-16.019a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126m11.344 18.238 29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126"></path><path fill="#FFF" d="M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122m71.339 108.221c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873s5.418-9.432 10.873-8.882 9.432 5.418 8.882 10.873"></path><path stroke="#FFF" d="m180.17 143.772 12.572 7.129m1.099 7.519-15.171 12.94"></path><path fill="#FFF" d="M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363m18.571-16.641a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375"></path><path stroke="#FFF" d="M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zm72.943-75.857a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zm-8.841 34.834a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zm-39.25-43.209a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zm18.274-15.388a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zm6.73 88.069a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z"></path><path stroke="#FFF" d="m215.125 155.262-1.902 20.075-10.87 5.958m-27.752-4.659-6.322 9.761H156.98l-4.484 6.449m23.378-65.566v-15.72m45.636 7.844-12.77 7.859-15.228-7.86V96.668"></path><path fill="#A26EF4" d="M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322s-29.32-13.128-29.32-29.321"></path><path fill="#FFF" d="m221.45 41.706-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734"></path><path fill="#FFF" d="M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64s-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64s4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.88 6.88 0 0 0-6.837-6.917m-43.01 53.249h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717"></path><path fill="#5BA02E" d="M168.214 248.838a6.61 6.61 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.61 6.61 0 0 1-6.61 6.61"></path><path fill="#92C110" d="M176.147 248.176a6.61 6.61 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.61 6.61 0 0 1-6.61 6.611"></path><path fill="#F2D7AD" d="M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17"></path><path fill="#FFF" d="M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085"></path><path fill="#FFC6A0" d="m75.768 73.325-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233"></path><path fill="#FFB594" d="M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76m89.422 2.442s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367"></path><path fill="#FFC6A0" d="m76.166 66.36 3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95"></path><path fill="#FFF" d="M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zm63.688.71s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929"></path><path stroke="#E4EBF7" d="M78.18 94.656s.911 7.41-4.914 13.078M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437"></path><path fill="#FFC6A0" d="m117.184 68.639-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165s.848 1.143-2.083.446c-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955z"></path><path fill="#FFB594" d="m105.282 91.315-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91"></path><path fill="#5C2552" d="M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103"></path><path fill="#FFC6A0" d="M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145"></path><path stroke="#DB836E" d="m100.843 77.099 1.701-.928-1.015-4.324.674-1.406"></path><path fill="#552950" d="M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32m-7.954.257c-.022.713-.452 1.278-.961 1.263s-.904-.607-.882-1.32.452-1.279.961-1.263c.51.016.904.606.882 1.32"></path><path stroke="#DB836E" d="M91.132 86.786s5.269 4.957 12.679 2.327"></path><path fill="#DB836E" d="M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25"></path><path stroke="#5C2552" d="M102.88 70.6s2.483.84 3.402.715m-12.399.66s2.492-1.144 4.778-1.073"></path><path stroke="#DB836E" d="M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809m11.795 2.43s1.911.151 2.509-.254"></path><path stroke="#E4EBF7" d="m87.782 115.821 15.73-3.012m-3.347 3.012 10.04-2.008M66.508 86.763s-1.598 8.83-6.697 14.078M128.31 87.934s3.013 4.121 4.06 11.785"></path><path stroke="#DB836E" d="M64.09 84.816s-6.03 9.912-13.607 9.903"></path><path fill="#FFC6A0" d="m112.366 65.909-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73"></path><path stroke="#DB836E" d="M130.532 85.488s4.588 5.757 11.619 6.214"></path><path stroke="#E4EBF7" d="M121.708 105.73s-.393 8.564-1.34 13.612"></path><path stroke="#648BD8" d="M115.784 161.512s-3.57-1.488-2.678-7.14"></path><path fill="#CBD1D1" d="M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68"></path><path fill="#2B0849" d="M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039s10.802-.07 11.91-.9c.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z"></path><path fill="#A4AABA" d="M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62"></path><path fill="#CBD1D1" d="M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296z"></path><path fill="#2B0849" d="M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078"></path><path fill="#A4AABA" d="M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15"></path><path fill="#7BB2F9" d="m100.885 277.015 13.306.092s1.291-54.228 1.843-64.056 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954"></path><path stroke="#648BD8" d="M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91m23.196 8.407s2.758-1.103 6.069-3.862M108.459 220.905s2.759-1.104 6.07-3.863M76.099 223.557s2.608-.587 6.47-3.346m4.761-69.391c-.27 3.088.297 8.478-4.315 9.073m21.814-10.818s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934m.446-16.362s.035 12.81-1.19 24.245m-4.894 1.09s7.174-1.655 9.38-1.655m-28.639 31.444c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423m18.714-77.445a313 313 0 0 1-.877 4.729m7.742-50.058-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238"></path><path fill="#192064" d="M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017"></path><path fill="#FFF" d="m107.511 150.353.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a141 141 0 0 1 7.688.017.81.81 0 0 0 .837-.806"></path><path fill="#192064" d="m106.402 149.426.002-3.06a.64.64 0 0 0-.616-.643 94 94 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012a.644.644 0 0 0 .662-.64"></path><path stroke="#648BD8" d="M101.485 273.933h12.272m-11.105-4.858c.006 3.368.04 5.759.11 6.47m-.095-12.42c-.009 1.53-.015 2.98-.016 4.313m-.447-93.414.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956"></path></g>', 1)
|
|
10
|
+
]));
|
|
11
|
+
}
|
|
12
|
+
const A = { render: _ }, D = {
|
|
13
|
+
style: { width: "100%", height: "100%" },
|
|
14
|
+
class: "flex justify-center items-center bg-[#fff]"
|
|
15
|
+
}, z = { class: "ml-12" }, x = {
|
|
16
|
+
class: "font-medium text-4xl mb-4 dark:text-white",
|
|
17
|
+
initial: { opacity: 0, y: 100 },
|
|
18
|
+
enter: { opacity: 1, y: 0, transition: { delay: 100 } }
|
|
19
|
+
}, g = {
|
|
20
|
+
class: "mb-4 text-gray-500",
|
|
21
|
+
initial: { opacity: 0, y: 100 },
|
|
22
|
+
enter: { opacity: 1, y: 0, transition: { delay: 300 } }
|
|
23
|
+
}, N = /* @__PURE__ */ r({
|
|
24
|
+
__name: "403",
|
|
25
|
+
setup(c) {
|
|
26
|
+
const s = y(), i = v(), o = () => {
|
|
27
|
+
C(i, !1), s.push("/");
|
|
28
|
+
};
|
|
29
|
+
return (V, t) => {
|
|
30
|
+
const d = F("el-button"), p = n("motion");
|
|
31
|
+
return a(), l("div", D, [
|
|
32
|
+
f(B(A)),
|
|
33
|
+
M("div", z, [
|
|
34
|
+
h((a(), l("p", x, t[0] || (t[0] = [
|
|
35
|
+
e(" 403 ")
|
|
36
|
+
]))), [
|
|
37
|
+
[p]
|
|
38
|
+
]),
|
|
39
|
+
h((a(), l("p", g, t[1] || (t[1] = [
|
|
40
|
+
e(" 抱歉,你无权访问该页面 ")
|
|
41
|
+
]))), [
|
|
42
|
+
[p]
|
|
43
|
+
]),
|
|
44
|
+
h((a(), u(d, {
|
|
45
|
+
initial: { opacity: 0, y: 100 },
|
|
46
|
+
enter: { opacity: 1, y: 0, transition: { delay: 500 } },
|
|
47
|
+
type: "primary",
|
|
48
|
+
onClick: o
|
|
49
|
+
}, {
|
|
50
|
+
default: k(() => t[2] || (t[2] = [
|
|
51
|
+
e("返回首页")
|
|
52
|
+
])),
|
|
53
|
+
_: 1
|
|
54
|
+
})), [
|
|
55
|
+
[p]
|
|
56
|
+
])
|
|
57
|
+
])
|
|
58
|
+
]);
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
export {
|
|
63
|
+
N as default
|
|
64
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { createElementBlock as s, openBlock as a, createStaticVNode as m, defineComponent as r, resolveComponent as n, resolveDirective as F, createVNode as f, createElementVNode as M, unref as v, withDirectives as p, createTextVNode as e, createBlock as B, withCtx as D } from "vue";
|
|
2
|
+
import { c as u, u as k, H as C } from "./index-BKIw8tSn.js";
|
|
3
|
+
const y = {
|
|
4
|
+
width: "252",
|
|
5
|
+
height: "294"
|
|
6
|
+
};
|
|
7
|
+
function E(c, h) {
|
|
8
|
+
return a(), s("svg", y, h[0] || (h[0] = [
|
|
9
|
+
m('<g fill="none"><path fill="#E4EBF7" d="M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321" mask="url(#b)" transform="translate(0 .012)"></path><path fill="#FFF" d="M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66"></path><path stroke="#FFF" d="m36.975 134.297 10.482 5.943m.916 6.268-12.648 10.788"></path><path fill="#FFF" d="M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136m17.713-16.105a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145m41.43-116.372 29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176m11.406 18.336 29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175"></path><path fill="#FFF" d="M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172m71.725 108.807c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93s9.483 5.447 8.93 10.932"></path><path stroke="#FFF" d="m179.26 141.75 12.64 7.167m1.106 7.56-15.255 13.011"></path><path fill="#FFF" d="M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372m18.672-16.732a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382"></path><path stroke="#FFF" d="M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zm73.339-76.268a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zm-8.89 35.024a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zm-39.463-43.444a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zm18.374-15.471a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zm6.767 88.546a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z"></path><path stroke="#FFF" d="m214.404 153.302-1.912 20.184-10.928 5.99m-27.903-4.684-6.356 9.814h-11.36l-4.508 6.484m23.504-65.922v-15.804m45.883 7.886-12.84 7.901-15.31-7.902V94.39"></path><path fill="#FFF" d="M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742"></path><path fill="#1890FF" d="M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48s-13.2 29.48-29.48 29.48c-16.282 0-29.48-13.2-29.48-29.48"></path><path fill="#FFF" d="M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964a2.9 2.9 0 0 1-2 .75c-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928q.75-.75 1.93-.75c.785 0 1.462.25 1.999.75m4.285-19.463q2.143 1.874 2.143 5.142c0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.1 5.1 0 0 0-1.428 1.75 5.2 5.2 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43q-.553.75-.76 1.904a2 2 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894"></path><path fill="#FFB594" d="M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88"></path><path fill="#FFC6A0" d="m90.483 67.504-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132s-2.412 3.624-2.412 3.624"></path><path fill="#FFF" d="M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682"></path><path fill="#CBD1D1" d="M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178s6.874 1.1 11.686-1.26c-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573"></path><path fill="#2B0849" d="M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286z"></path><path fill="#A4AABA" d="M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558"></path><path fill="#CBD1D1" d="M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199z"></path><path fill="#2B0849" d="M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062"></path><path fill="#A4AABA" d="M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252s-4.903-2.119-5.624.15"></path><path fill="#7BB2F9" d="m99.66 278.514 13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165"></path><path stroke="#648BD8" d="M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935m23.32 8.451s2.774-1.11 6.103-3.883M107.275 222.1s2.773-1.11 6.102-3.884M74.74 224.767s2.622-.591 6.505-3.365m4.785-69.768c-.27 3.106.3 8.525-4.336 9.123m21.931-10.877s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944m.448-16.451s.035 12.88-1.196 24.377m-4.921 1.096s7.212-1.664 9.431-1.664M74.31 205.861a212 212 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776-.947 2.045-4.985 15.355c-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12m14.931-60.462a321 321 0 0 1-.882 4.754m7.784-50.328L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31"></path><path fill="#192064" d="M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038"></path><path fill="#FFF" d="m106.322 151.165.003-4.911a.81.81 0 0 0-.778-.815 110 110 0 0 0-7.836-.014.82.82 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81"></path><path fill="#192064" d="m105.207 150.233.002-3.076a.64.64 0 0 0-.619-.646 94 94 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121 121 0 0 1 5.794.011c.362.01.665-.28.665-.642"></path><path stroke="#648BD8" d="M100.263 275.415h12.338m-11.165-4.885c.006 3.387.042 5.79.111 6.506m-.096-12.488a916 916 0 0 0-.015 4.337m-.45-93.92.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243s.897 1.122 0 3.365c-.596 1.489-.994 21.1-1.096 35.146"></path><path fill="#FFC6A0" d="M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801m57.584 7.63.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.32.32 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.33.33 0 0 0 .264-.268"></path><path fill="#FFC6A0" d="M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456"></path><path fill="#520038" d="M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15z"></path><path fill="#552950" d="M104.977 76.064c-.103.61-.582 1.038-1.07.956s-.801-.644-.698-1.254.582-1.038 1.07-.956.8.644.698 1.254m7.155 1.63c-.103.61-.582 1.038-1.07.956s-.8-.644-.698-1.254.582-1.038 1.07-.956.8.643.698 1.254"></path><path stroke="#DB836E" d="m110.13 74.84-.896 1.61-.298 4.357h-2.228"></path><path stroke="#5C2552" d="M110.846 74.481s1.79-.716 2.506.537"></path><path stroke="#DB836E" d="M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67"></path><path stroke="#5C2552" d="M103.287 72.93s1.83 1.113 4.137.954"></path><path stroke="#DB836E" d="M103.685 81.762s2.227 1.193 4.376 1.193m-3.421 1.353s.954.398 1.511.318m-11.458-3.421s2.308 7.4 10.424 7.639"></path><path stroke="#E4EBF7" d="M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206M129.405 122.865s-5.272 7.403-9.422 10.768M119.306 107.329s.452 4.366-2.127 32.062"></path><path fill="#F2D7AD" d="M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01"></path><path fill="#F4D19D" d="M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92"></path><path fill="#F2D7AD" d="M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092z"></path><path fill="#CC9B6E" d="M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"></path><path fill="#F4D19D" d="M158.298 127.896h-18.669a2.07 2.07 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83"></path><path fill="#CC9B6E" d="M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zm-27.293 22.206-.032-8.177.519-.002.032 8.177z"></path><path fill="#CC9B6E" d="m130.511 139.783-.08-21.414.519-.002.08 21.414zm-18.635 1.149-.498-.143 1.479-5.167.498.143zm-3.439.128-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zm8.17 0-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"></path><path fill="#FFC6A0" d="m154.316 131.892-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238"></path><path stroke="#DB836E" d="M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044"></path><path stroke="#DB836E" d="M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617"></path><path stroke="#DB836E" d="M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402m.504 2.692s-1.103 3.16 5.44 3.533m-.352-14.469v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754"></path><path fill="#5BA02E" d="M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647"></path><path fill="#92C110" d="M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647"></path><path fill="#F2D7AD" d="M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187"></path><path stroke="#E4EBF7" d="M88.979 89.48s7.776 5.384 16.6 2.842"></path></g>', 1)
|
|
10
|
+
]));
|
|
11
|
+
}
|
|
12
|
+
const _ = { render: E }, z = {
|
|
13
|
+
style: { width: "100%", height: "100%" },
|
|
14
|
+
class: "flex justify-center items-center bg-[#fff]"
|
|
15
|
+
}, A = { class: "ml-12" }, x = {
|
|
16
|
+
class: "font-medium text-4xl mb-4 dark:text-white",
|
|
17
|
+
initial: { opacity: 0, y: 100 },
|
|
18
|
+
enter: { opacity: 1, y: 0, transition: { delay: 100 } }
|
|
19
|
+
}, g = {
|
|
20
|
+
class: "mb-4 text-gray-500",
|
|
21
|
+
initial: { opacity: 0, y: 100 },
|
|
22
|
+
enter: { opacity: 1, y: 0, transition: { delay: 300 } }
|
|
23
|
+
}, V = /* @__PURE__ */ r({
|
|
24
|
+
__name: "404",
|
|
25
|
+
setup(c) {
|
|
26
|
+
const h = u(), i = k(), o = () => {
|
|
27
|
+
C(i, !1), h.push("/");
|
|
28
|
+
};
|
|
29
|
+
return (b, t) => {
|
|
30
|
+
const d = n("el-button"), l = F("motion");
|
|
31
|
+
return a(), s("div", z, [
|
|
32
|
+
f(v(_)),
|
|
33
|
+
M("div", A, [
|
|
34
|
+
p((a(), s("p", x, t[0] || (t[0] = [
|
|
35
|
+
e(" 404 ")
|
|
36
|
+
]))), [
|
|
37
|
+
[l]
|
|
38
|
+
]),
|
|
39
|
+
p((a(), s("p", g, t[1] || (t[1] = [
|
|
40
|
+
e(" 抱歉,你访问的页面不存在 ")
|
|
41
|
+
]))), [
|
|
42
|
+
[l]
|
|
43
|
+
]),
|
|
44
|
+
p((a(), B(d, {
|
|
45
|
+
initial: { opacity: 0, y: 100 },
|
|
46
|
+
enter: { opacity: 1, y: 0, transition: { delay: 500 } },
|
|
47
|
+
type: "primary",
|
|
48
|
+
onClick: o
|
|
49
|
+
}, {
|
|
50
|
+
default: D(() => t[2] || (t[2] = [
|
|
51
|
+
e("返回首页")
|
|
52
|
+
])),
|
|
53
|
+
_: 1
|
|
54
|
+
})), [
|
|
55
|
+
[l]
|
|
56
|
+
])
|
|
57
|
+
])
|
|
58
|
+
]);
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
export {
|
|
63
|
+
V as default
|
|
64
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { createElementBlock as s, openBlock as a, createStaticVNode as o, defineComponent as r, resolveComponent as F, resolveDirective as n, createVNode as f, createElementVNode as M, unref as k, withDirectives as p, createTextVNode as e, createBlock as u, withCtx as v } from "vue";
|
|
2
|
+
import { c as B, u as C, H as D } from "./index-BKIw8tSn.js";
|
|
3
|
+
const y = {
|
|
4
|
+
width: "254",
|
|
5
|
+
height: "294"
|
|
6
|
+
};
|
|
7
|
+
function A(c, h) {
|
|
8
|
+
return a(), s("svg", y, h[0] || (h[0] = [
|
|
9
|
+
o('<g fill="none"><path fill="#E4EBF7" d="M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134" mask="url(#b)" transform="translate(0 .067)"></path><path fill="#FFF" d="M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671"></path><path stroke="#FFF" d="m37.19 135.59 10.553 5.983m.922 6.311-12.734 10.861"></path><path fill="#FFF" d="M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238m11.484 18.462 30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238"></path><path fill="#FFF" d="M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234m36.638 42.67h-3.979a4.79 4.79 0 0 1-4.774-4.775 4.79 4.79 0 0 1 4.774-4.774h3.979a4.79 4.79 0 0 1 4.775 4.774 4.79 4.79 0 0 1-4.775 4.775"></path><path fill="#FF603B" d="M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68s29.68 13.288 29.68 29.68c0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68"></path><path fill="#FFF" d="m203.557 19.435-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378q.77.715.77 1.87c0 1.155-.257 1.393-.77 1.907-.55.476-1.21.733-1.943.733a2.55 2.55 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733"></path><path fill="#FFB594" d="M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487"></path><path fill="#FFF" d="M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235"></path><path fill="#FFB594" d="m94.008 90.5 1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246"></path><path fill="#FFC6A0" d="M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508"></path><path fill="#520038" d="M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156z"></path><path fill="#552950" d="M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961s.805.647.702 1.26m-6.96-1.439c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26"></path><path stroke="#DB836E" d="m99.206 73.644-.9 1.62-.3 4.38h-2.24"></path><path stroke="#5C2552" d="M99.926 73.284s1.8-.72 2.52.54"></path><path stroke="#DB836E" d="M81.367 73.084s.48-1.12 1.12-.72 1.28 1.44.56 2 .16 1.68.16 1.68"></path><path stroke="#5C2552" d="M92.326 71.724s1.84 1.12 4.16.96"></path><path stroke="#DB836E" d="M92.726 80.604s2.24 1.2 4.4 1.2m-3.44 1.36s.96.4 1.52.32m-11.519-3.44s1.786 6.547 9.262 7.954"></path><path stroke="#E4EBF7" d="M95.548 91.663s-1.068 2.821-8.298 2.105-10.29-5.044-10.29-5.044"></path><path fill="#FFF" d="M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583"></path><path fill="#FFC6A0" d="M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75"></path><path fill="#FFC6A0" d="M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713"></path><path stroke="#E4EBF7" d="M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51"></path><path fill="#FFC6A0" d="M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16"></path><path fill="#FFF" d="M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575"></path><path fill="#CBD1D1" d="M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47"></path><path fill="#2B0849" d="M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31z"></path><path fill="#A4AABA" d="M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671"></path><path fill="#CBD1D1" d="M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836z"></path><path fill="#2B0849" d="M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162"></path><path fill="#A4AABA" d="M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602s-5.14-2.222-5.896.156"></path><path fill="#7BB2F9" d="m89.476 277.57 13.899.095s1.349-56.643 1.925-66.909 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69"></path><path stroke="#648BD8" d="M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127m24.229 8.78s2.881-1.152 6.34-4.034M96.973 219.373s2.882-1.153 6.34-4.034M63.172 222.144s2.724-.614 6.759-3.496m4.972-72.482c-.281 3.226.31 8.856-4.506 9.478m22.785-11.3s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02m.466-17.091s.269 13.144-1.01 25.088m-4.662.699s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538m1.803-11.294-.815 4.157m16.603-64.943c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923s-.31 3.424-4.505 17.252c-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8m15.982-67.058c-.295 1.658-.6 3.31-.917 4.938m8.089-52.287-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615m-19.943 82.118H58.07"></path><path fill="#192064" d="M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56a41 41 0 0 0 .17-3.029.616.616 0 0 0-.52-.62"></path><path fill="#FFF" d="m96.398 145.264.003-5.102a.843.843 0 0 0-.809-.847 114 114 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.85.85 0 0 0 .876-.843"></path><path fill="#192064" d="m95.239 144.296.002-3.195a.667.667 0 0 0-.643-.672 99 99 0 0 0-6.094-.01.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668"></path><path stroke="#648BD8" d="M90.102 273.522h12.819m-11.705-3.761c.006 3.519-.072 5.55 0 6.292m-.293-12.579c-.009 1.599-.016 2.558-.016 4.505m-.467-97.575.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513"></path><path stroke="#E4EBF7" d="m73.736 98.665 2.214 4.312s2.098.816 1.865 2.68l.816 2.214m-14.334 8.74c.233-.932 2.176-7.147 12.585-10.488m.716-16.081s7.691 6.137 16.547 2.72"></path><path fill="#FFC6A0" d="M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69"></path><path stroke="#DB836E" d="M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593"></path><path stroke="#E59788" d="M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762"></path><path fill="#FFC6A0" d="M87.72 124.768s-2.098-1.942-5.127-2.719-3.574-.155-5.516.078-3.885-.932-3.652.7c.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554s-.466-5.594-.466-5.594"></path><path stroke="#E59788" d="M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272m2.331 2.175s3.826.097 4.933-.718m-2.369 2.194s1.961.136 3.36-.505m-1.108 1.671s1.748.019 2.914-.505m-6.818-9.09s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127m-27.501-15.149s-8.39 2.758-13.168 12.12"></path><path stroke="#E4EBF7" d="M109.278 112.533s3.38-3.613 7.575-4.662"></path><path stroke="#E59788" d="M107.375 123.006s9.697-2.745 11.445-.88"></path><path stroke="#BFCDDD" d="m194.605 83.656 3.971-3.886m-11.41 11.163 3.736-3.655m.85-3.071-4.462-4.56m11.163 11.41-4.133-4.225m-65.064 76.242 3.718-3.718m-10.683 10.683 3.498-3.498m.772-2.915-4.27-4.27m10.684 10.683-3.955-3.955"></path><path fill="#A3B4C6" d="M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01"></path><path fill="#A3B4C6" d="M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813"></path><path fill="#A3B4C6" d="M154.098 190.096h70.513v-84.617h-70.513z" mask="url(#d)"></path><path fill="#BFCDDD" d="M224.928 190.096H153.78a3.22 3.22 0 0 1-3.208-3.209V167.92a3.22 3.22 0 0 1 3.208-3.21h71.148a3.22 3.22 0 0 1 3.209 3.21v18.967a3.22 3.22 0 0 1-3.21 3.209m.001-59.264H153.78a3.22 3.22 0 0 1-3.208-3.208v-18.968a3.22 3.22 0 0 1 3.208-3.209h71.148a3.22 3.22 0 0 1 3.209 3.21v18.967a3.22 3.22 0 0 1-3.21 3.208" mask="url(#d)"></path><path fill="#FFF" d="M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813m7.417 0a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813m7.417 0a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813m48.142 0h-22.461a.8.8 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802" mask="url(#d)"></path><path fill="#BFCDDD" d="M224.928 160.464H153.78a3.22 3.22 0 0 1-3.208-3.209v-18.967a3.22 3.22 0 0 1 3.208-3.209h71.148a3.22 3.22 0 0 1 3.209 3.209v18.967a3.22 3.22 0 0 1-3.21 3.209" mask="url(#d)"></path><path stroke="#7C90A5" d="M173.455 130.832h49.301m-57.772 0h6.089m-15.121 0h6.75m11.135 29.781h49.3m-57.772 0h6.089m-15.884 0h6.751" mask="url(#d)"></path><path fill="#FFF" d="M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814m7.417 0a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814m7.417 0a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814m48.141 0h-22.461a.8.8 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802m-62.976 28.949a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813m7.417 0a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813m7.417 0a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813m48.142 0h-22.461a.8.8 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802" mask="url(#d)"></path><path fill="#BFCDDD" d="M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407" mask="url(#d)"></path><path stroke="#A3B4C6" d="M177.259 207.217v11.52m23.791-11.52v11.52" mask="url(#d)"></path><path fill="#5BA02E" d="M162.873 267.894a9.42 9.42 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422" mask="url(#d)"></path><path fill="#92C110" d="M171.22 267.83a9.42 9.42 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423" mask="url(#d)"></path><path fill="#F2D7AD" d="M181.31 293.666h-27.712a3.21 3.21 0 0 1-3.209-3.21V269.79a3.21 3.21 0 0 1 3.209-3.21h27.711a3.21 3.21 0 0 1 3.209 3.21v20.668a3.21 3.21 0 0 1-3.209 3.209" mask="url(#d)"></path></g>', 1)
|
|
10
|
+
]));
|
|
11
|
+
}
|
|
12
|
+
const E = { render: A }, _ = {
|
|
13
|
+
style: { width: "100%", height: "100%" },
|
|
14
|
+
class: "flex justify-center items-center bg-[#fff]"
|
|
15
|
+
}, x = { class: "ml-12" }, g = {
|
|
16
|
+
class: "font-medium text-4xl mb-4 dark:text-white",
|
|
17
|
+
initial: { opacity: 0, y: 100 },
|
|
18
|
+
enter: { opacity: 1, y: 0, transition: { delay: 100 } }
|
|
19
|
+
}, V = {
|
|
20
|
+
class: "mb-4 text-gray-500",
|
|
21
|
+
initial: { opacity: 0, y: 100 },
|
|
22
|
+
enter: { opacity: 1, y: 0, transition: { delay: 300 } }
|
|
23
|
+
}, z = /* @__PURE__ */ r({
|
|
24
|
+
__name: "500",
|
|
25
|
+
setup(c) {
|
|
26
|
+
const h = B(), i = C(), d = () => {
|
|
27
|
+
D(i, !1), h.push("/");
|
|
28
|
+
};
|
|
29
|
+
return (H, t) => {
|
|
30
|
+
const m = F("el-button"), l = n("motion");
|
|
31
|
+
return a(), s("div", _, [
|
|
32
|
+
f(k(E)),
|
|
33
|
+
M("div", x, [
|
|
34
|
+
p((a(), s("p", g, t[0] || (t[0] = [
|
|
35
|
+
e(" 500 ")
|
|
36
|
+
]))), [
|
|
37
|
+
[l]
|
|
38
|
+
]),
|
|
39
|
+
p((a(), s("p", V, t[1] || (t[1] = [
|
|
40
|
+
e(" 抱歉,服务器出错了 ")
|
|
41
|
+
]))), [
|
|
42
|
+
[l]
|
|
43
|
+
]),
|
|
44
|
+
p((a(), u(m, {
|
|
45
|
+
initial: { opacity: 0, y: 100 },
|
|
46
|
+
enter: { opacity: 1, y: 0, transition: { delay: 500 } },
|
|
47
|
+
type: "primary",
|
|
48
|
+
size: "large",
|
|
49
|
+
style: { width: "150px", "font-size": "20px" },
|
|
50
|
+
onClick: d
|
|
51
|
+
}, {
|
|
52
|
+
default: v(() => t[2] || (t[2] = [
|
|
53
|
+
e("返回首页")
|
|
54
|
+
])),
|
|
55
|
+
_: 1
|
|
56
|
+
})), [
|
|
57
|
+
[l]
|
|
58
|
+
])
|
|
59
|
+
])
|
|
60
|
+
]);
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
export {
|
|
65
|
+
z as default
|
|
66
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { defineComponent as N, ref as m, reactive as B, onBeforeMount as M, resolveComponent as n, resolveDirective as A, createElementBlock as f, openBlock as p, createVNode as t, withCtx as h, withDirectives as D, createElementVNode as _ } from "vue";
|
|
2
|
+
import { w as r } from "./index-BKIw8tSn.js";
|
|
3
|
+
import { t as K } from "./await-to-js.es5-BtRbN2QH.js";
|
|
4
|
+
const S = { class: "config" }, E = {
|
|
5
|
+
"element-loading-text": "Loading...",
|
|
6
|
+
style: { position: "relative", height: "80vh" }
|
|
7
|
+
}, I = { style: { height: "85%", overflow: "auto" } }, V = { style: { position: "absolute", width: "100%", height: "15%" } }, $ = /* @__PURE__ */ N({
|
|
8
|
+
__name: "AuthorityInfo",
|
|
9
|
+
props: {
|
|
10
|
+
show: { type: Boolean, default: !1 },
|
|
11
|
+
record: { default: () => ({}) },
|
|
12
|
+
dataStatus: { default: "detail" },
|
|
13
|
+
direction: { default: "rtl" }
|
|
14
|
+
},
|
|
15
|
+
emits: ["onClose"],
|
|
16
|
+
setup(v, { emit: y }) {
|
|
17
|
+
const c = v, d = m(null), o = m(!1), s = B({
|
|
18
|
+
dataList: [],
|
|
19
|
+
defaultCheckedKeys: []
|
|
20
|
+
// 默认权限
|
|
21
|
+
}), g = y, w = async () => {
|
|
22
|
+
const e = await r().get("/uums/menu/listMenuTree", {});
|
|
23
|
+
o.value = !1, s.dataList = e;
|
|
24
|
+
}, k = async () => {
|
|
25
|
+
const e = {
|
|
26
|
+
roleId: c.record.id,
|
|
27
|
+
menuType: "1"
|
|
28
|
+
}, a = await r().get("/uums/role/getRoleMenus", e);
|
|
29
|
+
s.defaultCheckedKeys = a.map((l) => l.id);
|
|
30
|
+
}, C = async () => {
|
|
31
|
+
const { record: e } = c;
|
|
32
|
+
o.value = !0;
|
|
33
|
+
const a = d.value.getCheckedNodes(!1, !0);
|
|
34
|
+
e.sysMenus = a, await K(r().put("/uums/role", [e])), o.value = !1, i();
|
|
35
|
+
};
|
|
36
|
+
function i() {
|
|
37
|
+
g("onClose");
|
|
38
|
+
}
|
|
39
|
+
return M(() => {
|
|
40
|
+
o.value = !0, k(), w();
|
|
41
|
+
}), (e, a) => {
|
|
42
|
+
const l = n("el-tree-v2"), b = n("el-divider"), u = n("ut-button"), x = n("el-row"), L = n("el-drawer"), T = A("spinning");
|
|
43
|
+
return p(), f("div", S, [
|
|
44
|
+
t(L, {
|
|
45
|
+
"model-value": e.show,
|
|
46
|
+
title: e.$t("message.title.authority", { role: e.record.roleName }),
|
|
47
|
+
"before-close": i,
|
|
48
|
+
direction: "rtl",
|
|
49
|
+
"destroy-on-close": "",
|
|
50
|
+
size: "40%"
|
|
51
|
+
}, {
|
|
52
|
+
default: h(() => [
|
|
53
|
+
D((p(), f("div", E, [
|
|
54
|
+
_("div", I, [
|
|
55
|
+
t(l, {
|
|
56
|
+
ref_key: "xTree",
|
|
57
|
+
ref: d,
|
|
58
|
+
data: s.dataList,
|
|
59
|
+
props: { children: "children", label: "menuName" },
|
|
60
|
+
"default-checked-keys": s.defaultCheckedKeys,
|
|
61
|
+
height: 420,
|
|
62
|
+
"show-checkbox": "",
|
|
63
|
+
"node-key": "id"
|
|
64
|
+
}, null, 8, ["data", "default-checked-keys"])
|
|
65
|
+
]),
|
|
66
|
+
_("div", V, [
|
|
67
|
+
t(b, { style: { margin: "16px 0" } }),
|
|
68
|
+
t(x, {
|
|
69
|
+
type: "flex",
|
|
70
|
+
justify: "end",
|
|
71
|
+
style: { "padding-right": "20px" }
|
|
72
|
+
}, {
|
|
73
|
+
default: h(() => [
|
|
74
|
+
t(u, {
|
|
75
|
+
content: "cancel",
|
|
76
|
+
icon: "ri-close-fill",
|
|
77
|
+
status: "warning",
|
|
78
|
+
onTap: i
|
|
79
|
+
}),
|
|
80
|
+
t(u, {
|
|
81
|
+
content: "confirm",
|
|
82
|
+
icon: "ri-save-3-fill",
|
|
83
|
+
status: "u-cyan",
|
|
84
|
+
onTap: C
|
|
85
|
+
})
|
|
86
|
+
]),
|
|
87
|
+
_: 1
|
|
88
|
+
})
|
|
89
|
+
])
|
|
90
|
+
])), [
|
|
91
|
+
[T, o.value]
|
|
92
|
+
])
|
|
93
|
+
]),
|
|
94
|
+
_: 1
|
|
95
|
+
}, 8, ["model-value", "title"])
|
|
96
|
+
]);
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
export {
|
|
101
|
+
$ as _
|
|
102
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { defineComponent as h, watch as _, ref as v, createVNode as d, resolveComponent as l, createElementBlock as y, openBlock as g, withCtx as w, createTextVNode as I } from "vue";
|
|
2
|
+
import { useRender as N } from "@utogether/utils";
|
|
3
|
+
const x = {
|
|
4
|
+
class: "u-dict-config_wrapper"
|
|
5
|
+
}, R = /* @__PURE__ */ h({
|
|
6
|
+
__name: "AuthorityPanel",
|
|
7
|
+
props: {
|
|
8
|
+
record: {
|
|
9
|
+
default: () => ({})
|
|
10
|
+
},
|
|
11
|
+
show: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: !1
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
emits: ["onClose"],
|
|
17
|
+
setup(a, {
|
|
18
|
+
emit: u
|
|
19
|
+
}) {
|
|
20
|
+
const s = a;
|
|
21
|
+
_(() => s.show, () => {
|
|
22
|
+
n.value = s.show && c();
|
|
23
|
+
});
|
|
24
|
+
const n = v(""), i = N(), p = [{
|
|
25
|
+
type: "checkbox",
|
|
26
|
+
width: 50,
|
|
27
|
+
align: "center"
|
|
28
|
+
}, {
|
|
29
|
+
field: "menuName",
|
|
30
|
+
title: "message.permissionName",
|
|
31
|
+
required: !0,
|
|
32
|
+
editRender: i.renderInput()
|
|
33
|
+
}, {
|
|
34
|
+
field: "permissionCode",
|
|
35
|
+
required: !0,
|
|
36
|
+
minWidth: 200,
|
|
37
|
+
editRender: i.renderInput(),
|
|
38
|
+
slots: {
|
|
39
|
+
edit: ({
|
|
40
|
+
row: e
|
|
41
|
+
}) => {
|
|
42
|
+
var t;
|
|
43
|
+
const r = {
|
|
44
|
+
prefix: () => d("span", null, [n.value, I(".")])
|
|
45
|
+
};
|
|
46
|
+
return e.dispalyCode = (t = e.permissionCode) == null ? void 0 : t.replace(`${n.value}.`, ""), [d(l("vxe-input"), {
|
|
47
|
+
modelValue: e.dispalyCode,
|
|
48
|
+
"onUpdate:modelValue": (o) => e.dispalyCode = o,
|
|
49
|
+
className: "ut-slot-input",
|
|
50
|
+
onInput: () => m(e)
|
|
51
|
+
}, r)];
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}, {
|
|
55
|
+
field: "enabled",
|
|
56
|
+
title: "message.enabled",
|
|
57
|
+
width: 90,
|
|
58
|
+
editRender: i.renderDict({
|
|
59
|
+
code: "SU.ENABLE",
|
|
60
|
+
defaultValue: "1"
|
|
61
|
+
}),
|
|
62
|
+
formatter: ["formatDict", "SU.ENABLE"]
|
|
63
|
+
}], c = () => {
|
|
64
|
+
const {
|
|
65
|
+
record: e
|
|
66
|
+
} = s, {
|
|
67
|
+
id: r,
|
|
68
|
+
parentId: t,
|
|
69
|
+
hasChildren: o
|
|
70
|
+
} = e;
|
|
71
|
+
return !r && !t ? "su" : (o && (e.dispalyCode = ""), e.permissionCode);
|
|
72
|
+
}, m = (e) => {
|
|
73
|
+
e.permissionCode = `${n.value}.${e.dispalyCode}`;
|
|
74
|
+
}, f = u;
|
|
75
|
+
function C() {
|
|
76
|
+
f("onClose");
|
|
77
|
+
}
|
|
78
|
+
return (e, r) => {
|
|
79
|
+
const t = l("ut-grid"), o = l("el-drawer");
|
|
80
|
+
return g(), y("div", x, [d(o, {
|
|
81
|
+
"model-value": e.show,
|
|
82
|
+
"before-close": C,
|
|
83
|
+
title: "权限明细",
|
|
84
|
+
direction: "rtl",
|
|
85
|
+
"destroy-on-close": "",
|
|
86
|
+
size: "66%"
|
|
87
|
+
}, {
|
|
88
|
+
default: w(() => [d(t, {
|
|
89
|
+
ref: "SuGridRef",
|
|
90
|
+
columns: p,
|
|
91
|
+
url: "/uums/menu",
|
|
92
|
+
"default-params": {
|
|
93
|
+
parentId: e.record.id
|
|
94
|
+
},
|
|
95
|
+
"default-value": {
|
|
96
|
+
parentId: e.record.id,
|
|
97
|
+
menuType: 1
|
|
98
|
+
}
|
|
99
|
+
}, null, 8, ["default-params", "default-value"])]),
|
|
100
|
+
_: 1
|
|
101
|
+
}, 8, ["model-value"])]);
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
export {
|
|
106
|
+
R as _
|
|
107
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineComponent as r, ref as e, provide as t, createElementBlock as i, openBlock as _, createElementVNode as o, createVNode as n } from "vue";
|
|
2
|
+
import { _ as m } from "./ScrollPanel.vue_vue_type_style_index_0_lang-vMR1fBi0.js";
|
|
3
|
+
import p from "./CompanyPanel-B4MzoqN_.js";
|
|
4
|
+
import { _ as d } from "./index-BKIw8tSn.js";
|
|
5
|
+
const f = { class: "u-content-panel" }, u = { class: "u-left-panel" }, h = { class: "content" }, v = /* @__PURE__ */ r({
|
|
6
|
+
__name: "Company",
|
|
7
|
+
setup(C) {
|
|
8
|
+
const a = e({}), s = e(!1), c = e([]);
|
|
9
|
+
return t("active", a), t("scrollPanelChange", s), t("treeList", c), (l, y) => (_(), i("div", f, [
|
|
10
|
+
o("div", u, [
|
|
11
|
+
n(m, {
|
|
12
|
+
title: l.$t("company"),
|
|
13
|
+
url: "/uums/unit",
|
|
14
|
+
"tree-otions": { children: "children", label: "unitName" }
|
|
15
|
+
}, null, 8, ["title"])
|
|
16
|
+
]),
|
|
17
|
+
o("div", h, [
|
|
18
|
+
n(p)
|
|
19
|
+
])
|
|
20
|
+
]));
|
|
21
|
+
}
|
|
22
|
+
}), x = /* @__PURE__ */ d(v, [["__scopeId", "data-v-a3f1da33"]]);
|
|
23
|
+
export {
|
|
24
|
+
x as default
|
|
25
|
+
};
|