@pubinfo/module-rbac 2.1.1 → 2.1.3-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.
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./drawerDictionary.vue_vue_type_script_setup_true_lang-0zsptmrP.js";
1
+ import { _ as f } from "./drawerDictionary.vue_vue_type_script_setup_true_lang-CH9l9I5G.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import { Drawer as R, Form as S, FormItem as $, Input as q, Textarea as E, InputNumber as F, Space as V, Button as L } from "ant-design-vue/es";
2
2
  import { defineComponent as j, reactive as z, ref as v, createBlock as G, openBlock as H, unref as t, isRef as J, withCtx as a, createVNode as n, createTextVNode as g } from "vue";
3
3
  import { message as K } from "ant-design-vue";
4
- import { u as b, c as M } from "./index.js";
4
+ import { u as b, h as M } from "./index.js";
5
5
  import { A as x } from "./enum-C9ihxJe7.js";
6
6
  const h = /* @__PURE__ */ j({
7
7
  name: "DrawerDictionary",
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./drawerDictionaryItem.vue_vue_type_script_setup_true_lang-DeJblyyZ.js";
1
+ import { _ as f } from "./drawerDictionaryItem.vue_vue_type_script_setup_true_lang-DUJwUT9Q.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,21 +1,21 @@
1
1
  import { Drawer as A, Form as B, FormItem as O, Input as R, Textarea as $, InputNumber as q, Switch as F, Space as E, Button as j } from "ant-design-vue/es";
2
2
  import { defineComponent as z, reactive as G, ref as v, createBlock as H, openBlock as J, unref as n, isRef as K, withCtx as a, createVNode as o, createTextVNode as b } from "vue";
3
3
  import { message as M } from "ant-design-vue";
4
- import { u as g, g as P } from "./index.js";
4
+ import { u as g, k as P } from "./index.js";
5
5
  import { A as Q } from "./enum-C9ihxJe7.js";
6
6
  const te = /* @__PURE__ */ z({
7
7
  name: "DrawerDictionaryItem",
8
8
  __name: "drawerDictionaryItem",
9
9
  emits: ["submit"],
10
10
  setup(W, { expose: x, emit: w }) {
11
- const y = w, I = {
11
+ const k = w, y = {
12
12
  dictLabel: [{ required: !0, message: "请输入字典项名称", trigger: "blur" }],
13
13
  dictValue: [{ required: !0, message: "请输入字典项值", trigger: "blur" }]
14
14
  }, s = G({
15
15
  title: "",
16
16
  code: ""
17
17
  }), [m, p] = g(!1), d = v(), t = v({});
18
- async function k(r, e, i) {
18
+ async function I(r, e, i) {
19
19
  p(!0), s.title = r, s.code = e, r === Q.EDIT ? t.value = i ?? {} : (t.value = {}, t.value.enable = !0, t.value.code = e);
20
20
  }
21
21
  const [C, c] = g(!1);
@@ -24,7 +24,7 @@ const te = /* @__PURE__ */ z({
24
24
  c(!0);
25
25
  const r = { ...t.value };
26
26
  P(r).then((e) => {
27
- e.success && (M.success(`${s.title}成功!`), p(!1), y("submit"));
27
+ e.success && (M.success(`${s.title}成功!`), p(!1), k("submit"));
28
28
  }).finally(() => c(!1));
29
29
  });
30
30
  }
@@ -32,7 +32,7 @@ const te = /* @__PURE__ */ z({
32
32
  p(!1);
33
33
  }
34
34
  return x({
35
- open: k
35
+ open: I
36
36
  }), (r, e) => {
37
37
  const i = R, u = O, U = $, V = q, L = F, T = B, _ = j, N = E, S = A;
38
38
  return J(), H(S, {
@@ -75,7 +75,7 @@ const te = /* @__PURE__ */ z({
75
75
  ref_key: "formRef",
76
76
  ref: d,
77
77
  model: n(t),
78
- rules: I,
78
+ rules: y,
79
79
  "label-col": { span: 5 }
80
80
  }, {
81
81
  default: a(() => [
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./drawerGroup.vue_vue_type_script_setup_true_lang-ClG-M0Ru.js";
1
+ import { _ as f } from "./drawerGroup.vue_vue_type_script_setup_true_lang-D8eReJwR.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,7 +1,7 @@
1
- import { Drawer as q, Form as A, FormItem as P, Input as j, Textarea as Y, Select as z, Button as H, Tooltip as J, Space as K } from "ant-design-vue/es";
2
- import { defineComponent as Q, reactive as W, ref as y, computed as X, createBlock as k, openBlock as m, unref as r, isRef as Z, withCtx as l, createVNode as s, createElementVNode as G, createTextVNode as _, createElementBlock as b, Fragment as w, renderList as ee, toDisplayString as L } from "vue";
1
+ import { Drawer as q, Form as A, FormItem as P, Input as Y, Textarea as j, Select as z, Button as H, Tooltip as J, Space as K } from "ant-design-vue/es";
2
+ import { defineComponent as Q, reactive as W, ref as y, computed as X, createBlock as G, openBlock as m, unref as r, isRef as Z, withCtx as l, createVNode as s, createElementVNode as k, createTextVNode as _, createElementBlock as b, Fragment as w, renderList as ee, toDisplayString as L } from "vue";
3
3
  import { message as te } from "ant-design-vue";
4
- import { u as S, j as oe, selectOrg as re, selectUser as ne, k as ae } from "./index.js";
4
+ import { u as S, g as oe, selectOrg as re, selectUser as ne, c as ae } from "./index.js";
5
5
  import { G as i, u as le, A as se } from "./enum-DDKThkSw.js";
6
6
  const pe = { class: "pt-10px" }, ue = { class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]" }, me = {
7
7
  key: 1,
@@ -22,12 +22,12 @@ const pe = { class: "pt-10px" }, ue = { class: "inline-block mb-6px mr-6px bg-[#
22
22
  remark: [{ max: 250, message: "长度不能超过250位", trigger: ["blur", "change"] }],
23
23
  viewScope: [{ required: !0, message: "请选择使用范围", trigger: ["blur", "change"] }],
24
24
  pubGroupMemberList: [{ required: !0, message: "请选择群组成员", trigger: ["blur", "change"] }]
25
- }, [d, c] = S(!1), g = y(), t = y({}), T = X(() => t.value?.pubGroupMemberList?.map((n) => ({
25
+ }, [c, d] = S(!1), g = y(), t = y({}), T = X(() => t.value?.pubGroupMemberList?.map((n) => ({
26
26
  ...n,
27
27
  name: p.type === i.ORG ? n.orgName : n.userName
28
28
  })));
29
29
  async function R(n, e, u) {
30
- if (c(!0), p.title = n, p.type = e, t.value = {}, n === se.EDIT) {
30
+ if (d(!0), p.title = n, p.type = e, t.value = {}, n === se.EDIT) {
31
31
  const a = await oe({ id: u?.id });
32
32
  a.success && (t.value = a?.data ?? {});
33
33
  }
@@ -60,20 +60,20 @@ const pe = { class: "pt-10px" }, ue = { class: "inline-block mb-6px mr-6px bg-[#
60
60
  }))
61
61
  };
62
62
  delete u.createTime, delete u.updateTime, ae(u).then((a) => {
63
- a.success && (te.success(`${p.title}成功!`), c(!1), F("submit"));
63
+ a.success && (te.success(`${p.title}成功!`), d(!1), F("submit"));
64
64
  }).finally(() => v(!1));
65
65
  });
66
66
  }
67
67
  function x() {
68
- c(!1);
68
+ d(!1);
69
69
  }
70
70
  return M({
71
71
  open: R
72
72
  }), (n, e) => {
73
- const u = j, a = P, h = Y, N = z, f = H, B = J, D = A, V = K, $ = q;
74
- return m(), k($, {
75
- open: r(d),
76
- "onUpdate:open": e[4] || (e[4] = (o) => Z(d) ? d.value = o : null),
73
+ const u = Y, a = P, h = j, N = z, f = H, B = J, D = A, V = K, $ = q;
74
+ return m(), G($, {
75
+ open: r(c),
76
+ "onUpdate:open": e[4] || (e[4] = (o) => Z(c) ? c.value = o : null),
77
77
  title: `${r(p).title}${r(p).type === r(i).ORG ? "组织" : "人员"}群组`,
78
78
  placement: "right",
79
79
  width: 600,
@@ -172,14 +172,14 @@ const pe = { class: "pt-10px" }, ue = { class: "inline-block mb-6px mr-6px bg-[#
172
172
  _: 1,
173
173
  __: [5]
174
174
  }),
175
- G("div", pe, [
175
+ k("div", pe, [
176
176
  (m(!0), b(w, null, ee(r(T), (o) => (m(), b(w, { key: o }, [
177
- o.name && o.name?.length > 20 ? (m(), k(B, {
177
+ o.name && o.name?.length > 20 ? (m(), G(B, {
178
178
  key: 0,
179
179
  title: o.name
180
180
  }, {
181
181
  default: l(() => [
182
- G("span", ue, L(`${o.name?.slice(0, 20)}...`), 1)
182
+ k("span", ue, L(`${o.name?.slice(0, 20)}...`), 1)
183
183
  ]),
184
184
  _: 2
185
185
  }, 1032, ["title"])) : (m(), b("span", me, L(o.name), 1))
@@ -4,8 +4,8 @@ import { PlusCircleOutlined as $ } from "@ant-design/icons-vue";
4
4
  import { defineComponent as O, ref as k, resolveDirective as V, createElementBlock as c, openBlock as n, createVNode as i, unref as a, withCtx as _, createCommentVNode as b, createBlock as C, createElementVNode as h, toDisplayString as d, withDirectives as f, createTextVNode as B } from "vue";
5
5
  import { ProTable as M } from "@pubinfo/pro-components";
6
6
  import { Modal as W, message as q } from "ant-design-vue";
7
- import { a as X, d as z } from "./index.js";
8
- import { _ as j } from "./drawerDictionary.vue_vue_type_script_setup_true_lang-0zsptmrP.js";
7
+ import { e as X, f as z } from "./index.js";
8
+ import { _ as j } from "./drawerDictionary.vue_vue_type_script_setup_true_lang-CH9l9I5G.js";
9
9
  import { A as e } from "./enum-C9ihxJe7.js";
10
10
  import { useRouter as F } from "vue-router";
11
11
  const G = {
@@ -4,8 +4,8 @@ import { PlusCircleOutlined as B } from "@ant-design/icons-vue";
4
4
  import { defineComponent as M, ref as p, resolveDirective as W, createElementBlock as x, openBlock as l, createElementVNode as m, createVNode as n, unref as e, withCtx as d, createBlock as C, createCommentVNode as $, withDirectives as y, toDisplayString as b, createTextVNode as q } from "vue";
5
5
  import { ProTable as U } from "@pubinfo/pro-components";
6
6
  import { Modal as z, message as F } from "ant-design-vue";
7
- import { h as K, i as j, _ as H } from "./index.js";
8
- import { _ as J } from "./drawerGroup.vue_vue_type_script_setup_true_lang-ClG-M0Ru.js";
7
+ import { a as K, d as j, _ as H } from "./index.js";
8
+ import { _ as J } from "./drawerGroup.vue_vue_type_script_setup_true_lang-D8eReJwR.js";
9
9
  import { A as a } from "./enum-DDKThkSw.js";
10
10
  import './index4.css';const L = {
11
11
  "py-10px": "",
package/dist/index.js CHANGED
@@ -62,12 +62,12 @@ import './index17.css';const wa = {
62
62
  "src/views/components/animation_item.vue": () => import("./animation_item-BZ1HNA6o.js"),
63
63
  "src/views/components/setItem.vue": () => import("./setItem-Blb3dox4.js"),
64
64
  "src/views/data-permission/index.vue": () => import("./index-BNwGLzXe.js"),
65
- "src/views/dictionary/index.vue": () => import("./index-CLnFLvHy.js"),
66
- "src/views/dictionary/itemlist.vue": () => import("./itemlist-zTYJtoSs.js"),
67
- "src/views/group/index.vue": () => import("./index-CbVJdR5M.js"),
68
- "src/views/layout_setting/index.vue": () => import("./index-BXvJhqJD.js"),
65
+ "src/views/group/index.vue": () => import("./index-Bx14slml.js"),
66
+ "src/views/dictionary/index.vue": () => import("./index-7wGerdcb.js"),
67
+ "src/views/dictionary/itemlist.vue": () => import("./itemlist-DLoOWV8i.js"),
69
68
  "src/views/log_center/login_history.vue": () => import("./login_history-CMZGS2PN.js"),
70
69
  "src/views/log_center/operate_history.vue": () => import("./operate_history-B42WNY1u.js"),
70
+ "src/views/layout_setting/index.vue": () => import("./index-BXvJhqJD.js"),
71
71
  "src/views/menu_setting/index.vue": () => import("./index-En8oOf9e.js"),
72
72
  "src/views/organization/index.vue": () => import("./index-Copy5kiW.js"),
73
73
  "src/views/other_setting/index.vue": () => import("./index-C5WD-YUu.js"),
@@ -84,12 +84,12 @@ import './index17.css';const wa = {
84
84
  "src/views/theme_setting/index.vue": () => import("./index-B5aP0re3.js"),
85
85
  "src/views/user/index.vue": () => import("./index-CGLg7J6G.js"),
86
86
  "src/views/toolbar_setting/index.vue": () => import("./index-BH3LYln0.js"),
87
- "src/views/blackWhiteList/components/drawerBlackWhiteList.vue": () => import("./drawerBlackWhiteList-eWyKScZN.js"),
88
87
  "src/views/watermark_setting/index.vue": () => import("./index-DHVEXch0.js"),
88
+ "src/views/blackWhiteList/components/drawerBlackWhiteList.vue": () => import("./drawerBlackWhiteList-eWyKScZN.js"),
89
89
  "src/views/data-permission/components/createAndEditDataPermission.vue": () => import("./createAndEditDataPermission-DPeFulie.js"),
90
- "src/views/dictionary/components/drawerDictionary.vue": () => import("./drawerDictionary-BRGmcIFT.js"),
91
- "src/views/dictionary/components/drawerDictionaryItem.vue": () => import("./drawerDictionaryItem-CFBfyhEw.js"),
92
- "src/views/group/components/drawerGroup.vue": () => import("./drawerGroup-Bs1Z8XPo.js"),
90
+ "src/views/group/components/drawerGroup.vue": () => import("./drawerGroup-Dv_EpCCK.js"),
91
+ "src/views/dictionary/components/drawerDictionary.vue": () => import("./drawerDictionary-DXFWmGzG.js"),
92
+ "src/views/dictionary/components/drawerDictionaryItem.vue": () => import("./drawerDictionaryItem-CkHT7MW8.js"),
93
93
  "src/views/log_center/components/browserType.vue": () => import("./browserType-DQySszjD.js"),
94
94
  "src/views/log_center/components/loginHistoryDetail.vue": () => import("./loginHistoryDetail-BZVwG8m2.js"),
95
95
  "src/views/log_center/components/operateHistoryDetail.vue": () => import("./operateHistoryDetail-Badx3zl-.js"),
@@ -1747,7 +1747,7 @@ const Qd = {
1747
1747
  {
1748
1748
  path: "",
1749
1749
  name: "Dictionary",
1750
- component: () => import("./index-CLnFLvHy.js"),
1750
+ component: () => import("./index-7wGerdcb.js"),
1751
1751
  meta: {
1752
1752
  title: "字典管理",
1753
1753
  sidebar: !1,
@@ -1759,7 +1759,7 @@ const Qd = {
1759
1759
  {
1760
1760
  path: "detail/:id",
1761
1761
  name: "DictionaryItem",
1762
- component: () => import("./itemlist-zTYJtoSs.js"),
1762
+ component: () => import("./itemlist-DLoOWV8i.js"),
1763
1763
  meta: {
1764
1764
  title: "字典数据",
1765
1765
  sidebar: !1,
@@ -1793,7 +1793,7 @@ const Qd = {
1793
1793
  },
1794
1794
  {
1795
1795
  path: "group",
1796
- component: () => import("./index-CbVJdR5M.js"),
1796
+ component: () => import("./index-Bx14slml.js"),
1797
1797
  name: "Group",
1798
1798
  meta: {
1799
1799
  title: "群组管理",
@@ -7451,7 +7451,7 @@ export {
7451
7451
  ye as Y,
7452
7452
  Zn as Z,
7453
7453
  Sv as _,
7454
- og as a,
7454
+ ni as a,
7455
7455
  Gv as a0,
7456
7456
  Uv as a1,
7457
7457
  jv as a2,
@@ -7460,18 +7460,18 @@ export {
7460
7460
  qv as a5,
7461
7461
  Vv as a6,
7462
7462
  U as b,
7463
- ig as c,
7463
+ Nv as c,
7464
7464
  Pv as cleanupRouteSystem,
7465
- ag as d,
7466
- eg as e,
7467
- ng as f,
7468
- rg as g,
7465
+ Lv as d,
7466
+ og as e,
7467
+ ag as f,
7468
+ ti as g,
7469
7469
  sg as getDictItem,
7470
- ni as h,
7471
- Lv as i,
7470
+ ig as h,
7471
+ eg as i,
7472
7472
  Iv as initializeRouteSystem,
7473
- ti as j,
7474
- Nv as k,
7473
+ ng as j,
7474
+ rg as k,
7475
7475
  nv as l,
7476
7476
  Yv as m,
7477
7477
  Wv as n,
@@ -1,11 +1,11 @@
1
1
  import { Space as O, Button as P } from "ant-design-vue/es";
2
2
  import { useAuth as T, PubinfoIcon as B } from "pubinfo";
3
3
  import { PlusCircleOutlined as M } from "@ant-design/icons-vue";
4
- import { defineComponent as N, ref as b, reactive as W, onMounted as $, resolveDirective as q, createElementBlock as f, openBlock as r, createVNode as n, unref as a, withCtx as c, createBlock as k, createCommentVNode as S, withDirectives as h, createElementVNode as C, toDisplayString as x, createTextVNode as z } from "vue";
5
- import { ProTable as F } from "@pubinfo/pro-components";
6
- import { Badge as w, Modal as L, message as j } from "ant-design-vue";
7
- import { e as G, f as H } from "./index.js";
8
- import { _ as J } from "./drawerDictionaryItem.vue_vue_type_script_setup_true_lang-DeJblyyZ.js";
4
+ import { defineComponent as N, ref as b, reactive as W, onMounted as $, resolveDirective as q, createElementBlock as f, openBlock as r, createVNode as n, unref as a, withCtx as c, createBlock as k, createCommentVNode as S, withDirectives as h, createElementVNode as C, toDisplayString as x, createTextVNode as j } from "vue";
5
+ import { ProTable as z } from "@pubinfo/pro-components";
6
+ import { Badge as w, Modal as F, message as L } from "ant-design-vue";
7
+ import { i as G, j as H } from "./index.js";
8
+ import { _ as J } from "./drawerDictionaryItem.vue_vue_type_script_setup_true_lang-DUJwUT9Q.js";
9
9
  import { A as t } from "./enum-C9ihxJe7.js";
10
10
  import { useRoute as K } from "vue-router";
11
11
  const Q = {
@@ -82,14 +82,14 @@ const Q = {
82
82
  d.value.open(o, l.code, e);
83
83
  break;
84
84
  case t.REMOVE:
85
- L.confirm({
85
+ F.confirm({
86
86
  title: "删除",
87
87
  content: "确定要删除该字典数据吗?",
88
88
  onOk() {
89
89
  G({
90
90
  id: e?.id
91
91
  }).then((s) => {
92
- s.success && (j.success("删除成功"), y());
92
+ s.success && (L.success("删除成功"), y());
93
93
  });
94
94
  }
95
95
  });
@@ -118,7 +118,7 @@ const Q = {
118
118
  }
119
119
  return (o, e) => {
120
120
  const s = M, m = P, i = B, V = O, _ = q("auth");
121
- return r(), f("div", Q, [n(a(F), {
121
+ return r(), f("div", Q, [n(a(z), {
122
122
  ref_key: "tableRef",
123
123
  ref: D,
124
124
  "row-key": "id",
@@ -134,7 +134,7 @@ const Q = {
134
134
  type: "primary",
135
135
  onClick: e[0] || (e[0] = (p) => u(a(t).ADD))
136
136
  }, {
137
- default: c(() => [n(s), z(" " + x(a(t).ADD), 1)]),
137
+ default: c(() => [n(s), j(" " + x(a(t).ADD), 1)]),
138
138
  _: 1
139
139
  })), [[_, "dictionary_data_add"]])]),
140
140
  bodyCell: c(({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pubinfo/module-rbac",
3
3
  "type": "module",
4
- "version": "2.1.1",
4
+ "version": "2.1.3-beta.1",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  "@pubinfo/pro-components": "^1.8.0",
25
25
  "alova": "^3.3.4",
26
26
  "ant-design-vue": "^4.2.6",
27
- "pubinfo": "2.1.1"
27
+ "pubinfo": "2.1.3-beta.1"
28
28
  },
29
29
  "dependencies": {
30
30
  "@destyler/color-picker": "^0.1.0",
@@ -49,7 +49,7 @@
49
49
  "alova": "^3.3.4",
50
50
  "ant-design-vue": "^4.2.6",
51
51
  "type-fest": "^4.41.0",
52
- "pubinfo": "2.1.1"
52
+ "pubinfo": "2.1.3-beta.1"
53
53
  },
54
54
  "scripts": {
55
55
  "dev": "pubinfo build -w --sourcemap",