@pubinfo/module-rbac 2.0.15 → 2.1.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 (49) hide show
  1. package/dist/{HoverCard-DASfDgI1.js → HoverCard-7agF2aDO.js} +1 -1
  2. package/dist/{HoverCard.vue_vue_type_script_setup_true_lang-BqEarhzP.js → HoverCard.vue_vue_type_script_setup_true_lang-DEScDCo1.js} +1 -1
  3. package/dist/{LayoutForm-C-vNwp3q.js → LayoutForm-Pv6UyKl3.js} +1 -1
  4. package/dist/MetaForm-BMPtZc0g.js +42413 -0
  5. package/dist/MetaForm.css +1 -1
  6. package/dist/{OrgAndPosition-DjF_gcp6.js → OrgAndPosition-R-YixdXG.js} +1 -1
  7. package/dist/{OrgAndPosition.vue_vue_type_script_setup_true_lang-CFSDHn40.js → OrgAndPosition.vue_vue_type_script_setup_true_lang-jEjTok4n.js} +1 -1
  8. package/dist/{ResourceEdit-D2YFu-Gk.js → ResourceEdit-D59JUDvG.js} +1 -1
  9. package/dist/{ResourceEdit.vue_vue_type_script_setup_true_lang-Cb0mKIlJ.js → ResourceEdit.vue_vue_type_script_setup_true_lang-IWn27Vz1.js} +2 -2
  10. package/dist/{UserAuthorization-rqttVub5.js → UserAuthorization-Ch_iKzms.js} +1 -1
  11. package/dist/{UserEdit-DkNVPVA4.js → UserEdit-B1fnFcSC.js} +1 -1
  12. package/dist/UserEdit.vue_vue_type_script_setup_true_lang-SIR1ZO_N.js +315 -0
  13. package/dist/{drawerBlackWhiteList-Cr16yNs8.js → drawerBlackWhiteList-eWyKScZN.js} +1 -1
  14. package/dist/{drawerBlackWhiteList.vue_vue_type_script_setup_true_lang-BR6Yeiie.js → drawerBlackWhiteList.vue_vue_type_script_setup_true_lang-CNBKo3Jg.js} +17 -16
  15. package/dist/{drawerPosition-BYypSGoF.js → drawerPosition-BA_gLotd.js} +1 -1
  16. package/dist/{drawerPosition.vue_vue_type_script_setup_true_lang-DcZ48XJV.js → drawerPosition.vue_vue_type_script_setup_true_lang-ZqfbI05C.js} +1 -1
  17. package/dist/{drawerRegion-BiIlYQ0Z.js → drawerRegion-CauOP4lh.js} +1 -1
  18. package/dist/{drawerRegion.vue_vue_type_script_setup_true_lang-BwAj_RKw.js → drawerRegion.vue_vue_type_script_setup_true_lang-DeL9jV-P.js} +50 -48
  19. package/dist/gangweijiekou-CUGlx4Ni.js +48 -0
  20. package/dist/{index-C2G4xRrJ.js → index-BH3LYln0.js} +1 -1
  21. package/dist/{index-Cqkr8Rvk.js → index-BhZNbJp6.js} +1 -1
  22. package/dist/{index-nAPHtTM7.js → index-Bm3WQuJD.js} +1 -1
  23. package/dist/{index-qn7U9T51.js → index-CGLg7J6G.js} +25 -25
  24. package/dist/{index-BPkJOFXE.js → index-DQhQqT_Z.js} +1 -1
  25. package/dist/{index-DoFuRlsc.js → index-iBmBJd50.js} +2 -2
  26. package/dist/index.js +67 -42
  27. package/dist/index14.css +1 -1
  28. package/dist/index15.css +1 -1
  29. package/dist/index17.css +1 -1
  30. package/dist/isEmpty-BgDIb4aS.js +20 -0
  31. package/dist/utils/validateObjectStructure.d.ts +11 -0
  32. package/dist/vanilla-picker-BAEwS4Fy.js +536 -0
  33. package/dist/views/resource/model.d.ts +1 -0
  34. package/package.json +4 -3
  35. package/src/api/modules/assist/qunzujiekou.ts +3 -0
  36. package/src/api/modules/assist/quyujiekou.ts +2 -0
  37. package/src/api/modules/configData/heibaimingdanfuwu.ts +2 -0
  38. package/src/api/modules/configData/zidifuwu.ts +4 -0
  39. package/src/api/modules/rbac/gangweijiekou.ts +3 -0
  40. package/src/api/modules/rbac/yonghushoucangbiaojiekou.ts +2 -0
  41. package/src/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.ts +1 -0
  42. package/src/components/JsonEditorModal/index.vue +59 -0
  43. package/src/utils/validateObjectStructure.ts +47 -0
  44. package/src/views/resource/components/HoverCard.vue +1 -1
  45. package/src/views/resource/components/MetaForm.vue +24 -0
  46. package/src/views/resource/model.ts +2 -0
  47. package/dist/MetaForm-13JASu7v.js +0 -401
  48. package/dist/UserEdit.vue_vue_type_script_setup_true_lang-CFs0SxVJ.js +0 -330
  49. package/dist/gangweijiekou-Cs016LjQ.js +0 -46
@@ -1,51 +1,53 @@
1
1
  import { Drawer as k, Form as S, FormItem as A, Input as j, Select as F, InputNumber as X, Space as M, Button as O } from "ant-design-vue/es";
2
- import { defineComponent as z, reactive as H, ref as b, createBlock as q, openBlock as w, unref as t, isRef as J, withCtx as l, createVNode as a, createCommentVNode as K, createTextVNode as y, toDisplayString as Q } from "vue";
3
- import { message as W } from "ant-design-vue";
4
- import { b as f, u as E, q as Y } from "./index.js";
5
- function Z(o, i) {
6
- return f.Post("/region/addRegion", o, {
2
+ import { defineComponent as h, reactive as z, ref as b, createBlock as q, openBlock as w, unref as t, isRef as H, withCtx as l, createVNode as o, createCommentVNode as J, createTextVNode as y, toDisplayString as K } from "vue";
3
+ import { message as Q } from "ant-design-vue";
4
+ import { b as f, u as E, q as W } from "./index.js";
5
+ function Y(a, i) {
6
+ return f.Post("/region/addRegion", a, {
7
7
  headers: {
8
8
  "Content-Type": "application/json"
9
9
  },
10
10
  ...i || {}
11
11
  });
12
12
  }
13
- function re(o, i) {
14
- const { code: p, ...m } = o;
13
+ function re(a, i) {
14
+ const { code: p, ...m } = a;
15
15
  return f.Get(`/region/deleteRegion/${p}`, {
16
- params: { ...m }
16
+ params: { ...m },
17
+ meta: { pathParams: [p] }
17
18
  });
18
19
  }
19
- function le(o, i) {
20
+ function le(a, i) {
20
21
  return f.Get("/region/getListByParentId", {
21
22
  params: {
22
23
  // parentId has a default value: 0
23
24
  parentId: "0",
24
- ...o
25
+ ...a
25
26
  }
26
27
  });
27
28
  }
28
- function h(o, i) {
29
- const { code: p, ...m } = o;
29
+ function Z(a, i) {
30
+ const { code: p, ...m } = a;
30
31
  return f.Get(`/region/getRegionDetail/${p}`, {
31
- params: { ...m }
32
+ params: { ...m },
33
+ meta: { pathParams: [p] }
32
34
  });
33
35
  }
34
- function ee(o, i) {
35
- return f.Post("/region/updateRegion", o, {
36
+ function ee(a, i) {
37
+ return f.Post("/region/updateRegion", a, {
36
38
  headers: {
37
39
  "Content-Type": "application/json"
38
40
  },
39
41
  ...i || {}
40
42
  });
41
43
  }
42
- var g = /* @__PURE__ */ ((o) => (o.ADD = "新增", o.EDIT = "编辑", o.REMOVE = "删除", o.ADDNEXT = "新建下级", o))(g || {});
43
- const se = /* @__PURE__ */ z({
44
+ var g = /* @__PURE__ */ ((a) => (a.ADD = "新增", a.EDIT = "编辑", a.REMOVE = "删除", a.ADDNEXT = "新建下级", a))(g || {});
45
+ const se = /* @__PURE__ */ h({
44
46
  name: "DrawerRegion",
45
47
  __name: "drawerRegion",
46
48
  emits: ["submit"],
47
- setup(o, { expose: i, emit: p }) {
48
- const m = p, T = {
49
+ setup(a, { expose: i, emit: p }) {
50
+ const m = p, P = {
49
51
  name: [
50
52
  { required: !0, message: "请输入区域名称", trigger: "blur" },
51
53
  { max: 128, message: "长度不能超过128位", trigger: "change" }
@@ -59,19 +61,19 @@ const se = /* @__PURE__ */ z({
59
61
  { required: !0, message: "请输入行政区划编码", trigger: "blur" },
60
62
  { max: 16, message: "长度不能超过16位", trigger: "change" }
61
63
  ]
62
- }, d = H({
64
+ }, d = z({
63
65
  title: "",
64
66
  type: ""
65
67
  }), [c, _] = E(!1), R = b(), n = b({ parentId: "" }), D = b([]);
66
- Y({ dictCode: "regionType" }).then((u) => {
68
+ W({ dictCode: "regionType" }).then((u) => {
67
69
  D.value = u.data?.map((e) => ({
68
70
  label: e.dictLabel,
69
71
  value: e.dictValue
70
72
  }));
71
73
  });
72
- async function B(u, e) {
74
+ async function T(u, e) {
73
75
  if (_(!0), d.title = u, u === g.EDIT) {
74
- const s = await h({ code: e?.code });
76
+ const s = await Z({ code: e?.code });
75
77
  s.success && (n.value = s.data ?? {});
76
78
  } else u === g.ADDNEXT ? n.value = {
77
79
  parentName: e?.name,
@@ -80,14 +82,14 @@ const se = /* @__PURE__ */ z({
80
82
  parentId: ""
81
83
  };
82
84
  }
83
- const [U, I] = E(!1);
84
- function P() {
85
- const u = d.title === g.EDIT ? ee : Z;
85
+ const [B, I] = E(!1);
86
+ function U() {
87
+ const u = d.title === g.EDIT ? ee : Y;
86
88
  R.value?.validate().then(() => {
87
89
  I(!0);
88
90
  const e = { ...n.value };
89
91
  u(e).then((s) => {
90
- s.success && (W.success(`${d.title}成功!`), _(!1), m("submit"));
92
+ s.success && (Q.success(`${d.title}成功!`), _(!1), m("submit"));
91
93
  }).finally(() => I(!1));
92
94
  });
93
95
  }
@@ -97,12 +99,12 @@ const se = /* @__PURE__ */ z({
97
99
  }, _(!1);
98
100
  }
99
101
  return i({
100
- open: B
102
+ open: T
101
103
  }), (u, e) => {
102
104
  const s = A, v = j, G = F, L = X, N = S, C = O, V = M, $ = k;
103
105
  return w(), q($, {
104
106
  open: t(c),
105
- "onUpdate:open": e[6] || (e[6] = (r) => J(c) ? c.value = r : null),
107
+ "onUpdate:open": e[6] || (e[6] = (r) => H(c) ? c.value = r : null),
106
108
  title: `${t(d).title}区域`,
107
109
  placement: "right",
108
110
  width: 600,
@@ -111,19 +113,19 @@ const se = /* @__PURE__ */ z({
111
113
  onClose: x
112
114
  }, {
113
115
  footer: l(() => [
114
- a(V, null, {
116
+ o(V, null, {
115
117
  default: l(() => [
116
- a(C, { onClick: x }, {
118
+ o(C, { onClick: x }, {
117
119
  default: l(() => e[7] || (e[7] = [
118
120
  y(" 取消 ")
119
121
  ])),
120
122
  _: 1,
121
123
  __: [7]
122
124
  }),
123
- a(C, {
125
+ o(C, {
124
126
  type: "primary",
125
- loading: t(U),
126
- onClick: e[5] || (e[5] = (r) => P())
127
+ loading: t(B),
128
+ onClick: e[5] || (e[5] = (r) => U())
127
129
  }, {
128
130
  default: l(() => e[8] || (e[8] = [
129
131
  y(" 提交 ")
@@ -136,11 +138,11 @@ const se = /* @__PURE__ */ z({
136
138
  })
137
139
  ]),
138
140
  default: l(() => [
139
- a(N, {
141
+ o(N, {
140
142
  ref_key: "formRef",
141
143
  ref: R,
142
144
  model: t(n),
143
- rules: T,
145
+ rules: P,
144
146
  "label-col": { span: 5 },
145
147
  "label-wrap": !0
146
148
  }, {
@@ -150,16 +152,16 @@ const se = /* @__PURE__ */ z({
150
152
  label: "上级区域"
151
153
  }, {
152
154
  default: l(() => [
153
- y(Q(t(n).parentName), 1)
155
+ y(K(t(n).parentName), 1)
154
156
  ]),
155
157
  _: 1
156
- })) : K("", !0),
157
- a(s, {
158
+ })) : J("", !0),
159
+ o(s, {
158
160
  label: "区域名称",
159
161
  name: "name"
160
162
  }, {
161
163
  default: l(() => [
162
- a(v, {
164
+ o(v, {
163
165
  value: t(n).name,
164
166
  "onUpdate:value": e[0] || (e[0] = (r) => t(n).name = r),
165
167
  maxlength: 128
@@ -167,12 +169,12 @@ const se = /* @__PURE__ */ z({
167
169
  ]),
168
170
  _: 1
169
171
  }),
170
- a(s, {
172
+ o(s, {
171
173
  label: "区域范围",
172
174
  name: "type"
173
175
  }, {
174
176
  default: l(() => [
175
- a(G, {
177
+ o(G, {
176
178
  value: t(n).type,
177
179
  "onUpdate:value": e[1] || (e[1] = (r) => t(n).type = r),
178
180
  options: t(D)
@@ -180,12 +182,12 @@ const se = /* @__PURE__ */ z({
180
182
  ]),
181
183
  _: 1
182
184
  }),
183
- a(s, {
185
+ o(s, {
184
186
  label: "区域编码",
185
187
  name: "regionCode"
186
188
  }, {
187
189
  default: l(() => [
188
- a(v, {
190
+ o(v, {
189
191
  value: t(n).regionCode,
190
192
  "onUpdate:value": e[2] || (e[2] = (r) => t(n).regionCode = r),
191
193
  maxlength: 16
@@ -193,12 +195,12 @@ const se = /* @__PURE__ */ z({
193
195
  ]),
194
196
  _: 1
195
197
  }),
196
- a(s, {
198
+ o(s, {
197
199
  label: "行政区划编码",
198
200
  name: "code"
199
201
  }, {
200
202
  default: l(() => [
201
- a(v, {
203
+ o(v, {
202
204
  value: t(n).code,
203
205
  "onUpdate:value": e[3] || (e[3] = (r) => t(n).code = r),
204
206
  disabled: t(d).title === t(g).EDIT,
@@ -207,9 +209,9 @@ const se = /* @__PURE__ */ z({
207
209
  ]),
208
210
  _: 1
209
211
  }),
210
- a(s, { label: "排序" }, {
212
+ o(s, { label: "排序" }, {
211
213
  default: l(() => [
212
- a(L, {
214
+ o(L, {
213
215
  value: t(n).sort,
214
216
  "onUpdate:value": e[4] || (e[4] = (r) => t(n).sort = r)
215
217
  }, null, 8, ["value"])
@@ -0,0 +1,48 @@
1
+ import { b as e } from "./index.js";
2
+ function r(t, a) {
3
+ const { id: s, ...o } = t;
4
+ return e.Delete(
5
+ `/rbac/post/delete/${s}`,
6
+ {},
7
+ {
8
+ params: { ...o },
9
+ meta: { pathParams: [s] }
10
+ }
11
+ );
12
+ }
13
+ function p(t, a) {
14
+ const { id: s, ...o } = t;
15
+ return e.Get(`/rbac/post/detail/${s}`, {
16
+ params: { ...o },
17
+ meta: { pathParams: [s] }
18
+ });
19
+ }
20
+ function i(t, a) {
21
+ return e.Post("/rbac/post/findPage", t, {
22
+ headers: {
23
+ "Content-Type": "application/json"
24
+ }
25
+ });
26
+ }
27
+ function c(t, a) {
28
+ return e.Get("/rbac/post/list", {
29
+ params: {
30
+ ...t
31
+ },
32
+ ...a || {}
33
+ });
34
+ }
35
+ function b(t, a) {
36
+ return e.Post("/rbac/post/save", t, {
37
+ headers: {
38
+ "Content-Type": "application/json"
39
+ }
40
+ });
41
+ }
42
+ export {
43
+ b as a,
44
+ c as b,
45
+ r as d,
46
+ p as g,
47
+ i as p
48
+ };