@utogether/udp-core 1.0.1-beta.14 → 1.0.1-beta.16

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.
Files changed (82) hide show
  1. package/dist/{403-pRpb9luy.js → 403-RBzulrcG.js} +1 -1
  2. package/dist/{404-Bsowhpja.js → 404-DX-dU_6C.js} +1 -1
  3. package/dist/{500-DZuJN9lQ.js → 500-BCTk0__d.js} +1 -1
  4. package/dist/{AuthorityInfo-DsSMdxQ1.js → AuthorityInfo-BADTOenq.js} +1 -1
  5. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-DCRZ7hKU.js → AuthorityInfo.vue_vue_type_style_index_0_lang-Cv46yAx_.js} +3 -3
  6. package/dist/{Company-JFHxazkc.js → Company-B-61KrWd.js} +3 -3
  7. package/dist/{CompanyPanel-Bt-5OX8x.js → CompanyPanel-CawSrEff.js} +10 -10
  8. package/dist/{Department-B1bTl93X.js → Department-CrzJPtvP.js} +3 -3
  9. package/dist/{DepartmentPanel-CVIvI8sf.js → DepartmentPanel-DYuL8H-j.js} +23 -23
  10. package/dist/{DesignPanel-snVLq3Gi.js → DesignPanel-DEAv6V68.js} +1 -1
  11. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-Cvb54DDl.js → DesignPanel.vue_vue_type_style_index_0_lang-BsnXZ2td.js} +6 -6
  12. package/dist/{DictView-OoNA8vMb.js → DictView-BuO-2b-c.js} +15 -16
  13. package/dist/{InvOrganization-CINznAuo.js → InvOrganization-CBgKBJAn.js} +1 -1
  14. package/dist/{Org-BA3ZHIpa.js → Org-BaQw2r-o.js} +3 -3
  15. package/dist/{Preview-C9rFs95x.js → Preview-DvCrmKNk.js} +2 -2
  16. package/dist/{ReportDefine-D2CXXxZp.js → ReportDefine-DyhWz0as.js} +1 -1
  17. package/dist/{ReportDesign-DWmFLxO_.js → ReportDesign-DgZ2f2zv.js} +10 -10
  18. package/dist/{ReportQuery-BBMEls-l.js → ReportQuery-DTZYbCDi.js} +1 -1
  19. package/dist/{ReportQueryFrom-CIeGY6UD.js → ReportQueryFrom-B-vtJegP.js} +1 -1
  20. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-qtLKZPIW.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-D6izgxph.js} +1 -1
  21. package/dist/{ReportTemplate-CWxGNxLg.js → ReportTemplate-DA1ZqKGf.js} +11 -11
  22. package/dist/{Role-CF93718B.js → Role-mbqoav5t.js} +3 -3
  23. package/dist/{RoleAssign-BjoNSr6O.js → RoleAssign-ltEJIEcr.js} +3 -3
  24. package/dist/{RolePanel-qBGK6Ilt.js → RolePanel-1g1a-G8D.js} +1 -1
  25. package/dist/{RolePanel-DmQaKkm5.js → RolePanel-u90v9eS0.js} +1 -1
  26. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BeNdAkYp.js → RolePanel.vue_vue_type_script_setup_true_lang-D9YxpGnt.js} +1 -1
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DdK59XHp.js → RolePanel.vue_vue_type_script_setup_true_lang-LC4Egk-Q.js} +9 -9
  28. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-LU6W_QVY.js → ScrollPanel.vue_vue_type_style_index_0_lang-DZ3W1epK.js} +8 -8
  29. package/dist/{Staff-BrjfdZU2.js → Staff-CJ2GgCL3.js} +3 -3
  30. package/dist/{StaffInfo-DYmftNDC.js → StaffInfo-3KkodDCK.js} +1 -1
  31. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DVLhL8tz.js → StaffInfo.vue_vue_type_script_setup_true_lang-CW-isIxJ.js} +7 -7
  32. package/dist/{StaffPanel-DJERIwT_.js → StaffPanel-DoXPSoY5.js} +1 -1
  33. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-D_leV5A8.js → StaffPanel.vue_vue_type_script_setup_true_lang-DvhGnOMZ.js} +2 -2
  34. package/dist/{SysUser-WO0whf-F.js → SysUser-BuIZhMPh.js} +2 -2
  35. package/dist/{SysUserPanel-C64mSt4O.js → SysUserPanel-t1GJcJGM.js} +1 -1
  36. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-B19FuxOZ.js → SysUserPanel.vue_vue_type_script_setup_true_lang-CDDkFLlN.js} +6 -6
  37. package/dist/{SystemMenu-CY1EDfzl.js → SystemMenu-DuLEL6_l.js} +10 -10
  38. package/dist/{UserInfo-DWXmMOD1.js → UserInfo-WWby4lts.js} +1 -1
  39. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-pjHVXRtK.js → UserInfo.vue_vue_type_style_index_0_lang-B06ZSrJV.js} +10 -10
  40. package/dist/{childView-CMBPpTyj.js → childView-B0-EAoAi.js} +1 -1
  41. package/dist/{childView-Czd4yk_A.js → childView-IYY4L8VK.js} +1 -1
  42. package/dist/{childView.vue_vue_type_style_index_0_lang-C9wXL52o.js → childView.vue_vue_type_style_index_0_lang-B56v6yK7.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-CaMQbFZm.js → childView.vue_vue_type_style_index_0_lang-CjF8nZuj.js} +6 -6
  44. package/dist/{code-rule-kHfdPgGA.js → code-rule-DDLdi3pP.js} +6 -6
  45. package/dist/core.es.js +17 -12
  46. package/dist/{cron-task-D1bbdvVP.js → cron-task-p3-AFN1w.js} +11 -11
  47. package/dist/{frameView-B5JStsSt.js → frameView-B_WAZErD.js} +1 -1
  48. package/dist/{index-Ce51XQgg.js → index-24fnvUBy.js} +748 -544
  49. package/dist/{layoutView-DR39l27s.js → layoutView-CoEp2afn.js} +25 -27
  50. package/dist/{log-out--RRncZhN.js → log-out-D1b4VRMZ.js} +30 -24
  51. package/dist/login-DP0oP70W.js +249 -0
  52. package/dist/{lov-view-wdnYE7wy.js → lov-view-BDoZRK-v.js} +5 -5
  53. package/dist/{menuInfo-D0746839.js → menuInfo-5Xls76qB.js} +1 -1
  54. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-p_yYtGl2.js → menuInfo.vue_vue_type_style_index_0_lang-BfZczW9a.js} +7 -7
  55. package/dist/{pda-app-zzzZfBj5.js → pda-app-DxGYn4G7.js} +20 -20
  56. package/dist/{resource-B7wnjBVW.js → resource-BnYWe_-Q.js} +7 -7
  57. package/dist/{su-welcome-CeajjyWS.js → su-welcome-B2rNhhDH.js} +88 -88
  58. package/dist/sys-config-Bb4WkxZK.js +355 -0
  59. package/dist/udp-core.css +2 -2
  60. package/dist/utogether-MlnyYtNS.js +4 -0
  61. package/index.ts +12 -4
  62. package/package.json +18 -18
  63. package/src/components/udp/form.vue +2 -2
  64. package/src/components/udp/utils.ts +11 -7
  65. package/src/layout/hooks/useTag.ts +221 -233
  66. package/src/main.ts +114 -113
  67. package/src/plugins/i18n/zh.ts +6 -1
  68. package/src/store/modules/system.ts +1 -3
  69. package/src/style/login.css +336 -336
  70. package/src/style/vxetable.scss +32 -0
  71. package/src/utils/index.ts +3 -1
  72. package/src/views/system/sys/sys-config.vue +50 -1
  73. package/src/views/uapp/pda/pda-app.vue +1 -1
  74. package/src/views/udev/dict/DictView.vue +2 -2
  75. package/src/views/ulogin/login.vue +323 -321
  76. package/src/views/upms/interface/log-out.vue +101 -107
  77. package/src/views/urpt/design/Preview.vue +1 -0
  78. package/src/views/urpt/design/ReportDesign.vue +2 -4
  79. package/types/global.d.ts +230 -236
  80. package/dist/login-d5LMP32l.js +0 -253
  81. package/dist/sys-config-CpfSg66g.js +0 -290
  82. package/dist/utogether-B_dUqXea.js +0 -182
package/src/main.ts CHANGED
@@ -1,113 +1,114 @@
1
- /*
2
- * @Author: levi7754 levi7754@163.com
3
- * @Date: 2025-07-25 13:38:20
4
- * @LastEditors: levi7754 levi7754@163.com
5
- * @LastEditTime: 2025-09-05 13:48:25
6
- * @FilePath: \udp-front\packages\udp-core\src\main.ts
7
- * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
- */
9
- import { createApp, type Directive } from 'vue';
10
- import App from './App.vue';
11
- // import router from './router';
12
- import { setViews } from './router';
13
- import { setupStore } from './store';
14
- import { setConfig, setSystemEnv } from './config';
15
- import { useI18n } from '../src/plugins/i18n';
16
- import { setTableConfig } from '../src/plugins/vxe-table';
17
- import { injectResponsiveStorage } from './utils/storage';
18
- import hasAuthority from './utils/authority';
19
- import { getServiceApi, getBaseURL, setRouter, setBaseUrl } from './api';
20
-
21
- import 'nprogress/nprogress.css';
22
- // 一定要在main.ts中导入tailwind.css,防止vite每次hmr都会请求src/style/index.scss整体css文件导致热更新慢的问题
23
- import './style/tailwind.css';
24
- // // 引入重置样式
25
- import './style/reset.scss';
26
- // 导入公共样式
27
- import './style/index.scss';
28
-
29
- import 'viewerjs/dist/viewer.css';
30
-
31
- import VueViewer from 'v-viewer';
32
-
33
- // import SuTable from './components/SuTable/SuTable.vue';
34
-
35
- // import {
36
- // UtButton,
37
- // utLov2,
38
- // UGrid,
39
- // UtDivider,
40
- // UtModalForm2
41
- // FormUpload2,
42
- // UtForm2
43
- // UtGrid2
44
- // UtContent,
45
- // UtModalGrid2
46
- // UtUpload2
47
- // UtIconSelect,
48
- // UtCalendar
49
- // uAttachment
50
- // } from './components/udp';
51
-
52
- const app = createApp(App);
53
-
54
- // 全局注册`@iconify/vue`图标库
55
- import { IconifyIconOffline, FontIcon } from './components/ReIcon';
56
- // 全局注册`vue-tippy`
57
- import 'tippy.js/dist/tippy.css';
58
- import 'tippy.js/animations/perspective.css';
59
- import VueTippy from 'vue-tippy';
60
-
61
- app.use(VueTippy, {
62
- defaultProps: { animation: 'perspective' }
63
- });
64
-
65
- // 自定义指令
66
- import * as directives from './directives';
67
-
68
- const setGlobal = app => {
69
- app.config.globalProperties.$hasAuthority = hasAuthority;
70
- app.config.globalProperties.$serviceApi = getServiceApi();
71
- app.config.globalProperties.$url = getBaseURL();
72
- };
73
-
74
- const setGlobalDirective = app => {
75
- Object.keys(directives).forEach(key => {
76
- app.directive(key, (directives as { [key: string]: Directive })[key]);
77
- });
78
- };
79
-
80
- const init = ({ router, config, lang, views, env, tableConfig }) => {
81
- setViews(views, router);
82
- app.use(router);
83
- setRouter(router);
84
- setConfig(app, config);
85
- setSystemEnv(env);
86
- setTableConfig(tableConfig);
87
- return new Promise(resolve => {
88
- useI18n(app, lang);
89
- app.component('IconifyIconOffline', IconifyIconOffline);
90
- app.component('FontIcon', FontIcon);
91
- // app.component('uAttachment', uAttachment).component('UGrid', UGrid);
92
- // .component('UtDivider', UtDivider)
93
- // app.component('UtModalForm2', UtModalForm2);
94
- // app.component('UtGrid2', UtGrid2);
95
- // app.component('UtForm2', UtForm2);
96
- // app.component('UtModalGrid2', UtModalGrid2);
97
- // .component('UtIconSelect', UtIconSelect)
98
- // app.component('FormUpload2', FormUpload2);
99
- // .component('UtCalendar', UtCalendar)
100
- // .component('UtModalGrid', UtModalGrid);
101
- app.use(VueViewer, { defaultOptions: { zIndex: 9999 } });
102
- setGlobal(app);
103
- setBaseUrl(getBaseURL());
104
- setGlobalDirective(app);
105
- // 全局组件
106
- setupStore(app);
107
- injectResponsiveStorage(app, config);
108
- const result = { app, router };
109
- resolve(result);
110
- });
111
- };
112
-
113
- export default init;
1
+ /*
2
+ * @Author: levi7754 levi7754@163.com
3
+ * @Date: 2025-07-25 13:38:20
4
+ * @LastEditors: levi7754 levi7754@163.com
5
+ * @LastEditTime: 2025-09-11 16:21:38
6
+ * @FilePath: \udp-front\packages\udp-core\src\main.ts
7
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
+ */
9
+ import { createApp, type Directive } from 'vue';
10
+ import App from './App.vue';
11
+ // import router from './router';
12
+ import { setViews } from './router';
13
+ import { setupStore } from './store';
14
+ import { setConfig, setSystemEnv } from './config';
15
+ import { useI18n, transformI18n } from '../src/plugins/i18n';
16
+ import { setTableConfig } from '../src/plugins/vxe-table';
17
+ import { injectResponsiveStorage } from './utils/storage';
18
+ import hasAuthority from './utils/authority';
19
+ import { getServiceApi, getBaseURL, setRouter, setBaseUrl } from './api';
20
+
21
+ import 'nprogress/nprogress.css';
22
+ // 一定要在main.ts中导入tailwind.css,防止vite每次hmr都会请求src/style/index.scss整体css文件导致热更新慢的问题
23
+ import './style/tailwind.css';
24
+ // // 引入重置样式
25
+ import './style/reset.scss';
26
+ // 导入公共样式
27
+ import './style/index.scss';
28
+
29
+ import 'viewerjs/dist/viewer.css';
30
+
31
+ import VueViewer from 'v-viewer';
32
+
33
+ // import SuTable from './components/SuTable/SuTable.vue';
34
+
35
+ // import {
36
+ // UtButton,
37
+ // utLov2,
38
+ // UGrid,
39
+ // UtDivider,
40
+ // UtModalForm2
41
+ // FormUpload2,
42
+ // UtForm2
43
+ // UtGrid2
44
+ // UtContent,
45
+ // UtModalGrid2
46
+ // UtUpload2
47
+ // UtIconSelect,
48
+ // UtCalendar
49
+ // uAttachment
50
+ // } from './components/udp';
51
+
52
+ const app = createApp(App);
53
+
54
+ // 全局注册`@iconify/vue`图标库
55
+ import { IconifyIconOffline, FontIcon } from './components/ReIcon';
56
+ // 全局注册`vue-tippy`
57
+ import 'tippy.js/dist/tippy.css';
58
+ import 'tippy.js/animations/perspective.css';
59
+ import VueTippy from 'vue-tippy';
60
+
61
+ app.use(VueTippy, {
62
+ defaultProps: { animation: 'perspective' }
63
+ });
64
+
65
+ // 自定义指令
66
+ import * as directives from './directives';
67
+
68
+ const setGlobal = app => {
69
+ app.config.globalProperties.$hasAuthority = hasAuthority;
70
+ app.config.globalProperties.$serviceApi = getServiceApi();
71
+ app.config.globalProperties.$url = getBaseURL();
72
+ window.$i18n = transformI18n;
73
+ };
74
+
75
+ const setGlobalDirective = app => {
76
+ Object.keys(directives).forEach(key => {
77
+ app.directive(key, (directives as { [key: string]: Directive })[key]);
78
+ });
79
+ };
80
+
81
+ const init = ({ router, config, lang, views, env, tableConfig }) => {
82
+ setViews(views, router);
83
+ app.use(router);
84
+ setRouter(router);
85
+ setConfig(app, config);
86
+ setSystemEnv(env);
87
+ setTableConfig(tableConfig);
88
+ return new Promise(resolve => {
89
+ useI18n(app, lang);
90
+ app.component('IconifyIconOffline', IconifyIconOffline);
91
+ app.component('FontIcon', FontIcon);
92
+ // app.component('uAttachment', uAttachment).component('UGrid', UGrid);
93
+ // .component('UtDivider', UtDivider)
94
+ // app.component('UtModalForm2', UtModalForm2);
95
+ // app.component('UtGrid2', UtGrid2);
96
+ // app.component('UtForm2', UtForm2);
97
+ // app.component('UtModalGrid2', UtModalGrid2);
98
+ // .component('UtIconSelect', UtIconSelect)
99
+ // app.component('FormUpload2', FormUpload2);
100
+ // .component('UtCalendar', UtCalendar)
101
+ // .component('UtModalGrid', UtModalGrid);
102
+ app.use(VueViewer, { defaultOptions: { zIndex: 9999 } });
103
+ setGlobal(app);
104
+ setBaseUrl(getBaseURL());
105
+ setGlobalDirective(app);
106
+ // 全局组件
107
+ setupStore(app);
108
+ injectResponsiveStorage(app, config);
109
+ const result = { app, router };
110
+ resolve(result);
111
+ });
112
+ };
113
+
114
+ export default init;
@@ -43,6 +43,8 @@ export default {
43
43
  copyright: '版权信息',
44
44
  i18nEnabled: '国际化',
45
45
  orgTaggle: '启用组织切换',
46
+ baseColor: '基准色',
47
+ techSupport: '技术支持',
46
48
  defaultLanguage: '默认语言',
47
49
  roleName: '角色名称',
48
50
  roleCode: '角色编码',
@@ -89,6 +91,7 @@ export default {
89
91
  downloadUrl: 'APK文件',
90
92
  forceUpdate: '强制更新',
91
93
  freeUpdate: '自主更新',
94
+ placeholder: '请录入',
92
95
 
93
96
  userName: '用户姓名',
94
97
  userCode: '用户编码',
@@ -103,7 +106,9 @@ export default {
103
106
  orgDesc: '业务实体描述',
104
107
 
105
108
  organizationName: '组织名称',
106
- organizationCode: '组织编码'
109
+ organizationCode: '组织编码',
110
+ appupper: '已上架',
111
+ applower: '已下架'
107
112
  },
108
113
  btn: {
109
114
  passwordReset: '密码重置',
@@ -166,9 +166,7 @@ export const useSystemStore = defineStore('udp-system', {
166
166
  organizationId: systemInfo.organizationId
167
167
  };
168
168
  cookies.set('kCookies_param', JSON.stringify(query));
169
- this.isAdminRole = this.employee.sysRoles.some(
170
- s => s.roleCode === 'admin' || ['管理员'].includes(s.roleName)
171
- );
169
+ this.isAdminRole = this.employee.sysRoles.some(s => s.roleCode === 'admin' || ['管理员'].includes(s.roleName));
172
170
  // 缓存按钮数据权限
173
171
  usePermissionStoreHook().setAuthButton(systemInfo.dataMenus);
174
172
  }