ss-component-new 1.2.177 → 1.2.178
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-45vFx6Ci.cjs → MTLLoader-BBXkfiHP.cjs} +1 -1
- package/dist/{MTLLoader-DgByTNTq.js → MTLLoader-sg0frddg.js} +1 -1
- package/dist/{OrbitControls-CV-MrHG5.cjs → OrbitControls-D-LBk_tX.cjs} +1 -1
- package/dist/{OrbitControls-Cv9SGdpv.js → OrbitControls-D4FN15I6.js} +1 -1
- package/dist/{URDFLoader-BY2oim56.js → URDFLoader-CSyWAkSK.js} +2 -2
- package/dist/{URDFLoader-DwCZd3DT.cjs → URDFLoader-DoqHKrwQ.cjs} +1 -1
- package/dist/{animationData-BKJUksL6.cjs → animationData-BceMam9Q.cjs} +1 -1
- package/dist/{animationData-B8-fvoQG.js → animationData-h31YMX0d.js} +1 -1
- package/dist/{array-DDU6IBRR.js → array-BgNAac5j.js} +1 -1
- package/dist/{array-iLq62gEW.cjs → array-DYVJudKm.cjs} +1 -1
- package/dist/{iconfont-CbHnKyhA.js → iconfont-BIBKsReP.js} +2 -2
- package/dist/{iconfont-B1otHnDa.cjs → iconfont-C4w-Pd7e.cjs} +1 -1
- package/dist/{index-CQP2wp7R.js → index-5vJr3qa7.js} +3 -3
- package/dist/{index-CbxJuVpo.cjs → index-8ziQdc16.cjs} +1 -1
- package/dist/{index-CXpkAw7j.cjs → index-B0I4bCYF.cjs} +1 -1
- package/dist/{index-D8BddVAV.js → index-B0IKI1R8.js} +16 -16
- package/dist/{index-DspBnzO8.js → index-B17SPYqV.js} +1 -1
- package/dist/{index-DjGsEnMW.cjs → index-B6Am14Go.cjs} +1 -1
- package/dist/{index-BJ73Hg5A.cjs → index-B9x5UPed.cjs} +1 -1
- package/dist/{index-D_-bWCdl.js → index-BL5SifaP.js} +2 -2
- package/dist/{index-Cs-66QSw.js → index-BUewNJqI.js} +1 -1
- package/dist/{index-CxR_MVxT.cjs → index-BY3tVLI_.cjs} +1 -1
- package/dist/{index-CTTqwfEF.cjs → index-BaVHLipK.cjs} +1 -1
- package/dist/{index-CG3YRLNm.cjs → index-BeUo-UQR.cjs} +1 -1
- package/dist/{index-DJDVTa-T.cjs → index-BmbbkvwC.cjs} +1 -1
- package/dist/{index-BtxgGP4E.js → index-BoKwQFto.js} +4 -4
- package/dist/{index-KnWmI9D6.js → index-Bqn_7zqS.js} +1 -1
- package/dist/{index-BGy8QZn-.js → index-CCujgLny.js} +1 -1
- package/dist/index-CDT7oAPk.js +3014 -0
- package/dist/index-CPsiq06e.cjs +1 -0
- package/dist/{index-CHSOjR_9.js → index-CZ4SLhhh.js} +1 -1
- package/dist/{index-BGWmVxWe.cjs → index-CZbSpMIJ.cjs} +1 -1
- package/dist/{index-Bi8P9IId.cjs → index-C_ncrCbC.cjs} +1 -1
- package/dist/{index-C1COYIFO.js → index-CadrO-1Z.js} +8 -8
- package/dist/{index-DOg3gviX.cjs → index-CbNiQDYE.cjs} +1 -1
- package/dist/{index-Bc0ovJko.cjs → index-CjjCLx3u.cjs} +1 -1
- package/dist/{index-DrhU4P9y.js → index-CoH8lwLL.js} +1 -1
- package/dist/{index-CJxrfrKo.js → index-CrrLYGdV.js} +1 -1
- package/dist/{index-D0vkeBo-.js → index-CxFwCnFu.js} +1 -1
- package/dist/{index-DFLL9Wee.js → index-D2G1Rbw2.js} +1 -1
- package/dist/{index-CMJ0vea6.cjs → index-D3Dq0v96.cjs} +1 -1
- package/dist/{index-CZOv_Rpa.cjs → index-DFavn1kB.cjs} +1 -1
- package/dist/{index-CqOl875P.js → index-DGxGOZ6v.js} +4 -4
- package/dist/{index-tAOovNrl.cjs → index-DIDvIeAE.cjs} +1 -1
- package/dist/{index-rJrZ4Jyu.cjs → index-DKwg_bJ7.cjs} +1 -1
- package/dist/{index-DR-dApow.cjs → index-DXBLGWt9.cjs} +1 -1
- package/dist/{index-7YX4_dSG.js → index-Df9lqbL9.js} +7 -7
- package/dist/{index-CWM4tw3W.cjs → index-DiH_ldOA.cjs} +1 -1
- package/dist/{index-DUfSCM58.cjs → index-DxW2aVQq.cjs} +1 -1
- package/dist/{index-Cwk-d3wI.js → index-I_yMg9r3.js} +2 -2
- package/dist/{index-JdVcYM_c.js → index-QzxFTSte.js} +4 -4
- package/dist/{index-DHrJRz4q.cjs → index-ZFev7aq7.cjs} +1 -1
- package/dist/{index-DKRbSiXR.js → index-_eevY45I.js} +1 -1
- package/dist/{index-CJlqtSTk.js → index-aMbB06Wc.js} +1 -1
- package/dist/{index-jmELRcSf.js → index-d47CvCXv.js} +3 -3
- package/dist/{index-Ba45W3Ua.cjs → index-lb07thoL.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang--5oeei0F.cjs +37 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-D9IgUdvX.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-C3gmehHm.js} +10191 -10178
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DoTLasl4.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CILHNQks.js} +29310 -29328
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B7Adlltj.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-WKD3Dboe.cjs} +395 -395
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-gGhupIEq.js → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-B3OXHupH.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-DSEBqd14.cjs → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-CzKAR-fd.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-BObmb_2e.js → index.vue_vue_type_style_index_1_lang-D90WJUnP.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_1_lang-BgpaLloL.cjs → index.vue_vue_type_style_index_1_lang-okk3axV_.cjs} +1 -1
- package/dist/{main--vkjmZ5H.js → main-DYXyMwb3.js} +3 -3
- package/dist/{main-DfsIGI6Q.cjs → main-IlIQuBF8.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-CPOiuPmf.js → threeModel-C4FwxvRb.js} +4 -4
- package/dist/{threeModel-31Mk02S0.cjs → threeModel-CN8y5oB-.cjs} +1 -1
- package/dist/{threePreview-6K0uX_kn.cjs → threePreview-BnuPNbBI.cjs} +1 -1
- package/dist/{threePreview-B2c38aNi.js → threePreview-DSCX4zHG.js} +3 -3
- package/dist/{threeSceneView-DKe-yheh.js → threeSceneView-37JCUDaA.js} +8 -8
- package/dist/{threeSceneView-R3C2C5mu.cjs → threeSceneView-BpnVSSXu.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-B8KV3E55.js → threeSceneViewForCPMPIP--nGZ5LGQ.js} +7 -7
- package/dist/{threeSceneViewForCPMPIP-D5GmzScE.cjs → threeSceneViewForCPMPIP-XbJX0DZb.cjs} +1 -1
- package/dist/{threeTrackPathView-BYJQxkco.cjs → threeTrackPathView-B_6H6vt6.cjs} +1 -1
- package/dist/{threeTrackPathView-AOVKXiLQ.js → threeTrackPathView-DCwhLBCr.js} +3 -3
- package/dist/{threeViewerHost-D3nc548f.js → threeViewerHost-BP1y_Zyu.js} +2 -2
- package/dist/{threeViewerHost-Birr5icJ.cjs → threeViewerHost-BcyIKSt8.cjs} +1 -1
- package/dist/{urdfTree-j7pQuwXM.cjs → urdfTree-DTnyroQe.cjs} +1 -1
- package/dist/{urdfTree-BORFZd89.js → urdfTree-DuWOp12v.js} +1 -1
- package/dist/{workpieceTreePanel-C3Ah_exL.cjs → workpieceTreePanel-BT14Or0m.cjs} +1 -1
- package/dist/{workpieceTreePanel-vnbkBGAm.js → workpieceTreePanel-DhRSjZ_6.js} +4 -4
- package/package.json +1 -1
- package/dist/index-BEikclM4.js +0 -3003
- package/dist/index-CZ4aOdZv.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-54GoJ76b.cjs +0 -37
|
@@ -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-CadrO-1Z.js";
|
|
3
3
|
import { u as T, p as j, s as x } from "./index-KFoWHXov.js";
|
|
4
|
-
import "./array-
|
|
4
|
+
import "./array-BgNAac5j.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-CILHNQks.js";
|
|
7
|
+
import "./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-B3OXHupH.js";
|
|
8
|
+
import "./index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-C3gmehHm.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-D90WJUnP.js";
|
|
11
11
|
import "./index-BIiBz_NW.js";
|
|
12
12
|
import "./index-Dh_LOm8w.js";
|
|
13
13
|
import "vue-router";
|
|
14
|
-
import "./index-
|
|
14
|
+
import "./index-d47CvCXv.js";
|
|
15
15
|
/* empty css */
|
|
16
16
|
import "./index-BTwnAq9V.js";
|
|
17
17
|
const L = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-Xb_d3z-H.cjs"),_=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-Xb_d3z-H.cjs"),_=require("./index-ZFev7aq7.cjs");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-WKD3Dboe.cjs");const h=require("./index-lb07thoL.cjs"),f=require("./index-y1mE3_ai.cjs"),y=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V={class:"personal-wrapper"},x={class:"personal-box left"},N={class:"base-avatar"},S={class:"center-avatar"},D={class:"base-info"},E={class:"base-signature"},k={class:"personal-box right"},B=e.defineComponent({__name:"index",setup(T){const t=e.reactive({...l.State}),b=f.useLoginState(),{loginUserInfo:n}=f.storeToRefs(b);return e.onMounted(()=>{var s;t.getUserTableHeadersAsync(),t.refreshLoginUserInfoAsync((s=n==null?void 0:n.value)==null?void 0:s.id),l.tabKey.value++}),(s,o)=>{var c,d,u,g,p,m,v;const r=e.resolveComponent("svg-icon"),i=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("div",x,[e.createElementVNode("div",N,[e.createElementVNode("div",S,[e.withDirectives(e.createVNode(_.ssAvatar,{size:100,disabled:t.uploadDisabled,userInfo:e.unref(n),onSubmitImage:o[0]||(o[0]=a=>t.submitImageAsync("avatarUrl",a))},null,8,["disabled","userInfo"]),[[i,t.avatarLoading]])])]),e.createElementVNode("div",D,[e.createElementVNode("div",null,[e.createVNode(r,{name:"userAccount",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((c=e.unref(n))==null?void 0:c.account)||(((d=e.unref(n))==null?void 0:d.姓名)??"未知")),1)]),e.createElementVNode("div",null,[e.createVNode(r,{name:"role",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((u=e.unref(n))==null?void 0:u.layer)==="superAdmin"?"超级管理员":((g=e.unref(n))==null?void 0:g.角色名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(r,{name:"dept",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((p=e.unref(n))==null?void 0:p.部门名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(r,{name:"status",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((m=e.unref(n))==null?void 0:m.layer)==="superAdmin"?"启用":((v=e.unref(n))==null?void 0:v.状态)??"未知"),1)])]),e.createElementVNode("div",E,[e.withDirectives(e.createVNode(_.ssSignature,{userInfo:e.unref(n),itemData:t.itemData,onClickSignButton:t.clickSignButton,onBeforeDestroy:t.beforeSignDestroy,onClickSubmitSign:o[1]||(o[1]=a=>t.submitImageAsync("signature",a))},null,8,["userInfo","itemData","onClickSignButton","onBeforeDestroy"]),[[i,t.signatureLoading]])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",k,[(e.openBlock(),e.createBlock(h.ssTab,{key:e.unref(l.tabKey),tabsContents:t.tabsContents,onChangeTrigger:t.changeFormTrigger,onClickTrigger:t.clickTabButton},null,8,["tabsContents","onChangeTrigger","onClickTrigger"]))])),[[i,t.loading]])])}}}),C=y._export_sfc(B,[["__scopeId","data-v-3bdf3f4b"]]);exports.default=C;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),B=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";const e=require("vue"),B=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-WKD3Dboe.cjs"),a=require("./index-y1mE3_ai.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),T="ElUpload";class R extends Error{constructor(o,l,i,p){super(o),this.name="UploadAjaxError",this.status=l,this.method=i,this.url=p}}function h(r,o,l){let i;return l.response?i=`${l.response.error||l.response}`:l.responseText?i=`${l.responseText}`:i=`fail to ${o.method} ${r} ${l.status}`,new R(i,l.status,o.method,r)}function U(r){const o=r.responseText||r.response;if(!o)return o;try{return JSON.parse(o)}catch{return o}}const D=r=>{typeof XMLHttpRequest>"u"&&a.throwError(T,"XMLHttpRequest is undefined");const o=new XMLHttpRequest,l=r.action;o.upload&&o.upload.addEventListener("progress",t=>{const c=t;c.percent=t.total>0?t.loaded/t.total*100:0,r.onProgress(c)});const i=new FormData;if(r.data)for(const[t,c]of Object.entries(r.data))a.isArray$1(c)&&c.length?i.append(t,...c):i.append(t,c);i.append(r.filename,r.file,r.file.name),o.addEventListener("error",()=>{r.onError(h(l,r,o))}),o.addEventListener("load",()=>{if(o.status<200||o.status>=300)return r.onError(h(l,r,o));r.onSuccess(U(o))}),o.open(r.method,l,!0),r.withCredentials&&"withCredentials"in o&&(o.withCredentials=!0);const p=r.headers||{};if(p instanceof Headers)p.forEach((t,c)=>o.setRequestHeader(c,t));else for(const[t,c]of Object.entries(p))a.isNil(c)||o.setRequestHeader(t,String(c));return o.send(i),o},b=["text","picture","picture-card"];let L=1;const N=()=>Date.now()+L++,x=a.buildProps({action:{type:String,default:"#"},headers:{type:a.definePropType(Object)},method:{type:String,default:"post"},data:{type:a.definePropType([Object,Function,Promise]),default:()=>a.mutable({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:a.definePropType(Array),default:()=>a.mutable([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:b,default:"text"},httpRequest:{type:a.definePropType(Function),default:D},disabled:Boolean,limit:Number}),F=a.buildProps({...x,beforeUpload:{type:a.definePropType(Function),default:a.NOOP},beforeRemove:{type:a.definePropType(Function)},onRemove:{type:a.definePropType(Function),default:a.NOOP},onChange:{type:a.definePropType(Function),default:a.NOOP},onPreview:{type:a.definePropType(Function),default:a.NOOP},onSuccess:{type:a.definePropType(Function),default:a.NOOP},onProgress:{type:a.definePropType(Function),default:a.NOOP},onError:{type:a.definePropType(Function),default:a.NOOP},onExceed:{type:a.definePropType(Function),default:a.NOOP},crossorigin:{type:a.definePropType(String)}}),j={style:{"text-align":"left"}},A={class:"cropper-warp"},q={class:"cropper-warp-left"},$=["src"],H={class:"cropper-warp-right"},z={class:"cropper-warp-right-item"},M={class:"cropper-warp-right-value"},X=["src"],J={class:"cropper-warp-right-item"},G={class:"cropper-warp-right-value"},K=["src"],Q={class:"dialog-footer"},W=e.defineComponent({__name:"index",props:{title:{type:String,default:""}},emits:["submitImage","deleteImage"],setup(r,{expose:o,emit:l}){const i=l,p=e.ref(),t=e.reactive({isShowDialog:!1,cropperImg:"",cropperImgBase64:"",cropper:null}),c=async s=>{if(t.isShowDialog=!0,!s)return;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(s),e.nextTick(()=>{w()})},f=()=>{var s;(s=t.cropper)==null||s.destroy(),t.isShowDialog=!1},m=()=>{f()},y=async()=>{const s=await v();i("submitImage",{file:s}),f()},d=async()=>{i("deleteImage")},w=()=>{const s=document.querySelector(".cropper-warp-left-img");s&&s.setAttribute("crossOrigin","anonymous"),t.cropper=new B.Cropper(s,{viewMode:1,dragMode:"none",initialAspectRatio:1,aspectRatio:1,preview:".before",background:!0,autoCropArea:1,checkCrossOrigin:!1,crop:()=>{t.cropperImgBase64=t.cropper.getCroppedCanvas().toDataURL("image/jpeg")}})},v=async()=>t!=null&&t.cropper?new Promise(s=>{var n,u;(u=(n=t==null?void 0:t.cropper)==null?void 0:n.getCroppedCanvas())==null||u.toBlob(_=>{s(_)})}):(await fetch(t.cropperImg)).blob(),V=async s=>{var u;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(s.raw),(u=t.cropper)==null||u.replace(t.cropperImg)},S=s=>{p.value.clearFiles();const n=s[0];n.uid=N(),p.value.handleStart(n)};return o({openDialog:c}),(s,n)=>{const u=e.resolveComponent("ele-Edit"),_=e.resolveComponent("el-icon"),g=e.resolveComponent("el-button"),I=e.resolveComponent("el-upload"),k=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(k,{modelValue:t.isShowDialog,"onUpdate:modelValue":n[0]||(n[0]=O=>t.isShowDialog=O),width:"769px","before-close":m},{header:e.withCtx(()=>[e.createElementVNode("div",j,[e.createVNode(_,{size:"16",style:{"margin-right":"3px",display:"inline","vertical-align":"middle"}},{default:e.withCtx(()=>[e.createVNode(u)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(r.title),1)])]),footer:e.withCtx(()=>[e.createElementVNode("span",Q,[e.createVNode(I,{class:"avatar-uploader",ref_key:"uploadSignRef",ref:p,accept:".jpg,.png",limit:1,"show-file-list":!1,"auto-upload":!1,"on-change":V,"on-exceed":S},{trigger:e.withCtx(()=>[e.createVNode(g,{type:"info",icon:"ele-Picture"},{default:e.withCtx(()=>n[4]||(n[4]=[e.createTextVNode("选择图片")])),_:1,__:[4]})]),default:e.withCtx(()=>[e.createVNode(g,{onClick:d,type:"danger",icon:"ele-Picture",style:{"margin-left":"8px"}},{default:e.withCtx(()=>n[5]||(n[5]=[e.createTextVNode("删除图片")])),_:1,__:[5]})]),_:1},512),e.createElementVNode("div",null,[e.createVNode(g,{onClick:m,id:"themeBorderButton"},{default:e.withCtx(()=>n[6]||(n[6]=[e.createTextVNode("取 消")])),_:1,__:[6]}),e.createVNode(g,{onClick:y,id:"themeButton"},{default:e.withCtx(()=>n[7]||(n[7]=[e.createTextVNode("确 定")])),_:1,__:[7]})])])]),default:e.withCtx(()=>[e.createElementVNode("div",A,[e.createElementVNode("div",q,[e.createElementVNode("img",{src:t.cropperImg,class:"cropper-warp-left-img"},null,8,$)]),e.createElementVNode("div",H,[n[3]||(n[3]=e.createElementVNode("div",{class:"cropper-warp-right-title"},"预览",-1)),e.createElementVNode("div",z,[e.createElementVNode("div",M,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img"},null,8,X)]),n[1]||(n[1]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"100 x 100",-1))]),e.createElementVNode("div",J,[e.createElementVNode("div",G,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img cropper-size"},null,8,K)]),n[2]||(n[2]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"50 x 50",-1))])])])]),_:1},8,["modelValue"])])}}}),E=C._export_sfc(W,[["__scopeId","data-v-4a19ffcf"]]),Y=e.defineComponent({__name:"index",props:{avatarUrl:{type:String,default:""},avatarBlob:{type:Blob,default:""},size:{type:[String,Number],default:"large"},showCropper:{type:Boolean,default:!0},banClick:{type:Boolean,default:!1},clickStop:{type:Boolean,default:!0}},emits:["submitImage","deleteImage","clickAvatar"],setup(r,{emit:o}){const l=r,i=e.ref(),p=e.ref(null),t=o,c=()=>!0,f=async()=>{var d;l!=null&&l.banClick||(t("clickAvatar",l.avatarUrl),(d=i.value)==null||d.openDialog(l.avatarBlob))},m=async d=>{t("submitImage",d)},y=async()=>{t("deleteImage")};return(d,w)=>{const v=e.resolveComponent("el-avatar");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(v,{src:r.avatarUrl,onClick:f,fit:"cover",size:r.size,ref_key:"avatarRef",ref:p,style:{background:"var(--user-avatar-bg)"},alt:"头像查找失败",onError:c},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"avatarDefault",{},void 0,!0)]),_:3},8,["src","size"]),e.withDirectives(e.createVNode(E,{ref_key:"cropperDialogRef",ref:i,title:"更改头像",avatarUrl:r.avatarUrl,onSubmitImage:m,onDeleteImage:y},null,8,["avatarUrl"]),[[e.vShow,r.showCropper&&(l==null?void 0:l.clickStop)]])],64)}}}),P=C._export_sfc(Y,[["__scopeId","data-v-82946fb9"]]),Z=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"}));exports.CropperDialog=E;exports.genFileId=N;exports.index=Z;exports.ssAvatar=P;exports.uploadBaseProps=x;exports.uploadListTypes=b;exports.uploadProps=F;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref as s, watch as d, defineComponent as m, reactive as y, onMounted as i, createElementBlock as g, openBlock as D, createVNode as f } from "vue";
|
|
2
2
|
import "./index-BHtNKL1L.js";
|
|
3
|
-
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
3
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CILHNQks.js";
|
|
4
4
|
import { g as h, s as c } from "./index-KFoWHXov.js";
|
|
5
5
|
import { ae as C, ad as _, a as k, u as S, af as v } from "./index-Dh_LOm8w.js";
|
|
6
|
-
import { s as T } from "./index-
|
|
6
|
+
import { s as T } from "./index-CDT7oAPk.js";
|
|
7
7
|
const A = k(), { itemData: B } = c(A), u = s(0), I = s([
|
|
8
8
|
{
|
|
9
9
|
label: "机构名称",
|
|
@@ -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-B17SPYqV.js";
|
|
3
|
+
import { s as B } from "./index-CDT7oAPk.js";
|
|
4
|
+
import { s as F } from "./index-CZ4SLhhh.js";
|
|
5
|
+
import { d as y } from "./index-DGxGOZ6v.js";
|
|
6
6
|
import { u as S } from "./index-Dh_LOm8w.js";
|
|
7
7
|
import { p as I, s as N } from "./index-KFoWHXov.js";
|
|
8
8
|
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),I=require("./index-
|
|
1
|
+
"use strict";const e=require("vue"),I=require("./index-DxW2aVQq.cjs"),B=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-WKD3Dboe.cjs"),x=require("./index-y1mE3_ai.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./index-lb07thoL.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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as l, watch as m, defineComponent as b, reactive as y, onMounted as g, createElementBlock as D, openBlock as f, createVNode as i } from "vue";
|
|
2
|
-
import { s as h } from "./index-
|
|
2
|
+
import { s as h } from "./index-CDT7oAPk.js";
|
|
3
3
|
import { g as C, s as c } from "./index-KFoWHXov.js";
|
|
4
4
|
import { ae as k, ad as _, a as S, u as A, af as T } from "./index-Dh_LOm8w.js";
|
|
5
5
|
const B = S(), { itemData: I } = c(B), u = l(0), P = l([
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as x, onMounted as _, createElementBlock as g, openBlock as y, createVNode as C } from "vue";
|
|
2
|
-
import { s as b } from "./index-
|
|
2
|
+
import { s as b } from "./index-CrrLYGdV.js";
|
|
3
3
|
import { c as s } from "./index-KFoWHXov.js";
|
|
4
4
|
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const A = (t, n, a) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as F, computed as N, ref as p, watch as $, createElementBlock as B, openBlock as b, createVNode as v, createCommentVNode as j, withCtx as u, createTextVNode as T, toDisplayString as I, resolveComponent as k, createBlock as x, Fragment as L, renderList as O, createElementVNode as R, normalizeStyle as q } from "vue";
|
|
2
|
-
import { s as H } from "./index-
|
|
3
|
-
import { d as M, e as P } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
2
|
+
import { s as H } from "./index-CCujgLny.js";
|
|
3
|
+
import { d as M, e as P } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CILHNQks.js";
|
|
4
4
|
import { E as z } from "./index-KFoWHXov.js";
|
|
5
5
|
import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import { S as W } from "./index-
|
|
6
|
+
import { S as W } from "./index-DGxGOZ6v.js";
|
|
7
7
|
import { S as E } from "./index-BHtNKL1L.js";
|
|
8
8
|
const D = { class: "avatar-model-wrap" }, G = { key: 0 }, J = /* @__PURE__ */ F({
|
|
9
9
|
__name: "index",
|