@pubinfo/module-rbac 2.0.0-beta.27 → 2.0.0-beta.29
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-CwdV9u0c.js → animation_item.vue_vue_type_script_setup_true_lang-efL_vjfY.js} +303 -303
- package/dist/{cloneDeep-DlhYgmRW.js → cloneDeep-B4Rj61s4.js} +1 -1
- package/dist/components/GroupSelector/index.vue.d.ts +4 -4
- package/dist/components/OrgTree/index.vue.d.ts +1 -1
- package/dist/components/OrgUserSelector/OrgSelector.vue.d.ts +4 -4
- package/dist/components/OrgUserSelector/UserSelector.vue.d.ts +4 -4
- package/dist/components/ResourceSelector/index.vue.d.ts +4 -4
- package/dist/composables/useLottie.d.ts +1 -1
- package/dist/{gangweijiekou-CV3_VBHJ.js → gangweijiekou-CV7cIo_W.js} +1 -1
- package/dist/{index-sjcUdYzd.js → index-B6A3qFeU.js} +27 -27
- package/dist/{index-C18K1WpL.js → index-BChMrCkZ.js} +23 -23
- package/dist/{index-ClL_cMSm.js → index-BIUkDwk2.js} +26 -26
- package/dist/{index-BmWUEWpu.js → index-BOEO9CRp.js} +191 -196
- package/dist/{index-Y5TuBpcT.js → index-BgdW__IO.js} +2 -2
- package/dist/{index-mOx8bkh9.js → index-Bi0fucZj.js} +80 -80
- package/dist/{index-CW6W1HIo.js → index-Bj3Ee1l-.js} +3 -3
- package/dist/{index-ChpaG3ZQ.js → index-Bzjxdd-F.js} +7 -7
- package/dist/{index-l8BP3b8K.js → index-CF4XGkrK.js} +5 -5
- package/dist/{index-9u9IWKhc.js → index-CGAa6YPO.js} +16 -16
- package/dist/{index-BnxPrpkn.js → index-CK582XAz.js} +9 -9
- package/dist/{index-CLxuFFEj.js → index-Ce9x4LEV.js} +13 -13
- package/dist/{index-CzUo66L_.js → index-CkVgkVvC.js} +24 -24
- package/dist/{index-MFdCOOEW.js → index-D4uw6wJ9.js} +3 -3
- package/dist/{index-D1jFxfsG.js → index-DFrT08M4.js} +24 -24
- package/dist/{index-CrW31P7w.js → index-Dju21Cnm.js} +2 -2
- package/dist/{index-ATlaXzm9.js → index-Dmg39liA.js} +3 -3
- package/dist/{index-LnUQwTXy.js → index-DvE43Xkt.js} +26 -26
- package/dist/{index-D5LKfALd.js → index-Dx3ZDeWT.js} +42 -42
- package/dist/{index-DX9fHWEY.js → index-MmfEJgmm.js} +18 -18
- package/dist/{index-REH4HEOg.js → index-RBHLCaQ9.js} +28 -28
- package/dist/{index-BAQqP93G.js → index-Y2jyqjVz.js} +7 -7
- package/dist/{index-B8DDuLgv.js → index-b_92Syzh.js} +3 -3
- package/dist/{index-Dnp04_5x.js → index-g5Fyla0r.js} +3 -3
- package/dist/{index-YkF83QOR.js → index-qdAiA-PA.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/interface.d.ts +3 -1
- package/dist/{itemlist-sHSMCsLr.js → itemlist-Og2t8W5R.js} +24 -24
- package/dist/{jiaosejiekou-DvfMUYAa.js → jiaosejiekou-0xZkLzL_.js} +1 -1
- package/dist/{login_history-P_GmktRF.js → login_history-BJWFChQ3.js} +1 -1
- package/dist/{operate_history-CqOswIe4.js → operate_history-C1NKnoB5.js} +1 -1
- package/dist/{pubJiaosezukongzhiqi-DHx7MsUe.js → pubJiaosezukongzhiqi-BlLcThHi.js} +1 -1
- package/dist/routes/index.d.ts +1 -1
- package/dist/routes/modules/authority.manage.menu.d.ts +1 -1
- package/dist/routes/modules/log.manage.menu.d.ts +1 -1
- package/dist/routes/modules/safe.manage.menu.d.ts +1 -1
- package/dist/routes/modules/stylesetting.manage.menu.d.ts +1 -1
- package/dist/routes/modules/system.manage.menu.d.ts +1 -1
- package/dist/{setItem-DkuSrCm8.js → setItem-BRseSui6.js} +1 -1
- package/dist/{shujuquanxianzhubiaokongzhiqi-fpMYehpC.js → shujuquanxianzhubiaokongzhiqi-3CpYi1Zo.js} +1 -1
- package/dist/{useAppAndResource-BH_Fl_gK.js → useAppAndResource-BF7jQTCi.js} +2 -2
- package/dist/views/blackWhiteList/components/drawerBlackWhiteList.vue.d.ts +4 -4
- package/dist/views/blackWhiteList/index.vue.d.ts +319 -319
- package/dist/views/breadcrumb_setting/index.vue.d.ts +1 -1
- package/dist/views/components/HCheckList.vue.d.ts +3 -3
- package/dist/views/components/animation_item.vue.d.ts +3 -3
- package/dist/views/components/setItem.vue.d.ts +7 -7
- package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +26 -26
- package/dist/views/data-permission/index.vue.d.ts +341 -341
- package/dist/views/dictionary/components/drawerDictionary.vue.d.ts +4 -4
- package/dist/views/dictionary/components/drawerDictionaryItem.vue.d.ts +4 -4
- package/dist/views/dictionary/index.vue.d.ts +319 -319
- package/dist/views/dictionary/itemlist.vue.d.ts +319 -319
- package/dist/views/group/components/drawerGroup.vue.d.ts +4 -4
- package/dist/views/group/index.vue.d.ts +319 -319
- package/dist/views/layout_setting/index.vue.d.ts +1 -1
- package/dist/views/log_center/components/browserType.vue.d.ts +3 -3
- package/dist/views/log_center/components/loginHistoryDetail.vue.d.ts +4 -4
- package/dist/views/log_center/components/operateHistoryDetail.vue.d.ts +4 -4
- package/dist/views/log_center/login_history.vue.d.ts +315 -315
- package/dist/views/log_center/operate_history.vue.d.ts +315 -315
- package/dist/views/menu_setting/index.vue.d.ts +1 -1
- package/dist/views/organization/components/drawerOrganization.vue.d.ts +4 -4
- package/dist/views/organization/components/drawerRole.vue.d.ts +7 -7
- package/dist/views/organization/components/roleSelect.vue.d.ts +4 -4
- package/dist/views/organization/index.vue.d.ts +12 -12
- package/dist/views/other_setting/index.vue.d.ts +1 -1
- package/dist/views/page_animation_setting/index.vue.d.ts +1 -1
- package/dist/views/page_w_setting/index.vue.d.ts +1 -1
- package/dist/views/position/components/drawerPosition.vue.d.ts +4 -4
- package/dist/views/position/index.vue.d.ts +319 -319
- package/dist/views/region/components/drawerRegion.vue.d.ts +4 -4
- package/dist/views/region/index.vue.d.ts +319 -319
- package/dist/views/resource/components/ResourceEdit.vue.d.ts +4 -4
- package/dist/views/resource/components/RoleRelation.vue.d.ts +2 -2
- package/dist/views/resource/index.vue.d.ts +321 -321
- package/dist/views/role/components/ResourceRelation.vue.d.ts +316 -316
- package/dist/views/role/components/drawerRole.vue.d.ts +8 -8
- package/dist/views/role/index.vue.d.ts +640 -640
- package/dist/views/role_group/components/drawerRole.vue.d.ts +7 -7
- package/dist/views/role_group/components/roleSelect.vue.d.ts +4 -4
- package/dist/views/role_group/index.vue.d.ts +322 -322
- package/dist/views/safe_setting/index.vue.d.ts +1 -1
- package/dist/views/tabbar_setting/index.vue.d.ts +1 -1
- package/dist/views/tenant/components/TenantEdit.vue.d.ts +8 -8
- package/dist/views/tenant/index.vue.d.ts +323 -323
- package/dist/views/theme_setting/index.vue.d.ts +1 -1
- package/dist/views/toolbar_setting/index.vue.d.ts +1 -1
- package/dist/views/user/components/OrgAndPosition.vue.d.ts +3 -3
- package/dist/views/user/components/UserAuthorization.vue.d.ts +7 -7
- package/dist/views/user/components/UserEdit.vue.d.ts +4 -4
- package/dist/views/user/components/roleSelect.vue.d.ts +4 -4
- package/dist/views/user/index.vue.d.ts +326 -326
- package/dist/views/watermark_setting/index.vue.d.ts +5 -5
- package/dist/{xitongpeizhifuwu-B3Lw-Lq9.js → xitongpeizhifuwu-BIR2CVXp.js} +1 -1
- package/dist/{zidianfuwu-BbhoWOZI.js → zidianfuwu-B137v_q7.js} +1 -1
- package/dist/{ziyuanjiekou-CypA4O57.js → ziyuanjiekou-j9nd-oaF.js} +1 -1
- package/dist/{zuzhijiaosebiaokongzhiqi-DhdCTnmx.js → zuzhijiaosebiaokongzhiqi-DPbRg7Qd.js} +1 -1
- package/package.json +11 -11
- package/src/index.ts +6 -12
- package/src/interface.ts +3 -0
- package/src/routes/index.ts +1 -1
|
@@ -2,13 +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 { u as V } from "./index-
|
|
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-BOEO9CRp.js";
|
|
6
|
+
import { g as we, p as ye, a as Ee, b as Se, c as De, d as Ce } from "./jiaosejiekou-0xZkLzL_.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 { p as Ue } from "./zuzhijiaosebiaokongzhiqi-
|
|
9
|
+
import { u as Te } from "./useAppAndResource-BF7jQTCi.js";
|
|
10
|
+
import { _ as $e } from "./index-BChMrCkZ.js";
|
|
11
|
+
import { p as Ue } from "./zuzhijiaosebiaokongzhiqi-DPbRg7Qd.js";
|
|
12
12
|
import { _ as Ae } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
var i = /* @__PURE__ */ ((b) => (b.ADD = "新增", b.EDIT = "修改", b.REMOVE = "删除", b.RESOURCE_RELATION = "分配查看", b))(i || {});
|
|
14
14
|
const X = [
|
|
@@ -111,8 +111,8 @@ const X = [
|
|
|
111
111
|
default: s(() => t[8] || (t[8] = [
|
|
112
112
|
A(" 取消 ")
|
|
113
113
|
])),
|
|
114
|
-
_: 1
|
|
115
|
-
|
|
114
|
+
_: 1,
|
|
115
|
+
__: [8]
|
|
116
116
|
}),
|
|
117
117
|
n(F, {
|
|
118
118
|
type: "primary",
|
|
@@ -122,8 +122,8 @@ const X = [
|
|
|
122
122
|
default: s(() => t[9] || (t[9] = [
|
|
123
123
|
A(" 提交 ")
|
|
124
124
|
])),
|
|
125
|
-
_: 1
|
|
126
|
-
|
|
125
|
+
_: 1,
|
|
126
|
+
__: [9]
|
|
127
127
|
}, 8, ["loading"])
|
|
128
128
|
]),
|
|
129
129
|
_: 1
|
|
@@ -216,8 +216,8 @@ const X = [
|
|
|
216
216
|
default: s(() => t[7] || (t[7] = [
|
|
217
217
|
A(" 编辑资源 ")
|
|
218
218
|
])),
|
|
219
|
-
_: 1
|
|
220
|
-
|
|
219
|
+
_: 1,
|
|
220
|
+
__: [7]
|
|
221
221
|
}),
|
|
222
222
|
O("div", Pe, [
|
|
223
223
|
(d(!0), w(
|
|
@@ -378,8 +378,8 @@ const X = [
|
|
|
378
378
|
default: s(() => a[2] || (a[2] = [
|
|
379
379
|
A(" 及子组织 ")
|
|
380
380
|
])),
|
|
381
|
-
_: 1
|
|
382
|
-
|
|
381
|
+
_: 1,
|
|
382
|
+
__: [2]
|
|
383
383
|
})) : N("v-if", !0)
|
|
384
384
|
])) : N("v-if", !0)
|
|
385
385
|
]),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Drawer as F, Form as K, FormItem as z, Input as H, Select as J, InputNumber as Q, Space as M, Button as S } from "ant-design-vue/es";
|
|
2
2
|
import { useAuth as Y, PubinfoIcon as Z } from "pubinfo";
|
|
3
3
|
import { PlusCircleOutlined as ee } from "@ant-design/icons-vue";
|
|
4
|
-
import { defineComponent as G, reactive as te, ref as
|
|
5
|
-
import { i as T, u as U } from "./index-
|
|
4
|
+
import { defineComponent as G, reactive as te, ref as v, createBlock as B, openBlock as x, unref as t, isRef as ne, withCtx as d, createVNode as l, createCommentVNode as W, createTextVNode as A, toDisplayString as w, resolveDirective as ae, createElementBlock as $, withDirectives as q, createElementVNode as L } from "vue";
|
|
5
|
+
import { i as T, u as U } from "./index-BOEO9CRp.js";
|
|
6
6
|
import { ProTable as oe } from "@pubinfo/pro-components";
|
|
7
7
|
import { message as X, Modal as ie } from "ant-design-vue";
|
|
8
|
-
import { g as le } from "./zidianfuwu-
|
|
9
|
-
import { c as se } from "./cloneDeep-
|
|
8
|
+
import { g as le } from "./zidianfuwu-B137v_q7.js";
|
|
9
|
+
import { c as se } from "./cloneDeep-B4Rj61s4.js";
|
|
10
10
|
function re(r, f) {
|
|
11
11
|
return T.Post("/region/addRegion", r, {
|
|
12
12
|
headers: {
|
|
@@ -64,10 +64,10 @@ const me = /* @__PURE__ */ G({
|
|
|
64
64
|
{ required: !0, message: "请输入行政区划编码", trigger: "blur" },
|
|
65
65
|
{ max: 16, message: "长度不能超过16位", trigger: "change" }
|
|
66
66
|
]
|
|
67
|
-
},
|
|
67
|
+
}, _ = te({
|
|
68
68
|
title: "",
|
|
69
69
|
type: ""
|
|
70
|
-
}), [h, b] = U(!1), N =
|
|
70
|
+
}), [h, b] = U(!1), N = v(), o = v({ parentId: "" }), I = v([]);
|
|
71
71
|
le({ dictCode: "regionType" }).then((n) => {
|
|
72
72
|
var e;
|
|
73
73
|
I.value = (e = n.data) == null ? void 0 : e.map((a) => ({
|
|
@@ -76,7 +76,7 @@ const me = /* @__PURE__ */ G({
|
|
|
76
76
|
}));
|
|
77
77
|
});
|
|
78
78
|
async function V(n, e) {
|
|
79
|
-
if (b(!0),
|
|
79
|
+
if (b(!0), _.title = n, n === u.EDIT) {
|
|
80
80
|
const a = await pe({ code: e == null ? void 0 : e.code });
|
|
81
81
|
a.success && (o.value = a.data ?? {});
|
|
82
82
|
} else n === u.ADDNEXT ? o.value = {
|
|
@@ -89,12 +89,12 @@ const me = /* @__PURE__ */ G({
|
|
|
89
89
|
const [O, R] = U(!1);
|
|
90
90
|
function C() {
|
|
91
91
|
var e;
|
|
92
|
-
const n =
|
|
92
|
+
const n = _.title === u.EDIT ? ce : re;
|
|
93
93
|
(e = N.value) == null || e.validate().then(() => {
|
|
94
94
|
R(!0);
|
|
95
95
|
const a = { ...o.value };
|
|
96
96
|
n(a).then((s) => {
|
|
97
|
-
s.success && (X.success(`${
|
|
97
|
+
s.success && (X.success(`${_.title}成功!`), b(!1), c("submit"));
|
|
98
98
|
}).finally(() => R(!1));
|
|
99
99
|
});
|
|
100
100
|
}
|
|
@@ -110,7 +110,7 @@ const me = /* @__PURE__ */ G({
|
|
|
110
110
|
return x(), B(j, {
|
|
111
111
|
open: t(h),
|
|
112
112
|
"onUpdate:open": e[6] || (e[6] = (m) => ne(h) ? h.value = m : null),
|
|
113
|
-
title: `${t(
|
|
113
|
+
title: `${t(_).title}区域`,
|
|
114
114
|
placement: "right",
|
|
115
115
|
width: 600,
|
|
116
116
|
"destroy-on-close": "",
|
|
@@ -124,8 +124,8 @@ const me = /* @__PURE__ */ G({
|
|
|
124
124
|
default: d(() => e[7] || (e[7] = [
|
|
125
125
|
A(" 取消 ")
|
|
126
126
|
])),
|
|
127
|
-
_: 1
|
|
128
|
-
|
|
127
|
+
_: 1,
|
|
128
|
+
__: [7]
|
|
129
129
|
}),
|
|
130
130
|
l(y, {
|
|
131
131
|
type: "primary",
|
|
@@ -135,8 +135,8 @@ const me = /* @__PURE__ */ G({
|
|
|
135
135
|
default: d(() => e[8] || (e[8] = [
|
|
136
136
|
A(" 提交 ")
|
|
137
137
|
])),
|
|
138
|
-
_: 1
|
|
139
|
-
|
|
138
|
+
_: 1,
|
|
139
|
+
__: [8]
|
|
140
140
|
}, 8, ["loading"])
|
|
141
141
|
]),
|
|
142
142
|
_: 1
|
|
@@ -217,7 +217,7 @@ const me = /* @__PURE__ */ G({
|
|
|
217
217
|
l(s, {
|
|
218
218
|
value: t(o).code,
|
|
219
219
|
"onUpdate:value": e[3] || (e[3] = (m) => t(o).code = m),
|
|
220
|
-
disabled: t(
|
|
220
|
+
disabled: t(_).title === t(u).EDIT,
|
|
221
221
|
maxlength: 16
|
|
222
222
|
}, null, 8, ["value", "disabled"])
|
|
223
223
|
]),
|
|
@@ -249,9 +249,9 @@ const me = /* @__PURE__ */ G({
|
|
|
249
249
|
"h-full": "",
|
|
250
250
|
"py-10px": "",
|
|
251
251
|
"px-10px": ""
|
|
252
|
-
}, ge = ["onClick"],
|
|
252
|
+
}, ge = ["onClick"], _e = {
|
|
253
253
|
class: "ml-4px"
|
|
254
|
-
},
|
|
254
|
+
}, ve = ["onClick"], he = {
|
|
255
255
|
class: "ml-4px"
|
|
256
256
|
}, xe = ["onClick"], be = {
|
|
257
257
|
class: "ml-4px"
|
|
@@ -261,9 +261,9 @@ const me = /* @__PURE__ */ G({
|
|
|
261
261
|
setup(r) {
|
|
262
262
|
const {
|
|
263
263
|
auth: f
|
|
264
|
-
} = Y(), p =
|
|
264
|
+
} = Y(), p = v({
|
|
265
265
|
parentId: ""
|
|
266
|
-
}), c =
|
|
266
|
+
}), c = v([]), g = v({}), _ = v(), h = v(), b = v([]);
|
|
267
267
|
function N(i) {
|
|
268
268
|
b.value = i;
|
|
269
269
|
}
|
|
@@ -345,11 +345,11 @@ const me = /* @__PURE__ */ G({
|
|
|
345
345
|
function O(i, n) {
|
|
346
346
|
var a, s;
|
|
347
347
|
const e = se(n);
|
|
348
|
-
i && ((a = e.children) == null ? void 0 : a.length) === 0 && (p.value.parentId = n.id, g.value = n, (s =
|
|
348
|
+
i && ((a = e.children) == null ? void 0 : a.length) === 0 && (p.value.parentId = n.id, g.value = n, (s = _.value) == null || s.fetch());
|
|
349
349
|
}
|
|
350
350
|
function R() {
|
|
351
351
|
var i;
|
|
352
|
-
(i =
|
|
352
|
+
(i = _.value) == null || i.reload();
|
|
353
353
|
}
|
|
354
354
|
function C(i, n) {
|
|
355
355
|
for (const e of i) {
|
|
@@ -366,7 +366,7 @@ const me = /* @__PURE__ */ G({
|
|
|
366
366
|
const e = ee, a = S, s = Z, E = M, D = ae("auth");
|
|
367
367
|
return x(), $("div", fe, [l(t(oe), {
|
|
368
368
|
ref_key: "tableRef",
|
|
369
|
-
ref:
|
|
369
|
+
ref: _,
|
|
370
370
|
"row-key": "id",
|
|
371
371
|
search: !1,
|
|
372
372
|
request: V,
|
|
@@ -410,7 +410,7 @@ const me = /* @__PURE__ */ G({
|
|
|
410
410
|
class: "text-base"
|
|
411
411
|
}), L(
|
|
412
412
|
"span",
|
|
413
|
-
|
|
413
|
+
_e,
|
|
414
414
|
w(t(u).ADDNEXT),
|
|
415
415
|
1
|
|
416
416
|
/* TEXT */
|
|
@@ -426,7 +426,7 @@ const me = /* @__PURE__ */ G({
|
|
|
426
426
|
w(t(u).EDIT),
|
|
427
427
|
1
|
|
428
428
|
/* TEXT */
|
|
429
|
-
)], 8,
|
|
429
|
+
)], 8, ve)), [[D, "region_edit"]]), q((x(), $("span", {
|
|
430
430
|
class: "flex items-center text-red-500 hover:cursor-pointer hover:opacity-80",
|
|
431
431
|
onClick: (P) => I(t(u).REMOVE, y)
|
|
432
432
|
}, [l(s, {
|