@utogether/udp-core 1.0.4-beta.3 → 2.0.0-beta.1

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 (75) hide show
  1. package/dist/{403-Br5N4PKN.js → 403-CTJDBjz7.js} +1 -1
  2. package/dist/{404-Cphyvdq5.js → 404-BFYkWIkQ.js} +1 -1
  3. package/dist/{500-B-3UGX9B.js → 500-DGG3qadg.js} +1 -1
  4. package/dist/{AuthorityInfo-B-OkSW-b.js → AuthorityInfo-ozZIo1Te.js} +1 -1
  5. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-C0YHB5FG.js → AuthorityInfo.vue_vue_type_style_index_0_lang-DujerENw.js} +1 -1
  6. package/dist/{AuthorityPanel-BzIh29KB.js → AuthorityPanel-CRlAwbaI.js} +1 -1
  7. package/dist/{AuthorityPanel.vue_vue_type_style_index_0_lang-D3GN0Ybz.js → AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S.js} +0 -1
  8. package/dist/{Company-GuWnxwpp.js → Company-6VJtwh23.js} +3 -3
  9. package/dist/{CompanyPanel-C3fB3IiJ.js → CompanyPanel-B2P488mq.js} +1 -1
  10. package/dist/{Department-B2cHYzWw.js → Department-BnwoLEOC.js} +3 -3
  11. package/dist/{DepartmentPanel-p3Nh1l2h.js → DepartmentPanel-CRrrmxtv.js} +1 -1
  12. package/dist/{DesignPanel-DPyiLBdU.js → DesignPanel-CvbccgX2.js} +1 -1
  13. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-Dom1Fjkx.js → DesignPanel.vue_vue_type_style_index_0_lang-Dz2tUszs.js} +2 -2
  14. package/dist/{DictView-o4ZaWa-_.js → DictView-Ce1LoVHh.js} +17 -16
  15. package/dist/{InvOrganization-a-Z9thJX.js → InvOrganization-BwCFZO1X.js} +1 -1
  16. package/dist/{Org-Clyb77M1.js → Org-0hzs6b0R.js} +1 -1
  17. package/dist/{Preview-D4TR9Oi6.js → Preview--DnEAhwh.js} +1 -1
  18. package/dist/{ReportDefine-BSrw2it1.js → ReportDefine-Cu983bTN.js} +1 -1
  19. package/dist/{ReportDesign-DZJia5c3.js → ReportDesign-QsWXXgvo.js} +2 -2
  20. package/dist/{ReportQuery-B7-jctXZ.js → ReportQuery-BjKIIhPu.js} +1 -1
  21. package/dist/{ReportQueryFrom-CUB0cyYW.js → ReportQueryFrom-DIjBO6Fx.js} +1 -1
  22. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-DCjYH6zz.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-0T62cUMK.js} +1 -1
  23. package/dist/{ReportTemplate-B5fV2yP8.js → ReportTemplate-2uk9tJcy.js} +1 -1
  24. package/dist/{Role-CYFOwua_.js → Role-_QP8QEaI.js} +3 -3
  25. package/dist/{RoleAssign-B1zojluk.js → RoleAssign-C2gkcmEQ.js} +3 -3
  26. package/dist/{RolePanel-Dd4pcCsa.js → RolePanel-B8FPNGaA.js} +1 -1
  27. package/dist/{RolePanel-C4OpgPKj.js → RolePanel-vnl_lXNY.js} +1 -1
  28. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-C23dTOLA.js → RolePanel.vue_vue_type_script_setup_true_lang-BuQbYEEI.js} +1 -1
  29. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CgBOYiMe.js → RolePanel.vue_vue_type_script_setup_true_lang-bxHXrBYl.js} +3 -3
  30. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-C6lFErKj.js → ScrollPanel.vue_vue_type_style_index_0_lang-C6yZXBqB.js} +1 -1
  31. package/dist/{Staff-BKAIz1Y8.js → Staff-CHWrMIEb.js} +3 -3
  32. package/dist/{StaffInfo-BZ2pgagl.js → StaffInfo-Cpq2eayz.js} +1 -1
  33. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-YWKBlMp8.js → StaffInfo.vue_vue_type_script_setup_true_lang-BVCjF2i1.js} +1 -1
  34. package/dist/{StaffPanel-5xQ0DM6e.js → StaffPanel-D2BMXt5p.js} +1 -1
  35. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-DofQGe0q.js → StaffPanel.vue_vue_type_script_setup_true_lang-B6jAGo-g.js} +2 -2
  36. package/dist/{SysUser-Dr8-NYfp.js → SysUser-om6H1BeC.js} +2 -2
  37. package/dist/{SysUserPanel-BhE8NIQY.js → SysUserPanel-CH0HPP7h.js} +1 -1
  38. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-BYYN1LQO.js → SysUserPanel.vue_vue_type_script_setup_true_lang-Dpl13ee0.js} +126 -111
  39. package/dist/{SystemMenu-Bl0k_S_c.js → SystemMenu-BkG_DKxA.js} +3 -3
  40. package/dist/{UserInfo-BpeCyf8v.js → UserInfo-D9croxUe.js} +1 -1
  41. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-B0fISZLD.js → UserInfo.vue_vue_type_style_index_0_lang-DLIP8xpN.js} +1 -1
  42. package/dist/{childView-CQWyQ-Sv.js → childView-BY_Ip-l1.js} +1 -1
  43. package/dist/{childView-DUcTfYwO.js → childView-CHp_TueS.js} +1 -1
  44. package/dist/{childView.vue_vue_type_style_index_0_lang-C8d0diQd.js → childView.vue_vue_type_style_index_0_lang-BNHbDRjt.js} +25 -22
  45. package/dist/{childView.vue_vue_type_style_index_0_lang-BPCiUGed.js → childView.vue_vue_type_style_index_0_lang-CbjGf7Z7.js} +1 -1
  46. package/dist/{code-rule-D6anPMlp.js → code-rule-Ce6yWqCq.js} +1 -1
  47. package/dist/core.es.js +1 -1
  48. package/dist/{cron-task-CX3dv9cg.js → cron-task-DziaH0rI.js} +1 -1
  49. package/dist/{frameView-CiHjp0gt.js → frameView-DNeCVQaY.js} +1 -1
  50. package/dist/{index-D1ZRyH4N.js → index-BabfUVv_.js} +63 -51
  51. package/dist/layout-home-Cis1KlEr.js +195 -0
  52. package/dist/{layoutView-BtcYxZ_W.js → layoutView-12Mlp9A2.js} +1 -1
  53. package/dist/{log-in-T4W0z5yw.js → log-in-1NGaA5OM.js} +1 -1
  54. package/dist/{log-out-CAEvQEgw.js → log-out-B8_atGcQ.js} +1 -1
  55. package/dist/{login-D7hSd_P_.js → login-5dydO6GR.js} +1 -1
  56. package/dist/{lov-view-CJsunGJ_.js → lov-view-DPvGUu3h.js} +2 -2
  57. package/dist/{menuInfo-Ce0G0xKJ.js → menuInfo-DVADYfEK.js} +1 -1
  58. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-CDHg7Yu5.js → menuInfo.vue_vue_type_style_index_0_lang-DgsifDrm.js} +1 -1
  59. package/dist/{pda-app-CRLpLdHN.js → pda-app-BZXs-2BQ.js} +1 -1
  60. package/dist/{resource-Cbn8Rolz.js → resource-BZA9NFKc.js} +1 -1
  61. package/dist/su-welcome-BXe6Cdp3.js +580 -0
  62. package/dist/{sys-config-CCv0suKh.js → sys-config-DQmNjWH4.js} +1 -1
  63. package/dist/udp-core.css +1 -1
  64. package/package.json +1 -1
  65. package/src/main.ts +2 -5
  66. package/src/plugins/i18n/zh.ts +15 -3
  67. package/src/views/system/layout/layout-home.vue +199 -0
  68. package/src/views/system/menu/AuthorityPanel.vue +0 -1
  69. package/src/views/system/sysUser/SysUserPanel.vue +22 -6
  70. package/src/views/udev/dict/DictView.vue +2 -2
  71. package/src/views/udev/dict/childView.vue +1 -0
  72. package/src/views/uhome/dynamic-card.vue +32 -0
  73. package/src/views/uhome/su-welcome.vue +10 -5
  74. package/types/global.d.ts +1 -0
  75. package/dist/su-welcome-BSakSi9Z.js +0 -524
@@ -1,16 +1,16 @@
1
- import { defineComponent as oe, reactive as ae, ref as w, inject as le, createVNode as o, Fragment as x, resolveComponent as a, onMounted as re, createElementBlock as $, openBlock as g, createBlock as b, createCommentVNode as R, withCtx as d, renderList as ne, unref as de } from "vue";
2
- import { useI18n as ie } from "vue-i18n";
3
- import { t as S } from "./await-to-js.es5-BtRbN2QH.js";
4
- import { useRender as ue, warnMessage as me, delay as ce, errorMessage as fe, getDictChildren as pe } from "@utogether/utils";
5
- import { VxeUI as ge } from "vxe-pc-ui";
6
- import { clone as C, isEmpty as he } from "xe-utils";
7
- import { y as we } from "./index-D1ZRyH4N.js";
8
- const ve = {
1
+ import { defineComponent as re, reactive as ne, ref as v, inject as ie, createVNode as o, Fragment as x, resolveComponent as r, onMounted as de, createElementBlock as S, openBlock as h, createBlock as N, createCommentVNode as $, withCtx as u, renderList as ue, unref as me } from "vue";
2
+ import { useI18n as ce } from "vue-i18n";
3
+ import { t as M } from "./await-to-js.es5-BtRbN2QH.js";
4
+ import { useRender as fe, warnMessage as pe, delay as ge, errorMessage as he, getDictChildren as we } from "@utogether/utils";
5
+ import { VxeUI as _ } from "vxe-pc-ui";
6
+ import { clone as U, isEmpty as ve } from "xe-utils";
7
+ import { y as _e } from "./index-BabfUVv_.js";
8
+ const ye = {
9
9
  class: "page"
10
- }, i = "/uums/user", ke = /* @__PURE__ */ oe({
10
+ }, i = "/uums/user", xe = /* @__PURE__ */ re({
11
11
  __name: "SysUserPanel",
12
- setup(_e) {
13
- const t = ae({
12
+ setup(be) {
13
+ const t = ne({
14
14
  record: {},
15
15
  listQuery: {},
16
16
  dataList: [],
@@ -22,28 +22,33 @@ const ve = {
22
22
  showModal: !1,
23
23
  showAuth: !1,
24
24
  dataStatus: ""
25
- }), u = we(), {
26
- t: r
27
- } = ie(), M = {
25
+ }), d = _e(), {
26
+ t: a
27
+ } = ce(), L = {
28
28
  userName: [{
29
29
  required: !0,
30
- message: `${r("message.required")}${r("message.userCode")}`
30
+ message: `${a("message.required")}${a("message.userCode")}`
31
31
  }],
32
32
  name: [{
33
33
  required: !0,
34
- message: `${r("message.required")}${r("message.userName")}`
34
+ message: `${a("message.required")}${a("message.userName")}`
35
35
  }],
36
36
  unitId: [{
37
37
  required: !0,
38
- message: `${r("message.required")}${r("message.unitName")}`
38
+ message: `${a("message.required")}${a("message.unitName")}`
39
39
  }],
40
40
  userPwd: [{
41
41
  required: !0,
42
- message: `${r("message.required")}${r("message.userPwd")}`
42
+ message: `${a("message.required")}${a("message.userPwd")}`
43
43
  }]
44
- }, L = ue(), v = w({}), q = le("treeList"), m = w(!1);
45
- let _ = "";
46
- const c = w(null), D = [{
44
+ }, q = fe(), y = v({}), D = ie("treeList"), c = v(!1);
45
+ let w = "";
46
+ const E = [{
47
+ code: "resetPassword",
48
+ status: "warning",
49
+ icon: "ri-lock-line",
50
+ auth: "batch"
51
+ }], m = v(null), A = [{
47
52
  field: "name",
48
53
  title: "message.udp.userName"
49
54
  }, {
@@ -53,7 +58,7 @@ const ve = {
53
58
  field: "type",
54
59
  title: "message.udp.userType",
55
60
  code: "SU.USER.TYPE"
56
- }], E = [{
61
+ }], I = [{
57
62
  type: "checkbox",
58
63
  width: 40,
59
64
  align: "center"
@@ -70,7 +75,7 @@ const ve = {
70
75
  }, {
71
76
  field: "enabled",
72
77
  width: 80,
73
- cellRender: L.renderEnabled(z)
78
+ cellRender: q.renderEnabled(O)
74
79
  }, {
75
80
  field: "operate",
76
81
  width: 150,
@@ -78,18 +83,18 @@ const ve = {
78
83
  slots: {
79
84
  default: ({
80
85
  row: e
81
- }) => [o(x, null, [o(a("ut-button"), {
86
+ }) => [o(x, null, [o(r("ut-button"), {
82
87
  content: "edit",
83
88
  icon: "ri-edit-line",
84
- onTap: () => B(e)
85
- }, null), o(a("ut-dropdown"), {
86
- buttons: I(),
87
- onCommand: (s) => A(e, s)
89
+ onTap: () => Y(e)
90
+ }, null), o(r("ut-dropdown"), {
91
+ buttons: B(),
92
+ onCommand: (s) => T(e, s)
88
93
  }, null)])]
89
94
  }
90
- }], A = (e, s) => {
91
- s === "role" && H(e), s === "auth" && Q(e), s === "passwordReset" && O(e);
92
- }, I = () => [{
95
+ }], T = (e, s) => {
96
+ s === "role" && Q(e), s === "auth" && J(e), s === "passwordReset" && W(e);
97
+ }, B = () => [{
93
98
  code: "role",
94
99
  icon: "ri-user-fill"
95
100
  }, {
@@ -98,7 +103,7 @@ const ve = {
98
103
  }, {
99
104
  code: "passwordReset",
100
105
  icon: "ri-lock-password-line"
101
- }], U = [{
106
+ }], C = [{
102
107
  field: "userName",
103
108
  title: "message.udp.userCode",
104
109
  required: !0,
@@ -118,118 +123,128 @@ const ve = {
118
123
  visibleMethod: ({
119
124
  data: e
120
125
  }) => !e.id
121
- }], T = () => {
126
+ }], F = () => {
122
127
  t.record = {
123
- userPwd: _,
124
- ...v.value,
128
+ userPwd: w,
129
+ ...y.value,
125
130
  type: "system"
126
- }, t.items = C(U, !0), t.height = 280, t.showModal = !0;
127
- }, B = (e) => {
128
- t.record = C(e, !0), t.items = C(U, !0), t.items[0].disabled = !0, t.height = 240, t.showModal = !0;
129
- }, F = () => {
130
- c.value.getInstance().commitProxy("delete");
131
- }, Y = (e) => [e], j = () => {
132
- c.value.refreshData();
131
+ }, t.items = U(C, !0), t.height = 280, t.showModal = !0;
132
+ }, Y = (e) => {
133
+ t.record = U(e, !0), t.items = U(C, !0), t.items[0].disabled = !0, t.height = 240, t.showModal = !0;
134
+ }, j = () => {
135
+ m.value.getInstance().commitProxy("delete");
136
+ }, z = (e) => [e], H = () => {
137
+ m.value.refreshData();
133
138
  };
134
- async function z({
139
+ async function O({
135
140
  row: e
136
141
  }) {
137
- await S(u.put(i, [e])), c.value.refreshData();
142
+ await M(d.put(i, [e])), m.value.refreshData();
138
143
  }
139
- const H = async (e) => {
144
+ const Q = async (e) => {
140
145
  var l;
141
- t.roleList = [], t.showUserRole = !0, m.value = !0;
142
- const s = await u.get(i + "/getUserRole", {
146
+ t.roleList = [], t.showUserRole = !0, c.value = !0;
147
+ const s = await d.get(i + "/getUserRole", {
143
148
  userName: e.userName
144
149
  });
145
- m.value = !1, t.roleList = (l = s[0]) == null ? void 0 : l.sysRoles;
146
- }, O = async (e) => {
147
- await u.put(i + "/resetPwd", e), await ge.modal.alert(r("message.tip.initPassword", {
148
- code: _
150
+ c.value = !1, t.roleList = (l = s[0]) == null ? void 0 : l.sysRoles;
151
+ }, W = async (e) => {
152
+ await _.modal.confirm(a("message.tip.confirmResetPassword")) === "confirm" && (await d.put(i + "/resetPwd", e), await _.modal.alert(a("message.tip.initPassword", {
153
+ code: w
154
+ })));
155
+ }, G = async () => {
156
+ const e = m.value.getSelectRecords();
157
+ if (!e.length || await _.modal.confirm(a("message.tip.confirmResetPassword")) !== "confirm") return;
158
+ const l = e.map((f) => ({
159
+ id: f.id
149
160
  }));
150
- }, Q = async (e) => {
151
- var h;
152
- t.roleList = [], t.showAuth = !0, m.value = !0, t.record = e;
153
- const [s, l] = await S(u.get(i + "/getUserRole", {
161
+ await d.put(i + "/batchUpdatePwd", l), await _.modal.alert(a("message.tip.initPassword", {
162
+ code: w
163
+ })), m.value.refreshData();
164
+ }, J = async (e) => {
165
+ var f;
166
+ t.roleList = [], t.showAuth = !0, c.value = !0, t.record = e;
167
+ const [s, l] = await M(d.get(i + "/getUserRole", {
154
168
  userName: e.userName
155
169
  }));
156
- m.value = !1, s || (he(l) ? me(r("message.tip.emptyAuth")) : t.roleList = (h = l[0]) == null ? void 0 : h.sysMenuExts);
157
- }, V = w(null), W = () => {
158
- V.value.validate(async (e) => {
170
+ c.value = !1, s || (ve(l) ? pe(a("message.tip.emptyAuth")) : t.roleList = (f = l[0]) == null ? void 0 : f.sysMenuExts);
171
+ }, R = v(null), K = () => {
172
+ R.value.validate(async (e) => {
159
173
  if (!e) {
160
174
  const {
161
175
  record: s,
162
176
  dataStatus: l
163
177
  } = t;
164
- l === "add" ? await u.post(i, s) : await u.put(i, s), P();
178
+ l === "add" ? await d.post(i, s) : await d.put(i, s), V();
165
179
  }
166
180
  });
167
- }, P = () => {
181
+ }, V = () => {
168
182
  t.showModelView = !1;
169
- }, G = (e) => {
170
- e === "add" && T(), e === "del" && F();
171
- }, J = () => {
172
- u.get("/uums/unit", {
183
+ }, X = (e) => {
184
+ e === "add" && F(), e === "del" && j(), e === "resetPassword" && G();
185
+ }, Z = () => {
186
+ d.get("/uums/unit", {
173
187
  pageSize: 10
174
188
  }).then(async (e) => {
175
- v.value = {
189
+ y.value = {
176
190
  unitId: e[0].id,
177
191
  enabled: "1"
178
- }, await ce(100), c.value.refreshData();
192
+ }, await ge(100), m.value.refreshData();
179
193
  }).catch(() => {
180
- fe("获取租户失败,刷新后重试");
194
+ he("获取租户失败,刷新后重试");
181
195
  });
182
- }, K = () => {
196
+ }, ee = () => {
183
197
  var s;
184
- _ = ((s = pe("SU.DEFAULT_PASSWORD")) == null ? void 0 : s.find((l) => l.dictCode === "default")).dictName;
198
+ w = ((s = we("SU.DEFAULT_PASSWORD")) == null ? void 0 : s.find((l) => l.dictCode === "default")).dictName;
185
199
  };
186
- return re(() => {
187
- K(), J();
200
+ return de(() => {
201
+ ee(), Z();
188
202
  }), (e, s) => {
189
- const l = a("ut-grid"), h = a("vxe-option"), X = a("vxe-select"), f = a("vxe-form-item"), k = a("ut-button"), Z = a("vxe-form"), y = a("vxe-modal"), N = a("vxe-column"), ee = a("vxe-table"), te = a("el-tree-v2"), se = a("ut-modal-form");
190
- return g(), $("div", ve, [o(l, {
203
+ const l = r("ut-grid"), f = r("vxe-option"), te = r("vxe-select"), p = r("vxe-form-item"), k = r("ut-button"), se = r("vxe-form"), b = r("vxe-modal"), P = r("vxe-column"), oe = r("vxe-table"), ae = r("el-tree-v2"), le = r("ut-modal-form");
204
+ return h(), S("div", ye, [o(l, {
191
205
  ref_key: "xgrid",
192
- ref: c,
193
- columns: E,
194
- items: D,
206
+ ref: m,
207
+ columns: I,
208
+ items: A,
195
209
  url: i,
196
210
  "auto-load": !1,
197
- "default-params": v.value,
211
+ "default-params": y.value,
212
+ buttons: E,
198
213
  mode: "form",
199
- onButtonClick: G
200
- }, null, 8, ["default-params"]), o(y, {
214
+ onButtonClick: X
215
+ }, null, 8, ["default-params"]), o(b, {
201
216
  modelValue: t.showModelView,
202
217
  "onUpdate:modelValue": s[0] || (s[0] = (n) => t.showModelView = n),
203
218
  title: "用户信息",
204
219
  width: "300"
205
220
  }, {
206
- default: d(() => [o(Z, {
221
+ default: u(() => [o(se, {
207
222
  ref_key: "xForm",
208
- ref: V,
223
+ ref: R,
209
224
  data: t.record,
210
- rules: M,
225
+ rules: L,
211
226
  "title-align": "right"
212
227
  }, {
213
- default: d(() => [o(f, {
228
+ default: u(() => [o(p, {
214
229
  title: e.$t("message.unitName"),
215
230
  field: "unitId",
216
231
  span: "24"
217
232
  }, {
218
- default: d(({
233
+ default: u(({
219
234
  data: n
220
- }) => [o(X, {
235
+ }) => [o(te, {
221
236
  modelValue: n.unitId,
222
- "onUpdate:modelValue": (p) => n.unitId = p
237
+ "onUpdate:modelValue": (g) => n.unitId = g
223
238
  }, {
224
- default: d(() => [(g(!0), $(x, null, ne(de(q), (p) => (g(), b(h, {
225
- key: p.id,
226
- value: p.id,
227
- label: p.unitName
239
+ default: u(() => [(h(!0), S(x, null, ue(me(D), (g) => (h(), N(f, {
240
+ key: g.id,
241
+ value: g.id,
242
+ label: g.unitName
228
243
  }, null, 8, ["value", "label"]))), 128))]),
229
244
  _: 2
230
245
  }, 1032, ["modelValue", "onUpdate:modelValue"])]),
231
246
  _: 1
232
- }, 8, ["title"]), o(f, {
247
+ }, 8, ["title"]), o(p, {
233
248
  title: e.$t("message.userCode"),
234
249
  "item-render": {
235
250
  name: "input",
@@ -239,14 +254,14 @@ const ve = {
239
254
  },
240
255
  field: "userName",
241
256
  span: "24"
242
- }, null, 8, ["title", "item-render"]), o(f, {
257
+ }, null, 8, ["title", "item-render"]), o(p, {
243
258
  title: e.$t("message.userName"),
244
259
  field: "name",
245
260
  span: "24",
246
261
  "item-render": {
247
262
  name: "input"
248
263
  }
249
- }, null, 8, ["title"]), t.dataStatus === "add" ? (g(), b(f, {
264
+ }, null, 8, ["title"]), t.dataStatus === "add" ? (h(), N(p, {
250
265
  key: 0,
251
266
  title: e.$t("message.userPwd"),
252
267
  "item-render": {
@@ -254,61 +269,61 @@ const ve = {
254
269
  },
255
270
  field: "userPwd",
256
271
  span: "24"
257
- }, null, 8, ["title"])) : R("", !0), o(f, {
272
+ }, null, 8, ["title"])) : $("", !0), o(p, {
258
273
  align: "right",
259
274
  span: "24"
260
275
  }, {
261
- default: d(() => [o(k, {
276
+ default: u(() => [o(k, {
262
277
  content: "cancel",
263
278
  icon: "ri-close-fill",
264
- onClick: P
279
+ onClick: V
265
280
  }), o(k, {
266
281
  content: "confirm",
267
282
  icon: "ri-save-3-fill",
268
283
  status: "u-cyan",
269
- onClick: W
284
+ onClick: K
270
285
  })]),
271
286
  _: 1
272
287
  })]),
273
288
  _: 1
274
289
  }, 8, ["data"])]),
275
290
  _: 1
276
- }, 8, ["modelValue"]), o(y, {
291
+ }, 8, ["modelValue"]), o(b, {
277
292
  modelValue: t.showUserRole,
278
293
  "onUpdate:modelValue": s[1] || (s[1] = (n) => t.showUserRole = n),
279
- loading: m.value,
294
+ loading: c.value,
280
295
  title: e.$t("message.title.roleInfo"),
281
296
  width: "600"
282
297
  }, {
283
- default: d(() => [o(ee, {
298
+ default: u(() => [o(oe, {
284
299
  height: "300",
285
300
  data: t.roleList,
286
301
  border: ""
287
302
  }, {
288
- default: d(() => [o(N, {
303
+ default: u(() => [o(P, {
289
304
  type: "seq",
290
305
  width: "60"
291
- }), o(N, {
306
+ }), o(P, {
292
307
  field: "roleName",
293
308
  title: e.$t("message.udp.roleName")
294
- }, null, 8, ["title"]), o(N, {
309
+ }, null, 8, ["title"]), o(P, {
295
310
  field: "roleDesc",
296
311
  title: e.$t("message.udp.roleDesc")
297
312
  }, null, 8, ["title"])]),
298
313
  _: 1
299
314
  }, 8, ["data"])]),
300
315
  _: 1
301
- }, 8, ["modelValue", "loading", "title"]), o(y, {
316
+ }, 8, ["modelValue", "loading", "title"]), o(b, {
302
317
  modelValue: t.showAuth,
303
318
  "onUpdate:modelValue": s[2] || (s[2] = (n) => t.showAuth = n),
304
- loading: m.value,
319
+ loading: c.value,
305
320
  title: e.$t("message.title.authority", {
306
321
  role: t.record.name || "88888"
307
322
  }),
308
323
  height: "620",
309
324
  width: "560"
310
325
  }, {
311
- default: d(() => [o(te, {
326
+ default: u(() => [o(ae, {
312
327
  ref: "xTree",
313
328
  data: t.roleList,
314
329
  props: {
@@ -319,23 +334,23 @@ const ve = {
319
334
  "node-key": "id"
320
335
  }, null, 8, ["data"])]),
321
336
  _: 1
322
- }, 8, ["modelValue", "loading", "title"]), t.showModal ? (g(), b(se, {
337
+ }, 8, ["modelValue", "loading", "title"]), t.showModal ? (h(), N(le, {
323
338
  key: 0,
324
339
  record: t.record,
325
340
  items: t.items,
326
341
  width: 360,
327
342
  height: t.height,
328
343
  method: t.record.id ? "put" : "post",
329
- "data-process-method": Y,
344
+ "data-process-method": z,
330
345
  title: e.$t("message.title.userInfo"),
331
346
  "data-status": "update",
332
347
  url: i,
333
348
  onClose: s[3] || (s[3] = (n) => t.showModal = !1),
334
- onConfirm: j
335
- }, null, 8, ["record", "items", "height", "method", "title"])) : R("", !0)]);
349
+ onConfirm: H
350
+ }, null, 8, ["record", "items", "height", "method", "title"])) : $("", !0)]);
336
351
  };
337
352
  }
338
353
  });
339
354
  export {
340
- ke as _
355
+ xe as _
341
356
  };
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as k, reactive as S, ref as D, createVNode as o, resolveComponent as i, Fragment as h, createElementBlock as A, openBlock as E } from "vue";
2
2
  import { useI18n as I } from "vue-i18n";
3
- import { _ as N } from "./menuInfo.vue_vue_type_style_index_0_lang-CDHg7Yu5.js";
4
- import { _ as P } from "./AuthorityPanel.vue_vue_type_style_index_0_lang-D3GN0Ybz.js";
3
+ import { _ as N } from "./menuInfo.vue_vue_type_style_index_0_lang-DgsifDrm.js";
4
+ import { _ as P } from "./AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S.js";
5
5
  import { clone as f } from "xe-utils";
6
6
  import { t as R } from "./await-to-js.es5-BtRbN2QH.js";
7
7
  import { VxeUI as M } from "vxe-pc-ui";
8
8
  import { useRender as U } from "@utogether/utils";
9
- import { y as W } from "./index-D1ZRyH4N.js";
9
+ import { y as W } from "./index-BabfUVv_.js";
10
10
  const B = {
11
11
  class: "page-content"
12
12
  }, L = {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./UserInfo.vue_vue_type_style_index_0_lang-B0fISZLD.js";
1
+ import { _ as f } from "./UserInfo.vue_vue_type_style_index_0_lang-DLIP8xpN.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as R, ref as i, reactive as x, onBeforeMount as B, resolveComponent as d, createElementBlock as U, openBlock as m, createVNode as c, withCtx as $, createBlock as j, createCommentVNode as A, mergeProps as E, toHandlers as P } from "vue";
2
2
  import { t as S } from "./await-to-js.es5-BtRbN2QH.js";
3
- import { y as V } from "./index-D1ZRyH4N.js";
3
+ import { y as V } from "./index-BabfUVv_.js";
4
4
  const q = { class: "u-dict-config_wrapper" }, D = /* @__PURE__ */ R({
5
5
  __name: "UserInfo",
6
6
  props: {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-C8d0diQd.js";
1
+ import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-CbjGf7Z7.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-BPCiUGed.js";
1
+ import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-BNHbDRjt.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,13 +1,13 @@
1
- import { defineComponent as S, ref as l, resolveComponent as a, createElementBlock as E, openBlock as m, createVNode as n, withCtx as T, createBlock as H, createCommentVNode as U, Fragment as $ } from "vue";
1
+ import { defineComponent as S, ref as l, resolveComponent as d, createElementBlock as E, openBlock as m, createVNode as n, withCtx as T, createBlock as H, createCommentVNode as U, Fragment as $ } from "vue";
2
2
  import { useI18n as z } from "vue-i18n";
3
3
  import { t as F } from "./await-to-js.es5-BtRbN2QH.js";
4
4
  import { VxeUI as M } from "vxe-pc-ui";
5
5
  import { useRender as O, successMessage as f } from "@utogether/utils";
6
- import { y as p, i as h } from "./index-D1ZRyH4N.js";
6
+ import { y as p, i as g } from "./index-BabfUVv_.js";
7
7
  import { clone as j } from "xe-utils";
8
8
  const G = {
9
9
  class: "u-dict-config_wrapper"
10
- }, v = "/upfm/v1/lov", ee = /* @__PURE__ */ S({
10
+ }, h = "/upfm/v1/lov", ee = /* @__PURE__ */ S({
11
11
  __name: "childView",
12
12
  props: {
13
13
  record: {
@@ -19,12 +19,12 @@ const G = {
19
19
  }
20
20
  },
21
21
  emits: ["onClose"],
22
- setup(g, {
22
+ setup(v, {
23
23
  emit: C
24
24
  }) {
25
- const w = g, y = O(), {
25
+ const w = v, y = O(), {
26
26
  t: _
27
- } = z(), d = l(!1), i = l(null), s = l(null), t = l({}), o = l("add"), I = window.innerHeight - 70, k = [{
27
+ } = z(), a = l(!1), i = l(null), s = l(null), t = l({}), o = l("add"), k = window.innerHeight - 70, I = [{
28
28
  field: "dictCode",
29
29
  title: "message.udp.dictCode",
30
30
  required: !0,
@@ -36,6 +36,9 @@ const G = {
36
36
  }, {
37
37
  field: "dictDesc",
38
38
  title: "message.remark"
39
+ }, {
40
+ field: "remarks",
41
+ title: "message.remark"
39
42
  }, {
40
43
  field: "enabled",
41
44
  formatter: ["formatDict", "SU.ENABLE"]
@@ -47,18 +50,18 @@ const G = {
47
50
  slots: {
48
51
  default: ({
49
52
  row: e
50
- }) => [n($, null, [n(a("ut-button"), {
53
+ }) => [n($, null, [n(d("ut-button"), {
51
54
  content: "add",
52
55
  status: "warning",
53
56
  auth: "edit",
54
57
  icon: "ri-add-line",
55
58
  onTap: () => B(e)
56
- }, null), n(a("ut-button"), {
59
+ }, null), n(d("ut-button"), {
57
60
  content: "edit",
58
61
  status: "primary",
59
62
  auth: "edit",
60
63
  onTap: () => x(e)
61
- }, null), n(a("ut-button"), {
64
+ }, null), n(d("ut-button"), {
62
65
  content: "del",
63
66
  status: "danger",
64
67
  auth: "del",
@@ -84,29 +87,29 @@ const G = {
84
87
  defaultValue: "1"
85
88
  })
86
89
  }], N = () => {
87
- d.value = !0, o.value = "add", t.value = {
90
+ a.value = !0, o.value = "add", t.value = {
88
91
  enabled: "1",
89
92
  parentId: w.record.id
90
93
  };
91
94
  }, B = (e) => {
92
- d.value = !0, o.value = "add", t.value = {
95
+ a.value = !0, o.value = "add", t.value = {
93
96
  enabled: "1",
94
97
  parentId: e.id
95
98
  };
96
99
  }, V = async (e) => {
97
- await M.modal.confirm(_("message.delRecord")) === "confirm" && (await p().delete(v, [e]), f(), i.value.refreshData());
100
+ await M.modal.confirm(_("message.delRecord")) === "confirm" && (await p().delete(h, [e]), f(), i.value.refreshData());
98
101
  }, x = async (e) => {
99
- d.value = !0, o.value = "edit", t.value = j(e, !0);
102
+ a.value = !0, o.value = "edit", t.value = j(e, !0);
100
103
  }, D = async () => {
101
104
  const e = {
102
105
  ...t.value,
103
- orgId: h().getOrgId,
104
- organizationId: h().getOrganizationId
106
+ orgId: g().getOrgId,
107
+ organizationId: g().getOrganizationId
105
108
  };
106
109
  s.value.showLoading();
107
- const r = o.value === "add" ? "post" : "put", [u] = await F(p()[r](v, [e]));
110
+ const r = o.value === "add" ? "post" : "put", [u] = await F(p()[r](h, [e]));
108
111
  if (s.value.hiddenLoading(), !u) {
109
- if (d.value = o.value !== "edit", o.value === "add") {
112
+ if (a.value = o.value !== "edit", o.value === "add") {
110
113
  const c = t.value.parentId;
111
114
  t.value = {
112
115
  enabled: "1",
@@ -122,7 +125,7 @@ const G = {
122
125
  A("onClose");
123
126
  }
124
127
  return (e, r) => {
125
- const u = a("ut-grid"), c = a("ut-modal-form"), R = a("vxe-drawer");
128
+ const u = d("ut-grid"), c = d("ut-modal-form"), R = d("vxe-drawer");
126
129
  return m(), E("div", G, [n(R, {
127
130
  "model-value": e.show,
128
131
  title: e.$t("message.title.dictList", {
@@ -136,8 +139,8 @@ const G = {
136
139
  default: T(() => [n(u, {
137
140
  ref_key: "xgrid",
138
141
  ref: i,
139
- columns: k,
140
- height: I,
142
+ columns: I,
143
+ height: k,
141
144
  "default-params": {
142
145
  parentId: e.record.id
143
146
  },
@@ -152,7 +155,7 @@ const G = {
152
155
  url: "/upfm/v1/lov/children",
153
156
  mode: "form",
154
157
  onButtonClick: q
155
- }, null, 8, ["default-params"]), d.value ? (m(), H(c, {
158
+ }, null, 8, ["default-params"]), a.value ? (m(), H(c, {
156
159
  key: 0,
157
160
  ref_key: "xmodal",
158
161
  ref: s,
@@ -164,7 +167,7 @@ const G = {
164
167
  title: e.$t("message.title.dictInfo", {
165
168
  name: e.record.dictName
166
169
  }),
167
- onClose: r[0] || (r[0] = (J) => d.value = !1),
170
+ onClose: r[0] || (r[0] = (J) => a.value = !1),
168
171
  onConfirm: D
169
172
  }, null, 8, ["record", "data-status", "title"])) : U("", !0)]),
170
173
  _: 1
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as V, ref as a, resolveComponent as o, resolveDirective as F, createElementBlock as w, openBlock as _, createVNode as d, withCtx as c, withDirectives as W } from "vue";
2
2
  import { t as u } from "./await-to-js.es5-BtRbN2QH.js";
3
3
  import { useRender as P } from "@utogether/utils";
4
- import { i as $, y as f } from "./index-D1ZRyH4N.js";
4
+ import { i as $, y as f } from "./index-BabfUVv_.js";
5
5
  const x = { class: "ut-loview-wrapper" }, B = "/upfm/v1/lovViewHeader", p = "/upfm/v1/lovViewLine", G = /* @__PURE__ */ V({
6
6
  __name: "childView",
7
7
  props: {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as U, ref as d, createVNode as f, resolveComponent as i, nextTick as C, createElementBlock as y, openBlock as p, createBlock as b, createCommentVNode as q } from "vue";
2
2
  import { t as x } from "./await-to-js.es5-BtRbN2QH.js";
3
3
  import { useRender as B } from "@utogether/utils";
4
- import { y as D } from "./index-D1ZRyH4N.js";
4
+ import { y as D } from "./index-BabfUVv_.js";
5
5
  const I = {
6
6
  name: "CodeRule"
7
7
  }, M = /* @__PURE__ */ U({
package/dist/core.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { R as a, O as t, H as r, K as o, L as u, T as i, y as n, B as l, E as g, J as c, P as h, S as m, Q as S, s as f, C as y, D as R, c as C, h as P, i as d } from "./index-D1ZRyH4N.js";
1
+ import { R as a, O as t, H as r, K as o, L as u, T as i, y as n, B as l, E as g, J as c, P as h, S as m, Q as S, s as f, C as y, D as R, c as C, h as P, i as d } from "./index-BabfUVv_.js";
2
2
  export {
3
3
  a as constantRoutes,
4
4
  t as default,