ss-component-new 1.3.262 → 1.3.264

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-B7wO-0f1.cjs → array-BV8rOqnH.cjs} +1 -1
  2. package/dist/{array-CYUGpz4O.js → array-DkdZ6gfj.js} +2 -2
  3. package/dist/{index-B_l4zLmV.js → index-B7x9VMSY.js} +3 -3
  4. package/dist/{index-CmZd-fdB.cjs → index-BE3R-_Gf.cjs} +1 -1
  5. package/dist/{index-BOCJmIW5.js → index-BEYAwla9.js} +2 -2
  6. package/dist/{index-BsUEryLM.js → index-B_H3xECa.js} +7 -7
  7. package/dist/{index-BhWYB1l5.js → index-BdCoC57g.js} +1 -1
  8. package/dist/{index-BtR9HB1Q.js → index-Bpu2rjX7.js} +1 -1
  9. package/dist/{index-JjGHGe5l.js → index-Bqy4vjHu.js} +1 -1
  10. package/dist/{index-Gjye2Azo.js → index-CKkdZ-_c.js} +2 -2
  11. package/dist/{index-BBt479yJ.cjs → index-CW1eLH2G.cjs} +1 -1
  12. package/dist/{index-D1EYr6nn.cjs → index-CarHRFZC.cjs} +1 -1
  13. package/dist/{index-6lE4lIdS.cjs → index-CcnKgFqW.cjs} +1 -1
  14. package/dist/{index-Cf3QbECm.js → index-Cdantj-f.js} +1 -1
  15. package/dist/{index-CqGR39Q8.js → index-CsOHHXI3.js} +1 -1
  16. package/dist/{index-BlpPah1w.cjs → index-D58O2g0u.cjs} +1 -1
  17. package/dist/{index-DdsQowL_.cjs → index-DDzcURiX.cjs} +1 -1
  18. package/dist/{index-Co3wp2Cy.cjs → index-DLAyftAY.cjs} +1 -1
  19. package/dist/{index-BsEoPl4e.cjs → index-DWczCovA.cjs} +1 -1
  20. package/dist/{index-D0kDkVh3.js → index-DnxbtcFo.js} +7 -7
  21. package/dist/{index-CvbjYGvP.js → index-DprhOE5q.js} +1 -1
  22. package/dist/{index-3JAC0BY8.cjs → index-IRy9KMRc.cjs} +1 -1
  23. package/dist/{index-C4jRTFH9.js → index-LmgE-hiU.js} +2 -2
  24. package/dist/{index-mvUm8jPu.cjs → index-OxLhai5A.cjs} +1 -1
  25. package/dist/index-d30OOcuR.cjs +25 -0
  26. package/dist/{index-XuUCP5i3.cjs → index-yz-K5mW9.cjs} +1 -1
  27. package/dist/{main-TiuHYRao.cjs → main-CtjdBsGK.cjs} +1 -1
  28. package/dist/{main-CEytD3Ne.js → main-vzn7RWOB.js} +2 -2
  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-CkBG9GLz.js → threeModel-D01zN5Pz.js} +1 -1
  35. package/dist/{threeModel-DQSSo6tg.cjs → threeModel-DSgY30ac.cjs} +1 -1
  36. package/dist/{threeSceneView-X_VX7OHS.cjs → threeSceneView-BQTtI-E9.cjs} +1 -1
  37. package/dist/{threeSceneView-CEIV2olY.js → threeSceneView-y50xzWDh.js} +3 -3
  38. package/dist/{threeSceneViewForCPMPIP-YBwC7n_T.cjs → threeSceneViewForCPMPIP-B8h5XXL7.cjs} +1 -1
  39. package/dist/{threeSceneViewForCPMPIP-Cv0SaJIR.js → threeSceneViewForCPMPIP-ps1FLVKi.js} +1 -1
  40. package/dist/{threeViewerHost-CASwaHr5.js → threeViewerHost-DhPn2vUU.js} +1 -1
  41. package/dist/{threeViewerHost-DQkTh1v6.cjs → threeViewerHost-sih4e3yy.cjs} +1 -1
  42. package/package.json +1 -1
  43. package/dist/index-B2DPjbG8.cjs +0 -25
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),_=require("./request-BBDPqFah.cjs"),C=require("./index-jU-5AL6b.cjs"),D=require("./index-CDIharql.cjs"),N=require("./index-C2veg6vn.cjs"),G=require("./index-BAfClAl7.cjs"),M=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Q=require("./index-mvUm8jPu.cjs"),U=require("./index-BpPyaNFa.cjs");function X(r,s){const t=new N.JSEncrypt;return t.setPublicKey(s),t.encrypt(r)||""}function Y(r,s){const t=new N.JSEncrypt;return t.setPrivateKey(s),t.decrypt(r)||""}const V=C.useLoginState(C.pinia),{loginUserInfo:p,cryptoInfo:x}=C.storeToRefs(V),Z=C.useMenuState(C.pinia),{activeMenuPath:A}=C.storeToRefs(Z),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.状态)??"未知"}]}),ee=()=>{},P=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),$=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:[]}),te=e.computed(()=>[{key:"signConfig",contents:E},{key:"signTypeList",contents:z.value}]),ae=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};V.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 V.setLogRecordAsync({type:s,data:r},A.value))}catch{_.ElMessage.error("修改响应失败")}finally{P.value=!1,q.value=!1,$.value=!1}},re=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",$.value=r==="signature",await j(o,"图片修改")},I=e.reactive({baseCols:[],otherCols:[]}),H=e.ref([]),J=e.ref(),se=(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?Y((b=p.value)==null?void 0:b.password,(m=x==null?void 0:x.value)==null?void 0:m.privateKey):N.resetPassword:o=(y=p.value)==null?void 0:y.password,o===l?t():t(new Error("输入的密码与原密码不匹配,请重新输入"))},ne=(r,s,t)=>{s?t():t(new Error("请输入密码"))},oe=(r,s,t)=>{var o;s!==((o=J.value)==null?void 0:o.newtPass)?t(new Error("两次输入的密码不一致")):t()},le=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:se},{...S,label:"新密码",prop:"newtPass",validator:ne},{...S,label:"确认密码",prop:"confirmNewPass",validator:oe}];I.otherCols=i,ce(p.value)}},ue=r=>{J.value=r},ie=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:X(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)??"启用"}),P.value=!0,await j(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},ce=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=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:""}]}]},de=Object.freeze(Object.defineProperty({__proto__:null,avatarLoading:q,beforeSignDestroy:O,changeFormTrigger:ue,clickFormButton:ee,clickSignButton:ae,clickTabButton:ie,getUserTableHeadersAsync:le,itemData:te,loading:P,refreshLoginUserInfoAsync:W,rowContents:L,signPadInfo:E,signTypes:z,signatureLoading:$,submitImageAsync:re,tabKey:R,tabsContents:H,tempSignTypes:T,uploadDisabled:K},Symbol.toStringTag,{value:"Module"})),pe={class:"avatar-model-wrap"},fe={key:0},ge=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",pe,[e.createVNode(G.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",fe,e.toDisplayString(((S=r.userInfo)==null?void 0:S.account)||((i=r.userInfo)==null?void 0:i.账号)||"未知"),1))])}}}),ve=M._export_sfc(ge,[["__scopeId","data-v-1a1f2575"]]),ye=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(Q.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:me=>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"])}}}),be=M._export_sfc(ye,[["__scopeId","data-v-ce5a2314"]]);exports.State=de;exports.ssAvatar=ve;exports.ssSignature=be;exports.tabKey=R;
1
+ "use strict";const e=require("vue"),_=require("./request-BBDPqFah.cjs"),C=require("./index-jU-5AL6b.cjs"),D=require("./index-CDIharql.cjs"),N=require("./index-C2veg6vn.cjs"),G=require("./index-BAfClAl7.cjs"),M=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Q=require("./index-OxLhai5A.cjs"),U=require("./index-BpPyaNFa.cjs");function X(r,s){const t=new N.JSEncrypt;return t.setPublicKey(s),t.encrypt(r)||""}function Y(r,s){const t=new N.JSEncrypt;return t.setPrivateKey(s),t.decrypt(r)||""}const V=C.useLoginState(C.pinia),{loginUserInfo:p,cryptoInfo:x}=C.storeToRefs(V),Z=C.useMenuState(C.pinia),{activeMenuPath:A}=C.storeToRefs(Z),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.状态)??"未知"}]}),ee=()=>{},P=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),$=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:[]}),te=e.computed(()=>[{key:"signConfig",contents:E},{key:"signTypeList",contents:z.value}]),ae=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};V.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 V.setLogRecordAsync({type:s,data:r},A.value))}catch{_.ElMessage.error("修改响应失败")}finally{P.value=!1,q.value=!1,$.value=!1}},re=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",$.value=r==="signature",await j(o,"图片修改")},I=e.reactive({baseCols:[],otherCols:[]}),H=e.ref([]),J=e.ref(),se=(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?Y((b=p.value)==null?void 0:b.password,(m=x==null?void 0:x.value)==null?void 0:m.privateKey):N.resetPassword:o=(y=p.value)==null?void 0:y.password,o===l?t():t(new Error("输入的密码与原密码不匹配,请重新输入"))},ne=(r,s,t)=>{s?t():t(new Error("请输入密码"))},oe=(r,s,t)=>{var o;s!==((o=J.value)==null?void 0:o.newtPass)?t(new Error("两次输入的密码不一致")):t()},le=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:se},{...S,label:"新密码",prop:"newtPass",validator:ne},{...S,label:"确认密码",prop:"confirmNewPass",validator:oe}];I.otherCols=i,ce(p.value)}},ue=r=>{J.value=r},ie=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:X(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)??"启用"}),P.value=!0,await j(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},ce=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=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:""}]}]},de=Object.freeze(Object.defineProperty({__proto__:null,avatarLoading:q,beforeSignDestroy:O,changeFormTrigger:ue,clickFormButton:ee,clickSignButton:ae,clickTabButton:ie,getUserTableHeadersAsync:le,itemData:te,loading:P,refreshLoginUserInfoAsync:W,rowContents:L,signPadInfo:E,signTypes:z,signatureLoading:$,submitImageAsync:re,tabKey:R,tabsContents:H,tempSignTypes:T,uploadDisabled:K},Symbol.toStringTag,{value:"Module"})),pe={class:"avatar-model-wrap"},fe={key:0},ge=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",pe,[e.createVNode(G.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",fe,e.toDisplayString(((S=r.userInfo)==null?void 0:S.account)||((i=r.userInfo)==null?void 0:i.账号)||"未知"),1))])}}}),ve=M._export_sfc(ge,[["__scopeId","data-v-1a1f2575"]]),ye=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(Q.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:me=>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"])}}}),be=M._export_sfc(ye,[["__scopeId","data-v-ce5a2314"]]);exports.State=de;exports.ssAvatar=ve;exports.ssSignature=be;exports.tabKey=R;
@@ -4,14 +4,14 @@ var sn = (a, r, l) => lp(a, typeof r != "symbol" ? r + "" : r, l);
4
4
  import { ref as ie, watch as _l, nextTick as zr, resolveComponent as ml, createBlock as pl, openBlock as se, withCtx as De, createElementVNode as te, renderSlot as qn, computed as Vl, createElementBlock as qe, createCommentVNode as Il, normalizeClass as un, toDisplayString as Va, defineComponent as Hr, onMounted as Kn, onUnmounted as Ht, withModifiers as Br, createVNode as Te, createTextVNode as bl, Fragment as zl, renderList as Xl, onBeforeUnmount as Rs, normalizeStyle as cn, unref as Pl, createSlots as Ut, mergeProps as qt, resolveDynamicComponent as An, shallowRef as Sc, reactive as Xr, getCurrentInstance as Ac, inject as wt, provide as Ds, toRef as rp, onBeforeMount as Tc, watchEffect as np, getCurrentScope as ip, onScopeDispose as sp, toRefs as wu, withDirectives as op, vShow as tp } from "vue";
5
5
  import { k as up, l as cp, E as Tl, h as Kt, f as Su, c as Au, b as fn, am as Ec, an as dp, ao as pp, ap as ut, al as Tu } from "./request-DeDL4lsA.js";
6
6
  import { j as ui, c as xe, h as wi, p as ar, s as ir, i as _i, b as Ui, o as Cc, u as di, a as Si, a2 as Wt, a0 as so, r as Bo, a3 as ei, g as on, n as wo, m as bo, E as In, t as zs, a4 as fp, a5 as oo, a6 as hp, a7 as Eu, a8 as vp, _ as yp } from "./index-y8S00w40.js";
7
- import { S as gp, b as Rr, _ as Cu, f as mp, h as ps, i as Lo, a as yr, j as bp, d as Yt, e as _p, c as kp, k as to, l as xp } from "./index-JjGHGe5l.js";
7
+ import { S as gp, b as Rr, _ as Cu, f as mp, h as ps, i as Lo, a as yr, j as bp, d as Yt, e as _p, c as kp, k as to, l as xp } from "./index-Bqy4vjHu.js";
8
8
  import { _ as or } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  import { u as wp, b as Gl, N as Sp, O as Ap, Q as Tp, R as Ep, U as Du, Y as Cp, Z as Os, _ as Dp, $ as zp, C as Op, f as ct, x as Dc, a0 as Ts, a1 as Mp, a2 as zc, a3 as Oc, v as dt, a4 as Ip, w as Bp, j as $i, B as Lp, V as pt, a5 as zu, m as is, n as As, a6 as $p, z as Np, a7 as Rp, a8 as Pp, a9 as jp, s as mi, aa as Fp, ab as Mc, d as Ic } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-QdQaZtjW.js";
10
10
  import { s as $r } from "./index-CnjGqJZS.js";
11
- import { a as Bc, T as Lc } from "./threeViewerHost-CASwaHr5.js";
11
+ import { a as Bc, T as Lc } from "./threeViewerHost-DhPn2vUU.js";
12
12
  import { g as Or, e as $o, p as St, t as So, c as hs, q as Ps, r as Hp, b as qr, s as js, u as Jt, w as yn, x as No, y as Up, z as qp, A as Kp, B as Wp, l as Yp, C as Jp, D as Gp, F as Xp, I as Zp, E as $c, G as tn, H as us, J as ai, K as Pi, L as ft, M as Vp, o as Qp, N as ht, O as e0, P as a0 } from "./index-D1QwVcxQ.js";
13
13
  import { g as bi, u as Ao, c as Nc, d as Fs, b as Gt, a as To } from "./index-BHbbxGc-.js";
14
- import { a as l0, s as r0 } from "./index-CqGR39Q8.js";
14
+ import { a as l0, s as r0 } from "./index-CsOHHXI3.js";
15
15
  import "./index-CwH35J8v.js";
16
16
  import { u as Rc } from "./index-BzPHIMQx.js";
17
17
  /* empty css */
@@ -2546,10 +2546,10 @@ const Bu = async (a, r) => {
2546
2546
  if (await new Function("return ")(), (y == null ? void 0 : y.length) > 0 && y.find((ne) => ne === Z)) {
2547
2547
  let ne = "";
2548
2548
  try {
2549
- let le = (ge = r == null ? void 0 : r[_e]) == null ? void 0 : ge.functionRelatedWords, be = c == null ? void 0 : c.map((Ae) => {
2549
+ let le = (ge = r == null ? void 0 : r[_e]) == null ? void 0 : ge.functionRelatedWords, be = (c == null ? void 0 : c.length) > 0 ? c == null ? void 0 : c.map((Ae) => {
2550
2550
  var oa;
2551
2551
  return Ae == null ? void 0 : Ae[(oa = r == null ? void 0 : r[_e]) == null ? void 0 : oa.prop];
2552
- });
2552
+ }) : ["0"];
2553
2553
  be = be == null ? void 0 : be.map((Ae) => Ae == null ? void 0 : Ae.slice((Ae == null ? void 0 : Ae.length) - 5, Ae == null ? void 0 : Ae.length)), be = be == null ? void 0 : be.map((Ae) => Ep(parseInt(Ae)) && parseInt(Ae) ? parseInt(Ae) : 0);
2554
2554
  let ue = Math.max(...be);
2555
2555
  le = le == null ? void 0 : le.map((Ae) => {
@@ -8664,7 +8664,7 @@ ${Ar}`,
8664
8664
  let da;
8665
8665
  p !== "" ? da = [p] : da = xe(q.value);
8666
8666
  const S = {
8667
- fixContent: await Dt(da, we == null ? void 0 : we.value),
8667
+ fixContent: await Dt(da, we == null ? void 0 : we.value, "Manual", q.value),
8668
8668
  buttonName: "methodButton",
8669
8669
  relatedContents: t == null ? void 0 : t.related,
8670
8670
  columns: we.value,
@@ -10796,7 +10796,7 @@ ${Ar}`,
10796
10796
  ]);
10797
10797
  };
10798
10798
  }
10799
- }, B2 = /* @__PURE__ */ or(I2, [["__scopeId", "data-v-3304f526"]]), L2 = { class: "static-form-card" }, $2 = {
10799
+ }, B2 = /* @__PURE__ */ or(I2, [["__scopeId", "data-v-3542d4e0"]]), L2 = { class: "static-form-card" }, $2 = {
10800
10800
  key: 0,
10801
10801
  class: "static-form-body"
10802
10802
  }, N2 = { class: "static-form-label" }, R2 = ["onClick"], P2 = { key: 1 }, j2 = {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as y, ref as C, onMounted as _, createElementBlock as c, openBlock as g, createVNode as v } from "vue";
2
2
  import { u as h, p as k, s as x, c as m } from "./index-y8S00w40.js";
3
- import { X as M } from "./index-D0kDkVh3.js";
3
+ import { X as M } from "./index-DnxbtcFo.js";
4
4
  import { a as D, d as T, f as S } from "./index-BScuBbm4.js";
5
5
  import { g as w } from "./index-BHbbxGc-.js";
6
6
  import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";