ss-component-new 1.1.714 → 1.1.715
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-D1rENrtC.js → array-CV47iU9i.js} +1 -1
- package/dist/{array-DiC30wYM.cjs → array-C_A3GqHl.cjs} +1 -1
- package/dist/icons/svg/colOperate.svg +1 -0
- package/dist/index-47QrfG4u.cjs +15 -0
- package/dist/{index-JNw-0LM6.js → index-62jpKG-S.js} +10 -11
- package/dist/index-8idzhcUq.cjs +4207 -0
- package/dist/index-8oaOF8hU.cjs +1 -0
- package/dist/index-B1EBZK4V.cjs +1 -0
- package/dist/index-B4D4I9Ei.cjs +1 -0
- package/dist/{index-DqIn00H8.js → index-B9e8jfXC.js} +2 -2
- package/dist/index-BAdkTvA0.cjs +1 -0
- package/dist/index-BDM24WTf.cjs +1 -0
- package/dist/{index-cplChbGm.js → index-BF1d01SM.js} +5 -5
- package/dist/{index-B7xlKvbO.cjs → index-BOZohpjd.cjs} +1 -1
- package/dist/{index-H-bGpaNs.js → index-BU8nVgIT.js} +1 -1
- package/dist/{index-CCxinvIS.js → index-Ba_1AoLH.js} +8 -9
- package/dist/{index-BhN_xaKB.js → index-BcNQOPYD.js} +2 -2
- package/dist/{index-BEHcZREm.js → index-Bcpi7fL8.js} +22 -23
- package/dist/{index-CU5qn5hA.js → index-Bdy9rjka.js} +2 -2
- package/dist/index-Bi9dI5Fg.cjs +1 -0
- package/dist/{index-DxQ-WNaQ.js → index-Bu_OR9tS.js} +7654 -7620
- package/dist/{index-S15gAcDT.js → index-ByunADrM.js} +14 -15
- package/dist/index-C6SI8hvh.cjs +1 -0
- package/dist/{index-DldssUmp.cjs → index-C9Nq7qdZ.cjs} +1 -1
- package/dist/{index-Dq3Gb645.cjs → index-CGf9qaM9.cjs} +1 -1
- package/dist/index-CGv_PH5k.cjs +1 -0
- package/dist/index-CHlc1LGK.cjs +1 -0
- package/dist/index-C_1UdyuB.cjs +1 -0
- package/dist/{index-k3Bxo8CN.js → index-ChQSWsp7.js} +7 -8
- package/dist/{index-BvgxZw84.js → index-CpnXGkvz.js} +4 -4
- package/dist/{index-DwW2YuMT.js → index-Cw3WXgi7.js} +1 -1
- package/dist/{index-BFZBbjlZ.js → index-D-t9ZfYS.js} +2 -2
- package/dist/{index-FC3u5SDQ.js → index-D7KHXUkP.js} +5 -5
- package/dist/{index-CRKPHTGu.js → index-D8qVbjll.js} +1 -1
- package/dist/index-DSPdpu8p.cjs +1 -0
- package/dist/{index-C9_p4Vm6.js → index-DZbUzYxD.js} +463 -461
- package/dist/{index-Byy_Xtef.js → index-DpzKMBIi.js} +5 -6
- package/dist/index-Du6TCMb3.cjs +1 -0
- package/dist/index-DwlLvQ7U.cjs +1 -0
- package/dist/index-HqICPCny.cjs +1 -0
- package/dist/{index-B9dgbtyu.js → index-QzT_XISi.js} +43 -44
- package/dist/index-VBY1u2Ig.cjs +1 -0
- package/dist/{index-C3bhZmjl.js → index-XuxfvwKY.js} +5 -5
- package/dist/{index-Cpx_u9T6.js → index-cBErNLtY.js} +3 -3
- package/dist/index-e750qP8Q.cjs +1 -0
- package/dist/{index-DOs-6Cx7.cjs → index-glKQqAZb.cjs} +1 -1
- package/dist/{index-Bvnvuwkn.js → index-h0An6eiK.js} +3603 -3594
- package/dist/index-iGVtZ2hS.cjs +1 -0
- package/dist/{index-di1QdZZr.js → index-s4l8lwWV.js} +2 -2
- package/dist/{index.vue_vue_type_script_setup_true_lang-BcMm1KLj.cjs → index.vue_vue_type_script_setup_true_lang-BkYehasn.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DN-3ZDhB.js → index.vue_vue_type_script_setup_true_lang-D6xvhgat.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BHHPVcqx.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CUNGVKqd.cjs} +135 -135
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DCPQmJ8P.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D5Z2_TwH.js} +12799 -12774
- package/dist/{index.vue_vue_type_style_index_0_scoped_ffb37532_lang-bjlUC_Ux.cjs → index.vue_vue_type_style_index_0_scoped_8606206c_lang-B_rzoL0d.cjs} +13 -13
- package/dist/{index.vue_vue_type_style_index_0_scoped_ffb37532_lang-DB4kiFum.js → index.vue_vue_type_style_index_0_scoped_8606206c_lang-C7I7XGpj.js} +105 -106
- package/dist/index.vue_vue_type_style_index_0_scoped_c81d0427_lang-B_z2hHzZ.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_c81d0427_lang-Bem94E3F.js → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-DcDtqJuK.js} +53 -54
- package/dist/{menu-BRpPhHno.js → login-BLjZKKjO.js} +1006 -881
- package/dist/login-C8QOZ9u0.cjs +11 -0
- package/dist/{main-slCUa76N.js → main-DDfJ4Ebu.js} +4 -4
- package/dist/main-o1aT6Tx9.cjs +1 -0
- 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-BY_tDAcc.js → threeModel-8wtgLTlp.js} +2 -2
- package/dist/threeModel-cQmQcupA.cjs +1 -0
- package/package.json +1 -1
- package/public/icons/svg/colOperate.svg +1 -0
- package/dist/index-B1XyxOHh.cjs +0 -1
- package/dist/index-B6eLhxMJ.cjs +0 -1
- package/dist/index-BLZNIRkY.cjs +0 -15
- package/dist/index-BYA9VCDi.cjs +0 -1
- package/dist/index-C-VUvax5.cjs +0 -1
- package/dist/index-CGebARL6.cjs +0 -1
- package/dist/index-CHcDZKUi.cjs +0 -1
- package/dist/index-COoh2ijF.cjs +0 -1
- package/dist/index-CPj1rc3m.cjs +0 -1
- package/dist/index-Cdz4ZgAR.cjs +0 -4207
- package/dist/index-Cj-k4kxo.cjs +0 -1
- package/dist/index-Coxoz81K.cjs +0 -1
- package/dist/index-D6xSLp3Q.cjs +0 -1
- package/dist/index-DSC06oXb.cjs +0 -1
- package/dist/index-DTLKy7rp.cjs +0 -1
- package/dist/index-Decs_B4B.cjs +0 -1
- package/dist/index-Dp1mAXQ2.cjs +0 -1
- package/dist/index-Nn47GzGZ.cjs +0 -1
- package/dist/index-Yr549Xbj.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_c81d0427_lang-CiYmZBSD.cjs +0 -1
- package/dist/login-CCz_BcJe.cjs +0 -1
- package/dist/login-h0Hl0hFq.js +0 -129
- package/dist/main-DUyxM_WP.cjs +0 -1
- package/dist/menu-vml_xHJD.cjs +0 -11
- package/dist/threeModel-W5f1wios.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),K=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),F=require("vue-router"),V=require("./login-C8QOZ9u0.cjs"),m=require("./index-2p69g4HY.cjs"),W=require("./crypto-CRbcEKIz.cjs"),x=require("./index-VBY1u2Ig.cjs"),H={},z={class:"left-wrap"},$={class:"left-bg"};function ee(v,E){return e.openBlock(),e.createElementBlock("div",z,[e.createElementVNode("div",$,[e.renderSlot(v.$slots,"img",{},void 0,!0)])])}const te=K._export_sfc(H,[["render",ee],["__scopeId","data-v-9b7ee6c9"]]),ae={class:"right-wrap"},oe={class:"right-title"},ne={class:"right-content"},se={class:"tab-content"},re={class:"tab-tips"},ce=e.defineComponent({__name:"index",props:{tabList:{type:Array,default:[]},loading:{type:Boolean,default:!1}},emits:["clickLogin","handleTabClick"],setup(v,{emit:E}){const g=e.ref("account"),c=E,i=()=>{c("clickLogin",g.value)},A=()=>{c("handleTabClick",g.value)};return(u,p)=>{const f=e.resolveComponent("el-button"),h=e.resolveComponent("el-tab-pane"),C=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",ae,[e.createElementVNode("div",oe,[e.renderSlot(u.$slots,"title",{},void 0,!0)]),e.createElementVNode("div",ne,[e.createVNode(C,{modelValue:g.value,"onUpdate:modelValue":p[0]||(p[0]=w=>g.value=w),class:"right-tabs",onTabClick:A},{default:e.withCtx(()=>[e.createVNode(h,{name:"account"},{label:e.withCtx(()=>[e.renderSlot(u.$slots,"tabLabel2",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("div",se,[e.renderSlot(u.$slots,"tabContent2",{},void 0,!0)]),e.createElementVNode("div",{class:"tab-button special",onClick:i},[e.createVNode(f,{loading:v.loading},{default:e.withCtx(()=>[e.renderSlot(u.$slots,"tabButton2",{},void 0,!0)]),_:3},8,["loading"])]),e.createElementVNode("div",re,[e.renderSlot(u.$slots,"tabTips2",{},void 0,!0)])]),_:3})]),_:3},8,["modelValue"])])])}}}),le=K._export_sfc(ce,[["__scopeId","data-v-3ebcb6e2"]]),ie={class:"account-wrap"},de=e.defineComponent({__name:"index",props:{activeTabName:{type:String,default:""},isClickLogin:{type:Boolean,default:!1}},emits:["handleLoginFormChange"],setup(v,{emit:E}){const g=v,c=e.reactive({account:"",password:""}),i=e.reactive({account:[{required:!0,message:"请输入账号",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]}),A=e.ref(null),u=E;return e.watch(()=>g.isClickLogin,p=>{var f;p&&((f=A.value)==null||f.validate(h=>{u("handleLoginFormChange",h,h?c:null)}))},{immediate:!0}),e.watch(()=>g.activeTabName,p=>{var f;p&&((f=A.value)==null||f.resetFields())}),(p,f)=>{const h=e.resolveComponent("svg-icon"),C=e.resolveComponent("el-input"),w=e.resolveComponent("el-form-item"),k=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",ie,[e.createVNode(k,{model:c,rules:i,ref_key:"formRef",ref:A},{default:e.withCtx(()=>[e.createVNode(w,{label:"",prop:"account"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:c.account,"onUpdate:modelValue":f[0]||(f[0]=S=>c.account=S),placeholder:"请输入账号",clearable:""},{prefix:e.withCtx(()=>[e.createVNode(h,{name:"account",style:{width:"15px",height:"15px"}})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(w,{label:"",prop:"password"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:c.password,"onUpdate:modelValue":f[1]||(f[1]=S=>c.password=S),type:"password",placeholder:"请输入密码","show-password":"",clearable:""},{prefix:e.withCtx(()=>[e.createVNode(h,{name:"password",style:{width:"15px",height:"15px"}})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}}),ue=K._export_sfc(de,[["__scopeId","data-v-b023e8c1"]]),pe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAYAAAB6kdqOAAAAAXNSR0IArs4c6QAAAd9JREFUWEftl71OAkEQx/97QC8XEj+iiTGexo/OnvgE0ChPIIXHQwgP4amxsYZGnkCtpbAxxiyJFEqCJie1yK7ZixhUuNtZYkLUa2/+M7+ZnbnbYTB87P3bIpi1BWCt34UEzpkUF35huWjimpmIlCbp8TMGbA7RX/uus27i2xjI9rgMC+i7jpFvI5EC+XEg2+NlSKTBMKmTuS5QlB2ApgRqz66TVXGDCmmIPhh7RxGl0bXrT15pWNLjVQZkdBuwF0i3qaPAv8StMNvjDwBmdIGQwJyfd+51xn7i4GbekvE7bd8SLQUUOi3fnElR0v3GvEPvaQOpHiIDKe9SlIQlTtq7K41BwexjPosXsQNmkWCCpjYCoqRMtP0HiirY76uQBWQRS1xalhCvnW4aQDmqCmHvR6rQsB/oKIMyClDOd53KoGxTHs8IoGpSKWOgeCI29ZhfaA0EOmpMi26n+beBAIzXkanjGLemDlpkrMbepGmjNMZTFuXY9D0dSF09wE7bhaWrsKD2IV+FgNrNtilwVKCK7zo5SgDqJY0EFJPMeSos1ilAKa++ISBruhoSUNi3Z1hA2+PqyLR/uPRLvm6qJnbqkk9dg0ziEDQV8qJIcE42DRbFnkp3lSZHiRZ8WqXfAFwe+He0YFLSAAAAAElFTkSuQmCC",fe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAx1JREFUWEfFV01oE1EQnnmpYJRGL/6gYsGLVCoUzMGLNrO1B4sYKooXQT0JWtSK4KEHEVERPCjUHgqCQlFED4raUmP3bS0UhRQKnrTorQdFBBOkBZP97AuJbNo0+2KF7GlJ3sz3zcw3M2+Z6vxwnfHJmkAqlVrT0NCwB8BepdQuAOuJaEMxgK/M/M33/UlmfpvL5cY7Ojp+2gQXSiCdTq/IZrNniOg0gM1WTplniKi/sbHxbjwe/13NpioBrXUcwB0iarUBrnBmipnPiUh6KfslCXiet9/3/af/CFxmppQ6nEgkhiv5qkhAa90N4Ob/AC/5YOZLItK30OciAlrrAwAe24Iz8yul1A0imgPQ5ft+75LpZj4qIi+D/5cRMILLZDJejTXvcRxnwDgdGxtrzufzS9abiKZisVgiKMwyAlrr8wCu2UZvzjHzgIj0mHet9fH59uyvqnrmXhG5/bc0pZehoaFYNBpN27ZaoLY/mPk1EeUAmDnRFEJgZnZ2Nt7Z2ZkpBFA6rLXeB+B5LdEXM/ARwPZa7Jg5KSJvygi4rnuFiC7aOlJKPSCiR4lEYrw4L0aIaKWl/S3HcS6XEfA8b9T3/d2WDoxORhzHmQxk0JSv2cZeKfVunnj7whJ8ALDNwkFBpMy8Q0SOBQhMA9hkYW9sv4jIzoUEvgFYbeHAEOgFcKK9vf1JUf0tAN5b2BaOMPMvETHLrEyEtgQKTmKx2NpSP7uue4GIri6XgG0JTARDInIkkP5hs6ZrILC4BLWIkJlPicigAZyYmIjOzc19twU35yqKsJY2zGazG5PJZNY4c103SUQPayFARIvb0HYQMfOoiBwMpL8PwEkiMkPMkAl9Kg4i21HMzGdF5F4JxfO8TwA+Axg33RGGzsyVR3GxnUKXETM3iUih5lrrFiK6T0TdRPQCwCoLApWXkTG0WceRSKS1ra1tugSUSqWa5397RkRbwsBD13ExqqoXEqXUYD6fvx6JRLYCOEREXQDWWYCb9q1+IQkIq35XsoC46ncpDWSiftfyEom6fpgEhVW3TzMbdS/nTOi34XKc29j+AXyzojCfNKqJAAAAAElFTkSuQmCC",ge={class:"card-wrap"},ye={class:"card-icon card"},me={class:"card-input"},Ae={class:"card-icon info"},he=e.defineComponent({__name:"index",props:{activeTabName:{type:String,default:""}},emits:["handleCardInput"],setup(v,{emit:E}){const g=v,c=e.ref(""),i=E,A=u=>{i("handleCardInput",u)};return e.watch(()=>g.activeTabName,u=>{u&&(c.value="")}),(u,p)=>{const f=e.resolveComponent("el-image"),h=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock("div",ge,[e.createElementVNode("div",ye,[e.createVNode(f,{src:e.unref(pe),fit:"contain"},null,8,["src"])]),e.createElementVNode("div",me,[e.createVNode(h,{modelValue:c.value,"onUpdate:modelValue":p[0]||(p[0]=C=>c.value=C),onChange:A,clearable:""},null,8,["modelValue"])]),e.createElementVNode("div",Ae,[e.createVNode(f,{src:e.unref(fe),fit:"contain"},null,8,["src"])])])}}}),be=K._export_sfc(he,[["__scopeId","data-v-23f91251"]]),ve=V.useMenuState(V.pinia),J=V.useLoginState(V.pinia),X=e.ref(!1),G=e.ref(!1),_e=async()=>{const v=m.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),E=m.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure"}});return await Promise.all([v,E]).then(g=>{var A,u,p,f,h,C,w,k,S,M,B,U,P,L;const c=g==null?void 0:g[0],i=g==null?void 0:g[1];if(c.data.code===200){const Q=(w=(C=(h=(f=(p=(u=(A=c==null?void 0:c.data)==null?void 0:A.result)==null?void 0:u[0])==null?void 0:p.value)==null?void 0:f.pageData)==null?void 0:h.compData)==null?void 0:C[0])==null?void 0:w.contents;ve.setRawMenus(Q??[]),X.value=((k=c==null?void 0:c.data)==null?void 0:k.result)&&((M=(S=c==null?void 0:c.data)==null?void 0:S.result)==null?void 0:M.length)>0}else m.ElMessage.error("获取模型菜单响应失败");i.data.code===200?i.data.result&&((B=i.data.result)==null?void 0:B.length)>0&&(J.setStructureData(i.data.result),J.setIsStructureExist(!0),G.value=((U=i==null?void 0:i.data)==null?void 0:U.result)&&((L=(P=i==null?void 0:i.data)==null?void 0:P.result)==null?void 0:L.length)>0):m.ElMessage.error("获取模型结构响应失败")}),{menuExist:X.value,structureExist:G.value}};function Ce(){const v={account:"superadmin",password:"1c8e7623312244c1feb677732278fb8b2af6af1a5335fdaebbdb2720137b372b7871292d11165b83b2967b9c39fa37027d63d37a2f36d764257b566dcfa99f334faa8995301601aec549adf39aef8d89c8788da03a9164937a5f73af20a15ea60d47c7cf01cf",tenantId:-1,code:"",codeId:0};return m.service({url:"/api/sysAuth/login",method:"post",data:v})}const we={class:"login-wrap"},Ee={class:"login-body"},Ne={class:"login-body-item left"},Se={class:"login-body-item right"},ke=e.defineComponent({__name:"index",emits:["change"],setup(v,{emit:E}){const g=F.useRouter(),c=V.useLoginState(V.pinia),i=e.ref({sysCTitle:"",sysETitle:"",loginTitle:"账户密码登录",tabs:[{name:"刷卡登录",btnLabel:"请刷卡登录",tips:"温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"},{name:"用户名登录",btnLabel:"登录",tips:"温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"}]}),A=e.ref(""),u=e.ref(!1),p=e.ref(!1),f=()=>{u.value=!0},h=a=>{u.value=!1,O(a)},C=(a,o)=>{u.value=!1,a&&O(o)},w=a=>x.getFirstArrayProperty(a),k=a=>{let o;const n=x.convertArrayToTree(a),s=x.addPathToTree(n),y=x.getLeafNodesRecursive(s),b=x.groupByField(y,"parentPath");return o=x.handleRowAuthorityRender(b),o},S=(a,o)=>{var s,y,b;const n=(o==null?void 0:o.userRoles)??(o==null?void 0:o.角色名称);try{if(o.layer&&((s=o==null?void 0:o.layer)==null?void 0:s.toUpperCase())==="SUPERADMIN")return"superAdmin";if(Array.isArray(n)){if((n==null?void 0:n.length)===1){const r=a==null?void 0:a.find(t=>(t==null?void 0:t.roleName)===(n==null?void 0:n[0])||t.角色名称===(n==null?void 0:n[0])),_=w(r),l=k(r==null?void 0:r[_]);return r&&l&&Array.isArray(l)?r?l==null?void 0:l.flatMap(t=>t.checkedButtons):[]:[]}if((n==null?void 0:n.length)>1){let r=a==null?void 0:a.filter(t=>n==null?void 0:n.includes(t.roleName||(t==null?void 0:t.角色名称)));const _=w(r==null?void 0:r[0]),l=(b=(y=r==null?void 0:r.map(t=>Array.isArray(t==null?void 0:t[_])?t==null?void 0:t[_]:[]))==null?void 0:y.flat())==null?void 0:b.flatMap(t=>t.checkedButtons);return(l==null?void 0:l.length)===0?m.ElMessage.error("该用户没有权限,请联系管理员"):new Set(l)}}if(typeof n=="string"){const r=a==null?void 0:a.find(t=>(t==null?void 0:t.roleName)===n||(t==null?void 0:t.角色名称)===n),_=w(r),l=k(r==null?void 0:r[_]);return r&&l&&Array.isArray(l)?r?l==null?void 0:l.flatMap(t=>t.checkedButtons):[]:[]}}catch(r){throw new Error(r)}},M=async a=>{var o,n;try{let s=[];const y=await m.getInsofDataApi({key:{systemKey:a==null?void 0:a.systemKey,pageKey:"系统管理/角色管理",type:"data"}});if(y.data.code===200){const b=(n=(o=y.data)==null?void 0:o.result)==null?void 0:n.map(r=>r.value.tableData);s=S(b,a)}if(s)return Array.isArray(s)?Array.from(s):s;throw m.ElMessage.error("获取用户权限失败,请联系管理员"),new Error("获取用户权限失败,请联系管理员")}catch(s){throw m.ElMessage.error("获取用户权限失败,请联系管理员"),new Error(s)}},B=async a=>{var o,n,s,y,b,r,_;try{let l=[],t,I;const D=await m.getInsofDataApi({key:{pageKey:"系统管理/用户管理",type:"data"}}),R=await m.getInsofDataApi({key:{layer:"superAdmin"}});if(D.data.code===200&&R.data.code===200){const Y=(n=(o=R.data)==null?void 0:o.result)==null?void 0:n.map(d=>{var N,T;return{...d.value.tableData,layer:(N=d.key)==null?void 0:N.layer,systemKey:(T=d==null?void 0:d.key)==null?void 0:T.systemKey,id:d.id}}),j=(y=(s=D.data)==null?void 0:s.result)==null?void 0:y.map(d=>{var N,T;return{...d.value.tableData,layer:(N=d.key)==null?void 0:N.layer,systemKey:(T=d==null?void 0:d.key)==null?void 0:T.systemKey,id:d.id}}),q=[...Y,...j];if(t=q==null?void 0:q.find(d=>(d==null?void 0:d.account)===(a==null?void 0:a.account)||(d==null?void 0:d.账号)===(a==null?void 0:a.account)),t){if(((b=t.layer)==null?void 0:b.toUpperCase())!=="SUPERADMIN"&&(!(t!=null&&t.状态)||(t==null?void 0:t.状态)==="禁用"||(t==null?void 0:t.status)==="禁用")){m.ElMessage.error("该用户已被禁用,请联系管理员"),p.value=!1;return}l=await M(t);const{privateKey:d}=await c.getModelSecretAsync(t);let N;if(t.password?N=((r=t.layer)==null?void 0:r.toUpperCase())==="SUPERADMIN"?t.password:W.decryptData(t.password,d):N=((_=t.layer)==null?void 0:_.toUpperCase())==="SUPERADMIN"?t.password:x.resetPassword,(a==null?void 0:a.password)===N)I=t;else throw I=null,m.ElMessage.error("输入的密码错误,请重新输入"),p.value=!1,new Error("输入的密码错误,请重新输入")}}return I&&l?{matchedUser:I,userAuthority:l}:void 0}catch(l){throw new Error(l)}},U=async a=>{var n,s,y;const o=await B(a);if(o!=null&&o.matchedUser){c.setLoginUserInfo(o.matchedUser),sessionStorage.setItem("authority",JSON.stringify(o.userAuthority));const b=((s=(n=o.matchedUser)==null?void 0:n.layer)==null?void 0:s.toUpperCase())==="SUPERADMIN";return sessionStorage.setItem("isSuperAdmin",JSON.stringify(b)),sessionStorage.setItem("systemKey",(y=o.matchedUser)==null?void 0:y.systemKey),await P(o.matchedUser),!0}else throw p.value=!1,m.ElMessage.error("该用户不存在,请重新输入"),new Error("该用户不存在,请重新输入")},P=async a=>{var n,s,y,b,r,_,l,t,I;const o=await m.getInsofDataApi({key:{layer:"superAdmin",systemKey:a==null?void 0:a.systemKey}});if(o.data.code===200&&(n=o.data)!=null&&n.result&&Array.isArray((s=o.data)==null?void 0:s.result)&&((b=(y=o.data)==null?void 0:y.result)==null?void 0:b.length)>0){const D=(I=(t=(l=(_=(r=o.data)==null?void 0:r.result)==null?void 0:_[0])==null?void 0:l.value)==null?void 0:t.tableData)==null?void 0:I.account;c.setSuperAdminInfo({account:D})}},L=async()=>{var a,o,n;try{const s=await Ce();return((a=s==null?void 0:s.data)==null?void 0:a.code)===200?(sessionStorage.setItem("loginToken",(n=(o=s.data)==null?void 0:o.result)==null?void 0:n.accessToken),!0):!1}catch(s){m.ElMessage.error(s)}},Q=async()=>{var a,o,n;try{const s=await m.axios.post("http://139.196.154.85:20024/api/sysAuth/login",{account:"superadmin",password:"9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",codeId:0,code:""});return((a=s==null?void 0:s.data)==null?void 0:a.code)===200?(sessionStorage.setItem("magicToken",(n=(o=s.data)==null?void 0:o.result)==null?void 0:n.accessToken),!0):!1}catch(s){m.ElMessage.error(s)}},O=a=>{p.value=!0;let o=[U(a),L(),Q()];Promise.all(o).then(n=>{(n==null?void 0:n.every(y=>y))&&(_e(),g.push("/"),c.setLogRecordAsync({type:"登录",data:{account:a==null?void 0:a.account}},"/login","login"))})},Z=a=>{A.value=a,u.value=!1,p.value=!1};return(a,o)=>(e.openBlock(),e.createElementBlock("div",we,[e.createElementVNode("div",Ee,[e.createElementVNode("div",Ne,[e.createVNode(te,{class:"login-left-bg"},{img:e.withCtx(()=>o[0]||(o[0]=[e.createElementVNode("div",{class:"title"},[e.createElementVNode("div",null,"INSOFWORKS"),e.createElementVNode("div",null,"工业软件集成开发平台")],-1),e.createElementVNode("div",{class:"divide-line"},null,-1)])),_:1})]),e.createElementVNode("div",Se,[e.createVNode(le,{loading:p.value,onClickLogin:f,onHandleTabClick:Z},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.loginTitle),1)]),tabLabel1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.tabs[0].name),1)]),tabContent1:e.withCtx(()=>[e.createVNode(be,{activeTabName:A.value,onHandleCardInput:h},null,8,["activeTabName"])]),tabButton1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.tabs[0].btnLabel),1)]),tabLabel2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.tabs[1].name),1)]),tabContent2:e.withCtx(()=>[e.createVNode(ue,{activeTabName:A.value,isClickLogin:u.value,onHandleLoginFormChange:C},null,8,["activeTabName","isClickLogin"])]),tabButton2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.tabs[1].btnLabel),1)]),_:1},8,["loading"])])])]))}}),Ie=K._export_sfc(ke,[["__scopeId","data-v-476e2d85"]]);exports.default=Ie;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CUNGVKqd.cjs");const n=require("./login-C8QOZ9u0.cjs");require("./index-2p69g4HY.cjs");const u=require("./index-8idzhcUq.cjs"),o=require("./index-HqICPCny.cjs"),c=require("./index-VBY1u2Ig.cjs"),i=e.defineComponent({__name:"index",setup(s){const t=e.reactive({...o.State}),a=n.useMenuState(),{activeMenuPath:r}=n.storeToRefs(a);return e.onMounted(async()=>{t.structureId=await c.getActivePageStructureId(r.value)}),(l,d)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(u.ssTable,{itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),f=require("./index-2p69g4HY.cjs"),y=require("./login-C8QOZ9u0.cjs"),U=require("./crypto-CRbcEKIz.cjs"),I=require("./index-C9Nq7qdZ.cjs"),T=require("./index-47QrfG4u.cjs"),F=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),R=y.useLoginState(y.pinia),{loginUserInfo:u,cryptoInfo:h}=y.storeToRefs(R),O=y.useMenuState(y.pinia),{activeMenuPath:w}=y.storeToRefs(O),D=n.ref(0);var E,k,N,B;const j=n.ref([{label:"",name:"account",value:(E=u.value)==null?void 0:E.account},{label:"",name:"userDept",value:(k=u.value)==null?void 0:k.userDept},{label:"",name:"userRoles",value:(B=(N=u.value)==null?void 0:N.userRoles)==null?void 0:B.join("、")}]),W=()=>{},m=n.ref(!1),C=n.reactive({dialogTitle:"电子签名",dialogWidth:"30",dialogShow:!1,url:""}),A=n.ref([{label:"签字版",icon:f.edit_pen_default,type:"button",disabled:!1},{label:"电子签名",icon:f.edit_default,type:"button",disabled:!1},{label:"上传手写签名",icon:f.upload_filled_default,type:"buttonUpload",disabled:!1}]),V=n.ref(!1),x=n.computed(()=>{var t;const s=sessionStorage.getItem("authority"),e=JSON.parse(s||"");return Array.isArray(e)?(V.value=!(e!=null&&e.includes(`${w.value}/上传头像`)),(t=A.value)==null?void 0:t.map(r=>({...r,disabled:!(e!=null&&e.includes(`${w.value}/签名`))}))):typeof e=="string"&&(e==null?void 0:e.toUpperCase())==="SUPERADMIN"?A.value:[]}),H=n.computed(()=>[{key:"signConfig",contents:C},{key:"signTypeList",contents:x.value}]),z=s=>{C.dialogShow=s.label==="电子签名"},q=()=>{C.dialogShow=!1},M=async s=>{var t,r,o,l,a,i,p,c,g;const e=await f.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 v={...(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:(g=(c=(p=e.data.result)==null?void 0:p[0])==null?void 0:c.key)==null?void 0:g.layer};R.setLoginUserInfo(v)}},K=async s=>{var e,t,r;try{const o=await f.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&&(q(),f.ElMessage.success("修改成功"),await M((r=u.value)==null?void 0:r.id),m.value=!1)}catch{f.ElMessage.error("修改响应失败"),m.value=!1}},J=async(s,e)=>{var r;const t={...u.value,status:((r=u.value)==null?void 0:r.status)??"启用",[s]:e};m.value=!0,await K(t)},b=n.reactive({baseCols:[],otherCols:[]}),P=n.ref([]),$=n.ref(),Z=(s,e,t)=>{var l,a,i,p,c;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,(p=h==null?void 0:h.value)==null?void 0:p.privateKey):r=(c=u.value)==null?void 0:c.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,p,c;const s=await f.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 g=(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"),v=["password","status","userDept","avatar","signature","account","userRoles","layer"];b.baseCols=g&&((p=g.contents)==null?void 0:p.map(d=>({...d,isFormColHidden:(v==null?void 0:v.includes(d==null?void 0:d.prop))||(d==null?void 0:d.label)==="操作"})));const S=(c=g.contents)==null?void 0:c.find(d=>(d==null?void 0:d.prop)==="password"),L=[{...S,label:"当前密码",prop:"currentPass",validator:Z},{...S,label:"新密码",prop:"newtPass",validator:G},{...S,label:"确认密码",prop:"confirmNewPass",validator:Q}];b.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=h.value)==null?void 0:a.publicKey)}),e==="保存基本信息"&&(t={...u.value,...s,status:((i=u.value)==null?void 0:i.status)??"启用"}),m.value=!0,await K(t)},_=()=>{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(`${w.value}/基本信息`)?s==null?void 0:s.base:[],o=t!=null&&t.includes(`${w.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;_(),P.value=[{value:"基础信息",label:"基础信息",children:[{type:"form",content:{rowContents:(e=b.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=_())==null?void 0:t.base,isEnableWrap:!1,isButtonRow:!1},value:""}]},{value:"修改密码",label:"修改密码",children:[{type:"form",content:{rowContents:(r=b.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=b.otherCols)==null?void 0:o.reduce((a,i)=>(a[i.prop]=[{required:!0,message:"输入有误",trigger:"change"},{validator:(p,c,g)=>i.validator(p,c,g),trigger:"blur"}],a),{}),buttonValue:(l=_())==null?void 0:l.other,isEnableWrap:!1},value:""}]}]},ae=Object.freeze(Object.defineProperty({__proto__:null,beforeSignDestroy:q,changeFormTrigger:Y,clickFormButton:W,clickSignButton:z,clickTabButton:ee,getUserTableHeadersAsync:X,itemData:H,loading:m,refreshLoginUserInfoAsync:M,rowContents:j,signPadInfo:C,signTypes:x,submitImageAsync:J,tabKey:D,tabsContents:P,tempSignTypes:A,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=y.useLoginState(),{loginUserInfo:r}=y.storeToRefs(t);return n.onMounted(()=>{var o;e.getUserTableHeadersAsync(),e.refreshLoginUserInfoAsync((o=r==null?void 0:r.value)==null?void 0:o.id),D.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(I.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(T.ssForm,{rowContents:e.rowContents,isEnableWrap:!1,isButtonRow:!0,isEdit:!1},null,8,["rowContents"])]),n.createElementVNode("div",ie,[n.createVNode(I.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(T.ssTab,{key:n.unref(D),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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as l, watch as b } from "vue";
|
|
2
2
|
import { g as y } from "./index-BCZ59Y4K.js";
|
|
3
|
-
import { s as m, f as d } from "./index-
|
|
4
|
-
import { u as g, s as f } from "./
|
|
3
|
+
import { s as m, f as d } from "./index-Ba_1AoLH.js";
|
|
4
|
+
import { u as g, s as f } from "./login-BLjZKKjO.js";
|
|
5
5
|
const D = g(), { itemData: h } = f(D), c = l(0), k = l([
|
|
6
6
|
{
|
|
7
7
|
label: "机构名称",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const d=require("vue"),k=require("./login-C8QOZ9u0.cjs"),pe=require("./index-8idzhcUq.cjs"),fe=require("./index-VBY1u2Ig.cjs"),y=require("./index-2p69g4HY.cjs"),E=k.useModelComp(k.pinia),m=pe.useUnit(k.pinia),I=k.useMenuState(k.pinia),{menus:ee,configMenu:x,activeMenuPath:_,cacheStructures:F}=k.storeToRefs(I),$=d.ref(!1),te=d.computed(()=>{var e,t;return[{key:"extraButton",contents:[]},{key:"rowButton",contents:[{label:"修改"}]},{key:"header",contents:[{label:"菜单名称",prop:"title",isFormColHidden:!1},{label:"菜单类型",prop:"menuType",formType:"select",options:[{label:"系统菜单",value:"集团"},{label:"公司",value:"公司"}],isTableColHidden:!1,isFormColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:(t=(e=k.cloneDeep(ee.value))==null?void 0:e.map(l=>({...l,menuType:"系统菜单"})))==null?void 0:t.filter(l=>l.title!=="系统管理"&&l.title!=="平台管理")}]}),j=d.ref([]),R=d.ref([{label:"新建"}]),ie=d.computed(()=>[{key:"extraButton",contents:R.value},{key:"rowButton",contents:[{label:"修改"},{label:"删除"}]},{key:"header",contents:[{label:"操作类型",prop:"operateType",formType:"select",options:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标",prop:"operateIcon",formType:"inputPopover",value:""},{label:"操作触发事件",prop:"trigger",formType:"select",options:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"配置一:",prop:"dialogConfig",formType:"button",value:"弹窗内容",isTableColHidden:!0},{label:"配置二:",prop:"contentConfig",formType:"button",value:"模块内容",isTableColHidden:!0},{label:"继承配置:",prop:"allowInherit",formType:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1,isTableColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:j.value}]),J=d.ref([]),T=d.ref({}),de=d.ref({}),q=d.ref([{label:"菜单",prop:"path",isFormColHidden:!0,value:""},{label:"操作类型:",prop:"operateType",type:"select",contents:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标:",prop:"operateIcon",type:"inputPopover",value:""},{label:"操作触发事件:",prop:"trigger",type:"select",contents:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"生成的菜单图标:",prop:"menuIcon",type:"inputPopover",value:""},{label:"配置一:",prop:"dialogConfig",type:"button",value:"操作触发的弹窗结构"},{label:"配置二:",prop:"contentConfig",type:"button",value:"操作生成的模块结构",isFormColHidden:!1},{label:"",prop:"structureIds",type:"input",value:[],isFormColHidden:!0},{label:"继承配置:",prop:"allowInherit",type:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),O=e=>{var t;J.value=e?(t=q.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l:{...l,value:e?e[l==null?void 0:l.prop]:""}):q.value},ge=d.ref([{label:"查询"},{label:"重置"}]),ve=async()=>{},le=e=>e.map(t=>t.childMenus&&t.childMenus.length>0?{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title,children:le(t.childMenus)}:{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title}),g=d.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),U=d.ref([]),C=d.ref({}),h=d.ref(null),ae=d.ref([]),oe=d.computed(()=>{var e;return(e=le(ee.value))==null?void 0:e.filter(t=>t.title!=="系统管理"&&t.title!=="平台管理")}),ne=async e=>{var l,u,n,c;const t=await y.getInsofDataApi({key:{type:"subStructure",systemKey:sessionStorage.getItem("systemKey"),pageKey:e,version:1}});if(((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result){const r=(c=(n=t.data)==null?void 0:n.result)==null?void 0:c.map(p=>{var f;return{id:p==null?void 0:p.id,...(f=p==null?void 0:p.value)==null?void 0:f.pageData}});ae.value=r,I.setCacheStructures({key:"contentConfig",data:r})}},ye=async e=>{var t;$.value=!0,h.value={...e,rootNode:k.findRootNodeByPath(oe.value,e.path)},I.setCacheStructures(null),(e==null?void 0:e.level)===0?R.value.splice(0):(R.value=[{label:"新建"}],U.value=(t=e==null?void 0:e.path)==null?void 0:t.split("/")),await I.setConfigMenu(null),await ne(e==null?void 0:e.path),await K(e)},be=e=>{switch(e){case"新建":return"create";case"修改":return"update";case"删除":return"delete"}},he=async(e,t)=>{var l,u;if(!h.value)return y.ElMessage.warning("请先选择菜单");if(g.type=be(e),U.value=[],E.setSubmitCurStructure(!1),m.setSelectTitle([]),C.value=k.cloneDeep(t),g.type!=="delete"){switch(g.type){case"create":O(null),await I.setConfigMenu(null);break;case"update":O(C.value),await I.setConfigMenu(C.value),console.log("clickRowButton",C.value);break}await d.nextTick(),g.title=`【${g.type==="create"?(l=h.value)==null?void 0:l.path:(u=C.value)==null?void 0:u.path}】菜单配置${e}`,g.show=!0}else await re(C.value,g.type)},ue=d.ref(!0),Ce=async e=>{var t;T.value=e,await I.setConfigMenu({...T.value,path:(t=h.value)==null?void 0:t.path}),ue.value=(e==null?void 0:e.operateType)!=="新增"};d.watch(()=>ue.value,async e=>{var t;await d.nextTick(),J.value=(t=q.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l.prop==="contentConfig"?{...l,isFormColHidden:e}:l:{...l,value:T.value?T.value[l==null?void 0:l.prop]:""})},{immediate:!0,deep:!0});const Ie=d.ref(null),ke=async(e,t)=>{var r,p,f,s,b;if(g.type==="create"){const a=(p=(r=F.value)==null?void 0:r.filter(i=>(i==null?void 0:i.key)===t))==null?void 0:p.flatMap(i=>i==null?void 0:i.data);E.setItemData(a),I.setCacheStructures({key:t,data:a})}if(console.log("getTriggerStructures1",e==null?void 0:e.structureIds,t),!(e!=null&&e.structureIds)||((f=e==null?void 0:e.structureIds)==null?void 0:f.length)===0)return;const l=(b=(s=e==null?void 0:e.structureIds)==null?void 0:s.filter(a=>(a==null?void 0:a.key)===t))==null?void 0:b.map(a=>a==null?void 0:a.id);let u=l==null?void 0:l.map(a=>{if(a)return y.getInsofDataApi({id:a})});const n=await Promise.all(u),c=n==null?void 0:n.every(a=>{var i;return((i=a==null?void 0:a.data)==null?void 0:i.code)===200});if(console.log("getTriggerStructures2",e==null?void 0:e.structureIds,t,n),c&&(n==null?void 0:n.length)>0){const a=n==null?void 0:n.map(i=>{var M,D,N,P,A,o,B;return{id:(N=(D=(M=i==null?void 0:i.data)==null?void 0:M.result)==null?void 0:D[0])==null?void 0:N.id,...(B=(o=(A=(P=i==null?void 0:i.data)==null?void 0:P.result)==null?void 0:A[0])==null?void 0:o.value)==null?void 0:B.pageData}});E.setItemData(a),I.setCacheStructures({key:t,data:a})}},Te=async e=>{var n,c,r,p,f;const t=e==="操作触发的弹窗结构"?"dialogConfig":"contentConfig";I.setButtonTriggerType(t),await ke(C.value,t);let l;(n=T.value)!=null&&n.subMenus&&((c=T.value)==null?void 0:c.subMenus.length)>0&&(l=(r=U.value)==null?void 0:r.map(s=>({value:s})),l.unshift({value:(p=C.value)==null?void 0:p.title}));let u;g.type==="create"?u={...T.value,path:(f=h.value)==null?void 0:f.path}:g.type==="update"&&(u=x.value),await I.setConfigMenu(u),m.setSelectTitle(l),E.setIsEdit("edit")},K=async e=>{var l,u,n,c,r,p;const t=await y.getInsofDataApi({key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:_.value+"/"+(e==null?void 0:e.path),tableId:""}});((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result&&(j.value=((c=(n=t.data)==null?void 0:n.result)==null?void 0:c.length)>0?(p=(r=t.data)==null?void 0:r.result)==null?void 0:p.map(f=>{var s;return{id:f==null?void 0:f.id,...(s=f==null?void 0:f.value)==null?void 0:s.tableData}}):[]),$.value=!1},H=async(e,t,l="contentConfig")=>{var u,n,c,r,p,f;try{let s,b;t==="create"?(s={key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:_.value+"/"+((u=h.value)==null?void 0:u.path),type:"structure",rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,structureBelong:l,parentTable:"",version:1},value:{pageData:e}},b=y.createInsofDataApi):t==="update"?(s={id:e==null?void 0:e.id,value:{pageData:e}},b=y.updateInsofDataApi):t==="delete"&&(s={id:e},b=y.deleteInsofDataApi);const a=await b(s);if(((r=a==null?void 0:a.data)==null?void 0:r.code)!==200)throw y.ElMessage.error("保存响应失败"),new Error("保存响应失败");const i=t==="create"?(p=a==null?void 0:a.data)==null?void 0:p.result:e==null?void 0:e.id;return{status:((f=a==null?void 0:a.data)==null?void 0:f.code)===200,data:{id:i,key:l}}}catch{y.ElMessage.error("保存响应失败")}},Y=(e,t)=>{var f,s,b;const l=(f=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:f.map(a=>a==null?void 0:a.id),u=t.filter(a=>!(l!=null&&l.includes(a))),n=l==null?void 0:l.filter(a=>!t.includes(a));let c=null,r=null,p=null;return c=[...u,...n].filter(a=>a),r=(s=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:s.filter(a=>!(a!=null&&a.id)),p=(b=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:b.filter(a=>a==null?void 0:a.id).filter(a=>Object.keys(a).length>1),{deleteIds:c,createComps:r,updateComps:p}},Z=(e,t)=>{var u,n,c,r,p,f;let l=[];return((u=t==null?void 0:t.deleteIds)==null?void 0:u.length)>0&&((n=t==null?void 0:t.deleteIds)==null||n.forEach(s=>{l.push(H(s,"delete",e))})),((c=t==null?void 0:t.createComps)==null?void 0:c.length)>0&&((r=t==null?void 0:t.createComps)==null||r.forEach(s=>{l.push(H(s,"create",e))})),((p=t==null?void 0:t.updateComps)==null?void 0:p.length)>0&&((f=t==null?void 0:t.updateComps)==null||f.forEach(s=>{s!=null&&s.id&&l.push(H(s,"update",e))})),l},Me=e=>{const t=new Map;return e.forEach(l=>{t.set(l.id,l)}),Array.from(t.values())},De=async(e,t)=>{var l,u,n,c,r,p,f;try{const s=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="contentConfig"),b=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="dialogConfig");await d.nextTick();const a=(n=(u=(l=F.value)==null?void 0:l.filter(o=>(o==null?void 0:o.key)==="dialogConfig"))==null?void 0:u.flatMap(o=>o==null?void 0:o.data))==null?void 0:n.map(o=>o==null?void 0:o.id);let i=(p=(r=(c=F.value)==null?void 0:c.filter(o=>(o==null?void 0:o.key)==="contentConfig"))==null?void 0:r.flatMap(o=>o==null?void 0:o.data))==null?void 0:p.map(o=>o==null?void 0:o.id);i=[...i,...(f=ae.value)==null?void 0:f.map(o=>o==null?void 0:o.id)];const M=Y(b,a),D=Y(s,i),N=Z("dialogConfig",M),P=Z("contentConfig",D),A=[...N,...P];await Promise.all(A).then(o=>{var z,G,L,V,Q,W,X;if(!(o==null?void 0:o.every(v=>v.status)))return;let w=(z=o==null?void 0:o.flatMap(v=>v==null?void 0:v.data))==null?void 0:z.filter(v=>(v==null?void 0:v.id)!==null&&(v==null?void 0:v.id)!==void 0);if(((G=M==null?void 0:M.updateComps)==null?void 0:G.length)===0&&g.type==="update"){const v=(V=(L=C.value)==null?void 0:L.structureIds)==null?void 0:V.filter(S=>(S==null?void 0:S.key)==="dialogConfig");w=[...w,...v]}if(((Q=D==null?void 0:D.updateComps)==null?void 0:Q.length)===0&&g.type==="update"){const v=(X=(W=C.value)==null?void 0:W.structureIds)==null?void 0:X.filter(S=>(S==null?void 0:S.key)==="contentConfig");w=[...w,...v]}const ce=Me(w);re({...t,isNotInitial:!0,structureIds:ce},g.type)}).catch(o=>{y.ElMessage.error(o)})}catch(s){throw y.ElMessage.error(s),new Error(s)}},re=async(e,t)=>{var n,c;let l,u;t==="create"?(l={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:_.value+"/"+((n=h.value)==null?void 0:n.path),tableId:"",rootNodePath:e==null?void 0:e.rootNodePath},value:{tableData:e}},u=y.createInsofDataApi):t==="update"?(l={id:e==null?void 0:e.id,value:{tableData:e}},u=y.updateInsofDataApi):t==="delete"&&(l={ids:[e.id,...(c=e==null?void 0:e.structureIds)==null?void 0:c.map(r=>r.id)]},u=y.batchDeleteInsofDataApi),fe.handleSubmitAsync(u,l,t).then(r=>{t==="create"&&j.value.push({...e,id:r}),t&&r&&y.ElMessage.success("响应成功"),K(h.value)})},Se=async()=>{var l,u,n,c,r;const e=JSON.parse(k.cloneDeep(JSON.stringify(F.value)));await d.nextTick();const t=g.type==="create"?{...x.value,rootNodePath:(u=(l=h.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...x.value,rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,id:(r=C.value)==null?void 0:r.id};await De(e,t),T.value={},g.show=!1,await K(h.value)},we=()=>{g.show=!1},se={comp:"Group",name:"/平台管理/菜单管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:te.value,name:""}]}]},Ne=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:we,buttonValue:ge,changeTrigger:Ce,changedRow:de,clickNodeTrigger:ye,clickRowButton:he,clickSubmitForm:Se,clickTrigger:Te,dialogInfo:g,formatFormData:O,getInitialSubStructure:ne,getTableDataAsync:K,handleItemDataChange:ve,inputForm:T,menuPageData:ie,operatingForm:Ie,pageData:te,renderFormData:J,tableLoading:$,tempMenuPageData:se,treeData:oe},Symbol.toStringTag,{value:"Module"}));exports.State=Ne;exports.tempMenuPageData=se;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),g=require("./index-Bi9dI5Fg.cjs"),n=require("./login-C8QOZ9u0.cjs");require("./array-C_A3GqHl.cjs");const B=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),q=require("./index-C31XRLFj.cjs"),T=require("./index-47QrfG4u.cjs"),F=require("./index-glKQqAZb.cjs"),O=require("./index-2p69g4HY.cjs"),R={class:"type-select"},b=["onClick"],L={class:"list-icon"},U={__name:"index",setup(y){const u=n.useModelComp(n.pinia),{itemData:r}=n.storeToRefs(u),C=_=>{const p=n.cloneDeep(r.value);p.push({comp:_.comp,name:_.name,compData:[]}),u.setItemData(p)};return(_,p)=>{const i=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",R,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(g.slotContent),(f,v)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",key:v},[e.createElementVNode("div",{class:"list-content",onClick:k=>C(f)},[e.createElementVNode("div",L,[e.createVNode(i,{name:f.icon},null,8,["name"])]),e.createElementVNode("div",null,e.toDisplayString(f.name),1)],8,b)]))),128))])}}},z=B._export_sfc(U,[["__scopeId","data-v-1f87163f"]]),H={class:"fill-content"},j={class:"operate-content"},A={class:"collapse-title-content"},G={class:"collapse-title-item"},J={key:1},K=["onClick"],P={class:"icon-content"},Q={key:0,class:"edit-content"},W=["onClick"],X={class:"comp-child"},Y={__name:"index",setup(y){const u=n.useModelComp(n.pinia),{itemData:r,originalData:C}=n.storeToRefs(u),_=e.ref([]);e.ref([]);const p=e.ref([]),i=e.ref([]),f=s=>{var l;let a=(l=n.cloneDeep(i.value))==null?void 0:l.map((t,o)=>(s===o&&(t.content=!0),t));i.value=a},v=s=>{var l;let a=(l=n.cloneDeep(i.value))==null?void 0:l.map((t,o)=>(s===o&&(t.content=!1),t));i.value=a,_.value=n.cloneDeep(r.value)},k=(s,a)=>{var h;let l=(h=n.cloneDeep(i.value))==null?void 0:h.map((c,m)=>(s===m&&(c.content=!1),c));i.value=l;const t=n.cloneDeep(r.value),o=t==null?void 0:t.filter((c,m)=>(m===s&&(c.name=a),c));u.setOriginalData(o),u.setItemData(o)};e.watch(()=>r.value,()=>{var s,a,l;!r.value||((s=r.value)==null?void 0:s.length)===0?_.value=[]:_.value=(a=n.cloneDeep(r.value))==null?void 0:a.filter(t=>(t==null?void 0:t.comp)!=="methodButton"),p.value=_.value,i.value=(l=n.cloneDeep(p.value))==null?void 0:l.map((t,o)=>({id:o,content:!1}))},{deep:!0,immediate:!0});const I=s=>g.getComponent(s),S=(s,a,l)=>{var o,h;if(!s)return;let t=n.cloneDeep(r.value);t=(o=t==null?void 0:t.map((c,m)=>(m===l&&(c.compData=s),c)))==null?void 0:o.filter(c=>(c==null?void 0:c.comp)!=="methodButton"),i.value=(h=n.cloneDeep(t))==null?void 0:h.map((c,m)=>({id:m,content:!1})),u.setOriginalData(t),u.setItemData(t)},M=s=>{F.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const a=n.cloneDeep(r.value),l=a==null?void 0:a.filter((t,o)=>o!==s);u.setOriginalData(l),u.setItemData(l),O.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(s,a)=>{const l=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",H,[a[1]||(a[1]=e.createElementVNode("div",{class:"fill-operate"},e.toDisplayString("操作栏"),-1)),e.createElementVNode("div",j,[e.createVNode(q.default,{class:"collapse-content",collapseContents:_.value},{title:e.withCtx(({item:t,index:o})=>{var h,c,m,D,V,E,N,w,x,$;return[e.createElementVNode("div",A,[e.createElementVNode("div",G,[(c=(h=i.value)==null?void 0:h.find(d=>d.id===o))!=null&&c.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:t.name&&t.name!==""?"8px":"0px"})},e.toDisplayString(t.name),5)),(D=(m=i.value)==null?void 0:m.find(d=>d.id===o))!=null&&D.content?(e.openBlock(),e.createElementBlock("div",J,[e.createVNode(T._sfc_main$2,{modelValue:t.name,"onUpdate:modelValue":d=>t.name=d,onClick:a[0]||(a[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(E=(V=i.value)==null?void 0:V.find(d=>d.id===o))!=null&&E.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(d=>f(o),["stop"]),class:"icon-content"},[e.createVNode(l,{name:"Edit",style:{width:"16px",height:"16px"}})],8,K))]),e.createElementVNode("div",P,[(w=(N=i.value)==null?void 0:N.find(d=>d.id===o))!=null&&w.content?(e.openBlock(),e.createElementBlock("div",Q,[e.createVNode(l,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(d=>v(o),["stop"])},null,8,["onClick"]),e.createVNode(l,{name:"Save",onClick:e.withModifiers(d=>k(o,t.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),($=(x=i.value)==null?void 0:x.find(d=>d.id===o))!=null&&$.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(d=>M(o),["stop"]),class:"icon-content"},[e.createVNode(l,{name:"Delete",style:{width:"16px",height:"16px"}})],8,W))])])]}),content:e.withCtx(({item:t,index:o})=>{var h,c;return[e.createElementVNode("div",X,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(I(t.comp+"Operate")),{itemContents:t==null?void 0:t.compData,originalItemContents:(c=(h=p.value)==null?void 0:h.find((m,D)=>D===o))==null?void 0:c.compData,onChange:m=>S(m,t,o)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},Z=B._export_sfc(Y,[["__scopeId","data-v-27bd1564"]]),ee={key:0,class:"show-content"},te={style:{display:"flex"}},oe={__name:"index",setup(y){const u=n.useModelComp(n.pinia),{itemData:r}=n.storeToRefs(u),C=e.ref([]);e.watch(()=>r.value,()=>{var p;!r.value||((p=r.value)==null?void 0:p.length)===0?C.value=[]:C.value=n.cloneDeep(r.value)},{deep:!0,immediate:!0});const _=p=>g.getComponent(p);return(p,i)=>{var f;return((f=C.value)==null?void 0:f.length)>0?(e.openBlock(),e.createElementBlock("div",ee,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(v,k)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:k},[e.createElementVNode("div",te,e.toDisplayString(v.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_(v.comp)),{itemData:v==null?void 0:v.compData,childItemData:v==null?void 0:v.itemChildData,key:k},null,8,["itemData","childItemData"]))]))),128))])):e.createCommentVNode("",!0)}}},ne=B._export_sfc(oe,[["__scopeId","data-v-bfa22d29"]]);exports.modelFill=Z;exports.modelSelect=z;exports.modelShow=ne;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as o, reactive as r, onMounted as n, createElementBlock as s, openBlock as m, createVNode as c } from "vue";
|
|
2
2
|
import "./index-BHtNKL1L.js";
|
|
3
|
-
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
4
|
-
import { a as i, s as p } from "./
|
|
3
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D5Z2_TwH.js";
|
|
4
|
+
import { a as i, s as p } from "./login-BLjZKKjO.js";
|
|
5
5
|
import "./index-BCZ59Y4K.js";
|
|
6
|
-
import { s as u } from "./index-
|
|
7
|
-
import { S as l } from "./index-
|
|
8
|
-
import { i as d } from "./index-
|
|
6
|
+
import { s as u } from "./index-Bu_OR9tS.js";
|
|
7
|
+
import { S as l } from "./index-s4l8lwWV.js";
|
|
8
|
+
import { i as d } from "./index-Ba_1AoLH.js";
|
|
9
9
|
const _ = { class: "role-wrapper" }, w = /* @__PURE__ */ o({
|
|
10
10
|
__name: "index",
|
|
11
11
|
setup(f) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.vue_vue_type_script_setup_true_lang-BkYehasn.cjs");exports.default=e._sfc_main;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ref as u, computed as R, reactive as J, nextTick as H, watch as X } from "vue";
|
|
2
2
|
import { g as j, E as b, bm as Y, bk as Z, bn as m } from "./index-BCZ59Y4K.js";
|
|
3
|
-
import {
|
|
4
|
-
import { u as te } from "./login-h0Hl0hFq.js";
|
|
3
|
+
import { m as we, s as C, b as ee, c as N, u as De, p as A, a as te } from "./login-BLjZKKjO.js";
|
|
5
4
|
import { d as se, i as Ie, e as V } from "./crypto-BRyGpjGR.js";
|
|
6
|
-
import { E as Ee } from "./index-
|
|
5
|
+
import { E as Ee } from "./index-D8qVbjll.js";
|
|
7
6
|
const re = we("authorityState", {
|
|
8
7
|
state: () => ({
|
|
9
8
|
routerPageStructures: []
|
|
@@ -13,7 +12,7 @@ const re = we("authorityState", {
|
|
|
13
12
|
this.routerPageStructures = e;
|
|
14
13
|
}
|
|
15
14
|
}
|
|
16
|
-
}), Me =
|
|
15
|
+
}), Me = te(A), { activeMenuPath: v } = C(Me), ne = ee(A), { structureData: Re } = C(ne), Ne = re(A), { routerPageStructures: Oe } = C(Ne), ae = De(A), je = u([
|
|
17
16
|
{
|
|
18
17
|
label: "角色名称",
|
|
19
18
|
value: "",
|
|
@@ -551,7 +550,7 @@ const Se = R(() => {
|
|
|
551
550
|
]
|
|
552
551
|
}
|
|
553
552
|
]
|
|
554
|
-
},
|
|
553
|
+
}, Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
555
554
|
__proto__: null,
|
|
556
555
|
addButtonsToTree: Be,
|
|
557
556
|
addPathToTree: F,
|
|
@@ -591,7 +590,7 @@ const Se = R(() => {
|
|
|
591
590
|
tempRolePageData: ct,
|
|
592
591
|
tempSysMenus: nt,
|
|
593
592
|
treeRef: x
|
|
594
|
-
}, Symbol.toStringTag, { value: "Module" })), Ce =
|
|
593
|
+
}, Symbol.toStringTag, { value: "Module" })), Ce = ee(A), { superAdminInfo: ot, cryptoInfo: i } = C(Ce), lt = te(A), { activeMenuPath: p } = C(lt), I = "123456", ut = re(A), { routerPageStructures: ht } = C(ut), _ = u(0), it = u([
|
|
595
594
|
{
|
|
596
595
|
label: "用户名称",
|
|
597
596
|
value: "",
|
|
@@ -748,7 +747,7 @@ const Se = R(() => {
|
|
|
748
747
|
]
|
|
749
748
|
}
|
|
750
749
|
]
|
|
751
|
-
},
|
|
750
|
+
}, Ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
752
751
|
__proto__: null,
|
|
753
752
|
changedRow: M,
|
|
754
753
|
clickRowButton: gt,
|
|
@@ -769,7 +768,7 @@ const Se = R(() => {
|
|
|
769
768
|
tempUserPageData: vt
|
|
770
769
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
771
770
|
export {
|
|
772
|
-
|
|
771
|
+
Ct as S,
|
|
773
772
|
F as a,
|
|
774
773
|
pe as b,
|
|
775
774
|
ye as c,
|
|
@@ -779,7 +778,7 @@ export {
|
|
|
779
778
|
he as g,
|
|
780
779
|
ge as h,
|
|
781
780
|
et as i,
|
|
782
|
-
|
|
781
|
+
Bt as j,
|
|
783
782
|
I as r,
|
|
784
783
|
z as s,
|
|
785
784
|
re as u
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as f, onMounted as v, watch as g, onUnmounted as b, createElementBlock as x, openBlock as y, createVNode as z } from "vue";
|
|
2
|
-
import { i as w } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
2
|
+
import { i as w } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D5Z2_TwH.js";
|
|
3
3
|
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
import { c as l } from "./
|
|
4
|
+
import { c as l } from "./login-BLjZKKjO.js";
|
|
5
5
|
const k = {
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { b as Ga, a as qa, t as Qa, f as Xa, g as Ya, c as La, i as Ea, s as Za } from "./index-
|
|
1
|
+
import { b as Ga, a as qa, t as Qa, f as Xa, g as Ya, c as La, i as Ea, s as Za } from "./index-Bu_OR9tS.js";
|
|
2
2
|
import { ref as q, watch as Ye, createElementBlock as _e, openBlock as oe, createVNode as ie, createBlock as Oe, createCommentVNode as Xe, withCtx as ve, resolveComponent as Ue, Fragment as je, renderList as Je, createElementVNode as E, toDisplayString as we, createTextVNode as Be, defineComponent as El, reactive as wa, resolveDynamicComponent as ta, unref as Al, computed as Da, renderSlot as pa, createSlots as ei, mergeProps as li, normalizeStyle as ai, withModifiers as ra } from "vue";
|
|
3
|
-
import { p as al, s as sl, c as l, a as Oa, u as
|
|
4
|
-
import { e as el, f as Va, s as ll, h as Ra, a as Sa, i as si, j as ni, b as oi } from "./index-
|
|
3
|
+
import { p as al, b as Ia, s as sl, c as l, a as Oa, u as xa, m as ii } from "./login-BLjZKKjO.js";
|
|
4
|
+
import { e as el, f as Va, s as ll, h as Ra, a as Sa, i as si, j as ni, b as oi } from "./index-h0An6eiK.js";
|
|
5
5
|
import { bp as ui, bq as ri, a as ba, E as ol, g as gl, bl as ka, b as Ua, bj as ja, bk as ya, bm as ci } from "./index-BCZ59Y4K.js";
|
|
6
|
-
import { F as $a, A as ti, I as _a, B as di, C as Qe, D as Fl, E as fl, G as Tl, H as ga, J as pi, g as hl, K as fi, L as hi } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
7
|
-
import { u as xa } from "./login-h0Hl0hFq.js";
|
|
6
|
+
import { F as $a, A as ti, I as _a, B as di, C as Qe, D as Fl, E as fl, G as Tl, H as ga, J as pi, g as hl, K as fi, L as hi } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D5Z2_TwH.js";
|
|
8
7
|
import { _ as He } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
-
import { E as bl } from "./index-
|
|
10
|
-
import { s as vi, a as mi } from "./index-
|
|
8
|
+
import { E as bl } from "./index-D8qVbjll.js";
|
|
9
|
+
import { s as vi, a as mi } from "./index-Bdy9rjka.js";
|
|
11
10
|
import yi from "./index-CZtXRS3l.js";
|
|
12
11
|
var gi = "[object Boolean]";
|
|
13
12
|
function Pa(r) {
|
|
@@ -34,7 +33,7 @@ const ki = { class: "form-content" }, _i = {
|
|
|
34
33
|
setup(r, { emit: V }) {
|
|
35
34
|
const y = q(!1), i = q(!1), o = q(""), P = () => {
|
|
36
35
|
y.value = !1, i.value = null, o.value = "";
|
|
37
|
-
}, L = r, w = V, M = q([]), ee = q(), O = q(!1), ce = q(!1), ue = q([]), Ce = q(), te = Ga(al), ke = qa(al), T = q(!1), $ = q(), me =
|
|
36
|
+
}, L = r, w = V, M = q([]), ee = q(), O = q(!1), ce = q(!1), ue = q([]), Ce = q(), te = Ga(al), ke = qa(al), T = q(!1), $ = q(), me = Ia(al), { loginUserInfo: t } = sl(me), p = q(), m = q(!0), b = (_, Y) => {
|
|
38
37
|
p.value === Y ? m.value = !1 : m.value = !0, p.value = Y == null ? void 0 : Y.changeProp;
|
|
39
38
|
}, re = async (_) => {
|
|
40
39
|
var x, s, c, D, I, z, G, F, u, X;
|
|
@@ -2770,7 +2769,7 @@ const Zs = /* @__PURE__ */ He(Xs, [["render", Ys]]), en = { class: "extra-conten
|
|
|
2770
2769
|
}
|
|
2771
2770
|
}, on = /* @__PURE__ */ He(nn, [["__scopeId", "data-v-2d9c5ab2"]]);
|
|
2772
2771
|
let Le = "$R";
|
|
2773
|
-
const
|
|
2772
|
+
const Lo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Oo = (r) => /^'[^']+':\[\[.*\]\]$/.exec(l(r)), un = (r) => /^'([^']+)':.*$/.exec(l(r)), da = (r) => {
|
|
2774
2773
|
let V = r;
|
|
2775
2774
|
const y = [];
|
|
2776
2775
|
let i = "";
|
|
@@ -2784,14 +2783,14 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
2784
2783
|
for (const L of y)
|
|
2785
2784
|
P++, L.includes("{") || o.includes("{") || L.includes("[") || o.includes("[") || L.includes("【") || o.includes("【") || L.includes("(") || o.includes("(") || L.includes("(") || o.includes("(") || L.includes("/*") || o.includes("/*") ? (o += L.trim(), l(o).split("{").length - 1 === l(o).split("}").length - 1 && l(o).split("【").length - 1 === l(o).split("】").length - 1 && l(o).split("[").length - 1 === l(o).split("]").length - 1 && l(o).split("(").length - 1 === l(o).split(")").length - 1 && l(o).split("(").length - 1 === l(o).split(")").length - 1 && l(o).split("/*").length - 1 === l(o).split("*/").length - 1 && o[o.length - 1] !== "," && o[o.length - 1] === V ? (i.push(o.replace(/\/\*[\s\S]*?\*\//g, "")), o = "") : P === (r == null ? void 0 : r.length) && i.push(o.replace(/\/\*[\s\S]*?\*\//g, ""))) : (o += L.trim(), (o == null ? void 0 : o[(o == null ? void 0 : o.length) - 1]) === V && (i.push(o.replace(/\/\*[\s\S]*?\*\//g, "")), o = ""));
|
|
2786
2785
|
return i;
|
|
2787
|
-
},
|
|
2786
|
+
}, Vo = (r, V) => {
|
|
2788
2787
|
let y = r;
|
|
2789
2788
|
const i = [];
|
|
2790
2789
|
let o = "", P = 0;
|
|
2791
2790
|
for (const L of y)
|
|
2792
2791
|
P++, L.includes("{") || o.includes("{") || L.includes("[") || o.includes("[") || L.includes("【") || o.includes("【") || L.includes("(") || o.includes("(") || L.includes("(") || o.includes("(") || L.includes("/*") || o.includes("/*") ? (o += L.trim(), l(o).split("{").length - 1 === l(o).split("}").length - 1 && l(o).split("【").length - 1 === l(o).split("】").length - 1 && l(o).split("[").length - 1 === l(o).split("]").length - 1 && l(o).split("(").length - 1 === l(o).split(")").length - 1 && l(o).split("(").length - 1 === l(o).split(")").length - 1 && l(o).split("/*").length - 1 === l(o).split("*/").length - 1 && o[o.length - 1] === V ? (i.push(o.replace(/\/\*[\s\S]*?\*\//g, "")), o = "") : P === (r == null ? void 0 : r.length) && (i.push(o.replace(/\/\*[\s\S]*?\*\//g, "")), o = "")) : (o += L.trim(), (o == null ? void 0 : o[(o == null ? void 0 : o.length) - 1]) === V && (i.push(o.replace(/\/\*[\s\S]*?\*\//g, "")), o = ""));
|
|
2793
2792
|
return (o == null ? void 0 : o.length) !== 0 && i.push(o.replace(/\/\*[\s\S]*?\*\//g, "")), i;
|
|
2794
|
-
},
|
|
2793
|
+
}, Ro = (r) => /^\[[\s\S]*?\]\s*:\s*\[[\s\S]*?\]$/.exec(l(r)), Uo = (r) => {
|
|
2795
2794
|
var V, y, i, o, P, L, w, M, ee, O, ce, ue, Ce, te, ke, T, $, me, t, p, m, b, re, be, De, Fe, _, Y, x, s, c, D, I, z, G, F, u, X, J, de, Q, R, K, j, A, pe, ae, S, g, v, H, f, n, Z, e, a, d, h, k, W, ye, N;
|
|
2796
2795
|
if (un(r)) {
|
|
2797
2796
|
let le = {}, se = (i = (y = (V = r == null ? void 0 : r.replace(":", Le)) == null ? void 0 : V.split(Le)) == null ? void 0 : y[0]) == null ? void 0 : i.replaceAll("'", ""), ge = "", U = (P = (o = r == null ? void 0 : r.replace(":", Le)) == null ? void 0 : o.split(Le)) == null ? void 0 : P[1];
|
|
@@ -2837,13 +2836,13 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
2837
2836
|
formContents: [[le]]
|
|
2838
2837
|
};
|
|
2839
2838
|
}
|
|
2840
|
-
},
|
|
2839
|
+
}, jo = (r) => (r == null ? void 0 : r[0]) === "[" && (r == null ? void 0 : r[r.length - 1]) === "]" && !(r != null && r.includes("{")), rn = (r, V) => {
|
|
2841
2840
|
let y = r.length;
|
|
2842
2841
|
for (; y--; )
|
|
2843
2842
|
if (r[y] === ")")
|
|
2844
2843
|
return r.substring(0, y) + V + r.substring(y + 1);
|
|
2845
2844
|
return r;
|
|
2846
|
-
},
|
|
2845
|
+
}, Po = (r) => {
|
|
2847
2846
|
var P, L, w, M, ee;
|
|
2848
2847
|
let V = r.slice(1, r.length - 1), y;
|
|
2849
2848
|
(V == null ? void 0 : V[0]) === "[" ? y = (L = (P = da(l(V))) == null ? void 0 : P.filter((O) => O !== ",")) == null ? void 0 : L.map((O) => O == null ? void 0 : O.slice(1, O.length - 1)) : (V = "[" + l(V) + "]", y = (M = (w = da(l(V))) == null ? void 0 : w.filter((O) => O !== ",")) == null ? void 0 : M.map((O) => O == null ? void 0 : O.slice(1, O.length - 1))), y = (ee = l(y)) == null ? void 0 : ee.map((O) => {
|
|
@@ -2904,7 +2903,7 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
2904
2903
|
output: i,
|
|
2905
2904
|
input: o
|
|
2906
2905
|
};
|
|
2907
|
-
}, cn =
|
|
2906
|
+
}, cn = xa(al), { routeToChildPath: dl } = sl(cn), ca = Oa(al), { activeMenuPath: Bl } = sl(ca), tn = Ia(), { loginUserInfo: yl } = sl(tn), dn = async () => {
|
|
2908
2907
|
var P, L, w, M, ee, O, ce, ue, Ce, te, ke, T, $, me, t, p, m, b, re, be, De, Fe, _, Y, x, s, c, D, I, z, G, F, u, X, J, de, Q, R, K, j, A, pe, ae, S;
|
|
2909
2908
|
let r = "";
|
|
2910
2909
|
const V = await gl({
|
|
@@ -3049,7 +3048,7 @@ const Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\
|
|
|
3049
3048
|
}
|
|
3050
3049
|
},
|
|
3051
3050
|
setup(r) {
|
|
3052
|
-
const V = q([]), y = r, i = q(!1), o = q(), P =
|
|
3051
|
+
const V = q([]), y = r, i = q(!1), o = q(), P = xa(al), L = q(!1), w = Oa(al), M = Ia(al), { itemData: ee, isEdit: O, routeToChildPath: ce } = sl(P), { activeMenuPath: ue, platform: Ce, childMenu: te } = sl(w), { loginUserInfo: ke } = sl(M), T = q(!1), $ = (_, Y) => {
|
|
3053
3052
|
const x = Y;
|
|
3054
3053
|
return _ == null ? void 0 : _.map((s) => {
|
|
3055
3054
|
var c;
|
|
@@ -4420,7 +4419,7 @@ const yn = /* @__PURE__ */ He(vn, [["render", mn]]), gn = { class: "module conte
|
|
|
4420
4419
|
let X = ce.value.get(u);
|
|
4421
4420
|
!X && ((J = o.value[F].children) == null ? void 0 : J.length) > 0 && (X = De(o.value[F].children)), X ? Ce.setItemData(l(X)) : Ce.setItemData([]), ee.value = !0;
|
|
4422
4421
|
}, b = Da(() => {
|
|
4423
|
-
const F =
|
|
4422
|
+
const F = xa(al), u = sl(F).itemData.value;
|
|
4424
4423
|
return console.log("可用组件数据", u), !u || !Array.isArray(u) ? [] : u.filter((X) => {
|
|
4425
4424
|
var J;
|
|
4426
4425
|
if (X.comp === "Tabs" && O.value >= 0) {
|
|
@@ -4808,15 +4807,15 @@ function Aa(r) {
|
|
|
4808
4807
|
}
|
|
4809
4808
|
export {
|
|
4810
4809
|
da as a,
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4810
|
+
Vo as b,
|
|
4811
|
+
Ro as c,
|
|
4812
|
+
Lo as d,
|
|
4813
|
+
Oo as e,
|
|
4814
|
+
jo as f,
|
|
4816
4815
|
Aa as g,
|
|
4817
|
-
|
|
4816
|
+
Uo as h,
|
|
4818
4817
|
bi as i,
|
|
4819
|
-
|
|
4818
|
+
Po as j,
|
|
4820
4819
|
Ca as k,
|
|
4821
4820
|
dn as o,
|
|
4822
4821
|
Co as s
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as $, computed as F, ref as h, watch as P, createElementBlock as E, openBlock as p, createVNode as v, createElementVNode as j, withCtx as c, createTextVNode as T, toDisplayString as k, resolveComponent as B, createBlock as U, Fragment as V, renderList as z, normalizeStyle as R } from "vue";
|
|
2
|
-
import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { d as H, u as L, S as M } from "./index-
|
|
2
|
+
import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-D6xvhgat.js";
|
|
3
|
+
import { d as H, u as L, S as M } from "./index-h0An6eiK.js";
|
|
4
4
|
import { E as N } from "./index-BCZ59Y4K.js";
|
|
5
5
|
import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
import { S as x } from "./index-BHtNKL1L.js";
|