@utogether/udp-core 1.0.1-beta.6 → 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 (81) hide show
  1. package/dist/{403-Co4hnzlW.js → 403-BQZ5OAKL.js} +1 -1
  2. package/dist/{404-BsseeBQQ.js → 404-H55ex36i.js} +1 -1
  3. package/dist/{500-DtKz7MA4.js → 500-bbrspTnK.js} +1 -1
  4. package/dist/{AuthorityInfo-iWYEWOmC.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-CK8Zkcv3.js → Company-CuebFrQ0.js} +3 -3
  7. package/dist/{CompanyPanel-DL4UrYYG.js → CompanyPanel-DxPdJs6x.js} +1 -1
  8. package/dist/{Department-BPHn8to4.js → Department-D2a6Juur.js} +3 -3
  9. package/dist/{DepartmentPanel-Bqraa_NB.js → DepartmentPanel-C_s2R9yl.js} +1 -1
  10. package/dist/{DesignPanel-CFOIOZme.js → DesignPanel-CexZj3HF.js} +1 -1
  11. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-H0FNG35Z.js → DesignPanel.vue_vue_type_style_index_0_lang-DfmysqwB.js} +19 -19
  12. package/dist/{DictView-CaD1yHQS.js → DictView-C0GS72rG.js} +19 -18
  13. package/dist/{InvOrganization-CoO0_wsY.js → InvOrganization-a1tQ2CEH.js} +1 -1
  14. package/dist/{Org-BU3oaFx3.js → Org-DifvzLLy.js} +1 -1
  15. package/dist/{Preview-B-K_bxDG.js → Preview-BOv5j9i6.js} +1 -1
  16. package/dist/{ReportDefine-DElbukSL.js → ReportDefine-Dli1Q0TB.js} +1 -1
  17. package/dist/{ReportDesign-DvUHOKDK.js → ReportDesign-zSWkcL_O.js} +26 -26
  18. package/dist/{ReportQuery-BcSYRNT3.js → ReportQuery-D5r3bvFc.js} +1 -1
  19. package/dist/{ReportQueryFrom-BGEA4Pqk.js → ReportQueryFrom-DiostHrX.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-Cr2eKMmr.js} +1 -1
  21. package/dist/{ReportTemplate-DnPtEoxn.js → ReportTemplate-CYy4cZHQ.js} +1 -1
  22. package/dist/{Role-CMKkWZil.js → Role-BFQFxfQS.js} +6 -6
  23. package/dist/{RoleAssign-BToNzG9a.js → RoleAssign-BIdWSLTR.js} +3 -3
  24. package/dist/{RolePanel-BikZ-D2u.js → RolePanel-C7ybSknr.js} +1 -1
  25. package/dist/{RolePanel-BNqd7-M6.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-Nngq860f.js → RolePanel.vue_vue_type_script_setup_true_lang-C_ZsMf1f.js} +44 -38
  28. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-BDRDD2FX.js → ScrollPanel.vue_vue_type_style_index_0_lang-botBBgto.js} +1 -1
  29. package/dist/{Staff-DBFATgM_.js → Staff-CY0DLsTN.js} +3 -3
  30. package/dist/{StaffInfo-CrfwZcEL.js → StaffInfo-DA7p265h.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-f29A44gS.js} +1 -1
  32. package/dist/{StaffPanel-D54Rl_Bg.js → StaffPanel-DYP-mMp9.js} +1 -1
  33. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-B8wtuSZD.js → StaffPanel.vue_vue_type_script_setup_true_lang-C0YAG2xV.js} +2 -2
  34. package/dist/{SysUser-CsuovBei.js → SysUser-FqS3Ctne.js} +2 -2
  35. package/dist/{SysUserPanel-DNUwWEVp.js → SysUserPanel-C_t6F99T.js} +1 -1
  36. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-CY6mhBV0.js → SysUserPanel.vue_vue_type_script_setup_true_lang-CKZjy0OF.js} +96 -92
  37. package/dist/{SystemMenu-oLmwvaqT.js → SystemMenu-ChFrMzRg.js} +2 -2
  38. package/dist/{UserInfo-LyrDwBG1.js → UserInfo-I36LAXVj.js} +1 -1
  39. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-vinrRyOG.js → UserInfo.vue_vue_type_style_index_0_lang-BGY-LYeL.js} +30 -28
  40. package/dist/{childView-DGKp87fT.js → childView-CYpuOzRx.js} +1 -1
  41. package/dist/{childView-SmYl4G6c.js → childView-Csnlaqfs.js} +1 -1
  42. package/dist/{childView.vue_vue_type_style_index_0_lang-DU-Uun5d.js → childView.vue_vue_type_style_index_0_lang-B8EnA03l.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-wVoPvyRY.js → childView.vue_vue_type_style_index_0_lang-DNVlDM_a.js} +1 -1
  44. package/dist/{code-rule-CfbGjmOs.js → code-rule-DHBSC5Qp.js} +1 -1
  45. package/dist/core.es.js +1 -1
  46. package/dist/{cron-task-DMfwGfms.js → cron-task-CiI1MFla.js} +1 -1
  47. package/dist/{frameView-D-hu_pqQ.js → frameView-ZWKlbz9p.js} +1 -1
  48. package/dist/index-COBMRlmJ.js +5379 -0
  49. package/dist/{layoutView-D3SikBPr.js → layoutView-5OsbpP0u.js} +2 -2
  50. package/dist/{login-CQ1yBBdY.js → login-C55sa9gN.js} +2 -2
  51. package/dist/{lov-view-CSobDBH7.js → lov-view-DFfaUQ5m.js} +2 -2
  52. package/dist/{menuInfo-mFuM30f1.js → menuInfo-CZdLtLjN.js} +1 -1
  53. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BsIPzYg0.js → menuInfo.vue_vue_type_style_index_0_lang-DgG0aHRy.js} +1 -1
  54. package/dist/{pda-app-CIGFsvrX.js → pda-app-fLe8mrx-.js} +201 -189
  55. package/dist/{resource-mbd4LPi-.js → resource-ohWKO6Fh.js} +1 -1
  56. package/dist/{su-welcome-DruLsVvu.js → su-welcome-_UZTfrXX.js} +1 -1
  57. package/dist/{sys-config-TXb5cJM4.js → sys-config-DVuBsK7p.js} +1 -1
  58. package/dist/udp-core.css +1 -1
  59. package/dist/{utogether-Cv0UXnEX.js → utogether-CxobZqGL.js} +1 -1
  60. package/package.json +1 -1
  61. package/src/components/udp/index.ts +2 -2
  62. package/src/components/udp/modal-grid.vue +288 -297
  63. package/src/components/udp/utils.ts +4 -11
  64. package/src/main.ts +10 -2
  65. package/src/plugins/i18n/zh.ts +7 -1
  66. package/src/plugins/vxe-table/index.ts +2 -2
  67. package/src/plugins/vxe-table/render.tsx +90 -15
  68. package/src/views/system/role/AuthorityInfo.vue +19 -15
  69. package/src/views/system/role/Role.vue +1 -5
  70. package/src/views/system/role/RolePanel.vue +11 -2
  71. package/src/views/system/role/UserInfo.vue +5 -3
  72. package/src/views/system/role-assign/RolePanel.vue +139 -136
  73. package/src/views/system/sysUser/SysUserPanel.vue +28 -32
  74. package/src/views/uapp/pda/pda-app.vue +36 -11
  75. package/src/views/udev/dict/DictView.vue +6 -1
  76. package/src/views/udev/dict/childView.vue +1 -6
  77. package/src/views/urpt/design/DesignPanel.vue +10 -33
  78. package/src/views/urpt/design/ReportDesign.vue +7 -11
  79. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-BWp7PKyH.js +0 -102
  80. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-DYP3u1Nv.js +0 -126
  81. package/dist/index-ADANSV-q.js +0 -4278
@@ -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 G, reactive as H, ref as h, inject as Q, createVNode as s, Fragment as U, resolveComponent as l, onMounted as Y, 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 L } 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-COBMRlmJ.js";
8
8
  const re = {
9
9
  class: "page"
10
- }, u = "/uums/user", fe = /* @__PURE__ */ z({
10
+ }, u = "/uums/user", pe = /* @__PURE__ */ G({
11
11
  __name: "SysUserPanel",
12
- setup(ne) {
13
- const s = G({
12
+ setup(oe) {
13
+ const t = H({
14
14
  record: {},
15
15
  listQuery: {},
16
16
  dataList: [],
@@ -39,13 +39,13 @@ 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 = Q("treeList"), m = h(!1), _ = h(null), I = [{
43
43
  field: "name",
44
44
  title: "message.userName"
45
45
  }, {
46
46
  field: "userName",
47
47
  title: "message.userCode"
48
- }], _ = [{
48
+ }], y = [{
49
49
  type: "checkbox",
50
50
  width: 40,
51
51
  align: "center"
@@ -53,27 +53,27 @@ const re = {
53
53
  field: "userName",
54
54
  title: "message.userCode",
55
55
  required: !0,
56
- editRender: m.renderInput()
56
+ editRender: c.renderInput()
57
57
  }, {
58
58
  field: "name",
59
59
  title: "message.userName",
60
60
  required: !0,
61
- editRender: m.renderInput()
61
+ editRender: c.renderInput()
62
62
  }, {
63
63
  field: "type",
64
64
  title: "message.sysType",
65
65
  formatter: ["formatDict", "SU.ENABLE"],
66
- editRender: m.renderDict("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,113 +81,113 @@ 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 L(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 L(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
+ }, V = h(null), D = () => {
129
+ V.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), R();
136
136
  }
137
137
  });
138
- }, V = () => {
139
- s.showModelView = !1;
140
- }, D = () => {
138
+ }, R = () => {
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
152
  return Y(() => {
153
- D();
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"), f = l("vxe-form-item"), x = l("ut-button"), F = l("vxe-form"), N = l("vxe-modal"), b = l("vxe-column"), j = l("vxe-table"), z = 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(N, {
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,
174
+ ref: V,
175
+ data: t.record,
176
176
  rules: q,
177
177
  "title-align": "right"
178
178
  }, {
179
- default: i(() => [t(c, {
179
+ default: i(() => [s(f, {
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": (p) => n.unitId = p
189
189
  }, {
190
- default: i(() => [(g(!0), U(R, null, K(O(C), (p) => (g(), k(f, {
190
+ default: i(() => [(v(!0), $(U, null, K(O(C), (p) => (v(), k(g, {
191
191
  key: p.id,
192
192
  value: p.id,
193
193
  label: p.unitName
@@ -195,24 +195,24 @@ const re = {
195
195
  _: 2
196
196
  }, 1032, ["modelValue", "onUpdate:modelValue"])]),
197
197
  _: 1
198
- }, 8, ["title"]), t(c, {
198
+ }, 8, ["title"]), s(f, {
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(f, {
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(f, {
216
216
  key: 0,
217
217
  title: e.$t("message.userPwd"),
218
218
  "item-render": {
@@ -220,71 +220,75 @@ 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(f, {
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
- onClick: V
231
- }), t(x, {
230
+ onClick: R
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(N, {
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(j, {
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(b, {
254
255
  type: "seq",
255
256
  width: "60"
256
- }), t(y, {
257
+ }), s(b, {
257
258
  field: "roleName",
258
259
  title: e.$t("message.udp.roleName")
259
- }, null, 8, ["title"]), t(y, {
260
+ }, null, 8, ["title"]), s(b, {
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(N, {
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(z, {
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
  });
288
292
  export {
289
- fe as _
293
+ pe as _
290
294
  };
@@ -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-DgG0aHRy.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-COBMRlmJ.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-BGY-LYeL.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 u, 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-COBMRlmJ.js";
4
+ const V = { class: "u-dict-config_wrapper" }, D = /* @__PURE__ */ R({
5
5
  __name: "UserInfo",
6
6
  props: {
7
7
  record: { default: () => ({}) },
@@ -10,7 +10,7 @@ const V = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
10
10
  },
11
11
  emits: ["onClose"],
12
12
  setup(f, { emit: p }) {
13
- const s = f, g = i(!1), r = i(!1), a = S(), h = p, b = [
13
+ const r = f, g = i(!1), o = i(!1), a = S(), h = p, b = [
14
14
  {
15
15
  field: "userName",
16
16
  title: "message.userCode",
@@ -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.userCode", span: 9 },
72
+ { field: "name", title: "message.userName", span: 9 }
73
+ ], w = [
74
74
  { type: "checkbox", width: 40 },
75
75
  { field: "userName", title: "message.userCode" },
76
76
  { field: "name", title: "message.userName" },
77
77
  { field: "enabled", width: 70, formatter: ["formatDict", "SU.ENABLE"] }
78
- ], m = i({}), n = R({
79
- height: 560,
78
+ ], m = i({}), n = x({
79
+ height: "auto",
80
80
  border: !0,
81
81
  pagerConfig: {},
82
82
  toolbarConfig: { buttons: C, perfect: !0 },
@@ -88,37 +88,37 @@ 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 || (m.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
123
  return u(), U("div", V, [
124
124
  c(k, {
@@ -133,19 +133,21 @@ const V = { class: "u-dict-config_wrapper" }, F = /* @__PURE__ */ x({
133
133
  c(t, A({
134
134
  ref_key: "xgrid",
135
135
  ref: m
136
- }, n, E(w)), null, 16),
137
- r.value ? (u(), j(l, {
136
+ }, n, E(_)), null, 16),
137
+ o.value ? (u(), 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-DNVlDM_a.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-B8EnA03l.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -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-COBMRlmJ.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 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-COBMRlmJ.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: {
@@ -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-COBMRlmJ.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-COBMRlmJ.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-COBMRlmJ.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-COBMRlmJ.js";
4
4
  const w = { class: "frame" }, S = ["src"], V = /* @__PURE__ */ _({
5
5
  __name: "frameView",
6
6
  setup(B) {