ss-component-new 1.2.210 → 1.2.211
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-CMQuFz2U.js → MTLLoader-67H7fk80.js} +1 -1
- package/dist/{MTLLoader-Dn7qvdQE.cjs → MTLLoader-CL8XSHGp.cjs} +1 -1
- package/dist/{OrbitControls-BwOP9BCH.js → OrbitControls-C6M2yrLB.js} +1 -1
- package/dist/{OrbitControls-CKmqHTFG.cjs → OrbitControls-CnIsW8aw.cjs} +1 -1
- package/dist/{URDFLoader-LcNMUu2Q.cjs → URDFLoader-BX5IuzJ8.cjs} +1 -1
- package/dist/{URDFLoader-B4mwog0r.js → URDFLoader-DoVjA77Z.js} +2 -2
- package/dist/{animationData-CF8iySCX.js → animationData-BjKOHbzr.js} +1 -1
- package/dist/{animationData-CttWJgEw.cjs → animationData-DwRMSEcR.cjs} +1 -1
- package/dist/{array-D7pDQ0ai.cjs → array-CJjaF-30.cjs} +1 -1
- package/dist/{array-BjZvjLNf.js → array-Cmui25df.js} +1 -1
- package/dist/{iconfont-DLz03Pua.js → iconfont-C6xrTLDV.js} +2 -2
- package/dist/{iconfont-v_9e6_Wr.cjs → iconfont-alw7deIH.cjs} +1 -1
- package/dist/{index-D2BxLiKo.cjs → index-0ZaO0N8Y.cjs} +1 -1
- package/dist/{index-DXOFx4Js.js → index-3e98Utf1.js} +2 -2
- package/dist/{index-D5o0yFsY.js → index-B16xvnZZ.js} +1 -1
- package/dist/{index-BQcDZ9zY.cjs → index-B6eyscWd.cjs} +1 -1
- package/dist/{index-9ygxLpV4.cjs → index-BA5lzuZs.cjs} +1 -1
- package/dist/{index-CzgAT9P9.js → index-BJ607Cgr.js} +2 -2
- package/dist/{index-D9VJiqIr.js → index-BJ6EviJu.js} +1 -1
- package/dist/{index-CTXsrOke.js → index-BWYzx9On.js} +1 -1
- package/dist/{index-CTVosZpD.cjs → index-BXqsy0Nl.cjs} +1 -1
- package/dist/{index-P7IneBeG.js → index-BZWgeRjN.js} +3 -3
- package/dist/{index-dVe4jXXP.cjs → index-BiZxAQWz.cjs} +1 -1
- package/dist/index-BlzC7uD8.js +3577 -0
- package/dist/{index-rat8ooKP.cjs → index-BmVUsjsm.cjs} +1 -1
- package/dist/{index-C5mK6G4B.js → index-C251JILB.js} +8 -8
- package/dist/{index-CfvIJnQ4.js → index-CAi-JNl0.js} +1 -1
- package/dist/{index-Ccucb-4Z.cjs → index-CN4uUlDb.cjs} +1 -1
- package/dist/{index-C_IeP5sH.js → index-CqyCNXc9.js} +1 -1
- package/dist/{index-CZpCcMJo.cjs → index-Ct9aTte1.cjs} +1 -1
- package/dist/{index-C5rlnhuB.cjs → index-Ct_sBp18.cjs} +1 -1
- package/dist/index-CvD54iz8.cjs +1 -0
- package/dist/{index-DUWL4jpR.js → index-CwI3-CUs.js} +1 -1
- package/dist/{index-NSTwCJrr.cjs → index-D-nlJ3o0.cjs} +1 -1
- package/dist/{index-C6epDMmF.cjs → index-D737Q5uV.cjs} +1 -1
- package/dist/{index-DqpK4iid.js → index-D9R32sv-.js} +4 -4
- package/dist/index-DA6AZg6p.cjs +1 -0
- package/dist/{index-np8quoQc.cjs → index-DAkcroe-.cjs} +1 -1
- package/dist/{index-4xWViEpw.js → index-DBP65bJO.js} +1 -1
- package/dist/{index-Co21kVZ9.cjs → index-DEFMo4Ss.cjs} +1 -1
- package/dist/{index-BOo0k-6s.cjs → index-DHbfeZj9.cjs} +2 -2
- package/dist/{index-FamU_pWj.js → index-DOvORsix.js} +1 -1
- package/dist/{index-2kxli95n.cjs → index-DTCncP0c.cjs} +1 -1
- package/dist/{index-BFmB_GNc.js → index-DcxH1zsA.js} +1 -1
- package/dist/{index-O1tZfdsI.js → index-DgqJP4cy.js} +16 -16
- package/dist/{index-ywaZJRUe.js → index-DjhgSTgp.js} +1 -1
- package/dist/{index-Gx0qq15p.js → index-DlWLHCf4.js} +1 -1
- package/dist/{index-B3ES4Imr.cjs → index-DuLX_CSd.cjs} +1 -1
- package/dist/{index-DtC6p78s.cjs → index-Dymvy1ct.cjs} +1 -1
- package/dist/index-RlPP0mDo.js +12475 -0
- package/dist/{index-Dgk4f0E3.js → index-VDplKeDq.js} +4 -4
- package/dist/{index-CRPwb5Di.cjs → index-XIKgdyQI.cjs} +1 -1
- package/dist/{index-BV2AdsW7.js → index-bAoJwc65.js} +7 -7
- package/dist/{index-CZmf9W1N.cjs → index-d8S_KBKB.cjs} +1 -1
- package/dist/{index-BqLlm8pl.cjs → index-kFQ6-6dk.cjs} +1 -1
- package/dist/{index-BM6eQMuj.js → index-li-CtQ8f.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-B1f3iFI0.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BvTCBcSN.js} +8 -8
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CLOMtzqw.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CMQ255im.cjs} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CgpQQnQo.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bz8QgjF-.js} +26750 -26754
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BbQEEyFK.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DLa0ds0U.cjs} +265 -265
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-yEFItRs3.js → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-2KtqLt8T.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-C5U5tv8m.cjs → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-BQTgA0X7.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-Qda9sMCN.js → index.vue_vue_type_style_index_1_lang-B3X_PfQc.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_1_lang-D3s2wGtB.cjs → index.vue_vue_type_style_index_1_lang-YbKSvTqR.cjs} +2 -2
- package/dist/{main-B4kLVLRo.js → main-Cor_kytv.js} +3 -3
- package/dist/{main-ZKhN5hVB.cjs → main-DDz9fSdf.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 +10 -10
- package/dist/{threeModel-C6-ohRly.cjs → threeModel-2290Sh5Q.cjs} +1 -1
- package/dist/{threeModel-CCD_TCIt.js → threeModel-ml0tLJ6d.js} +4 -4
- package/dist/{threePreview--ajzp9ef.js → threePreview-2xz8Hw38.js} +3 -3
- package/dist/{threePreview-C_GqKG7E.cjs → threePreview-C3CVwE-Y.cjs} +1 -1
- package/dist/{threeSceneView-BuDjh1PW.cjs → threeSceneView-B4nKIou-.cjs} +1 -1
- package/dist/{threeSceneView-2SkyZMLQ.js → threeSceneView-DDpsp26F.js} +8 -8
- package/dist/{threeSceneViewForCPMPIP-BAHntlai.js → threeSceneViewForCPMPIP-9PDSLEqZ.js} +7 -7
- package/dist/{threeSceneViewForCPMPIP-PKZiN1Hi.cjs → threeSceneViewForCPMPIP-yuW3lgix.cjs} +1 -1
- package/dist/{threeTrackPathView-DQXfAyfj.js → threeTrackPathView-BH4W5aAJ.js} +3 -3
- package/dist/{threeTrackPathView-CaZJjtlj.cjs → threeTrackPathView-_RjI4stL.cjs} +1 -1
- package/dist/{threeViewerHost-BnEGRoC_.js → threeViewerHost-CdKrfyfa.js} +2 -2
- package/dist/{threeViewerHost-wJDeMzT0.cjs → threeViewerHost-Di0GKXwU.cjs} +1 -1
- package/dist/{urdfTree-CY-l53qd.js → urdfTree-DkFmyNMl.js} +1 -1
- package/dist/{urdfTree-Bvjb6fr9.cjs → urdfTree-MhNihTDQ.cjs} +1 -1
- package/dist/{workpieceTreePanel-WyflfVY-.js → workpieceTreePanel-BFPFWqV3.js} +4 -4
- package/dist/{workpieceTreePanel-Y4Qc_oSv.cjs → workpieceTreePanel-BeRnxO8B.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-CaHvkH1f.js +0 -3385
- package/dist/index-Cbbw4bt5.cjs +0 -1
- package/dist/index-DDJsccuu.cjs +0 -1
- package/dist/index-DZYnK5D6.js +0 -12425
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { _ as ka, M as Ia, g as ba } from "./index-
|
|
1
|
+
import { _ as ka, M as Ia, g as ba } from "./index-RlPP0mDo.js";
|
|
2
2
|
import { defineComponent as na, defineProps as Ca, ref as B, computed as Ee, onMounted as Ta, watch as Ka, reactive as wa } from "vue";
|
|
3
3
|
import { u as _a, a as Ua } from "./index-3oQGURYh.js";
|
|
4
|
-
import { s as Fa } from "./index-
|
|
5
|
-
import { b as Aa } from "./index-
|
|
4
|
+
import { s as Fa } from "./index-B16xvnZZ.js";
|
|
5
|
+
import { b as Aa } from "./index-C251JILB.js";
|
|
6
6
|
import { p as qe, u as Ea, s as je, c as xe, g as Ue, e as Pe, bv as Ge, by as ja, h as Pa, f as Qe } from "./index-7MBVUN82.js";
|
|
7
7
|
import { useRouter as La } from "vue-router";
|
|
8
8
|
import { a as Ma, e as xa, f as Ra, g as Ba, h as Wa } from "./index-CAPx0_D4.js";
|
|
9
9
|
import { S as za } from "./index-BHtNKL1L.js";
|
|
10
|
-
import { g as Le, b as Xe, W as Oa } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
10
|
+
import { g as Le, b as Xe, W as Oa } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bz8QgjF-.js";
|
|
11
11
|
import { v as Me } from "./index-r48vNrKN.js";
|
|
12
12
|
const Ye = (O, d, A = 0) => {
|
|
13
13
|
let v = O;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const Me=require("./index-DDJsccuu.cjs"),C=require("vue"),Ge=require("./index-CXC0u8pm.cjs"),ya=require("./index-9ygxLpV4.cjs"),na=require("./index-BOo0k-6s.cjs"),D=require("./index-DOItJqcJ.cjs"),Da=require("vue-router"),Ue=require("./index-9hspBVrQ.cjs"),ga=require("./index-BpPyaNFa.cjs"),Z=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BbQEEyFK.cjs"),je=require("./index-DaRuwvRP.cjs"),qe=(z,d,E=0)=>{let y=z;return y!=null&&y.every(i=>Array.isArray(i))&&(y!=null&&y.every(i=>Array.isArray(i)&&i.length===1)?y=y==null?void 0:y.filter(i=>(i==null?void 0:i[0])!==(d==null?void 0:d[E])):y=y==null?void 0:y.map(i=>{if(i!=null&&i.find(s=>s===(d==null?void 0:d[E]))&&(d==null?void 0:d.length)!==1){let s=D.cloneDeep(d),o=i==null?void 0:i.filter(b=>b!==(s==null?void 0:s[E])),M=E+1,q=qe(o,s,M),K=[];K.push(i==null?void 0:i[0]),q==null||q.forEach(b=>{K.push(b)}),i=K}return i})),y},Pe=(z,d,E,y=0)=>{let i=z;return i!=null&&i.every(s=>Array.isArray(s))&&(i!=null&&i.every(s=>Array.isArray(s)&&s.length===1)?i.push([E]):i=i==null?void 0:i.map(s=>{if(s!=null&&s.find(o=>o===(d==null?void 0:d[y]))&&(d==null?void 0:d.length)!==1){let o=D.cloneDeep(d),M=s==null?void 0:s.filter(P=>P!==(o==null?void 0:o[y])),q=y+1,K=Pe(M,o,E,q),b=[];b.push(s==null?void 0:s[0]),K==null||K.forEach(P=>{b.push(P)}),s=b}return s})),i},Le=(z,d,E,y,i=0)=>{let s=z;return s!=null&&s.every(o=>Array.isArray(o))&&(s!=null&&s.every(o=>Array.isArray(o)&&o.length===1)?s=s==null?void 0:s.map(o=>((o==null?void 0:o[0])===E&&(o=[y]),o)):s=s==null?void 0:s.map(o=>{if(o!=null&&o.find(M=>M===(d==null?void 0:d[i]))&&(d==null?void 0:d.length)!==1){let M=D.cloneDeep(d),q=o==null?void 0:o.filter(H=>H!==(M==null?void 0:M[i])),K=i+1,b=Le(q,M,E,y,K),P=[];P.push(o==null?void 0:o[0]),b==null||b.forEach(H=>{P.push(H)}),o=P}return o})),s};function Qe(z="menu"){return{name:z,components:{SvgIcon:ga.SvgIcon,ssMenu:Me.ssMenu,DynamicIcon:Me._sfc_main,ssDialog:ya.ssDialog,ssInput:na._sfc_main$2},setup(d,{emit:E}){const y=C.defineProps({mode:{type:String,default:"vertical"}}),i=C.ref([{allowInherit:!1,operateType:"复制新增",operateIcon:"CopyAddMenu"},{allowInherit:!1,operateType:"删除",operateIcon:"DeleteMenu"},{allowInherit:!1,operateType:"修改菜单名",operateIcon:"FixedMenu"}]),s=Ge.useMenuState(),o=Ge.useModelComp(D.pinia),M=D.useLoginState(D.pinia),{loginUserInfo:q}=D.storeToRefs(M),K=C.ref(0),b=Da.useRouter(),P=C.ref(),{asideMenus:H,menuTriggerType:Xe,platform:Ye}=D.storeToRefs(s),{fixMenuStatus:Ze}=D.storeToRefs(o),He=C.computed(()=>y==null?void 0:y.mode),$e=a=>a==null?void 0:a.map(e=>{var p,c;return!(e!=null&&e.children)||((p=e==null?void 0:e.children)==null?void 0:p.length)===0?e.config=i.value:e!=null&&e.children&&((c=e==null?void 0:e.children)==null?void 0:c.length)>0&&(e.children=$e(e.children)),e}),Re=C.computed(()=>{let a=[...H.value];if((a==null?void 0:a.length)===0)return b.push("/"),[];const t=aa(a,me.value);return t.isFlag||(a=t==null?void 0:t.data),a=a==null?void 0:a.map(e=>{var p,c;return!(e!=null&&e.children)||((p=e==null?void 0:e.children)==null?void 0:p.length)===0?e.config=i.value:e!=null&&e.children&&((c=e==null?void 0:e.children)==null?void 0:c.length)>0&&(e.children=$e(e.children)),e}),a}),Ne=async(a,t)=>{o.setRouteToChildPath(""),s.setMenuTriggerType("click"),s.setActiveMenuPath(a==null?void 0:a.path),s.setActiveAsideMenu(a),a.isRouter?b.push(a.path):b.push("/"),E("node-click",a,t)},Ve=async a=>{const t=D.findNodeByPropInTree(Re.value,"path",a);s.setActiveAsideMenu(t),o.setRouteToChildPath(""),Ze.value?o.setFixMenuStatus(!1):Xe.value==="click"?K.value===1?s.setActiveMenuPath(sessionStorage.getItem("pageKey")):s.setActiveMenuPath(a):(s.setMenuTriggerType("click"),s.setActiveMenuPath(a)),a!=null&&a.startsWith("/")?b.push(a):b.push("/"),K.value++},ue=a=>{s.setActiveMenuPath(a)},X=a=>{const t=document.documentElement;a==null||a.forEach(e=>{t.style.setProperty(e.name,e.value)})};C.onMounted(()=>{K.value=1});const me=C.computed(()=>{const a=sessionStorage.getItem("authority");return a?JSON.parse(a):[]});C.watch(()=>Ye.value,a=>{a==="browser"?X(Ue.browserVerticalMenuClasses):a==="client"?(X(Ue.clientHorizontalMenuClasses),X(Ue.clientVerticalMenuClasses)):a==="three"&&(X(Ue.threeHorizontalMenuClasses),X(Ue.threeVerticalMenuClasses))},{immediate:!0});const ea=(a,t)=>{function e(p){p==null||p.forEach(c=>{var $,T;const g=($=c==null?void 0:c.path)!=null&&$.startsWith("/")?(T=c==null?void 0:c.path)==null?void 0:T.substring(1):c==null?void 0:c.path;c.show=t==null?void 0:t.some(R=>R==null?void 0:R.includes(g)),c.children&&e(c.children)})}return e(a),a},aa=(a,t)=>{if(Array.isArray(t)){const e=Array.from(new Set(t==null?void 0:t.map(p=>p.substring(0,p.lastIndexOf("/")))));return{data:ea(a,e),isFlag:!1}}else return{isFlag:(t==null?void 0:t.toUpperCase())==="SUPERADMIN"}},B=C.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),ta=a=>Me.getComponent(a),sa=C.ref({}),la=C.ref([]),N=C.ref({}),Y=C.ref({}),ia=a=>{switch(a){case"复制新增":return"create";case"修改菜单名":return"update";case"删除":return"delete"}},Be=C.ref({}),oa=a=>{s.setCacheInputMenu({type:B.type,data:a}),s.setIsRefreshMenus(!0)},ca=async(a,t,e)=>{var p,c,g,$,T,R,L,V,u,m,ee,ae,te,se,le,ie,oe,ce,re,pe,fe,he,de,ve,ye,ne,De,ge,Ie,Se,ke,Te,_e,be,Ce,Ae,Ke,we,h,w,x,k;if(t==="create"){let r=(e==null?void 0:e.title)+"(1)",A=await D.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),S=(c=(p=A==null?void 0:A.data)==null?void 0:p.result)==null?void 0:c[0],W=(g=S==null?void 0:S.value)==null?void 0:g.pageData;W.compData=($=W.compData)==null?void 0:$.map(l=>{var f;return(l==null?void 0:l.key)==="menuContents"&&(l.contents=Pe(l.contents,(f=e==null?void 0:e.path)==null?void 0:f.split("/"),r)),l}),await D.updateInsofDataApi({id:S==null?void 0:S.id,value:{pageData:W}});let U=(R=(T=e==null?void 0:e.path)==null?void 0:T.split("/"))==null?void 0:R.filter((l,f)=>{var n,I;return f!==((I=(n=e==null?void 0:e.path)==null?void 0:n.split("/"))==null?void 0:I.length)-1}),F=await Z.getItemData((u=(V=(L=e==null?void 0:e.path)==null?void 0:L.split("/"))==null?void 0:V.filter((l,f)=>{var n,I;return f!==((I=(n=e==null?void 0:e.path)==null?void 0:n.split("/"))==null?void 0:I.length)-1}))==null?void 0:u.join("/"),sessionStorage.getItem("systemKey"),"");if(U.push(r),U=U==null?void 0:U.join("/"),(F==null?void 0:F.length)>0){let l=F==null?void 0:F[0],f=(ee=(m=l==null?void 0:l.compData)==null?void 0:m.find(n=>(n==null?void 0:n.key)==="header"))==null?void 0:ee.contents;if(((ae=f==null?void 0:f[0])==null?void 0:ae.directiveLabel)==="#isMain"){let n=(te=f==null?void 0:f[0])==null?void 0:te.prop,I=(le=(se=l==null?void 0:l.compData)==null?void 0:se.find(_=>(_==null?void 0:_.key)==="tableContents"))==null?void 0:le.contents,J;I==null||I.forEach(_=>{var G,O;if(_.length===1)((G=_==null?void 0:_[0])==null?void 0:G[n])===(e==null?void 0:e.title)&&(J=_==null?void 0:_[0],J[n]=r);else{let Q=(O=f==null?void 0:f.filter(j=>j!=="操作"))==null?void 0:O.map(j=>j==null?void 0:j.prop),Fe=_==null?void 0:_.filter(j=>!(j!=null&&j.id)),xe=Z.getValueToObjectValue(Fe,Q);xe[n]=r,J=xe}}),await D.createInsofDataApi({key:{type:"data",pageKey:(ce=(oe=(ie=e==null?void 0:e.path)==null?void 0:ie.split("/"))==null?void 0:oe.filter((_,G)=>{var O,Q;return G!==((Q=(O=e==null?void 0:e.path)==null?void 0:O.split("/"))==null?void 0:Q.length)-1}))==null?void 0:ce.join("/"),tableId:l==null?void 0:l.id,systemKey:sessionStorage.getItem("systemKey"),createUserId:(re=q.value)==null?void 0:re.id,createUserLayer:((pe=q.value)==null?void 0:pe.dept)||((fe=q.value)==null?void 0:fe.部门名称)},value:{tableData:J}})}}await Z.newLoadingConstruct(e==null?void 0:e.path,U),s.setUpdateMenuStatus(!1),await je.verifyStructureDataToStore(),s.setActiveMenuPath((ve=(de=(he=e==null?void 0:e.path)==null?void 0:he.split("/"))==null?void 0:de.filter((l,f)=>{var n,I;return f!==((I=(n=e==null?void 0:e.path)==null?void 0:n.split("/"))==null?void 0:I.length)-1}))==null?void 0:ve.join("/")),s.setActiveTopMenuPath((ne=(ye=e==null?void 0:e.path)==null?void 0:ye.split("/"))==null?void 0:ne[0]),s.setIsRefreshMenus(!1),s.setIsRefreshMenus(!0)}else if(t==="update")P.value=e;else if(t==="delete"){let r=await D.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:e==null?void 0:e.path}}),A=await D.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),S=(ge=(De=A==null?void 0:A.data)==null?void 0:De.result)==null?void 0:ge[0],W=(Ie=S==null?void 0:S.value)==null?void 0:Ie.pageData;if(W.compData=(Se=W.compData)==null?void 0:Se.map(l=>{var f;return(l==null?void 0:l.key)==="menuContents"&&(l.contents=qe(l.contents,(f=e==null?void 0:e.path)==null?void 0:f.split("/"))),l}),await D.updateInsofDataApi({id:S==null?void 0:S.id,value:{pageData:W}}),((Te=(ke=r==null?void 0:r.data)==null?void 0:ke.result)==null?void 0:Te.length)>0){let l=(be=(_e=r==null?void 0:r.data)==null?void 0:_e.result)==null?void 0:be.map(f=>f==null?void 0:f.id);(l==null?void 0:l.length)>0&&await D.batchDeleteInsofDataApi({ids:l})}let U=await Z.getItemData((Ke=(Ae=(Ce=e==null?void 0:e.path)==null?void 0:Ce.split("/"))==null?void 0:Ae.filter((l,f)=>{var n,I;return f!==((I=(n=e==null?void 0:e.path)==null?void 0:n.split("/"))==null?void 0:I.length)-1}))==null?void 0:Ke.join("/"),sessionStorage.getItem("systemKey"),""),F=[];(U==null?void 0:U.length)>0&&(U==null||U.forEach(l=>{var n,I,J,_,G,O,Q,Fe,xe,j,Oe;let f=(_=(J=(I=(n=l==null?void 0:l.compData)==null?void 0:n.find(v=>(v==null?void 0:v.key)==="header"))==null?void 0:I.contents)==null?void 0:J[0])==null?void 0:_.prop;((Fe=(Q=(O=(G=l==null?void 0:l.compData)==null?void 0:G.find(v=>(v==null?void 0:v.key)==="header"))==null?void 0:O.contents)==null?void 0:Q[0])==null?void 0:Fe.directiveLabel)==="#isMain"&&((Oe=(j=(xe=l==null?void 0:l.compData)==null?void 0:xe.find(v=>(v==null?void 0:v.key)==="tableContents"))==null?void 0:j.contents)==null||Oe.forEach(v=>{var ze,We,Je;(v==null?void 0:v.length)>1?(v==null?void 0:v[1])===(e==null?void 0:e.title)&&F.push((ze=v==null?void 0:v[0])==null?void 0:ze.id):((We=v==null?void 0:v[0])==null?void 0:We[f])===(e==null?void 0:e.title)&&F.push((Je=v==null?void 0:v[0])==null?void 0:Je.id)}))})),(F==null?void 0:F.length)>0&&await D.batchDeleteInsofDataApi({ids:F}),s.setUpdateMenuStatus(!1),await je.verifyStructureDataToStore(),s.setActiveMenuPath((w=(h=(we=e==null?void 0:e.path)==null?void 0:we.split("/"))==null?void 0:h.filter((l,f)=>{var n,I;return f!==((I=(n=e==null?void 0:e.path)==null?void 0:n.split("/"))==null?void 0:I.length)-1}))==null?void 0:w.join("/")),s.setActiveTopMenuPath((k=(x=e==null?void 0:e.path)==null?void 0:x.split("/"))==null?void 0:k[0]),s.setIsRefreshMenus(!1),s.setIsRefreshMenus(!0)}},ra=async(a,t)=>{var V,u,m,ee,ae,te,se,le,ie,oe,ce,re,pe,fe,he,de,ve,ye,ne,De,ge,Ie,Se,ke,Te,_e,be,Ce,Ae,Ke,we;let e=await D.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),p=(u=(V=e==null?void 0:e.data)==null?void 0:V.result)==null?void 0:u[0],c=(m=p==null?void 0:p.value)==null?void 0:m.pageData;c.compData=(ee=c.compData)==null?void 0:ee.map(h=>{var w,x;return(h==null?void 0:h.key)==="menuContents"&&(h.contents=Le(h.contents,(w=t==null?void 0:t.path)==null?void 0:w.split("/"),t==null?void 0:t.title,(x=a==null?void 0:a.target)==null?void 0:x.value)),h}),p!=null&&p.id&&await D.updateInsofDataApi({id:p==null?void 0:p.id,value:{pageData:c}});let g=(te=(ae=t==null?void 0:t.path)==null?void 0:ae.split("/"))==null?void 0:te.filter((h,w)=>{var x,k;return w!==((k=(x=t==null?void 0:t.path)==null?void 0:x.split("/"))==null?void 0:k.length)-1}),$=g==null?void 0:g.join("/");g.push((se=a==null?void 0:a.target)==null?void 0:se.value),g=g==null?void 0:g.join("/");let T=await Z.getItemData($,sessionStorage.getItem("systemKey"),"");if(((re=(ce=(oe=(ie=(le=T==null?void 0:T[0])==null?void 0:le.compData)==null?void 0:ie.find(h=>(h==null?void 0:h.key)==="header"))==null?void 0:oe.contents)==null?void 0:ce[0])==null?void 0:re.directiveLabel)==="#isMain"){let h=(ve=(de=(he=(fe=(pe=T==null?void 0:T[0])==null?void 0:pe.compData)==null?void 0:fe.find(r=>(r==null?void 0:r.key)==="header"))==null?void 0:he.contents)==null?void 0:de[0])==null?void 0:ve.prop,w=(De=(ne=(ye=T==null?void 0:T[0])==null?void 0:ye.compData)==null?void 0:ne.find(r=>(r==null?void 0:r.key)==="tableContents"))==null?void 0:De.contents,x=(ke=(Se=(Ie=(ge=T==null?void 0:T[0])==null?void 0:ge.compData)==null?void 0:Ie.find(r=>(r==null?void 0:r.key)==="header"))==null?void 0:Se.contents)==null?void 0:ke.map(r=>r==null?void 0:r.prop),k;if(w==null||w.forEach(r=>{var S;let A=Z.getValueToObjectValue(r,x);(A==null?void 0:A[h])===t.title&&(k=A,k[h]=(S=a==null?void 0:a.target)==null?void 0:S.value)}),k){let r={};for(let S in k)S!=="id"&&(r[S]=k==null?void 0:k[S]);let A=[{id:k==null?void 0:k.id,value:{tableData:r}}];await D.batchUpdateInsofDataApi({dataList:A})}}let R=await D.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:t==null?void 0:t.path}}),L=(_e=(Te=R==null?void 0:R.data)==null?void 0:Te.result)==null?void 0:_e.map(h=>({id:h==null?void 0:h.id,key:h==null?void 0:h.key}));L=L==null?void 0:L.map(h=>(h.key.pageKey=g,h)),(L==null?void 0:L.length)>0&&await D.batchUpdateInsofDataApi({dataList:L}),s.setUpdateMenuStatus(!1),await je.verifyStructureDataToStore(),s.setActiveMenuPath((Ae=(Ce=(be=t==null?void 0:t.path)==null?void 0:be.split("/"))==null?void 0:Ce.filter((h,w)=>{var x,k;return w!==((k=(x=t==null?void 0:t.path)==null?void 0:x.split("/"))==null?void 0:k.length)-1}))==null?void 0:Ae.join("/")),s.setActiveTopMenuPath((we=(Ke=t==null?void 0:t.path)==null?void 0:Ke.split("/"))==null?void 0:we[0]),s.setIsRefreshMenus(!1),s.setIsRefreshMenus(!0),P.value=void 0},pa=async(a,t)=>{B.type=ia(t==null?void 0:t.operateType),await ca(t,B.type,a),Y.value=a,Be.value=t},fa=()=>{B.show=!1},ha=a=>a==null?void 0:a.filter(t=>t.allowInherit),da=()=>{var e,p,c,g,$;let a;B.type==="create"&&(a=((e=Y.value)==null?void 0:e.path)+"/"+N.value[(p=N.value)==null?void 0:p.prop]),B.type==="update"&&(a=(c=Y.value)==null?void 0:c.path);const t={...Y.value,config:ha((g=Y.value)==null?void 0:g.config),children:[],childMenus:[],title:N.value[($=N.value)==null?void 0:$.prop],path:a};console.log("clickSubmitForm",Be.value,Y.value,t),oa(t),B.show=!1},va=a=>{var e,p;const t=(e=a==null?void 0:a.contents)==null?void 0:e.find(c=>c.key==="formContent");t&&(N.value=(p=t==null?void 0:t.contents)==null?void 0:p.reduce((c,g)=>(c[g.key]=g.value,c.prop=g.key,c),{}))},Ee=C.ref(!1);return{isCollapse:Ee,handleMenuCollapse:()=>{Ee.value=!Ee.value},handleCompChange:va,dialogForm:sa,dialogRenderComps:la,getComponents:ta,clickSubmitForm:da,dialogInfo:B,beforeDialogDestroy:fa,clickMenuIcon:pa,mode:He,renderMenuList:Re,clickMenu:Ne,openMenu:Ve,closeMenu:ue,changeMenuStyle:X,fixElement:P,onBlur:ra}}}}const Ia=C.defineComponent(Qe());exports._sfc_main=Ia;exports.addSelectMenu=Pe;exports.deleteSelectMenu=qe;exports.fixSelectMenu=Le;exports.setComponent=Qe;
|
|
1
|
+
"use strict";const Me=require("./index-CvD54iz8.cjs"),C=require("vue"),Ge=require("./index-CXC0u8pm.cjs"),ya=require("./index-BA5lzuZs.cjs"),na=require("./index-DHbfeZj9.cjs"),D=require("./index-DOItJqcJ.cjs"),Da=require("vue-router"),Ue=require("./index-9hspBVrQ.cjs"),ga=require("./index-BpPyaNFa.cjs"),Z=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DLa0ds0U.cjs"),je=require("./index-DaRuwvRP.cjs"),qe=(z,d,E=0)=>{let y=z;return y!=null&&y.every(i=>Array.isArray(i))&&(y!=null&&y.every(i=>Array.isArray(i)&&i.length===1)?y=y==null?void 0:y.filter(i=>(i==null?void 0:i[0])!==(d==null?void 0:d[E])):y=y==null?void 0:y.map(i=>{if(i!=null&&i.find(s=>s===(d==null?void 0:d[E]))&&(d==null?void 0:d.length)!==1){let s=D.cloneDeep(d),o=i==null?void 0:i.filter(b=>b!==(s==null?void 0:s[E])),M=E+1,q=qe(o,s,M),K=[];K.push(i==null?void 0:i[0]),q==null||q.forEach(b=>{K.push(b)}),i=K}return i})),y},Pe=(z,d,E,y=0)=>{let i=z;return i!=null&&i.every(s=>Array.isArray(s))&&(i!=null&&i.every(s=>Array.isArray(s)&&s.length===1)?i.push([E]):i=i==null?void 0:i.map(s=>{if(s!=null&&s.find(o=>o===(d==null?void 0:d[y]))&&(d==null?void 0:d.length)!==1){let o=D.cloneDeep(d),M=s==null?void 0:s.filter(P=>P!==(o==null?void 0:o[y])),q=y+1,K=Pe(M,o,E,q),b=[];b.push(s==null?void 0:s[0]),K==null||K.forEach(P=>{b.push(P)}),s=b}return s})),i},Le=(z,d,E,y,i=0)=>{let s=z;return s!=null&&s.every(o=>Array.isArray(o))&&(s!=null&&s.every(o=>Array.isArray(o)&&o.length===1)?s=s==null?void 0:s.map(o=>((o==null?void 0:o[0])===E&&(o=[y]),o)):s=s==null?void 0:s.map(o=>{if(o!=null&&o.find(M=>M===(d==null?void 0:d[i]))&&(d==null?void 0:d.length)!==1){let M=D.cloneDeep(d),q=o==null?void 0:o.filter(H=>H!==(M==null?void 0:M[i])),K=i+1,b=Le(q,M,E,y,K),P=[];P.push(o==null?void 0:o[0]),b==null||b.forEach(H=>{P.push(H)}),o=P}return o})),s};function Qe(z="menu"){return{name:z,components:{SvgIcon:ga.SvgIcon,ssMenu:Me.ssMenu,DynamicIcon:Me._sfc_main,ssDialog:ya.ssDialog,ssInput:na._sfc_main$2},setup(d,{emit:E}){const y=C.defineProps({mode:{type:String,default:"vertical"}}),i=C.ref([{allowInherit:!1,operateType:"复制新增",operateIcon:"CopyAddMenu"},{allowInherit:!1,operateType:"删除",operateIcon:"DeleteMenu"},{allowInherit:!1,operateType:"修改菜单名",operateIcon:"FixedMenu"}]),s=Ge.useMenuState(),o=Ge.useModelComp(D.pinia),M=D.useLoginState(D.pinia),{loginUserInfo:q}=D.storeToRefs(M),K=C.ref(0),b=Da.useRouter(),P=C.ref(),{asideMenus:H,menuTriggerType:Xe,platform:Ye}=D.storeToRefs(s),{fixMenuStatus:Ze}=D.storeToRefs(o),He=C.computed(()=>y==null?void 0:y.mode),$e=a=>a==null?void 0:a.map(e=>{var p,c;return!(e!=null&&e.children)||((p=e==null?void 0:e.children)==null?void 0:p.length)===0?e.config=i.value:e!=null&&e.children&&((c=e==null?void 0:e.children)==null?void 0:c.length)>0&&(e.children=$e(e.children)),e}),Re=C.computed(()=>{let a=[...H.value];if((a==null?void 0:a.length)===0)return b.push("/"),[];const t=aa(a,me.value);return t.isFlag||(a=t==null?void 0:t.data),a=a==null?void 0:a.map(e=>{var p,c;return!(e!=null&&e.children)||((p=e==null?void 0:e.children)==null?void 0:p.length)===0?e.config=i.value:e!=null&&e.children&&((c=e==null?void 0:e.children)==null?void 0:c.length)>0&&(e.children=$e(e.children)),e}),a}),Ne=async(a,t)=>{o.setRouteToChildPath(""),s.setMenuTriggerType("click"),s.setActiveMenuPath(a==null?void 0:a.path),s.setActiveAsideMenu(a),a.isRouter?b.push(a.path):b.push("/"),E("node-click",a,t)},Ve=async a=>{const t=D.findNodeByPropInTree(Re.value,"path",a);s.setActiveAsideMenu(t),o.setRouteToChildPath(""),Ze.value?o.setFixMenuStatus(!1):Xe.value==="click"?K.value===1?s.setActiveMenuPath(sessionStorage.getItem("pageKey")):s.setActiveMenuPath(a):(s.setMenuTriggerType("click"),s.setActiveMenuPath(a)),a!=null&&a.startsWith("/")?b.push(a):b.push("/"),K.value++},ue=a=>{s.setActiveMenuPath(a)},X=a=>{const t=document.documentElement;a==null||a.forEach(e=>{t.style.setProperty(e.name,e.value)})};C.onMounted(()=>{K.value=1});const me=C.computed(()=>{const a=sessionStorage.getItem("authority");return a?JSON.parse(a):[]});C.watch(()=>Ye.value,a=>{a==="browser"?X(Ue.browserVerticalMenuClasses):a==="client"?(X(Ue.clientHorizontalMenuClasses),X(Ue.clientVerticalMenuClasses)):a==="three"&&(X(Ue.threeHorizontalMenuClasses),X(Ue.threeVerticalMenuClasses))},{immediate:!0});const ea=(a,t)=>{function e(p){p==null||p.forEach(c=>{var $,T;const g=($=c==null?void 0:c.path)!=null&&$.startsWith("/")?(T=c==null?void 0:c.path)==null?void 0:T.substring(1):c==null?void 0:c.path;c.show=t==null?void 0:t.some(R=>R==null?void 0:R.includes(g)),c.children&&e(c.children)})}return e(a),a},aa=(a,t)=>{if(Array.isArray(t)){const e=Array.from(new Set(t==null?void 0:t.map(p=>p.substring(0,p.lastIndexOf("/")))));return{data:ea(a,e),isFlag:!1}}else return{isFlag:(t==null?void 0:t.toUpperCase())==="SUPERADMIN"}},B=C.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),ta=a=>Me.getComponent(a),sa=C.ref({}),la=C.ref([]),N=C.ref({}),Y=C.ref({}),ia=a=>{switch(a){case"复制新增":return"create";case"修改菜单名":return"update";case"删除":return"delete"}},Be=C.ref({}),oa=a=>{s.setCacheInputMenu({type:B.type,data:a}),s.setIsRefreshMenus(!0)},ca=async(a,t,e)=>{var p,c,g,$,T,R,L,V,u,m,ee,ae,te,se,le,ie,oe,ce,re,pe,fe,he,de,ve,ye,ne,De,ge,Ie,Se,ke,Te,_e,be,Ce,Ae,Ke,we,h,w,x,k;if(t==="create"){let r=(e==null?void 0:e.title)+"(1)",A=await D.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),S=(c=(p=A==null?void 0:A.data)==null?void 0:p.result)==null?void 0:c[0],W=(g=S==null?void 0:S.value)==null?void 0:g.pageData;W.compData=($=W.compData)==null?void 0:$.map(l=>{var f;return(l==null?void 0:l.key)==="menuContents"&&(l.contents=Pe(l.contents,(f=e==null?void 0:e.path)==null?void 0:f.split("/"),r)),l}),await D.updateInsofDataApi({id:S==null?void 0:S.id,value:{pageData:W}});let U=(R=(T=e==null?void 0:e.path)==null?void 0:T.split("/"))==null?void 0:R.filter((l,f)=>{var n,I;return f!==((I=(n=e==null?void 0:e.path)==null?void 0:n.split("/"))==null?void 0:I.length)-1}),F=await Z.getItemData((u=(V=(L=e==null?void 0:e.path)==null?void 0:L.split("/"))==null?void 0:V.filter((l,f)=>{var n,I;return f!==((I=(n=e==null?void 0:e.path)==null?void 0:n.split("/"))==null?void 0:I.length)-1}))==null?void 0:u.join("/"),sessionStorage.getItem("systemKey"),"");if(U.push(r),U=U==null?void 0:U.join("/"),(F==null?void 0:F.length)>0){let l=F==null?void 0:F[0],f=(ee=(m=l==null?void 0:l.compData)==null?void 0:m.find(n=>(n==null?void 0:n.key)==="header"))==null?void 0:ee.contents;if(((ae=f==null?void 0:f[0])==null?void 0:ae.directiveLabel)==="#isMain"){let n=(te=f==null?void 0:f[0])==null?void 0:te.prop,I=(le=(se=l==null?void 0:l.compData)==null?void 0:se.find(_=>(_==null?void 0:_.key)==="tableContents"))==null?void 0:le.contents,J;I==null||I.forEach(_=>{var G,O;if(_.length===1)((G=_==null?void 0:_[0])==null?void 0:G[n])===(e==null?void 0:e.title)&&(J=_==null?void 0:_[0],J[n]=r);else{let Q=(O=f==null?void 0:f.filter(j=>j!=="操作"))==null?void 0:O.map(j=>j==null?void 0:j.prop),Fe=_==null?void 0:_.filter(j=>!(j!=null&&j.id)),xe=Z.getValueToObjectValue(Fe,Q);xe[n]=r,J=xe}}),await D.createInsofDataApi({key:{type:"data",pageKey:(ce=(oe=(ie=e==null?void 0:e.path)==null?void 0:ie.split("/"))==null?void 0:oe.filter((_,G)=>{var O,Q;return G!==((Q=(O=e==null?void 0:e.path)==null?void 0:O.split("/"))==null?void 0:Q.length)-1}))==null?void 0:ce.join("/"),tableId:l==null?void 0:l.id,systemKey:sessionStorage.getItem("systemKey"),createUserId:(re=q.value)==null?void 0:re.id,createUserLayer:((pe=q.value)==null?void 0:pe.dept)||((fe=q.value)==null?void 0:fe.部门名称)},value:{tableData:J}})}}await Z.newLoadingConstruct(e==null?void 0:e.path,U),s.setUpdateMenuStatus(!1),await je.verifyStructureDataToStore(),s.setActiveMenuPath((ve=(de=(he=e==null?void 0:e.path)==null?void 0:he.split("/"))==null?void 0:de.filter((l,f)=>{var n,I;return f!==((I=(n=e==null?void 0:e.path)==null?void 0:n.split("/"))==null?void 0:I.length)-1}))==null?void 0:ve.join("/")),s.setActiveTopMenuPath((ne=(ye=e==null?void 0:e.path)==null?void 0:ye.split("/"))==null?void 0:ne[0]),s.setIsRefreshMenus(!1),s.setIsRefreshMenus(!0)}else if(t==="update")P.value=e;else if(t==="delete"){let r=await D.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:e==null?void 0:e.path}}),A=await D.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),S=(ge=(De=A==null?void 0:A.data)==null?void 0:De.result)==null?void 0:ge[0],W=(Ie=S==null?void 0:S.value)==null?void 0:Ie.pageData;if(W.compData=(Se=W.compData)==null?void 0:Se.map(l=>{var f;return(l==null?void 0:l.key)==="menuContents"&&(l.contents=qe(l.contents,(f=e==null?void 0:e.path)==null?void 0:f.split("/"))),l}),await D.updateInsofDataApi({id:S==null?void 0:S.id,value:{pageData:W}}),((Te=(ke=r==null?void 0:r.data)==null?void 0:ke.result)==null?void 0:Te.length)>0){let l=(be=(_e=r==null?void 0:r.data)==null?void 0:_e.result)==null?void 0:be.map(f=>f==null?void 0:f.id);(l==null?void 0:l.length)>0&&await D.batchDeleteInsofDataApi({ids:l})}let U=await Z.getItemData((Ke=(Ae=(Ce=e==null?void 0:e.path)==null?void 0:Ce.split("/"))==null?void 0:Ae.filter((l,f)=>{var n,I;return f!==((I=(n=e==null?void 0:e.path)==null?void 0:n.split("/"))==null?void 0:I.length)-1}))==null?void 0:Ke.join("/"),sessionStorage.getItem("systemKey"),""),F=[];(U==null?void 0:U.length)>0&&(U==null||U.forEach(l=>{var n,I,J,_,G,O,Q,Fe,xe,j,Oe;let f=(_=(J=(I=(n=l==null?void 0:l.compData)==null?void 0:n.find(v=>(v==null?void 0:v.key)==="header"))==null?void 0:I.contents)==null?void 0:J[0])==null?void 0:_.prop;((Fe=(Q=(O=(G=l==null?void 0:l.compData)==null?void 0:G.find(v=>(v==null?void 0:v.key)==="header"))==null?void 0:O.contents)==null?void 0:Q[0])==null?void 0:Fe.directiveLabel)==="#isMain"&&((Oe=(j=(xe=l==null?void 0:l.compData)==null?void 0:xe.find(v=>(v==null?void 0:v.key)==="tableContents"))==null?void 0:j.contents)==null||Oe.forEach(v=>{var ze,We,Je;(v==null?void 0:v.length)>1?(v==null?void 0:v[1])===(e==null?void 0:e.title)&&F.push((ze=v==null?void 0:v[0])==null?void 0:ze.id):((We=v==null?void 0:v[0])==null?void 0:We[f])===(e==null?void 0:e.title)&&F.push((Je=v==null?void 0:v[0])==null?void 0:Je.id)}))})),(F==null?void 0:F.length)>0&&await D.batchDeleteInsofDataApi({ids:F}),s.setUpdateMenuStatus(!1),await je.verifyStructureDataToStore(),s.setActiveMenuPath((w=(h=(we=e==null?void 0:e.path)==null?void 0:we.split("/"))==null?void 0:h.filter((l,f)=>{var n,I;return f!==((I=(n=e==null?void 0:e.path)==null?void 0:n.split("/"))==null?void 0:I.length)-1}))==null?void 0:w.join("/")),s.setActiveTopMenuPath((k=(x=e==null?void 0:e.path)==null?void 0:x.split("/"))==null?void 0:k[0]),s.setIsRefreshMenus(!1),s.setIsRefreshMenus(!0)}},ra=async(a,t)=>{var V,u,m,ee,ae,te,se,le,ie,oe,ce,re,pe,fe,he,de,ve,ye,ne,De,ge,Ie,Se,ke,Te,_e,be,Ce,Ae,Ke,we;let e=await D.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),p=(u=(V=e==null?void 0:e.data)==null?void 0:V.result)==null?void 0:u[0],c=(m=p==null?void 0:p.value)==null?void 0:m.pageData;c.compData=(ee=c.compData)==null?void 0:ee.map(h=>{var w,x;return(h==null?void 0:h.key)==="menuContents"&&(h.contents=Le(h.contents,(w=t==null?void 0:t.path)==null?void 0:w.split("/"),t==null?void 0:t.title,(x=a==null?void 0:a.target)==null?void 0:x.value)),h}),p!=null&&p.id&&await D.updateInsofDataApi({id:p==null?void 0:p.id,value:{pageData:c}});let g=(te=(ae=t==null?void 0:t.path)==null?void 0:ae.split("/"))==null?void 0:te.filter((h,w)=>{var x,k;return w!==((k=(x=t==null?void 0:t.path)==null?void 0:x.split("/"))==null?void 0:k.length)-1}),$=g==null?void 0:g.join("/");g.push((se=a==null?void 0:a.target)==null?void 0:se.value),g=g==null?void 0:g.join("/");let T=await Z.getItemData($,sessionStorage.getItem("systemKey"),"");if(((re=(ce=(oe=(ie=(le=T==null?void 0:T[0])==null?void 0:le.compData)==null?void 0:ie.find(h=>(h==null?void 0:h.key)==="header"))==null?void 0:oe.contents)==null?void 0:ce[0])==null?void 0:re.directiveLabel)==="#isMain"){let h=(ve=(de=(he=(fe=(pe=T==null?void 0:T[0])==null?void 0:pe.compData)==null?void 0:fe.find(r=>(r==null?void 0:r.key)==="header"))==null?void 0:he.contents)==null?void 0:de[0])==null?void 0:ve.prop,w=(De=(ne=(ye=T==null?void 0:T[0])==null?void 0:ye.compData)==null?void 0:ne.find(r=>(r==null?void 0:r.key)==="tableContents"))==null?void 0:De.contents,x=(ke=(Se=(Ie=(ge=T==null?void 0:T[0])==null?void 0:ge.compData)==null?void 0:Ie.find(r=>(r==null?void 0:r.key)==="header"))==null?void 0:Se.contents)==null?void 0:ke.map(r=>r==null?void 0:r.prop),k;if(w==null||w.forEach(r=>{var S;let A=Z.getValueToObjectValue(r,x);(A==null?void 0:A[h])===t.title&&(k=A,k[h]=(S=a==null?void 0:a.target)==null?void 0:S.value)}),k){let r={};for(let S in k)S!=="id"&&(r[S]=k==null?void 0:k[S]);let A=[{id:k==null?void 0:k.id,value:{tableData:r}}];await D.batchUpdateInsofDataApi({dataList:A})}}let R=await D.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:t==null?void 0:t.path}}),L=(_e=(Te=R==null?void 0:R.data)==null?void 0:Te.result)==null?void 0:_e.map(h=>({id:h==null?void 0:h.id,key:h==null?void 0:h.key}));L=L==null?void 0:L.map(h=>(h.key.pageKey=g,h)),(L==null?void 0:L.length)>0&&await D.batchUpdateInsofDataApi({dataList:L}),s.setUpdateMenuStatus(!1),await je.verifyStructureDataToStore(),s.setActiveMenuPath((Ae=(Ce=(be=t==null?void 0:t.path)==null?void 0:be.split("/"))==null?void 0:Ce.filter((h,w)=>{var x,k;return w!==((k=(x=t==null?void 0:t.path)==null?void 0:x.split("/"))==null?void 0:k.length)-1}))==null?void 0:Ae.join("/")),s.setActiveTopMenuPath((we=(Ke=t==null?void 0:t.path)==null?void 0:Ke.split("/"))==null?void 0:we[0]),s.setIsRefreshMenus(!1),s.setIsRefreshMenus(!0),P.value=void 0},pa=async(a,t)=>{B.type=ia(t==null?void 0:t.operateType),await ca(t,B.type,a),Y.value=a,Be.value=t},fa=()=>{B.show=!1},ha=a=>a==null?void 0:a.filter(t=>t.allowInherit),da=()=>{var e,p,c,g,$;let a;B.type==="create"&&(a=((e=Y.value)==null?void 0:e.path)+"/"+N.value[(p=N.value)==null?void 0:p.prop]),B.type==="update"&&(a=(c=Y.value)==null?void 0:c.path);const t={...Y.value,config:ha((g=Y.value)==null?void 0:g.config),children:[],childMenus:[],title:N.value[($=N.value)==null?void 0:$.prop],path:a};console.log("clickSubmitForm",Be.value,Y.value,t),oa(t),B.show=!1},va=a=>{var e,p;const t=(e=a==null?void 0:a.contents)==null?void 0:e.find(c=>c.key==="formContent");t&&(N.value=(p=t==null?void 0:t.contents)==null?void 0:p.reduce((c,g)=>(c[g.key]=g.value,c.prop=g.key,c),{}))},Ee=C.ref(!1);return{isCollapse:Ee,handleMenuCollapse:()=>{Ee.value=!Ee.value},handleCompChange:va,dialogForm:sa,dialogRenderComps:la,getComponents:ta,clickSubmitForm:da,dialogInfo:B,beforeDialogDestroy:fa,clickMenuIcon:pa,mode:He,renderMenuList:Re,clickMenu:Ne,openMenu:Ve,closeMenu:ue,changeMenuStyle:X,fixElement:P,onBlur:ra}}}}const Ia=C.defineComponent(Qe());exports._sfc_main=Ia;exports.addSelectMenu=Pe;exports.deleteSelectMenu=qe;exports.fixSelectMenu=Le;exports.setComponent=Qe;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var L3 = Object.defineProperty;
|
|
2
2
|
var V3 = (H, l, h) => l in H ? L3(H, l, { enumerable: !0, configurable: !0, writable: !0, value: h }) : H[l] = h;
|
|
3
3
|
var p3 = (H, l, h) => V3(H, typeof l != "symbol" ? l + "" : l, h);
|
|
4
|
-
import { S as e3, O as a3, M as c3 } from "./MTLLoader-
|
|
5
|
-
import { bf as B3, bg as C3, ak as _3, ap as s3, b5 as u3, bh as W, bi as q3, bj as b3, bk as y3, b2 as o3, bl as A3, b3 as S3, av as I, ai as F3, ah as i3, bm as m3, aA as $, aB as N, bn as D3, b7 as T3, d as U3, bo as O3, bp as j3 } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
4
|
+
import { S as e3, O as a3, M as c3 } from "./MTLLoader-67H7fk80.js";
|
|
5
|
+
import { bf as B3, bg as C3, ak as _3, ap as s3, b5 as u3, bh as W, bi as q3, bj as b3, bk as y3, b2 as o3, bl as A3, b3 as S3, av as I, ai as F3, ah as i3, bm as m3, aA as $, aB as N, bn as D3, b7 as T3, d as U3, bo as O3, bp as j3 } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bz8QgjF-.js";
|
|
6
6
|
import { b as J, s as E3, p as I3, c4 as R3, c9 as k3 } from "./index-7MBVUN82.js";
|
|
7
7
|
import { ref as $3 } from "vue";
|
|
8
8
|
import { a as P3 } from "./index-3oQGURYh.js";
|
|
9
|
-
import { U as G3 } from "./URDFLoader-
|
|
9
|
+
import { U as G3 } from "./URDFLoader-DoVjA77Z.js";
|
|
10
10
|
class N3 extends B3 {
|
|
11
11
|
/**
|
|
12
12
|
* Constructs a new PCD loader.
|
|
@@ -645,7 +645,7 @@ const f3 = {
|
|
|
645
645
|
maxSize: 10,
|
|
646
646
|
// MB
|
|
647
647
|
maxFiles: 20,
|
|
648
|
-
apiUrl: "http://
|
|
648
|
+
apiUrl: "http://139.196.154.85:20015/api/public/paddleOCR"
|
|
649
649
|
};
|
|
650
650
|
class Z3 {
|
|
651
651
|
constructor(l) {
|