ss-component-new 1.3.78 → 1.3.80

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.
Files changed (80) hide show
  1. package/dist/{MTLLoader-Bkr7rTJW.js → MTLLoader-DcC1T2R-.js} +1 -1
  2. package/dist/{OrbitControls-goGQ9Lfs.js → OrbitControls-cVaf6msP.js} +1 -1
  3. package/dist/{URDFLoader-d1AzVQ5F.js → URDFLoader-CQ8lAP5N.js} +2 -2
  4. package/dist/{animationData-Sok20fOI.js → animationData-CTeDjcic.js} +2 -2
  5. package/dist/{array-CCxIPliQ.cjs → array-8_OZbk2v.cjs} +1 -1
  6. package/dist/{array-BkHYCyls.js → array-CEU-aUH0.js} +5 -5
  7. package/dist/{iconfont-CJoblcL2.js → iconfont-CEG9Z6Me.js} +2 -2
  8. package/dist/{index-Dld88iXe.js → index-6BIWxNNp.js} +1 -1
  9. package/dist/{index-M_FLMoBh.cjs → index-6WBJezE7.cjs} +1 -1
  10. package/dist/{index-BIbLwf-J.cjs → index-8Z4IsZZv.cjs} +1 -1
  11. package/dist/{index-CNLUhFlr.js → index-B7VdpJDk.js} +2 -2
  12. package/dist/{index-Bj7H-CHU.js → index-BCWnEKxi.js} +3 -3
  13. package/dist/{index-DmeZpSGM.js → index-BG8jt-Mj.js} +5 -5
  14. package/dist/{index-BQWGBLrD.cjs → index-BjWZWOgD.cjs} +1 -1
  15. package/dist/{index-KEXDCkKc.js → index-BlB_bACw.js} +560 -556
  16. package/dist/{index-CGpIY6jB.js → index-BqR1xrMr.js} +2052 -2047
  17. package/dist/{index-AHbRUQqE.cjs → index-Btrq5Gn1.cjs} +1 -1
  18. package/dist/{index-CIGrCpB_.js → index-BuBXET-y.js} +7 -7
  19. package/dist/{index-BVh3Ylgt.cjs → index-BzFG5s7n.cjs} +1 -1
  20. package/dist/index-C1Uh8jCE.js +12930 -0
  21. package/dist/index-CA1feDx6.cjs +1 -0
  22. package/dist/{index-CWY9HxrG.js → index-CA7UCEkN.js} +1 -1
  23. package/dist/{index-rCV_Ea-P.js → index-CGBpbw73.js} +1 -1
  24. package/dist/{index-BgKqiFcg.cjs → index-CKURWd0H.cjs} +1 -1
  25. package/dist/{index-t9jd4l9Q.js → index-C_cT03gR.js} +2 -2
  26. package/dist/{index-DaWzSNzm.js → index-ChQ73kWT.js} +1 -1
  27. package/dist/{index-JAXzKk2F.js → index-Clipar8b.js} +27 -27
  28. package/dist/index-CpRVq-cP.cjs +19 -0
  29. package/dist/{index-BysdHzB7.cjs → index-CqJbR7xA.cjs} +1 -1
  30. package/dist/{index-DLGxv8po.js → index-CqNjbufe.js} +3 -3
  31. package/dist/{index-ChiYyt8L.js → index-CutRrd-B.js} +2 -2
  32. package/dist/{index-DBh4mbmL.js → index-Cy0n69Vx.js} +874 -873
  33. package/dist/{index-DnMPqjrX.js → index-D-EzCf3J.js} +2 -2
  34. package/dist/{index-B7cNKrrU.cjs → index-DEoAMOtQ.cjs} +1 -1
  35. package/dist/{index-DsymuEzu.cjs → index-DFEHKFcd.cjs} +8 -8
  36. package/dist/{index-CST5bbhY.js → index-DL6GoCQo.js} +5 -5
  37. package/dist/{index-oJEY_fSN.js → index-DQFYF-JT.js} +1 -1
  38. package/dist/{index-DilZmA-l.cjs → index-DQuoAY25.cjs} +1 -1
  39. package/dist/{index-EtZh1qtq.js → index-DW_PZTFF.js} +1 -1
  40. package/dist/index-DYHt5wp1.cjs +11 -0
  41. package/dist/index-DZC_X4jJ.cjs +1 -0
  42. package/dist/{index-cKFeu5XW.cjs → index-DdwdkIUV.cjs} +1 -1
  43. package/dist/{index-BPmWhs0O.js → index-Dl3xjXba.js} +1 -1
  44. package/dist/index-DsNF-9jb.cjs +1 -0
  45. package/dist/{index-BRPLPxlx.cjs → index-DuEbn5K9.cjs} +1 -1
  46. package/dist/index-DzB3yFdI.js +466 -0
  47. package/dist/index-DzrSNzlY.js +19 -0
  48. package/dist/{index-G0nsjixB.js → index-FNrh3w2p.js} +1 -1
  49. package/dist/{index-BAelm3VG.cjs → index-GUrkhRB4.cjs} +1 -1
  50. package/dist/{index-CI8pzqx6.js → index-PL_DwseC.js} +5 -5
  51. package/dist/{index-DijK6RWK.js → index-PdNfeHpP.js} +6 -6
  52. package/dist/{index-XSETNP_T.js → index-eEPkBH_J.js} +1 -1
  53. package/dist/{index-2B1wHje0.cjs → index-vUyKT8gH.cjs} +1 -1
  54. package/dist/{index-5CdDKPk6.js → index-yhgYB2mn.js} +2 -2
  55. package/dist/{index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-DljCMBcU.js → index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-CP92dvJu.js} +1 -1
  56. package/dist/{index.vue_vue_type_style_index_1_lang-DDUoM--M.js → index.vue_vue_type_style_index_1_lang-B-i2NlLm.js} +4 -4
  57. package/dist/{main-DDI-kRzh.cjs → main-BGQ7ZbRn.cjs} +1 -1
  58. package/dist/{main-DKugsEJQ.js → main-vDQTmc2j.js} +4 -4
  59. package/dist/{menuIndex-BvSKgV5f.js → menuIndex-C-vOSUnB.js} +1 -1
  60. package/dist/ss-component.cjs +1 -1
  61. package/dist/ss-component.css +2 -2
  62. package/dist/ss-component.js +10 -10
  63. package/dist/ss-component2.cjs +1 -1
  64. package/dist/ss-component2.js +12 -12
  65. package/dist/{threeModel-BC_JZ1RV.cjs → threeModel-BFRYVMqO.cjs} +1 -1
  66. package/dist/{threeModel-BwWSWObs.js → threeModel-DFtMuwnG.js} +5 -5
  67. package/dist/{threePreview-CfyAicAQ.js → threePreview-zWwjj8dj.js} +4 -4
  68. package/dist/{threeSceneView-Dbr2KLMM.js → threeSceneView-DUBgUbZa.js} +10 -10
  69. package/dist/{threeSceneViewForCPMPIP-tPswynXd.js → threeSceneViewForCPMPIP-Bk0ih2-7.js} +8 -8
  70. package/dist/{threeTrackPathView-CZt3mY2y.js → threeTrackPathView-CoWPetyS.js} +4 -4
  71. package/dist/{threeViewerHost-D2qSyCw-.js → threeViewerHost-BaZw0MrX.js} +3 -3
  72. package/dist/{urdfTree-BCj0sPXo.js → urdfTree-CGAeYKn8.js} +1 -1
  73. package/dist/{workpieceTreePanel-CrpY18jo.js → workpieceTreePanel-BwtqOOAo.js} +4 -4
  74. package/package.json +1 -1
  75. package/dist/index-BFvOrU__.cjs +0 -19
  76. package/dist/index-BQ5LLLCI.cjs +0 -1
  77. package/dist/index-CM8Na0Nb.js +0 -12905
  78. package/dist/index-CjCqvZ07.cjs +0 -11
  79. package/dist/index-Cuw9DLEb.cjs +0 -1
  80. package/dist/index-D0aKEqnU.js +0 -476
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./index-D8k54p_x.cjs"),_=require("./index-BFvOrU__.cjs"),m=require("./index-eUZKu-7F.cjs"),h=require("./index-DsymuEzu.cjs"),l=require("./index-fwa9LBX5.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={class:"menu-module"},k={class:"table-wrap","element-loading-text":"加载中..."},v={class:"module-dialog-default"},x=e.defineComponent({__name:"index",setup(b){const t=e.reactive({...p.State}),a=e.ref(null),c=l.useMenuState(l.pinia),{configMenu:n}=l.storeToRefs(c);return e.onMounted(()=>{var i;t.formatFormData(n.value),e.nextTick(()=>{var o,r;(r=a.value)==null||r.setCurrentKey((o=n.value)==null?void 0:o.path),c.setActiveMenuPath("/平台管理/菜单管理")}),n.value&&t.getInitialSubStructure((i=n.value)==null?void 0:i.path)}),(i,o)=>{const r=e.resolveComponent("el-tree"),s=e.resolveComponent("el-splitter-panel"),u=e.resolveComponent("el-splitter"),d=e.resolveComponent("el-button"),g=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",f,[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(s,{size:208,class:"tree-wrap",min:200},{default:e.withCtx(()=>[e.createVNode(r,{ref_key:"treeRef",ref:a,data:t.treeData,"expand-on-click-node":!1,"node-key":"path",props:{children:"children",label:"label",path:"path"},"highlight-current":"","default-expand-all":"","check-on-click-leaf":!1,"check-strictly":"",onNodeClick:t.clickNodeTrigger},null,8,["data","onNodeClick"])]),_:1}),e.createVNode(s,{min:500},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",k,[e.createVNode(_.ssTable,{itemData:t.menuPageData,changedContent:t.changedRow,operatingForm:t.operatingForm,onOnFormChange:t.changeTrigger,onChange:t.handleItemDataChange,onClickTrigger:t.clickTrigger,onOnButtonClick:t.clickRowButton},null,8,["itemData","changedContent","operatingForm","onOnFormChange","onChange","onClickTrigger","onOnButtonClick"])])),[[g,t.tableLoading]])]),_:1})]),_:1}),e.createVNode(m.ssDialog,{class:"module-dialog",title:t.dialogInfo.title,visible:t.dialogInfo.show,width:t.dialogInfo.width,onBeforeDestroy:t.beforeDialogDestroy},{default:e.withCtx(()=>[e.createElementVNode("div",v,[e.createVNode(h.ssForm,{rowContents:t.renderFormData,isEnableWrap:!1,isEdit:!0,onChange:t.changeTrigger,onClickTrigger:t.clickTrigger},null,8,["rowContents","onChange","onClickTrigger"])])]),footer:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(d,{onClick:t.beforeDialogDestroy,id:"themeBorderButton"},{default:e.withCtx(()=>o[0]||(o[0]=[e.createTextVNode("取消")])),_:1,__:[0]},8,["onClick"]),e.createVNode(d,{id:"themeButton",onClick:t.clickSubmitForm},{default:e.withCtx(()=>o[1]||(o[1]=[e.createTextVNode(" 确认 ")])),_:1,__:[1]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])])}}}),w=C._export_sfc(x,[["__scopeId","data-v-74868a06"]]);exports.default=w;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./index-D8k54p_x.cjs"),_=require("./index-CpRVq-cP.cjs"),m=require("./index-eUZKu-7F.cjs"),h=require("./index-DFEHKFcd.cjs"),l=require("./index-fwa9LBX5.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={class:"menu-module"},k={class:"table-wrap","element-loading-text":"加载中..."},v={class:"module-dialog-default"},x=e.defineComponent({__name:"index",setup(b){const t=e.reactive({...p.State}),a=e.ref(null),c=l.useMenuState(l.pinia),{configMenu:n}=l.storeToRefs(c);return e.onMounted(()=>{var i;t.formatFormData(n.value),e.nextTick(()=>{var o,r;(r=a.value)==null||r.setCurrentKey((o=n.value)==null?void 0:o.path),c.setActiveMenuPath("/平台管理/菜单管理")}),n.value&&t.getInitialSubStructure((i=n.value)==null?void 0:i.path)}),(i,o)=>{const r=e.resolveComponent("el-tree"),s=e.resolveComponent("el-splitter-panel"),u=e.resolveComponent("el-splitter"),d=e.resolveComponent("el-button"),g=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",f,[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(s,{size:208,class:"tree-wrap",min:200},{default:e.withCtx(()=>[e.createVNode(r,{ref_key:"treeRef",ref:a,data:t.treeData,"expand-on-click-node":!1,"node-key":"path",props:{children:"children",label:"label",path:"path"},"highlight-current":"","default-expand-all":"","check-on-click-leaf":!1,"check-strictly":"",onNodeClick:t.clickNodeTrigger},null,8,["data","onNodeClick"])]),_:1}),e.createVNode(s,{min:500},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",k,[e.createVNode(_.ssTable,{itemData:t.menuPageData,changedContent:t.changedRow,operatingForm:t.operatingForm,onOnFormChange:t.changeTrigger,onChange:t.handleItemDataChange,onClickTrigger:t.clickTrigger,onOnButtonClick:t.clickRowButton},null,8,["itemData","changedContent","operatingForm","onOnFormChange","onChange","onClickTrigger","onOnButtonClick"])])),[[g,t.tableLoading]])]),_:1})]),_:1}),e.createVNode(m.ssDialog,{class:"module-dialog",title:t.dialogInfo.title,visible:t.dialogInfo.show,width:t.dialogInfo.width,onBeforeDestroy:t.beforeDialogDestroy},{default:e.withCtx(()=>[e.createElementVNode("div",v,[e.createVNode(h.ssForm,{rowContents:t.renderFormData,isEnableWrap:!1,isEdit:!0,onChange:t.changeTrigger,onClickTrigger:t.clickTrigger},null,8,["rowContents","onChange","onClickTrigger"])])]),footer:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(d,{onClick:t.beforeDialogDestroy,id:"themeBorderButton"},{default:e.withCtx(()=>o[0]||(o[0]=[e.createTextVNode("取消")])),_:1,__:[0]},8,["onClick"]),e.createVNode(d,{id:"themeButton",onClick:t.clickSubmitForm},{default:e.withCtx(()=>o[1]||(o[1]=[e.createTextVNode(" 确认 ")])),_:1,__:[1]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])])}}}),w=C._export_sfc(x,[["__scopeId","data-v-74868a06"]]);exports.default=w;
@@ -0,0 +1,466 @@
1
+ import { createElementBlock as I, openBlock as K, createElementVNode as b, renderSlot as $, defineComponent as M, ref as F, resolveComponent as E, createVNode as h, withCtx as d, unref as R, reactive as q, watch as O, onBeforeUnmount as G, onMounted as J, toDisplayString as S, createTextVNode as V } from "vue";
2
+ import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ import { b as j, p as H, s as Q } from "./index-Clipar8b.js";
4
+ import { v as X } from "./index-DzrSNzlY.js";
5
+ import { E as U, s as Y, a as Z } from "./index-K1n-pA4G.js";
6
+ import { useRouter as ee } from "vue-router";
7
+ import { v as te } from "./index-Dl3xjXba.js";
8
+ import { l as ae, a as oe } from "./index-D9hditHi.js";
9
+ const ne = {}, se = { class: "left-wrap" }, ie = { class: "left-bg" };
10
+ function ce(C, v) {
11
+ return K(), I("div", se, [
12
+ b("div", ie, [
13
+ $(C.$slots, "img", {}, void 0, !0)
14
+ ])
15
+ ]);
16
+ }
17
+ const le = /* @__PURE__ */ B(ne, [["render", ce], ["__scopeId", "data-v-9b7ee6c9"]]), x = {
18
+ ACCOUNT: "account",
19
+ FACE: "face"
20
+ }, re = { class: "right-wrap" }, de = { class: "tab-content" }, ue = { class: "tab-tips" }, me = { class: "tab-content" }, fe = { class: "tab-tips" }, ge = /* @__PURE__ */ M({
21
+ __name: "index",
22
+ props: {
23
+ tabList: {
24
+ type: Array,
25
+ default: []
26
+ },
27
+ loading: {
28
+ type: Boolean,
29
+ default: !1
30
+ }
31
+ },
32
+ emits: ["clickLogin", "handleTabChange"],
33
+ setup(C, { emit: v }) {
34
+ const t = F(x.ACCOUNT), e = v, f = () => {
35
+ e("clickLogin", t.value);
36
+ }, y = (o) => {
37
+ e("handleTabChange", o);
38
+ };
39
+ return (o, r) => {
40
+ const n = E("el-button"), g = E("el-tab-pane"), u = E("el-tabs");
41
+ return K(), I("div", re, [
42
+ h(u, {
43
+ modelValue: t.value,
44
+ "onUpdate:modelValue": r[0] || (r[0] = (m) => t.value = m),
45
+ class: "right-tabs",
46
+ onTabChange: y
47
+ }, {
48
+ default: d(() => [
49
+ h(g, {
50
+ name: R(x).ACCOUNT
51
+ }, {
52
+ label: d(() => [
53
+ $(o.$slots, "tabLabel1", {}, void 0, !0)
54
+ ]),
55
+ default: d(() => [
56
+ b("div", de, [
57
+ $(o.$slots, "tabContent1", {}, void 0, !0)
58
+ ]),
59
+ b("div", {
60
+ class: "tab-button special",
61
+ onClick: f
62
+ }, [
63
+ h(n, { loading: C.loading }, {
64
+ default: d(() => [
65
+ $(o.$slots, "tabButton1", {}, void 0, !0)
66
+ ]),
67
+ _: 3
68
+ }, 8, ["loading"])
69
+ ]),
70
+ b("div", ue, [
71
+ $(o.$slots, "tabTips1", {}, void 0, !0)
72
+ ])
73
+ ]),
74
+ _: 3
75
+ }, 8, ["name"]),
76
+ h(g, {
77
+ name: R(x).FACE
78
+ }, {
79
+ label: d(() => [
80
+ $(o.$slots, "tabLabel2", {}, void 0, !0)
81
+ ]),
82
+ default: d(() => [
83
+ b("div", me, [
84
+ $(o.$slots, "tabContent2", {}, void 0, !0)
85
+ ]),
86
+ b("div", fe, [
87
+ $(o.$slots, "tabTips2", {}, void 0, !0)
88
+ ])
89
+ ]),
90
+ _: 3
91
+ }, 8, ["name"])
92
+ ]),
93
+ _: 3
94
+ }, 8, ["modelValue"])
95
+ ]);
96
+ };
97
+ }
98
+ }), pe = /* @__PURE__ */ B(ge, [["__scopeId", "data-v-8b1962f0"]]), be = { class: "account-wrap" }, ve = /* @__PURE__ */ M({
99
+ __name: "index",
100
+ props: {
101
+ activeTabName: {
102
+ type: String,
103
+ default: ""
104
+ },
105
+ isClickLogin: {
106
+ type: Boolean,
107
+ default: !1
108
+ }
109
+ },
110
+ emits: ["handleLoginFormChange"],
111
+ setup(C, { emit: v }) {
112
+ const t = C, e = q({
113
+ account: "",
114
+ password: ""
115
+ }), f = q({
116
+ account: [
117
+ { required: !0, message: "请输入账号", trigger: "blur" }
118
+ ],
119
+ password: [
120
+ { required: !0, message: "请输入密码", trigger: "blur" }
121
+ ]
122
+ }), y = F(null), o = v;
123
+ return O(() => t.isClickLogin, (r) => {
124
+ var n;
125
+ r && (t == null ? void 0 : t.activeTabName) === "account" && ((n = y.value) == null || n.validate((g) => {
126
+ var u;
127
+ for (let m in e)
128
+ e.hasOwnProperty(m) && (e[m] = (u = e[m]) == null ? void 0 : u.trim());
129
+ o("handleLoginFormChange", g, g ? e : null);
130
+ }));
131
+ }, {
132
+ immediate: !0
133
+ }), O(() => t.activeTabName, (r) => {
134
+ var n;
135
+ r === "account" && ((n = y.value) == null || n.resetFields());
136
+ }), (r, n) => {
137
+ const g = E("svg-icon"), u = E("el-input"), m = E("el-form-item"), T = E("el-form");
138
+ return K(), I("div", be, [
139
+ h(T, {
140
+ model: e,
141
+ rules: f,
142
+ ref_key: "formRef",
143
+ ref: y
144
+ }, {
145
+ default: d(() => [
146
+ h(m, {
147
+ label: "",
148
+ prop: "account"
149
+ }, {
150
+ default: d(() => [
151
+ h(u, {
152
+ class: "account-input",
153
+ modelValue: e.account,
154
+ "onUpdate:modelValue": n[0] || (n[0] = (a) => e.account = a),
155
+ placeholder: "请输入账号",
156
+ clearable: ""
157
+ }, {
158
+ prefix: d(() => [
159
+ h(g, {
160
+ name: "account",
161
+ style: { width: "15px", height: "15px" }
162
+ })
163
+ ]),
164
+ _: 1
165
+ }, 8, ["modelValue"])
166
+ ]),
167
+ _: 1
168
+ }),
169
+ h(m, {
170
+ label: "",
171
+ prop: "password"
172
+ }, {
173
+ default: d(() => [
174
+ h(u, {
175
+ class: "account-input",
176
+ modelValue: e.password,
177
+ "onUpdate:modelValue": n[1] || (n[1] = (a) => e.password = a),
178
+ type: "password",
179
+ placeholder: "请输入密码",
180
+ "show-password": "",
181
+ clearable: ""
182
+ }, {
183
+ prefix: d(() => [
184
+ h(g, {
185
+ name: "password",
186
+ style: { width: "15px", height: "15px" }
187
+ })
188
+ ]),
189
+ _: 1
190
+ }, 8, ["modelValue"])
191
+ ]),
192
+ _: 1
193
+ })
194
+ ]),
195
+ _: 1
196
+ }, 8, ["model", "rules"])
197
+ ]);
198
+ };
199
+ }
200
+ }), _e = /* @__PURE__ */ B(ve, [["__scopeId", "data-v-48037c0f"]]), he = { class: "account-wrap" }, ye = { class: "video-wrap" }, Ce = /* @__PURE__ */ M({
201
+ __name: "index",
202
+ props: {
203
+ systemKey: { default: "" },
204
+ activeTabName: { default: "" },
205
+ isClickLogin: { type: Boolean, default: !1 }
206
+ },
207
+ emits: ["handleLoginFormChange"],
208
+ setup(C, { emit: v }) {
209
+ const t = C, e = v;
210
+ j(H);
211
+ const f = F(null), y = F(null);
212
+ let o = !1, r = null;
213
+ const n = async (a) => {
214
+ if (!a)
215
+ return;
216
+ const c = new FormData();
217
+ c.set("file", a), t.systemKey && c.set("systemKey", t.systemKey), console.log("Face Recognition", t.systemKey);
218
+ const L = await X(c), { data: _ } = L || {}, { user_name: w, password: k, layer: i } = (_ == null ? void 0 : _.data) || {}, l = _ == null ? void 0 : _.msg;
219
+ if (!w) {
220
+ U.warning(l || "识别失败,请重新识别!");
221
+ return;
222
+ }
223
+ e("handleLoginFormChange", !0, {
224
+ account: w,
225
+ password: k
226
+ });
227
+ }, g = () => {
228
+ if (!y.value || !f.value)
229
+ return;
230
+ const a = y.value, c = a.getContext("2d"), L = f.value;
231
+ a.width = 200, a.height = 200;
232
+ const _ = L.videoWidth || 640, w = L.videoHeight || 480, k = Math.min(200 / _, 200 / w), i = _ * k, l = w * k, p = (200 - i) / 2, s = (200 - l) / 2;
233
+ c == null || c.drawImage(L, 0, 0, _, w, p, s, i, l), a.toBlob((N) => {
234
+ if (N) {
235
+ const A = new File([N], "face.png", { type: "image/png" });
236
+ n(A);
237
+ }
238
+ }, "image/png");
239
+ }, u = async () => {
240
+ if (!f.value || o)
241
+ return;
242
+ const a = f.value;
243
+ try {
244
+ if (r = await navigator.mediaDevices.getUserMedia({
245
+ video: { facingMode: "user" },
246
+ // 前置;后置用 'environment'
247
+ audio: !1
248
+ }), a) {
249
+ const c = a;
250
+ c.srcObject = r, o = !0;
251
+ }
252
+ } catch {
253
+ U.warning("摄像头启动失败");
254
+ }
255
+ };
256
+ function m(a) {
257
+ if (a && (a.getTracks().forEach((c) => c.stop()), f.value)) {
258
+ const c = f.value;
259
+ c.srcObject = null;
260
+ }
261
+ }
262
+ const T = () => {
263
+ m(r), o = !1;
264
+ };
265
+ return O(() => t.activeTabName, (a) => {
266
+ if (a !== x.FACE) {
267
+ T();
268
+ return;
269
+ }
270
+ if (a === x.FACE && !o) {
271
+ u();
272
+ return;
273
+ }
274
+ }), G(() => {
275
+ T();
276
+ }), (a, c) => (K(), I("div", he, [
277
+ b("div", ye, [
278
+ b("video", {
279
+ class: "face-video",
280
+ ref_key: "videoRef",
281
+ ref: f,
282
+ id: "v",
283
+ autoplay: "",
284
+ playsinline: ""
285
+ }, null, 512)
286
+ ]),
287
+ b("button", {
288
+ class: "face-screenshot",
289
+ onClick: g
290
+ }, "人脸识别"),
291
+ b("canvas", {
292
+ ref_key: "canvasRef",
293
+ ref: y,
294
+ id: "canvas"
295
+ }, null, 512)
296
+ ]));
297
+ }
298
+ }), we = /* @__PURE__ */ B(Ce, [["__scopeId", "data-v-0efc65bd"]]);
299
+ function Le() {
300
+ return Y({
301
+ url: "/api/sysAuth/login",
302
+ method: "post",
303
+ data: {
304
+ account: "superadmin",
305
+ password: "1c8e7623312244c1feb677732278fb8b2af6af1a5335fdaebbdb2720137b372b7871292d11165b83b2967b9c39fa37027d63d37a2f36d764257b566dcfa99f334faa8995301601aec549adf39aef8d89c8788da03a9164937a5f73af20a15ea60d47c7cf01cf",
306
+ tenantId: -1,
307
+ code: "",
308
+ codeId: 0
309
+ }
310
+ });
311
+ }
312
+ const W = j(H), Te = async (C, v) => {
313
+ var f, y, o, r, n, g, u, m, T, a, c, L, _, w, k, i, l, p;
314
+ let t = Object.values(C), e = await ae({
315
+ userName: (f = t == null ? void 0 : t[0]) == null ? void 0 : f.trim(),
316
+ password: (y = t == null ? void 0 : t[1]) == null ? void 0 : y.trim()
317
+ });
318
+ if (((o = e == null ? void 0 : e.data) == null ? void 0 : o.status) === 200 && ((n = (r = e == null ? void 0 : e.data) == null ? void 0 : r.result) == null ? void 0 : n.length) <= 0 && (e = await oe({
319
+ userName: (g = t == null ? void 0 : t[0]) == null ? void 0 : g.trim(),
320
+ password: (u = t == null ? void 0 : t[1]) == null ? void 0 : u.trim(),
321
+ path: "系统管理/用户管理",
322
+ platId: v
323
+ // platId: '785771438178373'
324
+ })), ((m = e == null ? void 0 : e.data) == null ? void 0 : m.status) === 200 && ((a = (T = e == null ? void 0 : e.data) == null ? void 0 : T.result) == null ? void 0 : a.length) > 0) {
325
+ sessionStorage.setItem("systemKey", v && v !== "" ? v : (_ = (L = (c = e == null ? void 0 : e.data) == null ? void 0 : c.result) == null ? void 0 : L[0]) == null ? void 0 : _.plat_id);
326
+ let s = (k = (w = e == null ? void 0 : e.data) == null ? void 0 : w.result) == null ? void 0 : k[0];
327
+ return s.plat_id = s.plat_id ?? v, W.setLoginUserInfo(s), W.setSystemKey(v && v !== "" ? v : (p = (l = (i = e == null ? void 0 : e.data) == null ? void 0 : i.result) == null ? void 0 : l[0]) == null ? void 0 : p.plat_id), !0;
328
+ } else
329
+ return U.error("输入的密码错误,请重新输入"), !1;
330
+ }, ke = { class: "login-wrap" }, Ne = { class: "login-body" }, $e = { class: "login-body-item left" }, Fe = { class: "title" }, Ae = { class: "login-body-item right" }, Se = /* @__PURE__ */ M({
331
+ __name: "index",
332
+ props: {
333
+ oldSystemKey: {}
334
+ },
335
+ emits: ["change"],
336
+ setup(C, { emit: v }) {
337
+ const t = C, e = ee(), f = j(H), { systemKey: y, systemInfo: o, loginUserInfo: r } = Q(f), n = F({
338
+ // sysCTitle: 'INSOFWORKS',
339
+ sysCTitle: "",
340
+ sysETitle: "",
341
+ // sysETitle: 'Dynamic Test Information System',
342
+ loginTitle: "账户密码登录",
343
+ tabs: [
344
+ {
345
+ name: "密码登录",
346
+ btnLabel: "登录",
347
+ tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
348
+ },
349
+ {
350
+ name: "人脸识别",
351
+ btnLabel: "人脸识别",
352
+ tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
353
+ },
354
+ {
355
+ name: "刷卡登录",
356
+ btnLabel: "登录",
357
+ tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
358
+ }
359
+ ]
360
+ }), g = F("account"), u = F(!1), m = F(!1), T = () => {
361
+ u.value = !0;
362
+ }, a = (i, l) => {
363
+ u.value = !1, i && _(l);
364
+ }, c = async () => {
365
+ var i, l, p;
366
+ try {
367
+ const s = await Le();
368
+ return ((i = s == null ? void 0 : s.data) == null ? void 0 : i.code) === 200 ? (sessionStorage.setItem("loginToken", (p = (l = s.data) == null ? void 0 : l.result) == null ? void 0 : p.accessToken), !0) : !1;
369
+ } catch (s) {
370
+ U.error(s);
371
+ }
372
+ }, L = async () => {
373
+ var i, l, p;
374
+ try {
375
+ const s = await Z.post("http://139.196.154.85:20024/api/sysAuth/login", {
376
+ account: "superadmin",
377
+ password: "9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",
378
+ codeId: 0,
379
+ code: ""
380
+ });
381
+ return ((i = s == null ? void 0 : s.data) == null ? void 0 : i.code) === 200 && sessionStorage.setItem("magicToken", (p = (l = s.data) == null ? void 0 : l.result) == null ? void 0 : p.accessToken), !0;
382
+ } catch {
383
+ return !0;
384
+ }
385
+ };
386
+ J(async () => {
387
+ await c();
388
+ });
389
+ const _ = async (i) => {
390
+ var N, A, P, D;
391
+ m.value = !0;
392
+ let l = [Te(i, t.oldSystemKey), c(), L()];
393
+ const p = await Promise.all(l);
394
+ (p == null ? void 0 : p.every((z) => z)) ? (await te(), e.push("/"), f.setLogRecordAsync({
395
+ type: "登录",
396
+ data: {
397
+ account: ((N = r.value) == null ? void 0 : N.account) ?? ((A = r.value) == null ? void 0 : A.账号),
398
+ userName: ((P = r.value) == null ? void 0 : P.姓名) || ((D = r.value) == null ? void 0 : D.userName) || "未知"
399
+ }
400
+ }, "/login", "login")) : m.value = !1;
401
+ }, w = (i) => {
402
+ g.value = i, u.value = !1, m.value = !1;
403
+ }, k = (i) => /^[\u4e00-\u9fa5\s,。!?《》“”【】]+$/.test(i);
404
+ return (i, l) => (K(), I("div", ke, [
405
+ b("div", Ne, [
406
+ b("div", $e, [
407
+ h(le, { class: "login-left-bg" }, {
408
+ img: d(() => {
409
+ var p, s, N, A;
410
+ return [
411
+ b("div", Fe, [
412
+ b("div", null, S(((p = R(o)) == null ? void 0 : p.EnglishName) || "ETCS"), 1),
413
+ b("div", null, S((s = R(o)) != null && s.chineseName && k((N = R(o)) == null ? void 0 : N.chineseName) ? (A = R(o)) == null ? void 0 : A.chineseName : "发动机试验管控系统"), 1)
414
+ ]),
415
+ l[0] || (l[0] = b("div", { class: "divide-line" }, null, -1))
416
+ ];
417
+ }),
418
+ _: 1
419
+ })
420
+ ]),
421
+ b("div", Ae, [
422
+ h(pe, {
423
+ loading: m.value,
424
+ onClickLogin: T,
425
+ onHandleTabChange: w
426
+ }, {
427
+ title: d(() => [
428
+ V(S(n.value.loginTitle), 1)
429
+ ]),
430
+ tabLabel1: d(() => [
431
+ V(S(n.value.tabs[0].name), 1)
432
+ ]),
433
+ tabContent1: d(() => [
434
+ h(_e, {
435
+ activeTabName: g.value,
436
+ isClickLogin: u.value,
437
+ onHandleLoginFormChange: a
438
+ }, null, 8, ["activeTabName", "isClickLogin"])
439
+ ]),
440
+ tabButton1: d(() => [
441
+ V(S(n.value.tabs[0].btnLabel), 1)
442
+ ]),
443
+ tabLabel2: d(() => [
444
+ V(S(n.value.tabs[1].name), 1)
445
+ ]),
446
+ tabContent2: d(() => [
447
+ h(we, {
448
+ systemKey: i.oldSystemKey,
449
+ activeTabName: g.value,
450
+ isClickLogin: u.value,
451
+ onHandleLoginFormChange: a
452
+ }, null, 8, ["systemKey", "activeTabName", "isClickLogin"])
453
+ ]),
454
+ tabButton2: d(() => [
455
+ V(S(n.value.tabs[1].btnLabel), 1)
456
+ ]),
457
+ _: 1
458
+ }, 8, ["loading"])
459
+ ])
460
+ ])
461
+ ]));
462
+ }
463
+ }), Me = /* @__PURE__ */ B(Se, [["__scopeId", "data-v-ca0d27a0"]]);
464
+ export {
465
+ Me as default
466
+ };
@@ -0,0 +1,19 @@
1
+ import { s as e } from "./index-K1n-pA4G.js";
2
+ function r(t) {
3
+ return e({
4
+ url: "http://139.196.154.85:20015/api/face/face-verify",
5
+ method: "post",
6
+ data: t
7
+ });
8
+ }
9
+ function o(t) {
10
+ return e({
11
+ url: "http://222.92.178.198:63002/platform/updatedata_faceURL",
12
+ method: "post",
13
+ data: t
14
+ });
15
+ }
16
+ export {
17
+ o as u,
18
+ r as v
19
+ };
@@ -1,6 +1,6 @@
1
1
  import { ref as f, computed as S, reactive as P } from "vue";
2
2
  import { ax as O, ay as $, au as B, g as R, u as j, E as T } from "./index-K1n-pA4G.js";
3
- import { s as _, b as x, H as J, u as z, p as L, c as G, d as Q, I as X } from "./index-JAXzKk2F.js";
3
+ import { s as _, b as x, G as J, u as z, p as L, c as G, H as Q, I as X } from "./index-Clipar8b.js";
4
4
  const A = x(L), { loginUserInfo: o, cryptoInfo: c } = _(A), Y = z(L), { activeMenuPath: g } = _(Y), Z = f(0), M = S(() => {
5
5
  var s, a, t, r, l, n, e, u, p, d, v;
6
6
  return [
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-fwa9LBX5.cjs"),_=require("./index-BFvOrU__.cjs"),r=require("./index-DHdrBDP4.cjs"),C=require("./index-C5pQXH0_.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const m=u.useMenuState(u.pinia),{menus:c}=u.storeToRefs(m),p=l.ref([]),f=async()=>{var i,t,n,a;const e=await C.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey")}});if(((i=e==null?void 0:e.data)==null?void 0:i.type)==="success"){let o=(n=(t=e==null?void 0:e.data)==null?void 0:t.result)==null?void 0:n.map(s=>s);return o=(a=u.cloneDeep(o))==null?void 0:a.map(s=>{var d;const b=Object.values((d=s==null?void 0:s.value)==null?void 0:d.tableData);return b.unshift({id:s==null?void 0:s.id}),b}),o}else return[]};l.onMounted(async()=>{var n;const e=await f(),t=[{key:"header",contents:[{label:"主菜单名称",formType:"Select",options:(n=u.cloneDeep(c.value))==null?void 0:n.map(a=>({label:a==null?void 0:a.title,value:a==null?void 0:a.title})),prop:"主菜单名称"},{label:"隐藏三维显示",formType:"Switch",value:!1,prop:"隐藏三维显示"},{label:"操作"}]},{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}];t.push({key:"tableContents",contents:e}),p.value=t});const y=e=>{(e==null?void 0:e.buttonName)==="新增"?r.addMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="删除"?r.deleteMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="编辑"&&r.fixMenuContent(e==null?void 0:e.singleContent)};return(e,i)=>(l.openBlock(),l.createElementBlock("div",v,[l.createVNode(_.ssTable,{itemData:p.value,class:"table-content",onChange:y},null,8,["itemData"])]))}}),h=g._export_sfc(x,[["__scopeId","data-v-26f5cadc"]]);exports.default=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-fwa9LBX5.cjs"),_=require("./index-CpRVq-cP.cjs"),r=require("./index-DHdrBDP4.cjs"),C=require("./index-C5pQXH0_.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const m=u.useMenuState(u.pinia),{menus:c}=u.storeToRefs(m),p=l.ref([]),f=async()=>{var i,t,n,a;const e=await C.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey")}});if(((i=e==null?void 0:e.data)==null?void 0:i.type)==="success"){let o=(n=(t=e==null?void 0:e.data)==null?void 0:t.result)==null?void 0:n.map(s=>s);return o=(a=u.cloneDeep(o))==null?void 0:a.map(s=>{var d;const b=Object.values((d=s==null?void 0:s.value)==null?void 0:d.tableData);return b.unshift({id:s==null?void 0:s.id}),b}),o}else return[]};l.onMounted(async()=>{var n;const e=await f(),t=[{key:"header",contents:[{label:"主菜单名称",formType:"Select",options:(n=u.cloneDeep(c.value))==null?void 0:n.map(a=>({label:a==null?void 0:a.title,value:a==null?void 0:a.title})),prop:"主菜单名称"},{label:"隐藏三维显示",formType:"Switch",value:!1,prop:"隐藏三维显示"},{label:"操作"}]},{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}];t.push({key:"tableContents",contents:e}),p.value=t});const y=e=>{(e==null?void 0:e.buttonName)==="新增"?r.addMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="删除"?r.deleteMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="编辑"&&r.fixMenuContent(e==null?void 0:e.singleContent)};return(e,i)=>(l.openBlock(),l.createElementBlock("div",v,[l.createVNode(_.ssTable,{itemData:p.value,class:"table-content",onChange:y},null,8,["itemData"])]))}}),h=g._export_sfc(x,[["__scopeId","data-v-26f5cadc"]]);exports.default=h;
@@ -1,10 +1,10 @@
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-G0nsjixB.js";
3
- import { s as w, a as L } from "./index-Bj7H-CHU.js";
2
+ import { S as I, t as x } from "./index-FNrh3w2p.js";
3
+ import { s as w, a as L } from "./index-BCWnEKxi.js";
4
4
  import "./index-BHtNKL1L.js";
5
- import "./index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-DljCMBcU.js";
6
- import { a as E } from "./index-DBh4mbmL.js";
7
- import { b as N, s as U } from "./index-JAXzKk2F.js";
5
+ import "./index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-CP92dvJu.js";
6
+ import { a as E } from "./index-Cy0n69Vx.js";
7
+ import { b as N, s as U } from "./index-Clipar8b.js";
8
8
  import "./index-K1n-pA4G.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({
@@ -1,9 +1,9 @@
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";
1
+ import { ref as s, watch as d, defineComponent as m, reactive as y, onMounted as g, createElementBlock as i, openBlock as D, createVNode as f } from "vue";
2
2
  import "./index-BHtNKL1L.js";
3
- import "./index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-DljCMBcU.js";
4
- import { g as h, h as C, a as _, s as c, u as k, i as S } from "./index-JAXzKk2F.js";
3
+ import "./index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-CP92dvJu.js";
4
+ import { f as h, h as C, a as _, s as c, u as k, g as S } from "./index-Clipar8b.js";
5
5
  import { g as v } from "./index-K1n-pA4G.js";
6
- import { s as T } from "./index-KEXDCkKc.js";
6
+ import { s as T } from "./index-BlB_bACw.js";
7
7
  const A = _(), { itemData: B } = c(A), u = s(0), I = s([
8
8
  {
9
9
  label: "机构名称",
@@ -162,9 +162,9 @@ const O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
162
162
  __name: "index",
163
163
  setup(e) {
164
164
  const t = y({ ...O }), l = k(), { activeMenuPath: a } = c(l);
165
- return i(async () => {
165
+ return g(async () => {
166
166
  t.structureId = await S(a.value);
167
- }), (o, n) => (D(), g("div", E, [
167
+ }), (o, n) => (D(), i("div", E, [
168
168
  f(T, {
169
169
  itemData: t.pageData,
170
170
  onChange: t.handleItemDataChange
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, computed as S, watch as c, onMounted as I, onUnmounted as B, resolveComponent as D, createElementBlock as K, openBlock as L, createVNode as j } from "vue";
2
- import { b as x, p as z, s as _ } from "./index-JAXzKk2F.js";
2
+ import { b as x, p as z, s as _ } from "./index-Clipar8b.js";
3
3
  import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const E = /* @__PURE__ */ v({
5
5
  __name: "index",
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),I=require("./index-BZqkclA9.cjs"),B=require("./index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-Ceq-4YAl.cjs"),x=require("./index-C5pQXH0_.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./index-DsymuEzu.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=o?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.Avatar,{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-e466982c"]]),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
+ "use strict";const e=require("vue"),I=require("./index-BZqkclA9.cjs"),B=require("./index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-Ceq-4YAl.cjs"),x=require("./index-C5pQXH0_.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./index-DFEHKFcd.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=o?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.Avatar,{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-e466982c"]]),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,6 +1,6 @@
1
1
  import { ref as n, computed as c, defineComponent as s, reactive as p, onMounted as i, createElementBlock as u, openBlock as f, createVNode as b } from "vue";
2
- import { s as m } from "./index-KEXDCkKc.js";
3
- import { g as d, c as _ } from "./index-EtZh1qtq.js";
2
+ import { s as m } from "./index-BlB_bACw.js";
3
+ import { g as d, c as _ } from "./index-DW_PZTFF.js";
4
4
  import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const l = n([]), g = c(() => [
6
6
  {
@@ -1,7 +1,7 @@
1
1
  var f2e = Object.defineProperty;
2
2
  var h2e = (r, e, t) => e in r ? f2e(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
3
  var yn = (r, e, t) => h2e(r, typeof e != "symbol" ? e + "" : e, t);
4
- import { j as Bj, k as ase, l as d2e, m as Nz, n as p2e, o as v2e, q as m2e, r as g2e, U as Uj, t as zj, v as Vj, w as p9, x as s6, y as sse, z as y2e, A as b2e, B as Hj, C as x2e, c as or, e as Oz, s as qs, p as Zs, b as nA, u as jw, a as eD } from "./index-JAXzKk2F.js";
4
+ import { i as Bj, j as ase, k as d2e, l as Nz, m as p2e, n as v2e, o as m2e, q as g2e, U as Uj, r as zj, t as Vj, v as p9, w as s6, x as sse, y as y2e, z as b2e, A as Hj, B as x2e, c as or, d as Oz, s as qs, p as Zs, b as nA, u as jw, a as eD } from "./index-Clipar8b.js";
5
5
  import { h as tD, o as Fz, j as r8, k as _2e, M as w2e, S as Wj, p as n8, q as S2e, g as tc, l as ose, E as p5, d as Gj, b as pw, f as T2e, s as Bz } from "./index-K1n-pA4G.js";
6
6
  import { ref as E2e, computed as A2e } from "vue";
7
7
  function lse(r) {
@@ -1,12 +1,12 @@
1
1
  var O3 = Object.defineProperty;
2
2
  var j3 = (c, e, n) => e in c ? O3(c, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : c[e] = n;
3
3
  var x3 = (c, e, n) => j3(c, typeof e != "symbol" ? e + "" : e, n);
4
- import { S as d3, O as m3, M as f3 } from "./MTLLoader-Bkr7rTJW.js";
5
- import { c as c3, aL as r3, ap as w3, aM as N3, aN as C3, M as $3, Q as u3, aB as F3, aO as t3, aP as k3, aQ as D3, aR as T3, ay as v3, aS as P3, az as G3, Z as Y, K as W3, V as z3, aT as H3, a2 as Q, a3 as l3, aU as K3, aD as Z3, d as Y3, aV as J3, aW as Q3, ai as L3, u as X3 } from "./index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-DljCMBcU.js";
4
+ import { S as d3, O as m3, M as f3 } from "./MTLLoader-DcC1T2R-.js";
5
+ import { c as c3, aL as r3, ap as w3, aM as N3, aN as C3, M as $3, Q as u3, aB as F3, aO as t3, aP as k3, aQ as D3, aR as T3, ay as v3, aS as P3, az as G3, Z as Y, K as W3, V as z3, aT as H3, a2 as Q, a3 as l3, aU as K3, aD as Z3, d as Y3, aV as J3, aW as Q3, ai as L3, u as X3 } from "./index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-CP92dvJu.js";
6
6
  import { a as n3, ao as e1, aw as a1, g as V3, d as i1, b as l1 } from "./index-K1n-pA4G.js";
7
- import { c as b3, s as M3, a as t1, p as g3, u as c1 } from "./index-JAXzKk2F.js";
7
+ import { c as b3, s as M3, a as t1, p as g3, u as c1 } from "./index-Clipar8b.js";
8
8
  import { ref as r1 } from "vue";
9
- import { U as o1 } from "./URDFLoader-d1AzVQ5F.js";
9
+ import { U as o1 } from "./URDFLoader-CQ8lAP5N.js";
10
10
  const X = "$R", s1 = (c) => {
11
11
  let e = c == null ? void 0 : c.contents, n = c == null ? void 0 : c.valueString, H = c == null ? void 0 : c.prop, a = c == null ? void 0 : c.headers, s;
12
12
  return Array.isArray(e) && (e == null ? void 0 : e.length) !== 1 && (e = c3(e, r3(a))), n == null || n.forEach((f) => {