ss-component-new 1.1.605 → 1.1.607
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/{array-mnEYd91h.cjs → array-C1gcNGaP.cjs} +1 -1
- package/dist/{array-wJSGLzMi.js → array-CaisX3_y.js} +1 -1
- package/dist/{index-jvd5BlOv.js → index-2Wg02nub.js} +3 -3
- package/dist/index-2tDhJ_PE.cjs +74 -0
- package/dist/{index-BFZVT-Sq.js → index-B1cMw_e2.js} +1 -1
- package/dist/{index-B3S96rWX.js → index-B807Lss8.js} +5 -5
- package/dist/{index-D5dSCTOb.cjs → index-BB7D-KhK.cjs} +1 -1
- package/dist/{index-CE-DNAtJ.cjs → index-BE4_rScS.cjs} +1 -1
- package/dist/{index-BJi_ECqJ.cjs → index-BJT2Fp0F.cjs} +1 -1
- package/dist/{index-BoTmnPfw.js → index-BK5LNaz2.js} +3 -3
- package/dist/{index-BhXpwWAD.cjs → index-BLu4cCOv.cjs} +1 -1
- package/dist/{index-BTFOodKO.cjs → index-BO2NNsQ3.cjs} +1 -1
- package/dist/index-BXKDfdBV.js +4482 -0
- package/dist/{index-CbVh7iYe.cjs → index-BgX_ia5H.cjs} +1 -1
- package/dist/{index-Dhe8iP7z.cjs → index-BhfNBV_Y.cjs} +1 -1
- package/dist/{index-CEkkLcyX.js → index-BibVOdJy.js} +8 -8
- package/dist/{index-z1u39i0Q.js → index-BlEsLLOQ.js} +3 -3
- package/dist/{index-CGVBRzfc.js → index-BmzN-3ze.js} +5 -5
- package/dist/{index-Dm8EQvZF.cjs → index-Bn3uMi-8.cjs} +1 -1
- package/dist/index-BsQ8_gbw.cjs +1 -0
- package/dist/{index-DYF20hZA.cjs → index-CEoanfoT.cjs} +1 -1
- package/dist/{index-C35HTOcd.js → index-CV9GhHVQ.js} +13 -13
- package/dist/{index-CDeREboV.js → index-CVee1Bur.js} +6 -6
- package/dist/{index-D0x4MvAM.cjs → index-Cplpn8hS.cjs} +2 -2
- package/dist/{index-DOiC1373.cjs → index-CrE-2oNV.cjs} +1 -1
- package/dist/{index-C0CRKcQx.cjs → index-Cuz54Fkl.cjs} +10 -10
- package/dist/{index-B1ApyEfu.cjs → index-CxutEIsS.cjs} +1 -1
- package/dist/{index-COrn88rF.js → index-D-gtCink.js} +15 -15
- package/dist/{index-j2a9krnF.cjs → index-D8E80dju.cjs} +1 -1
- package/dist/{index-BOb-2bQ6.js → index-D8wJ8OVO.js} +2 -2
- package/dist/{index-5CvXwzwG.cjs → index-DB2epzvg.cjs} +1 -1
- package/dist/{index-BAb0kfXo.js → index-DFX5NE_3.js} +36 -37
- package/dist/{index-CXqD_FTn.cjs → index-DGCcBd5v.cjs} +1 -1
- package/dist/{index-CMcDLpN5.js → index-DKk2Yk2F.js} +4 -4
- package/dist/{index-FXurbsHT.js → index-DLSzOar0.js} +4 -4
- package/dist/{index-Bw96u8wR.cjs → index-Df6NZqSR.cjs} +1 -1
- package/dist/{index-Dn8la5dB.js → index-Dn4SxfsB.js} +4 -4
- package/dist/{index-BBqMNSK_.cjs → index-DsUHBIBK.cjs} +1 -1
- package/dist/{index-CZrl0Fev.js → index-DsYFSymz.js} +4 -4
- package/dist/{index-D8IKCabu.cjs → index-DyxA9Pwa.cjs} +1 -1
- package/dist/{index-DqD_Hyzj.js → index-GsF9RQ1o.js} +5 -5
- package/dist/{index-CmXpvujN.js → index-HkaBIp59.js} +1 -1
- package/dist/{index-DIrvEGH-.js → index-MFHk1eEx.js} +4 -4
- package/dist/{index-CeO47quJ.js → index-S1z7XnLi.js} +3 -3
- package/dist/{index-Bkm9CeI0.js → index-V9vs-ScR.js} +1 -1
- package/dist/{index-i_Upngyu.js → index-Y9kXXuBJ.js} +5 -5
- package/dist/{index-Cnd5Q6NW.js → index-Z04SVHEk.js} +1 -1
- package/dist/{index-CJ_rdkr8.js → index-hBF27unU.js} +7021 -7051
- package/dist/{index-B92TAYd7.cjs → index-hNt29cU7.cjs} +1 -1
- package/dist/{index--8CVtL-E.cjs → index-rTgVjPGa.cjs} +1 -1
- package/dist/{index-C3HU3x5-.cjs → index-uYHnI5wK.cjs} +1 -1
- package/dist/{index-l52VRsV3.cjs → index-v95HBZGa.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-B7vWHeIj.cjs → index.vue_vue_type_script_setup_true_lang-CeNJa0E4.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DRLcD2rZ.js → index.vue_vue_type_script_setup_true_lang-DBVpFaiR.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CixHWeC-.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CJBQxdRk.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CtG0TYo3.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dz4Fg0J1.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-DaN_9lgK.cjs → index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-Biklcd9I.cjs} +9 -9
- package/dist/{index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-CWG3xdoz.js → index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-C5-XfA7-.js} +2090 -2084
- package/dist/{index.vue_vue_type_style_index_0_scoped_9a453346_lang-CmpUd8Zj.cjs → index.vue_vue_type_style_index_0_scoped_9a453346_lang-C1BOdGun.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_9a453346_lang-BOENsqzc.js → index.vue_vue_type_style_index_0_scoped_9a453346_lang-DgHSOxfw.js} +8 -8
- package/dist/{login-afGmER0u.js → login-B63LEngH.js} +1 -1
- package/dist/{login-BBvcYktp.cjs → login-Db7lD3cs.cjs} +1 -1
- package/dist/{main-Cd47eVrO.cjs → main-B_yFDeIi.cjs} +1 -1
- package/dist/{main-BL272YWP.js → main-DjbrOkYk.js} +5 -5
- package/dist/{menu-DYsWoy6Z.cjs → menu-1olc0mrV.cjs} +9 -9
- package/dist/{menu-Qw1eGtzq.js → menu-BxkEScwt.js} +201 -199
- package/dist/{modelComp-y7HaQuVQ.js → modelComp-Bj7Q1JDt.js} +1 -1
- package/dist/{modelComp-8s0tWZDU.cjs → modelComp-C5jCD_od.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +9 -9
- package/dist/{threeModel-C-n4eIhM.cjs → threeModel-BFW_sW2p.cjs} +1 -1
- package/dist/{threeModel-CbKUUt8N.js → threeModel-CGO5VFhW.js} +142 -142
- package/package.json +1 -1
- package/dist/index-C5a3rVz_.js +0 -4458
- package/dist/index-Cy0LSoSr.cjs +0 -1
- package/dist/index-RFCzxTjm.cjs +0 -87
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref as H, resolveComponent as W, createBlock as $, openBlock as _, defineComponent as lt, onMounted as qt, withCtx as I, createVNode as U, createElementVNode as Y, createElementBlock as R, Fragment as he, renderList as ce, createTextVNode as _t, toDisplayString as _e, watch as Xe, normalizeStyle as De, createCommentVNode as Q, unref as ni, createSlots as Ht, resolveDynamicComponent as Ji, normalizeClass as wl, nextTick as ei, renderSlot as ne, normalizeProps as xc, guardReactiveProps as yc, mergeProps as mn, computed as te, watchEffect as Ci, onUnmounted as Ls, h as uo, reactive as bl, onBeforeUnmount as Sc, toRefs as kc } from "vue";
|
|
2
2
|
import { S as fo } from "./index-BHtNKL1L.js";
|
|
3
|
-
import { d as po, S as go, n as Cc, r as Oc, H as _c } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
3
|
+
import { d as po, S as go, n as Cc, r as Oc, H as _c } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CJBQxdRk.js";
|
|
4
4
|
import { _ as xe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
import { n as Mc, o as Tc, c as vt, E as xl, g as Dc, u as Ac, s as Pc, b as C2, bU as Ec, c6 as Bc, b2 as zc, aG as Vc } from "./menu-
|
|
6
|
-
import { _ as Lc } from "./index.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { n as Mc, o as Tc, c as vt, E as xl, g as Dc, u as Ac, s as Pc, b as C2, bU as Ec, c6 as Bc, b2 as zc, aG as Vc } from "./menu-BxkEScwt.js";
|
|
6
|
+
import { _ as Lc } from "./index.vue_vue_type_script_setup_true_lang-DBVpFaiR.js";
|
|
7
7
|
var Rc = "[object Number]";
|
|
8
8
|
function mo(n) {
|
|
9
9
|
return typeof n == "number" || Mc(n) && Tc(n) == Rc;
|
|
@@ -643,11 +643,11 @@ const tf = { class: "icon-popover" }, nf = ["onClick"], sf = /* @__PURE__ */ lt(
|
|
|
643
643
|
style: De({ flexDirection: n.isRowFlex ? "row" : "column", alignItems: n.isRowFlex ? "center" : "start", height: n.isRowFlex ? "100%" : "auto" })
|
|
644
644
|
}, Ht({
|
|
645
645
|
default: I(() => {
|
|
646
|
-
var D, T, F;
|
|
646
|
+
var D, T, F, j;
|
|
647
647
|
return [
|
|
648
648
|
v != null && v.isFormColHidden ? Q("", !0) : (_(), $(Ji(h((v == null ? void 0 : v.type) ?? "Input")), {
|
|
649
649
|
modelValue: l.value[(v == null ? void 0 : v.prop) ?? v.name],
|
|
650
|
-
"onUpdate:modelValue": (
|
|
650
|
+
"onUpdate:modelValue": (N) => l.value[(v == null ? void 0 : v.prop) ?? v.name] = N,
|
|
651
651
|
key: v == null ? void 0 : v.type,
|
|
652
652
|
content: (v == null ? void 0 : v.contents) ?? [],
|
|
653
653
|
isEdit: t == null ? void 0 : t.isEdit,
|
|
@@ -658,10 +658,10 @@ const tf = { class: "icon-popover" }, nf = ["onClick"], sf = /* @__PURE__ */ lt(
|
|
|
658
658
|
onBlurChange: d,
|
|
659
659
|
config: v == null ? void 0 : v.config
|
|
660
660
|
}, null, 40, ["modelValue", "onUpdate:modelValue", "content", "isEdit", "optionUrl", "config"])),
|
|
661
|
-
typeof l.value[(v == null ? void 0 : v.prop) ?? v.name] == "string" && ((D = l.value[(v == null ? void 0 : v.prop) ?? v.name]) != null && D.includes(".stl") || (T = l.value[(v == null ? void 0 : v.prop) ?? v.name]) != null && T.includes(".obj") || (F = l.value[(v == null ? void 0 : v.prop) ?? v.name]) != null && F.includes(".urdf")) ? (_(), $(_0, {
|
|
661
|
+
typeof l.value[(v == null ? void 0 : v.prop) ?? v.name] == "string" && ((D = l.value[(v == null ? void 0 : v.prop) ?? v.name]) != null && D.includes(".stl") || (T = l.value[(v == null ? void 0 : v.prop) ?? v.name]) != null && T.includes(".obj") || (F = l.value[(v == null ? void 0 : v.prop) ?? v.name]) != null && F.includes(".urdf") || (j = l.value[(v == null ? void 0 : v.prop) ?? v.name]) != null && j.includes(".ls")) ? (_(), $(_0, {
|
|
662
662
|
key: 1,
|
|
663
663
|
class: "calculator-content",
|
|
664
|
-
onClickTrigger: (
|
|
664
|
+
onClickTrigger: (N) => u(l.value[(v == null ? void 0 : v.prop) ?? v.name]),
|
|
665
665
|
modelValue: "预览"
|
|
666
666
|
}, null, 8, ["onClickTrigger"])) : Q("", !0)
|
|
667
667
|
];
|
|
@@ -726,11 +726,11 @@ const tf = { class: "icon-popover" }, nf = ["onClick"], sf = /* @__PURE__ */ lt(
|
|
|
726
726
|
})
|
|
727
727
|
}, Ht({
|
|
728
728
|
default: I(() => {
|
|
729
|
-
var D, T, F;
|
|
729
|
+
var D, T, F, j;
|
|
730
730
|
return [
|
|
731
731
|
v != null && v.isFormColHidden ? Q("", !0) : (_(), $(Ji(h((v == null ? void 0 : v.type) ?? "Input")), {
|
|
732
732
|
modelValue: l.value[(v == null ? void 0 : v.prop) ?? v.name],
|
|
733
|
-
"onUpdate:modelValue": (
|
|
733
|
+
"onUpdate:modelValue": (N) => l.value[(v == null ? void 0 : v.prop) ?? v.name] = N,
|
|
734
734
|
isEdit: t == null ? void 0 : t.isEdit,
|
|
735
735
|
content: (v == null ? void 0 : v.contents) ?? [],
|
|
736
736
|
onClickTrigger: c,
|
|
@@ -741,10 +741,10 @@ const tf = { class: "icon-popover" }, nf = ["onClick"], sf = /* @__PURE__ */ lt(
|
|
|
741
741
|
onBlurChange: d,
|
|
742
742
|
config: v == null ? void 0 : v.config
|
|
743
743
|
}, null, 40, ["modelValue", "onUpdate:modelValue", "isEdit", "content", "optionUrl", "config"])),
|
|
744
|
-
typeof l.value[(v == null ? void 0 : v.prop) ?? v.name] == "string" && ((D = l.value[(v == null ? void 0 : v.prop) ?? v.name]) != null && D.includes(".stl") || (T = l.value[(v == null ? void 0 : v.prop) ?? v.name]) != null && T.includes(".obj") || (F = l.value[(v == null ? void 0 : v.prop) ?? v.name]) != null && F.includes(".urdf")) ? (_(), $(_0, {
|
|
744
|
+
typeof l.value[(v == null ? void 0 : v.prop) ?? v.name] == "string" && ((D = l.value[(v == null ? void 0 : v.prop) ?? v.name]) != null && D.includes(".stl") || (T = l.value[(v == null ? void 0 : v.prop) ?? v.name]) != null && T.includes(".obj") || (F = l.value[(v == null ? void 0 : v.prop) ?? v.name]) != null && F.includes(".urdf") || (j = l.value[(v == null ? void 0 : v.prop) ?? v.name]) != null && j.includes(".ls")) ? (_(), $(_0, {
|
|
745
745
|
key: 1,
|
|
746
746
|
class: "calculator-content form-preview",
|
|
747
|
-
onClickTrigger: (
|
|
747
|
+
onClickTrigger: (N) => u(l.value[(v == null ? void 0 : v.prop) ?? v.name]),
|
|
748
748
|
modelValue: "预览"
|
|
749
749
|
}, null, 8, ["onClickTrigger"])) : Q("", !0)
|
|
750
750
|
];
|
|
@@ -808,7 +808,7 @@ const tf = { class: "icon-popover" }, nf = ["onClick"], sf = /* @__PURE__ */ lt(
|
|
|
808
808
|
], 4);
|
|
809
809
|
};
|
|
810
810
|
}
|
|
811
|
-
}, mf = /* @__PURE__ */ xe(gf, [["__scopeId", "data-v-
|
|
811
|
+
}, mf = /* @__PURE__ */ xe(gf, [["__scopeId", "data-v-c13bd9dc"]]), vf = {
|
|
812
812
|
__name: "index",
|
|
813
813
|
props: {
|
|
814
814
|
value: String,
|
|
@@ -20050,22 +20050,22 @@ const L7 = /* @__PURE__ */ V.inputHandler.of((n, e, t, i, s) => {
|
|
|
20050
20050
|
}
|
|
20051
20051
|
}, F7 = /* @__PURE__ */ xe(W7, [["__scopeId", "data-v-92be70b7"]]), G7 = { class: "file-preview" }, j7 = {
|
|
20052
20052
|
key: 0,
|
|
20053
|
-
class: "preview-
|
|
20053
|
+
class: "preview-docx"
|
|
20054
20054
|
}, q7 = {
|
|
20055
20055
|
key: 1,
|
|
20056
|
-
class: "preview-
|
|
20056
|
+
class: "preview-xlsx"
|
|
20057
20057
|
}, U7 = {
|
|
20058
20058
|
key: 2,
|
|
20059
|
-
class: "preview-
|
|
20059
|
+
class: "preview-pdf"
|
|
20060
20060
|
}, Y7 = {
|
|
20061
20061
|
key: 3,
|
|
20062
|
-
class: "preview-
|
|
20062
|
+
class: "preview-xml"
|
|
20063
20063
|
}, K7 = {
|
|
20064
20064
|
key: 4,
|
|
20065
20065
|
class: "preview-xml"
|
|
20066
20066
|
}, X7 = {
|
|
20067
20067
|
key: 5,
|
|
20068
|
-
class: "preview-
|
|
20068
|
+
class: "preview-txt"
|
|
20069
20069
|
}, Q7 = {
|
|
20070
20070
|
key: 6,
|
|
20071
20071
|
class: "not-support"
|
|
@@ -20077,7 +20077,7 @@ const L7 = /* @__PURE__ */ V.inputHandler.of((n, e, t, i, s) => {
|
|
|
20077
20077
|
},
|
|
20078
20078
|
emits: ["destroy"],
|
|
20079
20079
|
setup(n, { emit: e }) {
|
|
20080
|
-
const t = e, i = n, s = te(() => i.blobUrl), o = te(() => i.fileName), r = te(() => {
|
|
20080
|
+
const t = e, i = n, s = te(() => (console.log(232, i.blobUrl), i.blobUrl)), o = te(() => i.fileName), r = te(() => {
|
|
20081
20081
|
const m = o.value;
|
|
20082
20082
|
if (!m) return;
|
|
20083
20083
|
const w = m.split(".");
|
|
@@ -20089,48 +20089,47 @@ const L7 = /* @__PURE__ */ V.inputHandler.of((n, e, t, i, s) => {
|
|
|
20089
20089
|
return Ls(() => {
|
|
20090
20090
|
t("destroy");
|
|
20091
20091
|
}), (m, w) => (_(), R("div", G7, [
|
|
20092
|
-
|
|
20093
|
-
U(ed, {
|
|
20094
|
-
fileName: o.value,
|
|
20095
|
-
blobUrl: s.value
|
|
20096
|
-
}, null, 8, ["fileName", "blobUrl"])
|
|
20097
|
-
])) : Q("", !0),
|
|
20098
|
-
u.value ? (_(), R("div", q7, [
|
|
20092
|
+
u.value ? (_(), R("div", j7, [
|
|
20099
20093
|
U(nd, {
|
|
20100
20094
|
fileName: o.value,
|
|
20101
20095
|
blobUrl: s.value
|
|
20102
20096
|
}, null, 8, ["fileName", "blobUrl"])
|
|
20103
20097
|
])) : Q("", !0),
|
|
20104
|
-
f.value ? (_(), R("div",
|
|
20098
|
+
f.value ? (_(), R("div", q7, [
|
|
20105
20099
|
U(rd, {
|
|
20106
20100
|
fileName: o.value,
|
|
20107
20101
|
blobUrl: s.value
|
|
20108
20102
|
}, null, 8, ["fileName", "blobUrl"])
|
|
20109
20103
|
])) : Q("", !0),
|
|
20110
|
-
d.value ? (_(), R("div",
|
|
20104
|
+
d.value ? (_(), R("div", U7, [
|
|
20111
20105
|
U(cd, {
|
|
20112
20106
|
fileName: o.value,
|
|
20113
20107
|
blobUrl: s.value
|
|
20114
20108
|
}, null, 8, ["fileName", "blobUrl"])
|
|
20115
20109
|
])) : Q("", !0),
|
|
20116
|
-
h.value ? (_(), R("div",
|
|
20110
|
+
h.value ? (_(), R("div", Y7, [
|
|
20117
20111
|
U(H7, {
|
|
20118
20112
|
fileName: o.value,
|
|
20119
20113
|
blobUrl: s.value
|
|
20120
20114
|
}, null, 8, ["fileName", "blobUrl"])
|
|
20121
20115
|
])) : Q("", !0),
|
|
20122
|
-
p.value ? (_(), R("div",
|
|
20116
|
+
p.value ? (_(), R("div", K7, [
|
|
20123
20117
|
U(F7, {
|
|
20124
20118
|
fileName: o.value,
|
|
20125
20119
|
blobUrl: s.value
|
|
20126
20120
|
}, null, 8, ["fileName", "blobUrl"])
|
|
20127
|
-
])) :
|
|
20121
|
+
])) : (_(), R("div", X7, [
|
|
20122
|
+
U(ed, {
|
|
20123
|
+
fileName: o.value,
|
|
20124
|
+
blobUrl: s.value
|
|
20125
|
+
}, null, 8, ["fileName", "blobUrl"])
|
|
20126
|
+
])),
|
|
20128
20127
|
g.value ? (_(), R("div", Q7, w[0] || (w[0] = [
|
|
20129
20128
|
Y("div", null, "当前文件格式暂不支持预览", -1)
|
|
20130
20129
|
]))) : Q("", !0)
|
|
20131
20130
|
]));
|
|
20132
20131
|
}
|
|
20133
|
-
}, lo = /* @__PURE__ */ xe(J7, [["__scopeId", "data-v-
|
|
20132
|
+
}, lo = /* @__PURE__ */ xe(J7, [["__scopeId", "data-v-13c9f682"]]), Z7 = {
|
|
20134
20133
|
key: 0,
|
|
20135
20134
|
class: "upload-value"
|
|
20136
20135
|
}, e9 = { class: "upload-content-title-wrap" }, t9 = { class: "upload-content-title" }, i9 = { class: "icon" }, n9 = { style: { display: "flex", "justify-content": "space-between", width: "100%" } }, s9 = { class: "upload-content-title" }, o9 = { class: "icon" }, r9 = { class: "dialog-footer" }, l9 = {
|
|
@@ -21317,13 +21316,13 @@ export {
|
|
|
21317
21316
|
wf as c,
|
|
21318
21317
|
Xf as d,
|
|
21319
21318
|
mf as e,
|
|
21320
|
-
|
|
21319
|
+
z9 as f,
|
|
21321
21320
|
ef as g,
|
|
21322
|
-
|
|
21323
|
-
|
|
21324
|
-
|
|
21325
|
-
|
|
21326
|
-
|
|
21321
|
+
Ic as h,
|
|
21322
|
+
ho as i,
|
|
21323
|
+
bc as j,
|
|
21324
|
+
zf as k,
|
|
21325
|
+
bf as l,
|
|
21327
21326
|
j9 as m,
|
|
21328
21327
|
K9 as n,
|
|
21329
21328
|
rs as s,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dz4Fg0J1.cjs");const n=require("./menu-1olc0mrV.cjs"),u=require("./index-Cplpn8hS.cjs"),o=require("./index-BgX_ia5H.cjs"),c=require("./index-CrE-2oNV.cjs"),i=e.defineComponent({__name:"index",setup(s){const t=e.reactive({...o.State}),a=n.useMenuState(),{activeMenuPath:r}=n.storeToRefs(a);return e.onMounted(async()=>{t.structureId=await c.getActivePageStructureId(r.value)}),(d,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(u.ssTable,{itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=i;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createElementBlock as h, openBlock as O, createElementVNode as o, renderSlot as u, defineComponent as Z, ref as L, resolveComponent as l, createVNode as S, withCtx as c, reactive as W, watch as N, unref as v, toDisplayString as r, createTextVNode as j } from "vue";
|
|
2
2
|
import { _ as H } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import { a as CA, l as BA, b as QA, p as iA, E as K, d as oA, g as G } from "./menu-
|
|
3
|
+
import { a as CA, l as BA, b as QA, p as iA, E as K, d as oA, g as G } from "./menu-BxkEScwt.js";
|
|
4
4
|
import { useRouter as cA } from "vue-router";
|
|
5
|
-
import { u as nA } from "./login-
|
|
6
|
-
import { v as RA } from "./index-
|
|
5
|
+
import { u as nA } from "./login-B63LEngH.js";
|
|
6
|
+
import { v as RA } from "./index-D8wJ8OVO.js";
|
|
7
7
|
import { d as wA } from "./crypto-BRyGpjGR.js";
|
|
8
|
-
import { r as sA, g as eA, c as tA, a as SA, b as JA, d as aA, h as dA } from "./index-
|
|
8
|
+
import { r as sA, g as eA, c as tA, a as SA, b as JA, d as aA, h as dA } from "./index-DLSzOar0.js";
|
|
9
9
|
const FA = {}, UA = { class: "header-wrapper" }, DA = { class: "header-horizontal" }, kA = { class: "header-logo" }, rA = { class: "header-cTitle" }, uA = { class: "header-horizontal" }, lA = { class: "header-eTitle" };
|
|
10
10
|
function xA(d, x) {
|
|
11
11
|
return O(), h("div", UA, [
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref as l, computed as E, reactive as H, nextTick as X, watch as Y } from "vue";
|
|
2
|
-
import { bR as Pe, g as N, s as S, E as g, c as O, bO as Z, bM as m, bP as ee, p as k, u as te } from "./menu-
|
|
3
|
-
import { u as se } from "./login-
|
|
4
|
-
import { u as we } from "./modelComp-
|
|
2
|
+
import { bR as Pe, g as N, s as S, E as g, c as O, bO as Z, bM as m, bP as ee, p as k, u as te } from "./menu-BxkEScwt.js";
|
|
3
|
+
import { u as se } from "./login-B63LEngH.js";
|
|
4
|
+
import { u as we } from "./modelComp-Bj7Q1JDt.js";
|
|
5
5
|
import { d as ne, i as De, e as G } from "./crypto-BRyGpjGR.js";
|
|
6
|
-
import { E as $e } from "./index-
|
|
6
|
+
import { E as $e } from "./index-HkaBIp59.js";
|
|
7
7
|
const re = Pe("authorityState", {
|
|
8
8
|
state: () => ({
|
|
9
9
|
routerPageStructures: []
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dz4Fg0J1.cjs");const r=require("./menu-1olc0mrV.cjs"),k=require("./index-Cplpn8hS.cjs"),s=require("./index-CrE-2oNV.cjs"),x=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={class:"role-wrapper"},V={class:"role-dialog-header"},b=["title"],v={class:"dialog-footer"},w=e.defineComponent({__name:"index",setup(D){const u=r.useMenuState(),{menus:d,activeMenuPath:h}=r.storeToRefs(u),t=e.reactive({...s.State$1}),{treeRef:p}=s.State$1;return e.onMounted(async()=>{await t.getActivePageStructureId(h.value)}),e.watch(()=>d.value,c=>{e.nextTick(()=>{const o=r.cloneDeep(c);t.menuData=t.addButtonsToTree(o,t.structureButtons)})},{immediate:!0,deep:!0}),(c,o)=>{const m=e.resolveComponent("el-checkbox"),g=e.resolveComponent("el-checkbox-group"),_=e.resolveComponent("el-tree"),i=e.resolveComponent("el-button"),C=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",f,[e.createVNode(k.ssTable,{compName:t.compName,itemData:t.pageDataFiltered,changedContent:t.changedRow,onChange:t.handleItemDataChange,onOnButtonClick:t.clickRowButton},null,8,["compName","itemData","changedContent","onChange","onOnButtonClick"]),e.createVNode(C,{modelValue:t.authorizeDialog.show,"onUpdate:modelValue":o[0]||(o[0]=l=>t.authorizeDialog.show=l),width:t.authorizeDialog.width,draggable:t.authorizeDialog.draggable,"before-close":t.closeAuthorizeDialog,class:"role-dialog"},{header:e.withCtx(()=>[e.createElementVNode("div",V,e.toDisplayString(t.authorizeDialog.title),1)]),footer:e.withCtx(()=>[e.createElementVNode("div",v,[e.createVNode(i,{id:"themeBorderButton",onClick:t.closeAuthorizeDialog},{default:e.withCtx(()=>o[1]||(o[1]=[e.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),e.createVNode(i,{id:"themeButton",onClick:t.clickSubmitAuthority},{default:e.withCtx(()=>o[2]||(o[2]=[e.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),default:e.withCtx(()=>[e.createVNode(_,{class:"role-tree",ref_key:"treeRef",ref:p,data:t.menuData,"expand-on-click-node":!1,"node-key":"path",props:{children:"children",label:"title",path:"path"},"highlight-current":"","default-expand-all":"","check-on-click-leaf":!1,"check-strictly":"",onCheckChange:t.handleNodeCheckChange,style:{height:"500px","overflow-y":"auto"}},{default:e.withCtx(({node:l,data:n})=>[e.createElementVNode("span",{class:"node-text",title:l==null?void 0:l.label},e.toDisplayString(l==null?void 0:l.label),9,b),e.createVNode(g,{modelValue:n.checkedButtons,"onUpdate:modelValue":a=>n.checkedButtons=a,onChange:a=>t.handleNodeBtnChange(a,n),class:"node-buttons"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.renderButtons,a=>(e.openBlock(),e.createBlock(m,{key:a.title,label:a.title,value:a.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.title),1)]),_:2},1032,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:1},8,["data","onCheckChange"])]),_:1},8,["modelValue","width","draggable","before-close"])])}}}),B=x._export_sfc(w,[["__scopeId","data-v-8043bf84"]]);exports.default=B;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as C, reactive as k, ref as v, onMounted as D, nextTick as b, resolveComponent as i, resolveDirective as T, createElementBlock as u, openBlock as m, createVNode as t, withCtx as n, withDirectives as w, createElementVNode as p, createTextVNode as _ } from "vue";
|
|
2
|
-
import { S as x } from "./index-
|
|
3
|
-
import { D as B } from "./index-
|
|
4
|
-
import { s as F, e as y } from "./index-
|
|
5
|
-
import { u as S, p as I, s as N } from "./menu-
|
|
2
|
+
import { S as x } from "./index-B807Lss8.js";
|
|
3
|
+
import { D as B } from "./index-Y9kXXuBJ.js";
|
|
4
|
+
import { s as F, e as y } from "./index-DFX5NE_3.js";
|
|
5
|
+
import { u as S, p as I, s as N } from "./menu-BxkEScwt.js";
|
|
6
6
|
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const E = { class: "menu-module" }, M = {
|
|
8
8
|
class: "table-wrap",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),g=require("./index-
|
|
1
|
+
"use strict";const e=require("vue"),g=require("./index-BsQ8_gbw.cjs"),c=require("./menu-1olc0mrV.cjs"),B=require("./modelComp-C5jCD_od.cjs");require("./array-C1gcNGaP.cjs");const y=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),T=require("./index-C31XRLFj.cjs"),F=require("./index-Cuz54Fkl.cjs"),O=require("./index-v95HBZGa.cjs"),R={class:"type-select"},b=["onClick"],L={class:"list-icon"},U={__name:"index",setup(V){const u=B.useModelComp(c.pinia),{itemData:r}=c.storeToRefs(u),C=_=>{const d=c.cloneDeep(r.value);d.push({comp:_.comp,name:_.name,compData:[]}),u.setItemData(d)};return(_,d)=>{const i=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",R,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(g.slotContent),(f,v)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",key:v},[e.createElementVNode("div",{class:"list-content",onClick:k=>C(f)},[e.createElementVNode("div",L,[e.createVNode(i,{name:f.icon},null,8,["name"])]),e.createElementVNode("div",null,e.toDisplayString(f.name),1)],8,b)]))),128))])}}},z=y._export_sfc(U,[["__scopeId","data-v-1f87163f"]]),H={class:"fill-content"},j={class:"operate-content"},A={class:"collapse-title-content"},G={class:"collapse-title-item"},J={key:1},K=["onClick"],P={class:"icon-content"},Q={key:0,class:"edit-content"},W=["onClick"],X={class:"comp-child"},Y={__name:"index",setup(V){const u=B.useModelComp(c.pinia),{itemData:r,originalData:C}=c.storeToRefs(u),_=e.ref([]);e.ref([]);const d=e.ref([]),i=e.ref([]),f=s=>{var n;let a=(n=c.cloneDeep(i.value))==null?void 0:n.map((t,o)=>(s===o&&(t.content=!0),t));i.value=a},v=s=>{var n;let a=(n=c.cloneDeep(i.value))==null?void 0:n.map((t,o)=>(s===o&&(t.content=!1),t));i.value=a,_.value=c.cloneDeep(r.value)},k=(s,a)=>{var h;let n=(h=c.cloneDeep(i.value))==null?void 0:h.map((l,m)=>(s===m&&(l.content=!1),l));i.value=n;const t=c.cloneDeep(r.value),o=t==null?void 0:t.filter((l,m)=>(m===s&&(l.name=a),l));u.setOriginalData(o),u.setItemData(o)};e.watch(()=>r.value,()=>{var s,a,n;!r.value||((s=r.value)==null?void 0:s.length)===0?_.value=[]:_.value=(a=c.cloneDeep(r.value))==null?void 0:a.filter(t=>(t==null?void 0:t.comp)!=="methodButton"),d.value=_.value,i.value=(n=c.cloneDeep(d.value))==null?void 0:n.map((t,o)=>({id:o,content:!1}))},{deep:!0,immediate:!0});const S=s=>g.getComponent(s),M=(s,a,n)=>{var o,h;if(!s)return;let t=c.cloneDeep(r.value);t=(o=t==null?void 0:t.map((l,m)=>(m===n&&(l.compData=s),l)))==null?void 0:o.filter(l=>(l==null?void 0:l.comp)!=="methodButton"),i.value=(h=c.cloneDeep(t))==null?void 0:h.map((l,m)=>({id:m,content:!1})),u.setOriginalData(t),u.setItemData(t)},q=s=>{O.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const a=c.cloneDeep(r.value),n=a==null?void 0:a.filter((t,o)=>o!==s);u.setOriginalData(n),u.setItemData(n),c.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(s,a)=>{const n=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",H,[a[1]||(a[1]=e.createElementVNode("div",{class:"fill-operate"},e.toDisplayString("操作栏"),-1)),e.createElementVNode("div",j,[e.createVNode(T.default,{class:"collapse-content",collapseContents:_.value},{title:e.withCtx(({item:t,index:o})=>{var h,l,m,D,E,N,w,x,$,I;return[e.createElementVNode("div",A,[e.createElementVNode("div",G,[(l=(h=i.value)==null?void 0:h.find(p=>p.id===o))!=null&&l.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:t.name&&t.name!==""?"8px":"0px"})},e.toDisplayString(t.name),5)),(D=(m=i.value)==null?void 0:m.find(p=>p.id===o))!=null&&D.content?(e.openBlock(),e.createElementBlock("div",J,[e.createVNode(F._sfc_main$2,{modelValue:t.name,"onUpdate:modelValue":p=>t.name=p,onClick:a[0]||(a[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(N=(E=i.value)==null?void 0:E.find(p=>p.id===o))!=null&&N.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(p=>f(o),["stop"]),class:"icon-content"},[e.createVNode(n,{name:"Edit",style:{width:"16px",height:"16px"}})],8,K))]),e.createElementVNode("div",P,[(x=(w=i.value)==null?void 0:w.find(p=>p.id===o))!=null&&x.content?(e.openBlock(),e.createElementBlock("div",Q,[e.createVNode(n,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(p=>v(o),["stop"])},null,8,["onClick"]),e.createVNode(n,{name:"Save",onClick:e.withModifiers(p=>k(o,t.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(I=($=i.value)==null?void 0:$.find(p=>p.id===o))!=null&&I.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(p=>q(o),["stop"]),class:"icon-content"},[e.createVNode(n,{name:"Delete",style:{width:"16px",height:"16px"}})],8,W))])])]}),content:e.withCtx(({item:t,index:o})=>{var h,l;return[e.createElementVNode("div",X,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(S(t.comp+"Operate")),{itemContents:t==null?void 0:t.compData,originalItemContents:(l=(h=d.value)==null?void 0:h.find((m,D)=>D===o))==null?void 0:l.compData,onChange:m=>M(m,t,o)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},Z=y._export_sfc(Y,[["__scopeId","data-v-27bd1564"]]),ee={key:0,class:"show-content"},te={style:{display:"flex"}},oe={__name:"index",setup(V){const u=B.useModelComp(c.pinia),{itemData:r}=c.storeToRefs(u),C=e.ref([]);e.watch(()=>r.value,()=>{var d;!r.value||((d=r.value)==null?void 0:d.length)===0?C.value=[]:C.value=c.cloneDeep(r.value)},{deep:!0,immediate:!0});const _=d=>g.getComponent(d);return(d,i)=>{var f;return((f=C.value)==null?void 0:f.length)>0?(e.openBlock(),e.createElementBlock("div",ee,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(v,k)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:k},[e.createElementVNode("div",te,e.toDisplayString(v.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_(v.comp)),{itemData:v==null?void 0:v.compData,childItemData:v==null?void 0:v.itemChildData,key:k},null,8,["itemData","childItemData"]))]))),128))])):e.createCommentVNode("",!0)}}},ne=y._export_sfc(oe,[["__scopeId","data-v-bfa22d29"]]);exports.modelFill=Z;exports.modelSelect=z;exports.modelShow=ne;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as v, reactive as w, onMounted as V, watch as y, nextTick as N, resolveComponent as c, createElementBlock as p, openBlock as i, createVNode as n, withCtx as l, createElementVNode as s, toDisplayString as u, Fragment as z, renderList as S, createBlock as T, createTextVNode as d } from "vue";
|
|
2
2
|
import "./index-BHtNKL1L.js";
|
|
3
|
-
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
4
|
-
import { u as R, s as A, c as M } from "./menu-
|
|
5
|
-
import { D as I } from "./index-
|
|
6
|
-
import { j as _ } from "./index-
|
|
3
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CJBQxdRk.js";
|
|
4
|
+
import { u as R, s as A, c as M } from "./menu-BxkEScwt.js";
|
|
5
|
+
import { D as I } from "./index-Y9kXXuBJ.js";
|
|
6
|
+
import { j as _ } from "./index-DLSzOar0.js";
|
|
7
7
|
import { _ as U } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const E = { class: "role-wrapper" }, F = { class: "role-dialog-header" }, O = ["title"], P = { class: "dialog-footer" }, j = /* @__PURE__ */ v({
|
|
9
9
|
__name: "index",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const g=require("vue"),d=require("./menu-DYsWoy6Z.cjs"),ce=require("./modelComp-8s0tWZDU.cjs"),pe=require("./index-D0x4MvAM.cjs"),fe=require("./index-DOiC1373.cjs"),ie=require("./login-BBvcYktp.cjs"),A=ce.useModelComp(d.pinia),Z=pe.useUnit(d.pinia),I=d.useMenuState(d.pinia),{menus:m,configMenu:H,activeMenuPath:O,cacheStructures:E}=d.storeToRefs(I),_=g.ref(!1),ee=g.computed(()=>{var e,t;return[{key:"extraButton",contents:[]},{key:"rowButton",contents:[{label:"修改"}]},{key:"header",contents:[{label:"菜单名称",prop:"title",isFormColHidden:!1},{label:"菜单类型",prop:"menuType",formType:"select",options:[{label:"系统菜单",value:"集团"},{label:"公司",value:"公司"}],isTableColHidden:!1,isFormColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:(t=(e=d.cloneDeep(m.value))==null?void 0:e.map(l=>({...l,menuType:"系统菜单"})))==null?void 0:t.filter(l=>l.title!=="系统管理"&&l.title!=="平台管理")}]}),$=g.ref([]),x=g.ref([{label:"新建"}]),de=g.computed(()=>[{key:"extraButton",contents:x.value},{key:"rowButton",contents:[{label:"修改"},{label:"删除"}]},{key:"header",contents:[{label:"操作类型",prop:"operateType",formType:"select",options:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标",prop:"operateIcon",formType:"inputPopover",value:""},{label:"操作触发事件",prop:"trigger",formType:"select",options:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"配置一:",prop:"dialogConfig",formType:"button",value:"弹窗内容",isTableColHidden:!0},{label:"配置二:",prop:"contentConfig",formType:"button",value:"模块内容",isTableColHidden:!0},{label:"继承配置:",prop:"allowInherit",formType:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1,isTableColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:$.value}]),j=g.ref([]),k=g.ref({}),ge=g.ref({}),q=g.ref([{label:"菜单",prop:"path",isFormColHidden:!0,value:""},{label:"操作类型:",prop:"operateType",type:"select",contents:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标:",prop:"operateIcon",type:"inputPopover",value:""},{label:"操作触发事件:",prop:"trigger",type:"select",contents:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"生成的菜单图标:",prop:"menuIcon",type:"inputPopover",value:""},{label:"配置一:",prop:"dialogConfig",type:"button",value:"操作触发的弹窗结构"},{label:"配置二:",prop:"contentConfig",type:"button",value:"操作生成的模块结构",isFormColHidden:!1},{label:"",prop:"structureIds",type:"input",value:[],isFormColHidden:!0},{label:"继承配置:",prop:"allowInherit",type:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),R=e=>{var t;j.value=e?(t=q.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l:{...l,value:e?e[l==null?void 0:l.prop]:""}):q.value},ve=g.ref([{label:"查询"},{label:"重置"}]),ye=async()=>{},te=e=>e.map(t=>t.childMenus&&t.childMenus.length>0?{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title,children:te(t.childMenus)}:{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title}),v=g.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),J=g.ref([]),C=g.ref({}),h=g.ref(null),le=g.ref([]),ae=g.computed(()=>{var e;return(e=te(m.value))==null?void 0:e.filter(t=>t.title!=="系统管理"&&t.title!=="平台管理")}),oe=async e=>{var l,u,n,c;const t=await d.getInsofDataApi({key:{type:"subStructure",systemKey:sessionStorage.getItem("systemKey"),pageKey:e,version:1}});if(((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result){const r=(c=(n=t.data)==null?void 0:n.result)==null?void 0:c.map(p=>{var f;return{id:p==null?void 0:p.id,...(f=p==null?void 0:p.value)==null?void 0:f.pageData}});le.value=r,I.setCacheStructures({key:"contentConfig",data:r})}},be=async e=>{var t;_.value=!0,h.value={...e,rootNode:ie.findRootNodeByPath(ae.value,e.path)},I.setCacheStructures(null),(e==null?void 0:e.level)===0?x.value.splice(0):(x.value=[{label:"新建"}],J.value=(t=e==null?void 0:e.path)==null?void 0:t.split("/")),await I.setConfigMenu(null),await oe(e==null?void 0:e.path),await F(e)},he=e=>{switch(e){case"新建":return"create";case"修改":return"update";case"删除":return"delete"}},Ce=async(e,t)=>{var l,u;if(!h.value)return d.ElMessage.warning("请先选择菜单");if(v.type=he(e),J.value=[],A.setSubmitCurStructure(!1),Z.setSelectTitle([]),C.value=d.cloneDeep(t),v.type!=="delete"){switch(v.type){case"create":R(null),await I.setConfigMenu(null);break;case"update":R(C.value),await I.setConfigMenu(C.value),console.log("clickRowButton",C.value);break}await g.nextTick(),v.title=`【${v.type==="create"?(l=h.value)==null?void 0:l.path:(u=C.value)==null?void 0:u.path}】菜单配置${e}`,v.show=!0}else await ue(C.value,v.type)},ne=g.ref(!0),Ie=async e=>{var t;k.value=e,await I.setConfigMenu({...k.value,path:(t=h.value)==null?void 0:t.path}),ne.value=(e==null?void 0:e.operateType)!=="新增"};g.watch(()=>ne.value,async e=>{var t;await g.nextTick(),j.value=(t=q.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l.prop==="contentConfig"?{...l,isFormColHidden:e}:l:{...l,value:k.value?k.value[l==null?void 0:l.prop]:""})},{immediate:!0,deep:!0});const ke=g.ref(null),Te=async(e,t)=>{var r,p,f,s,b;if(v.type==="create"){const a=(p=(r=E.value)==null?void 0:r.filter(i=>(i==null?void 0:i.key)===t))==null?void 0:p.flatMap(i=>i==null?void 0:i.data);A.setItemData(a),I.setCacheStructures({key:t,data:a})}if(console.log("getTriggerStructures1",e==null?void 0:e.structureIds,t),!(e!=null&&e.structureIds)||((f=e==null?void 0:e.structureIds)==null?void 0:f.length)===0)return;const l=(b=(s=e==null?void 0:e.structureIds)==null?void 0:s.filter(a=>(a==null?void 0:a.key)===t))==null?void 0:b.map(a=>a==null?void 0:a.id);let u=l==null?void 0:l.map(a=>{if(a)return d.getInsofDataApi({id:a})});const n=await Promise.all(u),c=n==null?void 0:n.every(a=>{var i;return((i=a==null?void 0:a.data)==null?void 0:i.code)===200});if(console.log("getTriggerStructures2",e==null?void 0:e.structureIds,t,n),c&&(n==null?void 0:n.length)>0){const a=n==null?void 0:n.map(i=>{var T,M,w,N,P,o,K;return{id:(w=(M=(T=i==null?void 0:i.data)==null?void 0:T.result)==null?void 0:M[0])==null?void 0:w.id,...(K=(o=(P=(N=i==null?void 0:i.data)==null?void 0:N.result)==null?void 0:P[0])==null?void 0:o.value)==null?void 0:K.pageData}});A.setItemData(a),I.setCacheStructures({key:t,data:a})}},Me=async e=>{var n,c,r,p,f;const t=e==="操作触发的弹窗结构"?"dialogConfig":"contentConfig";I.setButtonTriggerType(t),await Te(C.value,t);let l;(n=k.value)!=null&&n.subMenus&&((c=k.value)==null?void 0:c.subMenus.length)>0&&(l=(r=J.value)==null?void 0:r.map(s=>({value:s})),l.unshift({value:(p=C.value)==null?void 0:p.title}));let u;v.type==="create"?u={...k.value,path:(f=h.value)==null?void 0:f.path}:v.type==="update"&&(u=H.value),await I.setConfigMenu(u),Z.setSelectTitle(l),A.setIsEdit("edit")},F=async e=>{var l,u,n,c,r,p;const t=await d.getInsofDataApi({key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:O.value+"/"+(e==null?void 0:e.path),tableId:""}});((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result&&($.value=((c=(n=t.data)==null?void 0:n.result)==null?void 0:c.length)>0?(p=(r=t.data)==null?void 0:r.result)==null?void 0:p.map(f=>{var s;return{id:f==null?void 0:f.id,...(s=f==null?void 0:f.value)==null?void 0:s.tableData}}):[]),_.value=!1},B=async(e,t,l="contentConfig")=>{var u,n,c,r,p,f;try{let s,b;t==="create"?(s={key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:O.value+"/"+((u=h.value)==null?void 0:u.path),type:"structure",rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,structureBelong:l,parentTable:"",version:1},value:{pageData:e}},b=d.createInsofDataApi):t==="update"?(s={id:e==null?void 0:e.id,value:{pageData:e}},b=d.updateInsofDataApi):t==="delete"&&(s={id:e},b=d.deleteInsofDataApi);const a=await b(s);if(((r=a==null?void 0:a.data)==null?void 0:r.code)!==200)throw d.ElMessage.error("保存响应失败"),new Error("保存响应失败");const i=t==="create"?(p=a==null?void 0:a.data)==null?void 0:p.result:e==null?void 0:e.id;return{status:((f=a==null?void 0:a.data)==null?void 0:f.code)===200,data:{id:i,key:l}}}catch{d.ElMessage.error("保存响应失败")}},X=(e,t)=>{var f,s,b;const l=(f=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:f.map(a=>a==null?void 0:a.id),u=t.filter(a=>!(l!=null&&l.includes(a))),n=l==null?void 0:l.filter(a=>!t.includes(a));let c=null,r=null,p=null;return c=[...u,...n].filter(a=>a),r=(s=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:s.filter(a=>!(a!=null&&a.id)),p=(b=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:b.filter(a=>a==null?void 0:a.id).filter(a=>Object.keys(a).length>1),{deleteIds:c,createComps:r,updateComps:p}},Y=(e,t)=>{var u,n,c,r,p,f;let l=[];return((u=t==null?void 0:t.deleteIds)==null?void 0:u.length)>0&&((n=t==null?void 0:t.deleteIds)==null||n.forEach(s=>{l.push(B(s,"delete",e))})),((c=t==null?void 0:t.createComps)==null?void 0:c.length)>0&&((r=t==null?void 0:t.createComps)==null||r.forEach(s=>{l.push(B(s,"create",e))})),((p=t==null?void 0:t.updateComps)==null?void 0:p.length)>0&&((f=t==null?void 0:t.updateComps)==null||f.forEach(s=>{s!=null&&s.id&&l.push(B(s,"update",e))})),l},De=e=>{const t=new Map;return e.forEach(l=>{t.set(l.id,l)}),Array.from(t.values())},Se=async(e,t)=>{var l,u,n,c,r,p,f;try{const s=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="contentConfig"),b=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="dialogConfig");await g.nextTick();const a=(n=(u=(l=E.value)==null?void 0:l.filter(o=>(o==null?void 0:o.key)==="dialogConfig"))==null?void 0:u.flatMap(o=>o==null?void 0:o.data))==null?void 0:n.map(o=>o==null?void 0:o.id);let i=(p=(r=(c=E.value)==null?void 0:c.filter(o=>(o==null?void 0:o.key)==="contentConfig"))==null?void 0:r.flatMap(o=>o==null?void 0:o.data))==null?void 0:p.map(o=>o==null?void 0:o.id);i=[...i,...(f=le.value)==null?void 0:f.map(o=>o==null?void 0:o.id)];const T=X(b,a),M=X(s,i),w=Y("dialogConfig",T),N=Y("contentConfig",M),P=[...w,...N];await Promise.all(P).then(o=>{var U,z,G,L,V,Q,W;if(!(o==null?void 0:o.every(y=>y.status)))return;let S=(U=o==null?void 0:o.flatMap(y=>y==null?void 0:y.data))==null?void 0:U.filter(y=>(y==null?void 0:y.id)!==null&&(y==null?void 0:y.id)!==void 0);if(((z=T==null?void 0:T.updateComps)==null?void 0:z.length)===0&&v.type==="update"){const y=(L=(G=C.value)==null?void 0:G.structureIds)==null?void 0:L.filter(D=>(D==null?void 0:D.key)==="dialogConfig");S=[...S,...y]}if(((V=M==null?void 0:M.updateComps)==null?void 0:V.length)===0&&v.type==="update"){const y=(W=(Q=C.value)==null?void 0:Q.structureIds)==null?void 0:W.filter(D=>(D==null?void 0:D.key)==="contentConfig");S=[...S,...y]}const se=De(S);ue({...t,isNotInitial:!0,structureIds:se},v.type)}).catch(o=>{d.ElMessage.error(o)})}catch(s){throw d.ElMessage.error(s),new Error(s)}},ue=async(e,t)=>{var n,c;let l,u;t==="create"?(l={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:O.value+"/"+((n=h.value)==null?void 0:n.path),tableId:"",rootNodePath:e==null?void 0:e.rootNodePath},value:{tableData:e}},u=d.createInsofDataApi):t==="update"?(l={id:e==null?void 0:e.id,value:{tableData:e}},u=d.updateInsofDataApi):t==="delete"&&(l={ids:[e.id,...(c=e==null?void 0:e.structureIds)==null?void 0:c.map(r=>r.id)]},u=d.batchDeleteInsofDataApi),fe.handleSubmitAsync(u,l,t).then(r=>{t==="create"&&$.value.push({...e,id:r}),t&&r&&d.ElMessage.success("响应成功"),F(h.value)})},we=async()=>{var l,u,n,c,r;const e=JSON.parse(d.cloneDeep(JSON.stringify(E.value)));await g.nextTick();const t=v.type==="create"?{...H.value,rootNodePath:(u=(l=h.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...H.value,rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,id:(r=C.value)==null?void 0:r.id};await Se(e,t),k.value={},v.show=!1,await F(h.value)},Ne=()=>{v.show=!1},re={comp:"Group",name:"/平台管理/菜单管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:ee.value,name:""}]}]},Pe=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:Ne,buttonValue:ve,changeTrigger:Ie,changedRow:ge,clickNodeTrigger:be,clickRowButton:Ce,clickSubmitForm:we,clickTrigger:Me,dialogInfo:v,formatFormData:R,getInitialSubStructure:oe,getTableDataAsync:F,handleItemDataChange:ye,inputForm:k,menuPageData:de,operatingForm:ke,pageData:ee,renderFormData:j,tableLoading:_,tempMenuPageData:re,treeData:ae},Symbol.toStringTag,{value:"Module"}));exports.State=Pe;exports.tempMenuPageData=re;
|
|
1
|
+
"use strict";const g=require("vue"),d=require("./menu-1olc0mrV.cjs"),ce=require("./modelComp-C5jCD_od.cjs"),pe=require("./index-Cplpn8hS.cjs"),fe=require("./index-CrE-2oNV.cjs"),ie=require("./login-Db7lD3cs.cjs"),A=ce.useModelComp(d.pinia),Z=pe.useUnit(d.pinia),I=d.useMenuState(d.pinia),{menus:m,configMenu:H,activeMenuPath:O,cacheStructures:E}=d.storeToRefs(I),_=g.ref(!1),ee=g.computed(()=>{var e,t;return[{key:"extraButton",contents:[]},{key:"rowButton",contents:[{label:"修改"}]},{key:"header",contents:[{label:"菜单名称",prop:"title",isFormColHidden:!1},{label:"菜单类型",prop:"menuType",formType:"select",options:[{label:"系统菜单",value:"集团"},{label:"公司",value:"公司"}],isTableColHidden:!1,isFormColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:(t=(e=d.cloneDeep(m.value))==null?void 0:e.map(l=>({...l,menuType:"系统菜单"})))==null?void 0:t.filter(l=>l.title!=="系统管理"&&l.title!=="平台管理")}]}),$=g.ref([]),x=g.ref([{label:"新建"}]),de=g.computed(()=>[{key:"extraButton",contents:x.value},{key:"rowButton",contents:[{label:"修改"},{label:"删除"}]},{key:"header",contents:[{label:"操作类型",prop:"operateType",formType:"select",options:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标",prop:"operateIcon",formType:"inputPopover",value:""},{label:"操作触发事件",prop:"trigger",formType:"select",options:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"配置一:",prop:"dialogConfig",formType:"button",value:"弹窗内容",isTableColHidden:!0},{label:"配置二:",prop:"contentConfig",formType:"button",value:"模块内容",isTableColHidden:!0},{label:"继承配置:",prop:"allowInherit",formType:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1,isTableColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:$.value}]),j=g.ref([]),k=g.ref({}),ge=g.ref({}),q=g.ref([{label:"菜单",prop:"path",isFormColHidden:!0,value:""},{label:"操作类型:",prop:"operateType",type:"select",contents:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标:",prop:"operateIcon",type:"inputPopover",value:""},{label:"操作触发事件:",prop:"trigger",type:"select",contents:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"生成的菜单图标:",prop:"menuIcon",type:"inputPopover",value:""},{label:"配置一:",prop:"dialogConfig",type:"button",value:"操作触发的弹窗结构"},{label:"配置二:",prop:"contentConfig",type:"button",value:"操作生成的模块结构",isFormColHidden:!1},{label:"",prop:"structureIds",type:"input",value:[],isFormColHidden:!0},{label:"继承配置:",prop:"allowInherit",type:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),R=e=>{var t;j.value=e?(t=q.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l:{...l,value:e?e[l==null?void 0:l.prop]:""}):q.value},ve=g.ref([{label:"查询"},{label:"重置"}]),ye=async()=>{},te=e=>e.map(t=>t.childMenus&&t.childMenus.length>0?{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title,children:te(t.childMenus)}:{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title}),v=g.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),J=g.ref([]),C=g.ref({}),h=g.ref(null),le=g.ref([]),ae=g.computed(()=>{var e;return(e=te(m.value))==null?void 0:e.filter(t=>t.title!=="系统管理"&&t.title!=="平台管理")}),oe=async e=>{var l,u,n,c;const t=await d.getInsofDataApi({key:{type:"subStructure",systemKey:sessionStorage.getItem("systemKey"),pageKey:e,version:1}});if(((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result){const r=(c=(n=t.data)==null?void 0:n.result)==null?void 0:c.map(p=>{var f;return{id:p==null?void 0:p.id,...(f=p==null?void 0:p.value)==null?void 0:f.pageData}});le.value=r,I.setCacheStructures({key:"contentConfig",data:r})}},be=async e=>{var t;_.value=!0,h.value={...e,rootNode:ie.findRootNodeByPath(ae.value,e.path)},I.setCacheStructures(null),(e==null?void 0:e.level)===0?x.value.splice(0):(x.value=[{label:"新建"}],J.value=(t=e==null?void 0:e.path)==null?void 0:t.split("/")),await I.setConfigMenu(null),await oe(e==null?void 0:e.path),await F(e)},he=e=>{switch(e){case"新建":return"create";case"修改":return"update";case"删除":return"delete"}},Ce=async(e,t)=>{var l,u;if(!h.value)return d.ElMessage.warning("请先选择菜单");if(v.type=he(e),J.value=[],A.setSubmitCurStructure(!1),Z.setSelectTitle([]),C.value=d.cloneDeep(t),v.type!=="delete"){switch(v.type){case"create":R(null),await I.setConfigMenu(null);break;case"update":R(C.value),await I.setConfigMenu(C.value),console.log("clickRowButton",C.value);break}await g.nextTick(),v.title=`【${v.type==="create"?(l=h.value)==null?void 0:l.path:(u=C.value)==null?void 0:u.path}】菜单配置${e}`,v.show=!0}else await ue(C.value,v.type)},ne=g.ref(!0),Ie=async e=>{var t;k.value=e,await I.setConfigMenu({...k.value,path:(t=h.value)==null?void 0:t.path}),ne.value=(e==null?void 0:e.operateType)!=="新增"};g.watch(()=>ne.value,async e=>{var t;await g.nextTick(),j.value=(t=q.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l.prop==="contentConfig"?{...l,isFormColHidden:e}:l:{...l,value:k.value?k.value[l==null?void 0:l.prop]:""})},{immediate:!0,deep:!0});const ke=g.ref(null),Te=async(e,t)=>{var r,p,f,s,b;if(v.type==="create"){const a=(p=(r=E.value)==null?void 0:r.filter(i=>(i==null?void 0:i.key)===t))==null?void 0:p.flatMap(i=>i==null?void 0:i.data);A.setItemData(a),I.setCacheStructures({key:t,data:a})}if(console.log("getTriggerStructures1",e==null?void 0:e.structureIds,t),!(e!=null&&e.structureIds)||((f=e==null?void 0:e.structureIds)==null?void 0:f.length)===0)return;const l=(b=(s=e==null?void 0:e.structureIds)==null?void 0:s.filter(a=>(a==null?void 0:a.key)===t))==null?void 0:b.map(a=>a==null?void 0:a.id);let u=l==null?void 0:l.map(a=>{if(a)return d.getInsofDataApi({id:a})});const n=await Promise.all(u),c=n==null?void 0:n.every(a=>{var i;return((i=a==null?void 0:a.data)==null?void 0:i.code)===200});if(console.log("getTriggerStructures2",e==null?void 0:e.structureIds,t,n),c&&(n==null?void 0:n.length)>0){const a=n==null?void 0:n.map(i=>{var T,M,w,N,P,o,K;return{id:(w=(M=(T=i==null?void 0:i.data)==null?void 0:T.result)==null?void 0:M[0])==null?void 0:w.id,...(K=(o=(P=(N=i==null?void 0:i.data)==null?void 0:N.result)==null?void 0:P[0])==null?void 0:o.value)==null?void 0:K.pageData}});A.setItemData(a),I.setCacheStructures({key:t,data:a})}},Me=async e=>{var n,c,r,p,f;const t=e==="操作触发的弹窗结构"?"dialogConfig":"contentConfig";I.setButtonTriggerType(t),await Te(C.value,t);let l;(n=k.value)!=null&&n.subMenus&&((c=k.value)==null?void 0:c.subMenus.length)>0&&(l=(r=J.value)==null?void 0:r.map(s=>({value:s})),l.unshift({value:(p=C.value)==null?void 0:p.title}));let u;v.type==="create"?u={...k.value,path:(f=h.value)==null?void 0:f.path}:v.type==="update"&&(u=H.value),await I.setConfigMenu(u),Z.setSelectTitle(l),A.setIsEdit("edit")},F=async e=>{var l,u,n,c,r,p;const t=await d.getInsofDataApi({key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:O.value+"/"+(e==null?void 0:e.path),tableId:""}});((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result&&($.value=((c=(n=t.data)==null?void 0:n.result)==null?void 0:c.length)>0?(p=(r=t.data)==null?void 0:r.result)==null?void 0:p.map(f=>{var s;return{id:f==null?void 0:f.id,...(s=f==null?void 0:f.value)==null?void 0:s.tableData}}):[]),_.value=!1},B=async(e,t,l="contentConfig")=>{var u,n,c,r,p,f;try{let s,b;t==="create"?(s={key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:O.value+"/"+((u=h.value)==null?void 0:u.path),type:"structure",rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,structureBelong:l,parentTable:"",version:1},value:{pageData:e}},b=d.createInsofDataApi):t==="update"?(s={id:e==null?void 0:e.id,value:{pageData:e}},b=d.updateInsofDataApi):t==="delete"&&(s={id:e},b=d.deleteInsofDataApi);const a=await b(s);if(((r=a==null?void 0:a.data)==null?void 0:r.code)!==200)throw d.ElMessage.error("保存响应失败"),new Error("保存响应失败");const i=t==="create"?(p=a==null?void 0:a.data)==null?void 0:p.result:e==null?void 0:e.id;return{status:((f=a==null?void 0:a.data)==null?void 0:f.code)===200,data:{id:i,key:l}}}catch{d.ElMessage.error("保存响应失败")}},X=(e,t)=>{var f,s,b;const l=(f=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:f.map(a=>a==null?void 0:a.id),u=t.filter(a=>!(l!=null&&l.includes(a))),n=l==null?void 0:l.filter(a=>!t.includes(a));let c=null,r=null,p=null;return c=[...u,...n].filter(a=>a),r=(s=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:s.filter(a=>!(a!=null&&a.id)),p=(b=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:b.filter(a=>a==null?void 0:a.id).filter(a=>Object.keys(a).length>1),{deleteIds:c,createComps:r,updateComps:p}},Y=(e,t)=>{var u,n,c,r,p,f;let l=[];return((u=t==null?void 0:t.deleteIds)==null?void 0:u.length)>0&&((n=t==null?void 0:t.deleteIds)==null||n.forEach(s=>{l.push(B(s,"delete",e))})),((c=t==null?void 0:t.createComps)==null?void 0:c.length)>0&&((r=t==null?void 0:t.createComps)==null||r.forEach(s=>{l.push(B(s,"create",e))})),((p=t==null?void 0:t.updateComps)==null?void 0:p.length)>0&&((f=t==null?void 0:t.updateComps)==null||f.forEach(s=>{s!=null&&s.id&&l.push(B(s,"update",e))})),l},De=e=>{const t=new Map;return e.forEach(l=>{t.set(l.id,l)}),Array.from(t.values())},Se=async(e,t)=>{var l,u,n,c,r,p,f;try{const s=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="contentConfig"),b=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="dialogConfig");await g.nextTick();const a=(n=(u=(l=E.value)==null?void 0:l.filter(o=>(o==null?void 0:o.key)==="dialogConfig"))==null?void 0:u.flatMap(o=>o==null?void 0:o.data))==null?void 0:n.map(o=>o==null?void 0:o.id);let i=(p=(r=(c=E.value)==null?void 0:c.filter(o=>(o==null?void 0:o.key)==="contentConfig"))==null?void 0:r.flatMap(o=>o==null?void 0:o.data))==null?void 0:p.map(o=>o==null?void 0:o.id);i=[...i,...(f=le.value)==null?void 0:f.map(o=>o==null?void 0:o.id)];const T=X(b,a),M=X(s,i),w=Y("dialogConfig",T),N=Y("contentConfig",M),P=[...w,...N];await Promise.all(P).then(o=>{var U,z,G,L,V,Q,W;if(!(o==null?void 0:o.every(y=>y.status)))return;let S=(U=o==null?void 0:o.flatMap(y=>y==null?void 0:y.data))==null?void 0:U.filter(y=>(y==null?void 0:y.id)!==null&&(y==null?void 0:y.id)!==void 0);if(((z=T==null?void 0:T.updateComps)==null?void 0:z.length)===0&&v.type==="update"){const y=(L=(G=C.value)==null?void 0:G.structureIds)==null?void 0:L.filter(D=>(D==null?void 0:D.key)==="dialogConfig");S=[...S,...y]}if(((V=M==null?void 0:M.updateComps)==null?void 0:V.length)===0&&v.type==="update"){const y=(W=(Q=C.value)==null?void 0:Q.structureIds)==null?void 0:W.filter(D=>(D==null?void 0:D.key)==="contentConfig");S=[...S,...y]}const se=De(S);ue({...t,isNotInitial:!0,structureIds:se},v.type)}).catch(o=>{d.ElMessage.error(o)})}catch(s){throw d.ElMessage.error(s),new Error(s)}},ue=async(e,t)=>{var n,c;let l,u;t==="create"?(l={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:O.value+"/"+((n=h.value)==null?void 0:n.path),tableId:"",rootNodePath:e==null?void 0:e.rootNodePath},value:{tableData:e}},u=d.createInsofDataApi):t==="update"?(l={id:e==null?void 0:e.id,value:{tableData:e}},u=d.updateInsofDataApi):t==="delete"&&(l={ids:[e.id,...(c=e==null?void 0:e.structureIds)==null?void 0:c.map(r=>r.id)]},u=d.batchDeleteInsofDataApi),fe.handleSubmitAsync(u,l,t).then(r=>{t==="create"&&$.value.push({...e,id:r}),t&&r&&d.ElMessage.success("响应成功"),F(h.value)})},we=async()=>{var l,u,n,c,r;const e=JSON.parse(d.cloneDeep(JSON.stringify(E.value)));await g.nextTick();const t=v.type==="create"?{...H.value,rootNodePath:(u=(l=h.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...H.value,rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,id:(r=C.value)==null?void 0:r.id};await Se(e,t),k.value={},v.show=!1,await F(h.value)},Ne=()=>{v.show=!1},re={comp:"Group",name:"/平台管理/菜单管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:ee.value,name:""}]}]},Pe=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:Ne,buttonValue:ve,changeTrigger:Ie,changedRow:ge,clickNodeTrigger:be,clickRowButton:Ce,clickSubmitForm:we,clickTrigger:Me,dialogInfo:v,formatFormData:R,getInitialSubStructure:oe,getTableDataAsync:F,handleItemDataChange:ye,inputForm:k,menuPageData:de,operatingForm:ke,pageData:ee,renderFormData:j,tableLoading:_,tempMenuPageData:re,treeData:ae},Symbol.toStringTag,{value:"Module"}));exports.State=Pe;exports.tempMenuPageData=re;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as o, reactive as n, onMounted as r, createElementBlock as s, openBlock as m, createVNode as c } from "vue";
|
|
2
2
|
import "./index-BHtNKL1L.js";
|
|
3
|
-
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
4
|
-
import { u as i, s as u } from "./menu-
|
|
5
|
-
import { D as p } from "./index-
|
|
6
|
-
import { S as l } from "./index-
|
|
7
|
-
import { i as d } from "./index-
|
|
3
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CJBQxdRk.js";
|
|
4
|
+
import { u as i, s as u } from "./menu-BxkEScwt.js";
|
|
5
|
+
import { D as p } from "./index-Y9kXXuBJ.js";
|
|
6
|
+
import { S as l } from "./index-BlEsLLOQ.js";
|
|
7
|
+
import { i as d } from "./index-DLSzOar0.js";
|
|
8
8
|
const M = /* @__PURE__ */ o({
|
|
9
9
|
__name: "index",
|
|
10
10
|
setup(f) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as b, getCurrentInstance as Ze, inject as pe, unref as u, ref as A, onMounted as ue, watch as G, toRef as Ge, onUnmounted as Dn, shallowRef as Ue, nextTick as z, defineComponent as ee, useAttrs as Un, useSlots as dn, createElementBlock as F, openBlock as E, normalizeStyle as je, normalizeClass as S, createCommentVNode as k, Fragment as Ae, createElementVNode as P, renderSlot as W, createBlock as M, withCtx as L, resolveDynamicComponent as Y, mergeProps as ft, withModifiers as Me, createVNode as se, toDisplayString as Q, onBeforeUnmount as Ne, provide as fn, Text as Kn, reactive as vn, isVNode as X, Comment as Yn, h as Wn, watchEffect as Gn, isRef as jn, onScopeDispose as qn, markRaw as vt, toRefs as Xn, resolveComponent as ke, Transition as Zn, withDirectives as at, withKeys as Fe, createTextVNode as st, vShow as rt, render as pn } from "vue";
|
|
2
|
-
import { bV as Vt, bW as zt, r as hn, K as mn, bX as Jn, O as gn, x as Qn, bY as eo, k as to, z as no, bZ as oo, a7 as _, aS as bn, bE as St, al as we, U as _t, V as Je, aq as ve, aN as ao, W as Ee, as as qe, aC as yn, ab as le, ah as so, an as ro, ao as io, bj as lo, a1 as Ie, af as xe, _ as Le, X as he, ba as uo, b_ as co, b$ as fo, ag as En, aa as vo, a8 as re, ad as Ke, aK as po, ac as Xe, a2 as wn, aj as Ct, aY as ho, ar as pt, ax as mo, am as Ye, aO as ht, c0 as go, $ as Dt, a0 as bo, aU as Ut, bb as yo, bc as Eo, at as wo, a9 as So, bI as Co, a6 as Kt, a4 as To } from "./menu-
|
|
2
|
+
import { bV as Vt, bW as zt, r as hn, K as mn, bX as Jn, O as gn, x as Qn, bY as eo, k as to, z as no, bZ as oo, a7 as _, aS as bn, bE as St, al as we, U as _t, V as Je, aq as ve, aN as ao, W as Ee, as as qe, aC as yn, ab as le, ah as so, an as ro, ao as io, bj as lo, a1 as Ie, af as xe, _ as Le, X as he, ba as uo, b_ as co, b$ as fo, ag as En, aa as vo, a8 as re, ad as Ke, aK as po, ac as Xe, a2 as wn, aj as Ct, aY as ho, ar as pt, ax as mo, am as Ye, aO as ht, c0 as go, $ as Dt, a0 as bo, aU as Ut, bb as yo, bc as Eo, at as wo, a9 as So, bI as Co, a6 as Kt, a4 as To } from "./menu-BxkEScwt.js";
|
|
3
3
|
function ko(e) {
|
|
4
4
|
return e;
|
|
5
5
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as o, reactive as c, onMounted as s, createElementBlock as r, openBlock as m, createVNode as u } from "vue";
|
|
2
|
-
import { D as i } from "./index-
|
|
3
|
-
import { S as l, i as p } from "./index-
|
|
4
|
-
import { u as d, s as g } from "./menu-
|
|
5
|
-
import { u as f } from "./login-
|
|
2
|
+
import { D as i } from "./index-Y9kXXuBJ.js";
|
|
3
|
+
import { S as l, i as p } from "./index-DLSzOar0.js";
|
|
4
|
+
import { u as d, s as g } from "./menu-BxkEScwt.js";
|
|
5
|
+
import { u as f } from "./login-B63LEngH.js";
|
|
6
6
|
const M = /* @__PURE__ */ o({
|
|
7
7
|
__name: "index",
|
|
8
8
|
setup(h) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as $, computed as F, ref as h, watch as P, createElementBlock as E, openBlock as p, createVNode as v, createElementVNode as j, withCtx as c, createTextVNode as T, toDisplayString as k, resolveComponent as B, createBlock as U, Fragment as V, renderList as z, normalizeStyle as R } from "vue";
|
|
2
|
-
import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { d as H, u as L, S as M } from "./index-
|
|
4
|
-
import { E as N } from "./menu-
|
|
2
|
+
import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-DBVpFaiR.js";
|
|
3
|
+
import { d as H, u as L, S as M } from "./index-DFX5NE_3.js";
|
|
4
|
+
import { E as N } from "./menu-BxkEScwt.js";
|
|
5
5
|
import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
import { S as x } from "./index-BHtNKL1L.js";
|
|
7
7
|
const W = { class: "avatar-model-wrap" }, D = /* @__PURE__ */ $({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref as St, watch as Ds, nextTick as Id, resolveComponent as Cs, createBlock as ar, openBlock as En, withCtx as Ht, createElementVNode as _n, renderSlot as gc, onMounted as Vl, createElementBlock as mi, normalizeClass as Ud, toDisplayString as Yi, createCommentVNode as fa, Fragment as Ru, renderList as Lu, normalizeStyle as Pu, createVNode as Zt, unref as Du, defineComponent as Nd, computed as Fd, createSlots as Od, createTextVNode as Sr } from "vue";
|
|
2
|
-
import { c1 as zd, bW as _c, m as Bd, c2 as vc, c3 as yc, c4 as xc, F as Mc, S as qa, G as kd, r as bc, n as Sc, c5 as Vd, c as Je, d as ja, s as Rs, p as Ls, bR as Hl, g as Bn, bM as Sa, f as Hd, bL as Iu, u as Uu, bP as Gd, bO as Ec, bi as Wd } from "./menu-
|
|
3
|
-
import { e as Ea, d as Nu,
|
|
4
|
-
import { u as Fu } from "./modelComp-
|
|
5
|
-
import { a as Is, l as Ou, h as wc, i as Yd, j as $d, k as Jd } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
2
|
+
import { c1 as zd, bW as _c, m as Bd, c2 as vc, c3 as yc, c4 as xc, F as Mc, S as qa, G as kd, r as bc, n as Sc, c5 as Vd, c as Je, d as ja, s as Rs, p as Ls, bR as Hl, g as Bn, bM as Sa, f as Hd, bL as Iu, u as Uu, bP as Gd, bO as Ec, bi as Wd } from "./menu-BxkEScwt.js";
|
|
3
|
+
import { e as Ea, d as Nu, k as Xd, l as qd, s as Ac, f as jd } from "./index-DFX5NE_3.js";
|
|
4
|
+
import { u as Fu } from "./modelComp-Bj7Q1JDt.js";
|
|
5
|
+
import { a as Is, l as Ou, h as wc, i as Yd, j as $d, k as Jd } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CJBQxdRk.js";
|
|
6
6
|
import { _ as Gl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
var Kd = "__lodash_hash_undefined__";
|
|
8
8
|
function Zd(s) {
|
|
@@ -30415,7 +30415,7 @@ const O_ = Hl("formToTableComp", {
|
|
|
30415
30415
|
]);
|
|
30416
30416
|
};
|
|
30417
30417
|
}
|
|
30418
|
-
}, Jv = /* @__PURE__ */ Gl(pv, [["__scopeId", "data-v-
|
|
30418
|
+
}, Jv = /* @__PURE__ */ Gl(pv, [["__scopeId", "data-v-8c6018ff"]]);
|
|
30419
30419
|
export {
|
|
30420
30420
|
Sv as $,
|
|
30421
30421
|
Ov as A,
|