ss-component-new 1.3.78 → 1.3.79

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 (118) hide show
  1. package/dist/{MTLLoader-Bkr7rTJW.js → MTLLoader-J6KQSJo5.js} +1 -1
  2. package/dist/{MTLLoader-ByAfB26z.cjs → MTLLoader-xQUyDMUQ.cjs} +1 -1
  3. package/dist/{OrbitControls-goGQ9Lfs.js → OrbitControls-CYS3lt7t.js} +1 -1
  4. package/dist/{OrbitControls-BcfNtf3a.cjs → OrbitControls-wLj5IZpu.cjs} +1 -1
  5. package/dist/{URDFLoader-nyfij85d.cjs → URDFLoader-CMw9yh3v.cjs} +1 -1
  6. package/dist/{URDFLoader-d1AzVQ5F.js → URDFLoader-FM9qqfOl.js} +2 -2
  7. package/dist/{animationData-Cew-c11l.cjs → animationData-2UX1B5_q.cjs} +1 -1
  8. package/dist/{animationData-Sok20fOI.js → animationData-DUH4W8MK.js} +2 -2
  9. package/dist/{array-CCxIPliQ.cjs → array-Bd12qj41.cjs} +1 -1
  10. package/dist/{array-BkHYCyls.js → array-C2VeqIuB.js} +6 -6
  11. package/dist/{iconfont-CJoblcL2.js → iconfont-BCTnYuQD.js} +2 -2
  12. package/dist/{iconfont-DZ9KiHjj.cjs → iconfont-iC_6bHfi.cjs} +1 -1
  13. package/dist/{index-eUZKu-7F.cjs → index-0igLJsrJ.cjs} +1 -1
  14. package/dist/{index-D7GkHVm4.cjs → index-5dvr_F6Q.cjs} +1 -1
  15. package/dist/{index-DmeZpSGM.js → index-AR7D1heX.js} +5 -5
  16. package/dist/{index-DLGxv8po.js → index-B-dZDLlp.js} +4 -4
  17. package/dist/{index-EtZh1qtq.js → index-B4xBmgak.js} +2 -2
  18. package/dist/{index-Dyhg1YNv.js → index-B5i-XCGU.js} +1 -1
  19. package/dist/{index-oJEY_fSN.js → index-B7Q8lfZm.js} +12 -12
  20. package/dist/{index-Dld88iXe.js → index-BDXWwpnM.js} +1 -1
  21. package/dist/index-BTqL_HGH.cjs +19 -0
  22. package/dist/{index-D8DcUSsZ.cjs → index-B_MCMG28.cjs} +1 -1
  23. package/dist/{index-fwa9LBX5.cjs → index-BfOeLrc4.cjs} +1 -1
  24. package/dist/index-BgDlt5VR.js +466 -0
  25. package/dist/{index-Bj7H-CHU.js → index-BmwOHAWI.js} +4 -4
  26. package/dist/{index-t9jd4l9Q.js → index-BodCp2oo.js} +2 -2
  27. package/dist/{index-BQWGBLrD.cjs → index-BqvVG799.cjs} +1 -1
  28. package/dist/{index-AHbRUQqE.cjs → index-Bwewgc3l.cjs} +1 -1
  29. package/dist/{index-DilZmA-l.cjs → index-BySUbdBm.cjs} +1 -1
  30. package/dist/{index-CjCqvZ07.cjs → index-C3UwBzuP.cjs} +2 -2
  31. package/dist/{index-DXxZIqBP.cjs → index-C6KO8_us.cjs} +1 -1
  32. package/dist/index-CCjUy3aK.cjs +1 -0
  33. package/dist/{index-BVh3Ylgt.cjs → index-CIvnqPpe.cjs} +1 -1
  34. package/dist/{index-CM8Na0Nb.js → index-CKrXLddb.js} +15 -15
  35. package/dist/{index-CGpIY6jB.js → index-COu_zvcV.js} +2053 -2048
  36. package/dist/{index-CNLUhFlr.js → index-CP3licEB.js} +2 -2
  37. package/dist/{index-D8k54p_x.cjs → index-CPffhaiD.cjs} +1 -1
  38. package/dist/index-CTGFVPrU.js +8192 -0
  39. package/dist/index-CUElPXgv.cjs +1 -0
  40. package/dist/{index-C036vLtM.cjs → index-CVCJuzlD.cjs} +1 -1
  41. package/dist/{index-Dlob1bxY.cjs → index-CeXyg5Rl.cjs} +1 -1
  42. package/dist/{index-BZqkclA9.cjs → index-Cl7_1LxQ.cjs} +1 -1
  43. package/dist/{index-B7cNKrrU.cjs → index-Cl8_F2w0.cjs} +1 -1
  44. package/dist/{index-BPmWhs0O.js → index-ClIqEC4B.js} +2 -2
  45. package/dist/{index-XSETNP_T.js → index-CnEbdJ_u.js} +1 -1
  46. package/dist/{index-CI8pzqx6.js → index-CqEyKbrr.js} +6 -6
  47. package/dist/index-Cu1ObOAB.js +19 -0
  48. package/dist/{index-G0nsjixB.js → index-CzL_5aJo.js} +8 -8
  49. package/dist/{index-D9hditHi.js → index-CzXa6BB9.js} +1 -1
  50. package/dist/{index-BysdHzB7.cjs → index-D1Cy49Op.cjs} +1 -1
  51. package/dist/{index-DijK6RWK.js → index-D4pvlJjc.js} +7 -7
  52. package/dist/{index-CST5bbhY.js → index-DKRx656d.js} +6 -6
  53. package/dist/{index-CWY9HxrG.js → index-DPM1jo0z.js} +1 -1
  54. package/dist/{index-BgKqiFcg.cjs → index-DPms6EYm.cjs} +1 -1
  55. package/dist/{index-M_FLMoBh.cjs → index-DYLAzmSg.cjs} +1 -1
  56. package/dist/index-Dc6Q0f3F.cjs +11 -0
  57. package/dist/{index-JAXzKk2F.js → index-DcWo3vcO.js} +28 -28
  58. package/dist/{index-DHdrBDP4.cjs → index-DcqWejmU.cjs} +1 -1
  59. package/dist/{index-TvWbGp-2.cjs → index-DidUY5n8.cjs} +1 -1
  60. package/dist/{index-BAelm3VG.cjs → index-DkS40ewf.cjs} +1 -1
  61. package/dist/{index-BRPLPxlx.cjs → index-DngWdaTr.cjs} +1 -1
  62. package/dist/{index-2B1wHje0.cjs → index-DpocbqLg.cjs} +1 -1
  63. package/dist/{index-DsymuEzu.cjs → index-Du5edMFi.cjs} +13 -13
  64. package/dist/{index-CInkQ8cP.cjs → index-Dx6MbKD4.cjs} +1 -1
  65. package/dist/{index-ChiYyt8L.js → index-EuIwRz8c.js} +2 -2
  66. package/dist/{index-DaWzSNzm.js → index-Gu-cpRk9.js} +1 -1
  67. package/dist/{index-DBh4mbmL.js → index-KUyZ7T9o.js} +3212 -3201
  68. package/dist/{index-cKFeu5XW.cjs → index-WBDZ_4z8.cjs} +1 -1
  69. package/dist/{index-CIGrCpB_.js → index-YfmQ3HO9.js} +8 -8
  70. package/dist/{index-DnMPqjrX.js → index-eQnRGO0h.js} +4 -4
  71. package/dist/{index-rCV_Ea-P.js → index-gF-4JYat.js} +1 -1
  72. package/dist/{index-BIbLwf-J.cjs → index-gVJsXKak.cjs} +1 -1
  73. package/dist/{index-5CdDKPk6.js → index-igtlvQAe.js} +2 -2
  74. package/dist/{index-K1n-pA4G.js → index-jkHlUTog.js} +2616 -2545
  75. package/dist/{index-BHrQS0PO.js → index-lz-ekKYh.js} +1 -1
  76. package/dist/index-rbS2iECn.cjs +1 -0
  77. package/dist/{index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-Ceq-4YAl.cjs → index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-Dj8zYuMh.cjs} +49 -49
  78. package/dist/{index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-DljCMBcU.js → index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-surfEjhe.js} +2071 -2076
  79. package/dist/{index.vue_vue_type_style_index_1_lang-D9kYnXoD.cjs → index.vue_vue_type_style_index_1_lang-CBwwjCVB.cjs} +1 -1
  80. package/dist/{index.vue_vue_type_style_index_1_lang-DDUoM--M.js → index.vue_vue_type_style_index_1_lang-DSIK6FYX.js} +5 -5
  81. package/dist/{isString-D4Yi9bDE.js → isString-Bn5VcA2n.js} +1 -1
  82. package/dist/{isString-Cdf6R00a.cjs → isString-DhPkQDQg.cjs} +1 -1
  83. package/dist/{main-DKugsEJQ.js → main-NW4XXiNt.js} +4 -4
  84. package/dist/{main-DDI-kRzh.cjs → main-p38X05Mj.cjs} +1 -1
  85. package/dist/{menuIndex-BVHXKOLk.cjs → menuIndex-D332F0dw.cjs} +1 -1
  86. package/dist/{menuIndex-BvSKgV5f.js → menuIndex-DOraLCRw.js} +1 -1
  87. package/dist/ss-component.cjs +1 -1
  88. package/dist/ss-component.css +1 -1
  89. package/dist/ss-component.js +11 -11
  90. package/dist/ss-component2.cjs +1 -1
  91. package/dist/ss-component2.js +13 -13
  92. package/dist/{threeModel-BwWSWObs.js → threeModel-C4O9G7gx.js} +6 -6
  93. package/dist/{threeModel-BC_JZ1RV.cjs → threeModel-DH7KgOVV.cjs} +1 -1
  94. package/dist/{threePreview-CfyAicAQ.js → threePreview-BCM2X6a_.js} +5 -5
  95. package/dist/{threePreview-mSNaLCWp.cjs → threePreview-C1XUqnbj.cjs} +1 -1
  96. package/dist/{threeSceneView-66dCWgEi.cjs → threeSceneView-BehsA9j_.cjs} +1 -1
  97. package/dist/{threeSceneView-Dbr2KLMM.js → threeSceneView-C3A4G5J_.js} +11 -11
  98. package/dist/{threeSceneViewForCPMPIP-tPswynXd.js → threeSceneViewForCPMPIP-DG49msmU.js} +9 -9
  99. package/dist/{threeSceneViewForCPMPIP-BzMYLFuK.cjs → threeSceneViewForCPMPIP-DczSoavc.cjs} +1 -1
  100. package/dist/{threeTrackPathView-C65T-bEd.cjs → threeTrackPathView-CGy2nPcI.cjs} +1 -1
  101. package/dist/{threeTrackPathView-CZt3mY2y.js → threeTrackPathView-CZTHAZ4q.js} +6 -6
  102. package/dist/{threeViewerHost-DtuM2v2G.cjs → threeViewerHost-BO_RtFQ8.cjs} +1 -1
  103. package/dist/{threeViewerHost-D2qSyCw-.js → threeViewerHost-CjckAsTF.js} +3 -3
  104. package/dist/{urdfTree-UVAVh9q0.cjs → urdfTree-CJKP_T_2.cjs} +1 -1
  105. package/dist/{urdfTree-BCj0sPXo.js → urdfTree-DsYvLkJQ.js} +1 -1
  106. package/dist/{workpieceTreePanel-CrpY18jo.js → workpieceTreePanel-CzdZZhzq.js} +4 -4
  107. package/dist/{workpieceTreePanel-BtxWzOMx.cjs → workpieceTreePanel-Ds0qy--F.cjs} +1 -1
  108. package/package.json +1 -1
  109. package/dist/index-BFvOrU__.cjs +0 -19
  110. package/dist/index-BQ5LLLCI.cjs +0 -1
  111. package/dist/index-C5pQXH0_.cjs +0 -11
  112. package/dist/index-Cuw9DLEb.cjs +0 -1
  113. package/dist/index-D0aKEqnU.js +0 -476
  114. package/dist/index-KEXDCkKc.js +0 -8139
  115. package/dist/obj/model.mtl +0 -42
  116. package/dist/obj/model.obj +0 -26110
  117. package/public/obj/model.mtl +0 -42
  118. package/public/obj/model.obj +0 -26110
@@ -1 +1 @@
1
- "use strict";const f=require("vue"),y=require("./index-C5pQXH0_.cjs"),g=require("./index-fwa9LBX5.cjs"),D=g.useLoginState(g.pinia),{loginUserInfo:u,cryptoInfo:w}=g.storeToRefs(D),V=g.useMenuState(g.pinia),{activeMenuPath:b}=g.storeToRefs(V),P=f.ref(0),R=f.computed(()=>{var s,a,t,r,n,l,e,o,p,d,v;return[{label:"",name:"账号",prop:"账号",value:((s=u.value)==null?void 0:s.account)||(((a=u.value)==null?void 0:a.账号)??"未知")},{label:"",name:"角色名称",prop:"角色名称",value:((t=u.value)==null?void 0:t.layer)==="superAdmin"?"超级管理员":(r=u.value)==null?void 0:r.角色名称},{label:"",name:"部门名称",prop:"部门名称",value:((n=u.value)==null?void 0:n.部门名称)??"未知"},{label:"",name:"状态",prop:"状态",value:((l=u.value)==null?void 0:l.layer)==="superAdmin"?"启用":((e=u.value)==null?void 0:e.状态)??"未知"},{label:"",prop:"头像",isFormColHidden:!0,value:((o=u.value)==null?void 0:o.layer)==="superAdmin"?"启用":((p=u.value)==null?void 0:p.状态)??"未知"},{label:"",prop:"签名",isFormColHidden:!0,value:((d=u.value)==null?void 0:d.layer)==="superAdmin"?"启用":((v=u.value)==null?void 0:v.状态)??"未知"}]}),W=()=>{},U=f.ref(!1),h=f.reactive({dialogTitle:"电子签名",dialogWidth:"30",dialogShow:!1,url:""}),S=f.ref([{label:"签字版",icon:y.edit_pen_default,type:"button",disabled:!1},{label:"电子签名",icon:y.edit_default,type:"button",disabled:!1},{label:"上传手写签名",icon:y.upload_filled_default,type:"buttonUpload",disabled:!1}]),I=f.ref(!1),T=f.ref(!1),M=f.ref(!1),_=f.computed(()=>{var r,n,l;const s=sessionStorage.getItem("authority"),a=JSON.parse(s||""),t=(r=b.value)!=null&&r.startsWith("/")?(n=b.value)==null?void 0:n.substring(1):b.value;return Array.isArray(a)?(M.value=!(a!=null&&a.includes(`${t}/上传头像`)),(l=S.value)==null?void 0:l.map(e=>({...e,disabled:!(a!=null&&a.includes(`${t}/签名`))}))):typeof a=="string"&&(a==null?void 0:a.toUpperCase())==="SUPERADMIN"?S.value:[]}),$=f.computed(()=>[{key:"signConfig",contents:h},{key:"signTypeList",contents:_.value}]),O=s=>{h.dialogShow=s.label==="电子签名"},L=()=>{h.dialogShow=!1},N=async s=>{var t,r,n,l,e,o,p,d,v;const a=await y.getInsofDataApi({id:s});if(((t=a==null?void 0:a.data)==null?void 0:t.code)===200&&a.data.result&&Array.isArray(a.data.result)&&a.data.result.length>0){const c={...(l=(n=(r=a.data.result)==null?void 0:r[0])==null?void 0:n.value)==null?void 0:l.tableData,id:(o=(e=a.data.result)==null?void 0:e[0])==null?void 0:o.id,layer:(v=(d=(p=a.data.result)==null?void 0:p[0])==null?void 0:d.key)==null?void 0:v.layer};D.setLoginUserInfo(c)}},q=async(s,a)=>{var r,n,l;const t=g.cloneDeep(s);t==null||delete t.id;try{const e=await y.updateInsofDataApi({id:(r=u.value)==null?void 0:r.id,value:{tableData:t}});((n=e==null?void 0:e.data)==null?void 0:n.code)===200&&(L(),y.ElMessage.success("修改成功"),await N((l=u.value)==null?void 0:l.id),await D.setLogRecordAsync({type:a,data:s},b.value))}catch{y.ElMessage.error("修改响应失败")}finally{U.value=!1,I.value=!1,T.value=!1}},B=async(s,a)=>{var n;const t=s==="avatarUrl"?"头像":"签名",r={...u.value,status:((n=u.value)==null?void 0:n.status)??"启用",[t]:a};I.value=s==="avatarUrl",T.value=s==="signature",await q(r,"图片修改")},m=f.reactive({baseCols:[],otherCols:[]}),K=f.ref([]),k=f.ref(),H=(s,a,t)=>{var l,e,o,p,d,v;let r;const n=a;((e=(l=u.value)==null?void 0:l.layer)==null?void 0:e.toUpperCase())!=="SUPERADMIN"?r=(o=u.value)!=null&&o.password?g.decryptData((p=u.value)==null?void 0:p.password,(d=w==null?void 0:w.value)==null?void 0:d.privateKey):g.resetPassword:r=(v=u.value)==null?void 0:v.password,r===n?t():t(new Error("输入的密码与原密码不匹配,请重新输入"))},j=(s,a,t)=>{a?t():t(new Error("请输入密码"))},x=(s,a,t)=>{var r;a!==((r=k.value)==null?void 0:r.newtPass)?t(new Error("两次输入的密码不一致")):t()},J=async()=>{var a,t,r,n,l,e,o,p,d,v;const s=await y.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:"系统管理/用户管理"}});if(((a=s==null?void 0:s.data)==null?void 0:a.code)===200&&s.data.result&&((t=s.data.result)==null?void 0:t.length)>0){const c=(o=(e=(l=(n=(r=s.data.result)==null?void 0:r[0])==null?void 0:n.value)==null?void 0:l.pageData)==null?void 0:e.compData)==null?void 0:o.find(i=>(i==null?void 0:i.key)==="header"),C=(p=R.value)==null?void 0:p.map(i=>i==null?void 0:i.prop);m.baseCols=c&&((d=c.contents)==null?void 0:d.map(i=>({...i,isFormColHidden:(C==null?void 0:C.includes(i==null?void 0:i.prop))||(i==null?void 0:i.label)==="操作"})));const A=(v=c.contents)==null?void 0:v.find(i=>(i==null?void 0:i.prop)==="password"),F=[{...A,label:"当前密码",prop:"currentPass",validator:H},{...A,label:"新密码",prop:"newtPass",validator:j},{...A,label:"确认密码",prop:"confirmNewPass",validator:x}];m.otherCols=F,Q(u.value)}},z=s=>{k.value=s},G=async({content:s,buttonName:a})=>{var r,n,l,e,o;let t;a==="确定"&&(t={...u.value,status:((r=u.value)==null?void 0:r.status)??"启用",password:((l=(n=u.value)==null?void 0:n.layer)==null?void 0:l.toUpperCase())==="SUPERADMIN"?s==null?void 0:s.confirmNewPass:g.encryptData(s==null?void 0:s.confirmNewPass,(e=w.value)==null?void 0:e.publicKey)}),a==="保存基本信息"&&(t={...u.value,...s,status:((o=u.value)==null?void 0:o.status)??"启用"}),U.value=!0,await q(t,a)},E=()=>{var r,n;const s={base:[{label:"保存基本信息"}],other:[{label:"重置",background:"#b7b8b8"},{label:"确定"}]},a=sessionStorage.getItem("authority"),t=JSON.parse(a||"");if(Array.isArray(t)){const l=(r=b.value)!=null&&r.startsWith("/")?(n=b.value)==null?void 0:n.substring(1):b.value,e=t!=null&&t.includes(`${l}/基本信息`)?s==null?void 0:s.base:[],o=t!=null&&t.includes(`${l}/修改密码`)?s==null?void 0:s.other:[];return{base:e,other:o}}else return typeof t=="string"&&(t==null?void 0:t.toUpperCase())==="SUPERADMIN"?s:null},Q=s=>{var a,t,r,n,l;K.value=[{value:"基础信息",label:"基础信息",children:[{type:"form",content:{rowContents:(a=m.baseCols)==null?void 0:a.map(e=>({...e,width:2,type:e==null?void 0:e.formType,name:e==null?void 0:e.prop,prop:e==null?void 0:e.prop,contents:e==null?void 0:e.options,value:s[e==null?void 0:e.prop]})),formRules:{userName:[{required:!0,message:"输入不能为空",trigger:"blur"}],birthDay:[{required:!0,message:"输入不能为空",trigger:"blur"}],phone:[{required:!0,message:"输入不能为空",trigger:"blur"}]},buttonValue:(t=E())==null?void 0:t.base,isEnableWrap:!1,isButtonRow:!1},value:""}]},{value:"修改密码",label:"修改密码",children:[{type:"form",content:{rowContents:(r=m.otherCols)==null?void 0:r.map(e=>({...e,width:1,type:e==null?void 0:e.formType,name:e==null?void 0:e.prop,contents:e==null?void 0:e.options})),formRules:(n=m.otherCols)==null?void 0:n.reduce((e,o)=>(e[o.prop]=[{required:!0,message:"输入有误",trigger:"change"},{validator:(p,d,v)=>o.validator(p,d,v),trigger:"blur"}],e),{}),buttonValue:(l=E())==null?void 0:l.other,isEnableWrap:!1},value:""}]}]},X=Object.freeze(Object.defineProperty({__proto__:null,avatarLoading:I,beforeSignDestroy:L,changeFormTrigger:z,clickFormButton:W,clickSignButton:O,clickTabButton:G,getUserTableHeadersAsync:J,itemData:$,loading:U,refreshLoginUserInfoAsync:N,rowContents:R,signPadInfo:h,signTypes:_,signatureLoading:T,submitImageAsync:B,tabKey:P,tabsContents:K,tempSignTypes:S,uploadDisabled:M},Symbol.toStringTag,{value:"Module"}));exports.State=X;exports.tabKey=P;
1
+ "use strict";const f=require("vue"),y=require("./index-Dc6Q0f3F.cjs"),g=require("./index-BfOeLrc4.cjs"),D=g.useLoginState(g.pinia),{loginUserInfo:u,cryptoInfo:w}=g.storeToRefs(D),V=g.useMenuState(g.pinia),{activeMenuPath:b}=g.storeToRefs(V),P=f.ref(0),R=f.computed(()=>{var s,a,t,r,n,l,e,o,p,d,v;return[{label:"",name:"账号",prop:"账号",value:((s=u.value)==null?void 0:s.account)||(((a=u.value)==null?void 0:a.账号)??"未知")},{label:"",name:"角色名称",prop:"角色名称",value:((t=u.value)==null?void 0:t.layer)==="superAdmin"?"超级管理员":(r=u.value)==null?void 0:r.角色名称},{label:"",name:"部门名称",prop:"部门名称",value:((n=u.value)==null?void 0:n.部门名称)??"未知"},{label:"",name:"状态",prop:"状态",value:((l=u.value)==null?void 0:l.layer)==="superAdmin"?"启用":((e=u.value)==null?void 0:e.状态)??"未知"},{label:"",prop:"头像",isFormColHidden:!0,value:((o=u.value)==null?void 0:o.layer)==="superAdmin"?"启用":((p=u.value)==null?void 0:p.状态)??"未知"},{label:"",prop:"签名",isFormColHidden:!0,value:((d=u.value)==null?void 0:d.layer)==="superAdmin"?"启用":((v=u.value)==null?void 0:v.状态)??"未知"}]}),W=()=>{},U=f.ref(!1),h=f.reactive({dialogTitle:"电子签名",dialogWidth:"30",dialogShow:!1,url:""}),S=f.ref([{label:"签字版",icon:y.edit_pen_default,type:"button",disabled:!1},{label:"电子签名",icon:y.edit_default,type:"button",disabled:!1},{label:"上传手写签名",icon:y.upload_filled_default,type:"buttonUpload",disabled:!1}]),I=f.ref(!1),T=f.ref(!1),M=f.ref(!1),_=f.computed(()=>{var r,n,l;const s=sessionStorage.getItem("authority"),a=JSON.parse(s||""),t=(r=b.value)!=null&&r.startsWith("/")?(n=b.value)==null?void 0:n.substring(1):b.value;return Array.isArray(a)?(M.value=!(a!=null&&a.includes(`${t}/上传头像`)),(l=S.value)==null?void 0:l.map(e=>({...e,disabled:!(a!=null&&a.includes(`${t}/签名`))}))):typeof a=="string"&&(a==null?void 0:a.toUpperCase())==="SUPERADMIN"?S.value:[]}),$=f.computed(()=>[{key:"signConfig",contents:h},{key:"signTypeList",contents:_.value}]),O=s=>{h.dialogShow=s.label==="电子签名"},L=()=>{h.dialogShow=!1},N=async s=>{var t,r,n,l,e,o,p,d,v;const a=await y.getInsofDataApi({id:s});if(((t=a==null?void 0:a.data)==null?void 0:t.code)===200&&a.data.result&&Array.isArray(a.data.result)&&a.data.result.length>0){const c={...(l=(n=(r=a.data.result)==null?void 0:r[0])==null?void 0:n.value)==null?void 0:l.tableData,id:(o=(e=a.data.result)==null?void 0:e[0])==null?void 0:o.id,layer:(v=(d=(p=a.data.result)==null?void 0:p[0])==null?void 0:d.key)==null?void 0:v.layer};D.setLoginUserInfo(c)}},q=async(s,a)=>{var r,n,l;const t=g.cloneDeep(s);t==null||delete t.id;try{const e=await y.updateInsofDataApi({id:(r=u.value)==null?void 0:r.id,value:{tableData:t}});((n=e==null?void 0:e.data)==null?void 0:n.code)===200&&(L(),y.ElMessage.success("修改成功"),await N((l=u.value)==null?void 0:l.id),await D.setLogRecordAsync({type:a,data:s},b.value))}catch{y.ElMessage.error("修改响应失败")}finally{U.value=!1,I.value=!1,T.value=!1}},B=async(s,a)=>{var n;const t=s==="avatarUrl"?"头像":"签名",r={...u.value,status:((n=u.value)==null?void 0:n.status)??"启用",[t]:a};I.value=s==="avatarUrl",T.value=s==="signature",await q(r,"图片修改")},m=f.reactive({baseCols:[],otherCols:[]}),K=f.ref([]),k=f.ref(),H=(s,a,t)=>{var l,e,o,p,d,v;let r;const n=a;((e=(l=u.value)==null?void 0:l.layer)==null?void 0:e.toUpperCase())!=="SUPERADMIN"?r=(o=u.value)!=null&&o.password?g.decryptData((p=u.value)==null?void 0:p.password,(d=w==null?void 0:w.value)==null?void 0:d.privateKey):g.resetPassword:r=(v=u.value)==null?void 0:v.password,r===n?t():t(new Error("输入的密码与原密码不匹配,请重新输入"))},j=(s,a,t)=>{a?t():t(new Error("请输入密码"))},x=(s,a,t)=>{var r;a!==((r=k.value)==null?void 0:r.newtPass)?t(new Error("两次输入的密码不一致")):t()},J=async()=>{var a,t,r,n,l,e,o,p,d,v;const s=await y.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:"系统管理/用户管理"}});if(((a=s==null?void 0:s.data)==null?void 0:a.code)===200&&s.data.result&&((t=s.data.result)==null?void 0:t.length)>0){const c=(o=(e=(l=(n=(r=s.data.result)==null?void 0:r[0])==null?void 0:n.value)==null?void 0:l.pageData)==null?void 0:e.compData)==null?void 0:o.find(i=>(i==null?void 0:i.key)==="header"),C=(p=R.value)==null?void 0:p.map(i=>i==null?void 0:i.prop);m.baseCols=c&&((d=c.contents)==null?void 0:d.map(i=>({...i,isFormColHidden:(C==null?void 0:C.includes(i==null?void 0:i.prop))||(i==null?void 0:i.label)==="操作"})));const A=(v=c.contents)==null?void 0:v.find(i=>(i==null?void 0:i.prop)==="password"),F=[{...A,label:"当前密码",prop:"currentPass",validator:H},{...A,label:"新密码",prop:"newtPass",validator:j},{...A,label:"确认密码",prop:"confirmNewPass",validator:x}];m.otherCols=F,Q(u.value)}},z=s=>{k.value=s},G=async({content:s,buttonName:a})=>{var r,n,l,e,o;let t;a==="确定"&&(t={...u.value,status:((r=u.value)==null?void 0:r.status)??"启用",password:((l=(n=u.value)==null?void 0:n.layer)==null?void 0:l.toUpperCase())==="SUPERADMIN"?s==null?void 0:s.confirmNewPass:g.encryptData(s==null?void 0:s.confirmNewPass,(e=w.value)==null?void 0:e.publicKey)}),a==="保存基本信息"&&(t={...u.value,...s,status:((o=u.value)==null?void 0:o.status)??"启用"}),U.value=!0,await q(t,a)},E=()=>{var r,n;const s={base:[{label:"保存基本信息"}],other:[{label:"重置",background:"#b7b8b8"},{label:"确定"}]},a=sessionStorage.getItem("authority"),t=JSON.parse(a||"");if(Array.isArray(t)){const l=(r=b.value)!=null&&r.startsWith("/")?(n=b.value)==null?void 0:n.substring(1):b.value,e=t!=null&&t.includes(`${l}/基本信息`)?s==null?void 0:s.base:[],o=t!=null&&t.includes(`${l}/修改密码`)?s==null?void 0:s.other:[];return{base:e,other:o}}else return typeof t=="string"&&(t==null?void 0:t.toUpperCase())==="SUPERADMIN"?s:null},Q=s=>{var a,t,r,n,l;K.value=[{value:"基础信息",label:"基础信息",children:[{type:"form",content:{rowContents:(a=m.baseCols)==null?void 0:a.map(e=>({...e,width:2,type:e==null?void 0:e.formType,name:e==null?void 0:e.prop,prop:e==null?void 0:e.prop,contents:e==null?void 0:e.options,value:s[e==null?void 0:e.prop]})),formRules:{userName:[{required:!0,message:"输入不能为空",trigger:"blur"}],birthDay:[{required:!0,message:"输入不能为空",trigger:"blur"}],phone:[{required:!0,message:"输入不能为空",trigger:"blur"}]},buttonValue:(t=E())==null?void 0:t.base,isEnableWrap:!1,isButtonRow:!1},value:""}]},{value:"修改密码",label:"修改密码",children:[{type:"form",content:{rowContents:(r=m.otherCols)==null?void 0:r.map(e=>({...e,width:1,type:e==null?void 0:e.formType,name:e==null?void 0:e.prop,contents:e==null?void 0:e.options})),formRules:(n=m.otherCols)==null?void 0:n.reduce((e,o)=>(e[o.prop]=[{required:!0,message:"输入有误",trigger:"change"},{validator:(p,d,v)=>o.validator(p,d,v),trigger:"blur"}],e),{}),buttonValue:(l=E())==null?void 0:l.other,isEnableWrap:!1},value:""}]}]},X=Object.freeze(Object.defineProperty({__proto__:null,avatarLoading:I,beforeSignDestroy:L,changeFormTrigger:z,clickFormButton:W,clickSignButton:O,clickTabButton:G,getUserTableHeadersAsync:J,itemData:$,loading:U,refreshLoginUserInfoAsync:N,rowContents:R,signPadInfo:h,signTypes:_,signatureLoading:T,submitImageAsync:B,tabKey:P,tabsContents:K,tempSignTypes:S,uploadDisabled:M},Symbol.toStringTag,{value:"Module"}));exports.State=X;exports.tabKey=P;
@@ -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-DLGxv8po.js";
3
- import { s as B } from "./index-KEXDCkKc.js";
4
- import { s as F } from "./index-DaWzSNzm.js";
5
- import { d as y } from "./index-DBh4mbmL.js";
6
- import { u as S, p as I, s as N } from "./index-JAXzKk2F.js";
2
+ import { S as x } from "./index-B-dZDLlp.js";
3
+ import { s as B } from "./index-CTGFVPrU.js";
4
+ import { s as F } from "./index-Gu-cpRk9.js";
5
+ import { d as y } from "./index-KUyZ7T9o.js";
6
+ import { u as S, p as I, s as N } from "./index-DcWo3vcO.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,8 +1,8 @@
1
1
  import { ref as i, computed as j, reactive as ie, nextTick as B, watch as ye } from "vue";
2
- import { c as J, s as be, u as he, a as Ce, p as U, h as Ie } from "./index-JAXzKk2F.js";
3
- import { u as ke } from "./index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-DljCMBcU.js";
4
- import { g as $, E as S, e as ae, u as oe, n as Te, f as Me } from "./index-K1n-pA4G.js";
5
- import { a as Se } from "./menuIndex-BvSKgV5f.js";
2
+ import { c as J, s as be, u as he, a as Ce, p as U, h as Ie } from "./index-DcWo3vcO.js";
3
+ import { u as ke } from "./index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-surfEjhe.js";
4
+ import { g as $, E as S, e as ae, u as oe, n as Te, f as Me } from "./index-jkHlUTog.js";
5
+ import { a as Se } from "./menuIndex-DOraLCRw.js";
6
6
  const F = Ce(U), ne = ke(U), C = he(U), { menus: ue, configMenu: R, activeMenuPath: q, cacheStructures: K } = be(C), z = i(!1), se = j(() => {
7
7
  var e, t;
8
8
  return [
@@ -1,6 +1,6 @@
1
1
  import { ref as _, computed as A } from "vue";
2
- import { f as I, E as s, g as M } from "./index-K1n-pA4G.js";
3
- import { E as N } from "./index-KEXDCkKc.js";
2
+ import { f as I, E as s, g as M } from "./index-jkHlUTog.js";
3
+ import { E as N } from "./index-CTGFVPrU.js";
4
4
  const K = _([]), T = A(() => [
5
5
  {
6
6
  key: "extraButton",
@@ -1,4 +1,4 @@
1
- import { e as t, n as y, u as o } from "./index-K1n-pA4G.js";
1
+ import { e as t, n as y, u as o } from "./index-jkHlUTog.js";
2
2
  import { ref as p } from "vue";
3
3
  const m = (e) => {
4
4
  const a = {};
@@ -1,8 +1,8 @@
1
- import { defineComponent as x, ref as I, reactive as T, resolveComponent as v, createElementBlock as E, openBlock as U, createVNode as u, withCtx as d, createElementVNode as l, createTextVNode as h, toDisplayString as H, nextTick as N, Fragment as q, withDirectives as z, renderSlot as $, vShow as M } from "vue";
2
- import { aw as V } from "./index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-DljCMBcU.js";
3
- import { a9 as X, av as G, D, H as c, G as R, a0 as g } from "./index-K1n-pA4G.js";
1
+ import { defineComponent as B, ref as I, reactive as T, resolveComponent as v, createElementBlock as E, openBlock as U, createVNode as u, withCtx as d, createElementVNode as l, createTextVNode as h, toDisplayString as H, nextTick as N, Fragment as q, withDirectives as z, renderSlot as $, vShow as M } from "vue";
2
+ import { aw as V } from "./index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-surfEjhe.js";
3
+ import { aa as X, ax as J, F as D, H as c, I as R, a1 as g } from "./index-jkHlUTog.js";
4
4
  import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- function J(t) {
5
+ function G(t) {
6
6
  return t == null;
7
7
  }
8
8
  const K = "ElUpload";
@@ -11,7 +11,7 @@ class Q extends Error {
11
11
  super(r), this.name = "UploadAjaxError", this.status = a, this.method = n, this.url = p;
12
12
  }
13
13
  }
14
- function B(t, r, a) {
14
+ function x(t, r, a) {
15
15
  let n;
16
16
  return a.response ? n = `${a.response.error || a.response}` : a.responseText ? n = `${a.responseText}` : n = `fail to ${r.method} ${t} ${a.status}`, new Q(n, a.status, r.method, t);
17
17
  }
@@ -35,12 +35,12 @@ const Y = (t) => {
35
35
  const n = new FormData();
36
36
  if (t.data)
37
37
  for (const [e, i] of Object.entries(t.data))
38
- G(i) && i.length ? n.append(e, ...i) : n.append(e, i);
38
+ J(i) && i.length ? n.append(e, ...i) : n.append(e, i);
39
39
  n.append(t.filename, t.file, t.file.name), r.addEventListener("error", () => {
40
- t.onError(B(a, t, r));
40
+ t.onError(x(a, t, r));
41
41
  }), r.addEventListener("load", () => {
42
42
  if (r.status < 200 || r.status >= 300)
43
- return t.onError(B(a, t, r));
43
+ return t.onError(x(a, t, r));
44
44
  t.onSuccess(W(r));
45
45
  }), r.open(t.method, a, !0), t.withCredentials && "withCredentials" in r && (r.withCredentials = !0);
46
46
  const p = t.headers || {};
@@ -48,7 +48,7 @@ const Y = (t) => {
48
48
  p.forEach((e, i) => r.setRequestHeader(i, e));
49
49
  else
50
50
  for (const [e, i] of Object.entries(p))
51
- J(i) || r.setRequestHeader(e, String(i));
51
+ G(i) || r.setRequestHeader(e, String(i));
52
52
  return r.send(n), r;
53
53
  }, Z = ["text", "picture", "picture-card"];
54
54
  let ee = 1;
@@ -144,7 +144,7 @@ D({
144
144
  type: c(String)
145
145
  }
146
146
  });
147
- const oe = { style: { "text-align": "left" } }, ae = { class: "cropper-warp" }, se = { class: "cropper-warp-left" }, ne = ["src"], le = { class: "cropper-warp-right" }, ie = { class: "cropper-warp-right-item" }, ce = { class: "cropper-warp-right-value" }, pe = ["src"], de = { class: "cropper-warp-right-item" }, ue = { class: "cropper-warp-right-value" }, fe = ["src"], ge = { class: "dialog-footer" }, me = /* @__PURE__ */ x({
147
+ const oe = { style: { "text-align": "left" } }, ae = { class: "cropper-warp" }, se = { class: "cropper-warp-left" }, ne = ["src"], le = { class: "cropper-warp-right" }, ie = { class: "cropper-warp-right-item" }, ce = { class: "cropper-warp-right-value" }, pe = ["src"], de = { class: "cropper-warp-right-item" }, ue = { class: "cropper-warp-right-value" }, fe = ["src"], ge = { class: "dialog-footer" }, me = /* @__PURE__ */ B({
148
148
  __name: "index",
149
149
  props: {
150
150
  title: {
@@ -331,7 +331,7 @@ const oe = { style: { "text-align": "left" } }, ae = { class: "cropper-warp" },
331
331
  ]);
332
332
  };
333
333
  }
334
- }), ve = /* @__PURE__ */ L(me, [["__scopeId", "data-v-4a19ffcf"]]), ye = /* @__PURE__ */ x({
334
+ }), ve = /* @__PURE__ */ L(me, [["__scopeId", "data-v-4a19ffcf"]]), ye = /* @__PURE__ */ B({
335
335
  __name: "index",
336
336
  props: {
337
337
  avatarUrl: {
@@ -409,5 +409,5 @@ export {
409
409
  _e as A,
410
410
  ve as C,
411
411
  Ce as a,
412
- J as i
412
+ G as i
413
413
  };
@@ -1,5 +1,5 @@
1
1
  import { ref as s, defineComponent as f, createElementBlock as m, openBlock as u, createElementVNode as e, createVNode as p, unref as t } from "vue";
2
- import { s as b } from "./index-KEXDCkKc.js";
2
+ import { s as b } from "./index-CTGFVPrU.js";
3
3
  import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const g = () => {
5
5
  const i = s("角色管理"), a = s(), o = s([