ss-component-new 1.2.23 → 1.2.25

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 (143) hide show
  1. package/dist/MTLLoader-AqmsmIp6.cjs +6 -0
  2. package/dist/MTLLoader-DJNdEDx2.js +609 -0
  3. package/dist/OrbitControls-Bj5caXhQ.js +419 -0
  4. package/dist/OrbitControls-rTIa-2s-.cjs +1 -0
  5. package/dist/{animationData-Bwh55Xw6.cjs → animationData-Bc9LlHz0.cjs} +1 -1
  6. package/dist/{animationData-D0TJ-9dd.js → animationData-Ca4l4roD.js} +4 -4
  7. package/dist/array-Baxi4C30.cjs +11 -0
  8. package/dist/array-Ca6KqnNx.js +1142 -0
  9. package/dist/{dataUtil-i5X2xhin.cjs → dataUtil-Cg2dZbrV.cjs} +1 -1
  10. package/dist/{dataUtil-gEKo7CEq.js → dataUtil-DUI9Vz64.js} +2 -2
  11. package/dist/{fileUtil-GIRXMs25.cjs → fileUtil-CTTbs0aJ.cjs} +1 -1
  12. package/dist/{fileUtil-CN00xr9W.js → fileUtil-CWt--rV-.js} +1 -1
  13. package/dist/{iconfont-C9-pGpAJ.cjs → iconfont-BaUxcJrk.cjs} +1 -1
  14. package/dist/{iconfont-DTSZW2AU.js → iconfont-D886hAXy.js} +2 -2
  15. package/dist/icons/svg//345/215/225/345/205/203/345/272/223.svg +1 -0
  16. package/dist/icons/svg//346/250/241/345/236/213/347/256/241/347/220/206.svg +1 -0
  17. package/dist/icons/svg//346/265/201/347/250/213/345/272/223.svg +1 -0
  18. package/dist/icons/svg//347/225/214/351/235/242/344/277/256/346/224/271.svg +1 -0
  19. package/dist/{index-BOJUyAaV.cjs → index-1z9RrjZc.cjs} +1 -1
  20. package/dist/{index-DSlPg3dk.cjs → index-9wWF5fgR.cjs} +1 -1
  21. package/dist/index-B-I7BsZI.js +2570 -0
  22. package/dist/{index-CqYUVCh5.js → index-B-p8m73c.js} +12 -12
  23. package/dist/{index-CK54pscx.cjs → index-B1qlTlfX.cjs} +1 -1
  24. package/dist/{index-BD5yZDAq.js → index-B5iT5NR0.js} +2 -2
  25. package/dist/{index-BkIFY0hK.cjs → index-B8MyAHnT.cjs} +1 -1
  26. package/dist/{index-7oJ8Ile4.js → index-BLW6fsom.js} +1 -1
  27. package/dist/{index-DbCNaQ87.cjs → index-BMK703KG.cjs} +1 -1
  28. package/dist/{index-eH9RMVXv.cjs → index-BNYCmfv9.cjs} +1 -1
  29. package/dist/{index-ThNNBX7h.js → index-BQkk6yoU.js} +1 -1
  30. package/dist/index-BQq7Cw_K.cjs +1 -0
  31. package/dist/{index-pmcRbjPd.cjs → index-BZENxsjL.cjs} +1 -1
  32. package/dist/{index-BNYeBPmi.cjs → index-BZoOaP9C.cjs} +1 -1
  33. package/dist/{index-G_cKl_J4.js → index-B_jnPuBE.js} +275 -270
  34. package/dist/{index-XXKsLOYd.js → index-Bke5IOmW.js} +2 -2
  35. package/dist/{index-DrWIUUZK.cjs → index-BtfS9ULE.cjs} +1 -1
  36. package/dist/{index-CvC2498b.js → index-BuLPXgWU.js} +5 -5
  37. package/dist/index-BxXOWAHT.cjs +1 -0
  38. package/dist/{index-2fqHNrPg.js → index-C8OFJprL.js} +4 -4
  39. package/dist/{index-CtXpoEg0.cjs → index-C9OPT3q5.cjs} +1 -1
  40. package/dist/{index-D8Y3imz9.cjs → index-CEV2ULrI.cjs} +1 -1
  41. package/dist/{index-BTTpV9o2.js → index-CTRrKUtw.js} +14 -14
  42. package/dist/{index-CptCatmL.js → index-CYmHP5Ky.js} +48 -32
  43. package/dist/{index-Dfwm0xPp.cjs → index-Cb0d2cT8.cjs} +1 -1
  44. package/dist/{index-Cl6HMOao.js → index-CeeMzEXY.js} +1 -1
  45. package/dist/{index-tttYIzsn.cjs → index-CjI5pDiU.cjs} +1 -1
  46. package/dist/{index-DEs8s152.js → index-CmUjrEkz.js} +6 -6
  47. package/dist/index-CtE7IIJq.js +7297 -0
  48. package/dist/{index-DSchKIyh.cjs → index-CxnH4vfV.cjs} +1 -1
  49. package/dist/index-CyY9deE5.cjs +1 -0
  50. package/dist/{index-DlIkbsRf.js → index-Cyk3pWtk.js} +6 -6
  51. package/dist/index-D-eD7QhS.js +654 -0
  52. package/dist/{index-NlkdTb--.js → index-D0odjY-X.js} +4 -4
  53. package/dist/{index-B0dydZDW.js → index-D1cjMjid.js} +1 -1
  54. package/dist/index-D5gT6DCZ.cjs +1 -0
  55. package/dist/{index-CvrBt7bU.js → index-D7GiDyDn.js} +6 -6
  56. package/dist/index-D88kGgy-.cjs +1 -0
  57. package/dist/{index-DMbCaqEC.cjs → index-DEExEFRs.cjs} +13 -13
  58. package/dist/{index-DllJulGH.cjs → index-DFMKBytS.cjs} +1 -1
  59. package/dist/{index-Dm_WlV6R.js → index-DNe_JGg0.js} +1 -1
  60. package/dist/{index-Bvk4OpkL.js → index-DTCPY-4V.js} +2 -2
  61. package/dist/{index-BTfg83yY.cjs → index-DTuCopl-.cjs} +1 -1
  62. package/dist/{index-BwEfrokO.js → index-DVSVJAdn.js} +2 -2
  63. package/dist/{index-7Ru3e632.cjs → index-DYr8VySV.cjs} +1 -1
  64. package/dist/{index-BQBxzTyE.js → index-DkA_gjlb.js} +2 -2
  65. package/dist/{index-7gU0r1We.cjs → index-Dkoh6zZr.cjs} +1 -1
  66. package/dist/{index-DNs9XPOG.js → index-DpE6q48b.js} +2 -2
  67. package/dist/{index-BVFL7Z_0.js → index-DqAAn-WP.js} +5 -5
  68. package/dist/{index-DHp714Ep.cjs → index-DrgssxCP.cjs} +1 -1
  69. package/dist/{index-Bt2MaT2G.js → index-J98IKvqx.js} +6 -6
  70. package/dist/{index-C6C5VWbs.cjs → index-PNi4RMPc.cjs} +1 -1
  71. package/dist/index-XXEzSATd.js +158 -0
  72. package/dist/{index-CADH_aSQ.cjs → index-clFmHtGU.cjs} +1 -1
  73. package/dist/{index-Be1LJMUR.js → index-pFuDv6dx.js} +2 -2
  74. package/dist/{index-BuSsSHAY.js → index-sk7jYyaG.js} +2301 -2282
  75. package/dist/{index-DQ3y1xkr.cjs → index-vmURlfDn.cjs} +1 -1
  76. package/dist/{index-BXEOQo2c.cjs → index-yyc7_nsV.cjs} +1 -1
  77. package/dist/index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BCjeeJqj.cjs +5675 -0
  78. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CtycIAIT.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-aFJhRTyx.js} +41519 -48931
  79. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-De0avjy5.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-Dv39W1q4.js} +6 -6
  80. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-DhMDLOg8.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-OXHjy9ED.cjs} +1 -1
  81. package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-C4gG2WxT.cjs +56 -0
  82. package/dist/{index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-CEcxaThh.js → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-CEIVtyL9.js} +10702 -10654
  83. package/dist/index.vue_vue_type_style_index_1_lang-D0ileuYo.cjs +32 -0
  84. package/dist/index.vue_vue_type_style_index_1_lang-DOP0uVOd.cjs +5 -0
  85. package/dist/index.vue_vue_type_style_index_1_lang-DSKzPKLD.js +8262 -0
  86. package/dist/{index.vue_vue_type_style_index_1_lang-DzZEPkuk.js → index.vue_vue_type_style_index_1_lang-DkkdpQbZ.js} +1368 -1456
  87. package/dist/{isString-CELwppr9.cjs → isString-BmAegMGI.cjs} +1 -1
  88. package/dist/{isString-DvY0kl3S.js → isString-CohCsKzS.js} +1 -1
  89. package/dist/{main-DQXqHTYg.js → main-B4gwcsBp.js} +5 -5
  90. package/dist/{main-yiUkyrA7.cjs → main-HIDJ5ncj.cjs} +1 -1
  91. package/dist/ss-component.cjs +1 -1
  92. package/dist/ss-component.css +2 -2
  93. package/dist/ss-component.js +11 -11
  94. package/dist/ss-component2.cjs +1 -1
  95. package/dist/ss-component2.js +12 -12
  96. package/dist/{threeModel-BiWZCOOI.js → threeModel-LJMbJaUb.js} +5 -5
  97. package/dist/{threeModel-Cva5i9Dy.cjs → threeModel-tRhkTPHD.cjs} +1 -1
  98. package/dist/threePreview-CeCm5KTT.cjs +1 -0
  99. package/dist/{threePreview-CjFKHY3_.js → threePreview-CqWnM1XW.js} +442 -541
  100. package/dist/{threeSceneView-DM8uof_D.cjs → threeSceneView-CTChIfwR.cjs} +1 -1
  101. package/dist/{threeSceneView-DPTQ_xR-.js → threeSceneView-D2mX_5N9.js} +11 -11
  102. package/dist/{threeSceneViewForCPMPIP-D5jl1r-h.cjs → threeSceneViewForCPMPIP-C_MBwi1O.cjs} +1 -1
  103. package/dist/{threeSceneViewForCPMPIP-Bqb44i-c.js → threeSceneViewForCPMPIP-CpVcogbP.js} +10 -10
  104. package/dist/{threeTrackPathView-BvxoafSz.js → threeTrackPathView-DMTpRQTP.js} +172 -354
  105. package/dist/threeTrackPathView-Deim_dX7.cjs +371 -0
  106. package/dist/threeViewerHost-BMrWNnGK.cjs +1 -0
  107. package/dist/{threeViewerHost-CKmZPGir.js → threeViewerHost-WXqI_L3g.js} +91 -78
  108. package/dist/{urdfTree-BxuavyNQ.js → urdfTree-BX92weHU.js} +1 -1
  109. package/dist/{urdfTree-wR2vnG4s.cjs → urdfTree-CbDb_7PZ.cjs} +1 -1
  110. package/dist/{workpieceTreePanel-C2BXrv3k.cjs → workpieceTreePanel-CbTolK6t.cjs} +1 -1
  111. package/dist/{workpieceTreePanel-CSKzSdIt.js → workpieceTreePanel-Q4S9btz3.js} +18 -18
  112. package/package.json +1 -1
  113. package/public/icons/svg//345/215/225/345/205/203/345/272/223.svg +1 -0
  114. package/public/icons/svg//346/250/241/345/236/213/347/256/241/347/220/206.svg +1 -0
  115. package/public/icons/svg//346/265/201/347/250/213/345/272/223.svg +1 -0
  116. package/public/icons/svg//347/225/214/351/235/242/344/277/256/346/224/271.svg +1 -0
  117. package/dist/MTLLoader-B8MnfNfT.cjs +0 -6
  118. package/dist/MTLLoader-BD3cbBAW.js +0 -657
  119. package/dist/OrbitControls-2UHRU9Fu.cjs +0 -1
  120. package/dist/OrbitControls-D1pz0uFI.js +0 -458
  121. package/dist/array-DMPAgNcb.cjs +0 -11
  122. package/dist/array-DTXrs6ZK.js +0 -1207
  123. package/dist/index-BLwwxnzs.cjs +0 -1
  124. package/dist/index-BVdolwlx.js +0 -7293
  125. package/dist/index-Bm3FE_ss.js +0 -504
  126. package/dist/index-BpTrDbkf.js +0 -22
  127. package/dist/index-C54wX50t.cjs +0 -1
  128. package/dist/index-CFriKZ-T.cjs +0 -1
  129. package/dist/index-CsOz5vsv.cjs +0 -1
  130. package/dist/index-D4pN9YmB.js +0 -144
  131. package/dist/index-DOhvzke2.js +0 -24
  132. package/dist/index-DPX3w6cO.js +0 -2643
  133. package/dist/index-DR9beXhk.cjs +0 -1
  134. package/dist/index-Do8zI4DM.cjs +0 -1
  135. package/dist/index-dwX_BHyo.cjs +0 -1
  136. package/dist/index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D6X3fCNs.cjs +0 -5677
  137. package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-DLuOs1IZ.cjs +0 -56
  138. package/dist/index.vue_vue_type_style_index_1_lang-B0l6QIWy.js +0 -7806
  139. package/dist/index.vue_vue_type_style_index_1_lang-CC1o5rIu.cjs +0 -32
  140. package/dist/index.vue_vue_type_style_index_1_lang-Chzrrthw.cjs +0 -6
  141. package/dist/threePreview-BNvDY6xx.cjs +0 -1
  142. package/dist/threeTrackPathView-DgnuPrBe.cjs +0 -370
  143. package/dist/threeViewerHost-D80V4Cfh.cjs +0 -1
@@ -0,0 +1,654 @@
1
+ import { createElementBlock as Q, openBlock as O, createElementVNode as f, renderSlot as E, defineComponent as X, ref as B, resolveComponent as U, createVNode as b, withCtx as u, reactive as te, watch as Y, onMounted as de, unref as D, toDisplayString as L, createTextVNode as x } from "vue";
2
+ import { _ as F } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ import { a as ne, E as S, u as ue, p as pe, s as fe, b as ge, g as $ } from "./index-DNe_JGg0.js";
4
+ import { d as ye, r as ve, g as be, c as me, b as he, e as Ae, f as _e, h as we } from "./index.vue_vue_type_style_index_1_lang-DSKzPKLD.js";
5
+ import { useRouter as Ce } from "vue-router";
6
+ import { v as ke } from "./index-Bke5IOmW.js";
7
+ const Ie = {}, Ee = { class: "left-wrap" }, Se = { class: "left-bg" };
8
+ function Te(k, T) {
9
+ return O(), Q("div", Ee, [
10
+ f("div", Se, [
11
+ E(k.$slots, "img", {}, void 0, !0)
12
+ ])
13
+ ]);
14
+ }
15
+ const Ne = /* @__PURE__ */ F(Ie, [["render", Te], ["__scopeId", "data-v-9b7ee6c9"]]), Ke = { class: "right-wrap" }, Le = { class: "tab-content" }, Be = { class: "tab-tips" }, Ue = { class: "tab-content" }, Me = { class: "tab-tips" }, Re = { class: "tab-content" }, Pe = { class: "tab-tips" }, xe = /* @__PURE__ */ X({
16
+ __name: "index",
17
+ props: {
18
+ tabList: {
19
+ type: Array,
20
+ default: []
21
+ },
22
+ loading: {
23
+ type: Boolean,
24
+ default: !1
25
+ }
26
+ },
27
+ emits: ["clickLogin", "handleTabClick"],
28
+ setup(k, { emit: T }) {
29
+ const A = B("account"), d = T, v = () => {
30
+ d("clickLogin", A.value);
31
+ }, w = () => {
32
+ d("handleTabClick", A.value);
33
+ };
34
+ return (i, m) => {
35
+ const p = U("el-button"), c = U("el-tab-pane"), r = U("el-tabs");
36
+ return O(), Q("div", Ke, [
37
+ b(r, {
38
+ modelValue: A.value,
39
+ "onUpdate:modelValue": m[0] || (m[0] = (_) => A.value = _),
40
+ class: "right-tabs",
41
+ onTabClick: w
42
+ }, {
43
+ default: u(() => [
44
+ b(c, { name: "account" }, {
45
+ label: u(() => [
46
+ E(i.$slots, "tabLabel1", {}, void 0, !0)
47
+ ]),
48
+ default: u(() => [
49
+ f("div", Le, [
50
+ E(i.$slots, "tabContent1", {}, void 0, !0)
51
+ ]),
52
+ f("div", {
53
+ class: "tab-button special",
54
+ onClick: v
55
+ }, [
56
+ b(p, { loading: k.loading }, {
57
+ default: u(() => [
58
+ E(i.$slots, "tabButton1", {}, void 0, !0)
59
+ ]),
60
+ _: 3
61
+ }, 8, ["loading"])
62
+ ]),
63
+ f("div", Be, [
64
+ E(i.$slots, "tabTips1", {}, void 0, !0)
65
+ ])
66
+ ]),
67
+ _: 3
68
+ }),
69
+ b(c, { name: "face" }, {
70
+ label: u(() => [
71
+ E(i.$slots, "tabLabel2", {}, void 0, !0)
72
+ ]),
73
+ default: u(() => [
74
+ f("div", Ue, [
75
+ E(i.$slots, "tabContent2", {}, void 0, !0)
76
+ ]),
77
+ f("div", Me, [
78
+ E(i.$slots, "tabTips2", {}, void 0, !0)
79
+ ])
80
+ ]),
81
+ _: 3
82
+ }),
83
+ b(c, { name: "card" }, {
84
+ label: u(() => [
85
+ E(i.$slots, "tabLabel3", {}, void 0, !0)
86
+ ]),
87
+ default: u(() => [
88
+ f("div", Re, [
89
+ E(i.$slots, "tabContent3", {}, void 0, !0)
90
+ ]),
91
+ f("div", {
92
+ class: "tab-button special",
93
+ onClick: v
94
+ }, [
95
+ b(p, { loading: k.loading }, {
96
+ default: u(() => [
97
+ E(i.$slots, "tabButton3", {}, void 0, !0)
98
+ ]),
99
+ _: 3
100
+ }, 8, ["loading"])
101
+ ]),
102
+ f("div", Pe, [
103
+ E(i.$slots, "tabTips3", {}, void 0, !0)
104
+ ])
105
+ ]),
106
+ _: 3
107
+ })
108
+ ]),
109
+ _: 3
110
+ }, 8, ["modelValue"])
111
+ ]);
112
+ };
113
+ }
114
+ }), De = /* @__PURE__ */ F(xe, [["__scopeId", "data-v-c2476df5"]]), Qe = { class: "account-wrap" }, Oe = /* @__PURE__ */ X({
115
+ __name: "index",
116
+ props: {
117
+ activeTabName: {
118
+ type: String,
119
+ default: ""
120
+ },
121
+ isClickLogin: {
122
+ type: Boolean,
123
+ default: !1
124
+ }
125
+ },
126
+ emits: ["handleLoginFormChange"],
127
+ setup(k, { emit: T }) {
128
+ const A = k, d = te({
129
+ account: "",
130
+ password: ""
131
+ }), v = te({
132
+ account: [
133
+ { required: !0, message: "请输入账号", trigger: "blur" }
134
+ ],
135
+ password: [
136
+ { required: !0, message: "请输入密码", trigger: "blur" }
137
+ ]
138
+ }), w = B(null), i = T;
139
+ return Y(() => A.isClickLogin, (m) => {
140
+ var p;
141
+ m && (A == null ? void 0 : A.activeTabName) === "account" && ((p = w.value) == null || p.validate((c) => {
142
+ var r;
143
+ for (let _ in d)
144
+ d.hasOwnProperty(_) && (d[_] = (r = d[_]) == null ? void 0 : r.trim());
145
+ i("handleLoginFormChange", c, c ? d : null);
146
+ }));
147
+ }, {
148
+ immediate: !0
149
+ }), Y(() => A.activeTabName, (m) => {
150
+ var p;
151
+ m === "account" && ((p = w.value) == null || p.resetFields());
152
+ }), (m, p) => {
153
+ const c = U("svg-icon"), r = U("el-input"), _ = U("el-form-item"), N = U("el-form");
154
+ return O(), Q("div", Qe, [
155
+ b(N, {
156
+ model: d,
157
+ rules: v,
158
+ ref_key: "formRef",
159
+ ref: w
160
+ }, {
161
+ default: u(() => [
162
+ b(_, {
163
+ label: "",
164
+ prop: "account"
165
+ }, {
166
+ default: u(() => [
167
+ b(r, {
168
+ class: "account-input",
169
+ modelValue: d.account,
170
+ "onUpdate:modelValue": p[0] || (p[0] = (I) => d.account = I),
171
+ placeholder: "请输入账号",
172
+ clearable: ""
173
+ }, {
174
+ prefix: u(() => [
175
+ b(c, {
176
+ name: "account",
177
+ style: { width: "15px", height: "15px" }
178
+ })
179
+ ]),
180
+ _: 1
181
+ }, 8, ["modelValue"])
182
+ ]),
183
+ _: 1
184
+ }),
185
+ b(_, {
186
+ label: "",
187
+ prop: "password"
188
+ }, {
189
+ default: u(() => [
190
+ b(r, {
191
+ class: "account-input",
192
+ modelValue: d.password,
193
+ "onUpdate:modelValue": p[1] || (p[1] = (I) => d.password = I),
194
+ type: "password",
195
+ placeholder: "请输入密码",
196
+ "show-password": "",
197
+ clearable: ""
198
+ }, {
199
+ prefix: u(() => [
200
+ b(c, {
201
+ name: "password",
202
+ style: { width: "15px", height: "15px" }
203
+ })
204
+ ]),
205
+ _: 1
206
+ }, 8, ["modelValue"])
207
+ ]),
208
+ _: 1
209
+ })
210
+ ]),
211
+ _: 1
212
+ }, 8, ["model", "rules"])
213
+ ]);
214
+ };
215
+ }
216
+ }), Fe = /* @__PURE__ */ F(Oe, [["__scopeId", "data-v-48037c0f"]]);
217
+ function Ve(k) {
218
+ return ne({
219
+ url: "http://192.168.124.108:20013/api/face/face-verify",
220
+ method: "post",
221
+ data: k
222
+ });
223
+ }
224
+ const Je = { class: "account-wrap" }, $e = { class: "video-wrap" }, Xe = /* @__PURE__ */ X({
225
+ __name: "index",
226
+ props: {
227
+ activeTabName: {
228
+ type: String,
229
+ default: ""
230
+ },
231
+ isClickLogin: {
232
+ type: Boolean,
233
+ default: !1
234
+ }
235
+ },
236
+ emits: ["handleLoginFormChange"],
237
+ setup(k, { emit: T }) {
238
+ const A = k, d = T, v = B(null), w = B(null);
239
+ Y(() => A.isClickLogin, (c) => {
240
+ c && (A == null || A.activeTabName);
241
+ }, {
242
+ immediate: !0
243
+ });
244
+ const i = async (c) => {
245
+ if (!c)
246
+ return;
247
+ const r = new FormData();
248
+ r.set("file", c);
249
+ const _ = await Ve(r), { data: N } = _ || {}, { match: I, account: M, password: R } = N;
250
+ if (!I) {
251
+ S.error("识别失败,请重新识别!");
252
+ return;
253
+ }
254
+ d("handleLoginFormChange", !0, {
255
+ account: M,
256
+ password: R
257
+ });
258
+ }, m = () => {
259
+ if (!w.value || !v.value)
260
+ return;
261
+ const c = w.value, r = c.getContext("2d"), _ = v.value;
262
+ c.width = 200, c.height = 200;
263
+ const N = _.videoWidth || 640, I = _.videoHeight || 480, M = Math.min(200 / N, 200 / I), R = N * M, q = I * M, W = (200 - R) / 2, j = (200 - q) / 2;
264
+ r == null || r.drawImage(_, 0, 0, N, I, W, j, R, q), c.toBlob((G) => {
265
+ if (G) {
266
+ const H = new File([G], "face.png", { type: "image/png" });
267
+ i(H);
268
+ }
269
+ }, "image/png");
270
+ }, p = async () => {
271
+ if (!v.value)
272
+ return;
273
+ const c = v.value;
274
+ try {
275
+ const r = await navigator.mediaDevices.getUserMedia({
276
+ video: { facingMode: "user" },
277
+ // 前置;后置用 'environment'
278
+ audio: !1
279
+ });
280
+ if (c) {
281
+ const _ = c;
282
+ _.srcObject = r;
283
+ }
284
+ } catch (r) {
285
+ S.warning("摄像头失败: " + r.message);
286
+ }
287
+ };
288
+ return de(() => {
289
+ p();
290
+ }), (c, r) => (O(), Q("div", Je, [
291
+ f("div", $e, [
292
+ f("video", {
293
+ class: "face-video",
294
+ ref_key: "videoRef",
295
+ ref: v,
296
+ id: "v",
297
+ autoplay: "",
298
+ playsinline: ""
299
+ }, null, 512)
300
+ ]),
301
+ f("button", {
302
+ class: "face-screenshot",
303
+ onClick: m
304
+ }, "人脸识别"),
305
+ f("canvas", {
306
+ ref_key: "canvasRef",
307
+ ref: w,
308
+ id: "canvas"
309
+ }, null, 512)
310
+ ]));
311
+ }
312
+ }), qe = /* @__PURE__ */ F(Xe, [["__scopeId", "data-v-4f612c1a"]]), Ge = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAYAAAB6kdqOAAAAAXNSR0IArs4c6QAAAd9JREFUWEftl71OAkEQx/97QC8XEj+iiTGexo/OnvgE0ChPIIXHQwgP4amxsYZGnkCtpbAxxiyJFEqCJie1yK7ZixhUuNtZYkLUa2/+M7+ZnbnbYTB87P3bIpi1BWCt34UEzpkUF35huWjimpmIlCbp8TMGbA7RX/uus27i2xjI9rgMC+i7jpFvI5EC+XEg2+NlSKTBMKmTuS5QlB2ApgRqz66TVXGDCmmIPhh7RxGl0bXrT15pWNLjVQZkdBuwF0i3qaPAv8StMNvjDwBmdIGQwJyfd+51xn7i4GbekvE7bd8SLQUUOi3fnElR0v3GvEPvaQOpHiIDKe9SlIQlTtq7K41BwexjPosXsQNmkWCCpjYCoqRMtP0HiirY76uQBWQRS1xalhCvnW4aQDmqCmHvR6rQsB/oKIMyClDOd53KoGxTHs8IoGpSKWOgeCI29ZhfaA0EOmpMi26n+beBAIzXkanjGLemDlpkrMbepGmjNMZTFuXY9D0dSF09wE7bhaWrsKD2IV+FgNrNtilwVKCK7zo5SgDqJY0EFJPMeSos1ilAKa++ISBruhoSUNi3Z1hA2+PqyLR/uPRLvm6qJnbqkk9dg0ziEDQV8qJIcE42DRbFnkp3lSZHiRZ8WqXfAFwe+He0YFLSAAAAAElFTkSuQmCC", Ze = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAx1JREFUWEfFV01oE1EQnnmpYJRGL/6gYsGLVCoUzMGLNrO1B4sYKooXQT0JWtSK4KEHEVERPCjUHgqCQlFED4raUmP3bS0UhRQKnrTorQdFBBOkBZP97AuJbNo0+2KF7GlJ3sz3zcw3M2+Z6vxwnfHJmkAqlVrT0NCwB8BepdQuAOuJaEMxgK/M/M33/UlmfpvL5cY7Ojp+2gQXSiCdTq/IZrNniOg0gM1WTplniKi/sbHxbjwe/13NpioBrXUcwB0iarUBrnBmipnPiUh6KfslCXiet9/3/af/CFxmppQ6nEgkhiv5qkhAa90N4Ob/AC/5YOZLItK30OciAlrrAwAe24Iz8yul1A0imgPQ5ft+75LpZj4qIi+D/5cRMILLZDJejTXvcRxnwDgdGxtrzufzS9abiKZisVgiKMwyAlrr8wCu2UZvzjHzgIj0mHet9fH59uyvqnrmXhG5/bc0pZehoaFYNBpN27ZaoLY/mPk1EeUAmDnRFEJgZnZ2Nt7Z2ZkpBFA6rLXeB+B5LdEXM/ARwPZa7Jg5KSJvygi4rnuFiC7aOlJKPSCiR4lEYrw4L0aIaKWl/S3HcS6XEfA8b9T3/d2WDoxORhzHmQxk0JSv2cZeKfVunnj7whJ8ALDNwkFBpMy8Q0SOBQhMA9hkYW9sv4jIzoUEvgFYbeHAEOgFcKK9vf1JUf0tAN5b2BaOMPMvETHLrEyEtgQKTmKx2NpSP7uue4GIri6XgG0JTARDInIkkP5hs6ZrILC4BLWIkJlPicigAZyYmIjOzc19twU35yqKsJY2zGazG5PJZNY4c103SUQPayFARIvb0HYQMfOoiBwMpL8PwEkiMkPMkAl9Kg4i21HMzGdF5F4JxfO8TwA+Axg33RGGzsyVR3GxnUKXETM3iUih5lrrFiK6T0TdRPQCwCoLApWXkTG0WceRSKS1ra1tugSUSqWa5397RkRbwsBD13ExqqoXEqXUYD6fvx6JRLYCOEREXQDWWYCb9q1+IQkIq35XsoC46ncpDWSiftfyEom6fpgEhVW3TzMbdS/nTOi34XKc29j+AXyzojCfNKqJAAAAAElFTkSuQmCC", Ye = { class: "card-wrap" }, We = { class: "card-icon card" }, je = { class: "card-input" }, He = { class: "card-icon info" }, ze = /* @__PURE__ */ X({
313
+ __name: "index",
314
+ props: {
315
+ activeTabName: {
316
+ type: String,
317
+ default: ""
318
+ }
319
+ },
320
+ emits: ["handleCardInput"],
321
+ setup(k, { emit: T }) {
322
+ const A = k, d = B(""), v = T, w = (i) => {
323
+ v("handleCardInput", i == null ? void 0 : i.trim());
324
+ };
325
+ return Y(() => A.activeTabName, (i) => {
326
+ i && (d.value = "");
327
+ }), (i, m) => {
328
+ const p = U("el-image"), c = U("el-input");
329
+ return O(), Q("div", Ye, [
330
+ f("div", We, [
331
+ b(p, {
332
+ src: D(Ge),
333
+ fit: "contain"
334
+ }, null, 8, ["src"])
335
+ ]),
336
+ f("div", je, [
337
+ b(c, {
338
+ modelValue: d.value,
339
+ "onUpdate:modelValue": m[0] || (m[0] = (r) => d.value = r),
340
+ onChange: w,
341
+ clearable: ""
342
+ }, null, 8, ["modelValue"])
343
+ ]),
344
+ f("div", He, [
345
+ b(p, {
346
+ src: D(Ze),
347
+ fit: "contain"
348
+ }, null, 8, ["src"])
349
+ ])
350
+ ]);
351
+ };
352
+ }
353
+ }), ea = /* @__PURE__ */ F(ze, [["__scopeId", "data-v-e8a73fc2"]]);
354
+ function aa() {
355
+ return ne({
356
+ url: "/api/sysAuth/login",
357
+ method: "post",
358
+ data: {
359
+ account: "superadmin",
360
+ password: "1c8e7623312244c1feb677732278fb8b2af6af1a5335fdaebbdb2720137b372b7871292d11165b83b2967b9c39fa37027d63d37a2f36d764257b566dcfa99f334faa8995301601aec549adf39aef8d89c8788da03a9164937a5f73af20a15ea60d47c7cf01cf",
361
+ tenantId: -1,
362
+ code: "",
363
+ codeId: 0
364
+ }
365
+ });
366
+ }
367
+ const ta = { class: "login-wrap" }, na = { class: "login-body" }, sa = { class: "login-body-item left" }, oa = { class: "title" }, ca = { class: "login-body-item right" }, ra = /* @__PURE__ */ X({
368
+ __name: "index",
369
+ emits: ["change"],
370
+ setup(k, { emit: T }) {
371
+ const A = Ce(), d = ue(pe), { systemKey: v, systemInfo: w, loginUserInfo: i } = fe(d), m = B({
372
+ // sysCTitle: 'INSOFWORKS',
373
+ sysCTitle: "",
374
+ sysETitle: "",
375
+ // sysETitle: 'Dynamic Test Information System',
376
+ loginTitle: "账户密码登录",
377
+ tabs: [
378
+ {
379
+ name: "密码登录",
380
+ btnLabel: "登录",
381
+ tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
382
+ },
383
+ {
384
+ name: "人脸识别",
385
+ btnLabel: "人脸识别",
386
+ tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
387
+ },
388
+ {
389
+ name: "刷卡登录",
390
+ btnLabel: "登录",
391
+ tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
392
+ }
393
+ ]
394
+ }), p = B("account"), c = B(!1), r = B(!1), _ = () => {
395
+ c.value = !0;
396
+ }, N = (a) => {
397
+ c.value = !1, ee(a);
398
+ }, I = (a, t) => {
399
+ c.value = !1, a && ee(t);
400
+ }, M = (a) => be(a), R = (a) => {
401
+ let t;
402
+ const n = me(a), s = he(n), g = Ae(s), h = _e(g, "parentPath");
403
+ return t = we(h), t;
404
+ }, q = (a, t) => {
405
+ var s, g, h;
406
+ const n = (t == null ? void 0 : t.userRoles) ?? (t == null ? void 0 : t.角色名称);
407
+ try {
408
+ if (t.layer && ((s = t == null ? void 0 : t.layer) == null ? void 0 : s.toUpperCase()) === "SUPERADMIN")
409
+ return "superAdmin";
410
+ if (Array.isArray(n)) {
411
+ if ((n == null ? void 0 : n.length) === 1) {
412
+ const o = a == null ? void 0 : a.find((e) => (e == null ? void 0 : e.roleName) === (n == null ? void 0 : n[0]) || e.角色名称 === (n == null ? void 0 : n[0])), C = M(o), l = R(o == null ? void 0 : o[C]);
413
+ return o && l && Array.isArray(l) ? o ? l == null ? void 0 : l.flatMap((e) => e.checkedButtons) : [] : [];
414
+ }
415
+ if ((n == null ? void 0 : n.length) > 1) {
416
+ let o = a == null ? void 0 : a.filter((e) => n == null ? void 0 : n.includes(e.roleName || (e == null ? void 0 : e.角色名称)));
417
+ const C = M(o == null ? void 0 : o[0]), l = (h = (g = o == null ? void 0 : o.map((e) => Array.isArray(e == null ? void 0 : e[C]) ? e == null ? void 0 : e[C] : [])) == null ? void 0 : g.flat()) == null ? void 0 : h.flatMap((e) => e.checkedButtons);
418
+ return (l == null ? void 0 : l.length) === 0 ? S.error("该用户没有权限,请联系管理员") : new Set(l);
419
+ }
420
+ }
421
+ if (typeof n == "string") {
422
+ const o = a == null ? void 0 : a.find((e) => (e == null ? void 0 : e.roleName) === n || (e == null ? void 0 : e.角色名称) === n), C = M(o), l = R(o == null ? void 0 : o[C]);
423
+ return o && l && Array.isArray(l) ? o ? l == null ? void 0 : l.flatMap((e) => e.checkedButtons) : [] : [];
424
+ }
425
+ } catch (o) {
426
+ throw new Error(o);
427
+ }
428
+ }, W = async (a) => {
429
+ var t, n;
430
+ try {
431
+ let s = [];
432
+ const g = await $({
433
+ key: {
434
+ // systemKey: user?.systemKey,
435
+ systemKey: v.value ? v.value : a == null ? void 0 : a.systemKey,
436
+ // pageKey: '/系统管理/角色管理',
437
+ pageKey: "系统管理/角色管理",
438
+ type: "data"
439
+ }
440
+ });
441
+ if (g.data.code === 200) {
442
+ const h = (n = (t = g.data) == null ? void 0 : t.result) == null ? void 0 : n.map((o) => o.value.tableData);
443
+ s = q(h, a);
444
+ }
445
+ if (s)
446
+ return Array.isArray(s) ? Array.from(s) : s;
447
+ throw S.error("获取用户权限失败,请联系管理员"), new Error("获取用户权限失败,请联系管理员");
448
+ } catch (s) {
449
+ throw S.error("获取用户权限失败,请联系管理员"), new Error(s);
450
+ }
451
+ }, j = async (a) => {
452
+ var t, n, s, g, h, o, C;
453
+ try {
454
+ let l = [], e, P, V;
455
+ v.value ? V = {
456
+ // pageKey: '/系统管理/用户管理',
457
+ pageKey: "系统管理/用户管理",
458
+ type: "data",
459
+ // 通过electron传递的值获取模型key,解决多账号导入同一模型,账号名重复权限失败问题
460
+ systemKey: v.value
461
+ } : V = {
462
+ // pageKey: '/系统管理/用户管理',
463
+ pageKey: "系统管理/用户管理",
464
+ type: "data"
465
+ };
466
+ const ae = await $({
467
+ key: V
468
+ });
469
+ let Z;
470
+ if (!sessionStorage.getItem("systemKey") || sessionStorage.getItem("systemKey") === "" ? Z = await $({
471
+ key: {
472
+ layer: "superAdmin"
473
+ // systemKey:sessionStorage.getItem('tenantKey')
474
+ }
475
+ }) : Z = await $({
476
+ key: {
477
+ layer: "superAdmin",
478
+ systemKey: sessionStorage.getItem("systemKey")
479
+ }
480
+ }), ae.data.code === 200 && Z.data.code === 200) {
481
+ const ie = (n = (t = Z.data) == null ? void 0 : t.result) == null ? void 0 : n.map((y) => {
482
+ var K, J;
483
+ return {
484
+ ...y.value.tableData,
485
+ layer: (K = y.key) == null ? void 0 : K.layer,
486
+ systemKey: (J = y == null ? void 0 : y.key) == null ? void 0 : J.systemKey,
487
+ id: y.id
488
+ };
489
+ }), le = (g = (s = ae.data) == null ? void 0 : s.result) == null ? void 0 : g.map((y) => {
490
+ var K, J;
491
+ return {
492
+ ...y.value.tableData,
493
+ layer: (K = y.key) == null ? void 0 : K.layer,
494
+ systemKey: (J = y == null ? void 0 : y.key) == null ? void 0 : J.systemKey,
495
+ id: y.id
496
+ };
497
+ }), z = [...ie, ...le];
498
+ if (e = z == null ? void 0 : z.find((y) => (y == null ? void 0 : y.account) === (a == null ? void 0 : a.account) || (y == null ? void 0 : y.账号) === (a == null ? void 0 : a.account)), e) {
499
+ if (((h = e.layer) == null ? void 0 : h.toUpperCase()) !== "SUPERADMIN" && (!(e != null && e.状态) || (e == null ? void 0 : e.状态) === "禁用" || (e == null ? void 0 : e.status) === "禁用")) {
500
+ S.error("该用户已被禁用,请联系管理员"), r.value = !1;
501
+ return;
502
+ }
503
+ l = await W(e);
504
+ const { privateKey: y } = await d.getModelSecretAsync(e);
505
+ let K;
506
+ if (e.password ? K = ((o = e.layer) == null ? void 0 : o.toUpperCase()) === "SUPERADMIN" ? e.password : ye(e.password, y) : K = ((C = e.layer) == null ? void 0 : C.toUpperCase()) === "SUPERADMIN" ? e.password : ve, (a == null ? void 0 : a.password) === K)
507
+ P = e;
508
+ else
509
+ throw P = null, S.error("输入的密码错误,请重新输入"), r.value = !1, new Error("输入的密码错误,请重新输入");
510
+ } else
511
+ return S.error("该用户不存在,请重新输入");
512
+ }
513
+ return P && l ? {
514
+ matchedUser: P,
515
+ userAuthority: l
516
+ } : void 0;
517
+ } catch (l) {
518
+ throw new Error(l);
519
+ }
520
+ }, G = async (a) => {
521
+ var n, s, g;
522
+ const t = await j(a);
523
+ if (t != null && t.matchedUser) {
524
+ d.setLoginUserInfo(t.matchedUser), sessionStorage.setItem("authority", JSON.stringify(t.userAuthority));
525
+ const h = ((s = (n = t.matchedUser) == null ? void 0 : n.layer) == null ? void 0 : s.toUpperCase()) === "SUPERADMIN";
526
+ return sessionStorage.setItem("isSuperAdmin", JSON.stringify(h)), sessionStorage.setItem("systemKey", v.value ? v.value : (g = t.matchedUser) == null ? void 0 : g.systemKey), await H(t.matchedUser), !0;
527
+ } else
528
+ throw r.value = !1, new Error("该用户数据处理失败,请联系管理员");
529
+ }, H = async (a) => {
530
+ var n, s, g, h, o, C, l, e, P;
531
+ const t = await $({
532
+ key: {
533
+ // pageKey: '/user',
534
+ layer: "superAdmin",
535
+ systemKey: v.value ? v.value : a == null ? void 0 : a.systemKey
536
+ // systemKey: user?.systemKey
537
+ }
538
+ });
539
+ if (t.data.code === 200 && (n = t.data) != null && n.result && Array.isArray((s = t.data) == null ? void 0 : s.result) && ((h = (g = t.data) == null ? void 0 : g.result) == null ? void 0 : h.length) > 0) {
540
+ const V = (P = (e = (l = (C = (o = t.data) == null ? void 0 : o.result) == null ? void 0 : C[0]) == null ? void 0 : l.value) == null ? void 0 : e.tableData) == null ? void 0 : P.account;
541
+ d.setSuperAdminInfo({
542
+ account: V
543
+ });
544
+ }
545
+ }, se = async () => {
546
+ var a, t, n;
547
+ try {
548
+ const s = await aa();
549
+ return ((a = s == null ? void 0 : s.data) == null ? void 0 : a.code) === 200 ? (sessionStorage.setItem("loginToken", (n = (t = s.data) == null ? void 0 : t.result) == null ? void 0 : n.accessToken), !0) : !1;
550
+ } catch (s) {
551
+ S.error(s);
552
+ }
553
+ }, oe = async () => {
554
+ var a, t, n;
555
+ try {
556
+ const s = await ge.post("http://139.196.154.85:20024/api/sysAuth/login", {
557
+ account: "superadmin",
558
+ password: "9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",
559
+ codeId: 0,
560
+ code: ""
561
+ });
562
+ return ((a = s == null ? void 0 : s.data) == null ? void 0 : a.code) === 200 ? (sessionStorage.setItem("magicToken", (n = (t = s.data) == null ? void 0 : t.result) == null ? void 0 : n.accessToken), !0) : !1;
563
+ } catch (s) {
564
+ S.error(s);
565
+ }
566
+ }, ee = async (a) => {
567
+ var g, h, o, C;
568
+ r.value = !0;
569
+ let t = [G(a), se(), oe()];
570
+ const n = await Promise.all(t);
571
+ (n == null ? void 0 : n.every((l) => l)) && (await ke(), A.push("/"), d.setLogRecordAsync({
572
+ type: "登录",
573
+ data: {
574
+ account: ((g = i.value) == null ? void 0 : g.account) ?? ((h = i.value) == null ? void 0 : h.账号),
575
+ userName: ((o = i.value) == null ? void 0 : o.姓名) || ((C = i.value) == null ? void 0 : C.userName) || "未知"
576
+ }
577
+ }, "/login", "login"));
578
+ }, ce = (a) => {
579
+ p.value = a, c.value = !1, r.value = !1;
580
+ }, re = (a) => /^[\u4e00-\u9fa5\s,。!?《》“”【】]+$/.test(a);
581
+ return (a, t) => (O(), Q("div", ta, [
582
+ f("div", na, [
583
+ f("div", sa, [
584
+ b(Ne, { class: "login-left-bg" }, {
585
+ img: u(() => {
586
+ var n, s, g, h;
587
+ return [
588
+ f("div", oa, [
589
+ f("div", null, L(((n = D(w)) == null ? void 0 : n.EnglishName) || "INSOFWORKS"), 1),
590
+ f("div", null, L((s = D(w)) != null && s.chineseName && re((g = D(w)) == null ? void 0 : g.chineseName) ? (h = D(w)) == null ? void 0 : h.chineseName : "工业软件集成开发平台"), 1)
591
+ ]),
592
+ t[0] || (t[0] = f("div", { class: "divide-line" }, null, -1))
593
+ ];
594
+ }),
595
+ _: 1
596
+ })
597
+ ]),
598
+ f("div", ca, [
599
+ b(De, {
600
+ loading: r.value,
601
+ onClickLogin: _,
602
+ onHandleTabClick: ce
603
+ }, {
604
+ title: u(() => [
605
+ x(L(m.value.loginTitle), 1)
606
+ ]),
607
+ tabLabel1: u(() => [
608
+ x(L(m.value.tabs[0].name), 1)
609
+ ]),
610
+ tabContent1: u(() => [
611
+ b(Fe, {
612
+ activeTabName: p.value,
613
+ isClickLogin: c.value,
614
+ onHandleLoginFormChange: I
615
+ }, null, 8, ["activeTabName", "isClickLogin"])
616
+ ]),
617
+ tabButton1: u(() => [
618
+ x(L(m.value.tabs[0].btnLabel), 1)
619
+ ]),
620
+ tabLabel2: u(() => [
621
+ x(L(m.value.tabs[1].name), 1)
622
+ ]),
623
+ tabContent2: u(() => [
624
+ b(qe, {
625
+ activeTabName: p.value,
626
+ isClickLogin: c.value,
627
+ onHandleLoginFormChange: I
628
+ }, null, 8, ["activeTabName", "isClickLogin"])
629
+ ]),
630
+ tabButton2: u(() => [
631
+ x(L(m.value.tabs[1].btnLabel), 1)
632
+ ]),
633
+ tabLabel3: u(() => [
634
+ x(L(m.value.tabs[2].name), 1)
635
+ ]),
636
+ tabContent3: u(() => [
637
+ b(ea, {
638
+ activeTabName: p.value,
639
+ onHandleCardInput: N
640
+ }, null, 8, ["activeTabName"])
641
+ ]),
642
+ tabButton3: u(() => [
643
+ x(L(m.value.tabs[2].btnLabel), 1)
644
+ ]),
645
+ _: 1
646
+ }, 8, ["loading"])
647
+ ])
648
+ ])
649
+ ]));
650
+ }
651
+ }), ga = /* @__PURE__ */ F(ra, [["__scopeId", "data-v-3c402c7d"]]);
652
+ export {
653
+ ga as default
654
+ };
@@ -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-Dm_WlV6R.js";
3
- import { u as M } from "./index.vue_vue_type_style_index_1_lang-B0l6QIWy.js";
4
- import { s as D } from "./index-DPX3w6cO.js";
5
- import { a as T, d as S, f as w } from "./index-Cl6HMOao.js";
2
+ import { p as h, s as k, c as m, g as x } from "./index-DNe_JGg0.js";
3
+ import { u as M } from "./index.vue_vue_type_style_index_1_lang-DSKzPKLD.js";
4
+ import { s as D } from "./index-B-I7BsZI.js";
5
+ import { a as T, d as S, f as w } from "./index-CeeMzEXY.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,5 +1,5 @@
1
1
  import { defineComponent as _, ref as f, resolveComponent as m, createBlock as y, openBlock as g, withCtx as d, createTextVNode as h, toDisplayString as b, watch as B, normalizeStyle as C, renderSlot as c, createElementVNode as v } from "vue";
2
- import "./index.vue_vue_type_style_index_1_lang-B0l6QIWy.js";
2
+ import "./index.vue_vue_type_style_index_1_lang-DSKzPKLD.js";
3
3
  import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const D = /* @__PURE__ */ _({
5
5
  __name: "index",
@@ -0,0 +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-BCjeeJqj.cjs");const r=require("./index.vue_vue_type_style_index_1_lang-D0ileuYo.cjs"),c=require("./index-1z9RrjZc.cjs"),i=require("./index-BxXOWAHT.cjs"),y=r.useModelComp(),{itemData:g}=c.storeToRefs(y),p=o.ref(0),D=o.ref([{label:"机构名称",value:"",name:"deptName"}]),_=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:[]}]),f=e=>{r.submitTableAsyncByVerify(e.singleContent,e.buttonName,p.value)},m=e=>{console.log("onDoubleClick",e)},h=(e,a)=>{console.log("onButtonClick",e,a)},C=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}})},v={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 S=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:C,handleItemDataChange:f,handleQueryChange:_,onButtonClick:h,onDoubleClick:m,pageData:u,queryFormData:D,structureId:p,tempDeptPageData:v},Symbol.toStringTag,{value:"Module"})),k={class:"role-wrapper"},T=o.defineComponent({__name:"index",setup(e){const a=o.reactive({...S}),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",k,[o.createVNode(i.ssTable,{itemData:a.pageData,onChange:a.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=T;