ss-component-new 1.2.197 → 1.2.199
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-Byqavztq.cjs → MTLLoader-DACeOwx8.cjs} +1 -1
- package/dist/{MTLLoader-Dgdauq0e.js → MTLLoader-DO6JtV2J.js} +1 -1
- package/dist/{OrbitControls-ClbU8eSj.js → OrbitControls-CVZSxhco.js} +1 -1
- package/dist/{OrbitControls-CqLjuVIG.cjs → OrbitControls-Dnwv1l-5.cjs} +1 -1
- package/dist/{URDFLoader-DvK8TeNl.js → URDFLoader-BNqQfPqb.js} +2 -2
- package/dist/{URDFLoader-CNdb489r.cjs → URDFLoader-BoSgd6gH.cjs} +1 -1
- package/dist/{animationData-D-BqiAM4.js → animationData-D3-99sWf.js} +2 -2
- package/dist/{animationData-unjhG8fw.cjs → animationData-DHASNMoi.cjs} +1 -1
- package/dist/{array-BalKa-G_.cjs → array-DuMZPpVP.cjs} +1 -1
- package/dist/{array-BWgaJn7i.js → array-DxkXasEB.js} +3 -3
- package/dist/{iconfont-Pr-FT7zi.js → iconfont-AyWwUMxc.js} +2 -2
- package/dist/{iconfont-B1_Xqnj1.cjs → iconfont-U7rG6UGs.cjs} +1 -1
- package/dist/{index-BESXbWVG.js → index-0lSRcHqv.js} +2 -2
- package/dist/{index-VnVlZEmb.js → index-3oQGURYh.js} +1 -1
- package/dist/{index-B3pt6yKi.js → index-4awf2rkD.js} +6 -6
- package/dist/{index-DufZVmKf.js → index-7MBVUN82.js} +9 -8
- package/dist/{index-DrUL3MEH.cjs → index-8w6PrNkw.cjs} +1 -1
- package/dist/index-9FU0RWoV.js +3297 -0
- package/dist/{index-jUgVakK7.js → index-B-d6-ohn.js} +3 -3
- package/dist/index-B2FiRoly.cjs +1 -0
- package/dist/{index-cZFinVc1.cjs → index-B6K14gG9.cjs} +1 -1
- package/dist/{index-BEvGe7qR.cjs → index-BCfX45g1.cjs} +1 -1
- package/dist/{index-CZ4PGO_D.cjs → index-BDcBHWC2.cjs} +1 -1
- package/dist/{index-Ce_RQRLx.js → index-BDhmy-7L.js} +20 -20
- package/dist/{index-BDrk1uN0.cjs → index-BJO_TiAy.cjs} +1 -1
- package/dist/{index-BLv0pdvk.js → index-BO3Qkqzh.js} +3 -3
- package/dist/{index-DSc4zqmL.cjs → index-BPTR1s4o.cjs} +10 -10
- package/dist/{index-Ca5TreCg.cjs → index-BQEwWecE.cjs} +1 -1
- package/dist/{index-B6dURO8P.cjs → index-BZ5_PpJp.cjs} +1 -1
- package/dist/{index-CAfFVPVi.cjs → index-BnITIl1C.cjs} +1 -1
- package/dist/{index-Dojr8FJ0.js → index-BseikzDK.js} +2 -2
- package/dist/{index-CLHjjvOb.js → index-BucMQlBB.js} +1 -1
- package/dist/{index-C0xcoS5Z.js → index-Bwb6w0wO.js} +4 -4
- package/dist/{index-BhEaMtAm.js → index-C1fTLujM.js} +3 -3
- package/dist/{index-Cac0w_Jv.js → index-C5jivsmi.js} +11 -11
- package/dist/{index-DDgET2j1.cjs → index-C71_AKGx.cjs} +1 -1
- package/dist/{index-gqQl6PZB.js → index-CFl9wC5o.js} +6 -6
- package/dist/{index-DtFLuXja.cjs → index-CLqCXsqK.cjs} +1 -1
- package/dist/{index-BAaCpfqG.js → index-CO41nOz7.js} +2 -2
- package/dist/{index-C4RjZOxz.cjs → index-CP6V9Df_.cjs} +1 -1
- package/dist/{index-DQsD0m6q.js → index-CT-1q_Sb.js} +1 -1
- package/dist/{index-By--71sB.cjs → index-CXC0u8pm.cjs} +1 -1
- package/dist/{index-BnrtLGSt.cjs → index-CcNuHoZS.cjs} +1 -1
- package/dist/{index-BHrd3Rnr.cjs → index-CdMT_Zkq.cjs} +1 -1
- package/dist/{index-RptNsNWL.js → index-CgelR-6I.js} +3 -3
- package/dist/{index-CVv0twLg.js → index-Chmm97CU.js} +5 -5
- package/dist/{index-DIlZjOW9.js → index-CmNMrF68.js} +12 -12
- package/dist/{index-Dm9WJT36.cjs → index-CnuMyt69.cjs} +1 -1
- package/dist/{index-DW1RCzWC.cjs → index-D-uo7H2E.cjs} +1 -1
- package/dist/{index-D67gjfOO.cjs → index-D31qdo3B.cjs} +1 -1
- package/dist/{index-B-UnOwnc.js → index-DEN8cJAm.js} +2 -2
- package/dist/{index-BP07Gnjo.cjs → index-DOItJqcJ.cjs} +11 -11
- package/dist/{index-CPQHD9wh.js → index-DRDKKizg.js} +8 -7
- package/dist/{index-BpwyXpsR.cjs → index-DYFZIY8j.cjs} +1 -1
- package/dist/{index-Qe7Q00Fv.cjs → index-D_DpNI2W.cjs} +1 -1
- package/dist/{index-mjz9Da8Y.cjs → index-DaRuwvRP.cjs} +1 -1
- package/dist/{index-BdG8TrO6.js → index-DfFq9kkn.js} +2 -2
- package/dist/{index-t-bCvak-.cjs → index-DiRujSe_.cjs} +1 -1
- package/dist/{index-DOEl-NDu.cjs → index-DjzwipY0.cjs} +1 -1
- package/dist/{index-DRjU_LhS.js → index-Dq9Tho6E.js} +3 -3
- package/dist/{index-CtK95uR8.cjs → index-DqdWYUrz.cjs} +1 -1
- package/dist/{index-DdFjT9Lv.js → index-DzElE7Kh.js} +1 -1
- package/dist/{index-ewzEcjMi.js → index-EzLiPHAn.js} +4 -4
- package/dist/{index-K6PeHL12.cjs → index-KaxOq1_-.cjs} +1 -1
- package/dist/{index-RWbnXgK_.js → index-Oy-hRR6Z.js} +4 -4
- package/dist/{index-Db2i8Ibt.js → index-RLfjsj4L.js} +2 -2
- package/dist/{index-CDb9M8-d.js → index-aWkZx7My.js} +2 -2
- package/dist/{index-DHtKscY6.js → index-gruT7omp.js} +1 -1
- package/dist/{index-B3Nii_wb.js → index-r48vNrKN.js} +2 -2
- package/dist/{index-BdCj8NzO.cjs → index-ub7lvsfV.cjs} +1 -1
- package/dist/{index-G1p03SY5.cjs → index-z78zgQsK.cjs} +1 -1
- package/dist/{index-BT4zPLtT.cjs → index-zAtSFM2v.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DU8QxF4Q.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DpRm1D1L.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BVGLC2SV.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-hMJCL1Qk.js} +9 -9
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bamq-CWP.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C8n9olfd.cjs} +49 -49
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dz5T_AqR.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DgCNtMnV.js} +1197 -1202
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-Dy6rsh2c.js → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-B9POGhwa.js} +7 -7
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-CLRlyz4U.cjs → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-aE8dAbK9.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-DQnMqyCR.js → index.vue_vue_type_style_index_1_lang-CtOB5lpf.js} +467 -343
- package/dist/index.vue_vue_type_style_index_1_lang-UuP0ZBQR.cjs +3 -0
- package/dist/{isString-5Nawl-Uc.js → isString-D70CzuJZ.js} +1 -1
- package/dist/{isString-DKZ1g7Pn.cjs → isString-Do5yyRUw.cjs} +1 -1
- package/dist/{main-CyCvDC23.js → main-Bhc4rs1O.js} +5 -5
- package/dist/{main-DQ6Ak0EZ.cjs → main-QJTAJyAl.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +11 -11
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/{threeModel-VYZ6-TKK.js → threeModel-poOL5V2M.js} +5 -5
- package/dist/{threeModel-zbyHE0xz.cjs → threeModel-r6kZdDei.cjs} +1 -1
- package/dist/{threePreview-DmwhnnFP.js → threePreview-BY1POvl8.js} +4 -4
- package/dist/{threePreview-eC4zdGe3.cjs → threePreview-DKs8aYcW.cjs} +1 -1
- package/dist/{threeSceneView-DcaisuD7.cjs → threeSceneView-Cuz_EMZU.cjs} +1 -1
- package/dist/{threeSceneView-B1Vh9-kH.js → threeSceneView-KKWkkD2y.js} +11 -11
- package/dist/{threeSceneViewForCPMPIP-CrUTpcSK.cjs → threeSceneViewForCPMPIP-DFMYV0Jz.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-Bug3YpE6.js → threeSceneViewForCPMPIP-Dwa17cnT.js} +8 -8
- package/dist/{threeTrackPathView-SbLCNVjN.cjs → threeTrackPathView-BrPuXqrr.cjs} +1 -1
- package/dist/{threeTrackPathView-DoGfpu6-.js → threeTrackPathView-D4w6l9m2.js} +5 -5
- package/dist/{threeViewerHost-CMycPEys.js → threeViewerHost-DCU9cNEx.js} +4 -4
- package/dist/{threeViewerHost-DsgqzamS.cjs → threeViewerHost-krP0Lb0-.cjs} +1 -1
- package/dist/{urdfTree-CgNDwBy9.js → urdfTree-CQQPUmyr.js} +1 -1
- package/dist/{urdfTree-dEVNThOD.cjs → urdfTree-CcC8aW11.cjs} +1 -1
- package/dist/{workpieceTreePanel-DaS5Cegv.js → workpieceTreePanel-B6x641Qw.js} +4 -4
- package/dist/{workpieceTreePanel-N0OTMZ1G.cjs → workpieceTreePanel-Bm8mjA8R.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-BcAmPr1D.js +0 -3112
- package/dist/index-DcJzP_x9.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_1_lang-DsHyjhmo.cjs +0 -3
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as o, reactive as c, onMounted as s, createElementBlock as r, openBlock as u, createVNode as i } from "vue";
|
|
2
|
-
import { s as m } from "./index-
|
|
3
|
-
import { u as d, ai as p, ah as l } from "./index-
|
|
4
|
-
import { s as g, u as h } from "./index-
|
|
2
|
+
import { s as m } from "./index-9FU0RWoV.js";
|
|
3
|
+
import { u as d, ai as p, ah as l } from "./index-3oQGURYh.js";
|
|
4
|
+
import { s as g, u as h } from "./index-7MBVUN82.js";
|
|
5
5
|
const _ = { class: "routerPage-wrapper" }, w = /* @__PURE__ */ o({
|
|
6
6
|
__name: "index",
|
|
7
7
|
setup(f) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const l=require("vue"),C=require("./index-DOItJqcJ.cjs"),de=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C8n9olfd.cjs"),fl=require("./index-BPTR1s4o.cjs"),ir=require("./threeViewerHost-krP0Lb0-.cjs"),xa=require("./index-CXC0u8pm.cjs"),sa=require("./index.vue_vue_type_style_index_1_lang-UuP0ZBQR.cjs"),Da=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Vl=require("./index-CnuMyt69.cjs");require("./index-KaxOq1_-.cjs");const ur=require("./isString-Do5yyRUw.cjs"),Ma=q=>q.match(/\((.*)\)/)[1],sr={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},placement:{type:String,default:"bottom"},width:{type:Number,default:200}},setup(q){const se=q,ae=l.ref(null),R=l.ref(!1),K=l.ref(null);return l.watch(()=>se==null?void 0:se.isVisible,()=>{R.value=se==null?void 0:se.isVisible},{deep:!0,immediate:!0}),l.watch(()=>K.value,()=>{l.nextTick(()=>{var u,ce;(ce=(u=ae.value)==null?void 0:u.updatePopper)==null||ce.call(u)})},{deep:!0,immediate:!0}),(u,ce)=>{const xe=l.resolveComponent("el-popover");return l.openBlock(),l.createBlock(xe,{visible:R.value,title:se==null?void 0:se.title,placement:se==null?void 0:se.placement,width:se==null?void 0:se.width,ref_key:"popOverRef",ref:ae},{reference:l.withCtx(()=>[l.createElementVNode("div",null,[l.renderSlot(u.$slots,"reference",{ref_key:"referenceRef",ref:K})])]),default:l.withCtx(()=>[l.createElementVNode("div",null,[l.renderSlot(u.$slots,"content")])]),_:3},8,["visible","title","placement","width"])}}},Ao={key:0,class:"extra-button-content"},_o={class:"table-operator-wrap"},Bo={key:0,class:"extra-button-filter"},Oo={class:"form-content-value"},wo={key:1,class:"extra-header"},Uo={class:"drop-menu",style:{width:"120px"}},Lo={key:0},jo={key:1},Mo={key:1,class:"extra-button-content tabs-button-wrapper"},Po={class:"table-operator-wrap"},$o={class:"extra-button-filter"},Fo={class:"form-content-value"},Ro={key:0,class:"extra-header"},Ko={class:"drop-menu",style:{width:"120px"}},zo={key:0},Vo={key:1},qo={__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(q,{emit:se}){const ae=se,R=q,K=l.ref(""),u=l.ref(!1),ce=l.ref([]),xe=l.ref([{label:"取消",background:"#999999"},{label:"清空",background:"#999999"},{label:"确认"}]),$e=[{label:"新增",icon:"Plus"},{label:"导入",icon:"import"},{label:"导出",icon:"export"},{label:"OCR识别",icon:"ocr"}],Ce=ge=>{const Ae=ge.raw;if(!Ae)return;const Re=new FileReader;Re.onload=te=>{try{const je=new Uint8Array(te.target.result),He=de.readSync(je,{type:"array"}),Fe=He.SheetNames[0],re=He.Sheets[Fe],Qe=de.utils.decode_range(re["!ref"]).e.c+1,Y=new Array(Qe).fill(""),x=[];for(const X in re){if(X[0]==="!")continue;const{r:ye,c:Ne}=de.utils.decode_cell(X);let Xe=re[X].v;if(re[X].t==="n"&&Xe>0&&Xe<1e6&&(Xe=new Date((Xe-25569)*86400*1e3).toISOString().split("T")[0]),(Xe==null||Xe==="")&&(Xe=""),ye===0)Y[Ne]=Xe;else{if(!x[ye-1]){x[ye-1]={};for(let yl=0;yl<Qe;yl++)x[ye-1][`col_${yl}`]=""}x[ye-1][`col_${Ne}`]=Xe}}for(let X=0;X<Qe;X++)Y[X]===void 0&&(Y[X]="");const Me=x==null?void 0:x[0];if(!(Me!=null&&Me.hasOwnProperty("col_0")))return C.ElMessage.error("导入的数据列不匹配,请检查是否错位");ae("getImportData",Y,x)}catch(je){throw C.ElMessage.error(je.message),new Error(je.message)}},Re.readAsArrayBuffer(Ae)},ul=ge=>{var Re;const Ae=(Re=ce.value)==null?void 0:Re.reduce((te,je,He)=>(He===0?te[je.label]=ge:te[je.label]=je==null?void 0:je.value,te),{});ae("filter",Ae,ge,!0)},Cl=ge=>{ae("buttonClick",ge)},wl=ge=>{var Ae,Re;ce.value=(Re=(Ae=de.getColumnChild(C.cloneDeep(ge)))==null?void 0:Ae.filter(te=>(te==null?void 0:te.label)!==""&&(te==null?void 0:te.label)!=="操作"))==null?void 0:Re.map(te=>({label:(te==null?void 0:te.label)??"",value:"",name:(te==null?void 0:te.label)??"",isFormColHidden:te==null?void 0:te.isTableColHidden,width:2}))},Dl=l.ref(!1),Ul=ge=>{var Ae;if((ge==null?void 0:ge.buttonName)==="确认"&&(ae("filter",ge==null?void 0:ge.content),Dl.value=(ge==null?void 0:ge.content)&&Object.values(ge==null?void 0:ge.content).length>0),(ge==null?void 0:ge.buttonName)==="清空"){const Re=C.cloneDeep(ge==null?void 0:ge.content);for(const te in Re)Re[te]="";ce.value=(Ae=ce.value)==null?void 0:Ae.map(te=>({...te,value:""})),ae("filter",Re),Dl.value=!1}u.value=!1},Ie=()=>{var Ae,Re;ce.value=(Ae=ce.value)==null?void 0:Ae.map(te=>({...te,value:""}));const ge=(Re=ce.value)==null?void 0:Re.reduce((te,je)=>(te[je.label]=je.value,te),{});ae("filter",ge)};return l.onMounted(()=>{wl(R.columns)}),l.watch(()=>R.columns,()=>{wl(R.columns)},{deep:!0,immediate:!0}),(ge,Ae)=>{var re,Q,Qe,Y;const Re=l.resolveComponent("el-icon"),te=l.resolveComponent("svg-icon"),je=l.resolveComponent("el-input"),He=l.resolveComponent("el-button"),Fe=l.resolveComponent("el-upload");return q.pageLayout==="vertical"?(l.openBlock(),l.createElementBlock("div",Ao,[l.createElementVNode("div",{class:l.normalizeClass(q.compName?"table-name-wrap":""),style:l.normalizeStyle({background:(R==null?void 0:R.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((R==null?void 0:R.level)-1)*12+"px",fontWeight:600-((R==null?void 0:R.level)-1)*100>=400?600-((R==null?void 0:R.level)-1)*100:400,fontSize:17-(R==null?void 0:R.level)>=14?17-(R==null?void 0:R.level)+"px":"14px"})},l.toDisplayString(q.compName),7),l.createElementVNode("div",_o,[R!=null&&R.filterShow?(l.openBlock(),l.createElementBlock("div",Bo,[l.createVNode(sr,{title:"",width:800,placement:"bottom-start",isVisible:u.value},{reference:l.withCtx(()=>{var x,Me,X,ye;return[l.createVNode(je,{modelValue:K.value,"onUpdate:modelValue":Ae[1]||(Ae[1]=Ne=>K.value=Ne),style:{"min-width":"80px"},placeholder:Dl.value?(X=(Me=(x=q.filterValues)==null?void 0:x.filter(Ne=>Ne))==null?void 0:Me.slice(0,3))==null?void 0:X.join("/"):"搜索","prefix-icon":l.unref(C.search_default),clearable:"",onInput:ul,disabled:((ye=ce.value)==null?void 0:ye.length)===0},{suffix:l.withCtx(()=>{var Ne,Xe;return[!K.value&&((Xe=(Ne=q.filterValues)==null?void 0:Ne.filter(yl=>yl))!=null&&Xe.join("/"))?(l.openBlock(),l.createBlock(Re,{key:0,style:{cursor:"pointer"},onClick:Ie},{default:l.withCtx(()=>[l.createVNode(l.unref(C.circle_close_default))]),_:1})):l.createCommentVNode("",!0)]}),append:l.withCtx(()=>[l.createElementVNode("span",{title:"条件查询",onClick:Ae[0]||(Ae[0]=Ne=>u.value=!u.value)},[l.createVNode(te,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:l.withCtx(()=>[l.createElementVNode("div",Oo,[(l.openBlock(),l.createBlock(fl.ssForm,{rowContents:ce.value,buttonValue:xe.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:xe.value,isStartJustify:!1,onOnButtonClick:Ul},null,8,["rowContents","buttonValue"]))])]),_:1},8,["isVisible"])])):l.createCommentVNode("",!0),q.buttons&&((re=q.buttons)==null?void 0:re.length)>0?(l.openBlock(),l.createElementBlock("div",wo,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((Q=q.buttons)==null?void 0:Q.filter(x=>q.isDevMode||(x==null?void 0:x.label)!=="修改模板"),(x,Me)=>(l.openBlock(),l.createElementBlock("div",{class:"extra-contents",key:Me},[(x==null?void 0:x.type)==="upload"?(l.openBlock(),l.createBlock(Fe,{key:0,class:"upload-button-wrap","on-change":Ce,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!q.lockingPage},{default:l.withCtx(()=>[l.createVNode(He,{disabled:!!q.lockingPage,style:l.normalizeStyle({background:(x==null?void 0:x.background)??"var(--ssbutton-theme-bg)",color:(x==null?void 0:x.color)??"var(--ssbutton-theme-color)"})},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(x==null?void 0:x.label),1)]),_:2},1032,["disabled","style"])]),_:2},1032,["disabled"])):l.createCommentVNode("",!0),(x==null?void 0:x.type)==="popover"?(l.openBlock(),l.createBlock(fl._sfc_main,{key:1},{dropTitle:l.withCtx(()=>[(x==null?void 0:x.type)==="popover"?(l.openBlock(),l.createBlock(He,{key:0,disabled:!!q.lockingPage,style:l.normalizeStyle({background:(x==null?void 0:x.background)??"var(--ssbutton-theme-bg)",color:(x==null?void 0:x.color)??"var(--ssbutton-theme-color)"})},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(x==null?void 0:x.label),1)]),_:2},1032,["disabled","style"])):l.createCommentVNode("",!0)]),dropMenu:l.withCtx(()=>[l.createElementVNode("div",Uo,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(x==null?void 0:x.contents,X=>(l.openBlock(),l.createBlock(He,{key:X==null?void 0:X.label,disabled:!!q.lockingPage,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:ye=>Cl(X==null?void 0:X.label)},{default:l.withCtx(()=>{var ye,Ne;return[l.createTextVNode(l.toDisplayString(X==null?void 0:X.label),1),(ye=X==null?void 0:X.label)!=null&&ye.includes("选中")?(l.openBlock(),l.createElementBlock("span",Lo,"("+l.toDisplayString(q.selectNums)+")",1)):l.createCommentVNode("",!0),(Ne=X==null?void 0:X.label)!=null&&Ne.includes("全部")?(l.openBlock(),l.createElementBlock("span",jo,"("+l.toDisplayString(q.dataNums)+")",1)):l.createCommentVNode("",!0)]}),_:2},1032,["disabled","onClick"]))),128))])]),_:2},1024)):l.createCommentVNode("",!0),x!=null&&x.type?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(He,{key:2,id:"themeButton",disabled:!!q.lockingPage,style:l.normalizeStyle({background:(x==null?void 0:x.background)??"var(--ssbutton-theme-bg)",color:(x==null?void 0:x.color)??"var(--ssbutton-theme-color)"}),onClick:X=>Cl(x==null?void 0:x.label)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(x==null?void 0:x.label),1)]),_:2},1032,["disabled","style","onClick"]))]))),128))])):l.createCommentVNode("",!0)])])):(l.openBlock(),l.createElementBlock("div",Mo,[l.createElementVNode("div",Po,[l.createElementVNode("div",$o,[l.createVNode(sr,{title:"",width:800,placement:"bottom-start",isVisible:u.value},{reference:l.withCtx(()=>{var x,Me,X,ye;return[l.createVNode(je,{modelValue:K.value,"onUpdate:modelValue":Ae[3]||(Ae[3]=Ne=>K.value=Ne),style:{"min-width":"80px"},placeholder:Dl.value?(X=(Me=(x=q.filterValues)==null?void 0:x.filter(Ne=>Ne))==null?void 0:Me.slice(0,3))==null?void 0:X.join("/"):"搜索","prefix-icon":l.unref(C.search_default),clearable:"",onInput:ul,disabled:((ye=ce.value)==null?void 0:ye.length)===0},{suffix:l.withCtx(()=>{var Ne,Xe;return[!K.value&&((Xe=(Ne=q.filterValues)==null?void 0:Ne.filter(yl=>yl))!=null&&Xe.join("/"))?(l.openBlock(),l.createBlock(Re,{key:0,style:{cursor:"pointer"},onClick:Ie},{default:l.withCtx(()=>[l.createVNode(l.unref(C.circle_close_default))]),_:1})):l.createCommentVNode("",!0)]}),append:l.withCtx(()=>[l.createElementVNode("span",{title:"条件查询",onClick:Ae[2]||(Ae[2]=Ne=>u.value=!u.value)},[l.createVNode(te,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:l.withCtx(()=>[l.createElementVNode("div",Fo,[(l.openBlock(),l.createBlock(fl.ssForm,{rowContents:ce.value,buttonValue:xe.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:xe.value,isStartJustify:!1,onOnButtonClick:Ul},null,8,["rowContents","buttonValue"]))])]),_:1},8,["isVisible"])]),q.buttons&&((Qe=q.buttons)==null?void 0:Qe.length)>0?(l.openBlock(),l.createElementBlock("div",Ro,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((Y=q.buttons)==null?void 0:Y.filter(x=>q.isDevMode||(x==null?void 0:x.label)!=="修改模板"),(x,Me)=>(l.openBlock(),l.createElementBlock("div",{class:"extra-contents",key:Me},[(x==null?void 0:x.type)==="upload"?(l.openBlock(),l.createBlock(Fe,{key:0,class:"upload-button-wrap","on-change":Ce,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:l.withCtx(()=>[l.createVNode(He,{style:{background:"transparent",color:"#666666"}},{icon:l.withCtx(()=>{var X;return[l.createVNode(te,{name:(X=$e==null?void 0:$e.find(ye=>(ye==null?void 0:ye.label)===(x==null?void 0:x.label)))==null?void 0:X.icon},null,8,["name"])]}),default:l.withCtx(()=>[l.createTextVNode(" "+l.toDisplayString(x==null?void 0:x.label),1)]),_:2},1024)]),_:2},1024)):l.createCommentVNode("",!0),(x==null?void 0:x.type)==="popover"?(l.openBlock(),l.createBlock(fl._sfc_main,{key:1},{dropTitle:l.withCtx(()=>[(x==null?void 0:x.type)==="popover"?(l.openBlock(),l.createBlock(He,{key:0,style:{background:"transparent",color:"#666666"}},{icon:l.withCtx(()=>{var X;return[l.createVNode(te,{name:(X=$e==null?void 0:$e.find(ye=>(ye==null?void 0:ye.label)===(x==null?void 0:x.label)))==null?void 0:X.icon},null,8,["name"])]}),default:l.withCtx(()=>[l.createTextVNode(" "+l.toDisplayString(x==null?void 0:x.label),1)]),_:2},1024)):l.createCommentVNode("",!0)]),dropMenu:l.withCtx(()=>[l.createElementVNode("div",Ko,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(x==null?void 0:x.contents,X=>(l.openBlock(),l.createBlock(He,{key:X==null?void 0:X.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:ye=>Cl(X==null?void 0:X.label)},{default:l.withCtx(()=>{var ye,Ne;return[l.createTextVNode(l.toDisplayString(X==null?void 0:X.label),1),(ye=X==null?void 0:X.label)!=null&&ye.includes("选中")?(l.openBlock(),l.createElementBlock("span",zo,"("+l.toDisplayString(q.selectNums)+")",1)):l.createCommentVNode("",!0),(Ne=X==null?void 0:X.label)!=null&&Ne.includes("全部")?(l.openBlock(),l.createElementBlock("span",Vo,"("+l.toDisplayString(q.dataNums)+")",1)):l.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):l.createCommentVNode("",!0),x!=null&&x.type?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(He,{key:2,id:"themeButton",style:l.normalizeStyle({background:"transparent",color:(x==null?void 0:x.label)==="新增"?"var(--ssbutton-theme-bg)":"#666666"}),onClick:X=>Cl(x==null?void 0:x.label)},{icon:l.withCtx(()=>{var X;return[l.createVNode(te,{name:(X=$e==null?void 0:$e.find(ye=>(ye==null?void 0:ye.label)===(x==null?void 0:x.label)))==null?void 0:X.icon},null,8,["name"])]}),default:l.withCtx(()=>[l.createTextVNode(" "+l.toDisplayString(x==null?void 0:x.label),1)]),_:2},1032,["style","onClick"]))]))),128))])):l.createCommentVNode("",!0)])]))}}},Jo=Da._export_sfc(qo,[["__scopeId","data-v-03b0d8fa"]]),Wo=l.defineComponent({__name:"batch",props:{lockingPage:Boolean,buttons:{type:Array,default:()=>[]},selectTableItems:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick"],setup(q,{emit:se}){const ae=q,R=se,K=ce=>{R("buttonClick",ce)},u=ce=>{var xe;return ce!=null&&ce.includes("删除")?((xe=ae.selectTableItems)==null?void 0:xe.length)>0?"warning-active-type":"warning-type":"default-type"};return(ce,xe)=>{const $e=l.resolveComponent("el-button");return l.openBlock(),l.createElementBlock("div",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(q.buttons,Ce=>(l.openBlock(),l.createBlock($e,{key:Ce==null?void 0:Ce.label,disabled:!!q.lockingPage,class:l.normalizeClass(u(Ce==null?void 0:Ce.label)),onClick:ul=>K(Ce==null?void 0:Ce.label)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(Ce==null?void 0:Ce.label),1)]),_:2},1032,["disabled","class","onClick"]))),128))])}}}),Go=Da._export_sfc(Wo,[["__scopeId","data-v-70b12973"]]),cr=C.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(q){this.selectArray=q},setSelectString(q){this.selectString=q}}}),Io={class:"calculator-content"},Ho={class:"calculator-child"},Qo={class:"calculator-child"},Xo=l.defineComponent({__name:"calculator",setup(q){const se=l.ref(),ae=l.ref();return l.onMounted(()=>{se.value=[{type:"Upload",label:"输入",name:"input"}],ae.value=[{type:"Upload",label:"输出",name:"output"}]}),(R,K)=>(l.openBlock(),l.createElementBlock("div",Io,[l.createElementVNode("div",Ho,[l.createVNode(fl.ssForm,{rowContents:se.value,isRowFlex:!0},null,8,["rowContents"])]),l.createElementVNode("div",Qo,[l.createVNode(fl.ssForm,{rowContents:ae.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),Yo=Da._export_sfc(Xo,[["__scopeId","data-v-73db0fe7"]]),Pa=(q,se)=>{let ae=q,R=se;return Array.isArray(ae)&&(ae=ae==null?void 0:ae.map((K,u)=>{if(Array.isArray(K)){let ce={};return K=K==null?void 0:K.forEach((xe,$e)=>{var Ce;(Ce=R==null?void 0:R[$e])!=null&&Ce.prop?ce[R[$e].prop]=xe:Array.isArray(xe)&&(ce.children=Pa(xe,R))}),Object.assign(ce,{id:u})}else return K})),ae},dr=(q,se,ae)=>{let R=q,K=se;return R=R==null?void 0:R.map((u,ce)=>{var xe,$e;return!Array.isArray(u)||!((xe=K==null?void 0:K[ce])!=null&&xe.label)&&!ae||(u.unshift((($e=K==null?void 0:K[ce])==null?void 0:$e.label)??""),u.some(Ce=>Array.isArray(Ce))&&(u=u==null?void 0:u.map(Ce=>{var ul;return Array.isArray(Ce)&&(Ce=dr(Ce,(ul=K==null?void 0:K[ce])==null?void 0:ul.children,ae)),Ce}))),u}),R},Zo=(q,se,ae)=>{if(se==="")return q==null?void 0:q.filter(R=>(R==null?void 0:R.id)!==ae);{const R=se.split("-");return en(q,R,ae)}},en=(q,se,ae)=>{let R=q,K=se;return(K==null?void 0:K.length)===0?R=R==null?void 0:R.filter(u=>u.id!==ae):R=R==null?void 0:R.map(u=>(u.id.toString()===(K==null?void 0:K[0])&&(K==null||K.shift(),u=tr(u,K,ae)),u)),R},tr=(q,se,ae)=>{var u,ce;let R=q,K=se;return(K==null?void 0:K.length)===0?R.children=(u=R.children)==null?void 0:u.filter(xe=>xe.id!==ae):R.children=(ce=R.children)==null?void 0:ce.map(xe=>(xe.id.toString()===(K==null?void 0:K[0])&&(K==null||K.shift(),xe=tr(xe,K,ae)),xe)),R},ln=(q,se,ae)=>{if(se==="")return ae;{const R=se.split("-");return an(q,R,ae)}},an=(q,se,ae)=>{let R=q,K=se;return(K==null?void 0:K.length)===0?R=ae:R=R==null?void 0:R.map(u=>(u.id.toString()===(K==null?void 0:K[0])&&(K==null||K.shift(),u=pr(u,K,ae)),u)),R},pr=(q,se,ae)=>{var u;let R=q,K=se;return(K==null?void 0:K.length)===0?R.children=ae:R.children=(u=R.children)==null?void 0:u.map(ce=>(ce.id.toString()===(K==null?void 0:K[0])&&(K==null||K.shift(),ce=pr(ce,K,ae)),ce)),R},fr=C.defineStore("formComp",{state:()=>({objUrl:[],blobUrls:[]}),actions:{setObjUrl(q){this.objUrl=q},setBlobUrls(q){this.blobUrls=q}}}),Ca=async(q,se)=>{var ce,xe,$e,Ce,ul,Cl,wl,Dl,Ul,Ie,ge,Ae,Re,te,je,He,Fe;let ae=(xe=(ce=C.cloneDeep(q))==null?void 0:ce.optionUrl)==null?void 0:xe.menuSelect,R=[];ae==null||ae.forEach(re=>{});let K="",u=await de.menuToParent(ae);if(u==null||u.forEach(re=>{var Q,Qe,Y,x;(re==null?void 0:re.name)===(((x=(Y=(Qe=(Q=C.cloneDeep(q))==null?void 0:Q.optionUrl)==null?void 0:Qe.groupSelect)==null?void 0:Y[0])==null?void 0:x.replaceAll("'",""))??"")&&(K=re==null?void 0:re.id)}),se){K=se;const re=await C.getInsofDataApi({id:K}),Q=(Cl=(ul=(Ce=($e=re==null?void 0:re.data)==null?void 0:$e.result)==null?void 0:Ce[0])==null?void 0:ul.key)==null?void 0:Cl.pageKey;u=await de.getItemData(Q,sessionStorage.getItem("systemKey"),"")}if(K!==""){let re;se?re=(wl=u==null?void 0:u.find(Y=>(Y==null?void 0:Y.id)===se))==null?void 0:wl.compData:re=(Dl=u==null?void 0:u.find(Y=>{var x,Me,X,ye;return(Y==null?void 0:Y.name)===(((Me=(x=q==null?void 0:q.groupSelect)==null?void 0:x.split(":"))==null?void 0:Me[0])||((ye=(X=q==null?void 0:q.optionUrl)==null?void 0:X.groupSelect)==null?void 0:ye[0]))}))==null?void 0:Dl.compData;let Q=(Ie=(Ul=re==null?void 0:re.find(Y=>(Y==null?void 0:Y.key)==="header"))==null?void 0:Ul.contents)==null?void 0:Ie.map(Y=>Y==null?void 0:Y.label);(Ae=(ge=re==null?void 0:re.find(Y=>(Y==null?void 0:Y.key)==="header"))==null?void 0:ge.contents)!=null&&Ae.every(Y=>Array.isArray(Y))&&(Q=(je=de.getColumnChild((te=(Re=re==null?void 0:re.find(Y=>(Y==null?void 0:Y.key)==="header"))==null?void 0:Re.contents)==null?void 0:te[0]))==null?void 0:je.map(Y=>Y==null?void 0:Y.prop));let Qe=(Fe=(He=re==null?void 0:re.find(Y=>(Y==null?void 0:Y.key)==="tableContents"))==null?void 0:He.contents)==null?void 0:Fe.map(Y=>{if(Array.isArray(Y))Y=Y==null?void 0:Y.filter(x=>!(x!=null&&x.id));else{let x={};for(let Me in Y)Me!=="id"&&(x[Me]=Y==null?void 0:Y[Me]);Y=x}return Y});Qe==null||Qe.forEach(Y=>{Array.isArray(Y)?R.push(de.getValueToObjectValue(Y,Q)):R.push(Y)})}return R},rn={class:"table-content"},on={class:"menu-config-wrap"},nn=["onClick"],un={key:0,class:"viewport-wrap"},sn=["onClick"],cn={title:"选择显示列信息"},dn={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},tn=["title"],pn={class:"col-operate-wrap"},fn={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},hn={key:0,style:{display:"flex","justify-content":"center","align-items":"center"}},vn={class:"pop-view"},yn={class:"pop-wrapper"},gn={class:"file-list-pop"},bn=["title","onClick"],kn=["onClick"],mn=["onClick"],Sn={class:"form-content"},xn={key:0,class:"dialog-footer"},Cn={class:"dialog-footer"},Dn={style:{display:"flex","justify-content":"space-between",width:"100%","align-items":"center"}},Tn=["title"],Nn={class:"icon",style:{display:"flex",gap:"8px"}},En={class:"dialog-footer"},An={class:"form-content"},_n={__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(q,{emit:se}){var nr;const ae=l.ref([]),R=fr(C.pinia),K=l.ref(null),u=q,ce=l.ref(u==null?void 0:u.allowSelect),xe=l.ref((nr=u==null?void 0:u.config)==null?void 0:nr.showIndex),$e=l.ref(),Ce=l.ref(!0),ul=l.ref(!1),Cl=l.ref([{label:"排序",value:"sortable",checked:!1},{label:"筛选",value:"filterable",checked:!1},{label:"合计",value:"showSummary",checked:!1},{label:"编辑",value:"operable",checked:!1}]),wl=de.useOriginalState(C.pinia);let Dl="$R";const{originalPath:Ul}=C.storeToRefs(wl),Ie=Ul.value,ge=l.ref(!1),Ae=l.ref(!1),Re=l.ref(!1),te=l.ref(!0),je=l.ref([]),He=l.reactive({column:{},status:!1,text:"合计"}),Fe=l.reactive({currentPage:1,pageSize:10,total:0,pageSizes:[5,10,20,50,100]}),re=se,Q=l.ref([]),Qe=l.ref([]),Y=l.reactive({prop:"",order:null}),x=l.ref([]),Me=l.ref(!1),X=l.ref(!1),ye=l.ref(null),{isUseBackdrop:Ne,initTrackFileType:Xe,getFileExtension:yl,setData:Ta,getFileInfo:$a,getFilesInfo:hr}=ir.useThreeSystem(),ql=l.ref([]),Ll=l.ref(!1),Pl=l.ref(),Ge=xa.useMenuState(),{importLoading:On,activeMenuPath:_e,contentLoading:wn,linkMenuInfo:vr}=C.storeToRefs(Ge),yr=de.useTableComp(C.pinia),ze=xa.useModelComp(C.pinia),{extraContents:we,cacheUpdatingData:Jl,tableViewContents:Wl,tableLoading:Un,pageMapState:$l,lockingPage:ca}=C.storeToRefs(ze),oe=l.ref([]),da=l.ref([]),ta=l.ref(new Map);l.ref(!1);const Tl=l.ref("");l.ref();const pa=l.ref(!0),Fl=l.ref(0),Fa=l.ref(!0),sl=l.ref(""),Nl=l.ref(!1),gr=l.ref({label:"查看三维模型"}),fa=l.ref(!1),Na=l.ref(),hl=l.ref([]),Ol=l.ref([]),ha=l.ref(!1),Gl=l.ref([]),_l=l.ref([]),El=l.ref([]),be=l.ref([]),va=l.ref(!1),Il=l.ref(!1),Bl=l.ref([]),br=l.ref(null),Ea=l.ref(!1),Aa=l.ref([]),Ra=l.ref(""),_a=l.ref(""),Hl=sa.createOCRService(),ya=l.computed(()=>Hl.getConfig()),gl=l.ref(),ll=l.ref(),kr=cr(C.pinia),ga=l.ref(),Ba=l.ref(0),mr=de.useUnit(C.pinia),{selectIndex:Sr,selectMenu:Ql,selectTitle:Ln}=C.storeToRefs(mr),{selectString:jl}=C.storeToRefs(kr),xr=C.useLoginState(C.pinia),{loginUserInfo:Rl}=C.storeToRefs(xr),Cr=l.ref(720),bl=l.ref(!1),ba=l.ref(!1),kl=l.ref([]),ml=l.ref(),Xl=l.ref(!0),Ka=l.ref(!0),Ml=l.ref([]),Dr=l.inject("contentRef");l.provide("contentRef",Dr),l.watch(()=>{var e;return(e=oe.value)==null?void 0:e.length},e=>{Fe.total=e}),l.watch(()=>Wl.value,async()=>{var s,d,i,t,y,A,S,T,P,z,F,p,_,j,U,b,N,k;if(((s=Wl.value)==null?void 0:s.length)===0||!((d=u==null?void 0:u.itemData)!=null&&d.find(E=>(E==null?void 0:E.key)==="columnPath"))||!((i=u==null?void 0:u.itemData)!=null&&i.find(E=>(E==null?void 0:E.key)==="pageColumn")))return;let e=(P=(T=(S=(A=(y=(t=u==null?void 0:u.itemData)==null?void 0:t.find(E=>(E==null?void 0:E.key)==="pageColumn"))==null?void 0:y.contents)==null?void 0:A.split("["))==null?void 0:S[1])==null?void 0:T.split("]"))==null?void 0:P[0],a=((_=(p=(F=(z=u==null?void 0:u.itemData)==null?void 0:z.find(E=>(E==null?void 0:E.key)==="pageColumn"))==null?void 0:F.contents)==null?void 0:p.split("["))==null?void 0:_[0])+((U=(j=Wl.value)==null?void 0:j.find(E=>(E==null?void 0:E.key)===e))==null?void 0:U.value),o=((N=(b=u==null?void 0:u.itemData)==null?void 0:b.find(E=>(E==null?void 0:E.key)==="pageGroup"))==null?void 0:N.contents)??"",r=await de.getItemData(a,sessionStorage.getItem("systemKey"),""),n=(k=r==null?void 0:r.find(E=>(E==null?void 0:E.name)===(o===""?u==null?void 0:u.compName:o)))==null?void 0:k.compData;rr(n,u.allMapContents)},{deep:!0});const Tr=async(e,a)=>{var o,r,n,s,d;try{const i=await C.getInsofDataApi({id:(u==null?void 0:u.parentTableId)||(u==null?void 0:u.index)});let t;((o=i==null?void 0:i.data)==null?void 0:o.code)===200&&(t=((n=(r=i==null?void 0:i.data)==null?void 0:r.result)==null?void 0:n[0])||null);const y={type:"data",pageKey:u!=null&&u.parentTableId?(s=t==null?void 0:t.key)==null?void 0:s.pageKey:_e.value,tableId:(u==null?void 0:u.parentTableId)||(u==null?void 0:u.index),systemKey:sessionStorage.getItem("systemKey")},A=a==null?void 0:a.map(P=>{const z=Object.keys(P),F={};return z.forEach((p,_)=>{F[e[_]]=P[p]}),F}),S=A==null?void 0:A.map(P=>({key:y,value:{tableData:P}})),T=await C.batchAddInsofDataApi({dataList:S});((d=T==null?void 0:T.data)==null?void 0:d.code)===200?(ze.setRefreshCurStructure(!0),C.ElMessage.success("导入数据成功")):C.ElMessage.error("导入数据响应失败")}catch(i){throw C.ElMessage.error("导入数据处理失败"),new Error(i)}},Nr=async e=>{var s,d,i,t,y,A,S;let a=Qe.value;a!=null&&a.find(T=>(e==null?void 0:e.key)===(T==null?void 0:T.key))&&(a=a==null?void 0:a.filter(T=>(e==null?void 0:e.key)!==(T==null?void 0:T.key))),a.push({key:e==null?void 0:e.key,value:[(d=e==null?void 0:e.value)==null?void 0:d[((s=e==null?void 0:e.value)==null?void 0:s.length)-1]]});let o=be.value;o=o==null?void 0:o.map(T=>{var P,z;return(T==null?void 0:T.type)==="Select"&&(e==null?void 0:e.key)===(T==null?void 0:T.prop)&&Array.isArray(T.value)&&(P=T.value)!=null&&P.every(F=>typeof F=="string")&&(T.selectValue=(z=a==null?void 0:a.find(F=>(F==null?void 0:F.key)===(T==null?void 0:T.prop)))==null?void 0:z.value),T});let r=(t=(i=o==null?void 0:o.find(T=>(T==null?void 0:T.prop)===(e==null?void 0:e.key)))==null?void 0:i.optionUrl)==null?void 0:t.menuId,n=o==null?void 0:o.find(T=>(T==null?void 0:T.prop)===(e==null?void 0:e.key));if(r){let T=await Ca(n==null?void 0:n.optionUrl,r),P,z=je.value,F=(S=(A=(y=be.value)==null?void 0:y.find(p=>{var _;return(_=n==null?void 0:n.optionUrl)==null?void 0:_.menuId}))==null?void 0:A.selectValue)==null?void 0:S[0];if(T==null||T.forEach(p=>{var _,j,U,b,N,k,E,v,I,L;if(r){let G=(j=(_=be.value)==null?void 0:_.find(B=>{var ie,$;return((ie=n==null?void 0:n.optionUrl)==null?void 0:ie.menuId)===(($=B==null?void 0:B.optionUrl)==null?void 0:$.menuId)}))==null?void 0:j.prop,c=(b=(U=o==null?void 0:o.find(B=>(B==null?void 0:B.prop)===G))==null?void 0:U.selectValue)==null?void 0:b[0];G!=null&&G.includes("·")&&(G=(N=G==null?void 0:G.split("·"))==null?void 0:N[0],c=(I=(v=(E=e==null?void 0:e.value)==null?void 0:E[((k=e==null?void 0:e.value)==null?void 0:k.length)-1])==null?void 0:v.split(" "))==null?void 0:I[0]),z!=null&&z.find(B=>(B==null?void 0:B.value)===F)?P=(L=z==null?void 0:z.find(B=>(B==null?void 0:B.value)===F))==null?void 0:L.objectValue:p[G]===c&&(P=p)}}),P){let p=o;p=p==null?void 0:p.map(_=>{var j,U,b,N,k,E;return r&&(P!=null&&P[_==null?void 0:_.prop])&&sl.value==="新增"&&(_==null?void 0:_.prop)!==(n==null?void 0:n.prop)?_.value=(P==null?void 0:P[_==null?void 0:_.prop])||(P==null?void 0:P[(N=(b=(U=(j=_==null?void 0:_.optionUrl)==null?void 0:j.groupSelect)==null?void 0:U[1])==null?void 0:b.replaceAll("[",""))==null?void 0:N.replaceAll("]","")]):_.value=(E=(k=be.value)==null?void 0:k.find(v=>(v==null?void 0:v.prop)===(_==null?void 0:_.prop)))==null?void 0:E.value,_}),be.value=p}}Qe.value=a},Er=async e=>{var a,o,r,n,s;if((a=e==null?void 0:e.toString())!=null&&a.includes(".txt")||(o=e==null?void 0:e.toString())!=null&&o.includes(".cpt")||(r=e==null?void 0:e.toString())!=null&&r.includes(".cyd")){const d=await C.axios.get(e,{responseType:"blob",headers:{"Content-Type":"application/json"}}),i=new Blob([d.data],{type:"application/octet-stream;charset=UTF-8"});let t=URL.createObjectURL(i);Pl.value=[{name:(s=e==null?void 0:e.split("/"))==null?void 0:s[((n=e==null?void 0:e.split("/"))==null?void 0:n.length)-1],blobUrl:t}],Ll.value=!0}};l.onBeforeUnmount(()=>{Ka.value=!1;let e=Ba.value;Ba.value=e+1});const za=l.computed(()=>{var r,n;const e=(Fe.currentPage-1)*Fe.pageSize,a=e+Fe.pageSize,o=(r=Q.value)==null?void 0:r.find(s=>{var d;return(s==null?void 0:s.sortable)&&((d=s==null?void 0:s.label)==null?void 0:d.includes("时间"))});return o&&(Y.order="descending",Y.prop=o==null?void 0:o.prop),re("getSliceContLength",Fe),(n=oe.value)==null?void 0:n.slice(e,a)}),Ar=e=>{Fe.currentPage=e,re("getSliceContLength",Fe)},_r=e=>{var a;Fe.pageSize=e,e*Fe.currentPage>((a=oe.value)==null?void 0:a.length)&&(Fe.currentPage=1,Fe.pageSize=10,C.ElMessage.warning("分页无效,返回第一页")),re("getSliceContLength",Fe)},Br=(e,a)=>{var d,i;const o=(i=(d=Q.value)==null?void 0:d.map(t=>t==null?void 0:t.prop))==null?void 0:i.filter(t=>t!=="operate");let r;const n=(e==null?void 0:e.length)===(o==null?void 0:o.length);if(e!=null&&e.includes("序号"))return C.ElMessage.error("导入的数据不需要包含序号列");if(r=n?e:e.slice(0,o==null?void 0:o.length),!(r==null?void 0:r.every(t=>o==null?void 0:o.find(y=>t===y))))return C.ElMessage.error("导入的数据表头不匹配");Tr(r,a)},Or=(e,a)=>{var o;ze.setRefreshCurStructure(!1),((o=Q.value)==null?void 0:o.length)===0||Br(e,a)},wr=(e,a,o,r)=>{const n=[],s=[],d=y=>Object.keys(y).length;for(const y in e)if(e[y]!==void 0){const A=e[y],S=[];for(const[T,P]of Object.entries(A))S.push(P),s.length<d(A)&&s.push(T);n.push(S)}n.unshift(s);const i=de.utils.aoa_to_sheet(n),t=de.utils.book_new();de.utils.book_append_sheet(t,i,r),de.writeFileSync(t,`${a}.xlsx`),kl.value=[]},ka=async(e,a,o,r=!1,n)=>{var s,d,i,t,y,A,S,T;try{ze.setRefreshCurStructure(!1);const P=await C.getInsofDataApi({id:u==null?void 0:u.index});if(((s=P==null?void 0:P.data)==null?void 0:s.code)===200){let z=(y=(t=(i=(d=P==null?void 0:P.data)==null?void 0:d.result)==null?void 0:i[0])==null?void 0:t.value)==null?void 0:y.pageData;r?z={...z,compData:(S=z==null?void 0:z.compData)==null?void 0:S.map(p=>{var _;return(p==null?void 0:p.key)==="header"?{...p,contents:(_=p==null?void 0:p.contents)==null?void 0:_.map(j=>({...j,[e]:o}))}:p})}:z={...z,compData:(A=z==null?void 0:z.compData)==null?void 0:A.map(p=>{var _,j;return(p==null?void 0:p.key)==="header"?{...p,contents:(_=p==null?void 0:p.contents)==null?void 0:_.map(U=>(U==null?void 0:U.prop)===(a==null?void 0:a.prop)?{...U,[e]:o}:U)}:(p==null?void 0:p.key)==="tableToForm"&&n?{...p,contents:(j=p==null?void 0:p.contents)==null?void 0:j.map(U=>(U==null?void 0:U.prop)===(a==null?void 0:a.prop)?{...U,[n]:o}:U)}:p})};const F=await C.updateInsofDataApi({id:u==null?void 0:u.index,value:{pageData:z}});((T=F==null?void 0:F.data)==null?void 0:T.code)===200?(C.ElMessage.success("编辑成功"),ze.setRefreshCurStructure(!0)):C.ElMessage.error("编辑响应失败")}}catch(P){C.ElMessage.error(P)}},Ur=async(e,a)=>{await ka("label",a,e)},Lr=async(e,a)=>{await ka("columnType",a,e,!1,"type")},jr=()=>{Jl.value?bl.value=!1:or()},Mr=e=>{kl.value=e},Pr=(e,a)=>{ml.value===a?Xl.value=!1:Xl.value=!0,ml.value=a==null?void 0:a.changeProp},$r=e=>{if(!e)return;const{item:a,value:o}=e,r=be.value.find(n=>n.prop==a.prop);r&&r.contents.push({label:o,value:o})},Yl=l.computed(()=>{var o,r,n;const e=(o=Q.value)==null?void 0:o.some(s=>s==null?void 0:s.filterable);return document.documentElement.style.setProperty("--ssTable-header-filter-display",e?"inline-block":"none"),(n=(r=Q.value)==null?void 0:r.filter(s=>(s==null?void 0:s.label)!=="操作"))==null?void 0:n.map(s=>({...s,filterable:!!(s!=null&&s.filterable),showSummary:!!(s!=null&&s.showSummary),operable:!!(s!=null&&s.operable)}))}),Fr=async(e,a,o)=>{const r=C.cloneDeep(Q.value);await l.nextTick(),Q.value=r==null?void 0:r.map(n=>(o==null?void 0:o.label)===(n==null?void 0:n.label)?{...n,[a]:e}:n),await ka(a,o,e)},Oa=async(e,a)=>{await ka(a,null,e,!0)},Rr=()=>{Nl.value=!1},Kr=e=>{re("clickTrigger",e)},Va=async e=>{var s,d,i,t,y,A,S,T,P,z,F,p,_,j,U;const a=e==null?void 0:e.row,o=e==null?void 0:e.rowData,r=e==null?void 0:e.suffix;if((s=a==null?void 0:a.toString())!=null&&s.includes(".urdf")||e!=null&&e.isUrdf||r!=null&&r.includes(".urdf")){if(a.includes(",")){C.ElMessage.error("当前版本仅允许单个urdf预览!");return}if(Ne(a)){const N={files:[$a(a)],data:{}};Ta(N);return}Gl.value=[{url:a,extension:yl(a)}],X.value=!0,ye.value={data:C.cloneDeep(o)},Me.value=!0;return}let n=[];if((d=a==null?void 0:a.toString())!=null&&d.includes(".stl")||(i=a==null?void 0:a.toString())!=null&&i.includes(".STL")||(t=a==null?void 0:a.toString())!=null&&t.includes(".obj")||(y=a==null?void 0:a.toString())!=null&&y.includes(".mtl")){const b=(A=a==null?void 0:a.toString())==null?void 0:A.split(","),N=hr(b),k=N==null?void 0:N[0];if(Ne(k==null?void 0:k.extension)){Ta({files:N,data:{}});return}Gl.value=N,X.value=!1,Me.value=!0;return}if((S=a==null?void 0:a.toString())!=null&&S.includes(".stl")||(T=a==null?void 0:a.toString())!=null&&T.includes(".STL")||(P=a==null?void 0:a.toString())!=null&&P.includes(".obj")||(z=a==null?void 0:a.toString())!=null&&z.includes(".mtl")||r!=null&&r.includes(".stl")||r!=null&&r.includes(".STL")||r!=null&&r.includes(".obj")||r!=null&&r.includes(".mtl")){let b,N=[],k={};if(Array.isArray(a)?b=a:b=a==null?void 0:a.split(","),b==null||b.forEach(E=>{E.includes(".mtl")?N.push(E):k.blob=k.blob?k.blob+","+E:E}),(N==null?void 0:N.length)>0&&(k.mtlBlobs=N),r&&(k.suffix=r),(p=(F=Object.values(k))==null?void 0:F[0])!=null&&p.includes("http:"))n.push(k);else{const E=new Blob([k.blob],{type:"application/octet-stream;charset=UTF-8"});let v=URL.createObjectURL(E),I="";(_=a==null?void 0:a.split("/"))==null||_.forEach((L,G)=>{var c;G===((c=a==null?void 0:a.split("/"))==null?void 0:c.length)-1&&(I=L)}),(j=k.blob)!=null&&j.includes(".stl")&&(I=(I==null?void 0:I.replaceAll(">",""))+".urdf"),Pl.value=[{name:I,blobUrl:v}],Ll.value=!0}}else{const b=await C.axios.get(a,{responseType:"blob",headers:{"Content-Type":"application/json"}}),N=new Blob([b.data],{type:"application/octet-stream;charset=UTF-8"});let k=URL.createObjectURL(N),E="";if((U=a==null?void 0:a.split("/"))==null||U.forEach((v,I)=>{var L;I===((L=a==null?void 0:a.split("/"))==null?void 0:L.length)-1&&(E=v)}),Ne(E)){const v=Xe(E),I=$a(a);Ta({files:[I],data:{trackFileType:v}});return}Pl.value=[{name:E,blobUrl:k}],Ll.value=!0}(n==null?void 0:n.length)>0&&R.setBlobUrls(n)},ma=e=>{var r,n,s,d;if(e!=null&&e.downloadUrl)return e==null?void 0:e.name;const a=(d=(r=e==null?void 0:e.url)==null?void 0:r.split("."))==null?void 0:d[((s=(n=e==null?void 0:e.url)==null?void 0:n.split("."))==null?void 0:s.length)-1];return(e==null?void 0:e.name)+"."+a},zr=async e=>{let a=null,o=null;if(e!=null&&e.downloadUrl){const n=await wa(),s=fl.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),d=await C.axios.post(e==null?void 0:e.url,null,{responseType:"blob",headers:{Authorization:n,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}).finally(()=>{s.close()}),i=new Blob([d.data],{type:"application/octet-stream;charset=UTF-8"});a=URL.createObjectURL(i),o=e==null?void 0:e.name}else{const n=await de.downloadAvatarApi({url:e==null?void 0:e.url});!e.url.toUpperCase().includes(".OBJ")&&!e.url.toUpperCase().includes(".STL")&&!e.url.toUpperCase().includes(".MTL")&&!e.url.toUpperCase().includes(".URDF")?(a=URL.createObjectURL(n.data),o=ma(e)):a=e==null?void 0:e.url}if(Ne(a)){const n={row:`${a}`,suffix:yl(o)};Va(n);return}const r={name:o,blobUrl:a};Pl.value=[r],Ll.value=!0},Vr=async e=>{let a=null,o=null;if(e!=null&&e.downloadUrl){const s=await wa(),d=await C.axios.post(e==null?void 0:e.url,null,{responseType:"blob",headers:{Authorization:s,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}),i=new Blob([d.data],{type:"application/octet-stream;charset=UTF-8"});a=URL.createObjectURL(i),o=e==null?void 0:e.name}else{const s=await de.downloadAvatarApi({url:e==null?void 0:e.url});a=URL.createObjectURL(s.data),o=ma(e)}const r={name:o,blobUrl:a},n=document.createElement("a");n.href=r.blobUrl,n.download=r.name,n.style.display="none",document.body.appendChild(n),n.click(),setTimeout(()=>{document.body.removeChild(n)},100)},qr=(e,a)=>{var o;if(Object.values(a).length!==0)return Object.values(a).find(r=>{var n,s,d;return((n=r==null?void 0:r.toString())==null?void 0:n.includes(".txt"))||((s=r==null?void 0:r.toString())==null?void 0:s.includes(".cpt"))||((d=r==null?void 0:r.toString())==null?void 0:d.includes(".obj"))})?[...e,gr.value]:(o=u==null?void 0:u.config)!=null&&o.allowMove?[...e,{label:"迁移"}]:e},Jr=(e,a={})=>[...e==null?void 0:e.values()].filter(o=>Object.keys(a).every(r=>{var d;const n=o[r],s=(d=a[r])==null?void 0:d.toLowerCase();return s&&n&&typeof n=="string"?n.toLowerCase().includes(s):!0})),Wr=()=>{ul.value=!0},qa=l.ref([]),Gr=async(e,a,o=!1)=>{var r;if(e){if(ze.setTableLoading(!0),qa.value=Object.values(e),e&&((r=Object.values(e))!=null&&r.every(n=>!n)))return oe.value=da.value;if(o){oe.value=[...ta.value.values()].filter(n=>Object.values(n).some(s=>typeof s=="string"?s==null?void 0:s.toLowerCase().includes(a==null?void 0:a.toLowerCase()):!1));return}oe.value=Jr(ta.value,e),ze.setTableLoading(!1)}},Ir=async e=>{},Ja=async(e,a,o,r)=>{var n,s,d,i,t,y,A,S,T,P,z,F,p,_,j,U,b,N,k,E;if(re("clickMainKey",o),(r==null?void 0:r.isExistChild)===!0){let v=(n=r==null?void 0:r.columnType)==null?void 0:n.prop,I=r==null?void 0:r.data;if(Ml.value=await de.getItemData(_e.value,sessionStorage.getItem("systemKey"),""),!Ml.value){let G=(i=(d=(s=_e.value)==null?void 0:s.split("/"))==null?void 0:d.filter((c,B)=>{var ie,$;return B!==(($=(ie=_e.value)==null?void 0:ie.split("/"))==null?void 0:$.length)-1}))==null?void 0:i.join("/");Ml.value=await de.getItemData(G,sessionStorage.getItem("systemKey"),"")}let L=(t=Ml.value)==null?void 0:t.filter(G=>(G==null?void 0:G.name)===v);Ml.value=L==null?void 0:L.map(G=>{var c;return G.compData=(c=G.compData)==null?void 0:c.map(B=>{var ie,$;return(B==null?void 0:B.key)==="tableContents"&&(ie=B==null?void 0:B.contents)!=null&&ie.every(m=>m==null?void 0:m.find(w=>w==null?void 0:w.id))&&(B.contents=($=B==null?void 0:B.contents)==null?void 0:$.filter(m=>(m==null?void 0:m[1])===I)),B}),G}),re("routeUrl",Ml.value,{isEdit:!0,routerUrl:_e.value});return}if((r==null?void 0:r.data)==="查看"&&(e!=null&&e.every(v=>(v==null?void 0:v.url)&&(v==null?void 0:v.name)))){let v=C.cloneDeep(e);v=await((y=C.cloneDeep(v))==null?void 0:y.map(async L=>{var B,ie,$,m;const G=await de.downloadAvatarApi({url:L==null?void 0:L.url});let c=URL.createObjectURL(G.data);return{name:(L==null?void 0:L.name)+"."+((m=(B=L==null?void 0:L.url)==null?void 0:B.split("."))==null?void 0:m[(($=(ie=L==null?void 0:L.url)==null?void 0:ie.split("."))==null?void 0:$.length)-1]),blobUrl:c}}));let I=await Promise.all(v);Pl.value=I,Ll.value=!0}if(C.cloneDeep(Q.value),(r==null?void 0:r.isMainKey)===!0){Ge.setActiveMenuPath(void 0),ze.setRouteToChildPath(void 0),ze.setFixMenuStatus(!0);let v=(S=(A=u.itemData)==null?void 0:A.find(L=>(L==null?void 0:L.key)==="contentTableId"))==null?void 0:S.contents,I=(P=(T=u.itemData)==null?void 0:T.find(L=>(L==null?void 0:L.key)==="relatedFilter"))==null?void 0:P.index;if(I!==0){let L=(F=(z=Q.value)==null?void 0:z[I])==null?void 0:F.prop;if((o==null?void 0:o[L])===(r==null?void 0:r.data)){let G=await C.getInsofDataApi({id:v}),c=(U=(j=(_=(p=G==null?void 0:G.data)==null?void 0:p.result)==null?void 0:_[0])==null?void 0:j.key)==null?void 0:U.pageKey;Ge.setActiveMenuPath(c+"/"+(r==null?void 0:r.data))}else{let G=await C.getInsofDataApi({key:{pageKey:C.cloneDeep(_e).value+"/"+(r==null?void 0:r.data),systemKey:sessionStorage.getItem("systemKey")}});((N=(b=G==null?void 0:G.data)==null?void 0:b.result)==null?void 0:N.length)>0&&Ge.setActiveMenuPath(C.cloneDeep(_e).value+"/"+(r==null?void 0:r.data))}}else{let L=await C.getInsofDataApi({key:{pageKey:C.cloneDeep(_e).value+"/"+(r==null?void 0:r.data),systemKey:sessionStorage.getItem("systemKey")}});((E=(k=L==null?void 0:L.data)==null?void 0:k.result)==null?void 0:E.length)>0&&Ge.setActiveMenuPath(C.cloneDeep(_e).value+"/"+(r==null?void 0:r.data))}}},Hr=()=>{Ll.value=!1},Qr=e=>{re("rowClick",e)};l.watch(()=>u.changedContent,()=>{var o,r;if(!u.changedContent)return;let e=(o=oe.value)==null?void 0:o.map(n=>{var s;return n.id===((s=u.changedContent)==null?void 0:s.id)&&(n={...u.changedContent,id:u.changedContent.newId?u.changedContent.newId:u.changedContent.id},delete n.newId),n});const a=(r=u.itemData)==null?void 0:r.map(n=>((n==null?void 0:n.key)==="tableContents"&&(n.contents=e),n));oe.value=e,re("contentChange",{contents:a,index:u.index}),re("change",{content:e,index:u==null?void 0:u.index,buttonName:"",id:u==null?void 0:u.index})},{deep:!0,immediate:!0});const Xr=()=>{},Yr=async()=>{const e=_e.value,a=sessionStorage.getItem("systemKey"),o=await de.getItemData(e,a,""),r=(o==null?void 0:o.find(i=>(i==null?void 0:i.name)==="方法明细"))||(o==null?void 0:o[0]),n=(r==null?void 0:r.compData)||[],s=n==null?void 0:n.find(i=>{const t=i==null?void 0:i.key;return t==="formContent"||t==="tableContents"});return s==null?void 0:s.contents},wa=async()=>`Bearer ${C.Local.get("access-token")}`,Zr=async(e,{token:a,inputData:o}={})=>await C.axios.post(e,o,{headers:{Authorization:a}}).catch(n=>(Ge.setImportLoading(!1),Promise.reject(n))),eo=e=>{var r;let a={};const o=[];return a.form={},(r=C.cloneDeep(e))==null||r.forEach((n,s)=>{var d,i,t,y,A,S,T,P,z,F,p,_,j,U;if((n==null?void 0:n.comp)==="Table"){(i=(d=n==null?void 0:n.compData)==null?void 0:d.find(E=>(E==null?void 0:E.key)==="header"))==null||i.contents;let b=(A=(y=(t=n==null?void 0:n.compData)==null?void 0:t.find(E=>(E==null?void 0:E.key)==="tableContents"))==null?void 0:y.contents)==null?void 0:A.map(E=>E.slice(1));(F=(z=(P=(T=(S=n==null?void 0:n.compData)==null?void 0:S.find(E=>(E==null?void 0:E.key)==="header"))==null?void 0:T.contents)==null?void 0:P[0])==null?void 0:z[0])==null||F.label;let N=(_=(p=n==null?void 0:n.compData)==null?void 0:p.find(E=>(E==null?void 0:E.key)==="header"))==null?void 0:_.contents,k=[];b==null||b.forEach(E=>{let v=[];E==null||E.forEach((I,L)=>{var c;let G={};((c=N[L])==null?void 0:c.label)!=="操作"&&(G[N[L].label]=I,v.push(G))}),k.push(v)}),a[n.name]=k}else{const b=(U=(j=n.compData)==null?void 0:j.find(N=>(N==null?void 0:N.key)==="formContent"))==null?void 0:U.contents;b==null||b.forEach(N=>{var k,E;if(N.prop!==""){let v=N==null?void 0:N.value;Array.isArray(v)?v=((k=v==null?void 0:v[0])==null?void 0:k.oldUrl)||"http://222.92.178.198:62001/"+((E=v==null?void 0:v[0])==null?void 0:E.url):v=v.toString(),N={key:(N==null?void 0:N.prop)??(N==null?void 0:N.label),value:v},o.push(N)}})}}),a.form=de.getFormContents(o),a},lo=e=>{const a=[],o=r=>{r&&typeof r=="object"&&!Array.isArray(r)?Object.values(r).forEach(o):a.push(r)};return o(e),a},ao=async(e,a,o)=>{var N,k,E,v,I,L,G,c,B,ie,$;Ge.setImportLoading(!0),ze.setFreshContent(!1);let r=await Yr().catch(m=>(Ge.setImportLoading(!1),Promise.reject(m)));r=r==null?void 0:r.filter(m=>{var w;return((w=m==null?void 0:m.find(le=>le==null?void 0:le.id))==null?void 0:w.id)===(a==null?void 0:a.id)});let n=de.getEqualChild([(N=Q.value)==null?void 0:N.filter(m=>(m==null?void 0:m.label)!=="操作")]);const s=(E=(k=de.tableToForm(r,n))==null?void 0:k[0])==null?void 0:E.find(m=>{const w=m==null?void 0:m.key;return w==="Interface"||w==="方法体"}),d=s==null?void 0:s.value;if(!d){console.log("未搜索到isMain, 缺少算法执行接口"),Ge.setImportLoading(!1);return}const i=Q.value?de.getEqualChild([Q.value]):[],t=i.find(m=>{const w=m==null?void 0:m.prop;return w==="Input1"||w==="输入数据.输入1"||w==="样本输入数据"}),y=t==null?void 0:t.prop;let A=a==null?void 0:a[y];const S=await wa().catch(m=>(Ge.setImportLoading(!1),Promise.reject(m)));let T=!0,P="";(v=Q.value)==null||v.forEach(m=>{(m==null?void 0:m.prop)===y&&(T=!!(m!=null&&m.childPath),P=m==null?void 0:m.childPath)});let z="";if(T){let m=(L=(I=Q.value)==null?void 0:I.find(pe=>(pe==null?void 0:pe.isMainKey)===!0))==null?void 0:L.prop;z=a==null?void 0:a[m];let w=P==null?void 0:P.split(Ie),le=[];w==null||w.forEach((pe,ke)=>{(w==null?void 0:w.length)-1===ke&&le.push(z),le.push(pe)}),le=le==null?void 0:le[0];let ee=await de.getItemData(le,sessionStorage.getItem("systemKey"),""),Z=ee==null?void 0:ee.filter(pe=>(pe==null?void 0:pe.name)===y);Z=Z==null?void 0:Z.map(pe=>{var ke;return pe.compData=(ke=pe==null?void 0:pe.compData)==null?void 0:ke.map(J=>{var ne;return(J==null?void 0:J.key)==="tableContents"&&(J.contents=(ne=J==null?void 0:J.contents)==null?void 0:ne.filter(Ue=>(Ue==null?void 0:Ue[1])===(a==null?void 0:a[y]))),J}),pe}),(!Z||(Z==null?void 0:Z.length)===0)&&(Z=ee,Z=Z==null?void 0:Z.map(pe=>{var ke;return pe.compData=(ke=pe==null?void 0:pe.compData)==null?void 0:ke.map(J=>{var ne;return(J==null?void 0:J.key)==="tableContents"&&(J.contents=(ne=J==null?void 0:J.contents)==null?void 0:ne.filter(Ue=>{var g,M;return(Ue==null?void 0:Ue[1])===(a==null?void 0:a[(M=(g=Q==null?void 0:Q.value)==null?void 0:g[0])==null?void 0:M.prop])})),J}),pe})),A=eo(Z)}const F=await Zr(d,{token:S,inputData:A}).catch(m=>(Ge.setImportLoading(!1),Promise.reject(m))),p=(G=F==null?void 0:F.data)==null?void 0:G.data,_=i.find(m=>(m==null?void 0:m.prop)==="Output1"),j=_==null?void 0:_.prop;let U=[],b=[];if(p&&((c=Object.values(p))==null?void 0:c.length)>0){let m=[];const w=new FormData,le=(B=lo(p))==null?void 0:B.map(async Z=>{var pe,ke;if(!Array.isArray(Z)&&(Z!=null&&Z.includes("http"))){let J=await C.axios.get(Z,{responseType:"blob"}),ne=(ke=Z==null?void 0:Z.split("/"))==null?void 0:ke[((pe=Z==null?void 0:Z.split("/"))==null?void 0:pe.length)-1];w.append("files",J.data,ne)}else m.push(Z)});if(await Promise.all(le),!de.isFormDataEmpty(w)){let Z=await de.uploadAmountApi(w),pe=($=(ie=Z==null?void 0:Z.data)==null?void 0:ie.result)==null?void 0:$.map(ke=>{var J,ne,Ue,g,M,O;return{name:(O=(M=(g=(J=ke==null?void 0:ke.url)==null?void 0:J.split("/"))==null?void 0:g[((Ue=(ne=ke==null?void 0:ke.url)==null?void 0:ne.split("/"))==null?void 0:Ue.length)-1])==null?void 0:M.split("."))==null?void 0:O[0],url:ke==null?void 0:ke.url}});m=[...m,...pe]}let ee={};for(let Z in a)Z!=="id"&&(ee[Z]=a[Z]);ee[j]=m,b.push({id:a==null?void 0:a.id,value:{tableData:ee}})}(b==null?void 0:b.length)>0&&await C.batchUpdateInsofDataApi({dataList:b}),(U==null?void 0:U.length)>0&&await C.batchAddInsofDataApi({dataList:U}),la(!0),Ge.setImportLoading(!1),ze.setFreshContent(!0)},Wa=(e,a)=>(e=e==null?void 0:e.map(o=>{var r,n;return o!=null&&o.children&&((r=o.children)!=null&&r.find(s=>s.id===(a==null?void 0:a.id))?o.children=(n=o.children)==null?void 0:n.filter(s=>(s==null?void 0:s.id)!==(a==null?void 0:a.id)):o.children=Wa(o.children,a)),o}),e),Ve=l.reactive({title:"迁移至",show:!1,width:"20%",selectRow:null,from:u==null?void 0:u.index,to:null,contents:[],formRules:{groupName:[{required:!0,message:"输入不能为空",trigger:"blur"},{validator:(e,a,o)=>{a===(u==null?void 0:u.index)?o(new Error("选择源不能和目标源一致")):o()}}]},buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"确认",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]}),ro=()=>{Ve.show=!1},oo=e=>{var a,o;if((e==null?void 0:e.buttonName)==="取消")return Ve.show=!1;Ve.to=e==null?void 0:e.content,!(!(u!=null&&u.index)||!((a=Ve.to)!=null&&a.groupName))&&(u==null?void 0:u.index)!==((o=Ve.to)==null?void 0:o.groupName)&&(re("change",{buttonName:"迁移",value:{from:Ve.from,to:Ve.to,data:Ve.selectRow}}),Ve.show=!1)},no=e=>{sa.executeOCRHandler("default",e)},io=e=>{if(e){if(!Hl.validateFileSize(e.raw)){C.ElMessage.warning(`文件大小不能超过 ${ya.value.maxSize}MB`);return}if(!Hl.validateFileType(e.raw)){C.ElMessage.warning("请上传图片文件");return}}},uo=async()=>{var e,a;if(Bl.value.length===0){C.ElMessage.warning("请先选择要上传的图片");return}Il.value=!0;try{const o=Bl.value.map(async d=>{var y,A,S,T;const i=new FormData;i.append("file",d.raw,d.name);const t=await fl.uploadFileApi(i);return{name:((A=(y=t==null?void 0:t.data)==null?void 0:y.result)==null?void 0:A.fileName)??d.name,url:((T=(S=t==null?void 0:t.data)==null?void 0:S.result)==null?void 0:T.url)??""}}),r=await Promise.all(o),n=Hl.extractTableHeaders(Q.value),s=await Hl.recognize(r,n);console.log("OCR识别结果:",s),C.ElMessage.success(`成功上传 ${r.length} 张图片并完成OCR识别`),re("change",{content:oe.value,index:u==null?void 0:u.index,type:"ocrRecognitionCompleted",buttonName:"OCR识别完成",uploadedFiles:r,ocrResult:s,column:Q.value}),va.value=!1,Bl.value=[]}catch(o){console.error("OCR处理失败:",o),C.ElMessage.error(((a=(e=o==null?void 0:o.response)==null?void 0:e.data)==null?void 0:a.message)||"OCR识别失败,请重试")}finally{Il.value=!1}},Ga=()=>{va.value=!1,Bl.value=[],br.value=null},so=async e=>{Ra.value=e==null?void 0:e.name;const a=e.raw;_a.value=URL.createObjectURL(a),Aa.value=[{name:Ra.value,blobUrl:_a.value}],Ea.value=!0},co=()=>{Ea.value=!1,Aa.value=[],_a.value=""},to=e=>{Bl.value=Bl.value.filter((a,o)=>o!==e)},Sa=async(e,a,o)=>{var r,n,s,d,i,t,y,A,S,T,P,z,F,p,_;if(Tl.value="",ha.value=!0,pa.value=!0,re("onButtonClick",e,a),je.value=[],e==="删除")xa.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var j,U;(j=oe.value)!=null&&j.find(b=>(b==null?void 0:b.id)===(a==null?void 0:a.id))?oe.value=(U=C.cloneDeep(oe.value))==null?void 0:U.filter(b=>(b==null?void 0:b.id)!==(a==null?void 0:a.id)):oe.value=Wa(C.cloneDeep(oe.value),a),Zo(ga.value,Ql.value,a==null?void 0:a.id),ze.setTableLoading(u==null?void 0:u.index),re("change",{content:oe.value,singleContent:a,index:u==null?void 0:u.index,type:"delete",buttonName:e,column:Q.value})});else if(e==="批量删除"){if(((r=kl.value)==null?void 0:r.length)===0)return C.ElMessage.warning("请先勾选操作的数据");xa.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var U,b;const j=(U=kl.value)==null?void 0:U.map(N=>N.id);oe.value=(b=C.cloneDeep(oe.value))==null?void 0:b.filter(N=>!(j!=null&&j.includes(N.id))),ze.setTableLoading(u==null?void 0:u.index),re("change",{content:oe.value,singleContent:null,selectItems:kl.value,index:u==null?void 0:u.index,type:"batchDelete",buttonName:e,column:Q.value})})}else if(e==="复制新增"){sl.value="新增";const j=C.cloneDeep(a),U=(n=Q.value)==null?void 0:n.find(k=>k==null?void 0:k.isMainKey),b=U||((s=Q.value)==null?void 0:s[0]),N=(d=El.value)==null?void 0:d.find(k=>(k==null?void 0:k.label)==="新建");await Ha(!0,N,{data:j,firstCol:b})}else if(e==="新增")sl.value="新增",ea(""),Nl.value=!0;else if(e==="编辑")sl.value="编辑",ea(a),Nl.value=!0;else if(e==="查看")sl.value="查看",ea(a),ha.value=!1,pa.value=!1,Nl.value=!0;else if(e==="查看三维模型"){const j={};for(let b in a)b!=="id"&&(j[b]=a[b]);let U=(i=Object.values(j))==null?void 0:i[1];yr.setTableShowThree(U)}else if(((t=o==null?void 0:o.extra)==null?void 0:t.type)==="modelExample")sl.value=e,fa.value=!0;else if(e==="新建"){let j=$l.value,U=[];for(let v in j)v!=null&&v.includes(`loading${((y=Rl.value)==null?void 0:y.account)||((A=Rl.value)==null?void 0:A.账号)}`)&&(U=[...U,...v]);let b=[];for(let v in j)v!=null&&v.includes(`updateLoading${((S=Rl.value)==null?void 0:S.account)||((T=Rl.value)==null?void 0:T.账号)}`)&&(b=[...b,...v]);let N=U==null?void 0:U.map(v=>v==null?void 0:v.id);const k=b==null?void 0:b.map(v=>v==null?void 0:v.id);N=[...C.cloneDeep(N),...k],(N==null?void 0:N.length)>0&&(N!=null&&N.every(v=>v!==null&&v))&&await C.batchDeleteInsofDataApi({ids:N});const E=(P=El.value)==null?void 0:P.find(v=>(v==null?void 0:v.label)==="新建");await Ha(!1,E)}else if(e==="修改模板"){let j=C.cloneDeep(_e).value;ze.setRouteToChildPath(j),Ge.setActiveMenuPath(j+Ie)}else if(e==="执行")ao(e,a);else if(e!=null&&e.includes("导出")){if(e==="导出选中"&&((z=kl.value)==null?void 0:z.length)===0)return C.ElMessage.warning(`请先勾选${e}的数据`);if(e==="导出全部"&&((F=oe.value)==null?void 0:F.length)===0)return C.ElMessage.warning("暂无数据导出");const j=(_=(p=Q.value)==null?void 0:p.map(b=>b==null?void 0:b.label))==null?void 0:_.filter(b=>b!=="操作"),U=e==="导出全部"?C.cloneDeep(oe.value):C.cloneDeep(kl.value);U==null||U.forEach(b=>{b==null||delete b.id}),wr(U,u==null?void 0:u.compName,j,u==null?void 0:u.compName)}else e==="OCR识别"?(va.value=!0,Bl.value=[]):e==="迁移"&&(Ve.selectRow=a,Ve.show=!0)},po=async e=>{var o,r,n,s,d,i;const a=await C.getInsofDataApi({key:{pageKey:e,type:"structure",systemKey:sessionStorage.getItem("systemKey")}});if(((o=a==null?void 0:a.data)==null?void 0:o.code)===200)return Array.isArray((r=a==null?void 0:a.data)==null?void 0:r.result)&&((s=(n=a==null?void 0:a.data)==null?void 0:n.result)==null?void 0:s.length)>0?(i=(d=a==null?void 0:a.data)==null?void 0:d.result)==null?void 0:i.map(t=>{var y;return{id:t==null?void 0:t.id,...(y=t==null?void 0:t.value)==null?void 0:y.pageData}}):[]},fo=async(e,a)=>{var o,r,n,s,d,i,t,y,A,S,T,P,z,F,p,_,j,U,b,N;try{let k,E;const v=(o=$l.value[_e.value+Ie])==null?void 0:o.filter(m=>{var w;return((w=m==null?void 0:m.key)==null?void 0:w.type)==="structureMethod"}),I=(r=$l.value[_e.value+Ie])==null?void 0:r.filter(m=>{var w;return((w=m==null?void 0:m.key)==null?void 0:w.type)==="structure"}),L=v==null?void 0:v.find(m=>{var w,le;return((le=(w=m==null?void 0:m.value)==null?void 0:w.pageData)==null?void 0:le.method)==="保存"});if(!L)return;const G=(i=(d=$l.value[(s=(n=L==null?void 0:L.value)==null?void 0:n.pageData)==null?void 0:s.path])==null?void 0:d.filter(m=>{var w;return((w=m==null?void 0:m.key)==null?void 0:w.type)==="data"}))==null?void 0:i.find(m=>{var w,le,ee,Z;return((le=(w=m==null?void 0:m.value)==null?void 0:w.tableData)==null?void 0:le.算法名称)===((Z=(ee=L==null?void 0:L.value)==null?void 0:ee.pageData)==null?void 0:Z.method)});if(!G)return;const c={buttonName:(y=(t=L==null?void 0:L.value)==null?void 0:t.pageData)==null?void 0:y.method,api:(S=(A=G==null?void 0:G.value)==null?void 0:A.tableData)==null?void 0:S.算法体,content:I==null?void 0:I.map(m=>{var w;return(w=m==null?void 0:m.value)==null?void 0:w.pageData}),extraContent:[],extraValues:(P=(T=L==null?void 0:L.value)==null?void 0:T.pageData)==null?void 0:P.data,methodName:(F=(z=L==null?void 0:L.value)==null?void 0:z.pageData)==null?void 0:F.path};if(!e)return;const B={...e,compData:(p=e==null?void 0:e.compData)==null?void 0:p.map(m=>{var w;return(m==null?void 0:m.key)==="formContent"?{...m,contents:(w=m==null?void 0:m.contents)==null?void 0:w.map(le=>(le==null?void 0:le.prop)===a?{...le,value:""}:le)}:m})},ie={key:{pageKey:_e.value+Ie,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),type:"structure"},value:{pageData:B}},$=await C.axios.post(c.api,ie,{headers:{"Content-Type":"application/json"}});return((_=$==null?void 0:$.data)==null?void 0:_.code)===200&&(k=(U=(j=$==null?void 0:$.data)==null?void 0:j.result)==null?void 0:U.latestReportCode,E=(N=(b=$==null?void 0:$.data)==null?void 0:b.result)==null?void 0:N.status),{newMainKeyValue:k,newStatus:E}}catch(k){throw C.ElMessage.error(k),new Error(k)}},Ia=(e,a,o,r)=>{var n;re("contentChange",{contents:(n=e==null?void 0:e.compData)==null?void 0:n.map(s=>{var d;return(s==null?void 0:s.key)==="formContent"?{...s,contents:(d=s==null?void 0:s.contents)==null?void 0:d.map(i=>(i==null?void 0:i.key)===a?{...i,value:o}:Zl.value&&(i==null?void 0:i.prop)===Zl.prop?{...i,value:Zl.value}:i)}:s}),index:e==null?void 0:e.id},r)},Zl=l.reactive({prop:"状态",value:""}),ho=l.ref(["系统自动生成信息","审批意见"]),vo=async(e,a,o)=>{var t,y;let r=e==null?void 0:e[a==null?void 0:a.prop],n=1,s,d;const i=C.cloneDeep(_e).value+Ie+r;if(i){Zl.value="",s=(t=$l.value[i])==null?void 0:t.filter(T=>{var P;return((P=T==null?void 0:T.key)==null?void 0:P.type)==="structure"});const A=s==null?void 0:s.find(T=>{var P,z,F;return((F=(z=(P=T==null?void 0:T.value)==null?void 0:P.pageData)==null?void 0:z.comp)==null?void 0:F.toUpperCase())==="FORM"});d={...(y=A==null?void 0:A.value)==null?void 0:y.pageData,id:A==null?void 0:A.id};const S=await fo(d,a==null?void 0:a.prop);if(Zl.value=S==null?void 0:S.newStatus,S!=null&&S.newMainKeyValue)return S==null?void 0:S.newMainKeyValue}if(oe.value.some(A=>(A==null?void 0:A[a==null?void 0:a.prop])===r)){const A=r;for(;oe.value.some(S=>(S==null?void 0:S[a==null?void 0:a.prop])===`${A}(${n})`);)n++;r=`${A}(${n})`}return r},Ha=async(e,a,o)=>{var d,i,t,y,A,S,T,P;let r,n;const s=await vo(o==null?void 0:o.data,o==null?void 0:o.firstCol);if(e?(r=C.cloneDeep(_e).value+Ie+((y=o==null?void 0:o.data)==null?void 0:y[(t=o==null?void 0:o.firstCol)==null?void 0:t.prop]),n=C.cloneDeep(_e).value+Ie+s):(r=C.cloneDeep(_e).value+Ie,n=C.cloneDeep(r)+`loading${((d=Rl.value)==null?void 0:d.account)||((i=Rl.value)==null?void 0:i.账号)}`),a){const z=(S=(A=$l.value[n])==null?void 0:A.filter(F=>{var p;return((p=F==null?void 0:F.key)==null?void 0:p.parentTable)===""}))==null?void 0:S.map(F=>{var p;return{id:F==null?void 0:F.id,...(p=F==null?void 0:F.value)==null?void 0:p.pageData}});if((z==null?void 0:z.length)>0)if(e){const F=z==null?void 0:z.find(p=>{var _;return((_=p==null?void 0:p.comp)==null?void 0:_.toUpperCase())==="FORM"});F&&Ia(F,(T=o==null?void 0:o.firstCol)==null?void 0:T.label,s,_e.value)}else ze.setRouteToChildPath(C.cloneDeep(_e).value),Ge.setActiveMenuPath(n);else if(await de.loadingConstruct(r,n,null,null,e?ho.value:null),e){const F=await po(n);if((F==null?void 0:F.length)>0){const p=F==null?void 0:F.find(_=>{var j;return((j=_==null?void 0:_.comp)==null?void 0:j.toUpperCase())==="FORM"});p&&Ia(p,(P=o==null?void 0:o.firstCol)==null?void 0:P.label,s,_e.value)}}else ze.setRouteToChildPath(C.cloneDeep(_e).value),Ge.setActiveMenuPath(n)}else e?(Tl.value="",ll.value=o==null?void 0:o.data,la(!0,o==null?void 0:o.firstCol,s)):(ze.setRouteToChildPath(C.cloneDeep(_e).value),Ge.setActiveMenuPath(n))},yo=()=>{Me.value=!1,Gl.value=[],X.value=!1},ea=e=>{var d,i,t,y,A,S,T,P,z,F,p,_,j,U,b,N,k,E,v,I,L,G;const a=[];let o=[];for(let c in e)Array.isArray(e==null?void 0:e[c])&&o.push(c);x.value=C.cloneDeep(Q.value),(i=de.getColumnChild((d=C.cloneDeep(Q.value))==null?void 0:d.filter(c=>(c==null?void 0:c.label)!=="操作")))==null||i.forEach((c,B)=>{var ie;o.find($=>$===(c==null?void 0:c.prop))||(c!=null&&c.formType&&((ie=c==null?void 0:c.formType)==null?void 0:ie.toUpperCase())==="SELECT"||c!=null&&c.menuId?a.push({label:(c==null?void 0:c.label)||(c==null?void 0:c.prop)||"",name:(c==null?void 0:c.prop)??"t"+B,prop:c==null?void 0:c.prop,type:"Select",value:(e==null?void 0:e[c==null?void 0:c.prop])??(c==null?void 0:c.value)??"",id:(c==null?void 0:c.id)??B,contents:(c==null?void 0:c.options)??[],width:1,isFormColHidden:c==null?void 0:c.isFormColHidden,relatedValueId:c==null?void 0:c.relatedValueId,disabled:c==null?void 0:c.disabled,optionUrl:{groupSelect:c==null?void 0:c.groupSelect,menuSelect:c==null?void 0:c.formMenuSelect,type:"Select",selectRelateType:c==null?void 0:c.selectRelateType,allSelectionContents:(c==null?void 0:c.allSelectionContents)??[],selectFilter:c==null?void 0:c.selectFilter,menuId:c==null?void 0:c.menuId,filterContent:c==null?void 0:c.filterContent}}):a.push({label:(c==null?void 0:c.label)||(c==null?void 0:c.prop)||"",prop:c==null?void 0:c.prop,name:(c==null?void 0:c.prop)??"t"+B,type:!(c!=null&&c.formType)||(c==null?void 0:c.formType)===""?"Input":c==null?void 0:c.formType,value:(e==null?void 0:e[c==null?void 0:c.prop])??(c==null?void 0:c.value)??"",id:(c==null?void 0:c.id)??B,contents:(c==null?void 0:c.options)??[],width:1,isFormColHidden:c==null?void 0:c.isFormColHidden,disabled:c==null?void 0:c.disabled,relatedValueId:c==null?void 0:c.relatedValueId}))}),e===""||!e||(Tl.value=(e==null?void 0:e.id)??"");let r=de.getColumnChild((t=C.cloneDeep(Q.value))==null?void 0:t.filter(c=>(c==null?void 0:c.label)!=="操作"));hl.value&&((y=hl.value)==null?void 0:y.length)>0&&(hl.value=(A=C.cloneDeep(hl).value)==null?void 0:A.map(c=>{var ie;let B=(c==null?void 0:c.prop)||((ie=r==null?void 0:r.find($=>($==null?void 0:$.label)===(c==null?void 0:c.label)))==null?void 0:ie.prop);return B&&(c.value=e[B]),c})),be.value=hl.value&&((S=hl.value)==null?void 0:S.length)>0?de.getTableFormToForm(hl.value):a;let n=[],s=(T=u.itemData)==null?void 0:T.filter(c=>(c==null?void 0:c.key)==="filterAllType");if((s==null?void 0:s.length)>0&&(n=(s==null?void 0:s.map(B=>B==null?void 0:B.value)).flat()),(n==null?void 0:n.length)>0){let c=(z=n==null?void 0:n.filter($=>{var m;return(m=$==null?void 0:$.content)==null?void 0:m.includes("@Type")}))==null?void 0:z[((P=n==null?void 0:n.filter($=>{var m;return(m=$==null?void 0:$.content)==null?void 0:m.includes("@Type")}))==null?void 0:P.length)-1];if(c!=null&&c.content){let $=(_=(p=(F=c==null?void 0:c.content)==null?void 0:F.replace(":",Dl))==null?void 0:p.split(Dl))==null?void 0:_[1];if(((j=$==null?void 0:$.trim())==null?void 0:j.toUpperCase())==="MANUAL"){let m=(E=(k=(U=u.itemData)==null?void 0:U.filter(w=>(w==null?void 0:w.key)==="contentTableId"))==null?void 0:k[((N=(b=u.itemData)==null?void 0:b.filter(w=>(w==null?void 0:w.key)==="contentTableId"))==null?void 0:N.length)-1])==null?void 0:E.contents;be.value=(v=be.value)==null?void 0:v.map((w,le)=>{var ee,Z;return(ee=w==null?void 0:w.optionUrl)!=null&&ee.menuId&&(w.type="Select",(Z=w==null?void 0:w.optionUrl)!=null&&Z.menuId&&(w.optionUrl.menuId=w.optionUrl.menuId??m,w.optionUrl.menuFilter=n,sl.value==="新增"&&(w.optionUrl.multiple=!0,w.optionUrl.multipleLimit=5))),w})}}let B=(I=be.value)==null?void 0:I.filter($=>{var m,w;return((m=$==null?void 0:$.optionUrl)==null?void 0:m.menuId)&&((w=$==null?void 0:$.optionUrl)==null?void 0:w.menuId)!==""}),ie;if(B==null||B.forEach($=>{var w,le;if(ie!==void 0)return;let m=(w=$==null?void 0:$.optionUrl)==null?void 0:w.menuId;((le=B==null?void 0:B.filter(ee=>{var Z;return((Z=ee==null?void 0:ee.optionUrl)==null?void 0:Z.menuId)===m}))==null?void 0:le.length)>1&&(ie=m)}),B=B==null?void 0:B.filter($=>{var m;return((m=$==null?void 0:$.optionUrl)==null?void 0:m.menuId)===ie}),(B==null?void 0:B.length)>1){let $=B==null?void 0:B.map(ee=>ee==null?void 0:ee.prop),m=B==null?void 0:B.map(ee=>ee==null?void 0:ee.label),w=B==null?void 0:B.map(ee=>ee==null?void 0:ee.value),le=(L=C.cloneDeep(B))==null?void 0:L[0];le.label=m==null?void 0:m.join("·"),le.value=w==null?void 0:w.join(" "),le.value.trim()===""&&(le.value=""),le.prop=$==null?void 0:$.join("·"),le.usingType="parent",be.value.unshift(le),be.value=(G=be.value)==null?void 0:G.map(ee=>($!=null&&$.find(Z=>Z===(ee==null?void 0:ee.prop))&&(ee.isFormColHidden=!0),ee))}}},go=()=>{var a;const e=(a=K.value)==null?void 0:a.$el;e&&de.Sortable.create(e,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:o=>{var d;const{oldIndex:r,newIndex:n}=o;if(r===n)return;const s=Yl.value.splice(r,1)[0];Yl.value.splice(n,0,s),Q.value=(d=Q.value)==null?void 0:d.slice().sort((i,t)=>{if(i.label==="操作")return 1;if(t.label==="操作")return-1;const y=Yl.value.findIndex(S=>S.label===i.label),A=Yl.value.findIndex(S=>S.label===t.label);return y-A})}})};l.onMounted(()=>{Na.value=window.innerWidth-240*2});const bo=()=>{l.nextTick(()=>{go()})},Ua=(e,a)=>{var r;if(!e&&!(e!=null&&e.children))return{contents:e,currentSelectContents:void 0};let o;return e.children=(r=e.children)==null?void 0:r.map(n=>{var s,d;if((n==null?void 0:n.id)===Tl.value){let i={};for(let t in n){let y=(s=a==null?void 0:a.find(A=>(A==null?void 0:A.prop)===t))==null?void 0:s.label;y?i[t]=(d=ll.value)==null?void 0:d[y]:i[t]=n[t]}n=Object.assign(i,ll.value),o=n}else{let i=Ua(n,a);n=i==null?void 0:i.contents,o=i==null?void 0:i.currentSelectContents}return n}),{contents:e,currentSelectContents:o}},Qa=(e,a)=>{let o,r;return e!=null&&e.find(n=>(n==null?void 0:n.id)===Tl.value)?o=e==null?void 0:e.map(n=>{var s,d;if((n==null?void 0:n.id)===Tl.value){let i={};for(let t in n){let y=(s=a==null?void 0:a.find(A=>(A==null?void 0:A.prop)===t))==null?void 0:s.label;y?i[t]=(d=ll.value)==null?void 0:d[y]:i[t]=n[t]}n=Object.assign(i,ll.value),r=n}return n}):o=e==null?void 0:e.map(n=>{var s,d,i,t;if((n==null?void 0:n.id)===Tl.value){let y={};for(let A in n){let S=(s=a==null?void 0:a.find(T=>(T==null?void 0:T.prop)===A))==null?void 0:s.label;S?y[A]=(d=ll.value)==null?void 0:d[S]:y[A]=n[A]}n=Object.assign(y,ll.value),r=n}else n=(i=Ua(n,a))==null?void 0:i.contents,r=(t=Ua(n,a))==null?void 0:t.currentSelectContents;return n}),{newContents:o,currentSelectContents:r}},Xa=(e,a,o)=>{var r,n;return e[a==null?void 0:a.prop]=o,typeof e.id=="number"&&(e.id=(r=e.id)==null?void 0:r.toString()),e.children&&((n=e.children)==null?void 0:n.length)>0&&(e.children=e.children.map(Xa)),e},La=e=>{var o;const a=[];return a.push({...e}),e!=null&&e.children&&Array.isArray(e.children)&&((o=e.children)==null||o.forEach(r=>{a.push(...La(r))})),(a==null?void 0:a.length)>0?a==null?void 0:a.map(r=>{const n={...r};return delete n.children,n}):[]},la=(e=!0,a,o)=>{var y,A,S,T,P,z,F,p,_,j,U,b,N,k,E,v,I,L,G,c,B,ie,$,m,w,le,ee,Z,pe,ke;let r=de.getColumnChild((y=C.cloneDeep(Q.value))==null?void 0:y.filter(J=>(J==null?void 0:J.label)!=="操作")),n,s=C.cloneDeep(oe.value);if(!ll.value){Nl.value=!1;return}if(Tl.value===""){Fl.value++;let J;a&&o?J={id:Fl.value.toString(),[a==null?void 0:a.prop]:o,children:ll.value.children}:J={id:Fl.value.toString()},J!=null&&J.children&&(J={...J,children:(A=J.children)==null?void 0:A.map(ne=>Xa(ne,a,o))}),s.push(Object.assign(ll.value,J)),n=Object.assign(ll.value,J)}else s=(S=Qa(s,r))==null?void 0:S.newContents,n=(T=Qa(s,r))==null?void 0:T.currentSelectContents;const d=(P=u.itemData)==null?void 0:P.filter(J=>(J==null?void 0:J.key)==="childTree")[0];if(((z=d==null?void 0:d.contents)==null?void 0:z.length)>0){sl.value="编辑";const J=[];s==null||s.forEach((ne,Ue)=>{var M;let g={};if(Array.isArray(ne)){let O=[];ne==null||ne.filter(fe=>!(fe!=null&&fe.id)).forEach((fe,me)=>{var V,ue,Pe,D,Be,Je,We;if((ue=(V=gl.value)==null?void 0:V[me])!=null&&ue.prop&&!Array.isArray(fe)){let qe={};qe[gl.value[me].column]=fe,we!=null&&we.value&&((Pe=we==null?void 0:we.value)==null?void 0:Pe.length)>0&&((D=we==null?void 0:we.value)!=null&&D.find(Ee=>JSON.stringify(Ee==null?void 0:Ee[0])===JSON.stringify(qe)))&&(O=(Be=we==null?void 0:we.value)==null?void 0:Be.find(Ee=>JSON.stringify(Ee==null?void 0:Ee[0])===JSON.stringify(qe))),O&&O.length>0?g[gl.value[me].prop]=O!=null&&O.find(Ee=>{var Ke;return((Ke=Object.keys(Ee))==null?void 0:Ke[0])===gl.value[me].column})?(Je=O==null?void 0:O.find(Ee=>{var Ke;return((Ke=Object.keys(Ee))==null?void 0:Ke[0])===gl.value[me].column}))==null?void 0:Je[gl.value[me].column]:fe:g[gl.value[me].prop]=fe}else Array.isArray(fe)&&((We=gl.value[me])!=null&&We.prop?g[gl.value[me].prop]=fe:g.children=Pa(fe,gl.value))})}else g=ne;Array.isArray(ne)&&ne.some(O=>O==null?void 0:O.id)?J.push(Object.assign(g,{id:(M=ne==null?void 0:ne.find(O=>O.id))==null?void 0:M.id})):g.id?J.push(g):J.push(Object.assign(g,{id:Ue.toString()}))}),oe.value=ar(J,d,Q.value)}er(oe.value),ga.value=oe.value;const i=ln(ga.value,Ql.value,s);let t=[];if(Jl.value?(t=(F=C.cloneDeep(Jl).value.singleContent)==null?void 0:F.filter(J=>(J==null?void 0:J.id)!==(n==null?void 0:n.id)),t.push(n)):t=[n],bl.value){const J={content:i,singleContent:((p=d==null?void 0:d.contents)==null?void 0:p.length)>0?t==null?void 0:t.flatMap(La):t,index:u==null?void 0:u.index,buttonName:"编辑",column:Q.value,parentTableId:u==null?void 0:u.parentTableId};ze.setCacheUpdatingData(J)}if(e){let J=(b=(U=(j=(_=u.itemData)==null?void 0:_.find(g=>(g==null?void 0:g.key)==="filterAllType"))==null?void 0:j.value)==null?void 0:U.find(g=>(g==null?void 0:g.value)==="onConditionContents"))==null?void 0:b.content,ne=(N=u.itemData)==null?void 0:N.filter(g=>(g==null?void 0:g.key)==="filterAllType");ne=Array.from(new Map(ne.filter(Boolean).map((g,M)=>[g.value,{...g,_idx:M}])).values()).sort((g,M)=>g._idx-M._idx).map(({_idx:g,...M})=>M),ne=(k=ne==null?void 0:ne[(ne==null?void 0:ne.length)-1])==null?void 0:k.value;const Ue={content:i,singleContent:((E=d==null?void 0:d.contents)==null?void 0:E.length)>0?La(n):n,index:u==null?void 0:u.index,buttonName:sl.value,column:Q.value,parentTableId:u==null?void 0:u.parentTableId,filter:J,allFilter:ne,pathIndex:(I=(v=u.itemData)==null?void 0:v.find(g=>(g==null?void 0:g.key)==="relatedFilter"))==null?void 0:I.index,rowContents:be.value,addArrayValues:je.value};ze.setTableLoading(u==null?void 0:u.index),Nl.value=!1,ll.value=void 0,re("change",Ue)}if((c=(G=(L=be.value)==null?void 0:L[0])==null?void 0:G.optionUrl)!=null&&c.menuId){Nl.value=!1;let J=(B=u.itemData)==null?void 0:B.filter(ne=>(ne==null?void 0:ne.key)==="filterAllType");if((J==null?void 0:J.length)>0){let ne=J==null?void 0:J.map(M=>M==null?void 0:M.value),Ue=(m=($=(ie=ne.flat().find(M=>{var O;return(O=M==null?void 0:M.content)==null?void 0:O.includes("@Num")}))==null?void 0:ie.content)==null?void 0:$.split(":"))==null?void 0:m[1];((ee=(le=(w=ne.flat().find(M=>{var O;return(O=M==null?void 0:M.content)==null?void 0:O.includes("@Type:")}))==null?void 0:w.content)==null?void 0:le.split(":"))==null?void 0:ee[1])!=="Manual"&&(Ue=parseInt(Ue),oe.value=(ke=oe.value)==null?void 0:ke.slice(((Z=oe.value)==null?void 0:Z.length)-Ue,(pe=oe.value)==null?void 0:pe.length))}}};l.onUnmounted(()=>{Q.value=[],oe.value=[],x.value=[],ql.value=[],hl.value=[],Ol.value=[],Gl.value=[],_l.value=[],be.value=[],kl.value=[],K.value=null});const Ya=async(e,a,o)=>{var y,A,S,T,P,z,F,p,_,j,U;ml.value=o==null?void 0:o.prop;const r=C.cloneDeep(u.itemData),n=r==null?void 0:r.map(b=>{var N;return(b==null?void 0:b.key)==="header"&&((N=b.contents)==null||N.map((k,E)=>{var v,I,L,G,c,B,ie,$,m,w,le,ee,Z,pe,ke,J,ne,Ue,g;return k.type=k!=null&&k.type?k.type:(G=(L=(I=(v=k==null?void 0:k.key)==null?void 0:v.split("$"))==null?void 0:I[1])==null?void 0:L.split("("))!=null&&G[0]?(B=(c=de.FormType)==null?void 0:c.find(M=>{var O,fe,me,V;return(M==null?void 0:M.key)===((V=(me=(fe=(O=k==null?void 0:k.key)==null?void 0:O.split("$"))==null?void 0:fe[1])==null?void 0:me.split("("))==null?void 0:V[0])}))==null?void 0:B.value:"Input",k.options=k!=null&&k.options?k.options:((m=($=(ie=k==null?void 0:k.key)==null?void 0:ie.split("$"))==null?void 0:$[1])==null?void 0:m.length)>0?(Z=(ee=Ma((le=(w=k==null?void 0:k.key)==null?void 0:w.split("$"))==null?void 0:le[1]))==null?void 0:ee.split(","))==null?void 0:Z.map(M=>({label:M,value:M})):[],(pe=k==null?void 0:k.key)!=null&&pe.includes("$")&&(k.key=(J=(ke=k==null?void 0:k.key)==null?void 0:ke.split("$"))==null?void 0:J[0]),k.value=(ne=Object.values(a))==null?void 0:ne[E],k.optionUrl=k!=null&&k.formMenuSelect&&((Ue=k==null?void 0:k.formMenuSelect)==null?void 0:Ue.length)>0?{groupSelect:(g=k==null?void 0:k.groupSelect)==null?void 0:g.split(/[::]/).map(M=>M.trim()),menuSelect:k==null?void 0:k.formMenuSelect,selectRelateType:"",type:(k==null?void 0:k.formType)??(k!=null&&k.groupSelect?"Select":"")}:null,k})),b});let s=C.cloneDeep(be.value),d=(A=(y=C.cloneDeep(n))==null?void 0:y.find(b=>(b==null?void 0:b.key)==="header"))==null?void 0:A.contents;s=s==null?void 0:s.map(b=>{var N;return b.value=(N=d==null?void 0:d.find((k,E)=>E===(b==null?void 0:b.id)))==null?void 0:N.value,b});let i="",t=(P=(T=(S=C.cloneDeep(n))==null?void 0:S.find(b=>(b==null?void 0:b.key)==="header"))==null?void 0:T.contents)==null?void 0:P.find((b,N)=>{var k,E,v;return(b==null?void 0:b.label)===ml.value||(N==null?void 0:N.toString())===((v=(E=(k=ml.value)==null?void 0:k.split("a"))==null?void 0:E[1])==null?void 0:v.toString())});if((p=(F=(z=C.cloneDeep(n))==null?void 0:z.find(b=>(b==null?void 0:b.key)==="header"))==null?void 0:F.contents)==null||p.forEach(b=>{var N,k,E,v,I;i===""&&((E=(k=(N=b==null?void 0:b.optionUrl)==null?void 0:N.groupSelect)==null?void 0:k[1])!=null&&E.includes("["))&&(i=(I=(v=b==null?void 0:b.optionUrl)==null?void 0:v.groupSelect)==null?void 0:I[1])}),(_=t==null?void 0:t.optionUrl)!=null&&_.menuSelect){let b=await Ca(t),N;if(b==null||b.forEach(k=>{var E,v,I,L,G,c,B,ie,$,m;i===((v=(E=t==null?void 0:t.optionUrl)==null?void 0:E.groupSelect)==null?void 0:v[1])&&((G=(L=(I=t==null?void 0:t.optionUrl)==null?void 0:I.groupSelect)==null?void 0:L[1])!=null&&G.includes("["))&&((m=C.cloneDeep(k))==null?void 0:m[($=(ie=(B=(c=t==null?void 0:t.optionUrl)==null?void 0:c.groupSelect)==null?void 0:B[1])==null?void 0:ie.replaceAll("[",""))==null?void 0:$.replaceAll("]","")])===(t==null?void 0:t.value)&&(N=k)}),N){let k=C.cloneDeep(s);k=k==null?void 0:k.map(v=>{var I,L,G,c,B,ie,$,m,w,le,ee;return(N!=null&&N[v==null?void 0:v.label]||N!=null&&N[(c=(G=(L=(I=v==null?void 0:v.optionUrl)==null?void 0:I.groupSelect)==null?void 0:L[1])==null?void 0:G.replaceAll("[",""))==null?void 0:c.replaceAll("]","")])&&(($=(ie=(B=v==null?void 0:v.optionUrl)==null?void 0:B.groupSelect)==null?void 0:ie[1])!=null&&$.includes("["))&&(v.value=(N==null?void 0:N[v==null?void 0:v.label])||(N==null?void 0:N[(ee=(le=(w=(m=v==null?void 0:v.optionUrl)==null?void 0:m.groupSelect)==null?void 0:w[1])==null?void 0:le.replaceAll("[",""))==null?void 0:ee.replaceAll("]","")])),v}),oe.value=(j=C.cloneDeep(oe.value))==null?void 0:j.map(v=>{if((v==null?void 0:v.id)===(a==null?void 0:a.id)){const I={};return k==null||k.forEach(L=>{I[L.name]=L.value}),I.id=v==null?void 0:v.id,I}return v});let E=C.cloneDeep(k);E=E==null?void 0:E.map(v=>{var I,L,G,c;return(L=(I=v==null?void 0:v.optionUrl)==null?void 0:I.menuSelect)!=null&&L.some(B=>B==null?void 0:B.includes)&&(v.optionUrl.menuSelect=(c=(G=v==null?void 0:v.optionUrl)==null?void 0:G.menuSelect)==null?void 0:c.map(B=>{var ie,$,m,w;if(B!=null&&B.includes("[")){let le=($=(ie=B==null?void 0:B.replaceAll("[","").replaceAll("]",""))==null?void 0:ie.split(":"))==null?void 0:$[1];B=(w=(m=C.cloneDeep(k))==null?void 0:m.find(ee=>(ee==null?void 0:ee.label)===le))==null?void 0:w.value}return B})),v}),oe.value=(U=C.cloneDeep(oe.value))==null?void 0:U.map(v=>{if((v==null?void 0:v.id)===(a==null?void 0:a.id)){const I={};return E==null||E.forEach(L=>{I[L.name]=L.value}),I.id=v==null?void 0:v.id,I}return v})}}},ko=async e=>{var P,z,F,p,_,j,U,b,N,k,E,v,I,L,G,c,B,ie,$,m,w,le,ee,Z,pe,ke,J,ne,Ue;if(!e)return;ll.value=e;const a=C.cloneDeep(u.itemData);let o=a==null?void 0:a.map(g=>{var M;return(g==null?void 0:g.key)==="header"&&(g.contents=(M=g.contents)==null?void 0:M.map((O,fe)=>{var me,V,ue,Pe,D,Be,Je,We,qe,Ee,Ke,Ze,el,Ye,Se,Te,rl,cl,dl,pl,il,Sl,f,H;return O.type=O!=null&&O.type?O.type:(Pe=(ue=(V=(me=O==null?void 0:O.key)==null?void 0:me.split("$"))==null?void 0:V[1])==null?void 0:ue.split("("))!=null&&Pe[0]?(Be=(D=de.FormType)==null?void 0:D.find(he=>{var ol,Al,ve,W;return(he==null?void 0:he.key)===((W=(ve=(Al=(ol=O==null?void 0:O.key)==null?void 0:ol.split("$"))==null?void 0:Al[1])==null?void 0:ve.split("("))==null?void 0:W[0])}))==null?void 0:Be.value:"Input",O.options=O!=null&&O.options?O.options:((qe=(We=(Je=O==null?void 0:O.key)==null?void 0:Je.split("$"))==null?void 0:We[1])==null?void 0:qe.length)>0?(el=(Ze=Ma((Ke=(Ee=O==null?void 0:O.key)==null?void 0:Ee.split("$"))==null?void 0:Ke[1]))==null?void 0:Ze.split(","))==null?void 0:el.map(he=>({label:he,value:he})):[],(Ye=O==null?void 0:O.key)!=null&&Ye.includes("$")&&(O.key=(Te=(Se=O==null?void 0:O.key)==null?void 0:Se.split("$"))==null?void 0:Te[0]),((dl=(cl=(rl=be.value)==null?void 0:rl.find(he=>(he==null?void 0:he.prop)===(O==null?void 0:O.prop)))==null?void 0:cl.optionUrl)==null?void 0:dl.multiple)===!0&&!Array.isArray((pl=Object.values(e))==null?void 0:pl[fe])?O.value=[(il=Object.values(e))==null?void 0:il[fe]]:O.value=(Sl=Object.values(e))==null?void 0:Sl[fe],O.optionUrl=O!=null&&O.formMenuSelect&&((f=O==null?void 0:O.formMenuSelect)==null?void 0:f.length)>0?{groupSelect:(H=O==null?void 0:O.groupSelect)==null?void 0:H.split(/[::]/).map(he=>he.trim()),menuSelect:O==null?void 0:O.formMenuSelect,selectRelateType:"",type:(O==null?void 0:O.formType)??(O!=null&&O.groupSelect?"Select":"")}:null,O})),g}),r=be.value,n=(z=(P=C.cloneDeep(o))==null?void 0:P.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:z.contents;if(n=n==null?void 0:n.filter(g=>(g==null?void 0:g.label)!=="操作"),n.push({label:"操作",type:"operate"}),r=r==null?void 0:r.map(g=>{var M;return g.value=g.value??((M=n==null?void 0:n.find((O,fe)=>(O==null?void 0:O.prop)===(g==null?void 0:g.name)))==null?void 0:M.value),g}),!Xl.value)return;let s="",d=C.cloneDeep(ml.value);(F=ml.value)!=null&&F.includes("·")&&(ml.value=(_=(p=ml.value)==null?void 0:p.split("·"))==null?void 0:_[0]);let i=(b=(U=(j=C.cloneDeep(o))==null?void 0:j.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:U.contents)==null?void 0:b.find((g,M)=>{var O,fe,me;return(g==null?void 0:g.prop)===ml.value||(M==null?void 0:M.toString())===((me=(fe=(O=ml.value)==null?void 0:O.split("a"))==null?void 0:fe[1])==null?void 0:me.toString())}),t=(N=i==null?void 0:i.optionUrl)==null?void 0:N.menuSelect,y=!0;(v=(E=(k=C.cloneDeep(o))==null?void 0:k.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:E.contents)==null||v.forEach(g=>{var M,O,fe,me,V,ue;y&&((fe=(O=(M=g==null?void 0:g.optionUrl)==null?void 0:M.groupSelect)==null?void 0:O[1])!=null&&fe.includes("["))&&(s=(V=(me=g==null?void 0:g.optionUrl)==null?void 0:me.groupSelect)==null?void 0:V[1],JSON.stringify(t)===JSON.stringify((ue=g==null?void 0:g.optionUrl)==null?void 0:ue.menuSelect)&&(y=!1))});let A=C.cloneDeep(r),S=Qe.value;S!=null&&S.find(g=>(i==null?void 0:i.prop)===(g==null?void 0:g.key))&&(S=S==null?void 0:S.filter(g=>(i==null?void 0:i.prop)!==(g==null?void 0:g.key))),S!=null&&S.find(g=>d===(g==null?void 0:g.key))&&(S=S==null?void 0:S.filter(g=>d!==(g==null?void 0:g.key))),A=A==null?void 0:A.map(g=>{var M,O,fe,me,V,ue,Pe,D;return(g==null?void 0:g.type)==="Select"&&(((O=(M=g==null?void 0:g.optionUrl)==null?void 0:M.allSelectionContents)==null?void 0:O.length)>0&&(g.optionUrl.contactValue=e),((i==null?void 0:i.prop)===(g==null?void 0:g.prop)||d===(g==null?void 0:g.prop))&&(Array.isArray(i.value)&&((fe=i.value)==null?void 0:fe.length)>0&&((me=i.value)!=null&&me.every(Be=>typeof Be=="string"))?(S.push({key:g==null?void 0:g.prop,value:[(ue=i.value)==null?void 0:ue[((V=i.value)==null?void 0:V.length)-1]]}),g.selectValue=(Pe=S==null?void 0:S.find(Be=>(Be==null?void 0:Be.key)===(g==null?void 0:g.prop)))==null?void 0:Pe.value):Array.isArray(i.value)&&((D=i.value)==null?void 0:D.length)===0&&(S=[],g.selectValue=[],e[g==null?void 0:g.prop]=""))),g.value=e==null?void 0:e[g==null?void 0:g.prop],g}),Qe.value=S,be.value=C.cloneDeep(A);let T=(i==null?void 0:i.menuId)??((G=(L=(I=be.value)==null?void 0:I.find(g=>{var M;return(M=g==null?void 0:g.optionUrl)==null?void 0:M.menuId}))==null?void 0:L.optionUrl)==null?void 0:G.menuId);if((c=i==null?void 0:i.optionUrl)!=null&&c.menuSelect&&Xl.value||T){let g=await Ca(i,T),M;if(g==null||g.forEach(V=>{var ue,Pe,D,Be,Je,We,qe,Ee,Ke,Ze,el,Ye,Se,Te,rl,cl,dl,pl,il,Sl,f,H,he,ol,Al;if(!T&&s===((Pe=(ue=i==null?void 0:i.optionUrl)==null?void 0:ue.groupSelect)==null?void 0:Pe[1])&&((Je=(Be=(D=i==null?void 0:i.optionUrl)==null?void 0:D.groupSelect)==null?void 0:Be[1])!=null&&Je.includes("["))&&((Ze=C.cloneDeep(V))==null?void 0:Ze[(Ke=(Ee=(qe=(We=i==null?void 0:i.optionUrl)==null?void 0:We.groupSelect)==null?void 0:qe[1])==null?void 0:Ee.replaceAll("[",""))==null?void 0:Ke.replaceAll("]","")])===(i==null?void 0:i.value)&&(M=V),T){let ve=(Ye=(el=be.value)==null?void 0:el.find(De=>{var Le;return(i==null?void 0:i.menuId)===((Le=De==null?void 0:De.optionUrl)==null?void 0:Le.menuId)}))==null?void 0:Ye.prop,W=e[ve];if(ve!=null&&ve.includes("·"))if(!Array.isArray(e[ve]))W=(Te=(Se=e[ve])==null?void 0:Se.split(" "))==null?void 0:Te[0],ve=(rl=ve==null?void 0:ve.split("·"))==null?void 0:rl[0];else{ve=(cl=ve==null?void 0:ve.split("·"))==null?void 0:cl[0];let De=(pl=(dl=A==null?void 0:A.find(Le=>(Le==null?void 0:Le.prop)===ve))==null?void 0:dl.selectValue)==null?void 0:pl[0];W=(il=De==null?void 0:De.split(" "))==null?void 0:il[0]}let h=(f=(Sl=A==null?void 0:A.find(De=>(De==null?void 0:De.prop)===ve))==null?void 0:Sl.selectValue)==null?void 0:f[0];if(V[ve]===(Array.isArray(W)?h:W)&&(i==null?void 0:i.directiveLabel)==="#isMain"){if(d!=null&&d.includes("·")){let De=d==null?void 0:d.split("·"),Le=(Al=(ol=(he=Array.isArray(e==null?void 0:e[d])?(H=e==null?void 0:e[d])==null?void 0:H[0]:e==null?void 0:e[d])==null?void 0:he.split(" "))==null?void 0:ol.filter(Oe=>Oe&&Oe!==""))==null?void 0:Al.map(Oe=>Oe==null?void 0:Oe.trim());De==null||De.forEach((Oe,nl)=>{V[Oe]=Le==null?void 0:Le[nl]})}M=V}}}),ul.value&&(i==null?void 0:i.directiveLabel)==="#isMain"&&(je.value=[]),!M){if(ul.value&&(i==null?void 0:i.directiveLabel)==="#isMain")if(d!=null&&d.includes("·")){let V=e,ue=($=(ie=(B=e==null?void 0:e[d])==null?void 0:B.split(" "))==null?void 0:ie.filter(D=>D&&D!==""))==null?void 0:$.map(D=>D==null?void 0:D.trim());(m=d==null?void 0:d.split("·"))==null||m.forEach((D,Be)=>{V[D]=ue[Be]});let Pe=(w=be.value)==null?void 0:w.find(D=>(D==null?void 0:D.prop)===d);V[Pe.prop]=[Pe.value],M=V}else{let V=(le=be.value)==null?void 0:le.find(ue=>(ue==null?void 0:ue.prop)===(i==null?void 0:i.prop));e[V.prop]=[V.value],M=e}else if((i==null?void 0:i.directiveLabel)==="#isMain"){let V={};(ee=be.value)==null||ee.forEach(ue=>{var Pe,D;(ue==null?void 0:ue.prop)===d?V[ue.prop]=(Pe=ue==null?void 0:ue.selectValue)!=null&&Pe[0]?[(D=ue==null?void 0:ue.selectValue)==null?void 0:D[0]]:"":V[ue.prop]=""}),M=V}}if(M){let V=C.cloneDeep(r);V=V==null?void 0:V.map(D=>{var Be,Je,We,qe,Ee,Ke,Ze,el,Ye,Se,Te,rl,cl,dl,pl,il,Sl,f,H,he,ol,Al;return(M!=null&&M[D==null?void 0:D.prop]||M!=null&&M[(qe=(We=(Je=(Be=D==null?void 0:D.optionUrl)==null?void 0:Be.groupSelect)==null?void 0:Je[1])==null?void 0:We.replaceAll("[",""))==null?void 0:qe.replaceAll("]","")])&&((Ze=(Ke=(Ee=D==null?void 0:D.optionUrl)==null?void 0:Ee.groupSelect)==null?void 0:Ke[1])!=null&&Ze.includes("["))&&(D!=null&&D.relatedValueId)&&(D.value=(M==null?void 0:M[D==null?void 0:D.prop])||(M==null?void 0:M[(Te=(Se=(Ye=(el=D==null?void 0:D.optionUrl)==null?void 0:el.groupSelect)==null?void 0:Ye[1])==null?void 0:Se.replaceAll("[",""))==null?void 0:Te.replaceAll("]","")])),T&&(M!=null&&M[D==null?void 0:D.prop]||(M==null?void 0:M[D==null?void 0:D.prop])==="")&&(D!=null&&D.relatedValueId)&&sl.value==="新增"&&((D==null?void 0:D.prop)!==(i==null?void 0:i.prop)||d!=null&&d.includes((i==null?void 0:i.prop)+"·")||d!=null&&d.includes("·"+(D==null?void 0:D.prop)))?D.value=(M==null?void 0:M[D==null?void 0:D.prop])||(M==null?void 0:M[(pl=(dl=(cl=(rl=D==null?void 0:D.optionUrl)==null?void 0:rl.groupSelect)==null?void 0:cl[1])==null?void 0:dl.replaceAll("[",""))==null?void 0:pl.replaceAll("]","")]):d!=null&&d.includes("·"+(D==null?void 0:D.prop))?D.value=M==null?void 0:M[D==null?void 0:D.prop]:((il=D==null?void 0:D.optionUrl)==null?void 0:il.multiple)===!0&&!Array.isArray((f=(Sl=be.value)==null?void 0:Sl.find(ve=>(ve==null?void 0:ve.prop)===(D==null?void 0:D.prop)))==null?void 0:f.value)?D.value=[(he=(H=be.value)==null?void 0:H.find(ve=>(ve==null?void 0:ve.prop)===(D==null?void 0:D.prop)))==null?void 0:he.value]:D.value=(Al=(ol=be.value)==null?void 0:ol.find(ve=>(ve==null?void 0:ve.prop)===(D==null?void 0:D.prop)))==null?void 0:Al.value,D}),be.value=C.cloneDeep(V);let ue=C.cloneDeep(V);ue=ue==null?void 0:ue.map(D=>{var Be,Je,We,qe,Ee,Ke,Ze,el,Ye;return(Je=(Be=D==null?void 0:D.optionUrl)==null?void 0:Be.menuSelect)!=null&&Je.some(Se=>Se==null?void 0:Se.includes("["))&&(D.optionUrl.oldMenuSelect=(qe=(We=C.cloneDeep(D))==null?void 0:We.optionUrl)==null?void 0:qe.menuSelect,D.optionUrl.menuSelect=(Ke=(Ee=D==null?void 0:D.optionUrl)==null?void 0:Ee.menuSelect)==null?void 0:Ke.map(Se=>{var Te,rl,cl,dl;if(Se!=null&&Se.includes("[")){let pl=(rl=(Te=Se==null?void 0:Se.replaceAll("[","").replaceAll("]",""))==null?void 0:Te.split(":"))==null?void 0:rl[1];Se=(dl=(cl=C.cloneDeep(V))==null?void 0:cl.find(il=>(il==null?void 0:il.label)===pl))==null?void 0:dl.value}return Se})),((i==null?void 0:i.prop)===(D==null?void 0:D.prop)||d===(D==null?void 0:D.prop))&&Array.isArray(i.value)&&(Ze=i.value)!=null&&Ze.every(Se=>typeof Se=="string")&&(D.selectValue=((el=S==null?void 0:S.find(Se=>(Se==null?void 0:Se.key)===(D==null?void 0:D.prop)))==null?void 0:el.value)??((Ye=D.value)==null?void 0:Ye[0])),D}),be.value=ue;let Pe={};(Z=be.value)==null||Z.forEach(D=>{Pe[D.prop]=D==null?void 0:D.value}),ll.value=Pe}let O=je.value,fe={};(pe=be.value)==null||pe.forEach(V=>{var ue,Pe,D,Be,Je,We,qe,Ee,Ke,Ze,el;if(((V==null?void 0:V.directiveLabel)==="#isMain"||(ue=V==null?void 0:V.optionUrl)!=null&&ue.menuId)&&Array.isArray(V==null?void 0:V.value)){if(fe[V.prop]=(D=V.value)==null?void 0:D[((Pe=V.value)==null?void 0:Pe.length)-1],(Be=V==null?void 0:V.prop)!=null&&Be.includes("·")){let Ye=(qe=(We=(Je=V==null?void 0:V.prop)==null?void 0:Je.split("·"))==null?void 0:We.filter(Te=>Te&&Te!==""))==null?void 0:qe.map(Te=>Te==null?void 0:Te.trim()),Se=(el=(Ze=(Ke=(Ee=V==null?void 0:V.selectValue)==null?void 0:Ee[0])==null?void 0:Ke.split(" "))==null?void 0:Ze.filter(Te=>Te&&Te!==""))==null?void 0:el.map(Te=>Te==null?void 0:Te.trim());Ye==null||Ye.forEach((Te,rl)=>{fe[Te]=Se==null?void 0:Se[rl]})}}else fe[V.prop]=(fe==null?void 0:fe[V==null?void 0:V.prop])??V.value});let me=(ke=be.value)==null?void 0:ke.find(V=>{var ue;return(V==null?void 0:V.directiveLabel)==="#isMain"||((ue=V==null?void 0:V.optionUrl)==null?void 0:ue.menuId)});(i==null?void 0:i.directiveLabel)==="#isMain"?O.push({label:i==null?void 0:i.prop,value:(ne=i==null?void 0:i.value)==null?void 0:ne[((J=i==null?void 0:i.value)==null?void 0:J.length)-1],objectValue:fe}):((Ue=me==null?void 0:me.value)==null?void 0:Ue.length)>0&&(O=O==null?void 0:O.map(V=>{var ue;return(V==null?void 0:V.value)===((ue=me==null?void 0:me.selectValue)==null?void 0:ue[0])&&(V.objectValue=fe),V})),je.value=O}Xl.value=!1,ul.value=!1},mo=e=>e?(e==null?void 0:e.toUpperCase())==="INPUT"?"TEXTAREA":e:"TEXTAREA",So=e=>{var s,d;const a=(d=(s=hl.value)==null?void 0:s.find(i=>(i==null?void 0:i.label)===(e==null?void 0:e.label)))==null?void 0:d.multiple,o=e==null?void 0:e.prop;if((e==null?void 0:e.formType)!="Select")return;oe.value.forEach(i=>{const t=i==null?void 0:i[o];a&&ur.isString(t)&&(i[o]=[t]),!a&&!ur.isString(t)&&(i[o]="")})},Za=(e,a)=>{var o;return a==null||a.forEach(r=>{e[r==null?void 0:r.prop]=r==null?void 0:r.value}),e.children&&((o=e.children)==null?void 0:o.length)>0&&(e.children=e.children.map(r=>Za(r,a))),e},ja=e=>{var o,r,n,s,d,i;ea("");const a=(o=be.value)==null?void 0:o.reduce((t,y)=>(t[y.name]=y.value,t),{});if(((r=Object.keys(a))==null?void 0:r.length)>0){ll.value=a,Tl.value="",Fl.value=(n=oe.value)==null?void 0:n.length,_l.value=(s=El.value)==null?void 0:s.filter(y=>(y==null?void 0:y.label)!=="新增");const t=(i=(d=x.value)==null?void 0:d.filter(y=>(y==null?void 0:y.label)!=="操作"))==null?void 0:i.map(y=>{var S,T,P;const A=(T=(S=hl.value)==null?void 0:S.find(z=>(z==null?void 0:z.label)===(y==null?void 0:y.label)))==null?void 0:T.multiple;return So(y),{...y,contents:(y==null?void 0:y.options)??[],optionUrl:y!=null&&y.formMenuSelect&&((P=y==null?void 0:y.formMenuSelect)==null?void 0:P.length)>0?{groupSelect:y==null?void 0:y.groupSelect,menuSelect:y==null?void 0:y.formMenuSelect,selectRelateType:"",type:y==null?void 0:y.formType,multiple:A}:null}});Q.value=t==null?void 0:t.map(y=>Za(y,[{prop:"type",value:"edit"},{prop:"columnType",value:mo(y==null?void 0:y.formType)||(y==null?void 0:y.columnType)}])),Q.value=sa.addOCRColumnToTable(Q.value,ya.value),e==="createClick"&&la(!1)}},Kl={START:"开始时间",END:"结束时间",HOURS:"工时"},xo=(e,a)=>Number(de.dayjs(a).diff(de.dayjs(e),"day",!0).toFixed(1)),er=e=>{var s;const a=u.itemData,o=(s=a==null?void 0:a.find(d=>(d==null?void 0:d.key)==="header"))==null?void 0:s.contents,r=new Map;return o==null||o.forEach((d,i)=>{const{label:t}=d;r.set(t,i)}),!r.has(Kl.START)||!r.has(Kl.END)||!r.has(Kl.HOURS)?e:e==null?void 0:e.map(d=>{const i=d==null?void 0:d[Kl.START],t=d==null?void 0:d[Kl.END],y=xo(i,t);return i&&t&&(d[Kl.HOURS]=`${y}天`),d})},lr=(e,a,o=0)=>{if(o>((a==null?void 0:a.length)??""))return e;const r=a==null?void 0:a[o],n=new Map;for(const d of e){const i=d[r];n.has(i)||n.set(i,[]),n.get(i)&&n.get(i).push(d)}const s=[];for(const[d,i]of n){const[t,...y]=i,A={...t};o+1===((a==null?void 0:a.length)??"")?A.children=i==null?void 0:i.map(S=>(S.level=C.cloneDeep(o)+1,S)).filter((S,T)=>T!==0):y.length>0&&(A.children=lr(y,a,o+1)),A.level=o,s.push(A)}return s},ar=(e,a,o)=>{var n;if(!(a!=null&&a.contents)||((n=a==null?void 0:a.contents)==null?void 0:n.length)===0)return e;let r=[];return r=lr(e,a==null?void 0:a.contents,0),r},rr=(e,a)=>{var z,F,p,_,j,U,b,N,k,E,v,I,L,G,c,B,ie,$,m,w,le,ee,Z,pe,ke,J,ne,Ue,g,M,O,fe,me,V,ue,Pe,D,Be,Je,We,qe,Ee,Ke,Ze,el,Ye,Se,Te,rl,cl,dl,pl,il,Sl;const o=e==null?void 0:e.filter(f=>(f==null?void 0:f.key)==="header");e==null||e.filter(f=>(f==null?void 0:f.key)==="tableIndexColumn")[0];const r=e==null?void 0:e.filter(f=>(f==null?void 0:f.key)==="childTree")[0];let n=!0;if((p=(F=(z=e==null?void 0:e.find(f=>(f==null?void 0:f.key)==="filterAllType"))==null?void 0:z.value)==null?void 0:F.find(f=>(f==null?void 0:f.value)==="onPamButtonContents"))!=null&&p.content){let f=(U=(j=(_=e==null?void 0:e.find(H=>(H==null?void 0:H.key)==="filterAllType"))==null?void 0:_.value)==null?void 0:j.find(H=>(H==null?void 0:H.value)==="onPamButtonContents"))==null?void 0:U.content;f=(b=f==null?void 0:f.split(":"))==null?void 0:b[1],f=(N=f.slice(1,(f==null?void 0:f.length)-1))==null?void 0:N.split(","),n=!!(f!=null&&f.find(H=>H==="操作"))}let s=a;const d=e==null?void 0:e.find(f=>(f==null?void 0:f.key)==="page"),i=e==null?void 0:e.find(f=>(f==null?void 0:f.key)==="rowButton"),t=e==null?void 0:e.find(f=>(f==null?void 0:f.key)==="extraButton"),y=e==null?void 0:e.filter(f=>(f==null?void 0:f.key)==="tableContents"),A=e==null?void 0:e.filter(f=>(f==null?void 0:f.key)==="tableIndex");hl.value=(E=(k=e==null?void 0:e.filter(f=>(f==null?void 0:f.key)==="tableToForm"))==null?void 0:k[0])==null?void 0:E.contents,Fa.value=(d==null?void 0:d.contents)??!0;let S=[];jl.value===""?S=o==null?void 0:o[0]:S=(o==null?void 0:o.find(f=>(f==null?void 0:f.selectLabel)==="("+jl.value+")"))??(o==null?void 0:o.find(f=>!(f!=null&&f.selectLabel)));let T=[];if(jl.value===""?T=A==null?void 0:A[0]:T=(A==null?void 0:A.find(f=>(f==null?void 0:f.selectLabel)==="("+jl.value+")"))??(A==null?void 0:A.find(f=>!(f!=null&&f.selectLabel))),((v=S==null?void 0:S.contents)==null?void 0:v.length)>0){let f=[];if(S!=null&&S.contents.some(W=>Array.isArray(W)&&(W==null?void 0:W.find(h=>h.children))))Ql.value===""?f=(L=(I=de.getGradeColumns(S==null?void 0:S.contents,n))==null?void 0:I[0])==null?void 0:L.filter(W=>!Array.isArray(W)):(Ql.value.split("-"),f=(G=de.getGradeColumns(S==null?void 0:S.contents,n))==null?void 0:G[0]);else{let W=S!=null&&S.contents.some(h=>Array.isArray(h))?(c=S==null?void 0:S.contents)==null?void 0:c[0]:S==null?void 0:S.contents;W==null||W.forEach((h,De)=>{var nl,vl,aa,ra,oa;let Le="";(vl=(nl=_e.value)==null?void 0:nl.split("/"))==null||vl.forEach(xl=>{var na,ia,zl;if(xl!==""){let tl=(zl=(ia=(na=xl==null?void 0:xl.split(Ie+"updateLoading"))==null?void 0:na[0])==null?void 0:ia.split(Ie+"loading"))==null?void 0:zl[0];Le=Le===""?Le+tl:Le+"/"+tl}}),Le=Le+Ie+(h==null?void 0:h.directiveLabel);const Oe=(aa=hl.value)==null?void 0:aa.find(xl=>(xl==null?void 0:xl.prop)===(h==null?void 0:h.prop));f.push({label:(h==null?void 0:h.label)==="操作"?n?"操作":"":(h==null?void 0:h.label)??"",prop:(h==null?void 0:h.label)==="操作"?"operate":(h==null?void 0:h.prop)??"a"+De,width:h!=null&&h.width?parseInt(h.width):"",fixed:(h==null?void 0:h.fixed)??void 0,sortable:(h==null?void 0:h.sortable)??!1,filterable:(h==null?void 0:h.filterable)??!1,operable:(h==null?void 0:h.operable)??!1,showSummary:(h==null?void 0:h.showSummary)??!1,align:(h==null?void 0:h.align)??"left",showOverflowTooltip:(h==null?void 0:h.showOverflowTooltip)??!0,isNotDrag:(h==null?void 0:h.isNotDrag)??!1,isEditCol:(h==null?void 0:h.isEditCol)??!1,isOperate:(h==null?void 0:h.isOperate)??!1,id:(h==null?void 0:h.id)??De,type:(h==null?void 0:h.label)==="操作"?"operate":void 0,formType:(h==null?void 0:h.formType)??(h!=null&&h.groupSelect?"Select":""),isTableColHidden:h==null?void 0:h.isTableColHidden,isFormColHidden:h==null?void 0:h.isFormColHidden,disabled:h==null?void 0:h.disabled,options:(h==null?void 0:h.options)??[],value:(h==null?void 0:h.value)??"",formMenuSelect:(h==null?void 0:h.formMenuSelect)??[],isRoute:(h==null?void 0:h.isRoute)??!1,groupSelect:h!=null&&h.groupSelect?(ra=h==null?void 0:h.groupSelect)==null?void 0:ra.replaceAll('"',"").split(":"):[],isMainKey:(h==null?void 0:h.isMainKey)||(h==null?void 0:h.directiveLabel)==="#isMain",columnType:(Oe==null?void 0:Oe.type)||(h==null?void 0:h.columnType)||"TEXTAREA",directiveLabel:h==null?void 0:h.directiveLabel,directiveColor:(h==null?void 0:h.directiveColor)??!1,isExistChild:!!(h!=null&&h.directiveLabel&&!(s!=null&&s[Le])&&!((oa=h==null?void 0:h.directiveLabel)!=null&&oa.includes("@"))&&(h==null?void 0:h.directiveLabel)!=="#isMain"),childPath:(h==null?void 0:h.directiveLabel)!=="#isMain"?Le:void 0,allSelectionContents:(h==null?void 0:h.allSelectionContents)??[],selectFilter:h==null?void 0:h.selectFilter,menuId:h==null?void 0:h.menuId,filterContent:h==null?void 0:h.filterContent,relatedValueId:h==null?void 0:h.relatedValueId})})}Q.value=de.getNewColumnChild(f),ql.value=de.getNewColumnChild(f),Q.value=sa.addOCRColumnToTable(Q.value,ya.value),ql.value=sa.addOCRColumnToTable(ql.value,ya.value),ae.value=(B=Q.value)==null?void 0:B.map(W=>W==null?void 0:W.label),Ae.value=(ie=Q.value)==null?void 0:ie.every(W=>W==null?void 0:W.filterable),Re.value=($=Q.value)==null?void 0:$.every(W=>W==null?void 0:W.operable),ge.value=(m=Q.value)==null?void 0:m.every(W=>W==null?void 0:W.sortable);let H=(le=(w=de.getAllLeafNodes(Q.value))==null?void 0:w.filter(W=>(W==null?void 0:W.type)!=="operate"))==null?void 0:le.map((W,h)=>({prop:(W==null?void 0:W.prop)??"a"+h,column:W.label}));gl.value=H;let he=[];jl.value===""?he=y==null?void 0:y[0]:he=(y==null?void 0:y.find(W=>(W==null?void 0:W.selectLabel)==="("+jl.value+")"))??(y==null?void 0:y.find(W=>!(W!=null&&W.selectLabel)));let ol=Array.isArray((ee=he==null?void 0:he.contents)==null?void 0:ee[0])&&((Z=he==null?void 0:he.contents)!=null&&Z[0].every(W=>Array.isArray(W)))?(pe=he==null?void 0:he.contents)==null?void 0:pe[0]:he==null?void 0:he.contents;T!=null&&T.contents&&((ke=T==null?void 0:T.contents)==null?void 0:ke.length)!==0&&(ol=(J=C.cloneDeep(ol))==null?void 0:J.map((W,h)=>{if(!Array.isArray(W)){let De={};for(let Le in W)Le!=="id"&&Le!=="index"&&(De[Le]=W[Le]);W=Object.values(De)}return W}));const Al=!!((ne=Q.value)!=null&&ne.find(W=>W.prop==="index"));ol=dr(ol,T==null?void 0:T.contents,Al);const ve=[];ol==null||ol.forEach((W,h)=>{var Le;let De={};if(Array.isArray(W)){let Oe=[];W==null||W.filter(nl=>!(nl!=null&&nl.id)).forEach((nl,vl)=>{var aa,ra,oa,xl,na,ia;if((aa=H==null?void 0:H[vl])!=null&&aa.prop&&!Array.isArray(nl)){let zl={};zl[H[vl].column]=nl,we!=null&&we.value&&((ra=we==null?void 0:we.value)==null?void 0:ra.length)>0&&((oa=we==null?void 0:we.value)!=null&&oa.find(tl=>JSON.stringify(tl==null?void 0:tl[0])===JSON.stringify(zl)))&&(Oe=(xl=we==null?void 0:we.value)==null?void 0:xl.find(tl=>JSON.stringify(tl==null?void 0:tl[0])===JSON.stringify(zl))),Oe&&Oe.length>0?De[H[vl].prop]=Oe!=null&&Oe.find(tl=>{var ua;return((ua=Object.keys(tl))==null?void 0:ua[0])===H[vl].column})?(na=Oe==null?void 0:Oe.find(tl=>{var ua;return((ua=Object.keys(tl))==null?void 0:ua[0])===H[vl].column}))==null?void 0:na[H[vl].column]:nl:De[H[vl].prop]=nl}else Array.isArray(nl)&&((ia=H[vl])!=null&&ia.prop?De[H[vl].prop]=nl:De.children=Pa(nl,H))})}else De=W;Array.isArray(W)&&W.some(Oe=>Oe==null?void 0:Oe.id)?ve.push(Object.assign(De,{id:(Le=W==null?void 0:W.find(Oe=>Oe.id))==null?void 0:Le.id})):De.id?ve.push(De):ve.push(Object.assign(De,{id:h.toString()}))}),oe.value=ar(ve,r,Q.value),da.value=ve,(Ue=da.value)==null||Ue.forEach(W=>{var h;(h=ta.value)==null||h.set(W.id,W)})}else Q.value=[],x.value=[],oe.value=[],da.value=[],ta.value=new Map;if(((g=i==null?void 0:i.contents)==null?void 0:g.length)>0)if((fe=(O=(M=e==null?void 0:e.find(f=>(f==null?void 0:f.key)==="filterAllType"))==null?void 0:M.value)==null?void 0:O.find(f=>(f==null?void 0:f.value)==="onRowButtonContents"))!=null&&fe.content){let f=(ue=(V=(me=e==null?void 0:e.find(H=>(H==null?void 0:H.key)==="filterAllType"))==null?void 0:me.value)==null?void 0:V.find(H=>(H==null?void 0:H.value)==="onButtonContents"))==null?void 0:ue.content;f=(Pe=f==null?void 0:f.split(":"))==null?void 0:Pe[1],f=(D=f.slice(1,(f==null?void 0:f.length)-1))==null?void 0:D.split(","),Ol.value=(Be=i==null?void 0:i.contents)==null?void 0:Be.filter(H=>f==null?void 0:f.find(he=>he===(H==null?void 0:H.label)))}else Ol.value=i==null?void 0:i.contents;else Ol.value=[];if(((Je=t==null?void 0:t.contents)==null?void 0:Je.length)>0)if((Ee=(qe=(We=e==null?void 0:e.find(f=>(f==null?void 0:f.key)==="filterAllType"))==null?void 0:We.value)==null?void 0:qe.find(f=>(f==null?void 0:f.value)==="onButtonContents"))!=null&&Ee.content){let f=(el=(Ze=(Ke=e==null?void 0:e.find(H=>(H==null?void 0:H.key)==="filterAllType"))==null?void 0:Ke.value)==null?void 0:Ze.find(H=>(H==null?void 0:H.value)==="onButtonContents"))==null?void 0:el.content;f=(Ye=f==null?void 0:f.split(":"))==null?void 0:Ye[1],f=(Se=f.slice(1,(f==null?void 0:f.length)-1))==null?void 0:Se.split(","),_l.value=(Te=t==null?void 0:t.contents)==null?void 0:Te.filter(H=>f==null?void 0:f.find(he=>he===(H==null?void 0:H.label))),El.value=(rl=t==null?void 0:t.contents)==null?void 0:rl.filter(H=>f==null?void 0:f.find(he=>he===(H==null?void 0:H.label))),Ce.value=!!(f!=null&&f.find(H=>H==="搜索")),te.value=!!(f!=null&&f.find(H=>H==="块状显示"))}else _l.value=t==null?void 0:t.contents,El.value=t==null?void 0:t.contents;else _l.value=[],El.value=[];const P={label:"OCR识别",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"};(cl=_l.value)!=null&&cl.find(f=>(f==null?void 0:f.label)==="OCR识别")||_l.value.push(P),(dl=El.value)!=null&&dl.find(f=>(f==null?void 0:f.label)==="OCR识别")||El.value.push(P),Fl.value=((pl=oe==null?void 0:oe.value)==null?void 0:pl.length)??0,er(oe.value),ga.value=oe.value,bl.value&&(Q.value=(Sl=(il=x.value)==null?void 0:il.filter(f=>(f==null?void 0:f.label)!=="操作"))==null?void 0:Sl.map(f=>{var H;return{...f,type:"edit",optionUrl:f!=null&&f.formMenuSelect&&((H=f==null?void 0:f.formMenuSelect)==null?void 0:H.length)>0?{groupSelect:f==null?void 0:f.groupSelect,menuSelect:f==null?void 0:f.formMenuSelect,selectRelateType:"",type:f==null?void 0:f.formType}:null}}),ja())};l.watch(()=>[u.itemData,jl.value,Sr.value,Ql.value,we==null?void 0:we.value],async()=>{var e,a,o,r,n,s;if((e=u==null?void 0:u.itemData)!=null&&e.find(d=>(d==null?void 0:d.key)==="columnPath")&&!((a=Wl.value)!=null&&a.find(d=>{var i,t;return(d==null?void 0:d.key)===((t=(i=u==null?void 0:u.itemData)==null?void 0:i.find(y=>(y==null?void 0:y.key)==="columnPath"))==null?void 0:t.contents)}))){let d=Wl.value,i={key:(r=(o=u==null?void 0:u.itemData)==null?void 0:o.find(t=>(t==null?void 0:t.key)==="columnPath"))==null?void 0:r.contents,value:(s=(n=u==null?void 0:u.itemData)==null?void 0:n.find(t=>(t==null?void 0:t.key)==="columnUsingPath"))==null?void 0:s.contents};d!=null&&d.find(t=>(t==null?void 0:t.key)===(i==null?void 0:i.key))?d=d==null?void 0:d.map(t=>((t==null?void 0:t.key)===(i==null?void 0:i.key)&&(t.value=i.value),t)):d.push(i),ze.setTableViewContents(d)}rr(u.itemData,u.allMapContents)},{deep:!0,immediate:!0}),l.watch(()=>u==null?void 0:u.operatingForm,e=>{e!=null&&e.form&&(ea(e==null?void 0:e.form),sl.value=e==null?void 0:e.dialogTitle,ha.value=!0,Nl.value=!0)},{immediate:!0,deep:!0});const or=()=>{var e;(e=$e.value)!=null&&e.includes("read")&&(bl.value=!bl.value)},Co=()=>{ba.value=!ba.value};l.watch(()=>{var e;return(e=u==null?void 0:u.config)==null?void 0:e.viewport},e=>{var a;$e.value=e,(e==null?void 0:e.length)===0?bl.value=!1:(e!=null&&e.includes("read")||(bl.value=!0),e!=null&&e.includes("edit")||(bl.value=!1)),xe.value=((a=u==null?void 0:u.config)==null?void 0:a.showIndex)||bl.value},{immediate:!0}),l.watch(()=>bl.value,e=>{var a;e?(ja("viewChange"),ze.setCacheUpdatingData(null)):(_l.value=El.value,Q.value=ql.value,Jl.value&&(ze.setTableLoading(u==null?void 0:u.index),re("change",Jl.value))),ce.value=e,xe.value=e||((a=u==null?void 0:u.config)==null?void 0:a.showIndex)},{immediate:!0}),l.watch(()=>{var e;return(e=za.value)==null?void 0:e.length},e=>{e===0&&(Fe.currentPage=1)}),l.watch(()=>u==null?void 0:u.compNames,e=>{Ve.contents=[{label:"列表名",prop:"groupName",name:"列表名",type:"select",value:"",id:0,contents:e||[],width:1}]},{immediate:!0}),l.ref(!1);const Do=(e,a)=>{var o;ja("createClick"),a===Fe.pageSize&&(Fe.currentPage=Math.ceil(((o=oe.value)==null?void 0:o.length)/Fe.pageSize))},To=(e,a,o)=>{var r;Ya(o,e,a),ll.value=C.cloneDeep(e),Tl.value=e==null?void 0:e.id,Fl.value=(r=oe.value)==null?void 0:r.length,sl.value=typeof(e==null?void 0:e.id)=="string"?"新增":"编辑",la(!1)},al=e=>{var t,y,A,S,T,P,z,F,p,_;const{row:a,column:o,item:r,slotData:n}=e;let s=a!=null&&a[o==null?void 0:o.prop]||(a==null?void 0:a[o==null?void 0:o.prop])===0?((y=(t=a==null?void 0:a[o==null?void 0:o.prop])==null?void 0:t[0])==null?void 0:y.contents)??((a==null?void 0:a[o==null?void 0:o.prop])===0?"0":a==null?void 0:a[o==null?void 0:o.prop]):((S=(A=a==null?void 0:a[r==null?void 0:r.prop])==null?void 0:A[0])==null?void 0:S.contents)??(a==null?void 0:a[r==null?void 0:r.prop])??((P=(T=n==null?void 0:n[r==null?void 0:r.prop])==null?void 0:T[0])==null?void 0:P.contents)??(n==null?void 0:n[r==null?void 0:r.prop])??((p=(F=a==null?void 0:a[(z=r==null?void 0:r.child)==null?void 0:z.prop])==null?void 0:F[0])==null?void 0:p.contents)??(a==null?void 0:a[(_=r==null?void 0:r.child)==null?void 0:_.prop]),i=Array.isArray(s)&&!(s!=null&&s.every(j=>typeof j=="string"||typeof j=="number"))?"查看":s;return i=Array.isArray(i)?i.join(","):i,i},No=e=>{var y,A,S,T,P,z,F,p,_,j;const{row:a,column:o,item:r,slotData:n}=e;let s=a!=null&&a[o==null?void 0:o.prop]?((A=(y=a==null?void 0:a[o==null?void 0:o.prop])==null?void 0:y[0])==null?void 0:A.contents)??(a==null?void 0:a[o==null?void 0:o.prop]):((T=(S=a==null?void 0:a[r==null?void 0:r.prop])==null?void 0:S[0])==null?void 0:T.contents)??(a==null?void 0:a[r==null?void 0:r.prop])??((z=(P=n==null?void 0:n[r==null?void 0:r.prop])==null?void 0:P[0])==null?void 0:z.contents)??(n==null?void 0:n[r==null?void 0:r.prop])??((_=(p=a==null?void 0:a[(F=r==null?void 0:r.child)==null?void 0:F.prop])==null?void 0:p[0])==null?void 0:_.contents)??(a==null?void 0:a[(j=r==null?void 0:r.child)==null?void 0:j.prop]);const i=Array.isArray(s)&&!(s!=null&&s.every(U=>typeof U=="string"||typeof U=="number")),t=Array.isArray(s)&&(s==null?void 0:s.find(U=>U==null?void 0:U.url));return i&&t},Eo=(e,a)=>e.find(o=>Object.values(o).some(r=>r===a));return l.watch(()=>vr.value,async e=>{if(e){Ge.setContentLoading(!0),await l.nextTick();const a=Eo(oe.value,e==null?void 0:e.data);if(!a)return Ge.setContentLoading(!1);await Ja(e==null?void 0:e.data,null,a,{data:e==null?void 0:e.data,isMainKey:!0}),Ge.setContentLoading(!1)}},{deep:!0,immediate:!0}),l.watch(()=>u==null?void 0:u.cacheNewData,e=>{var a;e&&(Array.isArray(e)||(e==null?void 0:e.compId)===(u==null?void 0:u.index)&&(oe.value=(a=oe.value)==null?void 0:a.map(o=>{var r;return(o==null?void 0:o.id)===((r=e==null?void 0:e.data)==null?void 0:r.id)?{...o,id:e==null?void 0:e.resId}:o})))},{immediate:!0,deep:!0}),(e,a)=>{var T,P,z,F;const o=l.resolveComponent("svg-icon"),r=l.resolveComponent("el-popover"),n=l.resolveComponent("el-switch"),s=l.resolveComponent("el-checkbox"),d=l.resolveComponent("el-checkbox-group"),i=l.resolveComponent("el-button"),t=l.resolveComponent("LookComponent"),y=l.resolveComponent("el-icon"),A=l.resolveComponent("el-upload"),S=l.resolveDirective("loading");return l.openBlock(),l.createElementBlock("div",rn,[Ka.value?(l.openBlock(),l.createBlock(fl.ssTable,{id:"excel-table",pageObj:Fe,showIndex:xe.value,isTree:(T=q.compItem)==null?void 0:T.isTree,summaryInfo:He,columns:Q.value,defaultSort:Y,isCardViewport:ba.value,checkedColumns:ae.value,key:Ba.value+JSON.stringify(Q.value),tableData:za.value,isEditViewport:bl.value,isShowPagination:Fa.value,isShowEdit:!1,isShowDelete:!1,allowSelect:ce.value,onDbClickRow:Ir,extraButton:_l.value,rowButton:Ol.value,cacheExtraButtons:El.value,isClearSelection:((P=kl.value)==null?void 0:P.length)===0,onDoCurrentChange:Ar,onDoSizeChange:_r,onContentClick:Ja,onRowClick:Qr,onSelectChange:Mr,onCellChange:To,onChange:Ya,onPreview:Va,onSubmitEditingTable:jr,onHandleColEditChange:Ur,onHandleColTypeChange:Lr,onClickButton:Sa},l.createSlots({headerButton:l.withCtx(p=>{var _,j;return[q.showHeader?(l.openBlock(),l.createBlock(Jo,{key:0,pageLayout:q.pageLayout,lockingPage:l.unref(ca)===l.unref(_e),filterValues:qa.value,selectNums:(_=kl.value)==null?void 0:_.length,dataNums:(j=oe.value)==null?void 0:j.length,compName:q.compName,isDevMode:q.isDevMode,buttons:p.buttons,onButtonClick:a[1]||(a[1]=U=>Sa(U,"",{})),columns:Q.value,onFilter:Gr,onGetImportData:Or,level:q.level,filterShow:Ce.value},null,8,["pageLayout","lockingPage","filterValues","selectNums","dataNums","compName","isDevMode","buttons","columns","level","filterShow"])):l.createCommentVNode("",!0)]}),viewport:l.withCtx(()=>{var p,_,j,U;return[((p=oe.value)==null?void 0:p.length)>0&&q.allowOperate&&te.value?(l.openBlock(),l.createElementBlock("div",un,[(_=$e.value)!=null&&_.includes("read")&&((j=$e.value)!=null&&j.includes("edit"))&&((U=Ol.value)!=null&&U.some(b=>(b==null?void 0:b.label)==="编辑"))&&!ba.value&&l.unref(ca)!==l.unref(_e)?(l.openBlock(),l.createElementBlock("span",{key:0,title:"编辑表格",onClick:or},[l.createVNode(o,{name:"editTable",class:"view-icon"})])):l.createCommentVNode("",!0),l.createElementVNode("span",{title:"卡片视图",onClick:Co},[l.createVNode(o,{name:"cardViewport",class:"view-icon"})])])):l.createCommentVNode("",!0)]}),rowCreate:l.withCtx(({row:p,index:_})=>[l.createElementVNode("span",{title:"新增",class:"row-create-wrap",onClick:j=>Do(p,_)},[l.createVNode(o,{name:"rowCreate",style:{width:"10px",height:"10px"}})],8,sn)]),operateCol:l.withCtx(()=>[l.createVNode(r,{title:"选择显示列信息",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:bo},{reference:l.withCtx(()=>[l.createElementVNode("span",cn,[l.createVNode(o,{name:"operate",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),default:l.withCtx(()=>[l.createElementVNode("div",dn,[a[13]||(a[13]=l.createElementVNode("div",{class:"group-title"},"表格操作",-1)),l.createVNode(n,{"model-value":ge.value,"active-text":"排序","inactive-text":"",style:{"margin-right":"8px"},onChange:a[3]||(a[3]=p=>Oa(p,"sortable"))},null,8,["model-value"]),l.createVNode(n,{"model-value":Ae.value,"active-text":"筛选","inactive-text":"",style:{"margin-right":"8px"},onChange:a[4]||(a[4]=p=>Oa(p,"filterable"))},null,8,["model-value"]),l.createVNode(n,{"model-value":Re.value,"active-text":"编辑所有表头","inactive-text":"",onChange:a[5]||(a[5]=p=>Oa(p,"operable"))},null,8,["model-value"]),a[14]||(a[14]=l.createElementVNode("div",{class:"group-title"},"表格列操作",-1)),l.createVNode(d,{modelValue:ae.value,"onUpdate:modelValue":a[6]||(a[6]=p=>ae.value=p),style:{height:"100%"},min:2,ref_key:"checkboxGroupRef",ref:K},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(Yl.value,p=>(l.openBlock(),l.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:p.label},[l.createVNode(s,{value:p.label,style:{width:"100%",marginRight:0}},{default:l.withCtx(()=>[l.createElementVNode("span",{title:p.label,style:{display:"inline-block",width:"250px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},l.toDisplayString(p.label),9,tn)]),_:2},1032,["value"]),l.createVNode(r,{title:"列操作",placement:"left",teleported:!1,trigger:"hover"},{reference:l.withCtx(()=>[l.createVNode(o,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:l.withCtx(()=>{var _;return[l.createElementVNode("div",pn,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((_=Object.keys(p))==null?void 0:_.filter(j=>{var U;return(U=Cl.value)==null?void 0:U.find(b=>(b==null?void 0:b.value)===j)}),j=>{var U,b;return l.openBlock(),l.createElementBlock("div",{key:j},[l.createVNode(n,{"model-value":p==null?void 0:p[j],"active-text":(b=(U=Cl.value)==null?void 0:U.find(N=>(N==null?void 0:N.value)===j))==null?void 0:b.label,onChange:N=>Fr(N,j,p)},null,8,["model-value","active-text","onChange"])])}),128))])]}),_:2},1024),l.createElementVNode("span",fn,[l.createVNode(o,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:1},8,["modelValue"])])]),_:1})]),content:l.withCtx(p=>{var _,j,U,b,N,k,E,v,I,L,G,c,B,ie,$,m,w,le,ee,Z;return[((_=p==null?void 0:p.column)==null?void 0:_.label)==="OCR图片"||((j=p==null?void 0:p.column)==null?void 0:j.prop)==="OCR图片"?(l.openBlock(),l.createElementBlock("div",hn,[l.createVNode(o,{name:"query",style:{width:"20px",height:"20px",color:"var(--ss-ocr-icon-color)",cursor:"pointer"},onClick:l.withModifiers(pe=>no(p==null?void 0:p.row),["stop"]),title:"OCR识别"},null,8,["onClick"])])):No(p)?(l.openBlock(),l.createBlock(r,{key:1,"popper-class":"file-popover",placement:"right",trigger:"hover",effect:"light",width:"auto"},{reference:l.withCtx(()=>[l.createElementVNode("span",vn,l.toDisplayString(al(p)),1)]),default:l.withCtx(()=>{var pe,ke;return[l.createElementVNode("div",yn,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((ke=p==null?void 0:p.row)==null?void 0:ke[(pe=p==null?void 0:p.column)==null?void 0:pe.prop],J=>(l.openBlock(),l.createElementBlock("div",gn,[l.createElementVNode("div",{class:"prop-url",title:ma(J),onClick:ne=>zr(J)},l.toDisplayString(ma(J)),9,bn),l.createElementVNode("div",{class:"prop-download",onClick:ne=>Vr(J)}," 下载 ",8,kn)]))),256))])]}),_:2},1024)):(l.openBlock(),l.createElementBlock("div",{key:2,style:l.normalizeStyle({color:!Array.isArray(al(p))&&((b=(U=al(p))==null?void 0:U.toString())!=null&&b.includes(".txt")||(k=(N=al(p))==null?void 0:N.toString())!=null&&k.includes(".cpt")||(v=(E=al(p))==null?void 0:E.toString())!=null&&v.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray(al(p))&&((L=(I=al(p))==null?void 0:I.toString())!=null&&L.includes(".txt")||(c=(G=al(p))==null?void 0:G.toString())!=null&&c.includes(".cpt")||(ie=(B=al(p))==null?void 0:B.toString())!=null&&ie.includes(".cyd"))?"underline":"",cursor:!Array.isArray(al(p))&&((m=($=al(p))==null?void 0:$.toString())!=null&&m.includes(".txt")||(le=(w=al(p))==null?void 0:w.toString())!=null&&le.includes(".cpt")||(Z=(ee=al(p))==null?void 0:ee.toString())!=null&&Z.includes(".cyd"))?"pointer":"",marginLeft:(p==null?void 0:p.colIndex)===0?`${((p==null?void 0:p.level)??0)*20}px`:0}),onClick:pe=>Er(al(p))},l.toDisplayString(al(p)===0?"0":al(p)),13,mn))]}),_:2},[((z=Ol.value)==null?void 0:z.length)>0&&l.unref(ca)!==l.unref(_e)?{name:"actions",fn:l.withCtx(({item:p})=>[l.createVNode(r,{title:"",placement:"left-start","popper-class":"menu-operate-popover"},{reference:l.withCtx(()=>[l.createVNode(o,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"},onClick:a[0]||(a[0]=l.withModifiers(()=>{},["stop"]))})]),default:l.withCtx(()=>[l.createElementVNode("div",on,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(qr(Ol.value,p),(_,j)=>(l.openBlock(),l.createElementBlock("div",{class:"menu-config-item",key:j,onClick:l.withModifiers(U=>Sa(_==null?void 0:_.label,p,{extra:_}),["stop"])},[l.createElementVNode("div",{style:l.normalizeStyle({color:_==null?void 0:_.textColor}),class:"extra-button-label"},l.toDisplayString(_==null?void 0:_.label),5)],8,nn))),128))])]),_:2},1024)]),key:"0"}:void 0,((F=oe.value)==null?void 0:F.length)>0?{name:"batchButton",fn:l.withCtx(p=>[l.withDirectives(l.createVNode(Go,{lockingPage:l.unref(ca)===l.unref(_e),buttons:p.buttons,selectTableItems:kl.value,onButtonClick:a[2]||(a[2]=_=>Sa(_,"",{}))},null,8,["lockingPage","buttons","selectTableItems"]),[[l.vShow,ce.value]]),l.withDirectives(l.createElementVNode("div",null,null,512),[[l.vShow,!ce.value]])]),key:"1"}:void 0]),1032,["pageObj","showIndex","isTree","summaryInfo","columns","defaultSort","isCardViewport","checkedColumns","tableData","isEditViewport","isShowPagination","allowSelect","extraButton","rowButton","cacheExtraButtons","isClearSelection"])):l.createCommentVNode("",!0),l.createVNode(Vl.ssDialog,{title:sl.value,visible:Nl.value,width:Cr.value,onBeforeDestroy:Rr,style:{height:"74%"}},{default:l.withCtx(()=>[l.createElementVNode("div",Sn,[l.createVNode(fl.ssForm,{rowContents:be.value,isEnableWrap:!1,showOperator:!1,onChange:ko,onFixChangeValue:Wr,onClickTrigger:Kr,isEdit:pa.value,onBlurChange:Pr,onCreate:$r,onTagChange:Nr},null,8,["rowContents","isEdit"])])]),footer:l.withCtx(()=>[ha.value?(l.openBlock(),l.createElementBlock("div",xn,[l.createVNode(i,{onClick:a[7]||(a[7]=p=>Nl.value=!1),id:"themeBorderButton"},{default:l.withCtx(()=>a[15]||(a[15]=[l.createTextVNode(l.toDisplayString("取消"))])),_:1,__:[15]}),l.createVNode(i,{class:"ok-button",onClick:a[8]||(a[8]=p=>la(!0)),id:"themeButton"},{default:l.withCtx(()=>a[16]||(a[16]=[l.createTextVNode(l.toDisplayString("确认"))])),_:1,__:[16]})])):l.createCommentVNode("",!0)]),_:1},8,["title","visible","width"]),l.createVNode(Vl.ssDialog,{title:sl.value,visible:fa.value,width:Na.value,onBeforeDestroy:a[10]||(a[10]=p=>fa.value=!1)},{default:l.withCtx(()=>[l.createVNode(Yo)]),footer:l.withCtx(()=>[l.createElementVNode("div",Cn,[l.createVNode(i,{onClick:a[9]||(a[9]=p=>fa.value=!1),class:"cancel-button",id:"themeBorderButton"},{default:l.withCtx(()=>a[17]||(a[17]=[l.createTextVNode(l.toDisplayString("取消"))])),_:1,__:[17]}),l.createVNode(i,{class:"ok-button",onClick:Xr,id:"themeButton"},{default:l.withCtx(()=>a[18]||(a[18]=[l.createTextVNode(l.toDisplayString("确认"))])),_:1,__:[18]})])]),_:1},8,["title","visible","width"]),Ll.value?(l.openBlock(),l.createBlock(fl.ssFilePreview,{key:1,fileDataList:Pl.value,onDestroy:Hr},null,8,["fileDataList"])):l.createCommentVNode("",!0),Me.value?(l.openBlock(),l.createBlock(Vl.ssDialog,{key:2,visible:Me.value,onBeforeDestroy:yo,style:{height:"80vh",width:"80vw"},"body-class":"three-dialog-body","footer-class":"three-dialog-footer"},{default:l.withCtx(()=>[l.createVNode(ir.ThreeViewerHost,{files:Gl.value,threeData:ye.value},null,8,["files","threeData"])]),_:1},8,["visible"])):l.createCommentVNode("",!0),l.createVNode(Vl.ssDialog,{visible:e.componentVisible,onBeforeDestroy:a[11]||(a[11]=p=>e.componentVisible=!1),width:Na.value,style:{height:"70vh"}},{default:l.withCtx(()=>[l.createVNode(t,{dialogItem:Ml.value},null,8,["dialogItem"])]),_:1},8,["visible","width"]),l.createVNode(Vl.ssDialog,{title:"上传OCR图片",visible:va.value,onBeforeDestroy:Ga,width:"600px"},{default:l.withCtx(()=>[l.withDirectives((l.openBlock(),l.createElementBlock("div",null,[l.createVNode(A,{"file-list":Bl.value,"onUpdate:fileList":a[12]||(a[12]=p=>Bl.value=p),multiple:"",drag:"",action:"","auto-upload":!1,limit:20,accept:"image/*","on-change":io,class:"upload-content"},{tip:l.withCtx(()=>a[19]||(a[19]=[l.createElementVNode("div",{class:"el-upload__tip tip-content"}," 请上传图片文件,大小不超过10MB ",-1)])),default:l.withCtx(()=>[l.createVNode(y,{class:"el-icon--upload"},{default:l.withCtx(()=>[l.createVNode(l.unref(C.upload_filled_default))]),_:1}),a[20]||(a[20]=l.createElementVNode("div",{class:"el-upload__text"},[l.createTextVNode(" 将图片拖到此处或"),l.createElementVNode("em",null,"点击上传")],-1))]),file:l.withCtx(({file:p,index:_})=>[l.createElementVNode("div",Dn,[l.createElementVNode("div",{class:"upload-content-title",style:{flex:"1",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:p==null?void 0:p.name},l.toDisplayString(p==null?void 0:p.name),9,Tn),l.createElementVNode("div",Nn,[l.createVNode(o,{class:"icon-blue",name:"EyeFill",style:{width:"15px",height:"15px",cursor:"pointer",color:"var(--ssform-label-color)"},onClick:j=>so(p),title:"预览"},null,8,["onClick"]),l.createVNode(o,{class:"icon-blue",name:"Cancel",style:{width:"15px",height:"15px",cursor:"pointer",color:"var(--ssform-label-color)"},onClick:j=>to(_),title:"删除"},null,8,["onClick"])])])]),_:1},8,["file-list"])])),[[S,Il.value]])]),footer:l.withCtx(()=>[l.createElementVNode("div",En,[l.createVNode(i,{onClick:Ga,id:"themeBorderButton",disabled:Il.value},{default:l.withCtx(()=>a[21]||(a[21]=[l.createTextVNode("取消")])),_:1,__:[21]},8,["disabled"]),l.createVNode(i,{class:"ok-button",onClick:uo,id:"themeButton",disabled:Il.value},{default:l.withCtx(()=>a[22]||(a[22]=[l.createTextVNode("确认")])),_:1,__:[22]},8,["disabled"])])]),_:1},8,["visible"]),Ea.value?(l.openBlock(),l.createBlock(fl.ssFilePreview,{key:3,fileDataList:Aa.value,onDestroy:co},null,8,["fileDataList"])):l.createCommentVNode("",!0),l.createVNode(Vl.ssDialog,{title:Ve.title,visible:Ve.show,width:Ve.width,onBeforeDestroy:ro},{default:l.withCtx(()=>[l.createElementVNode("div",An,[l.createVNode(fl.ssForm,{rowContents:Ve==null?void 0:Ve.contents,formRules:Ve==null?void 0:Ve.formRules,showOperator:!1,buttonValue:Ve.buttonValue,isEdit:pa.value,isStartJustify:!1,isEnableWrap:!1,onOnButtonClick:oo},null,8,["rowContents","formRules","buttonValue","isEdit"])])]),_:1},8,["title","visible","width"])])}}},Bn=Da._export_sfc(_n,[["__scopeId","data-v-cc874332"]]);exports.formGetOptions=Ma;exports.getSelectRow=Ca;exports.ssTable=Bn;exports.useFormComp=fr;exports.useFormToTableComp=cr;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C8n9olfd.cjs");const c=require("./index-DOItJqcJ.cjs"),r=require("./index-CXC0u8pm.cjs"),i=require("./index-B2FiRoly.cjs"),y=r.useModelComp(),{itemData:g}=c.storeToRefs(y),p=o.ref(0),D=o.ref([{label:"机构名称",value:"",name:"deptName"}]),f=e=>{console.log("handleQueryChange",e)},u=o.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"header",contents:[{label:"机构名称",prop:"deptName"},{label:"机构类型",prop:"deptType",formType:"Select",options:[{label:"集团",value:"集团"},{label:"公司",value:"公司"},{label:"部门",value:"部门"},{label:"区域",value:"区域"},{label:"组",value:"组"}]},{label:"机构状态",formType:"Radio",prop:"deptStatus",options:[{label:"启用",value:"启用"},{label:"禁用",value:"禁用"}]},{label:"操作"}]},{key:"tableContents",contents:[]}]),m=e=>{r.submitTableAsyncByVerify(e.singleContent,e.buttonName,p.value)},h=e=>{console.log("onDoubleClick",e)},C=(e,a)=>{console.log("onButtonClick",e,a)},_=async e=>{const a=await r.handleSubmitAsync(c.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:e}},"查询"),l=a==null?void 0:a.map(t=>{var n;return{id:t.id,tableData:(n=t==null?void 0:t.value)==null?void 0:n.tableData}});return l==null?void 0:l.map(t=>{var n;if(Array.isArray(t==null?void 0:t.tableData)){let s={id:t.id};return(n=t==null?void 0:t.tableData)==null||n.forEach((d,b)=>{s[`a${b}`]=d}),s}else return{...t.tableData,id:t.id}})},S={comp:"Group",name:"/系统管理/部门管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:u.value,name:""}]}]};o.watch(()=>g.value,e=>{var a;e&&(e==null?void 0:e.length)>0&&(u.value=(a=e==null?void 0:e[0])==null?void 0:a.compData)});const k=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:_,handleItemDataChange:m,handleQueryChange:f,onButtonClick:C,onDoubleClick:h,pageData:u,queryFormData:D,structureId:p,tempDeptPageData:S},Symbol.toStringTag,{value:"Module"})),v={class:"role-wrapper"},T=o.defineComponent({__name:"index",setup(e){const a=o.reactive({...k}),l=r.useMenuState(),{activeMenuPath:t}=c.storeToRefs(l);return o.onMounted(async()=>{a.structureId=await r.getActivePageStructureId(t.value)}),(n,s)=>(o.openBlock(),o.createElementBlock("div",v,[o.createVNode(i.ssTable,{itemData:a.pageData,onChange:a.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=T;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),d=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";const e=require("vue"),d=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C8n9olfd.cjs"),p=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),_={__name:"index",props:{optionContents:{type:Object,default:()=>{}}},setup(a){const s=a;let t=null,n=null;const r=e.ref({}),o=e.ref(null),u=()=>{o.value&&(n=new ResizeObserver(()=>{i()}),n.observe(o.value))};e.onMounted(()=>{r.value=s.optionContents,c(),window.addEventListener("resize",i),u()}),e.watch(()=>s.optionContents,()=>{r.value=s.optionContents,c()}),e.onUnmounted(()=>{n&&n.disconnect(),window.removeEventListener("resize",i)});const i=()=>{t.resize()},c=()=>{t&&t.dispose(),t=d.init(o.value);const l=r.value;t.setOption(l),t.resize()};return(l,f)=>(e.openBlock(),e.createElementBlock("div",{id:"chartModelId",class:"chart-model-class",ref_key:"chartModelRef",ref:o},null,512))}},v=p._export_sfc(_,[["__scopeId","data-v-69d6e63f"]]);exports.ssChart=v;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-KaxOq1_-.cjs"),_=require("./index-D31qdo3B.cjs");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C8n9olfd.cjs");const h=require("./index-BPTR1s4o.cjs"),f=require("./index-DOItJqcJ.cjs"),y=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V={class:"personal-wrapper"},x={class:"personal-box left"},N={class:"base-avatar"},S={class:"center-avatar"},D={class:"base-info"},E={class:"base-signature"},k={class:"personal-box right"},B=e.defineComponent({__name:"index",setup(T){const t=e.reactive({...l.State}),b=f.useLoginState(),{loginUserInfo:n}=f.storeToRefs(b);return e.onMounted(()=>{var s;t.getUserTableHeadersAsync(),t.refreshLoginUserInfoAsync((s=n==null?void 0:n.value)==null?void 0:s.id),l.tabKey.value++}),(s,o)=>{var c,d,u,g,p,m,v;const r=e.resolveComponent("svg-icon"),i=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("div",x,[e.createElementVNode("div",N,[e.createElementVNode("div",S,[e.withDirectives(e.createVNode(_.ssAvatar,{size:100,disabled:t.uploadDisabled,userInfo:e.unref(n),onSubmitImage:o[0]||(o[0]=a=>t.submitImageAsync("avatarUrl",a))},null,8,["disabled","userInfo"]),[[i,t.avatarLoading]])])]),e.createElementVNode("div",D,[e.createElementVNode("div",null,[e.createVNode(r,{name:"userAccount",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((c=e.unref(n))==null?void 0:c.account)||(((d=e.unref(n))==null?void 0:d.姓名)??"未知")),1)]),e.createElementVNode("div",null,[e.createVNode(r,{name:"role",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((u=e.unref(n))==null?void 0:u.layer)==="superAdmin"?"超级管理员":((g=e.unref(n))==null?void 0:g.角色名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(r,{name:"dept",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((p=e.unref(n))==null?void 0:p.部门名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(r,{name:"status",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((m=e.unref(n))==null?void 0:m.layer)==="superAdmin"?"启用":((v=e.unref(n))==null?void 0:v.状态)??"未知"),1)])]),e.createElementVNode("div",E,[e.withDirectives(e.createVNode(_.ssSignature,{userInfo:e.unref(n),itemData:t.itemData,onClickSignButton:t.clickSignButton,onBeforeDestroy:t.beforeSignDestroy,onClickSubmitSign:o[1]||(o[1]=a=>t.submitImageAsync("signature",a))},null,8,["userInfo","itemData","onClickSignButton","onBeforeDestroy"]),[[i,t.signatureLoading]])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",k,[(e.openBlock(),e.createBlock(h.ssTab,{key:e.unref(l.tabKey),tabsContents:t.tabsContents,onChangeTrigger:t.changeFormTrigger,onClickTrigger:t.clickTabButton},null,8,["tabsContents","onChangeTrigger","onClickTrigger"]))])),[[i,t.loading]])])}}}),C=y._export_sfc(B,[["__scopeId","data-v-3bdf3f4b"]]);exports.default=C;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { resolveComponent as oA, createBlock as lA, openBlock as f, withCtx as C, createElementVNode as u, toDisplayString as CA, defineComponent as ln, ref as o, watch as xA, createElementBlock as Q, Fragment as hA, renderList as VA, createCommentVNode as W, normalizeStyle as Re, createVNode as a, unref as A, resolveDynamicComponent as Le, onMounted as On, computed as RA, provide as Fe, resolveDirective as $n, withDirectives as ne, vShow as je, createTextVNode as te, renderSlot as ke, normalizeClass as He, onUnmounted as ut, createSlots as st } from "vue";
|
|
2
|
-
import { m as yn, a as jn, b as Hn } from "./index-
|
|
3
|
-
import "./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-
|
|
2
|
+
import { m as yn, a as jn, b as Hn } from "./index-4awf2rkD.js";
|
|
3
|
+
import "./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-B9POGhwa.js";
|
|
4
4
|
import { _ as Ie } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
import { _ as gt, a as rt, b as dt, e as Pt, s as Ct } from "./index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-
|
|
6
|
-
import { p as QA, s as BA, d as ot, c as fn, u as wn, b as Ee, g as ue, e as At, E as oe, f as Gn, h as Et } from "./index-
|
|
7
|
-
import { a as vn, u as an } from "./index-
|
|
5
|
+
import { _ as gt, a as rt, b as dt, e as Pt, s as Ct } from "./index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-hMJCL1Qk.js";
|
|
6
|
+
import { p as QA, s as BA, d as ot, c as fn, u as wn, b as Ee, g as ue, e as At, E as oe, f as Gn, h as Et } from "./index-7MBVUN82.js";
|
|
7
|
+
import { a as vn, u as an } from "./index-3oQGURYh.js";
|
|
8
8
|
import { S as bA } from "./index-BHtNKL1L.js";
|
|
9
|
-
import { a as he, s as se, b as It, c as it, r as wA, o as Je, d as Se, e as et, f as En, h as nt, i as In, j as tt, k as Bt, t as zt, l as Ge, m as Pn, n as Cn, p as Ve, q as sn, u as qe, v as _e, w as $e, x as An, y as en, z as gn, D as Qt, A as Xt, B as Ot, C as Fn, E as Vn, F as FA, G as yt, H as jt, I as qn } from "./index-
|
|
10
|
-
import { a as Ht } from "./array-
|
|
11
|
-
import { u as dn, a as bn, d as nn, g as we, b as ft, c as tn, o as lt, e as wt, l as bt, f as kt, h as vt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
12
|
-
import "./index.vue_vue_type_style_index_1_lang-
|
|
13
|
-
import "./index-
|
|
9
|
+
import { a as he, s as se, b as It, c as it, r as wA, o as Je, d as Se, e as et, f as En, h as nt, i as In, j as tt, k as Bt, t as zt, l as Ge, m as Pn, n as Cn, p as Ve, q as sn, u as qe, v as _e, w as $e, x as An, y as en, z as gn, D as Qt, A as Xt, B as Ot, C as Fn, E as Vn, F as FA, G as yt, H as jt, I as qn } from "./index-CmNMrF68.js";
|
|
10
|
+
import { a as Ht } from "./array-DxkXasEB.js";
|
|
11
|
+
import { u as dn, a as bn, d as nn, g as we, b as ft, c as tn, o as lt, e as wt, l as bt, f as kt, h as vt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DgCNtMnV.js";
|
|
12
|
+
import "./index.vue_vue_type_style_index_1_lang-CtOB5lpf.js";
|
|
13
|
+
import "./index-DfFq9kkn.js";
|
|
14
14
|
import { useRouter as xt } from "vue-router";
|
|
15
|
-
import pt from "./index-
|
|
16
|
-
import { C as mt } from "./index-
|
|
17
|
-
import Jt from "./threeModel-
|
|
18
|
-
import { s as St, _ as Bn } from "./index-
|
|
15
|
+
import pt from "./index-RLfjsj4L.js";
|
|
16
|
+
import { C as mt } from "./index-0lSRcHqv.js";
|
|
17
|
+
import Jt from "./threeModel-poOL5V2M.js";
|
|
18
|
+
import { s as St, _ as Bn } from "./index-DRDKKizg.js";
|
|
19
19
|
import { _ as be } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
20
|
-
import { s as rn } from "./index-
|
|
21
|
-
import { T as zn, u as Lt, a as ht } from "./threeViewerHost-
|
|
22
|
-
import { s as Qn } from "./index-
|
|
23
|
-
import { u as at } from "./index-
|
|
20
|
+
import { s as rn } from "./index-DzElE7Kh.js";
|
|
21
|
+
import { T as zn, u as Lt, a as ht } from "./threeViewerHost-DCU9cNEx.js";
|
|
22
|
+
import { s as Qn } from "./index-EzLiPHAn.js";
|
|
23
|
+
import { u as at } from "./index-9FU0RWoV.js";
|
|
24
24
|
import { T as _n } from "./svgIcon-D-_fXUBL.js";
|
|
25
25
|
import { t as Rt, c as Kt, b as Dt } from "./index-CAPx0_D4.js";
|
|
26
|
-
import { v as Nt } from "./index-
|
|
27
|
-
import { f as Wt, a as Ut } from "./animationData-
|
|
26
|
+
import { v as Nt } from "./index-r48vNrKN.js";
|
|
27
|
+
import { f as Wt, a as Ut } from "./animationData-D3-99sWf.js";
|
|
28
28
|
const Mt = { class: "menu-title" };
|
|
29
29
|
function Zt(M, yA, g, vA, AA, cA) {
|
|
30
30
|
const z = oA("ssMenu");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./index-CP6V9Df_.cjs"),_=require("./index-B2FiRoly.cjs"),m=require("./index-CnuMyt69.cjs"),h=require("./index-BPTR1s4o.cjs"),C=require("./index-CXC0u8pm.cjs"),d=require("./index-DOItJqcJ.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),k={class:"menu-module"},v={class:"table-wrap","element-loading-text":"加载中..."},x={class:"module-dialog-default"},w=e.defineComponent({__name:"index",setup(D){const t=e.reactive({...p.State}),l=e.ref(null),a=C.useMenuState(d.pinia),{configMenu:n}=d.storeToRefs(a);return e.onMounted(()=>{var i;t.formatFormData(n.value),e.nextTick(()=>{var o,r;(r=l.value)==null||r.setCurrentKey((o=n.value)==null?void 0:o.path),a.setActiveMenuPath("/平台管理/菜单管理")}),n.value&&t.getInitialSubStructure((i=n.value)==null?void 0:i.path)}),(i,o)=>{const r=e.resolveComponent("el-tree"),c=e.resolveComponent("el-splitter-panel"),u=e.resolveComponent("el-splitter"),s=e.resolveComponent("el-button"),g=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",k,[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(c,{size:208,class:"tree-wrap",min:200},{default:e.withCtx(()=>[e.createVNode(r,{ref_key:"treeRef",ref:l,data:t.treeData,"expand-on-click-node":!1,"node-key":"path",props:{children:"children",label:"label",path:"path"},"highlight-current":"","default-expand-all":"","check-on-click-leaf":!1,"check-strictly":"",onNodeClick:t.clickNodeTrigger},null,8,["data","onNodeClick"])]),_:1}),e.createVNode(c,{min:500},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",v,[e.createVNode(_.ssTable,{itemData:t.menuPageData,changedContent:t.changedRow,operatingForm:t.operatingForm,onOnFormChange:t.changeTrigger,onChange:t.handleItemDataChange,onClickTrigger:t.clickTrigger,onOnButtonClick:t.clickRowButton},null,8,["itemData","changedContent","operatingForm","onOnFormChange","onChange","onClickTrigger","onOnButtonClick"])])),[[g,t.tableLoading]])]),_:1})]),_:1}),e.createVNode(m.ssDialog,{class:"module-dialog",title:t.dialogInfo.title,visible:t.dialogInfo.show,width:t.dialogInfo.width,onBeforeDestroy:t.beforeDialogDestroy},{default:e.withCtx(()=>[e.createElementVNode("div",x,[e.createVNode(h.ssForm,{rowContents:t.renderFormData,isEnableWrap:!1,isEdit:!0,onChange:t.changeTrigger,onClickTrigger:t.clickTrigger},null,8,["rowContents","onChange","onClickTrigger"])])]),footer:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(s,{onClick:t.beforeDialogDestroy,id:"themeBorderButton"},{default:e.withCtx(()=>o[0]||(o[0]=[e.createTextVNode("取消")])),_:1,__:[0]},8,["onClick"]),e.createVNode(s,{id:"themeButton",onClick:t.clickSubmitForm},{default:e.withCtx(()=>o[1]||(o[1]=[e.createTextVNode(" 确认 ")])),_:1,__:[1]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])])}}}),b=f._export_sfc(w,[["__scopeId","data-v-74868a06"]]);exports.default=b;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as z, reactive as R, onMounted as T, watch as A, nextTick as U, resolveComponent as i, createElementBlock as k, openBlock as u, createVNode as c, withCtx as l, createElementVNode as _, toDisplayString as g, Fragment as v, renderList as B, createBlock as b, createTextVNode as f, withDirectives as I, vShow as P } from "vue";
|
|
2
|
-
import { s as E } from "./index-
|
|
3
|
-
import { u as F, aj as x } from "./index-
|
|
4
|
-
import { s as O, c as j } from "./index-
|
|
2
|
+
import { s as E } from "./index-9FU0RWoV.js";
|
|
3
|
+
import { u as F, aj as x } from "./index-3oQGURYh.js";
|
|
4
|
+
import { s as O, c as j } from "./index-7MBVUN82.js";
|
|
5
5
|
import { _ as H } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const L = { class: "routerPage-wrapper" }, W = { class: "role-dialog-header" }, q = ["title"], G = { title: "更多" }, J = { class: "dialog-footer" }, K = /* @__PURE__ */ z({
|
|
7
7
|
__name: "index",
|