ss-component-new 1.3.415 → 1.3.417

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 (106) hide show
  1. package/dist/{MTLLoader-DyYxQl9z.js → MTLLoader-B1YI5QZW.js} +1 -1
  2. package/dist/{MTLLoader-VuBhYPg2.cjs → MTLLoader-C9Y2XnL-.cjs} +1 -1
  3. package/dist/{OrbitControls-BSCd7ND-.js → OrbitControls-Ccyh9YlF.js} +1 -1
  4. package/dist/{OrbitControls-CiZN4NDf.cjs → OrbitControls-DAhl70c3.cjs} +1 -1
  5. package/dist/{URDFLoader-9WBWnVjI.cjs → URDFLoader-BDJ4XpPA.cjs} +1 -1
  6. package/dist/{URDFLoader-CqrGjSg3.js → URDFLoader-BPsQJXGk.js} +2 -2
  7. package/dist/{animationData-CWamGwsC.js → animationData-2sId4rTN.js} +3 -3
  8. package/dist/{animationData-B9OmGkgD.cjs → animationData-CAK1kBGH.cjs} +1 -1
  9. package/dist/{array-C6OdbPQ9.js → array-7hDf8gIy.js} +3 -3
  10. package/dist/{array-DmjXKlpK.cjs → array-D58GsWzI.cjs} +1 -1
  11. package/dist/{clone-BJp5Ri0x.js → clone-r23wXuC7.js} +1 -1
  12. package/dist/clone-t2ps0jmw.cjs +1 -0
  13. package/dist/{iconfont-Cg2xFape.cjs → iconfont-Db0I943u.cjs} +1 -1
  14. package/dist/{iconfont-CgEih55H.js → iconfont-DhBD3i21.js} +2 -2
  15. package/dist/{index-C3a7VJZK.cjs → index-1tRX531i.cjs} +1 -1
  16. package/dist/{index-CFgabRzj.js → index-6RECQqV8.js} +1 -1
  17. package/dist/{index-DK1-jWC0.js → index-9dTDi5Ge.js} +2 -2
  18. package/dist/{index-CqcZ6Hbg.cjs → index-B1HGCDOE.cjs} +1 -1
  19. package/dist/{index-CbbBN6_1.cjs → index-B2t7cepm.cjs} +1 -1
  20. package/dist/{index-CjNXRZGO.cjs → index-B7w9LAJd.cjs} +1 -1
  21. package/dist/{index-B-EizQFy.js → index-B9HWTvDz.js} +7693 -7687
  22. package/dist/{index-y-rbpKCA.js → index-BBr25gXh.js} +1 -1
  23. package/dist/{index-8Urth4VT.cjs → index-BGDb3E_p.cjs} +1 -1
  24. package/dist/{index-CxQqnPqz.js → index-BGOXytSm.js} +3 -3
  25. package/dist/{index-CMIG3zru.js → index-BIWnTKR6.js} +17 -17
  26. package/dist/{index-DEXUrNh6.cjs → index-BJS-V3sT.cjs} +1 -1
  27. package/dist/{index-C7FJ3zvS.cjs → index-BJYL83ey.cjs} +1 -1
  28. package/dist/{index-FLJJKkyQ.cjs → index-BL6kRMh8.cjs} +1 -1
  29. package/dist/{index-DnKH7LRu.js → index-BYrnsdLj.js} +8 -8
  30. package/dist/{index-D7YfQdNJ.cjs → index-Bd9GpNbZ.cjs} +1 -1
  31. package/dist/{index-BFkLHfaL.cjs → index-BeOgM-lp.cjs} +1 -1
  32. package/dist/{index-CasVp7yH.cjs → index-BfK0dq3V.cjs} +1 -1
  33. package/dist/{index-CHaXvVsZ.js → index-BveIPT3h.js} +5 -5
  34. package/dist/{index-BVigGIkW.cjs → index-C1VlXmyp.cjs} +1 -1
  35. package/dist/{index-DBxrIHI8.cjs → index-C9cUuEAp.cjs} +1 -1
  36. package/dist/{index-Iv9DHqkM.js → index-CBj9WUNj.js} +2 -2
  37. package/dist/{index-BqBbAE5x.cjs → index-CM-KzIjl.cjs} +1 -1
  38. package/dist/{index-CEeOqd9g.js → index-CPBH8dZD.js} +7 -7
  39. package/dist/{index-CPekdGe9.js → index-CQ5krbf7.js} +4 -4
  40. package/dist/{index-C-l2XFhP.js → index-CUTuYmiR.js} +2 -2
  41. package/dist/{index-DIzwWIe-.cjs → index-CVG0c03e.cjs} +1 -1
  42. package/dist/{index-BKf-rOwE.js → index-CaPsaqj8.js} +4 -4
  43. package/dist/{index-Pve69buQ.cjs → index-ClvA5-wg.cjs} +8 -8
  44. package/dist/{index-pPkg_OL4.cjs → index-Cmw1O7M3.cjs} +1 -1
  45. package/dist/{index-B4OJRYgo.cjs → index-Cnainw5f.cjs} +1 -1
  46. package/dist/{index-CMbbPEqT.js → index-D2iC0RdT.js} +1 -1
  47. package/dist/{index-D8phCIf5.cjs → index-D3Ik6E9u.cjs} +1 -1
  48. package/dist/{index-CPl5clIF.js → index-D41wgwXB.js} +6 -6
  49. package/dist/{index-BwJLSnJn.cjs → index-D7Mqm_K7.cjs} +1 -1
  50. package/dist/{index-2VBt6xDn.js → index-D9T-hj7J.js} +3 -3
  51. package/dist/{index-B4nzrEgl.cjs → index-DASn3fcI.cjs} +1 -1
  52. package/dist/{index-D5FydX0D.js → index-DAfCxuFU.js} +1 -1
  53. package/dist/{index-BgDoXxnN.cjs → index-DFFIQ_d-.cjs} +1 -1
  54. package/dist/{index-B4ouy3El.js → index-DUowomjd.js} +2 -2
  55. package/dist/{index-nfc2TBUK.js → index-DWCmhlhr.js} +1 -1
  56. package/dist/{index-lqX63aUO.js → index-Dp1nyXLS.js} +4 -4
  57. package/dist/{index-B6L0_YFS.js → index-DshXKN2f.js} +2 -2
  58. package/dist/{index-aYsID9DE.js → index-DtZ2ZKPO.js} +2 -2
  59. package/dist/{index-BkWwwzGI.js → index-DyHFsX8U.js} +1 -1
  60. package/dist/{index-I-s-QfVJ.cjs → index-GYtcQn5r.cjs} +2 -2
  61. package/dist/{index-DAX8T606.cjs → index-JxQEYRld.cjs} +1 -1
  62. package/dist/{index-DdNMgTV-.cjs → index-N0L2zoGC.cjs} +1 -1
  63. package/dist/{index-CB7sgFj7.cjs → index-NSrMRasA.cjs} +1 -1
  64. package/dist/{index-B3Z2HbJW.js → index-XcQTeHWK.js} +1 -1
  65. package/dist/{index-CyU6mja2.js → index-l0u9OUe6.js} +2 -2
  66. package/dist/{index-B7g2mUfT.cjs → index-mDUckx7n.cjs} +1 -1
  67. package/dist/{index-drc5V1Xt.js → index-mJFCoPsK.js} +3 -3
  68. package/dist/{index-C18GT8Jl.js → index-mpH7L8Rm.js} +2 -2
  69. package/dist/{index-Dng7AX91.js → index-rGJF9UJ9.js} +510 -506
  70. package/dist/{index-BszVYrt4.cjs → index-reJmxzkK.cjs} +1 -1
  71. package/dist/index-v5yXoQ5f.cjs +25 -0
  72. package/dist/{index-T08rf-_2.js → index-x-HWwt4p.js} +1 -1
  73. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DJiOf74F.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CLp-qGr4.js} +1650 -1645
  74. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CkTzrR_j.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Dg_y3QFE.cjs} +59 -59
  75. package/dist/{main-BK6LUeIR.cjs → main-B9j-5uos.cjs} +1 -1
  76. package/dist/{main-DLWQY8bl.js → main-ib9UzP5g.js} +4 -4
  77. package/dist/{menuIndex-inoQSYak.cjs → menuIndex-B8QQIas4.cjs} +1 -1
  78. package/dist/{menuIndex-CmmoR6a8.js → menuIndex-qnbpFYeU.js} +1 -1
  79. package/dist/obj/model.mtl +42 -0
  80. package/dist/obj/model.obj +26110 -0
  81. package/dist/ss-component.cjs +1 -1
  82. package/dist/ss-component.css +1 -1
  83. package/dist/ss-component.js +11 -11
  84. package/dist/ss-component2.cjs +1 -1
  85. package/dist/ss-component2.js +12 -12
  86. package/dist/{threeModel-BeCt3JW8.js → threeModel-DCxgIYS3.js} +4 -4
  87. package/dist/{threeModel-D_5szEHS.cjs → threeModel-lk0Dlios.cjs} +1 -1
  88. package/dist/{threePreview-BnBdOtXP.cjs → threePreview-BxA_p_Ex.cjs} +1 -1
  89. package/dist/{threePreview-Dw1ZaPPj.js → threePreview-C3Oh-jDn.js} +4 -4
  90. package/dist/{threeSceneView-Cy7aJHos.js → threeSceneView-5BMcTrX1.js} +11 -11
  91. package/dist/{threeSceneView-DqWt8Soc.cjs → threeSceneView-CZ37DgpD.cjs} +1 -1
  92. package/dist/{threeSceneViewForCPMPIP-BFnW_k3q.js → threeSceneViewForCPMPIP-C46fmYy7.js} +8 -8
  93. package/dist/{threeSceneViewForCPMPIP-Cp4DP9Kz.cjs → threeSceneViewForCPMPIP-Dvherbb8.cjs} +1 -1
  94. package/dist/{threeTrackPathView-huybE5Vr.cjs → threeTrackPathView-2Sk98yHk.cjs} +1 -1
  95. package/dist/{threeTrackPathView-LzCEZnzl.js → threeTrackPathView-a0oXlOxT.js} +4 -4
  96. package/dist/{threeViewerHost-BOBeI0tj.js → threeViewerHost-DGiebSu-.js} +3 -3
  97. package/dist/{threeViewerHost-D64feDPk.cjs → threeViewerHost-DPI9UfZQ.cjs} +1 -1
  98. package/dist/{urdfTree-CKYTaNXL.js → urdfTree-Bh8lYJcS.js} +1 -1
  99. package/dist/{urdfTree-BRwe0WMJ.cjs → urdfTree-Bptilitr.cjs} +1 -1
  100. package/dist/{workpieceTreePanel-Dq9WGrvH.cjs → workpieceTreePanel-C2xo_k1w.cjs} +1 -1
  101. package/dist/{workpieceTreePanel-C4USNJhC.js → workpieceTreePanel-DkzHMd39.js} +4 -4
  102. package/package.json +1 -1
  103. package/public/obj/model.mtl +42 -0
  104. package/public/obj/model.obj +26110 -0
  105. package/dist/clone-ex65UiGA.cjs +0 -1
  106. package/dist/index--TgqYrZc.cjs +0 -25
@@ -1 +1 @@
1
- "use strict";const v=require("vue"),g=require("./index-BszVYrt4.cjs"),r=require("./index-Pve69buQ.cjs"),F=require("./request-Dl8yi2iS.cjs"),Le=r.useLoginState(r.pinia),{systemUrl:y}=r.storeToRefs(Le);let A=y.value===""||!y.value?"http://222.92.178.198:63002":y.value;v.watch(()=>y.value,()=>{A=y.value===""||!y.value?"http://222.92.178.198:63002":y.value},{deep:!0,immediate:!0});function N(s){return F.service({url:`${A}/platform/import_data`,method:"post",data:s})}function C(s){return F.service({url:`${A}/platform/export_data`,method:"post",data:s,responseType:"blob"})}function we(s=""){const l=s.match(/filename\*=UTF-8''([^;]+)/i);if(l)return decodeURIComponent(l[1]);const u=s.match(/filename=["']?([^"';]+)["']?/);return u?u[1]:"download.xlsx"}const V=s=>{var w,h;const l=((w=s==null?void 0:s.headers)==null?void 0:w["content-type"])||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",u=new Blob([s.data],{type:l}),D=(h=s==null?void 0:s.headers)==null?void 0:h["content-disposition"],I=we(D)||"数据.xlsx",i=window.URL.createObjectURL(u),d=document.createElement("a");d.href=i,d.setAttribute("download",I),document.body.appendChild(d),d.click(),document.body.removeChild(d),window.URL.revokeObjectURL(i)},Te=[{label:"编辑",value:"edit"},{label:"删除",value:"delete"}],k="role",f={ENABLE:{value:"enable",label:"启用",tag:"primary"},DISABLED:{value:"disabled",label:"禁用",tag:"info"}},p={EDITABLE:{value:"editable",label:"可编辑",tag:"primary"},DISABLED:{value:"disabled",label:"不可编辑",tag:"info"}},De={TABLE:{value:"Table"}},Re=["查看","查看三维模型","导出paraform","导出","导出全部","导出选中"],Ee=()=>{const s=r.useLoginState(),l=r.useMenuState(r.pinia),{isSuperAdmin:u,userId:D,userName:I,platId:i}=r.useUserInfo(),d=v.ref([]),w=t=>{const{propertyType:e}=t||{};return e===De.TABLE.value},h=v.ref({}),z=v.computed(()=>{var e;return u.value?!0:((e=h.value)==null?void 0:e.status)===p.EDITABLE.value}),O=t=>{var o,c;const e=r.formatterTimeStr(Date.now()),{id:a=0}=s.loginUserInfo||{},n=r.cloneDeep(t);return n.update_user_id=a,n.update_user_name=I.value,n.update_time=e,n.checked_ids=((c=(o=n==null?void 0:n.main_ids)==null?void 0:o.map)==null?void 0:c.call(o,m=>{const{id:b}=m;return b}))||[],n},S=t=>{let e=[];return t.forEach(a=>{var n;if(a.isPropertyLeaf){const o=r.cloneDeep(a);e.push(o)}a.children&&((n=a.children)==null?void 0:n.length)>0&&(e=e.concat(S(a.children)))}),e},P=(t=[])=>{let e=[];for(let a=0;a<t.length;a++){const n=t[a],o=n.children||[];delete n.children,e.push(n),o&&o.length>0&&(e=e.concat(P(o)))}return e},$=t=>{let e=[];return t.forEach(a=>{if(a.isPropertyLeaf){const n=P(a.params);e=e.concat(n)}}),e},x=(t,e)=>{const a=s.loginUserInfo,{id:n=0}=a||{},o=r.formatterTimeStr(Date.now());let c={name:"",code:"",order_no:1,data_scope:1,remark:"",tenant_id:"",create_time:o,update_time:o,create_user_id:n,create_user_name:I.value,update_user_id:n,update_user_name:I.value,status:f.ENABLE.value,main_ids:[],checked_ids:[],params:[]};const{checkAll:m,tree:b}=e||{};if(m&&b){const L=S(b),be=L.map(B=>({...B,department_scope:"unlimited"}));c.main_ids=be,c.checked_ids=L.map(B=>B.id),c.params=$(L)}if(t){const L=O(t);c={...c,...L}}return c},R=t=>{const e=[t];return{platId:i.value,changeRoleData:e}},G=async t=>await r.getRoleList({platId:t}),M=async()=>{var e;l.setImportLoading(!0);const t=await G(i.value).finally(()=>{l.setImportLoading(!1)});return(e=t==null?void 0:t.data)==null?void 0:e.result},U=()=>({name:""}),T=v.ref(U()),j=()=>{T.value=U()},H=()=>({pageNum:1,pageSize:10,total:0,pageSizes:[5,10,20,50,100]}),_=v.ref(H()),Q=t=>{_.value.pageNum=t},K=t=>{_.value.pageSize=t},W=()=>({platId:i.value,pageNum:_.value.pageNum,pageSize:_.value.pageSize,filter:{...T.value}}),J=async t=>{var a;const e=await r.getByPage(t);return(a=e==null?void 0:e.data)==null?void 0:a.result},X=async()=>{const t=W(),e=await J(t),{total:a}=e||{};return _.value.total=a,e||{}},Y=async t=>{delete t.role_id;const e=R(t);await r.createRole(e)},Z=async t=>{l.setImportLoading(!0),await Y(t).finally(()=>{l.setImportLoading(!1)})},ee=async t=>{const e=R(t);await r.updateRole(e)},te=async t=>{l.setImportLoading(!0),await ee(t).finally(()=>{l.setImportLoading(!1)})},ae=async t=>{const{role_id:e}=t,a={platId:i.value,role_id:[e]};await r.deleteRole(a)},ne=async t=>{await r.ElMessageBox.confirm("是否确认要删除","",{showClose:!1,confirmButtonText:"确认",cancelButtonText:"取消",type:"warning",modalClass:"delete-role-message-modal",confirmButtonClass:"delete-role-confirm"}),l.setImportLoading(!0),await ae(t).finally(()=>{l.setImportLoading(!1)})},oe=t=>{const e=t.toUpperCase(),a=f==null?void 0:f[e];return(a==null?void 0:a.label)||t},re=t=>{const e=t.toUpperCase(),a=f==null?void 0:f[e];return(a==null?void 0:a.tag)||"info"},se=async t=>{var a;const e=await r.getPropertyAuthTree(t);return((a=e==null?void 0:e.data)==null?void 0:a.result)||[]},le=async t=>{const e={platId:i.value,includeHidden:!0,roleIds:t};l.setImportLoading(!0);const a=await se(e).finally(()=>{l.setImportLoading(!1)});d.value=a},ce=(t="")=>{const e=t.toUpperCase(),a=p==null?void 0:p[e];return(a==null?void 0:a.label)||t},ie=(t="")=>{const e=t.toUpperCase(),a=p==null?void 0:p[e];return(a==null?void 0:a.tag)||"info"},E=t=>t===p.EDITABLE.value,ue=(t,e)=>{const{status:a}=t||{},{tableOperate:n}=e||{};return!!(E(a)||n&&Re.includes(n))},pe=(t,e)=>{const{status:a}=t||{};return E(a)},de=(t,e)=>{if(u.value)return!0;const{type:a}=e||{};if(g.compType.TABLE===a)return ue(t,e);if(g.compType.FORM===a)return pe(t);const{status:n}=t||{};return E(n)},me=async()=>{var n,o;const e={pageName:"系统管理/角色管理",platId:i.value,userId:D.value},a=await r.getPageDataApi(e);return(o=(n=a==null?void 0:a.data)==null?void 0:n.result)==null?void 0:o[0]},fe=async()=>{if(!u.value)return h.value=await me(),h},q=t=>{const e=r.cloneDeep(t);for(let a=0;a<e.length;a++){const n=e==null?void 0:e[a],{id:o,prop:c,children:m}=n||{};n.uniqueKey=`${o}_${c}`,m&&(n.children=q(m))}return e},ge=async t=>{var a;const e=await N(t);return(a=e==null?void 0:e.data)==null?void 0:a.result},ye=async t=>{const e=new FormData,a=x(),{create_user_id:n,update_user_id:o,create_user_name:c,update_user_name:m}=a;return e.set("platId",i.value),e.set("file",t),e.set("tableType",k),e.set("create_user_id",n),e.set("update_user_id",o),e.set("create_user_name",c),e.set("update_user_name",m),await ge(e)},he=async t=>await C(t),_e=async()=>{const t={platId:i.value,tableType:k,filter:T.value},e=await he(t);return V(e),e},ve=[["名称","编码","备注","状态"]],Ie=async()=>{const t=g.utils.aoa_to_sheet(ve),e=g.utils.book_new();g.utils.book_append_sheet(e,t,"角色"),g.writeFileSync(e,"角色模板.xlsx")};return{compType:g.compType,isTableFeature:w,queryInfo:T,resetQuery:j,pageInfo:_,setPageNum:Q,setPageSize:K,initGetByPage:X,initRoleList:M,initCreate:Z,initUpdate:te,initDelete:ne,initRoleRequestData:R,initPropertyAuthTree:le,propertyAuthTree:d,initRoleItem:x,isSuperAdmin:u,getStatusLabelByValue:oe,getStatusTagByValue:re,getFeatureStatusLabelByValue:ce,getFeatureStatusTagByValue:ie,hasEditable:de,initRoleConfig:fe,hasRoleEditAuth:z,buildParamAuthTree:q,initImport:ye,initExport:_e,exportTemplate:Ie}};exports.exportData=C;exports.featureStatusConstants=p;exports.importData=N;exports.initDownloadFileByResponse=V;exports.operateList=Te;exports.statusConstants=f;exports.useRole=Ee;
1
+ "use strict";const v=require("vue"),g=require("./index-reJmxzkK.cjs"),r=require("./index-ClvA5-wg.cjs"),F=require("./request-Dl8yi2iS.cjs"),Le=r.useLoginState(r.pinia),{systemUrl:y}=r.storeToRefs(Le);let A=y.value===""||!y.value?"http://222.92.178.198:63002":y.value;v.watch(()=>y.value,()=>{A=y.value===""||!y.value?"http://222.92.178.198:63002":y.value},{deep:!0,immediate:!0});function N(s){return F.service({url:`${A}/platform/import_data`,method:"post",data:s})}function C(s){return F.service({url:`${A}/platform/export_data`,method:"post",data:s,responseType:"blob"})}function we(s=""){const l=s.match(/filename\*=UTF-8''([^;]+)/i);if(l)return decodeURIComponent(l[1]);const u=s.match(/filename=["']?([^"';]+)["']?/);return u?u[1]:"download.xlsx"}const V=s=>{var w,h;const l=((w=s==null?void 0:s.headers)==null?void 0:w["content-type"])||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",u=new Blob([s.data],{type:l}),D=(h=s==null?void 0:s.headers)==null?void 0:h["content-disposition"],I=we(D)||"数据.xlsx",i=window.URL.createObjectURL(u),d=document.createElement("a");d.href=i,d.setAttribute("download",I),document.body.appendChild(d),d.click(),document.body.removeChild(d),window.URL.revokeObjectURL(i)},Te=[{label:"编辑",value:"edit"},{label:"删除",value:"delete"}],k="role",f={ENABLE:{value:"enable",label:"启用",tag:"primary"},DISABLED:{value:"disabled",label:"禁用",tag:"info"}},p={EDITABLE:{value:"editable",label:"可编辑",tag:"primary"},DISABLED:{value:"disabled",label:"不可编辑",tag:"info"}},De={TABLE:{value:"Table"}},Re=["查看","查看三维模型","导出paraform","导出","导出全部","导出选中"],Ee=()=>{const s=r.useLoginState(),l=r.useMenuState(r.pinia),{isSuperAdmin:u,userId:D,userName:I,platId:i}=r.useUserInfo(),d=v.ref([]),w=t=>{const{propertyType:e}=t||{};return e===De.TABLE.value},h=v.ref({}),z=v.computed(()=>{var e;return u.value?!0:((e=h.value)==null?void 0:e.status)===p.EDITABLE.value}),O=t=>{var o,c;const e=r.formatterTimeStr(Date.now()),{id:a=0}=s.loginUserInfo||{},n=r.cloneDeep(t);return n.update_user_id=a,n.update_user_name=I.value,n.update_time=e,n.checked_ids=((c=(o=n==null?void 0:n.main_ids)==null?void 0:o.map)==null?void 0:c.call(o,m=>{const{id:b}=m;return b}))||[],n},S=t=>{let e=[];return t.forEach(a=>{var n;if(a.isPropertyLeaf){const o=r.cloneDeep(a);e.push(o)}a.children&&((n=a.children)==null?void 0:n.length)>0&&(e=e.concat(S(a.children)))}),e},P=(t=[])=>{let e=[];for(let a=0;a<t.length;a++){const n=t[a],o=n.children||[];delete n.children,e.push(n),o&&o.length>0&&(e=e.concat(P(o)))}return e},$=t=>{let e=[];return t.forEach(a=>{if(a.isPropertyLeaf){const n=P(a.params);e=e.concat(n)}}),e},x=(t,e)=>{const a=s.loginUserInfo,{id:n=0}=a||{},o=r.formatterTimeStr(Date.now());let c={name:"",code:"",order_no:1,data_scope:1,remark:"",tenant_id:"",create_time:o,update_time:o,create_user_id:n,create_user_name:I.value,update_user_id:n,update_user_name:I.value,status:f.ENABLE.value,main_ids:[],checked_ids:[],params:[]};const{checkAll:m,tree:b}=e||{};if(m&&b){const L=S(b),be=L.map(B=>({...B,department_scope:"unlimited"}));c.main_ids=be,c.checked_ids=L.map(B=>B.id),c.params=$(L)}if(t){const L=O(t);c={...c,...L}}return c},R=t=>{const e=[t];return{platId:i.value,changeRoleData:e}},G=async t=>await r.getRoleList({platId:t}),M=async()=>{var e;l.setImportLoading(!0);const t=await G(i.value).finally(()=>{l.setImportLoading(!1)});return(e=t==null?void 0:t.data)==null?void 0:e.result},U=()=>({name:""}),T=v.ref(U()),j=()=>{T.value=U()},H=()=>({pageNum:1,pageSize:10,total:0,pageSizes:[5,10,20,50,100]}),_=v.ref(H()),Q=t=>{_.value.pageNum=t},K=t=>{_.value.pageSize=t},W=()=>({platId:i.value,pageNum:_.value.pageNum,pageSize:_.value.pageSize,filter:{...T.value}}),J=async t=>{var a;const e=await r.getByPage(t);return(a=e==null?void 0:e.data)==null?void 0:a.result},X=async()=>{const t=W(),e=await J(t),{total:a}=e||{};return _.value.total=a,e||{}},Y=async t=>{delete t.role_id;const e=R(t);await r.createRole(e)},Z=async t=>{l.setImportLoading(!0),await Y(t).finally(()=>{l.setImportLoading(!1)})},ee=async t=>{const e=R(t);await r.updateRole(e)},te=async t=>{l.setImportLoading(!0),await ee(t).finally(()=>{l.setImportLoading(!1)})},ae=async t=>{const{role_id:e}=t,a={platId:i.value,role_id:[e]};await r.deleteRole(a)},ne=async t=>{await r.ElMessageBox.confirm("是否确认要删除","",{showClose:!1,confirmButtonText:"确认",cancelButtonText:"取消",type:"warning",modalClass:"delete-role-message-modal",confirmButtonClass:"delete-role-confirm"}),l.setImportLoading(!0),await ae(t).finally(()=>{l.setImportLoading(!1)})},oe=t=>{const e=t.toUpperCase(),a=f==null?void 0:f[e];return(a==null?void 0:a.label)||t},re=t=>{const e=t.toUpperCase(),a=f==null?void 0:f[e];return(a==null?void 0:a.tag)||"info"},se=async t=>{var a;const e=await r.getPropertyAuthTree(t);return((a=e==null?void 0:e.data)==null?void 0:a.result)||[]},le=async t=>{const e={platId:i.value,includeHidden:!0,roleIds:t};l.setImportLoading(!0);const a=await se(e).finally(()=>{l.setImportLoading(!1)});d.value=a},ce=(t="")=>{const e=t.toUpperCase(),a=p==null?void 0:p[e];return(a==null?void 0:a.label)||t},ie=(t="")=>{const e=t.toUpperCase(),a=p==null?void 0:p[e];return(a==null?void 0:a.tag)||"info"},E=t=>t===p.EDITABLE.value,ue=(t,e)=>{const{status:a}=t||{},{tableOperate:n}=e||{};return!!(E(a)||n&&Re.includes(n))},pe=(t,e)=>{const{status:a}=t||{};return E(a)},de=(t,e)=>{if(u.value)return!0;const{type:a}=e||{};if(g.compType.TABLE===a)return ue(t,e);if(g.compType.FORM===a)return pe(t);const{status:n}=t||{};return E(n)},me=async()=>{var n,o;const e={pageName:"系统管理/角色管理",platId:i.value,userId:D.value},a=await r.getPageDataApi(e);return(o=(n=a==null?void 0:a.data)==null?void 0:n.result)==null?void 0:o[0]},fe=async()=>{if(!u.value)return h.value=await me(),h},q=t=>{const e=r.cloneDeep(t);for(let a=0;a<e.length;a++){const n=e==null?void 0:e[a],{id:o,prop:c,children:m}=n||{};n.uniqueKey=`${o}_${c}`,m&&(n.children=q(m))}return e},ge=async t=>{var a;const e=await N(t);return(a=e==null?void 0:e.data)==null?void 0:a.result},ye=async t=>{const e=new FormData,a=x(),{create_user_id:n,update_user_id:o,create_user_name:c,update_user_name:m}=a;return e.set("platId",i.value),e.set("file",t),e.set("tableType",k),e.set("create_user_id",n),e.set("update_user_id",o),e.set("create_user_name",c),e.set("update_user_name",m),await ge(e)},he=async t=>await C(t),_e=async()=>{const t={platId:i.value,tableType:k,filter:T.value},e=await he(t);return V(e),e},ve=[["名称","编码","备注","状态"]],Ie=async()=>{const t=g.utils.aoa_to_sheet(ve),e=g.utils.book_new();g.utils.book_append_sheet(e,t,"角色"),g.writeFileSync(e,"角色模板.xlsx")};return{compType:g.compType,isTableFeature:w,queryInfo:T,resetQuery:j,pageInfo:_,setPageNum:Q,setPageSize:K,initGetByPage:X,initRoleList:M,initCreate:Z,initUpdate:te,initDelete:ne,initRoleRequestData:R,initPropertyAuthTree:le,propertyAuthTree:d,initRoleItem:x,isSuperAdmin:u,getStatusLabelByValue:oe,getStatusTagByValue:re,getFeatureStatusLabelByValue:ce,getFeatureStatusTagByValue:ie,hasEditable:de,initRoleConfig:fe,hasRoleEditAuth:z,buildParamAuthTree:q,initImport:ye,initExport:_e,exportTemplate:Ie}};exports.exportData=C;exports.featureStatusConstants=p;exports.importData=N;exports.initDownloadFileByResponse=V;exports.operateList=Te;exports.statusConstants=f;exports.useRole=Ee;
@@ -1,6 +1,6 @@
1
1
  import { ref as v, computed as Ce, defineComponent as Ve, onMounted as Ae, reactive as ze, resolveComponent as u, createElementBlock as P, openBlock as _, createElementVNode as s, createVNode as o, unref as c, withCtx as i, createTextVNode as N, toDisplayString as le, Fragment as oe, renderList as se, withModifiers as xe, createBlock as re, createCommentVNode as qe } from "vue";
2
- import { g as Ue, d as Ge, u as Oe, c as Me, a as Re, b as Fe } from "./index-CFgabRzj.js";
3
- import { t as Qe, E as $e, D as we, c as Ye, i as je, u as Ze, p as He } from "./index-Dng7AX91.js";
2
+ import { g as Ue, d as Ge, u as Oe, c as Me, a as Re, b as Fe } from "./index-6RECQqV8.js";
3
+ import { t as Qe, E as $e, D as we, c as Ye, i as je, u as Ze, p as He } from "./index-rGJF9UJ9.js";
4
4
  import { _ as he } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
5
5
  import { s as Je } from "./index-BQ9pPu8K.js";
6
6
  import { _ as Ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),_=require("./index-BwJLSnJn.cjs"),r=require("./index-Pve69buQ.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=(t,l,a)=>{var n,p,u,g;let e=l;e.title.text=(a==null?void 0:a.chartName)??"",e.xAxis.data=(n=r.cloneDeep(t))==null?void 0:n.map(i=>i.x),e.legend.data=(u=(p=r.cloneDeep(t))==null?void 0:p[0])!=null&&u.y?Object.keys(r.cloneDeep(t)[0].y):[];let o=[];return((g=e.legend.data)==null?void 0:g.length)>0&&r.cloneDeep(e.legend.data).forEach(i=>{var x;const y=(x=r.cloneDeep(t))==null?void 0:x.map(c=>{var h;return(h=c==null?void 0:c.y)==null?void 0:h[i]});o.push({name:i,type:"line",data:y})}),e.series=o,e},d=[{key:"折线图",value:{title:{text:"",left:"center",top:25,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis"},legend:{data:[]},grid:{left:"6%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",axisLabel:{interval:0},data:[]},yAxis:{type:"value"},series:[]}}],C={class:"eCharts"},D={__name:"index",props:{eChartContents:Array},setup(t){const l=t,a=s.ref({});return s.onMounted(()=>{var o;const e=l==null?void 0:l.eChartContents;a.value=m(r.cloneDeep(e==null?void 0:e.compData),(o=d==null?void 0:d.find(n=>(n==null?void 0:n.key)===(e==null?void 0:e.name)))==null?void 0:o.value,e==null?void 0:e.extraContent)}),(e,o)=>(s.openBlock(),s.createElementBlock("div",C,[s.createVNode(_.ssChart,{optionContents:a.value},null,8,["optionContents"])]))}},b=f._export_sfc(D,[["__scopeId","data-v-0440fac3"]]);exports.default=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),_=require("./index-D7Mqm_K7.cjs"),r=require("./index-ClvA5-wg.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=(t,l,a)=>{var n,p,u,g;let e=l;e.title.text=(a==null?void 0:a.chartName)??"",e.xAxis.data=(n=r.cloneDeep(t))==null?void 0:n.map(i=>i.x),e.legend.data=(u=(p=r.cloneDeep(t))==null?void 0:p[0])!=null&&u.y?Object.keys(r.cloneDeep(t)[0].y):[];let o=[];return((g=e.legend.data)==null?void 0:g.length)>0&&r.cloneDeep(e.legend.data).forEach(i=>{var x;const y=(x=r.cloneDeep(t))==null?void 0:x.map(c=>{var h;return(h=c==null?void 0:c.y)==null?void 0:h[i]});o.push({name:i,type:"line",data:y})}),e.series=o,e},d=[{key:"折线图",value:{title:{text:"",left:"center",top:25,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis"},legend:{data:[]},grid:{left:"6%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",axisLabel:{interval:0},data:[]},yAxis:{type:"value"},series:[]}}],C={class:"eCharts"},D={__name:"index",props:{eChartContents:Array},setup(t){const l=t,a=s.ref({});return s.onMounted(()=>{var o;const e=l==null?void 0:l.eChartContents;a.value=m(r.cloneDeep(e==null?void 0:e.compData),(o=d==null?void 0:d.find(n=>(n==null?void 0:n.key)===(e==null?void 0:e.name)))==null?void 0:o.value,e==null?void 0:e.extraContent)}),(e,o)=>(s.openBlock(),s.createElementBlock("div",C,[s.createVNode(_.ssChart,{optionContents:a.value},null,8,["optionContents"])]))}},b=f._export_sfc(D,[["__scopeId","data-v-0440fac3"]]);exports.default=b;
@@ -1,16 +1,16 @@
1
1
  import { defineComponent as J, ref as u, computed as Ve, resolveComponent as n, createElementBlock as D, openBlock as k, createElementVNode as o, createVNode as t, withCtx as s, toDisplayString as A, createBlock as ue, reactive as De, Fragment as pe, renderList as xe, unref as c, createTextVNode as h, onMounted as it, watch as dt, withModifiers as ct, createCommentVNode as H } from "vue";
2
2
  import { u as ut, h as pt, i as mt } from "./request-XJsZ4h2T.js";
3
- import { u as Se, o as _t, s as de, f as ce } from "./index-B6L0_YFS.js";
4
- import { H as Le, I as ft, u as vt, p as gt } from "./index-Dng7AX91.js";
3
+ import { u as Se, o as _t, s as de, f as ce } from "./index-DshXKN2f.js";
4
+ import { H as Le, I as ft, u as vt, p as gt } from "./index-rGJF9UJ9.js";
5
5
  import { s as _e } from "./index-BQ9pPu8K.js";
6
- import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DJiOf74F.js";
7
- import "./index-B-EizQFy.js";
6
+ import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CLp-qGr4.js";
7
+ import "./index-B9HWTvDz.js";
8
8
  import "./index-BHtNKL1L.js";
9
9
  import { _ as B } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
10
- import "./index-CMbbPEqT.js";
11
- import "./index-BKf-rOwE.js";
10
+ import "./index-D2iC0RdT.js";
11
+ import "./index-CaPsaqj8.js";
12
12
  import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- import { c as me } from "./clone-BJp5Ri0x.js";
13
+ import { c as me } from "./clone-r23wXuC7.js";
14
14
  const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-content-wrapper" }, Ct = { class: "node-label-wrapper" }, bt = { class: "node-label" }, wt = /* @__PURE__ */ J({
15
15
  __name: "index",
16
16
  props: {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as C, reactive as k, ref as v, onMounted as D, nextTick as b, resolveComponent as i, resolveDirective as T, createElementBlock as m, openBlock as u, createVNode as t, withCtx as n, withDirectives as w, createElementVNode as p, createTextVNode as _ } from "vue";
2
- import { S as x } from "./index-CxQqnPqz.js";
3
- import { V as B } from "./index-B-EizQFy.js";
2
+ import { S as x } from "./index-BGOXytSm.js";
3
+ import { V as B } from "./index-B9HWTvDz.js";
4
4
  import { s as F } from "./index-BQ9pPu8K.js";
5
- import { b as y } from "./index-CPl5clIF.js";
6
- import { u as S, p as I, s as N } from "./index-Dng7AX91.js";
5
+ import { b as y } from "./index-D41wgwXB.js";
6
+ import { u as S, p as I, s as N } from "./index-rGJF9UJ9.js";
7
7
  import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
8
  const E = { class: "menu-module" }, M = {
9
9
  class: "table-wrap",
@@ -1,6 +1,6 @@
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-nfc2TBUK.js";
3
- import { c as s } from "./index-Dng7AX91.js";
2
+ import { s as b } from "./index-DWCmhlhr.js";
3
+ import { c as s } from "./index-rGJF9UJ9.js";
4
4
  import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const A = (t, n, a) => {
6
6
  var r, d, p, m;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-B7g2mUfT.cjs"),r=require("./index--TgqYrZc.cjs"),i=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),s={class:"log-wrap"},u=t.defineComponent({__name:"index",setup(_){const e=t.reactive({...c.State});t.onMounted(async()=>{e.tableData=await e.getLogTableDataAsync()});const l=n=>{var o;e.clickButton(n,(o=e.tableData)==null?void 0:o.map(a=>a.id),a=>{console.log("清空操作成功:",a),a&&(e.tableData=[])})};return(n,o)=>(t.openBlock(),t.createElementBlock("div",s,[t.createVNode(r.ssTable,{itemData:e.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:l},null,8,["itemData"])]))}}),d=i._export_sfc(u,[["__scopeId","data-v-b4bfde04"]]);exports.default=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-mDUckx7n.cjs"),r=require("./index-v5yXoQ5f.cjs"),i=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),s={class:"log-wrap"},u=t.defineComponent({__name:"index",setup(_){const e=t.reactive({...c.State});t.onMounted(async()=>{e.tableData=await e.getLogTableDataAsync()});const l=n=>{var o;e.clickButton(n,(o=e.tableData)==null?void 0:o.map(a=>a.id),a=>{console.log("清空操作成功:",a),a&&(e.tableData=[])})};return(n,o)=>(t.openBlock(),t.createElementBlock("div",s,[t.createVNode(r.ssTable,{itemData:e.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:l},null,8,["itemData"])]))}}),d=i._export_sfc(u,[["__scopeId","data-v-b4bfde04"]]);exports.default=d;
@@ -1,12 +1,12 @@
1
1
  import { ref as h, computed as E, reactive as W, defineComponent as q, watch as H, createElementBlock as N, openBlock as k, createVNode as A, createCommentVNode as ue, withCtx as _, createTextVNode as V, toDisplayString as F, resolveComponent as D, createBlock as R, Fragment as ie, renderList as ce, createElementVNode as de, normalizeStyle as pe } from "vue";
2
2
  import { av as fe, aw as ve, ax as ge, E as T } from "./request-XJsZ4h2T.js";
3
- import { s as J, b as ye, u as be, p as G, c as me, j as he, k as Q } from "./index-Dng7AX91.js";
3
+ import { s as J, b as ye, u as be, p as G, c as me, j as he, k as Q } from "./index-rGJF9UJ9.js";
4
4
  import { g as X, u as we } from "./index-DUq4XELr.js";
5
5
  import { J as Y } from "./JSEncrypt-B36c1iN5.js";
6
- import { a2 as Se } from "./index-CMbbPEqT.js";
7
- import { A as _e } from "./index-CyU6mja2.js";
6
+ import { a2 as Se } from "./index-D2iC0RdT.js";
7
+ import { A as _e } from "./index-l0u9OUe6.js";
8
8
  import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- import { n as Ce } from "./index-CPl5clIF.js";
9
+ import { n as Ce } from "./index-D41wgwXB.js";
10
10
  import { S as x } from "./index-BHtNKL1L.js";
11
11
  function Ae(t, s) {
12
12
  const e = new Y();