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

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 (72) hide show
  1. package/dist/{403-D7L5zm05.js → 403-pRpb9luy.js} +1 -1
  2. package/dist/{404-BQKzkK5W.js → 404-Bsowhpja.js} +1 -1
  3. package/dist/{500-BM6k8XR5.js → 500-DZuJN9lQ.js} +1 -1
  4. package/dist/{AuthorityInfo-Dc-7W4L_.js → AuthorityInfo-DsSMdxQ1.js} +1 -1
  5. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-CKvlh3lm.js → AuthorityInfo.vue_vue_type_style_index_0_lang-DCRZ7hKU.js} +1 -1
  6. package/dist/{Company-BgwMUr-I.js → Company-JFHxazkc.js} +3 -3
  7. package/dist/{CompanyPanel-CDfVCPKC.js → CompanyPanel-Bt-5OX8x.js} +1 -1
  8. package/dist/{Department-CFvEB4Ys.js → Department-B1bTl93X.js} +3 -3
  9. package/dist/{DepartmentPanel-11Ytcj2u.js → DepartmentPanel-CVIvI8sf.js} +1 -1
  10. package/dist/{DesignPanel-CP8z6teZ.js → DesignPanel-snVLq3Gi.js} +1 -1
  11. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-Cp-WR8yE.js → DesignPanel.vue_vue_type_style_index_0_lang-Cvb54DDl.js} +2 -2
  12. package/dist/{DictView-13NoDgPW.js → DictView-OoNA8vMb.js} +1 -1
  13. package/dist/{InvOrganization-DOD4QdEX.js → InvOrganization-CINznAuo.js} +4 -2
  14. package/dist/{Org-cezJs-6P.js → Org-BA3ZHIpa.js} +1 -1
  15. package/dist/{Preview-DzOKwnp8.js → Preview-C9rFs95x.js} +1 -1
  16. package/dist/{ReportDefine-DWJq2q0f.js → ReportDefine-D2CXXxZp.js} +1 -1
  17. package/dist/{ReportDesign-f_ed8u_q.js → ReportDesign-DWmFLxO_.js} +2 -2
  18. package/dist/{ReportQuery-D58gv_yZ.js → ReportQuery-BBMEls-l.js} +1 -1
  19. package/dist/{ReportQueryFrom-R0R6EbYv.js → ReportQueryFrom-CIeGY6UD.js} +1 -1
  20. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CIFpgUAH.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-qtLKZPIW.js} +1 -1
  21. package/dist/{ReportTemplate-BTknctTT.js → ReportTemplate-CWxGNxLg.js} +1 -1
  22. package/dist/{Role-QTDJ16h8.js → Role-CF93718B.js} +3 -3
  23. package/dist/{RoleAssign-7aZ3ufp5.js → RoleAssign-BjoNSr6O.js} +3 -3
  24. package/dist/{RolePanel-XXwmaAgy.js → RolePanel-DmQaKkm5.js} +1 -1
  25. package/dist/{RolePanel-CSe-UoR5.js → RolePanel-qBGK6Ilt.js} +1 -1
  26. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BsNhkvFo.js → RolePanel.vue_vue_type_script_setup_true_lang-BeNdAkYp.js} +1 -1
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-kConrKpo.js → RolePanel.vue_vue_type_script_setup_true_lang-DdK59XHp.js} +3 -3
  28. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-DtaqM_iA.js → ScrollPanel.vue_vue_type_style_index_0_lang-LU6W_QVY.js} +1 -1
  29. package/dist/{Staff-BsREgfrQ.js → Staff-BrjfdZU2.js} +3 -3
  30. package/dist/{StaffInfo-CQtVXfvS.js → StaffInfo-DYmftNDC.js} +1 -1
  31. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-BRRtcGIH.js → StaffInfo.vue_vue_type_script_setup_true_lang-DVLhL8tz.js} +1 -1
  32. package/dist/{StaffPanel-cQTAulcP.js → StaffPanel-DJERIwT_.js} +1 -1
  33. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-BLeXlrI1.js → StaffPanel.vue_vue_type_script_setup_true_lang-D_leV5A8.js} +2 -2
  34. package/dist/{SysUser-DN5_46io.js → SysUser-WO0whf-F.js} +2 -2
  35. package/dist/{SysUserPanel-DTBNR42y.js → SysUserPanel-C64mSt4O.js} +1 -1
  36. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-CF2pHcPP.js → SysUserPanel.vue_vue_type_script_setup_true_lang-B19FuxOZ.js} +1 -1
  37. package/dist/{SystemMenu-D9TKZwgb.js → SystemMenu-CY1EDfzl.js} +2 -2
  38. package/dist/{UserInfo-DJ5LRTMe.js → UserInfo-DWXmMOD1.js} +1 -1
  39. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-CIpPef_S.js → UserInfo.vue_vue_type_style_index_0_lang-pjHVXRtK.js} +1 -1
  40. package/dist/{childView-CGZSd19y.js → childView-CMBPpTyj.js} +1 -1
  41. package/dist/{childView-DrL_Qi-q.js → childView-Czd4yk_A.js} +1 -1
  42. package/dist/{childView.vue_vue_type_style_index_0_lang-D2AzjPNV.js → childView.vue_vue_type_style_index_0_lang-C9wXL52o.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-B8wEeuFX.js → childView.vue_vue_type_style_index_0_lang-CaMQbFZm.js} +1 -1
  44. package/dist/{code-rule-DVEoh1Z4.js → code-rule-kHfdPgGA.js} +1 -1
  45. package/dist/core.es.js +1 -1
  46. package/dist/{cron-task-BBpccUV_.js → cron-task-D1bbdvVP.js} +1 -1
  47. package/dist/{frameView-Cw6_EqfJ.js → frameView-B5JStsSt.js} +1 -1
  48. package/dist/index-Ce51XQgg.js +2618 -0
  49. package/dist/{layoutView-CL2Ef3bw.js → layoutView-DR39l27s.js} +2 -2
  50. package/dist/{login-BDocwo7t.js → login-d5LMP32l.js} +37 -36
  51. package/dist/{lov-view-R8nnUEbA.js → lov-view-wdnYE7wy.js} +2 -2
  52. package/dist/{menuInfo-B-nGOcSv.js → menuInfo-D0746839.js} +1 -1
  53. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-1VuzxMb0.js → menuInfo.vue_vue_type_style_index_0_lang-p_yYtGl2.js} +1 -1
  54. package/dist/{pda-app-D5wBClj0.js → pda-app-zzzZfBj5.js} +1 -1
  55. package/dist/{resource-BXGSsXzw.js → resource-B7wnjBVW.js} +1 -1
  56. package/dist/{su-welcome-DISZAkBB.js → su-welcome-CeajjyWS.js} +1 -1
  57. package/dist/{sys-config-DuyYdzXL.js → sys-config-CpfSg66g.js} +1 -1
  58. package/dist/udp-core.css +2 -2
  59. package/dist/{utogether-C2KGHvut.js → utogether-B_dUqXea.js} +1 -1
  60. package/package.json +18 -18
  61. package/src/api/http.ts +1 -4
  62. package/src/api/index.ts +33 -31
  63. package/src/api/user.ts +2 -2
  64. package/src/main.ts +113 -119
  65. package/src/router/index.ts +177 -177
  66. package/src/style/vxetable.scss +1 -1
  67. package/src/utils/propTypes.ts +42 -42
  68. package/src/utils/udp/http/index.ts +19 -8
  69. package/src/views/login/login-view.vue +300 -300
  70. package/src/views/organization/inv-org/InvOrganization.vue +68 -68
  71. package/src/views/ulogin/login.vue +3 -2
  72. package/dist/index-BAkwQh8m.js +0 -4467
@@ -1,6 +1,6 @@
1
1
  import { computed as W, ref as L } from "vue";
2
2
  import { useGlobal as g, storageLocal as u, deviceDetection as H, cookies as C, storageSession as M } from "@utogether/utils";
3
- import { y as P, j as E, s as j, g as h, v as d, z as J, l as K, m as R, n as V, u as S, r as G, o as O, A as x, B as Z } from "./index-BAkwQh8m.js";
3
+ import { y as P, j as E, s as j, g as h, v as d, z as J, l as K, m as R, n as V, u as S, r as G, o as O, A as x, B as Z } from "./index-Ce51XQgg.js";
4
4
  import { useI18n as f } from "vue-i18n";
5
5
  import { defineStore as v } from "pinia";
6
6
  function I() {
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
- {
2
- "name": "@utogether/udp-core",
3
- "private": false,
4
- "version": "1.0.1-beta.12",
5
- "description": "",
6
- "type": "module",
7
- "main1": "index.ts",
8
- "main": "dist/core.es.js",
9
- "scripts": {
10
- "dev": "vite",
11
- "build": "vite build",
12
- "preview:build": "pnpm build && vite preview",
13
- "report": "rimraf dist && vite build"
14
- },
15
- "keywords": [],
16
- "author": "",
17
- "license": "ISC"
18
- }
1
+ {
2
+ "name": "@utogether/udp-core",
3
+ "private": false,
4
+ "version": "1.0.1-beta.14",
5
+ "description": "",
6
+ "type": "module",
7
+ "main1": "index.ts",
8
+ "main": "dist/core.es.js",
9
+ "scripts": {
10
+ "dev": "vite",
11
+ "build": "vite build",
12
+ "preview:build": "pnpm build && vite preview",
13
+ "report": "rimraf dist && vite build"
14
+ },
15
+ "keywords": [],
16
+ "author": "",
17
+ "license": "ISC"
18
+ }
package/src/api/http.ts CHANGED
@@ -26,10 +26,7 @@ export const getPrintTemp = (printPosition, query?) => {
26
26
  const organizationId = useSystemStoreHook().getOrganizationId;
27
27
  const orgId = useSystemStoreHook().getOrgId;
28
28
  const url = '/upms/v1/printTemplateConfig/ogn';
29
- const param = Object.assign(
30
- { pageSize: 100, pageNum: 1, orgId, organizationId, printPosition },
31
- query || {}
32
- );
29
+ const param = Object.assign({ pageSize: 100, pageNum: 1, orgId, organizationId, printPosition }, query || {});
33
30
  return new Promise(reslove => {
34
31
  http.get(`${getBaseURL()}${url}`, param).then(async (res: IResponseData) => {
35
32
  const templateCode = res.list
package/src/api/index.ts CHANGED
@@ -1,31 +1,33 @@
1
- /*
2
- * @Author: wei.li
3
- * @Date: 2021-11-17 16:24:43
4
- * @LastEditors: levi7754 levi7754@163.com
5
- * @LastEditTime: 2024-11-23 10:13:07
6
- * @Description: API封装
7
- */
8
- // import { http } from '@utogether/utils';
9
- import { http } from '../utils/udp/http';
10
- import { getEnv } from '../config';
11
-
12
- // 路由相关服务
13
- export const getServiceApi = () => {
14
- return {
15
- post: (url: string, data: object, config?) => http.post(`${getBaseURL()}${url}`, data, config),
16
- get: (url: string, params: object, config?) => http.get(`${getBaseURL()}${url}`, params, config),
17
- put: (url: string, params: object) => http.put(`${getBaseURL()}${url}`, params),
18
- delete: (url: string, params: object) => http.delete(`${getBaseURL()}${url}`, params)
19
- };
20
- };
21
-
22
- export const setRouter = router => {
23
- http.setRouter(router);
24
- // http.setBaseUrl(getBaseURL());
25
- };
26
-
27
- const origin = window.location.origin + '/gateway';
28
-
29
- export const getBaseURL = () => {
30
- return getEnv().VITE_BASE_URL === 'origin' ? origin : getEnv().VITE_BASE_URL;
31
- };
1
+ /*
2
+ * @Author: wei.li
3
+ * @Date: 2021-11-17 16:24:43
4
+ * @LastEditors: levi7754 levi7754@163.com
5
+ * @LastEditTime: 2025-09-05 11:53:29
6
+ * @Description: API封装
7
+ */
8
+ import { http } from '@utogether/utils';
9
+ // import { http } from '../utils/udp/http';
10
+ import { getEnv } from '../config';
11
+
12
+ // 路由相关服务
13
+ export const getServiceApi = () => {
14
+ return {
15
+ post: (url: string, data: object, config?) => http.post(`${getBaseURL()}${url}`, data, config),
16
+ get: (url: string, params: object, config?) => http.get(`${getBaseURL()}${url}`, params, config),
17
+ put: (url: string, params: object) => http.put(`${getBaseURL()}${url}`, params),
18
+ delete: (url: string, params: object) => http.delete(`${getBaseURL()}${url}`, params)
19
+ };
20
+ };
21
+
22
+ export const setRouter = router => {
23
+ http.setRouter(router);
24
+ };
25
+ export const setBaseUrl = router => {
26
+ http.setBaseUrl(router);
27
+ };
28
+
29
+ const origin = window.location.origin + '/gateway';
30
+
31
+ export const getBaseURL = () => {
32
+ return getEnv().VITE_BASE_URL === 'origin' ? origin : getEnv().VITE_BASE_URL;
33
+ };
package/src/api/user.ts CHANGED
@@ -2,13 +2,13 @@
2
2
  * @Author: wei.li
3
3
  * @Date: 2021-11-17 16:02:30
4
4
  * @LastEditors: levi7754 levi7754@163.com
5
- * @LastEditTime: 2024-06-06 16:29:39
5
+ * @LastEditTime: 2025-09-05 12:33:08
6
6
  * @Description: file content
7
7
  */
8
8
  import { http } from '@utogether/utils';
9
+ // import { http } from '../utils/udp/http';
9
10
  import { getBaseURL } from './';
10
11
 
11
- http.setBaseUrl(getBaseURL());
12
12
  // 私钥
13
13
  export const getPublicKey = () => http.get(`${getBaseURL()}/public/request`);
14
14
  // 获取验证码
package/src/main.ts CHANGED
@@ -1,119 +1,113 @@
1
- /*
2
- * @Author: levi7754 levi7754@163.com
3
- * @Date: 2025-07-25 13:38:20
4
- * @LastEditors: levi7754 levi7754@163.com
5
- * @LastEditTime: 2025-08-21 17:15:41
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
- /*
10
- * @Author: wei.li
11
- * @Date: 2022-10-18 18:13:54
12
- * @LastEditors: levi7754 levi7754@163.com
13
- * @LastEditTime: 2025-07-31 17:17:32
14
- * @Description: file content
15
- */
16
- import { createApp, type Directive } from 'vue';
17
- import App from './App.vue';
18
- // import router from './router';
19
- import { setViews } from './router';
20
- import { setupStore } from './store';
21
- import { setConfig, setSystemEnv } from './config';
22
- import { useI18n } from '../src/plugins/i18n';
23
- import { setTableConfig } from '../src/plugins/vxe-table';
24
- import { injectResponsiveStorage } from './utils/storage';
25
- import hasAuthority from './utils/authority';
26
- import { getServiceApi, getBaseURL, setRouter } from './api';
27
-
28
- import 'nprogress/nprogress.css';
29
- // 一定要在main.ts中导入tailwind.css,防止vite每次hmr都会请求src/style/index.scss整体css文件导致热更新慢的问题
30
- import './style/tailwind.css';
31
- // // 引入重置样式
32
- import './style/reset.scss';
33
- // 导入公共样式
34
- import './style/index.scss';
35
-
36
- import 'viewerjs/dist/viewer.css';
37
-
38
- import VueViewer from 'v-viewer';
39
-
40
- // import SuTable from './components/SuTable/SuTable.vue';
41
-
42
- // import {
43
- // UtButton,
44
- // utLov2,
45
- // UGrid,
46
- // UtDivider,
47
- // UtModalForm2
48
- // FormUpload2,
49
- // UtForm2
50
- // UtGrid2
51
- // UtContent,
52
- // UtModalGrid2
53
- // UtUpload2
54
- // UtIconSelect,
55
- // UtCalendar
56
- // uAttachment
57
- // } from './components/udp';
58
-
59
- const app = createApp(App);
60
-
61
- // 全局注册`@iconify/vue`图标库
62
- import { IconifyIconOffline, FontIcon } from './components/ReIcon';
63
- // 全局注册`vue-tippy`
64
- import 'tippy.js/dist/tippy.css';
65
- import 'tippy.js/animations/perspective.css';
66
- import VueTippy from 'vue-tippy';
67
-
68
- app.use(VueTippy, {
69
- defaultProps: { animation: 'perspective' }
70
- });
71
-
72
- // 自定义指令
73
- import * as directives from './directives';
74
-
75
- const setGlobal = app => {
76
- app.config.globalProperties.$hasAuthority = hasAuthority;
77
- app.config.globalProperties.$serviceApi = getServiceApi();
78
- app.config.globalProperties.$url = getBaseURL();
79
- };
80
-
81
- const setGlobalDirective = app => {
82
- Object.keys(directives).forEach(key => {
83
- app.directive(key, (directives as { [key: string]: Directive })[key]);
84
- });
85
- };
86
-
87
- const init = ({ router, config, lang, views, env, tableConfig }) => {
88
- setViews(views, router);
89
- app.use(router);
90
- setRouter(router);
91
- setConfig(app, config);
92
- setSystemEnv(env);
93
- setTableConfig(tableConfig);
94
- return new Promise(resolve => {
95
- useI18n(app, lang);
96
- app.component('IconifyIconOffline', IconifyIconOffline);
97
- app.component('FontIcon', FontIcon);
98
- // app.component('uAttachment', uAttachment).component('UGrid', UGrid);
99
- // .component('UtDivider', UtDivider)
100
- // app.component('UtModalForm2', UtModalForm2);
101
- // app.component('UtGrid2', UtGrid2);
102
- // app.component('UtForm2', UtForm2);
103
- // app.component('UtModalGrid2', UtModalGrid2);
104
- // .component('UtIconSelect', UtIconSelect)
105
- // app.component('FormUpload2', FormUpload2);
106
- // .component('UtCalendar', UtCalendar)
107
- // .component('UtModalGrid', UtModalGrid);
108
- app.use(VueViewer, { defaultOptions: { zIndex: 9999 } });
109
- setGlobal(app);
110
- setGlobalDirective(app);
111
- // 全局组件
112
- setupStore(app);
113
- injectResponsiveStorage(app, config);
114
- const result = { app, router };
115
- resolve(result);
116
- });
117
- };
118
-
119
- 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-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;