ss-component-new 1.2.263 → 1.2.265
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-C60D0af6.js → MTLLoader-BeGEKyl0.js} +22 -22
- package/dist/{MTLLoader-BV5SUzmG.cjs → MTLLoader-CSt_lM1a.cjs} +1 -1
- package/dist/{OrbitControls-Dr_tJ4fZ.cjs → OrbitControls-BAomOOde.cjs} +1 -1
- package/dist/{OrbitControls-DiLJkuyu.js → OrbitControls-b-wV4y7B.js} +7 -7
- package/dist/{URDFLoader-DglI0gl1.cjs → URDFLoader-CaQU9gcS.cjs} +1 -1
- package/dist/{URDFLoader-Cbui5CYq.js → URDFLoader-D0dqTkPQ.js} +110 -110
- package/dist/{animationData-BS1KOggN.js → animationData-C9cYzIy2.js} +5 -5
- package/dist/{animationData-DAhPTTyV.cjs → animationData-Dxpc8KPf.cjs} +1 -1
- package/dist/{array-DQ3w0Sej.js → array-Bjd_S0qT.js} +1 -1
- package/dist/{array-DV4Y5Qdq.cjs → array-DZe2aNPv.cjs} +1 -1
- package/dist/{iconfont-C0xSkmDm.js → iconfont-BW4pTt1q.js} +2 -2
- package/dist/{iconfont-DFcKl5Tl.cjs → iconfont-BXXhBGTd.cjs} +1 -1
- package/dist/{index-7t6O2kDd.js → index--gTRHOTN.js} +1 -1
- package/dist/{index-6JiENohi.js → index--j26502g.js} +1 -1
- package/dist/{index-BzyaLKAO.js → index-60rkchWf.js} +1 -1
- package/dist/index-7hYDPFlh.js +4315 -0
- package/dist/{index-Cf8awUVC.cjs → index-B2ChFjMV.cjs} +1 -1
- package/dist/{index-0r9vJ4Dt.js → index-BMruW26T.js} +1444 -1441
- package/dist/{index-0yP57X4c.cjs → index-BV-u3HMZ.cjs} +1 -1
- package/dist/{index-DuvD2T3v.js → index-B_-MCkxg.js} +16 -16
- package/dist/{index-BupiwS6Q.cjs → index-Ba-ni2cO.cjs} +1 -1
- package/dist/{index-5ouuNlF1.cjs → index-BhDAfbms.cjs} +1 -1
- package/dist/{index-l5gyINj-.js → index-Bi2pb9yX.js} +2 -2
- package/dist/{index-DYoJ1b7h.cjs → index-Bow1V8h_.cjs} +1 -1
- package/dist/{index-D834bu6t.js → index-C2o_u0AH.js} +1 -1
- package/dist/{index-BoT93rBf.cjs → index-C5qN9fUM.cjs} +1 -1
- package/dist/{index-CorDLjba.js → index-C71Renv0.js} +3 -3
- package/dist/{index-Bw9Yt-ff.cjs → index-CB40iFsf.cjs} +1 -1
- package/dist/{index-CcFw88ze.js → index-CDTuNFPZ.js} +1 -1
- package/dist/{index-kxxFoQbl.cjs → index-CICDDGVv.cjs} +1 -1
- package/dist/index-CKgg9Qvo.cjs +13 -0
- package/dist/{index-C8cUTV0K.js → index-CRf5J2Wu.js} +8 -8
- package/dist/{index-CCf7B4w5.js → index-CTSigZhK.js} +1 -1
- package/dist/{index-DfsfEirQ.cjs → index-CaS3sMNl.cjs} +12 -12
- package/dist/{index-BDHuCtb0.cjs → index-CeD500Mv.cjs} +1 -1
- package/dist/{index-KIvXTS9h.cjs → index-CxGqNxZE.cjs} +1 -1
- package/dist/{index-D49CORoN.cjs → index-D-De5oRz.cjs} +1 -1
- package/dist/{index-C8BME0nI.js → index-DFwqzJD9.js} +4 -4
- package/dist/{index-5mUNsn1w.js → index-DP4Kj9oN.js} +7 -7
- package/dist/{index-DP6wFpRB.js → index-DPNHwVNI.js} +4 -4
- package/dist/{index-aZqbgOAP.cjs → index-DZQV0bN-.cjs} +1 -1
- package/dist/{index-CB_H_0Ax.cjs → index-D_FcHkhM.cjs} +1 -1
- package/dist/{index-DFo6JZEl.js → index-D_criQ2G.js} +1 -1
- package/dist/{index-U4C6FUfG.cjs → index-Da3kXPy3.cjs} +1 -1
- package/dist/{index-o4S-_Dke.js → index-DhdsYhJO.js} +1 -1
- package/dist/{index-BTXISKif.cjs → index-DpncZBPP.cjs} +1 -1
- package/dist/{index-D7lbCuzf.cjs → index-DqFG1hST.cjs} +1 -1
- package/dist/{index-Bp_tXnME.js → index-DtFiM--0.js} +4 -4
- package/dist/{index-DTepwcmD.js → index-DtS_0LMT.js} +1 -1
- package/dist/{index-CzIULOgN.cjs → index-FelWUHCZ.cjs} +1 -1
- package/dist/{index-CuPI2lqv.cjs → index-GjnMvmUL.cjs} +1 -1
- package/dist/{index-DLiNZrA6.js → index-WA32pMmJ.js} +1 -1
- package/dist/{index-C4a_MPf7.cjs → index-jOaHG_a9.cjs} +1 -1
- package/dist/{index-DOCv-LZh.cjs → index-k8bKRa4i.cjs} +1 -1
- package/dist/{index-DsbyRC2o.js → index-nQnxvxg4.js} +3 -3
- package/dist/{index-DahG36bO.js → index-rOvJXxJz.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-loW1NLVo.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BENhngvz.js} +5742 -5741
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DbvAKPju.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CBayycqn.cjs} +13 -13
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DkIBFS4N.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B6LzqMjV.cjs} +407 -407
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D_tm7tyu.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D0rkC1Yq.js} +30455 -30331
- package/dist/{index.vue_vue_type_style_index_0_scoped_20f284c2_lang-DJ8GnU9R.cjs → index.vue_vue_type_style_index_0_scoped_20f284c2_lang-CxjM-aSf.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_20f284c2_lang-bYH1Sh6a.js → index.vue_vue_type_style_index_0_scoped_20f284c2_lang-UiPNM7T6.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_1_lang-MF8qbCuC.cjs → index.vue_vue_type_style_index_1_lang-BOKr3IxG.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-DIK0cSrJ.js → index.vue_vue_type_style_index_1_lang-D4LWRrzj.js} +3 -3
- package/dist/{main-BibCcP5D.cjs → main-BTO4X7hn.cjs} +1 -1
- package/dist/{main-CnZCBEtm.js → main-DmTuylSN.js} +3 -3
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-Mtr7ZQSj.js → threeModel-1MarucKr.js} +4 -4
- package/dist/{threeModel-Av_Dm5Vo.cjs → threeModel-DKyo4g95.cjs} +1 -1
- package/dist/{threePreview-CauUQ-OA.cjs → threePreview-DZ39wE4z.cjs} +1 -1
- package/dist/{threePreview-11vwvu6C.js → threePreview-DczD5lkc.js} +59 -59
- package/dist/{threeSceneView-Bcqtouvh.js → threeSceneView-DbPuBfvY.js} +8 -8
- package/dist/{threeSceneView-DjBO-IBk.cjs → threeSceneView-DcX_DWMB.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-CYhcGgol.js → threeSceneViewForCPMPIP-CQT_PXVK.js} +7 -7
- package/dist/{threeSceneViewForCPMPIP-Iu85hN2X.cjs → threeSceneViewForCPMPIP-CzVSdvYD.cjs} +1 -1
- package/dist/{threeTrackPathView-Yv-dXetX.js → threeTrackPathView-CdjUnYLD.js} +24 -24
- package/dist/{threeTrackPathView-DMfT4Blz.cjs → threeTrackPathView-DHaQCL38.cjs} +1 -1
- package/dist/{threeViewerHost-lZhmjlZP.js → threeViewerHost-BP1lE3em.js} +2 -2
- package/dist/{threeViewerHost-C2KsZZYX.cjs → threeViewerHost-DB8EVaN9.cjs} +1 -1
- package/dist/{urdfTree-C3E13Tqr.cjs → urdfTree-B8eCGdSO.cjs} +1 -1
- package/dist/{urdfTree-BiDHH7nr.js → urdfTree-D1L8ToXk.js} +1 -1
- package/dist/{workpieceTreePanel-BY2EF3ND.cjs → workpieceTreePanel-BUgxGB3s.cjs} +1 -1
- package/dist/{workpieceTreePanel-D8Rj2vkl.js → workpieceTreePanel-DwhZVbj9.js} +4 -4
- package/package.json +1 -1
- package/dist/index-CGRBbwNI.cjs +0 -13
- package/dist/index-Dc9WA-9R.js +0 -4276
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";var kn=Object.defineProperty;var Cn=(B,P,S)=>P in B?kn(B,P,{enumerable:!0,configurable:!0,writable:!0,value:S}):B[P]=S;var Tl=(B,P,S)=>Cn(B,typeof P!="symbol"?P+"":P,S);const e=require("vue"),N=require("./index-DOItJqcJ.cjs"),de=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B6LzqMjV.cjs"),Bl=require("./index-CaS3sMNl.cjs"),Kr=require("./threeViewerHost-DB8EVaN9.cjs"),Ra=require("./index-CXC0u8pm.cjs"),Sn=require("./index.vue_vue_type_style_index_1_lang-BOKr3IxG.cjs"),Da=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ra=require("./index-BV-u3HMZ.cjs");require("./index-KaxOq1_-.cjs");const Vr=require("./isString-Do5yyRUw.cjs"),Fa=B=>B.match(/\((.*)\)/)[1],zr={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},placement:{type:String,default:"bottom"},width:{type:Number,default:200}},setup(B){const P=B,S=e.ref(null),A=e.ref(!1),C=e.ref(null);return e.watch(()=>P==null?void 0:P.isVisible,()=>{A.value=P==null?void 0:P.isVisible},{deep:!0,immediate:!0}),e.watch(()=>C.value,()=>{e.nextTick(()=>{var n,I;(I=(n=S.value)==null?void 0:n.updatePopper)==null||I.call(n)})},{deep:!0,immediate:!0}),(n,I)=>{const ue=e.resolveComponent("el-popover");return e.openBlock(),e.createBlock(ue,{visible:A.value,title:P==null?void 0:P.title,placement:P==null?void 0:P.placement,width:P==null?void 0:P.width,ref_key:"popOverRef",ref:S},{reference:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(n.$slots,"reference",{ref_key:"referenceRef",ref:C})])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(n.$slots,"content")])]),_:3},8,["visible","title","placement","width"])}}},xn={key:0,class:"extra-button-content"},Nn={class:"table-operator-wrap"},_n={key:0,class:"extra-button-filter"},An={class:"form-content-value"},wn={key:1,class:"extra-header"},Dn={class:"drop-menu",style:{width:"120px"}},En={key:0},Tn={key:1},Bn={key:1,class:"extra-button-content tabs-button-wrapper"},On={class:"table-operator-wrap"},Un={class:"extra-button-filter"},Ln={class:"form-content-value"},jn={key:0,class:"extra-header"},Pn={class:"drop-menu",style:{width:"120px"}},$n={key:0},Mn={key:1},Rn={__name:"header",props:{pageLayout:{type:String,default:"vertical"},lockingPage:Boolean,level:{type:Number,default:1},compName:{type:String,default:"表格名称",required:!1},filterShow:{type:Boolean,default:!1},isDevMode:Boolean,selectNums:Number,dataNums:Number,filterValues:Array,buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick","filter","getImportData"],setup(B,{emit:P}){const S=P,A=B,C=e.ref(""),n=e.ref(!1),I=e.ref([]),ue=e.ref([{label:"取消",background:"#999999"},{label:"清空",background:"#999999"},{label:"确认"}]),ye=[{label:"新增",icon:"Plus"},{label:"导入",icon:"import"},{label:"导出",icon:"export"},{label:"OCR识别",icon:"ocr"}],Se=ce=>{const Le=ce.raw;if(!Le)return;const Ge=new FileReader;Ge.onload=pe=>{try{const oe=new Uint8Array(pe.target.result),re=de.readSync(oe,{type:"array"}),Ae=re.SheetNames[0],R=re.Sheets[Ae],ll=de.utils.decode_range(R["!ref"]).e.c+1,ee=new Array(ll).fill(""),L=[];for(const le in R){if(le[0]==="!")continue;const{r:Ne,c:Me}=de.utils.decode_cell(le);let ml=R[le].v;if(R[le].t==="n"&&ml>0&&ml<1e6&&(ml=new Date((ml-25569)*86400*1e3).toISOString().split("T")[0]),(ml==null||ml==="")&&(ml=""),Ne===0)ee[Me]=ml;else{if(!L[Ne-1]){L[Ne-1]={};for(let Ml=0;Ml<ll;Ml++)L[Ne-1][`col_${Ml}`]=""}L[Ne-1][`col_${Me}`]=ml}}for(let le=0;le<ll;le++)ee[le]===void 0&&(ee[le]="");const He=L==null?void 0:L[0];if(!(He!=null&&He.hasOwnProperty("col_0")))return N.ElMessage.error("导入的数据列不匹配,请检查是否错位");S("getImportData",ee,L)}catch(oe){throw N.ElMessage.error(oe.message),new Error(oe.message)}},Ge.readAsArrayBuffer(Le)},Je=ce=>{var Ge;const Le=(Ge=I.value)==null?void 0:Ge.reduce((pe,oe,re)=>(re===0?pe[oe.label]=ce:pe[oe.label]=oe==null?void 0:oe.value,pe),{});S("filter",Le,ce,!0)},Ye=(ce,Le={})=>{S("buttonClick",ce,"",Le)},al=ce=>{var Le,Ge;I.value=(Ge=(Le=de.getColumnChild(N.cloneDeep(ce)))==null?void 0:Le.filter(pe=>(pe==null?void 0:pe.label)!==""&&(pe==null?void 0:pe.label)!=="操作"))==null?void 0:Ge.map(pe=>({label:(pe==null?void 0:pe.label)??"",value:"",name:(pe==null?void 0:pe.label)??"",isFormColHidden:pe==null?void 0:pe.isTableColHidden,width:2}))},el=e.ref(!1),kl=ce=>{var Le;if((ce==null?void 0:ce.buttonName)==="确认"&&(S("filter",ce==null?void 0:ce.content),el.value=(ce==null?void 0:ce.content)&&Object.values(ce==null?void 0:ce.content).length>0),(ce==null?void 0:ce.buttonName)==="清空"){const Ge=N.cloneDeep(ce==null?void 0:ce.content);for(const pe in Ge)Ge[pe]="";I.value=(Le=I.value)==null?void 0:Le.map(pe=>({...pe,value:""})),S("filter",Ge),el.value=!1}n.value=!1},Cl=()=>{var Le,Ge;I.value=(Le=I.value)==null?void 0:Le.map(pe=>({...pe,value:""}));const ce=(Ge=I.value)==null?void 0:Ge.reduce((pe,oe)=>(pe[oe.label]=oe.value,pe),{});S("filter",ce)};return e.onMounted(()=>{al(A.columns)}),e.watch(()=>A.columns,()=>{al(A.columns)},{deep:!0,immediate:!0}),(ce,Le)=>{var R,yl,ll,ee;const Ge=e.resolveComponent("el-icon"),pe=e.resolveComponent("svg-icon"),oe=e.resolveComponent("el-input"),re=e.resolveComponent("el-button"),Ae=e.resolveComponent("el-upload");return B.pageLayout==="vertical"?(e.openBlock(),e.createElementBlock("div",xn,[e.createElementVNode("div",{class:e.normalizeClass(B.compName?"table-name-wrap":""),style:e.normalizeStyle({background:(A==null?void 0:A.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((A==null?void 0:A.level)-1)*12+"px",fontWeight:600-((A==null?void 0:A.level)-1)*100>=400?600-((A==null?void 0:A.level)-1)*100:400,fontSize:17-(A==null?void 0:A.level)>=14?17-(A==null?void 0:A.level)+"px":"14px"})},e.toDisplayString(B.compName),7),e.createElementVNode("div",Nn,[A!=null&&A.filterShow?(e.openBlock(),e.createElementBlock("div",_n,[e.createVNode(zr,{title:"",width:800,placement:"bottom-start",isVisible:n.value},{reference:e.withCtx(()=>{var L,He,le,Ne;return[e.createVNode(oe,{modelValue:C.value,"onUpdate:modelValue":Le[1]||(Le[1]=Me=>C.value=Me),style:{"min-width":"80px"},placeholder:el.value?(le=(He=(L=B.filterValues)==null?void 0:L.filter(Me=>Me))==null?void 0:He.slice(0,3))==null?void 0:le.join("/"):"搜索","prefix-icon":e.unref(N.search_default),clearable:"",onInput:Je,disabled:((Ne=I.value)==null?void 0:Ne.length)===0},{suffix:e.withCtx(()=>{var Me,ml;return[!C.value&&((ml=(Me=B.filterValues)==null?void 0:Me.filter(Ml=>Ml))!=null&&ml.join("/"))?(e.openBlock(),e.createBlock(Ge,{key:0,style:{cursor:"pointer"},onClick:Cl},{default:e.withCtx(()=>[e.createVNode(e.unref(N.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:Le[0]||(Le[0]=Me=>n.value=!n.value)},[e.createVNode(pe,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:e.withCtx(()=>[e.createElementVNode("div",An,[(e.openBlock(),e.createBlock(Bl.ssForm,{rowContents:I.value,buttonValue:ue.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:ue.value,isStartJustify:!1,onOnButtonClick:kl},null,8,["rowContents","buttonValue"]))])]),_:1},8,["isVisible"])])):e.createCommentVNode("",!0),B.buttons&&((R=B.buttons)==null?void 0:R.length)>0?(e.openBlock(),e.createElementBlock("div",wn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((yl=B.buttons)==null?void 0:yl.filter(L=>B.isDevMode||(L==null?void 0:L.label)!=="修改模板"),(L,He)=>(e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:He},[(L==null?void 0:L.type)==="upload"?(e.openBlock(),e.createBlock(Ae,{key:0,class:"upload-button-wrap","on-change":Se,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!B.lockingPage},{default:e.withCtx(()=>[e.createVNode(re,{disabled:!!B.lockingPage,style:e.normalizeStyle({background:(L==null?void 0:L.background)??"var(--ssbutton-theme-bg)",color:(L==null?void 0:L.color)??"var(--ssbutton-theme-color)"})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L==null?void 0:L.label),1)]),_:2},1032,["disabled","style"])]),_:2},1032,["disabled"])):e.createCommentVNode("",!0),(L==null?void 0:L.type)==="popover"?(e.openBlock(),e.createBlock(Bl._sfc_main,{key:1},{dropTitle:e.withCtx(()=>[(L==null?void 0:L.type)==="popover"?(e.openBlock(),e.createBlock(re,{key:0,disabled:!!B.lockingPage,style:e.normalizeStyle({background:(L==null?void 0:L.background)??"var(--ssbutton-theme-bg)",color:(L==null?void 0:L.color)??"var(--ssbutton-theme-color)"})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L==null?void 0:L.label),1)]),_:2},1032,["disabled","style"])):e.createCommentVNode("",!0)]),dropMenu:e.withCtx(()=>[e.createElementVNode("div",Dn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(L==null?void 0:L.contents,le=>(e.openBlock(),e.createBlock(re,{key:le==null?void 0:le.label,disabled:!!B.lockingPage,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:Ne=>Ye(le==null?void 0:le.label)},{default:e.withCtx(()=>{var Ne,Me;return[e.createTextVNode(e.toDisplayString(le==null?void 0:le.label),1),(Ne=le==null?void 0:le.label)!=null&&Ne.includes("选中")?(e.openBlock(),e.createElementBlock("span",En,"("+e.toDisplayString(B.selectNums)+")",1)):e.createCommentVNode("",!0),(Me=le==null?void 0:le.label)!=null&&Me.includes("全部")?(e.openBlock(),e.createElementBlock("span",Tn,"("+e.toDisplayString(B.dataNums)+")",1)):e.createCommentVNode("",!0)]}),_:2},1032,["disabled","onClick"]))),128))])]),_:2},1024)):(e.openBlock(),e.createBlock(re,{key:2,id:"themeButton",disabled:!!B.lockingPage,style:e.normalizeStyle({background:(L==null?void 0:L.background)??"var(--ssbutton-theme-bg)",color:(L==null?void 0:L.color)??"var(--ssbutton-theme-color)"}),onClick:le=>Ye(L==null?void 0:L.label,L)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L==null?void 0:L.label),1)]),_:2},1032,["disabled","style","onClick"]))]))),128))])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createElementBlock("div",Bn,[e.createElementVNode("div",On,[e.createElementVNode("div",Un,[e.createVNode(zr,{title:"",width:800,placement:"bottom-start",isVisible:n.value},{reference:e.withCtx(()=>{var L,He,le,Ne;return[e.createVNode(oe,{modelValue:C.value,"onUpdate:modelValue":Le[3]||(Le[3]=Me=>C.value=Me),style:{"min-width":"80px"},placeholder:el.value?(le=(He=(L=B.filterValues)==null?void 0:L.filter(Me=>Me))==null?void 0:He.slice(0,3))==null?void 0:le.join("/"):"搜索","prefix-icon":e.unref(N.search_default),clearable:"",onInput:Je,disabled:((Ne=I.value)==null?void 0:Ne.length)===0},{suffix:e.withCtx(()=>{var Me,ml;return[!C.value&&((ml=(Me=B.filterValues)==null?void 0:Me.filter(Ml=>Ml))!=null&&ml.join("/"))?(e.openBlock(),e.createBlock(Ge,{key:0,style:{cursor:"pointer"},onClick:Cl},{default:e.withCtx(()=>[e.createVNode(e.unref(N.circle_close_default))]),_:1})):e.createCommentVNode("",!0)]}),append:e.withCtx(()=>[e.createElementVNode("span",{title:"条件查询",onClick:Le[2]||(Le[2]=Me=>n.value=!n.value)},[e.createVNode(pe,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:e.withCtx(()=>[e.createElementVNode("div",Ln,[(e.openBlock(),e.createBlock(Bl.ssForm,{rowContents:I.value,buttonValue:ue.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:ue.value,isStartJustify:!1,onOnButtonClick:kl},null,8,["rowContents","buttonValue"]))])]),_:1},8,["isVisible"])]),B.buttons&&((ll=B.buttons)==null?void 0:ll.length)>0?(e.openBlock(),e.createElementBlock("div",jn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((ee=B.buttons)==null?void 0:ee.filter(L=>B.isDevMode||(L==null?void 0:L.label)!=="修改模板"),(L,He)=>(e.openBlock(),e.createElementBlock("div",{class:"extra-contents",key:He},[(L==null?void 0:L.type)==="upload"?(e.openBlock(),e.createBlock(Ae,{key:0,class:"upload-button-wrap","on-change":Se,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:e.withCtx(()=>[e.createVNode(re,{style:{background:"transparent",color:"#666666"}},{icon:e.withCtx(()=>{var le;return[e.createVNode(pe,{name:(le=ye==null?void 0:ye.find(Ne=>(Ne==null?void 0:Ne.label)===(L==null?void 0:L.label)))==null?void 0:le.icon},null,8,["name"])]}),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(L==null?void 0:L.label),1)]),_:2},1024)]),_:2},1024)):e.createCommentVNode("",!0),(L==null?void 0:L.type)==="popover"?(e.openBlock(),e.createBlock(Bl._sfc_main,{key:1},{dropTitle:e.withCtx(()=>[(L==null?void 0:L.type)==="popover"?(e.openBlock(),e.createBlock(re,{key:0,style:{background:"transparent",color:"#666666"}},{icon:e.withCtx(()=>{var le;return[e.createVNode(pe,{name:(le=ye==null?void 0:ye.find(Ne=>(Ne==null?void 0:Ne.label)===(L==null?void 0:L.label)))==null?void 0:le.icon},null,8,["name"])]}),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(L==null?void 0:L.label),1)]),_:2},1024)):e.createCommentVNode("",!0)]),dropMenu:e.withCtx(()=>[e.createElementVNode("div",Pn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(L==null?void 0:L.contents,le=>(e.openBlock(),e.createBlock(re,{key:le==null?void 0:le.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:Ne=>Ye(le==null?void 0:le.label)},{default:e.withCtx(()=>{var Ne,Me;return[e.createTextVNode(e.toDisplayString(le==null?void 0:le.label),1),(Ne=le==null?void 0:le.label)!=null&&Ne.includes("选中")?(e.openBlock(),e.createElementBlock("span",$n,"("+e.toDisplayString(B.selectNums)+")",1)):e.createCommentVNode("",!0),(Me=le==null?void 0:le.label)!=null&&Me.includes("全部")?(e.openBlock(),e.createElementBlock("span",Mn,"("+e.toDisplayString(B.dataNums)+")",1)):e.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):(e.openBlock(),e.createBlock(re,{key:2,id:"themeButton",style:e.normalizeStyle({background:"transparent",color:(L==null?void 0:L.label)==="新增"?"var(--ssbutton-theme-bg)":"#666666"}),onClick:le=>Ye(L==null?void 0:L.label,L)},{icon:e.withCtx(()=>{var le;return[e.createVNode(pe,{name:(le=ye==null?void 0:ye.find(Ne=>(Ne==null?void 0:Ne.label)===(L==null?void 0:L.label)))==null?void 0:le.icon},null,8,["name"])]}),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(L==null?void 0:L.label),1)]),_:2},1032,["style","onClick"]))]))),128))])):e.createCommentVNode("",!0)])]))}}},Fn=Da._export_sfc(Rn,[["__scopeId","data-v-9ca4d746"]]),Kn=e.defineComponent({__name:"batch",props:{lockingPage:Boolean,buttons:{type:Array,default:()=>[]},selectTableItems:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick"],setup(B,{emit:P}){const S=B,A=P,C=I=>{A("buttonClick",I)},n=I=>{var ue;return I!=null&&I.includes("删除")?((ue=S.selectTableItems)==null?void 0:ue.length)>0?"warning-active-type":"warning-type":"default-type"};return(I,ue)=>{const ye=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.buttons,Se=>(e.openBlock(),e.createBlock(ye,{key:Se==null?void 0:Se.label,disabled:!!B.lockingPage,class:e.normalizeClass(n(Se==null?void 0:Se.label)),onClick:Je=>C(Se==null?void 0:Se.label)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(Se==null?void 0:Se.label),1)]),_:2},1032,["disabled","class","onClick"]))),128))])}}}),Vn=Da._export_sfc(Kn,[["__scopeId","data-v-70b12973"]]),Wr=N.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(B){this.selectArray=B},setSelectString(B){this.selectString=B}}}),zn={class:"calculator-content"},qn={class:"calculator-child"},Wn={class:"calculator-child"},Jn=e.defineComponent({__name:"calculator",setup(B){const P=e.ref(),S=e.ref();return e.onMounted(()=>{P.value=[{type:"Upload",label:"输入",name:"input"}],S.value=[{type:"Upload",label:"输出",name:"output"}]}),(A,C)=>(e.openBlock(),e.createElementBlock("div",zn,[e.createElementVNode("div",qn,[e.createVNode(Bl.ssForm,{rowContents:P.value,isRowFlex:!0},null,8,["rowContents"])]),e.createElementVNode("div",Wn,[e.createVNode(Bl.ssForm,{rowContents:S.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),Gn=Da._export_sfc(Jn,[["__scopeId","data-v-73db0fe7"]]),or=(B,P)=>{let S=B,A=P;return Array.isArray(S)&&(S=S==null?void 0:S.map((C,n)=>{if(Array.isArray(C)){let I={};return C=C==null?void 0:C.forEach((ue,ye)=>{var Se;(Se=A==null?void 0:A[ye])!=null&&Se.prop?I[A[ye].prop]=ue:Array.isArray(ue)&&(I.children=or(ue,A))}),Object.assign(I,{id:n})}else return C})),S},Jr=(B,P,S)=>{let A=B,C=P;return A=A==null?void 0:A.map((n,I)=>{var ue,ye;return!Array.isArray(n)||!((ue=C==null?void 0:C[I])!=null&&ue.label)&&!S||(n.unshift(((ye=C==null?void 0:C[I])==null?void 0:ye.label)??""),n.some(Se=>Array.isArray(Se))&&(n=n==null?void 0:n.map(Se=>{var Je;return Array.isArray(Se)&&(Se=Jr(Se,(Je=C==null?void 0:C[I])==null?void 0:Je.children,S)),Se}))),n}),A},Hn=(B,P,S)=>{if(P==="")return B==null?void 0:B.filter(A=>(A==null?void 0:A.id)!==S);{const A=P.split("-");return In(B,A,S)}},In=(B,P,S)=>{let A=B,C=P;return(C==null?void 0:C.length)===0?A=A==null?void 0:A.filter(n=>n.id!==S):A=A==null?void 0:A.map(n=>(n.id.toString()===(C==null?void 0:C[0])&&(C==null||C.shift(),n=Gr(n,C,S)),n)),A},Gr=(B,P,S)=>{var n,I;let A=B,C=P;return(C==null?void 0:C.length)===0?A.children=(n=A.children)==null?void 0:n.filter(ue=>ue.id!==S):A.children=(I=A.children)==null?void 0:I.map(ue=>(ue.id.toString()===(C==null?void 0:C[0])&&(C==null||C.shift(),ue=Gr(ue,C,S)),ue)),A},Xn=(B,P,S)=>{if(P==="")return S;{const A=P.split("-");return Yn(B,A,S)}},Yn=(B,P,S)=>{let A=B,C=P;return(C==null?void 0:C.length)===0?A=S:A=A==null?void 0:A.map(n=>(n.id.toString()===(C==null?void 0:C[0])&&(C==null||C.shift(),n=Hr(n,C,S)),n)),A},Hr=(B,P,S)=>{var n;let A=B,C=P;return(C==null?void 0:C.length)===0?A.children=S:A.children=(n=A.children)==null?void 0:n.map(I=>(I.id.toString()===(C==null?void 0:C[0])&&(C==null||C.shift(),I=Hr(I,C,S)),I)),A};class Qn{constructor(P={}){Tl(this,"url");Tl(this,"heartbeatInterval");Tl(this,"socket",null);Tl(this,"isConnected",!1);Tl(this,"heartTimer",null);Tl(this,"canvas",null);Tl(this,"ctx",null);Tl(this,"mainCamCutMode",0);Tl(this,"pMainShowStartX",0);Tl(this,"pMainShowStartY",0);Tl(this,"onLog");Tl(this,"onDevCount");Tl(this,"onCameraStatus");Tl(this,"onPhoto");this.url=P.url??"ws://127.0.0.1:22225",this.heartbeatInterval=P.heartbeatInterval??3e3}init(P,S,A){var I;(I=this.canvas)!=null&&I.parentNode&&this.canvas.parentNode.removeChild(this.canvas);const C=document.createElement("canvas");C.style.border="solid 1px #A0A0A0",C.id="MainCamCanvas",C.width=S,C.height=A;const n=C.getContext("2d");if(!n)throw new Error("无法获取 CanvasRenderingContext2D");P.appendChild(C),this.canvas=C,this.ctx=n}async connect(){this.socket&&(this.socket.readyState===WebSocket.OPEN||this.socket.readyState===WebSocket.CONNECTING)||await new Promise((P,S)=>{const A=new WebSocket(this.url);A.binaryType="arraybuffer",A.onopen=()=>{this.socket=A,this.isConnected=!0,this.startHeartbeat(),this.log("socket.onopen"),P()},A.onerror=C=>{this.isConnected=!1,this.log("socket.onerror"),S(C)},A.onclose=()=>{this.isConnected=!1,this.stopHeartbeat(),this.log("socket.onclose")},A.onmessage=C=>{this.handleMessage(C)}})}destroy(){var P;this.stopHeartbeat();try{this.closeCamera()}catch{}if(this.socket){try{this.socket.onmessage=null}catch{}try{this.socket.onopen=null}catch{}try{this.socket.onerror=null}catch{}try{this.socket.onclose=null}catch{}try{this.socket.close()}catch{}this.socket=null}this.isConnected=!1,(P=this.canvas)!=null&&P.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.canvas=null,this.ctx=null}getDevCount(){this.sendBytes(new Uint8Array([119,136,80]))}openCamera(P=0,S=1280,A=720){if(!this.canvas)throw new Error("请先 init() 传入容器并创建 canvas");const C=new Uint8Array(12);C[0]=119,C[1]=136,C[2]=1,C[3]=P,C[4]=this.canvas.width>>8&255,C[5]=this.canvas.width&255,C[6]=this.canvas.height>>8&255,C[7]=this.canvas.height&255,C[8]=S>>8&255,C[9]=S&255,C[10]=A>>8&255,C[11]=A&255,this.sendBytes(C)}closeCamera(){this.sendBytes(new Uint8Array([119,136,2,0]))}photo(){const C=new Uint8Array(12);C[0]=119,C[1]=136,C[2]=16,C[3]=0,C[4]=0,C[5]=0,C[6]=0,C[7]=0,C[8]=1,C[9]=0,C[10]=0,C[11]=0,this.sendBytes(C)}bestSize(){this.sendBytes(new Uint8Array([119,136,5,0]))}rotateLeft(){this.sendBytes(new Uint8Array([119,136,7,0]))}rotateRight(){this.sendBytes(new Uint8Array([119,136,8,0]))}focus(){this.sendBytes(new Uint8Array([119,136,48,0]))}log(P){var S;(S=this.onLog)==null||S.call(this,P)}sendBytes(P){if(!this.socket||this.socket.readyState!==WebSocket.OPEN||!this.isConnected)throw new Error("socket 未连接");this.socket.send(P.buffer)}startHeartbeat(){this.stopHeartbeat(),this.heartTimer=window.setInterval(()=>{this.log("heartCheck...........")},this.heartbeatInterval)}stopHeartbeat(){this.heartTimer&&(clearInterval(this.heartTimer),this.heartTimer=null)}handleMessage(P){var C,n,I,ue,ye;const S=new Uint8Array(P.data);if(S.length<=0)return;if(S[0]===17&&S[1]===17&&S[2]===17){this.log("heart socket!!!!");return}if(S[0]!==85||S[1]!==102)return;const A=S[2];if(A===80){const Se=S[3],Je=S.length-4,Ye=new Uint8Array(Je);for(let kl=0;kl<Je;kl++)Ye[kl]=S[4+kl];const el=decodeURIComponent(this.byteToString(Ye)).split("|");(C=this.onDevCount)==null||C.call(this,Se,el);return}if(A===1){S[3]===1&&((n=this.onCameraStatus)==null||n.call(this,"opened")),S[3]===3&&((I=this.onCameraStatus)==null||I.call(this,"closed"));return}if(A===16){if(S[3]===1){const Je=S[4]*256+S[5],Ye=S[6]*65536+S[7]*256+S[8];let al="";if(Je>0){const Cl=new Uint8Array(Je);for(let ce=0;ce<Je;ce++)Cl[ce]=S[9+ce];al=decodeURIComponent(this.byteToString(Cl))}const el=new Uint8Array(Ye);for(let Cl=0;Cl<Ye;Cl++)el[Cl]=S[9+Je+Cl];const kl=this.uint8ArrayToString(el);(ue=this.onPhoto)==null||ue.call(this,{flag:0,imgPath:al,base64:kl})}S[3]===2&&((ye=this.onPhoto)==null||ye.call(this,{flag:2,imgPath:"",base64:""}));return}if(A===204){if(!this.canvas||!this.ctx)return;const Se=S[3]*256+S[4],Je=S[5]*256+S[6];this.pMainShowStartX=S[7]*256+S[8],this.pMainShowStartY=S[9]*256+S[10],this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height);const Ye=this.ctx.createImageData(Se,Je);let al=11;for(let el=0;el<Ye.data.length;el+=4)Ye.data[el+0]=S[al],Ye.data[el+1]=S[al+1],Ye.data[el+2]=S[al+2],Ye.data[el+3]=255,al+=3;this.ctx.putImageData(Ye,this.pMainShowStartX,this.pMainShowStartY),this.mainCamCutMode;return}}uint8ArrayToString(P){let S="";for(let A=0;A<P.length;A++)S+=String.fromCharCode(P[A]);return S}byteToString(P){let S="";for(let A=0;A<P.length;A++)S+=String.fromCharCode(P[A]);return S}}const Zn={style:{display:"flex",gap:"16px",height:"100%"}},ei={key:0,style:{color:"var(--el-text-color-secondary)"}},li={style:{width:"420px",display:"flex","flex-direction":"column",gap:"16px"}},ai={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px"}},ri={ref:"pictureBox",style:{height:"220px",border:"1px dashed var(--el-border-color)","border-radius":"4px",display:"flex","align-items":"center","justify-content":"center",background:"var(--el-fill-color-lighter)",position:"relative",overflow:"hidden"}},oi={key:0,style:{color:"var(--el-text-color-secondary)"}},ni=["src"],ii={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px",flex:"1","min-height":"0",display:"flex","flex-direction":"column"}},si={class:"dialog-footer"},ti=e.defineComponent({__name:"index",props:{visible:{type:Boolean,default:!1}},emits:["confirm","cancel"],setup(B,{emit:P}){const S=B,A=P,C=e.ref(null),n=e.ref(!1),I=e.ref(""),ue=e.ref(""),ye=new Qn({url:"ws://127.0.0.1:22225"});function Se(oe,re){var L;const Ae=oe.split(","),R=((L=Ae[0].match(/:(.*?);/))==null?void 0:L[1])??"image/jpeg",yl=atob(Ae[1]);let ll=yl.length;const ee=new Uint8Array(ll);for(;ll--;)ee[ll]=yl.charCodeAt(ll);return new File([ee],re,{type:R})}function Je(){ye.onLog=oe=>{console.log("[GPY]",oe)},ye.onDevCount=(oe,re)=>{if(ue.value+=`设备数量=${oe},设备=${re.join(",")}
|
|
2
|
+
`,oe>0){ue.value+=`检测到设备,正在打开摄像头...
|
|
3
|
+
`;try{ye.openCamera(0,1280,720)}catch(Ae){ue.value+=`打开摄像头失败:${(Ae==null?void 0:Ae.message)??Ae}
|
|
4
|
+
`}}else ue.value+=`未检测到高拍仪设备!
|
|
5
|
+
`},ye.onCameraStatus=oe=>{oe==="opened"?(n.value=!0,ue.value+=`摄像头已打开
|
|
6
|
+
`):(n.value=!1,ue.value+=`摄像头已关闭
|
|
7
|
+
`)},ye.onPhoto=oe=>{oe.flag===0&&oe.base64?(I.value=`data:image/jpeg;base64,${oe.base64}`,ue.value+=`拍照完成,已接收图片
|
|
8
|
+
`):ue.value+=`拍照失败 flag=${oe.flag}
|
|
9
|
+
`}}const Ye=async()=>{if(await e.nextTick(),!C.value)return;al(),Je();const oe=C.value.getBoundingClientRect();ye.init(C.value,Math.floor(oe.width),Math.floor(oe.height)),ue.value+=`正在连接设备服务...
|
|
10
|
+
`,await ye.connect(),ue.value+=`正在获取设备数量...
|
|
11
|
+
`,ye.getDevCount()},al=()=>{try{ye.destroy()}catch(oe){console.error(oe)}n.value=!1,I.value="",ue.value=""};e.watch(()=>S.visible,oe=>{oe?Ye():al()});const el=()=>{try{ye.bestSize()}catch(oe){console.error(oe)}},kl=()=>{try{ye.rotateLeft()}catch(oe){console.error(oe)}},Cl=()=>{try{ye.rotateRight()}catch(oe){console.error(oe)}},ce=()=>{try{ye.focus()}catch(oe){console.error(oe)}},Le=()=>{ue.value+=`正在拍照...
|
|
12
|
+
`;try{ye.photo()}catch(oe){ue.value+=`拍照调用失败:${(oe==null?void 0:oe.message)??oe}
|
|
13
|
+
`}},Ge=()=>{if(I.value){const oe=Se(I.value,"gpy-capture.jpg");A("confirm",oe)}else A("confirm",null)},pe=()=>{al(),A("cancel")};return(oe,re)=>{const Ae=e.resolveComponent("el-input"),R=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(ra.ssDialog,{title:"扫描录入",visible:S.visible,onBeforeDestroy:pe,width:"1200px",style:{height:"80%"}},{default:e.withCtx(()=>[e.createElementVNode("div",Zn,[e.createElementVNode("div",{ref_key:"cameraBox",ref:C,style:{flex:"1","min-width":"0",border:"1px solid var(--el-border-color)","border-radius":"4px",position:"relative",overflow:"hidden",display:"flex","align-items":"center","justify-content":"center",background:"var(--el-fill-color-lighter)"}},[n.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ei,"初始化摄像头..."))],512),e.createElementVNode("div",li,[e.createElementVNode("div",ai,[re[0]||(re[0]=e.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"拍照图片",-1)),e.createElementVNode("div",ri,[I.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",oi,"暂无图片")),I.value?(e.openBlock(),e.createElementBlock("img",{key:1,src:I.value,style:{"max-width":"100%","max-height":"100%","object-fit":"contain"},alt:"captured image"},null,8,ni)):e.createCommentVNode("",!0)],512)]),e.createElementVNode("div",ii,[re[1]||(re[1]=e.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"操作记录",-1)),e.createVNode(Ae,{type:"textarea",value:ue.value,readonly:"",rows:10,placeholder:"设备操作记录...",style:{flex:"1"}},null,8,["value"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",si,[e.createVNode(R,{onClick:el,disabled:!n.value,id:"themeBorderButton"},{default:e.withCtx(()=>re[2]||(re[2]=[e.createTextVNode("适屏")])),_:1,__:[2]},8,["disabled"]),e.createVNode(R,{onClick:kl,disabled:!n.value,id:"themeBorderButton"},{default:e.withCtx(()=>re[3]||(re[3]=[e.createTextVNode("左旋")])),_:1,__:[3]},8,["disabled"]),e.createVNode(R,{onClick:Cl,disabled:!n.value,id:"themeBorderButton"},{default:e.withCtx(()=>re[4]||(re[4]=[e.createTextVNode("右旋")])),_:1,__:[4]},8,["disabled"]),e.createVNode(R,{onClick:ce,disabled:!n.value,id:"themeBorderButton"},{default:e.withCtx(()=>re[5]||(re[5]=[e.createTextVNode("对焦")])),_:1,__:[5]},8,["disabled"]),e.createVNode(R,{onClick:Le,disabled:!n.value,id:"themeButton"},{default:e.withCtx(()=>re[6]||(re[6]=[e.createTextVNode("拍照")])),_:1,__:[6]},8,["disabled"]),re[9]||(re[9]=e.createElementVNode("div",{style:{flex:"1"}},null,-1)),e.createVNode(R,{onClick:Ge,disabled:!I.value,id:"themeButton"},{default:e.withCtx(()=>re[7]||(re[7]=[e.createTextVNode("确认")])),_:1,__:[7]},8,["disabled"]),e.createVNode(R,{onClick:pe,id:"themeBorderButton"},{default:e.withCtx(()=>re[8]||(re[8]=[e.createTextVNode("取消")])),_:1,__:[8]})])]),_:1},8,["visible"])}}}),ui=Da._export_sfc(ti,[["__scopeId","data-v-cfe79109"]]),Ir=N.defineStore("formComp",{state:()=>({objUrl:[],blobUrls:[]}),actions:{setObjUrl(B){this.objUrl=B},setBlobUrls(B){this.blobUrls=B}}}),Ka=async(B,P)=>{var I,ue,ye,Se,Je,Ye,al,el,kl,Cl,ce,Le,Ge,pe,oe,re,Ae;let S=(ue=(I=N.cloneDeep(B))==null?void 0:I.optionUrl)==null?void 0:ue.menuSelect,A=[];S==null||S.forEach(R=>{});let C="",n=await de.menuToParent(S);if(n==null||n.forEach(R=>{var yl,ll,ee,L;(R==null?void 0:R.name)===(((L=(ee=(ll=(yl=N.cloneDeep(B))==null?void 0:yl.optionUrl)==null?void 0:ll.groupSelect)==null?void 0:ee[0])==null?void 0:L.replaceAll("'",""))??"")&&(C=R==null?void 0:R.id)}),P){C=P;const R=await N.getInsofDataApi({id:C}),yl=(Ye=(Je=(Se=(ye=R==null?void 0:R.data)==null?void 0:ye.result)==null?void 0:Se[0])==null?void 0:Je.key)==null?void 0:Ye.pageKey;n=await de.getItemData(yl,sessionStorage.getItem("systemKey"),"")}if(C!==""){let R;P?R=(al=n==null?void 0:n.find(ee=>(ee==null?void 0:ee.id)===P))==null?void 0:al.compData:R=(el=n==null?void 0:n.find(ee=>{var L,He,le,Ne;return(ee==null?void 0:ee.name)===(((He=(L=B==null?void 0:B.groupSelect)==null?void 0:L.split(":"))==null?void 0:He[0])||((Ne=(le=B==null?void 0:B.optionUrl)==null?void 0:le.groupSelect)==null?void 0:Ne[0]))}))==null?void 0:el.compData;let yl=(Cl=(kl=R==null?void 0:R.find(ee=>(ee==null?void 0:ee.key)==="header"))==null?void 0:kl.contents)==null?void 0:Cl.map(ee=>ee==null?void 0:ee.label);(Le=(ce=R==null?void 0:R.find(ee=>(ee==null?void 0:ee.key)==="header"))==null?void 0:ce.contents)!=null&&Le.every(ee=>Array.isArray(ee))&&(yl=(oe=de.getColumnChild((pe=(Ge=R==null?void 0:R.find(ee=>(ee==null?void 0:ee.key)==="header"))==null?void 0:Ge.contents)==null?void 0:pe[0]))==null?void 0:oe.map(ee=>ee==null?void 0:ee.prop));let ll=(Ae=(re=R==null?void 0:R.find(ee=>(ee==null?void 0:ee.key)==="tableContents"))==null?void 0:re.contents)==null?void 0:Ae.map(ee=>{if(Array.isArray(ee))ee=ee==null?void 0:ee.filter(L=>!(L!=null&&L.id));else{let L={};for(let He in ee)He!=="id"&&(L[He]=ee==null?void 0:ee[He]);ee=L}return ee});ll==null||ll.forEach(ee=>{Array.isArray(ee)?A.push(de.getValueToObjectValue(ee,yl)):A.push(ee)})}return A},ci=async(B,P)=>{var C;let S=B;Array.isArray(S)||(S=[S]);let A=(C=P==null?void 0:P.filter(n=>{var I;return(n==null?void 0:n.methodContent)&&((I=n==null?void 0:n.methodContent)==null?void 0:I.includes("Manual"))}))==null?void 0:C.map(n=>({prop:n==null?void 0:n.prop,label:n==null?void 0:n.label,methods:n==null?void 0:n.methodContent}));return S=S==null?void 0:S.map(async n=>(n=await de.onMethods(n,A,P,"Manual",S),n)),S=await Promise.all(S),S},di="col-operate",nr=B=>`${di}-${B}`,pi=(B,P)=>{const S=new Map;return B.forEach(A=>{const{prop:C}=A;S.set(C,A)}),P.forEach(A=>{const{prop:C}=A,n=S.get(C);return fi(n,A)}),P},fi=(B,P)=>(B&&(P.sortable=B==null?void 0:B.sortable,P.filterable=B==null?void 0:B.filterable,P.showSummary=B==null?void 0:B.showSummary,P.operable=B==null?void 0:B.operable,P.fixed=B==null?void 0:B.fixed),P),hi=(B,P)=>{const{sortable:S=!1,filterable:A=!1,showSummary:C=!1,operable:n=!1,fixed:I=!1}=P||{};return{prop:B,sortable:S,filterable:A,showSummary:C,operable:n,fixed:I}},yi=async B=>{var n,I;if(!B)return;const P=nr(B),S=await N.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:P}}),A=(n=S==null?void 0:S.data)==null?void 0:n.code,C=(I=S==null?void 0:S.data)==null?void 0:I.result;if(A==200)return C==null?void 0:C[0]},vi=async B=>{var n,I,ue,ye;if(!B)return;const P=nr(B),S=await N.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:P}}),A=(n=S==null?void 0:S.data)==null?void 0:n.code,C=(I=S==null?void 0:S.data)==null?void 0:I.result;return A==200?(ye=(ue=C==null?void 0:C[0])==null?void 0:ue.value)==null?void 0:ye.columns:[]},gi=async(B,P)=>{if(!B||!P)return;const S=nr(B);return await N.createInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:S},value:{columns:P}})},bi=async(B,P)=>!B||!P?void 0:await N.updateInsofDataApi({id:B,value:{columns:P}}),qr=async(B,P)=>{const S=sessionStorage.getItem("systemKey");if(!B||!P||!S)return;const A=await yi(B);return A?await bi(A==null?void 0:A.id,P):await gi(B,P)},mi={class:"table-content"},ki={class:"menu-config-wrap"},Ci=["onClick"],Si={key:0,class:"viewport-wrap"},xi=["onClick"],Ni={title:"选择显示列信息"},_i={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},Ai=["title"],wi={class:"col-operate-wrap"},Di={key:0,class:"col-operate-radio-wrapper"},Ei={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},Ti={key:0,style:{display:"flex","justify-content":"center","align-items":"center"}},Bi={class:"pop-view"},Oi={class:"pop-wrapper"},Ui={class:"file-list-pop"},Li=["title","onClick"],ji=["onClick"],Pi=["onClick"],$i={class:"form-content"},Mi={key:0,class:"dialog-footer"},Ri={class:"dialog-footer"},Fi={"element-loading-text":"正在识别中 请稍后"},Ki={style:{display:"flex","justify-content":"space-between",width:"100%","align-items":"center"}},Vi=["title"],zi={class:"icon",style:{display:"flex",gap:"8px"}},qi={class:"dialog-footer"},Wi={class:"ocr-preview-content"},Ji={class:"ocr-preview-tip"},Gi={class:"ocr-preview-table"},Hi={style:{display:"flex","align-items":"center",gap:"8px"}},Ii={class:"dialog-footer"},Xi={class:"form-content"},Yi={__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(B,{emit:P}){var Br;const S=e.ref([]),A=Ir(N.pinia),C=e.ref(null),n=B,I=e.ref(n==null?void 0:n.allowSelect),ue=e.ref((Br=n==null?void 0:n.config)==null?void 0:Br.showIndex),ye=e.ref(),Se=e.ref(!0),Je=e.ref(!1),Ye={sortable:"switch",filterable:"switch",showSummary:"switch",operable:"switch",fixed:"radio"},al=e.ref([{label:"排序",value:"sortable",checked:!1},{label:"合计",value:"showSummary",checked:!1},{type:"radio",label:"固定",value:"fixed",checked:"",options:[{label:"无",value:!1},{label:"左",value:"left"},{label:"右",value:"right"}]}]),el=de.useOriginalState(N.pinia);let kl="$R";const{originalPath:Cl}=N.storeToRefs(el),ce=Cl.value,Le=e.computed(()=>{var a;return(a=R.value)==null?void 0:a.every(r=>r==null?void 0:r.sortable)});e.computed(()=>{var a;return(a=R.value)==null?void 0:a.every(r=>r==null?void 0:r.filterable)}),e.computed(()=>{var a;return(a=R.value)==null?void 0:a.every(r=>r==null?void 0:r.operable)});const Ge=e.ref(!0),pe=e.ref([]),oe=e.reactive({column:{},status:!1,text:"合计"}),re=e.reactive({currentPage:1,pageSize:10,total:0,pageSizes:[5,10,20,50,100]}),Ae=P,R=e.ref([]),yl=e.ref([]),ll=e.ref([]),ee=e.reactive({prop:"",order:null}),L=e.ref([]),He=e.ref(!1),le=e.ref(!1),Ne=e.ref(null),{isUseBackdrop:Me,initTrackFileType:ml,getFileExtension:Ml,setData:Va,getFileInfo:ir,getFilesInfo:Xr}=Kr.useThreeSystem(),za=e.ref([]),oa=e.ref(!1),sa=e.ref(),vl=Ra.useMenuState(),{importLoading:Zi,activeMenuPath:Fe,contentLoading:es,linkMenuInfo:Yr}=N.storeToRefs(vl),Qr=de.useTableComp(N.pinia),rl=Ra.useModelComp(N.pinia),{extraContents:qe,cacheUpdatingData:fa,tableViewContents:ha,tableLoading:ls,pageMapState:ta,lockingPage:Ea}=N.storeToRefs(rl),Q=e.ref([]),Wl=e.ref([]),jl=e.ref(new Map);e.ref(!1);const Jl=e.ref("");e.ref();const Ta=e.ref(!0),ua=e.ref(0),sr=e.ref(!0),Ol=e.ref(""),Gl=e.ref(!1),Zr=e.ref({label:"查看三维模型"}),Ba=e.ref(!1),qa=e.ref(),$l=e.ref([]),Hl=e.ref([]),Oa=e.ref(!1),ya=e.ref([]),Dl=e.ref([]),El=e.ref([]),xe=e.ref([]),Ua=e.ref(!1),aa=e.ref(!1),Il=e.ref([]),eo=e.ref(null),La=e.ref(!1),ja=e.ref([]),tr=e.ref(""),Wa=e.ref(""),Ja=e.ref(!1),ca=e.ref([]),Ga=e.ref([]),Ha=e.ref([]),Ia=e.ref(null),Ql=e.ref([]),va=Sn.createOCRService(),lo=e.computed(()=>va.getConfig()),Rl=e.ref(),_l=e.ref(),ao=Wr(N.pinia),ga=e.ref(),Xa=e.ref(0),ro=de.useUnit(N.pinia),{selectIndex:oo,selectMenu:ba,selectTitle:as}=N.storeToRefs(ro),{selectString:na}=N.storeToRefs(ao),no=N.useLoginState(N.pinia),{loginUserInfo:da}=N.storeToRefs(no),io=e.ref(720),Fl=e.ref(!1),Pa=e.ref(!1),Kl=e.ref([]),Vl=e.ref(),ma=e.ref(!0),ur=e.ref(!0),ia=e.ref([]),so=e.inject("contentRef");e.provide("contentRef",so),e.watch(()=>{var l;return(l=Q.value)==null?void 0:l.length},l=>{re.total=l}),e.watch(()=>ha.value,async()=>{var u,c,s,f,b,E,k,T,$,M,K,x,V,Y,J,U,_,t;if(((u=ha.value)==null?void 0:u.length)===0||!((c=n==null?void 0:n.itemData)!=null&&c.find(y=>(y==null?void 0:y.key)==="columnPath"))||!((s=n==null?void 0:n.itemData)!=null&&s.find(y=>(y==null?void 0:y.key)==="pageColumn")))return;let l=($=(T=(k=(E=(b=(f=n==null?void 0:n.itemData)==null?void 0:f.find(y=>(y==null?void 0:y.key)==="pageColumn"))==null?void 0:b.contents)==null?void 0:E.split("["))==null?void 0:k[1])==null?void 0:T.split("]"))==null?void 0:$[0],a=((V=(x=(K=(M=n==null?void 0:n.itemData)==null?void 0:M.find(y=>(y==null?void 0:y.key)==="pageColumn"))==null?void 0:K.contents)==null?void 0:x.split("["))==null?void 0:V[0])+((J=(Y=ha.value)==null?void 0:Y.find(y=>(y==null?void 0:y.key)===l))==null?void 0:J.value),r=((_=(U=n==null?void 0:n.itemData)==null?void 0:U.find(y=>(y==null?void 0:y.key)==="pageGroup"))==null?void 0:_.contents)??"",o=await de.getItemData(a,sessionStorage.getItem("systemKey"),""),i=(t=o==null?void 0:o.find(y=>(y==null?void 0:y.name)===(r===""?n==null?void 0:n.compName:r)))==null?void 0:t.compData;Er(i,n.allMapContents)},{deep:!0});const to=async(l,a)=>{var r,o,i,u,c;try{const s=await N.getInsofDataApi({id:(n==null?void 0:n.parentTableId)||(n==null?void 0:n.index)});let f;((r=s==null?void 0:s.data)==null?void 0:r.code)===200&&(f=((i=(o=s==null?void 0:s.data)==null?void 0:o.result)==null?void 0:i[0])||null);const b={type:"data",pageKey:n!=null&&n.parentTableId?(u=f==null?void 0:f.key)==null?void 0:u.pageKey:Fe.value,tableId:(n==null?void 0:n.parentTableId)||(n==null?void 0:n.index),systemKey:sessionStorage.getItem("systemKey")},E=a==null?void 0:a.map($=>{const M=Object.keys($),K={};return M.forEach((x,V)=>{K[l[V]]=$[x]}),K}),k=E==null?void 0:E.map($=>({key:b,value:{tableData:$}})),T=await N.batchAddInsofDataApi({dataList:k});((c=T==null?void 0:T.data)==null?void 0:c.code)===200?(rl.setRefreshCurStructure(!0),N.ElMessage.success("导入数据成功")):N.ElMessage.error("导入数据响应失败")}catch(s){throw N.ElMessage.error("导入数据处理失败"),new Error(s)}},uo=async l=>{var u,c,s,f,b,E,k;let a=ll.value;a!=null&&a.find(T=>(l==null?void 0:l.key)===(T==null?void 0:T.key))&&(a=a==null?void 0:a.filter(T=>(l==null?void 0:l.key)!==(T==null?void 0:T.key))),a.push({key:l==null?void 0:l.key,value:[(c=l==null?void 0:l.value)==null?void 0:c[((u=l==null?void 0:l.value)==null?void 0:u.length)-1]]});let r=xe.value;r=r==null?void 0:r.map(T=>{var $,M;return(T==null?void 0:T.type)==="Select"&&(l==null?void 0:l.key)===(T==null?void 0:T.prop)&&Array.isArray(T.value)&&($=T.value)!=null&&$.every(K=>typeof K=="string")&&(T.selectValue=(M=a==null?void 0:a.find(K=>(K==null?void 0:K.key)===(T==null?void 0:T.prop)))==null?void 0:M.value),T});let o=(f=(s=r==null?void 0:r.find(T=>(T==null?void 0:T.prop)===(l==null?void 0:l.key)))==null?void 0:s.optionUrl)==null?void 0:f.menuId,i=r==null?void 0:r.find(T=>(T==null?void 0:T.prop)===(l==null?void 0:l.key));if(o){let T=await Ka(i==null?void 0:i.optionUrl,o),$,M=pe.value,K=(k=(E=(b=xe.value)==null?void 0:b.find(x=>{var V;return(V=i==null?void 0:i.optionUrl)==null?void 0:V.menuId}))==null?void 0:E.selectValue)==null?void 0:k[0];if(T==null||T.forEach(x=>{var V,Y,J,U,_,t,y,v,q,D;if(o){let H=(Y=(V=xe.value)==null?void 0:V.find(j=>{var fe,W;return((fe=i==null?void 0:i.optionUrl)==null?void 0:fe.menuId)===((W=j==null?void 0:j.optionUrl)==null?void 0:W.menuId)}))==null?void 0:Y.prop,d=(U=(J=r==null?void 0:r.find(j=>(j==null?void 0:j.prop)===H))==null?void 0:J.selectValue)==null?void 0:U[0];H!=null&&H.includes("·")&&(H=(_=H==null?void 0:H.split("·"))==null?void 0:_[0],d=(q=(v=(y=l==null?void 0:l.value)==null?void 0:y[((t=l==null?void 0:l.value)==null?void 0:t.length)-1])==null?void 0:v.split(" "))==null?void 0:q[0]),M!=null&&M.find(j=>(j==null?void 0:j.value)===K)?$=(D=M==null?void 0:M.find(j=>(j==null?void 0:j.value)===K))==null?void 0:D.objectValue:x[H]===d&&($=x)}}),$){let x=r;x=x==null?void 0:x.map(V=>{var Y,J,U,_,t,y;return o&&($!=null&&$[V==null?void 0:V.prop])&&Ol.value==="新增"&&(V==null?void 0:V.prop)!==(i==null?void 0:i.prop)?V.value=($==null?void 0:$[V==null?void 0:V.prop])||($==null?void 0:$[(_=(U=(J=(Y=V==null?void 0:V.optionUrl)==null?void 0:Y.groupSelect)==null?void 0:J[1])==null?void 0:U.replaceAll("[",""))==null?void 0:_.replaceAll("]","")]):V.value=(y=(t=xe.value)==null?void 0:t.find(v=>(v==null?void 0:v.prop)===(V==null?void 0:V.prop)))==null?void 0:y.value,V}),xe.value=x}}ll.value=a},co=async l=>{var a,r,o,i,u;if((a=l==null?void 0:l.toString())!=null&&a.includes(".txt")||(r=l==null?void 0:l.toString())!=null&&r.includes(".cpt")||(o=l==null?void 0:l.toString())!=null&&o.includes(".cyd")){const c=await N.axios.get(l,{responseType:"blob",headers:{"Content-Type":"application/json"}}),s=new Blob([c.data],{type:"application/octet-stream;charset=UTF-8"});let f=URL.createObjectURL(s);sa.value=[{name:(u=l==null?void 0:l.split("/"))==null?void 0:u[((i=l==null?void 0:l.split("/"))==null?void 0:i.length)-1],blobUrl:f}],oa.value=!0}};e.onBeforeUnmount(()=>{ur.value=!1;let l=Xa.value;Xa.value=l+1});const cr=e.computed(()=>{var o,i;const l=(re.currentPage-1)*re.pageSize,a=l+re.pageSize,r=(o=R.value)==null?void 0:o.find(u=>{var c;return(u==null?void 0:u.sortable)&&((c=u==null?void 0:u.label)==null?void 0:c.includes("时间"))});return r&&(ee.order="descending",ee.prop=r==null?void 0:r.prop),Ae("getSliceContLength",re),(i=Q.value)==null?void 0:i.slice(l,a)}),po=l=>{re.currentPage=l,Ae("getSliceContLength",re)},fo=l=>{var a;re.pageSize=l,l*re.currentPage>((a=Q.value)==null?void 0:a.length)&&(re.currentPage=1,re.pageSize=10,N.ElMessage.warning("分页无效,返回第一页")),Ae("getSliceContLength",re)},ho=(l,a)=>{var c,s;const r=(s=(c=R.value)==null?void 0:c.map(f=>f==null?void 0:f.prop))==null?void 0:s.filter(f=>f!=="operate");let o;const i=(l==null?void 0:l.length)===(r==null?void 0:r.length);if(l!=null&&l.includes("序号"))return N.ElMessage.error("导入的数据不需要包含序号列");if(o=i?l:l.slice(0,r==null?void 0:r.length),!(o==null?void 0:o.every(f=>r==null?void 0:r.find(b=>f===b))))return N.ElMessage.error("导入的数据表头不匹配");to(o,a)},yo=(l,a)=>{var r;rl.setRefreshCurStructure(!1),((r=R.value)==null?void 0:r.length)===0||ho(l,a)},vo=(l,a,r,o)=>{const i=[],u=[],c=b=>Object.keys(b).length;for(const b in l)if(l[b]!==void 0){const E=l[b],k=[];for(const[T,$]of Object.entries(E))k.push($),u.length<c(E)&&u.push(T);i.push(k)}i.unshift(u);const s=de.utils.aoa_to_sheet(i),f=de.utils.book_new();de.utils.book_append_sheet(f,s,o),de.writeFileSync(f,`${a}.xlsx`),Kl.value=[]},dr=async(l,a,r,o=!1,i)=>{var u,c,s,f,b,E,k,T;try{rl.setRefreshCurStructure(!1);const $=await N.getInsofDataApi({id:n==null?void 0:n.index});if(((u=$==null?void 0:$.data)==null?void 0:u.code)===200){let M=(b=(f=(s=(c=$==null?void 0:$.data)==null?void 0:c.result)==null?void 0:s[0])==null?void 0:f.value)==null?void 0:b.pageData;o?M={...M,compData:(k=M==null?void 0:M.compData)==null?void 0:k.map(x=>{var V;return(x==null?void 0:x.key)==="header"?{...x,contents:(V=x==null?void 0:x.contents)==null?void 0:V.map(Y=>({...Y,[l]:r}))}:x})}:M={...M,compData:(E=M==null?void 0:M.compData)==null?void 0:E.map(x=>{var V,Y;return(x==null?void 0:x.key)==="header"?{...x,contents:(V=x==null?void 0:x.contents)==null?void 0:V.map(J=>{if(Array.isArray(J))J=J==null?void 0:J.map(U=>(U==null?void 0:U.prop)===(a==null?void 0:a.prop)?{...U,[l]:r}:U);else if((J==null?void 0:J.prop)===(a==null?void 0:a.prop))return{...J,[l]:r};return J})}:(x==null?void 0:x.key)==="tableToForm"&&i?{...x,contents:(Y=x==null?void 0:x.contents)==null?void 0:Y.map(J=>(J==null?void 0:J.prop)===(a==null?void 0:a.prop)?{...J,[i]:r}:J)}:x})};const K=await N.updateInsofDataApi({id:n==null?void 0:n.index,value:{pageData:M}});((T=K==null?void 0:K.data)==null?void 0:T.code)===200?(N.ElMessage.success("编辑成功"),rl.setRefreshCurStructure(!0)):N.ElMessage.error("编辑响应失败")}}catch($){N.ElMessage.error($)}},go=async(l,a)=>{await dr("label",a,l)},bo=async(l,a)=>{await dr("columnType",a,l,!1,"type")},mo=()=>{fa.value?Fl.value=!1:Tr()},ko=l=>{Kl.value=l},Co=(l,a)=>{Vl.value===a?ma.value=!1:ma.value=!0,Vl.value=a==null?void 0:a.changeProp},So=l=>{if(!l)return;const{item:a,value:r}=l,o=xe.value.find(i=>i.prop==a.prop);o&&o.contents.push({label:r,value:r})},ka=e.computed(()=>{var r,o,i;const l=(r=R.value)==null?void 0:r.some(u=>u==null?void 0:u.filterable);return document.documentElement.style.setProperty("--ssTable-header-filter-display",l?"inline-block":"none"),(i=(o=R.value)==null?void 0:o.filter(u=>(u==null?void 0:u.label)!=="操作"))==null?void 0:i.map(u=>({...u,filterable:!!(u!=null&&u.filterable),showSummary:!!(u!=null&&u.showSummary),operable:!!(u!=null&&u.operable),fixed:u==null?void 0:u.fixed}))}),pr=async(l,a,r)=>{const o=N.cloneDeep(R.value);await e.nextTick();const i=o==null?void 0:o.map(c=>(r==null?void 0:r.label)===(c==null?void 0:c.label)?{...c,[a]:l}:c),u=Ya(i);await qr(n.index,u),R.value=i,yl.value=u},Ya=l=>(l||[]).map(o=>{const{prop:i}=o;return hi(i,o)}),xo=async l=>{let a=await vi(n.index);a||(a=Ya(l)),yl.value=a},No=async(l,a)=>{const r=N.cloneDeep(R.value),o=r==null?void 0:r.map(u=>({...u,[a]:l})),i=Ya(o);await qr(n.index,i),R.value=o,yl.value=i},_o=()=>{Gl.value=!1},Ao=l=>{Ae("clickTrigger",l)},fr=async l=>{var u,c,s,f,b,E,k,T,$,M,K,x,V,Y,J;const a=l==null?void 0:l.row,r=l==null?void 0:l.rowData,o=l==null?void 0:l.suffix;if((u=a==null?void 0:a.toString())!=null&&u.includes(".urdf")||l!=null&&l.isUrdf||o!=null&&o.includes(".urdf")){if(a.includes(",")){N.ElMessage.error("当前版本仅允许单个urdf预览!");return}if(Me(a)){const _={files:[ir(a)],data:{}};Va(_);return}ya.value=[{url:a,extension:Ml(a)}],le.value=!0,Ne.value={data:N.cloneDeep(r)},He.value=!0;return}let i=[];if((c=a==null?void 0:a.toString())!=null&&c.includes(".stl")||(s=a==null?void 0:a.toString())!=null&&s.includes(".STL")||(f=a==null?void 0:a.toString())!=null&&f.includes(".obj")||(b=a==null?void 0:a.toString())!=null&&b.includes(".mtl")){const U=(E=a==null?void 0:a.toString())==null?void 0:E.split(","),_=Xr(U),t=_==null?void 0:_[0];if(Me(t==null?void 0:t.extension)){Va({files:_,data:{}});return}ya.value=_,le.value=!1,He.value=!0;return}if((k=a==null?void 0:a.toString())!=null&&k.includes(".stl")||(T=a==null?void 0:a.toString())!=null&&T.includes(".STL")||($=a==null?void 0:a.toString())!=null&&$.includes(".obj")||(M=a==null?void 0:a.toString())!=null&&M.includes(".mtl")||o!=null&&o.includes(".stl")||o!=null&&o.includes(".STL")||o!=null&&o.includes(".obj")||o!=null&&o.includes(".mtl")){let U,_=[],t={};if(Array.isArray(a)?U=a:U=a==null?void 0:a.split(","),U==null||U.forEach(y=>{y.includes(".mtl")?_.push(y):t.blob=t.blob?t.blob+","+y:y}),(_==null?void 0:_.length)>0&&(t.mtlBlobs=_),o&&(t.suffix=o),(x=(K=Object.values(t))==null?void 0:K[0])!=null&&x.includes("http:"))i.push(t);else{const y=new Blob([t.blob],{type:"application/octet-stream;charset=UTF-8"});let v=URL.createObjectURL(y),q="";(V=a==null?void 0:a.split("/"))==null||V.forEach((D,H)=>{var d;H===((d=a==null?void 0:a.split("/"))==null?void 0:d.length)-1&&(q=D)}),(Y=t.blob)!=null&&Y.includes(".stl")&&(q=(q==null?void 0:q.replaceAll(">",""))+".urdf"),sa.value=[{name:q,blobUrl:v}],oa.value=!0}}else{const U=await N.axios.get(a,{responseType:"blob",headers:{"Content-Type":"application/json"}}),_=new Blob([U.data],{type:"application/octet-stream;charset=UTF-8"});let t=URL.createObjectURL(_),y="";if((J=a==null?void 0:a.split("/"))==null||J.forEach((v,q)=>{var D;q===((D=a==null?void 0:a.split("/"))==null?void 0:D.length)-1&&(y=v)}),Me(y)){const v=ml(y),q=ir(a);Va({files:[q],data:{trackFileType:v}});return}sa.value=[{name:y,blobUrl:t}],oa.value=!0}(i==null?void 0:i.length)>0&&A.setBlobUrls(i)},Ca=l=>{var o,i,u,c;if(l!=null&&l.downloadUrl)return l==null?void 0:l.name;const a=(c=(o=l==null?void 0:l.url)==null?void 0:o.split("."))==null?void 0:c[((u=(i=l==null?void 0:l.url)==null?void 0:i.split("."))==null?void 0:u.length)-1];return(l==null?void 0:l.name)+"."+a},Qa=l=>{if(!l)return"未知文件";try{const o=Ca(l);if(typeof o=="string"&&o.includes("."))return o}catch{}const a=(l==null?void 0:l.fileName)||(l==null?void 0:l.name)||"未知文件",r=(l==null?void 0:l.suffix)||"";return a.includes(".")?a:`${a}${r}`},hr=l=>{if(l==null||typeof l=="number"||typeof l!="string")return l;const a=l.match(/^(\d+)\_(\d+)$/);if(!a)return l;const r=Number(a[1]),o=Number(a[2]);return!Number.isFinite(r)||!Number.isFinite(o)?l:String(r*1e3+o)},yr=async l=>{let a=null,r=null;if(l!=null&&l.id){const i=Bl.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});try{const u=await de.downloadAvatarApi(l);a=URL.createObjectURL(u.data),r=Qa(l)}finally{i.close()}}else if(l!=null&&l.downloadUrl){const i=await Za(),u=Bl.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),c=await N.axios.post(l==null?void 0:l.url,null,{responseType:"blob",headers:{Authorization:i,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}).finally(()=>{u.close()}),s=new Blob([c.data],{type:"application/octet-stream;charset=UTF-8"});a=URL.createObjectURL(s),r=l==null?void 0:l.name}else{const i=await de.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(i.data),r=Ca(l)):a=l==null?void 0:l.url}if(Me(a)){const i={row:`${a}`,suffix:Ml(r)};fr(i);return}const o={name:r,blobUrl:a};sa.value=[o],oa.value=!0},wo=async l=>{let a=null,r=null;if(l!=null&&l.id){const u=await de.downloadAvatarApi(l);a=URL.createObjectURL(u.data),r=Qa(l)}else if(l!=null&&l.downloadUrl){const u=await Za(),c=await N.axios.post(l==null?void 0:l.url,null,{responseType:"blob",headers:{Authorization:u,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}),s=new Blob([c.data],{type:"application/octet-stream;charset=UTF-8"});a=URL.createObjectURL(s),r=l==null?void 0:l.name}else{const u=await de.downloadAvatarApi({url:l==null?void 0:l.url});a=URL.createObjectURL(u.data),r=Ca(l)}const o={name:r,blobUrl:a},i=document.createElement("a");i.href=o.blobUrl,i.download=o.name,i.style.display="none",document.body.appendChild(i),i.click(),setTimeout(()=>{document.body.removeChild(i)},100)},Do=(l,a)=>{var o;if(Object.values(a).length===0)return;let r=l;return Object.values(a).find(i=>{var u,c,s;return((u=i==null?void 0:i.toString())==null?void 0:u.includes(".txt"))||((c=i==null?void 0:i.toString())==null?void 0:c.includes(".cpt"))||((s=i==null?void 0:i.toString())==null?void 0:s.includes(".obj"))})?r=[...l,Zr.value]:(o=n==null?void 0:n.config)!=null&&o.allowMove&&(r=[...l,{label:"迁移"}]),r},Eo=(l,a={})=>[...l==null?void 0:l.values()].filter(r=>Object.keys(a).every(o=>{var c;const i=r[o],u=(c=a[o])==null?void 0:c.toLowerCase();return u&&i&&typeof i=="string"?i.toLowerCase().includes(u):!0})),To=()=>{Je.value=!0},vr=e.ref([]),Bo=async(l,a,r=!1)=>{var o;if(l){if(rl.setTableLoading(!0),vr.value=Object.values(l),l&&((o=Object.values(l))!=null&&o.every(i=>!i)))return Q.value=Wl.value;if(r){Q.value=[...jl.value.values()].filter(i=>Object.values(i).some(u=>typeof u=="string"?u==null?void 0:u.toLowerCase().includes(a==null?void 0:a.toLowerCase()):!1));return}Q.value=Eo(jl.value,l),rl.setTableLoading(!1)}},Oo=async l=>{},gr=async(l,a,r,o)=>{var i,u,c,s,f,b,E,k,T,$,M,K,x,V,Y,J,U,_,t,y;if(Ae("clickMainKey",r),(o==null?void 0:o.isExistChild)===!0){let v=(i=o==null?void 0:o.columnType)==null?void 0:i.prop,q=o==null?void 0:o.data;if(ia.value=await de.getItemData(Fe.value,sessionStorage.getItem("systemKey"),""),!ia.value){let H=(s=(c=(u=Fe.value)==null?void 0:u.split("/"))==null?void 0:c.filter((d,j)=>{var fe,W;return j!==((W=(fe=Fe.value)==null?void 0:fe.split("/"))==null?void 0:W.length)-1}))==null?void 0:s.join("/");ia.value=await de.getItemData(H,sessionStorage.getItem("systemKey"),"")}let D=(f=ia.value)==null?void 0:f.filter(H=>(H==null?void 0:H.name)===v);ia.value=D==null?void 0:D.map(H=>{var d;return H.compData=(d=H.compData)==null?void 0:d.map(j=>{var fe,W;return(j==null?void 0:j.key)==="tableContents"&&(fe=j==null?void 0:j.contents)!=null&&fe.every(w=>w==null?void 0:w.find(F=>F==null?void 0:F.id))&&(j.contents=(W=j==null?void 0:j.contents)==null?void 0:W.filter(w=>(w==null?void 0:w[1])===q)),j}),H}),Ae("routeUrl",ia.value,{isEdit:!0,routerUrl:Fe.value});return}if((o==null?void 0:o.data)==="查看"&&(l!=null&&l.every(v=>(v==null?void 0:v.url)&&(v==null?void 0:v.name)))){let v=N.cloneDeep(l);v=await((b=N.cloneDeep(v))==null?void 0:b.map(async D=>{var j,fe,W,w;const H=await de.downloadAvatarApi({url:D==null?void 0:D.url});let d=URL.createObjectURL(H.data);return{name:(D==null?void 0:D.name)+"."+((w=(j=D==null?void 0:D.url)==null?void 0:j.split("."))==null?void 0:w[((W=(fe=D==null?void 0:D.url)==null?void 0:fe.split("."))==null?void 0:W.length)-1]),blobUrl:d}}));let q=await Promise.all(v);sa.value=q,oa.value=!0}if(N.cloneDeep(R.value),(o==null?void 0:o.isMainKey)===!0){vl.setActiveMenuPath(void 0),rl.setRouteToChildPath(void 0),rl.setFixMenuStatus(!0);let v=(k=(E=n.itemData)==null?void 0:E.find(D=>(D==null?void 0:D.key)==="contentTableId"))==null?void 0:k.contents,q=($=(T=n.itemData)==null?void 0:T.find(D=>(D==null?void 0:D.key)==="relatedFilter"))==null?void 0:$.index;if(q!==0){let D=(K=(M=R.value)==null?void 0:M[q])==null?void 0:K.prop;if((r==null?void 0:r[D])===(o==null?void 0:o.data)){let H=await N.getInsofDataApi({id:v}),d=(J=(Y=(V=(x=H==null?void 0:H.data)==null?void 0:x.result)==null?void 0:V[0])==null?void 0:Y.key)==null?void 0:J.pageKey;vl.setActiveMenuPath(d+"/"+(o==null?void 0:o.data))}else{let H=await N.getInsofDataApi({key:{pageKey:N.cloneDeep(Fe).value+"/"+(o==null?void 0:o.data),systemKey:sessionStorage.getItem("systemKey")}});((_=(U=H==null?void 0:H.data)==null?void 0:U.result)==null?void 0:_.length)>0&&vl.setActiveMenuPath(N.cloneDeep(Fe).value+"/"+(o==null?void 0:o.data))}}else{let D=await N.getInsofDataApi({key:{pageKey:N.cloneDeep(Fe).value+"/"+(o==null?void 0:o.data),systemKey:sessionStorage.getItem("systemKey")}});((y=(t=D==null?void 0:D.data)==null?void 0:t.result)==null?void 0:y.length)>0&&vl.setActiveMenuPath(N.cloneDeep(Fe).value+"/"+(o==null?void 0:o.data))}}},Uo=()=>{oa.value=!1},Lo=l=>{Ae("rowClick",l)};e.watch(()=>n.changedContent,()=>{var r,o;if(!n.changedContent)return;let l=(r=Q.value)==null?void 0:r.map(i=>{var u;return i.id===((u=n.changedContent)==null?void 0:u.id)&&(i={...n.changedContent,id:n.changedContent.newId?n.changedContent.newId:n.changedContent.id},delete i.newId),i});const a=(o=n.itemData)==null?void 0:o.map(i=>((i==null?void 0:i.key)==="tableContents"&&(i.contents=l),i));Q.value=l,Ae("contentChange",{contents:a,index:n.index}),Ae("change",{content:l,index:n==null?void 0:n.index,buttonName:"",id:n==null?void 0:n.index})},{deep:!0,immediate:!0});const jo=()=>{},Po=async()=>{const l=Fe.value,a=sessionStorage.getItem("systemKey"),r=await de.getItemData(l,a,""),o=(r==null?void 0:r.find(s=>(s==null?void 0:s.name)==="方法明细"))||(r==null?void 0:r[0]),i=(o==null?void 0:o.compData)||[],u=i==null?void 0:i.find(s=>{const f=s==null?void 0:s.key;return f==="formContent"||f==="tableContents"});return u==null?void 0:u.contents},Za=async()=>`Bearer ${N.Local.get("access-token")}`,$o=async(l,{token:a,inputData:r}={})=>await N.axios.post(l,r,{headers:{Authorization:a}}).catch(i=>(vl.setImportLoading(!1),Promise.reject(i))),Mo=l=>{var o;let a={};const r=[];return a.form={},(o=N.cloneDeep(l))==null||o.forEach((i,u)=>{var c,s,f,b,E,k,T,$,M,K,x,V,Y,J;if((i==null?void 0:i.comp)==="Table"){(s=(c=i==null?void 0:i.compData)==null?void 0:c.find(y=>(y==null?void 0:y.key)==="header"))==null||s.contents;let U=(E=(b=(f=i==null?void 0:i.compData)==null?void 0:f.find(y=>(y==null?void 0:y.key)==="tableContents"))==null?void 0:b.contents)==null?void 0:E.map(y=>y.slice(1));(K=(M=($=(T=(k=i==null?void 0:i.compData)==null?void 0:k.find(y=>(y==null?void 0:y.key)==="header"))==null?void 0:T.contents)==null?void 0:$[0])==null?void 0:M[0])==null||K.label;let _=(V=(x=i==null?void 0:i.compData)==null?void 0:x.find(y=>(y==null?void 0:y.key)==="header"))==null?void 0:V.contents,t=[];U==null||U.forEach(y=>{let v=[];y==null||y.forEach((q,D)=>{var d;let H={};((d=_[D])==null?void 0:d.label)!=="操作"&&(H[_[D].label]=q,v.push(H))}),t.push(v)}),a[i.name]=t}else{const U=(J=(Y=i.compData)==null?void 0:Y.find(_=>(_==null?void 0:_.key)==="formContent"))==null?void 0:J.contents;U==null||U.forEach(_=>{var t,y;if(_.prop!==""){let v=_==null?void 0:_.value;Array.isArray(v)?v=((t=v==null?void 0:v[0])==null?void 0:t.oldUrl)||"http://222.92.178.198:62001/"+((y=v==null?void 0:v[0])==null?void 0:y.url):v=v.toString(),_={key:(_==null?void 0:_.prop)??(_==null?void 0:_.label),value:v},r.push(_)}})}}),a.form=de.getFormContents(r),a},Ro=l=>{const a=[],r=o=>{o&&typeof o=="object"&&!Array.isArray(o)?Object.values(o).forEach(r):a.push(o)};return r(l),a},Fo=async(l,a,r)=>{var _,t,y,v,q,D,H,d,j,fe,W;vl.setImportLoading(!0),rl.setFreshContent(!1);let o=await Po().catch(w=>(vl.setImportLoading(!1),Promise.reject(w)));o=o==null?void 0:o.filter(w=>{var F;return((F=w==null?void 0:w.find(ie=>ie==null?void 0:ie.id))==null?void 0:F.id)===(a==null?void 0:a.id)});let i=de.getEqualChild([(_=R.value)==null?void 0:_.filter(w=>(w==null?void 0:w.label)!=="操作")]);const u=(y=(t=de.tableToForm(o,i))==null?void 0:t[0])==null?void 0:y.find(w=>{const F=w==null?void 0:w.key;return F==="Interface"||F==="方法体"}),c=u==null?void 0:u.value;if(!c){console.log("未搜索到isMain, 缺少算法执行接口"),vl.setImportLoading(!1);return}const s=R.value?de.getEqualChild([R.value]):[],f=s.find(w=>{const F=w==null?void 0:w.prop;return F==="Input1"||F==="输入数据.输入1"||F==="样本输入数据"}),b=f==null?void 0:f.prop;let E=a==null?void 0:a[b];const k=await Za().catch(w=>(vl.setImportLoading(!1),Promise.reject(w)));let T=!0,$="";(v=R.value)==null||v.forEach(w=>{(w==null?void 0:w.prop)===b&&(T=!!(w!=null&&w.childPath),$=w==null?void 0:w.childPath)});let M="";if(T){let w=(D=(q=R.value)==null?void 0:q.find(me=>(me==null?void 0:me.isMainKey)===!0))==null?void 0:D.prop;M=a==null?void 0:a[w];let F=$==null?void 0:$.split(ce),ie=[];F==null||F.forEach((me,Ee)=>{(F==null?void 0:F.length)-1===Ee&&ie.push(M),ie.push(me)}),ie=ie==null?void 0:ie[0];let ne=await de.getItemData(ie,sessionStorage.getItem("systemKey"),""),ae=ne==null?void 0:ne.filter(me=>(me==null?void 0:me.name)===b);ae=ae==null?void 0:ae.map(me=>{var Ee;return me.compData=(Ee=me==null?void 0:me.compData)==null?void 0:Ee.map(X=>{var te;return(X==null?void 0:X.key)==="tableContents"&&(X.contents=(te=X==null?void 0:X.contents)==null?void 0:te.filter(Pe=>(Pe==null?void 0:Pe[1])===(a==null?void 0:a[b]))),X}),me}),(!ae||(ae==null?void 0:ae.length)===0)&&(ae=ne,ae=ae==null?void 0:ae.map(me=>{var Ee;return me.compData=(Ee=me==null?void 0:me.compData)==null?void 0:Ee.map(X=>{var te;return(X==null?void 0:X.key)==="tableContents"&&(X.contents=(te=X==null?void 0:X.contents)==null?void 0:te.filter(Pe=>{var he,ve;return(Pe==null?void 0:Pe[1])===(a==null?void 0:a[(ve=(he=R==null?void 0:R.value)==null?void 0:he[0])==null?void 0:ve.prop])})),X}),me})),E=Mo(ae)}const K=await $o(c,{token:k,inputData:E}).catch(w=>(vl.setImportLoading(!1),Promise.reject(w))),x=(H=K==null?void 0:K.data)==null?void 0:H.data,V=s.find(w=>(w==null?void 0:w.prop)==="Output1"),Y=V==null?void 0:V.prop;let J=[],U=[];if(x&&((d=Object.values(x))==null?void 0:d.length)>0){let w=[];const F=new FormData,ie=(j=Ro(x))==null?void 0:j.map(async ae=>{var me,Ee;if(!Array.isArray(ae)&&(ae!=null&&ae.includes("http"))){let X=await N.axios.get(ae,{responseType:"blob"}),te=(Ee=ae==null?void 0:ae.split("/"))==null?void 0:Ee[((me=ae==null?void 0:ae.split("/"))==null?void 0:me.length)-1];F.append("files",X.data,te)}else w.push(ae)});if(await Promise.all(ie),!de.isFormDataEmpty(F)){let ae=await de.uploadAmountApi(F),me=(W=(fe=ae==null?void 0:ae.data)==null?void 0:fe.result)==null?void 0:W.map(Ee=>{var X,te,Pe,he,ve,we;return{name:(we=(ve=(he=(X=Ee==null?void 0:Ee.url)==null?void 0:X.split("/"))==null?void 0:he[((Pe=(te=Ee==null?void 0:Ee.url)==null?void 0:te.split("/"))==null?void 0:Pe.length)-1])==null?void 0:ve.split("."))==null?void 0:we[0],url:Ee==null?void 0:Ee.url}});w=[...w,...me]}let ne={};for(let ae in a)ae!=="id"&&(ne[ae]=a[ae]);ne[Y]=w,U.push({id:a==null?void 0:a.id,value:{tableData:ne}})}(U==null?void 0:U.length)>0&&await N.batchUpdateInsofDataApi({dataList:U}),(J==null?void 0:J.length)>0&&await N.batchAddInsofDataApi({dataList:J}),Na(!0),vl.setImportLoading(!1),rl.setFreshContent(!0)},br=(l,a)=>(l=l==null?void 0:l.map(r=>{var o,i;return r!=null&&r.children&&((o=r.children)!=null&&o.find(u=>u.id===(a==null?void 0:a.id))?r.children=(i=r.children)==null?void 0:i.filter(u=>(u==null?void 0:u.id)!==(a==null?void 0:a.id)):r.children=br(r.children,a)),r}),l),$a=e.ref(!1),Ko=()=>{$a.value=!0},Vo=l=>{if($a.value=!1,l){const a={name:l.name||"capture.jpg",url:URL.createObjectURL(l),raw:l};Il.value.push(a)}},ol=e.reactive({title:"迁移至",show:!1,width:"20%",selectRow:null,from:n==null?void 0:n.index,to:null,contents:[],formRules:{groupName:[{required:!0,message:"输入不能为空",trigger:"blur"},{validator:(l,a,r)=>{a===(n==null?void 0:n.index)?r(new Error("选择源不能和目标源一致")):r()}}]},buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"确认",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]}),zo=()=>{ol.show=!1},qo=l=>{var a,r;if((l==null?void 0:l.buttonName)==="取消")return ol.show=!1;ol.to=l==null?void 0:l.content,!(!(n!=null&&n.index)||!((a=ol.to)!=null&&a.groupName))&&(n==null?void 0:n.index)!==((r=ol.to)==null?void 0:r.groupName)&&(Ae("change",{buttonName:"迁移",value:{from:ol.from,to:ol.to,data:ol.selectRow}}),ol.show=!1)},Wo=l=>{if(l){if(!va.validateFileSize(l.raw)){N.ElMessage.warning(`文件大小不能超过 ${lo.value.maxSize}MB`);return}if(!va.validateFileType(l.raw)){N.ElMessage.warning("请上传图片文件");return}}},Jo=async()=>{var l,a;if(Il.value.length===0){N.ElMessage.warning("请先选择要上传的图片");return}aa.value=!0;try{const r=Il.value.map(async k=>{var M;const T=new FormData;T.append("file",k.raw,k.name);const $=await Bl.uploadFileApi(T);return((M=$==null?void 0:$.data)==null?void 0:M.result)||{name:k.name,url:"",fileName:k.name}}),o=await Promise.all(r),i=va.extractTableHeaders(R.value),u=o.map(k=>({name:(k==null?void 0:k.fileName)||(k==null?void 0:k.name),url:(k==null?void 0:k.url)||""})),c=await va.recognize(u,i),s=Array.isArray(c==null?void 0:c.result)?c.result:[];if(s.length===0){N.ElMessage.warning("OCR识别未返回有效数据"),aa.value=!1;return}const f=new Set,b=[];s.forEach((k,T)=>{const $=k!=null&&k.数据&&typeof(k==null?void 0:k.数据)=="object"?k.数据:{},M={_index:T,_certType:(k==null?void 0:k.证书类型)||"",_certNo:(k==null?void 0:k.证书编号)||""};Object.entries($).forEach(([K,x])=>{Array.isArray(x)&&x.length>=2?(M[K]=x[0]??"",M[`${K}_accuracy`]=x[1]??0,f.add(K)):(M[K]=x??"",M[`${K}_accuracy`]=0,f.add(K))}),b.push(M)});const E=[];f.forEach(k=>{E.push({prop:k,label:k,editable:!0,minWidth:120}),E.push({prop:`${k}_accuracy`,label:`${k}准确率`,editable:!1,minWidth:100,isAccuracy:!0})}),Ga.value=E,ca.value=b,Ha.value=o,Ia.value=c,Ua.value=!1,Il.value=[],aa.value=!1,Ja.value=!0}catch(r){console.error("OCR处理失败:",r),N.ElMessage.error(((a=(l=r==null?void 0:r.response)==null?void 0:l.data)==null?void 0:a.message)||"OCR识别失败,请重试"),aa.value=!1}},Go=()=>{var M,K;const l=Ha.value,a=Ia.value,r=ca.value;if(!r||r.length===0){N.ElMessage.warning("暂无数据可添加");return}const o=(M=de.getAllLeafNodes(R.value)||[])==null?void 0:M.filter(x=>(x==null?void 0:x.type)!=="operate"&&(x==null?void 0:x.label)!=="操作"&&(x==null?void 0:x.prop)!=="operate"),i=new Map,u=new Map,c=(K=o==null?void 0:o.find(x=>(x==null?void 0:x.label)==="OCR图片"))==null?void 0:K.prop;o==null||o.forEach(x=>{x!=null&&x.label&&(x!=null&&x.prop)&&(i.set(x.label,x.prop),u.set(x.prop,x.label))});const s=Date.now(),f=x=>String(s*1e3+x);let b=0,E=0;const k=[],T=[];r.forEach((x,V)=>{const Y={id:f(V),_isOCRRow:!0,_ocrTableId:n==null?void 0:n.index};for(const[J,U]of i.entries())Object.prototype.hasOwnProperty.call(x,J)&&(Y[U]=x[J]);if(c&&l[V]){const J=l[V];Y[c]=[{...J,name:(J==null?void 0:J.fileName)||(J==null?void 0:J.name),url:(J==null?void 0:J.url)||""}]}if(Ql.value&&Ql.value.length>0){const J={};let U=!1;if(Ql.value.forEach(_=>{const t=i.get(_);t&&Y[t]!==void 0&&Y[t]!==null&&Y[t]!==""&&(J[t]=Y[t],U=!0)}),U){const _=Q.value.find(t=>Object.entries(J).every(([y,v])=>{const q=t[y];return String(q)===String(v)||q===v}));if(_){for(const[y,v]of i.entries())Object.prototype.hasOwnProperty.call(Y,v)&&v!=="_isOCRRow"&&v!=="_ocrTableId"&&v!=="id"&&(_[v]=Y[v]);if(c&&l[V]){const y=l[V];_[c]=[{...y,name:(y==null?void 0:y.fileName)||(y==null?void 0:y.name),url:(y==null?void 0:y.url)||""}]}const t=Wl.value.find(y=>y.id===_.id);if(t){for(const[y,v]of i.entries())Object.prototype.hasOwnProperty.call(Y,v)&&v!=="_isOCRRow"&&v!=="_ocrTableId"&&v!=="id"&&(t[v]=Y[v]);if(c&&l[V]){const y=l[V];t[c]=[{...y,name:(y==null?void 0:y.fileName)||(y==null?void 0:y.name),url:(y==null?void 0:y.url)||""}]}}jl.value&&jl.value.set(_.id,_),T.push(JSON.parse(JSON.stringify(_))),b++;return}}}k.push(Y),E++}),T.length>0&&(Q.value=[...Q.value||[]]),k.length>0&&(Q.value=[...Q.value||[],...k],Wl.value=[...Wl.value||[],...k],k.forEach(x=>{var V,Y;return(Y=(V=jl.value)==null?void 0:V.set)==null?void 0:Y.call(V,x.id,x)})),ga.value=Q.value;let $="";b>0&&E>0?$=`成功匹配替换 ${b} 条数据,新增 ${E} 条OCR识别数据`:b>0?$=`成功匹配替换 ${b} 条数据`:$=`成功添加 ${E} 条OCR识别数据`,N.ElMessage.success($),T.length>0&&Ae("change",{buttonName:"编辑",singleContent:T,content:Q.value,index:n==null?void 0:n.index,parentTableId:n==null?void 0:n.parentTableId,column:R.value}),k.length>0&&Ae("change",{buttonName:"OCR批量新增",content:Q.value,index:n==null?void 0:n.index,parentTableId:n==null?void 0:n.parentTableId,column:R.value,ocrRows:k,uploadedFiles:l,ocrResult:a,matchedCount:b,newCount:E}),er()},er=()=>{Ja.value=!1,ca.value=[],Ga.value=[],Ha.value=[],Ia.value=null,Ql.value=[]},Ho=(l,a,r)=>{ca.value[l]&&(ca.value[l][a]=r)},Io=(l,a)=>{if(a)Ql.value.includes(l)||Ql.value.push(l);else{const r=Ql.value.indexOf(l);r>-1&&Ql.value.splice(r,1)}},Xo=l=>l==null||l===0?"-":`${(Number(l)*100).toFixed(1)}%`,Yo=l=>{if(l==null||l===0)return"#909399";const a=Number(l);return a>=.9?"#67c23a":a>=.7?"#e6a23c":"#f56c6c"},mr=()=>{Ua.value=!1,Il.value=[],eo.value=null},Qo=async l=>{tr.value=l==null?void 0:l.name;const a=l.raw;Wa.value=URL.createObjectURL(a),ja.value=[{name:tr.value,blobUrl:Wa.value}],La.value=!0},Zo=async l=>{const a=bn(l);if(!a||a.length===0){N.ElMessage.warning("暂无图片");return}if(a.length===1){await yr(a[0]);return}try{const r=Bl.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),o=await Promise.all(a.map(async i=>{const u=await de.downloadAvatarApi(i),c=URL.createObjectURL(u.data);return{name:Qa(i),blobUrl:c}}));r.close(),ja.value=o,La.value=!0}catch(r){console.error("预览图片失败:",r),N.ElMessage.error("预览图片失败,请重试")}},en=()=>{La.value=!1,ja.value=[],Wa.value=""},ln=l=>{Il.value=Il.value.filter((a,r)=>r!==l)},Ma=async(l,a,r)=>{var o,i,u,c,s,f,b,E,k,T,$,M,K,x,V,Y,J;if(Jl.value="",Oa.value=!0,Ta.value=!0,Ae("onButtonClick",l,a),pe.value=[],l==="删除")Ra.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var U,_;(U=Q.value)!=null&&U.find(t=>(t==null?void 0:t.id)===(a==null?void 0:a.id))?Q.value=(_=N.cloneDeep(Q.value))==null?void 0:_.filter(t=>(t==null?void 0:t.id)!==(a==null?void 0:a.id)):Q.value=br(N.cloneDeep(Q.value),a),Hn(ga.value,ba.value,a==null?void 0:a.id),rl.setTableLoading(n==null?void 0:n.index),Ae("change",{content:Q.value,singleContent:a,index:n==null?void 0:n.index,type:"delete",buttonName:l,column:R.value})});else if(l==="批量删除"){if(((o=Kl.value)==null?void 0:o.length)===0)return N.ElMessage.warning("请先勾选操作的数据");Ra.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var _,t;const U=(_=Kl.value)==null?void 0:_.map(y=>y.id);Q.value=(t=N.cloneDeep(Q.value))==null?void 0:t.filter(y=>!(U!=null&&U.includes(y.id))),rl.setTableLoading(n==null?void 0:n.index),Ae("change",{content:Q.value,singleContent:null,selectItems:Kl.value,index:n==null?void 0:n.index,type:"batchDelete",buttonName:l,column:R.value})})}else if(l==="复制新增"){Ol.value="新增";const U=N.cloneDeep(a),_=(i=R.value)==null?void 0:i.find(v=>v==null?void 0:v.isMainKey),t=_||((u=R.value)==null?void 0:u[0]),y=(c=El.value)==null?void 0:c.find(v=>(v==null?void 0:v.label)==="新建");await Cr(!0,y,{data:U,firstCol:t})}else if(l==="新增")Ol.value="新增",xa(""),Gl.value=!0;else if(l==="编辑")Ol.value="编辑",xa(a),Gl.value=!0;else if(l==="查看")Ol.value="查看",xa(a),Oa.value=!1,Ta.value=!1,Gl.value=!0;else if(l==="查看三维模型"){const U={};for(let t in a)t!=="id"&&(U[t]=a[t]);let _=(s=Object.values(U))==null?void 0:s[1];Qr.setTableShowThree(_)}else if(((f=r==null?void 0:r.extra)==null?void 0:f.type)==="modelExample")Ol.value=l,Ba.value=!0;else if(l==="新建"){let U=ta.value,_=[];for(let D in U)D!=null&&D.includes(`loading${((b=da.value)==null?void 0:b.account)||((E=da.value)==null?void 0:E.账号)}`)&&(_=[..._,...D]);let t=[];for(let D in U)D!=null&&D.includes(`updateLoading${((k=da.value)==null?void 0:k.account)||((T=da.value)==null?void 0:T.账号)}`)&&(t=[...t,...D]);let y=_==null?void 0:_.map(D=>D==null?void 0:D.id);const v=t==null?void 0:t.map(D=>D==null?void 0:D.id);y=[...N.cloneDeep(y),...v],(y==null?void 0:y.length)>0&&(y!=null&&y.every(D=>D!==null&&D))&&await N.batchDeleteInsofDataApi({ids:y});const q=($=El.value)==null?void 0:$.find(D=>(D==null?void 0:D.label)==="新建");await Cr(!1,q)}else if(l==="修改模板"){let U=N.cloneDeep(Fe).value;rl.setRouteToChildPath(U),vl.setActiveMenuPath(U+ce)}else if(l==="执行")Fo(l,a);else if(l!=null&&l.includes("导出")){if(l==="导出选中"&&((M=Kl.value)==null?void 0:M.length)===0)return N.ElMessage.warning(`请先勾选${l}的数据`);if(l==="导出全部"&&((K=Q.value)==null?void 0:K.length)===0)return N.ElMessage.warning("暂无数据导出");const U=(V=(x=R.value)==null?void 0:x.map(t=>t==null?void 0:t.label))==null?void 0:V.filter(t=>t!=="操作"),_=l==="导出全部"?N.cloneDeep(Q.value):N.cloneDeep(Kl.value);_==null||_.forEach(t=>{t==null||delete t.id}),vo(_,n==null?void 0:n.compName,U,n==null?void 0:n.compName)}else if(l==="OCR识别")Ua.value=!0,Il.value=[];else if(l==="迁移")ol.selectRow=a,ol.show=!0;else if(((Y=r==null?void 0:r.extra)==null?void 0:Y.type)==="methodButton"){let U=a;a===""&&(U=N.cloneDeep(Q.value));let _=await ci(U,R==null?void 0:R.value);(_==null?void 0:_.length)>1?Q.value=_:Q.value=(J=Q.value)==null?void 0:J.map((t,y)=>(y===(r==null?void 0:r.index)&&(t=_==null?void 0:_[0]),t))}},an=async l=>{var r,o,i,u,c,s;const a=await N.getInsofDataApi({key:{pageKey:l,type:"structure",systemKey:sessionStorage.getItem("systemKey")}});if(((r=a==null?void 0:a.data)==null?void 0:r.code)===200)return Array.isArray((o=a==null?void 0:a.data)==null?void 0:o.result)&&((u=(i=a==null?void 0:a.data)==null?void 0:i.result)==null?void 0:u.length)>0?(s=(c=a==null?void 0:a.data)==null?void 0:c.result)==null?void 0:s.map(f=>{var b;return{id:f==null?void 0:f.id,...(b=f==null?void 0:f.value)==null?void 0:b.pageData}}):[]},rn=async(l,a)=>{var r,o,i,u,c,s,f,b,E,k,T,$,M,K,x,V,Y,J,U,_;try{let t,y;const v=(r=ta.value[Fe.value+ce])==null?void 0:r.filter(w=>{var F;return((F=w==null?void 0:w.key)==null?void 0:F.type)==="structureMethod"}),q=(o=ta.value[Fe.value+ce])==null?void 0:o.filter(w=>{var F;return((F=w==null?void 0:w.key)==null?void 0:F.type)==="structure"}),D=v==null?void 0:v.find(w=>{var F,ie;return((ie=(F=w==null?void 0:w.value)==null?void 0:F.pageData)==null?void 0:ie.method)==="保存"});if(!D)return;const H=(s=(c=ta.value[(u=(i=D==null?void 0:D.value)==null?void 0:i.pageData)==null?void 0:u.path])==null?void 0:c.filter(w=>{var F;return((F=w==null?void 0:w.key)==null?void 0:F.type)==="data"}))==null?void 0:s.find(w=>{var F,ie,ne,ae;return((ie=(F=w==null?void 0:w.value)==null?void 0:F.tableData)==null?void 0:ie.算法名称)===((ae=(ne=D==null?void 0:D.value)==null?void 0:ne.pageData)==null?void 0:ae.method)});if(!H)return;const d={buttonName:(b=(f=D==null?void 0:D.value)==null?void 0:f.pageData)==null?void 0:b.method,api:(k=(E=H==null?void 0:H.value)==null?void 0:E.tableData)==null?void 0:k.算法体,content:q==null?void 0:q.map(w=>{var F;return(F=w==null?void 0:w.value)==null?void 0:F.pageData}),extraContent:[],extraValues:($=(T=D==null?void 0:D.value)==null?void 0:T.pageData)==null?void 0:$.data,methodName:(K=(M=D==null?void 0:D.value)==null?void 0:M.pageData)==null?void 0:K.path};if(!l)return;const j={...l,compData:(x=l==null?void 0:l.compData)==null?void 0:x.map(w=>{var F;return(w==null?void 0:w.key)==="formContent"?{...w,contents:(F=w==null?void 0:w.contents)==null?void 0:F.map(ie=>(ie==null?void 0:ie.prop)===a?{...ie,value:""}:ie)}:w})},fe={key:{pageKey:Fe.value+ce,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),type:"structure"},value:{pageData:j}},W=await N.axios.post(d.api,fe,{headers:{"Content-Type":"application/json"}});return((V=W==null?void 0:W.data)==null?void 0:V.code)===200&&(t=(J=(Y=W==null?void 0:W.data)==null?void 0:Y.result)==null?void 0:J.latestReportCode,y=(_=(U=W==null?void 0:W.data)==null?void 0:U.result)==null?void 0:_.status),{newMainKeyValue:t,newStatus:y}}catch(t){throw N.ElMessage.error(t),new Error(t)}},kr=(l,a,r,o)=>{var i;Ae("contentChange",{contents:(i=l==null?void 0:l.compData)==null?void 0:i.map(u=>{var c;return(u==null?void 0:u.key)==="formContent"?{...u,contents:(c=u==null?void 0:u.contents)==null?void 0:c.map(s=>(s==null?void 0:s.key)===a?{...s,value:r}:Sa.value&&(s==null?void 0:s.prop)===Sa.prop?{...s,value:Sa.value}:s)}:u}),index:l==null?void 0:l.id},o)},Sa=e.reactive({prop:"状态",value:""}),on=e.ref(["系统自动生成信息","审批意见"]),nn=async(l,a,r)=>{var f,b;let o=l==null?void 0:l[a==null?void 0:a.prop],i=1,u,c;const s=N.cloneDeep(Fe).value+ce+o;if(s){Sa.value="",u=(f=ta.value[s])==null?void 0:f.filter(T=>{var $;return(($=T==null?void 0:T.key)==null?void 0:$.type)==="structure"});const E=u==null?void 0:u.find(T=>{var $,M,K;return((K=(M=($=T==null?void 0:T.value)==null?void 0:$.pageData)==null?void 0:M.comp)==null?void 0:K.toUpperCase())==="FORM"});c={...(b=E==null?void 0:E.value)==null?void 0:b.pageData,id:E==null?void 0:E.id};const k=await rn(c,a==null?void 0:a.prop);if(Sa.value=k==null?void 0:k.newStatus,k!=null&&k.newMainKeyValue)return k==null?void 0:k.newMainKeyValue}if(Q.value.some(E=>(E==null?void 0:E[a==null?void 0:a.prop])===o)){const E=o;for(;Q.value.some(k=>(k==null?void 0:k[a==null?void 0:a.prop])===`${E}(${i})`);)i++;o=`${E}(${i})`}return o},Cr=async(l,a,r)=>{var c,s,f,b,E,k,T,$;let o,i;const u=await nn(r==null?void 0:r.data,r==null?void 0:r.firstCol);if(l?(o=N.cloneDeep(Fe).value+ce+((b=r==null?void 0:r.data)==null?void 0:b[(f=r==null?void 0:r.firstCol)==null?void 0:f.prop]),i=N.cloneDeep(Fe).value+ce+u):(o=N.cloneDeep(Fe).value+ce,i=N.cloneDeep(o)+`loading${((c=da.value)==null?void 0:c.account)||((s=da.value)==null?void 0:s.账号)}`),a){const M=(k=(E=ta.value[i])==null?void 0:E.filter(K=>{var x;return((x=K==null?void 0:K.key)==null?void 0:x.parentTable)===""}))==null?void 0:k.map(K=>{var x;return{id:K==null?void 0:K.id,...(x=K==null?void 0:K.value)==null?void 0:x.pageData}});if((M==null?void 0:M.length)>0)if(l){const K=M==null?void 0:M.find(x=>{var V;return((V=x==null?void 0:x.comp)==null?void 0:V.toUpperCase())==="FORM"});K&&kr(K,(T=r==null?void 0:r.firstCol)==null?void 0:T.label,u,Fe.value)}else rl.setRouteToChildPath(N.cloneDeep(Fe).value),vl.setActiveMenuPath(i);else if(await de.loadingConstruct(o,i,null,null,l?on.value:null),l){const K=await an(i);if((K==null?void 0:K.length)>0){const x=K==null?void 0:K.find(V=>{var Y;return((Y=V==null?void 0:V.comp)==null?void 0:Y.toUpperCase())==="FORM"});x&&kr(x,($=r==null?void 0:r.firstCol)==null?void 0:$.label,u,Fe.value)}}else rl.setRouteToChildPath(N.cloneDeep(Fe).value),vl.setActiveMenuPath(i)}else l?(Jl.value="",_l.value=r==null?void 0:r.data,Na(!0,r==null?void 0:r.firstCol,u)):(rl.setRouteToChildPath(N.cloneDeep(Fe).value),vl.setActiveMenuPath(i))},sn=()=>{He.value=!1,ya.value=[],le.value=!1},xa=l=>{var c,s,f,b,E,k,T,$,M,K,x,V,Y,J,U,_,t,y,v,q,D,H;const a=[];let r=[];for(let d in l)Array.isArray(l==null?void 0:l[d])&&r.push(d);L.value=N.cloneDeep(R.value),(s=de.getColumnChild((c=N.cloneDeep(R.value))==null?void 0:c.filter(d=>(d==null?void 0:d.label)!=="操作")))==null||s.forEach((d,j)=>{var fe,W,w;r.find(F=>F===(d==null?void 0:d.prop))||(d!=null&&d.formType&&((fe=d==null?void 0:d.formType)==null?void 0:fe.toUpperCase())==="SELECT"||d!=null&&d.menuId?a.push({label:(W=d==null?void 0:d.prop)!=null&&W.includes(".")?d==null?void 0:d.prop:(d==null?void 0:d.label)??(d==null?void 0:d.prop)??"",name:(d==null?void 0:d.prop)??"t"+j,prop:d==null?void 0:d.prop,type:"Select",value:(l==null?void 0:l[d==null?void 0:d.prop])??(d==null?void 0:d.value)??"",id:(d==null?void 0:d.id)??j,contents:(d==null?void 0:d.options)??[],width:1,isFormColHidden:d==null?void 0:d.isFormColHidden,relatedValueId:d==null?void 0:d.relatedValueId,disabled:d==null?void 0:d.disabled,optionUrl:{groupSelect:d==null?void 0:d.groupSelect,menuSelect:d==null?void 0:d.formMenuSelect,type:"Select",selectRelateType:d==null?void 0:d.selectRelateType,allSelectionContents:(d==null?void 0:d.allSelectionContents)??[],selectFilter:d==null?void 0:d.selectFilter,menuId:d==null?void 0:d.menuId,filterContent:d==null?void 0:d.filterContent}}):a.push({label:(w=d==null?void 0:d.prop)!=null&&w.includes(".")?d==null?void 0:d.prop:(d==null?void 0:d.label)??(d==null?void 0:d.prop)??"",prop:d==null?void 0:d.prop,name:(d==null?void 0:d.prop)??"t"+j,type:!(d!=null&&d.formType)||(d==null?void 0:d.formType)===""?"Input":d==null?void 0:d.formType,value:(l==null?void 0:l[d==null?void 0:d.prop])??(d==null?void 0:d.value)??"",id:(d==null?void 0:d.id)??j,contents:(d==null?void 0:d.options)??[],width:1,isFormColHidden:d==null?void 0:d.isFormColHidden,disabled:d==null?void 0:d.disabled,relatedValueId:d==null?void 0:d.relatedValueId}))}),l===""||!l||(Jl.value=(l==null?void 0:l.id)??"");let o=de.getColumnChild((f=N.cloneDeep(R.value))==null?void 0:f.filter(d=>(d==null?void 0:d.label)!=="操作"));$l.value&&((b=$l.value)==null?void 0:b.length)>0&&($l.value=(E=N.cloneDeep($l).value)==null?void 0:E.map(d=>{var fe;let j=(d==null?void 0:d.prop)||((fe=o==null?void 0:o.find(W=>(W==null?void 0:W.label)===(d==null?void 0:d.label)))==null?void 0:fe.prop);return j&&(d.value=l[j]),d})),xe.value=$l.value&&((k=$l.value)==null?void 0:k.length)>0?de.getTableFormToForm($l.value):a;let i=[],u=(T=n.itemData)==null?void 0:T.filter(d=>(d==null?void 0:d.key)==="filterAllType");if((u==null?void 0:u.length)>0&&(i=(u==null?void 0:u.map(j=>j==null?void 0:j.value)).flat()),(i==null?void 0:i.length)>0){let d=(M=i==null?void 0:i.filter(W=>{var w;return(w=W==null?void 0:W.content)==null?void 0:w.includes("@Type")}))==null?void 0:M[(($=i==null?void 0:i.filter(W=>{var w;return(w=W==null?void 0:W.content)==null?void 0:w.includes("@Type")}))==null?void 0:$.length)-1];if(d!=null&&d.content){let W=(V=(x=(K=d==null?void 0:d.content)==null?void 0:K.replace(":",kl))==null?void 0:x.split(kl))==null?void 0:V[1];if(((Y=W==null?void 0:W.trim())==null?void 0:Y.toUpperCase())==="MANUAL"){let w=(y=(t=(J=n.itemData)==null?void 0:J.filter(F=>(F==null?void 0:F.key)==="contentTableId"))==null?void 0:t[((_=(U=n.itemData)==null?void 0:U.filter(F=>(F==null?void 0:F.key)==="contentTableId"))==null?void 0:_.length)-1])==null?void 0:y.contents;xe.value=(v=xe.value)==null?void 0:v.map((F,ie)=>{var ne,ae;return(ne=F==null?void 0:F.optionUrl)!=null&&ne.menuId&&(F.type="Select",(ae=F==null?void 0:F.optionUrl)!=null&&ae.menuId&&(F.optionUrl.menuId=F.optionUrl.menuId??w,F.optionUrl.menuFilter=i,Ol.value==="新增"&&(F.optionUrl.multiple=!0,F.optionUrl.multipleLimit=5))),F})}}let j=(q=xe.value)==null?void 0:q.filter(W=>{var w,F;return((w=W==null?void 0:W.optionUrl)==null?void 0:w.menuId)&&((F=W==null?void 0:W.optionUrl)==null?void 0:F.menuId)!==""}),fe;if(j==null||j.forEach(W=>{var F,ie;if(fe!==void 0)return;let w=(F=W==null?void 0:W.optionUrl)==null?void 0:F.menuId;((ie=j==null?void 0:j.filter(ne=>{var ae;return((ae=ne==null?void 0:ne.optionUrl)==null?void 0:ae.menuId)===w}))==null?void 0:ie.length)>1&&(fe=w)}),j=j==null?void 0:j.filter(W=>{var w;return((w=W==null?void 0:W.optionUrl)==null?void 0:w.menuId)===fe}),(j==null?void 0:j.length)>1){let W=j==null?void 0:j.map(ne=>ne==null?void 0:ne.prop),w=j==null?void 0:j.map(ne=>ne==null?void 0:ne.label),F=j==null?void 0:j.map(ne=>ne==null?void 0:ne.value),ie=(D=N.cloneDeep(j))==null?void 0:D[0];ie.label=w==null?void 0:w.join("·"),ie.value=F==null?void 0:F.join(" "),ie.value.trim()===""&&(ie.value=""),ie.prop=W==null?void 0:W.join("·"),ie.usingType="parent",xe.value.unshift(ie),xe.value=(H=xe.value)==null?void 0:H.map(ne=>(W!=null&&W.find(ae=>ae===(ne==null?void 0:ne.prop))&&(ne.isFormColHidden=!0),ne))}}},tn=()=>{var a;const l=(a=C.value)==null?void 0:a.$el;l&&de.Sortable.create(l,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:r=>{var c;const{oldIndex:o,newIndex:i}=r;if(o===i)return;const u=ka.value.splice(o,1)[0];ka.value.splice(i,0,u),R.value=(c=R.value)==null?void 0:c.slice().sort((s,f)=>{if(s.label==="操作")return 1;if(f.label==="操作")return-1;const b=ka.value.findIndex(k=>k.label===s.label),E=ka.value.findIndex(k=>k.label===f.label);return b-E})}})};e.onMounted(()=>{qa.value=window.innerWidth-240*2});const un=()=>{e.nextTick(()=>{tn()})},lr=(l,a)=>{var o;if(!l&&!(l!=null&&l.children))return{contents:l,currentSelectContents:void 0};let r;return l.children=(o=l.children)==null?void 0:o.map(i=>{var u,c;if((i==null?void 0:i.id)===Jl.value){let s={};for(let f in i){let b=(u=a==null?void 0:a.find(E=>(E==null?void 0:E.prop)===f))==null?void 0:u.label;b?s[f]=(c=_l.value)==null?void 0:c[b]:s[f]=i[f]}i=Object.assign(s,_l.value),r=i}else{let s=lr(i,a);i=s==null?void 0:s.contents,r=s==null?void 0:s.currentSelectContents}return i}),{contents:l,currentSelectContents:r}},Sr=(l,a)=>{let r,o;return l!=null&&l.find(i=>(i==null?void 0:i.id)===Jl.value)?r=l==null?void 0:l.map(i=>{var u,c;if((i==null?void 0:i.id)===Jl.value){let s={};for(let f in i){let b=(u=a==null?void 0:a.find(E=>(E==null?void 0:E.prop)===f))==null?void 0:u.label;b?s[f]=(c=_l.value)==null?void 0:c[b]:s[f]=i[f]}i=Object.assign(s,_l.value),o=i}return i}):r=l==null?void 0:l.map(i=>{var u,c,s,f;if((i==null?void 0:i.id)===Jl.value){let b={};for(let E in i){let k=(u=a==null?void 0:a.find(T=>(T==null?void 0:T.prop)===E))==null?void 0:u.label;k?b[E]=(c=_l.value)==null?void 0:c[k]:b[E]=i[E]}i=Object.assign(b,_l.value),o=i}else i=(s=lr(i,a))==null?void 0:s.contents,o=(f=lr(i,a))==null?void 0:f.currentSelectContents;return i}),{newContents:r,currentSelectContents:o}},xr=(l,a,r)=>{var o,i;return l[a==null?void 0:a.prop]=r,typeof l.id=="number"&&(l.id=(o=l.id)==null?void 0:o.toString()),l.children&&((i=l.children)==null?void 0:i.length)>0&&(l.children=l.children.map(xr)),l},ar=l=>{var r;const a=[];return a.push({...l}),l!=null&&l.children&&Array.isArray(l.children)&&((r=l.children)==null||r.forEach(o=>{a.push(...ar(o))})),(a==null?void 0:a.length)>0?a==null?void 0:a.map(o=>{const i={...o};return delete i.children,i}):[]},Na=(l=!0,a,r)=>{var b,E,k,T,$,M,K,x,V,Y,J,U,_,t,y,v,q,D,H,d,j,fe,W,w,F,ie,ne,ae,me,Ee;let o=de.getColumnChild((b=N.cloneDeep(R.value))==null?void 0:b.filter(X=>(X==null?void 0:X.label)!=="操作")),i,u=N.cloneDeep(Q.value);if(!_l.value){Gl.value=!1;return}if(Jl.value===""){ua.value++;let X;a&&r?X={id:ua.value.toString(),[a==null?void 0:a.prop]:r,children:_l.value.children}:X={id:ua.value.toString()},X!=null&&X.children&&(X={...X,children:(E=X.children)==null?void 0:E.map(te=>xr(te,a,r))}),u.push(Object.assign(_l.value,X)),i=Object.assign(_l.value,X)}else u=(k=Sr(u,o))==null?void 0:k.newContents,i=(T=Sr(u,o))==null?void 0:T.currentSelectContents;const c=($=n.itemData)==null?void 0:$.filter(X=>(X==null?void 0:X.key)==="childTree")[0];if(((M=c==null?void 0:c.contents)==null?void 0:M.length)>0){Ol.value="编辑";const X=[];u==null||u.forEach((te,Pe)=>{var ve;let he={};if(Array.isArray(te)){let we=[];te==null||te.filter(We=>!(We!=null&&We.id)).forEach((We,O)=>{var Z,Ke,Re,Ze,h,se,Oe;if((Ke=(Z=Rl.value)==null?void 0:Z[O])!=null&&Ke.prop&&!Array.isArray(We)){let m={};m[Rl.value[O].column]=We,qe!=null&&qe.value&&((Re=qe==null?void 0:qe.value)==null?void 0:Re.length)>0&&((Ze=qe==null?void 0:qe.value)!=null&&Ze.find(ke=>JSON.stringify(ke==null?void 0:ke[0])===JSON.stringify(m)))&&(we=(h=qe==null?void 0:qe.value)==null?void 0:h.find(ke=>JSON.stringify(ke==null?void 0:ke[0])===JSON.stringify(m))),we&&we.length>0?he[Rl.value[O].prop]=we!=null&&we.find(ke=>{var Ue;return((Ue=Object.keys(ke))==null?void 0:Ue[0])===Rl.value[O].column})?(se=we==null?void 0:we.find(ke=>{var Ue;return((Ue=Object.keys(ke))==null?void 0:Ue[0])===Rl.value[O].column}))==null?void 0:se[Rl.value[O].column]:We:he[Rl.value[O].prop]=We}else Array.isArray(We)&&((Oe=Rl.value[O])!=null&&Oe.prop?he[Rl.value[O].prop]=We:he.children=or(We,Rl.value))})}else he=te;if(Array.isArray(te)&&te.some(we=>we==null?void 0:we.id)){const we=(ve=te==null?void 0:te.find(We=>We.id))==null?void 0:ve.id;X.push(Object.assign(he,{id:hr(we)}))}else he.id?X.push(he):X.push(Object.assign(he,{id:Pe.toString()}))}),Q.value=Dr(X,c,R.value)}else Q.value=u;Ar(Q.value),ga.value=Q.value;const s=Xn(ga.value,ba.value,u);let f=[];if(fa.value?(f=(K=N.cloneDeep(fa).value.singleContent)==null?void 0:K.filter(X=>(X==null?void 0:X.id)!==(i==null?void 0:i.id)),f.push(i)):f=[i],Fl.value){const X={content:s,singleContent:((x=c==null?void 0:c.contents)==null?void 0:x.length)>0?f==null?void 0:f.flatMap(ar):f,index:n==null?void 0:n.index,buttonName:"编辑",column:R.value,parentTableId:n==null?void 0:n.parentTableId};rl.setCacheUpdatingData(X)}if(l){let X=(U=(J=(Y=(V=n.itemData)==null?void 0:V.find(he=>(he==null?void 0:he.key)==="filterAllType"))==null?void 0:Y.value)==null?void 0:J.find(he=>(he==null?void 0:he.value)==="onConditionContents"))==null?void 0:U.content,te=(_=n.itemData)==null?void 0:_.filter(he=>(he==null?void 0:he.key)==="filterAllType");te=Array.from(new Map(te.filter(Boolean).map((he,ve)=>[he.value,{...he,_idx:ve}])).values()).sort((he,ve)=>he._idx-ve._idx).map(({_idx:he,...ve})=>ve),te=(t=te==null?void 0:te[(te==null?void 0:te.length)-1])==null?void 0:t.value;const Pe={content:s,singleContent:((y=c==null?void 0:c.contents)==null?void 0:y.length)>0?ar(i):i,index:n==null?void 0:n.index,buttonName:Ol.value,column:R.value,parentTableId:n==null?void 0:n.parentTableId,filter:X,allFilter:te,pathIndex:(q=(v=n.itemData)==null?void 0:v.find(he=>(he==null?void 0:he.key)==="relatedFilter"))==null?void 0:q.index,rowContents:xe.value,addArrayValues:pe.value};rl.setTableLoading(n==null?void 0:n.index),Gl.value=!1,_l.value=void 0,Ae("change",Pe)}if((d=(H=(D=xe.value)==null?void 0:D[0])==null?void 0:H.optionUrl)!=null&&d.menuId){Gl.value=!1;let X=(j=n.itemData)==null?void 0:j.filter(te=>(te==null?void 0:te.key)==="filterAllType");if((X==null?void 0:X.length)>0){let te=X==null?void 0:X.map(ve=>ve==null?void 0:ve.value),Pe=(w=(W=(fe=te.flat().find(ve=>{var we;return(we=ve==null?void 0:ve.content)==null?void 0:we.includes("@Num")}))==null?void 0:fe.content)==null?void 0:W.split(":"))==null?void 0:w[1];((ne=(ie=(F=te.flat().find(ve=>{var we;return(we=ve==null?void 0:ve.content)==null?void 0:we.includes("@Type:")}))==null?void 0:F.content)==null?void 0:ie.split(":"))==null?void 0:ne[1])!=="Manual"&&(Pe=parseInt(Pe),Q.value=(Ee=Q.value)==null?void 0:Ee.slice(((ae=Q.value)==null?void 0:ae.length)-Pe,(me=Q.value)==null?void 0:me.length))}}};e.onUnmounted(()=>{R.value=[],Q.value=[],L.value=[],za.value=[],$l.value=[],Hl.value=[],ya.value=[],Dl.value=[],xe.value=[],Kl.value=[],C.value=null});const Nr=async(l,a,r)=>{var b,E,k,T,$,M,K,x,V,Y,J;Vl.value=r==null?void 0:r.prop;const o=N.cloneDeep(n.itemData),i=o==null?void 0:o.map(U=>{var _;return(U==null?void 0:U.key)==="header"&&((_=U.contents)==null||_.map((t,y)=>{var v,q,D,H,d,j,fe,W,w,F,ie,ne,ae,me,Ee,X,te,Pe,he;return t.type=t!=null&&t.type?t.type:(H=(D=(q=(v=t==null?void 0:t.key)==null?void 0:v.split("$"))==null?void 0:q[1])==null?void 0:D.split("("))!=null&&H[0]?(j=(d=de.FormType)==null?void 0:d.find(ve=>{var we,We,O,Z;return(ve==null?void 0:ve.key)===((Z=(O=(We=(we=t==null?void 0:t.key)==null?void 0:we.split("$"))==null?void 0:We[1])==null?void 0:O.split("("))==null?void 0:Z[0])}))==null?void 0:j.value:"Input",t.options=t!=null&&t.options?t.options:((w=(W=(fe=t==null?void 0:t.key)==null?void 0:fe.split("$"))==null?void 0:W[1])==null?void 0:w.length)>0?(ae=(ne=Fa((ie=(F=t==null?void 0:t.key)==null?void 0:F.split("$"))==null?void 0:ie[1]))==null?void 0:ne.split(","))==null?void 0:ae.map(ve=>({label:ve,value:ve})):[],(me=t==null?void 0:t.key)!=null&&me.includes("$")&&(t.key=(X=(Ee=t==null?void 0:t.key)==null?void 0:Ee.split("$"))==null?void 0:X[0]),t.value=(te=Object.values(a))==null?void 0:te[y],t.optionUrl=t!=null&&t.formMenuSelect&&((Pe=t==null?void 0:t.formMenuSelect)==null?void 0:Pe.length)>0?{groupSelect:(he=t==null?void 0:t.groupSelect)==null?void 0:he.split(/[::]/).map(ve=>ve.trim()),menuSelect:t==null?void 0:t.formMenuSelect,selectRelateType:"",type:(t==null?void 0:t.formType)??(t!=null&&t.groupSelect?"Select":"")}:null,t})),U});let u=N.cloneDeep(xe.value),c=(E=(b=N.cloneDeep(i))==null?void 0:b.find(U=>(U==null?void 0:U.key)==="header"))==null?void 0:E.contents;u=u==null?void 0:u.map(U=>{var _;return U.value=(_=c==null?void 0:c.find((t,y)=>y===(U==null?void 0:U.id)))==null?void 0:_.value,U});let s="",f=($=(T=(k=N.cloneDeep(i))==null?void 0:k.find(U=>(U==null?void 0:U.key)==="header"))==null?void 0:T.contents)==null?void 0:$.find((U,_)=>{var t,y,v;return(U==null?void 0:U.label)===Vl.value||(_==null?void 0:_.toString())===((v=(y=(t=Vl.value)==null?void 0:t.split("a"))==null?void 0:y[1])==null?void 0:v.toString())});if((x=(K=(M=N.cloneDeep(i))==null?void 0:M.find(U=>(U==null?void 0:U.key)==="header"))==null?void 0:K.contents)==null||x.forEach(U=>{var _,t,y,v,q;s===""&&((y=(t=(_=U==null?void 0:U.optionUrl)==null?void 0:_.groupSelect)==null?void 0:t[1])!=null&&y.includes("["))&&(s=(q=(v=U==null?void 0:U.optionUrl)==null?void 0:v.groupSelect)==null?void 0:q[1])}),(V=f==null?void 0:f.optionUrl)!=null&&V.menuSelect){let U=await Ka(f),_;if(U==null||U.forEach(t=>{var y,v,q,D,H,d,j,fe,W,w;s===((v=(y=f==null?void 0:f.optionUrl)==null?void 0:y.groupSelect)==null?void 0:v[1])&&((H=(D=(q=f==null?void 0:f.optionUrl)==null?void 0:q.groupSelect)==null?void 0:D[1])!=null&&H.includes("["))&&((w=N.cloneDeep(t))==null?void 0:w[(W=(fe=(j=(d=f==null?void 0:f.optionUrl)==null?void 0:d.groupSelect)==null?void 0:j[1])==null?void 0:fe.replaceAll("[",""))==null?void 0:W.replaceAll("]","")])===(f==null?void 0:f.value)&&(_=t)}),_){let t=N.cloneDeep(u);t=t==null?void 0:t.map(v=>{var q,D,H,d,j,fe,W,w,F,ie,ne;return(_!=null&&_[v==null?void 0:v.label]||_!=null&&_[(d=(H=(D=(q=v==null?void 0:v.optionUrl)==null?void 0:q.groupSelect)==null?void 0:D[1])==null?void 0:H.replaceAll("[",""))==null?void 0:d.replaceAll("]","")])&&((W=(fe=(j=v==null?void 0:v.optionUrl)==null?void 0:j.groupSelect)==null?void 0:fe[1])!=null&&W.includes("["))&&(v.value=(_==null?void 0:_[v==null?void 0:v.label])||(_==null?void 0:_[(ne=(ie=(F=(w=v==null?void 0:v.optionUrl)==null?void 0:w.groupSelect)==null?void 0:F[1])==null?void 0:ie.replaceAll("[",""))==null?void 0:ne.replaceAll("]","")])),v}),Q.value=(Y=N.cloneDeep(Q.value))==null?void 0:Y.map(v=>{if((v==null?void 0:v.id)===(a==null?void 0:a.id)){const q={};return t==null||t.forEach(D=>{q[D.name]=D.value}),q.id=v==null?void 0:v.id,q}return v});let y=N.cloneDeep(t);y=y==null?void 0:y.map(v=>{var q,D,H,d;return(D=(q=v==null?void 0:v.optionUrl)==null?void 0:q.menuSelect)!=null&&D.some(j=>j==null?void 0:j.includes)&&(v.optionUrl.menuSelect=(d=(H=v==null?void 0:v.optionUrl)==null?void 0:H.menuSelect)==null?void 0:d.map(j=>{var fe,W,w,F;if(j!=null&&j.includes("[")){let ie=(W=(fe=j==null?void 0:j.replaceAll("[","").replaceAll("]",""))==null?void 0:fe.split(":"))==null?void 0:W[1];j=(F=(w=N.cloneDeep(t))==null?void 0:w.find(ne=>(ne==null?void 0:ne.label)===ie))==null?void 0:F.value}return j})),v}),Q.value=(J=N.cloneDeep(Q.value))==null?void 0:J.map(v=>{if((v==null?void 0:v.id)===(a==null?void 0:a.id)){const q={};return y==null||y.forEach(D=>{q[D.name]=D.value}),q.id=v==null?void 0:v.id,q}return v})}}},cn=async l=>{var $,M,K,x,V,Y,J,U,_,t,y,v,q,D,H,d,j,fe,W,w,F,ie,ne,ae,me,Ee,X,te,Pe,he,ve,we,We;if(!l)return;_l.value=l;const a=N.cloneDeep(n.itemData);let r=a==null?void 0:a.map(O=>{var Z,Ke,Re,Ze;return(O==null?void 0:O.key)==="header"&&(Array.isArray((Z=O.contents)==null?void 0:Z[0])?O.contents=(Re=de.getColumnChild((Ke=O.contents)==null?void 0:Ke[0]))==null?void 0:Re.map((h,se)=>{var Oe,m,ke,Ue,ul,cl,dl,pl,fl,hl,sl,_e,Te,gl,Sl,xl,wl,g,G,Ie,Qe,Xe,bl,Pl;return h.type=h!=null&&h.type?h.type:(Ue=(ke=(m=(Oe=h==null?void 0:h.key)==null?void 0:Oe.split("$"))==null?void 0:m[1])==null?void 0:ke.split("("))!=null&&Ue[0]?(cl=(ul=de.FormType)==null?void 0:ul.find(Ce=>{var Ul,be,tl,z;return(Ce==null?void 0:Ce.key)===((z=(tl=(be=(Ul=h==null?void 0:h.key)==null?void 0:Ul.split("$"))==null?void 0:be[1])==null?void 0:tl.split("("))==null?void 0:z[0])}))==null?void 0:cl.value:"Input",h.options=h!=null&&h.options?h.options:((fl=(pl=(dl=h==null?void 0:h.key)==null?void 0:dl.split("$"))==null?void 0:pl[1])==null?void 0:fl.length)>0?(Te=(_e=Fa((sl=(hl=h==null?void 0:h.key)==null?void 0:hl.split("$"))==null?void 0:sl[1]))==null?void 0:_e.split(","))==null?void 0:Te.map(Ce=>({label:Ce,value:Ce})):[],(gl=h==null?void 0:h.key)!=null&&gl.includes("$")&&(h.key=(xl=(Sl=h==null?void 0:h.key)==null?void 0:Sl.split("$"))==null?void 0:xl[0]),((G=(g=(wl=xe.value)==null?void 0:wl.find(Ce=>(Ce==null?void 0:Ce.prop)===(h==null?void 0:h.prop)))==null?void 0:g.optionUrl)==null?void 0:G.multiple)===!0&&!Array.isArray((Ie=Object.values(l))==null?void 0:Ie[se])?h.value=[(Qe=Object.values(l))==null?void 0:Qe[se]]:h.value=(Xe=Object.values(l))==null?void 0:Xe[se],h.optionUrl=h!=null&&h.formMenuSelect&&((bl=h==null?void 0:h.formMenuSelect)==null?void 0:bl.length)>0?{groupSelect:(Pl=h==null?void 0:h.groupSelect)==null?void 0:Pl.split(/[::]/).map(Ce=>Ce.trim()),menuSelect:h==null?void 0:h.formMenuSelect,selectRelateType:"",type:(h==null?void 0:h.formType)??(h!=null&&h.groupSelect?"Select":"")}:null,h}):O.contents=(Ze=O.contents)==null?void 0:Ze.map((h,se)=>{var Oe,m,ke,Ue,ul,cl,dl,pl,fl,hl,sl,_e,Te,gl,Sl,xl,wl,g,G,Ie,Qe,Xe,bl,Pl;return h.type=h!=null&&h.type?h.type:(Ue=(ke=(m=(Oe=h==null?void 0:h.key)==null?void 0:Oe.split("$"))==null?void 0:m[1])==null?void 0:ke.split("("))!=null&&Ue[0]?(cl=(ul=de.FormType)==null?void 0:ul.find(Ce=>{var Ul,be,tl,z;return(Ce==null?void 0:Ce.key)===((z=(tl=(be=(Ul=h==null?void 0:h.key)==null?void 0:Ul.split("$"))==null?void 0:be[1])==null?void 0:tl.split("("))==null?void 0:z[0])}))==null?void 0:cl.value:"Input",h.options=h!=null&&h.options?h.options:((fl=(pl=(dl=h==null?void 0:h.key)==null?void 0:dl.split("$"))==null?void 0:pl[1])==null?void 0:fl.length)>0?(Te=(_e=Fa((sl=(hl=h==null?void 0:h.key)==null?void 0:hl.split("$"))==null?void 0:sl[1]))==null?void 0:_e.split(","))==null?void 0:Te.map(Ce=>({label:Ce,value:Ce})):[],(gl=h==null?void 0:h.key)!=null&&gl.includes("$")&&(h.key=(xl=(Sl=h==null?void 0:h.key)==null?void 0:Sl.split("$"))==null?void 0:xl[0]),((G=(g=(wl=xe.value)==null?void 0:wl.find(Ce=>(Ce==null?void 0:Ce.prop)===(h==null?void 0:h.prop)))==null?void 0:g.optionUrl)==null?void 0:G.multiple)===!0&&!Array.isArray((Ie=Object.values(l))==null?void 0:Ie[se])?h.value=[(Qe=Object.values(l))==null?void 0:Qe[se]]:h.value=(Xe=Object.values(l))==null?void 0:Xe[se],h.optionUrl=h!=null&&h.formMenuSelect&&((bl=h==null?void 0:h.formMenuSelect)==null?void 0:bl.length)>0?{groupSelect:(Pl=h==null?void 0:h.groupSelect)==null?void 0:Pl.split(/[::]/).map(Ce=>Ce.trim()),menuSelect:h==null?void 0:h.formMenuSelect,selectRelateType:"",type:(h==null?void 0:h.formType)??(h!=null&&h.groupSelect?"Select":"")}:null,h})),O}),o=xe.value,i=(M=($=N.cloneDeep(r))==null?void 0:$.find(O=>(O==null?void 0:O.key)==="header"))==null?void 0:M.contents;if(i=i==null?void 0:i.filter(O=>(O==null?void 0:O.label)!=="操作"),i.push({label:"操作",type:"operate"}),o=o==null?void 0:o.map(O=>{var Z;return O.value=O.value??((Z=i==null?void 0:i.find((Ke,Re)=>(Ke==null?void 0:Ke.prop)===(O==null?void 0:O.name)))==null?void 0:Z.value),O}),!ma.value)return;let u="",c=N.cloneDeep(Vl.value);(K=Vl.value)!=null&&K.includes("·")&&(Vl.value=(V=(x=Vl.value)==null?void 0:x.split("·"))==null?void 0:V[0]);let s=(U=(J=(Y=N.cloneDeep(r))==null?void 0:Y.find(O=>(O==null?void 0:O.key)==="header"))==null?void 0:J.contents)==null?void 0:U.find((O,Z)=>{var Ke,Re,Ze;return(O==null?void 0:O.prop)===Vl.value||(Z==null?void 0:Z.toString())===((Ze=(Re=(Ke=Vl.value)==null?void 0:Ke.split("a"))==null?void 0:Re[1])==null?void 0:Ze.toString())}),f=(_=s==null?void 0:s.optionUrl)==null?void 0:_.menuSelect,b=!0;(v=(y=(t=N.cloneDeep(r))==null?void 0:t.find(O=>(O==null?void 0:O.key)==="header"))==null?void 0:y.contents)==null||v.forEach(O=>{var Ke,Re,Ze,h,se,Oe,m;let Z=(Re=(Ke=O==null?void 0:O.optionUrl)==null?void 0:Ke.groupSelect)==null?void 0:Re[1];!Z&&!Array.isArray((Ze=O==null?void 0:O.optionUrl)==null?void 0:Ze.groupSelect)&&(Z=(Oe=(se=(h=O==null?void 0:O.optionUrl)==null?void 0:h.groupSelect)==null?void 0:se.split(":"))==null?void 0:Oe[1]),b&&(Z!=null&&Z.includes("["))&&(u=Z,JSON.stringify(f)===JSON.stringify((m=O==null?void 0:O.optionUrl)==null?void 0:m.menuSelect)&&(b=!1))});let E=N.cloneDeep(o),k=ll.value;k!=null&&k.find(O=>(s==null?void 0:s.prop)===(O==null?void 0:O.key))&&(k=k==null?void 0:k.filter(O=>(s==null?void 0:s.prop)!==(O==null?void 0:O.key))),k!=null&&k.find(O=>c===(O==null?void 0:O.key))&&(k=k==null?void 0:k.filter(O=>c!==(O==null?void 0:O.key))),E=E==null?void 0:E.map(O=>{var Z,Ke,Re,Ze,h,se,Oe,m,ke;return(O==null?void 0:O.type)==="Select"&&(((Ke=(Z=O==null?void 0:O.optionUrl)==null?void 0:Z.allSelectionContents)==null?void 0:Ke.length)>0&&(O.optionUrl.contactValue=l),((s==null?void 0:s.prop)===(O==null?void 0:O.prop)||c===(O==null?void 0:O.prop))&&s&&(Array.isArray(s.value)&&((Re=s.value)==null?void 0:Re.length)>0&&((Ze=s.value)!=null&&Ze.every(Ue=>typeof Ue=="string"))?(k.push({key:O==null?void 0:O.prop,value:[(se=s.value)==null?void 0:se[((h=s.value)==null?void 0:h.length)-1]]}),O.selectValue=(Oe=k==null?void 0:k.find(Ue=>(Ue==null?void 0:Ue.key)===(O==null?void 0:O.prop)))==null?void 0:Oe.value):Array.isArray(s.value)&&((m=s.value)==null?void 0:m.length)===0?(k=[],O.selectValue=[],l[O==null?void 0:O.prop]=""):Array.isArray(O.value)&&k.push({key:O==null?void 0:O.prop,value:[(ke=O.value)==null?void 0:ke[(O==null?void 0:O.length)-1]]}))),O.value=l==null?void 0:l[O==null?void 0:O.prop],O}),ll.value=k,xe.value=N.cloneDeep(E);let T=(s==null?void 0:s.menuId)??((H=(D=(q=xe.value)==null?void 0:q.find(O=>{var Z;return(Z=O==null?void 0:O.optionUrl)==null?void 0:Z.menuId}))==null?void 0:D.optionUrl)==null?void 0:H.menuId);if((d=s==null?void 0:s.optionUrl)!=null&&d.menuSelect&&ma.value||T){let O=await Ka(s,T),Z;if(O==null||O.forEach(h=>{var se,Oe,m,ke,Ue,ul,cl,dl,pl,fl,hl,sl,_e,Te,gl,Sl,xl,wl,g,G,Ie,Qe,Xe,bl,Pl,Ce,Ul;if(!T&&u===((Oe=(se=s==null?void 0:s.optionUrl)==null?void 0:se.groupSelect)==null?void 0:Oe[1])&&((Ue=(ke=(m=s==null?void 0:s.optionUrl)==null?void 0:m.groupSelect)==null?void 0:ke[1])!=null&&Ue.includes("["))&&((fl=N.cloneDeep(h))==null?void 0:fl[(pl=(dl=(cl=(ul=s==null?void 0:s.optionUrl)==null?void 0:ul.groupSelect)==null?void 0:cl[1])==null?void 0:dl.replaceAll("[",""))==null?void 0:pl.replaceAll("]","")])===(s==null?void 0:s.value)&&(Z=h),T){let be=(sl=(hl=xe.value)==null?void 0:hl.find(p=>{var ge;return(s==null?void 0:s.menuId)===((ge=p==null?void 0:p.optionUrl)==null?void 0:ge.menuId)}))==null?void 0:sl.prop,tl=l[be];if(be!=null&&be.includes("·"))if(!Array.isArray(l[be]))tl=(Te=(_e=l[be])==null?void 0:_e.split(" "))==null?void 0:Te[0],be=(gl=be==null?void 0:be.split("·"))==null?void 0:gl[0];else{be=(Sl=be==null?void 0:be.split("·"))==null?void 0:Sl[0];let p=(wl=(xl=E==null?void 0:E.find(ge=>(ge==null?void 0:ge.prop)===be))==null?void 0:xl.selectValue)==null?void 0:wl[0];tl=(g=p==null?void 0:p.split(" "))==null?void 0:g[0]}let z=(Ie=(G=E==null?void 0:E.find(p=>{var ge;return(p==null?void 0:p.prop)===be||((ge=p==null?void 0:p.prop)==null?void 0:ge.includes("."+be))}))==null?void 0:G.selectValue)==null?void 0:Ie[0];if(be!=null&&be.includes(".")&&!h[be]&&(be=(Xe=be==null?void 0:be.split("."))==null?void 0:Xe[((Qe=be==null?void 0:be.split("."))==null?void 0:Qe.length)-1]),Array.isArray(tl)&&!z&&(z=tl==null?void 0:tl[0]),h[be]===(Array.isArray(tl)?z:tl)&&(s==null?void 0:s.directiveLabel)==="#isMain"){if(c!=null&&c.includes("·")){let p=c==null?void 0:c.split("·"),ge=(Ul=(Ce=(Pl=Array.isArray(l==null?void 0:l[c])?(bl=l==null?void 0:l[c])==null?void 0:bl[0]:l==null?void 0:l[c])==null?void 0:Pl.split(" "))==null?void 0:Ce.filter(Be=>Be&&Be!==""))==null?void 0:Ul.map(Be=>Be==null?void 0:Be.trim());p==null||p.forEach((Be,Ve)=>{h[Be]=ge==null?void 0:ge[Ve]})}Z=h}}}),Je.value&&(s==null?void 0:s.directiveLabel)==="#isMain"&&(pe.value=[]),!Z){if(Je.value&&(s==null?void 0:s.directiveLabel)==="#isMain")if(c!=null&&c.includes("·")){let h=l,se=(W=(fe=(j=l==null?void 0:l[c])==null?void 0:j.split(" "))==null?void 0:fe.filter(m=>m&&m!==""))==null?void 0:W.map(m=>m==null?void 0:m.trim());(w=c==null?void 0:c.split("·"))==null||w.forEach((m,ke)=>{h[m]=se[ke]});let Oe=(F=xe.value)==null?void 0:F.find(m=>(m==null?void 0:m.prop)===c);h[Oe.prop]=[Oe.value],Z=h}else{let h=(ie=xe.value)==null?void 0:ie.find(se=>(se==null?void 0:se.prop)===(s==null?void 0:s.prop));l[h.prop]=[h.value],Z=l}else if((s==null?void 0:s.directiveLabel)==="#isMain"){let h={};(ne=xe.value)==null||ne.forEach(se=>{var Oe,m;(se==null?void 0:se.prop)===c?h[se.prop]=(Oe=se==null?void 0:se.selectValue)!=null&&Oe[0]?[(m=se==null?void 0:se.selectValue)==null?void 0:m[0]]:"":h[se.prop]=""}),Z=h}}if(Z){let h=N.cloneDeep(o);h=h==null?void 0:h.map(m=>{var Ue,ul,cl,dl,pl,fl,hl,sl,_e,Te,gl,Sl,xl,wl,g,G,Ie,Qe,Xe,bl,Pl,Ce,Ul,be,tl,z,p,ge,Be,Ve,nl,ze,Xl,Zl,ea,je,Ll,zl,la,Nl,ql,_a,Aa,wa;if(((Ue=m==null?void 0:m.prop)!=null&&Ue.includes(".")&&(Z!=null&&Z[(pl=(ul=m==null?void 0:m.prop)==null?void 0:ul.split("."))==null?void 0:pl[((dl=(cl=m==null?void 0:m.prop)==null?void 0:cl.split("."))==null?void 0:dl.length)-1]])||Z!=null&&Z[m==null?void 0:m.prop]||Z!=null&&Z[(_e=(sl=(hl=(fl=m==null?void 0:m.optionUrl)==null?void 0:fl.groupSelect)==null?void 0:hl[1])==null?void 0:sl.replaceAll("[",""))==null?void 0:_e.replaceAll("]","")])&&((Sl=(gl=(Te=m==null?void 0:m.optionUrl)==null?void 0:Te.groupSelect)==null?void 0:gl[1])!=null&&Sl.includes("["))&&!(m!=null&&m.relatedValueId))return m.value=(Z==null?void 0:Z[m==null?void 0:m.prop])??(Z==null?void 0:Z[(G=(xl=m==null?void 0:m.prop)==null?void 0:xl.split("."))==null?void 0:G[((g=(wl=m==null?void 0:m.prop)==null?void 0:wl.split("."))==null?void 0:g.length)-1]])??(Z==null?void 0:Z[(bl=(Xe=(Qe=(Ie=m==null?void 0:m.optionUrl)==null?void 0:Ie.groupSelect)==null?void 0:Qe[1])==null?void 0:Xe.replaceAll("[",""))==null?void 0:bl.replaceAll("]","")]),m;let ke=Z==null?void 0:Z[m==null?void 0:m.prop];return(Pl=m==null?void 0:m.prop)!=null&&Pl.includes(".")&&!ke&&((Ul=(Ce=s==null?void 0:s.prop)==null?void 0:Ce.split("."))==null?void 0:Ul[0])===((tl=(be=m==null?void 0:m.prop)==null?void 0:be.split("."))==null?void 0:tl[0])&&(ke=(Z==null?void 0:Z[(Be=(z=m==null?void 0:m.prop)==null?void 0:z.split("."))==null?void 0:Be[((ge=(p=m==null?void 0:m.prop)==null?void 0:p.split("."))==null?void 0:ge.length)-1]])??(Z==null?void 0:Z[m==null?void 0:m.prop])),T&&(ke||ke==="")&&(m!=null&&m.relatedValueId)&&Ol.value==="新增"&&((m==null?void 0:m.prop)!==(s==null?void 0:s.prop)||c!=null&&c.includes((s==null?void 0:s.prop)+"·")||c!=null&&c.includes("·"+(m==null?void 0:m.prop)))?m.value=ke??(Z==null?void 0:Z[(Xl=(ze=(nl=(Ve=m==null?void 0:m.optionUrl)==null?void 0:Ve.groupSelect)==null?void 0:nl[1])==null?void 0:ze.replaceAll("[",""))==null?void 0:Xl.replaceAll("]","")]):(c!=null&&c.includes("·"+(m==null?void 0:m.prop))||c!=null&&c.includes("."))&&(m==null?void 0:m.prop)!==(s==null?void 0:s.prop)&&!Array.isArray((ea=(Zl=xe.value)==null?void 0:Zl.find(il=>(il==null?void 0:il.prop)===(m==null?void 0:m.prop)))==null?void 0:ea.value)?m.value=ke??"":((je=m==null?void 0:m.optionUrl)==null?void 0:je.multiple)===!0&&!Array.isArray((zl=(Ll=xe.value)==null?void 0:Ll.find(il=>(il==null?void 0:il.prop)===(m==null?void 0:m.prop)))==null?void 0:zl.value)?m.value=((Nl=(la=xe.value)==null?void 0:la.find(il=>(il==null?void 0:il.prop)===(m==null?void 0:m.prop)))==null?void 0:Nl.value)===""?[]:[(_a=(ql=xe.value)==null?void 0:ql.find(il=>(il==null?void 0:il.prop)===(m==null?void 0:m.prop)))==null?void 0:_a.value]:m.value=(wa=(Aa=xe.value)==null?void 0:Aa.find(il=>(il==null?void 0:il.prop)===(m==null?void 0:m.prop)))==null?void 0:wa.value,m}),xe.value=N.cloneDeep(h);let se=N.cloneDeep(h);se=se==null?void 0:se.map(m=>{var ke,Ue,ul,cl,dl,pl,fl,hl,sl;return(Ue=(ke=m==null?void 0:m.optionUrl)==null?void 0:ke.menuSelect)!=null&&Ue.some(_e=>_e==null?void 0:_e.includes("["))&&(m.optionUrl.oldMenuSelect=(cl=(ul=N.cloneDeep(m))==null?void 0:ul.optionUrl)==null?void 0:cl.menuSelect,m.optionUrl.menuSelect=(pl=(dl=m==null?void 0:m.optionUrl)==null?void 0:dl.menuSelect)==null?void 0:pl.map(_e=>{var Te,gl,Sl,xl;if(_e!=null&&_e.includes("[")){let wl=(gl=(Te=_e==null?void 0:_e.replaceAll("[","").replaceAll("]",""))==null?void 0:Te.split(":"))==null?void 0:gl[1];_e=(xl=(Sl=N.cloneDeep(h))==null?void 0:Sl.find(g=>(g==null?void 0:g.label)===wl))==null?void 0:xl.value}return _e})),((s==null?void 0:s.prop)===(m==null?void 0:m.prop)||c===(m==null?void 0:m.prop))&&Array.isArray(s.value)&&(fl=s.value)!=null&&fl.every(_e=>typeof _e=="string")&&(m.selectValue=((hl=k==null?void 0:k.find(_e=>(_e==null?void 0:_e.key)===(m==null?void 0:m.prop)))==null?void 0:hl.value)??((sl=m.value)==null?void 0:sl[0])),m}),xe.value=se;let Oe={};(ae=xe.value)==null||ae.forEach(m=>{Oe[m.prop]=m==null?void 0:m.value}),_l.value=Oe}let Ke=pe.value,Re={};(me=xe.value)==null||me.forEach(h=>{var se,Oe,m,ke,Ue,ul,cl,dl,pl,fl,hl;if(((h==null?void 0:h.directiveLabel)==="#isMain"||(se=h==null?void 0:h.optionUrl)!=null&&se.menuId)&&Array.isArray(h==null?void 0:h.value)){if(Re[h.prop]||(Re[h.prop]=(m=h.value)==null?void 0:m[((Oe=h.value)==null?void 0:Oe.length)-1]),(ke=h==null?void 0:h.prop)!=null&&ke.includes("·")){let sl=(cl=(ul=(Ue=h==null?void 0:h.prop)==null?void 0:Ue.split("·"))==null?void 0:ul.filter(Te=>Te&&Te!==""))==null?void 0:cl.map(Te=>Te==null?void 0:Te.trim()),_e=(hl=(fl=(pl=(dl=h==null?void 0:h.selectValue)==null?void 0:dl[0])==null?void 0:pl.split(" "))==null?void 0:fl.filter(Te=>Te&&Te!==""))==null?void 0:hl.map(Te=>Te==null?void 0:Te.trim());sl==null||sl.forEach((Te,gl)=>{Re=Object.assign({},Re,{[Te]:_e==null?void 0:_e[gl]})})}}else Re[h.prop]=(Re==null?void 0:Re[h==null?void 0:h.prop])??h.value});let Ze=(Ee=xe.value)==null?void 0:Ee.find(h=>{var se;return(h==null?void 0:h.directiveLabel)==="#isMain"||((se=h==null?void 0:h.optionUrl)==null?void 0:se.menuId)});(s==null?void 0:s.directiveLabel)==="#isMain"&&((te=s==null?void 0:s.value)==null?void 0:te[((X=s==null?void 0:s.value)==null?void 0:X.length)-1])!==""?Ke.push({label:s==null?void 0:s.prop,value:(he=s==null?void 0:s.value)==null?void 0:he[((Pe=s==null?void 0:s.value)==null?void 0:Pe.length)-1],objectValue:Re}):((ve=Ze==null?void 0:Ze.value)==null?void 0:ve.length)>0&&((We=s==null?void 0:s.value)==null?void 0:We[((we=s==null?void 0:s.value)==null?void 0:we.length)-1])!==""&&(Ke=Ke==null?void 0:Ke.map(h=>{var se;return(h==null?void 0:h.value)===((se=Ze==null?void 0:Ze.selectValue)==null?void 0:se[0])&&(h.objectValue=Re),h})),pe.value=Ke}ma.value=!0,Je.value=!1},dn=l=>l?(l==null?void 0:l.toUpperCase())==="INPUT"?"TEXTAREA":l:"TEXTAREA",pn=l=>{var u,c;const a=(c=(u=$l.value)==null?void 0:u.find(s=>(s==null?void 0:s.label)===(l==null?void 0:l.label)))==null?void 0:c.multiple,r=l==null?void 0:l.prop;if((l==null?void 0:l.formType)!="Select")return;Q.value.forEach(s=>{const f=s==null?void 0:s[r];a&&Vr.isString(f)&&(s[r]=[f]),!a&&!Vr.isString(f)&&(s[r]="")})},_r=(l,a)=>{var r;return a==null||a.forEach(o=>{l[o==null?void 0:o.prop]=o==null?void 0:o.value}),l.children&&((r=l.children)==null?void 0:r.length)>0&&(l.children=l.children.map(o=>_r(o,a))),l},rr=l=>{var r,o,i,u,c,s;xa("");const a=(r=xe.value)==null?void 0:r.reduce((f,b)=>(f[b.name]=b.value,f),{});if(((o=Object.keys(a))==null?void 0:o.length)>0){_l.value=a,Jl.value="",ua.value=(i=Q.value)==null?void 0:i.length,Dl.value=(u=El.value)==null?void 0:u.filter(b=>(b==null?void 0:b.label)!=="新增");const f=(s=(c=L.value)==null?void 0:c.filter(b=>(b==null?void 0:b.label)!=="操作"))==null?void 0:s.map(b=>{var k,T,$;const E=(T=(k=$l.value)==null?void 0:k.find(M=>(M==null?void 0:M.label)===(b==null?void 0:b.label)))==null?void 0:T.multiple;return pn(b),{...b,contents:(b==null?void 0:b.options)??[],optionUrl:b!=null&&b.formMenuSelect&&(($=b==null?void 0:b.formMenuSelect)==null?void 0:$.length)>0?{groupSelect:b==null?void 0:b.groupSelect,menuSelect:b==null?void 0:b.formMenuSelect,selectRelateType:"",type:b==null?void 0:b.formType,multiple:E}:null}});R.value=f==null?void 0:f.map(b=>_r(b,[{prop:"type",value:"edit"},{prop:"columnType",value:dn(b==null?void 0:b.formType)||(b==null?void 0:b.columnType)}])),l==="createClick"&&Na(!1)}},pa={START:"开始时间",END:"结束时间",HOURS:"工时"},fn=(l,a)=>Number(de.dayjs(a).diff(de.dayjs(l),"day",!0).toFixed(1)),Ar=l=>{var u;const a=n.itemData,r=(u=a==null?void 0:a.find(c=>(c==null?void 0:c.key)==="header"))==null?void 0:u.contents,o=new Map;return r==null||r.forEach((c,s)=>{const{label:f}=c;o.set(f,s)}),!o.has(pa.START)||!o.has(pa.END)||!o.has(pa.HOURS)?l:l==null?void 0:l.map(c=>{const s=c==null?void 0:c[pa.START],f=c==null?void 0:c[pa.END],b=fn(s,f);return s&&f&&(c[pa.HOURS]=`${b}天`),c})},wr=(l,a,r=0)=>{if(r>((a==null?void 0:a.length)??""))return l;const o=a==null?void 0:a[r],i=new Map;for(const c of l){const s=c[o];i.has(s)||i.set(s,[]),i.get(s)&&i.get(s).push(c)}const u=[];for(const[c,s]of i){const[f,...b]=s,E={...f};r+1===((a==null?void 0:a.length)??"")?E.children=s==null?void 0:s.map(k=>(k.level=N.cloneDeep(r)+1,k)).filter((k,T)=>T!==0):b.length>0&&(E.children=wr(b,a,r+1)),E.level=r,u.push(E)}return u},Dr=(l,a,r)=>{var i;if(!(a!=null&&a.contents)||((i=a==null?void 0:a.contents)==null?void 0:i.length)===0)return l;let o=[];return o=wr(l,a==null?void 0:a.contents,0),o},Er=async(l,a)=>{var K,x,V,Y,J,U,_,t,y,v,q,D,H,d,j,fe,W,w,F,ie,ne,ae,me,Ee,X,te,Pe,he,ve,we,We,O,Z,Ke,Re,Ze,h,se,Oe,m,ke,Ue,ul,cl,dl,pl,fl,hl,sl,_e,Te,gl,Sl,xl,wl;const r=l==null?void 0:l.filter(g=>(g==null?void 0:g.key)==="header");l==null||l.filter(g=>(g==null?void 0:g.key)==="tableIndexColumn")[0];const o=l==null?void 0:l.filter(g=>(g==null?void 0:g.key)==="childTree")[0];let i=!0;if((V=(x=(K=l==null?void 0:l.find(g=>(g==null?void 0:g.key)==="filterAllType"))==null?void 0:K.value)==null?void 0:x.find(g=>(g==null?void 0:g.value)==="onPamButtonContents"))!=null&&V.content){let g=(U=(J=(Y=l==null?void 0:l.find(G=>(G==null?void 0:G.key)==="filterAllType"))==null?void 0:Y.value)==null?void 0:J.find(G=>(G==null?void 0:G.value)==="onPamButtonContents"))==null?void 0:U.content;g=(_=g==null?void 0:g.split(":"))==null?void 0:_[1],g=(t=g.slice(1,(g==null?void 0:g.length)-1))==null?void 0:t.split(","),i=!!(g!=null&&g.find(G=>G==="操作"))}let u=a;const c=l==null?void 0:l.find(g=>(g==null?void 0:g.key)==="page"),s=l==null?void 0:l.find(g=>(g==null?void 0:g.key)==="rowButton"),f=l==null?void 0:l.find(g=>(g==null?void 0:g.key)==="extraButton"),b=l==null?void 0:l.filter(g=>(g==null?void 0:g.key)==="tableContents"),E=l==null?void 0:l.filter(g=>(g==null?void 0:g.key)==="tableIndex");$l.value=(v=(y=l==null?void 0:l.filter(g=>(g==null?void 0:g.key)==="tableToForm"))==null?void 0:y[0])==null?void 0:v.contents,sr.value=(c==null?void 0:c.contents)??!0;let k=[];na.value===""?k=r==null?void 0:r[0]:k=(r==null?void 0:r.find(g=>(g==null?void 0:g.selectLabel)==="("+na.value+")"))??(r==null?void 0:r.find(g=>!(g!=null&&g.selectLabel)));let T=[];na.value===""?T=E==null?void 0:E[0]:T=(E==null?void 0:E.find(g=>(g==null?void 0:g.selectLabel)==="("+na.value+")"))??(E==null?void 0:E.find(g=>!(g!=null&&g.selectLabel)));let $=[],M=[];if(((q=k==null?void 0:k.contents)==null?void 0:q.length)>0){let g=[],G=k==null?void 0:k.contents;if(Array.isArray(G==null?void 0:G[0])&&((D=G==null?void 0:G[0])!=null&&D.every(z=>!(z!=null&&z.children)))&&(G=G==null?void 0:G[0]),G.some(z=>Array.isArray(z)&&(z==null?void 0:z.find(p=>p.children))))ba.value===""?g=(d=(H=de.getGradeColumns(G,i,u))==null?void 0:H[0])==null?void 0:d.filter(z=>!Array.isArray(z)):(ba.value.split("-"),g=(j=de.getGradeColumns(G,i,u))==null?void 0:j[0]);else{let z=G.some(p=>Array.isArray(p))?G==null?void 0:G[0]:G;z!=null&&z.find(p=>(p==null?void 0:p.label)==="操作")||z.push({label:"操作"}),z==null||z.forEach((p,ge)=>{var nl,ze,Xl,Zl,ea,je,Ll,zl,la,Nl,ql,_a,Aa,wa,il,Or,Ur,Lr,jr,Pr,$r,Mr;let Be="";if((ze=(nl=Fe.value)==null?void 0:nl.split("/"))==null||ze.forEach(De=>{var $e,Yl,Rr;if(De!==""){let Fr=(Rr=(Yl=($e=De==null?void 0:De.split(ce+"updateLoading"))==null?void 0:$e[0])==null?void 0:Yl.split(ce+"loading"))==null?void 0:Rr[0];Be=Be===""?Be+Fr:Be+"/"+Fr}}),p!=null&&p.methodContent){let De=(ea=(Zl=(Xl=p==null?void 0:p.methodContent)==null?void 0:Xl.replace("@","%%#"))==null?void 0:Zl.split("%%#"))==null?void 0:ea[1];if(De=De==null?void 0:De.slice(0,(De==null?void 0:De.length)-1),De=de.contentTransArrayToAllNoExtra(De??"",","),(je=De==null?void 0:De.find($e=>$e==null?void 0:$e.includes("@Button")))!=null&&je.includes("Prop")&&((Ll=De==null?void 0:De.find($e=>$e==null?void 0:$e.includes("Type")))!=null&&Ll.includes("Manual"))){let $e=(la=(zl=De==null?void 0:De.find(Yl=>Yl==null?void 0:Yl.includes("@Button")))==null?void 0:zl.split(":"))==null?void 0:la[1];$e=((_a=(ql=(Nl=$e==null?void 0:$e.replaceAll("[",""))==null?void 0:Nl.replaceAll("]",""))==null?void 0:ql.split(","))==null?void 0:_a[1])??"算法执行",$.push($e)}else if((Aa=De==null?void 0:De.find($e=>$e==null?void 0:$e.includes("@Button")))!=null&&Aa.includes("Row")&&((wa=De==null?void 0:De.find($e=>$e==null?void 0:$e.includes("Type")))!=null&&wa.includes("Manual"))){let $e=(Or=(il=De==null?void 0:De.find(Yl=>Yl==null?void 0:Yl.includes("@Button")))==null?void 0:il.split(":"))==null?void 0:Or[1];$e=((jr=(Lr=(Ur=$e==null?void 0:$e.replaceAll("[",""))==null?void 0:Ur.replaceAll("]",""))==null?void 0:Lr.split(","))==null?void 0:jr[1])??"算法执行",M.push($e)}}Be=Be+"/";const Ve=(Pr=$l.value)==null?void 0:Pr.find(De=>(De==null?void 0:De.prop)===(p==null?void 0:p.prop));g.push({label:(p==null?void 0:p.label)==="操作"?i?"操作":"":(p==null?void 0:p.label)??"",prop:(p==null?void 0:p.label)==="操作"?"operate":(p==null?void 0:p.prop)??"a"+ge,width:p!=null&&p.width?parseInt(p.width):"",fixed:(p==null?void 0:p.fixed)??void 0,sortable:(p==null?void 0:p.sortable)??!1,filterable:(p==null?void 0:p.filterable)??!1,operable:(p==null?void 0:p.operable)??!1,showSummary:(p==null?void 0:p.showSummary)??!1,align:(p==null?void 0:p.align)??"left",showOverflowTooltip:(p==null?void 0:p.showOverflowTooltip)??!0,isNotDrag:(p==null?void 0:p.isNotDrag)??!1,isEditCol:(p==null?void 0:p.isEditCol)??!1,isOperate:(p==null?void 0:p.isOperate)??!1,id:(p==null?void 0:p.id)??ge,type:(p==null?void 0:p.label)==="操作"?"operate":void 0,formType:(p==null?void 0:p.formType)??(p!=null&&p.groupSelect?"Select":""),isTableColHidden:p==null?void 0:p.isTableColHidden,isFormColHidden:p==null?void 0:p.isFormColHidden,disabled:p==null?void 0:p.disabled,options:(p==null?void 0:p.options)??[],value:(p==null?void 0:p.value)??"",formMenuSelect:(p==null?void 0:p.formMenuSelect)??[],isRoute:(p==null?void 0:p.isRoute)??!1,groupSelect:p!=null&&p.groupSelect?($r=p==null?void 0:p.groupSelect)==null?void 0:$r.replaceAll('"',"").split(":"):[],isMainKey:(p==null?void 0:p.isMainKey)||(p==null?void 0:p.directiveLabel)==="#isMain",columnType:(Ve==null?void 0:Ve.type)||(p==null?void 0:p.columnType)||"TEXTAREA",directiveLabel:p==null?void 0:p.directiveLabel,directiveColor:(p==null?void 0:p.directiveColor)??!1,isExistChild:!!(p!=null&&p.directiveLabel&&(u!=null&&u[Be])&&!((Mr=p==null?void 0:p.directiveLabel)!=null&&Mr.includes("@"))&&(p==null?void 0:p.directiveLabel)==="#isMain"),childPath:(p==null?void 0:p.directiveLabel)!=="#isMain"?Be:void 0,allSelectionContents:(p==null?void 0:p.allSelectionContents)??[],selectFilter:p==null?void 0:p.selectFilter,menuId:p==null?void 0:p.menuId,filterContent:p==null?void 0:p.filterContent,relatedValueId:p==null?void 0:p.relatedValueId,methodContent:p==null?void 0:p.methodContent})})}const Ie=de.getNewColumnChild(g);await xo(Ie),pi(yl.value,Ie),R.value=Ie,za.value=Ie,S.value=(fe=R.value)==null?void 0:fe.map(z=>z==null?void 0:z.label);let Qe=(w=(W=de.getAllLeafNodes(R.value))==null?void 0:W.filter(z=>(z==null?void 0:z.type)!=="operate"))==null?void 0:w.map((z,p)=>({prop:(z==null?void 0:z.prop)??"a"+p,column:z.label}));Rl.value=Qe;let Xe=[];na.value===""?Xe=b==null?void 0:b[0]:Xe=(b==null?void 0:b.find(z=>(z==null?void 0:z.selectLabel)==="("+na.value+")"))??(b==null?void 0:b.find(z=>!(z!=null&&z.selectLabel)));let bl=Array.isArray((F=Xe==null?void 0:Xe.contents)==null?void 0:F[0])&&((ie=Xe==null?void 0:Xe.contents)!=null&&ie[0].every(z=>Array.isArray(z)))?(ne=Xe==null?void 0:Xe.contents)==null?void 0:ne[0]:Xe==null?void 0:Xe.contents;T!=null&&T.contents&&((ae=T==null?void 0:T.contents)==null?void 0:ae.length)!==0&&(bl=(me=N.cloneDeep(bl))==null?void 0:me.map((z,p)=>{if(!Array.isArray(z)){let ge={};for(let Be in z)Be!=="id"&&Be!=="index"&&(ge[Be]=z[Be]);z=Object.values(ge)}return z}));const Pl=!!((Ee=R.value)!=null&&Ee.find(z=>z.prop==="index"));bl=Jr(bl,T==null?void 0:T.contents,Pl);const Ce=[];bl==null||bl.forEach((z,p)=>{var Be;let ge={};if(Array.isArray(z)){let Ve=[];z==null||z.filter(nl=>!(nl!=null&&nl.id)).forEach((nl,ze)=>{var Xl,Zl,ea,je,Ll,zl;if((Xl=Qe==null?void 0:Qe[ze])!=null&&Xl.prop&&!Array.isArray(nl)){let la={};la[Qe[ze].column]=nl,qe!=null&&qe.value&&((Zl=qe==null?void 0:qe.value)==null?void 0:Zl.length)>0&&((ea=qe==null?void 0:qe.value)!=null&&ea.find(Nl=>JSON.stringify(Nl==null?void 0:Nl[0])===JSON.stringify(la)))&&(Ve=(je=qe==null?void 0:qe.value)==null?void 0:je.find(Nl=>JSON.stringify(Nl==null?void 0:Nl[0])===JSON.stringify(la))),Ve&&Ve.length>0?ge[Qe[ze].prop]=Ve!=null&&Ve.find(Nl=>{var ql;return((ql=Object.keys(Nl))==null?void 0:ql[0])===Qe[ze].column})?(Ll=Ve==null?void 0:Ve.find(Nl=>{var ql;return((ql=Object.keys(Nl))==null?void 0:ql[0])===Qe[ze].column}))==null?void 0:Ll[Qe[ze].column]:nl:ge[Qe[ze].prop]=nl}else Array.isArray(nl)&&((zl=Qe[ze])!=null&&zl.prop?ge[Qe[ze].prop]=nl:ge.children=or(nl,Qe))})}else ge=z;if(Array.isArray(z)&&z.some(Ve=>Ve==null?void 0:Ve.id)){const Ve=(Be=z==null?void 0:z.find(nl=>nl.id))==null?void 0:Be.id;Ce.push(Object.assign(ge,{id:hr(Ve)}))}else ge.id?Ce.push(ge):Ce.push(Object.assign(ge,{id:p.toString()}))});try{const z=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),p=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null"),ge=z==null?void 0:z.tableId,Be=z==null?void 0:z.compIndex;if(ge&&Array.isArray(p)&&p.length>0&&String(ge)===String(n==null?void 0:n.parentTableId)&&String(Be)===String(n==null?void 0:n.index)){const Ve=new Set(Ce.map(ze=>String(ze==null?void 0:ze.id))),nl=p.filter(ze=>!Ve.has(String(ze)));if(nl.length>0){const ze=z==null?void 0:z.pageKey,Xl=ze!=null&&ze.startsWith("/")?ze.substring(1):ze;((a==null?void 0:a[ze])||(a==null?void 0:a[Xl])||[]).filter(je=>{var Ll,zl;return((Ll=je==null?void 0:je.key)==null?void 0:Ll.type)==="data"&&String((zl=je==null?void 0:je.key)==null?void 0:zl.tableId)===String(ge)&&nl.includes(je==null?void 0:je.id)}).forEach(je=>{var Ll;Ve.has(String(je==null?void 0:je.id))||(Ce.push({id:je==null?void 0:je.id,...((Ll=je==null?void 0:je.value)==null?void 0:Ll.tableData)||{}}),Ve.add(String(je==null?void 0:je.id)))})}}}catch{}const Ul=Array.from(((X=jl.value)==null?void 0:X.values())||[]).filter(z=>(z==null?void 0:z._isOCRRow)&&(z==null?void 0:z._ocrTableId)===(n==null?void 0:n.index));Q.value=Dr(Ce,o,R.value),Wl.value=Ce,(te=Wl.value)==null||te.forEach(z=>{var p;(p=jl.value)==null||p.set(z.id,z)});const be=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),tl=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null");if(be&&Array.isArray(tl)&&tl.length>0&&String(be==null?void 0:be.compIndex)===String(n==null?void 0:n.index)){const z=new Set((Wl.value||[]).map(p=>String(p==null?void 0:p.id)));tl.filter(p=>!z.has(String(p)))}if(Ul.length>0){const z=new Set((Q.value||[]).map(ge=>ge==null?void 0:ge.id)),p=Ul.filter(ge=>!z.has(ge.id));p.length>0&&(Q.value=[...Q.value||[],...p],Wl.value=[...Wl.value||[],...p],p.forEach(ge=>{var Be;return(Be=jl.value)==null?void 0:Be.set(ge.id,ge)}))}}else R.value=[],L.value=[],Q.value=[],Wl.value=[],jl.value=new Map;if(M=[...new Set(M)],M=M==null?void 0:M.map(g=>({label:g,type:"methodButton"})),((Pe=s==null?void 0:s.contents)==null?void 0:Pe.length)>0)if((we=(ve=(he=l==null?void 0:l.find(g=>(g==null?void 0:g.key)==="filterAllType"))==null?void 0:he.value)==null?void 0:ve.find(g=>(g==null?void 0:g.value)==="onRowButtonContents"))!=null&&we.content){let g=(Z=(O=(We=l==null?void 0:l.find(G=>(G==null?void 0:G.key)==="filterAllType"))==null?void 0:We.value)==null?void 0:O.find(G=>(G==null?void 0:G.value)==="onButtonContents"))==null?void 0:Z.content;g=(Ke=g==null?void 0:g.split(":"))==null?void 0:Ke[1],g=(Re=g.slice(1,(g==null?void 0:g.length)-1))==null?void 0:Re.split(","),Hl.value=(Ze=s==null?void 0:s.contents)==null?void 0:Ze.filter(G=>g==null?void 0:g.find(Ie=>Ie===(G==null?void 0:G.label)))}else Hl.value=s==null?void 0:s.contents;else Hl.value=[];if(Hl.value=[...Hl.value,...M],$=[...new Set($)],$=$==null?void 0:$.map(g=>({label:g,type:"methodButton"})),((h=f==null?void 0:f.contents)==null?void 0:h.length)>0)if((m=(Oe=(se=l==null?void 0:l.find(g=>(g==null?void 0:g.key)==="filterAllType"))==null?void 0:se.value)==null?void 0:Oe.find(g=>(g==null?void 0:g.value)==="onButtonContents"))!=null&&m.content){let g=(ul=(Ue=(ke=l==null?void 0:l.find(G=>(G==null?void 0:G.key)==="filterAllType"))==null?void 0:ke.value)==null?void 0:Ue.find(G=>(G==null?void 0:G.value)==="onButtonContents"))==null?void 0:ul.content;if(g=(cl=g==null?void 0:g.split(":"))==null?void 0:cl[1],g=(dl=g.slice(1,(g==null?void 0:g.length)-1))==null?void 0:dl.split(","),Dl.value=(pl=f==null?void 0:f.contents)==null?void 0:pl.filter(G=>g==null?void 0:g.find(Ie=>Ie===(G==null?void 0:G.label))),El.value=(fl=f==null?void 0:f.contents)==null?void 0:fl.filter(G=>g==null?void 0:g.find(Ie=>Ie===(G==null?void 0:G.label))),(hl=f==null?void 0:f.contents)!=null&&hl.some(G=>(G==null?void 0:G.label)==="OCR识别")&&!((sl=Dl.value)!=null&&sl.some(G=>(G==null?void 0:G.label)==="OCR识别"))){const G=(_e=f==null?void 0:f.contents)==null?void 0:_e.find(Ie=>(Ie==null?void 0:Ie.label)==="OCR识别");Dl.value=[...Dl.value,G],El.value=[...El.value,G]}Se.value=!!(g!=null&&g.find(G=>G==="搜索")),Ge.value=!!(g!=null&&g.find(G=>G==="块状显示"))}else Dl.value=f==null?void 0:f.contents,El.value=f==null?void 0:f.contents;else Dl.value=[],El.value=[];Dl.value=[...Dl.value,...$],El.value=[...El.value,...$],(Te=Dl.value)!=null&&Te.some(g=>(g==null?void 0:g.label)==="OCR识别")||(Dl.value=[...Dl.value||[],{label:"OCR识别"}]),(gl=El.value)!=null&&gl.some(g=>(g==null?void 0:g.label)==="OCR识别")||(El.value=[...El.value||[],{label:"OCR识别"}]),ua.value=((Sl=Q==null?void 0:Q.value)==null?void 0:Sl.length)??0,Ar(Q.value),ga.value=Q.value,Fl.value&&(R.value=(wl=(xl=L.value)==null?void 0:xl.filter(g=>(g==null?void 0:g.label)!=="操作"))==null?void 0:wl.map(g=>{var G;return{...g,type:"edit",optionUrl:g!=null&&g.formMenuSelect&&((G=g==null?void 0:g.formMenuSelect)==null?void 0:G.length)>0?{groupSelect:g==null?void 0:g.groupSelect,menuSelect:g==null?void 0:g.formMenuSelect,selectRelateType:"",type:g==null?void 0:g.formType}:null}}),rr())};e.watch(()=>[n.itemData,na.value,oo.value,ba.value,qe==null?void 0:qe.value],async()=>{var l,a,r,o,i,u;if((l=n==null?void 0:n.itemData)!=null&&l.find(c=>(c==null?void 0:c.key)==="columnPath")&&!((a=ha.value)!=null&&a.find(c=>{var s,f;return(c==null?void 0:c.key)===((f=(s=n==null?void 0:n.itemData)==null?void 0:s.find(b=>(b==null?void 0:b.key)==="columnPath"))==null?void 0:f.contents)}))){let c=ha.value,s={key:(o=(r=n==null?void 0:n.itemData)==null?void 0:r.find(f=>(f==null?void 0:f.key)==="columnPath"))==null?void 0:o.contents,value:(u=(i=n==null?void 0:n.itemData)==null?void 0:i.find(f=>(f==null?void 0:f.key)==="columnUsingPath"))==null?void 0:u.contents};c!=null&&c.find(f=>(f==null?void 0:f.key)===(s==null?void 0:s.key))?c=c==null?void 0:c.map(f=>((f==null?void 0:f.key)===(s==null?void 0:s.key)&&(f.value=s.value),f)):c.push(s),rl.setTableViewContents(c)}Er(n.itemData,n.allMapContents)},{deep:!0,immediate:!0}),e.watch(()=>n==null?void 0:n.operatingForm,l=>{l!=null&&l.form&&(xa(l==null?void 0:l.form),Ol.value=l==null?void 0:l.dialogTitle,Oa.value=!0,Gl.value=!0)},{immediate:!0,deep:!0});const Tr=()=>{var l;(l=ye.value)!=null&&l.includes("read")&&(Fl.value=!Fl.value)},hn=()=>{Pa.value=!Pa.value};e.watch(()=>{var l;return(l=n==null?void 0:n.config)==null?void 0:l.viewport},l=>{var a;ye.value=l,(l==null?void 0:l.length)===0?Fl.value=!1:(l!=null&&l.includes("read")||(Fl.value=!0),l!=null&&l.includes("edit")||(Fl.value=!1)),ue.value=((a=n==null?void 0:n.config)==null?void 0:a.showIndex)||Fl.value},{immediate:!0}),e.watch(()=>Fl.value,l=>{var a;l?(rr("viewChange"),rl.setCacheUpdatingData(null)):(Dl.value=El.value,R.value=za.value,fa.value&&(rl.setTableLoading(n==null?void 0:n.index),Ae("change",fa.value))),I.value=l,ue.value=l||((a=n==null?void 0:n.config)==null?void 0:a.showIndex)},{immediate:!0}),e.watch(()=>{var l;return(l=cr.value)==null?void 0:l.length},l=>{l===0&&(re.currentPage=1)}),e.watch(()=>n==null?void 0:n.compNames,l=>{ol.contents=[{label:"列表名",prop:"groupName",name:"列表名",type:"select",value:"",id:0,contents:l||[],width:1}]},{immediate:!0}),e.ref(!1);const yn=(l,a)=>{var r;rr("createClick"),a===re.pageSize&&(re.currentPage=Math.ceil(((r=Q.value)==null?void 0:r.length)/re.pageSize))},vn=(l,a,r)=>{var o;Nr(r,l,a),_l.value=N.cloneDeep(l),Jl.value=l==null?void 0:l.id,ua.value=(o=Q.value)==null?void 0:o.length,Ol.value=typeof(l==null?void 0:l.id)=="string"?"新增":"编辑",Na(!1)},Al=l=>{var f,b,E,k,T,$,M,K,x,V;const{row:a,column:r,item:o,slotData:i}=l;let u=a!=null&&a[r==null?void 0:r.prop]||(a==null?void 0:a[r==null?void 0:r.prop])===0?((b=(f=a==null?void 0:a[r==null?void 0:r.prop])==null?void 0:f[0])==null?void 0:b.contents)??((a==null?void 0:a[r==null?void 0:r.prop])===0?"0":a==null?void 0:a[r==null?void 0:r.prop]):((k=(E=a==null?void 0:a[o==null?void 0:o.prop])==null?void 0:E[0])==null?void 0:k.contents)??(a==null?void 0:a[o==null?void 0:o.prop])??(($=(T=i==null?void 0:i[o==null?void 0:o.prop])==null?void 0:T[0])==null?void 0:$.contents)??(i==null?void 0:i[o==null?void 0:o.prop])??((x=(K=a==null?void 0:a[(M=o==null?void 0:o.child)==null?void 0:M.prop])==null?void 0:K[0])==null?void 0:x.contents)??(a==null?void 0:a[(V=o==null?void 0:o.child)==null?void 0:V.prop]),s=Array.isArray(u)&&!(u!=null&&u.every(Y=>typeof Y=="string"||typeof Y=="number"))?"查看":u;return s=Array.isArray(s)?s.join(","):s,s},gn=l=>{var b,E,k,T,$,M,K,x,V,Y;const{row:a,column:r,item:o,slotData:i}=l;let u=a!=null&&a[r==null?void 0:r.prop]?((E=(b=a==null?void 0:a[r==null?void 0:r.prop])==null?void 0:b[0])==null?void 0:E.contents)??(a==null?void 0:a[r==null?void 0:r.prop]):((T=(k=a==null?void 0:a[o==null?void 0:o.prop])==null?void 0:k[0])==null?void 0:T.contents)??(a==null?void 0:a[o==null?void 0:o.prop])??((M=($=i==null?void 0:i[o==null?void 0:o.prop])==null?void 0:$[0])==null?void 0:M.contents)??(i==null?void 0:i[o==null?void 0:o.prop])??((V=(x=a==null?void 0:a[(K=o==null?void 0:o.child)==null?void 0:K.prop])==null?void 0:x[0])==null?void 0:V.contents)??(a==null?void 0:a[(Y=o==null?void 0:o.child)==null?void 0:Y.prop]);const s=Array.isArray(u)&&!(u!=null&&u.every(J=>typeof J=="string"||typeof J=="number")),f=Array.isArray(u)&&(u==null?void 0:u.find(J=>J==null?void 0:J.url));return s&&f},bn=l=>{var c,s,f,b,E,k,T,$,M,K;const{row:a,column:r,item:o,slotData:i}=l||{};let u=a!=null&&a[r==null?void 0:r.prop]?((s=(c=a==null?void 0:a[r==null?void 0:r.prop])==null?void 0:c[0])==null?void 0:s.contents)??(a==null?void 0:a[r==null?void 0:r.prop]):((b=(f=a==null?void 0:a[o==null?void 0:o.prop])==null?void 0:f[0])==null?void 0:b.contents)??(a==null?void 0:a[o==null?void 0:o.prop])??((k=(E=i==null?void 0:i[o==null?void 0:o.prop])==null?void 0:E[0])==null?void 0:k.contents)??(i==null?void 0:i[o==null?void 0:o.prop])??((M=($=a==null?void 0:a[(T=o==null?void 0:o.child)==null?void 0:T.prop])==null?void 0:$[0])==null?void 0:M.contents)??(a==null?void 0:a[(K=o==null?void 0:o.child)==null?void 0:K.prop]);return Array.isArray(u)?(u==null?void 0:u.filter(x=>(x==null?void 0:x.url)||(x==null?void 0:x.downloadUrl)))??[]:[]},mn=(l,a)=>l.find(r=>Object.values(r).some(o=>o===a));return e.watch(()=>Yr.value,async l=>{if(l){vl.setContentLoading(!0),await e.nextTick();const a=mn(Q.value,l==null?void 0:l.data);if(!a)return vl.setContentLoading(!1);await gr(l==null?void 0:l.data,null,a,{data:l==null?void 0:l.data,isMainKey:!0}),vl.setContentLoading(!1)}},{deep:!0,immediate:!0}),e.watch(()=>n==null?void 0:n.cacheNewData,l=>{var a;l&&(Array.isArray(l)?l.forEach(r=>{var o,i,u,c,s,f,b;if((r==null?void 0:r.compId)===(n==null?void 0:n.index)&&(r!=null&&r.resId)&&((o=r==null?void 0:r.data)!=null&&o.id)&&(Q.value=(i=Q.value)==null?void 0:i.map(E=>{var k;return(E==null?void 0:E.id)===((k=r==null?void 0:r.data)==null?void 0:k.id)?{...E,id:r==null?void 0:r.resId}:E}),(s=(u=jl.value)==null?void 0:u.has)!=null&&s.call(u,(c=r==null?void 0:r.data)==null?void 0:c.id))){const E=jl.value.get((f=r==null?void 0:r.data)==null?void 0:f.id);jl.value.delete((b=r==null?void 0:r.data)==null?void 0:b.id),jl.value.set(r==null?void 0:r.resId,{...E,id:r==null?void 0:r.resId})}}):(l==null?void 0:l.compId)===(n==null?void 0:n.index)&&(Q.value=(a=Q.value)==null?void 0:a.map(r=>{var o;return(r==null?void 0:r.id)===((o=l==null?void 0:l.data)==null?void 0:o.id)?{...r,id:l==null?void 0:l.resId}:r})))},{immediate:!0,deep:!0}),(l,a)=>{var Y,J,U,_;const r=e.resolveComponent("svg-icon"),o=e.resolveComponent("el-popover"),i=e.resolveComponent("el-switch"),u=e.resolveComponent("el-checkbox"),c=e.resolveComponent("el-radio"),s=e.resolveComponent("el-radio-group"),f=e.resolveComponent("el-checkbox-group"),b=e.resolveComponent("el-button"),E=e.resolveComponent("LookComponent"),k=e.resolveComponent("el-icon"),T=e.resolveComponent("el-upload"),$=e.resolveComponent("el-alert"),M=e.resolveComponent("el-table-column"),K=e.resolveComponent("el-input"),x=e.resolveComponent("el-table"),V=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",mi,[ur.value?(e.openBlock(),e.createBlock(Bl.ssTable,{id:"excel-table",pageObj:re,showIndex:ue.value,isTree:(Y=B.compItem)==null?void 0:Y.isTree,summaryInfo:oe,columns:R.value,defaultSort:ee,isCardViewport:Pa.value,checkedColumns:S.value,key:Xa.value+JSON.stringify(R.value),tableData:cr.value,isEditViewport:Fl.value,isShowPagination:sr.value,isShowEdit:!1,isShowDelete:!1,allowSelect:I.value,onDbClickRow:Oo,extraButton:Dl.value,rowButton:Hl.value,cacheExtraButtons:El.value,isClearSelection:((J=Kl.value)==null?void 0:J.length)===0,onDoCurrentChange:po,onDoSizeChange:fo,onContentClick:gr,onRowClick:Lo,onSelectChange:ko,onCellChange:vn,onChange:Nr,onPreview:fr,onSubmitEditingTable:mo,onHandleColEditChange:go,onHandleColTypeChange:bo,onClickButton:Ma},e.createSlots({headerButton:e.withCtx(t=>{var y,v;return[B.showHeader?(e.openBlock(),e.createBlock(Fn,{key:0,pageLayout:B.pageLayout,lockingPage:e.unref(Ea)===e.unref(Fe),filterValues:vr.value,selectNums:(y=Kl.value)==null?void 0:y.length,dataNums:(v=Q.value)==null?void 0:v.length,compName:B.compName,isDevMode:B.isDevMode,buttons:t.buttons,onButtonClick:a[1]||(a[1]=(q,D,H)=>Ma(q,D,{extra:H})),columns:R.value,onFilter:Bo,onGetImportData:yo,level:B.level,filterShow:Se.value},null,8,["pageLayout","lockingPage","filterValues","selectNums","dataNums","compName","isDevMode","buttons","columns","level","filterShow"])):e.createCommentVNode("",!0)]}),viewport:e.withCtx(()=>{var t,y,v,q;return[((t=Q.value)==null?void 0:t.length)>0&&B.allowOperate&&Ge.value?(e.openBlock(),e.createElementBlock("div",Si,[(y=ye.value)!=null&&y.includes("read")&&((v=ye.value)!=null&&v.includes("edit"))&&((q=Hl.value)!=null&&q.some(D=>(D==null?void 0:D.label)==="编辑"))&&!Pa.value&&e.unref(Ea)!==e.unref(Fe)?(e.openBlock(),e.createElementBlock("span",{key:0,title:"编辑表格",onClick:Tr},[e.createVNode(r,{name:"editTable",class:"view-icon"})])):e.createCommentVNode("",!0),e.createElementVNode("span",{title:"卡片视图",onClick:hn},[e.createVNode(r,{name:"cardViewport",class:"view-icon"})])])):e.createCommentVNode("",!0)]}),rowCreate:e.withCtx(({row:t,index:y})=>[e.createElementVNode("span",{title:"新增",class:"row-create-wrap",onClick:v=>yn(t,y)},[e.createVNode(r,{name:"rowCreate",style:{width:"10px",height:"10px"}})],8,xi)]),operateCol:e.withCtx(()=>[e.createVNode(o,{title:"选择显示列信息",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:un},{reference:e.withCtx(()=>[e.createElementVNode("span",Ni,[e.createVNode(r,{name:"operate",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),default:e.withCtx(()=>[e.createElementVNode("div",_i,[a[14]||(a[14]=e.createElementVNode("div",{class:"group-title"},"表格操作",-1)),e.createVNode(i,{"model-value":Le.value,"active-text":"排序","inactive-text":"",style:{"margin-right":"8px"},onChange:a[3]||(a[3]=t=>No(t,"sortable"))},null,8,["model-value"]),a[15]||(a[15]=e.createElementVNode("div",{class:"group-title"},"表格列操作",-1)),e.createVNode(f,{modelValue:S.value,"onUpdate:modelValue":a[4]||(a[4]=t=>S.value=t),style:{height:"100%"},min:2,ref_key:"checkboxGroupRef",ref:C},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ka.value,t=>(e.openBlock(),e.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:t.label},[e.createVNode(u,{value:t.label,style:{width:"100%",marginRight:0}},{default:e.withCtx(()=>[e.createElementVNode("span",{title:t.label,style:{display:"inline-block",width:"250px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},e.toDisplayString(t.label),9,Ai)]),_:2},1032,["value"]),e.createVNode(o,{"popper-class":"col-operate-popover",title:"列操作",placement:"left",teleported:!1,trigger:"hover"},{reference:e.withCtx(()=>[e.createVNode(r,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:e.withCtx(()=>{var y;return[e.createElementVNode("div",wi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((y=Object.keys(t))==null?void 0:y.filter(v=>{var q;return(q=al.value)==null?void 0:q.find(D=>(D==null?void 0:D.value)===v)}),v=>{var q,D;return e.openBlock(),e.createElementBlock("div",{key:v},[Ye[v]=="radio"?(e.openBlock(),e.createElementBlock("div",Di,[a[13]||(a[13]=e.createElementVNode("div",null,"固定:",-1)),e.createVNode(s,{"model-value":t==null?void 0:t[v],onChange:H=>pr(H,v,t)},{default:e.withCtx(()=>{var H,d;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((d=(H=al.value)==null?void 0:H.find(j=>(j==null?void 0:j.value)===v))==null?void 0:d.options,j=>(e.openBlock(),e.createBlock(c,{key:j==null?void 0:j.value,label:j==null?void 0:j.value,value:j==null?void 0:j.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(j==null?void 0:j.label),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["model-value","onChange"])])):e.createCommentVNode("",!0),Ye[v]=="switch"?(e.openBlock(),e.createBlock(i,{key:1,"model-value":t==null?void 0:t[v],"active-text":(D=(q=al.value)==null?void 0:q.find(H=>(H==null?void 0:H.value)===v))==null?void 0:D.label,onChange:H=>pr(H,v,t)},null,8,["model-value","active-text","onChange"])):e.createCommentVNode("",!0)])}),128))])]}),_:2},1024),e.createElementVNode("span",Ei,[e.createVNode(r,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:1},8,["modelValue"])])]),_:1})]),content:e.withCtx(t=>{var y,v,q,D,H,d,j,fe,W,w,F,ie,ne,ae,me,Ee,X,te,Pe,he;return[((y=t==null?void 0:t.column)==null?void 0:y.label)==="OCR图片"||((v=t==null?void 0:t.column)==null?void 0:v.prop)==="OCR图片"?(e.openBlock(),e.createElementBlock("div",Ti,[e.createVNode(r,{name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:e.withModifiers(ve=>Zo(t),["stop"]),title:"查看OCR图片"},null,8,["onClick"])])):gn(t)?(e.openBlock(),e.createBlock(o,{key:1,"popper-class":"file-popover",placement:"right",trigger:"hover",effect:"light",width:"auto"},{reference:e.withCtx(()=>[e.createElementVNode("span",Bi,e.toDisplayString(Al(t)),1)]),default:e.withCtx(()=>{var ve,we;return[e.createElementVNode("div",Oi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((we=t==null?void 0:t.row)==null?void 0:we[(ve=t==null?void 0:t.column)==null?void 0:ve.prop],We=>(e.openBlock(),e.createElementBlock("div",Ui,[e.createElementVNode("div",{class:"prop-url",title:Ca(We),onClick:O=>yr(We)},e.toDisplayString(Ca(We)),9,Li),e.createElementVNode("div",{class:"prop-download",onClick:O=>wo(We)}," 下载 ",8,ji)]))),256))])]}),_:2},1024)):(e.openBlock(),e.createElementBlock("div",{key:2,style:e.normalizeStyle({color:!Array.isArray(Al(t))&&((D=(q=Al(t))==null?void 0:q.toString())!=null&&D.includes(".txt")||(d=(H=Al(t))==null?void 0:H.toString())!=null&&d.includes(".cpt")||(fe=(j=Al(t))==null?void 0:j.toString())!=null&&fe.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray(Al(t))&&((w=(W=Al(t))==null?void 0:W.toString())!=null&&w.includes(".txt")||(ie=(F=Al(t))==null?void 0:F.toString())!=null&&ie.includes(".cpt")||(ae=(ne=Al(t))==null?void 0:ne.toString())!=null&&ae.includes(".cyd"))?"underline":"",cursor:!Array.isArray(Al(t))&&((Ee=(me=Al(t))==null?void 0:me.toString())!=null&&Ee.includes(".txt")||(te=(X=Al(t))==null?void 0:X.toString())!=null&&te.includes(".cpt")||(he=(Pe=Al(t))==null?void 0:Pe.toString())!=null&&he.includes(".cyd"))?"pointer":"",marginLeft:(t==null?void 0:t.colIndex)===0?`${((t==null?void 0:t.level)??0)*20}px`:0}),onClick:ve=>co(Al(t))},e.toDisplayString(Al(t)===0?"0":Al(t)),13,Pi))]}),_:2},[((U=Hl.value)==null?void 0:U.length)>0&&e.unref(Ea)!==e.unref(Fe)?{name:"actions",fn:e.withCtx(({item:t,fIndex:y})=>[e.createVNode(o,{title:"",placement:"left-start","popper-class":"menu-operate-popover"},{reference:e.withCtx(()=>[e.createVNode(r,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"},onClick:a[0]||(a[0]=e.withModifiers(()=>{},["stop"]))})]),default:e.withCtx(()=>[e.createElementVNode("div",ki,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Do(Hl.value,t),(v,q)=>(e.openBlock(),e.createElementBlock("div",{class:"menu-config-item",key:q,onClick:e.withModifiers(D=>Ma(v==null?void 0:v.label,t,{extra:v,index:y}),["stop"])},[e.createElementVNode("div",{style:e.normalizeStyle({color:v==null?void 0:v.textColor}),class:"extra-button-label"},e.toDisplayString(v==null?void 0:v.label),5)],8,Ci))),128))])]),_:2},1024)]),key:"0"}:void 0,((_=Q.value)==null?void 0:_.length)>0?{name:"batchButton",fn:e.withCtx(t=>[e.withDirectives(e.createVNode(Vn,{lockingPage:e.unref(Ea)===e.unref(Fe),buttons:t.buttons,selectTableItems:Kl.value,onButtonClick:a[2]||(a[2]=y=>Ma(y,"",{}))},null,8,["lockingPage","buttons","selectTableItems"]),[[e.vShow,I.value]]),e.withDirectives(e.createElementVNode("div",null,null,512),[[e.vShow,!I.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(ra.ssDialog,{title:Ol.value,visible:Gl.value,width:io.value,onBeforeDestroy:_o,style:{height:"74%"}},{default:e.withCtx(()=>[e.createElementVNode("div",$i,[e.createVNode(Bl.ssForm,{rowContents:xe.value,isEnableWrap:!1,showOperator:!1,onChange:cn,onFixChangeValue:To,onClickTrigger:Ao,isEdit:Ta.value,onBlurChange:Co,onCreate:So,onTagChange:uo},null,8,["rowContents","isEdit"])])]),footer:e.withCtx(()=>[Oa.value?(e.openBlock(),e.createElementBlock("div",Mi,[e.createVNode(b,{onClick:a[5]||(a[5]=t=>Gl.value=!1),id:"themeBorderButton"},{default:e.withCtx(()=>a[16]||(a[16]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[16]}),e.createVNode(b,{class:"ok-button",onClick:a[6]||(a[6]=t=>Na(!0)),id:"themeButton"},{default:e.withCtx(()=>a[17]||(a[17]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[17]})])):e.createCommentVNode("",!0)]),_:1},8,["title","visible","width"]),e.createVNode(ra.ssDialog,{title:Ol.value,visible:Ba.value,width:qa.value,onBeforeDestroy:a[8]||(a[8]=t=>Ba.value=!1)},{default:e.withCtx(()=>[e.createVNode(Gn)]),footer:e.withCtx(()=>[e.createElementVNode("div",Ri,[e.createVNode(b,{onClick:a[7]||(a[7]=t=>Ba.value=!1),class:"cancel-button",id:"themeBorderButton"},{default:e.withCtx(()=>a[18]||(a[18]=[e.createTextVNode(e.toDisplayString("取消"))])),_:1,__:[18]}),e.createVNode(b,{class:"ok-button",onClick:jo,id:"themeButton"},{default:e.withCtx(()=>a[19]||(a[19]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1,__:[19]})])]),_:1},8,["title","visible","width"]),oa.value?(e.openBlock(),e.createBlock(Bl.ssFilePreview,{key:1,fileDataList:sa.value,onDestroy:Uo},null,8,["fileDataList"])):e.createCommentVNode("",!0),He.value?(e.openBlock(),e.createBlock(ra.ssDialog,{key:2,visible:He.value,onBeforeDestroy:sn,style:{height:"80vh",width:"80vw"},"body-class":"three-dialog-body","footer-class":"three-dialog-footer"},{default:e.withCtx(()=>[e.createVNode(Kr.ThreeViewerHost,{files:ya.value,threeData:Ne.value},null,8,["files","threeData"])]),_:1},8,["visible"])):e.createCommentVNode("",!0),e.createVNode(ra.ssDialog,{visible:l.componentVisible,onBeforeDestroy:a[9]||(a[9]=t=>l.componentVisible=!1),width:qa.value,style:{height:"70vh"}},{default:e.withCtx(()=>[e.createVNode(E,{dialogItem:ia.value},null,8,["dialogItem"])]),_:1},8,["visible","width"]),e.createVNode(ra.ssDialog,{title:"上传OCR图片",visible:Ua.value,onBeforeDestroy:mr,width:"600px"},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",Fi,[e.createVNode(T,{"file-list":Il.value,"onUpdate:fileList":a[10]||(a[10]=t=>Il.value=t),multiple:"",drag:"",action:"","auto-upload":!1,limit:20,accept:"image/*,application/pdf","on-change":Wo,class:"upload-content"},{tip:e.withCtx(()=>a[20]||(a[20]=[e.createElementVNode("div",{class:"el-upload__tip tip-content"}," 请上传图片或PDF文件,大小不超过10MB ",-1)])),default:e.withCtx(()=>[e.createVNode(k,{class:"el-icon--upload"},{default:e.withCtx(()=>[e.createVNode(e.unref(N.upload_filled_default))]),_:1}),a[21]||(a[21]=e.createElementVNode("div",{class:"el-upload__text"},[e.createTextVNode(" 将图片拖到此处或"),e.createElementVNode("em",null,"点击上传")],-1))]),file:e.withCtx(({file:t,index:y})=>[e.createElementVNode("div",Ki,[e.createElementVNode("div",{class:"upload-content-title",style:{flex:"1",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:t==null?void 0:t.name},e.toDisplayString(t==null?void 0:t.name),9,Vi),e.createElementVNode("div",zi,[e.createVNode(r,{class:"icon-blue",name:"EyeFill",style:{width:"15px",height:"15px",cursor:"pointer",color:"var(--ssform-label-color)"},onClick:v=>Qo(t),title:"预览"},null,8,["onClick"]),e.createVNode(r,{class:"icon-blue",name:"Cancel",style:{width:"15px",height:"15px",cursor:"pointer",color:"var(--ssform-label-color)"},onClick:v=>ln(y),title:"删除"},null,8,["onClick"])])])]),_:1},8,["file-list"])])),[[V,aa.value]])]),footer:e.withCtx(()=>[e.createElementVNode("div",qi,[e.createVNode(b,{onClick:Ko,id:"themeBorderButton",disabled:aa.value},{default:e.withCtx(()=>a[22]||(a[22]=[e.createTextVNode("拍照")])),_:1,__:[22]},8,["disabled"]),e.createVNode(b,{onClick:mr,id:"themeBorderButton",disabled:aa.value},{default:e.withCtx(()=>a[23]||(a[23]=[e.createTextVNode("取消")])),_:1,__:[23]},8,["disabled"]),e.createVNode(b,{class:"ok-button",onClick:Jo,id:"themeButton",disabled:aa.value},{default:e.withCtx(()=>a[24]||(a[24]=[e.createTextVNode("确认")])),_:1,__:[24]},8,["disabled"])])]),_:1},8,["visible"]),e.createVNode(ui,{visible:$a.value,onConfirm:Vo,onCancel:a[11]||(a[11]=t=>$a.value=!1)},null,8,["visible"]),La.value?(e.openBlock(),e.createBlock(Bl.ssFilePreview,{key:3,fileDataList:ja.value,onDestroy:en},null,8,["fileDataList"])):e.createCommentVNode("",!0),e.createVNode(ra.ssDialog,{title:"OCR识别结果预览",visible:Ja.value,onBeforeDestroy:er,width:"90%",style:{maxWidth:"1200px"}},{default:e.withCtx(()=>[e.createElementVNode("div",Wi,[e.createElementVNode("div",Ji,[e.createVNode($,{title:"请核对识别结果,您可以修改字段值后点击确认添加到表格。在表头勾选字段用于匹配并替换现有数据",type:"info",closable:!1,"show-icon":""})]),e.createElementVNode("div",Gi,[e.createVNode(x,{data:ca.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(M,{type:"index",label:"序号",width:"60",fixed:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ga.value,t=>(e.openBlock(),e.createBlock(M,{key:t.prop,prop:t.prop,"min-width":t.minWidth||120,"class-name":t.isAccuracy?"accuracy-column":""},{header:e.withCtx(()=>[e.createElementVNode("div",Hi,[t.isAccuracy?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(u,{key:0,"model-value":Ql.value.includes(t.prop),onChange:y=>Io(t.prop,y),onClick:a[12]||(a[12]=e.withModifiers(()=>{},["stop"]))},null,8,["model-value","onChange"])),e.createElementVNode("span",null,e.toDisplayString(t.label),1)])]),default:e.withCtx(({row:y,$index:v})=>[t.isAccuracy?(e.openBlock(),e.createElementBlock("span",{key:0,class:"accuracy-value",style:e.normalizeStyle({color:Yo(y[t.prop]),fontWeight:500})},e.toDisplayString(Xo(y[t.prop])),5)):(e.openBlock(),e.createBlock(K,{key:1,modelValue:y[t.prop],"onUpdate:modelValue":q=>y[t.prop]=q,size:"small",placeholder:"请输入"+t.label,onChange:q=>Ho(v,t.prop,q)},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"]))]),_:2},1032,["prop","min-width","class-name"]))),128))]),_:1},8,["data"])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",Ii,[e.createVNode(b,{onClick:er,id:"themeBorderButton"},{default:e.withCtx(()=>a[25]||(a[25]=[e.createTextVNode("取消")])),_:1,__:[25]}),e.createVNode(b,{class:"ok-button",onClick:Go,id:"themeButton"},{default:e.withCtx(()=>a[26]||(a[26]=[e.createTextVNode("确认")])),_:1,__:[26]})])]),_:1},8,["visible"]),e.createVNode(ra.ssDialog,{title:ol.title,visible:ol.show,width:ol.width,onBeforeDestroy:zo},{default:e.withCtx(()=>[e.createElementVNode("div",Xi,[e.createVNode(Bl.ssForm,{rowContents:ol==null?void 0:ol.contents,formRules:ol==null?void 0:ol.formRules,showOperator:!1,buttonValue:ol.buttonValue,isEdit:Ta.value,isStartJustify:!1,isEnableWrap:!1,onOnButtonClick:qo},null,8,["rowContents","formRules","buttonValue","isEdit"])])]),_:1},8,["title","visible","width"])])}}},Qi=Da._export_sfc(Yi,[["__scopeId","data-v-2e95a016"]]);exports.formGetOptions=Fa;exports.getSelectRow=Ka;exports.ssTable=Qi;exports.useFormComp=Ir;exports.useFormToTableComp=Wr;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { a as $r, u as Fr, f as Kr, g as jr, s as Nr } from "./index-
|
|
1
|
+
import { a as $r, u as Fr, f as Kr, g as jr, s as Nr } from "./index-7hYDPFlh.js";
|
|
2
2
|
import { computed as Ua, ref as ue, watch as _a, onUnmounted as Ur, resolveComponent as Ka, createElementBlock as ia, openBlock as Oe, createVNode as ze, createBlock as Ba, createCommentVNode as vt, withCtx as Fe, createElementVNode as re, Fragment as Ha, renderList as at, toDisplayString as ga, nextTick as Pt, createTextVNode as Pa, defineComponent as mt, resolveDynamicComponent as Ft, onMounted as an, unref as Ma, reactive as Ot, renderSlot as Bn, createSlots as Wr, mergeProps as vl, normalizeStyle as Zt, withModifiers as Nn, defineAsyncComponent as Hr, defineProps as Vr, getCurrentInstance as qr, inject as Co, shallowRef as Gr, toRef as Xr, onBeforeMount as hl, watchEffect as Yr, onBeforeUnmount as gl, normalizeClass as _o, getCurrentScope as Jr, onScopeDispose as Zr, provide as So, toRefs as Do, withDirectives as Qr, vShow as es } from "vue";
|
|
3
3
|
import { bz as as, k as oi, bA as ts, bB as ns, bC as is, s as nt, p as et, u as Oi, c as F, E as qa, b as Vi, g as lt, e as vn, bu as li, bv as Mn, f as Wt, bt as zi, h as Bi, bD as os, bE as ls, by as rs } from "./index-7MBVUN82.js";
|
|
4
|
-
import { d as ft, a as lo, e as yl, E as ml, f as bl, h as ss, b as kl, i as Zn } from "./index-
|
|
5
|
-
import { u as wl, a as ro, X as us, Y as qi, I as cs, g as Fa, Z as ds, _ as so, $ as Gi, a0 as yt, a1 as Wn, a2 as Ut, a3 as zn, a4 as Fi, a5 as fs, o as ps, T as Ki, a6 as vs, a7 as Eo, a8 as hs, a9 as gi, b as To, W as xl, aa as ui, ab as gs, ac as ys, ad as ms, ae as Ei, af as bs, r as ks } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
6
|
-
import { s as gt } from "./index-
|
|
7
|
-
import { a as ws, T as xs } from "./threeViewerHost-
|
|
4
|
+
import { d as ft, a as lo, e as yl, E as ml, f as bl, h as ss, b as kl, i as Zn } from "./index-BMruW26T.js";
|
|
5
|
+
import { u as wl, a as ro, X as us, Y as qi, I as cs, g as Fa, Z as ds, _ as so, $ as Gi, a0 as yt, a1 as Wn, a2 as Ut, a3 as zn, a4 as Fi, a5 as fs, o as ps, T as Ki, a6 as vs, a7 as Eo, a8 as hs, a9 as gi, b as To, W as xl, aa as ui, ab as gs, ac as ys, ad as ms, ae as Ei, af as bs, r as ks } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D0rkC1Yq.js";
|
|
6
|
+
import { s as gt } from "./index-WA32pMmJ.js";
|
|
7
|
+
import { a as ws, T as xs } from "./threeViewerHost-BP1lE3em.js";
|
|
8
8
|
import { a as Pn, u as Vn, E as $t, ae as Cs } from "./index-3oQGURYh.js";
|
|
9
9
|
import { _ as it } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
import { i as Io } from "./isString-D70CzuJZ.js";
|
|
11
11
|
import { _ as Ao } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
12
|
-
import { a as _s, s as Ss } from "./index-
|
|
12
|
+
import { a as _s, s as Ss } from "./index-nQnxvxg4.js";
|
|
13
13
|
import Cl from "./index-rlStojTL.js";
|
|
14
|
-
import { s as Ds } from "./index-
|
|
14
|
+
import { s as Ds } from "./index-C2o_u0AH.js";
|
|
15
15
|
import { S as Es } from "./index-BHtNKL1L.js";
|
|
16
16
|
import { useRouter as Ts } from "vue-router";
|
|
17
17
|
import { a as Is, e as As, f as Os, g as zs, h as Bs } from "./index-CAPx0_D4.js";
|
|
@@ -6728,7 +6728,7 @@ function $f() {
|
|
|
6728
6728
|
}(xi)), xi.exports;
|
|
6729
6729
|
}
|
|
6730
6730
|
$f();
|
|
6731
|
-
const Xi = Hr(() => import("./index-
|
|
6731
|
+
const Xi = Hr(() => import("./index-BMruW26T.js").then((t) => t.k));
|
|
6732
6732
|
Xi.install = (t) => {
|
|
6733
6733
|
t.component("ssMenu", Xi);
|
|
6734
6734
|
};
|
|
@@ -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-7hYDPFlh.js";
|
|
3
3
|
import { g as C, s as c } from "./index-7MBVUN82.js";
|
|
4
4
|
import { ag as k, af as _, a as S, u as A, ah as T } from "./index-3oQGURYh.js";
|
|
5
5
|
const B = S(), { itemData: I } = c(B), u = l(0), P = l([
|