ss-component-new 1.1.982 → 1.1.983
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{animationData-DKgx2QcP.js → animationData-CDm-N_-i.js} +3 -3
- package/dist/{animationData-C4Kk5_Hm.cjs → animationData-Gy_Dy6KR.cjs} +1 -1
- package/dist/{index-BlmwAnvd.js → index-9KhFKbxK.js} +2 -2
- package/dist/{index-CgPxE5Po.js → index-B-gENHXS.js} +1 -1
- package/dist/{index-CZMo_9Vo.cjs → index-B2jKmb40.cjs} +1 -1
- package/dist/{index-iunJH3Vt.js → index-B7J80oRH.js} +5 -5
- package/dist/{index-CsHF6o7F.cjs → index-BDZtznsY.cjs} +1 -1
- package/dist/{index-BYjeqrLn.cjs → index-BECQdyqL.cjs} +1 -1
- package/dist/{index-Br3HHgPp.cjs → index-BH5ZK9pj.cjs} +1 -1
- package/dist/{index-DTZ_lgIV.cjs → index-BNPh6iWy.cjs} +1 -1
- package/dist/{index-BiTM9y2d.cjs → index-BPIVorsD.cjs} +1 -1
- package/dist/{index-bFySKNUo.js → index-BRSCvU-Q.js} +2 -2
- package/dist/{index-CfbVQTfc.js → index-BSClLqxo.js} +1 -1
- package/dist/{index-BxwFr2Fg.cjs → index-BWrogChb.cjs} +1 -1
- package/dist/{index-B4yVe2f4.js → index-BaCXGf_N.js} +1351 -1325
- package/dist/{index-B7BV3vLp.js → index-Bi13IlMW.js} +3 -3
- package/dist/{index-DdC6JDF4.js → index-BnAdbVZ1.js} +2 -2
- package/dist/{index-Cyp3d8bv.cjs → index-BoYcji7v.cjs} +1 -1
- package/dist/{index-BF3s5-Mz.js → index-Bs1d-wyF.js} +5 -5
- package/dist/{index-yRB_ewdW.cjs → index-BsAwgEtQ.cjs} +1 -1
- package/dist/{index-B5j6h1Fw.cjs → index-ByZiqivF.cjs} +1 -1
- package/dist/{index-CBtVvOwx.js → index-C6-fZ074.js} +9 -9
- package/dist/{index-BCkhBr56.js → index-CGdmHhzq.js} +1 -1
- package/dist/index-CLPJKUqa.cjs +1 -0
- package/dist/{index-BiOcF-Xj.cjs → index-CMMEkNDD.cjs} +1 -1
- package/dist/{index-0l4UjQuI.cjs → index-CTTOFc7a.cjs} +1 -1
- package/dist/{index-cA_wgydl.cjs → index-CXPMET0e.cjs} +1 -1
- package/dist/{index-az0nJATL.cjs → index-CYw9omJj.cjs} +1 -1
- package/dist/index-CbDtvsnK.js +7175 -0
- package/dist/{index-UPOTTN0W.js → index-CbhD1xpN.js} +3 -3
- package/dist/{index-BoZyaFb1.js → index-ChiQG0jb.js} +1 -1
- package/dist/{index-BGWIqOuS.js → index-CiaPqfP2.js} +2 -2
- package/dist/{index-DhXgDqZx.js → index-Cpy4OzGT.js} +1 -1
- package/dist/{index-BD4N_hGG.cjs → index-CqQnae-0.cjs} +1 -1
- package/dist/{index-BQUGuTTu.js → index-Csbmr-Fz.js} +181 -180
- package/dist/{index-BGT1gG3c.js → index-Cx3xypMe.js} +2 -2
- package/dist/{index-Bq75nmsa.js → index-D0l9a81c.js} +4 -4
- package/dist/{index-D8XNewLo.js → index-D3Z5Sl1m.js} +1 -1
- package/dist/{index-DSsB9GiE.cjs → index-DDjm_4vM.cjs} +1 -1
- package/dist/{index-CdxnasGm.cjs → index-DIJtkDlv.cjs} +1 -1
- package/dist/{index-BF4gMvzT.cjs → index-DWcarhFQ.cjs} +1 -1
- package/dist/{index-CxodUT7f.cjs → index-DZF9Q0MP.cjs} +1 -1
- package/dist/{index-DXpgTJjT.cjs → index-D_Loq0hP.cjs} +1 -1
- package/dist/{index-Bzhl6bLB.cjs → index-D_siZAyW.cjs} +1 -1
- package/dist/{index-l-yGoXgV.cjs → index-DaGHLdZ1.cjs} +1 -1
- package/dist/{index-DECDC-i_.js → index-DcgoXWJ_.js} +1 -1
- package/dist/{index-CaSuI0zx.js → index-DkkZcTw2.js} +1 -1
- package/dist/{index-BqvdAg7Q.js → index-Dox3SZ3R.js} +1 -1
- package/dist/{index-D0vOVctl.js → index-MeSOaBTm.js} +923 -916
- package/dist/{index-CyIldmIS.cjs → index-MrN3V12h.cjs} +1 -1
- package/dist/{index-BCiHKuRP.js → index-Npp5r06D.js} +2 -2
- package/dist/{index-DoI4dBq7.cjs → index-PURJsJIC.cjs} +13 -13
- package/dist/{index-DWx_GZVJ.cjs → index-QneRmtXM.cjs} +1 -1
- package/dist/{index-C9oHyTJ6.js → index-SPjEDLHm.js} +1 -1
- package/dist/{index-burohILE.js → index-ZWqiaYvN.js} +4 -4
- package/dist/{index-BvZWoXhw.cjs → index-_5ePMtCK.cjs} +1 -1
- package/dist/{index-dymcR-3i.js → index-eDqM2b2-.js} +1 -1
- package/dist/{index-B6nJuXEs.js → index-f-OFxOkn.js} +2 -2
- package/dist/index-f2o3unj8.cjs +1 -0
- package/dist/{index-C-LG5VgH.cjs → index-rHAyDfv5.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CpASHKH2.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BO3wwmpU.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-0OIw4NOS.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Cml-X3GR.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-OB3jB52k.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-CrD4CxkJ.js} +5 -5
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-C1oMYcpF.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-DG22A7g-.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-YTsJ1EDG.cjs → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-B2a7Em2O.cjs} +9 -9
- package/dist/{index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-a6qZhwEL.js → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-CXJwN3-b.js} +5253 -5241
- package/dist/{index.vue_vue_type_style_index_1_lang-BY0lRtz6.js → index.vue_vue_type_style_index_1_lang-BnmdrKxU.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_1_lang-EGbputBx.js → index.vue_vue_type_style_index_1_lang-Crjx9LYd.js} +555 -521
- package/dist/{index.vue_vue_type_style_index_1_lang-ChUtOfY4.cjs → index.vue_vue_type_style_index_1_lang-kU6jXBO8.cjs} +8 -8
- package/dist/{index.vue_vue_type_style_index_1_lang-DUsDMxT4.cjs → index.vue_vue_type_style_index_1_lang-n2sEMoFG.cjs} +1 -1
- package/dist/{main-CSXntsMy.js → main-CTLobEMn.js} +3 -3
- package/dist/{main-DXsJ6x7Y.cjs → main-eGQKdrkn.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +10 -10
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +11 -11
- package/dist/{threeModel-CBL8gFCH.cjs → threeModel-6gxFRMzC.cjs} +1 -1
- package/dist/{threeModel-GiKDfcQq.js → threeModel-DrNagTdx.js} +2 -2
- package/dist/{threeSceneView-plqRAheC.js → threeSceneView-CI03tyCL.js} +8 -8
- package/dist/{threeSceneView-BiH44ktw.cjs → threeSceneView-myJxA0Vw.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-DCElHJBK.js → threeSceneViewForCPMPIP-CEg5Ym99.js} +6 -6
- package/dist/{threeSceneViewForCPMPIP-DsEG7cNv.cjs → threeSceneViewForCPMPIP-DhTeO3LU.cjs} +1 -1
- package/dist/{threeViewerHost-xjEHOlJs.cjs → threeViewerHost-C3_jRQdb.cjs} +1 -1
- package/dist/{threeViewerHost-BYtRmlKC.js → threeViewerHost-DbTan4Fv.js} +3 -3
- package/dist/{useRayCaster-DtAoA0a2.cjs → useRayCaster-B5HITFvD.cjs} +1 -1
- package/dist/{useRayCaster-C-D6CG9A.js → useRayCaster-CwahoBnW.js} +1 -1
- package/package.json +1 -1
- package/dist/index-CM2LMijJ.cjs +0 -1
- package/dist/index-CauT64yx.cjs +0 -1
- package/dist/index-DQe-QmhS.js +0 -7162
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as C, j as x } from "./index.vue_vue_type_style_index_1_lang-
|
|
2
|
-
import { r as K, a as S } from "./index.vue_vue_type_style_index_1_lang-
|
|
3
|
-
import { d as I } from "./threeViewerHost-
|
|
1
|
+
import { i as C, j as x } from "./index.vue_vue_type_style_index_1_lang-Crjx9LYd.js";
|
|
2
|
+
import { r as K, a as S } from "./index.vue_vue_type_style_index_1_lang-BnmdrKxU.js";
|
|
3
|
+
import { d as I } from "./threeViewerHost-DbTan4Fv.js";
|
|
4
4
|
import { c as P } from "./index-Qkud_fqh.js";
|
|
5
5
|
function N(r) {
|
|
6
6
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const y=require("./index.vue_vue_type_style_index_1_lang-
|
|
1
|
+
"use strict";const y=require("./index.vue_vue_type_style_index_1_lang-kU6jXBO8.cjs"),I=require("./index.vue_vue_type_style_index_1_lang-n2sEMoFG.cjs"),U=require("./threeViewerHost-C3_jRQdb.cjs"),T=require("./index-DuQHeRpA.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,{method:"GET",cache:"no-store"});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 U.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=I.readSync(f,{type:"array"}),F=u.Sheets[u.SheetNames[0]],E=I.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 $=["夹持长度"],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=>{$.includes(a==null?void 0:a.key)&&(g[a.key]=a.value)}))}))});const k=g.夹持长度;console.log("夹持长度",k,g);const x=Number(k),w={},b=await y.getItemData(`${r}/仿真动画生成`,i,"");b==null||b.forEach(e=>{var s,o,l,a,_,R;if((e==null?void 0:e.comp)==="Table"){let L=[],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=(R=(_=(a=e==null?void 0:e.compData)==null?void 0:a.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:_.contents)==null?void 0:R.map(t=>(t=t==null?void 0:t.filter(p=>!(p!=null&&p.id)),t));C==null||C.forEach(t=>{L.push(y.getValueToObjectValue(t,D==null?void 0:D.filter(p=>p!=="操作")))}),w[e.name]=L,w[e.name+"Content"]=e}});const A=T.cloneDeep(w);return c={initialPipeLength:F,pipeRadius:E,clampLength:x,animationData:A},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 $=["夹持位置"],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=>{$.includes(a==null?void 0:a.key)&&(g[a.key]=a.value)}))}))});const k=g.夹持位置;console.log("夹持长度",k,g);const x=Number(k),w={},b=await y.getItemData(`${r}/仿真动画生成`,i,"");b==null||b.forEach(e=>{var s,o,l,a,_,R;if((e==null?void 0:e.comp)==="Table"){let L=[],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=(R=(_=(a=e==null?void 0:e.compData)==null?void 0:a.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:_.contents)==null?void 0:R.map(t=>(t=t==null?void 0:t.filter(p=>!(p!=null&&p.id)),t));C==null||C.forEach(t=>{L.push(y.getValueToObjectValue(t,D==null?void 0:D.filter(p=>p!=="操作")))}),w[e.name]=L,w[e.name+"Content"]=e}});const A=T.cloneDeep(w);return c={initialPipeLength:F,pipeRadius:E,clampLength:x,animationData:A},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,9 +1,9 @@
|
|
|
1
1
|
import { createElementBlock as D, openBlock as O, createElementVNode as b, renderSlot as B, defineComponent as X, ref as U, resolveComponent as S, createVNode as y, withCtx as f, reactive as z, watch as Y, unref as L, toDisplayString as N, createTextVNode as R } from "vue";
|
|
2
2
|
import { _ as J } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import { d as ie, r as de, g as ue, c as pe, b as fe, e as ye, f as ge, h as Ae } from "./index.vue_vue_type_style_index_1_lang-
|
|
3
|
+
import { d as ie, r as de, g as ue, c as pe, b as fe, e as ye, f as ge, h as Ae } from "./index.vue_vue_type_style_index_1_lang-Crjx9LYd.js";
|
|
4
4
|
import { useRouter as be } from "vue-router";
|
|
5
5
|
import { a as me, u as he, p as ve, s as _e, E, b as we, g as Q } from "./index-Qkud_fqh.js";
|
|
6
|
-
import { v as Ce } from "./index-
|
|
6
|
+
import { v as Ce } from "./index-Cpy4OzGT.js";
|
|
7
7
|
const Ie = {}, ke = { class: "left-wrap" }, Se = { class: "left-bg" };
|
|
8
8
|
function Ee(I, K) {
|
|
9
9
|
return O(), D("div", ke, [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as k, ref as C, reactive as T, resolveComponent as m, createElementBlock as x, openBlock as B, createVNode as u, withCtx as d, createElementVNode as l, createTextVNode as w, toDisplayString as z, nextTick as N, Fragment as q, withDirectives as H, renderSlot as $, vShow as M } from "vue";
|
|
2
|
-
import { C as V } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
2
|
+
import { C as V } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Cml-X3GR.js";
|
|
3
3
|
import { F as X, U as J, ai as G, y as U, z as c, ah as I, P as g } from "./index-Qkud_fqh.js";
|
|
4
4
|
import { _ as E } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const K = "ElUpload";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-f2o3unj8.cjs"),o=require("./index-CXPMET0e.cjs"),n=require("./index.vue_vue_type_style_index_1_lang-kU6jXBO8.cjs"),c=require("./index-DuQHeRpA.cjs"),i=e.defineComponent({__name:"index",setup(s){const t=e.reactive({...o.State}),a=n.useMenuState(),{activeMenuPath:r}=c.storeToRefs(a);return e.onMounted(async()=>{t.structureId=await n.getActivePageStructureId(r.value)}),(d,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(u.ssTable,{itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=i;
|
|
@@ -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 g, createVNode as o, unref as n, toDisplayString as r, createBlock as A } from "vue";
|
|
2
|
-
import { S as I, t as x } from "./index-
|
|
3
|
-
import { s as w, a as L } from "./index-
|
|
2
|
+
import { S as I, t as x } from "./index-ChiQG0jb.js";
|
|
3
|
+
import { s as w, a as L } from "./index-CbhD1xpN.js";
|
|
4
4
|
import "./index-BHtNKL1L.js";
|
|
5
|
-
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
6
|
-
import { d as E } from "./index-
|
|
7
|
-
import "./index.vue_vue_type_style_index_1_lang-
|
|
5
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Cml-X3GR.js";
|
|
6
|
+
import { d as E } from "./index-BaCXGf_N.js";
|
|
7
|
+
import "./index.vue_vue_type_style_index_1_lang-Crjx9LYd.js";
|
|
8
8
|
import { u as N, s as U } from "./index-Qkud_fqh.js";
|
|
9
9
|
import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
const z = { class: "personal-wrapper" }, F = { class: "personal-box left" }, H = { class: "base-avatar" }, K = { class: "center-avatar" }, M = { class: "base-info" }, R = { class: "base-signature" }, j = { class: "personal-box right" }, q = /* @__PURE__ */ C({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),u=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),u=require("./index-f2o3unj8.cjs"),n=require("./index.vue_vue_type_style_index_1_lang-kU6jXBO8.cjs"),a=require("./index-DuQHeRpA.cjs"),s={class:"routerPage-wrapper"},i=t.defineComponent({__name:"index",setup(d){const o=n.useMenuState(),{activeMenuPath:c}=a.storeToRefs(o),r=a.useLoginState(),e=t.reactive({...n.State});return t.onMounted(async()=>{r.getModelSecretAsync(),e.structureId=await n.getActivePageStructureId(c.value)}),(l,_)=>(t.openBlock(),t.createElementBlock("div",s,[t.createVNode(u.ssTable,{index:e.structureId,compName:e.compName,itemData:e.pageData,changedContent:e.changedRow,onChange:e.handleItemDataChange,onOnButtonClick:e.clickRowButton},null,8,["index","compName","itemData","changedContent","onChange","onOnButtonClick"])]))}});exports.default=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),I=require("./index-
|
|
1
|
+
"use strict";const e=require("vue"),I=require("./index-DDjm_4vM.cjs"),k=require("./threeViewerHost-C3_jRQdb.cjs"),C=require("./index-DuQHeRpA.cjs"),x=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./index-PURJsJIC.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:62009"),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:62009"),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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BO3wwmpU.cjs");const n=require("./index.vue_vue_type_style_index_1_lang-kU6jXBO8.cjs"),o=require("./index-DuQHeRpA.cjs"),u=require("./index-f2o3unj8.cjs"),c=require("./index-D_Loq0hP.cjs"),s={class:"role-wrapper"},i=e.defineComponent({__name:"index",setup(d){const t=e.reactive({...c.State}),a=n.useMenuState(),{activeMenuPath:r}=o.storeToRefs(a);return e.onMounted(async()=>{t.structureId=await n.getActivePageStructureId(r.value)}),(_,l)=>(e.openBlock(),e.createElementBlock("div",s,[e.createVNode(u.ssTable,{itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=i;
|