ss-component-new 1.3.293 → 1.3.296

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.
Files changed (42) hide show
  1. package/dist/{array-BZGJgmUx.cjs → array-B92nmZ3e.cjs} +1 -1
  2. package/dist/{array-BVedBC4J.js → array-Dyq4XhuN.js} +2 -2
  3. package/dist/{index-D-RquVVU.cjs → index-10cIo1OB.cjs} +1 -1
  4. package/dist/{index-DefvWUXW.js → index-B2EKs9L9.js} +1 -1
  5. package/dist/{index-BKPi9246.js → index-B8Aon_1a.js} +7673 -7677
  6. package/dist/{index-BGXlt0Bk.cjs → index-BILc9IPu.cjs} +1 -1
  7. package/dist/{index-B5_JD9Zr.js → index-BdM1fkpo.js} +1 -1
  8. package/dist/{index-C_rNGRpL.js → index-Bp3b_ow5.js} +1 -1
  9. package/dist/{index-CvAN1H22.js → index-C32uAsQO.js} +3 -3
  10. package/dist/{index-wW51rQ0m.js → index-C8liwVWm.js} +2 -2
  11. package/dist/{index-efltJzM6.js → index-CAM7iYGV.js} +8 -8
  12. package/dist/{index-DCL0uKEy.cjs → index-CFsqIG7u.cjs} +1 -1
  13. package/dist/index-CJlApKvn.cjs +25 -0
  14. package/dist/{index-BK2xjtjO.js → index-CsHESydV.js} +1 -1
  15. package/dist/{index-Cw3Mzxsu.cjs → index-D4w4YErl.cjs} +1 -1
  16. package/dist/{index-BMOdyP-6.cjs → index-DFvG0KxB.cjs} +1 -1
  17. package/dist/{index-WsYVHGnw.cjs → index-DIHCeGuk.cjs} +1 -1
  18. package/dist/{index-CuxsdavJ.js → index-DXpl-sR-.js} +2 -2
  19. package/dist/{index-iyPg8SID.cjs → index-DdtEeDTm.cjs} +1 -1
  20. package/dist/{index-OVAb_o-R.cjs → index-DmOH3yXH.cjs} +1 -1
  21. package/dist/{index-B5V-oUOc.js → index-Drb_dYeM.js} +1 -1
  22. package/dist/{index-B83PV1ft.cjs → index-ElpZs-E-.cjs} +1 -1
  23. package/dist/{index-Bsk8vIdB.cjs → index-QP6pNDrh.cjs} +1 -1
  24. package/dist/{index-DsopYGEs.js → index-UWPwt-jl.js} +2 -2
  25. package/dist/{index-DR_J3sca.js → index-fZgBoSVt.js} +1 -1
  26. package/dist/{index-C4MRQylF.cjs → index-zuL3t5Wr.cjs} +1 -1
  27. package/dist/{main-B5W7D5YD.js → main-BDJzFbLL.js} +2 -2
  28. package/dist/{main-Bj5s2YI8.cjs → main-Cq2fWzA_.cjs} +1 -1
  29. package/dist/ss-component.cjs +1 -1
  30. package/dist/ss-component.js +5 -5
  31. package/dist/ss-component2.cjs +1 -1
  32. package/dist/ss-component2.js +8 -8
  33. package/dist/{threeModel-C87-hoqY.js → threeModel-CrdhZxJh.js} +1 -1
  34. package/dist/{threeModel-DTxQtp2f.cjs → threeModel-DIdIJ99Q.cjs} +1 -1
  35. package/dist/{threeSceneView-Br8jbvLM.cjs → threeSceneView-3p0o71BQ.cjs} +1 -1
  36. package/dist/{threeSceneView-jNmK6OkL.js → threeSceneView-B8Os_D7c.js} +3 -3
  37. package/dist/{threeSceneViewForCPMPIP-B3ZnBCj6.cjs → threeSceneViewForCPMPIP-DAYNTC7g.cjs} +1 -1
  38. package/dist/{threeSceneViewForCPMPIP-DB1dWZmp.js → threeSceneViewForCPMPIP-Dn50xIWm.js} +1 -1
  39. package/dist/{threeViewerHost-CJ4fhhdJ.cjs → threeViewerHost-BkgI8zZM.cjs} +1 -1
  40. package/dist/{threeViewerHost-pVaZ-5d1.js → threeViewerHost-CKFQOVbT.js} +1 -1
  41. package/package.json +1 -1
  42. package/dist/index-C73PF4P6.cjs +0 -25
@@ -1 +1 @@
1
- "use strict";const t=require("vue"),U=require("./menu-DopnPfbG.cjs"),gt=require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-6F-e2GJs.cjs");const kt=require("./request-BC2w2vGr.cjs"),Ct=require("./index-CUw6nGTo.cjs"),Dt=require("./index-C4MRQylF.cjs"),It=require("vue-router"),Ke=require("./index-RoXicHV9.cjs"),N=require("./index-CW4qJdP8.cjs"),St=require("./index-C73PF4P6.cjs"),_t=require("./menuIndex-DhpobxSC.cjs"),m=require("./index-BkOJA3nu.cjs"),Pe=require("./index-CQY6ageG.cjs"),Bt=require("./index-Cq0IbX2g.cjs"),bt=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),je=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-C4MRQylF.cjs")).then(n=>n.index));je.install=n=>{n.component("ssMenu",je)};const Ye={__name:"index",props:{name:String},setup(n){const p=n,T=t.computed(()=>kt.Icons[p.name]);return t.onMounted(()=>{}),(h,r)=>{const l=t.resolveComponent("el-icon");return t.openBlock(),t.createBlock(l,null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(T.value)))]),_:1})}}},Re=(n,p,T=0)=>{let h=n;return h!=null&&h.every(r=>Array.isArray(r))&&(h!=null&&h.every(r=>Array.isArray(r)&&r.length===1)?h=h==null?void 0:h.filter(r=>(r==null?void 0:r[0])!==(p==null?void 0:p[T])):h=h==null?void 0:h.map(r=>{if(r!=null&&r.find(l=>l===(p==null?void 0:p[T]))&&(p==null?void 0:p.length)!==1){let l=U.cloneDeep(p),c=r==null?void 0:r.filter(I=>I!==(l==null?void 0:l[T])),w=T+1,x=Re(c,l,w),E=[];E.push(r==null?void 0:r[0]),x==null||x.forEach(I=>{E.push(I)}),r=E}return r})),h},Oe=(n,p,T,h=0)=>{let r=n;return r!=null&&r.every(l=>Array.isArray(l))&&(r!=null&&r.every(l=>Array.isArray(l)&&l.length===1)?r.push([T]):r=r==null?void 0:r.map(l=>{if(l!=null&&l.find(c=>c===(p==null?void 0:p[h]))&&(p==null?void 0:p.length)!==1){let c=U.cloneDeep(p),w=l==null?void 0:l.filter(q=>q!==(c==null?void 0:c[h])),x=h+1,E=Oe(w,c,T,x),I=[];I.push(l==null?void 0:l[0]),E==null||E.forEach(q=>{I.push(q)}),l=I}return l})),r},ze=(n,p,T,h,r=0)=>{let l=n;return l!=null&&l.every(c=>Array.isArray(c))&&(l!=null&&l.every(c=>Array.isArray(c)&&c.length===1)?l=l==null?void 0:l.map(c=>((c==null?void 0:c[0])===T&&(c=[h]),c)):l=l==null?void 0:l.map(c=>{if(c!=null&&c.find(w=>w===(p==null?void 0:p[r]))&&(p==null?void 0:p.length)!==1){let w=U.cloneDeep(p),x=c==null?void 0:c.filter(P=>P!==(w==null?void 0:w[r])),E=r+1,I=ze(x,w,T,h,E),q=[];q.push(c==null?void 0:c[0]),I==null||I.forEach(P=>{q.push(P)}),c=q}return c})),l};function Ze(n="menu"){return{name:n,components:{SvgIcon:gt.SvgIcon,ssMenu:je,DynamicIcon:Ye,ssDialog:Ct.ssDialog,ssInput:Dt.ssInput},setup(p,{emit:T}){const h=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"}]),l=U.useMenuState(),c=U.useModelComp(U.pinia),w=U.useLoginState(U.pinia),{loginUserInfo:x}=U.storeToRefs(w),E=t.ref(0),I=It.useRouter(),q=t.ref(),{asideMenus:P,menuTriggerType:s,platform:Ve}=U.storeToRefs(l),{fixMenuStatus:Fe}=U.storeToRefs(c),{isSuperAdmin:Le}=Bt.useRole(),Ne=t.computed(()=>h==null?void 0:h.mode),A=o=>o==null?void 0:o.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=A(e.children)),e}),Ue=t.computed(()=>{let o=[...P.value];if((o==null?void 0:o.length)===0)return I.push("/"),[];const a=lt(o,ot.value);return a.isFlag||(o=a==null?void 0:a.data),o=o==null?void 0:o.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=A(e.children)),e}),o}),me=async(o,a)=>{c.setRouteToChildPath(""),l.setMenuTriggerType("click"),l.setActiveMenuPath(o==null?void 0:o.path),l.setActiveAsideMenu(o),o.isRouter?I.push(o.path):I.push("/"),T("node-click",o,a)},et=async o=>{const a=_t.findNodeByPropInTree(Ue.value,"path",o);l.setActiveAsideMenu(a),c.setRouteToChildPath(""),Fe.value?c.setFixMenuStatus(!1):(Z.value&&(s.value="open"),s.value==="click"?E.value===1?l.setActiveMenuPath(sessionStorage.getItem("pageKey")):l.setActiveMenuPath(o):Z.value||(l.setMenuTriggerType("click"),l.setActiveMenuPath(o))),o!=null&&o.startsWith("/")?I.push(o):I.push("/"),E.value++},tt=o=>{Z.value||l.setActiveMenuPath(o)},X=o=>{const a=document.documentElement;o==null||o.forEach(e=>{a.style.setProperty(e.name,e.value)})};t.onMounted(()=>{E.value=1});const ot=t.computed(()=>{const o=sessionStorage.getItem("authority");return o?JSON.parse(o):[]});t.watch(()=>Ve.value,o=>{o==="browser"?X(Ke.browserVerticalMenuClasses):o==="client"?(X(Ke.clientHorizontalMenuClasses),X(Ke.clientVerticalMenuClasses)):o==="three"&&(X(Ke.threeHorizontalMenuClasses),X(Ke.threeVerticalMenuClasses))},{immediate:!0});const lt=(o,a)=>({isFlag:!0}),R=t.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),at=o=>St.getComponent(o),st=t.ref({}),it=t.ref([]),ee=t.ref({}),Y=t.ref({}),rt=o=>{switch(o){case"复制新增":return"create";case"修改菜单名":return"update";case"删除":return"delete"}},Je=t.ref({}),nt=o=>{l.setCacheInputMenu({type:R.type,data:o}),l.setIsRefreshMenus(!0)},ct=async(o,a,e)=>{var k,C,_,z,M,H,j,te,oe,le,ae,se,ie,re,ne,ce,pe,de,fe,he,ye,ve,ge,ke,Ce,De,Ie,Se,_e,Be,be,we,Te,Ee,Me,ue,xe,qe,y,K,V,B;if(a==="create"){let d=(e==null?void 0:e.title)+"(1)",u=await N.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),S=(C=(k=u==null?void 0:u.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 N.updateInsofDataApi({id:S==null?void 0:S.id,value:{pageData:J}});let F=(H=(M=e==null?void 0:e.path)==null?void 0:M.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}),L=await m.getItemData((oe=(te=(j=e==null?void 0:e.path)==null?void 0:j.split("/"))==null?void 0:te.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(F.push(d),F=F==null?void 0:F.join("/"),(L==null?void 0:L.length)>0){let i=L==null?void 0:L[0],f=(ae=(le=i==null?void 0:i.compData)==null?void 0:le.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:ae.contents;if(((se=f==null?void 0:f[0])==null?void 0:se.directiveLabel)==="#isMain"){let g=(ie=f==null?void 0:f[0])==null?void 0:ie.prop,D=(ne=(re=i==null?void 0:i.compData)==null?void 0:re.find(b=>(b==null?void 0:b.key)==="tableContents"))==null?void 0:ne.contents,W;D==null||D.forEach(b=>{var G,O;if(b.length===1)((G=b==null?void 0:b[0])==null?void 0:G[g])===(e==null?void 0:e.title)&&(W=b==null?void 0:b[0],W[g]=d);else{let Q=(O=f==null?void 0:f.filter($=>$!=="操作"))==null?void 0:O.map($=>$==null?void 0:$.prop),$e=b==null?void 0:b.filter($=>!($!=null&&$.id)),Ae=m.getValueToObjectValue($e,Q);Ae[g]=d,W=Ae}}),await N.createInsofDataApi({key:{type:"data",pageKey:(de=(pe=(ce=e==null?void 0:e.path)==null?void 0:ce.split("/"))==null?void 0:pe.filter((b,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:de.join("/"),tableId:i==null?void 0:i.id,systemKey:sessionStorage.getItem("systemKey"),createUserId:(fe=x.value)==null?void 0:fe.id,createUserLayer:((he=x.value)==null?void 0:he.dept)||((ye=x.value)==null?void 0:ye.部门名称)},value:{tableData:W}})}}await m.newLoadingConstruct(e==null?void 0:e.path,F),l.setUpdateMenuStatus(!1),await Pe.verifyStructureDataToStore(),l.setActiveMenuPath((ke=(ge=(ve=e==null?void 0:e.path)==null?void 0:ve.split("/"))==null?void 0:ge.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:ke.join("/")),l.setActiveTopMenuPath((De=(Ce=e==null?void 0:e.path)==null?void 0:Ce.split("/"))==null?void 0:De[0]),l.setIsRefreshMenus(!1),l.setIsRefreshMenus(!0)}else if(a==="update")q.value=e;else if(a==="delete"){let d=await N.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:e==null?void 0:e.path}}),u=await N.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),S=(Se=(Ie=u==null?void 0:u.data)==null?void 0:Ie.result)==null?void 0:Se[0],J=(_e=S==null?void 0:S.value)==null?void 0:_e.pageData;if(J.compData=(Be=J.compData)==null?void 0:Be.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 N.updateInsofDataApi({id:S==null?void 0:S.id,value:{pageData:J}}),((we=(be=d==null?void 0:d.data)==null?void 0:be.result)==null?void 0:we.length)>0){let i=(Ee=(Te=d==null?void 0:d.data)==null?void 0:Te.result)==null?void 0:Ee.map(f=>f==null?void 0:f.id);(i==null?void 0:i.length)>0&&await N.batchDeleteInsofDataApi({ids:i})}let F=await m.getItemData((xe=(ue=(Me=e==null?void 0:e.path)==null?void 0:Me.split("/"))==null?void 0:ue.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:xe.join("/"),sessionStorage.getItem("systemKey"),""),L=[];(F==null?void 0:F.length)>0&&(F==null||F.forEach(i=>{var g,D,W,b,G,O,Q,$e,Ae,$,We;let f=(b=(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:b.prop;(($e=(Q=(O=(G=i==null?void 0:i.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:$e.directiveLabel)==="#isMain"&&((We=($=(Ae=i==null?void 0:i.compData)==null?void 0:Ae.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)&&L.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)&&L.push((Xe=v==null?void 0:v[0])==null?void 0:Xe.id)}))})),(L==null?void 0:L.length)>0&&await N.batchDeleteInsofDataApi({ids:L}),l.setUpdateMenuStatus(!1),await Pe.verifyStructureDataToStore(),l.setActiveMenuPath((K=(y=(qe=e==null?void 0:e.path)==null?void 0:qe.split("/"))==null?void 0:y.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:K.join("/")),l.setActiveTopMenuPath((B=(V=e==null?void 0:e.path)==null?void 0:V.split("/"))==null?void 0:B[0]),l.setIsRefreshMenus(!1),l.setIsRefreshMenus(!0)}},pt=async(o,a)=>{var te,oe,le,ae,se,ie,re,ne,ce,pe,de,fe,he,ye,ve,ge,ke,Ce,De,Ie,Se,_e,Be,be,we,Te,Ee,Me,ue,xe,qe;let e=await N.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),k=(oe=(te=e==null?void 0:e.data)==null?void 0:te.result)==null?void 0:oe[0],C=(le=k==null?void 0:k.value)==null?void 0:le.pageData;C.compData=(ae=C.compData)==null?void 0:ae.map(y=>{var K,V;return(y==null?void 0:y.key)==="menuContents"&&(y.contents=ze(y.contents,(K=a==null?void 0:a.path)==null?void 0:K.split("/"),a==null?void 0:a.title,(V=o==null?void 0:o.target)==null?void 0:V.value)),y}),k!=null&&k.id&&await N.updateInsofDataApi({id:k==null?void 0:k.id,value:{pageData:C}});let _=(ie=(se=a==null?void 0:a.path)==null?void 0:se.split("/"))==null?void 0:ie.filter((y,K)=>{var V,B;return K!==((B=(V=a==null?void 0:a.path)==null?void 0:V.split("/"))==null?void 0:B.length)-1}),z=_==null?void 0:_.join("/");_.push((re=o==null?void 0:o.target)==null?void 0:re.value),_=_==null?void 0:_.join("/");let M=await m.getItemData(z,sessionStorage.getItem("systemKey"),"");if(((fe=(de=(pe=(ce=(ne=M==null?void 0:M[0])==null?void 0:ne.compData)==null?void 0:ce.find(y=>(y==null?void 0:y.key)==="header"))==null?void 0:pe.contents)==null?void 0:de[0])==null?void 0:fe.directiveLabel)==="#isMain"){let y=(ke=(ge=(ve=(ye=(he=M==null?void 0:M[0])==null?void 0:he.compData)==null?void 0:ye.find(d=>(d==null?void 0:d.key)==="header"))==null?void 0:ve.contents)==null?void 0:ge[0])==null?void 0:ke.prop,K=(Ie=(De=(Ce=M==null?void 0:M[0])==null?void 0:Ce.compData)==null?void 0:De.find(d=>(d==null?void 0:d.key)==="tableContents"))==null?void 0:Ie.contents,V=(be=(Be=(_e=(Se=M==null?void 0:M[0])==null?void 0:Se.compData)==null?void 0:_e.find(d=>(d==null?void 0:d.key)==="header"))==null?void 0:Be.contents)==null?void 0:be.map(d=>d==null?void 0:d.prop),B;if(K==null||K.forEach(d=>{var S;let u=m.getValueToObjectValue(d,V);(u==null?void 0:u[y])===a.title&&(B=u,B[y]=(S=o==null?void 0:o.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 u=[{id:B==null?void 0:B.id,value:{tableData:d}}];await N.batchUpdateInsofDataApi({dataList:u})}}let H=await N.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:a==null?void 0:a.path}}),j=(Te=(we=H==null?void 0:H.data)==null?void 0:we.result)==null?void 0:Te.map(y=>({id:y==null?void 0:y.id,key:y==null?void 0:y.key}));j=j==null?void 0:j.map(y=>(y.key.pageKey=_,y)),(j==null?void 0:j.length)>0&&await N.batchUpdateInsofDataApi({dataList:j}),l.setUpdateMenuStatus(!1),await Pe.verifyStructureDataToStore(),l.setActiveMenuPath((ue=(Me=(Ee=a==null?void 0:a.path)==null?void 0:Ee.split("/"))==null?void 0:Me.filter((y,K)=>{var V,B;return K!==((B=(V=a==null?void 0:a.path)==null?void 0:V.split("/"))==null?void 0:B.length)-1}))==null?void 0:ue.join("/")),l.setActiveTopMenuPath((qe=(xe=a==null?void 0:a.path)==null?void 0:xe.split("/"))==null?void 0:qe[0]),l.setIsRefreshMenus(!1),l.setIsRefreshMenus(!0),q.value=void 0},dt=async(o,a)=>{R.type=rt(a==null?void 0:a.operateType),await ct(a,R.type,o),Y.value=o,Je.value=a},ft=()=>{R.show=!1},ht=o=>o==null?void 0:o.filter(a=>a.allowInherit),yt=()=>{var e,k,C,_,z;let o;R.type==="create"&&(o=((e=Y.value)==null?void 0:e.path)+"/"+ee.value[(k=ee.value)==null?void 0:k.prop]),R.type==="update"&&(o=(C=Y.value)==null?void 0:C.path);const a={...Y.value,config:ht((_=Y.value)==null?void 0:_.config),children:[],childMenus:[],title:ee.value[(z=ee.value)==null?void 0:z.prop],path:o};console.log("clickSubmitForm",Je.value,Y.value,a),nt(a),R.show=!1},vt=o=>{var e,k;const a=(e=o==null?void 0:o.contents)==null?void 0:e.find(C=>C.key==="formContent");a&&(ee.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:vt,dialogForm:st,dialogRenderComps:it,getComponents:at,clickSubmitForm:yt,dialogInfo:R,beforeDialogDestroy:ft,clickMenuIcon:dt,mode:Ne,renderMenuList:Ue,clickMenu:me,openMenu:et,closeMenu:tt,changeMenuStyle:X,fixElement:q,onBlur:pt,isSuperAdmin:Le}}}}const wt=t.defineComponent(Ze()),Tt=["title"],Et={key:1,class:"menu-title",style:{display:"flex",width:"100px"}},Mt={key:2,class:"menu-operate-icon"},ut={class:"menu-config-wrap"},xt=["onClick"],qt={class:"module-dialog-content"};function At(n,p,T,h,r,l){var P;const c=t.resolveComponent("ss-input"),w=t.resolveComponent("svg-icon"),x=t.resolveComponent("el-popover"),E=t.resolveComponent("ss-menu"),I=t.resolveComponent("el-button"),q=t.resolveComponent("ss-dialog");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(E,{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 Ve,Fe,Le,Ne;return[!n.fixElement||(s==null?void 0:s.path)!==((Ve=n.fixElement)==null?void 0:Ve.path)?(t.openBlock(),t.createElementBlock("span",{key:0,title:s.title,class:"menu-title",style:t.normalizeStyle({marginRight:s!=null&&s.config&&((Fe=s==null?void 0:s.config)==null?void 0:Fe.length)>0?"25px":"1px"})},t.toDisplayString(s.title??""),13,Tt)):t.createCommentVNode("",!0),n.fixElement&&(s==null?void 0:s.path)===((Le=n.fixElement)==null?void 0:Le.path)?(t.openBlock(),t.createElementBlock("span",Et,[t.createVNode(c,{value:s.title,onBlur:A=>n.onBlur(A,s)},null,8,["value","onBlur"])])):t.createCommentVNode("",!0),s!=null&&s.config&&((Ne=s==null?void 0:s.config)==null?void 0:Ne.length)>0&&n.isSuperAdmin?(t.openBlock(),t.createElementBlock("span",Mt,[t.createVNode(x,{title:"",placement:"bottom-start",trigger:"hover","popper-class":"menu-operate-popover"},{reference:t.withCtx(()=>[t.createVNode(w,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})]),default:t.withCtx(()=>[t.createElementVNode("div",ut,[(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:Ue=>n.clickMenuIcon(s,A)},[t.createVNode(w,{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,xt))),128))])]),_:2},1024)])):t.createCommentVNode("",!0)]}),_:1},8,["mode","menuList","isCollapse","onClickMenu","onOpenMenu","onCloseMenu"]),((P=n.renderMenuList)==null?void 0:P.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(w,{name:n.isCollapse?"expand":"pack",style:{width:"15px",height:"15px"}},null,8,["name"])])):t.createCommentVNode("",!0),t.createVNode(q,{class:"module-dialog",title:n.dialogInfo.title,visible:n.dialogInfo.show,width:n.dialogInfo.width,onBeforeDestroy:n.beforeDialogDestroy},{default:t.withCtx(()=>[t.createElementVNode("div",qt,[(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 He=bt._export_sfc(wt,[["render",At],["__scopeId","data-v-b8641e04"]]),Kt=Object.freeze(Object.defineProperty({__proto__:null,addSelectMenu:Oe,default:He,deleteSelectMenu:Re,fixSelectMenu:ze,setComponent:Ze},Symbol.toStringTag,{value:"Module"}));exports._sfc_main=Ye;exports.index=Kt;exports.ssMenu=je;exports.ssVMenu=He;
1
+ "use strict";const t=require("vue"),U=require("./menu-DopnPfbG.cjs"),gt=require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-6F-e2GJs.cjs");const kt=require("./request-BC2w2vGr.cjs"),Ct=require("./index-CUw6nGTo.cjs"),Dt=require("./index-zuL3t5Wr.cjs"),It=require("vue-router"),Ke=require("./index-RoXicHV9.cjs"),N=require("./index-CW4qJdP8.cjs"),St=require("./index-CJlApKvn.cjs"),_t=require("./menuIndex-DhpobxSC.cjs"),m=require("./index-BkOJA3nu.cjs"),Pe=require("./index-CQY6ageG.cjs"),Bt=require("./index-Cq0IbX2g.cjs"),bt=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),je=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-zuL3t5Wr.cjs")).then(n=>n.index));je.install=n=>{n.component("ssMenu",je)};const Ye={__name:"index",props:{name:String},setup(n){const p=n,T=t.computed(()=>kt.Icons[p.name]);return t.onMounted(()=>{}),(h,r)=>{const l=t.resolveComponent("el-icon");return t.openBlock(),t.createBlock(l,null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(T.value)))]),_:1})}}},Re=(n,p,T=0)=>{let h=n;return h!=null&&h.every(r=>Array.isArray(r))&&(h!=null&&h.every(r=>Array.isArray(r)&&r.length===1)?h=h==null?void 0:h.filter(r=>(r==null?void 0:r[0])!==(p==null?void 0:p[T])):h=h==null?void 0:h.map(r=>{if(r!=null&&r.find(l=>l===(p==null?void 0:p[T]))&&(p==null?void 0:p.length)!==1){let l=U.cloneDeep(p),c=r==null?void 0:r.filter(I=>I!==(l==null?void 0:l[T])),w=T+1,x=Re(c,l,w),E=[];E.push(r==null?void 0:r[0]),x==null||x.forEach(I=>{E.push(I)}),r=E}return r})),h},Oe=(n,p,T,h=0)=>{let r=n;return r!=null&&r.every(l=>Array.isArray(l))&&(r!=null&&r.every(l=>Array.isArray(l)&&l.length===1)?r.push([T]):r=r==null?void 0:r.map(l=>{if(l!=null&&l.find(c=>c===(p==null?void 0:p[h]))&&(p==null?void 0:p.length)!==1){let c=U.cloneDeep(p),w=l==null?void 0:l.filter(q=>q!==(c==null?void 0:c[h])),x=h+1,E=Oe(w,c,T,x),I=[];I.push(l==null?void 0:l[0]),E==null||E.forEach(q=>{I.push(q)}),l=I}return l})),r},ze=(n,p,T,h,r=0)=>{let l=n;return l!=null&&l.every(c=>Array.isArray(c))&&(l!=null&&l.every(c=>Array.isArray(c)&&c.length===1)?l=l==null?void 0:l.map(c=>((c==null?void 0:c[0])===T&&(c=[h]),c)):l=l==null?void 0:l.map(c=>{if(c!=null&&c.find(w=>w===(p==null?void 0:p[r]))&&(p==null?void 0:p.length)!==1){let w=U.cloneDeep(p),x=c==null?void 0:c.filter(P=>P!==(w==null?void 0:w[r])),E=r+1,I=ze(x,w,T,h,E),q=[];q.push(c==null?void 0:c[0]),I==null||I.forEach(P=>{q.push(P)}),c=q}return c})),l};function Ze(n="menu"){return{name:n,components:{SvgIcon:gt.SvgIcon,ssMenu:je,DynamicIcon:Ye,ssDialog:Ct.ssDialog,ssInput:Dt.ssInput},setup(p,{emit:T}){const h=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"}]),l=U.useMenuState(),c=U.useModelComp(U.pinia),w=U.useLoginState(U.pinia),{loginUserInfo:x}=U.storeToRefs(w),E=t.ref(0),I=It.useRouter(),q=t.ref(),{asideMenus:P,menuTriggerType:s,platform:Ve}=U.storeToRefs(l),{fixMenuStatus:Fe}=U.storeToRefs(c),{isSuperAdmin:Le}=Bt.useRole(),Ne=t.computed(()=>h==null?void 0:h.mode),A=o=>o==null?void 0:o.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=A(e.children)),e}),Ue=t.computed(()=>{let o=[...P.value];if((o==null?void 0:o.length)===0)return I.push("/"),[];const a=lt(o,ot.value);return a.isFlag||(o=a==null?void 0:a.data),o=o==null?void 0:o.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=A(e.children)),e}),o}),me=async(o,a)=>{c.setRouteToChildPath(""),l.setMenuTriggerType("click"),l.setActiveMenuPath(o==null?void 0:o.path),l.setActiveAsideMenu(o),o.isRouter?I.push(o.path):I.push("/"),T("node-click",o,a)},et=async o=>{const a=_t.findNodeByPropInTree(Ue.value,"path",o);l.setActiveAsideMenu(a),c.setRouteToChildPath(""),Fe.value?c.setFixMenuStatus(!1):(Z.value&&(s.value="open"),s.value==="click"?E.value===1?l.setActiveMenuPath(sessionStorage.getItem("pageKey")):l.setActiveMenuPath(o):Z.value||(l.setMenuTriggerType("click"),l.setActiveMenuPath(o))),o!=null&&o.startsWith("/")?I.push(o):I.push("/"),E.value++},tt=o=>{Z.value||l.setActiveMenuPath(o)},X=o=>{const a=document.documentElement;o==null||o.forEach(e=>{a.style.setProperty(e.name,e.value)})};t.onMounted(()=>{E.value=1});const ot=t.computed(()=>{const o=sessionStorage.getItem("authority");return o?JSON.parse(o):[]});t.watch(()=>Ve.value,o=>{o==="browser"?X(Ke.browserVerticalMenuClasses):o==="client"?(X(Ke.clientHorizontalMenuClasses),X(Ke.clientVerticalMenuClasses)):o==="three"&&(X(Ke.threeHorizontalMenuClasses),X(Ke.threeVerticalMenuClasses))},{immediate:!0});const lt=(o,a)=>({isFlag:!0}),R=t.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),at=o=>St.getComponent(o),st=t.ref({}),it=t.ref([]),ee=t.ref({}),Y=t.ref({}),rt=o=>{switch(o){case"复制新增":return"create";case"修改菜单名":return"update";case"删除":return"delete"}},Je=t.ref({}),nt=o=>{l.setCacheInputMenu({type:R.type,data:o}),l.setIsRefreshMenus(!0)},ct=async(o,a,e)=>{var k,C,_,z,M,H,j,te,oe,le,ae,se,ie,re,ne,ce,pe,de,fe,he,ye,ve,ge,ke,Ce,De,Ie,Se,_e,Be,be,we,Te,Ee,Me,ue,xe,qe,y,K,V,B;if(a==="create"){let d=(e==null?void 0:e.title)+"(1)",u=await N.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),S=(C=(k=u==null?void 0:u.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 N.updateInsofDataApi({id:S==null?void 0:S.id,value:{pageData:J}});let F=(H=(M=e==null?void 0:e.path)==null?void 0:M.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}),L=await m.getItemData((oe=(te=(j=e==null?void 0:e.path)==null?void 0:j.split("/"))==null?void 0:te.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(F.push(d),F=F==null?void 0:F.join("/"),(L==null?void 0:L.length)>0){let i=L==null?void 0:L[0],f=(ae=(le=i==null?void 0:i.compData)==null?void 0:le.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:ae.contents;if(((se=f==null?void 0:f[0])==null?void 0:se.directiveLabel)==="#isMain"){let g=(ie=f==null?void 0:f[0])==null?void 0:ie.prop,D=(ne=(re=i==null?void 0:i.compData)==null?void 0:re.find(b=>(b==null?void 0:b.key)==="tableContents"))==null?void 0:ne.contents,W;D==null||D.forEach(b=>{var G,O;if(b.length===1)((G=b==null?void 0:b[0])==null?void 0:G[g])===(e==null?void 0:e.title)&&(W=b==null?void 0:b[0],W[g]=d);else{let Q=(O=f==null?void 0:f.filter($=>$!=="操作"))==null?void 0:O.map($=>$==null?void 0:$.prop),$e=b==null?void 0:b.filter($=>!($!=null&&$.id)),Ae=m.getValueToObjectValue($e,Q);Ae[g]=d,W=Ae}}),await N.createInsofDataApi({key:{type:"data",pageKey:(de=(pe=(ce=e==null?void 0:e.path)==null?void 0:ce.split("/"))==null?void 0:pe.filter((b,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:de.join("/"),tableId:i==null?void 0:i.id,systemKey:sessionStorage.getItem("systemKey"),createUserId:(fe=x.value)==null?void 0:fe.id,createUserLayer:((he=x.value)==null?void 0:he.dept)||((ye=x.value)==null?void 0:ye.部门名称)},value:{tableData:W}})}}await m.newLoadingConstruct(e==null?void 0:e.path,F),l.setUpdateMenuStatus(!1),await Pe.verifyStructureDataToStore(),l.setActiveMenuPath((ke=(ge=(ve=e==null?void 0:e.path)==null?void 0:ve.split("/"))==null?void 0:ge.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:ke.join("/")),l.setActiveTopMenuPath((De=(Ce=e==null?void 0:e.path)==null?void 0:Ce.split("/"))==null?void 0:De[0]),l.setIsRefreshMenus(!1),l.setIsRefreshMenus(!0)}else if(a==="update")q.value=e;else if(a==="delete"){let d=await N.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:e==null?void 0:e.path}}),u=await N.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),S=(Se=(Ie=u==null?void 0:u.data)==null?void 0:Ie.result)==null?void 0:Se[0],J=(_e=S==null?void 0:S.value)==null?void 0:_e.pageData;if(J.compData=(Be=J.compData)==null?void 0:Be.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 N.updateInsofDataApi({id:S==null?void 0:S.id,value:{pageData:J}}),((we=(be=d==null?void 0:d.data)==null?void 0:be.result)==null?void 0:we.length)>0){let i=(Ee=(Te=d==null?void 0:d.data)==null?void 0:Te.result)==null?void 0:Ee.map(f=>f==null?void 0:f.id);(i==null?void 0:i.length)>0&&await N.batchDeleteInsofDataApi({ids:i})}let F=await m.getItemData((xe=(ue=(Me=e==null?void 0:e.path)==null?void 0:Me.split("/"))==null?void 0:ue.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:xe.join("/"),sessionStorage.getItem("systemKey"),""),L=[];(F==null?void 0:F.length)>0&&(F==null||F.forEach(i=>{var g,D,W,b,G,O,Q,$e,Ae,$,We;let f=(b=(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:b.prop;(($e=(Q=(O=(G=i==null?void 0:i.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:$e.directiveLabel)==="#isMain"&&((We=($=(Ae=i==null?void 0:i.compData)==null?void 0:Ae.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)&&L.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)&&L.push((Xe=v==null?void 0:v[0])==null?void 0:Xe.id)}))})),(L==null?void 0:L.length)>0&&await N.batchDeleteInsofDataApi({ids:L}),l.setUpdateMenuStatus(!1),await Pe.verifyStructureDataToStore(),l.setActiveMenuPath((K=(y=(qe=e==null?void 0:e.path)==null?void 0:qe.split("/"))==null?void 0:y.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:K.join("/")),l.setActiveTopMenuPath((B=(V=e==null?void 0:e.path)==null?void 0:V.split("/"))==null?void 0:B[0]),l.setIsRefreshMenus(!1),l.setIsRefreshMenus(!0)}},pt=async(o,a)=>{var te,oe,le,ae,se,ie,re,ne,ce,pe,de,fe,he,ye,ve,ge,ke,Ce,De,Ie,Se,_e,Be,be,we,Te,Ee,Me,ue,xe,qe;let e=await N.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),k=(oe=(te=e==null?void 0:e.data)==null?void 0:te.result)==null?void 0:oe[0],C=(le=k==null?void 0:k.value)==null?void 0:le.pageData;C.compData=(ae=C.compData)==null?void 0:ae.map(y=>{var K,V;return(y==null?void 0:y.key)==="menuContents"&&(y.contents=ze(y.contents,(K=a==null?void 0:a.path)==null?void 0:K.split("/"),a==null?void 0:a.title,(V=o==null?void 0:o.target)==null?void 0:V.value)),y}),k!=null&&k.id&&await N.updateInsofDataApi({id:k==null?void 0:k.id,value:{pageData:C}});let _=(ie=(se=a==null?void 0:a.path)==null?void 0:se.split("/"))==null?void 0:ie.filter((y,K)=>{var V,B;return K!==((B=(V=a==null?void 0:a.path)==null?void 0:V.split("/"))==null?void 0:B.length)-1}),z=_==null?void 0:_.join("/");_.push((re=o==null?void 0:o.target)==null?void 0:re.value),_=_==null?void 0:_.join("/");let M=await m.getItemData(z,sessionStorage.getItem("systemKey"),"");if(((fe=(de=(pe=(ce=(ne=M==null?void 0:M[0])==null?void 0:ne.compData)==null?void 0:ce.find(y=>(y==null?void 0:y.key)==="header"))==null?void 0:pe.contents)==null?void 0:de[0])==null?void 0:fe.directiveLabel)==="#isMain"){let y=(ke=(ge=(ve=(ye=(he=M==null?void 0:M[0])==null?void 0:he.compData)==null?void 0:ye.find(d=>(d==null?void 0:d.key)==="header"))==null?void 0:ve.contents)==null?void 0:ge[0])==null?void 0:ke.prop,K=(Ie=(De=(Ce=M==null?void 0:M[0])==null?void 0:Ce.compData)==null?void 0:De.find(d=>(d==null?void 0:d.key)==="tableContents"))==null?void 0:Ie.contents,V=(be=(Be=(_e=(Se=M==null?void 0:M[0])==null?void 0:Se.compData)==null?void 0:_e.find(d=>(d==null?void 0:d.key)==="header"))==null?void 0:Be.contents)==null?void 0:be.map(d=>d==null?void 0:d.prop),B;if(K==null||K.forEach(d=>{var S;let u=m.getValueToObjectValue(d,V);(u==null?void 0:u[y])===a.title&&(B=u,B[y]=(S=o==null?void 0:o.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 u=[{id:B==null?void 0:B.id,value:{tableData:d}}];await N.batchUpdateInsofDataApi({dataList:u})}}let H=await N.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:a==null?void 0:a.path}}),j=(Te=(we=H==null?void 0:H.data)==null?void 0:we.result)==null?void 0:Te.map(y=>({id:y==null?void 0:y.id,key:y==null?void 0:y.key}));j=j==null?void 0:j.map(y=>(y.key.pageKey=_,y)),(j==null?void 0:j.length)>0&&await N.batchUpdateInsofDataApi({dataList:j}),l.setUpdateMenuStatus(!1),await Pe.verifyStructureDataToStore(),l.setActiveMenuPath((ue=(Me=(Ee=a==null?void 0:a.path)==null?void 0:Ee.split("/"))==null?void 0:Me.filter((y,K)=>{var V,B;return K!==((B=(V=a==null?void 0:a.path)==null?void 0:V.split("/"))==null?void 0:B.length)-1}))==null?void 0:ue.join("/")),l.setActiveTopMenuPath((qe=(xe=a==null?void 0:a.path)==null?void 0:xe.split("/"))==null?void 0:qe[0]),l.setIsRefreshMenus(!1),l.setIsRefreshMenus(!0),q.value=void 0},dt=async(o,a)=>{R.type=rt(a==null?void 0:a.operateType),await ct(a,R.type,o),Y.value=o,Je.value=a},ft=()=>{R.show=!1},ht=o=>o==null?void 0:o.filter(a=>a.allowInherit),yt=()=>{var e,k,C,_,z;let o;R.type==="create"&&(o=((e=Y.value)==null?void 0:e.path)+"/"+ee.value[(k=ee.value)==null?void 0:k.prop]),R.type==="update"&&(o=(C=Y.value)==null?void 0:C.path);const a={...Y.value,config:ht((_=Y.value)==null?void 0:_.config),children:[],childMenus:[],title:ee.value[(z=ee.value)==null?void 0:z.prop],path:o};console.log("clickSubmitForm",Je.value,Y.value,a),nt(a),R.show=!1},vt=o=>{var e,k;const a=(e=o==null?void 0:o.contents)==null?void 0:e.find(C=>C.key==="formContent");a&&(ee.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:vt,dialogForm:st,dialogRenderComps:it,getComponents:at,clickSubmitForm:yt,dialogInfo:R,beforeDialogDestroy:ft,clickMenuIcon:dt,mode:Ne,renderMenuList:Ue,clickMenu:me,openMenu:et,closeMenu:tt,changeMenuStyle:X,fixElement:q,onBlur:pt,isSuperAdmin:Le}}}}const wt=t.defineComponent(Ze()),Tt=["title"],Et={key:1,class:"menu-title",style:{display:"flex",width:"100px"}},Mt={key:2,class:"menu-operate-icon"},ut={class:"menu-config-wrap"},xt=["onClick"],qt={class:"module-dialog-content"};function At(n,p,T,h,r,l){var P;const c=t.resolveComponent("ss-input"),w=t.resolveComponent("svg-icon"),x=t.resolveComponent("el-popover"),E=t.resolveComponent("ss-menu"),I=t.resolveComponent("el-button"),q=t.resolveComponent("ss-dialog");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(E,{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 Ve,Fe,Le,Ne;return[!n.fixElement||(s==null?void 0:s.path)!==((Ve=n.fixElement)==null?void 0:Ve.path)?(t.openBlock(),t.createElementBlock("span",{key:0,title:s.title,class:"menu-title",style:t.normalizeStyle({marginRight:s!=null&&s.config&&((Fe=s==null?void 0:s.config)==null?void 0:Fe.length)>0?"25px":"1px"})},t.toDisplayString(s.title??""),13,Tt)):t.createCommentVNode("",!0),n.fixElement&&(s==null?void 0:s.path)===((Le=n.fixElement)==null?void 0:Le.path)?(t.openBlock(),t.createElementBlock("span",Et,[t.createVNode(c,{value:s.title,onBlur:A=>n.onBlur(A,s)},null,8,["value","onBlur"])])):t.createCommentVNode("",!0),s!=null&&s.config&&((Ne=s==null?void 0:s.config)==null?void 0:Ne.length)>0&&n.isSuperAdmin?(t.openBlock(),t.createElementBlock("span",Mt,[t.createVNode(x,{title:"",placement:"bottom-start",trigger:"hover","popper-class":"menu-operate-popover"},{reference:t.withCtx(()=>[t.createVNode(w,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})]),default:t.withCtx(()=>[t.createElementVNode("div",ut,[(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:Ue=>n.clickMenuIcon(s,A)},[t.createVNode(w,{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,xt))),128))])]),_:2},1024)])):t.createCommentVNode("",!0)]}),_:1},8,["mode","menuList","isCollapse","onClickMenu","onOpenMenu","onCloseMenu"]),((P=n.renderMenuList)==null?void 0:P.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(w,{name:n.isCollapse?"expand":"pack",style:{width:"15px",height:"15px"}},null,8,["name"])])):t.createCommentVNode("",!0),t.createVNode(q,{class:"module-dialog",title:n.dialogInfo.title,visible:n.dialogInfo.show,width:n.dialogInfo.width,onBeforeDestroy:n.beforeDialogDestroy},{default:t.withCtx(()=>[t.createElementVNode("div",qt,[(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 He=bt._export_sfc(wt,[["render",At],["__scopeId","data-v-b8641e04"]]),Kt=Object.freeze(Object.defineProperty({__proto__:null,addSelectMenu:Oe,default:He,deleteSelectMenu:Re,fixSelectMenu:ze,setComponent:Ze},Symbol.toStringTag,{value:"Module"}));exports._sfc_main=Ye;exports.index=Kt;exports.ssMenu=je;exports.ssVMenu=He;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as y, ref as C, onMounted as _, createElementBlock as c, openBlock as g, createVNode as v } from "vue";
2
2
  import { u as h, p as k, s as x, c as m } from "./menu-BMAZOS2j.js";
3
- import { Y as M } from "./index-BKPi9246.js";
3
+ import { Y as M } from "./index-B8Aon_1a.js";
4
4
  import { a as D, d as T, f as S } from "./index-DxhNwr8X.js";
5
5
  import { g as w } from "./index-BsDMamej.js";
6
6
  import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -1,5 +1,5 @@
1
1
  import { ref as n, computed as c, defineComponent as s, reactive as p, onMounted as i, createElementBlock as u, openBlock as f, createVNode as b } from "vue";
2
- import { Y as m } from "./index-BKPi9246.js";
2
+ import { Y as m } from "./index-B8Aon_1a.js";
3
3
  import { g as d, c as _ } from "./index-BEEOZ_LN.js";
4
4
  import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const l = n([]), g = c(() => [
@@ -4,17 +4,17 @@ import { S as Wt } from "./index-BHtNKL1L.js";
4
4
  import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-C92zyRB7.js";
5
5
  import { I as Gt } from "./request-CoGtW0Ux.js";
6
6
  import { s as Nt } from "./index-CnjGqJZS.js";
7
- import { c as Qt } from "./index-DefvWUXW.js";
7
+ import { c as Qt } from "./index-B2EKs9L9.js";
8
8
  import { useRouter as Xt } from "vue-router";
9
9
  import { a as Yt, e as Zt, f as Vt, g as Ht, h as ut } from "./index-C2UiLe43.js";
10
10
  import { g as Pe, u as Xe, a as ft, c as mt, d as ht } from "./index-BsDMamej.js";
11
- import { g as el } from "./index-BKPi9246.js";
11
+ import { g as el } from "./index-B8Aon_1a.js";
12
12
  import { f as tl } from "./menuIndex-DuWSagQ-.js";
13
13
  import { c as Ye, d as dt, n as ll } from "./index-B846yqBS.js";
14
14
  import { v as Ze } from "./index-CkXAOjdK.js";
15
15
  import { u as sl } from "./index-6egNZH3a.js";
16
16
  import { _ as al } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
- const He = At(() => import("./index-DefvWUXW.js").then((r) => r.o));
17
+ const He = At(() => import("./index-B2EKs9L9.js").then((r) => r.o));
18
18
  He.install = (r) => {
19
19
  r.component("ssMenu", He);
20
20
  };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as C, reactive as k, onMounted as D, resolveComponent as B, resolveDirective as T, createElementBlock as y, openBlock as p, createElementVNode as t, withDirectives as u, createVNode as o, unref as n, toDisplayString as r, createBlock as A } from "vue";
2
- import { S as I, t as x, s as w, a as L } from "./index-BK2xjtjO.js";
2
+ import { S as I, t as x, s as w, a as L } from "./index-CsHESydV.js";
3
3
  import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-C92zyRB7.js";
4
4
  import "./index-BHtNKL1L.js";
5
- import { e as E } from "./index-DefvWUXW.js";
5
+ import { e as E } from "./index-B2EKs9L9.js";
6
6
  import "./index-B846yqBS.js";
7
7
  import { b as N, s as U } from "./menu-BMAZOS2j.js";
8
8
  import "./request-CoGtW0Ux.js";
@@ -1,11 +1,11 @@
1
1
  import { computed as ml, defineComponent as Bl, defineProps as Us, ref as O, watch as yl, onMounted as Jl, resolveComponent as ve, createBlock as Ge, openBlock as U, withCtx as h, createElementVNode as X, toDisplayString as gl, createElementBlock as Ie, Fragment as Cl, renderList as Sl, createCommentVNode as qe, normalizeStyle as xl, createVNode as c, unref as f, resolveDynamicComponent as ha, provide as ss, shallowRef as Xt, resolveDirective as ft, withDirectives as oa, vShow as ba, createTextVNode as wl, renderSlot as Gl, normalizeClass as Hl, createSlots as bs, mergeProps as gt, withModifiers as Kl, defineAsyncComponent as at, reactive as Ql, nextTick as As, onUnmounted as js } from "vue";
2
- import { m as xs, a as Qs, b as Ls, c as zt } from "./array-BVedBC4J.js";
3
- import { _ as os, s as Os, a as Zt } from "./index-CvAN1H22.js";
2
+ import { m as xs, a as Qs, b as Ls, c as zt } from "./array-Dyq4XhuN.js";
3
+ import { _ as os, s as Os, a as Zt } from "./index-C32uAsQO.js";
4
4
  import { u as Vl, p as bl, s as hl, c as fl, a as ta, b as Zl, f as ja, g as xa, h as vs, i as _s, j as Ks, k as $t, m as vt, e as en, n as yt, o as bt, q as ln } from "./menu-BMAZOS2j.js";
5
5
  import { useRouter as Qa } from "vue-router";
6
6
  import { a as is, d as Ns, e as cs, f as rs, g as us, h as ds, t as an, c as sn, b as tn } from "./index-C2UiLe43.js";
7
7
  import { u as ts, b as At, g as zl, a as ys, c as nn, d as st } from "./index-BsDMamej.js";
8
- import { g as Ra, s as on, a as tt, _ as Ts, b as cn, c as mt, X as rn, Q as un } from "./index-DefvWUXW.js";
8
+ import { g as Ra, s as on, a as tt, _ as Ts, b as cn, c as mt, X as rn, Q as un } from "./index-B2EKs9L9.js";
9
9
  import { E as Ul, a as dn, b as fa, I as pn, s as na, d as wt, c as Ct, e as kt, f as hn, g as fn, h as gn, p as vn, i as yn } from "./request-CoGtW0Ux.js";
10
10
  import { g as Mt, b as bn, u as Vs, c as sa, d as Ua, o as It, l as An, n as mn, t as wn, e as Cn } from "./index-B846yqBS.js";
11
11
  import { d as kn, g as ns, a as Dl, b as Mn, c as In, s as gs } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-C92zyRB7.js";
@@ -16,12 +16,12 @@ import { c as Ys, f as Fl, b as St, a as Sn, g as _n, d as nt } from "./menuInde
16
16
  import { _ as ql } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
17
  import { C as Tn } from "./index-DLJBDAUp.js";
18
18
  import { S as Pl } from "./index-BHtNKL1L.js";
19
- import En from "./threeModel-C87-hoqY.js";
20
- import { a as _t, b as ya, u as Tt, s as da, c as ot, d as it, r as Tl, o as ga, e as va, f as Et, h as Es, i as Dt, j as Ws, k as Dn, t as Bn, l as ka, m as ms, n as hs, p as Ma, q as es, v as Ia, w as Pn, x as Sa, y as _a, z as Rn, A as Ta, B as Ea, C as ls, D as ct, E as rt, F as ut, G as fs, H as ws, I as $l, J as Un, K as jn, L as Cs, M as xn, N as Qn, O as Ln, P as On, g as Bt, Q as dt, R as Kn, S as Pt, T as Nn, U as Vn, V as Yn, W as Wn } from "./index-BKPi9246.js";
19
+ import En from "./threeModel-CrdhZxJh.js";
20
+ import { a as _t, b as ya, u as Tt, s as da, c as ot, d as it, r as Tl, o as ga, e as va, f as Et, h as Es, i as Dt, j as Ws, k as Dn, t as Bn, l as ka, m as ms, n as hs, p as Ma, q as es, v as Ia, w as Pn, x as Sa, y as _a, z as Rn, A as Ta, B as Ea, C as ls, D as ct, E as rt, F as ut, G as fs, H as ws, I as $l, J as Un, K as jn, L as Cs, M as xn, N as Qn, O as Ln, P as On, g as Bt, Q as dt, R as Kn, S as Pt, T as Nn, U as Vn, V as Yn, W as Wn } from "./index-B8Aon_1a.js";
21
21
  import { _ as pa } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
22
22
  import { s as ia } from "./index-CnjGqJZS.js";
23
- import { T as Ds, u as Hn, a as qn } from "./threeViewerHost-pVaZ-5d1.js";
24
- import { s as Bs } from "./index-BK2xjtjO.js";
23
+ import { T as Ds, u as Hn, a as qn } from "./threeViewerHost-CKFQOVbT.js";
24
+ import { s as Bs } from "./index-CsHESydV.js";
25
25
  import { u as Fn } from "./index-BIV-s4QY.js";
26
26
  import { u as Gn } from "./index-CqiskI7e.js";
27
27
  import { u as Hs, E as wa, v as Da, m as Jn, o as pt, d as Xn, g as zn, a as Zn } from "./index-CkXAOjdK.js";
@@ -6919,7 +6919,7 @@ const Ft = (a) => {
6919
6919
  key: "Form",
6920
6920
  name: p == null ? void 0 : p.groupName,
6921
6921
  value: p == null ? void 0 : p.formContents,
6922
- contents: Array.isArray((t = p == null ? void 0 : p.contents) == null ? void 0 : t[0]) && ((se = (le = p == null ? void 0 : p.contents) == null ? void 0 : le[0]) != null && se.every((Pe) => Array.isArray(Pe))) ? [(r = (ae = p == null ? void 0 : p.contents) == null ? void 0 : ae[0]) == null ? void 0 : r[i]] : p == null ? void 0 : p.contents,
6922
+ contents: Array.isArray((t = p == null ? void 0 : p.contents) == null ? void 0 : t[0]) && ((se = (le = p == null ? void 0 : p.contents) == null ? void 0 : le[0]) != null && se.every((Pe) => Array.isArray(Pe))) ? [(r = (ae = p == null ? void 0 : p.contents) == null ? void 0 : ae[0]) == null ? void 0 : r[i]] : [p == null ? void 0 : p.contents],
6923
6923
  filter: "(" + T + ")",
6924
6924
  menuFilter: Ce
6925
6925
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),m=require("./index-Co-U8J6E.cjs"),p=require("./index-C73PF4P6.cjs"),_=require("./index-CUw6nGTo.cjs"),h=require("./index-C4MRQylF.cjs"),l=require("./menu-DopnPfbG.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={class:"menu-module"},k={class:"table-wrap","element-loading-text":"加载中..."},v={class:"module-dialog-default"},x=e.defineComponent({__name:"index",setup(b){const t=e.reactive({...m.State}),a=e.ref(null),c=l.useMenuState(l.pinia),{configMenu:n}=l.storeToRefs(c);return e.onMounted(()=>{var i;t.formatFormData(n.value),e.nextTick(()=>{var o,r;(r=a.value)==null||r.setCurrentKey((o=n.value)==null?void 0:o.path),c.setActiveMenuPath("/平台管理/菜单管理")}),n.value&&t.getInitialSubStructure((i=n.value)==null?void 0:i.path)}),(i,o)=>{const r=e.resolveComponent("el-tree"),s=e.resolveComponent("el-splitter-panel"),u=e.resolveComponent("el-splitter"),d=e.resolveComponent("el-button"),g=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",f,[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(s,{size:208,class:"tree-wrap",min:200},{default:e.withCtx(()=>[e.createVNode(r,{ref_key:"treeRef",ref:a,data:t.treeData,"expand-on-click-node":!1,"node-key":"path",props:{children:"children",label:"label",path:"path"},"highlight-current":"","default-expand-all":"","check-on-click-leaf":!1,"check-strictly":"",onNodeClick:t.clickNodeTrigger},null,8,["data","onNodeClick"])]),_:1}),e.createVNode(s,{min:500},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",k,[e.createVNode(p.ssTable,{itemData:t.menuPageData,changedContent:t.changedRow,operatingForm:t.operatingForm,onOnFormChange:t.changeTrigger,onChange:t.handleItemDataChange,onClickTrigger:t.clickTrigger,onOnButtonClick:t.clickRowButton},null,8,["itemData","changedContent","operatingForm","onOnFormChange","onChange","onClickTrigger","onOnButtonClick"])])),[[g,t.tableLoading]])]),_:1})]),_:1}),e.createVNode(_.ssDialog,{class:"module-dialog",title:t.dialogInfo.title,visible:t.dialogInfo.show,width:t.dialogInfo.width,onBeforeDestroy:t.beforeDialogDestroy},{default:e.withCtx(()=>[e.createElementVNode("div",v,[e.createVNode(h.ssForm,{rowContents:t.renderFormData,isEnableWrap:!1,isEdit:!0,onChange:t.changeTrigger,onClickTrigger:t.clickTrigger},null,8,["rowContents","onChange","onClickTrigger"])])]),footer:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(d,{onClick:t.beforeDialogDestroy,id:"themeBorderButton"},{default:e.withCtx(()=>o[0]||(o[0]=[e.createTextVNode("取消")])),_:1,__:[0]},8,["onClick"]),e.createVNode(d,{id:"themeButton",onClick:t.clickSubmitForm},{default:e.withCtx(()=>o[1]||(o[1]=[e.createTextVNode(" 确认 ")])),_:1,__:[1]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])])}}}),w=C._export_sfc(x,[["__scopeId","data-v-74868a06"]]);exports.default=w;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),m=require("./index-Co-U8J6E.cjs"),p=require("./index-CJlApKvn.cjs"),_=require("./index-CUw6nGTo.cjs"),h=require("./index-zuL3t5Wr.cjs"),l=require("./menu-DopnPfbG.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={class:"menu-module"},k={class:"table-wrap","element-loading-text":"加载中..."},v={class:"module-dialog-default"},x=e.defineComponent({__name:"index",setup(b){const t=e.reactive({...m.State}),a=e.ref(null),c=l.useMenuState(l.pinia),{configMenu:n}=l.storeToRefs(c);return e.onMounted(()=>{var i;t.formatFormData(n.value),e.nextTick(()=>{var o,r;(r=a.value)==null||r.setCurrentKey((o=n.value)==null?void 0:o.path),c.setActiveMenuPath("/平台管理/菜单管理")}),n.value&&t.getInitialSubStructure((i=n.value)==null?void 0:i.path)}),(i,o)=>{const r=e.resolveComponent("el-tree"),s=e.resolveComponent("el-splitter-panel"),u=e.resolveComponent("el-splitter"),d=e.resolveComponent("el-button"),g=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",f,[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(s,{size:208,class:"tree-wrap",min:200},{default:e.withCtx(()=>[e.createVNode(r,{ref_key:"treeRef",ref:a,data:t.treeData,"expand-on-click-node":!1,"node-key":"path",props:{children:"children",label:"label",path:"path"},"highlight-current":"","default-expand-all":"","check-on-click-leaf":!1,"check-strictly":"",onNodeClick:t.clickNodeTrigger},null,8,["data","onNodeClick"])]),_:1}),e.createVNode(s,{min:500},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",k,[e.createVNode(p.ssTable,{itemData:t.menuPageData,changedContent:t.changedRow,operatingForm:t.operatingForm,onOnFormChange:t.changeTrigger,onChange:t.handleItemDataChange,onClickTrigger:t.clickTrigger,onOnButtonClick:t.clickRowButton},null,8,["itemData","changedContent","operatingForm","onOnFormChange","onChange","onClickTrigger","onOnButtonClick"])])),[[g,t.tableLoading]])]),_:1})]),_:1}),e.createVNode(_.ssDialog,{class:"module-dialog",title:t.dialogInfo.title,visible:t.dialogInfo.show,width:t.dialogInfo.width,onBeforeDestroy:t.beforeDialogDestroy},{default:e.withCtx(()=>[e.createElementVNode("div",v,[e.createVNode(h.ssForm,{rowContents:t.renderFormData,isEnableWrap:!1,isEdit:!0,onChange:t.changeTrigger,onClickTrigger:t.clickTrigger},null,8,["rowContents","onChange","onClickTrigger"])])]),footer:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(d,{onClick:t.beforeDialogDestroy,id:"themeBorderButton"},{default:e.withCtx(()=>o[0]||(o[0]=[e.createTextVNode("取消")])),_:1,__:[0]},8,["onClick"]),e.createVNode(d,{id:"themeButton",onClick:t.clickSubmitForm},{default:e.withCtx(()=>o[1]||(o[1]=[e.createTextVNode(" 确认 ")])),_:1,__:[1]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])])}}}),w=C._export_sfc(x,[["__scopeId","data-v-74868a06"]]);exports.default=w;