@witlink/usercenter 1.2.22 → 1.2.24

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,125 +0,0 @@
1
- const l = {
2
- button: {
3
- _001_placeholder: "null",
4
- _006_msg1: "null",
5
- _006_msg2: "null",
6
- _006_msg3: "null",
7
- _004_msg1: "null",
8
- _004_msg2: "null",
9
- _009_msg2: "null",
10
- _006_off: "null",
11
- _009_msg1: "null",
12
- _006_on: "null",
13
- _008_msg1: "null",
14
- _008_msg2: "null",
15
- _009: "null",
16
- _008: "null",
17
- _007: "null",
18
- _002: "null",
19
- _001: "Search",
20
- _010: "null",
21
- _006: "null",
22
- _005: "null",
23
- _004: "null",
24
- _003: "null"
25
- },
26
- user_layou: {
27
- item2: "null",
28
- item1: "null",
29
- item3: "null",
30
- tips1: "null",
31
- tips2: "null"
32
- },
33
- common: {
34
- btn_search: "null",
35
- btn_fold: "null",
36
- btn_cancel1: "null",
37
- msg2: "null",
38
- msg1: "null",
39
- btn_refresh: "null",
40
- btn_confirm: "null",
41
- btn_edit: "null",
42
- btn_ok: "null",
43
- btn_sctead: "null",
44
- btn_more: "null",
45
- btn_cancel: "null",
46
- btn_reset: "null"
47
- },
48
- param: {
49
- remark_placeholder: "null",
50
- code: "null",
51
- description_placeholder: "null",
52
- description: "null",
53
- remark: "null",
54
- v1_placeholder: "null",
55
- title: "null",
56
- type: "null",
57
- type_placeholder: "null",
58
- code_placeholder: "null",
59
- v2_placeholder: "null",
60
- v1: "null",
61
- v3_placeholder: "null",
62
- v2: "null",
63
- v3: "null",
64
- v4: "null",
65
- v4_placeholder: "null"
66
- },
67
- function: {
68
- _002007: "",
69
- _002008: "",
70
- _003004: "",
71
- _003005: "",
72
- _002006: "",
73
- _002: "",
74
- _001: "",
75
- _003001: "",
76
- _003002: "",
77
- _001001: "",
78
- _003003: "",
79
- _003: ""
80
- },
81
- dict: {
82
- remark_placeholder: "null",
83
- code: "null",
84
- pbl_select: "null",
85
- description_placeholder: "null",
86
- description: "null",
87
- remark: "null",
88
- v1_placeholder: "null",
89
- title: "null",
90
- type: "null",
91
- type_placeholder: "null",
92
- code_placeholder: "null",
93
- v2_placeholder: "null",
94
- v1: "null",
95
- v3_placeholder: "null",
96
- v2: "null",
97
- v3: "null",
98
- v4: "null",
99
- v4_placeholder: "null"
100
- },
101
- user_menu: {
102
- item2: "null",
103
- msg2: "null",
104
- item1: "personal center",
105
- msg1: "null",
106
- item3: "log out"
107
- },
108
- welcome: {
109
- msg4: "null",
110
- msg3: "null",
111
- msg2: "null",
112
- msg1: "null",
113
- msg5: "null"
114
- },
115
- table: {
116
- tips4: "null",
117
- tips5: "null",
118
- tips1: "null",
119
- tips2: "null",
120
- tips3: "null"
121
- }
122
- };
123
- export {
124
- l as default
125
- };
@@ -1,10 +0,0 @@
1
- import { openBlock as e, createElementBlock as r } from "vue";
2
- import { _ as n } from "./index.6bf835b9.mjs";
3
- const t = {};
4
- function o(c, i) {
5
- return e(), r("div", null, "dashboard");
6
- }
7
- const d = /* @__PURE__ */ n(t, [["render", o], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter/src/views/dashboard/index.vue"]]);
8
- export {
9
- d as default
10
- };
@@ -1,405 +0,0 @@
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 M, 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 z, renderList as B, mergeProps as K, normalizeStyle as x, computed as re } from "vue";
2
- import { z as H, ay as le, N as _e, O as ue, _ as A, p as q, az as de, q as G, F as Q, B as X, S as Z, aA as pe, $ as ie, K as ve, L as fe } from "./index.6bf835b9.mjs";
3
- import { message as J } from "ant-design-vue";
4
- import { useI18n as ee } from "vue-i18n";
5
- import { _ as me } from "./index.52fe71f6.mjs";
6
- import './assets/index.857022a9.css';function ye(f) {
7
- return H({
8
- url: "/api/sys/parameter/search-type",
9
- method: "get",
10
- params: f
11
- });
12
- }
13
- function te(f) {
14
- return H({
15
- url: "/api/sys/parameter/search-type-detail",
16
- method: "get",
17
- params: f
18
- });
19
- }
20
- function ae(f) {
21
- return H({
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 w = $, b = p([]), u = p(0), i = (l, _) => {
35
- u.value = _, w("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: M(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"]]), we = { class: "web-client" }, Ce = ["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: w } = 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(w("param.tips2")), !1) : (J.error(w("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, C = X, ne = Z;
152
- return a(), D("div", we, [
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(z, null, B(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, Ce)
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(z, null, B(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: M(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(C, {
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 w = $, 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 && w("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(z, null, B(_.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": (C) => e.v1 = C
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": (C) => e.v1 = C
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": (C) => e.v1 = C
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": (C) => e.isChecked = C
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(), w = 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", w.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: w.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
- };