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

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 (183) hide show
  1. package/dist/403-CyoOD-Ik.js +65 -0
  2. package/dist/404-Ch_OHTw0.js +65 -0
  3. package/dist/500-Cf9am7HK.js +67 -0
  4. package/dist/AuthorityInfo-BJ427cqG.js +4 -0
  5. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-D9y7AwbB.js +99 -0
  6. package/dist/AuthorityPanel-lVnZ5bce.js +4 -0
  7. package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-nsfhDlvV.js +113 -0
  8. package/dist/Company-qo-lKPkv.js +25 -0
  9. package/dist/CompanyPanel-DkKWAKvY.js +204 -0
  10. package/dist/DataSet-iBHzs75s.js +147 -0
  11. package/dist/Department-CHUQByKX.js +25 -0
  12. package/dist/DepartmentPanel-C742dfOO.js +248 -0
  13. package/dist/DesignPanel-D9oE5R7m.js +4 -0
  14. package/dist/DesignPanel.vue_vue_type_style_index_0_lang-hYldVEbo.js +1097 -0
  15. package/dist/DictView-CrFXprP9.js +110 -0
  16. package/dist/InvOrganization-Cz8SzIgs.js +73 -0
  17. package/dist/Org-Bzt6yKox.js +38 -0
  18. package/dist/Preview-jonigfMQ.js +48 -0
  19. package/dist/ReportDefine-BpiM5Ovq.js +10 -0
  20. package/dist/ReportDesign-fp09cXJ7.js +164 -0
  21. package/dist/ReportQuery-52ZP1PYP.js +74 -0
  22. package/dist/ReportQueryFrom-DSYavJb1.js +4 -0
  23. package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DBGYEp0u.js +177 -0
  24. package/dist/ReportTemplate-CA_UW0eD.js +161 -0
  25. package/dist/Role-DqOt8Bk0.js +25 -0
  26. package/dist/RoleAssign-BdxhefhQ.js +26 -0
  27. package/dist/RolePanel-2gZ3H0ET.js +4 -0
  28. package/dist/RolePanel-BsNd0svJ.js +4 -0
  29. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DLOwgF99.js +152 -0
  30. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DmzD9kab.js +131 -0
  31. package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-B9ptUMeI.js +99 -0
  32. package/dist/Staff-D3L8fEoY.js +26 -0
  33. package/dist/StaffInfo-DYRw6ZYJ.js +4 -0
  34. package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-xqEOQnMs.js +107 -0
  35. package/dist/StaffPanel-DkrNH6Px.js +4 -0
  36. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-BPBMnliy.js +152 -0
  37. package/dist/SysUser-Bl1-cIpJ.js +15 -0
  38. package/dist/SysUserPanel-yxNLaBwt.js +4 -0
  39. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BDcsgSl5.js +352 -0
  40. package/dist/SystemMenu-C4_Arn12.js +155 -0
  41. package/dist/UserInfo-QcNwJCUR.js +4 -0
  42. package/dist/UserInfo.vue_vue_type_style_index_0_lang-DLIeUphX.js +159 -0
  43. package/dist/childView-B23DEO2u.js +4 -0
  44. package/dist/childView-saDZQv9x.js +4 -0
  45. package/dist/childView.vue_vue_type_style_index_0_lang-RsKR6CAC.js +182 -0
  46. package/dist/childView.vue_vue_type_style_index_0_lang-ZFEfavUY.js +142 -0
  47. package/dist/code-rule-2_Ihx_by.js +147 -0
  48. package/dist/core.es.js +26 -6
  49. package/dist/cron-task-BFOPJQIk.js +134 -0
  50. package/dist/flow-task-PoDnE_kE.js +10 -0
  51. package/dist/frameView-f7Ya0Knj.js +43 -0
  52. package/dist/index-BpdTDaTk.js +3213 -0
  53. package/dist/layout-home-v3DPJ7rB.js +231 -0
  54. package/dist/layoutView-DZHoQDH1.js +3190 -0
  55. package/dist/log-in-BPAMJTwH.js +115 -0
  56. package/dist/log-out-DZACF0jg.js +129 -0
  57. package/dist/login-B8cwozax.js +216 -0
  58. package/dist/login-log-CVvRgZSu.js +70 -0
  59. package/dist/lov-view-Ba7Y7xy0.js +98 -0
  60. package/dist/menuInfo-BpRKFYK8.js +4 -0
  61. package/dist/menuInfo.vue_vue_type_style_index_0_lang-DJ5sUC6m.js +359 -0
  62. package/dist/pda-app-C0jJecrL.js +706 -0
  63. package/dist/redirect-DTz8GSnv.js +15 -0
  64. package/dist/resource-BG22Cw4P.js +97 -0
  65. package/dist/su-welcome-DaxhbrC6.js +879 -0
  66. package/dist/sys-config-CG2fMtak.js +384 -0
  67. package/dist/udp-core.css +1 -2
  68. package/dist/useNav-_u2UAQWk.js +84 -0
  69. package/dist/utogether-MlnyYtNS.js +4 -0
  70. package/dist/wecom-push-B75FLee5.js +70 -0
  71. package/index.ts +54 -50
  72. package/package.json +21 -21
  73. package/src/App.vue +79 -78
  74. package/src/api/http.ts +10 -4
  75. package/src/api/index.ts +51 -51
  76. package/src/api/user.ts +64 -64
  77. package/src/components/SuQrcode/src/index.tsx +231 -236
  78. package/src/components/udp/content/index.vue +93 -93
  79. package/src/components/udp/form-upload/form-upload.vue +496 -496
  80. package/src/components/udp/grid/index.vue +643 -544
  81. package/src/components/udp/index.ts +2 -1
  82. package/src/components/udp/modal-form/index.vue +326 -0
  83. package/src/components/udp/utils.ts +420 -420
  84. package/src/layout/components/lay-navbar/index.vue +240 -240
  85. package/src/layout/components/lay-panel/index.vue +2 -6
  86. package/src/layout/components/lay-search/components/SearchModal.vue +185 -181
  87. package/src/layout/components/lay-sidebar/mixNav.vue +261 -261
  88. package/src/layout/components/lay-sidebar/sidebarItem.vue +199 -195
  89. package/src/layout/components/lay-sidebar/vertical.vue +92 -92
  90. package/src/layout/layoutView.vue +1 -0
  91. package/src/main.ts +111 -109
  92. package/src/plugins/i18n/zh.ts +5 -1
  93. package/src/plugins/vxe-table/index.ts +116 -116
  94. package/src/router/index.ts +5 -34
  95. package/src/router/utils.ts +434 -430
  96. package/src/store/modules/permission.ts +1 -1
  97. package/src/store/modules/system.ts +193 -186
  98. package/src/style/print-lock.css +380 -375
  99. package/src/style/suprint.css +990 -985
  100. package/src/style/vxetable.scss +372 -364
  101. package/src/utils/authority/index.ts +19 -2
  102. package/src/utils/dataFormat/index.ts +309 -222
  103. package/src/utils/udp/http/index.ts +126 -67
  104. package/src/utils/udp/http/types.d.ts +15 -14
  105. package/src/views/login/login-view.vue +4 -21
  106. package/src/views/organization/department/DepartmentPanel.vue +3 -4
  107. package/src/views/system/sys/sys-config.vue +344 -344
  108. package/src/views/uhome/components/home-todo.vue +191 -178
  109. package/src/views/uhome/dynamic-card.vue +31 -31
  110. package/src/views/uhome/su-welcome.vue +310 -310
  111. package/src/views/ulogin/login.vue +292 -296
  112. package/src/views/urpt/design/DesignPanel.vue +538 -507
  113. package/src/views/urpt/design/print-data.ts +39 -59
  114. package/tsconfig.json +2 -3
  115. package/types/global.d.ts +234 -234
  116. package/vite.config.ts +2 -1
  117. package/dist/403-D6Wb3JJh.js +0 -72
  118. package/dist/404-B_HNbPNV.js +0 -72
  119. package/dist/500-BMemTTy1.js +0 -77
  120. package/dist/AuthorityInfo-6wHxwiFM.js +0 -91
  121. package/dist/AuthorityPanel-OqF_DvXA.js +0 -98
  122. package/dist/Company-BLXSfow0.js +0 -21
  123. package/dist/CompanyPanel-B4kRZ5Cg.js +0 -199
  124. package/dist/DataSet-CuGZcKC-.js +0 -141
  125. package/dist/Department-oFhsa7cd.js +0 -21
  126. package/dist/DepartmentPanel-B1UGpu-r.js +0 -242
  127. package/dist/DepartmentPanel-BL58AdoT.js +0 -2
  128. package/dist/DesignPanel-DmkFVw1N.js +0 -1196
  129. package/dist/DictView-CC5yMzOq.js +0 -100
  130. package/dist/File-WJXjGYxr.js +0 -89
  131. package/dist/InvOrganization-BwMmD8Ua.js +0 -76
  132. package/dist/Org-HgnOWubi.js +0 -76
  133. package/dist/Preview-CAzWxLmP.js +0 -45
  134. package/dist/ReIcon-DecitXmg.js +0 -413
  135. package/dist/ReportDefine-BgLM-Rjk.js +0 -10
  136. package/dist/ReportDesign-DwchGG2P.js +0 -158
  137. package/dist/ReportQuery-D5jaRJEn.js +0 -101
  138. package/dist/ReportQueryFrom-CNlmtYey.js +0 -198
  139. package/dist/ReportTemplate-CNcTmccs.js +0 -162
  140. package/dist/Role-Be8WfdCA.js +0 -21
  141. package/dist/RoleAssign-CtehGAUf.js +0 -22
  142. package/dist/RolePanel-CAwITg_q.js +0 -131
  143. package/dist/RolePanel-SN0FGFZ7.js +0 -176
  144. package/dist/ScrollPanel-DW30pGz1.js +0 -88
  145. package/dist/Staff-V2YsNKcj.js +0 -22
  146. package/dist/StaffInfo-CKRPW0r4.js +0 -149
  147. package/dist/StaffPanel-BxcgMg7u.js +0 -143
  148. package/dist/SysUser-Dxyj5w5m.js +0 -12
  149. package/dist/SysUserPanel-DI6CWcZo.js +0 -365
  150. package/dist/SystemMenu-BBHREM8T.js +0 -154
  151. package/dist/UserInfo-BMVQ0xwE.js +0 -194
  152. package/dist/_plugin-vue_export-helper-C6QCLu9I.js +0 -8
  153. package/dist/api-BFNxcxSN.js +0 -30
  154. package/dist/authority-BJFEUdrh.js +0 -20
  155. package/dist/await-to-js.es5-DkWYmPXW.js +0 -10
  156. package/dist/childView-BBjPEraB.js +0 -184
  157. package/dist/childView-DNqG2UVm.js +0 -181
  158. package/dist/code-rule-QFrhqFrW.js +0 -151
  159. package/dist/contant-Q77dU_V3.js +0 -4
  160. package/dist/cron-task-BpUDKEAU.js +0 -131
  161. package/dist/flow-task-DAc2NrDU.js +0 -11
  162. package/dist/frameView-Di0zJZUR.js +0 -39
  163. package/dist/layout-home-BVp7vYLR.js +0 -239
  164. package/dist/layoutView-B6Mx2ERA.js +0 -2662
  165. package/dist/log-in-BrNB0mLz.js +0 -117
  166. package/dist/log-out-dYfqvzy6.js +0 -111
  167. package/dist/login-D_Hjy3Jd.js +0 -231
  168. package/dist/login-log-CJak-ANA.js +0 -79
  169. package/dist/lov-view-DM5Nm5tW.js +0 -95
  170. package/dist/menuInfo-BlOY1KZW.js +0 -346
  171. package/dist/mitt-CQgI7DYU.js +0 -27
  172. package/dist/pda-app-CA7YI37u.js +0 -589
  173. package/dist/redirect-N0k4tImU.js +0 -16
  174. package/dist/resource-CfQTHFcs.js +0 -94
  175. package/dist/su-welcome-DVD3S_du.js +0 -799
  176. package/dist/sys-config-Ddb3vBpK.js +0 -316
  177. package/dist/system-Cm3lyBas.js +0 -1528
  178. package/dist/udp-core-DaQd5CF1.js +0 -2028
  179. package/dist/useDataThemeChange-DJ4K3VGp.js +0 -226
  180. package/dist/useNav-BhOJIdrJ.js +0 -106
  181. package/dist/utogether-l7JXs4Lv.js +0 -4
  182. package/dist/water-mark-WDQZ9YqB.js +0 -119
  183. package/dist/wecom-push-kWkAVRCj.js +0 -77
@@ -2,7 +2,7 @@
2
2
  * @Author: wei.li
3
3
  * @Date: 2021-11-17 16:02:30
4
4
  * @LastEditors: levi7754 levi7754@163.com
5
- * @LastEditTime: 2025-10-19 11:58:29
5
+ * @LastEditTime: 2026-09-09 11:33:23
6
6
  * @Description: file content
7
7
  */
8
8
  import { defineStore } from 'pinia';
@@ -1,186 +1,193 @@
1
- /*
2
- * @Author: wei.li
3
- * @Date: 2021-11-17 16:40:44
4
- * @LastEditors: wei.li
5
- * @LastEditTime: 2024-06-26 15:48:18
6
- * @Description: file content
7
- */
8
- import { defineStore } from 'pinia';
9
- import { store } from '../index';
10
- import { cookies, storageLocal } from '@utogether/utils';
11
- import { usePermissionStoreHook } from './permission';
12
-
13
- interface ISystemState {
14
- baseURL: string;
15
- userInfo: IRecord;
16
- systemInfo: IRecord;
17
- dataDict: IRecord;
18
- sysConfig: IRecord;
19
- menui18n: object;
20
- i18n: object;
21
- orgList: IRecord[];
22
- dicts: IRecord[];
23
- invOrgList: IRecord[];
24
- homeMenus: IRecord[];
25
- sessionKey: string;
26
- userName: string;
27
- orgId: string;
28
- organizationId: string;
29
- password: string;
30
- isAdminRole: boolean;
31
- }
32
-
33
- export const useSystemStore = defineStore('udp-system', {
34
- state: (): ISystemState => ({
35
- baseURL: '',
36
- userInfo: {},
37
- systemInfo: {},
38
- dataDict: {},
39
- sysConfig: {},
40
- menui18n: {},
41
- i18n: {},
42
- dicts: [],
43
- orgList: [],
44
- invOrgList: [],
45
- homeMenus: [],
46
- sessionKey: '',
47
- orgId: '',
48
- userName: '',
49
- organizationId: '',
50
- password: '',
51
- isAdminRole: false
52
- }),
53
- getters: {
54
- getBaseURL() {
55
- return this.baseURL;
56
- },
57
- getUserInfo() {
58
- return this.userInfo;
59
- },
60
- getSysConfig() {
61
- return this.sysConfig;
62
- },
63
- getEmployee() {
64
- return this.employee;
65
- },
66
- getSessionKey() {
67
- return this.sessionKey;
68
- },
69
- getMenuI18n() {
70
- return this.menui18n;
71
- },
72
- getI18n() {
73
- return this.i18n;
74
- },
75
- getOrglist() {
76
- return this.orgList;
77
- },
78
- getOrgId() {
79
- return this.orgId;
80
- },
81
- getOrganizationId() {
82
- return this.organizationId;
83
- },
84
- getDataDict() {
85
- return this.dataDict;
86
- },
87
- getUserName() {
88
- return this.userName;
89
- },
90
- getAdminRole(state) {
91
- return state.isAdminRole;
92
- },
93
- getPassword(state) {
94
- return state.password;
95
- },
96
- getHomeMenus(state) {
97
- return state.homeMenus;
98
- },
99
- getOrganizationCode(state) {
100
- return state.invOrgList?.find(f => f.id === state.organizationId)?.organizationCode;
101
- },
102
- getOrg(state) {
103
- return state.orgList.find(f => f.id === state.orgId);
104
- }
105
- },
106
- actions: {
107
- // baseURL
108
- setBaseURL(data) {
109
- this.sessionKey = data;
110
- },
111
- setSessionKey(data) {
112
- this.sessionKey = data.access_token || data;
113
- },
114
- // sysConfig
115
- setSysConfig(sysConfig) {
116
- this.sysConfig = sysConfig;
117
- },
118
- // orgId
119
- setOrgId(orgId) {
120
- this.orgId = orgId;
121
- },
122
- setOrganizationId(organizationId) {
123
- this.organizationId = organizationId;
124
- },
125
- setMenuI18n(menui18n) {
126
- this.menui18n = menui18n;
127
- },
128
- setI18n(i18n) {
129
- this.i18n = i18n;
130
- },
131
- setUserName(userName) {
132
- this.userName = userName;
133
- },
134
- // 首页子菜单列表
135
- setHomeMenus(menus) {
136
- this.homeMenus = menus;
137
- },
138
- // 库存组织列表
139
- setInvOrgList(invOrgList) {
140
- this.invOrgList = invOrgList;
141
- },
142
- setOrgList(orgList) {
143
- this.orgList = orgList;
144
- },
145
- setPassword(password) {
146
- this.password = password;
147
- },
148
- setDict(datas) {
149
- // 数据字典
150
- this.dicts = datas;
151
- datas?.forEach(data => {
152
- this.dataDict[data.dictCode] = data;
153
- });
154
- storageLocal.setItem('kLov', this.dataDict);
155
- },
156
- // 系统信息
157
- setSystemInfo(systemInfo) {
158
- // 系统信息
159
- this.systemInfo = systemInfo;
160
- // 当前用户
161
- const employee = systemInfo.employeeList?.length ? systemInfo.employeeList[0] : '';
162
- this.userInfo = systemInfo.user || {};
163
- // 当前员工
164
- this.employee = Object.assign({}, employee, systemInfo.user);
165
- // 用户当前的业务业务实体
166
- this.orgId = systemInfo.orgId;
167
- // 用户当前库存组织
168
- this.organizationId = systemInfo.organizationId;
169
- // 用户所在的业务实体
170
- this.orgList = systemInfo.orgList;
171
- // 将公共参数缓存到cookie中
172
- const query = {
173
- orgId: systemInfo.orgId,
174
- organizationId: systemInfo.organizationId
175
- };
176
- cookies.set('kCookies_param', JSON.stringify(query));
177
- this.isAdminRole = this.employee.sysRoles.some(s => s.roleCode === 'admin' || ['管理员'].includes(s.roleName));
178
- // 缓存按钮数据权限
179
- usePermissionStoreHook().setAuthButton(systemInfo.dataMenus);
180
- }
181
- }
182
- });
183
-
184
- export function useSystemStoreHook() {
185
- return useSystemStore(store);
186
- }
1
+ /*
2
+ * @Author: wei.li
3
+ * @Date: 2021-11-17 16:40:44
4
+ * @LastEditors: wei.li
5
+ * @LastEditTime: 2024-06-26 15:48:18
6
+ * @Description: file content
7
+ */
8
+ import { defineStore } from 'pinia';
9
+ import { store } from '../index';
10
+ import { cookies, storageLocal } from '@utogether/utils';
11
+ import { usePermissionStoreHook } from './permission';
12
+
13
+ interface ISystemState {
14
+ baseURL: string;
15
+ userInfo: IRecord;
16
+ systemInfo: IRecord;
17
+ dataDict: IRecord;
18
+ sysConfig: IRecord;
19
+ menui18n: object;
20
+ i18n: object;
21
+ orgList: IRecord[];
22
+ dicts: IRecord[];
23
+ invOrgList: IRecord[];
24
+ homeMenus: IRecord[];
25
+ roleList: IRecord[];
26
+ sessionKey: string;
27
+ userName: string;
28
+ orgId: string;
29
+ organizationId: string;
30
+ password: string;
31
+ isAdminRole: boolean;
32
+ }
33
+
34
+ export const useSystemStore = defineStore('udp-system', {
35
+ state: (): ISystemState => ({
36
+ baseURL: '',
37
+ userInfo: {},
38
+ systemInfo: {},
39
+ dataDict: {},
40
+ sysConfig: {},
41
+ menui18n: {},
42
+ i18n: {},
43
+ dicts: [],
44
+ orgList: [],
45
+ invOrgList: [],
46
+ homeMenus: [],
47
+ roleList: [],
48
+ sessionKey: '',
49
+ orgId: '',
50
+ userName: '',
51
+ organizationId: '',
52
+ password: '',
53
+ isAdminRole: false
54
+ }),
55
+ getters: {
56
+ getBaseURL() {
57
+ return this.baseURL;
58
+ },
59
+ getUserInfo() {
60
+ return this.userInfo;
61
+ },
62
+ getSysConfig() {
63
+ return this.sysConfig;
64
+ },
65
+ getEmployee() {
66
+ return this.employee;
67
+ },
68
+ getSessionKey() {
69
+ return this.sessionKey;
70
+ },
71
+ getMenuI18n() {
72
+ return this.menui18n;
73
+ },
74
+ getI18n() {
75
+ return this.i18n;
76
+ },
77
+ getOrglist() {
78
+ return this.orgList;
79
+ },
80
+ getOrgId() {
81
+ return this.orgId;
82
+ },
83
+ getOrganizationId() {
84
+ return this.organizationId;
85
+ },
86
+ getDataDict() {
87
+ return this.dataDict;
88
+ },
89
+ getUserName() {
90
+ return this.userName;
91
+ },
92
+ getAdminRole(state) {
93
+ return state.isAdminRole;
94
+ },
95
+ getPassword(state) {
96
+ return state.password;
97
+ },
98
+ getHomeMenus(state) {
99
+ return state.homeMenus;
100
+ },
101
+ getRoleList(state) {
102
+ return state.roleList;
103
+ },
104
+ getOrganizationCode(state) {
105
+ return state.invOrgList?.find(f => f.id === state.organizationId)?.organizationCode;
106
+ },
107
+ getOrg(state) {
108
+ return state.orgList.find(f => f.id === state.orgId);
109
+ }
110
+ },
111
+ actions: {
112
+ // baseURL
113
+ setBaseURL(data) {
114
+ this.sessionKey = data;
115
+ },
116
+ setSessionKey(data) {
117
+ this.sessionKey = data.access_token || data;
118
+ },
119
+ // sysConfig
120
+ setSysConfig(sysConfig) {
121
+ this.sysConfig = sysConfig;
122
+ },
123
+ // orgId
124
+ setOrgId(orgId) {
125
+ this.orgId = orgId;
126
+ },
127
+ setOrganizationId(organizationId) {
128
+ this.organizationId = organizationId;
129
+ },
130
+ setMenuI18n(menui18n) {
131
+ this.menui18n = menui18n;
132
+ },
133
+ setI18n(i18n) {
134
+ this.i18n = i18n;
135
+ },
136
+ setUserName(userName) {
137
+ this.userName = userName;
138
+ },
139
+ // 首页子菜单列表
140
+ setHomeMenus(menus) {
141
+ this.homeMenus = menus;
142
+ },
143
+ // 库存组织列表
144
+ setInvOrgList(invOrgList) {
145
+ this.invOrgList = invOrgList;
146
+ },
147
+ setOrgList(orgList) {
148
+ this.orgList = orgList;
149
+ },
150
+ setPassword(password) {
151
+ this.password = password;
152
+ },
153
+ setDict(datas) {
154
+ // 数据字典
155
+ this.dicts = datas;
156
+ datas?.forEach(data => {
157
+ this.dataDict[data.dictCode] = data;
158
+ });
159
+ storageLocal.setItem('kLov', this.dataDict);
160
+ },
161
+ // 系统信息
162
+ setSystemInfo(systemInfo) {
163
+ // 系统信息
164
+ this.systemInfo = systemInfo;
165
+ // 当前用户
166
+ const employee = systemInfo.employeeList?.length ? systemInfo.employeeList[0] : '';
167
+ this.userInfo = systemInfo.user || {};
168
+ // 当前员工
169
+ this.employee = Object.assign({}, employee, systemInfo.user);
170
+ // 用户当前的业务业务实体
171
+ this.orgId = systemInfo.orgId;
172
+ // 用户当前库存组织
173
+ this.organizationId = systemInfo.organizationId;
174
+ // 用户所在的业务实体
175
+ this.orgList = systemInfo.orgList;
176
+ // 设置角色列表
177
+ this.roleList = systemInfo.user?.sysRoles;
178
+ // 将公共参数缓存到cookie中
179
+ const query = {
180
+ orgId: systemInfo.orgId,
181
+ organizationId: systemInfo.organizationId
182
+ };
183
+ cookies.set('kCookies_param', JSON.stringify(query));
184
+ this.isAdminRole = this.employee.sysRoles.some(s => s.roleCode === 'admin' || ['管理员'].includes(s.roleName));
185
+ // 缓存按钮数据权限
186
+ usePermissionStoreHook().setAuthButton(systemInfo.dataMenus);
187
+ }
188
+ }
189
+ });
190
+
191
+ export function useSystemStoreHook() {
192
+ return useSystemStore(store);
193
+ }