@pubinfo/module-rbac 2.1.3-beta.1 → 2.1.3-beta.2
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.
- package/dist/{drawerDictionary-DXFWmGzG.js → drawerDictionary-BRGmcIFT.js} +1 -1
- package/dist/{drawerDictionary.vue_vue_type_script_setup_true_lang-CH9l9I5G.js → drawerDictionary.vue_vue_type_script_setup_true_lang-0zsptmrP.js} +1 -1
- package/dist/{drawerDictionaryItem-CkHT7MW8.js → drawerDictionaryItem-CFBfyhEw.js} +1 -1
- package/dist/{drawerDictionaryItem.vue_vue_type_script_setup_true_lang-DUJwUT9Q.js → drawerDictionaryItem.vue_vue_type_script_setup_true_lang-DeJblyyZ.js} +6 -6
- package/dist/{drawerGroup-Dv_EpCCK.js → drawerGroup-Bs1Z8XPo.js} +1 -1
- package/dist/{drawerGroup.vue_vue_type_script_setup_true_lang-D8eReJwR.js → drawerGroup.vue_vue_type_script_setup_true_lang-ClG-M0Ru.js} +14 -14
- package/dist/{index-CGLg7J6G.js → index-B0zXLUdu.js} +1 -1
- package/dist/{index-BH3LYln0.js → index-C2G4xRrJ.js} +1 -1
- package/dist/{index-7wGerdcb.js → index-CLnFLvHy.js} +2 -2
- package/dist/{index-Bx14slml.js → index-CbVJdR5M.js} +2 -2
- package/dist/index.js +24 -24
- package/dist/index14.css +1 -1
- package/dist/index15.css +1 -1
- package/dist/{itemlist-DLoOWV8i.js → itemlist-zTYJtoSs.js} +9 -9
- package/package.json +3 -3
|
@@ -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,
|
|
4
|
+
import { u as b, c 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,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,
|
|
4
|
+
import { u as g, g 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
|
|
11
|
+
const y = w, I = {
|
|
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
|
|
18
|
+
async function k(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),
|
|
27
|
+
e.success && (M.success(`${s.title}成功!`), p(!1), y("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:
|
|
35
|
+
open: k
|
|
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:
|
|
78
|
+
rules: I,
|
|
79
79
|
"label-col": { span: 5 }
|
|
80
80
|
}, {
|
|
81
81
|
default: a(() => [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Drawer as q, Form as A, FormItem as P, Input as
|
|
2
|
-
import { defineComponent as Q, reactive as W, ref as y, computed as X, createBlock as
|
|
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";
|
|
3
3
|
import { message as te } from "ant-design-vue";
|
|
4
|
-
import { u as S,
|
|
4
|
+
import { u as S, j as oe, selectOrg as re, selectUser as ne, k 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
|
-
}, [
|
|
25
|
+
}, [d, c] = 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 (
|
|
30
|
+
if (c(!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}成功!`),
|
|
63
|
+
a.success && (te.success(`${p.title}成功!`), c(!1), F("submit"));
|
|
64
64
|
}).finally(() => v(!1));
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
67
|
function x() {
|
|
68
|
-
|
|
68
|
+
c(!1);
|
|
69
69
|
}
|
|
70
70
|
return M({
|
|
71
71
|
open: R
|
|
72
72
|
}), (n, e) => {
|
|
73
|
-
const u =
|
|
74
|
-
return m(),
|
|
75
|
-
open: r(
|
|
76
|
-
"onUpdate:open": e[4] || (e[4] = (o) => Z(
|
|
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),
|
|
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
|
-
|
|
175
|
+
G("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(),
|
|
177
|
+
o.name && o.name?.length > 20 ? (m(), k(B, {
|
|
178
178
|
key: 0,
|
|
179
179
|
title: o.name
|
|
180
180
|
}, {
|
|
181
181
|
default: l(() => [
|
|
182
|
-
|
|
182
|
+
G("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))
|
|
@@ -7,7 +7,7 @@ import { ProTable as de } from "@pubinfo/pro-components";
|
|
|
7
7
|
import { Popover as pe, Space as _e, Badge as V, Modal as M, message as N } from "ant-design-vue";
|
|
8
8
|
import fe from "./UserAuthorization-Ch_iKzms.js";
|
|
9
9
|
import { A as t, _ as me } from "./UserEdit.vue_vue_type_script_setup_true_lang-SIR1ZO_N.js";
|
|
10
|
-
import './
|
|
10
|
+
import './index15.css';const he = { class: "flex w-full items-center overflow-hidden" }, ge = ["title"], ve = /* @__PURE__ */ z({
|
|
11
11
|
name: "OrgTree",
|
|
12
12
|
__name: "index",
|
|
13
13
|
props: {
|