ss-component-new 1.3.479 → 1.3.481
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{array-Dig7BYmd.cjs → array-BxpbFWKB.cjs} +1 -1
- package/dist/{array-CdymP2Bv.js → array-lENXXuxq.js} +2 -2
- package/dist/{index-CsRZ0i07.cjs → index-9YC24bNj.cjs} +1 -1
- package/dist/{index-BT6bHqwx.cjs → index-AxoUaL28.cjs} +1 -1
- package/dist/{index-BPNwGIHv.cjs → index-BH1ZgVQU.cjs} +1 -1
- package/dist/{index-BBoQVqN7.cjs → index-BJK8B62k.cjs} +1 -1
- package/dist/{index-HfmR8WSM.js → index-BQEOJF-G.js} +2 -2
- package/dist/{index-DPecDRMu.js → index-BWXZFsuz.js} +1 -1
- package/dist/{index-C1CYcu7q.cjs → index-BwYDoAMT.cjs} +1 -1
- package/dist/{index-BAsHBLV9.cjs → index-CHPMsDPK.cjs} +1 -1
- package/dist/{index-Bx4_opNC.cjs → index-ClYFYqBL.cjs} +1 -1
- package/dist/{index-BJiZQ7II.js → index-CtOsUUWU.js} +5 -5
- package/dist/{index-D2eCwes8.js → index-CtvNokK2.js} +1 -1
- package/dist/{index-BIarUBh3.cjs → index-CzhBMv8p.cjs} +1 -1
- package/dist/{index-DYm_0Gjd.cjs → index-DGEb9bkL.cjs} +1 -1
- package/dist/{index-DhYB0JA5.cjs → index-DLiW_2B8.cjs} +1 -1
- package/dist/{index-D-4qtOLZ.cjs → index-DZR82YPZ.cjs} +1 -1
- package/dist/{index-DLCA5vqn.js → index-DqkuDSPU.js} +1 -1
- package/dist/{index-BFxv4IR-.js → index-DrWKawXh.js} +3 -3
- package/dist/{index-CeP6fhJc.js → index-EfBib3zE.js} +1 -1
- package/dist/{index-BC7q-_1x.js → index-GqFgdK_J.js} +2 -2
- package/dist/{index-jIB-S19a.js → index-Pftc722L.js} +1 -1
- package/dist/{index-Bi1oVfaF.js → index-QgvVT_iI.js} +7 -7
- package/dist/{index-XhTww7Yz.js → index-Zp6hfbFU.js} +1 -1
- package/dist/{index-C1kHWH8t.cjs → index-dlG87qfK.cjs} +2 -2
- package/dist/{index-CUifMLL3.js → index-sEjvUC1x.js} +2 -2
- package/dist/{main-DUkp4ZQk.cjs → main-BqnZHAWL.cjs} +1 -1
- package/dist/{main-55wPj31J.js → main-CLr2QVY2.js} +2 -2
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +5 -5
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-D4XUjqeo.js → threeModel-9C1GaQDe.js} +1 -1
- package/dist/{threeModel-Boe7qRNS.cjs → threeModel-CjBRvpDw.cjs} +1 -1
- package/dist/{threeSceneView-Q1x-IsSk.js → threeSceneView-CuW5ZE_z.js} +3 -3
- package/dist/{threeSceneView-C8X9qGmq.cjs → threeSceneView-TcJCWtoE.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-DCTKrIm1.cjs → threeSceneViewForCPMPIP-BK4boj8r.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-CEeuM1ZH.js → threeSceneViewForCPMPIP-Clh-ry8L.js} +1 -1
- package/dist/{threeViewerHost-DQichI1a.js → threeViewerHost-C9P34BEh.js} +1 -1
- package/dist/{threeViewerHost-eV1nqK_z.cjs → threeViewerHost-s3KEeoPW.cjs} +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),w=require("./index-CMUsYepp.cjs"),He=require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_07c75c98_lang-Byr5bNn8.cjs");const me=require("./request-Dl8yi2iS.cjs"),et=require("./index-B-pflqKE.cjs"),tt=require("./index-BAsHBLV9.cjs"),ot=require("vue-router"),ke=require("./index-DKh4EyHV.cjs"),z=require("./index-DmwxzDGW.cjs"),lt=require("./index-C1kHWH8t.cjs"),st=require("./menuIndex-CBqMx085.cjs"),ue=require("./index-B7964G2F.cjs"),it=require("./index-DXiuTpL6.cjs"),at=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Se=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BAsHBLV9.cjs")).then(r=>r.index));Se.install=r=>{r.component("ssMenu",Se)};const Ee={__name:"index",props:{name:String},setup(r){const c=r,S=t.computed(()=>me.Icons[c.name]);return t.onMounted(()=>{}),(h,a)=>{const l=t.resolveComponent("el-icon");return t.openBlock(),t.createBlock(l,null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(S.value)))]),_:1})}}},xe=(r,c,S=0)=>{let h=r;return h!=null&&h.every(a=>Array.isArray(a))&&(h!=null&&h.every(a=>Array.isArray(a)&&a.length===1)?h=h==null?void 0:h.filter(a=>(a==null?void 0:a[0])!==(c==null?void 0:c[S])):h=h==null?void 0:h.map(a=>{if(a!=null&&a.find(l=>l===(c==null?void 0:c[S]))&&(c==null?void 0:c.length)!==1){let l=w.cloneDeep(c),n=a==null?void 0:a.filter(C=>C!==(l==null?void 0:l[S])),I=S+1,M=xe(n,l,I),b=[];b.push(a==null?void 0:a[0]),M==null||M.forEach(C=>{b.push(C)}),a=b}return a})),h},qe=(r,c,S,h=0)=>{let a=r;return a!=null&&a.every(l=>Array.isArray(l))&&(a!=null&&a.every(l=>Array.isArray(l)&&l.length===1)?a.push([S]):a=a==null?void 0:a.map(l=>{if(l!=null&&l.find(n=>n===(c==null?void 0:c[h]))&&(c==null?void 0:c.length)!==1){let n=w.cloneDeep(c),I=l==null?void 0:l.filter(E=>E!==(n==null?void 0:n[h])),M=h+1,b=qe(I,n,S,M),C=[];C.push(l==null?void 0:l[0]),b==null||b.forEach(E=>{C.push(E)}),l=C}return l})),a},be=(r,c,S,h,a=0)=>{let l=r;return l!=null&&l.every(n=>Array.isArray(n))&&(l!=null&&l.every(n=>Array.isArray(n)&&n.length===1)?l=l==null?void 0:l.map(n=>((n==null?void 0:n[0])===S&&(n=[h]),n)):l=l==null?void 0:l.map(n=>{if(n!=null&&n.find(I=>I===(c==null?void 0:c[a]))&&(c==null?void 0:c.length)!==1){let I=w.cloneDeep(c),M=n==null?void 0:n.filter(L=>L!==(I==null?void 0:I[a])),b=a+1,C=be(M,I,S,h,b),E=[];E.push(n==null?void 0:n[0]),C==null||C.forEach(L=>{E.push(L)}),n=E}return n})),l};function Ve(r="menu"){return{name:r,components:{SvgIcon:He.SvgIcon,ssMenu:Se,DynamicIcon:Ee,ssDialog:et.ssDialog,ssInput:tt.ssInput},setup(c,{emit:S}){const h=t.defineProps({mode:{type:String,default:"vertical"}}),a=t.ref([{allowInherit:!1,operateType:"复制新增",operateIcon:"CopyAddMenu"},{allowInherit:!1,operateType:"删除",operateIcon:"DeleteMenu"},{allowInherit:!1,operateType:"修改菜单名",operateIcon:"FixedMenu"}]),l=w.useMenuState(),n=w.useModelComp(w.pinia),I=w.useLoginState(w.pinia),{loginUserInfo:M}=w.storeToRefs(I),b=t.ref(0),C=ot.useRouter(),E=t.ref(),{asideMenus:L,menuTriggerType:i,platform:De,jumpMenuInform:U}=w.storeToRefs(l),{fixMenuStatus:_e}=w.storeToRefs(n),{isSuperAdmin:Ie}=it.useRole(),q=t.computed(()=>h==null?void 0:h.mode),Be=o=>o==null?void 0:o.map(e=>{var p,v;return!(e!=null&&e.children)||((p=e==null?void 0:e.children)==null?void 0:p.length)===0?e.config=a.value:e!=null&&e.children&&((v=e==null?void 0:e.children)==null?void 0:v.length)>0&&(e.children=Be(e.children)),e}),we=t.computed(()=>{let o=[...L.value];if((o==null?void 0:o.length)===0)return C.push("/"),[];const s=Ue(o,Le.value);return s.isFlag||(o=s==null?void 0:s.data),o=o==null?void 0:o.map(e=>{var p,v;return!(e!=null&&e.children)||((p=e==null?void 0:e.children)==null?void 0:p.length)===0?e.config=a.value:e!=null&&e.children&&((v=e==null?void 0:e.children)==null?void 0:v.length)>0&&(e.children=Be(e.children)),e}),o}),Fe=async(o,s)=>{n.setRouteToChildPath(""),l.setMenuTriggerType("click"),l.setActiveMenuPath(o==null?void 0:o.path),l.setActiveAsideMenu(o),o.isRouter?C.push(o.path):C.push("/"),S("node-click",o,s)},Ne=async o=>{const s=st.findNodeByPropInTree(we.value,"path",o);l.setActiveAsideMenu(s),n.setRouteToChildPath(""),_e.value?n.setFixMenuStatus(!1):(G.value&&(i.value="open"),i.value==="click"?U.value||l.setActiveMenuPath(o):G.value||(l.setMenuTriggerType("click"),U.value||l.setActiveMenuPath(o))),o!=null&&o.startsWith("/")?C.push(o):C.push("/"),b.value++},$e=o=>{G.value||l.setActiveMenuPath(o)},J=o=>{const s=document.documentElement;o==null||o.forEach(e=>{s.style.setProperty(e.name,e.value)})};t.onMounted(()=>{b.value=1});const Le=t.computed(()=>{const o=sessionStorage.getItem("authority");return o?JSON.parse(o):[]});t.watch(()=>De.value,o=>{o==="browser"?J(ke.browserVerticalMenuClasses):o==="client"?(J(ke.clientHorizontalMenuClasses),J(ke.clientVerticalMenuClasses)):o==="three"&&(J(ke.threeHorizontalMenuClasses),J(ke.threeVerticalMenuClasses))},{immediate:!0});const Ue=(o,s)=>({isFlag:!0}),R=t.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),Re=o=>lt.getComponent(o),je=t.ref({}),Pe=t.ref([]),Z=t.ref({}),W=t.ref({}),Oe=o=>{switch(o){case"复制新增":return"create";case"修改菜单名":return"update";case"删除":return"delete"}},Me=t.ref({}),Ke=o=>{l.setCacheInputMenu({type:R.type,data:o}),l.setIsRefreshMenus(!0)},ze=async(o,s,e)=>{var p,v,k,P,B,Q,A,H,m,ee,te,oe,le,se,ie,ae,re,ne,ce,pe,de,he,fe,ve,ye,Ce,ge;if(s==="create"){let F=(e==null?void 0:e.title)+"(1)",$=(v=(p=e==null?void 0:e.path)==null?void 0:p.split("/"))==null?void 0:v.filter((D,y)=>{var u,T;return y!==((T=(u=e==null?void 0:e.path)==null?void 0:u.split("/"))==null?void 0:T.length)-1}),N=await ue.getItemData((B=(P=(k=e==null?void 0:e.path)==null?void 0:k.split("/"))==null?void 0:P.filter((D,y)=>{var u,T;return y!==((T=(u=e==null?void 0:e.path)==null?void 0:u.split("/"))==null?void 0:T.length)-1}))==null?void 0:B.join("/"),sessionStorage.getItem("systemKey"),"");if($.push(F),$=$==null?void 0:$.join("/"),(N==null?void 0:N.length)>0){let D=N==null?void 0:N[0],y=(A=(Q=D==null?void 0:D.compData)==null?void 0:Q.find(u=>(u==null?void 0:u.key)==="header"))==null?void 0:A.contents;if(((H=y==null?void 0:y[0])==null?void 0:H.directiveLabel)==="#isMain"){let u=(m=y==null?void 0:y[0])==null?void 0:m.prop,T=(te=(ee=D==null?void 0:D.compData)==null?void 0:ee.find(_=>(_==null?void 0:_.key)==="tableContents"))==null?void 0:te.contents,O;T==null||T.forEach(_=>{var K,j;if(_.length===1)((K=_==null?void 0:_[0])==null?void 0:K[u])===(e==null?void 0:e.title)&&(O=_==null?void 0:_[0],O[u]=F);else{let d=(j=y==null?void 0:y.filter(f=>f!=="操作"))==null?void 0:j.map(f=>f==null?void 0:f.prop),V=_==null?void 0:_.filter(f=>!(f!=null&&f.id)),x=ue.getValueToObjectValue(V,d);x[u]=F,O=x}}),await z.createInsofDataApi({key:{type:"data",pageKey:(se=(le=(oe=e==null?void 0:e.path)==null?void 0:oe.split("/"))==null?void 0:le.filter((_,K)=>{var j,d;return K!==((d=(j=e==null?void 0:e.path)==null?void 0:j.split("/"))==null?void 0:d.length)-1}))==null?void 0:se.join("/"),tableId:D==null?void 0:D.id,systemKey:sessionStorage.getItem("systemKey"),createUserId:(ie=M.value)==null?void 0:ie.id,createUserLayer:((ae=M.value)==null?void 0:ae.dept)||((re=M.value)==null?void 0:re.部门名称)},value:{tableData:O}})}}await ue.newLoadingConstruct(e==null?void 0:e.path,$),l.setUpdateMenuStatus(!1),await w.verifyStructureDataToStore(),l.setActiveMenuPath((pe=(ce=(ne=e==null?void 0:e.path)==null?void 0:ne.split("/"))==null?void 0:ce.filter((D,y)=>{var u,T;return y!==((T=(u=e==null?void 0:e.path)==null?void 0:u.split("/"))==null?void 0:T.length)-1}))==null?void 0:pe.join("/")),l.setActiveTopMenuPath((he=(de=e==null?void 0:e.path)==null?void 0:de.split("/"))==null?void 0:he[0]),l.setIsRefreshMenus(!1),l.setIsRefreshMenus(!0)}else if(s==="update")E.value=e;else if(s==="delete"){let F=[];(F==null?void 0:F.length)>0&&await z.batchDeleteInsofDataApi({ids:F}),l.setUpdateMenuStatus(!1),await w.verifyStructureDataToStore(),l.setActiveMenuPath((ye=(ve=(fe=e==null?void 0:e.path)==null?void 0:fe.split("/"))==null?void 0:ve.filter(($,N)=>{var D,y;return N!==((y=(D=e==null?void 0:e.path)==null?void 0:D.split("/"))==null?void 0:y.length)-1}))==null?void 0:ye.join("/")),l.setActiveTopMenuPath((ge=(Ce=e==null?void 0:e.path)==null?void 0:Ce.split("/"))==null?void 0:ge[0]),l.setIsRefreshMenus(!1),l.setIsRefreshMenus(!0)}},Je=async(o,s)=>{var H,m,ee,te,oe,le,se,ie,ae,re,ne,ce,pe,de,he,fe,ve,ye,Ce,ge,F,$,N,D,y,u,T,O,_,K,j;let e=await z.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),p=(m=(H=e==null?void 0:e.data)==null?void 0:H.result)==null?void 0:m[0],v=(ee=p==null?void 0:p.value)==null?void 0:ee.pageData;v.compData=(te=v.compData)==null?void 0:te.map(d=>{var V,x;return(d==null?void 0:d.key)==="menuContents"&&(d.contents=be(d.contents,(V=s==null?void 0:s.path)==null?void 0:V.split("/"),s==null?void 0:s.title,(x=o==null?void 0:o.target)==null?void 0:x.value)),d}),p!=null&&p.id&&await z.updateInsofDataApi({id:p==null?void 0:p.id,value:{pageData:v}});let k=(le=(oe=s==null?void 0:s.path)==null?void 0:oe.split("/"))==null?void 0:le.filter((d,V)=>{var x,f;return V!==((f=(x=s==null?void 0:s.path)==null?void 0:x.split("/"))==null?void 0:f.length)-1}),P=k==null?void 0:k.join("/");k.push((se=o==null?void 0:o.target)==null?void 0:se.value),k=k==null?void 0:k.join("/");let B=await ue.getItemData(P,sessionStorage.getItem("systemKey"),"");if(((ce=(ne=(re=(ae=(ie=B==null?void 0:B[0])==null?void 0:ie.compData)==null?void 0:ae.find(d=>(d==null?void 0:d.key)==="header"))==null?void 0:re.contents)==null?void 0:ne[0])==null?void 0:ce.directiveLabel)==="#isMain"){let d=(ve=(fe=(he=(de=(pe=B==null?void 0:B[0])==null?void 0:pe.compData)==null?void 0:de.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:he.contents)==null?void 0:fe[0])==null?void 0:ve.prop,V=(ge=(Ce=(ye=B==null?void 0:B[0])==null?void 0:ye.compData)==null?void 0:Ce.find(g=>(g==null?void 0:g.key)==="tableContents"))==null?void 0:ge.contents,x=(D=(N=($=(F=B==null?void 0:B[0])==null?void 0:F.compData)==null?void 0:$.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:N.contents)==null?void 0:D.map(g=>g==null?void 0:g.prop),f;if(V==null||V.forEach(g=>{var Y;let X=ue.getValueToObjectValue(g,x);(X==null?void 0:X[d])===s.title&&(f=X,f[d]=(Y=o==null?void 0:o.target)==null?void 0:Y.value)}),f){let g={};for(let Y in f)Y!=="id"&&(g[Y]=f==null?void 0:f[Y]);let X=[{id:f==null?void 0:f.id,value:{tableData:g}}];await z.batchUpdateInsofDataApi({dataList:X})}}let Q=await z.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:s==null?void 0:s.path}}),A=(u=(y=Q==null?void 0:Q.data)==null?void 0:y.result)==null?void 0:u.map(d=>({id:d==null?void 0:d.id,key:d==null?void 0:d.key}));A=A==null?void 0:A.map(d=>(d.key.pageKey=k,d)),(A==null?void 0:A.length)>0&&await z.batchUpdateInsofDataApi({dataList:A}),l.setUpdateMenuStatus(!1),await w.verifyStructureDataToStore(),l.setActiveMenuPath((_=(O=(T=s==null?void 0:s.path)==null?void 0:T.split("/"))==null?void 0:O.filter((d,V)=>{var x,f;return V!==((f=(x=s==null?void 0:s.path)==null?void 0:x.split("/"))==null?void 0:f.length)-1}))==null?void 0:_.join("/")),l.setActiveTopMenuPath((j=(K=s==null?void 0:s.path)==null?void 0:K.split("/"))==null?void 0:j[0]),l.setIsRefreshMenus(!1),l.setIsRefreshMenus(!0),E.value=void 0},We=async(o,s)=>{R.type=Oe(s==null?void 0:s.operateType),await ze(s,R.type,o),W.value=o,Me.value=s},Ge=()=>{R.show=!1},Qe=o=>o==null?void 0:o.filter(s=>s.allowInherit),Xe=()=>{var e,p,v,k,P;let o;R.type==="create"&&(o=((e=W.value)==null?void 0:e.path)+"/"+Z.value[(p=Z.value)==null?void 0:p.prop]),R.type==="update"&&(o=(v=W.value)==null?void 0:v.path);const s={...W.value,config:Qe((k=W.value)==null?void 0:k.config),children:[],childMenus:[],title:Z.value[(P=Z.value)==null?void 0:P.prop],path:o};console.log("clickSubmitForm",Me.value,W.value,s),Ke(s),R.show=!1},Ye=o=>{var e,p;const s=(e=o==null?void 0:o.contents)==null?void 0:e.find(v=>v.key==="formContent");s&&(Z.value=(p=s==null?void 0:s.contents)==null?void 0:p.reduce((v,k)=>(v[k.key]=k.value,v.prop=k.key,v),{}))},G=t.ref(!1),Ze=()=>{G.value=!G.value},Te=t.ref(null);return t.watch(()=>L.value,async o=>{var s,e;if(o){await t.nextTick();const p=o==null?void 0:o[0];if(((s=p==null?void 0:p.children)==null?void 0:s.length)>0){const v=p==null?void 0:p.path;Te.value&&((e=Te.value)==null||e.openMenuRefByIndex(v))}else U!=null&&U.value?l.setJumpMenuInform(!1):l.setActiveMenuPath((p==null?void 0:p.path)??"")}},{immediate:!0}),{menuRef:Te,isCollapse:G,handleMenuCollapse:Ze,handleCompChange:Ye,dialogForm:je,dialogRenderComps:Pe,getComponents:Re,clickSubmitForm:Xe,dialogInfo:R,beforeDialogDestroy:Ge,clickMenuIcon:We,mode:q,renderMenuList:we,clickMenu:Fe,openMenu:Ne,closeMenu:$e,changeMenuStyle:J,fixElement:E,onBlur:Je,isSuperAdmin:Ie}}}}const rt=t.defineComponent(Ve()),nt=["title"],ct={key:1,class:"menu-title",style:{display:"flex",width:"100px"}},pt={key:2,class:"menu-operate-icon"},dt={class:"menu-config-wrap"},ht=["onClick"],ft={class:"module-dialog-content"};function vt(r,c,S,h,a,l){var L;const n=t.resolveComponent("ss-input"),I=t.resolveComponent("svg-icon"),M=t.resolveComponent("el-popover"),b=t.resolveComponent("ss-menu"),C=t.resolveComponent("el-button"),E=t.resolveComponent("ss-dialog");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(b,{ref:"menuRef",class:"vertical-menu",mode:r.mode,menuList:r.renderMenuList,isCollapse:r.isCollapse,uniqueOpened:!0,onClickMenu:r.clickMenu,onOpenMenu:r.openMenu,onCloseMenu:r.closeMenu},{title:t.withCtx(({menu:i})=>{var De,U,_e,Ie;return[!r.fixElement||(i==null?void 0:i.path)!==((De=r.fixElement)==null?void 0:De.path)?(t.openBlock(),t.createElementBlock("span",{key:0,title:i.title,class:"menu-title",style:t.normalizeStyle({marginRight:i!=null&&i.config&&((U=i==null?void 0:i.config)==null?void 0:U.length)>0?"25px":"1px"})},t.toDisplayString(i.title??""),13,nt)):t.createCommentVNode("",!0),r.fixElement&&(i==null?void 0:i.path)===((_e=r.fixElement)==null?void 0:_e.path)?(t.openBlock(),t.createElementBlock("span",ct,[t.createVNode(n,{value:i.title,onBlur:q=>r.onBlur(q,i)},null,8,["value","onBlur"])])):t.createCommentVNode("",!0),i!=null&&i.config&&((Ie=i==null?void 0:i.config)==null?void 0:Ie.length)>0&&r.isSuperAdmin?(t.openBlock(),t.createElementBlock("span",pt,[t.createVNode(M,{title:"",placement:"bottom-start",trigger:"hover","popper-class":"menu-operate-popover"},{reference:t.withCtx(()=>[t.createVNode(I,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})]),default:t.withCtx(()=>[t.createElementVNode("div",dt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i==null?void 0:i.config,q=>(t.openBlock(),t.createElementBlock("div",{class:"menu-config-item",key:q.id,onClick:Be=>r.clickMenuIcon(i,q)},[t.createVNode(I,{name:q==null?void 0:q.operateIcon,style:{width:"15px",height:"15px","margin-right":"8px"}},null,8,["name"]),t.createElementVNode("span",null,t.toDisplayString(q==null?void 0:q.operateType),1)],8,ht))),128))])]),_:2},1024)])):t.createCommentVNode("",!0)]}),_:1},8,["mode","menuList","isCollapse","onClickMenu","onOpenMenu","onCloseMenu"]),((L=r.renderMenuList)==null?void 0:L.length)>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fold-icon",onClick:c[0]||(c[0]=(...i)=>r.handleMenuCollapse&&r.handleMenuCollapse(...i))},[t.createVNode(I,{name:r.isCollapse?"expand":"pack",style:{width:"15px",height:"15px"}},null,8,["name"])])):t.createCommentVNode("",!0),t.createVNode(E,{class:"module-dialog",title:r.dialogInfo.title,visible:r.dialogInfo.show,width:r.dialogInfo.width,onBeforeDestroy:r.beforeDialogDestroy},{default:t.withCtx(()=>[t.createElementVNode("div",ft,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.dialogRenderComps,i=>(t.openBlock(),t.createElementBlock("div",{key:i.id},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.getComponents((i==null?void 0:i.comp)??"Input")),{itemData:i==null?void 0:i.compData,key:i==null?void 0:i.id,content:(i==null?void 0:i.contents)??[],config:i==null?void 0:i.config,onContentChange:r.handleCompChange},null,40,["itemData","content","config","onContentChange"]))]))),128))])]),footer:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(C,{id:"themeBorderButton",onClick:r.beforeDialogDestroy},{default:t.withCtx(()=>c[1]||(c[1]=[t.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),t.createVNode(C,{id:"themeButton",onClick:r.clickSubmitForm},{default:t.withCtx(()=>c[2]||(c[2]=[t.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])],64)}const Ae=at._export_sfc(rt,[["render",vt],["__scopeId","data-v-a385ba2f"]]),yt=Object.freeze(Object.defineProperty({__proto__:null,addSelectMenu:qe,default:Ae,deleteSelectMenu:xe,fixSelectMenu:be,setComponent:Ve},Symbol.toStringTag,{value:"Module"}));exports._sfc_main=Ee;exports.index=yt;exports.ssMenu=Se;exports.ssVMenu=Ae;
|
|
1
|
+
"use strict";const t=require("vue"),w=require("./index-CMUsYepp.cjs"),He=require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_07c75c98_lang-Byr5bNn8.cjs");const me=require("./request-Dl8yi2iS.cjs"),et=require("./index-B-pflqKE.cjs"),tt=require("./index-CHPMsDPK.cjs"),ot=require("vue-router"),ke=require("./index-DKh4EyHV.cjs"),z=require("./index-DmwxzDGW.cjs"),lt=require("./index-dlG87qfK.cjs"),st=require("./menuIndex-CBqMx085.cjs"),ue=require("./index-B7964G2F.cjs"),it=require("./index-DXiuTpL6.cjs"),at=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Se=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-CHPMsDPK.cjs")).then(r=>r.index));Se.install=r=>{r.component("ssMenu",Se)};const Ee={__name:"index",props:{name:String},setup(r){const c=r,S=t.computed(()=>me.Icons[c.name]);return t.onMounted(()=>{}),(h,a)=>{const l=t.resolveComponent("el-icon");return t.openBlock(),t.createBlock(l,null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(S.value)))]),_:1})}}},xe=(r,c,S=0)=>{let h=r;return h!=null&&h.every(a=>Array.isArray(a))&&(h!=null&&h.every(a=>Array.isArray(a)&&a.length===1)?h=h==null?void 0:h.filter(a=>(a==null?void 0:a[0])!==(c==null?void 0:c[S])):h=h==null?void 0:h.map(a=>{if(a!=null&&a.find(l=>l===(c==null?void 0:c[S]))&&(c==null?void 0:c.length)!==1){let l=w.cloneDeep(c),n=a==null?void 0:a.filter(C=>C!==(l==null?void 0:l[S])),I=S+1,M=xe(n,l,I),b=[];b.push(a==null?void 0:a[0]),M==null||M.forEach(C=>{b.push(C)}),a=b}return a})),h},qe=(r,c,S,h=0)=>{let a=r;return a!=null&&a.every(l=>Array.isArray(l))&&(a!=null&&a.every(l=>Array.isArray(l)&&l.length===1)?a.push([S]):a=a==null?void 0:a.map(l=>{if(l!=null&&l.find(n=>n===(c==null?void 0:c[h]))&&(c==null?void 0:c.length)!==1){let n=w.cloneDeep(c),I=l==null?void 0:l.filter(E=>E!==(n==null?void 0:n[h])),M=h+1,b=qe(I,n,S,M),C=[];C.push(l==null?void 0:l[0]),b==null||b.forEach(E=>{C.push(E)}),l=C}return l})),a},be=(r,c,S,h,a=0)=>{let l=r;return l!=null&&l.every(n=>Array.isArray(n))&&(l!=null&&l.every(n=>Array.isArray(n)&&n.length===1)?l=l==null?void 0:l.map(n=>((n==null?void 0:n[0])===S&&(n=[h]),n)):l=l==null?void 0:l.map(n=>{if(n!=null&&n.find(I=>I===(c==null?void 0:c[a]))&&(c==null?void 0:c.length)!==1){let I=w.cloneDeep(c),M=n==null?void 0:n.filter(L=>L!==(I==null?void 0:I[a])),b=a+1,C=be(M,I,S,h,b),E=[];E.push(n==null?void 0:n[0]),C==null||C.forEach(L=>{E.push(L)}),n=E}return n})),l};function Ve(r="menu"){return{name:r,components:{SvgIcon:He.SvgIcon,ssMenu:Se,DynamicIcon:Ee,ssDialog:et.ssDialog,ssInput:tt.ssInput},setup(c,{emit:S}){const h=t.defineProps({mode:{type:String,default:"vertical"}}),a=t.ref([{allowInherit:!1,operateType:"复制新增",operateIcon:"CopyAddMenu"},{allowInherit:!1,operateType:"删除",operateIcon:"DeleteMenu"},{allowInherit:!1,operateType:"修改菜单名",operateIcon:"FixedMenu"}]),l=w.useMenuState(),n=w.useModelComp(w.pinia),I=w.useLoginState(w.pinia),{loginUserInfo:M}=w.storeToRefs(I),b=t.ref(0),C=ot.useRouter(),E=t.ref(),{asideMenus:L,menuTriggerType:i,platform:De,jumpMenuInform:U}=w.storeToRefs(l),{fixMenuStatus:_e}=w.storeToRefs(n),{isSuperAdmin:Ie}=it.useRole(),q=t.computed(()=>h==null?void 0:h.mode),Be=o=>o==null?void 0:o.map(e=>{var p,v;return!(e!=null&&e.children)||((p=e==null?void 0:e.children)==null?void 0:p.length)===0?e.config=a.value:e!=null&&e.children&&((v=e==null?void 0:e.children)==null?void 0:v.length)>0&&(e.children=Be(e.children)),e}),we=t.computed(()=>{let o=[...L.value];if((o==null?void 0:o.length)===0)return C.push("/"),[];const s=Ue(o,Le.value);return s.isFlag||(o=s==null?void 0:s.data),o=o==null?void 0:o.map(e=>{var p,v;return!(e!=null&&e.children)||((p=e==null?void 0:e.children)==null?void 0:p.length)===0?e.config=a.value:e!=null&&e.children&&((v=e==null?void 0:e.children)==null?void 0:v.length)>0&&(e.children=Be(e.children)),e}),o}),Fe=async(o,s)=>{n.setRouteToChildPath(""),l.setMenuTriggerType("click"),l.setActiveMenuPath(o==null?void 0:o.path),l.setActiveAsideMenu(o),o.isRouter?C.push(o.path):C.push("/"),S("node-click",o,s)},Ne=async o=>{const s=st.findNodeByPropInTree(we.value,"path",o);l.setActiveAsideMenu(s),n.setRouteToChildPath(""),_e.value?n.setFixMenuStatus(!1):(G.value&&(i.value="open"),i.value==="click"?U.value||l.setActiveMenuPath(o):G.value||(l.setMenuTriggerType("click"),U.value||l.setActiveMenuPath(o))),o!=null&&o.startsWith("/")?C.push(o):C.push("/"),b.value++},$e=o=>{G.value||l.setActiveMenuPath(o)},J=o=>{const s=document.documentElement;o==null||o.forEach(e=>{s.style.setProperty(e.name,e.value)})};t.onMounted(()=>{b.value=1});const Le=t.computed(()=>{const o=sessionStorage.getItem("authority");return o?JSON.parse(o):[]});t.watch(()=>De.value,o=>{o==="browser"?J(ke.browserVerticalMenuClasses):o==="client"?(J(ke.clientHorizontalMenuClasses),J(ke.clientVerticalMenuClasses)):o==="three"&&(J(ke.threeHorizontalMenuClasses),J(ke.threeVerticalMenuClasses))},{immediate:!0});const Ue=(o,s)=>({isFlag:!0}),R=t.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),Re=o=>lt.getComponent(o),je=t.ref({}),Pe=t.ref([]),Z=t.ref({}),W=t.ref({}),Oe=o=>{switch(o){case"复制新增":return"create";case"修改菜单名":return"update";case"删除":return"delete"}},Me=t.ref({}),Ke=o=>{l.setCacheInputMenu({type:R.type,data:o}),l.setIsRefreshMenus(!0)},ze=async(o,s,e)=>{var p,v,k,P,B,Q,A,H,m,ee,te,oe,le,se,ie,ae,re,ne,ce,pe,de,he,fe,ve,ye,Ce,ge;if(s==="create"){let F=(e==null?void 0:e.title)+"(1)",$=(v=(p=e==null?void 0:e.path)==null?void 0:p.split("/"))==null?void 0:v.filter((D,y)=>{var u,T;return y!==((T=(u=e==null?void 0:e.path)==null?void 0:u.split("/"))==null?void 0:T.length)-1}),N=await ue.getItemData((B=(P=(k=e==null?void 0:e.path)==null?void 0:k.split("/"))==null?void 0:P.filter((D,y)=>{var u,T;return y!==((T=(u=e==null?void 0:e.path)==null?void 0:u.split("/"))==null?void 0:T.length)-1}))==null?void 0:B.join("/"),sessionStorage.getItem("systemKey"),"");if($.push(F),$=$==null?void 0:$.join("/"),(N==null?void 0:N.length)>0){let D=N==null?void 0:N[0],y=(A=(Q=D==null?void 0:D.compData)==null?void 0:Q.find(u=>(u==null?void 0:u.key)==="header"))==null?void 0:A.contents;if(((H=y==null?void 0:y[0])==null?void 0:H.directiveLabel)==="#isMain"){let u=(m=y==null?void 0:y[0])==null?void 0:m.prop,T=(te=(ee=D==null?void 0:D.compData)==null?void 0:ee.find(_=>(_==null?void 0:_.key)==="tableContents"))==null?void 0:te.contents,O;T==null||T.forEach(_=>{var K,j;if(_.length===1)((K=_==null?void 0:_[0])==null?void 0:K[u])===(e==null?void 0:e.title)&&(O=_==null?void 0:_[0],O[u]=F);else{let d=(j=y==null?void 0:y.filter(f=>f!=="操作"))==null?void 0:j.map(f=>f==null?void 0:f.prop),V=_==null?void 0:_.filter(f=>!(f!=null&&f.id)),x=ue.getValueToObjectValue(V,d);x[u]=F,O=x}}),await z.createInsofDataApi({key:{type:"data",pageKey:(se=(le=(oe=e==null?void 0:e.path)==null?void 0:oe.split("/"))==null?void 0:le.filter((_,K)=>{var j,d;return K!==((d=(j=e==null?void 0:e.path)==null?void 0:j.split("/"))==null?void 0:d.length)-1}))==null?void 0:se.join("/"),tableId:D==null?void 0:D.id,systemKey:sessionStorage.getItem("systemKey"),createUserId:(ie=M.value)==null?void 0:ie.id,createUserLayer:((ae=M.value)==null?void 0:ae.dept)||((re=M.value)==null?void 0:re.部门名称)},value:{tableData:O}})}}await ue.newLoadingConstruct(e==null?void 0:e.path,$),l.setUpdateMenuStatus(!1),await w.verifyStructureDataToStore(),l.setActiveMenuPath((pe=(ce=(ne=e==null?void 0:e.path)==null?void 0:ne.split("/"))==null?void 0:ce.filter((D,y)=>{var u,T;return y!==((T=(u=e==null?void 0:e.path)==null?void 0:u.split("/"))==null?void 0:T.length)-1}))==null?void 0:pe.join("/")),l.setActiveTopMenuPath((he=(de=e==null?void 0:e.path)==null?void 0:de.split("/"))==null?void 0:he[0]),l.setIsRefreshMenus(!1),l.setIsRefreshMenus(!0)}else if(s==="update")E.value=e;else if(s==="delete"){let F=[];(F==null?void 0:F.length)>0&&await z.batchDeleteInsofDataApi({ids:F}),l.setUpdateMenuStatus(!1),await w.verifyStructureDataToStore(),l.setActiveMenuPath((ye=(ve=(fe=e==null?void 0:e.path)==null?void 0:fe.split("/"))==null?void 0:ve.filter(($,N)=>{var D,y;return N!==((y=(D=e==null?void 0:e.path)==null?void 0:D.split("/"))==null?void 0:y.length)-1}))==null?void 0:ye.join("/")),l.setActiveTopMenuPath((ge=(Ce=e==null?void 0:e.path)==null?void 0:Ce.split("/"))==null?void 0:ge[0]),l.setIsRefreshMenus(!1),l.setIsRefreshMenus(!0)}},Je=async(o,s)=>{var H,m,ee,te,oe,le,se,ie,ae,re,ne,ce,pe,de,he,fe,ve,ye,Ce,ge,F,$,N,D,y,u,T,O,_,K,j;let e=await z.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),p=(m=(H=e==null?void 0:e.data)==null?void 0:H.result)==null?void 0:m[0],v=(ee=p==null?void 0:p.value)==null?void 0:ee.pageData;v.compData=(te=v.compData)==null?void 0:te.map(d=>{var V,x;return(d==null?void 0:d.key)==="menuContents"&&(d.contents=be(d.contents,(V=s==null?void 0:s.path)==null?void 0:V.split("/"),s==null?void 0:s.title,(x=o==null?void 0:o.target)==null?void 0:x.value)),d}),p!=null&&p.id&&await z.updateInsofDataApi({id:p==null?void 0:p.id,value:{pageData:v}});let k=(le=(oe=s==null?void 0:s.path)==null?void 0:oe.split("/"))==null?void 0:le.filter((d,V)=>{var x,f;return V!==((f=(x=s==null?void 0:s.path)==null?void 0:x.split("/"))==null?void 0:f.length)-1}),P=k==null?void 0:k.join("/");k.push((se=o==null?void 0:o.target)==null?void 0:se.value),k=k==null?void 0:k.join("/");let B=await ue.getItemData(P,sessionStorage.getItem("systemKey"),"");if(((ce=(ne=(re=(ae=(ie=B==null?void 0:B[0])==null?void 0:ie.compData)==null?void 0:ae.find(d=>(d==null?void 0:d.key)==="header"))==null?void 0:re.contents)==null?void 0:ne[0])==null?void 0:ce.directiveLabel)==="#isMain"){let d=(ve=(fe=(he=(de=(pe=B==null?void 0:B[0])==null?void 0:pe.compData)==null?void 0:de.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:he.contents)==null?void 0:fe[0])==null?void 0:ve.prop,V=(ge=(Ce=(ye=B==null?void 0:B[0])==null?void 0:ye.compData)==null?void 0:Ce.find(g=>(g==null?void 0:g.key)==="tableContents"))==null?void 0:ge.contents,x=(D=(N=($=(F=B==null?void 0:B[0])==null?void 0:F.compData)==null?void 0:$.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:N.contents)==null?void 0:D.map(g=>g==null?void 0:g.prop),f;if(V==null||V.forEach(g=>{var Y;let X=ue.getValueToObjectValue(g,x);(X==null?void 0:X[d])===s.title&&(f=X,f[d]=(Y=o==null?void 0:o.target)==null?void 0:Y.value)}),f){let g={};for(let Y in f)Y!=="id"&&(g[Y]=f==null?void 0:f[Y]);let X=[{id:f==null?void 0:f.id,value:{tableData:g}}];await z.batchUpdateInsofDataApi({dataList:X})}}let Q=await z.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:s==null?void 0:s.path}}),A=(u=(y=Q==null?void 0:Q.data)==null?void 0:y.result)==null?void 0:u.map(d=>({id:d==null?void 0:d.id,key:d==null?void 0:d.key}));A=A==null?void 0:A.map(d=>(d.key.pageKey=k,d)),(A==null?void 0:A.length)>0&&await z.batchUpdateInsofDataApi({dataList:A}),l.setUpdateMenuStatus(!1),await w.verifyStructureDataToStore(),l.setActiveMenuPath((_=(O=(T=s==null?void 0:s.path)==null?void 0:T.split("/"))==null?void 0:O.filter((d,V)=>{var x,f;return V!==((f=(x=s==null?void 0:s.path)==null?void 0:x.split("/"))==null?void 0:f.length)-1}))==null?void 0:_.join("/")),l.setActiveTopMenuPath((j=(K=s==null?void 0:s.path)==null?void 0:K.split("/"))==null?void 0:j[0]),l.setIsRefreshMenus(!1),l.setIsRefreshMenus(!0),E.value=void 0},We=async(o,s)=>{R.type=Oe(s==null?void 0:s.operateType),await ze(s,R.type,o),W.value=o,Me.value=s},Ge=()=>{R.show=!1},Qe=o=>o==null?void 0:o.filter(s=>s.allowInherit),Xe=()=>{var e,p,v,k,P;let o;R.type==="create"&&(o=((e=W.value)==null?void 0:e.path)+"/"+Z.value[(p=Z.value)==null?void 0:p.prop]),R.type==="update"&&(o=(v=W.value)==null?void 0:v.path);const s={...W.value,config:Qe((k=W.value)==null?void 0:k.config),children:[],childMenus:[],title:Z.value[(P=Z.value)==null?void 0:P.prop],path:o};console.log("clickSubmitForm",Me.value,W.value,s),Ke(s),R.show=!1},Ye=o=>{var e,p;const s=(e=o==null?void 0:o.contents)==null?void 0:e.find(v=>v.key==="formContent");s&&(Z.value=(p=s==null?void 0:s.contents)==null?void 0:p.reduce((v,k)=>(v[k.key]=k.value,v.prop=k.key,v),{}))},G=t.ref(!1),Ze=()=>{G.value=!G.value},Te=t.ref(null);return t.watch(()=>L.value,async o=>{var s,e;if(o){await t.nextTick();const p=o==null?void 0:o[0];if(((s=p==null?void 0:p.children)==null?void 0:s.length)>0){const v=p==null?void 0:p.path;Te.value&&((e=Te.value)==null||e.openMenuRefByIndex(v))}else U!=null&&U.value?l.setJumpMenuInform(!1):l.setActiveMenuPath((p==null?void 0:p.path)??"")}},{immediate:!0}),{menuRef:Te,isCollapse:G,handleMenuCollapse:Ze,handleCompChange:Ye,dialogForm:je,dialogRenderComps:Pe,getComponents:Re,clickSubmitForm:Xe,dialogInfo:R,beforeDialogDestroy:Ge,clickMenuIcon:We,mode:q,renderMenuList:we,clickMenu:Fe,openMenu:Ne,closeMenu:$e,changeMenuStyle:J,fixElement:E,onBlur:Je,isSuperAdmin:Ie}}}}const rt=t.defineComponent(Ve()),nt=["title"],ct={key:1,class:"menu-title",style:{display:"flex",width:"100px"}},pt={key:2,class:"menu-operate-icon"},dt={class:"menu-config-wrap"},ht=["onClick"],ft={class:"module-dialog-content"};function vt(r,c,S,h,a,l){var L;const n=t.resolveComponent("ss-input"),I=t.resolveComponent("svg-icon"),M=t.resolveComponent("el-popover"),b=t.resolveComponent("ss-menu"),C=t.resolveComponent("el-button"),E=t.resolveComponent("ss-dialog");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(b,{ref:"menuRef",class:"vertical-menu",mode:r.mode,menuList:r.renderMenuList,isCollapse:r.isCollapse,uniqueOpened:!0,onClickMenu:r.clickMenu,onOpenMenu:r.openMenu,onCloseMenu:r.closeMenu},{title:t.withCtx(({menu:i})=>{var De,U,_e,Ie;return[!r.fixElement||(i==null?void 0:i.path)!==((De=r.fixElement)==null?void 0:De.path)?(t.openBlock(),t.createElementBlock("span",{key:0,title:i.title,class:"menu-title",style:t.normalizeStyle({marginRight:i!=null&&i.config&&((U=i==null?void 0:i.config)==null?void 0:U.length)>0?"25px":"1px"})},t.toDisplayString(i.title??""),13,nt)):t.createCommentVNode("",!0),r.fixElement&&(i==null?void 0:i.path)===((_e=r.fixElement)==null?void 0:_e.path)?(t.openBlock(),t.createElementBlock("span",ct,[t.createVNode(n,{value:i.title,onBlur:q=>r.onBlur(q,i)},null,8,["value","onBlur"])])):t.createCommentVNode("",!0),i!=null&&i.config&&((Ie=i==null?void 0:i.config)==null?void 0:Ie.length)>0&&r.isSuperAdmin?(t.openBlock(),t.createElementBlock("span",pt,[t.createVNode(M,{title:"",placement:"bottom-start",trigger:"hover","popper-class":"menu-operate-popover"},{reference:t.withCtx(()=>[t.createVNode(I,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})]),default:t.withCtx(()=>[t.createElementVNode("div",dt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i==null?void 0:i.config,q=>(t.openBlock(),t.createElementBlock("div",{class:"menu-config-item",key:q.id,onClick:Be=>r.clickMenuIcon(i,q)},[t.createVNode(I,{name:q==null?void 0:q.operateIcon,style:{width:"15px",height:"15px","margin-right":"8px"}},null,8,["name"]),t.createElementVNode("span",null,t.toDisplayString(q==null?void 0:q.operateType),1)],8,ht))),128))])]),_:2},1024)])):t.createCommentVNode("",!0)]}),_:1},8,["mode","menuList","isCollapse","onClickMenu","onOpenMenu","onCloseMenu"]),((L=r.renderMenuList)==null?void 0:L.length)>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fold-icon",onClick:c[0]||(c[0]=(...i)=>r.handleMenuCollapse&&r.handleMenuCollapse(...i))},[t.createVNode(I,{name:r.isCollapse?"expand":"pack",style:{width:"15px",height:"15px"}},null,8,["name"])])):t.createCommentVNode("",!0),t.createVNode(E,{class:"module-dialog",title:r.dialogInfo.title,visible:r.dialogInfo.show,width:r.dialogInfo.width,onBeforeDestroy:r.beforeDialogDestroy},{default:t.withCtx(()=>[t.createElementVNode("div",ft,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.dialogRenderComps,i=>(t.openBlock(),t.createElementBlock("div",{key:i.id},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.getComponents((i==null?void 0:i.comp)??"Input")),{itemData:i==null?void 0:i.compData,key:i==null?void 0:i.id,content:(i==null?void 0:i.contents)??[],config:i==null?void 0:i.config,onContentChange:r.handleCompChange},null,40,["itemData","content","config","onContentChange"]))]))),128))])]),footer:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(C,{id:"themeBorderButton",onClick:r.beforeDialogDestroy},{default:t.withCtx(()=>c[1]||(c[1]=[t.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),t.createVNode(C,{id:"themeButton",onClick:r.clickSubmitForm},{default:t.withCtx(()=>c[2]||(c[2]=[t.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])],64)}const Ae=at._export_sfc(rt,[["render",vt],["__scopeId","data-v-a385ba2f"]]),yt=Object.freeze(Object.defineProperty({__proto__:null,addSelectMenu:qe,default:Ae,deleteSelectMenu:xe,fixSelectMenu:be,setComponent:Ve},Symbol.toStringTag,{value:"Module"}));exports._sfc_main=Ee;exports.index=yt;exports.ssMenu=Se;exports.ssVMenu=Ae;
|
|
@@ -4,14 +4,14 @@ var Ni = (e, a, l) => Up(e, typeof a != "symbol" ? a + "" : a, l);
|
|
|
4
4
|
import { ref as ie, watch as gl, nextTick as Zr, resolveComponent as Sl, createBlock as yl, openBlock as de, withCtx as qe, createElementVNode as ve, renderSlot as yn, defineComponent as ci, computed as Vl, createElementBlock as Je, createCommentVNode as Ol, normalizeStyle as ui, toDisplayString as ll, onMounted as un, onUnmounted as su, withModifiers as Jr, createVNode as Pe, createTextVNode as wl, Fragment as ql, renderList as rr, normalizeClass as Ui, onBeforeUnmount as lo, unref as Xl, createSlots as ou, mergeProps as tu, resolveDynamicComponent as Qi, shallowRef as Yc, reactive as Di, getCurrentInstance as Jc, inject as Ft, provide as Ks, toRef as qp, onBeforeMount as Xc, watchEffect as Wp, getCurrentScope as Kp, onScopeDispose as Gp, toRefs as qu, withDirectives as Yp, vShow as Jp } from "vue";
|
|
5
5
|
import { o as Xp, q as Zp, E as Il, b as Pi, l as Zc, i as Wu, a as Ku, ar as Qc, as as Qp, at as Vp, au as Tt, aq as Gu } from "./request-XJsZ4h2T.js";
|
|
6
6
|
import { e as vn, c as Oe, s as or, i as An, p as lr, b as Cn, u as Tn, j as Bn, n as Vc, a as $n, a6 as $o, a5 as uu, a3 as _o, q as ro, h as Si, a7 as wn, m as Lo, k as Oo, E as rn, t as Gs, a8 as ef, a9 as xo, aa as af, a1 as lf } from "./index-CwJwXVns.js";
|
|
7
|
-
import { S as rf, b as ii, _ as Yu, f as nf, h as ed, i as Ds, j as Go, a as Tr, k as sf, l as of, m as tf, d as cu, e as uf, c as cf, n as df, o as pf } from "./index-
|
|
7
|
+
import { S as rf, b as ii, _ as Yu, f as nf, h as ed, i as Ds, j as Go, a as Tr, k as sf, l as of, m as tf, d as cu, e as uf, c as cf, n as df, o as pf } from "./index-EfBib3zE.js";
|
|
8
8
|
import { h as Da, B as Ss, C as Ys, D as ad, g as Xr, E as ff, m as ss, F as No, t as is, G as hf, H as vf, f as yf, I as Ju, J as gf, e as Is, K as io, r as mf, k as Js, L as bf, d as Ei, c as Os, M as kf, u as du, N as Wi, O as Yo, P as _f, Q as xf, R as wf, S as Sf, s as Hn, l as Af, T as Tf, w as Ef, U as Df, V as zf, W as If, X as ld, Y as Ri, Z as As, _ as Sn, $ as es, a0 as Et, a1 as Of, o as Mf, a2 as Dt, a3 as Bf, a4 as Cf } from "./index-CrbJ9-F1.js";
|
|
9
9
|
import { _ as wr } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
import { r as $f, I as Xu, J as Lf, K as Nf, C as Rf, c as zt, u as rd, N as Fs, O as Pf, Q as id, R as nd, s as It, U as Hf, t as jf, h as Zn, B as Ff, V as Ot, Y as Zu, k as ms, l as Hs, Z as Uf, w as qf, _ as Wf, $ as Kf, a0 as sd, d as od, a1 as Qu } from "./index.vue_vue_type_style_index_0_scoped_07c75c98_lang-CxgD2Ymu.js";
|
|
11
11
|
import { s as ri } from "./index-11kpzK0A.js";
|
|
12
|
-
import { a as td, T as ud } from "./threeViewerHost-
|
|
12
|
+
import { a as td, T as ud } from "./threeViewerHost-C9P34BEh.js";
|
|
13
13
|
import { g as ws, u as Ut, c as cd, a as no, e as pu, b as Ro } from "./index-DUq4XELr.js";
|
|
14
|
-
import { a as Gf, s as Yf } from "./index-
|
|
14
|
+
import { a as Gf, s as Yf } from "./index-Zp6hfbFU.js";
|
|
15
15
|
import { u as dd } from "./index-BXZZXCDb.js";
|
|
16
16
|
/* empty css */
|
|
17
17
|
import { i as Po } from "./isString-ChmgnNIb.js";
|
|
@@ -11410,7 +11410,7 @@ ${zr}`,
|
|
|
11410
11410
|
var j, E, le, re;
|
|
11411
11411
|
if (!(p != null && p.column)) return !1;
|
|
11412
11412
|
const h = ue.value === "试验任务/任务管理", O = (c == null ? void 0 : c.compName) === "任务列表", C = ((E = (j = p == null ? void 0 : p.column) == null ? void 0 : j.filter) == null ? void 0 : E.includes("@TextRGBA")) || ((re = (le = p == null ? void 0 : p.column) == null ? void 0 : le.filter) == null ? void 0 : re.includes("@TextBackRGBA"));
|
|
11413
|
-
return h && O
|
|
11413
|
+
return h && O || C;
|
|
11414
11414
|
}, jp = (p, h) => p.find((O) => Object.values(O).some((C) => C === h));
|
|
11415
11415
|
return gl(() => ea.value, async (p) => {
|
|
11416
11416
|
if (p) {
|
|
@@ -12383,7 +12383,7 @@ ${zr}`,
|
|
|
12383
12383
|
]);
|
|
12384
12384
|
};
|
|
12385
12385
|
}
|
|
12386
|
-
}, fh = /* @__PURE__ */ wr(ph, [["__scopeId", "data-v-
|
|
12386
|
+
}, fh = /* @__PURE__ */ wr(ph, [["__scopeId", "data-v-ecef7355"]]), hh = {
|
|
12387
12387
|
key: 1,
|
|
12388
12388
|
class: "static-form-body"
|
|
12389
12389
|
}, vh = ["onClick"], yh = ["src"], gh = { key: 1 }, mh = ["src"], bh = /* @__PURE__ */ ci({
|
|
@@ -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 { W as m } from "./index-
|
|
2
|
+
import { W as m } from "./index-CtOsUUWU.js";
|
|
3
3
|
import { g as d, c as _ } from "./index-D-547T_n.js";
|
|
4
4
|
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const l = n([]), g = c(() => [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-CMUsYepp.cjs"),_=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-CMUsYepp.cjs"),_=require("./index-dlG87qfK.cjs"),r=require("./index-B1FeUhQ3.cjs"),C=require("./index-DmwxzDGW.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const m=u.useMenuState(u.pinia),{menus:c}=u.storeToRefs(m),p=l.ref([]),f=async()=>{var i,t,n,a;const e=await C.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey")}});if(((i=e==null?void 0:e.data)==null?void 0:i.type)==="success"){let o=(n=(t=e==null?void 0:e.data)==null?void 0:t.result)==null?void 0:n.map(s=>s);return o=(a=u.cloneDeep(o))==null?void 0:a.map(s=>{var d;const b=Object.values((d=s==null?void 0:s.value)==null?void 0:d.tableData);return b.unshift({id:s==null?void 0:s.id}),b}),o}else return[]};l.onMounted(async()=>{var n;const e=await f(),t=[{key:"header",contents:[{label:"主菜单名称",formType:"Select",options:(n=u.cloneDeep(c.value))==null?void 0:n.map(a=>({label:a==null?void 0:a.title,value:a==null?void 0:a.title})),prop:"主菜单名称"},{label:"隐藏三维显示",formType:"Switch",value:!1,prop:"隐藏三维显示"},{label:"操作"}]},{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}];t.push({key:"tableContents",contents:e}),p.value=t});const y=e=>{(e==null?void 0:e.buttonName)==="新增"?r.addMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="删除"?r.deleteMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="编辑"&&r.fixMenuContent(e==null?void 0:e.singleContent)};return(e,i)=>(l.openBlock(),l.createElementBlock("div",v,[l.createVNode(_.ssTable,{itemData:p.value,class:"table-content",onChange:y},null,8,["itemData"])]))}}),h=g._export_sfc(x,[["__scopeId","data-v-26f5cadc"]]);exports.default=h;
|