@utogether/udp-core 2.0.0-beta.5 → 2.0.0-beta.7

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 (79) hide show
  1. package/dist/{403-y4Id7pky.js → 403-CNiAnTla.js} +1 -1
  2. package/dist/{404-DdxstlUr.js → 404-BHi3Ej7Z.js} +1 -1
  3. package/dist/{500-BpsDn21g.js → 500-CTYskumb.js} +1 -1
  4. package/dist/{AuthorityInfo-0CnlrZVd.js → AuthorityInfo-BjKduzRg.js} +1 -1
  5. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-D5cXM84w.js → AuthorityInfo.vue_vue_type_style_index_0_lang-CEekMsFF.js} +1 -1
  6. package/dist/{Company-BPAqJfZm.js → Company-B1xm0v-1.js} +3 -3
  7. package/dist/{CompanyPanel-CCeM96w4.js → CompanyPanel-Bk3gucNe.js} +1 -1
  8. package/dist/{Department-BsLrIIrS.js → Department-Cd8zo-JT.js} +3 -3
  9. package/dist/{DepartmentPanel-B2YqwLmq.js → DepartmentPanel-ePvnyT6M.js} +1 -1
  10. package/dist/{DesignPanel-CVSOCMvU.js → DesignPanel--qm9mgjH.js} +1 -1
  11. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-Dte8DQnU.js → DesignPanel.vue_vue_type_style_index_0_lang-pZYzFbq4.js} +2 -2
  12. package/dist/{DictView-CKVpPtFg.js → DictView-B0NgfU0j.js} +10 -10
  13. package/dist/{InvOrganization-BBODO8aK.js → InvOrganization-BE1g-iwW.js} +1 -1
  14. package/dist/{Org-BYRi0OAt.js → Org-B3VzhliT.js} +1 -1
  15. package/dist/{Preview-COI8NwWh.js → Preview-Ch-MYGp4.js} +1 -1
  16. package/dist/{ReportDefine-Dbh_8ykf.js → ReportDefine-CUuKlZ3p.js} +1 -1
  17. package/dist/{ReportDesign-DOeKYL9V.js → ReportDesign-Bq_rcYCK.js} +2 -2
  18. package/dist/{ReportQuery-Bb4r9lNR.js → ReportQuery-BRSA-lSg.js} +1 -1
  19. package/dist/{ReportQueryFrom-CavcWtL3.js → ReportQueryFrom-b0Lxvnhp.js} +1 -1
  20. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-tuLRWEK9.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-R_mfmI7C.js} +1 -1
  21. package/dist/{ReportTemplate-C9NzPxM4.js → ReportTemplate-CZ8LChJM.js} +1 -1
  22. package/dist/{Role-Bqt4d9Lz.js → Role-mezU2yUG.js} +3 -3
  23. package/dist/{RoleAssign-CWcytVz3.js → RoleAssign-C23uEQ_b.js} +3 -3
  24. package/dist/{RolePanel-DlU0aCnL.js → RolePanel-7iBT-us-.js} +1 -1
  25. package/dist/{RolePanel-Di5nsMqt.js → RolePanel-BLML9HOE.js} +1 -1
  26. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-hzbUepuW.js → RolePanel.vue_vue_type_script_setup_true_lang-C5T9Unjq.js} +1 -1
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BOq0iJsT.js → RolePanel.vue_vue_type_script_setup_true_lang-Dxc4V1V8.js} +3 -3
  28. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-Bg3rg4P4.js → ScrollPanel.vue_vue_type_style_index_0_lang-DF9mIgWs.js} +32 -31
  29. package/dist/Staff-B2bI3_H2.js +26 -0
  30. package/dist/{StaffInfo-C6lDK0S_.js → StaffInfo-CIAehJfI.js} +1 -1
  31. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-YRJm87-b.js → StaffInfo.vue_vue_type_script_setup_true_lang-D9VkkiTZ.js} +1 -1
  32. package/dist/{StaffPanel-WNpg0HWl.js → StaffPanel-dXSv0PI3.js} +1 -1
  33. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-azLpvFRo.js → StaffPanel.vue_vue_type_script_setup_true_lang-DoU9krA4.js} +61 -49
  34. package/dist/{SysUser-Dph6Qi_a.js → SysUser-DxKpVGLT.js} +2 -2
  35. package/dist/{SysUserPanel-Iz024NS_.js → SysUserPanel-Ci_Ep8mq.js} +1 -1
  36. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-D8GUQHic.js → SysUserPanel.vue_vue_type_script_setup_true_lang-gzipEh3A.js} +1 -1
  37. package/dist/{SystemMenu-6mTYGwbK.js → SystemMenu-B_VBlI1Z.js} +2 -2
  38. package/dist/{UserInfo-RQ7VgSbk.js → UserInfo-DF0fggCn.js} +1 -1
  39. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-BYp2-i9R.js → UserInfo.vue_vue_type_style_index_0_lang-b-DOPLHD.js} +1 -1
  40. package/dist/{childView-B8L4By2o.js → childView-62rEczLw.js} +1 -1
  41. package/dist/{childView-nCa8t4tr.js → childView-DhDitM7p.js} +1 -1
  42. package/dist/{childView.vue_vue_type_style_index_0_lang-DDx9z61J.js → childView.vue_vue_type_style_index_0_lang-DwtD74xk.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-Bl1MzDS9.js → childView.vue_vue_type_style_index_0_lang-b5hnKDbO.js} +26 -23
  44. package/dist/{code-rule-8dQLPHni.js → code-rule-CabvTCWH.js} +1 -1
  45. package/dist/core.es.js +1 -1
  46. package/dist/{cron-task-aDBWT_Uh.js → cron-task-DXfxcgr-.js} +1 -1
  47. package/dist/{frameView-DM3flfo5.js → frameView-DkFBCQIT.js} +1 -1
  48. package/dist/{index-ClHeZ3q4.js → index-D7hSr6Dw.js} +1211 -1201
  49. package/dist/{layout-home-DNPOu6R4.js → layout-home-B7Ex_WUd.js} +11 -11
  50. package/dist/{layoutView-Ymyja_uK.js → layoutView-DB70tHmm.js} +1 -1
  51. package/dist/{log-in-DtHf5ZcG.js → log-in-D28_avjb.js} +1 -1
  52. package/dist/{log-out-DZ8OkPM6.js → log-out-CnWdyT-h.js} +1 -1
  53. package/dist/{login-CoX7TNHE.js → login-BDFcVdJO.js} +1 -1
  54. package/dist/{login-log-DJBGJVV0.js → login-log-BEHYT0v0.js} +5 -5
  55. package/dist/{lov-view-BWtIPBNm.js → lov-view-DBxWS8bR.js} +2 -2
  56. package/dist/{menuInfo-wG5Zt00s.js → menuInfo-CznLhoJE.js} +1 -1
  57. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DiPeALce.js → menuInfo.vue_vue_type_style_index_0_lang-Dxu9tvz9.js} +1 -1
  58. package/dist/{pda-app-9b3JC2he.js → pda-app-BWJOH5h6.js} +1 -1
  59. package/dist/{resource-DiHXYgfm.js → resource-_ZAigzWr.js} +1 -1
  60. package/dist/{su-welcome-COvSPTOW.js → su-welcome-B4Y3rNQi.js} +352 -344
  61. package/dist/{sys-config-Mm50Y0LQ.js → sys-config-Bm0r674r.js} +1 -1
  62. package/dist/udp-core.css +1 -1
  63. package/package.json +1 -1
  64. package/src/components/SuScrollTree/ScrollPanel.vue +176 -170
  65. package/src/components/udp/form-upload/form-upload.vue +496 -492
  66. package/src/components/udp/utils.ts +414 -408
  67. package/src/plugins/i18n/zh.ts +2 -0
  68. package/src/plugins/vxe-table/render.tsx +995 -968
  69. package/src/views/organization/staff/Staff.vue +59 -58
  70. package/src/views/organization/staff/StaffPanel.vue +17 -3
  71. package/src/views/system/layout/layout-home.vue +3 -3
  72. package/src/views/udev/dict/DictView.vue +118 -118
  73. package/src/views/udev/dict/childView.vue +185 -184
  74. package/src/views/ufile/aggregation/File.vue +1 -3
  75. package/src/views/uhome/components/home-todo.vue +10 -5
  76. package/src/views/uhome/su-welcome.vue +2 -2
  77. package/src/views/upms/user/login-log.vue +2 -2
  78. package/vite.config.ts +83 -83
  79. package/dist/Staff-DXr2Ka1N.js +0 -25
@@ -1,184 +1,185 @@
1
- <!--
2
- * @Author: wei.li
3
- * @Date: 2022-07-15 17:02:56
4
- * @LastEditors: levi7754 levi7754@163.com
5
- * @LastEditTime: 2025-12-05 16:49:52
6
- * @Description: file contentu
7
- -->
8
- <template>
9
- <div class="u-dict-config_wrapper">
10
- <vxe-drawer
11
- :model-value="show"
12
- :title="$t('message.title.dictList', { name: record.dictName })"
13
- position="right"
14
- destroy-on-close
15
- width="67%"
16
- @close="handleClose"
17
- >
18
- <ut-grid
19
- ref="xgrid"
20
- :columns="columns"
21
- :height="height"
22
- :default-params="{ parentId: record.id }"
23
- :buttons="[{ code: 'del', auth: '/' }]"
24
- :tree-config="{ childrenField: 'children', expandAll: true }"
25
- url="/upfm/v1/lov/children"
26
- mode="form"
27
- @buttonClick="onButtonClick"
28
- />
29
- <ut-modal-form
30
- v-if="showModal"
31
- ref="xmodal"
32
- :record="subRecord"
33
- :items="subItems"
34
- width="400"
35
- height="280"
36
- :data-status="modalType"
37
- :title="$t('message.title.dictInfo', { name: record.dictName })"
38
- @close="showModal = false"
39
- @confirm="onConfirm"
40
- />
41
- </vxe-drawer>
42
- </div>
43
- </template>
44
-
45
- <script setup lang="tsx">
46
- import { ref } from 'vue';
47
- import { useI18n } from 'vue-i18n';
48
- import to from 'await-to-js';
49
- import { VxeUI } from 'vxe-pc-ui';
50
- import { successMessage, useRender } from '@utogether/utils';
51
- import { getServiceApi } from '../../../api';
52
- import { useSystemStoreHook } from '../../../store/modules/system';
53
- import { clone } from 'xe-utils';
54
-
55
- interface IProps {
56
- record: IRecord;
57
- show: boolean;
58
- }
59
-
60
- const props = withDefaults(defineProps<IProps>(), {
61
- record: (): IRecord => {
62
- return {};
63
- },
64
- show: false
65
- });
66
- const renderHook = useRender();
67
- const { t } = useI18n();
68
-
69
- const URL = '/upfm/v1/lov';
70
- const showModal = ref(false);
71
- const xgrid = ref(null);
72
- const xmodal = ref(null);
73
- const subRecord = ref<IRecord>({});
74
- const modalType = ref('add');
75
-
76
- const height = window.innerHeight - 70;
77
-
78
- const columns = [
79
- { field: 'dictCode', title: 'message.udp.dictCode', required: true, treeNode: true },
80
- { field: 'dictName', title: 'message.udp.dictName', required: true },
81
- { field: 'dictDesc', title: 'message.remark' },
82
- { field: 'remarks', title: 'message.remark' },
83
- { field: 'enabled', formatter: ['formatDict', 'SU.ENABLE'] },
84
- {
85
- field: 'operate',
86
- title: 'message.operate',
87
- width: 200,
88
- fixed: 'right',
89
- slots: {
90
- default: ({ row }) => {
91
- return [
92
- <>
93
- <ut-button
94
- content="add"
95
- status="warning"
96
- auth="edit"
97
- icon="ri-add-line"
98
- onTap={() => handleAddChild(row)}
99
- />
100
- <ut-button content="edit" status="primary" auth="edit" onTap={() => handleEdit(row)} />
101
- <ut-button content="del" status="danger" auth="del" onTap={() => handleDel(row)} />
102
- </>
103
- ];
104
- }
105
- }
106
- }
107
- ];
108
-
109
- const subItems = [
110
- { field: 'dictCode', title: 'message.udp.dictCode', required: true },
111
- { field: 'dictName', title: 'message.udp.dictName', required: true },
112
- { field: 'dictDesc', title: 'message.remark' },
113
- {
114
- field: 'enabled',
115
- itemRender: renderHook.renderSwitch({ openValue: '1', closeValue: '0', defaultValue: '1' })
116
- }
117
- ];
118
-
119
- const handleAdd = () => {
120
- showModal.value = true;
121
- modalType.value = 'add';
122
- subRecord.value = { enabled: '1', parentId: props.record.id };
123
- };
124
- const handleAddChild = row => {
125
- showModal.value = true;
126
- modalType.value = 'add';
127
- subRecord.value = { enabled: '1', parentId: row.id };
128
- };
129
- const handleDel = async row => {
130
- const type = await VxeUI.modal.confirm(t('message.delRecord'));
131
- if (type === 'confirm') {
132
- await getServiceApi().delete(URL, [row]);
133
- successMessage();
134
- xgrid.value.refreshData();
135
- }
136
- };
137
- const handleEdit = async row => {
138
- showModal.value = true;
139
- modalType.value = 'edit';
140
- subRecord.value = clone(row, true);
141
- console.log({ subRecord });
142
- };
143
-
144
- const onConfirm = async () => {
145
- const query = {
146
- ...subRecord.value,
147
- orgId: useSystemStoreHook().getOrgId,
148
- organizationId: useSystemStoreHook().getOrganizationId
149
- };
150
- xmodal.value.showLoading();
151
- const method = modalType.value === 'add' ? 'post' : 'put';
152
- const [err]: [Error, any] = await to(getServiceApi()[method](URL, [query]));
153
- xmodal.value.hiddenLoading();
154
- if (err) return;
155
- showModal.value = modalType.value !== 'edit';
156
- if (modalType.value === 'add') {
157
- const parentId = subRecord.value.parentId;
158
- subRecord.value = { enabled: '1', parentId };
159
- }
160
- successMessage();
161
- xgrid.value.refreshData();
162
- };
163
-
164
- const onButtonClick = code => {
165
- code === 'add' && handleAdd();
166
- };
167
-
168
- const emit = defineEmits<{
169
- (e: 'onClose'): void;
170
- }>();
171
-
172
- // 抽屉关闭
173
- function handleClose() {
174
- emit('onClose');
175
- }
176
- </script>
177
-
178
- <style lang="scss">
179
- .u-dict-config_wrapper {
180
- .el-drawer__header {
181
- margin-bottom: 0;
182
- }
183
- }
184
- </style>
1
+ <!--
2
+ * @Author: wei.li
3
+ * @Date: 2022-07-15 17:02:56
4
+ * @LastEditors: levi7754 levi7754@163.com
5
+ * @LastEditTime: 2026-01-14 10:21:33
6
+ * @Description: file contentu
7
+ -->
8
+ <template>
9
+ <div class="u-dict-config_wrapper">
10
+ <vxe-drawer
11
+ :model-value="show"
12
+ :title="$t('message.title.dictList', { name: record.dictName })"
13
+ position="right"
14
+ destroy-on-close
15
+ width="67%"
16
+ @close="handleClose"
17
+ >
18
+ <ut-grid
19
+ ref="xgrid"
20
+ :columns="columns"
21
+ :height="height"
22
+ :default-params="{ parentId: record.id }"
23
+ :buttons="[{ code: 'del', auth: '/' }]"
24
+ :tree-config="{ childrenField: 'children', expandAll: true }"
25
+ url="/upfm/v1/lov/children"
26
+ mode="form"
27
+ @buttonClick="onButtonClick"
28
+ />
29
+ <ut-modal-form
30
+ v-if="showModal"
31
+ ref="xmodal"
32
+ :record="subRecord"
33
+ :items="subItems"
34
+ width="400"
35
+ height="320"
36
+ :data-status="modalType"
37
+ :title="$t('message.title.dictInfo', { name: record.dictName })"
38
+ @close="showModal = false"
39
+ @confirm="onConfirm"
40
+ />
41
+ </vxe-drawer>
42
+ </div>
43
+ </template>
44
+
45
+ <script setup lang="tsx">
46
+ import { ref } from 'vue';
47
+ import { useI18n } from 'vue-i18n';
48
+ import to from 'await-to-js';
49
+ import { VxeUI } from 'vxe-pc-ui';
50
+ import { successMessage, useRender } from '@utogether/utils';
51
+ import { getServiceApi } from '../../../api';
52
+ import { useSystemStoreHook } from '../../../store/modules/system';
53
+ import { clone } from 'xe-utils';
54
+
55
+ interface IProps {
56
+ record: IRecord;
57
+ show: boolean;
58
+ }
59
+
60
+ const props = withDefaults(defineProps<IProps>(), {
61
+ record: (): IRecord => {
62
+ return {};
63
+ },
64
+ show: false
65
+ });
66
+ const renderHook = useRender();
67
+ const { t } = useI18n();
68
+
69
+ const URL = '/upfm/v1/lov';
70
+ const showModal = ref(false);
71
+ const xgrid = ref(null);
72
+ const xmodal = ref(null);
73
+ const subRecord = ref<IRecord>({});
74
+ const modalType = ref('add');
75
+
76
+ const height = window.innerHeight - 70;
77
+
78
+ const columns = [
79
+ { field: 'dictCode', title: 'message.udp.dictCode', required: true, treeNode: true },
80
+ { field: 'dictName', title: 'message.udp.dictName', required: true },
81
+ { field: 'dictDesc', title: 'message.udp.dictDesc' },
82
+ { field: 'remarks', title: 'message.remark' },
83
+ { field: 'enabled', formatter: ['formatDict', 'SU.ENABLE'] },
84
+ {
85
+ field: 'operate',
86
+ title: 'message.operate',
87
+ width: 200,
88
+ fixed: 'right',
89
+ slots: {
90
+ default: ({ row }) => {
91
+ return [
92
+ <>
93
+ <ut-button
94
+ content="add"
95
+ status="warning"
96
+ auth="edit"
97
+ icon="ri-add-line"
98
+ onTap={() => handleAddChild(row)}
99
+ />
100
+ <ut-button content="edit" status="primary" auth="edit" onTap={() => handleEdit(row)} />
101
+ <ut-button content="del" status="danger" auth="del" onTap={() => handleDel(row)} />
102
+ </>
103
+ ];
104
+ }
105
+ }
106
+ }
107
+ ];
108
+
109
+ const subItems = [
110
+ { field: 'dictCode', title: 'message.udp.dictCode', required: true },
111
+ { field: 'dictName', title: 'message.udp.dictName', required: true },
112
+ { field: 'dictDesc', title: 'message.udp.dictDesc' },
113
+ { field: 'remarks', title: 'message.remark' },
114
+ {
115
+ field: 'enabled',
116
+ itemRender: renderHook.renderSwitch({ openValue: '1', closeValue: '0', defaultValue: '1' })
117
+ }
118
+ ];
119
+
120
+ const handleAdd = () => {
121
+ showModal.value = true;
122
+ modalType.value = 'add';
123
+ subRecord.value = { enabled: '1', parentId: props.record.id };
124
+ };
125
+ const handleAddChild = row => {
126
+ showModal.value = true;
127
+ modalType.value = 'add';
128
+ subRecord.value = { enabled: '1', parentId: row.id };
129
+ };
130
+ const handleDel = async row => {
131
+ const type = await VxeUI.modal.confirm(t('message.delRecord'));
132
+ if (type === 'confirm') {
133
+ await getServiceApi().delete(URL, [row]);
134
+ successMessage();
135
+ xgrid.value.refreshData();
136
+ }
137
+ };
138
+ const handleEdit = async row => {
139
+ showModal.value = true;
140
+ modalType.value = 'edit';
141
+ subRecord.value = clone(row, true);
142
+ console.log({ subRecord });
143
+ };
144
+
145
+ const onConfirm = async () => {
146
+ const query = {
147
+ ...subRecord.value,
148
+ orgId: useSystemStoreHook().getOrgId,
149
+ organizationId: useSystemStoreHook().getOrganizationId
150
+ };
151
+ xmodal.value.showLoading();
152
+ const method = modalType.value === 'add' ? 'post' : 'put';
153
+ const [err]: [Error, any] = await to(getServiceApi()[method](URL, [query]));
154
+ xmodal.value.hiddenLoading();
155
+ if (err) return;
156
+ showModal.value = modalType.value !== 'edit';
157
+ if (modalType.value === 'add') {
158
+ const parentId = subRecord.value.parentId;
159
+ subRecord.value = { enabled: '1', parentId };
160
+ }
161
+ successMessage();
162
+ xgrid.value.refreshData();
163
+ };
164
+
165
+ const onButtonClick = code => {
166
+ code === 'add' && handleAdd();
167
+ };
168
+
169
+ const emit = defineEmits<{
170
+ (e: 'onClose'): void;
171
+ }>();
172
+
173
+ // 抽屉关闭
174
+ function handleClose() {
175
+ emit('onClose');
176
+ }
177
+ </script>
178
+
179
+ <style lang="scss">
180
+ .u-dict-config_wrapper {
181
+ .el-drawer__header {
182
+ margin-bottom: 0;
183
+ }
184
+ }
185
+ </style>
@@ -44,9 +44,7 @@ const columns = [
44
44
  slots: {
45
45
  default: ({ row }) => {
46
46
  if (['png', 'jpeg', 'jpg'].includes(row.fileExtend)) {
47
- return [
48
- <ut-button content="review" icon="ri-search-line-plus" onTap={() => handlePreview(row)} />
49
- ];
47
+ return [<ut-button content="review" icon="ri-search-line-plus" onTap={() => handlePreview(row)} />];
50
48
  } else {
51
49
  return [
52
50
  <ut-button
@@ -2,7 +2,7 @@
2
2
  * @Author: levi7754 levi7754@163.com
3
3
  * @Date: 2025-11-05 18:11:29
4
4
  * @LastEditors: levi7754 levi7754@163.com
5
- * @LastEditTime: 2026-01-06 18:17:25
5
+ * @LastEditTime: 2026-01-08 14:30:52
6
6
  * @FilePath: \udp-crm\packages\udp-crm\src\views\uflow\todo\flow-todo.vue
7
7
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
8
  -->
@@ -20,10 +20,12 @@
20
20
  <ut-grid
21
21
  ref="xgrid"
22
22
  :columns="columns"
23
- :editable="false"
24
23
  :data="data.todo"
25
24
  :events="events"
25
+ :editable="false"
26
+ :need-export="false"
26
27
  :proxy-config="{ enabled: false }"
28
+ :toolbar-config="{ enabled: false }"
27
29
  height="360"
28
30
  />
29
31
  </vxe-tab-pane>
@@ -38,10 +40,12 @@
38
40
  <ut-grid
39
41
  ref="ygrid"
40
42
  :columns="columns"
41
- :editable="false"
42
43
  :data="data.finish"
43
44
  :events="events"
45
+ :editable="false"
46
+ :need-export="false"
44
47
  :proxy-config="{ enabled: false }"
48
+ :toolbar-config="{ enabled: false }"
45
49
  height="360"
46
50
  />
47
51
  />
@@ -57,10 +61,11 @@
57
61
  import { useRouter } from 'vue-router';
58
62
  import { ref, onMounted, nextTick } from 'vue';
59
63
 
60
- import { useSystemStoreHook } from '../../../store/modules/system';
64
+ import { cookies } from '@utogether/utils';
61
65
  import { isEmpty } from 'xe-utils';
62
66
  import to from 'await-to-js';
63
67
  import { getServiceApi } from '../../../api';
68
+ import { kLOGINER } from '../../../contant';
64
69
  const router = useRouter();
65
70
 
66
71
  const xgrid = ref(null);
@@ -132,7 +137,7 @@ const getDataList = async (type, searchField) => {
132
137
  const params = {
133
138
  ...data.value[`${activeName.value}Page`],
134
139
  searchField,
135
- userName: useSystemStoreHook().getUserInfo.userName
140
+ userName: cookies.get(kLOGINER)
136
141
  };
137
142
  const [err, res]: any = await to(getServiceApi().post(url + uri, params));
138
143
  if (err) return;
@@ -2,7 +2,7 @@
2
2
  * @Author: levi7754 levi7754@163.com
3
3
  * @Date: 2023-11-02 10:04:05
4
4
  * @LastEditors: levi7754 levi7754@163.com
5
- * @LastEditTime: 2026-01-07 10:56:02
5
+ * @LastEditTime: 2026-01-19 10:48:37
6
6
  * @FilePath: /front-web-mes/src/views/uhome/su-welcome.vue
7
7
  * @Description: 欢迎页面
8
8
  -->
@@ -177,7 +177,7 @@ const getUserLog = () => {
177
177
  const getLayoutList = async () => {
178
178
  const api = getServiceApi();
179
179
  const [err, res]: any = await to(
180
- api.get('/ucrm/sysHomeConfig', { pageSize: 1000, pageNum: 1, enabled: '1', isRoleFilter: 'Y' })
180
+ api.get('/upfm/sysHomeConfig', { pageSize: 1000, pageNum: 1, enabled: '1', isRoleFilter: 'Y' })
181
181
  );
182
182
  if (err) return;
183
183
  systemLayout;
@@ -30,7 +30,7 @@ import { ref } from 'vue';
30
30
 
31
31
  const formItems = [
32
32
  { field: 'employeeName' },
33
- { field: 'userName', title: 'message.udp.userName' },
33
+ { field: 'userName', title: 'message.udp.loginUser' },
34
34
  { field: 'operatingSystem', title: 'message.udp.operatingSystem' },
35
35
  { field: 'browserVersion', title: 'message.udp.browserVersion' },
36
36
  {
@@ -44,7 +44,7 @@ const formItems = [
44
44
  const xgrid = ref(null);
45
45
  const columns = [
46
46
  { field: 'employeeName', minWidth: 120 },
47
- { field: 'userName', title: 'message.udp.userName', width: 220 },
47
+ { field: 'userName', title: 'message.udp.loginUser', width: 220 },
48
48
  { field: 'loginTime', title: 'message.udp.loginTime', width: 160 },
49
49
  { field: 'operatingSystem', title: 'message.udp.operatingSystem', width: 120 },
50
50
  { field: 'browser', title: 'message.udp.browser', width: 130 },
package/vite.config.ts CHANGED
@@ -1,83 +1,83 @@
1
- /*
2
- * @Author: wei.li
3
- * @Date: 2021-12-23 17:33:21
4
- * @LastEditors: levi7754 levi7754@163.com
5
- * @LastEditTime: 2025-07-26 09:34:47
6
- * @Description: file content
7
- */
8
- import { resolve } from 'path';
9
- import { getPluginsList } from './build/plugins';
10
- /** 当前执行node命令时文件夹的地址(工作目录) */
11
- const root: string = process.cwd();
12
-
13
- /** 路径查找 */
14
- const pathResolve = (dir: string): string => {
15
- return resolve(__dirname, '.', dir);
16
- };
17
-
18
- /** 设置别名 */
19
- const alias: Record<string, string> = {
20
- '@': pathResolve('src'),
21
- '@build': pathResolve('build')
22
- };
23
-
24
- export default () => {
25
- return {
26
- root,
27
- resolve: {
28
- alias
29
- },
30
- plugins: getPluginsList(),
31
- // https://cn.vitejs.dev/config/dep-optimization-options.html#dep-optimization-options
32
- build: {
33
- // https://cn.vitejs.dev/guide/build.html#browser-compatibility
34
- target: 'modules',
35
- sourcemap: false,
36
- rollupOptions: {
37
- //忽略文件
38
- external: [
39
- 'echarts',
40
- 'vue',
41
- 'exceljs',
42
- 'dayjs',
43
- 'animate.css',
44
- 'pinia',
45
- 'vxe-table',
46
- 'vxe-pc-ui',
47
- 'xe-utils',
48
- 'vue-i18n',
49
- 'vuedraggable',
50
- '@vueuse/core',
51
- '@vueuse/motion',
52
- 'element-plus',
53
- '@utogether/print',
54
- '@utogether/utils',
55
- '@utogether/directive',
56
- '@utogether/components',
57
- 'html-to-image',
58
- '@logicflow/core',
59
- '@logicflow/extension',
60
- 'remixicon',
61
- 'socket.io-client',
62
- 'crypto-js',
63
- 'version-rocket',
64
- 'vue-tippy',
65
- 'vue-router',
66
- '@iconify/vue',
67
- 'qrcode',
68
- 'element-resize-detector',
69
- '**/udp/**'
70
- ]
71
- },
72
- lib: {
73
- entry: resolve(__dirname, 'index.ts'),
74
- formats: ['es'],
75
- name: '@utogether/udp-core',
76
- fileName: format => `core.${format}.js`
77
- },
78
- define: {
79
- to: null
80
- }
81
- }
82
- };
83
- };
1
+ /*
2
+ * @Author: wei.li
3
+ * @Date: 2021-12-23 17:33:21
4
+ * @LastEditors: levi7754 levi7754@163.com
5
+ * @LastEditTime: 2026-01-08 09:43:49
6
+ * @Description: file content
7
+ */
8
+ import { resolve } from 'path';
9
+ import { getPluginsList } from './build/plugins';
10
+ /** 当前执行node命令时文件夹的地址(工作目录) */
11
+ const root: string = process.cwd();
12
+
13
+ /** 路径查找 */
14
+ const pathResolve = (dir: string): string => {
15
+ return resolve(__dirname, '.', dir);
16
+ };
17
+
18
+ /** 设置别名 */
19
+ const alias: Record<string, string> = {
20
+ '@': pathResolve('src'),
21
+ '@build': pathResolve('build')
22
+ };
23
+
24
+ export default () => {
25
+ return {
26
+ root,
27
+ resolve: {
28
+ alias
29
+ },
30
+ plugins: getPluginsList(),
31
+ // https://cn.vitejs.dev/config/dep-optimization-options.html#dep-optimization-options
32
+ build: {
33
+ // https://cn.vitejs.dev/guide/build.html#browser-compatibility
34
+ target: 'modules',
35
+ sourcemap: false,
36
+ rollupOptions: {
37
+ //忽略文件
38
+ external: [
39
+ 'echarts',
40
+ 'vue',
41
+ 'exceljs',
42
+ 'dayjs',
43
+ 'animate.css',
44
+ 'pinia',
45
+ 'vxe-table',
46
+ 'vxe-pc-ui',
47
+ 'xe-utils',
48
+ 'vue-i18n',
49
+ 'vuedraggable',
50
+ '@vueuse/core',
51
+ '@vueuse/motion',
52
+ 'element-plus',
53
+ '@utogether/print',
54
+ '@utogether/utils',
55
+ '@utogether/directive',
56
+ '@utogether/components',
57
+ 'html-to-image',
58
+ '@logicflow/core',
59
+ '@logicflow/extension',
60
+ 'remixicon',
61
+ 'socket.io-client',
62
+ 'crypto-js',
63
+ 'version-rocket',
64
+ 'vue-tippy',
65
+ 'vue-router',
66
+ '@iconify/vue',
67
+ 'qrcode',
68
+ 'element-resize-detector',
69
+ '**/udp/**'
70
+ ]
71
+ },
72
+ lib: {
73
+ entry: resolve(__dirname, 'index.ts'),
74
+ formats: ['es'],
75
+ name: '@utogether/udp-core',
76
+ fileName: format => `core.${format}.js`
77
+ },
78
+ define: {
79
+ to: null
80
+ }
81
+ }
82
+ };
83
+ };