ss-component-new 1.1.320 → 1.1.322
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/{array-CoicHQVK.cjs → array-BbvvSsMu.cjs} +1 -1
- package/dist/{array-CBNCxJvD.js → array-D1c5z7wR.js} +2 -2
- package/dist/{cloneDeep-CiETtPGk.cjs → cloneDeep-Cz5C3YTY.cjs} +1 -1
- package/dist/{cloneDeep-Bx_iHhpy.js → cloneDeep-_BP6PqFE.js} +1 -1
- package/dist/{index-5LLyaRck.cjs → index-2DyWZAdI.cjs} +1 -1
- package/dist/{index-BmO1tbJj.cjs → index-8Hh6ndcp.cjs} +1 -1
- package/dist/{index-DLoncX8L.cjs → index-B04yaoqW.cjs} +1 -1
- package/dist/{index-VShOpW-d.js → index-B5mGte2C.js} +1 -1
- package/dist/{index-CMF_TuV8.js → index-B5xspgKx.js} +4 -4
- package/dist/{index-5aqWel4g.cjs → index-BDEd8FiZ.cjs} +1 -1
- package/dist/{index-CoOqtD57.js → index-BHVJl56b.js} +1 -1
- package/dist/{index-BKrqlgh2.cjs → index-BLnGKCeV.cjs} +1 -1
- package/dist/{index-DBQSCG7i.cjs → index-BViHfbD_.cjs} +1 -1
- package/dist/{index-BHMrXYKx.js → index-Bbd67AeJ.js} +3 -3
- package/dist/{index-CakzIGY8.cjs → index-BcojRq7f.cjs} +1 -1
- package/dist/{index-CLYioS2i.cjs → index-BmH4vIv5.cjs} +1 -1
- package/dist/{index-NWrbKJFO.cjs → index-BnhhKe8F.cjs} +1 -1
- package/dist/{index-BA6kqwmr.js → index-Bo9FXjtY.js} +9 -9
- package/dist/{index-DCfoQMQH.cjs → index-BtqwaqYq.cjs} +1 -1
- package/dist/{index-BSMS5hD1.cjs → index-BvHZX-h-.cjs} +1 -1
- package/dist/{index-QX-B8qJV.js → index-C6JIrngm.js} +8 -8
- package/dist/{index-CmtqjWVW.js → index-CAc69tT_.js} +189 -176
- package/dist/{index-CxoV2d-P.js → index-CCK5r26s.js} +5 -5
- package/dist/{index-DEXNzFlt.js → index-CFmGx7au.js} +3 -3
- package/dist/{index-Ck1OHkON.cjs → index-CIKYVmYG.cjs} +1 -1
- package/dist/{index-DqM9LXi_.js → index-COd6JefL.js} +1 -1
- package/dist/{index-C9wGY4VD.js → index-CPFvyv9G.js} +7 -7
- package/dist/{index-DbIN4IAJ.cjs → index-CS1cZGwT.cjs} +1 -1
- package/dist/index-CVOAzSks.cjs +1 -0
- package/dist/{index-XIFPSbz7.js → index-CZoo5L0I.js} +8 -8
- package/dist/{index-BTqgHyYp.js → index-C_IxW7Md.js} +9 -9
- package/dist/{index-CakKXgzx.js → index-Cex_DdEz.js} +6 -6
- package/dist/{index-Bf-rZ5Ny.js → index-CifB8Q5h.js} +6 -6
- package/dist/{index-CNui_VwO.js → index-Cq_-kyms.js} +3 -3
- package/dist/{index-azxkeTgy.js → index-CvmUTrUZ.js} +7 -7
- package/dist/{index-BQQ3XVM2.cjs → index-CvqVEDJp.cjs} +1 -1
- package/dist/{index-BbbJyBM3.js → index-Cy7V5CTy.js} +4 -4
- package/dist/{index-CZMb0qn1.cjs → index-D7VphCVl.cjs} +1 -1
- package/dist/{index-CEQLrcwA.cjs → index-DAwrHG2B.cjs} +1 -1
- package/dist/{index-BDfBvjpU.js → index-DFfFpmpu.js} +5 -5
- package/dist/{index-BkH7ovSP.cjs → index-DHpjhrEA.cjs} +1 -1
- package/dist/index-DK5Q4nqN.cjs +11 -0
- package/dist/{index-BOBZILuT.cjs → index-DSg6qN3u.cjs} +1 -1
- package/dist/{index-BIxcpWxq.cjs → index-D_43dEyj.cjs} +1 -1
- package/dist/{index-Bn9ZyTuM.js → index-DdlsSh-T.js} +5 -5
- package/dist/{index-_aOa1cxU.js → index-DfXZ2EMp.js} +3 -3
- package/dist/{index-Bh0t_Ii2.js → index-DiNYreUx.js} +3 -3
- package/dist/{index-DXSHpVw8.cjs → index-DiPSBd5G.cjs} +1 -1
- package/dist/{index-D1FGu2x5.js → index-Djvu9TqC.js} +20 -20
- package/dist/{index-DmCUVpMx.js → index-GuVmUiOk.js} +1 -1
- package/dist/{index-Cho88zM1.cjs → index-RK4ejtZg.cjs} +1 -1
- package/dist/{index-CVNRviEe.cjs → index-TdIgNVKx.cjs} +1 -1
- package/dist/{index-BvU4v6sB.cjs → index-UEe32A7X.cjs} +161 -161
- package/dist/{index-CxWSc3r7.cjs → index-feWSPCw8.cjs} +1 -1
- package/dist/index-q45-pnfC.js +5632 -0
- package/dist/{index-DpN79Xw9.js → index-znmNCY8T.js} +6 -6
- package/dist/{index.vue_vue_type_script_setup_true_lang-Tp9-3enR.js → index.vue_vue_type_script_setup_true_lang-DCkScM42.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DxkVyC8t.cjs → index.vue_vue_type_script_setup_true_lang-DXsUWEZn.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_62633fa4_lang-CMqyfT8F.js +1146 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_62633fa4_lang-CtS3lsVS.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-CcfAJ4oR.js → index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-BxpfZWjj.js} +8 -8
- package/dist/{index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-Bg499-ti.cjs → index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-tJav1eMA.cjs} +1 -1
- package/dist/{login-BOXFFts0.js → login-B19t0BgJ.js} +2 -2
- package/dist/{login-B44OtS2e.cjs → login-CIjEq-GP.cjs} +1 -1
- package/dist/{main-CJG5WIAz.cjs → main-EHe9Q7Jw.cjs} +1 -1
- package/dist/{main-Dy-UNEJP.js → main-vsUpk0Pc.js} +7 -7
- package/dist/{menu-6iBXxopx.cjs → menu-BwznZPTB.cjs} +1 -1
- package/dist/{menu-9xaTSah9.js → menu-DXatuTQB.js} +1 -1
- package/dist/model/final.pcd +19333 -0
- package/dist/model/target.pcd +29276 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +7 -7
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +1 -1
- package/package.json +1 -1
- package/public/model/final.pcd +19333 -0
- package/public/model/target.pcd +29276 -0
- package/dist/index-B1KjkSI_.cjs +0 -1
- package/dist/index-C92KCmBd.cjs +0 -9
- package/dist/index-Cw9PmPnS.js +0 -5285
- package/dist/index.vue_vue_type_style_index_0_scoped_4bf164f6_lang-BRPnWu-r.js +0 -1091
- package/dist/index.vue_vue_type_style_index_0_scoped_4bf164f6_lang-RGMeytl0.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as Sp, onMounted as Ab, watch as vL, onUnmounted as cL, createElementBlock as Mb, openBlock as Ib, createVNode as pL } from "vue";
|
|
2
2
|
import { _ as Lb } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import { c as Ki } from "./cloneDeep-
|
|
3
|
+
import { c as Ki } from "./cloneDeep-_BP6PqFE.js";
|
|
4
4
|
/*! *****************************************************************************
|
|
5
5
|
Copyright (c) Microsoft Corporation.
|
|
6
6
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ref as H, resolveComponent as U, createBlock as N, openBlock as m, defineComponent as Ne, onMounted as We, withCtx as O, createVNode as se, createElementVNode as ce, createElementBlock as V, Fragment as oe, renderList as ee, createTextVNode as Be, toDisplayString as xe, watch as De, renderSlot as te, createCommentVNode as J, resolveDynamicComponent as ht, createSlots as Re, mergeProps as pt, normalizeProps as G2, guardReactiveProps as W2, nextTick as Je, normalizeStyle as fe, computed as ft, unref as x2, h as a2, reactive as S2, onBeforeUnmount as Y2, toRefs as q2, withDirectives as i2, vShow as l2, normalizeClass as X2 } from "vue";
|
|
2
2
|
import { S as r2 } from "./index-BHtNKL1L.js";
|
|
3
3
|
import { _ as Me } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
import { c as we } from "./cloneDeep-
|
|
5
|
-
import { E as D2, g as Jt, u as K2, s as J2, a as Z2 } from "./menu-
|
|
6
|
-
import { _ as Q2 } from "./index.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { c as e0 } from "./index-
|
|
4
|
+
import { c as we } from "./cloneDeep-_BP6PqFE.js";
|
|
5
|
+
import { E as D2, g as Jt, u as K2, s as J2, a as Z2 } from "./menu-DXatuTQB.js";
|
|
6
|
+
import { _ as Q2 } from "./index.vue_vue_type_script_setup_true_lang-DCkScM42.js";
|
|
7
|
+
import { c as e0 } from "./index-Bo9FXjtY.js";
|
|
8
8
|
function t0(o) {
|
|
9
9
|
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
10
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),I=require("./index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";const e=require("vue"),I=require("./index.vue_vue_type_script_setup_true_lang-DXsUWEZn.cjs"),y=require("./menu-BwznZPTB.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),N=require("./index-DAwrHG2B.cjs"),B=require("./index-BpPyaNFa.cjs");function x(c){const d=sessionStorage.getItem("loginToken")??"123456";return y.service({url:"/api/sysFile/uploadAvatar",method:"post",data:c,headers:{Authorization:d,"Content-Type":"multipart/form-data"}})}function A(c){const d=sessionStorage.getItem("loginToken")??"123456";return y.service({url:"/api/sysFile/downloadFile",method:"post",data:c,headers:{Authorization:d,Accept:"application/octet-stream"},responseType:"blob"})}const T={class:"avatar-model-wrap"},V=e.defineComponent({__name:"index",props:{disabled:{type:Boolean,default:!1},avatarUrl:{type:String,default:""},userInfo:{type:Object,default:{}}},emits:["submitImage","deleteImage"],setup(c,{emit:d}){const u=c,i=d,_=e.computed(()=>"http://139.196.154.85:20013"),m=e.ref(""),g=e.ref(""),b=e.ref();e.watch(()=>{var o;return(o=u.userInfo)==null?void 0:o.avatarUrl},o=>{g.value=o},{immediate:!0});const S=async()=>{if(!(u!=null&&u.disabled))try{const o=await A({url:m.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)}},k=async o=>{var f,p,t,n,l;try{const r=await x(o);((f=r==null?void 0:r.data)==null?void 0:f.code)===200&&(g.value=_.value+"/"+((t=(p=r.data)==null?void 0:p.result)==null?void 0:t.url),m.value=(l=(n=r.data)==null?void 0:n.result)==null?void 0:l.url,i("submitImage",g.value))}catch(r){y.ElMessage.error(r)}},w=async()=>{try{if(!g.value)return}catch(o){y.ElMessage.error(o)}};return(o,f)=>{var p,t,n;return e.openBlock(),e.createElementBlock("div",T,[e.createVNode(I._sfc_main,{avatarUrl:g.value,avatarBlob:b.value,onClickAvatar:S,onSubmitImage:k,onDeleteImage:w},{avatarDefault:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString(((l=c.userInfo)==null?void 0:l.account)??"未知"),1)]}),_:1},8,["avatarUrl","avatarBlob"]),e.createElementVNode("span",null,e.toDisplayString((p=c.userInfo)!=null&&p.userName?(t=c.userInfo)==null?void 0:t.userName:(n=c.userInfo)==null?void 0:n.account),1)])}}}),E=C._export_sfc(V,[["__scopeId","data-v-bcb7a17f"]]),U=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["clickSignButton","clickSubmitSign","beforeDestroy"],setup(c,{emit:d}){const u=c,i=e.ref({}),_=e.ref([]),m=d,g=t=>{i.value.dialogShow=(t==null?void 0:t.label)==="电子签名",m("clickSignButton",t)},b=()=>{i.value.dialogShow=!1,m("beforeDestroy")},S=e.computed(()=>"http://139.196.154.85:20013"),k=t=>{var a;const n=t.split(","),l=(a=n==null?void 0:n[0])==null?void 0:a.match(/:(.*?);/)[1],r=atob(n[1]);let s=r.length;const v=new Uint8Array(s);for(;s--;)v[s]=r.charCodeAt(s);return new Blob([v],{type:l})},w=async t=>{var n,l,r;try{const s=await x(t);((n=s==null?void 0:s.data)==null?void 0:n.code)===200&&m("clickSubmitSign",S.value+"/"+((r=(l=s.data)==null?void 0:l.result)==null?void 0:r.url))}catch(s){y.ElMessage.error(s)}},o=e.ref(""),f=t=>{o.value=t,i.value.dialogShow=!1;const n=new FormData,l=k(t);n.append("file",l,"image.png"),w(n)},p=t=>{const n=new FormData;n.append("file",t==null?void 0:t.file),w(n)};return e.watch(()=>u==null?void 0:u.itemData,t=>{var l,r,s,v;o.value="",(l=i.value)!=null&&l.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=(s=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:s.contents,_.value=(v=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signTypeList"))==null?void 0:v.contents},{immediate:!0}),(t,n)=>{const l=e.resolveComponent("el-empty"),r=e.resolveComponent("el-image"),s=e.resolveComponent("el-button"),v=e.resolveComponent("el-upload");return e.openBlock(),e.createBlock(N.Signature,{signPadInfo:i.value,onBeforeDestroy:b,onClickSubmitSign:f},{signatureRender:e.withCtx(()=>{var a,h;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:(h=c.userInfo)==null?void 0:h.signature,fit:"contain"},{error:e.withCtx(()=>[e.createVNode(l,{"image-size":60,description:" "},{image:e.withCtx(()=>[e.createVNode(B.SvgIcon,{name:"emptyImg"})]),_:1})]),_:1},8,["src"])],4)]}),signatureTypes:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,a=>{var h;return e.openBlock(),e.createElementBlock("div",{key:a.label,class:"signature-button"},[(h=a.label)!=null&&h.includes("上传")?(e.openBlock(),e.createBlock(v,{key:0,ref_for:!0,ref:"uploadRef","http-request":p,"show-file-list":!1},{trigger:e.withCtx(()=>[e.createVNode(s,{disabled:a.disabled,type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(B.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled"])]),_:2},1536)):(e.openBlock(),e.createBlock(s,{key:1,type:"primary",disabled:a.disabled,onClick:F=>g(a)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(B.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled","onClick"]))])}),128))]),_:1},8,["signPadInfo"])}}}),q=C._export_sfc(U,[["__scopeId","data-v-0bab2515"]]);exports.downloadAvatarApi=A;exports.ssAvatar=E;exports.ssSignature=q;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as A } from "./menu-
|
|
1
|
+
import { j as A } from "./menu-DXatuTQB.js";
|
|
2
2
|
const w = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/, O = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/, $ = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
|
|
3
3
|
function E(r, t) {
|
|
4
4
|
if (r === "__proto__" || r === "constructor" && t && typeof t == "object" && "prototype" in t) {
|