@pubinfo/module-rbac 2.0.11 → 2.0.13
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/{IconSelect-CkqLR5Dg.js → IconSelect-Cco4lJFZ.js} +1 -1
- package/dist/IconSelect.css +1 -1
- package/dist/IconSelect.vue_vue_type_script_setup_true_lang-C9GJFjrV.js +757 -0
- package/dist/LayoutForm-DqDnsQcr.js +173 -0
- package/dist/LayoutForm.css +1 -0
- package/dist/{MetaForm-DtlyvzoM.js → MetaForm-s74FbAc9.js} +51 -43
- package/dist/{ResourceEdit-WpEdbzaw.js → ResourceEdit-CNYAteRE.js} +1 -1
- package/dist/ResourceEdit.vue_vue_type_script_setup_true_lang-BLqs77A8.js +433 -0
- package/dist/{ResourceRelation-DGiGYy6V.js → ResourceRelation-CeM9Eq39.js} +10 -11
- package/dist/{ResourceRelation-26FnHEfU.js → ResourceRelation-qhIdXLAy.js} +12 -13
- package/dist/{TenantEdit-B24X5nND.js → TenantEdit-C61O1pSu.js} +1 -1
- package/dist/{TenantEdit.vue_vue_type_script_setup_true_lang-Bu5HcJJv.js → TenantEdit.vue_vue_type_script_setup_true_lang-BwsA9hth.js} +39 -40
- package/dist/{UserAuthorization-Co6JV0py.js → UserAuthorization-rqttVub5.js} +9 -10
- package/dist/components/OrgUserSelector/OrgSelector.vue.d.ts +1 -1
- package/dist/components/OrgUserSelector/UserSelector.vue.d.ts +1 -1
- package/dist/components/ResourceIcones/BoxColorPicker.vue.d.ts +3 -0
- package/dist/components/ResourceIcones/Select.vue.d.ts +3 -0
- package/dist/{createAndEditDataPermission-BhOLGGna.js → createAndEditDataPermission-DPeFulie.js} +1 -1
- package/dist/{createAndEditDataPermission.vue_vue_type_script_setup_true_lang-D5wInKwO.js → createAndEditDataPermission.vue_vue_type_script_setup_true_lang-DlUIYtif.js} +98 -101
- package/dist/{drawerRole-DHLv47_z.js → drawerRole-CXGVqxPX.js} +1 -1
- package/dist/{drawerRole-DUWRM43j.js → drawerRole-CfJjf3v_.js} +1 -1
- package/dist/{drawerRole.vue_vue_type_script_setup_true_lang-BET5ukoo.js → drawerRole.vue_vue_type_script_setup_true_lang-B-VZS3gq.js} +42 -43
- package/dist/{drawerRole.vue_vue_type_script_setup_true_lang-BK3zjhop.js → drawerRole.vue_vue_type_script_setup_true_lang-B1eT0e_Q.js} +1 -1
- package/dist/{index-Csfu3kAr.js → index-B5aP0re3.js} +6 -7
- package/dist/{index-DwpOyfRe.js → index-BEB4liGe.js} +8 -9
- package/dist/{index-DfuGXjYh.js → index-BNwGLzXe.js} +21 -22
- package/dist/{index-ioZh8Qom.js → index-BXvJhqJD.js} +6 -7
- package/dist/{index-DdoOaWs-.js → index-BsZjgoZQ.js} +1 -1
- package/dist/{index-BFx8F5lO.js → index-C2G4xRrJ.js} +8 -9
- package/dist/{index-x9Iim2eD.js → index-C5WD-YUu.js} +7 -8
- package/dist/{index-rNYtJ7Om.js → index-CbVJdR5M.js} +6 -7
- package/dist/{index-DECno0gv.js → index-ChWnVs6j.js} +2 -2
- package/dist/{index-C9hHp4Iw.js → index-CoZM8pyH.js} +1 -1
- package/dist/{index-B2tTTlBE.js → index-Copy5kiW.js} +276 -273
- package/dist/index-D3Xw_aOi.js +144 -0
- package/dist/{index-CCw3ZJgQ.js → index-DHVEXch0.js} +8 -9
- package/dist/{index-COWUocfL.js → index-Dl0hWfIE.js} +7 -8
- package/dist/{index-BIpmC999.js → index-En8oOf9e.js} +8 -9
- package/dist/{index-ZQuRR9fG.js → index-VZuizuKs.js} +1 -1
- package/dist/{index-BwWrE3dY.js → index-XhYtVVT9.js} +6 -7
- package/dist/{index-BUmMaC21.js → index-nAPHtTM7.js} +5 -6
- package/dist/{index-y9CQTo95.js → index-qn7U9T51.js} +9 -10
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2588 -2289
- package/dist/index10.css +1 -1
- package/dist/index11.css +1 -1
- package/dist/index12.css +1 -1
- package/dist/index13.css +1 -1
- package/dist/index14.css +1 -1
- package/dist/index15.css +1 -1
- package/dist/index16.css +1 -1
- package/dist/index17.css +1 -1
- package/dist/index4.css +1 -1
- package/dist/index5.css +1 -1
- package/dist/index6.css +1 -1
- package/dist/index7.css +1 -1
- package/dist/index8.css +1 -1
- package/dist/index9.css +1 -1
- package/dist/{loginHistoryDetail-B6eI-TmJ.js → loginHistoryDetail-BZVwG8m2.js} +1 -1
- package/dist/{login_history-B4Q1NCJn.js → login_history-CMZGS2PN.js} +5 -6
- package/dist/{operateHistoryDetail-CLZ9lyua.js → operateHistoryDetail-Badx3zl-.js} +1 -1
- package/dist/{operate_history-KASZ7_JO.js → operate_history-B42WNY1u.js} +5 -6
- package/dist/{setItem-BwMHXOUm.js → setItem-Blb3dox4.js} +1 -1
- package/dist/{useAppAndResource-38HCqYKa.js → useAppAndResource-DDywX2iz.js} +11 -12
- package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +3 -3
- package/dist/views/data-permission/index.vue.d.ts +3 -3
- package/dist/views/resource/components/LayoutForm.vue.d.ts +10 -0
- package/dist/views/resource/hooks/useLayoutForm.d.ts +12 -0
- package/dist/views/resource/model.d.ts +12 -0
- package/package.json +3 -3
- package/src/components/ResourceIcones/BoxColorPicker.vue +64 -8
- package/src/components/ResourceIcones/Select.vue +13 -5
- package/src/index.ts +1 -0
- package/src/views/organization/index.vue +17 -10
- package/src/views/resource/components/IconSelect.vue +6 -2
- package/src/views/resource/components/LayoutForm.vue +92 -0
- package/src/views/resource/components/ResourceEdit.vue +24 -0
- package/src/views/resource/hooks/useLayoutForm.ts +57 -0
- package/src/views/resource/hooks/useMetaForm.ts +2 -0
- package/src/views/resource/model.ts +21 -1
- package/dist/IconSelect.vue_vue_type_script_setup_true_lang-BoGxAoNd.js +0 -703
- package/dist/ResourceEdit.vue_vue_type_script_setup_true_lang-id6jZAko.js +0 -392
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/enum-CTUzwCYG.js +0 -4
- package/dist/index-53oBz1jp.js +0 -299
- package/dist/index-DVt5k9xh.js +0 -145
- package/dist/index18.css +0 -1
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { Space as R, Button as O } from "ant-design-vue/es";
|
|
2
2
|
import { PubinfoIcon as S } from "pubinfo";
|
|
3
3
|
import { PlusCircleOutlined as A } from "@ant-design/icons-vue";
|
|
4
|
-
import { defineComponent as V, ref as I, resolveDirective as N, createElementBlock as l, openBlock as n, createVNode as
|
|
4
|
+
import { defineComponent as V, ref as I, resolveDirective as N, createElementBlock as l, openBlock as n, createVNode as r, unref as t, withCtx as d, createCommentVNode as P, createBlock as k, toDisplayString as p, withDirectives as x, createElementVNode as C, createTextVNode as B } from "vue";
|
|
5
5
|
import { ProTable as M } from "@pubinfo/pro-components";
|
|
6
6
|
import { Modal as $, message as L } from "ant-design-vue";
|
|
7
|
-
import { u as q } from "./index.js";
|
|
8
|
-
import { p as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { d as
|
|
11
|
-
import { _ as H } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
+
import { u as q, _ as z } from "./index.js";
|
|
8
|
+
import { p as Q, d as j } from "./shujuquanxianzhubiaokongzhiqi-SpN37fyO.js";
|
|
9
|
+
import { _ as F } from "./createAndEditDataPermission.vue_vue_type_script_setup_true_lang-DlUIYtif.js";
|
|
10
|
+
import { d as G, a as H, A as e } from "./enum-DkSNwGbC.js";
|
|
12
11
|
import './index3.css';const J = {
|
|
13
12
|
"w-full": "",
|
|
14
13
|
"h-full": "",
|
|
@@ -42,7 +41,7 @@ import './index3.css';const J = {
|
|
|
42
41
|
fieldProps: {
|
|
43
42
|
placeholder: "请选择",
|
|
44
43
|
allowClear: !0,
|
|
45
|
-
options:
|
|
44
|
+
options: G
|
|
46
45
|
},
|
|
47
46
|
ellipsis: !0
|
|
48
47
|
}, {
|
|
@@ -65,11 +64,11 @@ import './index3.css';const J = {
|
|
|
65
64
|
async function T(s) {
|
|
66
65
|
const {
|
|
67
66
|
current: a,
|
|
68
|
-
pageSize:
|
|
67
|
+
pageSize: i,
|
|
69
68
|
type: _,
|
|
70
69
|
name: c
|
|
71
|
-
} = s, o = await
|
|
72
|
-
pageSize:
|
|
70
|
+
} = s, o = await Q({
|
|
71
|
+
pageSize: i,
|
|
73
72
|
currentPage: a,
|
|
74
73
|
doSearchTotal: !0,
|
|
75
74
|
type: _,
|
|
@@ -99,10 +98,10 @@ import './index3.css';const J = {
|
|
|
99
98
|
title: "删除",
|
|
100
99
|
content: "确定要删除该权限吗?",
|
|
101
100
|
async onOk() {
|
|
102
|
-
v(!0),
|
|
101
|
+
v(!0), j({
|
|
103
102
|
id: a?.id
|
|
104
|
-
}).then((
|
|
105
|
-
|
|
103
|
+
}).then((i) => {
|
|
104
|
+
i.success && (L.success("删除成功"), b());
|
|
106
105
|
}).finally(() => v(!1));
|
|
107
106
|
}
|
|
108
107
|
});
|
|
@@ -110,8 +109,8 @@ import './index3.css';const J = {
|
|
|
110
109
|
}
|
|
111
110
|
}
|
|
112
111
|
return (s, a) => {
|
|
113
|
-
const
|
|
114
|
-
return n(), l("div", J, [
|
|
112
|
+
const i = A, _ = O, c = S, D = R, o = N("auth");
|
|
113
|
+
return n(), l("div", J, [r(t(M), {
|
|
115
114
|
ref_key: "tableRef",
|
|
116
115
|
ref: y,
|
|
117
116
|
"row-key": "id",
|
|
@@ -126,19 +125,19 @@ import './index3.css';const J = {
|
|
|
126
125
|
type: "primary",
|
|
127
126
|
onClick: a[0] || (a[0] = (f) => m(t(e).ADD))
|
|
128
127
|
}, {
|
|
129
|
-
default: d(() => [i
|
|
128
|
+
default: d(() => [r(i), B(" " + p(t(e).ADD), 1)]),
|
|
130
129
|
_: 1
|
|
131
130
|
})), [[o, "data_permission_create"]])]),
|
|
132
131
|
bodyCell: d(({
|
|
133
132
|
column: f,
|
|
134
133
|
record: h
|
|
135
|
-
}) => [f.dataIndex === "type" ? (n(), l("span", K, p(t(
|
|
134
|
+
}) => [f.dataIndex === "type" ? (n(), l("span", K, p(t(H)[h.type]), 1)) : P("", !0), f.dataIndex === "action" ? (n(), k(D, {
|
|
136
135
|
key: 1
|
|
137
136
|
}, {
|
|
138
137
|
default: d(() => [x((n(), l("a", {
|
|
139
138
|
class: "flex items-center hover:opacity-80",
|
|
140
139
|
onClick: (E) => m(t(e).EDIT, h)
|
|
141
|
-
}, [
|
|
140
|
+
}, [r(c, {
|
|
142
141
|
name: "edit",
|
|
143
142
|
class: "text-base"
|
|
144
143
|
}), C("span", W, p(t(e).EDIT), 1)], 8, U)), [[o, "data_permission_edit"]]), x((n(), l("span", {
|
|
@@ -149,21 +148,21 @@ import './index3.css';const J = {
|
|
|
149
148
|
"hover:text-red-500": "",
|
|
150
149
|
"hover:opacity-80": "",
|
|
151
150
|
onClick: (E) => m(t(e).REMOVE, h)
|
|
152
|
-
}, [
|
|
151
|
+
}, [r(c, {
|
|
153
152
|
name: "remove",
|
|
154
153
|
class: "text-base"
|
|
155
154
|
}), C("span", Y, p(t(e).REMOVE), 1)], 8, X)), [[o, "data_permission_delete"]])]),
|
|
156
155
|
_: 2
|
|
157
156
|
}, 1024)) : P("", !0)]),
|
|
158
157
|
_: 1
|
|
159
|
-
}, 512),
|
|
158
|
+
}, 512), r(F, {
|
|
160
159
|
ref_key: "drawerRef",
|
|
161
160
|
ref: u,
|
|
162
161
|
onSubmit: b
|
|
163
162
|
}, null, 512)]);
|
|
164
163
|
};
|
|
165
164
|
}
|
|
166
|
-
}),
|
|
165
|
+
}), pe = /* @__PURE__ */ z(Z, [["__scopeId", "data-v-b32ad41d"]]);
|
|
167
166
|
export {
|
|
168
|
-
|
|
167
|
+
pe as default
|
|
169
168
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { useSettingsStore as m, PubinfoIcon as f } from "pubinfo";
|
|
2
2
|
import { defineComponent as u, ref as v, reactive as b, createElementBlock as i, openBlock as l, createElementVNode as e, createVNode as g, Fragment as _, renderList as y, unref as r, normalizeClass as d, toDisplayString as S } from "vue";
|
|
3
3
|
import { message as k } from "ant-design-vue";
|
|
4
|
-
import "./index.js";
|
|
5
|
-
import { p as
|
|
6
|
-
import
|
|
7
|
-
import './index6.css';const w = {
|
|
4
|
+
import { _ as C } from "./index.js";
|
|
5
|
+
import { p as h } from "./xitongpeizhifuwu-BoCbGEk7.js";
|
|
6
|
+
import './index5.css';const w = {
|
|
8
7
|
"w-full": "",
|
|
9
8
|
"h-full": "",
|
|
10
9
|
"p-10px": ""
|
|
@@ -50,7 +49,7 @@ import './index6.css';const w = {
|
|
|
50
49
|
menuMode: s
|
|
51
50
|
}
|
|
52
51
|
});
|
|
53
|
-
|
|
52
|
+
h({ content: t }).then((n) => {
|
|
54
53
|
n.success && k.success("设置成功");
|
|
55
54
|
});
|
|
56
55
|
}
|
|
@@ -92,7 +91,7 @@ import './index6.css';const w = {
|
|
|
92
91
|
]);
|
|
93
92
|
};
|
|
94
93
|
}
|
|
95
|
-
}),
|
|
94
|
+
}), A = /* @__PURE__ */ C(M, [["__scopeId", "data-v-26087915"]]);
|
|
96
95
|
export {
|
|
97
|
-
|
|
96
|
+
A as default
|
|
98
97
|
};
|
|
@@ -7,7 +7,7 @@ import { useAuth as j, PubinfoIcon as I, RESOURCE_TYPE as T } from "pubinfo";
|
|
|
7
7
|
import "./index.js";
|
|
8
8
|
import { b as G, c as J } from "./ziyuanjiekou-BC65-bFK.js";
|
|
9
9
|
import { _ as Q } from "./ImportExport.vue_vue_type_script_setup_true_lang-BzdP0ADd.js";
|
|
10
|
-
import { _ as W } from "./ResourceEdit.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as W } from "./ResourceEdit.vue_vue_type_script_setup_true_lang-BLqs77A8.js";
|
|
11
11
|
import { _ as Z } from "./RoleRelation.vue_vue_type_script_setup_true_lang-BjEOlM2g.js";
|
|
12
12
|
import { r as L, A as t, R as ee } from "./enum-CjyX3J0o.js";
|
|
13
13
|
import { c as te } from "./cloneDeep-BOLZdR62.js";
|