ss-component-new 1.1.620 → 1.1.621
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.
- package/dist/{array-Bq7cMxbK.cjs → array-B_wsE8_t.cjs} +1 -1
- package/dist/{array-D4dLF1xj.js → array-VzXJcPjW.js} +1 -1
- package/dist/icons/svg/editTable.svg +1 -0
- package/dist/icons/svg/readTable.svg +1 -0
- package/dist/icons/svg/rowCreate.svg +1 -0
- package/dist/{index-DhvQs7gl.js → index-B4fU_Oqr.js} +1 -1
- package/dist/{index-BNkI-J2e.cjs → index-B6McL4Y5.cjs} +1 -1
- package/dist/{index-CM7xxfrM.cjs → index-B6QTa9We.cjs} +1 -1
- package/dist/{index-DDcGWP6y.js → index-BFWDxfM0.js} +5322 -5266
- package/dist/{index-DaOakrcL.js → index-BHxSsIXo.js} +1 -1
- package/dist/{index-BpKdQbsx.js → index-BLUSTZzG.js} +5 -5
- package/dist/{index-CEHOj8ds.js → index-BS0NY42k.js} +3 -3
- package/dist/{index-FXMPSbp7.cjs → index-BdAqAS8j.cjs} +1 -1
- package/dist/{index-DmRE2cVC.cjs → index-BmcZxive.cjs} +1 -1
- package/dist/{index-DXkSDTRj.cjs → index-BwU7Nmc_.cjs} +1 -1
- package/dist/{index-Dtez5g70.cjs → index-By4IZGWU.cjs} +1 -1
- package/dist/{index-CfcFMIgE.js → index-C2T-nUxf.js} +3 -3
- package/dist/{index-BhLxpb5q.js → index-CEcr_wVS.js} +6 -6
- package/dist/{index-bHS30Ndo.js → index-CMgvFfxY.js} +5 -5
- package/dist/{index-DAKLvVXN.js → index-CMwn0ZEb.js} +3 -3
- package/dist/{index-CpLqSPMr.cjs → index-COcl6KL3.cjs} +1 -1
- package/dist/{index-BoNr-Sd6.js → index-CPeCOE_d.js} +5259 -5229
- package/dist/{index-CZ89rQnr.cjs → index-CW1zJWa7.cjs} +1 -1
- package/dist/{index-CrPT5Hoz.cjs → index-CX298lYO.cjs} +1 -1
- package/dist/{index-CsCDreKP.cjs → index-CeD_uFzd.cjs} +1 -1
- package/dist/{index-DnNBgaDj.js → index-CgHGkDUQ.js} +4 -4
- package/dist/{index-DaBCF0Nd.js → index-Crd7Dg0j.js} +1 -1
- package/dist/{index-gdgEp7uV.js → index-Cz_YKerb.js} +14 -14
- package/dist/{index-BbW8EtPG.js → index-D1eHyt-Y.js} +8 -8
- package/dist/{index-BeXlcI9i.cjs → index-D5P_BYL7.cjs} +1 -1
- package/dist/{index-DxrHtk8v.cjs → index-D8su61We.cjs} +1 -1
- package/dist/{index-BpsIiZ7S.cjs → index-DE4qOxcb.cjs} +1 -1
- package/dist/{index-D3AT3gF-.js → index-DKoGXjoD.js} +4 -4
- package/dist/{index-f8bHzA1N.js → index-DTtCq9R6.js} +3 -3
- package/dist/{index-pyP2yPmF.js → index-DUyXqunV.js} +8 -8
- package/dist/{index-BNX_RWaL.js → index-DbxbzUiK.js} +4 -4
- package/dist/{index-C_0I-i8V.cjs → index-DecdMM1v.cjs} +1 -1
- package/dist/{index-BFuX2G8I.js → index-DfQCPyug.js} +4 -4
- package/dist/{index-BFELXxoC.js → index-DivndMew.js} +1 -1
- package/dist/index-Dmc9yBFD.cjs +15 -0
- package/dist/{index-FLKaEf78.cjs → index-DnY817qu.cjs} +1 -1
- package/dist/{index-BqZfdFEg.js → index-JuKGX07D.js} +5 -5
- package/dist/{index-Cbht3RG4.cjs → index-MSj62TUk.cjs} +1 -1
- package/dist/{index-BjueKTcK.cjs → index-Noso3rqY.cjs} +1 -1
- package/dist/{index-CWhy_Io_.cjs → index-OUcbra1H.cjs} +1 -1
- package/dist/{index-DTCQ-wFV.cjs → index-YTvm8Dyq.cjs} +1 -1
- package/dist/index-aptPIfv7.cjs +4207 -0
- package/dist/{index-CfpRAxJB.js → index-boQYixno.js} +2 -2
- package/dist/{index-BHPyp0hU.js → index-cwNAtWkQ.js} +4 -4
- package/dist/{index-WwP4JICq.cjs → index-kLzEx5xq.cjs} +1 -1
- package/dist/{index-CupbZVTS.js → index-r5L5PJP9.js} +4 -4
- package/dist/{index-DC74TF_q.cjs → index-rBRZ7zGU.cjs} +1 -1
- package/dist/{index-BjJGt5n9.js → index-twApCU3A.js} +1 -1
- package/dist/{index-BpUTBz77.cjs → index-tyYdP21K.cjs} +1 -1
- package/dist/{index-C-AfxANM.cjs → index-ugVCM2_1.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-6ThktX0W.js → index.vue_vue_type_script_setup_true_lang-BH9_Te0S.js} +2 -2
- package/dist/{index.vue_vue_type_script_setup_true_lang-D2XdpbX2.cjs → index.vue_vue_type_script_setup_true_lang-at_JPyg5.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Ce-Qmyx6.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Br0-XuvP.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CCe3D1Fi.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CZZJYhO9.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-D5Bmiomk.js → index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-CHdL2mdi.js} +235 -235
- package/dist/{index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-DUnmQvPK.cjs → index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-DtoHG_C9.cjs} +7 -7
- package/dist/{index.vue_vue_type_style_index_0_scoped_57a7854d_lang-BHrALHze.cjs → index.vue_vue_type_style_index_0_scoped_57a7854d_lang-BmbIlTnn.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_57a7854d_lang-BxWFTucV.js → index.vue_vue_type_style_index_0_scoped_57a7854d_lang-CZvlVQ3K.js} +8 -8
- package/dist/{login--G67Cn_f.cjs → login-C7jVTvUQ.cjs} +1 -1
- package/dist/{login-C8DAyy2e.js → login-wUTWXQ7u.js} +1 -1
- package/dist/{main-D6VhEWlV.js → main-DZAZF0E8.js} +5 -5
- package/dist/{main-BvVe_CBg.cjs → main-MdhpVHXc.cjs} +1 -1
- package/dist/{menu-B98fDP-p.cjs → menu-CcabvNj6.cjs} +10 -10
- package/dist/{menu-DArqZlON.js → menu-wif0xsml.js} +4878 -4878
- package/dist/modelComp-B8kjqlTY.cjs +1 -0
- package/dist/{modelComp-6AqovLWA.js → modelComp-bhPfLPDx.js} +6 -2
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +9 -9
- package/dist/{threeModel-BXCCNMoU.cjs → threeModel-BRkJrghm.cjs} +1 -1
- package/dist/{threeModel-D1NbQhLh.js → threeModel-C2biL1qd.js} +2 -2
- package/package.json +1 -1
- package/public/icons/svg/editTable.svg +1 -0
- package/public/icons/svg/readTable.svg +1 -0
- package/public/icons/svg/rowCreate.svg +1 -0
- package/dist/index-CewlNEjY.cjs +0 -15
- package/dist/index-DY-oa5G1.cjs +0 -4207
- package/dist/modelComp-RmvEs7pM.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const N=require("vue"),c=require("./menu-
|
|
1
|
+
"use strict";const N=require("vue"),c=require("./menu-CcabvNj6.cjs"),D=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"},{key:"MenuName",value:"Menu"},{key:"GroupName",value:"Group"},{key:"SystemKey",value:"System"}],b=[{key:"FormDirect",value:"formFlex"},{key:"Form",value:"formContent"},{key:"FormButton",value:"formButton"},{key:"FormFlex",value:"formWrap"},{key:"TableColumns",value:"header"},{key:"TableButton",value:"extraButton"},{key:"TableLineButton",value:"rowButton"},{key:"Table",value:"tableContents"},{key:"TableIndex",value:"tableIndex"},{key:"Menus",value:"menuContents"},{key:"GroupContents",value:"groupContents"}];N.ref(0);const I=l=>{var t,r;if(Array.isArray(Object.keys(l))&&((t=Object.keys(l))==null?void 0:t.length)>0){let e=[];return(r=Object.entries(l))==null||r.forEach(([s,n])=>{var f,$;let a=[];if(a.push(s),((f=Object.keys(n))==null?void 0:f.length)>0){let y=[];($=I(n))==null||$.forEach(T=>{y.push(T)}),y==null||y.forEach(T=>{a.push(T)})}e.push(a)}),e}},R=(l,t)=>{var e;let r=t;return Array.isArray(Object.keys(l))&&((e=Object.entries(l))==null||e.forEach(([s,n])=>{let a=[s];if(typeof n=="object"&&n!==null){let f=I(n);f==null||f.forEach($=>{a.push($)})}r.push(a)})),r},X=l=>{const t={};return l.forEach(e=>{const s=e.split("/");let n=t;s.forEach(a=>{n[a]||(n[a]={}),n=n[a]})}),R(t,[])},Y=l=>X(l);N.ref(0);N.ref(1);const q=l=>{let t;l.replaceAll(" ",`\r
|
|
2
2
|
`).includes(`\r
|
|
3
3
|
`)?t=l.replaceAll(" ",`\r
|
|
4
4
|
`).split(`\r
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1754014497867" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6026" width="32" height="32" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M938.666667 390.186667V207.274667A121.941333 121.941333 0 0 0 816.725333 85.333333H207.274667A121.941333 121.941333 0 0 0 85.333333 207.274667v609.450666A121.941333 121.941333 0 0 0 207.274667 938.666667h609.450666A121.941333 121.941333 0 0 0 938.666667 816.725333V390.186667zM164.138667 164.138667c11.434667-11.52 26.965333-17.92 43.178666-17.92h609.578667a60.928 60.928 0 0 1 60.885333 61.098666v121.984H146.218667v-122.026666c0-16.170667 6.4-31.701333 17.92-43.136z m195.413333 439.381333h-213.333333v-213.333333h213.333333v213.333333z m-195.413333 256.426667c-11.52-11.349333-17.92-26.88-17.92-43.050667v-152.448h213.333333v213.333333H207.36a60.586667 60.586667 0 0 1-43.178667-17.792z m702.677333-6.741334c-25.472 26.282667-82.346667 21.546667-118.357333 21.461334h-340.053334V384h475.733334v350.72c0.085333 37.12 8.106667 92.245333-17.322667 118.485333z" fill="#646E78" p-id="6027"></path><path d="M807.594667 506.709333a41.941333 41.941333 0 0 1 3.072 15.701334c0 2.986667-0.554667 5.930667-1.706667 8.874666a27.093333 27.093333 0 0 1-5.418667 8.533334c-2.730667 2.730667-5.12 5.12-7.296 7.168-2.133333 2.048-4.053333 3.84-5.632 5.461333-1.792 1.834667-3.498667 3.413333-5.12 4.778667l-63.488-63.829334c2.730667-2.474667 5.973333-5.504 9.685334-9.045333 3.754667-3.498667 6.826667-6.314667 9.344-8.362667a29.781333 29.781333 0 0 1 19.882666-6.656 37.76 37.76 0 0 1 9.514667 1.536c3.029333 0.938667 5.717333 1.962667 7.978667 3.072 4.736 2.517333 10.026667 6.912 15.786666 13.141334 5.76 6.272 10.24 12.8 13.397334 19.626666z m-264.618667 166.528l9.514667-9.728c4.992-5.12 11.221333-11.434667 18.688-18.901333l24.789333-24.917333 27.52-27.648 73.045333-73.386667 63.530667 64.170667-73.045333 73.386666-27.178667 27.605334c-9.045333 8.874667-17.194667 17.024-24.448 24.405333-7.253333 7.381333-13.226667 13.482667-18.005333 18.261333a147.328 147.328 0 0 1-16.298667 14.677334 42.453333 42.453333 0 0 1-9.173333 5.461333 147.925333 147.925333 0 0 1-13.952 5.802667 469.418667 469.418667 0 0 1-38.186667 12.288 143.36 143.36 0 0 1-13.44 3.072c-6.101333 0.682667-10.197333-0.213333-12.202667-2.730667-2.048-2.517333-2.602667-6.698667-1.706666-12.629333a115.626667 115.626667 0 0 1 3.2-13.824l5.461333-18.773334c1.92-6.485333 3.797333-12.458667 5.589333-17.92 1.834667-5.461333 3.285333-9.216 4.437334-11.264 1.365333-3.157333 2.858667-6.058667 4.565333-8.704 1.706667-2.602667 4.138667-5.504 7.296-8.704z" fill="#646E78" p-id="6028"></path></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1754014546465" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7433" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><path d="M896 384v384a85.333333 85.333333 0 0 1-85.333333 85.333333h-256l341.333333-469.333333z" fill="#B4D3FF" p-id="7434"></path><path d="M810.666667 128a85.333333 85.333333 0 0 1 85.333333 85.333333v597.333334a85.333333 85.333333 0 0 1-85.333333 85.333333H213.333333a85.333333 85.333333 0 0 1-85.333333-85.333333V213.333333a85.333333 85.333333 0 0 1 85.333333-85.333333h597.333334z m0 51.2H213.333333a34.133333 34.133333 0 0 0-34.133333 34.133333v597.333334a34.133333 34.133333 0 0 0 34.133333 34.133333h597.333334a34.133333 34.133333 0 0 0 34.133333-34.133333V213.333333a34.133333 34.133333 0 0 0-34.133333-34.133333z" fill="#333333" p-id="7435"></path><path d="M388.266667 391.936v51.2H166.4v-51.2zM857.6 622.336v51.2H166.4v-51.2z" fill="#333333" p-id="7436"></path><path d="M403.2 166.741333V858.026667h-51.2V166.741333zM672 647.936v210.133333h-51.2v-210.133333z" fill="#333333" p-id="7437"></path><path d="M772.224 293.717333a25.6 25.6 0 0 1 37.632 34.730667l-174.378667 189.098667a34.133333 34.133333 0 0 1-47.786666 2.346666l-103.893334-92.586666a25.6 25.6 0 0 1 34.090667-38.186667l91.306667 81.365333 162.986666-176.768z" fill="#333333" p-id="7438"></path></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1754017588044" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3671" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><path d="M465.454545 465.454545V139.636364a46.545455 46.545455 0 0 1 93.09091 0v325.818181h325.818181a46.545455 46.545455 0 0 1 0 93.09091H558.545455v325.818181a46.545455 46.545455 0 0 1-93.09091 0V558.545455H139.636364a46.545455 46.545455 0 0 1 0-93.09091z" p-id="3672"></path></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index.vue_vue_type_style_index_0_scoped_57a7854d_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index.vue_vue_type_style_index_0_scoped_57a7854d_lang-BmbIlTnn.cjs"),e=require("vue"),u=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),_=["title"],C={key:0,class:"menu-operate-icon"},f={class:"menu-config-wrap"},k=["onClick"],h={class:"module-dialog-content"};function v(o,l,B,V,N,M){const i=e.resolveComponent("svg-icon"),d=e.resolveComponent("el-popover"),c=e.resolveComponent("ssMenu"),r=e.resolveComponent("el-button"),g=e.resolveComponent("ssDialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(c,{class:"vertical-menu",mode:o.mode,menuList:o.renderMenuList,onClickMenu:o.clickMenu,onOpenMenu:o.openMenu,onCloseMenu:o.closeMenu},{title:e.withCtx(({menu:t})=>{var s,a;return[e.createVNode(i,{name:t.icon??"",class:"menu-icon"},null,8,["name"]),e.createElementVNode("span",{title:t.title,class:"menu-title",style:e.normalizeStyle({marginRight:t!=null&&t.config&&((s=t==null?void 0:t.config)==null?void 0:s.length)>0?"25px":"1px"})},e.toDisplayString(t.title??""),13,_),t!=null&&t.config&&((a=t==null?void 0:t.config)==null?void 0:a.length)>0?(e.openBlock(),e.createElementBlock("span",C,[e.createVNode(d,{title:"",placement:"bottom-start",trigger:"click","popper-class":"menu-operate-popover"},{reference:e.withCtx(()=>[e.createVNode(i,{name:"config"})]),default:e.withCtx(()=>[e.createElementVNode("div",f,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t==null?void 0:t.config,n=>(e.openBlock(),e.createElementBlock("div",{class:"menu-config-item",key:n.id,onClick:D=>o.clickMenuIcon(t,n)},[e.createVNode(i,{name:n==null?void 0:n.operateIcon,style:{width:"15px",height:"15px","margin-right":"8px"}},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(n==null?void 0:n.operateType),1)],8,k))),128))])]),_:2},1024)])):e.createCommentVNode("",!0)]}),_:1},8,["mode","menuList","onClickMenu","onOpenMenu","onCloseMenu"]),e.createVNode(g,{class:"module-dialog",title:o.dialogInfo.title,visible:o.dialogInfo.show,width:o.dialogInfo.width,onBeforeDestroy:o.beforeDialogDestroy},{default:e.withCtx(()=>[e.createElementVNode("div",h,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.dialogRenderComps,t=>(e.openBlock(),e.createElementBlock("div",{key:t.id},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.getComponents((t==null?void 0:t.comp)??"Input")),{itemData:t==null?void 0:t.compData,key:t==null?void 0:t.id,content:(t==null?void 0:t.contents)??[],config:t==null?void 0:t.config,onContentChange:o.handleCompChange},null,40,["itemData","content","config","onContentChange"]))]))),128))])]),footer:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(r,{id:"themeBorderButton",onClick:o.beforeDialogDestroy},{default:e.withCtx(()=>l[0]||(l[0]=[e.createTextVNode("取消")])),_:1,__:[0]},8,["onClick"]),e.createVNode(r,{id:"themeButton",onClick:o.clickSubmitForm},{default:e.withCtx(()=>l[1]||(l[1]=[e.createTextVNode(" 确认 ")])),_:1,__:[1]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])],64)}const y=u._export_sfc(p._sfc_main,[["render",v],["__scopeId","data-v-57a7854d"]]);exports.default=y;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),p=require("./menu-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),p=require("./menu-CcabvNj6.cjs"),B=require("./login-C7jVTvUQ.cjs"),U=require("./crypto-CRbcEKIz.cjs"),A=require("./index-COcl6KL3.cjs"),I=require("./index-Dmc9yBFD.cjs"),F=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),R=B.useLoginState(p.pinia),{loginUserInfo:u,cryptoInfo:m}=p.storeToRefs(R),O=p.useMenuState(p.pinia),{activeMenuPath:h}=p.storeToRefs(O),_=n.ref(0);var T,E,k,N;const j=n.ref([{label:"",name:"account",value:(T=u.value)==null?void 0:T.account},{label:"",name:"userDept",value:(E=u.value)==null?void 0:E.userDept},{label:"",name:"userRoles",value:(N=(k=u.value)==null?void 0:k.userRoles)==null?void 0:N.join("、")}]),W=()=>{},b=n.ref(!1),w=n.reactive({dialogTitle:"电子签名",dialogWidth:"30",dialogShow:!1,url:""}),D=n.ref([{label:"签字版",icon:p.edit_pen_default,type:"button",disabled:!1},{label:"电子签名",icon:p.edit_default,type:"button",disabled:!1},{label:"上传手写签名",icon:p.upload_filled_default,type:"buttonUpload",disabled:!1}]),V=n.ref(!1),q=n.computed(()=>{var t;const s=sessionStorage.getItem("authority"),e=JSON.parse(s||"");return Array.isArray(e)?(V.value=!(e!=null&&e.includes(`${h.value}/上传头像`)),(t=D.value)==null?void 0:t.map(r=>({...r,disabled:!(e!=null&&e.includes(`${h.value}/签名`))}))):typeof e=="string"&&(e==null?void 0:e.toUpperCase())==="SUPERADMIN"?D.value:[]}),H=n.computed(()=>[{key:"signConfig",contents:w},{key:"signTypeList",contents:q.value}]),z=s=>{w.dialogShow=s.label==="电子签名"},x=()=>{w.dialogShow=!1},M=async s=>{var t,r,o,l,a,i,c,g,f;const e=await p.getInsofDataApi({id:s,key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:"/系统管理/用户管理"}});if(((t=e==null?void 0:e.data)==null?void 0:t.code)===200&&e.data.result&&Array.isArray(e.data.result)&&e.data.result.length>0){const y={...(l=(o=(r=e.data.result)==null?void 0:r[0])==null?void 0:o.value)==null?void 0:l.tableData,id:(i=(a=e.data.result)==null?void 0:a[0])==null?void 0:i.id,layer:(f=(g=(c=e.data.result)==null?void 0:c[0])==null?void 0:g.key)==null?void 0:f.layer};R.setLoginUserInfo(y)}},K=async s=>{var e,t,r;try{const o=await p.updateInsofDataApi({id:(e=u.value)==null?void 0:e.id,value:{tableData:s}});((t=o==null?void 0:o.data)==null?void 0:t.code)===200&&(x(),p.ElMessage.success("修改成功"),await M((r=u.value)==null?void 0:r.id),b.value=!1)}catch{p.ElMessage.error("修改响应失败"),b.value=!1}},J=async(s,e)=>{var r;const t={...u.value,status:((r=u.value)==null?void 0:r.status)??"启用",[s]:e};b.value=!0,await K(t)},v=n.reactive({baseCols:[],otherCols:[]}),P=n.ref([]),$=n.ref(),Z=(s,e,t)=>{var l,a,i,c,g;let r;const o=e;((a=(l=u.value)==null?void 0:l.layer)==null?void 0:a.toUpperCase())!=="SUPERADMIN"?r=U.decryptData((i=u.value)==null?void 0:i.password,(c=m==null?void 0:m.value)==null?void 0:c.privateKey):r=(g=u.value)==null?void 0:g.password,r===o?t():t(new Error("输入的密码与原密码不匹配,请重新输入"))},G=(s,e,t)=>{e?/^(?=.*[A-Z])(?=.*[a-z])(?=.*\d)(?=.*[!@#$%^&*(),.?":{}|<>]).{6,}$/.test(e)?t():t(new Error("密码必须包含大写字母、小写字母、数字和特殊字符,并且长度至少为6个字符")):t(new Error("请输入密码"))},Q=(s,e,t)=>{var r;e!==((r=$.value)==null?void 0:r.newtPass)?t(new Error("两次输入的密码不一致")):t()},X=async()=>{var e,t,r,o,l,a,i,c,g;const s=await p.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:"/系统管理/用户管理"}});if(((e=s==null?void 0:s.data)==null?void 0:e.code)===200&&s.data.result&&((t=s.data.result)==null?void 0:t.length)>0){const f=(i=(a=(l=(o=(r=s.data.result)==null?void 0:r[0])==null?void 0:o.value)==null?void 0:l.pageData)==null?void 0:a.compData)==null?void 0:i.find(d=>(d==null?void 0:d.key)==="header"),y=["password","status","userDept","avatar","signature","account","userRoles","layer"];v.baseCols=f&&((c=f.contents)==null?void 0:c.map(d=>({...d,isFormColHidden:(y==null?void 0:y.includes(d==null?void 0:d.prop))||(d==null?void 0:d.label)==="操作"})));const C=(g=f.contents)==null?void 0:g.find(d=>(d==null?void 0:d.prop)==="password"),L=[{...C,label:"当前密码",prop:"currentPass",validator:Z},{...C,label:"新密码",prop:"newtPass",validator:G},{...C,label:"确认密码",prop:"confirmNewPass",validator:Q}];v.otherCols=L,te(u.value)}},Y=s=>{$.value=s},ee=async({content:s,buttonName:e})=>{var r,o,l,a,i;let t;e==="确定"&&(t={...u.value,status:((r=u.value)==null?void 0:r.status)??"启用",password:((l=(o=u.value)==null?void 0:o.layer)==null?void 0:l.toUpperCase())==="SUPERADMIN"?s==null?void 0:s.confirmNewPass:U.encryptData(s==null?void 0:s.confirmNewPass,(a=m.value)==null?void 0:a.publicKey)}),e==="保存基本信息"&&(t={...u.value,...s,status:((i=u.value)==null?void 0:i.status)??"启用"}),b.value=!0,await K(t)},S=()=>{const s={base:[{label:"保存基本信息"}],other:[{label:"重置",background:"#b7b8b8"},{label:"确定"}]},e=sessionStorage.getItem("authority"),t=JSON.parse(e||"");if(Array.isArray(t)){const r=t!=null&&t.includes(`${h.value}/基本信息`)?s==null?void 0:s.base:[],o=t!=null&&t.includes(`${h.value}/修改密码`)?s==null?void 0:s.other:[];return{base:r,other:o}}else return typeof t=="string"&&(t==null?void 0:t.toUpperCase())==="SUPERADMIN"?s:null},te=s=>{var e,t,r,o,l;S(),P.value=[{value:"基础信息",label:"基础信息",children:[{type:"form",content:{rowContents:(e=v.baseCols)==null?void 0:e.map(a=>({...a,width:2,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,contents:a==null?void 0:a.options,value:s[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=S())==null?void 0:t.base,isEnableWrap:!1,isButtonRow:!1},value:""}]},{value:"修改密码",label:"修改密码",children:[{type:"form",content:{rowContents:(r=v.otherCols)==null?void 0:r.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:(o=v.otherCols)==null?void 0:o.reduce((a,i)=>(a[i.prop]=[{required:!0,message:"输入有误",trigger:"change"},{validator:(c,g,f)=>i.validator(c,g,f),trigger:"blur"}],a),{}),buttonValue:(l=S())==null?void 0:l.other,isEnableWrap:!1},value:""}]}]},ae=Object.freeze(Object.defineProperty({__proto__:null,beforeSignDestroy:x,changeFormTrigger:Y,clickFormButton:W,clickSignButton:z,clickTabButton:ee,getUserTableHeadersAsync:X,itemData:H,loading:b,refreshLoginUserInfoAsync:M,rowContents:j,signPadInfo:w,signTypes:q,submitImageAsync:J,tabKey:_,tabsContents:P,tempSignTypes:D,uploadDisabled:V},Symbol.toStringTag,{value:"Module"})),se={class:"personal-wrapper"},re={class:"personal-box left"},ne={class:"base-avatar"},oe={class:"center-avatar"},le={class:"base-info"},ie={class:"base-signature"},ue={class:"personal-box right"},de=n.defineComponent({__name:"index",setup(s){const e=n.reactive({...ae}),t=B.useLoginState(),{loginUserInfo:r}=p.storeToRefs(t);return n.onMounted(()=>{var o;e.getUserTableHeadersAsync(),e.refreshLoginUserInfoAsync((o=r==null?void 0:r.value)==null?void 0:o.id),_.value++}),(o,l)=>{const a=n.resolveDirective("loading");return n.openBlock(),n.createElementBlock("div",se,[n.createElementVNode("div",re,[n.createElementVNode("div",ne,[n.withDirectives((n.openBlock(),n.createElementBlock("div",oe,[n.createVNode(A.ssAvatar,{disabled:e.uploadDisabled,userInfo:n.unref(r),onSubmitImage:l[0]||(l[0]=i=>e.submitImageAsync("avatarUrl",i))},null,8,["disabled","userInfo"])])),[[a,e.loading]])]),n.createElementVNode("div",le,[n.createVNode(I.ssForm,{rowContents:e.rowContents,isEnableWrap:!1,isButtonRow:!0,isEdit:!1},null,8,["rowContents"])]),n.createElementVNode("div",ie,[n.createVNode(A.ssSignature,{userInfo:n.unref(r),itemData:e.itemData,onClickSignButton:e.clickSignButton,onBeforeDestroy:e.beforeSignDestroy,onClickSubmitSign:l[1]||(l[1]=i=>e.submitImageAsync("signature",i))},null,8,["userInfo","itemData","onClickSignButton","onBeforeDestroy"])])]),n.createElementVNode("div",ue,[(n.openBlock(),n.createBlock(I.ssTab,{key:n.unref(_),tabsContents:e.tabsContents,onChangeTrigger:e.changeFormTrigger,onClickTrigger:e.clickTabButton},null,8,["tabsContents","onChangeTrigger","onClickTrigger"]))])])}}}),pe=F._export_sfc(de,[["__scopeId","data-v-a55e627c"]]);exports.default=pe;
|