ss-component-new 1.3.417 → 1.3.418

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 (43) hide show
  1. package/dist/{array-7hDf8gIy.js → array-5_aN-RSg.js} +2 -2
  2. package/dist/{array-D58GsWzI.cjs → array-BCvH5saX.cjs} +1 -1
  3. package/dist/{index-DASn3fcI.cjs → index-BDhi_PcI.cjs} +1 -1
  4. package/dist/{index-B1HGCDOE.cjs → index-BeiLiIuF.cjs} +1 -1
  5. package/dist/{index-BJYL83ey.cjs → index-C-KB6T93.cjs} +1 -1
  6. package/dist/{index-9dTDi5Ge.js → index-C-kqu8jD.js} +1 -1
  7. package/dist/{index-BveIPT3h.js → index-C9MloMiN.js} +2 -2
  8. package/dist/{index-DFFIQ_d-.cjs → index-CAYpRdgT.cjs} +1 -1
  9. package/dist/{index-BYrnsdLj.js → index-CsZHscyC.js} +3 -3
  10. package/dist/{index-GYtcQn5r.cjs → index-CvqMXSiD.cjs} +1 -1
  11. package/dist/{index-B2t7cepm.cjs → index-D0wF8TiS.cjs} +1 -1
  12. package/dist/{index-CQ5krbf7.js → index-D5lQkdfc.js} +2 -2
  13. package/dist/{index-BGDb3E_p.cjs → index-DBmxk8Dg.cjs} +1 -1
  14. package/dist/{index-DtZ2ZKPO.js → index-DM51tAAH.js} +1 -1
  15. package/dist/{index-C1VlXmyp.cjs → index-DO0hJOkb.cjs} +1 -1
  16. package/dist/{index-CVG0c03e.cjs → index-DOT552KC.cjs} +1 -1
  17. package/dist/index-DUQdwsl1.cjs +25 -0
  18. package/dist/{index-CaPsaqj8.js → index-DXxKRoZz.js} +1 -1
  19. package/dist/{index-D41wgwXB.js → index-Dd9DSArU.js} +1 -1
  20. package/dist/{index-DUowomjd.js → index-DygiWiME.js} +1 -1
  21. package/dist/{index-BL6kRMh8.cjs → index-I0DByrV_.cjs} +1 -1
  22. package/dist/{index-BIWnTKR6.js → index-KnFXe8zy.js} +7 -7
  23. package/dist/{index-XcQTeHWK.js → index-LX83VKNp.js} +1 -1
  24. package/dist/{index-CPBH8dZD.js → index-OACzw1yi.js} +2 -2
  25. package/dist/{index-JxQEYRld.cjs → index-ZYYTejEI.cjs} +1 -1
  26. package/dist/{index-B9HWTvDz.js → index-xlUX68hj.js} +3217 -3203
  27. package/dist/{main-ib9UzP5g.js → main-BCV5wABr.js} +2 -2
  28. package/dist/{main-B9j-5uos.cjs → main-CVrSjdZa.cjs} +1 -1
  29. package/dist/ss-component.cjs +1 -1
  30. package/dist/ss-component.css +1 -1
  31. package/dist/ss-component.js +5 -5
  32. package/dist/ss-component2.cjs +1 -1
  33. package/dist/ss-component2.js +8 -8
  34. package/dist/{threeModel-DCxgIYS3.js → threeModel-CRP97nk3.js} +1 -1
  35. package/dist/{threeModel-lk0Dlios.cjs → threeModel-CTBU7hYz.cjs} +1 -1
  36. package/dist/{threeSceneView-CZ37DgpD.cjs → threeSceneView-CSLKtmO3.cjs} +1 -1
  37. package/dist/{threeSceneView-5BMcTrX1.js → threeSceneView-CxizgM5g.js} +3 -3
  38. package/dist/{threeSceneViewForCPMPIP-Dvherbb8.cjs → threeSceneViewForCPMPIP-D6-ggzVs.cjs} +1 -1
  39. package/dist/{threeSceneViewForCPMPIP-C46fmYy7.js → threeSceneViewForCPMPIP-SOJIx50B.js} +1 -1
  40. package/dist/{threeViewerHost-DPI9UfZQ.cjs → threeViewerHost-Cis2c2LQ.cjs} +1 -1
  41. package/dist/{threeViewerHost-DGiebSu-.js → threeViewerHost-Cv4psP7K.js} +1 -1
  42. package/package.json +1 -1
  43. package/dist/index-v5yXoQ5f.cjs +0 -25
@@ -6,7 +6,7 @@ import { J as Y } from "./JSEncrypt-B36c1iN5.js";
6
6
  import { a2 as Se } from "./index-D2iC0RdT.js";
7
7
  import { A as _e } from "./index-l0u9OUe6.js";
8
8
  import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- import { n as Ce } from "./index-D41wgwXB.js";
9
+ import { n as Ce } from "./index-Dd9DSArU.js";
10
10
  import { S as x } from "./index-BHtNKL1L.js";
11
11
  function Ae(t, s) {
12
12
  const e = new Y();
@@ -8,7 +8,7 @@ import { _ as be } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js
8
8
  import { k as Gi, A as Gr, V as Xs } from "./index-D2iC0RdT.js";
9
9
  /* empty css */
10
10
  import { s as N4 } from "./index-BQ9pPu8K.js";
11
- import { T as Ri, a as Rr } from "./threeViewerHost-DGiebSu-.js";
11
+ import { T as Ri, a as Rr } from "./threeViewerHost-Cv4psP7K.js";
12
12
  import { A as Nr } from "./index-l0u9OUe6.js";
13
13
  var $r = "[object Date]";
14
14
  function jr(n) {
@@ -1,5 +1,5 @@
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-B9HWTvDz.js";
2
+ import { V as m } from "./index-xlUX68hj.js";
3
3
  import { g as d, c as _ } from "./index-DyHFsX8U.js";
4
4
  import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const l = n([]), g = c(() => [
@@ -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-reJmxzkK.cjs"),Q=require("./index-B7w9LAJd.cjs"),M=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),X=require("./index-GYtcQn5r.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-Dl8yi2iS.cjs"),C=require("./index-ClvA5-wg.cjs"),D=require("./index-DmwxzDGW.cjs"),F=require("./JSEncrypt-IYbV4kRj.cjs"),G=require("./index-reJmxzkK.cjs"),Q=require("./index-B7w9LAJd.cjs"),M=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),X=require("./index-CvqMXSiD.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,10 +1,10 @@
1
1
  import { computed as Al, defineComponent as _l, defineProps as Kt, ref as D, watch as yl, onMounted as Wl, onUnmounted as it, resolveComponent as oe, createBlock as ve, openBlock as f, withCtx as o, createElementVNode as L, toDisplayString as il, createElementBlock as se, Fragment as tl, renderList as pl, createCommentVNode as Re, normalizeStyle as Bl, createVNode as s, unref as n, resolveDynamicComponent as ia, provide as lt, shallowRef as cs, resolveDirective as rt, withDirectives as Yl, vShow as va, createTextVNode as dl, renderSlot as ql, normalizeClass as Ql, createSlots as wt, mergeProps as En, withModifiers as Vl, defineAsyncComponent as dn, reactive as Pl, nextTick as Jl, withKeys as us } from "vue";
2
- import { m as qt, a as Wt, b as Ht, c as ds } from "./array-7hDf8gIy.js";
3
- import { _ as ct, s as Yt, a as ps } from "./index-BYrnsdLj.js";
2
+ import { m as qt, a as Wt, b as Ht, c as ds } from "./array-5_aN-RSg.js";
3
+ import { _ as ct, s as Yt, a as ps } from "./index-CsZHscyC.js";
4
4
  import { u as jl, p as Cl, s as bl, c as kl, a as la, b as zl, h as Ba, d as kt, i as ba, j as mt, k as fs, E as Ca, m as Pt, n as at, v as tt, o as Bn, q as vs, r as Dn, g as hs, t as At, w as ca, x as pn, y as gs, z as Pn, A as ys, B as bs, C as Rn, D as fn, F as Cs, G as ms } from "./index-rGJF9UJ9.js";
5
5
  import { useRouter as Da } from "vue-router";
6
6
  import { a as ut, d as Jt, e as dt, f as pt, g as ft, h as vt, t as ws, c as ks, b as As } from "./index-C2UiLe43.js";
7
- import { g as Ea, s as Ms, a as vn, _ as Rt, b as Is, c as xn, X as _s, Q as Ss } from "./index-D41wgwXB.js";
7
+ import { g as Ea, s as Ms, a as vn, _ as Rt, b as Is, c as xn, X as _s, Q as Ss } from "./index-Dd9DSArU.js";
8
8
  import { u as Vn, g as hn, b as gn, c as Ts, a as Es } from "./index-DUq4XELr.js";
9
9
  import { E as Il, d as jn, b as ra, I as Bs, s as aa, e as Un, a as On, c as Ln, g as Ds, h as Ps, p as Qn, m as Rs, i as xs, j as Vs, f as js } from "./request-XJsZ4h2T.js";
10
10
  import { g as Nn, b as Us, u as Ft, c as sa, d as ot, o as Kn, l as Os, n as Ls, e as Qs, f as ha, s as Ct, t as Ns, h as Ks } from "./index-D2iC0RdT.js";
@@ -16,12 +16,12 @@ import { c as zt, f as Ll, b as qn, a as Hs, g as Ys, d as yn } from "./menuInde
16
16
  import { _ as Nl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
17
  import { C as Js } from "./index-l0u9OUe6.js";
18
18
  import { S as Tl } from "./index-BHtNKL1L.js";
19
- import Fs from "./threeModel-DCxgIYS3.js";
20
- import { a as Wn, b as fa, u as Hn, s as na, c as bn, d as zs, r as Sl, e as ua, o as da, f as pa, h as Yn, i as xt, j as Jn, k as Xt, l as Xs, t as Gs, m as wa, n as Mt, p as gt, q as ka, v as Za, w as Aa, x as Zs, y as Ma, z as Ia, A as $s, B as _a, C as $a, D as Cn, E as eo, F as mn, G as yt, H as It, I as lo, J as Xl, K as ao, L as to, M as _t, N as no, O as so, P as oo, g as Fn, Q as io, R as wn, S as ro, T as co } from "./index-B9HWTvDz.js";
19
+ import Fs from "./threeModel-CRP97nk3.js";
20
+ import { a as Wn, b as fa, u as Hn, s as na, c as bn, d as zs, r as Sl, e as ua, o as da, f as pa, h as Yn, i as xt, j as Jn, k as Xt, l as Xs, t as Gs, m as wa, n as Mt, p as gt, q as ka, v as Za, w as Aa, x as Zs, y as Ma, z as Ia, A as $s, B as _a, C as $a, D as Cn, E as eo, F as mn, G as yt, H as It, I as lo, J as Xl, K as ao, L as to, M as _t, N as no, O as so, P as oo, g as Fn, Q as io, R as wn, S as ro, T as co } from "./index-xlUX68hj.js";
21
21
  import { _ as oa } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
22
22
  import { s as ta } from "./index-BQ9pPu8K.js";
23
- import { T as Vt, u as uo, a as po } from "./threeViewerHost-DGiebSu-.js";
24
- import { s as jt } from "./index-CaPsaqj8.js";
23
+ import { T as Vt, u as uo, a as po } from "./threeViewerHost-Cv4psP7K.js";
24
+ import { s as jt } from "./index-DXxKRoZz.js";
25
25
  import { u as fo } from "./index-x-HWwt4p.js";
26
26
  import { u as vo } from "./index-BBr25gXh.js";
27
27
  import { u as zn } from "./index-DshXKN2f.js";
@@ -1,5 +1,5 @@
1
1
  import { ref as l, defineComponent as m, createElementBlock as f, openBlock as p, createElementVNode as e, createVNode as u, unref as t } from "vue";
2
- import { V as C } from "./index-B9HWTvDz.js";
2
+ import { V as C } from "./index-xlUX68hj.js";
3
3
  import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const b = () => {
5
5
  const i = l("日志管理"), o = l(), a = l([
@@ -4,11 +4,11 @@ import { u as Se, o as _t, s as de, f as ce } from "./index-DshXKN2f.js";
4
4
  import { H as Le, I as ft, u as vt, p as gt } from "./index-rGJF9UJ9.js";
5
5
  import { s as _e } from "./index-BQ9pPu8K.js";
6
6
  import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CLp-qGr4.js";
7
- import "./index-B9HWTvDz.js";
7
+ import "./index-xlUX68hj.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
10
  import "./index-D2iC0RdT.js";
11
- import "./index-CaPsaqj8.js";
11
+ import "./index-DXxKRoZz.js";
12
12
  import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
13
  import { c as me } from "./clone-r23wXuC7.js";
14
14
  const yt = { class: "param-auth" }, ht = { class: "body" }, kt = { class: "node-content-wrapper" }, Ct = { class: "node-label-wrapper" }, bt = { class: "node-label" }, wt = /* @__PURE__ */ J({
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-BL6kRMh8.cjs");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Dg_y3QFE.cjs");require("./index-BpPyaNFa.cjs");const b=require("./index-GYtcQn5r.cjs");require("./index-reJmxzkK.cjs");const _=require("./index-ClvA5-wg.cjs");require("./request-Dl8yi2iS.cjs");;/* empty css */const h=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),y={class:"personal-wrapper"},V={class:"personal-box left"},N={class:"base-avatar"},x={class:"center-avatar"},S={class:"base-info"},D={class:"base-signature"},E={class:"personal-box right"},k=e.defineComponent({__name:"index",setup(C){const t=e.reactive({...o.State}),f=_.useLoginState(),{loginUserInfo:n}=_.storeToRefs(f);return e.onMounted(()=>{var i;t.getUserTableHeadersAsync(),t.refreshLoginUserInfoAsync((i=n==null?void 0:n.value)==null?void 0:i.id),o.tabKey.value++}),(i,r)=>{var c,d,u,g,p,m,v;const s=e.resolveComponent("svg-icon"),a=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",V,[e.createElementVNode("div",N,[e.createElementVNode("div",x,[e.withDirectives(e.createVNode(o.ssAvatar,{size:100,disabled:t.uploadDisabled,userInfo:e.unref(n),onSubmitImage:r[0]||(r[0]=l=>t.submitImageAsync("avatarUrl",l))},null,8,["disabled","userInfo"]),[[a,t.avatarLoading]])])]),e.createElementVNode("div",S,[e.createElementVNode("div",null,[e.createVNode(s,{name:"userAccount",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((c=e.unref(n))==null?void 0:c.account)||(((d=e.unref(n))==null?void 0:d.姓名)??"未知")),1)]),e.createElementVNode("div",null,[e.createVNode(s,{name:"role",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((u=e.unref(n))==null?void 0:u.layer)==="superAdmin"?"超级管理员":((g=e.unref(n))==null?void 0:g.角色名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(s,{name:"dept",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((p=e.unref(n))==null?void 0:p.部门名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(s,{name:"status",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((m=e.unref(n))==null?void 0:m.layer)==="superAdmin"?"启用":((v=e.unref(n))==null?void 0:v.状态)??"未知"),1)])]),e.createElementVNode("div",D,[e.withDirectives(e.createVNode(o.ssSignature,{userInfo:e.unref(n),itemData:t.itemData,onClickSignButton:t.clickSignButton,onBeforeDestroy:t.beforeSignDestroy,onClickSubmitSign:r[1]||(r[1]=l=>t.submitImageAsync("signature",l))},null,8,["userInfo","itemData","onClickSignButton","onBeforeDestroy"]),[[a,t.signatureLoading]])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",E,[(e.openBlock(),e.createBlock(b.ssTab,{key:e.unref(o.tabKey),tabsContents:t.tabsContents,onChangeTrigger:t.changeFormTrigger,onClickTrigger:t.clickTabButton},null,8,["tabsContents","onChangeTrigger","onClickTrigger"]))])),[[a,t.loading]])])}}}),B=h._export_sfc(k,[["__scopeId","data-v-3bdf3f4b"]]);exports.default=B;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-I0DByrV_.cjs");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Dg_y3QFE.cjs");require("./index-BpPyaNFa.cjs");const b=require("./index-CvqMXSiD.cjs");require("./index-reJmxzkK.cjs");const _=require("./index-ClvA5-wg.cjs");require("./request-Dl8yi2iS.cjs");;/* empty css */const h=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),y={class:"personal-wrapper"},V={class:"personal-box left"},N={class:"base-avatar"},x={class:"center-avatar"},S={class:"base-info"},D={class:"base-signature"},E={class:"personal-box right"},k=e.defineComponent({__name:"index",setup(C){const t=e.reactive({...o.State}),f=_.useLoginState(),{loginUserInfo:n}=_.storeToRefs(f);return e.onMounted(()=>{var i;t.getUserTableHeadersAsync(),t.refreshLoginUserInfoAsync((i=n==null?void 0:n.value)==null?void 0:i.id),o.tabKey.value++}),(i,r)=>{var c,d,u,g,p,m,v;const s=e.resolveComponent("svg-icon"),a=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",V,[e.createElementVNode("div",N,[e.createElementVNode("div",x,[e.withDirectives(e.createVNode(o.ssAvatar,{size:100,disabled:t.uploadDisabled,userInfo:e.unref(n),onSubmitImage:r[0]||(r[0]=l=>t.submitImageAsync("avatarUrl",l))},null,8,["disabled","userInfo"]),[[a,t.avatarLoading]])])]),e.createElementVNode("div",S,[e.createElementVNode("div",null,[e.createVNode(s,{name:"userAccount",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((c=e.unref(n))==null?void 0:c.account)||(((d=e.unref(n))==null?void 0:d.姓名)??"未知")),1)]),e.createElementVNode("div",null,[e.createVNode(s,{name:"role",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((u=e.unref(n))==null?void 0:u.layer)==="superAdmin"?"超级管理员":((g=e.unref(n))==null?void 0:g.角色名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(s,{name:"dept",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((p=e.unref(n))==null?void 0:p.部门名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(s,{name:"status",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((m=e.unref(n))==null?void 0:m.layer)==="superAdmin"?"启用":((v=e.unref(n))==null?void 0:v.状态)??"未知"),1)])]),e.createElementVNode("div",D,[e.withDirectives(e.createVNode(o.ssSignature,{userInfo:e.unref(n),itemData:t.itemData,onClickSignButton:t.clickSignButton,onBeforeDestroy:t.beforeSignDestroy,onClickSubmitSign:r[1]||(r[1]=l=>t.submitImageAsync("signature",l))},null,8,["userInfo","itemData","onClickSignButton","onBeforeDestroy"]),[[a,t.signatureLoading]])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",E,[(e.openBlock(),e.createBlock(b.ssTab,{key:e.unref(o.tabKey),tabsContents:t.tabsContents,onChangeTrigger:t.changeFormTrigger,onClickTrigger:t.clickTabButton},null,8,["tabsContents","onChangeTrigger","onClickTrigger"]))])),[[a,t.loading]])])}}}),B=h._export_sfc(k,[["__scopeId","data-v-3bdf3f4b"]]);exports.default=B;