ss-component-new 1.2.26 → 1.2.28
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-j7rSXeZy.js → MTLLoader-BreJsr54.js} +1 -1
- package/dist/{MTLLoader-CSavblQS.cjs → MTLLoader-Cqv49Ps8.cjs} +1 -1
- package/dist/{OrbitControls-BYxGl2XB.js → OrbitControls-BCu-cP7k.js} +1 -1
- package/dist/{OrbitControls-dRON011u.cjs → OrbitControls-C956u7BP.cjs} +1 -1
- package/dist/{animationData-rmZ0EGb8.cjs → animationData-C3-BiUgV.cjs} +1 -1
- package/dist/{animationData-Br4BCkiq.js → animationData-CMjNjOqc.js} +4 -4
- package/dist/{array-CeASBMWY.cjs → array-0u9Sf3UC.cjs} +1 -1
- package/dist/{array-Cx8FbegO.js → array-BGIM4b6g.js} +2 -2
- package/dist/{dataUtil-RzgUhlgJ.cjs → dataUtil-BFjWNDM1.cjs} +1 -1
- package/dist/{dataUtil-CJxHUail.js → dataUtil-D9l7-XhR.js} +2 -2
- package/dist/{fileUtil-BM6WhafY.cjs → fileUtil-BFtJHTM0.cjs} +1 -1
- package/dist/{fileUtil-BVzW5lTY.js → fileUtil-D7XVXEhb.js} +1 -1
- package/dist/{iconfont-J7S-v_zE.js → iconfont-B9Cj3DQM.js} +2 -2
- package/dist/{iconfont-Dsx_JtWY.cjs → iconfont-BDfcbq2v.cjs} +1 -1
- package/dist/icons/svg//344/272/272/345/203/217.svg +1 -0
- package/dist/{index-ClzEamlP.js → index-3QB55tXZ.js} +7 -7
- package/dist/{index-BGm3sgAn.cjs → index-B33wtiif.cjs} +1 -1
- package/dist/{index-D7wMQSEM.js → index-B8bpiPXB.js} +1 -1
- package/dist/{index-BvgHldVC.cjs → index-B9TlIok8.cjs} +12 -12
- package/dist/{index-DbHiWNBM.cjs → index-BWxbWhC9.cjs} +1 -1
- package/dist/{index-BoTEVRWS.js → index-BZwQB2HO.js} +5 -5
- package/dist/{index-DRSU72SE.js → index-BaE0DPgC.js} +66 -59
- package/dist/{index-DN8avrWv.cjs → index-BccOOMaP.cjs} +1 -1
- package/dist/index-BgHY8wmn.cjs +1 -0
- package/dist/{index-DpxXt1oz.js → index-Boazv8yC.js} +2 -2
- package/dist/{index-D5YeHxKp.js → index-BqRVuEsE.js} +6 -6
- package/dist/{index-CyNvD7fs.js → index-BwLaQntz.js} +1 -1
- package/dist/{index-Dr7mB3zJ.js → index-C-8LROmP.js} +2 -2
- package/dist/{index-DcT0aYIX.js → index-C1lZkQG-.js} +423 -423
- package/dist/{index-DWBL8V_4.js → index-C5UpEVah.js} +2 -2
- package/dist/index-C5fTUrKx.js +573 -0
- package/dist/{index-BH-cEIyF.cjs → index-C9_Cxm8G.cjs} +1 -1
- package/dist/{index-D5fqqSXr.cjs → index-CBFF2bsB.cjs} +1 -1
- package/dist/{index-YhB_cMji.cjs → index-CC9RkSBT.cjs} +1 -1
- package/dist/{index-BJkToJcC.cjs → index-CK5VdzmO.cjs} +1 -1
- package/dist/{index-CeWLT1YO.js → index-CKY0sj_X.js} +3 -3
- package/dist/{index-Cm99VII_.js → index-CMwwUi6o.js} +6 -6
- package/dist/{index-DjMSxB8D.cjs → index-CP7b7BrB.cjs} +1 -1
- package/dist/{index-BU5WJczo.js → index-CZu3TggJ.js} +1 -1
- package/dist/{index-Bp0GMpLC.cjs → index-C_cWjavY.cjs} +1 -1
- package/dist/{index-DVv2nM9_.cjs → index-Cd9j5j41.cjs} +1 -1
- package/dist/{index-B7l9bX5c.cjs → index-Cwh5m4lg.cjs} +1 -1
- package/dist/index-D0XPyuy4.cjs +1 -0
- package/dist/{index-lw6M4N-Q.cjs → index-D3TgRd-7.cjs} +1 -1
- package/dist/{index-Ie0BUTFu.js → index-D5Dtcn-_.js} +6 -6
- package/dist/{index-Bp5zOMHT.cjs → index-DE-uHAMH.cjs} +1 -1
- package/dist/{index-T2VihBuZ.js → index-DHOcRi3S.js} +6 -6
- package/dist/{index-CMIII30g.cjs → index-DMyPjpxO.cjs} +1 -1
- package/dist/{index-BvB9p0W4.js → index-DR7aNxVH.js} +4 -4
- package/dist/{index-0dw7iEtO.cjs → index-DVqfroe6.cjs} +1 -1
- package/dist/{index-ggXXcZCO.js → index-DiTYB-a4.js} +63 -58
- package/dist/index-DnFxL5wb.cjs +1 -0
- package/dist/{index-CaGluCnk.js → index-DqR3IwgZ.js} +12 -12
- package/dist/{index-zAZNzNG-.js → index-DsCD1neC.js} +2 -2
- package/dist/{index-CNxiv6y5.js → index-Dx2X9pR1.js} +43 -43
- package/dist/{index-C2B83Ywj.cjs → index-GGokR_Lx.cjs} +1 -1
- package/dist/{index-7pDDKkwc.js → index-HduGypr9.js} +34 -34
- package/dist/index-LcnC2GQ4.cjs +1 -0
- package/dist/{index-DoWGbQss.js → index-OTxJnh9Z.js} +153 -153
- package/dist/{index-DodooTli.js → index-Rr9ZBYig.js} +2 -2
- package/dist/{index-BEfXSiWp.js → index-Sa2hQZ0h.js} +2 -2
- package/dist/{index-BkcjJQlg.cjs → index-TKouySTA.cjs} +1 -1
- package/dist/{index-veEr0Ju4.js → index-gPnrvvE9.js} +1324 -1321
- package/dist/{index-BPxe8bKe.js → index-gXbhagnF.js} +3 -3
- package/dist/{index-CAPstY_B.cjs → index-mpoVA-DC.cjs} +1 -1
- package/dist/{index-C9GfFRyr.cjs → index-uIVtG4RY.cjs} +1 -1
- package/dist/index-wQJN1jpI.js +2466 -0
- package/dist/index-zLkhy4JK.cjs +1 -0
- package/dist/{index-DFbvbOsE.js → index-zZ9bfGNx.js} +1 -1
- package/dist/{index-DMHh2MZZ.cjs → index-znR89ub7.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DGl2lQmW.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CuWDdCiy.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BWh0GUiI.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-TDoJ17os.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-BjBzi9R7.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-BQiH2RRX.js} +11 -11
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-BwjCaKYV.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-Dqpyi0E8.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-D21h7jT_.cjs +37 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-DZGhek9_.js → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-PE_6dfIO.js} +12719 -12591
- package/dist/{index.vue_vue_type_style_index_1_lang-BHt4rvMd.js → index.vue_vue_type_style_index_1_lang-9ANlnWKt.js} +5 -5
- package/dist/index.vue_vue_type_style_index_1_lang-CrmWclPR.cjs +32 -0
- package/dist/{index.vue_vue_type_style_index_1_lang-C2PJ2fvM.cjs → index.vue_vue_type_style_index_1_lang-D4RvHwPS.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-WD8HOZyf.js → index.vue_vue_type_style_index_1_lang-DwvuVXW6.js} +2580 -2471
- package/dist/{isString-BbPmUYHG.js → isString-BuBBWjRr.js} +1 -1
- package/dist/{main-DWa3MZxf.js → main-DpLQlLK2.js} +5 -5
- package/dist/{main-DlDkQh0n.cjs → main-Mx9r7ydp.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +11 -11
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/{threeModel-CBsLcTcX.js → threeModel-CZ-qFwwk.js} +5 -5
- package/dist/{threeModel-Dt9Ounip.cjs → threeModel-DTwQnnAO.cjs} +1 -1
- package/dist/{threePreview-DSMFTIuC.cjs → threePreview-CUGoEzKf.cjs} +1 -1
- package/dist/{threePreview-D99A_IHZ.js → threePreview-DutKTPWH.js} +4 -4
- package/dist/{threeSceneView-BD22yXw4.js → threeSceneView-CzgWYHBw.js} +11 -11
- package/dist/{threeSceneView-Dv2uGsTN.cjs → threeSceneView-f1V-z4jr.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-CpBphI9E.js → threeSceneViewForCPMPIP-2sXIw3I1.js} +61 -61
- package/dist/{threeSceneViewForCPMPIP-DfaTaroP.cjs → threeSceneViewForCPMPIP-CojHDVHC.cjs} +1 -1
- package/dist/{threeTrackPathView-BGePzJh4.cjs → threeTrackPathView-BGHiOyJo.cjs} +1 -1
- package/dist/{threeTrackPathView-bFuXaesk.js → threeTrackPathView-DA4_8jas.js} +6 -6
- package/dist/{threeViewerHost-gGHqJpTR.js → threeViewerHost-BNObp9oA.js} +17 -17
- package/dist/{threeViewerHost-bQqnJLh9.cjs → threeViewerHost-D3WDKrIQ.cjs} +1 -1
- package/dist/{urdfTree-nXEMcLFV.cjs → urdfTree-CWStzmk2.cjs} +1 -1
- package/dist/{urdfTree-B2Zs54qS.js → urdfTree-CnkPddyT.js} +1 -1
- package/dist/{workpieceTreePanel-CXD_XizT.js → workpieceTreePanel-BvhFt3Xw.js} +5 -5
- package/dist/{workpieceTreePanel-Brforhya.cjs → workpieceTreePanel-DXyb_Wnw.cjs} +1 -1
- package/package.json +1 -1
- package/public/icons/svg//344/272/272/345/203/217.svg +1 -0
- package/dist/index-B3l8CoGZ.js +0 -2384
- package/dist/index-BRAUJGR3.cjs +0 -1
- package/dist/index-BjRAas3a.cjs +0 -1
- package/dist/index-Cf9NTS7v.cjs +0 -1
- package/dist/index-D3x3jleA.js +0 -654
- package/dist/index-DWTsFx-2.cjs +0 -1
- package/dist/index-Dc8TgzRR.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-BKfBwnMQ.cjs +0 -37
- package/dist/index.vue_vue_type_style_index_1_lang-f2wxl9Ai.cjs +0 -32
|
@@ -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-
|
|
4
|
-
import {
|
|
5
|
-
import { g as v, s as c } from "./index-
|
|
6
|
-
import { s as T } from "./index-
|
|
3
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CuWDdCiy.js";
|
|
4
|
+
import { as as h, ar as C, a as _, u as k, at as S } from "./index.vue_vue_type_style_index_1_lang-DwvuVXW6.js";
|
|
5
|
+
import { g as v, s as c } from "./index-HduGypr9.js";
|
|
6
|
+
import { s as T } from "./index-OTxJnh9Z.js";
|
|
7
7
|
const A = _(), { itemData: B } = c(A), u = s(0), I = s([
|
|
8
8
|
{
|
|
9
9
|
label: "机构名称",
|
|
@@ -158,13 +158,13 @@ const O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
158
158
|
queryFormData: I,
|
|
159
159
|
structureId: u,
|
|
160
160
|
tempDeptPageData: j
|
|
161
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
161
|
+
}, Symbol.toStringTag, { value: "Module" })), E = { class: "role-wrapper" }, G = /* @__PURE__ */ m({
|
|
162
162
|
__name: "index",
|
|
163
163
|
setup(e) {
|
|
164
164
|
const t = y({ ...O }), l = k(), { activeMenuPath: a } = c(l);
|
|
165
165
|
return i(async () => {
|
|
166
166
|
t.structureId = await S(a.value);
|
|
167
|
-
}), (o, n) => (D(), g("div",
|
|
167
|
+
}), (o, n) => (D(), g("div", E, [
|
|
168
168
|
f(T, {
|
|
169
169
|
itemData: t.pageData,
|
|
170
170
|
onChange: t.handleItemDataChange
|
|
@@ -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-D0XPyuy4.cjs"),n=require("./index.vue_vue_type_style_index_1_lang-CrmWclPR.cjs"),a=require("./index-Dv1G67_Q.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,11 +1,11 @@
|
|
|
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-BZwQB2HO.js";
|
|
3
|
+
import { s as w, a as L } from "./index-DiTYB-a4.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-
|
|
8
|
-
import { u as N, s as U } from "./index-
|
|
5
|
+
import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CuWDdCiy.js";
|
|
6
|
+
import { d as E } from "./index-gPnrvvE9.js";
|
|
7
|
+
import "./index.vue_vue_type_style_index_1_lang-DwvuVXW6.js";
|
|
8
|
+
import { u as N, s as U } from "./index-HduGypr9.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({
|
|
11
11
|
__name: "index",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-D0XPyuy4.cjs"),n=require("./index-TKouySTA.cjs"),u=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),r=e.ref([]),i=e.computed(()=>[{key:"extraButton",contents:[{label:"清空",background:"#f56c6c",color:"#ffffff"}]},{key:"rowButton",contents:[]},{key:"header",contents:[{label:"模块名称",prop:"module",filterable:!0},{label:"操作类型",prop:"type",filterable:!0},{label:"账号",prop:"account",filterable:!0},{label:"姓名",prop:"userName",filterable:!0},{label:"时间",prop:"timeStamp",sortable:!0}]},{key:"tableContents",contents:r.value}]),p=Object.freeze(Object.defineProperty({__proto__:null,pageData:i,tableData:r},Symbol.toStringTag,{value:"Module"})),b={class:"log-wrap"},d=e.defineComponent({__name:"index",setup(_){const t=e.reactive({...p});e.onMounted(async()=>{t.tableData=await n.getLogTableDataAsync("operate")});const c=l=>{var a;n.clickButton(l,(a=t.tableData)==null?void 0:a.map(o=>o.id),o=>{o&&(t.tableData=[])})};return(l,a)=>(e.openBlock(),e.createElementBlock("div",b,[e.createVNode(s.ssTable,{itemData:t.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:c},null,8,["itemData"])]))}}),f=u._export_sfc(d,[["__scopeId","data-v-3d3b471d"]]);exports.default=f;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as y, ref as C, onMounted as _, createElementBlock as c, openBlock as g, createVNode as v } from "vue";
|
|
2
|
-
import { p as h, s as k, c as m, g as x } from "./index-
|
|
3
|
-
import { u as M } from "./index.vue_vue_type_style_index_1_lang-
|
|
4
|
-
import { s as D } from "./index-
|
|
5
|
-
import { a as T, d as S, f as w } from "./index-
|
|
2
|
+
import { p as h, s as k, c as m, g as x } from "./index-HduGypr9.js";
|
|
3
|
+
import { u as M } from "./index.vue_vue_type_style_index_1_lang-DwvuVXW6.js";
|
|
4
|
+
import { s as D } from "./index-OTxJnh9Z.js";
|
|
5
|
+
import { a as T, d as S, f as w } from "./index-CZu3TggJ.js";
|
|
6
6
|
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const N = { class: "menu-content" }, E = /* @__PURE__ */ y({
|
|
8
8
|
__name: "index",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),_=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),_=require("./index-C9_Cxm8G.cjs"),r=require("./index-Dv1G67_Q.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=(t,l,a)=>{var n,p,u,g;let e=l;e.title.text=(a==null?void 0:a.chartName)??"",e.xAxis.data=(n=r.cloneDeep(t))==null?void 0:n.map(i=>i.x),e.legend.data=(u=(p=r.cloneDeep(t))==null?void 0:p[0])!=null&&u.y?Object.keys(r.cloneDeep(t)[0].y):[];let o=[];return((g=e.legend.data)==null?void 0:g.length)>0&&r.cloneDeep(e.legend.data).forEach(i=>{var x;const y=(x=r.cloneDeep(t))==null?void 0:x.map(c=>{var h;return(h=c==null?void 0:c.y)==null?void 0:h[i]});o.push({name:i,type:"line",data:y})}),e.series=o,e},d=[{key:"折线图",value:{title:{text:"",left:"center",top:25,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis"},legend:{data:[]},grid:{left:"6%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",axisLabel:{interval:0},data:[]},yAxis:{type:"value"},series:[]}}],C={class:"eCharts"},D={__name:"index",props:{eChartContents:Array},setup(t){const l=t,a=s.ref({});return s.onMounted(()=>{var o;const e=l==null?void 0:l.eChartContents;a.value=m(r.cloneDeep(e==null?void 0:e.compData),(o=d==null?void 0:d.find(n=>(n==null?void 0:n.key)===(e==null?void 0:e.name)))==null?void 0:o.value,e==null?void 0:e.extraContent)}),(e,o)=>(s.openBlock(),s.createElementBlock("div",C,[s.createVNode(_.ssChart,{optionContents:a.value},null,8,["optionContents"])]))}},b=f._export_sfc(D,[["__scopeId","data-v-0440fac3"]]);exports.default=b;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as F, computed as N, ref as p, watch as $, createElementBlock as
|
|
2
|
-
import { s as H } from "./index-
|
|
3
|
-
import { d as M,
|
|
4
|
-
import { E as z } from "./index-
|
|
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-BaE0DPgC.js";
|
|
3
|
+
import { d as M, u as P } from "./threeViewerHost-BNObp9oA.js";
|
|
4
|
+
import { E as z } from "./index-HduGypr9.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-gPnrvvE9.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",
|
|
@@ -23,19 +23,23 @@ const D = { class: "avatar-model-wrap" }, G = { key: 0 }, J = /* @__PURE__ */ F(
|
|
|
23
23
|
userInfo: {
|
|
24
24
|
type: Object,
|
|
25
25
|
default: {}
|
|
26
|
+
},
|
|
27
|
+
clickStop: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: !0
|
|
26
30
|
}
|
|
27
31
|
},
|
|
28
32
|
emits: ["submitImage", "deleteImage"],
|
|
29
|
-
setup(
|
|
30
|
-
const
|
|
33
|
+
setup(c, { emit: A }) {
|
|
34
|
+
const s = c, i = A, y = N(() => "http://222.92.178.198:62001"), d = p(""), h = p(""), _ = p();
|
|
31
35
|
$(() => {
|
|
32
36
|
var n;
|
|
33
|
-
return (n =
|
|
37
|
+
return (n = s.userInfo) == null ? void 0 : n.头像;
|
|
34
38
|
}, (n) => {
|
|
35
39
|
h.value = y.value + "/" + n;
|
|
36
40
|
}, { immediate: !0 });
|
|
37
41
|
const C = async () => {
|
|
38
|
-
if (!(
|
|
42
|
+
if (!(s != null && s.disabled))
|
|
39
43
|
try {
|
|
40
44
|
const n = await M({
|
|
41
45
|
url: d.value
|
|
@@ -44,15 +48,15 @@ const D = { class: "avatar-model-wrap" }, G = { key: 0 }, J = /* @__PURE__ */ F(
|
|
|
44
48
|
if (n.status !== 200)
|
|
45
49
|
throw new Error(`HTTP error! status: ${n.status}`);
|
|
46
50
|
const f = new Blob([n.data], { type: n.headers["content-type"] });
|
|
47
|
-
|
|
51
|
+
_.value = f;
|
|
48
52
|
} catch (n) {
|
|
49
53
|
throw new Error(n);
|
|
50
54
|
}
|
|
51
55
|
}, U = async (n) => {
|
|
52
|
-
var f, g, e, t,
|
|
56
|
+
var f, g, e, t, l;
|
|
53
57
|
try {
|
|
54
58
|
const o = await P(n);
|
|
55
|
-
((f = o == null ? void 0 : o.data) == null ? void 0 : f.code) === 200 && (h.value = y.value + "/" + ((e = (g = o.data) == null ? void 0 : g.result) == null ? void 0 : e.url), d.value = (
|
|
59
|
+
((f = o == null ? void 0 : o.data) == null ? void 0 : f.code) === 200 && (h.value = y.value + "/" + ((e = (g = o.data) == null ? void 0 : g.result) == null ? void 0 : e.url), d.value = (l = (t = o.data) == null ? void 0 : t.result) == null ? void 0 : l.url, i("submitImage", d.value));
|
|
56
60
|
} catch (o) {
|
|
57
61
|
z.error(o);
|
|
58
62
|
}
|
|
@@ -65,28 +69,29 @@ const D = { class: "avatar-model-wrap" }, G = { key: 0 }, J = /* @__PURE__ */ F(
|
|
|
65
69
|
};
|
|
66
70
|
return (n, f) => {
|
|
67
71
|
var g, e;
|
|
68
|
-
return b(),
|
|
72
|
+
return b(), B("div", D, [
|
|
69
73
|
v(H, {
|
|
70
74
|
avatarUrl: h.value,
|
|
71
|
-
avatarBlob:
|
|
72
|
-
size:
|
|
75
|
+
avatarBlob: _.value,
|
|
76
|
+
size: c.size,
|
|
73
77
|
onClickAvatar: C,
|
|
74
78
|
onSubmitImage: U,
|
|
75
|
-
onDeleteImage: w
|
|
79
|
+
onDeleteImage: w,
|
|
80
|
+
clickStop: s == null ? void 0 : s.clickStop
|
|
76
81
|
}, {
|
|
77
|
-
avatarDefault:
|
|
78
|
-
var t,
|
|
82
|
+
avatarDefault: u(() => {
|
|
83
|
+
var t, l, o, r;
|
|
79
84
|
return [
|
|
80
|
-
T(I(((
|
|
85
|
+
T(I(((l = (t = c.userInfo) == null ? void 0 : t.account) == null ? void 0 : l.charAt(0)) || ((r = (o = c.userInfo) == null ? void 0 : o.姓名) == null ? void 0 : r.charAt(0)) || ""), 1)
|
|
81
86
|
];
|
|
82
87
|
}),
|
|
83
88
|
_: 1
|
|
84
|
-
}, 8, ["avatarUrl", "avatarBlob", "size"]),
|
|
85
|
-
|
|
89
|
+
}, 8, ["avatarUrl", "avatarBlob", "size", "clickStop"]),
|
|
90
|
+
c.disabled ? j("", !0) : (b(), B("span", G, I(((g = c.userInfo) == null ? void 0 : g.account) || ((e = c.userInfo) == null ? void 0 : e.账号) || "未知"), 1))
|
|
86
91
|
]);
|
|
87
92
|
};
|
|
88
93
|
}
|
|
89
|
-
}), oe = /* @__PURE__ */ V(J, [["__scopeId", "data-v-
|
|
94
|
+
}), oe = /* @__PURE__ */ V(J, [["__scopeId", "data-v-747bdfb7"]]), K = /* @__PURE__ */ F({
|
|
90
95
|
__name: "index",
|
|
91
96
|
props: {
|
|
92
97
|
itemData: {
|
|
@@ -103,68 +108,68 @@ const D = { class: "avatar-model-wrap" }, G = { key: 0 }, J = /* @__PURE__ */ F(
|
|
|
103
108
|
}
|
|
104
109
|
},
|
|
105
110
|
emits: ["clickSignButton", "clickSubmitSign", "beforeDestroy"],
|
|
106
|
-
setup(
|
|
107
|
-
const
|
|
108
|
-
|
|
109
|
-
},
|
|
110
|
-
|
|
111
|
+
setup(c, { emit: A }) {
|
|
112
|
+
const s = c, i = p({}), y = p([]), d = A, h = (e) => {
|
|
113
|
+
i.value.dialogShow = (e == null ? void 0 : e.label) === "电子签名", d("clickSignButton", e);
|
|
114
|
+
}, _ = () => {
|
|
115
|
+
i.value.dialogShow = !1, d("beforeDestroy");
|
|
111
116
|
}, C = N(() => "http://222.92.178.198:62001"), U = (e) => {
|
|
112
117
|
var a;
|
|
113
|
-
const t = e.split(","),
|
|
118
|
+
const t = e.split(","), l = (a = t == null ? void 0 : t[0]) == null ? void 0 : a.match(/:(.*?);/)[1], o = atob(t[1]);
|
|
114
119
|
let r = o.length;
|
|
115
120
|
const m = new Uint8Array(r);
|
|
116
121
|
for (; r--; )
|
|
117
122
|
m[r] = o.charCodeAt(r);
|
|
118
|
-
return new Blob([m], { type:
|
|
123
|
+
return new Blob([m], { type: l });
|
|
119
124
|
}, w = async (e) => {
|
|
120
|
-
var t,
|
|
125
|
+
var t, l, o;
|
|
121
126
|
try {
|
|
122
127
|
const r = await P(e);
|
|
123
|
-
((t = r == null ? void 0 : r.data) == null ? void 0 : t.code) === 200 && d("clickSubmitSign", (o = (
|
|
128
|
+
((t = r == null ? void 0 : r.data) == null ? void 0 : t.code) === 200 && d("clickSubmitSign", (o = (l = r.data) == null ? void 0 : l.result) == null ? void 0 : o.url);
|
|
124
129
|
} catch (r) {
|
|
125
130
|
z.error(r);
|
|
126
131
|
}
|
|
127
132
|
}, n = p(""), f = (e) => {
|
|
128
|
-
n.value = e,
|
|
129
|
-
const t = new FormData(),
|
|
130
|
-
t.append("file",
|
|
133
|
+
n.value = e, i.value.dialogShow = !1;
|
|
134
|
+
const t = new FormData(), l = U(e);
|
|
135
|
+
t.append("file", l, "image.png"), w(t);
|
|
131
136
|
}, g = (e) => {
|
|
132
137
|
const t = new FormData();
|
|
133
138
|
t.append("file", e == null ? void 0 : e.file), w(t);
|
|
134
139
|
};
|
|
135
|
-
return $(() =>
|
|
136
|
-
var
|
|
137
|
-
n.value = "", (
|
|
140
|
+
return $(() => s == null ? void 0 : s.itemData, (e) => {
|
|
141
|
+
var l, o, r, m;
|
|
142
|
+
n.value = "", (l = i.value) != null && l.dialogShow && (i.value.dialogShow = !1);
|
|
138
143
|
const t = (o = e == null ? void 0 : e.find((a) => (a == null ? void 0 : a.key) === "signConfig")) == null ? void 0 : o.contents;
|
|
139
144
|
t && Object.keys(t).forEach((a) => {
|
|
140
145
|
(t[a] === void 0 || t[a] === null || t[a] === "") && delete t[a];
|
|
141
|
-
}),
|
|
146
|
+
}), i.value = (r = e == null ? void 0 : e.find((a) => (a == null ? void 0 : a.key) === "signConfig")) == null ? void 0 : r.contents, y.value = (m = e == null ? void 0 : e.find((a) => (a == null ? void 0 : a.key) === "signTypeList")) == null ? void 0 : m.contents;
|
|
142
147
|
}, {
|
|
143
148
|
immediate: !0
|
|
144
149
|
}), (e, t) => {
|
|
145
|
-
const
|
|
150
|
+
const l = k("el-empty"), o = k("el-image"), r = k("el-button"), m = k("el-upload");
|
|
146
151
|
return b(), x(W, {
|
|
147
|
-
signPadInfo:
|
|
148
|
-
onBeforeDestroy:
|
|
152
|
+
signPadInfo: i.value,
|
|
153
|
+
onBeforeDestroy: _,
|
|
149
154
|
onClickSubmitSign: f
|
|
150
155
|
}, {
|
|
151
|
-
signatureRender:
|
|
152
|
-
var a,
|
|
156
|
+
signatureRender: u(() => {
|
|
157
|
+
var a, S;
|
|
153
158
|
return [
|
|
154
159
|
R("div", {
|
|
155
160
|
class: "signature-render",
|
|
156
|
-
style: q({ width: `${(a =
|
|
161
|
+
style: q({ width: `${(a = i.value) == null ? void 0 : a.signPadWidth}%` })
|
|
157
162
|
}, [
|
|
158
163
|
v(o, {
|
|
159
|
-
src: n.value ? n.value : C.value + "/" + ((
|
|
164
|
+
src: n.value ? n.value : C.value + "/" + ((S = c.userInfo) == null ? void 0 : S.签名),
|
|
160
165
|
fit: "contain"
|
|
161
166
|
}, {
|
|
162
|
-
error:
|
|
163
|
-
v(
|
|
167
|
+
error: u(() => [
|
|
168
|
+
v(l, {
|
|
164
169
|
"image-size": 60,
|
|
165
170
|
description: " "
|
|
166
171
|
}, {
|
|
167
|
-
image:
|
|
172
|
+
image: u(() => [
|
|
168
173
|
v(E, { name: "emptyImg" })
|
|
169
174
|
]),
|
|
170
175
|
_: 1
|
|
@@ -175,29 +180,29 @@ const D = { class: "avatar-model-wrap" }, G = { key: 0 }, J = /* @__PURE__ */ F(
|
|
|
175
180
|
], 4)
|
|
176
181
|
];
|
|
177
182
|
}),
|
|
178
|
-
signatureTypes:
|
|
179
|
-
(b(!0),
|
|
180
|
-
var
|
|
181
|
-
return b(),
|
|
183
|
+
signatureTypes: u(() => [
|
|
184
|
+
(b(!0), B(L, null, O(y.value, (a) => {
|
|
185
|
+
var S;
|
|
186
|
+
return b(), B("div", {
|
|
182
187
|
key: a.label,
|
|
183
188
|
class: "signature-button"
|
|
184
189
|
}, [
|
|
185
|
-
(
|
|
190
|
+
(S = a.label) != null && S.includes("上传") ? (b(), x(m, {
|
|
186
191
|
key: 0,
|
|
187
192
|
ref_for: !0,
|
|
188
193
|
ref: "uploadRef",
|
|
189
194
|
"http-request": g,
|
|
190
195
|
"show-file-list": !1
|
|
191
196
|
}, {
|
|
192
|
-
trigger:
|
|
197
|
+
trigger: u(() => [
|
|
193
198
|
v(r, {
|
|
194
199
|
disabled: a.disabled,
|
|
195
200
|
id: "themeButton"
|
|
196
201
|
}, {
|
|
197
|
-
default:
|
|
202
|
+
default: u(() => [
|
|
198
203
|
T(I(a.label), 1)
|
|
199
204
|
]),
|
|
200
|
-
icon:
|
|
205
|
+
icon: u(() => [
|
|
201
206
|
v(E, {
|
|
202
207
|
name: a.icon ?? ""
|
|
203
208
|
}, null, 8, ["name"])
|
|
@@ -212,10 +217,10 @@ const D = { class: "avatar-model-wrap" }, G = { key: 0 }, J = /* @__PURE__ */ F(
|
|
|
212
217
|
disabled: a.disabled,
|
|
213
218
|
onClick: (Q) => h(a)
|
|
214
219
|
}, {
|
|
215
|
-
default:
|
|
220
|
+
default: u(() => [
|
|
216
221
|
T(I(a.label), 1)
|
|
217
222
|
]),
|
|
218
|
-
icon:
|
|
223
|
+
icon: u(() => [
|
|
219
224
|
v(E, {
|
|
220
225
|
name: a.icon ?? ""
|
|
221
226
|
}, null, 8, ["name"])
|