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
@@ -1,504 +0,0 @@
1
- import { createElementBlock as D, openBlock as O, createElementVNode as b, renderSlot as B, defineComponent as X, ref as U, resolveComponent as S, createVNode as y, withCtx as f, reactive as z, watch as Y, unref as L, toDisplayString as N, createTextVNode as R } from "vue";
2
- import { _ as J } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- import { d as ie, r as de, g as ue, c as pe, b as fe, e as ye, f as ge, h as Ae } from "./index.vue_vue_type_style_index_1_lang-B0l6QIWy.js";
4
- import { useRouter as be } from "vue-router";
5
- import { a as me, u as he, p as ve, s as _e, E, b as we, g as Q } from "./index-Dm_WlV6R.js";
6
- import { v as Ce } from "./index-XXKsLOYd.js";
7
- const Ie = {}, ke = { class: "left-wrap" }, Se = { class: "left-bg" };
8
- function Ee(I, K) {
9
- return O(), D("div", ke, [
10
- b("div", Se, [
11
- B(I.$slots, "img", {}, void 0, !0)
12
- ])
13
- ]);
14
- }
15
- const Ke = /* @__PURE__ */ J(Ie, [["render", Ee], ["__scopeId", "data-v-9b7ee6c9"]]), Te = { class: "right-wrap" }, Ne = { class: "right-title" }, Ue = { class: "right-content" }, Be = { class: "tab-content" }, Le = { class: "tab-tips" }, Me = /* @__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(I, { emit: K }) {
29
- const w = U("account"), c = K, v = () => {
30
- c("clickLogin", w.value);
31
- }, _ = () => {
32
- c("handleTabClick", w.value);
33
- };
34
- return (u, g) => {
35
- const p = S("el-button"), m = S("el-tab-pane"), A = S("el-tabs");
36
- return O(), D("div", Te, [
37
- b("div", Ne, [
38
- B(u.$slots, "title", {}, void 0, !0)
39
- ]),
40
- b("div", Ue, [
41
- y(A, {
42
- modelValue: w.value,
43
- "onUpdate:modelValue": g[0] || (g[0] = (C) => w.value = C),
44
- class: "right-tabs",
45
- onTabClick: _
46
- }, {
47
- default: f(() => [
48
- y(m, { name: "account" }, {
49
- label: f(() => [
50
- B(u.$slots, "tabLabel2", {}, void 0, !0)
51
- ]),
52
- default: f(() => [
53
- b("div", Be, [
54
- B(u.$slots, "tabContent2", {}, void 0, !0)
55
- ]),
56
- b("div", {
57
- class: "tab-button special",
58
- onClick: v
59
- }, [
60
- y(p, { loading: I.loading }, {
61
- default: f(() => [
62
- B(u.$slots, "tabButton2", {}, void 0, !0)
63
- ]),
64
- _: 3
65
- }, 8, ["loading"])
66
- ]),
67
- b("div", Le, [
68
- B(u.$slots, "tabTips2", {}, void 0, !0)
69
- ])
70
- ]),
71
- _: 3
72
- })
73
- ]),
74
- _: 3
75
- }, 8, ["modelValue"])
76
- ])
77
- ]);
78
- };
79
- }
80
- }), Pe = /* @__PURE__ */ J(Me, [["__scopeId", "data-v-3ebcb6e2"]]), xe = { class: "account-wrap" }, Re = /* @__PURE__ */ X({
81
- __name: "index",
82
- props: {
83
- activeTabName: {
84
- type: String,
85
- default: ""
86
- },
87
- isClickLogin: {
88
- type: Boolean,
89
- default: !1
90
- }
91
- },
92
- emits: ["handleLoginFormChange"],
93
- setup(I, { emit: K }) {
94
- const w = I, c = z({
95
- account: "",
96
- password: ""
97
- }), v = z({
98
- account: [
99
- { required: !0, message: "请输入账号", trigger: "blur" }
100
- ],
101
- password: [
102
- { required: !0, message: "请输入密码", trigger: "blur" }
103
- ]
104
- }), _ = U(null), u = K;
105
- return Y(() => w.isClickLogin, (g) => {
106
- var p;
107
- g && ((p = _.value) == null || p.validate((m) => {
108
- var A;
109
- for (let C in c)
110
- c.hasOwnProperty(C) && (c[C] = (A = c[C]) == null ? void 0 : A.trim());
111
- u("handleLoginFormChange", m, m ? c : null);
112
- }));
113
- }, {
114
- immediate: !0
115
- }), Y(() => w.activeTabName, (g) => {
116
- var p;
117
- g && ((p = _.value) == null || p.resetFields());
118
- }), (g, p) => {
119
- const m = S("svg-icon"), A = S("el-input"), C = S("el-form-item"), q = S("el-form");
120
- return O(), D("div", xe, [
121
- y(q, {
122
- model: c,
123
- rules: v,
124
- ref_key: "formRef",
125
- ref: _
126
- }, {
127
- default: f(() => [
128
- y(C, {
129
- label: "",
130
- prop: "account"
131
- }, {
132
- default: f(() => [
133
- y(A, {
134
- modelValue: c.account,
135
- "onUpdate:modelValue": p[0] || (p[0] = (M) => c.account = M),
136
- placeholder: "请输入账号",
137
- clearable: ""
138
- }, {
139
- prefix: f(() => [
140
- y(m, {
141
- name: "account",
142
- style: { width: "15px", height: "15px" }
143
- })
144
- ]),
145
- _: 1
146
- }, 8, ["modelValue"])
147
- ]),
148
- _: 1
149
- }),
150
- y(C, {
151
- label: "",
152
- prop: "password"
153
- }, {
154
- default: f(() => [
155
- y(A, {
156
- modelValue: c.password,
157
- "onUpdate:modelValue": p[1] || (p[1] = (M) => c.password = M),
158
- type: "password",
159
- placeholder: "请输入密码",
160
- "show-password": "",
161
- clearable: ""
162
- }, {
163
- prefix: f(() => [
164
- y(m, {
165
- name: "password",
166
- style: { width: "15px", height: "15px" }
167
- })
168
- ]),
169
- _: 1
170
- }, 8, ["modelValue"])
171
- ]),
172
- _: 1
173
- })
174
- ]),
175
- _: 1
176
- }, 8, ["model", "rules"])
177
- ]);
178
- };
179
- }
180
- }), Qe = /* @__PURE__ */ J(Re, [["__scopeId", "data-v-702adefe"]]), De = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAYAAAB6kdqOAAAAAXNSR0IArs4c6QAAAd9JREFUWEftl71OAkEQx/97QC8XEj+iiTGexo/OnvgE0ChPIIXHQwgP4amxsYZGnkCtpbAxxiyJFEqCJie1yK7ZixhUuNtZYkLUa2/+M7+ZnbnbYTB87P3bIpi1BWCt34UEzpkUF35huWjimpmIlCbp8TMGbA7RX/uus27i2xjI9rgMC+i7jpFvI5EC+XEg2+NlSKTBMKmTuS5QlB2ApgRqz66TVXGDCmmIPhh7RxGl0bXrT15pWNLjVQZkdBuwF0i3qaPAv8StMNvjDwBmdIGQwJyfd+51xn7i4GbekvE7bd8SLQUUOi3fnElR0v3GvEPvaQOpHiIDKe9SlIQlTtq7K41BwexjPosXsQNmkWCCpjYCoqRMtP0HiirY76uQBWQRS1xalhCvnW4aQDmqCmHvR6rQsB/oKIMyClDOd53KoGxTHs8IoGpSKWOgeCI29ZhfaA0EOmpMi26n+beBAIzXkanjGLemDlpkrMbepGmjNMZTFuXY9D0dSF09wE7bhaWrsKD2IV+FgNrNtilwVKCK7zo5SgDqJY0EFJPMeSos1ilAKa++ISBruhoSUNi3Z1hA2+PqyLR/uPRLvm6qJnbqkk9dg0ziEDQV8qJIcE42DRbFnkp3lSZHiRZ8WqXfAFwe+He0YFLSAAAAAElFTkSuQmCC", Oe = "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", Je = { class: "card-wrap" }, Ve = { class: "card-icon card" }, Xe = { class: "card-input" }, qe = { class: "card-icon info" }, Ge = /* @__PURE__ */ X({
181
- __name: "index",
182
- props: {
183
- activeTabName: {
184
- type: String,
185
- default: ""
186
- }
187
- },
188
- emits: ["handleCardInput"],
189
- setup(I, { emit: K }) {
190
- const w = I, c = U(""), v = K, _ = (u) => {
191
- v("handleCardInput", u == null ? void 0 : u.trim());
192
- };
193
- return Y(() => w.activeTabName, (u) => {
194
- u && (c.value = "");
195
- }), (u, g) => {
196
- const p = S("el-image"), m = S("el-input");
197
- return O(), D("div", Je, [
198
- b("div", Ve, [
199
- y(p, {
200
- src: L(De),
201
- fit: "contain"
202
- }, null, 8, ["src"])
203
- ]),
204
- b("div", Xe, [
205
- y(m, {
206
- modelValue: c.value,
207
- "onUpdate:modelValue": g[0] || (g[0] = (A) => c.value = A),
208
- onChange: _,
209
- clearable: ""
210
- }, null, 8, ["modelValue"])
211
- ]),
212
- b("div", qe, [
213
- y(p, {
214
- src: L(Oe),
215
- fit: "contain"
216
- }, null, 8, ["src"])
217
- ])
218
- ]);
219
- };
220
- }
221
- }), Ze = /* @__PURE__ */ J(Ge, [["__scopeId", "data-v-cd989d3c"]]);
222
- function Ye() {
223
- return me({
224
- url: "/api/sysAuth/login",
225
- method: "post",
226
- data: {
227
- account: "superadmin",
228
- password: "1c8e7623312244c1feb677732278fb8b2af6af1a5335fdaebbdb2720137b372b7871292d11165b83b2967b9c39fa37027d63d37a2f36d764257b566dcfa99f334faa8995301601aec549adf39aef8d89c8788da03a9164937a5f73af20a15ea60d47c7cf01cf",
229
- tenantId: -1,
230
- code: "",
231
- codeId: 0
232
- }
233
- });
234
- }
235
- const Fe = { class: "login-wrap" }, We = { class: "login-body" }, je = { class: "login-body-item left" }, ze = { class: "title" }, He = { class: "login-body-item right" }, $e = /* @__PURE__ */ X({
236
- __name: "index",
237
- emits: ["change"],
238
- setup(I, { emit: K }) {
239
- const w = be(), c = he(ve), { systemKey: v, systemInfo: _, loginUserInfo: u } = _e(c), g = U({
240
- // sysCTitle: 'INSOFWORKS',
241
- sysCTitle: "",
242
- sysETitle: "",
243
- // sysETitle: 'Dynamic Test Information System',
244
- loginTitle: "账户密码登录",
245
- tabs: [
246
- {
247
- name: "刷卡登录",
248
- btnLabel: "请刷卡登录",
249
- tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
250
- },
251
- {
252
- name: "用户名登录",
253
- btnLabel: "登录",
254
- tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
255
- }
256
- ]
257
- }), p = U(""), m = U(!1), A = U(!1), C = () => {
258
- m.value = !0;
259
- }, q = (a) => {
260
- m.value = !1, W(a);
261
- }, M = (a, t) => {
262
- m.value = !1, a && W(t);
263
- }, G = (a) => ue(a), F = (a) => {
264
- let t;
265
- const s = pe(a), n = fe(s), l = ye(n), d = ge(l, "parentPath");
266
- return t = Ae(d), t;
267
- }, H = (a, t) => {
268
- var n, l, d;
269
- const s = (t == null ? void 0 : t.userRoles) ?? (t == null ? void 0 : t.角色名称);
270
- try {
271
- if (t.layer && ((n = t == null ? void 0 : t.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN")
272
- return "superAdmin";
273
- if (Array.isArray(s)) {
274
- if ((s == null ? void 0 : s.length) === 1) {
275
- const o = a == null ? void 0 : a.find((e) => (e == null ? void 0 : e.roleName) === (s == null ? void 0 : s[0]) || e.角色名称 === (s == null ? void 0 : s[0])), h = G(o), r = F(o == null ? void 0 : o[h]);
276
- return o && r && Array.isArray(r) ? o ? r == null ? void 0 : r.flatMap((e) => e.checkedButtons) : [] : [];
277
- }
278
- if ((s == null ? void 0 : s.length) > 1) {
279
- let o = a == null ? void 0 : a.filter((e) => s == null ? void 0 : s.includes(e.roleName || (e == null ? void 0 : e.角色名称)));
280
- const h = G(o == null ? void 0 : o[0]), r = (d = (l = o == null ? void 0 : o.map((e) => Array.isArray(e == null ? void 0 : e[h]) ? e == null ? void 0 : e[h] : [])) == null ? void 0 : l.flat()) == null ? void 0 : d.flatMap((e) => e.checkedButtons);
281
- return (r == null ? void 0 : r.length) === 0 ? E.error("该用户没有权限,请联系管理员") : new Set(r);
282
- }
283
- }
284
- if (typeof s == "string") {
285
- const o = a == null ? void 0 : a.find((e) => (e == null ? void 0 : e.roleName) === s || (e == null ? void 0 : e.角色名称) === s), h = G(o), r = F(o == null ? void 0 : o[h]);
286
- return o && r && Array.isArray(r) ? o ? r == null ? void 0 : r.flatMap((e) => e.checkedButtons) : [] : [];
287
- }
288
- } catch (o) {
289
- throw new Error(o);
290
- }
291
- }, $ = async (a) => {
292
- var t, s;
293
- try {
294
- let n = [];
295
- const l = await Q({
296
- key: {
297
- // systemKey: user?.systemKey,
298
- systemKey: v.value ? v.value : a == null ? void 0 : a.systemKey,
299
- // pageKey: '/系统管理/角色管理',
300
- pageKey: "系统管理/角色管理",
301
- type: "data"
302
- }
303
- });
304
- if (l.data.code === 200) {
305
- const d = (s = (t = l.data) == null ? void 0 : t.result) == null ? void 0 : s.map((o) => o.value.tableData);
306
- n = H(d, a);
307
- }
308
- if (n)
309
- return Array.isArray(n) ? Array.from(n) : n;
310
- throw E.error("获取用户权限失败,请联系管理员"), new Error("获取用户权限失败,请联系管理员");
311
- } catch (n) {
312
- throw E.error("获取用户权限失败,请联系管理员"), new Error(n);
313
- }
314
- }, ee = async (a) => {
315
- var t, s, n, l, d, o, h;
316
- try {
317
- let r = [], e, T, P;
318
- v.value ? P = {
319
- // pageKey: '/系统管理/用户管理',
320
- pageKey: "系统管理/用户管理",
321
- type: "data",
322
- // 通过electron传递的值获取模型key,解决多账号导入同一模型,账号名重复权限失败问题
323
- systemKey: v.value
324
- } : P = {
325
- // pageKey: '/系统管理/用户管理',
326
- pageKey: "系统管理/用户管理",
327
- type: "data"
328
- };
329
- const j = await Q({
330
- key: P
331
- });
332
- let V;
333
- if (!sessionStorage.getItem("systemKey") || sessionStorage.getItem("systemKey") === "" ? V = await Q({
334
- key: {
335
- layer: "superAdmin"
336
- // systemKey:sessionStorage.getItem('tenantKey')
337
- }
338
- }) : V = await Q({
339
- key: {
340
- layer: "superAdmin",
341
- systemKey: sessionStorage.getItem("systemKey")
342
- }
343
- }), j.data.code === 200 && V.data.code === 200) {
344
- const ce = (s = (t = V.data) == null ? void 0 : t.result) == null ? void 0 : s.map((i) => {
345
- var k, x;
346
- return {
347
- ...i.value.tableData,
348
- layer: (k = i.key) == null ? void 0 : k.layer,
349
- systemKey: (x = i == null ? void 0 : i.key) == null ? void 0 : x.systemKey,
350
- id: i.id
351
- };
352
- }), le = (l = (n = j.data) == null ? void 0 : n.result) == null ? void 0 : l.map((i) => {
353
- var k, x;
354
- return {
355
- ...i.value.tableData,
356
- layer: (k = i.key) == null ? void 0 : k.layer,
357
- systemKey: (x = i == null ? void 0 : i.key) == null ? void 0 : x.systemKey,
358
- id: i.id
359
- };
360
- }), Z = [...ce, ...le];
361
- if (e = Z == null ? void 0 : Z.find((i) => (i == null ? void 0 : i.account) === (a == null ? void 0 : a.account) || (i == null ? void 0 : i.账号) === (a == null ? void 0 : a.account)), e) {
362
- if (((d = e.layer) == null ? void 0 : d.toUpperCase()) !== "SUPERADMIN" && (!(e != null && e.状态) || (e == null ? void 0 : e.状态) === "禁用" || (e == null ? void 0 : e.status) === "禁用")) {
363
- E.error("该用户已被禁用,请联系管理员"), A.value = !1;
364
- return;
365
- }
366
- r = await $(e);
367
- const { privateKey: i } = await c.getModelSecretAsync(e);
368
- let k;
369
- if (e.password ? k = ((o = e.layer) == null ? void 0 : o.toUpperCase()) === "SUPERADMIN" ? e.password : ie(e.password, i) : k = ((h = e.layer) == null ? void 0 : h.toUpperCase()) === "SUPERADMIN" ? e.password : de, (a == null ? void 0 : a.password) === k)
370
- T = e;
371
- else
372
- throw T = null, E.error("输入的密码错误,请重新输入"), A.value = !1, new Error("输入的密码错误,请重新输入");
373
- } else
374
- return E.error("该用户不存在,请重新输入");
375
- }
376
- return T && r ? {
377
- matchedUser: T,
378
- userAuthority: r
379
- } : void 0;
380
- } catch (r) {
381
- throw new Error(r);
382
- }
383
- }, ae = async (a) => {
384
- var s, n, l;
385
- const t = await ee(a);
386
- if (t != null && t.matchedUser) {
387
- c.setLoginUserInfo(t.matchedUser), sessionStorage.setItem("authority", JSON.stringify(t.userAuthority));
388
- const d = ((n = (s = t.matchedUser) == null ? void 0 : s.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN";
389
- return sessionStorage.setItem("isSuperAdmin", JSON.stringify(d)), sessionStorage.setItem("systemKey", v.value ? v.value : (l = t.matchedUser) == null ? void 0 : l.systemKey), await te(t.matchedUser), !0;
390
- } else
391
- throw A.value = !1, new Error("该用户数据处理失败,请联系管理员");
392
- }, te = async (a) => {
393
- var s, n, l, d, o, h, r, e, T;
394
- const t = await Q({
395
- key: {
396
- // pageKey: '/user',
397
- layer: "superAdmin",
398
- systemKey: v.value ? v.value : a == null ? void 0 : a.systemKey
399
- // systemKey: user?.systemKey
400
- }
401
- });
402
- if (t.data.code === 200 && (s = t.data) != null && s.result && Array.isArray((n = t.data) == null ? void 0 : n.result) && ((d = (l = t.data) == null ? void 0 : l.result) == null ? void 0 : d.length) > 0) {
403
- const P = (T = (e = (r = (h = (o = t.data) == null ? void 0 : o.result) == null ? void 0 : h[0]) == null ? void 0 : r.value) == null ? void 0 : e.tableData) == null ? void 0 : T.account;
404
- c.setSuperAdminInfo({
405
- account: P
406
- });
407
- }
408
- }, se = async () => {
409
- var a, t, s;
410
- try {
411
- const n = await Ye();
412
- return ((a = n == null ? void 0 : n.data) == null ? void 0 : a.code) === 200 ? (sessionStorage.setItem("loginToken", (s = (t = n.data) == null ? void 0 : t.result) == null ? void 0 : s.accessToken), !0) : !1;
413
- } catch (n) {
414
- E.error(n);
415
- }
416
- }, ne = async () => {
417
- var a, t, s;
418
- try {
419
- const n = await we.post("http://139.196.154.85:20024/api/sysAuth/login", {
420
- account: "superadmin",
421
- password: "9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",
422
- codeId: 0,
423
- code: ""
424
- });
425
- return ((a = n == null ? void 0 : n.data) == null ? void 0 : a.code) === 200 ? (sessionStorage.setItem("magicToken", (s = (t = n.data) == null ? void 0 : t.result) == null ? void 0 : s.accessToken), !0) : !1;
426
- } catch (n) {
427
- E.error(n);
428
- }
429
- }, W = async (a) => {
430
- var l, d, o, h;
431
- A.value = !0;
432
- let t = [ae(a), se(), ne()];
433
- const s = await Promise.all(t);
434
- (s == null ? void 0 : s.every((r) => r)) && (await Ce(), w.push("/"), c.setLogRecordAsync({
435
- type: "登录",
436
- data: {
437
- account: ((l = u.value) == null ? void 0 : l.account) ?? ((d = u.value) == null ? void 0 : d.账号),
438
- userName: ((o = u.value) == null ? void 0 : o.姓名) || ((h = u.value) == null ? void 0 : h.userName) || "未知"
439
- }
440
- }, "/login", "login"));
441
- }, oe = (a) => {
442
- p.value = a, m.value = !1, A.value = !1;
443
- }, re = (a) => /^[\u4e00-\u9fa5\s,。!?《》“”【】]+$/.test(a);
444
- return (a, t) => (O(), D("div", Fe, [
445
- b("div", We, [
446
- b("div", je, [
447
- y(Ke, { class: "login-left-bg" }, {
448
- img: f(() => {
449
- var s, n, l, d;
450
- return [
451
- b("div", ze, [
452
- b("div", null, N(((s = L(_)) == null ? void 0 : s.EnglishName) || "INSOFWORKS"), 1),
453
- b("div", null, N((n = L(_)) != null && n.chineseName && re((l = L(_)) == null ? void 0 : l.chineseName) ? (d = L(_)) == null ? void 0 : d.chineseName : "工业软件集成开发平台"), 1)
454
- ]),
455
- t[0] || (t[0] = b("div", { class: "divide-line" }, null, -1))
456
- ];
457
- }),
458
- _: 1
459
- })
460
- ]),
461
- b("div", He, [
462
- y(Pe, {
463
- loading: A.value,
464
- onClickLogin: C,
465
- onHandleTabClick: oe
466
- }, {
467
- title: f(() => [
468
- R(N(g.value.loginTitle), 1)
469
- ]),
470
- tabLabel1: f(() => [
471
- R(N(g.value.tabs[0].name), 1)
472
- ]),
473
- tabContent1: f(() => [
474
- y(Ze, {
475
- activeTabName: p.value,
476
- onHandleCardInput: q
477
- }, null, 8, ["activeTabName"])
478
- ]),
479
- tabButton1: f(() => [
480
- R(N(g.value.tabs[0].btnLabel), 1)
481
- ]),
482
- tabLabel2: f(() => [
483
- R(N(g.value.tabs[1].name), 1)
484
- ]),
485
- tabContent2: f(() => [
486
- y(Qe, {
487
- activeTabName: p.value,
488
- isClickLogin: m.value,
489
- onHandleLoginFormChange: M
490
- }, null, 8, ["activeTabName", "isClickLogin"])
491
- ]),
492
- tabButton2: f(() => [
493
- R(N(g.value.tabs[1].btnLabel), 1)
494
- ]),
495
- _: 1
496
- }, 8, ["loading"])
497
- ])
498
- ])
499
- ]));
500
- }
501
- }), ra = /* @__PURE__ */ J($e, [["__scopeId", "data-v-756665ac"]]);
502
- export {
503
- ra as default
504
- };
@@ -1,22 +0,0 @@
1
- import { defineComponent as n, reactive as o, onMounted as r, createElementBlock as s, openBlock as c, createVNode as m } from "vue";
2
- import { s as u } from "./index-DPX3w6cO.js";
3
- import { S as i } from "./index-D4pN9YmB.js";
4
- import { u as p, aw as l } from "./index.vue_vue_type_style_index_1_lang-B0l6QIWy.js";
5
- import { s as d } from "./index-Dm_WlV6R.js";
6
- const x = /* @__PURE__ */ n({
7
- __name: "index",
8
- setup(f) {
9
- const e = o({ ...i }), t = p(), { activeMenuPath: a } = d(t);
10
- return r(async () => {
11
- e.structureId = await l(a.value);
12
- }), (_, g) => (c(), s("div", null, [
13
- m(u, {
14
- itemData: e.pageData,
15
- onChange: e.handleItemDataChange
16
- }, null, 8, ["itemData", "onChange"])
17
- ]));
18
- }
19
- });
20
- export {
21
- x as default
22
- };
@@ -1 +0,0 @@
1
- "use strict";const n=require("vue"),u=require("./index-BOJUyAaV.cjs"),r=require("./index.vue_vue_type_style_index_1_lang-CC1o5rIu.cjs"),d=r.useModelComp(),{itemData:g}=u.storeToRefs(d),y=n.ref(0),D=n.ref([{label:"机构名称",value:"",name:"deptName"}]),f=e=>{console.log("handleQueryChange",e)},s=n.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"header",contents:[{label:"职位名称",prop:"postName"},{label:"职位排序",formType:"Number",prop:"postOrder"},{label:"备注",formType:"TextArea",prop:"remark"},{label:"操作"}]},{key:"tableContents",contents:[]}]),i=e=>{r.submitTableAsyncByVerify(e.singleContent,e.buttonName,y.value)},m=e=>{console.log("onDoubleClick",e)},h=(e,a)=>{console.log("onButtonClick",e,a)},k=async e=>{const a=await r.handleSubmitAsync(u.getInsofDataApi,{key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:e}},"查询"),l=a==null?void 0:a.map(t=>{var o;return{id:t.id,tableData:(o=t==null?void 0:t.value)==null?void 0:o.tableData}});return l==null?void 0:l.map(t=>{var o;if(Array.isArray(t==null?void 0:t.tableData)){let c={id:t.id};return(o=t==null?void 0:t.tableData)==null||o.forEach((p,b)=>{c[`a${b}`]=p}),c}else return{...t.tableData,id:t.id}})},C={comp:"Group",name:"/系统管理/职位管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:s.value,name:""}]}]};n.watch(()=>g.value,e=>{var a;e&&(e==null?void 0:e.length)>0&&(s.value=(a=e==null?void 0:e[0])==null?void 0:a.compData)});const _=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:k,handleItemDataChange:i,handleQueryChange:f,onButtonClick:h,onDoubleClick:m,pageData:s,queryFormData:D,structureId:y,tempPostPageData:C},Symbol.toStringTag,{value:"Module"}));exports.State=_;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-CsOz5vsv.cjs"),o=require("./index-C54wX50t.cjs"),n=require("./index.vue_vue_type_style_index_1_lang-CC1o5rIu.cjs"),c=require("./index-BOJUyAaV.cjs"),i=e.defineComponent({__name:"index",setup(s){const t=e.reactive({...o.State}),a=n.useMenuState(),{activeMenuPath:r}=c.storeToRefs(a);return e.onMounted(async()=>{t.structureId=await n.getActivePageStructureId(r.value)}),(d,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(u.ssTable,{itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=i;