ss-component-new 1.3.366 → 1.3.367

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 (109) hide show
  1. package/dist/{MTLLoader-WRN4eUv-.js → MTLLoader-Bwq8YOLy.js} +1 -1
  2. package/dist/{MTLLoader-DeGVtVNV.cjs → MTLLoader-CmAqDwiZ.cjs} +1 -1
  3. package/dist/{OrbitControls-DoBQLB3l.js → OrbitControls-B3711Oa1.js} +1 -1
  4. package/dist/{OrbitControls-CDPEgixi.cjs → OrbitControls-CApAYvVq.cjs} +1 -1
  5. package/dist/{URDFLoader-C0UZqx6e.cjs → URDFLoader-BQznFMXI.cjs} +1 -1
  6. package/dist/{URDFLoader-CQUi0qZq.js → URDFLoader-C1qOfAQy.js} +2 -2
  7. package/dist/{animationData-agvoKsLi.js → animationData-B1vtf_9N.js} +3 -3
  8. package/dist/{animationData-C9-G8Pk-.cjs → animationData-B5JsGpJY.cjs} +1 -1
  9. package/dist/{array-Buzpmqxx.js → array-gQdC099c.js} +4 -4
  10. package/dist/{array-BVGvg9oV.cjs → array-m9EWKum0.cjs} +1 -1
  11. package/dist/{clone-CIfRb69s.js → clone-BdM_mMBe.js} +1 -1
  12. package/dist/clone-DyCrtBLX.cjs +1 -0
  13. package/dist/{eleIcon-BSJV_1ZM.js → eleIcon-CiJIZabf.js} +1 -1
  14. package/dist/{iconfont-BjSu8v7G.js → iconfont-CWxr4V1h.js} +2 -2
  15. package/dist/{iconfont-BLFoQPNm.cjs → iconfont-G8zD0tzl.cjs} +1 -1
  16. package/dist/{index-BkclMB47.js → index-5rJBTfN0.js} +2 -2
  17. package/dist/{index-BTapotRN.js → index-7_XzJDZJ.js} +3 -3
  18. package/dist/{index-Wb0MjFbo.js → index-B1lx7QGJ.js} +3 -3
  19. package/dist/{index-B12f3i9a.js → index-B63TM8dK.js} +4 -4
  20. package/dist/{index-CvU3pAZt.cjs → index-BAboKNSU.cjs} +1 -1
  21. package/dist/{index-BYaor5QC.cjs → index-BDZodiM7.cjs} +1 -1
  22. package/dist/{index-HlbQT-hn.cjs → index-BFNFnOPJ.cjs} +1 -1
  23. package/dist/{index-RfSz1KjM.js → index-BFqe1zjQ.js} +1 -1
  24. package/dist/{index-DMVBf41x.js → index-BJx-YLNm.js} +13 -13
  25. package/dist/index-BKzE1WZB.js +10077 -0
  26. package/dist/{index-CfKeXwiu.js → index-BLKIKjAZ.js} +2 -2
  27. package/dist/{index-D8ML_f91.js → index-BSW02jr1.js} +6 -6
  28. package/dist/{index-mHYDJOd1.cjs → index-BXQU2C9L.cjs} +1 -1
  29. package/dist/{index-BWqvrlth.cjs → index-BYA2TpxQ.cjs} +1 -1
  30. package/dist/{index-DFjv1J5x.js → index-Bh79XTGT.js} +5 -5
  31. package/dist/{index-DHvwfqpt.js → index-Bha5jYuH.js} +2 -2
  32. package/dist/{index-TL11JgVE.js → index-BiQ0qDhn.js} +4 -4
  33. package/dist/{index-D7H81vN9.cjs → index-BiTlAZny.cjs} +1 -1
  34. package/dist/{index-BLlBVShw.js → index-BljNYaSR.js} +6 -6
  35. package/dist/{index-BCDA7SlU.js → index-BoVJe9Sz.js} +6 -6
  36. package/dist/{index-Bhz2-IqE.cjs → index-Byf08qem.cjs} +1 -1
  37. package/dist/{index-KB0XWCq4.cjs → index-C1KvNCq0.cjs} +1 -1
  38. package/dist/{index-D8Eqcxyf.cjs → index-C582B_1F.cjs} +1 -1
  39. package/dist/{index-XIzcfEzL.cjs → index-C6tZLNMp.cjs} +1 -1
  40. package/dist/{index-oUjLRXiv.cjs → index-C7srQ6Cq.cjs} +1 -1
  41. package/dist/{index-De3ztqEp.cjs → index-CBnhmDYl.cjs} +1 -1
  42. package/dist/{index-mxF0_lfh.js → index-CIGlEa5l.js} +1 -1
  43. package/dist/{index-efedHl6M.js → index-CL1jsLyH.js} +4 -4
  44. package/dist/{index-DzMEiYS6.js → index-CMK4Oemk.js} +2 -2
  45. package/dist/{index-DljiGtdC.cjs → index-CScVxCHK.cjs} +1 -1
  46. package/dist/{index-qLMS_ZyR.js → index-CVZihFWP.js} +4 -4
  47. package/dist/{index-CJ4Q3uIn.js → index-CXURAEJY.js} +2 -2
  48. package/dist/{index-BOmb1yOF.js → index-CY1t1-es.js} +8 -8
  49. package/dist/{index-CRWl9Rtz.cjs → index-Cdbpiw_0.cjs} +1 -1
  50. package/dist/{index-CIg6zEay.js → index-CmYd6_TA.js} +1 -1
  51. package/dist/{index-BUac8G2O.cjs → index-Cw3ZR9KG.cjs} +1 -1
  52. package/dist/{index-Bf0HSsSz.cjs → index-CxNKv1iw.cjs} +1 -1
  53. package/dist/{index-DZXpHjYg.js → index-CxaT8nUG.js} +10 -10
  54. package/dist/{index-BVpOApsG.js → index-CyPUiBgj.js} +8 -8
  55. package/dist/{index-d3SRxiwl.js → index-CyYrW6yn.js} +1 -1
  56. package/dist/index-Cyl9Zwx0.cjs +2 -0
  57. package/dist/{index-CQSc__8f.js → index-CynjsoHn.js} +5 -5
  58. package/dist/{index-D5vJAH1x.js → index-CzdGvRTe.js} +1 -1
  59. package/dist/{index-CWCHDC7v.js → index-D4Enuq4j.js} +2 -2
  60. package/dist/{index-D1eUShIF.cjs → index-D7cQkzZS.cjs} +1 -1
  61. package/dist/{index-WvE1qvnd.cjs → index-DE8uBo3T.cjs} +1 -1
  62. package/dist/{index-Dkn9zOYg.cjs → index-DT2JGvXU.cjs} +1 -1
  63. package/dist/{index-DplRG-oo.js → index-DWecJVIA.js} +468 -380
  64. package/dist/{index-BQqYCx-2.cjs → index-D_rDxYYw.cjs} +1 -1
  65. package/dist/{index-DiScwmD1.cjs → index-Do-QOShm.cjs} +1 -1
  66. package/dist/{index-BEli6-9O.cjs → index-DsnjLs_6.cjs} +5 -6
  67. package/dist/{index-Cot4bEbR.cjs → index-FCjRaFtc.cjs} +1 -1
  68. package/dist/{index-Ck1Oilyz.cjs → index-RVerD5Ur.cjs} +1 -1
  69. package/dist/{index-6nl_N4qo.cjs → index-XyNL56Pr.cjs} +1 -1
  70. package/dist/{index-14QhNETL.js → index-ek-OSvj7.js} +2 -2
  71. package/dist/{index-B2Z1OF_A.js → index-lNchCF26.js} +3 -3
  72. package/dist/{index-B8I4TCpA.cjs → index-m3UklLeE.cjs} +1 -1
  73. package/dist/{index-Drv6LFkE.js → index-mB3yZe20.js} +2 -2
  74. package/dist/{index-DVGBqCVu.cjs → index-n_wZZKv5.cjs} +1 -1
  75. package/dist/{index-DQ6jmi_D.cjs → index-vNqVZx-u.cjs} +1 -1
  76. package/dist/{index-9OmDHLTx.js → index-xbas0SI9.js} +2 -2
  77. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BXSlRY5h.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-C6enof9-.js} +4 -4
  78. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DyCuFKb2.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-czn7gBz_.cjs} +1 -1
  79. package/dist/{isString-BLBZkTvd.js → isString-D42PBiNa.js} +1 -1
  80. package/dist/{main-Dyi5uw2c.js → main-C6NaLLT2.js} +4 -4
  81. package/dist/{main-BDbN4DoS.cjs → main-CRaLCwZe.cjs} +1 -1
  82. package/dist/{menuIndex-DP2PAk8P.js → menuIndex-B8pC2BD4.js} +1 -1
  83. package/dist/{menuIndex-4akJxcU5.cjs → menuIndex-Q8yPyfym.cjs} +1 -1
  84. package/dist/{request-B3-w_S8Z.js → request-CbksSN84.js} +67 -67
  85. package/dist/ss-component.cjs +1 -1
  86. package/dist/ss-component.css +1 -1
  87. package/dist/ss-component.js +12 -12
  88. package/dist/ss-component2.cjs +1 -1
  89. package/dist/ss-component2.js +13 -13
  90. package/dist/{threeModel-DRFFJvFX.cjs → threeModel-DTvHMeUt.cjs} +1 -1
  91. package/dist/{threeModel-DEqLQS7r.js → threeModel-DV7OOwJA.js} +5 -5
  92. package/dist/{threePreview-fiZ4fBVp.cjs → threePreview-BbYOxZhG.cjs} +1 -1
  93. package/dist/{threePreview-CQpuh2pD.js → threePreview-DObruSmA.js} +5 -5
  94. package/dist/{threeSceneView-Dx3DcgW-.cjs → threeSceneView-RK444IXm.cjs} +1 -1
  95. package/dist/{threeSceneView-DgNQEj93.js → threeSceneView-RiGOA1xI.js} +12 -12
  96. package/dist/{threeSceneViewForCPMPIP-CCmSCkIN.cjs → threeSceneViewForCPMPIP-0EDp524J.cjs} +1 -1
  97. package/dist/{threeSceneViewForCPMPIP-tZSXieg8.js → threeSceneViewForCPMPIP-VzD8Y6VA.js} +9 -9
  98. package/dist/{threeTrackPathView-6RyMYllT.cjs → threeTrackPathView-B1n0AxKK.cjs} +1 -1
  99. package/dist/{threeTrackPathView-DweDgiiM.js → threeTrackPathView-DM79CjTV.js} +6 -6
  100. package/dist/{threeViewerHost-NwCu86-z.cjs → threeViewerHost-AnDdFENf.cjs} +1 -1
  101. package/dist/{threeViewerHost-CDFwFnu2.js → threeViewerHost-C5Hp5hHL.js} +3 -3
  102. package/dist/{urdfTree-CTYdhkAY.js → urdfTree-AqKBDzXZ.js} +1 -1
  103. package/dist/{urdfTree-BwNXusFz.cjs → urdfTree-BhZDUgBI.cjs} +1 -1
  104. package/dist/{workpieceTreePanel-DjvO5w7t.js → workpieceTreePanel-D4KufWPQ.js} +4 -4
  105. package/dist/{workpieceTreePanel-7llvdn1R.cjs → workpieceTreePanel-DVi8rEx5.cjs} +1 -1
  106. package/package.json +1 -1
  107. package/dist/clone-lZuOJI1b.cjs +0 -1
  108. package/dist/index-Cj6n4Zpo.js +0 -9937
  109. package/dist/index-UWrNcZe6.cjs +0 -2
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-BEli6-9O.cjs"),_=require("./index-D1eUShIF.cjs"),r=require("./index-Dub2SbvH.cjs"),C=require("./index-CW4qJdP8.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const m=u.useMenuState(u.pinia),{menus:c}=u.storeToRefs(m),p=l.ref([]),f=async()=>{var i,t,n,a;const e=await C.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(_.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-DsnjLs_6.cjs"),_=require("./index-D7cQkzZS.cjs"),r=require("./index-Dub2SbvH.cjs"),C=require("./index-CW4qJdP8.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const m=u.useMenuState(u.pinia),{menus:c}=u.storeToRefs(m),p=l.ref([]),f=async()=>{var i,t,n,a;const e=await C.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(_.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 +1 @@
1
- "use strict";const e=require("vue"),_=require("./request-BC2w2vGr.cjs"),C=require("./index-BEli6-9O.cjs"),D=require("./index-CW4qJdP8.cjs"),F=require("./JSEncrypt-IYbV4kRj.cjs"),G=require("./index-Cot4bEbR.cjs"),Q=require("./index-oUjLRXiv.cjs"),M=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),X=require("./index-BYaor5QC.cjs"),U=require("./index-BpPyaNFa.cjs");function Y(r,s){const t=new F.JSEncrypt;return t.setPublicKey(s),t.encrypt(r)||""}function Z(r,s){const t=new F.JSEncrypt;return t.setPrivateKey(s),t.decrypt(r)||""}const N=C.useLoginState(C.pinia),{loginUserInfo:p,cryptoInfo:x}=C.storeToRefs(N),ee=C.useMenuState(C.pinia),{activeMenuPath:A}=C.storeToRefs(ee),R=e.ref(0),L=e.computed(()=>{var r,s,t,o,l,u,a,f,b,m,y;return[{label:"",name:"账号",prop:"账号",value:((r=p.value)==null?void 0:r.account)||(((s=p.value)==null?void 0:s.账号)??"未知")},{label:"",name:"角色名称",prop:"角色名称",value:((t=p.value)==null?void 0:t.layer)==="superAdmin"?"超级管理员":(o=p.value)==null?void 0:o.角色名称},{label:"",name:"部门名称",prop:"部门名称",value:((l=p.value)==null?void 0:l.部门名称)??"未知"},{label:"",name:"状态",prop:"状态",value:((u=p.value)==null?void 0:u.layer)==="superAdmin"?"启用":((a=p.value)==null?void 0:a.状态)??"未知"},{label:"",prop:"头像",isFormColHidden:!0,value:((f=p.value)==null?void 0:f.layer)==="superAdmin"?"启用":((b=p.value)==null?void 0:b.状态)??"未知"},{label:"",prop:"签名",isFormColHidden:!0,value:((m=p.value)==null?void 0:m.layer)==="superAdmin"?"启用":((y=p.value)==null?void 0:y.状态)??"未知"}]}),te=()=>{},V=e.ref(!1),E=e.reactive({dialogTitle:"电子签名",dialogWidth:"30",dialogShow:!1,url:""}),T=e.ref([{label:"签字版",icon:_.edit_pen_default,type:"button",disabled:!1},{label:"电子签名",icon:_.edit_default,type:"button",disabled:!1},{label:"上传手写签名",icon:_.upload_filled_default,type:"buttonUpload",disabled:!1}]),q=e.ref(!1),P=e.ref(!1),K=e.ref(!1),z=e.computed(()=>{var o,l,u;const r=sessionStorage.getItem("authority"),s=JSON.parse(r||""),t=(o=A.value)!=null&&o.startsWith("/")?(l=A.value)==null?void 0:l.substring(1):A.value;return Array.isArray(s)?(K.value=!(s!=null&&s.includes(`${t}/上传头像`)),(u=T.value)==null?void 0:u.map(a=>({...a,disabled:!(s!=null&&s.includes(`${t}/签名`))}))):typeof s=="string"&&(s==null?void 0:s.toUpperCase())==="SUPERADMIN"?T.value:[]}),ae=e.computed(()=>[{key:"signConfig",contents:E},{key:"signTypeList",contents:z.value}]),re=r=>{E.dialogShow=r.label==="电子签名"},O=()=>{E.dialogShow=!1},W=async r=>{var t,o,l,u,a,f,b,m,y;const s=await D.getInsofDataApi({id:r});if(((t=s==null?void 0:s.data)==null?void 0:t.code)===200&&s.data.result&&Array.isArray(s.data.result)&&s.data.result.length>0){const d={...(u=(l=(o=s.data.result)==null?void 0:o[0])==null?void 0:l.value)==null?void 0:u.tableData,id:(f=(a=s.data.result)==null?void 0:a[0])==null?void 0:f.id,layer:(y=(m=(b=s.data.result)==null?void 0:b[0])==null?void 0:m.key)==null?void 0:y.layer};N.setLoginUserInfo(d)}},j=async(r,s)=>{var o,l,u;const t=C.cloneDeep(r);t==null||delete t.id;try{const a=await D.updateInsofDataApi({id:(o=p.value)==null?void 0:o.id,value:{tableData:t}});((l=a==null?void 0:a.data)==null?void 0:l.code)===200&&(O(),_.ElMessage.success("修改成功"),await W((u=p.value)==null?void 0:u.id),await N.setLogRecordAsync({type:s,data:r},A.value))}catch{_.ElMessage.error("修改响应失败")}finally{V.value=!1,q.value=!1,P.value=!1}},se=async(r,s)=>{var l;const t=r==="avatarUrl"?"头像":"签名",o={...p.value,status:((l=p.value)==null?void 0:l.status)??"启用",[t]:s};q.value=r==="avatarUrl",P.value=r==="signature",await j(o,"图片修改")},I=e.reactive({baseCols:[],otherCols:[]}),H=e.ref([]),J=e.ref(),ne=(r,s,t)=>{var u,a,f,b,m,y;let o;const l=s;((a=(u=p.value)==null?void 0:u.layer)==null?void 0:a.toUpperCase())!=="SUPERADMIN"?o=(f=p.value)!=null&&f.password?Z((b=p.value)==null?void 0:b.password,(m=x==null?void 0:x.value)==null?void 0:m.privateKey):G.resetPassword:o=(y=p.value)==null?void 0:y.password,o===l?t():t(new Error("输入的密码与原密码不匹配,请重新输入"))},oe=(r,s,t)=>{s?t():t(new Error("请输入密码"))},le=(r,s,t)=>{var o;s!==((o=J.value)==null?void 0:o.newtPass)?t(new Error("两次输入的密码不一致")):t()},ue=async()=>{var s,t,o,l,u,a,f,b,m,y;const r=await D.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:"系统管理/用户管理"}});if(((s=r==null?void 0:r.data)==null?void 0:s.code)===200&&r.data.result&&((t=r.data.result)==null?void 0:t.length)>0){const d=(f=(a=(u=(l=(o=r.data.result)==null?void 0:o[0])==null?void 0:l.value)==null?void 0:u.pageData)==null?void 0:a.compData)==null?void 0:f.find(n=>(n==null?void 0:n.key)==="header"),w=(b=L.value)==null?void 0:b.map(n=>n==null?void 0:n.prop);I.baseCols=d&&((m=d.contents)==null?void 0:m.map(n=>({...n,isFormColHidden:(w==null?void 0:w.includes(n==null?void 0:n.prop))||(n==null?void 0:n.label)==="操作"})));const S=(y=d.contents)==null?void 0:y.find(n=>(n==null?void 0:n.prop)==="password"),i=[{...S,label:"当前密码",prop:"currentPass",validator:ne},{...S,label:"新密码",prop:"newtPass",validator:oe},{...S,label:"确认密码",prop:"confirmNewPass",validator:le}];I.otherCols=i,de(p.value)}},ie=r=>{J.value=r},ce=async({content:r,buttonName:s})=>{var o,l,u,a,f;let t;s==="确定"&&(t={...p.value,status:((o=p.value)==null?void 0:o.status)??"启用",password:((u=(l=p.value)==null?void 0:l.layer)==null?void 0:u.toUpperCase())==="SUPERADMIN"?r==null?void 0:r.confirmNewPass:Y(r==null?void 0:r.confirmNewPass,(a=x.value)==null?void 0:a.publicKey)}),s==="保存基本信息"&&(t={...p.value,...r,status:((f=p.value)==null?void 0:f.status)??"启用"}),V.value=!0,await j(t,s)},$=()=>{var o,l;const r={base:[{label:"保存基本信息"}],other:[{label:"重置",background:"#b7b8b8"},{label:"确定"}]},s=sessionStorage.getItem("authority"),t=JSON.parse(s||"");if(Array.isArray(t)){const u=(o=A.value)!=null&&o.startsWith("/")?(l=A.value)==null?void 0:l.substring(1):A.value,a=t!=null&&t.includes(`${u}/基本信息`)?r==null?void 0:r.base:[],f=t!=null&&t.includes(`${u}/修改密码`)?r==null?void 0:r.other:[];return{base:a,other:f}}else return typeof t=="string"&&(t==null?void 0:t.toUpperCase())==="SUPERADMIN"?r:null},de=r=>{var s,t,o,l,u;H.value=[{value:"基础信息",label:"基础信息",children:[{type:"form",content:{rowContents:(s=I.baseCols)==null?void 0:s.map(a=>({...a,width:2,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,prop:a==null?void 0:a.prop,contents:a==null?void 0:a.options,value:r[a==null?void 0:a.prop]})),formRules:{userName:[{required:!0,message:"输入不能为空",trigger:"blur"}],birthDay:[{required:!0,message:"输入不能为空",trigger:"blur"}],phone:[{required:!0,message:"输入不能为空",trigger:"blur"}]},buttonValue:(t=$())==null?void 0:t.base,isEnableWrap:!1,isButtonRow:!1},value:""}]},{value:"修改密码",label:"修改密码",children:[{type:"form",content:{rowContents:(o=I.otherCols)==null?void 0:o.map(a=>({...a,width:1,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,contents:a==null?void 0:a.options})),formRules:(l=I.otherCols)==null?void 0:l.reduce((a,f)=>(a[f.prop]=[{required:!0,message:"输入有误",trigger:"change"},{validator:(b,m,y)=>f.validator(b,m,y),trigger:"blur"}],a),{}),buttonValue:(u=$())==null?void 0:u.other,isEnableWrap:!1},value:""}]}]},pe=Object.freeze(Object.defineProperty({__proto__:null,avatarLoading:q,beforeSignDestroy:O,changeFormTrigger:ie,clickFormButton:te,clickSignButton:re,clickTabButton:ce,getUserTableHeadersAsync:ue,itemData:ae,loading:V,refreshLoginUserInfoAsync:W,rowContents:L,signPadInfo:E,signTypes:z,signatureLoading:P,submitImageAsync:se,tabKey:R,tabsContents:H,tempSignTypes:T,uploadDisabled:K},Symbol.toStringTag,{value:"Module"})),fe={class:"avatar-model-wrap"},ge={key:0},ve=e.defineComponent({__name:"index",props:{disabled:{type:Boolean,default:!1},avatarUrl:{type:String,default:""},size:{type:[String,Number],default:"large"},userInfo:{type:Object,default:{}},clickStop:{type:Boolean,default:!0}},emits:["submitImage","deleteImage"],setup(r,{emit:s}){const t=r,o=s,l=e.computed(()=>"http://222.92.178.198:62001"),u=e.ref(""),a=e.ref(""),f=e.ref();e.watch(()=>{var d;return(d=t.userInfo)==null?void 0:d.头像},d=>{a.value=d?l.value+"/"+d:""},{immediate:!0});const b=async()=>{if(!(t!=null&&t.disabled))try{const d=await C.platformDownloadFile({url:u.value});if(d.status!==200)throw new Error(`HTTP error! status: ${d.status}`);const w=new Blob([d.data],{type:d.headers["content-type"]});f.value=w}catch(d){throw new Error(d)}},m=async d=>{var w,S,i,n,h;try{const g=await C.uploadFile(d);((w=g==null?void 0:g.data)==null?void 0:w.code)===200&&(a.value=l.value+"/"+((i=(S=g.data)==null?void 0:S.result)==null?void 0:i.url),u.value=(h=(n=g.data)==null?void 0:n.result)==null?void 0:h.url,o("submitImage",u.value))}catch(g){_.ElMessage.error(g)}},y=async()=>{try{if(!a.value)return}catch(d){_.ElMessage.error(d)}};return(d,w)=>{var S,i;return e.openBlock(),e.createElementBlock("div",fe,[e.createVNode(Q.Avatar,{avatarUrl:a.value??"",avatarBlob:f.value,size:r.size,onClickAvatar:b,onSubmitImage:m,onDeleteImage:y,clickStop:t==null?void 0:t.clickStop},{avatarDefault:e.withCtx(()=>{var n,h,g,v;return[e.createTextVNode(e.toDisplayString(((h=(n=r.userInfo)==null?void 0:n.account)==null?void 0:h.charAt(0))||((v=(g=r.userInfo)==null?void 0:g.姓名)==null?void 0:v.charAt(0))||""),1)]}),_:1},8,["avatarUrl","avatarBlob","size","clickStop"]),r.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",ge,e.toDisplayString(((S=r.userInfo)==null?void 0:S.account)||((i=r.userInfo)==null?void 0:i.账号)||"未知"),1))])}}}),ye=M._export_sfc(ve,[["__scopeId","data-v-1a1f2575"]]),be=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["clickSignButton","clickSubmitSign","beforeDestroy"],setup(r,{emit:s}){const t=r,o=e.ref({}),l=e.ref([]),u=s,a=i=>{o.value.dialogShow=(i==null?void 0:i.label)==="电子签名",u("clickSignButton",i)},f=()=>{o.value.dialogShow=!1,u("beforeDestroy")},b=e.computed(()=>"http://222.92.178.198:62001"),m=i=>{var c;const n=i.split(","),h=(c=n==null?void 0:n[0])==null?void 0:c.match(/:(.*?);/)[1],g=atob(n[1]);let v=g.length;const k=new Uint8Array(v);for(;v--;)k[v]=g.charCodeAt(v);return new Blob([k],{type:h})},y=async i=>{var n,h,g;try{const v=await C.uploadFile(i);((n=v==null?void 0:v.data)==null?void 0:n.code)===200&&u("clickSubmitSign",(g=(h=v.data)==null?void 0:h.result)==null?void 0:g.url)}catch(v){_.ElMessage.error(v)}},d=e.ref(""),w=i=>{d.value=i,o.value.dialogShow=!1;const n=new FormData,h=m(i);n.append("file",h,"image.png"),y(n)},S=i=>{const n=new FormData;n.append("file",i==null?void 0:i.file),y(n)};return e.watch(()=>t==null?void 0:t.itemData,i=>{var h,g,v,k;d.value="",(h=o.value)!=null&&h.dialogShow&&(o.value.dialogShow=!1);const n=(g=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="signConfig"))==null?void 0:g.contents;n&&Object.keys(n).forEach(c=>{(n[c]===void 0||n[c]===null||n[c]==="")&&delete n[c]}),o.value=(v=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="signConfig"))==null?void 0:v.contents,l.value=(k=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="signTypeList"))==null?void 0:k.contents},{immediate:!0}),(i,n)=>{const h=e.resolveComponent("el-empty"),g=e.resolveComponent("el-image"),v=e.resolveComponent("el-button"),k=e.resolveComponent("el-upload");return e.openBlock(),e.createBlock(X.Signature,{signPadInfo:o.value,onBeforeDestroy:f,onClickSubmitSign:w},{signatureRender:e.withCtx(()=>{var c,B;return[e.createElementVNode("div",{class:"signature-render",style:e.normalizeStyle({width:`${(c=o.value)==null?void 0:c.signPadWidth}%`})},[e.createVNode(g,{src:d.value?d.value:b.value+"/"+((B=r.userInfo)==null?void 0:B.签名),fit:"contain"},{error:e.withCtx(()=>[e.createVNode(h,{"image-size":60,description:" "},{image:e.withCtx(()=>[e.createVNode(U.SvgIcon,{name:"emptyImg"})]),_:1})]),_:1},8,["src"])],4)]}),signatureTypes:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,c=>{var B;return e.openBlock(),e.createElementBlock("div",{key:c.label,class:"signature-button"},[(B=c.label)!=null&&B.includes("上传")?(e.openBlock(),e.createBlock(k,{key:0,ref_for:!0,ref:"uploadRef","http-request":S,"show-file-list":!1},{trigger:e.withCtx(()=>[e.createVNode(v,{disabled:c.disabled,id:"themeButton"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),icon:e.withCtx(()=>[e.createVNode(U.SvgIcon,{name:c.icon??""},null,8,["name"])]),_:2},1032,["disabled"])]),_:2},1536)):(e.openBlock(),e.createBlock(v,{key:1,id:"themeButton",disabled:c.disabled,onClick:he=>a(c)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),icon:e.withCtx(()=>[e.createVNode(U.SvgIcon,{name:c.icon??""},null,8,["name"])]),_:2},1032,["disabled","onClick"]))])}),128))]),_:1},8,["signPadInfo"])}}}),me=M._export_sfc(be,[["__scopeId","data-v-ce5a2314"]]);exports.State=pe;exports.ssAvatar=ye;exports.ssSignature=me;exports.tabKey=R;
1
+ "use strict";const e=require("vue"),_=require("./request-BC2w2vGr.cjs"),C=require("./index-DsnjLs_6.cjs"),D=require("./index-CW4qJdP8.cjs"),F=require("./JSEncrypt-IYbV4kRj.cjs"),G=require("./index-FCjRaFtc.cjs"),Q=require("./index-C7srQ6Cq.cjs"),M=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),X=require("./index-BDZodiM7.cjs"),U=require("./index-BpPyaNFa.cjs");function Y(r,s){const t=new F.JSEncrypt;return t.setPublicKey(s),t.encrypt(r)||""}function Z(r,s){const t=new F.JSEncrypt;return t.setPrivateKey(s),t.decrypt(r)||""}const N=C.useLoginState(C.pinia),{loginUserInfo:p,cryptoInfo:x}=C.storeToRefs(N),ee=C.useMenuState(C.pinia),{activeMenuPath:A}=C.storeToRefs(ee),R=e.ref(0),L=e.computed(()=>{var r,s,t,o,l,u,a,f,b,m,y;return[{label:"",name:"账号",prop:"账号",value:((r=p.value)==null?void 0:r.account)||(((s=p.value)==null?void 0:s.账号)??"未知")},{label:"",name:"角色名称",prop:"角色名称",value:((t=p.value)==null?void 0:t.layer)==="superAdmin"?"超级管理员":(o=p.value)==null?void 0:o.角色名称},{label:"",name:"部门名称",prop:"部门名称",value:((l=p.value)==null?void 0:l.部门名称)??"未知"},{label:"",name:"状态",prop:"状态",value:((u=p.value)==null?void 0:u.layer)==="superAdmin"?"启用":((a=p.value)==null?void 0:a.状态)??"未知"},{label:"",prop:"头像",isFormColHidden:!0,value:((f=p.value)==null?void 0:f.layer)==="superAdmin"?"启用":((b=p.value)==null?void 0:b.状态)??"未知"},{label:"",prop:"签名",isFormColHidden:!0,value:((m=p.value)==null?void 0:m.layer)==="superAdmin"?"启用":((y=p.value)==null?void 0:y.状态)??"未知"}]}),te=()=>{},V=e.ref(!1),E=e.reactive({dialogTitle:"电子签名",dialogWidth:"30",dialogShow:!1,url:""}),T=e.ref([{label:"签字版",icon:_.edit_pen_default,type:"button",disabled:!1},{label:"电子签名",icon:_.edit_default,type:"button",disabled:!1},{label:"上传手写签名",icon:_.upload_filled_default,type:"buttonUpload",disabled:!1}]),q=e.ref(!1),P=e.ref(!1),K=e.ref(!1),z=e.computed(()=>{var o,l,u;const r=sessionStorage.getItem("authority"),s=JSON.parse(r||""),t=(o=A.value)!=null&&o.startsWith("/")?(l=A.value)==null?void 0:l.substring(1):A.value;return Array.isArray(s)?(K.value=!(s!=null&&s.includes(`${t}/上传头像`)),(u=T.value)==null?void 0:u.map(a=>({...a,disabled:!(s!=null&&s.includes(`${t}/签名`))}))):typeof s=="string"&&(s==null?void 0:s.toUpperCase())==="SUPERADMIN"?T.value:[]}),ae=e.computed(()=>[{key:"signConfig",contents:E},{key:"signTypeList",contents:z.value}]),re=r=>{E.dialogShow=r.label==="电子签名"},O=()=>{E.dialogShow=!1},W=async r=>{var t,o,l,u,a,f,b,m,y;const s=await D.getInsofDataApi({id:r});if(((t=s==null?void 0:s.data)==null?void 0:t.code)===200&&s.data.result&&Array.isArray(s.data.result)&&s.data.result.length>0){const d={...(u=(l=(o=s.data.result)==null?void 0:o[0])==null?void 0:l.value)==null?void 0:u.tableData,id:(f=(a=s.data.result)==null?void 0:a[0])==null?void 0:f.id,layer:(y=(m=(b=s.data.result)==null?void 0:b[0])==null?void 0:m.key)==null?void 0:y.layer};N.setLoginUserInfo(d)}},j=async(r,s)=>{var o,l,u;const t=C.cloneDeep(r);t==null||delete t.id;try{const a=await D.updateInsofDataApi({id:(o=p.value)==null?void 0:o.id,value:{tableData:t}});((l=a==null?void 0:a.data)==null?void 0:l.code)===200&&(O(),_.ElMessage.success("修改成功"),await W((u=p.value)==null?void 0:u.id),await N.setLogRecordAsync({type:s,data:r},A.value))}catch{_.ElMessage.error("修改响应失败")}finally{V.value=!1,q.value=!1,P.value=!1}},se=async(r,s)=>{var l;const t=r==="avatarUrl"?"头像":"签名",o={...p.value,status:((l=p.value)==null?void 0:l.status)??"启用",[t]:s};q.value=r==="avatarUrl",P.value=r==="signature",await j(o,"图片修改")},I=e.reactive({baseCols:[],otherCols:[]}),H=e.ref([]),J=e.ref(),ne=(r,s,t)=>{var u,a,f,b,m,y;let o;const l=s;((a=(u=p.value)==null?void 0:u.layer)==null?void 0:a.toUpperCase())!=="SUPERADMIN"?o=(f=p.value)!=null&&f.password?Z((b=p.value)==null?void 0:b.password,(m=x==null?void 0:x.value)==null?void 0:m.privateKey):G.resetPassword:o=(y=p.value)==null?void 0:y.password,o===l?t():t(new Error("输入的密码与原密码不匹配,请重新输入"))},oe=(r,s,t)=>{s?t():t(new Error("请输入密码"))},le=(r,s,t)=>{var o;s!==((o=J.value)==null?void 0:o.newtPass)?t(new Error("两次输入的密码不一致")):t()},ue=async()=>{var s,t,o,l,u,a,f,b,m,y;const r=await D.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:"系统管理/用户管理"}});if(((s=r==null?void 0:r.data)==null?void 0:s.code)===200&&r.data.result&&((t=r.data.result)==null?void 0:t.length)>0){const d=(f=(a=(u=(l=(o=r.data.result)==null?void 0:o[0])==null?void 0:l.value)==null?void 0:u.pageData)==null?void 0:a.compData)==null?void 0:f.find(n=>(n==null?void 0:n.key)==="header"),w=(b=L.value)==null?void 0:b.map(n=>n==null?void 0:n.prop);I.baseCols=d&&((m=d.contents)==null?void 0:m.map(n=>({...n,isFormColHidden:(w==null?void 0:w.includes(n==null?void 0:n.prop))||(n==null?void 0:n.label)==="操作"})));const S=(y=d.contents)==null?void 0:y.find(n=>(n==null?void 0:n.prop)==="password"),i=[{...S,label:"当前密码",prop:"currentPass",validator:ne},{...S,label:"新密码",prop:"newtPass",validator:oe},{...S,label:"确认密码",prop:"confirmNewPass",validator:le}];I.otherCols=i,de(p.value)}},ie=r=>{J.value=r},ce=async({content:r,buttonName:s})=>{var o,l,u,a,f;let t;s==="确定"&&(t={...p.value,status:((o=p.value)==null?void 0:o.status)??"启用",password:((u=(l=p.value)==null?void 0:l.layer)==null?void 0:u.toUpperCase())==="SUPERADMIN"?r==null?void 0:r.confirmNewPass:Y(r==null?void 0:r.confirmNewPass,(a=x.value)==null?void 0:a.publicKey)}),s==="保存基本信息"&&(t={...p.value,...r,status:((f=p.value)==null?void 0:f.status)??"启用"}),V.value=!0,await j(t,s)},$=()=>{var o,l;const r={base:[{label:"保存基本信息"}],other:[{label:"重置",background:"#b7b8b8"},{label:"确定"}]},s=sessionStorage.getItem("authority"),t=JSON.parse(s||"");if(Array.isArray(t)){const u=(o=A.value)!=null&&o.startsWith("/")?(l=A.value)==null?void 0:l.substring(1):A.value,a=t!=null&&t.includes(`${u}/基本信息`)?r==null?void 0:r.base:[],f=t!=null&&t.includes(`${u}/修改密码`)?r==null?void 0:r.other:[];return{base:a,other:f}}else return typeof t=="string"&&(t==null?void 0:t.toUpperCase())==="SUPERADMIN"?r:null},de=r=>{var s,t,o,l,u;H.value=[{value:"基础信息",label:"基础信息",children:[{type:"form",content:{rowContents:(s=I.baseCols)==null?void 0:s.map(a=>({...a,width:2,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,prop:a==null?void 0:a.prop,contents:a==null?void 0:a.options,value:r[a==null?void 0:a.prop]})),formRules:{userName:[{required:!0,message:"输入不能为空",trigger:"blur"}],birthDay:[{required:!0,message:"输入不能为空",trigger:"blur"}],phone:[{required:!0,message:"输入不能为空",trigger:"blur"}]},buttonValue:(t=$())==null?void 0:t.base,isEnableWrap:!1,isButtonRow:!1},value:""}]},{value:"修改密码",label:"修改密码",children:[{type:"form",content:{rowContents:(o=I.otherCols)==null?void 0:o.map(a=>({...a,width:1,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,contents:a==null?void 0:a.options})),formRules:(l=I.otherCols)==null?void 0:l.reduce((a,f)=>(a[f.prop]=[{required:!0,message:"输入有误",trigger:"change"},{validator:(b,m,y)=>f.validator(b,m,y),trigger:"blur"}],a),{}),buttonValue:(u=$())==null?void 0:u.other,isEnableWrap:!1},value:""}]}]},pe=Object.freeze(Object.defineProperty({__proto__:null,avatarLoading:q,beforeSignDestroy:O,changeFormTrigger:ie,clickFormButton:te,clickSignButton:re,clickTabButton:ce,getUserTableHeadersAsync:ue,itemData:ae,loading:V,refreshLoginUserInfoAsync:W,rowContents:L,signPadInfo:E,signTypes:z,signatureLoading:P,submitImageAsync:se,tabKey:R,tabsContents:H,tempSignTypes:T,uploadDisabled:K},Symbol.toStringTag,{value:"Module"})),fe={class:"avatar-model-wrap"},ge={key:0},ve=e.defineComponent({__name:"index",props:{disabled:{type:Boolean,default:!1},avatarUrl:{type:String,default:""},size:{type:[String,Number],default:"large"},userInfo:{type:Object,default:{}},clickStop:{type:Boolean,default:!0}},emits:["submitImage","deleteImage"],setup(r,{emit:s}){const t=r,o=s,l=e.computed(()=>"http://222.92.178.198:62001"),u=e.ref(""),a=e.ref(""),f=e.ref();e.watch(()=>{var d;return(d=t.userInfo)==null?void 0:d.头像},d=>{a.value=d?l.value+"/"+d:""},{immediate:!0});const b=async()=>{if(!(t!=null&&t.disabled))try{const d=await C.platformDownloadFile({url:u.value});if(d.status!==200)throw new Error(`HTTP error! status: ${d.status}`);const w=new Blob([d.data],{type:d.headers["content-type"]});f.value=w}catch(d){throw new Error(d)}},m=async d=>{var w,S,i,n,h;try{const g=await C.uploadFile(d);((w=g==null?void 0:g.data)==null?void 0:w.code)===200&&(a.value=l.value+"/"+((i=(S=g.data)==null?void 0:S.result)==null?void 0:i.url),u.value=(h=(n=g.data)==null?void 0:n.result)==null?void 0:h.url,o("submitImage",u.value))}catch(g){_.ElMessage.error(g)}},y=async()=>{try{if(!a.value)return}catch(d){_.ElMessage.error(d)}};return(d,w)=>{var S,i;return e.openBlock(),e.createElementBlock("div",fe,[e.createVNode(Q.Avatar,{avatarUrl:a.value??"",avatarBlob:f.value,size:r.size,onClickAvatar:b,onSubmitImage:m,onDeleteImage:y,clickStop:t==null?void 0:t.clickStop},{avatarDefault:e.withCtx(()=>{var n,h,g,v;return[e.createTextVNode(e.toDisplayString(((h=(n=r.userInfo)==null?void 0:n.account)==null?void 0:h.charAt(0))||((v=(g=r.userInfo)==null?void 0:g.姓名)==null?void 0:v.charAt(0))||""),1)]}),_:1},8,["avatarUrl","avatarBlob","size","clickStop"]),r.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",ge,e.toDisplayString(((S=r.userInfo)==null?void 0:S.account)||((i=r.userInfo)==null?void 0:i.账号)||"未知"),1))])}}}),ye=M._export_sfc(ve,[["__scopeId","data-v-1a1f2575"]]),be=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["clickSignButton","clickSubmitSign","beforeDestroy"],setup(r,{emit:s}){const t=r,o=e.ref({}),l=e.ref([]),u=s,a=i=>{o.value.dialogShow=(i==null?void 0:i.label)==="电子签名",u("clickSignButton",i)},f=()=>{o.value.dialogShow=!1,u("beforeDestroy")},b=e.computed(()=>"http://222.92.178.198:62001"),m=i=>{var c;const n=i.split(","),h=(c=n==null?void 0:n[0])==null?void 0:c.match(/:(.*?);/)[1],g=atob(n[1]);let v=g.length;const k=new Uint8Array(v);for(;v--;)k[v]=g.charCodeAt(v);return new Blob([k],{type:h})},y=async i=>{var n,h,g;try{const v=await C.uploadFile(i);((n=v==null?void 0:v.data)==null?void 0:n.code)===200&&u("clickSubmitSign",(g=(h=v.data)==null?void 0:h.result)==null?void 0:g.url)}catch(v){_.ElMessage.error(v)}},d=e.ref(""),w=i=>{d.value=i,o.value.dialogShow=!1;const n=new FormData,h=m(i);n.append("file",h,"image.png"),y(n)},S=i=>{const n=new FormData;n.append("file",i==null?void 0:i.file),y(n)};return e.watch(()=>t==null?void 0:t.itemData,i=>{var h,g,v,k;d.value="",(h=o.value)!=null&&h.dialogShow&&(o.value.dialogShow=!1);const n=(g=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="signConfig"))==null?void 0:g.contents;n&&Object.keys(n).forEach(c=>{(n[c]===void 0||n[c]===null||n[c]==="")&&delete n[c]}),o.value=(v=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="signConfig"))==null?void 0:v.contents,l.value=(k=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="signTypeList"))==null?void 0:k.contents},{immediate:!0}),(i,n)=>{const h=e.resolveComponent("el-empty"),g=e.resolveComponent("el-image"),v=e.resolveComponent("el-button"),k=e.resolveComponent("el-upload");return e.openBlock(),e.createBlock(X.Signature,{signPadInfo:o.value,onBeforeDestroy:f,onClickSubmitSign:w},{signatureRender:e.withCtx(()=>{var c,B;return[e.createElementVNode("div",{class:"signature-render",style:e.normalizeStyle({width:`${(c=o.value)==null?void 0:c.signPadWidth}%`})},[e.createVNode(g,{src:d.value?d.value:b.value+"/"+((B=r.userInfo)==null?void 0:B.签名),fit:"contain"},{error:e.withCtx(()=>[e.createVNode(h,{"image-size":60,description:" "},{image:e.withCtx(()=>[e.createVNode(U.SvgIcon,{name:"emptyImg"})]),_:1})]),_:1},8,["src"])],4)]}),signatureTypes:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,c=>{var B;return e.openBlock(),e.createElementBlock("div",{key:c.label,class:"signature-button"},[(B=c.label)!=null&&B.includes("上传")?(e.openBlock(),e.createBlock(k,{key:0,ref_for:!0,ref:"uploadRef","http-request":S,"show-file-list":!1},{trigger:e.withCtx(()=>[e.createVNode(v,{disabled:c.disabled,id:"themeButton"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),icon:e.withCtx(()=>[e.createVNode(U.SvgIcon,{name:c.icon??""},null,8,["name"])]),_:2},1032,["disabled"])]),_:2},1536)):(e.openBlock(),e.createBlock(v,{key:1,id:"themeButton",disabled:c.disabled,onClick:he=>a(c)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),icon:e.withCtx(()=>[e.createVNode(U.SvgIcon,{name:c.icon??""},null,8,["name"])]),_:2},1032,["disabled","onClick"]))])}),128))]),_:1},8,["signPadInfo"])}}}),me=M._export_sfc(be,[["__scopeId","data-v-ce5a2314"]]);exports.State=pe;exports.ssAvatar=ye;exports.ssSignature=me;exports.tabKey=R;