@pubinfo/module-rbac 2.0.4 → 2.0.5
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
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as e } from "./ComponentSelect-
|
|
1
|
+
import { b as e } from "./ComponentSelect-lvLZA7v3.js";
|
|
2
2
|
import { d as t } from "./enum-BMY6bmPA.js";
|
|
3
|
-
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createVNode as s, defineComponent as c, mergeModels as l, openBlock as u, resolveComponent as d,
|
|
4
|
-
import { Col as
|
|
5
|
-
var
|
|
3
|
+
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createVNode as s, defineComponent as c, mergeModels as l, openBlock as u, resolveComponent as d, unref as f, useModel as p, withCtx as m } from "vue";
|
|
4
|
+
import { Col as h, FormItem as g, Input as _ } from "ant-design-vue/es";
|
|
5
|
+
var v = /* @__PURE__ */ c({
|
|
6
6
|
name: "DynamicRoutesForm",
|
|
7
7
|
__name: "DynamicRoutesForm",
|
|
8
8
|
props: /* @__PURE__ */ l({ parent: {} }, {
|
|
@@ -14,7 +14,7 @@ var _ = /* @__PURE__ */ c({
|
|
|
14
14
|
}),
|
|
15
15
|
emits: ["update:modelValue"],
|
|
16
16
|
setup(c) {
|
|
17
|
-
let l =
|
|
17
|
+
let l = p(c, "modelValue"), d = r(() => {
|
|
18
18
|
let e = l.value.type;
|
|
19
19
|
return {
|
|
20
20
|
path: [
|
|
@@ -41,15 +41,15 @@ var _ = /* @__PURE__ */ c({
|
|
|
41
41
|
t.LINK
|
|
42
42
|
].includes(e)
|
|
43
43
|
};
|
|
44
|
-
}),
|
|
44
|
+
}), v = r(() => !0);
|
|
45
45
|
return (t, r) => {
|
|
46
|
-
let c =
|
|
47
|
-
return u(), o(n, null, [a(" eslint-disable-next-line "),
|
|
48
|
-
d.
|
|
46
|
+
let c = _, p = g, y = h;
|
|
47
|
+
return u(), o(n, null, [a(" eslint-disable-next-line "), f(v) ? (u(), o(n, { key: 0 }, [
|
|
48
|
+
f(d).path ? (u(), i(y, {
|
|
49
49
|
key: 0,
|
|
50
50
|
span: 12
|
|
51
51
|
}, {
|
|
52
|
-
default:
|
|
52
|
+
default: m(() => [s(p, {
|
|
53
53
|
label: "资源路径",
|
|
54
54
|
name: ["meta", "url"],
|
|
55
55
|
rules: [{
|
|
@@ -57,7 +57,7 @@ var _ = /* @__PURE__ */ c({
|
|
|
57
57
|
message: "请输入资源路径"
|
|
58
58
|
}]
|
|
59
59
|
}, {
|
|
60
|
-
default:
|
|
60
|
+
default: m(() => [s(c, {
|
|
61
61
|
value: l.value.meta.url,
|
|
62
62
|
"onUpdate:value": r[0] ||= (e) => l.value.meta.url = e,
|
|
63
63
|
placeholder: "请输入资源路径",
|
|
@@ -67,11 +67,11 @@ var _ = /* @__PURE__ */ c({
|
|
|
67
67
|
})]),
|
|
68
68
|
_: 1
|
|
69
69
|
})) : a("v-if", !0),
|
|
70
|
-
d.
|
|
70
|
+
f(d).component ? (u(), i(y, {
|
|
71
71
|
key: 1,
|
|
72
72
|
span: 24
|
|
73
73
|
}, {
|
|
74
|
-
default:
|
|
74
|
+
default: m(() => [s(p, {
|
|
75
75
|
label: "组件路径",
|
|
76
76
|
name: ["meta", "component"],
|
|
77
77
|
rules: [{
|
|
@@ -79,7 +79,7 @@ var _ = /* @__PURE__ */ c({
|
|
|
79
79
|
message: "请输入组件路径"
|
|
80
80
|
}]
|
|
81
81
|
}, {
|
|
82
|
-
default:
|
|
82
|
+
default: m(() => [s(e, {
|
|
83
83
|
modelValue: l.value.meta.component,
|
|
84
84
|
"onUpdate:modelValue": r[1] ||= (e) => l.value.meta.component = e,
|
|
85
85
|
scope: l.value.meta.scope,
|
|
@@ -89,15 +89,15 @@ var _ = /* @__PURE__ */ c({
|
|
|
89
89
|
})]),
|
|
90
90
|
_: 1
|
|
91
91
|
})) : a("v-if", !0),
|
|
92
|
-
d.
|
|
92
|
+
f(d).link ? (u(), i(y, {
|
|
93
93
|
key: 2,
|
|
94
94
|
span: 24
|
|
95
95
|
}, {
|
|
96
|
-
default:
|
|
96
|
+
default: m(() => [s(p, {
|
|
97
97
|
label: "外链地址",
|
|
98
98
|
name: ["meta", "link"]
|
|
99
99
|
}, {
|
|
100
|
-
default:
|
|
100
|
+
default: m(() => [s(c, {
|
|
101
101
|
value: l.value.meta.link,
|
|
102
102
|
"onUpdate:value": r[3] ||= (e) => l.value.meta.link = e,
|
|
103
103
|
placeholder: "请输入外链地址",
|
|
@@ -107,15 +107,15 @@ var _ = /* @__PURE__ */ c({
|
|
|
107
107
|
})]),
|
|
108
108
|
_: 1
|
|
109
109
|
})) : a("v-if", !0),
|
|
110
|
-
d.
|
|
110
|
+
f(d).iframe ? (u(), i(y, {
|
|
111
111
|
key: 3,
|
|
112
112
|
span: 24
|
|
113
113
|
}, {
|
|
114
|
-
default:
|
|
114
|
+
default: m(() => [s(p, {
|
|
115
115
|
label: "内嵌地址",
|
|
116
116
|
name: ["meta", "iframe"]
|
|
117
117
|
}, {
|
|
118
|
-
default:
|
|
118
|
+
default: m(() => [s(c, {
|
|
119
119
|
value: l.value.meta.iframe,
|
|
120
120
|
"onUpdate:value": r[4] ||= (e) => l.value.meta.iframe = e,
|
|
121
121
|
placeholder: "请输入内嵌地址",
|
|
@@ -125,15 +125,15 @@ var _ = /* @__PURE__ */ c({
|
|
|
125
125
|
})]),
|
|
126
126
|
_: 1
|
|
127
127
|
})) : a("v-if", !0),
|
|
128
|
-
d.
|
|
128
|
+
f(d).routeName ? (u(), i(y, {
|
|
129
129
|
key: 4,
|
|
130
130
|
span: 12
|
|
131
131
|
}, {
|
|
132
|
-
default:
|
|
132
|
+
default: m(() => [s(p, {
|
|
133
133
|
label: "路由名称",
|
|
134
134
|
name: ["meta", "routeName"]
|
|
135
135
|
}, {
|
|
136
|
-
default:
|
|
136
|
+
default: m(() => [s(c, {
|
|
137
137
|
value: l.value.meta.routeName,
|
|
138
138
|
"onUpdate:value": r[5] ||= (e) => l.value.meta.routeName = e,
|
|
139
139
|
placeholder: "请输入路由名称(name)",
|
|
@@ -143,16 +143,16 @@ var _ = /* @__PURE__ */ c({
|
|
|
143
143
|
})]),
|
|
144
144
|
_: 1
|
|
145
145
|
})) : a("v-if", !0),
|
|
146
|
-
d.
|
|
146
|
+
f(d).activeMenu ? (u(), i(y, {
|
|
147
147
|
key: 5,
|
|
148
148
|
span: 12
|
|
149
149
|
}, {
|
|
150
|
-
default:
|
|
150
|
+
default: m(() => [s(p, {
|
|
151
151
|
label: "激活路径",
|
|
152
152
|
name: ["meta", "activeMenu"],
|
|
153
153
|
tooltip: "跳转到当前路由时,需要激活的菜单路径。 当不在导航菜单中显示时,需要指定激活路径"
|
|
154
154
|
}, {
|
|
155
|
-
default:
|
|
155
|
+
default: m(() => [s(c, {
|
|
156
156
|
value: l.value.meta.activeMenu,
|
|
157
157
|
"onUpdate:value": r[6] ||= (e) => l.value.meta.activeMenu = e,
|
|
158
158
|
placeholder: "请输入激活路径",
|
|
@@ -165,5 +165,5 @@ var _ = /* @__PURE__ */ c({
|
|
|
165
165
|
], 64)) : a("v-if", !0)], 2112);
|
|
166
166
|
};
|
|
167
167
|
}
|
|
168
|
-
}),
|
|
169
|
-
export {
|
|
168
|
+
}), y = v;
|
|
169
|
+
export { y as b };
|
|
@@ -606,37 +606,37 @@ var J = /* @__PURE__ */ f({
|
|
|
606
606
|
}
|
|
607
607
|
return (e, t) => {
|
|
608
608
|
let a = O;
|
|
609
|
-
return _
|
|
609
|
+
return S(_) && S(m).icon ? (h(), o(a, {
|
|
610
610
|
key: 0,
|
|
611
611
|
label: "资源图标"
|
|
612
612
|
}, {
|
|
613
613
|
default: T(() => [d(W, {
|
|
614
614
|
modelValue: r.value.icon,
|
|
615
615
|
"onUpdate:modelValue": t[0] ||= (e) => r.value.icon = e,
|
|
616
|
-
"box-type": p.boxType,
|
|
617
|
-
"onUpdate:boxType": t[1] ||= (e) => p.boxType = e,
|
|
618
|
-
angle: p.angle,
|
|
619
|
-
"onUpdate:angle": t[2] ||= (e) => p.angle = e,
|
|
620
|
-
background: p.background,
|
|
621
|
-
"onUpdate:background": t[3] ||= (e) => p.background = e,
|
|
622
|
-
radius: p.radius,
|
|
623
|
-
"onUpdate:radius": t[4] ||= (e) => p.radius = e,
|
|
624
|
-
"icon-color": p.iconColor,
|
|
625
|
-
"onUpdate:iconColor": t[5] ||= (e) => p.iconColor = e
|
|
616
|
+
"box-type": S(p).boxType,
|
|
617
|
+
"onUpdate:boxType": t[1] ||= (e) => S(p).boxType = e,
|
|
618
|
+
angle: S(p).angle,
|
|
619
|
+
"onUpdate:angle": t[2] ||= (e) => S(p).angle = e,
|
|
620
|
+
background: S(p).background,
|
|
621
|
+
"onUpdate:background": t[3] ||= (e) => S(p).background = e,
|
|
622
|
+
radius: S(p).radius,
|
|
623
|
+
"onUpdate:radius": t[4] ||= (e) => S(p).radius = e,
|
|
624
|
+
"icon-color": S(p).iconColor,
|
|
625
|
+
"onUpdate:iconColor": t[5] ||= (e) => S(p).iconColor = e
|
|
626
626
|
}, {
|
|
627
627
|
default: T(({ open: e }) => [s(" select box "), r.value.icon ? (h(), c(i, { key: 0 }, [s(" 已选择图标展示盒子 "), l("div", {
|
|
628
628
|
class: "size-64px flex justify-center items-center cursor-pointer rounded-md border-px border-dashed relative group border-[#d9d9d9] dark:border-[#424242] hover:border-[#5794f7] dark:hover:border-[#5187e1] p-8px",
|
|
629
629
|
onClick: e
|
|
630
630
|
}, [
|
|
631
|
-
p.boxType && p.boxType !== "null" ? (h(), o(S(n), {
|
|
631
|
+
S(p).boxType && S(p).boxType !== "null" ? (h(), o(S(n), {
|
|
632
632
|
key: 0,
|
|
633
633
|
name: r.value.icon,
|
|
634
|
-
box: p.boxType,
|
|
634
|
+
box: S(p).boxType,
|
|
635
635
|
size: "48px",
|
|
636
|
-
radius: p.radius,
|
|
637
|
-
background: p.background,
|
|
638
|
-
angle: p.angle,
|
|
639
|
-
color: (r.value.icon || "").startsWith("antd:") ? p.iconColor || "#ffffff" : void 0
|
|
636
|
+
radius: S(p).radius,
|
|
637
|
+
background: S(p).background,
|
|
638
|
+
angle: S(p).angle,
|
|
639
|
+
color: (r.value.icon || "").startsWith("antd:") ? S(p).iconColor || "#ffffff" : void 0
|
|
640
640
|
}, null, 8, [
|
|
641
641
|
"name",
|
|
642
642
|
"box",
|
|
@@ -648,7 +648,7 @@ var J = /* @__PURE__ */ f({
|
|
|
648
648
|
key: 1,
|
|
649
649
|
name: r.value.icon,
|
|
650
650
|
size: "48px",
|
|
651
|
-
color: (r.value.icon || "").startsWith("antd:") && p.iconColor || void 0
|
|
651
|
+
color: (r.value.icon || "").startsWith("antd:") && S(p).iconColor || void 0
|
|
652
652
|
}, null, 8, ["name", "color"])),
|
|
653
653
|
s(" 清除按钮 "),
|
|
654
654
|
r.value.icon ? (h(), c("button", {
|
|
@@ -2,10 +2,10 @@ import { b as e, c as t } from "./chunk-B3eAFu3c.js";
|
|
|
2
2
|
import { A as n, B as r, C as i, D as a, E as o, am as s, z as c } from "./index.js";
|
|
3
3
|
import { c as l, e as u } from "./enum-BMY6bmPA.js";
|
|
4
4
|
import { b as d } from "./dayjs.min-CdDcH50N.js";
|
|
5
|
-
import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, createVNode as y, defineComponent as b, isRef as
|
|
6
|
-
import { ClockCircleOutlined as
|
|
7
|
-
import { Upload as
|
|
8
|
-
import { Button as
|
|
5
|
+
import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, createVNode as y, defineComponent as b, isRef as x, normalizeStyle as S, openBlock as C, reactive as w, ref as T, renderList as ee, resolveComponent as E, toDisplayString as D, unref as O, vShow as k, withCtx as A, withDirectives as j } from "vue";
|
|
6
|
+
import { ClockCircleOutlined as te, CloudDownloadOutlined as M, CloudUploadOutlined as ne, DeleteOutlined as re, UndoOutlined as ie } from "@ant-design/icons-vue";
|
|
7
|
+
import { Upload as N, message as P, theme as ae } from "ant-design-vue";
|
|
8
|
+
import { Button as oe, Card as se, Col as ce, Empty as le, Modal as ue, Popconfirm as de, Row as fe, Space as pe, Spin as me, Tag as F, Tree as I, Upload as L } from "ant-design-vue/es";
|
|
9
9
|
var R = /* @__PURE__ */ e(((exports, t) => {
|
|
10
10
|
(function(t, n) {
|
|
11
11
|
typeof define == "function" && define.amd ? define([], n) : exports === void 0 ? (n(), t.FileSaver = { exports: {} }.exports) : n();
|
|
@@ -85,7 +85,7 @@ var B = /* @__PURE__ */ b({
|
|
|
85
85
|
props: { dataSource: {} },
|
|
86
86
|
emits: ["submit"],
|
|
87
87
|
setup(e, { expose: t, emit: d }) {
|
|
88
|
-
let b = e,
|
|
88
|
+
let b = e, E = d, { token: R } = ae.useToken(), [B, V] = s(!1), [H, U] = s(!1), W = w({
|
|
89
89
|
selectedId: "",
|
|
90
90
|
list: [],
|
|
91
91
|
treeData: []
|
|
@@ -98,7 +98,7 @@ var B = /* @__PURE__ */ b({
|
|
|
98
98
|
}] : [{
|
|
99
99
|
key: "current",
|
|
100
100
|
tab: "当前资源"
|
|
101
|
-
}]), G =
|
|
101
|
+
}]), G = T([]), we = p(() => b.dataSource), K = w({
|
|
102
102
|
list: Ce,
|
|
103
103
|
key: "current",
|
|
104
104
|
onTabChange(e) {
|
|
@@ -135,13 +135,13 @@ var B = /* @__PURE__ */ b({
|
|
|
135
135
|
}
|
|
136
136
|
async function Oe() {
|
|
137
137
|
if (G.value.length === 0) {
|
|
138
|
-
|
|
138
|
+
P.info("请选中你要导出的资源节点。");
|
|
139
139
|
return;
|
|
140
140
|
}
|
|
141
141
|
try {
|
|
142
142
|
U(!0);
|
|
143
143
|
let e = await a(G.value);
|
|
144
|
-
e.success && (Ae(e.data),
|
|
144
|
+
e.success && (Ae(e.data), P.success("导出成功!"));
|
|
145
145
|
} finally {
|
|
146
146
|
U(!1);
|
|
147
147
|
}
|
|
@@ -150,11 +150,11 @@ var B = /* @__PURE__ */ b({
|
|
|
150
150
|
try {
|
|
151
151
|
U(!0);
|
|
152
152
|
let t = await o({ parentId: G.value[0] ?? "0" }, {}, e);
|
|
153
|
-
return t.success && (
|
|
153
|
+
return t.success && (P.success("导入成功!"), Y()), N.LIST_IGNORE;
|
|
154
154
|
} catch {
|
|
155
|
-
return
|
|
155
|
+
return N.LIST_IGNORE;
|
|
156
156
|
} finally {
|
|
157
|
-
U(!1),
|
|
157
|
+
U(!1), E("submit");
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
function Ae(e, t = `资源数据_${(0, z.default)().format("YYYYMMDDHHmmss")}.json`) {
|
|
@@ -166,7 +166,7 @@ var B = /* @__PURE__ */ b({
|
|
|
166
166
|
try {
|
|
167
167
|
Z(!0);
|
|
168
168
|
let e = await i({ id: W.selectedId });
|
|
169
|
-
e.success && (
|
|
169
|
+
e.success && (P.success("恢复备份成功!"), Y(), E("submit"));
|
|
170
170
|
} finally {
|
|
171
171
|
Z(!1);
|
|
172
172
|
}
|
|
@@ -176,16 +176,16 @@ var B = /* @__PURE__ */ b({
|
|
|
176
176
|
try {
|
|
177
177
|
$(!0);
|
|
178
178
|
let e = await c({ id: W.selectedId });
|
|
179
|
-
e.success && (
|
|
179
|
+
e.success && (P.success("删除备份成功!"), Y(), K.key = "current", W.selectedId = "");
|
|
180
180
|
} finally {
|
|
181
181
|
$(!1);
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
return t({ open: Te }), (e, t) => {
|
|
185
|
-
let n =
|
|
186
|
-
return
|
|
187
|
-
open:
|
|
188
|
-
"onUpdate:open": t[5] ||= (e) =>
|
|
185
|
+
let n = oe, r = L, i = pe, a = de, o = F, s = I, c = me, d = se, p = ce, b = le, w = fe, T = ue;
|
|
186
|
+
return C(), m(T, {
|
|
187
|
+
open: O(B),
|
|
188
|
+
"onUpdate:open": t[5] ||= (e) => x(B) ? B.value = e : null,
|
|
189
189
|
title: "导入 / 导出",
|
|
190
190
|
centered: "",
|
|
191
191
|
width: 1e3,
|
|
@@ -193,15 +193,15 @@ var B = /* @__PURE__ */ b({
|
|
|
193
193
|
"mask-closable": !1,
|
|
194
194
|
footer: null
|
|
195
195
|
}, {
|
|
196
|
-
default:
|
|
196
|
+
default: A(() => [_("div", ge, [y(w, {
|
|
197
197
|
gutter: 8,
|
|
198
198
|
class: "h-full"
|
|
199
199
|
}, {
|
|
200
|
-
default:
|
|
200
|
+
default: A(() => [y(p, {
|
|
201
201
|
span: "16",
|
|
202
202
|
class: "h-full"
|
|
203
203
|
}, {
|
|
204
|
-
default:
|
|
204
|
+
default: A(() => [y(d, {
|
|
205
205
|
"head-style": {
|
|
206
206
|
marginBottom: 0,
|
|
207
207
|
padding: "0 12px"
|
|
@@ -211,39 +211,39 @@ var B = /* @__PURE__ */ b({
|
|
|
211
211
|
height: "calc(100% - 56px)",
|
|
212
212
|
overflow: "auto"
|
|
213
213
|
},
|
|
214
|
-
"tab-list": K.list,
|
|
215
|
-
"active-tab-key": K.key,
|
|
214
|
+
"tab-list": O(K).list,
|
|
215
|
+
"active-tab-key": O(K).key,
|
|
216
216
|
class: "h-full",
|
|
217
|
-
onTabChange: t[4] ||= (e) => K.onTabChange(e)
|
|
217
|
+
onTabChange: t[4] ||= (e) => O(K).onTabChange(e)
|
|
218
218
|
}, {
|
|
219
|
-
tabBarExtraContent:
|
|
220
|
-
default:
|
|
221
|
-
default:
|
|
219
|
+
tabBarExtraContent: A(() => [O(K).key === "current" ? (C(), m(i, { key: 0 }, {
|
|
220
|
+
default: A(() => [y(r, { "before-upload": ke }, {
|
|
221
|
+
default: A(() => [y(n, {
|
|
222
222
|
type: "primary",
|
|
223
|
-
loading:
|
|
223
|
+
loading: O(H)
|
|
224
224
|
}, {
|
|
225
|
-
default:
|
|
225
|
+
default: A(() => [y(O(ne)), t[6] ||= v(" 导入 ")]),
|
|
226
226
|
_: 1,
|
|
227
227
|
__: [6]
|
|
228
228
|
}, 8, ["loading"])]),
|
|
229
229
|
_: 1
|
|
230
230
|
}), y(n, {
|
|
231
|
-
disabled: G.
|
|
232
|
-
loading:
|
|
231
|
+
disabled: O(G).length === 0,
|
|
232
|
+
loading: O(H),
|
|
233
233
|
onClick: t[0] ||= (e) => Oe()
|
|
234
234
|
}, {
|
|
235
|
-
default:
|
|
235
|
+
default: A(() => [y(O(M)), t[7] ||= v(" 导出 ")]),
|
|
236
236
|
_: 1,
|
|
237
237
|
__: [7]
|
|
238
238
|
}, 8, ["disabled", "loading"])]),
|
|
239
239
|
_: 1
|
|
240
|
-
})) : h("v-if", !0), K.key === "history" ? (
|
|
241
|
-
default:
|
|
240
|
+
})) : h("v-if", !0), O(K).key === "history" ? (C(), m(i, { key: 1 }, {
|
|
241
|
+
default: A(() => [y(a, {
|
|
242
242
|
title: "是否使用该历史数据覆盖当前数据?",
|
|
243
243
|
onConfirm: t[1] ||= (e) => Q()
|
|
244
244
|
}, {
|
|
245
|
-
default:
|
|
246
|
-
default:
|
|
245
|
+
default: A(() => [y(n, { loading: O(je) }, {
|
|
246
|
+
default: A(() => [y(O(ie)), t[8] ||= v(" 恢复备份 ")]),
|
|
247
247
|
_: 1,
|
|
248
248
|
__: [8]
|
|
249
249
|
}, 8, ["loading"])]),
|
|
@@ -252,11 +252,11 @@ var B = /* @__PURE__ */ b({
|
|
|
252
252
|
title: "是否删除该历史数据备份?",
|
|
253
253
|
onConfirm: t[2] ||= (e) => Ne()
|
|
254
254
|
}, {
|
|
255
|
-
default:
|
|
256
|
-
loading:
|
|
255
|
+
default: A(() => [y(n, {
|
|
256
|
+
loading: O(Me),
|
|
257
257
|
danger: ""
|
|
258
258
|
}, {
|
|
259
|
-
default:
|
|
259
|
+
default: A(() => [y(O(re)), t[9] ||= v(" 删除备份 ")]),
|
|
260
260
|
_: 1,
|
|
261
261
|
__: [9]
|
|
262
262
|
}, 8, ["loading"])]),
|
|
@@ -264,49 +264,49 @@ var B = /* @__PURE__ */ b({
|
|
|
264
264
|
})]),
|
|
265
265
|
_: 1
|
|
266
266
|
})) : h("v-if", !0)]),
|
|
267
|
-
default:
|
|
267
|
+
default: A(() => [j(_("div", null, [y(s, {
|
|
268
268
|
key: "current",
|
|
269
|
-
"selected-keys": G
|
|
270
|
-
"onUpdate:selectedKeys": t[3] ||= (e) => G.value = e,
|
|
269
|
+
"selected-keys": O(G),
|
|
270
|
+
"onUpdate:selectedKeys": t[3] ||= (e) => x(G) ? G.value = e : null,
|
|
271
271
|
"field-names": {
|
|
272
272
|
children: "children",
|
|
273
273
|
title: "name",
|
|
274
274
|
key: "id"
|
|
275
275
|
},
|
|
276
|
-
"tree-data": we
|
|
276
|
+
"tree-data": O(we),
|
|
277
277
|
"block-node": ""
|
|
278
278
|
}, {
|
|
279
|
-
title:
|
|
280
|
-
color:
|
|
279
|
+
title: A((e) => [y(o, {
|
|
280
|
+
color: O(l)[e.type],
|
|
281
281
|
bordered: !1
|
|
282
282
|
}, {
|
|
283
|
-
default:
|
|
283
|
+
default: A(() => [v(D(O(u).find((t) => t.value === e.type)?.label), 1)]),
|
|
284
284
|
_: 2
|
|
285
|
-
}, 1032, ["color"]), _("span", null,
|
|
285
|
+
}, 1032, ["color"]), _("span", null, D(e.name), 1)]),
|
|
286
286
|
_: 1
|
|
287
|
-
}, 8, ["selected-keys", "tree-data"])], 512), [[
|
|
288
|
-
default:
|
|
287
|
+
}, 8, ["selected-keys", "tree-data"])], 512), [[k, O(K).key === "current"]]), j(_("div", _e, [y(c, { spinning: O(Ee) }, {
|
|
288
|
+
default: A(() => [y(s, {
|
|
289
289
|
key: "history",
|
|
290
290
|
"field-names": {
|
|
291
291
|
children: "children",
|
|
292
292
|
title: "name",
|
|
293
293
|
key: "id"
|
|
294
294
|
},
|
|
295
|
-
"tree-data": W.treeData,
|
|
295
|
+
"tree-data": O(W).treeData,
|
|
296
296
|
selectable: !1,
|
|
297
297
|
class: "size-full"
|
|
298
298
|
}, {
|
|
299
|
-
title:
|
|
300
|
-
color:
|
|
299
|
+
title: A((e) => [y(o, {
|
|
300
|
+
color: O(l)[e.type],
|
|
301
301
|
bordered: !1
|
|
302
302
|
}, {
|
|
303
|
-
default:
|
|
303
|
+
default: A(() => [v(D(O(u).find((t) => t.value === e.type)?.label), 1)]),
|
|
304
304
|
_: 2
|
|
305
|
-
}, 1032, ["color"]), _("span", null,
|
|
305
|
+
}, 1032, ["color"]), _("span", null, D(e.name), 1)]),
|
|
306
306
|
_: 1
|
|
307
307
|
}, 8, ["tree-data"])]),
|
|
308
308
|
_: 1
|
|
309
|
-
}, 8, ["spinning"])], 512), [[
|
|
309
|
+
}, 8, ["spinning"])], 512), [[k, O(K).key === "history"]])]),
|
|
310
310
|
_: 1
|
|
311
311
|
}, 8, ["tab-list", "active-tab-key"])]),
|
|
312
312
|
_: 1
|
|
@@ -314,7 +314,7 @@ var B = /* @__PURE__ */ b({
|
|
|
314
314
|
span: "8",
|
|
315
315
|
class: "h-full"
|
|
316
316
|
}, {
|
|
317
|
-
default:
|
|
317
|
+
default: A(() => [y(d, {
|
|
318
318
|
title: "历史记录",
|
|
319
319
|
"head-style": {
|
|
320
320
|
marginBottom: 0,
|
|
@@ -327,18 +327,18 @@ var B = /* @__PURE__ */ b({
|
|
|
327
327
|
},
|
|
328
328
|
class: "h-full"
|
|
329
329
|
}, {
|
|
330
|
-
default:
|
|
331
|
-
|
|
332
|
-
W.list.length === 0 && !
|
|
333
|
-
(
|
|
330
|
+
default: A(() => [
|
|
331
|
+
O(q) ? (C(), g("div", ve, [y(c)])) : h("v-if", !0),
|
|
332
|
+
O(W).list.length === 0 && !O(q) ? (C(), g("div", ye, [y(b)])) : h("v-if", !0),
|
|
333
|
+
(C(!0), g(f, null, ee(O(W).list, (e) => (C(), g("div", {
|
|
334
334
|
key: e.id,
|
|
335
335
|
class: "flex justify-between items-center space-x-2 cursor-pointer hover:bg-gray-50 py-1 px-2 rounded",
|
|
336
|
-
style:
|
|
336
|
+
style: S({ backgroundColor: O(W).selectedId === e.id ? O(R).colorPrimaryBg : "" }),
|
|
337
337
|
onClick: (t) => De(e.id)
|
|
338
|
-
}, [_("div", xe, [y(
|
|
338
|
+
}, [_("div", xe, [y(O(te)), _("span", Se, D(e.createTime), 1)]), _("span", {
|
|
339
339
|
class: "text-xs shrink-0",
|
|
340
|
-
style:
|
|
341
|
-
},
|
|
340
|
+
style: S({ color: O(R).colorTextTertiary })
|
|
341
|
+
}, D(e.createUserName), 5)], 12, be))), 128))
|
|
342
342
|
]),
|
|
343
343
|
_: 1
|
|
344
344
|
})]),
|