ss-component-new 1.3.2 → 1.3.3

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 (79) hide show
  1. package/dist/{MTLLoader-xrJPpi4c.cjs → MTLLoader-C_XCtjSi.cjs} +1 -1
  2. package/dist/{MTLLoader-Dv2EVTWB.js → MTLLoader-YR-bfx1D.js} +1 -1
  3. package/dist/{OrbitControls-B_seM-IP.js → OrbitControls-BGsXD_A7.js} +1 -1
  4. package/dist/{OrbitControls-DeFoKJp9.cjs → OrbitControls-CktvE4iE.cjs} +1 -1
  5. package/dist/{URDFLoader-B6g0hxRm.cjs → URDFLoader-10oVp_KW.cjs} +1 -1
  6. package/dist/{URDFLoader-BT60rQtD.js → URDFLoader-m1gMdnSQ.js} +2 -2
  7. package/dist/{animationData-Beth8tFS.js → animationData-CpK8d_Vm.js} +1 -1
  8. package/dist/{animationData-CXbG057x.cjs → animationData-Cr2ra7rm.cjs} +1 -1
  9. package/dist/{array-QkdkoOAY.cjs → array-CNEAnwCQ.cjs} +1 -1
  10. package/dist/{array-C6jYq2-o.js → array-fed49Qom.js} +3 -3
  11. package/dist/{iconfont-h3lSsHxO.js → iconfont-0yJB130V.js} +2 -2
  12. package/dist/{iconfont-UNojnhH2.cjs → iconfont-DsF7kuG5.cjs} +1 -1
  13. package/dist/{index-CCn_Pa7c.cjs → index-82VS01cd.cjs} +1 -1
  14. package/dist/{index-CgR9iYFA.cjs → index-B4fEYSZz.cjs} +1 -1
  15. package/dist/{index-DzadQQ41.js → index-BAd4yIgj.js} +4 -4
  16. package/dist/{index-Bv-gTP_t.cjs → index-BIL173V1.cjs} +1 -1
  17. package/dist/{index-VcjIgkLE.cjs → index-BNzPNbKQ.cjs} +1 -1
  18. package/dist/{index-BF9Y0y6z.js → index-BRUsO0JA.js} +2 -2
  19. package/dist/{index-B7RJnzyb.js → index-BXUByyre.js} +1 -1
  20. package/dist/{index-4FJEY4G5.js → index-Bt-LE2d9.js} +1 -1
  21. package/dist/{index-CDYSTy2C.cjs → index-C0BL6sZ3.cjs} +1 -1
  22. package/dist/{index-DPNECOKG.cjs → index-C20PbKCx.cjs} +1 -1
  23. package/dist/{index-BR5J0fXr.cjs → index-C2XI6Hre.cjs} +1 -1
  24. package/dist/{index-DkzIAhpA.cjs → index-CE9d33l5.cjs} +1 -1
  25. package/dist/{index-NAekmm6C.js → index-CRc0qxAb.js} +1 -1
  26. package/dist/{index-DzAoltDQ.cjs → index-CVXrjDFh.cjs} +1 -1
  27. package/dist/{index-CPk9g8p3.js → index-CWl1ag4C.js} +1 -1
  28. package/dist/{index-Da5iE_ab.js → index-CZ-K2grw.js} +1 -1
  29. package/dist/{index-CaXg2zO6.cjs → index-Cexj88aL.cjs} +1 -1
  30. package/dist/{index-DRybfiC9.js → index-CwtCbdPr.js} +1 -1
  31. package/dist/{index-BqqRuoo3.js → index-D-38bzBf.js} +3 -3
  32. package/dist/{index-DtkLwSCK.cjs → index-D3ixok8t.cjs} +1 -1
  33. package/dist/{index-BbdTn4Wu.js → index-D3qDowev.js} +3 -3
  34. package/dist/{index-B1deFmCB.js → index-D8HD14bz.js} +1 -1
  35. package/dist/{index-B3jquljw.js → index-DAj8igrm.js} +4 -4
  36. package/dist/{index-CuKYtSif.js → index-DBh5Z73C.js} +1 -1
  37. package/dist/{index-hnHfOKW9.cjs → index-DHn6OW_a.cjs} +1 -1
  38. package/dist/{index-wpbqbw-8.cjs → index-DS-YTop9.cjs} +1 -1
  39. package/dist/{index-CUtrk2F2.cjs → index-DZ0yrDBw.cjs} +1 -1
  40. package/dist/{index-De3Zh_5B.cjs → index-D_Yhv_HV.cjs} +1 -1
  41. package/dist/{index-TxlM0xFu.cjs → index-DaIE9uY1.cjs} +1 -1
  42. package/dist/{index-DRLogw4i.js → index-DmZSvt8a.js} +5 -5
  43. package/dist/{index-7tMW9vmz.js → index-DywrXPIM.js} +13 -13
  44. package/dist/{index-r5JlBAZk.cjs → index-FeG6K9iT.cjs} +1 -1
  45. package/dist/{index-BBo5mPL3.js → index-NaWMtdUV.js} +1 -1
  46. package/dist/{index-DAeGe9R9.cjs → index-Rf4ukENq.cjs} +1 -1
  47. package/dist/{index-SvdMxP5R.js → index-XqNUjpwH.js} +332 -348
  48. package/dist/{index-C8qPBadE.cjs → index-fcGQ1ZME.cjs} +1 -1
  49. package/dist/{index-BYdJgNnt.js → index-gfdgTjvQ.js} +1 -1
  50. package/dist/{index-BJaAtaqN.js → index-rEUrneNF.js} +1 -1
  51. package/dist/{index-DJFQljsX.cjs → index-rmHO5QRp.cjs} +1 -1
  52. package/dist/{index-CVGCFimV.js → index-uwsxH5n7.js} +4 -4
  53. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DuyXGUSZ.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1pEFQ04s.js} +4142 -4137
  54. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BYHbVlRN.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-ZMwIbmlN.cjs} +96 -96
  55. package/dist/{index.vue_vue_type_style_index_1_lang-JNXKF-5g.cjs → index.vue_vue_type_style_index_1_lang--4T7j9qz.cjs} +1 -1
  56. package/dist/{index.vue_vue_type_style_index_1_lang-CPOQHkRi.js → index.vue_vue_type_style_index_1_lang-CNh42_ZH.js} +3 -3
  57. package/dist/{main-II23mGYX.cjs → main-CaDcA-qT.cjs} +1 -1
  58. package/dist/{main-ClpfURp9.js → main-KysT4onk.js} +3 -3
  59. package/dist/ss-component.cjs +1 -1
  60. package/dist/ss-component.js +8 -8
  61. package/dist/ss-component2.cjs +1 -1
  62. package/dist/ss-component2.js +10 -10
  63. package/dist/{threeModel-1StgfJTN.js → threeModel-CUhCPfB6.js} +4 -4
  64. package/dist/{threeModel-Bdx25CW5.cjs → threeModel-X3ghgTRs.cjs} +1 -1
  65. package/dist/{threePreview-Bf5gN_fI.js → threePreview-CkKl3frr.js} +3 -3
  66. package/dist/{threePreview-BNAELyED.cjs → threePreview-DOD9HOZn.cjs} +1 -1
  67. package/dist/{threeSceneView-u0zqKHWX.cjs → threeSceneView-DZvOLWv6.cjs} +1 -1
  68. package/dist/{threeSceneView-Boc1QaDR.js → threeSceneView-DlL9pZlj.js} +8 -8
  69. package/dist/{threeSceneViewForCPMPIP-CYkIXtPP.cjs → threeSceneViewForCPMPIP-CZvKvfDx.cjs} +1 -1
  70. package/dist/{threeSceneViewForCPMPIP-gnFSbkip.js → threeSceneViewForCPMPIP-DB0Eczbs.js} +7 -7
  71. package/dist/{threeTrackPathView-CBsHliC3.cjs → threeTrackPathView-DgyAEYfV.cjs} +1 -1
  72. package/dist/{threeTrackPathView-B1OFwlLh.js → threeTrackPathView-Eb1bvUXJ.js} +3 -3
  73. package/dist/{threeViewerHost-BSxl-4d-.cjs → threeViewerHost-BMU1tg9c.cjs} +1 -1
  74. package/dist/{threeViewerHost-B9z6zHUh.js → threeViewerHost-Bdzv9iPb.js} +2 -2
  75. package/dist/{urdfTree-C1KFI7et.cjs → urdfTree-CoK2r17Y.cjs} +1 -1
  76. package/dist/{urdfTree-CGZUqrH4.js → urdfTree-hLtm0aFY.js} +1 -1
  77. package/dist/{workpieceTreePanel-Bb9foDnf.js → workpieceTreePanel-Ne_ACq86.js} +4 -4
  78. package/dist/{workpieceTreePanel-BFsf-BrP.cjs → workpieceTreePanel-mWvCQyyw.cjs} +1 -1
  79. package/package.json +1 -1
@@ -1 +1 @@
1
- "use strict";const t=require("vue");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BYHbVlRN.cjs");const $=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),T={class:"dialog-title"},D={__name:"index",props:{title:{type:String,default:""},dialogWidth:{type:[Number,String],default:600},visible:{type:Boolean,default:!1},fullScreen:{type:Boolean,default:!1},dialogHeight:{type:[Number,String],default:600},minWidth:{type:[Number,String],default:400},minHeight:{type:[Number,String],default:300},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},modalClass:{type:String,default:""},alignCenter:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!0},resizable:{type:Boolean,default:!1}},emits:["beforeDestroy"],setup(p,{emit:M}){const e=p,H=M,w=t.ref(!1),s=t.reactive({width:void 0,height:void 0,minWidth:void 0,minHeight:void 0});let k=!1,r="",x=0,z=0,c=0,f=0,g=0,y=0,b=null;const N=i=>{var n,o;const l=(o=(n=i==null?void 0:i.target)==null?void 0:n.closest)==null?void 0:o.call(n,".el-dialog");return l||null},S=i=>{if(!i||i==="none")return{tx:0,ty:0};let l=i.match(/matrix\(([^)]+)\)/);if(l){const n=l[1].split(",").map(o=>Number(o.trim()));return{tx:(n==null?void 0:n[4])||0,ty:(n==null?void 0:n[5])||0}}if(l=i.match(/matrix3d\(([^)]+)\)/),l){const n=l[1].split(",").map(o=>Number(o.trim()));return{tx:(n==null?void 0:n[12])||0,ty:(n==null?void 0:n[13])||0}}return l=i.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/),l?{tx:Number(l[1])||0,ty:Number(l[2])||0}:{tx:0,ty:0}},W=(i,l,n)=>{i.style.transform=`translate(${l}px, ${n}px)`},d=(i,l)=>{if(!e.resizable)return;const n=N(i);if(!n)return;b=n,k=!0,r=l,x=i.clientX,z=i.clientY;const o=n.getBoundingClientRect();c=o.width,f=o.height;const a=window.getComputedStyle(n),{tx:u,ty:m}=S(a.transform);g=u,y=m,document.addEventListener("mousemove",C),document.addEventListener("mouseup",E)},C=i=>{if(!k||!b)return;const l=i.clientX-x,n=i.clientY-z,o=parseInt(s.minWidth||"0",10)||0,a=parseInt(s.minHeight||"0",10)||0;let u=c,m=f,B=g,v=y;if(r.includes("right")&&(u=Math.max(o,c+l)),r.includes("bottom")&&(m=Math.max(a,f+n)),r.includes("left")){const h=c-l;h<o?(u=o,B=g+(c-o)):(u=h,B=g+l)}if(r.includes("top")){const h=f-n;h<a?(m=a,v=y+(f-a)):(m=h,v=y+n)}s.width=`${u}px`,s.height=`${m}px`,W(b,B,v)},E=()=>{k=!1,r="",b=null,document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",E)},V=()=>{H("beforeDestroy")};return t.watch(()=>e==null?void 0:e.visible,i=>{w.value=i,i&&(e.resizable?(s.width=typeof e.dialogWidth=="number"?`${e.dialogWidth}px`:e.dialogWidth,s.height=typeof e.dialogHeight=="number"?`${e.dialogHeight}px`:e.dialogHeight,s.minWidth=typeof e.minWidth=="number"?`${e.minWidth}px`:e.minWidth,s.minHeight=typeof e.minHeight=="number"?`${e.minHeight}px`:e.minHeight):(s.width=void 0,s.height=void 0,s.minWidth=void 0,s.minHeight=void 0))},{deep:!0,immediate:!0}),(i,l)=>{const n=t.resolveComponent("el-dialog");return t.openBlock(),t.createBlock(n,{modelValue:w.value,"onUpdate:modelValue":l[8]||(l[8]=o=>w.value=o),width:e==null?void 0:e.dialogWidth,"before-close":V,draggable:"",style:t.normalizeStyle(e!=null&&e.resizable?s:void 0),fullscreen:e==null?void 0:e.fullScreen,"destroy-on-close":!0,"show-close":e==null?void 0:e.showClose,"close-on-click-modal":e==null?void 0:e.closeOnClickModal,"modal-class":p.modalClass,"close-on-press-escape":e==null?void 0:e.closeOnPressEscape,"align-center":e==null?void 0:e.alignCenter,"append-to-body":p.appendToBody},{header:t.withCtx(()=>[t.createElementVNode("div",T,t.toDisplayString(e==null?void 0:e.title),1),t.renderSlot(i.$slots,"header",{},void 0,!0)]),footer:t.withCtx(()=>[t.renderSlot(i.$slots,"footer",{},void 0,!0)]),default:t.withCtx(()=>[t.renderSlot(i.$slots,"default",{},void 0,!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:0,class:"resizable-handle top",onMousedown:l[0]||(l[0]=t.withModifiers(o=>d(o,"top"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:1,class:"resizable-handle right",onMousedown:l[1]||(l[1]=t.withModifiers(o=>d(o,"right"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:2,class:"resizable-handle bottom",onMousedown:l[2]||(l[2]=t.withModifiers(o=>d(o,"bottom"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:3,class:"resizable-handle left",onMousedown:l[3]||(l[3]=t.withModifiers(o=>d(o,"left"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:4,class:"resizable-handle top-left",onMousedown:l[4]||(l[4]=t.withModifiers(o=>d(o,"top-left"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:5,class:"resizable-handle top-right",onMousedown:l[5]||(l[5]=t.withModifiers(o=>d(o,"top-right"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:6,class:"resizable-handle bottom-left",onMousedown:l[6]||(l[6]=t.withModifiers(o=>d(o,"bottom-left"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:7,class:"resizable-handle bottom-right",onMousedown:l[7]||(l[7]=t.withModifiers(o=>d(o,"bottom-right"),["stop"]))},null,32)):t.createCommentVNode("",!0)]),_:3},8,["modelValue","width","style","fullscreen","show-close","close-on-click-modal","modal-class","close-on-press-escape","align-center","append-to-body"])}}},R=$._export_sfc(D,[["__scopeId","data-v-c3e3bec2"]]);exports.ssDialog=R;
1
+ "use strict";const t=require("vue");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-ZMwIbmlN.cjs");const $=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),T={class:"dialog-title"},D={__name:"index",props:{title:{type:String,default:""},dialogWidth:{type:[Number,String],default:600},visible:{type:Boolean,default:!1},fullScreen:{type:Boolean,default:!1},dialogHeight:{type:[Number,String],default:600},minWidth:{type:[Number,String],default:400},minHeight:{type:[Number,String],default:300},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},modalClass:{type:String,default:""},alignCenter:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!0},resizable:{type:Boolean,default:!1}},emits:["beforeDestroy"],setup(p,{emit:M}){const e=p,H=M,w=t.ref(!1),s=t.reactive({width:void 0,height:void 0,minWidth:void 0,minHeight:void 0});let k=!1,r="",x=0,z=0,c=0,f=0,g=0,y=0,b=null;const N=i=>{var n,o;const l=(o=(n=i==null?void 0:i.target)==null?void 0:n.closest)==null?void 0:o.call(n,".el-dialog");return l||null},S=i=>{if(!i||i==="none")return{tx:0,ty:0};let l=i.match(/matrix\(([^)]+)\)/);if(l){const n=l[1].split(",").map(o=>Number(o.trim()));return{tx:(n==null?void 0:n[4])||0,ty:(n==null?void 0:n[5])||0}}if(l=i.match(/matrix3d\(([^)]+)\)/),l){const n=l[1].split(",").map(o=>Number(o.trim()));return{tx:(n==null?void 0:n[12])||0,ty:(n==null?void 0:n[13])||0}}return l=i.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/),l?{tx:Number(l[1])||0,ty:Number(l[2])||0}:{tx:0,ty:0}},W=(i,l,n)=>{i.style.transform=`translate(${l}px, ${n}px)`},d=(i,l)=>{if(!e.resizable)return;const n=N(i);if(!n)return;b=n,k=!0,r=l,x=i.clientX,z=i.clientY;const o=n.getBoundingClientRect();c=o.width,f=o.height;const a=window.getComputedStyle(n),{tx:u,ty:m}=S(a.transform);g=u,y=m,document.addEventListener("mousemove",C),document.addEventListener("mouseup",E)},C=i=>{if(!k||!b)return;const l=i.clientX-x,n=i.clientY-z,o=parseInt(s.minWidth||"0",10)||0,a=parseInt(s.minHeight||"0",10)||0;let u=c,m=f,B=g,v=y;if(r.includes("right")&&(u=Math.max(o,c+l)),r.includes("bottom")&&(m=Math.max(a,f+n)),r.includes("left")){const h=c-l;h<o?(u=o,B=g+(c-o)):(u=h,B=g+l)}if(r.includes("top")){const h=f-n;h<a?(m=a,v=y+(f-a)):(m=h,v=y+n)}s.width=`${u}px`,s.height=`${m}px`,W(b,B,v)},E=()=>{k=!1,r="",b=null,document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",E)},V=()=>{H("beforeDestroy")};return t.watch(()=>e==null?void 0:e.visible,i=>{w.value=i,i&&(e.resizable?(s.width=typeof e.dialogWidth=="number"?`${e.dialogWidth}px`:e.dialogWidth,s.height=typeof e.dialogHeight=="number"?`${e.dialogHeight}px`:e.dialogHeight,s.minWidth=typeof e.minWidth=="number"?`${e.minWidth}px`:e.minWidth,s.minHeight=typeof e.minHeight=="number"?`${e.minHeight}px`:e.minHeight):(s.width=void 0,s.height=void 0,s.minWidth=void 0,s.minHeight=void 0))},{deep:!0,immediate:!0}),(i,l)=>{const n=t.resolveComponent("el-dialog");return t.openBlock(),t.createBlock(n,{modelValue:w.value,"onUpdate:modelValue":l[8]||(l[8]=o=>w.value=o),width:e==null?void 0:e.dialogWidth,"before-close":V,draggable:"",style:t.normalizeStyle(e!=null&&e.resizable?s:void 0),fullscreen:e==null?void 0:e.fullScreen,"destroy-on-close":!0,"show-close":e==null?void 0:e.showClose,"close-on-click-modal":e==null?void 0:e.closeOnClickModal,"modal-class":p.modalClass,"close-on-press-escape":e==null?void 0:e.closeOnPressEscape,"align-center":e==null?void 0:e.alignCenter,"append-to-body":p.appendToBody},{header:t.withCtx(()=>[t.createElementVNode("div",T,t.toDisplayString(e==null?void 0:e.title),1),t.renderSlot(i.$slots,"header",{},void 0,!0)]),footer:t.withCtx(()=>[t.renderSlot(i.$slots,"footer",{},void 0,!0)]),default:t.withCtx(()=>[t.renderSlot(i.$slots,"default",{},void 0,!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:0,class:"resizable-handle top",onMousedown:l[0]||(l[0]=t.withModifiers(o=>d(o,"top"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:1,class:"resizable-handle right",onMousedown:l[1]||(l[1]=t.withModifiers(o=>d(o,"right"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:2,class:"resizable-handle bottom",onMousedown:l[2]||(l[2]=t.withModifiers(o=>d(o,"bottom"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:3,class:"resizable-handle left",onMousedown:l[3]||(l[3]=t.withModifiers(o=>d(o,"left"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:4,class:"resizable-handle top-left",onMousedown:l[4]||(l[4]=t.withModifiers(o=>d(o,"top-left"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:5,class:"resizable-handle top-right",onMousedown:l[5]||(l[5]=t.withModifiers(o=>d(o,"top-right"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:6,class:"resizable-handle bottom-left",onMousedown:l[6]||(l[6]=t.withModifiers(o=>d(o,"bottom-left"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:7,class:"resizable-handle bottom-right",onMousedown:l[7]||(l[7]=t.withModifiers(o=>d(o,"bottom-right"),["stop"]))},null,32)):t.createCommentVNode("",!0)]),_:3},8,["modelValue","width","style","fullscreen","show-close","close-on-click-modal","modal-class","close-on-press-escape","align-center","append-to-body"])}}},R=$._export_sfc(D,[["__scopeId","data-v-c3e3bec2"]]);exports.ssDialog=R;
@@ -1 +1 @@
1
- "use strict";const i=require("vue"),k=require("./index-DRTxe12U.cjs"),ce=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BYHbVlRN.cjs"),y=require("./index-C5pQXH0_.cjs"),pe=require("./menuIndex-D52EAwtb.cjs"),E=k.useModelComp(k.pinia),m=ce.useUnit(k.pinia),I=k.useMenuState(k.pinia),{menus:ee,configMenu:B,activeMenuPath:O,cacheStructures:_}=k.storeToRefs(I),j=i.ref(!1),te=i.computed(()=>{var e,t;return[{key:"extraButton",contents:[]},{key:"rowButton",contents:[{label:"修改"}]},{key:"header",contents:[{label:"菜单名称",prop:"title",isFormColHidden:!1},{label:"菜单类型",prop:"menuType",formType:"select",options:[{label:"系统菜单",value:"集团"},{label:"公司",value:"公司"}],isTableColHidden:!1,isFormColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:(t=(e=k.cloneDeep(ee.value))==null?void 0:e.map(l=>({...l,menuType:"系统菜单"})))==null?void 0:t.filter(l=>l.title!=="系统管理"&&l.title!=="平台管理")}]}),$=i.ref([]),H=i.ref([{label:"新建"}]),fe=i.computed(()=>[{key:"extraButton",contents:H.value},{key:"rowButton",contents:[{label:"修改"},{label:"删除"}]},{key:"header",contents:[{label:"操作类型",prop:"operateType",formType:"select",options:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标",prop:"operateIcon",formType:"inputPopover",value:""},{label:"操作触发事件",prop:"trigger",formType:"select",options:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"配置一:",prop:"dialogConfig",formType:"button",value:"弹窗内容",isTableColHidden:!0},{label:"配置二:",prop:"contentConfig",formType:"button",value:"模块内容",isTableColHidden:!0},{label:"继承配置:",prop:"allowInherit",formType:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1,isTableColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:$.value}]),J=i.ref([]),T=i.ref({}),de=i.ref({}),R=i.ref([{label:"菜单",prop:"path",isFormColHidden:!0,value:""},{label:"操作类型:",prop:"operateType",type:"select",contents:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标:",prop:"operateIcon",type:"inputPopover",value:""},{label:"操作触发事件:",prop:"trigger",type:"select",contents:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"生成的菜单图标:",prop:"menuIcon",type:"inputPopover",value:""},{label:"配置一:",prop:"dialogConfig",type:"button",value:"操作触发的弹窗结构"},{label:"配置二:",prop:"contentConfig",type:"button",value:"操作生成的模块结构",isFormColHidden:!1},{label:"",prop:"structureIds",type:"input",value:[],isFormColHidden:!0},{label:"继承配置:",prop:"allowInherit",type:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),q=e=>{var t;J.value=e?(t=R.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l:{...l,value:e?e[l==null?void 0:l.prop]:""}):R.value},ie=i.ref([{label:"查询"},{label:"重置"}]),ge=async()=>{},le=e=>e.map(t=>t.childMenus&&t.childMenus.length>0?{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title,children:le(t.childMenus)}:{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title}),g=i.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),U=i.ref([]),C=i.ref({}),h=i.ref(null),ae=i.ref([]),oe=i.computed(()=>{var e;return(e=le(ee.value))==null?void 0:e.filter(t=>t.title!=="系统管理"&&t.title!=="平台管理")}),ne=async e=>{var l,u,n,c;const t=await y.getInsofDataApi({key:{type:"subStructure",systemKey:sessionStorage.getItem("systemKey"),pageKey:e,version:1}});if(((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result){const r=(c=(n=t.data)==null?void 0:n.result)==null?void 0:c.map(p=>{var f;return{id:p==null?void 0:p.id,...(f=p==null?void 0:p.value)==null?void 0:f.pageData}});ae.value=r,I.setCacheStructures({key:"contentConfig",data:r})}},ve=async e=>{var t;j.value=!0,h.value={...e,rootNode:pe.findRootNodeByPath(oe.value,e.path)},I.setCacheStructures(null),(e==null?void 0:e.level)===0?H.value.splice(0):(H.value=[{label:"新建"}],U.value=(t=e==null?void 0:e.path)==null?void 0:t.split("/")),await I.setConfigMenu(null),await ne(e==null?void 0:e.path),await x(e)},ye=e=>{switch(e){case"新建":return"create";case"修改":return"update";case"删除":return"delete"}},be=async(e,t)=>{var l,u;if(!h.value)return y.ElMessage.warning("请先选择菜单");if(g.type=ye(e),U.value=[],E.setSubmitCurStructure(!1),m.setSelectTitle([]),C.value=k.cloneDeep(t),g.type!=="delete"){switch(g.type){case"create":q(null),await I.setConfigMenu(null);break;case"update":q(C.value),await I.setConfigMenu(C.value),console.log("clickRowButton",C.value);break}await i.nextTick(),g.title=`【${g.type==="create"?(l=h.value)==null?void 0:l.path:(u=C.value)==null?void 0:u.path}】菜单配置${e}`,g.show=!0}else await re(C.value,g.type)},ue=i.ref(!0),he=async e=>{var t;T.value=e,await I.setConfigMenu({...T.value,path:(t=h.value)==null?void 0:t.path}),ue.value=(e==null?void 0:e.operateType)!=="新增"};i.watch(()=>ue.value,async e=>{var t;await i.nextTick(),J.value=(t=R.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l.prop==="contentConfig"?{...l,isFormColHidden:e}:l:{...l,value:T.value?T.value[l==null?void 0:l.prop]:""})},{immediate:!0,deep:!0});const Ce=i.ref(null),Ie=async(e,t)=>{var r,p,f,s,b;if(g.type==="create"){const a=(p=(r=_.value)==null?void 0:r.filter(d=>(d==null?void 0:d.key)===t))==null?void 0:p.flatMap(d=>d==null?void 0:d.data);E.setItemData(a),I.setCacheStructures({key:t,data:a})}if(console.log("getTriggerStructures1",e==null?void 0:e.structureIds,t),!(e!=null&&e.structureIds)||((f=e==null?void 0:e.structureIds)==null?void 0:f.length)===0)return;const l=(b=(s=e==null?void 0:e.structureIds)==null?void 0:s.filter(a=>(a==null?void 0:a.key)===t))==null?void 0:b.map(a=>a==null?void 0:a.id);let u=l==null?void 0:l.map(a=>{if(a)return y.getInsofDataApi({id:a})});const n=await Promise.all(u),c=n==null?void 0:n.every(a=>{var d;return((d=a==null?void 0:a.data)==null?void 0:d.code)===200});if(console.log("getTriggerStructures2",e==null?void 0:e.structureIds,t,n),c&&(n==null?void 0:n.length)>0){const a=n==null?void 0:n.map(d=>{var M,D,N,A,P,o,F;return{id:(N=(D=(M=d==null?void 0:d.data)==null?void 0:M.result)==null?void 0:D[0])==null?void 0:N.id,...(F=(o=(P=(A=d==null?void 0:d.data)==null?void 0:A.result)==null?void 0:P[0])==null?void 0:o.value)==null?void 0:F.pageData}});E.setItemData(a),I.setCacheStructures({key:t,data:a})}},ke=async e=>{var n,c,r,p,f;const t=e==="操作触发的弹窗结构"?"dialogConfig":"contentConfig";I.setButtonTriggerType(t),await Ie(C.value,t);let l;(n=T.value)!=null&&n.subMenus&&((c=T.value)==null?void 0:c.subMenus.length)>0&&(l=(r=U.value)==null?void 0:r.map(s=>({value:s})),l.unshift({value:(p=C.value)==null?void 0:p.title}));let u;g.type==="create"?u={...T.value,path:(f=h.value)==null?void 0:f.path}:g.type==="update"&&(u=B.value),await I.setConfigMenu(u),m.setSelectTitle(l),E.setIsEdit("edit")},x=async e=>{var l,u,n,c,r,p;const t=await y.getInsofDataApi({key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:O.value+"/"+(e==null?void 0:e.path),tableId:""}});((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result&&($.value=((c=(n=t.data)==null?void 0:n.result)==null?void 0:c.length)>0?(p=(r=t.data)==null?void 0:r.result)==null?void 0:p.map(f=>{var s;return{id:f==null?void 0:f.id,...(s=f==null?void 0:f.value)==null?void 0:s.tableData}}):[]),j.value=!1},K=async(e,t,l="contentConfig")=>{var u,n,c,r,p,f;try{let s,b;t==="create"?(s={key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:O.value+"/"+((u=h.value)==null?void 0:u.path),type:"structure",rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,structureBelong:l,parentTable:"",version:1},value:{pageData:e}},b=y.createInsofDataApi):t==="update"?(s={id:e==null?void 0:e.id,value:{pageData:e}},b=y.updateInsofDataApi):t==="delete"&&(s={id:e},b=y.deleteInsofDataApi);const a=await b(s);if(((r=a==null?void 0:a.data)==null?void 0:r.code)!==200)throw y.ElMessage.error("保存响应失败"),new Error("保存响应失败");const d=t==="create"?(p=a==null?void 0:a.data)==null?void 0:p.result:e==null?void 0:e.id;return{status:((f=a==null?void 0:a.data)==null?void 0:f.code)===200,data:{id:d,key:l}}}catch{y.ElMessage.error("保存响应失败")}},Y=(e,t)=>{var f,s,b;const l=(f=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:f.map(a=>a==null?void 0:a.id),u=t.filter(a=>!(l!=null&&l.includes(a))),n=l==null?void 0:l.filter(a=>!t.includes(a));let c=null,r=null,p=null;return c=[...u,...n].filter(a=>a),r=(s=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:s.filter(a=>!(a!=null&&a.id)),p=(b=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:b.filter(a=>a==null?void 0:a.id).filter(a=>Object.keys(a).length>1),{deleteIds:c,createComps:r,updateComps:p}},Z=(e,t)=>{var u,n,c,r,p,f;let l=[];return((u=t==null?void 0:t.deleteIds)==null?void 0:u.length)>0&&((n=t==null?void 0:t.deleteIds)==null||n.forEach(s=>{l.push(K(s,"delete",e))})),((c=t==null?void 0:t.createComps)==null?void 0:c.length)>0&&((r=t==null?void 0:t.createComps)==null||r.forEach(s=>{l.push(K(s,"create",e))})),((p=t==null?void 0:t.updateComps)==null?void 0:p.length)>0&&((f=t==null?void 0:t.updateComps)==null||f.forEach(s=>{s!=null&&s.id&&l.push(K(s,"update",e))})),l},Te=e=>{const t=new Map;return e.forEach(l=>{t.set(l.id,l)}),Array.from(t.values())},Me=async(e,t)=>{var l,u,n,c,r,p,f;try{const s=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="contentConfig"),b=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="dialogConfig");await i.nextTick();const a=(n=(u=(l=_.value)==null?void 0:l.filter(o=>(o==null?void 0:o.key)==="dialogConfig"))==null?void 0:u.flatMap(o=>o==null?void 0:o.data))==null?void 0:n.map(o=>o==null?void 0:o.id);let d=(p=(r=(c=_.value)==null?void 0:c.filter(o=>(o==null?void 0:o.key)==="contentConfig"))==null?void 0:r.flatMap(o=>o==null?void 0:o.data))==null?void 0:p.map(o=>o==null?void 0:o.id);d=[...d,...(f=ae.value)==null?void 0:f.map(o=>o==null?void 0:o.id)];const M=Y(b,a),D=Y(s,d),N=Z("dialogConfig",M),A=Z("contentConfig",D),P=[...N,...A];await Promise.all(P).then(o=>{var z,G,L,V,Q,W,X;if(!(o==null?void 0:o.every(v=>v.status)))return;let w=(z=o==null?void 0:o.flatMap(v=>v==null?void 0:v.data))==null?void 0:z.filter(v=>(v==null?void 0:v.id)!==null&&(v==null?void 0:v.id)!==void 0);if(((G=M==null?void 0:M.updateComps)==null?void 0:G.length)===0&&g.type==="update"){const v=(V=(L=C.value)==null?void 0:L.structureIds)==null?void 0:V.filter(S=>(S==null?void 0:S.key)==="dialogConfig");w=[...w,...v]}if(((Q=D==null?void 0:D.updateComps)==null?void 0:Q.length)===0&&g.type==="update"){const v=(X=(W=C.value)==null?void 0:W.structureIds)==null?void 0:X.filter(S=>(S==null?void 0:S.key)==="contentConfig");w=[...w,...v]}const se=Te(w);re({...t,isNotInitial:!0,structureIds:se},g.type)}).catch(o=>{y.ElMessage.error(o)})}catch(s){throw y.ElMessage.error(s),new Error(s)}},re=async(e,t)=>{var n,c;let l,u;t==="create"?(l={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:O.value+"/"+((n=h.value)==null?void 0:n.path),tableId:"",rootNodePath:e==null?void 0:e.rootNodePath},value:{tableData:e}},u=y.createInsofDataApi):t==="update"?(l={id:e==null?void 0:e.id,value:{tableData:e}},u=y.updateInsofDataApi):t==="delete"&&(l={ids:[e.id,...(c=e==null?void 0:e.structureIds)==null?void 0:c.map(r=>r.id)]},u=y.batchDeleteInsofDataApi),k.handleSubmitAsync(u,l,t).then(r=>{t==="create"&&$.value.push({...e,id:r}),t&&r&&y.ElMessage.success("响应成功"),x(h.value)})},De=async()=>{var l,u,n,c,r;const e=JSON.parse(k.cloneDeep(JSON.stringify(_.value)));await i.nextTick();const t=g.type==="create"?{...B.value,rootNodePath:(u=(l=h.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...B.value,rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,id:(r=C.value)==null?void 0:r.id};await Me(e,t),T.value={},g.show=!1,await x(h.value)},Se=()=>{g.show=!1},we={comp:"Group",name:"/平台管理/菜单管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:te.value,name:""}]}]},Ne=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:Se,buttonValue:ie,changeTrigger:he,changedRow:de,clickNodeTrigger:ve,clickRowButton:be,clickSubmitForm:De,clickTrigger:ke,dialogInfo:g,formatFormData:q,getInitialSubStructure:ne,getTableDataAsync:x,handleItemDataChange:ge,inputForm:T,menuPageData:fe,operatingForm:Ce,pageData:te,renderFormData:J,tableLoading:j,tempMenuPageData:we,treeData:oe},Symbol.toStringTag,{value:"Module"}));exports.State=Ne;
1
+ "use strict";const i=require("vue"),k=require("./index-DRTxe12U.cjs"),ce=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-ZMwIbmlN.cjs"),y=require("./index-C5pQXH0_.cjs"),pe=require("./menuIndex-D52EAwtb.cjs"),E=k.useModelComp(k.pinia),m=ce.useUnit(k.pinia),I=k.useMenuState(k.pinia),{menus:ee,configMenu:B,activeMenuPath:O,cacheStructures:_}=k.storeToRefs(I),j=i.ref(!1),te=i.computed(()=>{var e,t;return[{key:"extraButton",contents:[]},{key:"rowButton",contents:[{label:"修改"}]},{key:"header",contents:[{label:"菜单名称",prop:"title",isFormColHidden:!1},{label:"菜单类型",prop:"menuType",formType:"select",options:[{label:"系统菜单",value:"集团"},{label:"公司",value:"公司"}],isTableColHidden:!1,isFormColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:(t=(e=k.cloneDeep(ee.value))==null?void 0:e.map(l=>({...l,menuType:"系统菜单"})))==null?void 0:t.filter(l=>l.title!=="系统管理"&&l.title!=="平台管理")}]}),$=i.ref([]),H=i.ref([{label:"新建"}]),fe=i.computed(()=>[{key:"extraButton",contents:H.value},{key:"rowButton",contents:[{label:"修改"},{label:"删除"}]},{key:"header",contents:[{label:"操作类型",prop:"operateType",formType:"select",options:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标",prop:"operateIcon",formType:"inputPopover",value:""},{label:"操作触发事件",prop:"trigger",formType:"select",options:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"配置一:",prop:"dialogConfig",formType:"button",value:"弹窗内容",isTableColHidden:!0},{label:"配置二:",prop:"contentConfig",formType:"button",value:"模块内容",isTableColHidden:!0},{label:"继承配置:",prop:"allowInherit",formType:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1,isTableColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:$.value}]),J=i.ref([]),T=i.ref({}),de=i.ref({}),R=i.ref([{label:"菜单",prop:"path",isFormColHidden:!0,value:""},{label:"操作类型:",prop:"operateType",type:"select",contents:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标:",prop:"operateIcon",type:"inputPopover",value:""},{label:"操作触发事件:",prop:"trigger",type:"select",contents:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"生成的菜单图标:",prop:"menuIcon",type:"inputPopover",value:""},{label:"配置一:",prop:"dialogConfig",type:"button",value:"操作触发的弹窗结构"},{label:"配置二:",prop:"contentConfig",type:"button",value:"操作生成的模块结构",isFormColHidden:!1},{label:"",prop:"structureIds",type:"input",value:[],isFormColHidden:!0},{label:"继承配置:",prop:"allowInherit",type:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),q=e=>{var t;J.value=e?(t=R.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l:{...l,value:e?e[l==null?void 0:l.prop]:""}):R.value},ie=i.ref([{label:"查询"},{label:"重置"}]),ge=async()=>{},le=e=>e.map(t=>t.childMenus&&t.childMenus.length>0?{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title,children:le(t.childMenus)}:{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title}),g=i.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),U=i.ref([]),C=i.ref({}),h=i.ref(null),ae=i.ref([]),oe=i.computed(()=>{var e;return(e=le(ee.value))==null?void 0:e.filter(t=>t.title!=="系统管理"&&t.title!=="平台管理")}),ne=async e=>{var l,u,n,c;const t=await y.getInsofDataApi({key:{type:"subStructure",systemKey:sessionStorage.getItem("systemKey"),pageKey:e,version:1}});if(((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result){const r=(c=(n=t.data)==null?void 0:n.result)==null?void 0:c.map(p=>{var f;return{id:p==null?void 0:p.id,...(f=p==null?void 0:p.value)==null?void 0:f.pageData}});ae.value=r,I.setCacheStructures({key:"contentConfig",data:r})}},ve=async e=>{var t;j.value=!0,h.value={...e,rootNode:pe.findRootNodeByPath(oe.value,e.path)},I.setCacheStructures(null),(e==null?void 0:e.level)===0?H.value.splice(0):(H.value=[{label:"新建"}],U.value=(t=e==null?void 0:e.path)==null?void 0:t.split("/")),await I.setConfigMenu(null),await ne(e==null?void 0:e.path),await x(e)},ye=e=>{switch(e){case"新建":return"create";case"修改":return"update";case"删除":return"delete"}},be=async(e,t)=>{var l,u;if(!h.value)return y.ElMessage.warning("请先选择菜单");if(g.type=ye(e),U.value=[],E.setSubmitCurStructure(!1),m.setSelectTitle([]),C.value=k.cloneDeep(t),g.type!=="delete"){switch(g.type){case"create":q(null),await I.setConfigMenu(null);break;case"update":q(C.value),await I.setConfigMenu(C.value),console.log("clickRowButton",C.value);break}await i.nextTick(),g.title=`【${g.type==="create"?(l=h.value)==null?void 0:l.path:(u=C.value)==null?void 0:u.path}】菜单配置${e}`,g.show=!0}else await re(C.value,g.type)},ue=i.ref(!0),he=async e=>{var t;T.value=e,await I.setConfigMenu({...T.value,path:(t=h.value)==null?void 0:t.path}),ue.value=(e==null?void 0:e.operateType)!=="新增"};i.watch(()=>ue.value,async e=>{var t;await i.nextTick(),J.value=(t=R.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l.prop==="contentConfig"?{...l,isFormColHidden:e}:l:{...l,value:T.value?T.value[l==null?void 0:l.prop]:""})},{immediate:!0,deep:!0});const Ce=i.ref(null),Ie=async(e,t)=>{var r,p,f,s,b;if(g.type==="create"){const a=(p=(r=_.value)==null?void 0:r.filter(d=>(d==null?void 0:d.key)===t))==null?void 0:p.flatMap(d=>d==null?void 0:d.data);E.setItemData(a),I.setCacheStructures({key:t,data:a})}if(console.log("getTriggerStructures1",e==null?void 0:e.structureIds,t),!(e!=null&&e.structureIds)||((f=e==null?void 0:e.structureIds)==null?void 0:f.length)===0)return;const l=(b=(s=e==null?void 0:e.structureIds)==null?void 0:s.filter(a=>(a==null?void 0:a.key)===t))==null?void 0:b.map(a=>a==null?void 0:a.id);let u=l==null?void 0:l.map(a=>{if(a)return y.getInsofDataApi({id:a})});const n=await Promise.all(u),c=n==null?void 0:n.every(a=>{var d;return((d=a==null?void 0:a.data)==null?void 0:d.code)===200});if(console.log("getTriggerStructures2",e==null?void 0:e.structureIds,t,n),c&&(n==null?void 0:n.length)>0){const a=n==null?void 0:n.map(d=>{var M,D,N,A,P,o,F;return{id:(N=(D=(M=d==null?void 0:d.data)==null?void 0:M.result)==null?void 0:D[0])==null?void 0:N.id,...(F=(o=(P=(A=d==null?void 0:d.data)==null?void 0:A.result)==null?void 0:P[0])==null?void 0:o.value)==null?void 0:F.pageData}});E.setItemData(a),I.setCacheStructures({key:t,data:a})}},ke=async e=>{var n,c,r,p,f;const t=e==="操作触发的弹窗结构"?"dialogConfig":"contentConfig";I.setButtonTriggerType(t),await Ie(C.value,t);let l;(n=T.value)!=null&&n.subMenus&&((c=T.value)==null?void 0:c.subMenus.length)>0&&(l=(r=U.value)==null?void 0:r.map(s=>({value:s})),l.unshift({value:(p=C.value)==null?void 0:p.title}));let u;g.type==="create"?u={...T.value,path:(f=h.value)==null?void 0:f.path}:g.type==="update"&&(u=B.value),await I.setConfigMenu(u),m.setSelectTitle(l),E.setIsEdit("edit")},x=async e=>{var l,u,n,c,r,p;const t=await y.getInsofDataApi({key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:O.value+"/"+(e==null?void 0:e.path),tableId:""}});((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result&&($.value=((c=(n=t.data)==null?void 0:n.result)==null?void 0:c.length)>0?(p=(r=t.data)==null?void 0:r.result)==null?void 0:p.map(f=>{var s;return{id:f==null?void 0:f.id,...(s=f==null?void 0:f.value)==null?void 0:s.tableData}}):[]),j.value=!1},K=async(e,t,l="contentConfig")=>{var u,n,c,r,p,f;try{let s,b;t==="create"?(s={key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:O.value+"/"+((u=h.value)==null?void 0:u.path),type:"structure",rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,structureBelong:l,parentTable:"",version:1},value:{pageData:e}},b=y.createInsofDataApi):t==="update"?(s={id:e==null?void 0:e.id,value:{pageData:e}},b=y.updateInsofDataApi):t==="delete"&&(s={id:e},b=y.deleteInsofDataApi);const a=await b(s);if(((r=a==null?void 0:a.data)==null?void 0:r.code)!==200)throw y.ElMessage.error("保存响应失败"),new Error("保存响应失败");const d=t==="create"?(p=a==null?void 0:a.data)==null?void 0:p.result:e==null?void 0:e.id;return{status:((f=a==null?void 0:a.data)==null?void 0:f.code)===200,data:{id:d,key:l}}}catch{y.ElMessage.error("保存响应失败")}},Y=(e,t)=>{var f,s,b;const l=(f=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:f.map(a=>a==null?void 0:a.id),u=t.filter(a=>!(l!=null&&l.includes(a))),n=l==null?void 0:l.filter(a=>!t.includes(a));let c=null,r=null,p=null;return c=[...u,...n].filter(a=>a),r=(s=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:s.filter(a=>!(a!=null&&a.id)),p=(b=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:b.filter(a=>a==null?void 0:a.id).filter(a=>Object.keys(a).length>1),{deleteIds:c,createComps:r,updateComps:p}},Z=(e,t)=>{var u,n,c,r,p,f;let l=[];return((u=t==null?void 0:t.deleteIds)==null?void 0:u.length)>0&&((n=t==null?void 0:t.deleteIds)==null||n.forEach(s=>{l.push(K(s,"delete",e))})),((c=t==null?void 0:t.createComps)==null?void 0:c.length)>0&&((r=t==null?void 0:t.createComps)==null||r.forEach(s=>{l.push(K(s,"create",e))})),((p=t==null?void 0:t.updateComps)==null?void 0:p.length)>0&&((f=t==null?void 0:t.updateComps)==null||f.forEach(s=>{s!=null&&s.id&&l.push(K(s,"update",e))})),l},Te=e=>{const t=new Map;return e.forEach(l=>{t.set(l.id,l)}),Array.from(t.values())},Me=async(e,t)=>{var l,u,n,c,r,p,f;try{const s=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="contentConfig"),b=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="dialogConfig");await i.nextTick();const a=(n=(u=(l=_.value)==null?void 0:l.filter(o=>(o==null?void 0:o.key)==="dialogConfig"))==null?void 0:u.flatMap(o=>o==null?void 0:o.data))==null?void 0:n.map(o=>o==null?void 0:o.id);let d=(p=(r=(c=_.value)==null?void 0:c.filter(o=>(o==null?void 0:o.key)==="contentConfig"))==null?void 0:r.flatMap(o=>o==null?void 0:o.data))==null?void 0:p.map(o=>o==null?void 0:o.id);d=[...d,...(f=ae.value)==null?void 0:f.map(o=>o==null?void 0:o.id)];const M=Y(b,a),D=Y(s,d),N=Z("dialogConfig",M),A=Z("contentConfig",D),P=[...N,...A];await Promise.all(P).then(o=>{var z,G,L,V,Q,W,X;if(!(o==null?void 0:o.every(v=>v.status)))return;let w=(z=o==null?void 0:o.flatMap(v=>v==null?void 0:v.data))==null?void 0:z.filter(v=>(v==null?void 0:v.id)!==null&&(v==null?void 0:v.id)!==void 0);if(((G=M==null?void 0:M.updateComps)==null?void 0:G.length)===0&&g.type==="update"){const v=(V=(L=C.value)==null?void 0:L.structureIds)==null?void 0:V.filter(S=>(S==null?void 0:S.key)==="dialogConfig");w=[...w,...v]}if(((Q=D==null?void 0:D.updateComps)==null?void 0:Q.length)===0&&g.type==="update"){const v=(X=(W=C.value)==null?void 0:W.structureIds)==null?void 0:X.filter(S=>(S==null?void 0:S.key)==="contentConfig");w=[...w,...v]}const se=Te(w);re({...t,isNotInitial:!0,structureIds:se},g.type)}).catch(o=>{y.ElMessage.error(o)})}catch(s){throw y.ElMessage.error(s),new Error(s)}},re=async(e,t)=>{var n,c;let l,u;t==="create"?(l={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:O.value+"/"+((n=h.value)==null?void 0:n.path),tableId:"",rootNodePath:e==null?void 0:e.rootNodePath},value:{tableData:e}},u=y.createInsofDataApi):t==="update"?(l={id:e==null?void 0:e.id,value:{tableData:e}},u=y.updateInsofDataApi):t==="delete"&&(l={ids:[e.id,...(c=e==null?void 0:e.structureIds)==null?void 0:c.map(r=>r.id)]},u=y.batchDeleteInsofDataApi),k.handleSubmitAsync(u,l,t).then(r=>{t==="create"&&$.value.push({...e,id:r}),t&&r&&y.ElMessage.success("响应成功"),x(h.value)})},De=async()=>{var l,u,n,c,r;const e=JSON.parse(k.cloneDeep(JSON.stringify(_.value)));await i.nextTick();const t=g.type==="create"?{...B.value,rootNodePath:(u=(l=h.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...B.value,rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,id:(r=C.value)==null?void 0:r.id};await Me(e,t),T.value={},g.show=!1,await x(h.value)},Se=()=>{g.show=!1},we={comp:"Group",name:"/平台管理/菜单管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:te.value,name:""}]}]},Ne=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:Se,buttonValue:ie,changeTrigger:he,changedRow:de,clickNodeTrigger:ve,clickRowButton:be,clickSubmitForm:De,clickTrigger:ke,dialogInfo:g,formatFormData:q,getInitialSubStructure:ne,getTableDataAsync:x,handleItemDataChange:ge,inputForm:T,menuPageData:fe,operatingForm:Ce,pageData:te,renderFormData:J,tableLoading:j,tempMenuPageData:we,treeData:oe},Symbol.toStringTag,{value:"Module"}));exports.State=Ne;
@@ -3,13 +3,13 @@ var Xo = (C, E, m) => E in C ? Yo(C, E, { enumerable: !0, configurable: !0, writ
3
3
  var aa = (C, E, m) => Xo(C, typeof E != "symbol" ? E + "" : E, m);
4
4
  import { ref as j, watch as _l, nextTick as oa, resolveComponent as Fe, createBlock as He, openBlock as P, withCtx as W, createElementVNode as I, renderSlot as qn, defineComponent as jr, computed as ra, onMounted as Br, onUnmounted as us, createElementBlock as oe, withModifiers as Jl, createCommentVNode as je, toDisplayString as Ze, createVNode as G, createTextVNode as ll, Fragment as Rl, renderList as Zl, normalizeClass as ca, onBeforeUnmount as tn, normalizeStyle as mr, unref as da, reactive as qa, inject as Qo, provide as Zo, createSlots as Vo, resolveDynamicComponent as ei } from "vue";
5
5
  import { E as Qe, ak as Gn, a1 as Yn, g as Fa, u as ds, f as li, al as ai, am as en, an as ri, d as ni, a as Ba, b as ln, e as Xn, ao as si } from "./index-B8HqIYd5.js";
6
- import { ae as oi, d as Ma, w as Xa, af as ii, ag as kr, ah as ti, g as sn, c as ui, b as di, ai as Da, t as ci, u as pi, aj as fi, ak as vi, al as hi, am as yi, F as an, an as Qn, l as gi, ao as Zn, G as bi, ap as mi, aq as ki, ar as _i, S as Si, as as Ci } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DuyXGUSZ.js";
6
+ import { ae as oi, d as Ma, w as Xa, af as ii, ag as kr, ah as ti, g as sn, c as ui, b as di, ai as Da, t as ci, u as pi, aj as fi, ak as vi, al as hi, am as yi, F as an, an as Qn, l as gi, ao as Zn, G as bi, ap as mi, aq as ki, ar as _i, S as Si, as as Ci } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1pEFQ04s.js";
7
7
  import { c as he, h as cs, p as Ra, s as Ga, u as Ai, a as Oi, b as xi, E as Vn } from "./index-COQpDVsv.js";
8
- import { h as Ti, c as Qa, _ as es, j as Ni, d as wi, E as ls, e as as, u as rs } from "./index-DzadQQ41.js";
9
- import { c as $i, l as Ui } from "./index.vue_vue_type_style_index_1_lang-CPOQHkRi.js";
8
+ import { h as Ti, c as Qa, _ as es, j as Ni, d as wi, E as ls, e as as, u as rs } from "./index-BAd4yIgj.js";
9
+ import { c as $i, l as Ui } from "./index.vue_vue_type_style_index_1_lang-CNh42_ZH.js";
10
10
  import { _ as Ea } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- import { s as $a } from "./index-CuKYtSif.js";
12
- import { a as Di, T as Ei } from "./threeViewerHost-B9z6zHUh.js";
11
+ import { s as $a } from "./index-DBh5Z73C.js";
12
+ import { a as Di, T as Ei } from "./threeViewerHost-Bdzv9iPb.js";
13
13
  import "./index-Ddoq7kRQ.js";
14
14
  import { i as ns } from "./isString-FfOeP713.js";
15
15
  const rn = (C) => C.match(/\((.*)\)/)[1], ss = {
@@ -1,28 +1,28 @@
1
1
  import { defineComponent as ze, defineProps as st, ref as L, computed as ee, watch as YA, onMounted as on, resolveComponent as TA, createBlock as xA, openBlock as z, withCtx as M, createElementVNode as H, toDisplayString as UA, createElementBlock as q, Fragment as ue, renderList as Ee, createCommentVNode as CA, normalizeStyle as Fe, createVNode as O, unref as a, resolveDynamicComponent as Ye, provide as fn, resolveDirective as ct, withDirectives as je, vShow as Re, createTextVNode as pe, renderSlot as We, normalizeClass as Ke, onUnmounted as St, createSlots as Jt } from "vue";
2
- import { m as Sn, a as Jn, b as Ln, c as Lt } from "./array-C6jYq2-o.js";
3
- import mt from "./index-B3jquljw.js";
4
- import { _ as vt, s as rt, a as Ge, b as He, c as Rt, d as Kt, r as te, o as Te, e as Ze, f as ut, h as Hn, i as gt, j as pn, k as dt, l as Mt, t as Dt, m as ln, n as yn, p as Xn, q as an, u as In, v as sn, w as cn, x as vn, y as rn, z as un, A as En, D as Wt, B as Nt, C as Ut, E as lt, F as ft, G as oe, H as Tt, I as Zt, J as Yt } from "./index-SvdMxP5R.js";
2
+ import { m as Sn, a as Jn, b as Ln, c as Lt } from "./array-fed49Qom.js";
3
+ import mt from "./index-DAj8igrm.js";
4
+ import { _ as vt, s as rt, a as Ge, b as He, c as Rt, d as Kt, r as te, o as Te, e as Ze, f as ut, h as Hn, i as gt, j as pn, k as dt, l as Mt, t as Dt, m as ln, n as yn, p as Xn, q as an, u as In, v as sn, w as cn, x as vn, y as rn, z as un, A as En, D as Wt, B as Nt, C as Ut, E as lt, F as ft, G as oe, H as Tt, I as Zt, J as Yt } from "./index-XqNUjpwH.js";
5
5
  import { u as be, a as Ne, p as qA, s as MA, b as qe, c as GA, g as it, e as Gt, l as Ft, f as Vt } from "./index-COQpDVsv.js";
6
6
  import { useRouter as ot } from "vue-router";
7
7
  import { a as Pt, d as Ct, e as It, f as Et, g as Bt, h as zt, t as qt, c as _t, b as $t } from "./index-CAPx0_D4.js";
8
8
  import { u as mn, E as Oe, b as Qt, g as Be, c as Al, a as Je, d as el } from "./index-B8HqIYd5.js";
9
- import { g as Bn, s as nl, _ as bn } from "./index-DzadQQ41.js";
10
- import { u as Qn, b as Rn, d as gn, g as Me, c as yt, e as dn, o as Xt, f as tl, l as ll, h as fl, i as ge, j as al, k as Ot, m as sl, n as cl, s as wn, p as vl } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DuyXGUSZ.js";
11
- import "./index-BYdJgNnt.js";
9
+ import { g as Bn, s as nl, _ as bn } from "./index-BAd4yIgj.js";
10
+ import { u as Qn, b as Rn, d as gn, g as Me, c as yt, e as dn, o as Xt, f as tl, l as ll, h as fl, i as ge, j as al, k as Ot, m as sl, n as cl, s as wn, p as vl } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1pEFQ04s.js";
11
+ import "./index-gfdgTjvQ.js";
12
12
  import "./index-DFBXEIIr.js";
13
13
  import { c as jt } from "./menuIndex-DYaogp2R.js";
14
14
  import { _ as Le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
- import { C as rl } from "./index-BBo5mPL3.js";
15
+ import { C as rl } from "./index-NaWMtdUV.js";
16
16
  import { S as le } from "./index-BHtNKL1L.js";
17
- import ul from "./threeModel-1StgfJTN.js";
17
+ import ul from "./threeModel-CUhCPfB6.js";
18
18
  import { _ as De } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
19
- import { s as zn } from "./index-CuKYtSif.js";
20
- import { T as kn, u as gl, a as dl } from "./threeViewerHost-B9z6zHUh.js";
21
- import { s as xn } from "./index-BqqRuoo3.js";
22
- import { u as Ht } from "./index-DRLogw4i.js";
19
+ import { s as zn } from "./index-DBh5Z73C.js";
20
+ import { T as kn, u as gl, a as dl } from "./threeViewerHost-Bdzv9iPb.js";
21
+ import { s as xn } from "./index-D-38bzBf.js";
22
+ import { u as Ht } from "./index-DmZSvt8a.js";
23
23
  import { T as at } from "./svgIcon-4u4PW7Is.js";
24
24
  import { m as il, v as ol } from "./index-DIWralYr.js";
25
- import { f as Pl, a as Cl } from "./animationData-Beth8tFS.js";
25
+ import { f as Pl, a as Cl } from "./animationData-CpK8d_Vm.js";
26
26
  be();
27
27
  const Il = be(), pt = async (P, j) => {
28
28
  var s, c, I, l;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-C8qPBadE.cjs"),n=require("./index-BWCv7zxy.cjs"),u=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),r=e.ref([]),i=e.computed(()=>[{key:"extraButton",contents:[{label:"清空",background:"#f56c6c",color:"#ffffff"}]},{key:"rowButton",contents:[]},{key:"header",contents:[{label:"模块名称",prop:"module",filterable:!0},{label:"操作类型",prop:"type",filterable:!0},{label:"账号",prop:"account",filterable:!0},{label:"姓名",prop:"userName",filterable:!0},{label:"时间",prop:"timeStamp",sortable:!0}]},{key:"tableContents",contents:r.value}]),p=Object.freeze(Object.defineProperty({__proto__:null,pageData:i,tableData:r},Symbol.toStringTag,{value:"Module"})),b={class:"log-wrap"},d=e.defineComponent({__name:"index",setup(_){const t=e.reactive({...p});e.onMounted(async()=>{t.tableData=await n.getLogTableDataAsync("operate")});const c=l=>{var a;n.clickButton(l,(a=t.tableData)==null?void 0:a.map(o=>o.id),o=>{o&&(t.tableData=[])})};return(l,a)=>(e.openBlock(),e.createElementBlock("div",b,[e.createVNode(s.ssTable,{itemData:t.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:c},null,8,["itemData"])]))}}),f=u._export_sfc(d,[["__scopeId","data-v-3d3b471d"]]);exports.default=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-fcGQ1ZME.cjs"),n=require("./index-BWCv7zxy.cjs"),u=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),r=e.ref([]),i=e.computed(()=>[{key:"extraButton",contents:[{label:"清空",background:"#f56c6c",color:"#ffffff"}]},{key:"rowButton",contents:[]},{key:"header",contents:[{label:"模块名称",prop:"module",filterable:!0},{label:"操作类型",prop:"type",filterable:!0},{label:"账号",prop:"account",filterable:!0},{label:"姓名",prop:"userName",filterable:!0},{label:"时间",prop:"timeStamp",sortable:!0}]},{key:"tableContents",contents:r.value}]),p=Object.freeze(Object.defineProperty({__proto__:null,pageData:i,tableData:r},Symbol.toStringTag,{value:"Module"})),b={class:"log-wrap"},d=e.defineComponent({__name:"index",setup(_){const t=e.reactive({...p});e.onMounted(async()=>{t.tableData=await n.getLogTableDataAsync("operate")});const c=l=>{var a;n.clickButton(l,(a=t.tableData)==null?void 0:a.map(o=>o.id),o=>{o&&(t.tableData=[])})};return(l,a)=>(e.openBlock(),e.createElementBlock("div",b,[e.createVNode(s.ssTable,{itemData:t.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:c},null,8,["itemData"])]))}}),f=u._export_sfc(d,[["__scopeId","data-v-3d3b471d"]]);exports.default=f;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as x, ref as I, reactive as T, resolveComponent as v, createElementBlock as E, openBlock as U, createVNode as u, withCtx as d, createElementVNode as l, createTextVNode as h, toDisplayString as H, nextTick as N, Fragment as q, withDirectives as z, renderSlot as $, vShow as M } from "vue";
2
- import { aA as V } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DuyXGUSZ.js";
2
+ import { aA as V } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1pEFQ04s.js";
3
3
  import { a9 as X, av as G, D, H as c, G as R, a0 as g } from "./index-B8HqIYd5.js";
4
4
  import { P as J } from "./index-COQpDVsv.js";
5
5
  import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),b=require("./index-C8qPBadE.cjs"),y=require("./index-C5pQXH0_.cjs"),n=require("./index-DRTxe12U.cjs"),g=n.useModelComp(),{itemData:i}=n.storeToRefs(g),u=o.ref(0),m=o.ref([{label:"机构名称",value:"",name:"deptName"}]),D=e=>{console.log("handleQueryChange",e)},c=o.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"header",contents:[{label:"职位名称",prop:"postName"},{label:"职位排序",formType:"Number",prop:"postOrder"},{label:"备注",formType:"TextArea",prop:"remark"},{label:"操作"}]},{key:"tableContents",contents:[]}]),f=e=>{n.submitTableAsyncByVerify(e.singleContent,e.buttonName,u.value)},h=e=>{console.log("onDoubleClick",e)},C=(e,a)=>{console.log("onButtonClick",e,a)},k=async e=>{const a=await n.handleSubmitAsync(y.getInsofDataApi,{key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:e}},"查询"),l=a==null?void 0:a.map(t=>{var r;return{id:t.id,tableData:(r=t==null?void 0:t.value)==null?void 0:r.tableData}});return l==null?void 0:l.map(t=>{var r;if(Array.isArray(t==null?void 0:t.tableData)){let s={id:t.id};return(r=t==null?void 0:t.tableData)==null||r.forEach((d,p)=>{s[`a${p}`]=d}),s}else return{...t.tableData,id:t.id}})},_={comp:"Group",name:"/系统管理/职位管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:c.value,name:""}]}]};o.watch(()=>i.value,e=>{var a;e&&(e==null?void 0:e.length)>0&&(c.value=(a=e==null?void 0:e[0])==null?void 0:a.compData)});const S=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:k,handleItemDataChange:f,handleQueryChange:D,onButtonClick:C,onDoubleClick:h,pageData:c,queryFormData:m,structureId:u,tempPostPageData:_},Symbol.toStringTag,{value:"Module"})),T=o.defineComponent({__name:"index",setup(e){const a=o.reactive({...S}),l=n.useMenuState(),{activeMenuPath:t}=n.storeToRefs(l);return o.onMounted(async()=>{a.structureId=await n.getActivePageStructureId(t.value)}),(r,s)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(b.ssTable,{itemData:a.pageData,onChange:a.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=T;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),b=require("./index-fcGQ1ZME.cjs"),y=require("./index-C5pQXH0_.cjs"),n=require("./index-DRTxe12U.cjs"),g=n.useModelComp(),{itemData:i}=n.storeToRefs(g),u=o.ref(0),m=o.ref([{label:"机构名称",value:"",name:"deptName"}]),D=e=>{console.log("handleQueryChange",e)},c=o.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"header",contents:[{label:"职位名称",prop:"postName"},{label:"职位排序",formType:"Number",prop:"postOrder"},{label:"备注",formType:"TextArea",prop:"remark"},{label:"操作"}]},{key:"tableContents",contents:[]}]),f=e=>{n.submitTableAsyncByVerify(e.singleContent,e.buttonName,u.value)},h=e=>{console.log("onDoubleClick",e)},C=(e,a)=>{console.log("onButtonClick",e,a)},k=async e=>{const a=await n.handleSubmitAsync(y.getInsofDataApi,{key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:e}},"查询"),l=a==null?void 0:a.map(t=>{var r;return{id:t.id,tableData:(r=t==null?void 0:t.value)==null?void 0:r.tableData}});return l==null?void 0:l.map(t=>{var r;if(Array.isArray(t==null?void 0:t.tableData)){let s={id:t.id};return(r=t==null?void 0:t.tableData)==null||r.forEach((d,p)=>{s[`a${p}`]=d}),s}else return{...t.tableData,id:t.id}})},_={comp:"Group",name:"/系统管理/职位管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:c.value,name:""}]}]};o.watch(()=>i.value,e=>{var a;e&&(e==null?void 0:e.length)>0&&(c.value=(a=e==null?void 0:e[0])==null?void 0:a.compData)});const S=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:k,handleItemDataChange:f,handleQueryChange:D,onButtonClick:C,onDoubleClick:h,pageData:c,queryFormData:m,structureId:u,tempPostPageData:_},Symbol.toStringTag,{value:"Module"})),T=o.defineComponent({__name:"index",setup(e){const a=o.reactive({...S}),l=n.useMenuState(),{activeMenuPath:t}=n.storeToRefs(l);return o.onMounted(async()=>{a.structureId=await n.getActivePageStructureId(t.value)}),(r,s)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(b.ssTable,{itemData:a.pageData,onChange:a.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=T;