ss-component-new 1.3.658 → 1.3.660
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/_plugin-vue_export-helper-BZ_eTSzz.js +16638 -0
- package/dist/config.js +1 -1
- package/dist/{index-ChNfRlIP.js → index-BofWylNB.js} +42 -18
- package/dist/index-C5rFKP3J.js +1042 -0
- package/dist/index-CLw1Ncst.js +181 -0
- package/dist/index-Cz0F1nRr.js +8236 -0
- package/dist/index-p2dYw5GI.js +49 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-DwbHXtUp.js → index.vue_vue_type_script_setup_true_lang-DRzriV-s.js} +2 -2
- package/dist/ss-component.css +2 -8
- package/dist/ss-component.js +214 -67
- package/dist/ss-component2.js +15 -75
- package/dist/ss-component3.js +785 -9
- package/package.json +4 -4
- package/public/config.js +1 -1
- package/dist/MTLLoader-DI0avKtj.js +0 -657
- package/dist/URDFLoader-PUxvYFDe.js +0 -2304
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/animationData-05aVUytq.js +0 -83
- package/dist/array-ZM04o_us.js +0 -1044
- package/dist/clone-Ddn1p6-1.js +0 -8
- package/dist/eleIcon-BWVKfp5t.js +0 -29
- package/dist/iconfont-BNdGaGPn.js +0 -1018
- package/dist/icons/svg/Update.svg +0 -1
- package/dist/icons/svg/functionList.svg +0 -1
- package/dist/icons/svg/uploadCopy.svg +0 -1
- package/dist/index-9ruiIh9Q.js +0 -30
- package/dist/index-BAenzdfB.js +0 -83
- package/dist/index-BDhIWgKn.js +0 -658
- package/dist/index-BFqUz4pN.js +0 -52
- package/dist/index-BIAWyba9.js +0 -2623
- package/dist/index-BKJ5SfU0.js +0 -98
- package/dist/index-BMr09Ruf.js +0 -107
- package/dist/index-BOGJMjxF.js +0 -117
- package/dist/index-BP1mKUQP.js +0 -627
- package/dist/index-BczRQX8N.js +0 -407
- package/dist/index-BnrvtCYj.js +0 -55
- package/dist/index-Bpr501oZ.js +0 -78
- package/dist/index-Bs7vFXNW.js +0 -93
- package/dist/index-BvbZiTVB.js +0 -342
- package/dist/index-Bvvz41NY.js +0 -44
- package/dist/index-C2YKgxwc.js +0 -61990
- package/dist/index-C9DBY1gg.js +0 -103
- package/dist/index-CFFbhR3G.js +0 -996
- package/dist/index-COr2mcbl.js +0 -48
- package/dist/index-CV_jQDcg.js +0 -9
- package/dist/index-CXe4q28L.js +0 -447
- package/dist/index-CsxH-GEh.js +0 -24847
- package/dist/index-D-5v1Jx7.js +0 -93
- package/dist/index-D4LcEpQ7.js +0 -619
- package/dist/index-DGObzWyL.js +0 -8984
- package/dist/index-DJ59jXR0.js +0 -28483
- package/dist/index-DJrzqi4-.js +0 -209
- package/dist/index-D_kI6aHR.js +0 -98
- package/dist/index-Ddhx18T9.js +0 -864
- package/dist/index-Dr9Wt5nC.js +0 -84
- package/dist/index-Dwt0Wlg_.js +0 -201
- package/dist/index-EGwObkob.js +0 -468
- package/dist/index-WPJbEuld.js +0 -62
- package/dist/index-YVR3acYT.js +0 -61
- package/dist/index-dD-mKgue.js +0 -27
- package/dist/index-lHjuVdOp.js +0 -11773
- package/dist/index-uF-ibwG0.js +0 -9
- package/dist/index.vue_vue_type_style_index_0_scoped_39e1db95_lang-CG9X8aa2.js +0 -137728
- package/dist/isString-CoCw_sp3.js +0 -8
- package/dist/localIcon-CoJHw5ss.js +0 -76
- package/dist/main-Bs7Y7gDm.js +0 -502
- package/dist/menuIndex-Dt0NyAyE.js +0 -159
- package/dist/request-DiogHwkN.js +0 -9465
- package/dist/threeModel-C3x2TmUN.js +0 -1108
- package/dist/threePreview-BHLSA5YS.js +0 -2259
- package/dist/threeSceneView-mfAIunaw.js +0 -1289
- package/dist/threeSceneViewForCPMPIP-DrnsTNPv.js +0 -538
- package/dist/threeTrackPathView-BR8-g2Tr.js +0 -620
- package/dist/threeViewerHost-DbJCLcbz.js +0 -233
- package/dist/urdfTree-IEJgkVzs.js +0 -254
- package/dist/workpieceTreePanel-aZV2ut3W.js +0 -555
- package/public/icons/svg/Update.svg +0 -1
- package/public/icons/svg/functionList.svg +0 -1
- package/public/icons/svg/uploadCopy.svg +0 -1
- /package/dist/icons/svg/{tableClose.svg → table-close.svg} +0 -0
- /package/dist/icons/svg/{tableExpand.svg → table-expand.svg} +0 -0
- /package/public/icons/svg/{tableClose.svg → table-close.svg} +0 -0
- /package/public/icons/svg/{tableExpand.svg → table-expand.svg} +0 -0
package/dist/index-BczRQX8N.js
DELETED
|
@@ -1,407 +0,0 @@
|
|
|
1
|
-
import { defineComponent as x, ref as I, reactive as T, resolveComponent as v, openBlock as E, createElementBlock as U, createVNode as u, withCtx as d, createElementVNode as l, createTextVNode as h, toDisplayString as z, nextTick as N, Fragment as q, renderSlot as H, withDirectives as $, vShow as M } from "vue";
|
|
2
|
-
import { aj as V } from "./index.vue_vue_type_style_index_0_scoped_39e1db95_lang-CG9X8aa2.js";
|
|
3
|
-
import { aD as X, az as J, ao as G, a7 as D, ab as c, ac as R, ar as g } from "./request-DiogHwkN.js";
|
|
4
|
-
import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
const K = "ElUpload";
|
|
6
|
-
class Q extends Error {
|
|
7
|
-
constructor(r, o, n, p) {
|
|
8
|
-
super(r), this.name = "UploadAjaxError", this.status = o, this.method = n, this.url = p;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
function B(t, r, o) {
|
|
12
|
-
let n;
|
|
13
|
-
return o.response ? n = `${o.response.error || o.response}` : o.responseText ? n = `${o.responseText}` : n = `fail to ${r.method} ${t} ${o.status}`, new Q(n, o.status, r.method, t);
|
|
14
|
-
}
|
|
15
|
-
function W(t) {
|
|
16
|
-
const r = t.responseText || t.response;
|
|
17
|
-
if (!r)
|
|
18
|
-
return r;
|
|
19
|
-
try {
|
|
20
|
-
return JSON.parse(r);
|
|
21
|
-
} catch {
|
|
22
|
-
return r;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
const Y = (t) => {
|
|
26
|
-
typeof XMLHttpRequest > "u" && X(K, "XMLHttpRequest is undefined");
|
|
27
|
-
const r = new XMLHttpRequest(), o = t.action;
|
|
28
|
-
r.upload && r.upload.addEventListener("progress", (e) => {
|
|
29
|
-
const i = e;
|
|
30
|
-
i.percent = e.total > 0 ? e.loaded / e.total * 100 : 0, t.onProgress(i);
|
|
31
|
-
});
|
|
32
|
-
const n = new FormData();
|
|
33
|
-
if (t.data)
|
|
34
|
-
for (const [e, i] of Object.entries(t.data))
|
|
35
|
-
J(i) && i.length ? n.append(e, ...i) : n.append(e, i);
|
|
36
|
-
n.append(t.filename, t.file, t.file.name), r.addEventListener("error", () => {
|
|
37
|
-
t.onError(B(o, t, r));
|
|
38
|
-
}), r.addEventListener("load", () => {
|
|
39
|
-
if (r.status < 200 || r.status >= 300)
|
|
40
|
-
return t.onError(B(o, t, r));
|
|
41
|
-
t.onSuccess(W(r));
|
|
42
|
-
}), r.open(t.method, o, !0), t.withCredentials && "withCredentials" in r && (r.withCredentials = !0);
|
|
43
|
-
const p = t.headers || {};
|
|
44
|
-
if (p instanceof Headers)
|
|
45
|
-
p.forEach((e, i) => r.setRequestHeader(i, e));
|
|
46
|
-
else
|
|
47
|
-
for (const [e, i] of Object.entries(p))
|
|
48
|
-
G(i) || r.setRequestHeader(e, String(i));
|
|
49
|
-
return r.send(n), r;
|
|
50
|
-
}, Z = ["text", "picture", "picture-card"];
|
|
51
|
-
let ee = 1;
|
|
52
|
-
const te = () => Date.now() + ee++, re = D({
|
|
53
|
-
action: {
|
|
54
|
-
type: String,
|
|
55
|
-
default: "#"
|
|
56
|
-
},
|
|
57
|
-
headers: {
|
|
58
|
-
type: c(Object)
|
|
59
|
-
},
|
|
60
|
-
method: {
|
|
61
|
-
type: String,
|
|
62
|
-
default: "post"
|
|
63
|
-
},
|
|
64
|
-
data: {
|
|
65
|
-
type: c([Object, Function, Promise]),
|
|
66
|
-
default: () => R({})
|
|
67
|
-
},
|
|
68
|
-
multiple: Boolean,
|
|
69
|
-
name: {
|
|
70
|
-
type: String,
|
|
71
|
-
default: "file"
|
|
72
|
-
},
|
|
73
|
-
drag: Boolean,
|
|
74
|
-
withCredentials: Boolean,
|
|
75
|
-
showFileList: {
|
|
76
|
-
type: Boolean,
|
|
77
|
-
default: !0
|
|
78
|
-
},
|
|
79
|
-
accept: {
|
|
80
|
-
type: String,
|
|
81
|
-
default: ""
|
|
82
|
-
},
|
|
83
|
-
fileList: {
|
|
84
|
-
type: c(Array),
|
|
85
|
-
default: () => R([])
|
|
86
|
-
},
|
|
87
|
-
autoUpload: {
|
|
88
|
-
type: Boolean,
|
|
89
|
-
default: !0
|
|
90
|
-
},
|
|
91
|
-
listType: {
|
|
92
|
-
type: String,
|
|
93
|
-
values: Z,
|
|
94
|
-
default: "text"
|
|
95
|
-
},
|
|
96
|
-
httpRequest: {
|
|
97
|
-
type: c(Function),
|
|
98
|
-
default: Y
|
|
99
|
-
},
|
|
100
|
-
disabled: Boolean,
|
|
101
|
-
limit: Number
|
|
102
|
-
}), Ce = D({
|
|
103
|
-
...re,
|
|
104
|
-
beforeUpload: {
|
|
105
|
-
type: c(Function),
|
|
106
|
-
default: g
|
|
107
|
-
},
|
|
108
|
-
beforeRemove: {
|
|
109
|
-
type: c(Function)
|
|
110
|
-
},
|
|
111
|
-
onRemove: {
|
|
112
|
-
type: c(Function),
|
|
113
|
-
default: g
|
|
114
|
-
},
|
|
115
|
-
onChange: {
|
|
116
|
-
type: c(Function),
|
|
117
|
-
default: g
|
|
118
|
-
},
|
|
119
|
-
onPreview: {
|
|
120
|
-
type: c(Function),
|
|
121
|
-
default: g
|
|
122
|
-
},
|
|
123
|
-
onSuccess: {
|
|
124
|
-
type: c(Function),
|
|
125
|
-
default: g
|
|
126
|
-
},
|
|
127
|
-
onProgress: {
|
|
128
|
-
type: c(Function),
|
|
129
|
-
default: g
|
|
130
|
-
},
|
|
131
|
-
onError: {
|
|
132
|
-
type: c(Function),
|
|
133
|
-
default: g
|
|
134
|
-
},
|
|
135
|
-
onExceed: {
|
|
136
|
-
type: c(Function),
|
|
137
|
-
default: g
|
|
138
|
-
},
|
|
139
|
-
crossorigin: {
|
|
140
|
-
type: c(String)
|
|
141
|
-
}
|
|
142
|
-
}), ae = { style: { "text-align": "left" } }, oe = { class: "cropper-warp" }, se = { class: "cropper-warp-left" }, ne = ["src"], le = { class: "cropper-warp-right" }, ie = { class: "cropper-warp-right-item" }, ce = { class: "cropper-warp-right-value" }, pe = ["src"], de = { class: "cropper-warp-right-item" }, ue = { class: "cropper-warp-right-value" }, fe = ["src"], ge = { class: "dialog-footer" }, me = /* @__PURE__ */ x({
|
|
143
|
-
__name: "index",
|
|
144
|
-
props: {
|
|
145
|
-
title: {
|
|
146
|
-
type: String,
|
|
147
|
-
default: ""
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
emits: ["submitImage", "deleteImage"],
|
|
151
|
-
setup(t, { expose: r, emit: o }) {
|
|
152
|
-
const n = o, p = I(), e = T({
|
|
153
|
-
isShowDialog: !1,
|
|
154
|
-
cropperImg: "",
|
|
155
|
-
cropperImgBase64: "",
|
|
156
|
-
cropper: null
|
|
157
|
-
}), i = async (s) => {
|
|
158
|
-
if (e.isShowDialog = !0, !s) return;
|
|
159
|
-
let a = window.URL || window.webkitURL;
|
|
160
|
-
e.cropperImg = a.createObjectURL(s), N(() => {
|
|
161
|
-
k();
|
|
162
|
-
});
|
|
163
|
-
}, y = () => {
|
|
164
|
-
var s;
|
|
165
|
-
(s = e.cropper) == null || s.destroy(), e.isShowDialog = !1;
|
|
166
|
-
}, w = () => {
|
|
167
|
-
y();
|
|
168
|
-
}, b = async () => {
|
|
169
|
-
const s = await S();
|
|
170
|
-
n("submitImage", { file: s }), y();
|
|
171
|
-
}, f = async () => {
|
|
172
|
-
n("deleteImage");
|
|
173
|
-
}, k = () => {
|
|
174
|
-
const s = document.querySelector(".cropper-warp-left-img");
|
|
175
|
-
s && s.setAttribute("crossOrigin", "anonymous"), e.cropper = new V(s, {
|
|
176
|
-
viewMode: 1,
|
|
177
|
-
dragMode: "none",
|
|
178
|
-
initialAspectRatio: 1,
|
|
179
|
-
aspectRatio: 1,
|
|
180
|
-
preview: ".before",
|
|
181
|
-
background: !0,
|
|
182
|
-
autoCropArea: 1,
|
|
183
|
-
// zoomOnWheel: false,
|
|
184
|
-
checkCrossOrigin: !1,
|
|
185
|
-
crop: () => {
|
|
186
|
-
e.cropperImgBase64 = e.cropper.getCroppedCanvas().toDataURL("image/jpeg");
|
|
187
|
-
}
|
|
188
|
-
});
|
|
189
|
-
}, S = async () => e != null && e.cropper ? new Promise((s) => {
|
|
190
|
-
var a, m;
|
|
191
|
-
(m = (a = e == null ? void 0 : e.cropper) == null ? void 0 : a.getCroppedCanvas()) == null || m.toBlob((C) => {
|
|
192
|
-
s(C);
|
|
193
|
-
});
|
|
194
|
-
}) : (await fetch(e.cropperImg)).blob(), F = async (s) => {
|
|
195
|
-
var m;
|
|
196
|
-
let a = window.URL || window.webkitURL;
|
|
197
|
-
e.cropperImg = a.createObjectURL(s.raw), (m = e.cropper) == null || m.replace(e.cropperImg);
|
|
198
|
-
}, P = (s) => {
|
|
199
|
-
p.value.clearFiles();
|
|
200
|
-
const a = s[0];
|
|
201
|
-
a.uid = te(), p.value.handleStart(a);
|
|
202
|
-
};
|
|
203
|
-
return r({
|
|
204
|
-
openDialog: i
|
|
205
|
-
}), (s, a) => {
|
|
206
|
-
const m = v("ele-Edit"), C = v("el-icon"), _ = v("el-button"), j = v("el-upload"), O = v("el-dialog");
|
|
207
|
-
return E(), U("div", null, [
|
|
208
|
-
u(O, {
|
|
209
|
-
modelValue: e.isShowDialog,
|
|
210
|
-
"onUpdate:modelValue": a[0] || (a[0] = (A) => e.isShowDialog = A),
|
|
211
|
-
width: "769px",
|
|
212
|
-
"before-close": w
|
|
213
|
-
}, {
|
|
214
|
-
header: d(() => [
|
|
215
|
-
l("div", ae, [
|
|
216
|
-
u(C, {
|
|
217
|
-
size: "16",
|
|
218
|
-
style: { "margin-right": "3px", display: "inline", "vertical-align": "middle" }
|
|
219
|
-
}, {
|
|
220
|
-
default: d(() => [
|
|
221
|
-
u(m)
|
|
222
|
-
]),
|
|
223
|
-
_: 1
|
|
224
|
-
}),
|
|
225
|
-
l("span", null, z(t.title), 1)
|
|
226
|
-
])
|
|
227
|
-
]),
|
|
228
|
-
footer: d(() => [
|
|
229
|
-
l("span", ge, [
|
|
230
|
-
u(j, {
|
|
231
|
-
class: "avatar-uploader",
|
|
232
|
-
ref_key: "uploadSignRef",
|
|
233
|
-
ref: p,
|
|
234
|
-
accept: ".jpg,.png",
|
|
235
|
-
limit: 1,
|
|
236
|
-
"show-file-list": !1,
|
|
237
|
-
"auto-upload": !1,
|
|
238
|
-
"on-change": F,
|
|
239
|
-
"on-exceed": P
|
|
240
|
-
}, {
|
|
241
|
-
trigger: d(() => [
|
|
242
|
-
u(_, {
|
|
243
|
-
type: "info",
|
|
244
|
-
icon: "ele-Picture"
|
|
245
|
-
}, {
|
|
246
|
-
default: d(() => [...a[4] || (a[4] = [
|
|
247
|
-
h("选择图片", -1)
|
|
248
|
-
])]),
|
|
249
|
-
_: 1
|
|
250
|
-
})
|
|
251
|
-
]),
|
|
252
|
-
default: d(() => [
|
|
253
|
-
u(_, {
|
|
254
|
-
onClick: f,
|
|
255
|
-
type: "danger",
|
|
256
|
-
icon: "ele-Picture",
|
|
257
|
-
style: { "margin-left": "8px" }
|
|
258
|
-
}, {
|
|
259
|
-
default: d(() => [...a[5] || (a[5] = [
|
|
260
|
-
h("删除图片", -1)
|
|
261
|
-
])]),
|
|
262
|
-
_: 1
|
|
263
|
-
})
|
|
264
|
-
]),
|
|
265
|
-
_: 1
|
|
266
|
-
}, 512),
|
|
267
|
-
l("div", null, [
|
|
268
|
-
u(_, {
|
|
269
|
-
onClick: w,
|
|
270
|
-
id: "themeBorderButton"
|
|
271
|
-
}, {
|
|
272
|
-
default: d(() => [...a[6] || (a[6] = [
|
|
273
|
-
h("取 消", -1)
|
|
274
|
-
])]),
|
|
275
|
-
_: 1
|
|
276
|
-
}),
|
|
277
|
-
u(_, {
|
|
278
|
-
onClick: b,
|
|
279
|
-
id: "themeButton"
|
|
280
|
-
}, {
|
|
281
|
-
default: d(() => [...a[7] || (a[7] = [
|
|
282
|
-
h("确 定", -1)
|
|
283
|
-
])]),
|
|
284
|
-
_: 1
|
|
285
|
-
})
|
|
286
|
-
])
|
|
287
|
-
])
|
|
288
|
-
]),
|
|
289
|
-
default: d(() => [
|
|
290
|
-
l("div", oe, [
|
|
291
|
-
l("div", se, [
|
|
292
|
-
l("img", {
|
|
293
|
-
src: e.cropperImg,
|
|
294
|
-
class: "cropper-warp-left-img"
|
|
295
|
-
}, null, 8, ne)
|
|
296
|
-
]),
|
|
297
|
-
l("div", le, [
|
|
298
|
-
a[3] || (a[3] = l("div", { class: "cropper-warp-right-title" }, "预览", -1)),
|
|
299
|
-
l("div", ie, [
|
|
300
|
-
l("div", ce, [
|
|
301
|
-
l("img", {
|
|
302
|
-
src: e.cropperImgBase64,
|
|
303
|
-
class: "cropper-warp-right-value-img"
|
|
304
|
-
}, null, 8, pe)
|
|
305
|
-
]),
|
|
306
|
-
a[1] || (a[1] = l("div", { class: "cropper-warp-right-label" }, "100 x 100", -1))
|
|
307
|
-
]),
|
|
308
|
-
l("div", de, [
|
|
309
|
-
l("div", ue, [
|
|
310
|
-
l("img", {
|
|
311
|
-
src: e.cropperImgBase64,
|
|
312
|
-
class: "cropper-warp-right-value-img cropper-size"
|
|
313
|
-
}, null, 8, fe)
|
|
314
|
-
]),
|
|
315
|
-
a[2] || (a[2] = l("div", { class: "cropper-warp-right-label" }, "50 x 50", -1))
|
|
316
|
-
])
|
|
317
|
-
])
|
|
318
|
-
])
|
|
319
|
-
]),
|
|
320
|
-
_: 1
|
|
321
|
-
}, 8, ["modelValue"])
|
|
322
|
-
]);
|
|
323
|
-
};
|
|
324
|
-
}
|
|
325
|
-
}), ve = /* @__PURE__ */ L(me, [["__scopeId", "data-v-4a19ffcf"]]), ye = /* @__PURE__ */ x({
|
|
326
|
-
__name: "index",
|
|
327
|
-
props: {
|
|
328
|
-
avatarUrl: {
|
|
329
|
-
type: String,
|
|
330
|
-
default: ""
|
|
331
|
-
},
|
|
332
|
-
avatarBlob: {
|
|
333
|
-
type: Blob,
|
|
334
|
-
default: ""
|
|
335
|
-
},
|
|
336
|
-
size: {
|
|
337
|
-
type: [String, Number],
|
|
338
|
-
default: "large"
|
|
339
|
-
},
|
|
340
|
-
showCropper: {
|
|
341
|
-
type: Boolean,
|
|
342
|
-
default: !0
|
|
343
|
-
},
|
|
344
|
-
banClick: {
|
|
345
|
-
type: Boolean,
|
|
346
|
-
default: !1
|
|
347
|
-
},
|
|
348
|
-
clickStop: {
|
|
349
|
-
type: Boolean,
|
|
350
|
-
default: !0
|
|
351
|
-
}
|
|
352
|
-
},
|
|
353
|
-
emits: ["submitImage", "deleteImage", "clickAvatar"],
|
|
354
|
-
setup(t, { emit: r }) {
|
|
355
|
-
const o = t, n = I(), p = I(null), e = r, i = () => !0, y = async () => {
|
|
356
|
-
var f;
|
|
357
|
-
o != null && o.banClick || (e("clickAvatar", o.avatarUrl), (f = n.value) == null || f.openDialog(o.avatarBlob));
|
|
358
|
-
}, w = async (f) => {
|
|
359
|
-
e("submitImage", f);
|
|
360
|
-
}, b = async () => {
|
|
361
|
-
e("deleteImage");
|
|
362
|
-
};
|
|
363
|
-
return (f, k) => {
|
|
364
|
-
const S = v("el-avatar");
|
|
365
|
-
return E(), U(q, null, [
|
|
366
|
-
u(S, {
|
|
367
|
-
src: t.avatarUrl,
|
|
368
|
-
onClick: y,
|
|
369
|
-
fit: "cover",
|
|
370
|
-
size: t.size,
|
|
371
|
-
ref_key: "avatarRef",
|
|
372
|
-
ref: p,
|
|
373
|
-
style: { background: "var(--user-avatar-bg)" },
|
|
374
|
-
alt: "头像查找失败",
|
|
375
|
-
onError: i
|
|
376
|
-
}, {
|
|
377
|
-
default: d(() => [
|
|
378
|
-
H(f.$slots, "avatarDefault", {}, void 0, !0)
|
|
379
|
-
]),
|
|
380
|
-
_: 3
|
|
381
|
-
}, 8, ["src", "size"]),
|
|
382
|
-
$(u(ve, {
|
|
383
|
-
ref_key: "cropperDialogRef",
|
|
384
|
-
ref: n,
|
|
385
|
-
title: "更改头像",
|
|
386
|
-
avatarUrl: t.avatarUrl,
|
|
387
|
-
onSubmitImage: w,
|
|
388
|
-
onDeleteImage: b
|
|
389
|
-
}, null, 8, ["avatarUrl"]), [
|
|
390
|
-
[M, t.showCropper && (o == null ? void 0 : o.clickStop)]
|
|
391
|
-
])
|
|
392
|
-
], 64);
|
|
393
|
-
};
|
|
394
|
-
}
|
|
395
|
-
}), we = /* @__PURE__ */ L(ye, [["__scopeId", "data-v-82946fb9"]]), Ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
396
|
-
__proto__: null,
|
|
397
|
-
default: we
|
|
398
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
399
|
-
export {
|
|
400
|
-
we as A,
|
|
401
|
-
ve as C,
|
|
402
|
-
re as a,
|
|
403
|
-
Ce as b,
|
|
404
|
-
te as g,
|
|
405
|
-
Ie as i,
|
|
406
|
-
Z as u
|
|
407
|
-
};
|
package/dist/index-BnrvtCYj.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { f as P, h as C, d as L, b, p as N, i as R, s as T } from "./index-DGObzWyL.js";
|
|
2
|
-
import { E as k } from "./request-DiogHwkN.js";
|
|
3
|
-
const A = b(N), { isDefaultModel: D } = L(), E = async (c, a) => {
|
|
4
|
-
var l, n, r, i, s, d, g, p, f, _, y, h, S, w;
|
|
5
|
-
let e = Object.values(c), t = await P({
|
|
6
|
-
userName: (l = e == null ? void 0 : e[0]) == null ? void 0 : l.trim(),
|
|
7
|
-
password: (n = e == null ? void 0 : e[1]) == null ? void 0 : n.trim()
|
|
8
|
-
});
|
|
9
|
-
if (((r = t == null ? void 0 : t.data) == null ? void 0 : r.status) === 200 && ((s = (i = t == null ? void 0 : t.data) == null ? void 0 : i.result) == null ? void 0 : s.length) <= 0 && (t = await C({
|
|
10
|
-
userName: (d = e == null ? void 0 : e[0]) == null ? void 0 : d.trim(),
|
|
11
|
-
password: (g = e == null ? void 0 : e[1]) == null ? void 0 : g.trim(),
|
|
12
|
-
path: "系统管理/用户管理",
|
|
13
|
-
platId: a
|
|
14
|
-
})), ((p = t == null ? void 0 : t.data) == null ? void 0 : p.status) === 200 && ((_ = (f = t == null ? void 0 : t.data) == null ? void 0 : f.result) == null ? void 0 : _.length) > 0) {
|
|
15
|
-
const o = ((h = (y = t == null ? void 0 : t.data) == null ? void 0 : y.result) == null ? void 0 : h.find((M) => D(M))) || ((w = (S = t == null ? void 0 : t.data) == null ? void 0 : S.result) == null ? void 0 : w[0]);
|
|
16
|
-
sessionStorage.setItem("systemKey", a && a !== "" ? a : o == null ? void 0 : o.plat_id);
|
|
17
|
-
let m = o;
|
|
18
|
-
return m.plat_id = m.plat_id ?? a, A.setLoginUserInfo(m), A.setSystemKey(a && a !== "" ? a : o == null ? void 0 : o.plat_id), !0;
|
|
19
|
-
} else
|
|
20
|
-
return k.error("输入的密码错误,请重新输入"), !1;
|
|
21
|
-
}, K = b(N), { systemInfo: q, loginUserInfo: u } = T(K), O = async () => (sessionStorage.setItem("loginToken", "111"), !0), x = async () => (sessionStorage.setItem("magicToken", "123456"), !0), I = async (c) => {
|
|
22
|
-
var n, r, i;
|
|
23
|
-
let a = [E(c, (n = q.value) == null ? void 0 : n.plat_id), O(), x()];
|
|
24
|
-
const e = await Promise.all(a), t = e == null ? void 0 : e.every((s) => s);
|
|
25
|
-
let l = [
|
|
26
|
-
{
|
|
27
|
-
id: "1",
|
|
28
|
-
request_method: "Post",
|
|
29
|
-
request_url: "/platform/getdata",
|
|
30
|
-
request_param: JSON.stringify({
|
|
31
|
-
userName: "hjj",
|
|
32
|
-
password: "1"
|
|
33
|
-
}),
|
|
34
|
-
request_result: "{}",
|
|
35
|
-
is_delete: !1,
|
|
36
|
-
request_table: "admin_user",
|
|
37
|
-
request_type: "login"
|
|
38
|
-
}
|
|
39
|
-
];
|
|
40
|
-
try {
|
|
41
|
-
const s = ((r = u == null ? void 0 : u.value) == null ? void 0 : r.plat_id) || ((i = q.value) == null ? void 0 : i.plat_id);
|
|
42
|
-
return await R({
|
|
43
|
-
platId: parseInt(s),
|
|
44
|
-
changeContents: [{
|
|
45
|
-
tableName: "log",
|
|
46
|
-
tableContents: l
|
|
47
|
-
}]
|
|
48
|
-
}), t;
|
|
49
|
-
} catch {
|
|
50
|
-
return t;
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
export {
|
|
54
|
-
I as l
|
|
55
|
-
};
|
package/dist/index-Bpr501oZ.js
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { watch as n } from "vue";
|
|
2
|
-
import { s as o, b as p, p as u } from "./index-DGObzWyL.js";
|
|
3
|
-
import { s as r } from "./request-DiogHwkN.js";
|
|
4
|
-
const m = p(u), { systemUrl: a } = o(m);
|
|
5
|
-
let e = a.value === "" || !a.value ? "http://222.92.178.198:63002" : a.value;
|
|
6
|
-
n(
|
|
7
|
-
() => a.value,
|
|
8
|
-
() => {
|
|
9
|
-
e = a.value === "" || !a.value ? "http://222.92.178.198:63002" : a.value;
|
|
10
|
-
},
|
|
11
|
-
{ deep: !0, immediate: !0 }
|
|
12
|
-
);
|
|
13
|
-
function c(t) {
|
|
14
|
-
return r({
|
|
15
|
-
url: `${e}/platform/getdata_department_tree`,
|
|
16
|
-
method: "post",
|
|
17
|
-
data: t
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
function g(t) {
|
|
21
|
-
return r({
|
|
22
|
-
url: `${e}/platform/getdata_department`,
|
|
23
|
-
method: "post",
|
|
24
|
-
data: t
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
function h(t) {
|
|
28
|
-
return r({
|
|
29
|
-
url: `${e}/platform/createdata_department`,
|
|
30
|
-
method: "post",
|
|
31
|
-
data: t
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
function y(t) {
|
|
35
|
-
return r({
|
|
36
|
-
url: `${e}/platform/updatedata_department`,
|
|
37
|
-
method: "post",
|
|
38
|
-
data: t
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
function _(t) {
|
|
42
|
-
return r({
|
|
43
|
-
url: `${e}/platform/deletedata_department`,
|
|
44
|
-
method: "post",
|
|
45
|
-
data: t
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
function v(t) {
|
|
49
|
-
return r({
|
|
50
|
-
url: `${e}/platform/getdata_department`,
|
|
51
|
-
method: "post",
|
|
52
|
-
data: t
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
function s(t) {
|
|
56
|
-
return r({
|
|
57
|
-
url: `${e}/platform/getdata_department_type`,
|
|
58
|
-
method: "post",
|
|
59
|
-
data: t
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
async function l(t) {
|
|
63
|
-
return await s({
|
|
64
|
-
platId: t
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
async function $(t) {
|
|
68
|
-
return await l(t);
|
|
69
|
-
}
|
|
70
|
-
export {
|
|
71
|
-
c as a,
|
|
72
|
-
g as b,
|
|
73
|
-
h as c,
|
|
74
|
-
_ as d,
|
|
75
|
-
$ as e,
|
|
76
|
-
v as g,
|
|
77
|
-
y as u
|
|
78
|
-
};
|
package/dist/index-Bs7vFXNW.js
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { defineComponent as C, reactive as k, onMounted as D, resolveComponent as B, resolveDirective as T, openBlock as u, createElementBlock as y, createElementVNode as t, withDirectives as p, createVNode as o, unref as n, toDisplayString as r, createBlock as A } from "vue";
|
|
2
|
-
import { S as I, t as x, s as w, a as L } from "./index-BIAWyba9.js";
|
|
3
|
-
import "./index.vue_vue_type_style_index_0_scoped_39e1db95_lang-CG9X8aa2.js";
|
|
4
|
-
import "./index-dD-mKgue.js";
|
|
5
|
-
import { f as E } from "./index-CsxH-GEh.js";
|
|
6
|
-
import "./index-DJ59jXR0.js";
|
|
7
|
-
import { b as N, s as U } from "./index-DGObzWyL.js";
|
|
8
|
-
import "./request-DiogHwkN.js";
|
|
9
|
-
/* empty css */
|
|
10
|
-
import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
const z = { class: "personal-wrapper" }, F = { class: "personal-box left" }, H = { class: "base-avatar" }, K = { class: "center-avatar" }, M = { class: "base-info" }, R = { class: "base-signature" }, j = { class: "personal-box right" }, q = /* @__PURE__ */ C({
|
|
12
|
-
__name: "index",
|
|
13
|
-
setup(G) {
|
|
14
|
-
const e = k({ ...I }), S = N(), { loginUserInfo: s } = U(S);
|
|
15
|
-
return D(() => {
|
|
16
|
-
var l;
|
|
17
|
-
e.getUserTableHeadersAsync(), e.refreshLoginUserInfoAsync((l = s == null ? void 0 : s.value) == null ? void 0 : l.id), x.value++;
|
|
18
|
-
}), (l, a) => {
|
|
19
|
-
var g, m, _, v, f, b, h;
|
|
20
|
-
const i = B("svg-icon"), c = T("loading");
|
|
21
|
-
return u(), y("div", z, [
|
|
22
|
-
t("div", F, [
|
|
23
|
-
t("div", H, [
|
|
24
|
-
t("div", K, [
|
|
25
|
-
p(o(w, {
|
|
26
|
-
size: 100,
|
|
27
|
-
disabled: e.uploadDisabled,
|
|
28
|
-
userInfo: n(s),
|
|
29
|
-
onSubmitImage: a[0] || (a[0] = (d) => e.submitImageAsync("avatarUrl", d))
|
|
30
|
-
}, null, 8, ["disabled", "userInfo"]), [
|
|
31
|
-
[c, e.avatarLoading]
|
|
32
|
-
])
|
|
33
|
-
])
|
|
34
|
-
]),
|
|
35
|
-
t("div", M, [
|
|
36
|
-
t("div", null, [
|
|
37
|
-
o(i, {
|
|
38
|
-
name: "userAccount",
|
|
39
|
-
style: { width: "15px", height: "15px" }
|
|
40
|
-
}),
|
|
41
|
-
t("span", null, r(((g = n(s)) == null ? void 0 : g.account) || (((m = n(s)) == null ? void 0 : m.姓名) ?? "未知")), 1)
|
|
42
|
-
]),
|
|
43
|
-
t("div", null, [
|
|
44
|
-
o(i, {
|
|
45
|
-
name: "role",
|
|
46
|
-
style: { width: "15px", height: "15px" }
|
|
47
|
-
}),
|
|
48
|
-
t("span", null, r(((_ = n(s)) == null ? void 0 : _.layer) === "superAdmin" ? "超级管理员" : ((v = n(s)) == null ? void 0 : v.角色名称) ?? "未知"), 1)
|
|
49
|
-
]),
|
|
50
|
-
t("div", null, [
|
|
51
|
-
o(i, {
|
|
52
|
-
name: "dept",
|
|
53
|
-
style: { width: "15px", height: "15px" }
|
|
54
|
-
}),
|
|
55
|
-
t("span", null, r(((f = n(s)) == null ? void 0 : f.部门名称) ?? "未知"), 1)
|
|
56
|
-
]),
|
|
57
|
-
t("div", null, [
|
|
58
|
-
o(i, {
|
|
59
|
-
name: "status",
|
|
60
|
-
style: { width: "15px", height: "15px" }
|
|
61
|
-
}),
|
|
62
|
-
t("span", null, r(((b = n(s)) == null ? void 0 : b.layer) === "superAdmin" ? "启用" : ((h = n(s)) == null ? void 0 : h.状态) ?? "未知"), 1)
|
|
63
|
-
])
|
|
64
|
-
]),
|
|
65
|
-
t("div", R, [
|
|
66
|
-
p(o(L, {
|
|
67
|
-
userInfo: n(s),
|
|
68
|
-
itemData: e.itemData,
|
|
69
|
-
onClickSignButton: e.clickSignButton,
|
|
70
|
-
onBeforeDestroy: e.beforeSignDestroy,
|
|
71
|
-
onClickSubmitSign: a[1] || (a[1] = (d) => e.submitImageAsync("signature", d))
|
|
72
|
-
}, null, 8, ["userInfo", "itemData", "onClickSignButton", "onBeforeDestroy"]), [
|
|
73
|
-
[c, e.signatureLoading]
|
|
74
|
-
])
|
|
75
|
-
])
|
|
76
|
-
]),
|
|
77
|
-
p((u(), y("div", j, [
|
|
78
|
-
(u(), A(E, {
|
|
79
|
-
key: n(x),
|
|
80
|
-
tabsContents: e.tabsContents,
|
|
81
|
-
onChangeTrigger: e.changeFormTrigger,
|
|
82
|
-
onClickTrigger: e.clickTabButton
|
|
83
|
-
}, null, 8, ["tabsContents", "onChangeTrigger", "onClickTrigger"]))
|
|
84
|
-
])), [
|
|
85
|
-
[c, e.loading]
|
|
86
|
-
])
|
|
87
|
-
]);
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
}), te = /* @__PURE__ */ V(q, [["__scopeId", "data-v-3bdf3f4b"]]);
|
|
91
|
-
export {
|
|
92
|
-
te as default
|
|
93
|
-
};
|