ss-component-new 1.2.4 → 1.2.6
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/{animationData-CfT99nMO.cjs → animationData-B0K2ghu6.cjs} +1 -1
- package/dist/{animationData-9n1X4UvO.js → animationData-GqECkAbz.js} +4 -4
- package/dist/{array-pg68Qbs1.js → array-D65aMM6H.js} +1 -1
- package/dist/{array-BPHS7JFA.cjs → array-DMPAgNcb.cjs} +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-bj8hK6Pe.js → index--rLSLEk3.js} +2 -2
- package/dist/{index-B8J_v2Ky.cjs → index-67QO-qDa.cjs} +1 -1
- package/dist/{index-DOlPMLvf.cjs → index-87kRWJv8.cjs} +1 -1
- package/dist/{index-CdPbJekh.js → index-8Dyi4QCI.js} +185 -186
- package/dist/{index-CK_O7QdV.cjs → index-8yRiF_z8.cjs} +1 -1
- package/dist/{index-B5srJr0o.js → index-9zEdW6xv.js} +2 -2
- package/dist/{index-CAHYTZ1Q.cjs → index-B14iwpkN.cjs} +1 -1
- package/dist/{index-DJ1PTHpx.cjs → index-B7hLDNQ6.cjs} +1 -1
- package/dist/{index-DBScQH7L.js → index-BEoEUXZe.js} +166 -166
- package/dist/{index-BOVdAFDH.cjs → index-BHJ-tVLT.cjs} +1 -1
- package/dist/{index-Dk8D9SRm.js → index-BMMYAqF1.js} +1 -1
- package/dist/{index-DFg-bhPI.js → index-BNOx3XL5.js} +1 -1
- package/dist/{index-CMlYJD5U.cjs → index-BNvpuVyw.cjs} +1 -1
- package/dist/{index-d6tSWKtY.cjs → index-BOJUyAaV.cjs} +2 -2
- package/dist/{index-B5vIeQUq.cjs → index-BYUPvuvs.cjs} +1 -1
- package/dist/{index-LXb5DfDE.cjs → index-BaRkv5oc.cjs} +1 -1
- package/dist/{index-Bx4qIiIa.cjs → index-BpR7F1Fp.cjs} +1 -1
- package/dist/{index-BjXcyVvp.js → index-Bs2K1FVH.js} +2 -2
- package/dist/{index-Bsdjuxq1.cjs → index-BsM9qdbC.cjs} +1 -1
- package/dist/{index-CyP2hcVu.js → index-BsfJJu0R.js} +6 -6
- package/dist/{index-BAj0dyBF.js → index-Bw_JtuzR.js} +3 -3
- package/dist/{index-BuKHInQb.js → index-C1FOuBuy.js} +1 -1
- package/dist/{index-NFCeQcv4.cjs → index-C5CKSB0e.cjs} +1 -1
- package/dist/{index-CCsSOTaB.js → index-C8UOMPgt.js} +2 -2
- package/dist/{index-CCIJ-P3X.cjs → index-CA-FC_OL.cjs} +1 -1
- package/dist/{index-CDXq3gs4.js → index-CArSUfnV.js} +19 -19
- package/dist/{index-8CcD03tl.js → index-CBuqdsPh.js} +6 -6
- package/dist/{index---6UATT0.js → index-CMCrQ36H.js} +3 -3
- package/dist/{index-CpE8hbs0.js → index-CRj9VM12.js} +6 -6
- package/dist/{index-C1lB8apW.js → index-CRrAiL5l.js} +4 -4
- package/dist/{index-BNNxPuEV.js → index-CShBWCYm.js} +1 -1
- package/dist/{index-FxX6NP0J.js → index-CTkF2kl_.js} +1 -1
- package/dist/{index-DCf7Tz40.cjs → index-CZaBF851.cjs} +1 -1
- package/dist/{index-Y7MUJdPv.js → index-CbA74tCL.js} +2 -2
- package/dist/{index-B5gNufYw.js → index-CbDu4gfZ.js} +2 -2
- package/dist/{index-zQVJFawn.cjs → index-CePZE-QA.cjs} +1 -1
- package/dist/{index-Bi7yv8jC.cjs → index-CedgKpsz.cjs} +1 -1
- package/dist/{index-C0HHmjrg.cjs → index-Cm3z0Vmi.cjs} +1 -1
- package/dist/{index-BEJOd_29.js → index-D-WcrLQv.js} +4 -4
- package/dist/{index-D-r_YKrq.cjs → index-D6mwkqWY.cjs} +2 -2
- package/dist/index-D8510-YQ.cjs +1 -0
- package/dist/{index-DPyzaxnq.cjs → index-D9oqICYV.cjs} +1 -1
- package/dist/{index-DSsZtYMz.js → index-DGepdvRW.js} +2 -2
- package/dist/{index-D0_4keB8.js → index-DGi-ANHr.js} +5 -5
- package/dist/{index-CLtFz5gE.js → index-DJGsDpDp.js} +3 -3
- package/dist/{index-B9nZeing.cjs → index-DPBmAgEA.cjs} +1 -1
- package/dist/{index-xHEf6hcO.js → index-DPWc4No_.js} +2 -2
- package/dist/{index-BrsIZVyD.cjs → index-DSchKIyh.cjs} +1 -1
- package/dist/{index-UN4JU0ly.js → index-DV_ZZQBO.js} +2 -2
- package/dist/{index-1DtctdYW.cjs → index-DVmoPvzr.cjs} +1 -1
- package/dist/{index-BKhDFqMM.cjs → index-DWs7-g1h.cjs} +1 -1
- package/dist/{index-DszzdQnM.cjs → index-DZ8a7BZ1.cjs} +1 -1
- package/dist/{index-nUEWiqy9.cjs → index-DcUUpSE1.cjs} +1 -1
- package/dist/{index-DsHRVZ0E.js → index-DvpVQvAe.js} +2 -2
- package/dist/{index-DPaTtF3h.cjs → index-FK1YYpjN.cjs} +1 -1
- package/dist/{index-DEwcUkb-.js → index-HvKjB6_P.js} +3 -3
- package/dist/{index-PIEkAjRf.js → index-LADv0t0E.js} +11 -11
- package/dist/{index-DS5z17Mc.js → index-_66uQhcl.js} +7 -7
- package/dist/{index-CxNBcsll.cjs → index-_uyv24Pt.cjs} +1 -1
- package/dist/{index-pLeOyTaj.js → index-g4qw0jRy.js} +6 -6
- package/dist/{index-C-AOuDkl.cjs → index-mtuIEfrj.cjs} +1 -1
- package/dist/{index-CmlXlH2b.cjs → index-tttYIzsn.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Cmc1oALS.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BSOYWm_U.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BTu7I4mn.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DIMJusrg.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-C795GAHK.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-D2VLEzGB.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-Bg_c-oAL.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-D58IzjOR.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-Bn5qXF4J.cjs → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-BnNwKutS.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-9kDr7Iek.js → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-CJCvJvBM.js} +13 -13
- package/dist/{index.vue_vue_type_style_index_1_lang-Exyt6qTf.js → index.vue_vue_type_style_index_1_lang-D5Hjs-g0.js} +31 -25
- package/dist/{index.vue_vue_type_style_index_1_lang-Bn7P4fYM.cjs → index.vue_vue_type_style_index_1_lang-H_pReDxj.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-zN5mc8b0.cjs → index.vue_vue_type_style_index_1_lang-N-_9ZJEf.cjs} +2 -2
- package/dist/{index.vue_vue_type_style_index_1_lang-D1n_3_F6.js → index.vue_vue_type_style_index_1_lang-hBa3nAgx.js} +3 -3
- package/dist/{isString-BAN9KLwf.js → isString--ZVOCy4V.js} +1 -1
- package/dist/{isString-ChvWbctO.cjs → isString-CELwppr9.cjs} +1 -1
- package/dist/{main-BUEuCNq-.cjs → main-C6Iw-pcH.cjs} +1 -1
- package/dist/{main-Dk3BZDsa.js → main-CygliYyN.js} +5 -5
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +11 -11
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/{threeLatheView-DfSxRY8B.cjs → threeLatheView-CdUoB0Te.cjs} +1 -1
- package/dist/{threeLatheView-DcuDjVv0.js → threeLatheView-DzpPpdDr.js} +2 -2
- package/dist/{threeModel-DjjtL0-a.cjs → threeModel-BUCLJlE5.cjs} +1 -1
- package/dist/{threeModel-YRFvkgXU.js → threeModel-BfMMeZCc.js} +3 -3
- package/dist/{threePreview-CyYfnbB6.js → threePreview-BEqzg370.js} +1 -1
- package/dist/{threePreview-ByUYJkts.cjs → threePreview-C-JW_pcY.cjs} +1 -1
- package/dist/threeSceneView-BTsG2QJg.cjs +5 -0
- package/dist/threeSceneView-DV5dsTZZ.js +1471 -0
- package/dist/{threeSceneViewForCPMPIP-axjwKt9X.js → threeSceneViewForCPMPIP-Bexwqkry.js} +7 -7
- package/dist/{threeSceneViewForCPMPIP-DA-twBdG.cjs → threeSceneViewForCPMPIP-DwLWGNUd.cjs} +1 -1
- package/dist/{threeViewerHost-B02OtfCk.cjs → threeViewerHost-CRqcYbJE.cjs} +1 -1
- package/dist/{threeViewerHost-D7L1FW__.js → threeViewerHost-CTjd2V1D.js} +4 -4
- package/dist/{useRayCaster-CAqupK7D.js → useRayCaster-D0_7oJan.js} +1 -1
- package/dist/{useRayCaster-ClcofJkf.cjs → useRayCaster-DN56HpNP.cjs} +1 -1
- package/package.json +1 -1
- package/public/config.js +1 -1
- package/dist/index-5hLZZ6t-.cjs +0 -1
- package/dist/threeSceneView-mhrcH0WG.cjs +0 -5
- package/dist/threeSceneView-zvyCHrp1.js +0 -1469
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const p=require("./index-d6tSWKtY.cjs"),l=require("vue");function ni(e){return e}function So(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}var Eo=800,To=16,wo=Date.now;function Do(e){var n=0,t=0;return function(){var r=wo(),i=To-(r-t);if(t=r,i>0){if(++n>=Eo)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}function Ao(e){return function(){return e}}var ko=p.defineProperty?function(e,n){return p.defineProperty(e,"toString",{configurable:!0,enumerable:!1,value:Ao(n),writable:!0})}:ni,ri=Do(ko),yr=Math.max;function ii(e,n,t){return n=yr(n===void 0?e.length-1:n,0),function(){for(var r=arguments,i=-1,o=yr(r.length-n,0),a=Array(o);++i<o;)a[i]=r[n+i];i=-1;for(var s=Array(n+1);++i<n;)s[i]=r[i];return s[n]=t(a),So(e,this,s)}}var vr=p.Symbol?p.Symbol.isConcatSpreadable:void 0;function Co(e){return p.isArray(e)||p.isArguments(e)||!!(vr&&e&&e[vr])}function Ln(e,n,t,r,i){var o=-1,a=e.length;for(t||(t=Co),i||(i=[]);++o<a;){var s=e[o];n>0&&t(s)?n>1?Ln(s,n-1,t,r,i):p.arrayPush(i,s):r||(i[i.length]=s)}return i}function oi(e){var n=e==null?0:e.length;return n?Ln(e,1):[]}function ai(e){return ri(ii(e,void 0,oi),e+"")}var Io="__lodash_hash_undefined__";function xo(e){return this.__data__.set(e,Io),this}function Bo(e){return this.__data__.has(e)}function Et(e){var n=-1,t=e==null?0:e.length;for(this.__data__=new p.MapCache;++n<t;)this.add(e[n])}Et.prototype.add=Et.prototype.push=xo;Et.prototype.has=Bo;function Ro(e,n){for(var t=-1,r=e==null?0:e.length;++t<r;)if(n(e[t],t,e))return!0;return!1}function si(e,n){return e.has(n)}var Mo=1,No=2;function li(e,n,t,r,i,o){var a=t&Mo,s=e.length,c=n.length;if(s!=c&&!(a&&c>s))return!1;var u=o.get(e),f=o.get(n);if(u&&f)return u==n&&f==e;var h=-1,d=!0,v=t&No?new Et:void 0;for(o.set(e,n),o.set(n,e);++h<s;){var g=e[h],m=n[h];if(r)var y=a?r(m,g,h,n,e,o):r(g,m,h,e,n,o);if(y!==void 0){if(y)continue;d=!1;break}if(v){if(!Ro(n,function(b,S){if(!si(v,S)&&(g===b||i(g,b,t,r,o)))return v.push(S)})){d=!1;break}}else if(!(g===m||i(g,m,t,r,o))){d=!1;break}}return o.delete(e),o.delete(n),d}function Oo(e){var n=-1,t=Array(e.size);return e.forEach(function(r,i){t[++n]=[i,r]}),t}function ui(e){var n=-1,t=Array(e.size);return e.forEach(function(r){t[++n]=r}),t}var Po=1,Vo=2,Fo="[object Boolean]",Lo="[object Date]",Ko="[object Error]",_o="[object Map]",Ho="[object Number]",$o="[object RegExp]",Uo="[object Set]",zo="[object String]",jo="[object Symbol]",qo="[object ArrayBuffer]",Go="[object DataView]",br=p.Symbol?p.Symbol.prototype:void 0,cn=br?br.valueOf:void 0;function Wo(e,n,t,r,i,o,a){switch(t){case Go:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case qo:return!(e.byteLength!=n.byteLength||!o(new p.Uint8Array(e),new p.Uint8Array(n)));case Fo:case Lo:case Ho:return p.eq(+e,+n);case Ko:return e.name==n.name&&e.message==n.message;case $o:case zo:return e==n+"";case _o:var s=Oo;case Uo:var c=r&Po;if(s||(s=ui),e.size!=n.size&&!c)return!1;var u=a.get(e);if(u)return u==n;r|=Vo,a.set(e,n);var f=li(s(e),s(n),r,i,o,a);return a.delete(e),f;case jo:if(cn)return cn.call(e)==cn.call(n)}return!1}var Yo=1,Zo=Object.prototype,Jo=Zo.hasOwnProperty;function Xo(e,n,t,r,i,o){var a=t&Yo,s=p.getAllKeys(e),c=s.length,u=p.getAllKeys(n),f=u.length;if(c!=f&&!a)return!1;for(var h=c;h--;){var d=s[h];if(!(a?d in n:Jo.call(n,d)))return!1}var v=o.get(e),g=o.get(n);if(v&&g)return v==n&&g==e;var m=!0;o.set(e,n),o.set(n,e);for(var y=a;++h<c;){d=s[h];var b=e[d],S=n[d];if(r)var x=a?r(S,b,d,n,e,o):r(b,S,d,e,n,o);if(!(x===void 0?b===S||i(b,S,t,r,o):x)){m=!1;break}y||(y=d=="constructor")}if(m&&!y){var E=e.constructor,k=n.constructor;E!=k&&"constructor"in e&&"constructor"in n&&!(typeof E=="function"&&E instanceof E&&typeof k=="function"&&k instanceof k)&&(m=!1)}return o.delete(e),o.delete(n),m}var Qo=1,mr="[object Arguments]",Sr="[object Array]",xt="[object Object]",ea=Object.prototype,Er=ea.hasOwnProperty;function ta(e,n,t,r,i,o){var a=p.isArray(e),s=p.isArray(n),c=a?Sr:p.getTag(e),u=s?Sr:p.getTag(n);c=c==mr?xt:c,u=u==mr?xt:u;var f=c==xt,h=u==xt,d=c==u;if(d&&p.isBuffer(e)){if(!p.isBuffer(n))return!1;a=!0,f=!1}if(d&&!f)return o||(o=new p.Stack),a||p.isTypedArray(e)?li(e,n,t,r,i,o):Wo(e,n,c,t,r,i,o);if(!(t&Qo)){var v=f&&Er.call(e,"__wrapped__"),g=h&&Er.call(n,"__wrapped__");if(v||g){var m=v?e.value():e,y=g?n.value():n;return o||(o=new p.Stack),i(m,y,t,r,o)}}return d?(o||(o=new p.Stack),Xo(e,n,t,r,i,o)):!1}function Kn(e,n,t,r,i){return e===n?!0:e==null||n==null||!p.isObjectLike(e)&&!p.isObjectLike(n)?e!==e&&n!==n:ta(e,n,t,r,Kn,i)}function na(e,n){return e!=null&&n in Object(e)}function ra(e,n,t){n=p.castPath(n,e);for(var r=-1,i=n.length,o=!1;++r<i;){var a=p.toKey(n[r]);if(!(o=e!=null&&t(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&p.isLength(i)&&p.isIndex(a,i)&&(p.isArray(e)||p.isArguments(e)))}function ci(e,n){return e!=null&&ra(e,n,na)}function fi(e,n){return Kn(e,n)}function ia(e,n,t){for(var r=-1,i=n.length,o={};++r<i;){var a=n[r],s=p.baseGet(e,a);t(s,a)&&p.baseSet(o,p.castPath(a,e),s)}return o}function oa(e,n){return ia(e,n,function(t,r){return ci(e,r)})}var hi=ai(function(e,n){return e==null?{}:oa(e,n)});const jt="update:modelValue",Tn="change",wn="input";function aa(e,n,t,r){const i=t-n;return e/=r/2,e<1?i/2*e*e*e+n:i/2*((e-=2)*e*e+2)+n}const pi=e=>p.isClient?window.requestAnimationFrame(e):setTimeout(e,16),di=e=>p.isClient?window.cancelAnimationFrame(e):clearTimeout(e),sa=(e,n)=>{if(!p.isClient)return!1;const t={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(n)],r=p.getStyle(e,t);return["scroll","auto","overlay"].some(i=>r.includes(i))},la=(e,n)=>{if(!p.isClient)return;let t=e;for(;t;){if([window,document,document.documentElement].includes(t))return window;if(sa(t,n))return t;t=t.parentNode}return t};let Bt;const gi=e=>{var n;if(!p.isClient)return 0;if(Bt!==void 0)return Bt;const t=document.createElement("div");t.className=`${e}-scrollbar__wrap`,t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const r=t.offsetWidth;t.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",t.appendChild(i);const o=i.offsetWidth;return(n=t.parentNode)==null||n.removeChild(t),Bt=r-o,Bt};function ua(e,n){if(!p.isClient)return;if(!n){e.scrollTop=0;return}const t=[];let r=n.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)t.push(r),r=r.offsetParent;const i=n.offsetTop+t.reduce((c,u)=>c+u.offsetTop,0),o=i+n.offsetHeight,a=e.scrollTop,s=a+e.clientHeight;i<a?e.scrollTop=i:o>s&&(e.scrollTop=o-e.clientHeight)}function ca(e,n,t,r,i){const o=Date.now();let a;const s=()=>{const u=Date.now()-o,f=aa(u>r?r:u,n,t,r);p.isWindow(e)?e.scrollTo(window.pageXOffset,f):e.scrollTop=f,u<r?a=pi(s):p.isFunction(i)&&i()};return s(),()=>{a&&di(a)}}const fa=(e,n)=>p.isWindow(n)?e.ownerDocument.documentElement:n,ha=e=>p.isWindow(e)?window.scrollY:e.scrollTop,yi=()=>p.isClient&&/firefox/i.test(window.navigator.userAgent);let Te;const pa={height:"0",visibility:"hidden",overflow:yi()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},da=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function ga(e){const n=window.getComputedStyle(e),t=n.getPropertyValue("box-sizing"),r=Number.parseFloat(n.getPropertyValue("padding-bottom"))+Number.parseFloat(n.getPropertyValue("padding-top")),i=Number.parseFloat(n.getPropertyValue("border-bottom-width"))+Number.parseFloat(n.getPropertyValue("border-top-width"));return{contextStyle:da.map(a=>[a,n.getPropertyValue(a)]),paddingSize:r,borderSize:i,boxSizing:t}}function Tr(e,n=1,t){var r;Te||(Te=document.createElement("textarea"),document.body.appendChild(Te));const{paddingSize:i,borderSize:o,boxSizing:a,contextStyle:s}=ga(e);s.forEach(([h,d])=>Te==null?void 0:Te.style.setProperty(h,d)),Object.entries(pa).forEach(([h,d])=>Te==null?void 0:Te.style.setProperty(h,d,"important")),Te.value=e.value||e.placeholder||"";let c=Te.scrollHeight;const u={};a==="border-box"?c=c+o:a==="content-box"&&(c=c-i),Te.value="";const f=Te.scrollHeight-i;if(p.isNumber(n)){let h=f*n;a==="border-box"&&(h=h+i+o),c=Math.max(h,c),u.minHeight=`${h}px`}if(p.isNumber(t)){let h=f*t;a==="border-box"&&(h=h+i+o),c=Math.min(h,c)}return u.height=`${c}px`,(r=Te.parentNode)==null||r.removeChild(Te),Te=void 0,u}const ya=p.buildProps({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),vi=e=>hi(ya,e),bi=p.buildProps({id:{type:String,default:void 0},size:p.useSizeProp,disabled:Boolean,modelValue:{type:p.definePropType([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:p.definePropType([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:p.iconPropType},prefixIcon:{type:p.iconPropType},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:p.definePropType([Object,Array,String]),default:()=>p.mutable({})},autofocus:Boolean,rows:{type:Number,default:2},...vi(["ariaLabel"])}),va={[jt]:e=>p.isString(e),input:e=>p.isString(e),change:e=>p.isString(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},ba=["class","style"],ma=/^on[A-Z]/,mi=(e={})=>{const{excludeListeners:n=!1,excludeKeys:t}=e,r=l.computed(()=>((t==null?void 0:t.value)||[]).concat(ba)),i=l.getCurrentInstance();return i?l.computed(()=>{var o;return p.fromPairs(Object.entries((o=i.proxy)==null?void 0:o.$attrs).filter(([a])=>!r.value.includes(a)&&!(n&&ma.test(a))))}):(p.debugWarn("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),l.computed(()=>({})))},Dn={prefix:Math.floor(Math.random()*1e4),current:0},Sa=Symbol("elIdInjection"),Si=()=>l.getCurrentInstance()?l.inject(Sa,Dn):Dn,qt=e=>{const n=Si();!p.isClient&&n===Dn&&p.debugWarn("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
|
|
1
|
+
"use strict";const p=require("./index-BOJUyAaV.cjs"),l=require("vue");function ni(e){return e}function So(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}var Eo=800,To=16,wo=Date.now;function Do(e){var n=0,t=0;return function(){var r=wo(),i=To-(r-t);if(t=r,i>0){if(++n>=Eo)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}function Ao(e){return function(){return e}}var ko=p.defineProperty?function(e,n){return p.defineProperty(e,"toString",{configurable:!0,enumerable:!1,value:Ao(n),writable:!0})}:ni,ri=Do(ko),yr=Math.max;function ii(e,n,t){return n=yr(n===void 0?e.length-1:n,0),function(){for(var r=arguments,i=-1,o=yr(r.length-n,0),a=Array(o);++i<o;)a[i]=r[n+i];i=-1;for(var s=Array(n+1);++i<n;)s[i]=r[i];return s[n]=t(a),So(e,this,s)}}var vr=p.Symbol?p.Symbol.isConcatSpreadable:void 0;function Co(e){return p.isArray(e)||p.isArguments(e)||!!(vr&&e&&e[vr])}function Ln(e,n,t,r,i){var o=-1,a=e.length;for(t||(t=Co),i||(i=[]);++o<a;){var s=e[o];n>0&&t(s)?n>1?Ln(s,n-1,t,r,i):p.arrayPush(i,s):r||(i[i.length]=s)}return i}function oi(e){var n=e==null?0:e.length;return n?Ln(e,1):[]}function ai(e){return ri(ii(e,void 0,oi),e+"")}var Io="__lodash_hash_undefined__";function xo(e){return this.__data__.set(e,Io),this}function Bo(e){return this.__data__.has(e)}function Et(e){var n=-1,t=e==null?0:e.length;for(this.__data__=new p.MapCache;++n<t;)this.add(e[n])}Et.prototype.add=Et.prototype.push=xo;Et.prototype.has=Bo;function Ro(e,n){for(var t=-1,r=e==null?0:e.length;++t<r;)if(n(e[t],t,e))return!0;return!1}function si(e,n){return e.has(n)}var Mo=1,No=2;function li(e,n,t,r,i,o){var a=t&Mo,s=e.length,c=n.length;if(s!=c&&!(a&&c>s))return!1;var u=o.get(e),f=o.get(n);if(u&&f)return u==n&&f==e;var h=-1,d=!0,v=t&No?new Et:void 0;for(o.set(e,n),o.set(n,e);++h<s;){var g=e[h],m=n[h];if(r)var y=a?r(m,g,h,n,e,o):r(g,m,h,e,n,o);if(y!==void 0){if(y)continue;d=!1;break}if(v){if(!Ro(n,function(b,S){if(!si(v,S)&&(g===b||i(g,b,t,r,o)))return v.push(S)})){d=!1;break}}else if(!(g===m||i(g,m,t,r,o))){d=!1;break}}return o.delete(e),o.delete(n),d}function Oo(e){var n=-1,t=Array(e.size);return e.forEach(function(r,i){t[++n]=[i,r]}),t}function ui(e){var n=-1,t=Array(e.size);return e.forEach(function(r){t[++n]=r}),t}var Po=1,Vo=2,Fo="[object Boolean]",Lo="[object Date]",Ko="[object Error]",_o="[object Map]",Ho="[object Number]",$o="[object RegExp]",Uo="[object Set]",zo="[object String]",jo="[object Symbol]",qo="[object ArrayBuffer]",Go="[object DataView]",br=p.Symbol?p.Symbol.prototype:void 0,cn=br?br.valueOf:void 0;function Wo(e,n,t,r,i,o,a){switch(t){case Go:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case qo:return!(e.byteLength!=n.byteLength||!o(new p.Uint8Array(e),new p.Uint8Array(n)));case Fo:case Lo:case Ho:return p.eq(+e,+n);case Ko:return e.name==n.name&&e.message==n.message;case $o:case zo:return e==n+"";case _o:var s=Oo;case Uo:var c=r&Po;if(s||(s=ui),e.size!=n.size&&!c)return!1;var u=a.get(e);if(u)return u==n;r|=Vo,a.set(e,n);var f=li(s(e),s(n),r,i,o,a);return a.delete(e),f;case jo:if(cn)return cn.call(e)==cn.call(n)}return!1}var Yo=1,Zo=Object.prototype,Jo=Zo.hasOwnProperty;function Xo(e,n,t,r,i,o){var a=t&Yo,s=p.getAllKeys(e),c=s.length,u=p.getAllKeys(n),f=u.length;if(c!=f&&!a)return!1;for(var h=c;h--;){var d=s[h];if(!(a?d in n:Jo.call(n,d)))return!1}var v=o.get(e),g=o.get(n);if(v&&g)return v==n&&g==e;var m=!0;o.set(e,n),o.set(n,e);for(var y=a;++h<c;){d=s[h];var b=e[d],S=n[d];if(r)var x=a?r(S,b,d,n,e,o):r(b,S,d,e,n,o);if(!(x===void 0?b===S||i(b,S,t,r,o):x)){m=!1;break}y||(y=d=="constructor")}if(m&&!y){var E=e.constructor,k=n.constructor;E!=k&&"constructor"in e&&"constructor"in n&&!(typeof E=="function"&&E instanceof E&&typeof k=="function"&&k instanceof k)&&(m=!1)}return o.delete(e),o.delete(n),m}var Qo=1,mr="[object Arguments]",Sr="[object Array]",xt="[object Object]",ea=Object.prototype,Er=ea.hasOwnProperty;function ta(e,n,t,r,i,o){var a=p.isArray(e),s=p.isArray(n),c=a?Sr:p.getTag(e),u=s?Sr:p.getTag(n);c=c==mr?xt:c,u=u==mr?xt:u;var f=c==xt,h=u==xt,d=c==u;if(d&&p.isBuffer(e)){if(!p.isBuffer(n))return!1;a=!0,f=!1}if(d&&!f)return o||(o=new p.Stack),a||p.isTypedArray(e)?li(e,n,t,r,i,o):Wo(e,n,c,t,r,i,o);if(!(t&Qo)){var v=f&&Er.call(e,"__wrapped__"),g=h&&Er.call(n,"__wrapped__");if(v||g){var m=v?e.value():e,y=g?n.value():n;return o||(o=new p.Stack),i(m,y,t,r,o)}}return d?(o||(o=new p.Stack),Xo(e,n,t,r,i,o)):!1}function Kn(e,n,t,r,i){return e===n?!0:e==null||n==null||!p.isObjectLike(e)&&!p.isObjectLike(n)?e!==e&&n!==n:ta(e,n,t,r,Kn,i)}function na(e,n){return e!=null&&n in Object(e)}function ra(e,n,t){n=p.castPath(n,e);for(var r=-1,i=n.length,o=!1;++r<i;){var a=p.toKey(n[r]);if(!(o=e!=null&&t(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&p.isLength(i)&&p.isIndex(a,i)&&(p.isArray(e)||p.isArguments(e)))}function ci(e,n){return e!=null&&ra(e,n,na)}function fi(e,n){return Kn(e,n)}function ia(e,n,t){for(var r=-1,i=n.length,o={};++r<i;){var a=n[r],s=p.baseGet(e,a);t(s,a)&&p.baseSet(o,p.castPath(a,e),s)}return o}function oa(e,n){return ia(e,n,function(t,r){return ci(e,r)})}var hi=ai(function(e,n){return e==null?{}:oa(e,n)});const jt="update:modelValue",Tn="change",wn="input";function aa(e,n,t,r){const i=t-n;return e/=r/2,e<1?i/2*e*e*e+n:i/2*((e-=2)*e*e+2)+n}const pi=e=>p.isClient?window.requestAnimationFrame(e):setTimeout(e,16),di=e=>p.isClient?window.cancelAnimationFrame(e):clearTimeout(e),sa=(e,n)=>{if(!p.isClient)return!1;const t={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(n)],r=p.getStyle(e,t);return["scroll","auto","overlay"].some(i=>r.includes(i))},la=(e,n)=>{if(!p.isClient)return;let t=e;for(;t;){if([window,document,document.documentElement].includes(t))return window;if(sa(t,n))return t;t=t.parentNode}return t};let Bt;const gi=e=>{var n;if(!p.isClient)return 0;if(Bt!==void 0)return Bt;const t=document.createElement("div");t.className=`${e}-scrollbar__wrap`,t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const r=t.offsetWidth;t.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",t.appendChild(i);const o=i.offsetWidth;return(n=t.parentNode)==null||n.removeChild(t),Bt=r-o,Bt};function ua(e,n){if(!p.isClient)return;if(!n){e.scrollTop=0;return}const t=[];let r=n.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)t.push(r),r=r.offsetParent;const i=n.offsetTop+t.reduce((c,u)=>c+u.offsetTop,0),o=i+n.offsetHeight,a=e.scrollTop,s=a+e.clientHeight;i<a?e.scrollTop=i:o>s&&(e.scrollTop=o-e.clientHeight)}function ca(e,n,t,r,i){const o=Date.now();let a;const s=()=>{const u=Date.now()-o,f=aa(u>r?r:u,n,t,r);p.isWindow(e)?e.scrollTo(window.pageXOffset,f):e.scrollTop=f,u<r?a=pi(s):p.isFunction(i)&&i()};return s(),()=>{a&&di(a)}}const fa=(e,n)=>p.isWindow(n)?e.ownerDocument.documentElement:n,ha=e=>p.isWindow(e)?window.scrollY:e.scrollTop,yi=()=>p.isClient&&/firefox/i.test(window.navigator.userAgent);let Te;const pa={height:"0",visibility:"hidden",overflow:yi()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},da=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function ga(e){const n=window.getComputedStyle(e),t=n.getPropertyValue("box-sizing"),r=Number.parseFloat(n.getPropertyValue("padding-bottom"))+Number.parseFloat(n.getPropertyValue("padding-top")),i=Number.parseFloat(n.getPropertyValue("border-bottom-width"))+Number.parseFloat(n.getPropertyValue("border-top-width"));return{contextStyle:da.map(a=>[a,n.getPropertyValue(a)]),paddingSize:r,borderSize:i,boxSizing:t}}function Tr(e,n=1,t){var r;Te||(Te=document.createElement("textarea"),document.body.appendChild(Te));const{paddingSize:i,borderSize:o,boxSizing:a,contextStyle:s}=ga(e);s.forEach(([h,d])=>Te==null?void 0:Te.style.setProperty(h,d)),Object.entries(pa).forEach(([h,d])=>Te==null?void 0:Te.style.setProperty(h,d,"important")),Te.value=e.value||e.placeholder||"";let c=Te.scrollHeight;const u={};a==="border-box"?c=c+o:a==="content-box"&&(c=c-i),Te.value="";const f=Te.scrollHeight-i;if(p.isNumber(n)){let h=f*n;a==="border-box"&&(h=h+i+o),c=Math.max(h,c),u.minHeight=`${h}px`}if(p.isNumber(t)){let h=f*t;a==="border-box"&&(h=h+i+o),c=Math.min(h,c)}return u.height=`${c}px`,(r=Te.parentNode)==null||r.removeChild(Te),Te=void 0,u}const ya=p.buildProps({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),vi=e=>hi(ya,e),bi=p.buildProps({id:{type:String,default:void 0},size:p.useSizeProp,disabled:Boolean,modelValue:{type:p.definePropType([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:p.definePropType([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:p.iconPropType},prefixIcon:{type:p.iconPropType},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:p.definePropType([Object,Array,String]),default:()=>p.mutable({})},autofocus:Boolean,rows:{type:Number,default:2},...vi(["ariaLabel"])}),va={[jt]:e=>p.isString(e),input:e=>p.isString(e),change:e=>p.isString(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},ba=["class","style"],ma=/^on[A-Z]/,mi=(e={})=>{const{excludeListeners:n=!1,excludeKeys:t}=e,r=l.computed(()=>((t==null?void 0:t.value)||[]).concat(ba)),i=l.getCurrentInstance();return i?l.computed(()=>{var o;return p.fromPairs(Object.entries((o=i.proxy)==null?void 0:o.$attrs).filter(([a])=>!r.value.includes(a)&&!(n&&ma.test(a))))}):(p.debugWarn("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),l.computed(()=>({})))},Dn={prefix:Math.floor(Math.random()*1e4),current:0},Sa=Symbol("elIdInjection"),Si=()=>l.getCurrentInstance()?l.inject(Sa,Dn):Dn,qt=e=>{const n=Si();!p.isClient&&n===Dn&&p.debugWarn("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
|
|
2
2
|
usage: app.provide(ID_INJECTION_KEY, {
|
|
3
3
|
prefix: number,
|
|
4
4
|
current: number,
|
|
@@ -29,4 +29,4 @@ version: 2.9.0
|
|
|
29
29
|
`;return t+=n.wordwrap(this.getPrivateBaseKeyB64())+`
|
|
30
30
|
`,t+="-----END RSA PRIVATE KEY-----",t},n.prototype.getPublicKey=function(){var t=`-----BEGIN PUBLIC KEY-----
|
|
31
31
|
`;return t+=n.wordwrap(this.getPublicBaseKeyB64())+`
|
|
32
|
-
`,t+="-----END PUBLIC KEY-----",t},n.hasPublicKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")},n.hasPrivateKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},n.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},n}($l),mn,Gl=typeof process<"u"?(mn=process.env)===null||mn===void 0?void 0:mn.npm_package_version:void 0,ln=function(){function e(n){n===void 0&&(n={}),n=n||{},this.default_key_size=n.default_key_size?parseInt(n.default_key_size,10):1024,this.default_public_exponent=n.default_public_exponent||"010001",this.log=n.log||!1,this.key=null}return e.prototype.setKey=function(n){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new Zr(n)},e.prototype.setPrivateKey=function(n){this.setKey(n)},e.prototype.setPublicKey=function(n){this.setKey(n)},e.prototype.decrypt=function(n){try{return this.getKey().decrypt(Ur(n))}catch{return!1}},e.prototype.encrypt=function(n){try{return Wt(this.getKey().encrypt(n))}catch{return!1}},e.prototype.sign=function(n,t,r){try{return Wt(this.getKey().sign(n,t,r))}catch{return!1}},e.prototype.verify=function(n,t,r){try{return this.getKey().verify(n,Ur(t),r)}catch{return!1}},e.prototype.getKey=function(n){if(!this.key){if(this.key=new Zr,n&&{}.toString.call(n)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,n);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=Gl,e}();function Wl(){const e=new ln({default_key_size:"2048"});return{publicKey:e.getPublicKey(),privateKey:e.getPrivateKey()}}function vt(e,n){const t=new ln;return t.setPublicKey(n),t.encrypt(e)||""}function nr(e,n){const t=new ln;return t.setPrivateKey(n),t.decrypt(e)||""}function Jr(){return typeof new ln().encrypt=="function"}const lo=p.useLoginState(p.pinia),{superAdminInfo:Yl,cryptoInfo:me,loginUserInfo:Sn}=p.storeToRefs(lo),Zl=kt(p.pinia),{activeMenuPath:mt}=p.storeToRefs(Zl),Mn=pt(p.pinia),ut="123456",Jl=Gn(p.pinia),{routerPageStructures:Xl}=p.storeToRefs(Jl),rr=l.ref(0),Ql=l.ref([{label:"用户名称",value:"",name:"userName"}]),nt=l.computed(()=>{const e=sessionStorage.getItem("isSuperAdmin");return e?JSON.parse(e):!1}),eu=e=>{console.log("handleQueryChange",e)},Yt=l.ref([]),uo=l.ref(""),Zt=l.computed(()=>{var n,t,r,i,o;const e=(n=Xl.value)==null?void 0:n.find(a=>{var s;return((s=a==null?void 0:a.comp)==null?void 0:s.toUpperCase())==="TABLE"});return e?(uo.value=e.name,Yt.value=(i=(r=(t=e==null?void 0:e.compData)==null?void 0:t.find(s=>(s==null?void 0:s.key)==="header"))==null?void 0:r.contents)==null?void 0:i.filter(s=>(s==null?void 0:s.label)!=="操作"),(o=e==null?void 0:e.compData)==null?void 0:o.map(s=>{var c;if((s==null?void 0:s.key)==="rowButton"){const u=[...s==null?void 0:s.contents,{label:"重置密码"}];return{...s,contents:u}}return(s==null?void 0:s.key)==="header"?{...s,contents:(c=s==null?void 0:s.contents)==null?void 0:c.map(u=>{var f,h,d,v;return{...u,isTableColHidden:((f=u==null?void 0:u.prop)==null?void 0:f.includes("头像"))||((h=u==null?void 0:u.prop)==null?void 0:h.includes("签名")),isFormColHidden:((d=u==null?void 0:u.prop)==null?void 0:d.includes("头像"))||((v=u==null?void 0:u.prop)==null?void 0:v.includes("签名"))}})}:s})):[]}),tu=e=>{Mn.setRefreshCurStructure(!1),un(e.singleContent,e.buttonName,rr.value,e==null?void 0:e.selectItems)},Nn=l.ref(),nu=e=>{console.log("onDoubleClick",e)},ru=(e,n)=>{e==="重置密码"&&Ui.confirm(`该操作将会重置【${(n==null?void 0:n.account)||(n==null?void 0:n.账号)}】的密码为【${ut}】,确认重置?`,"警告",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{Nn.value={...n,password:ut},un(Nn.value,e,rr.value)}).catch(()=>{p.ElMessage.info("取消重置")})},iu=()=>{Jt(mt.value).then(e=>{var t;const n=Array.isArray(e)&&(e==null?void 0:e.filter(r=>(r==null?void 0:r.account)!==Yl.value.account));Zt.value=(t=Zt.value)==null?void 0:t.map(r=>r.key==="tableContents"?{...r,contents:n==null?void 0:n.map(i=>{var o;return{...i,password:nr(i==null?void 0:i.password,(o=me==null?void 0:me.value)==null?void 0:o.privateKey)}})}:r)})},ct=async(e,n,t)=>{var r,i;try{const o=await e(n);return((r=o==null?void 0:o.data)==null?void 0:r.code)===200?(t!=="查询"&&await lo.setLogRecordAsync({type:t,data:n},mt.value),p.ElMessage.success("保存成功"),Mn.setRefreshCurStructure(!0),o.data.result||((i=o==null?void 0:o.data)==null?void 0:i.code)===200):null}catch(o){p.ElMessage.error(o)}finally{Mn.setCacheUpdatingData(null)}},ou=async(e,n)=>{var o,a;let t=[];Array.isArray(e)?t=p.cloneDeep(e):t=[p.cloneDeep(e)];const r=(o=t==null?void 0:t.filter(s=>typeof(s==null?void 0:s.id)=="string"))==null?void 0:o.map(s=>{var u,f,h,d,v,g,m;const c=Dt(s,Yt.value);return Jr()&&c&&(!c.password&&nt.value?c.password=vt(ut,(u=me==null?void 0:me.value)==null?void 0:u.publicKey):c.password&&nt.value&&(c.password=vt(c==null?void 0:c.password,(f=me==null?void 0:me.value)==null?void 0:f.publicKey))),{key:{type:"data",layer:s==null?void 0:s.layer,systemKey:sessionStorage.getItem("systemKey"),pageKey:(h=mt.value)!=null&&h.startsWith("/")?(d=mt.value)==null?void 0:d.substring(1):mt.value,tableId:n,createUserId:(v=Sn.value)==null?void 0:v.id,createUserOrg:((g=Sn.value)==null?void 0:g.dept)||((m=Sn.value)==null?void 0:m.部门名称)},value:{tableData:c}}}),i=(a=t==null?void 0:t.filter(s=>typeof(s==null?void 0:s.id)=="number"))==null?void 0:a.map(s=>{var u,f;const c=Dt(s,Yt.value);return Jr()&&c&&(!c.password&&nt.value?c.password=vt(ut,(u=me==null?void 0:me.value)==null?void 0:u.publicKey):c.password&&nt.value&&(c.password=vt(c==null?void 0:c.password,(f=me==null?void 0:me.value)==null?void 0:f.publicKey))),{id:s==null?void 0:s.id,value:{tableData:c}}});r.length>0&&await ct(p.batchAddInsofDataApi,{dataList:r},"新增"),i.length>0&&(await ct(p.batchUpdateInsofDataApi,{dataList:i},"编辑"),qe.show=!1)},un=async(e,n,t,r)=>{if(!(n!=null&&n.includes("删除")))await ou(e,t);else{let i=[];n!=null&&n.includes("批量")?i=r&&(r==null?void 0:r.length)>0?r==null?void 0:r.map(o=>o==null?void 0:o.id):[]:i=[e==null?void 0:e.id],await ct(p.batchDeleteInsofDataApi,{ids:i},"编辑")}},Jt=async e=>{const n=await ct(p.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:e}},"查询"),t=n==null?void 0:n.map(r=>{var i,o;return{id:r.id,layer:(i=r.key)==null?void 0:i.layer,tableData:(o=r==null?void 0:r.value)==null?void 0:o.tableData}});return t==null?void 0:t.map(r=>{var i;if(!Array.isArray(r==null?void 0:r.tableData))return{...r.tableData,layer:(i=r.key)==null?void 0:i.layer,id:r.id}})},au={comp:"Group",name:"/系统管理/用户管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:Zt.value,name:""}]}]},su=Object.freeze(Object.defineProperty({__proto__:null,changedRow:Nn,clickRowButton:ru,columns:Yt,compName:uo,getPageDataAsync:Jt,handleItemDataChange:tu,handleQueryChange:eu,handleSubmitAsync:ct,loginUserIsSuper:nt,onDoubleClick:nu,pageData:Zt,queryFormData:Ql,refreshUserTableData:iu,resetPassword:ut,structureId:rr,submitTableAsyncByVerify:un,tempUserPageData:au},Symbol.toStringTag,{value:"Module"})),Ct=p.defineStore("originalState",{state:()=>({originalPath:"^"}),actions:{}}),lu=pt(p.pinia),{routeToChildPath:Xr}=p.storeToRefs(lu),uu=p.useLoginState(p.pinia),{loginUserInfo:Xt,cryptoInfo:En}=p.storeToRefs(uu),cu=Ct(p.pinia),{originalPath:Qr}=p.storeToRefs(cu),fu=e=>{var n,t,r;return((t=(n=Xt.value)==null?void 0:n.layer)==null?void 0:t.toUpperCase())==="SUPERADMIN"?!0:((r=Xt.value)==null?void 0:r.account)===(e==null?void 0:e.account)},hu=async(e,n,t)=>{const r=Jt("/系统管理/角色管理"),i=Jt("/系统管理/部门管理");return await Promise.all([r,i]).then(a=>{var u,f;const s=(u=a==null?void 0:a[0])==null?void 0:u.map(h=>({label:h==null?void 0:h.roleName,value:h==null?void 0:h.roleName})),c=(f=a==null?void 0:a[1])==null?void 0:f.map(h=>({label:h==null?void 0:h.deptName,value:h==null?void 0:h.deptName}));return e==null?void 0:e.map(h=>{var d;return{...h,compData:(d=h==null?void 0:h.compData)==null?void 0:d.map(v=>{var g,m;return(v==null?void 0:v.key)==="header"?{...v,contents:(g=v==null?void 0:v.contents)==null?void 0:g.map(y=>y.prop==="userDept"?{...y,options:c}:y.prop==="userRoles"?{...y,options:s}:y)}:(v==null?void 0:v.key)==="tableContents"?{...v,contents:(m=v==null?void 0:v.contents)==null?void 0:m.map(y=>{var b;return{...y,password:fu(y)?nr(y==null?void 0:y.password,(b=En==null?void 0:En.value)==null?void 0:b.privateKey):y==null?void 0:y.password}})}:v})}})})},pu=async(e,n)=>{const t=sessionStorage.getItem("authority"),r=JSON.parse(t||"");if(Array.isArray(r)){let i;Xr.value?i=Array.isArray(r)&&(r==null?void 0:r.filter(s=>(s==null?void 0:s.includes(e))||(s==null?void 0:s.includes(Xr.value)))):i=Array.isArray(r)&&(r==null?void 0:r.filter(s=>s==null?void 0:s.includes(e)));const o=i==null?void 0:i.map(s=>{var c;return((c=s==null?void 0:s.split("/"))==null?void 0:c.pop())||""});return n==null?void 0:n.map(s=>{var c;return{...s,compData:(c=s==null?void 0:s.compData)==null?void 0:c.map(u=>{var f;return(u==null?void 0:u.key)==="rowButton"||(u==null?void 0:u.key)==="extraButton"?{...u,contents:(f=u==null?void 0:u.contents)==null?void 0:f.filter(h=>o==null?void 0:o.includes(h==null?void 0:h.label))}:u})}})}else return typeof r=="string"&&(r==null?void 0:r.toUpperCase())==="SUPERADMIN"?e==="/系统管理/用户管理"?await hu(n):n:[]},du=(e,n)=>{var o,a,s,c;const t=(a=(o=n["系统管理/角色管理"])==null?void 0:o.filter(u=>{var f;return((f=u==null?void 0:u.key)==null?void 0:f.type)==="data"}))==null?void 0:a.map(u=>u.value.tableData),r=(c=(s=e==null?void 0:e.value)==null?void 0:s.tableData)==null?void 0:c.角色名称,i=t==null?void 0:t.find(u=>(u==null?void 0:u.角色名称)===r);return i==null?void 0:i.数据范围};var zt=(e=>(e[e.全部数据权限=0]="全部数据权限",e[e.本部门数据权限=1]="本部门数据权限",e[e.本部门及以下数据权限=2]="本部门及以下数据权限",e[e.仅本人数据权限=3]="仅本人数据权限",e[e.自定义数据权限=4]="自定义数据权限",e))(zt||{});const co=(e,n,t)=>{var a,s,c,u;if(((c=(s=(a=Xt.value)==null?void 0:a.key)==null?void 0:s.layer)==null?void 0:c.toUpperCase())==="SUPERADMIN"||!t)return e;const r=(u=t==null?void 0:t["系统管理/用户管理"])==null?void 0:u.find(f=>{var h;return(f==null?void 0:f.id)===((h=Xt.value)==null?void 0:h.id)}),i=du(r,t);if(!i)return e;switch(zt==null?void 0:zt[i]){case 0:return e;case 1:return n?e===null&&typeof e!="object"?e:Object.fromEntries(Object.entries(e).filter(([h,d])=>{var m,y,b,S,x,E,k,w,A;const v=d==null?void 0:d[1],g=h[(h==null?void 0:h.length)-1]===Qr.value;return((y=(m=v==null?void 0:v.key)==null?void 0:m.createUserLayer)==null?void 0:y.toUpperCase())==="SUPERADMIN"||((b=v==null?void 0:v.key)==null?void 0:b.createUserOrg)===((x=(S=r==null?void 0:r.value)==null?void 0:S.tableData)==null?void 0:x.部门名称)||((E=v==null?void 0:v.key)==null?void 0:E.createUserOrg)===((w=(k=r==null?void 0:r.value)==null?void 0:k.tableData)==null?void 0:w.部门名称)&&((A=v==null?void 0:v.key)==null?void 0:A.createUserId)===(r==null?void 0:r.id)||g})):e==null?void 0:e.filter(f=>{var h,d,v,g,m,y,b,S,x;return((d=(h=f==null?void 0:f.key)==null?void 0:h.createUserLayer)==null?void 0:d.toUpperCase())==="SUPERADMIN"||((v=f==null?void 0:f.key)==null?void 0:v.createUserOrg)===((m=(g=r==null?void 0:r.value)==null?void 0:g.tableData)==null?void 0:m.部门名称)||((y=f==null?void 0:f.key)==null?void 0:y.createUserOrg)===((S=(b=r==null?void 0:r.value)==null?void 0:b.tableData)==null?void 0:S.部门名称)&&((x=f==null?void 0:f.key)==null?void 0:x.createUserId)===(r==null?void 0:r.id)});case 2:break;case 3:return n?e===null&&typeof e!="object"?e:Object.fromEntries(Object.entries(e).filter(([h,d])=>{var m;const v=d==null?void 0:d[1],g=h[(h==null?void 0:h.length)-1]===Qr.value;return((m=v==null?void 0:v.key)==null?void 0:m.createUserId)===(r==null?void 0:r.id)||g})):e==null?void 0:e.filter(f=>{var h;return((h=f==null?void 0:f.key)==null?void 0:h.createUserId)===(r==null?void 0:r.id)})}},On=kt(p.pinia),{activeMenuPath:gu}=p.storeToRefs(On),ft=pt(p.pinia),yu=Ct(p.pinia),{originalPath:fo}=p.storeToRefs(yu),vu=async(e,n,t,r)=>{var g,m,y,b,S,x,E,k,w,A,T,N,D,C,M,O,Y,X,F,V,$,Z,te,_,B,P,L,z,Q,K,U,ae,j,ce,q,Ee,fe;const i=(m=(g=e==null?void 0:e.find(ne=>(ne==null?void 0:ne.key)==="header"))==null?void 0:g.contents)==null?void 0:m.find(ne=>ne==null?void 0:ne.columnPath);let o=(w=(k=(E=(x=(y=p.cloneDeep(i==null?void 0:i.columnPath))==null?void 0:y.split("["))==null?void 0:x[((S=(b=i==null?void 0:i.columnPath)==null?void 0:b.split("["))==null?void 0:S.length)-1])==null?void 0:E.split("]"))==null?void 0:k[0])==null?void 0:w.replaceAll("'",""),a=(T=(A=p.cloneDeep(i==null?void 0:i.columnPath))==null?void 0:A.split("['"+o+"']"))==null?void 0:T[0],s="",c="",u="";if(a.includes("[")){let ne=(M=(C=(D=(N=a==null?void 0:a.split("["))==null?void 0:N[1])==null?void 0:D.split("]"))==null?void 0:C[0])==null?void 0:M.split("/");c=a,s=(X=(Y=(O=a==null?void 0:a.split("["))==null?void 0:O[1])==null?void 0:Y.split("]"))==null?void 0:X[0];let re="";t==null||t.forEach(le=>{var ye,Ae,ke,Be,W;((Ae=(ye=le==null?void 0:le.value)==null?void 0:ye.pageData)==null?void 0:Ae.name)===(ne==null?void 0:ne[0])&&((W=(Be=(ke=le==null?void 0:le.value)==null?void 0:ke.pageData)==null?void 0:Be.compData)==null||W.forEach(ie=>{var R;(ie==null?void 0:ie.key)==="formContent"&&((R=ie==null?void 0:ie.contents)==null||R.forEach(G=>{var ve;if((G==null?void 0:G.prop)===(ne==null?void 0:ne[1])){let Re=mo((ve=p.cloneDeep(G))==null?void 0:ve.optionUrl,r);re=(G==null?void 0:G.value)||Re||""}}))}))}),u=re,a=((F=a==null?void 0:a.split("["))==null?void 0:F[0])+re}let f=[];const h=await p.getInsofDataApi({key:{pageKey:a,systemKey:sessionStorage.getItem("systemKey"),type:"structure"}}),d=await p.getInsofDataApi({key:{pageKey:gu.value,systemKey:sessionStorage.getItem("systemKey"),tableId:parseInt(n),type:"data"}}),v=[];if(($=(V=d==null?void 0:d.data)==null?void 0:V.result)==null||$.forEach(ne=>{v.push([{id:ne==null?void 0:ne.id},ne.value.tableData])}),Array.isArray((Z=h==null?void 0:h.data)==null?void 0:Z.result)&&((_=(te=h==null?void 0:h.data)==null?void 0:te.result)==null?void 0:_.length)>0){let ne;(P=(B=h==null?void 0:h.data)==null?void 0:B.result)!=null&&P.find(re=>{var le,ye;return((ye=(le=re==null?void 0:re.value)==null?void 0:le.pageData)==null?void 0:ye.name)===o})&&(ne=await((z=(L=h==null?void 0:h.data)==null?void 0:L.result)==null?void 0:z.map(async re=>{var le,ye,Ae,ke,Be,W,ie,R,G,ve,Re,he,or,ar,sr,lr,ur,cr,fr,hr,pr,dr;if(((ye=(le=re==null?void 0:re.value)==null?void 0:le.pageData)==null?void 0:ye.name)===o){f=p.cloneDeep((ke=(Ae=re==null?void 0:re.value)==null?void 0:Ae.pageData)==null?void 0:ke.compData);const We=await p.getInsofDataApi({key:{pageKey:a,systemKey:sessionStorage.getItem("systemKey"),tableId:re==null?void 0:re.id,type:"data"}});let It;if(((W=(Be=We==null?void 0:We.data)==null?void 0:Be.result)==null?void 0:W.length)>0)It=(R=(ie=We==null?void 0:We.data)==null?void 0:ie.result)==null?void 0:R.map(H=>{var gr;let oe=[];return oe.push({id:H==null?void 0:H.id}),oe.push((gr=H==null?void 0:H.value)==null?void 0:gr.tableData),oe}),f.push({key:"tableContents",contents:rt(It,(he=(Re=(ve=(G=re==null?void 0:re.value)==null?void 0:G.pageData)==null?void 0:ve.compData)==null?void 0:Re.find(H=>(H==null?void 0:H.key)==="header"))==null?void 0:he.contents)}),f.push({key:"contentTableId",contents:re==null?void 0:re.id});else{let H=await He(a,sessionStorage.getItem("systemKey"),"");f=(ar=(or=H==null?void 0:H.find(oe=>(oe==null?void 0:oe.name)===o))==null?void 0:or.compData)==null?void 0:ar.filter(oe=>(oe==null?void 0:oe.key)!=="tableContents"),H=(ur=(lr=(sr=H==null?void 0:H.find(oe=>(oe==null?void 0:oe.name)===o))==null?void 0:sr.compData)==null?void 0:lr.find(oe=>(oe==null?void 0:oe.key)==="tableContents"))==null?void 0:ur.contents,It=H,f.push({key:"tableContents",contents:rt(It,(hr=(fr=(cr=H==null?void 0:H.find(oe=>(oe==null?void 0:oe.name)===o))==null?void 0:cr.compData)==null?void 0:fr.find(oe=>(oe==null?void 0:oe.key)==="header"))==null?void 0:hr.contents)}),f.push({key:"contentTableId",contents:(H==null?void 0:H.length)!==0?(dr=(pr=H==null?void 0:H.find(oe=>(oe==null?void 0:oe.name)===o))==null?void 0:pr.compData)==null?void 0:dr.id:re==null?void 0:re.id})}s!==""&&(f!=null&&f.find(H=>(H==null?void 0:H.key)==="pageColumn")&&(f=f==null?void 0:f.filter(H=>(H==null?void 0:H.key)!=="pageColumn")),f.push({key:"pageColumn",contents:c}),f!=null&&f.find(H=>(H==null?void 0:H.key)==="columnPath")&&(f=f==null?void 0:f.filter(H=>(H==null?void 0:H.key)!=="columnPath")),f.push({key:"columnPath",contents:s}),f!=null&&f.find(H=>(H==null?void 0:H.key)==="columnUsingPath")&&(f=f==null?void 0:f.filter(H=>(H==null?void 0:H.key)!=="columnUsingPath")),f.push({key:"columnUsingPath",contents:u}),f!=null&&f.find(H=>(H==null?void 0:H.key)==="pageGroup")&&(f=f==null?void 0:f.filter(H=>(H==null?void 0:H.key)!=="pageGroup")),f.push({key:"pageGroup",contents:o}))}})),await Promise.all(ne))}else{let ne="",re="";(Q=a==null?void 0:a.split("/"))==null||Q.forEach((W,ie)=>{var R;ie<((R=a==null?void 0:a.split("/"))==null?void 0:R.length)-1?ne=ne===""?ne+W:ne+"/"+W:re=W});let le=await He(ne,sessionStorage.getItem("systemKey"),""),ye;(j=(ae=(U=(K=le==null?void 0:le[0])==null?void 0:K.compData)==null?void 0:U.find(W=>(W==null?void 0:W.key)==="header"))==null?void 0:ae.contents)==null||j.forEach((W,ie)=>{W!=null&&W.isMainKey&&(ye=ie)});let Ae=[];(fe=(Ee=(q=(ce=le==null?void 0:le[0])==null?void 0:ce.compData)==null?void 0:q.find(W=>(W==null?void 0:W.key)==="tableContents"))==null?void 0:Ee.contents)==null||fe.forEach(W=>{W.find(ie=>ie===re)&&(ye||ye===0)&&Ae.push(W==null?void 0:W[ye])});let ke=[],Be=await(Ae==null?void 0:Ae.map(async W=>{let ie=await He(ne+fo.value+W,sessionStorage.getItem("systemKey"),""),R=ie==null?void 0:ie.find(G=>(G==null?void 0:G.name)===o);ke.push(R)}));await Promise.all(Be),ke==null||ke.forEach(W=>{var R,G,ve,Re;let ie=p.cloneDeep(W==null?void 0:W.compData);ie&&(ie=ie==null?void 0:ie.filter(he=>(he==null?void 0:he.key)!=="tableContents"),ie.push({key:"tableContents",contents:rt((G=(R=W==null?void 0:W.compData)==null?void 0:R.find(he=>(he==null?void 0:he.key)==="tableContents"))==null?void 0:G.contents,(Re=(ve=W==null?void 0:W.compData)==null?void 0:ve.find(he=>(he==null?void 0:he.key)==="header"))==null?void 0:Re.contents)}),ie.push({key:"contentTableId",contents:W==null?void 0:W.id}),f.push(ie))})}return f},He=async(e,n,t="",r=!1,i,o,a)=>{var y,b,S,x,E,k,w;let s,c=new WeakMap;a?c=a:(b=(y=(await p.getPageInsofDataApi({systemKey:n,type:"data,structure,structureMethod"})).data.result)==null?void 0:y.filter(T=>{var N,D;return((N=T==null?void 0:T.key)==null?void 0:N.pageKey)!=="menu"&&((D=T==null?void 0:T.key)==null?void 0:D.pageKey)!=="secret"}))==null||b.forEach(T=>{c[T.key.pageKey]?c[T.key.pageKey]=[...c[T.key.pageKey],T]:c[T.key.pageKey]=[T]}),(!r||!i)&&(s=(S=c[e])==null?void 0:S.filter(A=>{var T;return((T=A==null?void 0:A.key)==null?void 0:T.parentTable)===t})),ft.setPageMapState(c);const u=(x=c[e])==null?void 0:x.filter(A=>{var T;return((T=A==null?void 0:A.key)==null?void 0:T.type)==="structureMethod"}),f=s==null?void 0:s.map(A=>A.id);if(!f)return;let h=(E=c[e])==null?void 0:E.filter(A=>{var T,N,D,C;return((T=A==null?void 0:A.key)==null?void 0:T.type)==="data"&&(f.includes((N=A==null?void 0:A.key)==null?void 0:N.tableId)||f.includes((C=(D=A==null?void 0:A.key)==null?void 0:D.tableId)==null?void 0:C.toString()))});const d=c[e+fo.value]??[];(d==null?void 0:d.length)===0&&(h=co(h,!1,c));let v=[];h==null||h.forEach(A=>{var D;const T=Array.isArray(A.value.tableData)?A.value.tableData:[A.value.tableData];T.unshift({id:A.id});const N=(D=A==null?void 0:A.key)==null?void 0:D.tableId;v!=null&&v.find(C=>(C==null?void 0:C.key)===N)?v=v==null?void 0:v.map(C=>((C==null?void 0:C.key)===N&&(C.contents=[...C.contents,T]),C)):v.push({key:N,contents:[T]})});let g=[];const m=await(s==null?void 0:s.map(async A=>{var C,M,O,Y,X,F,V,$,Z,te,_,B,P,L,z,Q;const T=A.value.pageData,N=A==null?void 0:A.id;let D=(C=p.cloneDeep(T==null?void 0:T.compData))==null?void 0:C.filter(K=>(K==null?void 0:K.key)!=="tableContents");if(D&&(D!=null&&D.find(K=>(K==null?void 0:K.key)==="header"))&&((O=(M=D==null?void 0:D.find(K=>(K==null?void 0:K.key)==="header"))==null?void 0:M.contents)!=null&&O.every(K=>!(K!=null&&K.columnPath)))){let K=rt((Y=v==null?void 0:v.find(q=>(q==null?void 0:q.key)===A.id))==null?void 0:Y.contents,(X=D==null?void 0:D.find(q=>(q==null?void 0:q.key)==="header"))==null?void 0:X.contents),U=await Pu((F=D==null?void 0:D.find(q=>(q==null?void 0:q.key)==="header"))==null?void 0:F.contents,e,(V=D==null?void 0:D.find(q=>(q==null?void 0:q.key)==="tableFilter"))==null?void 0:V.contents,c);U!=null&&U.mainKeys&&D.push({key:"mainRouters",contents:U==null?void 0:U.mainKeys});let ae=[],j=[];Array.isArray(U)&&(ae=rt(U,($=D==null?void 0:D.find(q=>(q==null?void 0:q.key)==="header"))==null?void 0:$.contents)),Array.isArray(U==null?void 0:U.tableContents)&&(j=rt(U==null?void 0:U.tableContents,(Z=D==null?void 0:D.find(q=>(q==null?void 0:q.key)==="header"))==null?void 0:Z.contents));let ce=[...ae,...j];Array.isArray(K)&&(K==null?void 0:K.length)>0&&(ce=[...ce,...K]),D.push({key:"tableContents",contents:ce}),D=D==null?void 0:D.map(q=>{var Ee;return(q==null?void 0:q.key)==="header"&&(q.contents=(Ee=q.contents)==null?void 0:Ee.map(fe=>((fe==null?void 0:fe.prop)===(U==null?void 0:U.mainKey)&&(fe.isMainKey=!0),fe))),q})}else D&&(D!=null&&D.find(K=>(K==null?void 0:K.key)==="header"))&&(D=await vu(p.cloneDeep(D),N,s,c),T.tableId=(te=D==null?void 0:D.find(K=>(K==null?void 0:K.key)==="contentTableId"))==null?void 0:te.contents);if(T.id=A==null?void 0:A.id,T.isShow=(B=(_=A==null?void 0:A.value)==null?void 0:_.pageData)==null?void 0:B.isShow,T.compData=D,((P=A.key)==null?void 0:P.type)!=="method")(L=T==null?void 0:T.compData)!=null&&L.every(K=>Array.isArray(K))?((z=T==null?void 0:T.compData)==null?void 0:z.length)===0?g.push(T):(Q=T==null?void 0:T.compData)==null||Q.forEach((K,U)=>{let ae;U===0?ae={comp:T==null?void 0:T.comp,compData:K,id:T==null?void 0:T.id,name:T==null?void 0:T.name,isShow:T==null?void 0:T.isShow}:ae={comp:T==null?void 0:T.comp,compData:K,id:T==null?void 0:T.id,name:"",isShow:T==null?void 0:T.isShow},g.push(ae)}):g.push(T);else{let K;K={name:"",compData:[T],comp:"calculator"},g.push(K)}}));return await Promise.all(m),((k=u==null?void 0:u.map(A=>A.value.pageData))==null?void 0:k.filter(A=>Object.values(A).length>0).length)>0&&g.push({comp:"methodButton",name:"",compData:(w=u==null?void 0:u.map(A=>A.value.pageData))==null?void 0:w.filter(A=>Object.values(A).length>0)}),g=g.sort((A,T)=>A.id-T.id),o?g:await pu(e,g)},bu=async e=>{await p.deleteInsofDataApi({id:e}),ft.setTableLoading(!1)},mu=async(e,n,t,r,i,o,a,s)=>{var h,d,v,g,m,y,b,S,x,E,k,w,A,T,N,D,C,M,O,Y,X,F,V,$;let c=((d=(h=a==null?void 0:a.content)==null?void 0:h[0])==null?void 0:d.id)??"",u=(v=s==null?void 0:s.param)==null?void 0:v.url,f;if(c!==""&&((g=a==null?void 0:a.content)==null?void 0:g.length)>1&&typeof((y=(m=a==null?void 0:a.content)==null?void 0:m[0])==null?void 0:y.id)!="string"){const Z=await p.getInsofDataApi({id:c});let te=((E=(x=(S=(b=Z==null?void 0:Z.data)==null?void 0:b.result)==null?void 0:S[0])==null?void 0:x.key)==null?void 0:E.tableId)??"",_=((T=(A=(w=(k=Z==null?void 0:Z.data)==null?void 0:k.result)==null?void 0:w[0])==null?void 0:A.key)==null?void 0:T.pageKey)??"";const B=await p.createInsofDataApi({key:{type:e,pageKey:u||_||n,tableId:te||t,systemKey:r},value:{tableData:st(i,(N=je(o))==null?void 0:N.filter(P=>P!=="操作"))}});((D=B==null?void 0:B.data)==null?void 0:D.code)===200?(f=(C=B==null?void 0:B.data)==null?void 0:C.result,p.ElMessage.success("保存成功")):p.ElMessage.error("保存响应失败"),ft.setTableLoading(!1)}else{let Z;if(a!=null&&a.parentTableId){let _=await p.getInsofDataApi({id:a==null?void 0:a.parentTableId});Z=(X=(Y=(O=(M=_==null?void 0:_.data)==null?void 0:M.result)==null?void 0:O[0])==null?void 0:Y.key)==null?void 0:X.pageKey}const te=await p.createInsofDataApi({key:{type:e,pageKey:u||Z||n,tableId:a!=null&&a.parentTableId?a==null?void 0:a.parentTableId:t,systemKey:r},value:{tableData:st(i,(F=je(o))==null?void 0:F.filter(_=>_!=="操作"))}});((V=te==null?void 0:te.data)==null?void 0:V.code)===200?(f=($=te==null?void 0:te.data)==null?void 0:$.result,p.ElMessage.success("保存成功")):p.ElMessage.error("保存响应失败"),ft.setTableLoading(!1)}return f},Su=async(e,n,t,r,i,o,a)=>{var f,h,d,v,g,m,y,b,S,x,E,k;if(!r)return;const s=await p.getInsofDataApi({id:r});let c=((v=(d=(h=(f=s==null?void 0:s.data)==null?void 0:f.result)==null?void 0:h[0])==null?void 0:d.key)==null?void 0:v.tableId)??"",u=((b=(y=(m=(g=s==null?void 0:s.data)==null?void 0:g.result)==null?void 0:m[0])==null?void 0:y.key)==null?void 0:b.pageKey)??"";if(c&&c!==""){const w=await p.updateInsofDataApi({key:{type:e,pageKey:u,tableId:c,systemKey:i},value:{tableData:st(o,(S=je(a))==null?void 0:S.filter(A=>A!=="操作"))},id:r});((x=w==null?void 0:w.data)==null?void 0:x.code)===200?p.ElMessage.success("保存成功"):p.ElMessage.error("保存响应失败"),ft.setTableLoading(!1)}else{const w=await p.updateInsofDataApi({key:{type:e,pageKey:n,tableId:t,systemKey:i},value:{tableData:st(o,(E=je(a))==null?void 0:E.filter(A=>A!=="操作"))},id:r});((k=w==null?void 0:w.data)==null?void 0:k.code)===200?p.ElMessage.success("保存成功"):p.ElMessage.error("保存响应失败"),ft.setTableLoading(!1)}},Eu=async(e,n)=>{await p.updateInsofDataApi({value:{pageData:n},id:e})},Tu=async()=>{var e,n,t,r,i,o,a,s,c;try{const u=await p.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),layer:"superAdmin"}});if(((e=u==null?void 0:u.data)==null?void 0:e.code)===200){const f=(i=(r=(t=(n=u==null?void 0:u.data)==null?void 0:n.result)==null?void 0:t[0])==null?void 0:r.key)==null?void 0:i.systemType;let h="browser";f==="制造系统"&&(h="client"),f==="三维系统"&&(h="three"),On.setPlatform(h),On.setPlatName(((c=(s=(a=(o=u==null?void 0:u.data)==null?void 0:o.result)==null?void 0:a[0])==null?void 0:s.key)==null?void 0:c.name)??"")}}catch(u){return Promise.reject(u)}},at=l.ref(0),Pn=kt(p.pinia),wu=Ct(p.pinia),{originalPath:Qe}=p.storeToRefs(wu),Du=p.useLoginState(p.pinia),Au=qn(p.pinia),{multipleTableConst:ge}=p.storeToRefs(Au),{loginUserInfo:Se}=p.storeToRefs(Du),{activeMenuPath:nc}=p.storeToRefs(Pn),Vn=pt(p.pinia),{pageMapState:Fn}=p.storeToRefs(Vn),De=Qe.value,Qt=e=>e==null?void 0:e.map(t=>{var r;return at.value++,Array.isArray(t)?Qt(t):{label:(t==null?void 0:t.label)??"",prop:(t==null?void 0:t.label)==="操作"?"operate":(t==null?void 0:t.prop)??"a"+at.value,width:(t==null?void 0:t.label)==="操作"?"200":t!=null&&t.width?parseInt(t.width):"",fixed:(t==null?void 0:t.fixed)??void 0,sortable:(t==null?void 0:t.sortable)??!1,align:(t==null?void 0:t.align)??"left",showOverflowTooltip:(t==null?void 0:t.showOverflowTooltip)??!0,isNotDrag:(t==null?void 0:t.isNotDrag)??!1,isEditCol:(t==null?void 0:t.isEditCol)??!1,isOperate:(t==null?void 0:t.isOperate)??!1,id:(t==null?void 0:t.id)??at.value,type:(t==null?void 0:t.label)==="操作"?"operate":void 0,formType:(t==null?void 0:t.formType)??(t!=null&&t.groupSelect?"Select":""),isHidden:t==null?void 0:t.isHidden,options:(t==null?void 0:t.options)??[],children:Qt(t.children)??void 0,formMenuSelect:(t==null?void 0:t.formMenuSelect)??[],groupSelect:t!=null&&t.groupSelect?(r=t==null?void 0:t.groupSelect)==null?void 0:r.replaceAll('"',"").split(":"):[]}}),ku=e=>{const n=[];function t(r){if(Array.isArray(r))for(const i of r)!i.children||i.children.length===0?n.push(i):t(i.children)}return t(e),n},Cu=e=>p.cloneDeep(e).map(t=>(Array.isArray(t)&&(t=t.map(r=>{var i;return Array.isArray(r)?r=Qt(r):(r={label:(r==null?void 0:r.label)??"",prop:(r==null?void 0:r.label)==="操作"?"operate":(r==null?void 0:r.prop)??"a"+at.value,width:(r==null?void 0:r.label)==="操作"?"200":r!=null&&r.width?parseInt(r.width):"",fixed:(r==null?void 0:r.fixed)??void 0,sortable:(r==null?void 0:r.sortable)??!1,align:(r==null?void 0:r.align)??"left",showOverflowTooltip:(r==null?void 0:r.showOverflowTooltip)??!0,isNotDrag:(r==null?void 0:r.isNotDrag)??!1,isEditCol:(r==null?void 0:r.isEditCol)??!1,isOperate:(r==null?void 0:r.isOperate)??!1,id:(r==null?void 0:r.id)??at.value,type:(r==null?void 0:r.label)==="操作"?"operate":void 0,formType:(r==null?void 0:r.formType)??(r!=null&&r.groupSelect?"Select":""),isHidden:r==null?void 0:r.isHidden,options:(r==null?void 0:r.options)??[],children:Qt(r.children),formMenuSelect:(r==null?void 0:r.formMenuSelect)??[],groupSelect:r!=null&&r.groupSelect?(i=r==null?void 0:r.groupSelect)==null?void 0:i.replaceAll('"',"").split(":"):[]},at.value++),r})),t)),en=e=>{function n(t,r=[],i=""){if(!t||t.length===0)return[];let o=r;return Array.isArray(t)&&(t==null||t.forEach(a=>{var s,c,u,f,h,d,v,g,m,y,b,S,x;if(a!=null&&a.children&&((s=a.children)==null?void 0:s.length)>0){let E=i===""?i+((h=(c=a==null?void 0:a.prop)==null?void 0:c.split(ge.value))==null?void 0:h[((f=(u=a==null?void 0:a.prop)==null?void 0:u.split(ge.value))==null?void 0:f.length)-1]):i+ge.value+((m=(d=a==null?void 0:a.prop)==null?void 0:d.split(ge.value))==null?void 0:m[((g=(v=a==null?void 0:a.prop)==null?void 0:v.split(ge.value))==null?void 0:g.length)-1]);o=n(a==null?void 0:a.children,o,E)}else i!==""&&(a.prop=i+ge.value+((x=(y=a==null?void 0:a.prop)==null?void 0:y.split(ge.value))==null?void 0:x[((S=(b=a==null?void 0:a.prop)==null?void 0:b.split(ge.value))==null?void 0:S.length)-1])),o.push(a)})),o}return n(e)},Iu=e=>{function n(t,r=[],i=""){if(!t||t.length===0)return[];let o=r;return Array.isArray(t)&&(o=t==null?void 0:t.map(a=>{var s,c,u,f,h,d,v,g,m,y,b,S,x;if(a!=null&&a.children&&((s=a.children)==null?void 0:s.length)>0){let E=i===""?i+((h=(c=a==null?void 0:a.prop)==null?void 0:c.split(ge.value))==null?void 0:h[((f=(u=a==null?void 0:a.prop)==null?void 0:u.split(ge.value))==null?void 0:f.length)-1]):i+ge.value+((m=(d=a==null?void 0:a.prop)==null?void 0:d.split(ge.value))==null?void 0:m[((g=(v=a==null?void 0:a.prop)==null?void 0:v.split(ge.value))==null?void 0:g.length)-1]);a.children=n(a==null?void 0:a.children,o,E)}else i!==""&&(a.prop=i+ge.value+((x=(y=a==null?void 0:a.prop)==null?void 0:y.split(ge.value))==null?void 0:x[((S=(b=a==null?void 0:a.prop)==null?void 0:b.split(ge.value))==null?void 0:S.length)-1]));return a})),o}return n(e)},xu=e=>{let n=p.cloneDeep(e);return n=n==null?void 0:n.map(t=>((t==null?void 0:t.type)==="Select"?t={label:t==null?void 0:t.label,prop:t==null?void 0:t.prop,name:t==null?void 0:t.name,type:t==null?void 0:t.type,value:(t==null?void 0:t.value)??"",optionUrl:{groupSelect:t==null?void 0:t.groupSelect,menuSelect:t==null?void 0:t.menuSelect,type:"Select",selectRelateType:t==null?void 0:t.selectRelateType,multiple:t==null?void 0:t.multiple}}:(t==null?void 0:t.type)==="Date"&&(t.value=!(t!=null&&t.value)&&(t==null?void 0:t.isNewDate)!==!1?new Date:t==null?void 0:t.value),t.label=t.prop||t.label,t)),n},Bu=e=>{var n,t,r,i,o,a;if(((n=e==null?void 0:e.pageData)==null?void 0:n.comp)==="Form"){let s=(r=(t=e==null?void 0:e.pageData)==null?void 0:t.compData)==null?void 0:r.map(u=>{var f;return(u==null?void 0:u.key)==="formContent"&&(u.contents=(f=u.contents)==null?void 0:f.map(h=>((h==null?void 0:h.type)==="Date"&&(h.value=""),h))),u});return{pageData:{comp:(i=e==null?void 0:e.pageData)==null?void 0:i.comp,compData:s,name:(o=e==null?void 0:e.pageData)==null?void 0:o.name,isShow:(a=e==null?void 0:e.pageData)==null?void 0:a.isShow}}}else return e},Ru=(e,n)=>{var r,i,o,a,s,c,u,f,h;let t=(o=(i=(r=n==null?void 0:n.pageData)==null?void 0:r.compData)==null?void 0:i.find(d=>(d==null?void 0:d.key)==="formContent"))==null?void 0:o.contents;if(((a=e==null?void 0:e.pageData)==null?void 0:a.comp)==="Form"){let d=(c=(s=e==null?void 0:e.pageData)==null?void 0:s.compData)==null?void 0:c.map(g=>{var m;return(g==null?void 0:g.key)==="formContent"&&(g.contents=(m=g.contents)==null?void 0:m.map(y=>{var b;return y.value=(b=t==null?void 0:t.find(S=>(S==null?void 0:S.key)===(y==null?void 0:y.key)))==null?void 0:b.value,y})),g});return{pageData:{comp:(u=e==null?void 0:e.pageData)==null?void 0:u.comp,compData:d,name:(f=e==null?void 0:e.pageData)==null?void 0:f.name,isShow:(h=e==null?void 0:e.pageData)==null?void 0:h.isShow}}}else return e},St=async(e,n,t,r,i)=>{var m,y,b,S,x,E,k,w,A,T,N,D,C,M,O,Y,X,F,V,$,Z,te,_;let o=e;(o==null?void 0:o[(o==null?void 0:o.length)-1])!==De&&(o="",(y=(m=p.cloneDeep(e))==null?void 0:m.split(De))==null||y.forEach((B,P)=>{var L,z;P!==((z=(L=p.cloneDeep(e))==null?void 0:L.split(De))==null?void 0:z.length)-1&&(o=o===""?o+B:o+"/"+B)}),o=o+De);let a=[],s=await p.getInsofDataApi({key:{pageKey:e,systemKey:sessionStorage.getItem("systemKey")}});const c={data:{result:(S=(b=s==null?void 0:s.data)==null?void 0:b.result)==null?void 0:S.filter(B=>{var P;return((P=B==null?void 0:B.key)==null?void 0:P.type)==="structure"})}};let u;(e==null?void 0:e[(e==null?void 0:e.length)-1])!==De&&(u={data:{result:(x=Fn.value[o])==null?void 0:x.filter(B=>{var P;return((P=B==null?void 0:B.key)==null?void 0:P.type)==="structure"})}},((k=(E=u==null?void 0:u.data)==null?void 0:E.result)==null?void 0:k.length)>0&&(u=(A=(w=p.cloneDeep(u))==null?void 0:w.data)==null?void 0:A.result));const f={data:{result:(T=Fn.value[o])==null?void 0:T.filter(B=>{var P;return((P=B==null?void 0:B.key)==null?void 0:P.type)==="structureMethod"})}},h={data:{result:(D=(N=s==null?void 0:s.data)==null?void 0:N.result)==null?void 0:D.filter(B=>{var P;return((P=B==null?void 0:B.key)==null?void 0:P.type)==="data"})}};if((e==null?void 0:e[(e==null?void 0:e.length)-1])!==De){let B=(C=c==null?void 0:c.data)==null?void 0:C.result;if(!Array.isArray(u))return;u==null||u.forEach(P=>{var z,Q,K,U,ae;let L=(z=B==null?void 0:B.find(j=>{var ce,q,Ee,fe;return((q=(ce=P==null?void 0:P.value)==null?void 0:ce.pageData)==null?void 0:q.name)===((fe=(Ee=j==null?void 0:j.value)==null?void 0:Ee.pageData)==null?void 0:fe.name)}))==null?void 0:z.value;L?L=L:L=void 0,a.push({key:{pageKey:n,parentTable:((Q=L==null?void 0:L.key)==null?void 0:Q.parentTable)??"",systemKey:(K=P==null?void 0:P.key)==null?void 0:K.systemKey,type:((U=L==null?void 0:L.key)==null?void 0:U.type)??((ae=P==null?void 0:P.key)==null?void 0:ae.type),version:1},value:Ru(P==null?void 0:P.value,L)})})}else(O=(M=c==null?void 0:c.data)==null?void 0:M.result)==null||O.forEach(B=>{var P,L,z;a.push({key:{pageKey:n,parentTable:(P=B==null?void 0:B.key)==null?void 0:P.parentTable,systemKey:(L=B==null?void 0:B.key)==null?void 0:L.systemKey,type:(z=B==null?void 0:B.key)==null?void 0:z.type,version:1},value:Bu(B==null?void 0:B.value)})});if((X=(Y=f==null?void 0:f.data)==null?void 0:Y.result)==null||X.forEach(B=>{var P,L;a.push({key:{pageKey:n,systemKey:(P=B==null?void 0:B.key)==null?void 0:P.systemKey,type:(L=B==null?void 0:B.key)==null?void 0:L.type,version:1},value:B==null?void 0:B.value})}),a=a==null?void 0:a.map(B=>{var P,L,z;return((L=(P=B==null?void 0:B.value)==null?void 0:P.pageData)==null?void 0:L.comp)==="Form"&&(B.value.pageData.compData=(z=B.value.pageData.compData)==null?void 0:z.map(Q=>{var K;return(Q==null?void 0:Q.key)==="formContent"&&(Q.contents=(K=Q.contents)==null?void 0:K.map(U=>(t!=null&&t[U==null?void 0:U.key]&&(U==null?void 0:U.type)!=="Date"&&(U.value=t[U.key]),U))),Q}),r&&B.value.pageData.compData.push({key:"parentFormPath",contents:r})),B}),(a==null?void 0:a.length)>0){const B=a==null?void 0:a.find(z=>{var Q,K;return i==null?void 0:i.includes((K=(Q=z==null?void 0:z.value)==null?void 0:Q.pageData)==null?void 0:K.name)}),P=/^[A-Za-z]+$/,L=B?a==null?void 0:a.map(z=>{var Q,K,U,ae,j,ce;return i!=null&&i.includes((K=(Q=z==null?void 0:z.value)==null?void 0:Q.pageData)==null?void 0:K.name)?{...z,value:{pageData:{...(U=z==null?void 0:z.value)==null?void 0:U.pageData,compData:(ce=(j=(ae=z==null?void 0:z.value)==null?void 0:ae.pageData)==null?void 0:j.compData)==null?void 0:ce.map(q=>{var Ee;return(q==null?void 0:q.key)==="formContent"?{...q,contents:(Ee=q==null?void 0:q.contents)==null?void 0:Ee.map(fe=>P.test(fe==null?void 0:fe.prop)?fe:{...fe,value:""})}:q})}}}:z}):a;await p.batchAddInsofDataApi({dataList:L})}let d={};const v=await p.getInsofDataApi({key:{pageKey:n,type:"structure",systemKey:sessionStorage.getItem("systemKey")}});((V=(F=c==null?void 0:c.data)==null?void 0:F.result)==null?void 0:V.length)>0&&((Z=($=c==null?void 0:c.data)==null?void 0:$.result)==null||Z.forEach(B=>{var P,L,z;d[B.id]=(z=(L=(P=v==null?void 0:v.data)==null?void 0:P.result)==null?void 0:L.find(Q=>{var K,U,ae,j;return((U=(K=Q==null?void 0:Q.value)==null?void 0:K.pageData)==null?void 0:U.name)===((j=(ae=B==null?void 0:B.value)==null?void 0:ae.pageData)==null?void 0:j.name)}))==null?void 0:z.id}));let g=[];(_=(te=h==null?void 0:h.data)==null?void 0:te.result)==null||_.forEach(B=>{var P,L,z;g.push({key:{pageKey:n,tableId:d[(P=B==null?void 0:B.key)==null?void 0:P.tableId],systemKey:(L=B==null?void 0:B.key)==null?void 0:L.systemKey,type:(z=B==null?void 0:B.key)==null?void 0:z.type},value:B==null?void 0:B.value})}),(g==null?void 0:g.length)>0&&await p.batchAddInsofDataApi({dataList:g})},ho=(e,n)=>{let t=p.cloneDeep(e);return t=t==null?void 0:t.map(i=>{var c,u,f;let o=[],a=[];for(let h in n)if(h!=null&&h.includes((u=(c=p.cloneDeep(i))==null?void 0:c.key)==null?void 0:u.pageKey)){let d=(f=n[h])==null?void 0:f.filter(v=>{var g,m,y;return((g=v==null?void 0:v.key)==null?void 0:g.type)==="data"&&((m=v==null?void 0:v.key)==null?void 0:m.tableId)===((y=p.cloneDeep(i))==null?void 0:y.id)});a=[...a,...d]}(a==null?void 0:a.length)>0&&(a==null||a.forEach(h=>{o.push(h.value.tableData)}));let s=p.cloneDeep(i).value.pageData.compData;return s.push({key:"tableContents",contents:o}),i.value.pageData.compData=s,i}),t},po=(e,n)=>{if(!(e!=null&&e.includes("[")))return e;let t=e==null?void 0:e.replaceAll("[","").replaceAll("]","").split(":"),r=n==null?void 0:n.map(o=>{var a;return(a=o==null?void 0:o.value)==null?void 0:a.pageData}),i="";return r==null||r.forEach(o=>{var a;(o==null?void 0:o.name)===(t==null?void 0:t[0])&&((a=o==null?void 0:o.compData)==null||a.forEach(s=>{var c;(s==null?void 0:s.key)==="header"&&((c=s==null?void 0:s.contents)==null||c.forEach((u,f)=>{(u==null?void 0:u.prop)===(t==null?void 0:t[1])&&(i=f)}))}))}),i},go=(e,n)=>{if(!(e!=null&&e.includes("[")))return e;let t=e==null?void 0:e.replaceAll("[","").replaceAll("]","").split(":"),r=n==null?void 0:n.map(o=>{var a;return(a=o==null?void 0:o.value)==null?void 0:a.pageData}),i="";return r==null||r.forEach(o=>{var a;(o==null?void 0:o.name)===(t==null?void 0:t[0])&&((a=o==null?void 0:o.compData)==null||a.forEach(s=>{var c;(s==null?void 0:s.key)==="formContent"&&((c=s==null?void 0:s.contents)==null||c.forEach(u=>{(u==null?void 0:u.prop)===(t==null?void 0:t[1])&&(i=u==null?void 0:u.value)}))}))}),i},ei=(e,n,t,r)=>{var c,u,f;let i=(c=e==null?void 0:e[0])==null?void 0:c.formMenuSelect,o=e==null?void 0:e.map(h=>{var d,v;return(v=(d=h.groupSelect)==null?void 0:d.split(":"))==null?void 0:v[1]}),a="";i==null||i.forEach((h,d)=>{(i==null?void 0:i.length)-1!==d?a=a===""?a+h:a+"/"+h:a=a+De+h});let s=[];for(let h in n)if(h!=null&&h.includes(a)){let d=(u=n[h])==null?void 0:u.filter(v=>{var g,m;return((g=v==null?void 0:v.key)==null?void 0:g.type)==="structure"&&((m=v==null?void 0:v.key)==null?void 0:m.parentTable)===""});s=[...s,...d]}if((s==null?void 0:s.length)>0){let h=s==null?void 0:s.filter(y=>{var b,S,x;return((b=y==null?void 0:y.key)==null?void 0:b.pageKey)!==a&&((x=(S=y==null?void 0:y.value)==null?void 0:S.pageData)==null?void 0:x.comp)==="Form"}),d=s==null?void 0:s.filter(y=>{var b,S,x;return((b=y==null?void 0:y.key)==null?void 0:b.pageKey)!==a&&((x=(S=y==null?void 0:y.value)==null?void 0:S.pageData)==null?void 0:x.comp)==="Table"});d=ho(p.cloneDeep(d),n),h=[...p.cloneDeep(h),...d],h=h==null?void 0:h.map(y=>({[y.key.pageKey]:y}));let v=0;h=h.reduce((y,b)=>(Object.keys(b).forEach(S=>{y[S]||(y[S]=[],y[S].push({index:v})),y[S].push(b[S])}),v++,y),{});let g=(f=Object.values(h))==null?void 0:f.sort((y,b)=>{var E,k;let S=(E=y==null?void 0:y.find(w=>w==null?void 0:w.index))==null?void 0:E.index,x=(k=b==null?void 0:b.find(w=>w==null?void 0:w.index))==null?void 0:k.index;return S-x});h=g==null?void 0:g.map(y=>y==null?void 0:y.filter(b=>{var S,x,E,k;return!(b!=null&&b.index)&&(b==null?void 0:b.index)!==0&&!((x=(S=b==null?void 0:b.key)==null?void 0:S.pageKey)!=null&&x.includes("updateLoading"))&&!((k=(E=b==null?void 0:b.key)==null?void 0:E.pageKey)!=null&&k.includes("loading"))}));let m=[];if(h==null||h.forEach(y=>{var x,E,k,w,A,T,N,D,C,M;const b=y==null?void 0:y.find(O=>{var Y,X,F,V,$;return((X=(Y=O==null?void 0:O.value)==null?void 0:Y.pageData)==null?void 0:X.name)===(($=(V=(F=e==null?void 0:e[0])==null?void 0:F.groupSelect)==null?void 0:V.split(":"))==null?void 0:$[0])});let S=(A=(w=(k=(E=(x=p.cloneDeep(b))==null?void 0:x.value)==null?void 0:E.pageData)==null?void 0:k.compData)==null?void 0:w.find(O=>(O==null?void 0:O.key)==="formContent"))==null?void 0:A.contents;if(S){let O=[];o==null||o.forEach((Y,X)=>{var $,Z,te,_,B,P;let F=y==null?void 0:y.find(L=>{var z,Q,K,U,ae;return((Q=(z=L==null?void 0:L.value)==null?void 0:z.pageData)==null?void 0:Q.name)===((ae=(U=(K=e==null?void 0:e[X])==null?void 0:K.groupSelect)==null?void 0:U.split(":"))==null?void 0:ae[0])}),V=(B=(_=(te=(Z=($=p.cloneDeep(F))==null?void 0:$.value)==null?void 0:Z.pageData)==null?void 0:te.compData)==null?void 0:_.find(L=>(L==null?void 0:L.key)==="formContent"))==null?void 0:B.contents;V!=null&&V.find(L=>(L==null?void 0:L.key)===Y)?O.push((P=V==null?void 0:V.find(L=>(L==null?void 0:L.key)===Y))==null?void 0:P.value):O.push("")}),m.push(O)}else S=(M=(C=(D=(N=(T=p.cloneDeep(b))==null?void 0:T.value)==null?void 0:N.pageData)==null?void 0:D.compData)==null?void 0:C.find(O=>(O==null?void 0:O.key)==="tableContents"))==null?void 0:M.contents,S==null||S.forEach(O=>{let Y=[];o==null||o.forEach(X=>{O!=null&&O[X]&&Y.push(O==null?void 0:O[X])}),m.push(Y)})}),(t==null?void 0:t.length)>0){let y={};t==null||t.forEach(b=>{var S;for(let x in b){let E=p.cloneDeep(x);if(!(E!=null&&E.includes("[")))(S=b[x])!=null&&S.includes("[")||(y[E]=b[x]);else{let k=go(E,n[r]),w=po(b[x],n[r]);y[k]=w}}});for(let b in y)m=m==null?void 0:m.filter(S=>S[y[b]]===b)}return m}},Mu=(e,n,t,r)=>{var s,c,u,f,h;let i=p.cloneDeep(e),o=n==null?void 0:n.map(d=>d==null?void 0:d.prop),a=[];for(let d in t)if(d!=null&&d.includes(i)){let v=(s=t[d])==null?void 0:s.filter(g=>{var m,y;return((m=g==null?void 0:g.key)==null?void 0:m.type)==="structure"&&((y=g==null?void 0:g.key)==null?void 0:y.parentTable)===""});a=[...a,...v]}if((a==null?void 0:a.length)>0){let d=a==null?void 0:a.filter(E=>{var k,w,A,T;return((k=E==null?void 0:E.key)==null?void 0:k.pageKey)!==i&&((A=(w=E==null?void 0:E.value)==null?void 0:w.pageData)==null?void 0:A.comp)==="Form"&&(E==null?void 0:E.key.pageKey.includes(i+De))&&!((T=E==null?void 0:E.key.pageKey)!=null&&T.includes("@"))}),v=a==null?void 0:a.filter(E=>{var k,w,A,T;return((k=E==null?void 0:E.key)==null?void 0:k.pageKey)!==i&&((A=(w=E==null?void 0:E.value)==null?void 0:w.pageData)==null?void 0:A.comp)==="Table"&&(E==null?void 0:E.key.pageKey.includes(i+De))&&!((T=E==null?void 0:E.key.pageKey)!=null&&T.includes("@"))});v=ho(p.cloneDeep(v),t),d=[...p.cloneDeep(d),...v],d=d==null?void 0:d.map(E=>({[E.key.pageKey]:E}));let g=0;d=d.reduce((E,k)=>(Object.keys(k).forEach(w=>{E[w]||(E[w]=[],E[w].push({index:g})),E[w].push(k[w])}),g++,E),{}),d=co(d,!0,t);let m=(c=Object.values(d))==null?void 0:c.sort((E,k)=>{var T,N;let w=(T=E==null?void 0:E.find(D=>D==null?void 0:D.index))==null?void 0:T.index,A=(N=k==null?void 0:k.find(D=>D==null?void 0:D.index))==null?void 0:N.index;return w-A});d=m==null?void 0:m.map(E=>E==null?void 0:E.filter(k=>!(k!=null&&k.index)&&(k==null?void 0:k.index)!==0));let y=(u=p.cloneDeep(d))==null?void 0:u.filter(E=>E==null?void 0:E.find(k=>{var w,A,T,N;return((N=(w=k==null?void 0:k.key)==null?void 0:w.pageKey)==null?void 0:N[((T=(A=k==null?void 0:k.key)==null?void 0:A.pageKey)==null?void 0:T.length)-1])===De}));d=d==null?void 0:d.filter(E=>!(E!=null&&E.find(k=>{var w,A,T,N,D,C,M,O;return((N=(w=k==null?void 0:k.key)==null?void 0:w.pageKey)==null?void 0:N[((T=(A=k==null?void 0:k.key)==null?void 0:A.pageKey)==null?void 0:T.length)-1])===De||((C=(D=k==null?void 0:k.key)==null?void 0:D.pageKey)==null?void 0:C.includes("updateLoading"))||((O=(M=k==null?void 0:k.key)==null?void 0:M.pageKey)==null?void 0:O.includes("loading"))})));let b=[],S=[];(f=y==null?void 0:y[0])==null||f.forEach(E=>{var k,w,A,T,N;((w=(k=E==null?void 0:E.value)==null?void 0:k.pageData)==null?void 0:w.comp)==="Form"&&((N=(T=(A=E==null?void 0:E.value)==null?void 0:A.pageData)==null?void 0:T.compData)==null||N.forEach(D=>{(D==null?void 0:D.key)==="formContent"&&(S=[...S,...D==null?void 0:D.contents])}))});let x=(h=S==null?void 0:S.find(E=>(E==null?void 0:E.isMain)===!0))==null?void 0:h.key;if(d==null||d.forEach(E=>{let k=[];E==null||E.forEach(A=>{var T,N,D,C,M;((N=(T=A==null?void 0:A.value)==null?void 0:T.pageData)==null?void 0:N.comp)==="Form"&&((M=(C=(D=A==null?void 0:A.value)==null?void 0:D.pageData)==null?void 0:C.compData)==null||M.forEach(O=>{(O==null?void 0:O.key)==="formContent"&&(k=[...k,...O==null?void 0:O.contents])}))});let w={};o==null||o.forEach(A=>{let T=k==null?void 0:k.find(N=>(N==null?void 0:N.key)===A);T!=null&&T.prop&&(w[T.prop]=(T==null?void 0:T.value)??"")}),b.push(w)}),(r==null?void 0:r.length)>0){let E=[];r==null||r.forEach(k=>{var N,D,C,M,O,Y,X,F;let w={};for(let V in k){let $=p.cloneDeep(V);if(!($!=null&&$.includes("[")))k[V].toUpperCase()==="@LOGINUSER"?w[$]=((N=Se.value)==null?void 0:N.姓名)||((D=Se.value)==null?void 0:D.account)||((C=Se.value)==null?void 0:C.账号)||((M=Se.value)==null?void 0:M.姓名):(O=k[V])!=null&&O.includes("[")||(w[$]=k[V]);else{let Z=go($,t[e]),te=po(k[V],t[e]);w[Z]=te}}let A=[],T=0;for(let V in w)((Y=w[V])==null?void 0:Y[0])!=="!"?A=(X=T>0?A:b)==null?void 0:X.filter(Z=>Z[V]===w[V]):A=(F=T>0?A:b)==null?void 0:F.filter($=>{var Z;return $[V]!==((Z=w[V])==null?void 0:Z.replaceAll("!",""))}),T=1;E=[...E,...A]}),b=[...new Set(E)]}return b=b==null?void 0:b.map(E=>Object.values(E)),{mainKey:x,tableContents:b}}},Nu=(e,n)=>{var i,o,a,s,c,u;let t=(o=(i=p.cloneDeep(e))==null?void 0:i.split("/"))==null?void 0:o[0],r=[];for(let f in n)if(f!=null&&f.includes(t)){let h=(a=n[f])==null?void 0:a.filter(d=>{var v,g;return((v=d==null?void 0:d.key)==null?void 0:v.type)==="structure"&&((g=d==null?void 0:d.key)==null?void 0:g.parentTable)===""});r=[...r,...h]}return(r==null?void 0:r.length)>0?!!((u=(c=(s=r==null?void 0:r.filter(h=>{var d;return((d=h==null?void 0:h.key)==null?void 0:d.pageKey)===t}))==null?void 0:s[0])==null?void 0:c.key)==null?void 0:u.parentPageKey):!0},Ou=async(e,n,t,r)=>{var a,s,c,u,f,h,d,v,g;let i=(s=(a=p.cloneDeep(e))==null?void 0:a.split("/"))==null?void 0:s[0],o=[];for(let m in r)if(m!=null&&m.includes(i)){let y=(c=r[m])==null?void 0:c.filter(b=>{var S,x;return((S=b==null?void 0:b.key)==null?void 0:S.type)==="structure"&&((x=b==null?void 0:b.key)==null?void 0:x.parentTable)===""});o=[...o,...y]}if((o==null?void 0:o.length)>0){let m=(h=(f=(u=o==null?void 0:o.filter(S=>{var x;return((x=S==null?void 0:S.key)==null?void 0:x.pageKey)===i}))==null?void 0:u[0])==null?void 0:f.key)==null?void 0:h.parentPageKey,y=[];if(m){for(let S in r)if(S!=null&&S.includes(m)){let x=(d=r[S])==null?void 0:d.filter(E=>{var k,w;return((k=E==null?void 0:E.key)==null?void 0:k.type)==="structure"&&((w=E==null?void 0:E.key)==null?void 0:w.parentTable)===""});y=[...y,...x]}}else y=o;let b="";if((y==null?void 0:y.length)>0){let S=[],x;x=(v=y==null?void 0:y.filter(D=>{var C,M,O,Y,X,F;return((O=(M=(C=D==null?void 0:D.key)==null?void 0:C.pageKey)==null?void 0:M.split("/"))==null?void 0:O[0])===m&&((F=(X=(Y=D==null?void 0:D.key)==null?void 0:Y.pageKey)==null?void 0:X.split("/"))==null?void 0:F.length)===2}))==null?void 0:v.map(D=>{var C;return(C=D==null?void 0:D.key)==null?void 0:C.pageKey}),x=[...new Set(x)],x=x==null?void 0:x.filter(D=>!D.includes(De));let E=(g=p.cloneDeep(x))==null?void 0:g.map(async D=>{var X,F,V,$,Z,te,_,B,P,L,z,Q,K,U,ae;let C=await He(D,sessionStorage.getItem("systemKey"),"",!1,[],!1,r),M=($=(V=(F=(X=p.cloneDeep(C))==null?void 0:X[0])==null?void 0:F.compData)==null?void 0:V.find(j=>(j==null?void 0:j.key)==="tableContents"))==null?void 0:$.contents,O=(L=(P=(B=(_=(te=(Z=p.cloneDeep(C))==null?void 0:Z[0])==null?void 0:te.compData)==null?void 0:_.find(j=>(j==null?void 0:j.key)==="header"))==null?void 0:B.contents)==null?void 0:P.filter(j=>(j==null?void 0:j.label)!=="操作"))==null?void 0:L.map(j=>j==null?void 0:j.prop),Y=[];return(ae=(U=(K=(Q=(z=p.cloneDeep(C))==null?void 0:z[0])==null?void 0:Q.compData)==null?void 0:K.find(j=>(j==null?void 0:j.key)==="header"))==null?void 0:U.contents)==null||ae.forEach(j=>{(j==null?void 0:j.isMainKey)===!0&&(b=j==null?void 0:j.prop)}),M==null||M.forEach(j=>{let ce=st(j,O);Y.push(ce),S.push({key:ce==null?void 0:ce[b],routerContent:D})}),Y}),k=await Promise.all(E),w=[];k==null||k.forEach(D=>{(D==null?void 0:D.length)>0&&(D==null||D.forEach(C=>{w.push(C)}))});let A=[];A=n==null?void 0:n.map(D=>{var M,O,Y;let C={};for(let X in D)D[X].toUpperCase()==="@LOGINUSER"?C[X]=((M=Se.value)==null?void 0:M.姓名)||((O=Se.value)==null?void 0:O.account)||((Y=Se.value)==null?void 0:Y.账号):C[X]=D[X];return C});let T=[];w==null||w.forEach(D=>{let C=[];A==null||A.forEach(M=>{let O=[];for(let Y in M)O.push(D[Y]===M[Y]);C.push(O)}),C.find(M=>M==null?void 0:M.every(O=>O===!0))&&T.push(D)});let N=[];return T==null||T.forEach(D=>{let C={};t==null||t.forEach(M=>{C[M.prop]=D[M.prop]??""}),N.push(C)}),N=N==null?void 0:N.map(D=>Object.values(D)),{mainKey:b,tableContents:N,mainKeys:S}}else return}else return},Pu=async(e,n,t,r)=>{var o,a,s,c;let i=(o=p.cloneDeep(e))==null?void 0:o.filter(u=>(u==null?void 0:u.label)!=="操作");if((t==null?void 0:t.length)>0&&(i!=null&&i.every(u=>!(u!=null&&u.formMenuSelect)))&&Nu(n,r)){let u=await Ou(n,t,i,r);return u&&((a=u==null?void 0:u.tableContents)==null?void 0:a.length)>0?u:[]}if(!(i!=null&&i.every(u=>{var f,h,d,v;return((f=u==null?void 0:u.formMenuSelect)==null?void 0:f.length)>0&&((d=(h=u==null?void 0:u.groupSelect)==null?void 0:h.split(":"))==null?void 0:d.length)>0||((v=u==null?void 0:u.formMenuGroup)==null?void 0:v.length)>0})))return Mu(n,i,r,t);if(i!=null&&i.every(u=>!(u!=null&&u.formMenuGroup)))return ei(i,r,t,n);{let u=[];(c=(s=i==null?void 0:i[0])==null?void 0:s.formMenuGroup)==null||c.forEach((v,g)=>{let m=[];i==null||i.forEach(y=>{var b,S,x,E,k,w;m.push({columnPath:y==null?void 0:y.columnPath,formMenuSelect:(x=((b=y==null?void 0:y.formMenuGroup)==null?void 0:b[g])??((S=y==null?void 0:y.formMenuGroup)==null?void 0:S[0]))==null?void 0:x.formMenuSelect,groupSelect:(w=((E=y==null?void 0:y.formMenuGroup)==null?void 0:E[g])??((k=y==null?void 0:y.formMenuGroup)==null?void 0:k[0]))==null?void 0:w.groupSelect,isRoute:y==null?void 0:y.isRoute,label:y==null?void 0:y.label,prop:y==null?void 0:y.label})}),u.push(m)});let f=[],d=u==null?void 0:u.map(async v=>ei(v,r,t,n));return d==null||d.forEach(v=>{v==null||v.forEach(g=>{f.push(g)})}),f}},Vu=async(e,n)=>{var a,s,c,u,f,h,d,v,g,m;let t=e+De+n,r=e,i=(s=(a=Fn.value[t])==null?void 0:a.filter(y=>{var b,S;return((b=y==null?void 0:y.key)==null?void 0:b.type)==="structure"&&((S=y==null?void 0:y.key)==null?void 0:S.parentTable)===""}))==null?void 0:s.map(y=>{var b;return(b=y==null?void 0:y.value)==null?void 0:b.pageData}),o={};(i==null?void 0:i.length)>0?(await St(t,t+Qe+`updateLoading${((c=Se.value)==null?void 0:c.account)||((u=Se.value)==null?void 0:u.账号)}`),Vn.setRouteToChildPath(r),Pn.setActiveMenuPath(t+Qe+`updateLoading${((f=Se.value)==null?void 0:f.account)||((h=Se.value)==null?void 0:h.账号)}`)):(await St(r+Qe,t,o),await St(t,t+Qe+`updateLoading${((d=Se.value)==null?void 0:d.account)||((v=Se.value)==null?void 0:v.账号)}`),Vn.setRouteToChildPath(r),Pn.setActiveMenuPath(t+Qe+`updateLoading${((g=Se.value)==null?void 0:g.account)||((m=Se.value)==null?void 0:m.账号)}`))},Fu=Ct(p.pinia),{originalPath:yo}=p.storeToRefs(Fu),Lu=e=>e==null?void 0:e.map(t=>(t=bo(t),t)),ir=async()=>{var t,r,i,o,a,s,c,u,f,h,d,v;let e;const n=await p.getInsofDataApi({key:{type:"structure",pageKey:"menu",systemKey:sessionStorage.getItem("systemKey")}});return(s=(a=(o=(i=(r=(t=n.data.result)==null?void 0:t[0])==null?void 0:r.value)==null?void 0:i.pageData)==null?void 0:o.compData)==null?void 0:a[0])!=null&&s.contents&&(e=Lu((v=(d=(h=(f=(u=(c=n.data.result)==null?void 0:c[0])==null?void 0:u.value)==null?void 0:f.pageData)==null?void 0:h.compData)==null?void 0:d[0])==null?void 0:v.contents)),e},Ku=e=>{var r,i,o;const n=(i=(r=e==null?void 0:e.compData)==null?void 0:r.find(a=>(a==null?void 0:a.key)==="header"))==null?void 0:i.contents;return{label:e==null?void 0:e.name,value:e==null?void 0:e.name,children:n!=null&&n.every(a=>!Array.isArray(a))?n==null?void 0:n.map(a=>({label:a==null?void 0:a.label,value:a==null?void 0:a.label})):(o=en(n==null?void 0:n[0]))==null?void 0:o.map(a=>({label:a==null?void 0:a.label,value:a==null?void 0:a.label}))}},vo=async e=>{var i,o;let n="";(i=p.cloneDeep(e))==null||i.forEach(a=>{n=n===""?n+a:n+"/"+a});let t="";(o=p.cloneDeep(e))==null||o.forEach((a,s)=>{s!==(e==null?void 0:e.length)-1?t=t===""?t+a:t+"/"+a:t=t+yo.value+a});const r=await He(n,sessionStorage.getItem("systemKey"),"");return r||await He(t,sessionStorage.getItem("systemKey"),"")},_u=async e=>{var r,i,o;const n=await vo(e);let t=[];return((r=n==null?void 0:n.data)==null?void 0:r.type)==="success"&&(t=(o=(i=n.data.result)==null?void 0:i.map(a=>a.value.pageData))==null?void 0:o.filter(a=>(a==null?void 0:a.comp)==="Table"),t=t==null?void 0:t.map(a=>Ku(a))),t},Hu=[{key:"单选",value:"Select"},{key:"日期",value:"Date"},{key:"长文本",value:"TextArea"},{key:"上传",value:"Upload"},{key:"富文本",value:"Quill"}],Ge=[{label:"输入框",value:"Input"},{label:"下拉框",value:"Select"},{label:"日期选择器",value:"Date"},{label:"长文本",value:"TextArea"},{label:"附件选择器",value:"Upload"},{label:"富文本",value:"Quill"},{label:"链接跳转",value:"Link"}],$u=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Ge},{key:"originalContent",label:"初始值",type:"Input"},{key:"value",label:"固定值",type:"Input"},{key:"isFormColHidden",label:"是否隐藏",name:"是否隐藏",type:"radio",options:[{label:"否",value:!1},{label:"是",value:!0}],value:!1}],Uu=async()=>{const e=await ir();return[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Ge},{key:"multiple",label:"多选",default:!1,type:"Switch"},{key:"originalContent",label:"初始值",type:"Select"},{key:"selectRelateType",label:"下拉绑定类型",type:"Select",options:[{label:"关联绑定列",value:"关联绑定列"},{label:"自定义绑定",value:"自定义绑定"}]},{key:"menuSelect",label:"菜单选项",type:"cascader",options:e},{key:"groupSelect",label:"组信息选项",type:"cascader",options:[]},{key:"contents",label:"选项值",type:"Input"}]},zu=async()=>[{value:"",id:"v1",label:"菜单选项",name:"菜单选项",type:"cascader",contents:await ir()},{value:"",id:"v2",label:"组信息选项",name:"组信息选项",type:"cascader",contents:[]},{value:"",id:"v2",label:"选项值",name:"选项值",type:"Input",contents:[]}],ju=l.computed(async()=>await Uu()),qu=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Ge},{key:"originalContent",label:"初始值",type:"Date"},{key:"isNewDate",label:"当前时间",type:"Switch",value:!1}],Gu=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Ge},{key:"value",label:"固定值",type:"Input"}],Wu=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Ge},{key:"originalContent",label:"初始值",type:"Input"}],ti=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Ge}],Yu=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Ge}],Zu=[{key:"Input",value:$u},{key:"Select",value:ju},{key:"Date",value:qu},{key:"TextArea",value:Wu},{key:"Upload",value:ti},{key:"DragUpload",value:ti},{key:"Quill",value:Yu},{key:"Link",value:Gu}],Ju=[{value:"normal",label:"自定义"},{value:"add",label:"新增"},{value:"fix",label:"修改"},{value:"view",label:"查看"},{value:"delete",label:"删除"}],Xu=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Ju},{key:"background",label:"颜色",type:"Color"}],Qu=e=>{var t,r,i,o,a,s,c,u;let n=p.cloneDeep(e);if(((t=n==null?void 0:n.find(f=>(f==null?void 0:f.name)==="类型"))==null?void 0:t.type)==="Select"&&((o=(i=(r=p.cloneDeep(n))==null?void 0:r.find(f=>(f==null?void 0:f.name)==="选项值"))==null?void 0:i.value)==null?void 0:o.length)>0){const f=(u=(c=(s=(a=p.cloneDeep(n))==null?void 0:a.find(h=>(h==null?void 0:h.name)==="选项值"))==null?void 0:s.value)==null?void 0:c.split(","))==null?void 0:u.map(h=>({label:h,value:h}));n=n==null?void 0:n.map(h=>((h==null?void 0:h.name)==="初始值"&&(h.contents=f,h.value=(h==null?void 0:h.value)??""),h))}return n},bo=e=>{var i;let n={};const t=(i=e==null?void 0:e.filter(o=>!Array.isArray(o)))==null?void 0:i[0];n.label=t,n.value=t;const r=e==null?void 0:e.filter(o=>Array.isArray(o));return r&&(r==null?void 0:r.length)>0&&(n.children=r==null?void 0:r.map(o=>bo(o))),n},ec=async e=>{var o,a,s,c;let n=p.cloneDeep(e);const t=(o=e==null?void 0:e.find(u=>(u==null?void 0:u.name)==="下拉绑定类型"))==null?void 0:o.value,r=(a=e==null?void 0:e.find(u=>(u==null?void 0:u.name)==="类型"))==null?void 0:a.value,i=await zu();return r==="Select"&&t===""?n=n==null?void 0:n.filter(u=>(u==null?void 0:u.name)!=="菜单选项"&&(u==null?void 0:u.name)!=="组信息选项"&&(u==null?void 0:u.name)!=="选项值"):r==="Select"&&t==="关联绑定列"?n!=null&&n.find(u=>(u==null?void 0:u.name)==="菜单选项"||(u==null?void 0:u.name)==="组信息选项")?n=(s=p.cloneDeep(n))==null?void 0:s.filter(u=>(u==null?void 0:u.name)!=="选项值"):n=[...p.cloneDeep(n),...i].filter(u=>(u==null?void 0:u.name)!=="选项值"):r==="Select"&&t==="自定义绑定"&&(n!=null&&n.find(u=>(u==null?void 0:u.name)==="选项值")?n=(c=p.cloneDeep(n))==null?void 0:c.filter(u=>(u==null?void 0:u.name)!=="菜单选项"&&(u==null?void 0:u.name)!=="组信息选项"):n=[...p.cloneDeep(n),...i].filter(u=>(u==null?void 0:u.name)!=="菜单选项"&&(u==null?void 0:u.name)!=="组信息选项")),n},tc=(e,n)=>{var r;let t=!1;return(r=p.cloneDeep(e))==null||r.forEach(i=>{var o;(i==null?void 0:i.key)==="formContent"&&((o=i==null?void 0:i.contents)==null||o.forEach(a=>{(a==null?void 0:a.key)===n?t=!0:t=t}))}),t},mo=(e,n)=>{var a,s,c,u,f;const t=p.cloneDeep(e);if(!t)return;let r="";(s=(a=p.cloneDeep(t))==null?void 0:a.menuSelect)==null||s.forEach(h=>{h!=null&&h.includes("[")?r=r+yo.value:r=r===""?r+h:r+"/"+h});const i=(c=n==null?void 0:n[r])==null?void 0:c.map(h=>{var d;return(d=h==null?void 0:h.value)==null?void 0:d.pageData});let o=i==null?void 0:i.filter(h=>{var d,v;return(h==null?void 0:h.name)===((v=(d=p.cloneDeep(t))==null?void 0:d.groupSelect)==null?void 0:v[0])});if((o==null?void 0:o.length)===1?o=o==null?void 0:o[0]:(u=p.cloneDeep(o))==null||u.forEach(h=>{var d,v;(h==null?void 0:h.comp)==="Form"&&tc(h==null?void 0:h.compData,(v=(d=p.cloneDeep(t))==null?void 0:d.groupSelect)==null?void 0:v[1])&&(o=h)}),(o==null?void 0:o.comp)==="Form"){let h="";return(f=o==null?void 0:o.compData)==null||f.forEach(d=>{var v;(d==null?void 0:d.key)==="formContent"&&((v=d==null?void 0:d.contents)==null||v.forEach(g=>{var m,y;(g==null?void 0:g.key)===((y=(m=p.cloneDeep(t))==null?void 0:m.groupSelect)==null?void 0:y[1])&&(g.type==="Select"&&!(g!=null&&g.value)?h=void 0:h=g==null?void 0:g.value)}))}),h}};exports.CHANGE_EVENT=Tn;exports.ElButton=Fi;exports.ElButtonGroup=fs;exports.ElFocusTrap=Bi;exports.ElInput=Ci;exports.ElMessageBox=Ui;exports.ElOverlay=Ki;exports.FOCUS_TRAP_INJECTION_KEY=Ii;exports.FormButton=Xu;exports.FormContent=Zu;exports.FormType=Hu;exports.INPUT_EVENT=wn;exports.IsJson=Ns;exports.PatchFlags=bt;exports.SetCache=Et;exports.State=su;exports.State$1=Dl;exports.TinyColor=Pi;exports.UPDATE_MODEL_EVENT=jt;exports.addPathToTree=on;exports.addTableContents=mu;exports.animateScrollTo=ca;exports.baseFlatten=Ln;exports.baseIsEqual=Kn;exports.buttonTypes=Ni;exports.cAF=di;exports.cacheHas=si;exports.convertArrayToTree=Zn;exports.copyAdd=Vu;exports.decryptData=nr;exports.deleteTableContents=bu;exports.encryptData=vt;exports.ensureOnlyChild=ys;exports.fixFormContents=Eu;exports.fixTableContents=Su;exports.flatRest=ai;exports.flattedChildren=gt;exports.flatten=oi;exports.focusNode=Aa;exports.formContextKey=tn;exports.formItemContextKey=_n;exports.formToOptionsContents=Qu;exports.generateKeyPair=Wl;exports.getActivePageStructureId=to;exports.getAllLeafNodes=ku;exports.getColumnChild=en;exports.getColumnContents=je;exports.getFirstArrayProperty=Yn;exports.getFormContents=Fs;exports.getGradeColumns=Cu;exports.getItemData=He;exports.getLeafNodesRecursive=Xn;exports.getMenusContent=ir;exports.getNewColumnChild=Iu;exports.getNormalizedProps=gs;exports.getParentConstruct=Ws;exports.getParentContents=Ls;exports.getParentKey=Gs;exports.getScrollBarWidth=gi;exports.getScrollContainer=la;exports.getScrollElement=fa;exports.getScrollTop=ha;exports.getSibling=Da;exports.getTableFormToForm=xu;exports.getValueToObjectValue=st;exports.groupByField=Jn;exports.handleRowAuthorityRender=Qn;exports.handleSubmitAsync=ct;exports.hasIn=ci;exports.identity=ni;exports.inputProps=bi;exports.isEqual=fi;exports.isFirefox=yi;exports.isFocusable=nn;exports.isFragment=Li;exports.isLeaf=wi;exports.isValidComponentSize=$i;exports.isValidElementNode=ds;exports.judgeContents=mo;exports.loadingConstruct=St;exports.loadingSystemType=Tu;exports.menuToContentType=_u;exports.menuToParent=vo;exports.methodTableToContent=Vs;exports.overRest=ii;exports.pick=hi;exports.rAF=pi;exports.resetPassword=ut;exports.scrollIntoView=ua;exports.selectToBase=ec;exports.setToArray=ui;exports.setToString=ri;exports.submitTableAsyncByVerify=un;exports.tableEveryContents=qs;exports.tableToContents=_s;exports.tableToStruct=Ks;exports.triggerEvent=wa;exports.tryFocus=Ne;exports.useAriaProps=vi;exports.useAttrs=mi;exports.useAuthorityState=Gn;exports.useComposition=Ai;exports.useDeprecated=Mi;exports.useDraggable=_i;exports.useFocusController=Di;exports.useFormDisabled=At;exports.useFormItem=Hn;exports.useFormItemInputId=Ei;exports.useFormSize=$n;exports.useId=qt;exports.useIdInjection=Si;exports.useLockscreen=Hi;exports.useMenuState=kt;exports.useModelComp=pt;exports.useOriginalState=Ct;exports.useSameTarget=jn;exports.useTableComp=qn;
|
|
32
|
+
`,t+="-----END PUBLIC KEY-----",t},n.hasPublicKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")},n.hasPrivateKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},n.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},n}($l),mn,Gl=typeof process<"u"?(mn=process.env)===null||mn===void 0?void 0:mn.npm_package_version:void 0,ln=function(){function e(n){n===void 0&&(n={}),n=n||{},this.default_key_size=n.default_key_size?parseInt(n.default_key_size,10):1024,this.default_public_exponent=n.default_public_exponent||"010001",this.log=n.log||!1,this.key=null}return e.prototype.setKey=function(n){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new Zr(n)},e.prototype.setPrivateKey=function(n){this.setKey(n)},e.prototype.setPublicKey=function(n){this.setKey(n)},e.prototype.decrypt=function(n){try{return this.getKey().decrypt(Ur(n))}catch{return!1}},e.prototype.encrypt=function(n){try{return Wt(this.getKey().encrypt(n))}catch{return!1}},e.prototype.sign=function(n,t,r){try{return Wt(this.getKey().sign(n,t,r))}catch{return!1}},e.prototype.verify=function(n,t,r){try{return this.getKey().verify(n,Ur(t),r)}catch{return!1}},e.prototype.getKey=function(n){if(!this.key){if(this.key=new Zr,n&&{}.toString.call(n)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,n);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=Gl,e}();function Wl(){const e=new ln({default_key_size:"2048"});return{publicKey:e.getPublicKey(),privateKey:e.getPrivateKey()}}function vt(e,n){const t=new ln;return t.setPublicKey(n),t.encrypt(e)||""}function nr(e,n){const t=new ln;return t.setPrivateKey(n),t.decrypt(e)||""}function Jr(){return typeof new ln().encrypt=="function"}const lo=p.useLoginState(p.pinia),{superAdminInfo:Yl,cryptoInfo:me,loginUserInfo:Sn}=p.storeToRefs(lo),Zl=kt(p.pinia),{activeMenuPath:mt}=p.storeToRefs(Zl),Mn=pt(p.pinia),ut="123456",Jl=Gn(p.pinia),{routerPageStructures:Xl}=p.storeToRefs(Jl),rr=l.ref(0),Ql=l.ref([{label:"用户名称",value:"",name:"userName"}]),nt=l.computed(()=>{const e=sessionStorage.getItem("isSuperAdmin");return e?JSON.parse(e):!1}),eu=e=>{console.log("handleQueryChange",e)},Yt=l.ref([]),uo=l.ref(""),Zt=l.computed(()=>{var n,t,r,i,o;const e=(n=Xl.value)==null?void 0:n.find(a=>{var s;return((s=a==null?void 0:a.comp)==null?void 0:s.toUpperCase())==="TABLE"});return e?(uo.value=e.name,Yt.value=(i=(r=(t=e==null?void 0:e.compData)==null?void 0:t.find(s=>(s==null?void 0:s.key)==="header"))==null?void 0:r.contents)==null?void 0:i.filter(s=>(s==null?void 0:s.label)!=="操作"),(o=e==null?void 0:e.compData)==null?void 0:o.map(s=>{var c;if((s==null?void 0:s.key)==="rowButton"){const u=[...s==null?void 0:s.contents,{label:"重置密码"}];return{...s,contents:u}}return(s==null?void 0:s.key)==="header"?{...s,contents:(c=s==null?void 0:s.contents)==null?void 0:c.map(u=>{var f,h,d,v;return{...u,isTableColHidden:((f=u==null?void 0:u.prop)==null?void 0:f.includes("头像"))||((h=u==null?void 0:u.prop)==null?void 0:h.includes("签名")),isFormColHidden:((d=u==null?void 0:u.prop)==null?void 0:d.includes("头像"))||((v=u==null?void 0:u.prop)==null?void 0:v.includes("签名"))}})}:s})):[]}),tu=e=>{Mn.setRefreshCurStructure(!1),un(e.singleContent,e.buttonName,rr.value,e==null?void 0:e.selectItems)},Nn=l.ref(),nu=e=>{console.log("onDoubleClick",e)},ru=(e,n)=>{e==="重置密码"&&Ui.confirm(`该操作将会重置【${(n==null?void 0:n.account)||(n==null?void 0:n.账号)}】的密码为【${ut}】,确认重置?`,"警告",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{Nn.value={...n,password:ut},un(Nn.value,e,rr.value)}).catch(()=>{p.ElMessage.info("取消重置")})},iu=()=>{Jt(mt.value).then(e=>{var t;const n=Array.isArray(e)&&(e==null?void 0:e.filter(r=>(r==null?void 0:r.account)!==Yl.value.account));Zt.value=(t=Zt.value)==null?void 0:t.map(r=>r.key==="tableContents"?{...r,contents:n==null?void 0:n.map(i=>{var o;return{...i,password:nr(i==null?void 0:i.password,(o=me==null?void 0:me.value)==null?void 0:o.privateKey)}})}:r)})},ct=async(e,n,t)=>{var r,i;try{const o=await e(n);return((r=o==null?void 0:o.data)==null?void 0:r.code)===200?(t!=="查询"&&await lo.setLogRecordAsync({type:t,data:n},mt.value),p.ElMessage.success("保存成功"),Mn.setRefreshCurStructure(!0),o.data.result||((i=o==null?void 0:o.data)==null?void 0:i.code)===200):null}catch(o){p.ElMessage.error(o)}finally{Mn.setCacheUpdatingData(null)}},ou=async(e,n)=>{var o,a;let t=[];Array.isArray(e)?t=p.cloneDeep(e):t=[p.cloneDeep(e)];const r=(o=t==null?void 0:t.filter(s=>typeof(s==null?void 0:s.id)=="string"))==null?void 0:o.map(s=>{var u,f,h,d,v,g,m;const c=Dt(s,Yt.value);return Jr()&&c&&(!c.password&&nt.value?c.password=vt(ut,(u=me==null?void 0:me.value)==null?void 0:u.publicKey):c.password&&nt.value&&(c.password=vt(c==null?void 0:c.password,(f=me==null?void 0:me.value)==null?void 0:f.publicKey))),{key:{type:"data",layer:s==null?void 0:s.layer,systemKey:sessionStorage.getItem("systemKey"),pageKey:(h=mt.value)!=null&&h.startsWith("/")?(d=mt.value)==null?void 0:d.substring(1):mt.value,tableId:n,createUserId:(v=Sn.value)==null?void 0:v.id,createUserOrg:((g=Sn.value)==null?void 0:g.dept)||((m=Sn.value)==null?void 0:m.部门名称)},value:{tableData:c}}}),i=(a=t==null?void 0:t.filter(s=>typeof(s==null?void 0:s.id)=="number"))==null?void 0:a.map(s=>{var u,f;const c=Dt(s,Yt.value);return Jr()&&c&&(!c.password&&nt.value?c.password=vt(ut,(u=me==null?void 0:me.value)==null?void 0:u.publicKey):c.password&&nt.value&&(c.password=vt(c==null?void 0:c.password,(f=me==null?void 0:me.value)==null?void 0:f.publicKey))),{id:s==null?void 0:s.id,value:{tableData:c}}});r.length>0&&await ct(p.batchAddInsofDataApi,{dataList:r},"新增"),i.length>0&&(await ct(p.batchUpdateInsofDataApi,{dataList:i},"编辑"),qe.show=!1)},un=async(e,n,t,r)=>{if(!(n!=null&&n.includes("删除")))await ou(e,t);else{let i=[];n!=null&&n.includes("批量")?i=r&&(r==null?void 0:r.length)>0?r==null?void 0:r.map(o=>o==null?void 0:o.id):[]:i=[e==null?void 0:e.id],await ct(p.batchDeleteInsofDataApi,{ids:i},"编辑")}},Jt=async e=>{const n=await ct(p.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:e}},"查询"),t=n==null?void 0:n.map(r=>{var i,o;return{id:r.id,layer:(i=r.key)==null?void 0:i.layer,tableData:(o=r==null?void 0:r.value)==null?void 0:o.tableData}});return t==null?void 0:t.map(r=>{var i;if(!Array.isArray(r==null?void 0:r.tableData))return{...r.tableData,layer:(i=r.key)==null?void 0:i.layer,id:r.id}})},au={comp:"Group",name:"/系统管理/用户管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:Zt.value,name:""}]}]},su=Object.freeze(Object.defineProperty({__proto__:null,changedRow:Nn,clickRowButton:ru,columns:Yt,compName:uo,getPageDataAsync:Jt,handleItemDataChange:tu,handleQueryChange:eu,handleSubmitAsync:ct,loginUserIsSuper:nt,onDoubleClick:nu,pageData:Zt,queryFormData:Ql,refreshUserTableData:iu,resetPassword:ut,structureId:rr,submitTableAsyncByVerify:un,tempUserPageData:au},Symbol.toStringTag,{value:"Module"})),Ct=p.defineStore("originalState",{state:()=>({originalPath:"^"}),actions:{}}),lu=pt(p.pinia),{routeToChildPath:Xr}=p.storeToRefs(lu),uu=p.useLoginState(p.pinia),{loginUserInfo:Xt,cryptoInfo:En}=p.storeToRefs(uu),cu=Ct(p.pinia),{originalPath:Qr}=p.storeToRefs(cu),fu=e=>{var n,t,r;return((t=(n=Xt.value)==null?void 0:n.layer)==null?void 0:t.toUpperCase())==="SUPERADMIN"?!0:((r=Xt.value)==null?void 0:r.account)===(e==null?void 0:e.account)},hu=async(e,n,t)=>{const r=Jt("/系统管理/角色管理"),i=Jt("/系统管理/部门管理");return await Promise.all([r,i]).then(a=>{var u,f;const s=(u=a==null?void 0:a[0])==null?void 0:u.map(h=>({label:h==null?void 0:h.roleName,value:h==null?void 0:h.roleName})),c=(f=a==null?void 0:a[1])==null?void 0:f.map(h=>({label:h==null?void 0:h.deptName,value:h==null?void 0:h.deptName}));return e==null?void 0:e.map(h=>{var d;return{...h,compData:(d=h==null?void 0:h.compData)==null?void 0:d.map(v=>{var g,m;return(v==null?void 0:v.key)==="header"?{...v,contents:(g=v==null?void 0:v.contents)==null?void 0:g.map(y=>y.prop==="userDept"?{...y,options:c}:y.prop==="userRoles"?{...y,options:s}:y)}:(v==null?void 0:v.key)==="tableContents"?{...v,contents:(m=v==null?void 0:v.contents)==null?void 0:m.map(y=>{var b;return{...y,password:fu(y)?nr(y==null?void 0:y.password,(b=En==null?void 0:En.value)==null?void 0:b.privateKey):y==null?void 0:y.password}})}:v})}})})},pu=async(e,n)=>{const t=sessionStorage.getItem("authority"),r=JSON.parse(t||"");if(Array.isArray(r)){let i;Xr.value?i=Array.isArray(r)&&(r==null?void 0:r.filter(s=>(s==null?void 0:s.includes(e))||(s==null?void 0:s.includes(Xr.value)))):i=Array.isArray(r)&&(r==null?void 0:r.filter(s=>s==null?void 0:s.includes(e)));const o=i==null?void 0:i.map(s=>{var c;return((c=s==null?void 0:s.split("/"))==null?void 0:c.pop())||""});return n==null?void 0:n.map(s=>{var c;return{...s,compData:(c=s==null?void 0:s.compData)==null?void 0:c.map(u=>{var f;return(u==null?void 0:u.key)==="rowButton"||(u==null?void 0:u.key)==="extraButton"?{...u,contents:(f=u==null?void 0:u.contents)==null?void 0:f.filter(h=>o==null?void 0:o.includes(h==null?void 0:h.label))}:u})}})}else return typeof r=="string"&&(r==null?void 0:r.toUpperCase())==="SUPERADMIN"?e==="/系统管理/用户管理"?await hu(n):n:[]},du=(e,n)=>{var o,a,s,c;const t=(a=(o=n["系统管理/角色管理"])==null?void 0:o.filter(u=>{var f;return((f=u==null?void 0:u.key)==null?void 0:f.type)==="data"}))==null?void 0:a.map(u=>u.value.tableData),r=(c=(s=e==null?void 0:e.value)==null?void 0:s.tableData)==null?void 0:c.角色名称,i=t==null?void 0:t.find(u=>(u==null?void 0:u.角色名称)===r);return i==null?void 0:i.数据范围};var zt=(e=>(e[e.全部数据权限=0]="全部数据权限",e[e.本部门数据权限=1]="本部门数据权限",e[e.本部门及以下数据权限=2]="本部门及以下数据权限",e[e.仅本人数据权限=3]="仅本人数据权限",e[e.自定义数据权限=4]="自定义数据权限",e))(zt||{});const co=(e,n,t)=>{var a,s,c,u;if(((c=(s=(a=Xt.value)==null?void 0:a.key)==null?void 0:s.layer)==null?void 0:c.toUpperCase())==="SUPERADMIN"||!t)return e;const r=(u=t==null?void 0:t["系统管理/用户管理"])==null?void 0:u.find(f=>{var h;return(f==null?void 0:f.id)===((h=Xt.value)==null?void 0:h.id)}),i=du(r,t);if(!i)return e;switch(zt==null?void 0:zt[i]){case 0:return e;case 1:return n?e===null&&typeof e!="object"?e:Object.fromEntries(Object.entries(e).filter(([h,d])=>{var m,y,b,S,x,E,k,w,A;const v=d==null?void 0:d[1],g=h[(h==null?void 0:h.length)-1]===Qr.value;return((y=(m=v==null?void 0:v.key)==null?void 0:m.createUserLayer)==null?void 0:y.toUpperCase())==="SUPERADMIN"||((b=v==null?void 0:v.key)==null?void 0:b.createUserOrg)===((x=(S=r==null?void 0:r.value)==null?void 0:S.tableData)==null?void 0:x.部门名称)||((E=v==null?void 0:v.key)==null?void 0:E.createUserOrg)===((w=(k=r==null?void 0:r.value)==null?void 0:k.tableData)==null?void 0:w.部门名称)&&((A=v==null?void 0:v.key)==null?void 0:A.createUserId)===(r==null?void 0:r.id)||g})):e==null?void 0:e.filter(f=>{var h,d,v,g,m,y,b,S,x;return((d=(h=f==null?void 0:f.key)==null?void 0:h.createUserLayer)==null?void 0:d.toUpperCase())==="SUPERADMIN"||((v=f==null?void 0:f.key)==null?void 0:v.createUserOrg)===((m=(g=r==null?void 0:r.value)==null?void 0:g.tableData)==null?void 0:m.部门名称)||((y=f==null?void 0:f.key)==null?void 0:y.createUserOrg)===((S=(b=r==null?void 0:r.value)==null?void 0:b.tableData)==null?void 0:S.部门名称)&&((x=f==null?void 0:f.key)==null?void 0:x.createUserId)===(r==null?void 0:r.id)});case 2:break;case 3:return n?e===null&&typeof e!="object"?e:Object.fromEntries(Object.entries(e).filter(([h,d])=>{var m;const v=d==null?void 0:d[1],g=h[(h==null?void 0:h.length)-1]===Qr.value;return((m=v==null?void 0:v.key)==null?void 0:m.createUserId)===(r==null?void 0:r.id)||g})):e==null?void 0:e.filter(f=>{var h;return((h=f==null?void 0:f.key)==null?void 0:h.createUserId)===(r==null?void 0:r.id)})}},On=kt(p.pinia),{activeMenuPath:gu}=p.storeToRefs(On),ft=pt(p.pinia),yu=Ct(p.pinia),{originalPath:fo}=p.storeToRefs(yu),vu=async(e,n,t,r)=>{var g,m,y,b,S,x,E,k,w,A,T,N,D,C,M,O,Y,X,F,V,$,Z,te,_,B,P,L,z,Q,K,U,ae,j,ce,q,Ee,fe;const i=(m=(g=e==null?void 0:e.find(ne=>(ne==null?void 0:ne.key)==="header"))==null?void 0:g.contents)==null?void 0:m.find(ne=>ne==null?void 0:ne.columnPath);let o=(w=(k=(E=(x=(y=p.cloneDeep(i==null?void 0:i.columnPath))==null?void 0:y.split("["))==null?void 0:x[((S=(b=i==null?void 0:i.columnPath)==null?void 0:b.split("["))==null?void 0:S.length)-1])==null?void 0:E.split("]"))==null?void 0:k[0])==null?void 0:w.replaceAll("'",""),a=(T=(A=p.cloneDeep(i==null?void 0:i.columnPath))==null?void 0:A.split("['"+o+"']"))==null?void 0:T[0],s="",c="",u="";if(a.includes("[")){let ne=(M=(C=(D=(N=a==null?void 0:a.split("["))==null?void 0:N[1])==null?void 0:D.split("]"))==null?void 0:C[0])==null?void 0:M.split("/");c=a,s=(X=(Y=(O=a==null?void 0:a.split("["))==null?void 0:O[1])==null?void 0:Y.split("]"))==null?void 0:X[0];let re="";t==null||t.forEach(le=>{var ye,Ae,ke,Be,W;((Ae=(ye=le==null?void 0:le.value)==null?void 0:ye.pageData)==null?void 0:Ae.name)===(ne==null?void 0:ne[0])&&((W=(Be=(ke=le==null?void 0:le.value)==null?void 0:ke.pageData)==null?void 0:Be.compData)==null||W.forEach(ie=>{var R;(ie==null?void 0:ie.key)==="formContent"&&((R=ie==null?void 0:ie.contents)==null||R.forEach(G=>{var ve;if((G==null?void 0:G.prop)===(ne==null?void 0:ne[1])){let Re=mo((ve=p.cloneDeep(G))==null?void 0:ve.optionUrl,r);re=(G==null?void 0:G.value)||Re||""}}))}))}),u=re,a=((F=a==null?void 0:a.split("["))==null?void 0:F[0])+re}let f=[];const h=await p.getInsofDataApi({key:{pageKey:a,systemKey:sessionStorage.getItem("systemKey"),type:"structure"}}),d=await p.getInsofDataApi({key:{pageKey:gu.value,systemKey:sessionStorage.getItem("systemKey"),tableId:parseInt(n),type:"data"}}),v=[];if(($=(V=d==null?void 0:d.data)==null?void 0:V.result)==null||$.forEach(ne=>{v.push([{id:ne==null?void 0:ne.id},ne.value.tableData])}),Array.isArray((Z=h==null?void 0:h.data)==null?void 0:Z.result)&&((_=(te=h==null?void 0:h.data)==null?void 0:te.result)==null?void 0:_.length)>0){let ne;(P=(B=h==null?void 0:h.data)==null?void 0:B.result)!=null&&P.find(re=>{var le,ye;return((ye=(le=re==null?void 0:re.value)==null?void 0:le.pageData)==null?void 0:ye.name)===o})&&(ne=await((z=(L=h==null?void 0:h.data)==null?void 0:L.result)==null?void 0:z.map(async re=>{var le,ye,Ae,ke,Be,W,ie,R,G,ve,Re,he,or,ar,sr,lr,ur,cr,fr,hr,pr,dr;if(((ye=(le=re==null?void 0:re.value)==null?void 0:le.pageData)==null?void 0:ye.name)===o){f=p.cloneDeep((ke=(Ae=re==null?void 0:re.value)==null?void 0:Ae.pageData)==null?void 0:ke.compData);const We=await p.getInsofDataApi({key:{pageKey:a,systemKey:sessionStorage.getItem("systemKey"),tableId:re==null?void 0:re.id,type:"data"}});let It;if(((W=(Be=We==null?void 0:We.data)==null?void 0:Be.result)==null?void 0:W.length)>0)It=(R=(ie=We==null?void 0:We.data)==null?void 0:ie.result)==null?void 0:R.map(H=>{var gr;let oe=[];return oe.push({id:H==null?void 0:H.id}),oe.push((gr=H==null?void 0:H.value)==null?void 0:gr.tableData),oe}),f.push({key:"tableContents",contents:rt(It,(he=(Re=(ve=(G=re==null?void 0:re.value)==null?void 0:G.pageData)==null?void 0:ve.compData)==null?void 0:Re.find(H=>(H==null?void 0:H.key)==="header"))==null?void 0:he.contents)}),f.push({key:"contentTableId",contents:re==null?void 0:re.id});else{let H=await He(a,sessionStorage.getItem("systemKey"),"");f=(ar=(or=H==null?void 0:H.find(oe=>(oe==null?void 0:oe.name)===o))==null?void 0:or.compData)==null?void 0:ar.filter(oe=>(oe==null?void 0:oe.key)!=="tableContents"),H=(ur=(lr=(sr=H==null?void 0:H.find(oe=>(oe==null?void 0:oe.name)===o))==null?void 0:sr.compData)==null?void 0:lr.find(oe=>(oe==null?void 0:oe.key)==="tableContents"))==null?void 0:ur.contents,It=H,f.push({key:"tableContents",contents:rt(It,(hr=(fr=(cr=H==null?void 0:H.find(oe=>(oe==null?void 0:oe.name)===o))==null?void 0:cr.compData)==null?void 0:fr.find(oe=>(oe==null?void 0:oe.key)==="header"))==null?void 0:hr.contents)}),f.push({key:"contentTableId",contents:(H==null?void 0:H.length)!==0?(dr=(pr=H==null?void 0:H.find(oe=>(oe==null?void 0:oe.name)===o))==null?void 0:pr.compData)==null?void 0:dr.id:re==null?void 0:re.id})}s!==""&&(f!=null&&f.find(H=>(H==null?void 0:H.key)==="pageColumn")&&(f=f==null?void 0:f.filter(H=>(H==null?void 0:H.key)!=="pageColumn")),f.push({key:"pageColumn",contents:c}),f!=null&&f.find(H=>(H==null?void 0:H.key)==="columnPath")&&(f=f==null?void 0:f.filter(H=>(H==null?void 0:H.key)!=="columnPath")),f.push({key:"columnPath",contents:s}),f!=null&&f.find(H=>(H==null?void 0:H.key)==="columnUsingPath")&&(f=f==null?void 0:f.filter(H=>(H==null?void 0:H.key)!=="columnUsingPath")),f.push({key:"columnUsingPath",contents:u}),f!=null&&f.find(H=>(H==null?void 0:H.key)==="pageGroup")&&(f=f==null?void 0:f.filter(H=>(H==null?void 0:H.key)!=="pageGroup")),f.push({key:"pageGroup",contents:o}))}})),await Promise.all(ne))}else{let ne="",re="";(Q=a==null?void 0:a.split("/"))==null||Q.forEach((W,ie)=>{var R;ie<((R=a==null?void 0:a.split("/"))==null?void 0:R.length)-1?ne=ne===""?ne+W:ne+"/"+W:re=W});let le=await He(ne,sessionStorage.getItem("systemKey"),""),ye;(j=(ae=(U=(K=le==null?void 0:le[0])==null?void 0:K.compData)==null?void 0:U.find(W=>(W==null?void 0:W.key)==="header"))==null?void 0:ae.contents)==null||j.forEach((W,ie)=>{W!=null&&W.isMainKey&&(ye=ie)});let Ae=[];(fe=(Ee=(q=(ce=le==null?void 0:le[0])==null?void 0:ce.compData)==null?void 0:q.find(W=>(W==null?void 0:W.key)==="tableContents"))==null?void 0:Ee.contents)==null||fe.forEach(W=>{W.find(ie=>ie===re)&&(ye||ye===0)&&Ae.push(W==null?void 0:W[ye])});let ke=[],Be=await(Ae==null?void 0:Ae.map(async W=>{let ie=await He(ne+fo.value+W,sessionStorage.getItem("systemKey"),""),R=ie==null?void 0:ie.find(G=>(G==null?void 0:G.name)===o);ke.push(R)}));await Promise.all(Be),ke==null||ke.forEach(W=>{var R,G,ve,Re;let ie=p.cloneDeep(W==null?void 0:W.compData);ie&&(ie=ie==null?void 0:ie.filter(he=>(he==null?void 0:he.key)!=="tableContents"),ie.push({key:"tableContents",contents:rt((G=(R=W==null?void 0:W.compData)==null?void 0:R.find(he=>(he==null?void 0:he.key)==="tableContents"))==null?void 0:G.contents,(Re=(ve=W==null?void 0:W.compData)==null?void 0:ve.find(he=>(he==null?void 0:he.key)==="header"))==null?void 0:Re.contents)}),ie.push({key:"contentTableId",contents:W==null?void 0:W.id}),f.push(ie))})}return f},He=async(e,n,t="",r=!1,i,o,a)=>{var y,b,S,x,E,k,w;let s,c=new WeakMap;a?c=a:(b=(y=(await p.getPageInsofDataApi({systemKey:n,type:"data,structure,structureMethod"})).data.result)==null?void 0:y.filter(T=>{var N,D;return((N=T==null?void 0:T.key)==null?void 0:N.pageKey)!=="menu"&&((D=T==null?void 0:T.key)==null?void 0:D.pageKey)!=="secret"}))==null||b.forEach(T=>{c[T.key.pageKey]?c[T.key.pageKey]=[...c[T.key.pageKey],T]:c[T.key.pageKey]=[T]}),(!r||!i)&&(s=(S=c[e])==null?void 0:S.filter(A=>{var T;return((T=A==null?void 0:A.key)==null?void 0:T.parentTable)===t})),ft.setPageMapState(c);const u=(x=c[e])==null?void 0:x.filter(A=>{var T;return((T=A==null?void 0:A.key)==null?void 0:T.type)==="structureMethod"}),f=s==null?void 0:s.map(A=>A.id);if(!f)return;let h=(E=c[e])==null?void 0:E.filter(A=>{var T,N,D,C;return((T=A==null?void 0:A.key)==null?void 0:T.type)==="data"&&(f.includes((N=A==null?void 0:A.key)==null?void 0:N.tableId)||f.includes((C=(D=A==null?void 0:A.key)==null?void 0:D.tableId)==null?void 0:C.toString()))});const d=c[e+fo.value]??[];(d==null?void 0:d.length)===0&&(h=co(h,!1,c));let v=[];h==null||h.forEach(A=>{var D;const T=Array.isArray(A.value.tableData)?A.value.tableData:[A.value.tableData];T.unshift({id:A.id});const N=(D=A==null?void 0:A.key)==null?void 0:D.tableId;v!=null&&v.find(C=>(C==null?void 0:C.key)===N)?v=v==null?void 0:v.map(C=>((C==null?void 0:C.key)===N&&(C.contents=[...C.contents,T]),C)):v.push({key:N,contents:[T]})});let g=[];const m=await(s==null?void 0:s.map(async A=>{var C,M,O,Y,X,F,V,$,Z,te,_,B,P,L,z,Q;const T=A.value.pageData,N=A==null?void 0:A.id;let D=(C=p.cloneDeep(T==null?void 0:T.compData))==null?void 0:C.filter(K=>(K==null?void 0:K.key)!=="tableContents");if(D&&(D!=null&&D.find(K=>(K==null?void 0:K.key)==="header"))&&((O=(M=D==null?void 0:D.find(K=>(K==null?void 0:K.key)==="header"))==null?void 0:M.contents)!=null&&O.every(K=>!(K!=null&&K.columnPath)))){let K=rt((Y=v==null?void 0:v.find(q=>(q==null?void 0:q.key)===A.id))==null?void 0:Y.contents,(X=D==null?void 0:D.find(q=>(q==null?void 0:q.key)==="header"))==null?void 0:X.contents),U=await Pu((F=D==null?void 0:D.find(q=>(q==null?void 0:q.key)==="header"))==null?void 0:F.contents,e,(V=D==null?void 0:D.find(q=>(q==null?void 0:q.key)==="tableFilter"))==null?void 0:V.contents,c);U!=null&&U.mainKeys&&D.push({key:"mainRouters",contents:U==null?void 0:U.mainKeys});let ae=[],j=[];Array.isArray(U)&&(ae=rt(U,($=D==null?void 0:D.find(q=>(q==null?void 0:q.key)==="header"))==null?void 0:$.contents)),Array.isArray(U==null?void 0:U.tableContents)&&(j=rt(U==null?void 0:U.tableContents,(Z=D==null?void 0:D.find(q=>(q==null?void 0:q.key)==="header"))==null?void 0:Z.contents));let ce=[...ae,...j];Array.isArray(K)&&(K==null?void 0:K.length)>0&&(ce=[...ce,...K]),D.push({key:"tableContents",contents:ce}),D=D==null?void 0:D.map(q=>{var Ee;return(q==null?void 0:q.key)==="header"&&(q.contents=(Ee=q.contents)==null?void 0:Ee.map(fe=>((fe==null?void 0:fe.prop)===(U==null?void 0:U.mainKey)&&(fe.isMainKey=!0),fe))),q})}else D&&(D!=null&&D.find(K=>(K==null?void 0:K.key)==="header"))&&(D=await vu(p.cloneDeep(D),N,s,c),T.tableId=(te=D==null?void 0:D.find(K=>(K==null?void 0:K.key)==="contentTableId"))==null?void 0:te.contents);if(T.id=A==null?void 0:A.id,T.isShow=(B=(_=A==null?void 0:A.value)==null?void 0:_.pageData)==null?void 0:B.isShow,T.compData=D,((P=A.key)==null?void 0:P.type)!=="method")(L=T==null?void 0:T.compData)!=null&&L.every(K=>Array.isArray(K))?((z=T==null?void 0:T.compData)==null?void 0:z.length)===0?g.push(T):(Q=T==null?void 0:T.compData)==null||Q.forEach((K,U)=>{let ae;U===0?ae={comp:T==null?void 0:T.comp,compData:K,id:T==null?void 0:T.id,name:T==null?void 0:T.name,isShow:T==null?void 0:T.isShow}:ae={comp:T==null?void 0:T.comp,compData:K,id:T==null?void 0:T.id,name:"",isShow:T==null?void 0:T.isShow},g.push(ae)}):g.push(T);else{let K;K={name:"",compData:[T],comp:"calculator"},g.push(K)}}));return await Promise.all(m),((k=u==null?void 0:u.map(A=>A.value.pageData))==null?void 0:k.filter(A=>Object.values(A).length>0).length)>0&&g.push({comp:"methodButton",name:"",compData:(w=u==null?void 0:u.map(A=>A.value.pageData))==null?void 0:w.filter(A=>Object.values(A).length>0)}),g=g.sort((A,T)=>A.id-T.id),o?g:await pu(e,g)},bu=async e=>{await p.deleteInsofDataApi({id:e}),ft.setTableLoading(!1)},mu=async(e,n,t,r,i,o,a,s)=>{var h,d,v,g,m,y,b,S,x,E,k,w,A,T,N,D,C,M,O,Y,X,F,V,$;let c=((d=(h=a==null?void 0:a.content)==null?void 0:h[0])==null?void 0:d.id)??"",u=(v=s==null?void 0:s.param)==null?void 0:v.url,f;if(c!==""&&((g=a==null?void 0:a.content)==null?void 0:g.length)>1&&typeof((y=(m=a==null?void 0:a.content)==null?void 0:m[0])==null?void 0:y.id)!="string"){const Z=await p.getInsofDataApi({id:c});let te=((E=(x=(S=(b=Z==null?void 0:Z.data)==null?void 0:b.result)==null?void 0:S[0])==null?void 0:x.key)==null?void 0:E.tableId)??"",_=((T=(A=(w=(k=Z==null?void 0:Z.data)==null?void 0:k.result)==null?void 0:w[0])==null?void 0:A.key)==null?void 0:T.pageKey)??"";const B=await p.createInsofDataApi({key:{type:e,pageKey:u||_||n,tableId:te||t,systemKey:r},value:{tableData:st(i,(N=je(o))==null?void 0:N.filter(P=>P!=="操作"))}});((D=B==null?void 0:B.data)==null?void 0:D.code)===200?(f=(C=B==null?void 0:B.data)==null?void 0:C.result,p.ElMessage.success("保存成功")):p.ElMessage.error("保存响应失败"),ft.setTableLoading(!1)}else{let Z;if(a!=null&&a.parentTableId){let _=await p.getInsofDataApi({id:a==null?void 0:a.parentTableId});Z=(X=(Y=(O=(M=_==null?void 0:_.data)==null?void 0:M.result)==null?void 0:O[0])==null?void 0:Y.key)==null?void 0:X.pageKey}const te=await p.createInsofDataApi({key:{type:e,pageKey:u||Z||n,tableId:a!=null&&a.parentTableId?a==null?void 0:a.parentTableId:t,systemKey:r},value:{tableData:st(i,(F=je(o))==null?void 0:F.filter(_=>_!=="操作"))}});((V=te==null?void 0:te.data)==null?void 0:V.code)===200?(f=($=te==null?void 0:te.data)==null?void 0:$.result,p.ElMessage.success("保存成功")):p.ElMessage.error("保存响应失败"),ft.setTableLoading(!1)}return f},Su=async(e,n,t,r,i,o,a)=>{var f,h,d,v,g,m,y,b,S,x,E,k;if(!r)return;const s=await p.getInsofDataApi({id:r});let c=((v=(d=(h=(f=s==null?void 0:s.data)==null?void 0:f.result)==null?void 0:h[0])==null?void 0:d.key)==null?void 0:v.tableId)??"",u=((b=(y=(m=(g=s==null?void 0:s.data)==null?void 0:g.result)==null?void 0:m[0])==null?void 0:y.key)==null?void 0:b.pageKey)??"";if(c&&c!==""){const w=await p.updateInsofDataApi({key:{type:e,pageKey:u,tableId:c,systemKey:i},value:{tableData:st(o,(S=je(a))==null?void 0:S.filter(A=>A!=="操作"))},id:r});((x=w==null?void 0:w.data)==null?void 0:x.code)===200?p.ElMessage.success("保存成功"):p.ElMessage.error("保存响应失败"),ft.setTableLoading(!1)}else{const w=await p.updateInsofDataApi({key:{type:e,pageKey:n,tableId:t,systemKey:i},value:{tableData:st(o,(E=je(a))==null?void 0:E.filter(A=>A!=="操作"))},id:r});((k=w==null?void 0:w.data)==null?void 0:k.code)===200?p.ElMessage.success("保存成功"):p.ElMessage.error("保存响应失败"),ft.setTableLoading(!1)}},Eu=async(e,n)=>{await p.updateInsofDataApi({value:{pageData:n},id:e})},Tu=async()=>{var e,n,t,r,i,o,a,s,c;try{const u=await p.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),layer:"superAdmin"}});if(((e=u==null?void 0:u.data)==null?void 0:e.code)===200){const f=(i=(r=(t=(n=u==null?void 0:u.data)==null?void 0:n.result)==null?void 0:t[0])==null?void 0:r.key)==null?void 0:i.systemType;let h="browser";f==="制造系统"&&(h="client"),f==="三维系统"&&(h="three"),On.setPlatform(h),On.setPlatName(((c=(s=(a=(o=u==null?void 0:u.data)==null?void 0:o.result)==null?void 0:a[0])==null?void 0:s.key)==null?void 0:c.name)??"")}}catch(u){return Promise.reject(u)}},at=l.ref(0),Pn=kt(p.pinia),wu=Ct(p.pinia),{originalPath:Qe}=p.storeToRefs(wu),Du=p.useLoginState(p.pinia),Au=qn(p.pinia),{multipleTableConst:ge}=p.storeToRefs(Au),{loginUserInfo:Se}=p.storeToRefs(Du),{activeMenuPath:nc}=p.storeToRefs(Pn),Vn=pt(p.pinia),{pageMapState:Fn}=p.storeToRefs(Vn),De=Qe.value,Qt=e=>e==null?void 0:e.map(t=>{var r;return at.value++,Array.isArray(t)?Qt(t):{label:(t==null?void 0:t.label)??"",prop:(t==null?void 0:t.label)==="操作"?"operate":(t==null?void 0:t.prop)??"a"+at.value,width:(t==null?void 0:t.label)==="操作"?"200":t!=null&&t.width?parseInt(t.width):"",fixed:(t==null?void 0:t.fixed)??void 0,sortable:(t==null?void 0:t.sortable)??!1,align:(t==null?void 0:t.align)??"left",showOverflowTooltip:(t==null?void 0:t.showOverflowTooltip)??!0,isNotDrag:(t==null?void 0:t.isNotDrag)??!1,isEditCol:(t==null?void 0:t.isEditCol)??!1,isOperate:(t==null?void 0:t.isOperate)??!1,id:(t==null?void 0:t.id)??at.value,type:(t==null?void 0:t.label)==="操作"?"operate":void 0,formType:(t==null?void 0:t.formType)??(t!=null&&t.groupSelect?"Select":""),isHidden:t==null?void 0:t.isHidden,options:(t==null?void 0:t.options)??[],children:Qt(t.children)??void 0,formMenuSelect:(t==null?void 0:t.formMenuSelect)??[],groupSelect:t!=null&&t.groupSelect?(r=t==null?void 0:t.groupSelect)==null?void 0:r.replaceAll('"',"").split(":"):[]}}),ku=e=>{const n=[];function t(r){if(Array.isArray(r))for(const i of r)!i.children||i.children.length===0?n.push(i):t(i.children)}return t(e),n},Cu=e=>p.cloneDeep(e).map(t=>(Array.isArray(t)&&(t=t.map(r=>{var i;return Array.isArray(r)?r=Qt(r):(r={label:(r==null?void 0:r.label)??"",prop:(r==null?void 0:r.label)==="操作"?"operate":(r==null?void 0:r.prop)??"a"+at.value,width:(r==null?void 0:r.label)==="操作"?"200":r!=null&&r.width?parseInt(r.width):"",fixed:(r==null?void 0:r.fixed)??void 0,sortable:(r==null?void 0:r.sortable)??!1,align:(r==null?void 0:r.align)??"left",showOverflowTooltip:(r==null?void 0:r.showOverflowTooltip)??!0,isNotDrag:(r==null?void 0:r.isNotDrag)??!1,isEditCol:(r==null?void 0:r.isEditCol)??!1,isOperate:(r==null?void 0:r.isOperate)??!1,id:(r==null?void 0:r.id)??at.value,type:(r==null?void 0:r.label)==="操作"?"operate":void 0,formType:(r==null?void 0:r.formType)??(r!=null&&r.groupSelect?"Select":""),isHidden:r==null?void 0:r.isHidden,options:(r==null?void 0:r.options)??[],children:Qt(r.children),formMenuSelect:(r==null?void 0:r.formMenuSelect)??[],groupSelect:r!=null&&r.groupSelect?(i=r==null?void 0:r.groupSelect)==null?void 0:i.replaceAll('"',"").split(":"):[]},at.value++),r})),t)),en=e=>{function n(t,r=[],i=""){if(!t||t.length===0)return[];let o=r;return Array.isArray(t)&&(t==null||t.forEach(a=>{var s,c,u,f,h,d,v,g,m,y,b,S,x;if(a!=null&&a.children&&((s=a.children)==null?void 0:s.length)>0){let E=i===""?i+((h=(c=a==null?void 0:a.prop)==null?void 0:c.split(ge.value))==null?void 0:h[((f=(u=a==null?void 0:a.prop)==null?void 0:u.split(ge.value))==null?void 0:f.length)-1]):i+ge.value+((m=(d=a==null?void 0:a.prop)==null?void 0:d.split(ge.value))==null?void 0:m[((g=(v=a==null?void 0:a.prop)==null?void 0:v.split(ge.value))==null?void 0:g.length)-1]);o=n(a==null?void 0:a.children,o,E)}else i!==""&&(a.prop=i+ge.value+((x=(y=a==null?void 0:a.prop)==null?void 0:y.split(ge.value))==null?void 0:x[((S=(b=a==null?void 0:a.prop)==null?void 0:b.split(ge.value))==null?void 0:S.length)-1])),o.push(a)})),o}return n(e)},Iu=e=>{function n(t,r=[],i=""){if(!t||t.length===0)return[];let o=r;return Array.isArray(t)&&(o=t==null?void 0:t.map(a=>{var s,c,u,f,h,d,v,g,m,y,b,S,x;if(a!=null&&a.children&&((s=a.children)==null?void 0:s.length)>0){let E=i===""?i+((h=(c=a==null?void 0:a.prop)==null?void 0:c.split(ge.value))==null?void 0:h[((f=(u=a==null?void 0:a.prop)==null?void 0:u.split(ge.value))==null?void 0:f.length)-1]):i+ge.value+((m=(d=a==null?void 0:a.prop)==null?void 0:d.split(ge.value))==null?void 0:m[((g=(v=a==null?void 0:a.prop)==null?void 0:v.split(ge.value))==null?void 0:g.length)-1]);a.children=n(a==null?void 0:a.children,o,E)}else i!==""&&(a.prop=i+ge.value+((x=(y=a==null?void 0:a.prop)==null?void 0:y.split(ge.value))==null?void 0:x[((S=(b=a==null?void 0:a.prop)==null?void 0:b.split(ge.value))==null?void 0:S.length)-1]));return a})),o}return n(e)},xu=e=>{let n=p.cloneDeep(e);return n=n==null?void 0:n.map(t=>((t==null?void 0:t.type)==="Select"?t={label:t==null?void 0:t.label,prop:t==null?void 0:t.prop,name:t==null?void 0:t.name,type:t==null?void 0:t.type,value:(t==null?void 0:t.value)??"",optionUrl:{groupSelect:t==null?void 0:t.groupSelect,menuSelect:t==null?void 0:t.menuSelect,type:"Select",selectRelateType:t==null?void 0:t.selectRelateType,multiple:t==null?void 0:t.multiple}}:(t==null?void 0:t.type)==="Date"&&(t.value=!(t!=null&&t.value)&&(t==null?void 0:t.isNewDate)!==!1?new Date:t==null?void 0:t.value),t.label=t.prop||t.label,t)),n},Bu=e=>{var n,t,r,i,o,a;if(((n=e==null?void 0:e.pageData)==null?void 0:n.comp)==="Form"){let s=(r=(t=e==null?void 0:e.pageData)==null?void 0:t.compData)==null?void 0:r.map(u=>{var f;return(u==null?void 0:u.key)==="formContent"&&(u.contents=(f=u.contents)==null?void 0:f.map(h=>((h==null?void 0:h.type)==="Date"&&(h.value=""),h))),u});return{pageData:{comp:(i=e==null?void 0:e.pageData)==null?void 0:i.comp,compData:s,name:(o=e==null?void 0:e.pageData)==null?void 0:o.name,isShow:(a=e==null?void 0:e.pageData)==null?void 0:a.isShow}}}else return e},Ru=(e,n)=>{var r,i,o,a,s,c,u,f,h;let t=(o=(i=(r=n==null?void 0:n.pageData)==null?void 0:r.compData)==null?void 0:i.find(d=>(d==null?void 0:d.key)==="formContent"))==null?void 0:o.contents;if(((a=e==null?void 0:e.pageData)==null?void 0:a.comp)==="Form"){let d=(c=(s=e==null?void 0:e.pageData)==null?void 0:s.compData)==null?void 0:c.map(g=>{var m;return(g==null?void 0:g.key)==="formContent"&&(g.contents=(m=g.contents)==null?void 0:m.map(y=>{var b;return y.value=(b=t==null?void 0:t.find(S=>(S==null?void 0:S.key)===(y==null?void 0:y.key)))==null?void 0:b.value,y})),g});return{pageData:{comp:(u=e==null?void 0:e.pageData)==null?void 0:u.comp,compData:d,name:(f=e==null?void 0:e.pageData)==null?void 0:f.name,isShow:(h=e==null?void 0:e.pageData)==null?void 0:h.isShow}}}else return e},St=async(e,n,t,r,i)=>{var m,y,b,S,x,E,k,w,A,T,N,D,C,M,O,Y,X,F,V,$,Z,te,_;let o=e;(o==null?void 0:o[(o==null?void 0:o.length)-1])!==De&&(o="",(y=(m=p.cloneDeep(e))==null?void 0:m.split(De))==null||y.forEach((B,P)=>{var L,z;P!==((z=(L=p.cloneDeep(e))==null?void 0:L.split(De))==null?void 0:z.length)-1&&(o=o===""?o+B:o+"/"+B)}),o=o+De);let a=[],s=await p.getInsofDataApi({key:{pageKey:e,systemKey:sessionStorage.getItem("systemKey")}});const c={data:{result:(S=(b=s==null?void 0:s.data)==null?void 0:b.result)==null?void 0:S.filter(B=>{var P;return((P=B==null?void 0:B.key)==null?void 0:P.type)==="structure"})}};let u;(e==null?void 0:e[(e==null?void 0:e.length)-1])!==De&&(u={data:{result:(x=Fn.value[o])==null?void 0:x.filter(B=>{var P;return((P=B==null?void 0:B.key)==null?void 0:P.type)==="structure"})}},((k=(E=u==null?void 0:u.data)==null?void 0:E.result)==null?void 0:k.length)>0&&(u=(A=(w=p.cloneDeep(u))==null?void 0:w.data)==null?void 0:A.result));const f={data:{result:(T=Fn.value[o])==null?void 0:T.filter(B=>{var P;return((P=B==null?void 0:B.key)==null?void 0:P.type)==="structureMethod"})}},h={data:{result:(D=(N=s==null?void 0:s.data)==null?void 0:N.result)==null?void 0:D.filter(B=>{var P;return((P=B==null?void 0:B.key)==null?void 0:P.type)==="data"})}};if((e==null?void 0:e[(e==null?void 0:e.length)-1])!==De){let B=(C=c==null?void 0:c.data)==null?void 0:C.result;if(!Array.isArray(u))return;u==null||u.forEach(P=>{var z,Q,K,U,ae;let L=(z=B==null?void 0:B.find(j=>{var ce,q,Ee,fe;return((q=(ce=P==null?void 0:P.value)==null?void 0:ce.pageData)==null?void 0:q.name)===((fe=(Ee=j==null?void 0:j.value)==null?void 0:Ee.pageData)==null?void 0:fe.name)}))==null?void 0:z.value;L?L=L:L=void 0,a.push({key:{pageKey:n,parentTable:((Q=L==null?void 0:L.key)==null?void 0:Q.parentTable)??"",systemKey:(K=P==null?void 0:P.key)==null?void 0:K.systemKey,type:((U=L==null?void 0:L.key)==null?void 0:U.type)??((ae=P==null?void 0:P.key)==null?void 0:ae.type),version:1},value:Ru(P==null?void 0:P.value,L)})})}else(O=(M=c==null?void 0:c.data)==null?void 0:M.result)==null||O.forEach(B=>{var P,L,z;a.push({key:{pageKey:n,parentTable:(P=B==null?void 0:B.key)==null?void 0:P.parentTable,systemKey:(L=B==null?void 0:B.key)==null?void 0:L.systemKey,type:(z=B==null?void 0:B.key)==null?void 0:z.type,version:1},value:Bu(B==null?void 0:B.value)})});if((X=(Y=f==null?void 0:f.data)==null?void 0:Y.result)==null||X.forEach(B=>{var P,L;a.push({key:{pageKey:n,systemKey:(P=B==null?void 0:B.key)==null?void 0:P.systemKey,type:(L=B==null?void 0:B.key)==null?void 0:L.type,version:1},value:B==null?void 0:B.value})}),a=a==null?void 0:a.map(B=>{var P,L,z;return((L=(P=B==null?void 0:B.value)==null?void 0:P.pageData)==null?void 0:L.comp)==="Form"&&(B.value.pageData.compData=(z=B.value.pageData.compData)==null?void 0:z.map(Q=>{var K;return(Q==null?void 0:Q.key)==="formContent"&&(Q.contents=(K=Q.contents)==null?void 0:K.map(U=>(t!=null&&t[U==null?void 0:U.key]&&(U==null?void 0:U.type)!=="Date"&&(U.value=t[U.key]),U))),Q}),r&&B.value.pageData.compData.push({key:"parentFormPath",contents:r})),B}),(a==null?void 0:a.length)>0){let B;if(!i)B=a;else{const P=a==null?void 0:a.find(z=>{var Q,K;return i==null?void 0:i.includes((K=(Q=z==null?void 0:z.value)==null?void 0:Q.pageData)==null?void 0:K.name)}),L=/^[A-Za-z]+$/;B=P?a==null?void 0:a.map(z=>{var Q,K,U,ae,j,ce;return i!=null&&i.includes((K=(Q=z==null?void 0:z.value)==null?void 0:Q.pageData)==null?void 0:K.name)?{...z,value:{pageData:{...(U=z==null?void 0:z.value)==null?void 0:U.pageData,compData:(ce=(j=(ae=z==null?void 0:z.value)==null?void 0:ae.pageData)==null?void 0:j.compData)==null?void 0:ce.map(q=>{var Ee;return(q==null?void 0:q.key)==="formContent"?{...q,contents:(Ee=q==null?void 0:q.contents)==null?void 0:Ee.map(fe=>L.test(fe==null?void 0:fe.prop)?fe:{...fe,value:""})}:q})}}}:z}):a}await p.batchAddInsofDataApi({dataList:B})}let d={};const v=await p.getInsofDataApi({key:{pageKey:n,type:"structure",systemKey:sessionStorage.getItem("systemKey")}});((V=(F=c==null?void 0:c.data)==null?void 0:F.result)==null?void 0:V.length)>0&&((Z=($=c==null?void 0:c.data)==null?void 0:$.result)==null||Z.forEach(B=>{var P,L,z;d[B.id]=(z=(L=(P=v==null?void 0:v.data)==null?void 0:P.result)==null?void 0:L.find(Q=>{var K,U,ae,j;return((U=(K=Q==null?void 0:Q.value)==null?void 0:K.pageData)==null?void 0:U.name)===((j=(ae=B==null?void 0:B.value)==null?void 0:ae.pageData)==null?void 0:j.name)}))==null?void 0:z.id}));let g=[];(_=(te=h==null?void 0:h.data)==null?void 0:te.result)==null||_.forEach(B=>{var P,L,z;g.push({key:{pageKey:n,tableId:d[(P=B==null?void 0:B.key)==null?void 0:P.tableId],systemKey:(L=B==null?void 0:B.key)==null?void 0:L.systemKey,type:(z=B==null?void 0:B.key)==null?void 0:z.type},value:B==null?void 0:B.value})}),(g==null?void 0:g.length)>0&&await p.batchAddInsofDataApi({dataList:g})},ho=(e,n)=>{let t=p.cloneDeep(e);return t=t==null?void 0:t.map(i=>{var c,u,f;let o=[],a=[];for(let h in n)if(h!=null&&h.includes((u=(c=p.cloneDeep(i))==null?void 0:c.key)==null?void 0:u.pageKey)){let d=(f=n[h])==null?void 0:f.filter(v=>{var g,m,y;return((g=v==null?void 0:v.key)==null?void 0:g.type)==="data"&&((m=v==null?void 0:v.key)==null?void 0:m.tableId)===((y=p.cloneDeep(i))==null?void 0:y.id)});a=[...a,...d]}(a==null?void 0:a.length)>0&&(a==null||a.forEach(h=>{o.push(h.value.tableData)}));let s=p.cloneDeep(i).value.pageData.compData;return s.push({key:"tableContents",contents:o}),i.value.pageData.compData=s,i}),t},po=(e,n)=>{if(!(e!=null&&e.includes("[")))return e;let t=e==null?void 0:e.replaceAll("[","").replaceAll("]","").split(":"),r=n==null?void 0:n.map(o=>{var a;return(a=o==null?void 0:o.value)==null?void 0:a.pageData}),i="";return r==null||r.forEach(o=>{var a;(o==null?void 0:o.name)===(t==null?void 0:t[0])&&((a=o==null?void 0:o.compData)==null||a.forEach(s=>{var c;(s==null?void 0:s.key)==="header"&&((c=s==null?void 0:s.contents)==null||c.forEach((u,f)=>{(u==null?void 0:u.prop)===(t==null?void 0:t[1])&&(i=f)}))}))}),i},go=(e,n)=>{if(!(e!=null&&e.includes("[")))return e;let t=e==null?void 0:e.replaceAll("[","").replaceAll("]","").split(":"),r=n==null?void 0:n.map(o=>{var a;return(a=o==null?void 0:o.value)==null?void 0:a.pageData}),i="";return r==null||r.forEach(o=>{var a;(o==null?void 0:o.name)===(t==null?void 0:t[0])&&((a=o==null?void 0:o.compData)==null||a.forEach(s=>{var c;(s==null?void 0:s.key)==="formContent"&&((c=s==null?void 0:s.contents)==null||c.forEach(u=>{(u==null?void 0:u.prop)===(t==null?void 0:t[1])&&(i=u==null?void 0:u.value)}))}))}),i},ei=(e,n,t,r)=>{var c,u,f;let i=(c=e==null?void 0:e[0])==null?void 0:c.formMenuSelect,o=e==null?void 0:e.map(h=>{var d,v;return(v=(d=h.groupSelect)==null?void 0:d.split(":"))==null?void 0:v[1]}),a="";i==null||i.forEach((h,d)=>{(i==null?void 0:i.length)-1!==d?a=a===""?a+h:a+"/"+h:a=a+De+h});let s=[];for(let h in n)if(h!=null&&h.includes(a)){let d=(u=n[h])==null?void 0:u.filter(v=>{var g,m;return((g=v==null?void 0:v.key)==null?void 0:g.type)==="structure"&&((m=v==null?void 0:v.key)==null?void 0:m.parentTable)===""});s=[...s,...d]}if((s==null?void 0:s.length)>0){let h=s==null?void 0:s.filter(y=>{var b,S,x;return((b=y==null?void 0:y.key)==null?void 0:b.pageKey)!==a&&((x=(S=y==null?void 0:y.value)==null?void 0:S.pageData)==null?void 0:x.comp)==="Form"}),d=s==null?void 0:s.filter(y=>{var b,S,x;return((b=y==null?void 0:y.key)==null?void 0:b.pageKey)!==a&&((x=(S=y==null?void 0:y.value)==null?void 0:S.pageData)==null?void 0:x.comp)==="Table"});d=ho(p.cloneDeep(d),n),h=[...p.cloneDeep(h),...d],h=h==null?void 0:h.map(y=>({[y.key.pageKey]:y}));let v=0;h=h.reduce((y,b)=>(Object.keys(b).forEach(S=>{y[S]||(y[S]=[],y[S].push({index:v})),y[S].push(b[S])}),v++,y),{});let g=(f=Object.values(h))==null?void 0:f.sort((y,b)=>{var E,k;let S=(E=y==null?void 0:y.find(w=>w==null?void 0:w.index))==null?void 0:E.index,x=(k=b==null?void 0:b.find(w=>w==null?void 0:w.index))==null?void 0:k.index;return S-x});h=g==null?void 0:g.map(y=>y==null?void 0:y.filter(b=>{var S,x,E,k;return!(b!=null&&b.index)&&(b==null?void 0:b.index)!==0&&!((x=(S=b==null?void 0:b.key)==null?void 0:S.pageKey)!=null&&x.includes("updateLoading"))&&!((k=(E=b==null?void 0:b.key)==null?void 0:E.pageKey)!=null&&k.includes("loading"))}));let m=[];if(h==null||h.forEach(y=>{var x,E,k,w,A,T,N,D,C,M;const b=y==null?void 0:y.find(O=>{var Y,X,F,V,$;return((X=(Y=O==null?void 0:O.value)==null?void 0:Y.pageData)==null?void 0:X.name)===(($=(V=(F=e==null?void 0:e[0])==null?void 0:F.groupSelect)==null?void 0:V.split(":"))==null?void 0:$[0])});let S=(A=(w=(k=(E=(x=p.cloneDeep(b))==null?void 0:x.value)==null?void 0:E.pageData)==null?void 0:k.compData)==null?void 0:w.find(O=>(O==null?void 0:O.key)==="formContent"))==null?void 0:A.contents;if(S){let O=[];o==null||o.forEach((Y,X)=>{var $,Z,te,_,B,P;let F=y==null?void 0:y.find(L=>{var z,Q,K,U,ae;return((Q=(z=L==null?void 0:L.value)==null?void 0:z.pageData)==null?void 0:Q.name)===((ae=(U=(K=e==null?void 0:e[X])==null?void 0:K.groupSelect)==null?void 0:U.split(":"))==null?void 0:ae[0])}),V=(B=(_=(te=(Z=($=p.cloneDeep(F))==null?void 0:$.value)==null?void 0:Z.pageData)==null?void 0:te.compData)==null?void 0:_.find(L=>(L==null?void 0:L.key)==="formContent"))==null?void 0:B.contents;V!=null&&V.find(L=>(L==null?void 0:L.key)===Y)?O.push((P=V==null?void 0:V.find(L=>(L==null?void 0:L.key)===Y))==null?void 0:P.value):O.push("")}),m.push(O)}else S=(M=(C=(D=(N=(T=p.cloneDeep(b))==null?void 0:T.value)==null?void 0:N.pageData)==null?void 0:D.compData)==null?void 0:C.find(O=>(O==null?void 0:O.key)==="tableContents"))==null?void 0:M.contents,S==null||S.forEach(O=>{let Y=[];o==null||o.forEach(X=>{O!=null&&O[X]&&Y.push(O==null?void 0:O[X])}),m.push(Y)})}),(t==null?void 0:t.length)>0){let y={};t==null||t.forEach(b=>{var S;for(let x in b){let E=p.cloneDeep(x);if(!(E!=null&&E.includes("[")))(S=b[x])!=null&&S.includes("[")||(y[E]=b[x]);else{let k=go(E,n[r]),w=po(b[x],n[r]);y[k]=w}}});for(let b in y)m=m==null?void 0:m.filter(S=>S[y[b]]===b)}return m}},Mu=(e,n,t,r)=>{var s,c,u,f,h;let i=p.cloneDeep(e),o=n==null?void 0:n.map(d=>d==null?void 0:d.prop),a=[];for(let d in t)if(d!=null&&d.includes(i)){let v=(s=t[d])==null?void 0:s.filter(g=>{var m,y;return((m=g==null?void 0:g.key)==null?void 0:m.type)==="structure"&&((y=g==null?void 0:g.key)==null?void 0:y.parentTable)===""});a=[...a,...v]}if((a==null?void 0:a.length)>0){let d=a==null?void 0:a.filter(E=>{var k,w,A,T;return((k=E==null?void 0:E.key)==null?void 0:k.pageKey)!==i&&((A=(w=E==null?void 0:E.value)==null?void 0:w.pageData)==null?void 0:A.comp)==="Form"&&(E==null?void 0:E.key.pageKey.includes(i+De))&&!((T=E==null?void 0:E.key.pageKey)!=null&&T.includes("@"))}),v=a==null?void 0:a.filter(E=>{var k,w,A,T;return((k=E==null?void 0:E.key)==null?void 0:k.pageKey)!==i&&((A=(w=E==null?void 0:E.value)==null?void 0:w.pageData)==null?void 0:A.comp)==="Table"&&(E==null?void 0:E.key.pageKey.includes(i+De))&&!((T=E==null?void 0:E.key.pageKey)!=null&&T.includes("@"))});v=ho(p.cloneDeep(v),t),d=[...p.cloneDeep(d),...v],d=d==null?void 0:d.map(E=>({[E.key.pageKey]:E}));let g=0;d=d.reduce((E,k)=>(Object.keys(k).forEach(w=>{E[w]||(E[w]=[],E[w].push({index:g})),E[w].push(k[w])}),g++,E),{}),d=co(d,!0,t);let m=(c=Object.values(d))==null?void 0:c.sort((E,k)=>{var T,N;let w=(T=E==null?void 0:E.find(D=>D==null?void 0:D.index))==null?void 0:T.index,A=(N=k==null?void 0:k.find(D=>D==null?void 0:D.index))==null?void 0:N.index;return w-A});d=m==null?void 0:m.map(E=>E==null?void 0:E.filter(k=>!(k!=null&&k.index)&&(k==null?void 0:k.index)!==0));let y=(u=p.cloneDeep(d))==null?void 0:u.filter(E=>E==null?void 0:E.find(k=>{var w,A,T,N;return((N=(w=k==null?void 0:k.key)==null?void 0:w.pageKey)==null?void 0:N[((T=(A=k==null?void 0:k.key)==null?void 0:A.pageKey)==null?void 0:T.length)-1])===De}));d=d==null?void 0:d.filter(E=>!(E!=null&&E.find(k=>{var w,A,T,N,D,C,M,O;return((N=(w=k==null?void 0:k.key)==null?void 0:w.pageKey)==null?void 0:N[((T=(A=k==null?void 0:k.key)==null?void 0:A.pageKey)==null?void 0:T.length)-1])===De||((C=(D=k==null?void 0:k.key)==null?void 0:D.pageKey)==null?void 0:C.includes("updateLoading"))||((O=(M=k==null?void 0:k.key)==null?void 0:M.pageKey)==null?void 0:O.includes("loading"))})));let b=[],S=[];(f=y==null?void 0:y[0])==null||f.forEach(E=>{var k,w,A,T,N;((w=(k=E==null?void 0:E.value)==null?void 0:k.pageData)==null?void 0:w.comp)==="Form"&&((N=(T=(A=E==null?void 0:E.value)==null?void 0:A.pageData)==null?void 0:T.compData)==null||N.forEach(D=>{(D==null?void 0:D.key)==="formContent"&&(S=[...S,...D==null?void 0:D.contents])}))});let x=(h=S==null?void 0:S.find(E=>(E==null?void 0:E.isMain)===!0))==null?void 0:h.key;if(d==null||d.forEach(E=>{let k=[];E==null||E.forEach(A=>{var T,N,D,C,M;((N=(T=A==null?void 0:A.value)==null?void 0:T.pageData)==null?void 0:N.comp)==="Form"&&((M=(C=(D=A==null?void 0:A.value)==null?void 0:D.pageData)==null?void 0:C.compData)==null||M.forEach(O=>{(O==null?void 0:O.key)==="formContent"&&(k=[...k,...O==null?void 0:O.contents])}))});let w={};o==null||o.forEach(A=>{let T=k==null?void 0:k.find(N=>(N==null?void 0:N.key)===A);T!=null&&T.prop&&(w[T.prop]=(T==null?void 0:T.value)??"")}),b.push(w)}),(r==null?void 0:r.length)>0){let E=[];r==null||r.forEach(k=>{var N,D,C,M,O,Y,X,F;let w={};for(let V in k){let $=p.cloneDeep(V);if(!($!=null&&$.includes("[")))k[V].toUpperCase()==="@LOGINUSER"?w[$]=((N=Se.value)==null?void 0:N.姓名)||((D=Se.value)==null?void 0:D.account)||((C=Se.value)==null?void 0:C.账号)||((M=Se.value)==null?void 0:M.姓名):(O=k[V])!=null&&O.includes("[")||(w[$]=k[V]);else{let Z=go($,t[e]),te=po(k[V],t[e]);w[Z]=te}}let A=[],T=0;for(let V in w)((Y=w[V])==null?void 0:Y[0])!=="!"?A=(X=T>0?A:b)==null?void 0:X.filter(Z=>Z[V]===w[V]):A=(F=T>0?A:b)==null?void 0:F.filter($=>{var Z;return $[V]!==((Z=w[V])==null?void 0:Z.replaceAll("!",""))}),T=1;E=[...E,...A]}),b=[...new Set(E)]}return b=b==null?void 0:b.map(E=>Object.values(E)),{mainKey:x,tableContents:b}}},Nu=(e,n)=>{var i,o,a,s,c,u;let t=(o=(i=p.cloneDeep(e))==null?void 0:i.split("/"))==null?void 0:o[0],r=[];for(let f in n)if(f!=null&&f.includes(t)){let h=(a=n[f])==null?void 0:a.filter(d=>{var v,g;return((v=d==null?void 0:d.key)==null?void 0:v.type)==="structure"&&((g=d==null?void 0:d.key)==null?void 0:g.parentTable)===""});r=[...r,...h]}return(r==null?void 0:r.length)>0?!!((u=(c=(s=r==null?void 0:r.filter(h=>{var d;return((d=h==null?void 0:h.key)==null?void 0:d.pageKey)===t}))==null?void 0:s[0])==null?void 0:c.key)==null?void 0:u.parentPageKey):!0},Ou=async(e,n,t,r)=>{var a,s,c,u,f,h,d,v,g;let i=(s=(a=p.cloneDeep(e))==null?void 0:a.split("/"))==null?void 0:s[0],o=[];for(let m in r)if(m!=null&&m.includes(i)){let y=(c=r[m])==null?void 0:c.filter(b=>{var S,x;return((S=b==null?void 0:b.key)==null?void 0:S.type)==="structure"&&((x=b==null?void 0:b.key)==null?void 0:x.parentTable)===""});o=[...o,...y]}if((o==null?void 0:o.length)>0){let m=(h=(f=(u=o==null?void 0:o.filter(S=>{var x;return((x=S==null?void 0:S.key)==null?void 0:x.pageKey)===i}))==null?void 0:u[0])==null?void 0:f.key)==null?void 0:h.parentPageKey,y=[];if(m){for(let S in r)if(S!=null&&S.includes(m)){let x=(d=r[S])==null?void 0:d.filter(E=>{var k,w;return((k=E==null?void 0:E.key)==null?void 0:k.type)==="structure"&&((w=E==null?void 0:E.key)==null?void 0:w.parentTable)===""});y=[...y,...x]}}else y=o;let b="";if((y==null?void 0:y.length)>0){let S=[],x;x=(v=y==null?void 0:y.filter(D=>{var C,M,O,Y,X,F;return((O=(M=(C=D==null?void 0:D.key)==null?void 0:C.pageKey)==null?void 0:M.split("/"))==null?void 0:O[0])===m&&((F=(X=(Y=D==null?void 0:D.key)==null?void 0:Y.pageKey)==null?void 0:X.split("/"))==null?void 0:F.length)===2}))==null?void 0:v.map(D=>{var C;return(C=D==null?void 0:D.key)==null?void 0:C.pageKey}),x=[...new Set(x)],x=x==null?void 0:x.filter(D=>!D.includes(De));let E=(g=p.cloneDeep(x))==null?void 0:g.map(async D=>{var X,F,V,$,Z,te,_,B,P,L,z,Q,K,U,ae;let C=await He(D,sessionStorage.getItem("systemKey"),"",!1,[],!1,r),M=($=(V=(F=(X=p.cloneDeep(C))==null?void 0:X[0])==null?void 0:F.compData)==null?void 0:V.find(j=>(j==null?void 0:j.key)==="tableContents"))==null?void 0:$.contents,O=(L=(P=(B=(_=(te=(Z=p.cloneDeep(C))==null?void 0:Z[0])==null?void 0:te.compData)==null?void 0:_.find(j=>(j==null?void 0:j.key)==="header"))==null?void 0:B.contents)==null?void 0:P.filter(j=>(j==null?void 0:j.label)!=="操作"))==null?void 0:L.map(j=>j==null?void 0:j.prop),Y=[];return(ae=(U=(K=(Q=(z=p.cloneDeep(C))==null?void 0:z[0])==null?void 0:Q.compData)==null?void 0:K.find(j=>(j==null?void 0:j.key)==="header"))==null?void 0:U.contents)==null||ae.forEach(j=>{(j==null?void 0:j.isMainKey)===!0&&(b=j==null?void 0:j.prop)}),M==null||M.forEach(j=>{let ce=st(j,O);Y.push(ce),S.push({key:ce==null?void 0:ce[b],routerContent:D})}),Y}),k=await Promise.all(E),w=[];k==null||k.forEach(D=>{(D==null?void 0:D.length)>0&&(D==null||D.forEach(C=>{w.push(C)}))});let A=[];A=n==null?void 0:n.map(D=>{var M,O,Y;let C={};for(let X in D)D[X].toUpperCase()==="@LOGINUSER"?C[X]=((M=Se.value)==null?void 0:M.姓名)||((O=Se.value)==null?void 0:O.account)||((Y=Se.value)==null?void 0:Y.账号):C[X]=D[X];return C});let T=[];w==null||w.forEach(D=>{let C=[];A==null||A.forEach(M=>{let O=[];for(let Y in M)O.push(D[Y]===M[Y]);C.push(O)}),C.find(M=>M==null?void 0:M.every(O=>O===!0))&&T.push(D)});let N=[];return T==null||T.forEach(D=>{let C={};t==null||t.forEach(M=>{C[M.prop]=D[M.prop]??""}),N.push(C)}),N=N==null?void 0:N.map(D=>Object.values(D)),{mainKey:b,tableContents:N,mainKeys:S}}else return}else return},Pu=async(e,n,t,r)=>{var o,a,s,c;let i=(o=p.cloneDeep(e))==null?void 0:o.filter(u=>(u==null?void 0:u.label)!=="操作");if((t==null?void 0:t.length)>0&&(i!=null&&i.every(u=>!(u!=null&&u.formMenuSelect)))&&Nu(n,r)){let u=await Ou(n,t,i,r);return u&&((a=u==null?void 0:u.tableContents)==null?void 0:a.length)>0?u:[]}if(!(i!=null&&i.every(u=>{var f,h,d,v;return((f=u==null?void 0:u.formMenuSelect)==null?void 0:f.length)>0&&((d=(h=u==null?void 0:u.groupSelect)==null?void 0:h.split(":"))==null?void 0:d.length)>0||((v=u==null?void 0:u.formMenuGroup)==null?void 0:v.length)>0})))return Mu(n,i,r,t);if(i!=null&&i.every(u=>!(u!=null&&u.formMenuGroup)))return ei(i,r,t,n);{let u=[];(c=(s=i==null?void 0:i[0])==null?void 0:s.formMenuGroup)==null||c.forEach((v,g)=>{let m=[];i==null||i.forEach(y=>{var b,S,x,E,k,w;m.push({columnPath:y==null?void 0:y.columnPath,formMenuSelect:(x=((b=y==null?void 0:y.formMenuGroup)==null?void 0:b[g])??((S=y==null?void 0:y.formMenuGroup)==null?void 0:S[0]))==null?void 0:x.formMenuSelect,groupSelect:(w=((E=y==null?void 0:y.formMenuGroup)==null?void 0:E[g])??((k=y==null?void 0:y.formMenuGroup)==null?void 0:k[0]))==null?void 0:w.groupSelect,isRoute:y==null?void 0:y.isRoute,label:y==null?void 0:y.label,prop:y==null?void 0:y.label})}),u.push(m)});let f=[],d=u==null?void 0:u.map(async v=>ei(v,r,t,n));return d==null||d.forEach(v=>{v==null||v.forEach(g=>{f.push(g)})}),f}},Vu=async(e,n)=>{var a,s,c,u,f,h,d,v,g,m;let t=e+De+n,r=e,i=(s=(a=Fn.value[t])==null?void 0:a.filter(y=>{var b,S;return((b=y==null?void 0:y.key)==null?void 0:b.type)==="structure"&&((S=y==null?void 0:y.key)==null?void 0:S.parentTable)===""}))==null?void 0:s.map(y=>{var b;return(b=y==null?void 0:y.value)==null?void 0:b.pageData}),o={};(i==null?void 0:i.length)>0?(await St(t,t+Qe+`updateLoading${((c=Se.value)==null?void 0:c.account)||((u=Se.value)==null?void 0:u.账号)}`),Vn.setRouteToChildPath(r),Pn.setActiveMenuPath(t+Qe+`updateLoading${((f=Se.value)==null?void 0:f.account)||((h=Se.value)==null?void 0:h.账号)}`)):(await St(r+Qe,t,o),await St(t,t+Qe+`updateLoading${((d=Se.value)==null?void 0:d.account)||((v=Se.value)==null?void 0:v.账号)}`),Vn.setRouteToChildPath(r),Pn.setActiveMenuPath(t+Qe+`updateLoading${((g=Se.value)==null?void 0:g.account)||((m=Se.value)==null?void 0:m.账号)}`))},Fu=Ct(p.pinia),{originalPath:yo}=p.storeToRefs(Fu),Lu=e=>e==null?void 0:e.map(t=>(t=bo(t),t)),ir=async()=>{var t,r,i,o,a,s,c,u,f,h,d,v;let e;const n=await p.getInsofDataApi({key:{type:"structure",pageKey:"menu",systemKey:sessionStorage.getItem("systemKey")}});return(s=(a=(o=(i=(r=(t=n.data.result)==null?void 0:t[0])==null?void 0:r.value)==null?void 0:i.pageData)==null?void 0:o.compData)==null?void 0:a[0])!=null&&s.contents&&(e=Lu((v=(d=(h=(f=(u=(c=n.data.result)==null?void 0:c[0])==null?void 0:u.value)==null?void 0:f.pageData)==null?void 0:h.compData)==null?void 0:d[0])==null?void 0:v.contents)),e},Ku=e=>{var r,i,o;const n=(i=(r=e==null?void 0:e.compData)==null?void 0:r.find(a=>(a==null?void 0:a.key)==="header"))==null?void 0:i.contents;return{label:e==null?void 0:e.name,value:e==null?void 0:e.name,children:n!=null&&n.every(a=>!Array.isArray(a))?n==null?void 0:n.map(a=>({label:a==null?void 0:a.label,value:a==null?void 0:a.label})):(o=en(n==null?void 0:n[0]))==null?void 0:o.map(a=>({label:a==null?void 0:a.label,value:a==null?void 0:a.label}))}},vo=async e=>{var i,o;let n="";(i=p.cloneDeep(e))==null||i.forEach(a=>{n=n===""?n+a:n+"/"+a});let t="";(o=p.cloneDeep(e))==null||o.forEach((a,s)=>{s!==(e==null?void 0:e.length)-1?t=t===""?t+a:t+"/"+a:t=t+yo.value+a});const r=await He(n,sessionStorage.getItem("systemKey"),"");return r||await He(t,sessionStorage.getItem("systemKey"),"")},_u=async e=>{var r,i,o;const n=await vo(e);let t=[];return((r=n==null?void 0:n.data)==null?void 0:r.type)==="success"&&(t=(o=(i=n.data.result)==null?void 0:i.map(a=>a.value.pageData))==null?void 0:o.filter(a=>(a==null?void 0:a.comp)==="Table"),t=t==null?void 0:t.map(a=>Ku(a))),t},Hu=[{key:"单选",value:"Select"},{key:"日期",value:"Date"},{key:"长文本",value:"TextArea"},{key:"上传",value:"Upload"},{key:"富文本",value:"Quill"}],Ge=[{label:"输入框",value:"Input"},{label:"下拉框",value:"Select"},{label:"日期选择器",value:"Date"},{label:"长文本",value:"TextArea"},{label:"附件选择器",value:"Upload"},{label:"富文本",value:"Quill"},{label:"链接跳转",value:"Link"}],$u=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Ge},{key:"originalContent",label:"初始值",type:"Input"},{key:"value",label:"固定值",type:"Input"},{key:"isFormColHidden",label:"是否隐藏",name:"是否隐藏",type:"radio",options:[{label:"否",value:!1},{label:"是",value:!0}],value:!1}],Uu=async()=>{const e=await ir();return[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Ge},{key:"multiple",label:"多选",default:!1,type:"Switch"},{key:"originalContent",label:"初始值",type:"Select"},{key:"selectRelateType",label:"下拉绑定类型",type:"Select",options:[{label:"关联绑定列",value:"关联绑定列"},{label:"自定义绑定",value:"自定义绑定"}]},{key:"menuSelect",label:"菜单选项",type:"cascader",options:e},{key:"groupSelect",label:"组信息选项",type:"cascader",options:[]},{key:"contents",label:"选项值",type:"Input"}]},zu=async()=>[{value:"",id:"v1",label:"菜单选项",name:"菜单选项",type:"cascader",contents:await ir()},{value:"",id:"v2",label:"组信息选项",name:"组信息选项",type:"cascader",contents:[]},{value:"",id:"v2",label:"选项值",name:"选项值",type:"Input",contents:[]}],ju=l.computed(async()=>await Uu()),qu=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Ge},{key:"originalContent",label:"初始值",type:"Date"},{key:"isNewDate",label:"当前时间",type:"Switch",value:!1}],Gu=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Ge},{key:"value",label:"固定值",type:"Input"}],Wu=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Ge},{key:"originalContent",label:"初始值",type:"Input"}],ti=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Ge}],Yu=[{key:"label",label:"标签名",type:"Input"},{key:"prop",label:"属性名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Ge}],Zu=[{key:"Input",value:$u},{key:"Select",value:ju},{key:"Date",value:qu},{key:"TextArea",value:Wu},{key:"Upload",value:ti},{key:"DragUpload",value:ti},{key:"Quill",value:Yu},{key:"Link",value:Gu}],Ju=[{value:"normal",label:"自定义"},{value:"add",label:"新增"},{value:"fix",label:"修改"},{value:"view",label:"查看"},{value:"delete",label:"删除"}],Xu=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:Ju},{key:"background",label:"颜色",type:"Color"}],Qu=e=>{var t,r,i,o,a,s,c,u;let n=p.cloneDeep(e);if(((t=n==null?void 0:n.find(f=>(f==null?void 0:f.name)==="类型"))==null?void 0:t.type)==="Select"&&((o=(i=(r=p.cloneDeep(n))==null?void 0:r.find(f=>(f==null?void 0:f.name)==="选项值"))==null?void 0:i.value)==null?void 0:o.length)>0){const f=(u=(c=(s=(a=p.cloneDeep(n))==null?void 0:a.find(h=>(h==null?void 0:h.name)==="选项值"))==null?void 0:s.value)==null?void 0:c.split(","))==null?void 0:u.map(h=>({label:h,value:h}));n=n==null?void 0:n.map(h=>((h==null?void 0:h.name)==="初始值"&&(h.contents=f,h.value=(h==null?void 0:h.value)??""),h))}return n},bo=e=>{var i;let n={};const t=(i=e==null?void 0:e.filter(o=>!Array.isArray(o)))==null?void 0:i[0];n.label=t,n.value=t;const r=e==null?void 0:e.filter(o=>Array.isArray(o));return r&&(r==null?void 0:r.length)>0&&(n.children=r==null?void 0:r.map(o=>bo(o))),n},ec=async e=>{var o,a,s,c;let n=p.cloneDeep(e);const t=(o=e==null?void 0:e.find(u=>(u==null?void 0:u.name)==="下拉绑定类型"))==null?void 0:o.value,r=(a=e==null?void 0:e.find(u=>(u==null?void 0:u.name)==="类型"))==null?void 0:a.value,i=await zu();return r==="Select"&&t===""?n=n==null?void 0:n.filter(u=>(u==null?void 0:u.name)!=="菜单选项"&&(u==null?void 0:u.name)!=="组信息选项"&&(u==null?void 0:u.name)!=="选项值"):r==="Select"&&t==="关联绑定列"?n!=null&&n.find(u=>(u==null?void 0:u.name)==="菜单选项"||(u==null?void 0:u.name)==="组信息选项")?n=(s=p.cloneDeep(n))==null?void 0:s.filter(u=>(u==null?void 0:u.name)!=="选项值"):n=[...p.cloneDeep(n),...i].filter(u=>(u==null?void 0:u.name)!=="选项值"):r==="Select"&&t==="自定义绑定"&&(n!=null&&n.find(u=>(u==null?void 0:u.name)==="选项值")?n=(c=p.cloneDeep(n))==null?void 0:c.filter(u=>(u==null?void 0:u.name)!=="菜单选项"&&(u==null?void 0:u.name)!=="组信息选项"):n=[...p.cloneDeep(n),...i].filter(u=>(u==null?void 0:u.name)!=="菜单选项"&&(u==null?void 0:u.name)!=="组信息选项")),n},tc=(e,n)=>{var r;let t=!1;return(r=p.cloneDeep(e))==null||r.forEach(i=>{var o;(i==null?void 0:i.key)==="formContent"&&((o=i==null?void 0:i.contents)==null||o.forEach(a=>{(a==null?void 0:a.key)===n?t=!0:t=t}))}),t},mo=(e,n)=>{var a,s,c,u,f;const t=p.cloneDeep(e);if(!t)return;let r="";(s=(a=p.cloneDeep(t))==null?void 0:a.menuSelect)==null||s.forEach(h=>{h!=null&&h.includes("[")?r=r+yo.value:r=r===""?r+h:r+"/"+h});const i=(c=n==null?void 0:n[r])==null?void 0:c.map(h=>{var d;return(d=h==null?void 0:h.value)==null?void 0:d.pageData});let o=i==null?void 0:i.filter(h=>{var d,v;return(h==null?void 0:h.name)===((v=(d=p.cloneDeep(t))==null?void 0:d.groupSelect)==null?void 0:v[0])});if((o==null?void 0:o.length)===1?o=o==null?void 0:o[0]:(u=p.cloneDeep(o))==null||u.forEach(h=>{var d,v;(h==null?void 0:h.comp)==="Form"&&tc(h==null?void 0:h.compData,(v=(d=p.cloneDeep(t))==null?void 0:d.groupSelect)==null?void 0:v[1])&&(o=h)}),(o==null?void 0:o.comp)==="Form"){let h="";return(f=o==null?void 0:o.compData)==null||f.forEach(d=>{var v;(d==null?void 0:d.key)==="formContent"&&((v=d==null?void 0:d.contents)==null||v.forEach(g=>{var m,y;(g==null?void 0:g.key)===((y=(m=p.cloneDeep(t))==null?void 0:m.groupSelect)==null?void 0:y[1])&&(g.type==="Select"&&!(g!=null&&g.value)?h=void 0:h=g==null?void 0:g.value)}))}),h}};exports.CHANGE_EVENT=Tn;exports.ElButton=Fi;exports.ElButtonGroup=fs;exports.ElFocusTrap=Bi;exports.ElInput=Ci;exports.ElMessageBox=Ui;exports.ElOverlay=Ki;exports.FOCUS_TRAP_INJECTION_KEY=Ii;exports.FormButton=Xu;exports.FormContent=Zu;exports.FormType=Hu;exports.INPUT_EVENT=wn;exports.IsJson=Ns;exports.PatchFlags=bt;exports.SetCache=Et;exports.State=su;exports.State$1=Dl;exports.TinyColor=Pi;exports.UPDATE_MODEL_EVENT=jt;exports.addPathToTree=on;exports.addTableContents=mu;exports.animateScrollTo=ca;exports.baseFlatten=Ln;exports.baseIsEqual=Kn;exports.buttonTypes=Ni;exports.cAF=di;exports.cacheHas=si;exports.convertArrayToTree=Zn;exports.copyAdd=Vu;exports.decryptData=nr;exports.deleteTableContents=bu;exports.encryptData=vt;exports.ensureOnlyChild=ys;exports.fixFormContents=Eu;exports.fixTableContents=Su;exports.flatRest=ai;exports.flattedChildren=gt;exports.flatten=oi;exports.focusNode=Aa;exports.formContextKey=tn;exports.formItemContextKey=_n;exports.formToOptionsContents=Qu;exports.generateKeyPair=Wl;exports.getActivePageStructureId=to;exports.getAllLeafNodes=ku;exports.getColumnChild=en;exports.getColumnContents=je;exports.getFirstArrayProperty=Yn;exports.getFormContents=Fs;exports.getGradeColumns=Cu;exports.getItemData=He;exports.getLeafNodesRecursive=Xn;exports.getMenusContent=ir;exports.getNewColumnChild=Iu;exports.getNormalizedProps=gs;exports.getParentConstruct=Ws;exports.getParentContents=Ls;exports.getParentKey=Gs;exports.getScrollBarWidth=gi;exports.getScrollContainer=la;exports.getScrollElement=fa;exports.getScrollTop=ha;exports.getSibling=Da;exports.getTableFormToForm=xu;exports.getValueToObjectValue=st;exports.groupByField=Jn;exports.handleRowAuthorityRender=Qn;exports.handleSubmitAsync=ct;exports.hasIn=ci;exports.identity=ni;exports.inputProps=bi;exports.isEqual=fi;exports.isFirefox=yi;exports.isFocusable=nn;exports.isFragment=Li;exports.isLeaf=wi;exports.isValidComponentSize=$i;exports.isValidElementNode=ds;exports.judgeContents=mo;exports.loadingConstruct=St;exports.loadingSystemType=Tu;exports.menuToContentType=_u;exports.menuToParent=vo;exports.methodTableToContent=Vs;exports.overRest=ii;exports.pick=hi;exports.rAF=pi;exports.resetPassword=ut;exports.scrollIntoView=ua;exports.selectToBase=ec;exports.setToArray=ui;exports.setToString=ri;exports.submitTableAsyncByVerify=un;exports.tableEveryContents=qs;exports.tableToContents=_s;exports.tableToStruct=Ks;exports.triggerEvent=wa;exports.tryFocus=Ne;exports.useAriaProps=vi;exports.useAttrs=mi;exports.useAuthorityState=Gn;exports.useComposition=Ai;exports.useDeprecated=Mi;exports.useDraggable=_i;exports.useFocusController=Di;exports.useFormDisabled=At;exports.useFormItem=Hn;exports.useFormItemInputId=Ei;exports.useFormSize=$n;exports.useId=qt;exports.useIdInjection=Si;exports.useLockscreen=Hi;exports.useMenuState=kt;exports.useModelComp=pt;exports.useOriginalState=Ct;exports.useSameTarget=jn;exports.useTableComp=qn;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { S as cn, O as Gn, M as jn } from "./STLLoader-DmGTF0Nv.js";
|
|
2
2
|
import { y as oi, F as V1, C as fi, b as pt, p as Ei, ax as vt, aA as vf, a9 as W1, ah as G1, aB as gf, a0 as _f, z as j1, V as Lr, k as At, ac as _s, S as wf, Y as X1, l as Q0, ak as ws, aC as kf, h as St, at as Va, J as Tf, i as L0, au as $1, P as ks, ai as Ef, f as yf, N as Af, g as Sf, D as Ff, o as na, Q as yi, aq as Ts, as as bf, al as Cf, ab as li, ae as Nf, e as at, r as q1, af as Df, aj as If, a6 as Wa, a8 as Es, E as K1, U as Mf, aD as Of, aE as Y1, aF as Rf, aG as Lf, n as Bf, B as Pf, _ as ys, aH as Uf } from "./three-viewport-gizmo-BHznJ6W3.js";
|
|
3
|
-
import { d as zf } from "./threeViewerHost-
|
|
4
|
-
import { b as Xn, s as Hf, p as Vf } from "./index-
|
|
3
|
+
import { d as zf } from "./threeViewerHost-CTjd2V1D.js";
|
|
4
|
+
import { b as Xn, s as Hf, p as Vf } from "./index-DV_ZZQBO.js";
|
|
5
5
|
import { ref as Wf } from "vue";
|
|
6
|
-
import { a as Gf } from "./index.vue_vue_type_style_index_1_lang-
|
|
6
|
+
import { a as Gf } from "./index.vue_vue_type_style_index_1_lang-D5Hjs-g0.js";
|
|
7
7
|
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
8
8
|
var on = {};
|
|
9
9
|
on.version = "0.18.5";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("./index-
|
|
1
|
+
"use strict";const t=require("./index-BOJUyAaV.cjs");var r="[object String]";function n(i){return typeof i=="string"||!t.isArray(i)&&t.isObjectLike(i)&&t.baseGetTag(i)==r}exports.isString=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),O=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),O=require("./index-FK1YYpjN.cjs"),i=require("./index-BOJUyAaV.cjs"),T=require("./index.vue_vue_type_style_index_1_lang-N-_9ZJEf.cjs"),Z=require("./index-D8510-YQ.cjs"),G=require("./array-DMPAgNcb.cjs"),K=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"}],s=[{key:"FormDirect",value:"formFlex"},{key:"Form",value:"formContent"},{key:"FormButton",value:"formButton"},{key:"TableColumns",value:"header"},{key:"TableButton",value:"extraButton"},{key:"LineButton",value:"rowButton"},{key:"Table",value:"tableContents"},{key:"TableIndex",value:"tableIndex"}],v={key:0,class:"show-content"},ee={class:"item-view-group"},te={__name:"index",props:{content:String,jsonContents:Array},emits:["change"],setup(x,{emit:E}){const t=x,j=E,h=T.useModelComp(i.pinia),{itemData:_}=i.storeToRefs(h),p=e.ref([]),C=e.ref([]),I=c=>{j("change",{wholeValue:p.value,editValue:c})},S=c=>{const g=i.cloneDeep(p.value),B=g==null?void 0:g.map((d,b)=>(b===(c==null?void 0:c.index)&&(d.compData=c==null?void 0:c.contents),d));p.value=B};e.watch(()=>_.value,()=>{var c;!_.value||((c=_.value)==null?void 0:c.length)===0||(C.value=_.value,p.value=_.value)},{deep:!0,immediate:!0}),e.watch(()=>[t==null?void 0:t.content,t==null?void 0:t.jsonContents],()=>{var g;if(((g=t==null?void 0:t.jsonContents)==null?void 0:g.length)>0){h.setOriginalData(t==null?void 0:t.jsonContents),h.setItemData(t==null?void 0:t.jsonContents);return}if(!(t!=null&&t.content)||(t==null?void 0:t.content)==="")return;const c=G.expandStringToJson(t==null?void 0:t.content);h.setOriginalData(c),h.setItemData(c)},{deep:!0,immediate:!0});const w=c=>Z.getComponent(c);return(c,g)=>{var B;return((B=C.value)==null?void 0:B.length)>0?(e.openBlock(),e.createElementBlock("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(d,b)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:b},[e.createElementVNode("div",ee,e.toDisplayString(d.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w(d.comp)),{itemData:d==null?void 0:d.compData,childItemData:d==null?void 0:d.itemChildData,key:b,onChange:I,index:b,onContentChange:S},null,40,["itemData","childItemData","index"]))]))),128))])):e.createCommentVNode("",!0)}}},ne=K._export_sfc(te,[["__scopeId","data-v-1c04adc8"]]),oe={class:"add-model-content"},ae={key:0,class:"model-import-data"},re={class:"import-button"},le={key:0},ce={key:1,class:"model-operate"},se={class:"model-select"},ue={class:"model-fill"},ie={key:2,class:"model-view ssComponent"},de={__name:"main",props:{mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0}},emits:["change"],setup(x,{emit:E}){const t=x,j=E,h=e.ref(""),_=e.ref([]),p=e.ref(0),C=T.useModelComp(i.pinia);T.useMenuState(i.pinia);const{itemData:I,originalData:S}=i.storeToRefs(C),w=e.ref(null),c=e.ref(0),g=e.ref(""),B=()=>{p.value=window.innerWidth},d=async r=>{var u;const a=(u=i.cloneDeep(r==null?void 0:r.wholeValue))==null?void 0:u.map(o=>{var f;return(o==null?void 0:o.comp)==="Form"&&(o.compData=(f=o.compData)==null?void 0:f.map(k=>((k==null?void 0:k.key)==="formContent"&&(k.contents=G.arrayToNumberArray(k==null?void 0:k.contents)),k))),o});j("change",{originalContents:S.value,currentContents:r==null?void 0:r.wholeValue,editContent:r==null?void 0:r.editValue,stringContent:b(i.cloneDeep(r==null?void 0:r.wholeValue)),arrayToContents:a})},b=r=>{var u;let a=[];return(u=i.cloneDeep(r))==null||u.forEach(o=>{var f,k;V!=null&&V.find(n=>(n==null?void 0:n.value)===(o==null?void 0:o.comp))&&a.push(((f=V==null?void 0:V.find(n=>(n==null?void 0:n.value)===(o==null?void 0:o.comp)))==null?void 0:f.key)+"="+o.name+"/r/n"),(k=o==null?void 0:o.compData)==null||k.forEach(n=>{var F,$,J,A,q,M,L,R,z,W,H,P;if(s!=null&&s.find(m=>(m==null?void 0:m.value)===(n==null?void 0:n.key)))if(!((F=n==null?void 0:n.contents)!=null&&F.length))a.push((($=s==null?void 0:s.find(m=>(m==null?void 0:m.value)===(n==null?void 0:n.key)))==null?void 0:$.key)+"="+(n.contents===!0?'""':"Vertical")+"/r/n");else{let m=(J=n==null?void 0:n.contents)==null?void 0:J[0];if(!m)return;if(Object.keys(m).includes("label")&&Object.keys(m).includes("key")&&Object.keys(m).includes("width"))if(((q=(A=n.contents)==null?void 0:A.filter(y=>y.width!==1))==null?void 0:q.length)===0){const y=(M=i.cloneDeep(n==null?void 0:n.contents))==null?void 0:M.map(l=>({[l.label]:l.value}));a.push(((L=s==null?void 0:s.find(l=>(l==null?void 0:l.value)===(n==null?void 0:n.key)))==null?void 0:L.key)+"="+JSON.stringify(y)+"/r/n")}else{let y=[];(R=i.cloneDeep(n==null?void 0:n.contents))==null||R.reduce((l,D)=>{var U;return l[D.label]=D.key,((U=Object.keys(i.cloneDeep(l)))==null?void 0:U.length)>=D.width&&(y.push(i.cloneDeep(l)),l={}),l},{}),a.push(((z=s==null?void 0:s.find(l=>(l==null?void 0:l.value)===(n==null?void 0:n.key)))==null?void 0:z.key)+"="+JSON.stringify(y)+"/r/n")}else if(Object.keys(m).includes("label")){const y=(W=i.cloneDeep(n==null?void 0:n.contents))==null?void 0:W.map(l=>l.label);a.push(((H=s==null?void 0:s.find(l=>(l==null?void 0:l.value)===(n==null?void 0:n.key)))==null?void 0:H.key)+"="+JSON.stringify(y)+"/r/n")}else a.push(((P=s==null?void 0:s.find(y=>(y==null?void 0:y.value)===(n==null?void 0:n.key)))==null?void 0:P.key)+"="+JSON.stringify(n==null?void 0:n.contents)+"/r/n")}})}),JSON.stringify(a)},N=e.ref([]),Q=()=>{w.value.click()},X=r=>{const a=r.target.files[0];if(!a)return;const u=new FileReader;u.onload=o=>{try{h.value=o.target.result,N.value=Y(o.target.result),c.value++}catch(f){console.error("解析失败:",f)}},u.onerror=o=>{console.error("文件读取错误:",o)},u.readAsText(a)};e.onMounted(()=>{window.addEventListener("resize",B)}),e.onUnmounted(()=>{window.removeEventListener("resize",B)}),e.watch(()=>[t==null?void 0:t.content,t==null?void 0:t.jsonContents],()=>{h.value=t==null?void 0:t.content,_.value=t==null?void 0:t.jsonContents},{deep:!0,immediate:!0}),e.watch(()=>c.value,()=>{var r;((r=N.value)==null?void 0:r.length)!==0&&(C.setOriginalData(N.value),C.setItemData(N.value))},{deep:!0,immediate:!0});const Y=r=>{let a=r.replace(/,/g,",").replace(/;/g,";").replace(/:/g,":");a=a.replace(/(\w+)\s*:/g,"$1:"),a=a.replace(/\r\n/g,"").replace(/\n/g,"").replace(/\t/g,"").replace(/\s+/g," ").trim(),a=a.replace(/,\s*([}\]])/g,"$1"),a=a.replace(/:(\s*)([^"{}\[\],\s]+)(\s*)([,}])/g,": $2$4");try{return JSON.parse(a)}catch(u){try{const f=new Function(`return ${a}`)();if(Array.isArray(f)||typeof f=="object")return f;throw new Error(`解析结果不是有效的数组或对象: ${u}`)}catch(o){throw new Error(`无法解析JSON: ${o.message}`)}}};return(r,a)=>{var u;return e.openBlock(),e.createElementBlock("div",oe,[((u=t==null?void 0:t.jsonContents)==null?void 0:u.length)===0?(e.openBlock(),e.createElementBlock("div",ae,[e.createElementVNode("div",re,[e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:w,accept:".txt",onChange:X,style:{display:"none"}},null,544),e.createElementVNode("button",{onClick:Q,class:"import-button-content"},"导入文件"),g.value?(e.openBlock(),e.createElementBlock("span",le,e.toDisplayString(g.value),1)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),(t==null?void 0:t.mode)==="edit"?(e.openBlock(),e.createElementBlock("div",ce,[e.createElementVNode("div",se,[e.createVNode(O.modelSelect)]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:p.value},[e.createVNode(O.modelShow)])),e.createElementVNode("div",ue,[e.createVNode(O.modelFill)])])):e.createCommentVNode("",!0),(t==null?void 0:t.mode)==="view"?(e.openBlock(),e.createElementBlock("div",ie,[(e.openBlock(),e.createBlock(ne,{content:h.value,onChange:d,jsonContents:_.value,key:p.value},null,8,["content","jsonContents"]))])):e.createCommentVNode("",!0)])}}},me=K._export_sfc(de,[["__scopeId","data-v-91ce80be"]]);exports.default=me;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref as _, watch as V, createElementBlock as C, createCommentVNode as I, openBlock as f, Fragment as le, renderList as se, createElementVNode as O, createBlock as Z, toDisplayString as v, resolveDynamicComponent as ue, onMounted as ce, onUnmounted as ie, createVNode as A } from "vue";
|
|
2
|
-
import { m as me, a as de, b as ye } from "./index-
|
|
3
|
-
import { p as E, s as ee, c as k } from "./index-
|
|
4
|
-
import { a as te, u as fe } from "./index.vue_vue_type_style_index_1_lang-
|
|
5
|
-
import { g as ge } from "./index-
|
|
6
|
-
import { e as he, a as ke } from "./array-
|
|
2
|
+
import { m as me, a as de, b as ye } from "./index-CRj9VM12.js";
|
|
3
|
+
import { p as E, s as ee, c as k } from "./index-DV_ZZQBO.js";
|
|
4
|
+
import { a as te, u as fe } from "./index.vue_vue_type_style_index_1_lang-D5Hjs-g0.js";
|
|
5
|
+
import { g as ge } from "./index-8Dyi4QCI.js";
|
|
6
|
+
import { e as he, a as ke } from "./array-D65aMM6H.js";
|
|
7
7
|
import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const x = [
|
|
9
9
|
{
|
package/dist/ss-component.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),v=require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),v=require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BSOYWm_U.cjs");const C=require("./index.vue_vue_type_style_index_1_lang-N-_9ZJEf.cjs");require("./index-BOJUyAaV.cjs");const s=require("./ss-component2.cjs"),t=require("./index-9hspBVrQ.cjs"),r=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./main-C6Iw-pcH.cjs")));r.install=e=>{e.component("ssComponent",r)};const i=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-D6mwkqWY.cjs")).then(e=>e.index$1));i.install=e=>{e.component("ssTab",i)};const c=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BaRkv5oc.cjs")));c.install=e=>{e.component("ssMenu",c)};const l=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DWs7-g1h.cjs")));l.install=e=>{e.component("ssMenuComponent",l)};const m=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DZ8a7BZ1.cjs")));m.install=e=>{e.component("ssCanvas",m)};const u=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DEEZPcpU.cjs")));u.install=e=>{e.component("ssFold",u)};const a=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DVmoPvzr.cjs")).then(e=>e.index));a.install=e=>{e.component("ssAvatar",a)};const h=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeModel-BUCLJlE5.cjs")));h.install=e=>{e.component("ssThree",h)};const f=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeViewerHost-CRqcYbJE.cjs")).then(e=>e.threeViewerHost));f.install=e=>{e.component("threeViewerHost",f)};const p=C.useMenuState(),P=[r,i,c,l,m,u,a,h,f],q=e=>{P.forEach(o=>{e.use(o)}),e.use(s),e.config.globalProperties.$router=s},g=e=>{switch(e){case"browser":return t.browserThemeConfig;case"client":return t.clientThemeConfig;case"three":return t.threeThemeConfig}},y=e=>{const o=document.documentElement;e==null||e.forEach(d=>{o.style.setProperty(d.name,d.value)})},A=e=>{p.setPlatform(e);const o=g(e);y(o)},T={getPlatform:p.getPlatform,setPlatform:p.setPlatform,initPlatform:A};exports.SvgIcon=v.SvgIcon;exports.router=s;exports.default=q;exports.platformApi=T;
|