ss-component-new 1.3.299 → 1.3.301
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{MTLLoader-C6rfxQ-U.cjs → MTLLoader-CLDHKsuZ.cjs} +1 -1
- package/dist/{MTLLoader-QOhYCFfg.js → MTLLoader-RDE-ZA7R.js} +1 -1
- package/dist/{OrbitControls-BYkzMsSX.js → OrbitControls-BMOJWSL-.js} +1 -1
- package/dist/{OrbitControls-stRsVWeF.cjs → OrbitControls-BdotT7Cg.cjs} +1 -1
- package/dist/{URDFLoader-C51mjCMr.cjs → URDFLoader-Y4l_xAEg.cjs} +1 -1
- package/dist/{URDFLoader-0Z7i50uS.js → URDFLoader-emHFNLHl.js} +2 -2
- package/dist/{animationData-B2ukhquH.js → animationData-BHoj-1LD.js} +1 -1
- package/dist/{animationData-2Gchlfns.cjs → animationData-CQdthirF.cjs} +1 -1
- package/dist/{array-DqQ10pgf.js → array-Cio8S2Pj.js} +2 -2
- package/dist/{array-T9nqLG8-.cjs → array-P5J-DgMu.cjs} +1 -1
- package/dist/{iconfont-T5Fea0KO.js → iconfont-Cg9QlUoy.js} +2 -2
- package/dist/{iconfont-B3tjmizt.cjs → iconfont-Cp7o4QAt.cjs} +1 -1
- package/dist/index-5rsqoznF.cjs +1 -0
- package/dist/{index-BfuVz3K9.js → index-6teHdmr0.js} +1 -1
- package/dist/{index-CcukUQFg.cjs → index-8VjHjOci.cjs} +1 -1
- package/dist/{index-DEyzTMWb.js → index-B47-vpvz.js} +8 -8
- package/dist/{index-CNNvnXL-.cjs → index-BGYRY71Y.cjs} +1 -1
- package/dist/{index-DsrGHWEC.js → index-BREFniPq.js} +2 -2
- package/dist/{index-B7SicFCg.js → index-BS23fm8I.js} +4 -4
- package/dist/{index-CgJcqeX6.cjs → index-BWfqrsaY.cjs} +1 -1
- package/dist/{index-GO1Lz7Zt.cjs → index-BdGKsSb2.cjs} +1 -1
- package/dist/{index-D_gRgix8.cjs → index-BohJ0pIH.cjs} +1 -1
- package/dist/index-Br8-OQ_d.js +679 -0
- package/dist/index-BwyBfUCz.cjs +1 -0
- package/dist/{index-CBb-zQHx.cjs → index-C3RYFBPK.cjs} +1 -1
- package/dist/{index-C7GJL6z-.js → index-CPz5Q62a.js} +1 -1
- package/dist/{index-oQh1Uggj.js → index-CagHv4za.js} +1 -1
- package/dist/{index-DG_ZoAwM.cjs → index-Cro-IzQv.cjs} +1 -1
- package/dist/{index-CBcfU3m6.cjs → index-CtBrDQiG.cjs} +1 -1
- package/dist/{index-q95IIhgh.js → index-CwZs4rIC.js} +3 -3
- package/dist/{index-D19XK7TO.cjs → index-D1vYje_p.cjs} +1 -1
- package/dist/{index-Bn7knDwT.js → index-D58LRV4j.js} +3 -3
- package/dist/{index-BgfmfNPA.js → index-D6yEF8Ru.js} +11 -11
- package/dist/{index-mssdamNL.cjs → index-DOCsP0-B.cjs} +2 -2
- package/dist/{index-Dai4JO2O.js → index-DXKzYxhw.js} +1 -1
- package/dist/{index-DenEnDJU.cjs → index-Dkvr_yZQ.cjs} +1 -1
- package/dist/{index-xffrXm5v.js → index-DmMl7DkC.js} +2 -2
- package/dist/{index-fUAdrzUM.js → index-DoQ2DjBA.js} +1 -1
- package/dist/{index-4EJ5L5Xz.cjs → index-DsIkRvPS.cjs} +1 -1
- package/dist/{index-DoKZdFff.js → index-DsUMFNuA.js} +3 -3
- package/dist/{index-ejX66qtQ.cjs → index-H8n2KFLX.cjs} +1 -1
- package/dist/{index-B7uNKUJO.cjs → index-PAFvx19H.cjs} +1 -1
- package/dist/{index-Ck4FzhK5.js → index-d3eamXNt.js} +1 -1
- package/dist/{index-_-BYjVt0.js → index-rjTawDw6.js} +1 -1
- package/dist/{index-seYmaZzj.js → index-tT9c2s2F.js} +37 -46
- package/dist/{index-DRwDJR5N.cjs → index-yXqsfBiR.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DLhSjOxx.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Dmtv1jQ3.js} +1839 -1844
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-6F-e2GJs.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-_g-HLUBE.cjs} +61 -61
- package/dist/{main-lz6P4Grc.js → main-C5mcsbRd.js} +2 -2
- package/dist/{main-BZlQ_ZJE.cjs → main-D8ovrBi2.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +9 -9
- package/dist/{threeModel-CwmK2TwD.js → threeModel-3JirGS2j.js} +3 -3
- package/dist/{threeModel-B8eFQDHt.cjs → threeModel-D3UmXNUb.cjs} +1 -1
- package/dist/{threePreview-DQX5gazP.cjs → threePreview-_Pa_rEAW.cjs} +1 -1
- package/dist/{threePreview-DtTo1E4j.js → threePreview-diIAbbKf.js} +3 -3
- package/dist/{threeSceneView-DTG1bI4T.cjs → threeSceneView-B5pQXPj7.cjs} +1 -1
- package/dist/{threeSceneView-Cqbj-LVO.js → threeSceneView-DINMkVVz.js} +8 -8
- package/dist/{threeSceneViewForCPMPIP-yD2zYzyp.js → threeSceneViewForCPMPIP-DqzjXWdH.js} +7 -7
- package/dist/{threeSceneViewForCPMPIP-CbvF6hkZ.cjs → threeSceneViewForCPMPIP-k5RanDHf.cjs} +1 -1
- package/dist/{threeTrackPathView-CMukJRgd.js → threeTrackPathView-CmGiZRgE.js} +3 -3
- package/dist/{threeTrackPathView-yar3btno.cjs → threeTrackPathView-DFuI3kE-.cjs} +1 -1
- package/dist/{threeViewerHost-DDYA5LuC.js → threeViewerHost-B-HsQ66C.js} +2 -2
- package/dist/{threeViewerHost-tSqOUmM_.cjs → threeViewerHost-msa4WUeH.cjs} +1 -1
- package/dist/{urdfTree-D7WPM5fm.cjs → urdfTree-CeTWjJ2Y.cjs} +1 -1
- package/dist/{urdfTree-Cfw6km7X.js → urdfTree-DwmC3WSP.js} +1 -1
- package/dist/{workpieceTreePanel-rK0hhgpD.cjs → workpieceTreePanel-BjTo7Vbi.cjs} +1 -1
- package/dist/{workpieceTreePanel-D3uYkSze.js → workpieceTreePanel-MbzDAYJO.js} +4 -4
- package/package.json +1 -1
- package/dist/index-BYvr8bra.js +0 -481
- package/dist/index-Bb5jvp_6.cjs +0 -1
- package/dist/index-Dw_T3WYA.cjs +0 -1
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -0,0 +1,679 @@
|
|
|
1
|
+
import { createElementBlock as x, openBlock as I, createElementVNode as d, renderSlot as N, defineComponent as q, ref as A, resolveComponent as U, createVNode as i, withCtx as a, unref as K, reactive as H, computed as oe, onMounted as ae, createBlock as se, watch as z, Fragment as le, createTextVNode as S, onBeforeUnmount as ie, createCommentVNode as ce, toDisplayString as R } from "vue";
|
|
2
|
+
import { _ as E } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
import { b as j, p as O, s as ne, l as re, d as de, u as ue, e as me } from "./menu-BMAZOS2j.js";
|
|
4
|
+
import { _ as ee } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
5
|
+
import "./index-CEwg_zdl.js";
|
|
6
|
+
import { u as pe } from "./index-CqiskI7e.js";
|
|
7
|
+
import { E as P, s as fe } from "./request-CoGtW0Ux.js";
|
|
8
|
+
import { useRouter as _e } from "vue-router";
|
|
9
|
+
import { u as ge, l as ve, v as be } from "./index-CkXAOjdK.js";
|
|
10
|
+
const he = {}, ye = { class: "left-wrap" }, Ce = { class: "left-bg" };
|
|
11
|
+
function we(b, u) {
|
|
12
|
+
return I(), x("div", ye, [
|
|
13
|
+
d("div", Ce, [
|
|
14
|
+
N(b.$slots, "img", {}, void 0, !0)
|
|
15
|
+
])
|
|
16
|
+
]);
|
|
17
|
+
}
|
|
18
|
+
const Le = /* @__PURE__ */ E(he, [["render", we], ["__scopeId", "data-v-9b7ee6c9"]]), M = {
|
|
19
|
+
ACCOUNT: "account",
|
|
20
|
+
FACE: "face"
|
|
21
|
+
}, Te = { class: "right-wrap" }, Ue = { class: "tab-content" }, ke = { class: "tab-tips" }, $e = { class: "tab-content" }, Ae = { class: "tab-tips" }, Ve = /* @__PURE__ */ q({
|
|
22
|
+
__name: "index",
|
|
23
|
+
props: {
|
|
24
|
+
tabList: {
|
|
25
|
+
type: Array,
|
|
26
|
+
default: []
|
|
27
|
+
},
|
|
28
|
+
loading: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: !1
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
emits: ["clickLogin", "handleTabChange"],
|
|
34
|
+
setup(b, { emit: u }) {
|
|
35
|
+
const o = A(M.ACCOUNT), e = u, w = () => {
|
|
36
|
+
e("clickLogin", o.value);
|
|
37
|
+
}, l = (_) => {
|
|
38
|
+
e("handleTabChange", _);
|
|
39
|
+
};
|
|
40
|
+
return (_, g) => {
|
|
41
|
+
const c = U("el-button"), L = U("el-tab-pane"), r = U("el-tabs");
|
|
42
|
+
return I(), x("div", Te, [
|
|
43
|
+
i(r, {
|
|
44
|
+
modelValue: o.value,
|
|
45
|
+
"onUpdate:modelValue": g[0] || (g[0] = (n) => o.value = n),
|
|
46
|
+
class: "right-tabs",
|
|
47
|
+
onTabChange: l
|
|
48
|
+
}, {
|
|
49
|
+
default: a(() => [
|
|
50
|
+
i(L, {
|
|
51
|
+
name: K(M).ACCOUNT
|
|
52
|
+
}, {
|
|
53
|
+
label: a(() => [
|
|
54
|
+
N(_.$slots, "tabLabel1", {}, void 0, !0)
|
|
55
|
+
]),
|
|
56
|
+
default: a(() => [
|
|
57
|
+
d("div", Ue, [
|
|
58
|
+
N(_.$slots, "tabContent1", {}, void 0, !0)
|
|
59
|
+
]),
|
|
60
|
+
d("div", {
|
|
61
|
+
class: "tab-button special",
|
|
62
|
+
onClick: w
|
|
63
|
+
}, [
|
|
64
|
+
i(c, { loading: b.loading }, {
|
|
65
|
+
default: a(() => [
|
|
66
|
+
N(_.$slots, "tabButton1", {}, void 0, !0)
|
|
67
|
+
]),
|
|
68
|
+
_: 3
|
|
69
|
+
}, 8, ["loading"])
|
|
70
|
+
]),
|
|
71
|
+
d("div", ke, [
|
|
72
|
+
N(_.$slots, "tabTips1", {}, void 0, !0)
|
|
73
|
+
])
|
|
74
|
+
]),
|
|
75
|
+
_: 3
|
|
76
|
+
}, 8, ["name"]),
|
|
77
|
+
i(L, {
|
|
78
|
+
name: K(M).FACE
|
|
79
|
+
}, {
|
|
80
|
+
label: a(() => [
|
|
81
|
+
N(_.$slots, "tabLabel2", {}, void 0, !0)
|
|
82
|
+
]),
|
|
83
|
+
default: a(() => [
|
|
84
|
+
d("div", $e, [
|
|
85
|
+
N(_.$slots, "tabContent2", {}, void 0, !0)
|
|
86
|
+
]),
|
|
87
|
+
d("div", Ae, [
|
|
88
|
+
N(_.$slots, "tabTips2", {}, void 0, !0)
|
|
89
|
+
])
|
|
90
|
+
]),
|
|
91
|
+
_: 3
|
|
92
|
+
}, 8, ["name"])
|
|
93
|
+
]),
|
|
94
|
+
_: 3
|
|
95
|
+
}, 8, ["modelValue"])
|
|
96
|
+
]);
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
}), Ne = /* @__PURE__ */ E(Ve, [["__scopeId", "data-v-8b1962f0"]]), Fe = /^[a-z][a-z0-9+.-]*:\/\//i, J = (b) => Fe.test(b);
|
|
100
|
+
function Re(b) {
|
|
101
|
+
J(b) || (b = `http://${b}`);
|
|
102
|
+
try {
|
|
103
|
+
const u = new URL(b);
|
|
104
|
+
return {
|
|
105
|
+
host: u.hostname,
|
|
106
|
+
// 域名:example.com
|
|
107
|
+
port: u.port || null
|
|
108
|
+
// 端口:8080(默认端口返回空字符串,转为 null)
|
|
109
|
+
};
|
|
110
|
+
} catch {
|
|
111
|
+
return {
|
|
112
|
+
host: null,
|
|
113
|
+
port: null
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
const Ie = () => ({ initUrlInfo: () => ({
|
|
118
|
+
host: null,
|
|
119
|
+
port: null
|
|
120
|
+
}), hasProtocol: J, generateUrl: (o) => {
|
|
121
|
+
const { host: e, port: w } = o;
|
|
122
|
+
if (!e)
|
|
123
|
+
return null;
|
|
124
|
+
let l = `${e}`;
|
|
125
|
+
return J(e) || (l = `http://${l}`), w && (l = `${l}:${w}`), l;
|
|
126
|
+
} }), Se = { class: "body-wrapper" }, xe = { class: "api-form-wrapper" }, Ee = { class: "edit-footer" }, Be = { class: "footer-right" }, Me = /* @__PURE__ */ q({
|
|
127
|
+
__name: "index",
|
|
128
|
+
emits: ["updateApiUrl"],
|
|
129
|
+
setup(b, { expose: u, emit: o }) {
|
|
130
|
+
const e = o, w = j(O), { systemUrl: l } = ne(w), { initUrlInfo: _, generateUrl: g } = Ie(), c = A(_()), L = A(), r = H({
|
|
131
|
+
host: [
|
|
132
|
+
{ required: !0, message: "请输入职位名称", trigger: "blur" }
|
|
133
|
+
]
|
|
134
|
+
}), n = oe(() => l.value || "http://222.92.178.198:63002"), h = () => {
|
|
135
|
+
c.value = Re(n.value);
|
|
136
|
+
};
|
|
137
|
+
ae(() => {
|
|
138
|
+
h();
|
|
139
|
+
});
|
|
140
|
+
const v = A(!1), t = () => {
|
|
141
|
+
v.value = !0;
|
|
142
|
+
}, m = () => {
|
|
143
|
+
v.value = !1;
|
|
144
|
+
}, p = () => {
|
|
145
|
+
h(), m();
|
|
146
|
+
}, y = async () => {
|
|
147
|
+
var s;
|
|
148
|
+
await ((s = L.value) == null ? void 0 : s.validate());
|
|
149
|
+
const $ = g(c.value);
|
|
150
|
+
e("updateApiUrl", $), p();
|
|
151
|
+
};
|
|
152
|
+
return u({
|
|
153
|
+
openDialog: t,
|
|
154
|
+
handleClose: p
|
|
155
|
+
}), ($, s) => {
|
|
156
|
+
const V = U("el-input"), f = U("el-form-item"), T = U("el-col"), k = U("el-row"), C = U("el-form"), B = U("el-dialog");
|
|
157
|
+
return I(), se(B, {
|
|
158
|
+
class: "api-form-dialog",
|
|
159
|
+
modelValue: v.value,
|
|
160
|
+
"onUpdate:modelValue": s[2] || (s[2] = (F) => v.value = F),
|
|
161
|
+
"before-close": p,
|
|
162
|
+
"destroy-on-close": "",
|
|
163
|
+
"show-close": !1
|
|
164
|
+
}, {
|
|
165
|
+
header: a(() => s[3] || (s[3] = [])),
|
|
166
|
+
default: a(() => [
|
|
167
|
+
d("div", Se, [
|
|
168
|
+
d("div", xe, [
|
|
169
|
+
i(C, {
|
|
170
|
+
class: "api-edit-form",
|
|
171
|
+
ref_key: "apiFormRef",
|
|
172
|
+
ref: L,
|
|
173
|
+
model: c.value,
|
|
174
|
+
rules: r
|
|
175
|
+
}, {
|
|
176
|
+
default: a(() => [
|
|
177
|
+
i(k, { gutter: 20 }, {
|
|
178
|
+
default: a(() => [
|
|
179
|
+
i(T, { span: 12 }, {
|
|
180
|
+
default: a(() => [
|
|
181
|
+
i(f, {
|
|
182
|
+
prop: "host",
|
|
183
|
+
label: "主机名",
|
|
184
|
+
"label-position": "top"
|
|
185
|
+
}, {
|
|
186
|
+
default: a(() => [
|
|
187
|
+
i(V, {
|
|
188
|
+
modelValue: c.value.host,
|
|
189
|
+
"onUpdate:modelValue": s[0] || (s[0] = (F) => c.value.host = F),
|
|
190
|
+
"aria-label": "主机名",
|
|
191
|
+
placeholder: "主机名"
|
|
192
|
+
}, null, 8, ["modelValue"])
|
|
193
|
+
]),
|
|
194
|
+
_: 1
|
|
195
|
+
})
|
|
196
|
+
]),
|
|
197
|
+
_: 1
|
|
198
|
+
}),
|
|
199
|
+
i(T, { span: 12 }, {
|
|
200
|
+
default: a(() => [
|
|
201
|
+
i(f, {
|
|
202
|
+
prop: "port",
|
|
203
|
+
label: "端口",
|
|
204
|
+
"label-position": "top"
|
|
205
|
+
}, {
|
|
206
|
+
default: a(() => [
|
|
207
|
+
i(V, {
|
|
208
|
+
modelValue: c.value.port,
|
|
209
|
+
"onUpdate:modelValue": s[1] || (s[1] = (F) => c.value.port = F),
|
|
210
|
+
"aria-label": "端口",
|
|
211
|
+
placeholder: "端口"
|
|
212
|
+
}, null, 8, ["modelValue"])
|
|
213
|
+
]),
|
|
214
|
+
_: 1
|
|
215
|
+
})
|
|
216
|
+
]),
|
|
217
|
+
_: 1
|
|
218
|
+
})
|
|
219
|
+
]),
|
|
220
|
+
_: 1
|
|
221
|
+
})
|
|
222
|
+
]),
|
|
223
|
+
_: 1
|
|
224
|
+
}, 8, ["model", "rules"])
|
|
225
|
+
])
|
|
226
|
+
])
|
|
227
|
+
]),
|
|
228
|
+
footer: a(() => [
|
|
229
|
+
d("div", Ee, [
|
|
230
|
+
s[4] || (s[4] = d("div", { class: "footer-left" }, null, -1)),
|
|
231
|
+
d("div", Be, [
|
|
232
|
+
i(ee, {
|
|
233
|
+
class: "cancel",
|
|
234
|
+
emptyColor: !0,
|
|
235
|
+
onClickTrigger: p,
|
|
236
|
+
modelValue: "取消",
|
|
237
|
+
buttonType: "info"
|
|
238
|
+
}),
|
|
239
|
+
i(ee, {
|
|
240
|
+
class: "confirm",
|
|
241
|
+
emptyColor: !0,
|
|
242
|
+
onClickTrigger: y,
|
|
243
|
+
modelValue: "确定",
|
|
244
|
+
buttonType: "primary"
|
|
245
|
+
})
|
|
246
|
+
])
|
|
247
|
+
])
|
|
248
|
+
]),
|
|
249
|
+
_: 1
|
|
250
|
+
}, 8, ["modelValue"]);
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
}), Oe = /* @__PURE__ */ E(Me, [["__scopeId", "data-v-3e10c3b2"]]), qe = { class: "account-wrap" }, De = { class: "extra-operate" }, Ke = /* @__PURE__ */ q({
|
|
254
|
+
__name: "index",
|
|
255
|
+
props: {
|
|
256
|
+
activeTabName: {
|
|
257
|
+
type: String,
|
|
258
|
+
default: ""
|
|
259
|
+
},
|
|
260
|
+
isClickLogin: {
|
|
261
|
+
type: Boolean,
|
|
262
|
+
default: !1
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
emits: ["handleLoginFormChange", "updateApiUrl"],
|
|
266
|
+
setup(b, { emit: u }) {
|
|
267
|
+
const o = b, e = H({
|
|
268
|
+
account: "",
|
|
269
|
+
password: ""
|
|
270
|
+
}), w = H({
|
|
271
|
+
account: [
|
|
272
|
+
{ required: !0, message: "请输入账号", trigger: "blur" }
|
|
273
|
+
],
|
|
274
|
+
password: [
|
|
275
|
+
{ required: !0, message: "请输入密码", trigger: "blur" }
|
|
276
|
+
]
|
|
277
|
+
}), l = A(null), _ = u;
|
|
278
|
+
z(() => o.isClickLogin, (r) => {
|
|
279
|
+
var n;
|
|
280
|
+
r && (o == null ? void 0 : o.activeTabName) === "account" && ((n = l.value) == null || n.validate((h) => {
|
|
281
|
+
var v;
|
|
282
|
+
for (let t in e)
|
|
283
|
+
e.hasOwnProperty(t) && (e[t] = (v = e[t]) == null ? void 0 : v.trim());
|
|
284
|
+
_("handleLoginFormChange", h, h ? e : null);
|
|
285
|
+
}));
|
|
286
|
+
}, {
|
|
287
|
+
immediate: !0
|
|
288
|
+
}), z(() => o.activeTabName, (r) => {
|
|
289
|
+
var n;
|
|
290
|
+
r === "account" && ((n = l.value) == null || n.resetFields());
|
|
291
|
+
});
|
|
292
|
+
const g = A(), c = () => {
|
|
293
|
+
var r, n;
|
|
294
|
+
(n = (r = g.value) == null ? void 0 : r.openDialog) == null || n.call(r);
|
|
295
|
+
}, L = (r) => {
|
|
296
|
+
_("updateApiUrl", r);
|
|
297
|
+
};
|
|
298
|
+
return (r, n) => {
|
|
299
|
+
const h = U("svg-icon"), v = U("el-input"), t = U("el-form-item"), m = U("el-form"), p = U("el-link");
|
|
300
|
+
return I(), x(le, null, [
|
|
301
|
+
d("div", qe, [
|
|
302
|
+
i(m, {
|
|
303
|
+
model: e,
|
|
304
|
+
rules: w,
|
|
305
|
+
ref_key: "formRef",
|
|
306
|
+
ref: l
|
|
307
|
+
}, {
|
|
308
|
+
default: a(() => [
|
|
309
|
+
i(t, {
|
|
310
|
+
label: "",
|
|
311
|
+
prop: "account"
|
|
312
|
+
}, {
|
|
313
|
+
default: a(() => [
|
|
314
|
+
i(v, {
|
|
315
|
+
class: "account-input",
|
|
316
|
+
modelValue: e.account,
|
|
317
|
+
"onUpdate:modelValue": n[0] || (n[0] = (y) => e.account = y),
|
|
318
|
+
placeholder: "请输入账号",
|
|
319
|
+
clearable: ""
|
|
320
|
+
}, {
|
|
321
|
+
prefix: a(() => [
|
|
322
|
+
i(h, {
|
|
323
|
+
name: "account",
|
|
324
|
+
style: { width: "15px", height: "15px" }
|
|
325
|
+
})
|
|
326
|
+
]),
|
|
327
|
+
_: 1
|
|
328
|
+
}, 8, ["modelValue"])
|
|
329
|
+
]),
|
|
330
|
+
_: 1
|
|
331
|
+
}),
|
|
332
|
+
i(t, {
|
|
333
|
+
label: "",
|
|
334
|
+
prop: "password"
|
|
335
|
+
}, {
|
|
336
|
+
default: a(() => [
|
|
337
|
+
i(v, {
|
|
338
|
+
class: "account-input",
|
|
339
|
+
modelValue: e.password,
|
|
340
|
+
"onUpdate:modelValue": n[1] || (n[1] = (y) => e.password = y),
|
|
341
|
+
type: "password",
|
|
342
|
+
placeholder: "请输入密码",
|
|
343
|
+
"show-password": "",
|
|
344
|
+
clearable: ""
|
|
345
|
+
}, {
|
|
346
|
+
prefix: a(() => [
|
|
347
|
+
i(h, {
|
|
348
|
+
name: "password",
|
|
349
|
+
style: { width: "15px", height: "15px" }
|
|
350
|
+
})
|
|
351
|
+
]),
|
|
352
|
+
_: 1
|
|
353
|
+
}, 8, ["modelValue"])
|
|
354
|
+
]),
|
|
355
|
+
_: 1
|
|
356
|
+
})
|
|
357
|
+
]),
|
|
358
|
+
_: 1
|
|
359
|
+
}, 8, ["model", "rules"]),
|
|
360
|
+
d("div", De, [
|
|
361
|
+
i(p, {
|
|
362
|
+
class: "api-button",
|
|
363
|
+
type: "primary",
|
|
364
|
+
onClick: c
|
|
365
|
+
}, {
|
|
366
|
+
default: a(() => n[2] || (n[2] = [
|
|
367
|
+
S("接口地址")
|
|
368
|
+
])),
|
|
369
|
+
_: 1,
|
|
370
|
+
__: [2]
|
|
371
|
+
})
|
|
372
|
+
])
|
|
373
|
+
]),
|
|
374
|
+
i(Oe, {
|
|
375
|
+
ref_key: "apiFormDialogRef",
|
|
376
|
+
ref: g,
|
|
377
|
+
onUpdateApiUrl: L
|
|
378
|
+
}, null, 512)
|
|
379
|
+
], 64);
|
|
380
|
+
};
|
|
381
|
+
}
|
|
382
|
+
}), Pe = /* @__PURE__ */ E(Ke, [["__scopeId", "data-v-032ff9a0"]]), je = { class: "account-wrap" }, He = { class: "video-wrap" }, ze = /* @__PURE__ */ q({
|
|
383
|
+
__name: "index",
|
|
384
|
+
props: {
|
|
385
|
+
systemKey: { default: "" },
|
|
386
|
+
activeTabName: { default: "" },
|
|
387
|
+
isClickLogin: { type: Boolean, default: !1 }
|
|
388
|
+
},
|
|
389
|
+
emits: ["handleLoginFormChange"],
|
|
390
|
+
setup(b, { emit: u }) {
|
|
391
|
+
const o = b, e = u;
|
|
392
|
+
j(O);
|
|
393
|
+
const { initVerify: w } = pe(), l = A(null), _ = A(null);
|
|
394
|
+
let g = !1, c = null;
|
|
395
|
+
const L = async (t) => {
|
|
396
|
+
if (!t)
|
|
397
|
+
return;
|
|
398
|
+
const m = await w(t), { data: p } = m || {}, { account: y, password: $ } = (p == null ? void 0 : p.data) || {}, s = p == null ? void 0 : p.msg;
|
|
399
|
+
if (!y) {
|
|
400
|
+
P.warning(s || "识别失败,请重新识别!");
|
|
401
|
+
return;
|
|
402
|
+
}
|
|
403
|
+
e("handleLoginFormChange", !0, {
|
|
404
|
+
account: y,
|
|
405
|
+
password: $
|
|
406
|
+
});
|
|
407
|
+
}, r = () => {
|
|
408
|
+
if (!_.value || !l.value)
|
|
409
|
+
return;
|
|
410
|
+
const t = _.value, m = t.getContext("2d"), p = l.value;
|
|
411
|
+
t.width = 200, t.height = 200;
|
|
412
|
+
const y = p.videoWidth || 640, $ = p.videoHeight || 480, s = Math.min(200 / y, 200 / $), V = y * s, f = $ * s, T = (200 - V) / 2, k = (200 - f) / 2;
|
|
413
|
+
m == null || m.drawImage(p, 0, 0, y, $, T, k, V, f), t.toBlob((C) => {
|
|
414
|
+
if (C) {
|
|
415
|
+
const B = new File([C], "face.png", { type: "image/png" });
|
|
416
|
+
L(B);
|
|
417
|
+
}
|
|
418
|
+
}, "image/png");
|
|
419
|
+
}, n = async () => {
|
|
420
|
+
if (!l.value || g)
|
|
421
|
+
return;
|
|
422
|
+
const t = l.value;
|
|
423
|
+
try {
|
|
424
|
+
if (c = await navigator.mediaDevices.getUserMedia({
|
|
425
|
+
video: { facingMode: "user" },
|
|
426
|
+
// 前置;后置用 'environment'
|
|
427
|
+
audio: !1
|
|
428
|
+
}), t) {
|
|
429
|
+
const m = t;
|
|
430
|
+
m.srcObject = c, g = !0;
|
|
431
|
+
}
|
|
432
|
+
} catch {
|
|
433
|
+
P.warning("摄像头启动失败");
|
|
434
|
+
}
|
|
435
|
+
};
|
|
436
|
+
function h(t) {
|
|
437
|
+
if (t && (t.getTracks().forEach((m) => m.stop()), l.value)) {
|
|
438
|
+
const m = l.value;
|
|
439
|
+
m.srcObject = null;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
const v = () => {
|
|
443
|
+
h(c), g = !1;
|
|
444
|
+
};
|
|
445
|
+
return z(() => o.activeTabName, (t) => {
|
|
446
|
+
if (t !== M.FACE) {
|
|
447
|
+
v();
|
|
448
|
+
return;
|
|
449
|
+
}
|
|
450
|
+
if (t === M.FACE && !g) {
|
|
451
|
+
n();
|
|
452
|
+
return;
|
|
453
|
+
}
|
|
454
|
+
}), ie(() => {
|
|
455
|
+
v();
|
|
456
|
+
}), (t, m) => (I(), x("div", je, [
|
|
457
|
+
d("div", He, [
|
|
458
|
+
d("video", {
|
|
459
|
+
class: "face-video",
|
|
460
|
+
ref_key: "videoRef",
|
|
461
|
+
ref: l,
|
|
462
|
+
id: "v",
|
|
463
|
+
autoplay: "",
|
|
464
|
+
playsinline: ""
|
|
465
|
+
}, null, 512)
|
|
466
|
+
]),
|
|
467
|
+
N(t.$slots, "default", {}, () => [
|
|
468
|
+
d("button", {
|
|
469
|
+
class: "face-screenshot",
|
|
470
|
+
onClick: r
|
|
471
|
+
}, "人脸识别")
|
|
472
|
+
], !0),
|
|
473
|
+
d("canvas", {
|
|
474
|
+
ref_key: "canvasRef",
|
|
475
|
+
ref: _,
|
|
476
|
+
id: "canvas"
|
|
477
|
+
}, null, 512)
|
|
478
|
+
]));
|
|
479
|
+
}
|
|
480
|
+
}), Je = /* @__PURE__ */ E(ze, [["__scopeId", "data-v-b64bc91c"]]);
|
|
481
|
+
function We() {
|
|
482
|
+
return fe({
|
|
483
|
+
url: "/api/sysAuth/login",
|
|
484
|
+
method: "post",
|
|
485
|
+
data: {
|
|
486
|
+
account: "superadmin",
|
|
487
|
+
password: "1c8e7623312244c1feb677732278fb8b2af6af1a5335fdaebbdb2720137b372b7871292d11165b83b2967b9c39fa37027d63d37a2f36d764257b566dcfa99f334faa8995301601aec549adf39aef8d89c8788da03a9164937a5f73af20a15ea60d47c7cf01cf",
|
|
488
|
+
tenantId: -1,
|
|
489
|
+
code: "",
|
|
490
|
+
codeId: 0
|
|
491
|
+
}
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
const te = j(O), { isDefaultModel: Ge } = ge(), Qe = async (b, u) => {
|
|
495
|
+
var w, l, _, g, c, L, r, n, h, v, t, m, p, y;
|
|
496
|
+
let o = Object.values(b), e = await re({
|
|
497
|
+
userName: (w = o == null ? void 0 : o[0]) == null ? void 0 : w.trim(),
|
|
498
|
+
password: (l = o == null ? void 0 : o[1]) == null ? void 0 : l.trim()
|
|
499
|
+
});
|
|
500
|
+
if (((_ = e == null ? void 0 : e.data) == null ? void 0 : _.status) === 200 && ((c = (g = e == null ? void 0 : e.data) == null ? void 0 : g.result) == null ? void 0 : c.length) <= 0 && (e = await de({
|
|
501
|
+
userName: (L = o == null ? void 0 : o[0]) == null ? void 0 : L.trim(),
|
|
502
|
+
password: (r = o == null ? void 0 : o[1]) == null ? void 0 : r.trim(),
|
|
503
|
+
path: "系统管理/用户管理",
|
|
504
|
+
platId: u
|
|
505
|
+
})), ((n = e == null ? void 0 : e.data) == null ? void 0 : n.status) === 200 && ((v = (h = e == null ? void 0 : e.data) == null ? void 0 : h.result) == null ? void 0 : v.length) > 0) {
|
|
506
|
+
const s = ((m = (t = e == null ? void 0 : e.data) == null ? void 0 : t.result) == null ? void 0 : m.find((f) => Ge(f))) || ((y = (p = e == null ? void 0 : e.data) == null ? void 0 : p.result) == null ? void 0 : y[0]);
|
|
507
|
+
sessionStorage.setItem("systemKey", u && u !== "" ? u : s == null ? void 0 : s.plat_id);
|
|
508
|
+
let V = s;
|
|
509
|
+
return V.plat_id = V.plat_id ?? u, te.setLoginUserInfo(V), te.setSystemKey(u && u !== "" ? u : s == null ? void 0 : s.plat_id), !0;
|
|
510
|
+
} else
|
|
511
|
+
return P.error("输入的密码错误,请重新输入"), !1;
|
|
512
|
+
}, Xe = { class: "login-wrap" }, Ye = { class: "login-body" }, Ze = { class: "login-body-item left" }, et = { class: "title" }, tt = { class: "first-level" }, ot = {
|
|
513
|
+
key: 0,
|
|
514
|
+
class: "logo"
|
|
515
|
+
}, at = ["src"], nt = { class: "english-name" }, st = { class: "login-body-item right" }, lt = /* @__PURE__ */ q({
|
|
516
|
+
__name: "index",
|
|
517
|
+
props: {
|
|
518
|
+
oldSystemKey: {}
|
|
519
|
+
},
|
|
520
|
+
emits: ["change", "updateApiUrl"],
|
|
521
|
+
setup(b, { emit: u }) {
|
|
522
|
+
const o = _e(), e = u, w = ue(O), l = j(O), { systemKey: _, systemInfo: g, loginUserInfo: c } = ne(l), L = oe(() => {
|
|
523
|
+
var f;
|
|
524
|
+
return ((f = g.value) == null ? void 0 : f.logo) || ve;
|
|
525
|
+
}), r = A({
|
|
526
|
+
// sysCTitle: 'INSOFWORKS',
|
|
527
|
+
sysCTitle: "",
|
|
528
|
+
sysETitle: "",
|
|
529
|
+
// sysETitle: 'Dynamic Test Information System',
|
|
530
|
+
loginTitle: "账户密码登录",
|
|
531
|
+
tabs: [
|
|
532
|
+
{
|
|
533
|
+
name: "密码登录",
|
|
534
|
+
btnLabel: "登录",
|
|
535
|
+
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
name: "人脸识别",
|
|
539
|
+
btnLabel: "人脸识别",
|
|
540
|
+
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
name: "刷卡登录",
|
|
544
|
+
btnLabel: "登录",
|
|
545
|
+
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
546
|
+
}
|
|
547
|
+
]
|
|
548
|
+
}), n = A("account"), h = A(!1), v = A(!1), t = () => {
|
|
549
|
+
h.value = !0;
|
|
550
|
+
}, m = (f, T) => {
|
|
551
|
+
h.value = !1, f && $(T);
|
|
552
|
+
}, p = async () => {
|
|
553
|
+
var f, T, k;
|
|
554
|
+
try {
|
|
555
|
+
const C = await We();
|
|
556
|
+
return ((f = C == null ? void 0 : C.data) == null ? void 0 : f.code) === 200 ? (sessionStorage.setItem("loginToken", (k = (T = C.data) == null ? void 0 : T.result) == null ? void 0 : k.accessToken), !0) : !1;
|
|
557
|
+
} catch (C) {
|
|
558
|
+
P.error(C);
|
|
559
|
+
}
|
|
560
|
+
return !0;
|
|
561
|
+
}, y = async () => (sessionStorage.setItem("magicToken", "123456"), !0);
|
|
562
|
+
ae(async () => {
|
|
563
|
+
await p();
|
|
564
|
+
});
|
|
565
|
+
const $ = async (f) => {
|
|
566
|
+
var F, W, G, Q, X, Y, Z;
|
|
567
|
+
v.value = !0;
|
|
568
|
+
let T = [Qe(f, (F = g.value) == null ? void 0 : F.plat_id), p(), y()];
|
|
569
|
+
const k = await Promise.all(T), C = k == null ? void 0 : k.every((D) => D);
|
|
570
|
+
let B = [
|
|
571
|
+
{
|
|
572
|
+
id: "1",
|
|
573
|
+
request_method: "Post",
|
|
574
|
+
request_url: "/platform/getdata",
|
|
575
|
+
request_param: JSON.stringify({
|
|
576
|
+
userName: "hjj",
|
|
577
|
+
password: "1"
|
|
578
|
+
}),
|
|
579
|
+
request_result: "{}",
|
|
580
|
+
is_delete: !1,
|
|
581
|
+
request_table: "admin_user",
|
|
582
|
+
request_type: "login"
|
|
583
|
+
}
|
|
584
|
+
];
|
|
585
|
+
try {
|
|
586
|
+
const D = ((W = c == null ? void 0 : c.value) == null ? void 0 : W.plat_id) || ((G = g.value) == null ? void 0 : G.plat_id);
|
|
587
|
+
await me({
|
|
588
|
+
platId: parseInt(D),
|
|
589
|
+
changeContents: [{
|
|
590
|
+
tableName: "log",
|
|
591
|
+
tableContents: B
|
|
592
|
+
}]
|
|
593
|
+
});
|
|
594
|
+
} catch {
|
|
595
|
+
}
|
|
596
|
+
C ? (await be(), o.push("/"), l.setLogRecordAsync({
|
|
597
|
+
type: "登录",
|
|
598
|
+
data: {
|
|
599
|
+
account: ((Q = c.value) == null ? void 0 : Q.account) ?? ((X = c.value) == null ? void 0 : X.账号),
|
|
600
|
+
userName: ((Y = c.value) == null ? void 0 : Y.姓名) || ((Z = c.value) == null ? void 0 : Z.userName) || "未知"
|
|
601
|
+
}
|
|
602
|
+
}, "/login", "login"), w.setHasClickEditComp(!1)) : v.value = !1;
|
|
603
|
+
}, s = (f) => {
|
|
604
|
+
n.value = f, h.value = !1, v.value = !1;
|
|
605
|
+
}, V = (f) => {
|
|
606
|
+
e("updateApiUrl", f);
|
|
607
|
+
};
|
|
608
|
+
return (f, T) => (I(), x("div", Xe, [
|
|
609
|
+
d("div", Ye, [
|
|
610
|
+
d("div", Ze, [
|
|
611
|
+
i(Le, { class: "login-left-bg" }, {
|
|
612
|
+
img: a(() => {
|
|
613
|
+
var k, C;
|
|
614
|
+
return [
|
|
615
|
+
d("div", et, [
|
|
616
|
+
d("div", tt, [
|
|
617
|
+
L.value ? (I(), x("div", ot, [
|
|
618
|
+
d("img", {
|
|
619
|
+
src: L.value,
|
|
620
|
+
alt: ""
|
|
621
|
+
}, null, 8, at)
|
|
622
|
+
])) : ce("", !0),
|
|
623
|
+
d("div", nt, R(((k = K(g)) == null ? void 0 : k.EnglishName) || "Insofworks"), 1)
|
|
624
|
+
]),
|
|
625
|
+
d("div", null, R(((C = K(g)) == null ? void 0 : C.chineseName) || "工业软件建模与开发系统"), 1)
|
|
626
|
+
]),
|
|
627
|
+
T[0] || (T[0] = d("div", { class: "divide-line" }, null, -1))
|
|
628
|
+
];
|
|
629
|
+
}),
|
|
630
|
+
_: 1
|
|
631
|
+
})
|
|
632
|
+
]),
|
|
633
|
+
d("div", st, [
|
|
634
|
+
i(Ne, {
|
|
635
|
+
loading: v.value,
|
|
636
|
+
onClickLogin: t,
|
|
637
|
+
onHandleTabChange: s
|
|
638
|
+
}, {
|
|
639
|
+
title: a(() => [
|
|
640
|
+
S(R(r.value.loginTitle), 1)
|
|
641
|
+
]),
|
|
642
|
+
tabLabel1: a(() => [
|
|
643
|
+
S(R(r.value.tabs[0].name), 1)
|
|
644
|
+
]),
|
|
645
|
+
tabContent1: a(() => [
|
|
646
|
+
i(Pe, {
|
|
647
|
+
activeTabName: n.value,
|
|
648
|
+
isClickLogin: h.value,
|
|
649
|
+
onHandleLoginFormChange: m,
|
|
650
|
+
onUpdateApiUrl: V
|
|
651
|
+
}, null, 8, ["activeTabName", "isClickLogin"])
|
|
652
|
+
]),
|
|
653
|
+
tabButton1: a(() => [
|
|
654
|
+
S(R(r.value.tabs[0].btnLabel), 1)
|
|
655
|
+
]),
|
|
656
|
+
tabLabel2: a(() => [
|
|
657
|
+
S(R(r.value.tabs[1].name), 1)
|
|
658
|
+
]),
|
|
659
|
+
tabContent2: a(() => [
|
|
660
|
+
i(Je, {
|
|
661
|
+
systemKey: f.oldSystemKey,
|
|
662
|
+
activeTabName: n.value,
|
|
663
|
+
isClickLogin: h.value,
|
|
664
|
+
onHandleLoginFormChange: m
|
|
665
|
+
}, null, 8, ["systemKey", "activeTabName", "isClickLogin"])
|
|
666
|
+
]),
|
|
667
|
+
tabButton2: a(() => [
|
|
668
|
+
S(R(r.value.tabs[1].btnLabel), 1)
|
|
669
|
+
]),
|
|
670
|
+
_: 1
|
|
671
|
+
}, 8, ["loading"])
|
|
672
|
+
])
|
|
673
|
+
])
|
|
674
|
+
]));
|
|
675
|
+
}
|
|
676
|
+
}), gt = /* @__PURE__ */ E(lt, [["__scopeId", "data-v-55e15f61"]]);
|
|
677
|
+
export {
|
|
678
|
+
gt as default
|
|
679
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),l=require("./menu-DopnPfbG.cjs"),v=require("./index-CQY6ageG.cjs"),B=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),_=n.defineComponent({__name:"index",props:{windowConfig:{type:Object,default:()=>{}},systemInfo:{type:Object,default:()=>{}},systemKey:{type:String,default:""},pathContent:{type:String,default:""},mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!1},nodeDev:{type:String,default:""},pageKey:{type:String,default:""},interfaceContent:{type:Array,default:()=>[]}},emits:["buildContent","openThreeBuild","threeData","setLoginInfo"],setup(s,{emit:m}){const d=l.useLoginState(l.pinia),{loginUserInfo:r}=l.storeToRefs(d),{initSystemInfo:w}=v.useModelManagement(),e=s,u=m,g=n.computed(()=>{var t,o;return(e==null?void 0:e.showButton)||((o=(t=r.value)==null?void 0:t.layer)==null?void 0:o.toUpperCase())==="SUPERADMIN"});n.watch(()=>[e==null?void 0:e.systemKey,e==null?void 0:e.systemInfo],async([t,o])=>{d.setSystemKey(t),t!==""&&sessionStorage.setItem("systemKey",t)},{immediate:!0}),n.watch(()=>e==null?void 0:e.interfaceContent,()=>{var o,i,c;if(!(e!=null&&e.interfaceContent)||Array.isArray(e==null?void 0:e.interfaceContent)&&((o=e==null?void 0:e.interfaceContent)==null?void 0:o.length)===0)return;let t=(i=e==null?void 0:e.interfaceContent)==null?void 0:i.find(a=>a==null?void 0:a.includes("VITE_API_NEW_URL"));t=(c=t==null?void 0:t.split("="))==null?void 0:c[1],t=t==null?void 0:t.trim(),d.setSystemUrl(t??"")},{immediate:!0,deep:!0}),n.onMounted(async()=>{e.systemInfo?d.setSystemInfo(e.systemInfo):await w()});const C=()=>{u("buildContent")},h=()=>{u("setLoginInfo")},S=t=>{u("openThreeBuild",t)},I=t=>{u("threeData",t)},f=()=>{var y;const t=e!=null&&e.windowConfig?(y=e==null?void 0:e.windowConfig)==null?void 0:y.width:window.innerWidth,o=1920,i=16,c=t/o,a=i*c;document.documentElement.style.fontSize=`${a}px`};return n.onMounted(()=>{f(),window.addEventListener("resize",f)}),n.onUnmounted(()=>{window.removeEventListener("resize",f)}),(t,o)=>{const i=n.resolveComponent("router-view");return n.openBlock(),n.createElementBlock("div",null,[n.createVNode(i,{mode:e==null?void 0:e.mode,content:e==null?void 0:e.content,jsonContents:e==null?void 0:e.jsonContents,pathContent:e==null?void 0:e.pathContent,showButton:g.value,nodeDev:e==null?void 0:e.nodeDev,windowConfig:s.windowConfig,systemInfo:s.systemInfo,"old-systemKey":s.systemKey,onBuildContent:C,onOpenThreeBuild:S,pageKey:s.pageKey,onThreeData:I,onSetLoginInfo:h},null,8,["mode","content","jsonContents","pathContent","showButton","nodeDev","windowConfig","systemInfo","old-systemKey","pageKey"])])}}}),D=B._export_sfc(_,[["__scopeId","data-v-a16fd15f"]]);exports.default=D;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),_=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),_=require("./index-Cro-IzQv.cjs"),r=require("./menu-DopnPfbG.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=(t,l,a)=>{var n,u,p,g;let e=l;e.title.text=(a==null?void 0:a.chartName)??"",e.xAxis.data=(n=r.cloneDeep(t))==null?void 0:n.map(i=>i.x),e.legend.data=(p=(u=r.cloneDeep(t))==null?void 0:u[0])!=null&&p.y?Object.keys(r.cloneDeep(t)[0].y):[];let o=[];return((g=e.legend.data)==null?void 0:g.length)>0&&r.cloneDeep(e.legend.data).forEach(i=>{var h;const y=(h=r.cloneDeep(t))==null?void 0:h.map(c=>{var x;return(x=c==null?void 0:c.y)==null?void 0:x[i]});o.push({name:i,type:"line",data:y})}),e.series=o,e},d=[{key:"折线图",value:{title:{text:"",left:"center",top:25,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis"},legend:{data:[]},grid:{left:"6%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",axisLabel:{interval:0},data:[]},yAxis:{type:"value"},series:[]}}],C={class:"eCharts"},D={__name:"index",props:{eChartContents:Array},setup(t){const l=t,a=s.ref({});return s.onMounted(()=>{var o;const e=l==null?void 0:l.eChartContents;a.value=m(r.cloneDeep(e==null?void 0:e.compData),(o=d==null?void 0:d.find(n=>(n==null?void 0:n.key)===(e==null?void 0:e.name)))==null?void 0:o.value,e==null?void 0:e.extraContent)}),(e,o)=>(s.openBlock(),s.createElementBlock("div",C,[s.createVNode(_.ssChart,{optionContents:a.value},null,8,["optionContents"])]))}},b=f._export_sfc(D,[["__scopeId","data-v-0440fac3"]]);exports.default=b;
|