ss-component-new 1.2.169 → 1.2.171
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/{MTLLoader-B4JVFXyL.cjs → MTLLoader-CZuM102a.cjs} +1 -1
- package/dist/{MTLLoader-CPSDHz39.js → MTLLoader-iFutuLGP.js} +1 -1
- package/dist/{OrbitControls-VNfJrx6k.cjs → OrbitControls-BkcanIiq.cjs} +1 -1
- package/dist/{OrbitControls-DwEkcGoo.js → OrbitControls-jXngfgi9.js} +1 -1
- package/dist/{URDFLoader-D7pm4Ixv.cjs → URDFLoader-Da-U-aAy.cjs} +1 -1
- package/dist/{URDFLoader-CtARJEbJ.js → URDFLoader-_rWQrCW1.js} +2 -2
- package/dist/{animationData-eMftQ0Va.cjs → animationData-BcYW7WoT.cjs} +1 -1
- package/dist/{animationData-Dd-B9Dwt.js → animationData-BlMg8YJ2.js} +1 -1
- package/dist/{array-C_fzT_TX.cjs → array-SAjNjWUW.cjs} +1 -1
- package/dist/{array-C2qI1BZy.js → array-w9gkmTnE.js} +1 -1
- package/dist/{iconfont-DcFIeJZ_.cjs → iconfont-BSfwK1Y_.cjs} +1 -1
- package/dist/{iconfont-C_B_ZVBI.js → iconfont-DPdAGL6h.js} +2 -2
- package/dist/{index-Dj4m5P-u.cjs → index-0wp283iw.cjs} +1 -1
- package/dist/{index-hTHHGhtm.js → index-B-pMaCrc.js} +1 -1
- package/dist/{index-DZZ7ta48.cjs → index-B4UOrBw2.cjs} +1 -1
- package/dist/{index-C79EsC-G.js → index-B5IhrBhW.js} +4010 -3975
- package/dist/{index-DAXE8dlB.js → index-BGBZpUqE.js} +2 -2
- package/dist/{index-DmINjLIK.cjs → index-BSN84rrY.cjs} +1 -1
- package/dist/{index-CoRFlw5D.js → index-BXDNwNgJ.js} +2 -2
- package/dist/{index-C6rSzODn.cjs → index-BXIN9rS9.cjs} +1 -1
- package/dist/{index--mAvQlgv.cjs → index-BZzVq8Ei.cjs} +1 -1
- package/dist/{index-BD8RQN3x.js → index-BhP9dYJ4.js} +1 -1
- package/dist/{index-Cc0bLetW.js → index-BorGtTuS.js} +4 -4
- package/dist/{index-Btkotlwq.js → index-Bp--5Ka5.js} +1 -1
- package/dist/{index-MFn22fGy.js → index-By-0qgfp.js} +1 -1
- package/dist/{index-DwzLPE69.cjs → index-C1OHKyEc.cjs} +1 -1
- package/dist/{index-2rz_KGGr.cjs → index-C9guPO6g.cjs} +1 -1
- package/dist/{index-Cwu8bsdM.cjs → index-CQ4AXUzs.cjs} +1 -1
- package/dist/{index-CZCN8Fn4.js → index-CRF434MF.js} +3 -3
- package/dist/{index-YzuL4XVC.cjs → index-CXSnBKqt.cjs} +1 -1
- package/dist/{index-hsGPaXt-.js → index-ChvKdyre.js} +1 -1
- package/dist/{index-OOKLSSsR.cjs → index-CiXggSyj.cjs} +1 -1
- package/dist/{index-CAXl56Gi.js → index-CidlKKPL.js} +1 -1
- package/dist/{index-m387sSh2.cjs → index-CkdgMtwM.cjs} +1 -1
- package/dist/{index-Baij8ijY.js → index-CwwRxMOU.js} +16 -16
- package/dist/{index-iV7h190r.cjs → index-D-o1Gq-L.cjs} +1 -1
- package/dist/{index-CEWKNFIY.cjs → index-D09UAi28.cjs} +1 -1
- package/dist/index-D8aMUq7Q.cjs +1 -0
- package/dist/{index-23QD5myA.js → index-DRGR-5e1.js} +361 -353
- package/dist/{index-BF6ehS1Y.js → index-DRxjfgei.js} +1 -1
- package/dist/{index-D07qGIik.cjs → index-DV5aO3Kf.cjs} +1 -1
- package/dist/{index-DL34KSd3.js → index-DV9QdbkV.js} +1 -1
- package/dist/{index-C2WTaEGg.cjs → index-DZdJb7eg.cjs} +1 -1
- package/dist/{index-ZdfXGXbF.js → index-Dcz3FiPM.js} +1 -1
- package/dist/{index-DCQ4jYUy.cjs → index-DdUT3Ahq.cjs} +1 -1
- package/dist/{index-CV8EVeG9.js → index-DoJQMmN3.js} +4181 -4209
- package/dist/{index-BrS0cuwc.cjs → index-DrzTG2HT.cjs} +13 -13
- package/dist/index-Dukt9LiG.cjs +1 -0
- package/dist/{index-B2QVWrF3.js → index-Dw85AkWo.js} +7 -7
- package/dist/{index-DeG1qGel.cjs → index-DwyAhIB3.cjs} +1 -1
- package/dist/{index-BNGGkdcr.js → index-EYkapDy0.js} +1 -1
- package/dist/{index-DlvKJ2__.js → index-GY_6-UCt.js} +1 -1
- package/dist/{index-Cgv0M5b1.js → index-_zZxSBTD.js} +3 -3
- package/dist/{index-BfZn-wlk.js → index-h45nOnZZ.js} +4 -4
- package/dist/{index-Dp4H6yMv.cjs → index-k7rXtZZz.cjs} +1 -1
- package/dist/{index-BPhZPKKk.cjs → index-uQ_k0o0k.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Cz7dKpL6.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DfRbKmA6.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DOvxH4a7.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Dk930NXK.js} +7 -7
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-XSGMtHhq.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C6LBzSoE.js} +18998 -18900
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Rm3VGf5k.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-IgS0VWEH.cjs} +255 -255
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-BLZBFmtz.js → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-DZ15BQ8v.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-BajTWmSa.cjs → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-WvE8m5TV.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-Db3dteRF.cjs → index.vue_vue_type_style_index_1_lang-CCu4iGOg.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-BDbwhaRc.js → index.vue_vue_type_style_index_1_lang-CJJ-gyCh.js} +3 -3
- package/dist/{main-18z7L03Q.cjs → main-BUK9aCWU.cjs} +1 -1
- package/dist/{main-CqflXNUz.js → main-DMewc_7a.js} +3 -3
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-BZtlMHWR.js → threeModel-4y7nctHR.js} +4 -4
- package/dist/{threeModel-BB4W24GG.cjs → threeModel-DlFjA3FG.cjs} +1 -1
- package/dist/{threePreview-CyesqtAW.js → threePreview-BupIEMRQ.js} +3 -3
- package/dist/{threePreview-BBrQNzoA.cjs → threePreview-DiNcUGLN.cjs} +1 -1
- package/dist/{threeSceneView-DIebB1Aq.cjs → threeSceneView-C825Nu6k.cjs} +1 -1
- package/dist/{threeSceneView-RmuQNRc-.js → threeSceneView-tePAWdW9.js} +8 -8
- package/dist/{threeSceneViewForCPMPIP-DZ6r52WE.js → threeSceneViewForCPMPIP-BhNaEH2b.js} +7 -7
- package/dist/{threeSceneViewForCPMPIP-DXcGwzzW.cjs → threeSceneViewForCPMPIP-sKpzXTQi.cjs} +1 -1
- package/dist/{threeTrackPathView-CidkAU-w.cjs → threeTrackPathView-BZsp-nHy.cjs} +1 -1
- package/dist/{threeTrackPathView-C0Ju0rPi.js → threeTrackPathView-DFhWSSIb.js} +3 -3
- package/dist/{threeViewerHost-D_k2Dtrq.cjs → threeViewerHost-BwEscl4_.cjs} +1 -1
- package/dist/{threeViewerHost-DnCDylmd.js → threeViewerHost-D4hEvJ91.js} +2 -2
- package/dist/{urdfTree-CSqG0RnY.js → urdfTree-D4W479hk.js} +1 -1
- package/dist/{urdfTree-B4VN4PHS.cjs → urdfTree-Y1bNuQK4.cjs} +1 -1
- package/dist/{workpieceTreePanel-WJgMNT5u.cjs → workpieceTreePanel-BCTmQ6ui.cjs} +1 -1
- package/dist/{workpieceTreePanel-GqNF9y61.js → workpieceTreePanel-BmPgILps.js} +4 -4
- package/package.json +1 -1
- package/dist/index-CgF-Rerf.cjs +0 -1
- package/dist/index-DiH_zzfO.cjs +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { computed as v, watch as u, onMounted as S, onUnmounted as B, resolveComponent as I, createElementBlock as D, openBlock as K, createVNode as p } from "vue";
|
|
2
|
-
import "./index-
|
|
2
|
+
import "./index-DoJQMmN3.js";
|
|
3
3
|
import { u as T, p as j, s as x } from "./index-DIUrwul5.js";
|
|
4
|
-
import "./array-
|
|
4
|
+
import "./array-w9gkmTnE.js";
|
|
5
5
|
import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
7
|
-
import "./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-
|
|
8
|
-
import "./index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-
|
|
6
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C6LBzSoE.js";
|
|
7
|
+
import "./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-DZ15BQ8v.js";
|
|
8
|
+
import "./index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Dk930NXK.js";
|
|
9
9
|
import "./index-BHtNKL1L.js";
|
|
10
|
-
import "./index.vue_vue_type_style_index_1_lang-
|
|
10
|
+
import "./index.vue_vue_type_style_index_1_lang-CJJ-gyCh.js";
|
|
11
11
|
import "./index-_lg-jrRI.js";
|
|
12
12
|
import "./index-AIq5wzuR.js";
|
|
13
13
|
import "vue-router";
|
|
14
|
-
import "./index-
|
|
14
|
+
import "./index-CRF434MF.js";
|
|
15
15
|
/* empty css */
|
|
16
16
|
import "./index-gvHJ-SKY.js";
|
|
17
17
|
const L = {
|
|
@@ -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-D8aMUq7Q.cjs"),n=require("./index-DOCHgBta.cjs"),a=require("./index-C8qRkCgn.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,g)=>(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,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
2
|
import { S as m } from "./index-62PHNV7A.js";
|
|
3
|
-
import { s as _ } from "./index-
|
|
3
|
+
import { s as _ } from "./index-DRGR-5e1.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,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as z, reactive as R, onMounted as T, watch as A, nextTick as U, resolveComponent as i, createElementBlock as k, openBlock as u, createVNode as c, withCtx as l, createElementVNode as _, toDisplayString as g, Fragment as v, renderList as B, createBlock as b, createTextVNode as f, withDirectives as I, vShow as P } from "vue";
|
|
2
|
-
import { s as E } from "./index-
|
|
2
|
+
import { s as E } from "./index-DRGR-5e1.js";
|
|
3
3
|
import { u as F, ah as x } from "./index-AIq5wzuR.js";
|
|
4
4
|
import { s as O, c as H } from "./index-DIUrwul5.js";
|
|
5
5
|
import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
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
2
|
import { S as I, t as x } from "./index-_lg-jrRI.js";
|
|
3
|
-
import { s as w, a as L } from "./index-
|
|
3
|
+
import { s as w, a as L } from "./index-CRF434MF.js";
|
|
4
4
|
import "./index-BHtNKL1L.js";
|
|
5
|
-
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
6
|
-
import { h as E } from "./index-
|
|
5
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C6LBzSoE.js";
|
|
6
|
+
import { h as E } from "./index-B5IhrBhW.js";
|
|
7
7
|
import { u as N, s as U } from "./index-DIUrwul5.js";
|
|
8
8
|
import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
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,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as C, reactive as k, ref as v, onMounted as D, nextTick as b, resolveComponent as i, resolveDirective as T, createElementBlock as g, openBlock as u, createVNode as t, withCtx as n, withDirectives as w, createElementVNode as p, createTextVNode as f } from "vue";
|
|
2
|
-
import { S as x } from "./index-
|
|
3
|
-
import { s as B } from "./index-
|
|
4
|
-
import { s as F } from "./index-
|
|
5
|
-
import { d as y } from "./index-
|
|
2
|
+
import { S as x } from "./index-By-0qgfp.js";
|
|
3
|
+
import { s as B } from "./index-DRGR-5e1.js";
|
|
4
|
+
import { s as F } from "./index-CidlKKPL.js";
|
|
5
|
+
import { d as y } from "./index-B5IhrBhW.js";
|
|
6
6
|
import { u as S } from "./index-AIq5wzuR.js";
|
|
7
7
|
import { p as I, s as N } from "./index-DIUrwul5.js";
|
|
8
8
|
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-C8qRkCgn.cjs"),_=require("./index-DOCHgBta.cjs"),C=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-C8qRkCgn.cjs"),_=require("./index-DOCHgBta.cjs"),C=require("./index-D8aMUq7Q.cjs"),r=require("./index-BbzUzdxF.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const m=_.useMenuState(u.pinia),{menus:c}=u.storeToRefs(m),p=l.ref([]),f=async()=>{var i,t,n,a;const e=await u.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey")}});if(((i=e==null?void 0:e.data)==null?void 0:i.type)==="success"){let o=(n=(t=e==null?void 0:e.data)==null?void 0:t.result)==null?void 0:n.map(s=>s);return o=(a=u.cloneDeep(o))==null?void 0:a.map(s=>{var d;const b=Object.values((d=s==null?void 0:s.value)==null?void 0:d.tableData);return b.unshift({id:s==null?void 0:s.id}),b}),o}else return[]};l.onMounted(async()=>{var n;const e=await f(),t=[{key:"header",contents:[{label:"主菜单名称",formType:"Select",options:(n=u.cloneDeep(c.value))==null?void 0:n.map(a=>({label:a==null?void 0:a.title,value:a==null?void 0:a.title})),prop:"主菜单名称"},{label:"隐藏三维显示",formType:"Switch",value:!1,prop:"隐藏三维显示"},{label:"操作"}]},{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}];t.push({key:"tableContents",contents:e}),p.value=t});const y=e=>{(e==null?void 0:e.buttonName)==="新增"?r.addMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="删除"?r.deleteMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="编辑"&&r.fixMenuContent(e==null?void 0:e.singleContent)};return(e,i)=>(l.openBlock(),l.createElementBlock("div",v,[l.createVNode(C.ssTable,{itemData:p.value,class:"table-content",onChange:y},null,8,["itemData"])]))}}),h=g._export_sfc(x,[["__scopeId","data-v-26f5cadc"]]);exports.default=h;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),I=require("./index-
|
|
1
|
+
"use strict";const e=require("vue"),I=require("./index-BSN84rrY.cjs"),B=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-IgS0VWEH.cjs"),x=require("./index-C8qRkCgn.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./index-DrzTG2HT.cjs"),k=require("./index-BpPyaNFa.cjs"),N={class:"avatar-model-wrap"},V={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:{}},clickStop:{type:Boolean,default:!0}},emits:["submitImage","deleteImage"],setup(i,{emit:b}){const s=i,u=b,h=e.computed(()=>"http://222.92.178.198:62001"),d=e.ref(""),p=e.ref(""),_=e.ref();e.watch(()=>{var o;return(o=s.userInfo)==null?void 0:o.头像},o=>{p.value=h.value+"/"+o},{immediate:!0});const w=async()=>{if(!(s!=null&&s.disabled))try{const o=await B.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"]});_.value=f}catch(o){throw new Error(o)}},S=async o=>{var f,g,t,n,c;try{const r=await B.uploadFile(o);((f=r==null?void 0:r.data)==null?void 0:f.code)===200&&(p.value=h.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,u("submitImage",d.value))}catch(r){x.ElMessage.error(r)}},y=async()=>{try{if(!p.value)return}catch(o){x.ElMessage.error(o)}};return(o,f)=>{var g,t;return e.openBlock(),e.createElementBlock("div",N,[e.createVNode(I.ssAvatar,{avatarUrl:p.value,avatarBlob:_.value,size:i.size,onClickAvatar:w,onSubmitImage:S,onDeleteImage:y,clickStop:s==null?void 0:s.clickStop},{avatarDefault:e.withCtx(()=>{var n,c,r,l;return[e.createTextVNode(e.toDisplayString(((c=(n=i.userInfo)==null?void 0:n.account)==null?void 0:c.charAt(0))||((l=(r=i.userInfo)==null?void 0:r.姓名)==null?void 0:l.charAt(0))||""),1)]}),_:1},8,["avatarUrl","avatarBlob","size","clickStop"]),i.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",V,e.toDisplayString(((g=i.userInfo)==null?void 0:g.account)||((t=i.userInfo)==null?void 0:t.账号)||"未知"),1))])}}}),T=C._export_sfc(E,[["__scopeId","data-v-747bdfb7"]]),U=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["clickSignButton","clickSubmitSign","beforeDestroy"],setup(i,{emit:b}){const s=i,u=e.ref({}),h=e.ref([]),d=b,p=t=>{u.value.dialogShow=(t==null?void 0:t.label)==="电子签名",d("clickSignButton",t)},_=()=>{u.value.dialogShow=!1,d("beforeDestroy")},w=e.computed(()=>"http://222.92.178.198:62001"),S=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 B.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){x.ElMessage.error(l)}},o=e.ref(""),f=t=>{o.value=t,u.value.dialogShow=!1;const n=new FormData,c=S(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(()=>s==null?void 0:s.itemData,t=>{var c,r,l,v;o.value="",(c=u.value)!=null&&c.dialogShow&&(u.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]}),u.value=(l=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:l.contents,h.value=(v=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signTypeList"))==null?void 0:v.contents},{immediate:!0}),(t,n)=>{const 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:u.value,onBeforeDestroy:_,onClickSubmitSign:f},{signatureRender:e.withCtx(()=>{var a,m;return[e.createElementVNode("div",{class:"signature-render",style:e.normalizeStyle({width:`${(a=u.value)==null?void 0:a.signPadWidth}%`})},[e.createVNode(r,{src:o.value?o.value:w.value+"/"+((m=i.userInfo)==null?void 0:m.签名),fit:"contain"},{error:e.withCtx(()=>[e.createVNode(c,{"image-size":60,description:" "},{image:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:"emptyImg"})]),_:1})]),_:1},8,["src"])],4)]}),signatureTypes:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,a=>{var m;return e.openBlock(),e.createElementBlock("div",{key:a.label,class:"signature-button"},[(m=a.label)!=null&&m.includes("上传")?(e.openBlock(),e.createBlock(v,{key:0,ref_for:!0,ref:"uploadRef","http-request":g,"show-file-list":!1},{trigger:e.withCtx(()=>[e.createVNode(l,{disabled:a.disabled,id:"themeButton"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled"])]),_:2},1536)):(e.openBlock(),e.createBlock(l,{key:1,id:"themeButton",disabled:a.disabled,onClick:$=>p(a)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled","onClick"]))])}),128))]),_:1},8,["signPadInfo"])}}}),q=C._export_sfc(U,[["__scopeId","data-v-ce5a2314"]]);exports.ssAvatar=T;exports.ssSignature=q;
|