@pubinfo/module-rbac 2.0.4 → 2.0.6
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/ComponentSelect-HWE3OTC2.js +2 -0
- package/dist/{ComponentSelect-Bhl9ciUm.js → ComponentSelect-lvLZA7v3.js} +866 -866
- package/dist/DynamicRoutesForm--yCRC-TS.js +4 -0
- package/dist/{DynamicRoutesForm-CE2RPs7y.js → DynamicRoutesForm-CjrPnJvX.js} +28 -28
- package/dist/{IconSelect-BeZfjsl0.js → IconSelect-B0CeuV_a.js} +1 -1
- package/dist/{IconSelect-BMlRIxBx.js → IconSelect-BRVj6gBy.js} +18 -18
- package/dist/{ImportExport-D8uzaOMz.js → ImportExport-BNLVq0fU.js} +1 -1
- package/dist/{ImportExport-ByRTssxP.js → ImportExport-HsLm0AJH.js} +63 -63
- package/dist/{ResourceEdit-BSaHxlbT.js → ResourceEdit-DGiYedP0.js} +100 -100
- package/dist/{ResourceEdit-Beu0QLBf.js → ResourceEdit-DZP72kyb.js} +4 -4
- package/dist/{ResourceRelation-CKolCnHC.js → ResourceRelation-BxGFnyVc.js} +1 -1
- package/dist/{ResourceRelation-BRseTUw2.js → ResourceRelation-DCjMjLpg.js} +1 -1
- package/dist/{ResourceRelation-B_4woLmP.js → ResourceRelation-DhML3AFe.js} +5 -5
- package/dist/ResourceRelation.css +1 -1
- package/dist/ResourceRelation2.css +1 -1
- package/dist/{ResourceSelector-ConJ30Jd.js → ResourceSelector-BAZ-oIRV.js} +46 -46
- package/dist/ResourceSelector.css +1 -1
- package/dist/RoleRelation-Bxyd5aMn.js +2 -0
- package/dist/{RoleRelation-DXZxscPY.js → RoleRelation-CcgE6TEG.js} +1 -1
- package/dist/RoleSelector-QpcO4KoV.js +279 -0
- package/dist/{TenantEdit-B5_v0C8I.js → TenantEdit-CRhsWhhw.js} +19 -19
- package/dist/{TenantEdit-C28473_2.js → TenantEdit-egH6GbbS.js} +2 -2
- package/dist/UserAuthorization-B0lHeayD.js +4 -0
- package/dist/{UserAuthorization-DTgmWH5Q.js → UserAuthorization-D-LcHhsj.js} +5 -5
- package/dist/UserAuthorization.css +1 -1
- package/dist/{UserEdit-EOTBOUZu.js → UserEdit-6MPOr7VK.js} +23 -23
- package/dist/{UserEdit-CyCXz7g3.js → UserEdit-DGefh7mk.js} +1 -1
- package/dist/{blackWhiteList-DQALdBZf.js → blackWhiteList-CFnWvnIK.js} +8 -8
- package/dist/blackWhiteList.css +1 -1
- package/dist/{breadcrumb_setting-D3UjJYhA.js → breadcrumb_setting-BbdvbC4M.js} +27 -27
- package/dist/breadcrumb_setting.css +1 -1
- package/dist/components/ResourceSelector/hooks/useAppAndResource.d.ts +6 -15
- package/dist/components/RoleSelector/useRole.d.ts +4 -68
- package/dist/{createAndEditDataPermission-DnAcKvaE.js → createAndEditDataPermission-39GKHtzB.js} +50 -50
- package/dist/{createAndEditDataPermission-CAaxueTy.js → createAndEditDataPermission-BBSBwjG4.js} +2 -2
- package/dist/createAndEditDataPermission.css +1 -1
- package/dist/{data-permission-CLnnLoPt.js → data-permission-35wTSMh2.js} +3 -3
- package/dist/data-permission.css +1 -1
- package/dist/{dictionary-BFM0Mx0P.js → dictionary-BOuYUlfU.js} +1 -1
- package/dist/{drawerBlackWhiteList-BYACpO3D.js → drawerBlackWhiteList-BZccd_CZ.js} +8 -8
- package/dist/drawerBlackWhiteList-Bz2trn-w.js +3 -0
- package/dist/{drawerDictionary-BUBLrbTi.js → drawerDictionary-C2tWu1lt.js} +11 -11
- package/dist/{drawerDictionary-Bk0BgL7i.js → drawerDictionary-Cx-QoHn4.js} +1 -1
- package/dist/{drawerDictionaryItem-CfOPleN6.js → drawerDictionaryItem-C4mPbQEA.js} +12 -12
- package/dist/{drawerDictionaryItem-Dy2T56AH.js → drawerDictionaryItem-DhwinX1a.js} +1 -1
- package/dist/{drawerGroup-ZyzAWXOl.js → drawerGroup-BUx0cx6i.js} +1 -1
- package/dist/{drawerGroup-Bly3CWfM.js → drawerGroup-DFeiJOBA.js} +9 -9
- package/dist/{drawerOrganization-BhO5-PP5.js → drawerOrganization-BEdhq7Z2.js} +26 -26
- package/dist/{drawerOrganization-HSVB8JzO.js → drawerOrganization-ijhmuc8a.js} +1 -1
- package/dist/{drawerPosition-vsuG4JYe.js → drawerPosition-shL7hfwJ.js} +1 -1
- package/dist/{drawerPosition-CM0NBfoR.js → drawerPosition-xI2PyE2x.js} +14 -14
- package/dist/{drawerRegion-CGySAL6D.js → drawerRegion-BwWGUHaY.js} +16 -16
- package/dist/{drawerRegion-BXZ751ge.js → drawerRegion-Dl1qXPXz.js} +1 -1
- package/dist/{drawerRole-BE0utb7R.js → drawerRole-C1I6-hhT.js} +8 -8
- package/dist/{drawerRole-CwilBmOE.js → drawerRole-CZpTYFS3.js} +10 -10
- package/dist/drawerRole-CgTIHRCA.js +3 -0
- package/dist/{drawerRole-BVeaz3Yb.js → drawerRole-Cmrob1UJ.js} +2 -2
- package/dist/drawerRole-D2UxgYXQ.js +215 -0
- package/dist/{drawerRole-tan379DU.js → drawerRole-DynkfVMp.js} +2 -2
- package/dist/{group-B1gGoTD5.js → group-DOmpCW1J.js} +8 -8
- package/dist/group.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +78 -78
- package/dist/{itemlist-uCHnA_We.js → itemlist-QBWRLjTd.js} +1 -1
- package/dist/{layout_setting-DMvxwL31.js → layout_setting-BZt_X9vU.js} +17 -17
- package/dist/layout_setting.css +1 -1
- package/dist/{login_history-BexfCN-1.js → login_history-NTSjr6e5.js} +3 -3
- package/dist/login_history.css +1 -1
- package/dist/{menu_setting-BXR3EAXD.js → menu_setting-CkoDAYJD.js} +38 -38
- package/dist/menu_setting.css +1 -1
- package/dist/{operate_history-hXxS3atI.js → operate_history-CXoZlYaT.js} +3 -3
- package/dist/operate_history.css +1 -1
- package/dist/{organization-cvYm9P9w.js → organization-DmGbwqHI.js} +2642 -2642
- package/dist/organization.css +1 -1
- package/dist/{other_setting-DjVQevBW.js → other_setting-BqWwlJ2u.js} +64 -64
- package/dist/other_setting.css +1 -1
- package/dist/{page_animation_setting-DgHHmFEc.js → page_animation_setting-g3bkn7vf.js} +48 -48
- package/dist/page_animation_setting.css +1 -1
- package/dist/{page_w_setting-B_im6vBo.js → page_w_setting-Db9pP86g.js} +17 -17
- package/dist/page_w_setting.css +1 -1
- package/dist/{position-BkpbHXYP.js → position-Bq4B3_PK.js} +1 -1
- package/dist/{region-DVkbjI9t.js → region-DfxAE8eK.js} +4 -4
- package/dist/{resource-UmUb9yZa.js → resource-rP8m6eP_.js} +8 -8
- package/dist/{role-B2tKqUvP.js → role-DfWw95NS.js} +3 -3
- package/dist/{role_group-DqzFHwKx.js → role_group-B4J4RWQt.js} +2 -2
- package/dist/{setItem-9ZBl0BlF.js → setItem-C_jx_5fd.js} +1 -1
- package/dist/{setItem-BenNySNl.js → setItem-DnJuD3C0.js} +32 -32
- package/dist/setItem.css +1 -1
- package/dist/stores/view.d.ts +21 -126
- package/dist/{tabbar_setting-HFHrLVgt.js → tabbar_setting-DBPggZ6Q.js} +33 -33
- package/dist/tabbar_setting.css +1 -1
- package/dist/{tenant-C8kVbfgt.js → tenant-Dbydqvrz.js} +2 -2
- package/dist/{theme_setting-QgpSGXxq.js → theme_setting-3l5L7tXt.js} +5 -5
- package/dist/theme_setting.css +1 -1
- package/dist/{toolbar_setting-Dc_h2Mfe.js → toolbar_setting-rv8EGChc.js} +30 -30
- package/dist/toolbar_setting.css +1 -1
- package/dist/{user-Dub4HhCZ.js → user-DQE6N5EP.js} +9 -9
- package/dist/user.css +1 -1
- package/dist/utils/routeSystem.d.ts +21 -126
- package/dist/views/blackWhiteList/index.vue.d.ts +40 -40
- package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +4 -4
- package/dist/views/data-permission/index.vue.d.ts +44 -44
- package/dist/views/dictionary/index.vue.d.ts +40 -40
- package/dist/views/dictionary/itemlist.vue.d.ts +40 -40
- package/dist/views/group/index.vue.d.ts +40 -40
- package/dist/views/log_center/components/browserType.vue.d.ts +2 -2
- package/dist/views/log_center/components/loginHistoryDetail.vue.d.ts +2 -2
- package/dist/views/log_center/components/operateHistoryDetail.vue.d.ts +2 -2
- package/dist/views/log_center/login_history.vue.d.ts +40 -40
- package/dist/views/log_center/operate_history.vue.d.ts +40 -40
- package/dist/views/position/index.vue.d.ts +40 -40
- package/dist/views/region/index.vue.d.ts +40 -40
- package/dist/views/resource/hooks/useMetaForm.d.ts +1 -8
- package/dist/views/resource/index.vue.d.ts +40 -40
- package/dist/views/role/components/ResourceRelation.vue.d.ts +40 -40
- package/dist/views/role/index.vue.d.ts +80 -80
- package/dist/views/role_group/index.vue.d.ts +40 -40
- package/dist/views/tenant/index.vue.d.ts +40 -40
- package/dist/views/user/index.vue.d.ts +40 -40
- package/dist/{watermark_setting-BcWy6p2_.js → watermark_setting-B_jC4rjv.js} +106 -106
- package/dist/watermark_setting.css +1 -1
- package/package.json +3 -3
- package/src/assets/styles/vxe-table.css +4 -4
- package/dist/ComponentSelect-Bhwuc86o.js +0 -2
- package/dist/DynamicRoutesForm-D35jFnxF.js +0 -4
- package/dist/RoleRelation-YaSQQxQ2.js +0 -2
- package/dist/RoleSelector-DOt30OLy.js +0 -279
- package/dist/UserAuthorization-C4SLMNmh.js +0 -4
- package/dist/drawerBlackWhiteList-C3xS7Kxx.js +0 -3
- package/dist/drawerRole-CzTW_I2H.js +0 -3
- package/dist/drawerRole-E1jHM3v-.js +0 -215
|
@@ -2,27 +2,27 @@ import { am as e } from "./index.js";
|
|
|
2
2
|
import { b as t } from "./_plugin-vue_export-helper-DziIhCOI.js";
|
|
3
3
|
import { b as n } from "./enum-B1DCzyaW.js";
|
|
4
4
|
import { PubinfoIcon as r } from "pubinfo";
|
|
5
|
-
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f,
|
|
6
|
-
import { DownOutlined as
|
|
7
|
-
import { Form as
|
|
8
|
-
import { Button as
|
|
9
|
-
import './ResourceSelector.css';const
|
|
5
|
+
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, isRef as p, mergeModels as m, openBlock as h, ref as g, renderList as ee, resolveComponent as _, toDisplayString as v, unref as y, useModel as b, watch as x, withCtx as S, withModifiers as te } from "vue";
|
|
6
|
+
import { DownOutlined as ne } from "@ant-design/icons-vue";
|
|
7
|
+
import { Form as C } from "ant-design-vue";
|
|
8
|
+
import { Button as re, Dropdown as ie, Menu as ae, MenuItem as w, Modal as T, Tag as E, Tooltip as D, Tree as O } from "ant-design-vue/es";
|
|
9
|
+
import './ResourceSelector.css';const k = { class: "h-340px border-1px border-solid flex flex-row border_color" }, A = { class: "w-360px flex flex-col" }, oe = { class: "w-full h-34px bg-[#F2F3F5] flex px-15px items-center justify-between text-[#1D2129] dark:bg-[#1D2129] dark:text-[#F2F3F5]" }, se = { class: "flex-1 overflow-auto py-10px pr-10px" }, ce = { class: "flex items-center" }, j = { class: "mx-4px" }, M = ["onClick"], N = ["onClick"], P = ["onClick"], F = ["onClick"], I = { class: "flex-1 flex flex-col border-solid border-0px border-l-1px border_color" }, L = { class: "flex-1 p-10px overflow-auto" };
|
|
10
10
|
var R = /* @__PURE__ */ f({
|
|
11
11
|
name: "ResourceSelector",
|
|
12
12
|
__name: "index",
|
|
13
|
-
props: /* @__PURE__ */
|
|
13
|
+
props: /* @__PURE__ */ m({
|
|
14
14
|
title: { default: "资源选择" },
|
|
15
15
|
mode: { default: n.ROLE }
|
|
16
16
|
}, {
|
|
17
17
|
open: { type: Boolean },
|
|
18
18
|
openModifiers: {}
|
|
19
19
|
}),
|
|
20
|
-
emits: /* @__PURE__ */
|
|
21
|
-
setup(t, { expose: f, emit:
|
|
22
|
-
let _ = t, R =
|
|
20
|
+
emits: /* @__PURE__ */ m(["select"], ["update:open"]),
|
|
21
|
+
setup(t, { expose: f, emit: m }) {
|
|
22
|
+
let _ = t, R = m, z = a(() => _.mode === n.DATA_PERMISSION), B = g({
|
|
23
23
|
checked: [],
|
|
24
24
|
halfChecked: []
|
|
25
|
-
}), V =
|
|
25
|
+
}), V = g([]), H = g([]), U = g({}), W = g(0), G = g([]), K = b(t, "open"), q = e(K);
|
|
26
26
|
x(() => B.value.checked, (e) => {
|
|
27
27
|
H.value = e.reduce((e, t) => {
|
|
28
28
|
let n = {
|
|
@@ -32,10 +32,10 @@ var R = /* @__PURE__ */ f({
|
|
|
32
32
|
return e.push(n), e;
|
|
33
33
|
}, []);
|
|
34
34
|
}, { deep: !0 });
|
|
35
|
-
function
|
|
35
|
+
function le(e, t, n) {
|
|
36
36
|
B.value.checked = [...e], G.value = t, U.value = n, W.value = Object.keys(U.value).length, t[0]?.id && (V.value = [t[0]?.id]), q(!0);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function ue(e, t) {
|
|
39
39
|
if (!z.value) {
|
|
40
40
|
if (t.checked) {
|
|
41
41
|
function e(t) {
|
|
@@ -52,7 +52,7 @@ var R = /* @__PURE__ */ f({
|
|
|
52
52
|
B.value.checked = Array.from(new Set(B.value.checked));
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function de() {
|
|
56
56
|
B.value.checked = [];
|
|
57
57
|
}
|
|
58
58
|
function J(e) {
|
|
@@ -81,7 +81,7 @@ var R = /* @__PURE__ */ f({
|
|
|
81
81
|
}
|
|
82
82
|
return n;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function fe(e) {
|
|
85
85
|
let t = $(e.id);
|
|
86
86
|
t.length > 0 && (t.push(e.id), t.forEach((e) => {
|
|
87
87
|
let t = B.value.checked.findIndex((t) => t === e);
|
|
@@ -95,14 +95,14 @@ var R = /* @__PURE__ */ f({
|
|
|
95
95
|
t >= 0 && B.value.checked.splice(t, 1);
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function pe(e) {
|
|
99
99
|
let t = Q(e.id);
|
|
100
100
|
t.length > 0 && (t.push(e.id), t.forEach((e) => {
|
|
101
101
|
let t = B.value.checked.findIndex((t) => t === e);
|
|
102
102
|
t < 0 && B.value.checked.push(e);
|
|
103
103
|
}));
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function me(e) {
|
|
106
106
|
let t = Q(e.id);
|
|
107
107
|
t.forEach((e) => {
|
|
108
108
|
let t = B.value.checked.findIndex((t) => t === e);
|
|
@@ -117,13 +117,13 @@ var R = /* @__PURE__ */ f({
|
|
|
117
117
|
let t = X(G.value, e), n = t.indexOf(e);
|
|
118
118
|
return t.splice(n, 1), t?.map((e) => Y(G.value, e))?.filter((e) => z.value ? !e.disabled : !0)?.map((e) => e.id);
|
|
119
119
|
}
|
|
120
|
-
let { onFieldChange:
|
|
121
|
-
function
|
|
122
|
-
R("select", H.value),
|
|
120
|
+
let { onFieldChange: he } = C.useInjectFormItemContext();
|
|
121
|
+
function ge() {
|
|
122
|
+
R("select", H.value), he(), q(!1);
|
|
123
123
|
}
|
|
124
|
-
return f({ open:
|
|
125
|
-
let n = r, a =
|
|
126
|
-
return
|
|
124
|
+
return f({ open: le }), (e, t) => {
|
|
125
|
+
let n = r, a = ne, f = w, m = ae, g = ie, _ = O, b = E, x = D, C = re, R = T;
|
|
126
|
+
return h(), o(R, {
|
|
127
127
|
open: K.value,
|
|
128
128
|
"onUpdate:open": t[4] ||= (e) => K.value = e,
|
|
129
129
|
class: "custom_modal",
|
|
@@ -131,23 +131,23 @@ var R = /* @__PURE__ */ f({
|
|
|
131
131
|
"mask-closable": !1,
|
|
132
132
|
width: 750
|
|
133
133
|
}, {
|
|
134
|
-
footer: S(() => [d(
|
|
134
|
+
footer: S(() => [d(C, { onClick: t[3] ||= (e) => y(q)(!1) }, {
|
|
135
135
|
default: S(() => t[8] ||= [u(" 取消 ")]),
|
|
136
136
|
_: 1,
|
|
137
137
|
__: [8]
|
|
138
|
-
}), d(
|
|
138
|
+
}), d(C, {
|
|
139
139
|
type: "primary",
|
|
140
|
-
onClick:
|
|
140
|
+
onClick: ge
|
|
141
141
|
}, {
|
|
142
142
|
default: S(() => t[9] ||= [u(" 确定 ")]),
|
|
143
143
|
_: 1,
|
|
144
144
|
__: [9]
|
|
145
145
|
})]),
|
|
146
|
-
default: S(() => [l("div",
|
|
147
|
-
"checked-keys": B
|
|
148
|
-
"onUpdate:checkedKeys": t[1] ||= (e) => B.value = e,
|
|
149
|
-
"expanded-keys": V
|
|
150
|
-
"onUpdate:expandedKeys": t[2] ||= (e) => V.value = e,
|
|
146
|
+
default: S(() => [l("div", k, [l("div", A, [l("div", oe, [t[5] ||= l("div", { class: "" }, " 全部资源 ", -1), l("div", null, v(y(B).checked.length) + "/" + v(y(W)), 1)]), l("div", se, [d(_, {
|
|
147
|
+
"checked-keys": y(B),
|
|
148
|
+
"onUpdate:checkedKeys": t[1] ||= (e) => p(B) ? B.value = e : null,
|
|
149
|
+
"expanded-keys": y(V),
|
|
150
|
+
"onUpdate:expandedKeys": t[2] ||= (e) => p(V) ? V.value = e : null,
|
|
151
151
|
class: "h-full custom_tree",
|
|
152
152
|
"block-node": "",
|
|
153
153
|
checkable: "",
|
|
@@ -157,30 +157,30 @@ var R = /* @__PURE__ */ f({
|
|
|
157
157
|
title: "name",
|
|
158
158
|
key: "id"
|
|
159
159
|
},
|
|
160
|
-
"tree-data": G
|
|
161
|
-
onCheck:
|
|
160
|
+
"tree-data": y(G),
|
|
161
|
+
onCheck: ue
|
|
162
162
|
}, {
|
|
163
|
-
title: S((e) => [l("div",
|
|
164
|
-
e.checked ? (
|
|
163
|
+
title: S((e) => [l("div", ce, [
|
|
164
|
+
e.checked ? (h(), o(n, {
|
|
165
165
|
key: 0,
|
|
166
166
|
name: "zy_checked",
|
|
167
167
|
size: "24px"
|
|
168
|
-
})) : (
|
|
168
|
+
})) : (h(), o(n, {
|
|
169
169
|
key: 1,
|
|
170
170
|
name: "zy_default",
|
|
171
171
|
size: "24px"
|
|
172
172
|
})),
|
|
173
173
|
l("span", j, v(e.name), 1),
|
|
174
174
|
s(" \"操作\"功能显示逻辑:角色模式下非叶子节点时显示; 数据权限模式下非叶子节点 且 数据disabled字段不为true时显示 "),
|
|
175
|
-
!e.leaf && (!z
|
|
175
|
+
!e.leaf && (!y(z) || !e.disabled) ? (h(), o(g, {
|
|
176
176
|
key: 2,
|
|
177
177
|
class: "bg-[#e8f3ff] dark:bg-[#141414]",
|
|
178
178
|
trigger: ["click"]
|
|
179
179
|
}, {
|
|
180
|
-
overlay: S(() => [d(
|
|
180
|
+
overlay: S(() => [d(m, null, {
|
|
181
181
|
default: S(() => [
|
|
182
182
|
d(f, { key: "0" }, {
|
|
183
|
-
default: S(() => [l("a", { onClick: (t) =>
|
|
183
|
+
default: S(() => [l("a", { onClick: (t) => fe(e) }, "选中所有下级", 8, M)]),
|
|
184
184
|
_: 2
|
|
185
185
|
}, 1024),
|
|
186
186
|
d(f, { key: "1" }, {
|
|
@@ -188,11 +188,11 @@ var R = /* @__PURE__ */ f({
|
|
|
188
188
|
_: 2
|
|
189
189
|
}, 1024),
|
|
190
190
|
d(f, { key: "3" }, {
|
|
191
|
-
default: S(() => [l("a", { onClick: (t) =>
|
|
191
|
+
default: S(() => [l("a", { onClick: (t) => pe(e) }, "选中下一级", 8, P)]),
|
|
192
192
|
_: 2
|
|
193
193
|
}, 1024),
|
|
194
194
|
d(f, { key: "4" }, {
|
|
195
|
-
default: S(() => [l("a", { onClick: (t) =>
|
|
195
|
+
default: S(() => [l("a", { onClick: (t) => me(e) }, "取消下一级", 8, F)]),
|
|
196
196
|
_: 2
|
|
197
197
|
}, 1024)
|
|
198
198
|
]),
|
|
@@ -201,7 +201,7 @@ var R = /* @__PURE__ */ f({
|
|
|
201
201
|
default: S(() => [l("a", {
|
|
202
202
|
class: "ant-dropdown-link whitespace-nowrap",
|
|
203
203
|
style: { padding: "2px 4px" },
|
|
204
|
-
onClick: t[0] ||=
|
|
204
|
+
onClick: t[0] ||= te(() => {}, ["prevent"])
|
|
205
205
|
}, [t[6] ||= l("span", { class: "text-base" }, "操作", -1), d(a, { style: { fontSize: "10px" } })])]),
|
|
206
206
|
_: 2
|
|
207
207
|
}, 1024)) : s("v-if", !0)
|
|
@@ -213,11 +213,11 @@ var R = /* @__PURE__ */ f({
|
|
|
213
213
|
"tree-data"
|
|
214
214
|
])])]), l("div", I, [l("div", { class: "w-full h-34px bg-[#F2F3F5] flex px-15px items-center justify-between text-[#1D2129] dark:bg-[#1D2129] dark:text-[#F2F3F5]" }, [t[7] ||= l("div", { class: "" }, " 已选资源 ", -1), l("div", {
|
|
215
215
|
class: "cursor-pointer text-[#165DFF]",
|
|
216
|
-
onClick:
|
|
217
|
-
}, " 清空 ")]), l("div", L, [(
|
|
216
|
+
onClick: de
|
|
217
|
+
}, " 清空 ")]), l("div", L, [(h(!0), c(i, null, ee(y(H), (e) => (h(), c("div", {
|
|
218
218
|
key: e.id,
|
|
219
219
|
class: "inline-block mb-6px max-w-300px"
|
|
220
|
-
}, [e.name?.length > 20 ? (
|
|
220
|
+
}, [e.name?.length > 20 ? (h(), o(x, {
|
|
221
221
|
key: 0,
|
|
222
222
|
title: e.name
|
|
223
223
|
}, {
|
|
@@ -230,7 +230,7 @@ var R = /* @__PURE__ */ f({
|
|
|
230
230
|
_: 2
|
|
231
231
|
}, 1032, ["onClose"])]),
|
|
232
232
|
_: 2
|
|
233
|
-
}, 1032, ["title"])) : (
|
|
233
|
+
}, 1032, ["title"])) : (h(), o(b, {
|
|
234
234
|
key: 1,
|
|
235
235
|
class: "custom_tag bg-[#e8f3ff] dark:bg-[#141414]",
|
|
236
236
|
closable: "",
|
|
@@ -243,5 +243,5 @@ var R = /* @__PURE__ */ f({
|
|
|
243
243
|
}, 8, ["open", "title"]);
|
|
244
244
|
};
|
|
245
245
|
}
|
|
246
|
-
}), z = /* @__PURE__ */ t(R, [["__scopeId", "data-v-
|
|
246
|
+
}), z = /* @__PURE__ */ t(R, [["__scopeId", "data-v-70b6311e"]]);
|
|
247
247
|
export { z as b };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.border_color[data-v-
|
|
1
|
+
.border_color[data-v-70b6311e]{--un-border-opacity:1;border-color:rgb(229 230 235/var(--un-border-opacity))}[data-theme=dark] .border_color[data-v-70b6311e]{--un-border-opacity:.12;border-color:rgb(253 253 253/var(--un-border-opacity))}.border_c[data-v-70b6311e]{--un-border-opacity:1;border-width:1px;border-color:rgb(204 204 204/var(--un-border-opacity));border-style:dashed;border-radius:10px}[data-v-70b6311e] .ant-dropdown-link{--un-scale-x:.7;--un-scale-y:.7;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z));border-radius:.125rem;padding:.25rem .375rem;font-size:.75rem;line-height:1rem}.custom_modal[data-v-70b6311e] .ant-modal-content{border-radius:0;padding:0}.custom_modal[data-v-70b6311e] .ant-modal-header{--un-border-opacity:1;--un-border-bottom-opacity:var(--un-border-opacity);border-bottom-width:1px;border-bottom-color:rgb(229 230 235/var(--un-border-bottom-opacity));border-style:solid;margin-bottom:0;padding:.75rem 1rem}.custom_modal[data-v-70b6311e] .ant-modal-title{--un-text-opacity:1;color:rgb(29 33 41/var(--un-text-opacity));font-size:1rem;font-weight:500;line-height:1.5rem}.custom_modal[data-v-70b6311e] .ant-modal-body{padding:1rem}.custom_modal[data-v-70b6311e] .ant-modal-footer{--un-border-opacity:1;--un-border-top-opacity:var(--un-border-opacity);border-top-width:1px;border-top-color:rgb(229 230 235/var(--un-border-top-opacity));border-style:solid;padding:1rem}.custom_modal[data-v-70b6311e] .ant-modal-footer .ant-btn{border-radius:.125rem}[data-v-70b6311e] .ant-tree-checkbox{margin-top:0;margin-right:2px}[data-v-70b6311e] .ant-tree-checkbox+span .ant-tree-iconEle{margin-right:.25rem}.custom_tag[data-v-70b6311e]{border-width:0;border-radius:.125rem;padding:3px .5rem}.custom_tag[data-v-70b6311e] .ant-tag-close-icon{--un-text-opacity:.6;color:rgb(22 93 255/var(--un-text-opacity))}.custom_tag[data-v-70b6311e] .ant-tag-close-icon:hover{--un-text-opacity:1;color:rgb(22 93 255/var(--un-text-opacity))}
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
import { $ as e, U as t, V as n, am as r } from "./index.js";
|
|
2
|
+
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, guardReactiveProps as p, isRef as m, mergeModels as h, mergeProps as g, normalizeProps as _, normalizeStyle as v, onMounted as y, openBlock as b, reactive as x, ref as S, renderList as C, resolveComponent as w, toDisplayString as T, unref as E, useModel as D, vShow as O, withCtx as k, withDirectives as A } from "vue";
|
|
3
|
+
import { CloseOutlined as j, SearchOutlined as M } from "@ant-design/icons-vue";
|
|
4
|
+
import { Card as N, Checkbox as P, CheckboxGroup as F, Modal as I, Spin as L, Tooltip as R, theme as z } from "ant-design-vue";
|
|
5
|
+
import { Input as B, Select as V, SelectOption as H, Tooltip as U } from "ant-design-vue/es";
|
|
6
|
+
const W = { key: 1 };
|
|
7
|
+
var G = /* @__PURE__ */ f({
|
|
8
|
+
name: "RoleSearch",
|
|
9
|
+
__name: "RoleSearch",
|
|
10
|
+
props: /* @__PURE__ */ h({ group: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: !1
|
|
13
|
+
} }, {
|
|
14
|
+
modelValue: {},
|
|
15
|
+
modelModifiers: {},
|
|
16
|
+
groupId: {},
|
|
17
|
+
groupIdModifiers: {}
|
|
18
|
+
}),
|
|
19
|
+
emits: /* @__PURE__ */ h(["select"], ["update:modelValue", "update:groupId"]),
|
|
20
|
+
setup(e, { emit: n }) {
|
|
21
|
+
let r = e, a = n, s = D(e, "modelValue"), l = D(e, "groupId"), f = S([]);
|
|
22
|
+
async function p() {
|
|
23
|
+
let e = await t({ name: "" });
|
|
24
|
+
e.success && (f.value = e.data ?? []);
|
|
25
|
+
}
|
|
26
|
+
return y(() => {
|
|
27
|
+
r.group && p();
|
|
28
|
+
}), (e, t) => {
|
|
29
|
+
let n = H, r = U, p = V, m = B;
|
|
30
|
+
return b(), o(m, {
|
|
31
|
+
value: s.value,
|
|
32
|
+
"onUpdate:value": t[2] ||= (e) => s.value = e,
|
|
33
|
+
placeholder: "请输入",
|
|
34
|
+
"allow-clear": ""
|
|
35
|
+
}, {
|
|
36
|
+
addonBefore: k(() => [e.group ? (b(), o(p, {
|
|
37
|
+
key: 0,
|
|
38
|
+
value: l.value,
|
|
39
|
+
"onUpdate:value": t[0] ||= (e) => l.value = e,
|
|
40
|
+
style: { width: "90px" },
|
|
41
|
+
onChange: t[1] ||= (e) => a("select", e)
|
|
42
|
+
}, {
|
|
43
|
+
default: k(() => [d(n, { value: "" }, {
|
|
44
|
+
default: k(() => t[3] ||= [u(" 全部 ")]),
|
|
45
|
+
_: 1,
|
|
46
|
+
__: [3]
|
|
47
|
+
}), (b(!0), c(i, null, C(E(f), (e) => (b(), o(n, {
|
|
48
|
+
key: e.id,
|
|
49
|
+
value: e.id
|
|
50
|
+
}, {
|
|
51
|
+
default: k(() => [d(r, { title: e.name }, {
|
|
52
|
+
default: k(() => [u(T(e.name), 1)]),
|
|
53
|
+
_: 2
|
|
54
|
+
}, 1032, ["title"])]),
|
|
55
|
+
_: 2
|
|
56
|
+
}, 1032, ["value"]))), 128))]),
|
|
57
|
+
_: 1
|
|
58
|
+
}, 8, ["value"])) : (b(), c("div", W, " 全部 "))]),
|
|
59
|
+
suffix: k(() => [d(E(M))]),
|
|
60
|
+
_: 1
|
|
61
|
+
}, 8, ["value"]);
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
}), K = G, q = /* @__PURE__ */ f({
|
|
65
|
+
name: "TooltipLabel",
|
|
66
|
+
inheritAttrs: !1,
|
|
67
|
+
__name: "TooltipLabel",
|
|
68
|
+
props: {
|
|
69
|
+
name: {},
|
|
70
|
+
size: { default: 21 }
|
|
71
|
+
},
|
|
72
|
+
setup(e) {
|
|
73
|
+
return (e, t) => (e.name || "").length > e.size ? (b(), o(E(R), {
|
|
74
|
+
key: 0,
|
|
75
|
+
title: e.name
|
|
76
|
+
}, {
|
|
77
|
+
default: k(() => [l("span", _(p(e.$attrs)), T(`${e.name?.slice(0, e.size)}...`), 17)]),
|
|
78
|
+
_: 1
|
|
79
|
+
}, 8, ["title"])) : (b(), c("span", _(g({ key: 1 }, e.$attrs)), T(e.name), 17));
|
|
80
|
+
}
|
|
81
|
+
}), J = q;
|
|
82
|
+
function Y() {
|
|
83
|
+
let [t, n] = r(!1), i = S([]);
|
|
84
|
+
async function a() {
|
|
85
|
+
try {
|
|
86
|
+
n(!0);
|
|
87
|
+
let t = await e();
|
|
88
|
+
t.success && (i.value = t.data ?? []);
|
|
89
|
+
} finally {
|
|
90
|
+
n(!1);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
loading: t,
|
|
95
|
+
setLoading: n,
|
|
96
|
+
roles: i,
|
|
97
|
+
getData: a
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
function X() {
|
|
101
|
+
let [e, t] = r(!1), i = S([]);
|
|
102
|
+
async function a(e) {
|
|
103
|
+
try {
|
|
104
|
+
t(!0);
|
|
105
|
+
let r = await n({ id: e });
|
|
106
|
+
r.success && (i.value = r.data?.roles ?? []);
|
|
107
|
+
} finally {
|
|
108
|
+
t(!1);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
return {
|
|
112
|
+
loading: e,
|
|
113
|
+
setLoading: t,
|
|
114
|
+
roles: i,
|
|
115
|
+
getData: a
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
const Z = { class: "h-full flex" }, Q = { class: "p-2 flex flex-col h-full gap-2" }, $ = { class: "flex-1 overflow-y-auto overflow-x-hidden" }, ee = {
|
|
119
|
+
key: 0,
|
|
120
|
+
class: "flex items-center justify-center size-full"
|
|
121
|
+
}, te = { class: "gap-1 p-2 h-full overflow-y-auto" };
|
|
122
|
+
var ne = /* @__PURE__ */ f({
|
|
123
|
+
name: "RoleSelector",
|
|
124
|
+
__name: "RoleSelector",
|
|
125
|
+
props: /* @__PURE__ */ h({ group: {
|
|
126
|
+
type: Boolean,
|
|
127
|
+
default: !1
|
|
128
|
+
} }, {
|
|
129
|
+
open: { type: Boolean },
|
|
130
|
+
openModifiers: {}
|
|
131
|
+
}),
|
|
132
|
+
emits: /* @__PURE__ */ h(["select"], ["update:open"]),
|
|
133
|
+
setup(e, { expose: t, emit: n }) {
|
|
134
|
+
let u = n, { token: f } = z.useToken(), p = D(e, "open"), h = r(p), g = S([]), _ = x(Y()), y = x(X()), w = S(""), T = S("");
|
|
135
|
+
async function M(e) {
|
|
136
|
+
await y.getData(e);
|
|
137
|
+
}
|
|
138
|
+
async function R(e = []) {
|
|
139
|
+
g.value = e, w.value = "", T.value = "", await _.getData(), h(!0);
|
|
140
|
+
}
|
|
141
|
+
let B = a(() => T.value === "" ? _.roles : y.roles);
|
|
142
|
+
function V(e) {
|
|
143
|
+
return B.value.findIndex((t) => t.id === e.id) > -1 && e.name?.includes(w.value);
|
|
144
|
+
}
|
|
145
|
+
function H(e, t) {
|
|
146
|
+
e.target.checked ? g.value.push({
|
|
147
|
+
value: t.id,
|
|
148
|
+
label: t.name
|
|
149
|
+
}) : g.value = g.value.filter((e) => e.value !== t.id);
|
|
150
|
+
}
|
|
151
|
+
function U(e) {
|
|
152
|
+
g.value = g.value.filter((t) => t.value !== e);
|
|
153
|
+
}
|
|
154
|
+
function W() {
|
|
155
|
+
u("select", g.value), h(!1);
|
|
156
|
+
}
|
|
157
|
+
function G() {
|
|
158
|
+
let e = g.value.filter((e) => !_.roles.some((t) => t.id === e.value));
|
|
159
|
+
g.value = e;
|
|
160
|
+
}
|
|
161
|
+
return t({ open: R }), (e, t) => (b(), o(E(I), {
|
|
162
|
+
open: p.value,
|
|
163
|
+
"onUpdate:open": t[3] ||= (e) => p.value = e,
|
|
164
|
+
title: "角色选择",
|
|
165
|
+
"mask-closable": !1,
|
|
166
|
+
width: 750,
|
|
167
|
+
"z-index": 1001,
|
|
168
|
+
"ok-text": "确认",
|
|
169
|
+
"cancel-text": "取消",
|
|
170
|
+
"destroy-on-close": "",
|
|
171
|
+
onOk: t[4] ||= (e) => W()
|
|
172
|
+
}, {
|
|
173
|
+
default: k(() => [l("div", {
|
|
174
|
+
class: "border border-solid h-[400px]",
|
|
175
|
+
style: v({ borderColor: E(f).colorBorder })
|
|
176
|
+
}, [l("div", Z, [
|
|
177
|
+
d(E(N), {
|
|
178
|
+
bordered: !1,
|
|
179
|
+
size: "small",
|
|
180
|
+
"head-style": {
|
|
181
|
+
backgroundColor: E(f).colorBgLayout,
|
|
182
|
+
borderRadius: 0,
|
|
183
|
+
borderWidth: 0,
|
|
184
|
+
borderBottomWidth: "1px",
|
|
185
|
+
padding: 0
|
|
186
|
+
},
|
|
187
|
+
"body-style": {
|
|
188
|
+
flex: 1,
|
|
189
|
+
padding: 0,
|
|
190
|
+
height: "calc(100% - 38px)"
|
|
191
|
+
},
|
|
192
|
+
style: v({
|
|
193
|
+
boxShadow: "none",
|
|
194
|
+
borderRadius: 0,
|
|
195
|
+
borderColor: E(f).colorBorder
|
|
196
|
+
}),
|
|
197
|
+
class: "flex h-full flex-col w-1/2"
|
|
198
|
+
}, {
|
|
199
|
+
default: k(() => [l("div", Q, [d(K, {
|
|
200
|
+
modelValue: E(w),
|
|
201
|
+
"onUpdate:modelValue": t[0] ||= (e) => m(w) ? w.value = e : null,
|
|
202
|
+
"group-id": E(T),
|
|
203
|
+
"onUpdate:groupId": t[1] ||= (e) => m(T) ? T.value = e : null,
|
|
204
|
+
group: e.group,
|
|
205
|
+
onSelect: M
|
|
206
|
+
}, null, 8, [
|
|
207
|
+
"modelValue",
|
|
208
|
+
"group-id",
|
|
209
|
+
"group"
|
|
210
|
+
]), l("div", $, [E(_).loading || E(y).loading ? (b(), c("div", ee, [d(E(L))])) : (b(), o(E(F), {
|
|
211
|
+
key: 1,
|
|
212
|
+
value: E(g).map((e) => e.value),
|
|
213
|
+
class: "w-full overflow-x-hidden"
|
|
214
|
+
}, {
|
|
215
|
+
default: k(() => [(b(!0), c(i, null, C(E(B), (e) => A((b(), c("div", {
|
|
216
|
+
key: e.id,
|
|
217
|
+
class: "w-full py-2 border-0 border-b border-solid truncate",
|
|
218
|
+
style: v({ borderColor: E(f).colorBorder })
|
|
219
|
+
}, [d(E(P), {
|
|
220
|
+
value: e.id,
|
|
221
|
+
onChange: (t) => H(t, e)
|
|
222
|
+
}, {
|
|
223
|
+
default: k(() => [d(J, { name: e.name }, null, 8, ["name"])]),
|
|
224
|
+
_: 2
|
|
225
|
+
}, 1032, ["value", "onChange"])], 4)), [[O, V(e)]])), 128))]),
|
|
226
|
+
_: 1
|
|
227
|
+
}, 8, ["value"]))])])]),
|
|
228
|
+
_: 1
|
|
229
|
+
}, 8, ["head-style", "style"]),
|
|
230
|
+
l("div", {
|
|
231
|
+
style: v({ borderColor: E(f).colorBorder }),
|
|
232
|
+
class: "h-full border-0 border-r border-solid"
|
|
233
|
+
}, null, 4),
|
|
234
|
+
d(E(N), {
|
|
235
|
+
bordered: !1,
|
|
236
|
+
size: "small",
|
|
237
|
+
"head-style": {
|
|
238
|
+
backgroundColor: E(f).colorBgLayout,
|
|
239
|
+
borderRadius: 0,
|
|
240
|
+
borderWidth: 0,
|
|
241
|
+
borderBottomWidth: "1px"
|
|
242
|
+
},
|
|
243
|
+
"body-style": {
|
|
244
|
+
flex: 1,
|
|
245
|
+
padding: 0,
|
|
246
|
+
overflow: "hidden"
|
|
247
|
+
},
|
|
248
|
+
style: {
|
|
249
|
+
boxShadow: "none",
|
|
250
|
+
borderRadius: 0
|
|
251
|
+
},
|
|
252
|
+
class: "flex h-full flex-col flex-1"
|
|
253
|
+
}, {
|
|
254
|
+
title: k(() => t[5] ||= [l("span", { class: "font-normal" }, " 已选角色 ", -1)]),
|
|
255
|
+
extra: k(() => [l("a", {
|
|
256
|
+
style: v({ color: E(f).colorPrimary }),
|
|
257
|
+
onClick: t[2] ||= (e) => G()
|
|
258
|
+
}, " 清空 ", 4)]),
|
|
259
|
+
default: k(() => [l("div", te, [(b(!0), c(i, null, C(E(g), (e) => (b(), c("div", {
|
|
260
|
+
key: e.value,
|
|
261
|
+
class: "inline-block mb-1 py-1 px-2 mx-0.5 max-w-full rounded",
|
|
262
|
+
style: v({ backgroundColor: E(f).colorPrimaryBg })
|
|
263
|
+
}, [d(J, {
|
|
264
|
+
name: e.label,
|
|
265
|
+
size: 20
|
|
266
|
+
}, null, 8, ["name"]), E(_).roles.some((t) => t.id === e.value) ? (b(), o(E(j), {
|
|
267
|
+
key: 0,
|
|
268
|
+
class: "ml-1 cursor-pointer text-xs",
|
|
269
|
+
style: v({ color: E(f).colorPrimary }),
|
|
270
|
+
onClick: (t) => U(e.value)
|
|
271
|
+
}, null, 8, ["style", "onClick"])) : s("v-if", !0)], 4))), 128))])]),
|
|
272
|
+
_: 1
|
|
273
|
+
}, 8, ["head-style"])
|
|
274
|
+
])], 4)]),
|
|
275
|
+
_: 1
|
|
276
|
+
}, 8, ["open"]));
|
|
277
|
+
}
|
|
278
|
+
}), re = ne;
|
|
279
|
+
export { re as b };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { b as e } from "./cloneDeep-BnvyNhik.js";
|
|
2
2
|
import { am as t, m as n, n as r, p as i, w as a } from "./index.js";
|
|
3
|
-
import { b as o } from "./ResourceSelector-
|
|
3
|
+
import { b as o } from "./ResourceSelector-BAZ-oIRV.js";
|
|
4
4
|
import { Fragment as s, computed as c, createBlock as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, isRef as h, onMounted as g, openBlock as _, reactive as v, ref as y, renderList as b, resolveComponent as x, toDisplayString as S, unref as C, withCtx as w } from "vue";
|
|
5
5
|
import { message as T } from "ant-design-vue";
|
|
6
6
|
import { Button as E, Drawer as D, Form as O, FormItem as k, Input as A, RangePicker as j, Space as M, Switch as N, Tooltip as ee } from "ant-design-vue/es";
|
|
@@ -114,7 +114,7 @@ var R = /* @__PURE__ */ m({
|
|
|
114
114
|
return _(), l(x, {
|
|
115
115
|
open: C(H),
|
|
116
116
|
"onUpdate:open": t[9] ||= (e) => h(H) ? H.value = e : null,
|
|
117
|
-
title: `${V.title}租户`,
|
|
117
|
+
title: `${C(V).title}租户`,
|
|
118
118
|
placement: "right",
|
|
119
119
|
width: 600,
|
|
120
120
|
"destroy-on-close": "",
|
|
@@ -139,7 +139,7 @@ var R = /* @__PURE__ */ m({
|
|
|
139
139
|
default: w(() => [p(v, {
|
|
140
140
|
ref_key: "formRef",
|
|
141
141
|
ref: W,
|
|
142
|
-
model: G
|
|
142
|
+
model: C(G),
|
|
143
143
|
rules: B,
|
|
144
144
|
"label-col": { span: 6 }
|
|
145
145
|
}, {
|
|
@@ -149,8 +149,8 @@ var R = /* @__PURE__ */ m({
|
|
|
149
149
|
name: "name"
|
|
150
150
|
}, {
|
|
151
151
|
default: w(() => [p(n, {
|
|
152
|
-
value: G.
|
|
153
|
-
"onUpdate:value": t[0] ||= (e) => G.
|
|
152
|
+
value: C(G).name,
|
|
153
|
+
"onUpdate:value": t[0] ||= (e) => C(G).name = e,
|
|
154
154
|
maxlength: 32,
|
|
155
155
|
placeholder: "请输入租户名称"
|
|
156
156
|
}, null, 8, ["value"])]),
|
|
@@ -161,9 +161,9 @@ var R = /* @__PURE__ */ m({
|
|
|
161
161
|
name: "tenantCode"
|
|
162
162
|
}, {
|
|
163
163
|
default: w(() => [p(n, {
|
|
164
|
-
value: G.
|
|
165
|
-
"onUpdate:value": t[1] ||= (e) => G.
|
|
166
|
-
disabled: V.title === C(P).EDIT,
|
|
164
|
+
value: C(G).tenantCode,
|
|
165
|
+
"onUpdate:value": t[1] ||= (e) => C(G).tenantCode = e,
|
|
166
|
+
disabled: C(V).title === C(P).EDIT,
|
|
167
167
|
maxlength: 64,
|
|
168
168
|
placeholder: "请输入租户编码"
|
|
169
169
|
}, null, 8, ["value", "disabled"])]),
|
|
@@ -174,8 +174,8 @@ var R = /* @__PURE__ */ m({
|
|
|
174
174
|
name: "tenantTime"
|
|
175
175
|
}, {
|
|
176
176
|
default: w(() => [p(i, {
|
|
177
|
-
value: G.
|
|
178
|
-
"onUpdate:value": t[2] ||= (e) => G.
|
|
177
|
+
value: C(G).tenantTime,
|
|
178
|
+
"onUpdate:value": t[2] ||= (e) => C(G).tenantTime = e,
|
|
179
179
|
format: "YYYY-MM-DD",
|
|
180
180
|
"value-format": "YYYY-MM-DD"
|
|
181
181
|
}, null, 8, ["value"])]),
|
|
@@ -186,8 +186,8 @@ var R = /* @__PURE__ */ m({
|
|
|
186
186
|
name: "subDomain"
|
|
187
187
|
}, {
|
|
188
188
|
default: w(() => [p(n, {
|
|
189
|
-
value: G.
|
|
190
|
-
"onUpdate:value": t[3] ||= (e) => G.
|
|
189
|
+
value: C(G).subDomain,
|
|
190
|
+
"onUpdate:value": t[3] ||= (e) => C(G).subDomain = e,
|
|
191
191
|
maxlength: 64,
|
|
192
192
|
placeholder: "请输入二级域名"
|
|
193
193
|
}, null, 8, ["value"])]),
|
|
@@ -198,9 +198,9 @@ var R = /* @__PURE__ */ m({
|
|
|
198
198
|
name: "pubUserAdmin"
|
|
199
199
|
}, {
|
|
200
200
|
default: w(() => [p(n, {
|
|
201
|
-
value: G.
|
|
202
|
-
"onUpdate:value": t[4] ||= (e) => G.
|
|
203
|
-
disabled: V.title === C(P).EDIT,
|
|
201
|
+
value: C(G).pubUserAdmin,
|
|
202
|
+
"onUpdate:value": t[4] ||= (e) => C(G).pubUserAdmin = e,
|
|
203
|
+
disabled: C(V).title === C(P).EDIT,
|
|
204
204
|
maxlength: 32,
|
|
205
205
|
placeholder: "请输入租户管理员"
|
|
206
206
|
}, null, 8, ["value", "disabled"])]),
|
|
@@ -208,8 +208,8 @@ var R = /* @__PURE__ */ m({
|
|
|
208
208
|
}),
|
|
209
209
|
p(r, { label: "是否启用" }, {
|
|
210
210
|
default: w(() => [p(a, {
|
|
211
|
-
checked: G.
|
|
212
|
-
"onUpdate:checked": t[5] ||= (e) => G.
|
|
211
|
+
checked: C(G).enable,
|
|
212
|
+
"onUpdate:checked": t[5] ||= (e) => C(G).enable = e
|
|
213
213
|
}, null, 8, ["checked"])]),
|
|
214
214
|
_: 1
|
|
215
215
|
}),
|
|
@@ -226,13 +226,13 @@ var R = /* @__PURE__ */ m({
|
|
|
226
226
|
_: 1,
|
|
227
227
|
__: [10]
|
|
228
228
|
}),
|
|
229
|
-
f(" (已选" + S(G.
|
|
229
|
+
f(" (已选" + S(C(G).resourceIds?.length ?? 0) + "条数据) ", 1),
|
|
230
230
|
p(m, {
|
|
231
231
|
ref_key: "resourceRef",
|
|
232
232
|
ref: X,
|
|
233
233
|
onSelect: ne
|
|
234
234
|
}, null, 512),
|
|
235
|
-
d("div", F, [(_(!0), u(s, null, b(Q
|
|
235
|
+
d("div", F, [(_(!0), u(s, null, b(C(Q), (e) => (_(), u(s, { key: e }, [e.name?.length > 20 ? (_(), l(g, {
|
|
236
236
|
key: 0,
|
|
237
237
|
title: e.name
|
|
238
238
|
}, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./cloneDeep-BnvyNhik.js";
|
|
2
2
|
import "./_plugin-vue_export-helper-DziIhCOI.js";
|
|
3
3
|
import "./enum-B1DCzyaW.js";
|
|
4
|
-
import "./ResourceSelector-
|
|
5
|
-
import { b as e } from "./TenantEdit-
|
|
4
|
+
import "./ResourceSelector-BAZ-oIRV.js";
|
|
5
|
+
import { b as e } from "./TenantEdit-CRhsWhhw.js";
|
|
6
6
|
export { e as default };
|