@witlink/usercenter 1.2.0 → 1.2.2

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.
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as n, watch as _, openBlock as b, createElementBlock as w, createVNode as V } from "vue";
2
- import { a3 as y, a4 as C, a5 as R, a6 as S, _ as k } from "./index.876a7009.mjs";
2
+ import { a2 as y, a3 as C, a4 as R, a5 as S, _ as k } from "./index.541530e1.mjs";
3
3
  const D = /* @__PURE__ */ v({
4
4
  __name: "RegionSelect",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { createVNode as u } from "vue";
2
- import { A as l } from "./index.876a7009.mjs";
2
+ import { A as l } from "./index.541530e1.mjs";
3
3
  var o = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" } }] }, name: "up", theme: "outlined" };
4
4
  const p = o;
5
5
  function c(r) {
@@ -1,6 +1,6 @@
1
- import { a7 as A, a8 as et, c as j, a as T, a9 as tt, aa as Ae, ab as v, ac as F, ad as Z, ae as xe, af as ie, g as nt, ag as at, ah as rt, ai as Te, aj as je, ak as We, al as He, am as lt, an as it, ao as ot, ap as st, aq as ut, ar as dt, as as ct, at as ft, u as pt, au as mt, av as gt, aw as Se, ax as vt, D as ht, ay as Ve, az as Oe, aA as bt, P as $e } from "./index.876a7009.mjs";
1
+ import { a6 as A, a7 as et, c as j, a as T, a8 as tt, a9 as Ae, aa as v, ab as F, ac as Z, ad as xe, ae as ie, g as nt, af as at, ag as rt, ah as Te, ai as je, aj as We, ak as He, al as lt, am as it, an as ot, ao as st, ap as ut, aq as dt, ar as ct, as as ft, u as pt, at as mt, au as gt, av as Se, aw as vt, D as ht, ax as Ve, ay as Oe, az as bt, P as $e } from "./index.541530e1.mjs";
2
2
  import { defineComponent as Ee, ref as Ge, onBeforeUnmount as qe, createVNode as b, shallowRef as M, computed as W, watch as ee } from "vue";
3
- import { U as St } from "./UpOutlined.49c77e9f.mjs";
3
+ import { U as St } from "./UpOutlined.699f4216.mjs";
4
4
  function we() {
5
5
  return typeof BigInt == "function";
6
6
  }
@@ -1,7 +1,7 @@
1
1
  import { useAttrs as fr, provide as za, inject as Ua, createVNode as v, createTextVNode as $t, defineComponent as ke, shallowRef as Ue, ref as R, watch as ge, onBeforeUnmount as zn, nextTick as ja, computed as L, onBeforeUpdate as pr, watchEffect as nn, toRef as pe, onMounted as xt, getCurrentScope as vr, onScopeDispose as gr, unref as Se, getCurrentInstance as mr, Fragment as At, useSlots as wr, openBlock as le, createElementBlock as Ce, createElementVNode as j, createCommentVNode as Me, toDisplayString as ve, renderSlot as dt, normalizeStyle as Ct, createBlock as Xe, withCtx as A, normalizeClass as qa, withDirectives as Yn, vShow as Hn, createSlots as br, renderList as Cr, isRef as yr, reactive as Qt, h as xn } from "vue";
2
2
  import { useRoute as Ka } from "vue-router";
3
- import { aE as ft, aF as $r, ab as T, a as O, c as he, af as fe, aa as ot, aG as xr, aA as kr, a9 as Be, aH as je, aI as Sr, aJ as _r, aK as Mr, aL as Dr, aM as Ma, g as Pr, m as Tn, ag as Or, ah as Ir, am as Nn, ai as Da, al as Yr, aj as Hr, aN as Tr, aO as Nr, aP as Rr, aQ as Er, aR as Wr, aS as Ar, aT as Pa, aU as Oa, aV as Jt, B as an, aW as Vr, A as on, aX as Rn, ac as tt, ad as yt, a7 as re, ae as Mt, aY as ct, ar as Qa, as as Ga, aZ as Dt, u as Za, au as Ja, a_ as eo, a$ as to, b0 as no, aw as ao, at as oo, b as ro, ax as Lr, t as Br, _ as pt, a0 as Fr, y as Ot, b1 as io, N as lo, O as so, d as rn, b2 as Xr, b3 as uo, b4 as zr, b5 as Ur, b6 as Ia, b7 as jr, b8 as co, K as ho, L as fo, aC as qr, z as Kr, X as Qr, I as Ya, o as Gr, p as Zr, F as Jr, b9 as ei, ba as ti, bb as ni, bc as ai, bd as oi, be as ri } from "./index.876a7009.mjs";
4
- import { R as ii } from "./RegionSelect.a70024af.mjs";
3
+ import { aD as ft, aE as $r, aa as T, a as O, c as he, ae as fe, a9 as ot, aF as xr, az as kr, a8 as Be, aG as je, aH as Sr, aI as _r, aJ as Mr, aK as Dr, aL as Ma, g as Pr, m as Tn, af as Or, ag as Ir, al as Nn, ah as Da, ak as Yr, ai as Hr, aM as Tr, aN as Nr, aO as Rr, aP as Er, aQ as Wr, aR as Ar, aS as Pa, aT as Oa, aU as Jt, B as an, aV as Vr, A as on, aW as Rn, ab as tt, ac as yt, a6 as re, ad as Mt, aX as ct, aq as Qa, ar as Ga, aY as Dt, u as Za, at as Ja, aZ as eo, a_ as to, a$ as no, av as ao, as as oo, b as ro, aw as Lr, t as Br, _ as pt, $ as Fr, y as Ot, b0 as io, L as lo, N as so, d as rn, b1 as Xr, b2 as uo, b3 as zr, b4 as Ur, b5 as Ia, b6 as jr, b7 as co, H as ho, K as fo, aB as qr, z as Kr, W as Qr, I as Ya, o as Gr, p as Zr, F as Jr, b8 as ei, b9 as ti, ba as ni, bb as ai, bc as oi, bd as ri } from "./index.541530e1.mjs";
4
+ import { R as ii } from "./RegionSelect.117762d5.mjs";
5
5
  import { useI18n as ln } from "vue-i18n";
6
6
  import { message as bt } from "ant-design-vue";
7
7
  import './assets/index.423cd927.css';var po = { exports: {} };
@@ -0,0 +1,405 @@
1
+ import { defineComponent as T, ref as p, onMounted as W, openBlock as a, createElementBlock as D, createVNode as y, withCtx as r, createElementVNode as S, normalizeClass as z, createBlock as v, resolveDynamicComponent as V, unref as se, createCommentVNode as h, createTextVNode as F, toDisplayString as U, reactive as Y, watch as ce, Fragment as B, renderList as H, mergeProps as K, normalizeStyle as x, computed as re } from "vue";
2
+ import { y as M, aA as le, L as _e, N as ue, _ as A, o as q, aB as de, p as G, F as Q, B as X, S as Z, aC as pe, Y as ie, H as ve, K as fe } from "./index.541530e1.mjs";
3
+ import { message as J } from "ant-design-vue";
4
+ import { useI18n as ee } from "vue-i18n";
5
+ import { _ as me } from "./index.13d86358.mjs";
6
+ import './assets/index.857022a9.css';function ye(f) {
7
+ return M({
8
+ url: "/api/sys/parameter/search-type",
9
+ method: "get",
10
+ params: f
11
+ });
12
+ }
13
+ function te(f) {
14
+ return M({
15
+ url: "/api/sys/parameter/search-type-detail",
16
+ method: "get",
17
+ params: f
18
+ });
19
+ }
20
+ function ae(f) {
21
+ return M({
22
+ url: "/api/sys/parameter/update",
23
+ method: "post",
24
+ headers: {
25
+ "Content-Type": "multipart/form-data"
26
+ },
27
+ data: f
28
+ });
29
+ }
30
+ const he = ["onClick"], be = { class: "title1" }, ke = /* @__PURE__ */ T({
31
+ __name: "TypeList",
32
+ emits: ["select"],
33
+ setup(f, { emit: $ }) {
34
+ const C = $, b = p([]), u = p(0), i = (l, _) => {
35
+ u.value = _, C("select", l);
36
+ }, m = async () => {
37
+ const { result: l } = await ye({});
38
+ b.value = l, l.length > 0 && i(l[0], 0);
39
+ };
40
+ return W(() => {
41
+ m();
42
+ }), (l, _) => {
43
+ const d = _e, O = ue;
44
+ return a(), D("div", null, [
45
+ y(O, {
46
+ size: "small",
47
+ split: !1,
48
+ dataSource: b.value,
49
+ class: "li"
50
+ }, {
51
+ renderItem: r(({ item: k, index: n }) => [
52
+ y(d, {
53
+ type: "inner",
54
+ bordered: !1,
55
+ class: "list"
56
+ }, {
57
+ default: r(() => [
58
+ S("div", {
59
+ onClick: (s) => i(k, n),
60
+ class: z(u.value == n ? "active" : "")
61
+ }, [
62
+ S("span", be, [
63
+ (a(), v(V(se(le)[k.v1]))),
64
+ h(' <a-icon :type="item.v1" /> '),
65
+ h(" {{ ($t('sparm.' + item.tableType +'_'+ item.code) != 'sparm.' + item.tableType +'_'+ item.code)?$t('sparm.' + item.tableType +'_'+ item.code):item.description}} "),
66
+ F(" " + U(l.$t("dct." + k.tableType + k.code)), 1)
67
+ ])
68
+ ], 10, he)
69
+ ]),
70
+ _: 2
71
+ }, 1024)
72
+ ]),
73
+ _: 1
74
+ }, 8, ["dataSource"])
75
+ ]);
76
+ };
77
+ }
78
+ });
79
+ const ge = /* @__PURE__ */ A(ke, [["__scopeId", "data-v-a72d57cc"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter/src/views/sys/parameter/TypeList.vue"]]), Ce = { class: "web-client" }, we = ["src"], Se = {
80
+ key: 2,
81
+ class: "color-choose"
82
+ }, De = { class: "color" }, $e = ["onClick"], Oe = { class: "tips" }, Ie = "/", Ne = /* @__PURE__ */ T({
83
+ name: "WebClient",
84
+ __name: "WebClient",
85
+ props: {
86
+ record: {
87
+ type: Object,
88
+ default: () => {
89
+ }
90
+ }
91
+ },
92
+ emits: ["ok"],
93
+ setup(f, { emit: $ }) {
94
+ const { t: C } = ee(), b = $, u = f, i = p(0), m = p(!0), l = [
95
+ "#fff",
96
+ "#ccc",
97
+ "#666",
98
+ "#333",
99
+ "#000",
100
+ "#001efb",
101
+ "#fffe34",
102
+ "#ff0f00",
103
+ "#0dfd36"
104
+ ], _ = Y({
105
+ parentCode: "",
106
+ items: {}
107
+ }), d = p([]), O = p(""), k = {
108
+ labelCol: {
109
+ span: 6
110
+ },
111
+ wrapperCol: {
112
+ span: 18
113
+ }
114
+ }, n = async () => {
115
+ if (!u.record.code)
116
+ return;
117
+ _.parentCode = u.record.code;
118
+ const { result: t } = await te({
119
+ parentCode: u.record.code
120
+ });
121
+ d.value = t, m.value = !1;
122
+ const g = t.find((o) => o.v2 == "HEAD_ICON");
123
+ if (g) {
124
+ const o = JSON.parse(g.v1);
125
+ O.value = Ie + "usercenter/api/auth/node-icon/" + o.bucket + "/" + o.file;
126
+ }
127
+ }, s = (t, g) => {
128
+ const o = new FileReader();
129
+ o.addEventListener("load", () => g(o.result)), o.readAsDataURL(t);
130
+ }, c = (t) => t.type === "image/jpeg" || t.type === "image/png" ? t.size / 1024 / 1024 < 2 ? (_.fileName = t, s(t, (N) => {
131
+ N.value = N;
132
+ }), !1) : (J.error(C("param.tips2")), !1) : (J.error(C("param.tips1")), !1), I = async () => {
133
+ console.log(d.value, "source");
134
+ const t = {};
135
+ d.value.forEach((o) => {
136
+ o.v2 !== "HEAD_ICON" && (t[o.code] = o.v1);
137
+ }), _.items = JSON.stringify(t);
138
+ const { result: g } = await ae(_);
139
+ g && b("ok");
140
+ }, E = (t) => {
141
+ i.value = t;
142
+ };
143
+ return ce(
144
+ () => u.record,
145
+ () => {
146
+ n();
147
+ }
148
+ ), W(() => {
149
+ n();
150
+ }), (t, g) => {
151
+ const o = q, N = de, e = G, P = Q, w = X, ne = Z;
152
+ return a(), D("div", Ce, [
153
+ y(ne, { spinning: m.value }, {
154
+ default: r(() => [
155
+ y(P, {
156
+ class: "form",
157
+ ref: "formRef"
158
+ }, {
159
+ default: r(() => [
160
+ (a(!0), D(B, null, H(d.value, (L, oe) => (a(), v(e, K({
161
+ key: oe,
162
+ label: t.$t("dct.PARAMS" + L.code),
163
+ ref_for: !0
164
+ }, k), {
165
+ default: r(() => [
166
+ L.v2 != "HEAD_ICON" ? (a(), v(o, {
167
+ key: 0,
168
+ value: L.v1,
169
+ "onUpdate:value": (R) => L.v1 = R
170
+ }, null, 8, ["value", "onUpdate:value"])) : h("v-if", !0),
171
+ L.v2 == "HEAD_ICON" ? (a(), v(N, {
172
+ key: 1,
173
+ name: "avatar",
174
+ style: { width: "102px", float: "left" },
175
+ "list-type": "picture-card",
176
+ class: "avatar-uploader",
177
+ "show-upload-list": !1,
178
+ "before-upload": c
179
+ }, {
180
+ default: r(() => [
181
+ S("div", {
182
+ class: "bg",
183
+ style: x("background:" + l[i.value])
184
+ }, [
185
+ S("img", {
186
+ src: O.value,
187
+ alt: "avatar",
188
+ class: "avatar"
189
+ }, null, 8, we)
190
+ ], 4)
191
+ ]),
192
+ _: 1
193
+ })) : h("v-if", !0),
194
+ L.v2 == "HEAD_ICON" ? (a(), D("div", Se, [
195
+ S("div", De, [
196
+ (a(), D(B, null, H(l, (R, j) => S("div", {
197
+ key: j,
198
+ class: "color-item"
199
+ }, [
200
+ S("div", {
201
+ style: x("background:" + R),
202
+ onClick: (Ee) => E(j),
203
+ class: z(i.value == j ? "active" : "")
204
+ }, null, 14, $e)
205
+ ])), 64))
206
+ ]),
207
+ S("span", Oe, U(t.$t("param.tip")), 1)
208
+ ])) : h("v-if", !0)
209
+ ]),
210
+ _: 2
211
+ }, 1040, ["label"]))), 128))
212
+ ]),
213
+ _: 1
214
+ }, 512),
215
+ m.value ? h("v-if", !0) : (a(), v(w, {
216
+ key: 0,
217
+ onClick: I,
218
+ type: "primary",
219
+ class: "sub_btn"
220
+ }, {
221
+ default: r(() => [
222
+ F(U(t.$t("param.btn_ok")), 1)
223
+ ]),
224
+ _: 1
225
+ }))
226
+ ]),
227
+ _: 1
228
+ }, 8, ["spinning"])
229
+ ]);
230
+ };
231
+ }
232
+ });
233
+ const Le = /* @__PURE__ */ A(Ne, [["__scopeId", "data-v-7c2314b0"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter/src/views/sys/parameter/WebClient.vue"]]), Ue = { class: "web-client" }, xe = /* @__PURE__ */ T({
234
+ name: "Standard",
235
+ __name: "Standard",
236
+ props: {
237
+ record: {
238
+ type: Object,
239
+ default: () => {
240
+ }
241
+ }
242
+ },
243
+ emits: ["ok"],
244
+ setup(f, { emit: $ }) {
245
+ const C = $, b = f, u = p(), i = p(!0), m = Y({
246
+ parentCode: "",
247
+ items: {}
248
+ }), l = p({}), _ = p([]), d = {
249
+ labelCol: {
250
+ span: 6
251
+ },
252
+ wrapperCol: {
253
+ span: 18
254
+ }
255
+ }, O = async () => {
256
+ if (!b.record.code)
257
+ return;
258
+ const { result: n } = await te({
259
+ parentCode: b.record.code
260
+ });
261
+ m.parentCode = b.record.code, i.value = !1, n.forEach((s) => {
262
+ var c;
263
+ s.v2 = s.v2 ? JSON.parse(s.v2) : "", ((c = s == null ? void 0 : s.v2) == null ? void 0 : c.field) == "2" && (s.isChecked = s.v1 == "Y");
264
+ }), _.value = n;
265
+ }, k = async () => {
266
+ console.log(_.value, "source");
267
+ const n = {};
268
+ _.value.forEach((c) => {
269
+ var I;
270
+ ((I = c == null ? void 0 : c.v2) == null ? void 0 : I.field) == "2" && (c.isChecked ? c.v1 == "Y" : c.v1 == "N"), n[c.code] = c.v1;
271
+ }), m.items = JSON.stringify(n);
272
+ const { result: s } = await ae(m);
273
+ s && C("ok");
274
+ };
275
+ return W(() => {
276
+ O();
277
+ }), (n, s) => {
278
+ const c = q, I = me, E = pe, t = G, g = Q, o = X, N = Z;
279
+ return a(), D("div", Ue, [
280
+ y(N, { spinning: i.value }, {
281
+ default: r(() => [
282
+ y(g, {
283
+ class: "form",
284
+ model: l.value,
285
+ ref_key: "formRef",
286
+ ref: u
287
+ }, {
288
+ default: r(() => [
289
+ (a(!0), D(B, null, H(_.value, (e, P) => (a(), v(t, K({
290
+ key: P,
291
+ label: n.$t("dct.SYS" + e.code),
292
+ ref_for: !0
293
+ }, d), {
294
+ default: r(() => [
295
+ e.v2 instanceof Object ? h("v-if", !0) : (a(), v(c, {
296
+ key: 0,
297
+ value: e.v1,
298
+ "onUpdate:value": (w) => e.v1 = w
299
+ }, null, 8, ["value", "onUpdate:value"])),
300
+ e.v2 instanceof Object && e.v2.field && e.v2.field == "0" ? (a(), v(c, {
301
+ key: 1,
302
+ style: x(
303
+ e.v2.width ? "width:" + e.v2.width + "px" : "width: 100% "
304
+ ),
305
+ maxLength: e.v2.length ? e.v2.length : 100,
306
+ value: e.v1,
307
+ "onUpdate:value": (w) => e.v1 = w
308
+ }, null, 8, ["style", "maxLength", "value", "onUpdate:value"])) : h("v-if", !0),
309
+ e.v2 instanceof Object && e.v2.field && e.v2.field == "1" ? (a(), v(I, {
310
+ key: 2,
311
+ style: x(
312
+ e.v2.width ? "width:" + e.v2.width + "px" : "width: 100% "
313
+ ),
314
+ value: e.v1,
315
+ "onUpdate:value": (w) => e.v1 = w
316
+ }, null, 8, ["style", "value", "onUpdate:value"])) : h("v-if", !0),
317
+ e.v2 instanceof Object && e.v2.field && e.v2.field == "2" ? (a(), v(E, {
318
+ key: 3,
319
+ checked: e.isChecked,
320
+ "onUpdate:checked": (w) => e.isChecked = w
321
+ }, null, 8, ["checked", "onUpdate:checked"])) : h("v-if", !0)
322
+ ]),
323
+ _: 2
324
+ }, 1040, ["label"]))), 128))
325
+ ]),
326
+ _: 1
327
+ }, 8, ["model"]),
328
+ i.value ? h("v-if", !0) : (a(), v(o, {
329
+ key: 0,
330
+ onClick: k,
331
+ type: "primary",
332
+ class: "sub_btn"
333
+ }, {
334
+ default: r(() => [
335
+ F(U(n.$t("param.btn_ok")), 1)
336
+ ]),
337
+ _: 1
338
+ }))
339
+ ]),
340
+ _: 1
341
+ }, 8, ["spinning"])
342
+ ]);
343
+ };
344
+ }
345
+ });
346
+ const Te = /* @__PURE__ */ A(xe, [["__scopeId", "data-v-7829cd8b"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter/src/views/sys/parameter/Standard.vue"]]), Ae = /* @__PURE__ */ T({
347
+ name: "Function4",
348
+ __name: "index",
349
+ setup(f) {
350
+ const { t: $ } = ee(), C = p({}), b = p(), u = p("WebClient"), i = {
351
+ WebClient: Le,
352
+ Standard: Te
353
+ }, m = re(() => i[u.value]), l = (d) => {
354
+ d.v3 ? u.value = d.v3 : u.value = "Standard", C.value = d;
355
+ }, _ = () => {
356
+ J.success($("param.tips3"));
357
+ };
358
+ return (d, O) => {
359
+ const k = ie, n = ve, s = fe;
360
+ return a(), D("div", null, [
361
+ y(s, {
362
+ gutter: 16,
363
+ class: "bg"
364
+ }, {
365
+ default: r(() => [
366
+ y(n, {
367
+ span: 3,
368
+ class: "left"
369
+ }, {
370
+ default: r(() => [
371
+ y(k, { bordered: !1 }, {
372
+ cover: r(() => [
373
+ y(ge, { onSelect: l })
374
+ ]),
375
+ _: 1
376
+ })
377
+ ]),
378
+ _: 1
379
+ }),
380
+ y(n, {
381
+ span: 20,
382
+ class: "right"
383
+ }, {
384
+ default: r(() => [
385
+ (a(), v(V(m.value), {
386
+ key: 0,
387
+ onOk: _,
388
+ record: C.value,
389
+ ref_key: "compRef",
390
+ ref: b
391
+ }, null, 40, ["record"]))
392
+ ]),
393
+ _: 1
394
+ })
395
+ ]),
396
+ _: 1
397
+ })
398
+ ]);
399
+ };
400
+ }
401
+ });
402
+ const Je = /* @__PURE__ */ A(Ae, [["__scopeId", "data-v-2b42dd95"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter/src/views/sys/parameter/index.vue"]]);
403
+ export {
404
+ Je as default
405
+ };