@utogether/udp-core 1.0.1-beta.3 → 1.0.1-beta.4

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-BuP9jvH9.js → 403-CT4J-t-o.js} +1 -1
  2. package/dist/{404-DfQk8kKl.js → 404-BAudfnaK.js} +1 -1
  3. package/dist/{500-OgROWdiZ.js → 500-BlOGtpEE.js} +1 -1
  4. package/dist/{AuthorityInfo-q2ksfkWH.js → AuthorityInfo-Bl03tEhF.js} +1 -1
  5. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-Bwsf6lMH.js → AuthorityInfo.vue_vue_type_style_index_0_lang-CUwS2F3R.js} +1 -1
  6. package/dist/{Company-DgqowAxc.js → Company-CIj9XgQn.js} +3 -3
  7. package/dist/{CompanyPanel-BNb1rUhD.js → CompanyPanel-CublK5NN.js} +1 -1
  8. package/dist/{Department-Cl8CROSU.js → Department-BolPW-W3.js} +3 -3
  9. package/dist/{DepartmentPanel-D5VkqKeP.js → DepartmentPanel-BttxSHfM.js} +1 -1
  10. package/dist/{DesignPanel-BGvEusHC.js → DesignPanel-BwCbn92O.js} +1 -1
  11. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-BQF1uQ7w.js → DesignPanel.vue_vue_type_style_index_0_lang-y2AnCTg6.js} +2 -2
  12. package/dist/{DictView-BnxfaOBv.js → DictView-D85ziNV2.js} +1 -1
  13. package/dist/{InvOrganization-5y79ZLdY.js → InvOrganization-CaAk_f7F.js} +1 -1
  14. package/dist/{Org-2oBAXN2r.js → Org-CreIihFE.js} +1 -1
  15. package/dist/{Preview-BaGmXH7r.js → Preview-DMGbhV6q.js} +1 -1
  16. package/dist/{ReportDefine-DkQdBErt.js → ReportDefine-DogZwa8T.js} +1 -1
  17. package/dist/{ReportDesign-DzB_A_G6.js → ReportDesign-CdSsJJeA.js} +2 -2
  18. package/dist/{ReportQuery-DRcMb6ya.js → ReportQuery-DPvKqeUm.js} +1 -1
  19. package/dist/{ReportQueryFrom-CeA9xhR4.js → ReportQueryFrom-UokkfBx_.js} +1 -1
  20. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CgGtcs5V.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-BlOoThY7.js} +1 -1
  21. package/dist/{ReportTemplate-qaiTMQuT.js → ReportTemplate-DCnmllXW.js} +1 -1
  22. package/dist/{Role-DsFulAjq.js → Role-sfmwLiNM.js} +3 -3
  23. package/dist/{RoleAssign-DMRdocpa.js → RoleAssign-WRk90VO2.js} +3 -3
  24. package/dist/{RolePanel-wXVysDHM.js → RolePanel-DhP0_5ur.js} +1 -1
  25. package/dist/{RolePanel-B9POS_pg.js → RolePanel-iWysS02n.js} +1 -1
  26. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-t6S_0zmJ.js → RolePanel.vue_vue_type_script_setup_true_lang-CYXqW-d4.js} +1 -1
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CleVvkcY.js → RolePanel.vue_vue_type_script_setup_true_lang-_hVY31HC.js} +3 -3
  28. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-DlXUs0j9.js → ScrollPanel.vue_vue_type_style_index_0_lang-BozDFES-.js} +1 -1
  29. package/dist/{Staff-Cq4V7ruC.js → Staff-Bha-Ijax.js} +3 -3
  30. package/dist/{StaffInfo-CJDKMbud.js → StaffInfo-CbfYI8UW.js} +1 -1
  31. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DQ4DL1KY.js → StaffInfo.vue_vue_type_script_setup_true_lang-Ce-MUVYH.js} +1 -1
  32. package/dist/{StaffPanel-CG-uggdr.js → StaffPanel-B8094e97.js} +1 -1
  33. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-DAgN7zN2.js → StaffPanel.vue_vue_type_script_setup_true_lang-_kJIBCtx.js} +2 -2
  34. package/dist/{SysUser-kwnzRNdD.js → SysUser-D1J9vPnb.js} +2 -2
  35. package/dist/{SysUserPanel-DTlZf3vk.js → SysUserPanel-DGDPKKoY.js} +1 -1
  36. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-BW6PlGjM.js → SysUserPanel.vue_vue_type_script_setup_true_lang-D-5-zKn6.js} +1 -1
  37. package/dist/{SystemMenu-BVT0n-L2.js → SystemMenu-Dz8Pllh5.js} +2 -2
  38. package/dist/{UserInfo-BbTQ9Zat.js → UserInfo-ecAJA2Yg.js} +1 -1
  39. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-D_bpYDmI.js → UserInfo.vue_vue_type_style_index_0_lang-4_-I_sQN.js} +1 -1
  40. package/dist/{childView-BJbIhjmf.js → childView-4uI_RT2m.js} +1 -1
  41. package/dist/{childView-DCsGFrG-.js → childView-OXXoMFg3.js} +1 -1
  42. package/dist/{childView.vue_vue_type_style_index_0_lang-CDtsalCm.js → childView.vue_vue_type_style_index_0_lang-DC-yx4Kv.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-BCDxpVoD.js → childView.vue_vue_type_style_index_0_lang-e43PUsUO.js} +1 -1
  44. package/dist/{code-rule-DePU6cdp.js → code-rule-B667R66s.js} +1 -1
  45. package/dist/core.es.js +14 -11
  46. package/dist/{cron-task-DUM1SIGL.js → cron-task-DcmGSr2D.js} +1 -1
  47. package/dist/{frameView-CEUTDtSm.js → frameView-BzgaLYjQ.js} +1 -1
  48. package/dist/index-CLliRySq.js +2606 -0
  49. package/dist/{layoutView-PCjwVwkX.js → layoutView-BBQB8pDc.js} +2 -2
  50. package/dist/{login-B1CjWVKu.js → login-DIG7pRU7.js} +2 -2
  51. package/dist/{lov-view-D8wwkxFJ.js → lov-view-CSIPKZSY.js} +2 -2
  52. package/dist/{menuInfo-B5JKVwrB.js → menuInfo-CPHjl7id.js} +1 -1
  53. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-CcM9WX4n.js → menuInfo.vue_vue_type_style_index_0_lang-BXNiinTg.js} +5 -3
  54. package/dist/{pda-app-DIa1p1Ww.js → pda-app-BLjbMcdt.js} +1 -1
  55. package/dist/{resource-CCQ7Dd-5.js → resource-MxqaSJqB.js} +1 -1
  56. package/dist/{su-welcome-CLp9YaJa.js → su-welcome-C0flTYCx.js} +1 -1
  57. package/dist/{sys-config-BBmf_SqF.js → sys-config-CXzGs3Nl.js} +1 -1
  58. package/dist/udp-core.css +1 -1
  59. package/dist/{utogether-Bkptx2lB.js → utogether-CFdIDuAT.js} +1 -1
  60. package/index.ts +40 -36
  61. package/package.json +1 -1
  62. package/src/components/udp/grid.vue +6 -1
  63. package/src/directives/permission/index.ts +1 -1
  64. package/src/main.ts +110 -110
  65. package/src/plugins/vxe-table/index.ts +3 -3
  66. package/src/router/index.ts +187 -183
  67. package/src/router/modules/remaining.ts +58 -83
  68. package/src/style/vxetable.scss +7 -0
  69. package/src/utils/authority/index.ts +1 -1
  70. package/src/views/system/menu/menuInfo.vue +7 -3
  71. package/types/global.d.ts +2 -1
  72. package/dist/index-ZdgOD7cF.js +0 -3399
package/index.ts CHANGED
@@ -1,36 +1,40 @@
1
- /*
2
- * @Author: levi7754 levi7754@163.com
3
- * @Date: 2024-04-14 19:10:28
4
- * @LastEditors: wei.li
5
- * @LastEditTime: 2024-06-26 17:08:49
6
- * @FilePath: /udp-front/packages/udp-core/index.ts
7
- * @Description:
8
- */
9
-
10
- import UInit from './src/main';
11
- export default UInit;
12
-
13
- import { store } from './src/store';
14
- import hasAuthority from './src/utils/authority';
15
-
16
- import { useSystemStoreHook as useSystemStore } from './src/store/modules/system';
17
- import { useMultiTagsStoreHook as useMultiTagsStore } from './src/store/modules/multiTags';
18
- import { usePermissionStoreHook as usePermissionStore } from './src/store/modules/permission';
19
-
20
- import { handleAliveRoute, delCurrentRoute } from './src/router/utils';
21
-
22
- import { lifeCycleEvent } from './src/utils/lifecycle';
23
-
24
- import { getServiceApi } from './src/api';
25
-
26
- export {
27
- store,
28
- hasAuthority,
29
- useSystemStore,
30
- useMultiTagsStore,
31
- usePermissionStore,
32
- delCurrentRoute,
33
- handleAliveRoute,
34
- getServiceApi,
35
- lifeCycleEvent
36
- };
1
+ /*
2
+ * @Author: levi7754 levi7754@163.com
3
+ * @Date: 2024-04-14 19:10:28
4
+ * @LastEditors: levi7754 levi7754@163.com
5
+ * @LastEditTime: 2025-07-27 11:04:41
6
+ * @FilePath: /udp-front/packages/udp-core/index.ts
7
+ * @Description:
8
+ */
9
+
10
+ import UInit from './src/main';
11
+ export default UInit;
12
+
13
+ import { store } from './src/store';
14
+ import hasAuthority from './src/utils/authority';
15
+
16
+ import { useSystemStoreHook as useSystemStore } from './src/store/modules/system';
17
+ import { useMultiTagsStoreHook as useMultiTagsStore } from './src/store/modules/multiTags';
18
+ import { usePermissionStoreHook as usePermissionStore } from './src/store/modules/permission';
19
+
20
+ import { handleAliveRoute, delCurrentRoute } from './src/router/utils';
21
+ import { constantRoutes, remainingRouters, routerBefore } from './src/router';
22
+
23
+ import { lifeCycleEvent } from './src/utils/lifecycle';
24
+
25
+ import { getServiceApi } from './src/api';
26
+
27
+ export {
28
+ store,
29
+ hasAuthority,
30
+ useSystemStore,
31
+ useMultiTagsStore,
32
+ usePermissionStore,
33
+ delCurrentRoute,
34
+ handleAliveRoute,
35
+ getServiceApi,
36
+ lifeCycleEvent,
37
+ routerBefore,
38
+ constantRoutes,
39
+ remainingRouters
40
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@utogether/udp-core",
3
3
  "private": false,
4
- "version": "1.0.1-beta.3",
4
+ "version": "1.0.1-beta.4",
5
5
  "description": "",
6
6
  "type": "module",
7
7
  "main1": "index.ts",
@@ -191,7 +191,8 @@ const data = reactive<VxeGridProps>({
191
191
  queryAll: ({ form }) => queryAll(props, serviceApi, form),
192
192
  query: ({ page, form }) => query(props, form, page, serviceApi, $mode),
193
193
  delete: ({ body: { removeRecords } }) => del(serviceApi, removeRecords, props),
194
- save: ({ body }) => Promise.all(save(serviceApi, body, props))
194
+ save: ({ body }) => Promise.all(save(serviceApi, body, props)),
195
+ querySuccess: e => querySuccess(e)
195
196
  }
196
197
  },
197
198
  columns: !attrs.gridId ? getColumns() : [],
@@ -401,6 +402,10 @@ const onSearch = data => {
401
402
  refreshData();
402
403
  };
403
404
 
405
+ const querySuccess = e => {
406
+ console.log(e);
407
+ };
408
+
404
409
  /**
405
410
  * @description Vue实例对外暴露的相关方法或属性
406
411
  */
@@ -8,7 +8,7 @@
8
8
  */
9
9
  import { usePermissionStoreHook } from '../../store/modules/permission';
10
10
  import type { Directive } from 'vue';
11
- import router from '../../router';
11
+ import { router } from '../../router';
12
12
  import type { DirectiveBinding } from 'vue';
13
13
 
14
14
  export const auth: Directive = {
package/src/main.ts CHANGED
@@ -1,110 +1,110 @@
1
- /*
2
- * @Author: wei.li
3
- * @Date: 2022-10-18 18:13:54
4
- * @LastEditors: levi7754 levi7754@163.com
5
- * @LastEditTime: 2025-07-21 11:28:01
6
- * @Description: file content
7
- */
8
- import { createApp, type Directive } from 'vue';
9
- import App from './App.vue';
10
- import router from './router';
11
- import { setViews } from './router';
12
- import { setupStore } from './store';
13
- import { setConfig, setSystemEnv } from './config';
14
- import { useI18n } from '../src/plugins/i18n';
15
- import { setTableConfig } from '../src/plugins/vxe-table';
16
- import { injectResponsiveStorage } from './utils/storage';
17
- import hasAuthority from './utils/authority';
18
- import { getServiceApi, getBaseURL, setRouter } from './api';
19
-
20
- import 'nprogress/nprogress.css';
21
- // 一定要在main.ts中导入tailwind.css,防止vite每次hmr都会请求src/style/index.scss整体css文件导致热更新慢的问题
22
- import './style/tailwind.css';
23
- // // 引入重置样式
24
- import './style/reset.scss';
25
- // 导入公共样式
26
- import './style/index.scss';
27
-
28
- import 'viewerjs/dist/viewer.css';
29
-
30
- import VueViewer from 'v-viewer';
31
-
32
- // import SuTable from './components/SuTable/SuTable.vue';
33
-
34
- // import {
35
- // UtButton,
36
- // utLov2,
37
- // UGrid,
38
- // UtDivider,
39
- // UtModalForm2,
40
- // FormUpload2
41
- // UtForm,
42
- // UtGrid2
43
- // UtContent,
44
- // UtCountdown,
45
- // UtIconSelect,
46
- // UtCalendar
47
- // uAttachment
48
- // } from './components/udp';
49
-
50
- const app = createApp(App);
51
-
52
- // 全局注册`@iconify/vue`图标库
53
- import { IconifyIconOffline, FontIcon } from './components/ReIcon';
54
- // 全局注册`vue-tippy`
55
- import 'tippy.js/dist/tippy.css';
56
- import 'tippy.js/animations/perspective.css';
57
- import VueTippy from 'vue-tippy';
58
-
59
- app.use(VueTippy, {
60
- defaultProps: { animation: 'perspective' }
61
- });
62
-
63
- // 自定义指令
64
- import * as directives from './directives';
65
-
66
- const setGlobal = app => {
67
- app.config.globalProperties.$hasAuthority = hasAuthority;
68
- app.config.globalProperties.$serviceApi = getServiceApi();
69
- app.config.globalProperties.$url = getBaseURL();
70
- };
71
-
72
- const setGlobalDirective = app => {
73
- Object.keys(directives).forEach(key => {
74
- app.directive(key, (directives as { [key: string]: Directive })[key]);
75
- });
76
- };
77
-
78
- const init = ({ config, lang, views, env, tableConfig }) => {
79
- app.use(router);
80
- setRouter(router);
81
- setConfig(app, config);
82
- setSystemEnv(env);
83
- setViews(views);
84
- setTableConfig(tableConfig);
85
- return new Promise(resolve => {
86
- useI18n(app, lang);
87
- app.component('IconifyIconOffline', IconifyIconOffline);
88
- app.component('FontIcon', FontIcon);
89
- // app.component('uAttachment', uAttachment).component('UGrid', UGrid);
90
- // .component('UtDivider', UtDivider)
91
- // .component('UtModalForm2', UtModalForm2)
92
- // app.component('UtGrid2', UtGrid2);
93
- // .component('UtForm', UtForm)
94
- // .component('UtContent', UtContent)
95
- // .component('UtIconSelect', UtIconSelect)
96
- // .component('UtCountdown', UtCountdown)
97
- // .component('UtCalendar', UtCalendar)
98
- // .component('UtModalGrid', UtModalGrid);
99
- app.use(VueViewer, { defaultOptions: { zIndex: 9999 } });
100
- setGlobal(app);
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: wei.li
3
+ * @Date: 2022-10-18 18:13:54
4
+ * @LastEditors: levi7754 levi7754@163.com
5
+ * @LastEditTime: 2025-07-26 22:32:03
6
+ * @Description: file content
7
+ */
8
+ import { createApp, type Directive } from 'vue';
9
+ import App from './App.vue';
10
+ // import router from './router';
11
+ import { setViews } from './router';
12
+ import { setupStore } from './store';
13
+ import { setConfig, setSystemEnv } from './config';
14
+ import { useI18n } from '../src/plugins/i18n';
15
+ import { setTableConfig } from '../src/plugins/vxe-table';
16
+ import { injectResponsiveStorage } from './utils/storage';
17
+ import hasAuthority from './utils/authority';
18
+ import { getServiceApi, getBaseURL, setRouter } from './api';
19
+
20
+ import 'nprogress/nprogress.css';
21
+ // 一定要在main.ts中导入tailwind.css,防止vite每次hmr都会请求src/style/index.scss整体css文件导致热更新慢的问题
22
+ import './style/tailwind.css';
23
+ // // 引入重置样式
24
+ import './style/reset.scss';
25
+ // 导入公共样式
26
+ import './style/index.scss';
27
+
28
+ import 'viewerjs/dist/viewer.css';
29
+
30
+ import VueViewer from 'v-viewer';
31
+
32
+ // import SuTable from './components/SuTable/SuTable.vue';
33
+
34
+ // import {
35
+ // UtButton,
36
+ // utLov2,
37
+ // UGrid,
38
+ // UtDivider,
39
+ // UtModalForm2,
40
+ // FormUpload2
41
+ // UtForm,
42
+ // UtGrid2
43
+ // UtContent,
44
+ // UtCountdown,
45
+ // UtIconSelect,
46
+ // UtCalendar
47
+ // uAttachment
48
+ // } from './components/udp';
49
+
50
+ const app = createApp(App);
51
+
52
+ // 全局注册`@iconify/vue`图标库
53
+ import { IconifyIconOffline, FontIcon } from './components/ReIcon';
54
+ // 全局注册`vue-tippy`
55
+ import 'tippy.js/dist/tippy.css';
56
+ import 'tippy.js/animations/perspective.css';
57
+ import VueTippy from 'vue-tippy';
58
+
59
+ app.use(VueTippy, {
60
+ defaultProps: { animation: 'perspective' }
61
+ });
62
+
63
+ // 自定义指令
64
+ import * as directives from './directives';
65
+
66
+ const setGlobal = app => {
67
+ app.config.globalProperties.$hasAuthority = hasAuthority;
68
+ app.config.globalProperties.$serviceApi = getServiceApi();
69
+ app.config.globalProperties.$url = getBaseURL();
70
+ };
71
+
72
+ const setGlobalDirective = app => {
73
+ Object.keys(directives).forEach(key => {
74
+ app.directive(key, (directives as { [key: string]: Directive })[key]);
75
+ });
76
+ };
77
+
78
+ const init = ({ router, config, lang, views, env, tableConfig }) => {
79
+ setViews(views, router);
80
+ app.use(router);
81
+ setRouter(router);
82
+ setConfig(app, config);
83
+ setSystemEnv(env);
84
+ setTableConfig(tableConfig);
85
+ return new Promise(resolve => {
86
+ useI18n(app, lang);
87
+ app.component('IconifyIconOffline', IconifyIconOffline);
88
+ app.component('FontIcon', FontIcon);
89
+ // app.component('uAttachment', uAttachment).component('UGrid', UGrid);
90
+ // .component('UtDivider', UtDivider)
91
+ // .component('UtModalForm2', UtModalForm2)
92
+ // app.component('UtGrid2', UtGrid2);
93
+ // .component('UtForm', UtForm)
94
+ // .component('UtContent', UtContent)
95
+ // .component('UtIconSelect', UtIconSelect)
96
+ // .component('UtCountdown', UtCountdown)
97
+ // .component('UtCalendar', UtCalendar)
98
+ // .component('UtModalGrid', UtModalGrid);
99
+ app.use(VueViewer, { defaultOptions: { zIndex: 9999 } });
100
+ setGlobal(app);
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;
@@ -2,7 +2,7 @@
2
2
  * @Author: levi7754 levi7754@163.com
3
3
  * @Date: 2024-06-05 14:32:03
4
4
  * @LastEditors: levi7754 levi7754@163.com
5
- * @LastEditTime: 2025-07-21 11:37:34
5
+ * @LastEditTime: 2025-07-30 09:51:55
6
6
  * @FilePath: /udp-front/packages/udp-core/src/plugins/vxe-table/index.ts
7
7
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
8
  */
@@ -10,8 +10,8 @@ import 'xe-utils';
10
10
  import { merge } from 'xe-utils';
11
11
  import { geti18n, transformI18n } from '../i18n/index';
12
12
  // import { storageLocal } from '@utogether/utils';
13
- // import { VxetableRender } from '@utogether/utils';
14
- import { VxetableRender } from './render';
13
+ import { VxetableRender } from '@utogether/utils';
14
+ // import { VxetableRender } from './render';
15
15
  import { getServiceApi } from '../../api';
16
16
 
17
17
  import VXETable, { VxeUI } from 'vxe-table';