ss-component-new 1.3.253 → 1.3.255

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 (106) hide show
  1. package/dist/{MTLLoader-DhkbjDn5.cjs → MTLLoader-BbkyASan.cjs} +1 -1
  2. package/dist/{MTLLoader-kSybMwCv.js → MTLLoader-CxB65QQq.js} +1 -1
  3. package/dist/{OrbitControls-XEy6yLM5.cjs → OrbitControls-Bfvb5pv-.cjs} +1 -1
  4. package/dist/{OrbitControls-DWkGT_jN.js → OrbitControls-CgDI9Dzj.js} +1 -1
  5. package/dist/{URDFLoader-DWfsFwAW.js → URDFLoader-B18rFuGQ.js} +2 -2
  6. package/dist/{URDFLoader-DhIlh9SZ.cjs → URDFLoader-BqTfjAvX.cjs} +1 -1
  7. package/dist/{animationData-EX8ALJ90.js → animationData-BeC7Ksan.js} +3 -3
  8. package/dist/{animationData-CNTkCldk.cjs → animationData-gmN8vwXr.cjs} +1 -1
  9. package/dist/{array-DK9t-RZ5.cjs → array-B3bl5bn0.cjs} +1 -1
  10. package/dist/{array-BDy1Ncle.js → array-B_7zpz6-.js} +49 -49
  11. package/dist/{iconfont-D-Fv-qGO.js → iconfont-BDyitR5V.js} +2 -2
  12. package/dist/{iconfont-DxOyAp3D.cjs → iconfont-BFTB_6By.cjs} +1 -1
  13. package/dist/{index-2M-IP1bA.cjs → index-2gZmwL3z.cjs} +1 -1
  14. package/dist/{index-COYH6Dsm.js → index-B-jXswxK.js} +6 -6
  15. package/dist/{index-DGVfotFX.cjs → index-B6zxXi7b.cjs} +1 -1
  16. package/dist/{index-DcmpIuyR.cjs → index-B74OQdfz.cjs} +1 -1
  17. package/dist/{index-Dt2q9_xX.cjs → index-B91fpH7E.cjs} +1 -1
  18. package/dist/{index-Coq7X7y8.cjs → index-BApaBsV6.cjs} +1 -1
  19. package/dist/index-BH1QeTrv.cjs +1 -0
  20. package/dist/{index-kylznSf-.js → index-BH9-Hsyp.js} +2 -2
  21. package/dist/{index-CpxOzwA-.cjs → index-BJH237uR.cjs} +1 -1
  22. package/dist/{index-C1Dc_mjt.cjs → index-BLvDoVkw.cjs} +1 -1
  23. package/dist/{index-BeRCQCdi.js → index-BRMBKwzE.js} +3 -3
  24. package/dist/{index-3sGayDdt.cjs → index-BRlrWa15.cjs} +1 -1
  25. package/dist/{index-DdFWw0IN.js → index-BXhJyiwp.js} +8 -8
  26. package/dist/{index-C8p1jD8G.cjs → index-Bnmzd5N2.cjs} +1 -1
  27. package/dist/{index-DBb0okvF.js → index-ByM9ae-R.js} +4 -4
  28. package/dist/{index-BYEED-kW.js → index-Bzl8VR0c.js} +1 -1
  29. package/dist/{index-BM2WGfYi.js → index-C39FYBsm.js} +1 -1
  30. package/dist/{index-LncjUMsU.cjs → index-C3JTaW7V.cjs} +1 -1
  31. package/dist/{index-D2Njli4E.js → index-C3m4WIgZ.js} +2 -2
  32. package/dist/index-C5C5PAT9.cjs +25 -0
  33. package/dist/{index-nwtQ-O1L.js → index-C6CIqdD6.js} +1 -1
  34. package/dist/{index-DnvhrR1b.js → index-C7-7DQ8H.js} +2 -2
  35. package/dist/{index-DcyVuH_R.js → index-CJzLKi9Z.js} +487 -500
  36. package/dist/{index-CSj2fJ4e.cjs → index-CVHrgtSc.cjs} +1 -1
  37. package/dist/{index-DcCZWQJ_.cjs → index-CaSVfO-G.cjs} +1 -1
  38. package/dist/{index-Be8WkE9-.cjs → index-CdCCxGXJ.cjs} +1 -1
  39. package/dist/{index-BDZtQ4N8.cjs → index-Cie1OJYf.cjs} +1 -1
  40. package/dist/{index-DGYepoGt.cjs → index-CnC7rI16.cjs} +1 -1
  41. package/dist/{index-BJGOMZS3.js → index-CnsAVNcF.js} +8 -8
  42. package/dist/{index-GUB8vyLB.cjs → index-CpHrJbzU.cjs} +12 -12
  43. package/dist/{index-BnVCc6o9.js → index-CymLx2yV.js} +2 -2
  44. package/dist/{index-CmTRhztd.cjs → index-CzFGWnnh.cjs} +1 -1
  45. package/dist/{index-89JD0Pir.cjs → index-D2E3Xa62.cjs} +1 -1
  46. package/dist/{index-CrIGzoIr.js → index-D5xR-9jl.js} +1 -1
  47. package/dist/{index-CMPrUwf8.js → index-D653Ji8G.js} +5 -5
  48. package/dist/{index-DMMoAxR-.js → index-D6tHtGNW.js} +3 -3
  49. package/dist/{index-Cj1LFMSA.cjs → index-D9pE21Gn.cjs} +1 -1
  50. package/dist/{index-C5bjM7FA.cjs → index-DBANew_v.cjs} +1 -1
  51. package/dist/{index-CLvFKdVq.js → index-DEUR6Zpv.js} +2081 -2169
  52. package/dist/{index-le2Rca0l.cjs → index-DGmrINxj.cjs} +1 -1
  53. package/dist/{index-2lGKiZFJ.js → index-DHXgFlyQ.js} +1 -1
  54. package/dist/{index-DW_nJVg2.cjs → index-DI5_eNwC.cjs} +1 -1
  55. package/dist/{index-BEapybFg.js → index-DJ_OL_C0.js} +46 -46
  56. package/dist/{index-CyQpi2tP.js → index-DTr9CURw.js} +4786 -4262
  57. package/dist/{index-CIMZWqaV.cjs → index-D_8L21gF.cjs} +1 -1
  58. package/dist/{index-D4fO0WEV.js → index-DgUG27vK.js} +1 -1
  59. package/dist/{index-OFkIV22_.js → index-DjdKTqAw.js} +8 -8
  60. package/dist/{index-CpVaoLky.js → index-JXxkyOQY.js} +3965 -3935
  61. package/dist/{index-xqHfzzQD.cjs → index-LhirSlbf.cjs} +1 -1
  62. package/dist/{index-DUtmk1bj.cjs → index-OAw89GlW.cjs} +1 -1
  63. package/dist/{index-B3TCH363.cjs → index-TlpsYQOO.cjs} +7 -6
  64. package/dist/{index-CNwliXjU.js → index-p1BJpeCx.js} +5 -5
  65. package/dist/{index-CA8t9-gv.js → index-qgYEDwXG.js} +2 -2
  66. package/dist/{index-BGbxImVv.js → index-vd4vRJW2.js} +13 -13
  67. package/dist/{index-CkLgyT6u.cjs → index-wKWv56Bw.cjs} +1 -1
  68. package/dist/{index-Bfi1UoGP.js → index-yIdddQuP.js} +2 -2
  69. package/dist/{index-XFkwHh-P.js → index-yQLmOtsY.js} +2 -2
  70. package/dist/{index-BGwuI_x4.js → index-zrTuHtuS.js} +1 -1
  71. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CRAl9Y7G.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BDAZDHvN.cjs} +68 -68
  72. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-ucfC0PVu.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-tLv4FsgZ.js} +2486 -2481
  73. package/dist/{main-C8097bU2.cjs → main-BnxMggPl.cjs} +1 -1
  74. package/dist/{main-DbTUPiOc.js → main-DDaIzcjA.js} +4 -4
  75. package/dist/menuIndex-CD_6J90j.cjs +1 -0
  76. package/dist/menuIndex-dHBsUkqd.js +83 -0
  77. package/dist/obj/model.mtl +42 -0
  78. package/dist/obj/model.obj +26110 -0
  79. package/dist/ss-component.cjs +1 -1
  80. package/dist/ss-component.css +2 -2
  81. package/dist/ss-component.js +11 -11
  82. package/dist/ss-component2.cjs +1 -1
  83. package/dist/ss-component2.js +13 -13
  84. package/dist/{threeModel-De-7T9uY.cjs → threeModel-BN6c75D5.cjs} +1 -1
  85. package/dist/{threeModel-BJchxIwW.js → threeModel-CDIFaejZ.js} +76 -76
  86. package/dist/{threePreview-DvYgRY2j.js → threePreview-BtIIDlh-.js} +5 -5
  87. package/dist/{threePreview-JLq5yZic.cjs → threePreview-DwWlg7lI.cjs} +1 -1
  88. package/dist/{threeSceneView-CygIbwt0.cjs → threeSceneView-C-yzvZdv.cjs} +1 -1
  89. package/dist/{threeSceneView-CUJzhEK6.js → threeSceneView-CvuMlo8L.js} +11 -11
  90. package/dist/{threeSceneViewForCPMPIP-DW7gUluU.cjs → threeSceneViewForCPMPIP-BvcImuS8.cjs} +1 -1
  91. package/dist/{threeSceneViewForCPMPIP-FGl_ZFFr.js → threeSceneViewForCPMPIP-DhZWA7GU.js} +9 -9
  92. package/dist/{threeTrackPathView-CJeLq_TJ.cjs → threeTrackPathView-DTXw71Wd.cjs} +1 -1
  93. package/dist/{threeTrackPathView-COd-EfJg.js → threeTrackPathView-DX1p8Ie-.js} +4 -4
  94. package/dist/{threeViewerHost-UYIlXdwN.js → threeViewerHost-C7qflIpN.js} +3 -3
  95. package/dist/{threeViewerHost-NEd9wdRM.cjs → threeViewerHost-CBGXmZgT.cjs} +1 -1
  96. package/dist/{urdfTree-D_szdiKY.cjs → urdfTree-CN3JKSRs.cjs} +1 -1
  97. package/dist/{urdfTree-xl8HRmIY.js → urdfTree-CR3g-bil.js} +1 -1
  98. package/dist/{workpieceTreePanel-Cpiuo7hc.js → workpieceTreePanel-CmQM28rE.js} +4 -4
  99. package/dist/{workpieceTreePanel-CTJjkLo9.cjs → workpieceTreePanel-DBHiE5Se.cjs} +1 -1
  100. package/package.json +1 -1
  101. package/public/obj/model.mtl +42 -0
  102. package/public/obj/model.obj +26110 -0
  103. package/dist/index-Blu30Md_.cjs +0 -25
  104. package/dist/index-ltYEl6x9.cjs +0 -1
  105. package/dist/menuIndex-COeE6K1p.cjs +0 -1
  106. package/dist/menuIndex-OsQ53sC9.js +0 -55
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as C, reactive as k, onMounted as D, resolveComponent as B, resolveDirective as T, createElementBlock as y, openBlock as u, createElementVNode as t, withDirectives as p, createVNode as o, unref as n, toDisplayString as r, createBlock as A } from "vue";
2
- import { S as I, t as x, s as w, a as L } from "./index-BEapybFg.js";
3
- import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-ucfC0PVu.js";
2
+ import { S as I, t as x, s as w, a as L } from "./index-DJ_OL_C0.js";
3
+ import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-tLv4FsgZ.js";
4
4
  import "./index-BHtNKL1L.js";
5
- import { e as E } from "./index-DcyVuH_R.js";
6
- import "./index-D2Njli4E.js";
7
- import { b as N, s as U } from "./index-CLvFKdVq.js";
5
+ import { e as E } from "./index-CJzLKi9Z.js";
6
+ import "./index-C3m4WIgZ.js";
7
+ import { b as N, s as U } from "./index-DEUR6Zpv.js";
8
8
  import "./request-DHW6ycUJ.js";
9
9
  /* empty css */
10
10
  import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as l, reactive as c, onMounted as s, createElementBlock as r, openBlock as i, createVNode as p } from "vue";
2
- import { S as m } from "./index-nwtQ-O1L.js";
3
- import { V as _ } from "./index-CpVaoLky.js";
2
+ import { S as m } from "./index-C6CIqdD6.js";
3
+ import { X as _ } from "./index-JXxkyOQY.js";
4
4
  import { _ as d } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const f = { class: "log-wrap" }, u = /* @__PURE__ */ l({
6
6
  __name: "index",
@@ -1,6 +1,6 @@
1
1
  import { ref as y, computed as T } from "vue";
2
- import { b as ce, u as ie, p as ue, D as pe, c as D, F as P, E as de, h as me, aa as ge, ab as fe, ac as ye, ad as Ie, ae as he, af as _e } from "./index-CLvFKdVq.js";
3
- import { f as v } from "./index-D2Njli4E.js";
2
+ import { b as ce, u as ie, p as ue, D as pe, c as D, F as P, E as de, h as ge, ab as me, ac as fe, ad as ye, ae as Ie, af as he, ag as _e } from "./index-DEUR6Zpv.js";
3
+ import { f as v } from "./index-C3m4WIgZ.js";
4
4
  const Re = [
5
5
  {
6
6
  label: "编辑",
@@ -43,7 +43,7 @@ const Re = [
43
43
  }, w = T(() => {
44
44
  const e = d.loginUserInfo, { id: t } = e || {};
45
45
  return t;
46
- }), g = T(() => {
46
+ }), m = T(() => {
47
47
  const e = d.loginUserInfo, { layer: t } = e || {};
48
48
  return t === pe;
49
49
  }), S = (e) => {
@@ -51,7 +51,7 @@ const Re = [
51
51
  return t === Le.TABLE.value;
52
52
  }, I = y({}), U = T(() => {
53
53
  var t;
54
- return g.value ? !0 : ((t = I.value) == null ? void 0 : t.status) === c.EDITABLE.value;
54
+ return m.value ? !0 : ((t = I.value) == null ? void 0 : t.status) === c.EDITABLE.value;
55
55
  }), q = (e) => {
56
56
  var s, o;
57
57
  const t = P(Date.now()), { user_name: a, user_id: n } = d.loginUserInfo || {}, r = D(e);
@@ -106,17 +106,17 @@ const Re = [
106
106
  };
107
107
  const { checkAll: L, tree: f } = t || {};
108
108
  if (L && f) {
109
- const m = A(f), le = m.map((b) => ({
109
+ const g = A(f), le = g.map((b) => ({
110
110
  ...b,
111
111
  department_scope: "unlimited"
112
112
  }));
113
- o.main_ids = le, o.checked_ids = m.map((b) => b.id), o.params = N(m);
113
+ o.main_ids = le, o.checked_ids = g.map((b) => b.id), o.params = N(g);
114
114
  }
115
115
  if (e) {
116
- const m = q(e);
116
+ const g = q(e);
117
117
  o = {
118
118
  ...o,
119
- ...m
119
+ ...g
120
120
  };
121
121
  }
122
122
  return o;
@@ -197,7 +197,7 @@ const Re = [
197
197
  return (a == null ? void 0 : a.tag) || "info";
198
198
  }, Y = async (e) => {
199
199
  var a;
200
- const t = await ge(e);
200
+ const t = await me(e);
201
201
  return ((a = t == null ? void 0 : t.data) == null ? void 0 : a.result) || [];
202
202
  }, Z = async (e) => {
203
203
  const a = {
@@ -223,7 +223,7 @@ const Re = [
223
223
  const { status: a } = e || {};
224
224
  return _(a);
225
225
  }, re = (e, t) => {
226
- if (g.value)
226
+ if (m.value)
227
227
  return !0;
228
228
  const { type: a } = t || {};
229
229
  if (v.TABLE === a)
@@ -238,10 +238,10 @@ const Re = [
238
238
  pageName: e,
239
239
  platId: t,
240
240
  userId: w.value
241
- }, n = await me(a);
241
+ }, n = await ge(a);
242
242
  return (s = (r = n == null ? void 0 : n.data) == null ? void 0 : r.result) == null ? void 0 : s[0];
243
243
  }, oe = async () => {
244
- if (!g.value)
244
+ if (!m.value)
245
245
  return I.value = await se(), I;
246
246
  }, B = (e) => {
247
247
  const t = D(e);
@@ -267,7 +267,7 @@ const Re = [
267
267
  initPropertyAuthTree: Z,
268
268
  propertyAuthTree: E,
269
269
  initRoleItem: V,
270
- isSuperAdmin: g,
270
+ isSuperAdmin: m,
271
271
  getStatusLabelByValue: J,
272
272
  getStatusTagByValue: X,
273
273
  getFeatureStatusLabelByValue: ee,
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),_=require("./request-BBDPqFah.cjs"),C=require("./index-B3TCH363.cjs"),D=require("./index-CDIharql.cjs"),T=require("./index-BDZtQ4N8.cjs"),G=require("./index-CSj2fJ4e.cjs"),R=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Q=require("./index-GUB8vyLB.cjs"),E=require("./index-BpPyaNFa.cjs"),V=C.useLoginState(C.pinia),{loginUserInfo:p,cryptoInfo:x}=C.storeToRefs(V),X=C.useMenuState(C.pinia),{activeMenuPath:A}=C.storeToRefs(X),F=e.ref(0),L=e.computed(()=>{var r,s,a,o,l,u,t,f,b,m,y;return[{label:"",name:"账号",prop:"账号",value:((r=p.value)==null?void 0:r.account)||(((s=p.value)==null?void 0:s.账号)??"未知")},{label:"",name:"角色名称",prop:"角色名称",value:((a=p.value)==null?void 0:a.layer)==="superAdmin"?"超级管理员":(o=p.value)==null?void 0:o.角色名称},{label:"",name:"部门名称",prop:"部门名称",value:((l=p.value)==null?void 0:l.部门名称)??"未知"},{label:"",name:"状态",prop:"状态",value:((u=p.value)==null?void 0:u.layer)==="superAdmin"?"启用":((t=p.value)==null?void 0:t.状态)??"未知"},{label:"",prop:"头像",isFormColHidden:!0,value:((f=p.value)==null?void 0:f.layer)==="superAdmin"?"启用":((b=p.value)==null?void 0:b.状态)??"未知"},{label:"",prop:"签名",isFormColHidden:!0,value:((m=p.value)==null?void 0:m.layer)==="superAdmin"?"启用":((y=p.value)==null?void 0:y.状态)??"未知"}]}),Y=()=>{},q=e.ref(!1),U=e.reactive({dialogTitle:"电子签名",dialogWidth:"30",dialogShow:!1,url:""}),N=e.ref([{label:"签字版",icon:_.edit_pen_default,type:"button",disabled:!1},{label:"电子签名",icon:_.edit_default,type:"button",disabled:!1},{label:"上传手写签名",icon:_.upload_filled_default,type:"buttonUpload",disabled:!1}]),P=e.ref(!1),$=e.ref(!1),z=e.ref(!1),K=e.computed(()=>{var o,l,u;const r=sessionStorage.getItem("authority"),s=JSON.parse(r||""),a=(o=A.value)!=null&&o.startsWith("/")?(l=A.value)==null?void 0:l.substring(1):A.value;return Array.isArray(s)?(z.value=!(s!=null&&s.includes(`${a}/上传头像`)),(u=N.value)==null?void 0:u.map(t=>({...t,disabled:!(s!=null&&s.includes(`${a}/签名`))}))):typeof s=="string"&&(s==null?void 0:s.toUpperCase())==="SUPERADMIN"?N.value:[]}),Z=e.computed(()=>[{key:"signConfig",contents:U},{key:"signTypeList",contents:K.value}]),ee=r=>{U.dialogShow=r.label==="电子签名"},O=()=>{U.dialogShow=!1},W=async r=>{var a,o,l,u,t,f,b,m,y;const s=await D.getInsofDataApi({id:r});if(((a=s==null?void 0:s.data)==null?void 0:a.code)===200&&s.data.result&&Array.isArray(s.data.result)&&s.data.result.length>0){const d={...(u=(l=(o=s.data.result)==null?void 0:o[0])==null?void 0:l.value)==null?void 0:u.tableData,id:(f=(t=s.data.result)==null?void 0:t[0])==null?void 0:f.id,layer:(y=(m=(b=s.data.result)==null?void 0:b[0])==null?void 0:m.key)==null?void 0:y.layer};V.setLoginUserInfo(d)}},j=async(r,s)=>{var o,l,u;const a=C.cloneDeep(r);a==null||delete a.id;try{const t=await D.updateInsofDataApi({id:(o=p.value)==null?void 0:o.id,value:{tableData:a}});((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(O(),_.ElMessage.success("修改成功"),await W((u=p.value)==null?void 0:u.id),await V.setLogRecordAsync({type:s,data:r},A.value))}catch{_.ElMessage.error("修改响应失败")}finally{q.value=!1,P.value=!1,$.value=!1}},te=async(r,s)=>{var l;const a=r==="avatarUrl"?"头像":"签名",o={...p.value,status:((l=p.value)==null?void 0:l.status)??"启用",[a]:s};P.value=r==="avatarUrl",$.value=r==="signature",await j(o,"图片修改")},I=e.reactive({baseCols:[],otherCols:[]}),H=e.ref([]),J=e.ref(),ae=(r,s,a)=>{var u,t,f,b,m,y;let o;const l=s;((t=(u=p.value)==null?void 0:u.layer)==null?void 0:t.toUpperCase())!=="SUPERADMIN"?o=(f=p.value)!=null&&f.password?T.decryptData((b=p.value)==null?void 0:b.password,(m=x==null?void 0:x.value)==null?void 0:m.privateKey):T.resetPassword:o=(y=p.value)==null?void 0:y.password,o===l?a():a(new Error("输入的密码与原密码不匹配,请重新输入"))},re=(r,s,a)=>{s?a():a(new Error("请输入密码"))},se=(r,s,a)=>{var o;s!==((o=J.value)==null?void 0:o.newtPass)?a(new Error("两次输入的密码不一致")):a()},ne=async()=>{var s,a,o,l,u,t,f,b,m,y;const r=await D.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:"系统管理/用户管理"}});if(((s=r==null?void 0:r.data)==null?void 0:s.code)===200&&r.data.result&&((a=r.data.result)==null?void 0:a.length)>0){const d=(f=(t=(u=(l=(o=r.data.result)==null?void 0:o[0])==null?void 0:l.value)==null?void 0:u.pageData)==null?void 0:t.compData)==null?void 0:f.find(n=>(n==null?void 0:n.key)==="header"),w=(b=L.value)==null?void 0:b.map(n=>n==null?void 0:n.prop);I.baseCols=d&&((m=d.contents)==null?void 0:m.map(n=>({...n,isFormColHidden:(w==null?void 0:w.includes(n==null?void 0:n.prop))||(n==null?void 0:n.label)==="操作"})));const S=(y=d.contents)==null?void 0:y.find(n=>(n==null?void 0:n.prop)==="password"),i=[{...S,label:"当前密码",prop:"currentPass",validator:ae},{...S,label:"新密码",prop:"newtPass",validator:re},{...S,label:"确认密码",prop:"confirmNewPass",validator:se}];I.otherCols=i,ue(p.value)}},oe=r=>{J.value=r},le=async({content:r,buttonName:s})=>{var o,l,u,t,f;let a;s==="确定"&&(a={...p.value,status:((o=p.value)==null?void 0:o.status)??"启用",password:((u=(l=p.value)==null?void 0:l.layer)==null?void 0:u.toUpperCase())==="SUPERADMIN"?r==null?void 0:r.confirmNewPass:T.encryptData(r==null?void 0:r.confirmNewPass,(t=x.value)==null?void 0:t.publicKey)}),s==="保存基本信息"&&(a={...p.value,...r,status:((f=p.value)==null?void 0:f.status)??"启用"}),q.value=!0,await j(a,s)},M=()=>{var o,l;const r={base:[{label:"保存基本信息"}],other:[{label:"重置",background:"#b7b8b8"},{label:"确定"}]},s=sessionStorage.getItem("authority"),a=JSON.parse(s||"");if(Array.isArray(a)){const u=(o=A.value)!=null&&o.startsWith("/")?(l=A.value)==null?void 0:l.substring(1):A.value,t=a!=null&&a.includes(`${u}/基本信息`)?r==null?void 0:r.base:[],f=a!=null&&a.includes(`${u}/修改密码`)?r==null?void 0:r.other:[];return{base:t,other:f}}else return typeof a=="string"&&(a==null?void 0:a.toUpperCase())==="SUPERADMIN"?r:null},ue=r=>{var s,a,o,l,u;H.value=[{value:"基础信息",label:"基础信息",children:[{type:"form",content:{rowContents:(s=I.baseCols)==null?void 0:s.map(t=>({...t,width:2,type:t==null?void 0:t.formType,name:t==null?void 0:t.prop,prop:t==null?void 0:t.prop,contents:t==null?void 0:t.options,value:r[t==null?void 0:t.prop]})),formRules:{userName:[{required:!0,message:"输入不能为空",trigger:"blur"}],birthDay:[{required:!0,message:"输入不能为空",trigger:"blur"}],phone:[{required:!0,message:"输入不能为空",trigger:"blur"}]},buttonValue:(a=M())==null?void 0:a.base,isEnableWrap:!1,isButtonRow:!1},value:""}]},{value:"修改密码",label:"修改密码",children:[{type:"form",content:{rowContents:(o=I.otherCols)==null?void 0:o.map(t=>({...t,width:1,type:t==null?void 0:t.formType,name:t==null?void 0:t.prop,contents:t==null?void 0:t.options})),formRules:(l=I.otherCols)==null?void 0:l.reduce((t,f)=>(t[f.prop]=[{required:!0,message:"输入有误",trigger:"change"},{validator:(b,m,y)=>f.validator(b,m,y),trigger:"blur"}],t),{}),buttonValue:(u=M())==null?void 0:u.other,isEnableWrap:!1},value:""}]}]},ie=Object.freeze(Object.defineProperty({__proto__:null,avatarLoading:P,beforeSignDestroy:O,changeFormTrigger:oe,clickFormButton:Y,clickSignButton:ee,clickTabButton:le,getUserTableHeadersAsync:ne,itemData:Z,loading:q,refreshLoginUserInfoAsync:W,rowContents:L,signPadInfo:U,signTypes:K,signatureLoading:$,submitImageAsync:te,tabKey:F,tabsContents:H,tempSignTypes:N,uploadDisabled:z},Symbol.toStringTag,{value:"Module"})),ce={class:"avatar-model-wrap"},de={key:0},pe=e.defineComponent({__name:"index",props:{disabled:{type:Boolean,default:!1},avatarUrl:{type:String,default:""},size:{type:[String,Number],default:"large"},userInfo:{type:Object,default:{}},clickStop:{type:Boolean,default:!0}},emits:["submitImage","deleteImage"],setup(r,{emit:s}){const a=r,o=s,l=e.computed(()=>"http://222.92.178.198:62001"),u=e.ref(""),t=e.ref(""),f=e.ref();e.watch(()=>{var d;return(d=a.userInfo)==null?void 0:d.头像},d=>{t.value=d?l.value+"/"+d:""},{immediate:!0});const b=async()=>{if(!(a!=null&&a.disabled))try{const d=await C.downloadAvatarApi({url:u.value});if(d.status!==200)throw new Error(`HTTP error! status: ${d.status}`);const w=new Blob([d.data],{type:d.headers["content-type"]});f.value=w}catch(d){throw new Error(d)}},m=async d=>{var w,S,i,n,h;try{const g=await C.uploadFile(d);((w=g==null?void 0:g.data)==null?void 0:w.code)===200&&(t.value=l.value+"/"+((i=(S=g.data)==null?void 0:S.result)==null?void 0:i.url),u.value=(h=(n=g.data)==null?void 0:n.result)==null?void 0:h.url,o("submitImage",u.value))}catch(g){_.ElMessage.error(g)}},y=async()=>{try{if(!t.value)return}catch(d){_.ElMessage.error(d)}};return(d,w)=>{var S,i;return e.openBlock(),e.createElementBlock("div",ce,[e.createVNode(G.Avatar,{avatarUrl:t.value??"",avatarBlob:f.value,size:r.size,onClickAvatar:b,onSubmitImage:m,onDeleteImage:y,clickStop:a==null?void 0:a.clickStop},{avatarDefault:e.withCtx(()=>{var n,h,g,v;return[e.createTextVNode(e.toDisplayString(((h=(n=r.userInfo)==null?void 0:n.account)==null?void 0:h.charAt(0))||((v=(g=r.userInfo)==null?void 0:g.姓名)==null?void 0:v.charAt(0))||""),1)]}),_:1},8,["avatarUrl","avatarBlob","size","clickStop"]),r.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",de,e.toDisplayString(((S=r.userInfo)==null?void 0:S.account)||((i=r.userInfo)==null?void 0:i.账号)||"未知"),1))])}}}),fe=R._export_sfc(pe,[["__scopeId","data-v-e466982c"]]),ge=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["clickSignButton","clickSubmitSign","beforeDestroy"],setup(r,{emit:s}){const a=r,o=e.ref({}),l=e.ref([]),u=s,t=i=>{o.value.dialogShow=(i==null?void 0:i.label)==="电子签名",u("clickSignButton",i)},f=()=>{o.value.dialogShow=!1,u("beforeDestroy")},b=e.computed(()=>"http://222.92.178.198:62001"),m=i=>{var c;const n=i.split(","),h=(c=n==null?void 0:n[0])==null?void 0:c.match(/:(.*?);/)[1],g=atob(n[1]);let v=g.length;const k=new Uint8Array(v);for(;v--;)k[v]=g.charCodeAt(v);return new Blob([k],{type:h})},y=async i=>{var n,h,g;try{const v=await C.uploadFile(i);((n=v==null?void 0:v.data)==null?void 0:n.code)===200&&u("clickSubmitSign",(g=(h=v.data)==null?void 0:h.result)==null?void 0:g.url)}catch(v){_.ElMessage.error(v)}},d=e.ref(""),w=i=>{d.value=i,o.value.dialogShow=!1;const n=new FormData,h=m(i);n.append("file",h,"image.png"),y(n)},S=i=>{const n=new FormData;n.append("file",i==null?void 0:i.file),y(n)};return e.watch(()=>a==null?void 0:a.itemData,i=>{var h,g,v,k;d.value="",(h=o.value)!=null&&h.dialogShow&&(o.value.dialogShow=!1);const n=(g=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="signConfig"))==null?void 0:g.contents;n&&Object.keys(n).forEach(c=>{(n[c]===void 0||n[c]===null||n[c]==="")&&delete n[c]}),o.value=(v=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="signConfig"))==null?void 0:v.contents,l.value=(k=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="signTypeList"))==null?void 0:k.contents},{immediate:!0}),(i,n)=>{const h=e.resolveComponent("el-empty"),g=e.resolveComponent("el-image"),v=e.resolveComponent("el-button"),k=e.resolveComponent("el-upload");return e.openBlock(),e.createBlock(Q.Signature,{signPadInfo:o.value,onBeforeDestroy:f,onClickSubmitSign:w},{signatureRender:e.withCtx(()=>{var c,B;return[e.createElementVNode("div",{class:"signature-render",style:e.normalizeStyle({width:`${(c=o.value)==null?void 0:c.signPadWidth}%`})},[e.createVNode(g,{src:d.value?d.value:b.value+"/"+((B=r.userInfo)==null?void 0:B.签名),fit:"contain"},{error:e.withCtx(()=>[e.createVNode(h,{"image-size":60,description:" "},{image:e.withCtx(()=>[e.createVNode(E.SvgIcon,{name:"emptyImg"})]),_:1})]),_:1},8,["src"])],4)]}),signatureTypes:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,c=>{var B;return e.openBlock(),e.createElementBlock("div",{key:c.label,class:"signature-button"},[(B=c.label)!=null&&B.includes("上传")?(e.openBlock(),e.createBlock(k,{key:0,ref_for:!0,ref:"uploadRef","http-request":S,"show-file-list":!1},{trigger:e.withCtx(()=>[e.createVNode(v,{disabled:c.disabled,id:"themeButton"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),icon:e.withCtx(()=>[e.createVNode(E.SvgIcon,{name:c.icon??""},null,8,["name"])]),_:2},1032,["disabled"])]),_:2},1536)):(e.openBlock(),e.createBlock(v,{key:1,id:"themeButton",disabled:c.disabled,onClick:ye=>t(c)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),icon:e.withCtx(()=>[e.createVNode(E.SvgIcon,{name:c.icon??""},null,8,["name"])]),_:2},1032,["disabled","onClick"]))])}),128))]),_:1},8,["signPadInfo"])}}}),ve=R._export_sfc(ge,[["__scopeId","data-v-ce5a2314"]]);exports.State=ie;exports.ssAvatar=fe;exports.ssSignature=ve;exports.tabKey=F;
1
+ "use strict";const e=require("vue"),_=require("./request-BBDPqFah.cjs"),C=require("./index-TlpsYQOO.cjs"),N=require("./index-CDIharql.cjs"),T=require("./index-Cie1OJYf.cjs"),G=require("./index-CVHrgtSc.cjs"),M=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Q=require("./index-CpHrJbzU.cjs"),E=require("./index-BpPyaNFa.cjs"),V=C.useLoginState(C.pinia),{loginUserInfo:p,cryptoInfo:x}=C.storeToRefs(V),X=C.useMenuState(C.pinia),{activeMenuPath:A}=C.storeToRefs(X),R=e.ref(0),L=e.computed(()=>{var r,s,a,o,l,u,t,f,b,m,y;return[{label:"",name:"账号",prop:"账号",value:((r=p.value)==null?void 0:r.account)||(((s=p.value)==null?void 0:s.账号)??"未知")},{label:"",name:"角色名称",prop:"角色名称",value:((a=p.value)==null?void 0:a.layer)==="superAdmin"?"超级管理员":(o=p.value)==null?void 0:o.角色名称},{label:"",name:"部门名称",prop:"部门名称",value:((l=p.value)==null?void 0:l.部门名称)??"未知"},{label:"",name:"状态",prop:"状态",value:((u=p.value)==null?void 0:u.layer)==="superAdmin"?"启用":((t=p.value)==null?void 0:t.状态)??"未知"},{label:"",prop:"头像",isFormColHidden:!0,value:((f=p.value)==null?void 0:f.layer)==="superAdmin"?"启用":((b=p.value)==null?void 0:b.状态)??"未知"},{label:"",prop:"签名",isFormColHidden:!0,value:((m=p.value)==null?void 0:m.layer)==="superAdmin"?"启用":((y=p.value)==null?void 0:y.状态)??"未知"}]}),Y=()=>{},q=e.ref(!1),U=e.reactive({dialogTitle:"电子签名",dialogWidth:"30",dialogShow:!1,url:""}),D=e.ref([{label:"签字版",icon:_.edit_pen_default,type:"button",disabled:!1},{label:"电子签名",icon:_.edit_default,type:"button",disabled:!1},{label:"上传手写签名",icon:_.upload_filled_default,type:"buttonUpload",disabled:!1}]),P=e.ref(!1),$=e.ref(!1),z=e.ref(!1),K=e.computed(()=>{var o,l,u;const r=sessionStorage.getItem("authority"),s=JSON.parse(r||""),a=(o=A.value)!=null&&o.startsWith("/")?(l=A.value)==null?void 0:l.substring(1):A.value;return Array.isArray(s)?(z.value=!(s!=null&&s.includes(`${a}/上传头像`)),(u=D.value)==null?void 0:u.map(t=>({...t,disabled:!(s!=null&&s.includes(`${a}/签名`))}))):typeof s=="string"&&(s==null?void 0:s.toUpperCase())==="SUPERADMIN"?D.value:[]}),Z=e.computed(()=>[{key:"signConfig",contents:U},{key:"signTypeList",contents:K.value}]),ee=r=>{U.dialogShow=r.label==="电子签名"},O=()=>{U.dialogShow=!1},W=async r=>{var a,o,l,u,t,f,b,m,y;const s=await N.getInsofDataApi({id:r});if(((a=s==null?void 0:s.data)==null?void 0:a.code)===200&&s.data.result&&Array.isArray(s.data.result)&&s.data.result.length>0){const d={...(u=(l=(o=s.data.result)==null?void 0:o[0])==null?void 0:l.value)==null?void 0:u.tableData,id:(f=(t=s.data.result)==null?void 0:t[0])==null?void 0:f.id,layer:(y=(m=(b=s.data.result)==null?void 0:b[0])==null?void 0:m.key)==null?void 0:y.layer};V.setLoginUserInfo(d)}},j=async(r,s)=>{var o,l,u;const a=C.cloneDeep(r);a==null||delete a.id;try{const t=await N.updateInsofDataApi({id:(o=p.value)==null?void 0:o.id,value:{tableData:a}});((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(O(),_.ElMessage.success("修改成功"),await W((u=p.value)==null?void 0:u.id),await V.setLogRecordAsync({type:s,data:r},A.value))}catch{_.ElMessage.error("修改响应失败")}finally{q.value=!1,P.value=!1,$.value=!1}},te=async(r,s)=>{var l;const a=r==="avatarUrl"?"头像":"签名",o={...p.value,status:((l=p.value)==null?void 0:l.status)??"启用",[a]:s};P.value=r==="avatarUrl",$.value=r==="signature",await j(o,"图片修改")},I=e.reactive({baseCols:[],otherCols:[]}),H=e.ref([]),J=e.ref(),ae=(r,s,a)=>{var u,t,f,b,m,y;let o;const l=s;((t=(u=p.value)==null?void 0:u.layer)==null?void 0:t.toUpperCase())!=="SUPERADMIN"?o=(f=p.value)!=null&&f.password?T.decryptData((b=p.value)==null?void 0:b.password,(m=x==null?void 0:x.value)==null?void 0:m.privateKey):T.resetPassword:o=(y=p.value)==null?void 0:y.password,o===l?a():a(new Error("输入的密码与原密码不匹配,请重新输入"))},re=(r,s,a)=>{s?a():a(new Error("请输入密码"))},se=(r,s,a)=>{var o;s!==((o=J.value)==null?void 0:o.newtPass)?a(new Error("两次输入的密码不一致")):a()},ne=async()=>{var s,a,o,l,u,t,f,b,m,y;const r=await N.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:"系统管理/用户管理"}});if(((s=r==null?void 0:r.data)==null?void 0:s.code)===200&&r.data.result&&((a=r.data.result)==null?void 0:a.length)>0){const d=(f=(t=(u=(l=(o=r.data.result)==null?void 0:o[0])==null?void 0:l.value)==null?void 0:u.pageData)==null?void 0:t.compData)==null?void 0:f.find(n=>(n==null?void 0:n.key)==="header"),w=(b=L.value)==null?void 0:b.map(n=>n==null?void 0:n.prop);I.baseCols=d&&((m=d.contents)==null?void 0:m.map(n=>({...n,isFormColHidden:(w==null?void 0:w.includes(n==null?void 0:n.prop))||(n==null?void 0:n.label)==="操作"})));const S=(y=d.contents)==null?void 0:y.find(n=>(n==null?void 0:n.prop)==="password"),i=[{...S,label:"当前密码",prop:"currentPass",validator:ae},{...S,label:"新密码",prop:"newtPass",validator:re},{...S,label:"确认密码",prop:"confirmNewPass",validator:se}];I.otherCols=i,ue(p.value)}},oe=r=>{J.value=r},le=async({content:r,buttonName:s})=>{var o,l,u,t,f;let a;s==="确定"&&(a={...p.value,status:((o=p.value)==null?void 0:o.status)??"启用",password:((u=(l=p.value)==null?void 0:l.layer)==null?void 0:u.toUpperCase())==="SUPERADMIN"?r==null?void 0:r.confirmNewPass:T.encryptData(r==null?void 0:r.confirmNewPass,(t=x.value)==null?void 0:t.publicKey)}),s==="保存基本信息"&&(a={...p.value,...r,status:((f=p.value)==null?void 0:f.status)??"启用"}),q.value=!0,await j(a,s)},F=()=>{var o,l;const r={base:[{label:"保存基本信息"}],other:[{label:"重置",background:"#b7b8b8"},{label:"确定"}]},s=sessionStorage.getItem("authority"),a=JSON.parse(s||"");if(Array.isArray(a)){const u=(o=A.value)!=null&&o.startsWith("/")?(l=A.value)==null?void 0:l.substring(1):A.value,t=a!=null&&a.includes(`${u}/基本信息`)?r==null?void 0:r.base:[],f=a!=null&&a.includes(`${u}/修改密码`)?r==null?void 0:r.other:[];return{base:t,other:f}}else return typeof a=="string"&&(a==null?void 0:a.toUpperCase())==="SUPERADMIN"?r:null},ue=r=>{var s,a,o,l,u;H.value=[{value:"基础信息",label:"基础信息",children:[{type:"form",content:{rowContents:(s=I.baseCols)==null?void 0:s.map(t=>({...t,width:2,type:t==null?void 0:t.formType,name:t==null?void 0:t.prop,prop:t==null?void 0:t.prop,contents:t==null?void 0:t.options,value:r[t==null?void 0:t.prop]})),formRules:{userName:[{required:!0,message:"输入不能为空",trigger:"blur"}],birthDay:[{required:!0,message:"输入不能为空",trigger:"blur"}],phone:[{required:!0,message:"输入不能为空",trigger:"blur"}]},buttonValue:(a=F())==null?void 0:a.base,isEnableWrap:!1,isButtonRow:!1},value:""}]},{value:"修改密码",label:"修改密码",children:[{type:"form",content:{rowContents:(o=I.otherCols)==null?void 0:o.map(t=>({...t,width:1,type:t==null?void 0:t.formType,name:t==null?void 0:t.prop,contents:t==null?void 0:t.options})),formRules:(l=I.otherCols)==null?void 0:l.reduce((t,f)=>(t[f.prop]=[{required:!0,message:"输入有误",trigger:"change"},{validator:(b,m,y)=>f.validator(b,m,y),trigger:"blur"}],t),{}),buttonValue:(u=F())==null?void 0:u.other,isEnableWrap:!1},value:""}]}]},ie=Object.freeze(Object.defineProperty({__proto__:null,avatarLoading:P,beforeSignDestroy:O,changeFormTrigger:oe,clickFormButton:Y,clickSignButton:ee,clickTabButton:le,getUserTableHeadersAsync:ne,itemData:Z,loading:q,refreshLoginUserInfoAsync:W,rowContents:L,signPadInfo:U,signTypes:K,signatureLoading:$,submitImageAsync:te,tabKey:R,tabsContents:H,tempSignTypes:D,uploadDisabled:z},Symbol.toStringTag,{value:"Module"})),ce={class:"avatar-model-wrap"},de={key:0},pe=e.defineComponent({__name:"index",props:{disabled:{type:Boolean,default:!1},avatarUrl:{type:String,default:""},size:{type:[String,Number],default:"large"},userInfo:{type:Object,default:{}},clickStop:{type:Boolean,default:!0}},emits:["submitImage","deleteImage"],setup(r,{emit:s}){const a=r,o=s,l=e.computed(()=>"http://222.92.178.198:62001"),u=e.ref(""),t=e.ref(""),f=e.ref();e.watch(()=>{var d;return(d=a.userInfo)==null?void 0:d.头像},d=>{t.value=d?l.value+"/"+d:""},{immediate:!0});const b=async()=>{if(!(a!=null&&a.disabled))try{const d=await C.platformDownloadFile({url:u.value});if(d.status!==200)throw new Error(`HTTP error! status: ${d.status}`);const w=new Blob([d.data],{type:d.headers["content-type"]});f.value=w}catch(d){throw new Error(d)}},m=async d=>{var w,S,i,n,h;try{const g=await C.uploadFile(d);((w=g==null?void 0:g.data)==null?void 0:w.code)===200&&(t.value=l.value+"/"+((i=(S=g.data)==null?void 0:S.result)==null?void 0:i.url),u.value=(h=(n=g.data)==null?void 0:n.result)==null?void 0:h.url,o("submitImage",u.value))}catch(g){_.ElMessage.error(g)}},y=async()=>{try{if(!t.value)return}catch(d){_.ElMessage.error(d)}};return(d,w)=>{var S,i;return e.openBlock(),e.createElementBlock("div",ce,[e.createVNode(G.Avatar,{avatarUrl:t.value??"",avatarBlob:f.value,size:r.size,onClickAvatar:b,onSubmitImage:m,onDeleteImage:y,clickStop:a==null?void 0:a.clickStop},{avatarDefault:e.withCtx(()=>{var n,h,g,v;return[e.createTextVNode(e.toDisplayString(((h=(n=r.userInfo)==null?void 0:n.account)==null?void 0:h.charAt(0))||((v=(g=r.userInfo)==null?void 0:g.姓名)==null?void 0:v.charAt(0))||""),1)]}),_:1},8,["avatarUrl","avatarBlob","size","clickStop"]),r.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",de,e.toDisplayString(((S=r.userInfo)==null?void 0:S.account)||((i=r.userInfo)==null?void 0:i.账号)||"未知"),1))])}}}),fe=M._export_sfc(pe,[["__scopeId","data-v-1a1f2575"]]),ge=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["clickSignButton","clickSubmitSign","beforeDestroy"],setup(r,{emit:s}){const a=r,o=e.ref({}),l=e.ref([]),u=s,t=i=>{o.value.dialogShow=(i==null?void 0:i.label)==="电子签名",u("clickSignButton",i)},f=()=>{o.value.dialogShow=!1,u("beforeDestroy")},b=e.computed(()=>"http://222.92.178.198:62001"),m=i=>{var c;const n=i.split(","),h=(c=n==null?void 0:n[0])==null?void 0:c.match(/:(.*?);/)[1],g=atob(n[1]);let v=g.length;const k=new Uint8Array(v);for(;v--;)k[v]=g.charCodeAt(v);return new Blob([k],{type:h})},y=async i=>{var n,h,g;try{const v=await C.uploadFile(i);((n=v==null?void 0:v.data)==null?void 0:n.code)===200&&u("clickSubmitSign",(g=(h=v.data)==null?void 0:h.result)==null?void 0:g.url)}catch(v){_.ElMessage.error(v)}},d=e.ref(""),w=i=>{d.value=i,o.value.dialogShow=!1;const n=new FormData,h=m(i);n.append("file",h,"image.png"),y(n)},S=i=>{const n=new FormData;n.append("file",i==null?void 0:i.file),y(n)};return e.watch(()=>a==null?void 0:a.itemData,i=>{var h,g,v,k;d.value="",(h=o.value)!=null&&h.dialogShow&&(o.value.dialogShow=!1);const n=(g=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="signConfig"))==null?void 0:g.contents;n&&Object.keys(n).forEach(c=>{(n[c]===void 0||n[c]===null||n[c]==="")&&delete n[c]}),o.value=(v=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="signConfig"))==null?void 0:v.contents,l.value=(k=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="signTypeList"))==null?void 0:k.contents},{immediate:!0}),(i,n)=>{const h=e.resolveComponent("el-empty"),g=e.resolveComponent("el-image"),v=e.resolveComponent("el-button"),k=e.resolveComponent("el-upload");return e.openBlock(),e.createBlock(Q.Signature,{signPadInfo:o.value,onBeforeDestroy:f,onClickSubmitSign:w},{signatureRender:e.withCtx(()=>{var c,B;return[e.createElementVNode("div",{class:"signature-render",style:e.normalizeStyle({width:`${(c=o.value)==null?void 0:c.signPadWidth}%`})},[e.createVNode(g,{src:d.value?d.value:b.value+"/"+((B=r.userInfo)==null?void 0:B.签名),fit:"contain"},{error:e.withCtx(()=>[e.createVNode(h,{"image-size":60,description:" "},{image:e.withCtx(()=>[e.createVNode(E.SvgIcon,{name:"emptyImg"})]),_:1})]),_:1},8,["src"])],4)]}),signatureTypes:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,c=>{var B;return e.openBlock(),e.createElementBlock("div",{key:c.label,class:"signature-button"},[(B=c.label)!=null&&B.includes("上传")?(e.openBlock(),e.createBlock(k,{key:0,ref_for:!0,ref:"uploadRef","http-request":S,"show-file-list":!1},{trigger:e.withCtx(()=>[e.createVNode(v,{disabled:c.disabled,id:"themeButton"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),icon:e.withCtx(()=>[e.createVNode(E.SvgIcon,{name:c.icon??""},null,8,["name"])]),_:2},1032,["disabled"])]),_:2},1536)):(e.openBlock(),e.createBlock(v,{key:1,id:"themeButton",disabled:c.disabled,onClick:ye=>t(c)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),icon:e.withCtx(()=>[e.createVNode(E.SvgIcon,{name:c.icon??""},null,8,["name"])]),_:2},1032,["disabled","onClick"]))])}),128))]),_:1},8,["signPadInfo"])}}}),ve=M._export_sfc(ge,[["__scopeId","data-v-ce5a2314"]]);exports.State=ie;exports.ssAvatar=fe;exports.ssSignature=ve;exports.tabKey=R;
@@ -1,6 +1,6 @@
1
1
  import { watch as ue, computed as Q, ref as g, defineComponent as de, onMounted as pe, reactive as me, resolveComponent as f, createElementBlock as j, openBlock as H, createElementVNode as a, createVNode as i, withCtx as d, Fragment as fe, renderList as ge, unref as b, withModifiers as ve, toDisplayString as _e } from "vue";
2
- import { s as ye, b as se, p as K, u as ie, D as he, E as Pe, F as ne, h as we, c as Ie } from "./index-CLvFKdVq.js";
3
- import { f as Ce } from "./index-BGbxImVv.js";
2
+ import { s as ye, b as se, p as K, u as ie, D as he, E as Pe, F as ne, h as we, c as Ie } from "./index-DEUR6Zpv.js";
3
+ import { f as Ce } from "./index-vd4vRJW2.js";
4
4
  import { s as V } from "./request-DHW6ycUJ.js";
5
5
  import { _ as J } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
6
6
  import { s as be } from "./index-Cxi75Fab.js";
@@ -1,6 +1,6 @@
1
1
  import { computed as R, ref as y, defineComponent as Ue, onMounted as ze, reactive as xe, resolveComponent as c, createElementBlock as N, openBlock as w, createElementVNode as s, createVNode as o, unref as m, withCtx as i, createTextVNode as k, toDisplayString as pe, Fragment as de, renderList as ue, withModifiers as qe, createBlock as ce, createCommentVNode as Ge } from "vue";
2
- import { g as Oe, d as Me, u as Re, c as Fe, a as Qe, b as $e } from "./index-BM2WGfYi.js";
3
- import { b as Ye, u as Ce, p as Te, D as je, E as Ze, F as he, c as He, h as Je } from "./index-CLvFKdVq.js";
2
+ import { g as Oe, d as Me, u as Re, c as Fe, a as Qe, b as $e } from "./index-C39FYBsm.js";
3
+ import { b as Ye, u as Ce, p as Te, D as je, E as Ze, F as he, c as He, h as Je } from "./index-DEUR6Zpv.js";
4
4
  import { _ as Ie } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
5
5
  import { s as Ke } from "./index-Cxi75Fab.js";
6
6
  import { _ as We } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -1,6 +1,6 @@
1
1
  import { ref as E, reactive as kt, computed as ht, watch as _t } from "vue";
2
2
  import { g as Xt, b as Qt, a as te, d as ee } from "./index-Gae_OZ3L.js";
3
- import { a1 as ie, u as Kt, p as M, s as L, b as Ut, a as Lt, c as dt } from "./index-CLvFKdVq.js";
3
+ import { a1 as ie, u as Kt, p as M, s as L, b as Ut, a as Lt, c as dt } from "./index-DEUR6Zpv.js";
4
4
  import { E as Et } from "./request-DHW6ycUJ.js";
5
5
  const jt = ie("authorityState", {
6
6
  state: () => ({