ss-component-new 1.3.401 → 1.3.403

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.
Files changed (75) hide show
  1. package/dist/{MTLLoader-BPfB7u4m.cjs → MTLLoader-B0vEDLTb.cjs} +1 -1
  2. package/dist/{MTLLoader-Ck3iCZBB.js → MTLLoader-OOczUyeD.js} +1 -1
  3. package/dist/{OrbitControls-CFgny2Xb.js → OrbitControls-BvaUWlJW.js} +1 -1
  4. package/dist/{OrbitControls-B-yXXyZA.cjs → OrbitControls-DL4zlshS.cjs} +1 -1
  5. package/dist/{URDFLoader-BAtjvzxL.js → URDFLoader-CNBPgS8q.js} +2 -2
  6. package/dist/{URDFLoader-BKLZ4URk.cjs → URDFLoader-g-0sln-a.cjs} +1 -1
  7. package/dist/{animationData-bxvnFmWp.cjs → animationData-CERKhN5Q.cjs} +1 -1
  8. package/dist/{animationData-BTSgwbTq.js → animationData-bdV-uefb.js} +2 -2
  9. package/dist/{array-DMPTLGtj.js → array-C7mGQf0K.js} +2 -2
  10. package/dist/{array-D-wXELvn.cjs → array-DVSjLCvI.cjs} +1 -1
  11. package/dist/{iconfont-h4mgBzTa.js → iconfont-Bz3uoevq.js} +2 -2
  12. package/dist/{iconfont-XoR9fiUX.cjs → iconfont-CulYgJft.cjs} +1 -1
  13. package/dist/{index-BaNsHy5M.js → index-4DF-IGFB.js} +1 -1
  14. package/dist/{index-CXJg6fVt.cjs → index-B6PD-xI6.cjs} +1 -1
  15. package/dist/{index-Baa2tgYw.js → index-BD-rGD76.js} +5 -5
  16. package/dist/{index-BHnT4OkM.js → index-BGxJ58ST.js} +6 -6
  17. package/dist/{index-DsQcrm0O.js → index-BKwBWGa8.js} +27 -18
  18. package/dist/{index-EQOt3OdY.cjs → index-BRyEcXsJ.cjs} +1 -1
  19. package/dist/{index-BP1nxzS-.js → index-BXSeYE-F.js} +1 -1
  20. package/dist/{index-BM0jICV-.cjs → index-BXUjjen4.cjs} +1 -1
  21. package/dist/{index-Bf9mnn8M.cjs → index-BbOPzdvW.cjs} +1 -1
  22. package/dist/{index-CUbYU_BV.cjs → index-Bg_qW-pV.cjs} +1 -1
  23. package/dist/{index-BNd4riSo.cjs → index-BlK57Hld.cjs} +1 -1
  24. package/dist/{index-kSKXfPuW.cjs → index-BszVYrt4.cjs} +23 -23
  25. package/dist/{index-Br-EfYDY.js → index-BuMDpcw5.js} +1 -1
  26. package/dist/{index-CQD-jp-1.cjs → index-BxYAWHue.cjs} +1 -1
  27. package/dist/{index-DWz4-eQa.cjs → index-C5-Qkbkd.cjs} +1 -1
  28. package/dist/{index-CVcTWPhb.cjs → index-C7F00lsw.cjs} +1 -1
  29. package/dist/{index-CJZtMG1l.js → index-CP2sqOuT.js} +13 -13
  30. package/dist/{index-kTvhIZ_a.cjs → index-CPZ9KSRW.cjs} +1 -1
  31. package/dist/{index-D63pR0VJ.cjs → index-CVwv4LxN.cjs} +1 -1
  32. package/dist/{index--PEL8oJy.js → index-C_lmA_6J.js} +1 -1
  33. package/dist/{index-D0dPlenq.js → index-C_qJRxvA.js} +3 -1
  34. package/dist/{index-7QuLAZc4.js → index-CbMraWrc.js} +1 -1
  35. package/dist/{index-1CxMVM0T.js → index-CglzMjXC.js} +4 -4
  36. package/dist/{index-BR5evPYR.cjs → index-D1f-c75W.cjs} +1 -1
  37. package/dist/{index-C5ykyj5i.js → index-D2dAfD7a.js} +2 -2
  38. package/dist/{index-odRU2HNs.cjs → index-D7YfQdNJ.cjs} +1 -1
  39. package/dist/{index-DuvMoFSU.cjs → index-DBxrIHI8.cjs} +1 -1
  40. package/dist/{index-BzrpHOhV.js → index-DOJZTlQX.js} +4 -4
  41. package/dist/{index-BVQ08iol.js → index-DR-QE8pc.js} +1 -1
  42. package/dist/{index-C1idYMvl.js → index-DSZ0tFwa.js} +3 -3
  43. package/dist/{index-x-5naHKX.js → index-DcL7nuqr.js} +3 -3
  44. package/dist/{index-BPjXEDdo.cjs → index-DdgG41py.cjs} +1 -1
  45. package/dist/{index-DVoeNzlg.cjs → index-DgDt5hIh.cjs} +1 -1
  46. package/dist/{index-CcZ3PLQl.js → index-DkXqUIKT.js} +1 -1
  47. package/dist/{index-7oopEz08.js → index-DnFFYa5e.js} +1 -1
  48. package/dist/{index-DfKgW3Wx.js → index-F50xEFph.js} +1 -1
  49. package/dist/{index-CA8nRHvK.cjs → index-f38JGA94.cjs} +1 -1
  50. package/dist/{index-UE1_7FXY.cjs → index-pPkg_OL4.cjs} +1 -1
  51. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Ch7zA-Cn.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BB3g-g6w.cjs} +1 -1
  52. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DCVfKTPt.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Dsy5DUE-.js} +1 -1
  53. package/dist/{main--DlxlczT.js → main-BQLZO8HY.js} +3 -3
  54. package/dist/{main-Da9qeEMp.cjs → main-BsAze-BF.cjs} +1 -1
  55. package/dist/ss-component.cjs +1 -1
  56. package/dist/ss-component.js +9 -9
  57. package/dist/ss-component2.cjs +1 -1
  58. package/dist/ss-component2.js +9 -9
  59. package/dist/{threeModel-CQ1k0qYi.js → threeModel-Bhu7rOKW.js} +3 -3
  60. package/dist/{threeModel-CBuNWvUV.cjs → threeModel-D-FvWS_U.cjs} +1 -1
  61. package/dist/{threePreview-COjaxVdv.js → threePreview-BXDV8-_e.js} +3 -3
  62. package/dist/{threePreview-D8x5APGU.cjs → threePreview-BtkpVZWF.cjs} +1 -1
  63. package/dist/{threeSceneView-DP4SvptT.cjs → threeSceneView-DCgJg_S7.cjs} +1 -1
  64. package/dist/{threeSceneView-C7-39m3-.js → threeSceneView-Dgil6mJv.js} +10 -10
  65. package/dist/{threeSceneViewForCPMPIP-DaujRWby.cjs → threeSceneViewForCPMPIP-DUTo0lpU.cjs} +1 -1
  66. package/dist/{threeSceneViewForCPMPIP-DxR2AIa7.js → threeSceneViewForCPMPIP-E4vym4PB.js} +7 -7
  67. package/dist/{threeTrackPathView-DdsQcNz5.cjs → threeTrackPathView-4INoPaB2.cjs} +1 -1
  68. package/dist/{threeTrackPathView-Q0kE7Zg1.js → threeTrackPathView-DGuaf0yA.js} +3 -3
  69. package/dist/{threeViewerHost-rMSBiof2.cjs → threeViewerHost-5A2jHeBY.cjs} +1 -1
  70. package/dist/{threeViewerHost-DMc2E0HM.js → threeViewerHost-BUCEw4Ve.js} +2 -2
  71. package/dist/{urdfTree-CpPM1ksp.cjs → urdfTree-CCddp-qi.cjs} +1 -1
  72. package/dist/{urdfTree-COkcl5so.js → urdfTree-DwvCDT5W.js} +1 -1
  73. package/dist/{workpieceTreePanel-15cCpVWI.js → workpieceTreePanel-C243M7H1.js} +4 -4
  74. package/dist/{workpieceTreePanel-CR29xQwU.cjs → workpieceTreePanel-CBKSdvmT.cjs} +1 -1
  75. package/package.json +1 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("./index-BM0jICV-.cjs"),d=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),u=()=>{const l=e.ref("日志管理"),n=e.ref(),o=e.ref([{key:"header",contents:[{prop:"name",align:"center",isRun:!1,label:"日志名称",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"time",align:"center",isRun:!1,label:"生成时间",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"sort",align:"operator",isRun:!1,label:"操作人",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"remark",align:"center",isRun:!1,label:"备注",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{label:"操作",isMainKey:!0}]},{key:"extraButton",contents:[]},{key:"rowButton",contents:[{label:"删除"}]},{key:"tableFilter",contents:[]},{key:"tableContents",contents:[[{id:764397741125751},"test","test","test","test"]]}]);return{compName:l,changedRow:n,tableInfo:o,handleItemDataChange:a=>{},clickRowButton:async(a,r)=>{}}},f={class:"log-management"},m={class:"body"},p=e.defineComponent({__name:"index",setup(l){const{compName:n,changedRow:o,tableInfo:s,handleItemDataChange:i,clickRowButton:a}=u();return(r,t)=>(e.openBlock(),e.createElementBlock("div",f,[t[0]||(t[0]=e.createElementVNode("div",{class:"header"},null,-1)),e.createElementVNode("div",m,[e.createVNode(c.ssTable,{compName:e.unref(n),itemData:e.unref(s),changedContent:e.unref(o),onChange:e.unref(i),onOnButtonClick:e.unref(a)},null,8,["compName","itemData","changedContent","onChange","onOnButtonClick"])]),t[1]||(t[1]=e.createElementVNode("div",{class:"footer"},[e.createElementVNode("div",{class:"footer-left"}),e.createElementVNode("div",{class:"footer-right"})],-1))]))}}),g=d._export_sfc(p,[["__scopeId","data-v-5bfd5576"]]);exports.default=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("./index-BXUjjen4.cjs"),d=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),u=()=>{const l=e.ref("日志管理"),n=e.ref(),o=e.ref([{key:"header",contents:[{prop:"name",align:"center",isRun:!1,label:"日志名称",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"time",align:"center",isRun:!1,label:"生成时间",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"sort",align:"operator",isRun:!1,label:"操作人",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"remark",align:"center",isRun:!1,label:"备注",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{label:"操作",isMainKey:!0}]},{key:"extraButton",contents:[]},{key:"rowButton",contents:[{label:"删除"}]},{key:"tableFilter",contents:[]},{key:"tableContents",contents:[[{id:764397741125751},"test","test","test","test"]]}]);return{compName:l,changedRow:n,tableInfo:o,handleItemDataChange:a=>{},clickRowButton:async(a,r)=>{}}},f={class:"log-management"},m={class:"body"},p=e.defineComponent({__name:"index",setup(l){const{compName:n,changedRow:o,tableInfo:s,handleItemDataChange:i,clickRowButton:a}=u();return(r,t)=>(e.openBlock(),e.createElementBlock("div",f,[t[0]||(t[0]=e.createElementVNode("div",{class:"header"},null,-1)),e.createElementVNode("div",m,[e.createVNode(c.ssTable,{compName:e.unref(n),itemData:e.unref(s),changedContent:e.unref(o),onChange:e.unref(i),onOnButtonClick:e.unref(a)},null,8,["compName","itemData","changedContent","onChange","onOnButtonClick"])]),t[1]||(t[1]=e.createElementVNode("div",{class:"footer"},[e.createElementVNode("div",{class:"footer-left"}),e.createElementVNode("div",{class:"footer-right"})],-1))]))}}),g=d._export_sfc(p,[["__scopeId","data-v-5bfd5576"]]);exports.default=g;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),C=require("./request-Dl8yi2iS.cjs"),$=require("./index-kSKXfPuW.cjs"),u=require("./index-Pve69buQ.cjs"),F=require("./index-DuvMoFSU.cjs"),le=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),Ee=require("./index-BOkUwKV5.cjs"),Ie=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Pe=u.useLoginState(u.pinia),{systemUrl:V}=u.storeToRefs(Pe);let P=V.value===""||!V.value?"http://222.92.178.198:63002":V.value;e.watch(()=>V.value,()=>{P=V.value===""||!V.value?"http://222.92.178.198:63002":V.value},{deep:!0,immediate:!0});function Se(l){return C.service({url:`${P}/platform/getdata_post`,method:"post",data:l})}function De(l){return C.service({url:`${P}/platform/createdata_post`,method:"post",data:l})}function Te(l){return C.service({url:`${P}/platform/updatedata_post`,method:"post",data:l})}function Le(l){return C.service({url:`${P}/platform/deletedata_post`,method:"post",data:l})}const Be=[{label:"编辑",value:"edit"},{label:"删除",value:"delete"}],me="post",m={ENABLE:{value:"enable",label:"启用",tag:"primary"},DISABLED:{value:"disabled",label:"禁用",tag:"info"}},ke=()=>{const{platId:l,userId:r,isSuperAdmin:S}=u.useUserInfo(),R=t=>{const o=t.toUpperCase(),n=m==null?void 0:m[o];return(n==null?void 0:n.label)||t},D=t=>{const o=t.toUpperCase(),n=m==null?void 0:m[o];return(n==null?void 0:n.tag)||"info"},h=e.ref({}),N=e.computed(()=>{var o;return S.value?!0:((o=h.value)==null?void 0:o.status)===F.featureStatusConstants.EDITABLE.value}),M=async()=>{var y,U;const o={pageName:"系统管理/职位管理",platId:l.value,userId:r.value},n=await u.getPageDataApi(o);return(U=(y=n==null?void 0:n.data)==null?void 0:y.result)==null?void 0:U[0]},G=async()=>{if(!S.value)return h.value=await M(),h},T=()=>({name:""}),f=e.ref(T()),O=()=>{f.value=T()},x=()=>({prop:"sort",order:"ascending"}),w=e.ref(x()),L=t=>{w.value=t},Q=()=>({pageNum:1,pageSize:10,total:0,pageSizes:[5,10,20,50,100]}),g=e.ref(Q()),j=t=>{g.value.pageNum=t},H=t=>{g.value.pageSize=t},J=()=>({platId:l.value,pageNum:g.value.pageNum,pageSize:g.value.pageSize,filter:{...f.value},orderBy:{prop:w.value.prop,order:w.value.order}}),K=async t=>{var n;const o=await Se(t);return(n=o==null?void 0:o.data)==null?void 0:n.result},B=async t=>{const o=J(),n=await K(o),{total:y}=n||{};return g.value.total=y,n||{}},W=t=>{const o=u.formatterTimeStr(Date.now()),n=u.cloneDeep(t);return n.update_time=o,n},_=t=>{const o=u.formatterTimeStr(Date.now());let n={name:"",code:"",sort:1,status:m.ENABLE.value,create_time:o,update_time:o};if(t){const y=W(t);n={...n,...y}}return n},k=t=>{const o=[t];return{platId:l.value,changePostData:o}},X=async t=>{delete t.post_id;const o=k(t);await De(o)},Y=async t=>{await X(t)},Z=async t=>{const o=k(t);await Te(o)},v=async t=>{await Z(t)},ee=async t=>{const{post_id:o}=t,n={platId:l.value,post_id:[o]};await Le(n)},q=async t=>{await u.ElMessageBox.confirm("是否确认要删除","",{showClose:!1,confirmButtonText:"确认",cancelButtonText:"取消",type:"warning",modalClass:"delete-position-message-modal",confirmButtonClass:"delete-position-confirm"}),await ee(t)},te=async t=>{var n;const o=await F.importData(t);return(n=o==null?void 0:o.data)==null?void 0:n.result},i=async t=>{const o=new FormData;return o.set("platId",l.value),o.set("file",t),o.set("tableType",me),await te(o)},b=async t=>await F.exportData(t),oe=async()=>{const t={platId:l.value,tableType:me,filter:f.value,orderBy:w.value},o=await b(t);return F.initDownloadFileByResponse(o),o},z=[["名称","编码","状态","排序"]];return{sortInfo:w,setSortInfo:L,queryInfo:f,resetQuery:O,pageInfo:g,setPageNum:j,setPageSize:H,hasPositionEditAuth:N,initPositionItem:_,initPositionConfig:G,initGetByPage:B,initCreate:Y,initUpdate:v,initDelete:q,getStatusLabelByValue:R,getStatusTagByValue:D,initImport:i,initExport:oe,exportTemplate:async()=>{const t=$.utils.aoa_to_sheet(z),o=$.utils.book_new();$.utils.book_append_sheet(o,t,"职位"),$.writeFileSync(o,"职位模板.xlsx")}}},qe={class:"position-management"},ze={class:"header"},Ue={class:"header-left"},Ae={class:"query-wrapper"},$e={class:"header-right"},Fe={class:"body"},Re={class:"position-table-wrapper"},Me={class:"table-wrapper"},Ge={class:"operate-list"},Oe=["onClick"],Qe={class:"pagination-wrapper"},je={class:"position-management-wrapper"},He={class:"position-management-body"},Je={class:"position-form-wrapper"},Ke={class:"edit-footer"},We={class:"footer-right"},Xe=e.defineComponent({__name:"index",setup(l){const r=u.useMenuState(u.pinia),{sortInfo:S,setSortInfo:R,queryInfo:D,resetQuery:h,pageInfo:N,setPageNum:M,setPageSize:G,initGetByPage:T,hasPositionEditAuth:f,initPositionConfig:O,initPositionItem:x,initCreate:w,initUpdate:L,initDelete:Q,getStatusLabelByValue:g,getStatusTagByValue:j,initImport:H,initExport:J,exportTemplate:K}=ke(),B=e.ref([]),W=async()=>{const s=await T(),{postData:a=[]}=s;return a},_=async()=>{B.value=await W()},k=s=>{M(s),r.setImportLoading(!0),_().finally(()=>{r.setImportLoading(!1)})},X=s=>{G(s),r.setImportLoading(!0),_().finally(()=>{r.setImportLoading(!1)})},Y=s=>{const{prop:a,order:d}=s;R({prop:a,order:d}),_()},Z=async()=>{h(),r.setImportLoading(!0),await _().finally(()=>{r.setImportLoading(!1)})},v=async()=>{await O(),await _()};e.onMounted(async()=>{r.setImportLoading(!0),await v().finally(()=>{r.setImportLoading(!1)})});const ee=async(s,a)=>{if(!f.value)return;const{value:d}=s,p=a.row;if(d==="edit"){ae(p);return}if(d==="delete"){r.setImportLoading(!0),await y(p).finally(()=>{r.setImportLoading(!1)});return}},q=e.ref(),te=e.reactive({name:[{required:!0,message:"请输入职位名称",trigger:"blur"}],code:[{required:!0,message:"请选择职位编码",trigger:"blur"}],sort:[{required:!0,message:"请输入排序",trigger:"blur"}]}),i=e.ref(x());e.ref([]);const b=e.ref(!1),oe=()=>{b.value=!0},z=()=>{b.value=!1},ae=async s=>{f.value&&(i.value=x(s),oe())},t=()=>{i.value=x(),z()},o=async()=>{await w(i.value),await v()},n=async()=>{await L(i.value),await v()},y=async s=>{await Q(s),await v()},U=async()=>{var a,d;await((d=(a=q.value)==null?void 0:a.validate)==null?void 0:d.call(a));const{post_id:s}=i.value;r.setImportLoading(!0),s?await n().finally(()=>{r.setImportLoading(!1)}):await o().finally(()=>{r.setImportLoading(!1)}),t()},fe=async s=>{if(!f.value)return;const{status:a}=s;m.ENABLE.value===a?s.status=m.DISABLED.value:s.status=m.ENABLE.value,await L(s),await v()},ge=async()=>{await _e()},_e=async()=>{const s=document.createElement("input");s.type="file",s.accept=".xlsx",s.onchange=async a=>{var E;const p=(E=a.target.files)==null?void 0:E[0];if(p)try{r.setImportLoading(!0),await H(p),await v(),r.setImportLoading(!1)}catch{r.setImportLoading(!1)}},s.click()},ve=async()=>{r.setImportLoading(!0),await J().finally(()=>{r.setImportLoading(!1)})},ye=async()=>{K()};return(s,a)=>{var ce,de,ue,pe;const d=e.resolveComponent("el-input"),p=e.resolveComponent("el-button"),E=e.resolveComponent("el-icon"),ne=e.resolveComponent("el-dropdown-item"),we=e.resolveComponent("el-dropdown-menu"),Ve=e.resolveComponent("el-dropdown"),I=e.resolveComponent("el-table-column"),Ne=e.resolveComponent("el-tag"),Ce=e.resolveComponent("el-table"),he=e.resolveComponent("el-pagination"),se=e.resolveComponent("el-form-item"),re=e.resolveComponent("el-col"),ie=e.resolveComponent("el-row"),xe=e.resolveComponent("el-input-number"),be=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",qe,[e.createElementVNode("div",ze,[e.createElementVNode("div",Ue,[e.createElementVNode("div",Ae,[e.createVNode(d,{modelValue:e.unref(D).name,"onUpdate:modelValue":a[0]||(a[0]=c=>e.unref(D).name=c),style:{width:"240px"},placeholder:"请输入名称"},null,8,["modelValue"]),e.createVNode(p,{type:"primary",onClick:_},{default:e.withCtx(()=>a[5]||(a[5]=[e.createTextVNode("查询")])),_:1,__:[5]}),e.createVNode(p,{type:"primary",plain:"",onClick:Z},{default:e.withCtx(()=>a[6]||(a[6]=[e.createTextVNode("重置")])),_:1,__:[6]})])]),e.createElementVNode("div",$e,[e.createVNode(p,{type:"primary",onClick:ge},{default:e.withCtx(()=>[a[7]||(a[7]=e.createTextVNode(" 导入 ")),e.createVNode(E,{class:"el-icon--right"},{default:e.withCtx(()=>[e.createVNode(e.unref(C.upload_default))]),_:1})]),_:1,__:[7]}),e.createVNode(Ve,null,{dropdown:e.withCtx(()=>[e.createVNode(we,null,{default:e.withCtx(()=>[e.createVNode(ne,{onClick:ye},{default:e.withCtx(()=>a[9]||(a[9]=[e.createTextVNode("导出模板")])),_:1,__:[9]}),e.createVNode(ne,{onClick:ve},{default:e.withCtx(()=>a[10]||(a[10]=[e.createTextVNode("导出数据")])),_:1,__:[10]})]),_:1})]),default:e.withCtx(()=>[e.createVNode(p,{type:"primary"},{default:e.withCtx(()=>[a[8]||(a[8]=e.createTextVNode(" 导出 ")),e.createVNode(E,{class:"el-icon--right"},{default:e.withCtx(()=>[e.createVNode(e.unref(C.arrow_down_default))]),_:1})]),_:1,__:[8]})]),_:1}),e.createVNode(le._sfc_main,{emptyColor:!0,onClickTrigger:a[1]||(a[1]=c=>ae()),modelValue:"创建职位",buttonType:"primary"})])]),e.createElementVNode("div",Fe,[e.createElementVNode("div",Re,[e.createElementVNode("div",Me,[e.createVNode(Ce,{class:"department-table",data:B.value,"empty-text":"","default-sort":e.unref(S),onSortChange:Y},{default:e.withCtx(()=>[e.createVNode(I,{prop:"name",label:"名称",align:"center"}),e.createVNode(I,{prop:"code",label:"编码",align:"center"}),e.createVNode(I,{prop:"status",label:"状态",align:"center"},{default:e.withCtx(c=>[e.createVNode(Ne,{class:"status-tag",type:e.unref(j)(c.row.status),title:"点击切换",onClick:A=>fe(c.row)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(g)(c.row.status)),1)]),_:2},1032,["type","onClick"])]),_:1}),e.createVNode(I,{prop:"sort",label:"排序",align:"center",sortable:"custom"}),e.createVNode(I,{label:"操作",align:"center"},{default:e.withCtx(c=>[e.createElementVNode("div",Ge,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Be),A=>(e.openBlock(),e.createElementBlock("div",{class:"operate-item",key:A.value,onClick:e.withModifiers(Ze=>ee(A,c),["stop"])},e.toDisplayString(A.label),9,Oe))),128))])]),_:1})]),_:1},8,["data","default-sort"])]),e.createElementVNode("div",Qe,[a[11]||(a[11]=e.createElementVNode("div",null,null,-1)),e.createVNode(he,{onSizeChange:X,onCurrentChange:k,"current-page":(ce=e.unref(N))==null?void 0:ce.pageNum,"page-sizes":(de=e.unref(N))==null?void 0:de.pageSizes,"page-size":((ue=e.unref(N))==null?void 0:ue.pageSize)??10,layout:"total, sizes, prev, pager, next, jumper",total:((pe=e.unref(N))==null?void 0:pe.total)??0},null,8,["current-page","page-sizes","page-size","total"])])])]),a[14]||(a[14]=e.createElementVNode("div",{class:"footer"},[e.createElementVNode("div",{class:"footer-left"}),e.createElementVNode("div",{class:"footer-right"})],-1)),e.createVNode(Ee.ssDialog,{class:"position-edit-dialog",visible:b.value,title:"职位信息",onBeforeDestroy:z,showClose:!0,closeOnClickModal:!1,closeOnPressEscape:!1,modalClass:"position-edit-modal",alignCenter:!0,appendToBody:!1},{default:e.withCtx(()=>[e.createElementVNode("div",je,[a[12]||(a[12]=e.createElementVNode("div",{class:"position-management-header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",He,[e.createElementVNode("div",Je,[e.createVNode(be,{class:"position-edit-form",ref_key:"positionFormRef",ref:q,model:i.value,rules:te},{default:e.withCtx(()=>[e.createVNode(ie,{gutter:20},{default:e.withCtx(()=>[e.createVNode(re,{span:12},{default:e.withCtx(()=>[e.createVNode(se,{prop:"name",label:"职位名称","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:i.value.name,"onUpdate:modelValue":a[2]||(a[2]=c=>i.value.name=c),"aria-label":"职位名称",placeholder:"职位名称"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(re,{span:12},{default:e.withCtx(()=>[e.createVNode(se,{prop:"code",label:"职位编码","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:i.value.code,"onUpdate:modelValue":a[3]||(a[3]=c=>i.value.code=c),"aria-label":"职位编码",placeholder:"职位编码"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(ie,{gutter:20},{default:e.withCtx(()=>[e.createVNode(re,{span:12},{default:e.withCtx(()=>[e.createVNode(se,{prop:"sort",label:"排序","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(xe,{modelValue:i.value.sort,"onUpdate:modelValue":a[4]||(a[4]=c=>i.value.sort=c),"aria-label":"排序",placeholder:"排序",min:"1"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",Ke,[a[13]||(a[13]=e.createElementVNode("div",{class:"footer-left"},null,-1)),e.createElementVNode("div",We,[e.createVNode(le._sfc_main,{class:"cancel",emptyColor:!0,onClickTrigger:t,modelValue:"取消",buttonType:"info"}),e.createVNode(le._sfc_main,{class:"confirm",emptyColor:!0,onClickTrigger:U,modelValue:"确定",buttonType:"primary"})])])]),_:1},8,["visible"])])}}}),Ye=Ie._export_sfc(Xe,[["__scopeId","data-v-c988d077"]]);exports.default=Ye;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),C=require("./request-Dl8yi2iS.cjs"),$=require("./index-BszVYrt4.cjs"),u=require("./index-Pve69buQ.cjs"),F=require("./index-DBxrIHI8.cjs"),le=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),Ee=require("./index-BOkUwKV5.cjs"),Ie=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Pe=u.useLoginState(u.pinia),{systemUrl:V}=u.storeToRefs(Pe);let P=V.value===""||!V.value?"http://222.92.178.198:63002":V.value;e.watch(()=>V.value,()=>{P=V.value===""||!V.value?"http://222.92.178.198:63002":V.value},{deep:!0,immediate:!0});function Se(l){return C.service({url:`${P}/platform/getdata_post`,method:"post",data:l})}function De(l){return C.service({url:`${P}/platform/createdata_post`,method:"post",data:l})}function Te(l){return C.service({url:`${P}/platform/updatedata_post`,method:"post",data:l})}function Le(l){return C.service({url:`${P}/platform/deletedata_post`,method:"post",data:l})}const Be=[{label:"编辑",value:"edit"},{label:"删除",value:"delete"}],me="post",m={ENABLE:{value:"enable",label:"启用",tag:"primary"},DISABLED:{value:"disabled",label:"禁用",tag:"info"}},ke=()=>{const{platId:l,userId:r,isSuperAdmin:S}=u.useUserInfo(),R=t=>{const o=t.toUpperCase(),n=m==null?void 0:m[o];return(n==null?void 0:n.label)||t},D=t=>{const o=t.toUpperCase(),n=m==null?void 0:m[o];return(n==null?void 0:n.tag)||"info"},h=e.ref({}),N=e.computed(()=>{var o;return S.value?!0:((o=h.value)==null?void 0:o.status)===F.featureStatusConstants.EDITABLE.value}),M=async()=>{var y,U;const o={pageName:"系统管理/职位管理",platId:l.value,userId:r.value},n=await u.getPageDataApi(o);return(U=(y=n==null?void 0:n.data)==null?void 0:y.result)==null?void 0:U[0]},G=async()=>{if(!S.value)return h.value=await M(),h},T=()=>({name:""}),f=e.ref(T()),O=()=>{f.value=T()},x=()=>({prop:"sort",order:"ascending"}),w=e.ref(x()),L=t=>{w.value=t},Q=()=>({pageNum:1,pageSize:10,total:0,pageSizes:[5,10,20,50,100]}),g=e.ref(Q()),j=t=>{g.value.pageNum=t},H=t=>{g.value.pageSize=t},J=()=>({platId:l.value,pageNum:g.value.pageNum,pageSize:g.value.pageSize,filter:{...f.value},orderBy:{prop:w.value.prop,order:w.value.order}}),K=async t=>{var n;const o=await Se(t);return(n=o==null?void 0:o.data)==null?void 0:n.result},B=async t=>{const o=J(),n=await K(o),{total:y}=n||{};return g.value.total=y,n||{}},W=t=>{const o=u.formatterTimeStr(Date.now()),n=u.cloneDeep(t);return n.update_time=o,n},_=t=>{const o=u.formatterTimeStr(Date.now());let n={name:"",code:"",sort:1,status:m.ENABLE.value,create_time:o,update_time:o};if(t){const y=W(t);n={...n,...y}}return n},k=t=>{const o=[t];return{platId:l.value,changePostData:o}},X=async t=>{delete t.post_id;const o=k(t);await De(o)},Y=async t=>{await X(t)},Z=async t=>{const o=k(t);await Te(o)},v=async t=>{await Z(t)},ee=async t=>{const{post_id:o}=t,n={platId:l.value,post_id:[o]};await Le(n)},q=async t=>{await u.ElMessageBox.confirm("是否确认要删除","",{showClose:!1,confirmButtonText:"确认",cancelButtonText:"取消",type:"warning",modalClass:"delete-position-message-modal",confirmButtonClass:"delete-position-confirm"}),await ee(t)},te=async t=>{var n;const o=await F.importData(t);return(n=o==null?void 0:o.data)==null?void 0:n.result},i=async t=>{const o=new FormData;return o.set("platId",l.value),o.set("file",t),o.set("tableType",me),await te(o)},b=async t=>await F.exportData(t),oe=async()=>{const t={platId:l.value,tableType:me,filter:f.value,orderBy:w.value},o=await b(t);return F.initDownloadFileByResponse(o),o},z=[["名称","编码","状态","排序"]];return{sortInfo:w,setSortInfo:L,queryInfo:f,resetQuery:O,pageInfo:g,setPageNum:j,setPageSize:H,hasPositionEditAuth:N,initPositionItem:_,initPositionConfig:G,initGetByPage:B,initCreate:Y,initUpdate:v,initDelete:q,getStatusLabelByValue:R,getStatusTagByValue:D,initImport:i,initExport:oe,exportTemplate:async()=>{const t=$.utils.aoa_to_sheet(z),o=$.utils.book_new();$.utils.book_append_sheet(o,t,"职位"),$.writeFileSync(o,"职位模板.xlsx")}}},qe={class:"position-management"},ze={class:"header"},Ue={class:"header-left"},Ae={class:"query-wrapper"},$e={class:"header-right"},Fe={class:"body"},Re={class:"position-table-wrapper"},Me={class:"table-wrapper"},Ge={class:"operate-list"},Oe=["onClick"],Qe={class:"pagination-wrapper"},je={class:"position-management-wrapper"},He={class:"position-management-body"},Je={class:"position-form-wrapper"},Ke={class:"edit-footer"},We={class:"footer-right"},Xe=e.defineComponent({__name:"index",setup(l){const r=u.useMenuState(u.pinia),{sortInfo:S,setSortInfo:R,queryInfo:D,resetQuery:h,pageInfo:N,setPageNum:M,setPageSize:G,initGetByPage:T,hasPositionEditAuth:f,initPositionConfig:O,initPositionItem:x,initCreate:w,initUpdate:L,initDelete:Q,getStatusLabelByValue:g,getStatusTagByValue:j,initImport:H,initExport:J,exportTemplate:K}=ke(),B=e.ref([]),W=async()=>{const s=await T(),{postData:a=[]}=s;return a},_=async()=>{B.value=await W()},k=s=>{M(s),r.setImportLoading(!0),_().finally(()=>{r.setImportLoading(!1)})},X=s=>{G(s),r.setImportLoading(!0),_().finally(()=>{r.setImportLoading(!1)})},Y=s=>{const{prop:a,order:d}=s;R({prop:a,order:d}),_()},Z=async()=>{h(),r.setImportLoading(!0),await _().finally(()=>{r.setImportLoading(!1)})},v=async()=>{await O(),await _()};e.onMounted(async()=>{r.setImportLoading(!0),await v().finally(()=>{r.setImportLoading(!1)})});const ee=async(s,a)=>{if(!f.value)return;const{value:d}=s,p=a.row;if(d==="edit"){ae(p);return}if(d==="delete"){r.setImportLoading(!0),await y(p).finally(()=>{r.setImportLoading(!1)});return}},q=e.ref(),te=e.reactive({name:[{required:!0,message:"请输入职位名称",trigger:"blur"}],code:[{required:!0,message:"请选择职位编码",trigger:"blur"}],sort:[{required:!0,message:"请输入排序",trigger:"blur"}]}),i=e.ref(x());e.ref([]);const b=e.ref(!1),oe=()=>{b.value=!0},z=()=>{b.value=!1},ae=async s=>{f.value&&(i.value=x(s),oe())},t=()=>{i.value=x(),z()},o=async()=>{await w(i.value),await v()},n=async()=>{await L(i.value),await v()},y=async s=>{await Q(s),await v()},U=async()=>{var a,d;await((d=(a=q.value)==null?void 0:a.validate)==null?void 0:d.call(a));const{post_id:s}=i.value;r.setImportLoading(!0),s?await n().finally(()=>{r.setImportLoading(!1)}):await o().finally(()=>{r.setImportLoading(!1)}),t()},fe=async s=>{if(!f.value)return;const{status:a}=s;m.ENABLE.value===a?s.status=m.DISABLED.value:s.status=m.ENABLE.value,await L(s),await v()},ge=async()=>{await _e()},_e=async()=>{const s=document.createElement("input");s.type="file",s.accept=".xlsx",s.onchange=async a=>{var E;const p=(E=a.target.files)==null?void 0:E[0];if(p)try{r.setImportLoading(!0),await H(p),await v(),r.setImportLoading(!1)}catch{r.setImportLoading(!1)}},s.click()},ve=async()=>{r.setImportLoading(!0),await J().finally(()=>{r.setImportLoading(!1)})},ye=async()=>{K()};return(s,a)=>{var ce,de,ue,pe;const d=e.resolveComponent("el-input"),p=e.resolveComponent("el-button"),E=e.resolveComponent("el-icon"),ne=e.resolveComponent("el-dropdown-item"),we=e.resolveComponent("el-dropdown-menu"),Ve=e.resolveComponent("el-dropdown"),I=e.resolveComponent("el-table-column"),Ne=e.resolveComponent("el-tag"),Ce=e.resolveComponent("el-table"),he=e.resolveComponent("el-pagination"),se=e.resolveComponent("el-form-item"),re=e.resolveComponent("el-col"),ie=e.resolveComponent("el-row"),xe=e.resolveComponent("el-input-number"),be=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",qe,[e.createElementVNode("div",ze,[e.createElementVNode("div",Ue,[e.createElementVNode("div",Ae,[e.createVNode(d,{modelValue:e.unref(D).name,"onUpdate:modelValue":a[0]||(a[0]=c=>e.unref(D).name=c),style:{width:"240px"},placeholder:"请输入名称"},null,8,["modelValue"]),e.createVNode(p,{type:"primary",onClick:_},{default:e.withCtx(()=>a[5]||(a[5]=[e.createTextVNode("查询")])),_:1,__:[5]}),e.createVNode(p,{type:"primary",plain:"",onClick:Z},{default:e.withCtx(()=>a[6]||(a[6]=[e.createTextVNode("重置")])),_:1,__:[6]})])]),e.createElementVNode("div",$e,[e.createVNode(p,{type:"primary",onClick:ge},{default:e.withCtx(()=>[a[7]||(a[7]=e.createTextVNode(" 导入 ")),e.createVNode(E,{class:"el-icon--right"},{default:e.withCtx(()=>[e.createVNode(e.unref(C.upload_default))]),_:1})]),_:1,__:[7]}),e.createVNode(Ve,null,{dropdown:e.withCtx(()=>[e.createVNode(we,null,{default:e.withCtx(()=>[e.createVNode(ne,{onClick:ye},{default:e.withCtx(()=>a[9]||(a[9]=[e.createTextVNode("导出模板")])),_:1,__:[9]}),e.createVNode(ne,{onClick:ve},{default:e.withCtx(()=>a[10]||(a[10]=[e.createTextVNode("导出数据")])),_:1,__:[10]})]),_:1})]),default:e.withCtx(()=>[e.createVNode(p,{type:"primary"},{default:e.withCtx(()=>[a[8]||(a[8]=e.createTextVNode(" 导出 ")),e.createVNode(E,{class:"el-icon--right"},{default:e.withCtx(()=>[e.createVNode(e.unref(C.arrow_down_default))]),_:1})]),_:1,__:[8]})]),_:1}),e.createVNode(le._sfc_main,{emptyColor:!0,onClickTrigger:a[1]||(a[1]=c=>ae()),modelValue:"创建职位",buttonType:"primary"})])]),e.createElementVNode("div",Fe,[e.createElementVNode("div",Re,[e.createElementVNode("div",Me,[e.createVNode(Ce,{class:"department-table",data:B.value,"empty-text":"","default-sort":e.unref(S),onSortChange:Y},{default:e.withCtx(()=>[e.createVNode(I,{prop:"name",label:"名称",align:"center"}),e.createVNode(I,{prop:"code",label:"编码",align:"center"}),e.createVNode(I,{prop:"status",label:"状态",align:"center"},{default:e.withCtx(c=>[e.createVNode(Ne,{class:"status-tag",type:e.unref(j)(c.row.status),title:"点击切换",onClick:A=>fe(c.row)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(g)(c.row.status)),1)]),_:2},1032,["type","onClick"])]),_:1}),e.createVNode(I,{prop:"sort",label:"排序",align:"center",sortable:"custom"}),e.createVNode(I,{label:"操作",align:"center"},{default:e.withCtx(c=>[e.createElementVNode("div",Ge,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Be),A=>(e.openBlock(),e.createElementBlock("div",{class:"operate-item",key:A.value,onClick:e.withModifiers(Ze=>ee(A,c),["stop"])},e.toDisplayString(A.label),9,Oe))),128))])]),_:1})]),_:1},8,["data","default-sort"])]),e.createElementVNode("div",Qe,[a[11]||(a[11]=e.createElementVNode("div",null,null,-1)),e.createVNode(he,{onSizeChange:X,onCurrentChange:k,"current-page":(ce=e.unref(N))==null?void 0:ce.pageNum,"page-sizes":(de=e.unref(N))==null?void 0:de.pageSizes,"page-size":((ue=e.unref(N))==null?void 0:ue.pageSize)??10,layout:"total, sizes, prev, pager, next, jumper",total:((pe=e.unref(N))==null?void 0:pe.total)??0},null,8,["current-page","page-sizes","page-size","total"])])])]),a[14]||(a[14]=e.createElementVNode("div",{class:"footer"},[e.createElementVNode("div",{class:"footer-left"}),e.createElementVNode("div",{class:"footer-right"})],-1)),e.createVNode(Ee.ssDialog,{class:"position-edit-dialog",visible:b.value,title:"职位信息",onBeforeDestroy:z,showClose:!0,closeOnClickModal:!1,closeOnPressEscape:!1,modalClass:"position-edit-modal",alignCenter:!0,appendToBody:!1},{default:e.withCtx(()=>[e.createElementVNode("div",je,[a[12]||(a[12]=e.createElementVNode("div",{class:"position-management-header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",He,[e.createElementVNode("div",Je,[e.createVNode(be,{class:"position-edit-form",ref_key:"positionFormRef",ref:q,model:i.value,rules:te},{default:e.withCtx(()=>[e.createVNode(ie,{gutter:20},{default:e.withCtx(()=>[e.createVNode(re,{span:12},{default:e.withCtx(()=>[e.createVNode(se,{prop:"name",label:"职位名称","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:i.value.name,"onUpdate:modelValue":a[2]||(a[2]=c=>i.value.name=c),"aria-label":"职位名称",placeholder:"职位名称"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(re,{span:12},{default:e.withCtx(()=>[e.createVNode(se,{prop:"code",label:"职位编码","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:i.value.code,"onUpdate:modelValue":a[3]||(a[3]=c=>i.value.code=c),"aria-label":"职位编码",placeholder:"职位编码"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(ie,{gutter:20},{default:e.withCtx(()=>[e.createVNode(re,{span:12},{default:e.withCtx(()=>[e.createVNode(se,{prop:"sort",label:"排序","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(xe,{modelValue:i.value.sort,"onUpdate:modelValue":a[4]||(a[4]=c=>i.value.sort=c),"aria-label":"排序",placeholder:"排序",min:"1"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",Ke,[a[13]||(a[13]=e.createElementVNode("div",{class:"footer-left"},null,-1)),e.createElementVNode("div",We,[e.createVNode(le._sfc_main,{class:"cancel",emptyColor:!0,onClickTrigger:t,modelValue:"取消",buttonType:"info"}),e.createVNode(le._sfc_main,{class:"confirm",emptyColor:!0,onClickTrigger:U,modelValue:"确定",buttonType:"primary"})])])]),_:1},8,["visible"])])}}}),Ye=Ie._export_sfc(Xe,[["__scopeId","data-v-c988d077"]]);exports.default=Ye;
@@ -1,4 +1,4 @@
1
- "use strict";var Ydt=Object.defineProperty;var Zdt=(r,t,e)=>t in r?Ydt(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var Ur=(r,t,e)=>Zdt(r,typeof t!="symbol"?t+"":t,e);const Ar=require("./index-Pve69buQ.cjs"),fp=require("./index-kSKXfPuW.cjs"),Kdt=require("./index-CB7sgFj7.cjs"),Ya=require("./request-Dl8yi2iS.cjs");var Jdt=/\s/;function Qdt(r){for(var t=r.length;t--&&Jdt.test(r.charAt(t)););return t}var tpt=/^\s+/;function ept(r){return r&&r.slice(0,Qdt(r)+1).replace(tpt,"")}var eU=NaN,rpt=/^[-+]0x[0-9a-f]+$/i,npt=/^0b[01]+$/i,ipt=/^0o[0-7]+$/i,apt=parseInt;function rU(r){if(typeof r=="number")return r;if(Ya.isSymbol(r))return eU;if(Ya.isObject(r)){var t=typeof r.valueOf=="function"?r.valueOf():r;r=Ya.isObject(t)?t+"":t}if(typeof r!="string")return r===0?r:+r;r=ept(r);var e=npt.test(r);return e||ipt.test(r)?apt(r.slice(2),e?2:8):rpt.test(r)?eU:+r}function spt(r,t){return Ar.setToString(Ar.overRest(r,t,Ar.identity),r+"")}function opt(r,t,e){if(!Ya.isObject(e))return!1;var n=typeof t;return(n=="number"?Ar.isArrayLike(e)&&Ar.isIndex(t,e.length):n=="string"&&t in e)?Ya.eq(e[t],r):!1}function lpt(r){return spt(function(t,e){var n=-1,i=e.length,a=i>1?e[i-1]:void 0,s=i>2?e[2]:void 0;for(a=r.length>3&&typeof a=="function"?(i--,a):void 0,s&&opt(e[0],e[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++n<i;){var o=e[n];o&&r(t,o,n,a)}return t})}var upt="[object Object]",cpt=Function.prototype,hpt=Object.prototype,JJ=cpt.toString,fpt=hpt.hasOwnProperty,dpt=JJ.call(Object);function ppt(r){if(!Ya.isObjectLike(r)||Ya.baseGetTag(r)!=upt)return!1;var t=Ar.getPrototype(r);if(t===null)return!0;var e=fpt.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&JJ.call(e)==dpt}var vpt="__lodash_hash_undefined__";function mpt(r){return this.__data__.set(r,vpt),this}function gpt(r){return this.__data__.has(r)}function mM(r){var t=-1,e=r==null?0:r.length;for(this.__data__=new Ya.MapCache;++t<e;)this.add(r[t])}mM.prototype.add=mM.prototype.push=mpt;mM.prototype.has=gpt;function ypt(r,t){for(var e=-1,n=r==null?0:r.length;++e<n;)if(t(r[e],e,r))return!0;return!1}function bpt(r,t){return r.has(t)}var wpt=1,_pt=2;function QJ(r,t,e,n,i,a){var s=e&wpt,o=r.length,l=t.length;if(o!=l&&!(s&&l>o))return!1;var u=a.get(r),c=a.get(t);if(u&&c)return u==t&&c==r;var h=-1,f=!0,d=e&_pt?new mM:void 0;for(a.set(r,t),a.set(t,r);++h<o;){var p=r[h],m=t[h];if(n)var g=s?n(m,p,h,t,r,a):n(p,m,h,r,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(d){if(!ypt(t,function(y,v){if(!bpt(d,v)&&(p===y||i(p,y,e,n,a)))return d.push(v)})){f=!1;break}}else if(!(p===m||i(p,m,e,n,a))){f=!1;break}}return a.delete(r),a.delete(t),f}function xpt(r){var t=-1,e=Array(r.size);return r.forEach(function(n,i){e[++t]=[i,n]}),e}function Spt(r){var t=-1,e=Array(r.size);return r.forEach(function(n){e[++t]=n}),e}var Tpt=1,Ept=2,Apt="[object Boolean]",Mpt="[object Date]",Cpt="[object Error]",kpt="[object Map]",Rpt="[object Number]",Dpt="[object RegExp]",Ipt="[object Set]",Lpt="[object String]",Ppt="[object Symbol]",Npt="[object ArrayBuffer]",Opt="[object DataView]",nU=Ya.Symbol?Ya.Symbol.prototype:void 0,m8=nU?nU.valueOf:void 0;function Fpt(r,t,e,n,i,a,s){switch(e){case Opt:if(r.byteLength!=t.byteLength||r.byteOffset!=t.byteOffset)return!1;r=r.buffer,t=t.buffer;case Npt:return!(r.byteLength!=t.byteLength||!a(new Ar.Uint8Array(r),new Ar.Uint8Array(t)));case Apt:case Mpt:case Rpt:return Ya.eq(+r,+t);case Cpt:return r.name==t.name&&r.message==t.message;case Dpt:case Lpt:return r==t+"";case kpt:var o=xpt;case Ipt:var l=n&Tpt;if(o||(o=Spt),r.size!=t.size&&!l)return!1;var u=s.get(r);if(u)return u==t;n|=Ept,s.set(r,t);var c=QJ(o(r),o(t),n,i,a,s);return s.delete(r),c;case Ppt:if(m8)return m8.call(r)==m8.call(t)}return!1}var Bpt=1,zpt=Object.prototype,Upt=zpt.hasOwnProperty;function Vpt(r,t,e,n,i,a){var s=e&Bpt,o=Ar.getAllKeys(r),l=o.length,u=Ar.getAllKeys(t),c=u.length;if(l!=c&&!s)return!1;for(var h=l;h--;){var f=o[h];if(!(s?f in t:Upt.call(t,f)))return!1}var d=a.get(r),p=a.get(t);if(d&&p)return d==t&&p==r;var m=!0;a.set(r,t),a.set(t,r);for(var g=s;++h<l;){f=o[h];var y=r[f],v=t[f];if(n)var b=s?n(v,y,f,t,r,a):n(y,v,f,r,t,a);if(!(b===void 0?y===v||i(y,v,e,n,a):b)){m=!1;break}g||(g=f=="constructor")}if(m&&!g){var w=r.constructor,_=t.constructor;w!=_&&"constructor"in r&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof _=="function"&&_ instanceof _)&&(m=!1)}return a.delete(r),a.delete(t),m}var Hpt=1,iU="[object Arguments]",aU="[object Array]",VE="[object Object]",jpt=Object.prototype,sU=jpt.hasOwnProperty;function Wpt(r,t,e,n,i,a){var s=Ya.isArray(r),o=Ya.isArray(t),l=s?aU:Ar.getTag(r),u=o?aU:Ar.getTag(t);l=l==iU?VE:l,u=u==iU?VE:u;var c=l==VE,h=u==VE,f=l==u;if(f&&Ar.isBuffer(r)){if(!Ar.isBuffer(t))return!1;s=!0,c=!1}if(f&&!c)return a||(a=new Ar.Stack),s||Ar.isTypedArray(r)?QJ(r,t,e,n,i,a):Fpt(r,t,l,e,n,i,a);if(!(e&Hpt)){var d=c&&sU.call(r,"__wrapped__"),p=h&&sU.call(t,"__wrapped__");if(d||p){var m=d?r.value():r,g=p?t.value():t;return a||(a=new Ar.Stack),i(m,g,e,n,a)}}return f?(a||(a=new Ar.Stack),Vpt(r,t,e,n,i,a)):!1}function tQ(r,t,e,n,i){return r===t?!0:r==null||t==null||!Ya.isObjectLike(r)&&!Ya.isObjectLike(t)?r!==r&&t!==t:Wpt(r,t,e,n,tQ,i)}function Gpt(r){return function(t,e,n){for(var i=-1,a=Object(t),s=n(t),o=s.length;o--;){var l=s[++i];if(e(a[l],l,a)===!1)break}return t}}var $pt=Gpt(),g8=function(){return Ya.root.Date.now()},qpt="Expected a function",Xpt=Math.max,Ypt=Math.min;function eQ(r,t,e){var n,i,a,s,o,l,u=0,c=!1,h=!1,f=!0;if(typeof r!="function")throw new TypeError(qpt);t=rU(t)||0,Ya.isObject(e)&&(c=!!e.leading,h="maxWait"in e,a=h?Xpt(rU(e.maxWait)||0,t):a,f="trailing"in e?!!e.trailing:f);function d(x){var S=n,T=i;return n=i=void 0,u=x,s=r.apply(T,S),s}function p(x){return u=x,o=setTimeout(y,t),c?d(x):s}function m(x){var S=x-l,T=x-u,E=t-S;return h?Ypt(E,a-T):E}function g(x){var S=x-l,T=x-u;return l===void 0||S>=t||S<0||h&&T>=a}function y(){var x=g8();if(g(x))return v(x);o=setTimeout(y,m(x))}function v(x){return o=void 0,f&&n?d(x):(n=i=void 0,s)}function b(){o!==void 0&&clearTimeout(o),u=0,n=l=i=o=void 0}function w(){return o===void 0?s:v(g8())}function _(){var x=g8(),S=g(x);if(n=arguments,i=this,l=x,S){if(o===void 0)return p(l);if(h)return clearTimeout(o),o=setTimeout(y,t),d(l)}return o===void 0&&(o=setTimeout(y,t)),s}return _.cancel=b,_.flush=w,_}function jL(r,t,e){(e!==void 0&&!Ya.eq(r[t],e)||e===void 0&&!(t in r))&&Ar.baseAssignValue(r,t,e)}function Zpt(r){return Ya.isObjectLike(r)&&Ar.isArrayLike(r)}function WL(r,t){if(!(t==="constructor"&&typeof r[t]=="function")&&t!="__proto__")return r[t]}function Kpt(r){return Ar.copyObject(r,Ar.keysIn(r))}function Jpt(r,t,e,n,i,a,s){var o=WL(r,e),l=WL(t,e),u=s.get(l);if(u){jL(r,e,u);return}var c=a?a(o,l,e+"",r,t,s):void 0,h=c===void 0;if(h){var f=Ya.isArray(l),d=!f&&Ar.isBuffer(l),p=!f&&!d&&Ar.isTypedArray(l);c=l,f||d||p?Ya.isArray(o)?c=o:Zpt(o)?c=Ar.copyArray(o):d?(h=!1,c=Ar.cloneBuffer(l,!0)):p?(h=!1,c=Ar.cloneTypedArray(l,!0)):c=[]:ppt(l)||Ar.isArguments(l)?(c=o,Ar.isArguments(o)?c=Kpt(o):(!Ya.isObject(o)||Ya.isFunction(o))&&(c=Ar.initCloneObject(l))):h=!1}h&&(s.set(l,c),i(c,l,n,a,s),s.delete(l)),jL(r,e,c)}function rQ(r,t,e,n,i){r!==t&&$pt(t,function(a,s){if(i||(i=new Ar.Stack),Ya.isObject(a))Jpt(r,t,s,e,rQ,n,i);else{var o=n?n(WL(r,s),a,s+"",r,t,i):void 0;o===void 0&&(o=a),jL(r,s,o)}},Ar.keysIn)}function ZC(r,t){return tQ(r,t)}var ym=lpt(function(r,t,e){rQ(r,t,e)});const Qpt=Ar.useUnit(Ar.pinia),{selectTitle:y8}=Ar.storeToRefs(Qpt),tvt=Ar.useMenuState(Ar.pinia),{currentMenuPath:Ey}=Ar.storeToRefs(tvt);let xv="$R";const u_=new Map,evt=r=>r==null?void 0:r.map(e=>{var o,l,u,c,h,f,d,p,m,g,y,v,b,w,_,x,S,T,E,D,L,B,M,R,A,C,I,k,N,z,O;let n=(c=(u=(l=(o=e==null?void 0:e.contents)==null?void 0:o.find(H=>{var V;return(V=H==null?void 0:H.key)==null?void 0:V.includes("struct")}))==null?void 0:l.value)==null?void 0:u[0])==null?void 0:c.类型,i=Object.values(e==null?void 0:e.name);i=i==null?void 0:i.reverse();let a=(h=e==null?void 0:e.contents)==null?void 0:h.map(H=>H==null?void 0:H.key),s={comp:n,isShow:e==null?void 0:e.is_show,name:i==null?void 0:i[0],id:e==null?void 0:e.object_id,relatedTables:a};for(let H in i)parseInt(H)>=1&&(s[`name${parseInt(H)-1}`]=i[H]);if(n==="Table"){let H=(f=e==null?void 0:e.contents)==null?void 0:f.find(Y=>{var Q;return(Q=Y==null?void 0:Y.key)==null?void 0:Q.includes("content")}),V=[];H.value=(d=H==null?void 0:H.value)==null?void 0:d.sort((Y,Q)=>parseInt(Y==null?void 0:Y.id)-parseInt(Q==null?void 0:Q.id)),V.push({key:"tableContents",contents:H==null?void 0:H.value});let G=(v=(y=(g=(m=(p=e==null?void 0:e.contents)==null?void 0:p.find(Y=>{var Q;return(Q=Y==null?void 0:Y.key)==null?void 0:Q.includes("struct")}))==null?void 0:m.value)==null?void 0:g[0])==null?void 0:y.结构)==null?void 0:v.contents;V.push({key:"header",contents:G}),V.push({key:"filter",contents:(S=(x=(_=(w=(b=e==null?void 0:e.contents)==null?void 0:b.find(Y=>{var Q;return(Q=Y==null?void 0:Y.key)==null?void 0:Q.includes("struct")}))==null?void 0:w.value)==null?void 0:_[0])==null?void 0:x.引用)==null?void 0:S.contents}),s.compData=V}else if(n==="Form"){let H=[],V=(D=(E=(T=e==null?void 0:e.contents)==null?void 0:T.find(Y=>{var Q;return(Q=Y==null?void 0:Y.key)==null?void 0:Q.includes("content")}))==null?void 0:E.value)==null?void 0:D[0],G=(C=(A=(R=(M=(B=(L=e==null?void 0:e.contents)==null?void 0:L.find(Y=>{var Q;return(Q=Y==null?void 0:Y.key)==null?void 0:Q.includes("struct")}))==null?void 0:B.value)==null?void 0:M[0])==null?void 0:R.结构)==null?void 0:A.contents)==null?void 0:C.map(Y=>(Y.value=V==null?void 0:V[Y==null?void 0:Y.prop],Y));H.push({key:"filter",contents:(O=(z=(N=(k=(I=e==null?void 0:e.contents)==null?void 0:I.find(Y=>{var Q;return(Q=Y==null?void 0:Y.key)==null?void 0:Q.includes("struct")}))==null?void 0:k.value)==null?void 0:N[0])==null?void 0:z.引用)==null?void 0:O.contents}),H.push({key:"formContent",contents:G}),s.compData=H}return s}),g5=async r=>new Promise((t,e)=>{var s,o;const n=Ar.useLoginState(Ar.pinia),{loginUserInfo:i}=Ar.storeToRefs(n);if(u_.has(r)){const l=u_.get(r);l.resolve=t,l.reject=e,l.debouncedFn(r,(s=i==null?void 0:i.value)==null?void 0:s.plat_id);return}const a=eQ(async(l,u)=>{var h,f,d;const c=u_.get(l);try{const p=await Ar.getPageDataApi({platId:parseInt(u),pageName:l}),m=(h=p==null?void 0:p.data)==null?void 0:h.result,g=evt(m);(f=c==null?void 0:c.resolve)==null||f.call(c,g)}catch(p){(d=c==null?void 0:c.reject)==null||d.call(c,p)}finally{u_.delete(l)}},10);u_.set(r,{debouncedFn:a,resolve:t,reject:e,timer:null}),a(r,(o=i==null?void 0:i.value)==null?void 0:o.plat_id)}),rvt=async r=>{var l,u,c,h,f,d,p,m,g,y,v,b,w,_,x,S,T,E,D,L,B,M,R,A,C,I,k,N,z,O,H,V,G,Y,Q,_t,ot,wt,it,K,nt,ct,q,at,st,dt,W,tt,lt,Ct,Pt,X,rt,Tt,pt,ht,et,mt;let t=(l=r==null?void 0:r.menus)==null?void 0:l.join("/"),e=r==null?void 0:r.relatedWords;if((t==null?void 0:t[(t==null?void 0:t.length)-1])==="/")if(r!=null&&r.isMainPath){let ut=t==null?void 0:t.slice(0,(t==null?void 0:t.length)-1),gt=await g5(ut);gt=gt==null?void 0:gt.filter(bt=>(bt==null?void 0:bt.comp)==="Table");let St=r==null?void 0:r.words;St=St==null?void 0:St.join(".");let At=(g=(m=(p=gt==null?void 0:gt[0])==null?void 0:p.compData)==null?void 0:m.find(bt=>(bt==null?void 0:bt.key)==="tableContents"))==null?void 0:g.contents;if(r!=null&&r.filter&&((y=r==null?void 0:r.filter)!=null&&y.includes("@If"))){let bt=((w=(b=(v=r==null?void 0:r.filter)==null?void 0:v.split(","))==null?void 0:b.filter(kt=>kt==null?void 0:kt.includes("@If")))==null?void 0:w[0])??"";if(bt&&bt!==""){(bt==null?void 0:bt[(bt==null?void 0:bt.length)-1])===","&&(bt=bt==null?void 0:bt.slice(0,(bt==null?void 0:bt.length)-1)),bt=(x=(_=bt==null?void 0:bt.replace("(",xv))==null?void 0:_.split(xv))==null?void 0:x[1],bt=bt==null?void 0:bt.slice(0,(bt==null?void 0:bt.length)-1),(bt==null?void 0:bt[0])==="*"&&(bt="{"+((T=(S=bt==null?void 0:bt.replace("{",xv))==null?void 0:S.split(xv))==null?void 0:T[1])),bt=(E=bt==null?void 0:bt.replaceAll("{",""))==null?void 0:E.replaceAll("}","");let kt=fp.calculatorAndToOr(bt);kt=kt==null?void 0:kt[0];for(let Ot in kt)At=(D=At==null?void 0:At.map(Gt=>{if((Gt==null?void 0:Gt[Ot])===(kt==null?void 0:kt[Ot]))return Gt;for(let Ft in Gt)if(Ft!=null&&Ft.includes(Ot)&&(Gt==null?void 0:Gt[Ft])===(kt==null?void 0:kt[Ot]))return Gt;return""}))==null?void 0:D.filter(Gt=>Gt!=="")}}(St==null?void 0:St[(St==null?void 0:St.length)-1])==="."&&(St=St==null?void 0:St.slice(0,(St==null?void 0:St.length)-1));let Dt;return e&&Array.isArray(e)&&(e==null?void 0:e.length)>0?Dt=At==null?void 0:At.map(bt=>{let kt="",Ot=Object.keys(bt);return e==null||e.forEach(Gt=>{var Ft,oe,Zt,he;if(Ot!=null&&Ot.find(fe=>{var re,ge;return fe==null?void 0:fe.includes("."+((ge=Gt==null?void 0:Gt.split("."))==null?void 0:ge[((re=Gt==null?void 0:Gt.split("."))==null?void 0:re.length)-1]))})){let fe=Ot==null?void 0:Ot.find(re=>{var ge,be;return re==null?void 0:re.includes("."+((be=Gt==null?void 0:Gt.split("."))==null?void 0:be[((ge=Gt==null?void 0:Gt.split("."))==null?void 0:ge.length)-1]))});kt=kt===""?kt+((bt==null?void 0:bt[fe])??""):kt+" "+((bt==null?void 0:bt[fe])??"")}else kt=kt===""?kt+((bt==null?void 0:bt[Gt])??(bt==null?void 0:bt[(oe=Gt==null?void 0:Gt.split("."))==null?void 0:oe[((Ft=Gt==null?void 0:Gt.split("."))==null?void 0:Ft.length)-1]])):kt+" "+((bt==null?void 0:bt[Gt])??(bt==null?void 0:bt[(he=Gt==null?void 0:Gt.split("."))==null?void 0:he[((Zt=Gt==null?void 0:Gt.split("."))==null?void 0:Zt.length)-1]])??"")}),{label:kt,value:kt}}):Dt=At==null?void 0:At.map(bt=>({label:bt==null?void 0:bt[St],value:bt==null?void 0:bt[St]})),Dt=Dt==null?void 0:Dt.filter(bt=>bt.label),Dt}else if(r!=null&&r.endChildMenu&&(r==null?void 0:r.endChildMenu)!=="")t=t+((c=(u=r==null?void 0:r.endChildMenu)==null?void 0:u.split(" "))==null?void 0:c[0]);else{let ut=(h=y8.value)==null?void 0:h.filter(gt=>(gt==null?void 0:gt.condition)==="child");((f=ut==null?void 0:ut[0])==null?void 0:f.parentContent)+"/"===t?t=t==null?void 0:t.slice(0,(t==null?void 0:t.length)-1):(ut=(d=ut==null?void 0:ut[0])==null?void 0:d.value,t=t+ut)}let n=await g5(t),i=r==null?void 0:r.groups,a=r==null?void 0:r.words;n=n==null?void 0:n.filter(ut=>(ut==null?void 0:ut.name)===(i==null?void 0:i[(i==null?void 0:i.length)-1]));let s;if((M=(B=(L=n==null?void 0:n[0])==null?void 0:L.compData)==null?void 0:B.find(ut=>(ut==null?void 0:ut.key)==="tableContents"))!=null&&M.contents)s=(C=(A=(R=n==null?void 0:n[0])==null?void 0:R.compData)==null?void 0:A.find(ut=>(ut==null?void 0:ut.key)==="tableContents"))==null?void 0:C.contents;else{let ut={};(z=(N=(k=(I=n==null?void 0:n[0])==null?void 0:I.compData)==null?void 0:k.find(gt=>(gt==null?void 0:gt.key)==="formContent"))==null?void 0:N.contents)==null||z.forEach(gt=>{ut[gt.prop]=gt.value}),s=[ut]}if(r!=null&&r.filter&&(r==null?void 0:r.filter)!==""){let ut=fp.analyzeSplitToContent(r==null?void 0:r.filter,",");if(ut=((O=ut==null?void 0:ut.filter(gt=>gt==null?void 0:gt.includes("@If")))==null?void 0:O[0])??"",ut&&ut!==""){(ut==null?void 0:ut[(ut==null?void 0:ut.length)-1])===","&&(ut=ut==null?void 0:ut.slice(0,(ut==null?void 0:ut.length)-1)),ut=(V=(H=ut==null?void 0:ut.replace("(",xv))==null?void 0:H.split(xv))==null?void 0:V[1],ut=ut==null?void 0:ut.slice(0,(ut==null?void 0:ut.length)-1),(ut==null?void 0:ut[0])==="*"&&(ut="{"+((Y=(G=ut==null?void 0:ut.replace("{",xv))==null?void 0:G.split(xv))==null?void 0:Y[1])),ut=(Q=ut==null?void 0:ut.replaceAll("{",""))==null?void 0:Q.replaceAll("}","");let gt=fp.calculatorAndToOr(ut);gt=gt==null?void 0:gt[0];let St;if((_t=Object.values(gt))!=null&&_t.some(At=>(At==null?void 0:At[0])==="*")){let At=(wt=(ot=y8.value)==null?void 0:ot.find(Dt=>(Dt==null?void 0:Dt.condition)==="child"))!=null&&wt.value?(Ey==null?void 0:Ey.value)+"/"+((K=(it=y8.value)==null?void 0:it.find(Dt=>(Dt==null?void 0:Dt.condition)==="child"))==null?void 0:K.value):Ey==null?void 0:Ey.value;St=await g5(At)}for(let At in gt)if(((nt=gt==null?void 0:gt[At])==null?void 0:nt[0])==="*"){let Dt=(st=(at=(q=gt[At])==null?void 0:q.slice(1,(ct=gt[At])==null?void 0:ct.length))==null?void 0:at.split(":"))==null?void 0:st[0],bt=(W=(dt=gt[At])==null?void 0:dt.split(":"))==null?void 0:W[1],kt=(tt=St==null?void 0:St.filter(Ot=>(Ot==null?void 0:Ot.name)===Dt))==null?void 0:tt[0];kt=(Ct=(lt=kt==null?void 0:kt.compData)==null?void 0:lt.find(Ot=>(Ot==null?void 0:Ot.key)==="tableContents"))==null?void 0:Ct.contents,kt=(Pt=kt==null?void 0:kt[0])==null?void 0:Pt[bt],gt[At]=kt}for(let At in gt)s=(X=s==null?void 0:s.map(Dt=>{var bt,kt;if((Dt==null?void 0:Dt[At])===(gt==null?void 0:gt[At])||r!=null&&r.endChildMenu)return Dt;for(let Ot in Dt)if(((kt=Ot==null?void 0:Ot.split("."))==null?void 0:kt[((bt=Ot==null?void 0:Ot.split("."))==null?void 0:bt.length)-1])===At&&Dt[Ot]===(gt==null?void 0:gt[At]))return Dt}))==null?void 0:X.filter(Dt=>Dt)}}if(t==="系统管理/角色管理"){const ut=Ar.useLoginState(Ar.pinia),{loginUserInfo:gt}=Ar.storeToRefs(ut);n=await Ar.getAllTables({platId:parseInt((rt=gt==null?void 0:gt.value)==null?void 0:rt.plat_id),tableNames:["role"]}),n=((pt=(Tt=n==null?void 0:n.data)==null?void 0:Tt.result)==null?void 0:pt[0])??[],s=n}if(t==="系统管理/部门管理"){const ut=Ar.useLoginState(Ar.pinia),{loginUserInfo:gt}=Ar.storeToRefs(ut),St=(ht=gt==null?void 0:gt.value)==null?void 0:ht.plat_id;n=await Kdt.getDepartmentOptions(St),n=((et=n==null?void 0:n.data)==null?void 0:et.result)||[],s=n}a=(mt=a==null?void 0:a.join("."))==null?void 0:mt.replaceAll("'",""),(a==null?void 0:a[(a==null?void 0:a.length)-1])==="."&&(a=a==null?void 0:a.slice(0,(a==null?void 0:a.length)-1));let o;return e&&Array.isArray(e)&&(e==null?void 0:e.length)>0?o=s==null?void 0:s.map(ut=>{let gt="",St=Object.keys(ut);return e==null||e.forEach(At=>{if(St!=null&&St.find(Dt=>{var bt,kt;return Dt==null?void 0:Dt.includes("."+((kt=At==null?void 0:At.split("."))==null?void 0:kt[((bt=At==null?void 0:At.split("."))==null?void 0:bt.length)-1]))})){let Dt=St==null?void 0:St.find(bt=>{var kt,Ot;return bt==null?void 0:bt.includes("."+((Ot=At==null?void 0:At.split("."))==null?void 0:Ot[((kt=At==null?void 0:At.split("."))==null?void 0:kt.length)-1]))});gt=gt===""?gt+((ut==null?void 0:ut[Dt])??""):gt+" "+((ut==null?void 0:ut[Dt])??"")}else gt=gt===""?gt+(ut==null?void 0:ut[At]):gt+" "+(ut==null?void 0:ut[At])}),{label:gt,value:gt}}):o=s==null?void 0:s.map(ut=>({label:ut==null?void 0:ut[a],value:ut==null?void 0:ut[a]})),o=o==null?void 0:o.filter(ut=>ut.label),o};/**!
1
+ "use strict";var Ydt=Object.defineProperty;var Zdt=(r,t,e)=>t in r?Ydt(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var Ur=(r,t,e)=>Zdt(r,typeof t!="symbol"?t+"":t,e);const Ar=require("./index-Pve69buQ.cjs"),fp=require("./index-BszVYrt4.cjs"),Kdt=require("./index-CB7sgFj7.cjs"),Ya=require("./request-Dl8yi2iS.cjs");var Jdt=/\s/;function Qdt(r){for(var t=r.length;t--&&Jdt.test(r.charAt(t)););return t}var tpt=/^\s+/;function ept(r){return r&&r.slice(0,Qdt(r)+1).replace(tpt,"")}var eU=NaN,rpt=/^[-+]0x[0-9a-f]+$/i,npt=/^0b[01]+$/i,ipt=/^0o[0-7]+$/i,apt=parseInt;function rU(r){if(typeof r=="number")return r;if(Ya.isSymbol(r))return eU;if(Ya.isObject(r)){var t=typeof r.valueOf=="function"?r.valueOf():r;r=Ya.isObject(t)?t+"":t}if(typeof r!="string")return r===0?r:+r;r=ept(r);var e=npt.test(r);return e||ipt.test(r)?apt(r.slice(2),e?2:8):rpt.test(r)?eU:+r}function spt(r,t){return Ar.setToString(Ar.overRest(r,t,Ar.identity),r+"")}function opt(r,t,e){if(!Ya.isObject(e))return!1;var n=typeof t;return(n=="number"?Ar.isArrayLike(e)&&Ar.isIndex(t,e.length):n=="string"&&t in e)?Ya.eq(e[t],r):!1}function lpt(r){return spt(function(t,e){var n=-1,i=e.length,a=i>1?e[i-1]:void 0,s=i>2?e[2]:void 0;for(a=r.length>3&&typeof a=="function"?(i--,a):void 0,s&&opt(e[0],e[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++n<i;){var o=e[n];o&&r(t,o,n,a)}return t})}var upt="[object Object]",cpt=Function.prototype,hpt=Object.prototype,JJ=cpt.toString,fpt=hpt.hasOwnProperty,dpt=JJ.call(Object);function ppt(r){if(!Ya.isObjectLike(r)||Ya.baseGetTag(r)!=upt)return!1;var t=Ar.getPrototype(r);if(t===null)return!0;var e=fpt.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&JJ.call(e)==dpt}var vpt="__lodash_hash_undefined__";function mpt(r){return this.__data__.set(r,vpt),this}function gpt(r){return this.__data__.has(r)}function mM(r){var t=-1,e=r==null?0:r.length;for(this.__data__=new Ya.MapCache;++t<e;)this.add(r[t])}mM.prototype.add=mM.prototype.push=mpt;mM.prototype.has=gpt;function ypt(r,t){for(var e=-1,n=r==null?0:r.length;++e<n;)if(t(r[e],e,r))return!0;return!1}function bpt(r,t){return r.has(t)}var wpt=1,_pt=2;function QJ(r,t,e,n,i,a){var s=e&wpt,o=r.length,l=t.length;if(o!=l&&!(s&&l>o))return!1;var u=a.get(r),c=a.get(t);if(u&&c)return u==t&&c==r;var h=-1,f=!0,d=e&_pt?new mM:void 0;for(a.set(r,t),a.set(t,r);++h<o;){var p=r[h],m=t[h];if(n)var g=s?n(m,p,h,t,r,a):n(p,m,h,r,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(d){if(!ypt(t,function(y,v){if(!bpt(d,v)&&(p===y||i(p,y,e,n,a)))return d.push(v)})){f=!1;break}}else if(!(p===m||i(p,m,e,n,a))){f=!1;break}}return a.delete(r),a.delete(t),f}function xpt(r){var t=-1,e=Array(r.size);return r.forEach(function(n,i){e[++t]=[i,n]}),e}function Spt(r){var t=-1,e=Array(r.size);return r.forEach(function(n){e[++t]=n}),e}var Tpt=1,Ept=2,Apt="[object Boolean]",Mpt="[object Date]",Cpt="[object Error]",kpt="[object Map]",Rpt="[object Number]",Dpt="[object RegExp]",Ipt="[object Set]",Lpt="[object String]",Ppt="[object Symbol]",Npt="[object ArrayBuffer]",Opt="[object DataView]",nU=Ya.Symbol?Ya.Symbol.prototype:void 0,m8=nU?nU.valueOf:void 0;function Fpt(r,t,e,n,i,a,s){switch(e){case Opt:if(r.byteLength!=t.byteLength||r.byteOffset!=t.byteOffset)return!1;r=r.buffer,t=t.buffer;case Npt:return!(r.byteLength!=t.byteLength||!a(new Ar.Uint8Array(r),new Ar.Uint8Array(t)));case Apt:case Mpt:case Rpt:return Ya.eq(+r,+t);case Cpt:return r.name==t.name&&r.message==t.message;case Dpt:case Lpt:return r==t+"";case kpt:var o=xpt;case Ipt:var l=n&Tpt;if(o||(o=Spt),r.size!=t.size&&!l)return!1;var u=s.get(r);if(u)return u==t;n|=Ept,s.set(r,t);var c=QJ(o(r),o(t),n,i,a,s);return s.delete(r),c;case Ppt:if(m8)return m8.call(r)==m8.call(t)}return!1}var Bpt=1,zpt=Object.prototype,Upt=zpt.hasOwnProperty;function Vpt(r,t,e,n,i,a){var s=e&Bpt,o=Ar.getAllKeys(r),l=o.length,u=Ar.getAllKeys(t),c=u.length;if(l!=c&&!s)return!1;for(var h=l;h--;){var f=o[h];if(!(s?f in t:Upt.call(t,f)))return!1}var d=a.get(r),p=a.get(t);if(d&&p)return d==t&&p==r;var m=!0;a.set(r,t),a.set(t,r);for(var g=s;++h<l;){f=o[h];var y=r[f],v=t[f];if(n)var b=s?n(v,y,f,t,r,a):n(y,v,f,r,t,a);if(!(b===void 0?y===v||i(y,v,e,n,a):b)){m=!1;break}g||(g=f=="constructor")}if(m&&!g){var w=r.constructor,_=t.constructor;w!=_&&"constructor"in r&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof _=="function"&&_ instanceof _)&&(m=!1)}return a.delete(r),a.delete(t),m}var Hpt=1,iU="[object Arguments]",aU="[object Array]",VE="[object Object]",jpt=Object.prototype,sU=jpt.hasOwnProperty;function Wpt(r,t,e,n,i,a){var s=Ya.isArray(r),o=Ya.isArray(t),l=s?aU:Ar.getTag(r),u=o?aU:Ar.getTag(t);l=l==iU?VE:l,u=u==iU?VE:u;var c=l==VE,h=u==VE,f=l==u;if(f&&Ar.isBuffer(r)){if(!Ar.isBuffer(t))return!1;s=!0,c=!1}if(f&&!c)return a||(a=new Ar.Stack),s||Ar.isTypedArray(r)?QJ(r,t,e,n,i,a):Fpt(r,t,l,e,n,i,a);if(!(e&Hpt)){var d=c&&sU.call(r,"__wrapped__"),p=h&&sU.call(t,"__wrapped__");if(d||p){var m=d?r.value():r,g=p?t.value():t;return a||(a=new Ar.Stack),i(m,g,e,n,a)}}return f?(a||(a=new Ar.Stack),Vpt(r,t,e,n,i,a)):!1}function tQ(r,t,e,n,i){return r===t?!0:r==null||t==null||!Ya.isObjectLike(r)&&!Ya.isObjectLike(t)?r!==r&&t!==t:Wpt(r,t,e,n,tQ,i)}function Gpt(r){return function(t,e,n){for(var i=-1,a=Object(t),s=n(t),o=s.length;o--;){var l=s[++i];if(e(a[l],l,a)===!1)break}return t}}var $pt=Gpt(),g8=function(){return Ya.root.Date.now()},qpt="Expected a function",Xpt=Math.max,Ypt=Math.min;function eQ(r,t,e){var n,i,a,s,o,l,u=0,c=!1,h=!1,f=!0;if(typeof r!="function")throw new TypeError(qpt);t=rU(t)||0,Ya.isObject(e)&&(c=!!e.leading,h="maxWait"in e,a=h?Xpt(rU(e.maxWait)||0,t):a,f="trailing"in e?!!e.trailing:f);function d(x){var S=n,T=i;return n=i=void 0,u=x,s=r.apply(T,S),s}function p(x){return u=x,o=setTimeout(y,t),c?d(x):s}function m(x){var S=x-l,T=x-u,E=t-S;return h?Ypt(E,a-T):E}function g(x){var S=x-l,T=x-u;return l===void 0||S>=t||S<0||h&&T>=a}function y(){var x=g8();if(g(x))return v(x);o=setTimeout(y,m(x))}function v(x){return o=void 0,f&&n?d(x):(n=i=void 0,s)}function b(){o!==void 0&&clearTimeout(o),u=0,n=l=i=o=void 0}function w(){return o===void 0?s:v(g8())}function _(){var x=g8(),S=g(x);if(n=arguments,i=this,l=x,S){if(o===void 0)return p(l);if(h)return clearTimeout(o),o=setTimeout(y,t),d(l)}return o===void 0&&(o=setTimeout(y,t)),s}return _.cancel=b,_.flush=w,_}function jL(r,t,e){(e!==void 0&&!Ya.eq(r[t],e)||e===void 0&&!(t in r))&&Ar.baseAssignValue(r,t,e)}function Zpt(r){return Ya.isObjectLike(r)&&Ar.isArrayLike(r)}function WL(r,t){if(!(t==="constructor"&&typeof r[t]=="function")&&t!="__proto__")return r[t]}function Kpt(r){return Ar.copyObject(r,Ar.keysIn(r))}function Jpt(r,t,e,n,i,a,s){var o=WL(r,e),l=WL(t,e),u=s.get(l);if(u){jL(r,e,u);return}var c=a?a(o,l,e+"",r,t,s):void 0,h=c===void 0;if(h){var f=Ya.isArray(l),d=!f&&Ar.isBuffer(l),p=!f&&!d&&Ar.isTypedArray(l);c=l,f||d||p?Ya.isArray(o)?c=o:Zpt(o)?c=Ar.copyArray(o):d?(h=!1,c=Ar.cloneBuffer(l,!0)):p?(h=!1,c=Ar.cloneTypedArray(l,!0)):c=[]:ppt(l)||Ar.isArguments(l)?(c=o,Ar.isArguments(o)?c=Kpt(o):(!Ya.isObject(o)||Ya.isFunction(o))&&(c=Ar.initCloneObject(l))):h=!1}h&&(s.set(l,c),i(c,l,n,a,s),s.delete(l)),jL(r,e,c)}function rQ(r,t,e,n,i){r!==t&&$pt(t,function(a,s){if(i||(i=new Ar.Stack),Ya.isObject(a))Jpt(r,t,s,e,rQ,n,i);else{var o=n?n(WL(r,s),a,s+"",r,t,i):void 0;o===void 0&&(o=a),jL(r,s,o)}},Ar.keysIn)}function ZC(r,t){return tQ(r,t)}var ym=lpt(function(r,t,e){rQ(r,t,e)});const Qpt=Ar.useUnit(Ar.pinia),{selectTitle:y8}=Ar.storeToRefs(Qpt),tvt=Ar.useMenuState(Ar.pinia),{currentMenuPath:Ey}=Ar.storeToRefs(tvt);let xv="$R";const u_=new Map,evt=r=>r==null?void 0:r.map(e=>{var o,l,u,c,h,f,d,p,m,g,y,v,b,w,_,x,S,T,E,D,L,B,M,R,A,C,I,k,N,z,O;let n=(c=(u=(l=(o=e==null?void 0:e.contents)==null?void 0:o.find(H=>{var V;return(V=H==null?void 0:H.key)==null?void 0:V.includes("struct")}))==null?void 0:l.value)==null?void 0:u[0])==null?void 0:c.类型,i=Object.values(e==null?void 0:e.name);i=i==null?void 0:i.reverse();let a=(h=e==null?void 0:e.contents)==null?void 0:h.map(H=>H==null?void 0:H.key),s={comp:n,isShow:e==null?void 0:e.is_show,name:i==null?void 0:i[0],id:e==null?void 0:e.object_id,relatedTables:a};for(let H in i)parseInt(H)>=1&&(s[`name${parseInt(H)-1}`]=i[H]);if(n==="Table"){let H=(f=e==null?void 0:e.contents)==null?void 0:f.find(Y=>{var Q;return(Q=Y==null?void 0:Y.key)==null?void 0:Q.includes("content")}),V=[];H.value=(d=H==null?void 0:H.value)==null?void 0:d.sort((Y,Q)=>parseInt(Y==null?void 0:Y.id)-parseInt(Q==null?void 0:Q.id)),V.push({key:"tableContents",contents:H==null?void 0:H.value});let G=(v=(y=(g=(m=(p=e==null?void 0:e.contents)==null?void 0:p.find(Y=>{var Q;return(Q=Y==null?void 0:Y.key)==null?void 0:Q.includes("struct")}))==null?void 0:m.value)==null?void 0:g[0])==null?void 0:y.结构)==null?void 0:v.contents;V.push({key:"header",contents:G}),V.push({key:"filter",contents:(S=(x=(_=(w=(b=e==null?void 0:e.contents)==null?void 0:b.find(Y=>{var Q;return(Q=Y==null?void 0:Y.key)==null?void 0:Q.includes("struct")}))==null?void 0:w.value)==null?void 0:_[0])==null?void 0:x.引用)==null?void 0:S.contents}),s.compData=V}else if(n==="Form"){let H=[],V=(D=(E=(T=e==null?void 0:e.contents)==null?void 0:T.find(Y=>{var Q;return(Q=Y==null?void 0:Y.key)==null?void 0:Q.includes("content")}))==null?void 0:E.value)==null?void 0:D[0],G=(C=(A=(R=(M=(B=(L=e==null?void 0:e.contents)==null?void 0:L.find(Y=>{var Q;return(Q=Y==null?void 0:Y.key)==null?void 0:Q.includes("struct")}))==null?void 0:B.value)==null?void 0:M[0])==null?void 0:R.结构)==null?void 0:A.contents)==null?void 0:C.map(Y=>(Y.value=V==null?void 0:V[Y==null?void 0:Y.prop],Y));H.push({key:"filter",contents:(O=(z=(N=(k=(I=e==null?void 0:e.contents)==null?void 0:I.find(Y=>{var Q;return(Q=Y==null?void 0:Y.key)==null?void 0:Q.includes("struct")}))==null?void 0:k.value)==null?void 0:N[0])==null?void 0:z.引用)==null?void 0:O.contents}),H.push({key:"formContent",contents:G}),s.compData=H}return s}),g5=async r=>new Promise((t,e)=>{var s,o;const n=Ar.useLoginState(Ar.pinia),{loginUserInfo:i}=Ar.storeToRefs(n);if(u_.has(r)){const l=u_.get(r);l.resolve=t,l.reject=e,l.debouncedFn(r,(s=i==null?void 0:i.value)==null?void 0:s.plat_id);return}const a=eQ(async(l,u)=>{var h,f,d;const c=u_.get(l);try{const p=await Ar.getPageDataApi({platId:parseInt(u),pageName:l}),m=(h=p==null?void 0:p.data)==null?void 0:h.result,g=evt(m);(f=c==null?void 0:c.resolve)==null||f.call(c,g)}catch(p){(d=c==null?void 0:c.reject)==null||d.call(c,p)}finally{u_.delete(l)}},10);u_.set(r,{debouncedFn:a,resolve:t,reject:e,timer:null}),a(r,(o=i==null?void 0:i.value)==null?void 0:o.plat_id)}),rvt=async r=>{var l,u,c,h,f,d,p,m,g,y,v,b,w,_,x,S,T,E,D,L,B,M,R,A,C,I,k,N,z,O,H,V,G,Y,Q,_t,ot,wt,it,K,nt,ct,q,at,st,dt,W,tt,lt,Ct,Pt,X,rt,Tt,pt,ht,et,mt;let t=(l=r==null?void 0:r.menus)==null?void 0:l.join("/"),e=r==null?void 0:r.relatedWords;if((t==null?void 0:t[(t==null?void 0:t.length)-1])==="/")if(r!=null&&r.isMainPath){let ut=t==null?void 0:t.slice(0,(t==null?void 0:t.length)-1),gt=await g5(ut);gt=gt==null?void 0:gt.filter(bt=>(bt==null?void 0:bt.comp)==="Table");let St=r==null?void 0:r.words;St=St==null?void 0:St.join(".");let At=(g=(m=(p=gt==null?void 0:gt[0])==null?void 0:p.compData)==null?void 0:m.find(bt=>(bt==null?void 0:bt.key)==="tableContents"))==null?void 0:g.contents;if(r!=null&&r.filter&&((y=r==null?void 0:r.filter)!=null&&y.includes("@If"))){let bt=((w=(b=(v=r==null?void 0:r.filter)==null?void 0:v.split(","))==null?void 0:b.filter(kt=>kt==null?void 0:kt.includes("@If")))==null?void 0:w[0])??"";if(bt&&bt!==""){(bt==null?void 0:bt[(bt==null?void 0:bt.length)-1])===","&&(bt=bt==null?void 0:bt.slice(0,(bt==null?void 0:bt.length)-1)),bt=(x=(_=bt==null?void 0:bt.replace("(",xv))==null?void 0:_.split(xv))==null?void 0:x[1],bt=bt==null?void 0:bt.slice(0,(bt==null?void 0:bt.length)-1),(bt==null?void 0:bt[0])==="*"&&(bt="{"+((T=(S=bt==null?void 0:bt.replace("{",xv))==null?void 0:S.split(xv))==null?void 0:T[1])),bt=(E=bt==null?void 0:bt.replaceAll("{",""))==null?void 0:E.replaceAll("}","");let kt=fp.calculatorAndToOr(bt);kt=kt==null?void 0:kt[0];for(let Ot in kt)At=(D=At==null?void 0:At.map(Gt=>{if((Gt==null?void 0:Gt[Ot])===(kt==null?void 0:kt[Ot]))return Gt;for(let Ft in Gt)if(Ft!=null&&Ft.includes(Ot)&&(Gt==null?void 0:Gt[Ft])===(kt==null?void 0:kt[Ot]))return Gt;return""}))==null?void 0:D.filter(Gt=>Gt!=="")}}(St==null?void 0:St[(St==null?void 0:St.length)-1])==="."&&(St=St==null?void 0:St.slice(0,(St==null?void 0:St.length)-1));let Dt;return e&&Array.isArray(e)&&(e==null?void 0:e.length)>0?Dt=At==null?void 0:At.map(bt=>{let kt="",Ot=Object.keys(bt);return e==null||e.forEach(Gt=>{var Ft,oe,Zt,he;if(Ot!=null&&Ot.find(fe=>{var re,ge;return fe==null?void 0:fe.includes("."+((ge=Gt==null?void 0:Gt.split("."))==null?void 0:ge[((re=Gt==null?void 0:Gt.split("."))==null?void 0:re.length)-1]))})){let fe=Ot==null?void 0:Ot.find(re=>{var ge,be;return re==null?void 0:re.includes("."+((be=Gt==null?void 0:Gt.split("."))==null?void 0:be[((ge=Gt==null?void 0:Gt.split("."))==null?void 0:ge.length)-1]))});kt=kt===""?kt+((bt==null?void 0:bt[fe])??""):kt+" "+((bt==null?void 0:bt[fe])??"")}else kt=kt===""?kt+((bt==null?void 0:bt[Gt])??(bt==null?void 0:bt[(oe=Gt==null?void 0:Gt.split("."))==null?void 0:oe[((Ft=Gt==null?void 0:Gt.split("."))==null?void 0:Ft.length)-1]])):kt+" "+((bt==null?void 0:bt[Gt])??(bt==null?void 0:bt[(he=Gt==null?void 0:Gt.split("."))==null?void 0:he[((Zt=Gt==null?void 0:Gt.split("."))==null?void 0:Zt.length)-1]])??"")}),{label:kt,value:kt}}):Dt=At==null?void 0:At.map(bt=>({label:bt==null?void 0:bt[St],value:bt==null?void 0:bt[St]})),Dt=Dt==null?void 0:Dt.filter(bt=>bt.label),Dt}else if(r!=null&&r.endChildMenu&&(r==null?void 0:r.endChildMenu)!=="")t=t+((c=(u=r==null?void 0:r.endChildMenu)==null?void 0:u.split(" "))==null?void 0:c[0]);else{let ut=(h=y8.value)==null?void 0:h.filter(gt=>(gt==null?void 0:gt.condition)==="child");((f=ut==null?void 0:ut[0])==null?void 0:f.parentContent)+"/"===t?t=t==null?void 0:t.slice(0,(t==null?void 0:t.length)-1):(ut=(d=ut==null?void 0:ut[0])==null?void 0:d.value,t=t+ut)}let n=await g5(t),i=r==null?void 0:r.groups,a=r==null?void 0:r.words;n=n==null?void 0:n.filter(ut=>(ut==null?void 0:ut.name)===(i==null?void 0:i[(i==null?void 0:i.length)-1]));let s;if((M=(B=(L=n==null?void 0:n[0])==null?void 0:L.compData)==null?void 0:B.find(ut=>(ut==null?void 0:ut.key)==="tableContents"))!=null&&M.contents)s=(C=(A=(R=n==null?void 0:n[0])==null?void 0:R.compData)==null?void 0:A.find(ut=>(ut==null?void 0:ut.key)==="tableContents"))==null?void 0:C.contents;else{let ut={};(z=(N=(k=(I=n==null?void 0:n[0])==null?void 0:I.compData)==null?void 0:k.find(gt=>(gt==null?void 0:gt.key)==="formContent"))==null?void 0:N.contents)==null||z.forEach(gt=>{ut[gt.prop]=gt.value}),s=[ut]}if(r!=null&&r.filter&&(r==null?void 0:r.filter)!==""){let ut=fp.analyzeSplitToContent(r==null?void 0:r.filter,",");if(ut=((O=ut==null?void 0:ut.filter(gt=>gt==null?void 0:gt.includes("@If")))==null?void 0:O[0])??"",ut&&ut!==""){(ut==null?void 0:ut[(ut==null?void 0:ut.length)-1])===","&&(ut=ut==null?void 0:ut.slice(0,(ut==null?void 0:ut.length)-1)),ut=(V=(H=ut==null?void 0:ut.replace("(",xv))==null?void 0:H.split(xv))==null?void 0:V[1],ut=ut==null?void 0:ut.slice(0,(ut==null?void 0:ut.length)-1),(ut==null?void 0:ut[0])==="*"&&(ut="{"+((Y=(G=ut==null?void 0:ut.replace("{",xv))==null?void 0:G.split(xv))==null?void 0:Y[1])),ut=(Q=ut==null?void 0:ut.replaceAll("{",""))==null?void 0:Q.replaceAll("}","");let gt=fp.calculatorAndToOr(ut);gt=gt==null?void 0:gt[0];let St;if((_t=Object.values(gt))!=null&&_t.some(At=>(At==null?void 0:At[0])==="*")){let At=(wt=(ot=y8.value)==null?void 0:ot.find(Dt=>(Dt==null?void 0:Dt.condition)==="child"))!=null&&wt.value?(Ey==null?void 0:Ey.value)+"/"+((K=(it=y8.value)==null?void 0:it.find(Dt=>(Dt==null?void 0:Dt.condition)==="child"))==null?void 0:K.value):Ey==null?void 0:Ey.value;St=await g5(At)}for(let At in gt)if(((nt=gt==null?void 0:gt[At])==null?void 0:nt[0])==="*"){let Dt=(st=(at=(q=gt[At])==null?void 0:q.slice(1,(ct=gt[At])==null?void 0:ct.length))==null?void 0:at.split(":"))==null?void 0:st[0],bt=(W=(dt=gt[At])==null?void 0:dt.split(":"))==null?void 0:W[1],kt=(tt=St==null?void 0:St.filter(Ot=>(Ot==null?void 0:Ot.name)===Dt))==null?void 0:tt[0];kt=(Ct=(lt=kt==null?void 0:kt.compData)==null?void 0:lt.find(Ot=>(Ot==null?void 0:Ot.key)==="tableContents"))==null?void 0:Ct.contents,kt=(Pt=kt==null?void 0:kt[0])==null?void 0:Pt[bt],gt[At]=kt}for(let At in gt)s=(X=s==null?void 0:s.map(Dt=>{var bt,kt;if((Dt==null?void 0:Dt[At])===(gt==null?void 0:gt[At])||r!=null&&r.endChildMenu)return Dt;for(let Ot in Dt)if(((kt=Ot==null?void 0:Ot.split("."))==null?void 0:kt[((bt=Ot==null?void 0:Ot.split("."))==null?void 0:bt.length)-1])===At&&Dt[Ot]===(gt==null?void 0:gt[At]))return Dt}))==null?void 0:X.filter(Dt=>Dt)}}if(t==="系统管理/角色管理"){const ut=Ar.useLoginState(Ar.pinia),{loginUserInfo:gt}=Ar.storeToRefs(ut);n=await Ar.getAllTables({platId:parseInt((rt=gt==null?void 0:gt.value)==null?void 0:rt.plat_id),tableNames:["role"]}),n=((pt=(Tt=n==null?void 0:n.data)==null?void 0:Tt.result)==null?void 0:pt[0])??[],s=n}if(t==="系统管理/部门管理"){const ut=Ar.useLoginState(Ar.pinia),{loginUserInfo:gt}=Ar.storeToRefs(ut),St=(ht=gt==null?void 0:gt.value)==null?void 0:ht.plat_id;n=await Kdt.getDepartmentOptions(St),n=((et=n==null?void 0:n.data)==null?void 0:et.result)||[],s=n}a=(mt=a==null?void 0:a.join("."))==null?void 0:mt.replaceAll("'",""),(a==null?void 0:a[(a==null?void 0:a.length)-1])==="."&&(a=a==null?void 0:a.slice(0,(a==null?void 0:a.length)-1));let o;return e&&Array.isArray(e)&&(e==null?void 0:e.length)>0?o=s==null?void 0:s.map(ut=>{let gt="",St=Object.keys(ut);return e==null||e.forEach(At=>{if(St!=null&&St.find(Dt=>{var bt,kt;return Dt==null?void 0:Dt.includes("."+((kt=At==null?void 0:At.split("."))==null?void 0:kt[((bt=At==null?void 0:At.split("."))==null?void 0:bt.length)-1]))})){let Dt=St==null?void 0:St.find(bt=>{var kt,Ot;return bt==null?void 0:bt.includes("."+((Ot=At==null?void 0:At.split("."))==null?void 0:Ot[((kt=At==null?void 0:At.split("."))==null?void 0:kt.length)-1]))});gt=gt===""?gt+((ut==null?void 0:ut[Dt])??""):gt+" "+((ut==null?void 0:ut[Dt])??"")}else gt=gt===""?gt+(ut==null?void 0:ut[At]):gt+" "+(ut==null?void 0:ut[At])}),{label:gt,value:gt}}):o=s==null?void 0:s.map(ut=>({label:ut==null?void 0:ut[a],value:ut==null?void 0:ut[a]})),o=o==null?void 0:o.filter(ut=>ut.label),o};/**!
2
2
  * Sortable 1.15.6
3
3
  * @author RubaXa <trash@rubaxa.org>
4
4
  * @author owenm <owen23355@gmail.com>
@@ -2,7 +2,7 @@ var Wdt = Object.defineProperty;
2
2
  var Gdt = (r, t, e) => t in r ? Wdt(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
3
  var zr = (r, t, e) => Gdt(r, typeof t != "symbol" ? t + "" : t, e);
4
4
  import { K as $dt, L as qdt, M as Xdt, N as oQ, O as Ydt, P as Zdt, U as nU, Q as iU, R as aU, S as HL, T as f5, V as lQ, W as Kdt, X as Jdt, Y as uQ, Z as Qdt, _ as tpt, $ as ept, a0 as sU, a1 as rpt, s as p2, b as jL, p as v2, r as npt, h as ipt, i as apt, u as cQ, j as spt, a2 as Bm, a3 as opt, a4 as Ml, c as Xb, a5 as lpt } from "./index-BpMKqUU2.js";
5
- import { k as oU, f as upt, r as cpt, j as hpt, m as hQ, p as fpt, q as dpt } from "./index-D0dPlenq.js";
5
+ import { k as oU, f as upt, r as cpt, j as hpt, m as hQ, p as fpt, q as dpt } from "./index-C_qJRxvA.js";
6
6
  import { e as ppt } from "./index-BCYAUped.js";
7
7
  import { k as vpt, l as m2, n as $7, o as cC, q as mpt, M as gpt, S as lU, r as hC, t as ypt, v as bpt } from "./request-XJsZ4h2T.js";
8
8
  var wpt = /\s/;
@@ -1,8 +1,8 @@
1
1
  import { ref as U, watch as v, createElementBlock as E, createCommentVNode as q, openBlock as I, Fragment as de, renderList as fe, createElementVNode as S, createBlock as se, toDisplayString as oe, resolveDynamicComponent as ye, onMounted as he, onUnmounted as ke, createVNode as te } from "vue";
2
- import { m as ge, a as _e, b as Ce, c as be } from "./array-DMPTLGtj.js";
2
+ import { m as ge, a as _e, b as Ce, c as be } from "./array-C7mGQf0K.js";
3
3
  import { c, a as ce, p as re, s as ue, u as Oe } from "./index-BpMKqUU2.js";
4
- import { g as Ae } from "./index-DsQcrm0O.js";
5
- import { v as H, a as K } from "./index-D0dPlenq.js";
4
+ import { g as Ae } from "./index-BKwBWGa8.js";
5
+ import { v as H, a as K } from "./index-C_qJRxvA.js";
6
6
  import { _ as pe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
7
  const B = [
8
8
  {
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),G=require("./array-D-wXELvn.cjs"),r=require("./index-Pve69buQ.cjs"),ne=require("./index-BM0jICV-.cjs"),T=require("./index-kSKXfPuW.cjs"),v=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),F=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"}],A=[{key:"FormDirect",value:"formFlex"},{key:"Form",value:"formContent"},{key:"FormButton",value:"formButton"},{key:"TableColumns",value:"header"},{key:"TableButton",value:"extraButton"},{key:"LineButton",value:"rowButton"},{key:"Table",value:"tableContents"},{key:"TableIndex",value:"tableIndex"}];n.ref(0);n.ref(0);n.ref(1);const le=s=>{let d;s.replaceAll(" ",`\r
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),G=require("./array-DVSjLCvI.cjs"),r=require("./index-Pve69buQ.cjs"),ne=require("./index-BXUjjen4.cjs"),T=require("./index-BszVYrt4.cjs"),v=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),F=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"}],A=[{key:"FormDirect",value:"formFlex"},{key:"Form",value:"formContent"},{key:"FormButton",value:"formButton"},{key:"TableColumns",value:"header"},{key:"TableButton",value:"extraButton"},{key:"LineButton",value:"rowButton"},{key:"Table",value:"tableContents"},{key:"TableIndex",value:"tableIndex"}];n.ref(0);n.ref(0);n.ref(1);const le=s=>{let d;s.replaceAll(" ",`\r
2
2
  `).replaceAll(`
3
3
  `,`\r
4
4
  `).includes(`\r
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Ch7zA-Cn.cjs");const C=require("./index-BpPyaNFa.cjs"),v=require("./index-Pve69buQ.cjs");require("./index-kSKXfPuW.cjs");require("./request-Dl8yi2iS.cjs");;/* empty css */const s=require("./ss-component2.cjs"),t=require("./index-RoXicHV9.cjs"),r=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./main-Da9qeEMp.cjs")));r.install=e=>{e.component("ssComponent",r)};const i=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BNd4riSo.cjs")).then(e=>e.index$1));i.install=e=>{e.component("ssTab",i)};const c=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-DWz4-eQa.cjs")).then(e=>e.index));c.install=e=>{e.component("ssMenu",c)};const l=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-p6CpwQMN.cjs")));l.install=e=>{e.component("ssMenuComponent",l)};const m=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-CQD-jp-1.cjs")));m.install=e=>{e.component("ssCanvas",m)};const u=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BVaHwt5f.cjs")));u.install=e=>{e.component("ssFold",u)};const a=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-CUbYU_BV.cjs")).then(e=>e.index));a.install=e=>{e.component("ssAvatar",a)};const h=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeModel-CBuNWvUV.cjs")));h.install=e=>{e.component("ssThree",h)};const f=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeViewerHost-rMSBiof2.cjs")).then(e=>e.threeViewerHost));f.install=e=>{e.component("threeViewerHost",f)};const p=v.useMenuState(),q=[r,i,c,l,m,u,a,h,f],P=e=>{q.forEach(o=>{e.use(o)}),e.use(s),e.config.globalProperties.$router=s},g=e=>{switch(e){case"browser":return t.browserThemeConfig;case"client":return t.clientThemeConfig;case"three":return t.threeThemeConfig}},y=e=>{const o=document.documentElement;e==null||e.forEach(d=>{o.style.setProperty(d.name,d.value)})},A=e=>{p.setPlatform(e);const o=g(e);y(o)},T={getPlatform:p.getPlatform,setPlatform:p.setPlatform,initPlatform:A};exports.SvgIcon=C.SvgIcon;exports.router=s;exports.default=P;exports.platformApi=T;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BB3g-g6w.cjs");const C=require("./index-BpPyaNFa.cjs"),v=require("./index-Pve69buQ.cjs");require("./index-BszVYrt4.cjs");require("./request-Dl8yi2iS.cjs");;/* empty css */const s=require("./ss-component2.cjs"),t=require("./index-RoXicHV9.cjs"),r=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./main-BsAze-BF.cjs")));r.install=e=>{e.component("ssComponent",r)};const i=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BlK57Hld.cjs")).then(e=>e.index$1));i.install=e=>{e.component("ssTab",i)};const c=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-C5-Qkbkd.cjs")).then(e=>e.index));c.install=e=>{e.component("ssMenu",c)};const l=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-p6CpwQMN.cjs")));l.install=e=>{e.component("ssMenuComponent",l)};const m=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BxYAWHue.cjs")));m.install=e=>{e.component("ssCanvas",m)};const u=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BVaHwt5f.cjs")));u.install=e=>{e.component("ssFold",u)};const a=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-Bg_qW-pV.cjs")).then(e=>e.index));a.install=e=>{e.component("ssAvatar",a)};const h=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeModel-D-FvWS_U.cjs")));h.install=e=>{e.component("ssThree",h)};const f=n.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeViewerHost-5A2jHeBY.cjs")).then(e=>e.threeViewerHost));f.install=e=>{e.component("threeViewerHost",f)};const p=v.useMenuState(),q=[r,i,c,l,m,u,a,h,f],P=e=>{q.forEach(o=>{e.use(o)}),e.use(s),e.config.globalProperties.$router=s},g=e=>{switch(e){case"browser":return t.browserThemeConfig;case"client":return t.clientThemeConfig;case"three":return t.threeThemeConfig}},y=e=>{const o=document.documentElement;e==null||e.forEach(d=>{o.style.setProperty(d.name,d.value)})},A=e=>{p.setPlatform(e);const o=g(e);y(o)},T={getPlatform:p.getPlatform,setPlatform:p.setPlatform,initPlatform:A};exports.SvgIcon=C.SvgIcon;exports.router=s;exports.default=P;exports.platformApi=T;
@@ -1,21 +1,21 @@
1
1
  import { defineAsyncComponent as o } from "vue";
2
- import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DCVfKTPt.js";
2
+ import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Dsy5DUE-.js";
3
3
  import { S as k } from "./index-BHtNKL1L.js";
4
4
  import { u as C } from "./index-BpMKqUU2.js";
5
- import "./index-D0dPlenq.js";
5
+ import "./index-C_qJRxvA.js";
6
6
  import "./request-XJsZ4h2T.js";
7
7
  /* empty css */
8
8
  import u from "./ss-component2.js";
9
9
  import { t as g, c as T, b as P } from "./index-C2UiLe43.js";
10
- const n = o(() => import("./main--DlxlczT.js"));
10
+ const n = o(() => import("./main-BQLZO8HY.js"));
11
11
  n.install = (t) => {
12
12
  t.component("ssComponent", n);
13
13
  };
14
- const s = o(() => import("./index-1CxMVM0T.js").then((t) => t.o));
14
+ const s = o(() => import("./index-CglzMjXC.js").then((t) => t.o));
15
15
  s.install = (t) => {
16
16
  t.component("ssTab", s);
17
17
  };
18
- const r = o(() => import("./index-BHnT4OkM.js").then((t) => t.i));
18
+ const r = o(() => import("./index-BGxJ58ST.js").then((t) => t.i));
19
19
  r.install = (t) => {
20
20
  t.component("ssMenu", r);
21
21
  };
@@ -23,7 +23,7 @@ const m = o(() => import("./index-BrXLLiec.js"));
23
23
  m.install = (t) => {
24
24
  t.component("ssMenuComponent", m);
25
25
  };
26
- const i = o(() => import("./index-DfKgW3Wx.js"));
26
+ const i = o(() => import("./index-F50xEFph.js"));
27
27
  i.install = (t) => {
28
28
  t.component("ssCanvas", i);
29
29
  };
@@ -31,15 +31,15 @@ const c = o(() => import("./index-rlStojTL.js"));
31
31
  c.install = (t) => {
32
32
  t.component("ssFold", c);
33
33
  };
34
- const a = o(() => import("./index-BVQ08iol.js").then((t) => t.i));
34
+ const a = o(() => import("./index-DR-QE8pc.js").then((t) => t.i));
35
35
  a.install = (t) => {
36
36
  t.component("ssAvatar", a);
37
37
  };
38
- const l = o(() => import("./threeModel-CQ1k0qYi.js"));
38
+ const l = o(() => import("./threeModel-Bhu7rOKW.js"));
39
39
  l.install = (t) => {
40
40
  t.component("ssThree", l);
41
41
  };
42
- const p = o(() => import("./threeViewerHost-DMc2E0HM.js").then((t) => t.t));
42
+ const p = o(() => import("./threeViewerHost-BUCEw4Ve.js").then((t) => t.t));
43
43
  p.install = (t) => {
44
44
  t.component("threeViewerHost", p);
45
45
  };
@@ -1 +1 @@
1
- "use strict";const n=require("vue-router"),t=[{path:"/tenant",name:"Tenant",component:async()=>Promise.resolve().then(()=>require("./index-aYsnw0xY.cjs"))},{path:"/login",name:"Login",component:async()=>Promise.resolve().then(()=>require("./index-D8phCIf5.cjs"))},{path:"/",name:"Model",component:async()=>Promise.resolve().then(()=>require("./index-Bf9mnn8M.cjs")),children:[{path:"系统配置/站内信",name:"Message",component:async()=>Promise.resolve().then(()=>require("./index-DPIg2S6M.cjs"))},{path:"系统配置/自动生成",name:"Automatic",component:async()=>Promise.resolve().then(()=>require("./index-B2BAJXIH.cjs"))},{path:"平台管理/菜单管理",name:"Menu",component:async()=>Promise.resolve().then(()=>require("./index-kTvhIZ_a.cjs"))},{path:"平台管理/主菜单管理",name:"MainMenu",component:async()=>Promise.resolve().then(()=>require("./index-BR5evPYR.cjs"))},{path:"系统管理/个人中心",name:"PersonalCenter",component:async()=>Promise.resolve().then(()=>require("./index-BPjXEDdo.cjs"))},{path:"系统维护/登录日志",name:"LoginLog",component:async()=>Promise.resolve().then(()=>require("./index-D63pR0VJ.cjs"))},{path:"系统维护/操作日志",name:"OperateLog",component:async()=>Promise.resolve().then(()=>require("./index-CVcTWPhb.cjs"))},{path:"角色管理",name:"Role",component:async()=>Promise.resolve().then(()=>require("./index-CXJg6fVt.cjs"))},{path:"部门管理",name:"Department",component:async()=>Promise.resolve().then(()=>require("./index-DEXUrNh6.cjs"))},{path:"职位管理",name:"Position",component:async()=>Promise.resolve().then(()=>require("./index-UE1_7FXY.cjs"))},{path:"个人中心",name:"PersonalCenter",component:async()=>Promise.resolve().then(()=>require("./index-B4OJRYgo.cjs"))},{path:"log",name:"log",component:async()=>Promise.resolve().then(()=>require("./index-CA8nRHvK.cjs"))}]}],o=n.createRouter({history:n.createWebHashHistory(),routes:t});o.beforeEach((r,s,e)=>{!sessionStorage.getItem("loginToken")&&r.path!=="/login"?e("/login"):e()});module.exports=o;
1
+ "use strict";const n=require("vue-router"),t=[{path:"/tenant",name:"Tenant",component:async()=>Promise.resolve().then(()=>require("./index-aYsnw0xY.cjs"))},{path:"/login",name:"Login",component:async()=>Promise.resolve().then(()=>require("./index-D8phCIf5.cjs"))},{path:"/",name:"Model",component:async()=>Promise.resolve().then(()=>require("./index-BbOPzdvW.cjs")),children:[{path:"系统配置/站内信",name:"Message",component:async()=>Promise.resolve().then(()=>require("./index-DPIg2S6M.cjs"))},{path:"系统配置/自动生成",name:"Automatic",component:async()=>Promise.resolve().then(()=>require("./index-B2BAJXIH.cjs"))},{path:"平台管理/菜单管理",name:"Menu",component:async()=>Promise.resolve().then(()=>require("./index-CPZ9KSRW.cjs"))},{path:"平台管理/主菜单管理",name:"MainMenu",component:async()=>Promise.resolve().then(()=>require("./index-D1f-c75W.cjs"))},{path:"系统管理/个人中心",name:"PersonalCenter",component:async()=>Promise.resolve().then(()=>require("./index-DdgG41py.cjs"))},{path:"系统维护/登录日志",name:"LoginLog",component:async()=>Promise.resolve().then(()=>require("./index-CVwv4LxN.cjs"))},{path:"系统维护/操作日志",name:"OperateLog",component:async()=>Promise.resolve().then(()=>require("./index-C7F00lsw.cjs"))},{path:"角色管理",name:"Role",component:async()=>Promise.resolve().then(()=>require("./index-B6PD-xI6.cjs"))},{path:"部门管理",name:"Department",component:async()=>Promise.resolve().then(()=>require("./index-DEXUrNh6.cjs"))},{path:"职位管理",name:"Position",component:async()=>Promise.resolve().then(()=>require("./index-pPkg_OL4.cjs"))},{path:"个人中心",name:"PersonalCenter",component:async()=>Promise.resolve().then(()=>require("./index-B4OJRYgo.cjs"))},{path:"log",name:"log",component:async()=>Promise.resolve().then(()=>require("./index-f38JGA94.cjs"))}]}],o=n.createRouter({history:n.createWebHashHistory(),routes:t});o.beforeEach((r,s,e)=>{!sessionStorage.getItem("loginToken")&&r.path!=="/login"?e("/login"):e()});module.exports=o;
@@ -13,7 +13,7 @@ const a = [
13
13
  {
14
14
  path: "/",
15
15
  name: "Model",
16
- component: async () => import("./index-CJZtMG1l.js"),
16
+ component: async () => import("./index-CP2sqOuT.js"),
17
17
  // component: async ()=>import('@/components/views/model/component/main.vue'),
18
18
  // component: async ()=>import('@/components/views/canvas/index.vue'),
19
19
  // component: async ()=>import('@/components/views/test/index.vue'),
@@ -31,17 +31,17 @@ const a = [
31
31
  {
32
32
  path: "平台管理/菜单管理",
33
33
  name: "Menu",
34
- component: async () => import("./index-x-5naHKX.js")
34
+ component: async () => import("./index-DcL7nuqr.js")
35
35
  },
36
36
  {
37
37
  path: "平台管理/主菜单管理",
38
38
  name: "MainMenu",
39
- component: async () => import("./index-CcZ3PLQl.js")
39
+ component: async () => import("./index-DkXqUIKT.js")
40
40
  },
41
41
  {
42
42
  path: "系统管理/个人中心",
43
43
  name: "PersonalCenter",
44
- component: async () => import("./index-BzrpHOhV.js")
44
+ component: async () => import("./index-DOJZTlQX.js")
45
45
  },
46
46
  // {
47
47
  // path: '系统管理/职位管理',
@@ -66,17 +66,17 @@ const a = [
66
66
  {
67
67
  path: "系统维护/登录日志",
68
68
  name: "LoginLog",
69
- component: async () => import("./index-7QuLAZc4.js")
69
+ component: async () => import("./index-CbMraWrc.js")
70
70
  },
71
71
  {
72
72
  path: "系统维护/操作日志",
73
73
  name: "OperateLog",
74
- component: async () => import("./index-7oopEz08.js")
74
+ component: async () => import("./index-DnFFYa5e.js")
75
75
  },
76
76
  {
77
77
  path: "角色管理",
78
78
  name: "Role",
79
- component: async () => import("./index-Baa2tgYw.js")
79
+ component: async () => import("./index-BD-rGD76.js")
80
80
  },
81
81
  {
82
82
  path: "部门管理",
@@ -86,7 +86,7 @@ const a = [
86
86
  {
87
87
  path: "职位管理",
88
88
  name: "Position",
89
- component: async () => import("./index-C5ykyj5i.js")
89
+ component: async () => import("./index-D2dAfD7a.js")
90
90
  },
91
91
  {
92
92
  path: "个人中心",
@@ -96,7 +96,7 @@ const a = [
96
96
  {
97
97
  path: "log",
98
98
  name: "log",
99
- component: async () => import("./index-Br-EfYDY.js")
99
+ component: async () => import("./index-BuMDpcw5.js")
100
100
  }
101
101
  // {
102
102
  // path: 'priority',
@@ -1,7 +1,7 @@
1
1
  import { ref as b, watch as Pe, createElementBlock as q, openBlock as H, createBlock as Le, computed as ie, onMounted as $e, onUnmounted as je, Fragment as Xe, renderList as He, createElementVNode as h, createCommentVNode as xe, toDisplayString as ae, resolveComponent as Je, createVNode as z, defineComponent as Ye, normalizeStyle as Ee, normalizeClass as Fe, nextTick as Be, onBeforeUnmount as qe, withDirectives as se, unref as O, withCtx as Te, isRef as he, vModelRadio as ye, vShow as we } from "vue";
2
- import { V as M, B as be, S as Ze, C as We, P as Ke, W as Ne, b as Qe, A as et, c as tt, M as Ve, X as nt, G as at, e as Me, f as ot, h as De, i as st, D as ke, H as lt, j as Re, k as Oe, l as Ue, m as ze, E as _e, n as de, o as it, p as rt, T as ct } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DCVfKTPt.js";
3
- import { O as ut } from "./OrbitControls-CFgny2Xb.js";
4
- import { V as dt, W as pt } from "./index-DsQcrm0O.js";
2
+ import { V as M, B as be, S as Ze, C as We, P as Ke, W as Ne, b as Qe, A as et, c as tt, M as Ve, X as nt, G as at, e as Me, f as ot, h as De, i as st, D as ke, H as lt, j as Re, k as Oe, l as Ue, m as ze, E as _e, n as de, o as it, p as rt, T as ct } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Dsy5DUE-.js";
3
+ import { O as ut } from "./OrbitControls-BvaUWlJW.js";
4
+ import { V as dt, W as pt } from "./index-BKwBWGa8.js";
5
5
  import { _ as me } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  import { c as Ge } from "./index-BpMKqUU2.js";
7
7
  import { E as Ie } from "./request-XJsZ4h2T.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Ch7zA-Cn.cjs"),fe=require("./OrbitControls-B-yXXyZA.cjs"),pe=require("./index-BM0jICV-.cjs"),oe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),me=require("./index-Pve69buQ.cjs"),de=require("./request-Dl8yi2iS.cjs");function ve(z){let g=null,u=null,d=null,h=null,x=null,P=null,c=null,b=null;const D=1e3/30;let S=0;const E=e.ref([]),r=e.ref(new n.Vector3),k=e.ref(new n.Vector3),y=()=>{if(!z.value)return;g=new n.Scene,g.background=new n.Color(15790320);const m=z.value;u=new n.PerspectiveCamera(75,m.clientWidth/m.clientHeight,.1,1e4),u.position.set(8,-8,6),u.up.set(0,0,1),u.lookAt(0,0,0),d=new n.WebGLRenderer({antialias:!0,alpha:!0}),d.setSize(m.clientWidth,m.clientHeight),d.localClippingEnabled=!0,d.shadowMap.enabled=!0,d.shadowMap.type=n.PCFSoftShadowMap,d.toneMapping=n.ACESFilmicToneMapping,d.toneMappingExposure=1,d.outputColorSpace=n.SRGBColorSpace,m.appendChild(d.domElement),h=new fe.OrbitControls(u,d.domElement),h.enableDamping=!0,h.dampingFactor=.05,h.mouseButtons={LEFT:null,MIDDLE:n.MOUSE.PAN,RIGHT:n.MOUSE.ROTATE},h.panSpeed=.7,x=new n.Xe(u,d,{container:m,type:"cube",placement:"top-right",offset:{top:10,right:10},background:{color:"#D1D1D1",opacity:1},front:{label:"Top"},bottom:{label:"Front"},left:{label:"Left"},right:{label:"Right"},top:{label:"Back"},back:{label:"Bottom"}}),x.attachControls(h),f(),C()},t=(m,l)=>{c&&(g.remove(c),c.dispose()),b&&(g.remove(b),b.geometry.dispose(),b.material.dispose());const _=Math.min(Math.max(Math.floor(m/20),30),40);c=new n.GridHelper(m,_,13421772,14540253),c.rotateX(Math.PI/2),c.position.copy(l),g.add(c);const B=new n.PlaneGeometry(m,m),O=new n.ShadowMaterial({opacity:.3,color:0});b=new n.Mesh(B,O),b.position.copy(l),b.position.z-=.01,b.receiveShadow=!0,g.add(b)},p=()=>{if(E.value.length===0)return;const m=new n.Box3;let l=!1;if(E.value.forEach(X=>{if(X.userData.boundingBox)m.union(X.userData.boundingBox),l=!0;else if(X.userData.modelId&&modelBoundingBoxes.has(X.userData.modelId)){const Z=modelBoundingBoxes.get(X.userData.modelId);m.union(Z.box),l=!0}else m.expandByObject(X),l=!0}),!l){console.warn("无法计算包围盒,网格更新失败");return}const _=m.getSize(new n.Vector3),B=m.getCenter(new n.Vector3),O=Math.max(_.x,_.y,_.z),j=Math.max(O*8,50),q=new n.Vector3(B.x,B.y,m.min.z);t(j,q)},f=()=>{const m=new n.AmbientLight(4210752,.6);g.add(m);const l=new n.DirectionalLight(16777215,2);l.position.set(10,10,8),l.castShadow=!0,l.shadow.mapSize.width=4096,l.shadow.mapSize.height=4096,l.shadow.camera.near=.5,l.shadow.camera.far=50,l.shadow.camera.left=-50,l.shadow.camera.right=50,l.shadow.camera.top=50,l.shadow.camera.bottom=-50,g.add(l);const _=new n.DirectionalLight(16777215,.8);_.position.set(-8,-8,6),g.add(_);const B=new n.DirectionalLight(16777215,.6);B.position.set(0,-15,2),g.add(B);const O=new n.HemisphereLight(16777215,4473924,.8);g.add(O);const j=new n.PointLight(16777215,1,50);j.position.set(15,15,15),g.add(j);const q=new n.PointLight(16777215,.5,50);q.position.set(-15,-15,15),g.add(q)},C=()=>{P=requestAnimationFrame(C),h&&h.update();const m=performance.now(),l=m-S;l<D||(S=m-l%D,d&&g&&u&&d.render(g,u),x&&x.render())},I=m=>{["map","normalMap","bumpMap","roughnessMap","metalnessMap","emissiveMap","specularMap","envMap","lightMap","aoMap","displacementMap"].forEach(_=>{m[_]&&m[_].dispose&&m[_].dispose()}),m.dispose&&m.dispose()},A=m=>{m==null||m.traverse(l=>{l.geometry&&l.geometry.dispose(),l.material&&(Array.isArray(l.material)?l.material.forEach(_=>{I(_)}):I(l.material))})};return{currentModels:E,initialCameraPosition:r,initialTargetPosition:k,initThreeJS:y,handleResize:()=>{if(!z.value||!u||!d||!x)return;const m=z.value,l=m.clientWidth,_=m.clientHeight;u.aspect=l/_,u.updateProjectionMatrix(),d.setSize(l,_),x.update()},fitCameraToAllModels:m=>{if(!u||!h||E.value.length===0)return;const l=new n.Box3;let _=!1;if(E.value.forEach(Z=>{if(Z.userData.boundingBox)l.union(Z.userData.boundingBox),_=!0;else if(Z.userData.modelId&&m.has(Z.userData.modelId)){const ee=m.get(Z.userData.modelId);l.union(ee.box),_=!0}else l.expandByObject(Z),_=!0}),!_){console.warn("无法计算包围盒");return}const B=l.getSize(new n.Vector3),O=l.getCenter(new n.Vector3),q=Math.max(B.x,B.y,B.z)*.8,X=new n.Vector3(O.x+q,O.y-q,O.z+q);u.position.copy(X),u.lookAt(O),h.target.copy(O),h.update(),r.value.copy(X),k.value.copy(O),p()},getThreeJSObjects:()=>({scene:g,camera:u,renderer:d,controls:h,gizmo:x}),clearAllModels:()=>{if(!g)return;E.value.forEach(l=>{g.remove(l),A(l)});const m=[];g.children.forEach(l=>{!l.isLight&&!l.isCamera&&l.type!=="GridHelper"&&l!==b&&m.push(l)}),m.forEach(l=>{g.remove(l),A(l)}),E.value=[],p()},cleanup:()=>{P&&cancelAnimationFrame(P),c&&c.dispose(),b&&(b.geometry.dispose(),b.material.dispose()),d&&d.dispose(),h&&h.dispose(),x&&x.dispose()},updateGridForModels:p}}function ge(z,g){const u=e.ref(!1);let d=null,h=12700,x=new n.Vector3,P=new n.Vector3,c=new n.Vector3,b=0,F=null;const D=t=>t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2,S=t=>{const p=new n.Vector3,f=b*1.2,C=new n.Vector3(c.x+f,c.y,c.z),I=new n.Vector3(c.x,c.y+f,c.z),A=new n.Vector3(c.x,c.y-f,c.z);if(t<=.567){const $=t/.567*Math.PI*2;p.x=c.x+Math.cos($)*f,p.z=c.z+Math.sin($)*f,p.y=c.y}else if(t<=.724){const L=(t-.567)/.157,$=D(L);p.lerpVectors(C,I,$)}else if(t<=.881){const L=(t-.724)/.157,J=D(L)*Math.PI;p.x=c.x+Math.sin(J)*f,p.y=c.y+Math.cos(J)*f,p.z=c.z}else{const L=(t-.881)/.119,$=D(L);p.lerpVectors(A,x,$)}return p},E=()=>{const{camera:t,controls:p}=z();if(!t||!p)return;d||(d=Date.now());const f=Date.now()-d,C=Math.min(f/h,1);if(C>=1){k();return}const I=S(C);t.position.copy(I),t.lookAt(c),p.target.copy(c),F=requestAnimationFrame(E)},r=()=>{if(g.value.length===0)return;const{camera:t,controls:p}=z();if(!t||!p)return;x.copy(t.position),P.copy(p.target);const f=new n.Box3;g.value.forEach(G=>{f.expandByObject(G)});const C=f.getSize(new n.Vector3);c=f.getCenter(new n.Vector3),b=Math.max(C.x,C.y,C.z)*1.2;const I=new n.Vector3(c.x+b*1.2,c.y,c.z);p.enabled=!1;const A=t.position.clone(),L=1e3,$=Date.now(),J=()=>{const G=Date.now()-$,Y=Math.min(G/L,1),m=D(Y);t.position.lerpVectors(A,I,m),t.lookAt(c),p.target.copy(c),Y<1?requestAnimationFrame(J):(u.value=!0,d=null,E())};J()},k=()=>{u.value=!1,d=null,F&&(cancelAnimationFrame(F),F=null);const{controls:t}=z();t&&(t.enabled=!0,t.target.copy(P))};return{isAnimating:u,toggleAnimation:()=>{if(u.value){u.value=!1,d=null,F&&(cancelAnimationFrame(F),F=null);const{camera:t,controls:p}=z();if(!t||!p)return;p.enabled=!0;const f=t.position.clone(),C=p.target.clone(),I=1500,A=Date.now(),L=()=>{const $=Date.now()-A,J=Math.min($/I,1),G=D(J);t.position.lerpVectors(f,x,G),p.target.lerpVectors(C,P,G),J<1&&requestAnimationFrame(L)};L()}else r()},startAnimation:r,stopAnimation:k}}function he(z,g){const u=e.ref(!1),d=e.ref("none");let h=[],x=[],P=new n.Box3,c=new n.Vector3;const b=()=>{h=[new n.Plane(new n.Vector3(1,0,0),0),new n.Plane(new n.Vector3(0,1,0),0),new n.Plane(new n.Vector3(0,0,1),0)]},F=()=>{P.makeEmpty(),g.value.forEach(y=>{P.expandByObject(y)}),c=P.getCenter(new n.Vector3)},D=y=>{const t=P.getSize(new n.Vector3);let p,f,C;y==="x"?(p=new n.PlaneGeometry(t.z*1.2,t.y*1.2),f=new n.Vector3(c.x,c.y,c.z),C=new n.Euler(0,Math.PI/2,0)):y==="y"?(p=new n.PlaneGeometry(t.x*1.2,t.z*1.2),f=new n.Vector3(c.x,c.y,c.z),C=new n.Euler(Math.PI/2,0,0)):y==="z"&&(p=new n.PlaneGeometry(t.x*1.2,t.y*1.2),f=new n.Vector3(c.x,c.y,c.z),C=new n.Euler(0,0,0));const I=new n.MeshPhongMaterial({color:8900331,transparent:!0,opacity:.3,side:n.DoubleSide,depthWrite:!1}),A=new n.Mesh(p,I);return A.position.copy(f),A.rotation.copy(C),A},S=()=>{if(E(),r(),d.value==="none")return;F();let y=null;if(d.value==="x"?(h[0].constant=-c.x,y=h[0]):d.value==="y"?(h[1].constant=-c.y,y=h[1]):d.value==="z"&&(h[2].constant=-c.z,y=h[2]),y){g.value.forEach(p=>{p.traverse(f=>{f.isMesh&&f.material&&(Array.isArray(f.material)?f.material.forEach(C=>{C.clippingPlanes=[y]}):f.material.clippingPlanes=[y])})});const{scene:t}=z();if(t){const p=D(d.value);t.add(p),x.push(p)}}},E=()=>{g.value.forEach(y=>{y.traverse(t=>{t.isMesh&&t.material&&(Array.isArray(t.material)?t.material.forEach(p=>{p.clippingPlanes=[]}):t.material.clippingPlanes=[])})})},r=()=>{const{scene:y}=z();y&&x.forEach(t=>{y.remove(t),t.geometry.dispose(),t.material.dispose()}),x=[]};return{isClipping:u,activeClippingAxis:d,toggleClipping:()=>{u.value=!u.value,u.value?(b(),g.value.length>0&&F()):(d.value="none",E(),r())},updateClippingPlanes:S,clearClippingPlanes:E,clearClippingMeshes:r}}const ye={class:"panel-content"},we={__name:"animationPanel",props:{animationData:Object,model:Object},setup(z){const g=z;e.ref();const u=e.ref();return e.watch(()=>[g==null?void 0:g.animationData],()=>{var h;let d=((h=me.cloneDeep(g==null?void 0:g.animationData))==null?void 0:h["输出(动画数据)Content"])??[];d&&(u.value=d)},{deep:!0,immediate:!0}),(d,h)=>{var x,P,c;return e.openBlock(),e.createElementBlock("div",ye,[(e.openBlock(),e.createBlock(pe.ssTable,{itemData:(x=u.value)==null?void 0:x.compData,key:(P=u.value)==null?void 0:P.id,index:(c=u.value)==null?void 0:c.id,showHeader:!1},null,8,["itemData","index"]))])}}},xe=oe._export_sfc(we,[["__scopeId","data-v-2387536e"]]),Ve={class:"panel-content"},Me={key:0,class:"joints-list"},ke={class:"joint-info-row"},Pe={class:"joint-left"},Ce={class:"joint-name"},be={class:"joint-range"},Ee={class:"joint-type"},_e={key:0,class:"joint-control-row"},ze={class:"slider-container"},De=["min","max","value","onInput","disabled"],Ne={class:"value-display"},Se={class:"joint-value"},Be={class:"unit"},Ae={key:1,class:"empty-state"},ae=.001,Re=1e3,ce=60,Fe={__name:"jointPanel",props:{model:Object,scene:Object,animationData:Object},setup(z,{expose:g}){const u=z;e.ref(!0);const d=e.ref([]),h=e.ref(null),x=e.ref(null),P=e.ref(12.5),c=e.ref(),b=e.ref(1302),F=e.ref(30),D=e.ref(!1),S=e.ref(!1),E=e.ref(0),r=e.ref(0),k=e.ref(null),y=n.MathUtils.degToRad,t=e.ref(1),p=()=>Re/ce/t.value;let f=[];e.watch(()=>u.animationData,o=>{var i;b.value=o.extra.管长,P.value=o.extra.外径/2;let v=((i=me.cloneDeep(o))==null?void 0:i["输出(动画数据)"])??[];v&&v.length>0&&(f=v)},{deep:!0}),e.computed(()=>f.length>0);const C=(o,v=!1)=>o==="revolute"?v?Math.PI:-Math.PI:o==="prismatic"?v?1:-1:0,I=()=>{if(!h.value)return de.ElMessage.error("未加载 URDF"),!1;let o=null;return h.value.traverse(v=>{o||v.name==="Pipe_Link"&&v.traverse(i=>{i instanceof n.Mesh&&!o&&(o=i)})}),o?(o.position.y-=F.value*ae,c.value=o,o.material=new n.MeshPhongMaterial({color:11184810,shininess:80,side:n.DoubleSide}),!0):(de.ElMessage.error('在 "Pipe_Link" 内未找到任何 Mesh'),!1)},A=o=>{if(!o||!o.joints)return console.warn("URDF模型没有关节信息"),[];let v=null;if(o.traverse(V=>{V.name==="Pipe_Link"&&!v&&(v=V)}),v)c.value=v;else return console.warn("未找到管子模型"),[];const i=[];return Object.keys(o.joints).forEach(V=>{const s=o.joints[V];if(s._jointType==="fixed")return;const a=s.limit?{lower:s.limit.lower??C(s._jointType,!1),upper:s.limit.upper??C(s._jointType,!0)}:{lower:C(s._jointType,!1),upper:C(s._jointType,!0)};i.push({name:V,type:s._jointType||"unknown",limit:a,currentValue:s.angle||0,urdfJoint:s})}),i.sort((V,s)=>V.name.localeCompare(s.name))},L=(o,v)=>{const i=d.value.find(s=>s.name===o);if(!i)return;const V=parseFloat(v);if(i.limit){const s=Math.max(i.limit.lower,Math.min(i.limit.upper,V));i.currentValue=s}else i.currentValue=V;u.model&&u.model.setJointValue?u.model.setJointValue(o,i.currentValue):i.urdfJoint&&i.urdfJoint.setJointValue(i.currentValue)},$=o=>o.reduce((v,i)=>{let V=0;const s=i.Y??0,a=i.C??0,w=i.R??0;return s>0&&(V+=s),a>0&&w>0&&(V+=w*y(a)),v+V},0),J=o=>{const v=[],i=o.Y??0,V=o.B??0,s=o.C??0,a=o.R??0,w={pos:new n.Vector3(0,0,0),localY:new n.Vector3(0,1,0),localX:new n.Vector3(1,0,0),localZ:new n.Vector3(0,0,1)};if(!i&&!s)return v;if(v.push(w.pos.clone()),V!==0){const U=new n.Matrix4().makeRotationAxis(w.localY,y(V));w.localX.applyMatrix4(U),w.localZ.applyMatrix4(U)}if(i>0&&(w.pos.add(w.localY.clone().multiplyScalar(i*ae)),v.push(w.pos.clone())),s>0&&a>0){const U=y(s),T=a*ae,W=w.pos.clone().add(w.localX.clone().multiplyScalar(-T)),R=Math.max(16,Math.ceil(s/5));for(let M=1;M<=R;M++){const H=U*M/R,K=new n.Matrix4().makeRotationAxis(w.localZ,H),se=w.localX.clone().multiplyScalar(T).applyMatrix4(K),ie=W.clone().add(se);v.push(ie)}}return v},G=(o,v=0)=>{let i=f.slice(0,o+1);const V=f[o+1];if(V&&v>0){const R={...V,B:(V.B??0)*v,C:(V.C??0)*v};i.push(R)}const s=$(i),a=Math.max(0,b.value-s),w=[];w.push(new n.Vector3(0,0,0));const U=new n.Vector3(0,a*ae,0);a>0&&w.push(U);let T={pos:U.clone(),localY:new n.Vector3(0,1,0),localX:new n.Vector3(1,0,0),localZ:new n.Vector3(0,0,1)};const W=[];for(let R=i.length-1;R>=0;R--){const M=i[R],H=J(M);if(H.length>0){const K=H.map(Q=>{const ne=Q.clone(),ue=new n.Matrix4;return ue.makeBasis(T.localX,T.localY,T.localZ),ne.applyMatrix4(ue),ne.add(T.pos)});W.push(K);const te=K[K.length-1];T.pos=te.clone();const se=M.B??0,ie=M.C??0;if(se!==0){const Q=new n.Matrix4().makeRotationAxis(T.localY,y(se));T.localX.applyMatrix4(Q),T.localZ.applyMatrix4(Q)}if(ie>0){const Q=y(ie),ne=new n.Matrix4().makeRotationAxis(T.localZ,Q);T.localY.applyMatrix4(ne),T.localX.applyMatrix4(ne)}}}for(const R of W)R.length>1&&w.push(...R.slice(1));w.length<2&&w.push(new n.Vector3(0,.001,0));try{const R=new n.CatmullRomCurve3(w,!1,"catmullrom",.01),M=new n.TubeGeometry(R,Math.max(2,w.length*4),P.value*ae,18,!1);c.value.geometry.dispose(),c.value.geometry=M}catch(R){console.error("管件更新失败",R)}},Y=(o,v,i=1)=>{o&&(Object.keys(o).forEach(V=>{const s=o[V],a=d.value.find(w=>w.name===V);a&&(a.currentValue=s,u.model&&u.model.setJointValue?u.model.setJointValue(V,s):a.urdfJoint&&a.urdfJoint.setJointValue(s))}),G(v,i))},m=(o,v,i)=>o+(v-o)*i,l=(o,v,i)=>{if(!o||!v)return o||v;const V={};return Object.keys(o).forEach(s=>{const a=o[s],w=v[s];V[s]=m(a,w||a,i)}),V},_=()=>{if(f.length===0){console.warn("没有动画数据");return}I(),D.value=!0,S.value=!1,E.value=0,r.value=0,B()},B=()=>{if(!D.value||S.value)return;const o=E.value;if(o>=f.length-1){const s=f[f.length-1];Y(s,f.length-1,1),j();return}const v=r.value/ce,i=f[o],V=f[o+1];if(V){const s=l(i,V,v);Y(s,o,v)}else Y(i,o);r.value++,r.value>ce&&(r.value=0,E.value++),k.value=setTimeout(B,p())},O=()=>{S.value=!0,k.value&&(clearTimeout(k.value),k.value=null)},j=()=>{D.value=!1,S.value=!1,t.value=1,k.value&&(clearTimeout(k.value),k.value=null)};g({startAnimation:_,pauseAnimation:O,stopAnimation:j,resetAll:()=>{j(),E.value=0,r.value=0,d.value.forEach(o=>{(o.type==="revolute"||o.type==="prismatic")&&L(o.name,0)}),G(-1,0)},fastForward:()=>{t.value<4&&(t.value=Math.min(4,t.value*2))},fastBackward:()=>{t.value>.25&&(t.value=Math.max(.25,t.value/2))}}),e.watch(()=>u.model,o=>{o?(h.value=o,d.value=A(o)):d.value=[]},{immediate:!0});const ee=()=>{!u.model||D.value&&!S.value||d.value.forEach(o=>{o.urdfJoint&&o.urdfJoint.angle!==void 0&&(o.currentValue=o.urdfJoint.angle)})},le=()=>{const o=()=>{ee(),x.value=requestAnimationFrame(o)};o()},re=()=>{x.value&&(cancelAnimationFrame(x.value),x.value=null)};return e.onMounted(()=>{le()}),e.onUnmounted(()=>{re(),j()}),(o,v)=>(e.openBlock(),e.createElementBlock("div",Ve,[d.value.length>0?(e.openBlock(),e.createElementBlock("div",Me,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,i=>{var V,s,a,w;return e.openBlock(),e.createElementBlock("div",{key:i.name,class:"joint-item"},[e.createElementVNode("div",ke,[e.createElementVNode("div",Pe,[e.createElementVNode("span",Ce,e.toDisplayString(i.name),1),e.createElementVNode("span",be," ["+e.toDisplayString(((V=i.limit)==null?void 0:V.lower.toFixed(2))??(i.type==="revolute"?"-3.14":"-1.00"))+", "+e.toDisplayString(((s=i.limit)==null?void 0:s.upper.toFixed(2))??(i.type==="revolute"?"3.14":"1.00"))+"] ",1)]),e.createElementVNode("span",Ee,e.toDisplayString(i.type),1)]),i.type==="revolute"||i.type==="prismatic"?(e.openBlock(),e.createElementBlock("div",_e,[e.createElementVNode("div",ze,[e.createElementVNode("input",{type:"range",min:((a=i.limit)==null?void 0:a.lower)??(i.type==="revolute"?-Math.PI:-1),max:((w=i.limit)==null?void 0:w.upper)??(i.type==="revolute"?Math.PI:1),step:.01,value:i.currentValue,onInput:U=>L(i.name,U.target.value),class:"joint-slider",disabled:D.value&&!S.value},null,40,De)]),e.createElementVNode("div",Ne,[e.createElementVNode("span",Se,e.toDisplayString(i.currentValue?Number(i.currentValue).toFixed(3):"0.000"),1),e.createElementVNode("span",Be,e.toDisplayString(i.type==="revolute"?"rad":"m"),1)])])):e.createCommentVNode("",!0)])}),128))])):(e.openBlock(),e.createElementBlock("div",Ae,v[0]||(v[0]=[e.createElementVNode("p",null,"未检测到可控制的关节",-1)])))]))}},Te=oe._export_sfc(Fe,[["__scopeId","data-v-035ae936"]]),Le={class:"panel-content"},Ie="id",$e={__name:"urdfTree",props:{model:Object,maxExpandCount:{type:Number,default:10},expandStrategy:{type:String,default:"breadth",validator:z=>["breadth","firstLevel"].includes(z)}},emits:["nodeClick"],setup(z,{emit:g}){const u=z,d=g,h=e.ref([]),x={children:"children",label:"label"},P=r=>{d("nodeClick",r)},c=(r,k=0)=>{const y=[];return Array.isArray(r)&&(r==null?void 0:r.length)>0&&r.forEach(t=>{if(!(t!=null&&t.isMesh)&&((t==null?void 0:t.type)==="URDFJoint"||(t==null?void 0:t.type)==="URDFLink")){const p={name:t==null?void 0:t.name,label:t==null?void 0:t.name,show:!0,level:k+1,isPenultimate:!1,type:t==null?void 0:t.type,id:t==null?void 0:t.id,limit:(t==null?void 0:t.limit)??"",children:c(t==null?void 0:t.children,k+1),path:t==null?void 0:t.name};y.push(p)}}),y},b=r=>r?[{name:r==null?void 0:r.name,label:r==null?void 0:r.name,show:!0,level:1,isPenultimate:!1,type:r==null?void 0:r.type,id:r==null?void 0:r.id,limit:(r==null?void 0:r.limit)??"",children:c(r==null?void 0:r.children,1),path:r==null?void 0:r.name}]:[],F=(r,k)=>{const y=[],t=[...r];for(;t.length>0&&y.length<k;){const p=t.shift();p.children&&p.children.length>0&&(y.push(p.id),t.push(...p.children))}return y},D=(r,k)=>{const y=[];return r.forEach(t=>{if(t.children&&t.children.length>0){y.push(t.id);const p=t.children.filter(f=>f.children&&f.children.length>0).slice(0,k).map(f=>f.id);y.push(...p)}}),y.slice(0,k+1)},S=e.computed(()=>!h.value||h.value.length===0?[]:u.expandStrategy==="firstLevel"?D(h.value,u.maxExpandCount):F(h.value,u.maxExpandCount)),E=e.computed(()=>u!=null&&u.model?b(u.model):[]);return e.watch(E,r=>{h.value=JSON.parse(JSON.stringify(r))},{immediate:!0}),(r,k)=>{const y=e.resolveComponent("el-tree");return e.openBlock(),e.createElementBlock("div",Le,[e.createVNode(y,{data:h.value,props:x,"default-expanded-keys":S.value,"node-key":Ie,onNodeClick:P},null,8,["data","default-expanded-keys"])])}}},Je=oe._export_sfc($e,[["__scopeId","data-v-290ff4e1"]]),Oe=["xlink:href"],Ue=e.defineComponent({__name:"svgIcon",props:{backgroundColor:{default:"#f0f0f0"},prefix:{default:"icon"},name:{},size:{default:16},spin:{type:Boolean,default:!1},active:{type:Boolean,default:!1}},setup(z){const g=z,u=e.computed(()=>({backgroundColor:g.backgroundColor})),d=e.computed(()=>`#${g.prefix}-${g.name}`),h=e.computed(()=>{const{size:x}=g;let P=`${x}`;return P=`${P.replace("px","")}px`,{width:P,height:P}});return(x,P)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["container",{active:x.active}]),style:e.normalizeStyle(u.value)},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["svg-icon",[x.$attrs.class,x.spin&&"svg-icon-spin"]]),style:e.normalizeStyle(h.value),"aria-hidden":"true"},[e.createElementVNode("use",{"xlink:href":d.value},null,8,Oe)],6))],6))}}),N=oe._export_sfc(Ue,[["__scopeId","data-v-3150a90b"]]),Ge={class:"obj-viewer-container"},je={class:"buttonGroup-top"},qe={class:"buttonGroup-topLeft"},Xe={class:"buttonGroup-left"},He={class:"buttonGroup-right"},Ye={class:"buttonGroup-bottom"},Ze={class:"left-panel"},We={class:"panel-header"},Ke={key:1,class:"clipping-content"},Qe={class:"radio-group"},et={class:"radio-label"},tt={class:"radio-label"},nt={class:"radio-label"},at={class:"radio-label"},ot={class:"right-panel"},lt={class:"panel-header"},st={key:0,class:"loading-overlay"},it={__name:"threeModel",props:{animationData:{type:Object,default:()=>{}}},emits:["getAnimationData"],setup(z,{expose:g,emit:u}){const d=u;let h=null,x=!1;const P=e.ref(null),c=e.ref(!1),b=e.ref("");e.ref(!1);const F=e.ref(!1),D=e.ref(!1),S=e.ref(""),E=e.ref(!1),r=e.ref(""),k=e.ref(),{currentModels:y,initialCameraPosition:t,initialTargetPosition:p,initThreeJS:f,handleResize:C,fitCameraToAllModels:I,getThreeJSObjects:A,clearAllModels:L,cleanup:$}=ve(P),{isAnimating:J,toggleAnimation:G,stopAnimation:Y}=ge(A,y),{isClipping:m,activeClippingAxis:l,toggleClipping:_,updateClippingPlanes:B}=he(A,y),{addModelsFromUrls:O,loadModelByDefaultPath:j,urdfModel:q,modelBoundingBoxes:X}=pe.useModelLoader(A,y,c,b,L),Z=()=>{if(F.value||y.value.length===0)return;F.value=!0,J.value&&Y();const{camera:s,controls:a}=A();if(!s||!a)return;a.enabled=!0;const w=H=>H<.5?4*H*H*H:1-Math.pow(-2*H+2,3)/2,U=s.position.clone(),T=a.target.clone(),W=1500,R=Date.now(),M=()=>{const H=Date.now()-R,K=Math.min(H/W,1),te=w(K);s.position.lerpVectors(U,t.value,te),a.target.lerpVectors(T,p.value,te),K<1?requestAnimationFrame(M):F.value=!1};M()},ee=async()=>x?Promise.resolve():new Promise(s=>{const a=()=>{x?s():requestAnimationFrame(a)};a()}),le=async(s,a)=>{try{await ee(),J.value&&Y(),m.value&&_();const w=await a(s);return I(X),w}catch(w){throw console.error("加载模型失败:",w),w}},re=async s=>le(s,O),o=async s=>le(s,j),v=s=>{D.value=!0,S.value=s,s==="剖面视图"&&!m.value&&_()},i=s=>{E.value=!0,r.value=s,s==="动画仿真"&&d("getAnimationData")},V=()=>{e.nextTick(()=>{var s;(s=k.value)==null||s.startAnimation()})};return e.onMounted(async()=>{await e.nextTick();try{f(),h=A().scene,x=!0,window.addEventListener("resize",C)}catch(s){console.error("Three.js初始化失败:",s)}}),e.onBeforeUnmount(()=>{x=!1,S.value="",r.value="",window.removeEventListener("resize",C),J.value&&Y(),$()}),g({addModelsFromUrls:re,loadModelByDefaultPath:o}),(s,a)=>{var U,T,W,R;const w=e.resolveComponent("el-scrollbar");return e.openBlock(),e.createElementBlock("div",Ge,[e.createElementVNode("div",{ref_key:"threejsContainer",ref:P,class:"threejs-container"},null,512),e.createElementVNode("div",je,[e.createVNode(N,{name:"guanjianjiexi",size:"34"}),e.createVNode(N,{name:"guanjiekongzhi",size:"34"}),e.createVNode(N,{name:"gongyishengcheng",size:"34"}),e.createVNode(N,{name:"buchangshezhi",size:"34"}),e.createVNode(N,{name:"shuchujiagongchengxu",size:"34"})]),e.createElementVNode("div",qe,[e.createVNode(N,{name:"viewReset",size:"24",onClick:Z,title:"重置"}),e.createVNode(N,{name:"fangda",size:"24",title:"放大"}),e.createVNode(N,{name:"suoxiao",size:"24",title:"缩小"}),e.createVNode(N,{name:"lookAround",size:"24",onClick:e.unref(G),title:e.unref(J)?"停止动画":"动画视图"},null,8,["onClick","title"])]),e.createElementVNode("div",Xe,[e.createVNode(N,{name:"jiegoushu",size:"24",onClick:a[0]||(a[0]=M=>v("场景树")),active:D.value&&S.value==="场景树",title:"场景树"},null,8,["active"]),e.createVNode(N,{name:"clipping",size:"24",onClick:a[1]||(a[1]=M=>v("剖面视图")),active:D.value&&S.value==="剖面视图",title:"剖面视图"},null,8,["active"]),e.createVNode(N,{name:"donghuafangzhen",size:"24",onClick:a[2]||(a[2]=M=>v("场景树3"))}),e.createVNode(N,{name:"donghuafangzhen",size:"24",onClick:a[3]||(a[3]=M=>v("场景4"))})]),e.createElementVNode("div",He,[e.createVNode(N,{name:"donghuafangzhen",size:"24"}),e.createVNode(N,{name:"donghuafangzhen",size:"24"}),e.createVNode(N,{name:"guanjiekongzhi",size:"24",onClick:a[4]||(a[4]=M=>i("关节控制")),active:E.value&&r.value==="关节控制",title:"关节控制"},null,8,["active"]),e.createVNode(N,{name:"donghuafangzhen",size:"24",title:"动画仿真",onClick:a[5]||(a[5]=M=>i("动画仿真")),active:E.value&&r.value==="动画仿真"},null,8,["active"]),e.createVNode(N,{name:"donghuafangzhen",size:"24"}),e.createVNode(N,{name:"donghuafangzhen",size:"24"})]),e.createElementVNode("div",Ye,[e.createVNode(N,{name:"kuaitui",size:"24",backgroundColor:"#ffffff",title:"快退",onClick:(U=k.value)==null?void 0:U.fastBackward},null,8,["onClick"]),e.createVNode(N,{name:"bofang",size:"24",backgroundColor:"#ffffff",title:"播放",onClick:V}),e.createVNode(N,{name:"kuaijin",size:"24",backgroundColor:"#ffffff",title:"快进",onClick:(T=k.value)==null?void 0:T.fastForward},null,8,["onClick"]),e.createVNode(N,{name:"zanting",size:"24",backgroundColor:"#ffffff",title:"暂停",onClick:(W=k.value)==null?void 0:W.pauseAnimation},null,8,["onClick"]),e.createVNode(N,{name:"zhongzhi",size:"24",backgroundColor:"#ffffff",title:"停止",onClick:(R=k.value)==null?void 0:R.resetAll},null,8,["onClick"])]),e.withDirectives(e.createElementVNode("div",Ze,[e.createElementVNode("div",We,[e.createElementVNode("span",null,e.toDisplayString(S.value),1),e.createElementVNode("span",{class:"close",onClick:a[6]||(a[6]=M=>D.value=!1)}," X ")]),e.createVNode(w,{"max-height":"650px"},{default:e.withCtx(()=>[S.value==="场景树"?(e.openBlock(),e.createBlock(Je,{key:0,model:e.unref(q)},null,8,["model"])):e.createCommentVNode("",!0),S.value==="剖面视图"?(e.openBlock(),e.createElementBlock("div",Ke,[e.createElementVNode("div",Qe,[e.createElementVNode("label",et,[e.withDirectives(e.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"none","onUpdate:modelValue":a[7]||(a[7]=M=>e.isRef(l)?l.value=M:null),onChange:a[8]||(a[8]=(...M)=>e.unref(B)&&e.unref(B)(...M))},null,544),[[e.vModelRadio,e.unref(l)]]),a[16]||(a[16]=e.createElementVNode("span",{class:"radio-text"},"无切割",-1))]),e.createElementVNode("label",tt,[e.withDirectives(e.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"x","onUpdate:modelValue":a[9]||(a[9]=M=>e.isRef(l)?l.value=M:null),onChange:a[10]||(a[10]=(...M)=>e.unref(B)&&e.unref(B)(...M))},null,544),[[e.vModelRadio,e.unref(l)]]),a[17]||(a[17]=e.createElementVNode("span",{class:"radio-text"},"X轴切割",-1))]),e.createElementVNode("label",nt,[e.withDirectives(e.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"y","onUpdate:modelValue":a[11]||(a[11]=M=>e.isRef(l)?l.value=M:null),onChange:a[12]||(a[12]=(...M)=>e.unref(B)&&e.unref(B)(...M))},null,544),[[e.vModelRadio,e.unref(l)]]),a[18]||(a[18]=e.createElementVNode("span",{class:"radio-text"},"Y轴切割",-1))]),e.createElementVNode("label",at,[e.withDirectives(e.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"z","onUpdate:modelValue":a[13]||(a[13]=M=>e.isRef(l)?l.value=M:null),onChange:a[14]||(a[14]=(...M)=>e.unref(B)&&e.unref(B)(...M))},null,544),[[e.vModelRadio,e.unref(l)]]),a[19]||(a[19]=e.createElementVNode("span",{class:"radio-text"},"Z轴切割",-1))])])])):e.createCommentVNode("",!0)]),_:1})],512),[[e.vShow,D.value]]),e.withDirectives(e.createElementVNode("div",ot,[e.createElementVNode("div",lt,[e.createElementVNode("span",null,e.toDisplayString(r.value),1),e.createElementVNode("span",{class:"close",onClick:a[15]||(a[15]=M=>E.value=!1)}," X ")]),e.createVNode(w,{"max-height":"650px"},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(Te,{ref_key:"jointRef",ref:k,model:e.unref(q),scene:e.unref(h),animationData:z.animationData},null,8,["model","scene","animationData"]),[[e.vShow,r.value==="关节控制"]]),e.withDirectives(e.createVNode(xe,{animationData:z.animationData},null,8,["animationData"]),[[e.vShow,r.value==="动画仿真"]])]),_:1})],512),[[e.vShow,E.value]]),c.value?(e.openBlock(),e.createElementBlock("div",st,[a[20]||(a[20]=e.createElementVNode("div",{class:"loading-spinner"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(b.value),1)])):e.createCommentVNode("",!0)])}}},rt=oe._export_sfc(it,[["__scopeId","data-v-7bc47bb3"]]);exports.default=rt;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BB3g-g6w.cjs"),fe=require("./OrbitControls-DL4zlshS.cjs"),pe=require("./index-BXUjjen4.cjs"),oe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),me=require("./index-Pve69buQ.cjs"),de=require("./request-Dl8yi2iS.cjs");function ve(z){let g=null,u=null,d=null,h=null,x=null,P=null,c=null,b=null;const D=1e3/30;let S=0;const E=e.ref([]),r=e.ref(new n.Vector3),k=e.ref(new n.Vector3),y=()=>{if(!z.value)return;g=new n.Scene,g.background=new n.Color(15790320);const m=z.value;u=new n.PerspectiveCamera(75,m.clientWidth/m.clientHeight,.1,1e4),u.position.set(8,-8,6),u.up.set(0,0,1),u.lookAt(0,0,0),d=new n.WebGLRenderer({antialias:!0,alpha:!0}),d.setSize(m.clientWidth,m.clientHeight),d.localClippingEnabled=!0,d.shadowMap.enabled=!0,d.shadowMap.type=n.PCFSoftShadowMap,d.toneMapping=n.ACESFilmicToneMapping,d.toneMappingExposure=1,d.outputColorSpace=n.SRGBColorSpace,m.appendChild(d.domElement),h=new fe.OrbitControls(u,d.domElement),h.enableDamping=!0,h.dampingFactor=.05,h.mouseButtons={LEFT:null,MIDDLE:n.MOUSE.PAN,RIGHT:n.MOUSE.ROTATE},h.panSpeed=.7,x=new n.Xe(u,d,{container:m,type:"cube",placement:"top-right",offset:{top:10,right:10},background:{color:"#D1D1D1",opacity:1},front:{label:"Top"},bottom:{label:"Front"},left:{label:"Left"},right:{label:"Right"},top:{label:"Back"},back:{label:"Bottom"}}),x.attachControls(h),f(),C()},t=(m,l)=>{c&&(g.remove(c),c.dispose()),b&&(g.remove(b),b.geometry.dispose(),b.material.dispose());const _=Math.min(Math.max(Math.floor(m/20),30),40);c=new n.GridHelper(m,_,13421772,14540253),c.rotateX(Math.PI/2),c.position.copy(l),g.add(c);const B=new n.PlaneGeometry(m,m),O=new n.ShadowMaterial({opacity:.3,color:0});b=new n.Mesh(B,O),b.position.copy(l),b.position.z-=.01,b.receiveShadow=!0,g.add(b)},p=()=>{if(E.value.length===0)return;const m=new n.Box3;let l=!1;if(E.value.forEach(X=>{if(X.userData.boundingBox)m.union(X.userData.boundingBox),l=!0;else if(X.userData.modelId&&modelBoundingBoxes.has(X.userData.modelId)){const Z=modelBoundingBoxes.get(X.userData.modelId);m.union(Z.box),l=!0}else m.expandByObject(X),l=!0}),!l){console.warn("无法计算包围盒,网格更新失败");return}const _=m.getSize(new n.Vector3),B=m.getCenter(new n.Vector3),O=Math.max(_.x,_.y,_.z),j=Math.max(O*8,50),q=new n.Vector3(B.x,B.y,m.min.z);t(j,q)},f=()=>{const m=new n.AmbientLight(4210752,.6);g.add(m);const l=new n.DirectionalLight(16777215,2);l.position.set(10,10,8),l.castShadow=!0,l.shadow.mapSize.width=4096,l.shadow.mapSize.height=4096,l.shadow.camera.near=.5,l.shadow.camera.far=50,l.shadow.camera.left=-50,l.shadow.camera.right=50,l.shadow.camera.top=50,l.shadow.camera.bottom=-50,g.add(l);const _=new n.DirectionalLight(16777215,.8);_.position.set(-8,-8,6),g.add(_);const B=new n.DirectionalLight(16777215,.6);B.position.set(0,-15,2),g.add(B);const O=new n.HemisphereLight(16777215,4473924,.8);g.add(O);const j=new n.PointLight(16777215,1,50);j.position.set(15,15,15),g.add(j);const q=new n.PointLight(16777215,.5,50);q.position.set(-15,-15,15),g.add(q)},C=()=>{P=requestAnimationFrame(C),h&&h.update();const m=performance.now(),l=m-S;l<D||(S=m-l%D,d&&g&&u&&d.render(g,u),x&&x.render())},I=m=>{["map","normalMap","bumpMap","roughnessMap","metalnessMap","emissiveMap","specularMap","envMap","lightMap","aoMap","displacementMap"].forEach(_=>{m[_]&&m[_].dispose&&m[_].dispose()}),m.dispose&&m.dispose()},A=m=>{m==null||m.traverse(l=>{l.geometry&&l.geometry.dispose(),l.material&&(Array.isArray(l.material)?l.material.forEach(_=>{I(_)}):I(l.material))})};return{currentModels:E,initialCameraPosition:r,initialTargetPosition:k,initThreeJS:y,handleResize:()=>{if(!z.value||!u||!d||!x)return;const m=z.value,l=m.clientWidth,_=m.clientHeight;u.aspect=l/_,u.updateProjectionMatrix(),d.setSize(l,_),x.update()},fitCameraToAllModels:m=>{if(!u||!h||E.value.length===0)return;const l=new n.Box3;let _=!1;if(E.value.forEach(Z=>{if(Z.userData.boundingBox)l.union(Z.userData.boundingBox),_=!0;else if(Z.userData.modelId&&m.has(Z.userData.modelId)){const ee=m.get(Z.userData.modelId);l.union(ee.box),_=!0}else l.expandByObject(Z),_=!0}),!_){console.warn("无法计算包围盒");return}const B=l.getSize(new n.Vector3),O=l.getCenter(new n.Vector3),q=Math.max(B.x,B.y,B.z)*.8,X=new n.Vector3(O.x+q,O.y-q,O.z+q);u.position.copy(X),u.lookAt(O),h.target.copy(O),h.update(),r.value.copy(X),k.value.copy(O),p()},getThreeJSObjects:()=>({scene:g,camera:u,renderer:d,controls:h,gizmo:x}),clearAllModels:()=>{if(!g)return;E.value.forEach(l=>{g.remove(l),A(l)});const m=[];g.children.forEach(l=>{!l.isLight&&!l.isCamera&&l.type!=="GridHelper"&&l!==b&&m.push(l)}),m.forEach(l=>{g.remove(l),A(l)}),E.value=[],p()},cleanup:()=>{P&&cancelAnimationFrame(P),c&&c.dispose(),b&&(b.geometry.dispose(),b.material.dispose()),d&&d.dispose(),h&&h.dispose(),x&&x.dispose()},updateGridForModels:p}}function ge(z,g){const u=e.ref(!1);let d=null,h=12700,x=new n.Vector3,P=new n.Vector3,c=new n.Vector3,b=0,F=null;const D=t=>t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2,S=t=>{const p=new n.Vector3,f=b*1.2,C=new n.Vector3(c.x+f,c.y,c.z),I=new n.Vector3(c.x,c.y+f,c.z),A=new n.Vector3(c.x,c.y-f,c.z);if(t<=.567){const $=t/.567*Math.PI*2;p.x=c.x+Math.cos($)*f,p.z=c.z+Math.sin($)*f,p.y=c.y}else if(t<=.724){const L=(t-.567)/.157,$=D(L);p.lerpVectors(C,I,$)}else if(t<=.881){const L=(t-.724)/.157,J=D(L)*Math.PI;p.x=c.x+Math.sin(J)*f,p.y=c.y+Math.cos(J)*f,p.z=c.z}else{const L=(t-.881)/.119,$=D(L);p.lerpVectors(A,x,$)}return p},E=()=>{const{camera:t,controls:p}=z();if(!t||!p)return;d||(d=Date.now());const f=Date.now()-d,C=Math.min(f/h,1);if(C>=1){k();return}const I=S(C);t.position.copy(I),t.lookAt(c),p.target.copy(c),F=requestAnimationFrame(E)},r=()=>{if(g.value.length===0)return;const{camera:t,controls:p}=z();if(!t||!p)return;x.copy(t.position),P.copy(p.target);const f=new n.Box3;g.value.forEach(G=>{f.expandByObject(G)});const C=f.getSize(new n.Vector3);c=f.getCenter(new n.Vector3),b=Math.max(C.x,C.y,C.z)*1.2;const I=new n.Vector3(c.x+b*1.2,c.y,c.z);p.enabled=!1;const A=t.position.clone(),L=1e3,$=Date.now(),J=()=>{const G=Date.now()-$,Y=Math.min(G/L,1),m=D(Y);t.position.lerpVectors(A,I,m),t.lookAt(c),p.target.copy(c),Y<1?requestAnimationFrame(J):(u.value=!0,d=null,E())};J()},k=()=>{u.value=!1,d=null,F&&(cancelAnimationFrame(F),F=null);const{controls:t}=z();t&&(t.enabled=!0,t.target.copy(P))};return{isAnimating:u,toggleAnimation:()=>{if(u.value){u.value=!1,d=null,F&&(cancelAnimationFrame(F),F=null);const{camera:t,controls:p}=z();if(!t||!p)return;p.enabled=!0;const f=t.position.clone(),C=p.target.clone(),I=1500,A=Date.now(),L=()=>{const $=Date.now()-A,J=Math.min($/I,1),G=D(J);t.position.lerpVectors(f,x,G),p.target.lerpVectors(C,P,G),J<1&&requestAnimationFrame(L)};L()}else r()},startAnimation:r,stopAnimation:k}}function he(z,g){const u=e.ref(!1),d=e.ref("none");let h=[],x=[],P=new n.Box3,c=new n.Vector3;const b=()=>{h=[new n.Plane(new n.Vector3(1,0,0),0),new n.Plane(new n.Vector3(0,1,0),0),new n.Plane(new n.Vector3(0,0,1),0)]},F=()=>{P.makeEmpty(),g.value.forEach(y=>{P.expandByObject(y)}),c=P.getCenter(new n.Vector3)},D=y=>{const t=P.getSize(new n.Vector3);let p,f,C;y==="x"?(p=new n.PlaneGeometry(t.z*1.2,t.y*1.2),f=new n.Vector3(c.x,c.y,c.z),C=new n.Euler(0,Math.PI/2,0)):y==="y"?(p=new n.PlaneGeometry(t.x*1.2,t.z*1.2),f=new n.Vector3(c.x,c.y,c.z),C=new n.Euler(Math.PI/2,0,0)):y==="z"&&(p=new n.PlaneGeometry(t.x*1.2,t.y*1.2),f=new n.Vector3(c.x,c.y,c.z),C=new n.Euler(0,0,0));const I=new n.MeshPhongMaterial({color:8900331,transparent:!0,opacity:.3,side:n.DoubleSide,depthWrite:!1}),A=new n.Mesh(p,I);return A.position.copy(f),A.rotation.copy(C),A},S=()=>{if(E(),r(),d.value==="none")return;F();let y=null;if(d.value==="x"?(h[0].constant=-c.x,y=h[0]):d.value==="y"?(h[1].constant=-c.y,y=h[1]):d.value==="z"&&(h[2].constant=-c.z,y=h[2]),y){g.value.forEach(p=>{p.traverse(f=>{f.isMesh&&f.material&&(Array.isArray(f.material)?f.material.forEach(C=>{C.clippingPlanes=[y]}):f.material.clippingPlanes=[y])})});const{scene:t}=z();if(t){const p=D(d.value);t.add(p),x.push(p)}}},E=()=>{g.value.forEach(y=>{y.traverse(t=>{t.isMesh&&t.material&&(Array.isArray(t.material)?t.material.forEach(p=>{p.clippingPlanes=[]}):t.material.clippingPlanes=[])})})},r=()=>{const{scene:y}=z();y&&x.forEach(t=>{y.remove(t),t.geometry.dispose(),t.material.dispose()}),x=[]};return{isClipping:u,activeClippingAxis:d,toggleClipping:()=>{u.value=!u.value,u.value?(b(),g.value.length>0&&F()):(d.value="none",E(),r())},updateClippingPlanes:S,clearClippingPlanes:E,clearClippingMeshes:r}}const ye={class:"panel-content"},we={__name:"animationPanel",props:{animationData:Object,model:Object},setup(z){const g=z;e.ref();const u=e.ref();return e.watch(()=>[g==null?void 0:g.animationData],()=>{var h;let d=((h=me.cloneDeep(g==null?void 0:g.animationData))==null?void 0:h["输出(动画数据)Content"])??[];d&&(u.value=d)},{deep:!0,immediate:!0}),(d,h)=>{var x,P,c;return e.openBlock(),e.createElementBlock("div",ye,[(e.openBlock(),e.createBlock(pe.ssTable,{itemData:(x=u.value)==null?void 0:x.compData,key:(P=u.value)==null?void 0:P.id,index:(c=u.value)==null?void 0:c.id,showHeader:!1},null,8,["itemData","index"]))])}}},xe=oe._export_sfc(we,[["__scopeId","data-v-2387536e"]]),Ve={class:"panel-content"},Me={key:0,class:"joints-list"},ke={class:"joint-info-row"},Pe={class:"joint-left"},Ce={class:"joint-name"},be={class:"joint-range"},Ee={class:"joint-type"},_e={key:0,class:"joint-control-row"},ze={class:"slider-container"},De=["min","max","value","onInput","disabled"],Ne={class:"value-display"},Se={class:"joint-value"},Be={class:"unit"},Ae={key:1,class:"empty-state"},ae=.001,Re=1e3,ce=60,Fe={__name:"jointPanel",props:{model:Object,scene:Object,animationData:Object},setup(z,{expose:g}){const u=z;e.ref(!0);const d=e.ref([]),h=e.ref(null),x=e.ref(null),P=e.ref(12.5),c=e.ref(),b=e.ref(1302),F=e.ref(30),D=e.ref(!1),S=e.ref(!1),E=e.ref(0),r=e.ref(0),k=e.ref(null),y=n.MathUtils.degToRad,t=e.ref(1),p=()=>Re/ce/t.value;let f=[];e.watch(()=>u.animationData,o=>{var i;b.value=o.extra.管长,P.value=o.extra.外径/2;let v=((i=me.cloneDeep(o))==null?void 0:i["输出(动画数据)"])??[];v&&v.length>0&&(f=v)},{deep:!0}),e.computed(()=>f.length>0);const C=(o,v=!1)=>o==="revolute"?v?Math.PI:-Math.PI:o==="prismatic"?v?1:-1:0,I=()=>{if(!h.value)return de.ElMessage.error("未加载 URDF"),!1;let o=null;return h.value.traverse(v=>{o||v.name==="Pipe_Link"&&v.traverse(i=>{i instanceof n.Mesh&&!o&&(o=i)})}),o?(o.position.y-=F.value*ae,c.value=o,o.material=new n.MeshPhongMaterial({color:11184810,shininess:80,side:n.DoubleSide}),!0):(de.ElMessage.error('在 "Pipe_Link" 内未找到任何 Mesh'),!1)},A=o=>{if(!o||!o.joints)return console.warn("URDF模型没有关节信息"),[];let v=null;if(o.traverse(V=>{V.name==="Pipe_Link"&&!v&&(v=V)}),v)c.value=v;else return console.warn("未找到管子模型"),[];const i=[];return Object.keys(o.joints).forEach(V=>{const s=o.joints[V];if(s._jointType==="fixed")return;const a=s.limit?{lower:s.limit.lower??C(s._jointType,!1),upper:s.limit.upper??C(s._jointType,!0)}:{lower:C(s._jointType,!1),upper:C(s._jointType,!0)};i.push({name:V,type:s._jointType||"unknown",limit:a,currentValue:s.angle||0,urdfJoint:s})}),i.sort((V,s)=>V.name.localeCompare(s.name))},L=(o,v)=>{const i=d.value.find(s=>s.name===o);if(!i)return;const V=parseFloat(v);if(i.limit){const s=Math.max(i.limit.lower,Math.min(i.limit.upper,V));i.currentValue=s}else i.currentValue=V;u.model&&u.model.setJointValue?u.model.setJointValue(o,i.currentValue):i.urdfJoint&&i.urdfJoint.setJointValue(i.currentValue)},$=o=>o.reduce((v,i)=>{let V=0;const s=i.Y??0,a=i.C??0,w=i.R??0;return s>0&&(V+=s),a>0&&w>0&&(V+=w*y(a)),v+V},0),J=o=>{const v=[],i=o.Y??0,V=o.B??0,s=o.C??0,a=o.R??0,w={pos:new n.Vector3(0,0,0),localY:new n.Vector3(0,1,0),localX:new n.Vector3(1,0,0),localZ:new n.Vector3(0,0,1)};if(!i&&!s)return v;if(v.push(w.pos.clone()),V!==0){const U=new n.Matrix4().makeRotationAxis(w.localY,y(V));w.localX.applyMatrix4(U),w.localZ.applyMatrix4(U)}if(i>0&&(w.pos.add(w.localY.clone().multiplyScalar(i*ae)),v.push(w.pos.clone())),s>0&&a>0){const U=y(s),T=a*ae,W=w.pos.clone().add(w.localX.clone().multiplyScalar(-T)),R=Math.max(16,Math.ceil(s/5));for(let M=1;M<=R;M++){const H=U*M/R,K=new n.Matrix4().makeRotationAxis(w.localZ,H),se=w.localX.clone().multiplyScalar(T).applyMatrix4(K),ie=W.clone().add(se);v.push(ie)}}return v},G=(o,v=0)=>{let i=f.slice(0,o+1);const V=f[o+1];if(V&&v>0){const R={...V,B:(V.B??0)*v,C:(V.C??0)*v};i.push(R)}const s=$(i),a=Math.max(0,b.value-s),w=[];w.push(new n.Vector3(0,0,0));const U=new n.Vector3(0,a*ae,0);a>0&&w.push(U);let T={pos:U.clone(),localY:new n.Vector3(0,1,0),localX:new n.Vector3(1,0,0),localZ:new n.Vector3(0,0,1)};const W=[];for(let R=i.length-1;R>=0;R--){const M=i[R],H=J(M);if(H.length>0){const K=H.map(Q=>{const ne=Q.clone(),ue=new n.Matrix4;return ue.makeBasis(T.localX,T.localY,T.localZ),ne.applyMatrix4(ue),ne.add(T.pos)});W.push(K);const te=K[K.length-1];T.pos=te.clone();const se=M.B??0,ie=M.C??0;if(se!==0){const Q=new n.Matrix4().makeRotationAxis(T.localY,y(se));T.localX.applyMatrix4(Q),T.localZ.applyMatrix4(Q)}if(ie>0){const Q=y(ie),ne=new n.Matrix4().makeRotationAxis(T.localZ,Q);T.localY.applyMatrix4(ne),T.localX.applyMatrix4(ne)}}}for(const R of W)R.length>1&&w.push(...R.slice(1));w.length<2&&w.push(new n.Vector3(0,.001,0));try{const R=new n.CatmullRomCurve3(w,!1,"catmullrom",.01),M=new n.TubeGeometry(R,Math.max(2,w.length*4),P.value*ae,18,!1);c.value.geometry.dispose(),c.value.geometry=M}catch(R){console.error("管件更新失败",R)}},Y=(o,v,i=1)=>{o&&(Object.keys(o).forEach(V=>{const s=o[V],a=d.value.find(w=>w.name===V);a&&(a.currentValue=s,u.model&&u.model.setJointValue?u.model.setJointValue(V,s):a.urdfJoint&&a.urdfJoint.setJointValue(s))}),G(v,i))},m=(o,v,i)=>o+(v-o)*i,l=(o,v,i)=>{if(!o||!v)return o||v;const V={};return Object.keys(o).forEach(s=>{const a=o[s],w=v[s];V[s]=m(a,w||a,i)}),V},_=()=>{if(f.length===0){console.warn("没有动画数据");return}I(),D.value=!0,S.value=!1,E.value=0,r.value=0,B()},B=()=>{if(!D.value||S.value)return;const o=E.value;if(o>=f.length-1){const s=f[f.length-1];Y(s,f.length-1,1),j();return}const v=r.value/ce,i=f[o],V=f[o+1];if(V){const s=l(i,V,v);Y(s,o,v)}else Y(i,o);r.value++,r.value>ce&&(r.value=0,E.value++),k.value=setTimeout(B,p())},O=()=>{S.value=!0,k.value&&(clearTimeout(k.value),k.value=null)},j=()=>{D.value=!1,S.value=!1,t.value=1,k.value&&(clearTimeout(k.value),k.value=null)};g({startAnimation:_,pauseAnimation:O,stopAnimation:j,resetAll:()=>{j(),E.value=0,r.value=0,d.value.forEach(o=>{(o.type==="revolute"||o.type==="prismatic")&&L(o.name,0)}),G(-1,0)},fastForward:()=>{t.value<4&&(t.value=Math.min(4,t.value*2))},fastBackward:()=>{t.value>.25&&(t.value=Math.max(.25,t.value/2))}}),e.watch(()=>u.model,o=>{o?(h.value=o,d.value=A(o)):d.value=[]},{immediate:!0});const ee=()=>{!u.model||D.value&&!S.value||d.value.forEach(o=>{o.urdfJoint&&o.urdfJoint.angle!==void 0&&(o.currentValue=o.urdfJoint.angle)})},le=()=>{const o=()=>{ee(),x.value=requestAnimationFrame(o)};o()},re=()=>{x.value&&(cancelAnimationFrame(x.value),x.value=null)};return e.onMounted(()=>{le()}),e.onUnmounted(()=>{re(),j()}),(o,v)=>(e.openBlock(),e.createElementBlock("div",Ve,[d.value.length>0?(e.openBlock(),e.createElementBlock("div",Me,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,i=>{var V,s,a,w;return e.openBlock(),e.createElementBlock("div",{key:i.name,class:"joint-item"},[e.createElementVNode("div",ke,[e.createElementVNode("div",Pe,[e.createElementVNode("span",Ce,e.toDisplayString(i.name),1),e.createElementVNode("span",be," ["+e.toDisplayString(((V=i.limit)==null?void 0:V.lower.toFixed(2))??(i.type==="revolute"?"-3.14":"-1.00"))+", "+e.toDisplayString(((s=i.limit)==null?void 0:s.upper.toFixed(2))??(i.type==="revolute"?"3.14":"1.00"))+"] ",1)]),e.createElementVNode("span",Ee,e.toDisplayString(i.type),1)]),i.type==="revolute"||i.type==="prismatic"?(e.openBlock(),e.createElementBlock("div",_e,[e.createElementVNode("div",ze,[e.createElementVNode("input",{type:"range",min:((a=i.limit)==null?void 0:a.lower)??(i.type==="revolute"?-Math.PI:-1),max:((w=i.limit)==null?void 0:w.upper)??(i.type==="revolute"?Math.PI:1),step:.01,value:i.currentValue,onInput:U=>L(i.name,U.target.value),class:"joint-slider",disabled:D.value&&!S.value},null,40,De)]),e.createElementVNode("div",Ne,[e.createElementVNode("span",Se,e.toDisplayString(i.currentValue?Number(i.currentValue).toFixed(3):"0.000"),1),e.createElementVNode("span",Be,e.toDisplayString(i.type==="revolute"?"rad":"m"),1)])])):e.createCommentVNode("",!0)])}),128))])):(e.openBlock(),e.createElementBlock("div",Ae,v[0]||(v[0]=[e.createElementVNode("p",null,"未检测到可控制的关节",-1)])))]))}},Te=oe._export_sfc(Fe,[["__scopeId","data-v-035ae936"]]),Le={class:"panel-content"},Ie="id",$e={__name:"urdfTree",props:{model:Object,maxExpandCount:{type:Number,default:10},expandStrategy:{type:String,default:"breadth",validator:z=>["breadth","firstLevel"].includes(z)}},emits:["nodeClick"],setup(z,{emit:g}){const u=z,d=g,h=e.ref([]),x={children:"children",label:"label"},P=r=>{d("nodeClick",r)},c=(r,k=0)=>{const y=[];return Array.isArray(r)&&(r==null?void 0:r.length)>0&&r.forEach(t=>{if(!(t!=null&&t.isMesh)&&((t==null?void 0:t.type)==="URDFJoint"||(t==null?void 0:t.type)==="URDFLink")){const p={name:t==null?void 0:t.name,label:t==null?void 0:t.name,show:!0,level:k+1,isPenultimate:!1,type:t==null?void 0:t.type,id:t==null?void 0:t.id,limit:(t==null?void 0:t.limit)??"",children:c(t==null?void 0:t.children,k+1),path:t==null?void 0:t.name};y.push(p)}}),y},b=r=>r?[{name:r==null?void 0:r.name,label:r==null?void 0:r.name,show:!0,level:1,isPenultimate:!1,type:r==null?void 0:r.type,id:r==null?void 0:r.id,limit:(r==null?void 0:r.limit)??"",children:c(r==null?void 0:r.children,1),path:r==null?void 0:r.name}]:[],F=(r,k)=>{const y=[],t=[...r];for(;t.length>0&&y.length<k;){const p=t.shift();p.children&&p.children.length>0&&(y.push(p.id),t.push(...p.children))}return y},D=(r,k)=>{const y=[];return r.forEach(t=>{if(t.children&&t.children.length>0){y.push(t.id);const p=t.children.filter(f=>f.children&&f.children.length>0).slice(0,k).map(f=>f.id);y.push(...p)}}),y.slice(0,k+1)},S=e.computed(()=>!h.value||h.value.length===0?[]:u.expandStrategy==="firstLevel"?D(h.value,u.maxExpandCount):F(h.value,u.maxExpandCount)),E=e.computed(()=>u!=null&&u.model?b(u.model):[]);return e.watch(E,r=>{h.value=JSON.parse(JSON.stringify(r))},{immediate:!0}),(r,k)=>{const y=e.resolveComponent("el-tree");return e.openBlock(),e.createElementBlock("div",Le,[e.createVNode(y,{data:h.value,props:x,"default-expanded-keys":S.value,"node-key":Ie,onNodeClick:P},null,8,["data","default-expanded-keys"])])}}},Je=oe._export_sfc($e,[["__scopeId","data-v-290ff4e1"]]),Oe=["xlink:href"],Ue=e.defineComponent({__name:"svgIcon",props:{backgroundColor:{default:"#f0f0f0"},prefix:{default:"icon"},name:{},size:{default:16},spin:{type:Boolean,default:!1},active:{type:Boolean,default:!1}},setup(z){const g=z,u=e.computed(()=>({backgroundColor:g.backgroundColor})),d=e.computed(()=>`#${g.prefix}-${g.name}`),h=e.computed(()=>{const{size:x}=g;let P=`${x}`;return P=`${P.replace("px","")}px`,{width:P,height:P}});return(x,P)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["container",{active:x.active}]),style:e.normalizeStyle(u.value)},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["svg-icon",[x.$attrs.class,x.spin&&"svg-icon-spin"]]),style:e.normalizeStyle(h.value),"aria-hidden":"true"},[e.createElementVNode("use",{"xlink:href":d.value},null,8,Oe)],6))],6))}}),N=oe._export_sfc(Ue,[["__scopeId","data-v-3150a90b"]]),Ge={class:"obj-viewer-container"},je={class:"buttonGroup-top"},qe={class:"buttonGroup-topLeft"},Xe={class:"buttonGroup-left"},He={class:"buttonGroup-right"},Ye={class:"buttonGroup-bottom"},Ze={class:"left-panel"},We={class:"panel-header"},Ke={key:1,class:"clipping-content"},Qe={class:"radio-group"},et={class:"radio-label"},tt={class:"radio-label"},nt={class:"radio-label"},at={class:"radio-label"},ot={class:"right-panel"},lt={class:"panel-header"},st={key:0,class:"loading-overlay"},it={__name:"threeModel",props:{animationData:{type:Object,default:()=>{}}},emits:["getAnimationData"],setup(z,{expose:g,emit:u}){const d=u;let h=null,x=!1;const P=e.ref(null),c=e.ref(!1),b=e.ref("");e.ref(!1);const F=e.ref(!1),D=e.ref(!1),S=e.ref(""),E=e.ref(!1),r=e.ref(""),k=e.ref(),{currentModels:y,initialCameraPosition:t,initialTargetPosition:p,initThreeJS:f,handleResize:C,fitCameraToAllModels:I,getThreeJSObjects:A,clearAllModels:L,cleanup:$}=ve(P),{isAnimating:J,toggleAnimation:G,stopAnimation:Y}=ge(A,y),{isClipping:m,activeClippingAxis:l,toggleClipping:_,updateClippingPlanes:B}=he(A,y),{addModelsFromUrls:O,loadModelByDefaultPath:j,urdfModel:q,modelBoundingBoxes:X}=pe.useModelLoader(A,y,c,b,L),Z=()=>{if(F.value||y.value.length===0)return;F.value=!0,J.value&&Y();const{camera:s,controls:a}=A();if(!s||!a)return;a.enabled=!0;const w=H=>H<.5?4*H*H*H:1-Math.pow(-2*H+2,3)/2,U=s.position.clone(),T=a.target.clone(),W=1500,R=Date.now(),M=()=>{const H=Date.now()-R,K=Math.min(H/W,1),te=w(K);s.position.lerpVectors(U,t.value,te),a.target.lerpVectors(T,p.value,te),K<1?requestAnimationFrame(M):F.value=!1};M()},ee=async()=>x?Promise.resolve():new Promise(s=>{const a=()=>{x?s():requestAnimationFrame(a)};a()}),le=async(s,a)=>{try{await ee(),J.value&&Y(),m.value&&_();const w=await a(s);return I(X),w}catch(w){throw console.error("加载模型失败:",w),w}},re=async s=>le(s,O),o=async s=>le(s,j),v=s=>{D.value=!0,S.value=s,s==="剖面视图"&&!m.value&&_()},i=s=>{E.value=!0,r.value=s,s==="动画仿真"&&d("getAnimationData")},V=()=>{e.nextTick(()=>{var s;(s=k.value)==null||s.startAnimation()})};return e.onMounted(async()=>{await e.nextTick();try{f(),h=A().scene,x=!0,window.addEventListener("resize",C)}catch(s){console.error("Three.js初始化失败:",s)}}),e.onBeforeUnmount(()=>{x=!1,S.value="",r.value="",window.removeEventListener("resize",C),J.value&&Y(),$()}),g({addModelsFromUrls:re,loadModelByDefaultPath:o}),(s,a)=>{var U,T,W,R;const w=e.resolveComponent("el-scrollbar");return e.openBlock(),e.createElementBlock("div",Ge,[e.createElementVNode("div",{ref_key:"threejsContainer",ref:P,class:"threejs-container"},null,512),e.createElementVNode("div",je,[e.createVNode(N,{name:"guanjianjiexi",size:"34"}),e.createVNode(N,{name:"guanjiekongzhi",size:"34"}),e.createVNode(N,{name:"gongyishengcheng",size:"34"}),e.createVNode(N,{name:"buchangshezhi",size:"34"}),e.createVNode(N,{name:"shuchujiagongchengxu",size:"34"})]),e.createElementVNode("div",qe,[e.createVNode(N,{name:"viewReset",size:"24",onClick:Z,title:"重置"}),e.createVNode(N,{name:"fangda",size:"24",title:"放大"}),e.createVNode(N,{name:"suoxiao",size:"24",title:"缩小"}),e.createVNode(N,{name:"lookAround",size:"24",onClick:e.unref(G),title:e.unref(J)?"停止动画":"动画视图"},null,8,["onClick","title"])]),e.createElementVNode("div",Xe,[e.createVNode(N,{name:"jiegoushu",size:"24",onClick:a[0]||(a[0]=M=>v("场景树")),active:D.value&&S.value==="场景树",title:"场景树"},null,8,["active"]),e.createVNode(N,{name:"clipping",size:"24",onClick:a[1]||(a[1]=M=>v("剖面视图")),active:D.value&&S.value==="剖面视图",title:"剖面视图"},null,8,["active"]),e.createVNode(N,{name:"donghuafangzhen",size:"24",onClick:a[2]||(a[2]=M=>v("场景树3"))}),e.createVNode(N,{name:"donghuafangzhen",size:"24",onClick:a[3]||(a[3]=M=>v("场景4"))})]),e.createElementVNode("div",He,[e.createVNode(N,{name:"donghuafangzhen",size:"24"}),e.createVNode(N,{name:"donghuafangzhen",size:"24"}),e.createVNode(N,{name:"guanjiekongzhi",size:"24",onClick:a[4]||(a[4]=M=>i("关节控制")),active:E.value&&r.value==="关节控制",title:"关节控制"},null,8,["active"]),e.createVNode(N,{name:"donghuafangzhen",size:"24",title:"动画仿真",onClick:a[5]||(a[5]=M=>i("动画仿真")),active:E.value&&r.value==="动画仿真"},null,8,["active"]),e.createVNode(N,{name:"donghuafangzhen",size:"24"}),e.createVNode(N,{name:"donghuafangzhen",size:"24"})]),e.createElementVNode("div",Ye,[e.createVNode(N,{name:"kuaitui",size:"24",backgroundColor:"#ffffff",title:"快退",onClick:(U=k.value)==null?void 0:U.fastBackward},null,8,["onClick"]),e.createVNode(N,{name:"bofang",size:"24",backgroundColor:"#ffffff",title:"播放",onClick:V}),e.createVNode(N,{name:"kuaijin",size:"24",backgroundColor:"#ffffff",title:"快进",onClick:(T=k.value)==null?void 0:T.fastForward},null,8,["onClick"]),e.createVNode(N,{name:"zanting",size:"24",backgroundColor:"#ffffff",title:"暂停",onClick:(W=k.value)==null?void 0:W.pauseAnimation},null,8,["onClick"]),e.createVNode(N,{name:"zhongzhi",size:"24",backgroundColor:"#ffffff",title:"停止",onClick:(R=k.value)==null?void 0:R.resetAll},null,8,["onClick"])]),e.withDirectives(e.createElementVNode("div",Ze,[e.createElementVNode("div",We,[e.createElementVNode("span",null,e.toDisplayString(S.value),1),e.createElementVNode("span",{class:"close",onClick:a[6]||(a[6]=M=>D.value=!1)}," X ")]),e.createVNode(w,{"max-height":"650px"},{default:e.withCtx(()=>[S.value==="场景树"?(e.openBlock(),e.createBlock(Je,{key:0,model:e.unref(q)},null,8,["model"])):e.createCommentVNode("",!0),S.value==="剖面视图"?(e.openBlock(),e.createElementBlock("div",Ke,[e.createElementVNode("div",Qe,[e.createElementVNode("label",et,[e.withDirectives(e.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"none","onUpdate:modelValue":a[7]||(a[7]=M=>e.isRef(l)?l.value=M:null),onChange:a[8]||(a[8]=(...M)=>e.unref(B)&&e.unref(B)(...M))},null,544),[[e.vModelRadio,e.unref(l)]]),a[16]||(a[16]=e.createElementVNode("span",{class:"radio-text"},"无切割",-1))]),e.createElementVNode("label",tt,[e.withDirectives(e.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"x","onUpdate:modelValue":a[9]||(a[9]=M=>e.isRef(l)?l.value=M:null),onChange:a[10]||(a[10]=(...M)=>e.unref(B)&&e.unref(B)(...M))},null,544),[[e.vModelRadio,e.unref(l)]]),a[17]||(a[17]=e.createElementVNode("span",{class:"radio-text"},"X轴切割",-1))]),e.createElementVNode("label",nt,[e.withDirectives(e.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"y","onUpdate:modelValue":a[11]||(a[11]=M=>e.isRef(l)?l.value=M:null),onChange:a[12]||(a[12]=(...M)=>e.unref(B)&&e.unref(B)(...M))},null,544),[[e.vModelRadio,e.unref(l)]]),a[18]||(a[18]=e.createElementVNode("span",{class:"radio-text"},"Y轴切割",-1))]),e.createElementVNode("label",at,[e.withDirectives(e.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"z","onUpdate:modelValue":a[13]||(a[13]=M=>e.isRef(l)?l.value=M:null),onChange:a[14]||(a[14]=(...M)=>e.unref(B)&&e.unref(B)(...M))},null,544),[[e.vModelRadio,e.unref(l)]]),a[19]||(a[19]=e.createElementVNode("span",{class:"radio-text"},"Z轴切割",-1))])])])):e.createCommentVNode("",!0)]),_:1})],512),[[e.vShow,D.value]]),e.withDirectives(e.createElementVNode("div",ot,[e.createElementVNode("div",lt,[e.createElementVNode("span",null,e.toDisplayString(r.value),1),e.createElementVNode("span",{class:"close",onClick:a[15]||(a[15]=M=>E.value=!1)}," X ")]),e.createVNode(w,{"max-height":"650px"},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(Te,{ref_key:"jointRef",ref:k,model:e.unref(q),scene:e.unref(h),animationData:z.animationData},null,8,["model","scene","animationData"]),[[e.vShow,r.value==="关节控制"]]),e.withDirectives(e.createVNode(xe,{animationData:z.animationData},null,8,["animationData"]),[[e.vShow,r.value==="动画仿真"]])]),_:1})],512),[[e.vShow,E.value]]),c.value?(e.openBlock(),e.createElementBlock("div",st,[a[20]||(a[20]=e.createElementVNode("div",{class:"loading-spinner"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(b.value),1)])):e.createCommentVNode("",!0)])}}},rt=oe._export_sfc(it,[["__scopeId","data-v-7bc47bb3"]]);exports.default=rt;
@@ -1,8 +1,8 @@
1
1
  import { ref as B, shallowRef as Be, defineComponent as Ke, watch as $, onMounted as Ve, nextTick as Xe, onBeforeUnmount as ze, resolveComponent as qe, createElementBlock as ue, openBlock as J, createElementVNode as b, withDirectives as We, createCommentVNode as fe, createVNode as F, unref as D, renderSlot as de, toDisplayString as he, withCtx as Ye, createBlock as $e, vShow as Je } from "vue";
2
- import { ae as Qe, af as re, ag as we, J as Ze, ah as z, K as ye, ai as C, aj as Se, C as G, ak as v, c as q, al as et, j as tt, D as nt, n as Y, V as j, am as st, an as be, ao as rt, ap as Ne, aq as it, ar as ot, Y as Q, as as at, at as Ie, au as ct, av as lt, aw as ut, ax as ie, ay as Ce, az as oe, aA as ft, aB as dt, Q as ht, aC as Z, Z as pt, t as Oe, l as mt, aD as X, aE as gt, u as Tt, aF as Rt, h as ve, aG as xt, w as Et, aH as At, R as _t, s as ee, P as Lt, o as Mt, aI as wt, aJ as yt, aK as St, aL as bt, aM as Nt, aN as ke, aO as It, aP as pe, aQ as me, aR as ge, aS as Te, aT as Re, $ as Ct, aU as Ot, B as Pe, aV as vt, k as kt } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DCVfKTPt.js";
2
+ import { ae as Qe, af as re, ag as we, J as Ze, ah as z, K as ye, ai as C, aj as Se, C as G, ak as v, c as q, al as et, j as tt, D as nt, n as Y, V as j, am as st, an as be, ao as rt, ap as Ne, aq as it, ar as ot, Y as Q, as as at, at as Ie, au as ct, av as lt, aw as ut, ax as ie, ay as Ce, az as oe, aA as ft, aB as dt, Q as ht, aC as Z, Z as pt, t as Oe, l as mt, aD as X, aE as gt, u as Tt, aF as Rt, h as ve, aG as xt, w as Et, aH as At, R as _t, s as ee, P as Lt, o as Mt, aI as wt, aJ as yt, aK as St, aL as bt, aM as Nt, aN as ke, aO as It, aP as pe, aQ as me, aR as ge, aS as Te, aT as Re, $ as Ct, aU as Ot, B as Pe, aV as vt, k as kt } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Dsy5DUE-.js";
3
3
  import "./index-BpMKqUU2.js";
4
- import { u as Pt, a as Ft, b as Dt, C as Ht } from "./iconfont-h4mgBzTa.js";
5
- import { M as Gt, O as Ut, S as jt } from "./MTLLoader-Ck3iCZBB.js";
4
+ import { u as Pt, a as Ft, b as Dt, C as Ht } from "./iconfont-Bz3uoevq.js";
5
+ import { M as Gt, O as Ut, S as jt } from "./MTLLoader-OOczUyeD.js";
6
6
  import { T as U } from "./svgIcon-4u4PW7Is.js";
7
7
  import { E as xe } from "./request-XJsZ4h2T.js";
8
8
  import { _ as Bt } from "./_plugin-vue_export-helper-CHgC5LLL.js";