ss-component-new 1.2.284 → 1.2.286
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-vedfBzZJ.js → MTLLoader-BmYyXW83.js} +1 -1
- package/dist/{OrbitControls-0pkhC3f-.js → OrbitControls-DsnmnUaX.js} +1 -1
- package/dist/{URDFLoader-CgEcD1TL.js → URDFLoader-CYvok6u7.js} +2 -2
- package/dist/{animationData-t1sFNAtg.js → animationData-DsgJ_A41.js} +1 -1
- package/dist/{array-DXl-1rBq.js → array-Dm9IdqWX.js} +1 -1
- package/dist/{iconfont-CTDhTKM9.js → iconfont-BYx0RHkq.js} +2 -2
- package/dist/{index-BGz09vPE.cjs → index-1V0_xNBY.cjs} +1 -1
- package/dist/{index-SMahqXIU.js → index-60QYDyJ_.js} +4 -4
- package/dist/{index-2kTYr9B1.cjs → index-B-_wcMxY.cjs} +1 -1
- package/dist/{index-g9HdSGQg.cjs → index-BDYOXHUR.cjs} +1 -1
- package/dist/index-BJi5OSnJ.js +5206 -0
- package/dist/{index-zEuRSHm2.js → index-BJouGy3q.js} +1 -1
- package/dist/{index-BBwGU6p9.cjs → index-BQOIAycv.cjs} +1 -1
- package/dist/{index-DWLyYKGE.js → index-BbCylrXL.js} +9 -9
- package/dist/{index-G2z8Zjyh.js → index-BcFnH9UB.js} +3 -3
- package/dist/{index-BG064ucm.cjs → index-Be9I3e94.cjs} +1 -1
- package/dist/{index-B4y5i5Ka.cjs → index-BjW4BKyg.cjs} +1 -1
- package/dist/{index-BVKKwlA_.js → index-Bv6AaA0l.js} +3 -3
- package/dist/{index-CiGZHfDt.js → index-CLjQXgfa.js} +1 -1
- package/dist/{index-CKk0V7jc.cjs → index-CSsVnrIO.cjs} +1 -1
- package/dist/{index-DPU-5D1N.cjs → index-CdP_UVAu.cjs} +1 -1
- package/dist/{index-Rus115ns.js → index-CguaJe9R.js} +7 -7
- package/dist/{index-DMFO3wbS.js → index-CvbKkbY4.js} +1 -1
- package/dist/{index-D_WJBEio.cjs → index-D-91YvTd.cjs} +1 -1
- package/dist/{index-DC07v4h6.js → index-DBl9pRe5.js} +2 -2
- package/dist/{index-Utb_YPOJ.cjs → index-DGgXm_CI.cjs} +1 -1
- package/dist/{index-DxX7nzJx.js → index-DIfAd6ST.js} +4 -4
- package/dist/{index-CKURoDVK.js → index-DNfRck3p.js} +1 -1
- package/dist/{index-rNpdrX7f.js → index-DP45HyFm.js} +1 -1
- package/dist/index-DQNhMnRn.cjs +13 -0
- package/dist/{index-D0WqzgHx.js → index-DWbmyjHP.js} +1 -1
- package/dist/{index-B-DNOpCF.cjs → index-Dg0BaT1k.cjs} +1 -1
- package/dist/{index-C5aW5tkc.cjs → index-DneH_4uD.cjs} +1 -1
- package/dist/{index-CFJwPFcm.cjs → index-Du4lXPPf.cjs} +1 -1
- package/dist/{index-6t-YjNqX.cjs → index-DzlFDNp4.cjs} +1 -1
- package/dist/{index-C_CiQaLv.js → index-ECuhmGX1.js} +1 -1
- package/dist/{index-CG2w5HaZ.js → index-GHdF6Aup.js} +1 -1
- package/dist/{index-ZTKe4Mnh.js → index-Ns-MS2fm.js} +1 -1
- package/dist/{index-EyXid6jq.js → index-amOz0cFs.js} +1 -1
- package/dist/{index-B12xtV3x.js → index-gSPmTs45.js} +1 -1
- package/dist/{index-SuKRCVIH.js → index-ls0qxH5Y.js} +3547 -3535
- package/dist/{index-BTqDiGDZ.cjs → index-qmusAXde.cjs} +1 -1
- package/dist/{index-Cqhzw3vL.cjs → index-x-XDs9TJ.cjs} +13 -13
- package/dist/{index-BupMBLsL.js → index-xV_UnVrr.js} +16 -16
- package/dist/{index-CutBwQ9H.js → index-z09LONIX.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DEu22B1P.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DXMuQRcg.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DiHbpJrf.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DeedvXrQ.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DHdFwVaG.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-fpTilETg.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_0_scoped_20f284c2_lang-BB1vyfVX.cjs → index.vue_vue_type_style_index_0_scoped_20f284c2_lang-BQ-bZG3V.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_20f284c2_lang-COrMXZSA.js → index.vue_vue_type_style_index_0_scoped_20f284c2_lang-DxObsPtw.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_1_lang-3hUda_cT.js → index.vue_vue_type_style_index_1_lang-BiQS0kLG.js} +3 -3
- package/dist/{main-CustM3aO.js → main-FupraBWe.js} +3 -3
- package/dist/{main-DM6oR3qA.cjs → main-YaAufXgN.cjs} +1 -1
- 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-B_I0lhti.js → threeModel-B5-M-kaW.js} +4 -4
- package/dist/{threeModel-CON0mC3R.cjs → threeModel-fU7AR5MP.cjs} +1 -1
- package/dist/{threePreview-DGeeQSkQ.js → threePreview-BNIxFSLa.js} +3 -3
- package/dist/{threeSceneView-D9YTq6J0.js → threeSceneView-B1m-bwky.js} +8 -8
- package/dist/{threeSceneViewForCPMPIP-ClmwatKj.js → threeSceneViewForCPMPIP-BPDkB5Yz.js} +7 -7
- package/dist/{threeTrackPathView-TW_lmkFW.js → threeTrackPathView-DXqgeBIg.js} +3 -3
- package/dist/{threeViewerHost-D1xgGoB2.js → threeViewerHost-DoqRiNjn.js} +2 -2
- package/dist/{urdfTree-CT2y9rRX.js → urdfTree-B_j9ErPW.js} +1 -1
- package/dist/{workpieceTreePanel-DAUFPcjN.js → workpieceTreePanel-CaQ3ZAIC.js} +4 -4
- package/package.json +1 -1
- package/dist/index-CApNwo3a.cjs +0 -13
- package/dist/index-CnLWUpVP.js +0 -5156
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ba as Z, bb as K, b0 as D, af as P, ak as S, bh as H, ac as O, bc as A, aZ as ie, bi as N, bK as X, be as B, av as ne, bO as Y, bf as W, aq as $, bp as oe, bk as ae, bH as le, b$ as q, br as Q, cb as ce, by as he } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
import { ba as Z, bb as K, b0 as D, af as P, ak as S, bh as H, ac as O, bc as A, aZ as ie, bi as N, bK as X, be as B, av as ne, bO as Y, bf as W, aq as $, bp as oe, bk as ae, bH as le, b$ as q, br as Q, cb as ce, by as he } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-fpTilETg.js";
|
|
2
2
|
class xe extends Z {
|
|
3
3
|
/**
|
|
4
4
|
* Constructs a new STL loader.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cl as S, ac as p, al as u, cm as _, bv as E, cn as P, br as c, co as w, ax as O, aA as R } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
import { cl as S, ac as p, al as u, cm as _, bv as E, cn as P, br as c, co as w, ax as O, aA as R } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-fpTilETg.js";
|
|
2
2
|
const D = { type: "change" }, b = { type: "start" }, M = { type: "end" }, f = new w(), T = new O(), A = Math.cos(70 * R.DEG2RAD), n = new p(), r = 2 * Math.PI, o = {
|
|
3
3
|
NONE: -1,
|
|
4
4
|
ROTATE: 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as Ln } from "./MTLLoader-
|
|
2
|
-
import { c9 as vn, bB as Rn, ba as lt, bp as At, bb as In, ac as pe, az as he, bL as dt, ae as Mn, by as Tt, af as ut, aA as Le, bS as ft, ca as Sn, av as ve, b$ as Se, ak as me, br as On, aw as Gn, bk as qn, ag as ht, bQ as Pn, ar as jn, bt as Fn, au as Un, as as Hn, aZ as pt, bv as Et, bY as mt, b_ as Bn, b0 as zn, bc as ye, bT as Dn, bi as bt, bN as Vn, aq as Ce, b2 as Jn, bO as Kn, bR as Wn, bH as Oe, bJ as gt, cb as Yn, cc as Xn, cd as yt, ce as $n, cf as Zn, cg as Qn, ch as ei, bg as ti, ci as ni, cj as ii, ay as si } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
import { S as Ln } from "./MTLLoader-BmYyXW83.js";
|
|
2
|
+
import { c9 as vn, bB as Rn, ba as lt, bp as At, bb as In, ac as pe, az as he, bL as dt, ae as Mn, by as Tt, af as ut, aA as Le, bS as ft, ca as Sn, av as ve, b$ as Se, ak as me, br as On, aw as Gn, bk as qn, ag as ht, bQ as Pn, ar as jn, bt as Fn, au as Un, as as Hn, aZ as pt, bv as Et, bY as mt, b_ as Bn, b0 as zn, bc as ye, bT as Dn, bi as bt, bN as Vn, aq as Ce, b2 as Jn, bO as Kn, bR as Wn, bH as Oe, bJ as gt, cb as Yn, cc as Xn, cd as yt, ce as $n, cf as Zn, cg as Qn, ch as ei, bg as ti, ci as ni, cj as ii, ay as si } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-fpTilETg.js";
|
|
3
3
|
class wt extends vn {
|
|
4
4
|
/**
|
|
5
5
|
* Constructs a new TGA loader.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as K, b6 as C, b as x, aD as N, c8 as S } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
import { g as K, b6 as C, b as x, aD as N, c8 as S } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-fpTilETg.js";
|
|
2
2
|
import { c as O } from "./index-Dt79Y5cq.js";
|
|
3
3
|
const g = async (n) => {
|
|
4
4
|
const e = n.join("/"), c = sessionStorage.getItem("systemKey");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as C, computed as se, reactive as ce } from "vue";
|
|
2
2
|
import { a as ue, u as pe } from "./index-DhKW6ktj.js";
|
|
3
3
|
import { c as t, s as re, p as oe } from "./index-Dt79Y5cq.js";
|
|
4
|
-
import { P as z, Q as J } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
4
|
+
import { P as z, Q as J } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-fpTilETg.js";
|
|
5
5
|
const K = ue(oe), { pageMapState: ie } = re(K), fe = pe(), { activeMenuPath: _ } = re(fe), j = C([
|
|
6
6
|
// [
|
|
7
7
|
// {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { shallowRef as i2, ref as T, defineComponent as c2, computed as Z, createElementBlock as o2, openBlock as n2, createElementVNode as B } from "vue";
|
|
2
|
-
import { ac as r, bv as h2, ay as q, ad as k, aq as S, bx as s2, an as p2, ao as Y, ap as r2, ae as d2, af as v2, ag as z2, ah as f2, ai as A2, aj as m2, ak as M2, al as t2, ck as u2, am as F2, ar as g2, as as J, at as y2, au as l2, c1 as w2, av as B2, aw as b2, ax as K } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
3
|
-
import { O as H2 } from "./OrbitControls-
|
|
2
|
+
import { ac as r, bv as h2, ay as q, ad as k, aq as S, bx as s2, an as p2, ao as Y, ap as r2, ae as d2, af as v2, ag as z2, ah as f2, ai as A2, aj as m2, ak as M2, al as t2, ck as u2, am as F2, ar as g2, as as J, at as y2, au as l2, c1 as w2, av as B2, aw as b2, ax as K } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-fpTilETg.js";
|
|
3
|
+
import { O as H2 } from "./OrbitControls-DsnmnUaX.js";
|
|
4
4
|
import { _ as V2 } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const n1 = (i, a = "YZX") => {
|
|
6
6
|
const t = new r(), o = new h2(), h = new r(), p = new q();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-CzyXKaoW.cjs"),_=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-CzyXKaoW.cjs"),_=require("./index-B-_wcMxY.cjs");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DKF28Bqv.cjs");const h=require("./index-x-XDs9TJ.cjs"),f=require("./index-C2P4DQuu.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,12 +1,12 @@
|
|
|
1
1
|
import { ref as V, computed as Z, resolveComponent as K, createElementBlock as w, openBlock as r, Fragment as ee, renderList as ae, createElementVNode as g, toDisplayString as Q, createVNode as C, watch as ue, createBlock as A, resolveDynamicComponent as X, unref as h, withCtx as D, isRef as ze, createTextVNode as te, createCommentVNode as G, normalizeStyle as Xe, withModifiers as ne, normalizeClass as Ge, nextTick as Ke } from "vue";
|
|
2
|
-
import { J as ve, g as Ye, D as je, B as Qe, C as He, b as Ze } from "./index-
|
|
2
|
+
import { J as ve, g as Ye, D as je, B as Qe, C as He, b as Ze } from "./index-BbCylrXL.js";
|
|
3
3
|
import { p as ie, s as le, c as R, E as ea } from "./index-Dt79Y5cq.js";
|
|
4
4
|
import { a as me, u as qe, E as aa } from "./index-DhKW6ktj.js";
|
|
5
|
-
import { s as W, h as We, o as Je, b as ta, c as he, d as na, f as ce, g as la, i as oa, j as Pe, k as sa, l as fe, m as re, n as ca, t as ra, p as ua } from "./array-
|
|
5
|
+
import { s as W, h as We, o as Je, b as ta, c as he, d as na, f as ce, g as la, i as oa, j as Pe, k as sa, l as fe, m as re, n as ca, t as ra, p as ua } from "./array-Dm9IdqWX.js";
|
|
6
6
|
import { _ as ge } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
import ia from "./index-rlStojTL.js";
|
|
8
|
-
import { a as da, b as pa } from "./index-
|
|
9
|
-
import { s as va } from "./index-
|
|
8
|
+
import { a as da, b as pa } from "./index-ls0qxH5Y.js";
|
|
9
|
+
import { s as va } from "./index-ECuhmGX1.js";
|
|
10
10
|
const ha = { class: "type-select" }, fa = { class: "group-label" }, ma = { class: "group-items" }, ga = ["onDragstart"], _a = {
|
|
11
11
|
__name: "index",
|
|
12
12
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),I=require("./index-DH4uI3W1.cjs"),B=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DKF28Bqv.cjs"),x=require("./index-C2P4DQuu.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./index-
|
|
1
|
+
"use strict";const e=require("vue"),I=require("./index-DH4uI3W1.cjs"),B=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DKF28Bqv.cjs"),x=require("./index-C2P4DQuu.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./index-x-XDs9TJ.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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DKF28Bqv.cjs");const c=require("./index-C2P4DQuu.cjs"),r=require("./index-DTxvWWLF.cjs"),i=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DKF28Bqv.cjs");const c=require("./index-C2P4DQuu.cjs"),r=require("./index-DTxvWWLF.cjs"),i=require("./index-DQNhMnRn.cjs"),y=r.useModelComp(),{itemData:g}=c.storeToRefs(y),p=o.ref(0),D=o.ref([{label:"机构名称",value:"",name:"deptName"}]),f=e=>{console.log("handleQueryChange",e)},u=o.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"header",contents:[{label:"机构名称",prop:"deptName"},{label:"机构类型",prop:"deptType",formType:"Select",options:[{label:"集团",value:"集团"},{label:"公司",value:"公司"},{label:"部门",value:"部门"},{label:"区域",value:"区域"},{label:"组",value:"组"}]},{label:"机构状态",formType:"Radio",prop:"deptStatus",options:[{label:"启用",value:"启用"},{label:"禁用",value:"禁用"}]},{label:"操作"}]},{key:"tableContents",contents:[]}]),m=e=>{r.submitTableAsyncByVerify(e.singleContent,e.buttonName,p.value)},h=e=>{console.log("onDoubleClick",e)},C=(e,a)=>{console.log("onButtonClick",e,a)},_=async e=>{const a=await r.handleSubmitAsync(c.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:e}},"查询"),l=a==null?void 0:a.map(t=>{var n;return{id:t.id,tableData:(n=t==null?void 0:t.value)==null?void 0:n.tableData}});return l==null?void 0:l.map(t=>{var n;if(Array.isArray(t==null?void 0:t.tableData)){let s={id:t.id};return(n=t==null?void 0:t.tableData)==null||n.forEach((d,b)=>{s[`a${b}`]=d}),s}else return{...t.tableData,id:t.id}})},S={comp:"Group",name:"/系统管理/部门管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:u.value,name:""}]}]};o.watch(()=>g.value,e=>{var a;e&&(e==null?void 0:e.length)>0&&(u.value=(a=e==null?void 0:e[0])==null?void 0:a.compData)});const k=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:_,handleItemDataChange:m,handleQueryChange:f,onButtonClick:C,onDoubleClick:h,pageData:u,queryFormData:D,structureId:p,tempDeptPageData:S},Symbol.toStringTag,{value:"Module"})),v={class:"role-wrapper"},T=o.defineComponent({__name:"index",setup(e){const a=o.reactive({...k}),l=r.useMenuState(),{activeMenuPath:t}=c.storeToRefs(l);return o.onMounted(async()=>{a.structureId=await r.getActivePageStructureId(t.value)}),(n,s)=>(o.openBlock(),o.createElementBlock("div",v,[o.createVNode(i.ssTable,{itemData:a.pageData,onChange:a.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=T;
|