ss-component-new 1.1.714 → 1.1.716

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 (101) hide show
  1. package/dist/{array-D1rENrtC.js → array-CV47iU9i.js} +1 -1
  2. package/dist/{array-DiC30wYM.cjs → array-C_A3GqHl.cjs} +1 -1
  3. package/dist/icons/svg/colFilter.svg +1 -0
  4. package/dist/icons/svg/colOperate.svg +1 -0
  5. package/dist/index-6cIk3a7c.cjs +1 -0
  6. package/dist/index-8oaOF8hU.cjs +1 -0
  7. package/dist/index-B-SZ9FOJ.cjs +1 -0
  8. package/dist/{index-k3Bxo8CN.js → index-B7x9V7t6.js} +7 -8
  9. package/dist/{index-DqIn00H8.js → index-B9e8jfXC.js} +2 -2
  10. package/dist/{index-B7xlKvbO.cjs → index-BBztMuYS.cjs} +1 -1
  11. package/dist/index-BDIZYI6c.cjs +1 -0
  12. package/dist/index-BJzLztcT.cjs +4207 -0
  13. package/dist/{index-BhN_xaKB.js → index-BUr_R7W4.js} +2 -2
  14. package/dist/{index-CCxinvIS.js → index-Ba_1AoLH.js} +8 -9
  15. package/dist/index-BmwSczsQ.cjs +1 -0
  16. package/dist/{index-Dq3Gb645.cjs → index-BqIFXFlH.cjs} +1 -1
  17. package/dist/{index-Cpx_u9T6.js → index-BuVGPawZ.js} +3 -3
  18. package/dist/index-C0WZBDT5.cjs +1 -0
  19. package/dist/{index-BFZBbjlZ.js → index-C1XS3ENl.js} +2 -2
  20. package/dist/index-C3NA0aaD.cjs +1 -0
  21. package/dist/index-C3fPP82O.cjs +15 -0
  22. package/dist/index-C6SI8hvh.cjs +1 -0
  23. package/dist/index-C9QubKHj.cjs +1 -0
  24. package/dist/{index-Byy_Xtef.js → index-CI5n0Xv4.js} +5 -6
  25. package/dist/{index-H-bGpaNs.js → index-CIlL2SK6.js} +1 -1
  26. package/dist/{index-cplChbGm.js → index-CVBLCbGm.js} +5 -5
  27. package/dist/{index-DldssUmp.cjs → index-CYxb4HE7.cjs} +1 -1
  28. package/dist/{index-BEHcZREm.js → index-Cfirfu0f.js} +22 -23
  29. package/dist/{index-S15gAcDT.js → index-CiKRvh8o.js} +14 -15
  30. package/dist/{index-JNw-0LM6.js → index-CtoAlRfk.js} +10 -11
  31. package/dist/{index-CRKPHTGu.js → index-D8qVbjll.js} +1 -1
  32. package/dist/index-DZKcDen7.cjs +1 -0
  33. package/dist/index-DjUopiVE.cjs +1 -0
  34. package/dist/index-DkuUEvSP.cjs +1 -0
  35. package/dist/{index-C9_p4Vm6.js → index-Dr65gNkt.js} +463 -461
  36. package/dist/index-DuVdlGvS.cjs +1 -0
  37. package/dist/index-HqICPCny.cjs +1 -0
  38. package/dist/{index-FC3u5SDQ.js → index-KCVZOl0Y.js} +5 -5
  39. package/dist/{index-B9dgbtyu.js → index-QzT_XISi.js} +43 -44
  40. package/dist/index-VBY1u2Ig.cjs +1 -0
  41. package/dist/{index-BvgxZw84.js → index-WEQVqMJE.js} +4 -4
  42. package/dist/index-Woj44XOP.cjs +1 -0
  43. package/dist/{index-DwW2YuMT.js → index-XoIvvStS.js} +1 -1
  44. package/dist/{index-DxQ-WNaQ.js → index-ZC7nAMFX.js} +8107 -8024
  45. package/dist/{index-DOs-6Cx7.cjs → index-glKQqAZb.cjs} +1 -1
  46. package/dist/{index-C3bhZmjl.js → index-h6SXo9wQ.js} +5 -5
  47. package/dist/{index-Bvnvuwkn.js → index-hVEEEQQc.js} +4434 -4369
  48. package/dist/{index-CU5qn5hA.js → index-mQLSN20F.js} +2 -2
  49. package/dist/index-mSkQE8pC.cjs +1 -0
  50. package/dist/{index-di1QdZZr.js → index-s4l8lwWV.js} +2 -2
  51. package/dist/{index.vue_vue_type_script_setup_true_lang-BcMm1KLj.cjs → index.vue_vue_type_script_setup_true_lang-CfqBx2Ou.cjs} +1 -1
  52. package/dist/{index.vue_vue_type_script_setup_true_lang-DN-3ZDhB.js → index.vue_vue_type_script_setup_true_lang-Cm3CCGlq.js} +1 -1
  53. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DCPQmJ8P.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BXjL5frf.js} +14297 -14277
  54. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BHHPVcqx.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-NOV5eRfA.cjs} +142 -142
  55. 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-DAM-jGzL.cjs} +13 -13
  56. package/dist/{index.vue_vue_type_style_index_0_scoped_ffb37532_lang-DB4kiFum.js → index.vue_vue_type_style_index_0_scoped_8606206c_lang-DxfIMoF9.js} +105 -106
  57. package/dist/{index.vue_vue_type_style_index_0_scoped_c81d0427_lang-Bem94E3F.js → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-BdKfxEpu.js} +53 -54
  58. package/dist/index.vue_vue_type_style_index_0_scoped_c81d0427_lang-DAqDZ6lJ.cjs +1 -0
  59. package/dist/{menu-BRpPhHno.js → login-BLjZKKjO.js} +1006 -881
  60. package/dist/login-C8QOZ9u0.cjs +11 -0
  61. package/dist/{main-slCUa76N.js → main-BEId0V1l.js} +4 -4
  62. package/dist/main-BN-IctwQ.cjs +1 -0
  63. package/dist/ss-component.cjs +1 -1
  64. package/dist/ss-component.css +2 -2
  65. package/dist/ss-component.js +9 -9
  66. package/dist/ss-component2.cjs +1 -1
  67. package/dist/ss-component2.js +9 -9
  68. package/dist/{threeModel-BY_tDAcc.js → threeModel-BhgvBDsA.js} +2 -2
  69. package/dist/threeModel-D5_-Dbt2.cjs +1 -0
  70. package/package.json +1 -1
  71. package/public/icons/svg/colFilter.svg +1 -0
  72. package/public/icons/svg/colOperate.svg +1 -0
  73. package/dist/index-B1XyxOHh.cjs +0 -1
  74. package/dist/index-B6eLhxMJ.cjs +0 -1
  75. package/dist/index-BLZNIRkY.cjs +0 -15
  76. package/dist/index-BYA9VCDi.cjs +0 -1
  77. package/dist/index-C-VUvax5.cjs +0 -1
  78. package/dist/index-CGebARL6.cjs +0 -1
  79. package/dist/index-CHcDZKUi.cjs +0 -1
  80. package/dist/index-COoh2ijF.cjs +0 -1
  81. package/dist/index-CPj1rc3m.cjs +0 -1
  82. package/dist/index-Cdz4ZgAR.cjs +0 -4207
  83. package/dist/index-Cj-k4kxo.cjs +0 -1
  84. package/dist/index-Coxoz81K.cjs +0 -1
  85. package/dist/index-D6xSLp3Q.cjs +0 -1
  86. package/dist/index-DSC06oXb.cjs +0 -1
  87. package/dist/index-DTLKy7rp.cjs +0 -1
  88. package/dist/index-Decs_B4B.cjs +0 -1
  89. package/dist/index-Dp1mAXQ2.cjs +0 -1
  90. package/dist/index-Nn47GzGZ.cjs +0 -1
  91. package/dist/index-Yr549Xbj.cjs +0 -1
  92. package/dist/index.vue_vue_type_style_index_0_scoped_c81d0427_lang-CiYmZBSD.cjs +0 -1
  93. package/dist/login-CCz_BcJe.cjs +0 -1
  94. package/dist/login-h0Hl0hFq.js +0 -129
  95. package/dist/main-DUyxM_WP.cjs +0 -1
  96. package/dist/menu-vml_xHJD.cjs +0 -11
  97. package/dist/obj/model.mtl +0 -42
  98. package/dist/obj/model.obj +0 -26110
  99. package/dist/threeModel-W5f1wios.cjs +0 -1
  100. package/public/obj/model.mtl +0 -42
  101. package/public/obj/model.obj +0 -26110
@@ -0,0 +1 @@
1
+ "use strict";const l=require("vue"),d=require("./index-2p69g4HY.cjs"),c=require("./index-VBY1u2Ig.cjs"),u=require("./login-C8QOZ9u0.cjs"),g=u.useModelComp(),{itemData:D}=u.storeToRefs(g),b=l.ref(0),i=l.ref([{label:"机构名称",value:"",name:"deptName"}]),f=e=>{console.log("handleQueryChange",e)},s=l.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"header",contents:[{label:"机构名称",prop:"deptName"},{label:"机构类型",prop:"deptType",formType:"Select",options:[{label:"集团",value:"集团"},{label:"公司",value:"公司"},{label:"部门",value:"部门"},{label:"区域",value:"区域"},{label:"组",value:"组"}]},{label:"机构状态",formType:"Radio",prop:"deptStatus",options:[{label:"启用",value:"启用"},{label:"禁用",value:"禁用"}]},{label:"操作"}]},{key:"tableContents",contents:[]}]),h=e=>{c.submitTableAsyncByVerify(e.singleContent,e.buttonName,b.value)},C=e=>{console.log("onDoubleClick",e)},k=(e,t)=>{console.log("onButtonClick",e,t)},m=async e=>{const t=await c.handleSubmitAsync(d.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:e}},"查询"),n=t==null?void 0:t.map(a=>{var o;return{id:a.id,tableData:(o=a==null?void 0:a.value)==null?void 0:o.tableData}});return n==null?void 0:n.map(a=>{var o;if(Array.isArray(a==null?void 0:a.tableData)){let r={id:a.id};return(o=a==null?void 0:a.tableData)==null||o.forEach((p,y)=>{r[`a${y}`]=p}),r}else return{...a.tableData,id:a.id}})},S={comp:"Group",name:"/系统管理/部门管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:s.value,name:""}]}]};l.watch(()=>D.value,e=>{var t;e&&(e==null?void 0:e.length)>0&&(s.value=(t=e==null?void 0:e[0])==null?void 0:t.compData)});const T=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:m,handleItemDataChange:h,handleQueryChange:f,onButtonClick:k,onDoubleClick:C,pageData:s,queryFormData:i,structureId:b,tempDeptPageData:S},Symbol.toStringTag,{value:"Module"}));exports.State=T;
@@ -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-CYxb4HE7.cjs"),T=require("./index-C3fPP82O.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,10 +1,9 @@
1
1
  import { ref as c, reactive as k, computed as M, defineComponent as Z, onMounted as G, resolveDirective as Q, createElementBlock as U, openBlock as _, createElementVNode as b, withDirectives as X, createVNode as S, unref as D, createBlock as Y } from "vue";
2
2
  import { br as ee, bs as te, bt as ae, g as P, bk as se, E as B } from "./index-BCZ59Y4K.js";
3
- import { u as V } from "./login-h0Hl0hFq.js";
4
- import { s as E, a as re, p as L } from "./menu-BRpPhHno.js";
3
+ import { s as E, b as V, a as re, p as L } from "./login-BLjZKKjO.js";
5
4
  import { e as ne, d as oe } from "./crypto-BRyGpjGR.js";
6
- import { a as le, s as ie } from "./index-CU5qn5hA.js";
7
- import { e as ue, j as de } from "./index-Bvnvuwkn.js";
5
+ import { a as le, s as ie } from "./index-mQLSN20F.js";
6
+ import { e as ue, j as de } from "./index-hVEEEQQc.js";
8
7
  import { _ as pe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
8
  const $ = V(L), { loginUserInfo: i, cryptoInfo: m } = E($), ge = re(L), { activeMenuPath: h } = E(ge), I = c(0);
10
9
  var R, N, x, K;
@@ -340,7 +339,7 @@ const ce = c([
340
339
  ]);
341
340
  };
342
341
  }
343
- }), je = /* @__PURE__ */ pe(Ne, [["__scopeId", "data-v-a55e627c"]]);
342
+ }), Fe = /* @__PURE__ */ pe(Ne, [["__scopeId", "data-v-a55e627c"]]);
344
343
  export {
345
- je as default
344
+ Fe as default
346
345
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./index.vue_vue_type_script_setup_true_lang-DN-3ZDhB.js";
1
+ import { _ as f } from "./index.vue_vue_type_script_setup_true_lang-Cm3CCGlq.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -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-DCPQmJ8P.js";
4
- import { a as i, s as p } from "./menu-BRpPhHno.js";
3
+ import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BXjL5frf.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-DxQ-WNaQ.js";
7
- import { S as l } from "./index-di1QdZZr.js";
8
- import { i as d } from "./index-CCxinvIS.js";
6
+ import { s as u } from "./index-ZC7nAMFX.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";const e=require("vue"),I=require("./index.vue_vue_type_script_setup_true_lang-BcMm1KLj.cjs"),y=require("./index-BLZNIRkY.cjs"),x=require("./index-2p69g4HY.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),k=require("./index-BpPyaNFa.cjs"),A={class:"avatar-model-wrap"},N=e.defineComponent({__name:"index",props:{disabled:{type:Boolean,default:!1},avatarUrl:{type:String,default:""},userInfo:{type:Object,default:{}}},emits:["submitImage","deleteImage"],setup(i,{emit:w}){const u=i,c=w,h=e.computed(()=>"http://222.92.178.198:62001"),p=e.ref(""),d=e.ref(""),_=e.ref();e.watch(()=>{var o;return(o=u.userInfo)==null?void 0:o.avatarUrl},o=>{d.value=o},{immediate:!0});const S=async()=>{if(!(u!=null&&u.disabled))try{const o=await y.downloadAvatarApi({url:p.value});if(o.status!==200)throw new Error(`HTTP error! status: ${o.status}`);const f=new Blob([o.data],{type:o.headers["content-type"]});_.value=f}catch(o){throw new Error(o)}},B=async o=>{var f,g,t,n,l;try{const r=await y.uploadAvatarApi(o);((f=r==null?void 0:r.data)==null?void 0:f.code)===200&&(d.value=h.value+"/"+((t=(g=r.data)==null?void 0:g.result)==null?void 0:t.url),p.value=(l=(n=r.data)==null?void 0:n.result)==null?void 0:l.url,c("submitImage",d.value))}catch(r){x.ElMessage.error(r)}},b=async()=>{try{if(!d.value)return}catch(o){x.ElMessage.error(o)}};return(o,f)=>{var g,t,n;return e.openBlock(),e.createElementBlock("div",A,[e.createVNode(I._sfc_main,{avatarUrl:d.value,avatarBlob:_.value,onClickAvatar:S,onSubmitImage:B,onDeleteImage:b},{avatarDefault:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString(((l=i.userInfo)==null?void 0:l.account)??"未知"),1)]}),_:1},8,["avatarUrl","avatarBlob"]),e.createElementVNode("span",null,e.toDisplayString((g=i.userInfo)!=null&&g.userName?(t=i.userInfo)==null?void 0:t.userName:(n=i.userInfo)==null?void 0:n.account),1)])}}}),V=C._export_sfc(N,[["__scopeId","data-v-bcb7a17f"]]),E=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["clickSignButton","clickSubmitSign","beforeDestroy"],setup(i,{emit:w}){const u=i,c=e.ref({}),h=e.ref([]),p=w,d=t=>{c.value.dialogShow=(t==null?void 0:t.label)==="电子签名",p("clickSignButton",t)},_=()=>{c.value.dialogShow=!1,p("beforeDestroy")},S=e.computed(()=>"http://222.92.178.198:62001"),B=t=>{var a;const n=t.split(","),l=(a=n==null?void 0:n[0])==null?void 0:a.match(/:(.*?);/)[1],r=atob(n[1]);let s=r.length;const v=new Uint8Array(s);for(;s--;)v[s]=r.charCodeAt(s);return new Blob([v],{type:l})},b=async t=>{var n,l,r;try{const s=await y.uploadAvatarApi(t);((n=s==null?void 0:s.data)==null?void 0:n.code)===200&&p("clickSubmitSign",S.value+"/"+((r=(l=s.data)==null?void 0:l.result)==null?void 0:r.url))}catch(s){x.ElMessage.error(s)}},o=e.ref(""),f=t=>{o.value=t,c.value.dialogShow=!1;const n=new FormData,l=B(t);n.append("file",l,"image.png"),b(n)},g=t=>{const n=new FormData;n.append("file",t==null?void 0:t.file),b(n)};return e.watch(()=>u==null?void 0:u.itemData,t=>{var l,r,s,v;o.value="",(l=c.value)!=null&&l.dialogShow&&(c.value.dialogShow=!1);const n=(r=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:r.contents;n&&Object.keys(n).forEach(a=>{(n[a]===void 0||n[a]===null||n[a]==="")&&delete n[a]}),c.value=(s=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:s.contents,h.value=(v=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signTypeList"))==null?void 0:v.contents},{immediate:!0}),(t,n)=>{const l=e.resolveComponent("el-empty"),r=e.resolveComponent("el-image"),s=e.resolveComponent("el-button"),v=e.resolveComponent("el-upload");return e.openBlock(),e.createBlock(y.Signature,{signPadInfo:c.value,onBeforeDestroy:_,onClickSubmitSign:f},{signatureRender:e.withCtx(()=>{var a,m;return[e.createElementVNode("div",{class:"signature-render",style:e.normalizeStyle({width:`${(a=c.value)==null?void 0:a.signPadWidth}%`})},[e.createVNode(r,{src:o.value?o.value:(m=i.userInfo)==null?void 0:m.signature,fit:"contain"},{error:e.withCtx(()=>[e.createVNode(l,{"image-size":60,description:" "},{image:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:"emptyImg"})]),_:1})]),_:1},8,["src"])],4)]}),signatureTypes:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,a=>{var m;return e.openBlock(),e.createElementBlock("div",{key:a.label,class:"signature-button"},[(m=a.label)!=null&&m.includes("上传")?(e.openBlock(),e.createBlock(v,{key:0,ref_for:!0,ref:"uploadRef","http-request":g,"show-file-list":!1},{trigger:e.withCtx(()=>[e.createVNode(s,{disabled:a.disabled,id:"themeButton"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled"])]),_:2},1536)):(e.openBlock(),e.createBlock(s,{key:1,id:"themeButton",disabled:a.disabled,onClick:T=>d(a)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled","onClick"]))])}),128))]),_:1},8,["signPadInfo"])}}}),U=C._export_sfc(E,[["__scopeId","data-v-b9bd887d"]]);exports.ssAvatar=V;exports.ssSignature=U;
1
+ "use strict";const e=require("vue"),I=require("./index.vue_vue_type_script_setup_true_lang-CfqBx2Ou.cjs"),y=require("./index-C3fPP82O.cjs"),x=require("./index-2p69g4HY.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),k=require("./index-BpPyaNFa.cjs"),A={class:"avatar-model-wrap"},N=e.defineComponent({__name:"index",props:{disabled:{type:Boolean,default:!1},avatarUrl:{type:String,default:""},userInfo:{type:Object,default:{}}},emits:["submitImage","deleteImage"],setup(i,{emit:w}){const u=i,c=w,h=e.computed(()=>"http://222.92.178.198:62001"),p=e.ref(""),d=e.ref(""),_=e.ref();e.watch(()=>{var o;return(o=u.userInfo)==null?void 0:o.avatarUrl},o=>{d.value=o},{immediate:!0});const S=async()=>{if(!(u!=null&&u.disabled))try{const o=await y.downloadAvatarApi({url:p.value});if(o.status!==200)throw new Error(`HTTP error! status: ${o.status}`);const f=new Blob([o.data],{type:o.headers["content-type"]});_.value=f}catch(o){throw new Error(o)}},B=async o=>{var f,g,t,n,l;try{const r=await y.uploadAvatarApi(o);((f=r==null?void 0:r.data)==null?void 0:f.code)===200&&(d.value=h.value+"/"+((t=(g=r.data)==null?void 0:g.result)==null?void 0:t.url),p.value=(l=(n=r.data)==null?void 0:n.result)==null?void 0:l.url,c("submitImage",d.value))}catch(r){x.ElMessage.error(r)}},b=async()=>{try{if(!d.value)return}catch(o){x.ElMessage.error(o)}};return(o,f)=>{var g,t,n;return e.openBlock(),e.createElementBlock("div",A,[e.createVNode(I._sfc_main,{avatarUrl:d.value,avatarBlob:_.value,onClickAvatar:S,onSubmitImage:B,onDeleteImage:b},{avatarDefault:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString(((l=i.userInfo)==null?void 0:l.account)??"未知"),1)]}),_:1},8,["avatarUrl","avatarBlob"]),e.createElementVNode("span",null,e.toDisplayString((g=i.userInfo)!=null&&g.userName?(t=i.userInfo)==null?void 0:t.userName:(n=i.userInfo)==null?void 0:n.account),1)])}}}),V=C._export_sfc(N,[["__scopeId","data-v-bcb7a17f"]]),E=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["clickSignButton","clickSubmitSign","beforeDestroy"],setup(i,{emit:w}){const u=i,c=e.ref({}),h=e.ref([]),p=w,d=t=>{c.value.dialogShow=(t==null?void 0:t.label)==="电子签名",p("clickSignButton",t)},_=()=>{c.value.dialogShow=!1,p("beforeDestroy")},S=e.computed(()=>"http://222.92.178.198:62001"),B=t=>{var a;const n=t.split(","),l=(a=n==null?void 0:n[0])==null?void 0:a.match(/:(.*?);/)[1],r=atob(n[1]);let s=r.length;const v=new Uint8Array(s);for(;s--;)v[s]=r.charCodeAt(s);return new Blob([v],{type:l})},b=async t=>{var n,l,r;try{const s=await y.uploadAvatarApi(t);((n=s==null?void 0:s.data)==null?void 0:n.code)===200&&p("clickSubmitSign",S.value+"/"+((r=(l=s.data)==null?void 0:l.result)==null?void 0:r.url))}catch(s){x.ElMessage.error(s)}},o=e.ref(""),f=t=>{o.value=t,c.value.dialogShow=!1;const n=new FormData,l=B(t);n.append("file",l,"image.png"),b(n)},g=t=>{const n=new FormData;n.append("file",t==null?void 0:t.file),b(n)};return e.watch(()=>u==null?void 0:u.itemData,t=>{var l,r,s,v;o.value="",(l=c.value)!=null&&l.dialogShow&&(c.value.dialogShow=!1);const n=(r=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:r.contents;n&&Object.keys(n).forEach(a=>{(n[a]===void 0||n[a]===null||n[a]==="")&&delete n[a]}),c.value=(s=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:s.contents,h.value=(v=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signTypeList"))==null?void 0:v.contents},{immediate:!0}),(t,n)=>{const l=e.resolveComponent("el-empty"),r=e.resolveComponent("el-image"),s=e.resolveComponent("el-button"),v=e.resolveComponent("el-upload");return e.openBlock(),e.createBlock(y.Signature,{signPadInfo:c.value,onBeforeDestroy:_,onClickSubmitSign:f},{signatureRender:e.withCtx(()=>{var a,m;return[e.createElementVNode("div",{class:"signature-render",style:e.normalizeStyle({width:`${(a=c.value)==null?void 0:a.signPadWidth}%`})},[e.createVNode(r,{src:o.value?o.value:(m=i.userInfo)==null?void 0:m.signature,fit:"contain"},{error:e.withCtx(()=>[e.createVNode(l,{"image-size":60,description:" "},{image:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:"emptyImg"})]),_:1})]),_:1},8,["src"])],4)]}),signatureTypes:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,a=>{var m;return e.openBlock(),e.createElementBlock("div",{key:a.label,class:"signature-button"},[(m=a.label)!=null&&m.includes("上传")?(e.openBlock(),e.createBlock(v,{key:0,ref_for:!0,ref:"uploadRef","http-request":g,"show-file-list":!1},{trigger:e.withCtx(()=>[e.createVNode(s,{disabled:a.disabled,id:"themeButton"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled"])]),_:2},1536)):(e.openBlock(),e.createBlock(s,{key:1,id:"themeButton",disabled:a.disabled,onClick:T=>d(a)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled","onClick"]))])}),128))]),_:1},8,["signPadInfo"])}}}),U=C._export_sfc(E,[["__scopeId","data-v-b9bd887d"]]);exports.ssAvatar=V;exports.ssSignature=U;
@@ -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-DxQ-WNaQ.js";
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-ZC7nAMFX.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 Ia, h as ii } from "./menu-BRpPhHno.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-Bvnvuwkn.js";
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-hVEEEQQc.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-DCPQmJ8P.js";
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-BXjL5frf.js";
8
7
  import { _ as He } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- import { E as bl } from "./index-CRKPHTGu.js";
10
- import { s as vi, a as mi } from "./index-CU5qn5hA.js";
8
+ import { E as bl } from "./index-D8qVbjll.js";
9
+ import { s as vi, a as mi } from "./index-mQLSN20F.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 = xa(al), { loginUserInfo: t } = sl(me), p = q(), m = q(!0), b = (_, Y) => {
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 Oo = (r) => /^'[^']+':\{.*\}$/.exec(l(r)), Vo = (r) => /^'[^']+':\[\[.*\]\]$/.exec(l(r)), un = (r) => /^'([^']+)':.*$/.exec(l(r)), da = (r) => {
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
- }, Ro = (r, V) => {
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
- }, Uo = (r) => /^\[[\s\S]*?\]\s*:\s*\[[\s\S]*?\]$/.exec(l(r)), jo = (r) => {
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
- }, Po = (r) => (r == null ? void 0 : r[0]) === "[" && (r == null ? void 0 : r[r.length - 1]) === "]" && !(r != null && r.includes("{")), rn = (r, V) => {
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
- }, Ko = (r) => {
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 = Ia(al), { routeToChildPath: dl } = sl(cn), ca = Oa(al), { activeMenuPath: Bl } = sl(ca), tn = xa(), { loginUserInfo: yl } = sl(tn), dn = async () => {
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 = Ia(al), L = q(!1), w = Oa(al), M = xa(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) => {
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 = Ia(al), u = sl(F).itemData.value;
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
- Ro as b,
4812
- Uo as c,
4813
- Oo as d,
4814
- Vo as e,
4815
- Po as f,
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
- jo as h,
4816
+ Uo as h,
4818
4817
  bi as i,
4819
- Ko as j,
4818
+ Po as j,
4820
4819
  Ca as k,
4821
4820
  dn as o,
4822
4821
  Co as s
@@ -1,17 +1,16 @@
1
1
  import { onMounted as h, resolveComponent as C, createElementBlock as g, openBlock as y, createVNode as B } from "vue";
2
- import "./index-BEHcZREm.js";
3
- import "./menu-BRpPhHno.js";
4
- import "./array-D1rENrtC.js";
2
+ import "./index-Cfirfu0f.js";
3
+ import "./login-BLjZKKjO.js";
4
+ import "./array-CV47iU9i.js";
5
5
  import { _ as v } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- import "./index.vue_vue_type_style_index_0_scoped_c81d0427_lang-Bem94E3F.js";
7
- import "./index.vue_vue_type_style_index_0_scoped_ffb37532_lang-DB4kiFum.js";
8
- import "./login-h0Hl0hFq.js";
6
+ import "./index.vue_vue_type_style_index_0_scoped_c81d0427_lang-BdKfxEpu.js";
7
+ import "./index.vue_vue_type_style_index_0_scoped_8606206c_lang-DxfIMoF9.js";
9
8
  import "./index-BHtNKL1L.js";
10
- import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DCPQmJ8P.js";
9
+ import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BXjL5frf.js";
11
10
  import "./index-BCZ59Y4K.js";
12
- import "./index-DxQ-WNaQ.js";
11
+ import "./index-ZC7nAMFX.js";
13
12
  import "vue-router";
14
- const p = {
13
+ const S = {
15
14
  __name: "index",
16
15
  props: {
17
16
  windowConfig: {
@@ -50,9 +49,9 @@ const p = {
50
49
  },
51
50
  emits: ["buildContent", "openThreeBuild", "threeData"],
52
51
  setup(o, { emit: u }) {
53
- const t = o, n = u, r = () => {
52
+ const t = o, n = u, l = () => {
54
53
  n("buildContent");
55
- }, l = () => {
54
+ }, r = () => {
56
55
  n("setLoginInfo");
57
56
  }, m = (e) => {
58
57
  n("openThreeBuild", e);
@@ -76,16 +75,16 @@ const p = {
76
75
  showButton: t == null ? void 0 : t.showButton,
77
76
  nodeDev: t == null ? void 0 : t.nodeDev,
78
77
  windowConfig: o.windowConfig,
79
- onBuildContent: r,
78
+ onBuildContent: l,
80
79
  onOpenThreeBuild: m,
81
80
  pageKey: o.pageKey,
82
81
  onThreeData: s,
83
- onSetLoginInfo: l
82
+ onSetLoginInfo: r
84
83
  }, null, 8, ["mode", "content", "jsonContents", "pathContent", "showButton", "nodeDev", "windowConfig", "pageKey"])
85
84
  ]);
86
85
  };
87
86
  }
88
- }, O = /* @__PURE__ */ v(p, [["__scopeId", "data-v-7138c9e0"]]);
87
+ }, F = /* @__PURE__ */ v(S, [["__scopeId", "data-v-7138c9e0"]]);
89
88
  export {
90
- O as default
89
+ F as default
91
90
  };
@@ -1,10 +1,9 @@
1
1
  import { ref as i, computed as j, reactive as ie, nextTick as B, watch as ye } from "vue";
2
- import { c as J, s as be, a as he, u as Ce, p as U } from "./menu-BRpPhHno.js";
3
- import { u as Ie } from "./index-DxQ-WNaQ.js";
4
- import { f as ke } from "./index-CCxinvIS.js";
5
- import { g as $, E as S, bm as ae, bk as oe, bn as Te, b as Me } from "./index-BCZ59Y4K.js";
6
- import { a as Se } from "./login-h0Hl0hFq.js";
7
- const F = Ce(U), ne = Ie(U), C = he(U), { menus: ue, configMenu: R, activeMenuPath: q, cacheStructures: K } = be(C), z = i(!1), se = j(() => {
2
+ import { c as J, s as be, a as he, n as Ce, u as Ie, p as U } from "./login-BLjZKKjO.js";
3
+ import { u as ke } from "./index-ZC7nAMFX.js";
4
+ import { f as Te } from "./index-Ba_1AoLH.js";
5
+ import { g as $, E as S, bm as ae, bk as oe, bn as Me, b as Se } from "./index-BCZ59Y4K.js";
6
+ const F = Ie(U), ne = ke(U), C = he(U), { menus: ue, configMenu: R, activeMenuPath: q, cacheStructures: K } = be(C), z = i(!1), se = j(() => {
8
7
  var e, t;
9
8
  return [
10
9
  {
@@ -323,7 +322,7 @@ const F = Ce(U), ne = Ie(U), C = he(U), { menus: ue, configMenu: R, activeMenuPa
323
322
  var t;
324
323
  z.value = !0, b.value = {
325
324
  ...e,
326
- rootNode: Se(pe.value, e.path)
325
+ rootNode: Ce(pe.value, e.path)
327
326
  }, C.setCacheStructures(null), (e == null ? void 0 : e.level) === 0 ? O.value.splice(0) : (O.value = [{ label: "新建" }], V.value = (t = e == null ? void 0 : e.path) == null ? void 0 : t.split("/")), await C.setConfigMenu(null), await fe(e == null ? void 0 : e.path), await H(e);
328
327
  }, Ke = (e) => {
329
328
  switch (e) {
@@ -463,7 +462,7 @@ const Ae = i(null), Ee = async (e, t) => {
463
462
  }
464
463
  }, y = oe) : t === "delete" && (r = {
465
464
  id: e
466
- }, y = Te);
465
+ }, y = Me);
467
466
  const a = await y(r);
468
467
  if (((s = a == null ? void 0 : a.data) == null ? void 0 : s.code) !== 200)
469
468
  throw S.error("保存响应失败"), new Error("保存响应失败");
@@ -562,7 +561,7 @@ const Ae = i(null), Ee = async (e, t) => {
562
561
  }
563
562
  }, u = oe) : t === "delete" && (l = {
564
563
  ids: [e.id, ...(c = e == null ? void 0 : e.structureIds) == null ? void 0 : c.map((s) => s.id)]
565
- }, u = Me), ke(u, l, t).then((s) => {
564
+ }, u = Se), Te(u, l, t).then((s) => {
566
565
  t === "create" && G.value.push({
567
566
  ...e,
568
567
  id: s
@@ -598,7 +597,7 @@ const Ae = i(null), Ee = async (e, t) => {
598
597
  ]
599
598
  }
600
599
  ]
601
- }, Ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
600
+ }, Le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
602
601
  __proto__: null,
603
602
  beforeDialogDestroy: je,
604
603
  buttonValue: Ne,
@@ -623,6 +622,6 @@ const Ae = i(null), Ee = async (e, t) => {
623
622
  treeData: pe
624
623
  }, Symbol.toStringTag, { value: "Module" }));
625
624
  export {
626
- Ve as S,
625
+ Le as S,
627
626
  Je as t
628
627
  };
@@ -1,6 +1,6 @@
1
1
  import { computed as b, getCurrentInstance as Je, inject as pe, unref as u, ref as A, onMounted as ue, watch as G, toRef as Ge, onUnmounted as zn, shallowRef as Ke, nextTick as z, defineComponent as ee, useAttrs as _n, useSlots as un, createElementBlock as O, openBlock as E, normalizeStyle as je, normalizeClass as S, createCommentVNode as k, Fragment as Ae, createElementVNode as P, renderSlot as W, createBlock as M, withCtx as L, resolveDynamicComponent as Y, mergeProps as ft, withModifiers as Me, createVNode as ae, toDisplayString as Q, onBeforeUnmount as Ne, provide as cn, Text as Dn, reactive as dn, isVNode as X, Comment as Kn, h as Un, watchEffect as Yn, isRef as Wn, onScopeDispose as Gn, markRaw as vt, toRefs as jn, resolveComponent as ke, Transition as qn, withDirectives as st, withKeys as Oe, createTextVNode as at, vShow as rt, render as fn } from "vue";
2
2
  import { bu as Vt, d as vn, k as pn, t as Xn, bv as Jn, h as Zn, bw as Qn, D as _, ap as hn, bc as St, S as we, m as zt, n as Ze, Y as ve, ak as eo, o as Ee, $ as qe, a9 as mn, I as le, O as to, V as no, W as oo, aS as so, y as Ie, L as xe, _ as Le, u as he, aJ as ao, bx as ro, by as io, M as gn, H as lo, F as re, N as Ue, ah as uo, J as Xe, z as bn, Q as Ct, av as co, Z as pt, a4 as fo, U as Ye, al as ht, bz as vo, w as _t, x as po, ar as Dt, aK as ho, aL as mo, a0 as go, G as bo, bg as yo, T as Kt, B as Eo } from "./index-BCZ59Y4K.js";
3
- import { j as yn, l as wo, m as So, o as Co, n as To } from "./menu-BRpPhHno.js";
3
+ import { o as yn, q as wo, r as So, t as Co, v as To } from "./login-BLjZKKjO.js";
4
4
  var Ut = Vt ? Vt.isConcatSpreadable : void 0;
5
5
  function ko(e) {
6
6
  return vn(e) || yn(e) || !!(Ut && e && e[Ut]);
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),o=require("./login-C8QOZ9u0.cjs"),_=require("./index-BJzLztcT.cjs"),r=require("./index-BrQVl4Zd.cjs"),C=require("./index-2p69g4HY.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const d=o.useMenuState(o.pinia),{menus:c}=o.storeToRefs(d),p=l.ref([]),f=async()=>{var u,t,n,a;const e=await C.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey")}});if(((u=e==null?void 0:e.data)==null?void 0:u.type)==="success"){let i=(n=(t=e==null?void 0:e.data)==null?void 0:t.result)==null?void 0:n.map(s=>s);return i=(a=o.cloneDeep(i))==null?void 0:a.map(s=>{var m;const b=Object.values((m=s==null?void 0:s.value)==null?void 0:m.tableData);return b.unshift({id:s==null?void 0:s.id}),b}),i}else return[]};l.onMounted(async()=>{var n;const e=await f(),t=[{key:"header",contents:[{label:"主菜单名称",formType:"Select",options:(n=o.cloneDeep(c.value))==null?void 0:n.map(a=>({label:a==null?void 0:a.title,value:a==null?void 0:a.title})),prop:"主菜单名称"},{label:"隐藏三维显示",formType:"Switch",value:!1,prop:"隐藏三维显示"},{label:"操作"}]},{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}];t.push({key:"tableContents",contents:e}),p.value=t});const y=e=>{(e==null?void 0:e.buttonName)==="新增"?r.addMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="删除"?r.deleteMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="编辑"&&r.fixMenuContent(e==null?void 0:e.singleContent)};return(e,u)=>(l.openBlock(),l.createElementBlock("div",v,[l.createVNode(_.ssTable,{itemData:p.value,class:"table-content",onChange:y},null,8,["itemData"])]))}}),h=g._export_sfc(x,[["__scopeId","data-v-26f5cadc"]]);exports.default=h;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),f=require("./index-BJzLztcT.cjs"),p=require("./index-VBY1u2Ig.cjs"),d=require("./login-C8QOZ9u0.cjs"),b=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),w={class:"role-wrapper"},V={class:"role-dialog-header"},v=["title"],B={class:"dialog-footer"},m=e.defineComponent({__name:"index",setup(N){const g=d.useMenuState(),{menus:_,activeMenuPath:C}=d.storeToRefs(g),o=e.reactive({...p.State$1}),{treeRef:k}=p.State$1;e.onMounted(async()=>{await o.getActivePageStructureId(C.value)});const h=r=>r==null?void 0:r.map(t=>{var n,c,i;return t!=null&&t.childMenus&&((n=t==null?void 0:t.childMenus)==null?void 0:n.length)>0?{...t,childMenus:[],children:h(t==null?void 0:t.childMenus)}:{...t,childMenus:[],path:(c=t==null?void 0:t.path)!=null&&c.startsWith("/")?(i=t==null?void 0:t.path)==null?void 0:i.substring(1):t.path}});return e.watch(()=>_.value,r=>{e.nextTick(()=>{const t=d.cloneDeep(r),n=h(t);o.tempSysMenus=o.handleAddSysMenusButtons(n),o.menuData=o.addButtonsToTree(n,o.structureButtons)})},{immediate:!0,deep:!0}),(r,t)=>{const n=e.resolveComponent("el-checkbox"),c=e.resolveComponent("el-checkbox-group"),i=e.resolveComponent("el-tree"),u=e.resolveComponent("el-button"),x=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",w,[e.createVNode(f.ssTable,{compName:o.compName,itemData:o.pageDataFiltered,changedContent:o.changedRow,onChange:o.handleItemDataChange,onOnButtonClick:o.clickRowButton},null,8,["compName","itemData","changedContent","onChange","onOnButtonClick"]),e.createVNode(x,{modelValue:o.authorizeDialog.show,"onUpdate:modelValue":t[0]||(t[0]=l=>o.authorizeDialog.show=l),width:o.authorizeDialog.width,draggable:o.authorizeDialog.draggable,"before-close":o.closeAuthorizeDialog,class:"role-dialog"},{header:e.withCtx(()=>[e.createElementVNode("div",V,e.toDisplayString(o.authorizeDialog.title),1)]),footer:e.withCtx(()=>[e.createElementVNode("div",B,[e.createVNode(u,{id:"themeBorderButton",onClick:o.closeAuthorizeDialog},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),e.createVNode(u,{id:"themeButton",onClick:o.clickSubmitAuthority},{default:e.withCtx(()=>t[2]||(t[2]=[e.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),default:e.withCtx(()=>[e.createVNode(i,{class:"role-tree",ref_key:"treeRef",ref:k,data:o.menuData,"expand-on-click-node":!1,"node-key":"path",props:{children:"children",label:"title",path:"path"},"highlight-current":"","default-expand-all":"","check-on-click-leaf":!1,"show-checkbox":"",onCheckChange:o.handleNodeCheckChange,style:{height:"500px","overflow-y":"auto"}},{default:e.withCtx(({node:l,data:s})=>[e.createElementVNode("span",{class:"node-text",title:l==null?void 0:l.label},e.toDisplayString(l==null?void 0:l.label),9,v),e.createVNode(c,{modelValue:s.checkedButtons,"onUpdate:modelValue":a=>s.checkedButtons=a,onChange:a=>o.handleNodeBtnChange(a,s),class:"node-buttons"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.renderButtons,a=>(e.openBlock(),e.createBlock(n,{key:a.title,label:a.title,value:a.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.title),1)]),_:2},1032,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:1},8,["data","onCheckChange"])]),_:1},8,["modelValue","width","draggable","before-close"])])}}}),D=b._export_sfc(m,[["__scopeId","data-v-4f41513d"]]);exports.default=D;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./index-BJzLztcT.cjs"),a=require("./index-VBY1u2Ig.cjs"),n=require("./login-C8QOZ9u0.cjs"),i=t.defineComponent({__name:"index",setup(s){const o=n.useMenuState(),{activeMenuPath:c}=n.storeToRefs(o),u=n.useLoginState(),e=t.reactive({...a.State});return t.onMounted(async()=>{u.getModelSecretAsync(),e.structureId=await a.getActivePageStructureId(c.value)}),(l,d)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(r.ssTable,{compName:e.compName,itemData:e.pageData,changedContent:e.changedRow,onChange:e.handleItemDataChange,onOnButtonClick:e.clickRowButton},null,8,["compName","itemData","changedContent","onChange","onOnButtonClick"])]))}});exports.default=i;