@witlink/usercenter 1.1.39 → 1.1.41

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@witlink/usercenter",
3
- "version": "1.1.39",
3
+ "version": "1.1.41",
4
4
  "description": "witlink的用户中心系统各页面集成组件",
5
5
  "main": "./dist/usercenter.umd.js",
6
6
  "module": "./dist/usercenter.es.js",
@@ -1,113 +0,0 @@
1
- import { defineComponent as j, ref as _, reactive as B, onMounted as L, openBlock as c, createElementBlock as f, createVNode as i, withCtx as p, Fragment as E, renderList as F, createBlock as r, mergeProps as I, createCommentVNode as d, normalizeStyle as h, createTextVNode as P, toDisplayString as V } from "vue";
2
- import { g as Y, s as J } from "./index.2e0ba979.mjs";
3
- import { o as R, be as T, p as $, F as z, B as M, _ as q } from "./index.6792322e.mjs";
4
- import { _ as A } from "./index.7c8b3c1b.mjs";
5
- import './assets/Standard.badeec91.css';const G = { class: "web-client" }, H = /* @__PURE__ */ j({
6
- name: "Standard",
7
- __name: "Standard",
8
- props: {
9
- record: {
10
- type: Object,
11
- default: () => {
12
- }
13
- }
14
- },
15
- emits: ["ok"],
16
- setup(k, { emit: y }) {
17
- const b = y, v = k, w = _(), u = B({
18
- parentCode: "",
19
- items: {}
20
- }), g = _({}), s = _([]), m = {
21
- labelCol: {
22
- span: 6
23
- },
24
- wrapperCol: {
25
- span: 18
26
- }
27
- }, S = async () => {
28
- const { result: n } = await Y({
29
- parentCode: v.record.code
30
- });
31
- u.parentCode = v.record.code, n.forEach((a) => {
32
- var o;
33
- a.v2 = a.v2 ? JSON.parse(a.v2) : "", ((o = a == null ? void 0 : a.v2) == null ? void 0 : o.field) == "2" && (a.isChecked = a.v1 == "Y");
34
- }), s.value = n;
35
- }, C = async () => {
36
- console.log(s.value, "source");
37
- const n = {};
38
- s.value.forEach((o) => {
39
- var l;
40
- ((l = o == null ? void 0 : o.v2) == null ? void 0 : l.field) == "2" && (o.isChecked ? o.v1 == "Y" : o.v1 == "N"), n[o.code] = o.v1;
41
- }), u.items = JSON.stringify(n);
42
- const { result: a } = await J(u);
43
- a && b("ok");
44
- };
45
- return L(() => {
46
- S();
47
- }), (n, a) => {
48
- const o = R, l = A, U = T, x = $, O = z, D = M;
49
- return c(), f("div", G, [
50
- i(O, {
51
- class: "form",
52
- model: g.value,
53
- ref_key: "formRef",
54
- ref: w
55
- }, {
56
- default: p(() => [
57
- (c(!0), f(E, null, F(s.value, (e, N) => (c(), r(x, I({
58
- key: N,
59
- label: n.$t("dct.SYS" + e.code),
60
- ref_for: !0
61
- }, m), {
62
- default: p(() => [
63
- e.v2 instanceof Object ? d("v-if", !0) : (c(), r(o, {
64
- key: 0,
65
- value: e.v1,
66
- "onUpdate:value": (t) => e.v1 = t
67
- }, null, 8, ["value", "onUpdate:value"])),
68
- e.v2 instanceof Object && e.v2.field && e.v2.field == "0" ? (c(), r(o, {
69
- key: 1,
70
- style: h(
71
- e.v2.width ? "width:" + e.v2.width + "px" : "width: 100% "
72
- ),
73
- maxLength: e.v2.length ? e.v2.length : 100,
74
- value: e.v1,
75
- "onUpdate:value": (t) => e.v1 = t
76
- }, null, 8, ["style", "maxLength", "value", "onUpdate:value"])) : d("v-if", !0),
77
- e.v2 instanceof Object && e.v2.field && e.v2.field == "1" ? (c(), r(l, {
78
- key: 2,
79
- style: h(
80
- e.v2.width ? "width:" + e.v2.width + "px" : "width: 100% "
81
- ),
82
- value: e.v1,
83
- "onUpdate:value": (t) => e.v1 = t
84
- }, null, 8, ["style", "value", "onUpdate:value"])) : d("v-if", !0),
85
- e.v2 instanceof Object && e.v2.field && e.v2.field == "2" ? (c(), r(U, {
86
- key: 3,
87
- checked: e.isChecked,
88
- "onUpdate:checked": (t) => e.isChecked = t
89
- }, null, 8, ["checked", "onUpdate:checked"])) : d("v-if", !0)
90
- ]),
91
- _: 2
92
- }, 1040, ["label"]))), 128))
93
- ]),
94
- _: 1
95
- }, 8, ["model"]),
96
- i(D, {
97
- onClick: C,
98
- type: "primary",
99
- class: "sub_btn"
100
- }, {
101
- default: p(() => [
102
- P(V(n.$t("param.btn_ok")), 1)
103
- ]),
104
- _: 1
105
- })
106
- ]);
107
- };
108
- }
109
- });
110
- const Z = /* @__PURE__ */ q(H, [["__scopeId", "data-v-7829cd8b"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter/src/views/sys/parameter/Standard.vue"]]);
111
- export {
112
- Z as default
113
- };
@@ -1,155 +0,0 @@
1
- import { defineComponent as R, ref as m, reactive as V, watch as $, onMounted as z, openBlock as o, createElementBlock as i, createVNode as h, withCtx as p, Fragment as w, renderList as D, createBlock as v, mergeProps as j, createCommentVNode as b, createElementVNode as n, normalizeStyle as N, normalizeClass as x, toDisplayString as O, createTextVNode as T } from "vue";
2
- import { message as E } from "ant-design-vue";
3
- import { useI18n as q } from "vue-i18n";
4
- import { g as G, s as K } from "./index.2e0ba979.mjs";
5
- import { o as Q, b7 as X, p as Y, F as Z, B as ee, _ as te } from "./index.6792322e.mjs";
6
- import './assets/WebClient.3b709666.css';const ae = { class: "web-client" }, oe = ["src"], se = {
7
- key: 2,
8
- class: "color-choose"
9
- }, ne = { class: "color" }, re = ["onClick"], ce = { class: "tips" }, le = "/", ie = /* @__PURE__ */ R({
10
- name: "WebClient",
11
- __name: "WebClient",
12
- props: {
13
- record: {
14
- type: Object,
15
- default: () => {
16
- }
17
- }
18
- },
19
- emits: ["ok"],
20
- setup(I, { emit: A }) {
21
- const { t: g } = q(), S = A, u = I, _ = m(0), y = [
22
- "#fff",
23
- "#ccc",
24
- "#666",
25
- "#333",
26
- "#000",
27
- "#001efb",
28
- "#fffe34",
29
- "#ff0f00",
30
- "#0dfd36"
31
- ], r = V({
32
- parentCode: "",
33
- items: {}
34
- }), c = m([]), C = m(""), L = {
35
- labelCol: {
36
- span: 6
37
- },
38
- wrapperCol: {
39
- span: 18
40
- }
41
- }, k = async () => {
42
- r.parentCode = u.record.code;
43
- const { result: e } = await G({
44
- parentCode: u.record.code
45
- });
46
- c.value = e;
47
- const a = e.find((t) => t.v2 == "HEAD_ICON");
48
- if (a) {
49
- const t = JSON.parse(a.v1);
50
- C.value = le + "usercenter/api/auth/node-icon/" + t.bucket + "/" + t.file;
51
- }
52
- }, P = (e, a) => {
53
- const t = new FileReader();
54
- t.addEventListener("load", () => a(t.result)), t.readAsDataURL(e);
55
- }, B = (e) => e.type === "image/jpeg" || e.type === "image/png" ? e.size / 1024 / 1024 < 2 ? (r.fileName = e, P(e, (l) => {
56
- l.value = l;
57
- }), !1) : (E.error(g("param.tips2")), !1) : (E.error(g("param.tips1")), !1), H = async () => {
58
- console.log(c.value, "source");
59
- const e = {};
60
- c.value.forEach((t) => {
61
- t.v2 !== "HEAD_ICON" && (e[t.code] = t.v1);
62
- }), r.items = JSON.stringify(e);
63
- const { result: a } = await K(r);
64
- a && S("ok");
65
- }, U = (e) => {
66
- _.value = e;
67
- };
68
- return $(
69
- () => u.record,
70
- () => {
71
- k();
72
- }
73
- ), z(() => {
74
- k();
75
- }), (e, a) => {
76
- const t = Q, l = X, W = Y, F = Z, J = ee;
77
- return o(), i("div", ae, [
78
- h(F, {
79
- class: "form",
80
- ref: "formRef"
81
- }, {
82
- default: p(() => [
83
- (o(!0), i(w, null, D(c.value, (s, M) => (o(), v(W, j({
84
- key: M,
85
- label: e.$t("dct.PARAMS" + s.code),
86
- ref_for: !0
87
- }, L), {
88
- default: p(() => [
89
- s.v2 != "HEAD_ICON" ? (o(), v(t, {
90
- key: 0,
91
- value: s.v1,
92
- "onUpdate:value": (d) => s.v1 = d
93
- }, null, 8, ["value", "onUpdate:value"])) : b("v-if", !0),
94
- s.v2 == "HEAD_ICON" ? (o(), v(l, {
95
- key: 1,
96
- name: "avatar",
97
- style: { width: "102px", float: "left" },
98
- "list-type": "picture-card",
99
- class: "avatar-uploader",
100
- "show-upload-list": !1,
101
- "before-upload": B
102
- }, {
103
- default: p(() => [
104
- n("div", {
105
- class: "bg",
106
- style: N("background:" + y[_.value])
107
- }, [
108
- n("img", {
109
- src: C.value,
110
- alt: "avatar",
111
- class: "avatar"
112
- }, null, 8, oe)
113
- ], 4)
114
- ]),
115
- _: 1
116
- })) : b("v-if", !0),
117
- s.v2 == "HEAD_ICON" ? (o(), i("div", se, [
118
- n("div", ne, [
119
- (o(), i(w, null, D(y, (d, f) => n("div", {
120
- key: f,
121
- class: "color-item"
122
- }, [
123
- n("div", {
124
- style: N("background:" + d),
125
- onClick: (pe) => U(f),
126
- class: x(_.value == f ? "active" : "")
127
- }, null, 14, re)
128
- ])), 64))
129
- ]),
130
- n("span", ce, O(e.$t("param.tip")), 1)
131
- ])) : b("v-if", !0)
132
- ]),
133
- _: 2
134
- }, 1040, ["label"]))), 128))
135
- ]),
136
- _: 1
137
- }, 512),
138
- h(J, {
139
- onClick: H,
140
- type: "primary",
141
- class: "sub_btn"
142
- }, {
143
- default: p(() => [
144
- T(O(e.$t("param.btn_ok")), 1)
145
- ]),
146
- _: 1
147
- })
148
- ]);
149
- };
150
- }
151
- });
152
- const ve = /* @__PURE__ */ te(ie, [["__scopeId", "data-v-7c2314b0"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter/src/views/sys/parameter/WebClient.vue"]]);
153
- export {
154
- ve as default
155
- };
@@ -1 +0,0 @@
1
- .web-client[data-v-7829cd8b]{background:#ffffff;padding-top:10px}.sub_btn[data-v-7829cd8b]{margin-left:224px}.form[data-v-7829cd8b]{width:900px;margin-top:20px}
@@ -1 +0,0 @@
1
- .web-client[data-v-7c2314b0]{background:#ffffff}.top-title1[data-v-7c2314b0]{width:900px;padding:7px;background:#e8ffff;color:#9820fb;font-size:17px;margin-bottom:5px}.sub_btn[data-v-7c2314b0]{margin-left:224px}.avatar-uploader>.uc-upload[data-v-7c2314b0]{width:70px;height:70px}.uc-upload-select-picture-card i[data-v-7c2314b0]{font-size:32px;color:#999}.uc-upload-select-picture-card .uc-upload-text[data-v-7c2314b0]{margin-top:8px;color:#666}.form[data-v-7c2314b0]{width:900px;margin-top:20px}.form .divide-line[data-v-7c2314b0]{position:absolute;border-bottom:1px solid #d9d9d9;width:900px;top:110px;height:1px}.form .bg[data-v-7c2314b0]{background-color:#7c5454;width:100%;padding:10px;z-index:0}.form .avatar[data-v-7c2314b0]{width:60px;height:60px}.form .active[data-v-7c2314b0]{border:1px solid #1990fc!important}.form .color-choose[data-v-7c2314b0]{display:inline-block;width:560px;padding-left:20px}.form .color-choose .color[data-v-7c2314b0]{width:100%;display:flex;justify-content:space-between}.form .color-choose .color .color-item[data-v-7c2314b0]{display:inline-block;width:50px;height:50px;border:1px solid #d9d9d9}.form .color-choose .color .color-item div[data-v-7c2314b0]{width:100%;height:100%}.form .color-choose .color div[data-v-7c2314b0]:hover{cursor:pointer}.form .color-choose .tips[data-v-7c2314b0]{display:inline-block;margin-top:10px;font-size:15px}
@@ -1 +0,0 @@
1
- .li[data-v-a72d57cc]{margin-top:15px}.li .list[data-v-a72d57cc]{width:100%;text-align:right}.li .list div[data-v-a72d57cc]{width:100%}.li .list div .title1[data-v-a72d57cc]{margin:6px 10px;display:inline-block}.li .list .active[data-v-a72d57cc]{background:#e6ffff;border-right:3px solid var(--uc-primary-color);color:var(--uc-primary-color)}.bg[data-v-2b42dd95]{width:100%;height:100%;background:#ffffff;padding:10px auto;box-sizing:border-box}.bg .left[data-v-2b42dd95]{padding-right:0!important;height:100%;box-sizing:border-box}.bg .right[data-v-2b42dd95]{padding-left:0!important;border-left:1px solid #d9d9d9;height:100%;box-sizing:border-box}
@@ -1,142 +0,0 @@
1
- import { defineComponent as C, ref as l, onMounted as D, openBlock as d, createElementBlock as T, createVNode as n, withCtx as c, createElementVNode as h, normalizeClass as $, createBlock as w, resolveDynamicComponent as x, unref as I, createCommentVNode as b, createTextVNode as L, toDisplayString as N, defineAsyncComponent as k, computed as P } from "vue";
2
- import { y, aB as B, N as O, O as V, _ as S, Z as z, K as A, L as M } from "./index.6792322e.mjs";
3
- import { message as R } from "ant-design-vue";
4
- import { useI18n as j } from "vue-i18n";
5
- import './assets/index.28bdbdc3.css';function E(t) {
6
- return y({
7
- url: "/api/sys/parameter/search-type",
8
- method: "get",
9
- params: t
10
- });
11
- }
12
- function X(t) {
13
- return y({
14
- url: "/api/sys/parameter/search-type-detail",
15
- method: "get",
16
- params: t
17
- });
18
- }
19
- function Y(t) {
20
- return y({
21
- url: "/api/sys/parameter/update",
22
- method: "post",
23
- headers: {
24
- "Content-Type": "multipart/form-data"
25
- },
26
- data: t
27
- });
28
- }
29
- const K = ["onClick"], W = { class: "title1" }, F = /* @__PURE__ */ C({
30
- __name: "TypeList",
31
- emits: ["select"],
32
- setup(t, { emit: u }) {
33
- const _ = u, i = l([]), a = l(0), p = (e, m) => {
34
- a.value = m, _("select", e);
35
- }, f = async () => {
36
- const { result: e } = await E({});
37
- i.value = e, e.length > 0 && p(e[0], 0);
38
- };
39
- return D(() => {
40
- f();
41
- }), (e, m) => {
42
- const s = O, v = V;
43
- return d(), T("div", null, [
44
- n(v, {
45
- size: "small",
46
- split: !1,
47
- dataSource: i.value,
48
- class: "li"
49
- }, {
50
- renderItem: c(({ item: o, index: r }) => [
51
- n(s, {
52
- type: "inner",
53
- bordered: !1,
54
- class: "list"
55
- }, {
56
- default: c(() => [
57
- h("div", {
58
- onClick: (g) => p(o, r),
59
- class: $(a.value == r ? "active" : "")
60
- }, [
61
- h("span", W, [
62
- (d(), w(x(I(B)[o.v1]))),
63
- b(' <a-icon :type="item.v1" /> '),
64
- b(" {{ ($t('sparm.' + item.tableType +'_'+ item.code) != 'sparm.' + item.tableType +'_'+ item.code)?$t('sparm.' + item.tableType +'_'+ item.code):item.description}} "),
65
- L(" " + N(e.$t("dct." + o.tableType + o.code)), 1)
66
- ])
67
- ], 10, K)
68
- ]),
69
- _: 2
70
- }, 1024)
71
- ]),
72
- _: 1
73
- }, 8, ["dataSource"])
74
- ]);
75
- };
76
- }
77
- });
78
- const U = /* @__PURE__ */ S(F, [["__scopeId", "data-v-a72d57cc"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter/src/views/sys/parameter/TypeList.vue"]]), Z = /* @__PURE__ */ C({
79
- name: "Function4",
80
- __name: "index",
81
- setup(t) {
82
- const { t: u } = j(), _ = l({}), i = l(), a = l("WebClient"), p = {
83
- WebClient: k(() => import("./WebClient.0c21dd5b.mjs")),
84
- Standard: k(() => import("./Standard.bdead4bb.mjs"))
85
- }, f = P(() => p[a.value]), e = (s) => {
86
- s.v3 ? a.value = s.v3 : a.value = "Standard", _.value = s;
87
- }, m = () => {
88
- R.success(u("param.tips3"));
89
- };
90
- return (s, v) => {
91
- const o = z, r = A, g = M;
92
- return d(), T("div", null, [
93
- n(g, {
94
- gutter: 16,
95
- class: "bg"
96
- }, {
97
- default: c(() => [
98
- n(r, {
99
- span: 3,
100
- class: "left"
101
- }, {
102
- default: c(() => [
103
- n(o, { bordered: !1 }, {
104
- cover: c(() => [
105
- n(U, { onSelect: e })
106
- ]),
107
- _: 1
108
- })
109
- ]),
110
- _: 1
111
- }),
112
- n(r, {
113
- span: 20,
114
- class: "right"
115
- }, {
116
- default: c(() => [
117
- (d(), w(x(f.value), {
118
- key: 0,
119
- onOk: m,
120
- record: _.value,
121
- ref_key: "compRef",
122
- ref: i
123
- }, null, 40, ["record"]))
124
- ]),
125
- _: 1
126
- })
127
- ]),
128
- _: 1
129
- })
130
- ]);
131
- };
132
- }
133
- });
134
- const q = /* @__PURE__ */ S(Z, [["__scopeId", "data-v-2b42dd95"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter/src/views/sys/parameter/index.vue"]]), ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
135
- __proto__: null,
136
- default: q
137
- }, Symbol.toStringTag, { value: "Module" }));
138
- export {
139
- X as g,
140
- ee as i,
141
- Y as s
142
- };