ss-component-new 1.1.360 → 1.1.361
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/{array-ZZeh1t1h.js → array-DLn1_az-.js} +2 -2
- package/dist/{array-LHgBaGg_.cjs → array-Lo2U5cET.cjs} +1 -1
- package/dist/{cloneDeep-xWafgmVp.js → cloneDeep-DxYKmxqH.js} +1 -1
- package/dist/{cloneDeep-D77rQx41.cjs → cloneDeep-xI_ipJQI.cjs} +1 -1
- package/dist/{index-BdjAwe-e.js → index-6Y8RvLHv.js} +4 -4
- package/dist/{index-CueAsGRu.js → index-At1mx_Nj.js} +455 -432
- package/dist/{index-B_4LqjOb.cjs → index-B6mAAjFH.cjs} +1 -1
- package/dist/{index-B_oN1nXx.js → index-B8JcrMP_.js} +3 -3
- package/dist/{index-qCWKGZAW.cjs → index-B9vUA9IU.cjs} +1 -1
- package/dist/{index-PQgmxhQN.js → index-BDQFUnst.js} +4 -4
- package/dist/{index-CVtzsdYf.cjs → index-BEKp_kcu.cjs} +1 -1
- package/dist/{index-BqhTuMnB.js → index-BHOG7sb3.js} +7 -7
- package/dist/{index-6cWzzfDI.cjs → index-BHXx9LUM.cjs} +1 -1
- package/dist/{index-CSSBb7Z9.cjs → index-BR1IJpfr.cjs} +1 -1
- package/dist/{index-l7EFQ_9H.js → index-BToSqW5R.js} +5 -5
- package/dist/{index-BbdlWs3o.cjs → index-BX3nrncw.cjs} +1 -1
- package/dist/{index-CE6VSZgb.js → index-BcPpG7Iy.js} +3 -3
- package/dist/{index-8A963mBh.js → index-BfYIOy9u.js} +4 -4
- package/dist/{index-DMpNtca6.js → index-Bm1MIOX2.js} +6 -6
- package/dist/index-BnD_sXH_.js +497 -0
- package/dist/{index-B2z4g0c-.js → index-BtojvekE.js} +3 -3
- package/dist/{index-4fzQ_d8D.js → index-C5-F3rPY.js} +1 -1
- package/dist/{index-Pc39bDKn.js → index-CCLdt7So.js} +8 -8
- package/dist/{index-CdVfaMwz.cjs → index-CFztmyBe.cjs} +1 -1
- package/dist/{index-CC2_NFdU.js → index-CPBoHW-o.js} +5 -5
- package/dist/{index-jKNX_OOX.js → index-CQVZyEML.js} +7 -7
- package/dist/{index-CYXXFtjv.cjs → index-CWPpEMxQ.cjs} +1 -1
- package/dist/{index-ROl9KgW0.cjs → index-Cae7LEKB.cjs} +1 -1
- package/dist/{index-CMhYbhDx.cjs → index-CetJOeE_.cjs} +1 -1
- package/dist/{index-BTDs7Yfm.js → index-Cf9TIEEO.js} +8 -8
- package/dist/{index-Bi2IywMv.js → index-Cvo4OAE3.js} +4 -4
- package/dist/{index-CLp2pXV9.cjs → index-Cxim3KiU.cjs} +1 -1
- package/dist/index-D-XGQO2n.cjs +1 -0
- package/dist/{index-BnhX8Y7W.js → index-D0-njT_U.js} +4 -4
- package/dist/{index-BKDw9_Wq.js → index-D1I9xrxz.js} +1 -1
- package/dist/{index-KRcwPuDy.cjs → index-D2wy0sVB.cjs} +1 -1
- package/dist/{index-Cq_T89gc.cjs → index-D4KKloJw.cjs} +1 -1
- package/dist/{index-BZzBPKAl.cjs → index-D9P-pDPi.cjs} +1 -1
- package/dist/{index-DVTizXRo.cjs → index-DJCheqY8.cjs} +1 -1
- package/dist/{index-DM1-EAWE.js → index-DJPO1Hx6.js} +4 -4
- package/dist/{index-BDv1HVDr.cjs → index-DJd4I80M.cjs} +1 -1
- package/dist/{index-BjUrV1Fb.cjs → index-DVBn9XTe.cjs} +1 -1
- package/dist/{index-CmJ-zN3V.cjs → index-DYV9R1wh.cjs} +1 -1
- package/dist/{index-Y2OxVWr-.js → index-D_JpSq-H.js} +9 -9
- package/dist/{index-BsMkAmAJ.cjs → index-DjlvIOYy.cjs} +1 -1
- package/dist/{index-CFM_0OMh.cjs → index-DlInt0bg.cjs} +1 -1
- package/dist/{index-JX1X-ot2.js → index-DqgQblji.js} +1 -1
- package/dist/{index-Yp3IhNxQ.js → index-DtDIKodr.js} +1 -1
- package/dist/{index-CNHxOgGE.cjs → index-DxlbyCdn.cjs} +1 -1
- package/dist/{index-COYL8t5B.cjs → index-DzlHs9GL.cjs} +1 -1
- package/dist/{index-Hbt_Bz7k.cjs → index-JYT6Kfqo.cjs} +1 -1
- package/dist/{index-BJC1T2AD.js → index-MN0iFIsn.js} +6 -6
- package/dist/{index-abNLH1Oh.js → index-N9q9AOvH.js} +3 -3
- package/dist/{index-D4tSnGvW.cjs → index-hMYRRSey.cjs} +1 -1
- package/dist/{index-DM4vldHo.js → index-iZJ-Bl33.js} +6 -6
- package/dist/{index-Djy3YkbX.cjs → index-jt-riF-7.cjs} +1 -1
- package/dist/{index-Dx7rBNYb.js → index-uVKVsawk.js} +1 -1
- package/dist/index-xZxN11F3.cjs +1 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-CLHQZzPT.cjs → index.vue_vue_type_script_setup_true_lang-Bs_57WQx.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BCZs8vl7.js → index.vue_vue_type_script_setup_true_lang-CT1gJPrx.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_97daf670_lang-BRqLAoKS.js → index.vue_vue_type_style_index_0_scoped_14b5611b_lang-B7r3ScAs.js} +13 -13
- package/dist/{index.vue_vue_type_style_index_0_scoped_97daf670_lang-DWDI9iJi.cjs → index.vue_vue_type_style_index_0_scoped_14b5611b_lang-CztANuvT.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-B--QQ1jZ.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-DUcvEpSv.js → index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-B8MZNHAM.js} +28 -28
- package/dist/{login-BUABpM2V.js → login-CMXa8u7m.js} +2 -2
- package/dist/{login-DOsXdD3r.cjs → login-CQWZAwe1.cjs} +1 -1
- package/dist/{main-B4LoC5_c.cjs → main-Di2Sfhvj.cjs} +1 -1
- package/dist/{main-Cw5lrr9S.js → main-JhgiM4VI.js} +7 -7
- package/dist/{menu-BeJTeYpw.cjs → menu-BYlei-rW.cjs} +1 -1
- package/dist/{menu-C--raH72.js → menu-COKVSpzD.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +7 -7
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +1 -1
- package/package.json +1 -1
- package/dist/index-DGxD7hsO.cjs +0 -1
- package/dist/index-DXE-MtNy.cjs +0 -1
- package/dist/index-TPK137VC.js +0 -498
- package/dist/index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-D9JiH0_e.cjs +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { ref as P, onMounted as Ht, nextTick as ht, onBeforeUnmount as co, createElementBlock as G, openBlock as v, createElementVNode as
|
|
2
|
-
import { m as Dt, a as Rt, b as At } from "./index-
|
|
3
|
-
import gt from "./index-
|
|
4
|
-
import { _ as po, o as Wt, c as qt, a as Gt, b as Jt, s as Ae, g as Qt, d as eo, e as to, f as oo, h as mo, i as fo } from "./index.
|
|
1
|
+
import { ref as P, onMounted as Ht, nextTick as ht, onBeforeUnmount as co, createElementBlock as G, openBlock as v, createElementVNode as h, createCommentVNode as pe, normalizeClass as ut, unref as i, withDirectives as Qe, isRef as dt, vModelRadio as pt, toDisplayString as ze, resolveComponent as ee, createBlock as J, withCtx as w, createVNode as p, watch as Re, Fragment as xt, renderList as St, normalizeStyle as ho, defineComponent as Kt, resolveDirective as Zt, createTextVNode as Me, renderSlot as nt, resolveDynamicComponent as Xt, computed as uo } from "vue";
|
|
2
|
+
import { m as Dt, a as Rt, b as At } from "./index-CCLdt7So.js";
|
|
3
|
+
import gt from "./index-D1I9xrxz.js";
|
|
4
|
+
import { _ as po, o as Wt, c as qt, a as Gt, b as Jt, s as Ae, g as Qt, d as eo, e as to, f as oo, h as mo, i as fo } from "./index.vue_vue_type_style_index_0_scoped_14b5611b_lang-B7r3ScAs.js";
|
|
5
5
|
import { _ as Ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import { s as Be, u as _t, b as
|
|
7
|
-
import { u as ao } from "./login-
|
|
8
|
-
import { S as
|
|
9
|
-
import { C as _o, V as L, M as ot, T as et, Q as jt, S as Ot, a as
|
|
10
|
-
import { p as Fe } from "./index-
|
|
11
|
-
import { _ as at } from "./index-
|
|
12
|
-
import { s as so } from "./index-
|
|
13
|
-
import { c as tt } from "./cloneDeep-
|
|
14
|
-
import { u as Lo } from "./index-
|
|
15
|
-
import { d as Ut } from "./index-
|
|
16
|
-
import { i as jo, e as Oo, b as $t, c as It, a as zo } from "./array-
|
|
17
|
-
import { c as No, b as Uo } from "./index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-
|
|
18
|
-
const Vt = { type: "change" }, Lt = { type: "start" }, io = { type: "end" }, mt = new yo(), Yt = new ft(), $o = Math.cos(70 * wo.DEG2RAD),
|
|
6
|
+
import { s as Be, u as _t, b as ge, g as go, E as kt } from "./menu-COKVSpzD.js";
|
|
7
|
+
import { u as ao } from "./login-CMXa8u7m.js";
|
|
8
|
+
import { S as Oe } from "./index-BHtNKL1L.js";
|
|
9
|
+
import { C as _o, V as L, M as ot, T as et, Q as jt, S as Ot, a as je, R as yo, P as ft, b as wo, c as bo, d as vo, e as Co, W as ko, f as Po, A as To, g as Mo, X as Eo, h as xo, D as Pt, H as So, i as zt, B as Bt, j as Tt, k as Do, l as Ro, m as Ao, E as Mt, n as Bo, o as Ft, u as yt, p as Fo, I as Nt, q as no } from "./index-Bm1MIOX2.js";
|
|
10
|
+
import { p as Fe } from "./index-DqgQblji.js";
|
|
11
|
+
import { _ as at } from "./index-BfYIOy9u.js";
|
|
12
|
+
import { s as so } from "./index-D_JpSq-H.js";
|
|
13
|
+
import { c as tt } from "./cloneDeep-DxYKmxqH.js";
|
|
14
|
+
import { u as Lo } from "./index-CQVZyEML.js";
|
|
15
|
+
import { d as Ut } from "./index-DtDIKodr.js";
|
|
16
|
+
import { i as jo, e as Oo, b as $t, c as It, a as zo } from "./array-DLn1_az-.js";
|
|
17
|
+
import { c as No, b as Uo } from "./index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-B8MZNHAM.js";
|
|
18
|
+
const Vt = { type: "change" }, Lt = { type: "start" }, io = { type: "end" }, mt = new yo(), Yt = new ft(), $o = Math.cos(70 * wo.DEG2RAD), fe = new L(), xe = 2 * Math.PI, H = {
|
|
19
19
|
NONE: -1,
|
|
20
20
|
ROTATE: 0,
|
|
21
21
|
DOLLY: 1,
|
|
@@ -33,7 +33,7 @@ class Io extends _o {
|
|
|
33
33
|
* @param {?HTMLDOMElement} domElement - The HTML element used for event listeners.
|
|
34
34
|
*/
|
|
35
35
|
constructor(e, t = null) {
|
|
36
|
-
super(e, t), this.state =
|
|
36
|
+
super(e, t), this.state = H.NONE, this.target = new L(), this.cursor = new L(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.keyRotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: ot.ROTATE, MIDDLE: ot.DOLLY, RIGHT: ot.PAN }, this.touches = { ONE: et.ROTATE, TWO: et.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new L(), this._lastQuaternion = new jt(), this._lastTargetPosition = new L(), this._quat = new jt().setFromUnitVectors(e.up, new L(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new Ot(), this._sphericalDelta = new Ot(), this._scale = 1, this._panOffset = new L(), this._rotateStart = new je(), this._rotateEnd = new je(), this._rotateDelta = new je(), this._panStart = new je(), this._panEnd = new je(), this._panDelta = new je(), this._dollyStart = new je(), this._dollyEnd = new je(), this._dollyDelta = new je(), this._dollyDirection = new L(), this._mouse = new je(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = Yo.bind(this), this._onPointerDown = Vo.bind(this), this._onPointerUp = Ho.bind(this), this._onContextMenu = Jo.bind(this), this._onMouseWheel = Xo.bind(this), this._onKeyDown = Wo.bind(this), this._onTouchStart = qo.bind(this), this._onTouchMove = Go.bind(this), this._onMouseDown = Ko.bind(this), this._onMouseMove = Zo.bind(this), this._interceptControlDown = Qo.bind(this), this._interceptControlUp = ea.bind(this), this.domElement !== null && this.connect(this.domElement), this.update();
|
|
37
37
|
}
|
|
38
38
|
connect(e) {
|
|
39
39
|
super.connect(e), this.domElement.addEventListener("pointerdown", this._onPointerDown), this.domElement.addEventListener("pointercancel", this._onPointerUp), this.domElement.addEventListener("contextmenu", this._onContextMenu), this.domElement.addEventListener("wheel", this._onMouseWheel, { passive: !1 }), this.domElement.getRootNode().addEventListener("keydown", this._interceptControlDown, { passive: !0, capture: !0 }), this.domElement.style.touchAction = "none";
|
|
@@ -94,11 +94,11 @@ class Io extends _o {
|
|
|
94
94
|
* was called, or the initial state.
|
|
95
95
|
*/
|
|
96
96
|
reset() {
|
|
97
|
-
this.target.copy(this.target0), this.object.position.copy(this.position0), this.object.zoom = this.zoom0, this.object.updateProjectionMatrix(), this.dispatchEvent(Vt), this.update(), this.state =
|
|
97
|
+
this.target.copy(this.target0), this.object.position.copy(this.position0), this.object.zoom = this.zoom0, this.object.updateProjectionMatrix(), this.dispatchEvent(Vt), this.update(), this.state = H.NONE;
|
|
98
98
|
}
|
|
99
99
|
update(e = null) {
|
|
100
100
|
const t = this.object.position;
|
|
101
|
-
|
|
101
|
+
fe.copy(t).sub(this.target), fe.applyQuaternion(this._quat), this._spherical.setFromVector3(fe), this.autoRotate && this.state === H.NONE && this._rotateLeft(this._getAutoRotationAngle(e)), this.enableDamping ? (this._spherical.theta += this._sphericalDelta.theta * this.dampingFactor, this._spherical.phi += this._sphericalDelta.phi * this.dampingFactor) : (this._spherical.theta += this._sphericalDelta.theta, this._spherical.phi += this._sphericalDelta.phi);
|
|
102
102
|
let o = this.minAzimuthAngle, l = this.maxAzimuthAngle;
|
|
103
103
|
isFinite(o) && isFinite(l) && (o < -Math.PI ? o += xe : o > Math.PI && (o -= xe), l < -Math.PI ? l += xe : l > Math.PI && (l -= xe), o <= l ? this._spherical.theta = Math.max(o, Math.min(l, this._spherical.theta)) : this._spherical.theta = this._spherical.theta > (o + l) / 2 ? Math.max(o, this._spherical.theta) : Math.min(l, this._spherical.theta)), this._spherical.phi = Math.max(this.minPolarAngle, Math.min(this.maxPolarAngle, this._spherical.phi)), this._spherical.makeSafe(), this.enableDamping === !0 ? this.target.addScaledVector(this._panOffset, this.dampingFactor) : this.target.add(this._panOffset), this.target.sub(this.cursor), this.target.clampLength(this.minTargetRadius, this.maxTargetRadius), this.target.add(this.cursor);
|
|
104
104
|
let n = !1;
|
|
@@ -108,10 +108,10 @@ class Io extends _o {
|
|
|
108
108
|
const C = this._spherical.radius;
|
|
109
109
|
this._spherical.radius = this._clampDistance(this._spherical.radius * this._scale), n = C != this._spherical.radius;
|
|
110
110
|
}
|
|
111
|
-
if (
|
|
111
|
+
if (fe.setFromSpherical(this._spherical), fe.applyQuaternion(this._quatInverse), t.copy(this.target).add(fe), this.object.lookAt(this.target), this.enableDamping === !0 ? (this._sphericalDelta.theta *= 1 - this.dampingFactor, this._sphericalDelta.phi *= 1 - this.dampingFactor, this._panOffset.multiplyScalar(1 - this.dampingFactor)) : (this._sphericalDelta.set(0, 0, 0), this._panOffset.set(0, 0, 0)), this.zoomToCursor && this._performCursorZoom) {
|
|
112
112
|
let C = null;
|
|
113
113
|
if (this.object.isPerspectiveCamera) {
|
|
114
|
-
const s =
|
|
114
|
+
const s = fe.length();
|
|
115
115
|
C = this._clampDistance(s * this._scale);
|
|
116
116
|
const T = s - C;
|
|
117
117
|
this.object.position.addScaledVector(this._dollyDirection, T), this.object.updateMatrixWorld(), n = !!T;
|
|
@@ -121,7 +121,7 @@ class Io extends _o {
|
|
|
121
121
|
const T = this.object.zoom;
|
|
122
122
|
this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)), this.object.updateProjectionMatrix(), n = T !== this.object.zoom;
|
|
123
123
|
const k = new L(this._mouse.x, this._mouse.y, 0);
|
|
124
|
-
k.unproject(this.object), this.object.position.sub(k).add(s), this.object.updateMatrixWorld(), C =
|
|
124
|
+
k.unproject(this.object), this.object.position.sub(k).add(s), this.object.updateMatrixWorld(), C = fe.length();
|
|
125
125
|
} else
|
|
126
126
|
console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."), this.zoomToCursor = !1;
|
|
127
127
|
C !== null && (this.screenSpacePanning ? this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(C).add(this.object.position) : (mt.origin.copy(this.object.position), mt.direction.set(0, 0, -1).transformDirection(this.object.matrix), Math.abs(this.object.up.dot(mt.direction)) < $o ? this.object.lookAt(this.target) : (Yt.setFromNormalAndCoplanarPoint(this.object.up, this.target), mt.intersectPlane(Yt, this.target))));
|
|
@@ -145,18 +145,18 @@ class Io extends _o {
|
|
|
145
145
|
this._sphericalDelta.phi -= e;
|
|
146
146
|
}
|
|
147
147
|
_panLeft(e, t) {
|
|
148
|
-
|
|
148
|
+
fe.setFromMatrixColumn(t, 0), fe.multiplyScalar(-e), this._panOffset.add(fe);
|
|
149
149
|
}
|
|
150
150
|
_panUp(e, t) {
|
|
151
|
-
this.screenSpacePanning === !0 ?
|
|
151
|
+
this.screenSpacePanning === !0 ? fe.setFromMatrixColumn(t, 1) : (fe.setFromMatrixColumn(t, 0), fe.crossVectors(this.object.up, fe)), fe.multiplyScalar(e), this._panOffset.add(fe);
|
|
152
152
|
}
|
|
153
153
|
// deltaX and deltaY are in pixels; right and down are positive
|
|
154
154
|
_pan(e, t) {
|
|
155
155
|
const o = this.domElement;
|
|
156
156
|
if (this.object.isPerspectiveCamera) {
|
|
157
157
|
const l = this.object.position;
|
|
158
|
-
|
|
159
|
-
let n =
|
|
158
|
+
fe.copy(l).sub(this.target);
|
|
159
|
+
let n = fe.length();
|
|
160
160
|
n *= Math.tan(this.object.fov / 2 * Math.PI / 180), this._panLeft(2 * e * n / o.clientHeight, this.object.matrix), this._panUp(2 * t * n / o.clientHeight, this.object.matrix);
|
|
161
161
|
} else this.object.isOrthographicCamera ? (this._panLeft(e * (this.object.right - this.object.left) / this.object.zoom / o.clientWidth, this.object.matrix), this._panUp(t * (this.object.top - this.object.bottom) / this.object.zoom / o.clientHeight, this.object.matrix)) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."), this.enablePan = !1);
|
|
162
162
|
}
|
|
@@ -297,7 +297,7 @@ class Io extends _o {
|
|
|
297
297
|
}
|
|
298
298
|
_trackPointer(e) {
|
|
299
299
|
let t = this._pointerPositions[e.pointerId];
|
|
300
|
-
t === void 0 && (t = new
|
|
300
|
+
t === void 0 && (t = new je(), this._pointerPositions[e.pointerId] = t), t.set(e.pageX, e.pageY);
|
|
301
301
|
}
|
|
302
302
|
_getSecondPointerPosition(e) {
|
|
303
303
|
const t = e.pointerId === this._pointers[0] ? this._pointers[1] : this._pointers[0];
|
|
@@ -330,7 +330,7 @@ function Yo(a) {
|
|
|
330
330
|
function Ho(a) {
|
|
331
331
|
switch (this._removePointer(a), this._pointers.length) {
|
|
332
332
|
case 0:
|
|
333
|
-
this.domElement.releasePointerCapture(a.pointerId), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.domElement.removeEventListener("pointerup", this._onPointerUp), this.dispatchEvent(io), this.state =
|
|
333
|
+
this.domElement.releasePointerCapture(a.pointerId), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.domElement.removeEventListener("pointerup", this._onPointerUp), this.dispatchEvent(io), this.state = H.NONE;
|
|
334
334
|
break;
|
|
335
335
|
case 1:
|
|
336
336
|
const e = this._pointers[0], t = this._pointerPositions[e];
|
|
@@ -356,49 +356,49 @@ function Ko(a) {
|
|
|
356
356
|
switch (e) {
|
|
357
357
|
case ot.DOLLY:
|
|
358
358
|
if (this.enableZoom === !1) return;
|
|
359
|
-
this._handleMouseDownDolly(a), this.state =
|
|
359
|
+
this._handleMouseDownDolly(a), this.state = H.DOLLY;
|
|
360
360
|
break;
|
|
361
361
|
case ot.ROTATE:
|
|
362
362
|
if (a.ctrlKey || a.metaKey || a.shiftKey) {
|
|
363
363
|
if (this.enablePan === !1) return;
|
|
364
|
-
this._handleMouseDownPan(a), this.state =
|
|
364
|
+
this._handleMouseDownPan(a), this.state = H.PAN;
|
|
365
365
|
} else {
|
|
366
366
|
if (this.enableRotate === !1) return;
|
|
367
|
-
this._handleMouseDownRotate(a), this.state =
|
|
367
|
+
this._handleMouseDownRotate(a), this.state = H.ROTATE;
|
|
368
368
|
}
|
|
369
369
|
break;
|
|
370
370
|
case ot.PAN:
|
|
371
371
|
if (a.ctrlKey || a.metaKey || a.shiftKey) {
|
|
372
372
|
if (this.enableRotate === !1) return;
|
|
373
|
-
this._handleMouseDownRotate(a), this.state =
|
|
373
|
+
this._handleMouseDownRotate(a), this.state = H.ROTATE;
|
|
374
374
|
} else {
|
|
375
375
|
if (this.enablePan === !1) return;
|
|
376
|
-
this._handleMouseDownPan(a), this.state =
|
|
376
|
+
this._handleMouseDownPan(a), this.state = H.PAN;
|
|
377
377
|
}
|
|
378
378
|
break;
|
|
379
379
|
default:
|
|
380
|
-
this.state =
|
|
380
|
+
this.state = H.NONE;
|
|
381
381
|
}
|
|
382
|
-
this.state !==
|
|
382
|
+
this.state !== H.NONE && this.dispatchEvent(Lt);
|
|
383
383
|
}
|
|
384
384
|
function Zo(a) {
|
|
385
385
|
switch (this.state) {
|
|
386
|
-
case
|
|
386
|
+
case H.ROTATE:
|
|
387
387
|
if (this.enableRotate === !1) return;
|
|
388
388
|
this._handleMouseMoveRotate(a);
|
|
389
389
|
break;
|
|
390
|
-
case
|
|
390
|
+
case H.DOLLY:
|
|
391
391
|
if (this.enableZoom === !1) return;
|
|
392
392
|
this._handleMouseMoveDolly(a);
|
|
393
393
|
break;
|
|
394
|
-
case
|
|
394
|
+
case H.PAN:
|
|
395
395
|
if (this.enablePan === !1) return;
|
|
396
396
|
this._handleMouseMovePan(a);
|
|
397
397
|
break;
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
function Xo(a) {
|
|
401
|
-
this.enabled === !1 || this.enableZoom === !1 || this.state !==
|
|
401
|
+
this.enabled === !1 || this.enableZoom === !1 || this.state !== H.NONE || (a.preventDefault(), this.dispatchEvent(Lt), this._handleMouseWheel(this._customWheelEvent(a)), this.dispatchEvent(io));
|
|
402
402
|
}
|
|
403
403
|
function Wo(a) {
|
|
404
404
|
this.enabled !== !1 && this._handleKeyDown(a);
|
|
@@ -409,55 +409,55 @@ function qo(a) {
|
|
|
409
409
|
switch (this.touches.ONE) {
|
|
410
410
|
case et.ROTATE:
|
|
411
411
|
if (this.enableRotate === !1) return;
|
|
412
|
-
this._handleTouchStartRotate(a), this.state =
|
|
412
|
+
this._handleTouchStartRotate(a), this.state = H.TOUCH_ROTATE;
|
|
413
413
|
break;
|
|
414
414
|
case et.PAN:
|
|
415
415
|
if (this.enablePan === !1) return;
|
|
416
|
-
this._handleTouchStartPan(a), this.state =
|
|
416
|
+
this._handleTouchStartPan(a), this.state = H.TOUCH_PAN;
|
|
417
417
|
break;
|
|
418
418
|
default:
|
|
419
|
-
this.state =
|
|
419
|
+
this.state = H.NONE;
|
|
420
420
|
}
|
|
421
421
|
break;
|
|
422
422
|
case 2:
|
|
423
423
|
switch (this.touches.TWO) {
|
|
424
424
|
case et.DOLLY_PAN:
|
|
425
425
|
if (this.enableZoom === !1 && this.enablePan === !1) return;
|
|
426
|
-
this._handleTouchStartDollyPan(a), this.state =
|
|
426
|
+
this._handleTouchStartDollyPan(a), this.state = H.TOUCH_DOLLY_PAN;
|
|
427
427
|
break;
|
|
428
428
|
case et.DOLLY_ROTATE:
|
|
429
429
|
if (this.enableZoom === !1 && this.enableRotate === !1) return;
|
|
430
|
-
this._handleTouchStartDollyRotate(a), this.state =
|
|
430
|
+
this._handleTouchStartDollyRotate(a), this.state = H.TOUCH_DOLLY_ROTATE;
|
|
431
431
|
break;
|
|
432
432
|
default:
|
|
433
|
-
this.state =
|
|
433
|
+
this.state = H.NONE;
|
|
434
434
|
}
|
|
435
435
|
break;
|
|
436
436
|
default:
|
|
437
|
-
this.state =
|
|
437
|
+
this.state = H.NONE;
|
|
438
438
|
}
|
|
439
|
-
this.state !==
|
|
439
|
+
this.state !== H.NONE && this.dispatchEvent(Lt);
|
|
440
440
|
}
|
|
441
441
|
function Go(a) {
|
|
442
442
|
switch (this._trackPointer(a), this.state) {
|
|
443
|
-
case
|
|
443
|
+
case H.TOUCH_ROTATE:
|
|
444
444
|
if (this.enableRotate === !1) return;
|
|
445
445
|
this._handleTouchMoveRotate(a), this.update();
|
|
446
446
|
break;
|
|
447
|
-
case
|
|
447
|
+
case H.TOUCH_PAN:
|
|
448
448
|
if (this.enablePan === !1) return;
|
|
449
449
|
this._handleTouchMovePan(a), this.update();
|
|
450
450
|
break;
|
|
451
|
-
case
|
|
451
|
+
case H.TOUCH_DOLLY_PAN:
|
|
452
452
|
if (this.enableZoom === !1 && this.enablePan === !1) return;
|
|
453
453
|
this._handleTouchMoveDollyPan(a), this.update();
|
|
454
454
|
break;
|
|
455
|
-
case
|
|
455
|
+
case H.TOUCH_DOLLY_ROTATE:
|
|
456
456
|
if (this.enableZoom === !1 && this.enableRotate === !1) return;
|
|
457
457
|
this._handleTouchMoveDollyRotate(a), this.update();
|
|
458
458
|
break;
|
|
459
459
|
default:
|
|
460
|
-
this.state =
|
|
460
|
+
this.state = H.NONE;
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
function Jo(a) {
|
|
@@ -489,8 +489,8 @@ function ta(a) {
|
|
|
489
489
|
background: {
|
|
490
490
|
color: "#D1D1D1"
|
|
491
491
|
}
|
|
492
|
-
}), n.attachControls(l),
|
|
493
|
-
},
|
|
492
|
+
}), n.attachControls(l), te(), ie();
|
|
493
|
+
}, te = () => {
|
|
494
494
|
const g = new xo(4210752, 0.6);
|
|
495
495
|
e.add(g);
|
|
496
496
|
const _ = new Pt(16777215, 2);
|
|
@@ -499,15 +499,15 @@ function ta(a) {
|
|
|
499
499
|
d.position.set(-8, -8, 6), e.add(d);
|
|
500
500
|
const S = new Pt(16777215, 0.6);
|
|
501
501
|
S.position.set(0, -15, 2), e.add(S);
|
|
502
|
-
const
|
|
503
|
-
e.add(
|
|
502
|
+
const Y = new So(16777215, 4473924, 0.8);
|
|
503
|
+
e.add(Y);
|
|
504
504
|
const O = new zt(16777215, 1, 50);
|
|
505
505
|
O.position.set(15, 15, 15), e.add(O);
|
|
506
|
-
const
|
|
507
|
-
|
|
506
|
+
const Q = new zt(16777215, 0.5, 50);
|
|
507
|
+
Q.position.set(-15, -15, 15), e.add(Q);
|
|
508
508
|
}, ie = () => {
|
|
509
509
|
C = requestAnimationFrame(ie), l && l.update(), o && e && t && o.render(e, t), n && n.render();
|
|
510
|
-
},
|
|
510
|
+
}, oe = (g) => {
|
|
511
511
|
[
|
|
512
512
|
"map",
|
|
513
513
|
"normalMap",
|
|
@@ -523,11 +523,11 @@ function ta(a) {
|
|
|
523
523
|
].forEach((d) => {
|
|
524
524
|
g[d] && g[d].dispose && g[d].dispose();
|
|
525
525
|
}), g.dispose && g.dispose();
|
|
526
|
-
},
|
|
526
|
+
}, V = (g) => {
|
|
527
527
|
g.traverse((_) => {
|
|
528
528
|
_.geometry && _.geometry.dispose(), _.material && (Array.isArray(_.material) ? _.material.forEach((d) => {
|
|
529
|
-
|
|
530
|
-
}) :
|
|
529
|
+
oe(d);
|
|
530
|
+
}) : oe(_.material));
|
|
531
531
|
});
|
|
532
532
|
};
|
|
533
533
|
return {
|
|
@@ -545,11 +545,11 @@ function ta(a) {
|
|
|
545
545
|
fitCameraToAllModels: () => {
|
|
546
546
|
if (!t || !l || s.value.length === 0) return;
|
|
547
547
|
const g = new Bt();
|
|
548
|
-
s.value.forEach((
|
|
549
|
-
g.expandByObject(
|
|
548
|
+
s.value.forEach((ae) => {
|
|
549
|
+
g.expandByObject(ae);
|
|
550
550
|
});
|
|
551
|
-
const _ = g.getSize(new L()), d = g.getCenter(new L()),
|
|
552
|
-
t.position.copy(O), t.lookAt(
|
|
551
|
+
const _ = g.getSize(new L()), d = g.getCenter(new L()), Y = Math.max(_.x, _.y, _.z) * 0.8, O = new L(d.x + Y, d.y + Y, d.z + Y), Q = d.clone();
|
|
552
|
+
t.position.copy(O), t.lookAt(Q), l.target.copy(Q), l.update(), T.value.copy(O), k.value.copy(Q);
|
|
553
553
|
},
|
|
554
554
|
getThreeJSObjects: () => ({
|
|
555
555
|
scene: e,
|
|
@@ -561,13 +561,13 @@ function ta(a) {
|
|
|
561
561
|
clearAllModels: () => {
|
|
562
562
|
if (!e) return;
|
|
563
563
|
s.value.forEach((_) => {
|
|
564
|
-
e.remove(_),
|
|
564
|
+
e.remove(_), V(_);
|
|
565
565
|
});
|
|
566
566
|
const g = [];
|
|
567
567
|
e.children.forEach((_) => {
|
|
568
568
|
!_.isLight && !_.isCamera && g.push(_);
|
|
569
569
|
}), g.forEach((_) => {
|
|
570
|
-
e.remove(_),
|
|
570
|
+
e.remove(_), V(_);
|
|
571
571
|
}), s.value = [];
|
|
572
572
|
},
|
|
573
573
|
cleanup: () => {
|
|
@@ -578,17 +578,17 @@ function ta(a) {
|
|
|
578
578
|
function oa(a, e) {
|
|
579
579
|
const t = P(!1);
|
|
580
580
|
let o = null, l = 12700, n = new L(), C = new L(), s = new L(), T = 0, k = null;
|
|
581
|
-
const $ = (r) => r < 0.5 ? 4 * r * r * r : 1 - Math.pow(-2 * r + 2, 3) / 2,
|
|
582
|
-
const b = new L(),
|
|
581
|
+
const $ = (r) => r < 0.5 ? 4 * r * r * r : 1 - Math.pow(-2 * r + 2, 3) / 2, te = (r) => {
|
|
582
|
+
const b = new L(), u = T * 1.2, E = new L(s.x + u, s.y, s.z), g = new L(s.x, s.y + u, s.z), _ = new L(s.x, s.y - u, s.z);
|
|
583
583
|
if (r <= 0.567) {
|
|
584
584
|
const S = r / 0.567 * Math.PI * 2;
|
|
585
|
-
b.x = s.x + Math.cos(S) *
|
|
585
|
+
b.x = s.x + Math.cos(S) * u, b.z = s.z + Math.sin(S) * u, b.y = s.y;
|
|
586
586
|
} else if (r <= 0.724) {
|
|
587
587
|
const d = (r - 0.567) / 0.157, S = $(d);
|
|
588
588
|
b.lerpVectors(E, g, S);
|
|
589
589
|
} else if (r <= 0.881) {
|
|
590
|
-
const d = (r - 0.724) / 0.157,
|
|
591
|
-
b.x = s.x + Math.sin(
|
|
590
|
+
const d = (r - 0.724) / 0.157, Y = $(d) * Math.PI;
|
|
591
|
+
b.x = s.x + Math.sin(Y) * u, b.y = s.y + Math.cos(Y) * u, b.z = s.z;
|
|
592
592
|
} else {
|
|
593
593
|
const d = (r - 0.881) / 0.119, S = $(d);
|
|
594
594
|
b.lerpVectors(_, n, S);
|
|
@@ -598,32 +598,32 @@ function oa(a, e) {
|
|
|
598
598
|
const { camera: r, controls: b } = a();
|
|
599
599
|
if (!r || !b) return;
|
|
600
600
|
o || (o = Date.now());
|
|
601
|
-
const
|
|
601
|
+
const u = Date.now() - o, E = Math.min(u / l, 1);
|
|
602
602
|
if (E >= 1) {
|
|
603
|
-
|
|
603
|
+
V();
|
|
604
604
|
return;
|
|
605
605
|
}
|
|
606
|
-
const g =
|
|
606
|
+
const g = te(E);
|
|
607
607
|
r.position.copy(g), r.lookAt(s), b.target.copy(s), k = requestAnimationFrame(ie);
|
|
608
|
-
},
|
|
608
|
+
}, oe = () => {
|
|
609
609
|
if (e.value.length === 0) return;
|
|
610
610
|
const { camera: r, controls: b } = a();
|
|
611
611
|
if (!r || !b) return;
|
|
612
612
|
n.copy(r.position), C.copy(b.target);
|
|
613
|
-
const
|
|
613
|
+
const u = new Bt();
|
|
614
614
|
e.value.forEach((O) => {
|
|
615
|
-
|
|
615
|
+
u.expandByObject(O);
|
|
616
616
|
});
|
|
617
|
-
const E =
|
|
618
|
-
s =
|
|
617
|
+
const E = u.getSize(new L());
|
|
618
|
+
s = u.getCenter(new L()), T = Math.max(E.x, E.y, E.z) * 1.2;
|
|
619
619
|
const g = new L(s.x + T * 1.2, s.y, s.z);
|
|
620
620
|
b.enabled = !1;
|
|
621
|
-
const _ = r.position.clone(), d = 1e3, S = Date.now(),
|
|
622
|
-
const O = Date.now() - S,
|
|
623
|
-
r.position.lerpVectors(_, g,
|
|
621
|
+
const _ = r.position.clone(), d = 1e3, S = Date.now(), Y = () => {
|
|
622
|
+
const O = Date.now() - S, Q = Math.min(O / d, 1), ae = $(Q);
|
|
623
|
+
r.position.lerpVectors(_, g, ae), r.lookAt(s), b.target.copy(s), Q < 1 ? requestAnimationFrame(Y) : (t.value = !0, o = null, ie());
|
|
624
624
|
};
|
|
625
|
-
|
|
626
|
-
},
|
|
625
|
+
Y();
|
|
626
|
+
}, V = () => {
|
|
627
627
|
t.value = !1, o = null, k && (cancelAnimationFrame(k), k = null);
|
|
628
628
|
const { controls: r } = a();
|
|
629
629
|
r && (r.enabled = !0, r.target.copy(C));
|
|
@@ -636,16 +636,16 @@ function oa(a, e) {
|
|
|
636
636
|
const { camera: r, controls: b } = a();
|
|
637
637
|
if (!r || !b) return;
|
|
638
638
|
b.enabled = !0;
|
|
639
|
-
const
|
|
640
|
-
const S = Date.now() - _,
|
|
641
|
-
r.position.lerpVectors(
|
|
639
|
+
const u = r.position.clone(), E = b.target.clone(), g = 1500, _ = Date.now(), d = () => {
|
|
640
|
+
const S = Date.now() - _, Y = Math.min(S / g, 1), O = $(Y);
|
|
641
|
+
r.position.lerpVectors(u, n, O), b.target.lerpVectors(E, C, O), Y < 1 && requestAnimationFrame(d);
|
|
642
642
|
};
|
|
643
643
|
d();
|
|
644
644
|
} else
|
|
645
|
-
|
|
645
|
+
oe();
|
|
646
646
|
},
|
|
647
|
-
startAnimation:
|
|
648
|
-
stopAnimation:
|
|
647
|
+
startAnimation: oe,
|
|
648
|
+
stopAnimation: V
|
|
649
649
|
};
|
|
650
650
|
}
|
|
651
651
|
function aa(a, e) {
|
|
@@ -661,13 +661,13 @@ function aa(a, e) {
|
|
|
661
661
|
// Z轴平面
|
|
662
662
|
];
|
|
663
663
|
}, k = () => {
|
|
664
|
-
C.makeEmpty(), e.value.forEach((
|
|
665
|
-
C.expandByObject(
|
|
664
|
+
C.makeEmpty(), e.value.forEach((K) => {
|
|
665
|
+
C.expandByObject(K);
|
|
666
666
|
}), s = C.getCenter(new L());
|
|
667
|
-
}, $ = (
|
|
667
|
+
}, $ = (K) => {
|
|
668
668
|
const r = C.getSize(new L());
|
|
669
|
-
let b,
|
|
670
|
-
|
|
669
|
+
let b, u, E;
|
|
670
|
+
K === "x" ? (b = new Tt(r.z * 1.2, r.y * 1.2), u = new L(s.x, s.y, s.z), E = new Mt(0, Math.PI / 2, 0)) : K === "y" ? (b = new Tt(r.x * 1.2, r.z * 1.2), u = new L(s.x, s.y, s.z), E = new Mt(Math.PI / 2, 0, 0)) : K === "z" && (b = new Tt(r.x * 1.2, r.y * 1.2), u = new L(s.x, s.y, s.z), E = new Mt(0, 0, 0));
|
|
671
671
|
const g = new Do({
|
|
672
672
|
color: 8900331,
|
|
673
673
|
transparent: !0,
|
|
@@ -675,18 +675,18 @@ function aa(a, e) {
|
|
|
675
675
|
side: Ro,
|
|
676
676
|
depthWrite: !1
|
|
677
677
|
}), _ = new Ao(b, g);
|
|
678
|
-
return _.position.copy(
|
|
679
|
-
},
|
|
680
|
-
if (ie(),
|
|
678
|
+
return _.position.copy(u), _.rotation.copy(E), _;
|
|
679
|
+
}, te = () => {
|
|
680
|
+
if (ie(), oe(), o.value === "none")
|
|
681
681
|
return;
|
|
682
682
|
k();
|
|
683
|
-
let
|
|
684
|
-
if (o.value === "x" ? (l[0].constant = -s.x,
|
|
683
|
+
let K = null;
|
|
684
|
+
if (o.value === "x" ? (l[0].constant = -s.x, K = l[0]) : o.value === "y" ? (l[1].constant = -s.y, K = l[1]) : o.value === "z" && (l[2].constant = -s.z, K = l[2]), K) {
|
|
685
685
|
e.value.forEach((b) => {
|
|
686
|
-
b.traverse((
|
|
687
|
-
|
|
688
|
-
E.clippingPlanes = [
|
|
689
|
-
}) :
|
|
686
|
+
b.traverse((u) => {
|
|
687
|
+
u.isMesh && u.material && (Array.isArray(u.material) ? u.material.forEach((E) => {
|
|
688
|
+
E.clippingPlanes = [K];
|
|
689
|
+
}) : u.material.clippingPlanes = [K]);
|
|
690
690
|
});
|
|
691
691
|
});
|
|
692
692
|
const { scene: r } = a();
|
|
@@ -696,28 +696,28 @@ function aa(a, e) {
|
|
|
696
696
|
}
|
|
697
697
|
}
|
|
698
698
|
}, ie = () => {
|
|
699
|
-
e.value.forEach((
|
|
700
|
-
|
|
699
|
+
e.value.forEach((K) => {
|
|
700
|
+
K.traverse((r) => {
|
|
701
701
|
r.isMesh && r.material && (Array.isArray(r.material) ? r.material.forEach((b) => {
|
|
702
702
|
b.clippingPlanes = [];
|
|
703
703
|
}) : r.material.clippingPlanes = []);
|
|
704
704
|
});
|
|
705
705
|
});
|
|
706
|
-
},
|
|
707
|
-
const { scene:
|
|
708
|
-
|
|
709
|
-
|
|
706
|
+
}, oe = () => {
|
|
707
|
+
const { scene: K } = a();
|
|
708
|
+
K && n.forEach((r) => {
|
|
709
|
+
K.remove(r), r.geometry.dispose(), r.material.dispose();
|
|
710
710
|
}), n = [];
|
|
711
711
|
};
|
|
712
712
|
return {
|
|
713
713
|
isClipping: t,
|
|
714
714
|
activeClippingAxis: o,
|
|
715
715
|
toggleClipping: () => {
|
|
716
|
-
t.value = !t.value, t.value ? (T(), e.value.length > 0 && k()) : (o.value = "none", ie(),
|
|
716
|
+
t.value = !t.value, t.value ? (T(), e.value.length > 0 && k()) : (o.value = "none", ie(), oe());
|
|
717
717
|
},
|
|
718
|
-
updateClippingPlanes:
|
|
718
|
+
updateClippingPlanes: te,
|
|
719
719
|
clearClippingPlanes: ie,
|
|
720
|
-
clearClippingMeshes:
|
|
720
|
+
clearClippingMeshes: oe
|
|
721
721
|
};
|
|
722
722
|
}
|
|
723
723
|
const na = { class: "obj-viewer-container" }, sa = { class: "floating-controls" }, ia = ["disabled"], la = ["disabled", "title"], ra = {
|
|
@@ -758,108 +758,108 @@ const na = { class: "obj-viewer-container" }, sa = { class: "floating-controls"
|
|
|
758
758
|
initialCameraPosition: T,
|
|
759
759
|
initialTargetPosition: k,
|
|
760
760
|
initThreeJS: $,
|
|
761
|
-
handleResize:
|
|
761
|
+
handleResize: te,
|
|
762
762
|
fitCameraToAllModels: ie,
|
|
763
|
-
getThreeJSObjects:
|
|
764
|
-
clearAllModels:
|
|
765
|
-
cleanup:
|
|
766
|
-
} = ta(t), { isAnimating: r, toggleAnimation: b, stopAnimation:
|
|
767
|
-
|
|
763
|
+
getThreeJSObjects: oe,
|
|
764
|
+
clearAllModels: V,
|
|
765
|
+
cleanup: K
|
|
766
|
+
} = ta(t), { isAnimating: r, toggleAnimation: b, stopAnimation: u } = oa(oe, s), { isClipping: E, activeClippingAxis: g, toggleClipping: _, updateClippingPlanes: d } = aa(
|
|
767
|
+
oe,
|
|
768
768
|
s
|
|
769
|
-
), { addModelsFromUrls: S, loadModelByDefaultPath:
|
|
770
|
-
|
|
769
|
+
), { addModelsFromUrls: S, loadModelByDefaultPath: Y } = Bo(
|
|
770
|
+
oe,
|
|
771
771
|
s,
|
|
772
772
|
o,
|
|
773
773
|
l,
|
|
774
|
-
|
|
774
|
+
V
|
|
775
775
|
), O = () => {
|
|
776
776
|
if (C.value || s.value.length === 0) return;
|
|
777
|
-
C.value = !0, r.value &&
|
|
778
|
-
const { camera: X, controls: m } =
|
|
777
|
+
C.value = !0, r.value && u();
|
|
778
|
+
const { camera: X, controls: m } = oe();
|
|
779
779
|
if (!X || !m) return;
|
|
780
780
|
m.enabled = !0;
|
|
781
781
|
const N = (c) => c < 0.5 ? 4 * c * c * c : 1 - Math.pow(-2 * c + 2, 3) / 2, wt = X.position.clone(), bt = m.target.clone(), st = 1500, vt = Date.now(), f = () => {
|
|
782
|
-
const c = Date.now() - vt, D = Math.min(c / st, 1),
|
|
783
|
-
X.position.lerpVectors(wt, T.value,
|
|
782
|
+
const c = Date.now() - vt, D = Math.min(c / st, 1), I = N(D);
|
|
783
|
+
X.position.lerpVectors(wt, T.value, I), m.target.lerpVectors(bt, k.value, I), D < 1 ? requestAnimationFrame(f) : C.value = !1;
|
|
784
784
|
};
|
|
785
785
|
f();
|
|
786
|
-
},
|
|
786
|
+
}, Q = () => {
|
|
787
787
|
document.fullscreenElement ? document.exitFullscreen().then(() => {
|
|
788
788
|
n.value = !1, ht(() => {
|
|
789
|
-
|
|
789
|
+
te();
|
|
790
790
|
});
|
|
791
791
|
}).catch((X) => {
|
|
792
792
|
console.error("无法退出全屏:", X);
|
|
793
793
|
}) : t.value.requestFullscreen().then(() => {
|
|
794
794
|
n.value = !0, ht(() => {
|
|
795
|
-
|
|
795
|
+
te();
|
|
796
796
|
});
|
|
797
797
|
}).catch((X) => {
|
|
798
798
|
console.error("无法进入全屏:", X);
|
|
799
799
|
});
|
|
800
|
-
},
|
|
800
|
+
}, ae = () => {
|
|
801
801
|
n.value = !!document.fullscreenElement, n.value || ht(() => {
|
|
802
|
-
|
|
802
|
+
te();
|
|
803
803
|
});
|
|
804
804
|
}, $e = async (X, m) => {
|
|
805
805
|
try {
|
|
806
|
-
r.value &&
|
|
806
|
+
r.value && u(), E.value && _();
|
|
807
807
|
const N = await m(X);
|
|
808
808
|
return ie(), N;
|
|
809
809
|
} catch (N) {
|
|
810
810
|
throw console.error("加载模型失败:", N), N;
|
|
811
811
|
}
|
|
812
|
-
}, ke = async (X) => $e(X, S), R = async (X) => $e(X,
|
|
812
|
+
}, ke = async (X) => $e(X, S), R = async (X) => $e(X, Y);
|
|
813
813
|
return Ht(async () => {
|
|
814
|
-
await ht(), $(), window.addEventListener("resize",
|
|
814
|
+
await ht(), $(), window.addEventListener("resize", te), document.addEventListener("fullscreenchange", ae);
|
|
815
815
|
}), co(() => {
|
|
816
|
-
window.removeEventListener("resize",
|
|
816
|
+
window.removeEventListener("resize", te), document.removeEventListener("fullscreenchange", ae), r.value && u(), K();
|
|
817
817
|
}), e({
|
|
818
818
|
addModelsFromUrls: ke,
|
|
819
819
|
loadModelByDefaultPath: R
|
|
820
820
|
}), (X, m) => (v(), G("div", na, [
|
|
821
|
-
|
|
821
|
+
h("div", {
|
|
822
822
|
ref_key: "threejsContainer",
|
|
823
823
|
ref: t,
|
|
824
824
|
class: "threejs-container"
|
|
825
825
|
}, null, 512),
|
|
826
|
-
|
|
827
|
-
|
|
826
|
+
h("div", sa, [
|
|
827
|
+
h("button", {
|
|
828
828
|
onClick: O,
|
|
829
829
|
class: ut(["control-btn", "reset-btn"]),
|
|
830
830
|
disabled: o.value || i(s).length === 0 || C.value,
|
|
831
831
|
title: "重置"
|
|
832
832
|
}, m[10] || (m[10] = [
|
|
833
|
-
|
|
833
|
+
h("svg", {
|
|
834
834
|
viewBox: "0 0 24 24",
|
|
835
835
|
fill: "none",
|
|
836
836
|
stroke: "currentColor",
|
|
837
837
|
"stroke-width": "2"
|
|
838
838
|
}, [
|
|
839
|
-
|
|
840
|
-
|
|
839
|
+
h("path", { d: "M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }),
|
|
840
|
+
h("polyline", { points: "9,22 9,12 15,12 15,22" })
|
|
841
841
|
], -1)
|
|
842
842
|
]), 8, ia),
|
|
843
|
-
|
|
843
|
+
h("button", {
|
|
844
844
|
onClick: m[0] || (m[0] = (...N) => i(b) && i(b)(...N)),
|
|
845
845
|
class: ut(["control-btn", "animation-btn", { active: i(r) }]),
|
|
846
846
|
disabled: o.value || i(s).length === 0,
|
|
847
847
|
title: i(r) ? "停止动画" : "动画视图"
|
|
848
848
|
}, [
|
|
849
849
|
i(r) ? (v(), G("svg", ca, m[12] || (m[12] = [
|
|
850
|
-
|
|
850
|
+
h("circle", {
|
|
851
851
|
cx: "12",
|
|
852
852
|
cy: "12",
|
|
853
853
|
r: "10"
|
|
854
854
|
}, null, -1),
|
|
855
|
-
|
|
855
|
+
h("rect", {
|
|
856
856
|
x: "9.5",
|
|
857
857
|
y: "8",
|
|
858
858
|
width: "2",
|
|
859
859
|
height: "8",
|
|
860
860
|
fill: "currentColor"
|
|
861
861
|
}, null, -1),
|
|
862
|
-
|
|
862
|
+
h("rect", {
|
|
863
863
|
x: "12.5",
|
|
864
864
|
y: "8",
|
|
865
865
|
width: "2",
|
|
@@ -867,36 +867,36 @@ const na = { class: "obj-viewer-container" }, sa = { class: "floating-controls"
|
|
|
867
867
|
fill: "currentColor"
|
|
868
868
|
}, null, -1)
|
|
869
869
|
]))) : (v(), G("svg", ra, m[11] || (m[11] = [
|
|
870
|
-
|
|
870
|
+
h("circle", {
|
|
871
871
|
cx: "12",
|
|
872
872
|
cy: "12",
|
|
873
873
|
r: "10"
|
|
874
874
|
}, null, -1),
|
|
875
|
-
|
|
875
|
+
h("polygon", {
|
|
876
876
|
points: "10,8 16,12 10,16",
|
|
877
877
|
fill: "currentColor"
|
|
878
878
|
}, null, -1)
|
|
879
879
|
])))
|
|
880
880
|
], 10, la),
|
|
881
|
-
|
|
881
|
+
h("button", {
|
|
882
882
|
onClick: m[1] || (m[1] = (...N) => i(_) && i(_)(...N)),
|
|
883
883
|
class: ut(["control-btn", "clipping-btn", { active: i(E) }]),
|
|
884
884
|
disabled: o.value || i(s).length === 0,
|
|
885
885
|
title: "剖面视图"
|
|
886
886
|
}, m[13] || (m[13] = [
|
|
887
|
-
|
|
887
|
+
h("svg", {
|
|
888
888
|
viewBox: "0 0 24 24",
|
|
889
889
|
fill: "none",
|
|
890
890
|
stroke: "currentColor",
|
|
891
891
|
"stroke-width": "2"
|
|
892
892
|
}, [
|
|
893
|
-
|
|
893
|
+
h("rect", {
|
|
894
894
|
x: "3",
|
|
895
895
|
y: "3",
|
|
896
896
|
width: "18",
|
|
897
897
|
height: "18"
|
|
898
898
|
}),
|
|
899
|
-
|
|
899
|
+
h("line", {
|
|
900
900
|
x1: "-14",
|
|
901
901
|
y1: "12",
|
|
902
902
|
x2: "30",
|
|
@@ -905,23 +905,23 @@ const na = { class: "obj-viewer-container" }, sa = { class: "floating-controls"
|
|
|
905
905
|
})
|
|
906
906
|
], -1)
|
|
907
907
|
]), 10, ha),
|
|
908
|
-
|
|
909
|
-
onClick:
|
|
908
|
+
h("button", {
|
|
909
|
+
onClick: Q,
|
|
910
910
|
class: ut(["control-btn", "fullscreen-btn"]),
|
|
911
911
|
title: n.value ? "退出全屏" : "全屏"
|
|
912
912
|
}, [
|
|
913
913
|
n.value ? (v(), G("svg", pa, m[15] || (m[15] = [
|
|
914
|
-
|
|
914
|
+
h("path", { d: "M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3" }, null, -1)
|
|
915
915
|
]))) : (v(), G("svg", da, m[14] || (m[14] = [
|
|
916
|
-
|
|
916
|
+
h("path", { d: "M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3" }, null, -1)
|
|
917
917
|
])))
|
|
918
918
|
], 8, ua)
|
|
919
919
|
]),
|
|
920
920
|
i(E) ? (v(), G("div", ma, [
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
Qe(
|
|
921
|
+
h("div", fa, [
|
|
922
|
+
h("div", ga, [
|
|
923
|
+
h("label", _a, [
|
|
924
|
+
Qe(h("input", {
|
|
925
925
|
type: "radio",
|
|
926
926
|
name: "clipping-axis",
|
|
927
927
|
value: "none",
|
|
@@ -930,10 +930,10 @@ const na = { class: "obj-viewer-container" }, sa = { class: "floating-controls"
|
|
|
930
930
|
}, null, 544), [
|
|
931
931
|
[pt, i(g)]
|
|
932
932
|
]),
|
|
933
|
-
m[16] || (m[16] =
|
|
933
|
+
m[16] || (m[16] = h("span", { class: "radio-text" }, "无切割", -1))
|
|
934
934
|
]),
|
|
935
|
-
|
|
936
|
-
Qe(
|
|
935
|
+
h("label", ya, [
|
|
936
|
+
Qe(h("input", {
|
|
937
937
|
type: "radio",
|
|
938
938
|
name: "clipping-axis",
|
|
939
939
|
value: "x",
|
|
@@ -942,10 +942,10 @@ const na = { class: "obj-viewer-container" }, sa = { class: "floating-controls"
|
|
|
942
942
|
}, null, 544), [
|
|
943
943
|
[pt, i(g)]
|
|
944
944
|
]),
|
|
945
|
-
m[17] || (m[17] =
|
|
945
|
+
m[17] || (m[17] = h("span", { class: "radio-text" }, "X轴切割", -1))
|
|
946
946
|
]),
|
|
947
|
-
|
|
948
|
-
Qe(
|
|
947
|
+
h("label", wa, [
|
|
948
|
+
Qe(h("input", {
|
|
949
949
|
type: "radio",
|
|
950
950
|
name: "clipping-axis",
|
|
951
951
|
value: "y",
|
|
@@ -954,10 +954,10 @@ const na = { class: "obj-viewer-container" }, sa = { class: "floating-controls"
|
|
|
954
954
|
}, null, 544), [
|
|
955
955
|
[pt, i(g)]
|
|
956
956
|
]),
|
|
957
|
-
m[18] || (m[18] =
|
|
957
|
+
m[18] || (m[18] = h("span", { class: "radio-text" }, "Y轴切割", -1))
|
|
958
958
|
]),
|
|
959
|
-
|
|
960
|
-
Qe(
|
|
959
|
+
h("label", ba, [
|
|
960
|
+
Qe(h("input", {
|
|
961
961
|
type: "radio",
|
|
962
962
|
name: "clipping-axis",
|
|
963
963
|
value: "z",
|
|
@@ -966,21 +966,21 @@ const na = { class: "obj-viewer-container" }, sa = { class: "floating-controls"
|
|
|
966
966
|
}, null, 544), [
|
|
967
967
|
[pt, i(g)]
|
|
968
968
|
]),
|
|
969
|
-
m[19] || (m[19] =
|
|
969
|
+
m[19] || (m[19] = h("span", { class: "radio-text" }, "Z轴切割", -1))
|
|
970
970
|
])
|
|
971
971
|
])
|
|
972
972
|
])
|
|
973
|
-
])) :
|
|
973
|
+
])) : pe("", !0),
|
|
974
974
|
o.value ? (v(), G("div", va, [
|
|
975
|
-
m[20] || (m[20] =
|
|
976
|
-
|
|
977
|
-
])) :
|
|
975
|
+
m[20] || (m[20] = h("div", { class: "loading-spinner" }, null, -1)),
|
|
976
|
+
h("p", null, ze(l.value), 1)
|
|
977
|
+
])) : pe("", !0)
|
|
978
978
|
]));
|
|
979
979
|
}
|
|
980
980
|
}, ka = /* @__PURE__ */ Ze(Ca, [["__scopeId", "data-v-fa098b89"]]);
|
|
981
981
|
function Pa(a, e, t, o, l, n) {
|
|
982
|
-
const C =
|
|
983
|
-
return v(),
|
|
982
|
+
const C = ee("svg-icon"), s = ee("ssMenu");
|
|
983
|
+
return v(), J(s, {
|
|
984
984
|
mode: a.mode,
|
|
985
985
|
menuList: a.renderMenuList,
|
|
986
986
|
onClickMenu: a.clickMenu,
|
|
@@ -988,11 +988,11 @@ function Pa(a, e, t, o, l, n) {
|
|
|
988
988
|
onCloseMenu: a.closeMenu
|
|
989
989
|
}, {
|
|
990
990
|
title: w(({ menu: T }) => [
|
|
991
|
-
|
|
991
|
+
p(C, {
|
|
992
992
|
name: T.icon ?? "Fold",
|
|
993
993
|
style: { width: "clamp(16px, 1.25rem, 20px)", height: "clamp(16px, 1.25rem, 20px)", "margin-right": "8px" }
|
|
994
994
|
}, null, 8, ["name"]),
|
|
995
|
-
|
|
995
|
+
h("span", null, ze(T.title ?? ""), 1)
|
|
996
996
|
]),
|
|
997
997
|
_: 1
|
|
998
998
|
}, 8, ["mode", "menuList", "onClickMenu", "onOpenMenu", "onCloseMenu"]);
|
|
@@ -1030,12 +1030,12 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1030
1030
|
key: k,
|
|
1031
1031
|
class: "bread-item"
|
|
1032
1032
|
}, [
|
|
1033
|
-
|
|
1033
|
+
h("div", {
|
|
1034
1034
|
class: "bread-title",
|
|
1035
|
-
onClick: (
|
|
1035
|
+
onClick: (te) => n(T),
|
|
1036
1036
|
style: ho({ opacity: (($ = o.value) == null ? void 0 : $.length) - 1 === k ? "0.7" : "1" })
|
|
1037
|
-
},
|
|
1038
|
-
k !== o.value.length - 1 && Array.isArray(o.value) ? (v(), G("div", Ea,
|
|
1037
|
+
}, ze(T.value), 13, Ma),
|
|
1038
|
+
k !== o.value.length - 1 && Array.isArray(o.value) ? (v(), G("div", Ea, ze("/"))) : pe("", !0)
|
|
1039
1039
|
]);
|
|
1040
1040
|
}), 128))
|
|
1041
1041
|
]));
|
|
@@ -1056,66 +1056,70 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1056
1056
|
type: Object,
|
|
1057
1057
|
default: () => {
|
|
1058
1058
|
}
|
|
1059
|
+
},
|
|
1060
|
+
showButton: {
|
|
1061
|
+
type: Boolean,
|
|
1062
|
+
default: !0
|
|
1059
1063
|
}
|
|
1060
1064
|
},
|
|
1061
1065
|
setup(a) {
|
|
1062
|
-
const e = Ft(Fe), t = P(!1), { selectTitle: o } = Be(e), l = P(!1), n = P(!1), C = P(!1), s = P(!1), T = ao(), { loginUserInfo: k } = Be(T), $ = yt(Fe), { isEdit:
|
|
1063
|
-
return (b,
|
|
1064
|
-
const E =
|
|
1065
|
-
return i(
|
|
1066
|
+
const e = Ft(Fe), t = P(!1), { selectTitle: o } = Be(e), l = P(!1), n = P(!1), C = P(!1), s = P(!1), T = ao(), { loginUserInfo: k } = Be(T), $ = yt(Fe), { isEdit: te } = Be($), ie = _t(Fe), oe = P(!1), { importLoading: V, platName: K } = Be(ie), r = P("");
|
|
1067
|
+
return (b, u) => {
|
|
1068
|
+
const E = ee("el-button"), g = ee("el-avatar"), _ = ee("el-header"), d = ee("el-container"), S = ee("el-icon"), Y = ee("el-input"), O = ee("el-aside"), Q = ee("el-main"), ae = ee("router-view"), $e = Zt("loading");
|
|
1069
|
+
return i(te) === "edit" ? (v(), J(d, {
|
|
1066
1070
|
key: 0,
|
|
1067
1071
|
class: "client-container"
|
|
1068
1072
|
}, {
|
|
1069
1073
|
default: w(() => [
|
|
1070
|
-
|
|
1074
|
+
p(_, { class: "client-structure-header" }, {
|
|
1071
1075
|
default: w(() => {
|
|
1072
1076
|
var ke;
|
|
1073
1077
|
return [
|
|
1074
|
-
|
|
1075
|
-
|
|
1078
|
+
h("div", Sa, [
|
|
1079
|
+
p(E, {
|
|
1076
1080
|
id: "transparentBgButton",
|
|
1077
1081
|
onClick: i(Wt)
|
|
1078
1082
|
}, {
|
|
1079
|
-
default: w(() =>
|
|
1083
|
+
default: w(() => u[3] || (u[3] = [
|
|
1080
1084
|
Me(" 返回页面 ")
|
|
1081
1085
|
])),
|
|
1082
1086
|
_: 1,
|
|
1083
1087
|
__: [3]
|
|
1084
1088
|
}, 8, ["onClick"]),
|
|
1085
|
-
|
|
1089
|
+
p(E, {
|
|
1086
1090
|
id: "transparentBgButton",
|
|
1087
|
-
onClick:
|
|
1091
|
+
onClick: u[0] || (u[0] = (R) => {
|
|
1088
1092
|
var X, m;
|
|
1089
1093
|
return i(qt)((m = (X = i(o)) == null ? void 0 : X.map((N) => N.value)) == null ? void 0 : m.join("/"));
|
|
1090
1094
|
})
|
|
1091
1095
|
}, {
|
|
1092
1096
|
icon: w(() => [
|
|
1093
|
-
|
|
1097
|
+
p(Oe, { name: "Store" })
|
|
1094
1098
|
]),
|
|
1095
1099
|
default: w(() => [
|
|
1096
|
-
|
|
1100
|
+
u[4] || (u[4] = Me(" 保存页面 "))
|
|
1097
1101
|
]),
|
|
1098
1102
|
_: 1,
|
|
1099
1103
|
__: [4]
|
|
1100
1104
|
})
|
|
1101
1105
|
]),
|
|
1102
|
-
|
|
1103
|
-
(v(),
|
|
1106
|
+
h("div", Da, [
|
|
1107
|
+
(v(), J(ro, {
|
|
1104
1108
|
key: i(o),
|
|
1105
1109
|
breadArray: i(o),
|
|
1106
1110
|
onClick: i(Gt)
|
|
1107
1111
|
}, null, 8, ["breadArray", "onClick"]))
|
|
1108
1112
|
]),
|
|
1109
|
-
|
|
1113
|
+
h("div", Ra, [
|
|
1110
1114
|
nt(b.$slots, "default", {}, void 0, !0),
|
|
1111
|
-
|
|
1115
|
+
p(g, {
|
|
1112
1116
|
size: 35,
|
|
1113
1117
|
src: (ke = i(k)) == null ? void 0 : ke.avatarUrl
|
|
1114
1118
|
}, {
|
|
1115
1119
|
default: w(() => {
|
|
1116
1120
|
var R;
|
|
1117
1121
|
return [
|
|
1118
|
-
Me(
|
|
1122
|
+
Me(ze(((R = i(k)) == null ? void 0 : R.account) ?? "未知"), 1)
|
|
1119
1123
|
];
|
|
1120
1124
|
}),
|
|
1121
1125
|
_: 1
|
|
@@ -1125,97 +1129,100 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1125
1129
|
}),
|
|
1126
1130
|
_: 3
|
|
1127
1131
|
}),
|
|
1128
|
-
i(
|
|
1132
|
+
i(te) === "edit" ? (v(), J(d, {
|
|
1129
1133
|
key: 0,
|
|
1130
1134
|
class: "model-operate",
|
|
1131
1135
|
style: { "margin-top": "10px", height: "0px" }
|
|
1132
1136
|
}, {
|
|
1133
1137
|
default: w(() => [
|
|
1134
|
-
|
|
1135
|
-
|
|
1138
|
+
h("div", Aa, [
|
|
1139
|
+
p(Dt)
|
|
1136
1140
|
]),
|
|
1137
|
-
|
|
1138
|
-
|
|
1141
|
+
h("div", Ba, [
|
|
1142
|
+
p(Rt)
|
|
1139
1143
|
]),
|
|
1140
|
-
|
|
1141
|
-
|
|
1144
|
+
h("div", Fa, [
|
|
1145
|
+
p(At)
|
|
1142
1146
|
])
|
|
1143
1147
|
]),
|
|
1144
1148
|
_: 1
|
|
1145
|
-
})) :
|
|
1149
|
+
})) : pe("", !0)
|
|
1146
1150
|
]),
|
|
1147
1151
|
_: 3
|
|
1148
|
-
})) : Qe((v(),
|
|
1152
|
+
})) : Qe((v(), J(d, {
|
|
1149
1153
|
key: 1,
|
|
1150
1154
|
class: "client-container",
|
|
1151
1155
|
"element-loading-text": "正在加载页面数据..."
|
|
1152
1156
|
}, {
|
|
1153
1157
|
default: w(() => [
|
|
1154
|
-
|
|
1158
|
+
p(_, { class: "client-header" }, {
|
|
1155
1159
|
default: w(() => {
|
|
1156
1160
|
var ke;
|
|
1157
1161
|
return [
|
|
1158
|
-
|
|
1159
|
-
|
|
1162
|
+
h("div", La, [
|
|
1163
|
+
p(Oe, {
|
|
1160
1164
|
name: "logo",
|
|
1161
1165
|
style: { width: "clamp(18px, 1.5rem, 24px)", height: "clamp(18px, 1.5rem, 24px)", "margin-right": "8px" }
|
|
1162
1166
|
}),
|
|
1163
|
-
|
|
1167
|
+
u[5] || (u[5] = Me(" ISIP "))
|
|
1164
1168
|
]),
|
|
1165
|
-
|
|
1166
|
-
|
|
1169
|
+
h("div", ja, [
|
|
1170
|
+
p(lo, { mode: "horizontal" })
|
|
1167
1171
|
]),
|
|
1168
|
-
|
|
1169
|
-
|
|
1172
|
+
h("div", Oa, [
|
|
1173
|
+
p(Y, {
|
|
1170
1174
|
modelValue: r.value,
|
|
1171
|
-
"onUpdate:modelValue":
|
|
1175
|
+
"onUpdate:modelValue": u[1] || (u[1] = (R) => r.value = R),
|
|
1172
1176
|
clearable: "",
|
|
1173
1177
|
placeholder: "搜索",
|
|
1174
1178
|
style: { width: "130px" }
|
|
1175
1179
|
}, {
|
|
1176
1180
|
prefix: w(() => [
|
|
1177
|
-
|
|
1181
|
+
p(S, { class: "el-input__icon" }, {
|
|
1178
1182
|
default: w(() => [
|
|
1179
|
-
|
|
1183
|
+
p(i(so))
|
|
1180
1184
|
]),
|
|
1181
1185
|
_: 1
|
|
1182
1186
|
})
|
|
1183
1187
|
]),
|
|
1184
1188
|
_: 1
|
|
1185
1189
|
}, 8, ["modelValue"]),
|
|
1186
|
-
|
|
1190
|
+
a.showButton ? (v(), J(E, {
|
|
1191
|
+
key: 0,
|
|
1192
|
+
id: "transparentBgButton"
|
|
1193
|
+
}, {
|
|
1187
1194
|
icon: w(() => [
|
|
1188
|
-
|
|
1195
|
+
p(Oe, { name: "App" })
|
|
1189
1196
|
]),
|
|
1190
1197
|
default: w(() => [
|
|
1191
|
-
|
|
1198
|
+
u[6] || (u[6] = Me(" 生成APP "))
|
|
1192
1199
|
]),
|
|
1193
1200
|
_: 1,
|
|
1194
|
-
__: [
|
|
1195
|
-
}),
|
|
1196
|
-
i(
|
|
1197
|
-
key:
|
|
1201
|
+
__: [6]
|
|
1202
|
+
})) : pe("", !0),
|
|
1203
|
+
a.showButton && i(te) === "view" ? (v(), J(E, {
|
|
1204
|
+
key: 1,
|
|
1198
1205
|
id: "transparentBgButton",
|
|
1199
1206
|
onClick: i(Jt)
|
|
1200
1207
|
}, {
|
|
1201
1208
|
icon: w(() => [
|
|
1202
|
-
|
|
1209
|
+
p(Oe, { name: "write" })
|
|
1203
1210
|
]),
|
|
1204
1211
|
default: w(() => [
|
|
1205
|
-
|
|
1212
|
+
u[7] || (u[7] = Me(" 修改布局 "))
|
|
1206
1213
|
]),
|
|
1207
1214
|
_: 1,
|
|
1208
|
-
__: [
|
|
1209
|
-
}, 8, ["onClick"])) :
|
|
1215
|
+
__: [7]
|
|
1216
|
+
}, 8, ["onClick"])) : pe("", !0),
|
|
1210
1217
|
nt(b.$slots, "default", {}, void 0, !0),
|
|
1211
|
-
|
|
1218
|
+
p(g, {
|
|
1212
1219
|
size: 35,
|
|
1213
1220
|
src: (ke = i(k)) == null ? void 0 : ke.avatarUrl
|
|
1214
1221
|
}, {
|
|
1215
1222
|
default: w(() => {
|
|
1216
1223
|
var R;
|
|
1217
1224
|
return [
|
|
1218
|
-
Me(
|
|
1225
|
+
Me(ze(((R = i(k)) == null ? void 0 : R.account) ?? "未知"), 1)
|
|
1219
1226
|
];
|
|
1220
1227
|
}),
|
|
1221
1228
|
_: 1
|
|
@@ -1225,30 +1232,30 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1225
1232
|
}),
|
|
1226
1233
|
_: 3
|
|
1227
1234
|
}),
|
|
1228
|
-
|
|
1235
|
+
p(d, { class: "client-body" }, {
|
|
1229
1236
|
default: w(() => [
|
|
1230
|
-
b.$route.path === "/" ? (v(),
|
|
1237
|
+
b.$route.path === "/" ? (v(), J(Q, {
|
|
1231
1238
|
key: 0,
|
|
1232
1239
|
class: "client-main"
|
|
1233
1240
|
}, {
|
|
1234
1241
|
default: w(() => {
|
|
1235
1242
|
var ke;
|
|
1236
1243
|
return [
|
|
1237
|
-
|
|
1244
|
+
p(O, { class: "client-aside" }, {
|
|
1238
1245
|
default: w(() => [
|
|
1239
|
-
|
|
1246
|
+
p(gt, { mode: "vertical" })
|
|
1240
1247
|
]),
|
|
1241
1248
|
_: 1
|
|
1242
1249
|
}),
|
|
1243
|
-
|
|
1250
|
+
h("div", za, [
|
|
1244
1251
|
(v(!0), G(xt, null, St((ke = i(tt)(i(Ae))) == null ? void 0 : ke.filter((R) => R.comp !== "FormTop"), (R, X) => {
|
|
1245
1252
|
var m;
|
|
1246
1253
|
return v(), G("div", {
|
|
1247
1254
|
class: "item-view-content",
|
|
1248
1255
|
key: X
|
|
1249
1256
|
}, [
|
|
1250
|
-
((m = R == null ? void 0 : R.comp) == null ? void 0 : m.toUpperCase()) !== "TABLE" ? (v(), G("div", Na,
|
|
1251
|
-
(v(),
|
|
1257
|
+
((m = R == null ? void 0 : R.comp) == null ? void 0 : m.toUpperCase()) !== "TABLE" ? (v(), G("div", Na, ze(R.name), 1)) : pe("", !0),
|
|
1258
|
+
(v(), J(Xt(i(Qt)(R.comp)), {
|
|
1252
1259
|
compName: R.name,
|
|
1253
1260
|
itemData: R == null ? void 0 : R.compData,
|
|
1254
1261
|
childItemData: R == null ? void 0 : R.itemChildData,
|
|
@@ -1261,45 +1268,45 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1261
1268
|
]);
|
|
1262
1269
|
}), 128)),
|
|
1263
1270
|
l.value ? (v(), G("div", Ua, [
|
|
1264
|
-
n.value ? (v(),
|
|
1271
|
+
n.value ? (v(), J(at, {
|
|
1265
1272
|
key: 0,
|
|
1266
1273
|
class: "calculator-content",
|
|
1267
1274
|
onClickTrigger: b.clickPreview,
|
|
1268
1275
|
loading: C.value,
|
|
1269
1276
|
modelValue: "预览"
|
|
1270
|
-
}, null, 8, ["onClickTrigger", "loading"])) :
|
|
1271
|
-
|
|
1277
|
+
}, null, 8, ["onClickTrigger", "loading"])) : pe("", !0),
|
|
1278
|
+
p(at, {
|
|
1272
1279
|
class: "calculator-content",
|
|
1273
|
-
onClickTrigger:
|
|
1280
|
+
onClickTrigger: u[2] || (u[2] = (R) => b.showThreeContent()),
|
|
1274
1281
|
loading: t.value,
|
|
1275
1282
|
modelValue: "调用方法"
|
|
1276
1283
|
}, null, 8, ["loading"])
|
|
1277
|
-
])) :
|
|
1284
|
+
])) : pe("", !0),
|
|
1278
1285
|
s.value ? (v(), G("div", $a, [
|
|
1279
|
-
|
|
1286
|
+
p(at, {
|
|
1280
1287
|
class: "calculator-content",
|
|
1281
1288
|
modelValue: "执行方法",
|
|
1282
1289
|
onClickTrigger: b.clickExecute,
|
|
1283
|
-
loading:
|
|
1290
|
+
loading: oe.value
|
|
1284
1291
|
}, null, 8, ["onClickTrigger", "loading"])
|
|
1285
|
-
])) :
|
|
1292
|
+
])) : pe("", !0)
|
|
1286
1293
|
])
|
|
1287
1294
|
];
|
|
1288
1295
|
}),
|
|
1289
1296
|
_: 1
|
|
1290
|
-
})) : (v(),
|
|
1297
|
+
})) : (v(), J(Q, {
|
|
1291
1298
|
key: 1,
|
|
1292
1299
|
class: "client-main"
|
|
1293
1300
|
}, {
|
|
1294
1301
|
default: w(() => [
|
|
1295
|
-
|
|
1302
|
+
p(O, { class: "client-aside" }, {
|
|
1296
1303
|
default: w(() => [
|
|
1297
|
-
|
|
1304
|
+
p(gt, { mode: "vertical" })
|
|
1298
1305
|
]),
|
|
1299
1306
|
_: 1
|
|
1300
1307
|
}),
|
|
1301
|
-
|
|
1302
|
-
|
|
1308
|
+
h("div", Ia, [
|
|
1309
|
+
p(ae)
|
|
1303
1310
|
])
|
|
1304
1311
|
]),
|
|
1305
1312
|
_: 1
|
|
@@ -1310,11 +1317,11 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1310
1317
|
]),
|
|
1311
1318
|
_: 3
|
|
1312
1319
|
})), [
|
|
1313
|
-
[$e, i(
|
|
1320
|
+
[$e, i(V)]
|
|
1314
1321
|
]);
|
|
1315
1322
|
};
|
|
1316
1323
|
}
|
|
1317
|
-
}), Ya = /* @__PURE__ */ Ze(Va, [["__scopeId", "data-v-
|
|
1324
|
+
}), Ya = /* @__PURE__ */ Ze(Va, [["__scopeId", "data-v-b82fd32b"]]), j = [
|
|
1318
1325
|
{
|
|
1319
1326
|
key: "FitCurve_Eleven",
|
|
1320
1327
|
value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35326658522693",
|
|
@@ -1411,17 +1418,21 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1411
1418
|
type: Object,
|
|
1412
1419
|
default: () => {
|
|
1413
1420
|
}
|
|
1421
|
+
},
|
|
1422
|
+
showButton: {
|
|
1423
|
+
type: Boolean,
|
|
1424
|
+
default: !0
|
|
1414
1425
|
}
|
|
1415
1426
|
},
|
|
1416
1427
|
setup(a) {
|
|
1417
|
-
const e = Ft(Fe), t = P(0), o = P(!1), { selectTitle: l } = Be(e), n = P(!1), C = P(!1), s = P(!1), T = Fo(Fe), k = P(!1), { tableShowThree: $ } = Be(T),
|
|
1428
|
+
const e = Ft(Fe), t = P(0), o = P(!1), { selectTitle: l } = Be(e), n = P(!1), C = P(!1), s = P(!1), T = Fo(Fe), k = P(!1), { tableShowThree: $ } = Be(T), te = ao(), { loginUserInfo: ie } = Be(te), oe = yt(Fe), { isEdit: V } = Be(oe), K = _t(Fe), r = Lo(Fe), { objUrl: b, blobUrls: u } = Be(r), E = P(null), g = P(!0), _ = P(!1), { importLoading: d, activeMenuPath: S, platName: Y } = Be(K), O = P(!1);
|
|
1418
1429
|
Re(() => S.value, async (f) => {
|
|
1419
1430
|
f && (O.value = !0), Je != null && Je.find((c) => {
|
|
1420
1431
|
var D;
|
|
1421
1432
|
return (c == null ? void 0 : c.key) === ((D = f == null ? void 0 : f.split("/")) == null ? void 0 : D[(f == null ? void 0 : f.split("/").length) - 1]);
|
|
1422
1433
|
}) ? k.value = !0 : k.value = !1;
|
|
1423
1434
|
}, { immediate: !0 });
|
|
1424
|
-
const
|
|
1435
|
+
const Q = async () => {
|
|
1425
1436
|
var B, y, le, ce, M;
|
|
1426
1437
|
_.value = !0;
|
|
1427
1438
|
const f = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken");
|
|
@@ -1429,25 +1440,25 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1429
1440
|
var ve, _e, Se;
|
|
1430
1441
|
return (he == null ? void 0 : he.key) === ((Se = (ve = S.value) == null ? void 0 : ve.split("/")) == null ? void 0 : Se[((_e = S.value) == null ? void 0 : _e.split("/").length) - 1]);
|
|
1431
1442
|
})) == null ? void 0 : B.value) == null ? void 0 : y.split(",")) == null ? void 0 : le[0]) ?? "";
|
|
1432
|
-
const D = await
|
|
1443
|
+
const D = await ge.post(c, null, {
|
|
1433
1444
|
responseType: "blob",
|
|
1434
1445
|
// 必须设置
|
|
1435
1446
|
headers: {
|
|
1436
1447
|
Authorization: f,
|
|
1437
1448
|
"Content-Type": "application/json"
|
|
1438
1449
|
}
|
|
1439
|
-
}),
|
|
1450
|
+
}), I = new Blob([D.data], {
|
|
1440
1451
|
type: "application/octet-stream;charset=UTF-8"
|
|
1441
1452
|
});
|
|
1442
1453
|
let A = {
|
|
1443
1454
|
suffix: "." + ((M = c == null ? void 0 : c.split(".")) == null ? void 0 : M[((ce = c == null ? void 0 : c.split(".")) == null ? void 0 : ce.length) - 1]),
|
|
1444
|
-
blob:
|
|
1455
|
+
blob: I,
|
|
1445
1456
|
mtlBlobs: []
|
|
1446
1457
|
};
|
|
1447
1458
|
_.value = !1, E.value.loadModelByDefaultPath([A]);
|
|
1448
|
-
},
|
|
1449
|
-
var
|
|
1450
|
-
const c = (
|
|
1459
|
+
}, ae = async (f) => {
|
|
1460
|
+
var I, A, B, y, le, ce, M;
|
|
1461
|
+
const c = (I = f == null ? void 0 : f.split("/")) == null ? void 0 : I[0], D = await go({
|
|
1451
1462
|
key: {
|
|
1452
1463
|
type: "mainEquip",
|
|
1453
1464
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
@@ -1459,9 +1470,9 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1459
1470
|
Re(
|
|
1460
1471
|
() => Ae.value,
|
|
1461
1472
|
() => {
|
|
1462
|
-
var f, c, D,
|
|
1473
|
+
var f, c, D, I, A;
|
|
1463
1474
|
if (((f = Ae.value) == null ? void 0 : f.length) === 2 && ((c = Ae.value) != null && c.find((B) => (B == null ? void 0 : B.name) === "输入")) && ((D = Ae.value) != null && D.find((B) => (B == null ? void 0 : B.name) === "输出"))) {
|
|
1464
|
-
const B = (
|
|
1475
|
+
const B = (I = Ae.value) == null ? void 0 : I.find((y) => (y == null ? void 0 : y.name) === "输出");
|
|
1465
1476
|
C.value = ((A = B == null ? void 0 : B.comp) == null ? void 0 : A.toUpperCase()) === "FORM", n.value = !0;
|
|
1466
1477
|
} else
|
|
1467
1478
|
n.value = !1, C.value = !1;
|
|
@@ -1470,7 +1481,7 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1470
1481
|
), Re(
|
|
1471
1482
|
() => S.value,
|
|
1472
1483
|
async () => {
|
|
1473
|
-
S.value && (g.value = await
|
|
1484
|
+
S.value && (g.value = await ae(S.value));
|
|
1474
1485
|
},
|
|
1475
1486
|
{ deep: !0, immediate: !0 }
|
|
1476
1487
|
), Re(
|
|
@@ -1481,20 +1492,20 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1481
1492
|
},
|
|
1482
1493
|
{ immediate: !0, deep: !0 }
|
|
1483
1494
|
), Re(
|
|
1484
|
-
() =>
|
|
1495
|
+
() => u == null ? void 0 : u.value,
|
|
1485
1496
|
async () => {
|
|
1486
|
-
var f, c, D,
|
|
1487
|
-
if (
|
|
1497
|
+
var f, c, D, I;
|
|
1498
|
+
if (u != null && u.value && ((f = u == null ? void 0 : u.value) == null ? void 0 : f.length) > 0 && !k.value && !((c = Ae.value) != null && c.find((A) => (A == null ? void 0 : A.name) === "输入") && ((D = Ae.value) != null && D.find((A) => (A == null ? void 0 : A.name) === "输出")))) {
|
|
1488
1499
|
let A = [];
|
|
1489
|
-
const B = await ((
|
|
1500
|
+
const B = await ((I = tt(u == null ? void 0 : u.value)) == null ? void 0 : I.map(async (y) => {
|
|
1490
1501
|
var ve, _e, Se, ue, x, Pe, Ee, Ne, Ie, Ve;
|
|
1491
1502
|
let le, ce;
|
|
1492
1503
|
const M = (_e = (ve = y == null ? void 0 : y.blob) == null ? void 0 : ve.split("undefined,")) == null ? void 0 : _e[1];
|
|
1493
1504
|
let he = M == null ? void 0 : M.split(",");
|
|
1494
1505
|
if ((he == null ? void 0 : he.length) > 1) {
|
|
1495
|
-
let De = await (he == null ? void 0 : he.map(async (
|
|
1496
|
-
var W, it,
|
|
1497
|
-
le = await
|
|
1506
|
+
let De = await (he == null ? void 0 : he.map(async (ne) => {
|
|
1507
|
+
var W, it, Le, ye, z, Te;
|
|
1508
|
+
le = await ge.get(ne, {
|
|
1498
1509
|
responseType: "blob",
|
|
1499
1510
|
headers: {
|
|
1500
1511
|
"Content-Type": "application/json"
|
|
@@ -1502,8 +1513,8 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1502
1513
|
});
|
|
1503
1514
|
let de = [];
|
|
1504
1515
|
if (((W = y == null ? void 0 : y.mtlBlobs) == null ? void 0 : W.length) > 0) {
|
|
1505
|
-
let Xe = await ((it = y == null ? void 0 : y.mtlBlobs) == null ? void 0 : it.map(async (
|
|
1506
|
-
let Ye = await
|
|
1516
|
+
let Xe = await ((it = y == null ? void 0 : y.mtlBlobs) == null ? void 0 : it.map(async (se) => {
|
|
1517
|
+
let Ye = await ge.get(se, {
|
|
1507
1518
|
responseType: "blob",
|
|
1508
1519
|
headers: {
|
|
1509
1520
|
"Content-Type": "application/json"
|
|
@@ -1515,8 +1526,8 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1515
1526
|
}));
|
|
1516
1527
|
await Promise.all(Xe);
|
|
1517
1528
|
}
|
|
1518
|
-
return ((ye =
|
|
1519
|
-
suffix: "." + ((Te =
|
|
1529
|
+
return ((ye = ne == null ? void 0 : ne.split(".")) == null ? void 0 : ye[((Le = ne == null ? void 0 : ne.split(".")) == null ? void 0 : Le.length) - 1]) !== "undefined" && A.push({
|
|
1530
|
+
suffix: "." + ((Te = ne == null ? void 0 : ne.split(".")) == null ? void 0 : Te[((z = ne == null ? void 0 : ne.split(".")) == null ? void 0 : z.length) - 1]),
|
|
1520
1531
|
blob: new Blob([le.data], {
|
|
1521
1532
|
type: "application/octet-stream;charset=UTF-8"
|
|
1522
1533
|
}),
|
|
@@ -1530,7 +1541,7 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1530
1541
|
});
|
|
1531
1542
|
let De = [];
|
|
1532
1543
|
if (((Se = y == null ? void 0 : y.mtlBlobs) == null ? void 0 : Se.length) > 0) {
|
|
1533
|
-
let
|
|
1544
|
+
let ne = await ((ue = y == null ? void 0 : y.mtlBlobs) == null ? void 0 : ue.map(async (de) => {
|
|
1534
1545
|
let W = await Ut({
|
|
1535
1546
|
url: de
|
|
1536
1547
|
});
|
|
@@ -1538,7 +1549,7 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1538
1549
|
type: "application/octet-stream;charset=UTF-8"
|
|
1539
1550
|
})), W;
|
|
1540
1551
|
}));
|
|
1541
|
-
await Promise.all(
|
|
1552
|
+
await Promise.all(ne);
|
|
1542
1553
|
}
|
|
1543
1554
|
ce = {
|
|
1544
1555
|
suffix: "." + ((Pe = M == null ? void 0 : M.split(".")) == null ? void 0 : Pe[((x = M == null ? void 0 : M.split(".")) == null ? void 0 : x.length) - 1]),
|
|
@@ -1548,7 +1559,7 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1548
1559
|
mtlBlobs: De
|
|
1549
1560
|
};
|
|
1550
1561
|
} else {
|
|
1551
|
-
le = await
|
|
1562
|
+
le = await ge.get(M, {
|
|
1552
1563
|
responseType: "blob",
|
|
1553
1564
|
headers: {
|
|
1554
1565
|
"Content-Type": "application/json"
|
|
@@ -1556,8 +1567,8 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1556
1567
|
});
|
|
1557
1568
|
let De = [];
|
|
1558
1569
|
if (((Ee = y == null ? void 0 : y.mtlBlobs) == null ? void 0 : Ee.length) > 0) {
|
|
1559
|
-
let
|
|
1560
|
-
let W = await
|
|
1570
|
+
let ne = await ((Ne = y == null ? void 0 : y.mtlBlobs) == null ? void 0 : Ne.map(async (de) => {
|
|
1571
|
+
let W = await ge.get(de, {
|
|
1561
1572
|
responseType: "blob",
|
|
1562
1573
|
headers: {
|
|
1563
1574
|
"Content-Type": "application/json"
|
|
@@ -1567,7 +1578,7 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1567
1578
|
type: "application/octet-stream;charset=UTF-8"
|
|
1568
1579
|
})), W;
|
|
1569
1580
|
}));
|
|
1570
|
-
await Promise.all(
|
|
1581
|
+
await Promise.all(ne);
|
|
1571
1582
|
}
|
|
1572
1583
|
ce = {
|
|
1573
1584
|
suffix: "." + ((Ve = M == null ? void 0 : M.split(".")) == null ? void 0 : Ve[((Ie = M == null ? void 0 : M.split(".")) == null ? void 0 : Ie.length) - 1]),
|
|
@@ -1586,10 +1597,10 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1586
1597
|
), Re(
|
|
1587
1598
|
() => $.value,
|
|
1588
1599
|
async () => {
|
|
1589
|
-
var c, D,
|
|
1600
|
+
var c, D, I, A;
|
|
1590
1601
|
if ($.value !== "" && $.value) {
|
|
1591
1602
|
let B = (c = S.value) == null ? void 0 : c.split("/"), y = B[(B == null ? void 0 : B.length) - 2];
|
|
1592
|
-
const ce = (((D = j == null ? void 0 : j.find((_e) => (_e == null ? void 0 : _e.key) === y)) == null ? void 0 : D.download) ?? "") + "/" + $.value, M = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), he = await
|
|
1603
|
+
const ce = (((D = j == null ? void 0 : j.find((_e) => (_e == null ? void 0 : _e.key) === y)) == null ? void 0 : D.download) ?? "") + "/" + $.value, M = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), he = await ge.post(ce, null, {
|
|
1593
1604
|
responseType: "blob",
|
|
1594
1605
|
// 必须设置
|
|
1595
1606
|
headers: {
|
|
@@ -1603,7 +1614,7 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1603
1614
|
});
|
|
1604
1615
|
const ve = [
|
|
1605
1616
|
{
|
|
1606
|
-
suffix: "." + ((A = (
|
|
1617
|
+
suffix: "." + ((A = (I = $.value) == null ? void 0 : I.split(".")) == null ? void 0 : A[1]),
|
|
1607
1618
|
blob: f,
|
|
1608
1619
|
mtlBlobs: []
|
|
1609
1620
|
}
|
|
@@ -1614,19 +1625,19 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1614
1625
|
{ deep: !0, immediate: !0 }
|
|
1615
1626
|
);
|
|
1616
1627
|
const $e = async () => {
|
|
1617
|
-
var le, ce, M, he, ve, _e, Se, ue, x, Pe, Ee, Ne, Ie, Ve, De,
|
|
1628
|
+
var le, ce, M, he, ve, _e, Se, ue, x, Pe, Ee, Ne, Ie, Ve, De, ne, de;
|
|
1618
1629
|
o.value = !0;
|
|
1619
1630
|
let f = (le = S.value) == null ? void 0 : le.split("/"), c = f[(f == null ? void 0 : f.length) - 2];
|
|
1620
1631
|
const D = ((ce = j == null ? void 0 : j.find((W) => (W == null ? void 0 : W.key) === c)) == null ? void 0 : ce.value) ?? "";
|
|
1621
|
-
let
|
|
1622
|
-
const A = await
|
|
1632
|
+
let I = "";
|
|
1633
|
+
const A = await ge.post("http://139.196.154.85:20024/api/sysAuth/login", {
|
|
1623
1634
|
account: "superadmin",
|
|
1624
1635
|
password: "9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",
|
|
1625
1636
|
codeId: 0,
|
|
1626
1637
|
code: ""
|
|
1627
1638
|
});
|
|
1628
|
-
((M = A == null ? void 0 : A.data) == null ? void 0 : M.code) === 200 && (
|
|
1629
|
-
const B =
|
|
1639
|
+
((M = A == null ? void 0 : A.data) == null ? void 0 : M.code) === 200 && (I = `Bearer ${(ve = (he = A.data) == null ? void 0 : he.result) == null ? void 0 : ve.accessToken}`, sessionStorage.setItem("magicToken", I));
|
|
1640
|
+
const B = I === "" ? "123456" : I, y = await ge.post(D, null, {
|
|
1630
1641
|
headers: {
|
|
1631
1642
|
Authorization: B,
|
|
1632
1643
|
baseURL: "http://139.196.154.85:20025",
|
|
@@ -1634,7 +1645,7 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1634
1645
|
}
|
|
1635
1646
|
});
|
|
1636
1647
|
if (((_e = y == null ? void 0 : y.data) == null ? void 0 : _e.type) === "success" && Nt((ue = (Se = y == null ? void 0 : y.data) == null ? void 0 : Se.result) == null ? void 0 : ue.result)) {
|
|
1637
|
-
const W = (Ie = (Ne = (Ee = JSON.parse((Pe = (x = y == null ? void 0 : y.data) == null ? void 0 : x.result) == null ? void 0 : Pe.result)) == null ? void 0 : Ee.lines_file_paths) == null ? void 0 : Ne[0]) == null ? void 0 : Ie.split("\\"),
|
|
1648
|
+
const W = (Ie = (Ne = (Ee = JSON.parse((Pe = (x = y == null ? void 0 : y.data) == null ? void 0 : x.result) == null ? void 0 : Pe.result)) == null ? void 0 : Ee.lines_file_paths) == null ? void 0 : Ne[0]) == null ? void 0 : Ie.split("\\"), Le = (((Ve = j == null ? void 0 : j.find((z) => (z == null ? void 0 : z.key) === c)) == null ? void 0 : Ve.resources) ?? "") + "/" + (((W == null ? void 0 : W[(W == null ? void 0 : W.length) - 2]) === "inputResources" ? "outputResources" : W == null ? void 0 : W[(W == null ? void 0 : W.length) - 2]) ?? "outputResources"), ye = await ge.post(Le, null, {
|
|
1638
1649
|
headers: {
|
|
1639
1650
|
Authorization: B,
|
|
1640
1651
|
baseURL: "http://139.196.154.85:20025",
|
|
@@ -1642,22 +1653,22 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1642
1653
|
}
|
|
1643
1654
|
});
|
|
1644
1655
|
if (((De = ye == null ? void 0 : ye.data) == null ? void 0 : De.type) === "success") {
|
|
1645
|
-
const z = (
|
|
1656
|
+
const z = (ne = ye == null ? void 0 : ye.data) == null ? void 0 : ne.result, Te = Ae.value, Xe = await ((de = tt(Te)) == null ? void 0 : de.map(async (se) => {
|
|
1646
1657
|
var Ye, lt, rt, we, Z, Ue;
|
|
1647
|
-
if ((
|
|
1648
|
-
if ((
|
|
1649
|
-
|
|
1658
|
+
if ((se == null ? void 0 : se.name) === "输出") {
|
|
1659
|
+
if ((se == null ? void 0 : se.comp) === "Table")
|
|
1660
|
+
se.compData = (Ye = se == null ? void 0 : se.compData) == null ? void 0 : Ye.map((F) => {
|
|
1650
1661
|
var q, Ce;
|
|
1651
1662
|
return (F == null ? void 0 : F.key) === "tableContents" && (F.contents = (Ce = (q = F == null ? void 0 : F.contents) == null ? void 0 : q.map((re) => (re = re == null ? void 0 : re.map((U, be) => {
|
|
1652
|
-
var
|
|
1653
|
-
return typeof U == "string" && be > 1 ? ((
|
|
1663
|
+
var me, He, We;
|
|
1664
|
+
return typeof U == "string" && be > 1 ? ((me = F == null ? void 0 : F.contents) == null ? void 0 : me.length) > 1 ? U = ((He = z == null ? void 0 : z[be - 1]) != null && He.includes("input") ? U : z == null ? void 0 : z[be - 1]) ?? U : U = z == null ? void 0 : z[0] : U = ((We = z == null ? void 0 : z[be - 1]) != null && We.includes("input") ? U : z == null ? void 0 : z[be - 1]) ?? U, U;
|
|
1654
1665
|
}), re))) == null ? void 0 : Ce.filter((re, U) => U <= (z == null ? void 0 : z.length) - 1)), F;
|
|
1655
1666
|
});
|
|
1656
|
-
else if ((
|
|
1667
|
+
else if ((se == null ? void 0 : se.comp) === "Form") {
|
|
1657
1668
|
let F = "";
|
|
1658
1669
|
if (z == null || z.forEach((q) => {
|
|
1659
1670
|
F = F === "" ? F + q : F + "," + q;
|
|
1660
|
-
}),
|
|
1671
|
+
}), se.compData = (lt = se == null ? void 0 : se.compData) == null ? void 0 : lt.map((q) => {
|
|
1661
1672
|
var Ce;
|
|
1662
1673
|
return (q == null ? void 0 : q.key) === "formContent" && (q.contents = (Ce = q.contents) == null ? void 0 : Ce.map((re) => (re.value = F, re))), q;
|
|
1663
1674
|
}), (rt = F == null ? void 0 : F.split(",")) != null && rt.find((q) => q.includes(".obj"))) {
|
|
@@ -1665,9 +1676,9 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1665
1676
|
q.suffix = ".obj";
|
|
1666
1677
|
const Ce = [];
|
|
1667
1678
|
let re = await ((Z = (we = F == null ? void 0 : F.split(",")) == null ? void 0 : we.filter((U) => U.includes(".obj") || U.includes(".mtl"))) == null ? void 0 : Z.map(async (U) => {
|
|
1668
|
-
var
|
|
1679
|
+
var me, He;
|
|
1669
1680
|
if (U.includes(".obj")) {
|
|
1670
|
-
const ct = (((
|
|
1681
|
+
const ct = (((me = j == null ? void 0 : j.find((Ke) => (Ke == null ? void 0 : Ke.key) === c)) == null ? void 0 : me.download) ?? "") + "/" + U, qe = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), Ge = await ge.post(ct, null, {
|
|
1671
1682
|
responseType: "blob",
|
|
1672
1683
|
// 必须设置
|
|
1673
1684
|
headers: {
|
|
@@ -1681,7 +1692,7 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1681
1692
|
});
|
|
1682
1693
|
q.blob = be;
|
|
1683
1694
|
} else if (U.includes(".mtl")) {
|
|
1684
|
-
const ct = (((He = j == null ? void 0 : j.find((Ct) => (Ct == null ? void 0 : Ct.key) === c)) == null ? void 0 : He.download) ?? "") + "/" + U, qe = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), Ge = await
|
|
1695
|
+
const ct = (((He = j == null ? void 0 : j.find((Ct) => (Ct == null ? void 0 : Ct.key) === c)) == null ? void 0 : He.download) ?? "") + "/" + U, qe = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), Ge = await ge.post(ct, null, {
|
|
1685
1696
|
responseType: "blob",
|
|
1686
1697
|
// 必须设置
|
|
1687
1698
|
headers: {
|
|
@@ -1703,7 +1714,7 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1703
1714
|
var qe, Ge;
|
|
1704
1715
|
let U = {};
|
|
1705
1716
|
U.suffix = "." + ((qe = re == null ? void 0 : re.split(".")) == null ? void 0 : qe[1]);
|
|
1706
|
-
const
|
|
1717
|
+
const me = (((Ge = j == null ? void 0 : j.find((Ke) => (Ke == null ? void 0 : Ke.key) === c)) == null ? void 0 : Ge.download) ?? "") + "/" + re, He = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), We = await ge.post(me, null, {
|
|
1707
1718
|
responseType: "blob",
|
|
1708
1719
|
// 必须设置
|
|
1709
1720
|
headers: {
|
|
@@ -1721,7 +1732,7 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1721
1732
|
}
|
|
1722
1733
|
}
|
|
1723
1734
|
}
|
|
1724
|
-
return
|
|
1735
|
+
return se;
|
|
1725
1736
|
}));
|
|
1726
1737
|
Ae.value = await Promise.all(Xe);
|
|
1727
1738
|
}
|
|
@@ -1741,22 +1752,22 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1741
1752
|
const c = URL.createObjectURL(f), D = document.createElement("a");
|
|
1742
1753
|
D.href = c, D.download = "file.txt", document.body.appendChild(D), D.click(), document.body.removeChild(D), URL.revokeObjectURL(c), s.value = !1;
|
|
1743
1754
|
}, vt = async () => {
|
|
1744
|
-
var le, ce, M, he, ve, _e, Se, ue, x, Pe, Ee, Ne, Ie, Ve, De,
|
|
1755
|
+
var le, ce, M, he, ve, _e, Se, ue, x, Pe, Ee, Ne, Ie, Ve, De, ne;
|
|
1745
1756
|
s.value = !0;
|
|
1746
1757
|
let f = (le = S.value) == null ? void 0 : le.split("/"), c = f[(f == null ? void 0 : f.length) - 2];
|
|
1747
1758
|
const D = ((ce = j == null ? void 0 : j.find((de) => (de == null ? void 0 : de.key) === c)) == null ? void 0 : ce.value) ?? "";
|
|
1748
|
-
let
|
|
1749
|
-
const A = await
|
|
1759
|
+
let I = "";
|
|
1760
|
+
const A = await ge.post("http://139.196.154.85:20024/api/sysAuth/login", {
|
|
1750
1761
|
account: "superadmin",
|
|
1751
1762
|
password: "9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",
|
|
1752
1763
|
codeId: 0,
|
|
1753
1764
|
code: ""
|
|
1754
1765
|
});
|
|
1755
1766
|
if (((M = A == null ? void 0 : A.data) == null ? void 0 : M.code) === 200)
|
|
1756
|
-
|
|
1767
|
+
I = `Bearer ${(ve = (he = A.data) == null ? void 0 : he.result) == null ? void 0 : ve.accessToken}`, sessionStorage.setItem("magicToken", I);
|
|
1757
1768
|
else
|
|
1758
1769
|
throw kt.error("响应出错了"), new Error("响应出错了");
|
|
1759
|
-
const B =
|
|
1770
|
+
const B = I === "" ? "123456" : I, y = await ge.post(D, null, {
|
|
1760
1771
|
headers: {
|
|
1761
1772
|
Authorization: B,
|
|
1762
1773
|
baseURL: "http://139.196.154.85:20025",
|
|
@@ -1765,17 +1776,17 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1765
1776
|
});
|
|
1766
1777
|
if (((_e = y == null ? void 0 : y.data) == null ? void 0 : _e.code) === 200) {
|
|
1767
1778
|
if (Nt((ue = (Se = y == null ? void 0 : y.data) == null ? void 0 : Se.result) == null ? void 0 : ue.result)) {
|
|
1768
|
-
const de = (Ie = (Ne = (Ee = JSON.parse((Pe = (x = y == null ? void 0 : y.data) == null ? void 0 : x.result) == null ? void 0 : Pe.result)) == null ? void 0 : Ee.lines_file_paths) == null ? void 0 : Ne[0]) == null ? void 0 : Ie.split("\\"), it = (((Ve = j == null ? void 0 : j.find((ye) => (ye == null ? void 0 : ye.key) === c)) == null ? void 0 : Ve.resources) ?? "") + "/" + ((de == null ? void 0 : de[(de == null ? void 0 : de.length) - 2]) ?? "outputResources"),
|
|
1779
|
+
const de = (Ie = (Ne = (Ee = JSON.parse((Pe = (x = y == null ? void 0 : y.data) == null ? void 0 : x.result) == null ? void 0 : Pe.result)) == null ? void 0 : Ee.lines_file_paths) == null ? void 0 : Ne[0]) == null ? void 0 : Ie.split("\\"), it = (((Ve = j == null ? void 0 : j.find((ye) => (ye == null ? void 0 : ye.key) === c)) == null ? void 0 : Ve.resources) ?? "") + "/" + ((de == null ? void 0 : de[(de == null ? void 0 : de.length) - 2]) ?? "outputResources"), Le = await ge.post(it, null, {
|
|
1769
1780
|
headers: {
|
|
1770
1781
|
Authorization: B,
|
|
1771
1782
|
baseURL: "http://139.196.154.85:20025",
|
|
1772
1783
|
"Content-Type": "multipart/form-data"
|
|
1773
1784
|
}
|
|
1774
1785
|
});
|
|
1775
|
-
if (((De =
|
|
1776
|
-
const ye = (
|
|
1786
|
+
if (((De = Le == null ? void 0 : Le.data) == null ? void 0 : De.code) === 200) {
|
|
1787
|
+
const ye = (ne = Le == null ? void 0 : Le.data) == null ? void 0 : ne.result, z = tt(Ae.value);
|
|
1777
1788
|
z == null || z.map(async (Te) => {
|
|
1778
|
-
var Xe,
|
|
1789
|
+
var Xe, se, Ye, lt, rt;
|
|
1779
1790
|
if ((Te == null ? void 0 : Te.name) === "输出" && (Te == null ? void 0 : Te.comp) === "Form") {
|
|
1780
1791
|
let we = "";
|
|
1781
1792
|
ye == null || ye.forEach((Z) => {
|
|
@@ -1783,10 +1794,10 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1783
1794
|
}), Te.compData = (Xe = Te == null ? void 0 : Te.compData) == null ? void 0 : Xe.map((Z) => {
|
|
1784
1795
|
var Ue;
|
|
1785
1796
|
return (Z == null ? void 0 : Z.key) === "formContent" && (Z.contents = (Ue = Z.contents) == null ? void 0 : Ue.map((F) => (F.value = we, F))), Z;
|
|
1786
|
-
}), (
|
|
1797
|
+
}), (se = we == null ? void 0 : we.split(",")) != null && se.find((Z) => Z.includes(".obj")) ? (lt = (Ye = we == null ? void 0 : we.split(",")) == null ? void 0 : Ye.filter((Z) => Z.includes(".obj") || Z.includes(".mtl"))) == null || lt.map(async (Z) => {
|
|
1787
1798
|
var Ue, F;
|
|
1788
1799
|
if (Z.includes(".obj")) {
|
|
1789
|
-
const Ce = (((Ue = j == null ? void 0 : j.find((
|
|
1800
|
+
const Ce = (((Ue = j == null ? void 0 : j.find((me) => (me == null ? void 0 : me.key) === c)) == null ? void 0 : Ue.download) ?? "") + "/" + Z, re = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), U = await ge.post(Ce, null, {
|
|
1790
1801
|
responseType: "blob",
|
|
1791
1802
|
// 必须设置
|
|
1792
1803
|
headers: {
|
|
@@ -1800,7 +1811,7 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1800
1811
|
});
|
|
1801
1812
|
st(be);
|
|
1802
1813
|
} else if (Z.includes(".mtl")) {
|
|
1803
|
-
const Ce = (((F = j == null ? void 0 : j.find((
|
|
1814
|
+
const Ce = (((F = j == null ? void 0 : j.find((me) => (me == null ? void 0 : me.key) === c)) == null ? void 0 : F.download) ?? "") + "/" + Z, re = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), U = await ge.post(Ce, null, {
|
|
1804
1815
|
responseType: "blob",
|
|
1805
1816
|
// 必须设置
|
|
1806
1817
|
headers: {
|
|
@@ -1817,7 +1828,7 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1817
1828
|
}) : (rt = we == null ? void 0 : we.split(",")) == null || rt.map(async (Z) => {
|
|
1818
1829
|
var U, be;
|
|
1819
1830
|
"" + ((U = Z == null ? void 0 : Z.split(".")) == null ? void 0 : U[1]);
|
|
1820
|
-
const F = (((be = j == null ? void 0 : j.find((
|
|
1831
|
+
const F = (((be = j == null ? void 0 : j.find((me) => (me == null ? void 0 : me.key) === c)) == null ? void 0 : be.download) ?? "") + "/" + Z, q = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), Ce = await ge.post(F, null, {
|
|
1821
1832
|
responseType: "blob",
|
|
1822
1833
|
// 必须设置
|
|
1823
1834
|
headers: {
|
|
@@ -1840,18 +1851,18 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1840
1851
|
throw kt.error("响应出错了"), new Error("响应出错了");
|
|
1841
1852
|
};
|
|
1842
1853
|
return (f, c) => {
|
|
1843
|
-
const D =
|
|
1844
|
-
return i(
|
|
1854
|
+
const D = ee("el-button"), I = ee("el-avatar"), A = ee("el-header"), B = ee("el-container"), y = ee("el-icon"), le = ee("el-input"), ce = ee("el-aside"), M = ee("el-collapse-item"), he = ee("el-collapse"), ve = ee("el-main"), _e = ee("router-view"), Se = Zt("loading");
|
|
1855
|
+
return i(V) === "edit" ? (v(), J(B, {
|
|
1845
1856
|
key: 0,
|
|
1846
1857
|
class: "client-container"
|
|
1847
1858
|
}, {
|
|
1848
1859
|
default: w(() => [
|
|
1849
|
-
|
|
1860
|
+
p(A, { class: "client-structure-header" }, {
|
|
1850
1861
|
default: w(() => {
|
|
1851
1862
|
var ue;
|
|
1852
1863
|
return [
|
|
1853
|
-
|
|
1854
|
-
|
|
1864
|
+
h("div", Ha, [
|
|
1865
|
+
p(D, {
|
|
1855
1866
|
id: "transparentBgButton",
|
|
1856
1867
|
onClick: i(Wt)
|
|
1857
1868
|
}, {
|
|
@@ -1861,7 +1872,7 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1861
1872
|
_: 1,
|
|
1862
1873
|
__: [5]
|
|
1863
1874
|
}, 8, ["onClick"]),
|
|
1864
|
-
|
|
1875
|
+
p(D, {
|
|
1865
1876
|
id: "transparentBgButton",
|
|
1866
1877
|
onClick: c[0] || (c[0] = (x) => {
|
|
1867
1878
|
var Pe, Ee;
|
|
@@ -1869,7 +1880,7 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1869
1880
|
})
|
|
1870
1881
|
}, {
|
|
1871
1882
|
icon: w(() => [
|
|
1872
|
-
|
|
1883
|
+
p(Oe, { name: "Store" })
|
|
1873
1884
|
]),
|
|
1874
1885
|
default: w(() => [
|
|
1875
1886
|
c[6] || (c[6] = Me(" 保存页面 "))
|
|
@@ -1878,23 +1889,23 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1878
1889
|
__: [6]
|
|
1879
1890
|
})
|
|
1880
1891
|
]),
|
|
1881
|
-
|
|
1882
|
-
(v(),
|
|
1892
|
+
h("div", Ka, [
|
|
1893
|
+
(v(), J(ro, {
|
|
1883
1894
|
key: i(l),
|
|
1884
1895
|
breadArray: i(l),
|
|
1885
1896
|
onClick: i(Gt)
|
|
1886
1897
|
}, null, 8, ["breadArray", "onClick"]))
|
|
1887
1898
|
]),
|
|
1888
|
-
|
|
1899
|
+
h("div", Za, [
|
|
1889
1900
|
nt(f.$slots, "default", {}, void 0, !0),
|
|
1890
|
-
|
|
1901
|
+
p(I, {
|
|
1891
1902
|
size: 35,
|
|
1892
1903
|
src: (ue = i(ie)) == null ? void 0 : ue.avatarUrl
|
|
1893
1904
|
}, {
|
|
1894
1905
|
default: w(() => {
|
|
1895
1906
|
var x;
|
|
1896
1907
|
return [
|
|
1897
|
-
Me(
|
|
1908
|
+
Me(ze(((x = i(ie)) == null ? void 0 : x.account) ?? "未知"), 1)
|
|
1898
1909
|
];
|
|
1899
1910
|
}),
|
|
1900
1911
|
_: 1
|
|
@@ -1904,48 +1915,48 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1904
1915
|
}),
|
|
1905
1916
|
_: 3
|
|
1906
1917
|
}),
|
|
1907
|
-
i(
|
|
1918
|
+
i(V) === "edit" ? (v(), J(B, {
|
|
1908
1919
|
key: 0,
|
|
1909
1920
|
class: "model-operate",
|
|
1910
1921
|
style: { "margin-top": "10px", height: "0px" }
|
|
1911
1922
|
}, {
|
|
1912
1923
|
default: w(() => [
|
|
1913
|
-
|
|
1914
|
-
|
|
1924
|
+
h("div", Xa, [
|
|
1925
|
+
p(Dt)
|
|
1915
1926
|
]),
|
|
1916
|
-
|
|
1917
|
-
|
|
1927
|
+
h("div", Wa, [
|
|
1928
|
+
p(Rt)
|
|
1918
1929
|
]),
|
|
1919
|
-
|
|
1920
|
-
|
|
1930
|
+
h("div", qa, [
|
|
1931
|
+
p(At)
|
|
1921
1932
|
])
|
|
1922
1933
|
]),
|
|
1923
1934
|
_: 1
|
|
1924
|
-
})) :
|
|
1935
|
+
})) : pe("", !0)
|
|
1925
1936
|
]),
|
|
1926
1937
|
_: 3
|
|
1927
|
-
})) : Qe((v(),
|
|
1938
|
+
})) : Qe((v(), J(B, {
|
|
1928
1939
|
key: 1,
|
|
1929
1940
|
class: "client-container",
|
|
1930
1941
|
"element-loading-text": "正在加载页面数据..."
|
|
1931
1942
|
}, {
|
|
1932
1943
|
default: w(() => [
|
|
1933
|
-
|
|
1944
|
+
p(A, { class: "client-header" }, {
|
|
1934
1945
|
default: w(() => {
|
|
1935
1946
|
var ue;
|
|
1936
1947
|
return [
|
|
1937
|
-
|
|
1938
|
-
|
|
1948
|
+
h("div", Ga, [
|
|
1949
|
+
p(Oe, {
|
|
1939
1950
|
name: "logo",
|
|
1940
1951
|
style: { width: "clamp(18px, 1.5rem, 24px)", height: "clamp(18px, 1.5rem, 24px)", "margin-right": "8px" }
|
|
1941
1952
|
}),
|
|
1942
|
-
Me(" " +
|
|
1953
|
+
Me(" " + ze(i(Y) === "" ? "CPMPIP" : i(Y)), 1)
|
|
1943
1954
|
]),
|
|
1944
|
-
|
|
1945
|
-
|
|
1955
|
+
h("div", Ja, [
|
|
1956
|
+
p(lo, { mode: "horizontal" })
|
|
1946
1957
|
]),
|
|
1947
|
-
|
|
1948
|
-
|
|
1958
|
+
h("div", Qa, [
|
|
1959
|
+
p(le, {
|
|
1949
1960
|
modelValue: ke.value,
|
|
1950
1961
|
"onUpdate:modelValue": c[1] || (c[1] = (x) => ke.value = x),
|
|
1951
1962
|
clearable: "",
|
|
@@ -1953,48 +1964,51 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
1953
1964
|
style: { width: "130px" }
|
|
1954
1965
|
}, {
|
|
1955
1966
|
prefix: w(() => [
|
|
1956
|
-
|
|
1967
|
+
p(y, { class: "el-input__icon" }, {
|
|
1957
1968
|
default: w(() => [
|
|
1958
|
-
|
|
1969
|
+
p(i(so))
|
|
1959
1970
|
]),
|
|
1960
1971
|
_: 1
|
|
1961
1972
|
})
|
|
1962
1973
|
]),
|
|
1963
1974
|
_: 1
|
|
1964
1975
|
}, 8, ["modelValue"]),
|
|
1965
|
-
|
|
1976
|
+
a.showButton ? (v(), J(D, {
|
|
1977
|
+
key: 0,
|
|
1978
|
+
id: "transparentBgButton"
|
|
1979
|
+
}, {
|
|
1966
1980
|
icon: w(() => [
|
|
1967
|
-
|
|
1981
|
+
p(Oe, { name: "App" })
|
|
1968
1982
|
]),
|
|
1969
1983
|
default: w(() => [
|
|
1970
1984
|
c[7] || (c[7] = Me(" 生成APP "))
|
|
1971
1985
|
]),
|
|
1972
1986
|
_: 1,
|
|
1973
1987
|
__: [7]
|
|
1974
|
-
}),
|
|
1975
|
-
i(
|
|
1976
|
-
key:
|
|
1988
|
+
})) : pe("", !0),
|
|
1989
|
+
a.showButton && i(V) === "view" ? (v(), J(D, {
|
|
1990
|
+
key: 1,
|
|
1977
1991
|
id: "transparentBgButton",
|
|
1978
1992
|
onClick: i(Jt)
|
|
1979
1993
|
}, {
|
|
1980
1994
|
icon: w(() => [
|
|
1981
|
-
|
|
1995
|
+
p(Oe, { name: "write" })
|
|
1982
1996
|
]),
|
|
1983
1997
|
default: w(() => [
|
|
1984
1998
|
c[8] || (c[8] = Me(" 修改布局 "))
|
|
1985
1999
|
]),
|
|
1986
2000
|
_: 1,
|
|
1987
2001
|
__: [8]
|
|
1988
|
-
}, 8, ["onClick"])) :
|
|
2002
|
+
}, 8, ["onClick"])) : pe("", !0),
|
|
1989
2003
|
nt(f.$slots, "default", {}, void 0, !0),
|
|
1990
|
-
|
|
2004
|
+
p(I, {
|
|
1991
2005
|
size: 35,
|
|
1992
2006
|
src: (ue = i(ie)) == null ? void 0 : ue.avatarUrl
|
|
1993
2007
|
}, {
|
|
1994
2008
|
default: w(() => {
|
|
1995
2009
|
var x;
|
|
1996
2010
|
return [
|
|
1997
|
-
Me(
|
|
2011
|
+
Me(ze(((x = i(ie)) == null ? void 0 : x.account) ?? "未知"), 1)
|
|
1998
2012
|
];
|
|
1999
2013
|
}),
|
|
2000
2014
|
_: 1
|
|
@@ -2004,14 +2018,14 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
2004
2018
|
}),
|
|
2005
2019
|
_: 3
|
|
2006
2020
|
}),
|
|
2007
|
-
|
|
2021
|
+
p(B, { class: "client-body" }, {
|
|
2008
2022
|
default: w(() => [
|
|
2009
|
-
f.$route.path === "/" ? (v(),
|
|
2023
|
+
f.$route.path === "/" ? (v(), J(ve, {
|
|
2010
2024
|
key: 0,
|
|
2011
2025
|
class: "client-main"
|
|
2012
2026
|
}, {
|
|
2013
2027
|
default: w(() => [
|
|
2014
|
-
|
|
2028
|
+
p(he, {
|
|
2015
2029
|
modelValue: R.value,
|
|
2016
2030
|
"onUpdate:modelValue": c[2] || (c[2] = (ue) => R.value = ue),
|
|
2017
2031
|
accordion: "",
|
|
@@ -2020,17 +2034,17 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
2020
2034
|
onChange: N
|
|
2021
2035
|
}, {
|
|
2022
2036
|
default: w(() => [
|
|
2023
|
-
|
|
2037
|
+
p(M, { name: "open" }, {
|
|
2024
2038
|
icon: w(() => [
|
|
2025
|
-
|
|
2039
|
+
p(Oe, {
|
|
2026
2040
|
name: R.value === "" ? "Right" : "Left",
|
|
2027
2041
|
style: { width: "20px", height: "20px" }
|
|
2028
2042
|
}, null, 8, ["name"])
|
|
2029
2043
|
]),
|
|
2030
2044
|
default: w(() => [
|
|
2031
|
-
|
|
2045
|
+
p(ce, { style: { width: "100%" } }, {
|
|
2032
2046
|
default: w(() => [
|
|
2033
|
-
|
|
2047
|
+
p(gt, { mode: "vertical" })
|
|
2034
2048
|
]),
|
|
2035
2049
|
_: 1
|
|
2036
2050
|
})
|
|
@@ -2040,15 +2054,15 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
2040
2054
|
]),
|
|
2041
2055
|
_: 1
|
|
2042
2056
|
}, 8, ["modelValue"]),
|
|
2043
|
-
|
|
2044
|
-
|
|
2057
|
+
h("div", en, [
|
|
2058
|
+
p(ka, {
|
|
2045
2059
|
isShow: O.value,
|
|
2046
2060
|
windowConfig: a.windowConfig,
|
|
2047
2061
|
ref_key: "threeModelRef",
|
|
2048
2062
|
ref: E
|
|
2049
2063
|
}, null, 8, ["isShow", "windowConfig"])
|
|
2050
2064
|
]),
|
|
2051
|
-
|
|
2065
|
+
p(he, {
|
|
2052
2066
|
modelValue: X.value,
|
|
2053
2067
|
"onUpdate:modelValue": c[4] || (c[4] = (ue) => X.value = ue),
|
|
2054
2068
|
accordion: "",
|
|
@@ -2057,9 +2071,9 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
2057
2071
|
onChange: wt
|
|
2058
2072
|
}, {
|
|
2059
2073
|
default: w(() => [
|
|
2060
|
-
|
|
2074
|
+
p(M, { name: "open" }, {
|
|
2061
2075
|
icon: w(() => [
|
|
2062
|
-
|
|
2076
|
+
p(Oe, {
|
|
2063
2077
|
name: X.value === "open" ? "Right" : "Left",
|
|
2064
2078
|
style: { width: "20px", height: "20px" }
|
|
2065
2079
|
}, null, 8, ["name"])
|
|
@@ -2067,8 +2081,8 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
2067
2081
|
default: w(() => {
|
|
2068
2082
|
var ue;
|
|
2069
2083
|
return [
|
|
2070
|
-
|
|
2071
|
-
|
|
2084
|
+
h("div", null, [
|
|
2085
|
+
p(Oe, {
|
|
2072
2086
|
class: "fold-icon",
|
|
2073
2087
|
name: m.value ? "Right" : "Left",
|
|
2074
2088
|
onClick: bt
|
|
@@ -2079,8 +2093,8 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
2079
2093
|
class: "item-view-content",
|
|
2080
2094
|
key: Pe
|
|
2081
2095
|
}, [
|
|
2082
|
-
((Ee = x == null ? void 0 : x.comp) == null ? void 0 : Ee.toUpperCase()) !== "TABLE" ? (v(), G("div", tn,
|
|
2083
|
-
(v(),
|
|
2096
|
+
((Ee = x == null ? void 0 : x.comp) == null ? void 0 : Ee.toUpperCase()) !== "TABLE" ? (v(), G("div", tn, ze(x.name), 1)) : pe("", !0),
|
|
2097
|
+
(v(), J(Xt(i(Qt)(x.comp)), {
|
|
2084
2098
|
compName: x.name,
|
|
2085
2099
|
itemData: x == null ? void 0 : x.compData,
|
|
2086
2100
|
childItemData: x == null ? void 0 : x.itemChildData,
|
|
@@ -2093,28 +2107,28 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
2093
2107
|
]);
|
|
2094
2108
|
}), 128)),
|
|
2095
2109
|
n.value ? (v(), G("div", on, [
|
|
2096
|
-
C.value ? (v(),
|
|
2110
|
+
C.value ? (v(), J(at, {
|
|
2097
2111
|
key: 0,
|
|
2098
2112
|
class: "calculator-content",
|
|
2099
2113
|
onClickTrigger: vt,
|
|
2100
2114
|
loading: s.value,
|
|
2101
2115
|
modelValue: "预览"
|
|
2102
|
-
}, null, 8, ["loading"])) :
|
|
2103
|
-
|
|
2116
|
+
}, null, 8, ["loading"])) : pe("", !0),
|
|
2117
|
+
p(at, {
|
|
2104
2118
|
class: "calculator-content",
|
|
2105
2119
|
onClickTrigger: c[3] || (c[3] = (x) => $e()),
|
|
2106
2120
|
loading: o.value,
|
|
2107
2121
|
modelValue: "调用方法"
|
|
2108
2122
|
}, null, 8, ["loading"])
|
|
2109
|
-
])) :
|
|
2123
|
+
])) : pe("", !0),
|
|
2110
2124
|
k.value ? (v(), G("div", an, [
|
|
2111
|
-
|
|
2125
|
+
p(at, {
|
|
2112
2126
|
class: "calculator-content",
|
|
2113
2127
|
modelValue: "执行方法",
|
|
2114
|
-
onClickTrigger:
|
|
2128
|
+
onClickTrigger: Q,
|
|
2115
2129
|
loading: _.value
|
|
2116
2130
|
}, null, 8, ["loading"])
|
|
2117
|
-
])) :
|
|
2131
|
+
])) : pe("", !0)
|
|
2118
2132
|
])
|
|
2119
2133
|
];
|
|
2120
2134
|
}),
|
|
@@ -2125,21 +2139,21 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
2125
2139
|
}, 8, ["modelValue"])
|
|
2126
2140
|
]),
|
|
2127
2141
|
_: 1
|
|
2128
|
-
})) : (v(),
|
|
2142
|
+
})) : (v(), J(ve, {
|
|
2129
2143
|
key: 1,
|
|
2130
2144
|
class: "client-router"
|
|
2131
2145
|
}, {
|
|
2132
2146
|
default: w(() => [
|
|
2133
|
-
|
|
2134
|
-
|
|
2147
|
+
h("div", nn, [
|
|
2148
|
+
p(ce, { width: "300px" }, {
|
|
2135
2149
|
default: w(() => [
|
|
2136
|
-
|
|
2150
|
+
p(gt, { mode: "vertical" })
|
|
2137
2151
|
]),
|
|
2138
2152
|
_: 1
|
|
2139
2153
|
})
|
|
2140
2154
|
]),
|
|
2141
|
-
|
|
2142
|
-
|
|
2155
|
+
h("div", sn, [
|
|
2156
|
+
p(_e)
|
|
2143
2157
|
])
|
|
2144
2158
|
]),
|
|
2145
2159
|
_: 1
|
|
@@ -2154,7 +2168,7 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
2154
2168
|
]);
|
|
2155
2169
|
};
|
|
2156
2170
|
}
|
|
2157
|
-
}), rn = /* @__PURE__ */ Ze(ln, [["__scopeId", "data-v-
|
|
2171
|
+
}), rn = /* @__PURE__ */ Ze(ln, [["__scopeId", "data-v-c267c970"]]), cn = { class: "system-wrap" }, hn = {
|
|
2158
2172
|
__name: "index",
|
|
2159
2173
|
props: {
|
|
2160
2174
|
windowConfig: {
|
|
@@ -2166,6 +2180,10 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
2166
2180
|
type: String,
|
|
2167
2181
|
default: "browser"
|
|
2168
2182
|
},
|
|
2183
|
+
showButton: {
|
|
2184
|
+
type: Boolean,
|
|
2185
|
+
default: !0
|
|
2186
|
+
},
|
|
2169
2187
|
content: String,
|
|
2170
2188
|
jsonContents: Array
|
|
2171
2189
|
},
|
|
@@ -2190,37 +2208,41 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
2190
2208
|
}, { immediate: !0 }), Re(
|
|
2191
2209
|
() => [n == null ? void 0 : n.content, n == null ? void 0 : n.jsonContents],
|
|
2192
2210
|
async () => {
|
|
2193
|
-
var $,
|
|
2211
|
+
var $, te, ie, oe;
|
|
2194
2212
|
if ((($ = n == null ? void 0 : n.jsonContents) == null ? void 0 : $.length) > 0) {
|
|
2195
2213
|
e.setOriginalData(n == null ? void 0 : n.jsonContents);
|
|
2196
2214
|
return;
|
|
2197
2215
|
}
|
|
2198
|
-
if (!(n != null && n.content) || ((
|
|
2216
|
+
if (!(n != null && n.content) || ((te = n == null ? void 0 : n.content) == null ? void 0 : te.length) === 0) return;
|
|
2199
2217
|
l.value = !0, o.setImportLoading(!0);
|
|
2200
2218
|
let T = [], k = [];
|
|
2201
|
-
t.setSelectTitle([]), t.setSelectIndex(""), t.setSelectMenu(""), (
|
|
2202
|
-
jo(
|
|
2219
|
+
t.setSelectTitle([]), t.setSelectIndex(""), t.setSelectMenu(""), (oe = (ie = n == null ? void 0 : n.content) == null ? void 0 : ie.filter((V) => V !== "")) == null || oe.forEach((V) => {
|
|
2220
|
+
jo(V) ? k.push(Oo(V)) : $t(V) ? k.push($t(V)) : It(V) ? k.push(It(V)) : k.push(mo(V));
|
|
2203
2221
|
}), T = k == null ? void 0 : k[0], await fo(T), await no(), e.setOriginalData(T), o.setImportLoading(!1);
|
|
2204
2222
|
},
|
|
2205
2223
|
{ deep: !0, immediate: !0 }
|
|
2206
2224
|
), (T, k) => (v(), G("div", cn, [
|
|
2207
|
-
a.platform === "browser" ? (v(),
|
|
2225
|
+
a.platform === "browser" ? (v(), J(Ya, {
|
|
2226
|
+
key: 0,
|
|
2227
|
+
showButton: a.showButton
|
|
2228
|
+
}, {
|
|
2208
2229
|
default: w(() => [
|
|
2209
2230
|
nt(T.$slots, "default", {}, void 0, !0)
|
|
2210
2231
|
]),
|
|
2211
2232
|
_: 3
|
|
2212
|
-
})) : (v(),
|
|
2233
|
+
}, 8, ["showButton"])) : (v(), J(rn, {
|
|
2213
2234
|
key: 1,
|
|
2214
|
-
windowConfig: a.windowConfig
|
|
2235
|
+
windowConfig: a.windowConfig,
|
|
2236
|
+
showButton: a.showButton
|
|
2215
2237
|
}, {
|
|
2216
2238
|
default: w(() => [
|
|
2217
2239
|
nt(T.$slots, "default", {}, void 0, !0)
|
|
2218
2240
|
]),
|
|
2219
2241
|
_: 3
|
|
2220
|
-
}, 8, ["windowConfig"]))
|
|
2242
|
+
}, 8, ["windowConfig", "showButton"]))
|
|
2221
2243
|
]));
|
|
2222
2244
|
}
|
|
2223
|
-
}, un = /* @__PURE__ */ Ze(hn, [["__scopeId", "data-v-
|
|
2245
|
+
}, un = /* @__PURE__ */ Ze(hn, [["__scopeId", "data-v-63e718b2"]]), dn = { class: "add-model-content" }, pn = {
|
|
2224
2246
|
key: 0,
|
|
2225
2247
|
class: "model-operate"
|
|
2226
2248
|
}, mn = { class: "model-select" }, fn = { class: "model-fill" }, gn = {
|
|
@@ -2252,7 +2274,7 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
2252
2274
|
},
|
|
2253
2275
|
emits: ["change", "contentChange"],
|
|
2254
2276
|
setup(a, { emit: e }) {
|
|
2255
|
-
const t = a, o = e, l = P([]), n = P([]), C = P([]), s = P(0), T = yt(Fe), k = _t(Fe), { itemData: $, originalData:
|
|
2277
|
+
const t = a, o = e, l = P([]), n = P([]), C = P([]), s = P(0), T = yt(Fe), k = _t(Fe), { itemData: $, originalData: te } = Be(T), { activeMenuPath: ie, platform: oe } = Be(k), V = P(null), K = P(0), r = P([]);
|
|
2256
2278
|
P("");
|
|
2257
2279
|
const b = P(0);
|
|
2258
2280
|
Re(
|
|
@@ -2265,16 +2287,16 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
2265
2287
|
immediate: !0
|
|
2266
2288
|
}
|
|
2267
2289
|
);
|
|
2268
|
-
const
|
|
2290
|
+
const u = (d) => {
|
|
2269
2291
|
o("contentChange", d);
|
|
2270
2292
|
}, E = (d) => {
|
|
2271
|
-
var
|
|
2272
|
-
const S = (
|
|
2273
|
-
var
|
|
2274
|
-
return (O == null ? void 0 : O.comp) === "Form" && (O.compData = (
|
|
2293
|
+
var Y;
|
|
2294
|
+
const S = (Y = tt(d == null ? void 0 : d.wholeValue)) == null ? void 0 : Y.map((O) => {
|
|
2295
|
+
var Q;
|
|
2296
|
+
return (O == null ? void 0 : O.comp) === "Form" && (O.compData = (Q = O.compData) == null ? void 0 : Q.map((ae) => ((ae == null ? void 0 : ae.key) === "formContent" && (ae.contents = zo(ae == null ? void 0 : ae.contents)), ae))), O;
|
|
2275
2297
|
});
|
|
2276
2298
|
o("change", {
|
|
2277
|
-
originalContents:
|
|
2299
|
+
originalContents: te.value,
|
|
2278
2300
|
currentContents: d == null ? void 0 : d.wholeValue,
|
|
2279
2301
|
editContent: d == null ? void 0 : d.editValue,
|
|
2280
2302
|
arrayToContents: S
|
|
@@ -2288,23 +2310,23 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
2288
2310
|
{ deep: !0, immediate: !0 }
|
|
2289
2311
|
);
|
|
2290
2312
|
const g = () => {
|
|
2291
|
-
|
|
2313
|
+
V.value.click();
|
|
2292
2314
|
}, _ = async (d) => {
|
|
2293
2315
|
const S = d.target.files;
|
|
2294
2316
|
if (!S) return;
|
|
2295
2317
|
new FileReader(), l.value = [], n.value = [], b.value = S.length;
|
|
2296
|
-
const
|
|
2297
|
-
const
|
|
2298
|
-
|
|
2318
|
+
const Y = Array.from(S).map(async (O) => await new Promise((Q) => {
|
|
2319
|
+
const ae = new FileReader();
|
|
2320
|
+
ae.onload = ($e) => {
|
|
2299
2321
|
try {
|
|
2300
|
-
n.value.push($e.target.result),
|
|
2322
|
+
n.value.push($e.target.result), K.value++;
|
|
2301
2323
|
} catch (ke) {
|
|
2302
2324
|
console.error("解析失败:", ke);
|
|
2303
2325
|
return;
|
|
2304
2326
|
}
|
|
2305
|
-
},
|
|
2327
|
+
}, ae.onerror = () => Q(`读取 ${O.name} 失败`), ae.readAsText(O), d.target.value = "", V.value = null;
|
|
2306
2328
|
}));
|
|
2307
|
-
await Promise.all(
|
|
2329
|
+
await Promise.all(Y);
|
|
2308
2330
|
};
|
|
2309
2331
|
return Re(
|
|
2310
2332
|
() => [t == null ? void 0 : t.content, t == null ? void 0 : t.jsonContents],
|
|
@@ -2313,54 +2335,55 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
2313
2335
|
},
|
|
2314
2336
|
{ deep: !0, immediate: !0 }
|
|
2315
2337
|
), Re(
|
|
2316
|
-
() =>
|
|
2338
|
+
() => K.value,
|
|
2317
2339
|
() => {
|
|
2318
2340
|
var d;
|
|
2319
2341
|
((d = r.value) == null ? void 0 : d.length) !== 0 && (T.setOriginalData(r.value), T.setItemData(r.value));
|
|
2320
2342
|
},
|
|
2321
2343
|
{ deep: !0, immediate: !0 }
|
|
2322
2344
|
), (d, S) => {
|
|
2323
|
-
const
|
|
2345
|
+
const Y = ee("svg-icon"), O = ee("el-button");
|
|
2324
2346
|
return v(), G("div", dn, [
|
|
2325
2347
|
(t == null ? void 0 : t.mode) === "edit" ? (v(), G("div", pn, [
|
|
2326
|
-
|
|
2327
|
-
|
|
2348
|
+
h("div", mn, [
|
|
2349
|
+
p(Dt)
|
|
2328
2350
|
]),
|
|
2329
2351
|
(v(), G("div", {
|
|
2330
2352
|
class: "model-show",
|
|
2331
2353
|
key: s.value
|
|
2332
2354
|
}, [
|
|
2333
|
-
|
|
2355
|
+
p(Rt)
|
|
2334
2356
|
])),
|
|
2335
|
-
|
|
2336
|
-
|
|
2357
|
+
h("div", fn, [
|
|
2358
|
+
p(At)
|
|
2337
2359
|
])
|
|
2338
|
-
])) :
|
|
2360
|
+
])) : pe("", !0),
|
|
2339
2361
|
(t == null ? void 0 : t.mode) === "view" ? (v(), G("div", gn, [
|
|
2340
|
-
(v(),
|
|
2341
|
-
|
|
2362
|
+
(v(), J(un, {
|
|
2363
|
+
showButton: a.showButton,
|
|
2364
|
+
platform: i(oe),
|
|
2342
2365
|
content: l.value,
|
|
2343
2366
|
onChange: E,
|
|
2344
2367
|
jsonContents: C.value,
|
|
2345
|
-
onContentChange:
|
|
2368
|
+
onContentChange: u,
|
|
2346
2369
|
key: s.value
|
|
2347
2370
|
}, {
|
|
2348
2371
|
default: w(() => {
|
|
2349
|
-
var
|
|
2372
|
+
var Q;
|
|
2350
2373
|
return [
|
|
2351
|
-
((
|
|
2374
|
+
((Q = t == null ? void 0 : t.jsonContents) == null ? void 0 : Q.length) === 0 && (t != null && t.showButton) ? (v(), J(O, {
|
|
2352
2375
|
key: 0,
|
|
2353
2376
|
id: "transparentBgButton",
|
|
2354
2377
|
onClick: g
|
|
2355
2378
|
}, {
|
|
2356
2379
|
icon: w(() => [
|
|
2357
|
-
|
|
2380
|
+
p(Y, { name: "import" })
|
|
2358
2381
|
]),
|
|
2359
2382
|
default: w(() => [
|
|
2360
|
-
|
|
2383
|
+
h("input", {
|
|
2361
2384
|
type: "file",
|
|
2362
2385
|
ref_key: "fileInput",
|
|
2363
|
-
ref:
|
|
2386
|
+
ref: V,
|
|
2364
2387
|
accept: ".txt, .inm",
|
|
2365
2388
|
onChange: _,
|
|
2366
2389
|
style: { display: "none" },
|
|
@@ -2370,16 +2393,16 @@ const lo = /* @__PURE__ */ Ze(po, [["render", Pa], ["__scopeId", "data-v-5c2d7ed
|
|
|
2370
2393
|
]),
|
|
2371
2394
|
_: 1,
|
|
2372
2395
|
__: [0]
|
|
2373
|
-
})) :
|
|
2396
|
+
})) : pe("", !0)
|
|
2374
2397
|
];
|
|
2375
2398
|
}),
|
|
2376
2399
|
_: 1
|
|
2377
|
-
}, 8, ["platform", "content", "jsonContents"]))
|
|
2378
|
-
])) :
|
|
2400
|
+
}, 8, ["showButton", "platform", "content", "jsonContents"]))
|
|
2401
|
+
])) : pe("", !0)
|
|
2379
2402
|
]);
|
|
2380
2403
|
};
|
|
2381
2404
|
}
|
|
2382
|
-
}, Ln = /* @__PURE__ */ Ze(_n, [["__scopeId", "data-v-
|
|
2405
|
+
}, Ln = /* @__PURE__ */ Ze(_n, [["__scopeId", "data-v-14b5611b"]]);
|
|
2383
2406
|
export {
|
|
2384
2407
|
Ln as default
|
|
2385
2408
|
};
|