ss-component-new 1.2.201 → 1.2.203
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-DeVVTn9U.cjs → MTLLoader-D3VZoLLS.cjs} +1 -1
- package/dist/{MTLLoader-EGw2WpGn.js → MTLLoader-TA3dmzZt.js} +1 -1
- package/dist/{OrbitControls-DsREqTNw.js → OrbitControls-C815PrCV.js} +1 -1
- package/dist/{OrbitControls-DUDihpSn.cjs → OrbitControls-Ci2b4u6R.cjs} +1 -1
- package/dist/{URDFLoader-DR_ZnSlg.js → URDFLoader-DocP_xFH.js} +2 -2
- package/dist/{URDFLoader-CNnR_d-M.cjs → URDFLoader-DwmU7yPi.cjs} +1 -1
- package/dist/{animationData-B0xfieMG.js → animationData-4XK3Jqi3.js} +2 -2
- package/dist/{animationData-BmO7uT95.cjs → animationData-C0bExM4v.cjs} +1 -1
- package/dist/{array-DtzBMDtX.js → array-Bay2i0Vw.js} +3 -3
- package/dist/{array-C-4Fn6kn.cjs → array-DcJnHcIw.cjs} +1 -1
- package/dist/{iconfont-hcY1c1Ph.js → iconfont-Dh6ZgvbG.js} +2 -2
- package/dist/{iconfont-BU-e8plC.cjs → iconfont-xItVQaLt.cjs} +1 -1
- package/dist/{index-VnVlZEmb.js → index-3oQGURYh.js} +1 -1
- package/dist/{index-MtfLKQp3.cjs → index-4QXJrOdG.cjs} +1 -1
- package/dist/{index-DufZVmKf.js → index-7MBVUN82.js} +9 -8
- package/dist/{index-D_07hjnO.cjs → index-8b1bMvyU.cjs} +1 -1
- package/dist/{index-BvOJGx4t.js → index-B023nZUc.js} +2 -2
- package/dist/{index-Cz4gIM1f.cjs → index-B1hS-6sw.cjs} +1 -1
- package/dist/{index-BFDTTNzf.cjs → index-B7zrUMM1.cjs} +1 -1
- package/dist/{index-i6xf9v_E.cjs → index-B8b3cy8_.cjs} +1 -1
- package/dist/{index-DywCAE3u.cjs → index-BMS51kH2.cjs} +1 -1
- package/dist/{index-C1JRzzYq.js → index-BT7JWOBF.js} +5 -5
- package/dist/{index-DKyiUFoj.js → index-BbkGyry0.js} +20 -20
- package/dist/{index-BuAS_9Ow.cjs → index-Bkb2GkmP.cjs} +1 -1
- package/dist/{index-m_LW0QsX.js → index-Bn4zkMqS.js} +2 -2
- package/dist/{index-ELxg57Gi.js → index-C-36_m2K.js} +6 -6
- package/dist/{index-Dr6wRpUQ.js → index-C9-Bv2Zb.js} +6 -6
- package/dist/{index-P6FeXt6g.js → index-CFnIAxFU.js} +1 -1
- package/dist/{index-DoL-xCP9.cjs → index-CJffhWqF.cjs} +1 -1
- package/dist/{index-DtFLuXja.cjs → index-CLqCXsqK.cjs} +1 -1
- package/dist/{index-BAaCpfqG.js → index-CO41nOz7.js} +2 -2
- package/dist/{index--na8gJFk.cjs → index-CRcKY_YM.cjs} +1 -1
- package/dist/{index-DQsD0m6q.js → index-CT-1q_Sb.js} +1 -1
- package/dist/{index-DDJnuYAl.cjs → index-CWEMkvT7.cjs} +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-DW33UCCH.js → index-CrdoyRiw.js} +3 -3
- package/dist/{index-DW1RCzWC.cjs → index-D-uo7H2E.cjs} +1 -1
- package/dist/{index-CQOLlnCU.js → index-D6xI9Kd6.js} +3 -3
- package/dist/{index-CXsoc0ts.js → index-D742GPVS.js} +4 -4
- package/dist/{index-BCn8LcAH.cjs → index-DEsVL4KZ.cjs} +1 -1
- package/dist/{index-CB-3bIU7.cjs → index-DJXRfRzs.cjs} +1 -1
- package/dist/{index-DVuG6QBw.cjs → index-DMw45ES8.cjs} +1 -1
- package/dist/{index-CS7eiT5k.js → index-DMzOhZbZ.js} +12 -12
- package/dist/{index-BP07Gnjo.cjs → index-DOItJqcJ.cjs} +11 -11
- package/dist/{index-D3BeZsw9.cjs → index-DPp_aToA.cjs} +1 -1
- package/dist/{index-BFzjLkhB.cjs → index-DQf7cgx-.cjs} +10 -10
- package/dist/{index-DvgKkg8E.js → index-DU0JrdBR.js} +3 -3
- package/dist/{index-DbkmELIs.cjs → index-DZ1Wyte2.cjs} +1 -1
- package/dist/{index-mjz9Da8Y.cjs → index-DaRuwvRP.cjs} +1 -1
- package/dist/{index-C8JWH8zu.cjs → index-DbowKiAq.cjs} +1 -1
- package/dist/{index-BA2liwLn.js → index-DcYofWK7.js} +8 -7
- package/dist/{index-BdG8TrO6.js → index-DfFq9kkn.js} +2 -2
- package/dist/index-Dh1Z6bSQ.js +3363 -0
- package/dist/{index-DmKjHcw7.cjs → index-DhWtwiaT.cjs} +1 -1
- package/dist/{index-HFvfNokw.js → index-DiOjuAfy.js} +1 -1
- package/dist/{index-DN9fWZ39.js → index-Djp_1ESm.js} +3 -3
- package/dist/{index-DRjU_LhS.js → index-Dq9Tho6E.js} +3 -3
- package/dist/{index-BKNTCrry.js → index-Dr8-9e0m.js} +2 -2
- package/dist/{index-B7pEfxW6.cjs → index-DtfNydzd.cjs} +1 -1
- package/dist/{index-CGNh6A1u.js → index-DwUgAowW.js} +4 -4
- package/dist/index-EQPgkvyO.cjs +1 -0
- package/dist/{index-K6PeHL12.cjs → index-KaxOq1_-.cjs} +1 -1
- package/dist/{index-CwHRaxk9.js → index-NrH8XMyp.js} +2 -2
- package/dist/{index-BEDAWaV5.js → index-Q26ePpGH.js} +11 -11
- package/dist/{index-svyWq6yw.js → index-V6yWPooR.js} +2 -2
- package/dist/{index-C71lL2Zl.js → index-XfyUE2Ye.js} +4 -4
- package/dist/{index-DHtKscY6.js → index-gruT7omp.js} +1 -1
- package/dist/{index-B3Nii_wb.js → index-r48vNrKN.js} +2 -2
- package/dist/{index-D04LOBS0.cjs → index-rJGUHHaV.cjs} +1 -1
- package/dist/{index-CeTyBScG.cjs → index-t7aSHS0b.cjs} +1 -1
- package/dist/{index-G1p03SY5.cjs → index-z78zgQsK.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-3T-DoEef.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-6ezarDrj.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Db2wtXl-.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BLiySnpy.js} +9 -9
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DzxsDmSo.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BksZanFP.js} +1463 -1468
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bft_35IC.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CFvLAWOF.cjs} +53 -53
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-YDD6WZNQ.cjs → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-BeUv9K8x.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-Bg3P8eER.js → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-CFKRRr_1.js} +7 -7
- package/dist/{index.vue_vue_type_style_index_1_lang-BwYhIkBS.js → index.vue_vue_type_style_index_1_lang-BQ-xcdZE.js} +442 -348
- package/dist/{index.vue_vue_type_style_index_1_lang-B6P8tuhB.cjs → index.vue_vue_type_style_index_1_lang-NcjcaVKL.cjs} +3 -3
- package/dist/{isString-5Nawl-Uc.js → isString-D70CzuJZ.js} +1 -1
- package/dist/{isString-DKZ1g7Pn.cjs → isString-Do5yyRUw.cjs} +1 -1
- package/dist/{main-CXonSl7o.js → main-COMs08L4.js} +5 -5
- package/dist/{main-CfdiYgA1.cjs → main-FdfIB2P3.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-CcZ_mIob.cjs → threeModel-C4BkWbN4.cjs} +1 -1
- package/dist/{threeModel-CTtZuUDg.js → threeModel-CDSx1QuT.js} +5 -5
- package/dist/{threePreview-DUyJ3mb_.cjs → threePreview-DRzGADyo.cjs} +1 -1
- package/dist/{threePreview-D-RkLYC8.js → threePreview-_2AlT5J2.js} +4 -4
- package/dist/{threeSceneView-Cr5UX8FG.js → threeSceneView--CpvjFpw.js} +11 -11
- package/dist/{threeSceneView-BFqSAGP1.cjs → threeSceneView-CnhYrdhr.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-N80YwIx-.cjs → threeSceneViewForCPMPIP-DyGCnSF-.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-CTvL-EyL.js → threeSceneViewForCPMPIP-ZyMF4jrD.js} +8 -8
- package/dist/{threeTrackPathView-Cp83uYdc.js → threeTrackPathView-CmTrznLl.js} +5 -5
- package/dist/{threeTrackPathView-C3tSwHTX.cjs → threeTrackPathView-kBS_0ueE.cjs} +1 -1
- package/dist/{threeViewerHost--jBITe3r.cjs → threeViewerHost-Ba1q0606.cjs} +1 -1
- package/dist/{threeViewerHost-DSYrQH3r.js → threeViewerHost-DK006r5Z.js} +4 -4
- package/dist/{urdfTree-B73vL4dE.cjs → urdfTree-YjjVDhU5.cjs} +1 -1
- package/dist/{urdfTree-CiLrHpgG.js → urdfTree-zl9i5h2k.js} +1 -1
- package/dist/{workpieceTreePanel-CUiwX5FV.js → workpieceTreePanel-BI64gjVU.js} +4 -4
- package/dist/{workpieceTreePanel-sYKZQx-o.cjs → workpieceTreePanel-DSdFl_0i.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-CleiTW2d.cjs +0 -1
- package/dist/index-DGcizPdx.js +0 -3112
- 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,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as y, ref as C, onMounted as _, createElementBlock as c, openBlock as g, createVNode as v } from "vue";
|
|
2
|
-
import { p as h, s as k, c as m, g as x } from "./index-
|
|
3
|
-
import { u as M } from "./index-
|
|
4
|
-
import { s as D } from "./index-
|
|
5
|
-
import { a as T, d as S, f as w } from "./index-
|
|
2
|
+
import { p as h, s as k, c as m, g as x } from "./index-7MBVUN82.js";
|
|
3
|
+
import { u as M } from "./index-3oQGURYh.js";
|
|
4
|
+
import { s as D } from "./index-Dh1Z6bSQ.js";
|
|
5
|
+
import { a as T, d as S, f as w } from "./index-gruT7omp.js";
|
|
6
6
|
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const N = { class: "menu-content" }, E = /* @__PURE__ */ y({
|
|
8
8
|
__name: "index",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const l=require("vue"),D=require("./index-DOItJqcJ.cjs"),fe=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CFvLAWOF.cjs"),vl=require("./index-DQf7cgx-.cjs"),tr=require("./threeViewerHost-Ba1q0606.cjs"),xa=require("./index-CXC0u8pm.cjs"),Oo=require("./index.vue_vue_type_style_index_1_lang-NcjcaVKL.cjs"),Da=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ql=require("./index-DZ1Wyte2.cjs");require("./index-KaxOq1_-.cjs");const pr=require("./isString-Do5yyRUw.cjs"),$a=J=>J.match(/\((.*)\)/)[1],fr={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},placement:{type:String,default:"bottom"},width:{type:Number,default:200}},setup(J){const ce=J,oe=l.ref(null),K=l.ref(!1),V=l.ref(null);return l.watch(()=>ce==null?void 0:ce.isVisible,()=>{K.value=ce==null?void 0:ce.isVisible},{deep:!0,immediate:!0}),l.watch(()=>V.value,()=>{l.nextTick(()=>{var s,de;(de=(s=oe.value)==null?void 0:s.updatePopper)==null||de.call(s)})},{deep:!0,immediate:!0}),(s,de)=>{const Se=l.resolveComponent("el-popover");return l.openBlock(),l.createBlock(Se,{visible:K.value,title:ce==null?void 0:ce.title,placement:ce==null?void 0:ce.placement,width:ce==null?void 0:ce.width,ref_key:"popOverRef",ref:oe},{reference:l.withCtx(()=>[l.createElementVNode("div",null,[l.renderSlot(s.$slots,"reference",{ref_key:"referenceRef",ref:V})])]),default:l.withCtx(()=>[l.createElementVNode("div",null,[l.renderSlot(s.$slots,"content")])]),_:3},8,["visible","title","placement","width"])}}},wo={key:0,class:"extra-button-content"},Uo={class:"table-operator-wrap"},Lo={key:0,class:"extra-button-filter"},jo={class:"form-content-value"},Mo={key:1,class:"extra-header"},Po={class:"drop-menu",style:{width:"120px"}},$o={key:0},Fo={key:1},Ro={key:1,class:"extra-button-content tabs-button-wrapper"},Ko={class:"table-operator-wrap"},Vo={class:"extra-button-filter"},zo={class:"form-content-value"},qo={key:0,class:"extra-header"},Jo={class:"drop-menu",style:{width:"120px"}},Wo={key:0},Go={key:1},Ho={__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(J,{emit:ce}){const oe=ce,K=J,V=l.ref(""),s=l.ref(!1),de=l.ref([]),Se=l.ref([{label:"取消",background:"#999999"},{label:"清空",background:"#999999"},{label:"确认"}]),Le=[{label:"新增",icon:"Plus"},{label:"导入",icon:"import"},{label:"导出",icon:"export"},{label:"OCR识别",icon:"ocr"}],xe=ge=>{const Te=ge.raw;if(!Te)return;const Me=new FileReader;Me.onload=he=>{try{const Oe=new Uint8Array(he.target.result),Qe=fe.readSync(Oe,{type:"array"}),je=Qe.SheetNames[0],ne=Qe.Sheets[je],Xe=fe.utils.decode_range(ne["!ref"]).e.c+1,Y=new Array(Xe).fill(""),C=[];for(const X in ne){if(X[0]==="!")continue;const{r:ye,c:De}=fe.utils.decode_cell(X);let Ye=ne[X].v;if(ne[X].t==="n"&&Ye>0&&Ye<1e6&&(Ye=new Date((Ye-25569)*86400*1e3).toISOString().split("T")[0]),(Ye==null||Ye==="")&&(Ye=""),ye===0)Y[De]=Ye;else{if(!C[ye-1]){C[ye-1]={};for(let bl=0;bl<Xe;bl++)C[ye-1][`col_${bl}`]=""}C[ye-1][`col_${De}`]=Ye}}for(let X=0;X<Xe;X++)Y[X]===void 0&&(Y[X]="");const we=C==null?void 0:C[0];if(!(we!=null&&we.hasOwnProperty("col_0")))return D.ElMessage.error("导入的数据列不匹配,请检查是否错位");oe("getImportData",Y,C)}catch(Oe){throw D.ElMessage.error(Oe.message),new Error(Oe.message)}},Me.readAsArrayBuffer(Te)},sl=ge=>{var Me;const Te=(Me=de.value)==null?void 0:Me.reduce((he,Oe,Qe)=>(Qe===0?he[Oe.label]=ge:he[Oe.label]=Oe==null?void 0:Oe.value,he),{});oe("filter",Te,ge,!0)},_l=ge=>{oe("buttonClick",ge)},Ml=ge=>{var Te,Me;de.value=(Me=(Te=fe.getColumnChild(D.cloneDeep(ge)))==null?void 0:Te.filter(he=>(he==null?void 0:he.label)!==""&&(he==null?void 0:he.label)!=="操作"))==null?void 0:Me.map(he=>({label:(he==null?void 0:he.label)??"",value:"",name:(he==null?void 0:he.label)??"",isFormColHidden:he==null?void 0:he.isTableColHidden,width:2}))},Bl=l.ref(!1),Pl=ge=>{var Te;if((ge==null?void 0:ge.buttonName)==="确认"&&(oe("filter",ge==null?void 0:ge.content),Bl.value=(ge==null?void 0:ge.content)&&Object.values(ge==null?void 0:ge.content).length>0),(ge==null?void 0:ge.buttonName)==="清空"){const Me=D.cloneDeep(ge==null?void 0:ge.content);for(const he in Me)Me[he]="";de.value=(Te=de.value)==null?void 0:Te.map(he=>({...he,value:""})),oe("filter",Me),Bl.value=!1}s.value=!1},He=()=>{var Te,Me;de.value=(Te=de.value)==null?void 0:Te.map(he=>({...he,value:""}));const ge=(Me=de.value)==null?void 0:Me.reduce((he,Oe)=>(he[Oe.label]=Oe.value,he),{});oe("filter",ge)};return l.onMounted(()=>{Ml(K.columns)}),l.watch(()=>K.columns,()=>{Ml(K.columns)},{deep:!0,immediate:!0}),(ge,Te)=>{var ne,Z,Xe,Y;const Me=l.resolveComponent("el-icon"),he=l.resolveComponent("svg-icon"),Oe=l.resolveComponent("el-input"),Qe=l.resolveComponent("el-button"),je=l.resolveComponent("el-upload");return J.pageLayout==="vertical"?(l.openBlock(),l.createElementBlock("div",wo,[l.createElementVNode("div",{class:l.normalizeClass(J.compName?"table-name-wrap":""),style:l.normalizeStyle({background:(K==null?void 0:K.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((K==null?void 0:K.level)-1)*12+"px",fontWeight:600-((K==null?void 0:K.level)-1)*100>=400?600-((K==null?void 0:K.level)-1)*100:400,fontSize:17-(K==null?void 0:K.level)>=14?17-(K==null?void 0:K.level)+"px":"14px"})},l.toDisplayString(J.compName),7),l.createElementVNode("div",Uo,[K!=null&&K.filterShow?(l.openBlock(),l.createElementBlock("div",Lo,[l.createVNode(fr,{title:"",width:800,placement:"bottom-start",isVisible:s.value},{reference:l.withCtx(()=>{var C,we,X,ye;return[l.createVNode(Oe,{modelValue:V.value,"onUpdate:modelValue":Te[1]||(Te[1]=De=>V.value=De),style:{"min-width":"80px"},placeholder:Bl.value?(X=(we=(C=J.filterValues)==null?void 0:C.filter(De=>De))==null?void 0:we.slice(0,3))==null?void 0:X.join("/"):"搜索","prefix-icon":l.unref(D.search_default),clearable:"",onInput:sl,disabled:((ye=de.value)==null?void 0:ye.length)===0},{suffix:l.withCtx(()=>{var De,Ye;return[!V.value&&((Ye=(De=J.filterValues)==null?void 0:De.filter(bl=>bl))!=null&&Ye.join("/"))?(l.openBlock(),l.createBlock(Me,{key:0,style:{cursor:"pointer"},onClick:He},{default:l.withCtx(()=>[l.createVNode(l.unref(D.circle_close_default))]),_:1})):l.createCommentVNode("",!0)]}),append:l.withCtx(()=>[l.createElementVNode("span",{title:"条件查询",onClick:Te[0]||(Te[0]=De=>s.value=!s.value)},[l.createVNode(he,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:l.withCtx(()=>[l.createElementVNode("div",jo,[(l.openBlock(),l.createBlock(vl.ssForm,{rowContents:de.value,buttonValue:Se.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:Se.value,isStartJustify:!1,onOnButtonClick:Pl},null,8,["rowContents","buttonValue"]))])]),_:1},8,["isVisible"])])):l.createCommentVNode("",!0),J.buttons&&((ne=J.buttons)==null?void 0:ne.length)>0?(l.openBlock(),l.createElementBlock("div",Mo,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((Z=J.buttons)==null?void 0:Z.filter(C=>J.isDevMode||(C==null?void 0:C.label)!=="修改模板"),(C,we)=>(l.openBlock(),l.createElementBlock("div",{class:"extra-contents",key:we},[(C==null?void 0:C.type)==="upload"?(l.openBlock(),l.createBlock(je,{key:0,class:"upload-button-wrap","on-change":xe,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!J.lockingPage},{default:l.withCtx(()=>[l.createVNode(Qe,{disabled:!!J.lockingPage,style:l.normalizeStyle({background:(C==null?void 0:C.background)??"var(--ssbutton-theme-bg)",color:(C==null?void 0:C.color)??"var(--ssbutton-theme-color)"})},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(C==null?void 0:C.label),1)]),_:2},1032,["disabled","style"])]),_:2},1032,["disabled"])):l.createCommentVNode("",!0),(C==null?void 0:C.type)==="popover"?(l.openBlock(),l.createBlock(vl._sfc_main,{key:1},{dropTitle:l.withCtx(()=>[(C==null?void 0:C.type)==="popover"?(l.openBlock(),l.createBlock(Qe,{key:0,disabled:!!J.lockingPage,style:l.normalizeStyle({background:(C==null?void 0:C.background)??"var(--ssbutton-theme-bg)",color:(C==null?void 0:C.color)??"var(--ssbutton-theme-color)"})},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(C==null?void 0:C.label),1)]),_:2},1032,["disabled","style"])):l.createCommentVNode("",!0)]),dropMenu:l.withCtx(()=>[l.createElementVNode("div",Po,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(C==null?void 0:C.contents,X=>(l.openBlock(),l.createBlock(Qe,{key:X==null?void 0:X.label,disabled:!!J.lockingPage,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:ye=>_l(X==null?void 0:X.label)},{default:l.withCtx(()=>{var ye,De;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",$o,"("+l.toDisplayString(J.selectNums)+")",1)):l.createCommentVNode("",!0),(De=X==null?void 0:X.label)!=null&&De.includes("全部")?(l.openBlock(),l.createElementBlock("span",Fo,"("+l.toDisplayString(J.dataNums)+")",1)):l.createCommentVNode("",!0)]}),_:2},1032,["disabled","onClick"]))),128))])]),_:2},1024)):l.createCommentVNode("",!0),C!=null&&C.type?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(Qe,{key:2,id:"themeButton",disabled:!!J.lockingPage,style:l.normalizeStyle({background:(C==null?void 0:C.background)??"var(--ssbutton-theme-bg)",color:(C==null?void 0:C.color)??"var(--ssbutton-theme-color)"}),onClick:X=>_l(C==null?void 0:C.label)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(C==null?void 0:C.label),1)]),_:2},1032,["disabled","style","onClick"]))]))),128))])):l.createCommentVNode("",!0)])])):(l.openBlock(),l.createElementBlock("div",Ro,[l.createElementVNode("div",Ko,[l.createElementVNode("div",Vo,[l.createVNode(fr,{title:"",width:800,placement:"bottom-start",isVisible:s.value},{reference:l.withCtx(()=>{var C,we,X,ye;return[l.createVNode(Oe,{modelValue:V.value,"onUpdate:modelValue":Te[3]||(Te[3]=De=>V.value=De),style:{"min-width":"80px"},placeholder:Bl.value?(X=(we=(C=J.filterValues)==null?void 0:C.filter(De=>De))==null?void 0:we.slice(0,3))==null?void 0:X.join("/"):"搜索","prefix-icon":l.unref(D.search_default),clearable:"",onInput:sl,disabled:((ye=de.value)==null?void 0:ye.length)===0},{suffix:l.withCtx(()=>{var De,Ye;return[!V.value&&((Ye=(De=J.filterValues)==null?void 0:De.filter(bl=>bl))!=null&&Ye.join("/"))?(l.openBlock(),l.createBlock(Me,{key:0,style:{cursor:"pointer"},onClick:He},{default:l.withCtx(()=>[l.createVNode(l.unref(D.circle_close_default))]),_:1})):l.createCommentVNode("",!0)]}),append:l.withCtx(()=>[l.createElementVNode("span",{title:"条件查询",onClick:Te[2]||(Te[2]=De=>s.value=!s.value)},[l.createVNode(he,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:l.withCtx(()=>[l.createElementVNode("div",zo,[(l.openBlock(),l.createBlock(vl.ssForm,{rowContents:de.value,buttonValue:Se.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:Se.value,isStartJustify:!1,onOnButtonClick:Pl},null,8,["rowContents","buttonValue"]))])]),_:1},8,["isVisible"])]),J.buttons&&((Xe=J.buttons)==null?void 0:Xe.length)>0?(l.openBlock(),l.createElementBlock("div",qo,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((Y=J.buttons)==null?void 0:Y.filter(C=>J.isDevMode||(C==null?void 0:C.label)!=="修改模板"),(C,we)=>(l.openBlock(),l.createElementBlock("div",{class:"extra-contents",key:we},[(C==null?void 0:C.type)==="upload"?(l.openBlock(),l.createBlock(je,{key:0,class:"upload-button-wrap","on-change":xe,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:l.withCtx(()=>[l.createVNode(Qe,{style:{background:"transparent",color:"#666666"}},{icon:l.withCtx(()=>{var X;return[l.createVNode(he,{name:(X=Le==null?void 0:Le.find(ye=>(ye==null?void 0:ye.label)===(C==null?void 0:C.label)))==null?void 0:X.icon},null,8,["name"])]}),default:l.withCtx(()=>[l.createTextVNode(" "+l.toDisplayString(C==null?void 0:C.label),1)]),_:2},1024)]),_:2},1024)):l.createCommentVNode("",!0),(C==null?void 0:C.type)==="popover"?(l.openBlock(),l.createBlock(vl._sfc_main,{key:1},{dropTitle:l.withCtx(()=>[(C==null?void 0:C.type)==="popover"?(l.openBlock(),l.createBlock(Qe,{key:0,style:{background:"transparent",color:"#666666"}},{icon:l.withCtx(()=>{var X;return[l.createVNode(he,{name:(X=Le==null?void 0:Le.find(ye=>(ye==null?void 0:ye.label)===(C==null?void 0:C.label)))==null?void 0:X.icon},null,8,["name"])]}),default:l.withCtx(()=>[l.createTextVNode(" "+l.toDisplayString(C==null?void 0:C.label),1)]),_:2},1024)):l.createCommentVNode("",!0)]),dropMenu:l.withCtx(()=>[l.createElementVNode("div",Jo,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(C==null?void 0:C.contents,X=>(l.openBlock(),l.createBlock(Qe,{key:X==null?void 0:X.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:ye=>_l(X==null?void 0:X.label)},{default:l.withCtx(()=>{var ye,De;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",Wo,"("+l.toDisplayString(J.selectNums)+")",1)):l.createCommentVNode("",!0),(De=X==null?void 0:X.label)!=null&&De.includes("全部")?(l.openBlock(),l.createElementBlock("span",Go,"("+l.toDisplayString(J.dataNums)+")",1)):l.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):l.createCommentVNode("",!0),C!=null&&C.type?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(Qe,{key:2,id:"themeButton",style:l.normalizeStyle({background:"transparent",color:(C==null?void 0:C.label)==="新增"?"var(--ssbutton-theme-bg)":"#666666"}),onClick:X=>_l(C==null?void 0:C.label)},{icon:l.withCtx(()=>{var X;return[l.createVNode(he,{name:(X=Le==null?void 0:Le.find(ye=>(ye==null?void 0:ye.label)===(C==null?void 0:C.label)))==null?void 0:X.icon},null,8,["name"])]}),default:l.withCtx(()=>[l.createTextVNode(" "+l.toDisplayString(C==null?void 0:C.label),1)]),_:2},1032,["style","onClick"]))]))),128))])):l.createCommentVNode("",!0)])]))}}},Qo=Da._export_sfc(Ho,[["__scopeId","data-v-03b0d8fa"]]),Xo=l.defineComponent({__name:"batch",props:{lockingPage:Boolean,buttons:{type:Array,default:()=>[]},selectTableItems:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick"],setup(J,{emit:ce}){const oe=J,K=ce,V=de=>{K("buttonClick",de)},s=de=>{var Se;return de!=null&&de.includes("删除")?((Se=oe.selectTableItems)==null?void 0:Se.length)>0?"warning-active-type":"warning-type":"default-type"};return(de,Se)=>{const Le=l.resolveComponent("el-button");return l.openBlock(),l.createElementBlock("div",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(J.buttons,xe=>(l.openBlock(),l.createBlock(Le,{key:xe==null?void 0:xe.label,disabled:!!J.lockingPage,class:l.normalizeClass(s(xe==null?void 0:xe.label)),onClick:sl=>V(xe==null?void 0:xe.label)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(xe==null?void 0:xe.label),1)]),_:2},1032,["disabled","class","onClick"]))),128))])}}}),Yo=Da._export_sfc(Xo,[["__scopeId","data-v-70b12973"]]),hr=D.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(J){this.selectArray=J},setSelectString(J){this.selectString=J}}}),Zo={class:"calculator-content"},Io={class:"calculator-child"},en={class:"calculator-child"},ln=l.defineComponent({__name:"calculator",setup(J){const ce=l.ref(),oe=l.ref();return l.onMounted(()=>{ce.value=[{type:"Upload",label:"输入",name:"input"}],oe.value=[{type:"Upload",label:"输出",name:"output"}]}),(K,V)=>(l.openBlock(),l.createElementBlock("div",Zo,[l.createElementVNode("div",Io,[l.createVNode(vl.ssForm,{rowContents:ce.value,isRowFlex:!0},null,8,["rowContents"])]),l.createElementVNode("div",en,[l.createVNode(vl.ssForm,{rowContents:oe.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),an=Da._export_sfc(ln,[["__scopeId","data-v-73db0fe7"]]),Fa=(J,ce)=>{let oe=J,K=ce;return Array.isArray(oe)&&(oe=oe==null?void 0:oe.map((V,s)=>{if(Array.isArray(V)){let de={};return V=V==null?void 0:V.forEach((Se,Le)=>{var xe;(xe=K==null?void 0:K[Le])!=null&&xe.prop?de[K[Le].prop]=Se:Array.isArray(Se)&&(de.children=Fa(Se,K))}),Object.assign(de,{id:s})}else return V})),oe},vr=(J,ce,oe)=>{let K=J,V=ce;return K=K==null?void 0:K.map((s,de)=>{var Se,Le;return!Array.isArray(s)||!((Se=V==null?void 0:V[de])!=null&&Se.label)&&!oe||(s.unshift(((Le=V==null?void 0:V[de])==null?void 0:Le.label)??""),s.some(xe=>Array.isArray(xe))&&(s=s==null?void 0:s.map(xe=>{var sl;return Array.isArray(xe)&&(xe=vr(xe,(sl=V==null?void 0:V[de])==null?void 0:sl.children,oe)),xe}))),s}),K},rn=(J,ce,oe)=>{if(ce==="")return J==null?void 0:J.filter(K=>(K==null?void 0:K.id)!==oe);{const K=ce.split("-");return on(J,K,oe)}},on=(J,ce,oe)=>{let K=J,V=ce;return(V==null?void 0:V.length)===0?K=K==null?void 0:K.filter(s=>s.id!==oe):K=K==null?void 0:K.map(s=>(s.id.toString()===(V==null?void 0:V[0])&&(V==null||V.shift(),s=yr(s,V,oe)),s)),K},yr=(J,ce,oe)=>{var s,de;let K=J,V=ce;return(V==null?void 0:V.length)===0?K.children=(s=K.children)==null?void 0:s.filter(Se=>Se.id!==oe):K.children=(de=K.children)==null?void 0:de.map(Se=>(Se.id.toString()===(V==null?void 0:V[0])&&(V==null||V.shift(),Se=yr(Se,V,oe)),Se)),K},nn=(J,ce,oe)=>{if(ce==="")return oe;{const K=ce.split("-");return sn(J,K,oe)}},sn=(J,ce,oe)=>{let K=J,V=ce;return(V==null?void 0:V.length)===0?K=oe:K=K==null?void 0:K.map(s=>(s.id.toString()===(V==null?void 0:V[0])&&(V==null||V.shift(),s=gr(s,V,oe)),s)),K},gr=(J,ce,oe)=>{var s;let K=J,V=ce;return(V==null?void 0:V.length)===0?K.children=oe:K.children=(s=K.children)==null?void 0:s.map(de=>(de.id.toString()===(V==null?void 0:V[0])&&(V==null||V.shift(),de=gr(de,V,oe)),de)),K},br=D.defineStore("formComp",{state:()=>({objUrl:[],blobUrls:[]}),actions:{setObjUrl(J){this.objUrl=J},setBlobUrls(J){this.blobUrls=J}}}),un=200,cn="success",dn="",tn=[{证书类型:"检定证书",证书编号:"RG112024-03918",数据:{编号:"1",名称:"1","型号/规格":"1",出厂编号:"1",制造厂:"1",所属试验台:"1",所属系统:"1",对应子系统:"1",启用日期:"1",负责人:"1",使用状态:"1",使用寿命:"1",管理措施:"1"}},{证书类型:"检定证书",证书编号:"RG112024-03918",数据:{编号:"2",名称:"2","型号/规格":"2",出厂编号:"2",制造厂:"2",所属试验台:"2",所属系统:"2",对应子系统:"2",启用日期:"2",负责人:"2",使用状态:"2",使用寿命:"2",管理措施:"2"}}],pn={code:un,type:cn,message:dn,result:tn},Ca=async(J,ce)=>{var de,Se,Le,xe,sl,_l,Ml,Bl,Pl,He,ge,Te,Me,he,Oe,Qe,je;let oe=(Se=(de=D.cloneDeep(J))==null?void 0:de.optionUrl)==null?void 0:Se.menuSelect,K=[];oe==null||oe.forEach(ne=>{});let V="",s=await fe.menuToParent(oe);if(s==null||s.forEach(ne=>{var Z,Xe,Y,C;(ne==null?void 0:ne.name)===(((C=(Y=(Xe=(Z=D.cloneDeep(J))==null?void 0:Z.optionUrl)==null?void 0:Xe.groupSelect)==null?void 0:Y[0])==null?void 0:C.replaceAll("'",""))??"")&&(V=ne==null?void 0:ne.id)}),ce){V=ce;const ne=await D.getInsofDataApi({id:V}),Z=(_l=(sl=(xe=(Le=ne==null?void 0:ne.data)==null?void 0:Le.result)==null?void 0:xe[0])==null?void 0:sl.key)==null?void 0:_l.pageKey;s=await fe.getItemData(Z,sessionStorage.getItem("systemKey"),"")}if(V!==""){let ne;ce?ne=(Ml=s==null?void 0:s.find(Y=>(Y==null?void 0:Y.id)===ce))==null?void 0:Ml.compData:ne=(Bl=s==null?void 0:s.find(Y=>{var C,we,X,ye;return(Y==null?void 0:Y.name)===(((we=(C=J==null?void 0:J.groupSelect)==null?void 0:C.split(":"))==null?void 0:we[0])||((ye=(X=J==null?void 0:J.optionUrl)==null?void 0:X.groupSelect)==null?void 0:ye[0]))}))==null?void 0:Bl.compData;let Z=(He=(Pl=ne==null?void 0:ne.find(Y=>(Y==null?void 0:Y.key)==="header"))==null?void 0:Pl.contents)==null?void 0:He.map(Y=>Y==null?void 0:Y.label);(Te=(ge=ne==null?void 0:ne.find(Y=>(Y==null?void 0:Y.key)==="header"))==null?void 0:ge.contents)!=null&&Te.every(Y=>Array.isArray(Y))&&(Z=(Oe=fe.getColumnChild((he=(Me=ne==null?void 0:ne.find(Y=>(Y==null?void 0:Y.key)==="header"))==null?void 0:Me.contents)==null?void 0:he[0]))==null?void 0:Oe.map(Y=>Y==null?void 0:Y.prop));let Xe=(je=(Qe=ne==null?void 0:ne.find(Y=>(Y==null?void 0:Y.key)==="tableContents"))==null?void 0:Qe.contents)==null?void 0:je.map(Y=>{if(Array.isArray(Y))Y=Y==null?void 0:Y.filter(C=>!(C!=null&&C.id));else{let C={};for(let we in Y)we!=="id"&&(C[we]=Y==null?void 0:Y[we]);Y=C}return Y});Xe==null||Xe.forEach(Y=>{Array.isArray(Y)?K.push(fe.getValueToObjectValue(Y,Z)):K.push(Y)})}return K},fn={class:"table-content"},hn={class:"menu-config-wrap"},vn=["onClick"],yn={key:0,class:"viewport-wrap"},gn=["onClick"],bn={title:"选择显示列信息"},kn={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},mn=["title"],Sn={class:"col-operate-wrap"},xn={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},Cn={key:0,style:{display:"flex","justify-content":"center","align-items":"center"}},Dn={class:"pop-wrapper"},Nn={key:0,class:"file-list-pop"},Tn=["title","onClick"],En=["onClick"],An={class:"pop-view"},_n={class:"pop-wrapper"},Bn={class:"file-list-pop"},On=["title","onClick"],wn=["onClick"],Un=["onClick"],Ln={class:"form-content"},jn={key:0,class:"dialog-footer"},Mn={class:"dialog-footer"},Pn={style:{display:"flex","justify-content":"space-between",width:"100%","align-items":"center"}},$n=["title"],Fn={class:"icon",style:{display:"flex",gap:"8px"}},Rn={class:"dialog-footer"},Kn={class:"form-content"},Vn={__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(J,{emit:ce}){var dr;const oe=l.ref([]),K=br(D.pinia),V=l.ref(null),s=J,de=l.ref(s==null?void 0:s.allowSelect),Se=l.ref((dr=s==null?void 0:s.config)==null?void 0:dr.showIndex),Le=l.ref(),xe=l.ref(!0),sl=l.ref(!1),_l=l.ref([{label:"排序",value:"sortable",checked:!1},{label:"筛选",value:"filterable",checked:!1},{label:"合计",value:"showSummary",checked:!1},{label:"编辑",value:"operable",checked:!1}]),Ml=fe.useOriginalState(D.pinia);let Bl="$R";const{originalPath:Pl}=D.storeToRefs(Ml),He=Pl.value,ge=l.ref(!1),Te=l.ref(!1),Me=l.ref(!1),he=l.ref(!0),Oe=l.ref([]),Qe=l.reactive({column:{},status:!1,text:"合计"}),je=l.reactive({currentPage:1,pageSize:10,total:0,pageSizes:[5,10,20,50,100]}),ne=ce,Z=l.ref([]),Xe=l.ref([]),Y=l.reactive({prop:"",order:null}),C=l.ref([]),we=l.ref(!1),X=l.ref(!1),ye=l.ref(null),{isUseBackdrop:De,initTrackFileType:Ye,getFileExtension:bl,setData:Na,getFileInfo:Ra,getFilesInfo:kr}=tr.useThreeSystem(),Ta=l.ref([]),$l=l.ref(!1),Kl=l.ref(),We=xa.useMenuState(),{importLoading:qn,activeMenuPath:Ee,contentLoading:Jn,linkMenuInfo:mr}=D.storeToRefs(We),Sr=fe.useTableComp(D.pinia),$e=xa.useModelComp(D.pinia),{extraContents:_e,cacheUpdatingData:Xl,tableViewContents:Yl,tableLoading:Wn,pageMapState:Vl,lockingPage:ha}=D.storeToRefs($e),ee=l.ref([]),jl=l.ref([]),zl=l.ref(new Map);l.ref(!1);const Ol=l.ref("");l.ref();const va=l.ref(!0),ql=l.ref(0),Ka=l.ref(!0),ul=l.ref(""),wl=l.ref(!1),xr=l.ref({label:"查看三维模型"}),ya=l.ref(!1),Ea=l.ref(),yl=l.ref([]),kl=l.ref([]),ga=l.ref(!1),Zl=l.ref([]),Ul=l.ref([]),ml=l.ref([]),be=l.ref([]),ba=l.ref(!1),Il=l.ref(!1),Ll=l.ref([]),Cr=l.ref(null),Aa=l.ref(!1),_a=l.ref([]),Va=l.ref(""),Ba=l.ref(""),ea=Oo.createOCRService(),Dr=l.computed(()=>ea.getConfig()),Sl=l.ref(),ll=l.ref(),Nr=hr(D.pinia),la=l.ref(),Oa=l.ref(0),Tr=fe.useUnit(D.pinia),{selectIndex:Er,selectMenu:aa,selectTitle:Gn}=D.storeToRefs(Tr),{selectString:Fl}=D.storeToRefs(Nr),Ar=D.useLoginState(D.pinia),{loginUserInfo:Jl}=D.storeToRefs(Ar),_r=l.ref(720),xl=l.ref(!1),ka=l.ref(!1),Cl=l.ref([]),Dl=l.ref(),ra=l.ref(!0),za=l.ref(!0),Rl=l.ref([]),Br=l.inject("contentRef");l.provide("contentRef",Br),l.watch(()=>{var e;return(e=ee.value)==null?void 0:e.length},e=>{je.total=e}),l.watch(()=>Yl.value,async()=>{var u,t,i,p,v,T,m,S,L,E,j,c,B,P,M,b,A,k;if(((u=Yl.value)==null?void 0:u.length)===0||!((t=s==null?void 0:s.itemData)!=null&&t.find(_=>(_==null?void 0:_.key)==="columnPath"))||!((i=s==null?void 0:s.itemData)!=null&&i.find(_=>(_==null?void 0:_.key)==="pageColumn")))return;let e=(L=(S=(m=(T=(v=(p=s==null?void 0:s.itemData)==null?void 0:p.find(_=>(_==null?void 0:_.key)==="pageColumn"))==null?void 0:v.contents)==null?void 0:T.split("["))==null?void 0:m[1])==null?void 0:S.split("]"))==null?void 0:L[0],a=((B=(c=(j=(E=s==null?void 0:s.itemData)==null?void 0:E.find(_=>(_==null?void 0:_.key)==="pageColumn"))==null?void 0:j.contents)==null?void 0:c.split("["))==null?void 0:B[0])+((M=(P=Yl.value)==null?void 0:P.find(_=>(_==null?void 0:_.key)===e))==null?void 0:M.value),o=((A=(b=s==null?void 0:s.itemData)==null?void 0:b.find(_=>(_==null?void 0:_.key)==="pageGroup"))==null?void 0:A.contents)??"",r=await fe.getItemData(a,sessionStorage.getItem("systemKey"),""),n=(k=r==null?void 0:r.find(_=>(_==null?void 0:_.name)===(o===""?s==null?void 0:s.compName:o)))==null?void 0:k.compData;sr(n,s.allMapContents)},{deep:!0});const Or=async(e,a)=>{var o,r,n,u,t;try{const i=await D.getInsofDataApi({id:(s==null?void 0:s.parentTableId)||(s==null?void 0:s.index)});let p;((o=i==null?void 0:i.data)==null?void 0:o.code)===200&&(p=((n=(r=i==null?void 0:i.data)==null?void 0:r.result)==null?void 0:n[0])||null);const v={type:"data",pageKey:s!=null&&s.parentTableId?(u=p==null?void 0:p.key)==null?void 0:u.pageKey:Ee.value,tableId:(s==null?void 0:s.parentTableId)||(s==null?void 0:s.index),systemKey:sessionStorage.getItem("systemKey")},T=a==null?void 0:a.map(L=>{const E=Object.keys(L),j={};return E.forEach((c,B)=>{j[e[B]]=L[c]}),j}),m=T==null?void 0:T.map(L=>({key:v,value:{tableData:L}})),S=await D.batchAddInsofDataApi({dataList:m});((t=S==null?void 0:S.data)==null?void 0:t.code)===200?($e.setRefreshCurStructure(!0),D.ElMessage.success("导入数据成功")):D.ElMessage.error("导入数据响应失败")}catch(i){throw D.ElMessage.error("导入数据处理失败"),new Error(i)}},wr=async e=>{var u,t,i,p,v,T,m;let a=Xe.value;a!=null&&a.find(S=>(e==null?void 0:e.key)===(S==null?void 0:S.key))&&(a=a==null?void 0:a.filter(S=>(e==null?void 0:e.key)!==(S==null?void 0:S.key))),a.push({key:e==null?void 0:e.key,value:[(t=e==null?void 0:e.value)==null?void 0:t[((u=e==null?void 0:e.value)==null?void 0:u.length)-1]]});let o=be.value;o=o==null?void 0:o.map(S=>{var L,E;return(S==null?void 0:S.type)==="Select"&&(e==null?void 0:e.key)===(S==null?void 0:S.prop)&&Array.isArray(S.value)&&(L=S.value)!=null&&L.every(j=>typeof j=="string")&&(S.selectValue=(E=a==null?void 0:a.find(j=>(j==null?void 0:j.key)===(S==null?void 0:S.prop)))==null?void 0:E.value),S});let r=(p=(i=o==null?void 0:o.find(S=>(S==null?void 0:S.prop)===(e==null?void 0:e.key)))==null?void 0:i.optionUrl)==null?void 0:p.menuId,n=o==null?void 0:o.find(S=>(S==null?void 0:S.prop)===(e==null?void 0:e.key));if(r){let S=await Ca(n==null?void 0:n.optionUrl,r),L,E=Oe.value,j=(m=(T=(v=be.value)==null?void 0:v.find(c=>{var B;return(B=n==null?void 0:n.optionUrl)==null?void 0:B.menuId}))==null?void 0:T.selectValue)==null?void 0:m[0];if(S==null||S.forEach(c=>{var B,P,M,b,A,k,_,y,H,$;if(r){let G=(P=(B=be.value)==null?void 0:B.find(O=>{var se,R;return((se=n==null?void 0:n.optionUrl)==null?void 0:se.menuId)===((R=O==null?void 0:O.optionUrl)==null?void 0:R.menuId)}))==null?void 0:P.prop,d=(b=(M=o==null?void 0:o.find(O=>(O==null?void 0:O.prop)===G))==null?void 0:M.selectValue)==null?void 0:b[0];G!=null&&G.includes("·")&&(G=(A=G==null?void 0:G.split("·"))==null?void 0:A[0],d=(H=(y=(_=e==null?void 0:e.value)==null?void 0:_[((k=e==null?void 0:e.value)==null?void 0:k.length)-1])==null?void 0:y.split(" "))==null?void 0:H[0]),E!=null&&E.find(O=>(O==null?void 0:O.value)===j)?L=($=E==null?void 0:E.find(O=>(O==null?void 0:O.value)===j))==null?void 0:$.objectValue:c[G]===d&&(L=c)}}),L){let c=o;c=c==null?void 0:c.map(B=>{var P,M,b,A,k,_;return r&&(L!=null&&L[B==null?void 0:B.prop])&&ul.value==="新增"&&(B==null?void 0:B.prop)!==(n==null?void 0:n.prop)?B.value=(L==null?void 0:L[B==null?void 0:B.prop])||(L==null?void 0:L[(A=(b=(M=(P=B==null?void 0:B.optionUrl)==null?void 0:P.groupSelect)==null?void 0:M[1])==null?void 0:b.replaceAll("[",""))==null?void 0:A.replaceAll("]","")]):B.value=(_=(k=be.value)==null?void 0:k.find(y=>(y==null?void 0:y.prop)===(B==null?void 0:B.prop)))==null?void 0:_.value,B}),be.value=c}}Xe.value=a},Ur=async e=>{var a,o,r,n,u;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 t=await D.axios.get(e,{responseType:"blob",headers:{"Content-Type":"application/json"}}),i=new Blob([t.data],{type:"application/octet-stream;charset=UTF-8"});let p=URL.createObjectURL(i);Kl.value=[{name:(u=e==null?void 0:e.split("/"))==null?void 0:u[((n=e==null?void 0:e.split("/"))==null?void 0:n.length)-1],blobUrl:p}],$l.value=!0}};l.onBeforeUnmount(()=>{za.value=!1;let e=Oa.value;Oa.value=e+1});const qa=l.computed(()=>{var r,n;const e=(je.currentPage-1)*je.pageSize,a=e+je.pageSize,o=(r=Z.value)==null?void 0:r.find(u=>{var t;return(u==null?void 0:u.sortable)&&((t=u==null?void 0:u.label)==null?void 0:t.includes("时间"))});return o&&(Y.order="descending",Y.prop=o==null?void 0:o.prop),ne("getSliceContLength",je),(n=ee.value)==null?void 0:n.slice(e,a)}),Lr=e=>{je.currentPage=e,ne("getSliceContLength",je)},jr=e=>{var a;je.pageSize=e,e*je.currentPage>((a=ee.value)==null?void 0:a.length)&&(je.currentPage=1,je.pageSize=10,D.ElMessage.warning("分页无效,返回第一页")),ne("getSliceContLength",je)},Mr=(e,a)=>{var t,i;const o=(i=(t=Z.value)==null?void 0:t.map(p=>p==null?void 0:p.prop))==null?void 0:i.filter(p=>p!=="operate");let r;const n=(e==null?void 0:e.length)===(o==null?void 0:o.length);if(e!=null&&e.includes("序号"))return D.ElMessage.error("导入的数据不需要包含序号列");if(r=n?e:e.slice(0,o==null?void 0:o.length),!(r==null?void 0:r.every(p=>o==null?void 0:o.find(v=>p===v))))return D.ElMessage.error("导入的数据表头不匹配");Or(r,a)},Pr=(e,a)=>{var o;$e.setRefreshCurStructure(!1),((o=Z.value)==null?void 0:o.length)===0||Mr(e,a)},$r=(e,a,o,r)=>{const n=[],u=[],t=v=>Object.keys(v).length;for(const v in e)if(e[v]!==void 0){const T=e[v],m=[];for(const[S,L]of Object.entries(T))m.push(L),u.length<t(T)&&u.push(S);n.push(m)}n.unshift(u);const i=fe.utils.aoa_to_sheet(n),p=fe.utils.book_new();fe.utils.book_append_sheet(p,i,r),fe.writeFileSync(p,`${a}.xlsx`),Cl.value=[]},ma=async(e,a,o,r=!1,n)=>{var u,t,i,p,v,T,m,S;try{$e.setRefreshCurStructure(!1);const L=await D.getInsofDataApi({id:s==null?void 0:s.index});if(((u=L==null?void 0:L.data)==null?void 0:u.code)===200){let E=(v=(p=(i=(t=L==null?void 0:L.data)==null?void 0:t.result)==null?void 0:i[0])==null?void 0:p.value)==null?void 0:v.pageData;r?E={...E,compData:(m=E==null?void 0:E.compData)==null?void 0:m.map(c=>{var B;return(c==null?void 0:c.key)==="header"?{...c,contents:(B=c==null?void 0:c.contents)==null?void 0:B.map(P=>({...P,[e]:o}))}:c})}:E={...E,compData:(T=E==null?void 0:E.compData)==null?void 0:T.map(c=>{var B,P;return(c==null?void 0:c.key)==="header"?{...c,contents:(B=c==null?void 0:c.contents)==null?void 0:B.map(M=>(M==null?void 0:M.prop)===(a==null?void 0:a.prop)?{...M,[e]:o}:M)}:(c==null?void 0:c.key)==="tableToForm"&&n?{...c,contents:(P=c==null?void 0:c.contents)==null?void 0:P.map(M=>(M==null?void 0:M.prop)===(a==null?void 0:a.prop)?{...M,[n]:o}:M)}:c})};const j=await D.updateInsofDataApi({id:s==null?void 0:s.index,value:{pageData:E}});((S=j==null?void 0:j.data)==null?void 0:S.code)===200?(D.ElMessage.success("编辑成功"),$e.setRefreshCurStructure(!0)):D.ElMessage.error("编辑响应失败")}}catch(L){D.ElMessage.error(L)}},Fr=async(e,a)=>{await ma("label",a,e)},Rr=async(e,a)=>{await ma("columnType",a,e,!1,"type")},Kr=()=>{Xl.value?xl.value=!1:ur()},Vr=e=>{Cl.value=e},zr=(e,a)=>{Dl.value===a?ra.value=!1:ra.value=!0,Dl.value=a==null?void 0:a.changeProp},qr=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})},oa=l.computed(()=>{var o,r,n;const e=(o=Z.value)==null?void 0:o.some(u=>u==null?void 0:u.filterable);return document.documentElement.style.setProperty("--ssTable-header-filter-display",e?"inline-block":"none"),(n=(r=Z.value)==null?void 0:r.filter(u=>(u==null?void 0:u.label)!=="操作"))==null?void 0:n.map(u=>({...u,filterable:!!(u!=null&&u.filterable),showSummary:!!(u!=null&&u.showSummary),operable:!!(u!=null&&u.operable)}))}),Jr=async(e,a,o)=>{const r=D.cloneDeep(Z.value);await l.nextTick(),Z.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 ma(a,o,e)},wa=async(e,a)=>{await ma(a,null,e,!0)},Wr=()=>{wl.value=!1},Gr=e=>{ne("clickTrigger",e)},Ja=async e=>{var u,t,i,p,v,T,m,S,L,E,j,c,B,P,M;const a=e==null?void 0:e.row,o=e==null?void 0:e.rowData,r=e==null?void 0:e.suffix;if((u=a==null?void 0:a.toString())!=null&&u.includes(".urdf")||e!=null&&e.isUrdf||r!=null&&r.includes(".urdf")){if(a.includes(",")){D.ElMessage.error("当前版本仅允许单个urdf预览!");return}if(De(a)){const A={files:[Ra(a)],data:{}};Na(A);return}Zl.value=[{url:a,extension:bl(a)}],X.value=!0,ye.value={data:D.cloneDeep(o)},we.value=!0;return}let n=[];if((t=a==null?void 0:a.toString())!=null&&t.includes(".stl")||(i=a==null?void 0:a.toString())!=null&&i.includes(".STL")||(p=a==null?void 0:a.toString())!=null&&p.includes(".obj")||(v=a==null?void 0:a.toString())!=null&&v.includes(".mtl")){const b=(T=a==null?void 0:a.toString())==null?void 0:T.split(","),A=kr(b),k=A==null?void 0:A[0];if(De(k==null?void 0:k.extension)){Na({files:A,data:{}});return}Zl.value=A,X.value=!1,we.value=!0;return}if((m=a==null?void 0:a.toString())!=null&&m.includes(".stl")||(S=a==null?void 0:a.toString())!=null&&S.includes(".STL")||(L=a==null?void 0:a.toString())!=null&&L.includes(".obj")||(E=a==null?void 0:a.toString())!=null&&E.includes(".mtl")||r!=null&&r.includes(".stl")||r!=null&&r.includes(".STL")||r!=null&&r.includes(".obj")||r!=null&&r.includes(".mtl")){let b,A=[],k={};if(Array.isArray(a)?b=a:b=a==null?void 0:a.split(","),b==null||b.forEach(_=>{_.includes(".mtl")?A.push(_):k.blob=k.blob?k.blob+","+_:_}),(A==null?void 0:A.length)>0&&(k.mtlBlobs=A),r&&(k.suffix=r),(c=(j=Object.values(k))==null?void 0:j[0])!=null&&c.includes("http:"))n.push(k);else{const _=new Blob([k.blob],{type:"application/octet-stream;charset=UTF-8"});let y=URL.createObjectURL(_),H="";(B=a==null?void 0:a.split("/"))==null||B.forEach(($,G)=>{var d;G===((d=a==null?void 0:a.split("/"))==null?void 0:d.length)-1&&(H=$)}),(P=k.blob)!=null&&P.includes(".stl")&&(H=(H==null?void 0:H.replaceAll(">",""))+".urdf"),Kl.value=[{name:H,blobUrl:y}],$l.value=!0}}else{const b=await D.axios.get(a,{responseType:"blob",headers:{"Content-Type":"application/json"}}),A=new Blob([b.data],{type:"application/octet-stream;charset=UTF-8"});let k=URL.createObjectURL(A),_="";if((M=a==null?void 0:a.split("/"))==null||M.forEach((y,H)=>{var $;H===(($=a==null?void 0:a.split("/"))==null?void 0:$.length)-1&&(_=y)}),De(_)){const y=Ye(_),H=Ra(a);Na({files:[H],data:{trackFileType:y}});return}Kl.value=[{name:_,blobUrl:k}],$l.value=!0}(n==null?void 0:n.length)>0&&K.setBlobUrls(n)},Wl=e=>{var r,n,u,t;if(e!=null&&e.downloadUrl)return e==null?void 0:e.name;const a=(t=(r=e==null?void 0:e.url)==null?void 0:r.split("."))==null?void 0:t[((u=(n=e==null?void 0:e.url)==null?void 0:n.split("."))==null?void 0:u.length)-1];return(e==null?void 0:e.name)+"."+a},Wa=async e=>{let a=null,o=null;if(e!=null&&e.downloadUrl){const n=await Ua(),u=vl.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),t=await D.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(()=>{u.close()}),i=new Blob([t.data],{type:"application/octet-stream;charset=UTF-8"});a=URL.createObjectURL(i),o=e==null?void 0:e.name}else{const n=await fe.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=Wl(e)):a=e==null?void 0:e.url}if(De(a)){const n={row:`${a}`,suffix:bl(o)};Ja(n);return}const r={name:o,blobUrl:a};Kl.value=[r],$l.value=!0},Ga=async e=>{let a=null,o=null;if(e!=null&&e.downloadUrl){const u=await Ua(),t=await D.axios.post(e==null?void 0:e.url,null,{responseType:"blob",headers:{Authorization:u,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}),i=new Blob([t.data],{type:"application/octet-stream;charset=UTF-8"});a=URL.createObjectURL(i),o=e==null?void 0:e.name}else{const u=await fe.downloadAvatarApi({url:e==null?void 0:e.url});a=URL.createObjectURL(u.data),o=Wl(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)},Hr=(e,a)=>{var r;if(Object.values(a).length===0)return;let o=e;return Object.values(a).find(n=>{var u,t,i;return((u=n==null?void 0:n.toString())==null?void 0:u.includes(".txt"))||((t=n==null?void 0:n.toString())==null?void 0:t.includes(".cpt"))||((i=n==null?void 0:n.toString())==null?void 0:i.includes(".obj"))})?o=[...e,xr.value]:(r=s==null?void 0:s.config)!=null&&r.allowMove&&(o=[...e,{label:"迁移"}]),o},Qr=(e,a={})=>[...e==null?void 0:e.values()].filter(o=>Object.keys(a).every(r=>{var t;const n=o[r],u=(t=a[r])==null?void 0:t.toLowerCase();return u&&n&&typeof n=="string"?n.toLowerCase().includes(u):!0})),Xr=()=>{sl.value=!0},Ha=l.ref([]),Yr=async(e,a,o=!1)=>{var r;if(e){if($e.setTableLoading(!0),Ha.value=Object.values(e),e&&((r=Object.values(e))!=null&&r.every(n=>!n)))return ee.value=jl.value;if(o){ee.value=[...zl.value.values()].filter(n=>Object.values(n).some(u=>typeof u=="string"?u==null?void 0:u.toLowerCase().includes(a==null?void 0:a.toLowerCase()):!1));return}ee.value=Qr(zl.value,e),$e.setTableLoading(!1)}},Zr=async e=>{},Qa=async(e,a,o,r)=>{var n,u,t,i,p,v,T,m,S,L,E,j,c,B,P,M,b,A,k,_;if(ne("clickMainKey",o),(r==null?void 0:r.isExistChild)===!0){let y=(n=r==null?void 0:r.columnType)==null?void 0:n.prop,H=r==null?void 0:r.data;if(Rl.value=await fe.getItemData(Ee.value,sessionStorage.getItem("systemKey"),""),!Rl.value){let G=(i=(t=(u=Ee.value)==null?void 0:u.split("/"))==null?void 0:t.filter((d,O)=>{var se,R;return O!==((R=(se=Ee.value)==null?void 0:se.split("/"))==null?void 0:R.length)-1}))==null?void 0:i.join("/");Rl.value=await fe.getItemData(G,sessionStorage.getItem("systemKey"),"")}let $=(p=Rl.value)==null?void 0:p.filter(G=>(G==null?void 0:G.name)===y);Rl.value=$==null?void 0:$.map(G=>{var d;return G.compData=(d=G.compData)==null?void 0:d.map(O=>{var se,R;return(O==null?void 0:O.key)==="tableContents"&&(se=O==null?void 0:O.contents)!=null&&se.every(x=>x==null?void 0:x.find(U=>U==null?void 0:U.id))&&(O.contents=(R=O==null?void 0:O.contents)==null?void 0:R.filter(x=>(x==null?void 0:x[1])===H)),O}),G}),ne("routeUrl",Rl.value,{isEdit:!0,routerUrl:Ee.value});return}if((r==null?void 0:r.data)==="查看"&&(e!=null&&e.every(y=>(y==null?void 0:y.url)&&(y==null?void 0:y.name)))){let y=D.cloneDeep(e);y=await((v=D.cloneDeep(y))==null?void 0:v.map(async $=>{var O,se,R,x;const G=await fe.downloadAvatarApi({url:$==null?void 0:$.url});let d=URL.createObjectURL(G.data);return{name:($==null?void 0:$.name)+"."+((x=(O=$==null?void 0:$.url)==null?void 0:O.split("."))==null?void 0:x[((R=(se=$==null?void 0:$.url)==null?void 0:se.split("."))==null?void 0:R.length)-1]),blobUrl:d}}));let H=await Promise.all(y);Kl.value=H,$l.value=!0}if(D.cloneDeep(Z.value),(r==null?void 0:r.isMainKey)===!0){We.setActiveMenuPath(void 0),$e.setRouteToChildPath(void 0),$e.setFixMenuStatus(!0);let y=(m=(T=s.itemData)==null?void 0:T.find($=>($==null?void 0:$.key)==="contentTableId"))==null?void 0:m.contents,H=(L=(S=s.itemData)==null?void 0:S.find($=>($==null?void 0:$.key)==="relatedFilter"))==null?void 0:L.index;if(H!==0){let $=(j=(E=Z.value)==null?void 0:E[H])==null?void 0:j.prop;if((o==null?void 0:o[$])===(r==null?void 0:r.data)){let G=await D.getInsofDataApi({id:y}),d=(M=(P=(B=(c=G==null?void 0:G.data)==null?void 0:c.result)==null?void 0:B[0])==null?void 0:P.key)==null?void 0:M.pageKey;We.setActiveMenuPath(d+"/"+(r==null?void 0:r.data))}else{let G=await D.getInsofDataApi({key:{pageKey:D.cloneDeep(Ee).value+"/"+(r==null?void 0:r.data),systemKey:sessionStorage.getItem("systemKey")}});((A=(b=G==null?void 0:G.data)==null?void 0:b.result)==null?void 0:A.length)>0&&We.setActiveMenuPath(D.cloneDeep(Ee).value+"/"+(r==null?void 0:r.data))}}else{let $=await D.getInsofDataApi({key:{pageKey:D.cloneDeep(Ee).value+"/"+(r==null?void 0:r.data),systemKey:sessionStorage.getItem("systemKey")}});((_=(k=$==null?void 0:$.data)==null?void 0:k.result)==null?void 0:_.length)>0&&We.setActiveMenuPath(D.cloneDeep(Ee).value+"/"+(r==null?void 0:r.data))}}},Ir=()=>{$l.value=!1},eo=e=>{ne("rowClick",e)};l.watch(()=>s.changedContent,()=>{var o,r;if(!s.changedContent)return;let e=(o=ee.value)==null?void 0:o.map(n=>{var u;return n.id===((u=s.changedContent)==null?void 0:u.id)&&(n={...s.changedContent,id:s.changedContent.newId?s.changedContent.newId:s.changedContent.id},delete n.newId),n});const a=(r=s.itemData)==null?void 0:r.map(n=>((n==null?void 0:n.key)==="tableContents"&&(n.contents=e),n));ee.value=e,ne("contentChange",{contents:a,index:s.index}),ne("change",{content:e,index:s==null?void 0:s.index,buttonName:"",id:s==null?void 0:s.index})},{deep:!0,immediate:!0});const lo=()=>{},ao=async()=>{const e=Ee.value,a=sessionStorage.getItem("systemKey"),o=await fe.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)||[],u=n==null?void 0:n.find(i=>{const p=i==null?void 0:i.key;return p==="formContent"||p==="tableContents"});return u==null?void 0:u.contents},Ua=async()=>`Bearer ${D.Local.get("access-token")}`,ro=async(e,{token:a,inputData:o}={})=>await D.axios.post(e,o,{headers:{Authorization:a}}).catch(n=>(We.setImportLoading(!1),Promise.reject(n))),oo=e=>{var r;let a={};const o=[];return a.form={},(r=D.cloneDeep(e))==null||r.forEach((n,u)=>{var t,i,p,v,T,m,S,L,E,j,c,B,P,M;if((n==null?void 0:n.comp)==="Table"){(i=(t=n==null?void 0:n.compData)==null?void 0:t.find(_=>(_==null?void 0:_.key)==="header"))==null||i.contents;let b=(T=(v=(p=n==null?void 0:n.compData)==null?void 0:p.find(_=>(_==null?void 0:_.key)==="tableContents"))==null?void 0:v.contents)==null?void 0:T.map(_=>_.slice(1));(j=(E=(L=(S=(m=n==null?void 0:n.compData)==null?void 0:m.find(_=>(_==null?void 0:_.key)==="header"))==null?void 0:S.contents)==null?void 0:L[0])==null?void 0:E[0])==null||j.label;let A=(B=(c=n==null?void 0:n.compData)==null?void 0:c.find(_=>(_==null?void 0:_.key)==="header"))==null?void 0:B.contents,k=[];b==null||b.forEach(_=>{let y=[];_==null||_.forEach((H,$)=>{var d;let G={};((d=A[$])==null?void 0:d.label)!=="操作"&&(G[A[$].label]=H,y.push(G))}),k.push(y)}),a[n.name]=k}else{const b=(M=(P=n.compData)==null?void 0:P.find(A=>(A==null?void 0:A.key)==="formContent"))==null?void 0:M.contents;b==null||b.forEach(A=>{var k,_;if(A.prop!==""){let y=A==null?void 0:A.value;Array.isArray(y)?y=((k=y==null?void 0:y[0])==null?void 0:k.oldUrl)||"http://222.92.178.198:62001/"+((_=y==null?void 0:y[0])==null?void 0:_.url):y=y.toString(),A={key:(A==null?void 0:A.prop)??(A==null?void 0:A.label),value:y},o.push(A)}})}}),a.form=fe.getFormContents(o),a},no=e=>{const a=[],o=r=>{r&&typeof r=="object"&&!Array.isArray(r)?Object.values(r).forEach(o):a.push(r)};return o(e),a},io=async(e,a,o)=>{var A,k,_,y,H,$,G,d,O,se,R;We.setImportLoading(!0),$e.setFreshContent(!1);let r=await ao().catch(x=>(We.setImportLoading(!1),Promise.reject(x)));r=r==null?void 0:r.filter(x=>{var U;return((U=x==null?void 0:x.find(ae=>ae==null?void 0:ae.id))==null?void 0:U.id)===(a==null?void 0:a.id)});let n=fe.getEqualChild([(A=Z.value)==null?void 0:A.filter(x=>(x==null?void 0:x.label)!=="操作")]);const u=(_=(k=fe.tableToForm(r,n))==null?void 0:k[0])==null?void 0:_.find(x=>{const U=x==null?void 0:x.key;return U==="Interface"||U==="方法体"}),t=u==null?void 0:u.value;if(!t){console.log("未搜索到isMain, 缺少算法执行接口"),We.setImportLoading(!1);return}const i=Z.value?fe.getEqualChild([Z.value]):[],p=i.find(x=>{const U=x==null?void 0:x.prop;return U==="Input1"||U==="输入数据.输入1"||U==="样本输入数据"}),v=p==null?void 0:p.prop;let T=a==null?void 0:a[v];const m=await Ua().catch(x=>(We.setImportLoading(!1),Promise.reject(x)));let S=!0,L="";(y=Z.value)==null||y.forEach(x=>{(x==null?void 0:x.prop)===v&&(S=!!(x!=null&&x.childPath),L=x==null?void 0:x.childPath)});let E="";if(S){let x=($=(H=Z.value)==null?void 0:H.find(pe=>(pe==null?void 0:pe.isMainKey)===!0))==null?void 0:$.prop;E=a==null?void 0:a[x];let U=L==null?void 0:L.split(He),ae=[];U==null||U.forEach((pe,te)=>{(U==null?void 0:U.length)-1===te&&ae.push(E),ae.push(pe)}),ae=ae==null?void 0:ae[0];let le=await fe.getItemData(ae,sessionStorage.getItem("systemKey"),""),I=le==null?void 0:le.filter(pe=>(pe==null?void 0:pe.name)===v);I=I==null?void 0:I.map(pe=>{var te;return pe.compData=(te=pe==null?void 0:pe.compData)==null?void 0:te.map(W=>{var ie;return(W==null?void 0:W.key)==="tableContents"&&(W.contents=(ie=W==null?void 0:W.contents)==null?void 0:ie.filter(Be=>(Be==null?void 0:Be[1])===(a==null?void 0:a[v]))),W}),pe}),(!I||(I==null?void 0:I.length)===0)&&(I=le,I=I==null?void 0:I.map(pe=>{var te;return pe.compData=(te=pe==null?void 0:pe.compData)==null?void 0:te.map(W=>{var ie;return(W==null?void 0:W.key)==="tableContents"&&(W.contents=(ie=W==null?void 0:W.contents)==null?void 0:ie.filter(Be=>{var g,F;return(Be==null?void 0:Be[1])===(a==null?void 0:a[(F=(g=Z==null?void 0:Z.value)==null?void 0:g[0])==null?void 0:F.prop])})),W}),pe})),T=oo(I)}const j=await ro(t,{token:m,inputData:T}).catch(x=>(We.setImportLoading(!1),Promise.reject(x))),c=(G=j==null?void 0:j.data)==null?void 0:G.data,B=i.find(x=>(x==null?void 0:x.prop)==="Output1"),P=B==null?void 0:B.prop;let M=[],b=[];if(c&&((d=Object.values(c))==null?void 0:d.length)>0){let x=[];const U=new FormData,ae=(O=no(c))==null?void 0:O.map(async I=>{var pe,te;if(!Array.isArray(I)&&(I!=null&&I.includes("http"))){let W=await D.axios.get(I,{responseType:"blob"}),ie=(te=I==null?void 0:I.split("/"))==null?void 0:te[((pe=I==null?void 0:I.split("/"))==null?void 0:pe.length)-1];U.append("files",W.data,ie)}else x.push(I)});if(await Promise.all(ae),!fe.isFormDataEmpty(U)){let I=await fe.uploadAmountApi(U),pe=(R=(se=I==null?void 0:I.data)==null?void 0:se.result)==null?void 0:R.map(te=>{var W,ie,Be,g,F,w;return{name:(w=(F=(g=(W=te==null?void 0:te.url)==null?void 0:W.split("/"))==null?void 0:g[((Be=(ie=te==null?void 0:te.url)==null?void 0:ie.split("/"))==null?void 0:Be.length)-1])==null?void 0:F.split("."))==null?void 0:w[0],url:te==null?void 0:te.url}});x=[...x,...pe]}let le={};for(let I in a)I!=="id"&&(le[I]=a[I]);le[P]=x,b.push({id:a==null?void 0:a.id,value:{tableData:le}})}(b==null?void 0:b.length)>0&&await D.batchUpdateInsofDataApi({dataList:b}),(M==null?void 0:M.length)>0&&await D.batchAddInsofDataApi({dataList:M}),sa(!0),We.setImportLoading(!1),$e.setFreshContent(!0)},Xa=(e,a)=>(e=e==null?void 0:e.map(o=>{var r,n;return o!=null&&o.children&&((r=o.children)!=null&&r.find(u=>u.id===(a==null?void 0:a.id))?o.children=(n=o.children)==null?void 0:n.filter(u=>(u==null?void 0:u.id)!==(a==null?void 0:a.id)):o.children=Xa(o.children,a)),o}),e),Fe=l.reactive({title:"迁移至",show:!1,width:"20%",selectRow:null,from:s==null?void 0:s.index,to:null,contents:[],formRules:{groupName:[{required:!0,message:"输入不能为空",trigger:"blur"},{validator:(e,a,o)=>{a===(s==null?void 0:s.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)"}]}),so=()=>{Fe.show=!1},uo=e=>{var a,o;if((e==null?void 0:e.buttonName)==="取消")return Fe.show=!1;Fe.to=e==null?void 0:e.content,!(!(s!=null&&s.index)||!((a=Fe.to)!=null&&a.groupName))&&(s==null?void 0:s.index)!==((o=Fe.to)==null?void 0:o.groupName)&&(ne("change",{buttonName:"迁移",value:{from:Fe.from,to:Fe.to,data:Fe.selectRow}}),Fe.show=!1)},co=e=>{if(e){if(!ea.validateFileSize(e.raw)){D.ElMessage.warning(`文件大小不能超过 ${Dr.value.maxSize}MB`);return}if(!ea.validateFileType(e.raw)){D.ElMessage.warning("请上传图片文件");return}}},to=async()=>{var e,a,o;if(Ll.value.length===0){D.ElMessage.warning("请先选择要上传的图片");return}Il.value=!0;try{const r=Ll.value.map(async T=>{var L,E,j,c;const m=new FormData;m.append("file",T.raw,T.name);const S=await vl.uploadFileApi(m);return{name:((E=(L=S==null?void 0:S.data)==null?void 0:L.result)==null?void 0:E.fileName)??T.name,url:((c=(j=S==null?void 0:S.data)==null?void 0:j.result)==null?void 0:c.url)??""}}),n=await Promise.all(r),u=ea.extractTableHeaders(Z.value),i=!1?pn:await ea.recognize(n,u);console.log("OCR识别结果:",i);const p=Array.isArray(i==null?void 0:i.result)?i.result:[];let v=[];if(p.length>0){const T=(e=fe.getAllLeafNodes(Z.value)||[])==null?void 0:e.filter(E=>(E==null?void 0:E.type)!=="operate"&&(E==null?void 0:E.label)!=="操作"&&(E==null?void 0:E.prop)!=="operate"),m=new Map;T==null||T.forEach(E=>{E!=null&&E.label&&(E!=null&&E.prop)&&m.set(E.label,E.prop)});const S=Date.now(),L=E=>`${S}_${E}`;v=p.map((E,j)=>{const c=E!=null&&E.数据&&typeof(E==null?void 0:E.数据)=="object"?E.数据:{},B={id:L(j),_isOCRRow:!0};for(const[P,M]of m.entries())Object.prototype.hasOwnProperty.call(c,P)&&(B[M]=c[P]);return B}),ee.value=[...ee.value||[],...v],jl.value=[...jl.value||[],...v],v.forEach(E=>{var j,c;return(c=(j=zl.value)==null?void 0:j.set)==null?void 0:c.call(j,E.id,E)}),la.value=ee.value}D.ElMessage.success(`成功上传 ${n.length} 张图片并完成OCR识别`),ne("change",{content:ee.value,index:s==null?void 0:s.index,type:"ocrRecognitionCompleted",buttonName:"OCR识别完成",uploadedFiles:n,ocrResult:i,column:Z.value}),ba.value=!1,Ll.value=[]}catch(r){console.error("OCR处理失败:",r),D.ElMessage.error(((o=(a=r==null?void 0:r.response)==null?void 0:a.data)==null?void 0:o.message)||"OCR识别失败,请重试")}finally{Il.value=!1}},Ya=()=>{ba.value=!1,Ll.value=[],Cr.value=null},po=async e=>{Va.value=e==null?void 0:e.name;const a=e.raw;Ba.value=URL.createObjectURL(a),_a.value=[{name:Va.value,blobUrl:Ba.value}],Aa.value=!0},fo=()=>{Aa.value=!1,_a.value=[],Ba.value=""},ho=e=>{Ll.value=Ll.value.filter((a,o)=>o!==e)},Sa=async(e,a,o)=>{var r,n,u,t,i,p,v,T,m,S,L,E,j,c,B;if(Ol.value="",ga.value=!0,va.value=!0,ne("onButtonClick",e,a),Oe.value=[],e==="删除")xa.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var P,M;(P=ee.value)!=null&&P.find(b=>(b==null?void 0:b.id)===(a==null?void 0:a.id))?ee.value=(M=D.cloneDeep(ee.value))==null?void 0:M.filter(b=>(b==null?void 0:b.id)!==(a==null?void 0:a.id)):ee.value=Xa(D.cloneDeep(ee.value),a),rn(la.value,aa.value,a==null?void 0:a.id),$e.setTableLoading(s==null?void 0:s.index),ne("change",{content:ee.value,singleContent:a,index:s==null?void 0:s.index,type:"delete",buttonName:e,column:Z.value})});else if(e==="批量删除"){if(((r=Cl.value)==null?void 0:r.length)===0)return D.ElMessage.warning("请先勾选操作的数据");xa.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var M,b;const P=(M=Cl.value)==null?void 0:M.map(A=>A.id);ee.value=(b=D.cloneDeep(ee.value))==null?void 0:b.filter(A=>!(P!=null&&P.includes(A.id))),$e.setTableLoading(s==null?void 0:s.index),ne("change",{content:ee.value,singleContent:null,selectItems:Cl.value,index:s==null?void 0:s.index,type:"batchDelete",buttonName:e,column:Z.value})})}else if(e==="复制新增"){ul.value="新增";const P=D.cloneDeep(a),M=(n=Z.value)==null?void 0:n.find(k=>k==null?void 0:k.isMainKey),b=M||((u=Z.value)==null?void 0:u[0]),A=(t=ml.value)==null?void 0:t.find(k=>(k==null?void 0:k.label)==="新建");await Ia(!0,A,{data:P,firstCol:b})}else if(e==="新增")ul.value="新增",ia(""),wl.value=!0;else if(e==="编辑")ul.value="编辑",ia(a),wl.value=!0;else if(e==="查看")ul.value="查看",ia(a),ga.value=!1,va.value=!1,wl.value=!0;else if(e==="查看三维模型"){const P={};for(let b in a)b!=="id"&&(P[b]=a[b]);let M=(i=Object.values(P))==null?void 0:i[1];Sr.setTableShowThree(M)}else if(((p=o==null?void 0:o.extra)==null?void 0:p.type)==="modelExample")ul.value=e,ya.value=!0;else if(e==="新建"){let P=Vl.value,M=[];for(let y in P)y!=null&&y.includes(`loading${((v=Jl.value)==null?void 0:v.account)||((T=Jl.value)==null?void 0:T.账号)}`)&&(M=[...M,...y]);let b=[];for(let y in P)y!=null&&y.includes(`updateLoading${((m=Jl.value)==null?void 0:m.account)||((S=Jl.value)==null?void 0:S.账号)}`)&&(b=[...b,...y]);let A=M==null?void 0:M.map(y=>y==null?void 0:y.id);const k=b==null?void 0:b.map(y=>y==null?void 0:y.id);A=[...D.cloneDeep(A),...k],(A==null?void 0:A.length)>0&&(A!=null&&A.every(y=>y!==null&&y))&&await D.batchDeleteInsofDataApi({ids:A});const _=(L=ml.value)==null?void 0:L.find(y=>(y==null?void 0:y.label)==="新建");await Ia(!1,_)}else if(e==="修改模板"){let P=D.cloneDeep(Ee).value;$e.setRouteToChildPath(P),We.setActiveMenuPath(P+He)}else if(e==="执行")io(e,a);else if(e!=null&&e.includes("导出")){if(e==="导出选中"&&((E=Cl.value)==null?void 0:E.length)===0)return D.ElMessage.warning(`请先勾选${e}的数据`);if(e==="导出全部"&&((j=ee.value)==null?void 0:j.length)===0)return D.ElMessage.warning("暂无数据导出");const P=(B=(c=Z.value)==null?void 0:c.map(b=>b==null?void 0:b.label))==null?void 0:B.filter(b=>b!=="操作"),M=e==="导出全部"?D.cloneDeep(ee.value):D.cloneDeep(Cl.value);M==null||M.forEach(b=>{b==null||delete b.id}),$r(M,s==null?void 0:s.compName,P,s==null?void 0:s.compName)}else e==="OCR识别"?(ba.value=!0,Ll.value=[]):e==="迁移"&&(Fe.selectRow=a,Fe.show=!0)},vo=async e=>{var o,r,n,u,t,i;const a=await D.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)&&((u=(n=a==null?void 0:a.data)==null?void 0:n.result)==null?void 0:u.length)>0?(i=(t=a==null?void 0:a.data)==null?void 0:t.result)==null?void 0:i.map(p=>{var v;return{id:p==null?void 0:p.id,...(v=p==null?void 0:p.value)==null?void 0:v.pageData}}):[]},yo=async(e,a)=>{var o,r,n,u,t,i,p,v,T,m,S,L,E,j,c,B,P,M,b,A;try{let k,_;const y=(o=Vl.value[Ee.value+He])==null?void 0:o.filter(x=>{var U;return((U=x==null?void 0:x.key)==null?void 0:U.type)==="structureMethod"}),H=(r=Vl.value[Ee.value+He])==null?void 0:r.filter(x=>{var U;return((U=x==null?void 0:x.key)==null?void 0:U.type)==="structure"}),$=y==null?void 0:y.find(x=>{var U,ae;return((ae=(U=x==null?void 0:x.value)==null?void 0:U.pageData)==null?void 0:ae.method)==="保存"});if(!$)return;const G=(i=(t=Vl.value[(u=(n=$==null?void 0:$.value)==null?void 0:n.pageData)==null?void 0:u.path])==null?void 0:t.filter(x=>{var U;return((U=x==null?void 0:x.key)==null?void 0:U.type)==="data"}))==null?void 0:i.find(x=>{var U,ae,le,I;return((ae=(U=x==null?void 0:x.value)==null?void 0:U.tableData)==null?void 0:ae.算法名称)===((I=(le=$==null?void 0:$.value)==null?void 0:le.pageData)==null?void 0:I.method)});if(!G)return;const d={buttonName:(v=(p=$==null?void 0:$.value)==null?void 0:p.pageData)==null?void 0:v.method,api:(m=(T=G==null?void 0:G.value)==null?void 0:T.tableData)==null?void 0:m.算法体,content:H==null?void 0:H.map(x=>{var U;return(U=x==null?void 0:x.value)==null?void 0:U.pageData}),extraContent:[],extraValues:(L=(S=$==null?void 0:$.value)==null?void 0:S.pageData)==null?void 0:L.data,methodName:(j=(E=$==null?void 0:$.value)==null?void 0:E.pageData)==null?void 0:j.path};if(!e)return;const O={...e,compData:(c=e==null?void 0:e.compData)==null?void 0:c.map(x=>{var U;return(x==null?void 0:x.key)==="formContent"?{...x,contents:(U=x==null?void 0:x.contents)==null?void 0:U.map(ae=>(ae==null?void 0:ae.prop)===a?{...ae,value:""}:ae)}:x})},se={key:{pageKey:Ee.value+He,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),type:"structure"},value:{pageData:O}},R=await D.axios.post(d.api,se,{headers:{"Content-Type":"application/json"}});return((B=R==null?void 0:R.data)==null?void 0:B.code)===200&&(k=(M=(P=R==null?void 0:R.data)==null?void 0:P.result)==null?void 0:M.latestReportCode,_=(A=(b=R==null?void 0:R.data)==null?void 0:b.result)==null?void 0:A.status),{newMainKeyValue:k,newStatus:_}}catch(k){throw D.ElMessage.error(k),new Error(k)}},Za=(e,a,o,r)=>{var n;ne("contentChange",{contents:(n=e==null?void 0:e.compData)==null?void 0:n.map(u=>{var t;return(u==null?void 0:u.key)==="formContent"?{...u,contents:(t=u==null?void 0:u.contents)==null?void 0:t.map(i=>(i==null?void 0:i.key)===a?{...i,value:o}:na.value&&(i==null?void 0:i.prop)===na.prop?{...i,value:na.value}:i)}:u}),index:e==null?void 0:e.id},r)},na=l.reactive({prop:"状态",value:""}),go=l.ref(["系统自动生成信息","审批意见"]),bo=async(e,a,o)=>{var p,v;let r=e==null?void 0:e[a==null?void 0:a.prop],n=1,u,t;const i=D.cloneDeep(Ee).value+He+r;if(i){na.value="",u=(p=Vl.value[i])==null?void 0:p.filter(S=>{var L;return((L=S==null?void 0:S.key)==null?void 0:L.type)==="structure"});const T=u==null?void 0:u.find(S=>{var L,E,j;return((j=(E=(L=S==null?void 0:S.value)==null?void 0:L.pageData)==null?void 0:E.comp)==null?void 0:j.toUpperCase())==="FORM"});t={...(v=T==null?void 0:T.value)==null?void 0:v.pageData,id:T==null?void 0:T.id};const m=await yo(t,a==null?void 0:a.prop);if(na.value=m==null?void 0:m.newStatus,m!=null&&m.newMainKeyValue)return m==null?void 0:m.newMainKeyValue}if(ee.value.some(T=>(T==null?void 0:T[a==null?void 0:a.prop])===r)){const T=r;for(;ee.value.some(m=>(m==null?void 0:m[a==null?void 0:a.prop])===`${T}(${n})`);)n++;r=`${T}(${n})`}return r},Ia=async(e,a,o)=>{var t,i,p,v,T,m,S,L;let r,n;const u=await bo(o==null?void 0:o.data,o==null?void 0:o.firstCol);if(e?(r=D.cloneDeep(Ee).value+He+((v=o==null?void 0:o.data)==null?void 0:v[(p=o==null?void 0:o.firstCol)==null?void 0:p.prop]),n=D.cloneDeep(Ee).value+He+u):(r=D.cloneDeep(Ee).value+He,n=D.cloneDeep(r)+`loading${((t=Jl.value)==null?void 0:t.account)||((i=Jl.value)==null?void 0:i.账号)}`),a){const E=(m=(T=Vl.value[n])==null?void 0:T.filter(j=>{var c;return((c=j==null?void 0:j.key)==null?void 0:c.parentTable)===""}))==null?void 0:m.map(j=>{var c;return{id:j==null?void 0:j.id,...(c=j==null?void 0:j.value)==null?void 0:c.pageData}});if((E==null?void 0:E.length)>0)if(e){const j=E==null?void 0:E.find(c=>{var B;return((B=c==null?void 0:c.comp)==null?void 0:B.toUpperCase())==="FORM"});j&&Za(j,(S=o==null?void 0:o.firstCol)==null?void 0:S.label,u,Ee.value)}else $e.setRouteToChildPath(D.cloneDeep(Ee).value),We.setActiveMenuPath(n);else if(await fe.loadingConstruct(r,n,null,null,e?go.value:null),e){const j=await vo(n);if((j==null?void 0:j.length)>0){const c=j==null?void 0:j.find(B=>{var P;return((P=B==null?void 0:B.comp)==null?void 0:P.toUpperCase())==="FORM"});c&&Za(c,(L=o==null?void 0:o.firstCol)==null?void 0:L.label,u,Ee.value)}}else $e.setRouteToChildPath(D.cloneDeep(Ee).value),We.setActiveMenuPath(n)}else e?(Ol.value="",ll.value=o==null?void 0:o.data,sa(!0,o==null?void 0:o.firstCol,u)):($e.setRouteToChildPath(D.cloneDeep(Ee).value),We.setActiveMenuPath(n))},ko=()=>{we.value=!1,Zl.value=[],X.value=!1},ia=e=>{var t,i,p,v,T,m,S,L,E,j,c,B,P,M,b,A,k,_,y,H,$,G;const a=[];let o=[];for(let d in e)Array.isArray(e==null?void 0:e[d])&&o.push(d);C.value=D.cloneDeep(Z.value),(i=fe.getColumnChild((t=D.cloneDeep(Z.value))==null?void 0:t.filter(d=>(d==null?void 0:d.label)!=="操作")))==null||i.forEach((d,O)=>{var se;o.find(R=>R===(d==null?void 0:d.prop))||(d!=null&&d.formType&&((se=d==null?void 0:d.formType)==null?void 0:se.toUpperCase())==="SELECT"||d!=null&&d.menuId?a.push({label:(d==null?void 0:d.label)||(d==null?void 0:d.prop)||"",name:(d==null?void 0:d.prop)??"t"+O,prop:d==null?void 0:d.prop,type:"Select",value:(e==null?void 0:e[d==null?void 0:d.prop])??(d==null?void 0:d.value)??"",id:(d==null?void 0:d.id)??O,contents:(d==null?void 0:d.options)??[],width:1,isFormColHidden:d==null?void 0:d.isFormColHidden,relatedValueId:d==null?void 0:d.relatedValueId,disabled:d==null?void 0:d.disabled,optionUrl:{groupSelect:d==null?void 0:d.groupSelect,menuSelect:d==null?void 0:d.formMenuSelect,type:"Select",selectRelateType:d==null?void 0:d.selectRelateType,allSelectionContents:(d==null?void 0:d.allSelectionContents)??[],selectFilter:d==null?void 0:d.selectFilter,menuId:d==null?void 0:d.menuId,filterContent:d==null?void 0:d.filterContent}}):a.push({label:(d==null?void 0:d.label)||(d==null?void 0:d.prop)||"",prop:d==null?void 0:d.prop,name:(d==null?void 0:d.prop)??"t"+O,type:!(d!=null&&d.formType)||(d==null?void 0:d.formType)===""?"Input":d==null?void 0:d.formType,value:(e==null?void 0:e[d==null?void 0:d.prop])??(d==null?void 0:d.value)??"",id:(d==null?void 0:d.id)??O,contents:(d==null?void 0:d.options)??[],width:1,isFormColHidden:d==null?void 0:d.isFormColHidden,disabled:d==null?void 0:d.disabled,relatedValueId:d==null?void 0:d.relatedValueId}))}),e===""||!e||(Ol.value=(e==null?void 0:e.id)??"");let r=fe.getColumnChild((p=D.cloneDeep(Z.value))==null?void 0:p.filter(d=>(d==null?void 0:d.label)!=="操作"));yl.value&&((v=yl.value)==null?void 0:v.length)>0&&(yl.value=(T=D.cloneDeep(yl).value)==null?void 0:T.map(d=>{var se;let O=(d==null?void 0:d.prop)||((se=r==null?void 0:r.find(R=>(R==null?void 0:R.label)===(d==null?void 0:d.label)))==null?void 0:se.prop);return O&&(d.value=e[O]),d})),be.value=yl.value&&((m=yl.value)==null?void 0:m.length)>0?fe.getTableFormToForm(yl.value):a;let n=[],u=(S=s.itemData)==null?void 0:S.filter(d=>(d==null?void 0:d.key)==="filterAllType");if((u==null?void 0:u.length)>0&&(n=(u==null?void 0:u.map(O=>O==null?void 0:O.value)).flat()),(n==null?void 0:n.length)>0){let d=(E=n==null?void 0:n.filter(R=>{var x;return(x=R==null?void 0:R.content)==null?void 0:x.includes("@Type")}))==null?void 0:E[((L=n==null?void 0:n.filter(R=>{var x;return(x=R==null?void 0:R.content)==null?void 0:x.includes("@Type")}))==null?void 0:L.length)-1];if(d!=null&&d.content){let R=(B=(c=(j=d==null?void 0:d.content)==null?void 0:j.replace(":",Bl))==null?void 0:c.split(Bl))==null?void 0:B[1];if(((P=R==null?void 0:R.trim())==null?void 0:P.toUpperCase())==="MANUAL"){let x=(_=(k=(M=s.itemData)==null?void 0:M.filter(U=>(U==null?void 0:U.key)==="contentTableId"))==null?void 0:k[((A=(b=s.itemData)==null?void 0:b.filter(U=>(U==null?void 0:U.key)==="contentTableId"))==null?void 0:A.length)-1])==null?void 0:_.contents;be.value=(y=be.value)==null?void 0:y.map((U,ae)=>{var le,I;return(le=U==null?void 0:U.optionUrl)!=null&&le.menuId&&(U.type="Select",(I=U==null?void 0:U.optionUrl)!=null&&I.menuId&&(U.optionUrl.menuId=U.optionUrl.menuId??x,U.optionUrl.menuFilter=n,ul.value==="新增"&&(U.optionUrl.multiple=!0,U.optionUrl.multipleLimit=5))),U})}}let O=(H=be.value)==null?void 0:H.filter(R=>{var x,U;return((x=R==null?void 0:R.optionUrl)==null?void 0:x.menuId)&&((U=R==null?void 0:R.optionUrl)==null?void 0:U.menuId)!==""}),se;if(O==null||O.forEach(R=>{var U,ae;if(se!==void 0)return;let x=(U=R==null?void 0:R.optionUrl)==null?void 0:U.menuId;((ae=O==null?void 0:O.filter(le=>{var I;return((I=le==null?void 0:le.optionUrl)==null?void 0:I.menuId)===x}))==null?void 0:ae.length)>1&&(se=x)}),O=O==null?void 0:O.filter(R=>{var x;return((x=R==null?void 0:R.optionUrl)==null?void 0:x.menuId)===se}),(O==null?void 0:O.length)>1){let R=O==null?void 0:O.map(le=>le==null?void 0:le.prop),x=O==null?void 0:O.map(le=>le==null?void 0:le.label),U=O==null?void 0:O.map(le=>le==null?void 0:le.value),ae=($=D.cloneDeep(O))==null?void 0:$[0];ae.label=x==null?void 0:x.join("·"),ae.value=U==null?void 0:U.join(" "),ae.value.trim()===""&&(ae.value=""),ae.prop=R==null?void 0:R.join("·"),ae.usingType="parent",be.value.unshift(ae),be.value=(G=be.value)==null?void 0:G.map(le=>(R!=null&&R.find(I=>I===(le==null?void 0:le.prop))&&(le.isFormColHidden=!0),le))}}},mo=()=>{var a;const e=(a=V.value)==null?void 0:a.$el;e&&fe.Sortable.create(e,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:o=>{var t;const{oldIndex:r,newIndex:n}=o;if(r===n)return;const u=oa.value.splice(r,1)[0];oa.value.splice(n,0,u),Z.value=(t=Z.value)==null?void 0:t.slice().sort((i,p)=>{if(i.label==="操作")return 1;if(p.label==="操作")return-1;const v=oa.value.findIndex(m=>m.label===i.label),T=oa.value.findIndex(m=>m.label===p.label);return v-T})}})};l.onMounted(()=>{Ea.value=window.innerWidth-240*2});const So=()=>{l.nextTick(()=>{mo()})},La=(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 u,t;if((n==null?void 0:n.id)===Ol.value){let i={};for(let p in n){let v=(u=a==null?void 0:a.find(T=>(T==null?void 0:T.prop)===p))==null?void 0:u.label;v?i[p]=(t=ll.value)==null?void 0:t[v]:i[p]=n[p]}n=Object.assign(i,ll.value),o=n}else{let i=La(n,a);n=i==null?void 0:i.contents,o=i==null?void 0:i.currentSelectContents}return n}),{contents:e,currentSelectContents:o}},er=(e,a)=>{let o,r;return e!=null&&e.find(n=>(n==null?void 0:n.id)===Ol.value)?o=e==null?void 0:e.map(n=>{var u,t;if((n==null?void 0:n.id)===Ol.value){let i={};for(let p in n){let v=(u=a==null?void 0:a.find(T=>(T==null?void 0:T.prop)===p))==null?void 0:u.label;v?i[p]=(t=ll.value)==null?void 0:t[v]:i[p]=n[p]}n=Object.assign(i,ll.value),r=n}return n}):o=e==null?void 0:e.map(n=>{var u,t,i,p;if((n==null?void 0:n.id)===Ol.value){let v={};for(let T in n){let m=(u=a==null?void 0:a.find(S=>(S==null?void 0:S.prop)===T))==null?void 0:u.label;m?v[T]=(t=ll.value)==null?void 0:t[m]:v[T]=n[T]}n=Object.assign(v,ll.value),r=n}else n=(i=La(n,a))==null?void 0:i.contents,r=(p=La(n,a))==null?void 0:p.currentSelectContents;return n}),{newContents:o,currentSelectContents:r}},lr=(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(lr)),e},ja=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(...ja(r))})),(a==null?void 0:a.length)>0?a==null?void 0:a.map(r=>{const n={...r};return delete n.children,n}):[]},sa=(e=!0,a,o)=>{var v,T,m,S,L,E,j,c,B,P,M,b,A,k,_,y,H,$,G,d,O,se,R,x,U,ae,le,I,pe,te;let r=fe.getColumnChild((v=D.cloneDeep(Z.value))==null?void 0:v.filter(W=>(W==null?void 0:W.label)!=="操作")),n,u=D.cloneDeep(ee.value);if(!ll.value){wl.value=!1;return}if(Ol.value===""){ql.value++;let W;a&&o?W={id:ql.value.toString(),[a==null?void 0:a.prop]:o,children:ll.value.children}:W={id:ql.value.toString()},W!=null&&W.children&&(W={...W,children:(T=W.children)==null?void 0:T.map(ie=>lr(ie,a,o))}),u.push(Object.assign(ll.value,W)),n=Object.assign(ll.value,W)}else u=(m=er(u,r))==null?void 0:m.newContents,n=(S=er(u,r))==null?void 0:S.currentSelectContents;const t=(L=s.itemData)==null?void 0:L.filter(W=>(W==null?void 0:W.key)==="childTree")[0];if(((E=t==null?void 0:t.contents)==null?void 0:E.length)>0){ul.value="编辑";const W=[];u==null||u.forEach((ie,Be)=>{var F;let g={};if(Array.isArray(ie)){let w=[];ie==null||ie.filter(ve=>!(ve!=null&&ve.id)).forEach((ve,ke)=>{var z,ue,Ue,N,Ae,qe,Je;if((ue=(z=Sl.value)==null?void 0:z[ke])!=null&&ue.prop&&!Array.isArray(ve)){let Re={};Re[Sl.value[ke].column]=ve,_e!=null&&_e.value&&((Ue=_e==null?void 0:_e.value)==null?void 0:Ue.length)>0&&((N=_e==null?void 0:_e.value)!=null&&N.find(Ne=>JSON.stringify(Ne==null?void 0:Ne[0])===JSON.stringify(Re)))&&(w=(Ae=_e==null?void 0:_e.value)==null?void 0:Ae.find(Ne=>JSON.stringify(Ne==null?void 0:Ne[0])===JSON.stringify(Re))),w&&w.length>0?g[Sl.value[ke].prop]=w!=null&&w.find(Ne=>{var Pe;return((Pe=Object.keys(Ne))==null?void 0:Pe[0])===Sl.value[ke].column})?(qe=w==null?void 0:w.find(Ne=>{var Pe;return((Pe=Object.keys(Ne))==null?void 0:Pe[0])===Sl.value[ke].column}))==null?void 0:qe[Sl.value[ke].column]:ve:g[Sl.value[ke].prop]=ve}else Array.isArray(ve)&&((Je=Sl.value[ke])!=null&&Je.prop?g[Sl.value[ke].prop]=ve:g.children=Fa(ve,Sl.value))})}else g=ie;Array.isArray(ie)&&ie.some(w=>w==null?void 0:w.id)?W.push(Object.assign(g,{id:(F=ie==null?void 0:ie.find(w=>w.id))==null?void 0:F.id})):g.id?W.push(g):W.push(Object.assign(g,{id:Be.toString()}))}),ee.value=ir(W,t,Z.value)}or(ee.value),la.value=ee.value;const i=nn(la.value,aa.value,u);let p=[];if(Xl.value?(p=(j=D.cloneDeep(Xl).value.singleContent)==null?void 0:j.filter(W=>(W==null?void 0:W.id)!==(n==null?void 0:n.id)),p.push(n)):p=[n],xl.value){const W={content:i,singleContent:((c=t==null?void 0:t.contents)==null?void 0:c.length)>0?p==null?void 0:p.flatMap(ja):p,index:s==null?void 0:s.index,buttonName:"编辑",column:Z.value,parentTableId:s==null?void 0:s.parentTableId};$e.setCacheUpdatingData(W)}if(e){let W=(b=(M=(P=(B=s.itemData)==null?void 0:B.find(g=>(g==null?void 0:g.key)==="filterAllType"))==null?void 0:P.value)==null?void 0:M.find(g=>(g==null?void 0:g.value)==="onConditionContents"))==null?void 0:b.content,ie=(A=s.itemData)==null?void 0:A.filter(g=>(g==null?void 0:g.key)==="filterAllType");ie=Array.from(new Map(ie.filter(Boolean).map((g,F)=>[g.value,{...g,_idx:F}])).values()).sort((g,F)=>g._idx-F._idx).map(({_idx:g,...F})=>F),ie=(k=ie==null?void 0:ie[(ie==null?void 0:ie.length)-1])==null?void 0:k.value;const Be={content:i,singleContent:((_=t==null?void 0:t.contents)==null?void 0:_.length)>0?ja(n):n,index:s==null?void 0:s.index,buttonName:ul.value,column:Z.value,parentTableId:s==null?void 0:s.parentTableId,filter:W,allFilter:ie,pathIndex:(H=(y=s.itemData)==null?void 0:y.find(g=>(g==null?void 0:g.key)==="relatedFilter"))==null?void 0:H.index,rowContents:be.value,addArrayValues:Oe.value};$e.setTableLoading(s==null?void 0:s.index),wl.value=!1,ll.value=void 0,ne("change",Be)}if((d=(G=($=be.value)==null?void 0:$[0])==null?void 0:G.optionUrl)!=null&&d.menuId){wl.value=!1;let W=(O=s.itemData)==null?void 0:O.filter(ie=>(ie==null?void 0:ie.key)==="filterAllType");if((W==null?void 0:W.length)>0){let ie=W==null?void 0:W.map(F=>F==null?void 0:F.value),Be=(x=(R=(se=ie.flat().find(F=>{var w;return(w=F==null?void 0:F.content)==null?void 0:w.includes("@Num")}))==null?void 0:se.content)==null?void 0:R.split(":"))==null?void 0:x[1];((le=(ae=(U=ie.flat().find(F=>{var w;return(w=F==null?void 0:F.content)==null?void 0:w.includes("@Type:")}))==null?void 0:U.content)==null?void 0:ae.split(":"))==null?void 0:le[1])!=="Manual"&&(Be=parseInt(Be),ee.value=(te=ee.value)==null?void 0:te.slice(((I=ee.value)==null?void 0:I.length)-Be,(pe=ee.value)==null?void 0:pe.length))}}};l.onUnmounted(()=>{Z.value=[],ee.value=[],C.value=[],Ta.value=[],yl.value=[],kl.value=[],Zl.value=[],Ul.value=[],be.value=[],Cl.value=[],V.value=null});const ar=async(e,a,o)=>{var v,T,m,S,L,E,j,c,B,P,M;Dl.value=o==null?void 0:o.prop;const r=D.cloneDeep(s.itemData),n=r==null?void 0:r.map(b=>{var A;return(b==null?void 0:b.key)==="header"&&((A=b.contents)==null||A.map((k,_)=>{var y,H,$,G,d,O,se,R,x,U,ae,le,I,pe,te,W,ie,Be,g;return k.type=k!=null&&k.type?k.type:(G=($=(H=(y=k==null?void 0:k.key)==null?void 0:y.split("$"))==null?void 0:H[1])==null?void 0:$.split("("))!=null&&G[0]?(O=(d=fe.FormType)==null?void 0:d.find(F=>{var w,ve,ke,z;return(F==null?void 0:F.key)===((z=(ke=(ve=(w=k==null?void 0:k.key)==null?void 0:w.split("$"))==null?void 0:ve[1])==null?void 0:ke.split("("))==null?void 0:z[0])}))==null?void 0:O.value:"Input",k.options=k!=null&&k.options?k.options:((x=(R=(se=k==null?void 0:k.key)==null?void 0:se.split("$"))==null?void 0:R[1])==null?void 0:x.length)>0?(I=(le=$a((ae=(U=k==null?void 0:k.key)==null?void 0:U.split("$"))==null?void 0:ae[1]))==null?void 0:le.split(","))==null?void 0:I.map(F=>({label:F,value:F})):[],(pe=k==null?void 0:k.key)!=null&&pe.includes("$")&&(k.key=(W=(te=k==null?void 0:k.key)==null?void 0:te.split("$"))==null?void 0:W[0]),k.value=(ie=Object.values(a))==null?void 0:ie[_],k.optionUrl=k!=null&&k.formMenuSelect&&((Be=k==null?void 0:k.formMenuSelect)==null?void 0:Be.length)>0?{groupSelect:(g=k==null?void 0:k.groupSelect)==null?void 0:g.split(/[::]/).map(F=>F.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 u=D.cloneDeep(be.value),t=(T=(v=D.cloneDeep(n))==null?void 0:v.find(b=>(b==null?void 0:b.key)==="header"))==null?void 0:T.contents;u=u==null?void 0:u.map(b=>{var A;return b.value=(A=t==null?void 0:t.find((k,_)=>_===(b==null?void 0:b.id)))==null?void 0:A.value,b});let i="",p=(L=(S=(m=D.cloneDeep(n))==null?void 0:m.find(b=>(b==null?void 0:b.key)==="header"))==null?void 0:S.contents)==null?void 0:L.find((b,A)=>{var k,_,y;return(b==null?void 0:b.label)===Dl.value||(A==null?void 0:A.toString())===((y=(_=(k=Dl.value)==null?void 0:k.split("a"))==null?void 0:_[1])==null?void 0:y.toString())});if((c=(j=(E=D.cloneDeep(n))==null?void 0:E.find(b=>(b==null?void 0:b.key)==="header"))==null?void 0:j.contents)==null||c.forEach(b=>{var A,k,_,y,H;i===""&&((_=(k=(A=b==null?void 0:b.optionUrl)==null?void 0:A.groupSelect)==null?void 0:k[1])!=null&&_.includes("["))&&(i=(H=(y=b==null?void 0:b.optionUrl)==null?void 0:y.groupSelect)==null?void 0:H[1])}),(B=p==null?void 0:p.optionUrl)!=null&&B.menuSelect){let b=await Ca(p),A;if(b==null||b.forEach(k=>{var _,y,H,$,G,d,O,se,R,x;i===((y=(_=p==null?void 0:p.optionUrl)==null?void 0:_.groupSelect)==null?void 0:y[1])&&((G=($=(H=p==null?void 0:p.optionUrl)==null?void 0:H.groupSelect)==null?void 0:$[1])!=null&&G.includes("["))&&((x=D.cloneDeep(k))==null?void 0:x[(R=(se=(O=(d=p==null?void 0:p.optionUrl)==null?void 0:d.groupSelect)==null?void 0:O[1])==null?void 0:se.replaceAll("[",""))==null?void 0:R.replaceAll("]","")])===(p==null?void 0:p.value)&&(A=k)}),A){let k=D.cloneDeep(u);k=k==null?void 0:k.map(y=>{var H,$,G,d,O,se,R,x,U,ae,le;return(A!=null&&A[y==null?void 0:y.label]||A!=null&&A[(d=(G=($=(H=y==null?void 0:y.optionUrl)==null?void 0:H.groupSelect)==null?void 0:$[1])==null?void 0:G.replaceAll("[",""))==null?void 0:d.replaceAll("]","")])&&((R=(se=(O=y==null?void 0:y.optionUrl)==null?void 0:O.groupSelect)==null?void 0:se[1])!=null&&R.includes("["))&&(y.value=(A==null?void 0:A[y==null?void 0:y.label])||(A==null?void 0:A[(le=(ae=(U=(x=y==null?void 0:y.optionUrl)==null?void 0:x.groupSelect)==null?void 0:U[1])==null?void 0:ae.replaceAll("[",""))==null?void 0:le.replaceAll("]","")])),y}),ee.value=(P=D.cloneDeep(ee.value))==null?void 0:P.map(y=>{if((y==null?void 0:y.id)===(a==null?void 0:a.id)){const H={};return k==null||k.forEach($=>{H[$.name]=$.value}),H.id=y==null?void 0:y.id,H}return y});let _=D.cloneDeep(k);_=_==null?void 0:_.map(y=>{var H,$,G,d;return($=(H=y==null?void 0:y.optionUrl)==null?void 0:H.menuSelect)!=null&&$.some(O=>O==null?void 0:O.includes)&&(y.optionUrl.menuSelect=(d=(G=y==null?void 0:y.optionUrl)==null?void 0:G.menuSelect)==null?void 0:d.map(O=>{var se,R,x,U;if(O!=null&&O.includes("[")){let ae=(R=(se=O==null?void 0:O.replaceAll("[","").replaceAll("]",""))==null?void 0:se.split(":"))==null?void 0:R[1];O=(U=(x=D.cloneDeep(k))==null?void 0:x.find(le=>(le==null?void 0:le.label)===ae))==null?void 0:U.value}return O})),y}),ee.value=(M=D.cloneDeep(ee.value))==null?void 0:M.map(y=>{if((y==null?void 0:y.id)===(a==null?void 0:a.id)){const H={};return _==null||_.forEach($=>{H[$.name]=$.value}),H.id=y==null?void 0:y.id,H}return y})}}},xo=async e=>{var L,E,j,c,B,P,M,b,A,k,_,y,H,$,G,d,O,se,R,x,U,ae,le,I,pe,te,W,ie,Be;if(!e)return;ll.value=e;const a=D.cloneDeep(s.itemData);let o=a==null?void 0:a.map(g=>{var F;return(g==null?void 0:g.key)==="header"&&(g.contents=(F=g.contents)==null?void 0:F.map((w,ve)=>{var ke,z,ue,Ue,N,Ae,qe,Je,Re,Ne,Pe,Ie,el,Ze,me,Ce,rl,cl,dl,fl,nl,Nl,Tl,El;return w.type=w!=null&&w.type?w.type:(Ue=(ue=(z=(ke=w==null?void 0:w.key)==null?void 0:ke.split("$"))==null?void 0:z[1])==null?void 0:ue.split("("))!=null&&Ue[0]?(Ae=(N=fe.FormType)==null?void 0:N.find(Ke=>{var f,Q,re,il;return(Ke==null?void 0:Ke.key)===((il=(re=(Q=(f=w==null?void 0:w.key)==null?void 0:f.split("$"))==null?void 0:Q[1])==null?void 0:re.split("("))==null?void 0:il[0])}))==null?void 0:Ae.value:"Input",w.options=w!=null&&w.options?w.options:((Re=(Je=(qe=w==null?void 0:w.key)==null?void 0:qe.split("$"))==null?void 0:Je[1])==null?void 0:Re.length)>0?(el=(Ie=$a((Pe=(Ne=w==null?void 0:w.key)==null?void 0:Ne.split("$"))==null?void 0:Pe[1]))==null?void 0:Ie.split(","))==null?void 0:el.map(Ke=>({label:Ke,value:Ke})):[],(Ze=w==null?void 0:w.key)!=null&&Ze.includes("$")&&(w.key=(Ce=(me=w==null?void 0:w.key)==null?void 0:me.split("$"))==null?void 0:Ce[0]),((dl=(cl=(rl=be.value)==null?void 0:rl.find(Ke=>(Ke==null?void 0:Ke.prop)===(w==null?void 0:w.prop)))==null?void 0:cl.optionUrl)==null?void 0:dl.multiple)===!0&&!Array.isArray((fl=Object.values(e))==null?void 0:fl[ve])?w.value=[(nl=Object.values(e))==null?void 0:nl[ve]]:w.value=(Nl=Object.values(e))==null?void 0:Nl[ve],w.optionUrl=w!=null&&w.formMenuSelect&&((Tl=w==null?void 0:w.formMenuSelect)==null?void 0:Tl.length)>0?{groupSelect:(El=w==null?void 0:w.groupSelect)==null?void 0:El.split(/[::]/).map(Ke=>Ke.trim()),menuSelect:w==null?void 0:w.formMenuSelect,selectRelateType:"",type:(w==null?void 0:w.formType)??(w!=null&&w.groupSelect?"Select":"")}:null,w})),g}),r=be.value,n=(E=(L=D.cloneDeep(o))==null?void 0:L.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:E.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 F;return g.value=g.value??((F=n==null?void 0:n.find((w,ve)=>(w==null?void 0:w.prop)===(g==null?void 0:g.name)))==null?void 0:F.value),g}),!ra.value)return;let u="",t=D.cloneDeep(Dl.value);(j=Dl.value)!=null&&j.includes("·")&&(Dl.value=(B=(c=Dl.value)==null?void 0:c.split("·"))==null?void 0:B[0]);let i=(b=(M=(P=D.cloneDeep(o))==null?void 0:P.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:M.contents)==null?void 0:b.find((g,F)=>{var w,ve,ke;return(g==null?void 0:g.prop)===Dl.value||(F==null?void 0:F.toString())===((ke=(ve=(w=Dl.value)==null?void 0:w.split("a"))==null?void 0:ve[1])==null?void 0:ke.toString())}),p=(A=i==null?void 0:i.optionUrl)==null?void 0:A.menuSelect,v=!0;(y=(_=(k=D.cloneDeep(o))==null?void 0:k.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:_.contents)==null||y.forEach(g=>{var F,w,ve,ke,z,ue;v&&((ve=(w=(F=g==null?void 0:g.optionUrl)==null?void 0:F.groupSelect)==null?void 0:w[1])!=null&&ve.includes("["))&&(u=(z=(ke=g==null?void 0:g.optionUrl)==null?void 0:ke.groupSelect)==null?void 0:z[1],JSON.stringify(p)===JSON.stringify((ue=g==null?void 0:g.optionUrl)==null?void 0:ue.menuSelect)&&(v=!1))});let T=D.cloneDeep(r),m=Xe.value;m!=null&&m.find(g=>(i==null?void 0:i.prop)===(g==null?void 0:g.key))&&(m=m==null?void 0:m.filter(g=>(i==null?void 0:i.prop)!==(g==null?void 0:g.key))),m!=null&&m.find(g=>t===(g==null?void 0:g.key))&&(m=m==null?void 0:m.filter(g=>t!==(g==null?void 0:g.key))),T=T==null?void 0:T.map(g=>{var F,w,ve,ke,z,ue,Ue,N;return(g==null?void 0:g.type)==="Select"&&(((w=(F=g==null?void 0:g.optionUrl)==null?void 0:F.allSelectionContents)==null?void 0:w.length)>0&&(g.optionUrl.contactValue=e),((i==null?void 0:i.prop)===(g==null?void 0:g.prop)||t===(g==null?void 0:g.prop))&&(Array.isArray(i.value)&&((ve=i.value)==null?void 0:ve.length)>0&&((ke=i.value)!=null&&ke.every(Ae=>typeof Ae=="string"))?(m.push({key:g==null?void 0:g.prop,value:[(ue=i.value)==null?void 0:ue[((z=i.value)==null?void 0:z.length)-1]]}),g.selectValue=(Ue=m==null?void 0:m.find(Ae=>(Ae==null?void 0:Ae.key)===(g==null?void 0:g.prop)))==null?void 0:Ue.value):Array.isArray(i.value)&&((N=i.value)==null?void 0:N.length)===0&&(m=[],g.selectValue=[],e[g==null?void 0:g.prop]=""))),g.value=e==null?void 0:e[g==null?void 0:g.prop],g}),Xe.value=m,be.value=D.cloneDeep(T);let S=(i==null?void 0:i.menuId)??((G=($=(H=be.value)==null?void 0:H.find(g=>{var F;return(F=g==null?void 0:g.optionUrl)==null?void 0:F.menuId}))==null?void 0:$.optionUrl)==null?void 0:G.menuId);if((d=i==null?void 0:i.optionUrl)!=null&&d.menuSelect&&ra.value||S){let g=await Ca(i,S),F;if(g==null||g.forEach(z=>{var ue,Ue,N,Ae,qe,Je,Re,Ne,Pe,Ie,el,Ze,me,Ce,rl,cl,dl,fl,nl,Nl,Tl,El,Ke,f,Q;if(!S&&u===((Ue=(ue=i==null?void 0:i.optionUrl)==null?void 0:ue.groupSelect)==null?void 0:Ue[1])&&((qe=(Ae=(N=i==null?void 0:i.optionUrl)==null?void 0:N.groupSelect)==null?void 0:Ae[1])!=null&&qe.includes("["))&&((Ie=D.cloneDeep(z))==null?void 0:Ie[(Pe=(Ne=(Re=(Je=i==null?void 0:i.optionUrl)==null?void 0:Je.groupSelect)==null?void 0:Re[1])==null?void 0:Ne.replaceAll("[",""))==null?void 0:Pe.replaceAll("]","")])===(i==null?void 0:i.value)&&(F=z),S){let re=(Ze=(el=be.value)==null?void 0:el.find(Ve=>{var hl;return(i==null?void 0:i.menuId)===((hl=Ve==null?void 0:Ve.optionUrl)==null?void 0:hl.menuId)}))==null?void 0:Ze.prop,il=e[re];if(re!=null&&re.includes("·"))if(!Array.isArray(e[re]))il=(Ce=(me=e[re])==null?void 0:me.split(" "))==null?void 0:Ce[0],re=(rl=re==null?void 0:re.split("·"))==null?void 0:rl[0];else{re=(cl=re==null?void 0:re.split("·"))==null?void 0:cl[0];let Ve=(fl=(dl=T==null?void 0:T.find(hl=>(hl==null?void 0:hl.prop)===re))==null?void 0:dl.selectValue)==null?void 0:fl[0];il=(nl=Ve==null?void 0:Ve.split(" "))==null?void 0:nl[0]}let Pa=(Tl=(Nl=T==null?void 0:T.find(Ve=>(Ve==null?void 0:Ve.prop)===re))==null?void 0:Nl.selectValue)==null?void 0:Tl[0];if(z[re]===(Array.isArray(il)?Pa:il)&&(i==null?void 0:i.directiveLabel)==="#isMain"){if(t!=null&&t.includes("·")){let Ve=t==null?void 0:t.split("·"),hl=(Q=(f=(Ke=Array.isArray(e==null?void 0:e[t])?(El=e==null?void 0:e[t])==null?void 0:El[0]:e==null?void 0:e[t])==null?void 0:Ke.split(" "))==null?void 0:f.filter(q=>q&&q!==""))==null?void 0:Q.map(q=>q==null?void 0:q.trim());Ve==null||Ve.forEach((q,h)=>{z[q]=hl==null?void 0:hl[h]})}F=z}}}),sl.value&&(i==null?void 0:i.directiveLabel)==="#isMain"&&(Oe.value=[]),!F){if(sl.value&&(i==null?void 0:i.directiveLabel)==="#isMain")if(t!=null&&t.includes("·")){let z=e,ue=(R=(se=(O=e==null?void 0:e[t])==null?void 0:O.split(" "))==null?void 0:se.filter(N=>N&&N!==""))==null?void 0:R.map(N=>N==null?void 0:N.trim());(x=t==null?void 0:t.split("·"))==null||x.forEach((N,Ae)=>{z[N]=ue[Ae]});let Ue=(U=be.value)==null?void 0:U.find(N=>(N==null?void 0:N.prop)===t);z[Ue.prop]=[Ue.value],F=z}else{let z=(ae=be.value)==null?void 0:ae.find(ue=>(ue==null?void 0:ue.prop)===(i==null?void 0:i.prop));e[z.prop]=[z.value],F=e}else if((i==null?void 0:i.directiveLabel)==="#isMain"){let z={};(le=be.value)==null||le.forEach(ue=>{var Ue,N;(ue==null?void 0:ue.prop)===t?z[ue.prop]=(Ue=ue==null?void 0:ue.selectValue)!=null&&Ue[0]?[(N=ue==null?void 0:ue.selectValue)==null?void 0:N[0]]:"":z[ue.prop]=""}),F=z}}if(F){let z=D.cloneDeep(r);z=z==null?void 0:z.map(N=>{var Ae,qe,Je,Re,Ne,Pe,Ie,el,Ze,me,Ce,rl,cl,dl,fl,nl,Nl,Tl,El,Ke,f,Q;return(F!=null&&F[N==null?void 0:N.prop]||F!=null&&F[(Re=(Je=(qe=(Ae=N==null?void 0:N.optionUrl)==null?void 0:Ae.groupSelect)==null?void 0:qe[1])==null?void 0:Je.replaceAll("[",""))==null?void 0:Re.replaceAll("]","")])&&((Ie=(Pe=(Ne=N==null?void 0:N.optionUrl)==null?void 0:Ne.groupSelect)==null?void 0:Pe[1])!=null&&Ie.includes("["))&&(N!=null&&N.relatedValueId)&&(N.value=(F==null?void 0:F[N==null?void 0:N.prop])||(F==null?void 0:F[(Ce=(me=(Ze=(el=N==null?void 0:N.optionUrl)==null?void 0:el.groupSelect)==null?void 0:Ze[1])==null?void 0:me.replaceAll("[",""))==null?void 0:Ce.replaceAll("]","")])),S&&(F!=null&&F[N==null?void 0:N.prop]||(F==null?void 0:F[N==null?void 0:N.prop])==="")&&(N!=null&&N.relatedValueId)&&ul.value==="新增"&&((N==null?void 0:N.prop)!==(i==null?void 0:i.prop)||t!=null&&t.includes((i==null?void 0:i.prop)+"·")||t!=null&&t.includes("·"+(N==null?void 0:N.prop)))?N.value=(F==null?void 0:F[N==null?void 0:N.prop])||(F==null?void 0:F[(fl=(dl=(cl=(rl=N==null?void 0:N.optionUrl)==null?void 0:rl.groupSelect)==null?void 0:cl[1])==null?void 0:dl.replaceAll("[",""))==null?void 0:fl.replaceAll("]","")]):t!=null&&t.includes("·"+(N==null?void 0:N.prop))?N.value=F==null?void 0:F[N==null?void 0:N.prop]:((nl=N==null?void 0:N.optionUrl)==null?void 0:nl.multiple)===!0&&!Array.isArray((Tl=(Nl=be.value)==null?void 0:Nl.find(re=>(re==null?void 0:re.prop)===(N==null?void 0:N.prop)))==null?void 0:Tl.value)?N.value=[(Ke=(El=be.value)==null?void 0:El.find(re=>(re==null?void 0:re.prop)===(N==null?void 0:N.prop)))==null?void 0:Ke.value]:N.value=(Q=(f=be.value)==null?void 0:f.find(re=>(re==null?void 0:re.prop)===(N==null?void 0:N.prop)))==null?void 0:Q.value,N}),be.value=D.cloneDeep(z);let ue=D.cloneDeep(z);ue=ue==null?void 0:ue.map(N=>{var Ae,qe,Je,Re,Ne,Pe,Ie,el,Ze;return(qe=(Ae=N==null?void 0:N.optionUrl)==null?void 0:Ae.menuSelect)!=null&&qe.some(me=>me==null?void 0:me.includes("["))&&(N.optionUrl.oldMenuSelect=(Re=(Je=D.cloneDeep(N))==null?void 0:Je.optionUrl)==null?void 0:Re.menuSelect,N.optionUrl.menuSelect=(Pe=(Ne=N==null?void 0:N.optionUrl)==null?void 0:Ne.menuSelect)==null?void 0:Pe.map(me=>{var Ce,rl,cl,dl;if(me!=null&&me.includes("[")){let fl=(rl=(Ce=me==null?void 0:me.replaceAll("[","").replaceAll("]",""))==null?void 0:Ce.split(":"))==null?void 0:rl[1];me=(dl=(cl=D.cloneDeep(z))==null?void 0:cl.find(nl=>(nl==null?void 0:nl.label)===fl))==null?void 0:dl.value}return me})),((i==null?void 0:i.prop)===(N==null?void 0:N.prop)||t===(N==null?void 0:N.prop))&&Array.isArray(i.value)&&(Ie=i.value)!=null&&Ie.every(me=>typeof me=="string")&&(N.selectValue=((el=m==null?void 0:m.find(me=>(me==null?void 0:me.key)===(N==null?void 0:N.prop)))==null?void 0:el.value)??((Ze=N.value)==null?void 0:Ze[0])),N}),be.value=ue;let Ue={};(I=be.value)==null||I.forEach(N=>{Ue[N.prop]=N==null?void 0:N.value}),ll.value=Ue}let w=Oe.value,ve={};(pe=be.value)==null||pe.forEach(z=>{var ue,Ue,N,Ae,qe,Je,Re,Ne,Pe,Ie,el;if(((z==null?void 0:z.directiveLabel)==="#isMain"||(ue=z==null?void 0:z.optionUrl)!=null&&ue.menuId)&&Array.isArray(z==null?void 0:z.value)){if(ve[z.prop]=(N=z.value)==null?void 0:N[((Ue=z.value)==null?void 0:Ue.length)-1],(Ae=z==null?void 0:z.prop)!=null&&Ae.includes("·")){let Ze=(Re=(Je=(qe=z==null?void 0:z.prop)==null?void 0:qe.split("·"))==null?void 0:Je.filter(Ce=>Ce&&Ce!==""))==null?void 0:Re.map(Ce=>Ce==null?void 0:Ce.trim()),me=(el=(Ie=(Pe=(Ne=z==null?void 0:z.selectValue)==null?void 0:Ne[0])==null?void 0:Pe.split(" "))==null?void 0:Ie.filter(Ce=>Ce&&Ce!==""))==null?void 0:el.map(Ce=>Ce==null?void 0:Ce.trim());Ze==null||Ze.forEach((Ce,rl)=>{ve[Ce]=me==null?void 0:me[rl]})}}else ve[z.prop]=(ve==null?void 0:ve[z==null?void 0:z.prop])??z.value});let ke=(te=be.value)==null?void 0:te.find(z=>{var ue;return(z==null?void 0:z.directiveLabel)==="#isMain"||((ue=z==null?void 0:z.optionUrl)==null?void 0:ue.menuId)});(i==null?void 0:i.directiveLabel)==="#isMain"?w.push({label:i==null?void 0:i.prop,value:(ie=i==null?void 0:i.value)==null?void 0:ie[((W=i==null?void 0:i.value)==null?void 0:W.length)-1],objectValue:ve}):((Be=ke==null?void 0:ke.value)==null?void 0:Be.length)>0&&(w=w==null?void 0:w.map(z=>{var ue;return(z==null?void 0:z.value)===((ue=ke==null?void 0:ke.selectValue)==null?void 0:ue[0])&&(z.objectValue=ve),z})),Oe.value=w}ra.value=!1,sl.value=!1},Co=e=>e?(e==null?void 0:e.toUpperCase())==="INPUT"?"TEXTAREA":e:"TEXTAREA",Do=e=>{var u,t;const a=(t=(u=yl.value)==null?void 0:u.find(i=>(i==null?void 0:i.label)===(e==null?void 0:e.label)))==null?void 0:t.multiple,o=e==null?void 0:e.prop;if((e==null?void 0:e.formType)!="Select")return;ee.value.forEach(i=>{const p=i==null?void 0:i[o];a&&pr.isString(p)&&(i[o]=[p]),!a&&!pr.isString(p)&&(i[o]="")})},rr=(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=>rr(r,a))),e},Ma=e=>{var o,r,n,u,t,i;ia("");const a=(o=be.value)==null?void 0:o.reduce((p,v)=>(p[v.name]=v.value,p),{});if(((r=Object.keys(a))==null?void 0:r.length)>0){ll.value=a,Ol.value="",ql.value=(n=ee.value)==null?void 0:n.length,Ul.value=(u=ml.value)==null?void 0:u.filter(v=>(v==null?void 0:v.label)!=="新增");const p=(i=(t=C.value)==null?void 0:t.filter(v=>(v==null?void 0:v.label)!=="操作"))==null?void 0:i.map(v=>{var m,S,L;const T=(S=(m=yl.value)==null?void 0:m.find(E=>(E==null?void 0:E.label)===(v==null?void 0:v.label)))==null?void 0:S.multiple;return Do(v),{...v,contents:(v==null?void 0:v.options)??[],optionUrl:v!=null&&v.formMenuSelect&&((L=v==null?void 0:v.formMenuSelect)==null?void 0:L.length)>0?{groupSelect:v==null?void 0:v.groupSelect,menuSelect:v==null?void 0:v.formMenuSelect,selectRelateType:"",type:v==null?void 0:v.formType,multiple:T}:null}});Z.value=p==null?void 0:p.map(v=>rr(v,[{prop:"type",value:"edit"},{prop:"columnType",value:Co(v==null?void 0:v.formType)||(v==null?void 0:v.columnType)}])),e==="createClick"&&sa(!1)}},Gl={START:"开始时间",END:"结束时间",HOURS:"工时"},No=(e,a)=>Number(fe.dayjs(a).diff(fe.dayjs(e),"day",!0).toFixed(1)),or=e=>{var u;const a=s.itemData,o=(u=a==null?void 0:a.find(t=>(t==null?void 0:t.key)==="header"))==null?void 0:u.contents,r=new Map;return o==null||o.forEach((t,i)=>{const{label:p}=t;r.set(p,i)}),!r.has(Gl.START)||!r.has(Gl.END)||!r.has(Gl.HOURS)?e:e==null?void 0:e.map(t=>{const i=t==null?void 0:t[Gl.START],p=t==null?void 0:t[Gl.END],v=No(i,p);return i&&p&&(t[Gl.HOURS]=`${v}天`),t})},nr=(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 t of e){const i=t[r];n.has(i)||n.set(i,[]),n.get(i)&&n.get(i).push(t)}const u=[];for(const[t,i]of n){const[p,...v]=i,T={...p};o+1===((a==null?void 0:a.length)??"")?T.children=i==null?void 0:i.map(m=>(m.level=D.cloneDeep(o)+1,m)).filter((m,S)=>S!==0):v.length>0&&(T.children=nr(v,a,o+1)),T.level=o,u.push(T)}return u},ir=(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=nr(e,a==null?void 0:a.contents,0),r},sr=(e,a)=>{var L,E,j,c,B,P,M,b,A,k,_,y,H,$,G,d,O,se,R,x,U,ae,le,I,pe,te,W,ie,Be,g,F,w,ve,ke,z,ue,Ue,N,Ae,qe,Je,Re,Ne,Pe,Ie,el,Ze,me,Ce,rl,cl,dl,fl,nl,Nl,Tl,El,Ke;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((j=(E=(L=e==null?void 0:e.find(f=>(f==null?void 0:f.key)==="filterAllType"))==null?void 0:L.value)==null?void 0:E.find(f=>(f==null?void 0:f.value)==="onPamButtonContents"))!=null&&j.content){let f=(P=(B=(c=e==null?void 0:e.find(Q=>(Q==null?void 0:Q.key)==="filterAllType"))==null?void 0:c.value)==null?void 0:B.find(Q=>(Q==null?void 0:Q.value)==="onPamButtonContents"))==null?void 0:P.content;f=(M=f==null?void 0:f.split(":"))==null?void 0:M[1],f=(b=f.slice(1,(f==null?void 0:f.length)-1))==null?void 0:b.split(","),n=!!(f!=null&&f.find(Q=>Q==="操作"))}let u=a;const t=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"),p=e==null?void 0:e.find(f=>(f==null?void 0:f.key)==="extraButton"),v=e==null?void 0:e.filter(f=>(f==null?void 0:f.key)==="tableContents"),T=e==null?void 0:e.filter(f=>(f==null?void 0:f.key)==="tableIndex");yl.value=(k=(A=e==null?void 0:e.filter(f=>(f==null?void 0:f.key)==="tableToForm"))==null?void 0:A[0])==null?void 0:k.contents,Ka.value=(t==null?void 0:t.contents)??!0;let m=[];Fl.value===""?m=o==null?void 0:o[0]:m=(o==null?void 0:o.find(f=>(f==null?void 0:f.selectLabel)==="("+Fl.value+")"))??(o==null?void 0:o.find(f=>!(f!=null&&f.selectLabel)));let S=[];if(Fl.value===""?S=T==null?void 0:T[0]:S=(T==null?void 0:T.find(f=>(f==null?void 0:f.selectLabel)==="("+Fl.value+")"))??(T==null?void 0:T.find(f=>!(f!=null&&f.selectLabel))),((_=m==null?void 0:m.contents)==null?void 0:_.length)>0){let f=[];if(m!=null&&m.contents.some(q=>Array.isArray(q)&&(q==null?void 0:q.find(h=>h.children))))aa.value===""?f=(H=(y=fe.getGradeColumns(m==null?void 0:m.contents,n))==null?void 0:y[0])==null?void 0:H.filter(q=>!Array.isArray(q)):(aa.value.split("-"),f=($=fe.getGradeColumns(m==null?void 0:m.contents,n))==null?void 0:$[0]);else{let q=m!=null&&m.contents.some(h=>Array.isArray(h))?(G=m==null?void 0:m.contents)==null?void 0:G[0]:m==null?void 0:m.contents;q==null||q.forEach((h,ze)=>{var tl,gl,ua,ca,da;let ol="";(gl=(tl=Ee.value)==null?void 0:tl.split("/"))==null||gl.forEach(Al=>{var ta,pa,Hl;if(Al!==""){let pl=(Hl=(pa=(ta=Al==null?void 0:Al.split(He+"updateLoading"))==null?void 0:ta[0])==null?void 0:pa.split(He+"loading"))==null?void 0:Hl[0];ol=ol===""?ol+pl:ol+"/"+pl}}),ol=ol+He+(h==null?void 0:h.directiveLabel);const Ge=(ua=yl.value)==null?void 0:ua.find(Al=>(Al==null?void 0:Al.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"+ze,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)??ze,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?(ca=h==null?void 0:h.groupSelect)==null?void 0:ca.replaceAll('"',"").split(":"):[],isMainKey:(h==null?void 0:h.isMainKey)||(h==null?void 0:h.directiveLabel)==="#isMain",columnType:(Ge==null?void 0:Ge.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&&!(u!=null&&u[ol])&&!((da=h==null?void 0:h.directiveLabel)!=null&&da.includes("@"))&&(h==null?void 0:h.directiveLabel)!=="#isMain"),childPath:(h==null?void 0:h.directiveLabel)!=="#isMain"?ol: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})})}Z.value=fe.getNewColumnChild(f),Ta.value=fe.getNewColumnChild(f),oe.value=(d=Z.value)==null?void 0:d.map(q=>q==null?void 0:q.label),Te.value=(O=Z.value)==null?void 0:O.every(q=>q==null?void 0:q.filterable),Me.value=(se=Z.value)==null?void 0:se.every(q=>q==null?void 0:q.operable),ge.value=(R=Z.value)==null?void 0:R.every(q=>q==null?void 0:q.sortable);let Q=(U=(x=fe.getAllLeafNodes(Z.value))==null?void 0:x.filter(q=>(q==null?void 0:q.type)!=="operate"))==null?void 0:U.map((q,h)=>({prop:(q==null?void 0:q.prop)??"a"+h,column:q.label}));Sl.value=Q;let re=[];Fl.value===""?re=v==null?void 0:v[0]:re=(v==null?void 0:v.find(q=>(q==null?void 0:q.selectLabel)==="("+Fl.value+")"))??(v==null?void 0:v.find(q=>!(q!=null&&q.selectLabel)));let il=Array.isArray((ae=re==null?void 0:re.contents)==null?void 0:ae[0])&&((le=re==null?void 0:re.contents)!=null&&le[0].every(q=>Array.isArray(q)))?(I=re==null?void 0:re.contents)==null?void 0:I[0]:re==null?void 0:re.contents;S!=null&&S.contents&&((pe=S==null?void 0:S.contents)==null?void 0:pe.length)!==0&&(il=(te=D.cloneDeep(il))==null?void 0:te.map((q,h)=>{if(!Array.isArray(q)){let ze={};for(let ol in q)ol!=="id"&&ol!=="index"&&(ze[ol]=q[ol]);q=Object.values(ze)}return q}));const Pa=!!((W=Z.value)!=null&&W.find(q=>q.prop==="index"));il=vr(il,S==null?void 0:S.contents,Pa);const Ve=[];il==null||il.forEach((q,h)=>{var ol;let ze={};if(Array.isArray(q)){let Ge=[];q==null||q.filter(tl=>!(tl!=null&&tl.id)).forEach((tl,gl)=>{var ua,ca,da,Al,ta,pa;if((ua=Q==null?void 0:Q[gl])!=null&&ua.prop&&!Array.isArray(tl)){let Hl={};Hl[Q[gl].column]=tl,_e!=null&&_e.value&&((ca=_e==null?void 0:_e.value)==null?void 0:ca.length)>0&&((da=_e==null?void 0:_e.value)!=null&&da.find(pl=>JSON.stringify(pl==null?void 0:pl[0])===JSON.stringify(Hl)))&&(Ge=(Al=_e==null?void 0:_e.value)==null?void 0:Al.find(pl=>JSON.stringify(pl==null?void 0:pl[0])===JSON.stringify(Hl))),Ge&&Ge.length>0?ze[Q[gl].prop]=Ge!=null&&Ge.find(pl=>{var fa;return((fa=Object.keys(pl))==null?void 0:fa[0])===Q[gl].column})?(ta=Ge==null?void 0:Ge.find(pl=>{var fa;return((fa=Object.keys(pl))==null?void 0:fa[0])===Q[gl].column}))==null?void 0:ta[Q[gl].column]:tl:ze[Q[gl].prop]=tl}else Array.isArray(tl)&&((pa=Q[gl])!=null&&pa.prop?ze[Q[gl].prop]=tl:ze.children=Fa(tl,Q))})}else ze=q;Array.isArray(q)&&q.some(Ge=>Ge==null?void 0:Ge.id)?Ve.push(Object.assign(ze,{id:(ol=q==null?void 0:q.find(Ge=>Ge.id))==null?void 0:ol.id})):ze.id?Ve.push(ze):Ve.push(Object.assign(ze,{id:h.toString()}))}),ee.value=ir(Ve,r,Z.value),jl.value=Ve,(ie=jl.value)==null||ie.forEach(q=>{var h;(h=zl.value)==null||h.set(q.id,q)});const hl=Array.from(((Be=zl.value)==null?void 0:Be.values())||[]).filter(q=>q==null?void 0:q._isOCRRow);if(hl.length>0){const q=new Set((ee.value||[]).map(ze=>ze==null?void 0:ze.id)),h=hl.filter(ze=>!q.has(ze.id));h.length>0&&(ee.value=[...ee.value||[],...h],jl.value=[...jl.value||[],...h])}}else Z.value=[],C.value=[],ee.value=[],jl.value=[],zl.value=new Map;if(((g=i==null?void 0:i.contents)==null?void 0:g.length)>0)if((ve=(w=(F=e==null?void 0:e.find(f=>(f==null?void 0:f.key)==="filterAllType"))==null?void 0:F.value)==null?void 0:w.find(f=>(f==null?void 0:f.value)==="onRowButtonContents"))!=null&&ve.content){let f=(ue=(z=(ke=e==null?void 0:e.find(Q=>(Q==null?void 0:Q.key)==="filterAllType"))==null?void 0:ke.value)==null?void 0:z.find(Q=>(Q==null?void 0:Q.value)==="onButtonContents"))==null?void 0:ue.content;f=(Ue=f==null?void 0:f.split(":"))==null?void 0:Ue[1],f=(N=f.slice(1,(f==null?void 0:f.length)-1))==null?void 0:N.split(","),kl.value=(Ae=i==null?void 0:i.contents)==null?void 0:Ae.filter(Q=>f==null?void 0:f.find(re=>re===(Q==null?void 0:Q.label)))}else kl.value=i==null?void 0:i.contents;else kl.value=[];if((qe=kl.value)!=null&&qe.some(f=>(f==null?void 0:f.label)==="OCR识别")||(kl.value=[...kl.value,{label:"OCR识别"}]),((Je=p==null?void 0:p.contents)==null?void 0:Je.length)>0)if((Pe=(Ne=(Re=e==null?void 0:e.find(f=>(f==null?void 0:f.key)==="filterAllType"))==null?void 0:Re.value)==null?void 0:Ne.find(f=>(f==null?void 0:f.value)==="onButtonContents"))!=null&&Pe.content){let f=(Ze=(el=(Ie=e==null?void 0:e.find(Q=>(Q==null?void 0:Q.key)==="filterAllType"))==null?void 0:Ie.value)==null?void 0:el.find(Q=>(Q==null?void 0:Q.value)==="onButtonContents"))==null?void 0:Ze.content;f=(me=f==null?void 0:f.split(":"))==null?void 0:me[1],f=(Ce=f.slice(1,(f==null?void 0:f.length)-1))==null?void 0:Ce.split(","),Ul.value=(rl=p==null?void 0:p.contents)==null?void 0:rl.filter(Q=>f==null?void 0:f.find(re=>re===(Q==null?void 0:Q.label))),ml.value=(cl=p==null?void 0:p.contents)==null?void 0:cl.filter(Q=>f==null?void 0:f.find(re=>re===(Q==null?void 0:Q.label))),xe.value=!!(f!=null&&f.find(Q=>Q==="搜索")),he.value=!!(f!=null&&f.find(Q=>Q==="块状显示"))}else Ul.value=p==null?void 0:p.contents,ml.value=p==null?void 0:p.contents;else Ul.value=[],ml.value=[];((dl=Ul.value)==null?void 0:dl.length)>0&&(Ul.value=(fl=Ul.value)==null?void 0:fl.filter(f=>(f==null?void 0:f.label)!=="OCR识别")),((nl=ml.value)==null?void 0:nl.length)>0&&(ml.value=(Nl=ml.value)==null?void 0:Nl.filter(f=>(f==null?void 0:f.label)!=="OCR识别")),ql.value=((Tl=ee==null?void 0:ee.value)==null?void 0:Tl.length)??0,or(ee.value),la.value=ee.value,xl.value&&(Z.value=(Ke=(El=C.value)==null?void 0:El.filter(f=>(f==null?void 0:f.label)!=="操作"))==null?void 0:Ke.map(f=>{var Q;return{...f,type:"edit",optionUrl:f!=null&&f.formMenuSelect&&((Q=f==null?void 0:f.formMenuSelect)==null?void 0:Q.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}}),Ma())};l.watch(()=>[s.itemData,Fl.value,Er.value,aa.value,_e==null?void 0:_e.value],async()=>{var e,a,o,r,n,u;if((e=s==null?void 0:s.itemData)!=null&&e.find(t=>(t==null?void 0:t.key)==="columnPath")&&!((a=Yl.value)!=null&&a.find(t=>{var i,p;return(t==null?void 0:t.key)===((p=(i=s==null?void 0:s.itemData)==null?void 0:i.find(v=>(v==null?void 0:v.key)==="columnPath"))==null?void 0:p.contents)}))){let t=Yl.value,i={key:(r=(o=s==null?void 0:s.itemData)==null?void 0:o.find(p=>(p==null?void 0:p.key)==="columnPath"))==null?void 0:r.contents,value:(u=(n=s==null?void 0:s.itemData)==null?void 0:n.find(p=>(p==null?void 0:p.key)==="columnUsingPath"))==null?void 0:u.contents};t!=null&&t.find(p=>(p==null?void 0:p.key)===(i==null?void 0:i.key))?t=t==null?void 0:t.map(p=>((p==null?void 0:p.key)===(i==null?void 0:i.key)&&(p.value=i.value),p)):t.push(i),$e.setTableViewContents(t)}sr(s.itemData,s.allMapContents)},{deep:!0,immediate:!0}),l.watch(()=>s==null?void 0:s.operatingForm,e=>{e!=null&&e.form&&(ia(e==null?void 0:e.form),ul.value=e==null?void 0:e.dialogTitle,ga.value=!0,wl.value=!0)},{immediate:!0,deep:!0});const ur=()=>{var e;(e=Le.value)!=null&&e.includes("read")&&(xl.value=!xl.value)},To=()=>{ka.value=!ka.value};l.watch(()=>{var e;return(e=s==null?void 0:s.config)==null?void 0:e.viewport},e=>{var a;Le.value=e,(e==null?void 0:e.length)===0?xl.value=!1:(e!=null&&e.includes("read")||(xl.value=!0),e!=null&&e.includes("edit")||(xl.value=!1)),Se.value=((a=s==null?void 0:s.config)==null?void 0:a.showIndex)||xl.value},{immediate:!0}),l.watch(()=>xl.value,e=>{var a;e?(Ma("viewChange"),$e.setCacheUpdatingData(null)):(Ul.value=ml.value,Z.value=Ta.value,Xl.value&&($e.setTableLoading(s==null?void 0:s.index),ne("change",Xl.value))),de.value=e,Se.value=e||((a=s==null?void 0:s.config)==null?void 0:a.showIndex)},{immediate:!0}),l.watch(()=>{var e;return(e=qa.value)==null?void 0:e.length},e=>{e===0&&(je.currentPage=1)}),l.watch(()=>s==null?void 0:s.compNames,e=>{Fe.contents=[{label:"列表名",prop:"groupName",name:"列表名",type:"select",value:"",id:0,contents:e||[],width:1}]},{immediate:!0}),l.ref(!1);const Eo=(e,a)=>{var o;Ma("createClick"),a===je.pageSize&&(je.currentPage=Math.ceil(((o=ee.value)==null?void 0:o.length)/je.pageSize))},Ao=(e,a,o)=>{var r;ar(o,e,a),ll.value=D.cloneDeep(e),Ol.value=e==null?void 0:e.id,ql.value=(r=ee.value)==null?void 0:r.length,ul.value=typeof(e==null?void 0:e.id)=="string"?"新增":"编辑",sa(!1)},al=e=>{var p,v,T,m,S,L,E,j,c,B;const{row:a,column:o,item:r,slotData:n}=e;let u=a!=null&&a[o==null?void 0:o.prop]||(a==null?void 0:a[o==null?void 0:o.prop])===0?((v=(p=a==null?void 0:a[o==null?void 0:o.prop])==null?void 0:p[0])==null?void 0:v.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]):((m=(T=a==null?void 0:a[r==null?void 0:r.prop])==null?void 0:T[0])==null?void 0:m.contents)??(a==null?void 0:a[r==null?void 0:r.prop])??((L=(S=n==null?void 0:n[r==null?void 0:r.prop])==null?void 0:S[0])==null?void 0:L.contents)??(n==null?void 0:n[r==null?void 0:r.prop])??((c=(j=a==null?void 0:a[(E=r==null?void 0:r.child)==null?void 0:E.prop])==null?void 0:j[0])==null?void 0:c.contents)??(a==null?void 0:a[(B=r==null?void 0:r.child)==null?void 0:B.prop]),i=Array.isArray(u)&&!(u!=null&&u.every(P=>typeof P=="string"||typeof P=="number"))?"查看":u;return i=Array.isArray(i)?i.join(","):i,i},_o=e=>{var v,T,m,S,L,E,j,c,B,P;const{row:a,column:o,item:r,slotData:n}=e;let u=a!=null&&a[o==null?void 0:o.prop]?((T=(v=a==null?void 0:a[o==null?void 0:o.prop])==null?void 0:v[0])==null?void 0:T.contents)??(a==null?void 0:a[o==null?void 0:o.prop]):((S=(m=a==null?void 0:a[r==null?void 0:r.prop])==null?void 0:m[0])==null?void 0:S.contents)??(a==null?void 0:a[r==null?void 0:r.prop])??((E=(L=n==null?void 0:n[r==null?void 0:r.prop])==null?void 0:L[0])==null?void 0:E.contents)??(n==null?void 0:n[r==null?void 0:r.prop])??((B=(c=a==null?void 0:a[(j=r==null?void 0:r.child)==null?void 0:j.prop])==null?void 0:c[0])==null?void 0:B.contents)??(a==null?void 0:a[(P=r==null?void 0:r.child)==null?void 0:P.prop]);const i=Array.isArray(u)&&!(u!=null&&u.every(M=>typeof M=="string"||typeof M=="number")),p=Array.isArray(u)&&(u==null?void 0:u.find(M=>M==null?void 0:M.url));return i&&p},cr=e=>{var t,i,p,v,T,m,S,L,E,j;const{row:a,column:o,item:r,slotData:n}=e||{};let u=a!=null&&a[o==null?void 0:o.prop]?((i=(t=a==null?void 0:a[o==null?void 0:o.prop])==null?void 0:t[0])==null?void 0:i.contents)??(a==null?void 0:a[o==null?void 0:o.prop]):((v=(p=a==null?void 0:a[r==null?void 0:r.prop])==null?void 0:p[0])==null?void 0:v.contents)??(a==null?void 0:a[r==null?void 0:r.prop])??((m=(T=n==null?void 0:n[r==null?void 0:r.prop])==null?void 0:T[0])==null?void 0:m.contents)??(n==null?void 0:n[r==null?void 0:r.prop])??((E=(L=a==null?void 0:a[(S=r==null?void 0:r.child)==null?void 0:S.prop])==null?void 0:L[0])==null?void 0:E.contents)??(a==null?void 0:a[(j=r==null?void 0:r.child)==null?void 0:j.prop]);return Array.isArray(u)?(u==null?void 0:u.filter(c=>(c==null?void 0:c.url)||(c==null?void 0:c.downloadUrl)))??[]:[]},Bo=(e,a)=>e.find(o=>Object.values(o).some(r=>r===a));return l.watch(()=>mr.value,async e=>{if(e){We.setContentLoading(!0),await l.nextTick();const a=Bo(ee.value,e==null?void 0:e.data);if(!a)return We.setContentLoading(!1);await Qa(e==null?void 0:e.data,null,a,{data:e==null?void 0:e.data,isMainKey:!0}),We.setContentLoading(!1)}},{deep:!0,immediate:!0}),l.watch(()=>s==null?void 0:s.cacheNewData,e=>{var a;e&&(Array.isArray(e)||(e==null?void 0:e.compId)===(s==null?void 0:s.index)&&(ee.value=(a=ee.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 S,L,E,j;const o=l.resolveComponent("svg-icon"),r=l.resolveComponent("el-popover"),n=l.resolveComponent("el-switch"),u=l.resolveComponent("el-checkbox"),t=l.resolveComponent("el-checkbox-group"),i=l.resolveComponent("el-button"),p=l.resolveComponent("LookComponent"),v=l.resolveComponent("el-icon"),T=l.resolveComponent("el-upload"),m=l.resolveDirective("loading");return l.openBlock(),l.createElementBlock("div",fn,[za.value?(l.openBlock(),l.createBlock(vl.ssTable,{id:"excel-table",pageObj:je,showIndex:Se.value,isTree:(S=J.compItem)==null?void 0:S.isTree,summaryInfo:Qe,columns:Z.value,defaultSort:Y,isCardViewport:ka.value,checkedColumns:oe.value,key:Oa.value+JSON.stringify(Z.value),tableData:qa.value,isEditViewport:xl.value,isShowPagination:Ka.value,isShowEdit:!1,isShowDelete:!1,allowSelect:de.value,onDbClickRow:Zr,extraButton:Ul.value,rowButton:kl.value,cacheExtraButtons:ml.value,isClearSelection:((L=Cl.value)==null?void 0:L.length)===0,onDoCurrentChange:Lr,onDoSizeChange:jr,onContentClick:Qa,onRowClick:eo,onSelectChange:Vr,onCellChange:Ao,onChange:ar,onPreview:Ja,onSubmitEditingTable:Kr,onHandleColEditChange:Fr,onHandleColTypeChange:Rr,onClickButton:Sa},l.createSlots({headerButton:l.withCtx(c=>{var B,P;return[J.showHeader?(l.openBlock(),l.createBlock(Qo,{key:0,pageLayout:J.pageLayout,lockingPage:l.unref(ha)===l.unref(Ee),filterValues:Ha.value,selectNums:(B=Cl.value)==null?void 0:B.length,dataNums:(P=ee.value)==null?void 0:P.length,compName:J.compName,isDevMode:J.isDevMode,buttons:c.buttons,onButtonClick:a[1]||(a[1]=M=>Sa(M,"",{})),columns:Z.value,onFilter:Yr,onGetImportData:Pr,level:J.level,filterShow:xe.value},null,8,["pageLayout","lockingPage","filterValues","selectNums","dataNums","compName","isDevMode","buttons","columns","level","filterShow"])):l.createCommentVNode("",!0)]}),viewport:l.withCtx(()=>{var c,B,P,M;return[((c=ee.value)==null?void 0:c.length)>0&&J.allowOperate&&he.value?(l.openBlock(),l.createElementBlock("div",yn,[(B=Le.value)!=null&&B.includes("read")&&((P=Le.value)!=null&&P.includes("edit"))&&((M=kl.value)!=null&&M.some(b=>(b==null?void 0:b.label)==="编辑"))&&!ka.value&&l.unref(ha)!==l.unref(Ee)?(l.openBlock(),l.createElementBlock("span",{key:0,title:"编辑表格",onClick:ur},[l.createVNode(o,{name:"editTable",class:"view-icon"})])):l.createCommentVNode("",!0),l.createElementVNode("span",{title:"卡片视图",onClick:To},[l.createVNode(o,{name:"cardViewport",class:"view-icon"})])])):l.createCommentVNode("",!0)]}),rowCreate:l.withCtx(({row:c,index:B})=>[l.createElementVNode("span",{title:"新增",class:"row-create-wrap",onClick:P=>Eo(c,B)},[l.createVNode(o,{name:"rowCreate",style:{width:"10px",height:"10px"}})],8,gn)]),operateCol:l.withCtx(()=>[l.createVNode(r,{title:"选择显示列信息",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:So},{reference:l.withCtx(()=>[l.createElementVNode("span",bn,[l.createVNode(o,{name:"operate",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),default:l.withCtx(()=>[l.createElementVNode("div",kn,[a[14]||(a[14]=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]=c=>wa(c,"sortable"))},null,8,["model-value"]),l.createVNode(n,{"model-value":Te.value,"active-text":"筛选","inactive-text":"",style:{"margin-right":"8px"},onChange:a[4]||(a[4]=c=>wa(c,"filterable"))},null,8,["model-value"]),l.createVNode(n,{"model-value":Me.value,"active-text":"编辑所有表头","inactive-text":"",onChange:a[5]||(a[5]=c=>wa(c,"operable"))},null,8,["model-value"]),a[15]||(a[15]=l.createElementVNode("div",{class:"group-title"},"表格列操作",-1)),l.createVNode(t,{modelValue:oe.value,"onUpdate:modelValue":a[6]||(a[6]=c=>oe.value=c),style:{height:"100%"},min:2,ref_key:"checkboxGroupRef",ref:V},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(oa.value,c=>(l.openBlock(),l.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:c.label},[l.createVNode(u,{value:c.label,style:{width:"100%",marginRight:0}},{default:l.withCtx(()=>[l.createElementVNode("span",{title:c.label,style:{display:"inline-block",width:"250px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},l.toDisplayString(c.label),9,mn)]),_: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 B;return[l.createElementVNode("div",Sn,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((B=Object.keys(c))==null?void 0:B.filter(P=>{var M;return(M=_l.value)==null?void 0:M.find(b=>(b==null?void 0:b.value)===P)}),P=>{var M,b;return l.openBlock(),l.createElementBlock("div",{key:P},[l.createVNode(n,{"model-value":c==null?void 0:c[P],"active-text":(b=(M=_l.value)==null?void 0:M.find(A=>(A==null?void 0:A.value)===P))==null?void 0:b.label,onChange:A=>Jr(A,P,c)},null,8,["model-value","active-text","onChange"])])}),128))])]}),_:2},1024),l.createElementVNode("span",xn,[l.createVNode(o,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:1},8,["modelValue"])])]),_:1})]),content:l.withCtx(c=>{var B,P,M,b,A,k,_,y,H,$,G,d,O,se,R,x,U,ae,le,I;return[((B=c==null?void 0:c.column)==null?void 0:B.label)==="OCR图片"||((P=c==null?void 0:c.column)==null?void 0:P.prop)==="OCR图片"?(l.openBlock(),l.createElementBlock("div",Cn,[l.createVNode(r,{"popper-class":"file-popover",placement:"right",trigger:"click",effect:"light",width:"auto"},{reference:l.withCtx(()=>[l.createVNode(o,{name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a[7]||(a[7]=l.withModifiers(()=>{},["stop"])),title:"查看OCR图片"})]),default:l.withCtx(()=>{var pe;return[l.createElementVNode("div",Dn,[((pe=cr(c))==null?void 0:pe.length)===0?(l.openBlock(),l.createElementBlock("div",Nn,a[16]||(a[16]=[l.createElementVNode("div",{class:"prop-url"},"暂无图片",-1)]))):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(cr(c),te=>(l.openBlock(),l.createElementBlock("div",{class:"file-list-pop",key:(te==null?void 0:te.url)||(te==null?void 0:te.name)},[l.createElementVNode("div",{class:"prop-url",title:Wl(te),onClick:W=>Wa(te)},l.toDisplayString(Wl(te)),9,Tn),l.createElementVNode("div",{class:"prop-download",onClick:W=>Ga(te)}," 下载 ",8,En)]))),128))])]}),_:2},1024)])):_o(c)?(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",An,l.toDisplayString(al(c)),1)]),default:l.withCtx(()=>{var pe,te;return[l.createElementVNode("div",_n,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((te=c==null?void 0:c.row)==null?void 0:te[(pe=c==null?void 0:c.column)==null?void 0:pe.prop],W=>(l.openBlock(),l.createElementBlock("div",Bn,[l.createElementVNode("div",{class:"prop-url",title:Wl(W),onClick:ie=>Wa(W)},l.toDisplayString(Wl(W)),9,On),l.createElementVNode("div",{class:"prop-download",onClick:ie=>Ga(W)}," 下载 ",8,wn)]))),256))])]}),_:2},1024)):(l.openBlock(),l.createElementBlock("div",{key:2,style:l.normalizeStyle({color:!Array.isArray(al(c))&&((b=(M=al(c))==null?void 0:M.toString())!=null&&b.includes(".txt")||(k=(A=al(c))==null?void 0:A.toString())!=null&&k.includes(".cpt")||(y=(_=al(c))==null?void 0:_.toString())!=null&&y.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray(al(c))&&(($=(H=al(c))==null?void 0:H.toString())!=null&&$.includes(".txt")||(d=(G=al(c))==null?void 0:G.toString())!=null&&d.includes(".cpt")||(se=(O=al(c))==null?void 0:O.toString())!=null&&se.includes(".cyd"))?"underline":"",cursor:!Array.isArray(al(c))&&((x=(R=al(c))==null?void 0:R.toString())!=null&&x.includes(".txt")||(ae=(U=al(c))==null?void 0:U.toString())!=null&&ae.includes(".cpt")||(I=(le=al(c))==null?void 0:le.toString())!=null&&I.includes(".cyd"))?"pointer":"",marginLeft:(c==null?void 0:c.colIndex)===0?`${((c==null?void 0:c.level)??0)*20}px`:0}),onClick:pe=>Ur(al(c))},l.toDisplayString(al(c)===0?"0":al(c)),13,Un))]}),_:2},[((E=kl.value)==null?void 0:E.length)>0&&l.unref(ha)!==l.unref(Ee)?{name:"actions",fn:l.withCtx(({item:c})=>[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",hn,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(Hr(kl.value,c),(B,P)=>(l.openBlock(),l.createElementBlock("div",{class:"menu-config-item",key:P,onClick:l.withModifiers(M=>Sa(B==null?void 0:B.label,c,{extra:B}),["stop"])},[l.createElementVNode("div",{style:l.normalizeStyle({color:B==null?void 0:B.textColor}),class:"extra-button-label"},l.toDisplayString(B==null?void 0:B.label),5)],8,vn))),128))])]),_:2},1024)]),key:"0"}:void 0,((j=ee.value)==null?void 0:j.length)>0?{name:"batchButton",fn:l.withCtx(c=>[l.withDirectives(l.createVNode(Yo,{lockingPage:l.unref(ha)===l.unref(Ee),buttons:c.buttons,selectTableItems:Cl.value,onButtonClick:a[2]||(a[2]=B=>Sa(B,"",{}))},null,8,["lockingPage","buttons","selectTableItems"]),[[l.vShow,de.value]]),l.withDirectives(l.createElementVNode("div",null,null,512),[[l.vShow,!de.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(Ql.ssDialog,{title:ul.value,visible:wl.value,width:_r.value,onBeforeDestroy:Wr,style:{height:"74%"}},{default:l.withCtx(()=>[l.createElementVNode("div",Ln,[l.createVNode(vl.ssForm,{rowContents:be.value,isEnableWrap:!1,showOperator:!1,onChange:xo,onFixChangeValue:Xr,onClickTrigger:Gr,isEdit:va.value,onBlurChange:zr,onCreate:qr,onTagChange:wr},null,8,["rowContents","isEdit"])])]),footer:l.withCtx(()=>[ga.value?(l.openBlock(),l.createElementBlock("div",jn,[l.createVNode(i,{onClick:a[8]||(a[8]=c=>wl.value=!1),id:"themeBorderButton"},{default:l.withCtx(()=>a[17]||(a[17]=[l.createTextVNode(l.toDisplayString("取消"))])),_:1,__:[17]}),l.createVNode(i,{class:"ok-button",onClick:a[9]||(a[9]=c=>sa(!0)),id:"themeButton"},{default:l.withCtx(()=>a[18]||(a[18]=[l.createTextVNode(l.toDisplayString("确认"))])),_:1,__:[18]})])):l.createCommentVNode("",!0)]),_:1},8,["title","visible","width"]),l.createVNode(Ql.ssDialog,{title:ul.value,visible:ya.value,width:Ea.value,onBeforeDestroy:a[11]||(a[11]=c=>ya.value=!1)},{default:l.withCtx(()=>[l.createVNode(an)]),footer:l.withCtx(()=>[l.createElementVNode("div",Mn,[l.createVNode(i,{onClick:a[10]||(a[10]=c=>ya.value=!1),class:"cancel-button",id:"themeBorderButton"},{default:l.withCtx(()=>a[19]||(a[19]=[l.createTextVNode(l.toDisplayString("取消"))])),_:1,__:[19]}),l.createVNode(i,{class:"ok-button",onClick:lo,id:"themeButton"},{default:l.withCtx(()=>a[20]||(a[20]=[l.createTextVNode(l.toDisplayString("确认"))])),_:1,__:[20]})])]),_:1},8,["title","visible","width"]),$l.value?(l.openBlock(),l.createBlock(vl.ssFilePreview,{key:1,fileDataList:Kl.value,onDestroy:Ir},null,8,["fileDataList"])):l.createCommentVNode("",!0),we.value?(l.openBlock(),l.createBlock(Ql.ssDialog,{key:2,visible:we.value,onBeforeDestroy:ko,style:{height:"80vh",width:"80vw"},"body-class":"three-dialog-body","footer-class":"three-dialog-footer"},{default:l.withCtx(()=>[l.createVNode(tr.ThreeViewerHost,{files:Zl.value,threeData:ye.value},null,8,["files","threeData"])]),_:1},8,["visible"])):l.createCommentVNode("",!0),l.createVNode(Ql.ssDialog,{visible:e.componentVisible,onBeforeDestroy:a[12]||(a[12]=c=>e.componentVisible=!1),width:Ea.value,style:{height:"70vh"}},{default:l.withCtx(()=>[l.createVNode(p,{dialogItem:Rl.value},null,8,["dialogItem"])]),_:1},8,["visible","width"]),l.createVNode(Ql.ssDialog,{title:"上传OCR图片",visible:ba.value,onBeforeDestroy:Ya,width:"600px"},{default:l.withCtx(()=>[l.withDirectives((l.openBlock(),l.createElementBlock("div",null,[l.createVNode(T,{"file-list":Ll.value,"onUpdate:fileList":a[13]||(a[13]=c=>Ll.value=c),multiple:"",drag:"",action:"","auto-upload":!1,limit:20,accept:"image/*","on-change":co,class:"upload-content"},{tip:l.withCtx(()=>a[21]||(a[21]=[l.createElementVNode("div",{class:"el-upload__tip tip-content"}," 请上传图片文件,大小不超过10MB ",-1)])),default:l.withCtx(()=>[l.createVNode(v,{class:"el-icon--upload"},{default:l.withCtx(()=>[l.createVNode(l.unref(D.upload_filled_default))]),_:1}),a[22]||(a[22]=l.createElementVNode("div",{class:"el-upload__text"},[l.createTextVNode(" 将图片拖到此处或"),l.createElementVNode("em",null,"点击上传")],-1))]),file:l.withCtx(({file:c,index:B})=>[l.createElementVNode("div",Pn,[l.createElementVNode("div",{class:"upload-content-title",style:{flex:"1",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:c==null?void 0:c.name},l.toDisplayString(c==null?void 0:c.name),9,$n),l.createElementVNode("div",Fn,[l.createVNode(o,{class:"icon-blue",name:"EyeFill",style:{width:"15px",height:"15px",cursor:"pointer",color:"var(--ssform-label-color)"},onClick:P=>po(c),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:P=>ho(B),title:"删除"},null,8,["onClick"])])])]),_:1},8,["file-list"])])),[[m,Il.value]])]),footer:l.withCtx(()=>[l.createElementVNode("div",Rn,[l.createVNode(i,{onClick:Ya,id:"themeBorderButton",disabled:Il.value},{default:l.withCtx(()=>a[23]||(a[23]=[l.createTextVNode("取消")])),_:1,__:[23]},8,["disabled"]),l.createVNode(i,{class:"ok-button",onClick:to,id:"themeButton",disabled:Il.value},{default:l.withCtx(()=>a[24]||(a[24]=[l.createTextVNode("确认")])),_:1,__:[24]},8,["disabled"])])]),_:1},8,["visible"]),Aa.value?(l.openBlock(),l.createBlock(vl.ssFilePreview,{key:3,fileDataList:_a.value,onDestroy:fo},null,8,["fileDataList"])):l.createCommentVNode("",!0),l.createVNode(Ql.ssDialog,{title:Fe.title,visible:Fe.show,width:Fe.width,onBeforeDestroy:so},{default:l.withCtx(()=>[l.createElementVNode("div",Kn,[l.createVNode(vl.ssForm,{rowContents:Fe==null?void 0:Fe.contents,formRules:Fe==null?void 0:Fe.formRules,showOperator:!1,buttonValue:Fe.buttonValue,isEdit:va.value,isStartJustify:!1,isEnableWrap:!1,onOnButtonClick:uo},null,8,["rowContents","formRules","buttonValue","isEdit"])])]),_:1},8,["title","visible","width"])])}}},zn=Da._export_sfc(Vn,[["__scopeId","data-v-9d4d14ba"]]);exports.formGetOptions=$a;exports.getSelectRow=Ca;exports.ssTable=zn;exports.useFormComp=br;exports.useFormToTableComp=hr;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const g=require("vue"),p=require("./index-
|
|
1
|
+
"use strict";const g=require("vue"),p=require("./index-DOItJqcJ.cjs"),w=require("./index-CXC0u8pm.cjs"),D=p.useLoginState(p.pinia),{loginUserInfo:u,cryptoInfo:m}=p.storeToRefs(D),V=w.useMenuState(p.pinia),{activeMenuPath:y}=p.storeToRefs(V),P=g.ref(0),R=g.computed(()=>{var s,a,t,r,n,l,e,o,d,v,f;return[{label:"",name:"账号",prop:"账号",value:((s=u.value)==null?void 0:s.account)||(((a=u.value)==null?void 0:a.账号)??"未知")},{label:"",name:"角色名称",prop:"角色名称",value:((t=u.value)==null?void 0:t.layer)==="superAdmin"?"超级管理员":(r=u.value)==null?void 0:r.角色名称},{label:"",name:"部门名称",prop:"部门名称",value:((n=u.value)==null?void 0:n.部门名称)??"未知"},{label:"",name:"状态",prop:"状态",value:((l=u.value)==null?void 0:l.layer)==="superAdmin"?"启用":((e=u.value)==null?void 0:e.状态)??"未知"},{label:"",prop:"头像",isFormColHidden:!0,value:((o=u.value)==null?void 0:o.layer)==="superAdmin"?"启用":((d=u.value)==null?void 0:d.状态)??"未知"},{label:"",prop:"签名",isFormColHidden:!0,value:((v=u.value)==null?void 0:v.layer)==="superAdmin"?"启用":((f=u.value)==null?void 0:f.状态)??"未知"}]}),W=()=>{},U=g.ref(!1),h=g.reactive({dialogTitle:"电子签名",dialogWidth:"30",dialogShow:!1,url:""}),S=g.ref([{label:"签字版",icon:p.edit_pen_default,type:"button",disabled:!1},{label:"电子签名",icon:p.edit_default,type:"button",disabled:!1},{label:"上传手写签名",icon:p.upload_filled_default,type:"buttonUpload",disabled:!1}]),I=g.ref(!1),T=g.ref(!1),M=g.ref(!1),_=g.computed(()=>{var r,n,l;const s=sessionStorage.getItem("authority"),a=JSON.parse(s||""),t=(r=y.value)!=null&&r.startsWith("/")?(n=y.value)==null?void 0:n.substring(1):y.value;return Array.isArray(a)?(M.value=!(a!=null&&a.includes(`${t}/上传头像`)),(l=S.value)==null?void 0:l.map(e=>({...e,disabled:!(a!=null&&a.includes(`${t}/签名`))}))):typeof a=="string"&&(a==null?void 0:a.toUpperCase())==="SUPERADMIN"?S.value:[]}),$=g.computed(()=>[{key:"signConfig",contents:h},{key:"signTypeList",contents:_.value}]),O=s=>{h.dialogShow=s.label==="电子签名"},L=()=>{h.dialogShow=!1},N=async s=>{var t,r,n,l,e,o,d,v,f;const a=await p.getInsofDataApi({id:s});if(((t=a==null?void 0:a.data)==null?void 0:t.code)===200&&a.data.result&&Array.isArray(a.data.result)&&a.data.result.length>0){const b={...(l=(n=(r=a.data.result)==null?void 0:r[0])==null?void 0:n.value)==null?void 0:l.tableData,id:(o=(e=a.data.result)==null?void 0:e[0])==null?void 0:o.id,layer:(f=(v=(d=a.data.result)==null?void 0:d[0])==null?void 0:v.key)==null?void 0:f.layer};D.setLoginUserInfo(b)}},q=async(s,a)=>{var r,n,l;const t=p.cloneDeep(s);t==null||delete t.id;try{const e=await p.updateInsofDataApi({id:(r=u.value)==null?void 0:r.id,value:{tableData:t}});((n=e==null?void 0:e.data)==null?void 0:n.code)===200&&(L(),p.ElMessage.success("修改成功"),await N((l=u.value)==null?void 0:l.id),await D.setLogRecordAsync({type:a,data:s},y.value))}catch{p.ElMessage.error("修改响应失败")}finally{U.value=!1,I.value=!1,T.value=!1}},B=async(s,a)=>{var n;const t=s==="avatarUrl"?"头像":"签名",r={...u.value,status:((n=u.value)==null?void 0:n.status)??"启用",[t]:a};I.value=s==="avatarUrl",T.value=s==="signature",await q(r,"图片修改")},c=g.reactive({baseCols:[],otherCols:[]}),K=g.ref([]),k=g.ref(),H=(s,a,t)=>{var l,e,o,d,v,f;let r;const n=a;((e=(l=u.value)==null?void 0:l.layer)==null?void 0:e.toUpperCase())!=="SUPERADMIN"?r=(o=u.value)!=null&&o.password?w.decryptData((d=u.value)==null?void 0:d.password,(v=m==null?void 0:m.value)==null?void 0:v.privateKey):w.resetPassword:r=(f=u.value)==null?void 0:f.password,r===n?t():t(new Error("输入的密码与原密码不匹配,请重新输入"))},j=(s,a,t)=>{a?t():t(new Error("请输入密码"))},x=(s,a,t)=>{var r;a!==((r=k.value)==null?void 0:r.newtPass)?t(new Error("两次输入的密码不一致")):t()},J=async()=>{var a,t,r,n,l,e,o,d,v,f;const s=await p.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:"系统管理/用户管理"}});if(((a=s==null?void 0:s.data)==null?void 0:a.code)===200&&s.data.result&&((t=s.data.result)==null?void 0:t.length)>0){const b=(o=(e=(l=(n=(r=s.data.result)==null?void 0:r[0])==null?void 0:n.value)==null?void 0:l.pageData)==null?void 0:e.compData)==null?void 0:o.find(i=>(i==null?void 0:i.key)==="header"),C=(d=R.value)==null?void 0:d.map(i=>i==null?void 0:i.prop);c.baseCols=b&&((v=b.contents)==null?void 0:v.map(i=>({...i,isFormColHidden:(C==null?void 0:C.includes(i==null?void 0:i.prop))||(i==null?void 0:i.label)==="操作"})));const A=(f=b.contents)==null?void 0:f.find(i=>(i==null?void 0:i.prop)==="password"),F=[{...A,label:"当前密码",prop:"currentPass",validator:H},{...A,label:"新密码",prop:"newtPass",validator:j},{...A,label:"确认密码",prop:"confirmNewPass",validator:x}];c.otherCols=F,Q(u.value)}},z=s=>{k.value=s},G=async({content:s,buttonName:a})=>{var r,n,l,e,o;let t;a==="确定"&&(t={...u.value,status:((r=u.value)==null?void 0:r.status)??"启用",password:((l=(n=u.value)==null?void 0:n.layer)==null?void 0:l.toUpperCase())==="SUPERADMIN"?s==null?void 0:s.confirmNewPass:w.encryptData(s==null?void 0:s.confirmNewPass,(e=m.value)==null?void 0:e.publicKey)}),a==="保存基本信息"&&(t={...u.value,...s,status:((o=u.value)==null?void 0:o.status)??"启用"}),U.value=!0,await q(t,a)},E=()=>{var r,n;const s={base:[{label:"保存基本信息"}],other:[{label:"重置",background:"#b7b8b8"},{label:"确定"}]},a=sessionStorage.getItem("authority"),t=JSON.parse(a||"");if(Array.isArray(t)){const l=(r=y.value)!=null&&r.startsWith("/")?(n=y.value)==null?void 0:n.substring(1):y.value,e=t!=null&&t.includes(`${l}/基本信息`)?s==null?void 0:s.base:[],o=t!=null&&t.includes(`${l}/修改密码`)?s==null?void 0:s.other:[];return{base:e,other:o}}else return typeof t=="string"&&(t==null?void 0:t.toUpperCase())==="SUPERADMIN"?s:null},Q=s=>{var a,t,r,n,l;K.value=[{value:"基础信息",label:"基础信息",children:[{type:"form",content:{rowContents:(a=c.baseCols)==null?void 0:a.map(e=>({...e,width:2,type:e==null?void 0:e.formType,name:e==null?void 0:e.prop,prop:e==null?void 0:e.prop,contents:e==null?void 0:e.options,value:s[e==null?void 0:e.prop]})),formRules:{userName:[{required:!0,message:"输入不能为空",trigger:"blur"}],birthDay:[{required:!0,message:"输入不能为空",trigger:"blur"}],phone:[{required:!0,message:"输入不能为空",trigger:"blur"}]},buttonValue:(t=E())==null?void 0:t.base,isEnableWrap:!1,isButtonRow:!1},value:""}]},{value:"修改密码",label:"修改密码",children:[{type:"form",content:{rowContents:(r=c.otherCols)==null?void 0:r.map(e=>({...e,width:1,type:e==null?void 0:e.formType,name:e==null?void 0:e.prop,contents:e==null?void 0:e.options})),formRules:(n=c.otherCols)==null?void 0:n.reduce((e,o)=>(e[o.prop]=[{required:!0,message:"输入有误",trigger:"change"},{validator:(d,v,f)=>o.validator(d,v,f),trigger:"blur"}],e),{}),buttonValue:(l=E())==null?void 0:l.other,isEnableWrap:!1},value:""}]}]},X=Object.freeze(Object.defineProperty({__proto__:null,avatarLoading:I,beforeSignDestroy:L,changeFormTrigger:z,clickFormButton:W,clickSignButton:O,clickTabButton:G,getUserTableHeadersAsync:J,itemData:$,loading:U,refreshLoginUserInfoAsync:N,rowContents:R,signPadInfo:h,signTypes:_,signatureLoading:T,submitImageAsync:B,tabKey:P,tabsContents:K,tempSignTypes:S,uploadDisabled:M},Symbol.toStringTag,{value:"Module"}));exports.State=X;exports.tabKey=P;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as I } from "./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-
|
|
2
|
-
import { a as W, d as X, f as Y, s as Z } from "./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-
|
|
1
|
+
import { _ as I } from "./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-CFKRRr_1.js";
|
|
2
|
+
import { a as W, d as X, f as Y, s as Z } from "./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-CFKRRr_1.js";
|
|
3
3
|
import { resolveComponent as r, createElementBlock as l, openBlock as n, Fragment as g, createVNode as s, createCommentVNode as d, withCtx as i, normalizeStyle as E, toDisplayString as c, createElementVNode as p, renderList as _, createTextVNode as M, createBlock as S, resolveDynamicComponent as L } from "vue";
|
|
4
4
|
import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const $ = ["title"], N = {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { computed as v, watch as u, onMounted as S, onUnmounted as B, resolveComponent as I, createElementBlock as D, openBlock as K, createVNode as p } from "vue";
|
|
2
|
-
import "./index-
|
|
3
|
-
import { u as T, p as j, s as x } from "./index-
|
|
4
|
-
import "./array-
|
|
2
|
+
import "./index-DMzOhZbZ.js";
|
|
3
|
+
import { u as T, p as j, s as x } from "./index-7MBVUN82.js";
|
|
4
|
+
import "./array-Bay2i0Vw.js";
|
|
5
5
|
import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
7
|
-
import "./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-
|
|
8
|
-
import "./index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-
|
|
6
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BksZanFP.js";
|
|
7
|
+
import "./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-CFKRRr_1.js";
|
|
8
|
+
import "./index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BLiySnpy.js";
|
|
9
9
|
import "./index-BHtNKL1L.js";
|
|
10
|
-
import "./index.vue_vue_type_style_index_1_lang-
|
|
11
|
-
import "./index-
|
|
12
|
-
import "./index-
|
|
10
|
+
import "./index.vue_vue_type_style_index_1_lang-BQ-xcdZE.js";
|
|
11
|
+
import "./index-DfFq9kkn.js";
|
|
12
|
+
import "./index-3oQGURYh.js";
|
|
13
13
|
import "vue-router";
|
|
14
|
-
import "./index-
|
|
14
|
+
import "./index-D742GPVS.js";
|
|
15
15
|
/* empty css */
|
|
16
|
-
import "./index-
|
|
16
|
+
import "./index-r48vNrKN.js";
|
|
17
17
|
const L = {
|
|
18
18
|
__name: "index",
|
|
19
19
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as x, onMounted as _, createElementBlock as g, openBlock as y, createVNode as C } from "vue";
|
|
2
|
-
import { s as b } from "./index-
|
|
3
|
-
import { c as s } from "./index-
|
|
2
|
+
import { s as b } from "./index-CFnIAxFU.js";
|
|
3
|
+
import { c as s } from "./index-7MBVUN82.js";
|
|
4
4
|
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const A = (t, n, a) => {
|
|
6
6
|
var r, d, p, m;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref as s, watch as d, defineComponent as m, reactive as y, onMounted as g, createElementBlock as i, openBlock as D, createVNode as f } from "vue";
|
|
2
2
|
import "./index-BHtNKL1L.js";
|
|
3
|
-
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
4
|
-
import { g as h, s as c } from "./index-
|
|
5
|
-
import { ag as C, af as _, a as k, u as S, ah as v } from "./index-
|
|
6
|
-
import { s as T } from "./index-
|
|
3
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BksZanFP.js";
|
|
4
|
+
import { g as h, s as c } from "./index-7MBVUN82.js";
|
|
5
|
+
import { ag as C, af as _, a as k, u as S, ah as v } from "./index-3oQGURYh.js";
|
|
6
|
+
import { s as T } from "./index-Dh1Z6bSQ.js";
|
|
7
7
|
const A = k(), { itemData: B } = c(A), u = s(0), I = s([
|
|
8
8
|
{
|
|
9
9
|
label: "机构名称",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as S, E as v, u as P, p as K } from "./index-
|
|
2
|
-
import { u as k } from "./index-
|
|
1
|
+
import { g as S, E as v, u as P, p as K } from "./index-7MBVUN82.js";
|
|
2
|
+
import { u as k } from "./index-3oQGURYh.js";
|
|
3
3
|
import { ref as h } from "vue";
|
|
4
4
|
const A = k(K), E = P(K), x = h(!1), D = h(!1), j = async () => {
|
|
5
5
|
const I = S({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),V=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),V=require("./index-EQPgkvyO.cjs"),h=require("./index-CXC0u8pm.cjs"),g=require("./index-DOItJqcJ.cjs"),B=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),w={class:"routerPage-wrapper"},N={class:"role-dialog-header"},b=["title"],D={title:"更多"},y={class:"dialog-footer"},S=e.defineComponent({__name:"index",setup(T){const _=h.useMenuState(),{menus:C,activeMenuPath:k}=g.storeToRefs(_),o=e.reactive({...h.State$1}),{treeRef:x}=h.State$1;e.onMounted(async()=>{await o.getActivePageStructureId(k.value)});const u=i=>i==null?void 0:i.map(t=>{var c,s,d;return t!=null&&t.childMenus&&((c=t==null?void 0:t.childMenus)==null?void 0:c.length)>0?{...t,childMenus:[],children:u(t==null?void 0:t.childMenus)}:{...t,childMenus:[],path:(s=t==null?void 0:t.path)!=null&&s.startsWith("/")?(d=t==null?void 0:t.path)==null?void 0:d.substring(1):t.path}});return e.watch(()=>C.value,i=>{e.nextTick(()=>{const t=g.cloneDeep(i),c=u(t);o.tempSysMenus=o.handleAddSysMenusButtons(c,"系统维护",["查看"]),o.menuData=o.addButtonsToTree(c,o.structureButtons)})},{immediate:!0,deep:!0}),(i,t)=>{const c=e.resolveComponent("el-checkbox"),s=e.resolveComponent("el-checkbox-group"),d=e.resolveComponent("svg-icon"),f=e.resolveComponent("el-popover"),m=e.resolveComponent("el-tree"),p=e.resolveComponent("el-button"),v=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",w,[e.createVNode(V.ssTable,{index:o.structureId,compName:o.compName,itemData:o.pageDataFiltered,changedContent:o.changedRow,onChange:o.handleItemDataChange,onOnButtonClick:o.clickRowButton},null,8,["index","compName","itemData","changedContent","onChange","onOnButtonClick"]),e.createVNode(v,{modelValue:o.authorizeDialog.show,"onUpdate:modelValue":t[0]||(t[0]=a=>o.authorizeDialog.show=a),width:o.authorizeDialog.width,draggable:o.authorizeDialog.draggable,"before-close":o.closeAuthorizeDialog,class:"role-dialog"},{header:e.withCtx(()=>[e.createElementVNode("div",N,e.toDisplayString(o.authorizeDialog.title),1)]),footer:e.withCtx(()=>[e.createElementVNode("div",y,[e.createVNode(p,{id:"themeBorderButton",onClick:o.closeAuthorizeDialog},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),e.createVNode(p,{id:"themeButton",onClick:o.clickSubmitAuthority},{default:e.withCtx(()=>t[2]||(t[2]=[e.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),default:e.withCtx(()=>[e.createVNode(m,{class:"role-tree",ref_key:"treeRef",ref:x,data:o.menuData,"expand-on-click-node":!1,"node-key":"path",props:{children:"children",label:"title",path:"path"},"highlight-current":"","default-expand-all":"","check-on-click-leaf":!1,"show-checkbox":"",onCheckChange:o.handleNodeCheckChange,style:{height:"500px","overflow-y":"auto"}},{default:e.withCtx(({node:a,data:n})=>[e.createElementVNode("span",{class:"node-text",title:a==null?void 0:a.label},e.toDisplayString(a==null?void 0:a.label),9,b),e.createVNode(s,{modelValue:n.checkedButtons,"onUpdate:modelValue":l=>n.checkedButtons=l,onChange:l=>o.handleNodeBtnChange(l,n),class:"node-buttons"},{default:e.withCtx(()=>{var l;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((l=n.renderButtons)==null?void 0:l.slice(0,2),r=>(e.openBlock(),e.createBlock(c,{key:r.title,label:r.title,value:r.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.title),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]),e.createVNode(f,{title:a==null?void 0:a.label,placement:"right-start"},{reference:e.withCtx(()=>{var l;return[e.createElementVNode("span",D,[e.withDirectives(e.createVNode(d,{name:"treeMore",class:"node-trigger"},null,512),[[e.vShow,((l=n.renderButtons)==null?void 0:l.length)>0]])])]}),default:e.withCtx(()=>[e.createVNode(s,{modelValue:n.checkedButtons,"onUpdate:modelValue":l=>n.checkedButtons=l,onChange:l=>o.handleNodeBtnChange(l,n),class:"node-buttons"},{default:e.withCtx(()=>{var l;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((l=n.renderButtons)==null?void 0:l.slice(2),r=>(e.openBlock(),e.createBlock(c,{key:r.title,label:r.title,value:r.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.title),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1032,["title"])]),_:1},8,["data","onCheckChange"])]),_:1},8,["modelValue","width","draggable","before-close"])])}}}),M=B._export_sfc(S,[["__scopeId","data-v-78a46dd8"]]);exports.default=M;
|
|
@@ -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-Bkb2GkmP.cjs"),_=require("./index-EQPgkvyO.cjs"),m=require("./index-DZ1Wyte2.cjs"),h=require("./index-DQf7cgx-.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;
|