@pubinfo/module-rbac 2.0.0-beta.10 → 2.0.0-beta.12
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/{animation_item.vue_vue_type_script_setup_true_lang-BQvmwheq.js → animation_item.vue_vue_type_script_setup_true_lang-B6l7UFLh.js} +281 -281
- package/dist/cloneDeep-8vjgfynq.js +8 -0
- package/dist/components/OrgUserSelector/index.d.ts +3 -2
- package/dist/{gangweijiekou-BxJq_m0o.js → gangweijiekou-DoXatrli.js} +1 -1
- package/dist/{index-a0E9oj3q.js → index--VjqUCuf.js} +12 -13
- package/dist/{index-U8kjKY6p.js → index-437l5ijj.js} +5 -6
- package/dist/{index-Cr17VOfm.js → index-B7KC3boK.js} +4 -5
- package/dist/{index-Cej8u1qo.js → index-BGQ99J2l.js} +10 -11
- package/dist/{index-KboUdpTh.js → index-BTXg6pUc.js} +12 -15
- package/dist/{index-yEpViVkx.js → index-BWc4onKs.js} +10 -11
- package/dist/{index-MtXfNGqS.js → index-BX1CIagK.js} +6486 -562
- package/dist/{index-j_ln_NSt.js → index-BXq997wj.js} +10 -11
- package/dist/{index-s32GbmsJ.js → index-BamJFV9x.js} +3 -3
- package/dist/{index-D0yB_8b0.js → index-BpZlEjLH.js} +3 -3
- package/dist/{index-CTiFd9M0.js → index-BuIXR9Hh.js} +3 -3
- package/dist/{index-CsHj-xDw.js → index-Bugwk8cz.js} +2 -2
- package/dist/index-C-Pw2BFu.js +465 -0
- package/dist/{index-CLSeuhTv.js → index-C0HpWF9q.js} +13 -14
- package/dist/{index-CFPhIFyG.js → index-CEdx5DQj.js} +2 -2
- package/dist/{index-BhcAk-IH.js → index-CIAVtlta.js} +1 -1
- package/dist/{index-zh8PZXw2.js → index-CLKpGgxo.js} +16 -18
- package/dist/{index-Bl4v-7On.js → index-CLmuHwlB.js} +2 -2
- package/dist/{index-BleenJqT.js → index-D8wjctLy.js} +3 -3
- package/dist/{index-CLxqmFPw.js → index-DX_JxMJ5.js} +3 -3
- package/dist/{index-DNf0NPrD.js → index-McuDTIU1.js} +3 -3
- package/dist/{index-Bbsiwecf.js → index-QwehJ7aS.js} +33 -38
- package/dist/{index-BS45K9vK.js → index-ZlLpG1f9.js} +5 -6
- package/dist/{index-UZeQsp70.js → index-dJJh8i9i.js} +3 -3
- package/dist/{index-gmUZUdNl.js → index-uJt-0g6U.js} +7 -8
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -3
- package/dist/{itemlist-xAbIKRVj.js → itemlist-D7MJp8Qk.js} +9 -10
- package/dist/{jiaosejiekou-BfY4h7uI.js → jiaosejiekou-BCXAevvU.js} +1 -1
- package/dist/{login_history-CuQv9Iw3.js → login_history-DmfGnXsn.js} +1 -1
- package/dist/{operate_history-CGP-1Xy2.js → operate_history-BzX4YfHD.js} +10 -10
- package/dist/{pubJiaosezukongzhiqi-CvYfc8Uz.js → pubJiaosezukongzhiqi-DjhWqIMC.js} +1 -1
- package/dist/{setItem-DkOvmWXP.js → setItem-A0ExOAEh.js} +1 -1
- package/dist/{shujuquanxianzhubiaokongzhiqi-DyNgf1y6.js → shujuquanxianzhubiaokongzhiqi-CmBc9yvH.js} +5 -5
- package/dist/style.css +1 -1
- package/dist/{useAppAndResource-D_b19V4t.js → useAppAndResource-BQ6GznA5.js} +2 -2
- package/dist/{xitongpeizhifuwu-C1Vm-W1B.js → xitongpeizhifuwu-DtEPa1iK.js} +1 -1
- package/dist/{zidianfuwu-yCWHhOfO.js → zidianfuwu-BUtPqzzu.js} +1 -1
- package/dist/{ziyuanjiekou-DhrAbneq.js → ziyuanjiekou-DMJynAKN.js} +1 -1
- package/dist/{zuzhijiaosebiaokongzhiqi-B1g74RqL.js → zuzhijiaosebiaokongzhiqi-Bf05-XJX.js} +1 -1
- package/package.json +4 -5
- package/src/components/OrgUserSelector/index.ts +5 -0
- package/src/index.ts +1 -0
- package/dist/OrgSelector.vue_vue_type_script_setup_true_lang-BcL0IFuA.js +0 -567
- package/dist/_baseClone-CQ44TFeq.js +0 -191
- package/dist/cloneDeep-BI4WNBQ9.js +0 -8
- package/dist/index-DFR8dd2B.js +0 -785
- package/dist/index-Dm4sOX43.js +0 -27
- package/dist/request-DQLgc7lT.js +0 -5
- package/dist/zuzhijiekou-PeZuFtCO.js +0 -85
|
@@ -2,14 +2,13 @@ import { Drawer as G, Form as ie, FormItem as ue, Input as ce, Select as de, Swi
|
|
|
2
2
|
import { useAuth as ve, PubinfoIcon as Re } from "pubinfo";
|
|
3
3
|
import { PlusCircleOutlined as xe } from "@ant-design/icons-vue";
|
|
4
4
|
import { defineComponent as L, reactive as be, ref as x, createBlock as T, openBlock as d, unref as o, isRef as M, withCtx as s, createVNode as n, createElementVNode as O, createTextVNode as A, createElementBlock as w, Fragment as z, renderList as he, toDisplayString as C, computed as Ie, createCommentVNode as N, resolveDirective as ke, withDirectives as q } from "vue";
|
|
5
|
-
import "./
|
|
6
|
-
import { g as we, p as ye, a as Ee, b as Se, c as De, d as Ce } from "./jiaosejiekou-
|
|
5
|
+
import { u as V } from "./index-BX1CIagK.js";
|
|
6
|
+
import { g as we, p as ye, a as Ee, b as Se, c as De, d as Ce } from "./jiaosejiekou-BCXAevvU.js";
|
|
7
7
|
import { ProTable as K } from "@pubinfo/pro-components";
|
|
8
8
|
import { message as Q, Badge as j, Modal as Oe } from "ant-design-vue";
|
|
9
|
-
import { u as Te } from "./useAppAndResource-
|
|
10
|
-
import { _ as $e } from "./index-
|
|
11
|
-
import {
|
|
12
|
-
import { p as Ue } from "./zuzhijiaosebiaokongzhiqi-B1g74RqL.js";
|
|
9
|
+
import { u as Te } from "./useAppAndResource-BQ6GznA5.js";
|
|
10
|
+
import { _ as $e } from "./index-CIAVtlta.js";
|
|
11
|
+
import { p as Ue } from "./zuzhijiaosebiaokongzhiqi-Bf05-XJX.js";
|
|
13
12
|
import { _ as Ae } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
13
|
var i = /* @__PURE__ */ ((b) => (b.ADD = "新增", b.EDIT = "修改", b.REMOVE = "删除", b.RESOURCE_RELATION = "分配查看", b))(i || {});
|
|
15
14
|
const X = [
|
|
@@ -402,7 +401,7 @@ const X = [
|
|
|
402
401
|
class: "ml-4px"
|
|
403
402
|
}, Je = ["onClick"], Ke = {
|
|
404
403
|
class: "ml-4px"
|
|
405
|
-
},
|
|
404
|
+
}, it = /* @__PURE__ */ L({
|
|
406
405
|
name: "Role",
|
|
407
406
|
__name: "index",
|
|
408
407
|
setup(b) {
|
|
@@ -630,5 +629,5 @@ const X = [
|
|
|
630
629
|
}
|
|
631
630
|
});
|
|
632
631
|
export {
|
|
633
|
-
|
|
632
|
+
it as default
|
|
634
633
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ import { RbacOptions } from './interface';
|
|
|
3
3
|
import './assets/styles/vxe-table.css';
|
|
4
4
|
import 'uno.css';
|
|
5
5
|
export declare function rbac(options?: RbacOptions): ModuleOptions;
|
|
6
|
+
export * from './components/OrgUserSelector';
|
|
6
7
|
export * from './interface';
|
|
7
8
|
export default rbac;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as a, J as t, I as c, I as l, D as o, E as f } from "./index-BX1CIagK.js";
|
|
2
2
|
import "pubinfo";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
a as OrgSelector,
|
|
5
|
+
t as UserSelector,
|
|
6
|
+
c as default,
|
|
7
|
+
l as rbac,
|
|
8
|
+
o as selectOrg,
|
|
9
|
+
f as selectUser
|
|
6
10
|
};
|
|
@@ -2,12 +2,11 @@ import { Drawer as G, Form as H, FormItem as J, Input as K, Textarea as Q, Input
|
|
|
2
2
|
import { useAuth as Z, PubinfoIcon as ee } from "pubinfo";
|
|
3
3
|
import { PlusCircleOutlined as te } from "@ant-design/icons-vue";
|
|
4
4
|
import { defineComponent as B, reactive as L, ref as I, createBlock as V, openBlock as b, unref as t, isRef as ne, withCtx as a, createVNode as n, createTextVNode as T, onMounted as oe, resolveDirective as ae, createElementBlock as C, createCommentVNode as le, withDirectives as E, createElementVNode as A, toDisplayString as R } from "vue";
|
|
5
|
-
import "./
|
|
6
|
-
import { b as ie, c as se, e as re } from "./zidianfuwu-
|
|
5
|
+
import { u as $ } from "./index-BX1CIagK.js";
|
|
6
|
+
import { b as ie, c as se, e as re } from "./zidianfuwu-BUtPqzzu.js";
|
|
7
7
|
import { ProTable as ue } from "@pubinfo/pro-components";
|
|
8
|
-
import { message as N, Badge as
|
|
8
|
+
import { message as N, Badge as P, Modal as ce } from "ant-design-vue";
|
|
9
9
|
import { A as c } from "./enum-C9ihxJe7.js";
|
|
10
|
-
import { u as P } from "./index-Dm4sOX43.js";
|
|
11
10
|
import { useRoute as de } from "vue-router";
|
|
12
11
|
const me = /* @__PURE__ */ B({
|
|
13
12
|
name: "DrawerDictionaryItem",
|
|
@@ -20,11 +19,11 @@ const me = /* @__PURE__ */ B({
|
|
|
20
19
|
}, m = L({
|
|
21
20
|
title: "",
|
|
22
21
|
code: ""
|
|
23
|
-
}), [v, _] =
|
|
22
|
+
}), [v, _] = $(!1), y = I(), o = I({});
|
|
24
23
|
async function r(s, e, u) {
|
|
25
24
|
_(!0), m.title = s, m.code = e, s === c.EDIT ? o.value = u ?? {} : (o.value = {}, o.value.enable = !0, o.value.code = e);
|
|
26
25
|
}
|
|
27
|
-
const [l, p] =
|
|
26
|
+
const [l, p] = $(!1);
|
|
28
27
|
function D() {
|
|
29
28
|
var s;
|
|
30
29
|
(s = y.value) == null || s.validate().then(() => {
|
|
@@ -175,7 +174,7 @@ const me = /* @__PURE__ */ B({
|
|
|
175
174
|
class: "ml-4px"
|
|
176
175
|
}, ve = ["onClick"], be = {
|
|
177
176
|
class: "ml-4px"
|
|
178
|
-
},
|
|
177
|
+
}, Re = /* @__PURE__ */ B({
|
|
179
178
|
name: "DictionaryItem",
|
|
180
179
|
__name: "itemlist",
|
|
181
180
|
setup(U) {
|
|
@@ -209,10 +208,10 @@ const me = /* @__PURE__ */ B({
|
|
|
209
208
|
customRender({
|
|
210
209
|
text: r
|
|
211
210
|
}) {
|
|
212
|
-
return r ? n(
|
|
211
|
+
return r ? n(P, {
|
|
213
212
|
status: "success",
|
|
214
213
|
text: "启用"
|
|
215
|
-
}, null) : n(
|
|
214
|
+
}, null) : n(P, {
|
|
216
215
|
status: "error",
|
|
217
216
|
text: "禁用"
|
|
218
217
|
}, null);
|
|
@@ -365,5 +364,5 @@ const me = /* @__PURE__ */ B({
|
|
|
365
364
|
}
|
|
366
365
|
});
|
|
367
366
|
export {
|
|
368
|
-
|
|
367
|
+
Re as default
|
|
369
368
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Drawer as M, Descriptions as O, DescriptionsItem as L, Space as V } from "ant-design-vue/es";
|
|
2
2
|
import { useAuth as B, PubinfoIcon as $ } from "pubinfo";
|
|
3
3
|
import { defineComponent as k, createBlock as H, openBlock as g, withCtx as l, createElementVNode as m, createVNode as t, createTextVNode as o, toDisplayString as n, ref as y, onMounted as E, createElementBlock as P, unref as T, createCommentVNode as Y, normalizeClass as R } from "vue";
|
|
4
|
-
import {
|
|
4
|
+
import { i as q } from "./index-BX1CIagK.js";
|
|
5
5
|
import { ProTable as z } from "@pubinfo/pro-components";
|
|
6
6
|
import { _ as A } from "./browserType.vue_vue_type_script_setup_true_lang-Cv8wph6G.js";
|
|
7
7
|
import { _ as j } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Drawer as M, Descriptions as j, DescriptionsItem as q, Space as V } from "ant-design-vue/es";
|
|
2
2
|
import { useAuth as A, PubinfoIcon as B } from "pubinfo";
|
|
3
|
-
import { defineComponent as k, createBlock as H, openBlock as
|
|
4
|
-
import {
|
|
3
|
+
import { defineComponent as k, createBlock as H, openBlock as b, withCtx as l, createElementVNode as m, createVNode as t, createTextVNode as o, toDisplayString as r, ref as w, onMounted as $, createElementBlock as S, unref as y, createCommentVNode as Y, normalizeClass as E } from "vue";
|
|
4
|
+
import { i as R } from "./index-BX1CIagK.js";
|
|
5
5
|
import { ProTable as z } from "@pubinfo/pro-components";
|
|
6
6
|
import { _ as L } from "./browserType.vue_vue_type_script_setup_true_lang-Cv8wph6G.js";
|
|
7
7
|
import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -26,7 +26,7 @@ const F = { class: "detail-info" }, G = /* @__PURE__ */ k({
|
|
|
26
26
|
}
|
|
27
27
|
return (I, N) => {
|
|
28
28
|
const i = q, x = j, g = M;
|
|
29
|
-
return
|
|
29
|
+
return b(), H(g, {
|
|
30
30
|
open: a.visible,
|
|
31
31
|
title: "操作日志",
|
|
32
32
|
placement: "right",
|
|
@@ -357,7 +357,7 @@ const F = { class: "detail-info" }, G = /* @__PURE__ */ k({
|
|
|
357
357
|
realName: n,
|
|
358
358
|
loginName: d,
|
|
359
359
|
orgName: C,
|
|
360
|
-
operateTime:
|
|
360
|
+
operateTime: _
|
|
361
361
|
} = e, c = {
|
|
362
362
|
pageSize: v,
|
|
363
363
|
currentPage: s,
|
|
@@ -371,9 +371,9 @@ const F = { class: "detail-info" }, G = /* @__PURE__ */ k({
|
|
|
371
371
|
orgName: C
|
|
372
372
|
}), d && Object.assign(c, {
|
|
373
373
|
loginName: d
|
|
374
|
-
}),
|
|
375
|
-
operateStartTime:
|
|
376
|
-
operateEndTime:
|
|
374
|
+
}), _ && _.length === 2 && Object.assign(c, {
|
|
375
|
+
operateStartTime: _[0].format("YYYY-MM-DD HH:mm:ss"),
|
|
376
|
+
operateEndTime: _[1].format("YYYY-MM-DD HH:mm:ss")
|
|
377
377
|
});
|
|
378
378
|
const T = await U(c);
|
|
379
379
|
return {
|
|
@@ -390,7 +390,7 @@ const F = { class: "detail-info" }, G = /* @__PURE__ */ k({
|
|
|
390
390
|
}
|
|
391
391
|
return (e, s) => {
|
|
392
392
|
const v = B, h = V;
|
|
393
|
-
return
|
|
393
|
+
return b(), S("div", K, [t(
|
|
394
394
|
y(z),
|
|
395
395
|
{
|
|
396
396
|
ref_key: "tableRef",
|
|
@@ -407,7 +407,7 @@ const F = { class: "detail-info" }, G = /* @__PURE__ */ k({
|
|
|
407
407
|
bodyCell: l(({
|
|
408
408
|
column: n,
|
|
409
409
|
record: d
|
|
410
|
-
}) => [n.dataIndex === "success" ? (
|
|
410
|
+
}) => [n.dataIndex === "success" ? (b(), S("div", Q, [m(
|
|
411
411
|
"i",
|
|
412
412
|
{
|
|
413
413
|
class: E(["status-mark", [{
|
|
@@ -423,7 +423,7 @@ const F = { class: "detail-info" }, G = /* @__PURE__ */ k({
|
|
|
423
423
|
r(d.success ? "正常" : "异常"),
|
|
424
424
|
1
|
|
425
425
|
/* TEXT */
|
|
426
|
-
)])) : Y("v-if", !0), n.dataIndex === "action" ? (
|
|
426
|
+
)])) : Y("v-if", !0), n.dataIndex === "action" ? (b(), H(
|
|
427
427
|
h,
|
|
428
428
|
{
|
|
429
429
|
key: 1
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Tooltip as $, Switch as A } from "ant-design-vue/es";
|
|
2
2
|
import { PubinfoIcon as V } from "pubinfo";
|
|
3
3
|
import { defineComponent as C, watch as k, createElementBlock as u, openBlock as a, Fragment as x, renderList as B, normalizeClass as j, createBlock as m, createTextVNode as E, toDisplayString as w, ref as v, createElementVNode as c, createCommentVNode as h, withCtx as N, createVNode as y, unref as b, isRef as g } from "vue";
|
|
4
|
-
import { _ as O } from "./animation_item.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { _ as O } from "./animation_item.vue_vue_type_script_setup_true_lang-B6l7UFLh.js";
|
|
5
5
|
import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const z = { class: "inline-flex select-none items-center justify-center of-hidden rounded-md bg-stone-3 dark:bg-stone-7" }, L = ["disabled", "onClick"], M = /* @__PURE__ */ C({
|
|
7
7
|
__name: "HCheckList",
|
package/dist/{shujuquanxianzhubiaokongzhiqi-DyNgf1y6.js → shujuquanxianzhubiaokongzhiqi-CmBc9yvH.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as t } from "./index-BX1CIagK.js";
|
|
2
2
|
function i(s) {
|
|
3
3
|
return t.Get("/rbac/pubDataPermissions/dataPermissionList", {});
|
|
4
4
|
}
|
|
@@ -38,7 +38,7 @@ function p(s, a) {
|
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function u(s, a) {
|
|
42
42
|
return t.Post("/rbac/pubDataPermissions/save", s, {
|
|
43
43
|
headers: {
|
|
44
44
|
"Content-Type": "application/json"
|
|
@@ -46,7 +46,7 @@ function b(s, a) {
|
|
|
46
46
|
...a || {}
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function b(s, a) {
|
|
50
50
|
return t.Post("/rbac/pubDataPermissions/update", s, {
|
|
51
51
|
headers: {
|
|
52
52
|
"Content-Type": "application/json"
|
|
@@ -55,11 +55,11 @@ function u(s, a) {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
export {
|
|
58
|
-
|
|
58
|
+
u as a,
|
|
59
59
|
p as b,
|
|
60
60
|
i as c,
|
|
61
61
|
n as d,
|
|
62
62
|
r as e,
|
|
63
63
|
o as g,
|
|
64
|
-
|
|
64
|
+
b as p
|
|
65
65
|
};
|