ss-component-new 1.2.153 → 1.2.154
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{MTLLoader-BtmHWOWJ.cjs → MTLLoader-1WtdtCOf.cjs} +1 -1
- package/dist/{MTLLoader-BejJP-Qs.js → MTLLoader-CxuI-OD3.js} +1 -1
- package/dist/{OrbitControls-D9OuWDAQ.js → OrbitControls-BTk2jRt5.js} +1 -1
- package/dist/{OrbitControls-B5n4pNnY.cjs → OrbitControls-C4vBfC7i.cjs} +1 -1
- package/dist/{URDFLoader-CDQ9AzDC.js → URDFLoader-BHt0dgSQ.js} +2 -2
- package/dist/{URDFLoader-CXRFJE57.cjs → URDFLoader-BeoPeqcu.cjs} +1 -1
- package/dist/{animationData-C-hP9TLC.cjs → animationData-C5wE4L7-.cjs} +1 -1
- package/dist/{animationData-CHHAeFI3.js → animationData-D0XUXL-k.js} +1 -1
- package/dist/{array-C7BzUOR1.cjs → array-BA1hypIo.cjs} +1 -1
- package/dist/{array-Cn8wes9B.js → array-CHqI4p5h.js} +1 -1
- package/dist/{iconfont-Z-AjJWoS.cjs → iconfont-DLQHCXEo.cjs} +1 -1
- package/dist/{iconfont-CfQSEOs-.js → iconfont-ZLT9XAxM.js} +2 -2
- package/dist/{index-CU6jK3Be.js → index-2yNY5e2G.js} +4 -4
- package/dist/{index-BYang6IA.js → index-9-ywVopw.js} +8 -8
- package/dist/{index-e3pWHaAB.cjs → index-B-0hoVhF.cjs} +1 -1
- package/dist/{index--xh6iNm8.js → index-B2QewyYN.js} +7 -7
- package/dist/{index-D3NTZz8D.js → index-B58-feOw.js} +4 -4
- package/dist/{index-CeWb_Akd.js → index-BCHUaT1b.js} +1 -1
- package/dist/{index-CFgOTsvt.cjs → index-BNJ2QTas.cjs} +1 -1
- package/dist/{index-CHT9f67p.cjs → index-BOXS_4tn.cjs} +1 -1
- package/dist/{index-D_1vHr0J.js → index-BXizmmjx.js} +1 -1
- package/dist/{index-fjulcdkR.js → index-B_2jeu1y.js} +4 -4
- package/dist/{index-DpyyqVn-.cjs → index-BeSDdZYU.cjs} +1 -1
- package/dist/{index-DhdTc0OQ.cjs → index-BfS80Q2E.cjs} +1 -1
- package/dist/{index-DuUpWpCS.cjs → index-Bi3ANhqe.cjs} +1 -1
- package/dist/{index-D-WVNfBK.cjs → index-BivNH_3Y.cjs} +1 -1
- package/dist/{index-V1DcbN_x.js → index-BlKD6cZi.js} +1 -1
- package/dist/{index-DDOJlsUW.cjs → index-BqjnZhkE.cjs} +1 -1
- package/dist/{index-Dxk1cU3M.js → index-C8yeTtWf.js} +1 -1
- package/dist/{index-CB8ALWj-.js → index-CG29LsXi.js} +1 -1
- package/dist/{index-Csmw4ipZ.cjs → index-CR06gPRK.cjs} +1 -1
- package/dist/{index-BJBnz11Q.cjs → index-CRfnOFEW.cjs} +1 -1
- package/dist/{index-lMUbGXaB.js → index-CY-1Jah7.js} +1 -1
- package/dist/{index-BOhnPuY9.js → index-CYvu6ksG.js} +3 -3
- package/dist/{index-CyTjG5QP.js → index-CfPar3o9.js} +8 -8
- package/dist/{index-VPs5zsxn.cjs → index-CkQyRO6_.cjs} +1 -1
- package/dist/{index-Bm9eUAn_.cjs → index-CryMkNhK.cjs} +1 -1
- package/dist/{index-DZrjyG-a.cjs → index-CyK70wye.cjs} +1 -1
- package/dist/{index-CJDmIhbC.js → index-D3GaX-hs.js} +16 -16
- package/dist/{index-BmIq8n_F.cjs → index-DAzwVCxB.cjs} +1 -1
- package/dist/{index-Bo9jr0Zi.js → index-DEJi4Jgl.js} +3 -3
- package/dist/{index-CL8Yzkby.js → index-DIoU9z8L.js} +1 -1
- package/dist/{index-Dte3ZZke.cjs → index-DM_EMRM2.cjs} +1 -1
- package/dist/{index-D2_gz0RZ.js → index-Da0AOFCk.js} +2 -2
- package/dist/{index-C782IlXk.cjs → index-Deikrx0f.cjs} +1 -1
- package/dist/{index-CcZJE3jG.cjs → index-DevyGri2.cjs} +1 -1
- package/dist/{index-yVeoEkO5.cjs → index-DgJoosnb.cjs} +1 -1
- package/dist/{index-CKwNwB_8.cjs → index-DkSZEAbZ.cjs} +1 -1
- package/dist/{index-ORlEJXHz.js → index-DrV8SZ4J.js} +1 -1
- package/dist/{index-kX2P3zSJ.cjs → index-IQC2vnbD.cjs} +1 -1
- package/dist/{index-2iNXd4Ar.cjs → index-LpEON1a8.cjs} +1 -1
- package/dist/{index-DSRhb9Vz.js → index-M2KiY43O.js} +1 -1
- package/dist/{index-DTg5WplY.js → index-_1bAnzxP.js} +1 -1
- package/dist/{index-CJMcB4h8.js → index-csubFH4q.js} +1 -1
- package/dist/{index-Bx3qFbvZ.cjs → index-ejOAPEYs.cjs} +1 -1
- package/dist/{index-ncZ9UeCL.js → index-rj8BhHg9.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BXd4qgPk.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DFxITcl3.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DoQnf2Xb.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-IaUCTXgn.js} +7 -7
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CdH8DTu8.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CoJs3q0H.js} +17079 -17076
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BDBlck5Z.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-IfK3OELs.cjs} +240 -240
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-C7H7qKuZ.js → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-Bers--iX.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-DuEvXb33.cjs → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-D5Lj-9fu.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-BPaap3zh.js → index.vue_vue_type_style_index_1_lang-BfeksRTe.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_1_lang-bzCyALMG.cjs → index.vue_vue_type_style_index_1_lang-D3OhDLLw.cjs} +1 -1
- package/dist/{main-BiPfVLko.js → main-D5M-nMFX.js} +3 -3
- package/dist/{main-BJgGsJ1h.cjs → main-_zcHBiRF.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-DycV17xV.js → threeModel-By05NsSI.js} +4 -4
- package/dist/{threeModel-7FXgfwHb.cjs → threeModel-H_s_u3Fl.cjs} +1 -1
- package/dist/{threePreview-s0AxB3yH.js → threePreview-BEyiAGvn.js} +3 -3
- package/dist/{threePreview-CtICArJw.cjs → threePreview-DHGnslFX.cjs} +1 -1
- package/dist/{threeSceneView-CUu5Omyz.cjs → threeSceneView-ByNKGt3U.cjs} +1 -1
- package/dist/{threeSceneView-B3eaM3zv.js → threeSceneView-fTgsQjpw.js} +8 -8
- package/dist/{threeSceneViewForCPMPIP-D-luCm5B.js → threeSceneViewForCPMPIP-BBd9973N.js} +7 -7
- package/dist/{threeSceneViewForCPMPIP-Dg208-pk.cjs → threeSceneViewForCPMPIP-C4EtRJQE.cjs} +1 -1
- package/dist/{threeTrackPathView-mQ-2bKju.cjs → threeTrackPathView-C-AZTK1Z.cjs} +1 -1
- package/dist/{threeTrackPathView-BmRabc3W.js → threeTrackPathView-j5scYAuW.js} +3 -3
- package/dist/{threeViewerHost-CCxCVdHT.cjs → threeViewerHost-CDahlUlC.cjs} +1 -1
- package/dist/{threeViewerHost-C_j3oIAp.js → threeViewerHost-CgRh_daa.js} +2 -2
- package/dist/{urdfTree-C4zJU99i.js → urdfTree-Cfo51_SN.js} +1 -1
- package/dist/{urdfTree-fsrr6ZOU.cjs → urdfTree-WSIKy2AD.cjs} +1 -1
- package/dist/{workpieceTreePanel-DBHseqNd.cjs → workpieceTreePanel-CYuKxUDM.cjs} +1 -1
- package/dist/{workpieceTreePanel-BKlndzR-.js → workpieceTreePanel-KkBuVRvS.js} +4 -4
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),D=require("./index-C8qRkCgn.cjs"),te=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BDBlck5Z.cjs"),Xe=require("./index-CHT9f67p.cjs"),ha=require("./threeViewerHost-CCxCVdHT.cjs"),Pl=require("./index-DOCHgBta.cjs");require("./index.vue_vue_type_style_index_1_lang-bzCyALMG.cjs");const $l=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Tl=require("./index-Bx3qFbvZ.cjs");require("./index-BIkQWptd.cjs");const ga=require("./isString--eJE54G5.cjs"),Wl=F=>F.match(/\((.*)\)/)[1],ya={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},placement:{type:String,default:"bottom"},width:{type:Number,default:200}},setup(F){const le=F,I=e.ref(null),$=e.ref(!1),L=e.ref(null);return e.watch(()=>le==null?void 0:le.isVisible,()=>{$.value=le==null?void 0:le.isVisible},{deep:!0,immediate:!0}),e.watch(()=>L.value,()=>{e.nextTick(()=>{var t,re;(re=(t=I.value)==null?void 0:t.updatePopper)==null||re.call(t)})},{deep:!0,immediate:!0}),(t,re)=>{const he=e.resolveComponent("el-popover");return e.openBlock(),e.createBlock(he,{visible:$.value,title:le==null?void 0:le.title,placement:le==null?void 0:le.placement,width:le==null?void 0:le.width,ref_key:"popOverRef",ref:I},{reference:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(t.$slots,"reference",{ref_key:"referenceRef",ref:L})])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(t.$slots,"content")])]),_:3},8,["visible","title","placement","width"])}}},Dr={key:0,class:"extra-button-content"},Tr={class:"table-operator-wrap"},Nr={class:"extra-button-filter"},Er={class:"form-content-value"},Ar={key:0,class:"extra-header"},Br={class:"drop-menu",style:{width:"120px"}},wr={key:0},_r={key:1},Ur={key:1,class:"extra-button-content tabs-button-wrapper"},Or={class:"table-operator-wrap"},jr={class:"extra-button-filter"},Lr={class:"form-content-value"},Mr={key:0,class:"extra-header"},Pr={class:"drop-menu",style:{width:"120px"}},$r={key:0},Fr={key:1},Vr={__name:"header",props:{pageLayout:{type:String,default:"vertical"},lockingPage:Boolean,level:{type:Number,default:1},compName:{type:String,default:"表格名称",required:!1},isDevMode:Boolean,selectNums:Number,dataNums:Number,filterValues:Array,buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick","filter","getImportData"],setup(F,{emit:le}){const I=le,$=F,L=e.ref(""),t=e.ref(!1),re=e.ref([]),he=e.ref([{label:"取消",background:"#999999"},{label:"清空",background:"#999999"},{label:"确认"}]),Se=[{label:"新增",icon:"Plus"},{label:"导入",icon:"import"},{label:"导出",icon:"export"}],ge=pe=>{const ve=pe.raw;if(!ve)return;const ce=new FileReader;ce.onload=Z=>{try{const G=new Uint8Array(Z.target.result),Ae=te.readSync(G,{type:"array"}),qe=Ae.SheetNames[0],se=Ae.Sheets[qe],Le=te.utils.decode_range(se["!ref"]).e.c+1,H=new Array(Le).fill(""),C=[];for(const Q in se){if(Q[0]==="!")continue;const{r:de,c:ke}=te.utils.decode_cell(Q);let Be=se[Q].v;if(se[Q].t==="n"&&Be>0&&Be<1e6&&(Be=new Date((Be-25569)*86400*1e3).toISOString().split("T")[0]),(Be==null||Be==="")&&(Be=""),de===0)H[ke]=Be;else{if(!C[de-1]){C[de-1]={};for(let Me=0;Me<Le;Me++)C[de-1][`col_${Me}`]=""}C[de-1][`col_${ke}`]=Be}}for(let Q=0;Q<Le;Q++)H[Q]===void 0&&(H[Q]="");const xe=C==null?void 0:C[0];if(!(xe!=null&&xe.hasOwnProperty("col_0")))return D.ElMessage.error("导入的数据列不匹配,请检查是否错位");I("getImportData",H,C)}catch(G){throw D.ElMessage.error(G.message),new Error(G.message)}},ce.readAsArrayBuffer(ve)},Je=pe=>{var ce;const ve=(ce=re.value)==null?void 0:ce.reduce((Z,G,Ae)=>(Ae===0?Z[G.label]=pe:Z[G.label]=G==null?void 0:G.value,Z),{});I("filter",ve,pe,!0)},Ye=pe=>{I("buttonClick",pe)},nl=pe=>{var ve,ce;re.value=(ce=(ve=te.getColumnChild(D.cloneDeep(pe)))==null?void 0:ve.filter(Z=>(Z==null?void 0:Z.label)!==""&&(Z==null?void 0:Z.label)!=="操作"))==null?void 0:ce.map(Z=>({label:(Z==null?void 0:Z.label)??"",value:"",name:(Z==null?void 0:Z.label)??"",isFormColHidden:Z==null?void 0:Z.isTableColHidden,width:2}))},Ee=e.ref(!1),al=pe=>{var ve;if((pe==null?void 0:pe.buttonName)==="确认"&&(I("filter",pe==null?void 0:pe.content),Ee.value=(pe==null?void 0:pe.content)&&Object.values(pe==null?void 0:pe.content).length>0),(pe==null?void 0:pe.buttonName)==="清空"){const ce=D.cloneDeep(pe==null?void 0:pe.content);for(const Z in ce)ce[Z]="";re.value=(ve=re.value)==null?void 0:ve.map(Z=>({...Z,value:""})),I("filter",ce),Ee.value=!1}t.value=!1},rl=()=>{var ve,ce;re.value=(ve=re.value)==null?void 0:ve.map(Z=>({...Z,value:""}));const pe=(ce=re.value)==null?void 0:ce.reduce((Z,G)=>(Z[G.label]=G.value,Z),{});I("filter",pe)};return e.onMounted(()=>{nl($.columns)}),e.watch(()=>$.columns,()=>{nl($.columns)},{deep:!0,immediate:!0}),(pe,ve)=>{var se,Fe,Le,H;const ce=e.resolveComponent("el-icon"),Z=e.resolveComponent("svg-icon"),G=e.resolveComponent("el-input"),Ae=e.resolveComponent("el-button"),qe=e.resolveComponent("el-upload");return F.pageLayout==="vertical"?(e.openBlock(),e.createElementBlock("div",Dr,[e.createElementVNode("div",{class:e.normalizeClass(F.compName?"table-name-wrap":""),style:e.normalizeStyle({background:($==null?void 0:$.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:(($==null?void 0:$.level)-1)*12+"px",fontWeight:600-(($==null?void 0:$.level)-1)*100>=400?600-(($==null?void 0:$.level)-1)*100:400,fontSize:17-($==null?void 0:$.level)>=14?17-($==null?void 0:$.level)+"px":"14px"})},e.toDisplayString(F.compName),7),e.createElementVNode("div",Tr,[e.createElementVNode("div",Nr,[e.createVNode(ya,{title:"",width:800,placement:"bottom-start",isVisible:t.value},{reference:e.withCtx(()=>{var C,xe,Q,de;return[e.createVNode(G,{modelValue:L.value,"onUpdate:modelValue":ve[1]||(ve[1]=ke=>L.value=ke),style:{"min-width":"80px"},placeholder:Ee.value?(Q=(xe=(C=F.filterValues)==null?void 0:C.filter(ke=>ke))==null?void 0:xe.slice(0,3))==null?void 0:Q.join("/"):"搜索","prefix-icon":e.unref(D.search_default),clearable:"",onInput:Je,disabled:((de=re.value)==null?void 0:de.length)===0},{suffix:e.withCtx(()=>{var ke,Be;return[!L.value&&((Be=(ke=F.filterValues)==null?void 0:ke.filter(Me=>Me))!=null&&Be.join("/"))?(e.openBlock(),e.createBlock(ce,{key:0,style:{cursor:"pointer"},onClick:rl},{default:e.withCtx(()=>[e.createVNode(e.unref(D.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:ve[0]||(ve[0]=ke=>t.value=!t.value)},[e.createVNode(Z,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:e.withCtx(()=>[e.createElementVNode("div",Er,[(e.openBlock(),e.createBlock(Xe.ssForm,{rowContents:re.value,buttonValue:he.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:he.value,isStartJustify:!1,onOnButtonClick:al},null,8,["rowContents","buttonValue"]))])]),_:1},8,["isVisible"])]),F.buttons&&((se=F.buttons)==null?void 0:se.length)>0?(e.openBlock(),e.createElementBlock("div",Ar,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Fe=F.buttons)==null?void 0:Fe.filter(C=>F.isDevMode||(C==null?void 0:C.label)!=="修改模板"),(C,xe)=>(e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:xe},[(C==null?void 0:C.type)==="upload"?(e.openBlock(),e.createBlock(qe,{key:0,class:"upload-button-wrap","on-change":ge,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!F.lockingPage},{default:e.withCtx(()=>[e.createVNode(Ae,{disabled:!!F.lockingPage,style:e.normalizeStyle({background:(C==null?void 0:C.background)??"var(--ssbutton-theme-bg)",color:(C==null?void 0:C.color)??"var(--ssbutton-theme-color)"})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C==null?void 0:C.label),1)]),_:2},1032,["disabled","style"])]),_:2},1032,["disabled"])):e.createCommentVNode("",!0),(C==null?void 0:C.type)==="popover"?(e.openBlock(),e.createBlock(Xe._sfc_main$1,{key:1},{dropTitle:e.withCtx(()=>[(C==null?void 0:C.type)==="popover"?(e.openBlock(),e.createBlock(Ae,{key:0,disabled:!!F.lockingPage,style:e.normalizeStyle({background:(C==null?void 0:C.background)??"var(--ssbutton-theme-bg)",color:(C==null?void 0:C.color)??"var(--ssbutton-theme-color)"})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C==null?void 0:C.label),1)]),_:2},1032,["disabled","style"])):e.createCommentVNode("",!0)]),dropMenu:e.withCtx(()=>[e.createElementVNode("div",Br,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C==null?void 0:C.contents,Q=>(e.openBlock(),e.createBlock(Ae,{key:Q==null?void 0:Q.label,disabled:!!F.lockingPage,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:de=>Ye(Q==null?void 0:Q.label)},{default:e.withCtx(()=>{var de,ke;return[e.createTextVNode(e.toDisplayString(Q==null?void 0:Q.label),1),(de=Q==null?void 0:Q.label)!=null&&de.includes("选中")?(e.openBlock(),e.createElementBlock("span",wr,"("+e.toDisplayString(F.selectNums)+")",1)):e.createCommentVNode("",!0),(ke=Q==null?void 0:Q.label)!=null&&ke.includes("全部")?(e.openBlock(),e.createElementBlock("span",_r,"("+e.toDisplayString(F.dataNums)+")",1)):e.createCommentVNode("",!0)]}),_:2},1032,["disabled","onClick"]))),128))])]),_:2},1024)):e.createCommentVNode("",!0),C!=null&&C.type?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ae,{key:2,id:"themeButton",disabled:!!F.lockingPage,style:e.normalizeStyle({background:(C==null?void 0:C.background)??"var(--ssbutton-theme-bg)",color:(C==null?void 0:C.color)??"var(--ssbutton-theme-color)"}),onClick:Q=>Ye(C==null?void 0:C.label)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C==null?void 0:C.label),1)]),_:2},1032,["disabled","style","onClick"]))]))),128))])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",Ur,[e.createElementVNode("div",Or,[e.createElementVNode("div",jr,[e.createVNode(ya,{title:"",width:800,placement:"bottom-start",isVisible:t.value},{reference:e.withCtx(()=>{var C,xe,Q,de;return[e.createVNode(G,{modelValue:L.value,"onUpdate:modelValue":ve[3]||(ve[3]=ke=>L.value=ke),style:{"min-width":"80px"},placeholder:Ee.value?(Q=(xe=(C=F.filterValues)==null?void 0:C.filter(ke=>ke))==null?void 0:xe.slice(0,3))==null?void 0:Q.join("/"):"搜索","prefix-icon":e.unref(D.search_default),clearable:"",onInput:Je,disabled:((de=re.value)==null?void 0:de.length)===0},{suffix:e.withCtx(()=>{var ke,Be;return[!L.value&&((Be=(ke=F.filterValues)==null?void 0:ke.filter(Me=>Me))!=null&&Be.join("/"))?(e.openBlock(),e.createBlock(ce,{key:0,style:{cursor:"pointer"},onClick:rl},{default:e.withCtx(()=>[e.createVNode(e.unref(D.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:ve[2]||(ve[2]=ke=>t.value=!t.value)},[e.createVNode(Z,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:e.withCtx(()=>[e.createElementVNode("div",Lr,[(e.openBlock(),e.createBlock(Xe.ssForm,{rowContents:re.value,buttonValue:he.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:he.value,isStartJustify:!1,onOnButtonClick:al},null,8,["rowContents","buttonValue"]))])]),_:1},8,["isVisible"])]),F.buttons&&((Le=F.buttons)==null?void 0:Le.length)>0?(e.openBlock(),e.createElementBlock("div",Mr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((H=F.buttons)==null?void 0:H.filter(C=>F.isDevMode||(C==null?void 0:C.label)!=="修改模板"),(C,xe)=>(e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:xe},[(C==null?void 0:C.type)==="upload"?(e.openBlock(),e.createBlock(qe,{key:0,class:"upload-button-wrap","on-change":ge,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:e.withCtx(()=>[e.createVNode(Ae,{style:{background:"transparent",color:"#666666"}},{icon:e.withCtx(()=>{var Q;return[e.createVNode(Z,{name:(Q=Se==null?void 0:Se.find(de=>(de==null?void 0:de.label)===(C==null?void 0:C.label)))==null?void 0:Q.icon},null,8,["name"])]}),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(C==null?void 0:C.label),1)]),_:2},1024)]),_:2},1024)):e.createCommentVNode("",!0),(C==null?void 0:C.type)==="popover"?(e.openBlock(),e.createBlock(Xe._sfc_main$1,{key:1},{dropTitle:e.withCtx(()=>[(C==null?void 0:C.type)==="popover"?(e.openBlock(),e.createBlock(Ae,{key:0,style:{background:"transparent",color:"#666666"}},{icon:e.withCtx(()=>{var Q;return[e.createVNode(Z,{name:(Q=Se==null?void 0:Se.find(de=>(de==null?void 0:de.label)===(C==null?void 0:C.label)))==null?void 0:Q.icon},null,8,["name"])]}),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(C==null?void 0:C.label),1)]),_:2},1024)):e.createCommentVNode("",!0)]),dropMenu:e.withCtx(()=>[e.createElementVNode("div",Pr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C==null?void 0:C.contents,Q=>(e.openBlock(),e.createBlock(Ae,{key:Q==null?void 0:Q.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:de=>Ye(Q==null?void 0:Q.label)},{default:e.withCtx(()=>{var de,ke;return[e.createTextVNode(e.toDisplayString(Q==null?void 0:Q.label),1),(de=Q==null?void 0:Q.label)!=null&&de.includes("选中")?(e.openBlock(),e.createElementBlock("span",$r,"("+e.toDisplayString(F.selectNums)+")",1)):e.createCommentVNode("",!0),(ke=Q==null?void 0:Q.label)!=null&&ke.includes("全部")?(e.openBlock(),e.createElementBlock("span",Fr,"("+e.toDisplayString(F.dataNums)+")",1)):e.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):e.createCommentVNode("",!0),C!=null&&C.type?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ae,{key:2,id:"themeButton",style:e.normalizeStyle({background:"transparent",color:(C==null?void 0:C.label)==="新增"?"var(--ssbutton-theme-bg)":"#666666"}),onClick:Q=>Ye(C==null?void 0:C.label)},{icon:e.withCtx(()=>{var Q;return[e.createVNode(Z,{name:(Q=Se==null?void 0:Se.find(de=>(de==null?void 0:de.label)===(C==null?void 0:C.label)))==null?void 0:Q.icon},null,8,["name"])]}),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(C==null?void 0:C.label),1)]),_:2},1032,["style","onClick"]))]))),128))])):e.createCommentVNode("",!0)])]))}}},Kr=$l._export_sfc(Vr,[["__scopeId","data-v-dc7dc670"]]),zr=e.defineComponent({__name:"batch",props:{lockingPage:Boolean,buttons:{type:Array,default:()=>[]},selectTableItems:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick"],setup(F,{emit:le}){const I=F,$=le,L=re=>{$("buttonClick",re)},t=re=>{var he;return re!=null&&re.includes("删除")?((he=I.selectTableItems)==null?void 0:he.length)>0?"warning-active-type":"warning-type":"default-type"};return(re,he)=>{const Se=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.buttons,ge=>(e.openBlock(),e.createBlock(Se,{key:ge==null?void 0:ge.label,disabled:!!F.lockingPage,class:e.normalizeClass(t(ge==null?void 0:ge.label)),onClick:Je=>L(ge==null?void 0:ge.label)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ge==null?void 0:ge.label),1)]),_:2},1032,["disabled","class","onClick"]))),128))])}}}),qr=$l._export_sfc(zr,[["__scopeId","data-v-70b12973"]]),va=D.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(F){this.selectArray=F},setSelectString(F){this.selectString=F}}}),Rr={class:"calculator-content"},Jr={class:"calculator-child"},Wr={class:"calculator-child"},Gr=e.defineComponent({__name:"calculator",setup(F){const le=e.ref(),I=e.ref();return e.onMounted(()=>{le.value=[{type:"Upload",label:"输入",name:"input"}],I.value=[{type:"Upload",label:"输出",name:"output"}]}),($,L)=>(e.openBlock(),e.createElementBlock("div",Rr,[e.createElementVNode("div",Jr,[e.createVNode(Xe.ssForm,{rowContents:le.value,isRowFlex:!0},null,8,["rowContents"])]),e.createElementVNode("div",Wr,[e.createVNode(Xe.ssForm,{rowContents:I.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),Hr=$l._export_sfc(Gr,[["__scopeId","data-v-73db0fe7"]]),Gl=(F,le)=>{let I=F,$=le;return Array.isArray(I)&&(I=I==null?void 0:I.map((L,t)=>{if(Array.isArray(L)){let re={};return L=L==null?void 0:L.forEach((he,Se)=>{var ge;(ge=$==null?void 0:$[Se])!=null&&ge.prop?re[$[Se].prop]=he:Array.isArray(he)&&(re.children=Gl(he,$))}),Object.assign(re,{id:t})}else return L})),I},ba=(F,le,I)=>{let $=F,L=le;return $=$==null?void 0:$.map((t,re)=>{var he,Se;return!Array.isArray(t)||!((he=L==null?void 0:L[re])!=null&&he.label)&&!I||(t.unshift(((Se=L==null?void 0:L[re])==null?void 0:Se.label)??""),t.some(ge=>Array.isArray(ge))&&(t=t==null?void 0:t.map(ge=>{var Je;return Array.isArray(ge)&&(ge=ba(ge,(Je=L==null?void 0:L[re])==null?void 0:Je.children,I)),ge}))),t}),$},Qr=(F,le,I)=>{if(le==="")return F==null?void 0:F.filter($=>($==null?void 0:$.id)!==I);{const $=le.split("-");return Xr(F,$,I)}},Xr=(F,le,I)=>{let $=F,L=le;return(L==null?void 0:L.length)===0?$=$==null?void 0:$.filter(t=>t.id!==I):$=$==null?void 0:$.map(t=>(t.id.toString()===(L==null?void 0:L[0])&&(L==null||L.shift(),t=ka(t,L,I)),t)),$},ka=(F,le,I)=>{var t,re;let $=F,L=le;return(L==null?void 0:L.length)===0?$.children=(t=$.children)==null?void 0:t.filter(he=>he.id!==I):$.children=(re=$.children)==null?void 0:re.map(he=>(he.id.toString()===(L==null?void 0:L[0])&&(L==null||L.shift(),he=ka(he,L,I)),he)),$},Yr=(F,le,I)=>{if(le==="")return I;{const $=le.split("-");return Zr(F,$,I)}},Zr=(F,le,I)=>{let $=F,L=le;return(L==null?void 0:L.length)===0?$=I:$=$==null?void 0:$.map(t=>(t.id.toString()===(L==null?void 0:L[0])&&(L==null||L.shift(),t=ma(t,L,I)),t)),$},ma=(F,le,I)=>{var t;let $=F,L=le;return(L==null?void 0:L.length)===0?$.children=I:$.children=(t=$.children)==null?void 0:t.map(re=>(re.id.toString()===(L==null?void 0:L[0])&&(L==null||L.shift(),re=ma(re,L,I)),re)),$},Sa=D.defineStore("formComp",{state:()=>({objUrl:[],blobUrls:[]}),actions:{setObjUrl(F){this.objUrl=F},setBlobUrls(F){this.blobUrls=F}}}),Hl=async(F,le)=>{var re,he,Se,ge,Je,Ye,nl,Ee,al,rl,pe,ve,ce,Z,G,Ae,qe;let I=(he=(re=D.cloneDeep(F))==null?void 0:re.optionUrl)==null?void 0:he.menuSelect,$=[];I==null||I.forEach(se=>{});let L="",t=await te.menuToParent(I);if(t==null||t.forEach(se=>{var Fe,Le,H,C;(se==null?void 0:se.name)===(((C=(H=(Le=(Fe=D.cloneDeep(F))==null?void 0:Fe.optionUrl)==null?void 0:Le.groupSelect)==null?void 0:H[0])==null?void 0:C.replaceAll("'",""))??"")&&(L=se==null?void 0:se.id)}),le){L=le;const se=await D.getInsofDataApi({id:L}),Fe=(Ye=(Je=(ge=(Se=se==null?void 0:se.data)==null?void 0:Se.result)==null?void 0:ge[0])==null?void 0:Je.key)==null?void 0:Ye.pageKey;t=await te.getItemData(Fe,sessionStorage.getItem("systemKey"),"")}if(L!==""){let se;le?se=(nl=t==null?void 0:t.find(H=>(H==null?void 0:H.id)===le))==null?void 0:nl.compData:se=(Ee=t==null?void 0:t.find(H=>{var C,xe,Q,de;return(H==null?void 0:H.name)===(((xe=(C=F==null?void 0:F.groupSelect)==null?void 0:C.split(":"))==null?void 0:xe[0])||((de=(Q=F==null?void 0:F.optionUrl)==null?void 0:Q.groupSelect)==null?void 0:de[0]))}))==null?void 0:Ee.compData;let Fe=(rl=(al=se==null?void 0:se.find(H=>(H==null?void 0:H.key)==="header"))==null?void 0:al.contents)==null?void 0:rl.map(H=>H==null?void 0:H.label);(ve=(pe=se==null?void 0:se.find(H=>(H==null?void 0:H.key)==="header"))==null?void 0:pe.contents)!=null&&ve.every(H=>Array.isArray(H))&&(Fe=(G=te.getColumnChild((Z=(ce=se==null?void 0:se.find(H=>(H==null?void 0:H.key)==="header"))==null?void 0:ce.contents)==null?void 0:Z[0]))==null?void 0:G.map(H=>H==null?void 0:H.prop));let Le=(qe=(Ae=se==null?void 0:se.find(H=>(H==null?void 0:H.key)==="tableContents"))==null?void 0:Ae.contents)==null?void 0:qe.map(H=>{if(Array.isArray(H))H=H==null?void 0:H.filter(C=>!(C!=null&&C.id));else{let C={};for(let xe in H)xe!=="id"&&(C[xe]=H==null?void 0:H[xe]);H=C}return H});Le==null||Le.forEach(H=>{Array.isArray(H)?$.push(te.getValueToObjectValue(H,Fe)):$.push(H)})}return $},Ir={class:"table-content"},en={class:"menu-config-wrap"},ln=["onClick"],an={key:0,class:"viewport-wrap"},rn=["onClick"],nn={title:"选择显示列信息"},on={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},tn=["title"],sn={class:"col-operate-wrap"},un={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},cn={class:"pop-view"},dn={class:"pop-wrapper"},pn={class:"file-list-pop"},fn=["title","onClick"],hn=["onClick"],gn=["onClick"],yn={class:"form-content"},vn={key:0,class:"dialog-footer"},bn={class:"dialog-footer"},kn={class:"form-content"},mn={__name:"index",props:{pageLayout:{type:String,default:"vertical"},level:{type:Number,default:1},compName:{type:String,default:"",required:!1},compNames:{type:Array,default:()=>[],required:!1},compItem:{type:Object,default:()=>{}},operatingForm:{type:Object,default:()=>{}},cacheNewData:{type:Object,default:()=>{}},config:Object,parentTableId:{type:Number,default:0},itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,isDevMode:Boolean,changedContent:{type:Object,default:()=>{}},showHeader:{type:Boolean,default:!0},allowSelect:{type:Boolean,default:!1},allowOperate:{type:Boolean,default:!0},allMapContents:{type:Object,default:()=>{}}},emits:["getSliceContLength","clickMainKey","change","contentChange","onButtonClick","contentClick","pageChange","rowClick","routeUrl"],setup(F,{emit:le}){var fa;const I=e.ref([]),$=Sa(D.pinia),L=e.ref(null),t=F,re=e.ref(t==null?void 0:t.allowSelect),he=e.ref((fa=t==null?void 0:t.config)==null?void 0:fa.showIndex),Se=e.ref(),ge=e.ref([{label:"排序",value:"sortable",checked:!1},{label:"筛选",value:"filterable",checked:!1},{label:"合计",value:"showSummary",checked:!1},{label:"编辑",value:"operable",checked:!1}]),Je=te.useOriginalState(D.pinia);let Ye="$R";const{originalPath:nl}=D.storeToRefs(Je),Ee=nl.value,al=e.ref(!1),rl=e.ref(!1),pe=e.ref(!1),ve=e.reactive({column:{},status:!1,text:"合计"}),ce=e.reactive({currentPage:1,pageSize:10,total:0,pageSizes:[5,10,20,50,100]}),Z=le,G=e.ref([]),Ae=e.reactive({prop:"",order:null}),qe=e.ref([]),se=e.ref(!1),Fe=e.ref(!1),Le=e.ref(null),{isUseBackdrop:H,initTrackFileType:C,getFileExtension:xe,setData:Q,getFileInfo:de,getFilesInfo:ke}=ha.useThreeSystem(),Be=e.ref([]),Me=e.ref(!1),ul=e.ref(),Ue=Pl.useMenuState(),{importLoading:Cn,activeMenuPath:ye,contentLoading:xn,linkMenuInfo:Ca}=D.storeToRefs(Ue),xa=te.useTableComp(D.pinia),De=Pl.useModelComp(D.pinia),{extraContents:be,cacheUpdatingData:gl,tableViewContents:yl,tableLoading:Dn,pageMapState:cl,lockingPage:Nl}=D.storeToRefs(De),ee=e.ref([]),El=e.ref([]),Al=e.ref(new Map);e.ref(!1);const Ze=e.ref("");e.ref();const Bl=e.ref(!0),dl=e.ref(0),Ql=e.ref(!0),We=e.ref(""),Ie=e.ref(!1),Da=e.ref({label:"查看三维模型"}),wl=e.ref(!1),Fl=e.ref(),Re=e.ref([]),ol=e.ref([]),_l=e.ref(!1),vl=e.ref([]),pl=e.ref([]),il=e.ref([]),we=e.ref([]),Ge=e.ref(),Pe=e.ref(),Ta=va(D.pinia),Ul=e.ref(),Vl=e.ref(0),Na=te.useUnit(D.pinia),{selectIndex:Ea,selectMenu:bl,selectTitle:Tn}=D.storeToRefs(Na),{selectString:tl}=D.storeToRefs(Ta),Aa=D.useLoginState(D.pinia),{loginUserInfo:fl}=D.storeToRefs(Aa),Ba=e.ref(720),He=e.ref(!1),Ol=e.ref(!1),Qe=e.ref([]),el=e.ref(),kl=e.ref(!0),Xl=e.ref(!0),sl=e.ref([]),wa=e.inject("contentRef");e.provide("contentRef",wa),e.watch(()=>{var l;return(l=ee.value)==null?void 0:l.length},l=>{ce.total=l}),e.watch(()=>yl.value,async()=>{var s,c,d,p,h,T,j,q,y,_,O,w,R,z,K,x,B,b;if(((s=yl.value)==null?void 0:s.length)===0||!((c=t==null?void 0:t.itemData)!=null&&c.find(N=>(N==null?void 0:N.key)==="columnPath"))||!((d=t==null?void 0:t.itemData)!=null&&d.find(N=>(N==null?void 0:N.key)==="pageColumn")))return;let l=(y=(q=(j=(T=(h=(p=t==null?void 0:t.itemData)==null?void 0:p.find(N=>(N==null?void 0:N.key)==="pageColumn"))==null?void 0:h.contents)==null?void 0:T.split("["))==null?void 0:j[1])==null?void 0:q.split("]"))==null?void 0:y[0],a=((R=(w=(O=(_=t==null?void 0:t.itemData)==null?void 0:_.find(N=>(N==null?void 0:N.key)==="pageColumn"))==null?void 0:O.contents)==null?void 0:w.split("["))==null?void 0:R[0])+((K=(z=yl.value)==null?void 0:z.find(N=>(N==null?void 0:N.key)===l))==null?void 0:K.value),o=((B=(x=t==null?void 0:t.itemData)==null?void 0:x.find(N=>(N==null?void 0:N.key)==="pageGroup"))==null?void 0:B.contents)??"",r=await te.getItemData(a,sessionStorage.getItem("systemKey"),""),n=(b=r==null?void 0:r.find(N=>(N==null?void 0:N.name)===(o===""?t==null?void 0:t.compName:o)))==null?void 0:b.compData;da(n,t.allMapContents)},{deep:!0});const _a=async(l,a)=>{var o,r,n,s,c;try{const d=await D.getInsofDataApi({id:(t==null?void 0:t.parentTableId)||(t==null?void 0:t.index)});let p;((o=d==null?void 0:d.data)==null?void 0:o.code)===200&&(p=((n=(r=d==null?void 0:d.data)==null?void 0:r.result)==null?void 0:n[0])||null);const h={type:"data",pageKey:t!=null&&t.parentTableId?(s=p==null?void 0:p.key)==null?void 0:s.pageKey:ye.value,tableId:(t==null?void 0:t.parentTableId)||(t==null?void 0:t.index),systemKey:sessionStorage.getItem("systemKey")},T=a==null?void 0:a.map(y=>{const _=Object.keys(y),O={};return _.forEach((w,R)=>{O[l[R]]=y[w]}),O}),j=T==null?void 0:T.map(y=>({key:h,value:{tableData:y}})),q=await D.batchAddInsofDataApi({dataList:j});((c=q==null?void 0:q.data)==null?void 0:c.code)===200?(De.setRefreshCurStructure(!0),D.ElMessage.success("导入数据成功")):D.ElMessage.error("导入数据响应失败")}catch(d){throw D.ElMessage.error("导入数据处理失败"),new Error(d)}},Ua=async l=>{var a,o,r,n,s;if((a=l==null?void 0:l.toString())!=null&&a.includes(".txt")||(o=l==null?void 0:l.toString())!=null&&o.includes(".cpt")||(r=l==null?void 0:l.toString())!=null&&r.includes(".cyd")){const c=await D.axios.get(l,{responseType:"blob",headers:{"Content-Type":"application/json"}}),d=new Blob([c.data],{type:"application/octet-stream;charset=UTF-8"});let p=URL.createObjectURL(d);ul.value=[{name:(s=l==null?void 0:l.split("/"))==null?void 0:s[((n=l==null?void 0:l.split("/"))==null?void 0:n.length)-1],blobUrl:p}],Me.value=!0}};e.onBeforeUnmount(()=>{Xl.value=!1;let l=Vl.value;Vl.value=l+1});const Yl=e.computed(()=>{var r,n;const l=(ce.currentPage-1)*ce.pageSize,a=l+ce.pageSize,o=(r=G.value)==null?void 0:r.find(s=>{var c;return(s==null?void 0:s.sortable)&&((c=s==null?void 0:s.label)==null?void 0:c.includes("时间"))});return o&&(Ae.order="descending",Ae.prop=o==null?void 0:o.prop),Z("getSliceContLength",ce),(n=ee.value)==null?void 0:n.slice(l,a)}),Oa=l=>{ce.currentPage=l,Z("getSliceContLength",ce)},ja=l=>{var a;ce.pageSize=l,l*ce.currentPage>((a=ee.value)==null?void 0:a.length)&&(ce.currentPage=1,ce.pageSize=10,D.ElMessage.warning("分页无效,返回第一页")),Z("getSliceContLength",ce)},La=(l,a)=>{var c,d;const o=(d=(c=G.value)==null?void 0:c.map(p=>p==null?void 0:p.prop))==null?void 0:d.filter(p=>p!=="operate");let r;const n=(l==null?void 0:l.length)===(o==null?void 0:o.length);if(l!=null&&l.includes("序号"))return D.ElMessage.error("导入的数据不需要包含序号列");if(r=n?l:l.slice(0,o==null?void 0:o.length),!(r==null?void 0:r.every(p=>o==null?void 0:o.find(h=>p===h))))return D.ElMessage.error("导入的数据表头不匹配");_a(r,a)},Ma=(l,a)=>{var o;De.setRefreshCurStructure(!1),((o=G.value)==null?void 0:o.length)===0||La(l,a)},Pa=(l,a,o,r)=>{const n=[],s=[],c=h=>Object.keys(h).length;for(const h in l)if(l[h]!==void 0){const T=l[h],j=[];for(const[q,y]of Object.entries(T))j.push(y),s.length<c(T)&&s.push(q);n.push(j)}n.unshift(s);const d=te.utils.aoa_to_sheet(n),p=te.utils.book_new();te.utils.book_append_sheet(p,d,r),te.writeFileSync(p,`${a}.xlsx`),Qe.value=[]},jl=async(l,a,o,r=!1,n)=>{var s,c,d,p,h,T,j,q;try{De.setRefreshCurStructure(!1);const y=await D.getInsofDataApi({id:t==null?void 0:t.index});if(((s=y==null?void 0:y.data)==null?void 0:s.code)===200){let _=(h=(p=(d=(c=y==null?void 0:y.data)==null?void 0:c.result)==null?void 0:d[0])==null?void 0:p.value)==null?void 0:h.pageData;r?_={..._,compData:(j=_==null?void 0:_.compData)==null?void 0:j.map(w=>{var R;return(w==null?void 0:w.key)==="header"?{...w,contents:(R=w==null?void 0:w.contents)==null?void 0:R.map(z=>({...z,[l]:o}))}:w})}:_={..._,compData:(T=_==null?void 0:_.compData)==null?void 0:T.map(w=>{var R,z;return(w==null?void 0:w.key)==="header"?{...w,contents:(R=w==null?void 0:w.contents)==null?void 0:R.map(K=>(K==null?void 0:K.prop)===(a==null?void 0:a.prop)?{...K,[l]:o}:K)}:(w==null?void 0:w.key)==="tableToForm"&&n?{...w,contents:(z=w==null?void 0:w.contents)==null?void 0:z.map(K=>(K==null?void 0:K.prop)===(a==null?void 0:a.prop)?{...K,[n]:o}:K)}:w})};const O=await D.updateInsofDataApi({id:t==null?void 0:t.index,value:{pageData:_}});((q=O==null?void 0:O.data)==null?void 0:q.code)===200?(D.ElMessage.success("编辑成功"),De.setRefreshCurStructure(!0)):D.ElMessage.error("编辑响应失败")}}catch(y){D.ElMessage.error(y)}},$a=async(l,a)=>{await jl("label",a,l)},Fa=async(l,a)=>{await jl("columnType",a,l,!1,"type")},Va=()=>{gl.value?He.value=!1:pa()},Ka=l=>{Qe.value=l},za=(l,a)=>{el.value===a?kl.value=!1:kl.value=!0,el.value=a==null?void 0:a.changeProp},ml=e.computed(()=>{var o,r,n;const l=(o=G.value)==null?void 0:o.some(s=>s==null?void 0:s.filterable);return document.documentElement.style.setProperty("--ssTable-header-filter-display",l?"inline-block":"none"),(n=(r=G.value)==null?void 0:r.filter(s=>(s==null?void 0:s.label)!=="操作"))==null?void 0:n.map(s=>({...s,filterable:!!(s!=null&&s.filterable),showSummary:!!(s!=null&&s.showSummary),operable:!!(s!=null&&s.operable)}))}),qa=async(l,a,o)=>{const r=D.cloneDeep(G.value);await e.nextTick(),G.value=r==null?void 0:r.map(n=>(o==null?void 0:o.label)===(n==null?void 0:n.label)?{...n,[a]:l}:n),await jl(a,o,l)},Kl=async(l,a)=>{await jl(a,null,l,!0)},Ra=()=>{Ie.value=!1},Ja=l=>{Z("clickTrigger",l)},Zl=async l=>{var s,c,d,p,h,T,j,q,y,_,O,w,R,z,K;const a=l==null?void 0:l.row,o=l==null?void 0:l.rowData,r=l==null?void 0:l.suffix;if((s=a==null?void 0:a.toString())!=null&&s.includes(".urdf")||l!=null&&l.isUrdf||r!=null&&r.includes(".urdf")){if(a.includes(",")){D.ElMessage.error("当前版本仅允许单个urdf预览!");return}if(H(a)){const B={files:[de(a)],data:{}};Q(B);return}vl.value=[{url:a,extension:xe(a)}],Fe.value=!0,Le.value={data:D.cloneDeep(o)},se.value=!0;return}let n=[];if((c=a==null?void 0:a.toString())!=null&&c.includes(".stl")||(d=a==null?void 0:a.toString())!=null&&d.includes(".STL")||(p=a==null?void 0:a.toString())!=null&&p.includes(".obj")||(h=a==null?void 0:a.toString())!=null&&h.includes(".mtl")){const x=(T=a==null?void 0:a.toString())==null?void 0:T.split(","),B=ke(x),b=B==null?void 0:B[0];if(H(b==null?void 0:b.extension)){Q({files:B,data:{}});return}vl.value=B,Fe.value=!1,se.value=!0;return}if((j=a==null?void 0:a.toString())!=null&&j.includes(".stl")||(q=a==null?void 0:a.toString())!=null&&q.includes(".STL")||(y=a==null?void 0:a.toString())!=null&&y.includes(".obj")||(_=a==null?void 0:a.toString())!=null&&_.includes(".mtl")||r!=null&&r.includes(".stl")||r!=null&&r.includes(".STL")||r!=null&&r.includes(".obj")||r!=null&&r.includes(".mtl")){let x,B=[],b={};if(Array.isArray(a)?x=a:x=a==null?void 0:a.split(","),x==null||x.forEach(N=>{N.includes(".mtl")?B.push(N):b.blob=b.blob?b.blob+","+N:N}),(B==null?void 0:B.length)>0&&(b.mtlBlobs=B),r&&(b.suffix=r),(w=(O=Object.values(b))==null?void 0:O[0])!=null&&w.includes("http:"))n.push(b);else{const N=new Blob([b.blob],{type:"application/octet-stream;charset=UTF-8"});let g=URL.createObjectURL(N),X="";(R=a==null?void 0:a.split("/"))==null||R.forEach((i,P)=>{var J;P===((J=a==null?void 0:a.split("/"))==null?void 0:J.length)-1&&(X=i)}),(z=b.blob)!=null&&z.includes(".stl")&&(X=(X==null?void 0:X.replaceAll(">",""))+".urdf"),ul.value=[{name:X,blobUrl:g}],Me.value=!0}}else{const x=await D.axios.get(a,{responseType:"blob",headers:{"Content-Type":"application/json"}}),B=new Blob([x.data],{type:"application/octet-stream;charset=UTF-8"});let b=URL.createObjectURL(B),N="";if((K=a==null?void 0:a.split("/"))==null||K.forEach((g,X)=>{var i;X===((i=a==null?void 0:a.split("/"))==null?void 0:i.length)-1&&(N=g)}),H(N)){const g=C(N),X=de(a);Q({files:[X],data:{trackFileType:g}});return}ul.value=[{name:N,blobUrl:b}],Me.value=!0}(n==null?void 0:n.length)>0&&$.setBlobUrls(n)},Ll=l=>{var r,n,s,c;if(l!=null&&l.downloadUrl)return l==null?void 0:l.name;const a=(c=(r=l==null?void 0:l.url)==null?void 0:r.split("."))==null?void 0:c[((s=(n=l==null?void 0:l.url)==null?void 0:n.split("."))==null?void 0:s.length)-1];return(l==null?void 0:l.name)+"."+a},Wa=async l=>{let a=null,o=null;if(l!=null&&l.downloadUrl){const n=await zl(),s=Xe.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),c=await D.axios.post(l==null?void 0:l.url,null,{responseType:"blob",headers:{Authorization:n,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}).finally(()=>{s.close()}),d=new Blob([c.data],{type:"application/octet-stream;charset=UTF-8"});a=URL.createObjectURL(d),o=l==null?void 0:l.name}else{const n=await te.downloadAvatarApi({url:l==null?void 0:l.url});!l.url.toUpperCase().includes(".OBJ")&&!l.url.toUpperCase().includes(".STL")&&!l.url.toUpperCase().includes(".MTL")&&!l.url.toUpperCase().includes(".URDF")?(a=URL.createObjectURL(n.data),o=Ll(l)):a=l==null?void 0:l.url}if(H(a)){const n={row:`${a}`,suffix:xe(o)};Zl(n);return}const r={name:o,blobUrl:a};ul.value=[r],Me.value=!0},Ga=async l=>{let a=null,o=null;if(l!=null&&l.downloadUrl){const s=await zl(),c=await D.axios.post(l==null?void 0:l.url,null,{responseType:"blob",headers:{Authorization:s,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}),d=new Blob([c.data],{type:"application/octet-stream;charset=UTF-8"});a=URL.createObjectURL(d),o=l==null?void 0:l.name}else{const s=await te.downloadAvatarApi({url:l==null?void 0:l.url});a=URL.createObjectURL(s.data),o=Ll(l)}const r={name:o,blobUrl:a},n=document.createElement("a");n.href=r.blobUrl,n.download=r.name,n.style.display="none",document.body.appendChild(n),n.click(),setTimeout(()=>{document.body.removeChild(n)},100)},Ha=(l,a)=>{var o;if(Object.values(a).length!==0)return Object.values(a).find(r=>{var n,s,c;return((n=r==null?void 0:r.toString())==null?void 0:n.includes(".txt"))||((s=r==null?void 0:r.toString())==null?void 0:s.includes(".cpt"))||((c=r==null?void 0:r.toString())==null?void 0:c.includes(".obj"))})?[...l,Da.value]:(o=t==null?void 0:t.config)!=null&&o.allowMove?[...l,{label:"迁移"}]:l},Qa=(l,a={})=>[...l==null?void 0:l.values()].filter(o=>Object.keys(a).every(r=>{var c;const n=o[r],s=(c=a[r])==null?void 0:c.toLowerCase();return s&&n&&typeof n=="string"?n.toLowerCase().includes(s):!0})),Il=e.ref([]),Xa=async(l,a,o=!1)=>{var r;if(l){if(De.setTableLoading(!0),Il.value=Object.values(l),l&&((r=Object.values(l))!=null&&r.every(n=>!n)))return ee.value=El.value;if(o){ee.value=[...Al.value.values()].filter(n=>Object.values(n).some(s=>typeof s=="string"?s==null?void 0:s.toLowerCase().includes(a==null?void 0:a.toLowerCase()):!1));return}ee.value=Qa(Al.value,l),De.setTableLoading(!1)}},Ya=async l=>{},ea=async(l,a,o,r)=>{var n,s,c,d,p,h,T,j,q,y,_,O,w,R,z,K,x,B,b,N;if(Z("clickMainKey",o),(r==null?void 0:r.isExistChild)===!0){let g=(n=r==null?void 0:r.columnType)==null?void 0:n.prop,X=r==null?void 0:r.data;if(sl.value=await te.getItemData(ye.value,sessionStorage.getItem("systemKey"),""),!sl.value){let P=(d=(c=(s=ye.value)==null?void 0:s.split("/"))==null?void 0:c.filter((J,v)=>{var A,k;return v!==((k=(A=ye.value)==null?void 0:A.split("/"))==null?void 0:k.length)-1}))==null?void 0:d.join("/");sl.value=await te.getItemData(P,sessionStorage.getItem("systemKey"),"")}let i=(p=sl.value)==null?void 0:p.filter(P=>(P==null?void 0:P.name)===g);sl.value=i==null?void 0:i.map(P=>{var J;return P.compData=(J=P.compData)==null?void 0:J.map(v=>{var A,k;return(v==null?void 0:v.key)==="tableContents"&&(A=v==null?void 0:v.contents)!=null&&A.every(f=>f==null?void 0:f.find(M=>M==null?void 0:M.id))&&(v.contents=(k=v==null?void 0:v.contents)==null?void 0:k.filter(f=>(f==null?void 0:f[1])===X)),v}),P}),Z("routeUrl",sl.value,{isEdit:!0,routerUrl:ye.value});return}if((r==null?void 0:r.data)==="查看"&&(l!=null&&l.every(g=>(g==null?void 0:g.url)&&(g==null?void 0:g.name)))){let g=D.cloneDeep(l);g=await((h=D.cloneDeep(g))==null?void 0:h.map(async i=>{var v,A,k,f;const P=await te.downloadAvatarApi({url:i==null?void 0:i.url});let J=URL.createObjectURL(P.data);return{name:(i==null?void 0:i.name)+"."+((f=(v=i==null?void 0:i.url)==null?void 0:v.split("."))==null?void 0:f[((k=(A=i==null?void 0:i.url)==null?void 0:A.split("."))==null?void 0:k.length)-1]),blobUrl:J}}));let X=await Promise.all(g);ul.value=X,Me.value=!0}if(D.cloneDeep(G.value),(r==null?void 0:r.isMainKey)===!0){Ue.setActiveMenuPath(void 0),De.setRouteToChildPath(void 0),De.setFixMenuStatus(!0);let g=(j=(T=t.itemData)==null?void 0:T.find(i=>(i==null?void 0:i.key)==="contentTableId"))==null?void 0:j.contents,X=(y=(q=t.itemData)==null?void 0:q.find(i=>(i==null?void 0:i.key)==="relatedFilter"))==null?void 0:y.index;if(X!==0){let i=(O=(_=G.value)==null?void 0:_[X])==null?void 0:O.prop;if((o==null?void 0:o[i])===(r==null?void 0:r.data)){let P=await D.getInsofDataApi({id:g}),J=(K=(z=(R=(w=P==null?void 0:P.data)==null?void 0:w.result)==null?void 0:R[0])==null?void 0:z.key)==null?void 0:K.pageKey;Ue.setActiveMenuPath(J+"/"+(r==null?void 0:r.data))}else{let P=await D.getInsofDataApi({key:{pageKey:D.cloneDeep(ye).value+"/"+(r==null?void 0:r.data),systemKey:sessionStorage.getItem("systemKey")}});((B=(x=P==null?void 0:P.data)==null?void 0:x.result)==null?void 0:B.length)>0&&Ue.setActiveMenuPath(D.cloneDeep(ye).value+"/"+(r==null?void 0:r.data))}}else{let i=await D.getInsofDataApi({key:{pageKey:D.cloneDeep(ye).value+"/"+(r==null?void 0:r.data),systemKey:sessionStorage.getItem("systemKey")}});((N=(b=i==null?void 0:i.data)==null?void 0:b.result)==null?void 0:N.length)>0&&Ue.setActiveMenuPath(D.cloneDeep(ye).value+"/"+(r==null?void 0:r.data))}}},Za=()=>{Me.value=!1},Ia=l=>{Z("rowClick",l)};e.watch(()=>t.changedContent,()=>{var o,r;if(!t.changedContent)return;let l=(o=ee.value)==null?void 0:o.map(n=>{var s;return n.id===((s=t.changedContent)==null?void 0:s.id)&&(n={...t.changedContent,id:t.changedContent.newId?t.changedContent.newId:t.changedContent.id},delete n.newId),n});const a=(r=t.itemData)==null?void 0:r.map(n=>((n==null?void 0:n.key)==="tableContents"&&(n.contents=l),n));ee.value=l,Z("contentChange",{contents:a,index:t.index}),Z("change",{content:l,index:t==null?void 0:t.index,buttonName:"",id:t==null?void 0:t.index})},{deep:!0,immediate:!0});const er=()=>{},lr=async()=>{const l=ye.value,a=sessionStorage.getItem("systemKey"),o=await te.getItemData(l,a,""),r=(o==null?void 0:o.find(d=>(d==null?void 0:d.name)==="方法明细"))||(o==null?void 0:o[0]),n=(r==null?void 0:r.compData)||[],s=n==null?void 0:n.find(d=>{const p=d==null?void 0:d.key;return p==="formContent"||p==="tableContents"});return s==null?void 0:s.contents},zl=async()=>`Bearer ${D.Local.get("access-token")}`,ar=async(l,{token:a,inputData:o}={})=>await D.axios.post(l,o,{headers:{Authorization:a}}).catch(n=>(Ue.setImportLoading(!1),Promise.reject(n))),rr=l=>{var r;let a={};const o=[];return a.form={},(r=D.cloneDeep(l))==null||r.forEach((n,s)=>{var c,d,p,h,T,j,q,y,_,O,w,R,z,K;if((n==null?void 0:n.comp)==="Table"){(d=(c=n==null?void 0:n.compData)==null?void 0:c.find(N=>(N==null?void 0:N.key)==="header"))==null||d.contents;let x=(T=(h=(p=n==null?void 0:n.compData)==null?void 0:p.find(N=>(N==null?void 0:N.key)==="tableContents"))==null?void 0:h.contents)==null?void 0:T.map(N=>N.slice(1));(O=(_=(y=(q=(j=n==null?void 0:n.compData)==null?void 0:j.find(N=>(N==null?void 0:N.key)==="header"))==null?void 0:q.contents)==null?void 0:y[0])==null?void 0:_[0])==null||O.label;let B=(R=(w=n==null?void 0:n.compData)==null?void 0:w.find(N=>(N==null?void 0:N.key)==="header"))==null?void 0:R.contents,b=[];x==null||x.forEach(N=>{let g=[];N==null||N.forEach((X,i)=>{var J;let P={};((J=B[i])==null?void 0:J.label)!=="操作"&&(P[B[i].label]=X,g.push(P))}),b.push(g)}),a[n.name]=b}else{const x=(K=(z=n.compData)==null?void 0:z.find(B=>(B==null?void 0:B.key)==="formContent"))==null?void 0:K.contents;x==null||x.forEach(B=>{var b,N;if(B.prop!==""){let g=B==null?void 0:B.value;Array.isArray(g)?g=((b=g==null?void 0:g[0])==null?void 0:b.oldUrl)||"http://222.92.178.198:62001/"+((N=g==null?void 0:g[0])==null?void 0:N.url):g=g.toString(),B={key:(B==null?void 0:B.prop)??(B==null?void 0:B.label),value:g},o.push(B)}})}}),a.form=te.getFormContents(o),a},nr=l=>{const a=[],o=r=>{r&&typeof r=="object"&&!Array.isArray(r)?Object.values(r).forEach(o):a.push(r)};return o(l),a},or=async(l,a,o)=>{var B,b,N,g,X,i,P,J,v,A,k;Ue.setImportLoading(!0),De.setFreshContent(!1);let r=await lr().catch(f=>(Ue.setImportLoading(!1),Promise.reject(f)));r=r==null?void 0:r.filter(f=>{var M;return((M=f==null?void 0:f.find(E=>E==null?void 0:E.id))==null?void 0:M.id)===(a==null?void 0:a.id)});let n=te.getEqualChild([(B=G.value)==null?void 0:B.filter(f=>(f==null?void 0:f.label)!=="操作")]);const s=(N=(b=te.tableToForm(r,n))==null?void 0:b[0])==null?void 0:N.find(f=>{const M=f==null?void 0:f.key;return M==="Interface"||M==="方法体"}),c=s==null?void 0:s.value;if(!c){console.log("未搜索到isMain, 缺少算法执行接口"),Ue.setImportLoading(!1);return}const d=G.value?te.getEqualChild([G.value]):[],p=d.find(f=>{const M=f==null?void 0:f.prop;return M==="Input1"||M==="输入数据.输入1"||M==="样本输入数据"}),h=p==null?void 0:p.prop;let T=a==null?void 0:a[h];const j=await zl().catch(f=>(Ue.setImportLoading(!1),Promise.reject(f)));let q=!0,y="";(g=G.value)==null||g.forEach(f=>{(f==null?void 0:f.prop)===h&&(q=!!(f!=null&&f.childPath),y=f==null?void 0:f.childPath)});let _="";if(q){let f=(i=(X=G.value)==null?void 0:X.find(S=>(S==null?void 0:S.isMainKey)===!0))==null?void 0:i.prop;_=a==null?void 0:a[f];let M=y==null?void 0:y.split(Ee),E=[];M==null||M.forEach((S,U)=>{(M==null?void 0:M.length)-1===U&&E.push(_),E.push(S)}),E=E==null?void 0:E[0];let ae=await te.getItemData(E,sessionStorage.getItem("systemKey"),""),Y=ae==null?void 0:ae.filter(S=>(S==null?void 0:S.name)===h);Y=Y==null?void 0:Y.map(S=>{var U;return S.compData=(U=S==null?void 0:S.compData)==null?void 0:U.map(V=>{var oe;return(V==null?void 0:V.key)==="tableContents"&&(V.contents=(oe=V==null?void 0:V.contents)==null?void 0:oe.filter(W=>(W==null?void 0:W[1])===(a==null?void 0:a[h]))),V}),S}),(!Y||(Y==null?void 0:Y.length)===0)&&(Y=ae,Y=Y==null?void 0:Y.map(S=>{var U;return S.compData=(U=S==null?void 0:S.compData)==null?void 0:U.map(V=>{var oe;return(V==null?void 0:V.key)==="tableContents"&&(V.contents=(oe=V==null?void 0:V.contents)==null?void 0:oe.filter(W=>{var ie,m;return(W==null?void 0:W[1])===(a==null?void 0:a[(m=(ie=G==null?void 0:G.value)==null?void 0:ie[0])==null?void 0:m.prop])})),V}),S})),T=rr(Y)}const O=await ar(c,{token:j,inputData:T}).catch(f=>(Ue.setImportLoading(!1),Promise.reject(f))),w=(P=O==null?void 0:O.data)==null?void 0:P.data,R=d.find(f=>(f==null?void 0:f.prop)==="Output1"),z=R==null?void 0:R.prop;let K=[],x=[];if(w&&((J=Object.values(w))==null?void 0:J.length)>0){let f=[];const M=new FormData,E=(v=nr(w))==null?void 0:v.map(async Y=>{var S,U;if(!Array.isArray(Y)&&(Y!=null&&Y.includes("http"))){let V=await D.axios.get(Y,{responseType:"blob"}),oe=(U=Y==null?void 0:Y.split("/"))==null?void 0:U[((S=Y==null?void 0:Y.split("/"))==null?void 0:S.length)-1];M.append("files",V.data,oe)}else f.push(Y)});if(await Promise.all(E),!te.isFormDataEmpty(M)){let Y=await te.uploadAmountApi(M),S=(k=(A=Y==null?void 0:Y.data)==null?void 0:A.result)==null?void 0:k.map(U=>{var V,oe,W,ie,m,u;return{name:(u=(m=(ie=(V=U==null?void 0:U.url)==null?void 0:V.split("/"))==null?void 0:ie[((W=(oe=U==null?void 0:U.url)==null?void 0:oe.split("/"))==null?void 0:W.length)-1])==null?void 0:m.split("."))==null?void 0:u[0],url:U==null?void 0:U.url}});f=[...f,...S]}let ae={};for(let Y in a)Y!=="id"&&(ae[Y]=a[Y]);ae[z]=f,x.push({id:a==null?void 0:a.id,value:{tableData:ae}})}(x==null?void 0:x.length)>0&&await D.batchUpdateInsofDataApi({dataList:x}),(K==null?void 0:K.length)>0&&await D.batchAddInsofDataApi({dataList:K}),xl(!0),Ue.setImportLoading(!1),De.setFreshContent(!0)},la=(l,a)=>(l=l==null?void 0:l.map(o=>{var r,n;return o!=null&&o.children&&((r=o.children)!=null&&r.find(s=>s.id===(a==null?void 0:a.id))?o.children=(n=o.children)==null?void 0:n.filter(s=>(s==null?void 0:s.id)!==(a==null?void 0:a.id)):o.children=la(o.children,a)),o}),l),Te=e.reactive({title:"迁移至",show:!1,width:"20%",selectRow:null,from:t==null?void 0:t.index,to:null,contents:[],formRules:{groupName:[{required:!0,message:"输入不能为空",trigger:"blur"},{validator:(l,a,o)=>{a===(t==null?void 0:t.index)?o(new Error("选择源不能和目标源一致")):o()}}]},buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"确认",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]}),ir=()=>{Te.show=!1},tr=l=>{var a,o;if((l==null?void 0:l.buttonName)==="取消")return Te.show=!1;Te.to=l==null?void 0:l.content,!(!(t!=null&&t.index)||!((a=Te.to)!=null&&a.groupName))&&(t==null?void 0:t.index)!==((o=Te.to)==null?void 0:o.groupName)&&(Z("change",{buttonName:"迁移",value:{from:Te.from,to:Te.to,data:Te.selectRow}}),Te.show=!1)},Ml=async(l,a,o)=>{var r,n,s,c,d,p,h,T,j,q,y,_,O,w,R;if(Ze.value="",_l.value=!0,Bl.value=!0,Z("onButtonClick",l,a),l==="删除")Pl.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var z,K;(z=ee.value)!=null&&z.find(x=>(x==null?void 0:x.id)===(a==null?void 0:a.id))?ee.value=(K=D.cloneDeep(ee.value))==null?void 0:K.filter(x=>(x==null?void 0:x.id)!==(a==null?void 0:a.id)):ee.value=la(D.cloneDeep(ee.value),a),Qr(Ul.value,bl.value,a==null?void 0:a.id),De.setTableLoading(t==null?void 0:t.index),Z("change",{content:ee.value,singleContent:a,index:t==null?void 0:t.index,type:"delete",buttonName:l,column:G.value})});else if(l==="批量删除"){if(((r=Qe.value)==null?void 0:r.length)===0)return D.ElMessage.warning("请先勾选操作的数据");Pl.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var K,x;const z=(K=Qe.value)==null?void 0:K.map(B=>B.id);ee.value=(x=D.cloneDeep(ee.value))==null?void 0:x.filter(B=>!(z!=null&&z.includes(B.id))),De.setTableLoading(t==null?void 0:t.index),Z("change",{content:ee.value,singleContent:null,selectItems:Qe.value,index:t==null?void 0:t.index,type:"batchDelete",buttonName:l,column:G.value})})}else if(l==="复制新增"){We.value="新增";const z=D.cloneDeep(a),K=(n=G.value)==null?void 0:n.find(b=>b==null?void 0:b.isMainKey),x=K||((s=G.value)==null?void 0:s[0]),B=(c=il.value)==null?void 0:c.find(b=>(b==null?void 0:b.label)==="新建");await ra(!0,B,{data:z,firstCol:x})}else if(l==="新增")We.value="新增",Cl(""),Ie.value=!0;else if(l==="编辑")We.value="编辑",Cl(a),Ie.value=!0;else if(l==="查看")We.value="查看",Cl(a),_l.value=!1,Bl.value=!1,Ie.value=!0;else if(l==="查看三维模型"){const z={};for(let x in a)x!=="id"&&(z[x]=a[x]);let K=(d=Object.values(z))==null?void 0:d[1];xa.setTableShowThree(K)}else if(((p=o==null?void 0:o.extra)==null?void 0:p.type)==="modelExample")We.value=l,wl.value=!0;else if(l==="新建"){let z=cl.value,K=[];for(let g in z)g!=null&&g.includes(`loading${((h=fl.value)==null?void 0:h.account)||((T=fl.value)==null?void 0:T.账号)}`)&&(K=[...K,...g]);let x=[];for(let g in z)g!=null&&g.includes(`updateLoading${((j=fl.value)==null?void 0:j.account)||((q=fl.value)==null?void 0:q.账号)}`)&&(x=[...x,...g]);let B=K==null?void 0:K.map(g=>g==null?void 0:g.id);const b=x==null?void 0:x.map(g=>g==null?void 0:g.id);B=[...D.cloneDeep(B),...b],(B==null?void 0:B.length)>0&&(B!=null&&B.every(g=>g!==null&&g))&&await D.batchDeleteInsofDataApi({ids:B});const N=(y=il.value)==null?void 0:y.find(g=>(g==null?void 0:g.label)==="新建");await ra(!1,N)}else if(l==="修改模板"){let z=D.cloneDeep(ye).value;De.setRouteToChildPath(z),Ue.setActiveMenuPath(z+Ee)}else if(l==="执行")or(l,a);else if(l!=null&&l.includes("导出")){if(l==="导出选中"&&((_=Qe.value)==null?void 0:_.length)===0)return D.ElMessage.warning(`请先勾选${l}的数据`);if(l==="导出全部"&&((O=ee.value)==null?void 0:O.length)===0)return D.ElMessage.warning("暂无数据导出");const z=(R=(w=G.value)==null?void 0:w.map(x=>x==null?void 0:x.label))==null?void 0:R.filter(x=>x!=="操作"),K=l==="导出全部"?D.cloneDeep(ee.value):D.cloneDeep(Qe.value);K==null||K.forEach(x=>{x==null||delete x.id}),Pa(K,t==null?void 0:t.compName,z,t==null?void 0:t.compName)}else l==="迁移"&&(Te.selectRow=a,Te.show=!0)},sr=async l=>{var o,r,n,s,c,d;const a=await D.getInsofDataApi({key:{pageKey:l,type:"structure",systemKey:sessionStorage.getItem("systemKey")}});if(((o=a==null?void 0:a.data)==null?void 0:o.code)===200)return Array.isArray((r=a==null?void 0:a.data)==null?void 0:r.result)&&((s=(n=a==null?void 0:a.data)==null?void 0:n.result)==null?void 0:s.length)>0?(d=(c=a==null?void 0:a.data)==null?void 0:c.result)==null?void 0:d.map(p=>{var h;return{id:p==null?void 0:p.id,...(h=p==null?void 0:p.value)==null?void 0:h.pageData}}):[]},ur=async(l,a)=>{var o,r,n,s,c,d,p,h,T,j,q,y,_,O,w,R,z,K,x,B;try{let b,N;const g=(o=cl.value[ye.value+Ee])==null?void 0:o.filter(f=>{var M;return((M=f==null?void 0:f.key)==null?void 0:M.type)==="structureMethod"}),X=(r=cl.value[ye.value+Ee])==null?void 0:r.filter(f=>{var M;return((M=f==null?void 0:f.key)==null?void 0:M.type)==="structure"}),i=g==null?void 0:g.find(f=>{var M,E;return((E=(M=f==null?void 0:f.value)==null?void 0:M.pageData)==null?void 0:E.method)==="保存"});if(!i)return;const P=(d=(c=cl.value[(s=(n=i==null?void 0:i.value)==null?void 0:n.pageData)==null?void 0:s.path])==null?void 0:c.filter(f=>{var M;return((M=f==null?void 0:f.key)==null?void 0:M.type)==="data"}))==null?void 0:d.find(f=>{var M,E,ae,Y;return((E=(M=f==null?void 0:f.value)==null?void 0:M.tableData)==null?void 0:E.算法名称)===((Y=(ae=i==null?void 0:i.value)==null?void 0:ae.pageData)==null?void 0:Y.method)});if(!P)return;const J={buttonName:(h=(p=i==null?void 0:i.value)==null?void 0:p.pageData)==null?void 0:h.method,api:(j=(T=P==null?void 0:P.value)==null?void 0:T.tableData)==null?void 0:j.算法体,content:X==null?void 0:X.map(f=>{var M;return(M=f==null?void 0:f.value)==null?void 0:M.pageData}),extraContent:[],extraValues:(y=(q=i==null?void 0:i.value)==null?void 0:q.pageData)==null?void 0:y.data,methodName:(O=(_=i==null?void 0:i.value)==null?void 0:_.pageData)==null?void 0:O.path};if(!l)return;const v={...l,compData:(w=l==null?void 0:l.compData)==null?void 0:w.map(f=>{var M;return(f==null?void 0:f.key)==="formContent"?{...f,contents:(M=f==null?void 0:f.contents)==null?void 0:M.map(E=>(E==null?void 0:E.prop)===a?{...E,value:""}:E)}:f})},A={key:{pageKey:ye.value+Ee,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),type:"structure"},value:{pageData:v}},k=await D.axios.post(J.api,A,{headers:{"Content-Type":"application/json"}});return((R=k==null?void 0:k.data)==null?void 0:R.code)===200&&(b=(K=(z=k==null?void 0:k.data)==null?void 0:z.result)==null?void 0:K.latestReportCode,N=(B=(x=k==null?void 0:k.data)==null?void 0:x.result)==null?void 0:B.status),{newMainKeyValue:b,newStatus:N}}catch(b){throw D.ElMessage.error(b),new Error(b)}},aa=(l,a,o,r)=>{var n;Z("contentChange",{contents:(n=l==null?void 0:l.compData)==null?void 0:n.map(s=>{var c;return(s==null?void 0:s.key)==="formContent"?{...s,contents:(c=s==null?void 0:s.contents)==null?void 0:c.map(d=>(d==null?void 0:d.key)===a?{...d,value:o}:Sl.value&&(d==null?void 0:d.prop)===Sl.prop?{...d,value:Sl.value}:d)}:s}),index:l==null?void 0:l.id},r)},Sl=e.reactive({prop:"状态",value:""}),cr=e.ref(["系统自动生成信息","审批意见"]),dr=async(l,a,o)=>{var p,h;let r=l==null?void 0:l[a==null?void 0:a.prop],n=1,s,c;const d=D.cloneDeep(ye).value+Ee+r;if(d){Sl.value="",s=(p=cl.value[d])==null?void 0:p.filter(q=>{var y;return((y=q==null?void 0:q.key)==null?void 0:y.type)==="structure"});const T=s==null?void 0:s.find(q=>{var y,_,O;return((O=(_=(y=q==null?void 0:q.value)==null?void 0:y.pageData)==null?void 0:_.comp)==null?void 0:O.toUpperCase())==="FORM"});c={...(h=T==null?void 0:T.value)==null?void 0:h.pageData,id:T==null?void 0:T.id};const j=await ur(c,a==null?void 0:a.prop);if(Sl.value=j==null?void 0:j.newStatus,j!=null&&j.newMainKeyValue)return j==null?void 0:j.newMainKeyValue}if(ee.value.some(T=>(T==null?void 0:T[a==null?void 0:a.prop])===r)){const T=r;for(;ee.value.some(j=>(j==null?void 0:j[a==null?void 0:a.prop])===`${T}(${n})`);)n++;r=`${T}(${n})`}return r},ra=async(l,a,o)=>{var c,d,p,h,T,j,q,y;let r,n;const s=await dr(o==null?void 0:o.data,o==null?void 0:o.firstCol);if(l?(r=D.cloneDeep(ye).value+Ee+((h=o==null?void 0:o.data)==null?void 0:h[(p=o==null?void 0:o.firstCol)==null?void 0:p.prop]),n=D.cloneDeep(ye).value+Ee+s):(r=D.cloneDeep(ye).value+Ee,n=D.cloneDeep(r)+`loading${((c=fl.value)==null?void 0:c.account)||((d=fl.value)==null?void 0:d.账号)}`),a){const _=(j=(T=cl.value[n])==null?void 0:T.filter(O=>{var w;return((w=O==null?void 0:O.key)==null?void 0:w.parentTable)===""}))==null?void 0:j.map(O=>{var w;return{id:O==null?void 0:O.id,...(w=O==null?void 0:O.value)==null?void 0:w.pageData}});if((_==null?void 0:_.length)>0)if(l){const O=_==null?void 0:_.find(w=>{var R;return((R=w==null?void 0:w.comp)==null?void 0:R.toUpperCase())==="FORM"});O&&aa(O,(q=o==null?void 0:o.firstCol)==null?void 0:q.label,s,ye.value)}else De.setRouteToChildPath(D.cloneDeep(ye).value),Ue.setActiveMenuPath(n);else if(await te.loadingConstruct(r,n,null,null,l?cr.value:null),l){const O=await sr(n);if((O==null?void 0:O.length)>0){const w=O==null?void 0:O.find(R=>{var z;return((z=R==null?void 0:R.comp)==null?void 0:z.toUpperCase())==="FORM"});w&&aa(w,(y=o==null?void 0:o.firstCol)==null?void 0:y.label,s,ye.value)}}else De.setRouteToChildPath(D.cloneDeep(ye).value),Ue.setActiveMenuPath(n)}else l?(Ze.value="",Pe.value=o==null?void 0:o.data,xl(!0,o==null?void 0:o.firstCol,s)):(De.setRouteToChildPath(D.cloneDeep(ye).value),Ue.setActiveMenuPath(n))},pr=()=>{se.value=!1,vl.value=[],Fe.value=!1},Cl=l=>{var c,d,p,h,T,j,q,y,_,O,w,R,z,K,x,B,b,N,g,X;const a=[];let o=[];for(let i in l)Array.isArray(l==null?void 0:l[i])&&o.push(i);qe.value=D.cloneDeep(G.value),(d=te.getColumnChild((c=D.cloneDeep(G.value))==null?void 0:c.filter(i=>(i==null?void 0:i.label)!=="操作")))==null||d.forEach((i,P)=>{var J;o.find(v=>v===(i==null?void 0:i.prop))||(i!=null&&i.formType&&((J=i==null?void 0:i.formType)==null?void 0:J.toUpperCase())==="SELECT"||i!=null&&i.menuId?a.push({label:(i==null?void 0:i.label)||(i==null?void 0:i.prop)||"",name:(i==null?void 0:i.prop)??"t"+P,prop:i==null?void 0:i.prop,type:"Select",value:(l==null?void 0:l[i==null?void 0:i.prop])??(i==null?void 0:i.value)??"",id:(i==null?void 0:i.id)??P,contents:(i==null?void 0:i.options)??[],width:1,isFormColHidden:i==null?void 0:i.isFormColHidden,relatedValueId:i==null?void 0:i.relatedValueId,disabled:i==null?void 0:i.disabled,optionUrl:{groupSelect:i==null?void 0:i.groupSelect,menuSelect:i==null?void 0:i.formMenuSelect,type:"Select",selectRelateType:i==null?void 0:i.selectRelateType,allSelectionContents:(i==null?void 0:i.allSelectionContents)??[],selectFilter:i==null?void 0:i.selectFilter,menuId:i==null?void 0:i.menuId,filterContent:i==null?void 0:i.filterContent}}):a.push({label:(i==null?void 0:i.label)||(i==null?void 0:i.prop)||"",prop:i==null?void 0:i.prop,name:(i==null?void 0:i.prop)??"t"+P,type:!(i!=null&&i.formType)||(i==null?void 0:i.formType)===""?"Input":i==null?void 0:i.formType,value:(l==null?void 0:l[i==null?void 0:i.prop])??(i==null?void 0:i.value)??"",id:(i==null?void 0:i.id)??P,contents:(i==null?void 0:i.options)??[],width:1,isFormColHidden:i==null?void 0:i.isFormColHidden,disabled:i==null?void 0:i.disabled,relatedValueId:i==null?void 0:i.relatedValueId}))}),l===""||!l||(Ze.value=(l==null?void 0:l.id)??"");let r=te.getColumnChild((p=D.cloneDeep(G.value))==null?void 0:p.filter(i=>(i==null?void 0:i.label)!=="操作"));Re.value&&((h=Re.value)==null?void 0:h.length)>0&&(Re.value=(T=D.cloneDeep(Re).value)==null?void 0:T.map(i=>{var J;let P=(i==null?void 0:i.prop)||((J=r==null?void 0:r.find(v=>(v==null?void 0:v.label)===(i==null?void 0:i.label)))==null?void 0:J.prop);return P&&(i.value=l[P]),i})),we.value=Re.value&&((j=Re.value)==null?void 0:j.length)>0?te.getTableFormToForm(Re.value):a;let n=[],s=(q=t.itemData)==null?void 0:q.filter(i=>(i==null?void 0:i.key)==="filterAllType");if((s==null?void 0:s.length)>0&&(n=(s==null?void 0:s.map(P=>P==null?void 0:P.value)).flat()),(n==null?void 0:n.length)>0){let i=n==null?void 0:n.find(J=>{var v;return(v=J==null?void 0:J.content)==null?void 0:v.includes("@Select")});if(i!=null&&i.content){let J=(O=(_=(y=i==null?void 0:i.content)==null?void 0:y.replace(":",Ye))==null?void 0:_.split(Ye))==null?void 0:O[1];if(((w=J==null?void 0:J.trim())==null?void 0:w.toUpperCase())==="MANUAL"){let v=(B=(x=(R=t.itemData)==null?void 0:R.filter(A=>(A==null?void 0:A.key)==="contentTableId"))==null?void 0:x[((K=(z=t.itemData)==null?void 0:z.filter(A=>(A==null?void 0:A.key)==="contentTableId"))==null?void 0:K.length)-1])==null?void 0:B.contents;we.value=(b=we.value)==null?void 0:b.map((A,k)=>{var f,M,E,ae,Y,S,U,V,oe,W,ie;return(f=A==null?void 0:A.optionUrl)!=null&&f.menuId&&(A.type="Select",(M=A==null?void 0:A.optionUrl)!=null&&M.menuId?(A.optionUrl.menuId=v,A.optionUrl.menuFilter=n,A.optionUrl.multiple=(Y=(ae=(E=n==null?void 0:n.find(m=>{var u;return(u=m==null?void 0:m.content)==null?void 0:u.includes("@Num")}))==null?void 0:E.content)==null?void 0:ae.split(":"))!=null&&Y[1]&&parseInt((V=(U=(S=n==null?void 0:n.find(m=>{var u;return(u=m==null?void 0:m.content)==null?void 0:u.includes("@Num")}))==null?void 0:S.content)==null?void 0:U.split(":"))==null?void 0:V[1])>1?!0:void 0,A.optionUrl.multipleLimit=(ie=(W=(oe=n==null?void 0:n.find(m=>{var u;return(u=m==null?void 0:m.content)==null?void 0:u.includes("@Num")}))==null?void 0:oe.content)==null?void 0:W.split(":"))==null?void 0:ie[1]):A.optionUrl={menuId:v,menuFilter:n}),A})}}let P=(N=we.value)==null?void 0:N.filter(J=>{var v,A;return((v=J==null?void 0:J.optionUrl)==null?void 0:v.menuId)&&((A=J==null?void 0:J.optionUrl)==null?void 0:A.menuId)!==""});if((P==null?void 0:P.length)>1){let J=P==null?void 0:P.map(f=>f==null?void 0:f.prop),v=P==null?void 0:P.map(f=>f==null?void 0:f.label),A=P==null?void 0:P.map(f=>f==null?void 0:f.value),k=(g=D.cloneDeep(P))==null?void 0:g[0];k.label=v==null?void 0:v.join("·"),k.value=A==null?void 0:A.join(" "),k.value.trim()===""&&(k.value=""),k.prop=J==null?void 0:J.join("·"),k.usingType="parent",we.value.unshift(k),we.value=(X=we.value)==null?void 0:X.map(f=>(J!=null&&J.find(M=>M===(f==null?void 0:f.prop))&&(f.isFormColHidden=!0),f))}}},fr=()=>{var a;const l=(a=L.value)==null?void 0:a.$el;l&&te.Sortable.create(l,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:o=>{var c;const{oldIndex:r,newIndex:n}=o;if(r===n)return;const s=ml.value.splice(r,1)[0];ml.value.splice(n,0,s),G.value=(c=G.value)==null?void 0:c.slice().sort((d,p)=>{if(d.label==="操作")return 1;if(p.label==="操作")return-1;const h=ml.value.findIndex(j=>j.label===d.label),T=ml.value.findIndex(j=>j.label===p.label);return h-T})}})};e.onMounted(()=>{Fl.value=window.innerWidth-240*2});const hr=()=>{e.nextTick(()=>{fr()})},ql=(l,a)=>{var r;if(!l&&!(l!=null&&l.children))return{contents:l,currentSelectContents:void 0};let o;return l.children=(r=l.children)==null?void 0:r.map(n=>{var s,c;if((n==null?void 0:n.id)===Ze.value){let d={};for(let p in n){let h=(s=a==null?void 0:a.find(T=>(T==null?void 0:T.prop)===p))==null?void 0:s.label;h?d[p]=(c=Pe.value)==null?void 0:c[h]:d[p]=n[p]}n=Object.assign(d,Pe.value),o=n}else{let d=ql(n,a);n=d==null?void 0:d.contents,o=d==null?void 0:d.currentSelectContents}return n}),{contents:l,currentSelectContents:o}},na=(l,a)=>{let o,r;return l!=null&&l.find(n=>(n==null?void 0:n.id)===Ze.value)?o=l==null?void 0:l.map(n=>{var s,c;if((n==null?void 0:n.id)===Ze.value){let d={};for(let p in n){let h=(s=a==null?void 0:a.find(T=>(T==null?void 0:T.prop)===p))==null?void 0:s.label;h?d[p]=(c=Pe.value)==null?void 0:c[h]:d[p]=n[p]}n=Object.assign(d,Pe.value),r=n}return n}):o=l==null?void 0:l.map(n=>{var s,c,d,p;if((n==null?void 0:n.id)===Ze.value){let h={};for(let T in n){let j=(s=a==null?void 0:a.find(q=>(q==null?void 0:q.prop)===T))==null?void 0:s.label;j?h[T]=(c=Pe.value)==null?void 0:c[j]:h[T]=n[T]}n=Object.assign(h,Pe.value),r=n}else n=(d=ql(n,a))==null?void 0:d.contents,r=(p=ql(n,a))==null?void 0:p.currentSelectContents;return n}),{newContents:o,currentSelectContents:r}},oa=(l,a,o)=>{var r,n;return l[a==null?void 0:a.prop]=o,typeof l.id=="number"&&(l.id=(r=l.id)==null?void 0:r.toString()),l.children&&((n=l.children)==null?void 0:n.length)>0&&(l.children=l.children.map(oa)),l},Rl=l=>{var o;const a=[];return a.push({...l}),l!=null&&l.children&&Array.isArray(l.children)&&((o=l.children)==null||o.forEach(r=>{a.push(...Rl(r))})),(a==null?void 0:a.length)>0?a==null?void 0:a.map(r=>{const n={...r};return delete n.children,n}):[]},xl=(l=!0,a,o)=>{var h,T,j,q,y,_,O,w,R,z,K,x,B,b,N,g,X,i,P,J,v,A,k,f,M,E,ae,Y,S;let r=te.getColumnChild((h=D.cloneDeep(G.value))==null?void 0:h.filter(U=>(U==null?void 0:U.label)!=="操作")),n,s=D.cloneDeep(ee.value);if(!Pe.value){Ie.value=!1;return}if(Ze.value===""){dl.value++;let U;a&&o?U={id:dl.value.toString(),[a==null?void 0:a.prop]:o,children:Pe.value.children}:U={id:dl.value.toString()},U!=null&&U.children&&(U={...U,children:(T=U.children)==null?void 0:T.map(V=>oa(V,a,o))}),s.push(Object.assign(Pe.value,U)),n=Object.assign(Pe.value,U)}else s=(j=na(s,r))==null?void 0:j.newContents,n=(q=na(s,r))==null?void 0:q.currentSelectContents;const c=(y=t.itemData)==null?void 0:y.filter(U=>(U==null?void 0:U.key)==="childTree")[0];if(((_=c==null?void 0:c.contents)==null?void 0:_.length)>0){We.value="编辑";const U=[];s==null||s.forEach((V,oe)=>{var ie;let W={};if(Array.isArray(V)){let m=[];V==null||V.filter(u=>!(u!=null&&u.id)).forEach((u,ue)=>{var fe,ne,me,Ce,je,Ve,Ne;if((ne=(fe=Ge.value)==null?void 0:fe[ue])!=null&&ne.prop&&!Array.isArray(u)){let Oe={};Oe[Ge.value[ue].column]=u,be!=null&&be.value&&((me=be==null?void 0:be.value)==null?void 0:me.length)>0&&((Ce=be==null?void 0:be.value)!=null&&Ce.find(_e=>JSON.stringify(_e==null?void 0:_e[0])===JSON.stringify(Oe)))&&(m=(je=be==null?void 0:be.value)==null?void 0:je.find(_e=>JSON.stringify(_e==null?void 0:_e[0])===JSON.stringify(Oe))),m&&m.length>0?W[Ge.value[ue].prop]=m!=null&&m.find(_e=>{var Ke;return((Ke=Object.keys(_e))==null?void 0:Ke[0])===Ge.value[ue].column})?(Ve=m==null?void 0:m.find(_e=>{var Ke;return((Ke=Object.keys(_e))==null?void 0:Ke[0])===Ge.value[ue].column}))==null?void 0:Ve[Ge.value[ue].column]:u:W[Ge.value[ue].prop]=u}else Array.isArray(u)&&((Ne=Ge.value[ue])!=null&&Ne.prop?W[Ge.value[ue].prop]=u:W.children=Gl(u,Ge.value))})}else W=V;Array.isArray(V)&&V.some(m=>m==null?void 0:m.id)?U.push(Object.assign(W,{id:(ie=V==null?void 0:V.find(m=>m.id))==null?void 0:ie.id})):W.id?U.push(W):U.push(Object.assign(W,{id:oe.toString()}))}),ee.value=ca(U,c,G.value)}else ee.value=s;sa(ee.value),Ul.value=ee.value;const d=Yr(Ul.value,bl.value,s);let p=[];if(gl.value?(p=(O=D.cloneDeep(gl).value.singleContent)==null?void 0:O.filter(U=>(U==null?void 0:U.id)!==(n==null?void 0:n.id)),p.push(n)):p=[n],He.value){const U={content:d,singleContent:((w=c==null?void 0:c.contents)==null?void 0:w.length)>0?p==null?void 0:p.flatMap(Rl):p,index:t==null?void 0:t.index,buttonName:"编辑",column:G.value,parentTableId:t==null?void 0:t.parentTableId};De.setCacheUpdatingData(U)}if(l){let U=(x=(K=(z=(R=t.itemData)==null?void 0:R.find(W=>(W==null?void 0:W.key)==="filterAllType"))==null?void 0:z.value)==null?void 0:K.find(W=>(W==null?void 0:W.value)==="onConditionContents"))==null?void 0:x.content,V=(B=t.itemData)==null?void 0:B.filter(W=>(W==null?void 0:W.key)==="filterAllType");V=[].concat(...V.map(W=>W.value));const oe={content:d,singleContent:((b=c==null?void 0:c.contents)==null?void 0:b.length)>0?Rl(n):n,index:t==null?void 0:t.index,buttonName:We.value,column:G.value,parentTableId:t==null?void 0:t.parentTableId,filter:U,allFilter:V,pathIndex:(g=(N=t.itemData)==null?void 0:N.find(W=>(W==null?void 0:W.key)==="relatedFilter"))==null?void 0:g.index};De.setTableLoading(t==null?void 0:t.index),Ie.value=!1,Pe.value=void 0,Z("change",oe)}if((P=(i=(X=we.value)==null?void 0:X[0])==null?void 0:i.optionUrl)!=null&&P.menuId){Ie.value=!1;let U=(J=t.itemData)==null?void 0:J.filter(V=>(V==null?void 0:V.key)==="filterAllType");if((U==null?void 0:U.length)>0){let V=U==null?void 0:U.map(ie=>ie==null?void 0:ie.value),oe=(k=(A=(v=V.flat().find(ie=>{var m;return(m=ie==null?void 0:ie.content)==null?void 0:m.includes("@Num")}))==null?void 0:v.content)==null?void 0:A.split(":"))==null?void 0:k[1];((E=(M=(f=V.flat().find(ie=>{var m;return(m=ie==null?void 0:ie.content)==null?void 0:m.includes("@Select:")}))==null?void 0:f.content)==null?void 0:M.split(":"))==null?void 0:E[1])!=="Manual"&&(oe=parseInt(oe),ee.value=(S=ee.value)==null?void 0:S.slice(((ae=ee.value)==null?void 0:ae.length)-oe,(Y=ee.value)==null?void 0:Y.length))}}};e.onUnmounted(()=>{G.value=[],ee.value=[],qe.value=[],Be.value=[],Re.value=[],ol.value=[],vl.value=[],pl.value=[],we.value=[],Qe.value=[],L.value=null});const ia=async(l,a,o)=>{var h,T,j,q,y,_,O,w,R,z,K;el.value=o==null?void 0:o.prop;const r=D.cloneDeep(t.itemData),n=r==null?void 0:r.map(x=>{var B;return(x==null?void 0:x.key)==="header"&&((B=x.contents)==null||B.map((b,N)=>{var g,X,i,P,J,v,A,k,f,M,E,ae,Y,S,U,V,oe,W,ie;return b.type=b!=null&&b.type?b.type:(P=(i=(X=(g=b==null?void 0:b.key)==null?void 0:g.split("$"))==null?void 0:X[1])==null?void 0:i.split("("))!=null&&P[0]?(v=(J=te.FormType)==null?void 0:J.find(m=>{var u,ue,fe,ne;return(m==null?void 0:m.key)===((ne=(fe=(ue=(u=b==null?void 0:b.key)==null?void 0:u.split("$"))==null?void 0:ue[1])==null?void 0:fe.split("("))==null?void 0:ne[0])}))==null?void 0:v.value:"Input",b.options=b!=null&&b.options?b.options:((f=(k=(A=b==null?void 0:b.key)==null?void 0:A.split("$"))==null?void 0:k[1])==null?void 0:f.length)>0?(Y=(ae=Wl((E=(M=b==null?void 0:b.key)==null?void 0:M.split("$"))==null?void 0:E[1]))==null?void 0:ae.split(","))==null?void 0:Y.map(m=>({label:m,value:m})):[],(S=b==null?void 0:b.key)!=null&&S.includes("$")&&(b.key=(V=(U=b==null?void 0:b.key)==null?void 0:U.split("$"))==null?void 0:V[0]),b.value=(oe=Object.values(a))==null?void 0:oe[N],b.optionUrl=b!=null&&b.formMenuSelect&&((W=b==null?void 0:b.formMenuSelect)==null?void 0:W.length)>0?{groupSelect:(ie=b==null?void 0:b.groupSelect)==null?void 0:ie.split(/[::]/).map(m=>m.trim()),menuSelect:b==null?void 0:b.formMenuSelect,selectRelateType:"",type:(b==null?void 0:b.formType)??(b!=null&&b.groupSelect?"Select":"")}:null,b})),x});let s=D.cloneDeep(we.value),c=(T=(h=D.cloneDeep(n))==null?void 0:h.find(x=>(x==null?void 0:x.key)==="header"))==null?void 0:T.contents;s=s==null?void 0:s.map(x=>{var B;return x.value=(B=c==null?void 0:c.find((b,N)=>N===(x==null?void 0:x.id)))==null?void 0:B.value,x});let d="",p=(y=(q=(j=D.cloneDeep(n))==null?void 0:j.find(x=>(x==null?void 0:x.key)==="header"))==null?void 0:q.contents)==null?void 0:y.find((x,B)=>{var b,N,g;return(x==null?void 0:x.label)===el.value||(B==null?void 0:B.toString())===((g=(N=(b=el.value)==null?void 0:b.split("a"))==null?void 0:N[1])==null?void 0:g.toString())});if((w=(O=(_=D.cloneDeep(n))==null?void 0:_.find(x=>(x==null?void 0:x.key)==="header"))==null?void 0:O.contents)==null||w.forEach(x=>{var B,b,N,g,X;d===""&&((N=(b=(B=x==null?void 0:x.optionUrl)==null?void 0:B.groupSelect)==null?void 0:b[1])!=null&&N.includes("["))&&(d=(X=(g=x==null?void 0:x.optionUrl)==null?void 0:g.groupSelect)==null?void 0:X[1])}),(R=p==null?void 0:p.optionUrl)!=null&&R.menuSelect){let x=await Hl(p),B;if(x==null||x.forEach(b=>{var N,g,X,i,P,J,v,A,k,f;d===((g=(N=p==null?void 0:p.optionUrl)==null?void 0:N.groupSelect)==null?void 0:g[1])&&((P=(i=(X=p==null?void 0:p.optionUrl)==null?void 0:X.groupSelect)==null?void 0:i[1])!=null&&P.includes("["))&&((f=D.cloneDeep(b))==null?void 0:f[(k=(A=(v=(J=p==null?void 0:p.optionUrl)==null?void 0:J.groupSelect)==null?void 0:v[1])==null?void 0:A.replaceAll("[",""))==null?void 0:k.replaceAll("]","")])===(p==null?void 0:p.value)&&(B=b)}),B){let b=D.cloneDeep(s);b=b==null?void 0:b.map(g=>{var X,i,P,J,v,A,k,f,M,E,ae;return(B!=null&&B[g==null?void 0:g.label]||B!=null&&B[(J=(P=(i=(X=g==null?void 0:g.optionUrl)==null?void 0:X.groupSelect)==null?void 0:i[1])==null?void 0:P.replaceAll("[",""))==null?void 0:J.replaceAll("]","")])&&((k=(A=(v=g==null?void 0:g.optionUrl)==null?void 0:v.groupSelect)==null?void 0:A[1])!=null&&k.includes("["))&&(g.value=(B==null?void 0:B[g==null?void 0:g.label])||(B==null?void 0:B[(ae=(E=(M=(f=g==null?void 0:g.optionUrl)==null?void 0:f.groupSelect)==null?void 0:M[1])==null?void 0:E.replaceAll("[",""))==null?void 0:ae.replaceAll("]","")])),g}),ee.value=(z=D.cloneDeep(ee.value))==null?void 0:z.map(g=>{if((g==null?void 0:g.id)===(a==null?void 0:a.id)){const X={};return b==null||b.forEach(i=>{X[i.name]=i.value}),X.id=g==null?void 0:g.id,X}return g});let N=D.cloneDeep(b);N=N==null?void 0:N.map(g=>{var X,i,P,J;return(i=(X=g==null?void 0:g.optionUrl)==null?void 0:X.menuSelect)!=null&&i.some(v=>v==null?void 0:v.includes)&&(g.optionUrl.menuSelect=(J=(P=g==null?void 0:g.optionUrl)==null?void 0:P.menuSelect)==null?void 0:J.map(v=>{var A,k,f,M;if(v!=null&&v.includes("[")){let E=(k=(A=v==null?void 0:v.replaceAll("[","").replaceAll("]",""))==null?void 0:A.split(":"))==null?void 0:k[1];v=(M=(f=D.cloneDeep(b))==null?void 0:f.find(ae=>(ae==null?void 0:ae.label)===E))==null?void 0:M.value}return v})),g}),ee.value=(K=D.cloneDeep(ee.value))==null?void 0:K.map(g=>{if((g==null?void 0:g.id)===(a==null?void 0:a.id)){const X={};return N==null||N.forEach(i=>{X[i.name]=i.value}),X.id=g==null?void 0:g.id,X}return g})}}},gr=async l=>{var j,q,y,_,O,w,R,z,K,x,B,b,N,g,X,i,P,J;if(!l)return;Pe.value=l;const a=D.cloneDeep(t.itemData);let o=a==null?void 0:a.map(v=>{var A;return(v==null?void 0:v.key)==="header"&&((A=v.contents)==null||A.map((k,f)=>{var M,E,ae,Y,S,U,V,oe,W,ie,m,u,ue,fe,ne,me,Ce,je,Ve;return k.type=k!=null&&k.type?k.type:(Y=(ae=(E=(M=k==null?void 0:k.key)==null?void 0:M.split("$"))==null?void 0:E[1])==null?void 0:ae.split("("))!=null&&Y[0]?(U=(S=te.FormType)==null?void 0:S.find(Ne=>{var Oe,_e,Ke,ll;return(Ne==null?void 0:Ne.key)===((ll=(Ke=(_e=(Oe=k==null?void 0:k.key)==null?void 0:Oe.split("$"))==null?void 0:_e[1])==null?void 0:Ke.split("("))==null?void 0:ll[0])}))==null?void 0:U.value:"Input",k.options=k!=null&&k.options?k.options:((W=(oe=(V=k==null?void 0:k.key)==null?void 0:V.split("$"))==null?void 0:oe[1])==null?void 0:W.length)>0?(ue=(u=Wl((m=(ie=k==null?void 0:k.key)==null?void 0:ie.split("$"))==null?void 0:m[1]))==null?void 0:u.split(","))==null?void 0:ue.map(Ne=>({label:Ne,value:Ne})):[],(fe=k==null?void 0:k.key)!=null&&fe.includes("$")&&(k.key=(me=(ne=k==null?void 0:k.key)==null?void 0:ne.split("$"))==null?void 0:me[0]),k.value=(Ce=Object.values(l))==null?void 0:Ce[f],k.optionUrl=k!=null&&k.formMenuSelect&&((je=k==null?void 0:k.formMenuSelect)==null?void 0:je.length)>0?{groupSelect:(Ve=k==null?void 0:k.groupSelect)==null?void 0:Ve.split(/[::]/).map(Ne=>Ne.trim()),menuSelect:k==null?void 0:k.formMenuSelect,selectRelateType:"",type:(k==null?void 0:k.formType)??(k!=null&&k.groupSelect?"Select":"")}:null,k})),v}),r=we.value,n=(q=(j=D.cloneDeep(o))==null?void 0:j.find(v=>(v==null?void 0:v.key)==="header"))==null?void 0:q.contents;if(n=n==null?void 0:n.filter(v=>(v==null?void 0:v.label)!=="操作"),n.push({label:"操作",type:"operate"}),r=r==null?void 0:r.map(v=>{var A;return v.value=v.value??((A=n==null?void 0:n.find((k,f)=>(k==null?void 0:k.prop)===(v==null?void 0:v.name)))==null?void 0:A.value),v}),!kl.value)return;let s="";(y=el.value)!=null&&y.includes("·")&&(el.value=(O=(_=el.value)==null?void 0:_.split("·"))==null?void 0:O[0]);let c=(z=(R=(w=D.cloneDeep(o))==null?void 0:w.find(v=>(v==null?void 0:v.key)==="header"))==null?void 0:R.contents)==null?void 0:z.find((v,A)=>{var k,f,M;return(v==null?void 0:v.label)===el.value||(A==null?void 0:A.toString())===((M=(f=(k=el.value)==null?void 0:k.split("a"))==null?void 0:f[1])==null?void 0:M.toString())}),d=(K=c==null?void 0:c.optionUrl)==null?void 0:K.menuSelect,p=!0;(b=(B=(x=D.cloneDeep(o))==null?void 0:x.find(v=>(v==null?void 0:v.key)==="header"))==null?void 0:B.contents)==null||b.forEach(v=>{var A,k,f,M,E,ae;p&&((f=(k=(A=v==null?void 0:v.optionUrl)==null?void 0:A.groupSelect)==null?void 0:k[1])!=null&&f.includes("["))&&(s=(E=(M=v==null?void 0:v.optionUrl)==null?void 0:M.groupSelect)==null?void 0:E[1],JSON.stringify(d)===JSON.stringify((ae=v==null?void 0:v.optionUrl)==null?void 0:ae.menuSelect)&&(p=!1))});let h=D.cloneDeep(r);h=h==null?void 0:h.map(v=>{var A,k;return(v==null?void 0:v.type)==="Select"&&((k=(A=v==null?void 0:v.optionUrl)==null?void 0:A.allSelectionContents)==null?void 0:k.length)>0&&(v.optionUrl.contactValue=l),v.value=l==null?void 0:l[v==null?void 0:v.prop],v}),we.value=D.cloneDeep(h);let T=(X=(g=(N=we.value)==null?void 0:N.find(v=>{var A;return(A=v==null?void 0:v.optionUrl)==null?void 0:A.menuId}))==null?void 0:g.optionUrl)==null?void 0:X.menuId;if((i=c==null?void 0:c.optionUrl)!=null&&i.menuSelect&&kl.value||T){let v=await Hl(c,T),A;if((P=c==null?void 0:c.optionUrl)==null||P.menuSelect,v==null||v.forEach(k=>{var f,M,E,ae,Y,S,U,V,oe,W,ie,m,u,ue,fe;if(s===((M=(f=c==null?void 0:c.optionUrl)==null?void 0:f.groupSelect)==null?void 0:M[1])&&((Y=(ae=(E=c==null?void 0:c.optionUrl)==null?void 0:E.groupSelect)==null?void 0:ae[1])!=null&&Y.includes("["))&&((W=D.cloneDeep(k))==null?void 0:W[(oe=(V=(U=(S=c==null?void 0:c.optionUrl)==null?void 0:S.groupSelect)==null?void 0:U[1])==null?void 0:V.replaceAll("[",""))==null?void 0:oe.replaceAll("]","")])===(c==null?void 0:c.value)&&(A=k),T){let ne=(m=(ie=we.value)==null?void 0:ie.find(Ce=>{var je;return(je=Ce==null?void 0:Ce.optionUrl)==null?void 0:je.menuId}))==null?void 0:m.prop,me=l[ne];ne!=null&&ne.includes("·")&&(me=(ue=(u=l[ne])==null?void 0:u.split(" "))==null?void 0:ue[0],ne=(fe=ne==null?void 0:ne.split("·"))==null?void 0:fe[0]),k[ne]===me&&(A=k)}}),A){let k=D.cloneDeep(r);k=k==null?void 0:k.map(E=>{var ae,Y,S,U,V,oe,W,ie,m,u,ue,fe,ne,me,Ce,je,Ve;return(A!=null&&A[E==null?void 0:E.prop]||A!=null&&A[(U=(S=(Y=(ae=E==null?void 0:E.optionUrl)==null?void 0:ae.groupSelect)==null?void 0:Y[1])==null?void 0:S.replaceAll("[",""))==null?void 0:U.replaceAll("]","")])&&((W=(oe=(V=E==null?void 0:E.optionUrl)==null?void 0:V.groupSelect)==null?void 0:oe[1])!=null&&W.includes("["))&&(E!=null&&E.relatedValueId)&&(E.value=(A==null?void 0:A[E==null?void 0:E.prop])||(A==null?void 0:A[(ue=(u=(m=(ie=E==null?void 0:E.optionUrl)==null?void 0:ie.groupSelect)==null?void 0:m[1])==null?void 0:u.replaceAll("[",""))==null?void 0:ue.replaceAll("]","")])),T&&(A!=null&&A[E==null?void 0:E.prop])&&(E!=null&&E.relatedValueId)?E.value=(A==null?void 0:A[E==null?void 0:E.prop])||(A==null?void 0:A[(Ce=(me=(ne=(fe=E==null?void 0:E.optionUrl)==null?void 0:fe.groupSelect)==null?void 0:ne[1])==null?void 0:me.replaceAll("[",""))==null?void 0:Ce.replaceAll("]","")]):E.value=(Ve=(je=we.value)==null?void 0:je.find(Ne=>(Ne==null?void 0:Ne.prop)===(E==null?void 0:E.prop)))==null?void 0:Ve.value,E}),we.value=D.cloneDeep(k);let f=D.cloneDeep(k);f=f==null?void 0:f.map(E=>{var ae,Y,S,U,V,oe;return(Y=(ae=E==null?void 0:E.optionUrl)==null?void 0:ae.menuSelect)!=null&&Y.some(W=>W==null?void 0:W.includes("["))&&(E.optionUrl.oldMenuSelect=(U=(S=D.cloneDeep(E))==null?void 0:S.optionUrl)==null?void 0:U.menuSelect,E.optionUrl.menuSelect=(oe=(V=E==null?void 0:E.optionUrl)==null?void 0:V.menuSelect)==null?void 0:oe.map(W=>{var ie,m,u,ue;if(W!=null&&W.includes("[")){let fe=(m=(ie=W==null?void 0:W.replaceAll("[","").replaceAll("]",""))==null?void 0:ie.split(":"))==null?void 0:m[1];W=(ue=(u=D.cloneDeep(k))==null?void 0:u.find(ne=>(ne==null?void 0:ne.label)===fe))==null?void 0:ue.value}return W})),E}),we.value=f;let M={};(J=we.value)==null||J.forEach(E=>{M[E.prop]=E==null?void 0:E.value}),Pe.value=M}}kl.value=!1},yr=l=>l?(l==null?void 0:l.toUpperCase())==="INPUT"?"TEXTAREA":l:"TEXTAREA",vr=l=>{var s,c;const a=(c=(s=Re.value)==null?void 0:s.find(d=>(d==null?void 0:d.label)===(l==null?void 0:l.label)))==null?void 0:c.multiple,o=l==null?void 0:l.prop;if((l==null?void 0:l.formType)!="Select")return;ee.value.forEach(d=>{const p=d==null?void 0:d[o];a&&ga.isString(p)&&(d[o]=[p]),!a&&!ga.isString(p)&&(d[o]="")})},ta=(l,a)=>{var o;return a==null||a.forEach(r=>{l[r==null?void 0:r.prop]=r==null?void 0:r.value}),l.children&&((o=l.children)==null?void 0:o.length)>0&&(l.children=l.children.map(r=>ta(r,a))),l},Jl=l=>{var o,r,n,s,c,d;Cl("");const a=(o=we.value)==null?void 0:o.reduce((p,h)=>(p[h.name]=h.value,p),{});if(((r=Object.keys(a))==null?void 0:r.length)>0){Pe.value=a,Ze.value="",dl.value=(n=ee.value)==null?void 0:n.length,pl.value=(s=il.value)==null?void 0:s.filter(h=>(h==null?void 0:h.label)!=="新增");const p=(d=(c=qe.value)==null?void 0:c.filter(h=>(h==null?void 0:h.label)!=="操作"))==null?void 0:d.map(h=>{var j,q,y;const T=(q=(j=Re.value)==null?void 0:j.find(_=>(_==null?void 0:_.label)===(h==null?void 0:h.label)))==null?void 0:q.multiple;return vr(h),{...h,contents:(h==null?void 0:h.options)??[],optionUrl:h!=null&&h.formMenuSelect&&((y=h==null?void 0:h.formMenuSelect)==null?void 0:y.length)>0?{groupSelect:h==null?void 0:h.groupSelect,menuSelect:h==null?void 0:h.formMenuSelect,selectRelateType:"",type:h==null?void 0:h.formType,multiple:T}:null}});G.value=p==null?void 0:p.map(h=>ta(h,[{prop:"type",value:"edit"},{prop:"columnType",value:yr(h==null?void 0:h.formType)||(h==null?void 0:h.columnType)}])),l==="createClick"&&xl(!1)}},hl={START:"开始时间",END:"结束时间",HOURS:"工时"},br=(l,a)=>Number(te.dayjs(a).diff(te.dayjs(l),"day",!0).toFixed(1)),sa=l=>{var s;const a=t.itemData,o=(s=a==null?void 0:a.find(c=>(c==null?void 0:c.key)==="header"))==null?void 0:s.contents,r=new Map;return o==null||o.forEach((c,d)=>{const{label:p}=c;r.set(p,d)}),!r.has(hl.START)||!r.has(hl.END)||!r.has(hl.HOURS)?l:l==null?void 0:l.map(c=>{const d=c==null?void 0:c[hl.START],p=c==null?void 0:c[hl.END],h=br(d,p);return d&&p&&(c[hl.HOURS]=`${h}天`),c})},ua=(l,a,o=0)=>{if(o>((a==null?void 0:a.length)??""))return l;const r=a==null?void 0:a[o],n=new Map;for(const c of l){const d=c[r];n.has(d)||n.set(d,[]),n.get(d)&&n.get(d).push(c)}const s=[];for(const[c,d]of n){const[p,...h]=d,T={...p};o+1===((a==null?void 0:a.length)??"")?T.children=d==null?void 0:d.map(j=>(j.level=D.cloneDeep(o)+1,j)).filter((j,q)=>q!==0):h.length>0&&(T.children=ua(h,a,o+1)),T.level=o,s.push(T)}return s},ca=(l,a,o)=>{var n;if(!(a!=null&&a.contents)||((n=a==null?void 0:a.contents)==null?void 0:n.length)===0)return l;let r=[];return r=ua(l,a==null?void 0:a.contents,0),r},da=(l,a)=>{var q,y,_,O,w,R,z,K,x,B,b,N,g,X,i,P,J,v,A,k,f,M,E,ae,Y;const o=l==null?void 0:l.filter(S=>(S==null?void 0:S.key)==="header");l==null||l.filter(S=>(S==null?void 0:S.key)==="tableIndexColumn")[0];const r=l==null?void 0:l.filter(S=>(S==null?void 0:S.key)==="childTree")[0];let n=a;const s=l==null?void 0:l.find(S=>(S==null?void 0:S.key)==="page"),c=l==null?void 0:l.find(S=>(S==null?void 0:S.key)==="rowButton"),d=l==null?void 0:l.find(S=>(S==null?void 0:S.key)==="extraButton"),p=l==null?void 0:l.filter(S=>(S==null?void 0:S.key)==="tableContents"),h=l==null?void 0:l.filter(S=>(S==null?void 0:S.key)==="tableIndex");Re.value=(y=(q=l==null?void 0:l.filter(S=>(S==null?void 0:S.key)==="tableToForm"))==null?void 0:q[0])==null?void 0:y.contents,Ql.value=(s==null?void 0:s.contents)??!0;let T=[];tl.value===""?T=o==null?void 0:o[0]:T=(o==null?void 0:o.find(S=>(S==null?void 0:S.selectLabel)==="("+tl.value+")"))??(o==null?void 0:o.find(S=>!(S!=null&&S.selectLabel)));let j=[];if(tl.value===""?j=h==null?void 0:h[0]:j=(h==null?void 0:h.find(S=>(S==null?void 0:S.selectLabel)==="("+tl.value+")"))??(h==null?void 0:h.find(S=>!(S!=null&&S.selectLabel))),((_=T==null?void 0:T.contents)==null?void 0:_.length)>0){let S=[];if(T!=null&&T.contents.some(m=>Array.isArray(m)&&(m==null?void 0:m.find(u=>u.children))))bl.value===""?S=(w=(O=te.getGradeColumns(T==null?void 0:T.contents))==null?void 0:O[0])==null?void 0:w.filter(m=>!Array.isArray(m)):(bl.value.split("-"),S=(R=te.getGradeColumns(T==null?void 0:T.contents))==null?void 0:R[0]);else{let m=T!=null&&T.contents.some(u=>Array.isArray(u))?(z=T==null?void 0:T.contents)==null?void 0:z[0]:T==null?void 0:T.contents;m==null||m.forEach((u,ue)=>{var me,Ce,je,Ve,Ne;let fe="";(Ce=(me=ye.value)==null?void 0:me.split("/"))==null||Ce.forEach(Oe=>{var _e,Ke,ll;if(Oe!==""){let ze=(ll=(Ke=(_e=Oe==null?void 0:Oe.split(Ee+"updateLoading"))==null?void 0:_e[0])==null?void 0:Ke.split(Ee+"loading"))==null?void 0:ll[0];fe=fe===""?fe+ze:fe+"/"+ze}}),fe=fe+Ee+(u==null?void 0:u.directiveLabel);const ne=(je=Re.value)==null?void 0:je.find(Oe=>(Oe==null?void 0:Oe.prop)===(u==null?void 0:u.prop));S.push({label:(u==null?void 0:u.label)??"",prop:(u==null?void 0:u.label)==="操作"?"operate":(u==null?void 0:u.prop)??"a"+ue,width:u!=null&&u.width?parseInt(u.width):"",fixed:(u==null?void 0:u.fixed)??void 0,sortable:(u==null?void 0:u.sortable)??!1,filterable:(u==null?void 0:u.filterable)??!1,operable:(u==null?void 0:u.operable)??!1,showSummary:(u==null?void 0:u.showSummary)??!1,align:(u==null?void 0:u.align)??"left",showOverflowTooltip:(u==null?void 0:u.showOverflowTooltip)??!0,isNotDrag:(u==null?void 0:u.isNotDrag)??!1,isEditCol:(u==null?void 0:u.isEditCol)??!1,isOperate:(u==null?void 0:u.isOperate)??!1,id:(u==null?void 0:u.id)??ue,type:(u==null?void 0:u.label)==="操作"?"operate":void 0,formType:(u==null?void 0:u.formType)??(u!=null&&u.groupSelect?"Select":""),isTableColHidden:u==null?void 0:u.isTableColHidden,isFormColHidden:u==null?void 0:u.isFormColHidden,disabled:u==null?void 0:u.disabled,options:(u==null?void 0:u.options)??[],value:(u==null?void 0:u.value)??"",formMenuSelect:(u==null?void 0:u.formMenuSelect)??[],isRoute:(u==null?void 0:u.isRoute)??!1,groupSelect:u!=null&&u.groupSelect?(Ve=u==null?void 0:u.groupSelect)==null?void 0:Ve.replaceAll('"',"").split(":"):[],isMainKey:(u==null?void 0:u.isMainKey)||(u==null?void 0:u.directiveLabel)==="#isMain",columnType:(ne==null?void 0:ne.type)||(u==null?void 0:u.columnType)||"TEXTAREA",directiveLabel:u==null?void 0:u.directiveLabel,directiveColor:(u==null?void 0:u.directiveColor)??!1,isExistChild:!!(u!=null&&u.directiveLabel&&!(n!=null&&n[fe])&&!((Ne=u==null?void 0:u.directiveLabel)!=null&&Ne.includes("@"))&&(u==null?void 0:u.directiveLabel)!=="#isMain"),childPath:(u==null?void 0:u.directiveLabel)!=="#isMain"?fe:void 0,allSelectionContents:(u==null?void 0:u.allSelectionContents)??[],selectFilter:u==null?void 0:u.selectFilter,menuId:u==null?void 0:u.menuId,filterContent:u==null?void 0:u.filterContent,relatedValueId:u==null?void 0:u.relatedValueId})})}G.value=te.getNewColumnChild(S),Be.value=te.getNewColumnChild(S),I.value=(K=G.value)==null?void 0:K.map(m=>m==null?void 0:m.label),rl.value=(x=G.value)==null?void 0:x.every(m=>m==null?void 0:m.filterable),pe.value=(B=G.value)==null?void 0:B.every(m=>m==null?void 0:m.operable),al.value=(b=G.value)==null?void 0:b.every(m=>m==null?void 0:m.sortable);let U=(g=(N=te.getAllLeafNodes(G.value))==null?void 0:N.filter(m=>(m==null?void 0:m.type)!=="operate"))==null?void 0:g.map((m,u)=>({prop:(m==null?void 0:m.prop)??"a"+u,column:m.label}));Ge.value=U;let V=[];tl.value===""?V=p==null?void 0:p[0]:V=(p==null?void 0:p.find(m=>(m==null?void 0:m.selectLabel)==="("+tl.value+")"))??(p==null?void 0:p.find(m=>!(m!=null&&m.selectLabel)));let oe=Array.isArray((X=V==null?void 0:V.contents)==null?void 0:X[0])&&((i=V==null?void 0:V.contents)!=null&&i[0].every(m=>Array.isArray(m)))?(P=V==null?void 0:V.contents)==null?void 0:P[0]:V==null?void 0:V.contents;j!=null&&j.contents&&((J=j==null?void 0:j.contents)==null?void 0:J.length)!==0&&(oe=(v=D.cloneDeep(oe))==null?void 0:v.map((m,u)=>{if(!Array.isArray(m)){let ue={};for(let fe in m)fe!=="id"&&fe!=="index"&&(ue[fe]=m[fe]);m=Object.values(ue)}return m}));const W=!!((A=G.value)!=null&&A.find(m=>m.prop==="index"));oe=ba(oe,j==null?void 0:j.contents,W);const ie=[];oe==null||oe.forEach((m,u)=>{var fe;let ue={};if(Array.isArray(m)){let ne=[];m==null||m.filter(me=>!(me!=null&&me.id)).forEach((me,Ce)=>{var je,Ve,Ne,Oe,_e,Ke;if((je=U==null?void 0:U[Ce])!=null&&je.prop&&!Array.isArray(me)){let ll={};ll[U[Ce].column]=me,be!=null&&be.value&&((Ve=be==null?void 0:be.value)==null?void 0:Ve.length)>0&&((Ne=be==null?void 0:be.value)!=null&&Ne.find(ze=>JSON.stringify(ze==null?void 0:ze[0])===JSON.stringify(ll)))&&(ne=(Oe=be==null?void 0:be.value)==null?void 0:Oe.find(ze=>JSON.stringify(ze==null?void 0:ze[0])===JSON.stringify(ll))),ne&&ne.length>0?ue[U[Ce].prop]=ne!=null&&ne.find(ze=>{var Dl;return((Dl=Object.keys(ze))==null?void 0:Dl[0])===U[Ce].column})?(_e=ne==null?void 0:ne.find(ze=>{var Dl;return((Dl=Object.keys(ze))==null?void 0:Dl[0])===U[Ce].column}))==null?void 0:_e[U[Ce].column]:me:ue[U[Ce].prop]=me}else Array.isArray(me)&&((Ke=U[Ce])!=null&&Ke.prop?ue[U[Ce].prop]=me:ue.children=Gl(me,U))})}else ue=m;Array.isArray(m)&&m.some(ne=>ne==null?void 0:ne.id)?ie.push(Object.assign(ue,{id:(fe=m==null?void 0:m.find(ne=>ne.id))==null?void 0:fe.id})):ue.id?ie.push(ue):ie.push(Object.assign(ue,{id:u.toString()}))}),ee.value=ca(ie,r,G.value),El.value=ie,(k=El.value)==null||k.forEach(m=>{var u;(u=Al.value)==null||u.set(m.id,m)})}else G.value=[],qe.value=[],ee.value=[],El.value=[],Al.value=new Map;((f=c==null?void 0:c.contents)==null?void 0:f.length)>0?ol.value=c==null?void 0:c.contents:ol.value=[],((M=d==null?void 0:d.contents)==null?void 0:M.length)>0?(pl.value=d==null?void 0:d.contents,il.value=d==null?void 0:d.contents):(pl.value=[],il.value=[]),dl.value=((E=ee==null?void 0:ee.value)==null?void 0:E.length)??0,sa(ee.value),Ul.value=ee.value,He.value&&(G.value=(Y=(ae=qe.value)==null?void 0:ae.filter(S=>(S==null?void 0:S.label)!=="操作"))==null?void 0:Y.map(S=>{var U;return{...S,type:"edit",optionUrl:S!=null&&S.formMenuSelect&&((U=S==null?void 0:S.formMenuSelect)==null?void 0:U.length)>0?{groupSelect:S==null?void 0:S.groupSelect,menuSelect:S==null?void 0:S.formMenuSelect,selectRelateType:"",type:S==null?void 0:S.formType}:null}}),Jl())};e.watch(()=>[t.itemData,tl.value,Ea.value,bl.value,be==null?void 0:be.value],async()=>{var l,a,o,r,n,s;if((l=t==null?void 0:t.itemData)!=null&&l.find(c=>(c==null?void 0:c.key)==="columnPath")&&!((a=yl.value)!=null&&a.find(c=>{var d,p;return(c==null?void 0:c.key)===((p=(d=t==null?void 0:t.itemData)==null?void 0:d.find(h=>(h==null?void 0:h.key)==="columnPath"))==null?void 0:p.contents)}))){let c=yl.value,d={key:(r=(o=t==null?void 0:t.itemData)==null?void 0:o.find(p=>(p==null?void 0:p.key)==="columnPath"))==null?void 0:r.contents,value:(s=(n=t==null?void 0:t.itemData)==null?void 0:n.find(p=>(p==null?void 0:p.key)==="columnUsingPath"))==null?void 0:s.contents};c!=null&&c.find(p=>(p==null?void 0:p.key)===(d==null?void 0:d.key))?c=c==null?void 0:c.map(p=>((p==null?void 0:p.key)===(d==null?void 0:d.key)&&(p.value=d.value),p)):c.push(d),De.setTableViewContents(c)}da(t.itemData,t.allMapContents)},{deep:!0,immediate:!0}),e.watch(()=>t==null?void 0:t.operatingForm,l=>{l!=null&&l.form&&(Cl(l==null?void 0:l.form),We.value=l==null?void 0:l.dialogTitle,_l.value=!0,Ie.value=!0)},{immediate:!0,deep:!0});const pa=()=>{var l;(l=Se.value)!=null&&l.includes("read")&&(He.value=!He.value)},kr=()=>{Ol.value=!Ol.value};e.watch(()=>{var l;return(l=t==null?void 0:t.config)==null?void 0:l.viewport},l=>{var a;Se.value=l,(l==null?void 0:l.length)===0?He.value=!1:(l!=null&&l.includes("read")||(He.value=!0),l!=null&&l.includes("edit")||(He.value=!1)),he.value=((a=t==null?void 0:t.config)==null?void 0:a.showIndex)||He.value},{immediate:!0}),e.watch(()=>He.value,l=>{var a;l?(Jl("viewChange"),De.setCacheUpdatingData(null)):(pl.value=il.value,G.value=Be.value,gl.value&&(De.setTableLoading(t==null?void 0:t.index),Z("change",gl.value))),re.value=l,he.value=l||((a=t==null?void 0:t.config)==null?void 0:a.showIndex)},{immediate:!0}),e.watch(()=>{var l;return(l=Yl.value)==null?void 0:l.length},l=>{l===0&&(ce.currentPage=1)}),e.watch(()=>t==null?void 0:t.compNames,l=>{Te.contents=[{label:"列表名",prop:"groupName",name:"列表名",type:"select",value:"",id:0,contents:l||[],width:1}]},{immediate:!0}),e.ref(!1);const mr=(l,a)=>{var o;Jl("createClick"),a===ce.pageSize&&(ce.currentPage=Math.ceil(((o=ee.value)==null?void 0:o.length)/ce.pageSize))},Sr=(l,a,o)=>{var r;ia(o,l,a),Pe.value=D.cloneDeep(l),Ze.value=l==null?void 0:l.id,dl.value=(r=ee.value)==null?void 0:r.length,We.value=typeof(l==null?void 0:l.id)=="string"?"新增":"编辑",xl(!1)},$e=l=>{var p,h,T,j,q,y,_,O,w,R;const{row:a,column:o,item:r,slotData:n}=l;let s=a!=null&&a[o==null?void 0:o.prop]||(a==null?void 0:a[o==null?void 0:o.prop])===0?((h=(p=a==null?void 0:a[o==null?void 0:o.prop])==null?void 0:p[0])==null?void 0:h.contents)??((a==null?void 0:a[o==null?void 0:o.prop])===0?"0":a==null?void 0:a[o==null?void 0:o.prop]):((j=(T=a==null?void 0:a[r==null?void 0:r.prop])==null?void 0:T[0])==null?void 0:j.contents)??(a==null?void 0:a[r==null?void 0:r.prop])??((y=(q=n==null?void 0:n[r==null?void 0:r.prop])==null?void 0:q[0])==null?void 0:y.contents)??(n==null?void 0:n[r==null?void 0:r.prop])??((w=(O=a==null?void 0:a[(_=r==null?void 0:r.child)==null?void 0:_.prop])==null?void 0:O[0])==null?void 0:w.contents)??(a==null?void 0:a[(R=r==null?void 0:r.child)==null?void 0:R.prop]),d=Array.isArray(s)&&!(s!=null&&s.every(z=>typeof z=="string"||typeof z=="number"))?"查看":s;return d=Array.isArray(d)?d.join(","):d,d},Cr=l=>{var h,T,j,q,y,_,O,w,R,z;const{row:a,column:o,item:r,slotData:n}=l;let s=a!=null&&a[o==null?void 0:o.prop]?((T=(h=a==null?void 0:a[o==null?void 0:o.prop])==null?void 0:h[0])==null?void 0:T.contents)??(a==null?void 0:a[o==null?void 0:o.prop]):((q=(j=a==null?void 0:a[r==null?void 0:r.prop])==null?void 0:j[0])==null?void 0:q.contents)??(a==null?void 0:a[r==null?void 0:r.prop])??((_=(y=n==null?void 0:n[r==null?void 0:r.prop])==null?void 0:y[0])==null?void 0:_.contents)??(n==null?void 0:n[r==null?void 0:r.prop])??((R=(w=a==null?void 0:a[(O=r==null?void 0:r.child)==null?void 0:O.prop])==null?void 0:w[0])==null?void 0:R.contents)??(a==null?void 0:a[(z=r==null?void 0:r.child)==null?void 0:z.prop]);const d=Array.isArray(s)&&!(s!=null&&s.every(K=>typeof K=="string"||typeof K=="number")),p=Array.isArray(s)&&(s==null?void 0:s.find(K=>K==null?void 0:K.url));return d&&p},xr=(l,a)=>l.find(o=>Object.values(o).some(r=>r===a));return e.watch(()=>Ca.value,async l=>{if(l){Ue.setContentLoading(!0),await e.nextTick();const a=xr(ee.value,l==null?void 0:l.data);if(!a)return Ue.setContentLoading(!1);await ea(l==null?void 0:l.data,null,a,{data:l==null?void 0:l.data,isMainKey:!0}),Ue.setContentLoading(!1)}},{deep:!0,immediate:!0}),e.watch(()=>t==null?void 0:t.cacheNewData,l=>{var a;l&&(Array.isArray(l)||(l==null?void 0:l.compId)===(t==null?void 0:t.index)&&(ee.value=(a=ee.value)==null?void 0:a.map(o=>{var r;return(o==null?void 0:o.id)===((r=l==null?void 0:l.data)==null?void 0:r.id)?{...o,id:l==null?void 0:l.resId}:o})))},{immediate:!0,deep:!0}),(l,a)=>{var h,T,j,q;const o=e.resolveComponent("svg-icon"),r=e.resolveComponent("el-popover"),n=e.resolveComponent("el-switch"),s=e.resolveComponent("el-checkbox"),c=e.resolveComponent("el-checkbox-group"),d=e.resolveComponent("el-button"),p=e.resolveComponent("LookComponent");return e.openBlock(),e.createElementBlock("div",Ir,[Xl.value?(e.openBlock(),e.createBlock(Xe.ssTable,{id:"excel-table",pageObj:ce,showIndex:he.value,isTree:(h=F.compItem)==null?void 0:h.isTree,summaryInfo:ve,columns:G.value,defaultSort:Ae,isCardViewport:Ol.value,checkedColumns:I.value,key:Vl.value+JSON.stringify(G.value),tableData:Yl.value,isEditViewport:He.value,isShowPagination:Ql.value,isShowEdit:!1,isShowDelete:!1,allowSelect:re.value,onDbClickRow:Ya,extraButton:pl.value,rowButton:ol.value,cacheExtraButtons:il.value,isClearSelection:((T=Qe.value)==null?void 0:T.length)===0,onDoCurrentChange:Oa,onDoSizeChange:ja,onContentClick:ea,onRowClick:Ia,onSelectChange:Ka,onCellChange:Sr,onChange:ia,onPreview:Zl,onSubmitEditingTable:Va,onHandleColEditChange:$a,onHandleColTypeChange:Fa,onClickButton:Ml},e.createSlots({headerButton:e.withCtx(y=>{var _,O;return[F.showHeader?(e.openBlock(),e.createBlock(Kr,{key:0,pageLayout:F.pageLayout,lockingPage:e.unref(Nl)===e.unref(ye),filterValues:Il.value,selectNums:(_=Qe.value)==null?void 0:_.length,dataNums:(O=ee.value)==null?void 0:O.length,compName:F.compName,isDevMode:F.isDevMode,buttons:y.buttons,onButtonClick:a[1]||(a[1]=w=>Ml(w,"",{})),columns:G.value,onFilter:Xa,onGetImportData:Ma,level:F.level},null,8,["pageLayout","lockingPage","filterValues","selectNums","dataNums","compName","isDevMode","buttons","columns","level"])):e.createCommentVNode("",!0)]}),viewport:e.withCtx(()=>{var y,_,O,w;return[((y=ee.value)==null?void 0:y.length)>0&&F.allowOperate?(e.openBlock(),e.createElementBlock("div",an,[(_=Se.value)!=null&&_.includes("read")&&((O=Se.value)!=null&&O.includes("edit"))&&((w=ol.value)!=null&&w.some(R=>(R==null?void 0:R.label)==="编辑"))&&!Ol.value&&e.unref(Nl)!==e.unref(ye)?(e.openBlock(),e.createElementBlock("span",{key:0,title:"编辑表格",onClick:pa},[e.createVNode(o,{name:"editTable",class:"view-icon"})])):e.createCommentVNode("",!0),e.createElementVNode("span",{title:"卡片视图",onClick:kr},[e.createVNode(o,{name:"cardViewport",class:"view-icon"})])])):e.createCommentVNode("",!0)]}),rowCreate:e.withCtx(({row:y,index:_})=>[e.createElementVNode("span",{title:"新增",class:"row-create-wrap",onClick:O=>mr(y,_)},[e.createVNode(o,{name:"rowCreate",style:{width:"10px",height:"10px"}})],8,rn)]),operateCol:e.withCtx(()=>[e.createVNode(r,{title:"选择显示列信息",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:hr},{reference:e.withCtx(()=>[e.createElementVNode("span",nn,[e.createVNode(o,{name:"operate",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),default:e.withCtx(()=>[e.createElementVNode("div",on,[a[12]||(a[12]=e.createElementVNode("div",{class:"group-title"},"表格操作",-1)),e.createVNode(n,{"model-value":al.value,"active-text":"排序","inactive-text":"",style:{"margin-right":"8px"},onChange:a[3]||(a[3]=y=>Kl(y,"sortable"))},null,8,["model-value"]),e.createVNode(n,{"model-value":rl.value,"active-text":"筛选","inactive-text":"",style:{"margin-right":"8px"},onChange:a[4]||(a[4]=y=>Kl(y,"filterable"))},null,8,["model-value"]),e.createVNode(n,{"model-value":pe.value,"active-text":"编辑所有表头","inactive-text":"",onChange:a[5]||(a[5]=y=>Kl(y,"operable"))},null,8,["model-value"]),a[13]||(a[13]=e.createElementVNode("div",{class:"group-title"},"表格列操作",-1)),e.createVNode(c,{modelValue:I.value,"onUpdate:modelValue":a[6]||(a[6]=y=>I.value=y),style:{height:"100%"},min:2,ref_key:"checkboxGroupRef",ref:L},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ml.value,y=>(e.openBlock(),e.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:y.label},[e.createVNode(s,{value:y.label,style:{width:"100%",marginRight:0}},{default:e.withCtx(()=>[e.createElementVNode("span",{title:y.label,style:{display:"inline-block",width:"250px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},e.toDisplayString(y.label),9,tn)]),_:2},1032,["value"]),e.createVNode(r,{title:"列操作",placement:"left",teleported:!1,trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(o,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:e.withCtx(()=>{var _;return[e.createElementVNode("div",sn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((_=Object.keys(y))==null?void 0:_.filter(O=>{var w;return(w=ge.value)==null?void 0:w.find(R=>(R==null?void 0:R.value)===O)}),O=>{var w,R;return e.openBlock(),e.createElementBlock("div",{key:O},[e.createVNode(n,{"model-value":y==null?void 0:y[O],"active-text":(R=(w=ge.value)==null?void 0:w.find(z=>(z==null?void 0:z.value)===O))==null?void 0:R.label,onChange:z=>qa(z,O,y)},null,8,["model-value","active-text","onChange"])])}),128))])]}),_:2},1024),e.createElementVNode("span",un,[e.createVNode(o,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:1},8,["modelValue"])])]),_:1})]),content:e.withCtx(y=>{var _,O,w,R,z,K,x,B,b,N,g,X,i,P,J,v,A,k;return[Cr(y)?(e.openBlock(),e.createBlock(r,{key:0,"popper-class":"file-popover",placement:"right",trigger:"hover",effect:"light",width:"auto"},{reference:e.withCtx(()=>[e.createElementVNode("span",cn,e.toDisplayString($e(y)),1)]),default:e.withCtx(()=>{var f,M;return[e.createElementVNode("div",dn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((M=y==null?void 0:y.row)==null?void 0:M[(f=y==null?void 0:y.column)==null?void 0:f.prop],E=>(e.openBlock(),e.createElementBlock("div",pn,[e.createElementVNode("div",{class:"prop-url",title:Ll(E),onClick:ae=>Wa(E)},e.toDisplayString(Ll(E)),9,fn),e.createElementVNode("div",{class:"prop-download",onClick:ae=>Ga(E)}," 下载 ",8,hn)]))),256))])]}),_:2},1024)):(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle({color:!Array.isArray($e(y))&&((O=(_=$e(y))==null?void 0:_.toString())!=null&&O.includes(".txt")||(R=(w=$e(y))==null?void 0:w.toString())!=null&&R.includes(".cpt")||(K=(z=$e(y))==null?void 0:z.toString())!=null&&K.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray($e(y))&&((B=(x=$e(y))==null?void 0:x.toString())!=null&&B.includes(".txt")||(N=(b=$e(y))==null?void 0:b.toString())!=null&&N.includes(".cpt")||(X=(g=$e(y))==null?void 0:g.toString())!=null&&X.includes(".cyd"))?"underline":"",cursor:!Array.isArray($e(y))&&((P=(i=$e(y))==null?void 0:i.toString())!=null&&P.includes(".txt")||(v=(J=$e(y))==null?void 0:J.toString())!=null&&v.includes(".cpt")||(k=(A=$e(y))==null?void 0:A.toString())!=null&&k.includes(".cyd"))?"pointer":"",marginLeft:(y==null?void 0:y.colIndex)===0?`${((y==null?void 0:y.level)??0)*20}px`:0}),onClick:f=>Ua($e(y))},e.toDisplayString($e(y)===0?"0":$e(y)),13,gn))]}),_:2},[((j=ol.value)==null?void 0:j.length)>0&&e.unref(Nl)!==e.unref(ye)?{name:"actions",fn:e.withCtx(({item:y})=>[e.createVNode(r,{title:"",placement:"left-start","popper-class":"menu-operate-popover"},{reference:e.withCtx(()=>[e.createVNode(o,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"},onClick:a[0]||(a[0]=e.withModifiers(()=>{},["stop"]))})]),default:e.withCtx(()=>[e.createElementVNode("div",en,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ha(ol.value,y),(_,O)=>(e.openBlock(),e.createElementBlock("div",{class:"menu-config-item",key:O,onClick:e.withModifiers(w=>Ml(_==null?void 0:_.label,y,{extra:_}),["stop"])},[e.createElementVNode("div",{style:e.normalizeStyle({color:_==null?void 0:_.textColor}),class:"extra-button-label"},e.toDisplayString(_==null?void 0:_.label),5)],8,ln))),128))])]),_:2},1024)]),key:"0"}:void 0,((q=ee.value)==null?void 0:q.length)>0?{name:"batchButton",fn:e.withCtx(y=>[e.withDirectives(e.createVNode(qr,{lockingPage:e.unref(Nl)===e.unref(ye),buttons:y.buttons,selectTableItems:Qe.value,onButtonClick:a[2]||(a[2]=_=>Ml(_,"",{}))},null,8,["lockingPage","buttons","selectTableItems"]),[[e.vShow,re.value]]),e.withDirectives(e.createElementVNode("div",null,null,512),[[e.vShow,!re.value]])]),key:"1"}:void 0]),1032,["pageObj","showIndex","isTree","summaryInfo","columns","defaultSort","isCardViewport","checkedColumns","tableData","isEditViewport","isShowPagination","allowSelect","extraButton","rowButton","cacheExtraButtons","isClearSelection"])):e.createCommentVNode("",!0),e.createVNode(Tl.ssDialog,{title:We.value,visible:Ie.value,width:Ba.value,onBeforeDestroy:Ra,style:{height:"74%"}},{default:e.withCtx(()=>[e.createElementVNode("div",yn,[e.createVNode(Xe.ssForm,{rowContents:we.value,isEnableWrap:!1,showOperator:!1,onChange:gr,onClickTrigger:Ja,isEdit:Bl.value,onBlurChange:za},null,8,["rowContents","isEdit"])])]),footer:e.withCtx(()=>[_l.value?(e.openBlock(),e.createElementBlock("div",vn,[e.createVNode(d,{onClick:a[7]||(a[7]=y=>Ie.value=!1),id:"themeBorderButton"},{default:e.withCtx(()=>a[14]||(a[14]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[14]}),e.createVNode(d,{class:"ok-button",onClick:a[8]||(a[8]=y=>xl(!0)),id:"themeButton"},{default:e.withCtx(()=>a[15]||(a[15]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[15]})])):e.createCommentVNode("",!0)]),_:1},8,["title","visible","width"]),e.createVNode(Tl.ssDialog,{title:We.value,visible:wl.value,width:Fl.value,onBeforeDestroy:a[10]||(a[10]=y=>wl.value=!1)},{default:e.withCtx(()=>[e.createVNode(Hr)]),footer:e.withCtx(()=>[e.createElementVNode("div",bn,[e.createVNode(d,{onClick:a[9]||(a[9]=y=>wl.value=!1),class:"cancel-button",id:"themeBorderButton"},{default:e.withCtx(()=>a[16]||(a[16]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[16]}),e.createVNode(d,{class:"ok-button",onClick:er,id:"themeButton"},{default:e.withCtx(()=>a[17]||(a[17]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[17]})])]),_:1},8,["title","visible","width"]),Me.value?(e.openBlock(),e.createBlock(Xe.ssFilePreview,{key:1,fileDataList:ul.value,onDestroy:Za},null,8,["fileDataList"])):e.createCommentVNode("",!0),se.value?(e.openBlock(),e.createBlock(Tl.ssDialog,{key:2,visible:se.value,onBeforeDestroy:pr,style:{height:"80vh",width:"80vw"},"body-class":"three-dialog-body","footer-class":"three-dialog-footer"},{default:e.withCtx(()=>[e.createVNode(ha.ThreeViewerHost,{files:vl.value,threeData:Le.value},null,8,["files","threeData"])]),_:1},8,["visible"])):e.createCommentVNode("",!0),e.createVNode(Tl.ssDialog,{visible:l.componentVisible,onBeforeDestroy:a[11]||(a[11]=y=>l.componentVisible=!1),width:Fl.value,style:{height:"70vh"}},{default:e.withCtx(()=>[e.createVNode(p,{dialogItem:sl.value},null,8,["dialogItem"])]),_:1},8,["visible","width"]),e.createVNode(Tl.ssDialog,{title:Te.title,visible:Te.show,width:Te.width,onBeforeDestroy:ir},{default:e.withCtx(()=>[e.createElementVNode("div",kn,[e.createVNode(Xe.ssForm,{rowContents:Te==null?void 0:Te.contents,formRules:Te==null?void 0:Te.formRules,showOperator:!1,buttonValue:Te.buttonValue,isEdit:Bl.value,isStartJustify:!1,isEnableWrap:!1,onOnButtonClick:tr},null,8,["rowContents","formRules","buttonValue","isEdit"])])]),_:1},8,["title","visible","width"])])}}},Sn=$l._export_sfc(mn,[["__scopeId","data-v-11fbb07d"]]);exports.formGetOptions=Wl;exports.getSelectRow=Hl;exports.ssTable=Sn;exports.useFormComp=Sa;exports.useFormToTableComp=va;
|
|
1
|
+
"use strict";const e=require("vue"),D=require("./index-C8qRkCgn.cjs"),te=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-IfK3OELs.cjs"),Xe=require("./index-BOXS_4tn.cjs"),ha=require("./threeViewerHost-CDahlUlC.cjs"),Pl=require("./index-DOCHgBta.cjs");require("./index.vue_vue_type_style_index_1_lang-D3OhDLLw.cjs");const $l=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Tl=require("./index-ejOAPEYs.cjs");require("./index-BIkQWptd.cjs");const ga=require("./isString--eJE54G5.cjs"),Wl=F=>F.match(/\((.*)\)/)[1],ya={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},placement:{type:String,default:"bottom"},width:{type:Number,default:200}},setup(F){const le=F,I=e.ref(null),$=e.ref(!1),L=e.ref(null);return e.watch(()=>le==null?void 0:le.isVisible,()=>{$.value=le==null?void 0:le.isVisible},{deep:!0,immediate:!0}),e.watch(()=>L.value,()=>{e.nextTick(()=>{var t,re;(re=(t=I.value)==null?void 0:t.updatePopper)==null||re.call(t)})},{deep:!0,immediate:!0}),(t,re)=>{const he=e.resolveComponent("el-popover");return e.openBlock(),e.createBlock(he,{visible:$.value,title:le==null?void 0:le.title,placement:le==null?void 0:le.placement,width:le==null?void 0:le.width,ref_key:"popOverRef",ref:I},{reference:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(t.$slots,"reference",{ref_key:"referenceRef",ref:L})])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(t.$slots,"content")])]),_:3},8,["visible","title","placement","width"])}}},Dr={key:0,class:"extra-button-content"},Tr={class:"table-operator-wrap"},Nr={class:"extra-button-filter"},Er={class:"form-content-value"},Ar={key:0,class:"extra-header"},Br={class:"drop-menu",style:{width:"120px"}},wr={key:0},_r={key:1},Ur={key:1,class:"extra-button-content tabs-button-wrapper"},Or={class:"table-operator-wrap"},jr={class:"extra-button-filter"},Lr={class:"form-content-value"},Mr={key:0,class:"extra-header"},Pr={class:"drop-menu",style:{width:"120px"}},$r={key:0},Fr={key:1},Vr={__name:"header",props:{pageLayout:{type:String,default:"vertical"},lockingPage:Boolean,level:{type:Number,default:1},compName:{type:String,default:"表格名称",required:!1},isDevMode:Boolean,selectNums:Number,dataNums:Number,filterValues:Array,buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick","filter","getImportData"],setup(F,{emit:le}){const I=le,$=F,L=e.ref(""),t=e.ref(!1),re=e.ref([]),he=e.ref([{label:"取消",background:"#999999"},{label:"清空",background:"#999999"},{label:"确认"}]),Se=[{label:"新增",icon:"Plus"},{label:"导入",icon:"import"},{label:"导出",icon:"export"}],ge=pe=>{const ve=pe.raw;if(!ve)return;const ce=new FileReader;ce.onload=Z=>{try{const G=new Uint8Array(Z.target.result),Ae=te.readSync(G,{type:"array"}),qe=Ae.SheetNames[0],se=Ae.Sheets[qe],Le=te.utils.decode_range(se["!ref"]).e.c+1,H=new Array(Le).fill(""),C=[];for(const Q in se){if(Q[0]==="!")continue;const{r:de,c:ke}=te.utils.decode_cell(Q);let Be=se[Q].v;if(se[Q].t==="n"&&Be>0&&Be<1e6&&(Be=new Date((Be-25569)*86400*1e3).toISOString().split("T")[0]),(Be==null||Be==="")&&(Be=""),de===0)H[ke]=Be;else{if(!C[de-1]){C[de-1]={};for(let Me=0;Me<Le;Me++)C[de-1][`col_${Me}`]=""}C[de-1][`col_${ke}`]=Be}}for(let Q=0;Q<Le;Q++)H[Q]===void 0&&(H[Q]="");const xe=C==null?void 0:C[0];if(!(xe!=null&&xe.hasOwnProperty("col_0")))return D.ElMessage.error("导入的数据列不匹配,请检查是否错位");I("getImportData",H,C)}catch(G){throw D.ElMessage.error(G.message),new Error(G.message)}},ce.readAsArrayBuffer(ve)},Je=pe=>{var ce;const ve=(ce=re.value)==null?void 0:ce.reduce((Z,G,Ae)=>(Ae===0?Z[G.label]=pe:Z[G.label]=G==null?void 0:G.value,Z),{});I("filter",ve,pe,!0)},Ye=pe=>{I("buttonClick",pe)},nl=pe=>{var ve,ce;re.value=(ce=(ve=te.getColumnChild(D.cloneDeep(pe)))==null?void 0:ve.filter(Z=>(Z==null?void 0:Z.label)!==""&&(Z==null?void 0:Z.label)!=="操作"))==null?void 0:ce.map(Z=>({label:(Z==null?void 0:Z.label)??"",value:"",name:(Z==null?void 0:Z.label)??"",isFormColHidden:Z==null?void 0:Z.isTableColHidden,width:2}))},Ee=e.ref(!1),al=pe=>{var ve;if((pe==null?void 0:pe.buttonName)==="确认"&&(I("filter",pe==null?void 0:pe.content),Ee.value=(pe==null?void 0:pe.content)&&Object.values(pe==null?void 0:pe.content).length>0),(pe==null?void 0:pe.buttonName)==="清空"){const ce=D.cloneDeep(pe==null?void 0:pe.content);for(const Z in ce)ce[Z]="";re.value=(ve=re.value)==null?void 0:ve.map(Z=>({...Z,value:""})),I("filter",ce),Ee.value=!1}t.value=!1},rl=()=>{var ve,ce;re.value=(ve=re.value)==null?void 0:ve.map(Z=>({...Z,value:""}));const pe=(ce=re.value)==null?void 0:ce.reduce((Z,G)=>(Z[G.label]=G.value,Z),{});I("filter",pe)};return e.onMounted(()=>{nl($.columns)}),e.watch(()=>$.columns,()=>{nl($.columns)},{deep:!0,immediate:!0}),(pe,ve)=>{var se,Fe,Le,H;const ce=e.resolveComponent("el-icon"),Z=e.resolveComponent("svg-icon"),G=e.resolveComponent("el-input"),Ae=e.resolveComponent("el-button"),qe=e.resolveComponent("el-upload");return F.pageLayout==="vertical"?(e.openBlock(),e.createElementBlock("div",Dr,[e.createElementVNode("div",{class:e.normalizeClass(F.compName?"table-name-wrap":""),style:e.normalizeStyle({background:($==null?void 0:$.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:(($==null?void 0:$.level)-1)*12+"px",fontWeight:600-(($==null?void 0:$.level)-1)*100>=400?600-(($==null?void 0:$.level)-1)*100:400,fontSize:17-($==null?void 0:$.level)>=14?17-($==null?void 0:$.level)+"px":"14px"})},e.toDisplayString(F.compName),7),e.createElementVNode("div",Tr,[e.createElementVNode("div",Nr,[e.createVNode(ya,{title:"",width:800,placement:"bottom-start",isVisible:t.value},{reference:e.withCtx(()=>{var C,xe,Q,de;return[e.createVNode(G,{modelValue:L.value,"onUpdate:modelValue":ve[1]||(ve[1]=ke=>L.value=ke),style:{"min-width":"80px"},placeholder:Ee.value?(Q=(xe=(C=F.filterValues)==null?void 0:C.filter(ke=>ke))==null?void 0:xe.slice(0,3))==null?void 0:Q.join("/"):"搜索","prefix-icon":e.unref(D.search_default),clearable:"",onInput:Je,disabled:((de=re.value)==null?void 0:de.length)===0},{suffix:e.withCtx(()=>{var ke,Be;return[!L.value&&((Be=(ke=F.filterValues)==null?void 0:ke.filter(Me=>Me))!=null&&Be.join("/"))?(e.openBlock(),e.createBlock(ce,{key:0,style:{cursor:"pointer"},onClick:rl},{default:e.withCtx(()=>[e.createVNode(e.unref(D.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:ve[0]||(ve[0]=ke=>t.value=!t.value)},[e.createVNode(Z,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:e.withCtx(()=>[e.createElementVNode("div",Er,[(e.openBlock(),e.createBlock(Xe.ssForm,{rowContents:re.value,buttonValue:he.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:he.value,isStartJustify:!1,onOnButtonClick:al},null,8,["rowContents","buttonValue"]))])]),_:1},8,["isVisible"])]),F.buttons&&((se=F.buttons)==null?void 0:se.length)>0?(e.openBlock(),e.createElementBlock("div",Ar,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Fe=F.buttons)==null?void 0:Fe.filter(C=>F.isDevMode||(C==null?void 0:C.label)!=="修改模板"),(C,xe)=>(e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:xe},[(C==null?void 0:C.type)==="upload"?(e.openBlock(),e.createBlock(qe,{key:0,class:"upload-button-wrap","on-change":ge,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!F.lockingPage},{default:e.withCtx(()=>[e.createVNode(Ae,{disabled:!!F.lockingPage,style:e.normalizeStyle({background:(C==null?void 0:C.background)??"var(--ssbutton-theme-bg)",color:(C==null?void 0:C.color)??"var(--ssbutton-theme-color)"})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C==null?void 0:C.label),1)]),_:2},1032,["disabled","style"])]),_:2},1032,["disabled"])):e.createCommentVNode("",!0),(C==null?void 0:C.type)==="popover"?(e.openBlock(),e.createBlock(Xe._sfc_main$1,{key:1},{dropTitle:e.withCtx(()=>[(C==null?void 0:C.type)==="popover"?(e.openBlock(),e.createBlock(Ae,{key:0,disabled:!!F.lockingPage,style:e.normalizeStyle({background:(C==null?void 0:C.background)??"var(--ssbutton-theme-bg)",color:(C==null?void 0:C.color)??"var(--ssbutton-theme-color)"})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C==null?void 0:C.label),1)]),_:2},1032,["disabled","style"])):e.createCommentVNode("",!0)]),dropMenu:e.withCtx(()=>[e.createElementVNode("div",Br,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C==null?void 0:C.contents,Q=>(e.openBlock(),e.createBlock(Ae,{key:Q==null?void 0:Q.label,disabled:!!F.lockingPage,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:de=>Ye(Q==null?void 0:Q.label)},{default:e.withCtx(()=>{var de,ke;return[e.createTextVNode(e.toDisplayString(Q==null?void 0:Q.label),1),(de=Q==null?void 0:Q.label)!=null&&de.includes("选中")?(e.openBlock(),e.createElementBlock("span",wr,"("+e.toDisplayString(F.selectNums)+")",1)):e.createCommentVNode("",!0),(ke=Q==null?void 0:Q.label)!=null&&ke.includes("全部")?(e.openBlock(),e.createElementBlock("span",_r,"("+e.toDisplayString(F.dataNums)+")",1)):e.createCommentVNode("",!0)]}),_:2},1032,["disabled","onClick"]))),128))])]),_:2},1024)):e.createCommentVNode("",!0),C!=null&&C.type?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ae,{key:2,id:"themeButton",disabled:!!F.lockingPage,style:e.normalizeStyle({background:(C==null?void 0:C.background)??"var(--ssbutton-theme-bg)",color:(C==null?void 0:C.color)??"var(--ssbutton-theme-color)"}),onClick:Q=>Ye(C==null?void 0:C.label)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C==null?void 0:C.label),1)]),_:2},1032,["disabled","style","onClick"]))]))),128))])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",Ur,[e.createElementVNode("div",Or,[e.createElementVNode("div",jr,[e.createVNode(ya,{title:"",width:800,placement:"bottom-start",isVisible:t.value},{reference:e.withCtx(()=>{var C,xe,Q,de;return[e.createVNode(G,{modelValue:L.value,"onUpdate:modelValue":ve[3]||(ve[3]=ke=>L.value=ke),style:{"min-width":"80px"},placeholder:Ee.value?(Q=(xe=(C=F.filterValues)==null?void 0:C.filter(ke=>ke))==null?void 0:xe.slice(0,3))==null?void 0:Q.join("/"):"搜索","prefix-icon":e.unref(D.search_default),clearable:"",onInput:Je,disabled:((de=re.value)==null?void 0:de.length)===0},{suffix:e.withCtx(()=>{var ke,Be;return[!L.value&&((Be=(ke=F.filterValues)==null?void 0:ke.filter(Me=>Me))!=null&&Be.join("/"))?(e.openBlock(),e.createBlock(ce,{key:0,style:{cursor:"pointer"},onClick:rl},{default:e.withCtx(()=>[e.createVNode(e.unref(D.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:ve[2]||(ve[2]=ke=>t.value=!t.value)},[e.createVNode(Z,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:e.withCtx(()=>[e.createElementVNode("div",Lr,[(e.openBlock(),e.createBlock(Xe.ssForm,{rowContents:re.value,buttonValue:he.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:he.value,isStartJustify:!1,onOnButtonClick:al},null,8,["rowContents","buttonValue"]))])]),_:1},8,["isVisible"])]),F.buttons&&((Le=F.buttons)==null?void 0:Le.length)>0?(e.openBlock(),e.createElementBlock("div",Mr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((H=F.buttons)==null?void 0:H.filter(C=>F.isDevMode||(C==null?void 0:C.label)!=="修改模板"),(C,xe)=>(e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:xe},[(C==null?void 0:C.type)==="upload"?(e.openBlock(),e.createBlock(qe,{key:0,class:"upload-button-wrap","on-change":ge,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:e.withCtx(()=>[e.createVNode(Ae,{style:{background:"transparent",color:"#666666"}},{icon:e.withCtx(()=>{var Q;return[e.createVNode(Z,{name:(Q=Se==null?void 0:Se.find(de=>(de==null?void 0:de.label)===(C==null?void 0:C.label)))==null?void 0:Q.icon},null,8,["name"])]}),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(C==null?void 0:C.label),1)]),_:2},1024)]),_:2},1024)):e.createCommentVNode("",!0),(C==null?void 0:C.type)==="popover"?(e.openBlock(),e.createBlock(Xe._sfc_main$1,{key:1},{dropTitle:e.withCtx(()=>[(C==null?void 0:C.type)==="popover"?(e.openBlock(),e.createBlock(Ae,{key:0,style:{background:"transparent",color:"#666666"}},{icon:e.withCtx(()=>{var Q;return[e.createVNode(Z,{name:(Q=Se==null?void 0:Se.find(de=>(de==null?void 0:de.label)===(C==null?void 0:C.label)))==null?void 0:Q.icon},null,8,["name"])]}),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(C==null?void 0:C.label),1)]),_:2},1024)):e.createCommentVNode("",!0)]),dropMenu:e.withCtx(()=>[e.createElementVNode("div",Pr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C==null?void 0:C.contents,Q=>(e.openBlock(),e.createBlock(Ae,{key:Q==null?void 0:Q.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:de=>Ye(Q==null?void 0:Q.label)},{default:e.withCtx(()=>{var de,ke;return[e.createTextVNode(e.toDisplayString(Q==null?void 0:Q.label),1),(de=Q==null?void 0:Q.label)!=null&&de.includes("选中")?(e.openBlock(),e.createElementBlock("span",$r,"("+e.toDisplayString(F.selectNums)+")",1)):e.createCommentVNode("",!0),(ke=Q==null?void 0:Q.label)!=null&&ke.includes("全部")?(e.openBlock(),e.createElementBlock("span",Fr,"("+e.toDisplayString(F.dataNums)+")",1)):e.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):e.createCommentVNode("",!0),C!=null&&C.type?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ae,{key:2,id:"themeButton",style:e.normalizeStyle({background:"transparent",color:(C==null?void 0:C.label)==="新增"?"var(--ssbutton-theme-bg)":"#666666"}),onClick:Q=>Ye(C==null?void 0:C.label)},{icon:e.withCtx(()=>{var Q;return[e.createVNode(Z,{name:(Q=Se==null?void 0:Se.find(de=>(de==null?void 0:de.label)===(C==null?void 0:C.label)))==null?void 0:Q.icon},null,8,["name"])]}),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(C==null?void 0:C.label),1)]),_:2},1032,["style","onClick"]))]))),128))])):e.createCommentVNode("",!0)])]))}}},Kr=$l._export_sfc(Vr,[["__scopeId","data-v-dc7dc670"]]),zr=e.defineComponent({__name:"batch",props:{lockingPage:Boolean,buttons:{type:Array,default:()=>[]},selectTableItems:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick"],setup(F,{emit:le}){const I=F,$=le,L=re=>{$("buttonClick",re)},t=re=>{var he;return re!=null&&re.includes("删除")?((he=I.selectTableItems)==null?void 0:he.length)>0?"warning-active-type":"warning-type":"default-type"};return(re,he)=>{const Se=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.buttons,ge=>(e.openBlock(),e.createBlock(Se,{key:ge==null?void 0:ge.label,disabled:!!F.lockingPage,class:e.normalizeClass(t(ge==null?void 0:ge.label)),onClick:Je=>L(ge==null?void 0:ge.label)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ge==null?void 0:ge.label),1)]),_:2},1032,["disabled","class","onClick"]))),128))])}}}),qr=$l._export_sfc(zr,[["__scopeId","data-v-70b12973"]]),va=D.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(F){this.selectArray=F},setSelectString(F){this.selectString=F}}}),Rr={class:"calculator-content"},Jr={class:"calculator-child"},Wr={class:"calculator-child"},Gr=e.defineComponent({__name:"calculator",setup(F){const le=e.ref(),I=e.ref();return e.onMounted(()=>{le.value=[{type:"Upload",label:"输入",name:"input"}],I.value=[{type:"Upload",label:"输出",name:"output"}]}),($,L)=>(e.openBlock(),e.createElementBlock("div",Rr,[e.createElementVNode("div",Jr,[e.createVNode(Xe.ssForm,{rowContents:le.value,isRowFlex:!0},null,8,["rowContents"])]),e.createElementVNode("div",Wr,[e.createVNode(Xe.ssForm,{rowContents:I.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),Hr=$l._export_sfc(Gr,[["__scopeId","data-v-73db0fe7"]]),Gl=(F,le)=>{let I=F,$=le;return Array.isArray(I)&&(I=I==null?void 0:I.map((L,t)=>{if(Array.isArray(L)){let re={};return L=L==null?void 0:L.forEach((he,Se)=>{var ge;(ge=$==null?void 0:$[Se])!=null&&ge.prop?re[$[Se].prop]=he:Array.isArray(he)&&(re.children=Gl(he,$))}),Object.assign(re,{id:t})}else return L})),I},ba=(F,le,I)=>{let $=F,L=le;return $=$==null?void 0:$.map((t,re)=>{var he,Se;return!Array.isArray(t)||!((he=L==null?void 0:L[re])!=null&&he.label)&&!I||(t.unshift(((Se=L==null?void 0:L[re])==null?void 0:Se.label)??""),t.some(ge=>Array.isArray(ge))&&(t=t==null?void 0:t.map(ge=>{var Je;return Array.isArray(ge)&&(ge=ba(ge,(Je=L==null?void 0:L[re])==null?void 0:Je.children,I)),ge}))),t}),$},Qr=(F,le,I)=>{if(le==="")return F==null?void 0:F.filter($=>($==null?void 0:$.id)!==I);{const $=le.split("-");return Xr(F,$,I)}},Xr=(F,le,I)=>{let $=F,L=le;return(L==null?void 0:L.length)===0?$=$==null?void 0:$.filter(t=>t.id!==I):$=$==null?void 0:$.map(t=>(t.id.toString()===(L==null?void 0:L[0])&&(L==null||L.shift(),t=ka(t,L,I)),t)),$},ka=(F,le,I)=>{var t,re;let $=F,L=le;return(L==null?void 0:L.length)===0?$.children=(t=$.children)==null?void 0:t.filter(he=>he.id!==I):$.children=(re=$.children)==null?void 0:re.map(he=>(he.id.toString()===(L==null?void 0:L[0])&&(L==null||L.shift(),he=ka(he,L,I)),he)),$},Yr=(F,le,I)=>{if(le==="")return I;{const $=le.split("-");return Zr(F,$,I)}},Zr=(F,le,I)=>{let $=F,L=le;return(L==null?void 0:L.length)===0?$=I:$=$==null?void 0:$.map(t=>(t.id.toString()===(L==null?void 0:L[0])&&(L==null||L.shift(),t=ma(t,L,I)),t)),$},ma=(F,le,I)=>{var t;let $=F,L=le;return(L==null?void 0:L.length)===0?$.children=I:$.children=(t=$.children)==null?void 0:t.map(re=>(re.id.toString()===(L==null?void 0:L[0])&&(L==null||L.shift(),re=ma(re,L,I)),re)),$},Sa=D.defineStore("formComp",{state:()=>({objUrl:[],blobUrls:[]}),actions:{setObjUrl(F){this.objUrl=F},setBlobUrls(F){this.blobUrls=F}}}),Hl=async(F,le)=>{var re,he,Se,ge,Je,Ye,nl,Ee,al,rl,pe,ve,ce,Z,G,Ae,qe;let I=(he=(re=D.cloneDeep(F))==null?void 0:re.optionUrl)==null?void 0:he.menuSelect,$=[];I==null||I.forEach(se=>{});let L="",t=await te.menuToParent(I);if(t==null||t.forEach(se=>{var Fe,Le,H,C;(se==null?void 0:se.name)===(((C=(H=(Le=(Fe=D.cloneDeep(F))==null?void 0:Fe.optionUrl)==null?void 0:Le.groupSelect)==null?void 0:H[0])==null?void 0:C.replaceAll("'",""))??"")&&(L=se==null?void 0:se.id)}),le){L=le;const se=await D.getInsofDataApi({id:L}),Fe=(Ye=(Je=(ge=(Se=se==null?void 0:se.data)==null?void 0:Se.result)==null?void 0:ge[0])==null?void 0:Je.key)==null?void 0:Ye.pageKey;t=await te.getItemData(Fe,sessionStorage.getItem("systemKey"),"")}if(L!==""){let se;le?se=(nl=t==null?void 0:t.find(H=>(H==null?void 0:H.id)===le))==null?void 0:nl.compData:se=(Ee=t==null?void 0:t.find(H=>{var C,xe,Q,de;return(H==null?void 0:H.name)===(((xe=(C=F==null?void 0:F.groupSelect)==null?void 0:C.split(":"))==null?void 0:xe[0])||((de=(Q=F==null?void 0:F.optionUrl)==null?void 0:Q.groupSelect)==null?void 0:de[0]))}))==null?void 0:Ee.compData;let Fe=(rl=(al=se==null?void 0:se.find(H=>(H==null?void 0:H.key)==="header"))==null?void 0:al.contents)==null?void 0:rl.map(H=>H==null?void 0:H.label);(ve=(pe=se==null?void 0:se.find(H=>(H==null?void 0:H.key)==="header"))==null?void 0:pe.contents)!=null&&ve.every(H=>Array.isArray(H))&&(Fe=(G=te.getColumnChild((Z=(ce=se==null?void 0:se.find(H=>(H==null?void 0:H.key)==="header"))==null?void 0:ce.contents)==null?void 0:Z[0]))==null?void 0:G.map(H=>H==null?void 0:H.prop));let Le=(qe=(Ae=se==null?void 0:se.find(H=>(H==null?void 0:H.key)==="tableContents"))==null?void 0:Ae.contents)==null?void 0:qe.map(H=>{if(Array.isArray(H))H=H==null?void 0:H.filter(C=>!(C!=null&&C.id));else{let C={};for(let xe in H)xe!=="id"&&(C[xe]=H==null?void 0:H[xe]);H=C}return H});Le==null||Le.forEach(H=>{Array.isArray(H)?$.push(te.getValueToObjectValue(H,Fe)):$.push(H)})}return $},Ir={class:"table-content"},en={class:"menu-config-wrap"},ln=["onClick"],an={key:0,class:"viewport-wrap"},rn=["onClick"],nn={title:"选择显示列信息"},on={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},tn=["title"],sn={class:"col-operate-wrap"},un={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},cn={class:"pop-view"},dn={class:"pop-wrapper"},pn={class:"file-list-pop"},fn=["title","onClick"],hn=["onClick"],gn=["onClick"],yn={class:"form-content"},vn={key:0,class:"dialog-footer"},bn={class:"dialog-footer"},kn={class:"form-content"},mn={__name:"index",props:{pageLayout:{type:String,default:"vertical"},level:{type:Number,default:1},compName:{type:String,default:"",required:!1},compNames:{type:Array,default:()=>[],required:!1},compItem:{type:Object,default:()=>{}},operatingForm:{type:Object,default:()=>{}},cacheNewData:{type:Object,default:()=>{}},config:Object,parentTableId:{type:Number,default:0},itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,isDevMode:Boolean,changedContent:{type:Object,default:()=>{}},showHeader:{type:Boolean,default:!0},allowSelect:{type:Boolean,default:!1},allowOperate:{type:Boolean,default:!0},allMapContents:{type:Object,default:()=>{}}},emits:["getSliceContLength","clickMainKey","change","contentChange","onButtonClick","contentClick","pageChange","rowClick","routeUrl"],setup(F,{emit:le}){var fa;const I=e.ref([]),$=Sa(D.pinia),L=e.ref(null),t=F,re=e.ref(t==null?void 0:t.allowSelect),he=e.ref((fa=t==null?void 0:t.config)==null?void 0:fa.showIndex),Se=e.ref(),ge=e.ref([{label:"排序",value:"sortable",checked:!1},{label:"筛选",value:"filterable",checked:!1},{label:"合计",value:"showSummary",checked:!1},{label:"编辑",value:"operable",checked:!1}]),Je=te.useOriginalState(D.pinia);let Ye="$R";const{originalPath:nl}=D.storeToRefs(Je),Ee=nl.value,al=e.ref(!1),rl=e.ref(!1),pe=e.ref(!1),ve=e.reactive({column:{},status:!1,text:"合计"}),ce=e.reactive({currentPage:1,pageSize:10,total:0,pageSizes:[5,10,20,50,100]}),Z=le,G=e.ref([]),Ae=e.reactive({prop:"",order:null}),qe=e.ref([]),se=e.ref(!1),Fe=e.ref(!1),Le=e.ref(null),{isUseBackdrop:H,initTrackFileType:C,getFileExtension:xe,setData:Q,getFileInfo:de,getFilesInfo:ke}=ha.useThreeSystem(),Be=e.ref([]),Me=e.ref(!1),ul=e.ref(),Ue=Pl.useMenuState(),{importLoading:Cn,activeMenuPath:ye,contentLoading:xn,linkMenuInfo:Ca}=D.storeToRefs(Ue),xa=te.useTableComp(D.pinia),De=Pl.useModelComp(D.pinia),{extraContents:be,cacheUpdatingData:gl,tableViewContents:yl,tableLoading:Dn,pageMapState:cl,lockingPage:Nl}=D.storeToRefs(De),ee=e.ref([]),El=e.ref([]),Al=e.ref(new Map);e.ref(!1);const Ze=e.ref("");e.ref();const Bl=e.ref(!0),dl=e.ref(0),Ql=e.ref(!0),We=e.ref(""),Ie=e.ref(!1),Da=e.ref({label:"查看三维模型"}),wl=e.ref(!1),Fl=e.ref(),Re=e.ref([]),ol=e.ref([]),_l=e.ref(!1),vl=e.ref([]),pl=e.ref([]),il=e.ref([]),we=e.ref([]),Ge=e.ref(),Pe=e.ref(),Ta=va(D.pinia),Ul=e.ref(),Vl=e.ref(0),Na=te.useUnit(D.pinia),{selectIndex:Ea,selectMenu:bl,selectTitle:Tn}=D.storeToRefs(Na),{selectString:tl}=D.storeToRefs(Ta),Aa=D.useLoginState(D.pinia),{loginUserInfo:fl}=D.storeToRefs(Aa),Ba=e.ref(720),He=e.ref(!1),Ol=e.ref(!1),Qe=e.ref([]),el=e.ref(),kl=e.ref(!0),Xl=e.ref(!0),sl=e.ref([]),wa=e.inject("contentRef");e.provide("contentRef",wa),e.watch(()=>{var l;return(l=ee.value)==null?void 0:l.length},l=>{ce.total=l}),e.watch(()=>yl.value,async()=>{var s,c,d,p,h,T,j,q,y,_,O,w,R,z,K,x,B,b;if(((s=yl.value)==null?void 0:s.length)===0||!((c=t==null?void 0:t.itemData)!=null&&c.find(N=>(N==null?void 0:N.key)==="columnPath"))||!((d=t==null?void 0:t.itemData)!=null&&d.find(N=>(N==null?void 0:N.key)==="pageColumn")))return;let l=(y=(q=(j=(T=(h=(p=t==null?void 0:t.itemData)==null?void 0:p.find(N=>(N==null?void 0:N.key)==="pageColumn"))==null?void 0:h.contents)==null?void 0:T.split("["))==null?void 0:j[1])==null?void 0:q.split("]"))==null?void 0:y[0],a=((R=(w=(O=(_=t==null?void 0:t.itemData)==null?void 0:_.find(N=>(N==null?void 0:N.key)==="pageColumn"))==null?void 0:O.contents)==null?void 0:w.split("["))==null?void 0:R[0])+((K=(z=yl.value)==null?void 0:z.find(N=>(N==null?void 0:N.key)===l))==null?void 0:K.value),o=((B=(x=t==null?void 0:t.itemData)==null?void 0:x.find(N=>(N==null?void 0:N.key)==="pageGroup"))==null?void 0:B.contents)??"",r=await te.getItemData(a,sessionStorage.getItem("systemKey"),""),n=(b=r==null?void 0:r.find(N=>(N==null?void 0:N.name)===(o===""?t==null?void 0:t.compName:o)))==null?void 0:b.compData;da(n,t.allMapContents)},{deep:!0});const _a=async(l,a)=>{var o,r,n,s,c;try{const d=await D.getInsofDataApi({id:(t==null?void 0:t.parentTableId)||(t==null?void 0:t.index)});let p;((o=d==null?void 0:d.data)==null?void 0:o.code)===200&&(p=((n=(r=d==null?void 0:d.data)==null?void 0:r.result)==null?void 0:n[0])||null);const h={type:"data",pageKey:t!=null&&t.parentTableId?(s=p==null?void 0:p.key)==null?void 0:s.pageKey:ye.value,tableId:(t==null?void 0:t.parentTableId)||(t==null?void 0:t.index),systemKey:sessionStorage.getItem("systemKey")},T=a==null?void 0:a.map(y=>{const _=Object.keys(y),O={};return _.forEach((w,R)=>{O[l[R]]=y[w]}),O}),j=T==null?void 0:T.map(y=>({key:h,value:{tableData:y}})),q=await D.batchAddInsofDataApi({dataList:j});((c=q==null?void 0:q.data)==null?void 0:c.code)===200?(De.setRefreshCurStructure(!0),D.ElMessage.success("导入数据成功")):D.ElMessage.error("导入数据响应失败")}catch(d){throw D.ElMessage.error("导入数据处理失败"),new Error(d)}},Ua=async l=>{var a,o,r,n,s;if((a=l==null?void 0:l.toString())!=null&&a.includes(".txt")||(o=l==null?void 0:l.toString())!=null&&o.includes(".cpt")||(r=l==null?void 0:l.toString())!=null&&r.includes(".cyd")){const c=await D.axios.get(l,{responseType:"blob",headers:{"Content-Type":"application/json"}}),d=new Blob([c.data],{type:"application/octet-stream;charset=UTF-8"});let p=URL.createObjectURL(d);ul.value=[{name:(s=l==null?void 0:l.split("/"))==null?void 0:s[((n=l==null?void 0:l.split("/"))==null?void 0:n.length)-1],blobUrl:p}],Me.value=!0}};e.onBeforeUnmount(()=>{Xl.value=!1;let l=Vl.value;Vl.value=l+1});const Yl=e.computed(()=>{var r,n;const l=(ce.currentPage-1)*ce.pageSize,a=l+ce.pageSize,o=(r=G.value)==null?void 0:r.find(s=>{var c;return(s==null?void 0:s.sortable)&&((c=s==null?void 0:s.label)==null?void 0:c.includes("时间"))});return o&&(Ae.order="descending",Ae.prop=o==null?void 0:o.prop),Z("getSliceContLength",ce),(n=ee.value)==null?void 0:n.slice(l,a)}),Oa=l=>{ce.currentPage=l,Z("getSliceContLength",ce)},ja=l=>{var a;ce.pageSize=l,l*ce.currentPage>((a=ee.value)==null?void 0:a.length)&&(ce.currentPage=1,ce.pageSize=10,D.ElMessage.warning("分页无效,返回第一页")),Z("getSliceContLength",ce)},La=(l,a)=>{var c,d;const o=(d=(c=G.value)==null?void 0:c.map(p=>p==null?void 0:p.prop))==null?void 0:d.filter(p=>p!=="operate");let r;const n=(l==null?void 0:l.length)===(o==null?void 0:o.length);if(l!=null&&l.includes("序号"))return D.ElMessage.error("导入的数据不需要包含序号列");if(r=n?l:l.slice(0,o==null?void 0:o.length),!(r==null?void 0:r.every(p=>o==null?void 0:o.find(h=>p===h))))return D.ElMessage.error("导入的数据表头不匹配");_a(r,a)},Ma=(l,a)=>{var o;De.setRefreshCurStructure(!1),((o=G.value)==null?void 0:o.length)===0||La(l,a)},Pa=(l,a,o,r)=>{const n=[],s=[],c=h=>Object.keys(h).length;for(const h in l)if(l[h]!==void 0){const T=l[h],j=[];for(const[q,y]of Object.entries(T))j.push(y),s.length<c(T)&&s.push(q);n.push(j)}n.unshift(s);const d=te.utils.aoa_to_sheet(n),p=te.utils.book_new();te.utils.book_append_sheet(p,d,r),te.writeFileSync(p,`${a}.xlsx`),Qe.value=[]},jl=async(l,a,o,r=!1,n)=>{var s,c,d,p,h,T,j,q;try{De.setRefreshCurStructure(!1);const y=await D.getInsofDataApi({id:t==null?void 0:t.index});if(((s=y==null?void 0:y.data)==null?void 0:s.code)===200){let _=(h=(p=(d=(c=y==null?void 0:y.data)==null?void 0:c.result)==null?void 0:d[0])==null?void 0:p.value)==null?void 0:h.pageData;r?_={..._,compData:(j=_==null?void 0:_.compData)==null?void 0:j.map(w=>{var R;return(w==null?void 0:w.key)==="header"?{...w,contents:(R=w==null?void 0:w.contents)==null?void 0:R.map(z=>({...z,[l]:o}))}:w})}:_={..._,compData:(T=_==null?void 0:_.compData)==null?void 0:T.map(w=>{var R,z;return(w==null?void 0:w.key)==="header"?{...w,contents:(R=w==null?void 0:w.contents)==null?void 0:R.map(K=>(K==null?void 0:K.prop)===(a==null?void 0:a.prop)?{...K,[l]:o}:K)}:(w==null?void 0:w.key)==="tableToForm"&&n?{...w,contents:(z=w==null?void 0:w.contents)==null?void 0:z.map(K=>(K==null?void 0:K.prop)===(a==null?void 0:a.prop)?{...K,[n]:o}:K)}:w})};const O=await D.updateInsofDataApi({id:t==null?void 0:t.index,value:{pageData:_}});((q=O==null?void 0:O.data)==null?void 0:q.code)===200?(D.ElMessage.success("编辑成功"),De.setRefreshCurStructure(!0)):D.ElMessage.error("编辑响应失败")}}catch(y){D.ElMessage.error(y)}},$a=async(l,a)=>{await jl("label",a,l)},Fa=async(l,a)=>{await jl("columnType",a,l,!1,"type")},Va=()=>{gl.value?He.value=!1:pa()},Ka=l=>{Qe.value=l},za=(l,a)=>{el.value===a?kl.value=!1:kl.value=!0,el.value=a==null?void 0:a.changeProp},ml=e.computed(()=>{var o,r,n;const l=(o=G.value)==null?void 0:o.some(s=>s==null?void 0:s.filterable);return document.documentElement.style.setProperty("--ssTable-header-filter-display",l?"inline-block":"none"),(n=(r=G.value)==null?void 0:r.filter(s=>(s==null?void 0:s.label)!=="操作"))==null?void 0:n.map(s=>({...s,filterable:!!(s!=null&&s.filterable),showSummary:!!(s!=null&&s.showSummary),operable:!!(s!=null&&s.operable)}))}),qa=async(l,a,o)=>{const r=D.cloneDeep(G.value);await e.nextTick(),G.value=r==null?void 0:r.map(n=>(o==null?void 0:o.label)===(n==null?void 0:n.label)?{...n,[a]:l}:n),await jl(a,o,l)},Kl=async(l,a)=>{await jl(a,null,l,!0)},Ra=()=>{Ie.value=!1},Ja=l=>{Z("clickTrigger",l)},Zl=async l=>{var s,c,d,p,h,T,j,q,y,_,O,w,R,z,K;const a=l==null?void 0:l.row,o=l==null?void 0:l.rowData,r=l==null?void 0:l.suffix;if((s=a==null?void 0:a.toString())!=null&&s.includes(".urdf")||l!=null&&l.isUrdf||r!=null&&r.includes(".urdf")){if(a.includes(",")){D.ElMessage.error("当前版本仅允许单个urdf预览!");return}if(H(a)){const B={files:[de(a)],data:{}};Q(B);return}vl.value=[{url:a,extension:xe(a)}],Fe.value=!0,Le.value={data:D.cloneDeep(o)},se.value=!0;return}let n=[];if((c=a==null?void 0:a.toString())!=null&&c.includes(".stl")||(d=a==null?void 0:a.toString())!=null&&d.includes(".STL")||(p=a==null?void 0:a.toString())!=null&&p.includes(".obj")||(h=a==null?void 0:a.toString())!=null&&h.includes(".mtl")){const x=(T=a==null?void 0:a.toString())==null?void 0:T.split(","),B=ke(x),b=B==null?void 0:B[0];if(H(b==null?void 0:b.extension)){Q({files:B,data:{}});return}vl.value=B,Fe.value=!1,se.value=!0;return}if((j=a==null?void 0:a.toString())!=null&&j.includes(".stl")||(q=a==null?void 0:a.toString())!=null&&q.includes(".STL")||(y=a==null?void 0:a.toString())!=null&&y.includes(".obj")||(_=a==null?void 0:a.toString())!=null&&_.includes(".mtl")||r!=null&&r.includes(".stl")||r!=null&&r.includes(".STL")||r!=null&&r.includes(".obj")||r!=null&&r.includes(".mtl")){let x,B=[],b={};if(Array.isArray(a)?x=a:x=a==null?void 0:a.split(","),x==null||x.forEach(N=>{N.includes(".mtl")?B.push(N):b.blob=b.blob?b.blob+","+N:N}),(B==null?void 0:B.length)>0&&(b.mtlBlobs=B),r&&(b.suffix=r),(w=(O=Object.values(b))==null?void 0:O[0])!=null&&w.includes("http:"))n.push(b);else{const N=new Blob([b.blob],{type:"application/octet-stream;charset=UTF-8"});let g=URL.createObjectURL(N),X="";(R=a==null?void 0:a.split("/"))==null||R.forEach((i,P)=>{var J;P===((J=a==null?void 0:a.split("/"))==null?void 0:J.length)-1&&(X=i)}),(z=b.blob)!=null&&z.includes(".stl")&&(X=(X==null?void 0:X.replaceAll(">",""))+".urdf"),ul.value=[{name:X,blobUrl:g}],Me.value=!0}}else{const x=await D.axios.get(a,{responseType:"blob",headers:{"Content-Type":"application/json"}}),B=new Blob([x.data],{type:"application/octet-stream;charset=UTF-8"});let b=URL.createObjectURL(B),N="";if((K=a==null?void 0:a.split("/"))==null||K.forEach((g,X)=>{var i;X===((i=a==null?void 0:a.split("/"))==null?void 0:i.length)-1&&(N=g)}),H(N)){const g=C(N),X=de(a);Q({files:[X],data:{trackFileType:g}});return}ul.value=[{name:N,blobUrl:b}],Me.value=!0}(n==null?void 0:n.length)>0&&$.setBlobUrls(n)},Ll=l=>{var r,n,s,c;if(l!=null&&l.downloadUrl)return l==null?void 0:l.name;const a=(c=(r=l==null?void 0:l.url)==null?void 0:r.split("."))==null?void 0:c[((s=(n=l==null?void 0:l.url)==null?void 0:n.split("."))==null?void 0:s.length)-1];return(l==null?void 0:l.name)+"."+a},Wa=async l=>{let a=null,o=null;if(l!=null&&l.downloadUrl){const n=await zl(),s=Xe.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),c=await D.axios.post(l==null?void 0:l.url,null,{responseType:"blob",headers:{Authorization:n,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}).finally(()=>{s.close()}),d=new Blob([c.data],{type:"application/octet-stream;charset=UTF-8"});a=URL.createObjectURL(d),o=l==null?void 0:l.name}else{const n=await te.downloadAvatarApi({url:l==null?void 0:l.url});!l.url.toUpperCase().includes(".OBJ")&&!l.url.toUpperCase().includes(".STL")&&!l.url.toUpperCase().includes(".MTL")&&!l.url.toUpperCase().includes(".URDF")?(a=URL.createObjectURL(n.data),o=Ll(l)):a=l==null?void 0:l.url}if(H(a)){const n={row:`${a}`,suffix:xe(o)};Zl(n);return}const r={name:o,blobUrl:a};ul.value=[r],Me.value=!0},Ga=async l=>{let a=null,o=null;if(l!=null&&l.downloadUrl){const s=await zl(),c=await D.axios.post(l==null?void 0:l.url,null,{responseType:"blob",headers:{Authorization:s,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}),d=new Blob([c.data],{type:"application/octet-stream;charset=UTF-8"});a=URL.createObjectURL(d),o=l==null?void 0:l.name}else{const s=await te.downloadAvatarApi({url:l==null?void 0:l.url});a=URL.createObjectURL(s.data),o=Ll(l)}const r={name:o,blobUrl:a},n=document.createElement("a");n.href=r.blobUrl,n.download=r.name,n.style.display="none",document.body.appendChild(n),n.click(),setTimeout(()=>{document.body.removeChild(n)},100)},Ha=(l,a)=>{var o;if(Object.values(a).length!==0)return Object.values(a).find(r=>{var n,s,c;return((n=r==null?void 0:r.toString())==null?void 0:n.includes(".txt"))||((s=r==null?void 0:r.toString())==null?void 0:s.includes(".cpt"))||((c=r==null?void 0:r.toString())==null?void 0:c.includes(".obj"))})?[...l,Da.value]:(o=t==null?void 0:t.config)!=null&&o.allowMove?[...l,{label:"迁移"}]:l},Qa=(l,a={})=>[...l==null?void 0:l.values()].filter(o=>Object.keys(a).every(r=>{var c;const n=o[r],s=(c=a[r])==null?void 0:c.toLowerCase();return s&&n&&typeof n=="string"?n.toLowerCase().includes(s):!0})),Il=e.ref([]),Xa=async(l,a,o=!1)=>{var r;if(l){if(De.setTableLoading(!0),Il.value=Object.values(l),l&&((r=Object.values(l))!=null&&r.every(n=>!n)))return ee.value=El.value;if(o){ee.value=[...Al.value.values()].filter(n=>Object.values(n).some(s=>typeof s=="string"?s==null?void 0:s.toLowerCase().includes(a==null?void 0:a.toLowerCase()):!1));return}ee.value=Qa(Al.value,l),De.setTableLoading(!1)}},Ya=async l=>{},ea=async(l,a,o,r)=>{var n,s,c,d,p,h,T,j,q,y,_,O,w,R,z,K,x,B,b,N;if(Z("clickMainKey",o),(r==null?void 0:r.isExistChild)===!0){let g=(n=r==null?void 0:r.columnType)==null?void 0:n.prop,X=r==null?void 0:r.data;if(sl.value=await te.getItemData(ye.value,sessionStorage.getItem("systemKey"),""),!sl.value){let P=(d=(c=(s=ye.value)==null?void 0:s.split("/"))==null?void 0:c.filter((J,v)=>{var A,k;return v!==((k=(A=ye.value)==null?void 0:A.split("/"))==null?void 0:k.length)-1}))==null?void 0:d.join("/");sl.value=await te.getItemData(P,sessionStorage.getItem("systemKey"),"")}let i=(p=sl.value)==null?void 0:p.filter(P=>(P==null?void 0:P.name)===g);sl.value=i==null?void 0:i.map(P=>{var J;return P.compData=(J=P.compData)==null?void 0:J.map(v=>{var A,k;return(v==null?void 0:v.key)==="tableContents"&&(A=v==null?void 0:v.contents)!=null&&A.every(f=>f==null?void 0:f.find(M=>M==null?void 0:M.id))&&(v.contents=(k=v==null?void 0:v.contents)==null?void 0:k.filter(f=>(f==null?void 0:f[1])===X)),v}),P}),Z("routeUrl",sl.value,{isEdit:!0,routerUrl:ye.value});return}if((r==null?void 0:r.data)==="查看"&&(l!=null&&l.every(g=>(g==null?void 0:g.url)&&(g==null?void 0:g.name)))){let g=D.cloneDeep(l);g=await((h=D.cloneDeep(g))==null?void 0:h.map(async i=>{var v,A,k,f;const P=await te.downloadAvatarApi({url:i==null?void 0:i.url});let J=URL.createObjectURL(P.data);return{name:(i==null?void 0:i.name)+"."+((f=(v=i==null?void 0:i.url)==null?void 0:v.split("."))==null?void 0:f[((k=(A=i==null?void 0:i.url)==null?void 0:A.split("."))==null?void 0:k.length)-1]),blobUrl:J}}));let X=await Promise.all(g);ul.value=X,Me.value=!0}if(D.cloneDeep(G.value),(r==null?void 0:r.isMainKey)===!0){Ue.setActiveMenuPath(void 0),De.setRouteToChildPath(void 0),De.setFixMenuStatus(!0);let g=(j=(T=t.itemData)==null?void 0:T.find(i=>(i==null?void 0:i.key)==="contentTableId"))==null?void 0:j.contents,X=(y=(q=t.itemData)==null?void 0:q.find(i=>(i==null?void 0:i.key)==="relatedFilter"))==null?void 0:y.index;if(X!==0){let i=(O=(_=G.value)==null?void 0:_[X])==null?void 0:O.prop;if((o==null?void 0:o[i])===(r==null?void 0:r.data)){let P=await D.getInsofDataApi({id:g}),J=(K=(z=(R=(w=P==null?void 0:P.data)==null?void 0:w.result)==null?void 0:R[0])==null?void 0:z.key)==null?void 0:K.pageKey;Ue.setActiveMenuPath(J+"/"+(r==null?void 0:r.data))}else{let P=await D.getInsofDataApi({key:{pageKey:D.cloneDeep(ye).value+"/"+(r==null?void 0:r.data),systemKey:sessionStorage.getItem("systemKey")}});((B=(x=P==null?void 0:P.data)==null?void 0:x.result)==null?void 0:B.length)>0&&Ue.setActiveMenuPath(D.cloneDeep(ye).value+"/"+(r==null?void 0:r.data))}}else{let i=await D.getInsofDataApi({key:{pageKey:D.cloneDeep(ye).value+"/"+(r==null?void 0:r.data),systemKey:sessionStorage.getItem("systemKey")}});((N=(b=i==null?void 0:i.data)==null?void 0:b.result)==null?void 0:N.length)>0&&Ue.setActiveMenuPath(D.cloneDeep(ye).value+"/"+(r==null?void 0:r.data))}}},Za=()=>{Me.value=!1},Ia=l=>{Z("rowClick",l)};e.watch(()=>t.changedContent,()=>{var o,r;if(!t.changedContent)return;let l=(o=ee.value)==null?void 0:o.map(n=>{var s;return n.id===((s=t.changedContent)==null?void 0:s.id)&&(n={...t.changedContent,id:t.changedContent.newId?t.changedContent.newId:t.changedContent.id},delete n.newId),n});const a=(r=t.itemData)==null?void 0:r.map(n=>((n==null?void 0:n.key)==="tableContents"&&(n.contents=l),n));ee.value=l,Z("contentChange",{contents:a,index:t.index}),Z("change",{content:l,index:t==null?void 0:t.index,buttonName:"",id:t==null?void 0:t.index})},{deep:!0,immediate:!0});const er=()=>{},lr=async()=>{const l=ye.value,a=sessionStorage.getItem("systemKey"),o=await te.getItemData(l,a,""),r=(o==null?void 0:o.find(d=>(d==null?void 0:d.name)==="方法明细"))||(o==null?void 0:o[0]),n=(r==null?void 0:r.compData)||[],s=n==null?void 0:n.find(d=>{const p=d==null?void 0:d.key;return p==="formContent"||p==="tableContents"});return s==null?void 0:s.contents},zl=async()=>`Bearer ${D.Local.get("access-token")}`,ar=async(l,{token:a,inputData:o}={})=>await D.axios.post(l,o,{headers:{Authorization:a}}).catch(n=>(Ue.setImportLoading(!1),Promise.reject(n))),rr=l=>{var r;let a={};const o=[];return a.form={},(r=D.cloneDeep(l))==null||r.forEach((n,s)=>{var c,d,p,h,T,j,q,y,_,O,w,R,z,K;if((n==null?void 0:n.comp)==="Table"){(d=(c=n==null?void 0:n.compData)==null?void 0:c.find(N=>(N==null?void 0:N.key)==="header"))==null||d.contents;let x=(T=(h=(p=n==null?void 0:n.compData)==null?void 0:p.find(N=>(N==null?void 0:N.key)==="tableContents"))==null?void 0:h.contents)==null?void 0:T.map(N=>N.slice(1));(O=(_=(y=(q=(j=n==null?void 0:n.compData)==null?void 0:j.find(N=>(N==null?void 0:N.key)==="header"))==null?void 0:q.contents)==null?void 0:y[0])==null?void 0:_[0])==null||O.label;let B=(R=(w=n==null?void 0:n.compData)==null?void 0:w.find(N=>(N==null?void 0:N.key)==="header"))==null?void 0:R.contents,b=[];x==null||x.forEach(N=>{let g=[];N==null||N.forEach((X,i)=>{var J;let P={};((J=B[i])==null?void 0:J.label)!=="操作"&&(P[B[i].label]=X,g.push(P))}),b.push(g)}),a[n.name]=b}else{const x=(K=(z=n.compData)==null?void 0:z.find(B=>(B==null?void 0:B.key)==="formContent"))==null?void 0:K.contents;x==null||x.forEach(B=>{var b,N;if(B.prop!==""){let g=B==null?void 0:B.value;Array.isArray(g)?g=((b=g==null?void 0:g[0])==null?void 0:b.oldUrl)||"http://222.92.178.198:62001/"+((N=g==null?void 0:g[0])==null?void 0:N.url):g=g.toString(),B={key:(B==null?void 0:B.prop)??(B==null?void 0:B.label),value:g},o.push(B)}})}}),a.form=te.getFormContents(o),a},nr=l=>{const a=[],o=r=>{r&&typeof r=="object"&&!Array.isArray(r)?Object.values(r).forEach(o):a.push(r)};return o(l),a},or=async(l,a,o)=>{var B,b,N,g,X,i,P,J,v,A,k;Ue.setImportLoading(!0),De.setFreshContent(!1);let r=await lr().catch(f=>(Ue.setImportLoading(!1),Promise.reject(f)));r=r==null?void 0:r.filter(f=>{var M;return((M=f==null?void 0:f.find(E=>E==null?void 0:E.id))==null?void 0:M.id)===(a==null?void 0:a.id)});let n=te.getEqualChild([(B=G.value)==null?void 0:B.filter(f=>(f==null?void 0:f.label)!=="操作")]);const s=(N=(b=te.tableToForm(r,n))==null?void 0:b[0])==null?void 0:N.find(f=>{const M=f==null?void 0:f.key;return M==="Interface"||M==="方法体"}),c=s==null?void 0:s.value;if(!c){console.log("未搜索到isMain, 缺少算法执行接口"),Ue.setImportLoading(!1);return}const d=G.value?te.getEqualChild([G.value]):[],p=d.find(f=>{const M=f==null?void 0:f.prop;return M==="Input1"||M==="输入数据.输入1"||M==="样本输入数据"}),h=p==null?void 0:p.prop;let T=a==null?void 0:a[h];const j=await zl().catch(f=>(Ue.setImportLoading(!1),Promise.reject(f)));let q=!0,y="";(g=G.value)==null||g.forEach(f=>{(f==null?void 0:f.prop)===h&&(q=!!(f!=null&&f.childPath),y=f==null?void 0:f.childPath)});let _="";if(q){let f=(i=(X=G.value)==null?void 0:X.find(S=>(S==null?void 0:S.isMainKey)===!0))==null?void 0:i.prop;_=a==null?void 0:a[f];let M=y==null?void 0:y.split(Ee),E=[];M==null||M.forEach((S,U)=>{(M==null?void 0:M.length)-1===U&&E.push(_),E.push(S)}),E=E==null?void 0:E[0];let ae=await te.getItemData(E,sessionStorage.getItem("systemKey"),""),Y=ae==null?void 0:ae.filter(S=>(S==null?void 0:S.name)===h);Y=Y==null?void 0:Y.map(S=>{var U;return S.compData=(U=S==null?void 0:S.compData)==null?void 0:U.map(V=>{var oe;return(V==null?void 0:V.key)==="tableContents"&&(V.contents=(oe=V==null?void 0:V.contents)==null?void 0:oe.filter(W=>(W==null?void 0:W[1])===(a==null?void 0:a[h]))),V}),S}),(!Y||(Y==null?void 0:Y.length)===0)&&(Y=ae,Y=Y==null?void 0:Y.map(S=>{var U;return S.compData=(U=S==null?void 0:S.compData)==null?void 0:U.map(V=>{var oe;return(V==null?void 0:V.key)==="tableContents"&&(V.contents=(oe=V==null?void 0:V.contents)==null?void 0:oe.filter(W=>{var ie,m;return(W==null?void 0:W[1])===(a==null?void 0:a[(m=(ie=G==null?void 0:G.value)==null?void 0:ie[0])==null?void 0:m.prop])})),V}),S})),T=rr(Y)}const O=await ar(c,{token:j,inputData:T}).catch(f=>(Ue.setImportLoading(!1),Promise.reject(f))),w=(P=O==null?void 0:O.data)==null?void 0:P.data,R=d.find(f=>(f==null?void 0:f.prop)==="Output1"),z=R==null?void 0:R.prop;let K=[],x=[];if(w&&((J=Object.values(w))==null?void 0:J.length)>0){let f=[];const M=new FormData,E=(v=nr(w))==null?void 0:v.map(async Y=>{var S,U;if(!Array.isArray(Y)&&(Y!=null&&Y.includes("http"))){let V=await D.axios.get(Y,{responseType:"blob"}),oe=(U=Y==null?void 0:Y.split("/"))==null?void 0:U[((S=Y==null?void 0:Y.split("/"))==null?void 0:S.length)-1];M.append("files",V.data,oe)}else f.push(Y)});if(await Promise.all(E),!te.isFormDataEmpty(M)){let Y=await te.uploadAmountApi(M),S=(k=(A=Y==null?void 0:Y.data)==null?void 0:A.result)==null?void 0:k.map(U=>{var V,oe,W,ie,m,u;return{name:(u=(m=(ie=(V=U==null?void 0:U.url)==null?void 0:V.split("/"))==null?void 0:ie[((W=(oe=U==null?void 0:U.url)==null?void 0:oe.split("/"))==null?void 0:W.length)-1])==null?void 0:m.split("."))==null?void 0:u[0],url:U==null?void 0:U.url}});f=[...f,...S]}let ae={};for(let Y in a)Y!=="id"&&(ae[Y]=a[Y]);ae[z]=f,x.push({id:a==null?void 0:a.id,value:{tableData:ae}})}(x==null?void 0:x.length)>0&&await D.batchUpdateInsofDataApi({dataList:x}),(K==null?void 0:K.length)>0&&await D.batchAddInsofDataApi({dataList:K}),xl(!0),Ue.setImportLoading(!1),De.setFreshContent(!0)},la=(l,a)=>(l=l==null?void 0:l.map(o=>{var r,n;return o!=null&&o.children&&((r=o.children)!=null&&r.find(s=>s.id===(a==null?void 0:a.id))?o.children=(n=o.children)==null?void 0:n.filter(s=>(s==null?void 0:s.id)!==(a==null?void 0:a.id)):o.children=la(o.children,a)),o}),l),Te=e.reactive({title:"迁移至",show:!1,width:"20%",selectRow:null,from:t==null?void 0:t.index,to:null,contents:[],formRules:{groupName:[{required:!0,message:"输入不能为空",trigger:"blur"},{validator:(l,a,o)=>{a===(t==null?void 0:t.index)?o(new Error("选择源不能和目标源一致")):o()}}]},buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"确认",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]}),ir=()=>{Te.show=!1},tr=l=>{var a,o;if((l==null?void 0:l.buttonName)==="取消")return Te.show=!1;Te.to=l==null?void 0:l.content,!(!(t!=null&&t.index)||!((a=Te.to)!=null&&a.groupName))&&(t==null?void 0:t.index)!==((o=Te.to)==null?void 0:o.groupName)&&(Z("change",{buttonName:"迁移",value:{from:Te.from,to:Te.to,data:Te.selectRow}}),Te.show=!1)},Ml=async(l,a,o)=>{var r,n,s,c,d,p,h,T,j,q,y,_,O,w,R;if(Ze.value="",_l.value=!0,Bl.value=!0,Z("onButtonClick",l,a),l==="删除")Pl.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var z,K;(z=ee.value)!=null&&z.find(x=>(x==null?void 0:x.id)===(a==null?void 0:a.id))?ee.value=(K=D.cloneDeep(ee.value))==null?void 0:K.filter(x=>(x==null?void 0:x.id)!==(a==null?void 0:a.id)):ee.value=la(D.cloneDeep(ee.value),a),Qr(Ul.value,bl.value,a==null?void 0:a.id),De.setTableLoading(t==null?void 0:t.index),Z("change",{content:ee.value,singleContent:a,index:t==null?void 0:t.index,type:"delete",buttonName:l,column:G.value})});else if(l==="批量删除"){if(((r=Qe.value)==null?void 0:r.length)===0)return D.ElMessage.warning("请先勾选操作的数据");Pl.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var K,x;const z=(K=Qe.value)==null?void 0:K.map(B=>B.id);ee.value=(x=D.cloneDeep(ee.value))==null?void 0:x.filter(B=>!(z!=null&&z.includes(B.id))),De.setTableLoading(t==null?void 0:t.index),Z("change",{content:ee.value,singleContent:null,selectItems:Qe.value,index:t==null?void 0:t.index,type:"batchDelete",buttonName:l,column:G.value})})}else if(l==="复制新增"){We.value="新增";const z=D.cloneDeep(a),K=(n=G.value)==null?void 0:n.find(b=>b==null?void 0:b.isMainKey),x=K||((s=G.value)==null?void 0:s[0]),B=(c=il.value)==null?void 0:c.find(b=>(b==null?void 0:b.label)==="新建");await ra(!0,B,{data:z,firstCol:x})}else if(l==="新增")We.value="新增",Cl(""),Ie.value=!0;else if(l==="编辑")We.value="编辑",Cl(a),Ie.value=!0;else if(l==="查看")We.value="查看",Cl(a),_l.value=!1,Bl.value=!1,Ie.value=!0;else if(l==="查看三维模型"){const z={};for(let x in a)x!=="id"&&(z[x]=a[x]);let K=(d=Object.values(z))==null?void 0:d[1];xa.setTableShowThree(K)}else if(((p=o==null?void 0:o.extra)==null?void 0:p.type)==="modelExample")We.value=l,wl.value=!0;else if(l==="新建"){let z=cl.value,K=[];for(let g in z)g!=null&&g.includes(`loading${((h=fl.value)==null?void 0:h.account)||((T=fl.value)==null?void 0:T.账号)}`)&&(K=[...K,...g]);let x=[];for(let g in z)g!=null&&g.includes(`updateLoading${((j=fl.value)==null?void 0:j.account)||((q=fl.value)==null?void 0:q.账号)}`)&&(x=[...x,...g]);let B=K==null?void 0:K.map(g=>g==null?void 0:g.id);const b=x==null?void 0:x.map(g=>g==null?void 0:g.id);B=[...D.cloneDeep(B),...b],(B==null?void 0:B.length)>0&&(B!=null&&B.every(g=>g!==null&&g))&&await D.batchDeleteInsofDataApi({ids:B});const N=(y=il.value)==null?void 0:y.find(g=>(g==null?void 0:g.label)==="新建");await ra(!1,N)}else if(l==="修改模板"){let z=D.cloneDeep(ye).value;De.setRouteToChildPath(z),Ue.setActiveMenuPath(z+Ee)}else if(l==="执行")or(l,a);else if(l!=null&&l.includes("导出")){if(l==="导出选中"&&((_=Qe.value)==null?void 0:_.length)===0)return D.ElMessage.warning(`请先勾选${l}的数据`);if(l==="导出全部"&&((O=ee.value)==null?void 0:O.length)===0)return D.ElMessage.warning("暂无数据导出");const z=(R=(w=G.value)==null?void 0:w.map(x=>x==null?void 0:x.label))==null?void 0:R.filter(x=>x!=="操作"),K=l==="导出全部"?D.cloneDeep(ee.value):D.cloneDeep(Qe.value);K==null||K.forEach(x=>{x==null||delete x.id}),Pa(K,t==null?void 0:t.compName,z,t==null?void 0:t.compName)}else l==="迁移"&&(Te.selectRow=a,Te.show=!0)},sr=async l=>{var o,r,n,s,c,d;const a=await D.getInsofDataApi({key:{pageKey:l,type:"structure",systemKey:sessionStorage.getItem("systemKey")}});if(((o=a==null?void 0:a.data)==null?void 0:o.code)===200)return Array.isArray((r=a==null?void 0:a.data)==null?void 0:r.result)&&((s=(n=a==null?void 0:a.data)==null?void 0:n.result)==null?void 0:s.length)>0?(d=(c=a==null?void 0:a.data)==null?void 0:c.result)==null?void 0:d.map(p=>{var h;return{id:p==null?void 0:p.id,...(h=p==null?void 0:p.value)==null?void 0:h.pageData}}):[]},ur=async(l,a)=>{var o,r,n,s,c,d,p,h,T,j,q,y,_,O,w,R,z,K,x,B;try{let b,N;const g=(o=cl.value[ye.value+Ee])==null?void 0:o.filter(f=>{var M;return((M=f==null?void 0:f.key)==null?void 0:M.type)==="structureMethod"}),X=(r=cl.value[ye.value+Ee])==null?void 0:r.filter(f=>{var M;return((M=f==null?void 0:f.key)==null?void 0:M.type)==="structure"}),i=g==null?void 0:g.find(f=>{var M,E;return((E=(M=f==null?void 0:f.value)==null?void 0:M.pageData)==null?void 0:E.method)==="保存"});if(!i)return;const P=(d=(c=cl.value[(s=(n=i==null?void 0:i.value)==null?void 0:n.pageData)==null?void 0:s.path])==null?void 0:c.filter(f=>{var M;return((M=f==null?void 0:f.key)==null?void 0:M.type)==="data"}))==null?void 0:d.find(f=>{var M,E,ae,Y;return((E=(M=f==null?void 0:f.value)==null?void 0:M.tableData)==null?void 0:E.算法名称)===((Y=(ae=i==null?void 0:i.value)==null?void 0:ae.pageData)==null?void 0:Y.method)});if(!P)return;const J={buttonName:(h=(p=i==null?void 0:i.value)==null?void 0:p.pageData)==null?void 0:h.method,api:(j=(T=P==null?void 0:P.value)==null?void 0:T.tableData)==null?void 0:j.算法体,content:X==null?void 0:X.map(f=>{var M;return(M=f==null?void 0:f.value)==null?void 0:M.pageData}),extraContent:[],extraValues:(y=(q=i==null?void 0:i.value)==null?void 0:q.pageData)==null?void 0:y.data,methodName:(O=(_=i==null?void 0:i.value)==null?void 0:_.pageData)==null?void 0:O.path};if(!l)return;const v={...l,compData:(w=l==null?void 0:l.compData)==null?void 0:w.map(f=>{var M;return(f==null?void 0:f.key)==="formContent"?{...f,contents:(M=f==null?void 0:f.contents)==null?void 0:M.map(E=>(E==null?void 0:E.prop)===a?{...E,value:""}:E)}:f})},A={key:{pageKey:ye.value+Ee,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),type:"structure"},value:{pageData:v}},k=await D.axios.post(J.api,A,{headers:{"Content-Type":"application/json"}});return((R=k==null?void 0:k.data)==null?void 0:R.code)===200&&(b=(K=(z=k==null?void 0:k.data)==null?void 0:z.result)==null?void 0:K.latestReportCode,N=(B=(x=k==null?void 0:k.data)==null?void 0:x.result)==null?void 0:B.status),{newMainKeyValue:b,newStatus:N}}catch(b){throw D.ElMessage.error(b),new Error(b)}},aa=(l,a,o,r)=>{var n;Z("contentChange",{contents:(n=l==null?void 0:l.compData)==null?void 0:n.map(s=>{var c;return(s==null?void 0:s.key)==="formContent"?{...s,contents:(c=s==null?void 0:s.contents)==null?void 0:c.map(d=>(d==null?void 0:d.key)===a?{...d,value:o}:Sl.value&&(d==null?void 0:d.prop)===Sl.prop?{...d,value:Sl.value}:d)}:s}),index:l==null?void 0:l.id},r)},Sl=e.reactive({prop:"状态",value:""}),cr=e.ref(["系统自动生成信息","审批意见"]),dr=async(l,a,o)=>{var p,h;let r=l==null?void 0:l[a==null?void 0:a.prop],n=1,s,c;const d=D.cloneDeep(ye).value+Ee+r;if(d){Sl.value="",s=(p=cl.value[d])==null?void 0:p.filter(q=>{var y;return((y=q==null?void 0:q.key)==null?void 0:y.type)==="structure"});const T=s==null?void 0:s.find(q=>{var y,_,O;return((O=(_=(y=q==null?void 0:q.value)==null?void 0:y.pageData)==null?void 0:_.comp)==null?void 0:O.toUpperCase())==="FORM"});c={...(h=T==null?void 0:T.value)==null?void 0:h.pageData,id:T==null?void 0:T.id};const j=await ur(c,a==null?void 0:a.prop);if(Sl.value=j==null?void 0:j.newStatus,j!=null&&j.newMainKeyValue)return j==null?void 0:j.newMainKeyValue}if(ee.value.some(T=>(T==null?void 0:T[a==null?void 0:a.prop])===r)){const T=r;for(;ee.value.some(j=>(j==null?void 0:j[a==null?void 0:a.prop])===`${T}(${n})`);)n++;r=`${T}(${n})`}return r},ra=async(l,a,o)=>{var c,d,p,h,T,j,q,y;let r,n;const s=await dr(o==null?void 0:o.data,o==null?void 0:o.firstCol);if(l?(r=D.cloneDeep(ye).value+Ee+((h=o==null?void 0:o.data)==null?void 0:h[(p=o==null?void 0:o.firstCol)==null?void 0:p.prop]),n=D.cloneDeep(ye).value+Ee+s):(r=D.cloneDeep(ye).value+Ee,n=D.cloneDeep(r)+`loading${((c=fl.value)==null?void 0:c.account)||((d=fl.value)==null?void 0:d.账号)}`),a){const _=(j=(T=cl.value[n])==null?void 0:T.filter(O=>{var w;return((w=O==null?void 0:O.key)==null?void 0:w.parentTable)===""}))==null?void 0:j.map(O=>{var w;return{id:O==null?void 0:O.id,...(w=O==null?void 0:O.value)==null?void 0:w.pageData}});if((_==null?void 0:_.length)>0)if(l){const O=_==null?void 0:_.find(w=>{var R;return((R=w==null?void 0:w.comp)==null?void 0:R.toUpperCase())==="FORM"});O&&aa(O,(q=o==null?void 0:o.firstCol)==null?void 0:q.label,s,ye.value)}else De.setRouteToChildPath(D.cloneDeep(ye).value),Ue.setActiveMenuPath(n);else if(await te.loadingConstruct(r,n,null,null,l?cr.value:null),l){const O=await sr(n);if((O==null?void 0:O.length)>0){const w=O==null?void 0:O.find(R=>{var z;return((z=R==null?void 0:R.comp)==null?void 0:z.toUpperCase())==="FORM"});w&&aa(w,(y=o==null?void 0:o.firstCol)==null?void 0:y.label,s,ye.value)}}else De.setRouteToChildPath(D.cloneDeep(ye).value),Ue.setActiveMenuPath(n)}else l?(Ze.value="",Pe.value=o==null?void 0:o.data,xl(!0,o==null?void 0:o.firstCol,s)):(De.setRouteToChildPath(D.cloneDeep(ye).value),Ue.setActiveMenuPath(n))},pr=()=>{se.value=!1,vl.value=[],Fe.value=!1},Cl=l=>{var c,d,p,h,T,j,q,y,_,O,w,R,z,K,x,B,b,N,g,X;const a=[];let o=[];for(let i in l)Array.isArray(l==null?void 0:l[i])&&o.push(i);qe.value=D.cloneDeep(G.value),(d=te.getColumnChild((c=D.cloneDeep(G.value))==null?void 0:c.filter(i=>(i==null?void 0:i.label)!=="操作")))==null||d.forEach((i,P)=>{var J;o.find(v=>v===(i==null?void 0:i.prop))||(i!=null&&i.formType&&((J=i==null?void 0:i.formType)==null?void 0:J.toUpperCase())==="SELECT"||i!=null&&i.menuId?a.push({label:(i==null?void 0:i.label)||(i==null?void 0:i.prop)||"",name:(i==null?void 0:i.prop)??"t"+P,prop:i==null?void 0:i.prop,type:"Select",value:(l==null?void 0:l[i==null?void 0:i.prop])??(i==null?void 0:i.value)??"",id:(i==null?void 0:i.id)??P,contents:(i==null?void 0:i.options)??[],width:1,isFormColHidden:i==null?void 0:i.isFormColHidden,relatedValueId:i==null?void 0:i.relatedValueId,disabled:i==null?void 0:i.disabled,optionUrl:{groupSelect:i==null?void 0:i.groupSelect,menuSelect:i==null?void 0:i.formMenuSelect,type:"Select",selectRelateType:i==null?void 0:i.selectRelateType,allSelectionContents:(i==null?void 0:i.allSelectionContents)??[],selectFilter:i==null?void 0:i.selectFilter,menuId:i==null?void 0:i.menuId,filterContent:i==null?void 0:i.filterContent}}):a.push({label:(i==null?void 0:i.label)||(i==null?void 0:i.prop)||"",prop:i==null?void 0:i.prop,name:(i==null?void 0:i.prop)??"t"+P,type:!(i!=null&&i.formType)||(i==null?void 0:i.formType)===""?"Input":i==null?void 0:i.formType,value:(l==null?void 0:l[i==null?void 0:i.prop])??(i==null?void 0:i.value)??"",id:(i==null?void 0:i.id)??P,contents:(i==null?void 0:i.options)??[],width:1,isFormColHidden:i==null?void 0:i.isFormColHidden,disabled:i==null?void 0:i.disabled,relatedValueId:i==null?void 0:i.relatedValueId}))}),l===""||!l||(Ze.value=(l==null?void 0:l.id)??"");let r=te.getColumnChild((p=D.cloneDeep(G.value))==null?void 0:p.filter(i=>(i==null?void 0:i.label)!=="操作"));Re.value&&((h=Re.value)==null?void 0:h.length)>0&&(Re.value=(T=D.cloneDeep(Re).value)==null?void 0:T.map(i=>{var J;let P=(i==null?void 0:i.prop)||((J=r==null?void 0:r.find(v=>(v==null?void 0:v.label)===(i==null?void 0:i.label)))==null?void 0:J.prop);return P&&(i.value=l[P]),i})),we.value=Re.value&&((j=Re.value)==null?void 0:j.length)>0?te.getTableFormToForm(Re.value):a;let n=[],s=(q=t.itemData)==null?void 0:q.filter(i=>(i==null?void 0:i.key)==="filterAllType");if((s==null?void 0:s.length)>0&&(n=(s==null?void 0:s.map(P=>P==null?void 0:P.value)).flat()),(n==null?void 0:n.length)>0){let i=n==null?void 0:n.find(J=>{var v;return(v=J==null?void 0:J.content)==null?void 0:v.includes("@Type")});if(i!=null&&i.content){let J=(O=(_=(y=i==null?void 0:i.content)==null?void 0:y.replace(":",Ye))==null?void 0:_.split(Ye))==null?void 0:O[1];if(((w=J==null?void 0:J.trim())==null?void 0:w.toUpperCase())==="MANUAL"){let v=(B=(x=(R=t.itemData)==null?void 0:R.filter(A=>(A==null?void 0:A.key)==="contentTableId"))==null?void 0:x[((K=(z=t.itemData)==null?void 0:z.filter(A=>(A==null?void 0:A.key)==="contentTableId"))==null?void 0:K.length)-1])==null?void 0:B.contents;we.value=(b=we.value)==null?void 0:b.map((A,k)=>{var f,M,E,ae,Y,S,U,V,oe,W,ie;return(f=A==null?void 0:A.optionUrl)!=null&&f.menuId&&(A.type="Select",(M=A==null?void 0:A.optionUrl)!=null&&M.menuId?(A.optionUrl.menuId=v,A.optionUrl.menuFilter=n,A.optionUrl.multiple=(Y=(ae=(E=n==null?void 0:n.find(m=>{var u;return(u=m==null?void 0:m.content)==null?void 0:u.includes("@Num")}))==null?void 0:E.content)==null?void 0:ae.split(":"))!=null&&Y[1]&&parseInt((V=(U=(S=n==null?void 0:n.find(m=>{var u;return(u=m==null?void 0:m.content)==null?void 0:u.includes("@Num")}))==null?void 0:S.content)==null?void 0:U.split(":"))==null?void 0:V[1])>1?!0:void 0,A.optionUrl.multipleLimit=(ie=(W=(oe=n==null?void 0:n.find(m=>{var u;return(u=m==null?void 0:m.content)==null?void 0:u.includes("@Num")}))==null?void 0:oe.content)==null?void 0:W.split(":"))==null?void 0:ie[1]):A.optionUrl={menuId:v,menuFilter:n}),A})}}let P=(N=we.value)==null?void 0:N.filter(J=>{var v,A;return((v=J==null?void 0:J.optionUrl)==null?void 0:v.menuId)&&((A=J==null?void 0:J.optionUrl)==null?void 0:A.menuId)!==""});if((P==null?void 0:P.length)>1){let J=P==null?void 0:P.map(f=>f==null?void 0:f.prop),v=P==null?void 0:P.map(f=>f==null?void 0:f.label),A=P==null?void 0:P.map(f=>f==null?void 0:f.value),k=(g=D.cloneDeep(P))==null?void 0:g[0];k.label=v==null?void 0:v.join("·"),k.value=A==null?void 0:A.join(" "),k.value.trim()===""&&(k.value=""),k.prop=J==null?void 0:J.join("·"),k.usingType="parent",we.value.unshift(k),we.value=(X=we.value)==null?void 0:X.map(f=>(J!=null&&J.find(M=>M===(f==null?void 0:f.prop))&&(f.isFormColHidden=!0),f))}}},fr=()=>{var a;const l=(a=L.value)==null?void 0:a.$el;l&&te.Sortable.create(l,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:o=>{var c;const{oldIndex:r,newIndex:n}=o;if(r===n)return;const s=ml.value.splice(r,1)[0];ml.value.splice(n,0,s),G.value=(c=G.value)==null?void 0:c.slice().sort((d,p)=>{if(d.label==="操作")return 1;if(p.label==="操作")return-1;const h=ml.value.findIndex(j=>j.label===d.label),T=ml.value.findIndex(j=>j.label===p.label);return h-T})}})};e.onMounted(()=>{Fl.value=window.innerWidth-240*2});const hr=()=>{e.nextTick(()=>{fr()})},ql=(l,a)=>{var r;if(!l&&!(l!=null&&l.children))return{contents:l,currentSelectContents:void 0};let o;return l.children=(r=l.children)==null?void 0:r.map(n=>{var s,c;if((n==null?void 0:n.id)===Ze.value){let d={};for(let p in n){let h=(s=a==null?void 0:a.find(T=>(T==null?void 0:T.prop)===p))==null?void 0:s.label;h?d[p]=(c=Pe.value)==null?void 0:c[h]:d[p]=n[p]}n=Object.assign(d,Pe.value),o=n}else{let d=ql(n,a);n=d==null?void 0:d.contents,o=d==null?void 0:d.currentSelectContents}return n}),{contents:l,currentSelectContents:o}},na=(l,a)=>{let o,r;return l!=null&&l.find(n=>(n==null?void 0:n.id)===Ze.value)?o=l==null?void 0:l.map(n=>{var s,c;if((n==null?void 0:n.id)===Ze.value){let d={};for(let p in n){let h=(s=a==null?void 0:a.find(T=>(T==null?void 0:T.prop)===p))==null?void 0:s.label;h?d[p]=(c=Pe.value)==null?void 0:c[h]:d[p]=n[p]}n=Object.assign(d,Pe.value),r=n}return n}):o=l==null?void 0:l.map(n=>{var s,c,d,p;if((n==null?void 0:n.id)===Ze.value){let h={};for(let T in n){let j=(s=a==null?void 0:a.find(q=>(q==null?void 0:q.prop)===T))==null?void 0:s.label;j?h[T]=(c=Pe.value)==null?void 0:c[j]:h[T]=n[T]}n=Object.assign(h,Pe.value),r=n}else n=(d=ql(n,a))==null?void 0:d.contents,r=(p=ql(n,a))==null?void 0:p.currentSelectContents;return n}),{newContents:o,currentSelectContents:r}},oa=(l,a,o)=>{var r,n;return l[a==null?void 0:a.prop]=o,typeof l.id=="number"&&(l.id=(r=l.id)==null?void 0:r.toString()),l.children&&((n=l.children)==null?void 0:n.length)>0&&(l.children=l.children.map(oa)),l},Rl=l=>{var o;const a=[];return a.push({...l}),l!=null&&l.children&&Array.isArray(l.children)&&((o=l.children)==null||o.forEach(r=>{a.push(...Rl(r))})),(a==null?void 0:a.length)>0?a==null?void 0:a.map(r=>{const n={...r};return delete n.children,n}):[]},xl=(l=!0,a,o)=>{var h,T,j,q,y,_,O,w,R,z,K,x,B,b,N,g,X,i,P,J,v,A,k,f,M,E,ae,Y,S;let r=te.getColumnChild((h=D.cloneDeep(G.value))==null?void 0:h.filter(U=>(U==null?void 0:U.label)!=="操作")),n,s=D.cloneDeep(ee.value);if(!Pe.value){Ie.value=!1;return}if(Ze.value===""){dl.value++;let U;a&&o?U={id:dl.value.toString(),[a==null?void 0:a.prop]:o,children:Pe.value.children}:U={id:dl.value.toString()},U!=null&&U.children&&(U={...U,children:(T=U.children)==null?void 0:T.map(V=>oa(V,a,o))}),s.push(Object.assign(Pe.value,U)),n=Object.assign(Pe.value,U)}else s=(j=na(s,r))==null?void 0:j.newContents,n=(q=na(s,r))==null?void 0:q.currentSelectContents;const c=(y=t.itemData)==null?void 0:y.filter(U=>(U==null?void 0:U.key)==="childTree")[0];if(((_=c==null?void 0:c.contents)==null?void 0:_.length)>0){We.value="编辑";const U=[];s==null||s.forEach((V,oe)=>{var ie;let W={};if(Array.isArray(V)){let m=[];V==null||V.filter(u=>!(u!=null&&u.id)).forEach((u,ue)=>{var fe,ne,me,Ce,je,Ve,Ne;if((ne=(fe=Ge.value)==null?void 0:fe[ue])!=null&&ne.prop&&!Array.isArray(u)){let Oe={};Oe[Ge.value[ue].column]=u,be!=null&&be.value&&((me=be==null?void 0:be.value)==null?void 0:me.length)>0&&((Ce=be==null?void 0:be.value)!=null&&Ce.find(_e=>JSON.stringify(_e==null?void 0:_e[0])===JSON.stringify(Oe)))&&(m=(je=be==null?void 0:be.value)==null?void 0:je.find(_e=>JSON.stringify(_e==null?void 0:_e[0])===JSON.stringify(Oe))),m&&m.length>0?W[Ge.value[ue].prop]=m!=null&&m.find(_e=>{var Ke;return((Ke=Object.keys(_e))==null?void 0:Ke[0])===Ge.value[ue].column})?(Ve=m==null?void 0:m.find(_e=>{var Ke;return((Ke=Object.keys(_e))==null?void 0:Ke[0])===Ge.value[ue].column}))==null?void 0:Ve[Ge.value[ue].column]:u:W[Ge.value[ue].prop]=u}else Array.isArray(u)&&((Ne=Ge.value[ue])!=null&&Ne.prop?W[Ge.value[ue].prop]=u:W.children=Gl(u,Ge.value))})}else W=V;Array.isArray(V)&&V.some(m=>m==null?void 0:m.id)?U.push(Object.assign(W,{id:(ie=V==null?void 0:V.find(m=>m.id))==null?void 0:ie.id})):W.id?U.push(W):U.push(Object.assign(W,{id:oe.toString()}))}),ee.value=ca(U,c,G.value)}else ee.value=s;sa(ee.value),Ul.value=ee.value;const d=Yr(Ul.value,bl.value,s);let p=[];if(gl.value?(p=(O=D.cloneDeep(gl).value.singleContent)==null?void 0:O.filter(U=>(U==null?void 0:U.id)!==(n==null?void 0:n.id)),p.push(n)):p=[n],He.value){const U={content:d,singleContent:((w=c==null?void 0:c.contents)==null?void 0:w.length)>0?p==null?void 0:p.flatMap(Rl):p,index:t==null?void 0:t.index,buttonName:"编辑",column:G.value,parentTableId:t==null?void 0:t.parentTableId};De.setCacheUpdatingData(U)}if(l){let U=(x=(K=(z=(R=t.itemData)==null?void 0:R.find(W=>(W==null?void 0:W.key)==="filterAllType"))==null?void 0:z.value)==null?void 0:K.find(W=>(W==null?void 0:W.value)==="onConditionContents"))==null?void 0:x.content,V=(B=t.itemData)==null?void 0:B.filter(W=>(W==null?void 0:W.key)==="filterAllType");V=[].concat(...V.map(W=>W.value));const oe={content:d,singleContent:((b=c==null?void 0:c.contents)==null?void 0:b.length)>0?Rl(n):n,index:t==null?void 0:t.index,buttonName:We.value,column:G.value,parentTableId:t==null?void 0:t.parentTableId,filter:U,allFilter:V,pathIndex:(g=(N=t.itemData)==null?void 0:N.find(W=>(W==null?void 0:W.key)==="relatedFilter"))==null?void 0:g.index};De.setTableLoading(t==null?void 0:t.index),Ie.value=!1,Pe.value=void 0,Z("change",oe)}if((P=(i=(X=we.value)==null?void 0:X[0])==null?void 0:i.optionUrl)!=null&&P.menuId){Ie.value=!1;let U=(J=t.itemData)==null?void 0:J.filter(V=>(V==null?void 0:V.key)==="filterAllType");if((U==null?void 0:U.length)>0){let V=U==null?void 0:U.map(ie=>ie==null?void 0:ie.value),oe=(k=(A=(v=V.flat().find(ie=>{var m;return(m=ie==null?void 0:ie.content)==null?void 0:m.includes("@Num")}))==null?void 0:v.content)==null?void 0:A.split(":"))==null?void 0:k[1];((E=(M=(f=V.flat().find(ie=>{var m;return(m=ie==null?void 0:ie.content)==null?void 0:m.includes("@Type:")}))==null?void 0:f.content)==null?void 0:M.split(":"))==null?void 0:E[1])!=="Manual"&&(oe=parseInt(oe),ee.value=(S=ee.value)==null?void 0:S.slice(((ae=ee.value)==null?void 0:ae.length)-oe,(Y=ee.value)==null?void 0:Y.length))}}};e.onUnmounted(()=>{G.value=[],ee.value=[],qe.value=[],Be.value=[],Re.value=[],ol.value=[],vl.value=[],pl.value=[],we.value=[],Qe.value=[],L.value=null});const ia=async(l,a,o)=>{var h,T,j,q,y,_,O,w,R,z,K;el.value=o==null?void 0:o.prop;const r=D.cloneDeep(t.itemData),n=r==null?void 0:r.map(x=>{var B;return(x==null?void 0:x.key)==="header"&&((B=x.contents)==null||B.map((b,N)=>{var g,X,i,P,J,v,A,k,f,M,E,ae,Y,S,U,V,oe,W,ie;return b.type=b!=null&&b.type?b.type:(P=(i=(X=(g=b==null?void 0:b.key)==null?void 0:g.split("$"))==null?void 0:X[1])==null?void 0:i.split("("))!=null&&P[0]?(v=(J=te.FormType)==null?void 0:J.find(m=>{var u,ue,fe,ne;return(m==null?void 0:m.key)===((ne=(fe=(ue=(u=b==null?void 0:b.key)==null?void 0:u.split("$"))==null?void 0:ue[1])==null?void 0:fe.split("("))==null?void 0:ne[0])}))==null?void 0:v.value:"Input",b.options=b!=null&&b.options?b.options:((f=(k=(A=b==null?void 0:b.key)==null?void 0:A.split("$"))==null?void 0:k[1])==null?void 0:f.length)>0?(Y=(ae=Wl((E=(M=b==null?void 0:b.key)==null?void 0:M.split("$"))==null?void 0:E[1]))==null?void 0:ae.split(","))==null?void 0:Y.map(m=>({label:m,value:m})):[],(S=b==null?void 0:b.key)!=null&&S.includes("$")&&(b.key=(V=(U=b==null?void 0:b.key)==null?void 0:U.split("$"))==null?void 0:V[0]),b.value=(oe=Object.values(a))==null?void 0:oe[N],b.optionUrl=b!=null&&b.formMenuSelect&&((W=b==null?void 0:b.formMenuSelect)==null?void 0:W.length)>0?{groupSelect:(ie=b==null?void 0:b.groupSelect)==null?void 0:ie.split(/[::]/).map(m=>m.trim()),menuSelect:b==null?void 0:b.formMenuSelect,selectRelateType:"",type:(b==null?void 0:b.formType)??(b!=null&&b.groupSelect?"Select":"")}:null,b})),x});let s=D.cloneDeep(we.value),c=(T=(h=D.cloneDeep(n))==null?void 0:h.find(x=>(x==null?void 0:x.key)==="header"))==null?void 0:T.contents;s=s==null?void 0:s.map(x=>{var B;return x.value=(B=c==null?void 0:c.find((b,N)=>N===(x==null?void 0:x.id)))==null?void 0:B.value,x});let d="",p=(y=(q=(j=D.cloneDeep(n))==null?void 0:j.find(x=>(x==null?void 0:x.key)==="header"))==null?void 0:q.contents)==null?void 0:y.find((x,B)=>{var b,N,g;return(x==null?void 0:x.label)===el.value||(B==null?void 0:B.toString())===((g=(N=(b=el.value)==null?void 0:b.split("a"))==null?void 0:N[1])==null?void 0:g.toString())});if((w=(O=(_=D.cloneDeep(n))==null?void 0:_.find(x=>(x==null?void 0:x.key)==="header"))==null?void 0:O.contents)==null||w.forEach(x=>{var B,b,N,g,X;d===""&&((N=(b=(B=x==null?void 0:x.optionUrl)==null?void 0:B.groupSelect)==null?void 0:b[1])!=null&&N.includes("["))&&(d=(X=(g=x==null?void 0:x.optionUrl)==null?void 0:g.groupSelect)==null?void 0:X[1])}),(R=p==null?void 0:p.optionUrl)!=null&&R.menuSelect){let x=await Hl(p),B;if(x==null||x.forEach(b=>{var N,g,X,i,P,J,v,A,k,f;d===((g=(N=p==null?void 0:p.optionUrl)==null?void 0:N.groupSelect)==null?void 0:g[1])&&((P=(i=(X=p==null?void 0:p.optionUrl)==null?void 0:X.groupSelect)==null?void 0:i[1])!=null&&P.includes("["))&&((f=D.cloneDeep(b))==null?void 0:f[(k=(A=(v=(J=p==null?void 0:p.optionUrl)==null?void 0:J.groupSelect)==null?void 0:v[1])==null?void 0:A.replaceAll("[",""))==null?void 0:k.replaceAll("]","")])===(p==null?void 0:p.value)&&(B=b)}),B){let b=D.cloneDeep(s);b=b==null?void 0:b.map(g=>{var X,i,P,J,v,A,k,f,M,E,ae;return(B!=null&&B[g==null?void 0:g.label]||B!=null&&B[(J=(P=(i=(X=g==null?void 0:g.optionUrl)==null?void 0:X.groupSelect)==null?void 0:i[1])==null?void 0:P.replaceAll("[",""))==null?void 0:J.replaceAll("]","")])&&((k=(A=(v=g==null?void 0:g.optionUrl)==null?void 0:v.groupSelect)==null?void 0:A[1])!=null&&k.includes("["))&&(g.value=(B==null?void 0:B[g==null?void 0:g.label])||(B==null?void 0:B[(ae=(E=(M=(f=g==null?void 0:g.optionUrl)==null?void 0:f.groupSelect)==null?void 0:M[1])==null?void 0:E.replaceAll("[",""))==null?void 0:ae.replaceAll("]","")])),g}),ee.value=(z=D.cloneDeep(ee.value))==null?void 0:z.map(g=>{if((g==null?void 0:g.id)===(a==null?void 0:a.id)){const X={};return b==null||b.forEach(i=>{X[i.name]=i.value}),X.id=g==null?void 0:g.id,X}return g});let N=D.cloneDeep(b);N=N==null?void 0:N.map(g=>{var X,i,P,J;return(i=(X=g==null?void 0:g.optionUrl)==null?void 0:X.menuSelect)!=null&&i.some(v=>v==null?void 0:v.includes)&&(g.optionUrl.menuSelect=(J=(P=g==null?void 0:g.optionUrl)==null?void 0:P.menuSelect)==null?void 0:J.map(v=>{var A,k,f,M;if(v!=null&&v.includes("[")){let E=(k=(A=v==null?void 0:v.replaceAll("[","").replaceAll("]",""))==null?void 0:A.split(":"))==null?void 0:k[1];v=(M=(f=D.cloneDeep(b))==null?void 0:f.find(ae=>(ae==null?void 0:ae.label)===E))==null?void 0:M.value}return v})),g}),ee.value=(K=D.cloneDeep(ee.value))==null?void 0:K.map(g=>{if((g==null?void 0:g.id)===(a==null?void 0:a.id)){const X={};return N==null||N.forEach(i=>{X[i.name]=i.value}),X.id=g==null?void 0:g.id,X}return g})}}},gr=async l=>{var j,q,y,_,O,w,R,z,K,x,B,b,N,g,X,i,P,J;if(!l)return;Pe.value=l;const a=D.cloneDeep(t.itemData);let o=a==null?void 0:a.map(v=>{var A;return(v==null?void 0:v.key)==="header"&&((A=v.contents)==null||A.map((k,f)=>{var M,E,ae,Y,S,U,V,oe,W,ie,m,u,ue,fe,ne,me,Ce,je,Ve;return k.type=k!=null&&k.type?k.type:(Y=(ae=(E=(M=k==null?void 0:k.key)==null?void 0:M.split("$"))==null?void 0:E[1])==null?void 0:ae.split("("))!=null&&Y[0]?(U=(S=te.FormType)==null?void 0:S.find(Ne=>{var Oe,_e,Ke,ll;return(Ne==null?void 0:Ne.key)===((ll=(Ke=(_e=(Oe=k==null?void 0:k.key)==null?void 0:Oe.split("$"))==null?void 0:_e[1])==null?void 0:Ke.split("("))==null?void 0:ll[0])}))==null?void 0:U.value:"Input",k.options=k!=null&&k.options?k.options:((W=(oe=(V=k==null?void 0:k.key)==null?void 0:V.split("$"))==null?void 0:oe[1])==null?void 0:W.length)>0?(ue=(u=Wl((m=(ie=k==null?void 0:k.key)==null?void 0:ie.split("$"))==null?void 0:m[1]))==null?void 0:u.split(","))==null?void 0:ue.map(Ne=>({label:Ne,value:Ne})):[],(fe=k==null?void 0:k.key)!=null&&fe.includes("$")&&(k.key=(me=(ne=k==null?void 0:k.key)==null?void 0:ne.split("$"))==null?void 0:me[0]),k.value=(Ce=Object.values(l))==null?void 0:Ce[f],k.optionUrl=k!=null&&k.formMenuSelect&&((je=k==null?void 0:k.formMenuSelect)==null?void 0:je.length)>0?{groupSelect:(Ve=k==null?void 0:k.groupSelect)==null?void 0:Ve.split(/[::]/).map(Ne=>Ne.trim()),menuSelect:k==null?void 0:k.formMenuSelect,selectRelateType:"",type:(k==null?void 0:k.formType)??(k!=null&&k.groupSelect?"Select":"")}:null,k})),v}),r=we.value,n=(q=(j=D.cloneDeep(o))==null?void 0:j.find(v=>(v==null?void 0:v.key)==="header"))==null?void 0:q.contents;if(n=n==null?void 0:n.filter(v=>(v==null?void 0:v.label)!=="操作"),n.push({label:"操作",type:"operate"}),r=r==null?void 0:r.map(v=>{var A;return v.value=v.value??((A=n==null?void 0:n.find((k,f)=>(k==null?void 0:k.prop)===(v==null?void 0:v.name)))==null?void 0:A.value),v}),!kl.value)return;let s="";(y=el.value)!=null&&y.includes("·")&&(el.value=(O=(_=el.value)==null?void 0:_.split("·"))==null?void 0:O[0]);let c=(z=(R=(w=D.cloneDeep(o))==null?void 0:w.find(v=>(v==null?void 0:v.key)==="header"))==null?void 0:R.contents)==null?void 0:z.find((v,A)=>{var k,f,M;return(v==null?void 0:v.label)===el.value||(A==null?void 0:A.toString())===((M=(f=(k=el.value)==null?void 0:k.split("a"))==null?void 0:f[1])==null?void 0:M.toString())}),d=(K=c==null?void 0:c.optionUrl)==null?void 0:K.menuSelect,p=!0;(b=(B=(x=D.cloneDeep(o))==null?void 0:x.find(v=>(v==null?void 0:v.key)==="header"))==null?void 0:B.contents)==null||b.forEach(v=>{var A,k,f,M,E,ae;p&&((f=(k=(A=v==null?void 0:v.optionUrl)==null?void 0:A.groupSelect)==null?void 0:k[1])!=null&&f.includes("["))&&(s=(E=(M=v==null?void 0:v.optionUrl)==null?void 0:M.groupSelect)==null?void 0:E[1],JSON.stringify(d)===JSON.stringify((ae=v==null?void 0:v.optionUrl)==null?void 0:ae.menuSelect)&&(p=!1))});let h=D.cloneDeep(r);h=h==null?void 0:h.map(v=>{var A,k;return(v==null?void 0:v.type)==="Select"&&((k=(A=v==null?void 0:v.optionUrl)==null?void 0:A.allSelectionContents)==null?void 0:k.length)>0&&(v.optionUrl.contactValue=l),v.value=l==null?void 0:l[v==null?void 0:v.prop],v}),we.value=D.cloneDeep(h);let T=(X=(g=(N=we.value)==null?void 0:N.find(v=>{var A;return(A=v==null?void 0:v.optionUrl)==null?void 0:A.menuId}))==null?void 0:g.optionUrl)==null?void 0:X.menuId;if((i=c==null?void 0:c.optionUrl)!=null&&i.menuSelect&&kl.value||T){let v=await Hl(c,T),A;if((P=c==null?void 0:c.optionUrl)==null||P.menuSelect,v==null||v.forEach(k=>{var f,M,E,ae,Y,S,U,V,oe,W,ie,m,u,ue,fe;if(s===((M=(f=c==null?void 0:c.optionUrl)==null?void 0:f.groupSelect)==null?void 0:M[1])&&((Y=(ae=(E=c==null?void 0:c.optionUrl)==null?void 0:E.groupSelect)==null?void 0:ae[1])!=null&&Y.includes("["))&&((W=D.cloneDeep(k))==null?void 0:W[(oe=(V=(U=(S=c==null?void 0:c.optionUrl)==null?void 0:S.groupSelect)==null?void 0:U[1])==null?void 0:V.replaceAll("[",""))==null?void 0:oe.replaceAll("]","")])===(c==null?void 0:c.value)&&(A=k),T){let ne=(m=(ie=we.value)==null?void 0:ie.find(Ce=>{var je;return(je=Ce==null?void 0:Ce.optionUrl)==null?void 0:je.menuId}))==null?void 0:m.prop,me=l[ne];ne!=null&&ne.includes("·")&&(me=(ue=(u=l[ne])==null?void 0:u.split(" "))==null?void 0:ue[0],ne=(fe=ne==null?void 0:ne.split("·"))==null?void 0:fe[0]),k[ne]===me&&(A=k)}}),A){let k=D.cloneDeep(r);k=k==null?void 0:k.map(E=>{var ae,Y,S,U,V,oe,W,ie,m,u,ue,fe,ne,me,Ce,je,Ve;return(A!=null&&A[E==null?void 0:E.prop]||A!=null&&A[(U=(S=(Y=(ae=E==null?void 0:E.optionUrl)==null?void 0:ae.groupSelect)==null?void 0:Y[1])==null?void 0:S.replaceAll("[",""))==null?void 0:U.replaceAll("]","")])&&((W=(oe=(V=E==null?void 0:E.optionUrl)==null?void 0:V.groupSelect)==null?void 0:oe[1])!=null&&W.includes("["))&&(E!=null&&E.relatedValueId)&&(E.value=(A==null?void 0:A[E==null?void 0:E.prop])||(A==null?void 0:A[(ue=(u=(m=(ie=E==null?void 0:E.optionUrl)==null?void 0:ie.groupSelect)==null?void 0:m[1])==null?void 0:u.replaceAll("[",""))==null?void 0:ue.replaceAll("]","")])),T&&(A!=null&&A[E==null?void 0:E.prop])&&(E!=null&&E.relatedValueId)?E.value=(A==null?void 0:A[E==null?void 0:E.prop])||(A==null?void 0:A[(Ce=(me=(ne=(fe=E==null?void 0:E.optionUrl)==null?void 0:fe.groupSelect)==null?void 0:ne[1])==null?void 0:me.replaceAll("[",""))==null?void 0:Ce.replaceAll("]","")]):E.value=(Ve=(je=we.value)==null?void 0:je.find(Ne=>(Ne==null?void 0:Ne.prop)===(E==null?void 0:E.prop)))==null?void 0:Ve.value,E}),we.value=D.cloneDeep(k);let f=D.cloneDeep(k);f=f==null?void 0:f.map(E=>{var ae,Y,S,U,V,oe;return(Y=(ae=E==null?void 0:E.optionUrl)==null?void 0:ae.menuSelect)!=null&&Y.some(W=>W==null?void 0:W.includes("["))&&(E.optionUrl.oldMenuSelect=(U=(S=D.cloneDeep(E))==null?void 0:S.optionUrl)==null?void 0:U.menuSelect,E.optionUrl.menuSelect=(oe=(V=E==null?void 0:E.optionUrl)==null?void 0:V.menuSelect)==null?void 0:oe.map(W=>{var ie,m,u,ue;if(W!=null&&W.includes("[")){let fe=(m=(ie=W==null?void 0:W.replaceAll("[","").replaceAll("]",""))==null?void 0:ie.split(":"))==null?void 0:m[1];W=(ue=(u=D.cloneDeep(k))==null?void 0:u.find(ne=>(ne==null?void 0:ne.label)===fe))==null?void 0:ue.value}return W})),E}),we.value=f;let M={};(J=we.value)==null||J.forEach(E=>{M[E.prop]=E==null?void 0:E.value}),Pe.value=M}}kl.value=!1},yr=l=>l?(l==null?void 0:l.toUpperCase())==="INPUT"?"TEXTAREA":l:"TEXTAREA",vr=l=>{var s,c;const a=(c=(s=Re.value)==null?void 0:s.find(d=>(d==null?void 0:d.label)===(l==null?void 0:l.label)))==null?void 0:c.multiple,o=l==null?void 0:l.prop;if((l==null?void 0:l.formType)!="Select")return;ee.value.forEach(d=>{const p=d==null?void 0:d[o];a&&ga.isString(p)&&(d[o]=[p]),!a&&!ga.isString(p)&&(d[o]="")})},ta=(l,a)=>{var o;return a==null||a.forEach(r=>{l[r==null?void 0:r.prop]=r==null?void 0:r.value}),l.children&&((o=l.children)==null?void 0:o.length)>0&&(l.children=l.children.map(r=>ta(r,a))),l},Jl=l=>{var o,r,n,s,c,d;Cl("");const a=(o=we.value)==null?void 0:o.reduce((p,h)=>(p[h.name]=h.value,p),{});if(((r=Object.keys(a))==null?void 0:r.length)>0){Pe.value=a,Ze.value="",dl.value=(n=ee.value)==null?void 0:n.length,pl.value=(s=il.value)==null?void 0:s.filter(h=>(h==null?void 0:h.label)!=="新增");const p=(d=(c=qe.value)==null?void 0:c.filter(h=>(h==null?void 0:h.label)!=="操作"))==null?void 0:d.map(h=>{var j,q,y;const T=(q=(j=Re.value)==null?void 0:j.find(_=>(_==null?void 0:_.label)===(h==null?void 0:h.label)))==null?void 0:q.multiple;return vr(h),{...h,contents:(h==null?void 0:h.options)??[],optionUrl:h!=null&&h.formMenuSelect&&((y=h==null?void 0:h.formMenuSelect)==null?void 0:y.length)>0?{groupSelect:h==null?void 0:h.groupSelect,menuSelect:h==null?void 0:h.formMenuSelect,selectRelateType:"",type:h==null?void 0:h.formType,multiple:T}:null}});G.value=p==null?void 0:p.map(h=>ta(h,[{prop:"type",value:"edit"},{prop:"columnType",value:yr(h==null?void 0:h.formType)||(h==null?void 0:h.columnType)}])),l==="createClick"&&xl(!1)}},hl={START:"开始时间",END:"结束时间",HOURS:"工时"},br=(l,a)=>Number(te.dayjs(a).diff(te.dayjs(l),"day",!0).toFixed(1)),sa=l=>{var s;const a=t.itemData,o=(s=a==null?void 0:a.find(c=>(c==null?void 0:c.key)==="header"))==null?void 0:s.contents,r=new Map;return o==null||o.forEach((c,d)=>{const{label:p}=c;r.set(p,d)}),!r.has(hl.START)||!r.has(hl.END)||!r.has(hl.HOURS)?l:l==null?void 0:l.map(c=>{const d=c==null?void 0:c[hl.START],p=c==null?void 0:c[hl.END],h=br(d,p);return d&&p&&(c[hl.HOURS]=`${h}天`),c})},ua=(l,a,o=0)=>{if(o>((a==null?void 0:a.length)??""))return l;const r=a==null?void 0:a[o],n=new Map;for(const c of l){const d=c[r];n.has(d)||n.set(d,[]),n.get(d)&&n.get(d).push(c)}const s=[];for(const[c,d]of n){const[p,...h]=d,T={...p};o+1===((a==null?void 0:a.length)??"")?T.children=d==null?void 0:d.map(j=>(j.level=D.cloneDeep(o)+1,j)).filter((j,q)=>q!==0):h.length>0&&(T.children=ua(h,a,o+1)),T.level=o,s.push(T)}return s},ca=(l,a,o)=>{var n;if(!(a!=null&&a.contents)||((n=a==null?void 0:a.contents)==null?void 0:n.length)===0)return l;let r=[];return r=ua(l,a==null?void 0:a.contents,0),r},da=(l,a)=>{var q,y,_,O,w,R,z,K,x,B,b,N,g,X,i,P,J,v,A,k,f,M,E,ae,Y;const o=l==null?void 0:l.filter(S=>(S==null?void 0:S.key)==="header");l==null||l.filter(S=>(S==null?void 0:S.key)==="tableIndexColumn")[0];const r=l==null?void 0:l.filter(S=>(S==null?void 0:S.key)==="childTree")[0];let n=a;const s=l==null?void 0:l.find(S=>(S==null?void 0:S.key)==="page"),c=l==null?void 0:l.find(S=>(S==null?void 0:S.key)==="rowButton"),d=l==null?void 0:l.find(S=>(S==null?void 0:S.key)==="extraButton"),p=l==null?void 0:l.filter(S=>(S==null?void 0:S.key)==="tableContents"),h=l==null?void 0:l.filter(S=>(S==null?void 0:S.key)==="tableIndex");Re.value=(y=(q=l==null?void 0:l.filter(S=>(S==null?void 0:S.key)==="tableToForm"))==null?void 0:q[0])==null?void 0:y.contents,Ql.value=(s==null?void 0:s.contents)??!0;let T=[];tl.value===""?T=o==null?void 0:o[0]:T=(o==null?void 0:o.find(S=>(S==null?void 0:S.selectLabel)==="("+tl.value+")"))??(o==null?void 0:o.find(S=>!(S!=null&&S.selectLabel)));let j=[];if(tl.value===""?j=h==null?void 0:h[0]:j=(h==null?void 0:h.find(S=>(S==null?void 0:S.selectLabel)==="("+tl.value+")"))??(h==null?void 0:h.find(S=>!(S!=null&&S.selectLabel))),((_=T==null?void 0:T.contents)==null?void 0:_.length)>0){let S=[];if(T!=null&&T.contents.some(m=>Array.isArray(m)&&(m==null?void 0:m.find(u=>u.children))))bl.value===""?S=(w=(O=te.getGradeColumns(T==null?void 0:T.contents))==null?void 0:O[0])==null?void 0:w.filter(m=>!Array.isArray(m)):(bl.value.split("-"),S=(R=te.getGradeColumns(T==null?void 0:T.contents))==null?void 0:R[0]);else{let m=T!=null&&T.contents.some(u=>Array.isArray(u))?(z=T==null?void 0:T.contents)==null?void 0:z[0]:T==null?void 0:T.contents;m==null||m.forEach((u,ue)=>{var me,Ce,je,Ve,Ne;let fe="";(Ce=(me=ye.value)==null?void 0:me.split("/"))==null||Ce.forEach(Oe=>{var _e,Ke,ll;if(Oe!==""){let ze=(ll=(Ke=(_e=Oe==null?void 0:Oe.split(Ee+"updateLoading"))==null?void 0:_e[0])==null?void 0:Ke.split(Ee+"loading"))==null?void 0:ll[0];fe=fe===""?fe+ze:fe+"/"+ze}}),fe=fe+Ee+(u==null?void 0:u.directiveLabel);const ne=(je=Re.value)==null?void 0:je.find(Oe=>(Oe==null?void 0:Oe.prop)===(u==null?void 0:u.prop));S.push({label:(u==null?void 0:u.label)??"",prop:(u==null?void 0:u.label)==="操作"?"operate":(u==null?void 0:u.prop)??"a"+ue,width:u!=null&&u.width?parseInt(u.width):"",fixed:(u==null?void 0:u.fixed)??void 0,sortable:(u==null?void 0:u.sortable)??!1,filterable:(u==null?void 0:u.filterable)??!1,operable:(u==null?void 0:u.operable)??!1,showSummary:(u==null?void 0:u.showSummary)??!1,align:(u==null?void 0:u.align)??"left",showOverflowTooltip:(u==null?void 0:u.showOverflowTooltip)??!0,isNotDrag:(u==null?void 0:u.isNotDrag)??!1,isEditCol:(u==null?void 0:u.isEditCol)??!1,isOperate:(u==null?void 0:u.isOperate)??!1,id:(u==null?void 0:u.id)??ue,type:(u==null?void 0:u.label)==="操作"?"operate":void 0,formType:(u==null?void 0:u.formType)??(u!=null&&u.groupSelect?"Select":""),isTableColHidden:u==null?void 0:u.isTableColHidden,isFormColHidden:u==null?void 0:u.isFormColHidden,disabled:u==null?void 0:u.disabled,options:(u==null?void 0:u.options)??[],value:(u==null?void 0:u.value)??"",formMenuSelect:(u==null?void 0:u.formMenuSelect)??[],isRoute:(u==null?void 0:u.isRoute)??!1,groupSelect:u!=null&&u.groupSelect?(Ve=u==null?void 0:u.groupSelect)==null?void 0:Ve.replaceAll('"',"").split(":"):[],isMainKey:(u==null?void 0:u.isMainKey)||(u==null?void 0:u.directiveLabel)==="#isMain",columnType:(ne==null?void 0:ne.type)||(u==null?void 0:u.columnType)||"TEXTAREA",directiveLabel:u==null?void 0:u.directiveLabel,directiveColor:(u==null?void 0:u.directiveColor)??!1,isExistChild:!!(u!=null&&u.directiveLabel&&!(n!=null&&n[fe])&&!((Ne=u==null?void 0:u.directiveLabel)!=null&&Ne.includes("@"))&&(u==null?void 0:u.directiveLabel)!=="#isMain"),childPath:(u==null?void 0:u.directiveLabel)!=="#isMain"?fe:void 0,allSelectionContents:(u==null?void 0:u.allSelectionContents)??[],selectFilter:u==null?void 0:u.selectFilter,menuId:u==null?void 0:u.menuId,filterContent:u==null?void 0:u.filterContent,relatedValueId:u==null?void 0:u.relatedValueId})})}G.value=te.getNewColumnChild(S),Be.value=te.getNewColumnChild(S),I.value=(K=G.value)==null?void 0:K.map(m=>m==null?void 0:m.label),rl.value=(x=G.value)==null?void 0:x.every(m=>m==null?void 0:m.filterable),pe.value=(B=G.value)==null?void 0:B.every(m=>m==null?void 0:m.operable),al.value=(b=G.value)==null?void 0:b.every(m=>m==null?void 0:m.sortable);let U=(g=(N=te.getAllLeafNodes(G.value))==null?void 0:N.filter(m=>(m==null?void 0:m.type)!=="operate"))==null?void 0:g.map((m,u)=>({prop:(m==null?void 0:m.prop)??"a"+u,column:m.label}));Ge.value=U;let V=[];tl.value===""?V=p==null?void 0:p[0]:V=(p==null?void 0:p.find(m=>(m==null?void 0:m.selectLabel)==="("+tl.value+")"))??(p==null?void 0:p.find(m=>!(m!=null&&m.selectLabel)));let oe=Array.isArray((X=V==null?void 0:V.contents)==null?void 0:X[0])&&((i=V==null?void 0:V.contents)!=null&&i[0].every(m=>Array.isArray(m)))?(P=V==null?void 0:V.contents)==null?void 0:P[0]:V==null?void 0:V.contents;j!=null&&j.contents&&((J=j==null?void 0:j.contents)==null?void 0:J.length)!==0&&(oe=(v=D.cloneDeep(oe))==null?void 0:v.map((m,u)=>{if(!Array.isArray(m)){let ue={};for(let fe in m)fe!=="id"&&fe!=="index"&&(ue[fe]=m[fe]);m=Object.values(ue)}return m}));const W=!!((A=G.value)!=null&&A.find(m=>m.prop==="index"));oe=ba(oe,j==null?void 0:j.contents,W);const ie=[];oe==null||oe.forEach((m,u)=>{var fe;let ue={};if(Array.isArray(m)){let ne=[];m==null||m.filter(me=>!(me!=null&&me.id)).forEach((me,Ce)=>{var je,Ve,Ne,Oe,_e,Ke;if((je=U==null?void 0:U[Ce])!=null&&je.prop&&!Array.isArray(me)){let ll={};ll[U[Ce].column]=me,be!=null&&be.value&&((Ve=be==null?void 0:be.value)==null?void 0:Ve.length)>0&&((Ne=be==null?void 0:be.value)!=null&&Ne.find(ze=>JSON.stringify(ze==null?void 0:ze[0])===JSON.stringify(ll)))&&(ne=(Oe=be==null?void 0:be.value)==null?void 0:Oe.find(ze=>JSON.stringify(ze==null?void 0:ze[0])===JSON.stringify(ll))),ne&&ne.length>0?ue[U[Ce].prop]=ne!=null&&ne.find(ze=>{var Dl;return((Dl=Object.keys(ze))==null?void 0:Dl[0])===U[Ce].column})?(_e=ne==null?void 0:ne.find(ze=>{var Dl;return((Dl=Object.keys(ze))==null?void 0:Dl[0])===U[Ce].column}))==null?void 0:_e[U[Ce].column]:me:ue[U[Ce].prop]=me}else Array.isArray(me)&&((Ke=U[Ce])!=null&&Ke.prop?ue[U[Ce].prop]=me:ue.children=Gl(me,U))})}else ue=m;Array.isArray(m)&&m.some(ne=>ne==null?void 0:ne.id)?ie.push(Object.assign(ue,{id:(fe=m==null?void 0:m.find(ne=>ne.id))==null?void 0:fe.id})):ue.id?ie.push(ue):ie.push(Object.assign(ue,{id:u.toString()}))}),ee.value=ca(ie,r,G.value),El.value=ie,(k=El.value)==null||k.forEach(m=>{var u;(u=Al.value)==null||u.set(m.id,m)})}else G.value=[],qe.value=[],ee.value=[],El.value=[],Al.value=new Map;((f=c==null?void 0:c.contents)==null?void 0:f.length)>0?ol.value=c==null?void 0:c.contents:ol.value=[],((M=d==null?void 0:d.contents)==null?void 0:M.length)>0?(pl.value=d==null?void 0:d.contents,il.value=d==null?void 0:d.contents):(pl.value=[],il.value=[]),dl.value=((E=ee==null?void 0:ee.value)==null?void 0:E.length)??0,sa(ee.value),Ul.value=ee.value,He.value&&(G.value=(Y=(ae=qe.value)==null?void 0:ae.filter(S=>(S==null?void 0:S.label)!=="操作"))==null?void 0:Y.map(S=>{var U;return{...S,type:"edit",optionUrl:S!=null&&S.formMenuSelect&&((U=S==null?void 0:S.formMenuSelect)==null?void 0:U.length)>0?{groupSelect:S==null?void 0:S.groupSelect,menuSelect:S==null?void 0:S.formMenuSelect,selectRelateType:"",type:S==null?void 0:S.formType}:null}}),Jl())};e.watch(()=>[t.itemData,tl.value,Ea.value,bl.value,be==null?void 0:be.value],async()=>{var l,a,o,r,n,s;if((l=t==null?void 0:t.itemData)!=null&&l.find(c=>(c==null?void 0:c.key)==="columnPath")&&!((a=yl.value)!=null&&a.find(c=>{var d,p;return(c==null?void 0:c.key)===((p=(d=t==null?void 0:t.itemData)==null?void 0:d.find(h=>(h==null?void 0:h.key)==="columnPath"))==null?void 0:p.contents)}))){let c=yl.value,d={key:(r=(o=t==null?void 0:t.itemData)==null?void 0:o.find(p=>(p==null?void 0:p.key)==="columnPath"))==null?void 0:r.contents,value:(s=(n=t==null?void 0:t.itemData)==null?void 0:n.find(p=>(p==null?void 0:p.key)==="columnUsingPath"))==null?void 0:s.contents};c!=null&&c.find(p=>(p==null?void 0:p.key)===(d==null?void 0:d.key))?c=c==null?void 0:c.map(p=>((p==null?void 0:p.key)===(d==null?void 0:d.key)&&(p.value=d.value),p)):c.push(d),De.setTableViewContents(c)}da(t.itemData,t.allMapContents)},{deep:!0,immediate:!0}),e.watch(()=>t==null?void 0:t.operatingForm,l=>{l!=null&&l.form&&(Cl(l==null?void 0:l.form),We.value=l==null?void 0:l.dialogTitle,_l.value=!0,Ie.value=!0)},{immediate:!0,deep:!0});const pa=()=>{var l;(l=Se.value)!=null&&l.includes("read")&&(He.value=!He.value)},kr=()=>{Ol.value=!Ol.value};e.watch(()=>{var l;return(l=t==null?void 0:t.config)==null?void 0:l.viewport},l=>{var a;Se.value=l,(l==null?void 0:l.length)===0?He.value=!1:(l!=null&&l.includes("read")||(He.value=!0),l!=null&&l.includes("edit")||(He.value=!1)),he.value=((a=t==null?void 0:t.config)==null?void 0:a.showIndex)||He.value},{immediate:!0}),e.watch(()=>He.value,l=>{var a;l?(Jl("viewChange"),De.setCacheUpdatingData(null)):(pl.value=il.value,G.value=Be.value,gl.value&&(De.setTableLoading(t==null?void 0:t.index),Z("change",gl.value))),re.value=l,he.value=l||((a=t==null?void 0:t.config)==null?void 0:a.showIndex)},{immediate:!0}),e.watch(()=>{var l;return(l=Yl.value)==null?void 0:l.length},l=>{l===0&&(ce.currentPage=1)}),e.watch(()=>t==null?void 0:t.compNames,l=>{Te.contents=[{label:"列表名",prop:"groupName",name:"列表名",type:"select",value:"",id:0,contents:l||[],width:1}]},{immediate:!0}),e.ref(!1);const mr=(l,a)=>{var o;Jl("createClick"),a===ce.pageSize&&(ce.currentPage=Math.ceil(((o=ee.value)==null?void 0:o.length)/ce.pageSize))},Sr=(l,a,o)=>{var r;ia(o,l,a),Pe.value=D.cloneDeep(l),Ze.value=l==null?void 0:l.id,dl.value=(r=ee.value)==null?void 0:r.length,We.value=typeof(l==null?void 0:l.id)=="string"?"新增":"编辑",xl(!1)},$e=l=>{var p,h,T,j,q,y,_,O,w,R;const{row:a,column:o,item:r,slotData:n}=l;let s=a!=null&&a[o==null?void 0:o.prop]||(a==null?void 0:a[o==null?void 0:o.prop])===0?((h=(p=a==null?void 0:a[o==null?void 0:o.prop])==null?void 0:p[0])==null?void 0:h.contents)??((a==null?void 0:a[o==null?void 0:o.prop])===0?"0":a==null?void 0:a[o==null?void 0:o.prop]):((j=(T=a==null?void 0:a[r==null?void 0:r.prop])==null?void 0:T[0])==null?void 0:j.contents)??(a==null?void 0:a[r==null?void 0:r.prop])??((y=(q=n==null?void 0:n[r==null?void 0:r.prop])==null?void 0:q[0])==null?void 0:y.contents)??(n==null?void 0:n[r==null?void 0:r.prop])??((w=(O=a==null?void 0:a[(_=r==null?void 0:r.child)==null?void 0:_.prop])==null?void 0:O[0])==null?void 0:w.contents)??(a==null?void 0:a[(R=r==null?void 0:r.child)==null?void 0:R.prop]),d=Array.isArray(s)&&!(s!=null&&s.every(z=>typeof z=="string"||typeof z=="number"))?"查看":s;return d=Array.isArray(d)?d.join(","):d,d},Cr=l=>{var h,T,j,q,y,_,O,w,R,z;const{row:a,column:o,item:r,slotData:n}=l;let s=a!=null&&a[o==null?void 0:o.prop]?((T=(h=a==null?void 0:a[o==null?void 0:o.prop])==null?void 0:h[0])==null?void 0:T.contents)??(a==null?void 0:a[o==null?void 0:o.prop]):((q=(j=a==null?void 0:a[r==null?void 0:r.prop])==null?void 0:j[0])==null?void 0:q.contents)??(a==null?void 0:a[r==null?void 0:r.prop])??((_=(y=n==null?void 0:n[r==null?void 0:r.prop])==null?void 0:y[0])==null?void 0:_.contents)??(n==null?void 0:n[r==null?void 0:r.prop])??((R=(w=a==null?void 0:a[(O=r==null?void 0:r.child)==null?void 0:O.prop])==null?void 0:w[0])==null?void 0:R.contents)??(a==null?void 0:a[(z=r==null?void 0:r.child)==null?void 0:z.prop]);const d=Array.isArray(s)&&!(s!=null&&s.every(K=>typeof K=="string"||typeof K=="number")),p=Array.isArray(s)&&(s==null?void 0:s.find(K=>K==null?void 0:K.url));return d&&p},xr=(l,a)=>l.find(o=>Object.values(o).some(r=>r===a));return e.watch(()=>Ca.value,async l=>{if(l){Ue.setContentLoading(!0),await e.nextTick();const a=xr(ee.value,l==null?void 0:l.data);if(!a)return Ue.setContentLoading(!1);await ea(l==null?void 0:l.data,null,a,{data:l==null?void 0:l.data,isMainKey:!0}),Ue.setContentLoading(!1)}},{deep:!0,immediate:!0}),e.watch(()=>t==null?void 0:t.cacheNewData,l=>{var a;l&&(Array.isArray(l)||(l==null?void 0:l.compId)===(t==null?void 0:t.index)&&(ee.value=(a=ee.value)==null?void 0:a.map(o=>{var r;return(o==null?void 0:o.id)===((r=l==null?void 0:l.data)==null?void 0:r.id)?{...o,id:l==null?void 0:l.resId}:o})))},{immediate:!0,deep:!0}),(l,a)=>{var h,T,j,q;const o=e.resolveComponent("svg-icon"),r=e.resolveComponent("el-popover"),n=e.resolveComponent("el-switch"),s=e.resolveComponent("el-checkbox"),c=e.resolveComponent("el-checkbox-group"),d=e.resolveComponent("el-button"),p=e.resolveComponent("LookComponent");return e.openBlock(),e.createElementBlock("div",Ir,[Xl.value?(e.openBlock(),e.createBlock(Xe.ssTable,{id:"excel-table",pageObj:ce,showIndex:he.value,isTree:(h=F.compItem)==null?void 0:h.isTree,summaryInfo:ve,columns:G.value,defaultSort:Ae,isCardViewport:Ol.value,checkedColumns:I.value,key:Vl.value+JSON.stringify(G.value),tableData:Yl.value,isEditViewport:He.value,isShowPagination:Ql.value,isShowEdit:!1,isShowDelete:!1,allowSelect:re.value,onDbClickRow:Ya,extraButton:pl.value,rowButton:ol.value,cacheExtraButtons:il.value,isClearSelection:((T=Qe.value)==null?void 0:T.length)===0,onDoCurrentChange:Oa,onDoSizeChange:ja,onContentClick:ea,onRowClick:Ia,onSelectChange:Ka,onCellChange:Sr,onChange:ia,onPreview:Zl,onSubmitEditingTable:Va,onHandleColEditChange:$a,onHandleColTypeChange:Fa,onClickButton:Ml},e.createSlots({headerButton:e.withCtx(y=>{var _,O;return[F.showHeader?(e.openBlock(),e.createBlock(Kr,{key:0,pageLayout:F.pageLayout,lockingPage:e.unref(Nl)===e.unref(ye),filterValues:Il.value,selectNums:(_=Qe.value)==null?void 0:_.length,dataNums:(O=ee.value)==null?void 0:O.length,compName:F.compName,isDevMode:F.isDevMode,buttons:y.buttons,onButtonClick:a[1]||(a[1]=w=>Ml(w,"",{})),columns:G.value,onFilter:Xa,onGetImportData:Ma,level:F.level},null,8,["pageLayout","lockingPage","filterValues","selectNums","dataNums","compName","isDevMode","buttons","columns","level"])):e.createCommentVNode("",!0)]}),viewport:e.withCtx(()=>{var y,_,O,w;return[((y=ee.value)==null?void 0:y.length)>0&&F.allowOperate?(e.openBlock(),e.createElementBlock("div",an,[(_=Se.value)!=null&&_.includes("read")&&((O=Se.value)!=null&&O.includes("edit"))&&((w=ol.value)!=null&&w.some(R=>(R==null?void 0:R.label)==="编辑"))&&!Ol.value&&e.unref(Nl)!==e.unref(ye)?(e.openBlock(),e.createElementBlock("span",{key:0,title:"编辑表格",onClick:pa},[e.createVNode(o,{name:"editTable",class:"view-icon"})])):e.createCommentVNode("",!0),e.createElementVNode("span",{title:"卡片视图",onClick:kr},[e.createVNode(o,{name:"cardViewport",class:"view-icon"})])])):e.createCommentVNode("",!0)]}),rowCreate:e.withCtx(({row:y,index:_})=>[e.createElementVNode("span",{title:"新增",class:"row-create-wrap",onClick:O=>mr(y,_)},[e.createVNode(o,{name:"rowCreate",style:{width:"10px",height:"10px"}})],8,rn)]),operateCol:e.withCtx(()=>[e.createVNode(r,{title:"选择显示列信息",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:hr},{reference:e.withCtx(()=>[e.createElementVNode("span",nn,[e.createVNode(o,{name:"operate",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),default:e.withCtx(()=>[e.createElementVNode("div",on,[a[12]||(a[12]=e.createElementVNode("div",{class:"group-title"},"表格操作",-1)),e.createVNode(n,{"model-value":al.value,"active-text":"排序","inactive-text":"",style:{"margin-right":"8px"},onChange:a[3]||(a[3]=y=>Kl(y,"sortable"))},null,8,["model-value"]),e.createVNode(n,{"model-value":rl.value,"active-text":"筛选","inactive-text":"",style:{"margin-right":"8px"},onChange:a[4]||(a[4]=y=>Kl(y,"filterable"))},null,8,["model-value"]),e.createVNode(n,{"model-value":pe.value,"active-text":"编辑所有表头","inactive-text":"",onChange:a[5]||(a[5]=y=>Kl(y,"operable"))},null,8,["model-value"]),a[13]||(a[13]=e.createElementVNode("div",{class:"group-title"},"表格列操作",-1)),e.createVNode(c,{modelValue:I.value,"onUpdate:modelValue":a[6]||(a[6]=y=>I.value=y),style:{height:"100%"},min:2,ref_key:"checkboxGroupRef",ref:L},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ml.value,y=>(e.openBlock(),e.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:y.label},[e.createVNode(s,{value:y.label,style:{width:"100%",marginRight:0}},{default:e.withCtx(()=>[e.createElementVNode("span",{title:y.label,style:{display:"inline-block",width:"250px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},e.toDisplayString(y.label),9,tn)]),_:2},1032,["value"]),e.createVNode(r,{title:"列操作",placement:"left",teleported:!1,trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(o,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:e.withCtx(()=>{var _;return[e.createElementVNode("div",sn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((_=Object.keys(y))==null?void 0:_.filter(O=>{var w;return(w=ge.value)==null?void 0:w.find(R=>(R==null?void 0:R.value)===O)}),O=>{var w,R;return e.openBlock(),e.createElementBlock("div",{key:O},[e.createVNode(n,{"model-value":y==null?void 0:y[O],"active-text":(R=(w=ge.value)==null?void 0:w.find(z=>(z==null?void 0:z.value)===O))==null?void 0:R.label,onChange:z=>qa(z,O,y)},null,8,["model-value","active-text","onChange"])])}),128))])]}),_:2},1024),e.createElementVNode("span",un,[e.createVNode(o,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:1},8,["modelValue"])])]),_:1})]),content:e.withCtx(y=>{var _,O,w,R,z,K,x,B,b,N,g,X,i,P,J,v,A,k;return[Cr(y)?(e.openBlock(),e.createBlock(r,{key:0,"popper-class":"file-popover",placement:"right",trigger:"hover",effect:"light",width:"auto"},{reference:e.withCtx(()=>[e.createElementVNode("span",cn,e.toDisplayString($e(y)),1)]),default:e.withCtx(()=>{var f,M;return[e.createElementVNode("div",dn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((M=y==null?void 0:y.row)==null?void 0:M[(f=y==null?void 0:y.column)==null?void 0:f.prop],E=>(e.openBlock(),e.createElementBlock("div",pn,[e.createElementVNode("div",{class:"prop-url",title:Ll(E),onClick:ae=>Wa(E)},e.toDisplayString(Ll(E)),9,fn),e.createElementVNode("div",{class:"prop-download",onClick:ae=>Ga(E)}," 下载 ",8,hn)]))),256))])]}),_:2},1024)):(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle({color:!Array.isArray($e(y))&&((O=(_=$e(y))==null?void 0:_.toString())!=null&&O.includes(".txt")||(R=(w=$e(y))==null?void 0:w.toString())!=null&&R.includes(".cpt")||(K=(z=$e(y))==null?void 0:z.toString())!=null&&K.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray($e(y))&&((B=(x=$e(y))==null?void 0:x.toString())!=null&&B.includes(".txt")||(N=(b=$e(y))==null?void 0:b.toString())!=null&&N.includes(".cpt")||(X=(g=$e(y))==null?void 0:g.toString())!=null&&X.includes(".cyd"))?"underline":"",cursor:!Array.isArray($e(y))&&((P=(i=$e(y))==null?void 0:i.toString())!=null&&P.includes(".txt")||(v=(J=$e(y))==null?void 0:J.toString())!=null&&v.includes(".cpt")||(k=(A=$e(y))==null?void 0:A.toString())!=null&&k.includes(".cyd"))?"pointer":"",marginLeft:(y==null?void 0:y.colIndex)===0?`${((y==null?void 0:y.level)??0)*20}px`:0}),onClick:f=>Ua($e(y))},e.toDisplayString($e(y)===0?"0":$e(y)),13,gn))]}),_:2},[((j=ol.value)==null?void 0:j.length)>0&&e.unref(Nl)!==e.unref(ye)?{name:"actions",fn:e.withCtx(({item:y})=>[e.createVNode(r,{title:"",placement:"left-start","popper-class":"menu-operate-popover"},{reference:e.withCtx(()=>[e.createVNode(o,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"},onClick:a[0]||(a[0]=e.withModifiers(()=>{},["stop"]))})]),default:e.withCtx(()=>[e.createElementVNode("div",en,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ha(ol.value,y),(_,O)=>(e.openBlock(),e.createElementBlock("div",{class:"menu-config-item",key:O,onClick:e.withModifiers(w=>Ml(_==null?void 0:_.label,y,{extra:_}),["stop"])},[e.createElementVNode("div",{style:e.normalizeStyle({color:_==null?void 0:_.textColor}),class:"extra-button-label"},e.toDisplayString(_==null?void 0:_.label),5)],8,ln))),128))])]),_:2},1024)]),key:"0"}:void 0,((q=ee.value)==null?void 0:q.length)>0?{name:"batchButton",fn:e.withCtx(y=>[e.withDirectives(e.createVNode(qr,{lockingPage:e.unref(Nl)===e.unref(ye),buttons:y.buttons,selectTableItems:Qe.value,onButtonClick:a[2]||(a[2]=_=>Ml(_,"",{}))},null,8,["lockingPage","buttons","selectTableItems"]),[[e.vShow,re.value]]),e.withDirectives(e.createElementVNode("div",null,null,512),[[e.vShow,!re.value]])]),key:"1"}:void 0]),1032,["pageObj","showIndex","isTree","summaryInfo","columns","defaultSort","isCardViewport","checkedColumns","tableData","isEditViewport","isShowPagination","allowSelect","extraButton","rowButton","cacheExtraButtons","isClearSelection"])):e.createCommentVNode("",!0),e.createVNode(Tl.ssDialog,{title:We.value,visible:Ie.value,width:Ba.value,onBeforeDestroy:Ra,style:{height:"74%"}},{default:e.withCtx(()=>[e.createElementVNode("div",yn,[e.createVNode(Xe.ssForm,{rowContents:we.value,isEnableWrap:!1,showOperator:!1,onChange:gr,onClickTrigger:Ja,isEdit:Bl.value,onBlurChange:za},null,8,["rowContents","isEdit"])])]),footer:e.withCtx(()=>[_l.value?(e.openBlock(),e.createElementBlock("div",vn,[e.createVNode(d,{onClick:a[7]||(a[7]=y=>Ie.value=!1),id:"themeBorderButton"},{default:e.withCtx(()=>a[14]||(a[14]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[14]}),e.createVNode(d,{class:"ok-button",onClick:a[8]||(a[8]=y=>xl(!0)),id:"themeButton"},{default:e.withCtx(()=>a[15]||(a[15]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[15]})])):e.createCommentVNode("",!0)]),_:1},8,["title","visible","width"]),e.createVNode(Tl.ssDialog,{title:We.value,visible:wl.value,width:Fl.value,onBeforeDestroy:a[10]||(a[10]=y=>wl.value=!1)},{default:e.withCtx(()=>[e.createVNode(Hr)]),footer:e.withCtx(()=>[e.createElementVNode("div",bn,[e.createVNode(d,{onClick:a[9]||(a[9]=y=>wl.value=!1),class:"cancel-button",id:"themeBorderButton"},{default:e.withCtx(()=>a[16]||(a[16]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[16]}),e.createVNode(d,{class:"ok-button",onClick:er,id:"themeButton"},{default:e.withCtx(()=>a[17]||(a[17]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[17]})])]),_:1},8,["title","visible","width"]),Me.value?(e.openBlock(),e.createBlock(Xe.ssFilePreview,{key:1,fileDataList:ul.value,onDestroy:Za},null,8,["fileDataList"])):e.createCommentVNode("",!0),se.value?(e.openBlock(),e.createBlock(Tl.ssDialog,{key:2,visible:se.value,onBeforeDestroy:pr,style:{height:"80vh",width:"80vw"},"body-class":"three-dialog-body","footer-class":"three-dialog-footer"},{default:e.withCtx(()=>[e.createVNode(ha.ThreeViewerHost,{files:vl.value,threeData:Le.value},null,8,["files","threeData"])]),_:1},8,["visible"])):e.createCommentVNode("",!0),e.createVNode(Tl.ssDialog,{visible:l.componentVisible,onBeforeDestroy:a[11]||(a[11]=y=>l.componentVisible=!1),width:Fl.value,style:{height:"70vh"}},{default:e.withCtx(()=>[e.createVNode(p,{dialogItem:sl.value},null,8,["dialogItem"])]),_:1},8,["visible","width"]),e.createVNode(Tl.ssDialog,{title:Te.title,visible:Te.show,width:Te.width,onBeforeDestroy:ir},{default:e.withCtx(()=>[e.createElementVNode("div",kn,[e.createVNode(Xe.ssForm,{rowContents:Te==null?void 0:Te.contents,formRules:Te==null?void 0:Te.formRules,showOperator:!1,buttonValue:Te.buttonValue,isEdit:Bl.value,isStartJustify:!1,isEnableWrap:!1,onOnButtonClick:tr},null,8,["rowContents","formRules","buttonValue","isEdit"])])]),_:1},8,["title","visible","width"])])}}},Sn=$l._export_sfc(mn,[["__scopeId","data-v-7060f159"]]);exports.formGetOptions=Wl;exports.getSelectRow=Hl;exports.ssTable=Sn;exports.useFormComp=Sa;exports.useFormToTableComp=va;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as n, computed as c, defineComponent as s, reactive as p, onMounted as i, createElementBlock as u, openBlock as f, createVNode as b } from "vue";
|
|
2
|
-
import { s as m } from "./index-
|
|
2
|
+
import { s as m } from "./index-9-ywVopw.js";
|
|
3
3
|
import { g as d, c as _ } from "./index-62PHNV7A.js";
|
|
4
4
|
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const l = n([]), g = c(() => [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-BoXjy_oE.cjs"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-BoXjy_oE.cjs"),r=require("./index-BivNH_3Y.cjs"),i=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),s={class:"log-wrap"},u=t.defineComponent({__name:"index",setup(_){const e=t.reactive({...c.State});t.onMounted(async()=>{e.tableData=await e.getLogTableDataAsync()});const l=n=>{var o;e.clickButton(n,(o=e.tableData)==null?void 0:o.map(a=>a.id),a=>{console.log("清空操作成功:",a),a&&(e.tableData=[])})};return(n,o)=>(t.openBlock(),t.createElementBlock("div",s,[t.createVNode(r.ssTable,{itemData:e.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:l},null,8,["itemData"])]))}}),d=i._export_sfc(u,[["__scopeId","data-v-b4bfde04"]]);exports.default=d;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as i, computed as j, reactive as ie, nextTick as B, watch as ye } from "vue";
|
|
2
2
|
import { u as be, a as he, ad as Ce } from "./index-AIq5wzuR.js";
|
|
3
3
|
import { c as U, s as Ie, g as J, bU as ke, E as S, p as L, h as ae, e as oe, bL as Te, f as Me } from "./index-DIUrwul5.js";
|
|
4
|
-
import { u as Se } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
4
|
+
import { u as Se } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CoJs3q0H.js";
|
|
5
5
|
const F = he(L), ne = Se(L), C = be(L), { menus: ue, configMenu: R, activeMenuPath: $, cacheStructures: K } = Ie(C), q = i(!1), se = j(() => {
|
|
6
6
|
var e, t;
|
|
7
7
|
return [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as l, watch as m, defineComponent as b, reactive as y, onMounted as g, createElementBlock as D, openBlock as f, createVNode as i } from "vue";
|
|
2
|
-
import { s as h } from "./index-
|
|
2
|
+
import { s as h } from "./index-9-ywVopw.js";
|
|
3
3
|
import { g as C, s as c } from "./index-DIUrwul5.js";
|
|
4
4
|
import { ae as k, ad as _, a as S, u as A, af as T } from "./index-AIq5wzuR.js";
|
|
5
5
|
const B = S(), { itemData: I } = c(B), u = l(0), P = l([
|