ss-component-new 1.3.3 → 1.3.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/{MTLLoader-C_XCtjSi.cjs → MTLLoader-BDa0EA-y.cjs} +1 -1
- package/dist/{MTLLoader-YR-bfx1D.js → MTLLoader-DU2_d5qP.js} +37 -37
- package/dist/{OrbitControls-BGsXD_A7.js → OrbitControls-B2Ue7hdS.js} +1 -1
- package/dist/{OrbitControls-CktvE4iE.cjs → OrbitControls-DfhmSOVW.cjs} +1 -1
- package/dist/{URDFLoader-10oVp_KW.cjs → URDFLoader-BRTNakjO.cjs} +1 -1
- package/dist/{URDFLoader-m1gMdnSQ.js → URDFLoader-BSHChj3i.js} +189 -189
- package/dist/{animationData-CpK8d_Vm.js → animationData-Bfm5Jk8y.js} +26 -26
- package/dist/{animationData-Cr2ra7rm.cjs → animationData-CNIRMzHL.cjs} +1 -1
- package/dist/{array-fed49Qom.js → array-C_SHxtRO.js} +46 -46
- package/dist/{array-CNEAnwCQ.cjs → array-hcSSFaPO.cjs} +1 -1
- package/dist/{iconfont-0yJB130V.js → iconfont-D4sBppfS.js} +29 -29
- package/dist/{iconfont-DsF7kuG5.cjs → iconfont-kWEJenGZ.cjs} +1 -1
- package/dist/{index-Cjqg29ul.cjs → index-0sI9GpjG.cjs} +1 -1
- package/dist/index-7WRVFebE.cjs +1 -0
- package/dist/{index-B4fEYSZz.cjs → index-B-wqJb1R.cjs} +1 -1
- package/dist/index-BDXZK9BZ.cjs +1 -0
- package/dist/{index-BJPBBWWH.cjs → index-BLxE_tkf.cjs} +1 -1
- package/dist/{index-Cexj88aL.cjs → index-BPKCXbP6.cjs} +1 -1
- package/dist/{index-Ddoq7kRQ.js → index-BT6DSXQW.js} +9 -9
- package/dist/{index-gfdgTjvQ.js → index-BTfRODup.js} +3 -3
- package/dist/{index-CwtCbdPr.js → index-BUrYjzWs.js} +2 -2
- package/dist/{index-DaIE9uY1.cjs → index-BWqkJ8tT.cjs} +1 -1
- package/dist/{index-82VS01cd.cjs → index-BY0bG8F_.cjs} +1 -1
- package/dist/{index-C0BL6sZ3.cjs → index-Bb7_N8kj.cjs} +1 -1
- package/dist/index-BdP1gtPp.cjs +13 -0
- package/dist/{index-DAj8igrm.js → index-BkdUzwcU.js} +7 -7
- package/dist/{index-D-38bzBf.js → index-Bt9rt1NQ.js} +3 -3
- package/dist/index-BtuZ5Zx4.js +103 -0
- package/dist/{index-NaWMtdUV.js → index-C38KGQKj.js} +2 -2
- package/dist/index-C3IjfJgf.js +12544 -0
- package/dist/{index-CWl1ag4C.js → index-C3RoPY39.js} +2 -2
- package/dist/{index-DHn6OW_a.cjs → index-C6_1MyLM.cjs} +1 -1
- package/dist/{index-DRTxe12U.cjs → index-C8fMwErX.cjs} +13 -13
- package/dist/{index-FeG6K9iT.cjs → index-CDhojfAp.cjs} +1 -1
- package/dist/{index-nr6V1FzX.js → index-CEoo5NuF.js} +7 -7
- package/dist/{index-CXiOVgoz.js → index-CEzEaG0d.js} +1 -1
- package/dist/{index-CRc0qxAb.js → index-CM_8lsuy.js} +2 -2
- package/dist/{index-DBh5Z73C.js → index-CN5eTGfF.js} +1 -1
- package/dist/{index-C2XI6Hre.cjs → index-COvNwtxL.cjs} +13 -13
- package/dist/{index-BRUsO0JA.js → index-CaDwU086.js} +3 -3
- package/dist/{index-DU9e5EhS.cjs → index-Cw4Pm2PQ.cjs} +1 -1
- package/dist/index-CzB2oEuL.cjs +11 -0
- package/dist/{index-Va8AOLWi.js → index-DGRL8SEt.js} +1 -1
- package/dist/{index-BAd4yIgj.js → index-DUygJhjf.js} +1703 -1712
- package/dist/{index-BNzPNbKQ.cjs → index-DV3KiKv5.cjs} +1 -1
- package/dist/{index-DmZSvt8a.js → index-DVHBs_Vv.js} +1952 -1948
- package/dist/{index-BXUByyre.js → index-DgYpyTf-.js} +2 -2
- package/dist/{index-Bt-LE2d9.js → index-DlchhCKc.js} +8 -8
- package/dist/{index-rEUrneNF.js → index-Dm4qKk5S.js} +7 -7
- package/dist/{index-BIL173V1.cjs → index-DrpsmNOj.cjs} +1 -1
- package/dist/{index-CZ-K2grw.js → index-Dsh4fjDh.js} +2 -2
- package/dist/{index-DywrXPIM.js → index-Frx8T0PG.js} +41 -41
- package/dist/{index-uwsxH5n7.js → index-G9jqtOFo.js} +5 -5
- package/dist/{index-CVXrjDFh.cjs → index-MEN9vDHo.cjs} +1 -1
- package/dist/{index-DS-YTop9.cjs → index-R-S0AH15.cjs} +1 -1
- package/dist/{index-D_Yhv_HV.cjs → index-dD_cGWLc.cjs} +1 -1
- package/dist/{index-D8HD14bz.js → index-f_aTA7O9.js} +1 -1
- package/dist/{index-D3ixok8t.cjs → index-iv5M7d4h.cjs} +1 -1
- package/dist/{index-D3qDowev.js → index-jbNDRLVg.js} +5 -5
- package/dist/{index-CE9d33l5.cjs → index-kZhbnU3-.cjs} +1 -1
- package/dist/{index-Rf4ukENq.cjs → index-mpoMK_dv.cjs} +1 -1
- package/dist/{index-COQpDVsv.js → index-sMsCzNtW.js} +1535 -1570
- package/dist/{index-BWCv7zxy.cjs → index-vCTVD7cV.cjs} +1 -1
- package/dist/{index-C20PbKCx.cjs → index-zR73jr4m.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-ZMwIbmlN.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D4mQcDEW.cjs} +398 -408
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1pEFQ04s.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DLfKrpq4.js} +32428 -32994
- package/dist/{index.vue_vue_type_style_index_1_lang--4T7j9qz.cjs → index.vue_vue_type_style_index_1_lang-BybP-dlR.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-CNh42_ZH.js → index.vue_vue_type_style_index_1_lang-C6hiPOvT.js} +78 -78
- package/dist/{main-KysT4onk.js → main-DWqPNq1u.js} +4 -4
- package/dist/{main-CaDcA-qT.cjs → main-IeFIeYRe.cjs} +1 -1
- package/dist/{menuIndex-D52EAwtb.cjs → menuIndex-8RF_0N_y.cjs} +1 -1
- package/dist/{menuIndex-DYaogp2R.js → menuIndex-BwWrdu20.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +10 -10
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +11 -11
- package/dist/{threeModel-X3ghgTRs.cjs → threeModel-BwQqxP7B.cjs} +1 -1
- package/dist/{threeModel-CUhCPfB6.js → threeModel-Dw1HYePN.js} +45 -45
- package/dist/{threePreview-DOD9HOZn.cjs → threePreview-BlCmiK0A.cjs} +1 -1
- package/dist/{threePreview-CkKl3frr.js → threePreview-PdofIeZV.js} +103 -103
- package/dist/{threeSceneView-DZvOLWv6.cjs → threeSceneView-QkRW8pnJ.cjs} +1 -1
- package/dist/{threeSceneView-DlL9pZlj.js → threeSceneView-aDZwf58h.js} +38 -38
- package/dist/{threeSceneViewForCPMPIP-CZvKvfDx.cjs → threeSceneViewForCPMPIP-Ds4WSe56.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-DB0Eczbs.js → threeSceneViewForCPMPIP-JDLX5nri.js} +8 -8
- package/dist/{threeTrackPathView-DgyAEYfV.cjs → threeTrackPathView-BlAgLn32.cjs} +1 -1
- package/dist/{threeTrackPathView-Eb1bvUXJ.js → threeTrackPathView-DOy180Fe.js} +66 -66
- package/dist/{threeViewerHost-BMU1tg9c.cjs → threeViewerHost-Bk7K37-4.cjs} +1 -1
- package/dist/{threeViewerHost-Bdzv9iPb.js → threeViewerHost-DNY3nOwS.js} +20 -20
- package/dist/{urdfTree-hLtm0aFY.js → urdfTree-CeP5yUoC.js} +10 -10
- package/dist/{urdfTree-CoK2r17Y.cjs → urdfTree-nxh-CAg8.cjs} +1 -1
- package/dist/{workpieceTreePanel-Ne_ACq86.js → workpieceTreePanel-CTC2K239.js} +56 -56
- package/dist/{workpieceTreePanel-mWvCQyyw.cjs → workpieceTreePanel-CZQFw5fE.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-CpbBe_mV.cjs +0 -1
- package/dist/index-DIWralYr.js +0 -67
- package/dist/index-DZ0yrDBw.cjs +0 -1
- package/dist/index-XqNUjpwH.js +0 -11883
- package/dist/index-fcGQ1ZME.cjs +0 -13
- package/dist/index-rmHO5QRp.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as x, onMounted as _, createElementBlock as g, openBlock as y, createVNode as C } from "vue";
|
|
2
|
-
import { s as b } from "./index-
|
|
3
|
-
import { c as s } from "./index-
|
|
2
|
+
import { s as b } from "./index-f_aTA7O9.js";
|
|
3
|
+
import { c as s } from "./index-sMsCzNtW.js";
|
|
4
4
|
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const A = (t, n, a) => {
|
|
6
6
|
var r, d, p, m;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as z, reactive as R, onMounted as T, watch as A, nextTick as U, resolveComponent as i, createElementBlock as k, openBlock as u, createVNode as s, withCtx as l, createElementVNode as _, toDisplayString as g, Fragment as v, renderList as B, createBlock as b, createTextVNode as f, withDirectives as I, vShow as P } from "vue";
|
|
2
|
-
import { s as E } from "./index-
|
|
3
|
-
import { u as F, s as O,
|
|
4
|
-
import { _ as
|
|
5
|
-
const
|
|
2
|
+
import { s as E } from "./index-DVHBs_Vv.js";
|
|
3
|
+
import { u as F, s as O, j as x, c as j } from "./index-sMsCzNtW.js";
|
|
4
|
+
import { _ as H } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
const L = { class: "routerPage-wrapper" }, W = { class: "role-dialog-header" }, q = ["title"], G = { title: "更多" }, J = { class: "dialog-footer" }, K = /* @__PURE__ */ z({
|
|
6
6
|
__name: "index",
|
|
7
7
|
setup(Q) {
|
|
8
8
|
const D = F(), { menus: w, activeMenuPath: V } = O(D), t = R({ ...x }), { treeRef: M } = x;
|
|
@@ -23,7 +23,7 @@ const W = { class: "routerPage-wrapper" }, j = { class: "role-dialog-header" },
|
|
|
23
23
|
});
|
|
24
24
|
return A(() => w.value, (d) => {
|
|
25
25
|
U(() => {
|
|
26
|
-
const e =
|
|
26
|
+
const e = j(d), r = C(e);
|
|
27
27
|
t.tempSysMenus = t.handleAddSysMenusButtons(r, "系统维护", ["查看"]), t.menuData = t.addButtonsToTree(r, t.structureButtons);
|
|
28
28
|
});
|
|
29
29
|
}, {
|
|
@@ -31,7 +31,7 @@ const W = { class: "routerPage-wrapper" }, j = { class: "role-dialog-header" },
|
|
|
31
31
|
deep: !0
|
|
32
32
|
}), (d, e) => {
|
|
33
33
|
const r = i("el-checkbox"), h = i("el-checkbox-group"), p = i("svg-icon"), y = i("el-popover"), N = i("el-tree"), m = i("el-button"), S = i("el-dialog");
|
|
34
|
-
return u(), k("div",
|
|
34
|
+
return u(), k("div", L, [
|
|
35
35
|
s(E, {
|
|
36
36
|
index: t.structureId,
|
|
37
37
|
compName: t.compName,
|
|
@@ -49,7 +49,7 @@ const W = { class: "routerPage-wrapper" }, j = { class: "role-dialog-header" },
|
|
|
49
49
|
class: "role-dialog"
|
|
50
50
|
}, {
|
|
51
51
|
header: l(() => [
|
|
52
|
-
_("div",
|
|
52
|
+
_("div", W, g(t.authorizeDialog.title), 1)
|
|
53
53
|
]),
|
|
54
54
|
footer: l(() => [
|
|
55
55
|
_("div", J, [
|
|
@@ -172,7 +172,7 @@ const W = { class: "routerPage-wrapper" }, j = { class: "role-dialog-header" },
|
|
|
172
172
|
]);
|
|
173
173
|
};
|
|
174
174
|
}
|
|
175
|
-
}), ee = /* @__PURE__ */
|
|
175
|
+
}), ee = /* @__PURE__ */ H(K, [["__scopeId", "data-v-78a46dd8"]]);
|
|
176
176
|
export {
|
|
177
177
|
ee as default
|
|
178
178
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref as l, watch as
|
|
2
|
-
import { s as h } from "./index-
|
|
1
|
+
import { ref as l, watch as m, defineComponent as b, reactive as y, onMounted as g, createElementBlock as i, openBlock as D, createVNode as f } from "vue";
|
|
2
|
+
import { s as h } from "./index-DVHBs_Vv.js";
|
|
3
3
|
import { g as C } from "./index-B8HqIYd5.js";
|
|
4
|
-
import {
|
|
4
|
+
import { g as k, h as _, a as S, s as c, u as A, i as T } from "./index-sMsCzNtW.js";
|
|
5
5
|
const B = S(), { itemData: I } = c(B), u = l(0), P = l([
|
|
6
6
|
{
|
|
7
7
|
label: "机构名称",
|
|
@@ -99,8 +99,8 @@ const B = S(), { itemData: I } = c(B), u = l(0), P = l([
|
|
|
99
99
|
var o;
|
|
100
100
|
if (Array.isArray(a == null ? void 0 : a.tableData)) {
|
|
101
101
|
let s = { id: a.id };
|
|
102
|
-
return (o = a == null ? void 0 : a.tableData) == null || o.forEach((p,
|
|
103
|
-
s[`a${
|
|
102
|
+
return (o = a == null ? void 0 : a.tableData) == null || o.forEach((p, d) => {
|
|
103
|
+
s[`a${d}`] = p;
|
|
104
104
|
}), s;
|
|
105
105
|
} else
|
|
106
106
|
return {
|
|
@@ -124,7 +124,7 @@ const B = S(), { itemData: I } = c(B), u = l(0), P = l([
|
|
|
124
124
|
}
|
|
125
125
|
]
|
|
126
126
|
};
|
|
127
|
-
|
|
127
|
+
m(() => I.value, (e) => {
|
|
128
128
|
var t;
|
|
129
129
|
e && (e == null ? void 0 : e.length) > 0 && (r.value = (t = e == null ? void 0 : e[0]) == null ? void 0 : t.compData);
|
|
130
130
|
});
|
|
@@ -145,7 +145,7 @@ const v = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
145
145
|
const t = y({ ...v }), n = A(), { activeMenuPath: a } = c(n);
|
|
146
146
|
return g(async () => {
|
|
147
147
|
t.structureId = await T(a.value);
|
|
148
|
-
}), (o, s) => (
|
|
148
|
+
}), (o, s) => (D(), i("div", null, [
|
|
149
149
|
f(h, {
|
|
150
150
|
itemData: t.pageData,
|
|
151
151
|
onChange: t.handleItemDataChange
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const je=require("./index-DZ0yrDBw.cjs"),t=require("vue"),P=require("./index-DRTxe12U.cjs"),ht=require("./index-D_Yhv_HV.cjs"),yt=require("./index-C2XI6Hre.cjs"),vt=require("vue-router"),Le=require("./index-9hspBVrQ.cjs"),U=require("./index-C5pQXH0_.cjs"),gt=require("./menuIndex-D52EAwtb.cjs"),kt=require("./index-BpPyaNFa.cjs"),m=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-ZMwIbmlN.cjs"),Pe=require("./index-CpbBe_mV.cjs"),Ct=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Re=(n,p,K=0)=>{let y=n;return y!=null&&y.every(r=>Array.isArray(r))&&(y!=null&&y.every(r=>Array.isArray(r)&&r.length===1)?y=y==null?void 0:y.filter(r=>(r==null?void 0:r[0])!==(p==null?void 0:p[K])):y=y==null?void 0:y.map(r=>{if(r!=null&&r.find(o=>o===(p==null?void 0:p[K]))&&(p==null?void 0:p.length)!==1){let o=P.cloneDeep(p),c=r==null?void 0:r.filter(I=>I!==(o==null?void 0:o[K])),T=K+1,x=Re(c,o,T),B=[];B.push(r==null?void 0:r[0]),x==null||x.forEach(I=>{B.push(I)}),r=B}return r})),y},Oe=(n,p,K,y=0)=>{let r=n;return r!=null&&r.every(o=>Array.isArray(o))&&(r!=null&&r.every(o=>Array.isArray(o)&&o.length===1)?r.push([K]):r=r==null?void 0:r.map(o=>{if(o!=null&&o.find(c=>c===(p==null?void 0:p[y]))&&(p==null?void 0:p.length)!==1){let c=P.cloneDeep(p),T=o==null?void 0:o.filter(V=>V!==(c==null?void 0:c[y])),x=y+1,B=Oe(T,c,K,x),I=[];I.push(o==null?void 0:o[0]),B==null||B.forEach(V=>{I.push(V)}),o=I}return o})),r},ue=(n,p,K,y,r=0)=>{let o=n;return o!=null&&o.every(c=>Array.isArray(c))&&(o!=null&&o.every(c=>Array.isArray(c)&&c.length===1)?o=o==null?void 0:o.map(c=>((c==null?void 0:c[0])===K&&(c=[y]),c)):o=o==null?void 0:o.map(c=>{if(c!=null&&c.find(T=>T===(p==null?void 0:p[r]))&&(p==null?void 0:p.length)!==1){let T=P.cloneDeep(p),x=c==null?void 0:c.filter(R=>R!==(T==null?void 0:T[r])),B=r+1,I=ue(x,T,K,y,B),V=[];V.push(c==null?void 0:c[0]),I==null||I.forEach(R=>{V.push(R)}),c=V}return c})),o};function Ye(n="menu"){return{name:n,components:{SvgIcon:kt.SvgIcon,ssMenu:je.ssMenu,DynamicIcon:je._sfc_main,ssDialog:ht.ssDialog,ssInput:yt._sfc_main$2},setup(p,{emit:K}){const y=t.defineProps({mode:{type:String,default:"vertical"}}),r=t.ref([{allowInherit:!1,operateType:"复制新增",operateIcon:"CopyAddMenu"},{allowInherit:!1,operateType:"删除",operateIcon:"DeleteMenu"},{allowInherit:!1,operateType:"修改菜单名",operateIcon:"FixedMenu"}]),o=P.useMenuState(),c=P.useModelComp(P.pinia),T=P.useLoginState(P.pinia),{loginUserInfo:x}=P.storeToRefs(T),B=t.ref(0),I=vt.useRouter(),V=t.ref(),{asideMenus:R,menuTriggerType:s,platform:Ne}=P.storeToRefs(o),{fixMenuStatus:qe}=P.storeToRefs(c),Ue=t.computed(()=>y==null?void 0:y.mode),ee=l=>l==null?void 0:l.map(e=>{var k,C;return!(e!=null&&e.children)||((k=e==null?void 0:e.children)==null?void 0:k.length)===0?e.config=r.value:e!=null&&e.children&&((C=e==null?void 0:e.children)==null?void 0:C.length)>0&&(e.children=ee(e.children)),e}),A=t.computed(()=>{let l=[...R.value];if((l==null?void 0:l.length)===0)return I.push("/"),[];const a=et(l,me.value);return a.isFlag||(l=a==null?void 0:a.data),l=l==null?void 0:l.map(e=>{var k,C;return!(e!=null&&e.children)||((k=e==null?void 0:e.children)==null?void 0:k.length)===0?e.config=r.value:e!=null&&e.children&&((C=e==null?void 0:e.children)==null?void 0:C.length)>0&&(e.children=ee(e.children)),e}),l}),ze=async(l,a)=>{c.setRouteToChildPath(""),o.setMenuTriggerType("click"),o.setActiveMenuPath(l==null?void 0:l.path),o.setActiveAsideMenu(l),l.isRouter?I.push(l.path):I.push("/"),K("node-click",l,a)},Ze=async l=>{const a=gt.findNodeByPropInTree(A.value,"path",l);o.setActiveAsideMenu(a),c.setRouteToChildPath(""),qe.value?c.setFixMenuStatus(!1):(Z.value&&(s.value="open"),s.value==="click"?B.value===1?o.setActiveMenuPath(sessionStorage.getItem("pageKey")):o.setActiveMenuPath(l):Z.value||(o.setMenuTriggerType("click"),o.setActiveMenuPath(l))),l!=null&&l.startsWith("/")?I.push(l):I.push("/"),B.value++},He=l=>{Z.value||o.setActiveMenuPath(l)},X=l=>{const a=document.documentElement;l==null||l.forEach(e=>{a.style.setProperty(e.name,e.value)})};t.onMounted(()=>{B.value=1});const me=t.computed(()=>{const l=sessionStorage.getItem("authority");return l?JSON.parse(l):[]});t.watch(()=>Ne.value,l=>{l==="browser"?X(Le.browserVerticalMenuClasses):l==="client"?(X(Le.clientHorizontalMenuClasses),X(Le.clientVerticalMenuClasses)):l==="three"&&(X(Le.threeHorizontalMenuClasses),X(Le.threeVerticalMenuClasses))},{immediate:!0});const et=(l,a)=>({isFlag:!0}),O=t.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),tt=l=>je.getComponent(l),lt=t.ref({}),ot=t.ref([]),te=t.ref({}),Y=t.ref({}),at=l=>{switch(l){case"复制新增":return"create";case"修改菜单名":return"update";case"删除":return"delete"}},Je=t.ref({}),st=l=>{o.setCacheInputMenu({type:O.type,data:l}),o.setIsRefreshMenus(!0)},it=async(l,a,e)=>{var k,C,_,z,E,H,j,le,oe,ae,se,ie,re,ce,pe,ne,de,fe,he,ye,ve,ge,ke,Ce,De,Ie,Se,_e,be,we,Te,Be,Ee,Me,Ke,xe,Ve,Ae,h,F,L,b;if(a==="create"){let d=(e==null?void 0:e.title)+"(1)",M=await U.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),S=(C=(k=M==null?void 0:M.data)==null?void 0:k.result)==null?void 0:C[0],J=(_=S==null?void 0:S.value)==null?void 0:_.pageData;J.compData=(z=J.compData)==null?void 0:z.map(i=>{var f;return(i==null?void 0:i.key)==="menuContents"&&(i.contents=Oe(i.contents,(f=e==null?void 0:e.path)==null?void 0:f.split("/"),d)),i}),await U.updateInsofDataApi({id:S==null?void 0:S.id,value:{pageData:J}});let N=(H=(E=e==null?void 0:e.path)==null?void 0:E.split("/"))==null?void 0:H.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}),q=await m.getItemData((oe=(le=(j=e==null?void 0:e.path)==null?void 0:j.split("/"))==null?void 0:le.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}))==null?void 0:oe.join("/"),sessionStorage.getItem("systemKey"),"");if(N.push(d),N=N==null?void 0:N.join("/"),(q==null?void 0:q.length)>0){let i=q==null?void 0:q[0],f=(se=(ae=i==null?void 0:i.compData)==null?void 0:ae.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:se.contents;if(((ie=f==null?void 0:f[0])==null?void 0:ie.directiveLabel)==="#isMain"){let g=(re=f==null?void 0:f[0])==null?void 0:re.prop,D=(pe=(ce=i==null?void 0:i.compData)==null?void 0:ce.find(w=>(w==null?void 0:w.key)==="tableContents"))==null?void 0:pe.contents,W;D==null||D.forEach(w=>{var G,u;if(w.length===1)((G=w==null?void 0:w[0])==null?void 0:G[g])===(e==null?void 0:e.title)&&(W=w==null?void 0:w[0],W[g]=d);else{let Q=(u=f==null?void 0:f.filter($=>$!=="操作"))==null?void 0:u.map($=>$==null?void 0:$.prop),$e=w==null?void 0:w.filter($=>!($!=null&&$.id)),Fe=m.getValueToObjectValue($e,Q);Fe[g]=d,W=Fe}}),await U.createInsofDataApi({key:{type:"data",pageKey:(fe=(de=(ne=e==null?void 0:e.path)==null?void 0:ne.split("/"))==null?void 0:de.filter((w,G)=>{var u,Q;return G!==((Q=(u=e==null?void 0:e.path)==null?void 0:u.split("/"))==null?void 0:Q.length)-1}))==null?void 0:fe.join("/"),tableId:i==null?void 0:i.id,systemKey:sessionStorage.getItem("systemKey"),createUserId:(he=x.value)==null?void 0:he.id,createUserLayer:((ye=x.value)==null?void 0:ye.dept)||((ve=x.value)==null?void 0:ve.部门名称)},value:{tableData:W}})}}await m.newLoadingConstruct(e==null?void 0:e.path,N),o.setUpdateMenuStatus(!1),await Pe.verifyStructureDataToStore(),o.setActiveMenuPath((Ce=(ke=(ge=e==null?void 0:e.path)==null?void 0:ge.split("/"))==null?void 0:ke.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}))==null?void 0:Ce.join("/")),o.setActiveTopMenuPath((Ie=(De=e==null?void 0:e.path)==null?void 0:De.split("/"))==null?void 0:Ie[0]),o.setIsRefreshMenus(!1),o.setIsRefreshMenus(!0)}else if(a==="update")V.value=e;else if(a==="delete"){let d=await U.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:e==null?void 0:e.path}}),M=await U.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),S=(_e=(Se=M==null?void 0:M.data)==null?void 0:Se.result)==null?void 0:_e[0],J=(be=S==null?void 0:S.value)==null?void 0:be.pageData;if(J.compData=(we=J.compData)==null?void 0:we.map(i=>{var f;return(i==null?void 0:i.key)==="menuContents"&&(i.contents=Re(i.contents,(f=e==null?void 0:e.path)==null?void 0:f.split("/"))),i}),await U.updateInsofDataApi({id:S==null?void 0:S.id,value:{pageData:J}}),((Be=(Te=d==null?void 0:d.data)==null?void 0:Te.result)==null?void 0:Be.length)>0){let i=(Me=(Ee=d==null?void 0:d.data)==null?void 0:Ee.result)==null?void 0:Me.map(f=>f==null?void 0:f.id);(i==null?void 0:i.length)>0&&await U.batchDeleteInsofDataApi({ids:i})}let N=await m.getItemData((Ve=(xe=(Ke=e==null?void 0:e.path)==null?void 0:Ke.split("/"))==null?void 0:xe.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}))==null?void 0:Ve.join("/"),sessionStorage.getItem("systemKey"),""),q=[];(N==null?void 0:N.length)>0&&(N==null||N.forEach(i=>{var g,D,W,w,G,u,Q,$e,Fe,$,We;let f=(w=(W=(D=(g=i==null?void 0:i.compData)==null?void 0:g.find(v=>(v==null?void 0:v.key)==="header"))==null?void 0:D.contents)==null?void 0:W[0])==null?void 0:w.prop;(($e=(Q=(u=(G=i==null?void 0:i.compData)==null?void 0:G.find(v=>(v==null?void 0:v.key)==="header"))==null?void 0:u.contents)==null?void 0:Q[0])==null?void 0:$e.directiveLabel)==="#isMain"&&((We=($=(Fe=i==null?void 0:i.compData)==null?void 0:Fe.find(v=>(v==null?void 0:v.key)==="tableContents"))==null?void 0:$.contents)==null||We.forEach(v=>{var Ge,Qe,Xe;(v==null?void 0:v.length)>1?(v==null?void 0:v[1])===(e==null?void 0:e.title)&&q.push((Ge=v==null?void 0:v[0])==null?void 0:Ge.id):((Qe=v==null?void 0:v[0])==null?void 0:Qe[f])===(e==null?void 0:e.title)&&q.push((Xe=v==null?void 0:v[0])==null?void 0:Xe.id)}))})),(q==null?void 0:q.length)>0&&await U.batchDeleteInsofDataApi({ids:q}),o.setUpdateMenuStatus(!1),await Pe.verifyStructureDataToStore(),o.setActiveMenuPath((F=(h=(Ae=e==null?void 0:e.path)==null?void 0:Ae.split("/"))==null?void 0:h.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}))==null?void 0:F.join("/")),o.setActiveTopMenuPath((b=(L=e==null?void 0:e.path)==null?void 0:L.split("/"))==null?void 0:b[0]),o.setIsRefreshMenus(!1),o.setIsRefreshMenus(!0)}},rt=async(l,a)=>{var le,oe,ae,se,ie,re,ce,pe,ne,de,fe,he,ye,ve,ge,ke,Ce,De,Ie,Se,_e,be,we,Te,Be,Ee,Me,Ke,xe,Ve,Ae;let e=await U.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),k=(oe=(le=e==null?void 0:e.data)==null?void 0:le.result)==null?void 0:oe[0],C=(ae=k==null?void 0:k.value)==null?void 0:ae.pageData;C.compData=(se=C.compData)==null?void 0:se.map(h=>{var F,L;return(h==null?void 0:h.key)==="menuContents"&&(h.contents=ue(h.contents,(F=a==null?void 0:a.path)==null?void 0:F.split("/"),a==null?void 0:a.title,(L=l==null?void 0:l.target)==null?void 0:L.value)),h}),k!=null&&k.id&&await U.updateInsofDataApi({id:k==null?void 0:k.id,value:{pageData:C}});let _=(re=(ie=a==null?void 0:a.path)==null?void 0:ie.split("/"))==null?void 0:re.filter((h,F)=>{var L,b;return F!==((b=(L=a==null?void 0:a.path)==null?void 0:L.split("/"))==null?void 0:b.length)-1}),z=_==null?void 0:_.join("/");_.push((ce=l==null?void 0:l.target)==null?void 0:ce.value),_=_==null?void 0:_.join("/");let E=await m.getItemData(z,sessionStorage.getItem("systemKey"),"");if(((he=(fe=(de=(ne=(pe=E==null?void 0:E[0])==null?void 0:pe.compData)==null?void 0:ne.find(h=>(h==null?void 0:h.key)==="header"))==null?void 0:de.contents)==null?void 0:fe[0])==null?void 0:he.directiveLabel)==="#isMain"){let h=(Ce=(ke=(ge=(ve=(ye=E==null?void 0:E[0])==null?void 0:ye.compData)==null?void 0:ve.find(d=>(d==null?void 0:d.key)==="header"))==null?void 0:ge.contents)==null?void 0:ke[0])==null?void 0:Ce.prop,F=(Se=(Ie=(De=E==null?void 0:E[0])==null?void 0:De.compData)==null?void 0:Ie.find(d=>(d==null?void 0:d.key)==="tableContents"))==null?void 0:Se.contents,L=(Te=(we=(be=(_e=E==null?void 0:E[0])==null?void 0:_e.compData)==null?void 0:be.find(d=>(d==null?void 0:d.key)==="header"))==null?void 0:we.contents)==null?void 0:Te.map(d=>d==null?void 0:d.prop),b;if(F==null||F.forEach(d=>{var S;let M=m.getValueToObjectValue(d,L);(M==null?void 0:M[h])===a.title&&(b=M,b[h]=(S=l==null?void 0:l.target)==null?void 0:S.value)}),b){let d={};for(let S in b)S!=="id"&&(d[S]=b==null?void 0:b[S]);let M=[{id:b==null?void 0:b.id,value:{tableData:d}}];await U.batchUpdateInsofDataApi({dataList:M})}}let H=await U.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:a==null?void 0:a.path}}),j=(Ee=(Be=H==null?void 0:H.data)==null?void 0:Be.result)==null?void 0:Ee.map(h=>({id:h==null?void 0:h.id,key:h==null?void 0:h.key}));j=j==null?void 0:j.map(h=>(h.key.pageKey=_,h)),(j==null?void 0:j.length)>0&&await U.batchUpdateInsofDataApi({dataList:j}),o.setUpdateMenuStatus(!1),await Pe.verifyStructureDataToStore(),o.setActiveMenuPath((xe=(Ke=(Me=a==null?void 0:a.path)==null?void 0:Me.split("/"))==null?void 0:Ke.filter((h,F)=>{var L,b;return F!==((b=(L=a==null?void 0:a.path)==null?void 0:L.split("/"))==null?void 0:b.length)-1}))==null?void 0:xe.join("/")),o.setActiveTopMenuPath((Ae=(Ve=a==null?void 0:a.path)==null?void 0:Ve.split("/"))==null?void 0:Ae[0]),o.setIsRefreshMenus(!1),o.setIsRefreshMenus(!0),V.value=void 0},ct=async(l,a)=>{O.type=at(a==null?void 0:a.operateType),await it(a,O.type,l),Y.value=l,Je.value=a},pt=()=>{O.show=!1},nt=l=>l==null?void 0:l.filter(a=>a.allowInherit),dt=()=>{var e,k,C,_,z;let l;O.type==="create"&&(l=((e=Y.value)==null?void 0:e.path)+"/"+te.value[(k=te.value)==null?void 0:k.prop]),O.type==="update"&&(l=(C=Y.value)==null?void 0:C.path);const a={...Y.value,config:nt((_=Y.value)==null?void 0:_.config),children:[],childMenus:[],title:te.value[(z=te.value)==null?void 0:z.prop],path:l};console.log("clickSubmitForm",Je.value,Y.value,a),st(a),O.show=!1},ft=l=>{var e,k;const a=(e=l==null?void 0:l.contents)==null?void 0:e.find(C=>C.key==="formContent");a&&(te.value=(k=a==null?void 0:a.contents)==null?void 0:k.reduce((C,_)=>(C[_.key]=_.value,C.prop=_.key,C),{}))},Z=t.ref(!1);return{isCollapse:Z,handleMenuCollapse:()=>{Z.value=!Z.value},handleCompChange:ft,dialogForm:lt,dialogRenderComps:ot,getComponents:tt,clickSubmitForm:dt,dialogInfo:O,beforeDialogDestroy:pt,clickMenuIcon:ct,mode:Ue,renderMenuList:A,clickMenu:ze,openMenu:Ze,closeMenu:He,changeMenuStyle:X,fixElement:V,onBlur:rt}}}}const Dt=t.defineComponent(Ye()),It=["title"],St={key:1,class:"menu-title",style:{display:"flex",width:"100px"}},_t={key:2,class:"menu-operate-icon"},bt={class:"menu-config-wrap"},wt=["onClick"],Tt={class:"module-dialog-content"};function Bt(n,p,K,y,r,o){var R;const c=t.resolveComponent("ss-input"),T=t.resolveComponent("svg-icon"),x=t.resolveComponent("el-popover"),B=t.resolveComponent("ss-menu"),I=t.resolveComponent("el-button"),V=t.resolveComponent("ss-dialog");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(B,{class:"vertical-menu",mode:n.mode,menuList:n.renderMenuList,isCollapse:n.isCollapse,uniqueOpened:!0,onClickMenu:n.clickMenu,onOpenMenu:n.openMenu,onCloseMenu:n.closeMenu},{title:t.withCtx(({menu:s})=>{var Ne,qe,Ue,ee;return[!n.fixElement||(s==null?void 0:s.path)!==((Ne=n.fixElement)==null?void 0:Ne.path)?(t.openBlock(),t.createElementBlock("span",{key:0,title:s.title,class:"menu-title",style:t.normalizeStyle({marginRight:s!=null&&s.config&&((qe=s==null?void 0:s.config)==null?void 0:qe.length)>0?"25px":"1px"})},t.toDisplayString(s.title??""),13,It)):t.createCommentVNode("",!0),n.fixElement&&(s==null?void 0:s.path)===((Ue=n.fixElement)==null?void 0:Ue.path)?(t.openBlock(),t.createElementBlock("span",St,[t.createVNode(c,{value:s.title,onBlur:A=>n.onBlur(A,s)},null,8,["value","onBlur"])])):t.createCommentVNode("",!0),s!=null&&s.config&&((ee=s==null?void 0:s.config)==null?void 0:ee.length)>0?(t.openBlock(),t.createElementBlock("span",_t,[t.createVNode(x,{title:"",placement:"bottom-start",trigger:"hover","popper-class":"menu-operate-popover"},{reference:t.withCtx(()=>[t.createVNode(T,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})]),default:t.withCtx(()=>[t.createElementVNode("div",bt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s==null?void 0:s.config,A=>(t.openBlock(),t.createElementBlock("div",{class:"menu-config-item",key:A.id,onClick:ze=>n.clickMenuIcon(s,A)},[t.createVNode(T,{name:A==null?void 0:A.operateIcon,style:{width:"15px",height:"15px","margin-right":"8px"}},null,8,["name"]),t.createElementVNode("span",null,t.toDisplayString(A==null?void 0:A.operateType),1)],8,wt))),128))])]),_:2},1024)])):t.createCommentVNode("",!0)]}),_:1},8,["mode","menuList","isCollapse","onClickMenu","onOpenMenu","onCloseMenu"]),((R=n.renderMenuList)==null?void 0:R.length)>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fold-icon",onClick:p[0]||(p[0]=(...s)=>n.handleMenuCollapse&&n.handleMenuCollapse(...s))},[t.createVNode(T,{name:n.isCollapse?"expand":"pack",style:{width:"15px",height:"15px"}},null,8,["name"])])):t.createCommentVNode("",!0),t.createVNode(V,{class:"module-dialog",title:n.dialogInfo.title,visible:n.dialogInfo.show,width:n.dialogInfo.width,onBeforeDestroy:n.beforeDialogDestroy},{default:t.withCtx(()=>[t.createElementVNode("div",Tt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.dialogRenderComps,s=>(t.openBlock(),t.createElementBlock("div",{key:s.id},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(n.getComponents((s==null?void 0:s.comp)??"Input")),{itemData:s==null?void 0:s.compData,key:s==null?void 0:s.id,content:(s==null?void 0:s.contents)??[],config:s==null?void 0:s.config,onContentChange:n.handleCompChange},null,40,["itemData","content","config","onContentChange"]))]))),128))])]),footer:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(I,{id:"themeBorderButton",onClick:n.beforeDialogDestroy},{default:t.withCtx(()=>p[1]||(p[1]=[t.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),t.createVNode(I,{id:"themeButton",onClick:n.clickSubmitForm},{default:t.withCtx(()=>p[2]||(p[2]=[t.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])],64)}const Et=Ct._export_sfc(Dt,[["render",Bt],["__scopeId","data-v-20f284c2"]]);exports.addSelectMenu=Oe;exports.default=Et;exports.deleteSelectMenu=Re;exports.fixSelectMenu=ue;exports.setComponent=Ye;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const je=require("./index-CzB2oEuL.cjs"),t=require("vue"),P=require("./index-C8fMwErX.cjs"),ht=require("./index-dD_cGWLc.cjs"),yt=require("./index-COvNwtxL.cjs"),vt=require("vue-router"),Le=require("./index-9hspBVrQ.cjs"),U=require("./index-C5pQXH0_.cjs"),gt=require("./menuIndex-8RF_0N_y.cjs"),kt=require("./index-BpPyaNFa.cjs"),m=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D4mQcDEW.cjs"),Pe=require("./index-7WRVFebE.cjs"),Ct=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Re=(n,p,K=0)=>{let y=n;return y!=null&&y.every(r=>Array.isArray(r))&&(y!=null&&y.every(r=>Array.isArray(r)&&r.length===1)?y=y==null?void 0:y.filter(r=>(r==null?void 0:r[0])!==(p==null?void 0:p[K])):y=y==null?void 0:y.map(r=>{if(r!=null&&r.find(o=>o===(p==null?void 0:p[K]))&&(p==null?void 0:p.length)!==1){let o=P.cloneDeep(p),c=r==null?void 0:r.filter(I=>I!==(o==null?void 0:o[K])),T=K+1,x=Re(c,o,T),B=[];B.push(r==null?void 0:r[0]),x==null||x.forEach(I=>{B.push(I)}),r=B}return r})),y},Oe=(n,p,K,y=0)=>{let r=n;return r!=null&&r.every(o=>Array.isArray(o))&&(r!=null&&r.every(o=>Array.isArray(o)&&o.length===1)?r.push([K]):r=r==null?void 0:r.map(o=>{if(o!=null&&o.find(c=>c===(p==null?void 0:p[y]))&&(p==null?void 0:p.length)!==1){let c=P.cloneDeep(p),T=o==null?void 0:o.filter(V=>V!==(c==null?void 0:c[y])),x=y+1,B=Oe(T,c,K,x),I=[];I.push(o==null?void 0:o[0]),B==null||B.forEach(V=>{I.push(V)}),o=I}return o})),r},ue=(n,p,K,y,r=0)=>{let o=n;return o!=null&&o.every(c=>Array.isArray(c))&&(o!=null&&o.every(c=>Array.isArray(c)&&c.length===1)?o=o==null?void 0:o.map(c=>((c==null?void 0:c[0])===K&&(c=[y]),c)):o=o==null?void 0:o.map(c=>{if(c!=null&&c.find(T=>T===(p==null?void 0:p[r]))&&(p==null?void 0:p.length)!==1){let T=P.cloneDeep(p),x=c==null?void 0:c.filter(R=>R!==(T==null?void 0:T[r])),B=r+1,I=ue(x,T,K,y,B),V=[];V.push(c==null?void 0:c[0]),I==null||I.forEach(R=>{V.push(R)}),c=V}return c})),o};function Ye(n="menu"){return{name:n,components:{SvgIcon:kt.SvgIcon,ssMenu:je.ssMenu,DynamicIcon:je._sfc_main,ssDialog:ht.ssDialog,ssInput:yt._sfc_main$2},setup(p,{emit:K}){const y=t.defineProps({mode:{type:String,default:"vertical"}}),r=t.ref([{allowInherit:!1,operateType:"复制新增",operateIcon:"CopyAddMenu"},{allowInherit:!1,operateType:"删除",operateIcon:"DeleteMenu"},{allowInherit:!1,operateType:"修改菜单名",operateIcon:"FixedMenu"}]),o=P.useMenuState(),c=P.useModelComp(P.pinia),T=P.useLoginState(P.pinia),{loginUserInfo:x}=P.storeToRefs(T),B=t.ref(0),I=vt.useRouter(),V=t.ref(),{asideMenus:R,menuTriggerType:s,platform:Ne}=P.storeToRefs(o),{fixMenuStatus:qe}=P.storeToRefs(c),Ue=t.computed(()=>y==null?void 0:y.mode),ee=l=>l==null?void 0:l.map(e=>{var k,C;return!(e!=null&&e.children)||((k=e==null?void 0:e.children)==null?void 0:k.length)===0?e.config=r.value:e!=null&&e.children&&((C=e==null?void 0:e.children)==null?void 0:C.length)>0&&(e.children=ee(e.children)),e}),A=t.computed(()=>{let l=[...R.value];if((l==null?void 0:l.length)===0)return I.push("/"),[];const a=et(l,me.value);return a.isFlag||(l=a==null?void 0:a.data),l=l==null?void 0:l.map(e=>{var k,C;return!(e!=null&&e.children)||((k=e==null?void 0:e.children)==null?void 0:k.length)===0?e.config=r.value:e!=null&&e.children&&((C=e==null?void 0:e.children)==null?void 0:C.length)>0&&(e.children=ee(e.children)),e}),l}),ze=async(l,a)=>{c.setRouteToChildPath(""),o.setMenuTriggerType("click"),o.setActiveMenuPath(l==null?void 0:l.path),o.setActiveAsideMenu(l),l.isRouter?I.push(l.path):I.push("/"),K("node-click",l,a)},Ze=async l=>{const a=gt.findNodeByPropInTree(A.value,"path",l);o.setActiveAsideMenu(a),c.setRouteToChildPath(""),qe.value?c.setFixMenuStatus(!1):(Z.value&&(s.value="open"),s.value==="click"?B.value===1?o.setActiveMenuPath(sessionStorage.getItem("pageKey")):o.setActiveMenuPath(l):Z.value||(o.setMenuTriggerType("click"),o.setActiveMenuPath(l))),l!=null&&l.startsWith("/")?I.push(l):I.push("/"),B.value++},He=l=>{Z.value||o.setActiveMenuPath(l)},X=l=>{const a=document.documentElement;l==null||l.forEach(e=>{a.style.setProperty(e.name,e.value)})};t.onMounted(()=>{B.value=1});const me=t.computed(()=>{const l=sessionStorage.getItem("authority");return l?JSON.parse(l):[]});t.watch(()=>Ne.value,l=>{l==="browser"?X(Le.browserVerticalMenuClasses):l==="client"?(X(Le.clientHorizontalMenuClasses),X(Le.clientVerticalMenuClasses)):l==="three"&&(X(Le.threeHorizontalMenuClasses),X(Le.threeVerticalMenuClasses))},{immediate:!0});const et=(l,a)=>({isFlag:!0}),O=t.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),tt=l=>je.getComponent(l),lt=t.ref({}),ot=t.ref([]),te=t.ref({}),Y=t.ref({}),at=l=>{switch(l){case"复制新增":return"create";case"修改菜单名":return"update";case"删除":return"delete"}},Je=t.ref({}),st=l=>{o.setCacheInputMenu({type:O.type,data:l}),o.setIsRefreshMenus(!0)},it=async(l,a,e)=>{var k,C,_,z,E,H,j,le,oe,ae,se,ie,re,ce,pe,ne,de,fe,he,ye,ve,ge,ke,Ce,De,Ie,Se,_e,be,we,Te,Be,Ee,Me,Ke,xe,Ve,Ae,h,F,L,b;if(a==="create"){let d=(e==null?void 0:e.title)+"(1)",M=await U.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),S=(C=(k=M==null?void 0:M.data)==null?void 0:k.result)==null?void 0:C[0],J=(_=S==null?void 0:S.value)==null?void 0:_.pageData;J.compData=(z=J.compData)==null?void 0:z.map(i=>{var f;return(i==null?void 0:i.key)==="menuContents"&&(i.contents=Oe(i.contents,(f=e==null?void 0:e.path)==null?void 0:f.split("/"),d)),i}),await U.updateInsofDataApi({id:S==null?void 0:S.id,value:{pageData:J}});let N=(H=(E=e==null?void 0:e.path)==null?void 0:E.split("/"))==null?void 0:H.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}),q=await m.getItemData((oe=(le=(j=e==null?void 0:e.path)==null?void 0:j.split("/"))==null?void 0:le.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}))==null?void 0:oe.join("/"),sessionStorage.getItem("systemKey"),"");if(N.push(d),N=N==null?void 0:N.join("/"),(q==null?void 0:q.length)>0){let i=q==null?void 0:q[0],f=(se=(ae=i==null?void 0:i.compData)==null?void 0:ae.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:se.contents;if(((ie=f==null?void 0:f[0])==null?void 0:ie.directiveLabel)==="#isMain"){let g=(re=f==null?void 0:f[0])==null?void 0:re.prop,D=(pe=(ce=i==null?void 0:i.compData)==null?void 0:ce.find(w=>(w==null?void 0:w.key)==="tableContents"))==null?void 0:pe.contents,W;D==null||D.forEach(w=>{var G,u;if(w.length===1)((G=w==null?void 0:w[0])==null?void 0:G[g])===(e==null?void 0:e.title)&&(W=w==null?void 0:w[0],W[g]=d);else{let Q=(u=f==null?void 0:f.filter($=>$!=="操作"))==null?void 0:u.map($=>$==null?void 0:$.prop),$e=w==null?void 0:w.filter($=>!($!=null&&$.id)),Fe=m.getValueToObjectValue($e,Q);Fe[g]=d,W=Fe}}),await U.createInsofDataApi({key:{type:"data",pageKey:(fe=(de=(ne=e==null?void 0:e.path)==null?void 0:ne.split("/"))==null?void 0:de.filter((w,G)=>{var u,Q;return G!==((Q=(u=e==null?void 0:e.path)==null?void 0:u.split("/"))==null?void 0:Q.length)-1}))==null?void 0:fe.join("/"),tableId:i==null?void 0:i.id,systemKey:sessionStorage.getItem("systemKey"),createUserId:(he=x.value)==null?void 0:he.id,createUserLayer:((ye=x.value)==null?void 0:ye.dept)||((ve=x.value)==null?void 0:ve.部门名称)},value:{tableData:W}})}}await m.newLoadingConstruct(e==null?void 0:e.path,N),o.setUpdateMenuStatus(!1),await Pe.verifyStructureDataToStore(),o.setActiveMenuPath((Ce=(ke=(ge=e==null?void 0:e.path)==null?void 0:ge.split("/"))==null?void 0:ke.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}))==null?void 0:Ce.join("/")),o.setActiveTopMenuPath((Ie=(De=e==null?void 0:e.path)==null?void 0:De.split("/"))==null?void 0:Ie[0]),o.setIsRefreshMenus(!1),o.setIsRefreshMenus(!0)}else if(a==="update")V.value=e;else if(a==="delete"){let d=await U.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:e==null?void 0:e.path}}),M=await U.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),S=(_e=(Se=M==null?void 0:M.data)==null?void 0:Se.result)==null?void 0:_e[0],J=(be=S==null?void 0:S.value)==null?void 0:be.pageData;if(J.compData=(we=J.compData)==null?void 0:we.map(i=>{var f;return(i==null?void 0:i.key)==="menuContents"&&(i.contents=Re(i.contents,(f=e==null?void 0:e.path)==null?void 0:f.split("/"))),i}),await U.updateInsofDataApi({id:S==null?void 0:S.id,value:{pageData:J}}),((Be=(Te=d==null?void 0:d.data)==null?void 0:Te.result)==null?void 0:Be.length)>0){let i=(Me=(Ee=d==null?void 0:d.data)==null?void 0:Ee.result)==null?void 0:Me.map(f=>f==null?void 0:f.id);(i==null?void 0:i.length)>0&&await U.batchDeleteInsofDataApi({ids:i})}let N=await m.getItemData((Ve=(xe=(Ke=e==null?void 0:e.path)==null?void 0:Ke.split("/"))==null?void 0:xe.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}))==null?void 0:Ve.join("/"),sessionStorage.getItem("systemKey"),""),q=[];(N==null?void 0:N.length)>0&&(N==null||N.forEach(i=>{var g,D,W,w,G,u,Q,$e,Fe,$,We;let f=(w=(W=(D=(g=i==null?void 0:i.compData)==null?void 0:g.find(v=>(v==null?void 0:v.key)==="header"))==null?void 0:D.contents)==null?void 0:W[0])==null?void 0:w.prop;(($e=(Q=(u=(G=i==null?void 0:i.compData)==null?void 0:G.find(v=>(v==null?void 0:v.key)==="header"))==null?void 0:u.contents)==null?void 0:Q[0])==null?void 0:$e.directiveLabel)==="#isMain"&&((We=($=(Fe=i==null?void 0:i.compData)==null?void 0:Fe.find(v=>(v==null?void 0:v.key)==="tableContents"))==null?void 0:$.contents)==null||We.forEach(v=>{var Ge,Qe,Xe;(v==null?void 0:v.length)>1?(v==null?void 0:v[1])===(e==null?void 0:e.title)&&q.push((Ge=v==null?void 0:v[0])==null?void 0:Ge.id):((Qe=v==null?void 0:v[0])==null?void 0:Qe[f])===(e==null?void 0:e.title)&&q.push((Xe=v==null?void 0:v[0])==null?void 0:Xe.id)}))})),(q==null?void 0:q.length)>0&&await U.batchDeleteInsofDataApi({ids:q}),o.setUpdateMenuStatus(!1),await Pe.verifyStructureDataToStore(),o.setActiveMenuPath((F=(h=(Ae=e==null?void 0:e.path)==null?void 0:Ae.split("/"))==null?void 0:h.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}))==null?void 0:F.join("/")),o.setActiveTopMenuPath((b=(L=e==null?void 0:e.path)==null?void 0:L.split("/"))==null?void 0:b[0]),o.setIsRefreshMenus(!1),o.setIsRefreshMenus(!0)}},rt=async(l,a)=>{var le,oe,ae,se,ie,re,ce,pe,ne,de,fe,he,ye,ve,ge,ke,Ce,De,Ie,Se,_e,be,we,Te,Be,Ee,Me,Ke,xe,Ve,Ae;let e=await U.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),k=(oe=(le=e==null?void 0:e.data)==null?void 0:le.result)==null?void 0:oe[0],C=(ae=k==null?void 0:k.value)==null?void 0:ae.pageData;C.compData=(se=C.compData)==null?void 0:se.map(h=>{var F,L;return(h==null?void 0:h.key)==="menuContents"&&(h.contents=ue(h.contents,(F=a==null?void 0:a.path)==null?void 0:F.split("/"),a==null?void 0:a.title,(L=l==null?void 0:l.target)==null?void 0:L.value)),h}),k!=null&&k.id&&await U.updateInsofDataApi({id:k==null?void 0:k.id,value:{pageData:C}});let _=(re=(ie=a==null?void 0:a.path)==null?void 0:ie.split("/"))==null?void 0:re.filter((h,F)=>{var L,b;return F!==((b=(L=a==null?void 0:a.path)==null?void 0:L.split("/"))==null?void 0:b.length)-1}),z=_==null?void 0:_.join("/");_.push((ce=l==null?void 0:l.target)==null?void 0:ce.value),_=_==null?void 0:_.join("/");let E=await m.getItemData(z,sessionStorage.getItem("systemKey"),"");if(((he=(fe=(de=(ne=(pe=E==null?void 0:E[0])==null?void 0:pe.compData)==null?void 0:ne.find(h=>(h==null?void 0:h.key)==="header"))==null?void 0:de.contents)==null?void 0:fe[0])==null?void 0:he.directiveLabel)==="#isMain"){let h=(Ce=(ke=(ge=(ve=(ye=E==null?void 0:E[0])==null?void 0:ye.compData)==null?void 0:ve.find(d=>(d==null?void 0:d.key)==="header"))==null?void 0:ge.contents)==null?void 0:ke[0])==null?void 0:Ce.prop,F=(Se=(Ie=(De=E==null?void 0:E[0])==null?void 0:De.compData)==null?void 0:Ie.find(d=>(d==null?void 0:d.key)==="tableContents"))==null?void 0:Se.contents,L=(Te=(we=(be=(_e=E==null?void 0:E[0])==null?void 0:_e.compData)==null?void 0:be.find(d=>(d==null?void 0:d.key)==="header"))==null?void 0:we.contents)==null?void 0:Te.map(d=>d==null?void 0:d.prop),b;if(F==null||F.forEach(d=>{var S;let M=m.getValueToObjectValue(d,L);(M==null?void 0:M[h])===a.title&&(b=M,b[h]=(S=l==null?void 0:l.target)==null?void 0:S.value)}),b){let d={};for(let S in b)S!=="id"&&(d[S]=b==null?void 0:b[S]);let M=[{id:b==null?void 0:b.id,value:{tableData:d}}];await U.batchUpdateInsofDataApi({dataList:M})}}let H=await U.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:a==null?void 0:a.path}}),j=(Ee=(Be=H==null?void 0:H.data)==null?void 0:Be.result)==null?void 0:Ee.map(h=>({id:h==null?void 0:h.id,key:h==null?void 0:h.key}));j=j==null?void 0:j.map(h=>(h.key.pageKey=_,h)),(j==null?void 0:j.length)>0&&await U.batchUpdateInsofDataApi({dataList:j}),o.setUpdateMenuStatus(!1),await Pe.verifyStructureDataToStore(),o.setActiveMenuPath((xe=(Ke=(Me=a==null?void 0:a.path)==null?void 0:Me.split("/"))==null?void 0:Ke.filter((h,F)=>{var L,b;return F!==((b=(L=a==null?void 0:a.path)==null?void 0:L.split("/"))==null?void 0:b.length)-1}))==null?void 0:xe.join("/")),o.setActiveTopMenuPath((Ae=(Ve=a==null?void 0:a.path)==null?void 0:Ve.split("/"))==null?void 0:Ae[0]),o.setIsRefreshMenus(!1),o.setIsRefreshMenus(!0),V.value=void 0},ct=async(l,a)=>{O.type=at(a==null?void 0:a.operateType),await it(a,O.type,l),Y.value=l,Je.value=a},pt=()=>{O.show=!1},nt=l=>l==null?void 0:l.filter(a=>a.allowInherit),dt=()=>{var e,k,C,_,z;let l;O.type==="create"&&(l=((e=Y.value)==null?void 0:e.path)+"/"+te.value[(k=te.value)==null?void 0:k.prop]),O.type==="update"&&(l=(C=Y.value)==null?void 0:C.path);const a={...Y.value,config:nt((_=Y.value)==null?void 0:_.config),children:[],childMenus:[],title:te.value[(z=te.value)==null?void 0:z.prop],path:l};console.log("clickSubmitForm",Je.value,Y.value,a),st(a),O.show=!1},ft=l=>{var e,k;const a=(e=l==null?void 0:l.contents)==null?void 0:e.find(C=>C.key==="formContent");a&&(te.value=(k=a==null?void 0:a.contents)==null?void 0:k.reduce((C,_)=>(C[_.key]=_.value,C.prop=_.key,C),{}))},Z=t.ref(!1);return{isCollapse:Z,handleMenuCollapse:()=>{Z.value=!Z.value},handleCompChange:ft,dialogForm:lt,dialogRenderComps:ot,getComponents:tt,clickSubmitForm:dt,dialogInfo:O,beforeDialogDestroy:pt,clickMenuIcon:ct,mode:Ue,renderMenuList:A,clickMenu:ze,openMenu:Ze,closeMenu:He,changeMenuStyle:X,fixElement:V,onBlur:rt}}}}const Dt=t.defineComponent(Ye()),It=["title"],St={key:1,class:"menu-title",style:{display:"flex",width:"100px"}},_t={key:2,class:"menu-operate-icon"},bt={class:"menu-config-wrap"},wt=["onClick"],Tt={class:"module-dialog-content"};function Bt(n,p,K,y,r,o){var R;const c=t.resolveComponent("ss-input"),T=t.resolveComponent("svg-icon"),x=t.resolveComponent("el-popover"),B=t.resolveComponent("ss-menu"),I=t.resolveComponent("el-button"),V=t.resolveComponent("ss-dialog");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(B,{class:"vertical-menu",mode:n.mode,menuList:n.renderMenuList,isCollapse:n.isCollapse,uniqueOpened:!0,onClickMenu:n.clickMenu,onOpenMenu:n.openMenu,onCloseMenu:n.closeMenu},{title:t.withCtx(({menu:s})=>{var Ne,qe,Ue,ee;return[!n.fixElement||(s==null?void 0:s.path)!==((Ne=n.fixElement)==null?void 0:Ne.path)?(t.openBlock(),t.createElementBlock("span",{key:0,title:s.title,class:"menu-title",style:t.normalizeStyle({marginRight:s!=null&&s.config&&((qe=s==null?void 0:s.config)==null?void 0:qe.length)>0?"25px":"1px"})},t.toDisplayString(s.title??""),13,It)):t.createCommentVNode("",!0),n.fixElement&&(s==null?void 0:s.path)===((Ue=n.fixElement)==null?void 0:Ue.path)?(t.openBlock(),t.createElementBlock("span",St,[t.createVNode(c,{value:s.title,onBlur:A=>n.onBlur(A,s)},null,8,["value","onBlur"])])):t.createCommentVNode("",!0),s!=null&&s.config&&((ee=s==null?void 0:s.config)==null?void 0:ee.length)>0?(t.openBlock(),t.createElementBlock("span",_t,[t.createVNode(x,{title:"",placement:"bottom-start",trigger:"hover","popper-class":"menu-operate-popover"},{reference:t.withCtx(()=>[t.createVNode(T,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})]),default:t.withCtx(()=>[t.createElementVNode("div",bt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s==null?void 0:s.config,A=>(t.openBlock(),t.createElementBlock("div",{class:"menu-config-item",key:A.id,onClick:ze=>n.clickMenuIcon(s,A)},[t.createVNode(T,{name:A==null?void 0:A.operateIcon,style:{width:"15px",height:"15px","margin-right":"8px"}},null,8,["name"]),t.createElementVNode("span",null,t.toDisplayString(A==null?void 0:A.operateType),1)],8,wt))),128))])]),_:2},1024)])):t.createCommentVNode("",!0)]}),_:1},8,["mode","menuList","isCollapse","onClickMenu","onOpenMenu","onCloseMenu"]),((R=n.renderMenuList)==null?void 0:R.length)>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fold-icon",onClick:p[0]||(p[0]=(...s)=>n.handleMenuCollapse&&n.handleMenuCollapse(...s))},[t.createVNode(T,{name:n.isCollapse?"expand":"pack",style:{width:"15px",height:"15px"}},null,8,["name"])])):t.createCommentVNode("",!0),t.createVNode(V,{class:"module-dialog",title:n.dialogInfo.title,visible:n.dialogInfo.show,width:n.dialogInfo.width,onBeforeDestroy:n.beforeDialogDestroy},{default:t.withCtx(()=>[t.createElementVNode("div",Tt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.dialogRenderComps,s=>(t.openBlock(),t.createElementBlock("div",{key:s.id},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(n.getComponents((s==null?void 0:s.comp)??"Input")),{itemData:s==null?void 0:s.compData,key:s==null?void 0:s.id,content:(s==null?void 0:s.contents)??[],config:s==null?void 0:s.config,onContentChange:n.handleCompChange},null,40,["itemData","content","config","onContentChange"]))]))),128))])]),footer:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(I,{id:"themeBorderButton",onClick:n.beforeDialogDestroy},{default:t.withCtx(()=>p[1]||(p[1]=[t.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),t.createVNode(I,{id:"themeButton",onClick:n.clickSubmitForm},{default:t.withCtx(()=>p[2]||(p[2]=[t.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])],64)}const Et=Ct._export_sfc(Dt,[["render",Bt],["__scopeId","data-v-20f284c2"]]);exports.addSelectMenu=Oe;exports.default=Et;exports.deleteSelectMenu=Re;exports.fixSelectMenu=ue;exports.setComponent=Ye;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as l, reactive as c, onMounted as s, createElementBlock as r, openBlock as i, createVNode as p } from "vue";
|
|
2
|
-
import { S as m } from "./index-
|
|
3
|
-
import { s as _ } from "./index-
|
|
2
|
+
import { S as m } from "./index-DGRL8SEt.js";
|
|
3
|
+
import { s as _ } from "./index-DVHBs_Vv.js";
|
|
4
4
|
import { _ as d } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const f = { class: "log-wrap" }, u = /* @__PURE__ */ l({
|
|
6
6
|
__name: "index",
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { defineComponent as ze, defineProps as st, ref as L, computed as ee, watch as YA, onMounted as on, resolveComponent as TA, createBlock as xA, openBlock as z, withCtx as M, createElementVNode as H, toDisplayString as UA, createElementBlock as q, Fragment as ue, renderList as Ee, createCommentVNode as CA, normalizeStyle as Fe, createVNode as O, unref as a, resolveDynamicComponent as Ye, provide as fn, resolveDirective as ct, withDirectives as je, vShow as Re, createTextVNode as pe, renderSlot as We, normalizeClass as Ke, onUnmounted as St, createSlots as Jt } from "vue";
|
|
2
|
-
import { m as Sn, a as Jn, b as Ln, c as Lt } from "./array-
|
|
3
|
-
import mt from "./index-
|
|
4
|
-
import { _ as vt, s as rt, a as Ge, b as He, c as Rt, d as Kt, r as te, o as Te, e as Ze, f as ut, h as Hn, i as gt, j as pn, k as dt, l as Mt, t as Dt, m as ln, n as yn, p as Xn, q as an, u as In, v as sn, w as cn, x as vn, y as rn, z as un, A as En, D as Wt, B as Nt, C as Ut, E as lt, F as ft, G as oe, H as Tt, I as Zt, J as Yt } from "./index-
|
|
5
|
-
import { u as be, a as Ne, p as qA, s as MA, b as qe, c as GA
|
|
2
|
+
import { m as Sn, a as Jn, b as Ln, c as Lt } from "./array-C_SHxtRO.js";
|
|
3
|
+
import mt from "./index-BkdUzwcU.js";
|
|
4
|
+
import { _ as vt, s as rt, a as Ge, b as He, c as Rt, d as Kt, r as te, o as Te, e as Ze, f as ut, h as Hn, i as gt, j as pn, k as dt, l as Mt, t as Dt, m as ln, n as yn, p as Xn, q as an, u as In, v as sn, w as cn, x as vn, y as rn, z as un, A as En, D as Wt, B as Nt, C as Ut, E as lt, F as ft, G as oe, H as Tt, I as Zt, J as Yt, K as ge, L as Gt, M as it, N as Ft, O as Vt, P as bn } from "./index-C3IjfJgf.js";
|
|
5
|
+
import { u as be, a as Ne, p as qA, s as MA, b as qe, c as GA } from "./index-sMsCzNtW.js";
|
|
6
6
|
import { useRouter as ot } from "vue-router";
|
|
7
7
|
import { a as Pt, d as Ct, e as It, f as Et, g as Bt, h as zt, t as qt, c as _t, b as $t } from "./index-CAPx0_D4.js";
|
|
8
8
|
import { u as mn, E as Oe, b as Qt, g as Be, c as Al, a as Je, d as el } from "./index-B8HqIYd5.js";
|
|
9
|
-
import { g as Bn, s as nl, _ as
|
|
10
|
-
import { u as Qn, b as Rn, d as gn, g as Me, c as yt, e as dn, o as Xt, f as tl, l as ll, h as fl, i as
|
|
11
|
-
import "./index-
|
|
9
|
+
import { g as Bn, s as nl, _ as wn } from "./index-DUygJhjf.js";
|
|
10
|
+
import { u as Qn, b as Rn, d as gn, g as Me, c as yt, e as dn, o as Xt, f as tl, l as ll, h as fl, i as al } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DLfKrpq4.js";
|
|
11
|
+
import "./index-BTfRODup.js";
|
|
12
12
|
import "./index-DFBXEIIr.js";
|
|
13
|
-
import { c as
|
|
13
|
+
import { c as Ot } from "./menuIndex-BwWrdu20.js";
|
|
14
14
|
import { _ as Le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
import { C as
|
|
15
|
+
import { C as sl } from "./index-C38KGQKj.js";
|
|
16
16
|
import { S as le } from "./index-BHtNKL1L.js";
|
|
17
|
-
import
|
|
17
|
+
import cl from "./threeModel-Dw1HYePN.js";
|
|
18
18
|
import { _ as De } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
19
|
-
import { s as zn } from "./index-
|
|
20
|
-
import { T as kn, u as
|
|
21
|
-
import { s as xn } from "./index-
|
|
22
|
-
import { u as
|
|
19
|
+
import { s as zn } from "./index-CN5eTGfF.js";
|
|
20
|
+
import { T as kn, u as vl, a as rl } from "./threeViewerHost-DNY3nOwS.js";
|
|
21
|
+
import { s as xn } from "./index-Bt9rt1NQ.js";
|
|
22
|
+
import { u as jt } from "./index-DVHBs_Vv.js";
|
|
23
|
+
import { g as Ht, c as ul, m as gl, l as dl, d as il, v as ol } from "./index-BtuZ5Zx4.js";
|
|
23
24
|
import { T as at } from "./svgIcon-4u4PW7Is.js";
|
|
24
|
-
import {
|
|
25
|
-
import { f as Pl, a as Cl } from "./animationData-CpK8d_Vm.js";
|
|
25
|
+
import { f as Pl, a as Cl } from "./animationData-Bfm5Jk8y.js";
|
|
26
26
|
be();
|
|
27
27
|
const Il = be(), pt = async (P, j) => {
|
|
28
28
|
var s, c, I, l;
|
|
@@ -235,7 +235,7 @@ function El(P = "menu") {
|
|
|
235
235
|
if (pA.value = Bn(), A) {
|
|
236
236
|
U.value && (c.setActiveTopMenuPath(""), c.setActiveMenuPath(""), c.setAsideMenus([]));
|
|
237
237
|
const t = A;
|
|
238
|
-
jA.value = V(
|
|
238
|
+
jA.value = V(Ot(t));
|
|
239
239
|
}
|
|
240
240
|
},
|
|
241
241
|
{
|
|
@@ -726,14 +726,14 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
726
726
|
console.error("加载菜单或页面时出错:", uA);
|
|
727
727
|
}
|
|
728
728
|
})(K);
|
|
729
|
-
}, hA = Qn(qA), { selectTitle: bA } = MA(hA), wA = L(!1), JA = L(), gA = L(null), V = L(), m = L(!1), EA =
|
|
729
|
+
}, hA = Qn(qA), { selectTitle: bA } = MA(hA), wA = L(!1), JA = L(), gA = L(null), V = L(), m = L(!1), EA = jt(qA), { blobUrls: zA } = MA(EA), DA = L(), mA = L(!1), FA = L(!1), _A = L(!1), VA = L([]), D = L(!1), eA = L(null), PA = L([]), dA = L(!1), Y = L(!1), k = L();
|
|
730
730
|
fn("contentRef", eA);
|
|
731
731
|
const $A = Ne(qA), { isEdit: ne, routeToChildPath: ce } = MA($A), de = j, A = be(qA), { asideMenuLoading: t, importLoading: g, activeAsideMenu: e, contentLoading: f, platName: u, activeMenuPath: i } = MA(A), v = P, d = ee(() => e.value.isRouter), h = () => {
|
|
732
732
|
sessionStorage.clear(), window.location.reload();
|
|
733
733
|
}, C = async (K) => {
|
|
734
734
|
var Q, nA, iA, cA, T, oA, X, uA, yA, tA, OA, E, b, vA, J, BA, N, aA;
|
|
735
735
|
if ((K == null ? void 0 : K.type) === "table" && (Q = bA.value) != null && Q.every((S) => (S == null ? void 0 : S.condition) !== "parent")) {
|
|
736
|
-
let S = await
|
|
736
|
+
let S = await Ht({
|
|
737
737
|
platId: parseInt((nA = o == null ? void 0 : o.value) == null ? void 0 : nA.plat_id),
|
|
738
738
|
pageName: "menu"
|
|
739
739
|
});
|
|
@@ -1036,7 +1036,7 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
1036
1036
|
return (K, Q) => {
|
|
1037
1037
|
const nA = TA("el-dialog"), iA = TA("el-button"), cA = TA("el-header"), T = TA("el-splitter-panel"), oA = TA("el-splitter"), X = TA("el-container"), uA = TA("el-tab-pane"), yA = TA("el-tabs"), tA = TA("el-aside"), OA = TA("el-image"), E = TA("router-view"), b = TA("el-step"), vA = TA("el-steps"), J = TA("el-main"), BA = ct("loading");
|
|
1038
1038
|
return z(), q(ue, null, [
|
|
1039
|
-
je(O(
|
|
1039
|
+
je(O(sl, {
|
|
1040
1040
|
ref_key: "cropperDialogRef",
|
|
1041
1041
|
ref: U,
|
|
1042
1042
|
title: "更改头像",
|
|
@@ -1229,7 +1229,7 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
1229
1229
|
__: [9]
|
|
1230
1230
|
}, 8, ["onClick"])) : CA("", !0),
|
|
1231
1231
|
We(K.$slots, "default", {}, void 0, !0),
|
|
1232
|
-
O(
|
|
1232
|
+
O(wn, null, {
|
|
1233
1233
|
dropTitle: M(() => [
|
|
1234
1234
|
H("div", {
|
|
1235
1235
|
class: "icon-wrapper",
|
|
@@ -1316,7 +1316,7 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
1316
1316
|
]),
|
|
1317
1317
|
_: 1
|
|
1318
1318
|
}),
|
|
1319
|
-
O(
|
|
1319
|
+
O(wn, null, {
|
|
1320
1320
|
dropTitle: M(() => [
|
|
1321
1321
|
O(xn, {
|
|
1322
1322
|
size: 35,
|
|
@@ -1694,7 +1694,7 @@ const yl = /* @__PURE__ */ Le(Bl, [["render", Ql], ["__scopeId", "data-v-0cbc421
|
|
|
1694
1694
|
style: { height: "700px", width: "1000px" }
|
|
1695
1695
|
}, {
|
|
1696
1696
|
default: M(() => [
|
|
1697
|
-
O(
|
|
1697
|
+
O(cl, {
|
|
1698
1698
|
ref_key: "threeModelRef",
|
|
1699
1699
|
ref: gA
|
|
1700
1700
|
}, null, 512)
|
|
@@ -1921,7 +1921,7 @@ function wt(P = "menu") {
|
|
|
1921
1921
|
if (pA.value = Bn(), A) {
|
|
1922
1922
|
U.value && (c.setActiveTopMenuPath(""), c.setActiveMenuPath(""), c.setAsideMenus([]));
|
|
1923
1923
|
const t = A;
|
|
1924
|
-
jA.value = V(
|
|
1924
|
+
jA.value = V(Ot(t));
|
|
1925
1925
|
}
|
|
1926
1926
|
},
|
|
1927
1927
|
{
|
|
@@ -2087,9 +2087,9 @@ const Nf = /* @__PURE__ */ Le(Kf, [["render", Wf], ["__scopeId", "data-v-94d06d5
|
|
|
2087
2087
|
}).length
|
|
2088
2088
|
);
|
|
2089
2089
|
ee(() => l.value > 99 ? "99+" : l.value);
|
|
2090
|
-
const r = Rn(qA), { originalPath: w } = MA(r), x = w.value, y = Qn(qA), { selectTitle: n } = MA(y), W = L(!1), p = L(null), R = L(), $ = L(!1), _ =
|
|
2090
|
+
const r = Rn(qA), { originalPath: w } = MA(r), x = w.value, y = Qn(qA), { selectTitle: n } = MA(y), W = L(!1), p = L(null), R = L(), $ = L(!1), _ = jt(qA), { blobUrls: o } = MA(_), U = L(!1), fA = L(!1), sA = L(!1), jA = L([]), pA = L(!1), hA = L(null), bA = L([]), wA = L(!1);
|
|
2091
2091
|
fn("contentRef", hA);
|
|
2092
|
-
const JA = qe(), { loginUserInfo: gA } = MA(JA), V = Ne(qA), { isEdit: m, routeToChildPath: EA } = MA(V), zA = j, DA = be(qA), { asideMenuLoading: mA, importLoading: FA, activeAsideMenu: _A, contentLoading: VA, platName: D, activeMenuPath: eA } = MA(DA), PA =
|
|
2092
|
+
const JA = qe(), { loginUserInfo: gA } = MA(JA), V = Ne(qA), { isEdit: m, routeToChildPath: EA } = MA(V), zA = j, DA = be(qA), { asideMenuLoading: mA, importLoading: FA, activeAsideMenu: _A, contentLoading: VA, platName: D, activeMenuPath: eA } = MA(DA), PA = vl(qA), { data: dA } = MA(PA), { setData: Y } = rl(), k = ee(() => _A.value.isRouter), $A = () => {
|
|
2093
2093
|
sessionStorage.clear(), window.location.reload();
|
|
2094
2094
|
}, ne = (E) => {
|
|
2095
2095
|
if ((E == null ? void 0 : E.type) === "table") {
|
|
@@ -2675,7 +2675,7 @@ const Nf = /* @__PURE__ */ Le(Kf, [["render", Wf], ["__scopeId", "data-v-94d06d5
|
|
|
2675
2675
|
}
|
|
2676
2676
|
}), va = /* @__PURE__ */ Le(ca, [["__scopeId", "data-v-1864bc45"]]), ra = qe(qA), { loginUserInfo: Pe } = MA(ra), ua = be(), ga = async () => {
|
|
2677
2677
|
var j, s, c, I, l, r, w;
|
|
2678
|
-
let P = await
|
|
2678
|
+
let P = await Ht({
|
|
2679
2679
|
platId: parseInt((j = Pe == null ? void 0 : Pe.value) == null ? void 0 : j.plat_id),
|
|
2680
2680
|
pageName: "menu"
|
|
2681
2681
|
});
|
|
@@ -2687,11 +2687,11 @@ const Nf = /* @__PURE__ */ Le(Kf, [["render", Wf], ["__scopeId", "data-v-94d06d5
|
|
|
2687
2687
|
var n;
|
|
2688
2688
|
return (n = y == null ? void 0 : y.object_name) == null ? void 0 : n.replaceAll("**^", "/");
|
|
2689
2689
|
});
|
|
2690
|
-
x = [...new Set(x)], x =
|
|
2690
|
+
x = [...new Set(x)], x = gl(x), ua.setRawMenus(x ?? []);
|
|
2691
2691
|
}
|
|
2692
2692
|
}, da = async (P) => {
|
|
2693
2693
|
var j, s, c;
|
|
2694
|
-
await
|
|
2694
|
+
await ul({
|
|
2695
2695
|
platId: parseInt((j = Pe == null ? void 0 : Pe.value) == null ? void 0 : j.plat_id),
|
|
2696
2696
|
userName: (s = Pe == null ? void 0 : Pe.value) == null ? void 0 : s.user_name,
|
|
2697
2697
|
password: (c = Pe == null ? void 0 : Pe.value) == null ? void 0 : c.password,
|
|
@@ -2707,7 +2707,7 @@ const kt = (P) => {
|
|
|
2707
2707
|
var l, r, w, x, y, n, W, p, R, $, _, o, U, fA, sA, jA, pA, hA, bA, wA, JA, gA;
|
|
2708
2708
|
let I = P;
|
|
2709
2709
|
if (kt(I == null ? void 0 : I[0])) {
|
|
2710
|
-
let V =
|
|
2710
|
+
let V = Gt(I), m = (w = (r = (l = I == null ? void 0 : I[0]) == null ? void 0 : l.replace("@", kA)) == null ? void 0 : r.split(kA)) == null ? void 0 : w[1];
|
|
2711
2711
|
return m = (x = ge(m, ":")) == null ? void 0 : x[0], (m == null ? void 0 : m[(m == null ? void 0 : m.length) - 1]) === ":" && (m = m == null ? void 0 : m.slice(0, (m == null ? void 0 : m.length) - 1)), m = (n = (y = m == null ? void 0 : m.replace("(", kA)) == null ? void 0 : y.split(kA)) == null ? void 0 : n[1], m = m == null ? void 0 : m.slice(0, (m == null ? void 0 : m.length) - 1), m = (p = (W = ge(m, ",")) == null ? void 0 : W.map((EA) => (EA = "@" + EA, EA))) == null ? void 0 : p.join(""), {
|
|
2712
2712
|
key: "Form",
|
|
2713
2713
|
name: V == null ? void 0 : V.groupName,
|
|
@@ -2716,7 +2716,7 @@ const kt = (P) => {
|
|
|
2716
2716
|
filter: "(" + m + ")"
|
|
2717
2717
|
};
|
|
2718
2718
|
} else {
|
|
2719
|
-
let V =
|
|
2719
|
+
let V = it(I, c), m = (_ = ($ = (R = V == null ? void 0 : V.tableFilter) == null ? void 0 : R.replace("(", kA)) == null ? void 0 : $.split(kA)) == null ? void 0 : _[0];
|
|
2720
2720
|
return {
|
|
2721
2721
|
key: "Table",
|
|
2722
2722
|
name: V == null ? void 0 : V.groupName,
|
|
@@ -2731,7 +2731,7 @@ const kt = (P) => {
|
|
|
2731
2731
|
var c, I, l, r, w, x, y, n, W, p, R, $, _, o, U, fA, sA, jA, pA, hA, bA, wA, JA, gA, V, m, EA, zA, DA, mA, FA, _A, VA;
|
|
2732
2732
|
let s = (I = (c = ge(P, "=")) == null ? void 0 : c.filter((D) => D !== "=")) == null ? void 0 : I.map((D) => ((D == null ? void 0 : D[(D == null ? void 0 : D.length) - 1]) === "=" && (D = D == null ? void 0 : D.slice(0, (D == null ? void 0 : D.length) - 1)), D));
|
|
2733
2733
|
if (kt(s == null ? void 0 : s[1])) {
|
|
2734
|
-
let D =
|
|
2734
|
+
let D = Ft(s), eA = (w = (r = (l = D == null ? void 0 : D.filter) == null ? void 0 : l.replace("@", kA)) == null ? void 0 : r.split(kA)) == null ? void 0 : w[0], PA = (n = (y = (x = D == null ? void 0 : D.filter) == null ? void 0 : x.replace("(", kA)) == null ? void 0 : y.split(kA)) == null ? void 0 : n[1];
|
|
2735
2735
|
PA = PA == null ? void 0 : PA.slice(0, (PA == null ? void 0 : PA.length) - 1), PA = (p = (W = ge(PA, ",")) == null ? void 0 : W.map((Y) => (Y = "@" + Y, Y))) == null ? void 0 : p.join("");
|
|
2736
2736
|
let dA = eA + "(" + PA + ")";
|
|
2737
2737
|
return {
|
|
@@ -2743,7 +2743,7 @@ const kt = (P) => {
|
|
|
2743
2743
|
value: []
|
|
2744
2744
|
};
|
|
2745
2745
|
} else {
|
|
2746
|
-
let D =
|
|
2746
|
+
let D = it(s, j, s == null ? void 0 : s[1]), eA = (JA = (wA = (bA = D == null ? void 0 : D.tableFilter) == null ? void 0 : bA.replace("(", kA)) == null ? void 0 : wA.split(kA)) == null ? void 0 : JA[0];
|
|
2747
2747
|
return {
|
|
2748
2748
|
key: "Table",
|
|
2749
2749
|
name: D == null ? void 0 : D.groupName,
|
|
@@ -2819,7 +2819,7 @@ const xt = (P, j = []) => {
|
|
|
2819
2819
|
let Ae = "$R";
|
|
2820
2820
|
const ht = (P, j, s, c) => {
|
|
2821
2821
|
var l, r, w, x, y, n, W, p, R, $;
|
|
2822
|
-
let I = ((r = (l = j.get(P == null ? void 0 : P.quotePage)) == null ? void 0 : l.contents) == null ? void 0 : r.find((_) =>
|
|
2822
|
+
let I = ((r = (l = j.get(P == null ? void 0 : P.quotePage)) == null ? void 0 : l.contents) == null ? void 0 : r.find((_) => bn((c == null ? void 0 : c.quoteGroup) ?? [], _ == null ? void 0 : _.name))) ?? ((w = j.get(P == null ? void 0 : P.quotePage)) == null ? void 0 : w.contents) ?? [];
|
|
2823
2823
|
if (!Array.isArray(I) && ((x = I == null ? void 0 : I.tableColumns) == null ? void 0 : x.length) > 0) {
|
|
2824
2824
|
let _ = GA(I);
|
|
2825
2825
|
return !(_ != null && _.filter) || (_ == null ? void 0 : _.filter) === "" ? _.filter = P == null ? void 0 : P.filter : _.filter = ((n = _.filter) == null ? void 0 : n.slice(0, ((y = _.filter) == null ? void 0 : y.length) - 1)) + "," + ((R = (p = (W = P == null ? void 0 : P.filter) == null ? void 0 : W.replace("(", Ae)) == null ? void 0 : p.split(Ae)) == null ? void 0 : R[1]), _.name = [...s, ...I == null ? void 0 : I.name], [_];
|
|
@@ -2877,7 +2877,7 @@ const ht = (P, j, s, c) => {
|
|
|
2877
2877
|
var W, p, R, $, _, o, U, fA, sA, jA, pA, hA, bA, wA, JA, gA, V, m, EA, zA, DA, mA, FA, _A, VA, D, eA, PA;
|
|
2878
2878
|
if ((n == null ? void 0 : n.filter) !== "" && (n != null && n.filter) && (n != null && n.quotePage)) {
|
|
2879
2879
|
if (((W = n == null ? void 0 : n.tableColumns) == null ? void 0 : W.length) === 0) {
|
|
2880
|
-
let dA = ((R = (p = l.get(n == null ? void 0 : n.quotePage)) == null ? void 0 : p.contents) == null ? void 0 : R.find((Y) =>
|
|
2880
|
+
let dA = ((R = (p = l.get(n == null ? void 0 : n.quotePage)) == null ? void 0 : p.contents) == null ? void 0 : R.find((Y) => bn(n == null ? void 0 : n.quoteGroup, Y == null ? void 0 : Y.name))) ?? (($ = l.get(n == null ? void 0 : n.quotePage)) == null ? void 0 : $.contents) ?? [];
|
|
2881
2881
|
if (!Array.isArray(dA) && ((_ = dA == null ? void 0 : dA.tableColumns) == null ? void 0 : _.length) > 0) {
|
|
2882
2882
|
n.tableColumns = dA == null ? void 0 : dA.tableColumns;
|
|
2883
2883
|
let Y = (fA = (U = (o = n == null ? void 0 : n.filter) == null ? void 0 : o.replace("(", Ae)) == null ? void 0 : U.split(Ae)) == null ? void 0 : fA[1];
|
|
@@ -2902,7 +2902,7 @@ const ht = (P, j, s, c) => {
|
|
|
2902
2902
|
} else if ((n == null ? void 0 : n.filter) !== "" && (n != null && n.filter) && ((pA = n == null ? void 0 : n.value) == null ? void 0 : pA.length) === 0) {
|
|
2903
2903
|
let dA = n == null ? void 0 : n.formPage;
|
|
2904
2904
|
(dA == null ? void 0 : dA[(dA == null ? void 0 : dA.length) - 1]) === "/" && (dA = dA == null ? void 0 : dA.slice(0, (dA == null ? void 0 : dA.length) - 1));
|
|
2905
|
-
let Y = (bA = (hA = l.get(dA)) == null ? void 0 : hA.contents) == null ? void 0 : bA.find((k) =>
|
|
2905
|
+
let Y = (bA = (hA = l.get(dA)) == null ? void 0 : hA.contents) == null ? void 0 : bA.find((k) => bn(n == null ? void 0 : n.formGroup, k == null ? void 0 : k.name));
|
|
2906
2906
|
!Array.isArray(Y) && (((wA = Y == null ? void 0 : Y.value) == null ? void 0 : wA.length) > 0 || ((JA = Y == null ? void 0 : Y.tableColumns) == null ? void 0 : JA.length) > 0) && (((gA = Y == null ? void 0 : Y.value) == null ? void 0 : gA.length) > 0 ? n.value = Y == null ? void 0 : Y.value : (n.value = (m = (V = GA(Y)) == null ? void 0 : V.tableColumns) == null ? void 0 : m.map((k) => {
|
|
2907
2907
|
var $A;
|
|
2908
2908
|
return k.disabled = !0, k.width = ($A = Y == null ? void 0 : Y.tableColumns) == null ? void 0 : $A.length, k;
|
|
@@ -2929,7 +2929,7 @@ const ht = (P, j, s, c) => {
|
|
|
2929
2929
|
};
|
|
2930
2930
|
}, za = (P) => {
|
|
2931
2931
|
var I, l;
|
|
2932
|
-
let j =
|
|
2932
|
+
let j = Vt(P, [",", ":"]);
|
|
2933
2933
|
j = (I = j == null ? void 0 : j.filter((r) => r !== "")) == null ? void 0 : I.map((r) => r.replaceAll(",", ","));
|
|
2934
2934
|
let s = (l = j == null ? void 0 : j.filter((r) => !r.includes("/*") && !r.includes("*/"))) == null ? void 0 : l.map((r) => Ba(r));
|
|
2935
2935
|
return Ea(s);
|
|
@@ -3171,7 +3171,7 @@ const ht = (P, j, s, c) => {
|
|
|
3171
3171
|
YA(
|
|
3172
3172
|
() => [s == null ? void 0 : s.content, s == null ? void 0 : s.jsonContents],
|
|
3173
3173
|
async () => {
|
|
3174
|
-
await
|
|
3174
|
+
await al(), I.value = s.content, w.value = s == null ? void 0 : s.jsonContents;
|
|
3175
3175
|
},
|
|
3176
3176
|
{ deep: !0, immediate: !0 }
|
|
3177
3177
|
), YA(
|
|
@@ -3225,7 +3225,7 @@ const ht = (P, j, s, c) => {
|
|
|
3225
3225
|
}, eA = async (e) => {
|
|
3226
3226
|
var f, u, i, v, d, h, C;
|
|
3227
3227
|
try {
|
|
3228
|
-
const HA = await
|
|
3228
|
+
const HA = await dl({
|
|
3229
3229
|
platId: parseInt(e)
|
|
3230
3230
|
});
|
|
3231
3231
|
if (((f = HA == null ? void 0 : HA.data) == null ? void 0 : f.code) === 200) {
|
|
@@ -3314,7 +3314,7 @@ const ht = (P, j, s, c) => {
|
|
|
3314
3314
|
const g = async () => {
|
|
3315
3315
|
var f, u;
|
|
3316
3316
|
n.setImportLoading(!0);
|
|
3317
|
-
const e = await
|
|
3317
|
+
const e = await il({
|
|
3318
3318
|
platId: parseInt((f = sA == null ? void 0 : sA.value) == null ? void 0 : f.plat_id)
|
|
3319
3319
|
});
|
|
3320
3320
|
((u = e == null ? void 0 : e.data) == null ? void 0 : u.code) === 200 && (n.setRawMenus([]), y.setRefreshCurStructure(!0)), n.setImportLoading(!1);
|
|
@@ -3350,7 +3350,7 @@ const ht = (P, j, s, c) => {
|
|
|
3350
3350
|
urdfContent: U.value
|
|
3351
3351
|
}, {
|
|
3352
3352
|
default: M(() => [
|
|
3353
|
-
O(
|
|
3353
|
+
O(wn, null, {
|
|
3354
3354
|
dropTitle: M(() => {
|
|
3355
3355
|
var v;
|
|
3356
3356
|
return [
|
|
@@ -1,9 +1,9 @@
|
|
|
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 m, openBlock as u, 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 { s as B } from "./index-
|
|
4
|
-
import { s as F } from "./index-
|
|
5
|
-
import { c as y } from "./index-
|
|
6
|
-
import { u as S, p as I, s as N } from "./index-
|
|
2
|
+
import { S as x } from "./index-BTfRODup.js";
|
|
3
|
+
import { s as B } from "./index-DVHBs_Vv.js";
|
|
4
|
+
import { s as F } from "./index-CN5eTGfF.js";
|
|
5
|
+
import { c as y } from "./index-DUygJhjf.js";
|
|
6
|
+
import { u as S, p as I, s as N } from "./index-sMsCzNtW.js";
|
|
7
7
|
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const E = { class: "menu-module" }, M = {
|
|
9
9
|
class: "table-wrap",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),d=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";const e=require("vue"),d=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D4mQcDEW.cjs"),p=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),_={__name:"index",props:{optionContents:{type:Object,default:()=>{}}},setup(a){const s=a;let t=null,n=null;const r=e.ref({}),o=e.ref(null),u=()=>{o.value&&(n=new ResizeObserver(()=>{i()}),n.observe(o.value))};e.onMounted(()=>{r.value=s.optionContents,c(),window.addEventListener("resize",i),u()}),e.watch(()=>s.optionContents,()=>{r.value=s.optionContents,c()}),e.onUnmounted(()=>{n&&n.disconnect(),window.removeEventListener("resize",i)});const i=()=>{t.resize()},c=()=>{t&&t.dispose(),t=d.init(o.value);const l=r.value;t.setOption(l),t.resize()};return(l,f)=>(e.openBlock(),e.createElementBlock("div",{id:"chartModelId",class:"chart-model-class",ref_key:"chartModelRef",ref:o},null,512))}},v=p._export_sfc(_,[["__scopeId","data-v-69d6e63f"]]);exports.ssChart=v;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),I=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";const e=require("vue"),I=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D4mQcDEW.cjs"),a=require("./index-C5pQXH0_.cjs"),k=require("./index-C8fMwErX.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),O="ElUpload";class B extends Error{constructor(o,l,i,p){super(o),this.name="UploadAjaxError",this.status=l,this.method=i,this.url=p}}function h(r,o,l){let i;return l.response?i=`${l.response.error||l.response}`:l.responseText?i=`${l.responseText}`:i=`fail to ${o.method} ${r} ${l.status}`,new B(i,l.status,o.method,r)}function R(r){const o=r.responseText||r.response;if(!o)return o;try{return JSON.parse(o)}catch{return o}}const T=r=>{typeof XMLHttpRequest>"u"&&a.throwError(O,"XMLHttpRequest is undefined");const o=new XMLHttpRequest,l=r.action;o.upload&&o.upload.addEventListener("progress",t=>{const c=t;c.percent=t.total>0?t.loaded/t.total*100:0,r.onProgress(c)});const i=new FormData;if(r.data)for(const[t,c]of Object.entries(r.data))a.isArray$1(c)&&c.length?i.append(t,...c):i.append(t,c);i.append(r.filename,r.file,r.file.name),o.addEventListener("error",()=>{r.onError(h(l,r,o))}),o.addEventListener("load",()=>{if(o.status<200||o.status>=300)return r.onError(h(l,r,o));r.onSuccess(R(o))}),o.open(r.method,l,!0),r.withCredentials&&"withCredentials"in o&&(o.withCredentials=!0);const p=r.headers||{};if(p instanceof Headers)p.forEach((t,c)=>o.setRequestHeader(c,t));else for(const[t,c]of Object.entries(p))k.isNil(c)||o.setRequestHeader(t,String(c));return o.send(i),o},U=["text","picture","picture-card"];let D=1;const L=()=>Date.now()+D++,F=a.buildProps({action:{type:String,default:"#"},headers:{type:a.definePropType(Object)},method:{type:String,default:"post"},data:{type:a.definePropType([Object,Function,Promise]),default:()=>a.mutable({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:a.definePropType(Array),default:()=>a.mutable([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:U,default:"text"},httpRequest:{type:a.definePropType(Function),default:T},disabled:Boolean,limit:Number});a.buildProps({...F,beforeUpload:{type:a.definePropType(Function),default:a.NOOP},beforeRemove:{type:a.definePropType(Function)},onRemove:{type:a.definePropType(Function),default:a.NOOP},onChange:{type:a.definePropType(Function),default:a.NOOP},onPreview:{type:a.definePropType(Function),default:a.NOOP},onSuccess:{type:a.definePropType(Function),default:a.NOOP},onProgress:{type:a.definePropType(Function),default:a.NOOP},onError:{type:a.definePropType(Function),default:a.NOOP},onExceed:{type:a.definePropType(Function),default:a.NOOP},crossorigin:{type:a.definePropType(String)}});const j={style:{"text-align":"left"}},q={class:"cropper-warp"},A={class:"cropper-warp-left"},$=["src"],H={class:"cropper-warp-right"},z={class:"cropper-warp-right-item"},M={class:"cropper-warp-right-value"},X=["src"],J={class:"cropper-warp-right-item"},G={class:"cropper-warp-right-value"},K=["src"],Q={class:"dialog-footer"},W=e.defineComponent({__name:"index",props:{title:{type:String,default:""}},emits:["submitImage","deleteImage"],setup(r,{expose:o,emit:l}){const i=l,p=e.ref(),t=e.reactive({isShowDialog:!1,cropperImg:"",cropperImgBase64:"",cropper:null}),c=async s=>{if(t.isShowDialog=!0,!s)return;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(s),e.nextTick(()=>{w()})},f=()=>{var s;(s=t.cropper)==null||s.destroy(),t.isShowDialog=!1},m=()=>{f()},y=async()=>{const s=await v();i("submitImage",{file:s}),f()},d=async()=>{i("deleteImage")},w=()=>{const s=document.querySelector(".cropper-warp-left-img");s&&s.setAttribute("crossOrigin","anonymous"),t.cropper=new I.Cropper(s,{viewMode:1,dragMode:"none",initialAspectRatio:1,aspectRatio:1,preview:".before",background:!0,autoCropArea:1,checkCrossOrigin:!1,crop:()=>{t.cropperImgBase64=t.cropper.getCroppedCanvas().toDataURL("image/jpeg")}})},v=async()=>t!=null&&t.cropper?new Promise(s=>{var n,u;(u=(n=t==null?void 0:t.cropper)==null?void 0:n.getCroppedCanvas())==null||u.toBlob(_=>{s(_)})}):(await fetch(t.cropperImg)).blob(),x=async s=>{var u;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(s.raw),(u=t.cropper)==null||u.replace(t.cropperImg)},E=s=>{p.value.clearFiles();const n=s[0];n.uid=L(),p.value.handleStart(n)};return o({openDialog:c}),(s,n)=>{const u=e.resolveComponent("ele-Edit"),_=e.resolveComponent("el-icon"),g=e.resolveComponent("el-button"),P=e.resolveComponent("el-upload"),V=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(V,{modelValue:t.isShowDialog,"onUpdate:modelValue":n[0]||(n[0]=S=>t.isShowDialog=S),width:"769px","before-close":m},{header:e.withCtx(()=>[e.createElementVNode("div",j,[e.createVNode(_,{size:"16",style:{"margin-right":"3px",display:"inline","vertical-align":"middle"}},{default:e.withCtx(()=>[e.createVNode(u)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(r.title),1)])]),footer:e.withCtx(()=>[e.createElementVNode("span",Q,[e.createVNode(P,{class:"avatar-uploader",ref_key:"uploadSignRef",ref:p,accept:".jpg,.png",limit:1,"show-file-list":!1,"auto-upload":!1,"on-change":x,"on-exceed":E},{trigger:e.withCtx(()=>[e.createVNode(g,{type:"info",icon:"ele-Picture"},{default:e.withCtx(()=>n[4]||(n[4]=[e.createTextVNode("选择图片")])),_:1,__:[4]})]),default:e.withCtx(()=>[e.createVNode(g,{onClick:d,type:"danger",icon:"ele-Picture",style:{"margin-left":"8px"}},{default:e.withCtx(()=>n[5]||(n[5]=[e.createTextVNode("删除图片")])),_:1,__:[5]})]),_:1},512),e.createElementVNode("div",null,[e.createVNode(g,{onClick:m,id:"themeBorderButton"},{default:e.withCtx(()=>n[6]||(n[6]=[e.createTextVNode("取 消")])),_:1,__:[6]}),e.createVNode(g,{onClick:y,id:"themeButton"},{default:e.withCtx(()=>n[7]||(n[7]=[e.createTextVNode("确 定")])),_:1,__:[7]})])])]),default:e.withCtx(()=>[e.createElementVNode("div",q,[e.createElementVNode("div",A,[e.createElementVNode("img",{src:t.cropperImg,class:"cropper-warp-left-img"},null,8,$)]),e.createElementVNode("div",H,[n[3]||(n[3]=e.createElementVNode("div",{class:"cropper-warp-right-title"},"预览",-1)),e.createElementVNode("div",z,[e.createElementVNode("div",M,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img"},null,8,X)]),n[1]||(n[1]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"100 x 100",-1))]),e.createElementVNode("div",J,[e.createElementVNode("div",G,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img cropper-size"},null,8,K)]),n[2]||(n[2]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"50 x 50",-1))])])])]),_:1},8,["modelValue"])])}}}),b=C._export_sfc(W,[["__scopeId","data-v-4a19ffcf"]]),Y=e.defineComponent({__name:"index",props:{avatarUrl:{type:String,default:""},avatarBlob:{type:Blob,default:""},size:{type:[String,Number],default:"large"},showCropper:{type:Boolean,default:!0},banClick:{type:Boolean,default:!1},clickStop:{type:Boolean,default:!0}},emits:["submitImage","deleteImage","clickAvatar"],setup(r,{emit:o}){const l=r,i=e.ref(),p=e.ref(null),t=o,c=()=>!0,f=async()=>{var d;l!=null&&l.banClick||(t("clickAvatar",l.avatarUrl),(d=i.value)==null||d.openDialog(l.avatarBlob))},m=async d=>{t("submitImage",d)},y=async()=>{t("deleteImage")};return(d,w)=>{const v=e.resolveComponent("el-avatar");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(v,{src:r.avatarUrl,onClick:f,fit:"cover",size:r.size,ref_key:"avatarRef",ref:p,style:{background:"var(--user-avatar-bg)"},alt:"头像查找失败",onError:c},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"avatarDefault",{},void 0,!0)]),_:3},8,["src","size"]),e.withDirectives(e.createVNode(b,{ref_key:"cropperDialogRef",ref:i,title:"更改头像",avatarUrl:r.avatarUrl,onSubmitImage:m,onDeleteImage:y},null,8,["avatarUrl"]),[[e.vShow,r.showCropper&&(l==null?void 0:l.clickStop)]])],64)}}}),N=C._export_sfc(Y,[["__scopeId","data-v-82946fb9"]]),Z=Object.freeze(Object.defineProperty({__proto__:null,default:N},Symbol.toStringTag,{value:"Module"}));exports.Avatar=N;exports.CropperDialog=b;exports.index=Z;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("vue");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";const t=require("vue");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D4mQcDEW.cjs");const $=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),T={class:"dialog-title"},D={__name:"index",props:{title:{type:String,default:""},dialogWidth:{type:[Number,String],default:600},visible:{type:Boolean,default:!1},fullScreen:{type:Boolean,default:!1},dialogHeight:{type:[Number,String],default:600},minWidth:{type:[Number,String],default:400},minHeight:{type:[Number,String],default:300},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},modalClass:{type:String,default:""},alignCenter:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!0},resizable:{type:Boolean,default:!1}},emits:["beforeDestroy"],setup(p,{emit:M}){const e=p,H=M,w=t.ref(!1),s=t.reactive({width:void 0,height:void 0,minWidth:void 0,minHeight:void 0});let k=!1,r="",x=0,z=0,c=0,f=0,g=0,y=0,b=null;const N=i=>{var n,o;const l=(o=(n=i==null?void 0:i.target)==null?void 0:n.closest)==null?void 0:o.call(n,".el-dialog");return l||null},S=i=>{if(!i||i==="none")return{tx:0,ty:0};let l=i.match(/matrix\(([^)]+)\)/);if(l){const n=l[1].split(",").map(o=>Number(o.trim()));return{tx:(n==null?void 0:n[4])||0,ty:(n==null?void 0:n[5])||0}}if(l=i.match(/matrix3d\(([^)]+)\)/),l){const n=l[1].split(",").map(o=>Number(o.trim()));return{tx:(n==null?void 0:n[12])||0,ty:(n==null?void 0:n[13])||0}}return l=i.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/),l?{tx:Number(l[1])||0,ty:Number(l[2])||0}:{tx:0,ty:0}},W=(i,l,n)=>{i.style.transform=`translate(${l}px, ${n}px)`},d=(i,l)=>{if(!e.resizable)return;const n=N(i);if(!n)return;b=n,k=!0,r=l,x=i.clientX,z=i.clientY;const o=n.getBoundingClientRect();c=o.width,f=o.height;const a=window.getComputedStyle(n),{tx:u,ty:m}=S(a.transform);g=u,y=m,document.addEventListener("mousemove",C),document.addEventListener("mouseup",E)},C=i=>{if(!k||!b)return;const l=i.clientX-x,n=i.clientY-z,o=parseInt(s.minWidth||"0",10)||0,a=parseInt(s.minHeight||"0",10)||0;let u=c,m=f,B=g,v=y;if(r.includes("right")&&(u=Math.max(o,c+l)),r.includes("bottom")&&(m=Math.max(a,f+n)),r.includes("left")){const h=c-l;h<o?(u=o,B=g+(c-o)):(u=h,B=g+l)}if(r.includes("top")){const h=f-n;h<a?(m=a,v=y+(f-a)):(m=h,v=y+n)}s.width=`${u}px`,s.height=`${m}px`,W(b,B,v)},E=()=>{k=!1,r="",b=null,document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",E)},V=()=>{H("beforeDestroy")};return t.watch(()=>e==null?void 0:e.visible,i=>{w.value=i,i&&(e.resizable?(s.width=typeof e.dialogWidth=="number"?`${e.dialogWidth}px`:e.dialogWidth,s.height=typeof e.dialogHeight=="number"?`${e.dialogHeight}px`:e.dialogHeight,s.minWidth=typeof e.minWidth=="number"?`${e.minWidth}px`:e.minWidth,s.minHeight=typeof e.minHeight=="number"?`${e.minHeight}px`:e.minHeight):(s.width=void 0,s.height=void 0,s.minWidth=void 0,s.minHeight=void 0))},{deep:!0,immediate:!0}),(i,l)=>{const n=t.resolveComponent("el-dialog");return t.openBlock(),t.createBlock(n,{modelValue:w.value,"onUpdate:modelValue":l[8]||(l[8]=o=>w.value=o),width:e==null?void 0:e.dialogWidth,"before-close":V,draggable:"",style:t.normalizeStyle(e!=null&&e.resizable?s:void 0),fullscreen:e==null?void 0:e.fullScreen,"destroy-on-close":!0,"show-close":e==null?void 0:e.showClose,"close-on-click-modal":e==null?void 0:e.closeOnClickModal,"modal-class":p.modalClass,"close-on-press-escape":e==null?void 0:e.closeOnPressEscape,"align-center":e==null?void 0:e.alignCenter,"append-to-body":p.appendToBody},{header:t.withCtx(()=>[t.createElementVNode("div",T,t.toDisplayString(e==null?void 0:e.title),1),t.renderSlot(i.$slots,"header",{},void 0,!0)]),footer:t.withCtx(()=>[t.renderSlot(i.$slots,"footer",{},void 0,!0)]),default:t.withCtx(()=>[t.renderSlot(i.$slots,"default",{},void 0,!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:0,class:"resizable-handle top",onMousedown:l[0]||(l[0]=t.withModifiers(o=>d(o,"top"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:1,class:"resizable-handle right",onMousedown:l[1]||(l[1]=t.withModifiers(o=>d(o,"right"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:2,class:"resizable-handle bottom",onMousedown:l[2]||(l[2]=t.withModifiers(o=>d(o,"bottom"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:3,class:"resizable-handle left",onMousedown:l[3]||(l[3]=t.withModifiers(o=>d(o,"left"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:4,class:"resizable-handle top-left",onMousedown:l[4]||(l[4]=t.withModifiers(o=>d(o,"top-left"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:5,class:"resizable-handle top-right",onMousedown:l[5]||(l[5]=t.withModifiers(o=>d(o,"top-right"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:6,class:"resizable-handle bottom-left",onMousedown:l[6]||(l[6]=t.withModifiers(o=>d(o,"bottom-left"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:7,class:"resizable-handle bottom-right",onMousedown:l[7]||(l[7]=t.withModifiers(o=>d(o,"bottom-right"),["stop"]))},null,32)):t.createCommentVNode("",!0)]),_:3},8,["modelValue","width","style","fullscreen","show-close","close-on-click-modal","modal-class","close-on-press-escape","align-center","append-to-body"])}}},R=$._export_sfc(D,[["__scopeId","data-v-c3e3bec2"]]);exports.ssDialog=R;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as c, onMounted as p, watch as u, onUnmounted as f, createElementBlock as v, openBlock as m } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { H as _ } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DLfKrpq4.js";
|
|
3
3
|
import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const z = {
|
|
5
5
|
__name: "index",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),_=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),_=require("./index-MEN9vDHo.cjs"),r=require("./index-C8fMwErX.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=(t,l,a)=>{var n,p,u,g;let e=l;e.title.text=(a==null?void 0:a.chartName)??"",e.xAxis.data=(n=r.cloneDeep(t))==null?void 0:n.map(i=>i.x),e.legend.data=(u=(p=r.cloneDeep(t))==null?void 0:p[0])!=null&&u.y?Object.keys(r.cloneDeep(t)[0].y):[];let o=[];return((g=e.legend.data)==null?void 0:g.length)>0&&r.cloneDeep(e.legend.data).forEach(i=>{var x;const y=(x=r.cloneDeep(t))==null?void 0:x.map(c=>{var h;return(h=c==null?void 0:c.y)==null?void 0:h[i]});o.push({name:i,type:"line",data:y})}),e.series=o,e},d=[{key:"折线图",value:{title:{text:"",left:"center",top:25,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis"},legend:{data:[]},grid:{left:"6%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",axisLabel:{interval:0},data:[]},yAxis:{type:"value"},series:[]}}],C={class:"eCharts"},D={__name:"index",props:{eChartContents:Array},setup(t){const l=t,a=s.ref({});return s.onMounted(()=>{var o;const e=l==null?void 0:l.eChartContents;a.value=m(r.cloneDeep(e==null?void 0:e.compData),(o=d==null?void 0:d.find(n=>(n==null?void 0:n.key)===(e==null?void 0:e.name)))==null?void 0:o.value,e==null?void 0:e.extraContent)}),(e,o)=>(s.openBlock(),s.createElementBlock("div",C,[s.createVNode(_.ssChart,{optionContents:a.value},null,8,["optionContents"])]))}},b=f._export_sfc(D,[["__scopeId","data-v-0440fac3"]]);exports.default=b;
|