@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
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: wei.li
|
|
3
|
+
* @Date: 2021-11-17 16:02:30
|
|
4
|
+
* @LastEditors: wei.li
|
|
5
|
+
* @LastEditTime: 2024-07-30 09:34:05
|
|
6
|
+
* @Description: file content
|
|
7
|
+
*/
|
|
8
|
+
// 多组件库的国际化和本地项目国际化兼容
|
|
9
|
+
import type { App, WritableComputedRef } from 'vue';
|
|
10
|
+
import { createI18n } from 'vue-i18n';
|
|
11
|
+
import { storageLocal } from '@utogether/utils';
|
|
12
|
+
import { merge } from 'xe-utils';
|
|
13
|
+
import { VxeUI } from 'vxe-table';
|
|
14
|
+
import { responsiveStorageNameSpace } from '../../config';
|
|
15
|
+
import zh from './zh';
|
|
16
|
+
import en from './en';
|
|
17
|
+
import { kMENUEN, kMENUZH } from '../../contant';
|
|
18
|
+
|
|
19
|
+
const files = import.meta.glob('./module/*.ts', { eager: true });
|
|
20
|
+
// console.log('zh-----', zh);
|
|
21
|
+
const modules = {};
|
|
22
|
+
for (const path in files) {
|
|
23
|
+
modules[path.replace(/(\.\/module\/|\.ts)/g, '')] = files[path]['default'];
|
|
24
|
+
}
|
|
25
|
+
const moduleList = Object.keys(modules)
|
|
26
|
+
.filter(mod => modules[mod])
|
|
27
|
+
.map(mod => modules[mod]);
|
|
28
|
+
const messages = {
|
|
29
|
+
zh: {
|
|
30
|
+
...storageLocal.getItem(kMENUZH),
|
|
31
|
+
message: merge(zh, ...moduleList.map(v => v.zh.message))
|
|
32
|
+
},
|
|
33
|
+
en: {
|
|
34
|
+
...storageLocal.getItem(kMENUEN),
|
|
35
|
+
message: Object.assign(en, ...moduleList.map(v => v.en.message))
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
let i18n = null;
|
|
40
|
+
export function useI18n(app: App, lang = { messages: {} }) {
|
|
41
|
+
console.log('message=====', messages);
|
|
42
|
+
i18n = createI18n({
|
|
43
|
+
legacy: false,
|
|
44
|
+
locale: storageLocal.getItem(`${responsiveStorageNameSpace()}locale`)?.locale ?? 'zh',
|
|
45
|
+
fallbackLocale: 'en',
|
|
46
|
+
globalInjection: true,
|
|
47
|
+
messages: merge(messages, lang.messages)
|
|
48
|
+
});
|
|
49
|
+
VxeUI.setLanguage('zh-CN');
|
|
50
|
+
app.use(i18n);
|
|
51
|
+
}
|
|
52
|
+
export const geti18n = () => {
|
|
53
|
+
return i18n;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* 国际化转换工具函数
|
|
57
|
+
* @param message message
|
|
58
|
+
* @param isI18n 如果true,获取对应的消息,否则返回本身
|
|
59
|
+
* @returns message
|
|
60
|
+
*/
|
|
61
|
+
export function transformI18n(message: any = '', isI18n: boolean | unknown = true) {
|
|
62
|
+
if (!message) {
|
|
63
|
+
return '';
|
|
64
|
+
}
|
|
65
|
+
// 处理存储动态路由的title,格式 {zh:"",en:""}
|
|
66
|
+
if (typeof message === 'object') {
|
|
67
|
+
const locale: string | WritableComputedRef<string> | any = i18n.global.locale;
|
|
68
|
+
return message[locale.value];
|
|
69
|
+
}
|
|
70
|
+
if (isI18n) {
|
|
71
|
+
//@ts-ignore
|
|
72
|
+
return i18n.global.t.call(i18n.global, message);
|
|
73
|
+
} else {
|
|
74
|
+
return message;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: wei.li
|
|
3
|
+
* @Date: 2021-12-17 17:26:31
|
|
4
|
+
* @LastEditors: wei.li
|
|
5
|
+
* @LastEditTime: 2024-06-28 10:01:15
|
|
6
|
+
* @Description: file content
|
|
7
|
+
*/
|
|
8
|
+
const reportI18n = {
|
|
9
|
+
zh: {
|
|
10
|
+
message: {
|
|
11
|
+
reportCode: '报表编号',
|
|
12
|
+
tempPath: '模版路径',
|
|
13
|
+
tempFile: '模版文件',
|
|
14
|
+
exportFileType: '文件类型',
|
|
15
|
+
parameterType: '参数类型',
|
|
16
|
+
valueType: '值类型',
|
|
17
|
+
parameterField: '参数字段名',
|
|
18
|
+
parameterName: '参数名称',
|
|
19
|
+
showField: '显示字段',
|
|
20
|
+
valueField: '值字段',
|
|
21
|
+
exportNo: '导出编号',
|
|
22
|
+
moduleName: '模块名称',
|
|
23
|
+
exportResult: '导出结果',
|
|
24
|
+
exportStatus: '导出状态',
|
|
25
|
+
exportMsg: '提示信息',
|
|
26
|
+
fileType: '文件类型',
|
|
27
|
+
exportDate: '完成时间'
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
en: {
|
|
31
|
+
message: {
|
|
32
|
+
tempPath: 'tempPath',
|
|
33
|
+
tempFile: 'tempFile',
|
|
34
|
+
exportFileType: 'exportFileType',
|
|
35
|
+
parameterType: 'parameterType',
|
|
36
|
+
valueType: 'valueType',
|
|
37
|
+
serviceCode: 'serviceCode',
|
|
38
|
+
parameterField: 'parameterField',
|
|
39
|
+
parameterName: 'parameterName',
|
|
40
|
+
showField: 'showField',
|
|
41
|
+
valueField: 'valueField',
|
|
42
|
+
exportNo: 'exportNo',
|
|
43
|
+
moduleName: 'moduleName',
|
|
44
|
+
printPosition: 'Print Position',
|
|
45
|
+
exportResult: 'exportResult',
|
|
46
|
+
exportStatus: 'exportStatus',
|
|
47
|
+
exportMsg: 'exportMsg',
|
|
48
|
+
fileType: 'fileType',
|
|
49
|
+
exportDate: 'Export Date',
|
|
50
|
+
dataSetCode: 'Dataset Code',
|
|
51
|
+
dataSetName: 'Dataset Name',
|
|
52
|
+
dataSetType: 'Dataset Type',
|
|
53
|
+
dataSetUrl: 'Dataset Url',
|
|
54
|
+
defaultValue: 'Default Value',
|
|
55
|
+
isRequired: 'Required'
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
const reporti18n = {
|
|
60
|
+
zh: { ...reportI18n.zh.message },
|
|
61
|
+
en: { ...reportI18n.en.message }
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export default reporti18n;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: wei.li
|
|
3
|
+
* @Date: 2021-12-23 17:33:20
|
|
4
|
+
* @LastEditors: wei.li
|
|
5
|
+
* @LastEditTime: 2024-06-28 11:52:44
|
|
6
|
+
* @Description: file content:
|
|
7
|
+
*/
|
|
8
|
+
const taski18n = {
|
|
9
|
+
zh: {
|
|
10
|
+
message: {
|
|
11
|
+
taskName: '任务名称',
|
|
12
|
+
processInstId: '任务编码',
|
|
13
|
+
taskTitle: '任务标题',
|
|
14
|
+
taskPhase: '流程阶段',
|
|
15
|
+
agreement: '审批意见',
|
|
16
|
+
description: '备注',
|
|
17
|
+
actuatorCode: '执行器编码',
|
|
18
|
+
actuatorName: '执行器名称',
|
|
19
|
+
actuatorType: '注册方式',
|
|
20
|
+
actuatorAddress: '机器地址'
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
en: {
|
|
24
|
+
message: {
|
|
25
|
+
taskName: 'taskName',
|
|
26
|
+
processInstId: 'processInstId',
|
|
27
|
+
taskTitle: 'taskTitle',
|
|
28
|
+
taskPhase: 'taskPhase',
|
|
29
|
+
agreement: 'agreement',
|
|
30
|
+
description: 'description',
|
|
31
|
+
actuatorCode: 'Actuator Code',
|
|
32
|
+
actuatorName: 'Actuator Name',
|
|
33
|
+
actuatorType: 'Actuator Type',
|
|
34
|
+
actuatorAddress: 'Actuator Adress'
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
const definei18n = {
|
|
39
|
+
zh: {
|
|
40
|
+
message: {
|
|
41
|
+
flowId: '流程标识',
|
|
42
|
+
flowName: '流程名称',
|
|
43
|
+
flowCode: '流程编码',
|
|
44
|
+
description: '流程描述',
|
|
45
|
+
flowDesign: '流程设计',
|
|
46
|
+
version: '版本',
|
|
47
|
+
effectDate: '生效日期'
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
en: {
|
|
51
|
+
message: {
|
|
52
|
+
flowId: 'flowId',
|
|
53
|
+
flowName: 'flowName',
|
|
54
|
+
flowCode: 'flowCode',
|
|
55
|
+
description: 'description',
|
|
56
|
+
flowDesign: 'Flow Design'
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
const modules = [taski18n, definei18n];
|
|
61
|
+
|
|
62
|
+
const systemi18n = {
|
|
63
|
+
zh: {
|
|
64
|
+
...Object.assign({}, ...modules.map(v => v.zh.message))
|
|
65
|
+
},
|
|
66
|
+
en: {
|
|
67
|
+
...Object.assign({}, ...modules.map(v => v.en.message))
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export default systemi18n;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: wei.li
|
|
3
|
+
* @Date: 2022-08-11 09:46:09
|
|
4
|
+
* @LastEditors: wei.li
|
|
5
|
+
* @LastEditTime: 2022-08-11 15:01:56
|
|
6
|
+
* @Description: file content
|
|
7
|
+
*/
|
|
8
|
+
export default {
|
|
9
|
+
zh: {
|
|
10
|
+
message: {
|
|
11
|
+
msgtemplateCode: '模板代码',
|
|
12
|
+
msgtemplateName: '模板名称',
|
|
13
|
+
msgTitle: '消息标题',
|
|
14
|
+
msgType: '消息类型',
|
|
15
|
+
language: '语言',
|
|
16
|
+
templateContent: '模板内容',
|
|
17
|
+
msgCode: '消息代码',
|
|
18
|
+
msgName: '消息名称',
|
|
19
|
+
msgService: '消息服务',
|
|
20
|
+
msgServiceName: '消息服务名称'
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
en: {
|
|
24
|
+
message: {
|
|
25
|
+
xx: 'xxx'
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
udp: {
|
|
3
|
+
dark: '深色',
|
|
4
|
+
light: '浅色',
|
|
5
|
+
smart: '灵动',
|
|
6
|
+
card: '卡片',
|
|
7
|
+
theme: '主题色',
|
|
8
|
+
pageStyle: '整体风格',
|
|
9
|
+
navigationMode: '导航模式',
|
|
10
|
+
tagStyle: '页签风格',
|
|
11
|
+
collapse: '折叠',
|
|
12
|
+
expand: '展开',
|
|
13
|
+
login: '登 陆',
|
|
14
|
+
home: '首页',
|
|
15
|
+
logout: '退出系统',
|
|
16
|
+
userName: '账户',
|
|
17
|
+
password: '密码',
|
|
18
|
+
passwordReset: '密码重置',
|
|
19
|
+
oldPwd: '旧密码',
|
|
20
|
+
newPwd: '新密码',
|
|
21
|
+
confirmPwd: '确认密码',
|
|
22
|
+
reload: '重新加载',
|
|
23
|
+
closeCurrentTab: '关闭当前标签页',
|
|
24
|
+
closeLeftTabs: '关闭左侧标签页',
|
|
25
|
+
closeRightTabs: '关闭右侧标签页',
|
|
26
|
+
closeOtherTabs: '关闭其他标签页',
|
|
27
|
+
closeAllTabs: '关闭全部标签页',
|
|
28
|
+
wholeFullScreen: '整体页面全屏',
|
|
29
|
+
wholeExitFullScreen: '整体页面退出全屏',
|
|
30
|
+
contentFullScreen: '内容区全屏',
|
|
31
|
+
contentExitFullScreen: '内容区退出全屏',
|
|
32
|
+
fourZeroFour: '404',
|
|
33
|
+
fourZeroThree: '403',
|
|
34
|
+
five: '500',
|
|
35
|
+
backtop: '回到顶部',
|
|
36
|
+
error: 'Error Page',
|
|
37
|
+
continueAdd: '连续添加',
|
|
38
|
+
menuQuery: '菜单搜索',
|
|
39
|
+
systemTitle: '系统标题',
|
|
40
|
+
systemLogo: 'LOGO',
|
|
41
|
+
systemFavicon: 'favicon',
|
|
42
|
+
homeBackimg: '首页背景',
|
|
43
|
+
baseUrl: '服务路径',
|
|
44
|
+
copyright: '版权信息',
|
|
45
|
+
i18nEnabled: '国际化',
|
|
46
|
+
defaultLanguage: '默认语言',
|
|
47
|
+
roleName: '角色名称',
|
|
48
|
+
roleCode: '角色编码',
|
|
49
|
+
roleDesc: '角色说明',
|
|
50
|
+
loginTime: '登录时间',
|
|
51
|
+
operatingSystem: '操作系统',
|
|
52
|
+
ip: 'ip地址',
|
|
53
|
+
browserVersion: '浏览器版本',
|
|
54
|
+
browser: '浏览器',
|
|
55
|
+
dictCode: '字典编码',
|
|
56
|
+
dictName: '字典名称',
|
|
57
|
+
dictType: '字典类型',
|
|
58
|
+
|
|
59
|
+
ruleCode: '规则代码',
|
|
60
|
+
ruleName: '规则名称',
|
|
61
|
+
fieldType: '段类型',
|
|
62
|
+
fieldValue: '段值',
|
|
63
|
+
dateMask: '日期掩码',
|
|
64
|
+
resetFrequency: '重置频率',
|
|
65
|
+
seqLength: '位数',
|
|
66
|
+
startValue: '开始值',
|
|
67
|
+
currentValue: '当前值',
|
|
68
|
+
haveBeenUsed: '使用中',
|
|
69
|
+
|
|
70
|
+
unitName: '单位名称',
|
|
71
|
+
unitCode: '单位编码',
|
|
72
|
+
unitNote: '单位介绍',
|
|
73
|
+
deleteCompany: '部门存在子级,请先删除子级',
|
|
74
|
+
tip: '温馨提示',
|
|
75
|
+
today: '今天',
|
|
76
|
+
yesterday: '昨天',
|
|
77
|
+
lastWeek: '一周内',
|
|
78
|
+
lastMonth: '1月内',
|
|
79
|
+
threeMonth: '3月内',
|
|
80
|
+
halfYear: '半年内',
|
|
81
|
+
anniversary: '1年内',
|
|
82
|
+
newVersion: '检测到新版本',
|
|
83
|
+
updatenow: '立即更新',
|
|
84
|
+
updateLater: '稍后更新'
|
|
85
|
+
},
|
|
86
|
+
btn: {
|
|
87
|
+
passwordReset: '密码重置',
|
|
88
|
+
add: '新增',
|
|
89
|
+
agree: '同意',
|
|
90
|
+
approve: '审批',
|
|
91
|
+
appupper: '上架',
|
|
92
|
+
applower: '下架',
|
|
93
|
+
auth: '权限',
|
|
94
|
+
back: '返回',
|
|
95
|
+
cancel: '取消',
|
|
96
|
+
completed: '完工',
|
|
97
|
+
close: '关闭',
|
|
98
|
+
toggle: '切换',
|
|
99
|
+
confirm: '确认',
|
|
100
|
+
config: '配置',
|
|
101
|
+
copy: '复制',
|
|
102
|
+
customSize: '自定义纸张',
|
|
103
|
+
detail: '详情',
|
|
104
|
+
directPrint: '直接打印',
|
|
105
|
+
design: '设 计',
|
|
106
|
+
delete: '删除',
|
|
107
|
+
del: '删除',
|
|
108
|
+
download: '下载',
|
|
109
|
+
dispatchUser: '分配用户',
|
|
110
|
+
dispatchAuth: '分配权限',
|
|
111
|
+
FAQ: '常见问题',
|
|
112
|
+
finish: '完成',
|
|
113
|
+
fetch: '查询',
|
|
114
|
+
edit: '编辑',
|
|
115
|
+
export: '导出',
|
|
116
|
+
encode: '编码',
|
|
117
|
+
importJSON: '导入模板数据',
|
|
118
|
+
downloadTemp: '模板下载',
|
|
119
|
+
inv: '库存组织',
|
|
120
|
+
look: '查看',
|
|
121
|
+
lov: '值集',
|
|
122
|
+
inbound: '入库',
|
|
123
|
+
more: '更多',
|
|
124
|
+
outbound: '出库',
|
|
125
|
+
preview: '预览',
|
|
126
|
+
print: '打印',
|
|
127
|
+
paramSet: '参数集',
|
|
128
|
+
reset: '重置',
|
|
129
|
+
resumeTask: '继续',
|
|
130
|
+
role: '角色',
|
|
131
|
+
repaint: '重绘',
|
|
132
|
+
save: '保存',
|
|
133
|
+
scan: '扫码下载',
|
|
134
|
+
stopTask: '停止',
|
|
135
|
+
suspendTask: '暂停',
|
|
136
|
+
search: '搜索',
|
|
137
|
+
sync: '同步',
|
|
138
|
+
submit: '提交',
|
|
139
|
+
taskLog: '任务日志',
|
|
140
|
+
revoke: '撤销',
|
|
141
|
+
reject: '拒绝',
|
|
142
|
+
upload: '上传',
|
|
143
|
+
goback: '返回',
|
|
144
|
+
disabled: '禁用',
|
|
145
|
+
enable: '启用'
|
|
146
|
+
},
|
|
147
|
+
file: {
|
|
148
|
+
templateName: '模版名称',
|
|
149
|
+
templateCode: '模版编码',
|
|
150
|
+
paperType: '纸张类型',
|
|
151
|
+
printPosition: '打印视图',
|
|
152
|
+
buttonCode: '按钮编码',
|
|
153
|
+
resourceCode: '资源编码',
|
|
154
|
+
resourceName: '资源名称',
|
|
155
|
+
resourceUrl: '资源路径',
|
|
156
|
+
fileName: '文件名称',
|
|
157
|
+
fileSize: '文件大小',
|
|
158
|
+
filePath: '文件路径',
|
|
159
|
+
fileExtend: '文件类型',
|
|
160
|
+
textAlign: '对齐方式',
|
|
161
|
+
color: '色彩',
|
|
162
|
+
fillOpacity: '透明度',
|
|
163
|
+
fontSize: '字体大小',
|
|
164
|
+
rotation: '倾斜角度',
|
|
165
|
+
watermarkCode: '水印编码',
|
|
166
|
+
watermarkContent: '水印内容',
|
|
167
|
+
watermarkTrigger: '触发时机',
|
|
168
|
+
watermarkType: '水印类型',
|
|
169
|
+
xAxis: '横坐标',
|
|
170
|
+
yAxis: '纵坐标'
|
|
171
|
+
},
|
|
172
|
+
|
|
173
|
+
operate: '操作',
|
|
174
|
+
emptyData: '暂无数据',
|
|
175
|
+
creationDate: '创建时间',
|
|
176
|
+
createdByName: '创建人',
|
|
177
|
+
creationName: '创建人',
|
|
178
|
+
lastUpdateDate: '更新日期',
|
|
179
|
+
lastUpdatedByName: '更新人',
|
|
180
|
+
sort: '序号',
|
|
181
|
+
seqNo: '序号',
|
|
182
|
+
remark: '备注',
|
|
183
|
+
loading: '加载中...',
|
|
184
|
+
keyword: '关键字',
|
|
185
|
+
required: '请录入',
|
|
186
|
+
isRequired: '必填否',
|
|
187
|
+
|
|
188
|
+
dataSetCode: '数据集编码',
|
|
189
|
+
dataSetName: '数据集名称',
|
|
190
|
+
dataSetType: '数据集类型',
|
|
191
|
+
dataSetUrl: 'URL/服务编码',
|
|
192
|
+
paramCode: '参数编码',
|
|
193
|
+
paramName: '参数名称',
|
|
194
|
+
defaultValue: '默认值',
|
|
195
|
+
|
|
196
|
+
enabled: '启用',
|
|
197
|
+
disabled: '禁用',
|
|
198
|
+
to: '至',
|
|
199
|
+
startDate: '开始日期',
|
|
200
|
+
endDate: '截至日期',
|
|
201
|
+
operateSuccess: '操作成功!',
|
|
202
|
+
operateFailed: '操作失败!',
|
|
203
|
+
selectedRecord: '请至少选择一条记录',
|
|
204
|
+
delRecord: '您确定要删除选择的数据吗?',
|
|
205
|
+
importSuccess: '导入成功!',
|
|
206
|
+
importFailed: '数据导入失败,请往下滚动以便查看错误信息',
|
|
207
|
+
importRecord: '您确定要导入数据吗?',
|
|
208
|
+
importEmpty: '数据列表为空,请先导入数据列表',
|
|
209
|
+
importTip: `1、表格模板的【列标题】不可修改;
|
|
210
|
+
2、单次导入数据数量应小于2000条;
|
|
211
|
+
3、数据字典直接录入字典值表示,能极大的提高表格渲染速度哦。例如: 数据字典【是否】Y/N
|
|
212
|
+
4、导入成功,系统提示【导入成功数量xxx条】其中的数量包括表头行`,
|
|
213
|
+
errorInfo: '异常信息',
|
|
214
|
+
|
|
215
|
+
publish: '发布',
|
|
216
|
+
|
|
217
|
+
menuName: '菜单名称(中文)',
|
|
218
|
+
menuNameEn: '菜单名称(英文)',
|
|
219
|
+
menuType: '菜单类型',
|
|
220
|
+
menuCode: '菜单编码',
|
|
221
|
+
permissionCode: '权限编码',
|
|
222
|
+
permissionName: '权限名称',
|
|
223
|
+
menuPath: '路由',
|
|
224
|
+
frameSrc: '内链URI',
|
|
225
|
+
externalURI: '外链URI',
|
|
226
|
+
redirect: '重定向路径',
|
|
227
|
+
i18nField: '标题字段',
|
|
228
|
+
extraIcon: '额外图标',
|
|
229
|
+
icon: '图标',
|
|
230
|
+
|
|
231
|
+
jobResult: '执行结果',
|
|
232
|
+
endTime: '结束时间',
|
|
233
|
+
startTime: '开始时间',
|
|
234
|
+
errorMessage: '异常信息',
|
|
235
|
+
jobStatus: '任务状态',
|
|
236
|
+
jobParam: '执行器任务参数',
|
|
237
|
+
jobHandler: '任务处理类',
|
|
238
|
+
jobClassName: '实现类',
|
|
239
|
+
jobCron: '任务执行corn',
|
|
240
|
+
jobName: '任务名称',
|
|
241
|
+
jobDescription: '任务描述',
|
|
242
|
+
|
|
243
|
+
interfaceName: '接口名称',
|
|
244
|
+
interfaceUrl: '接口地址',
|
|
245
|
+
requestDate: '请求日期',
|
|
246
|
+
requestStatus: '请求状态',
|
|
247
|
+
requestParameter: 'body参数',
|
|
248
|
+
responseTimeConsume: '响应时间(ms)',
|
|
249
|
+
responseContent: '响应内容',
|
|
250
|
+
stacktrace: '错误堆栈',
|
|
251
|
+
|
|
252
|
+
userName: '用户姓名',
|
|
253
|
+
userCode: '用户编码',
|
|
254
|
+
status: '状态',
|
|
255
|
+
email: '邮箱',
|
|
256
|
+
userPassword: '登录密码',
|
|
257
|
+
remarks: '备注',
|
|
258
|
+
sysType: '用户类型',
|
|
259
|
+
userPwd: '用户密码',
|
|
260
|
+
unitName: '用户单位',
|
|
261
|
+
|
|
262
|
+
employeeCode: '编号',
|
|
263
|
+
employeeName: '姓名',
|
|
264
|
+
department: '部门',
|
|
265
|
+
gender: '性别',
|
|
266
|
+
releateUser: '关联用户',
|
|
267
|
+
identity: '身份证号码',
|
|
268
|
+
employeeDate: '入职日期',
|
|
269
|
+
solarDay: '出生日期',
|
|
270
|
+
phone: '座机号',
|
|
271
|
+
mobile: '手机号',
|
|
272
|
+
|
|
273
|
+
deptName: '部门名称',
|
|
274
|
+
deptCode: '部门编码',
|
|
275
|
+
deptType: '部门类型',
|
|
276
|
+
deletePartment: '部门存在子级,请先删除子级',
|
|
277
|
+
|
|
278
|
+
orgCode: '业务实体编码',
|
|
279
|
+
orgName: '业务实体名称',
|
|
280
|
+
orgAlias: '业务实体简称',
|
|
281
|
+
orgDesc: '业务实体描述',
|
|
282
|
+
|
|
283
|
+
organizationName: '组织名称',
|
|
284
|
+
organizationCode: '组织编码',
|
|
285
|
+
|
|
286
|
+
lovCode: '视图编码',
|
|
287
|
+
lovName: '视图名称',
|
|
288
|
+
valueField: '值字段名',
|
|
289
|
+
displayField: '显示字段名',
|
|
290
|
+
lovTitle: '视图标题',
|
|
291
|
+
lovType: '视图类型',
|
|
292
|
+
lovUrl: '视图URI',
|
|
293
|
+
colField: '表格字段名',
|
|
294
|
+
colTitle: '表格列标题',
|
|
295
|
+
colWidth: '列宽度',
|
|
296
|
+
fieldType: '字段类型',
|
|
297
|
+
dictName: '数据字典',
|
|
298
|
+
isSearch: '查询字段',
|
|
299
|
+
isCol: '表格列',
|
|
300
|
+
sqlStatement: 'SQL语句',
|
|
301
|
+
|
|
302
|
+
fileName: '附件名称',
|
|
303
|
+
fileSize: '附件大小',
|
|
304
|
+
|
|
305
|
+
tip: {
|
|
306
|
+
projectConfig: '项目配置',
|
|
307
|
+
closeConfig: '关闭配置',
|
|
308
|
+
clearCache: '清空缓存',
|
|
309
|
+
toLogin: '清空缓存并返回登录页',
|
|
310
|
+
del: '确定要删除{msg}吗?',
|
|
311
|
+
uploadFormat: '上传格式{type}',
|
|
312
|
+
imageSize: '图片尺寸{size}',
|
|
313
|
+
imageCapacity: '图片大小{capacity}',
|
|
314
|
+
singleImg: '仅支持设置单张图',
|
|
315
|
+
emptyAuth: '无系统权限, 请先给用户分配角色重试',
|
|
316
|
+
initPassword: `初始密码为:【123456】,请及时修改密码`,
|
|
317
|
+
loginFailure: '用户名或密码不能为空',
|
|
318
|
+
updatenow: '立即更新',
|
|
319
|
+
newVersion: '检测到新版本',
|
|
320
|
+
updateLater: '稍后更新'
|
|
321
|
+
},
|
|
322
|
+
title: {
|
|
323
|
+
employeeInfo: '员工信息',
|
|
324
|
+
cronLog: '执行日志',
|
|
325
|
+
memuInfo: '菜单配置',
|
|
326
|
+
authority: '【{role}】权限明细',
|
|
327
|
+
authUser: '【{role}】分配用户',
|
|
328
|
+
authEdit: '角色编辑',
|
|
329
|
+
roleInfo: '角色列表',
|
|
330
|
+
appAdd: 'App版本新增',
|
|
331
|
+
dictList: '【{name}】字典值列表',
|
|
332
|
+
dictInfo: '【{name}】字典值',
|
|
333
|
+
lovView: '值集视图',
|
|
334
|
+
lovColConfig: '值集列配置',
|
|
335
|
+
sequenceInfo: '{name}单据序列配置'
|
|
336
|
+
}
|
|
337
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: levi7754 levi7754@163.com
|
|
3
|
+
* @Date: 2024-06-05 14:32:03
|
|
4
|
+
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
+
* @LastEditTime: 2025-04-30 15:40:39
|
|
6
|
+
* @FilePath: /udp-front/packages/udp-core/src/plugins/vxe-table/index.ts
|
|
7
|
+
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
|
+
*/
|
|
9
|
+
import 'xe-utils';
|
|
10
|
+
import { merge } from 'xe-utils';
|
|
11
|
+
import { geti18n, transformI18n } from '../i18n/index';
|
|
12
|
+
// import { storageLocal } from '@utogether/utils';
|
|
13
|
+
import { VxetableRender } from '@utogether/utils';
|
|
14
|
+
// import { VxetableRender } from './udp/render';
|
|
15
|
+
import { getServiceApi } from '../../api';
|
|
16
|
+
|
|
17
|
+
import VXETable, { VxeUI } from 'vxe-table';
|
|
18
|
+
// import './render.tsx';
|
|
19
|
+
|
|
20
|
+
// const dict = storageLocal.getItem('kLov');
|
|
21
|
+
VxetableRender(VXETable, { serviceApi: getServiceApi(), i18n: transformI18n });
|
|
22
|
+
|
|
23
|
+
// 全局默认参数
|
|
24
|
+
const defaultConfig = {
|
|
25
|
+
// 对组件内置的提示语进行国际化翻译
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
i18n: (key, args) => geti18n().global.t(key, args),
|
|
28
|
+
// 可选,对参数中的列头、校验提示..等进行自动翻译(只对支持国际化的有效)
|
|
29
|
+
translate(key) {
|
|
30
|
+
// 例如,只翻译 "message." 开头的键值
|
|
31
|
+
const NAMESPACED = ['message.', 'el.'];
|
|
32
|
+
if (key && NAMESPACED.findIndex(v => key.includes(v)) !== -1) {
|
|
33
|
+
return geti18n().global.t.call(geti18n().global.locale, key);
|
|
34
|
+
}
|
|
35
|
+
return key;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export function setTableConfig(config = {}) {
|
|
40
|
+
VXETable.setConfig(merge(defaultConfig, config));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function setTheme(theme) {
|
|
44
|
+
// 切换为暗黑主题
|
|
45
|
+
VxeUI.setTheme(theme);
|
|
46
|
+
}
|