gds-plus-design-vue 1.1.7 → 1.1.8
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/lib/gd-initial.js +15 -16
- package/lib/gd-initial.mjs +9886 -9254
- package/lib/main.2eb05c0d.js +1 -0
- package/lib/main.85f07438.mjs +68 -0
- package/lib/main.9bdd200f.mjs +87 -0
- package/lib/{main.f2b00b70.mjs → main.e62fbc84.mjs} +17 -17
- package/lib/{main.60763eae.js → main.ef020e08.js} +1 -1
- package/lib/main.f13b92a2.js +1 -0
- package/lib/style.css +1 -1
- package/lib/{system.account.93b7df36.mjs → system.account.25a9471c.mjs} +521 -505
- package/lib/{system.account.65b2f7d4.js → system.account.88600238.js} +2 -2
- package/lib/{system.duplicatechecking.0d47a5ca.js → system.duplicatechecking.2e9b8df8.js} +1 -1
- package/lib/{system.duplicatechecking.ad111272.mjs → system.duplicatechecking.b05f1617.mjs} +2 -2
- package/lib/{system.email.54722948.js → system.email.15594778.js} +1 -1
- package/lib/{system.email.923697c6.mjs → system.email.6369f5b4.mjs} +1 -1
- package/lib/{system.notice.93c4691c.js → system.notice.662195f6.js} +1 -1
- package/lib/{system.notice.e0b84103.mjs → system.notice.e2fe81dc.mjs} +1 -1
- package/lib/{system.noticereceived.a28ba643.js → system.noticereceived.15cf2fce.js} +1 -1
- package/lib/{system.noticereceived.c0a19336.mjs → system.noticereceived.20f38964.mjs} +1 -1
- package/lib/{system.permissions.b8a5f79d.mjs → system.permissions.5524b210.mjs} +1 -1
- package/lib/{system.permissions.c34f44a3.js → system.permissions.a45b5b80.js} +1 -1
- package/lib/system.promptmanagement.67475aac.js +1 -0
- package/lib/{system.promptmanagement.fe8b0913.mjs → system.promptmanagement.e9976712.mjs} +67 -51
- package/lib/system.role.0a1f11ad.js +1 -0
- package/lib/{system.role.ceb5ed2d.mjs → system.role.e5d08307.mjs} +94 -60
- package/lib/{system.translation.6351f189.mjs → system.translation.48ff0b03.mjs} +25 -21
- package/lib/{system.translation.8905eb73.js → system.translation.8f7e4144.js} +1 -1
- package/lib/{system.user.12a4e490.mjs → system.user.30451246.mjs} +19 -12
- package/lib/{system.user.d668538b.js → system.user.e0e4ac12.js} +6 -6
- package/lib/{system.useraffiliation.c272e688.mjs → system.useraffiliation.1e74fa9e.mjs} +1 -1
- package/lib/{system.useraffiliation.b8be03db.js → system.useraffiliation.f3c88a51.js} +1 -1
- package/locale/en_US.js +40 -7
- package/locale/id_ID.js +43 -10
- package/locale/vi_VN.js +43 -10
- package/locale/zh_CN.js +37 -4
- package/package.json +1 -1
- package/lib/system.promptmanagement.5a4930b1.js +0 -1
- package/lib/system.role.daedd959.js +0 -1
|
@@ -1,95 +1,109 @@
|
|
|
1
1
|
import { m as W, n as M } from "./chartbi.48631362.mjs";
|
|
2
2
|
import j from "vue";
|
|
3
3
|
import { s as V, a as X } from "./messages.7e85146d.mjs";
|
|
4
|
-
function Ye(
|
|
4
|
+
function Ye(r) {
|
|
5
5
|
return window.axios({
|
|
6
6
|
url: "/login",
|
|
7
7
|
method: "post",
|
|
8
|
-
data:
|
|
8
|
+
data: r
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
|
-
function Ne(
|
|
11
|
+
function Ne(r) {
|
|
12
12
|
return window.axios({
|
|
13
13
|
url: "/logout",
|
|
14
14
|
method: "get",
|
|
15
|
-
params:
|
|
15
|
+
params: r
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
-
function G(
|
|
18
|
+
function G(r) {
|
|
19
19
|
return window.axios({
|
|
20
20
|
url: "/getLoginUser",
|
|
21
21
|
method: "get",
|
|
22
|
-
params:
|
|
22
|
+
params: r
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
function ze(
|
|
25
|
+
function ze(r) {
|
|
26
26
|
return window.axios({
|
|
27
27
|
url: "/sysBookmark/page",
|
|
28
28
|
method: "post",
|
|
29
|
-
data:
|
|
29
|
+
data: r
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
-
function De(
|
|
32
|
+
function De(r) {
|
|
33
33
|
return window.axios({
|
|
34
34
|
url: "/sysBookmark/delete",
|
|
35
35
|
method: "post",
|
|
36
|
-
data:
|
|
36
|
+
data: r
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
-
function je(
|
|
39
|
+
function je(r) {
|
|
40
40
|
return window.axios({
|
|
41
41
|
url: "/sysBookmark/add",
|
|
42
42
|
method: "post",
|
|
43
|
-
data:
|
|
43
|
+
data: r
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
function Ve(
|
|
46
|
+
function Ve(r) {
|
|
47
47
|
return window.axios({
|
|
48
48
|
url: "/getLoginUser2",
|
|
49
49
|
method: "get",
|
|
50
|
-
params:
|
|
50
|
+
params: r
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Ge(r) {
|
|
54
|
+
return window.axios({
|
|
55
|
+
url: "/OAuth2/authorize2",
|
|
56
|
+
method: "post",
|
|
57
|
+
data: r
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
function qe(r) {
|
|
61
|
+
return window.axios({
|
|
62
|
+
url: "/OAuth2/login",
|
|
63
|
+
method: "post",
|
|
64
|
+
data: r
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
function q(r) {
|
|
54
68
|
return window.axios({
|
|
55
69
|
url: "/sysApp/list",
|
|
56
70
|
method: "get",
|
|
57
|
-
params:
|
|
71
|
+
params: r
|
|
58
72
|
});
|
|
59
73
|
}
|
|
60
|
-
function
|
|
74
|
+
function Ze(r) {
|
|
61
75
|
return window.axios({
|
|
62
76
|
url: "/sysApp/listByAppsId",
|
|
63
77
|
method: "get",
|
|
64
|
-
params:
|
|
78
|
+
params: r
|
|
65
79
|
});
|
|
66
80
|
}
|
|
67
|
-
function
|
|
81
|
+
function Je(r) {
|
|
68
82
|
return window.axios({
|
|
69
83
|
url: "/sysApp/add",
|
|
70
84
|
method: "post",
|
|
71
|
-
data:
|
|
85
|
+
data: r
|
|
72
86
|
});
|
|
73
87
|
}
|
|
74
|
-
function
|
|
88
|
+
function Ke(r) {
|
|
75
89
|
return window.axios({
|
|
76
90
|
url: "/sysApp/edit",
|
|
77
91
|
method: "post",
|
|
78
|
-
data:
|
|
92
|
+
data: r
|
|
79
93
|
});
|
|
80
94
|
}
|
|
81
|
-
function
|
|
95
|
+
function Qe(r) {
|
|
82
96
|
return window.axios({
|
|
83
97
|
url: "/sysApp/delete",
|
|
84
98
|
method: "post",
|
|
85
|
-
data:
|
|
99
|
+
data: r
|
|
86
100
|
});
|
|
87
101
|
}
|
|
88
|
-
function
|
|
102
|
+
function et(r) {
|
|
89
103
|
return window.axios({
|
|
90
104
|
url: "/sysApp/changeStatus",
|
|
91
105
|
method: "post",
|
|
92
|
-
data:
|
|
106
|
+
data: r
|
|
93
107
|
});
|
|
94
108
|
}
|
|
95
109
|
const Y = [{
|
|
@@ -161,8 +175,8 @@ const Z = {
|
|
|
161
175
|
return "overflow:auto;height:" + (this.screenHeight - 24 - 20 - 10 - 5) + "px;";
|
|
162
176
|
},
|
|
163
177
|
getTitle() {
|
|
164
|
-
let
|
|
165
|
-
return e === "\u57FA\u672C\u8BBE\u7F6E" ?
|
|
178
|
+
let r = "", e = this.$route.meta.title;
|
|
179
|
+
return e === "\u57FA\u672C\u8BBE\u7F6E" ? r = "basicSettings" : e === "\u5B89\u5168\u8BBE\u7F6E" ? r = "securitySetting" : e === "\u4E2A\u6027\u5316\u8BBE\u7F6E" ? r = "personalization" : e === "\u65B0\u6D88\u606F\u901A\u77E5" ? r = "notify" : e === "\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1" && (r = "bindenterpriseWechat"), r === "" ? e : this.$i18nt("gd.account." + r);
|
|
166
180
|
},
|
|
167
181
|
...W(["userInfo", "screenHeight", "primaryColor", "multiTab"])
|
|
168
182
|
},
|
|
@@ -170,31 +184,31 @@ const Z = {
|
|
|
170
184
|
this.updateMenu();
|
|
171
185
|
},
|
|
172
186
|
methods: {
|
|
173
|
-
onOpenChange(
|
|
187
|
+
onOpenChange(r, e) {
|
|
174
188
|
this.openKeys = openKeys;
|
|
175
189
|
},
|
|
176
190
|
updateMenu() {
|
|
177
|
-
const s = this.$route.matched.concat();
|
|
178
|
-
this.activeIndex = s.pop().path;
|
|
179
|
-
},
|
|
180
|
-
clickWx(s, e) {
|
|
181
191
|
const r = this.$route.matched.concat();
|
|
182
192
|
this.activeIndex = r.pop().path;
|
|
183
193
|
},
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
194
|
+
clickWx(r, e) {
|
|
195
|
+
const o = this.$route.matched.concat();
|
|
196
|
+
this.activeIndex = o.pop().path;
|
|
197
|
+
},
|
|
198
|
+
fadeColor(r, e) {
|
|
199
|
+
let o = parseInt(r.substring(1, 3), 16), a = parseInt(r.substring(3, 5), 16), d = parseInt(r.substring(5, 7), 16);
|
|
200
|
+
return `rgba(${o},${a},${d},${e})`;
|
|
187
201
|
}
|
|
188
202
|
},
|
|
189
203
|
watch: {
|
|
190
|
-
$route(
|
|
204
|
+
$route(r) {
|
|
191
205
|
this.updateMenu();
|
|
192
206
|
}
|
|
193
207
|
}
|
|
194
208
|
};
|
|
195
209
|
var J = function() {
|
|
196
|
-
var e = this,
|
|
197
|
-
return
|
|
210
|
+
var e = this, o = e._self._c;
|
|
211
|
+
return o("div", { staticClass: "page-header-index-wide", style: e.style }, [o("el-card", { style: e.getHeight, attrs: { bordered: !1, bodyStyle: { padding: "16px 0", height: e.getHeight + "px" } } }, [o("div", { staticClass: "account-settings-info-main" }, [o("div", { staticClass: "account-settings-info-left", style: { "--dilute": e.fadeColord } }, [o("el-menu", { staticClass: "el-menu-vertical-demo", attrs: { router: "", "default-active": e.$route.path, mode: "vertical" }, on: { select: e.clickWx } }, [o("el-menu-item", { attrs: { index: "/account/settings/base" } }, [e._v(e._s(e.$i18nt("gd.account.basicSettings")))]), o("el-menu-item", { attrs: { index: "/account/settings/security" } }, [e._v(e._s(e.$i18nt("gd.account.securitySetting")))]), o("el-menu-item", { attrs: { index: "/account/settings/custom" } }, [e._v(e._s(e.$i18nt("gd.account.personalization")))])], 1)], 1), o("div", { staticClass: "account-settings-info-right" }, [o("div", { staticClass: "account-settings-info-title" }, [o("span", [e._v(e._s(e.getTitle))])]), e.multiTab ? o("keep-alive", [o("router-view", { key: e.$route.fullPath })], 1) : o("router-view", { key: e.$route.fullPath })], 1)])])], 1);
|
|
198
212
|
}, K = [], Q = /* @__PURE__ */ M(
|
|
199
213
|
Z,
|
|
200
214
|
J,
|
|
@@ -206,236 +220,236 @@ var J = function() {
|
|
|
206
220
|
null
|
|
207
221
|
);
|
|
208
222
|
const U = Q.exports;
|
|
209
|
-
U.install = function(
|
|
210
|
-
|
|
223
|
+
U.install = function(r) {
|
|
224
|
+
r.component(U.name, U);
|
|
211
225
|
};
|
|
212
|
-
function
|
|
226
|
+
function tt(r) {
|
|
213
227
|
return window.axios({
|
|
214
228
|
url: "/sysUser/page",
|
|
215
229
|
method: "get",
|
|
216
|
-
params:
|
|
230
|
+
params: r
|
|
217
231
|
});
|
|
218
232
|
}
|
|
219
|
-
function
|
|
233
|
+
function nt(r) {
|
|
220
234
|
return window.axios({
|
|
221
235
|
url: "/sysUser/add",
|
|
222
236
|
method: "post",
|
|
223
|
-
data:
|
|
237
|
+
data: r
|
|
224
238
|
});
|
|
225
239
|
}
|
|
226
|
-
function
|
|
240
|
+
function ot(r) {
|
|
227
241
|
return window.axios({
|
|
228
242
|
url: "/sysUser/edit",
|
|
229
243
|
method: "post",
|
|
230
|
-
data:
|
|
244
|
+
data: r
|
|
231
245
|
});
|
|
232
246
|
}
|
|
233
|
-
function
|
|
247
|
+
function rt(r) {
|
|
234
248
|
return window.axios({
|
|
235
249
|
url: "/sysUser/ownRole",
|
|
236
250
|
method: "get",
|
|
237
|
-
params:
|
|
251
|
+
params: r
|
|
238
252
|
});
|
|
239
253
|
}
|
|
240
|
-
function
|
|
254
|
+
function st(r) {
|
|
241
255
|
return window.axios({
|
|
242
|
-
url: "/sysUser/
|
|
256
|
+
url: "/sysUser/changeRole",
|
|
243
257
|
method: "post",
|
|
244
|
-
data:
|
|
258
|
+
data: r
|
|
245
259
|
});
|
|
246
260
|
}
|
|
247
|
-
function
|
|
261
|
+
function it(r) {
|
|
248
262
|
return window.axios({
|
|
249
263
|
url: "/sysUser/changeStatus",
|
|
250
264
|
method: "post",
|
|
251
|
-
data:
|
|
265
|
+
data: r
|
|
252
266
|
});
|
|
253
267
|
}
|
|
254
|
-
function
|
|
268
|
+
function at(r) {
|
|
255
269
|
return window.axios({
|
|
256
270
|
url: "/sysUser/resetPwd",
|
|
257
271
|
method: "post",
|
|
258
|
-
data:
|
|
272
|
+
data: r
|
|
259
273
|
});
|
|
260
274
|
}
|
|
261
|
-
function
|
|
275
|
+
function ct(r) {
|
|
262
276
|
return window.axios({
|
|
263
277
|
url: "/sysUser/selector",
|
|
264
278
|
method: "get",
|
|
265
|
-
params:
|
|
279
|
+
params: r
|
|
266
280
|
});
|
|
267
281
|
}
|
|
268
|
-
function ee(
|
|
282
|
+
function ee(r) {
|
|
269
283
|
return window.axios({
|
|
270
284
|
url: "/sysUser/updateAvatar",
|
|
271
285
|
method: "post",
|
|
272
|
-
data:
|
|
286
|
+
data: r
|
|
273
287
|
});
|
|
274
288
|
}
|
|
275
|
-
function te(
|
|
289
|
+
function te(r) {
|
|
276
290
|
return window.axios({
|
|
277
291
|
url: "/sysUser/updateInfo",
|
|
278
292
|
method: "post",
|
|
279
|
-
data:
|
|
293
|
+
data: r
|
|
280
294
|
});
|
|
281
295
|
}
|
|
282
|
-
function
|
|
296
|
+
function lt(r) {
|
|
283
297
|
return window.axios({
|
|
284
298
|
url: "/sysUser/export",
|
|
285
299
|
method: "get",
|
|
286
|
-
data:
|
|
300
|
+
data: r,
|
|
287
301
|
responseType: "blob"
|
|
288
302
|
});
|
|
289
303
|
}
|
|
290
|
-
function
|
|
304
|
+
function ut(r) {
|
|
291
305
|
return window.axios({
|
|
292
306
|
url: "/sysUser/import",
|
|
293
307
|
method: "post",
|
|
294
|
-
data:
|
|
308
|
+
data: r
|
|
295
309
|
});
|
|
296
310
|
}
|
|
297
|
-
function ne(
|
|
311
|
+
function ne(r) {
|
|
298
312
|
return window.axios({
|
|
299
313
|
url: "/sysUser/updateConfigTheme",
|
|
300
314
|
method: "post",
|
|
301
|
-
data:
|
|
315
|
+
data: r
|
|
302
316
|
});
|
|
303
317
|
}
|
|
304
|
-
function
|
|
318
|
+
function oe(r) {
|
|
305
319
|
return window.axios({
|
|
306
320
|
url: "/sysConfig/GetPasswordRules",
|
|
307
321
|
method: "get",
|
|
308
|
-
params:
|
|
322
|
+
params: r
|
|
309
323
|
});
|
|
310
324
|
}
|
|
311
|
-
function
|
|
325
|
+
function re(r) {
|
|
312
326
|
return window.axios({
|
|
313
327
|
url: "/sysUser/updatePwdByAccount",
|
|
314
328
|
method: "post",
|
|
315
|
-
data:
|
|
329
|
+
data: r
|
|
316
330
|
});
|
|
317
331
|
}
|
|
318
|
-
function
|
|
332
|
+
function dt(r) {
|
|
319
333
|
return window.axios({
|
|
320
334
|
url: "/sysUser/resetPwdByAccount",
|
|
321
335
|
method: "post",
|
|
322
|
-
data:
|
|
336
|
+
data: r
|
|
323
337
|
});
|
|
324
338
|
}
|
|
325
|
-
function
|
|
339
|
+
function se(r) {
|
|
326
340
|
return window.axios({
|
|
327
341
|
url: "/sysConfig/GetConfigInfoByCode",
|
|
328
342
|
method: "get",
|
|
329
|
-
params:
|
|
343
|
+
params: r
|
|
330
344
|
});
|
|
331
345
|
}
|
|
332
|
-
function
|
|
346
|
+
function ht(r) {
|
|
333
347
|
return window.axios({
|
|
334
348
|
url: "/sysUser/ApplyResetPassword",
|
|
335
349
|
method: "post",
|
|
336
|
-
data:
|
|
350
|
+
data: r
|
|
337
351
|
});
|
|
338
352
|
}
|
|
339
|
-
function
|
|
353
|
+
function pt(r) {
|
|
340
354
|
return window.axios({
|
|
341
355
|
url: "/sysUserPRC/CheckPRCValidation",
|
|
342
356
|
method: "post",
|
|
343
|
-
data:
|
|
357
|
+
data: r
|
|
344
358
|
});
|
|
345
359
|
}
|
|
346
|
-
function
|
|
360
|
+
function gt(r) {
|
|
347
361
|
return window.axios({
|
|
348
362
|
url: "/wechatwork/LoginByWeChatWork",
|
|
349
363
|
method: "get",
|
|
350
|
-
params:
|
|
364
|
+
params: r
|
|
351
365
|
});
|
|
352
366
|
}
|
|
353
|
-
function
|
|
367
|
+
function ft(r) {
|
|
354
368
|
return window.axios({
|
|
355
369
|
url: "/wechatwork/BindWechatWorkAccount",
|
|
356
370
|
method: "get",
|
|
357
|
-
params:
|
|
371
|
+
params: r
|
|
358
372
|
});
|
|
359
373
|
}
|
|
360
|
-
function ie(
|
|
374
|
+
function ie(r) {
|
|
361
375
|
return window.axios({
|
|
362
376
|
url: "/wechatwork/BindWechatWorkAccountByCode",
|
|
363
377
|
method: "get",
|
|
364
|
-
params:
|
|
378
|
+
params: r
|
|
365
379
|
});
|
|
366
380
|
}
|
|
367
|
-
function ae(
|
|
381
|
+
function ae(r) {
|
|
368
382
|
return window.axios({
|
|
369
383
|
url: "/sysConfig/GetConfigsByCode",
|
|
370
384
|
method: "get",
|
|
371
|
-
params:
|
|
385
|
+
params: r
|
|
372
386
|
});
|
|
373
387
|
}
|
|
374
|
-
function
|
|
388
|
+
function mt(r) {
|
|
375
389
|
return window.axios({
|
|
376
390
|
url: "/sysUser/ChangeUserBUJob",
|
|
377
391
|
method: "post",
|
|
378
|
-
data:
|
|
392
|
+
data: r
|
|
379
393
|
});
|
|
380
394
|
}
|
|
381
|
-
function
|
|
395
|
+
function vt(r) {
|
|
382
396
|
return window.axios({
|
|
383
397
|
url: "/getUserListByRoleId",
|
|
384
398
|
method: "get",
|
|
385
|
-
params:
|
|
399
|
+
params: r
|
|
386
400
|
});
|
|
387
401
|
}
|
|
388
|
-
function
|
|
402
|
+
function wt(r) {
|
|
389
403
|
return window.axios({
|
|
390
404
|
url: "/bindUsersToRole",
|
|
391
405
|
method: "post",
|
|
392
|
-
data:
|
|
406
|
+
data: r
|
|
393
407
|
});
|
|
394
408
|
}
|
|
395
|
-
function
|
|
409
|
+
function yt(r) {
|
|
396
410
|
return window.axios({
|
|
397
411
|
url: "/unbindUsersFromRole",
|
|
398
412
|
method: "post",
|
|
399
|
-
data:
|
|
413
|
+
data: r
|
|
400
414
|
});
|
|
401
415
|
}
|
|
402
|
-
var
|
|
403
|
-
function
|
|
404
|
-
return
|
|
416
|
+
var xt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
417
|
+
function Ct(r) {
|
|
418
|
+
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
405
419
|
}
|
|
406
|
-
function
|
|
407
|
-
var e =
|
|
420
|
+
function bt(r) {
|
|
421
|
+
var e = r.default;
|
|
408
422
|
if (typeof e == "function") {
|
|
409
|
-
var
|
|
423
|
+
var o = function() {
|
|
410
424
|
return e.apply(this, arguments);
|
|
411
425
|
};
|
|
412
|
-
|
|
426
|
+
o.prototype = e.prototype;
|
|
413
427
|
} else
|
|
414
|
-
|
|
415
|
-
return Object.defineProperty(
|
|
416
|
-
var d = Object.getOwnPropertyDescriptor(
|
|
417
|
-
Object.defineProperty(
|
|
428
|
+
o = {};
|
|
429
|
+
return Object.defineProperty(o, "__esModule", { value: !0 }), Object.keys(r).forEach(function(a) {
|
|
430
|
+
var d = Object.getOwnPropertyDescriptor(r, a);
|
|
431
|
+
Object.defineProperty(o, a, d.get ? d : {
|
|
418
432
|
enumerable: !0,
|
|
419
433
|
get: function() {
|
|
420
|
-
return
|
|
434
|
+
return r[a];
|
|
421
435
|
}
|
|
422
436
|
});
|
|
423
|
-
}),
|
|
437
|
+
}), o;
|
|
424
438
|
}
|
|
425
439
|
var N = { exports: {} };
|
|
426
|
-
(function(
|
|
427
|
-
(function(
|
|
428
|
-
|
|
440
|
+
(function(r, e) {
|
|
441
|
+
(function(o, a) {
|
|
442
|
+
r.exports = a();
|
|
429
443
|
})(window, function() {
|
|
430
|
-
return function(
|
|
444
|
+
return function(o) {
|
|
431
445
|
var a = {};
|
|
432
446
|
function d(h) {
|
|
433
447
|
if (a[h])
|
|
434
448
|
return a[h].exports;
|
|
435
449
|
var y = a[h] = { i: h, l: !1, exports: {} };
|
|
436
|
-
return
|
|
450
|
+
return o[h].call(y.exports, y, y.exports, d), y.l = !0, y.exports;
|
|
437
451
|
}
|
|
438
|
-
return d.m =
|
|
452
|
+
return d.m = o, d.c = a, d.d = function(h, y, $) {
|
|
439
453
|
d.o(h, y) || Object.defineProperty(h, y, { enumerable: !0, get: $ });
|
|
440
454
|
}, d.r = function(h) {
|
|
441
455
|
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(h, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(h, "__esModule", { value: !0 });
|
|
@@ -459,16 +473,16 @@ var N = { exports: {} };
|
|
|
459
473
|
}, d.o = function(h, y) {
|
|
460
474
|
return Object.prototype.hasOwnProperty.call(h, y);
|
|
461
475
|
}, d.p = "", d(d.s = 6);
|
|
462
|
-
}([function(
|
|
476
|
+
}([function(o, a, d) {
|
|
463
477
|
var h = d(2);
|
|
464
|
-
typeof h == "string" && (h = [[
|
|
478
|
+
typeof h == "string" && (h = [[o.i, h, ""]]);
|
|
465
479
|
var y = { hmr: !0, transform: void 0, insertInto: void 0 };
|
|
466
|
-
d(4)(h, y), h.locals && (
|
|
467
|
-
}, function(
|
|
480
|
+
d(4)(h, y), h.locals && (o.exports = h.locals);
|
|
481
|
+
}, function(o, a, d) {
|
|
468
482
|
var h = d(0);
|
|
469
483
|
d.n(h).a;
|
|
470
|
-
}, function(
|
|
471
|
-
(
|
|
484
|
+
}, function(o, a, d) {
|
|
485
|
+
(o.exports = d(3)(!1)).push([o.i, `
|
|
472
486
|
.vue-cropper[data-v-6dae58fd] {
|
|
473
487
|
position: relative;
|
|
474
488
|
width: 100%;
|
|
@@ -669,8 +683,8 @@ var N = { exports: {} };
|
|
|
669
683
|
}
|
|
670
684
|
}
|
|
671
685
|
`, ""]);
|
|
672
|
-
}, function(
|
|
673
|
-
|
|
686
|
+
}, function(o, a) {
|
|
687
|
+
o.exports = function(d) {
|
|
674
688
|
var h = [];
|
|
675
689
|
return h.toString = function() {
|
|
676
690
|
return this.map(function(y) {
|
|
@@ -704,7 +718,7 @@ var N = { exports: {} };
|
|
|
704
718
|
}
|
|
705
719
|
}, h;
|
|
706
720
|
};
|
|
707
|
-
}, function(
|
|
721
|
+
}, function(o, a, d) {
|
|
708
722
|
var h = {}, y = function(c) {
|
|
709
723
|
var u;
|
|
710
724
|
return function() {
|
|
@@ -777,7 +791,7 @@ var N = { exports: {} };
|
|
|
777
791
|
p.insertBefore(u, w);
|
|
778
792
|
}
|
|
779
793
|
}
|
|
780
|
-
function
|
|
794
|
+
function s(c) {
|
|
781
795
|
if (c.parentNode === null)
|
|
782
796
|
return !1;
|
|
783
797
|
c.parentNode.removeChild(c);
|
|
@@ -821,7 +835,7 @@ var N = { exports: {} };
|
|
|
821
835
|
var D = new Blob([T], { type: "text/css" }), R = _.href;
|
|
822
836
|
_.href = URL.createObjectURL(D), R && URL.revokeObjectURL(R);
|
|
823
837
|
}.bind(null, p, u), w = function() {
|
|
824
|
-
|
|
838
|
+
s(p), p.href && URL.revokeObjectURL(p.href);
|
|
825
839
|
}) : (p = l(u), g = function(_, S) {
|
|
826
840
|
var E = S.css, T = S.media;
|
|
827
841
|
if (T && _.setAttribute("media", T), _.styleSheet)
|
|
@@ -832,7 +846,7 @@ var N = { exports: {} };
|
|
|
832
846
|
_.appendChild(document.createTextNode(E));
|
|
833
847
|
}
|
|
834
848
|
}.bind(null, p), w = function() {
|
|
835
|
-
|
|
849
|
+
s(p);
|
|
836
850
|
});
|
|
837
851
|
return g(c), function(_) {
|
|
838
852
|
if (_) {
|
|
@@ -843,7 +857,7 @@ var N = { exports: {} };
|
|
|
843
857
|
w();
|
|
844
858
|
};
|
|
845
859
|
}
|
|
846
|
-
|
|
860
|
+
o.exports = function(c, u) {
|
|
847
861
|
if (typeof DEBUG < "u" && DEBUG && typeof document != "object")
|
|
848
862
|
throw new Error("The style-loader cannot be used in a non-browser environment");
|
|
849
863
|
(u = u || {}).attrs = typeof u.attrs == "object" ? u.attrs : {}, u.singleton || typeof u.singleton == "boolean" || (u.singleton = y()), u.insertInto || (u.insertInto = "head"), u.insertAt || (u.insertAt = "bottom");
|
|
@@ -879,8 +893,8 @@ var N = { exports: {} };
|
|
|
879
893
|
C[u] && c.removeChild(C[u]), C.length ? c.insertBefore(v, C[u]) : c.appendChild(v);
|
|
880
894
|
}
|
|
881
895
|
}
|
|
882
|
-
}, function(
|
|
883
|
-
|
|
896
|
+
}, function(o, a) {
|
|
897
|
+
o.exports = function(d) {
|
|
884
898
|
var h = typeof window < "u" && window.location;
|
|
885
899
|
if (!h)
|
|
886
900
|
throw new Error("fixUrls requires window.location");
|
|
@@ -896,65 +910,65 @@ var N = { exports: {} };
|
|
|
896
910
|
return /^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(L) ? I : (k = L.indexOf("//") === 0 ? L : L.indexOf("/") === 0 ? y + L : $ + L.replace(/^\.\//, ""), "url(" + JSON.stringify(k) + ")");
|
|
897
911
|
});
|
|
898
912
|
};
|
|
899
|
-
}, function(
|
|
913
|
+
}, function(o, a, d) {
|
|
900
914
|
d.r(a);
|
|
901
915
|
var h = function() {
|
|
902
916
|
var n = this, t = n.$createElement, i = n._self._c || t;
|
|
903
|
-
return i("div", { ref: "cropper", staticClass: "vue-cropper", on: { mouseover: n.scaleImg, mouseout: n.cancelScale } }, [n.imgs ? i("div", { staticClass: "cropper-box" }, [i("div", { directives: [{ name: "show", rawName: "v-show", value: !n.loading, expression: "!loading" }], staticClass: "cropper-box-canvas", style: { width: n.trueWidth + "px", height: n.trueHeight + "px", transform: "scale(" + n.scale + "," + n.scale + ") translate3d(" + n.x / n.scale + "px," + n.y / n.scale + "px,0)rotateZ(" + 90 * n.rotate + "deg)" } }, [i("img", { ref: "cropperImg", attrs: { src: n.imgs, alt: "cropper-img" } })])]) : n._e(), n._v(" "), i("div", { staticClass: "cropper-drag-box", class: { "cropper-move": n.move && !n.crop, "cropper-crop": n.crop, "cropper-modal": n.cropping }, on: { mousedown: n.startMove, touchstart: n.startMove } }), n._v(" "), i("div", { directives: [{ name: "show", rawName: "v-show", value: n.cropping, expression: "cropping" }], staticClass: "cropper-crop-box", style: { width: n.cropW + "px", height: n.cropH + "px", transform: "translate3d(" + n.cropOffsertX + "px," + n.cropOffsertY + "px,0)" } }, [i("span", { staticClass: "cropper-view-box" }, [i("img", { style: { width: n.trueWidth + "px", height: n.trueHeight + "px", transform: "scale(" + n.scale + "," + n.scale + ") translate3d(" + (n.x - n.cropOffsertX) / n.scale + "px," + (n.y - n.cropOffsertY) / n.scale + "px,0)rotateZ(" + 90 * n.rotate + "deg)" }, attrs: { src: n.imgs, alt: "cropper-img" } })]), n._v(" "), i("span", { staticClass: "cropper-face cropper-move", on: { mousedown: n.cropMove, touchstart: n.cropMove } }), n._v(" "), n.info ? i("span", { staticClass: "crop-info", style: { top: n.cropInfo.top } }, [n._v(n._s(this.cropInfo.width) + " \xD7 " + n._s(this.cropInfo.height))]) : n._e(), n._v(" "), n.fixedBox ? n._e() : i("span", [i("span", { staticClass: "crop-line line-w", on: { mousedown: function(
|
|
904
|
-
n.changeCropSize(
|
|
905
|
-
}, touchstart: function(
|
|
906
|
-
n.changeCropSize(
|
|
907
|
-
} } }), n._v(" "), i("span", { staticClass: "crop-line line-a", on: { mousedown: function(
|
|
908
|
-
n.changeCropSize(
|
|
909
|
-
}, touchstart: function(
|
|
910
|
-
n.changeCropSize(
|
|
911
|
-
} } }), n._v(" "), i("span", { staticClass: "crop-line line-s", on: { mousedown: function(
|
|
912
|
-
n.changeCropSize(
|
|
913
|
-
}, touchstart: function(
|
|
914
|
-
n.changeCropSize(
|
|
915
|
-
} } }), n._v(" "), i("span", { staticClass: "crop-line line-d", on: { mousedown: function(
|
|
916
|
-
n.changeCropSize(
|
|
917
|
-
}, touchstart: function(
|
|
918
|
-
n.changeCropSize(
|
|
919
|
-
} } }), n._v(" "), i("span", { staticClass: "crop-point point1", on: { mousedown: function(
|
|
920
|
-
n.changeCropSize(
|
|
921
|
-
}, touchstart: function(
|
|
922
|
-
n.changeCropSize(
|
|
923
|
-
} } }), n._v(" "), i("span", { staticClass: "crop-point point2", on: { mousedown: function(
|
|
924
|
-
n.changeCropSize(
|
|
925
|
-
}, touchstart: function(
|
|
926
|
-
n.changeCropSize(
|
|
927
|
-
} } }), n._v(" "), i("span", { staticClass: "crop-point point3", on: { mousedown: function(
|
|
928
|
-
n.changeCropSize(
|
|
929
|
-
}, touchstart: function(
|
|
930
|
-
n.changeCropSize(
|
|
931
|
-
} } }), n._v(" "), i("span", { staticClass: "crop-point point4", on: { mousedown: function(
|
|
932
|
-
n.changeCropSize(
|
|
933
|
-
}, touchstart: function(
|
|
934
|
-
n.changeCropSize(
|
|
935
|
-
} } }), n._v(" "), i("span", { staticClass: "crop-point point5", on: { mousedown: function(
|
|
936
|
-
n.changeCropSize(
|
|
937
|
-
}, touchstart: function(
|
|
938
|
-
n.changeCropSize(
|
|
939
|
-
} } }), n._v(" "), i("span", { staticClass: "crop-point point6", on: { mousedown: function(
|
|
940
|
-
n.changeCropSize(
|
|
941
|
-
}, touchstart: function(
|
|
942
|
-
n.changeCropSize(
|
|
943
|
-
} } }), n._v(" "), i("span", { staticClass: "crop-point point7", on: { mousedown: function(
|
|
944
|
-
n.changeCropSize(
|
|
945
|
-
}, touchstart: function(
|
|
946
|
-
n.changeCropSize(
|
|
947
|
-
} } }), n._v(" "), i("span", { staticClass: "crop-point point8", on: { mousedown: function(
|
|
948
|
-
n.changeCropSize(
|
|
949
|
-
}, touchstart: function(
|
|
950
|
-
n.changeCropSize(
|
|
917
|
+
return i("div", { ref: "cropper", staticClass: "vue-cropper", on: { mouseover: n.scaleImg, mouseout: n.cancelScale } }, [n.imgs ? i("div", { staticClass: "cropper-box" }, [i("div", { directives: [{ name: "show", rawName: "v-show", value: !n.loading, expression: "!loading" }], staticClass: "cropper-box-canvas", style: { width: n.trueWidth + "px", height: n.trueHeight + "px", transform: "scale(" + n.scale + "," + n.scale + ") translate3d(" + n.x / n.scale + "px," + n.y / n.scale + "px,0)rotateZ(" + 90 * n.rotate + "deg)" } }, [i("img", { ref: "cropperImg", attrs: { src: n.imgs, alt: "cropper-img" } })])]) : n._e(), n._v(" "), i("div", { staticClass: "cropper-drag-box", class: { "cropper-move": n.move && !n.crop, "cropper-crop": n.crop, "cropper-modal": n.cropping }, on: { mousedown: n.startMove, touchstart: n.startMove } }), n._v(" "), i("div", { directives: [{ name: "show", rawName: "v-show", value: n.cropping, expression: "cropping" }], staticClass: "cropper-crop-box", style: { width: n.cropW + "px", height: n.cropH + "px", transform: "translate3d(" + n.cropOffsertX + "px," + n.cropOffsertY + "px,0)" } }, [i("span", { staticClass: "cropper-view-box" }, [i("img", { style: { width: n.trueWidth + "px", height: n.trueHeight + "px", transform: "scale(" + n.scale + "," + n.scale + ") translate3d(" + (n.x - n.cropOffsertX) / n.scale + "px," + (n.y - n.cropOffsertY) / n.scale + "px,0)rotateZ(" + 90 * n.rotate + "deg)" }, attrs: { src: n.imgs, alt: "cropper-img" } })]), n._v(" "), i("span", { staticClass: "cropper-face cropper-move", on: { mousedown: n.cropMove, touchstart: n.cropMove } }), n._v(" "), n.info ? i("span", { staticClass: "crop-info", style: { top: n.cropInfo.top } }, [n._v(n._s(this.cropInfo.width) + " \xD7 " + n._s(this.cropInfo.height))]) : n._e(), n._v(" "), n.fixedBox ? n._e() : i("span", [i("span", { staticClass: "crop-line line-w", on: { mousedown: function(s) {
|
|
918
|
+
n.changeCropSize(s, !1, !0, 0, 1);
|
|
919
|
+
}, touchstart: function(s) {
|
|
920
|
+
n.changeCropSize(s, !1, !0, 0, 1);
|
|
921
|
+
} } }), n._v(" "), i("span", { staticClass: "crop-line line-a", on: { mousedown: function(s) {
|
|
922
|
+
n.changeCropSize(s, !0, !1, 1, 0);
|
|
923
|
+
}, touchstart: function(s) {
|
|
924
|
+
n.changeCropSize(s, !0, !1, 1, 0);
|
|
925
|
+
} } }), n._v(" "), i("span", { staticClass: "crop-line line-s", on: { mousedown: function(s) {
|
|
926
|
+
n.changeCropSize(s, !1, !0, 0, 2);
|
|
927
|
+
}, touchstart: function(s) {
|
|
928
|
+
n.changeCropSize(s, !1, !0, 0, 2);
|
|
929
|
+
} } }), n._v(" "), i("span", { staticClass: "crop-line line-d", on: { mousedown: function(s) {
|
|
930
|
+
n.changeCropSize(s, !0, !1, 2, 0);
|
|
931
|
+
}, touchstart: function(s) {
|
|
932
|
+
n.changeCropSize(s, !0, !1, 2, 0);
|
|
933
|
+
} } }), n._v(" "), i("span", { staticClass: "crop-point point1", on: { mousedown: function(s) {
|
|
934
|
+
n.changeCropSize(s, !0, !0, 1, 1);
|
|
935
|
+
}, touchstart: function(s) {
|
|
936
|
+
n.changeCropSize(s, !0, !0, 1, 1);
|
|
937
|
+
} } }), n._v(" "), i("span", { staticClass: "crop-point point2", on: { mousedown: function(s) {
|
|
938
|
+
n.changeCropSize(s, !1, !0, 0, 1);
|
|
939
|
+
}, touchstart: function(s) {
|
|
940
|
+
n.changeCropSize(s, !1, !0, 0, 1);
|
|
941
|
+
} } }), n._v(" "), i("span", { staticClass: "crop-point point3", on: { mousedown: function(s) {
|
|
942
|
+
n.changeCropSize(s, !0, !0, 2, 1);
|
|
943
|
+
}, touchstart: function(s) {
|
|
944
|
+
n.changeCropSize(s, !0, !0, 2, 1);
|
|
945
|
+
} } }), n._v(" "), i("span", { staticClass: "crop-point point4", on: { mousedown: function(s) {
|
|
946
|
+
n.changeCropSize(s, !0, !1, 1, 0);
|
|
947
|
+
}, touchstart: function(s) {
|
|
948
|
+
n.changeCropSize(s, !0, !1, 1, 0);
|
|
949
|
+
} } }), n._v(" "), i("span", { staticClass: "crop-point point5", on: { mousedown: function(s) {
|
|
950
|
+
n.changeCropSize(s, !0, !1, 2, 0);
|
|
951
|
+
}, touchstart: function(s) {
|
|
952
|
+
n.changeCropSize(s, !0, !1, 2, 0);
|
|
953
|
+
} } }), n._v(" "), i("span", { staticClass: "crop-point point6", on: { mousedown: function(s) {
|
|
954
|
+
n.changeCropSize(s, !0, !0, 1, 2);
|
|
955
|
+
}, touchstart: function(s) {
|
|
956
|
+
n.changeCropSize(s, !0, !0, 1, 2);
|
|
957
|
+
} } }), n._v(" "), i("span", { staticClass: "crop-point point7", on: { mousedown: function(s) {
|
|
958
|
+
n.changeCropSize(s, !1, !0, 0, 2);
|
|
959
|
+
}, touchstart: function(s) {
|
|
960
|
+
n.changeCropSize(s, !1, !0, 0, 2);
|
|
961
|
+
} } }), n._v(" "), i("span", { staticClass: "crop-point point8", on: { mousedown: function(s) {
|
|
962
|
+
n.changeCropSize(s, !0, !0, 2, 2);
|
|
963
|
+
}, touchstart: function(s) {
|
|
964
|
+
n.changeCropSize(s, !0, !0, 2, 2);
|
|
951
965
|
} } })])])]);
|
|
952
966
|
};
|
|
953
967
|
h._withStripped = !0;
|
|
954
968
|
var y = {};
|
|
955
969
|
y.getData = function(n) {
|
|
956
970
|
return new Promise(function(t, i) {
|
|
957
|
-
var
|
|
971
|
+
var s = {};
|
|
958
972
|
(function(l) {
|
|
959
973
|
var f = null;
|
|
960
974
|
return new Promise(function(m, b) {
|
|
@@ -990,7 +1004,7 @@ var N = { exports: {} };
|
|
|
990
1004
|
b("img error");
|
|
991
1005
|
});
|
|
992
1006
|
})(n).then(function(l) {
|
|
993
|
-
|
|
1007
|
+
s.arrayBuffer = l, s.orientation = function(f) {
|
|
994
1008
|
var m, b, x, c, u, p, g, w, v, C = new DataView(f), _ = C.byteLength;
|
|
995
1009
|
if (C.getUint8(0) === 255 && C.getUint8(1) === 216)
|
|
996
1010
|
for (w = 2; w < _; ) {
|
|
@@ -1013,7 +1027,7 @@ var N = { exports: {} };
|
|
|
1013
1027
|
}
|
|
1014
1028
|
}
|
|
1015
1029
|
return m;
|
|
1016
|
-
}(l), t(
|
|
1030
|
+
}(l), t(s);
|
|
1017
1031
|
}).catch(function(l) {
|
|
1018
1032
|
i(l);
|
|
1019
1033
|
});
|
|
@@ -1066,10 +1080,10 @@ var N = { exports: {} };
|
|
|
1066
1080
|
}, rotate: function() {
|
|
1067
1081
|
this.showPreview(), this.autoCrop ? this.goAutoCrop(this.cropW, this.cropH) : (this.cropW > 0 || this.cropH > 0) && this.goAutoCrop(this.cropW, this.cropH);
|
|
1068
1082
|
} }, methods: { getVersion: function(n) {
|
|
1069
|
-
for (var t = navigator.userAgent.split(" "), i = "",
|
|
1070
|
-
|
|
1083
|
+
for (var t = navigator.userAgent.split(" "), i = "", s = new RegExp(n, "i"), l = 0; l < t.length; l++)
|
|
1084
|
+
s.test(t[l]) && (i = t[l]);
|
|
1071
1085
|
return i ? i.split("/")[1].split(".") : ["0", "0", "0"];
|
|
1072
|
-
}, checkOrientationImage: function(n, t, i,
|
|
1086
|
+
}, checkOrientationImage: function(n, t, i, s) {
|
|
1073
1087
|
var l = this;
|
|
1074
1088
|
if (this.getVersion("chrome")[0] >= 81)
|
|
1075
1089
|
t = -1;
|
|
@@ -1086,30 +1100,30 @@ var N = { exports: {} };
|
|
|
1086
1100
|
var x = document.createElement("canvas"), c = x.getContext("2d");
|
|
1087
1101
|
switch (c.save(), t) {
|
|
1088
1102
|
case 2:
|
|
1089
|
-
x.width = i, x.height =
|
|
1103
|
+
x.width = i, x.height = s, c.translate(i, 0), c.scale(-1, 1);
|
|
1090
1104
|
break;
|
|
1091
1105
|
case 3:
|
|
1092
|
-
x.width = i, x.height =
|
|
1106
|
+
x.width = i, x.height = s, c.translate(i / 2, s / 2), c.rotate(180 * Math.PI / 180), c.translate(-i / 2, -s / 2);
|
|
1093
1107
|
break;
|
|
1094
1108
|
case 4:
|
|
1095
|
-
x.width = i, x.height =
|
|
1109
|
+
x.width = i, x.height = s, c.translate(0, s), c.scale(1, -1);
|
|
1096
1110
|
break;
|
|
1097
1111
|
case 5:
|
|
1098
|
-
x.height = i, x.width =
|
|
1112
|
+
x.height = i, x.width = s, c.rotate(0.5 * Math.PI), c.scale(1, -1);
|
|
1099
1113
|
break;
|
|
1100
1114
|
case 6:
|
|
1101
|
-
x.width =
|
|
1115
|
+
x.width = s, x.height = i, c.translate(s / 2, i / 2), c.rotate(90 * Math.PI / 180), c.translate(-i / 2, -s / 2);
|
|
1102
1116
|
break;
|
|
1103
1117
|
case 7:
|
|
1104
|
-
x.height = i, x.width =
|
|
1118
|
+
x.height = i, x.width = s, c.rotate(0.5 * Math.PI), c.translate(i, -s), c.scale(-1, 1);
|
|
1105
1119
|
break;
|
|
1106
1120
|
case 8:
|
|
1107
|
-
x.height = i, x.width =
|
|
1121
|
+
x.height = i, x.width = s, c.translate(s / 2, i / 2), c.rotate(-90 * Math.PI / 180), c.translate(-i / 2, -s / 2);
|
|
1108
1122
|
break;
|
|
1109
1123
|
default:
|
|
1110
|
-
x.width = i, x.height =
|
|
1124
|
+
x.width = i, x.height = s;
|
|
1111
1125
|
}
|
|
1112
|
-
c.drawImage(n, 0, 0, i,
|
|
1126
|
+
c.drawImage(n, 0, 0, i, s), c.restore(), x.toBlob(function(u) {
|
|
1113
1127
|
var p = URL.createObjectURL(u);
|
|
1114
1128
|
URL.revokeObjectURL(l.imgs), l.imgs = p;
|
|
1115
1129
|
}, "image/" + this.outputType, 1);
|
|
@@ -1122,19 +1136,19 @@ var N = { exports: {} };
|
|
|
1122
1136
|
if (t.onload = function() {
|
|
1123
1137
|
if (n.img === "")
|
|
1124
1138
|
return n.$emit("imgLoad", "error"), n.$emit("img-load", "error"), !1;
|
|
1125
|
-
var
|
|
1139
|
+
var s = t.width, l = t.height;
|
|
1126
1140
|
$.getData(t).then(function(f) {
|
|
1127
1141
|
n.orientation = f.orientation || 1;
|
|
1128
1142
|
var m = n.maxImgSize;
|
|
1129
|
-
!n.orientation &&
|
|
1143
|
+
!n.orientation && s < m & l < m ? n.imgs = n.img : (s > m && (l = l / s * m, s = m), l > m && (s = s / l * m, l = m), n.checkOrientationImage(t, n.orientation, s, l));
|
|
1130
1144
|
});
|
|
1131
1145
|
}, t.onerror = function() {
|
|
1132
1146
|
n.$emit("imgLoad", "error"), n.$emit("img-load", "error");
|
|
1133
1147
|
}, this.img.substr(0, 4) !== "data" && (t.crossOrigin = ""), this.isIE) {
|
|
1134
1148
|
var i = new XMLHttpRequest();
|
|
1135
1149
|
i.onload = function() {
|
|
1136
|
-
var
|
|
1137
|
-
t.src =
|
|
1150
|
+
var s = URL.createObjectURL(this.response);
|
|
1151
|
+
t.src = s;
|
|
1138
1152
|
}, i.open("GET", this.img, !0), i.responseType = "blob", i.send();
|
|
1139
1153
|
} else
|
|
1140
1154
|
t.src = this.img;
|
|
@@ -1148,7 +1162,7 @@ var N = { exports: {} };
|
|
|
1148
1162
|
}, touchScale: function(n) {
|
|
1149
1163
|
var t = this;
|
|
1150
1164
|
n.preventDefault();
|
|
1151
|
-
var i = this.scale,
|
|
1165
|
+
var i = this.scale, s = this.touches[0].clientX, l = this.touches[0].clientY, f = n.touches[0].clientX, m = n.touches[0].clientY, b = this.touches[1].clientX, x = this.touches[1].clientY, c = n.touches[1].clientX, u = n.touches[1].clientY, p = Math.sqrt(Math.pow(s - b, 2) + Math.pow(l - x, 2)), g = Math.sqrt(Math.pow(f - c, 2) + Math.pow(m - u, 2)) - p, w = 1, v = (w = (w = w / this.trueWidth > w / this.trueHeight ? w / this.trueHeight : w / this.trueWidth) > 0.1 ? 0.1 : w) * g;
|
|
1152
1166
|
if (!this.touchNow) {
|
|
1153
1167
|
if (this.touchNow = !0, g > 0 ? i += Math.abs(v) : g < 0 && i > Math.abs(v) && (i -= Math.abs(v)), this.touches = n.touches, setTimeout(function() {
|
|
1154
1168
|
t.touchNow = !1;
|
|
@@ -1162,10 +1176,10 @@ var N = { exports: {} };
|
|
|
1162
1176
|
var t = this;
|
|
1163
1177
|
if (n.preventDefault(), n.touches && n.touches.length === 2)
|
|
1164
1178
|
return this.touches = n.touches, window.addEventListener("touchmove", this.touchScale), window.addEventListener("touchend", this.cancelTouchScale), window.removeEventListener("touchmove", this.moveImg), !1;
|
|
1165
|
-
var i,
|
|
1166
|
-
i = l - this.moveX,
|
|
1179
|
+
var i, s, l = n.clientX ? n.clientX : n.touches[0].clientX, f = n.clientY ? n.clientY : n.touches[0].clientY;
|
|
1180
|
+
i = l - this.moveX, s = f - this.moveY, this.$nextTick(function() {
|
|
1167
1181
|
if (t.centerBox) {
|
|
1168
|
-
var m, b, x, c, u = t.getImgAxis(i,
|
|
1182
|
+
var m, b, x, c, u = t.getImgAxis(i, s, t.scale), p = t.getCropAxis(), g = t.trueHeight * t.scale, w = t.trueWidth * t.scale;
|
|
1169
1183
|
switch (t.rotate) {
|
|
1170
1184
|
case 1:
|
|
1171
1185
|
case -1:
|
|
@@ -1176,9 +1190,9 @@ var N = { exports: {} };
|
|
|
1176
1190
|
default:
|
|
1177
1191
|
m = t.cropOffsertX - t.trueWidth * (1 - t.scale) / 2, b = t.cropOffsertY - t.trueHeight * (1 - t.scale) / 2, x = m - w + t.cropW, c = b - g + t.cropH;
|
|
1178
1192
|
}
|
|
1179
|
-
u.x1 >= p.x1 && (i = m), u.y1 >= p.y1 && (
|
|
1193
|
+
u.x1 >= p.x1 && (i = m), u.y1 >= p.y1 && (s = b), u.x2 <= p.x2 && (i = x), u.y2 <= p.y2 && (s = c);
|
|
1180
1194
|
}
|
|
1181
|
-
t.x = i, t.y =
|
|
1195
|
+
t.x = i, t.y = s, t.$emit("imgMoving", { moving: !0, axis: t.getImgAxis() }), t.$emit("img-moving", { moving: !0, axis: t.getImgAxis() });
|
|
1182
1196
|
});
|
|
1183
1197
|
}, leaveImg: function(n) {
|
|
1184
1198
|
window.removeEventListener("mousemove", this.moveImg), window.removeEventListener("touchmove", this.moveImg), window.removeEventListener("mouseup", this.leaveImg), window.removeEventListener("touchend", this.leaveImg), this.$emit("imgMoving", { moving: !1, axis: this.getImgAxis() }), this.$emit("img-moving", { moving: !1, axis: this.getImgAxis() });
|
|
@@ -1189,9 +1203,9 @@ var N = { exports: {} };
|
|
|
1189
1203
|
}, changeSize: function(n) {
|
|
1190
1204
|
var t = this;
|
|
1191
1205
|
n.preventDefault();
|
|
1192
|
-
var i = this.scale,
|
|
1193
|
-
|
|
1194
|
-
var l = this.coe, f = (l = l / this.trueWidth > l / this.trueHeight ? l / this.trueHeight : l / this.trueWidth) *
|
|
1206
|
+
var i = this.scale, s = n.deltaY || n.wheelDelta;
|
|
1207
|
+
s = navigator.userAgent.indexOf("Firefox") > 0 ? 30 * s : s, this.isIE && (s = -s);
|
|
1208
|
+
var l = this.coe, f = (l = l / this.trueWidth > l / this.trueHeight ? l / this.trueHeight : l / this.trueWidth) * s;
|
|
1195
1209
|
f < 0 ? i += Math.abs(f) : i > Math.abs(f) && (i -= Math.abs(f));
|
|
1196
1210
|
var m = f < 0 ? "add" : "reduce";
|
|
1197
1211
|
if (m !== this.coeStatus && (this.coeStatus = m, this.coe = 0.2), this.scaling || (this.scalingSet = setTimeout(function() {
|
|
@@ -1209,27 +1223,27 @@ var N = { exports: {} };
|
|
|
1209
1223
|
}, createCrop: function(n) {
|
|
1210
1224
|
var t = this;
|
|
1211
1225
|
n.preventDefault();
|
|
1212
|
-
var i = n.clientX ? n.clientX : n.touches ? n.touches[0].clientX : 0,
|
|
1226
|
+
var i = n.clientX ? n.clientX : n.touches ? n.touches[0].clientX : 0, s = n.clientY ? n.clientY : n.touches ? n.touches[0].clientY : 0;
|
|
1213
1227
|
this.$nextTick(function() {
|
|
1214
|
-
var l = i - t.cropX, f =
|
|
1228
|
+
var l = i - t.cropX, f = s - t.cropY;
|
|
1215
1229
|
if (l > 0 ? (t.cropW = l + t.cropChangeX > t.w ? t.w - t.cropChangeX : l, t.cropOffsertX = t.cropChangeX) : (t.cropW = t.w - t.cropChangeX + Math.abs(l) > t.w ? t.cropChangeX : Math.abs(l), t.cropOffsertX = t.cropChangeX + l > 0 ? t.cropChangeX + l : 0), t.fixed) {
|
|
1216
1230
|
var m = t.cropW / t.fixedNumber[0] * t.fixedNumber[1];
|
|
1217
1231
|
m + t.cropOffsertY > t.h ? (t.cropH = t.h - t.cropOffsertY, t.cropW = t.cropH / t.fixedNumber[1] * t.fixedNumber[0], t.cropOffsertX = l > 0 ? t.cropChangeX : t.cropChangeX - t.cropW) : t.cropH = m, t.cropOffsertY = t.cropOffsertY;
|
|
1218
1232
|
} else
|
|
1219
1233
|
f > 0 ? (t.cropH = f + t.cropChangeY > t.h ? t.h - t.cropChangeY : f, t.cropOffsertY = t.cropChangeY) : (t.cropH = t.h - t.cropChangeY + Math.abs(f) > t.h ? t.cropChangeY : Math.abs(f), t.cropOffsertY = t.cropChangeY + f > 0 ? t.cropChangeY + f : 0);
|
|
1220
1234
|
});
|
|
1221
|
-
}, changeCropSize: function(n, t, i,
|
|
1222
|
-
n.preventDefault(), window.addEventListener("mousemove", this.changeCropNow), window.addEventListener("mouseup", this.changeCropEnd), window.addEventListener("touchmove", this.changeCropNow), window.addEventListener("touchend", this.changeCropEnd), this.canChangeX = t, this.canChangeY = i, this.changeCropTypeX =
|
|
1235
|
+
}, changeCropSize: function(n, t, i, s, l) {
|
|
1236
|
+
n.preventDefault(), window.addEventListener("mousemove", this.changeCropNow), window.addEventListener("mouseup", this.changeCropEnd), window.addEventListener("touchmove", this.changeCropNow), window.addEventListener("touchend", this.changeCropEnd), this.canChangeX = t, this.canChangeY = i, this.changeCropTypeX = s, this.changeCropTypeY = l, this.cropX = n.clientX ? n.clientX : n.touches[0].clientX, this.cropY = n.clientY ? n.clientY : n.touches[0].clientY, this.cropOldW = this.cropW, this.cropOldH = this.cropH, this.cropChangeX = this.cropOffsertX, this.cropChangeY = this.cropOffsertY, this.fixed && this.canChangeX && this.canChangeY && (this.canChangeY = 0), this.$emit("change-crop-size", { width: this.cropW, height: this.cropH });
|
|
1223
1237
|
}, changeCropNow: function(n) {
|
|
1224
1238
|
var t = this;
|
|
1225
1239
|
n.preventDefault();
|
|
1226
|
-
var i = n.clientX ? n.clientX : n.touches ? n.touches[0].clientX : 0,
|
|
1240
|
+
var i = n.clientX ? n.clientX : n.touches ? n.touches[0].clientX : 0, s = n.clientY ? n.clientY : n.touches ? n.touches[0].clientY : 0, l = this.w, f = this.h, m = 0, b = 0;
|
|
1227
1241
|
if (this.centerBox) {
|
|
1228
1242
|
var x = this.getImgAxis(), c = x.x2, u = x.y2;
|
|
1229
1243
|
m = x.x1 > 0 ? x.x1 : 0, b = x.y1 > 0 ? x.y1 : 0, l > c && (l = c), f > u && (f = u);
|
|
1230
1244
|
}
|
|
1231
1245
|
this.$nextTick(function() {
|
|
1232
|
-
var p = i - t.cropX, g =
|
|
1246
|
+
var p = i - t.cropX, g = s - t.cropY;
|
|
1233
1247
|
if (t.canChangeX && (t.changeCropTypeX === 1 ? t.cropOldW - p > 0 ? (t.cropW = l - t.cropChangeX - p <= l - m ? t.cropOldW - p : t.cropOldW + t.cropChangeX - m, t.cropOffsertX = l - t.cropChangeX - p <= l - m ? t.cropChangeX + p : m) : (t.cropW = Math.abs(p) + t.cropChangeX <= l ? Math.abs(p) - t.cropOldW : l - t.cropOldW - t.cropChangeX, t.cropOffsertX = t.cropChangeX + t.cropOldW) : t.changeCropTypeX === 2 && (t.cropOldW + p > 0 ? (t.cropW = t.cropOldW + p + t.cropOffsertX <= l ? t.cropOldW + p : l - t.cropOffsertX, t.cropOffsertX = t.cropChangeX) : (t.cropW = l - t.cropChangeX + Math.abs(p + t.cropOldW) <= l - m ? Math.abs(p + t.cropOldW) : t.cropChangeX - m, t.cropOffsertX = l - t.cropChangeX + Math.abs(p + t.cropOldW) <= l - m ? t.cropChangeX - Math.abs(p + t.cropOldW) : m))), t.canChangeY && (t.changeCropTypeY === 1 ? t.cropOldH - g > 0 ? (t.cropH = f - t.cropChangeY - g <= f - b ? t.cropOldH - g : t.cropOldH + t.cropChangeY - b, t.cropOffsertY = f - t.cropChangeY - g <= f - b ? t.cropChangeY + g : b) : (t.cropH = Math.abs(g) + t.cropChangeY <= f ? Math.abs(g) - t.cropOldH : f - t.cropOldH - t.cropChangeY, t.cropOffsertY = t.cropChangeY + t.cropOldH) : t.changeCropTypeY === 2 && (t.cropOldH + g > 0 ? (t.cropH = t.cropOldH + g + t.cropOffsertY <= f ? t.cropOldH + g : f - t.cropOffsertY, t.cropOffsertY = t.cropChangeY) : (t.cropH = f - t.cropChangeY + Math.abs(g + t.cropOldH) <= f - b ? Math.abs(g + t.cropOldH) : t.cropChangeY - b, t.cropOffsertY = f - t.cropChangeY + Math.abs(g + t.cropOldH) <= f - b ? t.cropChangeY - Math.abs(g + t.cropOldH) : b))), t.canChangeX && t.fixed) {
|
|
1234
1248
|
var w = t.cropW / t.fixedNumber[0] * t.fixedNumber[1];
|
|
1235
1249
|
w + t.cropOffsertY > f ? (t.cropH = f - t.cropOffsertY, t.cropW = t.cropH / t.fixedNumber[1] * t.fixedNumber[0]) : t.cropH = w;
|
|
@@ -1259,12 +1273,12 @@ var N = { exports: {} };
|
|
|
1259
1273
|
if (n.touches && n.touches.length === 2)
|
|
1260
1274
|
return this.crop = !1, this.startMove(n), this.leaveCrop(), !1;
|
|
1261
1275
|
window.addEventListener("mousemove", this.moveCrop), window.addEventListener("mouseup", this.leaveCrop), window.addEventListener("touchmove", this.moveCrop), window.addEventListener("touchend", this.leaveCrop);
|
|
1262
|
-
var t, i,
|
|
1263
|
-
t =
|
|
1276
|
+
var t, i, s = n.clientX ? n.clientX : n.touches[0].clientX, l = n.clientY ? n.clientY : n.touches[0].clientY;
|
|
1277
|
+
t = s - this.cropOffsertX, i = l - this.cropOffsertY, this.cropX = t, this.cropY = i, this.$emit("cropMoving", { moving: !0, axis: this.getCropAxis() }), this.$emit("crop-moving", { moving: !0, axis: this.getCropAxis() });
|
|
1264
1278
|
}, moveCrop: function(n, t) {
|
|
1265
|
-
var i = this,
|
|
1266
|
-
n && (n.preventDefault(),
|
|
1267
|
-
var f, m, b =
|
|
1279
|
+
var i = this, s = 0, l = 0;
|
|
1280
|
+
n && (n.preventDefault(), s = n.clientX ? n.clientX : n.touches[0].clientX, l = n.clientY ? n.clientY : n.touches[0].clientY), this.$nextTick(function() {
|
|
1281
|
+
var f, m, b = s - i.cropX, x = l - i.cropY;
|
|
1268
1282
|
if (t && (b = i.cropOffsertX, x = i.cropOffsertY), f = b <= 0 ? 0 : b + i.cropW > i.w ? i.w - i.cropW : b, m = x <= 0 ? 0 : x + i.cropH > i.h ? i.h - i.cropH : x, i.centerBox) {
|
|
1269
1283
|
var c = i.getImgAxis();
|
|
1270
1284
|
f <= c.x1 && (f = c.x1), f + i.cropW > c.x2 && (f = c.x2 - i.cropW), m <= c.y1 && (m = c.y1), m + i.cropH > c.y2 && (m = c.y2 - i.cropH);
|
|
@@ -1273,81 +1287,81 @@ var N = { exports: {} };
|
|
|
1273
1287
|
});
|
|
1274
1288
|
}, getImgAxis: function(n, t, i) {
|
|
1275
1289
|
n = n || this.x, t = t || this.y, i = i || this.scale;
|
|
1276
|
-
var
|
|
1290
|
+
var s = { x1: 0, x2: 0, y1: 0, y2: 0 }, l = this.trueWidth * i, f = this.trueHeight * i;
|
|
1277
1291
|
switch (this.rotate) {
|
|
1278
1292
|
case 0:
|
|
1279
|
-
|
|
1293
|
+
s.x1 = n + this.trueWidth * (1 - i) / 2, s.x2 = s.x1 + this.trueWidth * i, s.y1 = t + this.trueHeight * (1 - i) / 2, s.y2 = s.y1 + this.trueHeight * i;
|
|
1280
1294
|
break;
|
|
1281
1295
|
case 1:
|
|
1282
1296
|
case -1:
|
|
1283
1297
|
case 3:
|
|
1284
1298
|
case -3:
|
|
1285
|
-
|
|
1299
|
+
s.x1 = n + this.trueWidth * (1 - i) / 2 + (l - f) / 2, s.x2 = s.x1 + this.trueHeight * i, s.y1 = t + this.trueHeight * (1 - i) / 2 + (f - l) / 2, s.y2 = s.y1 + this.trueWidth * i;
|
|
1286
1300
|
break;
|
|
1287
1301
|
default:
|
|
1288
|
-
|
|
1302
|
+
s.x1 = n + this.trueWidth * (1 - i) / 2, s.x2 = s.x1 + this.trueWidth * i, s.y1 = t + this.trueHeight * (1 - i) / 2, s.y2 = s.y1 + this.trueHeight * i;
|
|
1289
1303
|
}
|
|
1290
|
-
return
|
|
1304
|
+
return s;
|
|
1291
1305
|
}, getCropAxis: function() {
|
|
1292
1306
|
var n = { x1: 0, x2: 0, y1: 0, y2: 0 };
|
|
1293
1307
|
return n.x1 = this.cropOffsertX, n.x2 = n.x1 + this.cropW, n.y1 = this.cropOffsertY, n.y2 = n.y1 + this.cropH, n;
|
|
1294
1308
|
}, leaveCrop: function(n) {
|
|
1295
1309
|
window.removeEventListener("mousemove", this.moveCrop), window.removeEventListener("mouseup", this.leaveCrop), window.removeEventListener("touchmove", this.moveCrop), window.removeEventListener("touchend", this.leaveCrop), this.$emit("cropMoving", { moving: !1, axis: this.getCropAxis() }), this.$emit("crop-moving", { moving: !1, axis: this.getCropAxis() });
|
|
1296
1310
|
}, getCropChecked: function(n) {
|
|
1297
|
-
var t = this, i = document.createElement("canvas"),
|
|
1311
|
+
var t = this, i = document.createElement("canvas"), s = new Image(), l = this.rotate, f = this.trueWidth, m = this.trueHeight, b = this.cropOffsertX, x = this.cropOffsertY;
|
|
1298
1312
|
function c(u, p) {
|
|
1299
1313
|
i.width = Math.round(u), i.height = Math.round(p);
|
|
1300
1314
|
}
|
|
1301
|
-
|
|
1315
|
+
s.onload = function() {
|
|
1302
1316
|
if (t.cropW !== 0) {
|
|
1303
1317
|
var u = i.getContext("2d"), p = 1;
|
|
1304
1318
|
t.high & !t.full && (p = window.devicePixelRatio), t.enlarge !== 1 & !t.full && (p = Math.abs(Number(t.enlarge)));
|
|
1305
1319
|
var g = t.cropW * p, w = t.cropH * p, v = f * t.scale * p, C = m * t.scale * p, _ = (t.x - b + t.trueWidth * (1 - t.scale) / 2) * p, S = (t.y - x + t.trueHeight * (1 - t.scale) / 2) * p;
|
|
1306
1320
|
switch (c(g, w), u.save(), l) {
|
|
1307
1321
|
case 0:
|
|
1308
|
-
t.full ? (c(g / t.scale, w / t.scale), u.drawImage(
|
|
1322
|
+
t.full ? (c(g / t.scale, w / t.scale), u.drawImage(s, _ / t.scale, S / t.scale, v / t.scale, C / t.scale)) : u.drawImage(s, _, S, v, C);
|
|
1309
1323
|
break;
|
|
1310
1324
|
case 1:
|
|
1311
1325
|
case -3:
|
|
1312
|
-
t.full ? (c(g / t.scale, w / t.scale), _ = _ / t.scale + (v / t.scale - C / t.scale) / 2, S = S / t.scale + (C / t.scale - v / t.scale) / 2, u.rotate(90 * l * Math.PI / 180), u.drawImage(
|
|
1326
|
+
t.full ? (c(g / t.scale, w / t.scale), _ = _ / t.scale + (v / t.scale - C / t.scale) / 2, S = S / t.scale + (C / t.scale - v / t.scale) / 2, u.rotate(90 * l * Math.PI / 180), u.drawImage(s, S, -_ - C / t.scale, v / t.scale, C / t.scale)) : (_ += (v - C) / 2, S += (C - v) / 2, u.rotate(90 * l * Math.PI / 180), u.drawImage(s, S, -_ - C, v, C));
|
|
1313
1327
|
break;
|
|
1314
1328
|
case 2:
|
|
1315
1329
|
case -2:
|
|
1316
|
-
t.full ? (c(g / t.scale, w / t.scale), u.rotate(90 * l * Math.PI / 180), _ /= t.scale, S /= t.scale, u.drawImage(
|
|
1330
|
+
t.full ? (c(g / t.scale, w / t.scale), u.rotate(90 * l * Math.PI / 180), _ /= t.scale, S /= t.scale, u.drawImage(s, -_ - v / t.scale, -S - C / t.scale, v / t.scale, C / t.scale)) : (u.rotate(90 * l * Math.PI / 180), u.drawImage(s, -_ - v, -S - C, v, C));
|
|
1317
1331
|
break;
|
|
1318
1332
|
case 3:
|
|
1319
1333
|
case -1:
|
|
1320
|
-
t.full ? (c(g / t.scale, w / t.scale), _ = _ / t.scale + (v / t.scale - C / t.scale) / 2, S = S / t.scale + (C / t.scale - v / t.scale) / 2, u.rotate(90 * l * Math.PI / 180), u.drawImage(
|
|
1334
|
+
t.full ? (c(g / t.scale, w / t.scale), _ = _ / t.scale + (v / t.scale - C / t.scale) / 2, S = S / t.scale + (C / t.scale - v / t.scale) / 2, u.rotate(90 * l * Math.PI / 180), u.drawImage(s, -S - v / t.scale, _, v / t.scale, C / t.scale)) : (_ += (v - C) / 2, S += (C - v) / 2, u.rotate(90 * l * Math.PI / 180), u.drawImage(s, -S - v, _, v, C));
|
|
1321
1335
|
break;
|
|
1322
1336
|
default:
|
|
1323
|
-
t.full ? (c(g / t.scale, w / t.scale), u.drawImage(
|
|
1337
|
+
t.full ? (c(g / t.scale, w / t.scale), u.drawImage(s, _ / t.scale, S / t.scale, v / t.scale, C / t.scale)) : u.drawImage(s, _, S, v, C);
|
|
1324
1338
|
}
|
|
1325
1339
|
u.restore();
|
|
1326
1340
|
} else {
|
|
1327
1341
|
var E = f * t.scale, T = m * t.scale, O = i.getContext("2d");
|
|
1328
1342
|
switch (O.save(), l) {
|
|
1329
1343
|
case 0:
|
|
1330
|
-
c(E, T), O.drawImage(
|
|
1344
|
+
c(E, T), O.drawImage(s, 0, 0, E, T);
|
|
1331
1345
|
break;
|
|
1332
1346
|
case 1:
|
|
1333
1347
|
case -3:
|
|
1334
|
-
c(T, E), O.rotate(90 * l * Math.PI / 180), O.drawImage(
|
|
1348
|
+
c(T, E), O.rotate(90 * l * Math.PI / 180), O.drawImage(s, 0, -T, E, T);
|
|
1335
1349
|
break;
|
|
1336
1350
|
case 2:
|
|
1337
1351
|
case -2:
|
|
1338
|
-
c(E, T), O.rotate(90 * l * Math.PI / 180), O.drawImage(
|
|
1352
|
+
c(E, T), O.rotate(90 * l * Math.PI / 180), O.drawImage(s, -E, -T, E, T);
|
|
1339
1353
|
break;
|
|
1340
1354
|
case 3:
|
|
1341
1355
|
case -1:
|
|
1342
|
-
c(T, E), O.rotate(90 * l * Math.PI / 180), O.drawImage(
|
|
1356
|
+
c(T, E), O.rotate(90 * l * Math.PI / 180), O.drawImage(s, -E, 0, E, T);
|
|
1343
1357
|
break;
|
|
1344
1358
|
default:
|
|
1345
|
-
c(E, T), O.drawImage(
|
|
1359
|
+
c(E, T), O.drawImage(s, 0, 0, E, T);
|
|
1346
1360
|
}
|
|
1347
1361
|
O.restore();
|
|
1348
1362
|
}
|
|
1349
1363
|
n(i);
|
|
1350
|
-
}, this.img.substr(0, 4) !== "data" && (
|
|
1364
|
+
}, this.img.substr(0, 4) !== "data" && (s.crossOrigin = "Anonymous"), s.src = this.imgs;
|
|
1351
1365
|
}, getCropData: function(n) {
|
|
1352
1366
|
var t = this;
|
|
1353
1367
|
this.getCropChecked(function(i) {
|
|
@@ -1356,8 +1370,8 @@ var N = { exports: {} };
|
|
|
1356
1370
|
}, getCropBlob: function(n) {
|
|
1357
1371
|
var t = this;
|
|
1358
1372
|
this.getCropChecked(function(i) {
|
|
1359
|
-
i.toBlob(function(
|
|
1360
|
-
return n(
|
|
1373
|
+
i.toBlob(function(s) {
|
|
1374
|
+
return n(s);
|
|
1361
1375
|
}, "image/" + t.outputType, t.outputSize);
|
|
1362
1376
|
});
|
|
1363
1377
|
}, showPreview: function() {
|
|
@@ -1367,14 +1381,14 @@ var N = { exports: {} };
|
|
|
1367
1381
|
this.isCanShow = !1, setTimeout(function() {
|
|
1368
1382
|
n.isCanShow = !0;
|
|
1369
1383
|
}, 16);
|
|
1370
|
-
var t = this.cropW, i = this.cropH,
|
|
1384
|
+
var t = this.cropW, i = this.cropH, s = this.scale, l = {};
|
|
1371
1385
|
l.div = { width: "".concat(t, "px"), height: "".concat(i, "px") };
|
|
1372
|
-
var f = (this.x - this.cropOffsertX) /
|
|
1373
|
-
l.w = t, l.h = i, l.url = this.imgs, l.img = { width: "".concat(this.trueWidth, "px"), height: "".concat(this.trueHeight, "px"), transform: "scale(".concat(
|
|
1386
|
+
var f = (this.x - this.cropOffsertX) / s, m = (this.y - this.cropOffsertY) / s;
|
|
1387
|
+
l.w = t, l.h = i, l.url = this.imgs, l.img = { width: "".concat(this.trueWidth, "px"), height: "".concat(this.trueHeight, "px"), transform: "scale(".concat(s, ")translate3d(").concat(f, "px, ").concat(m, "px, ").concat(0, "px)rotateZ(").concat(90 * this.rotate, "deg)") }, l.html = `
|
|
1374
1388
|
<div class="show-preview" style="width: `.concat(l.w, "px; height: ").concat(l.h, `px,; overflow: hidden">
|
|
1375
1389
|
<div style="width: `).concat(t, "px; height: ").concat(i, `px">
|
|
1376
1390
|
<img src=`).concat(l.url, ' style="width: ').concat(this.trueWidth, "px; height: ").concat(this.trueHeight, `px; transform:
|
|
1377
|
-
scale(`).concat(
|
|
1391
|
+
scale(`).concat(s, ")translate3d(").concat(f, "px, ").concat(m, "px, ").concat(0, "px)rotateZ(").concat(90 * this.rotate, `deg)">
|
|
1378
1392
|
</div>
|
|
1379
1393
|
</div>`), this.$emit("realTime", l), this.$emit("real-time", l);
|
|
1380
1394
|
}, reload: function() {
|
|
@@ -1399,8 +1413,8 @@ var N = { exports: {} };
|
|
|
1399
1413
|
break;
|
|
1400
1414
|
default:
|
|
1401
1415
|
try {
|
|
1402
|
-
var
|
|
1403
|
-
if (
|
|
1416
|
+
var s = i[0];
|
|
1417
|
+
if (s.search("px") !== -1 && (s = s.replace("px", ""), n = parseFloat(s) / this.trueWidth), s.search("%") !== -1 && (s = s.replace("%", ""), n = parseFloat(s) / 100 * this.w / this.trueWidth), i.length === 2 && s === "auto") {
|
|
1404
1418
|
var l = i[1];
|
|
1405
1419
|
l.search("px") !== -1 && (l = l.replace("px", ""), n = (t = parseFloat(l)) / this.trueHeight), l.search("%") !== -1 && (l = l.replace("%", ""), n = (t = parseFloat(l) / 100 * this.h) / this.trueHeight);
|
|
1406
1420
|
}
|
|
@@ -1412,19 +1426,19 @@ var N = { exports: {} };
|
|
|
1412
1426
|
}, goAutoCrop: function(n, t) {
|
|
1413
1427
|
if (this.imgs !== "" && this.imgs !== null) {
|
|
1414
1428
|
this.clearCrop(), this.cropping = !0;
|
|
1415
|
-
var i = this.w,
|
|
1429
|
+
var i = this.w, s = this.h;
|
|
1416
1430
|
if (this.centerBox) {
|
|
1417
1431
|
var l = this.trueWidth * this.scale, f = this.trueHeight * this.scale;
|
|
1418
|
-
i = l < i ? l : i,
|
|
1432
|
+
i = l < i ? l : i, s = f < s ? f : s;
|
|
1419
1433
|
}
|
|
1420
1434
|
var m = n || parseFloat(this.autoCropWidth), b = t || parseFloat(this.autoCropHeight);
|
|
1421
|
-
m !== 0 && b !== 0 || (m = 0.8 * i, b = 0.8 *
|
|
1435
|
+
m !== 0 && b !== 0 || (m = 0.8 * i, b = 0.8 * s), m = m > i ? i : m, b = b > s ? s : b, this.fixed && (b = m / this.fixedNumber[0] * this.fixedNumber[1]), b > this.h && (m = (b = this.h) / this.fixedNumber[1] * this.fixedNumber[0]), this.changeCrop(m, b);
|
|
1422
1436
|
}
|
|
1423
1437
|
}, changeCrop: function(n, t) {
|
|
1424
1438
|
var i = this;
|
|
1425
1439
|
if (this.centerBox) {
|
|
1426
|
-
var
|
|
1427
|
-
n >
|
|
1440
|
+
var s = this.getImgAxis();
|
|
1441
|
+
n > s.x2 - s.x1 && (t = (n = s.x2 - s.x1) / this.fixedNumber[0] * this.fixedNumber[1]), t > s.y2 - s.y1 && (n = (t = s.y2 - s.y1) / this.fixedNumber[1] * this.fixedNumber[0]);
|
|
1428
1442
|
}
|
|
1429
1443
|
this.cropW = n, this.cropH = t, this.checkCropLimitSize(), this.$nextTick(function() {
|
|
1430
1444
|
i.cropOffsertX = (i.w - i.cropW) / 2, i.cropOffsertY = (i.h - i.cropH) / 2, i.centerBox && i.moveCrop(null, !0);
|
|
@@ -1442,17 +1456,17 @@ var N = { exports: {} };
|
|
|
1442
1456
|
this.rotate = 0;
|
|
1443
1457
|
}, checkoutImgAxis: function(n, t, i) {
|
|
1444
1458
|
n = n || this.x, t = t || this.y, i = i || this.scale;
|
|
1445
|
-
var
|
|
1459
|
+
var s = !0;
|
|
1446
1460
|
if (this.centerBox) {
|
|
1447
1461
|
var l = this.getImgAxis(n, t, i), f = this.getCropAxis();
|
|
1448
|
-
l.x1 >= f.x1 && (
|
|
1462
|
+
l.x1 >= f.x1 && (s = !1), l.x2 <= f.x2 && (s = !1), l.y1 >= f.y1 && (s = !1), l.y2 <= f.y2 && (s = !1);
|
|
1449
1463
|
}
|
|
1450
|
-
return
|
|
1464
|
+
return s;
|
|
1451
1465
|
} }, mounted: function() {
|
|
1452
1466
|
this.support = "onwheel" in document.createElement("div") ? "wheel" : document.onmousewheel !== void 0 ? "mousewheel" : "DOMMouseScroll";
|
|
1453
1467
|
var n = this, t = navigator.userAgent;
|
|
1454
|
-
this.isIOS = !!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), HTMLCanvasElement.prototype.toBlob || Object.defineProperty(HTMLCanvasElement.prototype, "toBlob", { value: function(i,
|
|
1455
|
-
for (var f = atob(this.toDataURL(
|
|
1468
|
+
this.isIOS = !!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), HTMLCanvasElement.prototype.toBlob || Object.defineProperty(HTMLCanvasElement.prototype, "toBlob", { value: function(i, s, l) {
|
|
1469
|
+
for (var f = atob(this.toDataURL(s, l).split(",")[1]), m = f.length, b = new Uint8Array(m), x = 0; x < m; x++)
|
|
1456
1470
|
b[x] = f.charCodeAt(x);
|
|
1457
1471
|
i(new Blob([b], { type: n.type || "image/png" }));
|
|
1458
1472
|
} }), this.showPreview(), this.checkedImg();
|
|
@@ -1460,9 +1474,9 @@ var N = { exports: {} };
|
|
|
1460
1474
|
window.removeEventListener("mousemove", this.moveCrop), window.removeEventListener("mouseup", this.leaveCrop), window.removeEventListener("touchmove", this.moveCrop), window.removeEventListener("touchend", this.leaveCrop);
|
|
1461
1475
|
} };
|
|
1462
1476
|
d(1);
|
|
1463
|
-
var A = function(n, t, i,
|
|
1477
|
+
var A = function(n, t, i, s, l, f, m, b) {
|
|
1464
1478
|
var x, c = typeof n == "function" ? n.options : n;
|
|
1465
|
-
if (t && (c.render = t, c.staticRenderFns = i, c._compiled = !0),
|
|
1479
|
+
if (t && (c.render = t, c.staticRenderFns = i, c._compiled = !0), s && (c.functional = !0), f && (c._scopeId = "data-v-" + f), m ? (x = function(g) {
|
|
1466
1480
|
(g = g || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || typeof __VUE_SSR_CONTEXT__ > "u" || (g = __VUE_SSR_CONTEXT__), l && l.call(this, g), g && g._registeredComponents && g._registeredComponents.add(m);
|
|
1467
1481
|
}, c._ssrRegister = x) : l && (x = b ? function() {
|
|
1468
1482
|
l.call(this, this.$root.$options.shadowRoot);
|
|
@@ -1533,8 +1547,8 @@ const ce = {
|
|
|
1533
1547
|
toggleFullscreen() {
|
|
1534
1548
|
this.fullscreen = !this.fullscreen;
|
|
1535
1549
|
},
|
|
1536
|
-
edit(
|
|
1537
|
-
this.fullscreen = !1, this.visible = !0, this.id =
|
|
1550
|
+
edit(r) {
|
|
1551
|
+
this.fullscreen = !1, this.visible = !0, this.id = r;
|
|
1538
1552
|
},
|
|
1539
1553
|
close() {
|
|
1540
1554
|
this.id = null, this.visible = !1;
|
|
@@ -1542,8 +1556,8 @@ const ce = {
|
|
|
1542
1556
|
cancelHandel() {
|
|
1543
1557
|
this.close();
|
|
1544
1558
|
},
|
|
1545
|
-
changeScale(
|
|
1546
|
-
|
|
1559
|
+
changeScale(r) {
|
|
1560
|
+
r = r || 1, this.$refs.cropper.changeScale(r);
|
|
1547
1561
|
},
|
|
1548
1562
|
rotateLeft() {
|
|
1549
1563
|
this.$refs.cropper.rotateLeft();
|
|
@@ -1551,53 +1565,53 @@ const ce = {
|
|
|
1551
1565
|
rotateRight() {
|
|
1552
1566
|
this.$refs.cropper.rotateRight();
|
|
1553
1567
|
},
|
|
1554
|
-
beforeUpload(
|
|
1555
|
-
this.fileList =
|
|
1568
|
+
beforeUpload(r) {
|
|
1569
|
+
this.fileList = r;
|
|
1556
1570
|
const e = new FileReader();
|
|
1557
|
-
return e.readAsDataURL(
|
|
1571
|
+
return e.readAsDataURL(r), e.onload = () => {
|
|
1558
1572
|
this.options.img = e.result;
|
|
1559
1573
|
}, !1;
|
|
1560
1574
|
},
|
|
1561
|
-
finish(
|
|
1562
|
-
|
|
1563
|
-
const
|
|
1575
|
+
finish(r) {
|
|
1576
|
+
r === "blob" ? (this.uploading = !0, this.$refs.cropper.getCropBlob((e) => {
|
|
1577
|
+
const o = new window.File([e], this.fileList.name, {
|
|
1564
1578
|
type: this.fileList.type
|
|
1565
1579
|
}), a = new FormData();
|
|
1566
|
-
a.append("file",
|
|
1580
|
+
a.append("file", o), V(a).then((d) => {
|
|
1567
1581
|
d.success ? this.updateAvatar(d.data) : (this.uploading = !1, this.$message.error(d.message));
|
|
1568
1582
|
});
|
|
1569
1583
|
})) : this.$refs.cropper.getCropData((e) => {
|
|
1570
1584
|
});
|
|
1571
1585
|
},
|
|
1572
|
-
updateAvatar(
|
|
1586
|
+
updateAvatar(r) {
|
|
1573
1587
|
const e = {
|
|
1574
1588
|
id: this.id,
|
|
1575
|
-
avatar:
|
|
1589
|
+
avatar: r
|
|
1576
1590
|
};
|
|
1577
|
-
ee(e).then((
|
|
1578
|
-
this.uploading = !1,
|
|
1579
|
-
}).catch((
|
|
1580
|
-
this.$emit("ok",
|
|
1591
|
+
ee(e).then((o) => {
|
|
1592
|
+
this.uploading = !1, o.success ? (this.visible = !1, this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F"))) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + o.message), this.$emit("ok", r);
|
|
1593
|
+
}).catch((o) => {
|
|
1594
|
+
this.$emit("ok", r);
|
|
1581
1595
|
});
|
|
1582
1596
|
},
|
|
1583
|
-
realTime(
|
|
1584
|
-
this.previews =
|
|
1597
|
+
realTime(r) {
|
|
1598
|
+
this.previews = r;
|
|
1585
1599
|
},
|
|
1586
|
-
doEvent(
|
|
1587
|
-
let e =
|
|
1600
|
+
doEvent(r) {
|
|
1601
|
+
let e = r.item.functionName;
|
|
1588
1602
|
this[e] && this[e]();
|
|
1589
1603
|
}
|
|
1590
1604
|
}
|
|
1591
1605
|
};
|
|
1592
1606
|
var le = function() {
|
|
1593
|
-
var e = this,
|
|
1594
|
-
return
|
|
1607
|
+
var e = this, o = e._self._c;
|
|
1608
|
+
return o("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.modalStyle.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(a) {
|
|
1595
1609
|
e.visible = a;
|
|
1596
|
-
}, closed: e.cancelHandel } }, [
|
|
1610
|
+
}, closed: e.cancelHandel } }, [o("gd-modal-title", { attrs: { slot: "title", title: e.$i18nt("gd.account.modifyavatar", "\u4FEE\u6539\u5934\u50CF"), fullscreen: e.fullscreen, buttons: [], confirmLoading: e.confirmLoading, showClose: !0, closed: "cancelHandel" }, on: { changeEvent: e.doEvent }, slot: "title" }), o("div", { staticClass: "gd-model-body", class: e.fullscreen ? "modal-bodyq" : "modal-body" }, [o("el-row", [o("el-col", { style: { height: "350px" }, attrs: { xs: 24, md: 12 } }, [o("vue-cropper", { ref: "cropper", attrs: { img: e.options.img, info: !0, autoCrop: e.options.autoCrop, autoCropWidth: e.options.autoCropWidth, autoCropHeight: e.options.autoCropHeight, fixedBox: e.options.fixedBox }, on: { realTime: e.realTime } })], 1), o("el-col", { style: { height: "350px" }, attrs: { xs: 24, md: 12 } }, [o("div", { staticClass: "avatar-upload-preview" }, [o("img", { style: e.previews.img, attrs: { src: e.previews.url } })])])], 1), o("br"), o("el-row", [o("el-col", { attrs: { lg: 3, md: 3 } }, [o("el-upload", { attrs: { name: "file", action: "", beforeUpload: e.beforeUpload, showUploadList: !1 } }, [o("el-button", { staticClass: "el-icon-upload2" }, [e._v(e._s(e.$i18nt("gd.account.selectPicture", "\u9009\u62E9\u56FE\u7247")))])], 1)], 1), o("el-col", { attrs: { lg: { span: 1, offset: 2 }, md: 2 } }, [o("el-button", { staticClass: "el-icon-plus", on: { click: function(a) {
|
|
1597
1611
|
return e.changeScale(1);
|
|
1598
|
-
} } })], 1),
|
|
1612
|
+
} } })], 1), o("el-col", { attrs: { lg: { span: 1, offset: 1 }, md: 2 } }, [o("el-button", { staticClass: "el-icon-minus", on: { click: function(a) {
|
|
1599
1613
|
return e.changeScale(-1);
|
|
1600
|
-
} } })], 1),
|
|
1614
|
+
} } })], 1), o("el-col", { attrs: { lg: { span: 1, offset: 1 }, md: 2 } }, [o("el-button", { staticClass: "el-icon-refresh-left", on: { click: e.rotateLeft } })], 1), o("el-col", { attrs: { lg: { span: 1, offset: 1 }, md: 2 } }, [o("el-button", { staticClass: "el-icon-refresh-right", on: { click: e.rotateRight } })], 1), o("el-col", { attrs: { lg: { span: 2, offset: 6 }, md: 2 } }, [o("el-button", { attrs: { type: "primary", loading: e.uploading }, on: { click: function(a) {
|
|
1601
1615
|
return e.finish("blob");
|
|
1602
1616
|
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.save")) + " ")])], 1)], 1)], 1)], 1);
|
|
1603
1617
|
}, ue = [], de = /* @__PURE__ */ M(
|
|
@@ -1611,25 +1625,25 @@ var le = function() {
|
|
|
1611
1625
|
null
|
|
1612
1626
|
);
|
|
1613
1627
|
const he = de.exports;
|
|
1614
|
-
function pe(
|
|
1628
|
+
function pe(r) {
|
|
1615
1629
|
return window.axios({
|
|
1616
1630
|
url: "/sysLanguage/page",
|
|
1617
1631
|
method: "get",
|
|
1618
|
-
params:
|
|
1632
|
+
params: r
|
|
1619
1633
|
});
|
|
1620
1634
|
}
|
|
1621
|
-
function ge(
|
|
1635
|
+
function ge(r) {
|
|
1622
1636
|
return window.axios({
|
|
1623
1637
|
url: "/sysCurrency/page",
|
|
1624
1638
|
method: "get",
|
|
1625
|
-
params:
|
|
1639
|
+
params: r
|
|
1626
1640
|
});
|
|
1627
1641
|
}
|
|
1628
|
-
function fe(
|
|
1642
|
+
function fe(r) {
|
|
1629
1643
|
return window.axios({
|
|
1630
1644
|
url: "/sysTimezone/page",
|
|
1631
1645
|
method: "get",
|
|
1632
|
-
params:
|
|
1646
|
+
params: r
|
|
1633
1647
|
});
|
|
1634
1648
|
}
|
|
1635
1649
|
const me = {
|
|
@@ -1690,8 +1704,8 @@ const me = {
|
|
|
1690
1704
|
this.initUserInfo();
|
|
1691
1705
|
},
|
|
1692
1706
|
methods: {
|
|
1693
|
-
changeLanguage(
|
|
1694
|
-
let e = this.langData.filter((
|
|
1707
|
+
changeLanguage(r) {
|
|
1708
|
+
let e = this.langData.filter((o) => o.id == r)[0];
|
|
1695
1709
|
this.$store.dispatch("Language", e.code);
|
|
1696
1710
|
},
|
|
1697
1711
|
initUserInfo() {
|
|
@@ -1708,37 +1722,37 @@ const me = {
|
|
|
1708
1722
|
timezoneId: this.userInfo.timezoneid
|
|
1709
1723
|
}, this.birthdayString = this.userInfo.birthday, this.userInfo.avatar != null ? X({
|
|
1710
1724
|
id: this.userInfo.avatar
|
|
1711
|
-
}).then((
|
|
1712
|
-
this.option.img = window.URL.createObjectURL(new Blob([
|
|
1713
|
-
}).catch((
|
|
1714
|
-
this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A" +
|
|
1725
|
+
}).then((r) => {
|
|
1726
|
+
this.option.img = window.URL.createObjectURL(new Blob([r]));
|
|
1727
|
+
}).catch((r) => {
|
|
1728
|
+
this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A" + r.message);
|
|
1715
1729
|
}) : this.option.img = "/avatar2.jpg", this.getSexData(), this.spinning = !1;
|
|
1716
1730
|
}, 100);
|
|
1717
1731
|
},
|
|
1718
|
-
onChange(
|
|
1719
|
-
console.log(
|
|
1732
|
+
onChange(r, e) {
|
|
1733
|
+
console.log(r), this.birthdayString = r;
|
|
1720
1734
|
},
|
|
1721
1735
|
currencyChange() {
|
|
1722
|
-
ge().then((
|
|
1723
|
-
|
|
1736
|
+
ge().then((r) => {
|
|
1737
|
+
r.success && (this.currencyData = r.data.rows, j.ls.set("currencyData", r.data.rows));
|
|
1724
1738
|
});
|
|
1725
1739
|
},
|
|
1726
1740
|
timezoneChange() {
|
|
1727
|
-
fe().then((
|
|
1728
|
-
|
|
1741
|
+
fe().then((r) => {
|
|
1742
|
+
r.success && (this.timezoneData = r.data.rows);
|
|
1729
1743
|
});
|
|
1730
1744
|
},
|
|
1731
1745
|
languageChange() {
|
|
1732
|
-
pe().then((
|
|
1733
|
-
|
|
1746
|
+
pe().then((r) => {
|
|
1747
|
+
r.success && (this.langData = r.data.rows);
|
|
1734
1748
|
});
|
|
1735
1749
|
},
|
|
1736
1750
|
submitUserInfo() {
|
|
1737
|
-
this.spinning || this.$refs.ruleForm.validate((
|
|
1738
|
-
|
|
1751
|
+
this.spinning || this.$refs.ruleForm.validate((r) => {
|
|
1752
|
+
r && (this.spinning = !0, this.ruleForm.birthday = this.birthdayString, this.ruleForm.id = this.userInfo.id, te(this.ruleForm).then((e) => {
|
|
1739
1753
|
if (e.success) {
|
|
1740
|
-
let
|
|
1741
|
-
this.$store.dispatch("Language",
|
|
1754
|
+
let o = this.langData.filter((a) => a.id == this.ruleForm.languageId)[0];
|
|
1755
|
+
this.$store.dispatch("Language", o.code), this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), setTimeout(() => {
|
|
1742
1756
|
this.$store.dispatch("GetInfo").then(() => {
|
|
1743
1757
|
});
|
|
1744
1758
|
}, 500);
|
|
@@ -1751,9 +1765,9 @@ const me = {
|
|
|
1751
1765
|
getSexData() {
|
|
1752
1766
|
this.sexData = this.$options.filters.dictData("gender");
|
|
1753
1767
|
},
|
|
1754
|
-
setavatar(
|
|
1768
|
+
setavatar(r) {
|
|
1755
1769
|
X({
|
|
1756
|
-
id:
|
|
1770
|
+
id: r
|
|
1757
1771
|
}).then((e) => {
|
|
1758
1772
|
this.option.img = window.URL.createObjectURL(new Blob([e]));
|
|
1759
1773
|
}).catch((e) => {
|
|
@@ -1764,48 +1778,48 @@ const me = {
|
|
|
1764
1778
|
}
|
|
1765
1779
|
};
|
|
1766
1780
|
var ve = function() {
|
|
1767
|
-
var e = this,
|
|
1768
|
-
return
|
|
1781
|
+
var e = this, o = e._self._c;
|
|
1782
|
+
return o("div", { staticClass: "account-settings-info-view", staticStyle: { height: "100px" } }, [o("el-row", { attrs: { gutter: 16 } }, [o("el-col", { attrs: { md: 24, lg: 16 } }, [o("el-form", { ref: "ruleForm", attrs: { model: e.ruleForm, "label-width": "110px", "label-position": "top" }, nativeOn: { submit: function(a) {
|
|
1769
1783
|
a.preventDefault();
|
|
1770
|
-
} } }, [
|
|
1784
|
+
} } }, [o("el-form-item", { attrs: { label: e.$i18nt("gd.account.nickname", "\u6635\u79F0"), prop: "nickName" } }, [o("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.nickName, callback: function(a) {
|
|
1771
1785
|
e.$set(e.ruleForm, "nickName", a);
|
|
1772
|
-
}, expression: "ruleForm.nickName" } })], 1),
|
|
1786
|
+
}, expression: "ruleForm.nickName" } })], 1), o("el-form-item", { attrs: { label: e.$i18nt("gd.account.birthday", "\u751F\u65E5"), prop: "birthday", rules: [{ required: !0, message: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }] } }, [o("el-date-picker", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: e.onChange }, model: { value: e.ruleForm.birthday, callback: function(a) {
|
|
1773
1787
|
e.$set(e.ruleForm, "birthday", a);
|
|
1774
|
-
}, expression: "ruleForm.birthday" } })], 1),
|
|
1788
|
+
}, expression: "ruleForm.birthday" } })], 1), o("el-form-item", { attrs: { label: e.$i18nt("gd.account.sex", "\u6027\u522B"), prop: "gender", rules: [{ required: !0, message: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }] } }, [o("el-radio-group", { model: { value: e.ruleForm.gender, callback: function(a) {
|
|
1775
1789
|
e.$set(e.ruleForm, "gender", a);
|
|
1776
1790
|
}, expression: "ruleForm.gender" } }, e._l(e.sexData, function(a, d) {
|
|
1777
|
-
return
|
|
1778
|
-
}), 1)], 1),
|
|
1791
|
+
return o("el-radio", { key: d, attrs: { label: a.code } }, [e._v(" " + e._s(a.name) + " ")]);
|
|
1792
|
+
}), 1)], 1), o("el-form-item", { attrs: { label: e.$i18nt("gd.account.phone", "\u624B\u673A\u53F7"), prop: "phone", rules: [
|
|
1779
1793
|
{ required: !0, message: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") },
|
|
1780
1794
|
{
|
|
1781
1795
|
pattern: /^1[3-9]\d{9}$/,
|
|
1782
1796
|
message: this.$i18nt("gd.account.phoneInvalid", "\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801"),
|
|
1783
1797
|
trigger: "blur"
|
|
1784
1798
|
}
|
|
1785
|
-
] } }, [
|
|
1799
|
+
] } }, [o("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.phone, callback: function(a) {
|
|
1786
1800
|
e.$set(e.ruleForm, "phone", a);
|
|
1787
|
-
}, expression: "ruleForm.phone" } })], 1),
|
|
1801
|
+
}, expression: "ruleForm.phone" } })], 1), o("el-form-item", { staticStyle: { "margin-bottom": "12px" }, attrs: { label: e.$i18nt("gd.account.tel", "\u7535\u8BDD"), prop: "tel" } }, [o("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.tel, callback: function(a) {
|
|
1788
1802
|
e.$set(e.ruleForm, "tel", a);
|
|
1789
|
-
}, expression: "ruleForm.tel" } })], 1),
|
|
1803
|
+
}, expression: "ruleForm.tel" } })], 1), o("el-form-item", { attrs: { label: e.$i18nt("gd.account.email", "\u7535\u5B50\u90AE\u4EF6"), prop: "email", rules: [
|
|
1790
1804
|
{ required: !0, message: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), trigger: "blur" },
|
|
1791
1805
|
{ type: "email", message: e.$i18nt("gd.account.emailTip", "\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u53F7!"), trigger: ["blur", "change"] }
|
|
1792
|
-
] } }, [
|
|
1806
|
+
] } }, [o("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.email, callback: function(a) {
|
|
1793
1807
|
e.$set(e.ruleForm, "email", a);
|
|
1794
|
-
}, expression: "ruleForm.email" } })], 1),
|
|
1808
|
+
}, expression: "ruleForm.email" } })], 1), o("el-form-item", { attrs: { label: e.$i18nt("gd.account.language", "\u9ED8\u8BA4\u8BED\u8A00"), prop: "languageId", rules: [{ required: !0, message: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }] } }, [o("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { select: e.changeLanguage }, model: { value: e.ruleForm.languageId, callback: function(a) {
|
|
1795
1809
|
e.$set(e.ruleForm, "languageId", a);
|
|
1796
1810
|
}, expression: "ruleForm.languageId" } }, e._l(e.langData, function(a, d) {
|
|
1797
|
-
return
|
|
1798
|
-
}), 1)], 1),
|
|
1811
|
+
return o("el-option", { key: d, attrs: { value: a.id, label: a.name } });
|
|
1812
|
+
}), 1)], 1), o("el-form-item", { attrs: { label: e.$i18nt("gd.account.currency", "\u9ED8\u8BA4\u8D27\u5E01"), prop: "currencyId", rules: [{ required: !0, message: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }] } }, [o("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: e.ruleForm.currencyId, callback: function(a) {
|
|
1799
1813
|
e.$set(e.ruleForm, "currencyId", a);
|
|
1800
1814
|
}, expression: "ruleForm.currencyId" } }, e._l(e.currencyData, function(a, d) {
|
|
1801
|
-
return
|
|
1802
|
-
}), 1)], 1),
|
|
1815
|
+
return o("el-option", { key: d, attrs: { value: a.id, label: a.name } });
|
|
1816
|
+
}), 1)], 1), o("el-form-item", { attrs: { label: e.$i18nt("gd.account.timeZone", "\u9ED8\u8BA4\u65F6\u533A"), prop: "timezoneId", rules: [{ required: !0, message: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }] } }, [o("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: e.ruleForm.timezoneId, callback: function(a) {
|
|
1803
1817
|
e.$set(e.ruleForm, "timezoneId", a);
|
|
1804
1818
|
}, expression: "ruleForm.timezoneId" } }, e._l(e.timezoneData, function(a, d) {
|
|
1805
|
-
return
|
|
1806
|
-
}), 1)], 1),
|
|
1819
|
+
return o("el-option", { key: d, attrs: { value: a.id, label: a.name } });
|
|
1820
|
+
}), 1)], 1), o("el-form-item", [o("el-button", { attrs: { type: "primary" }, on: { click: e.submitUserInfo } }, [e._v(" " + e._s(e.$i18nt("gd.account.updateInformation", "\u66F4\u65B0\u57FA\u672C\u4FE1\u606F")) + " ")])], 1)], 1)], 1), o("el-col", { style: { minHeight: "180px" }, attrs: { md: 24, lg: 8 } }, [o("div", { staticClass: "ant-upload-preview", on: { click: function(a) {
|
|
1807
1821
|
return e.$refs.modal.edit(e.userInfo.id);
|
|
1808
|
-
} } }, [
|
|
1822
|
+
} } }, [o("i", { staticClass: "el-icon-upload upload-icon" }), o("div", { staticClass: "mask" }, [o("i", { staticClass: "el-icon-plus" })]), o("img", { attrs: { src: e.option.img } })])])], 1), o("avatar-modal", { ref: "modal", on: { ok: e.setavatar } })], 1);
|
|
1809
1823
|
}, we = [], ye = /* @__PURE__ */ M(
|
|
1810
1824
|
me,
|
|
1811
1825
|
ve,
|
|
@@ -1817,63 +1831,63 @@ var ve = function() {
|
|
|
1817
1831
|
null
|
|
1818
1832
|
);
|
|
1819
1833
|
const P = ye.exports;
|
|
1820
|
-
P.install = function(
|
|
1821
|
-
|
|
1834
|
+
P.install = function(r) {
|
|
1835
|
+
r.component(P.name, P);
|
|
1822
1836
|
};
|
|
1823
|
-
function xe(
|
|
1837
|
+
function xe(r) {
|
|
1824
1838
|
return window.axios({
|
|
1825
1839
|
url: "/sysMenu/list",
|
|
1826
1840
|
method: "get",
|
|
1827
|
-
params:
|
|
1841
|
+
params: r
|
|
1828
1842
|
});
|
|
1829
1843
|
}
|
|
1830
|
-
function
|
|
1844
|
+
function _t(r) {
|
|
1831
1845
|
return window.axios({
|
|
1832
1846
|
url: "/sysMenu/v2/add",
|
|
1833
1847
|
method: "post",
|
|
1834
|
-
data:
|
|
1848
|
+
data: r
|
|
1835
1849
|
});
|
|
1836
1850
|
}
|
|
1837
|
-
function
|
|
1851
|
+
function $t(r) {
|
|
1838
1852
|
return window.axios({
|
|
1839
1853
|
url: "/sysMenu/delete",
|
|
1840
1854
|
method: "post",
|
|
1841
|
-
data:
|
|
1855
|
+
data: r
|
|
1842
1856
|
});
|
|
1843
1857
|
}
|
|
1844
|
-
function
|
|
1858
|
+
function It(r) {
|
|
1845
1859
|
return window.axios({
|
|
1846
1860
|
url: "/sysMenu/detail",
|
|
1847
1861
|
method: "post",
|
|
1848
|
-
data:
|
|
1862
|
+
data: r
|
|
1849
1863
|
});
|
|
1850
1864
|
}
|
|
1851
|
-
function
|
|
1865
|
+
function St(r) {
|
|
1852
1866
|
return window.axios({
|
|
1853
1867
|
url: "/sysMenu/edit",
|
|
1854
1868
|
method: "post",
|
|
1855
|
-
data:
|
|
1869
|
+
data: r
|
|
1856
1870
|
});
|
|
1857
1871
|
}
|
|
1858
|
-
function
|
|
1872
|
+
function kt(r) {
|
|
1859
1873
|
return window.axios({
|
|
1860
1874
|
url: "/sysMenu/treeForGrant",
|
|
1861
1875
|
method: "get",
|
|
1862
|
-
params:
|
|
1876
|
+
params: r
|
|
1863
1877
|
});
|
|
1864
1878
|
}
|
|
1865
|
-
function Ce(
|
|
1879
|
+
function Ce(r) {
|
|
1866
1880
|
return window.axios({
|
|
1867
1881
|
url: "/sysMenu/change",
|
|
1868
1882
|
method: "post",
|
|
1869
|
-
data:
|
|
1883
|
+
data: r
|
|
1870
1884
|
});
|
|
1871
1885
|
}
|
|
1872
|
-
function
|
|
1886
|
+
function At(r) {
|
|
1873
1887
|
return window.axios({
|
|
1874
1888
|
url: "/sysMenu/listByAppsId",
|
|
1875
1889
|
method: "post",
|
|
1876
|
-
params:
|
|
1890
|
+
params: r
|
|
1877
1891
|
});
|
|
1878
1892
|
}
|
|
1879
1893
|
const be = {
|
|
@@ -1897,10 +1911,10 @@ const be = {
|
|
|
1897
1911
|
},
|
|
1898
1912
|
computed: {
|
|
1899
1913
|
predefine() {
|
|
1900
|
-
let
|
|
1914
|
+
let r = [];
|
|
1901
1915
|
return Y.forEach((e) => {
|
|
1902
|
-
|
|
1903
|
-
}),
|
|
1916
|
+
r.push(e.color);
|
|
1917
|
+
}), r;
|
|
1904
1918
|
},
|
|
1905
1919
|
...W(["userInfo", "addRouters", "theme", "primaryColor", "echartsColor", "systemInfo"])
|
|
1906
1920
|
},
|
|
@@ -1910,16 +1924,16 @@ const be = {
|
|
|
1910
1924
|
}
|
|
1911
1925
|
},
|
|
1912
1926
|
methods: {
|
|
1913
|
-
okColor(
|
|
1914
|
-
this.$store.dispatch("EchartsColor",
|
|
1927
|
+
okColor(r) {
|
|
1928
|
+
this.$store.dispatch("EchartsColor", r), this.echartsList = [...r];
|
|
1915
1929
|
},
|
|
1916
1930
|
getColor() {
|
|
1917
1931
|
this.echartsList = [...this.echartsColor];
|
|
1918
1932
|
},
|
|
1919
1933
|
renew() {
|
|
1920
|
-
let
|
|
1921
|
-
if (e.length == 0 && (
|
|
1922
|
-
|
|
1934
|
+
let r = this, e = this.homePage, o = !1;
|
|
1935
|
+
if (e.length == 0 && (o = !0), e.length > 1 && (o = !0), !o) {
|
|
1936
|
+
r.$message.error(r.$i18nt("gd.field.replenishData", "\u8BF7\u8865\u5145\u6570\u636E"));
|
|
1923
1937
|
return;
|
|
1924
1938
|
}
|
|
1925
1939
|
this.$confirm(
|
|
@@ -1943,16 +1957,16 @@ const be = {
|
|
|
1943
1957
|
}
|
|
1944
1958
|
);
|
|
1945
1959
|
},
|
|
1946
|
-
renewHand(
|
|
1947
|
-
if (
|
|
1948
|
-
|
|
1960
|
+
renewHand(r, e, o, a) {
|
|
1961
|
+
if (r !== "confirm") {
|
|
1962
|
+
o();
|
|
1949
1963
|
return;
|
|
1950
1964
|
}
|
|
1951
1965
|
let d = [], h = ne({
|
|
1952
1966
|
configTheme: a.join(",")
|
|
1953
1967
|
}).then((y) => y);
|
|
1954
1968
|
d.push(h), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(d).then((y) => {
|
|
1955
|
-
|
|
1969
|
+
o(), e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0;
|
|
1956
1970
|
const $ = y.filter((I) => !I.success);
|
|
1957
1971
|
$.length === 0 ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$store.dispatch("GetInfo").then(() => {
|
|
1958
1972
|
})) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + $[0].message);
|
|
@@ -1961,8 +1975,8 @@ const be = {
|
|
|
1961
1975
|
init() {
|
|
1962
1976
|
this.value = this.theme == "dark" ? 1 : 0, this.homePage = this.userInfo.configtheme ? this.userInfo.configtheme.split(",") : [], this.systemInfo.id ? this.systemInfo : window.$systemInfo;
|
|
1963
1977
|
},
|
|
1964
|
-
lazyLoad(
|
|
1965
|
-
const { level:
|
|
1978
|
+
lazyLoad(r, e) {
|
|
1979
|
+
const { level: o, value: a } = r;
|
|
1966
1980
|
if (this.options.length === 0) {
|
|
1967
1981
|
this.geData().then(() => {
|
|
1968
1982
|
if (this.presentText.length < this.homePage.length) {
|
|
@@ -1974,9 +1988,9 @@ const be = {
|
|
|
1974
1988
|
return;
|
|
1975
1989
|
}
|
|
1976
1990
|
this.getMenuListAll(a).then((d) => {
|
|
1977
|
-
if (this.presentText.length < this.homePage.length &&
|
|
1978
|
-
this.presentText = this.presentText.concat([
|
|
1979
|
-
const y =
|
|
1991
|
+
if (this.presentText.length < this.homePage.length && o === 2) {
|
|
1992
|
+
this.presentText = this.presentText.concat([r.label]);
|
|
1993
|
+
const y = r.children.filter(($) => $.value === this.homePage[o])[0];
|
|
1980
1994
|
this.presentText = y ? this.presentText.concat([y.label]) : this.presentText;
|
|
1981
1995
|
}
|
|
1982
1996
|
const h = this.$refs.cascader.presentText;
|
|
@@ -1984,55 +1998,55 @@ const be = {
|
|
|
1984
1998
|
});
|
|
1985
1999
|
},
|
|
1986
2000
|
geData() {
|
|
1987
|
-
return q({}).then((
|
|
1988
|
-
if (
|
|
1989
|
-
let e =
|
|
1990
|
-
let a = this.userInfo.apps.filter((d) => d.code ==
|
|
2001
|
+
return q({}).then((r) => {
|
|
2002
|
+
if (r.success) {
|
|
2003
|
+
let e = r.data.map((o) => {
|
|
2004
|
+
let a = this.userInfo.apps.filter((d) => d.code == o.code)[0];
|
|
1991
2005
|
if (a != null)
|
|
1992
|
-
return
|
|
2006
|
+
return o.leaf = a == null, o.value = o.code, o.label = this.$i18nt(`Dynamics.${o.transkey}`, o.name), o.loading = !1, o;
|
|
1993
2007
|
});
|
|
1994
|
-
return e = e.filter((
|
|
1995
|
-
|
|
2008
|
+
return e = e.filter((o) => o !== void 0), this.options = [...e], this.listOptionsOld = JSON.stringify(e), new Promise((o) => {
|
|
2009
|
+
o();
|
|
1996
2010
|
});
|
|
1997
2011
|
}
|
|
1998
2012
|
});
|
|
1999
2013
|
},
|
|
2000
|
-
getMenuListAll(
|
|
2001
|
-
return Promise.all([this.getMenuList({ application:
|
|
2002
|
-
let
|
|
2003
|
-
return
|
|
2014
|
+
getMenuListAll(r) {
|
|
2015
|
+
return Promise.all([this.getMenuList({ application: r }), this.sysMenuChange({ application: r })]).then((e) => {
|
|
2016
|
+
let o = e[0].data, a = e[1].data;
|
|
2017
|
+
return o.map((d, h) => {
|
|
2004
2018
|
let y = a.filter(($) => $.path == d.router);
|
|
2005
|
-
return
|
|
2019
|
+
return o[h].value = d.router, o[h].label = this.$i18nt(`Dynamics.${d.transkey}`, d.name), o[h].leaf = d.children.length == 0, o[h].disabled = y.length == 0, d.children.length == 0 ? o[h].children = null : d.children.map(($, I) => {
|
|
2006
2020
|
let A = a.filter((k) => k.path == $.router);
|
|
2007
|
-
|
|
2021
|
+
o[h].children[I].value = $.router, o[h].children[I].label = this.$i18nt(`Dynamics.${$.transkey}`, $.name), o[h].children[I].children = [], o[h].children[I].leaf = !0, o[h].children[I].disabled = A.length == 0;
|
|
2008
2022
|
}), d;
|
|
2009
|
-
}),
|
|
2023
|
+
}), o.map((d) => {
|
|
2010
2024
|
d.children = d.children ? d.children.filter((h) => h.disabled == !1) : [];
|
|
2011
|
-
}),
|
|
2025
|
+
}), o;
|
|
2012
2026
|
});
|
|
2013
2027
|
},
|
|
2014
|
-
getMenuList(
|
|
2015
|
-
return xe(
|
|
2028
|
+
getMenuList(r) {
|
|
2029
|
+
return xe(r).then((e) => e);
|
|
2016
2030
|
},
|
|
2017
|
-
sysMenuChange(
|
|
2018
|
-
return Ce(
|
|
2031
|
+
sysMenuChange(r) {
|
|
2032
|
+
return Ce(r).then((e) => e);
|
|
2019
2033
|
},
|
|
2020
|
-
onChangeCascader(
|
|
2034
|
+
onChangeCascader(r) {
|
|
2021
2035
|
const e = this.$refs.cascader.presentText;
|
|
2022
2036
|
this.presentText = e !== null ? e.split(" / ") : [];
|
|
2023
2037
|
},
|
|
2024
|
-
onChange(
|
|
2025
|
-
|
|
2038
|
+
onChange(r) {
|
|
2039
|
+
r ? this.$store.dispatch("ToggleTheme", "dark") : this.$store.dispatch("ToggleTheme", "light");
|
|
2026
2040
|
},
|
|
2027
|
-
async changeColor(
|
|
2028
|
-
const e = this,
|
|
2029
|
-
if (typeof
|
|
2041
|
+
async changeColor(r) {
|
|
2042
|
+
const e = this, o = this.primaryColor;
|
|
2043
|
+
if (typeof r != "string")
|
|
2030
2044
|
return;
|
|
2031
2045
|
const a = this.$message({
|
|
2032
2046
|
message: e.$i18nt("gd.theme.switchingTopics"),
|
|
2033
2047
|
duration: 0,
|
|
2034
2048
|
iconClass: "el-icon-loading"
|
|
2035
|
-
}), d = this.getThemeCluster(
|
|
2049
|
+
}), d = this.getThemeCluster(r.replace("#", "")), h = this.getThemeCluster(o.replace("#", "")), y = (A, k) => () => {
|
|
2036
2050
|
const L = this.getThemeCluster(this.primaryColor.replace("#", "")), n = this.updateStyle(this[A], L, d);
|
|
2037
2051
|
let t = document.getElementById(k);
|
|
2038
2052
|
t || (t = document.createElement("style"), t.setAttribute("id", k), document.head.appendChild(t)), t.innerText = n;
|
|
@@ -2041,40 +2055,40 @@ const be = {
|
|
|
2041
2055
|
this.chalk = A.default;
|
|
2042
2056
|
}), y("chalk", "chalk-style")(), [].slice.call(document.querySelectorAll("style")).filter((A) => {
|
|
2043
2057
|
const k = A.innerText;
|
|
2044
|
-
return new RegExp(
|
|
2058
|
+
return new RegExp(o, "i").test(k) && !/Chalk Variables/.test(k);
|
|
2045
2059
|
}).forEach((A) => {
|
|
2046
2060
|
const { innerText: k } = A;
|
|
2047
2061
|
typeof k == "string" && (A.innerText = this.updateStyle(k, h, d));
|
|
2048
|
-
}), this.$store.dispatch("ToggleColor",
|
|
2062
|
+
}), this.$store.dispatch("ToggleColor", r), window.document.body.style = `--color:${r}`, this.$nextTick(() => {
|
|
2049
2063
|
setTimeout(() => {
|
|
2050
2064
|
a.close();
|
|
2051
2065
|
}, 200);
|
|
2052
2066
|
});
|
|
2053
2067
|
},
|
|
2054
|
-
updateStyle(
|
|
2055
|
-
let a =
|
|
2068
|
+
updateStyle(r, e, o) {
|
|
2069
|
+
let a = r;
|
|
2056
2070
|
return e.forEach((d, h) => {
|
|
2057
|
-
a = a.replace(new RegExp(d, "ig"),
|
|
2071
|
+
a = a.replace(new RegExp(d, "ig"), o[h]);
|
|
2058
2072
|
}), a;
|
|
2059
2073
|
},
|
|
2060
|
-
getThemeCluster(
|
|
2074
|
+
getThemeCluster(r) {
|
|
2061
2075
|
const e = (d, h) => {
|
|
2062
2076
|
let y = parseInt(d.slice(0, 2), 16), $ = parseInt(d.slice(2, 4), 16), I = parseInt(d.slice(4, 6), 16);
|
|
2063
2077
|
return h === 0 ? [y, $, I].join(",") : (y += Math.round(h * (255 - y)), $ += Math.round(h * (255 - $)), I += Math.round(h * (255 - I)), y = y.toString(16), $ = $.toString(16), I = I.toString(16), `#${y}${$}${I}`);
|
|
2064
|
-
},
|
|
2078
|
+
}, o = (d, h) => {
|
|
2065
2079
|
let y = parseInt(d.slice(0, 2), 16), $ = parseInt(d.slice(2, 4), 16), I = parseInt(d.slice(4, 6), 16);
|
|
2066
2080
|
return y = Math.round((1 - h) * y), $ = Math.round((1 - h) * $), I = Math.round((1 - h) * I), y = y.toString(16), $ = $.toString(16), I = I.toString(16), `#${y}${$}${I}`;
|
|
2067
|
-
}, a = [
|
|
2081
|
+
}, a = [r];
|
|
2068
2082
|
for (let d = 0; d <= 9; d++)
|
|
2069
|
-
a.push(e(
|
|
2070
|
-
return a.push(r
|
|
2083
|
+
a.push(e(r, Number((d / 10).toFixed(2))));
|
|
2084
|
+
return a.push(o(r, 0.1)), a;
|
|
2071
2085
|
},
|
|
2072
|
-
traverse(
|
|
2073
|
-
let
|
|
2074
|
-
const a = (d) => (d = d.filter((h, y) => (h.children && h.children.length > 0 && a(h.children), h.value ==
|
|
2086
|
+
traverse(r, e) {
|
|
2087
|
+
let o = null;
|
|
2088
|
+
const a = (d) => (d = d.filter((h, y) => (h.children && h.children.length > 0 && a(h.children), h.value == r && (o = {
|
|
2075
2089
|
...h
|
|
2076
2090
|
}), !0)), d);
|
|
2077
|
-
return a(this.propOptions),
|
|
2091
|
+
return a(this.propOptions), o;
|
|
2078
2092
|
}
|
|
2079
2093
|
},
|
|
2080
2094
|
mounted() {
|
|
@@ -2082,18 +2096,18 @@ const be = {
|
|
|
2082
2096
|
}
|
|
2083
2097
|
};
|
|
2084
2098
|
var _e = function() {
|
|
2085
|
-
var e = this,
|
|
2086
|
-
return
|
|
2099
|
+
var e = this, o = e._self._c;
|
|
2100
|
+
return o("div", { staticStyle: { "padding-top": "12px" } }, [o("el-row", { attrs: { gutter: 20 } }, [o("el-col", { attrs: { span: 24 } }, [o("div", [e._v(e._s(e.$i18nt("gd.settings.overallStyle", "\u6574\u4F53\u98CE\u683C\u8BBE\u7F6E")))])])], 1), o("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [o("el-col", { attrs: { span: 8 } }, [o("div", { staticClass: "grid-content strength", staticStyle: { color: "rgba(0, 0, 0, 0.45)" } }, [e._v(" " + e._s(e.$i18nt("gd.settings.overallStyleTip", "\u6574\u4F53\u98CE\u683C\u8BBE\u7F6E")) + " ")])]), o("el-col", { attrs: { span: 16 } }, [o("div", { staticClass: "grid-content paw grid-flex" }, [o("el-switch", { attrs: { "active-text": e.$i18nt("gd.settings.darkness", "\u767D\u8272"), "active-color": e.primaryColor, "inactive-text": e.$i18nt("gd.settings.white", "\u6697\u8272"), "active-value": 1, "inactive-value": 0 }, on: { change: e.onChange }, model: { value: e.value, callback: function(a) {
|
|
2087
2101
|
e.value = a;
|
|
2088
|
-
}, expression: "value" } })], 1)])], 1),
|
|
2102
|
+
}, expression: "value" } })], 1)])], 1), o("el-divider"), o("el-row", { attrs: { gutter: 20 } }, [o("el-col", { attrs: { span: 24 } }, [o("div", [e._v(e._s(e.$i18nt("gd.settings.theme", "\u4E3B\u9898\u8272")))])])], 1), o("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [o("el-col", { attrs: { span: 8 } }, [o("div", { staticClass: "grid-content strength", staticStyle: { color: "rgba(0, 0, 0, 0.45)" } }, [e._v(" " + e._s(e.$i18nt("gd.settings.themeTip", "\u9875\u9762\u4E3B\u9898\u914D\u8272")) + " ")])]), o("el-col", { attrs: { span: 16 } }, [o("div", { staticClass: "grid-content paw grid-flex" }, [o("el-color-picker", { ref: "colorPicker", staticClass: "theme-picker", attrs: { size: "small", predefine: e.predefine, "popper-class": "theme-picker-dropdown" }, on: { change: e.changeColor }, model: { value: e.primaryColors, callback: function(a) {
|
|
2089
2103
|
e.primaryColors = a;
|
|
2090
|
-
}, expression: "primaryColors" } })], 1)])], 1),
|
|
2091
|
-
return [
|
|
2092
|
-
}),
|
|
2104
|
+
}, expression: "primaryColors" } })], 1)])], 1), o("el-divider"), o("el-row", { attrs: { gutter: 20 } }, [o("el-col", { attrs: { span: 24 } }, [o("div", [e._v(e._s(e.$i18nt("gd.settings.echartsColor", "\u56FE\u8868\u8272")))])])], 1), o("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [o("el-col", { attrs: { span: 8 } }, [o("div", { staticClass: "grid-content strength", staticStyle: { color: "rgba(0, 0, 0, 0.45)" } }, [e._v(" " + e._s(e.$i18nt("gd.settings.echartsColorStyle", "\u56FE\u8868\u98CE\u683C\u914D\u8272")) + " ")])]), o("el-col", { attrs: { span: 16 } }, [o("div", { staticClass: "grid-flex" }, [e._l(e.echartsList, function(a, d) {
|
|
2105
|
+
return [o("el-tooltip", { staticClass: "setting-drawer-theme-color-colorBlock", attrs: { content: a === 0 ? e.$i18nt("gd.settings.followTheme", "\u8DDF\u968F\u7CFB\u7EDF\u4E3B\u9898\u8272") : a } }, [o("el-tag", { attrs: { color: a === 0 ? e.primaryColor : a } })], 1)];
|
|
2106
|
+
}), o("span", { staticClass: "active-color", staticStyle: { cursor: "pointer" }, on: { click: function(a) {
|
|
2093
2107
|
return e.$refs.echartsTheme.open();
|
|
2094
|
-
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.edit", "\u7F16\u8F91")) + " ")])], 2)])], 1),
|
|
2108
|
+
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.edit", "\u7F16\u8F91")) + " ")])], 2)])], 1), o("el-divider"), o("el-row", { attrs: { gutter: 20 } }, [o("el-col", { attrs: { span: 24 } }, [o("div", [e._v(e._s(e.$i18nt("gd.settings.homepage", "\u4E2A\u4EBA\u9996\u9875")))])])], 1), o("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [o("el-col", { attrs: { span: 8 } }, [o("div", { staticClass: "grid-content strength", staticStyle: { color: "rgba(0, 0, 0, 0.45)" } }, [e._v(" " + e._s(e.$i18nt("gd.settings.homepageTip", "\u914D\u7F6E\u540E\u7528\u6237\u767B\u5F55\u76F4\u63A5\u8FDB\u5165\u4E2A\u4EBA\u9996\u9875")) + " ")])]), o("el-col", { attrs: { span: 16 } }, [o("div", { staticClass: "grid-flex" }, [o("el-cascader", { ref: "cascader", staticStyle: { width: "240px" }, attrs: { clearable: "", props: { lazy: !0, lazyLoad: e.lazyLoad } }, on: { change: e.onChangeCascader }, model: { value: e.homePage, callback: function(a) {
|
|
2095
2109
|
e.homePage = a;
|
|
2096
|
-
}, expression: "homePage" } }),
|
|
2110
|
+
}, expression: "homePage" } }), o("span", { staticClass: "active-color", staticStyle: { "margin-left": "10px", cursor: "pointer" }, on: { click: e.renew } }, [e._v(" " + e._s(e.$i18nt("gd.btn.update", "\u66F4\u65B0")) + " ")])], 1)])], 1), o("el-divider"), o("gd-color-editor", { ref: "echartsTheme", on: { ok: e.okColor } })], 1);
|
|
2097
2111
|
}, $e = [], Ie = /* @__PURE__ */ M(
|
|
2098
2112
|
be,
|
|
2099
2113
|
_e,
|
|
@@ -2105,8 +2119,8 @@ var _e = function() {
|
|
|
2105
2119
|
null
|
|
2106
2120
|
);
|
|
2107
2121
|
const F = Ie.exports;
|
|
2108
|
-
F.install = function(
|
|
2109
|
-
|
|
2122
|
+
F.install = function(r) {
|
|
2123
|
+
r.component(F.name, F);
|
|
2110
2124
|
};
|
|
2111
2125
|
const Se = {
|
|
2112
2126
|
props: {
|
|
@@ -2169,23 +2183,23 @@ const Se = {
|
|
|
2169
2183
|
toggleFullscreen() {
|
|
2170
2184
|
this.fullscreen = !this.fullscreen;
|
|
2171
2185
|
},
|
|
2172
|
-
open(
|
|
2173
|
-
this.fullscreen = !1, this.userId =
|
|
2186
|
+
open(r, e, o) {
|
|
2187
|
+
this.fullscreen = !1, this.userId = r, this.code = e, this.num = o, this.num == 1 ? this.getConfigInfo() : this.$nextTick(() => {
|
|
2174
2188
|
this.formUpdPwd.setFieldsValue({
|
|
2175
2189
|
account: this.userId
|
|
2176
2190
|
});
|
|
2177
2191
|
}), this.visible = !0;
|
|
2178
2192
|
},
|
|
2179
|
-
getConfigInfo(
|
|
2180
|
-
|
|
2193
|
+
getConfigInfo(r) {
|
|
2194
|
+
oe().then((e) => {
|
|
2181
2195
|
this.min = parseInt(e.data.lengthrule.value), this.lenMin = parseInt(e.data.lengthrule.value), this.messageTip = e.data.lengthrule.remark, this.maskValue = e.data.combinationrule.value, this.lenMax = 16, this.maskValue.includes("AL") && this.maskValue.includes("NU") && this.maskValue.includes("SC") ? this.pattern = new RegExp(
|
|
2182
2196
|
`^(?=.*\\d)(?=.*?[a-z])(?=.*?[A-Z])(?=.*[~!@#$%^&*])[\\da-zA-Z~!@#$%^&*]{${this.lenMin},${this.lenMax}}$`
|
|
2183
2197
|
) : this.maskValue.includes("AL") && this.maskValue.includes("NU") ? this.pattern = new RegExp("(?=.*\\d)(?=.*?[a-z])(?=.*?[A-Z])") : this.maskValue.includes("AL") && this.maskValue.includes("SC") ? this.pattern = new RegExp("(?=.*[~!@#$%^&*])(?=.*?[a-z])(?=.*?[A-Z]))") : this.maskValue.includes("NU") && this.maskValue.includes("SC") ? this.pattern = new RegExp("(?=.*\\d)(?=.*[~!@#$%^&*])") : this.maskValue.includes("AL") ? this.pattern = new RegExp("^(?=.*?[a-z])(?=.*?[A-Z])") : this.maskValue.includes("NU") ? this.pattern = new RegExp("\\d") : this.maskValue.includes("SC") && (this.pattern = new RegExp("[^a-zA-Z0-9]")), this.messageTipErr = e.data.combinationrule.remark;
|
|
2184
2198
|
});
|
|
2185
2199
|
},
|
|
2186
2200
|
handleSubmit() {
|
|
2187
|
-
this.$refs.ruleForm.validate((
|
|
2188
|
-
if (
|
|
2201
|
+
this.$refs.ruleForm.validate((r) => {
|
|
2202
|
+
if (r) {
|
|
2189
2203
|
this.confirmLoading = !0;
|
|
2190
2204
|
let e;
|
|
2191
2205
|
this.num == 1 ? e = {
|
|
@@ -2196,7 +2210,7 @@ const Se = {
|
|
|
2196
2210
|
account: this.ruleForm.account,
|
|
2197
2211
|
password: this.ruleForm.password,
|
|
2198
2212
|
corpCode: this.code
|
|
2199
|
-
}, (this.num == 1 ?
|
|
2213
|
+
}, (this.num == 1 ? re : ie)(e).then((a) => {
|
|
2200
2214
|
a.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.handleCancel()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + a.message);
|
|
2201
2215
|
}).finally((a) => {
|
|
2202
2216
|
this.confirmLoading = !1;
|
|
@@ -2207,48 +2221,48 @@ const Se = {
|
|
|
2207
2221
|
handleCancel() {
|
|
2208
2222
|
this.$refs.ruleForm.resetFields(), this.visible = !1;
|
|
2209
2223
|
},
|
|
2210
|
-
compareToFirstPassword(
|
|
2211
|
-
e && e !== this.ruleForm.newPassword ?
|
|
2224
|
+
compareToFirstPassword(r, e, o) {
|
|
2225
|
+
e && e !== this.ruleForm.newPassword ? o(this.$i18nt("gd.account.repeatPawTiperr", " \u8BF7\u786E\u8BA4\u4E24\u6B21\u8F93\u5165\u5BC6\u7801\u7684\u4E00\u81F4\u6027")) : o();
|
|
2212
2226
|
},
|
|
2213
|
-
oldtPassword(
|
|
2214
|
-
e && e === this.ruleForm.password ?
|
|
2227
|
+
oldtPassword(r, e, o) {
|
|
2228
|
+
e && e === this.ruleForm.password ? o(this.$i18nt("gd.account.repeatPawTipodl", "\u65B0\u5BC6\u7801\u4E0D\u80FD\u4E0E\u539F\u5BC6\u7801\u91CD\u590D")) : o();
|
|
2215
2229
|
},
|
|
2216
|
-
doEvent(
|
|
2217
|
-
let e =
|
|
2230
|
+
doEvent(r) {
|
|
2231
|
+
let e = r.item.functionName;
|
|
2218
2232
|
this[e] && this[e]();
|
|
2219
2233
|
}
|
|
2220
2234
|
}
|
|
2221
2235
|
};
|
|
2222
2236
|
var ke = function() {
|
|
2223
|
-
var e = this,
|
|
2224
|
-
return
|
|
2237
|
+
var e = this, o = e._self._c;
|
|
2238
|
+
return o("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.modalStyle.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(a) {
|
|
2225
2239
|
e.visible = a;
|
|
2226
|
-
}, closed: e.handleCancel } }, [
|
|
2240
|
+
}, closed: e.handleCancel } }, [o("gd-modal-title", { attrs: { slot: "title", title: e.title, fullscreen: e.fullscreen, buttons: e.sysViewButtons, confirmLoading: e.confirmLoading, showClose: !0, closed: "handleCancel" }, on: { changeEvent: e.doEvent }, slot: "title" }), o("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticClass: "gd-model-body", class: e.fullscreen ? "modal-bodyq" : "modal-body", staticStyle: { margin: "10px 10px 10px" } }, [o("el-form", { ref: "ruleForm", attrs: { model: e.ruleForm, "label-width": "110px", "label-position": e.labelPosition }, nativeOn: { submit: function(a) {
|
|
2227
2241
|
a.preventDefault();
|
|
2228
|
-
} } }, [e.num == 1 ?
|
|
2242
|
+
} } }, [e.num == 1 ? o("div", [o("el-form-item", { attrs: { label: e.$i18nt("gd.account.originalPaw", "\u539F\u5BC6\u7801"), prop: "password", rules: [{ required: !0, message: e.$i18nt("gd.placeholder.input") }] } }, [o("el-input", { attrs: { maxlength: 18, "show-password": "", placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.password, callback: function(a) {
|
|
2229
2243
|
e.$set(e.ruleForm, "password", a);
|
|
2230
|
-
}, expression: "ruleForm.password" } })], 1),
|
|
2244
|
+
}, expression: "ruleForm.password" } })], 1), o("el-form-item", { attrs: { label: e.$i18nt("gd.account.newPaw", "\u65B0\u5BC6\u7801"), prop: "newPassword", rules: [
|
|
2231
2245
|
{ required: !0, min: e.min, message: e.messageTip },
|
|
2232
2246
|
{
|
|
2233
2247
|
pattern: e.pattern,
|
|
2234
2248
|
message: e.messageTipErr
|
|
2235
2249
|
},
|
|
2236
2250
|
{ validator: e.oldtPassword }
|
|
2237
|
-
] } }, [
|
|
2251
|
+
] } }, [o("el-input", { attrs: { maxlength: 18, "show-password": "", placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.newPassword, callback: function(a) {
|
|
2238
2252
|
e.$set(e.ruleForm, "newPassword", a);
|
|
2239
|
-
}, expression: "ruleForm.newPassword" } })], 1),
|
|
2253
|
+
}, expression: "ruleForm.newPassword" } })], 1), o("el-form-item", { attrs: { label: e.$i18nt("gd.account.repeatPaw", "\u91CD\u590D\u65B0\u5BC6\u7801"), prop: "confirm", rules: [
|
|
2240
2254
|
{ required: !0, message: e.$i18nt("gd.account.repeatPawTip", "\u8BF7\u518D\u6B21\u8F93\u5165\u65B0\u5BC6\u7801") },
|
|
2241
2255
|
{ validator: e.compareToFirstPassword }
|
|
2242
|
-
] } }, [
|
|
2256
|
+
] } }, [o("el-input", { attrs: { maxlength: 18, "show-password": "", placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.confirm, callback: function(a) {
|
|
2243
2257
|
e.$set(e.ruleForm, "confirm", a);
|
|
2244
|
-
}, expression: "ruleForm.confirm" } })], 1)], 1) :
|
|
2258
|
+
}, expression: "ruleForm.confirm" } })], 1)], 1) : o("div", [o("el-form-item", { attrs: { label: e.$i18nt("gd.account.loginID", "\u8D26\u53F7"), prop: "account", rules: [
|
|
2245
2259
|
{
|
|
2246
2260
|
required: !0,
|
|
2247
2261
|
message: this.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165")
|
|
2248
2262
|
}
|
|
2249
|
-
] } }, [
|
|
2263
|
+
] } }, [o("el-input", { attrs: { placeholder: e.$i18nt("gd.login.account", "\u8BF7\u8F93\u5165\u8D26\u53F7"), disabled: e.disabled }, model: { value: e.ruleForm.account, callback: function(a) {
|
|
2250
2264
|
e.$set(e.ruleForm, "account", a);
|
|
2251
|
-
}, expression: "ruleForm.account" } })], 1),
|
|
2265
|
+
}, expression: "ruleForm.account" } })], 1), o("el-form-item", { attrs: { label: e.$i18nt("gd.login.password", "\u5BC6\u7801"), prop: "password", rules: [{ required: !0, message: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }] } }, [o("el-input", { attrs: { maxlength: 18, placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), "show-password": "" }, model: { value: e.ruleForm.password, callback: function(a) {
|
|
2252
2266
|
e.$set(e.ruleForm, "password", a);
|
|
2253
2267
|
}, expression: "ruleForm.password" } })], 1)], 1)])], 1)], 1);
|
|
2254
2268
|
}, Ae = [], Le = /* @__PURE__ */ M(
|
|
@@ -2311,13 +2325,13 @@ const Te = {
|
|
|
2311
2325
|
mounted() {
|
|
2312
2326
|
},
|
|
2313
2327
|
methods: {
|
|
2314
|
-
open(
|
|
2315
|
-
this.num = e, this.visible = !0, this.titleWidth = this.language == "zh_CN" ? 350 + "px" : 504 + "px", this.num == 1 && this.getWeChat(
|
|
2328
|
+
open(r, e) {
|
|
2329
|
+
this.num = e, this.visible = !0, this.titleWidth = this.language == "zh_CN" ? 350 + "px" : 504 + "px", this.num == 1 && this.getWeChat(r);
|
|
2316
2330
|
},
|
|
2317
|
-
getWeChat(
|
|
2331
|
+
getWeChat(r) {
|
|
2318
2332
|
let e = this;
|
|
2319
|
-
|
|
2320
|
-
|
|
2333
|
+
r.data.forEach((o, a) => {
|
|
2334
|
+
o.code == "GDS_ENTERPRISE_WECHAT_CropID" && (e.appId = o.value), o.code == "GDS_ENTERPRISE_WECHAT_AgentId" && (e.agentId = o.value), o.code == "GDS_ENTERPRISE_WECHAT_Redirect_URL" && (e.redirectURL = o.value);
|
|
2321
2335
|
}), setTimeout(() => {
|
|
2322
2336
|
e.wwLogin = ww.createWWLoginPanel({
|
|
2323
2337
|
el: "#wx_qrcode",
|
|
@@ -2331,13 +2345,13 @@ const Te = {
|
|
|
2331
2345
|
panel_size: e.language == "zh_CN" ? "small" : "middle",
|
|
2332
2346
|
lang: e.language == "zh_CN" ? "zh" : "en"
|
|
2333
2347
|
},
|
|
2334
|
-
onCheckWeComLogin({ isWeComLogin:
|
|
2335
|
-
e.isWeComLogin =
|
|
2348
|
+
onCheckWeComLogin({ isWeComLogin: o }) {
|
|
2349
|
+
e.isWeComLogin = o, e.num1 = e.isWeComLogin == !0 ? 1 : 0;
|
|
2336
2350
|
},
|
|
2337
|
-
onLoginSuccess({ code:
|
|
2338
|
-
e.code =
|
|
2351
|
+
onLoginSuccess({ code: o }) {
|
|
2352
|
+
e.code = o, e.$refs.updPwd.open(e.userInfo.account, o, 2), e.visible = !1;
|
|
2339
2353
|
},
|
|
2340
|
-
onLoginFail(
|
|
2354
|
+
onLoginFail(o) {
|
|
2341
2355
|
}
|
|
2342
2356
|
});
|
|
2343
2357
|
}, 500);
|
|
@@ -2348,10 +2362,10 @@ const Te = {
|
|
|
2348
2362
|
}
|
|
2349
2363
|
};
|
|
2350
2364
|
var Ee = function() {
|
|
2351
|
-
var e = this,
|
|
2352
|
-
return
|
|
2365
|
+
var e = this, o = e._self._c;
|
|
2366
|
+
return o("div", [o("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", attrs: { visible: e.visible, width: e.titleWidth, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px" }, on: { "update:visible": function(a) {
|
|
2353
2367
|
e.visible = a;
|
|
2354
|
-
}, closed: e.handleCancel } }, [
|
|
2368
|
+
}, closed: e.handleCancel } }, [o("div", { staticClass: "main", style: e.style }, [e.num == 1 ? o("div", [o("div", { ref: "wx_qrcode", style: e.num1 == 0 ? "height: 290px;" : "height: 290px", attrs: { id: "wx_qrcode" } }), o("div", { class: e.num1 == 0 ? "div_top" : "div_topno" }), o("div", { class: e.num1 == 0 ? "div_bottom" : "" })]) : e._e()])]), o("upd-pwd", { ref: "updPwd" })], 1);
|
|
2355
2369
|
}, Oe = [], Me = /* @__PURE__ */ M(
|
|
2356
2370
|
Te,
|
|
2357
2371
|
Ee,
|
|
@@ -2384,10 +2398,10 @@ const He = {
|
|
|
2384
2398
|
};
|
|
2385
2399
|
},
|
|
2386
2400
|
watch: {
|
|
2387
|
-
language(
|
|
2401
|
+
language(r, e) {
|
|
2388
2402
|
this.changeLanguage();
|
|
2389
2403
|
},
|
|
2390
|
-
userInfo(
|
|
2404
|
+
userInfo(r, e) {
|
|
2391
2405
|
this.changUserInfo();
|
|
2392
2406
|
}
|
|
2393
2407
|
},
|
|
@@ -2407,7 +2421,7 @@ const He = {
|
|
|
2407
2421
|
this.$refs.weChatBind.open(this.obj, 1);
|
|
2408
2422
|
},
|
|
2409
2423
|
getConfigInfo() {
|
|
2410
|
-
|
|
2424
|
+
se({
|
|
2411
2425
|
code: "GDS_ENTERPRISE_WECHAT_LOGIN"
|
|
2412
2426
|
}).then((e) => {
|
|
2413
2427
|
this.enterpriseNum = e.data.value;
|
|
@@ -2421,8 +2435,8 @@ const He = {
|
|
|
2421
2435
|
});
|
|
2422
2436
|
},
|
|
2423
2437
|
getData() {
|
|
2424
|
-
G().then((
|
|
2425
|
-
this.wxuserid =
|
|
2438
|
+
G().then((r) => {
|
|
2439
|
+
this.wxuserid = r.data.wxuserid;
|
|
2426
2440
|
});
|
|
2427
2441
|
},
|
|
2428
2442
|
changeLanguage() {
|
|
@@ -2434,18 +2448,18 @@ const He = {
|
|
|
2434
2448
|
init() {
|
|
2435
2449
|
this.wxuserid = this.userInfo.wxuserid, this.getConfigInfo(), this.getData(), this.getConfigsBy();
|
|
2436
2450
|
},
|
|
2437
|
-
getWeChat(
|
|
2438
|
-
let
|
|
2439
|
-
|
|
2440
|
-
a.code == "GDS_ENTERPRISE_WECHAT_CropID" && (
|
|
2451
|
+
getWeChat(r, e) {
|
|
2452
|
+
let o = this;
|
|
2453
|
+
r.data.forEach((a, d) => {
|
|
2454
|
+
a.code == "GDS_ENTERPRISE_WECHAT_CropID" && (o.appId = a.value), a.code == "GDS_ENTERPRISE_WECHAT_AgentId" && (o.agentId = a.value), a.code == "GDS_ENTERPRISE_WECHAT_Redirect_URL" && (o.redirectURL = a.value);
|
|
2441
2455
|
}), setTimeout(() => {
|
|
2442
|
-
|
|
2456
|
+
o.wwLogin = ww.createWWLoginPanel({
|
|
2443
2457
|
el: "#wx_qrcode",
|
|
2444
2458
|
params: {
|
|
2445
2459
|
login_type: "CorpApp",
|
|
2446
|
-
appid:
|
|
2447
|
-
agentid:
|
|
2448
|
-
redirect_uri:
|
|
2460
|
+
appid: o.appId,
|
|
2461
|
+
agentid: o.agentId,
|
|
2462
|
+
redirect_uri: o.redirectURL,
|
|
2449
2463
|
state: "loginState",
|
|
2450
2464
|
redirect_type: "callback",
|
|
2451
2465
|
panel_size: "middle",
|
|
@@ -2455,21 +2469,21 @@ const He = {
|
|
|
2455
2469
|
console.log(a);
|
|
2456
2470
|
},
|
|
2457
2471
|
onLoginSuccess({ code: a }) {
|
|
2458
|
-
|
|
2472
|
+
o.code = a, o.$refs.updPwd.open(o.userInfo.account, a, 2), console.log(a);
|
|
2459
2473
|
},
|
|
2460
2474
|
onLoginFail(a) {
|
|
2461
2475
|
}
|
|
2462
2476
|
});
|
|
2463
2477
|
}, 500);
|
|
2464
2478
|
},
|
|
2465
|
-
bindCode(
|
|
2466
|
-
|
|
2479
|
+
bindCode(r) {
|
|
2480
|
+
r == 1 || r == 0 ? this.getData() : r == -1 ? this.getConfigsBy() : r == 2 && this.getConfigsBy();
|
|
2467
2481
|
}
|
|
2468
2482
|
}
|
|
2469
2483
|
};
|
|
2470
2484
|
var Ue = function() {
|
|
2471
|
-
var e = this,
|
|
2472
|
-
return
|
|
2485
|
+
var e = this, o = e._self._c;
|
|
2486
|
+
return o("div", { staticStyle: { "padding-top": "12px" } }, [o("el-row", { attrs: { gutter: 20 } }, [o("el-col", { attrs: { span: 24 } }, [o("div", { staticClass: "grid-content bg-purple" }, [e._v(" " + e._s(e.$i18nt("gd.account.passWord", "\u8D26\u6237\u5BC6\u7801")) + " ")])])], 1), o("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [o("el-col", { attrs: { span: 8 } }, [o("div", { staticClass: "grid-content strength", staticStyle: { color: "rgba(0, 0, 0, .45)" } }, [e._v(" " + e._s(e.$i18nt("gd.account.strength", "\u5F53\u524D\u5BC6\u7801\u5F3A\u5EA6")) + ":" + e._s(e.$i18nt("gd.account.strong", "\u5F3A")) + " ")])]), o("el-col", { attrs: { span: 16 } }, [o("div", { staticClass: "grid-content paw grid-flex" }, [o("span", { staticClass: "active-color", staticStyle: { cursor: "pointer" }, on: { click: e.updPwd } }, [e._v(" " + e._s(e.$i18nt("gd.account.changePaw", "\u4FEE\u6539\u5BC6\u7801")) + " ")])])])], 1), o("el-divider"), o("el-row", { attrs: { gutter: 20 } }, [o("el-col", { attrs: { span: 24 } }, [o("div", { staticClass: "grid-content bd", staticStyle: { color: "rgba(0, 0, 0, .45)" } }, [e._v(" " + e._s(e.$i18nt("gd.account.bindenterpriseWechat", "\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1")) + " ")])])], 1), o("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [o("el-col", { attrs: { span: 8 } }, [o("div", { staticClass: "grid-content state" }, [e._v(" " + e._s(e.$i18nt("gd.account.currentState", "\u5F53\u524D\u72B6\u6001")) + ":" + e._s(e.wxUserId == null || e.wxUserId == "" ? e.$i18nt("gd.state.no", "\u5426") : e.$i18nt("gd.state.yes", "\u662F")) + " ")])]), e.wxUserId == null || e.wxUserId == "" ? o("el-col", { attrs: { span: 16 } }, [o("div", { staticClass: "grid-content paw grid-flex" }, [o("span", { staticClass: "active-color", staticStyle: { cursor: "pointer" }, on: { click: e.bind } }, [e._v(e._s(e.$i18nt("gd.account.bind", "\u7ED1\u5B9A")))])])]) : e._e()], 1), o("upd-pwd", { ref: "updPwd", attrs: { isShow: e.isShow }, on: { bindCode: e.bindCode } }), o("weChatBind", { ref: "weChatBind", on: { bindCode: e.bindCode } })], 1);
|
|
2473
2487
|
}, Pe = [], Fe = /* @__PURE__ */ M(
|
|
2474
2488
|
He,
|
|
2475
2489
|
Ue,
|
|
@@ -2481,54 +2495,56 @@ var Ue = function() {
|
|
|
2481
2495
|
null
|
|
2482
2496
|
);
|
|
2483
2497
|
const B = Fe.exports;
|
|
2484
|
-
B.install = function(
|
|
2485
|
-
|
|
2498
|
+
B.install = function(r) {
|
|
2499
|
+
r.component(B.name, B);
|
|
2486
2500
|
};
|
|
2487
2501
|
export {
|
|
2488
2502
|
ze as A,
|
|
2489
2503
|
Y as B,
|
|
2490
|
-
|
|
2504
|
+
bt as C,
|
|
2491
2505
|
P as D,
|
|
2492
2506
|
B as E,
|
|
2493
2507
|
F,
|
|
2494
2508
|
U as G,
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
+
_t as H,
|
|
2510
|
+
It as I,
|
|
2511
|
+
St as J,
|
|
2512
|
+
Qe as K,
|
|
2513
|
+
$t as L,
|
|
2514
|
+
Ke as M,
|
|
2515
|
+
Je as N,
|
|
2516
|
+
et as O,
|
|
2517
|
+
pt as P,
|
|
2518
|
+
re as Q,
|
|
2519
|
+
dt as R,
|
|
2520
|
+
kt as S,
|
|
2521
|
+
gt as T,
|
|
2522
|
+
ft as U,
|
|
2509
2523
|
ae as V,
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2524
|
+
qe as W,
|
|
2525
|
+
Ge as X,
|
|
2526
|
+
rt as a,
|
|
2527
|
+
At as b,
|
|
2528
|
+
xt as c,
|
|
2529
|
+
yt as d,
|
|
2530
|
+
se as e,
|
|
2531
|
+
st as f,
|
|
2532
|
+
vt as g,
|
|
2533
|
+
mt as h,
|
|
2534
|
+
Ct as i,
|
|
2535
|
+
ht as j,
|
|
2536
|
+
tt as k,
|
|
2537
|
+
ut as l,
|
|
2538
|
+
lt as m,
|
|
2539
|
+
it as n,
|
|
2540
|
+
oe as o,
|
|
2541
|
+
wt as p,
|
|
2542
|
+
ot as q,
|
|
2543
|
+
nt as r,
|
|
2544
|
+
ct as s,
|
|
2545
|
+
at as t,
|
|
2530
2546
|
Ye as u,
|
|
2531
|
-
|
|
2547
|
+
Ze as v,
|
|
2532
2548
|
Ve as w,
|
|
2533
2549
|
Ne as x,
|
|
2534
2550
|
je as y,
|