ss-component-new 1.1.892 → 1.1.893

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 (64) hide show
  1. package/dist/animationData-CBhjOWFv.cjs +1 -0
  2. package/dist/{animationData-to30M7Yz.js → animationData-CN1EqF-r.js} +34 -37
  3. package/dist/{index-DVcjJJcy.cjs → index-0gTnWTYW.cjs} +1 -1
  4. package/dist/{index-BD7hrr9v.cjs → index-B-h03qrU.cjs} +1 -1
  5. package/dist/{index-BQ7XtyS3.cjs → index-BEdZMjbU.cjs} +1 -1
  6. package/dist/{index-BGZqdbx4.cjs → index-BMU6yJAs.cjs} +1 -1
  7. package/dist/{index-mY20uUPd.cjs → index-BO6hghJd.cjs} +1 -1
  8. package/dist/{index-ByxdO5yO.js → index-BRHLVhL0.js} +2042 -2040
  9. package/dist/{index-BKOA5pMP.js → index-BXnPDv9r.js} +2 -2
  10. package/dist/{index-gu4q2eXY.js → index-BZCiuSvl.js} +3 -3
  11. package/dist/{index-CUByJUrx.js → index-BaW_XB1O.js} +1 -1
  12. package/dist/{index-c-DWGxay.cjs → index-BpbI5uEE.cjs} +1 -1
  13. package/dist/{index-C4PsRile.cjs → index-Bu_pCURN.cjs} +1 -1
  14. package/dist/{index-7y4MBk5X.js → index-Bx2hISzp.js} +1 -1
  15. package/dist/{index-Rpd0ATV5.cjs → index-CG4Zzbx3.cjs} +1 -1
  16. package/dist/{index-DFwSB32R.js → index-CLFDFGZc.js} +1 -1
  17. package/dist/{index-CMIt0OEW.js → index-CQSrG-En.js} +1 -1
  18. package/dist/{index-CH9uzGln.cjs → index-CTbSAuTB.cjs} +1 -1
  19. package/dist/{index-DghEGyVe.js → index-CdMJ8AnN.js} +2 -2
  20. package/dist/{index-C5AVKoS2.cjs → index-CkmlUFAW.cjs} +1 -1
  21. package/dist/{index-okHz9k3S.cjs → index-CyIxM6U1.cjs} +1 -1
  22. package/dist/{index-FuOCPE8C.js → index-D16HkrFF.js} +3 -3
  23. package/dist/{index-DU9Mb8ZR.cjs → index-D3lyxIh-.cjs} +1 -1
  24. package/dist/index-D8dNjYD0.cjs +1 -0
  25. package/dist/{index-Du00tTqx.js → index-D9sB6YJp.js} +12 -12
  26. package/dist/{index-4imHm2Qs.cjs → index-DAhaNlWY.cjs} +1 -1
  27. package/dist/{index-kE5hWlEW.js → index-DHT-WlRk.js} +1 -1
  28. package/dist/{index-NvUI1kdv.js → index-DXRKqeMU.js} +1 -1
  29. package/dist/{index-DSWZFF6X.cjs → index-Dng5mlpF.cjs} +1 -1
  30. package/dist/{index-DWzUtupa.js → index-DzhP-dyJ.js} +1 -1
  31. package/dist/{index-iXjv9PFY.js → index-I0KcAC0Z.js} +1 -1
  32. package/dist/{index-BPPlLhQE.js → index-SMWBbIoD.js} +1 -1
  33. package/dist/{index-D1fWMzgV.cjs → index-_wE-o_X9.cjs} +1 -1
  34. package/dist/{index-CBI9x50t.cjs → index-dpiCdUIf.cjs} +1 -1
  35. package/dist/{index-Dhr-9itd.js → index-dy1o1VLL.js} +5 -5
  36. package/dist/{index-CbQA1N89.js → index-kB-ovjCf.js} +2 -2
  37. package/dist/{index-BzOBfN1g.js → index-louTzH4q.js} +1 -1
  38. package/dist/{index-B4PFj0kC.cjs → index-ne_aqcru.cjs} +1 -1
  39. package/dist/{index.vue_vue_type_style_index_0_scoped_6ecb5a6a_lang-CK-poz_n.cjs → index.vue_vue_type_style_index_0_scoped_6ecb5a6a_lang-CPGpyIxm.cjs} +1 -1
  40. package/dist/{index.vue_vue_type_style_index_0_scoped_6ecb5a6a_lang-uM0_uFDi.js → index.vue_vue_type_style_index_0_scoped_6ecb5a6a_lang-CbsslJbk.js} +4 -4
  41. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-C-f9FDPb.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-0q1ExZgF.js} +3 -3
  42. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-BjtUNzWO.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-BvHnH_PZ.cjs} +1 -1
  43. package/dist/{index.vue_vue_type_style_index_1_lang-3Z4bLyaN.cjs → index.vue_vue_type_style_index_1_lang-BnQBd5DM.cjs} +1 -1
  44. package/dist/{index.vue_vue_type_style_index_1_lang-CWrCaPPj.js → index.vue_vue_type_style_index_1_lang-eTR0ZfGF.js} +1 -1
  45. package/dist/{main-DJnfz_SZ.js → main-BfysCP39.js} +2 -2
  46. package/dist/{main-BdRnkn45.cjs → main-BvP9oHA9.cjs} +1 -1
  47. package/dist/ss-component.cjs +1 -1
  48. package/dist/ss-component.css +1 -1
  49. package/dist/ss-component.js +6 -6
  50. package/dist/ss-component2.cjs +1 -1
  51. package/dist/ss-component2.js +10 -10
  52. package/dist/{threeLatheView-BtHGCH4Q.js → threeLatheView-C6IPSqrJ.js} +1 -1
  53. package/dist/{threeLatheView-BnlYpCll.cjs → threeLatheView-Dfzvm6ky.cjs} +1 -1
  54. package/dist/{threeModel-B2i3rAD0.js → threeModel-CAf_Vsa6.js} +2 -2
  55. package/dist/{threeModel-BndtYu52.cjs → threeModel-CVVGPxdM.cjs} +1 -1
  56. package/dist/{threeSceneView-Rx2-W90u.cjs → threeSceneView-BWuZ3bAE.cjs} +1 -1
  57. package/dist/{threeSceneView-D9h7d8_K.js → threeSceneView-T-nJUjIF.js} +3 -3
  58. package/dist/{threeSceneViewForCPMPIP-Cp82l5Q_.js → threeSceneViewForCPMPIP-D92TDGhY.js} +1 -1
  59. package/dist/{threeSceneViewForCPMPIP-BPdYtC2A.cjs → threeSceneViewForCPMPIP-KubITEuw.cjs} +1 -1
  60. package/dist/{threeViewerHost-Biuo1ilS.cjs → threeViewerHost-BeOR7ANr.cjs} +1 -1
  61. package/dist/{threeViewerHost-Ditcs1HD.js → threeViewerHost-C1PE7DZV.js} +1 -1
  62. package/package.json +1 -1
  63. package/dist/animationData-BT8fsQui.cjs +0 -1
  64. package/dist/index-C4FMqhyI.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";const y=require("./index.vue_vue_type_style_index_1_lang-D9hEBoWU.cjs"),U=require("./xlsx-BPHygxEf.cjs"),T=require("./threeViewerHost-BeOR7ANr.cjs"),_=require("./index-BLXMF7Kg.cjs");function P(r){try{const c=new URL(r).pathname,i=c.substring(c.lastIndexOf("/")+1);return decodeURIComponent(i)}catch(c){return console.error("无法解析URL以提取文件名:",r,c),"未知文件名"}}function S(r){if(!r)return;const c=r.match(/filename\*\s*=\s*([^;]+)/i);if(c){let n=c[1].trim();n=n.replace(/^"(.*)"$/,"$1");const h=n.split("''");if(h.length===2){const m=h[0].toUpperCase(),f=h[1];try{if(m==="UTF-8")return decodeURIComponent(f)}catch{}return f}try{return decodeURIComponent(n)}catch{return n}}const i=r.match(/filename\s*=\s*("?)([^";]+)\1/i);if(i)return i[2].trim()}async function K(r){let c,i;if(/^https?:\/\//.test(r))try{const n=await fetch(r);if(!n.ok)throw new Error(`下载文件失败: ${n.statusText} (URL: ${r})`);c=await n.blob(),i=P(r)}catch(n){throw console.error("使用 fetch 下载文件时出错:",n),n}else try{const n=await T.downloadAvatarApi({url:r});if(n.status!==200)throw new Error(`下载失败: ${n.status}`);const h=n.headers["content-disposition"];i=S(h)||"无文件名",c=n.data}catch(n){throw console.error("通过 API 下载文件时出错:",n),n}return new File([c],i,{type:c.type})}function N(r){return new Promise((c,i)=>{const n=new FileReader;n.onload=h=>{var m;try{const f=(m=h.target)==null?void 0:m.result,u=U.readSync(f,{type:"array"}),F=u.Sheets[u.SheetNames[0]],E=U.utils.sheet_to_json(F);c(E)}catch(f){i(f)}},n.readAsArrayBuffer(r)})}const V=async()=>{const r="弯管仿真加工分析";let c={};const i=sessionStorage.getItem("systemKey"),n=await y.getItemData(`${r}/管件解析`,i,"");let h=["管长","外径"],m={};n==null||n.forEach(e=>{var s;(e==null?void 0:e.comp)==="Form"&&((s=e==null?void 0:e.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="formContent"&&((l=o==null?void 0:o.contents)==null||l.forEach(a=>{h.includes(a==null?void 0:a.key)&&(m[a.key]=a.value)}))}))});const f=m.管长,u=m.外径;console.log("管长",f,"外径",u,m);const F=f,E=u/2,d=await y.getItemData(`${r}/加工位姿生成`,i,"");let A=["夹持长度"],g={};d==null||d.forEach(e=>{var s;(e==null?void 0:e.comp)==="Form"&&((s=e==null?void 0:e.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="formContent"&&((l=o==null?void 0:o.contents)==null||l.forEach(a=>{A.includes(a==null?void 0:a.key)&&(g[a.key]=a.value)}))}))});const k=g.夹持长度;console.log("夹持长度",k,g);const $=Number(k),w={},b=await y.getItemData(`${r}/仿真动画生成`,i,"");b==null||b.forEach(e=>{var s,o,l,a,R,L;if((e==null?void 0:e.comp)==="Table"){let x=[],D=(l=(o=(s=e==null?void 0:e.compData)==null?void 0:s.find(t=>(t==null?void 0:t.key)==="header"))==null?void 0:o.contents)==null?void 0:l.map(t=>t==null?void 0:t.label),C=(L=(R=(a=e==null?void 0:e.compData)==null?void 0:a.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:R.contents)==null?void 0:L.map(t=>(t=t==null?void 0:t.filter(p=>!(p!=null&&p.id)),t));C==null||C.forEach(t=>{x.push(y.getValueToObjectValue(t,D==null?void 0:D.filter(p=>p!=="操作")))}),w[e.name]=x,w[e.name+"Content"]=e}});const I=_.cloneDeep(w);return c={initialPipeLength:F,pipeRadius:E,clampLength:$,animationData:I},c},q=async()=>{const r="双弯管仿真加工分析";let c={};const i=sessionStorage.getItem("systemKey"),n=await y.getItemData(`${r}/管件解析`,i,"");let h=["管长","外径"],m={};n==null||n.forEach(e=>{var s;(e==null?void 0:e.comp)==="Form"&&((s=e==null?void 0:e.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="formContent"&&((l=o==null?void 0:o.contents)==null||l.forEach(a=>{h.includes(a==null?void 0:a.key)&&(m[a.key]=a.value)}))}))});const f=m.管长,u=m.外径;console.log("管长",f,"外径",u,m);const F=f,E=u/2,d=await y.getItemData(`${r}/加工工艺生成`,i,"");let A=["夹持位置"],g={};d==null||d.forEach(e=>{var s;(e==null?void 0:e.comp)==="Form"&&((s=e==null?void 0:e.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="formContent"&&((l=o==null?void 0:o.contents)==null||l.forEach(a=>{A.includes(a==null?void 0:a.key)&&(g[a.key]=a.value)}))}))});const k=g.夹持位置;console.log("夹持长度",k,g);const $=Number(k),w={},b=await y.getItemData(`${r}/仿真动画生成`,i,"");b==null||b.forEach(e=>{var s,o,l,a,R,L;if((e==null?void 0:e.comp)==="Table"){let x=[],D=(l=(o=(s=e==null?void 0:e.compData)==null?void 0:s.find(t=>(t==null?void 0:t.key)==="header"))==null?void 0:o.contents)==null?void 0:l.map(t=>t==null?void 0:t.label),C=(L=(R=(a=e==null?void 0:e.compData)==null?void 0:a.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:R.contents)==null?void 0:L.map(t=>(t=t==null?void 0:t.filter(p=>!(p!=null&&p.id)),t));C==null||C.forEach(t=>{x.push(y.getValueToObjectValue(t,D==null?void 0:D.filter(p=>p!=="操作")))}),w[e.name]=x,w[e.name+"Content"]=e}});const I=_.cloneDeep(w);return c={initialPipeLength:F,pipeRadius:E,clampLength:$,animationData:I},c},B=async r=>await K(r),j=async r=>await N(r),X=async r=>{const c=await B(r);return await j(c)};exports.fetchDoubleRobotAnimationData=q;exports.fetchSingleRobotAnimationData=V;exports.initXYZBCList=X;
@@ -1,7 +1,7 @@
1
- import { i as C, k as x } from "./index.vue_vue_type_style_index_1_lang-C8yw6eX6.js";
1
+ import { i as C, k as P } from "./index.vue_vue_type_style_index_1_lang-C8yw6eX6.js";
2
2
  import { r as K, u as S } from "./xlsx-ByPOQ6N_.js";
3
- import { d as I } from "./threeViewerHost-Ditcs1HD.js";
4
- import { c as P } from "./index-D4kvz4W4.js";
3
+ import { d as I } from "./threeViewerHost-C1PE7DZV.js";
4
+ import { c as T } from "./index-D4kvz4W4.js";
5
5
  function N(r) {
6
6
  try {
7
7
  const c = new URL(r).pathname, s = c.substring(c.lastIndexOf("/") + 1);
@@ -16,9 +16,9 @@ function B(r) {
16
16
  if (c) {
17
17
  let n = c[1].trim();
18
18
  n = n.replace(/^"(.*)"$/, "$1");
19
- const h = n.split("''");
20
- if (h.length === 2) {
21
- const l = h[0].toUpperCase(), f = h[1];
19
+ const p = n.split("''");
20
+ if (p.length === 2) {
21
+ const l = p[0].toUpperCase(), f = p[1];
22
22
  try {
23
23
  if (l === "UTF-8")
24
24
  return decodeURIComponent(f);
@@ -40,10 +40,7 @@ async function j(r) {
40
40
  let c, s;
41
41
  if (/^https?:\/\//.test(r))
42
42
  try {
43
- const n = await fetch(r, {
44
- method: "GET",
45
- cache: "no-store"
46
- });
43
+ const n = await fetch(r);
47
44
  if (!n.ok)
48
45
  throw new Error(`下载文件失败: ${n.statusText} (URL: ${r})`);
49
46
  c = await n.blob(), s = N(r);
@@ -55,8 +52,8 @@ async function j(r) {
55
52
  const n = await I({ url: r });
56
53
  if (n.status !== 200)
57
54
  throw new Error(`下载失败: ${n.status}`);
58
- const h = n.headers["content-disposition"];
59
- s = B(h) || "无文件名", c = n.data;
55
+ const p = n.headers["content-disposition"];
56
+ s = B(p) || "无文件名", c = n.data;
60
57
  } catch (n) {
61
58
  throw console.error("通过 API 下载文件时出错:", n), n;
62
59
  }
@@ -65,34 +62,34 @@ async function j(r) {
65
62
  function V(r) {
66
63
  return new Promise((c, s) => {
67
64
  const n = new FileReader();
68
- n.onload = (h) => {
65
+ n.onload = (p) => {
69
66
  var l;
70
67
  try {
71
- const f = (l = h.target) == null ? void 0 : l.result, u = K(f, { type: "array" }), E = u.Sheets[u.SheetNames[0]], k = S.sheet_to_json(E);
72
- c(k);
68
+ const f = (l = p.target) == null ? void 0 : l.result, u = K(f, { type: "array" }), k = u.Sheets[u.SheetNames[0]], E = S.sheet_to_json(k);
69
+ c(E);
73
70
  } catch (f) {
74
71
  s(f);
75
72
  }
76
73
  }, n.readAsArrayBuffer(r);
77
74
  });
78
75
  }
79
- const z = async () => {
76
+ const G = async () => {
80
77
  const r = "弯管仿真加工分析";
81
78
  let c = {};
82
79
  const s = sessionStorage.getItem("systemKey"), n = await C(`${r}/管件解析`, s, "");
83
- let h = ["管长", "外径"], l = {};
80
+ let p = ["管长", "外径"], l = {};
84
81
  n == null || n.forEach((e) => {
85
82
  var i;
86
83
  (e == null ? void 0 : e.comp) === "Form" && ((i = e == null ? void 0 : e.compData) == null || i.forEach((t) => {
87
84
  var m;
88
85
  (t == null ? void 0 : t.key) === "formContent" && ((m = t == null ? void 0 : t.contents) == null || m.forEach((a) => {
89
- h.includes(a == null ? void 0 : a.key) && (l[a.key] = a.value);
86
+ p.includes(a == null ? void 0 : a.key) && (l[a.key] = a.value);
90
87
  }));
91
88
  }));
92
89
  });
93
90
  const f = l.管长, u = l.外径;
94
91
  console.log("管长", f, "外径", u, l);
95
- const E = f, k = u / 2, y = await C(`${r}/加工位姿生成`, s, "");
92
+ const k = f, E = u / 2, y = await C(`${r}/加工位姿生成`, s, "");
96
93
  let A = ["夹持长度"], d = {};
97
94
  y == null || y.forEach((e) => {
98
95
  var i;
@@ -109,41 +106,41 @@ const z = async () => {
109
106
  g == null || g.forEach((e) => {
110
107
  var i, t, m, a, R, D;
111
108
  if ((e == null ? void 0 : e.comp) === "Table") {
112
- let $ = [], b = (m = (t = (i = e == null ? void 0 : e.compData) == null ? void 0 : i.find((o) => (o == null ? void 0 : o.key) === "header")) == null ? void 0 : t.contents) == null ? void 0 : m.map((o) => o == null ? void 0 : o.label), F = (D = (R = (a = e == null ? void 0 : e.compData) == null ? void 0 : a.find((o) => (o == null ? void 0 : o.key) === "tableContents")) == null ? void 0 : R.contents) == null ? void 0 : D.map((o) => (o = o == null ? void 0 : o.filter((p) => !(p != null && p.id)), o));
109
+ let $ = [], b = (m = (t = (i = e == null ? void 0 : e.compData) == null ? void 0 : i.find((o) => (o == null ? void 0 : o.key) === "header")) == null ? void 0 : t.contents) == null ? void 0 : m.map((o) => o == null ? void 0 : o.label), F = (D = (R = (a = e == null ? void 0 : e.compData) == null ? void 0 : a.find((o) => (o == null ? void 0 : o.key) === "tableContents")) == null ? void 0 : R.contents) == null ? void 0 : D.map((o) => (o = o == null ? void 0 : o.filter((h) => !(h != null && h.id)), o));
113
110
  F == null || F.forEach((o) => {
114
111
  $.push(
115
- x(
112
+ P(
116
113
  o,
117
- b == null ? void 0 : b.filter((p) => p !== "操作")
114
+ b == null ? void 0 : b.filter((h) => h !== "操作")
118
115
  )
119
116
  );
120
117
  }), w[e.name] = $, w[e.name + "Content"] = e;
121
118
  }
122
119
  });
123
- const T = P(w);
120
+ const x = T(w);
124
121
  return c = {
125
- initialPipeLength: E,
126
- pipeRadius: k,
122
+ initialPipeLength: k,
123
+ pipeRadius: E,
127
124
  clampLength: U,
128
- animationData: T
125
+ animationData: x
129
126
  }, c;
130
127
  }, H = async () => {
131
128
  const r = "双弯管仿真加工分析";
132
129
  let c = {};
133
130
  const s = sessionStorage.getItem("systemKey"), n = await C(`${r}/管件解析`, s, "");
134
- let h = ["管长", "外径"], l = {};
131
+ let p = ["管长", "外径"], l = {};
135
132
  n == null || n.forEach((e) => {
136
133
  var i;
137
134
  (e == null ? void 0 : e.comp) === "Form" && ((i = e == null ? void 0 : e.compData) == null || i.forEach((t) => {
138
135
  var m;
139
136
  (t == null ? void 0 : t.key) === "formContent" && ((m = t == null ? void 0 : t.contents) == null || m.forEach((a) => {
140
- h.includes(a == null ? void 0 : a.key) && (l[a.key] = a.value);
137
+ p.includes(a == null ? void 0 : a.key) && (l[a.key] = a.value);
141
138
  }));
142
139
  }));
143
140
  });
144
141
  const f = l.管长, u = l.外径;
145
142
  console.log("管长", f, "外径", u, l);
146
- const E = f, k = u / 2, y = await C(`${r}/加工工艺生成`, s, "");
143
+ const k = f, E = u / 2, y = await C(`${r}/加工工艺生成`, s, "");
147
144
  let A = ["夹持位置"], d = {};
148
145
  y == null || y.forEach((e) => {
149
146
  var i;
@@ -160,23 +157,23 @@ const z = async () => {
160
157
  g == null || g.forEach((e) => {
161
158
  var i, t, m, a, R, D;
162
159
  if ((e == null ? void 0 : e.comp) === "Table") {
163
- let $ = [], b = (m = (t = (i = e == null ? void 0 : e.compData) == null ? void 0 : i.find((o) => (o == null ? void 0 : o.key) === "header")) == null ? void 0 : t.contents) == null ? void 0 : m.map((o) => o == null ? void 0 : o.label), F = (D = (R = (a = e == null ? void 0 : e.compData) == null ? void 0 : a.find((o) => (o == null ? void 0 : o.key) === "tableContents")) == null ? void 0 : R.contents) == null ? void 0 : D.map((o) => (o = o == null ? void 0 : o.filter((p) => !(p != null && p.id)), o));
160
+ let $ = [], b = (m = (t = (i = e == null ? void 0 : e.compData) == null ? void 0 : i.find((o) => (o == null ? void 0 : o.key) === "header")) == null ? void 0 : t.contents) == null ? void 0 : m.map((o) => o == null ? void 0 : o.label), F = (D = (R = (a = e == null ? void 0 : e.compData) == null ? void 0 : a.find((o) => (o == null ? void 0 : o.key) === "tableContents")) == null ? void 0 : R.contents) == null ? void 0 : D.map((o) => (o = o == null ? void 0 : o.filter((h) => !(h != null && h.id)), o));
164
161
  F == null || F.forEach((o) => {
165
162
  $.push(
166
- x(
163
+ P(
167
164
  o,
168
- b == null ? void 0 : b.filter((p) => p !== "操作")
165
+ b == null ? void 0 : b.filter((h) => h !== "操作")
169
166
  )
170
167
  );
171
168
  }), w[e.name] = $, w[e.name + "Content"] = e;
172
169
  }
173
170
  });
174
- const T = P(w);
171
+ const x = T(w);
175
172
  return c = {
176
- initialPipeLength: E,
177
- pipeRadius: k,
173
+ initialPipeLength: k,
174
+ pipeRadius: E,
178
175
  clampLength: U,
179
- animationData: T
176
+ animationData: x
180
177
  }, c;
181
178
  }, X = async (r) => await j(r), Y = async (r) => await V(r), J = async (r) => {
182
179
  const c = await X(r);
@@ -184,6 +181,6 @@ const z = async () => {
184
181
  };
185
182
  export {
186
183
  H as a,
187
- z as f,
184
+ G as f,
188
185
  J as i
189
186
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),V=require("./index-BGZqdbx4.cjs"),h=require("./index.vue_vue_type_style_index_1_lang-D9hEBoWU.cjs"),_=require("./index-BLXMF7Kg.cjs"),B=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),w={class:"routerPage-wrapper"},N={class:"role-dialog-header"},b=["title"],D={title:"更多"},y={class:"dialog-footer"},S=e.defineComponent({__name:"index",setup(T){const g=h.useMenuState(),{menus:C,activeMenuPath:k}=_.storeToRefs(g),o=e.reactive({...h.State$1}),{treeRef:x}=h.State$1;e.onMounted(async()=>{await o.getActivePageStructureId(k.value)});const u=i=>i==null?void 0:i.map(t=>{var c,s,d;return t!=null&&t.childMenus&&((c=t==null?void 0:t.childMenus)==null?void 0:c.length)>0?{...t,childMenus:[],children:u(t==null?void 0:t.childMenus)}:{...t,childMenus:[],path:(s=t==null?void 0:t.path)!=null&&s.startsWith("/")?(d=t==null?void 0:t.path)==null?void 0:d.substring(1):t.path}});return e.watch(()=>C.value,i=>{e.nextTick(()=>{const t=_.cloneDeep(i),c=u(t);o.tempSysMenus=o.handleAddSysMenusButtons(c,"系统维护",["查看"]),o.menuData=o.addButtonsToTree(c,o.structureButtons)})},{immediate:!0,deep:!0}),(i,t)=>{const c=e.resolveComponent("el-checkbox"),s=e.resolveComponent("el-checkbox-group"),d=e.resolveComponent("svg-icon"),v=e.resolveComponent("el-popover"),f=e.resolveComponent("el-tree"),p=e.resolveComponent("el-button"),m=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",w,[e.createVNode(V.ssTable,{index:o.structureId,compName:o.compName,itemData:o.pageDataFiltered,changedContent:o.changedRow,onChange:o.handleItemDataChange,onOnButtonClick:o.clickRowButton},null,8,["index","compName","itemData","changedContent","onChange","onOnButtonClick"]),e.createVNode(m,{modelValue:o.authorizeDialog.show,"onUpdate:modelValue":t[0]||(t[0]=a=>o.authorizeDialog.show=a),width:o.authorizeDialog.width,draggable:o.authorizeDialog.draggable,"before-close":o.closeAuthorizeDialog,class:"role-dialog"},{header:e.withCtx(()=>[e.createElementVNode("div",N,e.toDisplayString(o.authorizeDialog.title),1)]),footer:e.withCtx(()=>[e.createElementVNode("div",y,[e.createVNode(p,{id:"themeBorderButton",onClick:o.closeAuthorizeDialog},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),e.createVNode(p,{id:"themeButton",onClick:o.clickSubmitAuthority},{default:e.withCtx(()=>t[2]||(t[2]=[e.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),default:e.withCtx(()=>[e.createVNode(f,{class:"role-tree",ref_key:"treeRef",ref:x,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:a,data:n})=>[e.createElementVNode("span",{class:"node-text",title:a==null?void 0:a.label},e.toDisplayString(a==null?void 0:a.label),9,b),e.createVNode(s,{modelValue:n.checkedButtons,"onUpdate:modelValue":l=>n.checkedButtons=l,onChange:l=>o.handleNodeBtnChange(l,n),class:"node-buttons"},{default:e.withCtx(()=>{var l;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((l=n.renderButtons)==null?void 0:l.slice(0,2),r=>(e.openBlock(),e.createBlock(c,{key:r.title,label:r.title,value:r.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.title),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]),e.createVNode(v,{title:a==null?void 0:a.label,placement:"right-start"},{reference:e.withCtx(()=>{var l;return[e.createElementVNode("span",D,[e.withDirectives(e.createVNode(d,{name:"treeMore",class:"node-trigger"},null,512),[[e.vShow,((l=n.renderButtons)==null?void 0:l.length)>0]])])]}),default:e.withCtx(()=>[e.createVNode(s,{modelValue:n.checkedButtons,"onUpdate:modelValue":l=>n.checkedButtons=l,onChange:l=>o.handleNodeBtnChange(l,n),class:"node-buttons"},{default:e.withCtx(()=>{var l;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((l=n.renderButtons)==null?void 0:l.slice(2),r=>(e.openBlock(),e.createBlock(c,{key:r.title,label:r.title,value:r.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.title),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1032,["title"])]),_:1},8,["data","onCheckChange"])]),_:1},8,["modelValue","width","draggable","before-close"])])}}}),M=B._export_sfc(S,[["__scopeId","data-v-78a46dd8"]]);exports.default=M;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),V=require("./index-BMU6yJAs.cjs"),h=require("./index.vue_vue_type_style_index_1_lang-D9hEBoWU.cjs"),_=require("./index-BLXMF7Kg.cjs"),B=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),w={class:"routerPage-wrapper"},N={class:"role-dialog-header"},b=["title"],D={title:"更多"},y={class:"dialog-footer"},S=e.defineComponent({__name:"index",setup(T){const g=h.useMenuState(),{menus:C,activeMenuPath:k}=_.storeToRefs(g),o=e.reactive({...h.State$1}),{treeRef:x}=h.State$1;e.onMounted(async()=>{await o.getActivePageStructureId(k.value)});const u=i=>i==null?void 0:i.map(t=>{var c,s,d;return t!=null&&t.childMenus&&((c=t==null?void 0:t.childMenus)==null?void 0:c.length)>0?{...t,childMenus:[],children:u(t==null?void 0:t.childMenus)}:{...t,childMenus:[],path:(s=t==null?void 0:t.path)!=null&&s.startsWith("/")?(d=t==null?void 0:t.path)==null?void 0:d.substring(1):t.path}});return e.watch(()=>C.value,i=>{e.nextTick(()=>{const t=_.cloneDeep(i),c=u(t);o.tempSysMenus=o.handleAddSysMenusButtons(c,"系统维护",["查看"]),o.menuData=o.addButtonsToTree(c,o.structureButtons)})},{immediate:!0,deep:!0}),(i,t)=>{const c=e.resolveComponent("el-checkbox"),s=e.resolveComponent("el-checkbox-group"),d=e.resolveComponent("svg-icon"),v=e.resolveComponent("el-popover"),f=e.resolveComponent("el-tree"),p=e.resolveComponent("el-button"),m=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",w,[e.createVNode(V.ssTable,{index:o.structureId,compName:o.compName,itemData:o.pageDataFiltered,changedContent:o.changedRow,onChange:o.handleItemDataChange,onOnButtonClick:o.clickRowButton},null,8,["index","compName","itemData","changedContent","onChange","onOnButtonClick"]),e.createVNode(m,{modelValue:o.authorizeDialog.show,"onUpdate:modelValue":t[0]||(t[0]=a=>o.authorizeDialog.show=a),width:o.authorizeDialog.width,draggable:o.authorizeDialog.draggable,"before-close":o.closeAuthorizeDialog,class:"role-dialog"},{header:e.withCtx(()=>[e.createElementVNode("div",N,e.toDisplayString(o.authorizeDialog.title),1)]),footer:e.withCtx(()=>[e.createElementVNode("div",y,[e.createVNode(p,{id:"themeBorderButton",onClick:o.closeAuthorizeDialog},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),e.createVNode(p,{id:"themeButton",onClick:o.clickSubmitAuthority},{default:e.withCtx(()=>t[2]||(t[2]=[e.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),default:e.withCtx(()=>[e.createVNode(f,{class:"role-tree",ref_key:"treeRef",ref:x,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:a,data:n})=>[e.createElementVNode("span",{class:"node-text",title:a==null?void 0:a.label},e.toDisplayString(a==null?void 0:a.label),9,b),e.createVNode(s,{modelValue:n.checkedButtons,"onUpdate:modelValue":l=>n.checkedButtons=l,onChange:l=>o.handleNodeBtnChange(l,n),class:"node-buttons"},{default:e.withCtx(()=>{var l;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((l=n.renderButtons)==null?void 0:l.slice(0,2),r=>(e.openBlock(),e.createBlock(c,{key:r.title,label:r.title,value:r.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.title),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]),e.createVNode(v,{title:a==null?void 0:a.label,placement:"right-start"},{reference:e.withCtx(()=>{var l;return[e.createElementVNode("span",D,[e.withDirectives(e.createVNode(d,{name:"treeMore",class:"node-trigger"},null,512),[[e.vShow,((l=n.renderButtons)==null?void 0:l.length)>0]])])]}),default:e.withCtx(()=>[e.createVNode(s,{modelValue:n.checkedButtons,"onUpdate:modelValue":l=>n.checkedButtons=l,onChange:l=>o.handleNodeBtnChange(l,n),class:"node-buttons"},{default:e.withCtx(()=>{var l;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((l=n.renderButtons)==null?void 0:l.slice(2),r=>(e.openBlock(),e.createBlock(c,{key:r.title,label:r.title,value:r.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.title),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1032,["title"])]),_:1},8,["data","onCheckChange"])]),_:1},8,["modelValue","width","draggable","before-close"])])}}}),M=B._export_sfc(S,[["__scopeId","data-v-78a46dd8"]]);exports.default=M;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./index.vue_vue_type_style_index_0_scoped_92477073_lang-BjtUNzWO.cjs"),e=require("vue"),u=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),k=["title"],f={key:0,class:"menu-operate-icon"},h={class:"menu-config-wrap"},_=["onClick"],v={class:"module-dialog-content"};function y(o,l,V,M,N,m){var s;const i=e.resolveComponent("svg-icon"),c=e.resolveComponent("el-popover"),p=e.resolveComponent("ssMenu"),r=e.resolveComponent("el-button"),g=e.resolveComponent("ssDialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(p,{class:"vertical-menu",mode:o.mode,menuList:o.renderMenuList,isCollapse:o.isCollapse,onClickMenu:o.clickMenu,onOpenMenu:o.openMenu,onCloseMenu:o.closeMenu},{title:e.withCtx(({menu:t})=>{var a,d;return[e.createElementVNode("span",{title:t.title,class:"menu-title",style:e.normalizeStyle({marginRight:t!=null&&t.config&&((a=t==null?void 0:t.config)==null?void 0:a.length)>0?"25px":"1px"})},e.toDisplayString(t.title??""),13,k),t!=null&&t.config&&((d=t==null?void 0:t.config)==null?void 0:d.length)>0?(e.openBlock(),e.createElementBlock("span",f,[e.createVNode(c,{title:"",placement:"bottom-start",trigger:"click","popper-class":"menu-operate-popover"},{reference:e.withCtx(()=>[e.createVNode(i,{name:"config"})]),default:e.withCtx(()=>[e.createElementVNode("div",h,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t==null?void 0:t.config,n=>(e.openBlock(),e.createElementBlock("div",{class:"menu-config-item",key:n.id,onClick:w=>o.clickMenuIcon(t,n)},[e.createVNode(i,{name:n==null?void 0:n.operateIcon,style:{width:"15px",height:"15px","margin-right":"8px"}},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(n==null?void 0:n.operateType),1)],8,_))),128))])]),_:2},1024)])):e.createCommentVNode("",!0)]}),_:1},8,["mode","menuList","isCollapse","onClickMenu","onOpenMenu","onCloseMenu"]),((s=o.renderMenuList)==null?void 0:s.length)>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fold-icon",onClick:l[0]||(l[0]=(...t)=>o.handleMenuCollapse&&o.handleMenuCollapse(...t))},[e.createVNode(i,{name:o.isCollapse?"expand":"pack",style:{width:"15px",height:"15px"}},null,8,["name"])])):e.createCommentVNode("",!0),e.createVNode(g,{class:"module-dialog",title:o.dialogInfo.title,visible:o.dialogInfo.show,width:o.dialogInfo.width,onBeforeDestroy:o.beforeDialogDestroy},{default:e.withCtx(()=>[e.createElementVNode("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.dialogRenderComps,t=>(e.openBlock(),e.createElementBlock("div",{key:t.id},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.getComponents((t==null?void 0:t.comp)??"Input")),{itemData:t==null?void 0:t.compData,key:t==null?void 0:t.id,content:(t==null?void 0:t.contents)??[],config:t==null?void 0:t.config,onContentChange:o.handleCompChange},null,40,["itemData","content","config","onContentChange"]))]))),128))])]),footer:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(r,{id:"themeBorderButton",onClick:o.beforeDialogDestroy},{default:e.withCtx(()=>l[1]||(l[1]=[e.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),e.createVNode(r,{id:"themeButton",onClick:o.clickSubmitForm},{default:e.withCtx(()=>l[2]||(l[2]=[e.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])],64)}const B=u._export_sfc(C._sfc_main,[["render",y],["__scopeId","data-v-92477073"]]);exports.default=B;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./index.vue_vue_type_style_index_0_scoped_92477073_lang-BvHnH_PZ.cjs"),e=require("vue"),u=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),k=["title"],f={key:0,class:"menu-operate-icon"},h={class:"menu-config-wrap"},_=["onClick"],v={class:"module-dialog-content"};function y(o,l,V,M,N,m){var s;const i=e.resolveComponent("svg-icon"),c=e.resolveComponent("el-popover"),p=e.resolveComponent("ssMenu"),r=e.resolveComponent("el-button"),g=e.resolveComponent("ssDialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(p,{class:"vertical-menu",mode:o.mode,menuList:o.renderMenuList,isCollapse:o.isCollapse,onClickMenu:o.clickMenu,onOpenMenu:o.openMenu,onCloseMenu:o.closeMenu},{title:e.withCtx(({menu:t})=>{var a,d;return[e.createElementVNode("span",{title:t.title,class:"menu-title",style:e.normalizeStyle({marginRight:t!=null&&t.config&&((a=t==null?void 0:t.config)==null?void 0:a.length)>0?"25px":"1px"})},e.toDisplayString(t.title??""),13,k),t!=null&&t.config&&((d=t==null?void 0:t.config)==null?void 0:d.length)>0?(e.openBlock(),e.createElementBlock("span",f,[e.createVNode(c,{title:"",placement:"bottom-start",trigger:"click","popper-class":"menu-operate-popover"},{reference:e.withCtx(()=>[e.createVNode(i,{name:"config"})]),default:e.withCtx(()=>[e.createElementVNode("div",h,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t==null?void 0:t.config,n=>(e.openBlock(),e.createElementBlock("div",{class:"menu-config-item",key:n.id,onClick:w=>o.clickMenuIcon(t,n)},[e.createVNode(i,{name:n==null?void 0:n.operateIcon,style:{width:"15px",height:"15px","margin-right":"8px"}},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(n==null?void 0:n.operateType),1)],8,_))),128))])]),_:2},1024)])):e.createCommentVNode("",!0)]}),_:1},8,["mode","menuList","isCollapse","onClickMenu","onOpenMenu","onCloseMenu"]),((s=o.renderMenuList)==null?void 0:s.length)>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fold-icon",onClick:l[0]||(l[0]=(...t)=>o.handleMenuCollapse&&o.handleMenuCollapse(...t))},[e.createVNode(i,{name:o.isCollapse?"expand":"pack",style:{width:"15px",height:"15px"}},null,8,["name"])])):e.createCommentVNode("",!0),e.createVNode(g,{class:"module-dialog",title:o.dialogInfo.title,visible:o.dialogInfo.show,width:o.dialogInfo.width,onBeforeDestroy:o.beforeDialogDestroy},{default:e.withCtx(()=>[e.createElementVNode("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.dialogRenderComps,t=>(e.openBlock(),e.createElementBlock("div",{key:t.id},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.getComponents((t==null?void 0:t.comp)??"Input")),{itemData:t==null?void 0:t.compData,key:t==null?void 0:t.id,content:(t==null?void 0:t.contents)??[],config:t==null?void 0:t.config,onContentChange:o.handleCompChange},null,40,["itemData","content","config","onContentChange"]))]))),128))])]),footer:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(r,{id:"themeBorderButton",onClick:o.beforeDialogDestroy},{default:e.withCtx(()=>l[1]||(l[1]=[e.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),e.createVNode(r,{id:"themeButton",onClick:o.clickSubmitForm},{default:e.withCtx(()=>l[2]||(l[2]=[e.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])],64)}const B=u._export_sfc(C._sfc_main,[["render",y],["__scopeId","data-v-92477073"]]);exports.default=B;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),I=require("./index-IqXcl3IO.cjs"),k=require("./threeViewerHost-Biuo1ilS.cjs"),C=require("./index-BLXMF7Kg.cjs"),x=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./index-CBI9x50t.cjs"),S=require("./index-BpPyaNFa.cjs"),V={class:"avatar-model-wrap"},N={key:0},E=e.defineComponent({__name:"index",props:{disabled:{type:Boolean,default:!1},avatarUrl:{type:String,default:""},size:{type:[String,Number],default:"large"},userInfo:{type:Object,default:{}}},emits:["submitImage","deleteImage"],setup(s,{emit:w}){const u=s,i=w,m=e.computed(()=>"http://222.92.178.198:62001"),d=e.ref(""),h=e.ref(""),b=e.ref();e.watch(()=>{var o;return(o=u.userInfo)==null?void 0:o.头像},o=>{h.value=m.value+"/"+o},{immediate:!0});const _=async()=>{if(!(u!=null&&u.disabled))try{const o=await k.downloadAvatarApi({url:d.value});if(o.status!==200)throw new Error(`HTTP error! status: ${o.status}`);const f=new Blob([o.data],{type:o.headers["content-type"]});b.value=f}catch(o){throw new Error(o)}},B=async o=>{var f,g,t,n,c;try{const r=await k.uploadFile(o);((f=r==null?void 0:r.data)==null?void 0:f.code)===200&&(h.value=m.value+"/"+((t=(g=r.data)==null?void 0:g.result)==null?void 0:t.url),d.value=(c=(n=r.data)==null?void 0:n.result)==null?void 0:c.url,i("submitImage",d.value))}catch(r){C.ElMessage.error(r)}},y=async()=>{try{if(!h.value)return}catch(o){C.ElMessage.error(o)}};return(o,f)=>{var g,t;return e.openBlock(),e.createElementBlock("div",V,[e.createVNode(I.ssAvatar,{avatarUrl:h.value,avatarBlob:b.value,size:s.size,onClickAvatar:_,onSubmitImage:B,onDeleteImage:y},{avatarDefault:e.withCtx(()=>{var n,c,r,l;return[e.createTextVNode(e.toDisplayString(((c=(n=s.userInfo)==null?void 0:n.account)==null?void 0:c.charAt(0))||((l=(r=s.userInfo)==null?void 0:r.姓名)==null?void 0:l.charAt(0))||""),1)]}),_:1},8,["avatarUrl","avatarBlob","size"]),s.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",N,e.toDisplayString(((g=s.userInfo)==null?void 0:g.account)||((t=s.userInfo)==null?void 0:t.账号)||"未知"),1))])}}}),T=x._export_sfc(E,[["__scopeId","data-v-882723d5"]]),U=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["clickSignButton","clickSubmitSign","beforeDestroy"],setup(s,{emit:w}){const u=s,i=e.ref({}),m=e.ref([]),d=w,h=t=>{i.value.dialogShow=(t==null?void 0:t.label)==="电子签名",d("clickSignButton",t)},b=()=>{i.value.dialogShow=!1,d("beforeDestroy")},_=e.computed(()=>"http://222.92.178.198:62001"),B=t=>{var a;const n=t.split(","),c=(a=n==null?void 0:n[0])==null?void 0:a.match(/:(.*?);/)[1],r=atob(n[1]);let l=r.length;const v=new Uint8Array(l);for(;l--;)v[l]=r.charCodeAt(l);return new Blob([v],{type:c})},y=async t=>{var n,c,r;try{const l=await k.uploadFile(t);((n=l==null?void 0:l.data)==null?void 0:n.code)===200&&d("clickSubmitSign",(r=(c=l.data)==null?void 0:c.result)==null?void 0:r.url)}catch(l){C.ElMessage.error(l)}},o=e.ref(""),f=t=>{o.value=t,i.value.dialogShow=!1;const n=new FormData,c=B(t);n.append("file",c,"image.png"),y(n)},g=t=>{const n=new FormData;n.append("file",t==null?void 0:t.file),y(n)};return e.watch(()=>u==null?void 0:u.itemData,t=>{var c,r,l,v;o.value="",(c=i.value)!=null&&c.dialogShow&&(i.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]}),i.value=(l=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:l.contents,m.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 c=e.resolveComponent("el-empty"),r=e.resolveComponent("el-image"),l=e.resolveComponent("el-button"),v=e.resolveComponent("el-upload");return e.openBlock(),e.createBlock(A.Signature,{signPadInfo:i.value,onBeforeDestroy:b,onClickSubmitSign:f},{signatureRender:e.withCtx(()=>{var a,p;return[e.createElementVNode("div",{class:"signature-render",style:e.normalizeStyle({width:`${(a=i.value)==null?void 0:a.signPadWidth}%`})},[e.createVNode(r,{src:o.value?o.value:_.value+"/"+((p=s.userInfo)==null?void 0:p.签名),fit:"contain"},{error:e.withCtx(()=>[e.createVNode(c,{"image-size":60,description:" "},{image:e.withCtx(()=>[e.createVNode(S.SvgIcon,{name:"emptyImg"})]),_:1})]),_:1},8,["src"])],4)]}),signatureTypes:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,a=>{var p;return e.openBlock(),e.createElementBlock("div",{key:a.label,class:"signature-button"},[(p=a.label)!=null&&p.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(l,{disabled:a.disabled,id:"themeButton"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(S.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled"])]),_:2},1536)):(e.openBlock(),e.createBlock(l,{key:1,id:"themeButton",disabled:a.disabled,onClick:$=>h(a)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(S.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled","onClick"]))])}),128))]),_:1},8,["signPadInfo"])}}}),q=x._export_sfc(U,[["__scopeId","data-v-ce5a2314"]]);exports.ssAvatar=T;exports.ssSignature=q;
1
+ "use strict";const e=require("vue"),I=require("./index-IqXcl3IO.cjs"),k=require("./threeViewerHost-BeOR7ANr.cjs"),C=require("./index-BLXMF7Kg.cjs"),x=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./index-dpiCdUIf.cjs"),S=require("./index-BpPyaNFa.cjs"),V={class:"avatar-model-wrap"},N={key:0},E=e.defineComponent({__name:"index",props:{disabled:{type:Boolean,default:!1},avatarUrl:{type:String,default:""},size:{type:[String,Number],default:"large"},userInfo:{type:Object,default:{}}},emits:["submitImage","deleteImage"],setup(s,{emit:w}){const u=s,i=w,m=e.computed(()=>"http://222.92.178.198:62001"),d=e.ref(""),h=e.ref(""),b=e.ref();e.watch(()=>{var o;return(o=u.userInfo)==null?void 0:o.头像},o=>{h.value=m.value+"/"+o},{immediate:!0});const _=async()=>{if(!(u!=null&&u.disabled))try{const o=await k.downloadAvatarApi({url:d.value});if(o.status!==200)throw new Error(`HTTP error! status: ${o.status}`);const f=new Blob([o.data],{type:o.headers["content-type"]});b.value=f}catch(o){throw new Error(o)}},B=async o=>{var f,g,t,n,c;try{const r=await k.uploadFile(o);((f=r==null?void 0:r.data)==null?void 0:f.code)===200&&(h.value=m.value+"/"+((t=(g=r.data)==null?void 0:g.result)==null?void 0:t.url),d.value=(c=(n=r.data)==null?void 0:n.result)==null?void 0:c.url,i("submitImage",d.value))}catch(r){C.ElMessage.error(r)}},y=async()=>{try{if(!h.value)return}catch(o){C.ElMessage.error(o)}};return(o,f)=>{var g,t;return e.openBlock(),e.createElementBlock("div",V,[e.createVNode(I.ssAvatar,{avatarUrl:h.value,avatarBlob:b.value,size:s.size,onClickAvatar:_,onSubmitImage:B,onDeleteImage:y},{avatarDefault:e.withCtx(()=>{var n,c,r,l;return[e.createTextVNode(e.toDisplayString(((c=(n=s.userInfo)==null?void 0:n.account)==null?void 0:c.charAt(0))||((l=(r=s.userInfo)==null?void 0:r.姓名)==null?void 0:l.charAt(0))||""),1)]}),_:1},8,["avatarUrl","avatarBlob","size"]),s.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",N,e.toDisplayString(((g=s.userInfo)==null?void 0:g.account)||((t=s.userInfo)==null?void 0:t.账号)||"未知"),1))])}}}),T=x._export_sfc(E,[["__scopeId","data-v-882723d5"]]),U=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["clickSignButton","clickSubmitSign","beforeDestroy"],setup(s,{emit:w}){const u=s,i=e.ref({}),m=e.ref([]),d=w,h=t=>{i.value.dialogShow=(t==null?void 0:t.label)==="电子签名",d("clickSignButton",t)},b=()=>{i.value.dialogShow=!1,d("beforeDestroy")},_=e.computed(()=>"http://222.92.178.198:62001"),B=t=>{var a;const n=t.split(","),c=(a=n==null?void 0:n[0])==null?void 0:a.match(/:(.*?);/)[1],r=atob(n[1]);let l=r.length;const v=new Uint8Array(l);for(;l--;)v[l]=r.charCodeAt(l);return new Blob([v],{type:c})},y=async t=>{var n,c,r;try{const l=await k.uploadFile(t);((n=l==null?void 0:l.data)==null?void 0:n.code)===200&&d("clickSubmitSign",(r=(c=l.data)==null?void 0:c.result)==null?void 0:r.url)}catch(l){C.ElMessage.error(l)}},o=e.ref(""),f=t=>{o.value=t,i.value.dialogShow=!1;const n=new FormData,c=B(t);n.append("file",c,"image.png"),y(n)},g=t=>{const n=new FormData;n.append("file",t==null?void 0:t.file),y(n)};return e.watch(()=>u==null?void 0:u.itemData,t=>{var c,r,l,v;o.value="",(c=i.value)!=null&&c.dialogShow&&(i.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]}),i.value=(l=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:l.contents,m.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 c=e.resolveComponent("el-empty"),r=e.resolveComponent("el-image"),l=e.resolveComponent("el-button"),v=e.resolveComponent("el-upload");return e.openBlock(),e.createBlock(A.Signature,{signPadInfo:i.value,onBeforeDestroy:b,onClickSubmitSign:f},{signatureRender:e.withCtx(()=>{var a,p;return[e.createElementVNode("div",{class:"signature-render",style:e.normalizeStyle({width:`${(a=i.value)==null?void 0:a.signPadWidth}%`})},[e.createVNode(r,{src:o.value?o.value:_.value+"/"+((p=s.userInfo)==null?void 0:p.签名),fit:"contain"},{error:e.withCtx(()=>[e.createVNode(c,{"image-size":60,description:" "},{image:e.withCtx(()=>[e.createVNode(S.SvgIcon,{name:"emptyImg"})]),_:1})]),_:1},8,["src"])],4)]}),signatureTypes:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,a=>{var p;return e.openBlock(),e.createElementBlock("div",{key:a.label,class:"signature-button"},[(p=a.label)!=null&&p.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(l,{disabled:a.disabled,id:"themeButton"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(S.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled"])]),_:2},1536)):(e.openBlock(),e.createBlock(l,{key:1,id:"themeButton",disabled:a.disabled,onClick:$=>h(a)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(S.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled","onClick"]))])}),128))]),_:1},8,["signPadInfo"])}}}),q=x._export_sfc(U,[["__scopeId","data-v-ce5a2314"]]);exports.ssAvatar=T;exports.ssSignature=q;