ss-component-new 1.1.409 → 1.1.410
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-BlnWw2UF.cjs → array-CSwVpKuJ.cjs} +1 -1
- package/dist/{array-DYN6O8FX.js → array-Dh0i46pi.js} +2 -2
- package/dist/{index-B85bXDSA.js → index-24rHtXOF.js} +9 -9
- package/dist/{index-BIx0VAmd.cjs → index-AYpwatFI.cjs} +1 -1
- package/dist/{index-B1u9OTvc.cjs → index-B2Fq07yi.cjs} +1 -1
- package/dist/{index-NinsMXKy.js → index-B5T7_Hfv.js} +5 -5
- package/dist/{index-Dyoz0XYI.js → index-BBceT0Au.js} +1 -1
- package/dist/{index-BFSwHm6l.js → index-BCL3B2W3.js} +7 -7
- package/dist/{index-uOKg3RdH.js → index-BDBTYDAm.js} +1 -1
- package/dist/{index-IEf7lfuU.js → index-BE-LZbiq.js} +4 -4
- package/dist/{index-B7R9BWIL.js → index-BGGv8YCW.js} +4 -4
- package/dist/{index-C0b0iq9P.cjs → index-BPynUUkE.cjs} +1 -1
- package/dist/{index-B5kRzXKh.js → index-BStNLZ42.js} +15 -15
- package/dist/{index-vH7S1eWi.js → index-BTw--p5k.js} +6 -6
- package/dist/{index-DgOFHsFL.js → index-BU03o3Ju.js} +2 -2
- package/dist/{index-B3wbSHDO.js → index-BVPTyDGN.js} +3 -3
- package/dist/{index-Uk-x3kad.cjs → index-BbZUyAdu.cjs} +1 -1
- package/dist/{index-CwzB_mhf.cjs → index-BjDV7Cz7.cjs} +1 -1
- package/dist/{index-linYezJX.cjs → index-BjaVXOv5.cjs} +1 -1
- package/dist/{index-0izEkI5_.cjs → index-Bm-e95WZ.cjs} +1 -1
- package/dist/{index-BxMVQ6ne.cjs → index-BrdbMKvd.cjs} +1 -1
- package/dist/{index-DvWcGV_J.js → index-BxnGHDCM.js} +3 -3
- package/dist/{index-BQ1Z88nd.cjs → index-C4OhyEpp.cjs} +1 -1
- package/dist/{index-Dn6ZaHON.cjs → index-CAPbOxeI.cjs} +1 -1
- package/dist/{index-pDXktrZo.cjs → index-CU9Do_8v.cjs} +1 -1
- package/dist/{index-RPyCjqYn.js → index-CY1519pX.js} +7 -7
- package/dist/{index-B2V8RWX1.js → index-C_Jun3tv.js} +5 -5
- package/dist/{index-VWGOUgXr.cjs → index-Cr7aGVch.cjs} +1 -1
- package/dist/{index-Chco3Yfv.cjs → index-CvB_YjeX.cjs} +1 -1
- package/dist/{index-C2wXIUte.cjs → index-Cwveu5wW.cjs} +1 -1
- package/dist/{index-CCGRC7dT.js → index-Cx0UOXzP.js} +6 -6
- package/dist/{index-BZlSEJiW.cjs → index-Cz-SX3Vr.cjs} +1 -1
- package/dist/{index-iXzJKnNR.js → index-D7zpgFH2.js} +5 -5
- package/dist/{index-DAQLkGAv.js → index-DALN1fcs.js} +5 -5
- package/dist/{index-D_UwyKlW.js → index-DCXRZxtU.js} +5 -5
- package/dist/{index-DJGDN5Rq.js → index-DEowpIN-.js} +1 -1
- package/dist/{index-CtAKAJFw.js → index-DFLwJ3KT.js} +9 -9
- package/dist/{index-BM2A912L.cjs → index-Dgf9fuDm.cjs} +1 -1
- package/dist/{index-COF5BxB7.js → index-Dle4rTtv.js} +3 -3
- package/dist/{index-DXGWycCq.cjs → index-DnhKk8wP.cjs} +1 -1
- package/dist/{index-CvI0N6fQ.cjs → index-Dp0b548D.cjs} +1 -1
- package/dist/{index-DwWO906w.cjs → index-Dw0rc4QE.cjs} +1 -1
- package/dist/{index-BuGKHABM.cjs → index-DxLAL2lm.cjs} +1 -1
- package/dist/{index-DevD2_hq.cjs → index-JaxYzGiv.cjs} +1 -1
- package/dist/{index-jx7472SF.js → index-KkjugPBD.js} +4 -4
- package/dist/{index-BEOzNYL8.js → index-Mzgmsk8P.js} +1 -1
- package/dist/{index-DB5L75w9.js → index-RZC24UKn.js} +7 -7
- package/dist/{index-BEee4bhQ.cjs → index-_wV6-Llj.cjs} +1 -1
- package/dist/{index-CLfu_Q0m.cjs → index-b6dDRbJK.cjs} +1 -1
- package/dist/{index-BcUqFyvL.js → index-b8cI-JMV.js} +4 -4
- package/dist/{index-Cya00jgC.js → index-bj7mOAVK.js} +4 -4
- package/dist/{index-D8P3mCEo.cjs → index-mnA3swxC.cjs} +1 -1
- package/dist/{index-DjtoDr_4.cjs → index-ryZW4H12.cjs} +1 -1
- package/dist/{index-D-NgE3ih.cjs → index-vX-r2aen.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DgmERWgW.cjs → index.vue_vue_type_script_setup_true_lang-OrELjG9X.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-D_9SRUkE.js → index.vue_vue_type_script_setup_true_lang-d9_SaET-.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Cd_Najv6.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-0DUFsOev.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CxwuT02u.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BP5MoIJH.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_306ecd73_lang-GE0q4q1U.cjs → index.vue_vue_type_style_index_0_scoped_306ecd73_lang-C1K4Ki_m.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_306ecd73_lang-ClIUXzmY.js → index.vue_vue_type_style_index_0_scoped_306ecd73_lang-DysCq2pc.js} +8 -8
- package/dist/{index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-Ltqx5jdD.cjs → index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-CI2nWr0Z.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-Jj4h4KQo.js → index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-CtkN_3NU.js} +15 -15
- package/dist/{login-GaUPH9Op.cjs → login-CwoRR3Nc.cjs} +1 -1
- package/dist/{login-CGnJZsZ4.js → login-jvP43w57.js} +1 -1
- package/dist/{main-BCc1jo-e.js → main-B4JZ9T9G.js} +6 -6
- package/dist/{main-BzQcGPH4.cjs → main-DI3zYE5l.cjs} +1 -1
- package/dist/{menu-B66tYXqW.cjs → menu-Bj4qq0KK.cjs} +1 -1
- package/dist/{menu-QLiQifn6.js → menu-pNM6_DJi.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +10 -10
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +1 -1
- package/dist/{threeModel-CACR8BnY.js → threeModel-B2v_doHa.js} +688 -561
- package/dist/threeModel-Bx3XHoSZ.cjs +1 -0
- package/dist/{threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-CofRoj4T.js → threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-BeUjxBt-.js} +9962 -9176
- package/dist/threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-BtFDMscB.cjs +4207 -0
- package/package.json +1 -1
- package/dist/threeModel-ByaAc9nk.cjs +0 -1
- package/dist/threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-CiPUHGr9.cjs +0 -4207
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const Q=require("vue"),o=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Cd_Najv6.cjs"),z=require("./index-BM2A912L.cjs"),E=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"},{key:"MenuName",value:"Menu"},{key:"GroupName",value:"Group"},{key:"SystemKey",value:"System"}],N=[{key:"FormDirect",value:"formFlex"},{key:"Form",value:"formContent"},{key:"FormButton",value:"formButton"},{key:"FormFlex",value:"formWrap"},{key:"TableColumns",value:"header"},{key:"TableButton",value:"extraButton"},{key:"TableLineButton",value:"rowButton"},{key:"Table",value:"tableContents"},{key:"TableIndex",value:"tableIndex"},{key:"Menus",value:"menuContents"},{key:"GroupContents",value:"groupContents"}],M=Q.ref(0),Pe=l=>{const[t,s]=l.split(/=(.+)/),e=t.replace(/['"]/g,"").trim(),r=s.replace(/^['"]|['"]$/g,"");return{key:e,value:r}},w=l=>{try{return JSON.parse(l),!0}catch{return!1}},Be=l=>l.includes("$")&&l.trim().endsWith("(")?l+")":l,_e=l=>{let t=l;const s=[];let e="";for(const r of t)r.includes("{")||e.includes("{")||r.includes("[")||e.includes("[")||r.includes("【")||e.includes("【")||r.includes("(")||e.includes("(")||r.includes("(")||e.includes("(")||r.includes("/*")||e.includes("/*")?(e+=r.trim(),o.cloneDeep(e).split("{").length-1===o.cloneDeep(e).split("}").length-1&&o.cloneDeep(e).split("【").length-1===o.cloneDeep(e).split("】").length-1&&o.cloneDeep(e).split("[").length-1===o.cloneDeep(e).split("]").length-1&&o.cloneDeep(e).split("(").length-1===o.cloneDeep(e).split(")").length-1&&o.cloneDeep(e).split("(").length-1===o.cloneDeep(e).split(")").length-1&&o.cloneDeep(e).split("/*").length-1===o.cloneDeep(e).split("*/").length-1&&(s.push(e),e="")):s.push(r.trim());return s==null?void 0:s.filter(r=>r.includes("{"))},Ge=l=>{var s;let t=[];return(s=_e(l.slice(1,-1)))==null||s.forEach(e=>{var n,c,a,f;let r=((c=(n=e.slice(1,-1))==null?void 0:n.split(","))==null?void 0:c.length)??1;(f=(a=e.slice(1,-1))==null?void 0:a.split(","))==null||f.forEach(p=>{var A,h,j,b,$,i,y,m,g,T,F,I,P;let u=p==null?void 0:p.split(":"),d=u!=null&&u[0]?(u==null?void 0:u[1].split("$").length)-1===1?((A=u==null?void 0:u[0])==null?void 0:A.replace(/^"(.*)"$/,"$1"))+((h=u==null?void 0:u[1])==null?void 0:h.replace(/^"(.*)"$/,"$1")):Array.isArray((b=(j=u==null?void 0:u[1])==null?void 0:j.replace(/^"(.*)"$/,"$1"))==null?void 0:b.split("("))&&((y=(i=($=u==null?void 0:u[1])==null?void 0:$.replace(/^"(.*)"$/,"$1"))==null?void 0:i.split("("))==null?void 0:y.length)>1?((m=u==null?void 0:u[0])==null?void 0:m.replace(/^"(.*)"$/,"$1"))+((F=(T=(g=u==null?void 0:u[1])==null?void 0:g.replace(/^"(.*)"$/,"$1"))==null?void 0:T.split("("))==null?void 0:F[0])+"()":(I=u==null?void 0:u[0])==null?void 0:I.replace(/^"(.*)"$/,"$1"):"",k=(u==null?void 0:u[1].split("$").length)-1===0?(P=u==null?void 0:u[1])==null?void 0:P.replace(/^"(.*)"$/,"$1"):"";M.value++,t.push({id:M.value,key:d,value:k,width:r,extraContent:u==null?void 0:u[1]})})}),t},De=l=>{var t,s;try{const e=l.replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",").replace(/:/g,":").replace(/:\s*(?=,|}|$)/g,': ""');if(o.cloneDeep(e).split("{").length-1>1){let r=o.cloneDeep(e).replace(/^\{(.*)\}$/,"[$1]");if(w(r)&&!r.includes("$")||(r=r.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g,'"$1$$$2"')),w(r)){const n=JSON.parse(r);let c=[];return n==null||n.forEach(a=>{var f;(f=Object.entries(o.cloneDeep(a)))==null||f.forEach(p=>{M.value++,c.push({id:M.value,key:(p==null?void 0:p[0])??"",value:(p==null?void 0:p[1])===""?"":p==null?void 0:p[1],width:Object.keys(o.cloneDeep(a)).length})})}),c}else return e.trim().startsWith("{{")?Ge(e.trim()):se(r)}else if(w(e)){const r=JSON.parse(e);return Object.entries(r).map(([n,c])=>(M.value++,{id:M.value,key:n,value:c===""?"":c,width:1}))}else return((t=se(e))==null?void 0:t.length)===0?e:(s=se(e))==null?void 0:s.map(r=>({label:r.label,method:Be(r.method)}))}catch(e){return console.error("转换失败:",e),[]}},se=l=>{l=l.trim().replace(/^\{|\}$/g,"").trim();const t=[];let s=0;for(;s<l.length;){const e=l.slice(s).match(/^\s*"([^"]+)"\s*:\s*/);if(!e)break;const r=e[1];s+=e[0].length;let n="",c=0,a=!1,f="";for(let p=s;p<l.length;p++){const u=l[p];if((u==='"'||u==="'")&&!a?(a=!0,f=u):u===f&&a&&(a=!1,f=""),!a&&((u==="{"||u==="("||u==="[")&&c++,(u==="}"||u===")"||u==="]")&&c--,u===","&&c===0||p===l.length-1)){n=l.slice(s,p+1).trim(),s=p+1;break}}t.push({label:r,method:n})}return t},We=(l,t)=>{try{if(E!=null&&E.find(s=>(s==null?void 0:s.key)===t))return l.replace(/['"]/g,"").trim();if(o.cloneDeep(l).split("[").length-1>1){const s=o.cloneDeep(l).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(s)}else{const s=o.cloneDeep(l).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",");if(w(s)){const e=JSON.parse(s);return Array.isArray(e)?e.map(r=>({label:r})):e}else return De(o.cloneDeep(l))}}catch(s){return console.error("解析失败:",s),l}},Le=l=>({[l==null?void 0:l.key]:We(l==null?void 0:l.value,l==null?void 0:l.key)}),ze=l=>{try{if(o.cloneDeep(l).split("[").length-1>1){const t=o.cloneDeep(l).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(t)}else return JSON.parse(o.cloneDeep(l).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",")).map(s=>({label:s}))}catch(t){return console.error("解析失败:",t),l}},Ze=l=>{const t=l.match(/\(([^)]+)\)/);return t?t[1]:""},He=l=>{const t=l.match(/^([^(]+)\s*\(/);return t?t[1].trim():l},me=l=>l.replace(/'/g,"").replace(/"/g,"").replace(/{|}/g,"").split(":").map(t=>t.trim()).filter(t=>t).join("/"),qe=l=>{var c,a;let t=[],s=[];const e=(c=o.cloneDeep(l))==null?void 0:c.map(f=>f==null?void 0:f.key),r=[...new Set((a=o.cloneDeep(e))==null?void 0:a.map(f=>Ze(f)))];r==null||r.forEach(f=>{let p=l==null?void 0:l.filter(k=>k.key.includes(f));p==null||p.forEach(k=>{k!=null&&k.key.includes("Menus")&&(t.push({key:"GroupName",value:me(k==null?void 0:k.value)}),s.push(me(k==null?void 0:k.value)))});let u=l==null?void 0:l.filter(k=>k.key.includes(f)&&!(k!=null&&k.key.includes("Menus")));u=u==null?void 0:u.map(k=>(k.key=He(k.key),k));const d={key:"GroupContents",value:u};t.push(d)});const n={key:"Menus",value:s};return t.unshift(n),t},Ce=l=>{var t,s;if(Array.isArray(Object.keys(l))&&((t=Object.keys(l))==null?void 0:t.length)>0){let e=[];return(s=Object.entries(l))==null||s.forEach(([r,n])=>{var a,f;let c=[];if(c.push(r),((a=Object.keys(n))==null?void 0:a.length)>0){let p=[];(f=Ce(n))==null||f.forEach(u=>{p.push(u)}),p==null||p.forEach(u=>{c.push(u)})}e.push(c)}),e}},Me=(l,t)=>{var e;let s=t;return Array.isArray(Object.keys(l))&&((e=Object.entries(l))==null||e.forEach(([r,n])=>{let c=[r];if(typeof n=="object"&&n!==null){let a=Ce(n);a==null||a.forEach(f=>{c.push(f)})}s.push(c)})),s},Qe=l=>{const t={};return l.forEach(e=>{const r=e.split("/");let n=t;r.forEach(c=>{n[c]||(n[c]={}),n=n[c]})}),Me(t,[])},ce=l=>Qe(l),Re=l=>{var t,s,e,r,n,c,a,f;try{const p=le((s=(t=o.cloneDeep(l))==null?void 0:t.replace("(","("))==null?void 0:s.replace(")",")")),u=(r=(e=o.cloneDeep(p))==null?void 0:e.filter(h=>!h.includes("/*")))==null?void 0:r.map(h=>Pe(h)),d=qe(u),k=[];if(((n=d==null?void 0:d.find(h=>(h==null?void 0:h.key)==="Menus"))==null?void 0:n.value.length)===0)return!1;(c=o.cloneDeep(d))==null||c.forEach(h=>{var j,b,$,i,y;E!=null&&E.find(m=>{var g,T;return((g=m==null?void 0:m.key)==null?void 0:g.toUpperCase())===((T=h==null?void 0:h.key)==null?void 0:T.toUpperCase())})?k.push({comp:((j=E==null?void 0:E.find(m=>{var g,T;return((g=m==null?void 0:m.key)==null?void 0:g.toUpperCase())===((T=h==null?void 0:h.key)==null?void 0:T.toUpperCase())}))==null?void 0:j.value)??"",name:(b=h==null?void 0:h.value)==null?void 0:b.replace(/[’]|[‘]|[']/g,""),compData:[]}):N!=null&&N.find(m=>{var g,T;return((g=m==null?void 0:m.key)==null?void 0:g.toUpperCase())===((T=h==null?void 0:h.key)==null?void 0:T.toUpperCase())})&&((k==null?void 0:k.length)===0&&($=h.key)!=null&&$.includes("Menus")&&k.push({comp:"Menu",name:"",compData:[]}),(i=k==null?void 0:k[(k==null?void 0:k.length)-1])!=null&&i.compData&&k[(k==null?void 0:k.length)-1].compData.push({key:(y=N==null?void 0:N.find(m=>{var g,T;return((g=m==null?void 0:m.key)==null?void 0:g.toUpperCase())===((T=h==null?void 0:h.key)==null?void 0:T.toUpperCase())}))==null?void 0:y.value,contents:h==null?void 0:h.value}))});let A=(a=o.cloneDeep(k))==null?void 0:a.map(h=>{var j;return h!=null&&h.compData&&(h.compData=(j=h==null?void 0:h.compData)==null?void 0:j.map(b=>{var $,i,y,m,g,T,F,I,P,_,G;if((b==null?void 0:b.key)==="formFlex")b.contents=((i=($=b.contents)==null?void 0:$.replace(/[’]|[‘]|[']/g,""))==null?void 0:i.toUpperCase())!=="Vertical".toUpperCase();else if((b==null?void 0:b.key)==="groupContents")b.contents=(y=o.cloneDeep(b.contents))==null?void 0:y.map(W=>Le(o.cloneDeep(W)));else if(Array.isArray(b==null?void 0:b.contents))b.contents=ce(b.contents);else if(((g=(m=b==null?void 0:b.contents)==null?void 0:m.trim())!=null&&g.startsWith("[")||(F=(T=b.contents)==null?void 0:T.trim())!=null&&F.startsWith("【"))&&((P=(I=b.contents)==null?void 0:I.trim())!=null&&P.endsWith("]")||(G=(_=b.contents)==null?void 0:_.trim())!=null&&G.endsWith("】")))b.contents=ze(o.cloneDeep(b.contents));else{if(!b.contents)return;b.contents=De(o.cloneDeep(b.contents))}return b})),h});return A=(f=o.cloneDeep(A))==null?void 0:f.map(h=>{var j;return(h==null?void 0:h.comp)==="Group"&&(h.compData=(j=h.compData)==null?void 0:j.map(b=>{var i;let $=[];return(i=b.contents)==null||i.forEach(y=>{var m,g,T,F,I,P,_,G,W,x,O,C;if(E!=null&&E.find(D=>{var J,U,S;return((J=D==null?void 0:D.key)==null?void 0:J.toUpperCase())===((S=(U=Object.keys(y))==null?void 0:U[0])==null?void 0:S.toUpperCase())}))$.push({comp:(m=E==null?void 0:E.find(D=>{var J,U,S;return((J=D==null?void 0:D.key)==null?void 0:J.toUpperCase())===((S=(U=Object.keys(y))==null?void 0:U[0])==null?void 0:S.toUpperCase())}))==null?void 0:m.value,name:(T=(g=Object.values(y))==null?void 0:g[0])==null?void 0:T.replace(/[’]|[‘]|[']/g,""),compData:[]});else if(N!=null&&N.find(D=>{var J,U,S;return((J=D==null?void 0:D.key)==null?void 0:J.toUpperCase())===((S=(U=Object.keys(y))==null?void 0:U[0])==null?void 0:S.toUpperCase())})){if(($==null?void 0:$.length)===0)return;(F=$==null?void 0:$[($==null?void 0:$.length)-1])!=null&&F.compData&&$[($==null?void 0:$.length)-1].compData.push({key:(I=N==null?void 0:N.find(D=>{var J,U,S;return((J=D==null?void 0:D.key)==null?void 0:J.toUpperCase())===((S=(U=Object.keys(y))==null?void 0:U[0])==null?void 0:S.toUpperCase())}))==null?void 0:I.value,contents:(P=Object.values(y))==null?void 0:P[0]})}else if((G=(_=Object.keys(y))==null?void 0:_[0])!=null&&G.includes("$")){const D=(x=(W=Object.keys(o.cloneDeep(y)))==null?void 0:W[0])==null?void 0:x.split("$");$[($==null?void 0:$.length)-1].compData.push({key:(O=N==null?void 0:N.find(J=>{var U,S;return((U=J==null?void 0:J.key)==null?void 0:U.toUpperCase())===((S=D==null?void 0:D[0])==null?void 0:S.toUpperCase())}))==null?void 0:O.value,contents:(C=Object.values(y))==null?void 0:C[0],selectLabel:D==null?void 0:D[1]})}return y}),b.contents=$,b})),h}),A}catch{return!1}},de=Q.ref(0),Oe=l=>{const t=[];let s=null;for(let e=0;e<l.length;e++){const r=l[e];if(Array.isArray(r))s&&(s.children=Oe(r));else{const n={label:r};t.push(n),s=n}}return t},Te=l=>{let t=0;for(const s of l)t++,s.children&&(t+=Te(s.children));return t},xe=(l,t,s=[])=>{let e=0;for(const r of t){if(e>=l.length)break;const n=[...l[e]];if(s.push(n),e++,r.children&&r.children.length>0){const c=[];xe(l.slice(e),r.children,c),c.length>0&&(n.push(c),e+=Te(r.children))}}return s},Xe=(l,t)=>{let s=[];return l==null||l.forEach(r=>{r.some(n=>Array.isArray(n))?s.push(...r):s.push(r)}),xe(s,t)},ne=l=>{const t={label:l[0].trim()};if(l.length>1){const s=l.slice(1);s.length===1&&Array.isArray(s[0])?t.children=s[0].map(e=>Array.isArray(e)?ne(e):{label:e.trim()}):t.children=s.map(e=>Array.isArray(e)?ne(e):{label:e.trim()})}return t},ke=l=>{let t=l.replace(/:([^{}\[\],\s]+)([,\]}])/g,':"$1"$2');return t=t.replace(/:}(?=,|]|}|$)/g,':""}'),t=t.replace(/:,(?=\s*")/g,':"",'),t=t.replace(/(https?|HTTPS?):"\/\/([^"]+)"/gi,(s,e,r)=>`"${e}://${r}"`),t=t.replace(/(\[|\s|,)((?:https?|HTTPS?):\/\/[^\s,\]]+)(\]|,|$)/gi,'$1"$2"$3'),t},Ye=l=>{var s;return l.some(e=>!Array.isArray(e))?l:(s=o.cloneDeep(l))==null?void 0:s.map(e=>{let r=[];return e.some(n=>Array.isArray(n))?e==null||e.forEach(n=>{Array.isArray(n)&&r.push(ne(n))}):e.some(n=>n.includes("["))?r.push(e):r=e.map(n=>({label:n.trim()})),r})},Je=(l,t,s)=>{let e=l,r=s,n=t;return n.children&&(Array.isArray(r[r.length-1])?r[r.length-1].push(e[0]):r.push(e[0]),e.shift(),n=n.children),Array.isArray(n)&&n.forEach(c=>{if(c.children){const a=Je(e,c,r);r=a[0],e=a[1]}}),[r,e]},Ke=(l,t)=>{let s=l,e=[];return t.length>0?t==null||t.forEach(r=>{let n=s==null?void 0:s[0];s.shift();const c=Je(o.cloneDeep(s),r,n);n=c[0],s=c[1],e.push(n)}):e=s,e},ae=(l,t)=>{const s=Ye(o.cloneDeep(l));return Ke(s,t)},Ve=l=>{const t=[];let s=0;const e=l.length;for(;s<e;){const r=l[s];r.key==="tableColumns"&&s+1<e&&l[s+1].key==="tableContents"?(t.push({comp:"Table",compData:[r,l[s+1]],name:""}),s+=2):(t.push(r),s+=1)}return t},Ne=l=>ae([l],[]),ee=l=>{const t=[];return l==null||l.forEach(s=>s==null?void 0:s.forEach(r=>{var n,c;de.value++,t.push({id:de.value,key:(n=Object.keys(r))==null?void 0:n[0],value:(c=Object.values(r))==null?void 0:c[0],width:s.length})})),t},ge=l=>{let t=Ve(l);return t=t==null?void 0:t.map(s=>{var e,r,n,c;if(s.comp==="Table")(e=s.compData)!=null&&e.find(a=>(a==null?void 0:a.key)==="header")||(s.compData=(r=s.compData)==null?void 0:r.map(a=>(a.key==="tableColumns"?a={key:"header",contents:ae(a.value,[])}:a={key:a.key,contents:a.value},a)),s.compData.push({key:"extraButton",contents:[{label:"新增"}]}),s.compData.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}));else if(s.key==="form"){const a=(n=s==null?void 0:s.value)==null?void 0:n.map(f=>(Array.isArray(f)||(f=[f]),f));s={comp:"Form",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:ee(a)}],name:""}}else if(s.key==="formTop"){const a=(c=s==null?void 0:s.value)==null?void 0:c.map(f=>(Array.isArray(f)||(f=[f]),f));s={comp:"FormTop",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:ee(a)},{key:"enableWrap",contents:!0},{key:"formButton",contents:[{label:"查询"},{label:"重置"}]}],name:""}}return s}),t},we=(l,t)=>{var a,f,p,u,d,k;const s=[],e=Oe((f=(a=l==null?void 0:l.find(A=>A.key==="tableIndex"))==null?void 0:a.value)==null?void 0:f[0]);s.push({key:"tableIndexColumn",contents:t}),s.push({key:"tableIndex",contents:e});let r=[];const n=(p=l==null?void 0:l.find(A=>A.key==="tableColumns"))==null?void 0:p.value;n.length===1&&!(n!=null&&n[0].some(A=>Array.isArray(A)))?r=(u=n==null?void 0:n[0])==null?void 0:u.map(A=>({label:A})):r=ae((d=l==null?void 0:l.find(A=>A.key==="tableColumns"))==null?void 0:d.value,e),s.push({key:"header",contents:r});const c=Xe((k=l==null?void 0:l.find(A=>A.key==="tableContents"))==null?void 0:k.value,e);return s.push({key:"tableContents",contents:c}),s.push({key:"extraButton",contents:[{label:"新增"}]}),s.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}),s},Ee=l=>l.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g,(t,s,e)=>{const r=Ee(e);return`"${s}",${r}`}),K=l=>{const t=l.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g,'"$1",$2');return Ee(t).replace(/^"(.*)"$/,"$1")},ve=l=>{const t=new Set;return l.filter(s=>{const e=JSON.stringify(s);return t.has(e)?!1:t.add(e)})},be=l=>{var s;let t=[];return(s=o.cloneDeep(l))==null||s.forEach(e=>{var r;(r=e.contents)==null||r.forEach(n=>{t.push(n)})}),t=ve(t),t.push({label:"操作"}),[t]},el=(l,t)=>l.reduce((s,e,r)=>{const n=Math.floor(r/t);return s[n]||(s[n]=[]),s[n].push(e),s},[]),je=l=>l.reduce((t,s)=>s.children&&s.children.length>0?t+je(s.children):t+1,0),ll=(l,t)=>{var e;let s=[];return(e=el(l,je(t==null?void 0:t[0])-1))==null||e.forEach(r=>{let n=[];r.forEach(c=>{var a;Array.isArray(c.contents)?(a=c.contents)==null||a.forEach(f=>{n.push(f)}):n.push(c.contents)}),s.push(n)}),[s]},sl=["方法体","输入","输出"],$e=Q.ref(1),le=l=>{let t;l.replaceAll(" ",`\r
|
|
1
|
+
"use strict";const Q=require("vue"),o=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-0DUFsOev.cjs"),z=require("./index-Dgf9fuDm.cjs"),E=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"},{key:"MenuName",value:"Menu"},{key:"GroupName",value:"Group"},{key:"SystemKey",value:"System"}],N=[{key:"FormDirect",value:"formFlex"},{key:"Form",value:"formContent"},{key:"FormButton",value:"formButton"},{key:"FormFlex",value:"formWrap"},{key:"TableColumns",value:"header"},{key:"TableButton",value:"extraButton"},{key:"TableLineButton",value:"rowButton"},{key:"Table",value:"tableContents"},{key:"TableIndex",value:"tableIndex"},{key:"Menus",value:"menuContents"},{key:"GroupContents",value:"groupContents"}],M=Q.ref(0),Pe=l=>{const[t,s]=l.split(/=(.+)/),e=t.replace(/['"]/g,"").trim(),r=s.replace(/^['"]|['"]$/g,"");return{key:e,value:r}},w=l=>{try{return JSON.parse(l),!0}catch{return!1}},Be=l=>l.includes("$")&&l.trim().endsWith("(")?l+")":l,_e=l=>{let t=l;const s=[];let e="";for(const r of t)r.includes("{")||e.includes("{")||r.includes("[")||e.includes("[")||r.includes("【")||e.includes("【")||r.includes("(")||e.includes("(")||r.includes("(")||e.includes("(")||r.includes("/*")||e.includes("/*")?(e+=r.trim(),o.cloneDeep(e).split("{").length-1===o.cloneDeep(e).split("}").length-1&&o.cloneDeep(e).split("【").length-1===o.cloneDeep(e).split("】").length-1&&o.cloneDeep(e).split("[").length-1===o.cloneDeep(e).split("]").length-1&&o.cloneDeep(e).split("(").length-1===o.cloneDeep(e).split(")").length-1&&o.cloneDeep(e).split("(").length-1===o.cloneDeep(e).split(")").length-1&&o.cloneDeep(e).split("/*").length-1===o.cloneDeep(e).split("*/").length-1&&(s.push(e),e="")):s.push(r.trim());return s==null?void 0:s.filter(r=>r.includes("{"))},Ge=l=>{var s;let t=[];return(s=_e(l.slice(1,-1)))==null||s.forEach(e=>{var n,c,a,f;let r=((c=(n=e.slice(1,-1))==null?void 0:n.split(","))==null?void 0:c.length)??1;(f=(a=e.slice(1,-1))==null?void 0:a.split(","))==null||f.forEach(p=>{var A,h,j,b,$,i,y,m,g,T,F,I,P;let u=p==null?void 0:p.split(":"),d=u!=null&&u[0]?(u==null?void 0:u[1].split("$").length)-1===1?((A=u==null?void 0:u[0])==null?void 0:A.replace(/^"(.*)"$/,"$1"))+((h=u==null?void 0:u[1])==null?void 0:h.replace(/^"(.*)"$/,"$1")):Array.isArray((b=(j=u==null?void 0:u[1])==null?void 0:j.replace(/^"(.*)"$/,"$1"))==null?void 0:b.split("("))&&((y=(i=($=u==null?void 0:u[1])==null?void 0:$.replace(/^"(.*)"$/,"$1"))==null?void 0:i.split("("))==null?void 0:y.length)>1?((m=u==null?void 0:u[0])==null?void 0:m.replace(/^"(.*)"$/,"$1"))+((F=(T=(g=u==null?void 0:u[1])==null?void 0:g.replace(/^"(.*)"$/,"$1"))==null?void 0:T.split("("))==null?void 0:F[0])+"()":(I=u==null?void 0:u[0])==null?void 0:I.replace(/^"(.*)"$/,"$1"):"",k=(u==null?void 0:u[1].split("$").length)-1===0?(P=u==null?void 0:u[1])==null?void 0:P.replace(/^"(.*)"$/,"$1"):"";M.value++,t.push({id:M.value,key:d,value:k,width:r,extraContent:u==null?void 0:u[1]})})}),t},De=l=>{var t,s;try{const e=l.replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",").replace(/:/g,":").replace(/:\s*(?=,|}|$)/g,': ""');if(o.cloneDeep(e).split("{").length-1>1){let r=o.cloneDeep(e).replace(/^\{(.*)\}$/,"[$1]");if(w(r)&&!r.includes("$")||(r=r.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g,'"$1$$$2"')),w(r)){const n=JSON.parse(r);let c=[];return n==null||n.forEach(a=>{var f;(f=Object.entries(o.cloneDeep(a)))==null||f.forEach(p=>{M.value++,c.push({id:M.value,key:(p==null?void 0:p[0])??"",value:(p==null?void 0:p[1])===""?"":p==null?void 0:p[1],width:Object.keys(o.cloneDeep(a)).length})})}),c}else return e.trim().startsWith("{{")?Ge(e.trim()):se(r)}else if(w(e)){const r=JSON.parse(e);return Object.entries(r).map(([n,c])=>(M.value++,{id:M.value,key:n,value:c===""?"":c,width:1}))}else return((t=se(e))==null?void 0:t.length)===0?e:(s=se(e))==null?void 0:s.map(r=>({label:r.label,method:Be(r.method)}))}catch(e){return console.error("转换失败:",e),[]}},se=l=>{l=l.trim().replace(/^\{|\}$/g,"").trim();const t=[];let s=0;for(;s<l.length;){const e=l.slice(s).match(/^\s*"([^"]+)"\s*:\s*/);if(!e)break;const r=e[1];s+=e[0].length;let n="",c=0,a=!1,f="";for(let p=s;p<l.length;p++){const u=l[p];if((u==='"'||u==="'")&&!a?(a=!0,f=u):u===f&&a&&(a=!1,f=""),!a&&((u==="{"||u==="("||u==="[")&&c++,(u==="}"||u===")"||u==="]")&&c--,u===","&&c===0||p===l.length-1)){n=l.slice(s,p+1).trim(),s=p+1;break}}t.push({label:r,method:n})}return t},We=(l,t)=>{try{if(E!=null&&E.find(s=>(s==null?void 0:s.key)===t))return l.replace(/['"]/g,"").trim();if(o.cloneDeep(l).split("[").length-1>1){const s=o.cloneDeep(l).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(s)}else{const s=o.cloneDeep(l).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",");if(w(s)){const e=JSON.parse(s);return Array.isArray(e)?e.map(r=>({label:r})):e}else return De(o.cloneDeep(l))}}catch(s){return console.error("解析失败:",s),l}},Le=l=>({[l==null?void 0:l.key]:We(l==null?void 0:l.value,l==null?void 0:l.key)}),ze=l=>{try{if(o.cloneDeep(l).split("[").length-1>1){const t=o.cloneDeep(l).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(t)}else return JSON.parse(o.cloneDeep(l).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",")).map(s=>({label:s}))}catch(t){return console.error("解析失败:",t),l}},Ze=l=>{const t=l.match(/\(([^)]+)\)/);return t?t[1]:""},He=l=>{const t=l.match(/^([^(]+)\s*\(/);return t?t[1].trim():l},me=l=>l.replace(/'/g,"").replace(/"/g,"").replace(/{|}/g,"").split(":").map(t=>t.trim()).filter(t=>t).join("/"),qe=l=>{var c,a;let t=[],s=[];const e=(c=o.cloneDeep(l))==null?void 0:c.map(f=>f==null?void 0:f.key),r=[...new Set((a=o.cloneDeep(e))==null?void 0:a.map(f=>Ze(f)))];r==null||r.forEach(f=>{let p=l==null?void 0:l.filter(k=>k.key.includes(f));p==null||p.forEach(k=>{k!=null&&k.key.includes("Menus")&&(t.push({key:"GroupName",value:me(k==null?void 0:k.value)}),s.push(me(k==null?void 0:k.value)))});let u=l==null?void 0:l.filter(k=>k.key.includes(f)&&!(k!=null&&k.key.includes("Menus")));u=u==null?void 0:u.map(k=>(k.key=He(k.key),k));const d={key:"GroupContents",value:u};t.push(d)});const n={key:"Menus",value:s};return t.unshift(n),t},Ce=l=>{var t,s;if(Array.isArray(Object.keys(l))&&((t=Object.keys(l))==null?void 0:t.length)>0){let e=[];return(s=Object.entries(l))==null||s.forEach(([r,n])=>{var a,f;let c=[];if(c.push(r),((a=Object.keys(n))==null?void 0:a.length)>0){let p=[];(f=Ce(n))==null||f.forEach(u=>{p.push(u)}),p==null||p.forEach(u=>{c.push(u)})}e.push(c)}),e}},Me=(l,t)=>{var e;let s=t;return Array.isArray(Object.keys(l))&&((e=Object.entries(l))==null||e.forEach(([r,n])=>{let c=[r];if(typeof n=="object"&&n!==null){let a=Ce(n);a==null||a.forEach(f=>{c.push(f)})}s.push(c)})),s},Qe=l=>{const t={};return l.forEach(e=>{const r=e.split("/");let n=t;r.forEach(c=>{n[c]||(n[c]={}),n=n[c]})}),Me(t,[])},ce=l=>Qe(l),Re=l=>{var t,s,e,r,n,c,a,f;try{const p=le((s=(t=o.cloneDeep(l))==null?void 0:t.replace("(","("))==null?void 0:s.replace(")",")")),u=(r=(e=o.cloneDeep(p))==null?void 0:e.filter(h=>!h.includes("/*")))==null?void 0:r.map(h=>Pe(h)),d=qe(u),k=[];if(((n=d==null?void 0:d.find(h=>(h==null?void 0:h.key)==="Menus"))==null?void 0:n.value.length)===0)return!1;(c=o.cloneDeep(d))==null||c.forEach(h=>{var j,b,$,i,y;E!=null&&E.find(m=>{var g,T;return((g=m==null?void 0:m.key)==null?void 0:g.toUpperCase())===((T=h==null?void 0:h.key)==null?void 0:T.toUpperCase())})?k.push({comp:((j=E==null?void 0:E.find(m=>{var g,T;return((g=m==null?void 0:m.key)==null?void 0:g.toUpperCase())===((T=h==null?void 0:h.key)==null?void 0:T.toUpperCase())}))==null?void 0:j.value)??"",name:(b=h==null?void 0:h.value)==null?void 0:b.replace(/[’]|[‘]|[']/g,""),compData:[]}):N!=null&&N.find(m=>{var g,T;return((g=m==null?void 0:m.key)==null?void 0:g.toUpperCase())===((T=h==null?void 0:h.key)==null?void 0:T.toUpperCase())})&&((k==null?void 0:k.length)===0&&($=h.key)!=null&&$.includes("Menus")&&k.push({comp:"Menu",name:"",compData:[]}),(i=k==null?void 0:k[(k==null?void 0:k.length)-1])!=null&&i.compData&&k[(k==null?void 0:k.length)-1].compData.push({key:(y=N==null?void 0:N.find(m=>{var g,T;return((g=m==null?void 0:m.key)==null?void 0:g.toUpperCase())===((T=h==null?void 0:h.key)==null?void 0:T.toUpperCase())}))==null?void 0:y.value,contents:h==null?void 0:h.value}))});let A=(a=o.cloneDeep(k))==null?void 0:a.map(h=>{var j;return h!=null&&h.compData&&(h.compData=(j=h==null?void 0:h.compData)==null?void 0:j.map(b=>{var $,i,y,m,g,T,F,I,P,_,G;if((b==null?void 0:b.key)==="formFlex")b.contents=((i=($=b.contents)==null?void 0:$.replace(/[’]|[‘]|[']/g,""))==null?void 0:i.toUpperCase())!=="Vertical".toUpperCase();else if((b==null?void 0:b.key)==="groupContents")b.contents=(y=o.cloneDeep(b.contents))==null?void 0:y.map(W=>Le(o.cloneDeep(W)));else if(Array.isArray(b==null?void 0:b.contents))b.contents=ce(b.contents);else if(((g=(m=b==null?void 0:b.contents)==null?void 0:m.trim())!=null&&g.startsWith("[")||(F=(T=b.contents)==null?void 0:T.trim())!=null&&F.startsWith("【"))&&((P=(I=b.contents)==null?void 0:I.trim())!=null&&P.endsWith("]")||(G=(_=b.contents)==null?void 0:_.trim())!=null&&G.endsWith("】")))b.contents=ze(o.cloneDeep(b.contents));else{if(!b.contents)return;b.contents=De(o.cloneDeep(b.contents))}return b})),h});return A=(f=o.cloneDeep(A))==null?void 0:f.map(h=>{var j;return(h==null?void 0:h.comp)==="Group"&&(h.compData=(j=h.compData)==null?void 0:j.map(b=>{var i;let $=[];return(i=b.contents)==null||i.forEach(y=>{var m,g,T,F,I,P,_,G,W,x,O,C;if(E!=null&&E.find(D=>{var J,U,S;return((J=D==null?void 0:D.key)==null?void 0:J.toUpperCase())===((S=(U=Object.keys(y))==null?void 0:U[0])==null?void 0:S.toUpperCase())}))$.push({comp:(m=E==null?void 0:E.find(D=>{var J,U,S;return((J=D==null?void 0:D.key)==null?void 0:J.toUpperCase())===((S=(U=Object.keys(y))==null?void 0:U[0])==null?void 0:S.toUpperCase())}))==null?void 0:m.value,name:(T=(g=Object.values(y))==null?void 0:g[0])==null?void 0:T.replace(/[’]|[‘]|[']/g,""),compData:[]});else if(N!=null&&N.find(D=>{var J,U,S;return((J=D==null?void 0:D.key)==null?void 0:J.toUpperCase())===((S=(U=Object.keys(y))==null?void 0:U[0])==null?void 0:S.toUpperCase())})){if(($==null?void 0:$.length)===0)return;(F=$==null?void 0:$[($==null?void 0:$.length)-1])!=null&&F.compData&&$[($==null?void 0:$.length)-1].compData.push({key:(I=N==null?void 0:N.find(D=>{var J,U,S;return((J=D==null?void 0:D.key)==null?void 0:J.toUpperCase())===((S=(U=Object.keys(y))==null?void 0:U[0])==null?void 0:S.toUpperCase())}))==null?void 0:I.value,contents:(P=Object.values(y))==null?void 0:P[0]})}else if((G=(_=Object.keys(y))==null?void 0:_[0])!=null&&G.includes("$")){const D=(x=(W=Object.keys(o.cloneDeep(y)))==null?void 0:W[0])==null?void 0:x.split("$");$[($==null?void 0:$.length)-1].compData.push({key:(O=N==null?void 0:N.find(J=>{var U,S;return((U=J==null?void 0:J.key)==null?void 0:U.toUpperCase())===((S=D==null?void 0:D[0])==null?void 0:S.toUpperCase())}))==null?void 0:O.value,contents:(C=Object.values(y))==null?void 0:C[0],selectLabel:D==null?void 0:D[1]})}return y}),b.contents=$,b})),h}),A}catch{return!1}},de=Q.ref(0),Oe=l=>{const t=[];let s=null;for(let e=0;e<l.length;e++){const r=l[e];if(Array.isArray(r))s&&(s.children=Oe(r));else{const n={label:r};t.push(n),s=n}}return t},Te=l=>{let t=0;for(const s of l)t++,s.children&&(t+=Te(s.children));return t},xe=(l,t,s=[])=>{let e=0;for(const r of t){if(e>=l.length)break;const n=[...l[e]];if(s.push(n),e++,r.children&&r.children.length>0){const c=[];xe(l.slice(e),r.children,c),c.length>0&&(n.push(c),e+=Te(r.children))}}return s},Xe=(l,t)=>{let s=[];return l==null||l.forEach(r=>{r.some(n=>Array.isArray(n))?s.push(...r):s.push(r)}),xe(s,t)},ne=l=>{const t={label:l[0].trim()};if(l.length>1){const s=l.slice(1);s.length===1&&Array.isArray(s[0])?t.children=s[0].map(e=>Array.isArray(e)?ne(e):{label:e.trim()}):t.children=s.map(e=>Array.isArray(e)?ne(e):{label:e.trim()})}return t},ke=l=>{let t=l.replace(/:([^{}\[\],\s]+)([,\]}])/g,':"$1"$2');return t=t.replace(/:}(?=,|]|}|$)/g,':""}'),t=t.replace(/:,(?=\s*")/g,':"",'),t=t.replace(/(https?|HTTPS?):"\/\/([^"]+)"/gi,(s,e,r)=>`"${e}://${r}"`),t=t.replace(/(\[|\s|,)((?:https?|HTTPS?):\/\/[^\s,\]]+)(\]|,|$)/gi,'$1"$2"$3'),t},Ye=l=>{var s;return l.some(e=>!Array.isArray(e))?l:(s=o.cloneDeep(l))==null?void 0:s.map(e=>{let r=[];return e.some(n=>Array.isArray(n))?e==null||e.forEach(n=>{Array.isArray(n)&&r.push(ne(n))}):e.some(n=>n.includes("["))?r.push(e):r=e.map(n=>({label:n.trim()})),r})},Je=(l,t,s)=>{let e=l,r=s,n=t;return n.children&&(Array.isArray(r[r.length-1])?r[r.length-1].push(e[0]):r.push(e[0]),e.shift(),n=n.children),Array.isArray(n)&&n.forEach(c=>{if(c.children){const a=Je(e,c,r);r=a[0],e=a[1]}}),[r,e]},Ke=(l,t)=>{let s=l,e=[];return t.length>0?t==null||t.forEach(r=>{let n=s==null?void 0:s[0];s.shift();const c=Je(o.cloneDeep(s),r,n);n=c[0],s=c[1],e.push(n)}):e=s,e},ae=(l,t)=>{const s=Ye(o.cloneDeep(l));return Ke(s,t)},Ve=l=>{const t=[];let s=0;const e=l.length;for(;s<e;){const r=l[s];r.key==="tableColumns"&&s+1<e&&l[s+1].key==="tableContents"?(t.push({comp:"Table",compData:[r,l[s+1]],name:""}),s+=2):(t.push(r),s+=1)}return t},Ne=l=>ae([l],[]),ee=l=>{const t=[];return l==null||l.forEach(s=>s==null?void 0:s.forEach(r=>{var n,c;de.value++,t.push({id:de.value,key:(n=Object.keys(r))==null?void 0:n[0],value:(c=Object.values(r))==null?void 0:c[0],width:s.length})})),t},ge=l=>{let t=Ve(l);return t=t==null?void 0:t.map(s=>{var e,r,n,c;if(s.comp==="Table")(e=s.compData)!=null&&e.find(a=>(a==null?void 0:a.key)==="header")||(s.compData=(r=s.compData)==null?void 0:r.map(a=>(a.key==="tableColumns"?a={key:"header",contents:ae(a.value,[])}:a={key:a.key,contents:a.value},a)),s.compData.push({key:"extraButton",contents:[{label:"新增"}]}),s.compData.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}));else if(s.key==="form"){const a=(n=s==null?void 0:s.value)==null?void 0:n.map(f=>(Array.isArray(f)||(f=[f]),f));s={comp:"Form",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:ee(a)}],name:""}}else if(s.key==="formTop"){const a=(c=s==null?void 0:s.value)==null?void 0:c.map(f=>(Array.isArray(f)||(f=[f]),f));s={comp:"FormTop",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:ee(a)},{key:"enableWrap",contents:!0},{key:"formButton",contents:[{label:"查询"},{label:"重置"}]}],name:""}}return s}),t},we=(l,t)=>{var a,f,p,u,d,k;const s=[],e=Oe((f=(a=l==null?void 0:l.find(A=>A.key==="tableIndex"))==null?void 0:a.value)==null?void 0:f[0]);s.push({key:"tableIndexColumn",contents:t}),s.push({key:"tableIndex",contents:e});let r=[];const n=(p=l==null?void 0:l.find(A=>A.key==="tableColumns"))==null?void 0:p.value;n.length===1&&!(n!=null&&n[0].some(A=>Array.isArray(A)))?r=(u=n==null?void 0:n[0])==null?void 0:u.map(A=>({label:A})):r=ae((d=l==null?void 0:l.find(A=>A.key==="tableColumns"))==null?void 0:d.value,e),s.push({key:"header",contents:r});const c=Xe((k=l==null?void 0:l.find(A=>A.key==="tableContents"))==null?void 0:k.value,e);return s.push({key:"tableContents",contents:c}),s.push({key:"extraButton",contents:[{label:"新增"}]}),s.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}),s},Ee=l=>l.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g,(t,s,e)=>{const r=Ee(e);return`"${s}",${r}`}),K=l=>{const t=l.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g,'"$1",$2');return Ee(t).replace(/^"(.*)"$/,"$1")},ve=l=>{const t=new Set;return l.filter(s=>{const e=JSON.stringify(s);return t.has(e)?!1:t.add(e)})},be=l=>{var s;let t=[];return(s=o.cloneDeep(l))==null||s.forEach(e=>{var r;(r=e.contents)==null||r.forEach(n=>{t.push(n)})}),t=ve(t),t.push({label:"操作"}),[t]},el=(l,t)=>l.reduce((s,e,r)=>{const n=Math.floor(r/t);return s[n]||(s[n]=[]),s[n].push(e),s},[]),je=l=>l.reduce((t,s)=>s.children&&s.children.length>0?t+je(s.children):t+1,0),ll=(l,t)=>{var e;let s=[];return(e=el(l,je(t==null?void 0:t[0])-1))==null||e.forEach(r=>{let n=[];r.forEach(c=>{var a;Array.isArray(c.contents)?(a=c.contents)==null||a.forEach(f=>{n.push(f)}):n.push(c.contents)}),s.push(n)}),[s]},sl=["方法体","输入","输出"],$e=Q.ref(1),le=l=>{let t;l.replaceAll(" ",`\r
|
|
2
2
|
`).includes(`\r
|
|
3
3
|
`)?t=l.replaceAll(" ",`\r
|
|
4
4
|
`).split(`\r
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as Q } from "vue";
|
|
2
|
-
import { c as o } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
3
|
-
import { I as z } from "./index-
|
|
2
|
+
import { c as o } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BP5MoIJH.js";
|
|
3
|
+
import { I as z } from "./index-DCXRZxtU.js";
|
|
4
4
|
const J = [
|
|
5
5
|
{
|
|
6
6
|
key: "FormName",
|
|
@@ -6018,12 +6018,12 @@ const D9 = $4(P, "$notify"), E9 = [
|
|
|
6018
6018
|
{
|
|
6019
6019
|
path: "/login",
|
|
6020
6020
|
name: "Login",
|
|
6021
|
-
component: async () => import("./index-
|
|
6021
|
+
component: async () => import("./index-bj7mOAVK.js")
|
|
6022
6022
|
},
|
|
6023
6023
|
{
|
|
6024
6024
|
path: "/",
|
|
6025
6025
|
name: "Model",
|
|
6026
|
-
component: async () => import("./index-
|
|
6026
|
+
component: async () => import("./index-BStNLZ42.js"),
|
|
6027
6027
|
// component: async ()=>import('@/components/views/model/component/main.vue'),
|
|
6028
6028
|
// component: async ()=>import('@/components/views/canvas/index.vue'),
|
|
6029
6029
|
// component: async ()=>import('@/components/views/test/index.vue'),
|
|
@@ -6031,37 +6031,37 @@ const D9 = $4(P, "$notify"), E9 = [
|
|
|
6031
6031
|
{
|
|
6032
6032
|
path: "平台管理/菜单管理",
|
|
6033
6033
|
name: "Menu",
|
|
6034
|
-
component: async () => import("./index-
|
|
6034
|
+
component: async () => import("./index-CY1519pX.js")
|
|
6035
6035
|
},
|
|
6036
6036
|
{
|
|
6037
6037
|
path: "平台管理/主菜单管理",
|
|
6038
6038
|
name: "MainMenu",
|
|
6039
|
-
component: async () => import("./index-
|
|
6039
|
+
component: async () => import("./index-BVPTyDGN.js")
|
|
6040
6040
|
},
|
|
6041
6041
|
{
|
|
6042
6042
|
path: "系统管理/个人中心",
|
|
6043
6043
|
name: "PersonalCenter",
|
|
6044
|
-
component: async () => import("./index-
|
|
6044
|
+
component: async () => import("./index-DALN1fcs.js")
|
|
6045
6045
|
},
|
|
6046
6046
|
{
|
|
6047
6047
|
path: "系统管理/职位管理",
|
|
6048
6048
|
name: "Post",
|
|
6049
|
-
component: async () => import("./index-
|
|
6049
|
+
component: async () => import("./index-C_Jun3tv.js")
|
|
6050
6050
|
},
|
|
6051
6051
|
{
|
|
6052
6052
|
path: "系统管理/用户管理",
|
|
6053
6053
|
name: "User",
|
|
6054
|
-
component: async () => import("./index-
|
|
6054
|
+
component: async () => import("./index-BTw--p5k.js")
|
|
6055
6055
|
},
|
|
6056
6056
|
{
|
|
6057
6057
|
path: "系统管理/角色管理",
|
|
6058
6058
|
name: "Role",
|
|
6059
|
-
component: async () => import("./index-
|
|
6059
|
+
component: async () => import("./index-b8cI-JMV.js")
|
|
6060
6060
|
},
|
|
6061
6061
|
{
|
|
6062
6062
|
path: "系统管理/部门管理",
|
|
6063
6063
|
name: "Dept",
|
|
6064
|
-
component: async () => import("./index-
|
|
6064
|
+
component: async () => import("./index-D7zpgFH2.js")
|
|
6065
6065
|
},
|
|
6066
6066
|
{
|
|
6067
6067
|
path: "priority",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),v=require("./menu-B66tYXqW.cjs"),m=require("./threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-CiPUHGr9.cjs"),U=require("./index-BM2A912L.cjs"),ee=require("./index-DXGWycCq.cjs"),te=require("./login-GaUPH9Op.cjs"),B=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Cd_Najv6.cjs"),$=require("./index-C2wXIUte.cjs"),le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),I=m.useModelComp(v.pinia),W=U.useUnit(v.pinia),_=v.useMenuState(v.pinia),{menus:G,configMenu:N,activeMenuPath:A,cacheStructures:S}=v.storeToRefs(_),R=a.ref(!1),oe=a.computed(()=>{var t,e;return[{key:"extraButton",contents:[]},{key:"rowButton",contents:[{label:"修改"}]},{key:"header",contents:[{label:"菜单名称",prop:"title",isFormColHidden:!1},{label:"菜单类型",prop:"menuType",formType:"select",options:[{label:"系统菜单",value:"集团"},{label:"公司",value:"公司"}],isTableColHidden:!1,isFormColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:(e=(t=B.cloneDeep(G.value))==null?void 0:t.map(o=>({...o,menuType:"系统菜单"})))==null?void 0:e.filter(o=>o.title!=="系统管理"&&o.title!=="平台管理")}]}),q=a.ref([]),K=a.ref([{label:"新建"}]),ae=a.computed(()=>[{key:"extraButton",contents:K.value},{key:"rowButton",contents:[{label:"修改"},{label:"删除"}]},{key:"header",contents:[{label:"操作类型",prop:"operateType",formType:"select",options:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标",prop:"operateIcon",formType:"inputPopover",value:""},{label:"操作触发事件",prop:"trigger",formType:"select",options:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"配置一:",prop:"dialogConfig",formType:"button",value:"弹窗内容",isTableColHidden:!0},{label:"配置二:",prop:"contentConfig",formType:"button",value:"模块内容",isTableColHidden:!0},{label:"继承配置:",prop:"allowInherit",formType:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1,isTableColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:q.value}]),J=a.ref([]),T=a.ref({}),ne=a.ref({}),j=a.ref([{label:"菜单",prop:"path",isFormColHidden:!0,value:""},{label:"菜单图标:",prop:"menuIcon",type:"inputPopover",value:""},{label:"操作类型:",prop:"operateType",type:"select",contents:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标:",prop:"operateIcon",type:"inputPopover",value:""},{label:"操作触发事件:",prop:"trigger",type:"select",contents:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"配置一:",prop:"dialogConfig",type:"button",value:"操作触发的弹窗结构"},{label:"配置二:",prop:"contentConfig",type:"button",value:"操作生成的模块结构"},{label:"",prop:"structureIds",type:"input",value:[],isFormColHidden:!0},{label:"继承配置:",prop:"allowInherit",type:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1}]),V=t=>{var e;console.log("formatFormData",t),J.value=t?(e=j.value)==null?void 0:e.map(o=>o.prop==="dialogConfig"||o.prop==="contentConfig"||o.prop==="trigger"?o:{...o,value:t?t[o==null?void 0:o.prop]:""}):j.value},re=a.ref([{label:"查询"},{label:"重置"}]),se=async()=>{},Q=t=>t.map(e=>e.childMenus&&e.childMenus.length>0?{...e,value:e==null?void 0:e.title,label:e==null?void 0:e.title,children:Q(e.childMenus)}:{...e,value:e==null?void 0:e.title,label:e==null?void 0:e.title}),h=a.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),H=a.ref([]),k=a.ref({}),b=a.ref(null),D=a.ref([]),X=a.computed(()=>{var t;return(t=Q(G.value))==null?void 0:t.filter(e=>e.title!=="系统管理"&&e.title!=="平台管理")}),Y=async t=>{var o,u,r,c;const e=await v.getInsofDataApi({key:{type:"subStructure",systemKey:sessionStorage.getItem("systemKey"),pageKey:t,version:1}});((o=e==null?void 0:e.data)==null?void 0:o.code)===200&&(u=e.data)!=null&&u.result&&(D.value=(c=(r=e.data)==null?void 0:r.result)==null?void 0:c.map(n=>{var i;return{id:n==null?void 0:n.id,...(i=n==null?void 0:n.value)==null?void 0:i.pageData}}))},ue=async t=>{var e;R.value=!0,b.value={...t,rootNode:te.findRootNodeByPath(X.value,t.path)},(t==null?void 0:t.level)===0?K.value.splice(0):(K.value=[{label:"新建"}],H.value=(e=t==null?void 0:t.path)==null?void 0:e.split("/")),await _.setConfigMenu(null),await Y(t==null?void 0:t.path),await P(t)},ce=t=>{switch(t){case"新建":return"create";case"修改":return"update";case"删除":return"delete"}},ie=async(t,e)=>{var o,u;if(!b.value)return v.ElMessage.warning("请先选择菜单");if(h.type=ce(t),H.value=[],I.setSubmitCurStructure(!1),W.setSelectTitle([]),_.setCacheStructures(null),k.value=B.cloneDeep(e),h.type!=="delete"){switch(h.type){case"create":V(null),await _.setConfigMenu(null);break;case"update":V(k.value),await _.setConfigMenu(k.value);break}await a.nextTick(),h.title=`【${h.type==="create"?(o=b.value)==null?void 0:o.path:(u=k.value)==null?void 0:u.path}】菜单配置${t}`,h.show=!0}else await Z(k.value,h.type)},de=async t=>{var e;T.value=t,await _.setConfigMenu({...T.value,path:(e=b.value)==null?void 0:e.path})},pe=a.ref(null),ge=async(t,e)=>{var n,i,p,d,g;if(h.type==="create"&&((n=D.value)==null?void 0:n.length)>0&&e==="contentConfig"&&I.setItemData(D.value),!(t!=null&&t.structureIds)||((i=t==null?void 0:t.structureIds)==null?void 0:i.length)===0)return;const o=(d=(p=t==null?void 0:t.structureIds)==null?void 0:p.filter(l=>(l==null?void 0:l.key)===e))==null?void 0:d.map(l=>l==null?void 0:l.id);console.log("getTriggerStructures",t==null?void 0:t.structureIds,e);let u=o==null?void 0:o.map(l=>{if(l)return v.getInsofDataApi({id:l})});const r=await Promise.all(u);if(r==null?void 0:r.every(l=>{var f;return((f=l==null?void 0:l.data)==null?void 0:f.code)===200}))if((r==null?void 0:r.length)>0){const l=r==null?void 0:r.map(f=>{var C,w,s,x,F,M,y,O;return{id:(s=(w=(C=f==null?void 0:f.data)==null?void 0:C.result)==null?void 0:w[0])==null?void 0:s.id,...(O=(y=(M=(F=(x=f==null?void 0:f.data)==null?void 0:x.result)==null?void 0:F[0])==null?void 0:M.value)==null?void 0:y.pageData)==null?void 0:O.structure}});I.setItemData(l),console.log("clickTrigger2",l)}else((g=D.value)==null?void 0:g.length)>0&&e==="contentConfig"&&I.setItemData(D.value)},fe=async t=>{var r,c,n,i,p,d,g,l;const e=t==="操作触发的弹窗结构"?"dialogConfig":"contentConfig";if(_.setButtonTriggerType(e),h.type==="create"&&((r=S.value)==null?void 0:r.length)>0){const f=(n=(c=S.value)==null?void 0:c.filter(C=>(C==null?void 0:C.key)===e))==null?void 0:n.flatMap(C=>C==null?void 0:C.data);console.log("clickTrigger",e,S.value,f),I.setItemData(f)}else await ge(k.value,e);let o;(i=T.value)!=null&&i.subMenus&&((p=T.value)==null?void 0:p.subMenus.length)>0&&(o=(d=H.value)==null?void 0:d.map(f=>({value:f})),o.unshift({value:(g=k.value)==null?void 0:g.title}));let u;h.type==="create"?u={...T.value,path:(l=b.value)==null?void 0:l.path}:h.type==="update"&&(u=N.value),await _.setConfigMenu(u),W.setSelectTitle(o),I.setIsEdit("edit")},P=async t=>{var o,u,r,c,n,i;const e=await v.getInsofDataApi({key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:A.value+"/"+(t==null?void 0:t.path),tableId:""}});((o=e==null?void 0:e.data)==null?void 0:o.code)===200&&(u=e.data)!=null&&u.result&&(q.value=((c=(r=e.data)==null?void 0:r.result)==null?void 0:c.length)>0?(i=(n=e.data)==null?void 0:n.result)==null?void 0:i.map(p=>{var d;return{id:p==null?void 0:p.id,...(d=p==null?void 0:p.value)==null?void 0:d.tableData}}):[]),R.value=!1},E=async(t,e,o="contentConfig")=>{var u,r,c,n,i,p;console.log("clickSubmitForm4",t);try{let d,g;if(e==="create")d={key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:A.value+"/"+((u=b.value)==null?void 0:u.path),type:"structure",rootNodePath:(c=(r=b.value)==null?void 0:r.rootNode)==null?void 0:c.path,structureBelong:o,parentTable:"",version:1},value:{pageData:t}},g=v.createInsofDataApi;else if(e==="update"){const f=B.cloneDeep(t.data);f==null||delete f.id,d={id:t==null?void 0:t.id,value:{pageData:f}},g=v.updateInsofDataApi}else e==="delete"&&(d={id:t},g=v.deleteInsofDataApi);const l=await g(d);if(((n=l==null?void 0:l.data)==null?void 0:n.code)!==200)throw v.ElMessage.error("保存响应失败"),new Error("保存响应失败");return{status:((i=l==null?void 0:l.data)==null?void 0:i.code)===200,data:{id:(p=l==null?void 0:l.data)==null?void 0:p.result,key:o}}}catch{v.ElMessage.error("保存响应失败")}},L=(t,e)=>{var p,d,g;const o=(p=t==null?void 0:t.flatMap(l=>l==null?void 0:l.data))==null?void 0:p.map(l=>l==null?void 0:l.id),u=e.filter(l=>!(o!=null&&o.includes(l))),r=o==null?void 0:o.filter(l=>!e.includes(l));let c=null,n=null,i=null;return c=[...u,...r].filter(l=>l),n=(d=t==null?void 0:t.flatMap(l=>l==null?void 0:l.data))==null?void 0:d.filter(l=>!(l!=null&&l.id)),i=(g=t==null?void 0:t.flatMap(l=>l==null?void 0:l.data))==null?void 0:g.filter(l=>l==null?void 0:l.id),{deleteIds:c,createComps:n,updateComps:i}},z=(t,e)=>{var u,r,c,n,i,p;let o=[];return((u=e==null?void 0:e.deleteIds)==null?void 0:u.length)>0&&((r=e==null?void 0:e.deleteIds)==null||r.forEach(d=>{o.push(E(d,"delete",t))})),((c=e==null?void 0:e.createComps)==null?void 0:c.length)>0&&((n=e==null?void 0:e.createComps)==null||n.forEach(d=>{var g,l;o.push(E({menuConfig:N.value,structure:d,rootNodePath:(l=(g=b.value)==null?void 0:g.rootNode)==null?void 0:l.path},"create",t))})),((i=e==null?void 0:e.updateComps)==null?void 0:i.length)>0&&((p=e==null?void 0:e.updateComps)==null||p.forEach(d=>{var g,l;o.push(E({menuConfig:N.value,structure:d,rootNodePath:(l=(g=b.value)==null?void 0:g.rootNode)==null?void 0:l.path},"update",t))})),o},ve=async(t,e)=>{var l,f,C,w;const o=(l=D.value)==null?void 0:l.map(s=>s==null?void 0:s.id),u=t==null?void 0:t.filter(s=>(s==null?void 0:s.key)==="contentConfig"),r=t==null?void 0:t.filter(s=>(s==null?void 0:s.key)==="dialogConfig"),c=(w=(C=(f=S.value)==null?void 0:f.filter(s=>(s==null?void 0:s.key)==="dialogConfig"))==null?void 0:C.flatMap(s=>s==null?void 0:s.data))==null?void 0:w.map(s=>s==null?void 0:s.id),n=L(r,c),i=L(u,o);console.log("clickSubmitForm1",n,i,e);const p=z("dialogConfig",n),d=z("contentConfig",i),g=[...p,...d];await Promise.all(g).then(s=>{var M;const x=s==null?void 0:s.every(y=>y.status);if(console.log("clickSubmitForm3Promise:",s,g,k.value,h.type),!x)return;const F=(M=s==null?void 0:s.flatMap(y=>y==null?void 0:y.data))==null?void 0:M.filter(y=>(y==null?void 0:y.id)!==null&&(y==null?void 0:y.id)!==void 0);Z({...e,structureIds:F},h.type)}).catch(s=>{v.ElMessage.error(s)})},Z=async(t,e)=>{var r,c;let o,u;e==="create"?(o={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:A.value+"/"+((r=b.value)==null?void 0:r.path),tableId:""},value:{tableData:t}},u=v.createInsofDataApi):e==="update"?(o={id:t==null?void 0:t.id,value:{tableData:t}},u=v.updateInsofDataApi):e==="delete"&&(o={ids:[t.id,...(c=t==null?void 0:t.structureIds)==null?void 0:c.map(n=>n.id)]},u=v.batchDeleteInsofDataApi),ee.handleSubmitAsync(u,o,e).then(n=>{e==="create"&&q.value.push({...t,id:n}),e&&n&&v.ElMessage.success("响应成功"),P(b.value)})},he=async()=>{var o,u,r,c,n;const t=B.cloneDeep(S.value);await a.nextTick();const e=h.type==="create"?{...N.value,rootNodePath:(u=(o=b.value)==null?void 0:o.rootNode)==null?void 0:u.path}:{...N.value,rootNodePath:(c=(r=b.value)==null?void 0:r.rootNode)==null?void 0:c.path,id:(n=k.value)==null?void 0:n.id};await ve(t,e),T.value={},h.show=!1,await P(b.value)},ye=()=>{h.show=!1},be=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:ye,buttonValue:re,changeTrigger:de,changedRow:ne,clickNodeTrigger:ue,clickRowButton:ie,clickSubmitForm:he,clickTrigger:fe,dialogInfo:h,formatFormData:V,getTableDataAsync:P,handleItemDataChange:se,handleSubInitialStructure:Y,inputForm:T,menuPageData:ae,operatingForm:pe,pageData:oe,renderFormData:J,tableLoading:R,treeData:X},Symbol.toStringTag,{value:"Module"})),Ce={class:"menu-module"},ke={class:"tree-wrap"},_e={class:"table-wrap","element-loading-text":"加载中..."},Te={class:"module-dialog-default"},De=a.defineComponent({__name:"index",setup(t){const e=a.reactive({...be}),o=a.ref(null),u=v.useMenuState(v.pinia),{configMenu:r}=v.storeToRefs(u);return a.onMounted(()=>{var c;e.formatFormData(r.value),console.log(12345,r.value),a.nextTick(()=>{var n,i;(i=o.value)==null||i.setCurrentKey((n=r.value)==null?void 0:n.path)}),r.value&&e.handleSubInitialStructure((c=r.value)==null?void 0:c.path)}),(c,n)=>{const i=a.resolveComponent("el-tree"),p=a.resolveComponent("el-button"),d=a.resolveDirective("loading");return a.openBlock(),a.createElementBlock("div",Ce,[a.createElementVNode("div",ke,[a.createVNode(i,{ref_key:"treeRef",ref:o,data:e.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:e.clickNodeTrigger},null,8,["data","onNodeClick"])]),a.withDirectives((a.openBlock(),a.createElementBlock("div",_e,[a.createVNode(U.ssTable,{itemData:e.menuPageData,changedContent:e.changedRow,operatingForm:e.operatingForm,onOnFormChange:e.changeTrigger,onChange:e.handleItemDataChange,onClickTrigger:e.clickTrigger,onOnButtonClick:e.clickRowButton},null,8,["itemData","changedContent","operatingForm","onOnFormChange","onChange","onClickTrigger","onOnButtonClick"])])),[[d,e.tableLoading]]),a.createVNode($.ssDialog,{class:"module-dialog",title:e.dialogInfo.title,visible:e.dialogInfo.show,width:e.dialogInfo.width,onBeforeDestroy:e.beforeDialogDestroy},{default:a.withCtx(()=>[a.createElementVNode("div",Te,[a.createVNode($.ssForm,{rowContents:e.renderFormData,isEnableWrap:!1,isEdit:!0,onChange:e.changeTrigger,onClickTrigger:e.clickTrigger},null,8,["rowContents","onChange","onClickTrigger"])])]),footer:a.withCtx(()=>[a.createElementVNode("div",null,[a.createVNode(p,{onClick:e.beforeDialogDestroy,id:"themeBorderButton"},{default:a.withCtx(()=>n[0]||(n[0]=[a.createTextVNode("取消")])),_:1,__:[0]},8,["onClick"]),a.createVNode(p,{id:"themeButton",onClick:e.clickSubmitForm},{default:a.withCtx(()=>n[1]||(n[1]=[a.createTextVNode(" 确认 ")])),_:1,__:[1]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])])}}}),Ie=le._export_sfc(De,[["__scopeId","data-v-541cf007"]]);exports.default=Ie;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),v=require("./menu-Bj4qq0KK.cjs"),m=require("./threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-BtFDMscB.cjs"),U=require("./index-Dgf9fuDm.cjs"),ee=require("./index-DnhKk8wP.cjs"),te=require("./login-CwoRR3Nc.cjs"),B=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-0DUFsOev.cjs"),$=require("./index-Cwveu5wW.cjs"),le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),I=m.useModelComp(v.pinia),W=U.useUnit(v.pinia),_=v.useMenuState(v.pinia),{menus:G,configMenu:N,activeMenuPath:A,cacheStructures:S}=v.storeToRefs(_),R=a.ref(!1),oe=a.computed(()=>{var t,e;return[{key:"extraButton",contents:[]},{key:"rowButton",contents:[{label:"修改"}]},{key:"header",contents:[{label:"菜单名称",prop:"title",isFormColHidden:!1},{label:"菜单类型",prop:"menuType",formType:"select",options:[{label:"系统菜单",value:"集团"},{label:"公司",value:"公司"}],isTableColHidden:!1,isFormColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:(e=(t=B.cloneDeep(G.value))==null?void 0:t.map(o=>({...o,menuType:"系统菜单"})))==null?void 0:e.filter(o=>o.title!=="系统管理"&&o.title!=="平台管理")}]}),q=a.ref([]),K=a.ref([{label:"新建"}]),ae=a.computed(()=>[{key:"extraButton",contents:K.value},{key:"rowButton",contents:[{label:"修改"},{label:"删除"}]},{key:"header",contents:[{label:"操作类型",prop:"operateType",formType:"select",options:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标",prop:"operateIcon",formType:"inputPopover",value:""},{label:"操作触发事件",prop:"trigger",formType:"select",options:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"配置一:",prop:"dialogConfig",formType:"button",value:"弹窗内容",isTableColHidden:!0},{label:"配置二:",prop:"contentConfig",formType:"button",value:"模块内容",isTableColHidden:!0},{label:"继承配置:",prop:"allowInherit",formType:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1,isTableColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:q.value}]),J=a.ref([]),T=a.ref({}),ne=a.ref({}),j=a.ref([{label:"菜单",prop:"path",isFormColHidden:!0,value:""},{label:"菜单图标:",prop:"menuIcon",type:"inputPopover",value:""},{label:"操作类型:",prop:"operateType",type:"select",contents:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标:",prop:"operateIcon",type:"inputPopover",value:""},{label:"操作触发事件:",prop:"trigger",type:"select",contents:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"配置一:",prop:"dialogConfig",type:"button",value:"操作触发的弹窗结构"},{label:"配置二:",prop:"contentConfig",type:"button",value:"操作生成的模块结构"},{label:"",prop:"structureIds",type:"input",value:[],isFormColHidden:!0},{label:"继承配置:",prop:"allowInherit",type:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1}]),V=t=>{var e;console.log("formatFormData",t),J.value=t?(e=j.value)==null?void 0:e.map(o=>o.prop==="dialogConfig"||o.prop==="contentConfig"||o.prop==="trigger"?o:{...o,value:t?t[o==null?void 0:o.prop]:""}):j.value},re=a.ref([{label:"查询"},{label:"重置"}]),se=async()=>{},Q=t=>t.map(e=>e.childMenus&&e.childMenus.length>0?{...e,value:e==null?void 0:e.title,label:e==null?void 0:e.title,children:Q(e.childMenus)}:{...e,value:e==null?void 0:e.title,label:e==null?void 0:e.title}),h=a.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),H=a.ref([]),k=a.ref({}),b=a.ref(null),D=a.ref([]),X=a.computed(()=>{var t;return(t=Q(G.value))==null?void 0:t.filter(e=>e.title!=="系统管理"&&e.title!=="平台管理")}),Y=async t=>{var o,u,r,c;const e=await v.getInsofDataApi({key:{type:"subStructure",systemKey:sessionStorage.getItem("systemKey"),pageKey:t,version:1}});((o=e==null?void 0:e.data)==null?void 0:o.code)===200&&(u=e.data)!=null&&u.result&&(D.value=(c=(r=e.data)==null?void 0:r.result)==null?void 0:c.map(n=>{var i;return{id:n==null?void 0:n.id,...(i=n==null?void 0:n.value)==null?void 0:i.pageData}}))},ue=async t=>{var e;R.value=!0,b.value={...t,rootNode:te.findRootNodeByPath(X.value,t.path)},(t==null?void 0:t.level)===0?K.value.splice(0):(K.value=[{label:"新建"}],H.value=(e=t==null?void 0:t.path)==null?void 0:e.split("/")),await _.setConfigMenu(null),await Y(t==null?void 0:t.path),await P(t)},ce=t=>{switch(t){case"新建":return"create";case"修改":return"update";case"删除":return"delete"}},ie=async(t,e)=>{var o,u;if(!b.value)return v.ElMessage.warning("请先选择菜单");if(h.type=ce(t),H.value=[],I.setSubmitCurStructure(!1),W.setSelectTitle([]),_.setCacheStructures(null),k.value=B.cloneDeep(e),h.type!=="delete"){switch(h.type){case"create":V(null),await _.setConfigMenu(null);break;case"update":V(k.value),await _.setConfigMenu(k.value);break}await a.nextTick(),h.title=`【${h.type==="create"?(o=b.value)==null?void 0:o.path:(u=k.value)==null?void 0:u.path}】菜单配置${t}`,h.show=!0}else await Z(k.value,h.type)},de=async t=>{var e;T.value=t,await _.setConfigMenu({...T.value,path:(e=b.value)==null?void 0:e.path})},pe=a.ref(null),ge=async(t,e)=>{var n,i,p,d,g;if(h.type==="create"&&((n=D.value)==null?void 0:n.length)>0&&e==="contentConfig"&&I.setItemData(D.value),!(t!=null&&t.structureIds)||((i=t==null?void 0:t.structureIds)==null?void 0:i.length)===0)return;const o=(d=(p=t==null?void 0:t.structureIds)==null?void 0:p.filter(l=>(l==null?void 0:l.key)===e))==null?void 0:d.map(l=>l==null?void 0:l.id);console.log("getTriggerStructures",t==null?void 0:t.structureIds,e);let u=o==null?void 0:o.map(l=>{if(l)return v.getInsofDataApi({id:l})});const r=await Promise.all(u);if(r==null?void 0:r.every(l=>{var f;return((f=l==null?void 0:l.data)==null?void 0:f.code)===200}))if((r==null?void 0:r.length)>0){const l=r==null?void 0:r.map(f=>{var C,w,s,x,F,M,y,O;return{id:(s=(w=(C=f==null?void 0:f.data)==null?void 0:C.result)==null?void 0:w[0])==null?void 0:s.id,...(O=(y=(M=(F=(x=f==null?void 0:f.data)==null?void 0:x.result)==null?void 0:F[0])==null?void 0:M.value)==null?void 0:y.pageData)==null?void 0:O.structure}});I.setItemData(l),console.log("clickTrigger2",l)}else((g=D.value)==null?void 0:g.length)>0&&e==="contentConfig"&&I.setItemData(D.value)},fe=async t=>{var r,c,n,i,p,d,g,l;const e=t==="操作触发的弹窗结构"?"dialogConfig":"contentConfig";if(_.setButtonTriggerType(e),h.type==="create"&&((r=S.value)==null?void 0:r.length)>0){const f=(n=(c=S.value)==null?void 0:c.filter(C=>(C==null?void 0:C.key)===e))==null?void 0:n.flatMap(C=>C==null?void 0:C.data);console.log("clickTrigger",e,S.value,f),I.setItemData(f)}else await ge(k.value,e);let o;(i=T.value)!=null&&i.subMenus&&((p=T.value)==null?void 0:p.subMenus.length)>0&&(o=(d=H.value)==null?void 0:d.map(f=>({value:f})),o.unshift({value:(g=k.value)==null?void 0:g.title}));let u;h.type==="create"?u={...T.value,path:(l=b.value)==null?void 0:l.path}:h.type==="update"&&(u=N.value),await _.setConfigMenu(u),W.setSelectTitle(o),I.setIsEdit("edit")},P=async t=>{var o,u,r,c,n,i;const e=await v.getInsofDataApi({key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:A.value+"/"+(t==null?void 0:t.path),tableId:""}});((o=e==null?void 0:e.data)==null?void 0:o.code)===200&&(u=e.data)!=null&&u.result&&(q.value=((c=(r=e.data)==null?void 0:r.result)==null?void 0:c.length)>0?(i=(n=e.data)==null?void 0:n.result)==null?void 0:i.map(p=>{var d;return{id:p==null?void 0:p.id,...(d=p==null?void 0:p.value)==null?void 0:d.tableData}}):[]),R.value=!1},E=async(t,e,o="contentConfig")=>{var u,r,c,n,i,p;console.log("clickSubmitForm4",t);try{let d,g;if(e==="create")d={key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:A.value+"/"+((u=b.value)==null?void 0:u.path),type:"structure",rootNodePath:(c=(r=b.value)==null?void 0:r.rootNode)==null?void 0:c.path,structureBelong:o,parentTable:"",version:1},value:{pageData:t}},g=v.createInsofDataApi;else if(e==="update"){const f=B.cloneDeep(t.data);f==null||delete f.id,d={id:t==null?void 0:t.id,value:{pageData:f}},g=v.updateInsofDataApi}else e==="delete"&&(d={id:t},g=v.deleteInsofDataApi);const l=await g(d);if(((n=l==null?void 0:l.data)==null?void 0:n.code)!==200)throw v.ElMessage.error("保存响应失败"),new Error("保存响应失败");return{status:((i=l==null?void 0:l.data)==null?void 0:i.code)===200,data:{id:(p=l==null?void 0:l.data)==null?void 0:p.result,key:o}}}catch{v.ElMessage.error("保存响应失败")}},L=(t,e)=>{var p,d,g;const o=(p=t==null?void 0:t.flatMap(l=>l==null?void 0:l.data))==null?void 0:p.map(l=>l==null?void 0:l.id),u=e.filter(l=>!(o!=null&&o.includes(l))),r=o==null?void 0:o.filter(l=>!e.includes(l));let c=null,n=null,i=null;return c=[...u,...r].filter(l=>l),n=(d=t==null?void 0:t.flatMap(l=>l==null?void 0:l.data))==null?void 0:d.filter(l=>!(l!=null&&l.id)),i=(g=t==null?void 0:t.flatMap(l=>l==null?void 0:l.data))==null?void 0:g.filter(l=>l==null?void 0:l.id),{deleteIds:c,createComps:n,updateComps:i}},z=(t,e)=>{var u,r,c,n,i,p;let o=[];return((u=e==null?void 0:e.deleteIds)==null?void 0:u.length)>0&&((r=e==null?void 0:e.deleteIds)==null||r.forEach(d=>{o.push(E(d,"delete",t))})),((c=e==null?void 0:e.createComps)==null?void 0:c.length)>0&&((n=e==null?void 0:e.createComps)==null||n.forEach(d=>{var g,l;o.push(E({menuConfig:N.value,structure:d,rootNodePath:(l=(g=b.value)==null?void 0:g.rootNode)==null?void 0:l.path},"create",t))})),((i=e==null?void 0:e.updateComps)==null?void 0:i.length)>0&&((p=e==null?void 0:e.updateComps)==null||p.forEach(d=>{var g,l;o.push(E({menuConfig:N.value,structure:d,rootNodePath:(l=(g=b.value)==null?void 0:g.rootNode)==null?void 0:l.path},"update",t))})),o},ve=async(t,e)=>{var l,f,C,w;const o=(l=D.value)==null?void 0:l.map(s=>s==null?void 0:s.id),u=t==null?void 0:t.filter(s=>(s==null?void 0:s.key)==="contentConfig"),r=t==null?void 0:t.filter(s=>(s==null?void 0:s.key)==="dialogConfig"),c=(w=(C=(f=S.value)==null?void 0:f.filter(s=>(s==null?void 0:s.key)==="dialogConfig"))==null?void 0:C.flatMap(s=>s==null?void 0:s.data))==null?void 0:w.map(s=>s==null?void 0:s.id),n=L(r,c),i=L(u,o);console.log("clickSubmitForm1",n,i,e);const p=z("dialogConfig",n),d=z("contentConfig",i),g=[...p,...d];await Promise.all(g).then(s=>{var M;const x=s==null?void 0:s.every(y=>y.status);if(console.log("clickSubmitForm3Promise:",s,g,k.value,h.type),!x)return;const F=(M=s==null?void 0:s.flatMap(y=>y==null?void 0:y.data))==null?void 0:M.filter(y=>(y==null?void 0:y.id)!==null&&(y==null?void 0:y.id)!==void 0);Z({...e,structureIds:F},h.type)}).catch(s=>{v.ElMessage.error(s)})},Z=async(t,e)=>{var r,c;let o,u;e==="create"?(o={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:A.value+"/"+((r=b.value)==null?void 0:r.path),tableId:""},value:{tableData:t}},u=v.createInsofDataApi):e==="update"?(o={id:t==null?void 0:t.id,value:{tableData:t}},u=v.updateInsofDataApi):e==="delete"&&(o={ids:[t.id,...(c=t==null?void 0:t.structureIds)==null?void 0:c.map(n=>n.id)]},u=v.batchDeleteInsofDataApi),ee.handleSubmitAsync(u,o,e).then(n=>{e==="create"&&q.value.push({...t,id:n}),e&&n&&v.ElMessage.success("响应成功"),P(b.value)})},he=async()=>{var o,u,r,c,n;const t=B.cloneDeep(S.value);await a.nextTick();const e=h.type==="create"?{...N.value,rootNodePath:(u=(o=b.value)==null?void 0:o.rootNode)==null?void 0:u.path}:{...N.value,rootNodePath:(c=(r=b.value)==null?void 0:r.rootNode)==null?void 0:c.path,id:(n=k.value)==null?void 0:n.id};await ve(t,e),T.value={},h.show=!1,await P(b.value)},ye=()=>{h.show=!1},be=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:ye,buttonValue:re,changeTrigger:de,changedRow:ne,clickNodeTrigger:ue,clickRowButton:ie,clickSubmitForm:he,clickTrigger:fe,dialogInfo:h,formatFormData:V,getTableDataAsync:P,handleItemDataChange:se,handleSubInitialStructure:Y,inputForm:T,menuPageData:ae,operatingForm:pe,pageData:oe,renderFormData:J,tableLoading:R,treeData:X},Symbol.toStringTag,{value:"Module"})),Ce={class:"menu-module"},ke={class:"tree-wrap"},_e={class:"table-wrap","element-loading-text":"加载中..."},Te={class:"module-dialog-default"},De=a.defineComponent({__name:"index",setup(t){const e=a.reactive({...be}),o=a.ref(null),u=v.useMenuState(v.pinia),{configMenu:r}=v.storeToRefs(u);return a.onMounted(()=>{var c;e.formatFormData(r.value),console.log(12345,r.value),a.nextTick(()=>{var n,i;(i=o.value)==null||i.setCurrentKey((n=r.value)==null?void 0:n.path)}),r.value&&e.handleSubInitialStructure((c=r.value)==null?void 0:c.path)}),(c,n)=>{const i=a.resolveComponent("el-tree"),p=a.resolveComponent("el-button"),d=a.resolveDirective("loading");return a.openBlock(),a.createElementBlock("div",Ce,[a.createElementVNode("div",ke,[a.createVNode(i,{ref_key:"treeRef",ref:o,data:e.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:e.clickNodeTrigger},null,8,["data","onNodeClick"])]),a.withDirectives((a.openBlock(),a.createElementBlock("div",_e,[a.createVNode(U.ssTable,{itemData:e.menuPageData,changedContent:e.changedRow,operatingForm:e.operatingForm,onOnFormChange:e.changeTrigger,onChange:e.handleItemDataChange,onClickTrigger:e.clickTrigger,onOnButtonClick:e.clickRowButton},null,8,["itemData","changedContent","operatingForm","onOnFormChange","onChange","onClickTrigger","onOnButtonClick"])])),[[d,e.tableLoading]]),a.createVNode($.ssDialog,{class:"module-dialog",title:e.dialogInfo.title,visible:e.dialogInfo.show,width:e.dialogInfo.width,onBeforeDestroy:e.beforeDialogDestroy},{default:a.withCtx(()=>[a.createElementVNode("div",Te,[a.createVNode($.ssForm,{rowContents:e.renderFormData,isEnableWrap:!1,isEdit:!0,onChange:e.changeTrigger,onClickTrigger:e.clickTrigger},null,8,["rowContents","onChange","onClickTrigger"])])]),footer:a.withCtx(()=>[a.createElementVNode("div",null,[a.createVNode(p,{onClick:e.beforeDialogDestroy,id:"themeBorderButton"},{default:a.withCtx(()=>n[0]||(n[0]=[a.createTextVNode("取消")])),_:1,__:[0]},8,["onClick"]),a.createVNode(p,{id:"themeButton",onClick:e.clickSubmitForm},{default:a.withCtx(()=>n[1]||(n[1]=[a.createTextVNode(" 确认 ")])),_:1,__:[1]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])])}}}),Ie=le._export_sfc(De,[["__scopeId","data-v-541cf007"]]);exports.default=Ie;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("vue"),c=require("./menu-
|
|
1
|
+
"use strict";const n=require("vue"),c=require("./menu-Bj4qq0KK.cjs"),u=require("./index-DnhKk8wP.cjs"),g=require("./threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-BtFDMscB.cjs"),D=g.useModelComp(),{itemData:f}=c.storeToRefs(D),p=n.ref(0),i=n.ref([{label:"机构名称",value:"",name:"deptName"}]),m=e=>{console.log("handleQueryChange",e)},r=n.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"header",contents:[{label:"职位名称",prop:"postName"},{label:"职位排序",formType:"Number",prop:"postOrder"},{label:"备注",formType:"TextArea",prop:"remark"},{label:"操作"}]},{key:"tableContents",contents:[]}]),_=e=>{u.submitTableAsyncByVerify(e.singleContent,e.buttonName,p.value)},h=e=>{console.log("onDoubleClick",e)},k=(e,a)=>{console.log("onButtonClick",e,a)},C=async e=>{const a=await u.handleSubmitAsync(c.getInsofDataApi,{key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:e}},"查询"),l=a==null?void 0:a.map(t=>{var o;return{id:t.id,tableData:(o=t==null?void 0:t.value)==null?void 0:o.tableData}});return l==null?void 0:l.map(t=>{var o;if(Array.isArray(t==null?void 0:t.tableData)){let s={id:t.id};return(o=t==null?void 0:t.tableData)==null||o.forEach((b,d)=>{s[`a${d}`]=b}),s}else return{...t.tableData,id:t.id}})},y={comp:"Group",name:"/系统管理/职位管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:r.value,name:""}]}]};n.watch(()=>f.value,e=>{var a;e&&(e==null?void 0:e.length)>0&&(r.value=(a=e==null?void 0:e[0])==null?void 0:a.compData)});const A=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:C,handleItemDataChange:_,handleQueryChange:m,onButtonClick:k,onDoubleClick:h,pageData:r,queryFormData:i,structureId:p,tempPostPageData:y},Symbol.toStringTag,{value:"Module"}));exports.State=A;exports.tempPostPageData=y;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ref as z, resolveComponent as V, createBlock as T, openBlock as h, defineComponent as Z, onMounted as e2, withCtx as S, createVNode as L, createElementVNode as $, createElementBlock as y, Fragment as j, renderList as U, watch as Y, normalizeStyle as R, createCommentVNode as E, unref as s2, withDirectives as S2, createSlots as Q, resolveDynamicComponent as a2, toDisplayString as F, vShow as D2, normalizeClass as U2, createTextVNode as J, nextTick as t2, renderSlot as H, normalizeProps as $2, guardReactiveProps as j2, mergeProps as c2, computed as W, h as C2, reactive as O2, onBeforeUnmount as I2, toRefs as A2, watchEffect as g2, onUnmounted as R2 } from "vue";
|
|
2
2
|
import { S as z2 } from "./index-BHtNKL1L.js";
|
|
3
|
-
import { c as n2, x as T2, y as V2, z as N2, A as W2, V as F2 } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
3
|
+
import { c as n2, x as T2, y as V2, z as N2, A as W2, V as F2 } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BP5MoIJH.js";
|
|
4
4
|
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
import { E as B2, g as Y2, u as q2, s as K2, a as J2 } from "./menu-
|
|
6
|
-
import { a5 as X2, aa as Q2, k as Z2 } from "./index-
|
|
7
|
-
import { _ as e0 } from "./index.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { E as B2, g as Y2, u as q2, s as K2, a as J2 } from "./menu-pNM6_DJi.js";
|
|
6
|
+
import { a5 as X2, aa as Q2, k as Z2 } from "./index-24rHtXOF.js";
|
|
7
|
+
import { _ as e0 } from "./index.vue_vue_type_script_setup_true_lang-d9_SaET-.js";
|
|
8
8
|
var t0 = "[object Number]";
|
|
9
9
|
function M2(n) {
|
|
10
10
|
return typeof n == "number" || X2(n) && Q2(n) == t0;
|
|
@@ -1527,7 +1527,7 @@ const s3 = { class: "icon-popover" }, a3 = ["onClick"], c3 = /* @__PURE__ */ Z({
|
|
|
1527
1527
|
}, 8, ["mode", "default-active", "default-openeds"]);
|
|
1528
1528
|
};
|
|
1529
1529
|
}
|
|
1530
|
-
}), L2 = /* @__PURE__ */ A(R3, [["__scopeId", "data-v-
|
|
1530
|
+
}), L2 = /* @__PURE__ */ A(R3, [["__scopeId", "data-v-6a992c79"]]), J6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1531
1531
|
__proto__: null,
|
|
1532
1532
|
default: L2
|
|
1533
1533
|
}, Symbol.toStringTag, { value: "Module" })), N3 = {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { j as xl, a as fl, g as rl, m as Dl, k as Il, n as Tl, o as $l, p as tl, q as El, r as Bl, s as Fl, v as Al } from "./index-
|
|
1
|
+
import { j as xl, a as fl, g as rl, m as Dl, k as Il, n as Tl, o as $l, p as tl, q as El, r as Bl, s as Fl, v as Al } from "./index-DCXRZxtU.js";
|
|
2
2
|
import { ref as B, watch as De, createElementBlock as H, openBlock as R, createVNode as E, resolveComponent as ye, Fragment as be, renderList as _e, createElementVNode as f, createCommentVNode as Pe, toDisplayString as oe, withCtx as K, createBlock as ke, createTextVNode as fe, defineComponent as qe, reactive as nl, resolveDynamicComponent as Xe, computed as ol, renderSlot as Ye, createSlots as Sl, mergeProps as Ll, unref as Ol, normalizeStyle as Rl, withModifiers as Qe } from "vue";
|
|
3
|
-
import { f as ml, p as Ue, s as Je, E as Me, u as Vl, g as ll, b as cl } from "./menu-
|
|
4
|
-
import { b as Ee, s as Fe, c as hl, d as Nl, e as Pl, a as Ul } from "./index-
|
|
5
|
-
import { c as d, F as dl, g as Wl, b as xe, m as He, s as We, f as Ge, d as al } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
3
|
+
import { f as ml, p as Ue, s as Je, E as Me, u as Vl, g as ll, b as cl } from "./menu-pNM6_DJi.js";
|
|
4
|
+
import { b as Ee, s as Fe, c as hl, d as Nl, e as Pl, a as Ul } from "./index-B5T7_Hfv.js";
|
|
5
|
+
import { c as d, F as dl, g as Wl, b as xe, m as He, s as We, f as Ge, d as al } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BP5MoIJH.js";
|
|
6
6
|
import { _ as we } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
-
import { E as Ke } from "./index-
|
|
8
|
-
import { u as yl } from "./threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-
|
|
9
|
-
import { s as jl, a as zl } from "./index-
|
|
7
|
+
import { E as Ke } from "./index-BGGv8YCW.js";
|
|
8
|
+
import { u as yl } from "./threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-BeUjxBt-.js";
|
|
9
|
+
import { s as jl, a as zl } from "./index-BE-LZbiq.js";
|
|
10
10
|
import Ml from "./index-CZtXRS3l.js";
|
|
11
11
|
const Kl = (k) => k.match(/\((.*)\)/)[1], Jl = ml("formComp", {
|
|
12
12
|
state: () => ({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as $, computed as F, ref as h, watch as P, createElementBlock as E, openBlock as p, createVNode as v, createElementVNode as j, withCtx as c, createTextVNode as T, toDisplayString as k, resolveComponent as B, createBlock as U, Fragment as V, renderList as z, normalizeStyle as R } from "vue";
|
|
2
|
-
import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { d as H, u as L } from "./index-
|
|
4
|
-
import { E as N } from "./menu-
|
|
2
|
+
import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-d9_SaET-.js";
|
|
3
|
+
import { d as H, u as L } from "./index-BDBTYDAm.js";
|
|
4
|
+
import { E as N } from "./menu-pNM6_DJi.js";
|
|
5
5
|
import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import { S as M } from "./index-
|
|
6
|
+
import { S as M } from "./index-B5T7_Hfv.js";
|
|
7
7
|
import { S as x } from "./index-BHtNKL1L.js";
|
|
8
8
|
const W = { class: "avatar-model-wrap" }, D = /* @__PURE__ */ $({
|
|
9
9
|
__name: "index",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { computed as b, getCurrentInstance as qe, inject as pe, unref as u, ref as A, onMounted as ie, watch as W, toRef as Ke, onUnmounted as Vn, shallowRef as Ve, nextTick as V, defineComponent as Z, useAttrs as _n, useSlots as un, createElementBlock as F, openBlock as E, normalizeStyle as Ye, normalizeClass as w, createCommentVNode as k, Fragment as _e, createElementVNode as P, renderSlot as Y, createBlock as M, withCtx as L, resolveDynamicComponent as K, mergeProps as lt, withModifiers as ke, createVNode as oe, toDisplayString as J, onBeforeUnmount as xe, provide as cn, Text as Dn, reactive as dn, h as Un, watchEffect as Kn, isRef as Yn, onScopeDispose as Wn, markRaw as ut, toRefs as Gn, resolveComponent as Ce, Transition as qn, withDirectives as et, withKeys as Re, createTextVNode as tt, vShow as nt, isVNode as fn, render as vn } from "vue";
|
|
2
|
-
import { S as Ft, m as pn, n as gt, t as hn, o as Pt, p as Xn, i as se, q as Ht, v as Xe, c as fe, w as ue, x as We, y as mn, z as ve, A as jn, B as Jn, C as Zn, D as Qn, F as Te, G as Ie, H as Me, _ as Be, I as he, V as eo, J as to, K as no, L as oo, M as ae, N as De, O as ao, e as Ge, P as gn, Q as bt, R as ro, T as ct, U as so, W as $t, X as io, Y as zt, d as lo, g as uo, b as co, Z as fo, $ as vo, a as po, a0 as Vt, a1 as _t, a2 as ho } from "./index-
|
|
3
|
-
import { m as mo } from "./menu-
|
|
4
|
-
import { e as Dt, i as bn, h as go, j as bo, k as yn, l as yo } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
5
|
-
import { i as En } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { S as Ft, m as pn, n as gt, t as hn, o as Pt, p as Xn, i as se, q as Ht, v as Xe, c as fe, w as ue, x as We, y as mn, z as ve, A as jn, B as Jn, C as Zn, D as Qn, F as Te, G as Ie, H as Me, _ as Be, I as he, V as eo, J as to, K as no, L as oo, M as ae, N as De, O as ao, e as Ge, P as gn, Q as bt, R as ro, T as ct, U as so, W as $t, X as io, Y as zt, d as lo, g as uo, b as co, Z as fo, $ as vo, a as po, a0 as Vt, a1 as _t, a2 as ho } from "./index-24rHtXOF.js";
|
|
3
|
+
import { m as mo } from "./menu-pNM6_DJi.js";
|
|
4
|
+
import { e as Dt, i as bn, h as go, j as bo, k as yn, l as yo } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BP5MoIJH.js";
|
|
5
|
+
import { i as En } from "./index.vue_vue_type_script_setup_true_lang-d9_SaET-.js";
|
|
6
6
|
function Eo(e) {
|
|
7
7
|
return e;
|
|
8
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("./index-ryZW4H12.cjs");require("./menu-Bj4qq0KK.cjs");require("./array-CSwVpKuJ.cjs");const C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");require("./index.vue_vue_type_style_index_0_scoped_306ecd73_lang-C1K4Ki_m.cjs");require("./index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-CI2nWr0Z.cjs");require("./login-CwoRR3Nc.cjs");require("./index-Bk37DuoM.cjs");require("./threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-BtFDMscB.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-0DUFsOev.cjs");require("./index-Dgf9fuDm.cjs");const h={__name:"index",props:{windowConfig:{type:Object,default:()=>{}},pathContent:{type:String,default:""},mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0},nodeDev:{type:String,default:""}},emits:["buildContent","openThreeBuild"],setup(i,{emit:l}){const e=i,d=l,a=()=>{d("buildContent")},s=n=>{d("openThreeBuild",n)},u=()=>{var c;const n=e!=null&&e.windowConfig?(c=e==null?void 0:e.windowConfig)==null?void 0:c.width:window.innerWidth,r=1920,o=16,w=n/r,f=o*w;document.documentElement.style.fontSize=`${f}px`};return t.onMounted(()=>{u(),window.addEventListener("resize",u)}),(n,r)=>{const o=t.resolveComponent("router-view");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(o,{mode:e==null?void 0:e.mode,content:e==null?void 0:e.content,jsonContents:e==null?void 0:e.jsonContents,pathContent:e==null?void 0:e.pathContent,showButton:e==null?void 0:e.showButton,nodeDev:e==null?void 0:e.nodeDev,windowConfig:i.windowConfig,onBuildContent:a,onOpenThreeBuild:s},null,8,["mode","content","jsonContents","pathContent","showButton","nodeDev","windowConfig"])])}}},m=C._export_sfc(h,[["__scopeId","data-v-24c63b2e"]]);exports.default=m;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { resolveComponent as b, createBlock as L, openBlock as c, withCtx as n, createVNode as t, createElementVNode as C, toDisplayString as je, ref as w, onMounted as ea, watch as we, createElementBlock as N, Fragment as ot, renderList as ht, createCommentVNode as Q, normalizeStyle as ta, defineComponent as Rt, computed as nt, resolveDirective as Ft, withDirectives as at, unref as s, createTextVNode as fe, renderSlot as We, resolveDynamicComponent as St, vShow as Ct } from "vue";
|
|
2
|
-
import { m as ft, a as gt, b as yt } from "./index-
|
|
3
|
-
import lt from "./index-
|
|
4
|
-
import { _ as aa, o as xt, c as At, a as Ut, b as jt, d as Dt, s as le, g as Pt, e as $t, f as Mt, h as Lt, i as oa, j as na } from "./index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-
|
|
2
|
+
import { m as ft, a as gt, b as yt } from "./index-RZC24UKn.js";
|
|
3
|
+
import lt from "./index-DEowpIN-.js";
|
|
4
|
+
import { _ as aa, o as xt, c as At, a as Ut, b as jt, d as Dt, s as le, g as Pt, e as $t, f as Mt, h as Lt, i as oa, j as na } from "./index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-CtkN_3NU.js";
|
|
5
5
|
import { _ as qe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import { p as Be, s as ke, u as st, b as K, g as la, E as mt } from "./menu-
|
|
7
|
-
import { u as Et } from "./login-
|
|
6
|
+
import { p as Be, s as ke, u as st, b as K, g as la, E as mt } from "./menu-pNM6_DJi.js";
|
|
7
|
+
import { u as Et } from "./login-jvP43w57.js";
|
|
8
8
|
import { S as Ue } from "./index-BHtNKL1L.js";
|
|
9
|
-
import { u as it } from "./threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-
|
|
10
|
-
import { u as _t, a as sa, I as bt, l as Vt } from "./index-
|
|
11
|
-
import { s as Nt } from "./index-
|
|
12
|
-
import { c as et } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
13
|
-
import ia from "./threeModel-
|
|
14
|
-
import { s as ra, _ as Oe } from "./index-
|
|
15
|
-
import { u as ca } from "./index-
|
|
16
|
-
import { d as kt } from "./index-
|
|
17
|
-
import { i as ua, e as da, b as Bt, c as Tt, a as pa } from "./array-
|
|
18
|
-
import { c as ma, b as ha } from "./index.vue_vue_type_style_index_0_scoped_306ecd73_lang-
|
|
9
|
+
import { u as it } from "./threeModel.vue_vue_type_style_index_0_scoped_28fc9fe5_lang-BeUjxBt-.js";
|
|
10
|
+
import { u as _t, a as sa, I as bt, l as Vt } from "./index-DCXRZxtU.js";
|
|
11
|
+
import { s as Nt } from "./index-24rHtXOF.js";
|
|
12
|
+
import { c as et } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BP5MoIJH.js";
|
|
13
|
+
import ia from "./threeModel-B2v_doHa.js";
|
|
14
|
+
import { s as ra, _ as Oe } from "./index-B5T7_Hfv.js";
|
|
15
|
+
import { u as ca } from "./index-BCL3B2W3.js";
|
|
16
|
+
import { d as kt } from "./index-BDBTYDAm.js";
|
|
17
|
+
import { i as ua, e as da, b as Bt, c as Tt, a as pa } from "./array-Dh0i46pi.js";
|
|
18
|
+
import { c as ma, b as ha } from "./index.vue_vue_type_style_index_0_scoped_306ecd73_lang-DysCq2pc.js";
|
|
19
19
|
function fa(P, Re, l, z, G, ce) {
|
|
20
20
|
const r = b("svg-icon"), se = b("ssMenu");
|
|
21
21
|
return c(), L(se, {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as o, reactive as a, onMounted as r, createElementBlock as c, openBlock as s, createVNode as i } from "vue";
|
|
2
2
|
import "./index-BHtNKL1L.js";
|
|
3
|
-
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
4
|
-
import { u as m, s as u } from "./menu-
|
|
5
|
-
import { v as l } from "./index-
|
|
6
|
-
import { S as p } from "./index-
|
|
7
|
-
import { u as d } from "./login-
|
|
8
|
-
import { g } from "./index-
|
|
3
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BP5MoIJH.js";
|
|
4
|
+
import { u as m, s as u } from "./menu-pNM6_DJi.js";
|
|
5
|
+
import { v as l } from "./index-DCXRZxtU.js";
|
|
6
|
+
import { S as p } from "./index-Cx0UOXzP.js";
|
|
7
|
+
import { u as d } from "./login-jvP43w57.js";
|
|
8
|
+
import { g } from "./index-KkjugPBD.js";
|
|
9
9
|
const I = /* @__PURE__ */ o({
|
|
10
10
|
__name: "index",
|
|
11
11
|
setup(f) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as S, u as P, E as v, p as K } from "./menu-
|
|
2
|
-
import { u as k } from "./login-
|
|
1
|
+
import { g as S, u as P, E as v, p as K } from "./menu-pNM6_DJi.js";
|
|
2
|
+
import { u as k } from "./login-jvP43w57.js";
|
|
3
3
|
import { ref as h } from "vue";
|
|
4
4
|
const A = P(K), E = k(K), x = h(!1), D = h(!1), j = async () => {
|
|
5
5
|
const I = S({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as g, ref as C, onMounted as _, createElementBlock as v, openBlock as D, createVNode as h } from "vue";
|
|
2
|
-
import { c, e as k, d as I, u as K, p as x, s as M, g as S } from "./menu-
|
|
3
|
-
import { v as T } from "./index-
|
|
4
|
-
import { c as y } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
2
|
+
import { c, e as k, d as I, u as K, p as x, s as M, g as S } from "./menu-pNM6_DJi.js";
|
|
3
|
+
import { v as T } from "./index-DCXRZxtU.js";
|
|
4
|
+
import { c as y } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BP5MoIJH.js";
|
|
5
5
|
import { _ as E } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const q = (a) => {
|
|
7
7
|
const s = {};
|