ss-component-new 1.1.511 → 1.1.513
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/{index-Btfqm3Aj.js → index-0qsMaBmh.js} +1 -1
- package/dist/{index-DnGhhxPP.js → index-B0llR9_z.js} +1 -1
- package/dist/{index-BSC7EQfO.js → index-B9F6l0zb.js} +2 -2
- package/dist/{index-Oixs__9V.cjs → index-BeWcmtTy.cjs} +1 -1
- package/dist/{index-Bz3SW9qv.js → index-BwkUqDo1.js} +1 -1
- package/dist/{index-C3Lo66u2.js → index-By8ctQrJ.js} +2 -2
- package/dist/index-C1C3POgc.cjs +1 -0
- package/dist/{index-BDmXVjP1.cjs → index-C4HIdk7g.cjs} +1 -1
- package/dist/index-C4Ht4Ux1.js +1508 -0
- package/dist/{index-Bsluws3x.js → index-CGL_mhqS.js} +1 -1
- package/dist/{index-DQxqAo5T.cjs → index-CMxBxHE6.cjs} +1 -1
- package/dist/{index-B72kja43.js → index-Coe89zD8.js} +2 -2
- package/dist/{index-Cd0szVvZ.cjs → index-CsdYgAst.cjs} +1 -1
- package/dist/{index-LCDlyiVS.js → index-CtUe8YAg.js} +1 -1
- package/dist/{index-DLfWd1qr.js → index-CtY-GovO.js} +1 -1
- package/dist/{index-Ci1hpo3R.cjs → index-D7RatvOA.cjs} +1 -1
- package/dist/{index-D8QyJVl9.cjs → index-DOPbDWwi.cjs} +1 -1
- package/dist/index-DOdeZnag.cjs +1 -0
- package/dist/{index-3GfpOmBm.cjs → index-DaKszXxT.cjs} +1 -1
- package/dist/{index-DRXd1T3-.cjs → index-DezcQgvT.cjs} +1 -1
- package/dist/{index-BBFJJ4tl.js → index-DoaePomj.js} +1 -1
- package/dist/index-DpQkeVJC.cjs +1 -0
- package/dist/{index-NJKX8un9.js → index-DzBnQ8Js.js} +163 -163
- package/dist/{index-BY-71neG.js → index-MkPNp_9U.js} +2 -2
- package/dist/index-NfljvcSC.js +1159 -0
- package/dist/{index-D42emtHS.cjs → index-RdZQe-zJ.cjs} +1 -1
- package/dist/{index-CRSpuXYg.cjs → index-XxBRvAwN.cjs} +1 -1
- package/dist/{index-t25R8oz_.js → index-_8PVb_am.js} +34 -26
- package/dist/{index-CbWlMlxi.cjs → index-hirP8IYA.cjs} +1 -1
- package/dist/{index-D9ZIJbHw.cjs → index-lBO5Mf5F.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_f69cf49c_lang-BFaKxxEb.cjs → index.vue_vue_type_style_index_0_scoped_b9caa997_lang-CmhcgHDU.cjs} +10 -10
- package/dist/{index.vue_vue_type_style_index_0_scoped_f69cf49c_lang-BZQSdupd.js → index.vue_vue_type_style_index_0_scoped_b9caa997_lang-DO9GRy4C.js} +4230 -4223
- package/dist/{index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang--3mE_B9B.js → index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-C9i3W1DI.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-B2bfU2M4.cjs → index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-MDy8S6k3.cjs} +1 -1
- package/dist/{main-1yb7Pay5.js → main-BOW1Cc6K.js} +2 -2
- package/dist/{main-DkeO8sGR.cjs → main-CugqLD2C.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +4 -4
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +8 -8
- package/package.json +1 -1
- package/dist/index-9keTbNci.js +0 -1490
- package/dist/index-BBQrfTQg.cjs +0 -1
- package/dist/index-C3G2rcyE.cjs +0 -1
- package/dist/index-CT9N59g0.cjs +0 -1
- package/dist/index-DF8AKNJv.js +0 -1135
package/dist/index-BBQrfTQg.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),K=require("./index-D42emtHS.cjs"),Ne=require("./index-D8QyJVl9.cjs"),c=require("./index.vue_vue_type_style_index_0_scoped_f69cf49c_lang-BFaKxxEb.cjs"),ne=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),a=require("./menu-CQ3_ZXwC.cjs"),Ve=require("./login-BHMBhU8d.cjs"),te=require("./index-BpPyaNFa.cjs"),ce=require("./threeModel.vue_vue_type_style_index_0_scoped_4a248817_lang-MfXPrK37.cjs"),oe=require("./index-CT9N59g0.cjs"),pe=require("./index-D9ZIJbHw.cjs"),xe=require("./index.vue_vue_type_script_setup_true_lang-DWwRe3NO.cjs"),be=require("./threeModel-Cz-eN53p.cjs"),De=require("./index-DRXd1T3-.cjs"),ke=require("./index-YT4yRM1k.cjs");require("vue-router");const Ae=require("./array-BKzrrmWD.cjs"),Be=require("./index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-B2bfU2M4.cjs");function Me(v,I,t,C,B,R){const o=e.resolveComponent("svg-icon"),V=e.resolveComponent("ssMenu");return e.openBlock(),e.createBlock(V,{mode:v.mode,menuList:v.renderMenuList,onClickMenu:v.clickMenu,onOpenMenu:v.openMenu,onCloseMenu:v.closeMenu},{title:e.withCtx(({menu:k})=>[e.createVNode(o,{name:k.icon??"Fold",style:{width:"clamp(16px, 1.25rem, 20px)",height:"clamp(16px, 1.25rem, 20px)","margin-right":"8px"}},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(k.title??""),1)]),_:1},8,["mode","menuList","onClickMenu","onOpenMenu","onCloseMenu"])}const Se=ne._export_sfc(c._sfc_main,[["render",Me],["__scopeId","data-v-5c2d7ed2"]]),$e={class:"bread-content"},Pe=["onClick"],je={key:0,class:"split-title"},Ie={__name:"index",props:{breadArray:{type:Array,default:()=>[]}},emits:["click"],setup(v,{emit:I}){const t=v,C=e.ref([]),B=I;e.onMounted(()=>{C.value=t==null?void 0:t.breadArray}),e.watch(()=>t==null?void 0:t.breadArray,()=>{C.value=t==null?void 0:t.breadArray},{deep:!0,immediate:!0});const R=o=>{B("click",o)};return(o,V)=>(e.openBlock(),e.createElementBlock("div",$e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(k,F)=>{var A;return e.openBlock(),e.createElementBlock("div",{key:F,class:"bread-item"},[e.createElementVNode("div",{class:"bread-title",onClick:J=>R(k),style:e.normalizeStyle({opacity:((A=C.value)==null?void 0:A.length)-1===F?"0.7":"1"})},e.toDisplayString(k.value),13,Pe),F!==C.value.length-1&&Array.isArray(C.value)?(e.openBlock(),e.createElementBlock("div",je,e.toDisplayString("/"))):e.createCommentVNode("",!0)])}),128))]))}},Fe=ne._export_sfc(Ie,[["__scopeId","data-v-ded7e2bd"]]),Ue={class:"structure-buttons"},qe={class:"structure-paths"},Le={class:"client-header-user"},Oe={class:"model-select"},ze={class:"model-show"},Ke={class:"model-fill"},Ge={class:"client-header-menu"},He={class:"client-header-user"},Xe={class:"drop-menu"},Je={class:"client-main-operate"},We={key:0,class:"item-view-group"},Qe=e.defineComponent({__name:"index2",props:{windowConfig:{type:Object,default:()=>{}},showButton:{type:Boolean,default:!0}},setup(v){const I=oe.useUnit(a.pinia),{selectTitle:t}=a.storeToRefs(I),C=Ve.useLoginState(),{loginUserInfo:B}=a.storeToRefs(C),R=ce.useModelComp(a.pinia),{isEdit:o,routeToChildPath:V}=a.storeToRefs(R),k=a.useMenuState(a.pinia),{importLoading:F,activeTopMenuPath:A,activeAsideMenu:J}=a.storeToRefs(k),m=e.ref(""),T=e.computed(()=>J.value.isRouter),$=()=>{sessionStorage.clear(),window.location.reload()},E=()=>{k.setActiveMenuPath(V.value),R.setRouteToChildPath("")};return(g,d)=>{const b=e.resolveComponent("el-button"),ae=e.resolveComponent("el-avatar"),U=e.resolveComponent("el-header"),W=e.resolveComponent("el-container"),Z=e.resolveComponent("el-icon"),le=e.resolveComponent("el-input"),Q=e.resolveComponent("ss-button"),p=e.resolveComponent("el-aside"),M=e.resolveComponent("router-view"),q=e.resolveComponent("el-main"),x=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives(e.createVNode(W,{class:"client-container"},{default:e.withCtx(()=>[e.createVNode(U,{class:"client-structure-header"},{default:e.withCtx(()=>{var y;return[e.createElementVNode("div",Ue,[e.createVNode(b,{id:"transparentBgButton",onClick:e.unref(c.onBack)},{default:e.withCtx(()=>d[2]||(d[2]=[e.createTextVNode(" 返回页面 ")])),_:1,__:[2]},8,["onClick"]),e.createVNode(b,{id:"transparentBgButton",onClick:d[0]||(d[0]=n=>{var P,O;return e.unref(c.clickSavePage)((O=(P=e.unref(t))==null?void 0:P.map(re=>re.value))==null?void 0:O.join("/"))})},{icon:e.withCtx(()=>[e.createVNode(te.SvgIcon,{name:"Store"})]),default:e.withCtx(()=>[d[3]||(d[3]=e.createTextVNode(" 保存页面 "))]),_:1,__:[3]})]),e.createElementVNode("div",qe,[(e.openBlock(),e.createBlock(Fe,{key:e.unref(t),breadArray:e.unref(t),onClick:e.unref(c.onClick)},null,8,["breadArray","onClick"]))]),e.createElementVNode("div",Le,[e.renderSlot(g.$slots,"default",{},void 0,!0),e.createVNode(ae,{size:35,src:(y=e.unref(B))==null?void 0:y.avatarUrl},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString(((n=e.unref(B))==null?void 0:n.account)??"未知"),1)]}),_:1},8,["src"])])]}),_:3}),e.unref(o)==="edit"?(e.openBlock(),e.createBlock(W,{key:0,class:"model-operate",style:{"margin-top":"10px",height:"0px"}},{default:e.withCtx(()=>[e.createElementVNode("div",Oe,[e.createVNode(K.modelSelect)]),e.createElementVNode("div",ze,[e.createVNode(K.modelShow)]),e.createElementVNode("div",Ke,[e.createVNode(K.modelFill)])]),_:1})):e.createCommentVNode("",!0)]),_:3},512),[[e.vShow,e.unref(o)==="edit"]]),e.withDirectives((e.openBlock(),e.createBlock(W,{class:"client-container","element-loading-text":"正在加载页面数据..."},{default:e.withCtx(()=>[e.createVNode(U,{class:"client-header"},{default:e.withCtx(()=>[d[6]||(d[6]=e.createElementVNode("div",{class:"client-header-logo"}," ISIP ",-1)),e.createElementVNode("div",Ge,[e.createVNode(Se,{mode:"horizontal"})]),e.createElementVNode("div",He,[e.createVNode(le,{modelValue:m.value,"onUpdate:modelValue":d[1]||(d[1]=y=>m.value=y),clearable:"",placeholder:"搜索",style:{width:"130px"}},{prefix:e.withCtx(()=>[e.createVNode(Z,{class:"el-input__icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(a.search_default))]),_:1})]),_:1},8,["modelValue"]),v.showButton?(e.openBlock(),e.createBlock(b,{key:0,id:"transparentBgButton",onClick:e.unref(c.clickGenerateApp)},{icon:e.withCtx(()=>[e.createVNode(te.SvgIcon,{name:"App"})]),default:e.withCtx(()=>[d[4]||(d[4]=e.createTextVNode(" 生成APP "))]),_:1,__:[4]},8,["onClick"])):e.createCommentVNode("",!0),v.showButton&&e.unref(o)==="view"?(e.openBlock(),e.createBlock(b,{key:1,id:"transparentBgButton",onClick:e.unref(c.onSelectFixContent)},{icon:e.withCtx(()=>[e.createVNode(te.SvgIcon,{name:"write"})]),default:e.withCtx(()=>[d[5]||(d[5]=e.createTextVNode(" 修改布局 "))]),_:1,__:[5]},8,["onClick"])):e.createCommentVNode("",!0),e.renderSlot(g.$slots,"default",{},void 0,!0),e.createVNode(pe.ssDrop,null,{dropTitle:e.withCtx(()=>{var y;return[e.createVNode(xe._sfc_main,{size:"35",avatarUrl:(y=e.unref(B))==null?void 0:y.avatarUrl,showCropper:!1,banClick:!0},{avatarDefault:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString(((n=e.unref(B))==null?void 0:n.account)??"未知"),1)]}),_:1},8,["avatarUrl"])]}),dropMenu:e.withCtx(()=>[e.createElementVNode("div",Xe,[e.createVNode(Q,{emptyColor:!0,class:"menu-button",onClickTrigger:$,modelValue:"退出登录",buttonType:""})])]),_:1})])]),_:3,__:[6]}),e.createVNode(W,{class:"client-body"},{default:e.withCtx(()=>[e.createVNode(q,{class:"client-main"},{default:e.withCtx(()=>{var y;return[e.createVNode(p,{class:"client-aside"},{default:e.withCtx(()=>[e.createVNode(Ne.default,{mode:"vertical"})]),_:1}),e.createElementVNode("div",Je,[T.value?(e.openBlock(),e.createBlock(M,{key:0})):e.createCommentVNode("",!0),e.unref(V)!==""?(e.openBlock(),e.createBlock(Q,{key:1,class:"calculator-content back-content",onClickTrigger:E,modelValue:"返回"})):e.createCommentVNode("",!0),T.value?e.createCommentVNode("",!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList((y=e.unref(a.cloneDeep)(e.unref(c.showItems)))==null?void 0:y.filter(n=>n.comp!=="FormTop"),(n,P)=>{var O;return e.openBlock(),e.createElementBlock("div",{class:"item-view-content",key:P},[((O=n==null?void 0:n.comp)==null?void 0:O.toUpperCase())!=="TABLE"&&n.name?(e.openBlock(),e.createElementBlock("div",We,e.toDisplayString(n.name),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(c.getComponents)(n.comp)),{compName:n.name,itemData:n==null?void 0:n.compData,childItemData:n==null?void 0:n.itemChildData,key:(n==null?void 0:n.id)??P,onChange:e.unref(c.onChange),index:(n==null?void 0:n.id)??P,onContentChange:e.unref(c.onContentChange),onPageChange:e.unref(c.onPageChange)},null,40,["compName","itemData","childItemData","onChange","index","onContentChange","onPageChange"]))])}),128))])]}),_:1})]),_:1})]),_:3})),[[e.vShow,e.unref(o)==="view"],[x,e.unref(F)]])],64)}}}),Ye=ne._export_sfc(Qe,[["__scopeId","data-v-1c30d678"]]),ue=[{key:"FitCurve_Eleven",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35326658522693",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35326658522693",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35326658522693/outputResources"},{key:"MakeShape",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35018179530309",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35018179530309",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018179530309/outputResources"},{key:"FillEmpty",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35018289382469",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35018289382469",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018289382469/outputResources"},{key:"ToolPathFakeFast",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35484063607109",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35484063607109",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35484063607109/outputResources"},{key:"FiveAxisCalculator",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35237389477957",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35237389477957",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35237389477957/outputResources"},{key:"DetectionAlgorithm",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35459977498949",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35459977498949",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35459977498949/outputResources"},{key:"FeatureSelectionAlgorithm_FFS",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35277984187973",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35277984187973",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35277984187973/outputResources"},{key:"AIParameterOptimization",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35788169784389",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35788169784389"}],de=[{key:"型线生成",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35326658522693/outputResources/sampling_points_20.cpt"},{key:"曲面生成",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018179530309/outputResources/output.obj"},{key:"叶片生成",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018289382469/outputResources/output_TwoSections_completed.obj"},{key:"轨迹规划",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35484063607109/outputResources/complete_data.txt"},{key:"加工规划",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35237389477957/outputResources/NC_BC.NC"},{key:"产品检测",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35459977498949/outputResources/source.pcd,http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35459977498949/outputResources/target.pcd"},{key:"参数筛选训练方法",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35277984187973/outputResources/fitness_iteration.png"}],Ze={class:"structure-buttons"},et={class:"structure-paths"},tt={class:"client-header-user"},ot={class:"model-select"},nt={class:"model-show"},at={class:"model-fill"},lt={class:"client-header-menu"},rt={class:"client-header-user"},it={class:"drop-menu"},st={class:"client-main-operate"},ct={key:0,class:"item-view-group"},ut=e.defineComponent({__name:"index2",props:{windowConfig:{type:Object,default:()=>{}},showButton:{type:Boolean,default:!0}},emits:["showChild","buildContent"],setup(v,{emit:I}){const t=oe.useUnit(a.pinia);e.ref(0),e.ref(!1);const{selectTitle:C}=a.storeToRefs(t),B=e.ref(!1),R=e.ref(!1);e.ref(!1);const o=oe.useTableComp(a.pinia),V=e.ref(!1),{tableShowThree:k}=a.storeToRefs(o),F=Ve.useLoginState(),{loginUserInfo:A}=a.storeToRefs(F);e.ref(null);const J=ce.useModelComp(a.pinia),{isEdit:m}=a.storeToRefs(J),T=a.useMenuState(a.pinia),$=De.useFormComp(a.pinia),{objUrl:E,blobUrls:g}=a.storeToRefs($),d=e.ref(null);e.ref(!1);const b=e.ref(!0);e.ref(!1);const{importLoading:ae,activeMenuPath:U,activeTopMenuPath:W,platName:Z,activeAsideMenu:le}=a.storeToRefs(T),Q=e.ref(!1),p=e.ref(!1),M=e.ref(!1),q=I;e.watch(()=>U.value,async l=>{l&&(M.value=!0),l==="弯管仿真加工管理/仿真动画生成"?Q.value=!0:Q.value=!1,l==="弯管仿真加工管理/程序输出"?p.value=!0:p.value=!1,de!=null&&de.find(i=>{var _;return(i==null?void 0:i.key)===((_=l==null?void 0:l.split("/"))==null?void 0:_[(l==null?void 0:l.split("/").length)-1])})?V.value=!0:V.value=!1},{immediate:!0});const x=l=>{if((l==null?void 0:l.type)==="table"){let i=Object.values(l==null?void 0:l.row),_=i==null?void 0:i.find(h=>typeof h=="string"&&((h==null?void 0:h.includes(".urdf"))||(h==null?void 0:h.includes(".obj"))));_&&q("showChild",{url:_,row:l==null?void 0:l.row})}},y=()=>{sessionStorage.clear(),window.location.reload()},n=async l=>{var h,w,f,r,D,j,u;const i=(h=l==null?void 0:l.split("/"))==null?void 0:h[0],_=await a.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey"),pageKey:i}});return((w=_==null?void 0:_.data)==null?void 0:w.type)==="success"?((u=(j=(D=(r=(f=_==null?void 0:_.data)==null?void 0:f.result)==null?void 0:r[0])==null?void 0:D.value)==null?void 0:j.tableData)==null?void 0:u.隐藏三维显示)!==!0:!0};e.watch(()=>c.showItems.value,()=>{var l,i,_,h,w;if(((l=c.showItems.value)==null?void 0:l.length)===2&&((i=c.showItems.value)!=null&&i.find(f=>(f==null?void 0:f.name)==="输入"))&&((_=c.showItems.value)!=null&&_.find(f=>(f==null?void 0:f.name)==="输出"))){const f=(h=c.showItems.value)==null?void 0:h.find(r=>(r==null?void 0:r.name)==="输出");R.value=((w=f==null?void 0:f.comp)==null?void 0:w.toUpperCase())==="FORM",B.value=!0}else B.value=!1,R.value=!1},{deep:!0,immediate:!0}),e.watch(()=>U.value,async()=>{U.value&&(b.value=await n(U.value))},{deep:!0,immediate:!0}),e.watch(()=>[E.value,d.value],()=>{var l;((l=E.value)==null?void 0:l.length)>0&&d.value&&d.value.addModelsFromUrls(E.value)},{immediate:!0,deep:!0}),e.watch(()=>g==null?void 0:g.value,async()=>{var l,i,_,h;if(g!=null&&g.value&&((l=g==null?void 0:g.value)==null?void 0:l.length)>0&&!V.value&&!((i=c.showItems.value)!=null&&i.find(w=>(w==null?void 0:w.name)==="输入")&&((_=c.showItems.value)!=null&&_.find(w=>(w==null?void 0:w.name)==="输出")))){let w=[];const f=await((h=a.cloneDeep(g==null?void 0:g.value))==null?void 0:h.map(async r=>{var G,ie,S,s,z,H,se,me,he,fe;let D,j;const u=(ie=(G=r==null?void 0:r.blob)==null?void 0:G.split("undefined,"))==null?void 0:ie[1];let L=u==null?void 0:u.split(",");if((L==null?void 0:L.length)>1){let Y=await(L==null?void 0:L.map(async N=>{var X,_e,ve,Ce,ge,we;D=await a.axios.get(N,{responseType:"blob",headers:{"Content-Type":"application/json"}});let ee=[];if(((X=r==null?void 0:r.mtlBlobs)==null?void 0:X.length)>0){let Re=await((_e=r==null?void 0:r.mtlBlobs)==null?void 0:_e.map(async Ee=>{let ye=await a.axios.get(Ee,{responseType:"blob",headers:{"Content-Type":"application/json"}});return ee.push(new Blob([ye.data],{type:"application/octet-stream;charset=UTF-8"})),ye}));await Promise.all(Re)}return((Ce=N==null?void 0:N.split("."))==null?void 0:Ce[((ve=N==null?void 0:N.split("."))==null?void 0:ve.length)-1])!=="undefined"&&w.push({suffix:"."+((we=N==null?void 0:N.split("."))==null?void 0:we[((ge=N==null?void 0:N.split("."))==null?void 0:ge.length)-1]),blob:new Blob([D.data],{type:"application/octet-stream;charset=UTF-8"}),mtlBlobs:ee}),D}));await Promise.all(Y)}else if(!(u!=null&&u.includes("https://"))&&!(u!=null&&u.includes("http://"))){D=await ke.downloadAvatarApi({url:u});let Y=[];if(((S=r==null?void 0:r.mtlBlobs)==null?void 0:S.length)>0){let N=await((s=r==null?void 0:r.mtlBlobs)==null?void 0:s.map(async ee=>{let X=await ke.downloadAvatarApi({url:ee});return Y.push(new Blob([X.data],{type:"application/octet-stream;charset=UTF-8"})),X}));await Promise.all(N)}j={suffix:"."+((H=u==null?void 0:u.split("."))==null?void 0:H[((z=u==null?void 0:u.split("."))==null?void 0:z.length)-1]),blob:new Blob([D.data],{type:"application/octet-stream;charset=UTF-8"}),mtlBlobs:Y}}else{D=await a.axios.get(u,{responseType:"blob",headers:{"Content-Type":"application/json"}});let Y=[];if(((se=r==null?void 0:r.mtlBlobs)==null?void 0:se.length)>0){let N=await((me=r==null?void 0:r.mtlBlobs)==null?void 0:me.map(async ee=>{let X=await a.axios.get(ee,{responseType:"blob",headers:{"Content-Type":"application/json"}});return Y.push(new Blob([X.data],{type:"application/octet-stream;charset=UTF-8"})),X}));await Promise.all(N)}j={suffix:"."+((fe=u==null?void 0:u.split("."))==null?void 0:fe[((he=u==null?void 0:u.split("."))==null?void 0:he.length)-1]),blob:new Blob([D.data],{type:"application/octet-stream;charset=UTF-8"}),mtlBlobs:Y}}j&&w.push(j)}));await Promise.all(f)}},{immediate:!0,deep:!0}),e.watch(()=>k.value,async()=>{var i,_,h,w;if(k.value!==""&&k.value){let f=(i=U.value)==null?void 0:i.split("/"),r=f[(f==null?void 0:f.length)-2];const j=(((_=ue==null?void 0:ue.find(G=>(G==null?void 0:G.key)===r))==null?void 0:_.download)??"")+"/"+k.value,u=sessionStorage.getItem("magicToken")===""?"123456":sessionStorage.getItem("magicToken"),L=await a.axios.post(j,null,{responseType:"blob",headers:{Authorization:u,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}});var l=new Blob([L.data],{type:"application/octet-stream;charset=UTF-8"});""+((w=(h=k.value)==null?void 0:h.split("."))==null?void 0:w[1])}},{deep:!0,immediate:!0});const P=e.ref("");e.ref("open"),e.ref("open"),e.ref(!1),e.computed(()=>c.showItems.value);const O=e.computed(()=>le.value.isRouter),re=e.ref(!1),Te=()=>{re.value=!0,setTimeout(()=>{d.value.loadModelByDefaultPath([{suffix:".urdf"}])},1e3)};return(l,i)=>{const _=e.resolveComponent("el-dialog"),h=e.resolveComponent("el-button"),w=e.resolveComponent("el-avatar"),f=e.resolveComponent("el-header"),r=e.resolveComponent("el-container"),D=e.resolveComponent("el-icon"),j=e.resolveComponent("el-input"),u=e.resolveComponent("el-aside"),L=e.resolveComponent("router-view"),G=e.resolveComponent("el-main"),ie=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(_,{modelValue:re.value,"onUpdate:modelValue":i[0]||(i[0]=S=>re.value=S),style:{height:"700px",width:"1800px"}},{default:e.withCtx(()=>[e.createVNode(be.default,{ref_key:"threeModelRef",ref:d},null,512)]),_:1},8,["modelValue"]),e.withDirectives(e.createVNode(r,{class:"client-container"},{default:e.withCtx(()=>[e.createVNode(f,{class:"client-structure-header"},{default:e.withCtx(()=>{var S;return[e.createElementVNode("div",Ze,[e.createVNode(h,{id:"transparentBgButton",onClick:e.unref(c.onBack)},{default:e.withCtx(()=>i[3]||(i[3]=[e.createTextVNode(" 返回页面 ")])),_:1,__:[3]},8,["onClick"]),e.createVNode(h,{id:"transparentBgButton",onClick:i[1]||(i[1]=s=>{var z,H;return e.unref(c.clickSavePage)((H=(z=e.unref(C))==null?void 0:z.map(se=>se.value))==null?void 0:H.join("/"))})},{icon:e.withCtx(()=>[e.createVNode(te.SvgIcon,{name:"Store"})]),default:e.withCtx(()=>[i[4]||(i[4]=e.createTextVNode(" 保存页面 "))]),_:1,__:[4]})]),e.createElementVNode("div",et,[(e.openBlock(),e.createBlock(Fe,{key:e.unref(C),breadArray:e.unref(C),onClick:e.unref(c.onClick)},null,8,["breadArray","onClick"]))]),e.createElementVNode("div",tt,[e.renderSlot(l.$slots,"default",{},void 0,!0),e.createVNode(w,{size:35,src:(S=e.unref(A))==null?void 0:S.avatarUrl},{default:e.withCtx(()=>{var s;return[e.createTextVNode(e.toDisplayString(((s=e.unref(A))==null?void 0:s.account)??"未知"),1)]}),_:1},8,["src"])])]}),_:3}),e.unref(m)==="edit"?(e.openBlock(),e.createBlock(r,{key:0,class:"model-operate",style:{"margin-top":"10px",height:"0px"}},{default:e.withCtx(()=>[e.createElementVNode("div",ot,[e.createVNode(K.modelSelect)]),e.createElementVNode("div",nt,[e.createVNode(K.modelShow)]),e.createElementVNode("div",at,[e.createVNode(K.modelFill)])]),_:1})):e.createCommentVNode("",!0)]),_:3},512),[[e.vShow,e.unref(m)==="edit"]]),e.withDirectives((e.openBlock(),e.createBlock(r,{class:"client-container","element-loading-text":"正在加载页面数据..."},{default:e.withCtx(()=>[e.createVNode(f,{class:"client-header"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"client-header-logo",onClick:Te},e.toDisplayString(e.unref(Z)===""?"CPMPIP":e.unref(Z)),1),e.createElementVNode("div",lt,[e.createVNode(Se,{mode:"horizontal"})]),e.createElementVNode("div",rt,[e.createVNode(j,{modelValue:P.value,"onUpdate:modelValue":i[2]||(i[2]=S=>P.value=S),clearable:"",placeholder:"搜索",style:{width:"130px"}},{prefix:e.withCtx(()=>[e.createVNode(D,{class:"el-input__icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(a.search_default))]),_:1})]),_:1},8,["modelValue"]),v.showButton?(e.openBlock(),e.createBlock(h,{key:0,id:"transparentBgButton",onClick:e.unref(c.clickGenerateApp)},{icon:e.withCtx(()=>[e.createVNode(te.SvgIcon,{name:"App"})]),default:e.withCtx(()=>[i[5]||(i[5]=e.createTextVNode(" 生成APP "))]),_:1,__:[5]},8,["onClick"])):e.createCommentVNode("",!0),v.showButton&&e.unref(m)==="view"?(e.openBlock(),e.createBlock(h,{key:1,id:"transparentBgButton",onClick:e.unref(c.onSelectFixContent)},{icon:e.withCtx(()=>[e.createVNode(te.SvgIcon,{name:"write"})]),default:e.withCtx(()=>[i[6]||(i[6]=e.createTextVNode(" 修改布局 "))]),_:1,__:[6]},8,["onClick"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"default",{},void 0,!0),e.createVNode(pe.ssDrop,null,{dropTitle:e.withCtx(()=>{var S;return[e.createVNode(xe._sfc_main,{size:"35",avatarUrl:(S=e.unref(A))==null?void 0:S.avatarUrl,showCropper:!1,banClick:!0},{avatarDefault:e.withCtx(()=>{var s;return[e.createTextVNode(e.toDisplayString(((s=e.unref(A))==null?void 0:s.account)??"未知"),1)]}),_:1},8,["avatarUrl"])]}),dropMenu:e.withCtx(()=>[e.createElementVNode("div",it,[e.createVNode(pe._sfc_main,{emptyColor:!0,class:"menu-button",onClickTrigger:y,modelValue:"退出登录",buttonType:""})])]),_:1})])]),_:3}),e.createVNode(r,{class:"client-body"},{default:e.withCtx(()=>[e.createVNode(G,{class:"client-main"},{default:e.withCtx(()=>{var S;return[e.createVNode(u,{class:"client-aside"},{default:e.withCtx(()=>[e.createVNode(Ne.default,{mode:"vertical"})]),_:1}),e.createElementVNode("div",st,[O.value?(e.openBlock(),e.createBlock(L,{key:0})):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList((S=e.unref(a.cloneDeep)(e.unref(c.showItems)))==null?void 0:S.filter(s=>s.comp!=="FormTop"),(s,z)=>{var H;return e.openBlock(),e.createElementBlock("div",{class:"item-view-content",key:z},[((H=s==null?void 0:s.comp)==null?void 0:H.toUpperCase())!=="TABLE"&&s.name?(e.openBlock(),e.createElementBlock("div",ct,e.toDisplayString(s.name),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(c.getComponents)(s.comp)),{compName:s.name,itemData:s==null?void 0:s.compData,childItemData:s==null?void 0:s.itemChildData,key:(s==null?void 0:s.id)??z,onChange:e.unref(c.onChange),index:(s==null?void 0:s.id)??z,onContentChange:e.unref(c.onContentChange),onPageChange:e.unref(c.onPageChange),onRowClick:x},null,40,["compName","itemData","childItemData","onChange","index","onContentChange","onPageChange"]))])}),128))])]}),_:1})]),_:1})]),_:3})),[[e.vShow,e.unref(m)==="view"],[ie,e.unref(ae)]])],64)}}}),dt=ne._export_sfc(ut,[["__scopeId","data-v-32f798d7"]]),pt={class:"system-wrap"},mt={__name:"index",props:{windowConfig:{type:Object,default:()=>{}},platform:{type:String,default:"browser"},showButton:{type:Boolean,default:!0},content:String,jsonContents:Array},emits:["buildContent","showChild"],setup(v,{emit:I}){const t=ce.useModelComp(a.pinia),C=oe.useUnit(a.pinia),B=a.useMenuState();e.ref(!1);const R=e.ref(!0),o=v,V=I,k=m=>{V("showChild",m)},F=e.computed(()=>{switch(o==null?void 0:o.platform){case"browser":return Be.browserThemeConfig;case"client":return Be.clientThemeConfig}}),A=m=>{const T=document.documentElement;m==null||m.forEach($=>{T.style.setProperty($.name,$.value)})};e.watch(()=>o.platform,(m,T)=>{m&&A(F.value)},{immediate:!0});const J=()=>{V("buildContent")};return e.watch(()=>[o==null?void 0:o.content,o==null?void 0:o.jsonContents],async()=>{var $,E,g,d;if((($=o==null?void 0:o.jsonContents)==null?void 0:$.length)>0){t.setOriginalData(o==null?void 0:o.jsonContents);return}if(!(o!=null&&o.content)||((E=o==null?void 0:o.content)==null?void 0:E.length)===0)return;R.value=!0,B.setImportLoading(!0);let m=[],T=[];C.setSelectTitle([]),C.setSelectIndex(""),C.setSelectMenu(""),(d=(g=o==null?void 0:o.content)==null?void 0:g.filter(b=>b!==""))==null||d.forEach(b=>{T.push(c.expandToNewContents(b))}),m=T==null?void 0:T[0],await c.savePageDataAsync(m),await oe.loadingSystemType(),t.setOriginalData(m),B.setImportLoading(!1)},{deep:!0,immediate:!0}),(m,T)=>(e.openBlock(),e.createElementBlock("div",pt,[v.platform==="browser"?(e.openBlock(),e.createBlock(Ye,{key:0,showButton:v.showButton},{default:e.withCtx(()=>[e.renderSlot(m.$slots,"default",{},void 0,!0)]),_:3},8,["showButton"])):(e.openBlock(),e.createBlock(dt,{key:1,windowConfig:v.windowConfig,showButton:v.showButton,onBuildContent:J,onShowChild:k},{default:e.withCtx(()=>[e.renderSlot(m.$slots,"default",{},void 0,!0)]),_:3},8,["windowConfig","showButton"]))]))}},ht=ne._export_sfc(mt,[["__scopeId","data-v-afd1b349"]]),ft={class:"add-model-content"},_t={key:0,class:"model-operate"},vt={class:"model-select"},Ct={class:"model-fill"},gt={key:1,class:"model-view"},wt={__name:"index",props:{mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0},pathContent:{type:String,default:""}},emits:["change","contentChange","buildContent","openThreeBuild"],setup(v,{emit:I}){const t=v,C=I,B=e.ref([]),R=e.ref(0),o=e.ref([]),V=e.ref([]),k=e.ref(0),F=ce.useModelComp(a.pinia),A=a.useMenuState(a.pinia),{itemData:J,originalData:m}=a.storeToRefs(F),{activeMenuPath:T,platform:$}=a.storeToRefs(A),E=e.ref(null),g=e.ref(0),d=e.ref([]);e.ref("");const b=e.ref(0),ae=()=>{C("buildContent")},U=p=>{C("openThreeBuild",p)};e.watch(()=>t==null?void 0:t.pathContent,()=>{(t==null?void 0:t.pathContent)!==""&&F.setSystemPath(t==null?void 0:t.pathContent)},{deep:!0,immediate:!0});const W=p=>{C("contentChange",p)},Z=p=>{var q;const M=(q=a.cloneDeep(p==null?void 0:p.wholeValue))==null?void 0:q.map(x=>{var y;return(x==null?void 0:x.comp)==="Form"&&(x.compData=(y=x.compData)==null?void 0:y.map(n=>((n==null?void 0:n.key)==="formContent"&&(n.contents=Ae.arrayToNumberArray(n==null?void 0:n.contents)),n))),x});C("change",{originalContents:m.value,currentContents:p==null?void 0:p.wholeValue,editContent:p==null?void 0:p.editValue,arrayToContents:M})};e.watch(()=>o.value,()=>{b.value===o.value.length&&o.value.length!==0&&(B.value=o.value)},{deep:!0,immediate:!0});const le=()=>{E.value!==null&&E.value.click()},Q=async p=>{const M=p.target.files;if(!M)return;new FileReader,B.value=[],o.value=[],b.value=M.length;const q=Array.from(M).map(async x=>await new Promise(y=>{const n=new FileReader;n.onload=P=>{try{o.value.push(P.target.result),g.value++}catch(O){console.error("解析失败:",O);return}},n.onerror=()=>y(`读取 ${x.name} 失败`),n.readAsText(x),p.target.value="",E.value=null,R.value++}));await Promise.all(q)};return e.watch(()=>[t==null?void 0:t.content,t==null?void 0:t.jsonContents],async()=>{await oe.loadingSystemType(),B.value=t.content,V.value=t==null?void 0:t.jsonContents},{deep:!0,immediate:!0}),e.watch(()=>g.value,()=>{var p;((p=d.value)==null?void 0:p.length)!==0&&(F.setOriginalData(d.value),F.setItemData(d.value))},{deep:!0,immediate:!0}),(p,M)=>{const q=e.resolveComponent("svg-icon"),x=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",ft,[(t==null?void 0:t.mode)==="edit"?(e.openBlock(),e.createElementBlock("div",_t,[e.createElementVNode("div",vt,[e.createVNode(K.modelSelect)]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:k.value},[e.createVNode(K.modelShow)])),e.createElementVNode("div",Ct,[e.createVNode(K.modelFill)])])):e.createCommentVNode("",!0),(t==null?void 0:t.mode)==="view"?(e.openBlock(),e.createElementBlock("div",gt,[(e.openBlock(),e.createBlock(ht,{showButton:v.showButton,platform:e.unref($),content:B.value,onChange:Z,jsonContents:V.value,onContentChange:W,onBuildContent:ae,key:k.value,onShowChild:U},{default:e.withCtx(()=>{var y;return[((y=t==null?void 0:t.jsonContents)==null?void 0:y.length)===0&&(t!=null&&t.showButton)?(e.openBlock(),e.createBlock(x,{key:0,id:"transparentBgButton",onClick:le},{icon:e.withCtx(()=>[e.createVNode(q,{name:"import"})]),default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock("input",{type:"file",key:R.value,ref_key:"fileInput",ref:E,accept:".txt, .inm, .iml, .imd",onChange:Q,style:{display:"none"},multiple:""},null,32)),M[0]||(M[0]=e.createTextVNode(" 导入模型 "))]),_:1,__:[0]})):e.createCommentVNode("",!0)]}),_:1},8,["showButton","platform","content","jsonContents"]))])):e.createCommentVNode("",!0)])}}},yt=ne._export_sfc(wt,[["__scopeId","data-v-f69cf49c"]]);exports.default=yt;
|
package/dist/index-C3G2rcyE.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("./index-DRXd1T3-.cjs");require("./menu-CQ3_ZXwC.cjs");require("./array-BKzrrmWD.cjs");const C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");require("./index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-B2bfU2M4.cjs");require("./index.vue_vue_type_style_index_0_scoped_f69cf49c_lang-BFaKxxEb.cjs");require("./login-BHMBhU8d.cjs");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BruAa-uD.cjs");require("./threeModel.vue_vue_type_style_index_0_scoped_4a248817_lang-MfXPrK37.cjs");require("vue-router");require("./index-CT9N59g0.cjs");const h={__name:"index",props:{windowConfig:{type:Object,default:()=>{}},pathContent:{type:String,default:""},mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0},nodeDev:{type:String,default:""}},emits:["buildContent","openThreeBuild"],setup(i,{emit:l}){const e=i,d=l,a=()=>{d("buildContent")},s=n=>{d("openThreeBuild",n)},u=()=>{var c;const n=e!=null&&e.windowConfig?(c=e==null?void 0:e.windowConfig)==null?void 0:c.width:window.innerWidth,r=1920,o=16,w=n/r,f=o*w;document.documentElement.style.fontSize=`${f}px`};return t.onMounted(()=>{u(),window.addEventListener("resize",u)}),(n,r)=>{const o=t.resolveComponent("router-view");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(o,{mode:e==null?void 0:e.mode,content:e==null?void 0:e.content,jsonContents:e==null?void 0:e.jsonContents,pathContent:e==null?void 0:e.pathContent,showButton:e==null?void 0:e.showButton,nodeDev:e==null?void 0:e.nodeDev,windowConfig:i.windowConfig,onBuildContent:a,onOpenThreeBuild:s},null,8,["mode","content","jsonContents","pathContent","showButton","nodeDev","windowConfig"])])}}},m=C._export_sfc(h,[["__scopeId","data-v-24c63b2e"]]);exports.default=m;
|
package/dist/index-CT9N59g0.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("vue"),s=require("./menu-CQ3_ZXwC.cjs"),Ae=require("./index-D9ZIJbHw.cjs"),Ia=require("./threeModel.vue_vue_type_style_index_0_scoped_4a248817_lang-MfXPrK37.cjs"),se=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BruAa-uD.cjs"),Le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ba=require("./index-YT4yRM1k.cjs");var Fa="__lodash_hash_undefined__";function Pa(a){return this.__data__.set(a,Fa),this}function xa(a){return this.__data__.has(a)}function Se(a){var l=-1,r=a==null?0:a.length;for(this.__data__=new s.MapCache;++l<r;)this.add(a[l])}Se.prototype.add=Se.prototype.push=Pa;Se.prototype.has=xa;function Va(a,l){for(var r=-1,e=a==null?0:a.length;++r<e;)if(l(a[r],r,a))return!0;return!1}function ba(a,l){return a.has(l)}var Ra=1,Ka=2;function va(a,l,r,e,n,i){var t=r&Ra,d=a.length,u=l.length;if(d!=u&&!(t&&u>d))return!1;var y=i.get(a),f=i.get(l);if(y&&f)return y==l&&f==a;var p=-1,g=!0,C=r&Ka?new Se:void 0;for(i.set(a,l),i.set(l,a);++p<d;){var S=a[p],x=l[p];if(e)var M=t?e(x,S,p,l,a,i):e(S,x,p,a,l,i);if(M!==void 0){if(M)continue;g=!1;break}if(C){if(!Va(l,function(V,R){if(!ba(C,R)&&(S===V||n(S,V,r,e,i)))return C.push(R)})){g=!1;break}}else if(!(S===x||n(S,x,r,e,i))){g=!1;break}}return i.delete(a),i.delete(l),g}function ja(a){var l=-1,r=Array(a.size);return a.forEach(function(e,n){r[++l]=[n,e]}),r}function ma(a){var l=-1,r=Array(a.size);return a.forEach(function(e){r[++l]=e}),r}var $a=1,Ma=2,La="[object Boolean]",qa="[object Date]",Ua="[object Error]",Ja="[object Map]",Ha="[object Number]",Ga="[object RegExp]",Wa="[object Set]",Qa="[object String]",Xa="[object Symbol]",Ya="[object ArrayBuffer]",Za="[object DataView]",fa=s.Symbol?s.Symbol.prototype:void 0,je=fa?fa.valueOf:void 0;function za(a,l,r,e,n,i,t){switch(r){case Za:if(a.byteLength!=l.byteLength||a.byteOffset!=l.byteOffset)return!1;a=a.buffer,l=l.buffer;case Ya:return!(a.byteLength!=l.byteLength||!i(new s.Uint8Array(a),new s.Uint8Array(l)));case La:case qa:case Ha:return s.eq(+a,+l);case Ua:return a.name==l.name&&a.message==l.message;case Ga:case Qa:return a==l+"";case Ja:var d=ja;case Wa:var u=e&$a;if(d||(d=ma),a.size!=l.size&&!u)return!1;var y=t.get(a);if(y)return y==l;e|=Ma,t.set(a,l);var f=va(d(a),d(l),e,n,i,t);return t.delete(a),f;case Xa:if(je)return je.call(a)==je.call(l)}return!1}var el=1,al=Object.prototype,ll=al.hasOwnProperty;function nl(a,l,r,e,n,i){var t=r&el,d=s.getAllKeys(a),u=d.length,y=s.getAllKeys(l),f=y.length;if(u!=f&&!t)return!1;for(var p=u;p--;){var g=d[p];if(!(t?g in l:ll.call(l,g)))return!1}var C=i.get(a),S=i.get(l);if(C&&S)return C==l&&S==a;var x=!0;i.set(a,l),i.set(l,a);for(var M=t;++p<u;){g=d[p];var V=a[g],R=l[g];if(e)var X=t?e(R,V,g,l,a,i):e(V,R,g,a,l,i);if(!(X===void 0?V===R||n(V,R,r,e,i):X)){x=!1;break}M||(M=g=="constructor")}if(x&&!M){var q=a.constructor,_=l.constructor;q!=_&&"constructor"in a&&"constructor"in l&&!(typeof q=="function"&&q instanceof q&&typeof _=="function"&&_ instanceof _)&&(x=!1)}return i.delete(a),i.delete(l),x}var rl=1,da="[object Arguments]",pa="[object Array]",Ve="[object Object]",il=Object.prototype,ya=il.hasOwnProperty;function ol(a,l,r,e,n,i){var t=s.isArray(a),d=s.isArray(l),u=t?pa:s.getTag(a),y=d?pa:s.getTag(l);u=u==da?Ve:u,y=y==da?Ve:y;var f=u==Ve,p=y==Ve,g=u==y;if(g&&s.isBuffer(a)){if(!s.isBuffer(l))return!1;t=!0,f=!1}if(g&&!f)return i||(i=new s.Stack),t||s.isTypedArray(a)?va(a,l,r,e,n,i):za(a,l,u,r,e,n,i);if(!(r&rl)){var C=f&&ya.call(a,"__wrapped__"),S=p&&ya.call(l,"__wrapped__");if(C||S){var x=C?a.value():a,M=S?l.value():l;return i||(i=new s.Stack),n(x,M,r,e,i)}}return g?(i||(i=new s.Stack),nl(a,l,r,e,n,i)):!1}function qe(a,l,r,e,n){return a===l?!0:a==null||l==null||!s.isObjectLike(a)&&!s.isObjectLike(l)?a!==a&&l!==l:ol(a,l,r,e,qe,n)}function Aa(a,l){return qe(a,l)}const tl={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},width:{type:Number,default:200}},setup(a){const l=a,r=o.ref(null),e=o.ref(!1),n=o.ref(null);return o.watch(()=>l==null?void 0:l.isVisible,()=>{e.value=l==null?void 0:l.isVisible},{deep:!0,immediate:!0}),o.watch(()=>n.value,()=>{o.nextTick(()=>{var i,t;(t=(i=r.value)==null?void 0:i.updatePopper)==null||t.call(i)})},{deep:!0,immediate:!0}),(i,t)=>{const d=o.resolveComponent("el-popover");return o.openBlock(),o.createBlock(d,{visible:e.value,placement:"bottom",title:l==null?void 0:l.title,width:l==null?void 0:l.width,ref_key:"popOverRef",ref:r},{reference:o.withCtx(()=>[o.createElementVNode("div",null,[o.renderSlot(i.$slots,"reference",{ref_key:"referenceRef",ref:n})])]),default:o.withCtx(()=>[o.createElementVNode("div",null,[o.renderSlot(i.$slots,"content")])]),_:3},8,["visible","title","width"])}}},sl={class:"extra-button-content"},cl={class:"table-operator-wrap"},ul={key:0,class:"extra-header"},fl=["onClick"],dl={class:"extra-button-filter"},pl={class:"form-content-value"},yl={__name:"header",props:{compName:{type:String,default:"表格名称",required:!1},buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick","filter"],setup(a,{emit:l}){const r=l,e=a,n=o.ref(!1),i=o.ref([]),t=o.ref([{label:"取消"},{label:"确认"}]),d=f=>{r("buttonClick",f)},u=f=>{var p,g;i.value=(g=(p=se.getColumnChild(s.cloneDeep(f)))==null?void 0:p.filter(C=>(C==null?void 0:C.label)!==""&&(C==null?void 0:C.label)!=="操作"))==null?void 0:g.map(C=>({label:(C==null?void 0:C.label)??"",value:"",name:(C==null?void 0:C.label)??"",isFormColHidden:C==null?void 0:C.isTableColHidden}))},y=f=>{(f==null?void 0:f.buttonName)==="确认"&&r("filter",f==null?void 0:f.content),n.value=!1};return o.onMounted(()=>{u(e.columns)}),o.watch(()=>e.columns,()=>{u(e.columns)},{deep:!0,immediate:!0}),(f,p)=>{var C;const g=o.resolveComponent("el-tooltip");return o.openBlock(),o.createElementBlock("div",sl,[o.createElementVNode("div",{class:o.normalizeClass(a.compName?"table-name-wrap":"")},o.toDisplayString(a.compName),3),o.createElementVNode("div",cl,[e!=null&&e.buttons&&((C=e==null?void 0:e.buttons)==null?void 0:C.length)>0?(o.openBlock(),o.createElementBlock("div",ul,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e==null?void 0:e.buttons,(S,x)=>(o.openBlock(),o.createElementBlock("div",{class:"extra-contents",key:x},[o.createElementVNode("div",{class:"extra-content",style:o.normalizeStyle({background:(S==null?void 0:S.background)??"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}),onClick:M=>d(S==null?void 0:S.label)},o.toDisplayString(S==null?void 0:S.label),13,fl)]))),128))])):o.createCommentVNode("",!0),o.createElementVNode("div",dl,[o.createVNode(tl,{title:"筛选数据",width:500,isVisible:n.value},{reference:o.withCtx(()=>[o.createVNode(g,{content:"筛选",placement:"top-start"},{default:o.withCtx(()=>[o.createElementVNode("div",{class:"button-style",onClick:p[0]||(p[0]=S=>n.value=!n.value)},[o.createVNode(o.unref(s.filter_default),{color:"var(--ssComponent-black)"})])]),_:1})]),content:o.withCtx(()=>[o.createElementVNode("div",pl,[(o.openBlock(),o.createBlock(Ae.ssForm,{rowContents:i.value,buttonValue:t.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:t.value,isStartJustify:!1,onOnButtonClick:y},null,8,["rowContents","buttonValue"]))])]),_:1},8,["isVisible"])])])])}}},gl=Le._export_sfc(yl,[["__scopeId","data-v-a3b05d95"]]),Da=s.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(a){this.selectArray=a},setSelectString(a){this.selectString=a}}}),hl={class:"calculator-content"},bl={class:"calculator-child"},vl={class:"calculator-child"},ml=o.defineComponent({__name:"calculator",setup(a){const l=o.ref(),r=o.ref();return o.onMounted(()=>{l.value=[{type:"Upload",label:"输入",name:"input"}],r.value=[{type:"Upload",label:"输出",name:"output"}]}),(e,n)=>(o.openBlock(),o.createElementBlock("div",hl,[o.createElementVNode("div",bl,[o.createVNode(Ae.ssForm,{rowContents:l.value,isRowFlex:!0},null,8,["rowContents"])]),o.createElementVNode("div",vl,[o.createVNode(Ae.ssForm,{rowContents:r.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),Al=Le._export_sfc(ml,[["__scopeId","data-v-73db0fe7"]]),Ta=s.defineStore("unit",{state:()=>({selectIndex:"",selectMenu:"",selectTitle:[]}),actions:{setSelectIndex(a){this.selectIndex=a},setSelectMenu(a){this.selectMenu=a},setSelectTitle(a){this.selectTitle=a}}}),ka=(a,l)=>{let r=a,e=l;return Array.isArray(r)&&(r=r==null?void 0:r.map((n,i)=>{if(Array.isArray(n)){let t={};return n=n==null?void 0:n.forEach((d,u)=>{var y;(y=e==null?void 0:e[u])!=null&&y.prop?t[e[u].prop]=d:Array.isArray(d)&&(t.children=ka(d,e))}),Object.assign(t,{id:i})}else return n})),r},Ca=(a,l,r)=>{let e=a,n=l;return e=e==null?void 0:e.map((i,t)=>{var d,u;return!Array.isArray(i)||!((d=n==null?void 0:n[t])!=null&&d.label)&&!r||(i.unshift(((u=n==null?void 0:n[t])==null?void 0:u.label)??""),i.some(y=>Array.isArray(y))&&(i=i==null?void 0:i.map(y=>{var f;return Array.isArray(y)&&(y=Ca(y,(f=n==null?void 0:n[t])==null?void 0:f.children,r)),y}))),i}),e},Dl=(a,l,r)=>{if(l==="")return a==null?void 0:a.filter(e=>(e==null?void 0:e.id)!==r);{const e=l.split("-");return Tl(a,e,r)}},Tl=(a,l,r)=>{let e=a,n=l;return(n==null?void 0:n.length)===0?e=e==null?void 0:e.filter(i=>i.id!==r):e=e==null?void 0:e.map(i=>(i.id.toString()===(n==null?void 0:n[0])&&(n==null||n.shift(),i=_a(i,n,r)),i)),e},_a=(a,l,r)=>{var i,t;let e=a,n=l;return(n==null?void 0:n.length)===0?e.children=(i=e.children)==null?void 0:i.filter(d=>d.id!==r):e.children=(t=e.children)==null?void 0:t.map(d=>(d.id.toString()===(n==null?void 0:n[0])&&(n==null||n.shift(),d=_a(d,n,r)),d)),e},kl=(a,l,r)=>{if(l==="")return r;{const e=l.split("-");return Cl(a,e,r)}},Cl=(a,l,r)=>{let e=a,n=l;return(n==null?void 0:n.length)===0?e=r:e=e==null?void 0:e.map(i=>(i.id.toString()===(n==null?void 0:n[0])&&(n==null||n.shift(),i=wa(i,n,r)),i)),e},wa=(a,l,r)=>{var i;let e=a,n=l;return(n==null?void 0:n.length)===0?e.children=r:e.children=(i=e.children)==null?void 0:i.map(t=>(t.id.toString()===(n==null?void 0:n[0])&&(n==null||n.shift(),t=wa(t,n,r)),t)),e},Re=(a,l)=>a==null?void 0:a.map(e=>{var n,i,t,d,u,y;if(Array.isArray(e)?e=e:e=[e],(n=e==null?void 0:e.filter(f=>!(f!=null&&f.id)||typeof(f==null?void 0:f.id)=="string"))!=null&&n.every(f=>typeof f!="object"||f===null))return e;if((i=e==null?void 0:e.filter(f=>!(f!=null&&f.id)||typeof(f==null?void 0:f.id)=="string"))!=null&&i.some(f=>Array.isArray(f)))return e;{let f=[];if(f.push(e==null?void 0:e.find(p=>(p==null?void 0:p.id)&&typeof(p==null?void 0:p.id)=="number")),Array.isArray(l==null?void 0:l[0])){const p=(t=e==null?void 0:e.filter(g=>!(g!=null&&g.id)||typeof(g==null?void 0:g.id)=="string"))==null?void 0:t[0];(d=se.getColumnChild(s.cloneDeep(l==null?void 0:l[0])))==null||d.forEach(g=>{f.push(p==null?void 0:p[(g==null?void 0:g.prop)??(g==null?void 0:g.label)??g])})}else{const p=(u=e==null?void 0:e.filter(g=>!(g!=null&&g.id)||typeof(g==null?void 0:g.id)=="string"))==null?void 0:u[0];(y=se.getColumnChild(s.cloneDeep(l)))==null||y.forEach(g=>{f.push(p==null?void 0:p[(g==null?void 0:g.prop)??(g==null?void 0:g.label)??g])})}return f}}),_l=a=>{try{return JSON.parse(a),!0}catch{return!1}},ga=(a,l)=>Aa(a,l),_e=a=>{let l=[];function r(n){Array.isArray(n)&&(n==null||n.forEach(i=>{Array.isArray(i)||(i=[i]),i==null||i.forEach(t=>{!(t!=null&&t.children)||t.children.length===0?l.push(t.label):e(t.children)})}))}function e(n){n==null||n.forEach(i=>{!(i!=null&&i.children)||i.children.length===0?l.push(i.label):e(i.children)})}return r(a),l},wl=(a,l,r)=>{var n;let e=(n=s.cloneDeep(a))==null?void 0:n.map(i=>(i=i.filter(t=>!(t!=null&&t.id)),i));return e=e==null?void 0:e.map(i=>{var t;return i=(t=i.map((d,u)=>{let y={};if(r!=null&&r.find(f=>f===l[u]))return y[l[u]]=d,y}))==null?void 0:t.filter(d=>d),i}),e},El=(a,l)=>{var t,d;const r=s.cloneDeep(a),e=(t=r==null?void 0:r.find(u=>(u==null?void 0:u.key)==="header"))==null?void 0:t.contents,n=(d=r==null?void 0:r.find(u=>(u==null?void 0:u.key)==="tableContents"))==null?void 0:d.contents;return wl(n,_e(e).slice(0,_e(e).length-1),l)},Ol=a=>{let l={};return a==null||a.forEach(r=>{l[r.key]=r.value}),l},Sl=a=>{var r;let l=[];return(r=s.cloneDeep(a))==null||r.forEach(e=>{let n={};e==null||e.forEach(i=>{n[Object.keys(i)[0]]=Object.values(i)[0]}),l.push(n)}),l},Nl=(a,l)=>{if(l!=null&&l[a])return l==null?void 0:l[a]},Il=async a=>{var t,d,u;if(!(a!=null&&a.extra))return;let l=(t=a==null?void 0:a.extra)==null?void 0:t.tableId,r=a==null?void 0:a.contents;const n=(u=(await s.getInsofDataApi({key:{type:"data",pageKey:(d=a==null?void 0:a.extra)==null?void 0:d.pageKey,tableId:l,systemKey:sessionStorage.getItem("systemKey")}})).data.result)==null?void 0:u.map(y=>y==null?void 0:y.id);n&&(n==null?void 0:n.length)>0&&await s.batchDeleteInsofDataApi({ids:n});let i=[];r==null||r.forEach(y=>{var p,g;let f={};(p=Object.keys(y))==null||p.forEach(C=>{f[C.toUpperCase()]=y[C.toLowerCase()]}),i.push({key:{type:"data",pageKey:(g=a==null?void 0:a.extra)==null?void 0:g.pageKey,tableId:l,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:f}})}),await s.batchAddInsofDataApi({dataList:i})},Bl=(a,l)=>{var i;let r=s.cloneDeep(a),e=!1,n=Object.keys(l);return(i=r.compData)==null||i.forEach(t=>{var d;Array.isArray(t==null?void 0:t.contents)&&((d=t==null?void 0:t.contents)==null||d.forEach(u=>{e=n.includes(u.key)}))}),e},Fl=(a,l)=>{var n;let r=s.cloneDeep(a);return Bl(s.cloneDeep(r),l)&&(r.compData=(n=r.compData)==null?void 0:n.map(i=>{var t;return(i==null?void 0:i.key)==="formContent"&&(i.contents=(t=i==null?void 0:i.contents)==null?void 0:t.map(d=>(Object.keys(l).includes(d.key)&&(d.value=l[d.key]),d))),i})),r},Pl=a=>{let l=s.cloneDeep(a);return l==null||l.forEach(r=>{let e={};for(let n in r)e[n.toUpperCase()]=r[n]}),l},xl=async a=>{var t,d,u,y,f;let l=(d=(t=a==null?void 0:a[0])==null?void 0:t.find(p=>p==null?void 0:p.id))==null?void 0:d.id;const r=await s.getInsofDataApi({id:l});let e=await((f=(y=(u=r==null?void 0:r.data)==null?void 0:u.result)==null?void 0:y[0])==null?void 0:f.key),n=e==null?void 0:e.pageKey,i=e==null?void 0:e.tableId;return{pageKey:n,tableId:i}},Vl=async a=>{let l={comp:a==null?void 0:a.comp,compData:a==null?void 0:a.compData,name:a==null?void 0:a.name};await s.updateInsofDataApi({id:a==null?void 0:a.id,value:{pageData:l}})},Rl=async a=>{let l=a==null?void 0:a.map(async r=>{var n;let e;return(r==null?void 0:r.comp)==="Form"?e=await Vl(r):(r==null?void 0:r.comp)==="Table"&&(e=await Il((n=r==null?void 0:r.compData)==null?void 0:n.find(i=>(i==null?void 0:i.key)==="tableContents"))),e});await Promise.all(l)},Kl=a=>{var n,i,t,d;const l=a;let r=[];l.compData=(n=l.compData)==null?void 0:n.filter(u=>(u==null?void 0:u.key)!=="tableContents"&&(u==null?void 0:u.key)!=="tableIndex");const e=(t=(i=s.cloneDeep(l.compData))==null?void 0:i.find(u=>(u==null?void 0:u.key)==="tableIndexColumn"))==null?void 0:t.contents;return(d=s.cloneDeep(l.compData))==null||d.forEach(u=>{if((u==null?void 0:u.key)!=="tableIndexColumn"&&(u==null?void 0:u.key)!=="header")r.push(u);else if((u==null?void 0:u.key)==="header"){let y=u.contents;e&&(y!=null&&y.every(f=>Array.isArray(f))?y==null||y[0].unshift({label:e}):y.unshift({label:e})),r.push({key:"header",contents:y})}}),l.compData=r,l},jl=a=>{var i,t,d,u,y;const l=(i=a.compData)==null?void 0:i.filter(f=>(f==null?void 0:f.key)==="tableContents"||(f==null?void 0:f.key)==="tableIndex"),r=(d=(t=l==null?void 0:l.find(f=>(f==null?void 0:f.key)==="tableIndex"))==null?void 0:t.contents)==null?void 0:d.map(f=>f.label),e=(u=l==null?void 0:l.find(f=>(f==null?void 0:f.key)==="tableContents"))==null?void 0:u.contents;let n=[];return(r==null?void 0:r.length)>0&&(e!=null&&e.every(f=>Array.isArray(f)))?n=r==null?void 0:r.map((f,p)=>e[p]?[f,...e[p]]:[f]):Array.isArray(e==null?void 0:e[0])&&((y=e==null?void 0:e[0])!=null&&y.every(f=>Array.isArray(f)))?n=e==null?void 0:e[0]:Array.isArray(e==null?void 0:e[0])?n=e:n.push(e),n},$l=a=>{const l=[];function r(e){!e||e.length===0||(l.push(e==null?void 0:e.map(n=>({label:n.label}))),e==null||e.forEach(n=>{n!=null&&n.children&&(n==null?void 0:n.children.length)>0&&r(n==null?void 0:n.children)}))}return r(a),l},Ml=a=>{const l=[];function r(e,n=[]){!e||e.length===0||(l.push({key:n==null?void 0:n.filter(i=>!Array.isArray(i)),value:e}),e==null||e.forEach(i=>{i!=null&&i.some(t=>Array.isArray(t))&&r(i.find(t=>Array.isArray(t)),i)}))}return r(a),l},Ll=a=>{const l=[];function r(e){!e||e.length===0||(l.push(e==null?void 0:e.map(n=>n==null?void 0:n.filter(i=>!Array.isArray(i)))),e==null||e.forEach(n=>{n!=null&&n.some(i=>Array.isArray(i))&&r(n.find(i=>Array.isArray(i)))}))}return r(a),l},ql=a=>{const l=[];function r(e){var n;!e||e.length===0||(e!=null&&e.every(i=>!Array.isArray(i))?l.push(e):(l.push((n=e==null?void 0:e.map(i=>i==null?void 0:i.filter(t=>!Array.isArray(t))))==null?void 0:n[0]),e==null||e.forEach(i=>{i!=null&&i.some(t=>Array.isArray(t))&&r(i.find(t=>Array.isArray(t)))})))}return r(a),l},Ul=(a,l)=>{let r;function e(n,i,t=1){var u;if(!n||n.length===0)return;const d=(u=s.cloneDeep(i))==null?void 0:u.map(y=>y==null?void 0:y.filter(f=>!Array.isArray(f)));return d!=null&&d.find(y=>ga(y,n==null?void 0:n.key))?(i==null||i.forEach(y=>{!e(n,y.find(p=>Array.isArray(p)))&&ga(y.filter(p=>!Array.isArray(p)),n==null?void 0:n.key)&&(r={type:t,contents:y.filter(p=>!Array.isArray(p))})}),!0):!1}return e(a,l,0),r},ha=(a,l)=>{function r(e,n){return!e||e.length===0||e==null?void 0:e.map((t,d)=>{var y,f;let u=t;return u.unshift((y=n==null?void 0:n[d])==null?void 0:y.label),u.some(p=>Array.isArray(p))&&(u[u.length-1]=r(u.find(p=>Array.isArray(p)),(f=n==null?void 0:n[d])==null?void 0:f.children)),u})}return r(a,l)},Jl=a=>{var r,e,n,i,t,d,u,y,f,p,g,C,S,x,M,V,R,X,q,_,K,G,P,j,L;const l=a;if((a==null?void 0:a.comp)==="Table"){if((n=(e=(r=a.compData)==null?void 0:r.find(O=>(O==null?void 0:O.key)==="tableIndex"))==null?void 0:e.contents)!=null&&n.every(O=>!(O!=null&&O.children))||!((i=a.compData)!=null&&i.find(O=>(O==null?void 0:O.key)==="tableIndex")))return((u=(d=(t=l.compData)==null?void 0:t.find(O=>(O==null?void 0:O.key)==="tableContents"))==null?void 0:d.contents)==null?void 0:u.length)===1&&((g=(p=(f=(y=l.compData)==null?void 0:y.find(O=>(O==null?void 0:O.key)==="tableContents"))==null?void 0:f.contents)==null?void 0:p[0])!=null&&g.every(O=>Array.isArray(O)))?(l.compData=(C=l.compData)==null?void 0:C.map(O=>{var $;return(O==null?void 0:O.key)==="tableContents"&&(O.contents=($=O.contents)==null?void 0:$[0]),O}),[l]):[l];{let O=[];const $=l.compData,oe=(S=s.cloneDeep($))==null?void 0:S.find(F=>(F==null?void 0:F.key)==="tableIndexColumn"),ce=(x=s.cloneDeep($))==null?void 0:x.find(F=>(F==null?void 0:F.key)==="extraButton"),I=(M=s.cloneDeep($))==null?void 0:M.find(F=>(F==null?void 0:F.key)==="rowButton"),ee=ql((R=(V=s.cloneDeep($))==null?void 0:V.find(F=>(F==null?void 0:F.key)==="header"))==null?void 0:R.contents),W=(X=s.cloneDeep($))==null?void 0:X.find(F=>(F==null?void 0:F.key)==="tableIndex"),he=Ll((_=(q=s.cloneDeep($))==null?void 0:q.find(F=>(F==null?void 0:F.key)==="tableContents"))==null?void 0:_.contents),ae=ha((G=(K=s.cloneDeep($))==null?void 0:K.find(F=>(F==null?void 0:F.key)==="tableContents"))==null?void 0:G.contents,W==null?void 0:W.contents),we=Ml(ha((j=(P=s.cloneDeep($))==null?void 0:P.find(F=>(F==null?void 0:F.key)==="tableContents"))==null?void 0:j.contents,W==null?void 0:W.contents));if(W)return(L=$l(W.contents))==null||L.forEach((F,pe)=>{var De;let te=[];te.push({key:"tableIndex",contents:F}),te.push(oe),te.push(ce),te.push(I),te.push({key:"tableContents",contents:he[pe]}),te.push({key:"header",contents:ee!=null&&ee[pe]?[ee==null?void 0:ee[pe]]:[ee==null?void 0:ee[0]]}),O.push({comp:"Table",compData:te,name:"",parentTableContents:((De=Ul(we[pe],ae))==null?void 0:De.contents)??""})}),O}}else return[l]},Ne=(a,l)=>{let r={};return Array.isArray(a)?a==null||a.forEach((e,n)=>{l!=null&&l[n]&&(r[l[n]]=e)}):[a].forEach((e,n)=>{r[l[n]]=e}),r},Hl=a=>{var r,e;let l="";return(e=(r=s.cloneDeep(a))==null?void 0:r.split("/"))==null||e.forEach((n,i)=>{var t,d;i<((d=(t=s.cloneDeep(a))==null?void 0:t.split("/"))==null?void 0:d.length)-1&&(l=l===""?l+n:l+"/"+n)}),l},$e=s.useMenuState(s.pinia),{activeMenuPath:Gl}=s.storeToRefs($e),Wl=async(a,l)=>{var y,f,p,g,C,S,x,M,V,R,X,q,_,K,G,P;const r=(f=(y=a==null?void 0:a.find(j=>(j==null?void 0:j.key)==="header"))==null?void 0:y.contents)==null?void 0:f.find(j=>j==null?void 0:j.columnPath);let e=(g=(p=s.cloneDeep(r==null?void 0:r.columnPath))==null?void 0:p.split("["))==null?void 0:g[0],n=(V=(M=(x=(S=(C=s.cloneDeep(r==null?void 0:r.columnPath))==null?void 0:C.split("["))==null?void 0:S[1])==null?void 0:x.split("]"))==null?void 0:M[0])==null?void 0:V.replaceAll("'",""),i=[];const t=await s.getInsofDataApi({key:{pageKey:e,systemKey:sessionStorage.getItem("systemKey"),type:"structure"}}),d=await s.getInsofDataApi({key:{pageKey:Gl.value,systemKey:sessionStorage.getItem("systemKey"),tableId:parseInt(l),type:"data"}}),u=[];if((X=(R=d==null?void 0:d.data)==null?void 0:R.result)==null||X.forEach(j=>{u.push([{id:j==null?void 0:j.id},j.value.tableData])}),Array.isArray((q=t==null?void 0:t.data)==null?void 0:q.result)&&((K=(_=t==null?void 0:t.data)==null?void 0:_.result)==null?void 0:K.length)>0){const j=await((P=(G=t==null?void 0:t.data)==null?void 0:G.result)==null?void 0:P.map(async L=>{var O,$,oe,ce,I,ee,W,he,ae,we,F,pe,te,De,Ie;if((($=(O=L==null?void 0:L.value)==null?void 0:O.pageData)==null?void 0:$.name)===n){i=s.cloneDeep((ce=(oe=L==null?void 0:L.value)==null?void 0:oe.pageData)==null?void 0:ce.compData);const Ee=await s.getInsofDataApi({key:{pageKey:e,systemKey:sessionStorage.getItem("systemKey"),tableId:L==null?void 0:L.id,type:"data"}}),Be=(ee=(I=Ee==null?void 0:Ee.data)==null?void 0:I.result)==null?void 0:ee.map(Q=>{var Te;let be=[];return be.push({id:Q==null?void 0:Q.id}),be.push((Te=Q==null?void 0:Q.value)==null?void 0:Te.tableData),be});let Fe=Re(u,(we=(ae=(he=(W=L==null?void 0:L.value)==null?void 0:W.pageData)==null?void 0:he.compData)==null?void 0:ae.find(Q=>(Q==null?void 0:Q.key)==="header"))==null?void 0:we.contents),Pe=!1;Pe=((F=s.cloneDeep(Fe))==null?void 0:F.map(Q=>Q.slice(1))).every(Q=>Q.every(be=>be===void 0)),Pe?i.push({key:"tableContents",contents:Re(Be,(Ie=(De=(te=(pe=L==null?void 0:L.value)==null?void 0:pe.pageData)==null?void 0:te.compData)==null?void 0:De.find(Q=>(Q==null?void 0:Q.key)==="header"))==null?void 0:Ie.contents)}):i.push({key:"tableContents",contents:Fe})}}));await Promise.all(j)}return i},Me=async(a,l,r="",e,n=!1,i)=>{var S,x,M,V,R,X,q;let t;if(!n)t=await s.getInsofDataApi({key:{pageKey:a,systemKey:l,parentTable:r}});else{let _=i==null?void 0:i.map(G=>{if(G)return s.getInsofDataApi({id:G})});const K=await Promise.all(_);t={data:{result:K==null?void 0:K.map(G=>{var P,j;return(j=(P=G==null?void 0:G.data)==null?void 0:P.result)==null?void 0:j[0]})}}}const d=await s.getInsofDataApi({key:{pageKey:a,systemKey:l,type:"structureMethod"}}),u=(x=(S=t==null?void 0:t.data)==null?void 0:S.result)==null?void 0:x.map(_=>_.id);if(!u)return;const y=u==null?void 0:u.map(_=>s.getInsofDataApi({key:{pageKey:a,systemKey:l,type:"data",tableId:_}})),f=await Promise.all(y);console.log("tableContents:",f);const p=[];f==null||f.forEach(_=>{var P,j,L,O;const K=(P=_.data.result)==null?void 0:P.map($=>{const oe=Array.isArray($.value.tableData)?$.value.tableData:[$.value.tableData];return oe.unshift({id:$.id}),oe}),G=(O=(L=(j=_.data.result)==null?void 0:j[0])==null?void 0:L.key)==null?void 0:O.tableId;p.push({key:G,contents:K})});let g=[];const C=await((M=t.data.result)==null?void 0:M.map(async _=>{var j,L,O,$,oe,ce;const K=_.value.pageData,G=_==null?void 0:_.id;let P=(j=s.cloneDeep(K.compData))==null?void 0:j.filter(I=>(I==null?void 0:I.key)!=="tableContents");if(P&&(P!=null&&P.find(I=>(I==null?void 0:I.key)==="header"))&&((O=(L=P==null?void 0:P.find(I=>(I==null?void 0:I.key)==="header"))==null?void 0:L.contents)!=null&&O.every(I=>!(I!=null&&I.columnPath)))?P.push({key:"tableContents",contents:Re(($=p==null?void 0:p.find(I=>(I==null?void 0:I.key)===_.id))==null?void 0:$.contents,(oe=P==null?void 0:P.find(I=>(I==null?void 0:I.key)==="header"))==null?void 0:oe.contents)}):P&&(P!=null&&P.find(I=>(I==null?void 0:I.key)==="header"))&&(P=await Wl(s.cloneDeep(P),G)),K.compData=P,K.id=_.id,((ce=_.key)==null?void 0:ce.type)!=="method")g.push(K);else{let I;I={name:"",compData:[K],comp:"calculator"},g.push(I)}}));return await Promise.all(C),((R=(V=d.data.result)==null?void 0:V.map(_=>_.value.pageData))==null?void 0:R.filter(_=>Object.values(_).length>0).length)>0&&g.push({comp:"methodButton",name:"",compData:(q=(X=d.data.result)==null?void 0:X.map(_=>_.value.pageData))==null?void 0:q.filter(_=>Object.values(_).length>0)}),g=g.sort((_,K)=>_.id-K.id),g},Ql=async a=>{await s.deleteInsofDataApi({id:a})},Xl=async(a,l,r,e,n,i,t)=>{var u,y,f,p,g,C,S,x,M,V,R,X,q;const d=((y=(u=t==null?void 0:t.content)==null?void 0:u[0])==null?void 0:y.id)??"";if(d!==""&&((f=t==null?void 0:t.content)==null?void 0:f.length)>1){const _=await s.getInsofDataApi({id:d});let K=((S=(C=(g=(p=_==null?void 0:_.data)==null?void 0:p.result)==null?void 0:g[0])==null?void 0:C.key)==null?void 0:S.tableId)??"",G=((R=(V=(M=(x=_==null?void 0:_.data)==null?void 0:x.result)==null?void 0:M[0])==null?void 0:V.key)==null?void 0:R.pageKey)??"";await s.createInsofDataApi({key:{type:a,pageKey:G,tableId:K,systemKey:e},value:{tableData:Ne(n,(X=_e(i))==null?void 0:X.filter(P=>P!=="操作"))}})}else await s.createInsofDataApi({key:{type:a,pageKey:l,tableId:r,systemKey:e},value:{tableData:Ne(n,(q=_e(i))==null?void 0:q.filter(_=>_!=="操作"))}})},Yl=async(a,l,r,e,n,i,t)=>{var f,p,g,C,S,x,M,V,R,X;const d=await s.getInsofDataApi({id:e});let u=((C=(g=(p=(f=d==null?void 0:d.data)==null?void 0:f.result)==null?void 0:p[0])==null?void 0:g.key)==null?void 0:C.tableId)??"",y=((V=(M=(x=(S=d==null?void 0:d.data)==null?void 0:S.result)==null?void 0:x[0])==null?void 0:M.key)==null?void 0:V.pageKey)??"";u&&u!==""?await s.updateInsofDataApi({key:{type:a,pageKey:y,tableId:u,systemKey:n},value:{tableData:Ne(i,(R=_e(t))==null?void 0:R.filter(q=>q!=="操作"))},id:e}):await s.updateInsofDataApi({key:{type:a,pageKey:l,tableId:r,systemKey:n},value:{tableData:Ne(i,(X=_e(t))==null?void 0:X.filter(q=>q!=="操作"))},id:e})},Zl=async(a,l)=>{await s.updateInsofDataApi({value:{pageData:l},id:a})},zl=async(a,l)=>await s.getInsofDataApi({key:a,valueLikes:l}),en=async()=>{var a,l,r,e,n,i,t,d,u;try{const y=await s.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),layer:"superAdmin"}});((a=y==null?void 0:y.data)==null?void 0:a.code)===200&&($e.setPlatform(((n=(e=(r=(l=y==null?void 0:y.data)==null?void 0:l.result)==null?void 0:r[0])==null?void 0:e.key)==null?void 0:n.systemType)==="制造系统"?"client":"browser"),$e.setPlatName(((u=(d=(t=(i=y==null?void 0:y.data)==null?void 0:i.result)==null?void 0:t[0])==null?void 0:d.key)==null?void 0:u.name)??""))}catch(y){return Promise.reject(y)}},Ea=s.defineStore("modelTableComp",{state:()=>({tableIndex:0,tableShowThree:""}),actions:{setTableIndex(a){this.tableIndex=a},setTableShowThree(a){this.tableShowThree=a}}}),an={class:"table-content"},ln=["onClick"],nn={class:"form-content"},rn={key:0,class:"dialog-footer"},on={class:"dialog-footer"},tn={__name:"index",props:{compName:{type:String,default:"",required:!1},operatingForm:{type:Object,default:()=>{}},itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},emits:["change","contentChange","onButtonClick","contentClick","pageChange","rowClick"],setup(a,{emit:l}){const r=a,e=l,n=o.ref([]),i=o.ref(!1),t=o.ref(),d=s.useMenuState(),{activeMenuPath:u}=s.storeToRefs(d),y=Ea(s.pinia),f=Ia.useModelComp(s.pinia),{extraContents:p}=s.storeToRefs(f),g=o.ref([]);o.ref(!1);const C=o.ref("");o.ref();const S=o.ref(!0),x=o.ref(0),M=o.ref(!1),V=o.ref(""),R=o.ref(!1),X=o.ref({label:"查看三维模型"}),q=o.ref(!1),_=o.ref(),K=o.ref([]),G=o.ref([]),P=o.ref(!1),j=o.ref([]),L=o.ref([]),O=o.ref(),$=o.ref(),oe=Da(s.pinia),ce=o.ref(),I=Ta(s.pinia),{selectIndex:ee,selectMenu:W,selectTitle:he}=s.storeToRefs(I),{selectString:ae}=s.storeToRefs(oe),we=o.ref(720),F=()=>{R.value=!1},pe=c=>{e("clickTrigger",c)},te=(c,m)=>{if(Object.values(m).length!==0)return Object.values(m).find(A=>{var B,D,h;return((B=A==null?void 0:A.toString())==null?void 0:B.includes(".txt"))||((D=A==null?void 0:A.toString())==null?void 0:D.includes(".cpt"))||((h=A==null?void 0:A.toString())==null?void 0:h.includes(".obj"))})?[...c,X.value]:c},De=c=>{var D;ae.value===""?c==null||c[0]:(c==null?void 0:c.find(h=>(h==null?void 0:h.selectLabel)==="("+ae.value+")"))??(c==null||c.find(h=>!(h!=null&&h.selectLabel)));let m=c;(D=n.value)!=null&&D.find(h=>h.prop==="index");let A=O.value;const B=[];return m==null||m.forEach((h,E)=>{var U;let T={};if(Array.isArray(h)){let N=[];h==null||h.filter(b=>!(b!=null&&b.id)).forEach((b,J)=>{var Y,H,re,ve,ye;if((Y=A==null?void 0:A[J])!=null&&Y.prop&&!Array.isArray(b)){let ue={};ue[A[J].column]=b,p!=null&&p.value&&((H=p==null?void 0:p.value)==null?void 0:H.length)>0&&((re=p==null?void 0:p.value)!=null&&re.find(le=>JSON.stringify(le==null?void 0:le[0])===JSON.stringify(ue)))&&(N=(ve=p==null?void 0:p.value)==null?void 0:ve.find(le=>JSON.stringify(le==null?void 0:le[0])===JSON.stringify(ue))),N&&N.length>0?T[A[J].prop]=N!=null&&N.find(le=>{var me;return((me=Object.keys(le))==null?void 0:me[0])===A[J].column})?(ye=N==null?void 0:N.find(le=>{var me;return((me=Object.keys(le))==null?void 0:me[0])===A[J].column}))==null?void 0:ye[A[J].column]:b:T[A[J].prop]=b}})}else T=h;Array.isArray(h)&&h.some(N=>N==null?void 0:N.id)?B.push(Object.assign(T,{id:(U=h==null?void 0:h.find(N=>N.id))==null?void 0:U.id})):T.id?B.push(T):B.push(Object.assign(T,{id:E}))}),B},Ie=async c=>{var D,h,E,T,U;let m={};for(let N in c)c[N]!==""&&(m["tableData."+N]=c[N]);const A=await zl({type:"data",tableId:r==null?void 0:r.index,systemKey:sessionStorage.getItem("systemKey"),pageKey:u.value},m),B=(E=(h=(D=s.cloneDeep(A))==null?void 0:D.data)==null?void 0:h.result)==null?void 0:E.map(N=>{var J;let b=[];return b.push({id:N.id}),b.push((J=N==null?void 0:N.value)==null?void 0:J.tableData),b});g.value=De(Re(B,(U=(T=s.cloneDeep(n.value))==null?void 0:T.map(N=>N.label))==null?void 0:U.filter(N=>N!=="操作")))},Ee=async c=>{var B,D,h,E,T,U,N,b,J,Y;const m=(B=s.cloneDeep(n.value))==null?void 0:B.filter(H=>H==null?void 0:H.isRoute);if((m==null?void 0:m.length)>0){let H=(D=m==null?void 0:m[0])==null?void 0:D.prop,re=u.value+"/"+(c==null?void 0:c[H]),ve=u.value,ye=await Me(re,sessionStorage.getItem("systemKey"),"");if((ye==null?void 0:ye.length)>0)f.setRouteToChildPath(ve),d.setActiveMenuPath(re);else{const ue=await se.findFirstContent(r==null?void 0:r.index);ue&&(re=u.value+"/"+(ue==null?void 0:ue[(h=m==null?void 0:m[0])==null?void 0:h.label]),await se.loadingConstruct(re,u.value+"/"+(c==null?void 0:c[H])),f.setRouteToChildPath(ve),d.setActiveMenuPath(u.value+"/"+(c==null?void 0:c[H])))}}let A=await Me(u.value,sessionStorage.getItem("systemKey"),c.id);if(A=A==null?void 0:A.filter(H=>H.comp!=="methodButton"),A&&A.length>0){const H=!Array.isArray(he.value)&&((E=he.value)==null?void 0:E.key)!=="main"?[]:he.value;H.push({key:W.value===""?(T=c==null?void 0:c.id)==null?void 0:T.toString():W.value+"-"+((U=c==null?void 0:c.id)==null?void 0:U.toString()),value:c[(N=Object.keys(c))==null?void 0:N.filter(re=>re!=="index"&&re!=="id")[0]]}),I.setSelectMenu(W.value===""?(b=c==null?void 0:c.id)==null?void 0:b.toString():W.value+"-"+((J=c==null?void 0:c.id)==null?void 0:J.toString())),I.setSelectTitle(H),I.setSelectIndex((Y=c==null?void 0:c.id)==null?void 0:Y.toString()),e("pageChange",A)}},Be=c=>{var m;(m=s.cloneDeep(r.itemData))==null||m.map(A=>((A==null?void 0:A.key)==="tableContents"&&(A.contents=c),A))},Fe=async(c,m,A,B)=>{var D;if((B==null?void 0:B.data)==="查看"&&(c!=null&&c.every(h=>(h==null?void 0:h.url)&&(h==null?void 0:h.name)))){let h=s.cloneDeep(c);h=await((D=s.cloneDeep(h))==null?void 0:D.map(async T=>{var b,J,Y,H;const U=await Ba.downloadAvatarApi({url:T==null?void 0:T.url});let N=URL.createObjectURL(U.data);return{name:(T==null?void 0:T.name)+"."+((H=(b=T==null?void 0:T.url)==null?void 0:b.split("."))==null?void 0:H[((Y=(J=T==null?void 0:T.url)==null?void 0:J.split("."))==null?void 0:Y.length)-1]),blobUrl:N}}));let E=await Promise.all(h);t.value=E,i.value=!0}e("contentClick",c,m,A,{id:r==null?void 0:r.index,type:"table"})},Pe=()=>{i.value=!1},Ue=c=>{e("rowClick",c)};o.watch(()=>r.changedContent,()=>{var A,B;if(!r.changedContent)return;let c=(A=g.value)==null?void 0:A.map(D=>{var h;return D.id===((h=r.changedContent)==null?void 0:h.id)&&(D={...r.changedContent,id:r.changedContent.newId?r.changedContent.newId:r.changedContent.id},delete D.newId),D});const m=(B=r.itemData)==null?void 0:B.map(D=>((D==null?void 0:D.key)==="tableContents"&&(D.contents=c),D));g.value=c,e("contentChange",{contents:m,index:r.index}),e("change",{content:c,index:r==null?void 0:r.index,buttonName:"",id:r==null?void 0:r.index})},{deep:!0,immediate:!0});const Q=()=>{},be=(c,m,A)=>{var B,D,h;if(C.value="",P.value=!0,S.value=!0,e("onButtonClick",c,m),c==="删除"){g.value=(B=s.cloneDeep(g.value))==null?void 0:B.filter(T=>(T==null?void 0:T.id)!==(m==null?void 0:m.id));const E=Dl(ce.value,W.value,m==null?void 0:m.id);Be(E),e("change",{content:g.value,singleContent:m,index:r==null?void 0:r.index,type:"delete",buttonName:c,column:n.value})}else if(c==="新增")V.value="新增",Te(""),R.value=!0;else if(c==="编辑")V.value="编辑",Te(m),R.value=!0;else if(c==="查看")V.value="查看",Te(m),P.value=!1,S.value=!1,R.value=!0;else if(c==="查看三维模型"){const E={};for(let U in m)U!=="id"&&(E[U]=m[U]);let T=(D=Object.values(E))==null?void 0:D[1];y.setTableShowThree(T)}else((h=A==null?void 0:A.extra)==null?void 0:h.type)==="modelExample"&&(V.value=c,q.value=!0)},Te=c=>{var D,h,E,T,U,N;const m=[];let A=[];for(let b in c)Array.isArray(c==null?void 0:c[b])&&A.push(b);(h=se.getColumnChild((D=s.cloneDeep(n.value))==null?void 0:D.filter(b=>(b==null?void 0:b.label)!=="操作")))==null||h.forEach((b,J)=>{A.find(Y=>Y===(b==null?void 0:b.prop))||m.push({label:(b==null?void 0:b.label)??"",name:(b==null?void 0:b.prop)??"t"+J,type:!(b!=null&&b.formType)||(b==null?void 0:b.formType)===""?"Input":b==null?void 0:b.formType,value:(c==null?void 0:c[b==null?void 0:b.prop])??(b==null?void 0:b.value)??"",id:(b==null?void 0:b.id)??J,contents:(b==null?void 0:b.options)??[],width:1,isFormColHidden:b==null?void 0:b.isFormColHidden})}),c===""||!c||(C.value=c==null?void 0:c.id);let B=se.getColumnChild((E=s.cloneDeep(n.value))==null?void 0:E.filter(b=>(b==null?void 0:b.label)!=="操作"));K.value&&((T=K.value)==null?void 0:T.length)>0&&(K.value=(U=s.cloneDeep(K).value)==null?void 0:U.map(b=>{var Y;let J=(Y=B==null?void 0:B.find(H=>(H==null?void 0:H.label)===(b==null?void 0:b.label)))==null?void 0:Y.prop;return J&&(b.value=c[J]),b})),L.value=K.value&&((N=K.value)==null?void 0:N.length)>0?se.getTableFormToForm(K.value):m};o.onMounted(()=>{_.value=window.innerWidth-240*2});const Oa=()=>{var D;let c=se.getColumnChild((D=s.cloneDeep(n.value))==null?void 0:D.filter(h=>(h==null?void 0:h.label)!=="操作")),m,A=s.cloneDeep(g.value);C.value===""?(x.value++,A.push(Object.assign($.value,{id:x.value})),m=Object.assign($.value,{id:x.value})):A=A==null?void 0:A.map(h=>{var E;if((h==null?void 0:h.id)===C.value){let T={};for(let U in h){let N=(E=c==null?void 0:c.find(b=>(b==null?void 0:b.prop)===U))==null?void 0:E.label;N?T[U]=$.value[N]:T[U]=h[U]}h=Object.assign(T,$.value),m=h}return h}),g.value=A;const B=kl(ce.value,W.value,A);Be(B),R.value=!1,e("change",{content:B,singleContent:m,index:r==null?void 0:r.index,buttonName:V.value,column:n.value})},Sa=c=>{$.value=c,e("onFormChange",c)};return o.watch(()=>[r.itemData,ae.value,ee.value,W.value,p==null?void 0:p.value],()=>{var U,N,b,J,Y,H,re,ve,ye,ue,le,me,Je,He,Ge,We,Qe,Xe,Ye,Ze,ze,ea,aa,la,na,ra;const c=(U=s.cloneDeep(r.itemData))==null?void 0:U.filter(k=>(k==null?void 0:k.key)==="header");(N=s.cloneDeep(r.itemData))==null||N.filter(k=>(k==null?void 0:k.key)==="tableIndexColumn")[0];const m=(b=s.cloneDeep(r.itemData))==null?void 0:b.find(k=>(k==null?void 0:k.key)==="page"),A=(J=s.cloneDeep(r.itemData))==null?void 0:J.find(k=>(k==null?void 0:k.key)==="rowButton"),B=(Y=s.cloneDeep(r.itemData))==null?void 0:Y.find(k=>(k==null?void 0:k.key)==="extraButton"),D=(H=s.cloneDeep(r.itemData))==null?void 0:H.filter(k=>(k==null?void 0:k.key)==="tableContents"),h=(re=s.cloneDeep(r.itemData))==null?void 0:re.filter(k=>(k==null?void 0:k.key)==="tableIndex");K.value=(ue=(ye=(ve=s.cloneDeep(r.itemData))==null?void 0:ve.filter(k=>(k==null?void 0:k.key)==="tableToForm"))==null?void 0:ye[0])==null?void 0:ue.contents,M.value=(m==null?void 0:m.contents)??!1;let E=[];ae.value===""?E=c==null?void 0:c[0]:E=(c==null?void 0:c.find(k=>(k==null?void 0:k.selectLabel)==="("+ae.value+")"))??(c==null?void 0:c.find(k=>!(k!=null&&k.selectLabel)));let T=[];if(ae.value===""?T=h==null?void 0:h[0]:T=(h==null?void 0:h.find(k=>(k==null?void 0:k.selectLabel)==="("+ae.value+")"))??(h==null?void 0:h.find(k=>!(k!=null&&k.selectLabel))),((le=E==null?void 0:E.contents)==null?void 0:le.length)>0){let k=[];if(E!=null&&E.contents.some(w=>Array.isArray(w)&&(w==null?void 0:w.find(v=>v.children))))W.value===""?k=(Je=(me=se.getGradeColumns(s.cloneDeep(E==null?void 0:E.contents)))==null?void 0:me[0])==null?void 0:Je.filter(w=>!Array.isArray(w)):(W.value.split("-"),k=(He=se.getGradeColumns(s.cloneDeep(E==null?void 0:E.contents)))==null?void 0:He[0]);else{const w=E!=null&&E.contents.some(v=>Array.isArray(v))?(Ge=E==null?void 0:E.contents)==null?void 0:Ge[0]:E==null?void 0:E.contents;w==null||w.forEach((v,Z)=>{k.push({label:(v==null?void 0:v.label)??"",prop:(v==null?void 0:v.label)==="操作"?"operate":(v==null?void 0:v.prop)??"a"+Z,width:(v==null?void 0:v.label)==="操作"?"200":v!=null&&v.width?parseInt(v.width):"",fixed:(v==null?void 0:v.fixed)??void 0,sortable:(v==null?void 0:v.sortable)??!1,align:(v==null?void 0:v.align)??"center",showOverflowTooltip:(v==null?void 0:v.showOverflowTooltip)??!0,isNotDrag:(v==null?void 0:v.isNotDrag)??!1,isEditCol:(v==null?void 0:v.isEditCol)??!1,isOperate:(v==null?void 0:v.isOperate)??!1,id:(v==null?void 0:v.id)??Z,type:(v==null?void 0:v.label)==="操作"?"operate":void 0,formType:(v==null?void 0:v.formType)??"",isTableColHidden:v==null?void 0:v.isTableColHidden,isFormColHidden:v==null?void 0:v.isFormColHidden,options:(v==null?void 0:v.options)??[],value:(v==null?void 0:v.value)??"",formMenuSelect:(v==null?void 0:v.formMenuSelect)??[],isRoute:(v==null?void 0:v.isRoute)??!1})})}n.value=k;let ie=(Qe=(We=se.getAllLeafNodes(s.cloneDeep(n.value)))==null?void 0:We.filter(w=>(w==null?void 0:w.type)!=="operate"))==null?void 0:Qe.map((w,v)=>({prop:(w==null?void 0:w.prop)??"a"+v,column:w.label}));O.value=ie;let ne=[];ae.value===""?ne=D==null?void 0:D[0]:ne=(D==null?void 0:D.find(w=>(w==null?void 0:w.selectLabel)==="("+ae.value+")"))??(D==null?void 0:D.find(w=>!(w!=null&&w.selectLabel)));let ke=Array.isArray((Xe=ne==null?void 0:ne.contents)==null?void 0:Xe[0])&&((Ye=ne==null?void 0:ne.contents)!=null&&Ye[0].every(w=>Array.isArray(w)))?(Ze=s.cloneDeep(ne==null?void 0:ne.contents))==null?void 0:Ze[0]:s.cloneDeep(ne==null?void 0:ne.contents);T!=null&&T.contents&&((ze=T==null?void 0:T.contents)==null?void 0:ze.length)!==0&&(ke=(ea=s.cloneDeep(ke))==null?void 0:ea.map((w,v)=>{if(!Array.isArray(w)){let Z={};for(let Ce in w)Ce!=="id"&&Ce!=="index"&&(Z[Ce]=w[Ce]);w=Object.values(Z)}return w}));const Na=!!((aa=n.value)!=null&&aa.find(w=>w.prop==="index"));ke=Ca(s.cloneDeep(ke),T==null?void 0:T.contents,Na);const xe=[];ke==null||ke.forEach((w,v)=>{var Ce;let Z={};if(Array.isArray(w)){let z=[];w==null||w.filter(fe=>!(fe!=null&&fe.id)).forEach((fe,ge)=>{var ia,oa,ta,sa,ca,ua;if((ia=ie==null?void 0:ie[ge])!=null&&ia.prop&&!Array.isArray(fe)){let Ke={};Ke[ie[ge].column]=fe,p!=null&&p.value&&((oa=p==null?void 0:p.value)==null?void 0:oa.length)>0&&((ta=p==null?void 0:p.value)!=null&&ta.find(de=>JSON.stringify(de==null?void 0:de[0])===JSON.stringify(Ke)))&&(z=(sa=p==null?void 0:p.value)==null?void 0:sa.find(de=>JSON.stringify(de==null?void 0:de[0])===JSON.stringify(Ke))),z&&z.length>0?Z[ie[ge].prop]=z!=null&&z.find(de=>{var Oe;return((Oe=Object.keys(de))==null?void 0:Oe[0])===ie[ge].column})?(ca=z==null?void 0:z.find(de=>{var Oe;return((Oe=Object.keys(de))==null?void 0:Oe[0])===ie[ge].column}))==null?void 0:ca[ie[ge].column]:fe:Z[ie[ge].prop]=fe}else Array.isArray(fe)&&((ua=ie[ge])!=null&&ua.prop?Z[ie[ge].prop]=fe:Z.children=ka(fe,ie))})}else Z=w;Array.isArray(w)&&w.some(z=>z==null?void 0:z.id)?xe.push(Object.assign(Z,{id:(Ce=w==null?void 0:w.find(z=>z.id))==null?void 0:Ce.id})):Z.id?xe.push(Z):xe.push(Object.assign(Z,{id:v}))}),g.value=xe}else n.value=[],g.value=[];((la=A==null?void 0:A.contents)==null?void 0:la.length)>0?G.value=A==null?void 0:A.contents:G.value=[],((na=B==null?void 0:B.contents)==null?void 0:na.length)>0?j.value=B==null?void 0:B.contents:j.value=[],x.value=((ra=g==null?void 0:g.value)==null?void 0:ra.length)??0,ce.value=g.value},{deep:!0,immediate:!0}),o.watch(()=>r==null?void 0:r.operatingForm,c=>{c!=null&&c.form&&(Te(c==null?void 0:c.form),V.value=c==null?void 0:c.dialogTitle,P.value=!0,R.value=!0)},{immediate:!0,deep:!0}),(c,m)=>{var B;const A=o.resolveComponent("el-button");return o.openBlock(),o.createElementBlock("div",an,[(o.openBlock(),o.createBlock(Ae.ssTable,{columns:n.value,key:n.value,tableData:g.value,isShowPagination:M.value,isShowEdit:!1,isShowDelete:!1,onDbClickRow:Ee,extraButton:j.value,onContentClick:Fe,onRowClick:Ue},o.createSlots({headerButton:o.withCtx(D=>[o.createVNode(gl,{compName:a.compName,buttons:D.buttons,onButtonClick:m[0]||(m[0]=h=>be(h,"",{})),columns:n.value,onFilter:Ie},null,8,["compName","buttons","columns"])]),_:2},[((B=G.value)==null?void 0:B.length)>0?{name:"actions",fn:o.withCtx(({item:D})=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(te(G.value,D),(h,E)=>(o.openBlock(),o.createElementBlock("div",{key:E},[o.createElementVNode("div",{style:o.normalizeStyle({color:h==null?void 0:h.textColor}),class:"extra-button-label",onClick:T=>be(h==null?void 0:h.label,D,{extra:h})},o.toDisplayString(h==null?void 0:h.label),13,ln)]))),128))]),key:"0"}:void 0]),1032,["columns","tableData","isShowPagination","extraButton"])),o.createVNode(Ae.ssDialog,{title:V.value,visible:R.value,width:we.value,onBeforeDestroy:F},{default:o.withCtx(()=>[o.createElementVNode("div",nn,[o.createVNode(Ae.ssForm,{rowContents:L.value,isEnableWrap:!1,onChange:Sa,onClickTrigger:pe,isEdit:S.value},null,8,["rowContents","isEdit"])])]),footer:o.withCtx(()=>[P.value?(o.openBlock(),o.createElementBlock("div",rn,[o.createVNode(A,{onClick:m[1]||(m[1]=D=>R.value=!1),id:"themeBorderButton"},{default:o.withCtx(()=>m[4]||(m[4]=[o.createTextVNode(o.toDisplayString("取消"))])),_:1,__:[4]}),o.createVNode(A,{class:"ok-button",onClick:Oa,id:"themeButton"},{default:o.withCtx(()=>m[5]||(m[5]=[o.createTextVNode(o.toDisplayString("确认"))])),_:1,__:[5]})])):o.createCommentVNode("",!0)]),_:1},8,["title","visible","width"]),o.createVNode(Ae.ssDialog,{title:V.value,visible:q.value,width:_.value,onBeforeDestroy:m[3]||(m[3]=D=>q.value=!1)},{default:o.withCtx(()=>[o.createVNode(Al)]),footer:o.withCtx(()=>[o.createElementVNode("div",on,[o.createVNode(A,{onClick:m[2]||(m[2]=D=>q.value=!1),class:"cancel-button",id:"themeBorderButton"},{default:o.withCtx(()=>m[6]||(m[6]=[o.createTextVNode(o.toDisplayString("取消"))])),_:1,__:[6]}),o.createVNode(A,{class:"ok-button",onClick:Q,id:"themeButton"},{default:o.withCtx(()=>m[7]||(m[7]=[o.createTextVNode(o.toDisplayString("确认"))])),_:1,__:[7]})])]),_:1},8,["title","visible","width"]),i.value?(o.openBlock(),o.createBlock(Ae.ssFilePreview,{key:0,fileDataList:t.value,onDestroy:Pe},null,8,["fileDataList"])):o.createCommentVNode("",!0)])}}},sn=Le._export_sfc(tn,[["__scopeId","data-v-0258dc86"]]);exports.IsJson=_l;exports.SetCache=Se;exports.addTableContents=Xl;exports.baseIsEqual=qe;exports.cacheHas=ba;exports.deleteTableContents=Ql;exports.fixFormContents=Zl;exports.fixTableContents=Yl;exports.getColumnContents=_e;exports.getFixExtraContent=xl;exports.getFormContents=Ol;exports.getFormToContent=Nl;exports.getFormToData=Fl;exports.getItemData=Me;exports.getNewTableContents=Pl;exports.getParentKey=Hl;exports.getProjectContent=Rl;exports.getTableToContent=Sl;exports.getValueToObjectValue=Ne;exports.isEqual=Aa;exports.loadingSystemType=en;exports.methodTableToContent=El;exports.setToArray=ma;exports.ssTable=sn;exports.tableEveryContents=Jl;exports.tableToContents=jl;exports.tableToStruct=Kl;exports.useFormToTableComp=Da;exports.useTableComp=Ea;exports.useUnit=Ta;
|