@utogether/udp-core 1.0.1-beta.6 → 1.0.1-beta.8

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 (90) hide show
  1. package/dist/{403-Co4hnzlW.js → 403-Cjzd1bv9.js} +1 -1
  2. package/dist/{404-BsseeBQQ.js → 404-CJ-3SXgP.js} +1 -1
  3. package/dist/{500-DtKz7MA4.js → 500-CQ65MvIK.js} +1 -1
  4. package/dist/{AuthorityInfo-iWYEWOmC.js → AuthorityInfo-BdISFrap.js} +1 -1
  5. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-DsLG5slc.js +100 -0
  6. package/dist/{Company-CK8Zkcv3.js → Company-Mj-z1hNb.js} +3 -3
  7. package/dist/{CompanyPanel-DL4UrYYG.js → CompanyPanel-BNXZ7ER3.js} +1 -1
  8. package/dist/{Department-BPHn8to4.js → Department-C4ygVbSP.js} +3 -3
  9. package/dist/{DepartmentPanel-Bqraa_NB.js → DepartmentPanel-Bk96mDlD.js} +1 -1
  10. package/dist/{DesignPanel-CFOIOZme.js → DesignPanel-Bwx2QwMM.js} +1 -1
  11. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-H0FNG35Z.js → DesignPanel.vue_vue_type_style_index_0_lang-B3OjJTHG.js} +24 -26
  12. package/dist/{DictView-CaD1yHQS.js → DictView-DE3jnxnq.js} +19 -18
  13. package/dist/{InvOrganization-CoO0_wsY.js → InvOrganization-Drce3xUC.js} +1 -1
  14. package/dist/Org-C42D9lDj.js +39 -0
  15. package/dist/{Preview-B-K_bxDG.js → Preview-CCXoRvWF.js} +1 -1
  16. package/dist/{ReportDefine-DElbukSL.js → ReportDefine-BWsExcQU.js} +1 -1
  17. package/dist/{ReportDesign-DvUHOKDK.js → ReportDesign-BTzpUpGj.js} +26 -26
  18. package/dist/{ReportQuery-BcSYRNT3.js → ReportQuery-eoSmPXzc.js} +1 -1
  19. package/dist/{ReportQueryFrom-BGEA4Pqk.js → ReportQueryFrom-D4YlI5jl.js} +1 -1
  20. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-B-KEPnfY.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-DPDGKW9a.js} +1 -1
  21. package/dist/{ReportTemplate-DnPtEoxn.js → ReportTemplate-BTa2YWq0.js} +1 -1
  22. package/dist/{Role-CMKkWZil.js → Role-BTGB91P1.js} +6 -6
  23. package/dist/{RoleAssign-BToNzG9a.js → RoleAssign-BBSY6bYM.js} +3 -3
  24. package/dist/{RolePanel-BikZ-D2u.js → RolePanel-BaTuyeVC.js} +1 -1
  25. package/dist/{RolePanel-BNqd7-M6.js → RolePanel-DNDI7e0g.js} +1 -1
  26. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-BCwAp_1a.js +132 -0
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Nngq860f.js → RolePanel.vue_vue_type_script_setup_true_lang-QUeAQHrg.js} +44 -38
  28. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-BDRDD2FX.js → ScrollPanel.vue_vue_type_style_index_0_lang-nqrbOaQP.js} +1 -1
  29. package/dist/{Staff-DBFATgM_.js → Staff-4dbkOqzl.js} +3 -3
  30. package/dist/{StaffInfo-CrfwZcEL.js → StaffInfo-xFAMTWgD.js} +1 -1
  31. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-CE3_NJF_.js → StaffInfo.vue_vue_type_script_setup_true_lang-CocRlLsO.js} +1 -1
  32. package/dist/{StaffPanel-D54Rl_Bg.js → StaffPanel-Cx-8MHBz.js} +1 -1
  33. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-B8wtuSZD.js → StaffPanel.vue_vue_type_script_setup_true_lang-B3wfpxel.js} +2 -2
  34. package/dist/{SysUser-CsuovBei.js → SysUser-BHpgPXsI.js} +2 -2
  35. package/dist/{SysUserPanel-DNUwWEVp.js → SysUserPanel-DH79Lsnm.js} +1 -1
  36. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-CY6mhBV0.js → SysUserPanel.vue_vue_type_script_setup_true_lang-BONl2R1a.js} +104 -100
  37. package/dist/{SystemMenu-oLmwvaqT.js → SystemMenu-C2JbVgyr.js} +2 -2
  38. package/dist/{UserInfo-LyrDwBG1.js → UserInfo-Efo-_yRo.js} +1 -1
  39. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-vinrRyOG.js → UserInfo.vue_vue_type_style_index_0_lang-DnjjBjMU.js} +39 -37
  40. package/dist/{childView-DGKp87fT.js → childView-D7U7qh_A.js} +1 -1
  41. package/dist/{childView-SmYl4G6c.js → childView-wFMGHGiX.js} +1 -1
  42. package/dist/{childView.vue_vue_type_style_index_0_lang-wVoPvyRY.js → childView.vue_vue_type_style_index_0_lang-Bshn4N8Y.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-DU-Uun5d.js → childView.vue_vue_type_style_index_0_lang-w2CkZij-.js} +1 -1
  44. package/dist/{code-rule-CfbGjmOs.js → code-rule-B5dIxV6g.js} +1 -1
  45. package/dist/core.es.js +1 -1
  46. package/dist/{cron-task-DMfwGfms.js → cron-task-DWGtihrw.js} +1 -1
  47. package/dist/{frameView-D-hu_pqQ.js → frameView-DF2mXAwO.js} +1 -1
  48. package/dist/{index-ADANSV-q.js → index-VU6c04nN.js} +1562 -1309
  49. package/dist/{layoutView-D3SikBPr.js → layoutView-DUUKW0KX.js} +2 -2
  50. package/dist/{login-CQ1yBBdY.js → login-ByEoQ2HH.js} +11 -11
  51. package/dist/{lov-view-CSobDBH7.js → lov-view-DqD__3-w.js} +2 -2
  52. package/dist/{menuInfo-mFuM30f1.js → menuInfo-a7jPwS1r.js} +1 -1
  53. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BsIPzYg0.js → menuInfo.vue_vue_type_style_index_0_lang-ZzGrkylA.js} +2 -2
  54. package/dist/{pda-app-CIGFsvrX.js → pda-app-EP9d0Ypd.js} +201 -189
  55. package/dist/{resource-mbd4LPi-.js → resource-eughqxkP.js} +1 -1
  56. package/dist/{su-welcome-DruLsVvu.js → su-welcome-98GLKyZM.js} +1 -1
  57. package/dist/{sys-config-TXb5cJM4.js → sys-config-gs16tgwA.js} +1 -1
  58. package/dist/udp-core.css +2 -2
  59. package/dist/{utogether-Cv0UXnEX.js → utogether-C4Dd2epc.js} +1 -1
  60. package/package.json +1 -1
  61. package/src/App.vue +1 -6
  62. package/src/components/SuCharts/src/UserInfo.vue +78 -78
  63. package/src/components/udp/grid.vue +2 -18
  64. package/src/components/udp/index.ts +2 -2
  65. package/src/components/udp/modal-grid.vue +288 -297
  66. package/src/components/udp/utils.ts +11 -18
  67. package/src/main.ts +10 -2
  68. package/src/plugins/i18n/en.ts +24 -13
  69. package/src/plugins/i18n/zh.ts +348 -342
  70. package/src/plugins/vxe-table/index.ts +1 -1
  71. package/src/plugins/vxe-table/render.tsx +92 -17
  72. package/src/style/vxetable.scss +293 -287
  73. package/src/views/organization/org/Org.vue +9 -5
  74. package/src/views/system/menu/SystemMenu.vue +4 -18
  75. package/src/views/system/menu/menuInfo.vue +4 -17
  76. package/src/views/system/role/AuthorityInfo.vue +19 -15
  77. package/src/views/system/role/Role.vue +1 -5
  78. package/src/views/system/role/RolePanel.vue +11 -2
  79. package/src/views/system/role/UserInfo.vue +195 -193
  80. package/src/views/system/role-assign/RolePanel.vue +139 -136
  81. package/src/views/system/sysUser/SysUserPanel.vue +278 -282
  82. package/src/views/uapp/pda/pda-app.vue +36 -11
  83. package/src/views/udev/dict/DictView.vue +6 -1
  84. package/src/views/udev/dict/childView.vue +1 -6
  85. package/src/views/ulogin/login.vue +1 -5
  86. package/src/views/urpt/design/DesignPanel.vue +507 -526
  87. package/src/views/urpt/design/ReportDesign.vue +7 -11
  88. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-BWp7PKyH.js +0 -102
  89. package/dist/Org-BU3oaFx3.js +0 -35
  90. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DYP3u1Nv.js +0 -126
@@ -1,16 +1,16 @@
1
- import { defineComponent as z, reactive as G, ref as N, inject as H, createVNode as t, Fragment as R, resolveComponent as l, nextTick as Q, onMounted as Y, createElementBlock as U, openBlock as g, withCtx as i, createBlock as k, createCommentVNode as J, renderList as K, unref as O } from "vue";
1
+ import { defineComponent as z, reactive as G, ref as h, inject as H, createVNode as s, Fragment as U, resolveComponent as l, onMounted as Q, createElementBlock as $, openBlock as v, withCtx as i, createBlock as k, createCommentVNode as J, renderList as K, unref as O } from "vue";
2
2
  import { useI18n as W } from "vue-i18n";
3
- import { t as $ } from "./await-to-js.es5-BtRbN2QH.js";
3
+ import { t as q } from "./await-to-js.es5-BtRbN2QH.js";
4
4
  import { useRender as X, warnMessage as Z, delay as ee, errorMessage as te } from "@utogether/utils";
5
5
  import { VxeUI as se } from "vxe-pc-ui";
6
6
  import { isEmpty as ae } from "xe-utils";
7
- import { q as le } from "./index-ADANSV-q.js";
7
+ import { q as le } from "./index-VU6c04nN.js";
8
8
  const re = {
9
9
  class: "page"
10
10
  }, u = "/uums/user", fe = /* @__PURE__ */ z({
11
11
  __name: "SysUserPanel",
12
- setup(ne) {
13
- const s = G({
12
+ setup(oe) {
13
+ const t = G({
14
14
  record: {},
15
15
  listQuery: {},
16
16
  dataList: [],
@@ -22,7 +22,7 @@ const re = {
22
22
  dataStatus: ""
23
23
  }), d = le(), {
24
24
  t: r
25
- } = W(), q = {
25
+ } = W(), L = {
26
26
  userName: [{
27
27
  required: !0,
28
28
  message: `${r("message.required")}${r("message.userCode")}`
@@ -39,41 +39,41 @@ const re = {
39
39
  required: !0,
40
40
  message: `${r("message.required")}${r("message.userPwd")}`
41
41
  }]
42
- }, m = X(), h = N({}), C = H("treeList"), w = N(null), I = [{
42
+ }, c = X(), w = h({}), C = H("treeList"), m = h(!1), _ = h(null), I = [{
43
43
  field: "name",
44
- title: "message.userName"
44
+ title: "message.udp.userName"
45
45
  }, {
46
46
  field: "userName",
47
- title: "message.userCode"
48
- }], _ = [{
47
+ title: "message.udp.userCode"
48
+ }], y = [{
49
49
  type: "checkbox",
50
50
  width: 40,
51
51
  align: "center"
52
52
  }, {
53
53
  field: "userName",
54
- title: "message.userCode",
54
+ title: "message.udp.userCode",
55
55
  required: !0,
56
- editRender: m.renderInput()
56
+ editRender: c.renderInput()
57
57
  }, {
58
58
  field: "name",
59
- title: "message.userName",
59
+ title: "message.udp.userName",
60
60
  required: !0,
61
- editRender: m.renderInput()
61
+ editRender: c.renderInput()
62
62
  }, {
63
63
  field: "type",
64
- title: "message.sysType",
65
- formatter: ["formatDict", "SU.ENABLE"],
66
- editRender: m.renderDict("SU.USER.TYPE")
64
+ title: "message.udp.userType",
65
+ formatter: ["formatDict", "SU.USER.TYPE"],
66
+ editRender: c.renderDict("SU.USER.TYPE")
67
67
  }, {
68
68
  field: "userPwd",
69
69
  required: !0,
70
70
  width: 150,
71
- editRender: m.renderInput(),
71
+ editRender: c.renderInput(),
72
72
  formatter: () => "*******"
73
73
  }, {
74
74
  field: "enabled",
75
75
  width: 80,
76
- cellRender: m.renderEnabled(L)
76
+ cellRender: c.renderEnabled(P)
77
77
  }, {
78
78
  field: "operate",
79
79
  width: 240,
@@ -81,138 +81,138 @@ const re = {
81
81
  slots: {
82
82
  default: ({
83
83
  row: e
84
- }) => [t(R, null, [t(l("ut-button"), {
84
+ }) => e.id ? [s(U, null, [s(l("ut-button"), {
85
85
  icon: "ri-user-fill",
86
86
  content: "role",
87
- onTap: () => P(e)
88
- }, null), t(l("ut-button"), {
87
+ onTap: () => S(e)
88
+ }, null), s(l("ut-button"), {
89
89
  icon: "ri-lock-fill",
90
90
  content: "auth",
91
91
  status: "success",
92
- onTap: () => A(e)
93
- }, null), t(l("ut-button"), {
92
+ onTap: () => E(e)
93
+ }, null), s(l("ut-button"), {
94
94
  icon: "ri-lock-fill",
95
95
  content: "passwordReset",
96
96
  status: "warning",
97
- onTap: () => S(e)
98
- }, null)])]
97
+ onTap: () => A(e)
98
+ }, null)])] : null
99
99
  }
100
100
  }];
101
- async function L({
101
+ async function P({
102
102
  row: e
103
103
  }) {
104
- await $(d.put(u, [e])), w.value.refreshData();
104
+ await q(d.put(u, [e])), _.value.refreshData();
105
105
  }
106
- const P = async (e) => {
107
- var n;
106
+ const S = async (e) => {
107
+ var o;
108
+ t.roleList = [], t.showUserRole = !0, m.value = !0;
108
109
  const a = await d.get(u + "/getUserRole", {
109
110
  userName: e.userName
110
111
  });
111
- s.roleList = (n = a[0]) == null ? void 0 : n.sysRoles, Q(() => {
112
- s.showUserRole = !0;
113
- });
114
- }, S = async (e) => {
115
- await d.put(u + "/resetPwd", e), await se.modal.alert(r("message.tip.initPassword"));
112
+ m.value = !1, t.roleList = (o = a[0]) == null ? void 0 : o.sysRoles;
116
113
  }, A = async (e) => {
117
- var f;
118
- const [a, n] = await $(d.get(u + "/getUserRole", {
114
+ await d.put(u + "/resetPwd", e), await se.modal.alert(r("message.tip.initPassword"));
115
+ }, E = async (e) => {
116
+ var g;
117
+ t.roleList = [], t.showAuth = !0, m.value = !0, t.record = e;
118
+ const [a, o] = await q(d.get(u + "/getUserRole", {
119
119
  userName: e.userName
120
120
  }));
121
- a || (ae(n) ? Z(r("message.tip.emptyAuth")) : (s.roleList = (f = n[0]) == null ? void 0 : f.sysMenuExts, s.showAuth = !0));
122
- }, E = {
121
+ m.value = !1, a || (ae(o) ? Z(r("message.tip.emptyAuth")) : t.roleList = (g = o[0]) == null ? void 0 : g.sysMenuExts);
122
+ }, M = {
123
123
  editActived({
124
124
  row: e
125
125
  }) {
126
- _[1].editRender.props.disabled = !!e.id, _[4].editRender.props.disabled = !!e.id;
126
+ y[1].editRender.props.disabled = !!e.id, y[4].editRender.props.disabled = !!e.id;
127
127
  }
128
- }, b = N(null), M = () => {
129
- b.value.validate(async (e) => {
128
+ }, R = h(null), D = () => {
129
+ R.value.validate(async (e) => {
130
130
  if (!e) {
131
131
  const {
132
132
  record: a,
133
- dataStatus: n
134
- } = s;
135
- n === "add" ? await d.post(u, a) : await d.put(u, a), V();
133
+ dataStatus: o
134
+ } = t;
135
+ o === "add" ? await d.post(u, a) : await d.put(u, a), V();
136
136
  }
137
137
  });
138
138
  }, V = () => {
139
- s.showModelView = !1;
140
- }, D = () => {
139
+ t.showModelView = !1;
140
+ }, T = () => {
141
141
  d.get("/uums/unit", {
142
142
  pageSize: 10
143
143
  }).then(async (e) => {
144
- h.value = {
144
+ w.value = {
145
145
  unitId: e[0].id,
146
146
  enabled: "1"
147
- }, await ee(100), w.value.refreshData();
147
+ }, await ee(100), _.value.refreshData();
148
148
  }).catch(() => {
149
149
  te("获取租户失败,刷新后重试");
150
150
  });
151
151
  };
152
- return Y(() => {
153
- D();
152
+ return Q(() => {
153
+ T();
154
154
  }), (e, a) => {
155
- const n = l("ut-grid"), f = l("vxe-option"), T = l("vxe-select"), c = l("vxe-form-item"), x = l("ut-button"), B = l("vxe-form"), v = l("vxe-modal"), y = l("vxe-column"), F = l("vxe-table"), j = l("el-tree-v2");
156
- return g(), U("div", re, [t(n, {
155
+ const o = l("ut-grid"), g = l("vxe-option"), B = l("vxe-select"), p = l("vxe-form-item"), x = l("ut-button"), F = l("vxe-form"), b = l("vxe-modal"), N = l("vxe-column"), Y = l("vxe-table"), j = l("el-tree-v2");
156
+ return v(), $("div", re, [s(o, {
157
157
  ref_key: "xgrid",
158
- ref: w,
159
- columns: _,
158
+ ref: _,
159
+ columns: y,
160
160
  items: I,
161
161
  url: u,
162
162
  "auto-load": !1,
163
- "default-params": h.value,
164
- "default-value": h.value,
165
- events: E
166
- }, null, 8, ["default-params", "default-value"]), t(v, {
167
- modelValue: s.showModelView,
168
- "onUpdate:modelValue": a[0] || (a[0] = (o) => s.showModelView = o),
163
+ "default-params": w.value,
164
+ "default-value": w.value,
165
+ events: M
166
+ }, null, 8, ["default-params", "default-value"]), s(b, {
167
+ modelValue: t.showModelView,
168
+ "onUpdate:modelValue": a[0] || (a[0] = (n) => t.showModelView = n),
169
169
  title: "用户信息",
170
170
  width: "300"
171
171
  }, {
172
- default: i(() => [t(B, {
172
+ default: i(() => [s(F, {
173
173
  ref_key: "xForm",
174
- ref: b,
175
- data: s.record,
176
- rules: q,
174
+ ref: R,
175
+ data: t.record,
176
+ rules: L,
177
177
  "title-align": "right"
178
178
  }, {
179
- default: i(() => [t(c, {
179
+ default: i(() => [s(p, {
180
180
  title: e.$t("message.unitName"),
181
181
  field: "unitId",
182
182
  span: "24"
183
183
  }, {
184
184
  default: i(({
185
- data: o
186
- }) => [t(T, {
187
- modelValue: o.unitId,
188
- "onUpdate:modelValue": (p) => o.unitId = p
185
+ data: n
186
+ }) => [s(B, {
187
+ modelValue: n.unitId,
188
+ "onUpdate:modelValue": (f) => n.unitId = f
189
189
  }, {
190
- default: i(() => [(g(!0), U(R, null, K(O(C), (p) => (g(), k(f, {
191
- key: p.id,
192
- value: p.id,
193
- label: p.unitName
190
+ default: i(() => [(v(!0), $(U, null, K(O(C), (f) => (v(), k(g, {
191
+ key: f.id,
192
+ value: f.id,
193
+ label: f.unitName
194
194
  }, null, 8, ["value", "label"]))), 128))]),
195
195
  _: 2
196
196
  }, 1032, ["modelValue", "onUpdate:modelValue"])]),
197
197
  _: 1
198
- }, 8, ["title"]), t(c, {
198
+ }, 8, ["title"]), s(p, {
199
199
  title: e.$t("message.userCode"),
200
200
  "item-render": {
201
201
  name: "input",
202
202
  attrs: {
203
- disabled: s.dataStatus === "update"
203
+ disabled: t.dataStatus === "update"
204
204
  }
205
205
  },
206
206
  field: "userName",
207
207
  span: "24"
208
- }, null, 8, ["title", "item-render"]), t(c, {
208
+ }, null, 8, ["title", "item-render"]), s(p, {
209
209
  title: e.$t("message.userName"),
210
210
  field: "name",
211
211
  span: "24",
212
212
  "item-render": {
213
213
  name: "input"
214
214
  }
215
- }, null, 8, ["title"]), s.dataStatus === "add" ? (g(), k(c, {
215
+ }, null, 8, ["title"]), t.dataStatus === "add" ? (v(), k(p, {
216
216
  key: 0,
217
217
  title: e.$t("message.userPwd"),
218
218
  "item-render": {
@@ -220,68 +220,72 @@ const re = {
220
220
  },
221
221
  field: "userPwd",
222
222
  span: "24"
223
- }, null, 8, ["title"])) : J("", !0), t(c, {
223
+ }, null, 8, ["title"])) : J("", !0), s(p, {
224
224
  align: "right",
225
225
  span: "24"
226
226
  }, {
227
- default: i(() => [t(x, {
227
+ default: i(() => [s(x, {
228
228
  content: "cancel",
229
229
  icon: "ri-close-fill",
230
230
  onClick: V
231
- }), t(x, {
231
+ }), s(x, {
232
232
  content: "confirm",
233
233
  icon: "ri-save-3-fill",
234
234
  status: "u-cyan",
235
- onClick: M
235
+ onClick: D
236
236
  })]),
237
237
  _: 1
238
238
  })]),
239
239
  _: 1
240
240
  }, 8, ["data"])]),
241
241
  _: 1
242
- }, 8, ["modelValue"]), t(v, {
243
- modelValue: s.showUserRole,
244
- "onUpdate:modelValue": a[1] || (a[1] = (o) => s.showUserRole = o),
242
+ }, 8, ["modelValue"]), s(b, {
243
+ modelValue: t.showUserRole,
244
+ "onUpdate:modelValue": a[1] || (a[1] = (n) => t.showUserRole = n),
245
+ loading: m.value,
245
246
  title: e.$t("message.title.roleInfo"),
246
247
  width: "600"
247
248
  }, {
248
- default: i(() => [t(F, {
249
+ default: i(() => [s(Y, {
249
250
  height: "300",
250
- data: s.roleList,
251
+ data: t.roleList,
251
252
  border: ""
252
253
  }, {
253
- default: i(() => [t(y, {
254
+ default: i(() => [s(N, {
254
255
  type: "seq",
255
256
  width: "60"
256
- }), t(y, {
257
+ }), s(N, {
257
258
  field: "roleName",
258
259
  title: e.$t("message.udp.roleName")
259
- }, null, 8, ["title"]), t(y, {
260
+ }, null, 8, ["title"]), s(N, {
260
261
  field: "roleDesc",
261
262
  title: e.$t("message.udp.roleDesc")
262
263
  }, null, 8, ["title"])]),
263
264
  _: 1
264
265
  }, 8, ["data"])]),
265
266
  _: 1
266
- }, 8, ["modelValue", "title"]), t(v, {
267
- modelValue: s.showAuth,
268
- "onUpdate:modelValue": a[2] || (a[2] = (o) => s.showAuth = o),
269
- title: e.$t("message.title.authority"),
270
- height: "300",
271
- width: "360"
267
+ }, 8, ["modelValue", "loading", "title"]), s(b, {
268
+ modelValue: t.showAuth,
269
+ "onUpdate:modelValue": a[2] || (a[2] = (n) => t.showAuth = n),
270
+ loading: m.value,
271
+ title: e.$t("message.title.authority", {
272
+ role: t.record.name || "88888"
273
+ }),
274
+ height: "620",
275
+ width: "560"
272
276
  }, {
273
- default: i(() => [t(j, {
277
+ default: i(() => [s(j, {
274
278
  ref: "xTree",
275
- data: s.roleList,
279
+ data: t.roleList,
276
280
  props: {
277
281
  children: "children",
278
282
  label: "menuName"
279
283
  },
280
- height: 420,
284
+ height: 560,
281
285
  "node-key": "id"
282
286
  }, null, 8, ["data"])]),
283
287
  _: 1
284
- }, 8, ["modelValue", "title"])]);
288
+ }, 8, ["modelValue", "loading", "title"])]);
285
289
  };
286
290
  }
287
291
  });
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as S, reactive as k, ref as v, createVNode as o, resolveComponent as r, Fragment as m, createElementBlock as D, openBlock as A } from "vue";
2
2
  import { useI18n as E } from "vue-i18n";
3
- import { _ as I } from "./menuInfo.vue_vue_type_style_index_0_lang-BsIPzYg0.js";
3
+ import { _ as I } from "./menuInfo.vue_vue_type_style_index_0_lang-ZzGrkylA.js";
4
4
  import { _ as N } from "./AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js";
5
5
  import { clone as p } from "xe-utils";
6
6
  import { t as M } from "./await-to-js.es5-BtRbN2QH.js";
7
7
  import { VxeUI as R } from "vxe-pc-ui";
8
8
  import { useRender as U } from "@utogether/utils";
9
- import { q as B } from "./index-ADANSV-q.js";
9
+ import { q as B } from "./index-VU6c04nN.js";
10
10
  const P = {
11
11
  class: "page-content"
12
12
  }, z = {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./UserInfo.vue_vue_type_style_index_0_lang-vinrRyOG.js";
1
+ import { _ as f } from "./UserInfo.vue_vue_type_style_index_0_lang-DnjjBjMU.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as x, ref as i, reactive as R, onBeforeMount as B, resolveComponent as d, createElementBlock as U, openBlock as u, createVNode as c, withCtx as $, createBlock as j, createCommentVNode as q, mergeProps as A, toHandlers as E } from "vue";
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 q, mergeProps as A, toHandlers as E } from "vue";
2
2
  import { t as P } from "./await-to-js.es5-BtRbN2QH.js";
3
- import { q as S } from "./index-ADANSV-q.js";
4
- const V = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
3
+ import { q as S } from "./index-VU6c04nN.js";
4
+ const V = { class: "u-dict-config_wrapper" }, D = /* @__PURE__ */ R({
5
5
  __name: "UserInfo",
6
6
  props: {
7
7
  record: { default: () => ({}) },
@@ -9,17 +9,17 @@ const V = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
9
9
  direction: { default: "rtl" }
10
10
  },
11
11
  emits: ["onClose"],
12
- setup(f, { emit: p }) {
13
- const s = f, g = i(!1), r = i(!1), a = S(), h = p, b = [
12
+ setup(p, { emit: f }) {
13
+ const r = p, g = i(!1), o = i(!1), a = S(), h = f, b = [
14
14
  {
15
15
  field: "userName",
16
- title: "message.userCode",
16
+ title: "message.udp.userCode",
17
17
  span: 8,
18
18
  itemRender: { name: "$input" }
19
19
  },
20
20
  {
21
21
  field: "name",
22
- title: "message.userName",
22
+ title: "message.udp.userName",
23
23
  span: 8,
24
24
  itemRender: { name: "$input" }
25
25
  },
@@ -45,11 +45,11 @@ const V = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
45
45
  { type: "checkbox", width: 50, align: "center" },
46
46
  {
47
47
  field: "userName",
48
- title: "message.userCode"
48
+ title: "message.udp.userCode"
49
49
  },
50
50
  {
51
51
  field: "name",
52
- title: "message.userName"
52
+ title: "message.udp.userName"
53
53
  },
54
54
  {
55
55
  field: "enabled",
@@ -68,15 +68,15 @@ const V = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
68
68
  { code: "add", name: "message.btn.add", status: "u-cyan", icon: "ri-add-line" },
69
69
  { code: "delete", name: "message.btn.del", status: "danger", icon: "ri-delete-bin-5-fill" }
70
70
  ], y = [
71
- { field: "userName", title: "message.userCode" },
72
- { field: "name", title: "message.userName" }
73
- ], _ = [
71
+ { field: "userName", title: "message.udp.userCode", span: 9 },
72
+ { field: "name", title: "message.udp.userName", span: 9 }
73
+ ], w = [
74
74
  { type: "checkbox", width: 40 },
75
- { field: "userName", title: "message.userCode" },
76
- { field: "name", title: "message.userName" },
75
+ { field: "userName", title: "message.udp.userCode" },
76
+ { field: "name", title: "message.udp.userName" },
77
77
  { field: "enabled", width: 70, formatter: ["formatDict", "SU.ENABLE"] }
78
- ], m = i({}), n = R({
79
- height: 560,
78
+ ], u = i({}), n = x({
79
+ height: "auto",
80
80
  border: !0,
81
81
  pagerConfig: {},
82
82
  toolbarConfig: { buttons: C, perfect: !0 },
@@ -88,39 +88,39 @@ const V = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
88
88
  // 查询是需要启用表单代理
89
89
  ajax: {
90
90
  // 接收 Promise
91
- query: ({ page: e, form: o }) => {
92
- const t = Object.assign({}, o);
93
- return t.id = s.record.id, t.pageNum = e.currentPage, t.pageSize = e.pageSize, a.get("/uums/user/listRoleUsers", t);
91
+ query: ({ page: e, form: s }) => {
92
+ const t = Object.assign({}, s);
93
+ return t.id = r.record.id, t.pageNum = e.currentPage, t.pageSize = e.pageSize, a.get("/uums/user/listRoleUsers", t);
94
94
  },
95
95
  // body 对象: { removeRecords }
96
96
  delete: ({ body: { removeRecords: e } }) => {
97
- const o = {
98
- roleId: s.record.id,
97
+ const s = {
98
+ roleId: r.record.id,
99
99
  userIds: e.map((t) => t.id).join()
100
100
  };
101
- return a.delete("/uums/role/deleteRoleUsers", o);
101
+ return a.delete("/uums/role/deleteRoleUsers", s);
102
102
  }
103
103
  }
104
104
  },
105
105
  columns: v
106
- }), w = {
106
+ }), _ = {
107
107
  toolbarButtonClick({ code: e }) {
108
- e === "add" && (r.value = !0);
108
+ e === "add" && (o.value = !0);
109
109
  }
110
110
  }, N = async (e) => {
111
- const o = { userIds: "", roleId: s.record.id };
112
- o.userIds = e.map((l) => l.id).join(","), n.loading = !0;
113
- const [t] = await P(a.post("/uums/role/addUserRole", o));
114
- n.loading = !1, t || (m.value.commitProxy("query"), r.value = !1);
111
+ const s = { userIds: "", roleId: r.record.id };
112
+ s.userIds = e.map((l) => l.id).join(","), n.loading = !0;
113
+ const [t] = await P(a.post("/uums/role/addUserRole", s));
114
+ n.loading = !1, t || (u.value.commitProxy("query"), o.value = !1);
115
115
  };
116
116
  function I() {
117
117
  h("onClose");
118
118
  }
119
119
  return B(() => {
120
120
  g.value = !0;
121
- }), (e, o) => {
121
+ }), (e, s) => {
122
122
  const t = d("vxe-grid"), l = d("ut-modal-grid"), k = d("el-drawer");
123
- return u(), U("div", V, [
123
+ return m(), U("div", V, [
124
124
  c(k, {
125
125
  "model-value": e.show,
126
126
  title: e.$t("message.title.authUser", { role: e.record.roleName }),
@@ -132,20 +132,22 @@ const V = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
132
132
  default: $(() => [
133
133
  c(t, A({
134
134
  ref_key: "xgrid",
135
- ref: m
136
- }, n, E(w)), null, 16),
137
- r.value ? (u(), j(l, {
135
+ ref: u
136
+ }, n, E(_)), null, 16),
137
+ o.value ? (m(), j(l, {
138
138
  key: 0,
139
139
  url: "/uums/user/listUserToRole",
140
140
  "default-params": { roleId: e.record.id },
141
141
  items: y,
142
- columns: _,
142
+ columns: w,
143
143
  "show-footer": !0,
144
144
  editable: !1,
145
+ title: e.$t("message.udp.userList"),
145
146
  width: "60%",
146
- onClose: o[0] || (o[0] = (z) => r.value = !1),
147
+ height: "75%",
148
+ onClose: s[0] || (s[0] = (z) => o.value = !1),
147
149
  onConfirm: N
148
- }, null, 8, ["default-params"])) : q("", !0)
150
+ }, null, 8, ["default-params", "title"])) : q("", !0)
149
151
  ]),
150
152
  _: 1
151
153
  }, 8, ["model-value", "title"])
@@ -154,5 +156,5 @@ const V = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
154
156
  }
155
157
  });
156
158
  export {
157
- F as _
159
+ D as _
158
160
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-DU-Uun5d.js";
1
+ import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-w2CkZij-.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-wVoPvyRY.js";
1
+ import { _ as f } from "./childView.vue_vue_type_style_index_0_lang-Bshn4N8Y.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as V, ref as a, resolveComponent as o, resolveDirective as F, createElementBlock as h, 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 { e as $, q as f } from "./index-ADANSV-q.js";
4
+ import { e as $, q as f } from "./index-VU6c04nN.js";
5
5
  const B = { class: "ut-loview-wrapper" }, Y = "/upfm/v1/lovViewHeader", m = "/upfm/v1/lovViewLine", G = /* @__PURE__ */ V({
6
6
  __name: "childView",
7
7
  props: {
@@ -3,7 +3,7 @@ import { useI18n as Q } from "vue-i18n";
3
3
  import { t as I } from "./await-to-js.es5-BtRbN2QH.js";
4
4
  import { VxeUI as W } from "vxe-pc-ui";
5
5
  import { useRender as X, successMessage as k } from "@utogether/utils";
6
- import { q as b, e as S } from "./index-ADANSV-q.js";
6
+ import { q as b, e as S } from "./index-VU6c04nN.js";
7
7
  const Y = { class: "u-dict-config_wrapper" }, Z = { style: { margin: "10px" } }, _ = "/upfm/v1/lov", de = /* @__PURE__ */ U({
8
8
  __name: "childView",
9
9
  props: {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as _, ref as d, createVNode as m, resolveComponent as i, createElementBlock as k, openBlock as c, createBlock as C, createCommentVNode as E } from "vue";
2
2
  import { t as U } from "./await-to-js.es5-BtRbN2QH.js";
3
3
  import { useRender as q } from "@utogether/utils";
4
- import { q as x } from "./index-ADANSV-q.js";
4
+ import { q as x } from "./index-VU6c04nN.js";
5
5
  const b = {
6
6
  name: "CodeRule"
7
7
  }, V = /* @__PURE__ */ _({
package/dist/core.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { L as t, G as a, C as r, q as o, w as u, H as i, J as n, M as l, K as S, s as d, u as f, d as m, e as R } from "./index-ADANSV-q.js";
1
+ import { L as t, G as a, C as r, q as o, w as u, H as i, J as n, M as l, K as S, s as d, u as f, d as m, e as R } from "./index-VU6c04nN.js";
2
2
  export {
3
3
  t as constantRoutes,
4
4
  a as default,
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as k, ref as d, createVNode as n, resolveComponent as o, Fragment as v, createElementBlock as T, openBlock as f, createBlock as I, createCommentVNode as R } from "vue";
2
2
  import { VXETable as C } from "vxe-table";
3
3
  import { t as x } from "./await-to-js.es5-BtRbN2QH.js";
4
- import { q as y } from "./index-ADANSV-q.js";
4
+ import { q as y } from "./index-VU6c04nN.js";
5
5
  import { useRender as S, successMessage as q } from "@utogether/utils";
6
6
  const D = {
7
7
  name: "CronTask"
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as _, ref as r, unref as a, onMounted as d, resolveDirective as p, withDirectives as v, createElementBlock as h, openBlock as g, createElementVNode as k, nextTick as x } from "vue";
2
2
  import { useRoute as E } from "vue-router";
3
- import { _ as R } from "./index-ADANSV-q.js";
3
+ import { _ as R } from "./index-VU6c04nN.js";
4
4
  const w = { class: "frame" }, S = ["src"], V = /* @__PURE__ */ _({
5
5
  __name: "frameView",
6
6
  setup(B) {