@utogether/udp-core 1.0.1-beta.5 → 1.0.1-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 (98) hide show
  1. package/dist/{403-CP2RkkAy.js → 403-BQZ5OAKL.js} +10 -10
  2. package/dist/{404-DwK-0wNQ.js → 404-H55ex36i.js} +4 -4
  3. package/dist/{500-CLbJDqnd.js → 500-bbrspTnK.js} +1 -1
  4. package/dist/{AuthorityInfo-Bi1_uhMu.js → AuthorityInfo-BWni4UPQ.js} +1 -1
  5. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-7WtOL6Hs.js +100 -0
  6. package/dist/{Company-B--cokc6.js → Company-CuebFrQ0.js} +3 -3
  7. package/dist/{CompanyPanel-B_gmcZ9L.js → CompanyPanel-DxPdJs6x.js} +6 -6
  8. package/dist/{Department-DbKdyNzK.js → Department-D2a6Juur.js} +3 -3
  9. package/dist/{DepartmentPanel-BmEttboJ.js → DepartmentPanel-C_s2R9yl.js} +24 -23
  10. package/dist/{DesignPanel-LL68_36s.js → DesignPanel-CexZj3HF.js} +1 -1
  11. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DWPmFegv.js → DesignPanel.vue_vue_type_style_index_0_lang-DfmysqwB.js} +25 -24
  12. package/dist/{DictView-B8j-EWx5.js → DictView-C0GS72rG.js} +19 -18
  13. package/dist/{InvOrganization-DnGQlESM.js → InvOrganization-a1tQ2CEH.js} +8 -7
  14. package/dist/Org-DifvzLLy.js +35 -0
  15. package/dist/{Preview-yot4NBW5.js → Preview-BOv5j9i6.js} +1 -1
  16. package/dist/{ReportDefine-DHadqNYy.js → ReportDefine-Dli1Q0TB.js} +1 -1
  17. package/dist/{ReportDesign-CBihGRth.js → ReportDesign-zSWkcL_O.js} +37 -36
  18. package/dist/{ReportQuery-CwHQ6LUU.js → ReportQuery-D5r3bvFc.js} +1 -1
  19. package/dist/{ReportQueryFrom-ie6lQcGL.js → ReportQueryFrom-DiostHrX.js} +1 -1
  20. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-B8LJNK0m.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-Cr2eKMmr.js} +1 -1
  21. package/dist/{ReportTemplate-B2Smwo-z.js → ReportTemplate-CYy4cZHQ.js} +24 -24
  22. package/dist/{Role-Cf7DB7uS.js → Role-BFQFxfQS.js} +6 -6
  23. package/dist/{RoleAssign-upUnqs_i.js → RoleAssign-BIdWSLTR.js} +8 -8
  24. package/dist/{RolePanel-EXL_FLvM.js → RolePanel-C7ybSknr.js} +1 -1
  25. package/dist/{RolePanel-BBGDGK8V.js → RolePanel-KC-UgmtF.js} +1 -1
  26. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-C91CJO4e.js +132 -0
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DF8qJKwW.js → RolePanel.vue_vue_type_script_setup_true_lang-C_ZsMf1f.js} +40 -34
  28. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-DbBGg32H.js → ScrollPanel.vue_vue_type_style_index_0_lang-botBBgto.js} +17 -17
  29. package/dist/{Staff-DYu5ZEyR.js → Staff-CY0DLsTN.js} +3 -3
  30. package/dist/{StaffInfo-CHvNGjtz.js → StaffInfo-DA7p265h.js} +1 -1
  31. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-XRJVEJ-s.js → StaffInfo.vue_vue_type_script_setup_true_lang-f29A44gS.js} +5 -5
  32. package/dist/{StaffPanel-C-ygEY65.js → StaffPanel-DYP-mMp9.js} +1 -1
  33. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-BvLrF4Yw.js → StaffPanel.vue_vue_type_script_setup_true_lang-C0YAG2xV.js} +6 -6
  34. package/dist/{SysUser-BHk_szpK.js → SysUser-FqS3Ctne.js} +2 -2
  35. package/dist/{SysUserPanel-DFvzA5d-.js → SysUserPanel-C_t6F99T.js} +1 -1
  36. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-B9zUXXwa.js → SysUserPanel.vue_vue_type_script_setup_true_lang-CKZjy0OF.js} +93 -86
  37. package/dist/{SystemMenu-5TK9ZA11.js → SystemMenu-ChFrMzRg.js} +14 -13
  38. package/dist/{UserInfo-Bx3zQqHa.js → UserInfo-I36LAXVj.js} +1 -1
  39. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-C2sqUQdg.js → UserInfo.vue_vue_type_style_index_0_lang-BGY-LYeL.js} +28 -25
  40. package/dist/await-to-js.es5-BtRbN2QH.js +10 -0
  41. package/dist/{childView-BSUWnii7.js → childView-CYpuOzRx.js} +1 -1
  42. package/dist/{childView-CFC3gA_U.js → childView-Csnlaqfs.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-EcT-Dux7.js → childView.vue_vue_type_style_index_0_lang-B8EnA03l.js} +18 -17
  44. package/dist/{childView.vue_vue_type_style_index_0_lang-WQVLSJR8.js → childView.vue_vue_type_style_index_0_lang-DNVlDM_a.js} +10 -9
  45. package/dist/{code-rule-DybjhotB.js → code-rule-DHBSC5Qp.js} +14 -13
  46. package/dist/core.es.js +2 -2
  47. package/dist/{cron-task-DGdknqaF.js → cron-task-CiI1MFla.js} +8 -7
  48. package/dist/{frameView-BOOZRv1S.js → frameView-ZWKlbz9p.js} +1 -1
  49. package/dist/index-COBMRlmJ.js +5379 -0
  50. package/dist/{layoutView-BWeDLY9C.js → layoutView-5OsbpP0u.js} +11 -10
  51. package/dist/{login-BcuCHhGE.js → login-C55sa9gN.js} +26 -25
  52. package/dist/{lov-view-DDgzqYSW.js → lov-view-DFfaUQ5m.js} +9 -8
  53. package/dist/{menuInfo-B3MOxomU.js → menuInfo-CZdLtLjN.js} +1 -1
  54. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BXMrNMUs.js → menuInfo.vue_vue_type_style_index_0_lang-DgG0aHRy.js} +16 -15
  55. package/dist/{pda-app-Dy9WMHEG.js → pda-app-fLe8mrx-.js} +213 -196
  56. package/dist/{resource-BoCP7-dM.js → resource-ohWKO6Fh.js} +20 -20
  57. package/dist/{su-welcome-DXpI1MHr.js → su-welcome-_UZTfrXX.js} +84 -84
  58. package/dist/{sys-config-BiUWzxGU.js → sys-config-DVuBsK7p.js} +19 -18
  59. package/dist/udp-core.css +1 -1
  60. package/dist/{utogether-DXDcsKt7.js → utogether-CxobZqGL.js} +1 -1
  61. package/package.json +18 -18
  62. package/src/components/SuScrollTree/ScrollPanel.vue +3 -3
  63. package/src/components/udp/flip-down/FlipCard/flip-card.vue +251 -0
  64. package/src/components/udp/flip-down/FlipCard/interfaces.ts +4 -0
  65. package/src/components/udp/flip-down/FlipClock/flip-clock.vue +113 -0
  66. package/src/components/udp/grid.vue +12 -6
  67. package/src/components/udp/index.ts +2 -2
  68. package/src/components/udp/lov.vue +1 -1
  69. package/src/components/udp/modal-grid.vue +288 -297
  70. package/src/components/udp/utils.ts +4 -11
  71. package/src/layout/components/lay-search/index.vue +25 -25
  72. package/src/main.ts +18 -10
  73. package/src/plugins/i18n/zh.ts +348 -338
  74. package/src/plugins/vxe-table/index.ts +2 -2
  75. package/src/plugins/vxe-table/render.tsx +95 -18
  76. package/src/views/login/login-view.vue +1 -1
  77. package/src/views/system/role/AuthorityInfo.vue +19 -15
  78. package/src/views/system/role/Role.vue +1 -5
  79. package/src/views/system/role/RolePanel.vue +11 -2
  80. package/src/views/system/role/UserInfo.vue +5 -3
  81. package/src/views/system/role-assign/RoleAssign.vue +57 -57
  82. package/src/views/system/role-assign/RolePanel.vue +139 -136
  83. package/src/views/system/sysUser/SysUserPanel.vue +37 -37
  84. package/src/views/uapp/pda/pda-app.vue +41 -10
  85. package/src/views/udev/dict/DictView.vue +6 -1
  86. package/src/views/udev/dict/childView.vue +1 -6
  87. package/src/views/ufile/aggregation/File.vue +5 -5
  88. package/src/views/ufile/file/water-mark.vue +14 -14
  89. package/src/views/uhome/su-welcome.vue +2 -2
  90. package/src/views/ulogin/login.vue +8 -0
  91. package/src/views/urpt/design/DesignPanel.vue +10 -33
  92. package/src/views/urpt/design/ReportDesign.vue +12 -16
  93. package/src/views/urpt/static-resource/resource.vue +3 -3
  94. package/src/views/urpt/template/ReportTemplate.vue +7 -7
  95. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-RUhvzu76.js +0 -101
  96. package/dist/Org-Dg9Xkd34.js +0 -34
  97. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-BwfL_JVZ.js +0 -125
  98. package/dist/index-BDE4-ZvN.js +0 -5091
@@ -1,7 +1,7 @@
1
- import { defineComponent as w, ref as o, resolveComponent as l, createElementBlock as k, openBlock as u, createVNode as r, createBlock as b, createCommentVNode as x, Fragment as U } from "vue";
2
- import { successMessage as y } from "@utogether/utils";
3
- import { useClipboard as B } from "@vueuse/core";
4
- import { y as N } from "./index-BDE4-ZvN.js";
1
+ import { defineComponent as w, ref as o, resolveComponent as r, createElementBlock as k, openBlock as i, createVNode as l, createBlock as x, createCommentVNode as b, Fragment as U } from "vue";
2
+ import { successMessage as B } from "@utogether/utils";
3
+ import { useClipboard as N } from "@vueuse/core";
4
+ import { x as y } from "./index-COBMRlmJ.js";
5
5
  const q = {
6
6
  name: "StaticResource"
7
7
  }, V = /* @__PURE__ */ w({
@@ -9,21 +9,21 @@ const q = {
9
9
  setup(F) {
10
10
  const {
11
11
  copy: m
12
- } = B(), n = "/upms/v1/pdfTemplate", s = o(null), a = o({}), d = N(), c = [{
12
+ } = N(), n = "/upms/v1/pdfTemplate", s = o(null), a = o({}), d = y(), c = [{
13
13
  type: "checkbox",
14
14
  width: 40,
15
15
  align: "center"
16
16
  }, {
17
17
  field: "templateCode",
18
- title: "message.file.resourceCode",
18
+ title: "message.urpt.resourceCode",
19
19
  width: 140
20
20
  }, {
21
21
  field: "templateName",
22
- title: "message.file.resourceName",
22
+ title: "message.urpt.resourceName",
23
23
  width: 150
24
24
  }, {
25
25
  field: "templateUrl",
26
- title: "message.file.resourceUrl",
26
+ title: "message.urpt.resourceUrl",
27
27
  miWidth: 200
28
28
  }, {
29
29
  field: "operate",
@@ -32,20 +32,20 @@ const q = {
32
32
  slots: {
33
33
  default: ({
34
34
  row: e
35
- }) => [r(U, null, [r(l("ut-button"), {
35
+ }) => [l(U, null, [l(r("ut-button"), {
36
36
  content: "download",
37
37
  icon: "ri-download-line",
38
38
  status: "success",
39
39
  onTap: () => g(e)
40
40
  }, null)])]
41
41
  }
42
- }], f = {
42
+ }], p = {
43
43
  toolbarButtonClick({
44
44
  code: e
45
45
  }) {
46
46
  e === "add" && _();
47
47
  }
48
- }, p = [{
48
+ }, f = [{
49
49
  field: "templateCode",
50
50
  required: !0
51
51
  }, {
@@ -63,32 +63,32 @@ const q = {
63
63
  }], t = o(!1), _ = (e) => {
64
64
  a.value = {}, t.value = !0;
65
65
  }, g = (e) => {
66
- m(d + "/ufil/" + e.templateUrl), y("复制成功,快试试右键粘贴吧");
66
+ m(d + "/ufil/" + e.templateUrl), B("复制成功,快试试右键粘贴吧");
67
67
  }, h = () => {
68
68
  s.value.refreshData();
69
69
  };
70
- return (e, i) => {
71
- const v = l("ut-grid"), C = l("ut-modal-form");
72
- return u(), k("div", null, [r(v, {
70
+ return (e, u) => {
71
+ const v = r("ut-grid"), C = r("ut-modal-form");
72
+ return i(), k("div", null, [l(v, {
73
73
  ref_key: "xgrid",
74
74
  ref: s,
75
75
  columns: c,
76
76
  url: n,
77
77
  editable: !1,
78
78
  mode: "form",
79
- events: f
80
- }, null, 512), t.value ? (u(), b(C, {
79
+ events: p
80
+ }, null, 512), t.value ? (i(), x(C, {
81
81
  key: 0,
82
82
  record: a.value,
83
- items: p,
83
+ items: f,
84
84
  width: 300,
85
85
  height: 340,
86
86
  "data-status": "add",
87
87
  title: "静态资源新增",
88
88
  url: n,
89
- onClose: i[0] || (i[0] = (R) => t.value = !1),
89
+ onClose: u[0] || (u[0] = (R) => t.value = !1),
90
90
  onConfirm: h
91
- }, null, 8, ["record"])) : x("", !0)]);
91
+ }, null, 8, ["record"])) : b("", !0)]);
92
92
  };
93
93
  }
94
94
  });
@@ -1,11 +1,11 @@
1
- import { defineComponent as J, ref as y, onMounted as K, resolveComponent as v, createBlock as N, openBlock as a, withCtx as c, createElementVNode as e, createVNode as i, createCommentVNode as O, unref as B, normalizeStyle as Q, toDisplayString as f, createElementBlock as p, Fragment as k, renderList as C, nextTick as X, computed as Z, resolveDirective as ee, createTextVNode as Y, withDirectives as te, normalizeClass as se } from "vue";
1
+ import { defineComponent as J, ref as y, onMounted as K, resolveComponent as _, createBlock as N, openBlock as a, withCtx as i, createElementVNode as e, createVNode as c, createCommentVNode as O, unref as B, normalizeStyle as Q, toDisplayString as f, createElementBlock as p, Fragment as k, renderList as C, nextTick as X, computed as Z, resolveDirective as ee, createTextVNode as Y, withDirectives as te, normalizeClass as se } from "vue";
2
2
  import { useRouter as ne } from "vue-router";
3
3
  import oe from "dayjs";
4
- import { dbstorage as le, delay as ae, warnMessage as ce, successMessage as ie, lunarCalendar as re, cookies as ue } from "@utogether/utils";
5
- import { v as G, e as de, n as me, _ as fe } from "./index-BDE4-ZvN.js";
6
- import { clone as ve, max as _e } from "xe-utils";
4
+ import { dbstorage as le, delay as ae, warnMessage as ie, successMessage as ce, lunarCalendar as re, cookies as ue } from "@utogether/utils";
5
+ import { q as G, e as de, n as me, _ as fe } from "./index-COBMRlmJ.js";
6
+ import { clone as _e, max as ve } from "xe-utils";
7
7
  import pe from "vuedraggable";
8
- const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye = { class: "h-24 w-24 flex justify-center items-center flex-col relative drag-item ut-menu-top-item" }, be = { class: "w-[90%] text-xs mt-2 text-ellipsis overflow-hidden whitespace-nowrap text-center" }, we = ["onClick"], ke = { class: "p-3" }, Ce = { class: "flex items-center" }, Ne = { class: "ml-1 font-bold text-base" }, $e = { class: "pl-3 py-2" }, Ie = { class: "flex items-center" }, Ve = { class: "ml-1 font-bold text-sm" }, Me = { class: "pl-3 py-2" }, Se = { class: "flex items-center" }, Ue = { class: "ml-1 font-bold text-sm" }, je = { class: "py-2" }, De = { class: "flex justify-end" }, Ee = "/upfm/v1/menuFavority", Le = /* @__PURE__ */ J({
8
+ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye = { class: "h-24 w-24 flex justify-center items-center flex-col relative drag-item ut-menu-top-item" }, be = { class: "w-[90%] text-xs mt-2 text-ellipsis overflow-hidden whitespace-nowrap text-center" }, we = ["onClick"], ke = { class: "p-3" }, Ce = { class: "flex items-center" }, Ne = { class: "ml-1 font-bold text-base" }, $e = { class: "pl-3 py-2" }, Ie = { class: "flex items-center" }, Ve = { class: "ml-1 font-bold text-sm" }, Me = { class: "pl-3 py-2" }, Se = { class: "flex items-center" }, Ue = { class: "ml-1 font-bold text-sm" }, je = { class: "py-2" }, qe = { class: "flex justify-end" }, De = "/upfm/v1/menuFavority", Ee = /* @__PURE__ */ J({
9
9
  __name: "menu-favorite",
10
10
  props: {
11
11
  dataSource: { default: () => [] },
@@ -14,12 +14,12 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
14
14
  },
15
15
  emits: ["close", "success"],
16
16
  setup(P, { emit: h }) {
17
- const j = P, u = y([]), $ = y([]), b = y(!1), I = y(!1), r = y({}), L = async () => {
17
+ const j = P, u = y([]), $ = y([]), b = y(!1), I = y(!1), r = y({}), E = async () => {
18
18
  $.value = await le.getItem(`U-${j.userName}-ROUTES`), $.value = $.value.filter((n) => n.menuCode !== "SysHome"), await ae(64), A();
19
19
  }, R = (n, s) => {
20
20
  var o;
21
21
  u.value.splice(s, 1);
22
- const t = (o = r.value[n.parentId]) == null ? void 0 : o.findIndex((_) => _ === n.menuId);
22
+ const t = (o = r.value[n.parentId]) == null ? void 0 : o.findIndex((v) => v === n.menuId);
23
23
  r.value[n.parentId].splice(t, 1);
24
24
  }, V = (n) => {
25
25
  const s = [], t = [];
@@ -30,13 +30,13 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
30
30
  j.dataSource.forEach((n) => {
31
31
  r.value[n.parentId] ? r.value[n.parentId].push(n.menuId) : r.value[n.parentId] = [n.menuId];
32
32
  });
33
- }, D = (n, s) => {
33
+ }, q = (n, s) => {
34
34
  debugger;
35
35
  if (s.checked) {
36
36
  if (u.value.length === 16)
37
37
  return X(() => {
38
38
  r.value[n.id].splice(r.value[n.id].length - 1, 1);
39
- }), ce("最多只能选择16个常用功能");
39
+ }), ie("最多只能选择16个常用功能");
40
40
  const t = n.children.find((o) => o.id === s.label);
41
41
  t && (t.seqNo = H() + 10, t.menuId = t.id, u.value.push(t));
42
42
  } else {
@@ -49,25 +49,25 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
49
49
  });
50
50
  }, H = () => {
51
51
  var n;
52
- return ((n = _e(u.value, (s) => s.seqNo)) == null ? void 0 : n.seqNo) || 0;
52
+ return ((n = ve(u.value, (s) => s.seqNo)) == null ? void 0 : n.seqNo) || 0;
53
53
  }, T = () => {
54
54
  const n = u.value.map((s) => ({
55
55
  userName: j.userName,
56
56
  menuId: s.menuId,
57
57
  seqNo: s.seqNo
58
58
  }));
59
- I.value = !0, G().post(Ee, n).then(() => {
60
- ie(), E(), z("success");
59
+ I.value = !0, G().post(De, n).then(() => {
60
+ ce(), D(), z("success");
61
61
  }).finally(() => {
62
62
  I.value = !1;
63
63
  });
64
- }, E = () => {
64
+ }, D = () => {
65
65
  b.value = !1, z("close");
66
- }, q = (n) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][n % 5], z = h;
66
+ }, L = (n) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][n % 5], z = h;
67
67
  return K(() => {
68
- u.value = ve(j.dataSource, !0), b.value = !0, L();
68
+ u.value = _e(j.dataSource, !0), b.value = !0, E();
69
69
  }), (n, s) => {
70
- const t = v("el-empty"), o = v("iconify-icon-offline"), _ = v("el-scrollbar"), M = v("vxe-checkbox"), S = v("vxe-checkbox-group"), w = v("ut-button"), U = v("vxe-modal");
70
+ const t = _("el-empty"), o = _("iconify-icon-offline"), v = _("el-scrollbar"), M = _("vxe-checkbox"), S = _("vxe-checkbox-group"), w = _("ut-button"), U = _("vxe-modal");
71
71
  return a(), N(U, {
72
72
  modelValue: b.value,
73
73
  "onUpdate:modelValue": s[0] || (s[0] = (m) => b.value = m),
@@ -77,15 +77,15 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
77
77
  title: "常用菜单设置(拖动可改变菜单顺序)",
78
78
  "class-name": "u-favorite-modal",
79
79
  "show-footer": "",
80
- onClose: E
80
+ onClose: D
81
81
  }, {
82
- default: c(() => [
82
+ default: i(() => [
83
83
  e("div", ge, [
84
- i(_, {
84
+ c(v, {
85
85
  heigth: "100",
86
86
  class: "w-full border-b border-slate-300"
87
87
  }, {
88
- default: c(() => [
88
+ default: i(() => [
89
89
  e("div", he, [
90
90
  u.value.length ? O("", !0) : (a(), N(t, {
91
91
  key: 0,
@@ -93,7 +93,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
93
93
  description: "",
94
94
  class: "p-0"
95
95
  })),
96
- i(B(pe), {
96
+ c(B(pe), {
97
97
  list: u.value,
98
98
  handle: ".drag-item",
99
99
  animation: "300",
@@ -101,14 +101,14 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
101
101
  class: "flex",
102
102
  onEnd: F
103
103
  }, {
104
- item: c(({ element: m, index: l }) => [
104
+ item: i(({ element: m, index: l }) => [
105
105
  e("div", xe, [
106
106
  e("div", ye, [
107
107
  e("div", {
108
108
  class: "rounded-full w-10 h-10 flex items-center justify-center",
109
- style: Q({ backgroundColor: q(l) })
109
+ style: Q({ backgroundColor: L(l) })
110
110
  }, [
111
- i(o, {
111
+ c(o, {
112
112
  icon: m.icon || `ri:${n.icons[l]}-line`,
113
113
  class: "text-2xl text-white"
114
114
  }, null, 8, ["icon"])
@@ -127,8 +127,8 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
127
127
  ]),
128
128
  _: 1
129
129
  }),
130
- i(_, { class: "u-favorite-menu--contain" }, {
131
- default: c(() => [
130
+ c(v, { class: "u-favorite-menu--contain" }, {
131
+ default: i(() => [
132
132
  e("div", ke, [
133
133
  (a(!0), p(k, null, C($.value, (m) => (a(), p("div", {
134
134
  key: m.id,
@@ -139,12 +139,12 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
139
139
  e("div", Ne, f(m.menuName), 1)
140
140
  ]),
141
141
  e("div", $e, [
142
- i(S, {
142
+ c(S, {
143
143
  modelValue: r.value[m.id],
144
144
  "onUpdate:modelValue": (l) => r.value[m.id] = l,
145
- onChange: (l) => D(m, l)
145
+ onChange: (l) => q(m, l)
146
146
  }, {
147
- default: c(() => [
147
+ default: i(() => [
148
148
  (a(!0), p(k, null, C(V(m).menus, (l) => (a(), N(M, {
149
149
  key: l.id,
150
150
  label: l.id,
@@ -163,12 +163,12 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
163
163
  e("div", Ve, f(l.menuName), 1)
164
164
  ]),
165
165
  e("div", Me, [
166
- i(S, {
166
+ c(S, {
167
167
  modelValue: r.value[l.id],
168
168
  "onUpdate:modelValue": (d) => r.value[l.id] = d,
169
- onChange: (d) => D(l, d)
169
+ onChange: (d) => q(l, d)
170
170
  }, {
171
- default: c(() => [
171
+ default: i(() => [
172
172
  (a(!0), p(k, null, C(V(l).menus, (d) => (a(), N(M, {
173
173
  key: d.id,
174
174
  label: d.id,
@@ -187,12 +187,12 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
187
187
  e("div", Ue, f(d.menuName), 1)
188
188
  ]),
189
189
  e("div", je, [
190
- i(S, {
190
+ c(S, {
191
191
  modelValue: r.value[d.id],
192
192
  "onUpdate:modelValue": (x) => r.value[d.id] = x,
193
- onChange: (x) => D(l, x)
193
+ onChange: (x) => q(l, x)
194
194
  }, {
195
- default: c(() => [
195
+ default: i(() => [
196
196
  (a(!0), p(k, null, C(V(d).menus, (x) => (a(), N(M, {
197
197
  key: x.id,
198
198
  label: x.id,
@@ -211,14 +211,14 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
211
211
  })
212
212
  ])
213
213
  ]),
214
- footer: c(() => [
215
- e("div", De, [
216
- i(w, {
214
+ footer: i(() => [
215
+ e("div", qe, [
216
+ c(w, {
217
217
  content: "cancel",
218
218
  status: "warning",
219
- onTap: E
219
+ onTap: D
220
220
  }),
221
- i(w, {
221
+ c(w, {
222
222
  content: "confirm",
223
223
  onTap: T
224
224
  })
@@ -228,19 +228,19 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
228
228
  }, 8, ["modelValue", "loading"]);
229
229
  };
230
230
  }
231
- }), qe = { class: "ut-home m-3" }, ze = { class: "h-32 mb-4 p-4 flex justify-between items-center bg-white home-page" }, Re = { class: "flex flex-row items-center flex-[2]" }, Ae = { class: "ml-4 text-xs flex-[2]" }, Fe = { class: "flex justify-center items-center" }, He = { class: "py-2 text-gray-500 flex" }, Te = { class: "w-2/3" }, Oe = { class: "text-gray-500 flex" }, Be = { class: "w-2/3" }, Ge = { class: "flex flex-col" }, Pe = { class: "text-4xl" }, We = { class: "mt-1 ml-3" }, Ye = { class: "default:bg-white dark:bg-black" }, Je = ["onClick"], Ke = { class: "h-20 flex justify-center items-center flex-col" }, Qe = { class: "text-xs mt-2" }, Xe = { class: "p-3" }, Ze = { class: "p-0 w-full h-full" }, et = { class: "flex" }, tt = { class: "ml-3" }, st = { class: "text-blue-600 mr-3" }, nt = { class: "text-gray-400 text-sm" }, ot = { class: "p-1" }, lt = /* @__PURE__ */ J({
231
+ }), Le = { class: "ut-home m-3" }, ze = { class: "h-32 mb-4 p-4 flex justify-between items-center bg-white home-page" }, Re = { class: "flex flex-row items-center flex-[2]" }, Ae = { class: "ml-4 text-xs flex-[2]" }, Fe = { class: "flex justify-center items-center" }, He = { class: "py-2 text-gray-500 flex" }, Te = { class: "w-2/3" }, Oe = { class: "text-gray-500 flex" }, Be = { class: "w-2/3" }, Ge = { class: "flex flex-col" }, Pe = { class: "text-4xl" }, We = { class: "mt-1 ml-3" }, Ye = { class: "default:bg-white dark:bg-black" }, Je = ["onClick"], Ke = { class: "h-20 flex justify-center items-center flex-col" }, Qe = { class: "text-xs mt-2" }, Xe = { class: "p-3" }, Ze = { class: "p-0 w-full h-full" }, et = { class: "flex" }, tt = { class: "ml-3" }, st = { class: "text-blue-600 mr-3" }, nt = { class: "text-gray-400 text-sm" }, ot = { class: "p-1" }, lt = /* @__PURE__ */ J({
232
232
  name: "SuHome",
233
233
  __name: "su-welcome",
234
234
  setup(P) {
235
235
  const h = de(), j = ne(), u = y([]), $ = y([]), b = y(!1), I = y(!1), r = Z(() => {
236
236
  var s;
237
237
  return (s = h.getUserInfo.name) == null ? void 0 : s.slice(0, 1);
238
- }), L = () => {
238
+ }), E = () => {
239
239
  var t, o;
240
- return h.isAdminRole ? "系统管理员" : (o = (t = h.getUserInfo) == null ? void 0 : t.sysRoles) == null ? void 0 : o.map((_) => _.roleName).join(",");
240
+ return h.isAdminRole ? "系统管理员" : (o = (t = h.getUserInfo) == null ? void 0 : t.sysRoles) == null ? void 0 : o.map((v) => v.roleName).join(",");
241
241
  }, R = () => {
242
242
  var t;
243
- return h.isAdminRole ? "【系统管理员】拥有所有组织" : L() === "项目组管理员" ? "【项目组管理员】拥有所有组织" : (t = h.getOrglist) == null ? void 0 : t.map((o) => o.orgName).join(",");
243
+ return h.isAdminRole ? "【系统管理员】拥有所有组织" : E() === "项目组管理员" ? "【项目组管理员】拥有所有组织" : (t = h.getOrglist) == null ? void 0 : t.map((o) => o.orgName).join(",");
244
244
  }, V = () => {
245
245
  const s = Number(oe().format("HH"));
246
246
  return s < 12 ? "上午好" : s < 18 ? "下午好" : "晚上好";
@@ -249,9 +249,9 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
249
249
  s.getFullYear(),
250
250
  s.getMonth() + 1,
251
251
  s.getDate()
252
- ), { gzYear: o, IMonthCn: _, IDayCn: M, cMonth: S, cDay: w, ncWeek: U } = t;
253
- return `${S}月${w}日 ${o}${_}${M} ${U}`;
254
- }, D = () => {
252
+ ), { gzYear: o, IMonthCn: v, IDayCn: M, cMonth: S, cDay: w, ncWeek: U } = t;
253
+ return `${S}月${w}日 ${o}${v}${M} ${U}`;
254
+ }, q = () => {
255
255
  const s = "/upfm/v1/menuFavority";
256
256
  I.value = !0;
257
257
  const t = { pageSize: 20, pageNum: 1, userName: ue.get(me) };
@@ -265,16 +265,16 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
265
265
  }, H = () => {
266
266
  var o;
267
267
  const s = "/upfm/v1/userMonitor", t = { pageSize: 8, pageNum: 1, employeeName: (o = h.getUserInfo) == null ? void 0 : o.name };
268
- G().get(s, t).then((_) => {
269
- $.value = (_ == null ? void 0 : _.list) || [];
268
+ G().get(s, t).then((v) => {
269
+ $.value = (v == null ? void 0 : v.list) || [];
270
270
  });
271
271
  }, T = () => {
272
272
  b.value = !0;
273
273
  };
274
274
  K(() => {
275
- D(), H();
275
+ q(), H();
276
276
  });
277
- const E = (s) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][s % 5], q = [
277
+ const D = (s) => ["#409eff", "#67c23a", "#13c2c2", "#e85f33", "orange"][s % 5], L = [
278
278
  "community",
279
279
  "shield-star",
280
280
  "group",
@@ -328,16 +328,16 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
328
328
  ];
329
329
  return (s, t) => {
330
330
  var x;
331
- const o = v("el-avatar"), _ = v("ut-countdown"), M = v("el-empty"), S = v("iconify-icon-offline"), w = v("el-card"), U = v("el-col"), m = v("ut-calendar"), l = v("el-row"), d = ee("spinning");
332
- return a(), p("div", qe, [
331
+ const o = _("el-avatar"), v = _("ut-flip-down"), M = _("el-empty"), S = _("iconify-icon-offline"), w = _("el-card"), U = _("el-col"), m = _("ut-calendar"), l = _("el-row"), d = ee("spinning");
332
+ return a(), p("div", Le, [
333
333
  e("div", ze, [
334
334
  e("div", Re, [
335
335
  e("div", null, [
336
- i(o, {
336
+ c(o, {
337
337
  size: "large",
338
338
  class: "text-4xl font-bold bg-[var(--el-color-primary)]"
339
339
  }, {
340
- default: c(() => [
340
+ default: i(() => [
341
341
  Y(f(r.value), 1)
342
342
  ]),
343
343
  _: 1
@@ -353,7 +353,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
353
353
  ]),
354
354
  e("div", He, [
355
355
  t[2] || (t[2] = e("span", { class: "inline-block" }, " 所属角色: ", -1)),
356
- e("div", Te, f(L()), 1)
356
+ e("div", Te, f(E()), 1)
357
357
  ]),
358
358
  e("div", Oe, [
359
359
  t[3] || (t[3] = e("span", { class: "inline-block" }, " 所属组织: ", -1)),
@@ -363,7 +363,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
363
363
  ]),
364
364
  e("div", Ge, [
365
365
  e("span", Pe, [
366
- i(_, {
366
+ c(v, {
367
367
  "show-days": !1,
368
368
  "show-labels": !1
369
369
  })
@@ -371,19 +371,19 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
371
371
  e("div", We, f(A()), 1)
372
372
  ])
373
373
  ]),
374
- i(l, {
374
+ c(l, {
375
375
  class: "m-2",
376
376
  gutter: 10
377
377
  }, {
378
- default: c(() => [
378
+ default: i(() => [
379
379
  te((a(), N(U, {
380
380
  lg: 24,
381
381
  md: 24,
382
382
  class: ""
383
383
  }, {
384
- default: c(() => [
385
- i(w, { class: "mb-2" }, {
386
- header: c(() => [
384
+ default: i(() => [
385
+ c(w, { class: "mb-2" }, {
386
+ header: i(() => [
387
387
  e("div", { class: "flex items-center justify-between dark:bg-black" }, [
388
388
  t[5] || (t[5] = e("span", { class: "font-bold" }, "常用菜单", -1)),
389
389
  e("span", {
@@ -395,7 +395,7 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
395
395
  ]))
396
396
  ])
397
397
  ]),
398
- default: c(() => [
398
+ default: i(() => [
399
399
  e("div", Ye, [
400
400
  u.value.length ? O("", !0) : (a(), N(M, {
401
401
  key: 0,
@@ -414,10 +414,10 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
414
414
  e("div", Ke, [
415
415
  e("div", {
416
416
  class: "rounded-full w-10 h-10 flex items-center justify-center",
417
- style: Q({ backgroundColor: E(W) })
417
+ style: Q({ backgroundColor: D(W) })
418
418
  }, [
419
- i(S, {
420
- icon: g.icon || `ri:${q[W]}-line`,
419
+ c(S, {
420
+ icon: g.icon || `ri:${L[W]}-line`,
421
421
  class: "text-2xl text-white"
422
422
  }, null, 8, ["icon"])
423
423
  ], 4),
@@ -435,19 +435,19 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
435
435
  })), [
436
436
  [d, I.value]
437
437
  ]),
438
- i(U, {
438
+ c(U, {
439
439
  xl: 16,
440
440
  lg: 12,
441
441
  md: 24
442
442
  }, {
443
- default: c(() => [
444
- i(w, { class: "mb-2" }, {
445
- header: c(() => t[7] || (t[7] = [
443
+ default: i(() => [
444
+ c(w, { class: "mb-2" }, {
445
+ header: i(() => t[7] || (t[7] = [
446
446
  e("div", { class: "font-bold" }, [
447
447
  e("span", null, "个人动态")
448
448
  ], -1)
449
449
  ])),
450
- default: c(() => [
450
+ default: i(() => [
451
451
  e("div", Xe, [
452
452
  e("ul", Ze, [
453
453
  (a(!0), p(k, null, C($.value, (g) => (a(), p("li", {
@@ -456,8 +456,8 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
456
456
  }, [
457
457
  e("div", et, [
458
458
  e("div", null, [
459
- i(o, { class: "text-base" }, {
460
- default: c(() => [
459
+ c(o, { class: "text-base" }, {
460
+ default: i(() => [
461
461
  Y(f(r.value), 1)
462
462
  ]),
463
463
  _: 1
@@ -480,22 +480,22 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
480
480
  ]),
481
481
  _: 1
482
482
  }),
483
- i(U, {
483
+ c(U, {
484
484
  xl: 8,
485
485
  lg: 12,
486
486
  md: 24,
487
487
  class: ""
488
488
  }, {
489
- default: c(() => [
490
- i(w, { class: "mb-2" }, {
491
- header: c(() => t[8] || (t[8] = [
489
+ default: i(() => [
490
+ c(w, { class: "mb-2" }, {
491
+ header: i(() => t[8] || (t[8] = [
492
492
  e("div", { class: "font-bold" }, [
493
493
  e("span", null, "日历")
494
494
  ], -1)
495
495
  ])),
496
- default: c(() => [
496
+ default: i(() => [
497
497
  e("div", ot, [
498
- i(m, {
498
+ c(m, {
499
499
  holidays: z,
500
500
  "statutory-holiday": n
501
501
  })
@@ -509,18 +509,18 @@ const ge = { class: "" }, he = { class: "w-full h-24" }, xe = { class: "" }, ye
509
509
  ]),
510
510
  _: 1
511
511
  }),
512
- b.value ? (a(), N(Le, {
512
+ b.value ? (a(), N(Ee, {
513
513
  key: 0,
514
514
  "data-source": u.value,
515
515
  "user-name": B(h).getUserInfo.userName,
516
- icons: q,
516
+ icons: L,
517
517
  onClose: t[0] || (t[0] = (g) => b.value = !1),
518
- onSuccess: D
518
+ onSuccess: q
519
519
  }, null, 8, ["data-source", "user-name"])) : O("", !0)
520
520
  ]);
521
521
  };
522
522
  }
523
- }), vt = /* @__PURE__ */ fe(lt, [["__scopeId", "data-v-66a1c7b6"]]);
523
+ }), _t = /* @__PURE__ */ fe(lt, [["__scopeId", "data-v-5b8ab4a4"]]);
524
524
  export {
525
- vt as default
525
+ _t as default
526
526
  };
@@ -1,12 +1,13 @@
1
- import { defineComponent as M, ref as j, reactive as E, computed as O, onMounted as S, resolveComponent as c, resolveDirective as T, withDirectives as q, createElementBlock as A, openBlock as B, createElementVNode as u, createVNode as a, withCtx as o, createTextVNode as v, toDisplayString as p } from "vue";
2
- import { useI18n as F } from "vue-i18n";
3
- import { y as x, m as J, v as K, q as N } from "./index-BDE4-ZvN.js";
4
- import { cookies as R, successMessage as Y, warnMessage as H } from "@utogether/utils";
5
- import { isArray as Q } from "xe-utils";
6
- const W = { class: "flex flex-col items-center bg-white u-system-config" }, X = { class: "flex justify-end w-1/2 p-2" }, Z = { class: "flex w-1/2 p-2 overflow-y-auto border border-gray-300 rounded-md" }, ee = { class: "flex items-center" }, te = { class: "pl-2 text-xs" }, se = { class: "pl-2" }, ae = { class: "pl-2" }, le = { class: "flex items-center" }, oe = { class: "pl-2 text-xs" }, ne = { class: "pl-2" }, ie = { class: "flex items-center" }, ue = { class: "pl-2 text-xs" }, k = "/upfm/v1/sysConfig", fe = /* @__PURE__ */ M({
1
+ import { defineComponent as M, ref as j, reactive as E, computed as O, onMounted as S, resolveComponent as c, resolveDirective as T, withDirectives as q, createElementBlock as x, openBlock as A, createElementVNode as u, createVNode as a, withCtx as o, createTextVNode as v, toDisplayString as p } from "vue";
2
+ import { useI18n as B } from "vue-i18n";
3
+ import { t as N } from "./await-to-js.es5-BtRbN2QH.js";
4
+ import { cookies as F, successMessage as J, warnMessage as K } from "@utogether/utils";
5
+ import { isArray as R } from "xe-utils";
6
+ import { x as Y, m as H, q as Q } from "./index-COBMRlmJ.js";
7
+ const W = { class: "flex flex-col items-center bg-white u-system-config" }, X = { class: "flex justify-end w-1/2 p-2" }, Z = { class: "flex w-1/2 p-2 overflow-y-auto border border-gray-300 rounded-md" }, ee = { class: "flex items-center" }, te = { class: "pl-2 text-xs" }, se = { class: "pl-2" }, ae = { class: "pl-2" }, le = { class: "flex items-center" }, oe = { class: "pl-2 text-xs" }, ne = { class: "pl-2" }, ie = { class: "flex items-center" }, ue = { class: "pl-2 text-xs" }, k = "/upfm/v1/sysConfig", be = /* @__PURE__ */ M({
7
8
  __name: "sys-config",
8
9
  setup(de) {
9
- const L = j(), y = j(!1), s = E({
10
+ const L = j(), _ = j(!1), s = E({
10
11
  defaultLanguage: "zh",
11
12
  title: "U-DP",
12
13
  ispTitle: "U-DP",
@@ -15,7 +16,7 @@ const W = { class: "flex flex-col items-center bg-white u-system-config" }, X =
15
16
  logo: [],
16
17
  backgroundImg: [],
17
18
  favicon: []
18
- }), _ = K(), { t: m } = F(), f = j(x());
19
+ }), y = Q(), { t: m } = B(), f = j(Y());
19
20
  let r = [];
20
21
  const U = E({
21
22
  defaultLanguage: [
@@ -29,7 +30,7 @@ const W = { class: "flex flex-col items-center bg-white u-system-config" }, X =
29
30
  { required: !0, message: m("message.required") + m("message.udp.systemTitle"), trigger: "blur" }
30
31
  ]
31
32
  }), h = O(() => {
32
- const e = R.get(J);
33
+ const e = F.get(H);
33
34
  return {
34
35
  Authorization: "Bearer " + JSON.parse(e).accessToken
35
36
  };
@@ -41,21 +42,21 @@ const W = { class: "flex flex-col items-center bg-white u-system-config" }, X =
41
42
  configCategory: "system",
42
43
  fileName: ""
43
44
  };
44
- Q(s[t]) && (l.configValue = C(s[t][0]).url, l.fileName = C(s[t][0]).name);
45
+ R(s[t]) && (l.configValue = C(s[t][0]).url, l.fileName = C(s[t][0]).name);
45
46
  const d = r.findIndex((i) => i.configCode === t);
46
47
  d !== -1 ? r[d] = Object.assign(r[d], l) : r.push(l);
47
48
  }), e == null || e.validate(async (t) => {
48
49
  if (t) {
49
- y.value = !0;
50
+ _.value = !0;
50
51
  const l = r.filter((g) => !g.id), d = r.filter((g) => g.id), i = [];
51
- l.length ? i.push(_.post(k, l)) : i.push(_.put(k, d));
52
+ l.length ? i.push(y.post(k, l)) : i.push(y.put(k, d));
52
53
  const [b] = await N(Promise.all(i));
53
- b || (Y(), w()), y.value = !1;
54
+ b || (J(), w()), _.value = !1;
54
55
  }
55
56
  });
56
57
  }, C = (e) => e != null && e.response ? { url: e.response.data, name: e.name } : { url: (e == null ? void 0 : e.realpath) || (e == null ? void 0 : e.url), name: e == null ? void 0 : e.name }, V = (e) => {
57
58
  if (e)
58
- return H(m("message.tip.singleImg"));
59
+ return K(m("message.tip.singleImg"));
59
60
  }, w = () => {
60
61
  Object.keys(s).forEach((e) => {
61
62
  const t = r.find((l) => l.configCode === e);
@@ -67,14 +68,14 @@ const W = { class: "flex flex-col items-center bg-white u-system-config" }, X =
67
68
  }
68
69
  });
69
70
  }, z = async () => {
70
- const [e, t] = await N(_.get(k, {}));
71
+ const [e, t] = await N(y.get(k, {}));
71
72
  e || (r = t.list), w();
72
73
  };
73
74
  return S(() => {
74
75
  z();
75
76
  }), (e, t) => {
76
77
  const l = c("el-button"), d = c("el-input"), i = c("el-form-item"), b = c("el-option"), g = c("el-select"), I = c("el-switch"), $ = c("el-upload"), D = c("el-form"), G = T("spinning");
77
- return q((B(), A("div", W, [
78
+ return q((A(), x("div", W, [
78
79
  u("div", X, [
79
80
  a(l, {
80
81
  type: "primary",
@@ -266,11 +267,11 @@ const W = { class: "flex flex-col items-center bg-white u-system-config" }, X =
266
267
  }, 8, ["model", "rules"])
267
268
  ])
268
269
  ])), [
269
- [G, y.value]
270
+ [G, _.value]
270
271
  ]);
271
272
  };
272
273
  }
273
274
  });
274
275
  export {
275
- fe as default
276
+ be as default
276
277
  };