ss-component-new 1.3.428 → 1.3.429

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 (110) hide show
  1. package/dist/{MTLLoader-DBXJU4gy.js → MTLLoader-BO8dhFyw.js} +1 -1
  2. package/dist/{MTLLoader-C1qSZuWT.cjs → MTLLoader-DErZsCj2.cjs} +1 -1
  3. package/dist/{OrbitControls-BFwyCnTH.cjs → OrbitControls-6d2uLMhv.cjs} +1 -1
  4. package/dist/{OrbitControls-BK6rha_f.js → OrbitControls-CvMkUFet.js} +1 -1
  5. package/dist/{URDFLoader-B4rOIDHb.js → URDFLoader-CCPlU2Oa.js} +2 -2
  6. package/dist/{URDFLoader-CTaB1j6-.cjs → URDFLoader-CHrCe4Xz.cjs} +1 -1
  7. package/dist/{animationData-Bfdz_yNt.js → animationData-8-DV2GoG.js} +3 -3
  8. package/dist/{animationData-DugoMERO.cjs → animationData-Ccd7odQI.cjs} +1 -1
  9. package/dist/{array-BOctoevY.cjs → array-DZzUaXFt.cjs} +1 -1
  10. package/dist/{array-CtInsg0G.js → array-pHejdxe8.js} +3 -3
  11. package/dist/{clone-r23wXuC7.js → clone-BCRbWoC6.js} +1 -1
  12. package/dist/clone-s9Wp2P9L.cjs +1 -0
  13. package/dist/{iconfont-C4b-8B6C.js → iconfont-B9OLS8Ss.js} +2 -2
  14. package/dist/{iconfont-B8J8hnDJ.cjs → iconfont-CE6rkJC1.cjs} +1 -1
  15. package/dist/{index-BIbJs6Kp.cjs → index--7t5aUL0.cjs} +1 -1
  16. package/dist/{index-x-HWwt4p.js → index-2HKW4B41.js} +11 -11
  17. package/dist/{index-CJijEg9W.js → index-2dx2zDLD.js} +7 -7
  18. package/dist/{index-CnsDmHXo.cjs → index-B0dnim3E.cjs} +1 -1
  19. package/dist/{index-Dk-xbMrl.js → index-B2-yXg-E.js} +18 -18
  20. package/dist/{index-DAfCxuFU.js → index-B3HeYBJP.js} +1 -1
  21. package/dist/{index-BBr25gXh.js → index-B5TdVacm.js} +4 -4
  22. package/dist/{index-CdGqaqYM.js → index-BAKm2v2u.js} +2 -2
  23. package/dist/{index-D3lXIyot.cjs → index-BC6FsVu3.cjs} +1 -1
  24. package/dist/index-BCMrZccJ.js +23499 -0
  25. package/dist/{index-Bu5lDLj_.cjs → index-BKpsNbPz.cjs} +1 -1
  26. package/dist/{index-mDUckx7n.cjs → index-BTgBTBzJ.cjs} +1 -1
  27. package/dist/{index-DhD0tnVr.cjs → index-BXFZRyJm.cjs} +1 -1
  28. package/dist/{index-6RECQqV8.js → index-BXXquUoh.js} +1 -1
  29. package/dist/{index-DQdcA8b0.cjs → index-B_P1m2_w.cjs} +1 -1
  30. package/dist/{index-DpRkYDKO.cjs → index-Bac3hrke.cjs} +1 -1
  31. package/dist/{index-CKCe1GPP.cjs → index-Bc-__QrO.cjs} +1 -1
  32. package/dist/{index-C772JVG0.cjs → index-BdcR-Zbo.cjs} +1 -1
  33. package/dist/{index-DAZMn3y_.js → index-C1wC2zmo.js} +1 -1
  34. package/dist/{index-DvbvoiZG.js → index-C8rRFCQO.js} +15 -15
  35. package/dist/{index-BK6-AVLE.js → index-CDGid5AJ.js} +339 -330
  36. package/dist/{index-BfK0dq3V.cjs → index-CDQRaHJC.cjs} +1 -1
  37. package/dist/{index-ClvA5-wg.cjs → index-CDzcL3tr.cjs} +8 -8
  38. package/dist/{index-Bn4g3hXz.cjs → index-CekSiXkB.cjs} +1 -1
  39. package/dist/{index-CZly4koJ.js → index-ChYFq0qG.js} +36 -36
  40. package/dist/{index-BeOgM-lp.cjs → index-CkRoSVGu.cjs} +1 -1
  41. package/dist/{index-CNRHr3kT.cjs → index-CvtLCp_D.cjs} +1 -1
  42. package/dist/index-CwJWRHpq.cjs +26 -0
  43. package/dist/{index-1tRX531i.cjs → index-CyKaBIAq.cjs} +1 -1
  44. package/dist/{index-jDRNGigR.js → index-CzmjqWX3.js} +8 -8
  45. package/dist/{index-CeXLp3RG.js → index-D0YFj1S0.js} +4 -4
  46. package/dist/{index-B0HOwfWc.cjs → index-D28QwAED.cjs} +1 -1
  47. package/dist/{index-mpH7L8Rm.js → index-DAotycbe.js} +2 -2
  48. package/dist/{index-NSrMRasA.cjs → index-DHtzMAJN.cjs} +1 -1
  49. package/dist/{index-DyHFsX8U.js → index-DNuPcVX8.js} +1 -1
  50. package/dist/{index-H2suIBRd.js → index-DP4CExpp.js} +2 -2
  51. package/dist/{index-N0L2zoGC.cjs → index-DQ0glSaK.cjs} +1 -1
  52. package/dist/{index-D38qJHp0.js → index-DRbjtJSI.js} +21 -21
  53. package/dist/index-DWDKS_mG.cjs +1 -0
  54. package/dist/{index-DzN70K91.js → index-Dca1yZsA.js} +1230 -1204
  55. package/dist/{index-CdsqSTRI.js → index-DkAVofQ2.js} +20 -20
  56. package/dist/{index-DlXwTcJ9.js → index-DkMqgt-A.js} +2 -2
  57. package/dist/{index-rGJF9UJ9.js → index-DmM_3J6r.js} +1339 -1364
  58. package/dist/index-Dpd1Fkoh.js +10858 -0
  59. package/dist/{index-qhLt4UGH.cjs → index-DtZyGfmw.cjs} +1 -1
  60. package/dist/{index-TDwSq2BF.js → index-DwRB3mEW.js} +2 -2
  61. package/dist/{index-C9LONCdW.js → index-H9am4T8r.js} +5 -5
  62. package/dist/{index-BDClkBzq.cjs → index-MnMBinVE.cjs} +1 -1
  63. package/dist/index-NhDJ3v8j.cjs +2 -0
  64. package/dist/{index-CTkNgtX3.cjs → index-ScGSWjOZ.cjs} +1 -1
  65. package/dist/{index-HHT3da7j.cjs → index-T0b3T_GV.cjs} +12 -12
  66. package/dist/{index-Dbv6QX4e.js → index-TCY8fxJR.js} +2 -2
  67. package/dist/{index-Bi1DonQa.js → index-oX3fgOut.js} +12 -12
  68. package/dist/{index-ss_5hS2p.js → index-pZoLjYCI.js} +1 -1
  69. package/dist/{index-B7H-5M2Y.cjs → index-q2btT6hK.cjs} +1 -1
  70. package/dist/{index-BtWec77G.cjs → index-t3NJPoBF.cjs} +1 -1
  71. package/dist/{index-BWtc895B.js → index-uFoYeDxn.js} +1 -1
  72. package/dist/{index-DaiB_qqV.cjs → index-zVC9Fbvd.cjs} +1 -1
  73. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Bk-thOPD.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Cdh_SvWZ.cjs} +59 -59
  74. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-EOt2_XRY.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-aIoTx6LL.js} +1645 -1650
  75. package/dist/{main-Dyv9tK3q.cjs → main-BF0V6g7u.cjs} +1 -1
  76. package/dist/{main-BazhXMmW.js → main-BkeQdokf.js} +4 -4
  77. package/dist/{menuIndex-qnbpFYeU.js → menuIndex-B01KCnnT.js} +1 -1
  78. package/dist/{menuIndex-B8QQIas4.cjs → menuIndex-uHAeyJKX.cjs} +1 -1
  79. package/dist/ss-component.cjs +1 -1
  80. package/dist/ss-component.css +3 -3
  81. package/dist/ss-component.js +15 -15
  82. package/dist/ss-component2.cjs +1 -1
  83. package/dist/ss-component2.js +12 -12
  84. package/dist/{threeModel-BWwXtPBu.cjs → threeModel-CRdpFEjJ.cjs} +1 -1
  85. package/dist/{threeModel-CKvba3tD.js → threeModel-CXDWR_ot.js} +4 -4
  86. package/dist/{threePreview-GizvH53S.js → threePreview-BD2V1IFv.js} +4 -4
  87. package/dist/{threePreview-CbKggw3I.cjs → threePreview-BbD4l0jX.cjs} +1 -1
  88. package/dist/{threeSceneView-CJnJdw2X.cjs → threeSceneView-Cq4atF6M.cjs} +1 -1
  89. package/dist/{threeSceneView-D6UJzKUj.js → threeSceneView-nA9-mqTO.js} +11 -11
  90. package/dist/{threeSceneViewForCPMPIP-hUnAkwBg.cjs → threeSceneViewForCPMPIP-BOX3UI38.cjs} +1 -1
  91. package/dist/{threeSceneViewForCPMPIP-NCyWbrvb.js → threeSceneViewForCPMPIP-NVVRCUyD.js} +8 -8
  92. package/dist/{threeTrackPathView-ZqSjOtFS.cjs → threeTrackPathView-DK0kJqtr.cjs} +1 -1
  93. package/dist/{threeTrackPathView-DSHB2LWA.js → threeTrackPathView-DLV4IRvx.js} +4 -4
  94. package/dist/{threeViewerHost-D0oJ3S3c.cjs → threeViewerHost-BJYGw_o_.cjs} +1 -1
  95. package/dist/{threeViewerHost-BEEjkIf3.js → threeViewerHost-ClPsPLr9.js} +3 -3
  96. package/dist/{urdfTree-DnkBJIj6.cjs → urdfTree-B77Z26KL.cjs} +1 -1
  97. package/dist/{urdfTree-DEWAJ5kl.js → urdfTree-U677NJbL.js} +1 -1
  98. package/dist/{workpieceTreePanel-XOSlhouq.js → workpieceTreePanel-BMF5xzwy.js} +4 -4
  99. package/dist/{workpieceTreePanel-DzpjPYZ9.cjs → workpieceTreePanel-BpjkjEOk.cjs} +1 -1
  100. package/package.json +1 -1
  101. package/dist/clone-t2ps0jmw.cjs +0 -1
  102. package/dist/index-BSeL_Eve.js +0 -10837
  103. package/dist/index-CtLw-tqJ.js +0 -23522
  104. package/dist/index-DAEMvwnX.cjs +0 -26
  105. package/dist/index-DUBEV33e.cjs +0 -2
  106. package/dist/index-DgpEgbFi.cjs +0 -1
  107. package/dist/obj/model.mtl +0 -42
  108. package/dist/obj/model.obj +0 -26110
  109. package/public/obj/model.mtl +0 -42
  110. package/public/obj/model.obj +0 -26110
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),_=require("./request-Dl8yi2iS.cjs"),C=require("./index-ClvA5-wg.cjs"),D=require("./index-DmwxzDGW.cjs"),F=require("./JSEncrypt-IYbV4kRj.cjs"),G=require("./index-Bn4g3hXz.cjs"),Q=require("./index-Bu5lDLj_.cjs"),M=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),X=require("./index-HHT3da7j.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"),C=require("./request-Dl8yi2iS.cjs"),_=require("./index-CDzcL3tr.cjs"),N=require("./index-DmwxzDGW.cjs"),M=require("./JSEncrypt-IYbV4kRj.cjs"),Q=require("./index-CekSiXkB.cjs"),X=require("./index-BKpsNbPz.cjs"),T=require("./index-T0b3T_GV.cjs"),R=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),U=require("./index-BpPyaNFa.cjs");function Y(r,s){const t=new M.JSEncrypt;return t.setPublicKey(s),t.encrypt(r)||""}function Z(r,s){const t=new M.JSEncrypt;return t.setPrivateKey(s),t.decrypt(r)||""}const V=_.useLoginState(_.pinia),{loginUserInfo:p,cryptoInfo:x}=_.storeToRefs(V),ee=_.useMenuState(_.pinia),{activeMenuPath:A}=_.storeToRefs(ee),L=e.ref(0),K=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=()=>{},q=e.ref(!1),E=e.reactive({dialogTitle:"电子签名",dialogWidth:"30",dialogShow:!1,url:""}),D=e.ref([{label:"签字版",icon:C.edit_pen_default,type:"button",disabled:!1},{label:"电子签名",icon:C.edit_default,type:"button",disabled:!1},{label:"上传手写签名",icon:C.upload_filled_default,type:"buttonUpload",disabled:!1}]),P=e.ref(!1),$=e.ref(!1),z=e.ref(!1),O=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)?(z.value=!(s!=null&&s.includes(`${t}/上传头像`)),(u=D.value)==null?void 0:u.map(a=>({...a,disabled:!(s!=null&&s.includes(`${t}/签名`))}))):typeof s=="string"&&(s==null?void 0:s.toUpperCase())==="SUPERADMIN"?D.value:[]}),ae=e.computed(()=>[{key:"signConfig",contents:E},{key:"signTypeList",contents:O.value}]),re=r=>{E.dialogShow=r.label==="电子签名"},W=()=>{E.dialogShow=!1},j=async r=>{var t,o,l,u,a,f,b,m,y;const s=await N.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};V.setLoginUserInfo(d)}},H=async(r,s)=>{var o,l,u;const t=_.cloneDeep(r);t==null||delete t.id;try{const a=await N.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&&(W(),C.ElMessage.success("修改成功"),await j((u=p.value)==null?void 0:u.id),await V.setLogRecordAsync({type:s,data:r},A.value))}catch{C.ElMessage.error("修改响应失败")}finally{q.value=!1,P.value=!1,$.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};P.value=r==="avatarUrl",$.value=r==="signature",await H(o,"图片修改")},I=e.reactive({baseCols:[],otherCols:[]}),J=e.ref([]),G=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):Q.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=G.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 N.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=K.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=>{G.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)??"启用"}),q.value=!0,await H(t,s)},F=()=>{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;J.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=F())==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=F())==null?void 0:u.other,isEnableWrap:!1},value:""}]}]},pe=Object.freeze(Object.defineProperty({__proto__:null,avatarLoading:P,beforeSignDestroy:W,changeFormTrigger:ie,clickFormButton:te,clickSignButton:re,clickTabButton:ce,getUserTableHeadersAsync:ue,itemData:ae,loading:q,refreshLoginUserInfoAsync:j,rowContents:K,signPadInfo:E,signTypes:O,signatureLoading:$,submitImageAsync:se,tabKey:L,tabsContents:J,tempSignTypes:D,uploadDisabled:z},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 _.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 T.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){C.ElMessage.error(g)}},y=async()=>{try{if(!a.value)return}catch(d){C.ElMessage.error(d)}};return(d,w)=>{var S,i;return e.openBlock(),e.createElementBlock("div",fe,[e.createVNode(X.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=R._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 T.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){C.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(T.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=R._export_sfc(be,[["__scopeId","data-v-ce5a2314"]]);exports.State=pe;exports.ssAvatar=ye;exports.ssSignature=me;exports.tabKey=L;
@@ -1,8 +1,8 @@
1
- import { s as h, b as l, p as w, t as F } from "./index-rGJF9UJ9.js";
1
+ import { s as h, b as l, p as w, r as F } from "./index-DmM_3J6r.js";
2
2
  import { s as f } from "./request-XJsZ4h2T.js";
3
3
  import { watch as p } from "vue";
4
- const P = l(w), { systemUrl: s, extraUrl: o } = h(P);
5
- let d = s.value === "" || !s.value ? "http://222.92.178.198:63002" : s.value, m = o.value === "" || !o.value ? "http://139.196.154.85:20015" : o.value;
4
+ const P = l(w), { systemUrl: s, extraUrl: r } = h(P);
5
+ let d = s.value === "" || !s.value ? "http://222.92.178.198:63002" : s.value, m = r.value === "" || !r.value ? "http://139.196.154.85:20015" : r.value;
6
6
  p(
7
7
  () => s.value,
8
8
  () => {
@@ -11,9 +11,9 @@ p(
11
11
  { deep: !0, immediate: !0 }
12
12
  );
13
13
  p(
14
- () => o.value,
14
+ () => r.value,
15
15
  () => {
16
- m = o.value === "" || !o.value ? "http://139.196.154.85:20015" : o.value;
16
+ m = r.value === "" || !r.value ? "http://139.196.154.85:20015" : r.value;
17
17
  },
18
18
  { deep: !0, immediate: !0 }
19
19
  );
@@ -37,24 +37,24 @@ const b = () => {
37
37
  return;
38
38
  const e = new FormData();
39
39
  e.set("file", t);
40
- const r = a.systemInfo.plat_id;
41
- return e.set("systemKey", r), await S(e);
40
+ const o = a.systemInfo.plat_id;
41
+ return e.set("systemKey", o), await S(e);
42
42
  };
43
43
  return { updateFacePhoto: async (t) => {
44
- const e = a.loginUserInfo, { password: r } = e || {}, n = {
44
+ const e = a.loginUserInfo, { password: o } = e || {}, n = {
45
45
  platId: v.value,
46
46
  userName: y.value,
47
- password: r,
47
+ password: o,
48
48
  faceURL: t
49
49
  };
50
50
  g.value && (n.platId = ""), await V(n);
51
51
  }, initVerifySelf: async (t) => {
52
52
  var i;
53
- const e = await c(t), { account: r, password: n } = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.data) || {};
53
+ const e = await c(t), { account: o, password: n } = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.data) || {};
54
54
  if (!u)
55
55
  return !1;
56
56
  const I = a.loginUserInfo, { password: U } = I || {};
57
- return r === u.value && n === U;
57
+ return o === u.value && n === U;
58
58
  }, initVerify: async (t) => await c(t) };
59
59
  };
60
60
  export {
@@ -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-D38qJHp0.js";
4
- import { H as Le, I as ft, u as vt, p as gt } from "./index-rGJF9UJ9.js";
3
+ import { u as Se, o as _t, s as de, f as ce } from "./index-DRbjtJSI.js";
4
+ import { G as Le, H as ft, u as vt, p as gt } from "./index-DmM_3J6r.js";
5
5
  import { s as _e } from "./index-11kpzK0A.js";
6
- import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-EOt2_XRY.js";
7
- import "./index-CtLw-tqJ.js";
6
+ import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-aIoTx6LL.js";
7
+ import "./index-BCMrZccJ.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-BWtc895B.js";
11
- import "./index-Dk-xbMrl.js";
10
+ import "./index-uFoYeDxn.js";
11
+ import "./index-B2-yXg-E.js";
12
12
  import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- import { c as me } from "./clone-r23wXuC7.js";
13
+ import { c as me } from "./clone-BCRbWoC6.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 +1 @@
1
- "use strict";const e=require("vue"),d=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Bk-thOPD.cjs"),p=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),_={__name:"index",props:{optionContents:{type:Object,default:()=>{}}},setup(a){const s=a;let t=null,n=null;const r=e.ref({}),o=e.ref(null),u=()=>{o.value&&(n=new ResizeObserver(()=>{i()}),n.observe(o.value))};e.onMounted(()=>{r.value=s.optionContents,c(),window.addEventListener("resize",i),u()}),e.watch(()=>s.optionContents,()=>{r.value=s.optionContents,c()}),e.onUnmounted(()=>{n&&n.disconnect(),window.removeEventListener("resize",i)});const i=()=>{t.resize()},c=()=>{t&&t.dispose(),t=d.init(o.value);const l=r.value;t.setOption(l),t.resize()};return(l,f)=>(e.openBlock(),e.createElementBlock("div",{id:"chartModelId",class:"chart-model-class",ref_key:"chartModelRef",ref:o},null,512))}},v=p._export_sfc(_,[["__scopeId","data-v-69d6e63f"]]);exports.ssChart=v;
1
+ "use strict";const e=require("vue"),d=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Cdh_SvWZ.cjs"),p=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),_={__name:"index",props:{optionContents:{type:Object,default:()=>{}}},setup(a){const s=a;let t=null,n=null;const r=e.ref({}),o=e.ref(null),u=()=>{o.value&&(n=new ResizeObserver(()=>{i()}),n.observe(o.value))};e.onMounted(()=>{r.value=s.optionContents,c(),window.addEventListener("resize",i),u()}),e.watch(()=>s.optionContents,()=>{r.value=s.optionContents,c()}),e.onUnmounted(()=>{n&&n.disconnect(),window.removeEventListener("resize",i)});const i=()=>{t.resize()},c=()=>{t&&t.dispose(),t=d.init(o.value);const l=r.value;t.setOption(l),t.resize()};return(l,f)=>(e.openBlock(),e.createElementBlock("div",{id:"chartModelId",class:"chart-model-class",ref_key:"chartModelRef",ref:o},null,512))}},v=p._export_sfc(_,[["__scopeId","data-v-69d6e63f"]]);exports.ssChart=v;
@@ -1,19 +1,19 @@
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";
1
+ import { ref as h, computed as E, reactive as j, 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-rGJF9UJ9.js";
4
- import { g as X, u as we } from "./index-DUq4XELr.js";
5
- import { J as Y } from "./JSEncrypt-B36c1iN5.js";
6
- import { a3 as Se } from "./index-BWtc895B.js";
7
- import { A as _e } from "./index-TDwSq2BF.js";
3
+ import { s as J, b as ye, u as be, p as G, c as me, e as he } from "./index-DmM_3J6r.js";
4
+ import { g as Q, u as we } from "./index-DUq4XELr.js";
5
+ import { J as X } from "./JSEncrypt-B36c1iN5.js";
6
+ import { a3 as Se } from "./index-uFoYeDxn.js";
7
+ import { A as _e } from "./index-DwRB3mEW.js";
8
+ import { u as Y, l as Ce } from "./index-Dca1yZsA.js";
8
9
  import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- import { n as Ce } from "./index-DzN70K91.js";
10
10
  import { S as x } from "./index-BHtNKL1L.js";
11
11
  function Ae(t, s) {
12
- const e = new Y();
12
+ const e = new X();
13
13
  return e.setPublicKey(s), e.encrypt(t) || "";
14
14
  }
15
15
  function ke(t, s) {
16
- const e = new Y();
16
+ const e = new X();
17
17
  return e.setPrivateKey(s), e.decrypt(t) || "";
18
18
  }
19
19
  const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = be(G), { activeMenuPath: I } = J(Ie), Ue = h(0), ee = E(() => {
@@ -62,7 +62,7 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = be(G), { activ
62
62
  }
63
63
  ];
64
64
  }), Be = () => {
65
- }, $ = h(!1), L = W({
65
+ }, $ = h(!1), L = j({
66
66
  dialogTitle: "电子签名",
67
67
  dialogWidth: "30",
68
68
  dialogShow: !1,
@@ -108,7 +108,7 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = be(G), { activ
108
108
  L.dialogShow = !1;
109
109
  }, re = async (t) => {
110
110
  var e, n, l, o, a, p, y, b, g;
111
- const s = await X({
111
+ const s = await Q({
112
112
  id: t
113
113
  // key: {
114
114
  // systemKey: sessionStorage.getItem("systemKey"),
@@ -155,7 +155,7 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = be(G), { activ
155
155
  [e]: s
156
156
  };
157
157
  z.value = t === "avatarUrl", O.value = t === "signature", await ne(n, "图片修改");
158
- }, B = W({
158
+ }, B = j({
159
159
  baseCols: [],
160
160
  otherCols: []
161
161
  }), le = h([]), oe = h(), Pe = (t, s, e) => {
@@ -170,7 +170,7 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = be(G), { activ
170
170
  s !== ((n = oe.value) == null ? void 0 : n.newtPass) ? e(new Error("两次输入的密码不一致")) : e();
171
171
  }, Le = async () => {
172
172
  var s, e, n, l, o, a, p, y, b, g;
173
- const t = await X({
173
+ const t = await Q({
174
174
  key: {
175
175
  systemKey: sessionStorage.getItem("systemKey"),
176
176
  type: "structure",
@@ -221,7 +221,7 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = be(G), { activ
221
221
  ...t,
222
222
  status: ((p = d.value) == null ? void 0 : p.status) ?? "启用"
223
223
  }), $.value = !0, await ne(e, s);
224
- }, j = () => {
224
+ }, W = () => {
225
225
  var n, l;
226
226
  const t = {
227
227
  base: [
@@ -276,7 +276,7 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = be(G), { activ
276
276
  { required: !0, message: "输入不能为空", trigger: "blur" }
277
277
  ]
278
278
  },
279
- buttonValue: (e = j()) == null ? void 0 : e.base,
279
+ buttonValue: (e = W()) == null ? void 0 : e.base,
280
280
  isEnableWrap: !1,
281
281
  isButtonRow: !1
282
282
  },
@@ -305,7 +305,7 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = be(G), { activ
305
305
  trigger: "blur"
306
306
  }
307
307
  ], a), {}),
308
- buttonValue: (o = j()) == null ? void 0 : o.other,
308
+ buttonValue: (o = W()) == null ? void 0 : o.other,
309
309
  isEnableWrap: !1
310
310
  },
311
311
  value: ""
@@ -384,7 +384,7 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = be(G), { activ
384
384
  }, b = async (c) => {
385
385
  var w, S, u, r, m;
386
386
  try {
387
- const f = await Q(c);
387
+ const f = await Y(c);
388
388
  ((w = f == null ? void 0 : f.data) == null ? void 0 : w.code) === 200 && (a.value = l.value + "/" + ((u = (S = f.data) == null ? void 0 : S.result) == null ? void 0 : u.url), o.value = (m = (r = f.data) == null ? void 0 : r.result) == null ? void 0 : m.url, n("submitImage", o.value));
389
389
  } catch (f) {
390
390
  T.error(f);
@@ -453,7 +453,7 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = be(G), { activ
453
453
  }, g = async (u) => {
454
454
  var r, m, f;
455
455
  try {
456
- const v = await Q(u);
456
+ const v = await Y(u);
457
457
  ((r = v == null ? void 0 : v.data) == null ? void 0 : r.code) === 200 && o("clickSubmitSign", (f = (m = v.data) == null ? void 0 : m.result) == null ? void 0 : f.url);
458
458
  } catch (v) {
459
459
  T.error(v);
@@ -1,4 +1,4 @@
1
- import { e as P, f as C, d as L, b, p as N, s as R, g as T } from "./index-rGJF9UJ9.js";
1
+ import { f as P, g as C, d as L, b, p as N, s as R, h as T } from "./index-DmM_3J6r.js";
2
2
  import { E as k } from "./request-XJsZ4h2T.js";
3
3
  const A = b(N), { isDefaultModel: D } = L(), E = async (c, a) => {
4
4
  var l, n, r, i, s, d, g, p, f, _, y, h, S, w;
@@ -1,6 +1,6 @@
1
1
  import { ref as A, computed as c, onMounted as _ } from "vue";
2
2
  import { useRouter as C } from "vue-router";
3
- import { u as g, p as h, t as R, c as b, i as S, n as E } from "./index-rGJF9UJ9.js";
3
+ import { u as g, p as h, r as R, c as b, j as S, m as E } from "./index-DmM_3J6r.js";
4
4
  const l = {
5
5
  ALLOW: {
6
6
  value: "允许"
@@ -54,12 +54,12 @@ const l = {
54
54
  _(async () => {
55
55
  await f();
56
56
  });
57
- const y = c(() => `content_${d.value}`), m = async (e) => ({
57
+ const m = c(() => `content_${d.value}`), y = async (e) => ({
58
58
  platId: o.value,
59
59
  changeContents: [
60
60
  {
61
61
  tableContents: [e],
62
- tableName: y.value
62
+ tableName: m.value
63
63
  }
64
64
  ]
65
65
  }), I = (e) => {
@@ -67,7 +67,7 @@ const l = {
67
67
  return t === l.ALLOW.value;
68
68
  }, v = async (e) => {
69
69
  const { id: t, password: a, allow_reset_password: n } = e;
70
- return m({
70
+ return y({
71
71
  id: t,
72
72
  password: a,
73
73
  allow_reset_password: n
@@ -1,6 +1,6 @@
1
1
  import { ref as n, computed as c, defineComponent as s, reactive as p, onMounted as i, createElementBlock as u, openBlock as f, createVNode as b } from "vue";
2
- import { V as m } from "./index-CtLw-tqJ.js";
3
- import { g as d, c as _ } from "./index-DyHFsX8U.js";
2
+ import { V as m } from "./index-BCMrZccJ.js";
3
+ import { g as d, c as _ } from "./index-DNuPcVX8.js";
4
4
  import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const l = n([]), g = c(() => [
6
6
  {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./index-C772JVG0.cjs"),_=require("./index-DAEMvwnX.cjs"),m=require("./index-B-pflqKE.cjs"),h=require("./index-HHT3da7j.cjs"),l=require("./index-ClvA5-wg.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={class:"menu-module"},k={class:"table-wrap","element-loading-text":"加载中..."},v={class:"module-dialog-default"},x=e.defineComponent({__name:"index",setup(b){const t=e.reactive({...p.State}),a=e.ref(null),c=l.useMenuState(l.pinia),{configMenu:n}=l.storeToRefs(c);return e.onMounted(()=>{var i;t.formatFormData(n.value),e.nextTick(()=>{var o,r;(r=a.value)==null||r.setCurrentKey((o=n.value)==null?void 0:o.path),c.setActiveMenuPath("/平台管理/菜单管理")}),n.value&&t.getInitialSubStructure((i=n.value)==null?void 0:i.path)}),(i,o)=>{const r=e.resolveComponent("el-tree"),s=e.resolveComponent("el-splitter-panel"),u=e.resolveComponent("el-splitter"),d=e.resolveComponent("el-button"),g=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",f,[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(s,{size:208,class:"tree-wrap",min:200},{default:e.withCtx(()=>[e.createVNode(r,{ref_key:"treeRef",ref:a,data:t.treeData,"expand-on-click-node":!1,"node-key":"path",props:{children:"children",label:"label",path:"path"},"highlight-current":"","default-expand-all":"","check-on-click-leaf":!1,"check-strictly":"",onNodeClick:t.clickNodeTrigger},null,8,["data","onNodeClick"])]),_:1}),e.createVNode(s,{min:500},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",k,[e.createVNode(_.ssTable,{itemData:t.menuPageData,changedContent:t.changedRow,operatingForm:t.operatingForm,onOnFormChange:t.changeTrigger,onChange:t.handleItemDataChange,onClickTrigger:t.clickTrigger,onOnButtonClick:t.clickRowButton},null,8,["itemData","changedContent","operatingForm","onOnFormChange","onChange","onClickTrigger","onOnButtonClick"])])),[[g,t.tableLoading]])]),_:1})]),_:1}),e.createVNode(m.ssDialog,{class:"module-dialog",title:t.dialogInfo.title,visible:t.dialogInfo.show,width:t.dialogInfo.width,onBeforeDestroy:t.beforeDialogDestroy},{default:e.withCtx(()=>[e.createElementVNode("div",v,[e.createVNode(h.ssForm,{rowContents:t.renderFormData,isEnableWrap:!1,isEdit:!0,onChange:t.changeTrigger,onClickTrigger:t.clickTrigger},null,8,["rowContents","onChange","onClickTrigger"])])]),footer:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(d,{onClick:t.beforeDialogDestroy,id:"themeBorderButton"},{default:e.withCtx(()=>o[0]||(o[0]=[e.createTextVNode("取消")])),_:1,__:[0]},8,["onClick"]),e.createVNode(d,{id:"themeButton",onClick:t.clickSubmitForm},{default:e.withCtx(()=>o[1]||(o[1]=[e.createTextVNode(" 确认 ")])),_:1,__:[1]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])])}}}),w=C._export_sfc(x,[["__scopeId","data-v-74868a06"]]);exports.default=w;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./index-BdcR-Zbo.cjs"),_=require("./index-CwJWRHpq.cjs"),m=require("./index-B-pflqKE.cjs"),h=require("./index-T0b3T_GV.cjs"),l=require("./index-CDzcL3tr.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={class:"menu-module"},k={class:"table-wrap","element-loading-text":"加载中..."},v={class:"module-dialog-default"},x=e.defineComponent({__name:"index",setup(b){const t=e.reactive({...p.State}),a=e.ref(null),c=l.useMenuState(l.pinia),{configMenu:n}=l.storeToRefs(c);return e.onMounted(()=>{var i;t.formatFormData(n.value),e.nextTick(()=>{var o,r;(r=a.value)==null||r.setCurrentKey((o=n.value)==null?void 0:o.path),c.setActiveMenuPath("/平台管理/菜单管理")}),n.value&&t.getInitialSubStructure((i=n.value)==null?void 0:i.path)}),(i,o)=>{const r=e.resolveComponent("el-tree"),s=e.resolveComponent("el-splitter-panel"),u=e.resolveComponent("el-splitter"),d=e.resolveComponent("el-button"),g=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",f,[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(s,{size:208,class:"tree-wrap",min:200},{default:e.withCtx(()=>[e.createVNode(r,{ref_key:"treeRef",ref:a,data:t.treeData,"expand-on-click-node":!1,"node-key":"path",props:{children:"children",label:"label",path:"path"},"highlight-current":"","default-expand-all":"","check-on-click-leaf":!1,"check-strictly":"",onNodeClick:t.clickNodeTrigger},null,8,["data","onNodeClick"])]),_:1}),e.createVNode(s,{min:500},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",k,[e.createVNode(_.ssTable,{itemData:t.menuPageData,changedContent:t.changedRow,operatingForm:t.operatingForm,onOnFormChange:t.changeTrigger,onChange:t.handleItemDataChange,onClickTrigger:t.clickTrigger,onOnButtonClick:t.clickRowButton},null,8,["itemData","changedContent","operatingForm","onOnFormChange","onChange","onClickTrigger","onOnButtonClick"])])),[[g,t.tableLoading]])]),_:1})]),_:1}),e.createVNode(m.ssDialog,{class:"module-dialog",title:t.dialogInfo.title,visible:t.dialogInfo.show,width:t.dialogInfo.width,onBeforeDestroy:t.beforeDialogDestroy},{default:e.withCtx(()=>[e.createElementVNode("div",v,[e.createVNode(h.ssForm,{rowContents:t.renderFormData,isEnableWrap:!1,isEdit:!0,onChange:t.changeTrigger,onClickTrigger:t.clickTrigger},null,8,["rowContents","onChange","onClickTrigger"])])]),footer:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(d,{onClick:t.beforeDialogDestroy,id:"themeBorderButton"},{default:e.withCtx(()=>o[0]||(o[0]=[e.createTextVNode("取消")])),_:1,__:[0]},8,["onClick"]),e.createVNode(d,{id:"themeButton",onClick:t.clickSubmitForm},{default:e.withCtx(()=>o[1]||(o[1]=[e.createTextVNode(" 确认 ")])),_:1,__:[1]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])])}}}),w=C._export_sfc(x,[["__scopeId","data-v-74868a06"]]);exports.default=w;