ss-component-new 1.2.178 → 1.2.179

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 (89) hide show
  1. package/dist/{MTLLoader-BBXkfiHP.cjs → MTLLoader-CMpGG9Bd.cjs} +1 -1
  2. package/dist/{MTLLoader-sg0frddg.js → MTLLoader-d2OpvLOW.js} +1 -1
  3. package/dist/{OrbitControls-D4FN15I6.js → OrbitControls-DBHqNrQL.js} +1 -1
  4. package/dist/{OrbitControls-D-LBk_tX.cjs → OrbitControls-DpyXjBNP.cjs} +1 -1
  5. package/dist/{URDFLoader-CSyWAkSK.js → URDFLoader-C7hv2huD.js} +2 -2
  6. package/dist/{URDFLoader-DoqHKrwQ.cjs → URDFLoader-wguISxmK.cjs} +1 -1
  7. package/dist/{animationData-BceMam9Q.cjs → animationData-C5sjWEaT.cjs} +1 -1
  8. package/dist/{animationData-h31YMX0d.js → animationData-iNdJN_D_.js} +1 -1
  9. package/dist/{array-BgNAac5j.js → array-Bgrj1oV3.js} +1 -1
  10. package/dist/{array-DYVJudKm.cjs → array-ByUgkJ37.cjs} +1 -1
  11. package/dist/{iconfont-BIBKsReP.js → iconfont-BPJ9ourc.js} +2 -2
  12. package/dist/{iconfont-C4w-Pd7e.cjs → iconfont-Buh2Df98.cjs} +1 -1
  13. package/dist/{index-Df9lqbL9.js → index-3ZZbSXzg.js} +7 -7
  14. package/dist/{index-_eevY45I.js → index-B3Kt07UJ.js} +1 -1
  15. package/dist/{index-BeUo-UQR.cjs → index-BCWHX3eK.cjs} +1 -1
  16. package/dist/{index-B0I4bCYF.cjs → index-BJnycjrK.cjs} +1 -1
  17. package/dist/{index-BoKwQFto.js → index-BKK7zx0h.js} +4 -4
  18. package/dist/{index-DIDvIeAE.cjs → index-BKxw0UBQ.cjs} +1 -1
  19. package/dist/{index-BY3tVLI_.cjs → index-BMHV_Brb.cjs} +1 -1
  20. package/dist/{index-CZbSpMIJ.cjs → index-BNidg3es.cjs} +1 -1
  21. package/dist/{index-CZ4SLhhh.js → index-BQKz83nF.js} +1 -1
  22. package/dist/{index-d47CvCXv.js → index-BYDeJDc_.js} +3 -3
  23. package/dist/{index-CjjCLx3u.cjs → index-BYvy0l-n.cjs} +1 -1
  24. package/dist/{index-DKwg_bJ7.cjs → index-BjhN2cZK.cjs} +1 -1
  25. package/dist/{index-B0IKI1R8.js → index-BxNdoe0W.js} +16 -16
  26. package/dist/{index-B6Am14Go.cjs → index-BxS6-5bI.cjs} +1 -1
  27. package/dist/{index-5vJr3qa7.js → index-BynBceMd.js} +3 -3
  28. package/dist/{index-DGxGOZ6v.js → index-C8X6R7q5.js} +4 -4
  29. package/dist/{index-CbNiQDYE.cjs → index-CCUAW6sC.cjs} +1 -1
  30. package/dist/{index-Bqn_7zqS.js → index-CEZuSXRM.js} +1 -1
  31. package/dist/{index-DiH_ldOA.cjs → index-CHQVBVEk.cjs} +1 -1
  32. package/dist/{index-CDT7oAPk.js → index-CN-T4mBv.js} +153 -153
  33. package/dist/{index-BaVHLipK.cjs → index-CbBel_Ly.cjs} +1 -1
  34. package/dist/{index-BUewNJqI.js → index-CcosIFS7.js} +1 -1
  35. package/dist/{index-CCujgLny.js → index-ClmxTuZZ.js} +1 -1
  36. package/dist/{index-B9x5UPed.cjs → index-Cn3W-yV7.cjs} +1 -1
  37. package/dist/{index-D3Dq0v96.cjs → index-Co4vN6r7.cjs} +1 -1
  38. package/dist/{index-BL5SifaP.js → index-CqbOb7X5.js} +2 -2
  39. package/dist/{index-D2G1Rbw2.js → index-CtrZr-Cc.js} +1 -1
  40. package/dist/{index-I_yMg9r3.js → index-CvarvnV1.js} +2 -2
  41. package/dist/{index-QzxFTSte.js → index-D0LjT3cL.js} +4 -4
  42. package/dist/{index-CoH8lwLL.js → index-D1RoGIsd.js} +1 -1
  43. package/dist/{index-8ziQdc16.cjs → index-D5CeFNcY.cjs} +1 -1
  44. package/dist/{index-ZFev7aq7.cjs → index-DDmxZO6i.cjs} +1 -1
  45. package/dist/{index-CrrLYGdV.js → index-DHZH0zPO.js} +1 -1
  46. package/dist/{index-lb07thoL.cjs → index-DMkTj7aZ.cjs} +1 -1
  47. package/dist/{index-DXBLGWt9.cjs → index-DXselp6c.cjs} +1 -1
  48. package/dist/{index-BmbbkvwC.cjs → index-DqMnk5wX.cjs} +1 -1
  49. package/dist/{index-DFavn1kB.cjs → index-Duk7yWiP.cjs} +1 -1
  50. package/dist/{index-aMbB06Wc.js → index-EofXU0MK.js} +1 -1
  51. package/dist/{index-CxFwCnFu.js → index-ZHpKUOhR.js} +1 -1
  52. package/dist/index-dRtOvQRS.cjs +1 -0
  53. package/dist/{index-CadrO-1Z.js → index-lvZVl2Vw.js} +8 -8
  54. package/dist/{index-B17SPYqV.js → index-xHfmd7Ni.js} +1 -1
  55. package/dist/{index-C_ncrCbC.cjs → index-xzZKgB24.cjs} +1 -1
  56. package/dist/{index-DxW2aVQq.cjs → index-y6LkQUgu.cjs} +1 -1
  57. package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-C3gmehHm.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BhTZLmHo.js} +7 -7
  58. package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang--5oeei0F.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-C4PEXKSp.cjs} +1 -1
  59. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CILHNQks.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-9XvSEGdS.js} +4415 -4415
  60. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-WKD3Dboe.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BtDy8n8V.cjs} +136 -136
  61. package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-CzKAR-fd.cjs → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-B5QsbB6Q.cjs} +1 -1
  62. package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-B3OXHupH.js → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-DPVGY0eJ.js} +4 -4
  63. package/dist/{index.vue_vue_type_style_index_1_lang-okk3axV_.cjs → index.vue_vue_type_style_index_1_lang-ClIZyFAZ.cjs} +1 -1
  64. package/dist/{index.vue_vue_type_style_index_1_lang-D90WJUnP.js → index.vue_vue_type_style_index_1_lang-DBIY-mVS.js} +3 -3
  65. package/dist/{main-DYXyMwb3.js → main-CjhywWOM.js} +3 -3
  66. package/dist/{main-IlIQuBF8.cjs → main-CuyIrRZV.cjs} +1 -1
  67. package/dist/ss-component.cjs +1 -1
  68. package/dist/ss-component.css +1 -1
  69. package/dist/ss-component.js +9 -9
  70. package/dist/ss-component2.cjs +1 -1
  71. package/dist/ss-component2.js +10 -10
  72. package/dist/{threeModel-C4FwxvRb.js → threeModel-DdsWlYl2.js} +4 -4
  73. package/dist/{threeModel-CN8y5oB-.cjs → threeModel-ukCJmnVO.cjs} +1 -1
  74. package/dist/{threePreview-BnuPNbBI.cjs → threePreview-BZvdxIa2.cjs} +1 -1
  75. package/dist/{threePreview-DSCX4zHG.js → threePreview-p9D877JF.js} +3 -3
  76. package/dist/{threeSceneView-BpnVSSXu.cjs → threeSceneView-B12dxEfS.cjs} +1 -1
  77. package/dist/{threeSceneView-37JCUDaA.js → threeSceneView-C2zoPlRp.js} +8 -8
  78. package/dist/{threeSceneViewForCPMPIP--nGZ5LGQ.js → threeSceneViewForCPMPIP-B7s_szJB.js} +7 -7
  79. package/dist/{threeSceneViewForCPMPIP-XbJX0DZb.cjs → threeSceneViewForCPMPIP-CIEoqdr8.cjs} +1 -1
  80. package/dist/{threeTrackPathView-DCwhLBCr.js → threeTrackPathView-BxK49ljq.js} +3 -3
  81. package/dist/{threeTrackPathView-B_6H6vt6.cjs → threeTrackPathView-Cap0mVmC.cjs} +1 -1
  82. package/dist/{threeViewerHost-BcyIKSt8.cjs → threeViewerHost-Cg_dRiGk.cjs} +1 -1
  83. package/dist/{threeViewerHost-BP1y_Zyu.js → threeViewerHost-DGNd3WrL.js} +2 -2
  84. package/dist/{urdfTree-DTnyroQe.cjs → urdfTree-B0LbjhKN.cjs} +1 -1
  85. package/dist/{urdfTree-DuWOp12v.js → urdfTree-Lfkc4b95.js} +1 -1
  86. package/dist/{workpieceTreePanel-BT14Or0m.cjs → workpieceTreePanel-BrOxOnjQ.cjs} +1 -1
  87. package/dist/{workpieceTreePanel-DhRSjZ_6.js → workpieceTreePanel-D60hJ3BF.js} +4 -4
  88. package/package.json +1 -1
  89. package/dist/index-CPsiq06e.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),y=require("./index-CPsiq06e.cjs"),c=require("./index-y1mE3_ai.cjs"),l=require("./index-C5woD5Cw.cjs"),g=l.useModelComp(),{itemData:i}=c.storeToRefs(g),d=o.ref(0),m=o.ref([{label:"机构名称",value:"",name:"deptName"}]),D=e=>{console.log("handleQueryChange",e)},u=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=>{l.submitTableAsyncByVerify(e.singleContent,e.buttonName,d.value)},h=e=>{console.log("onDoubleClick",e)},C=(e,a)=>{console.log("onButtonClick",e,a)},k=async e=>{const a=await l.handleSubmitAsync(c.getInsofDataApi,{key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:e}},"查询"),r=a==null?void 0:a.map(t=>{var n;return{id:t.id,tableData:(n=t==null?void 0:t.value)==null?void 0:n.tableData}});return r==null?void 0:r.map(t=>{var n;if(Array.isArray(t==null?void 0:t.tableData)){let s={id:t.id};return(n=t==null?void 0:t.tableData)==null||n.forEach((p,b)=>{s[`a${b}`]=p}),s}else return{...t.tableData,id:t.id}})},_={comp:"Group",name:"/系统管理/职位管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:u.value,name:""}]}]};o.watch(()=>i.value,e=>{var a;e&&(e==null?void 0:e.length)>0&&(u.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:u,queryFormData:m,structureId:d,tempPostPageData:_},Symbol.toStringTag,{value:"Module"})),T=o.defineComponent({__name:"index",setup(e){const a=o.reactive({...S}),r=l.useMenuState(),{activeMenuPath:t}=c.storeToRefs(r);return o.onMounted(async()=>{a.structureId=await l.getActivePageStructureId(t.value)}),(n,s)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(y.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"),y=require("./index-dRtOvQRS.cjs"),c=require("./index-y1mE3_ai.cjs"),l=require("./index-C5woD5Cw.cjs"),g=l.useModelComp(),{itemData:i}=c.storeToRefs(g),d=o.ref(0),m=o.ref([{label:"机构名称",value:"",name:"deptName"}]),D=e=>{console.log("handleQueryChange",e)},u=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=>{l.submitTableAsyncByVerify(e.singleContent,e.buttonName,d.value)},h=e=>{console.log("onDoubleClick",e)},C=(e,a)=>{console.log("onButtonClick",e,a)},k=async e=>{const a=await l.handleSubmitAsync(c.getInsofDataApi,{key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:e}},"查询"),r=a==null?void 0:a.map(t=>{var n;return{id:t.id,tableData:(n=t==null?void 0:t.value)==null?void 0:n.tableData}});return r==null?void 0:r.map(t=>{var n;if(Array.isArray(t==null?void 0:t.tableData)){let s={id:t.id};return(n=t==null?void 0:t.tableData)==null||n.forEach((p,b)=>{s[`a${b}`]=p}),s}else return{...t.tableData,id:t.id}})},_={comp:"Group",name:"/系统管理/职位管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:u.value,name:""}]}]};o.watch(()=>i.value,e=>{var a;e&&(e==null?void 0:e.length)>0&&(u.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:u,queryFormData:m,structureId:d,tempPostPageData:_},Symbol.toStringTag,{value:"Module"})),T=o.defineComponent({__name:"index",setup(e){const a=o.reactive({...S}),r=l.useMenuState(),{activeMenuPath:t}=c.storeToRefs(r);return o.onMounted(async()=>{a.structureId=await l.getActivePageStructureId(t.value)}),(n,s)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(y.ssTable,{itemData:a.pageData,onChange:a.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=T;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-y1mE3_ai.cjs"),_=require("./index-C5woD5Cw.cjs"),C=require("./index-CPsiq06e.cjs"),r=require("./index-BAsZ3voF.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const m=_.useMenuState(u.pinia),{menus:c}=u.storeToRefs(m),p=l.ref([]),f=async()=>{var i,t,n,a;const e=await u.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey")}});if(((i=e==null?void 0:e.data)==null?void 0:i.type)==="success"){let o=(n=(t=e==null?void 0:e.data)==null?void 0:t.result)==null?void 0:n.map(s=>s);return o=(a=u.cloneDeep(o))==null?void 0:a.map(s=>{var d;const b=Object.values((d=s==null?void 0:s.value)==null?void 0:d.tableData);return b.unshift({id:s==null?void 0:s.id}),b}),o}else return[]};l.onMounted(async()=>{var n;const e=await f(),t=[{key:"header",contents:[{label:"主菜单名称",formType:"Select",options:(n=u.cloneDeep(c.value))==null?void 0:n.map(a=>({label:a==null?void 0:a.title,value:a==null?void 0:a.title})),prop:"主菜单名称"},{label:"隐藏三维显示",formType:"Switch",value:!1,prop:"隐藏三维显示"},{label:"操作"}]},{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}];t.push({key:"tableContents",contents:e}),p.value=t});const y=e=>{(e==null?void 0:e.buttonName)==="新增"?r.addMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="删除"?r.deleteMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="编辑"&&r.fixMenuContent(e==null?void 0:e.singleContent)};return(e,i)=>(l.openBlock(),l.createElementBlock("div",v,[l.createVNode(C.ssTable,{itemData:p.value,class:"table-content",onChange:y},null,8,["itemData"])]))}}),h=g._export_sfc(x,[["__scopeId","data-v-26f5cadc"]]);exports.default=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-y1mE3_ai.cjs"),_=require("./index-C5woD5Cw.cjs"),C=require("./index-dRtOvQRS.cjs"),r=require("./index-BAsZ3voF.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const m=_.useMenuState(u.pinia),{menus:c}=u.storeToRefs(m),p=l.ref([]),f=async()=>{var i,t,n,a;const e=await u.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey")}});if(((i=e==null?void 0:e.data)==null?void 0:i.type)==="success"){let o=(n=(t=e==null?void 0:e.data)==null?void 0:t.result)==null?void 0:n.map(s=>s);return o=(a=u.cloneDeep(o))==null?void 0:a.map(s=>{var d;const b=Object.values((d=s==null?void 0:s.value)==null?void 0:d.tableData);return b.unshift({id:s==null?void 0:s.id}),b}),o}else return[]};l.onMounted(async()=>{var n;const e=await f(),t=[{key:"header",contents:[{label:"主菜单名称",formType:"Select",options:(n=u.cloneDeep(c.value))==null?void 0:n.map(a=>({label:a==null?void 0:a.title,value:a==null?void 0:a.title})),prop:"主菜单名称"},{label:"隐藏三维显示",formType:"Switch",value:!1,prop:"隐藏三维显示"},{label:"操作"}]},{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}];t.push({key:"tableContents",contents:e}),p.value=t});const y=e=>{(e==null?void 0:e.buttonName)==="新增"?r.addMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="删除"?r.deleteMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="编辑"&&r.fixMenuContent(e==null?void 0:e.singleContent)};return(e,i)=>(l.openBlock(),l.createElementBlock("div",v,[l.createVNode(C.ssTable,{itemData:p.value,class:"table-content",onChange:y},null,8,["itemData"])]))}}),h=g._export_sfc(x,[["__scopeId","data-v-26f5cadc"]]);exports.default=h;
@@ -1,5 +1,5 @@
1
1
  import { ref as x, onMounted as _, createElementBlock as g, openBlock as y, createVNode as C } from "vue";
2
- import { s as b } from "./index-CrrLYGdV.js";
2
+ import { s as b } from "./index-DHZH0zPO.js";
3
3
  import { c as s } from "./index-KFoWHXov.js";
4
4
  import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const A = (t, n, a) => {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as z, reactive as R, onMounted as T, watch as A, nextTick as U, resolveComponent as i, createElementBlock as k, openBlock as u, createVNode as c, withCtx as l, createElementVNode as _, toDisplayString as g, Fragment as v, renderList as B, createBlock as b, createTextVNode as f, withDirectives as I, vShow as P } from "vue";
2
- import { s as E } from "./index-CDT7oAPk.js";
2
+ import { s as E } from "./index-CN-T4mBv.js";
3
3
  import { u as F, ah as x } from "./index-Dh_LOm8w.js";
4
4
  import { s as O, c as H } from "./index-KFoWHXov.js";
5
5
  import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -0,0 +1 @@
1
+ "use strict";const l=require("vue"),D=require("./index-y1mE3_ai.cjs"),te=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BtDy8n8V.cjs"),ol=require("./index-DMkTj7aZ.cjs"),qa=require("./threeViewerHost-Cg_dRiGk.cjs"),ra=require("./index-C5woD5Cw.cjs");require("./index.vue_vue_type_style_index_1_lang-ClIZyFAZ.cjs");const na=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Jl=require("./index-CbBel_Ly.cjs");require("./index-Xb_d3z-H.cjs");const Ra=require("./isString-MUYgjroV.cjs"),fa=F=>F.match(/\((.*)\)/)[1],Ja={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},placement:{type:String,default:"bottom"},width:{type:Number,default:200}},setup(F){const oe=F,ee=l.ref(null),j=l.ref(!1),L=l.ref(null);return l.watch(()=>oe==null?void 0:oe.isVisible,()=>{j.value=oe==null?void 0:oe.isVisible},{deep:!0,immediate:!0}),l.watch(()=>L.value,()=>{l.nextTick(()=>{var u,ue;(ue=(u=ee.value)==null?void 0:u.updatePopper)==null||ue.call(u)})},{deep:!0,immediate:!0}),(u,ue)=>{const ve=l.resolveComponent("el-popover");return l.openBlock(),l.createBlock(ve,{visible:j.value,title:oe==null?void 0:oe.title,placement:oe==null?void 0:oe.placement,width:oe==null?void 0:oe.width,ref_key:"popOverRef",ref:ee},{reference:l.withCtx(()=>[l.createElementVNode("div",null,[l.renderSlot(u.$slots,"reference",{ref_key:"referenceRef",ref:L})])]),default:l.withCtx(()=>[l.createElementVNode("div",null,[l.renderSlot(u.$slots,"content")])]),_:3},8,["visible","title","placement","width"])}}},ln={key:0,class:"extra-button-content"},an={class:"table-operator-wrap"},rn={key:0,class:"extra-button-filter"},nn={class:"form-content-value"},on={key:1,class:"extra-header"},un={class:"drop-menu",style:{width:"120px"}},sn={key:0},tn={key:1},cn={key:1,class:"extra-button-content tabs-button-wrapper"},dn={class:"table-operator-wrap"},pn={class:"extra-button-filter"},fn={class:"form-content-value"},hn={key:0,class:"extra-header"},gn={class:"drop-menu",style:{width:"120px"}},yn={key:0},vn={key:1},bn={__name:"header",props:{pageLayout:{type:String,default:"vertical"},lockingPage:Boolean,level:{type:Number,default:1},compName:{type:String,default:"表格名称",required:!1},filterShow:{type:Boolean,default:!1},isDevMode:Boolean,selectNums:Number,dataNums:Number,filterValues:Array,buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick","filter","getImportData"],setup(F,{emit:oe}){const ee=oe,j=F,L=l.ref(""),u=l.ref(!1),ue=l.ref([]),ve=l.ref([{label:"取消",background:"#999999"},{label:"清空",background:"#999999"},{label:"确认"}]),Te=[{label:"新增",icon:"Plus"},{label:"导入",icon:"import"},{label:"导出",icon:"export"}],be=ge=>{const me=ge.raw;if(!me)return;const Ae=new FileReader;Ae.onload=ce=>{try{const fe=new Uint8Array(ce.target.result),ye=te.readSync(fe,{type:"array"}),X=ye.SheetNames[0],de=ye.Sheets[X],Ue=te.utils.decode_range(de["!ref"]).e.c+1,R=new Array(Ue).fill(""),S=[];for(const W in de){if(W[0]==="!")continue;const{r:he,c:Se}=te.utils.decode_cell(W);let Oe=de[W].v;if(de[W].t==="n"&&Oe>0&&Oe<1e6&&(Oe=new Date((Oe-25569)*86400*1e3).toISOString().split("T")[0]),(Oe==null||Oe==="")&&(Oe=""),he===0)R[Se]=Oe;else{if(!S[he-1]){S[he-1]={};for(let il=0;il<Ue;il++)S[he-1][`col_${il}`]=""}S[he-1][`col_${Se}`]=Oe}}for(let W=0;W<Ue;W++)R[W]===void 0&&(R[W]="");const Ne=S==null?void 0:S[0];if(!(Ne!=null&&Ne.hasOwnProperty("col_0")))return D.ElMessage.error("导入的数据列不匹配,请检查是否错位");ee("getImportData",R,S)}catch(fe){throw D.ElMessage.error(fe.message),new Error(fe.message)}},Ae.readAsArrayBuffer(me)},Qe=ge=>{var Ae;const me=(Ae=ue.value)==null?void 0:Ae.reduce((ce,fe,ye)=>(ye===0?ce[fe.label]=ge:ce[fe.label]=fe==null?void 0:fe.value,ce),{});ee("filter",me,ge,!0)},cl=ge=>{ee("buttonClick",ge)},fl=ge=>{var me,Ae;ue.value=(Ae=(me=te.getColumnChild(D.cloneDeep(ge)))==null?void 0:me.filter(ce=>(ce==null?void 0:ce.label)!==""&&(ce==null?void 0:ce.label)!=="操作"))==null?void 0:Ae.map(ce=>({label:(ce==null?void 0:ce.label)??"",value:"",name:(ce==null?void 0:ce.label)??"",isFormColHidden:ce==null?void 0:ce.isTableColHidden,width:2}))},dl=l.ref(!1),Le=ge=>{var me;if((ge==null?void 0:ge.buttonName)==="确认"&&(ee("filter",ge==null?void 0:ge.content),dl.value=(ge==null?void 0:ge.content)&&Object.values(ge==null?void 0:ge.content).length>0),(ge==null?void 0:ge.buttonName)==="清空"){const Ae=D.cloneDeep(ge==null?void 0:ge.content);for(const ce in Ae)Ae[ce]="";ue.value=(me=ue.value)==null?void 0:me.map(ce=>({...ce,value:""})),ee("filter",Ae),dl.value=!1}u.value=!1},hl=()=>{var me,Ae;ue.value=(me=ue.value)==null?void 0:me.map(ce=>({...ce,value:""}));const ge=(Ae=ue.value)==null?void 0:Ae.reduce((ce,fe)=>(ce[fe.label]=fe.value,ce),{});ee("filter",ge)};return l.onMounted(()=>{fl(j.columns)}),l.watch(()=>j.columns,()=>{fl(j.columns)},{deep:!0,immediate:!0}),(ge,me)=>{var de,$e,Ue,R;const Ae=l.resolveComponent("el-icon"),ce=l.resolveComponent("svg-icon"),fe=l.resolveComponent("el-input"),ye=l.resolveComponent("el-button"),X=l.resolveComponent("el-upload");return F.pageLayout==="vertical"?(l.openBlock(),l.createElementBlock("div",ln,[l.createElementVNode("div",{class:l.normalizeClass(F.compName?"table-name-wrap":""),style:l.normalizeStyle({background:(j==null?void 0:j.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((j==null?void 0:j.level)-1)*12+"px",fontWeight:600-((j==null?void 0:j.level)-1)*100>=400?600-((j==null?void 0:j.level)-1)*100:400,fontSize:17-(j==null?void 0:j.level)>=14?17-(j==null?void 0:j.level)+"px":"14px"})},l.toDisplayString(F.compName),7),l.createElementVNode("div",an,[j!=null&&j.filterShow?(l.openBlock(),l.createElementBlock("div",rn,[l.createVNode(Ja,{title:"",width:800,placement:"bottom-start",isVisible:u.value},{reference:l.withCtx(()=>{var S,Ne,W,he;return[l.createVNode(fe,{modelValue:L.value,"onUpdate:modelValue":me[1]||(me[1]=Se=>L.value=Se),style:{"min-width":"80px"},placeholder:dl.value?(W=(Ne=(S=F.filterValues)==null?void 0:S.filter(Se=>Se))==null?void 0:Ne.slice(0,3))==null?void 0:W.join("/"):"搜索","prefix-icon":l.unref(D.search_default),clearable:"",onInput:Qe,disabled:((he=ue.value)==null?void 0:he.length)===0},{suffix:l.withCtx(()=>{var Se,Oe;return[!L.value&&((Oe=(Se=F.filterValues)==null?void 0:Se.filter(il=>il))!=null&&Oe.join("/"))?(l.openBlock(),l.createBlock(Ae,{key:0,style:{cursor:"pointer"},onClick:hl},{default:l.withCtx(()=>[l.createVNode(l.unref(D.circle_close_default))]),_:1})):l.createCommentVNode("",!0)]}),append:l.withCtx(()=>[l.createElementVNode("span",{title:"条件查询",onClick:me[0]||(me[0]=Se=>u.value=!u.value)},[l.createVNode(ce,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:l.withCtx(()=>[l.createElementVNode("div",nn,[(l.openBlock(),l.createBlock(ol.ssForm,{rowContents:ue.value,buttonValue:ve.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:ve.value,isStartJustify:!1,onOnButtonClick:Le},null,8,["rowContents","buttonValue"]))])]),_:1},8,["isVisible"])])):l.createCommentVNode("",!0),F.buttons&&((de=F.buttons)==null?void 0:de.length)>0?(l.openBlock(),l.createElementBlock("div",on,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(($e=F.buttons)==null?void 0:$e.filter(S=>F.isDevMode||(S==null?void 0:S.label)!=="修改模板"),(S,Ne)=>(l.openBlock(),l.createElementBlock("div",{class:"extra-contents",key:Ne},[(S==null?void 0:S.type)==="upload"?(l.openBlock(),l.createBlock(X,{key:0,class:"upload-button-wrap","on-change":be,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!F.lockingPage},{default:l.withCtx(()=>[l.createVNode(ye,{disabled:!!F.lockingPage,style:l.normalizeStyle({background:(S==null?void 0:S.background)??"var(--ssbutton-theme-bg)",color:(S==null?void 0:S.color)??"var(--ssbutton-theme-color)"})},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(S==null?void 0:S.label),1)]),_:2},1032,["disabled","style"])]),_:2},1032,["disabled"])):l.createCommentVNode("",!0),(S==null?void 0:S.type)==="popover"?(l.openBlock(),l.createBlock(ol._sfc_main$1,{key:1},{dropTitle:l.withCtx(()=>[(S==null?void 0:S.type)==="popover"?(l.openBlock(),l.createBlock(ye,{key:0,disabled:!!F.lockingPage,style:l.normalizeStyle({background:(S==null?void 0:S.background)??"var(--ssbutton-theme-bg)",color:(S==null?void 0:S.color)??"var(--ssbutton-theme-color)"})},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(S==null?void 0:S.label),1)]),_:2},1032,["disabled","style"])):l.createCommentVNode("",!0)]),dropMenu:l.withCtx(()=>[l.createElementVNode("div",un,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(S==null?void 0:S.contents,W=>(l.openBlock(),l.createBlock(ye,{key:W==null?void 0:W.label,disabled:!!F.lockingPage,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:he=>cl(W==null?void 0:W.label)},{default:l.withCtx(()=>{var he,Se;return[l.createTextVNode(l.toDisplayString(W==null?void 0:W.label),1),(he=W==null?void 0:W.label)!=null&&he.includes("选中")?(l.openBlock(),l.createElementBlock("span",sn,"("+l.toDisplayString(F.selectNums)+")",1)):l.createCommentVNode("",!0),(Se=W==null?void 0:W.label)!=null&&Se.includes("全部")?(l.openBlock(),l.createElementBlock("span",tn,"("+l.toDisplayString(F.dataNums)+")",1)):l.createCommentVNode("",!0)]}),_:2},1032,["disabled","onClick"]))),128))])]),_:2},1024)):l.createCommentVNode("",!0),S!=null&&S.type?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(ye,{key:2,id:"themeButton",disabled:!!F.lockingPage,style:l.normalizeStyle({background:(S==null?void 0:S.background)??"var(--ssbutton-theme-bg)",color:(S==null?void 0:S.color)??"var(--ssbutton-theme-color)"}),onClick:W=>cl(S==null?void 0:S.label)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(S==null?void 0:S.label),1)]),_:2},1032,["disabled","style","onClick"]))]))),128))])):l.createCommentVNode("",!0)])])):(l.openBlock(),l.createElementBlock("div",cn,[l.createElementVNode("div",dn,[l.createElementVNode("div",pn,[l.createVNode(Ja,{title:"",width:800,placement:"bottom-start",isVisible:u.value},{reference:l.withCtx(()=>{var S,Ne,W,he;return[l.createVNode(fe,{modelValue:L.value,"onUpdate:modelValue":me[3]||(me[3]=Se=>L.value=Se),style:{"min-width":"80px"},placeholder:dl.value?(W=(Ne=(S=F.filterValues)==null?void 0:S.filter(Se=>Se))==null?void 0:Ne.slice(0,3))==null?void 0:W.join("/"):"搜索","prefix-icon":l.unref(D.search_default),clearable:"",onInput:Qe,disabled:((he=ue.value)==null?void 0:he.length)===0},{suffix:l.withCtx(()=>{var Se,Oe;return[!L.value&&((Oe=(Se=F.filterValues)==null?void 0:Se.filter(il=>il))!=null&&Oe.join("/"))?(l.openBlock(),l.createBlock(Ae,{key:0,style:{cursor:"pointer"},onClick:hl},{default:l.withCtx(()=>[l.createVNode(l.unref(D.circle_close_default))]),_:1})):l.createCommentVNode("",!0)]}),append:l.withCtx(()=>[l.createElementVNode("span",{title:"条件查询",onClick:me[2]||(me[2]=Se=>u.value=!u.value)},[l.createVNode(ce,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:l.withCtx(()=>[l.createElementVNode("div",fn,[(l.openBlock(),l.createBlock(ol.ssForm,{rowContents:ue.value,buttonValue:ve.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:ve.value,isStartJustify:!1,onOnButtonClick:Le},null,8,["rowContents","buttonValue"]))])]),_:1},8,["isVisible"])]),F.buttons&&((Ue=F.buttons)==null?void 0:Ue.length)>0?(l.openBlock(),l.createElementBlock("div",hn,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((R=F.buttons)==null?void 0:R.filter(S=>F.isDevMode||(S==null?void 0:S.label)!=="修改模板"),(S,Ne)=>(l.openBlock(),l.createElementBlock("div",{class:"extra-contents",key:Ne},[(S==null?void 0:S.type)==="upload"?(l.openBlock(),l.createBlock(X,{key:0,class:"upload-button-wrap","on-change":be,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:l.withCtx(()=>[l.createVNode(ye,{style:{background:"transparent",color:"#666666"}},{icon:l.withCtx(()=>{var W;return[l.createVNode(ce,{name:(W=Te==null?void 0:Te.find(he=>(he==null?void 0:he.label)===(S==null?void 0:S.label)))==null?void 0:W.icon},null,8,["name"])]}),default:l.withCtx(()=>[l.createTextVNode(" "+l.toDisplayString(S==null?void 0:S.label),1)]),_:2},1024)]),_:2},1024)):l.createCommentVNode("",!0),(S==null?void 0:S.type)==="popover"?(l.openBlock(),l.createBlock(ol._sfc_main$1,{key:1},{dropTitle:l.withCtx(()=>[(S==null?void 0:S.type)==="popover"?(l.openBlock(),l.createBlock(ye,{key:0,style:{background:"transparent",color:"#666666"}},{icon:l.withCtx(()=>{var W;return[l.createVNode(ce,{name:(W=Te==null?void 0:Te.find(he=>(he==null?void 0:he.label)===(S==null?void 0:S.label)))==null?void 0:W.icon},null,8,["name"])]}),default:l.withCtx(()=>[l.createTextVNode(" "+l.toDisplayString(S==null?void 0:S.label),1)]),_:2},1024)):l.createCommentVNode("",!0)]),dropMenu:l.withCtx(()=>[l.createElementVNode("div",gn,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(S==null?void 0:S.contents,W=>(l.openBlock(),l.createBlock(ye,{key:W==null?void 0:W.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:he=>cl(W==null?void 0:W.label)},{default:l.withCtx(()=>{var he,Se;return[l.createTextVNode(l.toDisplayString(W==null?void 0:W.label),1),(he=W==null?void 0:W.label)!=null&&he.includes("选中")?(l.openBlock(),l.createElementBlock("span",yn,"("+l.toDisplayString(F.selectNums)+")",1)):l.createCommentVNode("",!0),(Se=W==null?void 0:W.label)!=null&&Se.includes("全部")?(l.openBlock(),l.createElementBlock("span",vn,"("+l.toDisplayString(F.dataNums)+")",1)):l.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):l.createCommentVNode("",!0),S!=null&&S.type?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(ye,{key:2,id:"themeButton",style:l.normalizeStyle({background:"transparent",color:(S==null?void 0:S.label)==="新增"?"var(--ssbutton-theme-bg)":"#666666"}),onClick:W=>cl(S==null?void 0:S.label)},{icon:l.withCtx(()=>{var W;return[l.createVNode(ce,{name:(W=Te==null?void 0:Te.find(he=>(he==null?void 0:he.label)===(S==null?void 0:S.label)))==null?void 0:W.icon},null,8,["name"])]}),default:l.withCtx(()=>[l.createTextVNode(" "+l.toDisplayString(S==null?void 0:S.label),1)]),_:2},1032,["style","onClick"]))]))),128))])):l.createCommentVNode("",!0)])]))}}},kn=na._export_sfc(bn,[["__scopeId","data-v-2218a50d"]]),mn=l.defineComponent({__name:"batch",props:{lockingPage:Boolean,buttons:{type:Array,default:()=>[]},selectTableItems:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick"],setup(F,{emit:oe}){const ee=F,j=oe,L=ue=>{j("buttonClick",ue)},u=ue=>{var ve;return ue!=null&&ue.includes("删除")?((ve=ee.selectTableItems)==null?void 0:ve.length)>0?"warning-active-type":"warning-type":"default-type"};return(ue,ve)=>{const Te=l.resolveComponent("el-button");return l.openBlock(),l.createElementBlock("div",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(F.buttons,be=>(l.openBlock(),l.createBlock(Te,{key:be==null?void 0:be.label,disabled:!!F.lockingPage,class:l.normalizeClass(u(be==null?void 0:be.label)),onClick:Qe=>L(be==null?void 0:be.label)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(be==null?void 0:be.label),1)]),_:2},1032,["disabled","class","onClick"]))),128))])}}}),Sn=na._export_sfc(mn,[["__scopeId","data-v-70b12973"]]),Wa=D.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(F){this.selectArray=F},setSelectString(F){this.selectString=F}}}),xn={class:"calculator-content"},Dn={class:"calculator-child"},Cn={class:"calculator-child"},Tn=l.defineComponent({__name:"calculator",setup(F){const oe=l.ref(),ee=l.ref();return l.onMounted(()=>{oe.value=[{type:"Upload",label:"输入",name:"input"}],ee.value=[{type:"Upload",label:"输出",name:"output"}]}),(j,L)=>(l.openBlock(),l.createElementBlock("div",xn,[l.createElementVNode("div",Dn,[l.createVNode(ol.ssForm,{rowContents:oe.value,isRowFlex:!0},null,8,["rowContents"])]),l.createElementVNode("div",Cn,[l.createVNode(ol.ssForm,{rowContents:ee.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),Nn=na._export_sfc(Tn,[["__scopeId","data-v-73db0fe7"]]),ha=(F,oe)=>{let ee=F,j=oe;return Array.isArray(ee)&&(ee=ee==null?void 0:ee.map((L,u)=>{if(Array.isArray(L)){let ue={};return L=L==null?void 0:L.forEach((ve,Te)=>{var be;(be=j==null?void 0:j[Te])!=null&&be.prop?ue[j[Te].prop]=ve:Array.isArray(ve)&&(ue.children=ha(ve,j))}),Object.assign(ue,{id:u})}else return L})),ee},Ga=(F,oe,ee)=>{let j=F,L=oe;return j=j==null?void 0:j.map((u,ue)=>{var ve,Te;return!Array.isArray(u)||!((ve=L==null?void 0:L[ue])!=null&&ve.label)&&!ee||(u.unshift(((Te=L==null?void 0:L[ue])==null?void 0:Te.label)??""),u.some(be=>Array.isArray(be))&&(u=u==null?void 0:u.map(be=>{var Qe;return Array.isArray(be)&&(be=Ga(be,(Qe=L==null?void 0:L[ue])==null?void 0:Qe.children,ee)),be}))),u}),j},An=(F,oe,ee)=>{if(oe==="")return F==null?void 0:F.filter(j=>(j==null?void 0:j.id)!==ee);{const j=oe.split("-");return En(F,j,ee)}},En=(F,oe,ee)=>{let j=F,L=oe;return(L==null?void 0:L.length)===0?j=j==null?void 0:j.filter(u=>u.id!==ee):j=j==null?void 0:j.map(u=>(u.id.toString()===(L==null?void 0:L[0])&&(L==null||L.shift(),u=Ha(u,L,ee)),u)),j},Ha=(F,oe,ee)=>{var u,ue;let j=F,L=oe;return(L==null?void 0:L.length)===0?j.children=(u=j.children)==null?void 0:u.filter(ve=>ve.id!==ee):j.children=(ue=j.children)==null?void 0:ue.map(ve=>(ve.id.toString()===(L==null?void 0:L[0])&&(L==null||L.shift(),ve=Ha(ve,L,ee)),ve)),j},wn=(F,oe,ee)=>{if(oe==="")return ee;{const j=oe.split("-");return Bn(F,j,ee)}},Bn=(F,oe,ee)=>{let j=F,L=oe;return(L==null?void 0:L.length)===0?j=ee:j=j==null?void 0:j.map(u=>(u.id.toString()===(L==null?void 0:L[0])&&(L==null||L.shift(),u=Ia(u,L,ee)),u)),j},Ia=(F,oe,ee)=>{var u;let j=F,L=oe;return(L==null?void 0:L.length)===0?j.children=ee:j.children=(u=j.children)==null?void 0:u.map(ue=>(ue.id.toString()===(L==null?void 0:L[0])&&(L==null||L.shift(),ue=Ia(ue,L,ee)),ue)),j},Qa=D.defineStore("formComp",{state:()=>({objUrl:[],blobUrls:[]}),actions:{setObjUrl(F){this.objUrl=F},setBlobUrls(F){this.blobUrls=F}}}),ga=async(F,oe)=>{var ue,ve,Te,be,Qe,cl,fl,dl,Le,hl,ge,me,Ae,ce,fe,ye,X;let ee=(ve=(ue=D.cloneDeep(F))==null?void 0:ue.optionUrl)==null?void 0:ve.menuSelect,j=[];ee==null||ee.forEach(de=>{});let L="",u=await te.menuToParent(ee);if(u==null||u.forEach(de=>{var $e,Ue,R,S;(de==null?void 0:de.name)===(((S=(R=(Ue=($e=D.cloneDeep(F))==null?void 0:$e.optionUrl)==null?void 0:Ue.groupSelect)==null?void 0:R[0])==null?void 0:S.replaceAll("'",""))??"")&&(L=de==null?void 0:de.id)}),oe){L=oe;const de=await D.getInsofDataApi({id:L}),$e=(cl=(Qe=(be=(Te=de==null?void 0:de.data)==null?void 0:Te.result)==null?void 0:be[0])==null?void 0:Qe.key)==null?void 0:cl.pageKey;u=await te.getItemData($e,sessionStorage.getItem("systemKey"),"")}if(L!==""){let de;oe?de=(fl=u==null?void 0:u.find(R=>(R==null?void 0:R.id)===oe))==null?void 0:fl.compData:de=(dl=u==null?void 0:u.find(R=>{var S,Ne,W,he;return(R==null?void 0:R.name)===(((Ne=(S=F==null?void 0:F.groupSelect)==null?void 0:S.split(":"))==null?void 0:Ne[0])||((he=(W=F==null?void 0:F.optionUrl)==null?void 0:W.groupSelect)==null?void 0:he[0]))}))==null?void 0:dl.compData;let $e=(hl=(Le=de==null?void 0:de.find(R=>(R==null?void 0:R.key)==="header"))==null?void 0:Le.contents)==null?void 0:hl.map(R=>R==null?void 0:R.label);(me=(ge=de==null?void 0:de.find(R=>(R==null?void 0:R.key)==="header"))==null?void 0:ge.contents)!=null&&me.every(R=>Array.isArray(R))&&($e=(fe=te.getColumnChild((ce=(Ae=de==null?void 0:de.find(R=>(R==null?void 0:R.key)==="header"))==null?void 0:Ae.contents)==null?void 0:ce[0]))==null?void 0:fe.map(R=>R==null?void 0:R.prop));let Ue=(X=(ye=de==null?void 0:de.find(R=>(R==null?void 0:R.key)==="tableContents"))==null?void 0:ye.contents)==null?void 0:X.map(R=>{if(Array.isArray(R))R=R==null?void 0:R.filter(S=>!(S!=null&&S.id));else{let S={};for(let Ne in R)Ne!=="id"&&(S[Ne]=R==null?void 0:R[Ne]);R=S}return R});Ue==null||Ue.forEach(R=>{Array.isArray(R)?j.push(te.getValueToObjectValue(R,$e)):j.push(R)})}return j},_n={class:"table-content"},Un={class:"menu-config-wrap"},On=["onClick"],Mn={key:0,class:"viewport-wrap"},jn=["onClick"],Ln={title:"选择显示列信息"},Pn={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},$n=["title"],Fn={class:"col-operate-wrap"},Kn={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},Vn={class:"pop-view"},zn={class:"pop-wrapper"},qn={class:"file-list-pop"},Rn=["title","onClick"],Jn=["onClick"],Wn=["onClick"],Gn={class:"form-content"},Hn={key:0,class:"dialog-footer"},In={class:"dialog-footer"},Qn={class:"form-content"},Xn={__name:"index",props:{pageLayout:{type:String,default:"vertical"},level:{type:Number,default:1},compName:{type:String,default:"",required:!1},compNames:{type:Array,default:()=>[],required:!1},compItem:{type:Object,default:()=>{}},operatingForm:{type:Object,default:()=>{}},cacheNewData:{type:Object,default:()=>{}},config:Object,parentTableId:{type:Number,default:0},itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,isDevMode:Boolean,changedContent:{type:Object,default:()=>{}},showHeader:{type:Boolean,default:!0},allowSelect:{type:Boolean,default:!1},allowOperate:{type:Boolean,default:!0},allMapContents:{type:Object,default:()=>{}}},emits:["getSliceContLength","clickMainKey","change","contentChange","onButtonClick","contentClick","pageChange","rowClick","routeUrl"],setup(F,{emit:oe}){var Ma;const ee=l.ref([]),j=Qa(D.pinia),L=l.ref(null),u=F,ue=l.ref(u==null?void 0:u.allowSelect),ve=l.ref((Ma=u==null?void 0:u.config)==null?void 0:Ma.showIndex),Te=l.ref(),be=l.ref(!0),Qe=l.ref([{label:"排序",value:"sortable",checked:!1},{label:"筛选",value:"filterable",checked:!1},{label:"合计",value:"showSummary",checked:!1},{label:"编辑",value:"operable",checked:!1}]),cl=te.useOriginalState(D.pinia);let fl="$R";const{originalPath:dl}=D.storeToRefs(cl),Le=dl.value,hl=l.ref(!1),ge=l.ref(!1),me=l.ref(!1),Ae=l.ref(!0),ce=l.reactive({column:{},status:!1,text:"合计"}),fe=l.reactive({currentPage:1,pageSize:10,total:0,pageSizes:[5,10,20,50,100]}),ye=oe,X=l.ref([]),de=l.reactive({prop:"",order:null}),$e=l.ref([]),Ue=l.ref(!1),R=l.ref(!1),S=l.ref(null),{isUseBackdrop:Ne,initTrackFileType:W,getFileExtension:he,setData:Se,getFileInfo:Oe,getFilesInfo:il}=qa.useThreeSystem(),oa=l.ref([]),bl=l.ref(!1),Dl=l.ref(),Me=ra.useMenuState(),{importLoading:Zn,activeMenuPath:xe,contentLoading:eo,linkMenuInfo:Xa}=D.storeToRefs(Me),Ya=te.useTableComp(D.pinia),Ee=ra.useModelComp(D.pinia),{extraContents:De,cacheUpdatingData:wl,tableViewContents:Bl,tableLoading:lo,pageMapState:Cl,lockingPage:Wl}=D.storeToRefs(Ee),ae=l.ref([]),Gl=l.ref([]),Hl=l.ref(new Map);l.ref(!1);const ul=l.ref("");l.ref();const Il=l.ref(!0),Tl=l.ref(0),ya=l.ref(!0),Ie=l.ref(""),sl=l.ref(!1),Za=l.ref({label:"查看三维模型"}),Ql=l.ref(!1),ia=l.ref(),Xe=l.ref([]),gl=l.ref([]),Xl=l.ref(!1),_l=l.ref([]),kl=l.ref([]),yl=l.ref([]),we=l.ref([]),Ze=l.ref(),Ke=l.ref(),er=Wa(D.pinia),Yl=l.ref(),ua=l.ref(0),lr=te.useUnit(D.pinia),{selectIndex:ar,selectMenu:Ul,selectTitle:ao}=D.storeToRefs(lr),{selectString:ml}=D.storeToRefs(er),rr=D.useLoginState(D.pinia),{loginUserInfo:Nl}=D.storeToRefs(rr),nr=l.ref(720),el=l.ref(!1),Zl=l.ref(!1),ll=l.ref([]),tl=l.ref(),Ol=l.ref(!0),va=l.ref(!0),Sl=l.ref([]),or=l.inject("contentRef");l.provide("contentRef",or),l.watch(()=>{var e;return(e=ae.value)==null?void 0:e.length},e=>{fe.total=e}),l.watch(()=>Bl.value,async()=>{var s,t,d,c,y,w,E,P,k,U,O,B,z,V,K,x,N,m;if(((s=Bl.value)==null?void 0:s.length)===0||!((t=u==null?void 0:u.itemData)!=null&&t.find(T=>(T==null?void 0:T.key)==="columnPath"))||!((d=u==null?void 0:u.itemData)!=null&&d.find(T=>(T==null?void 0:T.key)==="pageColumn")))return;let e=(k=(P=(E=(w=(y=(c=u==null?void 0:u.itemData)==null?void 0:c.find(T=>(T==null?void 0:T.key)==="pageColumn"))==null?void 0:y.contents)==null?void 0:w.split("["))==null?void 0:E[1])==null?void 0:P.split("]"))==null?void 0:k[0],a=((z=(B=(O=(U=u==null?void 0:u.itemData)==null?void 0:U.find(T=>(T==null?void 0:T.key)==="pageColumn"))==null?void 0:O.contents)==null?void 0:B.split("["))==null?void 0:z[0])+((K=(V=Bl.value)==null?void 0:V.find(T=>(T==null?void 0:T.key)===e))==null?void 0:K.value),o=((N=(x=u==null?void 0:u.itemData)==null?void 0:x.find(T=>(T==null?void 0:T.key)==="pageGroup"))==null?void 0:N.contents)??"",r=await te.getItemData(a,sessionStorage.getItem("systemKey"),""),n=(m=r==null?void 0:r.find(T=>(T==null?void 0:T.name)===(o===""?u==null?void 0:u.compName:o)))==null?void 0:m.compData;Ua(n,u.allMapContents)},{deep:!0});const ir=async(e,a)=>{var o,r,n,s,t;try{const d=await D.getInsofDataApi({id:(u==null?void 0:u.parentTableId)||(u==null?void 0:u.index)});let c;((o=d==null?void 0:d.data)==null?void 0:o.code)===200&&(c=((n=(r=d==null?void 0:d.data)==null?void 0:r.result)==null?void 0:n[0])||null);const y={type:"data",pageKey:u!=null&&u.parentTableId?(s=c==null?void 0:c.key)==null?void 0:s.pageKey:xe.value,tableId:(u==null?void 0:u.parentTableId)||(u==null?void 0:u.index),systemKey:sessionStorage.getItem("systemKey")},w=a==null?void 0:a.map(k=>{const U=Object.keys(k),O={};return U.forEach((B,z)=>{O[e[z]]=k[B]}),O}),E=w==null?void 0:w.map(k=>({key:y,value:{tableData:k}})),P=await D.batchAddInsofDataApi({dataList:E});((t=P==null?void 0:P.data)==null?void 0:t.code)===200?(Ee.setRefreshCurStructure(!0),D.ElMessage.success("导入数据成功")):D.ElMessage.error("导入数据响应失败")}catch(d){throw D.ElMessage.error("导入数据处理失败"),new Error(d)}},ur=async e=>{var a,o,r,n,s;if((a=e==null?void 0:e.toString())!=null&&a.includes(".txt")||(o=e==null?void 0:e.toString())!=null&&o.includes(".cpt")||(r=e==null?void 0:e.toString())!=null&&r.includes(".cyd")){const t=await D.axios.get(e,{responseType:"blob",headers:{"Content-Type":"application/json"}}),d=new Blob([t.data],{type:"application/octet-stream;charset=UTF-8"});let c=URL.createObjectURL(d);Dl.value=[{name:(s=e==null?void 0:e.split("/"))==null?void 0:s[((n=e==null?void 0:e.split("/"))==null?void 0:n.length)-1],blobUrl:c}],bl.value=!0}};l.onBeforeUnmount(()=>{va.value=!1;let e=ua.value;ua.value=e+1});const ba=l.computed(()=>{var r,n;const e=(fe.currentPage-1)*fe.pageSize,a=e+fe.pageSize,o=(r=X.value)==null?void 0:r.find(s=>{var t;return(s==null?void 0:s.sortable)&&((t=s==null?void 0:s.label)==null?void 0:t.includes("时间"))});return o&&(de.order="descending",de.prop=o==null?void 0:o.prop),ye("getSliceContLength",fe),(n=ae.value)==null?void 0:n.slice(e,a)}),sr=e=>{fe.currentPage=e,ye("getSliceContLength",fe)},tr=e=>{var a;fe.pageSize=e,e*fe.currentPage>((a=ae.value)==null?void 0:a.length)&&(fe.currentPage=1,fe.pageSize=10,D.ElMessage.warning("分页无效,返回第一页")),ye("getSliceContLength",fe)},cr=(e,a)=>{var t,d;const o=(d=(t=X.value)==null?void 0:t.map(c=>c==null?void 0:c.prop))==null?void 0:d.filter(c=>c!=="operate");let r;const n=(e==null?void 0:e.length)===(o==null?void 0:o.length);if(e!=null&&e.includes("序号"))return D.ElMessage.error("导入的数据不需要包含序号列");if(r=n?e:e.slice(0,o==null?void 0:o.length),!(r==null?void 0:r.every(c=>o==null?void 0:o.find(y=>c===y))))return D.ElMessage.error("导入的数据表头不匹配");ir(r,a)},dr=(e,a)=>{var o;Ee.setRefreshCurStructure(!1),((o=X.value)==null?void 0:o.length)===0||cr(e,a)},pr=(e,a,o,r)=>{const n=[],s=[],t=y=>Object.keys(y).length;for(const y in e)if(e[y]!==void 0){const w=e[y],E=[];for(const[P,k]of Object.entries(w))E.push(k),s.length<t(w)&&s.push(P);n.push(E)}n.unshift(s);const d=te.utils.aoa_to_sheet(n),c=te.utils.book_new();te.utils.book_append_sheet(c,d,r),te.writeFileSync(c,`${a}.xlsx`),ll.value=[]},ea=async(e,a,o,r=!1,n)=>{var s,t,d,c,y,w,E,P;try{Ee.setRefreshCurStructure(!1);const k=await D.getInsofDataApi({id:u==null?void 0:u.index});if(((s=k==null?void 0:k.data)==null?void 0:s.code)===200){let U=(y=(c=(d=(t=k==null?void 0:k.data)==null?void 0:t.result)==null?void 0:d[0])==null?void 0:c.value)==null?void 0:y.pageData;r?U={...U,compData:(E=U==null?void 0:U.compData)==null?void 0:E.map(B=>{var z;return(B==null?void 0:B.key)==="header"?{...B,contents:(z=B==null?void 0:B.contents)==null?void 0:z.map(V=>({...V,[e]:o}))}:B})}:U={...U,compData:(w=U==null?void 0:U.compData)==null?void 0:w.map(B=>{var z,V;return(B==null?void 0:B.key)==="header"?{...B,contents:(z=B==null?void 0:B.contents)==null?void 0:z.map(K=>(K==null?void 0:K.prop)===(a==null?void 0:a.prop)?{...K,[e]:o}:K)}:(B==null?void 0:B.key)==="tableToForm"&&n?{...B,contents:(V=B==null?void 0:B.contents)==null?void 0:V.map(K=>(K==null?void 0:K.prop)===(a==null?void 0:a.prop)?{...K,[n]:o}:K)}:B})};const O=await D.updateInsofDataApi({id:u==null?void 0:u.index,value:{pageData:U}});((P=O==null?void 0:O.data)==null?void 0:P.code)===200?(D.ElMessage.success("编辑成功"),Ee.setRefreshCurStructure(!0)):D.ElMessage.error("编辑响应失败")}}catch(k){D.ElMessage.error(k)}},fr=async(e,a)=>{await ea("label",a,e)},hr=async(e,a)=>{await ea("columnType",a,e,!1,"type")},gr=()=>{wl.value?el.value=!1:Oa()},yr=e=>{ll.value=e},vr=(e,a)=>{tl.value===a?Ol.value=!1:Ol.value=!0,tl.value=a==null?void 0:a.changeProp},br=e=>{if(!e)return;const{item:a,value:o}=e,r=we.value.find(n=>n.prop==a.prop);r&&r.contents.push({label:o,value:o})},Ml=l.computed(()=>{var o,r,n;const e=(o=X.value)==null?void 0:o.some(s=>s==null?void 0:s.filterable);return document.documentElement.style.setProperty("--ssTable-header-filter-display",e?"inline-block":"none"),(n=(r=X.value)==null?void 0:r.filter(s=>(s==null?void 0:s.label)!=="操作"))==null?void 0:n.map(s=>({...s,filterable:!!(s!=null&&s.filterable),showSummary:!!(s!=null&&s.showSummary),operable:!!(s!=null&&s.operable)}))}),kr=async(e,a,o)=>{const r=D.cloneDeep(X.value);await l.nextTick(),X.value=r==null?void 0:r.map(n=>(o==null?void 0:o.label)===(n==null?void 0:n.label)?{...n,[a]:e}:n),await ea(a,o,e)},sa=async(e,a)=>{await ea(a,null,e,!0)},mr=()=>{sl.value=!1},Sr=e=>{ye("clickTrigger",e)},ka=async e=>{var s,t,d,c,y,w,E,P,k,U,O,B,z,V,K;const a=e==null?void 0:e.row,o=e==null?void 0:e.rowData,r=e==null?void 0:e.suffix;if((s=a==null?void 0:a.toString())!=null&&s.includes(".urdf")||e!=null&&e.isUrdf||r!=null&&r.includes(".urdf")){if(a.includes(",")){D.ElMessage.error("当前版本仅允许单个urdf预览!");return}if(Ne(a)){const N={files:[Oe(a)],data:{}};Se(N);return}_l.value=[{url:a,extension:he(a)}],R.value=!0,S.value={data:D.cloneDeep(o)},Ue.value=!0;return}let n=[];if((t=a==null?void 0:a.toString())!=null&&t.includes(".stl")||(d=a==null?void 0:a.toString())!=null&&d.includes(".STL")||(c=a==null?void 0:a.toString())!=null&&c.includes(".obj")||(y=a==null?void 0:a.toString())!=null&&y.includes(".mtl")){const x=(w=a==null?void 0:a.toString())==null?void 0:w.split(","),N=il(x),m=N==null?void 0:N[0];if(Ne(m==null?void 0:m.extension)){Se({files:N,data:{}});return}_l.value=N,R.value=!1,Ue.value=!0;return}if((E=a==null?void 0:a.toString())!=null&&E.includes(".stl")||(P=a==null?void 0:a.toString())!=null&&P.includes(".STL")||(k=a==null?void 0:a.toString())!=null&&k.includes(".obj")||(U=a==null?void 0:a.toString())!=null&&U.includes(".mtl")||r!=null&&r.includes(".stl")||r!=null&&r.includes(".STL")||r!=null&&r.includes(".obj")||r!=null&&r.includes(".mtl")){let x,N=[],m={};if(Array.isArray(a)?x=a:x=a==null?void 0:a.split(","),x==null||x.forEach(T=>{T.includes(".mtl")?N.push(T):m.blob=m.blob?m.blob+","+T:T}),(N==null?void 0:N.length)>0&&(m.mtlBlobs=N),r&&(m.suffix=r),(B=(O=Object.values(m))==null?void 0:O[0])!=null&&B.includes("http:"))n.push(m);else{const T=new Blob([m.blob],{type:"application/octet-stream;charset=UTF-8"});let b=URL.createObjectURL(T),J="";(z=a==null?void 0:a.split("/"))==null||z.forEach((i,M)=>{var le;M===((le=a==null?void 0:a.split("/"))==null?void 0:le.length)-1&&(J=i)}),(V=m.blob)!=null&&V.includes(".stl")&&(J=(J==null?void 0:J.replaceAll(">",""))+".urdf"),Dl.value=[{name:J,blobUrl:b}],bl.value=!0}}else{const x=await D.axios.get(a,{responseType:"blob",headers:{"Content-Type":"application/json"}}),N=new Blob([x.data],{type:"application/octet-stream;charset=UTF-8"});let m=URL.createObjectURL(N),T="";if((K=a==null?void 0:a.split("/"))==null||K.forEach((b,J)=>{var i;J===((i=a==null?void 0:a.split("/"))==null?void 0:i.length)-1&&(T=b)}),Ne(T)){const b=W(T),J=Oe(a);Se({files:[J],data:{trackFileType:b}});return}Dl.value=[{name:T,blobUrl:m}],bl.value=!0}(n==null?void 0:n.length)>0&&j.setBlobUrls(n)},la=e=>{var r,n,s,t;if(e!=null&&e.downloadUrl)return e==null?void 0:e.name;const a=(t=(r=e==null?void 0:e.url)==null?void 0:r.split("."))==null?void 0:t[((s=(n=e==null?void 0:e.url)==null?void 0:n.split("."))==null?void 0:s.length)-1];return(e==null?void 0:e.name)+"."+a},xr=async e=>{let a=null,o=null;if(e!=null&&e.downloadUrl){const n=await ta(),s=ol.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),t=await D.axios.post(e==null?void 0:e.url,null,{responseType:"blob",headers:{Authorization:n,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}).finally(()=>{s.close()}),d=new Blob([t.data],{type:"application/octet-stream;charset=UTF-8"});a=URL.createObjectURL(d),o=e==null?void 0:e.name}else{const n=await te.downloadAvatarApi({url:e==null?void 0:e.url});!e.url.toUpperCase().includes(".OBJ")&&!e.url.toUpperCase().includes(".STL")&&!e.url.toUpperCase().includes(".MTL")&&!e.url.toUpperCase().includes(".URDF")?(a=URL.createObjectURL(n.data),o=la(e)):a=e==null?void 0:e.url}if(Ne(a)){const n={row:`${a}`,suffix:he(o)};ka(n);return}const r={name:o,blobUrl:a};Dl.value=[r],bl.value=!0},Dr=async e=>{let a=null,o=null;if(e!=null&&e.downloadUrl){const s=await ta(),t=await D.axios.post(e==null?void 0:e.url,null,{responseType:"blob",headers:{Authorization:s,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}),d=new Blob([t.data],{type:"application/octet-stream;charset=UTF-8"});a=URL.createObjectURL(d),o=e==null?void 0:e.name}else{const s=await te.downloadAvatarApi({url:e==null?void 0:e.url});a=URL.createObjectURL(s.data),o=la(e)}const r={name:o,blobUrl:a},n=document.createElement("a");n.href=r.blobUrl,n.download=r.name,n.style.display="none",document.body.appendChild(n),n.click(),setTimeout(()=>{document.body.removeChild(n)},100)},Cr=(e,a)=>{var o;if(Object.values(a).length!==0)return Object.values(a).find(r=>{var n,s,t;return((n=r==null?void 0:r.toString())==null?void 0:n.includes(".txt"))||((s=r==null?void 0:r.toString())==null?void 0:s.includes(".cpt"))||((t=r==null?void 0:r.toString())==null?void 0:t.includes(".obj"))})?[...e,Za.value]:(o=u==null?void 0:u.config)!=null&&o.allowMove?[...e,{label:"迁移"}]:e},Tr=(e,a={})=>[...e==null?void 0:e.values()].filter(o=>Object.keys(a).every(r=>{var t;const n=o[r],s=(t=a[r])==null?void 0:t.toLowerCase();return s&&n&&typeof n=="string"?n.toLowerCase().includes(s):!0})),ma=l.ref([]),Nr=async(e,a,o=!1)=>{var r;if(e){if(Ee.setTableLoading(!0),ma.value=Object.values(e),e&&((r=Object.values(e))!=null&&r.every(n=>!n)))return ae.value=Gl.value;if(o){ae.value=[...Hl.value.values()].filter(n=>Object.values(n).some(s=>typeof s=="string"?s==null?void 0:s.toLowerCase().includes(a==null?void 0:a.toLowerCase()):!1));return}ae.value=Tr(Hl.value,e),Ee.setTableLoading(!1)}},Ar=async e=>{},Sa=async(e,a,o,r)=>{var n,s,t,d,c,y,w,E,P,k,U,O,B,z,V,K,x,N,m,T;if(ye("clickMainKey",o),(r==null?void 0:r.isExistChild)===!0){let b=(n=r==null?void 0:r.columnType)==null?void 0:n.prop,J=r==null?void 0:r.data;if(Sl.value=await te.getItemData(xe.value,sessionStorage.getItem("systemKey"),""),!Sl.value){let M=(d=(t=(s=xe.value)==null?void 0:s.split("/"))==null?void 0:t.filter((le,p)=>{var _,f;return p!==((f=(_=xe.value)==null?void 0:_.split("/"))==null?void 0:f.length)-1}))==null?void 0:d.join("/");Sl.value=await te.getItemData(M,sessionStorage.getItem("systemKey"),"")}let i=(c=Sl.value)==null?void 0:c.filter(M=>(M==null?void 0:M.name)===b);Sl.value=i==null?void 0:i.map(M=>{var le;return M.compData=(le=M.compData)==null?void 0:le.map(p=>{var _,f;return(p==null?void 0:p.key)==="tableContents"&&(_=p==null?void 0:p.contents)!=null&&_.every(v=>v==null?void 0:v.find(A=>A==null?void 0:A.id))&&(p.contents=(f=p==null?void 0:p.contents)==null?void 0:f.filter(v=>(v==null?void 0:v[1])===J)),p}),M}),ye("routeUrl",Sl.value,{isEdit:!0,routerUrl:xe.value});return}if((r==null?void 0:r.data)==="查看"&&(e!=null&&e.every(b=>(b==null?void 0:b.url)&&(b==null?void 0:b.name)))){let b=D.cloneDeep(e);b=await((y=D.cloneDeep(b))==null?void 0:y.map(async i=>{var p,_,f,v;const M=await te.downloadAvatarApi({url:i==null?void 0:i.url});let le=URL.createObjectURL(M.data);return{name:(i==null?void 0:i.name)+"."+((v=(p=i==null?void 0:i.url)==null?void 0:p.split("."))==null?void 0:v[((f=(_=i==null?void 0:i.url)==null?void 0:_.split("."))==null?void 0:f.length)-1]),blobUrl:le}}));let J=await Promise.all(b);Dl.value=J,bl.value=!0}if(D.cloneDeep(X.value),(r==null?void 0:r.isMainKey)===!0){Me.setActiveMenuPath(void 0),Ee.setRouteToChildPath(void 0),Ee.setFixMenuStatus(!0);let b=(E=(w=u.itemData)==null?void 0:w.find(i=>(i==null?void 0:i.key)==="contentTableId"))==null?void 0:E.contents,J=(k=(P=u.itemData)==null?void 0:P.find(i=>(i==null?void 0:i.key)==="relatedFilter"))==null?void 0:k.index;if(J!==0){let i=(O=(U=X.value)==null?void 0:U[J])==null?void 0:O.prop;if((o==null?void 0:o[i])===(r==null?void 0:r.data)){let M=await D.getInsofDataApi({id:b}),le=(K=(V=(z=(B=M==null?void 0:M.data)==null?void 0:B.result)==null?void 0:z[0])==null?void 0:V.key)==null?void 0:K.pageKey;Me.setActiveMenuPath(le+"/"+(r==null?void 0:r.data))}else{let M=await D.getInsofDataApi({key:{pageKey:D.cloneDeep(xe).value+"/"+(r==null?void 0:r.data),systemKey:sessionStorage.getItem("systemKey")}});((N=(x=M==null?void 0:M.data)==null?void 0:x.result)==null?void 0:N.length)>0&&Me.setActiveMenuPath(D.cloneDeep(xe).value+"/"+(r==null?void 0:r.data))}}else{let i=await D.getInsofDataApi({key:{pageKey:D.cloneDeep(xe).value+"/"+(r==null?void 0:r.data),systemKey:sessionStorage.getItem("systemKey")}});((T=(m=i==null?void 0:i.data)==null?void 0:m.result)==null?void 0:T.length)>0&&Me.setActiveMenuPath(D.cloneDeep(xe).value+"/"+(r==null?void 0:r.data))}}},Er=()=>{bl.value=!1},wr=e=>{ye("rowClick",e)};l.watch(()=>u.changedContent,()=>{var o,r;if(!u.changedContent)return;let e=(o=ae.value)==null?void 0:o.map(n=>{var s;return n.id===((s=u.changedContent)==null?void 0:s.id)&&(n={...u.changedContent,id:u.changedContent.newId?u.changedContent.newId:u.changedContent.id},delete n.newId),n});const a=(r=u.itemData)==null?void 0:r.map(n=>((n==null?void 0:n.key)==="tableContents"&&(n.contents=e),n));ae.value=e,ye("contentChange",{contents:a,index:u.index}),ye("change",{content:e,index:u==null?void 0:u.index,buttonName:"",id:u==null?void 0:u.index})},{deep:!0,immediate:!0});const Br=()=>{},_r=async()=>{const e=xe.value,a=sessionStorage.getItem("systemKey"),o=await te.getItemData(e,a,""),r=(o==null?void 0:o.find(d=>(d==null?void 0:d.name)==="方法明细"))||(o==null?void 0:o[0]),n=(r==null?void 0:r.compData)||[],s=n==null?void 0:n.find(d=>{const c=d==null?void 0:d.key;return c==="formContent"||c==="tableContents"});return s==null?void 0:s.contents},ta=async()=>`Bearer ${D.Local.get("access-token")}`,Ur=async(e,{token:a,inputData:o}={})=>await D.axios.post(e,o,{headers:{Authorization:a}}).catch(n=>(Me.setImportLoading(!1),Promise.reject(n))),Or=e=>{var r;let a={};const o=[];return a.form={},(r=D.cloneDeep(e))==null||r.forEach((n,s)=>{var t,d,c,y,w,E,P,k,U,O,B,z,V,K;if((n==null?void 0:n.comp)==="Table"){(d=(t=n==null?void 0:n.compData)==null?void 0:t.find(T=>(T==null?void 0:T.key)==="header"))==null||d.contents;let x=(w=(y=(c=n==null?void 0:n.compData)==null?void 0:c.find(T=>(T==null?void 0:T.key)==="tableContents"))==null?void 0:y.contents)==null?void 0:w.map(T=>T.slice(1));(O=(U=(k=(P=(E=n==null?void 0:n.compData)==null?void 0:E.find(T=>(T==null?void 0:T.key)==="header"))==null?void 0:P.contents)==null?void 0:k[0])==null?void 0:U[0])==null||O.label;let N=(z=(B=n==null?void 0:n.compData)==null?void 0:B.find(T=>(T==null?void 0:T.key)==="header"))==null?void 0:z.contents,m=[];x==null||x.forEach(T=>{let b=[];T==null||T.forEach((J,i)=>{var le;let M={};((le=N[i])==null?void 0:le.label)!=="操作"&&(M[N[i].label]=J,b.push(M))}),m.push(b)}),a[n.name]=m}else{const x=(K=(V=n.compData)==null?void 0:V.find(N=>(N==null?void 0:N.key)==="formContent"))==null?void 0:K.contents;x==null||x.forEach(N=>{var m,T;if(N.prop!==""){let b=N==null?void 0:N.value;Array.isArray(b)?b=((m=b==null?void 0:b[0])==null?void 0:m.oldUrl)||"http://222.92.178.198:62001/"+((T=b==null?void 0:b[0])==null?void 0:T.url):b=b.toString(),N={key:(N==null?void 0:N.prop)??(N==null?void 0:N.label),value:b},o.push(N)}})}}),a.form=te.getFormContents(o),a},Mr=e=>{const a=[],o=r=>{r&&typeof r=="object"&&!Array.isArray(r)?Object.values(r).forEach(o):a.push(r)};return o(e),a},jr=async(e,a,o)=>{var N,m,T,b,J,i,M,le,p,_,f;Me.setImportLoading(!0),Ee.setFreshContent(!1);let r=await _r().catch(v=>(Me.setImportLoading(!1),Promise.reject(v)));r=r==null?void 0:r.filter(v=>{var A;return((A=v==null?void 0:v.find(C=>C==null?void 0:C.id))==null?void 0:A.id)===(a==null?void 0:a.id)});let n=te.getEqualChild([(N=X.value)==null?void 0:N.filter(v=>(v==null?void 0:v.label)!=="操作")]);const s=(T=(m=te.tableToForm(r,n))==null?void 0:m[0])==null?void 0:T.find(v=>{const A=v==null?void 0:v.key;return A==="Interface"||A==="方法体"}),t=s==null?void 0:s.value;if(!t){console.log("未搜索到isMain, 缺少算法执行接口"),Me.setImportLoading(!1);return}const d=X.value?te.getEqualChild([X.value]):[],c=d.find(v=>{const A=v==null?void 0:v.prop;return A==="Input1"||A==="输入数据.输入1"||A==="样本输入数据"}),y=c==null?void 0:c.prop;let w=a==null?void 0:a[y];const E=await ta().catch(v=>(Me.setImportLoading(!1),Promise.reject(v)));let P=!0,k="";(b=X.value)==null||b.forEach(v=>{(v==null?void 0:v.prop)===y&&(P=!!(v!=null&&v.childPath),k=v==null?void 0:v.childPath)});let U="";if(P){let v=(i=(J=X.value)==null?void 0:J.find(re=>(re==null?void 0:re.isMainKey)===!0))==null?void 0:i.prop;U=a==null?void 0:a[v];let A=k==null?void 0:k.split(Le),C=[];A==null||A.forEach((re,se)=>{(A==null?void 0:A.length)-1===se&&C.push(U),C.push(re)}),C=C==null?void 0:C[0];let ie=await te.getItemData(C,sessionStorage.getItem("systemKey"),""),G=ie==null?void 0:ie.filter(re=>(re==null?void 0:re.name)===y);G=G==null?void 0:G.map(re=>{var se;return re.compData=(se=re==null?void 0:re.compData)==null?void 0:se.map($=>{var H;return($==null?void 0:$.key)==="tableContents"&&($.contents=(H=$==null?void 0:$.contents)==null?void 0:H.filter(ne=>(ne==null?void 0:ne[1])===(a==null?void 0:a[y]))),$}),re}),(!G||(G==null?void 0:G.length)===0)&&(G=ie,G=G==null?void 0:G.map(re=>{var se;return re.compData=(se=re==null?void 0:re.compData)==null?void 0:se.map($=>{var H;return($==null?void 0:$.key)==="tableContents"&&($.contents=(H=$==null?void 0:$.contents)==null?void 0:H.filter(ne=>{var I,Z;return(ne==null?void 0:ne[1])===(a==null?void 0:a[(Z=(I=X==null?void 0:X.value)==null?void 0:I[0])==null?void 0:Z.prop])})),$}),re})),w=Or(G)}const O=await Ur(t,{token:E,inputData:w}).catch(v=>(Me.setImportLoading(!1),Promise.reject(v))),B=(M=O==null?void 0:O.data)==null?void 0:M.data,z=d.find(v=>(v==null?void 0:v.prop)==="Output1"),V=z==null?void 0:z.prop;let K=[],x=[];if(B&&((le=Object.values(B))==null?void 0:le.length)>0){let v=[];const A=new FormData,C=(p=Mr(B))==null?void 0:p.map(async G=>{var re,se;if(!Array.isArray(G)&&(G!=null&&G.includes("http"))){let $=await D.axios.get(G,{responseType:"blob"}),H=(se=G==null?void 0:G.split("/"))==null?void 0:se[((re=G==null?void 0:G.split("/"))==null?void 0:re.length)-1];A.append("files",$.data,H)}else v.push(G)});if(await Promise.all(C),!te.isFormDataEmpty(A)){let G=await te.uploadAmountApi(A),re=(f=(_=G==null?void 0:G.data)==null?void 0:_.result)==null?void 0:f.map(se=>{var $,H,ne,I,Z,Y;return{name:(Y=(Z=(I=($=se==null?void 0:se.url)==null?void 0:$.split("/"))==null?void 0:I[((ne=(H=se==null?void 0:se.url)==null?void 0:H.split("/"))==null?void 0:ne.length)-1])==null?void 0:Z.split("."))==null?void 0:Y[0],url:se==null?void 0:se.url}});v=[...v,...re]}let ie={};for(let G in a)G!=="id"&&(ie[G]=a[G]);ie[V]=v,x.push({id:a==null?void 0:a.id,value:{tableData:ie}})}(x==null?void 0:x.length)>0&&await D.batchUpdateInsofDataApi({dataList:x}),(K==null?void 0:K.length)>0&&await D.batchAddInsofDataApi({dataList:K}),Pl(!0),Me.setImportLoading(!1),Ee.setFreshContent(!0)},xa=(e,a)=>(e=e==null?void 0:e.map(o=>{var r,n;return o!=null&&o.children&&((r=o.children)!=null&&r.find(s=>s.id===(a==null?void 0:a.id))?o.children=(n=o.children)==null?void 0:n.filter(s=>(s==null?void 0:s.id)!==(a==null?void 0:a.id)):o.children=xa(o.children,a)),o}),e),Be=l.reactive({title:"迁移至",show:!1,width:"20%",selectRow:null,from:u==null?void 0:u.index,to:null,contents:[],formRules:{groupName:[{required:!0,message:"输入不能为空",trigger:"blur"},{validator:(e,a,o)=>{a===(u==null?void 0:u.index)?o(new Error("选择源不能和目标源一致")):o()}}]},buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"确认",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]}),Lr=()=>{Be.show=!1},Pr=e=>{var a,o;if((e==null?void 0:e.buttonName)==="取消")return Be.show=!1;Be.to=e==null?void 0:e.content,!(!(u!=null&&u.index)||!((a=Be.to)!=null&&a.groupName))&&(u==null?void 0:u.index)!==((o=Be.to)==null?void 0:o.groupName)&&(ye("change",{buttonName:"迁移",value:{from:Be.from,to:Be.to,data:Be.selectRow}}),Be.show=!1)},aa=async(e,a,o)=>{var r,n,s,t,d,c,y,w,E,P,k,U,O,B,z;if(ul.value="",Xl.value=!0,Il.value=!0,ye("onButtonClick",e,a),e==="删除")ra.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var V,K;(V=ae.value)!=null&&V.find(x=>(x==null?void 0:x.id)===(a==null?void 0:a.id))?ae.value=(K=D.cloneDeep(ae.value))==null?void 0:K.filter(x=>(x==null?void 0:x.id)!==(a==null?void 0:a.id)):ae.value=xa(D.cloneDeep(ae.value),a),An(Yl.value,Ul.value,a==null?void 0:a.id),Ee.setTableLoading(u==null?void 0:u.index),ye("change",{content:ae.value,singleContent:a,index:u==null?void 0:u.index,type:"delete",buttonName:e,column:X.value})});else if(e==="批量删除"){if(((r=ll.value)==null?void 0:r.length)===0)return D.ElMessage.warning("请先勾选操作的数据");ra.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var K,x;const V=(K=ll.value)==null?void 0:K.map(N=>N.id);ae.value=(x=D.cloneDeep(ae.value))==null?void 0:x.filter(N=>!(V!=null&&V.includes(N.id))),Ee.setTableLoading(u==null?void 0:u.index),ye("change",{content:ae.value,singleContent:null,selectItems:ll.value,index:u==null?void 0:u.index,type:"batchDelete",buttonName:e,column:X.value})})}else if(e==="复制新增"){Ie.value="新增";const V=D.cloneDeep(a),K=(n=X.value)==null?void 0:n.find(m=>m==null?void 0:m.isMainKey),x=K||((s=X.value)==null?void 0:s[0]),N=(t=yl.value)==null?void 0:t.find(m=>(m==null?void 0:m.label)==="新建");await Ca(!0,N,{data:V,firstCol:x})}else if(e==="新增")Ie.value="新增",Ll(""),sl.value=!0;else if(e==="编辑")Ie.value="编辑",Ll(a),sl.value=!0;else if(e==="查看")Ie.value="查看",Ll(a),Xl.value=!1,Il.value=!1,sl.value=!0;else if(e==="查看三维模型"){const V={};for(let x in a)x!=="id"&&(V[x]=a[x]);let K=(d=Object.values(V))==null?void 0:d[1];Ya.setTableShowThree(K)}else if(((c=o==null?void 0:o.extra)==null?void 0:c.type)==="modelExample")Ie.value=e,Ql.value=!0;else if(e==="新建"){let V=Cl.value,K=[];for(let b in V)b!=null&&b.includes(`loading${((y=Nl.value)==null?void 0:y.account)||((w=Nl.value)==null?void 0:w.账号)}`)&&(K=[...K,...b]);let x=[];for(let b in V)b!=null&&b.includes(`updateLoading${((E=Nl.value)==null?void 0:E.account)||((P=Nl.value)==null?void 0:P.账号)}`)&&(x=[...x,...b]);let N=K==null?void 0:K.map(b=>b==null?void 0:b.id);const m=x==null?void 0:x.map(b=>b==null?void 0:b.id);N=[...D.cloneDeep(N),...m],(N==null?void 0:N.length)>0&&(N!=null&&N.every(b=>b!==null&&b))&&await D.batchDeleteInsofDataApi({ids:N});const T=(k=yl.value)==null?void 0:k.find(b=>(b==null?void 0:b.label)==="新建");await Ca(!1,T)}else if(e==="修改模板"){let V=D.cloneDeep(xe).value;Ee.setRouteToChildPath(V),Me.setActiveMenuPath(V+Le)}else if(e==="执行")jr(e,a);else if(e!=null&&e.includes("导出")){if(e==="导出选中"&&((U=ll.value)==null?void 0:U.length)===0)return D.ElMessage.warning(`请先勾选${e}的数据`);if(e==="导出全部"&&((O=ae.value)==null?void 0:O.length)===0)return D.ElMessage.warning("暂无数据导出");const V=(z=(B=X.value)==null?void 0:B.map(x=>x==null?void 0:x.label))==null?void 0:z.filter(x=>x!=="操作"),K=e==="导出全部"?D.cloneDeep(ae.value):D.cloneDeep(ll.value);K==null||K.forEach(x=>{x==null||delete x.id}),pr(K,u==null?void 0:u.compName,V,u==null?void 0:u.compName)}else e==="迁移"&&(Be.selectRow=a,Be.show=!0)},$r=async e=>{var o,r,n,s,t,d;const a=await D.getInsofDataApi({key:{pageKey:e,type:"structure",systemKey:sessionStorage.getItem("systemKey")}});if(((o=a==null?void 0:a.data)==null?void 0:o.code)===200)return Array.isArray((r=a==null?void 0:a.data)==null?void 0:r.result)&&((s=(n=a==null?void 0:a.data)==null?void 0:n.result)==null?void 0:s.length)>0?(d=(t=a==null?void 0:a.data)==null?void 0:t.result)==null?void 0:d.map(c=>{var y;return{id:c==null?void 0:c.id,...(y=c==null?void 0:c.value)==null?void 0:y.pageData}}):[]},Fr=async(e,a)=>{var o,r,n,s,t,d,c,y,w,E,P,k,U,O,B,z,V,K,x,N;try{let m,T;const b=(o=Cl.value[xe.value+Le])==null?void 0:o.filter(v=>{var A;return((A=v==null?void 0:v.key)==null?void 0:A.type)==="structureMethod"}),J=(r=Cl.value[xe.value+Le])==null?void 0:r.filter(v=>{var A;return((A=v==null?void 0:v.key)==null?void 0:A.type)==="structure"}),i=b==null?void 0:b.find(v=>{var A,C;return((C=(A=v==null?void 0:v.value)==null?void 0:A.pageData)==null?void 0:C.method)==="保存"});if(!i)return;const M=(d=(t=Cl.value[(s=(n=i==null?void 0:i.value)==null?void 0:n.pageData)==null?void 0:s.path])==null?void 0:t.filter(v=>{var A;return((A=v==null?void 0:v.key)==null?void 0:A.type)==="data"}))==null?void 0:d.find(v=>{var A,C,ie,G;return((C=(A=v==null?void 0:v.value)==null?void 0:A.tableData)==null?void 0:C.算法名称)===((G=(ie=i==null?void 0:i.value)==null?void 0:ie.pageData)==null?void 0:G.method)});if(!M)return;const le={buttonName:(y=(c=i==null?void 0:i.value)==null?void 0:c.pageData)==null?void 0:y.method,api:(E=(w=M==null?void 0:M.value)==null?void 0:w.tableData)==null?void 0:E.算法体,content:J==null?void 0:J.map(v=>{var A;return(A=v==null?void 0:v.value)==null?void 0:A.pageData}),extraContent:[],extraValues:(k=(P=i==null?void 0:i.value)==null?void 0:P.pageData)==null?void 0:k.data,methodName:(O=(U=i==null?void 0:i.value)==null?void 0:U.pageData)==null?void 0:O.path};if(!e)return;const p={...e,compData:(B=e==null?void 0:e.compData)==null?void 0:B.map(v=>{var A;return(v==null?void 0:v.key)==="formContent"?{...v,contents:(A=v==null?void 0:v.contents)==null?void 0:A.map(C=>(C==null?void 0:C.prop)===a?{...C,value:""}:C)}:v})},_={key:{pageKey:xe.value+Le,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),type:"structure"},value:{pageData:p}},f=await D.axios.post(le.api,_,{headers:{"Content-Type":"application/json"}});return((z=f==null?void 0:f.data)==null?void 0:z.code)===200&&(m=(K=(V=f==null?void 0:f.data)==null?void 0:V.result)==null?void 0:K.latestReportCode,T=(N=(x=f==null?void 0:f.data)==null?void 0:x.result)==null?void 0:N.status),{newMainKeyValue:m,newStatus:T}}catch(m){throw D.ElMessage.error(m),new Error(m)}},Da=(e,a,o,r)=>{var n;ye("contentChange",{contents:(n=e==null?void 0:e.compData)==null?void 0:n.map(s=>{var t;return(s==null?void 0:s.key)==="formContent"?{...s,contents:(t=s==null?void 0:s.contents)==null?void 0:t.map(d=>(d==null?void 0:d.key)===a?{...d,value:o}:jl.value&&(d==null?void 0:d.prop)===jl.prop?{...d,value:jl.value}:d)}:s}),index:e==null?void 0:e.id},r)},jl=l.reactive({prop:"状态",value:""}),Kr=l.ref(["系统自动生成信息","审批意见"]),Vr=async(e,a,o)=>{var c,y;let r=e==null?void 0:e[a==null?void 0:a.prop],n=1,s,t;const d=D.cloneDeep(xe).value+Le+r;if(d){jl.value="",s=(c=Cl.value[d])==null?void 0:c.filter(P=>{var k;return((k=P==null?void 0:P.key)==null?void 0:k.type)==="structure"});const w=s==null?void 0:s.find(P=>{var k,U,O;return((O=(U=(k=P==null?void 0:P.value)==null?void 0:k.pageData)==null?void 0:U.comp)==null?void 0:O.toUpperCase())==="FORM"});t={...(y=w==null?void 0:w.value)==null?void 0:y.pageData,id:w==null?void 0:w.id};const E=await Fr(t,a==null?void 0:a.prop);if(jl.value=E==null?void 0:E.newStatus,E!=null&&E.newMainKeyValue)return E==null?void 0:E.newMainKeyValue}if(ae.value.some(w=>(w==null?void 0:w[a==null?void 0:a.prop])===r)){const w=r;for(;ae.value.some(E=>(E==null?void 0:E[a==null?void 0:a.prop])===`${w}(${n})`);)n++;r=`${w}(${n})`}return r},Ca=async(e,a,o)=>{var t,d,c,y,w,E,P,k;let r,n;const s=await Vr(o==null?void 0:o.data,o==null?void 0:o.firstCol);if(e?(r=D.cloneDeep(xe).value+Le+((y=o==null?void 0:o.data)==null?void 0:y[(c=o==null?void 0:o.firstCol)==null?void 0:c.prop]),n=D.cloneDeep(xe).value+Le+s):(r=D.cloneDeep(xe).value+Le,n=D.cloneDeep(r)+`loading${((t=Nl.value)==null?void 0:t.account)||((d=Nl.value)==null?void 0:d.账号)}`),a){const U=(E=(w=Cl.value[n])==null?void 0:w.filter(O=>{var B;return((B=O==null?void 0:O.key)==null?void 0:B.parentTable)===""}))==null?void 0:E.map(O=>{var B;return{id:O==null?void 0:O.id,...(B=O==null?void 0:O.value)==null?void 0:B.pageData}});if((U==null?void 0:U.length)>0)if(e){const O=U==null?void 0:U.find(B=>{var z;return((z=B==null?void 0:B.comp)==null?void 0:z.toUpperCase())==="FORM"});O&&Da(O,(P=o==null?void 0:o.firstCol)==null?void 0:P.label,s,xe.value)}else Ee.setRouteToChildPath(D.cloneDeep(xe).value),Me.setActiveMenuPath(n);else if(await te.loadingConstruct(r,n,null,null,e?Kr.value:null),e){const O=await $r(n);if((O==null?void 0:O.length)>0){const B=O==null?void 0:O.find(z=>{var V;return((V=z==null?void 0:z.comp)==null?void 0:V.toUpperCase())==="FORM"});B&&Da(B,(k=o==null?void 0:o.firstCol)==null?void 0:k.label,s,xe.value)}}else Ee.setRouteToChildPath(D.cloneDeep(xe).value),Me.setActiveMenuPath(n)}else e?(ul.value="",Ke.value=o==null?void 0:o.data,Pl(!0,o==null?void 0:o.firstCol,s)):(Ee.setRouteToChildPath(D.cloneDeep(xe).value),Me.setActiveMenuPath(n))},zr=()=>{Ue.value=!1,_l.value=[],R.value=!1},Ll=e=>{var t,d,c,y,w,E,P,k,U,O,B,z,V,K,x,N,m,T,b,J;const a=[];let o=[];for(let i in e)Array.isArray(e==null?void 0:e[i])&&o.push(i);$e.value=D.cloneDeep(X.value),(d=te.getColumnChild((t=D.cloneDeep(X.value))==null?void 0:t.filter(i=>(i==null?void 0:i.label)!=="操作")))==null||d.forEach((i,M)=>{var le;o.find(p=>p===(i==null?void 0:i.prop))||(i!=null&&i.formType&&((le=i==null?void 0:i.formType)==null?void 0:le.toUpperCase())==="SELECT"||i!=null&&i.menuId?a.push({label:(i==null?void 0:i.label)||(i==null?void 0:i.prop)||"",name:(i==null?void 0:i.prop)??"t"+M,prop:i==null?void 0:i.prop,type:"Select",value:(e==null?void 0:e[i==null?void 0:i.prop])??(i==null?void 0:i.value)??"",id:(i==null?void 0:i.id)??M,contents:(i==null?void 0:i.options)??[],width:1,isFormColHidden:i==null?void 0:i.isFormColHidden,relatedValueId:i==null?void 0:i.relatedValueId,disabled:i==null?void 0:i.disabled,optionUrl:{groupSelect:i==null?void 0:i.groupSelect,menuSelect:i==null?void 0:i.formMenuSelect,type:"Select",selectRelateType:i==null?void 0:i.selectRelateType,allSelectionContents:(i==null?void 0:i.allSelectionContents)??[],selectFilter:i==null?void 0:i.selectFilter,menuId:i==null?void 0:i.menuId,filterContent:i==null?void 0:i.filterContent}}):a.push({label:(i==null?void 0:i.label)||(i==null?void 0:i.prop)||"",prop:i==null?void 0:i.prop,name:(i==null?void 0:i.prop)??"t"+M,type:!(i!=null&&i.formType)||(i==null?void 0:i.formType)===""?"Input":i==null?void 0:i.formType,value:(e==null?void 0:e[i==null?void 0:i.prop])??(i==null?void 0:i.value)??"",id:(i==null?void 0:i.id)??M,contents:(i==null?void 0:i.options)??[],width:1,isFormColHidden:i==null?void 0:i.isFormColHidden,disabled:i==null?void 0:i.disabled,relatedValueId:i==null?void 0:i.relatedValueId}))}),e===""||!e||(ul.value=(e==null?void 0:e.id)??"");let r=te.getColumnChild((c=D.cloneDeep(X.value))==null?void 0:c.filter(i=>(i==null?void 0:i.label)!=="操作"));Xe.value&&((y=Xe.value)==null?void 0:y.length)>0&&(Xe.value=(w=D.cloneDeep(Xe).value)==null?void 0:w.map(i=>{var le;let M=(i==null?void 0:i.prop)||((le=r==null?void 0:r.find(p=>(p==null?void 0:p.label)===(i==null?void 0:i.label)))==null?void 0:le.prop);return M&&(i.value=e[M]),i})),we.value=Xe.value&&((E=Xe.value)==null?void 0:E.length)>0?te.getTableFormToForm(Xe.value):a;let n=[],s=(P=u.itemData)==null?void 0:P.filter(i=>(i==null?void 0:i.key)==="filterAllType");if((s==null?void 0:s.length)>0&&(n=(s==null?void 0:s.map(M=>M==null?void 0:M.value)).flat()),(n==null?void 0:n.length)>0){let i=n==null?void 0:n.find(p=>{var _;return(_=p==null?void 0:p.content)==null?void 0:_.includes("@Type")});if(i!=null&&i.content){let p=(O=(U=(k=i==null?void 0:i.content)==null?void 0:k.replace(":",fl))==null?void 0:U.split(fl))==null?void 0:O[1];if(((B=p==null?void 0:p.trim())==null?void 0:B.toUpperCase())==="MANUAL"){let _=(N=(x=(z=u.itemData)==null?void 0:z.filter(f=>(f==null?void 0:f.key)==="contentTableId"))==null?void 0:x[((K=(V=u.itemData)==null?void 0:V.filter(f=>(f==null?void 0:f.key)==="contentTableId"))==null?void 0:K.length)-1])==null?void 0:N.contents;we.value=(m=we.value)==null?void 0:m.map((f,v)=>{var A,C,ie,G,re,se,$,H,ne,I,Z;return(A=f==null?void 0:f.optionUrl)!=null&&A.menuId&&(f.type="Select",(C=f==null?void 0:f.optionUrl)!=null&&C.menuId?(f.optionUrl.menuId=_,f.optionUrl.menuFilter=n,Ie.value==="新增"&&(f.optionUrl.multiple=(re=(G=(ie=n==null?void 0:n.find(Y=>{var pe;return(pe=Y==null?void 0:Y.content)==null?void 0:pe.includes("@Num")}))==null?void 0:ie.content)==null?void 0:G.split(":"))!=null&&re[1]&&parseInt((H=($=(se=n==null?void 0:n.find(Y=>{var pe;return(pe=Y==null?void 0:Y.content)==null?void 0:pe.includes("@Num")}))==null?void 0:se.content)==null?void 0:$.split(":"))==null?void 0:H[1])>1?!0:void 0,f.optionUrl.multipleLimit=(Z=(I=(ne=n==null?void 0:n.find(Y=>{var pe;return(pe=Y==null?void 0:Y.content)==null?void 0:pe.includes("@Num")}))==null?void 0:ne.content)==null?void 0:I.split(":"))==null?void 0:Z[1])):f.optionUrl={menuId:_,menuFilter:n}),f})}}let M=(T=we.value)==null?void 0:T.filter(p=>{var _,f;return((_=p==null?void 0:p.optionUrl)==null?void 0:_.menuId)&&((f=p==null?void 0:p.optionUrl)==null?void 0:f.menuId)!==""}),le;if(M==null||M.forEach(p=>{var f,v;if(le!==void 0)return;let _=(f=p==null?void 0:p.optionUrl)==null?void 0:f.menuId;((v=M==null?void 0:M.filter(A=>{var C;return((C=A==null?void 0:A.optionUrl)==null?void 0:C.menuId)===_}))==null?void 0:v.length)>1&&(le=_)}),M=M==null?void 0:M.filter(p=>{var _;return((_=p==null?void 0:p.optionUrl)==null?void 0:_.menuId)===le}),(M==null?void 0:M.length)>1){let p=M==null?void 0:M.map(A=>A==null?void 0:A.prop),_=M==null?void 0:M.map(A=>A==null?void 0:A.label),f=M==null?void 0:M.map(A=>A==null?void 0:A.value),v=(b=D.cloneDeep(M))==null?void 0:b[0];v.label=_==null?void 0:_.join("·"),v.value=f==null?void 0:f.join(" "),v.value.trim()===""&&(v.value=""),v.prop=p==null?void 0:p.join("·"),v.usingType="parent",we.value.unshift(v),we.value=(J=we.value)==null?void 0:J.map(A=>(p!=null&&p.find(C=>C===(A==null?void 0:A.prop))&&(A.isFormColHidden=!0),A))}}},qr=()=>{var a;const e=(a=L.value)==null?void 0:a.$el;e&&te.Sortable.create(e,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:o=>{var t;const{oldIndex:r,newIndex:n}=o;if(r===n)return;const s=Ml.value.splice(r,1)[0];Ml.value.splice(n,0,s),X.value=(t=X.value)==null?void 0:t.slice().sort((d,c)=>{if(d.label==="操作")return 1;if(c.label==="操作")return-1;const y=Ml.value.findIndex(E=>E.label===d.label),w=Ml.value.findIndex(E=>E.label===c.label);return y-w})}})};l.onMounted(()=>{ia.value=window.innerWidth-240*2});const Rr=()=>{l.nextTick(()=>{qr()})},ca=(e,a)=>{var r;if(!e&&!(e!=null&&e.children))return{contents:e,currentSelectContents:void 0};let o;return e.children=(r=e.children)==null?void 0:r.map(n=>{var s,t;if((n==null?void 0:n.id)===ul.value){let d={};for(let c in n){let y=(s=a==null?void 0:a.find(w=>(w==null?void 0:w.prop)===c))==null?void 0:s.label;y?d[c]=(t=Ke.value)==null?void 0:t[y]:d[c]=n[c]}n=Object.assign(d,Ke.value),o=n}else{let d=ca(n,a);n=d==null?void 0:d.contents,o=d==null?void 0:d.currentSelectContents}return n}),{contents:e,currentSelectContents:o}},Ta=(e,a)=>{let o,r;return e!=null&&e.find(n=>(n==null?void 0:n.id)===ul.value)?o=e==null?void 0:e.map(n=>{var s,t;if((n==null?void 0:n.id)===ul.value){let d={};for(let c in n){let y=(s=a==null?void 0:a.find(w=>(w==null?void 0:w.prop)===c))==null?void 0:s.label;y?d[c]=(t=Ke.value)==null?void 0:t[y]:d[c]=n[c]}n=Object.assign(d,Ke.value),r=n}return n}):o=e==null?void 0:e.map(n=>{var s,t,d,c;if((n==null?void 0:n.id)===ul.value){let y={};for(let w in n){let E=(s=a==null?void 0:a.find(P=>(P==null?void 0:P.prop)===w))==null?void 0:s.label;E?y[w]=(t=Ke.value)==null?void 0:t[E]:y[w]=n[w]}n=Object.assign(y,Ke.value),r=n}else n=(d=ca(n,a))==null?void 0:d.contents,r=(c=ca(n,a))==null?void 0:c.currentSelectContents;return n}),{newContents:o,currentSelectContents:r}},Na=(e,a,o)=>{var r,n;return e[a==null?void 0:a.prop]=o,typeof e.id=="number"&&(e.id=(r=e.id)==null?void 0:r.toString()),e.children&&((n=e.children)==null?void 0:n.length)>0&&(e.children=e.children.map(Na)),e},da=e=>{var o;const a=[];return a.push({...e}),e!=null&&e.children&&Array.isArray(e.children)&&((o=e.children)==null||o.forEach(r=>{a.push(...da(r))})),(a==null?void 0:a.length)>0?a==null?void 0:a.map(r=>{const n={...r};return delete n.children,n}):[]},Pl=(e=!0,a,o)=>{var y,w,E,P,k,U,O,B,z,V,K,x,N,m,T,b,J,i,M,le,p,_,f,v,A,C,ie,G,re,se;let r=te.getColumnChild((y=D.cloneDeep(X.value))==null?void 0:y.filter($=>($==null?void 0:$.label)!=="操作")),n,s=D.cloneDeep(ae.value);if(!Ke.value){sl.value=!1;return}if(ul.value===""){Tl.value++;let $;a&&o?$={id:Tl.value.toString(),[a==null?void 0:a.prop]:o,children:Ke.value.children}:$={id:Tl.value.toString()},$!=null&&$.children&&($={...$,children:(w=$.children)==null?void 0:w.map(H=>Na(H,a,o))}),s.push(Object.assign(Ke.value,$)),n=Object.assign(Ke.value,$)}else s=(E=Ta(s,r))==null?void 0:E.newContents,n=(P=Ta(s,r))==null?void 0:P.currentSelectContents;const t=(k=u.itemData)==null?void 0:k.filter($=>($==null?void 0:$.key)==="childTree")[0];if(((U=t==null?void 0:t.contents)==null?void 0:U.length)>0){Ie.value="编辑";const $=[];s==null||s.forEach((H,ne)=>{var Z;let I={};if(Array.isArray(H)){let Y=[];H==null||H.filter(pe=>!(pe!=null&&pe.id)).forEach((pe,Ce)=>{var ke,Je,qe,We,al,Pe,vl;if((Je=(ke=Ze.value)==null?void 0:ke[Ce])!=null&&Je.prop&&!Array.isArray(pe)){let pl={};pl[Ze.value[Ce].column]=pe,De!=null&&De.value&&((qe=De==null?void 0:De.value)==null?void 0:qe.length)>0&&((We=De==null?void 0:De.value)!=null&&We.find(Fe=>JSON.stringify(Fe==null?void 0:Fe[0])===JSON.stringify(pl)))&&(Y=(al=De==null?void 0:De.value)==null?void 0:al.find(Fe=>JSON.stringify(Fe==null?void 0:Fe[0])===JSON.stringify(pl))),Y&&Y.length>0?I[Ze.value[Ce].prop]=Y!=null&&Y.find(Fe=>{var rl;return((rl=Object.keys(Fe))==null?void 0:rl[0])===Ze.value[Ce].column})?(Pe=Y==null?void 0:Y.find(Fe=>{var rl;return((rl=Object.keys(Fe))==null?void 0:rl[0])===Ze.value[Ce].column}))==null?void 0:Pe[Ze.value[Ce].column]:pe:I[Ze.value[Ce].prop]=pe}else Array.isArray(pe)&&((vl=Ze.value[Ce])!=null&&vl.prop?I[Ze.value[Ce].prop]=pe:I.children=ha(pe,Ze.value))})}else I=H;Array.isArray(H)&&H.some(Y=>Y==null?void 0:Y.id)?$.push(Object.assign(I,{id:(Z=H==null?void 0:H.find(Y=>Y.id))==null?void 0:Z.id})):I.id?$.push(I):$.push(Object.assign(I,{id:ne.toString()}))}),ae.value=_a($,t,X.value)}wa(ae.value),Yl.value=ae.value;const d=wn(Yl.value,Ul.value,s);let c=[];if(wl.value?(c=(O=D.cloneDeep(wl).value.singleContent)==null?void 0:O.filter($=>($==null?void 0:$.id)!==(n==null?void 0:n.id)),c.push(n)):c=[n],el.value){const $={content:d,singleContent:((B=t==null?void 0:t.contents)==null?void 0:B.length)>0?c==null?void 0:c.flatMap(da):c,index:u==null?void 0:u.index,buttonName:"编辑",column:X.value,parentTableId:u==null?void 0:u.parentTableId};Ee.setCacheUpdatingData($)}if(e){let $=(x=(K=(V=(z=u.itemData)==null?void 0:z.find(I=>(I==null?void 0:I.key)==="filterAllType"))==null?void 0:V.value)==null?void 0:K.find(I=>(I==null?void 0:I.value)==="onConditionContents"))==null?void 0:x.content,H=(N=u.itemData)==null?void 0:N.filter(I=>(I==null?void 0:I.key)==="filterAllType");H=Array.from(new Map(H.filter(Boolean).map((I,Z)=>[I.value,{...I,_idx:Z}])).values()).sort((I,Z)=>I._idx-Z._idx).map(({_idx:I,...Z})=>Z),H=(m=H==null?void 0:H[(H==null?void 0:H.length)-1])==null?void 0:m.value;const ne={content:d,singleContent:((T=t==null?void 0:t.contents)==null?void 0:T.length)>0?da(n):n,index:u==null?void 0:u.index,buttonName:Ie.value,column:X.value,parentTableId:u==null?void 0:u.parentTableId,filter:$,allFilter:H,pathIndex:(J=(b=u.itemData)==null?void 0:b.find(I=>(I==null?void 0:I.key)==="relatedFilter"))==null?void 0:J.index,rowContents:we.value};Ee.setTableLoading(u==null?void 0:u.index),sl.value=!1,Ke.value=void 0,ye("change",ne)}if((le=(M=(i=we.value)==null?void 0:i[0])==null?void 0:M.optionUrl)!=null&&le.menuId){sl.value=!1;let $=(p=u.itemData)==null?void 0:p.filter(H=>(H==null?void 0:H.key)==="filterAllType");if(($==null?void 0:$.length)>0){let H=$==null?void 0:$.map(Z=>Z==null?void 0:Z.value),ne=(v=(f=(_=H.flat().find(Z=>{var Y;return(Y=Z==null?void 0:Z.content)==null?void 0:Y.includes("@Num")}))==null?void 0:_.content)==null?void 0:f.split(":"))==null?void 0:v[1];((ie=(C=(A=H.flat().find(Z=>{var Y;return(Y=Z==null?void 0:Z.content)==null?void 0:Y.includes("@Type:")}))==null?void 0:A.content)==null?void 0:C.split(":"))==null?void 0:ie[1])!=="Manual"&&(ne=parseInt(ne),ae.value=(se=ae.value)==null?void 0:se.slice(((G=ae.value)==null?void 0:G.length)-ne,(re=ae.value)==null?void 0:re.length))}}};l.onUnmounted(()=>{X.value=[],ae.value=[],$e.value=[],oa.value=[],Xe.value=[],gl.value=[],_l.value=[],kl.value=[],we.value=[],ll.value=[],L.value=null});const Aa=async(e,a,o)=>{var y,w,E,P,k,U,O,B,z,V,K;tl.value=o==null?void 0:o.prop;const r=D.cloneDeep(u.itemData),n=r==null?void 0:r.map(x=>{var N;return(x==null?void 0:x.key)==="header"&&((N=x.contents)==null||N.map((m,T)=>{var b,J,i,M,le,p,_,f,v,A,C,ie,G,re,se,$,H,ne,I;return m.type=m!=null&&m.type?m.type:(M=(i=(J=(b=m==null?void 0:m.key)==null?void 0:b.split("$"))==null?void 0:J[1])==null?void 0:i.split("("))!=null&&M[0]?(p=(le=te.FormType)==null?void 0:le.find(Z=>{var Y,pe,Ce,ke;return(Z==null?void 0:Z.key)===((ke=(Ce=(pe=(Y=m==null?void 0:m.key)==null?void 0:Y.split("$"))==null?void 0:pe[1])==null?void 0:Ce.split("("))==null?void 0:ke[0])}))==null?void 0:p.value:"Input",m.options=m!=null&&m.options?m.options:((v=(f=(_=m==null?void 0:m.key)==null?void 0:_.split("$"))==null?void 0:f[1])==null?void 0:v.length)>0?(G=(ie=fa((C=(A=m==null?void 0:m.key)==null?void 0:A.split("$"))==null?void 0:C[1]))==null?void 0:ie.split(","))==null?void 0:G.map(Z=>({label:Z,value:Z})):[],(re=m==null?void 0:m.key)!=null&&re.includes("$")&&(m.key=($=(se=m==null?void 0:m.key)==null?void 0:se.split("$"))==null?void 0:$[0]),m.value=(H=Object.values(a))==null?void 0:H[T],m.optionUrl=m!=null&&m.formMenuSelect&&((ne=m==null?void 0:m.formMenuSelect)==null?void 0:ne.length)>0?{groupSelect:(I=m==null?void 0:m.groupSelect)==null?void 0:I.split(/[::]/).map(Z=>Z.trim()),menuSelect:m==null?void 0:m.formMenuSelect,selectRelateType:"",type:(m==null?void 0:m.formType)??(m!=null&&m.groupSelect?"Select":"")}:null,m})),x});let s=D.cloneDeep(we.value),t=(w=(y=D.cloneDeep(n))==null?void 0:y.find(x=>(x==null?void 0:x.key)==="header"))==null?void 0:w.contents;s=s==null?void 0:s.map(x=>{var N;return x.value=(N=t==null?void 0:t.find((m,T)=>T===(x==null?void 0:x.id)))==null?void 0:N.value,x});let d="",c=(k=(P=(E=D.cloneDeep(n))==null?void 0:E.find(x=>(x==null?void 0:x.key)==="header"))==null?void 0:P.contents)==null?void 0:k.find((x,N)=>{var m,T,b;return(x==null?void 0:x.label)===tl.value||(N==null?void 0:N.toString())===((b=(T=(m=tl.value)==null?void 0:m.split("a"))==null?void 0:T[1])==null?void 0:b.toString())});if((B=(O=(U=D.cloneDeep(n))==null?void 0:U.find(x=>(x==null?void 0:x.key)==="header"))==null?void 0:O.contents)==null||B.forEach(x=>{var N,m,T,b,J;d===""&&((T=(m=(N=x==null?void 0:x.optionUrl)==null?void 0:N.groupSelect)==null?void 0:m[1])!=null&&T.includes("["))&&(d=(J=(b=x==null?void 0:x.optionUrl)==null?void 0:b.groupSelect)==null?void 0:J[1])}),(z=c==null?void 0:c.optionUrl)!=null&&z.menuSelect){let x=await ga(c),N;if(x==null||x.forEach(m=>{var T,b,J,i,M,le,p,_,f,v;d===((b=(T=c==null?void 0:c.optionUrl)==null?void 0:T.groupSelect)==null?void 0:b[1])&&((M=(i=(J=c==null?void 0:c.optionUrl)==null?void 0:J.groupSelect)==null?void 0:i[1])!=null&&M.includes("["))&&((v=D.cloneDeep(m))==null?void 0:v[(f=(_=(p=(le=c==null?void 0:c.optionUrl)==null?void 0:le.groupSelect)==null?void 0:p[1])==null?void 0:_.replaceAll("[",""))==null?void 0:f.replaceAll("]","")])===(c==null?void 0:c.value)&&(N=m)}),N){let m=D.cloneDeep(s);m=m==null?void 0:m.map(b=>{var J,i,M,le,p,_,f,v,A,C,ie;return(N!=null&&N[b==null?void 0:b.label]||N!=null&&N[(le=(M=(i=(J=b==null?void 0:b.optionUrl)==null?void 0:J.groupSelect)==null?void 0:i[1])==null?void 0:M.replaceAll("[",""))==null?void 0:le.replaceAll("]","")])&&((f=(_=(p=b==null?void 0:b.optionUrl)==null?void 0:p.groupSelect)==null?void 0:_[1])!=null&&f.includes("["))&&(b.value=(N==null?void 0:N[b==null?void 0:b.label])||(N==null?void 0:N[(ie=(C=(A=(v=b==null?void 0:b.optionUrl)==null?void 0:v.groupSelect)==null?void 0:A[1])==null?void 0:C.replaceAll("[",""))==null?void 0:ie.replaceAll("]","")])),b}),ae.value=(V=D.cloneDeep(ae.value))==null?void 0:V.map(b=>{if((b==null?void 0:b.id)===(a==null?void 0:a.id)){const J={};return m==null||m.forEach(i=>{J[i.name]=i.value}),J.id=b==null?void 0:b.id,J}return b});let T=D.cloneDeep(m);T=T==null?void 0:T.map(b=>{var J,i,M,le;return(i=(J=b==null?void 0:b.optionUrl)==null?void 0:J.menuSelect)!=null&&i.some(p=>p==null?void 0:p.includes)&&(b.optionUrl.menuSelect=(le=(M=b==null?void 0:b.optionUrl)==null?void 0:M.menuSelect)==null?void 0:le.map(p=>{var _,f,v,A;if(p!=null&&p.includes("[")){let C=(f=(_=p==null?void 0:p.replaceAll("[","").replaceAll("]",""))==null?void 0:_.split(":"))==null?void 0:f[1];p=(A=(v=D.cloneDeep(m))==null?void 0:v.find(ie=>(ie==null?void 0:ie.label)===C))==null?void 0:A.value}return p})),b}),ae.value=(K=D.cloneDeep(ae.value))==null?void 0:K.map(b=>{if((b==null?void 0:b.id)===(a==null?void 0:a.id)){const J={};return T==null||T.forEach(i=>{J[i.name]=i.value}),J.id=b==null?void 0:b.id,J}return b})}}},Jr=async e=>{var E,P,k,U,O,B,z,V,K,x,N,m,T,b,J,i,M,le;if(!e)return;Ke.value=e;const a=D.cloneDeep(u.itemData);let o=a==null?void 0:a.map(p=>{var _;return(p==null?void 0:p.key)==="header"&&((_=p.contents)==null||_.map((f,v)=>{var A,C,ie,G,re,se,$,H,ne,I,Z,Y,pe,Ce,ke,Je,qe,We,al;return f.type=f!=null&&f.type?f.type:(G=(ie=(C=(A=f==null?void 0:f.key)==null?void 0:A.split("$"))==null?void 0:C[1])==null?void 0:ie.split("("))!=null&&G[0]?(se=(re=te.FormType)==null?void 0:re.find(Pe=>{var vl,pl,Fe,rl;return(Pe==null?void 0:Pe.key)===((rl=(Fe=(pl=(vl=f==null?void 0:f.key)==null?void 0:vl.split("$"))==null?void 0:pl[1])==null?void 0:Fe.split("("))==null?void 0:rl[0])}))==null?void 0:se.value:"Input",f.options=f!=null&&f.options?f.options:((ne=(H=($=f==null?void 0:f.key)==null?void 0:$.split("$"))==null?void 0:H[1])==null?void 0:ne.length)>0?(pe=(Y=fa((Z=(I=f==null?void 0:f.key)==null?void 0:I.split("$"))==null?void 0:Z[1]))==null?void 0:Y.split(","))==null?void 0:pe.map(Pe=>({label:Pe,value:Pe})):[],(Ce=f==null?void 0:f.key)!=null&&Ce.includes("$")&&(f.key=(Je=(ke=f==null?void 0:f.key)==null?void 0:ke.split("$"))==null?void 0:Je[0]),f.value=(qe=Object.values(e))==null?void 0:qe[v],f.optionUrl=f!=null&&f.formMenuSelect&&((We=f==null?void 0:f.formMenuSelect)==null?void 0:We.length)>0?{groupSelect:(al=f==null?void 0:f.groupSelect)==null?void 0:al.split(/[::]/).map(Pe=>Pe.trim()),menuSelect:f==null?void 0:f.formMenuSelect,selectRelateType:"",type:(f==null?void 0:f.formType)??(f!=null&&f.groupSelect?"Select":"")}:null,f})),p}),r=we.value,n=(P=(E=D.cloneDeep(o))==null?void 0:E.find(p=>(p==null?void 0:p.key)==="header"))==null?void 0:P.contents;if(n=n==null?void 0:n.filter(p=>(p==null?void 0:p.label)!=="操作"),n.push({label:"操作",type:"operate"}),r=r==null?void 0:r.map(p=>{var _;return p.value=p.value??((_=n==null?void 0:n.find((f,v)=>(f==null?void 0:f.prop)===(p==null?void 0:p.name)))==null?void 0:_.value),p}),!Ol.value)return;let s="";(k=tl.value)!=null&&k.includes("·")&&(tl.value=(O=(U=tl.value)==null?void 0:U.split("·"))==null?void 0:O[0]);let t=(V=(z=(B=D.cloneDeep(o))==null?void 0:B.find(p=>(p==null?void 0:p.key)==="header"))==null?void 0:z.contents)==null?void 0:V.find((p,_)=>{var f,v,A;return(p==null?void 0:p.label)===tl.value||(_==null?void 0:_.toString())===((A=(v=(f=tl.value)==null?void 0:f.split("a"))==null?void 0:v[1])==null?void 0:A.toString())}),d=(K=t==null?void 0:t.optionUrl)==null?void 0:K.menuSelect,c=!0;(m=(N=(x=D.cloneDeep(o))==null?void 0:x.find(p=>(p==null?void 0:p.key)==="header"))==null?void 0:N.contents)==null||m.forEach(p=>{var _,f,v,A,C,ie;c&&((v=(f=(_=p==null?void 0:p.optionUrl)==null?void 0:_.groupSelect)==null?void 0:f[1])!=null&&v.includes("["))&&(s=(C=(A=p==null?void 0:p.optionUrl)==null?void 0:A.groupSelect)==null?void 0:C[1],JSON.stringify(d)===JSON.stringify((ie=p==null?void 0:p.optionUrl)==null?void 0:ie.menuSelect)&&(c=!1))});let y=D.cloneDeep(r);y=y==null?void 0:y.map(p=>{var _,f;return(p==null?void 0:p.type)==="Select"&&((f=(_=p==null?void 0:p.optionUrl)==null?void 0:_.allSelectionContents)==null?void 0:f.length)>0&&(p.optionUrl.contactValue=e),p.value=e==null?void 0:e[p==null?void 0:p.prop],p}),we.value=D.cloneDeep(y);let w=(t==null?void 0:t.menuId)??((J=(b=(T=we.value)==null?void 0:T.find(p=>{var _;return(_=p==null?void 0:p.optionUrl)==null?void 0:_.menuId}))==null?void 0:b.optionUrl)==null?void 0:J.menuId);if((i=t==null?void 0:t.optionUrl)!=null&&i.menuSelect&&Ol.value||w){let p=await ga(t,w),_;if((M=t==null?void 0:t.optionUrl)==null||M.menuSelect,p==null||p.forEach(f=>{var v,A,C,ie,G,re,se,$,H,ne,I,Z,Y,pe,Ce;if(s===((A=(v=t==null?void 0:t.optionUrl)==null?void 0:v.groupSelect)==null?void 0:A[1])&&((G=(ie=(C=t==null?void 0:t.optionUrl)==null?void 0:C.groupSelect)==null?void 0:ie[1])!=null&&G.includes("["))&&((ne=D.cloneDeep(f))==null?void 0:ne[(H=($=(se=(re=t==null?void 0:t.optionUrl)==null?void 0:re.groupSelect)==null?void 0:se[1])==null?void 0:$.replaceAll("[",""))==null?void 0:H.replaceAll("]","")])===(t==null?void 0:t.value)&&(_=f),w){let ke=(Z=(I=we.value)==null?void 0:I.find(qe=>{var We;return(t==null?void 0:t.menuId)===((We=qe==null?void 0:qe.optionUrl)==null?void 0:We.menuId)}))==null?void 0:Z.prop,Je=e[ke];ke!=null&&ke.includes("·")&&(Je=(pe=(Y=e[ke])==null?void 0:Y.split(" "))==null?void 0:pe[0],ke=(Ce=ke==null?void 0:ke.split("·"))==null?void 0:Ce[0]),f[ke]===Je&&(_=f)}}),_){let f=D.cloneDeep(r);f=f==null?void 0:f.map(C=>{var ie,G,re,se,$,H,ne,I,Z,Y,pe,Ce,ke,Je,qe,We,al;return(_!=null&&_[C==null?void 0:C.prop]||_!=null&&_[(se=(re=(G=(ie=C==null?void 0:C.optionUrl)==null?void 0:ie.groupSelect)==null?void 0:G[1])==null?void 0:re.replaceAll("[",""))==null?void 0:se.replaceAll("]","")])&&((ne=(H=($=C==null?void 0:C.optionUrl)==null?void 0:$.groupSelect)==null?void 0:H[1])!=null&&ne.includes("["))&&(C!=null&&C.relatedValueId)&&(C.value=(_==null?void 0:_[C==null?void 0:C.prop])||(_==null?void 0:_[(pe=(Y=(Z=(I=C==null?void 0:C.optionUrl)==null?void 0:I.groupSelect)==null?void 0:Z[1])==null?void 0:Y.replaceAll("[",""))==null?void 0:pe.replaceAll("]","")])),w&&(_!=null&&_[C==null?void 0:C.prop])&&(C!=null&&C.relatedValueId)&&Ie.value==="新增"?C.value=(_==null?void 0:_[C==null?void 0:C.prop])||(_==null?void 0:_[(qe=(Je=(ke=(Ce=C==null?void 0:C.optionUrl)==null?void 0:Ce.groupSelect)==null?void 0:ke[1])==null?void 0:Je.replaceAll("[",""))==null?void 0:qe.replaceAll("]","")]):C.value=(al=(We=we.value)==null?void 0:We.find(Pe=>(Pe==null?void 0:Pe.prop)===(C==null?void 0:C.prop)))==null?void 0:al.value,C}),we.value=D.cloneDeep(f);let v=D.cloneDeep(f);v=v==null?void 0:v.map(C=>{var ie,G,re,se,$,H;return(G=(ie=C==null?void 0:C.optionUrl)==null?void 0:ie.menuSelect)!=null&&G.some(ne=>ne==null?void 0:ne.includes("["))&&(C.optionUrl.oldMenuSelect=(se=(re=D.cloneDeep(C))==null?void 0:re.optionUrl)==null?void 0:se.menuSelect,C.optionUrl.menuSelect=(H=($=C==null?void 0:C.optionUrl)==null?void 0:$.menuSelect)==null?void 0:H.map(ne=>{var I,Z,Y,pe;if(ne!=null&&ne.includes("[")){let Ce=(Z=(I=ne==null?void 0:ne.replaceAll("[","").replaceAll("]",""))==null?void 0:I.split(":"))==null?void 0:Z[1];ne=(pe=(Y=D.cloneDeep(f))==null?void 0:Y.find(ke=>(ke==null?void 0:ke.label)===Ce))==null?void 0:pe.value}return ne})),C}),we.value=v;let A={};(le=we.value)==null||le.forEach(C=>{A[C.prop]=C==null?void 0:C.value}),Ke.value=A}}Ol.value=!1},Wr=e=>e?(e==null?void 0:e.toUpperCase())==="INPUT"?"TEXTAREA":e:"TEXTAREA",Gr=e=>{var s,t;const a=(t=(s=Xe.value)==null?void 0:s.find(d=>(d==null?void 0:d.label)===(e==null?void 0:e.label)))==null?void 0:t.multiple,o=e==null?void 0:e.prop;if((e==null?void 0:e.formType)!="Select")return;ae.value.forEach(d=>{const c=d==null?void 0:d[o];a&&Ra.isString(c)&&(d[o]=[c]),!a&&!Ra.isString(c)&&(d[o]="")})},Ea=(e,a)=>{var o;return a==null||a.forEach(r=>{e[r==null?void 0:r.prop]=r==null?void 0:r.value}),e.children&&((o=e.children)==null?void 0:o.length)>0&&(e.children=e.children.map(r=>Ea(r,a))),e},pa=e=>{var o,r,n,s,t,d;Ll("");const a=(o=we.value)==null?void 0:o.reduce((c,y)=>(c[y.name]=y.value,c),{});if(((r=Object.keys(a))==null?void 0:r.length)>0){Ke.value=a,ul.value="",Tl.value=(n=ae.value)==null?void 0:n.length,kl.value=(s=yl.value)==null?void 0:s.filter(y=>(y==null?void 0:y.label)!=="新增");const c=(d=(t=$e.value)==null?void 0:t.filter(y=>(y==null?void 0:y.label)!=="操作"))==null?void 0:d.map(y=>{var E,P,k;const w=(P=(E=Xe.value)==null?void 0:E.find(U=>(U==null?void 0:U.label)===(y==null?void 0:y.label)))==null?void 0:P.multiple;return Gr(y),{...y,contents:(y==null?void 0:y.options)??[],optionUrl:y!=null&&y.formMenuSelect&&((k=y==null?void 0:y.formMenuSelect)==null?void 0:k.length)>0?{groupSelect:y==null?void 0:y.groupSelect,menuSelect:y==null?void 0:y.formMenuSelect,selectRelateType:"",type:y==null?void 0:y.formType,multiple:w}:null}});X.value=c==null?void 0:c.map(y=>Ea(y,[{prop:"type",value:"edit"},{prop:"columnType",value:Wr(y==null?void 0:y.formType)||(y==null?void 0:y.columnType)}])),e==="createClick"&&Pl(!1)}},Al={START:"开始时间",END:"结束时间",HOURS:"工时"},Hr=(e,a)=>Number(te.dayjs(a).diff(te.dayjs(e),"day",!0).toFixed(1)),wa=e=>{var s;const a=u.itemData,o=(s=a==null?void 0:a.find(t=>(t==null?void 0:t.key)==="header"))==null?void 0:s.contents,r=new Map;return o==null||o.forEach((t,d)=>{const{label:c}=t;r.set(c,d)}),!r.has(Al.START)||!r.has(Al.END)||!r.has(Al.HOURS)?e:e==null?void 0:e.map(t=>{const d=t==null?void 0:t[Al.START],c=t==null?void 0:t[Al.END],y=Hr(d,c);return d&&c&&(t[Al.HOURS]=`${y}天`),t})},Ba=(e,a,o=0)=>{if(o>((a==null?void 0:a.length)??""))return e;const r=a==null?void 0:a[o],n=new Map;for(const t of e){const d=t[r];n.has(d)||n.set(d,[]),n.get(d)&&n.get(d).push(t)}const s=[];for(const[t,d]of n){const[c,...y]=d,w={...c};o+1===((a==null?void 0:a.length)??"")?w.children=d==null?void 0:d.map(E=>(E.level=D.cloneDeep(o)+1,E)).filter((E,P)=>P!==0):y.length>0&&(w.children=Ba(y,a,o+1)),w.level=o,s.push(w)}return s},_a=(e,a,o)=>{var n;if(!(a!=null&&a.contents)||((n=a==null?void 0:a.contents)==null?void 0:n.length)===0)return e;let r=[];return r=Ba(e,a==null?void 0:a.contents,0),r},Ua=(e,a)=>{var k,U,O,B,z,V,K,x,N,m,T,b,J,i,M,le,p,_,f,v,A,C,ie,G,re,se,$,H,ne,I,Z,Y,pe,Ce,ke,Je,qe,We,al,Pe,vl,pl,Fe,rl,ja,La,Pa,$a,Fa,Ka,Va,za;const o=e==null?void 0:e.filter(h=>(h==null?void 0:h.key)==="header");e==null||e.filter(h=>(h==null?void 0:h.key)==="tableIndexColumn")[0];const r=e==null?void 0:e.filter(h=>(h==null?void 0:h.key)==="childTree")[0];let n=!0;if((O=(U=(k=e==null?void 0:e.find(h=>(h==null?void 0:h.key)==="filterAllType"))==null?void 0:k.value)==null?void 0:U.find(h=>(h==null?void 0:h.value)==="onPamButtonContents"))!=null&&O.content){let h=(V=(z=(B=e==null?void 0:e.find(Q=>(Q==null?void 0:Q.key)==="filterAllType"))==null?void 0:B.value)==null?void 0:z.find(Q=>(Q==null?void 0:Q.value)==="onPamButtonContents"))==null?void 0:V.content;h=(K=h==null?void 0:h.split(":"))==null?void 0:K[1],h=(x=h.slice(1,(h==null?void 0:h.length)-1))==null?void 0:x.split(","),n=!!(h!=null&&h.find(Q=>Q==="操作"))}let s=a;const t=e==null?void 0:e.find(h=>(h==null?void 0:h.key)==="page"),d=e==null?void 0:e.find(h=>(h==null?void 0:h.key)==="rowButton"),c=e==null?void 0:e.find(h=>(h==null?void 0:h.key)==="extraButton"),y=e==null?void 0:e.filter(h=>(h==null?void 0:h.key)==="tableContents"),w=e==null?void 0:e.filter(h=>(h==null?void 0:h.key)==="tableIndex");Xe.value=(m=(N=e==null?void 0:e.filter(h=>(h==null?void 0:h.key)==="tableToForm"))==null?void 0:N[0])==null?void 0:m.contents,ya.value=(t==null?void 0:t.contents)??!0;let E=[];ml.value===""?E=o==null?void 0:o[0]:E=(o==null?void 0:o.find(h=>(h==null?void 0:h.selectLabel)==="("+ml.value+")"))??(o==null?void 0:o.find(h=>!(h!=null&&h.selectLabel)));let P=[];if(ml.value===""?P=w==null?void 0:w[0]:P=(w==null?void 0:w.find(h=>(h==null?void 0:h.selectLabel)==="("+ml.value+")"))??(w==null?void 0:w.find(h=>!(h!=null&&h.selectLabel))),((T=E==null?void 0:E.contents)==null?void 0:T.length)>0){let h=[];if(E!=null&&E.contents.some(q=>Array.isArray(q)&&(q==null?void 0:q.find(g=>g.children))))Ul.value===""?h=(J=(b=te.getGradeColumns(E==null?void 0:E.contents,n))==null?void 0:b[0])==null?void 0:J.filter(q=>!Array.isArray(q)):(Ul.value.split("-"),h=(i=te.getGradeColumns(E==null?void 0:E.contents,n))==null?void 0:i[0]);else{let q=E!=null&&E.contents.some(g=>Array.isArray(g))?(M=E==null?void 0:E.contents)==null?void 0:M[0]:E==null?void 0:E.contents;q==null||q.forEach((g,Re)=>{var Ge,Ye,Fl,Kl,Vl;let ze="";(Ye=(Ge=xe.value)==null?void 0:Ge.split("/"))==null||Ye.forEach(nl=>{var zl,ql,El;if(nl!==""){let He=(El=(ql=(zl=nl==null?void 0:nl.split(Le+"updateLoading"))==null?void 0:zl[0])==null?void 0:ql.split(Le+"loading"))==null?void 0:El[0];ze=ze===""?ze+He:ze+"/"+He}}),ze=ze+Le+(g==null?void 0:g.directiveLabel);const je=(Fl=Xe.value)==null?void 0:Fl.find(nl=>(nl==null?void 0:nl.prop)===(g==null?void 0:g.prop));h.push({label:(g==null?void 0:g.label)==="操作"?n?"操作":"":(g==null?void 0:g.label)??"",prop:(g==null?void 0:g.label)==="操作"?"operate":(g==null?void 0:g.prop)??"a"+Re,width:g!=null&&g.width?parseInt(g.width):"",fixed:(g==null?void 0:g.fixed)??void 0,sortable:(g==null?void 0:g.sortable)??!1,filterable:(g==null?void 0:g.filterable)??!1,operable:(g==null?void 0:g.operable)??!1,showSummary:(g==null?void 0:g.showSummary)??!1,align:(g==null?void 0:g.align)??"left",showOverflowTooltip:(g==null?void 0:g.showOverflowTooltip)??!0,isNotDrag:(g==null?void 0:g.isNotDrag)??!1,isEditCol:(g==null?void 0:g.isEditCol)??!1,isOperate:(g==null?void 0:g.isOperate)??!1,id:(g==null?void 0:g.id)??Re,type:(g==null?void 0:g.label)==="操作"?"operate":void 0,formType:(g==null?void 0:g.formType)??(g!=null&&g.groupSelect?"Select":""),isTableColHidden:g==null?void 0:g.isTableColHidden,isFormColHidden:g==null?void 0:g.isFormColHidden,disabled:g==null?void 0:g.disabled,options:(g==null?void 0:g.options)??[],value:(g==null?void 0:g.value)??"",formMenuSelect:(g==null?void 0:g.formMenuSelect)??[],isRoute:(g==null?void 0:g.isRoute)??!1,groupSelect:g!=null&&g.groupSelect?(Kl=g==null?void 0:g.groupSelect)==null?void 0:Kl.replaceAll('"',"").split(":"):[],isMainKey:(g==null?void 0:g.isMainKey)||(g==null?void 0:g.directiveLabel)==="#isMain",columnType:(je==null?void 0:je.type)||(g==null?void 0:g.columnType)||"TEXTAREA",directiveLabel:g==null?void 0:g.directiveLabel,directiveColor:(g==null?void 0:g.directiveColor)??!1,isExistChild:!!(g!=null&&g.directiveLabel&&!(s!=null&&s[ze])&&!((Vl=g==null?void 0:g.directiveLabel)!=null&&Vl.includes("@"))&&(g==null?void 0:g.directiveLabel)!=="#isMain"),childPath:(g==null?void 0:g.directiveLabel)!=="#isMain"?ze:void 0,allSelectionContents:(g==null?void 0:g.allSelectionContents)??[],selectFilter:g==null?void 0:g.selectFilter,menuId:g==null?void 0:g.menuId,filterContent:g==null?void 0:g.filterContent,relatedValueId:g==null?void 0:g.relatedValueId})})}X.value=te.getNewColumnChild(h),oa.value=te.getNewColumnChild(h),ee.value=(le=X.value)==null?void 0:le.map(q=>q==null?void 0:q.label),ge.value=(p=X.value)==null?void 0:p.every(q=>q==null?void 0:q.filterable),me.value=(_=X.value)==null?void 0:_.every(q=>q==null?void 0:q.operable),hl.value=(f=X.value)==null?void 0:f.every(q=>q==null?void 0:q.sortable);let Q=(A=(v=te.getAllLeafNodes(X.value))==null?void 0:v.filter(q=>(q==null?void 0:q.type)!=="operate"))==null?void 0:A.map((q,g)=>({prop:(q==null?void 0:q.prop)??"a"+g,column:q.label}));Ze.value=Q;let _e=[];ml.value===""?_e=y==null?void 0:y[0]:_e=(y==null?void 0:y.find(q=>(q==null?void 0:q.selectLabel)==="("+ml.value+")"))??(y==null?void 0:y.find(q=>!(q!=null&&q.selectLabel)));let xl=Array.isArray((C=_e==null?void 0:_e.contents)==null?void 0:C[0])&&((ie=_e==null?void 0:_e.contents)!=null&&ie[0].every(q=>Array.isArray(q)))?(G=_e==null?void 0:_e.contents)==null?void 0:G[0]:_e==null?void 0:_e.contents;P!=null&&P.contents&&((re=P==null?void 0:P.contents)==null?void 0:re.length)!==0&&(xl=(se=D.cloneDeep(xl))==null?void 0:se.map((q,g)=>{if(!Array.isArray(q)){let Re={};for(let ze in q)ze!=="id"&&ze!=="index"&&(Re[ze]=q[ze]);q=Object.values(Re)}return q}));const en=!!(($=X.value)!=null&&$.find(q=>q.prop==="index"));xl=Ga(xl,P==null?void 0:P.contents,en);const $l=[];xl==null||xl.forEach((q,g)=>{var ze;let Re={};if(Array.isArray(q)){let je=[];q==null||q.filter(Ge=>!(Ge!=null&&Ge.id)).forEach((Ge,Ye)=>{var Fl,Kl,Vl,nl,zl,ql;if((Fl=Q==null?void 0:Q[Ye])!=null&&Fl.prop&&!Array.isArray(Ge)){let El={};El[Q[Ye].column]=Ge,De!=null&&De.value&&((Kl=De==null?void 0:De.value)==null?void 0:Kl.length)>0&&((Vl=De==null?void 0:De.value)!=null&&Vl.find(He=>JSON.stringify(He==null?void 0:He[0])===JSON.stringify(El)))&&(je=(nl=De==null?void 0:De.value)==null?void 0:nl.find(He=>JSON.stringify(He==null?void 0:He[0])===JSON.stringify(El))),je&&je.length>0?Re[Q[Ye].prop]=je!=null&&je.find(He=>{var Rl;return((Rl=Object.keys(He))==null?void 0:Rl[0])===Q[Ye].column})?(zl=je==null?void 0:je.find(He=>{var Rl;return((Rl=Object.keys(He))==null?void 0:Rl[0])===Q[Ye].column}))==null?void 0:zl[Q[Ye].column]:Ge:Re[Q[Ye].prop]=Ge}else Array.isArray(Ge)&&((ql=Q[Ye])!=null&&ql.prop?Re[Q[Ye].prop]=Ge:Re.children=ha(Ge,Q))})}else Re=q;Array.isArray(q)&&q.some(je=>je==null?void 0:je.id)?$l.push(Object.assign(Re,{id:(ze=q==null?void 0:q.find(je=>je.id))==null?void 0:ze.id})):Re.id?$l.push(Re):$l.push(Object.assign(Re,{id:g.toString()}))}),ae.value=_a($l,r,X.value),Gl.value=$l,(H=Gl.value)==null||H.forEach(q=>{var g;(g=Hl.value)==null||g.set(q.id,q)})}else X.value=[],$e.value=[],ae.value=[],Gl.value=[],Hl.value=new Map;if(((ne=d==null?void 0:d.contents)==null?void 0:ne.length)>0)if((Y=(Z=(I=e==null?void 0:e.find(h=>(h==null?void 0:h.key)==="filterAllType"))==null?void 0:I.value)==null?void 0:Z.find(h=>(h==null?void 0:h.value)==="onRowButtonContents"))!=null&&Y.content){let h=(ke=(Ce=(pe=e==null?void 0:e.find(Q=>(Q==null?void 0:Q.key)==="filterAllType"))==null?void 0:pe.value)==null?void 0:Ce.find(Q=>(Q==null?void 0:Q.value)==="onButtonContents"))==null?void 0:ke.content;h=(Je=h==null?void 0:h.split(":"))==null?void 0:Je[1],h=(qe=h.slice(1,(h==null?void 0:h.length)-1))==null?void 0:qe.split(","),gl.value=(We=d==null?void 0:d.contents)==null?void 0:We.filter(Q=>h==null?void 0:h.find(_e=>_e===(Q==null?void 0:Q.label)))}else gl.value=d==null?void 0:d.contents;else gl.value=[];if(((al=c==null?void 0:c.contents)==null?void 0:al.length)>0)if((pl=(vl=(Pe=e==null?void 0:e.find(h=>(h==null?void 0:h.key)==="filterAllType"))==null?void 0:Pe.value)==null?void 0:vl.find(h=>(h==null?void 0:h.value)==="onButtonContents"))!=null&&pl.content){let h=(ja=(rl=(Fe=e==null?void 0:e.find(Q=>(Q==null?void 0:Q.key)==="filterAllType"))==null?void 0:Fe.value)==null?void 0:rl.find(Q=>(Q==null?void 0:Q.value)==="onButtonContents"))==null?void 0:ja.content;h=(La=h==null?void 0:h.split(":"))==null?void 0:La[1],h=(Pa=h.slice(1,(h==null?void 0:h.length)-1))==null?void 0:Pa.split(","),kl.value=($a=c==null?void 0:c.contents)==null?void 0:$a.filter(Q=>h==null?void 0:h.find(_e=>_e===(Q==null?void 0:Q.label))),yl.value=(Fa=c==null?void 0:c.contents)==null?void 0:Fa.filter(Q=>h==null?void 0:h.find(_e=>_e===(Q==null?void 0:Q.label))),be.value=!!(h!=null&&h.find(Q=>Q==="搜索")),Ae.value=!!(h!=null&&h.find(Q=>Q==="块状显示"))}else kl.value=c==null?void 0:c.contents,yl.value=c==null?void 0:c.contents;else kl.value=[],yl.value=[];Tl.value=((Ka=ae==null?void 0:ae.value)==null?void 0:Ka.length)??0,wa(ae.value),Yl.value=ae.value,el.value&&(X.value=(za=(Va=$e.value)==null?void 0:Va.filter(h=>(h==null?void 0:h.label)!=="操作"))==null?void 0:za.map(h=>{var Q;return{...h,type:"edit",optionUrl:h!=null&&h.formMenuSelect&&((Q=h==null?void 0:h.formMenuSelect)==null?void 0:Q.length)>0?{groupSelect:h==null?void 0:h.groupSelect,menuSelect:h==null?void 0:h.formMenuSelect,selectRelateType:"",type:h==null?void 0:h.formType}:null}}),pa())};l.watch(()=>[u.itemData,ml.value,ar.value,Ul.value,De==null?void 0:De.value],async()=>{var e,a,o,r,n,s;if((e=u==null?void 0:u.itemData)!=null&&e.find(t=>(t==null?void 0:t.key)==="columnPath")&&!((a=Bl.value)!=null&&a.find(t=>{var d,c;return(t==null?void 0:t.key)===((c=(d=u==null?void 0:u.itemData)==null?void 0:d.find(y=>(y==null?void 0:y.key)==="columnPath"))==null?void 0:c.contents)}))){let t=Bl.value,d={key:(r=(o=u==null?void 0:u.itemData)==null?void 0:o.find(c=>(c==null?void 0:c.key)==="columnPath"))==null?void 0:r.contents,value:(s=(n=u==null?void 0:u.itemData)==null?void 0:n.find(c=>(c==null?void 0:c.key)==="columnUsingPath"))==null?void 0:s.contents};t!=null&&t.find(c=>(c==null?void 0:c.key)===(d==null?void 0:d.key))?t=t==null?void 0:t.map(c=>((c==null?void 0:c.key)===(d==null?void 0:d.key)&&(c.value=d.value),c)):t.push(d),Ee.setTableViewContents(t)}Ua(u.itemData,u.allMapContents)},{deep:!0,immediate:!0}),l.watch(()=>u==null?void 0:u.operatingForm,e=>{e!=null&&e.form&&(Ll(e==null?void 0:e.form),Ie.value=e==null?void 0:e.dialogTitle,Xl.value=!0,sl.value=!0)},{immediate:!0,deep:!0});const Oa=()=>{var e;(e=Te.value)!=null&&e.includes("read")&&(el.value=!el.value)},Ir=()=>{Zl.value=!Zl.value};l.watch(()=>{var e;return(e=u==null?void 0:u.config)==null?void 0:e.viewport},e=>{var a;Te.value=e,(e==null?void 0:e.length)===0?el.value=!1:(e!=null&&e.includes("read")||(el.value=!0),e!=null&&e.includes("edit")||(el.value=!1)),ve.value=((a=u==null?void 0:u.config)==null?void 0:a.showIndex)||el.value},{immediate:!0}),l.watch(()=>el.value,e=>{var a;e?(pa("viewChange"),Ee.setCacheUpdatingData(null)):(kl.value=yl.value,X.value=oa.value,wl.value&&(Ee.setTableLoading(u==null?void 0:u.index),ye("change",wl.value))),ue.value=e,ve.value=e||((a=u==null?void 0:u.config)==null?void 0:a.showIndex)},{immediate:!0}),l.watch(()=>{var e;return(e=ba.value)==null?void 0:e.length},e=>{e===0&&(fe.currentPage=1)}),l.watch(()=>u==null?void 0:u.compNames,e=>{Be.contents=[{label:"列表名",prop:"groupName",name:"列表名",type:"select",value:"",id:0,contents:e||[],width:1}]},{immediate:!0}),l.ref(!1);const Qr=(e,a)=>{var o;pa("createClick"),a===fe.pageSize&&(fe.currentPage=Math.ceil(((o=ae.value)==null?void 0:o.length)/fe.pageSize))},Xr=(e,a,o)=>{var r;Aa(o,e,a),Ke.value=D.cloneDeep(e),ul.value=e==null?void 0:e.id,Tl.value=(r=ae.value)==null?void 0:r.length,Ie.value=typeof(e==null?void 0:e.id)=="string"?"新增":"编辑",Pl(!1)},Ve=e=>{var c,y,w,E,P,k,U,O,B,z;const{row:a,column:o,item:r,slotData:n}=e;let s=a!=null&&a[o==null?void 0:o.prop]||(a==null?void 0:a[o==null?void 0:o.prop])===0?((y=(c=a==null?void 0:a[o==null?void 0:o.prop])==null?void 0:c[0])==null?void 0:y.contents)??((a==null?void 0:a[o==null?void 0:o.prop])===0?"0":a==null?void 0:a[o==null?void 0:o.prop]):((E=(w=a==null?void 0:a[r==null?void 0:r.prop])==null?void 0:w[0])==null?void 0:E.contents)??(a==null?void 0:a[r==null?void 0:r.prop])??((k=(P=n==null?void 0:n[r==null?void 0:r.prop])==null?void 0:P[0])==null?void 0:k.contents)??(n==null?void 0:n[r==null?void 0:r.prop])??((B=(O=a==null?void 0:a[(U=r==null?void 0:r.child)==null?void 0:U.prop])==null?void 0:O[0])==null?void 0:B.contents)??(a==null?void 0:a[(z=r==null?void 0:r.child)==null?void 0:z.prop]),d=Array.isArray(s)&&!(s!=null&&s.every(V=>typeof V=="string"||typeof V=="number"))?"查看":s;return d=Array.isArray(d)?d.join(","):d,d},Yr=e=>{var y,w,E,P,k,U,O,B,z,V;const{row:a,column:o,item:r,slotData:n}=e;let s=a!=null&&a[o==null?void 0:o.prop]?((w=(y=a==null?void 0:a[o==null?void 0:o.prop])==null?void 0:y[0])==null?void 0:w.contents)??(a==null?void 0:a[o==null?void 0:o.prop]):((P=(E=a==null?void 0:a[r==null?void 0:r.prop])==null?void 0:E[0])==null?void 0:P.contents)??(a==null?void 0:a[r==null?void 0:r.prop])??((U=(k=n==null?void 0:n[r==null?void 0:r.prop])==null?void 0:k[0])==null?void 0:U.contents)??(n==null?void 0:n[r==null?void 0:r.prop])??((z=(B=a==null?void 0:a[(O=r==null?void 0:r.child)==null?void 0:O.prop])==null?void 0:B[0])==null?void 0:z.contents)??(a==null?void 0:a[(V=r==null?void 0:r.child)==null?void 0:V.prop]);const d=Array.isArray(s)&&!(s!=null&&s.every(K=>typeof K=="string"||typeof K=="number")),c=Array.isArray(s)&&(s==null?void 0:s.find(K=>K==null?void 0:K.url));return d&&c},Zr=(e,a)=>e.find(o=>Object.values(o).some(r=>r===a));return l.watch(()=>Xa.value,async e=>{if(e){Me.setContentLoading(!0),await l.nextTick();const a=Zr(ae.value,e==null?void 0:e.data);if(!a)return Me.setContentLoading(!1);await Sa(e==null?void 0:e.data,null,a,{data:e==null?void 0:e.data,isMainKey:!0}),Me.setContentLoading(!1)}},{deep:!0,immediate:!0}),l.watch(()=>u==null?void 0:u.cacheNewData,e=>{var a;e&&(Array.isArray(e)||(e==null?void 0:e.compId)===(u==null?void 0:u.index)&&(ae.value=(a=ae.value)==null?void 0:a.map(o=>{var r;return(o==null?void 0:o.id)===((r=e==null?void 0:e.data)==null?void 0:r.id)?{...o,id:e==null?void 0:e.resId}:o})))},{immediate:!0,deep:!0}),(e,a)=>{var y,w,E,P;const o=l.resolveComponent("svg-icon"),r=l.resolveComponent("el-popover"),n=l.resolveComponent("el-switch"),s=l.resolveComponent("el-checkbox"),t=l.resolveComponent("el-checkbox-group"),d=l.resolveComponent("el-button"),c=l.resolveComponent("LookComponent");return l.openBlock(),l.createElementBlock("div",_n,[va.value?(l.openBlock(),l.createBlock(ol.ssTable,{id:"excel-table",pageObj:fe,showIndex:ve.value,isTree:(y=F.compItem)==null?void 0:y.isTree,summaryInfo:ce,columns:X.value,defaultSort:de,isCardViewport:Zl.value,checkedColumns:ee.value,key:ua.value+JSON.stringify(X.value),tableData:ba.value,isEditViewport:el.value,isShowPagination:ya.value,isShowEdit:!1,isShowDelete:!1,allowSelect:ue.value,onDbClickRow:Ar,extraButton:kl.value,rowButton:gl.value,cacheExtraButtons:yl.value,isClearSelection:((w=ll.value)==null?void 0:w.length)===0,onDoCurrentChange:sr,onDoSizeChange:tr,onContentClick:Sa,onRowClick:wr,onSelectChange:yr,onCellChange:Xr,onChange:Aa,onPreview:ka,onSubmitEditingTable:gr,onHandleColEditChange:fr,onHandleColTypeChange:hr,onClickButton:aa},l.createSlots({headerButton:l.withCtx(k=>{var U,O;return[F.showHeader?(l.openBlock(),l.createBlock(kn,{key:0,pageLayout:F.pageLayout,lockingPage:l.unref(Wl)===l.unref(xe),filterValues:ma.value,selectNums:(U=ll.value)==null?void 0:U.length,dataNums:(O=ae.value)==null?void 0:O.length,compName:F.compName,isDevMode:F.isDevMode,buttons:k.buttons,onButtonClick:a[1]||(a[1]=B=>aa(B,"",{})),columns:X.value,onFilter:Nr,onGetImportData:dr,level:F.level,filterShow:be.value},null,8,["pageLayout","lockingPage","filterValues","selectNums","dataNums","compName","isDevMode","buttons","columns","level","filterShow"])):l.createCommentVNode("",!0)]}),viewport:l.withCtx(()=>{var k,U,O,B;return[((k=ae.value)==null?void 0:k.length)>0&&F.allowOperate&&Ae.value?(l.openBlock(),l.createElementBlock("div",Mn,[(U=Te.value)!=null&&U.includes("read")&&((O=Te.value)!=null&&O.includes("edit"))&&((B=gl.value)!=null&&B.some(z=>(z==null?void 0:z.label)==="编辑"))&&!Zl.value&&l.unref(Wl)!==l.unref(xe)?(l.openBlock(),l.createElementBlock("span",{key:0,title:"编辑表格",onClick:Oa},[l.createVNode(o,{name:"editTable",class:"view-icon"})])):l.createCommentVNode("",!0),l.createElementVNode("span",{title:"卡片视图",onClick:Ir},[l.createVNode(o,{name:"cardViewport",class:"view-icon"})])])):l.createCommentVNode("",!0)]}),rowCreate:l.withCtx(({row:k,index:U})=>[l.createElementVNode("span",{title:"新增",class:"row-create-wrap",onClick:O=>Qr(k,U)},[l.createVNode(o,{name:"rowCreate",style:{width:"10px",height:"10px"}})],8,jn)]),operateCol:l.withCtx(()=>[l.createVNode(r,{title:"选择显示列信息",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:Rr},{reference:l.withCtx(()=>[l.createElementVNode("span",Ln,[l.createVNode(o,{name:"operate",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),default:l.withCtx(()=>[l.createElementVNode("div",Pn,[a[12]||(a[12]=l.createElementVNode("div",{class:"group-title"},"表格操作",-1)),l.createVNode(n,{"model-value":hl.value,"active-text":"排序","inactive-text":"",style:{"margin-right":"8px"},onChange:a[3]||(a[3]=k=>sa(k,"sortable"))},null,8,["model-value"]),l.createVNode(n,{"model-value":ge.value,"active-text":"筛选","inactive-text":"",style:{"margin-right":"8px"},onChange:a[4]||(a[4]=k=>sa(k,"filterable"))},null,8,["model-value"]),l.createVNode(n,{"model-value":me.value,"active-text":"编辑所有表头","inactive-text":"",onChange:a[5]||(a[5]=k=>sa(k,"operable"))},null,8,["model-value"]),a[13]||(a[13]=l.createElementVNode("div",{class:"group-title"},"表格列操作",-1)),l.createVNode(t,{modelValue:ee.value,"onUpdate:modelValue":a[6]||(a[6]=k=>ee.value=k),style:{height:"100%"},min:2,ref_key:"checkboxGroupRef",ref:L},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(Ml.value,k=>(l.openBlock(),l.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:k.label},[l.createVNode(s,{value:k.label,style:{width:"100%",marginRight:0}},{default:l.withCtx(()=>[l.createElementVNode("span",{title:k.label,style:{display:"inline-block",width:"250px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},l.toDisplayString(k.label),9,$n)]),_:2},1032,["value"]),l.createVNode(r,{title:"列操作",placement:"left",teleported:!1,trigger:"hover"},{reference:l.withCtx(()=>[l.createVNode(o,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:l.withCtx(()=>{var U;return[l.createElementVNode("div",Fn,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((U=Object.keys(k))==null?void 0:U.filter(O=>{var B;return(B=Qe.value)==null?void 0:B.find(z=>(z==null?void 0:z.value)===O)}),O=>{var B,z;return l.openBlock(),l.createElementBlock("div",{key:O},[l.createVNode(n,{"model-value":k==null?void 0:k[O],"active-text":(z=(B=Qe.value)==null?void 0:B.find(V=>(V==null?void 0:V.value)===O))==null?void 0:z.label,onChange:V=>kr(V,O,k)},null,8,["model-value","active-text","onChange"])])}),128))])]}),_:2},1024),l.createElementVNode("span",Kn,[l.createVNode(o,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:1},8,["modelValue"])])]),_:1})]),content:l.withCtx(k=>{var U,O,B,z,V,K,x,N,m,T,b,J,i,M,le,p,_,f;return[Yr(k)?(l.openBlock(),l.createBlock(r,{key:0,"popper-class":"file-popover",placement:"right",trigger:"hover",effect:"light",width:"auto"},{reference:l.withCtx(()=>[l.createElementVNode("span",Vn,l.toDisplayString(Ve(k)),1)]),default:l.withCtx(()=>{var v,A;return[l.createElementVNode("div",zn,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((A=k==null?void 0:k.row)==null?void 0:A[(v=k==null?void 0:k.column)==null?void 0:v.prop],C=>(l.openBlock(),l.createElementBlock("div",qn,[l.createElementVNode("div",{class:"prop-url",title:la(C),onClick:ie=>xr(C)},l.toDisplayString(la(C)),9,Rn),l.createElementVNode("div",{class:"prop-download",onClick:ie=>Dr(C)}," 下载 ",8,Jn)]))),256))])]}),_:2},1024)):(l.openBlock(),l.createElementBlock("div",{key:1,style:l.normalizeStyle({color:!Array.isArray(Ve(k))&&((O=(U=Ve(k))==null?void 0:U.toString())!=null&&O.includes(".txt")||(z=(B=Ve(k))==null?void 0:B.toString())!=null&&z.includes(".cpt")||(K=(V=Ve(k))==null?void 0:V.toString())!=null&&K.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray(Ve(k))&&((N=(x=Ve(k))==null?void 0:x.toString())!=null&&N.includes(".txt")||(T=(m=Ve(k))==null?void 0:m.toString())!=null&&T.includes(".cpt")||(J=(b=Ve(k))==null?void 0:b.toString())!=null&&J.includes(".cyd"))?"underline":"",cursor:!Array.isArray(Ve(k))&&((M=(i=Ve(k))==null?void 0:i.toString())!=null&&M.includes(".txt")||(p=(le=Ve(k))==null?void 0:le.toString())!=null&&p.includes(".cpt")||(f=(_=Ve(k))==null?void 0:_.toString())!=null&&f.includes(".cyd"))?"pointer":"",marginLeft:(k==null?void 0:k.colIndex)===0?`${((k==null?void 0:k.level)??0)*20}px`:0}),onClick:v=>ur(Ve(k))},l.toDisplayString(Ve(k)===0?"0":Ve(k)),13,Wn))]}),_:2},[((E=gl.value)==null?void 0:E.length)>0&&l.unref(Wl)!==l.unref(xe)?{name:"actions",fn:l.withCtx(({item:k})=>[l.createVNode(r,{title:"",placement:"left-start","popper-class":"menu-operate-popover"},{reference:l.withCtx(()=>[l.createVNode(o,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"},onClick:a[0]||(a[0]=l.withModifiers(()=>{},["stop"]))})]),default:l.withCtx(()=>[l.createElementVNode("div",Un,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(Cr(gl.value,k),(U,O)=>(l.openBlock(),l.createElementBlock("div",{class:"menu-config-item",key:O,onClick:l.withModifiers(B=>aa(U==null?void 0:U.label,k,{extra:U}),["stop"])},[l.createElementVNode("div",{style:l.normalizeStyle({color:U==null?void 0:U.textColor}),class:"extra-button-label"},l.toDisplayString(U==null?void 0:U.label),5)],8,On))),128))])]),_:2},1024)]),key:"0"}:void 0,((P=ae.value)==null?void 0:P.length)>0?{name:"batchButton",fn:l.withCtx(k=>[l.withDirectives(l.createVNode(Sn,{lockingPage:l.unref(Wl)===l.unref(xe),buttons:k.buttons,selectTableItems:ll.value,onButtonClick:a[2]||(a[2]=U=>aa(U,"",{}))},null,8,["lockingPage","buttons","selectTableItems"]),[[l.vShow,ue.value]]),l.withDirectives(l.createElementVNode("div",null,null,512),[[l.vShow,!ue.value]])]),key:"1"}:void 0]),1032,["pageObj","showIndex","isTree","summaryInfo","columns","defaultSort","isCardViewport","checkedColumns","tableData","isEditViewport","isShowPagination","allowSelect","extraButton","rowButton","cacheExtraButtons","isClearSelection"])):l.createCommentVNode("",!0),l.createVNode(Jl.ssDialog,{title:Ie.value,visible:sl.value,width:nr.value,onBeforeDestroy:mr,style:{height:"74%"}},{default:l.withCtx(()=>[l.createElementVNode("div",Gn,[l.createVNode(ol.ssForm,{rowContents:we.value,isEnableWrap:!1,showOperator:!1,onChange:Jr,onClickTrigger:Sr,isEdit:Il.value,onBlurChange:vr,onCreate:br},null,8,["rowContents","isEdit"])])]),footer:l.withCtx(()=>[Xl.value?(l.openBlock(),l.createElementBlock("div",Hn,[l.createVNode(d,{onClick:a[7]||(a[7]=k=>sl.value=!1),id:"themeBorderButton"},{default:l.withCtx(()=>a[14]||(a[14]=[l.createTextVNode(l.toDisplayString("取消"))])),_:1,__:[14]}),l.createVNode(d,{class:"ok-button",onClick:a[8]||(a[8]=k=>Pl(!0)),id:"themeButton"},{default:l.withCtx(()=>a[15]||(a[15]=[l.createTextVNode(l.toDisplayString("确认"))])),_:1,__:[15]})])):l.createCommentVNode("",!0)]),_:1},8,["title","visible","width"]),l.createVNode(Jl.ssDialog,{title:Ie.value,visible:Ql.value,width:ia.value,onBeforeDestroy:a[10]||(a[10]=k=>Ql.value=!1)},{default:l.withCtx(()=>[l.createVNode(Nn)]),footer:l.withCtx(()=>[l.createElementVNode("div",In,[l.createVNode(d,{onClick:a[9]||(a[9]=k=>Ql.value=!1),class:"cancel-button",id:"themeBorderButton"},{default:l.withCtx(()=>a[16]||(a[16]=[l.createTextVNode(l.toDisplayString("取消"))])),_:1,__:[16]}),l.createVNode(d,{class:"ok-button",onClick:Br,id:"themeButton"},{default:l.withCtx(()=>a[17]||(a[17]=[l.createTextVNode(l.toDisplayString("确认"))])),_:1,__:[17]})])]),_:1},8,["title","visible","width"]),bl.value?(l.openBlock(),l.createBlock(ol.ssFilePreview,{key:1,fileDataList:Dl.value,onDestroy:Er},null,8,["fileDataList"])):l.createCommentVNode("",!0),Ue.value?(l.openBlock(),l.createBlock(Jl.ssDialog,{key:2,visible:Ue.value,onBeforeDestroy:zr,style:{height:"80vh",width:"80vw"},"body-class":"three-dialog-body","footer-class":"three-dialog-footer"},{default:l.withCtx(()=>[l.createVNode(qa.ThreeViewerHost,{files:_l.value,threeData:S.value},null,8,["files","threeData"])]),_:1},8,["visible"])):l.createCommentVNode("",!0),l.createVNode(Jl.ssDialog,{visible:e.componentVisible,onBeforeDestroy:a[11]||(a[11]=k=>e.componentVisible=!1),width:ia.value,style:{height:"70vh"}},{default:l.withCtx(()=>[l.createVNode(c,{dialogItem:Sl.value},null,8,["dialogItem"])]),_:1},8,["visible","width"]),l.createVNode(Jl.ssDialog,{title:Be.title,visible:Be.show,width:Be.width,onBeforeDestroy:Lr},{default:l.withCtx(()=>[l.createElementVNode("div",Qn,[l.createVNode(ol.ssForm,{rowContents:Be==null?void 0:Be.contents,formRules:Be==null?void 0:Be.formRules,showOperator:!1,buttonValue:Be.buttonValue,isEdit:Il.value,isStartJustify:!1,isEnableWrap:!1,onOnButtonClick:Pr},null,8,["rowContents","formRules","buttonValue","isEdit"])])]),_:1},8,["title","visible","width"])])}}},Yn=na._export_sfc(Xn,[["__scopeId","data-v-ca389f71"]]);exports.formGetOptions=fa;exports.getSelectRow=ga;exports.ssTable=Yn;exports.useFormComp=Qa;exports.useFormToTableComp=Wa;
@@ -1,17 +1,17 @@
1
- import { a as Pr, u as $r, f as Fr, g as Kr, s as jr } from "./index-CDT7oAPk.js";
1
+ import { a as Pr, u as $r, f as Fr, g as Kr, s as jr } from "./index-CN-T4mBv.js";
2
2
  import { computed as Ut, ref as ce, watch as wt, onUnmounted as Nr, resolveComponent as Mt, createElementBlock as at, openBlock as Ee, createVNode as Te, createBlock as Tt, createCommentVNode as fa, withCtx as Me, createElementVNode as se, Fragment as Ht, renderList as Xt, toDisplayString as ht, nextTick as Ka, createTextVNode as zt, defineComponent as ga, resolveDynamicComponent as Na, onMounted as on, unref as Ot, reactive as Ba, renderSlot as zn, createSlots as Ur, mergeProps as vl, normalizeStyle as an, withModifiers as jn, defineAsyncComponent as Wr, defineProps as Hr, getCurrentInstance as Vr, inject as _o, shallowRef as qr, toRef as Gr, onBeforeMount as hl, watchEffect as Xr, onBeforeUnmount as gl, normalizeClass as Co, getCurrentScope as Yr, onScopeDispose as Jr, provide as So, toRefs as Do, withDirectives as Zr, vShow as Qr } from "vue";
3
3
  import { bO as es, l as oi, bP as ts, bQ as as, bR as ns, s as Zt, p as Yt, u as Ai, c as K, E as Gt, b as Wi, g as la, e as gn, bJ as li, bK as Ln, f as qa, bI as Oi, h as oo, bS as is, bT as os, bN as ls } from "./index-KFoWHXov.js";
4
- import { d as ca, b as lo, e as yl, E as ml, f as bl, h as rs, c as kl, i as Zn } from "./index-DGxGOZ6v.js";
5
- import { a as ro, R as ss, S as Hi, I as us, g as Ft, T as cs, U as so, V as Vi, W as ha, X as Un, Y as Va, Z as On, _ as Pi, $ as fs, o as ds, N as $i, a0 as ps, a1 as Eo, a2 as vs, a3 as gi, b as To, Q as wl, a4 as ui, a5 as hs, a6 as gs, a7 as ys, a8 as Di, a9 as ms, u as bs, p as ks } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CILHNQks.js";
6
- import { s as pa } from "./index-CZ4SLhhh.js";
7
- import { a as ws, T as xs } from "./threeViewerHost-BP1y_Zyu.js";
4
+ import { d as ca, b as lo, e as yl, E as ml, f as bl, h as rs, c as kl, i as Zn } from "./index-C8X6R7q5.js";
5
+ import { a as ro, R as ss, S as Hi, I as us, g as Ft, T as cs, U as so, V as Vi, W as ha, X as Un, Y as Va, Z as On, _ as Pi, $ as fs, o as ds, N as $i, a0 as ps, a1 as Eo, a2 as vs, a3 as gi, b as To, Q as wl, a4 as ui, a5 as hs, a6 as gs, a7 as ys, a8 as Di, a9 as ms, u as bs, p as ks } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-9XvSEGdS.js";
6
+ import { s as pa } from "./index-BQKz83nF.js";
7
+ import { a as ws, T as xs } from "./threeViewerHost-DGNd3WrL.js";
8
8
  import { a as Mn, u as Hn, E as ja, ac as _s } from "./index-Dh_LOm8w.js";
9
9
  import { _ as Jt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  import { i as Io } from "./isString-BcJYo5aE.js";
11
11
  import { _ as Ao } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
12
- import { a as Cs, s as Ss } from "./index-d47CvCXv.js";
12
+ import { a as Cs, s as Ss } from "./index-BYDeJDc_.js";
13
13
  import xl from "./index-rlStojTL.js";
14
- import { s as Ds } from "./index-CrrLYGdV.js";
14
+ import { s as Ds } from "./index-DHZH0zPO.js";
15
15
  import { S as Es } from "./index-BHtNKL1L.js";
16
16
  import { useRouter as Ts } from "vue-router";
17
17
  import { a as Is, e as As, f as Os, g as zs, h as Bs } from "./index-CAPx0_D4.js";
@@ -6727,7 +6727,7 @@ function $d() {
6727
6727
  }(xi)), xi.exports;
6728
6728
  }
6729
6729
  $d();
6730
- const qi = Wr(() => import("./index-DGxGOZ6v.js").then((a) => a.k));
6730
+ const qi = Wr(() => import("./index-C8X6R7q5.js").then((a) => a.k));
6731
6731
  qi.install = (a) => {
6732
6732
  a.component("ssMenu", qi);
6733
6733
  };
@@ -1,7 +1,7 @@
1
1
  import { ref as i, computed as j, reactive as ie, nextTick as B, watch as ye } from "vue";
2
2
  import { u as be, a as he, ad as Ce } from "./index-Dh_LOm8w.js";
3
3
  import { c as U, s as Ie, g as J, bU as ke, E as S, p as L, h as ae, e as oe, bL as Te, f as Me } from "./index-KFoWHXov.js";
4
- import { u as Se } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CILHNQks.js";
4
+ import { u as Se } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-9XvSEGdS.js";
5
5
  const F = he(L), ne = Se(L), C = be(L), { menus: ue, configMenu: R, activeMenuPath: $, cacheStructures: K } = Ie(C), q = i(!1), se = j(() => {
6
6
  var e, t;
7
7
  return [
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),u=require("./index-CPsiq06e.cjs"),n=require("./index-C5woD5Cw.cjs"),a=require("./index-y1mE3_ai.cjs"),s={class:"routerPage-wrapper"},i=t.defineComponent({__name:"index",setup(d){const o=n.useMenuState(),{activeMenuPath:c}=a.storeToRefs(o),r=a.useLoginState(),e=t.reactive({...n.State});return t.onMounted(async()=>{r.getModelSecretAsync(),e.structureId=await n.getActivePageStructureId(c.value)}),(l,g)=>(t.openBlock(),t.createElementBlock("div",s,[t.createVNode(u.ssTable,{index:e.structureId,compName:e.compName,itemData:e.pageData,changedContent:e.changedRow,onChange:e.handleItemDataChange,onOnButtonClick:e.clickRowButton},null,8,["index","compName","itemData","changedContent","onChange","onOnButtonClick"])]))}});exports.default=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),u=require("./index-dRtOvQRS.cjs"),n=require("./index-C5woD5Cw.cjs"),a=require("./index-y1mE3_ai.cjs"),s={class:"routerPage-wrapper"},i=t.defineComponent({__name:"index",setup(d){const o=n.useMenuState(),{activeMenuPath:c}=a.storeToRefs(o),r=a.useLoginState(),e=t.reactive({...n.State});return t.onMounted(async()=>{r.getModelSecretAsync(),e.structureId=await n.getActivePageStructureId(c.value)}),(l,g)=>(t.openBlock(),t.createElementBlock("div",s,[t.createVNode(u.ssTable,{index:e.structureId,compName:e.compName,itemData:e.pageData,changedContent:e.changedRow,onChange:e.handleItemDataChange,onOnButtonClick:e.clickRowButton},null,8,["index","compName","itemData","changedContent","onChange","onOnButtonClick"])]))}});exports.default=i;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),B=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-WKD3Dboe.cjs"),a=require("./index-y1mE3_ai.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),T="ElUpload";class R extends Error{constructor(o,l,i,p){super(o),this.name="UploadAjaxError",this.status=l,this.method=i,this.url=p}}function h(r,o,l){let i;return l.response?i=`${l.response.error||l.response}`:l.responseText?i=`${l.responseText}`:i=`fail to ${o.method} ${r} ${l.status}`,new R(i,l.status,o.method,r)}function U(r){const o=r.responseText||r.response;if(!o)return o;try{return JSON.parse(o)}catch{return o}}const D=r=>{typeof XMLHttpRequest>"u"&&a.throwError(T,"XMLHttpRequest is undefined");const o=new XMLHttpRequest,l=r.action;o.upload&&o.upload.addEventListener("progress",t=>{const c=t;c.percent=t.total>0?t.loaded/t.total*100:0,r.onProgress(c)});const i=new FormData;if(r.data)for(const[t,c]of Object.entries(r.data))a.isArray$1(c)&&c.length?i.append(t,...c):i.append(t,c);i.append(r.filename,r.file,r.file.name),o.addEventListener("error",()=>{r.onError(h(l,r,o))}),o.addEventListener("load",()=>{if(o.status<200||o.status>=300)return r.onError(h(l,r,o));r.onSuccess(U(o))}),o.open(r.method,l,!0),r.withCredentials&&"withCredentials"in o&&(o.withCredentials=!0);const p=r.headers||{};if(p instanceof Headers)p.forEach((t,c)=>o.setRequestHeader(c,t));else for(const[t,c]of Object.entries(p))a.isNil(c)||o.setRequestHeader(t,String(c));return o.send(i),o},b=["text","picture","picture-card"];let L=1;const N=()=>Date.now()+L++,x=a.buildProps({action:{type:String,default:"#"},headers:{type:a.definePropType(Object)},method:{type:String,default:"post"},data:{type:a.definePropType([Object,Function,Promise]),default:()=>a.mutable({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:a.definePropType(Array),default:()=>a.mutable([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:b,default:"text"},httpRequest:{type:a.definePropType(Function),default:D},disabled:Boolean,limit:Number}),F=a.buildProps({...x,beforeUpload:{type:a.definePropType(Function),default:a.NOOP},beforeRemove:{type:a.definePropType(Function)},onRemove:{type:a.definePropType(Function),default:a.NOOP},onChange:{type:a.definePropType(Function),default:a.NOOP},onPreview:{type:a.definePropType(Function),default:a.NOOP},onSuccess:{type:a.definePropType(Function),default:a.NOOP},onProgress:{type:a.definePropType(Function),default:a.NOOP},onError:{type:a.definePropType(Function),default:a.NOOP},onExceed:{type:a.definePropType(Function),default:a.NOOP},crossorigin:{type:a.definePropType(String)}}),j={style:{"text-align":"left"}},A={class:"cropper-warp"},q={class:"cropper-warp-left"},$=["src"],H={class:"cropper-warp-right"},z={class:"cropper-warp-right-item"},M={class:"cropper-warp-right-value"},X=["src"],J={class:"cropper-warp-right-item"},G={class:"cropper-warp-right-value"},K=["src"],Q={class:"dialog-footer"},W=e.defineComponent({__name:"index",props:{title:{type:String,default:""}},emits:["submitImage","deleteImage"],setup(r,{expose:o,emit:l}){const i=l,p=e.ref(),t=e.reactive({isShowDialog:!1,cropperImg:"",cropperImgBase64:"",cropper:null}),c=async s=>{if(t.isShowDialog=!0,!s)return;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(s),e.nextTick(()=>{w()})},f=()=>{var s;(s=t.cropper)==null||s.destroy(),t.isShowDialog=!1},m=()=>{f()},y=async()=>{const s=await v();i("submitImage",{file:s}),f()},d=async()=>{i("deleteImage")},w=()=>{const s=document.querySelector(".cropper-warp-left-img");s&&s.setAttribute("crossOrigin","anonymous"),t.cropper=new B.Cropper(s,{viewMode:1,dragMode:"none",initialAspectRatio:1,aspectRatio:1,preview:".before",background:!0,autoCropArea:1,checkCrossOrigin:!1,crop:()=>{t.cropperImgBase64=t.cropper.getCroppedCanvas().toDataURL("image/jpeg")}})},v=async()=>t!=null&&t.cropper?new Promise(s=>{var n,u;(u=(n=t==null?void 0:t.cropper)==null?void 0:n.getCroppedCanvas())==null||u.toBlob(_=>{s(_)})}):(await fetch(t.cropperImg)).blob(),V=async s=>{var u;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(s.raw),(u=t.cropper)==null||u.replace(t.cropperImg)},S=s=>{p.value.clearFiles();const n=s[0];n.uid=N(),p.value.handleStart(n)};return o({openDialog:c}),(s,n)=>{const u=e.resolveComponent("ele-Edit"),_=e.resolveComponent("el-icon"),g=e.resolveComponent("el-button"),I=e.resolveComponent("el-upload"),k=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(k,{modelValue:t.isShowDialog,"onUpdate:modelValue":n[0]||(n[0]=O=>t.isShowDialog=O),width:"769px","before-close":m},{header:e.withCtx(()=>[e.createElementVNode("div",j,[e.createVNode(_,{size:"16",style:{"margin-right":"3px",display:"inline","vertical-align":"middle"}},{default:e.withCtx(()=>[e.createVNode(u)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(r.title),1)])]),footer:e.withCtx(()=>[e.createElementVNode("span",Q,[e.createVNode(I,{class:"avatar-uploader",ref_key:"uploadSignRef",ref:p,accept:".jpg,.png",limit:1,"show-file-list":!1,"auto-upload":!1,"on-change":V,"on-exceed":S},{trigger:e.withCtx(()=>[e.createVNode(g,{type:"info",icon:"ele-Picture"},{default:e.withCtx(()=>n[4]||(n[4]=[e.createTextVNode("选择图片")])),_:1,__:[4]})]),default:e.withCtx(()=>[e.createVNode(g,{onClick:d,type:"danger",icon:"ele-Picture",style:{"margin-left":"8px"}},{default:e.withCtx(()=>n[5]||(n[5]=[e.createTextVNode("删除图片")])),_:1,__:[5]})]),_:1},512),e.createElementVNode("div",null,[e.createVNode(g,{onClick:m,id:"themeBorderButton"},{default:e.withCtx(()=>n[6]||(n[6]=[e.createTextVNode("取 消")])),_:1,__:[6]}),e.createVNode(g,{onClick:y,id:"themeButton"},{default:e.withCtx(()=>n[7]||(n[7]=[e.createTextVNode("确 定")])),_:1,__:[7]})])])]),default:e.withCtx(()=>[e.createElementVNode("div",A,[e.createElementVNode("div",q,[e.createElementVNode("img",{src:t.cropperImg,class:"cropper-warp-left-img"},null,8,$)]),e.createElementVNode("div",H,[n[3]||(n[3]=e.createElementVNode("div",{class:"cropper-warp-right-title"},"预览",-1)),e.createElementVNode("div",z,[e.createElementVNode("div",M,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img"},null,8,X)]),n[1]||(n[1]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"100 x 100",-1))]),e.createElementVNode("div",J,[e.createElementVNode("div",G,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img cropper-size"},null,8,K)]),n[2]||(n[2]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"50 x 50",-1))])])])]),_:1},8,["modelValue"])])}}}),E=C._export_sfc(W,[["__scopeId","data-v-4a19ffcf"]]),Y=e.defineComponent({__name:"index",props:{avatarUrl:{type:String,default:""},avatarBlob:{type:Blob,default:""},size:{type:[String,Number],default:"large"},showCropper:{type:Boolean,default:!0},banClick:{type:Boolean,default:!1},clickStop:{type:Boolean,default:!0}},emits:["submitImage","deleteImage","clickAvatar"],setup(r,{emit:o}){const l=r,i=e.ref(),p=e.ref(null),t=o,c=()=>!0,f=async()=>{var d;l!=null&&l.banClick||(t("clickAvatar",l.avatarUrl),(d=i.value)==null||d.openDialog(l.avatarBlob))},m=async d=>{t("submitImage",d)},y=async()=>{t("deleteImage")};return(d,w)=>{const v=e.resolveComponent("el-avatar");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(v,{src:r.avatarUrl,onClick:f,fit:"cover",size:r.size,ref_key:"avatarRef",ref:p,style:{background:"var(--user-avatar-bg)"},alt:"头像查找失败",onError:c},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"avatarDefault",{},void 0,!0)]),_:3},8,["src","size"]),e.withDirectives(e.createVNode(E,{ref_key:"cropperDialogRef",ref:i,title:"更改头像",avatarUrl:r.avatarUrl,onSubmitImage:m,onDeleteImage:y},null,8,["avatarUrl"]),[[e.vShow,r.showCropper&&(l==null?void 0:l.clickStop)]])],64)}}}),P=C._export_sfc(Y,[["__scopeId","data-v-82946fb9"]]),Z=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"}));exports.CropperDialog=E;exports.genFileId=N;exports.index=Z;exports.ssAvatar=P;exports.uploadBaseProps=x;exports.uploadListTypes=b;exports.uploadProps=F;
1
+ "use strict";const e=require("vue"),B=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BtDy8n8V.cjs"),a=require("./index-y1mE3_ai.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),T="ElUpload";class R extends Error{constructor(o,l,i,p){super(o),this.name="UploadAjaxError",this.status=l,this.method=i,this.url=p}}function h(r,o,l){let i;return l.response?i=`${l.response.error||l.response}`:l.responseText?i=`${l.responseText}`:i=`fail to ${o.method} ${r} ${l.status}`,new R(i,l.status,o.method,r)}function U(r){const o=r.responseText||r.response;if(!o)return o;try{return JSON.parse(o)}catch{return o}}const D=r=>{typeof XMLHttpRequest>"u"&&a.throwError(T,"XMLHttpRequest is undefined");const o=new XMLHttpRequest,l=r.action;o.upload&&o.upload.addEventListener("progress",t=>{const c=t;c.percent=t.total>0?t.loaded/t.total*100:0,r.onProgress(c)});const i=new FormData;if(r.data)for(const[t,c]of Object.entries(r.data))a.isArray$1(c)&&c.length?i.append(t,...c):i.append(t,c);i.append(r.filename,r.file,r.file.name),o.addEventListener("error",()=>{r.onError(h(l,r,o))}),o.addEventListener("load",()=>{if(o.status<200||o.status>=300)return r.onError(h(l,r,o));r.onSuccess(U(o))}),o.open(r.method,l,!0),r.withCredentials&&"withCredentials"in o&&(o.withCredentials=!0);const p=r.headers||{};if(p instanceof Headers)p.forEach((t,c)=>o.setRequestHeader(c,t));else for(const[t,c]of Object.entries(p))a.isNil(c)||o.setRequestHeader(t,String(c));return o.send(i),o},b=["text","picture","picture-card"];let L=1;const N=()=>Date.now()+L++,x=a.buildProps({action:{type:String,default:"#"},headers:{type:a.definePropType(Object)},method:{type:String,default:"post"},data:{type:a.definePropType([Object,Function,Promise]),default:()=>a.mutable({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:a.definePropType(Array),default:()=>a.mutable([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:b,default:"text"},httpRequest:{type:a.definePropType(Function),default:D},disabled:Boolean,limit:Number}),F=a.buildProps({...x,beforeUpload:{type:a.definePropType(Function),default:a.NOOP},beforeRemove:{type:a.definePropType(Function)},onRemove:{type:a.definePropType(Function),default:a.NOOP},onChange:{type:a.definePropType(Function),default:a.NOOP},onPreview:{type:a.definePropType(Function),default:a.NOOP},onSuccess:{type:a.definePropType(Function),default:a.NOOP},onProgress:{type:a.definePropType(Function),default:a.NOOP},onError:{type:a.definePropType(Function),default:a.NOOP},onExceed:{type:a.definePropType(Function),default:a.NOOP},crossorigin:{type:a.definePropType(String)}}),j={style:{"text-align":"left"}},A={class:"cropper-warp"},q={class:"cropper-warp-left"},$=["src"],H={class:"cropper-warp-right"},z={class:"cropper-warp-right-item"},M={class:"cropper-warp-right-value"},X=["src"],J={class:"cropper-warp-right-item"},G={class:"cropper-warp-right-value"},K=["src"],Q={class:"dialog-footer"},W=e.defineComponent({__name:"index",props:{title:{type:String,default:""}},emits:["submitImage","deleteImage"],setup(r,{expose:o,emit:l}){const i=l,p=e.ref(),t=e.reactive({isShowDialog:!1,cropperImg:"",cropperImgBase64:"",cropper:null}),c=async s=>{if(t.isShowDialog=!0,!s)return;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(s),e.nextTick(()=>{w()})},f=()=>{var s;(s=t.cropper)==null||s.destroy(),t.isShowDialog=!1},m=()=>{f()},y=async()=>{const s=await v();i("submitImage",{file:s}),f()},d=async()=>{i("deleteImage")},w=()=>{const s=document.querySelector(".cropper-warp-left-img");s&&s.setAttribute("crossOrigin","anonymous"),t.cropper=new B.Cropper(s,{viewMode:1,dragMode:"none",initialAspectRatio:1,aspectRatio:1,preview:".before",background:!0,autoCropArea:1,checkCrossOrigin:!1,crop:()=>{t.cropperImgBase64=t.cropper.getCroppedCanvas().toDataURL("image/jpeg")}})},v=async()=>t!=null&&t.cropper?new Promise(s=>{var n,u;(u=(n=t==null?void 0:t.cropper)==null?void 0:n.getCroppedCanvas())==null||u.toBlob(_=>{s(_)})}):(await fetch(t.cropperImg)).blob(),V=async s=>{var u;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(s.raw),(u=t.cropper)==null||u.replace(t.cropperImg)},S=s=>{p.value.clearFiles();const n=s[0];n.uid=N(),p.value.handleStart(n)};return o({openDialog:c}),(s,n)=>{const u=e.resolveComponent("ele-Edit"),_=e.resolveComponent("el-icon"),g=e.resolveComponent("el-button"),I=e.resolveComponent("el-upload"),k=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(k,{modelValue:t.isShowDialog,"onUpdate:modelValue":n[0]||(n[0]=O=>t.isShowDialog=O),width:"769px","before-close":m},{header:e.withCtx(()=>[e.createElementVNode("div",j,[e.createVNode(_,{size:"16",style:{"margin-right":"3px",display:"inline","vertical-align":"middle"}},{default:e.withCtx(()=>[e.createVNode(u)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(r.title),1)])]),footer:e.withCtx(()=>[e.createElementVNode("span",Q,[e.createVNode(I,{class:"avatar-uploader",ref_key:"uploadSignRef",ref:p,accept:".jpg,.png",limit:1,"show-file-list":!1,"auto-upload":!1,"on-change":V,"on-exceed":S},{trigger:e.withCtx(()=>[e.createVNode(g,{type:"info",icon:"ele-Picture"},{default:e.withCtx(()=>n[4]||(n[4]=[e.createTextVNode("选择图片")])),_:1,__:[4]})]),default:e.withCtx(()=>[e.createVNode(g,{onClick:d,type:"danger",icon:"ele-Picture",style:{"margin-left":"8px"}},{default:e.withCtx(()=>n[5]||(n[5]=[e.createTextVNode("删除图片")])),_:1,__:[5]})]),_:1},512),e.createElementVNode("div",null,[e.createVNode(g,{onClick:m,id:"themeBorderButton"},{default:e.withCtx(()=>n[6]||(n[6]=[e.createTextVNode("取 消")])),_:1,__:[6]}),e.createVNode(g,{onClick:y,id:"themeButton"},{default:e.withCtx(()=>n[7]||(n[7]=[e.createTextVNode("确 定")])),_:1,__:[7]})])])]),default:e.withCtx(()=>[e.createElementVNode("div",A,[e.createElementVNode("div",q,[e.createElementVNode("img",{src:t.cropperImg,class:"cropper-warp-left-img"},null,8,$)]),e.createElementVNode("div",H,[n[3]||(n[3]=e.createElementVNode("div",{class:"cropper-warp-right-title"},"预览",-1)),e.createElementVNode("div",z,[e.createElementVNode("div",M,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img"},null,8,X)]),n[1]||(n[1]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"100 x 100",-1))]),e.createElementVNode("div",J,[e.createElementVNode("div",G,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img cropper-size"},null,8,K)]),n[2]||(n[2]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"50 x 50",-1))])])])]),_:1},8,["modelValue"])])}}}),E=C._export_sfc(W,[["__scopeId","data-v-4a19ffcf"]]),Y=e.defineComponent({__name:"index",props:{avatarUrl:{type:String,default:""},avatarBlob:{type:Blob,default:""},size:{type:[String,Number],default:"large"},showCropper:{type:Boolean,default:!0},banClick:{type:Boolean,default:!1},clickStop:{type:Boolean,default:!0}},emits:["submitImage","deleteImage","clickAvatar"],setup(r,{emit:o}){const l=r,i=e.ref(),p=e.ref(null),t=o,c=()=>!0,f=async()=>{var d;l!=null&&l.banClick||(t("clickAvatar",l.avatarUrl),(d=i.value)==null||d.openDialog(l.avatarBlob))},m=async d=>{t("submitImage",d)},y=async()=>{t("deleteImage")};return(d,w)=>{const v=e.resolveComponent("el-avatar");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(v,{src:r.avatarUrl,onClick:f,fit:"cover",size:r.size,ref_key:"avatarRef",ref:p,style:{background:"var(--user-avatar-bg)"},alt:"头像查找失败",onError:c},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"avatarDefault",{},void 0,!0)]),_:3},8,["src","size"]),e.withDirectives(e.createVNode(E,{ref_key:"cropperDialogRef",ref:i,title:"更改头像",avatarUrl:r.avatarUrl,onSubmitImage:m,onDeleteImage:y},null,8,["avatarUrl"]),[[e.vShow,r.showCropper&&(l==null?void 0:l.clickStop)]])],64)}}}),P=C._export_sfc(Y,[["__scopeId","data-v-82946fb9"]]),Z=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"}));exports.CropperDialog=E;exports.genFileId=N;exports.index=Z;exports.ssAvatar=P;exports.uploadBaseProps=x;exports.uploadListTypes=b;exports.uploadProps=F;
@@ -1,18 +1,18 @@
1
- import { K as Iu, L as Ea, M as nS, _ as im, N as um, O as lS } from "./index-CadrO-1Z.js";
1
+ import { K as Iu, L as Ea, M as nS, _ as im, N as um, O as lS } from "./index-lvZVl2Vw.js";
2
2
  import { defineComponent as Q, shallowRef as kn, ref as x, computed as C, watch as we, onMounted as Tt, watchEffect as Al, createElementBlock as q, openBlock as M, normalizeStyle as Je, normalizeClass as R, unref as o, createElementVNode as X, renderSlot as ie, nextTick as We, useSlots as Un, toRef as Xt, createBlock as ye, Transition as Il, withCtx as le, withDirectives as yt, createCommentVNode as ve, resolveDynamicComponent as Ot, createTextVNode as _t, toDisplayString as Ae, Fragment as nt, createVNode as J, vShow as Gt, inject as qe, onBeforeUnmount as fn, withModifiers as st, provide as It, reactive as nn, onActivated as dd, onUpdated as Ha, cloneVNode as aS, Comment as No, Text as oS, mergeProps as St, getCurrentInstance as Bt, Teleport as sS, onBeforeMount as fd, readonly as cm, onDeactivated as rS, useAttrs as io, createSlots as Ml, renderList as Ct, normalizeProps as ia, guardReactiveProps as La, h as Qe, triggerRef as Zr, isVNode as nl, toRaw as Ii, isRef as ba, vModelCheckbox as dm, toRefs as ul, vModelRadio as fm, onBeforeUpdate as pm, withKeys as Ln, vModelText as nu, toHandlers as iS, resolveComponent as qt, TransitionGroup as vm, markRaw as er, effectScope as uS, resolveDirective as lu, toHandlerKey as cS, render as Mi, onUnmounted as au, createApp as dS, defineProps as hm } from "vue";
3
3
  import { i as fS, j as pS, k as pd, l as vS, C as Et, m as vd, n as El, o as oh, p as lo, q as Er, s as hd, t as gm, v as Cl, I as Zn, U as ot, w as ou, x as ao, y as pl, z as wl, A as mm, B as il, D as vs, F as vl, G as Gn, H as Yl, J as xa, K as hS, L as gd, M as Qr, N as ym, O as su, P as uo, T as Gs, Q as md, R as gS, S as mS, V as yS, W as bS, X as bm, Y as km, Z as kS, _ as ru, $ as ei, a0 as sh, a1 as Jo, a2 as Oo, a3 as Xa, a4 as rh, a5 as SS, a6 as wS, a7 as CS, a8 as ih, a9 as ES, aa as uh, E as $S, u as iu, ab as NS, a as Sm } from "./index-Dh_LOm8w.js";
4
4
  import { i as yd, j as wm, S as OS, k as Cm, l as Em, m as $m, n as Nm, t as bd, o as jn, q as Om, r as Tm, v as Im, w as Mm, x as TS, y as IS, z as Mu, A as Rm, B as MS, C as RS, D as _S, F as Qt, G as Ue, H as _e, I as te, _ as De, J as Ee, K as kd, L as ch, M as xn, N as Yn, O as _n, P as vt, Q as PS, R as xt, T as Sd, U as Ri, V as wn, W as Ke, X as AS, Y as In, Z as Lt, $ as en, a0 as el, a1 as uu, a2 as ka, a3 as qn, a4 as ac, a5 as cu, a6 as Re, a7 as Wa, a8 as At, a9 as ze, aa as Jn, ab as dn, ac as DS, ad as oc, ae as wd, af as ct, ag as du, ah as hs, ai as an, aj as co, ak as _m, al as LS, am as Dt, an as Nn, ao as Sl, ap as Zo, aq as Cd, ar as Va, d as yl, as as ll, at as Dl, au as Mn, av as $r, c as me, aw as $a, ax as gs, ay as Lo, az as Nr, aA as Ta, aB as sr, aC as xS, aD as Pn, aE as Ll, aF as BS, aG as VS, aH as Pm, aI as FS, aJ as Am, aK as fu, aL as ma, aM as oo, aN as so, aO as Dm, aP as zS, aQ as rr, aR as Lm, aS as dh, aT as KS, aU as tr, aV as HS, aW as WS, aX as jS, aY as xm, aZ as YS, a_ as qS, a$ as Bm, b0 as GS, b1 as US, b2 as Vm, b3 as XS, b4 as JS, b5 as ZS, b6 as Ed, b7 as Aa, b8 as ua, b9 as QS, ba as ew, bb as tw, bc as sc, bd as rc, be as Fm, bf as fh, bg as nw, bh as lw, bi as aw, bj as zm, bk as Km, bl as zr, bm as ow, bn as ph, bo as sw, bp as rw, bq as iw, br as Hm, bs as uw, bt as cw, bu as dw, bv as fw, bw as pw, bx as ic, by as vw, bz as Wm, bA as hw, bB as gw, bC as mw, bD as jm, bE as yw, bF as bw, bG as kw, bH as Sw, E as $d, g as Kl, f as ww, bI as Qo, bJ as uc, bK as Nd, h as Od, e as cc, bL as Cw, p as Or, s as To, u as Ym, bM as qm } from "./index-KFoWHXov.js";
5
5
  import { useRouter as Gm } from "vue-router";
6
6
  import { a as Um, d as Xm, e as Jm, f as Zm, g as Qm, h as ey } from "./index-CAPx0_D4.js";
7
- import { E as Ew, s as $w, g as _i } from "./index-DGxGOZ6v.js";
8
- import { i as Nw, j as Ow, k as Tw, m as Iw, n as ft, p as fo, q as ty, r as Mw, t as Pi, s as kl, v as ti, b as nr, w as ni, x as Rw, y as Ru, I as Vl, z as es, a as Td, A as dc, B as Da, C as rl, D as ny, E as Io, F as Mo, G as li, H as _w, J as Pw, K as Aw, L as _u, M as Dw, N as Lw } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CILHNQks.js";
7
+ import { E as Ew, s as $w, g as _i } from "./index-C8X6R7q5.js";
8
+ import { i as Nw, j as Ow, k as Tw, m as Iw, n as ft, p as fo, q as ty, r as Mw, t as Pi, s as kl, v as ti, b as nr, w as ni, x as Rw, y as Ru, I as Vl, z as es, a as Td, A as dc, B as Da, C as rl, D as ny, E as Io, F as Mo, G as li, H as _w, J as Pw, K as Aw, L as _u, M as Dw, N as Lw } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-9XvSEGdS.js";
9
9
  import { _ as xw } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
10
10
  import { _ as Bw } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- import { u as Vw, a as Fw, g as fc, b as zw } from "./index-CCujgLny.js";
12
- import { t as Kw } from "./index-B17SPYqV.js";
11
+ import { u as Vw, a as Fw, g as fc, b as zw } from "./index-ClmxTuZZ.js";
12
+ import { t as Kw } from "./index-xHfmd7Ni.js";
13
13
  import { t as Hw } from "./index-CyZCNsOm.js";
14
- import { q as ly, r as Ww, u as jw, v as Yw, w as qw } from "./array-BgNAac5j.js";
15
- import { a as Gw } from "./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-B3OXHupH.js";
14
+ import { q as ly, r as Ww, u as jw, v as Yw, w as qw } from "./array-Bgrj1oV3.js";
15
+ import { a as Gw } from "./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-DPVGY0eJ.js";
16
16
  function Uw() {
17
17
  }
18
18
  function ay(e, t, n, l) {