@utogether/udp-core 1.0.4 → 2.0.0-beta.10

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 (124) hide show
  1. package/dist/{403-DASI6Pwz.js → 403-DjXGcxpa.js} +3 -3
  2. package/dist/{404-YhBA92cb.js → 404-B_MSn6FQ.js} +1 -1
  3. package/dist/{500-ywbFF5MX.js → 500-CtI21E9g.js} +2 -2
  4. package/dist/{AuthorityInfo-tCSX2Fh7.js → AuthorityInfo-CYhRUS8K.js} +1 -1
  5. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-Cwd6UT2i.js → AuthorityInfo.vue_vue_type_style_index_0_lang-BY8hkJ2R.js} +2 -2
  6. package/dist/{AuthorityPanel-BeBNiwqc.js → AuthorityPanel-CRlAwbaI.js} +1 -1
  7. package/dist/{AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js → AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S.js} +31 -24
  8. package/dist/{Company-l23MEzdM.js → Company-BVH3Zyy0.js} +3 -3
  9. package/dist/{CompanyPanel-D_s0rh6h.js → CompanyPanel-BKx3WVgS.js} +1 -1
  10. package/dist/{Department-DSEvORLg.js → Department-BZcr0_eu.js} +3 -3
  11. package/dist/{DepartmentPanel-WN8nOgCV.js → DepartmentPanel-BZNV3WaF.js} +3 -3
  12. package/dist/{DesignPanel-DirEGh9M.js → DesignPanel-7gr0Fljt.js} +1 -1
  13. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-D02hXSrN.js → DesignPanel.vue_vue_type_style_index_0_lang-By9HKa8W.js} +3 -3
  14. package/dist/{DictView-DiIQdiek.js → DictView-B0dRdinW.js} +20 -19
  15. package/dist/{InvOrganization-b7v3g9EJ.js → InvOrganization-CwTNjj-a.js} +2 -2
  16. package/dist/{Org-BORfx1PL.js → Org-D59oQ0VY.js} +2 -2
  17. package/dist/{Preview-DkRn_TSc.js → Preview-sbZrWUWr.js} +1 -1
  18. package/dist/{ReportDefine-Cd0QeaWA.js → ReportDefine-C7CZ6RSh.js} +1 -1
  19. package/dist/{ReportDesign-4qNqyeEW.js → ReportDesign-CuevdD_6.js} +3 -3
  20. package/dist/{ReportQuery-BJfTFpec.js → ReportQuery-BndhM0Ji.js} +1 -1
  21. package/dist/{ReportQueryFrom-CB7sExZx.js → ReportQueryFrom-n2k7BNX9.js} +1 -1
  22. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CqO_2Ier.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-CFtXbzOb.js} +1 -1
  23. package/dist/{ReportTemplate-B69muSgT.js → ReportTemplate-43Rx_knT.js} +1 -1
  24. package/dist/{Role-Bo4YrNDC.js → Role-BS2QH_H8.js} +3 -3
  25. package/dist/{RoleAssign-kOMYJ4s3.js → RoleAssign-C6wMcgfW.js} +3 -3
  26. package/dist/{RolePanel-BSJmjyqc.js → RolePanel-BwyuGmJw.js} +1 -1
  27. package/dist/{RolePanel-B1d4e6uk.js → RolePanel-DJop6xpJ.js} +1 -1
  28. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DgQpfjaU.js → RolePanel.vue_vue_type_script_setup_true_lang-CSkU6fAb.js} +3 -3
  29. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DCzX-ZP_.js → RolePanel.vue_vue_type_script_setup_true_lang-Cf0BCtgL.js} +2 -2
  30. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-WNOYFxJ1.js → ScrollPanel.vue_vue_type_style_index_0_lang-BZY0JkpB.js} +32 -31
  31. package/dist/Staff-DI6eAVQs.js +26 -0
  32. package/dist/{StaffInfo-DcU9_40C.js → StaffInfo-BQhMyQ7u.js} +1 -1
  33. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-CtfN2CAr.js → StaffInfo.vue_vue_type_script_setup_true_lang-D79C6rw0.js} +9 -9
  34. package/dist/{StaffPanel-7exWkZd9.js → StaffPanel-By5elrj9.js} +1 -1
  35. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-DtbIZdcq.js +154 -0
  36. package/dist/{SysUser-B3uB_cp2.js → SysUser-DNYitHEW.js} +2 -2
  37. package/dist/{SysUserPanel-B0CLp5AO.js → SysUserPanel-_WDSXjfT.js} +1 -1
  38. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-Cwea_4dY.js → SysUserPanel.vue_vue_type_script_setup_true_lang-BFhIa5Gs.js} +126 -111
  39. package/dist/{SystemMenu-a59l4hTk.js → SystemMenu-C_H0bTA7.js} +52 -49
  40. package/dist/{UserInfo-D1IA2oLt.js → UserInfo-Bx25xdkh.js} +1 -1
  41. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-DDVgYRD5.js → UserInfo.vue_vue_type_style_index_0_lang-B6FE4Epn.js} +2 -2
  42. package/dist/await-to-js.es5-Bv3Eu4mi.js +10 -0
  43. package/dist/{childView-6rCeLcsx.js → childView-CiKCAXKS.js} +1 -1
  44. package/dist/{childView-JdrkroL5.js → childView-WAzRvHLp.js} +1 -1
  45. package/dist/{childView.vue_vue_type_style_index_0_lang-B8x99f1B.js → childView.vue_vue_type_style_index_0_lang-3n_-DrRj.js} +2 -2
  46. package/dist/{childView.vue_vue_type_style_index_0_lang-BfcnWnx9.js → childView.vue_vue_type_style_index_0_lang-Bz4630fS.js} +26 -20
  47. package/dist/{code-rule-2lkPF547.js → code-rule-BehFVVOx.js} +2 -2
  48. package/dist/core.es.js +1 -1
  49. package/dist/{cron-task-DV1pGO1m.js → cron-task-C0-R_b64.js} +2 -2
  50. package/dist/{frameView-C0bzSB8c.js → frameView-4E2U2LM3.js} +1 -1
  51. package/dist/index-BvU3LB8R.js +7275 -0
  52. package/dist/layout-home-DJywZo1E.js +232 -0
  53. package/dist/{layoutView-CTV-E4Cj.js → layoutView-JGsVdXXu.js} +148 -149
  54. package/dist/{log-in-CoBP2x6u.js → log-in-l4FpOtBL.js} +2 -2
  55. package/dist/{log-out-KX8FiRVf.js → log-out-Cij2dkih.js} +2 -2
  56. package/dist/{login-CtCoGWzD.js → login-D4hfm7ZW.js} +124 -134
  57. package/dist/{login-log-DJBGJVV0.js → login-log-BEHYT0v0.js} +5 -5
  58. package/dist/{lov-view-Bm0JEzzg.js → lov-view-CpJedb5y.js} +3 -3
  59. package/dist/{menuInfo-D2qPoRwz.js → menuInfo-ClhT8lVG.js} +1 -1
  60. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DoQjX9Ly.js → menuInfo.vue_vue_type_style_index_0_lang-VuKVlyhc.js} +38 -36
  61. package/dist/{pda-app-SbcIclbH.js → pda-app-D_w1bNyU.js} +2 -2
  62. package/dist/{resource-Cdq1UKGI.js → resource-BxTwBnU4.js} +1 -1
  63. package/dist/su-welcome-BLNjs5WE.js +42181 -0
  64. package/dist/{sys-config-CCOf4xbj.js → sys-config-C0RJg9l1.js} +2 -2
  65. package/dist/udp-core.css +1 -1
  66. package/package.json +5 -2
  67. package/src/App.vue +37 -31
  68. package/src/components/SuScrollTree/ScrollPanel.vue +176 -170
  69. package/src/components/udp/content/index.vue +88 -88
  70. package/src/components/udp/form-upload/form-upload.vue +496 -0
  71. package/src/components/udp/grid/index.vue +524 -524
  72. package/src/components/udp/index.ts +6 -5
  73. package/src/components/udp/ut-stamp-badge/index.vue +271 -271
  74. package/src/components/udp/utils.ts +8 -2
  75. package/src/layout/components/lay-content/index.vue +4 -11
  76. package/src/layout/components/lay-search/components/SearchModal.vue +181 -189
  77. package/src/layout/components/lay-setting/index.vue +503 -503
  78. package/src/layout/components/lay-sidebar/sidebar-logo.vue +101 -101
  79. package/src/layout/components/lay-tag/index.vue +598 -598
  80. package/src/layout/hooks/useNav.ts +176 -176
  81. package/src/layout/hooks/useTag.ts +227 -227
  82. package/src/layout/layoutView.vue +216 -215
  83. package/src/layout/types.ts +93 -93
  84. package/src/main.ts +111 -115
  85. package/src/plugins/i18n/zh.ts +19 -3
  86. package/src/plugins/vxe-table/render.tsx +60 -15
  87. package/src/router/index.ts +187 -187
  88. package/src/router/modules/home.ts +32 -32
  89. package/src/router/utils.ts +420 -420
  90. package/src/store/modules/epTheme.ts +48 -48
  91. package/src/style/vxetable.scss +18 -2
  92. package/src/utils/dataFormat/index.ts +222 -222
  93. package/src/utils/lifecycle.ts +39 -39
  94. package/src/views/organization/department/DepartmentPanel.vue +303 -303
  95. package/src/views/organization/staff/Staff.vue +59 -58
  96. package/src/views/organization/staff/StaffInfo.vue +3 -2
  97. package/src/views/organization/staff/StaffPanel.vue +13 -1
  98. package/src/views/system/layout/layout-home.vue +238 -0
  99. package/src/views/system/menu/AuthorityPanel.vue +10 -9
  100. package/src/views/system/menu/SystemMenu.vue +194 -185
  101. package/src/views/system/menu/menuInfo.vue +384 -384
  102. package/src/views/system/sysUser/SysUserPanel.vue +363 -347
  103. package/src/views/udev/coderule/code-rule.vue +132 -132
  104. package/src/views/udev/dict/DictView.vue +4 -4
  105. package/src/views/udev/dict/childView.vue +6 -4
  106. package/src/views/udev/lov/childView.vue +174 -174
  107. package/src/views/ufile/aggregation/File.vue +85 -87
  108. package/src/views/uhome/components/common-menu.vue +118 -0
  109. package/src/views/uhome/components/dynamic-component.vue +66 -0
  110. package/src/views/uhome/components/home-todo.vue +175 -0
  111. package/src/views/uhome/components/menu-favorite.vue +315 -315
  112. package/src/views/uhome/dynamic-card.vue +31 -0
  113. package/src/views/uhome/su-welcome.vue +47 -114
  114. package/src/views/ulogin/login.vue +336 -325
  115. package/src/views/upms/interface/log-in.vue +100 -100
  116. package/src/views/upms/interface/log-out.vue +104 -104
  117. package/src/views/upms/user/login-log.vue +54 -54
  118. package/types/global.d.ts +232 -231
  119. package/vite.config.ts +83 -84
  120. package/dist/Staff-BFp3zNNR.js +0 -25
  121. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-v5xOXKRS.js +0 -143
  122. package/dist/await-to-js.es5-BtRbN2QH.js +0 -10
  123. package/dist/index-BbtbEMCH.js +0 -4649
  124. package/dist/su-welcome-BHDsjqqV.js +0 -524
@@ -1,143 +0,0 @@
1
- import { defineComponent as E, ref as C, inject as S, reactive as N, watch as B, nextTick as D, resolveComponent as r, createElementBlock as M, openBlock as d, createVNode as s, createBlock as I, createCommentVNode as L, Fragment as A } from "vue";
2
- import { useI18n as P } from "vue-i18n";
3
- import { clone as U } from "xe-utils";
4
- import { warnMessage as V } from "@utogether/utils";
5
- import { _ as T } from "./StaffInfo.vue_vue_type_script_setup_true_lang-CtfN2CAr.js";
6
- import { y as i } from "./index-BbtbEMCH.js";
7
- import { VxeUI as Y } from "vxe-pc-ui";
8
- import { t as O } from "./await-to-js.es5-BtRbN2QH.js";
9
- const j = {
10
- class: "page-content"
11
- }, l = "/uums/employee", Q = /* @__PURE__ */ E({
12
- __name: "StaffPanel",
13
- setup(q) {
14
- const a = C(null), {
15
- t: u
16
- } = P(), n = S("active"), t = N({
17
- record: {},
18
- showModelView: !1,
19
- fetchExtParam: {}
20
- });
21
- B(() => n.value, (e) => {
22
- t.fetchExtParam = {
23
- departmentId: e == null ? void 0 : e.id
24
- }, D(() => {
25
- a.value.refreshData();
26
- });
27
- });
28
- const m = [{
29
- code: "sync",
30
- auth: "wechat",
31
- status: "success",
32
- icon: "ri-refresh-line"
33
- }, {
34
- code: "sync",
35
- auth: "dingding",
36
- status: "success",
37
- icon: "ri-refresh-line"
38
- }, {
39
- code: "sync",
40
- auth: "OA",
41
- status: "success",
42
- icon: "ri-refresh-line"
43
- }, {
44
- code: "del",
45
- auth: "/"
46
- }], f = [{
47
- field: "employeeCode"
48
- }, {
49
- field: "employeeName"
50
- }], p = [{
51
- type: "checkbox",
52
- width: 50,
53
- align: "center"
54
- }, {
55
- field: "employeeCode"
56
- }, {
57
- field: "employeeName",
58
- width: 150
59
- }, {
60
- field: "gender",
61
- width: 100,
62
- formatter: ["formatDict", "SU.GENDER"]
63
- }, {
64
- field: "enabled",
65
- width: 100,
66
- formatter: ["formatDict", "SU.ENABLE"]
67
- }, {
68
- field: "operate",
69
- width: 150,
70
- fixed: "right",
71
- slots: {
72
- default: ({
73
- row: e
74
- }) => {
75
- const o = ["1", "Y"].includes(e.enabled) ? "disabled" : "enable", c = ["1", "Y"].includes(e.enabled) ? "ri-stop-circle-fill" : "ri-play-circle-fill", x = ["1", "Y"].includes(e.enabled) ? "warning" : "success";
76
- return [s(A, null, [s(r("ut-button"), {
77
- icon: "ri-edit-box-line",
78
- content: "edit",
79
- onTap: () => v(e)
80
- }, null), s(r("ut-button"), {
81
- icon: c,
82
- content: o,
83
- status: x,
84
- onTap: () => b(e)
85
- }, null)])];
86
- }
87
- }
88
- }], h = {
89
- toolbarButtonClick({
90
- code: e
91
- }) {
92
- e === "add" && y();
93
- }
94
- }, y = () => {
95
- var e, o;
96
- if (!((e = n.value) != null && e.deptName))
97
- return V("请先选择部门");
98
- t.dataStatus = "add", t.record = {}, t.record.departmentId = (o = n.value) == null ? void 0 : o.id, t.record.deptName = n.value.deptName, t.record.enabled = "1", t.showModelView = !0;
99
- }, v = (e) => {
100
- t.dataStatus = "update", t.record = e, t.showModelView = !0;
101
- }, b = async (e) => {
102
- const o = U(e, !0);
103
- a.value.showLoading(), o.enabled = o.enabled === "1" ? "0" : "1", await i().put(l, o), a.value.hiddenLoading(), a.value.refreshData();
104
- }, g = async () => {
105
- if (await Y.modal.confirm(u("message.tip.confirmSync")) !== "confirm") return;
106
- a.value.showLoading();
107
- const [o] = await O(i().post("/uums/employee/syncEwEmp", {}));
108
- a.value.hiddenLoading(), !o && a.value.refreshData();
109
- }, _ = (e) => {
110
- e === "sync" && g();
111
- }, w = {
112
- querySuccess: (e) => {
113
- }
114
- }, k = () => {
115
- t.showModelView = !1, a.value.refreshData();
116
- };
117
- return (e, o) => {
118
- const c = r("ut-grid");
119
- return d(), M("div", j, [s(c, {
120
- ref_key: "xgrid",
121
- ref: a,
122
- items: f,
123
- columns: p,
124
- "default-params": t.fetchExtParam,
125
- events: h,
126
- "auto-load": !1,
127
- buttons: m,
128
- url: l,
129
- callback: w,
130
- mode: "form",
131
- onButtonClick: _
132
- }, null, 8, ["default-params"]), t.showModelView ? (d(), I(T, {
133
- key: 0,
134
- record: t.record,
135
- "data-status": t.dataStatus,
136
- onOnClose: k
137
- }, null, 8, ["record", "data-status"])) : L("", !0)]);
138
- };
139
- }
140
- });
141
- export {
142
- Q as _
143
- };
@@ -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
- };