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

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 (86) hide show
  1. package/build/plugins.ts +39 -37
  2. package/dist/{403-CT4J-t-o.js → 403-CP2RkkAy.js} +10 -10
  3. package/dist/{404-BAudfnaK.js → 404-DwK-0wNQ.js} +4 -4
  4. package/dist/{500-BlOGtpEE.js → 500-CLbJDqnd.js} +1 -1
  5. package/dist/{AuthorityInfo-Bl03tEhF.js → AuthorityInfo-Bi1_uhMu.js} +1 -1
  6. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-CUwS2F3R.js → AuthorityInfo.vue_vue_type_style_index_0_lang-RUhvzu76.js} +8 -9
  7. package/dist/{Company-CIj9XgQn.js → Company-B--cokc6.js} +3 -3
  8. package/dist/{CompanyPanel-CublK5NN.js → CompanyPanel-B_gmcZ9L.js} +6 -6
  9. package/dist/{Department-BolPW-W3.js → Department-DbKdyNzK.js} +3 -3
  10. package/dist/{DepartmentPanel-BttxSHfM.js → DepartmentPanel-BmEttboJ.js} +23 -24
  11. package/dist/{DesignPanel-BwCbn92O.js → DesignPanel-LL68_36s.js} +1 -1
  12. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-y2AnCTg6.js → DesignPanel.vue_vue_type_style_index_0_lang-DWPmFegv.js} +8 -9
  13. package/dist/{DictView-D85ziNV2.js → DictView-B8j-EWx5.js} +1 -1
  14. package/dist/{InvOrganization-CaAk_f7F.js → InvOrganization-DnGQlESM.js} +7 -8
  15. package/dist/Org-Dg9Xkd34.js +34 -0
  16. package/dist/{Preview-DMGbhV6q.js → Preview-yot4NBW5.js} +1 -1
  17. package/dist/{ReportDefine-DogZwa8T.js → ReportDefine-DHadqNYy.js} +1 -1
  18. package/dist/{ReportDesign-CdSsJJeA.js → ReportDesign-CBihGRth.js} +23 -24
  19. package/dist/{ReportQuery-DPvKqeUm.js → ReportQuery-CwHQ6LUU.js} +1 -1
  20. package/dist/{ReportQueryFrom-UokkfBx_.js → ReportQueryFrom-ie6lQcGL.js} +1 -1
  21. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-BlOoThY7.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-B8LJNK0m.js} +1 -1
  22. package/dist/{ReportTemplate-DCnmllXW.js → ReportTemplate-B2Smwo-z.js} +18 -18
  23. package/dist/{Role-sfmwLiNM.js → Role-Cf7DB7uS.js} +3 -3
  24. package/dist/{RoleAssign-WRk90VO2.js → RoleAssign-upUnqs_i.js} +3 -3
  25. package/dist/{RolePanel-iWysS02n.js → RolePanel-BBGDGK8V.js} +1 -1
  26. package/dist/{RolePanel-DhP0_5ur.js → RolePanel-EXL_FLvM.js} +1 -1
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CYXqW-d4.js → RolePanel.vue_vue_type_script_setup_true_lang-BwfL_JVZ.js} +8 -9
  28. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-_hVY31HC.js → RolePanel.vue_vue_type_script_setup_true_lang-DF8qJKwW.js} +9 -9
  29. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-BozDFES-.js → ScrollPanel.vue_vue_type_style_index_0_lang-DbBGg32H.js} +13 -13
  30. package/dist/{Staff-Bha-Ijax.js → Staff-DYu5ZEyR.js} +3 -3
  31. package/dist/{StaffInfo-CbfYI8UW.js → StaffInfo-CHvNGjtz.js} +1 -1
  32. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-Ce-MUVYH.js → StaffInfo.vue_vue_type_script_setup_true_lang-XRJVEJ-s.js} +14 -14
  33. package/dist/{StaffPanel-B8094e97.js → StaffPanel-C-ygEY65.js} +1 -1
  34. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-_kJIBCtx.js → StaffPanel.vue_vue_type_script_setup_true_lang-BvLrF4Yw.js} +6 -6
  35. package/dist/{SysUser-D1J9vPnb.js → SysUser-BHk_szpK.js} +2 -2
  36. package/dist/{SysUserPanel-DGDPKKoY.js → SysUserPanel-DFvzA5d-.js} +1 -1
  37. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-D-5-zKn6.js → SysUserPanel.vue_vue_type_script_setup_true_lang-B9zUXXwa.js} +24 -25
  38. package/dist/{SystemMenu-Dz8Pllh5.js → SystemMenu-5TK9ZA11.js} +34 -35
  39. package/dist/{UserInfo-ecAJA2Yg.js → UserInfo-Bx3zQqHa.js} +1 -1
  40. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-4_-I_sQN.js → UserInfo.vue_vue_type_style_index_0_lang-C2sqUQdg.js} +12 -13
  41. package/dist/{childView-4uI_RT2m.js → childView-BSUWnii7.js} +1 -1
  42. package/dist/{childView-OXXoMFg3.js → childView-CFC3gA_U.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-DC-yx4Kv.js → childView.vue_vue_type_style_index_0_lang-EcT-Dux7.js} +48 -49
  44. package/dist/{childView.vue_vue_type_style_index_0_lang-e43PUsUO.js → childView.vue_vue_type_style_index_0_lang-WQVLSJR8.js} +9 -10
  45. package/dist/{code-rule-B667R66s.js → code-rule-DybjhotB.js} +6 -8
  46. package/dist/core.es.js +2 -2
  47. package/dist/{cron-task-DcmGSr2D.js → cron-task-DGdknqaF.js} +7 -8
  48. package/dist/{frameView-BzgaLYjQ.js → frameView-BOOZRv1S.js} +1 -1
  49. package/dist/index-BDE4-ZvN.js +5091 -0
  50. package/dist/{layoutView-BBQB8pDc.js → layoutView-BWeDLY9C.js} +11 -12
  51. package/dist/{login-DIG7pRU7.js → login-BcuCHhGE.js} +21 -21
  52. package/dist/{login-log-CvVnyGi3.js → login-log-kqKzKTto.js} +1 -1
  53. package/dist/{lov-view-CSIPKZSY.js → lov-view-DDgzqYSW.js} +8 -9
  54. package/dist/{menuInfo-CPHjl7id.js → menuInfo-B3MOxomU.js} +1 -1
  55. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BXNiinTg.js → menuInfo.vue_vue_type_style_index_0_lang-BXMrNMUs.js} +15 -16
  56. package/dist/{pda-app-BLjbMcdt.js → pda-app-Dy9WMHEG.js} +19 -20
  57. package/dist/{resource-MxqaSJqB.js → resource-BoCP7-dM.js} +8 -8
  58. package/dist/{su-welcome-C0flTYCx.js → su-welcome-DXpI1MHr.js} +97 -98
  59. package/dist/{sys-config-CXzGs3Nl.js → sys-config-BiUWzxGU.js} +19 -20
  60. package/dist/udp-core.css +2 -2
  61. package/dist/{utogether-CFdIDuAT.js → utogether-DXDcsKt7.js} +1 -1
  62. package/package.json +1 -1
  63. package/src/App.vue +1 -1
  64. package/src/api/index.ts +1 -1
  65. package/src/components/udp/count-down.vue +536 -0
  66. package/src/components/udp/form.vue +107 -0
  67. package/src/components/udp/index.ts +4 -1
  68. package/src/components/udp/modal-form.vue +9 -0
  69. package/src/components/udp/upload.vue +425 -0
  70. package/src/components/udp/utils.ts +72 -3
  71. package/src/layout/components/lay-panel/index.vue +3 -3
  72. package/src/main.ts +21 -20
  73. package/src/style/vxetable.scss +24 -2
  74. package/src/utils/{http → udp/http}/index.ts +8 -24
  75. package/src/utils/{http → udp/http}/types.d.ts +8 -5
  76. package/src/views/login/login-view.vue +1 -1
  77. package/src/views/system/menu/menuInfo.vue +1 -1
  78. package/src/views/system/sys/sys-config.vue +1 -1
  79. package/src/views/udev/dict/childView.vue +6 -1
  80. package/src/views/uhome/su-welcome.vue +1 -1
  81. package/src/views/ulogin/login.vue +3 -2
  82. package/src/views/upms/user/login-log.vue +1 -1
  83. package/src/views/urpt/design/ReportDesign.vue +3 -3
  84. package/dist/Org-CreIihFE.js +0 -35
  85. package/dist/await-to-js.es5-BtRbN2QH.js +0 -10
  86. package/dist/index-CLliRySq.js +0 -2606
@@ -1,8 +1,9 @@
1
1
  import Axios, { type AxiosInstance, type AxiosRequestConfig } from 'axios';
2
2
  import type { SuHttpError, RequestMethods, SuHttpResponse, SuHttpRequestConfig } from './types.d';
3
- import { has } from 'xe-utils';
4
- import { NProgress, cookies, errorMessage } from '@utogether/utils';
3
+
4
+ import { errorMessage, cookies, NProgress } from '@utogether/utils';
5
5
  import { isRef } from 'vue';
6
+ import { has } from 'xe-utils';
6
7
 
7
8
  const kTOKENKEY = 'authorized-token';
8
9
  const defaultConfig: AxiosRequestConfig = {
@@ -18,8 +19,8 @@ class SuHttp {
18
19
  this.httpInterceptorsRequest();
19
20
  this.httpInterceptorsResponse();
20
21
  }
22
+ router = undefined;
21
23
  baseUrl = null;
22
- router = null;
23
24
  /** token过期后,暂存待执行的请求 */
24
25
  private static requests = [];
25
26
 
@@ -81,8 +82,7 @@ class SuHttp {
81
82
  if (!SuHttp.isRefreshing) {
82
83
  SuHttp.isRefreshing = true;
83
84
  // requests.push(() => SuHttp.axiosInstance(config));
84
-
85
- this.get(this.baseUrl + '/uath/refreshToken', {
85
+ this.get((this.baseUrl || '') + '/uath/refreshToken', {
86
86
  refreshToken: data.refreshToken
87
87
  })
88
88
  .then((res: any) => {
@@ -153,12 +153,12 @@ class SuHttp {
153
153
  return response.data;
154
154
  },
155
155
  (error: SuHttpError) => {
156
+ const $error = error;
156
157
  // @ts-ignore
157
- if (has(error.config, 'loading') && isRef(error.config.loading)) {
158
+ if (has(error.config, 'loading') && isRef(error?.config?.loading)) {
158
159
  // @ts-ignore
159
160
  error.config.loading.value = false;
160
161
  }
161
- const $error = error;
162
162
  $error.isCancelRequest = Axios.isCancel($error);
163
163
  // 关闭进度条动画
164
164
  NProgress.done();
@@ -210,27 +210,11 @@ class SuHttp {
210
210
  } else {
211
211
  const msg = res?.msg || '服务异常';
212
212
  errorMessage(msg, { duration: 8000 });
213
- // const code = res.code;
214
- // if (
215
- // code === "000001" ||
216
- // (code === "-1" && msg.includes("请重新登陆"))
217
- // ) {
218
- // // session过期
219
- // cookies.remove("kCookies_token");
220
- // // @ts-ignore
221
- // this.router?.push({
222
- // path: "/login",
223
- // query: { tokenExpire: "Y" },
224
- // });
225
- // }
226
213
  reject(msg);
227
214
  }
228
215
  })
229
216
  .catch(e => {
230
- debugger;
231
- if (e?.response?.data?.path === '/refreshToken') {
232
- this.router?.push('/login');
233
- } else if (e?.code) {
217
+ if (e?.code) {
234
218
  if (e?.response?.status === 401) {
235
219
  // @ts-ignore
236
220
  return this.router?.push({ path: '/login' });
@@ -2,10 +2,10 @@
2
2
  * @Author: wei.li
3
3
  * @Date: 2022-03-08 15:17:39
4
4
  * @LastEditors: levi7754 levi7754@163.com
5
- * @LastEditTime: 2023-12-01 11:59:12
5
+ * @LastEditTime: 2023-12-01 13:55:46
6
6
  * @Description: SuHttp Axios 类型定义文件
7
7
  */
8
- import type { Method, AxiosError, AxiosResponse, AxiosRequestConfig } from 'axios';
8
+ import { Method, AxiosError, AxiosResponse, AxiosRequestConfig } from "axios";
9
9
 
10
10
  export type resultType = {
11
11
  access_token: string;
@@ -15,12 +15,11 @@ export type resultType = {
15
15
 
16
16
  export type RequestMethods = Extract<
17
17
  Method,
18
- 'get' | 'post' | 'put' | 'delete' | 'patch' | 'option' | 'head'
18
+ "get" | "post" | "put" | "delete" | "patch" | "option" | "head"
19
19
  >;
20
20
 
21
21
  export interface SuHttpError extends AxiosError {
22
22
  isCancelRequest?: boolean;
23
- loading?: boolean;
24
23
  }
25
24
 
26
25
  export interface SuHttpResponse extends AxiosResponse {
@@ -41,6 +40,10 @@ export default class SuHttp {
41
40
  axiosConfig?: SuHttpRequestConfig
42
41
  ): Promise<T>;
43
42
  post<T, P>(url: string, params?: T, config?: SuHttpRequestConfig): Promise<P>;
44
- postRouter<T, P>(url: string, params?: T, config?: SuHttpRequestConfig): Promise<P>;
43
+ postRouter<T, P>(
44
+ url: string,
45
+ params?: T,
46
+ config?: SuHttpRequestConfig
47
+ ): Promise<P>;
45
48
  get<T, P>(url: string, params?: T, config?: SuHttpRequestConfig): Promise<P>;
46
49
  }
@@ -229,7 +229,7 @@ const insertLoginInfo = username => {
229
229
  browserVersion,
230
230
  operatingSystem: getPlatform(userAgent)
231
231
  };
232
- serviceApi.post('/upms/v1/userMonitor', obj);
232
+ serviceApi.post('/upfm/v1/userMonitor', obj);
233
233
  };
234
234
 
235
235
  /** 使用公共函数,避免`removeEventListener`失效 */
@@ -2,7 +2,7 @@
2
2
  * @Author: wei.li
3
3
  * @Date: 2021-11-17 16:44:08
4
4
  * @LastEditors: levi7754 levi7754@163.com
5
- * @LastEditTime: 2025-07-28 14:09:34
5
+ * @LastEditTime: 2025-08-01 17:38:53
6
6
  * @Description: file content
7
7
  -->
8
8
 
@@ -119,7 +119,7 @@ const record = reactive({
119
119
  defaultLanguage: 'zh',
120
120
  title: 'U-DP',
121
121
  ispTitle: 'U-DP',
122
- i18nEnabled: 'Y',
122
+ i18nEnabled: 'N',
123
123
  copyright: '深圳友聚信息技术有限公司',
124
124
  logo: [],
125
125
  backgroundImg: [],
@@ -110,6 +110,7 @@ const showModal = ref(false);
110
110
  const subRecord = ref<IRecord>({});
111
111
  const temp = ref<IRecord>({});
112
112
  const modalType = ref('add');
113
+
113
114
  const subItems = [
114
115
  { field: 'dictCode', title: 'message.udp.dictCode', required: true },
115
116
  { field: 'dictName', title: 'message.udp.dictName', required: true },
@@ -179,7 +180,11 @@ const onConfirm = async () => {
179
180
  loading.value = false;
180
181
  if (!err) {
181
182
  console.log({ res });
182
- showModal.value = false;
183
+ if (modalType.value === 'edit') {
184
+ showModal.value = false;
185
+ } else {
186
+ subRecord.value = { enabled: '1' };
187
+ }
183
188
  successMessage();
184
189
  getDict();
185
190
  }
@@ -233,7 +233,7 @@ const onClickMenu = item => {
233
233
  };
234
234
 
235
235
  const getUserLog = () => {
236
- const url = '/upms/v1/userMonitor';
236
+ const url = '/upfm/v1/userMonitor';
237
237
  const query = { pageSize: 8, pageNum: 1, employeeName: systemHook.getUserInfo?.name };
238
238
  getServiceApi()
239
239
  .get(url, query)
@@ -233,7 +233,8 @@ const cacheToken = token => {
233
233
  const cache = {
234
234
  accessToken: access_token,
235
235
  refreshToken: refresh_token,
236
- expires: Date.now() + expires_in * 1000
236
+ // expires: Date.now() + expires_in * 1000
237
+ expires: Date.now() + expires_in
237
238
  };
238
239
 
239
240
  cookies.set(kCKTOKEN, token.access_token);
@@ -275,7 +276,7 @@ const insertLoginInfo = username => {
275
276
  browserVersion,
276
277
  operatingSystem: getPlatform(userAgent)
277
278
  };
278
- serviceApi.post('/upms/v1/userMonitor', obj);
279
+ serviceApi.post('/upfm/v1/userMonitor', obj);
279
280
  };
280
281
 
281
282
  const getSysConfig = async () => {
@@ -12,7 +12,7 @@
12
12
  ref="xgrid"
13
13
  :items="formItems"
14
14
  :columns="columns"
15
- url="/upms/v1/userMonitor"
15
+ url="/upfm/v1/userMonitor"
16
16
  :editable="false"
17
17
  />
18
18
  </div>
@@ -2,7 +2,7 @@
2
2
  * @Author: wei.li
3
3
  * @Date: 2021-11-27 20:34:11
4
4
  * @LastEditors: levi7754 levi7754@163.com
5
- * @LastEditTime: 2025-04-29 11:59:40
5
+ * @LastEditTime: 2025-08-06 10:46:40
6
6
  * @Description: 模板设计器
7
7
  -->
8
8
  <template>
@@ -12,7 +12,7 @@
12
12
  ref="xgrid"
13
13
  :items="formItems"
14
14
  :columns="columns"
15
- :checkMethod="onCheckMethod"
15
+ :check-method="onCheckMethod"
16
16
  :url="url"
17
17
  :events="onGridEvents"
18
18
  />
@@ -238,7 +238,7 @@ const onGridEvents = {
238
238
  };
239
239
 
240
240
  const onCheckMethod = ({ row }) => {
241
- return row.enabled !== '1';
241
+ return row?.enabled !== '1';
242
242
  };
243
243
 
244
244
  const onClose = () => {
@@ -1,35 +0,0 @@
1
- import { defineComponent as a, ref as m, resolveComponent as s, createBlock as u, openBlock as f } from "vue";
2
- import { t as p } from "./await-to-js.es5-BtRbN2QH.js";
3
- import { clone as g } from "xe-utils";
4
- import { useRender as _ } from "@utogether/utils";
5
- import { q as h } from "./index-CLliRySq.js";
6
- const k = { name: "OrgUnit" }, q = /* @__PURE__ */ a({
7
- ...k,
8
- setup(R) {
9
- const r = "/uums/org", t = m(null), i = _(), d = [{ field: "orgCode" }, { field: "orgName" }, { field: "orgAlias" }], l = [
10
- { type: "checkbox", width: 50, align: "center" },
11
- { field: "orgCode", required: !0, editRender: { name: "$input" } },
12
- { field: "orgName", required: !0, minWidth: 200, editRender: { name: "$input" } },
13
- { field: "orgAlias", editRender: { name: "$input" } },
14
- { field: "orgDesc", editRender: { name: "$input" } },
15
- { field: "enabled", width: 80, cellRender: i.renderEnabled(c) }
16
- ];
17
- async function c({ row: n }) {
18
- const o = g(n, !0), [e] = await p(h().put(r, [o]));
19
- !e && t.value.refreshData();
20
- }
21
- return (n, o) => {
22
- const e = s("ut-grid");
23
- return f(), u(e, {
24
- ref_key: "xgrid",
25
- ref: t,
26
- items: d,
27
- columns: l,
28
- url: r
29
- }, null, 512);
30
- };
31
- }
32
- });
33
- export {
34
- q as default
35
- };
@@ -1,10 +0,0 @@
1
- function e(t, r) {
2
- return t.then(function(n) {
3
- return [null, n];
4
- }).catch(function(n) {
5
- return [n, void 0];
6
- });
7
- }
8
- export {
9
- e as t
10
- };