@utogether/udp-core 1.0.1-beta.7 → 1.0.1-beta.9

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 (87) hide show
  1. package/dist/{403-BQZ5OAKL.js → 403-BOzKHdlm.js} +1 -1
  2. package/dist/{404-H55ex36i.js → 404-uwgt4Nll.js} +1 -1
  3. package/dist/{500-bbrspTnK.js → 500-4HBf6V9m.js} +1 -1
  4. package/dist/{AuthorityInfo-BWni4UPQ.js → AuthorityInfo-DvbIh1vT.js} +1 -1
  5. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-7WtOL6Hs.js → AuthorityInfo.vue_vue_type_style_index_0_lang-BlCPvwXU.js} +1 -1
  6. package/dist/{Company-CuebFrQ0.js → Company-D7Q9BFmr.js} +3 -3
  7. package/dist/{CompanyPanel-DxPdJs6x.js → CompanyPanel-C0-PJlrt.js} +1 -1
  8. package/dist/{Department-D2a6Juur.js → Department-h2hlXACv.js} +3 -3
  9. package/dist/{DepartmentPanel-C_s2R9yl.js → DepartmentPanel-B6hDEQpG.js} +1 -1
  10. package/dist/{DesignPanel-CexZj3HF.js → DesignPanel-cS58-1v9.js} +1 -1
  11. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DfmysqwB.js → DesignPanel.vue_vue_type_style_index_0_lang-LdvLC8VU.js} +9 -11
  12. package/dist/{DictView-C0GS72rG.js → DictView-T3TmpBa8.js} +57 -44
  13. package/dist/{InvOrganization-a1tQ2CEH.js → InvOrganization-BVuOhzbt.js} +1 -1
  14. package/dist/Org-CnCBDGKF.js +39 -0
  15. package/dist/{Preview-BOv5j9i6.js → Preview-BaktKXB1.js} +1 -1
  16. package/dist/{ReportDefine-Dli1Q0TB.js → ReportDefine-5Rb0PO9A.js} +1 -1
  17. package/dist/{ReportDesign-zSWkcL_O.js → ReportDesign-DYdkVREA.js} +2 -2
  18. package/dist/{ReportQuery-D5r3bvFc.js → ReportQuery-BwhzIXMt.js} +1 -1
  19. package/dist/{ReportQueryFrom-DiostHrX.js → ReportQueryFrom-PHtWwlOe.js} +1 -1
  20. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-Cr2eKMmr.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-BE5yZNPM.js} +1 -1
  21. package/dist/{ReportTemplate-CYy4cZHQ.js → ReportTemplate-DaadVXIi.js} +1 -1
  22. package/dist/{Role-BFQFxfQS.js → Role-Dtg3nAmG.js} +3 -3
  23. package/dist/{RoleAssign-BIdWSLTR.js → RoleAssign-DEGtLssH.js} +3 -3
  24. package/dist/{RolePanel-KC-UgmtF.js → RolePanel-CT7BTPmy.js} +1 -1
  25. package/dist/{RolePanel-C7ybSknr.js → RolePanel-DpUzfE_o.js} +1 -1
  26. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-C_ZsMf1f.js → RolePanel.vue_vue_type_script_setup_true_lang-Dg2A6DJu.js} +3 -3
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-C91CJO4e.js → RolePanel.vue_vue_type_script_setup_true_lang-Xyo0YEI0.js} +1 -1
  28. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-botBBgto.js → ScrollPanel.vue_vue_type_style_index_0_lang-CyutzDZS.js} +1 -1
  29. package/dist/{Staff-CY0DLsTN.js → Staff-_NlAGkrh.js} +3 -3
  30. package/dist/{StaffInfo-DA7p265h.js → StaffInfo-DVgUvVgd.js} +1 -1
  31. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-f29A44gS.js → StaffInfo.vue_vue_type_script_setup_true_lang-C8hmlFgX.js} +1 -1
  32. package/dist/{StaffPanel-DYP-mMp9.js → StaffPanel-DKNZE3IE.js} +1 -1
  33. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-C0YAG2xV.js → StaffPanel.vue_vue_type_script_setup_true_lang-BOOO6Cek.js} +2 -2
  34. package/dist/{SysUser-FqS3Ctne.js → SysUser-kQUf7XKz.js} +2 -2
  35. package/dist/{SysUserPanel-C_t6F99T.js → SysUserPanel-C191uX3U.js} +1 -1
  36. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-CKZjy0OF.js → SysUserPanel.vue_vue_type_script_setup_true_lang-SwNbAEvW.js} +43 -43
  37. package/dist/{SystemMenu-ChFrMzRg.js → SystemMenu-DwuSvHnj.js} +2 -2
  38. package/dist/{UserInfo-I36LAXVj.js → UserInfo-DIsInFld.js} +1 -1
  39. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-BGY-LYeL.js → UserInfo.vue_vue_type_style_index_0_lang-CnvGdbej.js} +17 -17
  40. package/dist/{childView-CYpuOzRx.js → childView-3Bs2UBEw.js} +1 -1
  41. package/dist/{childView-Csnlaqfs.js → childView-BawyULD7.js} +1 -1
  42. package/dist/{childView.vue_vue_type_style_index_0_lang-B8EnA03l.js → childView.vue_vue_type_style_index_0_lang-DWIFCX3X.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-DNVlDM_a.js → childView.vue_vue_type_style_index_0_lang-YpWF-p2F.js} +1 -1
  44. package/dist/{code-rule-DHBSC5Qp.js → code-rule-DVaYcn8S.js} +1 -1
  45. package/dist/core.es.js +1 -1
  46. package/dist/{cron-task-CiI1MFla.js → cron-task-xuzP-BpE.js} +1 -1
  47. package/dist/{frameView-ZWKlbz9p.js → frameView-Cudt06qS.js} +1 -1
  48. package/dist/index-CKnq5xIa.js +2623 -0
  49. package/dist/{layoutView-5OsbpP0u.js → layoutView-BlFTV2jX.js} +2 -2
  50. package/dist/{login-C55sa9gN.js → login-CpKykfdf.js} +11 -11
  51. package/dist/{lov-view-DFfaUQ5m.js → lov-view-B2HaxyMs.js} +2 -2
  52. package/dist/{menuInfo-CZdLtLjN.js → menuInfo-BxCTJ1VW.js} +1 -1
  53. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DgG0aHRy.js → menuInfo.vue_vue_type_style_index_0_lang-CLOPNeUW.js} +2 -2
  54. package/dist/{pda-app-fLe8mrx-.js → pda-app-DPsAFNiw.js} +8 -10
  55. package/dist/{resource-ohWKO6Fh.js → resource-Dibb7t8u.js} +1 -1
  56. package/dist/{su-welcome-_UZTfrXX.js → su-welcome-DejR0KkM.js} +1 -1
  57. package/dist/{sys-config-DVuBsK7p.js → sys-config-DiySRWns.js} +1 -1
  58. package/dist/udp-core.css +2 -2
  59. package/dist/{utogether-CxobZqGL.js → utogether-Dct_14Zk.js} +1 -1
  60. package/package.json +1 -1
  61. package/src/App.vue +1 -6
  62. package/src/components/SuCharts/src/UserInfo.vue +78 -78
  63. package/src/components/udp/form-upload.vue +375 -76
  64. package/src/components/udp/form.vue +12 -7
  65. package/src/components/udp/grid.vue +2 -18
  66. package/src/components/udp/lov.vue +5 -27
  67. package/src/components/udp/upload.vue +1 -3
  68. package/src/components/udp/utils.ts +12 -6
  69. package/src/main.ts +119 -119
  70. package/src/plugins/i18n/en.ts +24 -13
  71. package/src/plugins/i18n/zh.ts +348 -348
  72. package/src/plugins/vxe-table/index.ts +3 -3
  73. package/src/plugins/vxe-table/render.tsx +956 -896
  74. package/src/style/vxetable.scss +289 -287
  75. package/src/utils/udp/useRender.ts +17 -6
  76. package/src/views/organization/org/Org.vue +9 -5
  77. package/src/views/system/menu/SystemMenu.vue +4 -18
  78. package/src/views/system/menu/menuInfo.vue +4 -17
  79. package/src/views/system/role/UserInfo.vue +195 -195
  80. package/src/views/system/sysUser/SysUserPanel.vue +278 -278
  81. package/src/views/uapp/pda/pda-app.vue +208 -207
  82. package/src/views/udev/dict/DictView.vue +7 -0
  83. package/src/views/ulogin/login.vue +1 -5
  84. package/src/views/urpt/design/DesignPanel.vue +507 -503
  85. package/vite.config.ts +2 -1
  86. package/dist/Org-DifvzLLy.js +0 -35
  87. package/dist/index-COBMRlmJ.js +0 -5379
@@ -2,7 +2,7 @@
2
2
  * @Author: levi7754 levi7754@163.com
3
3
  * @Date: 2025-07-14 17:38:38
4
4
  * @LastEditors: levi7754 levi7754@163.com
5
- * @LastEditTime: 2025-07-30 15:00:49
5
+ * @LastEditTime: 2025-08-21 10:57:00
6
6
  * @FilePath: \udp-front\packages\udp-core\src\components\udp\utils.ts
7
7
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
8
  */
@@ -226,10 +226,12 @@ export const getExportConfig = attrs => {
226
226
  };
227
227
 
228
228
  export const getToolBarConfig = (data, props, attrs, hasAuthority) => {
229
- const refresh = {
229
+ const refreshOptions = {
230
230
  icon: 'ri-refresh-line',
231
+ code: 'query',
231
232
  iconLoading: 'vxe-icon-spinner roll vxe-loading--default-icon'
232
233
  };
234
+ debugger;
233
235
  // 不可编辑时
234
236
  if (!props.editable) {
235
237
  data.editConfig.editable = props.editable;
@@ -240,9 +242,11 @@ export const getToolBarConfig = (data, props, attrs, hasAuthority) => {
240
242
  data.toolbarConfig = {
241
243
  buttons: [],
242
244
  enabled: hasExport,
243
- refresh,
244
- export: { icon: 'ri-download-2-line', code: 'export' },
245
+ refreshOptions,
246
+ exportOptions: { icon: 'ri-download-2-line', code: 'export' },
247
+ export: hasExport,
245
248
  custom: !!attrs.gridId,
249
+ refresh: true,
246
250
  perfect: true
247
251
  };
248
252
  return data;
@@ -282,9 +286,11 @@ export const getToolBarConfig = (data, props, attrs, hasAuthority) => {
282
286
  data.toolbarConfig = {
283
287
  buttons,
284
288
  enabled: true,
285
- refresh,
289
+ refreshOptions,
286
290
  custom: !!attrs.gridId,
287
- export: exportBtn,
291
+ exportOptions: exportBtn,
292
+ export: hasExport,
293
+ refresh: true,
288
294
  perfect: true
289
295
  };
290
296
  return data;
package/src/main.ts CHANGED
@@ -1,119 +1,119 @@
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-11 16:55:33
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('UtUpload2', UtUpload2);
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-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;
@@ -13,7 +13,6 @@ export default {
13
13
  login: 'Login',
14
14
  home: 'Home',
15
15
  logout: 'Logout',
16
- userName: 'User Name',
17
16
  password: 'Password',
18
17
  passwordReset: 'Password Reset',
19
18
  oldPwd: 'Old Password',
@@ -78,7 +77,30 @@ export default {
78
77
  lastMonth: 'Last Month',
79
78
  threeMonth: 'Three Month',
80
79
  halfYear: 'Half Year',
81
- anniversary: 'Anniversary'
80
+ anniversary: 'Anniversary',
81
+
82
+ newVersion: '检测到新版本',
83
+ updatenow: '立即更新',
84
+ updateLater: '稍后更新',
85
+ appVersion: '版本号',
86
+ buildNo: '构建号',
87
+ versionInfo: '版本信息',
88
+ isForceUpdate: '安装方式',
89
+ downloadUrl: 'APK文件',
90
+ forceUpdate: '强制更新',
91
+ freeUpdate: '自主更新',
92
+
93
+ userName: 'User Name',
94
+ userCode: 'user Code',
95
+ sysType: 'User Type',
96
+
97
+ orgCode: 'Business Unit Code',
98
+ orgName: 'Business Unit Name',
99
+ orgAlias: 'Business Unit Alias',
100
+ orgDesc: 'Business Unit Descript',
101
+
102
+ organizationName: 'Organization Name',
103
+ organizationCode: 'Organization Code'
82
104
  },
83
105
  btn: {
84
106
  add: 'Add',
@@ -243,13 +265,10 @@ export default {
243
265
  responseContent: 'Response Content',
244
266
  stacktrace: 'Stacktrace',
245
267
 
246
- userName: 'User Name',
247
- userCode: 'user Code',
248
268
  status: 'Status',
249
269
  email: 'Email',
250
270
  userPassword: 'Password',
251
271
  remarks: 'Remarks',
252
- sysType: 'User Type',
253
272
  userPwd: 'Password',
254
273
  unitName: 'Department',
255
274
 
@@ -269,14 +288,6 @@ export default {
269
288
  deptType: 'Department Type',
270
289
  deletePartment: 'There are child levels in the department, please delete the child level first',
271
290
 
272
- orgCode: 'Business Unit Code',
273
- orgName: 'Business Unit Name',
274
- orgAlias: 'Business Unit Alias',
275
- orgDesc: 'Business Unit Descript',
276
-
277
- organizationName: 'Organization Name',
278
- organizationCode: 'Organization Code',
279
-
280
291
  lovCode: 'LovCode',
281
292
  lovName: 'lovName',
282
293
  valueField: 'valueField',