@utogether/udp-core 2.0.0-beta.25 → 2.0.0-beta.26

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 (51) hide show
  1. package/dist/{403-QwBKrRZE.js → 403-D6Wb3JJh.js} +1 -1
  2. package/dist/{404-Cr7MbzNV.js → 404-B_HNbPNV.js} +1 -1
  3. package/dist/{500-B7kCOeIA.js → 500-BMemTTy1.js} +1 -1
  4. package/dist/{AuthorityInfo-Dwml2K4S.js → AuthorityInfo-6wHxwiFM.js} +1 -1
  5. package/dist/{AuthorityPanel-DzPhsPpa.js → AuthorityPanel-OqF_DvXA.js} +1 -1
  6. package/dist/{Company-BhOlvl7Q.js → Company-BLXSfow0.js} +1 -1
  7. package/dist/{CompanyPanel-ByhY5-Sq.js → CompanyPanel-B4kRZ5Cg.js} +1 -1
  8. package/dist/{Department-QvngN63N.js → Department-oFhsa7cd.js} +1 -1
  9. package/dist/{DepartmentPanel-DntGycxr.js → DepartmentPanel-B1UGpu-r.js} +2 -2
  10. package/dist/DepartmentPanel-BL58AdoT.js +2 -0
  11. package/dist/{DesignPanel-BMN4DZ0R.js → DesignPanel-DmkFVw1N.js} +2 -2
  12. package/dist/{DictView-ERFqZ5VD.js → DictView-CC5yMzOq.js} +1 -1
  13. package/dist/{Preview-CVZdnHB1.js → Preview-CAzWxLmP.js} +1 -1
  14. package/dist/{ReportDesign-CjfTyyy_.js → ReportDesign-DwchGG2P.js} +1 -1
  15. package/dist/{ReportQuery-CP-E0Puv.js → ReportQuery-D5jaRJEn.js} +1 -1
  16. package/dist/{ReportQueryFrom-D7SPPAps.js → ReportQueryFrom-CNlmtYey.js} +1 -1
  17. package/dist/{ReportTemplate-DE25zc1f.js → ReportTemplate-CNcTmccs.js} +1 -1
  18. package/dist/{Role-K7v_ZhFE.js → Role-Be8WfdCA.js} +1 -1
  19. package/dist/{RoleAssign-C16fjLaX.js → RoleAssign-CtehGAUf.js} +1 -1
  20. package/dist/{RolePanel-DPCe9k8f.js → RolePanel-CAwITg_q.js} +1 -1
  21. package/dist/{RolePanel-CV-xPlYJ.js → RolePanel-SN0FGFZ7.js} +3 -3
  22. package/dist/{Staff-w2ly4qd0.js → Staff-V2YsNKcj.js} +1 -1
  23. package/dist/{StaffInfo-DPDRpz6F.js → StaffInfo-CKRPW0r4.js} +1 -1
  24. package/dist/{StaffPanel-DI1eTTp9.js → StaffPanel-BxcgMg7u.js} +2 -2
  25. package/dist/{SysUser-BMTX1cJM.js → SysUser-Dxyj5w5m.js} +1 -1
  26. package/dist/{SysUserPanel-xwZdVjdp.js → SysUserPanel-DI6CWcZo.js} +1 -1
  27. package/dist/{SystemMenu-TXhiQZVm.js → SystemMenu-BBHREM8T.js} +2 -2
  28. package/dist/{UserInfo-JQqw8FMT.js → UserInfo-BMVQ0xwE.js} +1 -1
  29. package/dist/{authority-Bi6BGB5B.js → authority-BJFEUdrh.js} +1 -1
  30. package/dist/{childView-CyrcwshT.js → childView-BBjPEraB.js} +1 -1
  31. package/dist/{childView-Bk8OD9bV.js → childView-DNqG2UVm.js} +1 -1
  32. package/dist/core.es.js +5 -5
  33. package/dist/{layoutView-DFUjrqAS.js → layoutView-B6Mx2ERA.js} +237 -237
  34. package/dist/{login-BdCDnuXL.js → login-D_Hjy3Jd.js} +82 -84
  35. package/dist/{lov-view-DkmG4K57.js → lov-view-DM5Nm5tW.js} +1 -1
  36. package/dist/{menuInfo-kp2wNYOp.js → menuInfo-BlOY1KZW.js} +1 -1
  37. package/dist/{su-welcome-JeiovGpe.js → su-welcome-DVD3S_du.js} +4 -4
  38. package/dist/{router-CeluSGiD.js → system-Cm3lyBas.js} +451 -454
  39. package/dist/{udp-core-Dhm-BlAs.js → udp-core-DaQd5CF1.js} +212 -216
  40. package/dist/udp-core.css +1 -1
  41. package/dist/{useDataThemeChange-BCy8JBG7.js → useDataThemeChange-DJ4K3VGp.js} +31 -31
  42. package/dist/{useNav-DY8FkltH.js → useNav-BhOJIdrJ.js} +8 -8
  43. package/package.json +1 -1
  44. package/src/App.vue +5 -0
  45. package/src/components/udp/grid/index.vue +9 -11
  46. package/src/components/udp/utils.ts +420 -414
  47. package/src/main.ts +109 -110
  48. package/src/router/utils.ts +2 -3
  49. package/src/views/login/login-view.vue +297 -301
  50. package/src/views/ulogin/login.vue +3 -32
  51. package/dist/DepartmentPanel-BCXqC39J.js +0 -2
package/src/main.ts CHANGED
@@ -1,110 +1,109 @@
1
- /*
2
- * @Author: levi7754 levi7754@163.com
3
- * @Date: 2025-07-25 13:38:20
4
- * @LastEditors: levi7754 levi7754@163.com
5
- * @LastEditTime: 2026-03-30 13:50:20
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, getEnv, 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, getDebugBaseURL } 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 {
30
- UtLov2,
31
- // UtDivider,
32
- // UtModalForm2
33
- FormUpload2,
34
- // UtForm2,
35
- UtGrid2,
36
- UtContent2,
37
- UtStampBadge2,
38
- // UtModalGrid2
39
- UtUpload2
40
- // UtIconSelect,
41
- // UtCalendar
42
- // uAttachment
43
- } from './components/udp';
44
-
45
- const app = createApp(App);
46
-
47
- // 全局注册`@iconify/vue`图标库
48
- import { IconifyIconOffline, FontIcon } from './components/ReIcon';
49
- // 全局注册`vue-tippy`
50
- import 'tippy.js/dist/tippy.css';
51
- import 'tippy.js/animations/perspective.css';
52
- import VueTippy from 'vue-tippy';
53
-
54
- app.use(VueTippy, {
55
- defaultProps: { animation: 'perspective' }
56
- });
57
-
58
- // 自定义指令
59
- import * as directives from './directives';
60
-
61
- const setGlobal = app => {
62
- app.config.globalProperties.$hasAuthority = hasAuthority;
63
- app.config.globalProperties.$debugModel = getEnv().VITE_DEBUG === 'true';
64
- app.config.globalProperties.$serviceApi = getServiceApi();
65
- app.config.globalProperties.$debuggerApi = getDebugBaseURL();
66
- app.config.globalProperties.$url = getBaseURL();
67
- window.$i18n = transformI18n;
68
- };
69
-
70
- const setGlobalDirective = app => {
71
- Object.keys(directives).forEach(key => {
72
- app.directive(key, (directives as { [key: string]: Directive })[key]);
73
- });
74
- };
75
-
76
- const init = ({ router, config, lang, views, env, tableConfig }) => {
77
- setViews(views, router);
78
- app.use(router);
79
- setRouter(router);
80
- setConfig(app, config);
81
- setSystemEnv(env);
82
- setTableConfig(tableConfig);
83
- return new Promise(resolve => {
84
- useI18n(app, lang);
85
- app.component('IconifyIconOffline', IconifyIconOffline);
86
- app.component('FontIcon', FontIcon);
87
- // app.component('uAttachment', uAttachment).component('UGrid', UGrid);
88
- // .component('UtDivider', UtDivider)
89
- // app.component('UtModalForm2', UtModalForm2);
90
- app.component('UtGrid2', UtGrid2);
91
- app.component('UtUpload2', UtUpload2);
92
- // app.component('UtModalGrid2', UtModalGrid2);
93
- // .component('UtIconSelect', UtIconSelect)
94
- app.component('FormUpload2', FormUpload2).component('UtLov2', UtLov2);
95
- app.component('UtContent2', UtContent2);
96
- app.component('UtStampBadge2', UtStampBadge2);
97
- // .component('UtModalGrid', UtModalGrid);
98
- // app.use(VueViewer, { defaultOptions: { zIndex: 9999 } });
99
- setGlobal(app);
100
- setBaseUrl(getBaseURL());
101
- setGlobalDirective(app);
102
- // 全局组件
103
- setupStore(app);
104
- injectResponsiveStorage(app, config);
105
- const result = { app, router };
106
- resolve(result);
107
- });
108
- };
109
-
110
- 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: 2026-04-16 10:12:13
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, getDebugBaseURL } 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 {
30
+ UtLov2,
31
+ // UtDivider,
32
+ // UtModalForm2
33
+ FormUpload2,
34
+ // UtForm2,
35
+ UtGrid2,
36
+ UtContent2,
37
+ UtStampBadge2,
38
+ // UtModalGrid2
39
+ UtUpload2
40
+ // UtIconSelect,
41
+ // UtCalendar
42
+ // uAttachment
43
+ } from './components/udp';
44
+
45
+ const app = createApp(App);
46
+
47
+ // 全局注册`@iconify/vue`图标库
48
+ import { IconifyIconOffline, FontIcon } from './components/ReIcon';
49
+ // 全局注册`vue-tippy`
50
+ import 'tippy.js/dist/tippy.css';
51
+ import 'tippy.js/animations/perspective.css';
52
+ import VueTippy from 'vue-tippy';
53
+
54
+ app.use(VueTippy, {
55
+ defaultProps: { animation: 'perspective' }
56
+ });
57
+
58
+ // 自定义指令
59
+ import * as directives from './directives';
60
+
61
+ const setGlobal = app => {
62
+ app.config.globalProperties.$hasAuthority = hasAuthority;
63
+ app.config.globalProperties.$serviceApi = getServiceApi();
64
+ app.config.globalProperties.$debuggerApi = getDebugBaseURL();
65
+ app.config.globalProperties.$url = getBaseURL();
66
+ window.$i18n = transformI18n;
67
+ };
68
+
69
+ const setGlobalDirective = app => {
70
+ Object.keys(directives).forEach(key => {
71
+ app.directive(key, (directives as { [key: string]: Directive })[key]);
72
+ });
73
+ };
74
+
75
+ const init = ({ router, config, lang, views, env, tableConfig }) => {
76
+ setViews(views, router);
77
+ app.use(router);
78
+ setRouter(router);
79
+ setConfig(app, config);
80
+ setSystemEnv(env);
81
+ setTableConfig(tableConfig);
82
+ return new Promise(resolve => {
83
+ useI18n(app, lang);
84
+ app.component('IconifyIconOffline', IconifyIconOffline);
85
+ app.component('FontIcon', FontIcon);
86
+ // app.component('uAttachment', uAttachment).component('UGrid', UGrid);
87
+ // .component('UtDivider', UtDivider)
88
+ // app.component('UtModalForm2', UtModalForm2);
89
+ app.component('UtGrid2', UtGrid2);
90
+ app.component('UtUpload2', UtUpload2);
91
+ // app.component('UtModalGrid2', UtModalGrid2);
92
+ // .component('UtIconSelect', UtIconSelect)
93
+ app.component('FormUpload2', FormUpload2).component('UtLov2', UtLov2);
94
+ app.component('UtContent2', UtContent2);
95
+ app.component('UtStampBadge2', UtStampBadge2);
96
+ // .component('UtModalGrid', UtModalGrid);
97
+ // app.use(VueViewer, { defaultOptions: { zIndex: 9999 } });
98
+ setGlobal(app);
99
+ setBaseUrl(getBaseURL());
100
+ setGlobalDirective(app);
101
+ // 全局组件
102
+ setupStore(app);
103
+ injectResponsiveStorage(app, config);
104
+ const result = { app, router };
105
+ resolve(result);
106
+ });
107
+ };
108
+
109
+ export default init;
@@ -2,7 +2,7 @@
2
2
  * @Author: levi7754 levi7754@163.com
3
3
  * @Date: 2024-08-01 21:42:39
4
4
  * @LastEditors: levi7754 levi7754@163.com
5
- * @LastEditTime: 2026-03-20 17:51:45
5
+ * @LastEditTime: 2026-04-16 09:56:45
6
6
  * @FilePath: \udp-front\packages\udp-core\src\router\utils.ts
7
7
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
8
  */
@@ -26,7 +26,7 @@ const Layout = () => import('../layout/layoutView.vue');
26
26
  const IFrame = () => import('../layout/frameView.vue');
27
27
 
28
28
  // 动态路由
29
- import { initDict, initSystemInfo, getAsyncRoutes } from '../api/user';
29
+ import { initSystemInfo, getAsyncRoutes } from '../api/user';
30
30
  // https://cn.vitejs.dev/guide/features.html#glob-import
31
31
  // const modulesRoutes = import.meta.glob('/src/views/**/*.{vue,tsx}');
32
32
 
@@ -190,7 +190,6 @@ async function initRouter(userName) {
190
190
  if (getConfig().CachingAsyncRoutes) {
191
191
  await dbstorage.getItem(key).then(data => (asyncRouteList = data));
192
192
  }
193
- initDict().then(res => useSystemStoreHook().setDict(res));
194
193
  await initSystemInfo().then(async (res: IRecord) => {
195
194
  useSystemStoreHook().setSystemInfo(res);
196
195
  await getServiceApi()