ss-component-new 1.1.526 → 1.1.528

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 (78) hide show
  1. package/dist/{index-C6H18PjM.js → index-B6SYAI26.js} +2 -2
  2. package/dist/{index-SgvrLPny.js → index-BHY4EQSs.js} +2 -2
  3. package/dist/index-BI5TNK6k.js +24 -0
  4. package/dist/index-BKXNYMwK.js +119 -0
  5. package/dist/index-BOrLUI1H.cjs +1 -0
  6. package/dist/{index-nRcmnoRz.js → index-BQw5HyPd.js} +3 -3
  7. package/dist/index-BiduaxAB.js +1522 -0
  8. package/dist/index-C2mK8_eD.cjs +1 -0
  9. package/dist/{index-DM16A1mk.js → index-C5iQlcOF.js} +1 -1
  10. package/dist/index-C9XFBEZf.cjs +1 -0
  11. package/dist/{index-kNQH4_GE.js → index-CDBkv_Ya.js} +2 -2
  12. package/dist/index-CEic54aV.cjs +1 -0
  13. package/dist/index-CHGtYHAg.cjs +1 -0
  14. package/dist/index-CI0eQ91Q.js +114 -0
  15. package/dist/{index-ChtIzGrJ.js → index-CI7JFzie.js} +237 -238
  16. package/dist/{index-DhojDLDB.cjs → index-CJ-wod1-.cjs} +1 -1
  17. package/dist/index-CMcC-i_U.cjs +1 -0
  18. package/dist/index-CWQIBtZb.cjs +1 -0
  19. package/dist/index-CZAaXjhl.cjs +1 -0
  20. package/dist/index-CbHjBSwG.cjs +1 -0
  21. package/dist/index-Cj9EmgiC.js +4045 -0
  22. package/dist/index-Cl9ftuhX.js +24 -0
  23. package/dist/index-D0quQ7YP.cjs +1 -0
  24. package/dist/index-DH3RKnhU.js +628 -0
  25. package/dist/index-DhLcxHDM.cjs +1 -0
  26. package/dist/{index-KjuEkxx1.js → index-DyFB5NpR.js} +8 -8
  27. package/dist/index-Dyv0_8dw.cjs +1 -0
  28. package/dist/{index-BDg_2EeK.cjs → index-DzcSP6N6.cjs} +1 -1
  29. package/dist/index-RqtMCA_6.cjs +1 -0
  30. package/dist/{index-Bh62komS.cjs → index-aPkj5LQZ.cjs} +1 -1
  31. package/dist/index-hB4QQWRo.js +24 -0
  32. package/dist/index-i6oSAK8p.cjs +1 -0
  33. package/dist/{index-kxCDkrQ3.js → index-pe0-gRuH.js} +5 -5
  34. package/dist/index-z1F5TOoY.js +758 -0
  35. package/dist/{index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-MZg6UiK7.js → index.vue_vue_type_style_index_0_scoped_71c9b50e_lang-C60yEbRa.js} +94 -92
  36. package/dist/index.vue_vue_type_style_index_0_scoped_71c9b50e_lang-CjS6W4SA.cjs +1 -0
  37. package/dist/index.vue_vue_type_style_index_0_scoped_b9caa997_lang-pDWTdGJJ.cjs +56 -0
  38. package/dist/{index.vue_vue_type_style_index_0_scoped_b9caa997_lang-L_gsHz8k.js → index.vue_vue_type_style_index_0_scoped_b9caa997_lang-zwC7ZHYX.js} +8164 -8132
  39. package/dist/{main-DE0Cs_EA.js → main-BZXQaVsn.js} +3 -3
  40. package/dist/main-DnbTphTt.cjs +1 -0
  41. package/dist/modelComp-B4I2gbtf.js +54 -0
  42. package/dist/modelComp-BlAKXNIt.cjs +1 -0
  43. package/dist/ss-component.cjs +1 -1
  44. package/dist/ss-component.css +1 -1
  45. package/dist/ss-component.js +4 -4
  46. package/dist/ss-component2.cjs +1 -1
  47. package/dist/ss-component2.js +8 -8
  48. package/dist/{threeModel-BAMYy5I6.cjs → threeModel-BjhOcDlp.cjs} +1 -1
  49. package/dist/{threeModel-x_b5QYTj.js → threeModel-CxNRKsD_.js} +1 -1
  50. package/dist/{threeModel.vue_vue_type_style_index_0_scoped_4a248817_lang-RuOFgenL.js → threeModel.vue_vue_type_style_index_0_scoped_4a248817_lang-BV7oq1Z4.js} +730 -780
  51. package/dist/{threeModel.vue_vue_type_style_index_0_scoped_4a248817_lang-qC3WcBEx.cjs → threeModel.vue_vue_type_style_index_0_scoped_4a248817_lang-DCn4bomb.cjs} +24 -24
  52. package/package.json +1 -1
  53. package/dist/index-0rTmoLcM.cjs +0 -1
  54. package/dist/index-4rRboSOp.js +0 -4005
  55. package/dist/index-BCPtS065.cjs +0 -1
  56. package/dist/index-BL0tVJoS.js +0 -111
  57. package/dist/index-BNyqaP6-.cjs +0 -1
  58. package/dist/index-Bk11IVbZ.cjs +0 -1
  59. package/dist/index-CCbzoY8t.js +0 -24
  60. package/dist/index-CR_vbGhk.js +0 -24
  61. package/dist/index-Cc3H_n6-.cjs +0 -1
  62. package/dist/index-CzUommbu.cjs +0 -1
  63. package/dist/index-DJq6gx4V.js +0 -637
  64. package/dist/index-DLkCxXOC.cjs +0 -1
  65. package/dist/index-Dgmc9eA_.cjs +0 -1
  66. package/dist/index-DhR1_PeB.cjs +0 -1
  67. package/dist/index-DnsjPUw0.cjs +0 -1
  68. package/dist/index-Ds2jDhmF.cjs +0 -1
  69. package/dist/index-DtaCrHTU.js +0 -675
  70. package/dist/index-DuFI0E2M.js +0 -116
  71. package/dist/index-SMb-sSWX.js +0 -1506
  72. package/dist/index-Uf0nOGSM.js +0 -24
  73. package/dist/index-YBcVyXAt.cjs +0 -1
  74. package/dist/index-gn95QmP8.cjs +0 -1
  75. package/dist/index-u5HGwhUu.cjs +0 -1
  76. package/dist/index.vue_vue_type_style_index_0_scoped_b9caa997_lang-Dhcl-80s.cjs +0 -56
  77. package/dist/index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-GYs1cyDP.cjs +0 -1
  78. package/dist/main-U7M-tRpt.cjs +0 -1
@@ -0,0 +1,24 @@
1
+ import { defineComponent as o, reactive as n, onMounted as r, createElementBlock as s, openBlock as m, createVNode as c } from "vue";
2
+ import "./index-BHtNKL1L.js";
3
+ import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C-dZE1aR.js";
4
+ import { u as i, s as u } from "./menu-DV47UKJo.js";
5
+ import { B as p } from "./index-BiduaxAB.js";
6
+ import { S as l } from "./index-BQw5HyPd.js";
7
+ import { i as d } from "./index-z1F5TOoY.js";
8
+ const I = /* @__PURE__ */ o({
9
+ __name: "index",
10
+ setup(f) {
11
+ const e = n({ ...l }), t = i(), { activeMenuPath: a } = u(t);
12
+ return r(async () => {
13
+ e.structureId = await d(a.value);
14
+ }), (_, g) => (m(), s("div", null, [
15
+ c(p, {
16
+ itemData: e.pageData,
17
+ onChange: e.handleItemDataChange
18
+ }, null, 8, ["itemData", "onChange"])
19
+ ]));
20
+ }
21
+ });
22
+ export {
23
+ I as default
24
+ };
@@ -0,0 +1 @@
1
+ "use strict";const g=require("vue"),i=require("./menu-B-wiVQl5.cjs"),ce=require("./modelComp-BlAKXNIt.cjs"),pe=require("./index-C9XFBEZf.cjs"),fe=require("./index-RqtMCA_6.cjs"),de=require("./menuIndex-mY8CjeHW.cjs"),A=ce.useModelComp(i.pinia),Z=pe.useUnit(i.pinia),I=i.useMenuState(i.pinia),{menus:m,configMenu:H,activeMenuPath:O,cacheStructures:E}=i.storeToRefs(I),_=g.ref(!1),ee=g.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=i.cloneDeep(m.value))==null?void 0:e.map(l=>({...l,menuType:"系统菜单"})))==null?void 0:t.filter(l=>l.title!=="系统管理"&&l.title!=="平台管理")}]}),$=g.ref([]),x=g.ref([{label:"新建"}]),ie=g.computed(()=>[{key:"extraButton",contents:x.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=g.ref([]),k=g.ref({}),ge=g.ref({}),q=g.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:!1}]),R=e=>{var t;j.value=e?(t=q.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]:""}):q.value},ve=g.ref([{label:"查询"},{label:"重置"}]),ye=async()=>{},te=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:te(t.childMenus)}:{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title}),v=g.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),J=g.ref([]),C=g.ref({}),h=g.ref(null),le=g.ref([]),ae=g.computed(()=>{var e;return(e=te(m.value))==null?void 0:e.filter(t=>t.title!=="系统管理"&&t.title!=="平台管理")}),oe=async e=>{var l,u,n,c;const t=await i.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}});le.value=r,I.setCacheStructures({key:"contentConfig",data:r})}},be=async e=>{var t;_.value=!0,h.value={...e,rootNode:de.findRootNodeByPath(ae.value,e.path)},I.setCacheStructures(null),(e==null?void 0:e.level)===0?x.value.splice(0):(x.value=[{label:"新建"}],J.value=(t=e==null?void 0:e.path)==null?void 0:t.split("/")),await I.setConfigMenu(null),await oe(e==null?void 0:e.path),await F(e)},he=e=>{switch(e){case"新建":return"create";case"修改":return"update";case"删除":return"delete"}},Ce=async(e,t)=>{var l,u;if(!h.value)return i.ElMessage.warning("请先选择菜单");if(v.type=he(e),J.value=[],A.setSubmitCurStructure(!1),Z.setSelectTitle([]),C.value=i.cloneDeep(t),v.type!=="delete"){switch(v.type){case"create":R(null),await I.setConfigMenu(null);break;case"update":R(C.value),await I.setConfigMenu(C.value),console.log("clickRowButton",C.value);break}await g.nextTick(),v.title=`【${v.type==="create"?(l=h.value)==null?void 0:l.path:(u=C.value)==null?void 0:u.path}】菜单配置${e}`,v.show=!0}else await ue(C.value,v.type)},ne=g.ref(!0),Ie=async e=>{var t;k.value=e,await I.setConfigMenu({...k.value,path:(t=h.value)==null?void 0:t.path}),ne.value=(e==null?void 0:e.operateType)!=="新增"};g.watch(()=>ne.value,async e=>{var t;await g.nextTick(),j.value=(t=q.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:k.value?k.value[l==null?void 0:l.prop]:""})},{immediate:!0,deep:!0});const ke=g.ref(null),Te=async(e,t)=>{var r,p,f,s,b;if(v.type==="create"){const a=(p=(r=E.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);A.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 i.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 T,M,w,N,P,o,K;return{id:(w=(M=(T=d==null?void 0:d.data)==null?void 0:T.result)==null?void 0:M[0])==null?void 0:w.id,...(K=(o=(P=(N=d==null?void 0:d.data)==null?void 0:N.result)==null?void 0:P[0])==null?void 0:o.value)==null?void 0:K.pageData}});A.setItemData(a),I.setCacheStructures({key:t,data:a})}},Me=async e=>{var n,c,r,p,f;const t=e==="操作触发的弹窗结构"?"dialogConfig":"contentConfig";I.setButtonTriggerType(t),await Te(C.value,t);let l;(n=k.value)!=null&&n.subMenus&&((c=k.value)==null?void 0:c.subMenus.length)>0&&(l=(r=J.value)==null?void 0:r.map(s=>({value:s})),l.unshift({value:(p=C.value)==null?void 0:p.title}));let u;v.type==="create"?u={...k.value,path:(f=h.value)==null?void 0:f.path}:v.type==="update"&&(u=H.value),await I.setConfigMenu(u),Z.setSelectTitle(l),A.setIsEdit("edit")},F=async e=>{var l,u,n,c,r,p;const t=await i.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}}):[]),_.value=!1},B=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=i.createInsofDataApi):t==="update"?(s={id:e==null?void 0:e.id,value:{pageData:e}},b=i.updateInsofDataApi):t==="delete"&&(s={id:e},b=i.deleteInsofDataApi);const a=await b(s);if(((r=a==null?void 0:a.data)==null?void 0:r.code)!==200)throw i.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{i.ElMessage.error("保存响应失败")}},X=(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}},Y=(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(B(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(B(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(B(s,"update",e))})),l},De=e=>{const t=new Map;return e.forEach(l=>{t.set(l.id,l)}),Array.from(t.values())},Se=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 g.nextTick();const a=(n=(u=(l=E.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=E.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=le.value)==null?void 0:f.map(o=>o==null?void 0:o.id)];const T=X(b,a),M=X(s,d),w=Y("dialogConfig",T),N=Y("contentConfig",M),P=[...w,...N];await Promise.all(P).then(o=>{var U,z,G,L,V,Q,W;if(!(o==null?void 0:o.every(y=>y.status)))return;let S=(U=o==null?void 0:o.flatMap(y=>y==null?void 0:y.data))==null?void 0:U.filter(y=>(y==null?void 0:y.id)!==null&&(y==null?void 0:y.id)!==void 0);if(((z=T==null?void 0:T.updateComps)==null?void 0:z.length)===0&&v.type==="update"){const y=(L=(G=C.value)==null?void 0:G.structureIds)==null?void 0:L.filter(D=>(D==null?void 0:D.key)==="dialogConfig");S=[...S,...y]}if(((V=M==null?void 0:M.updateComps)==null?void 0:V.length)===0&&v.type==="update"){const y=(W=(Q=C.value)==null?void 0:Q.structureIds)==null?void 0:W.filter(D=>(D==null?void 0:D.key)==="contentConfig");S=[...S,...y]}const se=De(S);ue({...t,isNotInitial:!0,structureIds:se},v.type)}).catch(o=>{i.ElMessage.error(o)})}catch(s){throw i.ElMessage.error(s),new Error(s)}},ue=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=i.createInsofDataApi):t==="update"?(l={id:e==null?void 0:e.id,value:{tableData:e}},u=i.updateInsofDataApi):t==="delete"&&(l={ids:[e.id,...(c=e==null?void 0:e.structureIds)==null?void 0:c.map(r=>r.id)]},u=i.batchDeleteInsofDataApi),fe.handleSubmitAsync(u,l,t).then(r=>{t==="create"&&$.value.push({...e,id:r}),t&&r&&i.ElMessage.success("响应成功"),F(h.value)})},we=async()=>{var l,u,n,c,r;const e=JSON.parse(i.cloneDeep(JSON.stringify(E.value)));await g.nextTick();const t=v.type==="create"?{...H.value,rootNodePath:(u=(l=h.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...H.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 Se(e,t),k.value={},v.show=!1,await F(h.value)},Ne=()=>{v.show=!1},re={comp:"Group",name:"/平台管理/菜单管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:ee.value,name:""}]}]},Pe=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:Ne,buttonValue:ve,changeTrigger:Ie,changedRow:ge,clickNodeTrigger:be,clickRowButton:Ce,clickSubmitForm:we,clickTrigger:Me,dialogInfo:v,formatFormData:R,getInitialSubStructure:oe,getTableDataAsync:F,handleItemDataChange:ye,inputForm:k,menuPageData:ie,operatingForm:ke,pageData:ee,renderFormData:j,tableLoading:_,tempMenuPageData:re,treeData:ae},Symbol.toStringTag,{value:"Module"}));exports.State=Pe;exports.tempMenuPageData=re;
@@ -0,0 +1,628 @@
1
+ import { ref as i, computed as j, reactive as ie, nextTick as B, watch as ye } from "vue";
2
+ import { c as J, s as be, g as U, u as he, E as S, p as $, bO as ae, bM as oe, bP as Ce, f as Ie } from "./menu-DV47UKJo.js";
3
+ import { u as ke } from "./modelComp-B4I2gbtf.js";
4
+ import { u as Te } from "./index-BiduaxAB.js";
5
+ import { f as Me } from "./index-z1F5TOoY.js";
6
+ import { a as Se } from "./menuIndex-M4MLExuN.js";
7
+ const F = ke($), ne = Te($), C = he($), { menus: ue, configMenu: O, activeMenuPath: q, cacheStructures: K } = be(C), z = i(!1), se = j(() => {
8
+ var e, t;
9
+ return [
10
+ {
11
+ key: "extraButton",
12
+ contents: [
13
+ // {
14
+ // label: "新增"
15
+ // }
16
+ ]
17
+ },
18
+ {
19
+ key: "rowButton",
20
+ contents: [
21
+ {
22
+ label: "修改"
23
+ }
24
+ // {
25
+ // label: "删除"
26
+ // }
27
+ ]
28
+ },
29
+ {
30
+ key: "header",
31
+ contents: [
32
+ {
33
+ label: "菜单名称",
34
+ prop: "title",
35
+ isFormColHidden: !1
36
+ },
37
+ {
38
+ label: "菜单类型",
39
+ prop: "menuType",
40
+ formType: "select",
41
+ options: [
42
+ {
43
+ label: "系统菜单",
44
+ value: "集团"
45
+ },
46
+ {
47
+ label: "公司",
48
+ value: "公司"
49
+ }
50
+ ],
51
+ isTableColHidden: !1,
52
+ isFormColHidden: !0
53
+ },
54
+ {
55
+ label: "操作"
56
+ }
57
+ ]
58
+ },
59
+ {
60
+ key: "tableContents",
61
+ contents: (t = (e = J(ue.value)) == null ? void 0 : e.map((l) => ({
62
+ ...l,
63
+ menuType: "系统菜单"
64
+ }))) == null ? void 0 : t.filter((l) => l.title !== "系统管理" && l.title !== "平台管理")
65
+ }
66
+ ];
67
+ }), G = i([]), R = i([
68
+ {
69
+ // label: "新增",
70
+ label: "新建"
71
+ }
72
+ ]), we = j(() => [
73
+ {
74
+ key: "extraButton",
75
+ contents: R.value
76
+ },
77
+ {
78
+ key: "rowButton",
79
+ contents: [
80
+ {
81
+ // label: "编辑",
82
+ label: "修改"
83
+ },
84
+ {
85
+ label: "删除"
86
+ }
87
+ ]
88
+ },
89
+ {
90
+ key: "header",
91
+ contents: [
92
+ {
93
+ label: "操作类型",
94
+ prop: "operateType",
95
+ formType: "select",
96
+ options: [
97
+ {
98
+ label: "新增",
99
+ value: "新增"
100
+ },
101
+ {
102
+ label: "编辑",
103
+ value: "编辑"
104
+ },
105
+ {
106
+ label: "删除",
107
+ value: "删除"
108
+ }
109
+ ],
110
+ value: ""
111
+ },
112
+ {
113
+ label: "操作图标",
114
+ prop: "operateIcon",
115
+ formType: "inputPopover",
116
+ value: ""
117
+ },
118
+ {
119
+ label: "操作触发事件",
120
+ prop: "trigger",
121
+ formType: "select",
122
+ options: [
123
+ {
124
+ label: "弹出弹窗",
125
+ value: "openDialog"
126
+ }
127
+ ],
128
+ value: "openDialog"
129
+ },
130
+ {
131
+ label: "配置一:",
132
+ prop: "dialogConfig",
133
+ formType: "button",
134
+ value: "弹窗内容",
135
+ isTableColHidden: !0
136
+ },
137
+ {
138
+ label: "配置二:",
139
+ prop: "contentConfig",
140
+ formType: "button",
141
+ value: "模块内容",
142
+ isTableColHidden: !0
143
+ },
144
+ {
145
+ label: "继承配置:",
146
+ prop: "allowInherit",
147
+ formType: "radio",
148
+ contents: [
149
+ {
150
+ label: "是",
151
+ value: !0
152
+ },
153
+ {
154
+ label: "否",
155
+ value: !1
156
+ }
157
+ ],
158
+ value: !1,
159
+ isTableColHidden: !0
160
+ },
161
+ {
162
+ label: "操作"
163
+ }
164
+ ]
165
+ },
166
+ {
167
+ key: "tableContents",
168
+ contents: G.value
169
+ }
170
+ ]), L = i([]), I = i({}), De = i({}), x = i([
171
+ // {
172
+ // label: "配置菜单:",
173
+ // prop: 'menu',
174
+ // type: 'cascader',
175
+ // contents: [],
176
+ // config: {
177
+ // checkStrictly: true
178
+ // },
179
+ // // value: ['压气机叶片', 'CJ-1000A']
180
+ // value: []
181
+ // },
182
+ {
183
+ label: "菜单",
184
+ prop: "path",
185
+ isFormColHidden: !0,
186
+ value: ""
187
+ },
188
+ {
189
+ label: "操作类型:",
190
+ prop: "operateType",
191
+ type: "select",
192
+ contents: [
193
+ {
194
+ label: "新增",
195
+ value: "新增"
196
+ },
197
+ {
198
+ label: "编辑",
199
+ value: "编辑"
200
+ },
201
+ {
202
+ label: "删除",
203
+ value: "删除"
204
+ }
205
+ ],
206
+ value: ""
207
+ },
208
+ {
209
+ label: "操作图标:",
210
+ prop: "operateIcon",
211
+ type: "inputPopover",
212
+ value: ""
213
+ },
214
+ {
215
+ label: "操作触发事件:",
216
+ prop: "trigger",
217
+ type: "select",
218
+ contents: [
219
+ {
220
+ label: "弹出弹窗",
221
+ value: "openDialog"
222
+ }
223
+ ],
224
+ value: "openDialog"
225
+ },
226
+ {
227
+ label: "生成的菜单图标:",
228
+ prop: "menuIcon",
229
+ type: "inputPopover",
230
+ value: ""
231
+ },
232
+ {
233
+ label: "配置一:",
234
+ prop: "dialogConfig",
235
+ type: "button",
236
+ value: "操作触发的弹窗结构"
237
+ },
238
+ {
239
+ label: "配置二:",
240
+ prop: "contentConfig",
241
+ type: "button",
242
+ value: "操作生成的模块结构",
243
+ isFormColHidden: !1
244
+ },
245
+ {
246
+ label: "",
247
+ prop: "structureIds",
248
+ type: "input",
249
+ value: [],
250
+ isFormColHidden: !0
251
+ },
252
+ {
253
+ label: "继承配置:",
254
+ prop: "allowInherit",
255
+ type: "radio",
256
+ contents: [
257
+ {
258
+ label: "是",
259
+ value: !0
260
+ },
261
+ {
262
+ label: "否",
263
+ value: !1
264
+ }
265
+ ],
266
+ value: !1
267
+ }
268
+ ]), _ = (e) => {
269
+ var t;
270
+ L.value = e ? (t = x.value) == null ? void 0 : t.map((l) => l.prop === "dialogConfig" || l.prop === "contentConfig" || l.prop === "trigger" ? l : {
271
+ ...l,
272
+ value: e ? e[l == null ? void 0 : l.prop] : ""
273
+ }) : x.value;
274
+ }, Ne = i([
275
+ {
276
+ label: "查询"
277
+ },
278
+ {
279
+ label: "重置"
280
+ }
281
+ ]), Pe = async () => {
282
+ }, re = (e) => e.map((t) => t.childMenus && t.childMenus.length > 0 ? {
283
+ ...t,
284
+ value: t == null ? void 0 : t.title,
285
+ label: t == null ? void 0 : t.title,
286
+ children: re(t.childMenus)
287
+ } : {
288
+ ...t,
289
+ value: t == null ? void 0 : t.title,
290
+ label: t == null ? void 0 : t.title
291
+ }), g = ie({
292
+ show: !1,
293
+ title: "菜单配置",
294
+ width: "30%",
295
+ type: "create"
296
+ }), V = i([]), h = i({}), b = i(null), ce = i([]), pe = j(() => {
297
+ var e;
298
+ return (e = re(ue.value)) == null ? void 0 : e.filter((t) => t.title !== "系统管理" && t.title !== "平台管理");
299
+ }), fe = async (e) => {
300
+ var l, u, n, c;
301
+ const t = await U({
302
+ key: {
303
+ type: "subStructure",
304
+ systemKey: sessionStorage.getItem("systemKey"),
305
+ pageKey: e,
306
+ version: 1
307
+ }
308
+ });
309
+ if (((l = t == null ? void 0 : t.data) == null ? void 0 : l.code) === 200 && (u = t.data) != null && u.result) {
310
+ const s = (c = (n = t.data) == null ? void 0 : n.result) == null ? void 0 : c.map((p) => {
311
+ var f;
312
+ return {
313
+ id: p == null ? void 0 : p.id,
314
+ ...(f = p == null ? void 0 : p.value) == null ? void 0 : f.pageData
315
+ };
316
+ });
317
+ ce.value = s, C.setCacheStructures({
318
+ key: "contentConfig",
319
+ data: s
320
+ });
321
+ }
322
+ }, Fe = async (e) => {
323
+ var t;
324
+ z.value = !0, b.value = {
325
+ ...e,
326
+ rootNode: Se(pe.value, e.path)
327
+ }, C.setCacheStructures(null), (e == null ? void 0 : e.level) === 0 ? R.value.splice(0) : (R.value = [{ label: "新建" }], V.value = (t = e == null ? void 0 : e.path) == null ? void 0 : t.split("/")), await C.setConfigMenu(null), await fe(e == null ? void 0 : e.path), await H(e);
328
+ }, Ke = (e) => {
329
+ switch (e) {
330
+ case "新建":
331
+ return "create";
332
+ case "修改":
333
+ return "update";
334
+ case "删除":
335
+ return "delete";
336
+ }
337
+ }, Be = async (e, t) => {
338
+ var l, u;
339
+ if (!b.value) return S.warning("请先选择菜单");
340
+ if (g.type = Ke(e), V.value = [], F.setSubmitCurStructure(!1), ne.setSelectTitle([]), h.value = J(t), g.type !== "delete") {
341
+ switch (g.type) {
342
+ case "create":
343
+ _(null), await C.setConfigMenu(null);
344
+ break;
345
+ case "update":
346
+ _(h.value), await C.setConfigMenu(h.value), console.log("clickRowButton", h.value);
347
+ break;
348
+ }
349
+ await B(), g.title = `【${g.type === "create" ? (l = b.value) == null ? void 0 : l.path : (u = h.value) == null ? void 0 : u.path}】菜单配置${e}`, g.show = !0;
350
+ } else
351
+ await ge(h.value, g.type);
352
+ }, de = i(!0), He = async (e) => {
353
+ var t;
354
+ I.value = e, await C.setConfigMenu({
355
+ ...I.value,
356
+ path: (t = b.value) == null ? void 0 : t.path
357
+ }), de.value = (e == null ? void 0 : e.operateType) !== "新增";
358
+ };
359
+ ye(() => de.value, async (e) => {
360
+ var t;
361
+ await B(), L.value = (t = x.value) == null ? void 0 : t.map((l) => l.prop === "dialogConfig" || l.prop === "contentConfig" || l.prop === "trigger" ? l.prop === "contentConfig" ? {
362
+ ...l,
363
+ isFormColHidden: e
364
+ } : l : {
365
+ ...l,
366
+ value: I.value ? I.value[l == null ? void 0 : l.prop] : ""
367
+ });
368
+ }, { immediate: !0, deep: !0 });
369
+ const Ae = i(null), Ee = async (e, t) => {
370
+ var s, p, f, r, y;
371
+ if (g.type === "create") {
372
+ const a = (p = (s = K.value) == null ? void 0 : s.filter((d) => (d == null ? void 0 : d.key) === t)) == null ? void 0 : p.flatMap((d) => d == null ? void 0 : d.data);
373
+ F.setItemData(a), C.setCacheStructures({
374
+ key: t,
375
+ data: a
376
+ });
377
+ }
378
+ 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;
379
+ const l = (y = (r = e == null ? void 0 : e.structureIds) == null ? void 0 : r.filter((a) => (a == null ? void 0 : a.key) === t)) == null ? void 0 : y.map((a) => a == null ? void 0 : a.id);
380
+ let u = l == null ? void 0 : l.map((a) => {
381
+ if (a)
382
+ return U({ id: a });
383
+ });
384
+ const n = await Promise.all(u), c = n == null ? void 0 : n.every((a) => {
385
+ var d;
386
+ return ((d = a == null ? void 0 : a.data) == null ? void 0 : d.code) === 200;
387
+ });
388
+ if (console.log("getTriggerStructures2", e == null ? void 0 : e.structureIds, t, n), c && (n == null ? void 0 : n.length) > 0) {
389
+ const a = n == null ? void 0 : n.map((d) => {
390
+ var k, T, D, N, P, o, A;
391
+ return {
392
+ id: (D = (T = (k = d == null ? void 0 : d.data) == null ? void 0 : k.result) == null ? void 0 : T[0]) == null ? void 0 : D.id,
393
+ ...(A = (o = (P = (N = d == null ? void 0 : d.data) == null ? void 0 : N.result) == null ? void 0 : P[0]) == null ? void 0 : o.value) == null ? void 0 : A.pageData
394
+ };
395
+ });
396
+ F.setItemData(a), C.setCacheStructures({
397
+ key: t,
398
+ data: a
399
+ });
400
+ }
401
+ }, Oe = async (e) => {
402
+ var n, c, s, p, f;
403
+ const t = e === "操作触发的弹窗结构" ? "dialogConfig" : "contentConfig";
404
+ C.setButtonTriggerType(t), await Ee(h.value, t);
405
+ let l;
406
+ (n = I.value) != null && n.subMenus && ((c = I.value) == null ? void 0 : c.subMenus.length) > 0 && (l = (s = V.value) == null ? void 0 : s.map((r) => ({
407
+ value: r
408
+ })), l.unshift({
409
+ value: (p = h.value) == null ? void 0 : p.title
410
+ }));
411
+ let u;
412
+ g.type === "create" ? u = {
413
+ ...I.value,
414
+ path: (f = b.value) == null ? void 0 : f.path
415
+ } : g.type === "update" && (u = O.value), await C.setConfigMenu(u), ne.setSelectTitle(l), F.setIsEdit("edit");
416
+ }, H = async (e) => {
417
+ var l, u, n, c, s, p;
418
+ const t = await U({
419
+ key: {
420
+ type: "menuConfigData",
421
+ systemKey: sessionStorage.getItem("systemKey"),
422
+ pageKey: q.value + "/" + (e == null ? void 0 : e.path),
423
+ tableId: ""
424
+ }
425
+ });
426
+ ((l = t == null ? void 0 : t.data) == null ? void 0 : l.code) === 200 && (u = t.data) != null && u.result && (G.value = ((c = (n = t.data) == null ? void 0 : n.result) == null ? void 0 : c.length) > 0 ? (p = (s = t.data) == null ? void 0 : s.result) == null ? void 0 : p.map((f) => {
427
+ var r;
428
+ return {
429
+ id: f == null ? void 0 : f.id,
430
+ ...(r = f == null ? void 0 : f.value) == null ? void 0 : r.tableData
431
+ };
432
+ }) : []), z.value = !1;
433
+ }, E = async (e, t, l = "contentConfig") => {
434
+ var u, n, c, s, p, f;
435
+ try {
436
+ let r, y;
437
+ t === "create" ? (r = {
438
+ key: {
439
+ systemKey: sessionStorage.getItem("systemKey"),
440
+ pageKey: q.value + "/" + ((u = b.value) == null ? void 0 : u.path),
441
+ type: "structure",
442
+ rootNodePath: (c = (n = b.value) == null ? void 0 : n.rootNode) == null ? void 0 : c.path,
443
+ structureBelong: l,
444
+ parentTable: "",
445
+ version: 1
446
+ },
447
+ value: {
448
+ pageData: e
449
+ }
450
+ }, y = ae) : t === "update" ? (r = {
451
+ id: e == null ? void 0 : e.id,
452
+ // key: {
453
+ // systemKey: sessionStorage.getItem("systemKey"),
454
+ // pageKey: activeMenuPath.value + '/' + clickNode.value?.path,
455
+ // type: 'structure',
456
+ // rootNodePath: clickNode.value?.rootNode?.path,
457
+ // structureBelong,
458
+ // parentTable: '',
459
+ // version: 1
460
+ // },
461
+ value: {
462
+ pageData: e
463
+ }
464
+ }, y = oe) : t === "delete" && (r = {
465
+ id: e
466
+ }, y = Ce);
467
+ const a = await y(r);
468
+ if (((s = a == null ? void 0 : a.data) == null ? void 0 : s.code) !== 200)
469
+ throw S.error("保存响应失败"), new Error("保存响应失败");
470
+ const d = t === "create" ? (p = a == null ? void 0 : a.data) == null ? void 0 : p.result : e == null ? void 0 : e.id;
471
+ return {
472
+ status: ((f = a == null ? void 0 : a.data) == null ? void 0 : f.code) === 200,
473
+ data: {
474
+ id: d,
475
+ key: l
476
+ }
477
+ };
478
+ } catch {
479
+ S.error("保存响应失败");
480
+ }
481
+ }, te = (e, t) => {
482
+ var f, r, y;
483
+ 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));
484
+ let c = null, s = null, p = null;
485
+ return c = [...u, ...n].filter((a) => a), s = (r = e == null ? void 0 : e.flatMap((a) => a == null ? void 0 : a.data)) == null ? void 0 : r.filter((a) => !(a != null && a.id)), p = (y = e == null ? void 0 : e.flatMap((a) => a == null ? void 0 : a.data)) == null ? void 0 : y.filter((a) => a == null ? void 0 : a.id).filter((a) => Object.keys(a).length > 1), {
486
+ deleteIds: c,
487
+ createComps: s,
488
+ updateComps: p
489
+ };
490
+ }, le = (e, t) => {
491
+ var u, n, c, s, p, f;
492
+ let l = [];
493
+ return ((u = t == null ? void 0 : t.deleteIds) == null ? void 0 : u.length) > 0 && ((n = t == null ? void 0 : t.deleteIds) == null || n.forEach((r) => {
494
+ l.push(E(r, "delete", e));
495
+ })), ((c = t == null ? void 0 : t.createComps) == null ? void 0 : c.length) > 0 && ((s = t == null ? void 0 : t.createComps) == null || s.forEach((r) => {
496
+ l.push(E(r, "create", e));
497
+ })), ((p = t == null ? void 0 : t.updateComps) == null ? void 0 : p.length) > 0 && ((f = t == null ? void 0 : t.updateComps) == null || f.forEach((r) => {
498
+ r != null && r.id && l.push(E(r, "update", e));
499
+ })), l;
500
+ }, Re = (e) => {
501
+ const t = /* @__PURE__ */ new Map();
502
+ return e.forEach((l) => {
503
+ t.set(l.id, l);
504
+ }), Array.from(t.values());
505
+ }, xe = async (e, t) => {
506
+ var l, u, n, c, s, p, f;
507
+ try {
508
+ const r = e == null ? void 0 : e.filter((o) => (o == null ? void 0 : o.key) === "contentConfig"), y = e == null ? void 0 : e.filter((o) => (o == null ? void 0 : o.key) === "dialogConfig");
509
+ await B();
510
+ const a = (n = (u = (l = K.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);
511
+ let d = (p = (s = (c = K.value) == null ? void 0 : c.filter((o) => (o == null ? void 0 : o.key) === "contentConfig")) == null ? void 0 : s.flatMap((o) => o == null ? void 0 : o.data)) == null ? void 0 : p.map((o) => o == null ? void 0 : o.id);
512
+ d = [...d, ...(f = ce.value) == null ? void 0 : f.map((o) => o == null ? void 0 : o.id)];
513
+ const k = te(y, a), T = te(r, d), D = le("dialogConfig", k), N = le("contentConfig", T), P = [...D, ...N];
514
+ await Promise.all(P).then((o) => {
515
+ var Q, W, X, Y, Z, m, ee;
516
+ if (!(o == null ? void 0 : o.every((v) => v.status))) return;
517
+ let w = (Q = o == null ? void 0 : o.flatMap((v) => v == null ? void 0 : v.data)) == null ? void 0 : Q.filter((v) => (v == null ? void 0 : v.id) !== null && (v == null ? void 0 : v.id) !== void 0);
518
+ if (((W = k == null ? void 0 : k.updateComps) == null ? void 0 : W.length) === 0 && g.type === "update") {
519
+ const v = (Y = (X = h.value) == null ? void 0 : X.structureIds) == null ? void 0 : Y.filter((M) => (M == null ? void 0 : M.key) === "dialogConfig");
520
+ w = [...w, ...v];
521
+ }
522
+ if (((Z = T == null ? void 0 : T.updateComps) == null ? void 0 : Z.length) === 0 && g.type === "update") {
523
+ const v = (ee = (m = h.value) == null ? void 0 : m.structureIds) == null ? void 0 : ee.filter((M) => (M == null ? void 0 : M.key) === "contentConfig");
524
+ w = [...w, ...v];
525
+ }
526
+ const ve = Re(w);
527
+ ge({
528
+ ...t,
529
+ isNotInitial: !0,
530
+ structureIds: ve
531
+ }, g.type);
532
+ }).catch((o) => {
533
+ S.error(o);
534
+ });
535
+ } catch (r) {
536
+ throw S.error(r), new Error(r);
537
+ }
538
+ }, ge = async (e, t) => {
539
+ var n, c;
540
+ let l, u;
541
+ t === "create" ? (l = {
542
+ key: {
543
+ type: "menuConfigData",
544
+ systemKey: sessionStorage.getItem("systemKey"),
545
+ pageKey: q.value + "/" + ((n = b.value) == null ? void 0 : n.path),
546
+ tableId: "",
547
+ rootNodePath: e == null ? void 0 : e.rootNodePath
548
+ },
549
+ value: {
550
+ tableData: e
551
+ }
552
+ }, u = ae) : t === "update" ? (l = {
553
+ id: e == null ? void 0 : e.id,
554
+ // key: {
555
+ // type: "menuConfigData",
556
+ // systemKey: sessionStorage.getItem("systemKey"),
557
+ // pageKey: activeMenuPath.value + '/' + clickNode.value?.path,
558
+ // tableId: '',
559
+ // },
560
+ value: {
561
+ tableData: e
562
+ }
563
+ }, u = oe) : t === "delete" && (l = {
564
+ ids: [e.id, ...(c = e == null ? void 0 : e.structureIds) == null ? void 0 : c.map((s) => s.id)]
565
+ }, u = Ie), Me(u, l, t).then((s) => {
566
+ t === "create" && G.value.push({
567
+ ...e,
568
+ id: s
569
+ }), t && s && S.success("响应成功"), H(b.value);
570
+ });
571
+ }, _e = async () => {
572
+ var l, u, n, c, s;
573
+ const e = JSON.parse(J(JSON.stringify(K.value)));
574
+ await B();
575
+ const t = g.type === "create" ? {
576
+ ...O.value,
577
+ rootNodePath: (u = (l = b.value) == null ? void 0 : l.rootNode) == null ? void 0 : u.path
578
+ } : {
579
+ ...O.value,
580
+ rootNodePath: (c = (n = b.value) == null ? void 0 : n.rootNode) == null ? void 0 : c.path,
581
+ id: (s = h.value) == null ? void 0 : s.id
582
+ };
583
+ await xe(e, t), I.value = {}, g.show = !1, await H(b.value);
584
+ }, je = () => {
585
+ g.show = !1;
586
+ }, Je = {
587
+ comp: "Group",
588
+ name: "/平台管理/菜单管理",
589
+ compData: [
590
+ {
591
+ key: "groupContents",
592
+ contents: [
593
+ {
594
+ comp: "Table",
595
+ compData: se.value,
596
+ name: ""
597
+ }
598
+ ]
599
+ }
600
+ ]
601
+ }, Ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
602
+ __proto__: null,
603
+ beforeDialogDestroy: je,
604
+ buttonValue: Ne,
605
+ changeTrigger: He,
606
+ changedRow: De,
607
+ clickNodeTrigger: Fe,
608
+ clickRowButton: Be,
609
+ clickSubmitForm: _e,
610
+ clickTrigger: Oe,
611
+ dialogInfo: g,
612
+ formatFormData: _,
613
+ getInitialSubStructure: fe,
614
+ getTableDataAsync: H,
615
+ handleItemDataChange: Pe,
616
+ inputForm: I,
617
+ menuPageData: we,
618
+ operatingForm: Ae,
619
+ pageData: se,
620
+ renderFormData: L,
621
+ tableLoading: z,
622
+ tempMenuPageData: Je,
623
+ treeData: pe
624
+ }, Symbol.toStringTag, { value: "Module" }));
625
+ export {
626
+ Ve as S,
627
+ Je as t
628
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BdjcQwTP.cjs");const n=require("./menu-B-wiVQl5.cjs"),u=require("./index-C9XFBEZf.cjs"),o=require("./index-C2mK8_eD.cjs"),c=require("./index-RqtMCA_6.cjs"),i=e.defineComponent({__name:"index",setup(s){const t=e.reactive({...o.State}),a=n.useMenuState(),{activeMenuPath:r}=n.storeToRefs(a);return e.onMounted(async()=>{t.structureId=await c.getActivePageStructureId(r.value)}),(d,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(u.ssTable,{itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=i;