@witlink/usercenter 1.0.0 → 1.0.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.
- package/dist/404.8c60a901.c3e76ee8.mjs +10 -0
- package/dist/{404.e6ab6ba0.mjs → 404.a6648431.mjs} +1 -1
- package/dist/Standard.f3edef69.f5212048.mjs +110 -0
- package/dist/{Standard.64ae6a8d.mjs → Standard.fc95c576.mjs} +38 -40
- package/dist/{WebClient.0ac67ce0.mjs → WebClient.80331fdc.mjs} +26 -27
- package/dist/WebClient.d57f9832.6ba94a3e.mjs +151 -0
- package/dist/assets/Standard.f3edef69.badeec91.css +1 -0
- package/dist/assets/WebClient.d57f9832.2a3e464e.css +1 -0
- package/dist/assets/index.2d0e9dcb.css +1 -0
- package/dist/assets/index.8b3e4f70.fb7724ee.css +1 -0
- package/dist/index.0da1fafa.015bee59.mjs +10 -0
- package/dist/index.1046a424.mjs +175799 -0
- package/dist/index.2242d1a7.66a01ef7.mjs +125 -0
- package/dist/index.2291c8e2.1c1e2758.mjs +125 -0
- package/dist/{index.ef2e93a1.mjs → index.2c2473ea.mjs} +167 -187
- package/dist/index.42fbc816.bcd3785a.mjs +10 -0
- package/dist/{index.e7802e27.mjs → index.5dce5a61.mjs} +149 -158
- package/dist/{index.da7dd593.mjs → index.69b68e45.mjs} +1 -1
- package/dist/index.8b3e4f70.550c8920.mjs +385 -0
- package/dist/index.9803c44f.5a0946eb.mjs +125 -0
- package/dist/index.9829f249.dfba489c.mjs +10 -0
- package/dist/{index.b3eb7c5d.mjs → index.cdd11689.mjs} +1 -1
- package/dist/{index.1af0e30d.mjs → index.ed4dbd01.mjs} +1 -1
- package/dist/usercenter.es.js +14 -0
- package/dist/usercenter.umd.js +6586 -354
- package/package.json +22 -9
- package/version.md +4 -1
- package/dist/Card.71482621.mjs +0 -1078
- package/dist/DictEx.754c617b.mjs +0 -156
- package/dist/FooterToolBar.2546fb1f.mjs +0 -33
- package/dist/RegionSelect.5272534b.mjs +0 -71
- package/dist/assets/FooterToolBar.d4297046.css +0 -1
- package/dist/assets/index.01a0fb63.css +0 -1
- package/dist/assets/index.19e5ba4c.css +0 -1
- package/dist/assets/index.2164de3b.css +0 -1
- package/dist/assets/index.269f5360.css +0 -1
- package/dist/assets/index.28bdbdc3.css +0 -1
- package/dist/assets/index.3150518d.css +0 -1
- package/dist/assets/index.3a0797c4.css +0 -1
- package/dist/assets/index.53c37fa8.css +0 -1
- package/dist/assets/index.7c8e2d8f.css +0 -1
- package/dist/assets/index.b965b94b.css +0 -1
- package/dist/index.003313e6.mjs +0 -69436
- package/dist/index.05ef920d.mjs +0 -1129
- package/dist/index.1953dbda.mjs +0 -498
- package/dist/index.3c2af165.mjs +0 -761
- package/dist/index.919ac6b4.mjs +0 -7431
- package/dist/index.941a34c0.mjs +0 -874
- package/dist/index.96479524.mjs +0 -754
- package/dist/index.a000e9cf.mjs +0 -1445
- package/dist/index.c9138cba.mjs +0 -1104
- package/dist/index.ceea88a4.mjs +0 -1073
- package/dist/index.e271ee9d.mjs +0 -643
- package/dist/index.f701b909.mjs +0 -142
- package/dist/index.f9becca6.mjs +0 -6
- package/dist/index.fa4bb855.mjs +0 -7645
- package/dist/index.html +0 -1
- package/dist/use-dict-by-type.c90c1d31.mjs +0 -24
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { openBlock as e, createElementBlock as r } from "vue";
|
|
2
|
+
import { V as o } from "./index.1046a424.mjs";
|
|
3
|
+
const t = {};
|
|
4
|
+
function n(c, i) {
|
|
5
|
+
return e(), r("div", null, "404");
|
|
6
|
+
}
|
|
7
|
+
const f = /* @__PURE__ */ o(t, [["render", n], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/error/404.vue"]]);
|
|
8
|
+
export {
|
|
9
|
+
f as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { defineComponent as j, ref as v, reactive as B, onMounted as D, openBlock as n, createElementBlock as f, createVNode as m, withCtx as u, Fragment as V, renderList as E, createBlock as d, mergeProps as L, createCommentVNode as s, normalizeStyle as _, createTextVNode as P, toDisplayString as Y } from "vue";
|
|
2
|
+
import { V as F, aa as I, ac as J, a2 as T, ae as z, af as G, a3 as H, a5 as M, a4 as R } from "./index.1046a424.mjs";
|
|
3
|
+
import './assets/Standard.f3edef69.badeec91.css';const W = { class: "web-client" }, q = /* @__PURE__ */ j({
|
|
4
|
+
name: "Standard",
|
|
5
|
+
__name: "Standard",
|
|
6
|
+
props: {
|
|
7
|
+
record: {
|
|
8
|
+
type: Object,
|
|
9
|
+
default: () => {
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
emits: ["ok"],
|
|
14
|
+
setup(h, { emit: k }) {
|
|
15
|
+
const y = k, p = h, w = v(), i = B({
|
|
16
|
+
parentCode: "",
|
|
17
|
+
items: {}
|
|
18
|
+
}), b = v({}), r = v([]), g = {
|
|
19
|
+
labelCol: {
|
|
20
|
+
span: 6
|
|
21
|
+
},
|
|
22
|
+
wrapperCol: {
|
|
23
|
+
span: 18
|
|
24
|
+
}
|
|
25
|
+
}, C = async () => {
|
|
26
|
+
const { result: l } = await I({
|
|
27
|
+
parentCode: p.record.code
|
|
28
|
+
});
|
|
29
|
+
i.parentCode = p.record.code, l.forEach((a) => {
|
|
30
|
+
var t;
|
|
31
|
+
a.v2 = a.v2 ? JSON.parse(a.v2) : "", ((t = a == null ? void 0 : a.v2) == null ? void 0 : t.field) == "2" && (a.isChecked = a.v1 == "Y");
|
|
32
|
+
}), r.value = l;
|
|
33
|
+
}, S = async () => {
|
|
34
|
+
console.log(r.value, "source");
|
|
35
|
+
const l = {};
|
|
36
|
+
r.value.forEach((t) => {
|
|
37
|
+
var c;
|
|
38
|
+
((c = t == null ? void 0 : t.v2) == null ? void 0 : c.field) == "2" && (t.isChecked ? t.v1 == "Y" : t.v1 == "N"), l[t.code] = t.v1;
|
|
39
|
+
}), i.items = JSON.stringify(l);
|
|
40
|
+
const { result: a } = await J(i);
|
|
41
|
+
a && y("ok");
|
|
42
|
+
};
|
|
43
|
+
return D(() => {
|
|
44
|
+
C();
|
|
45
|
+
}), (l, a) => {
|
|
46
|
+
const t = T, c = z, U = G, x = H, O = M, N = R;
|
|
47
|
+
return n(), f("div", W, [
|
|
48
|
+
m(O, {
|
|
49
|
+
class: "form",
|
|
50
|
+
model: b.value,
|
|
51
|
+
ref_key: "formRef",
|
|
52
|
+
ref: w
|
|
53
|
+
}, {
|
|
54
|
+
default: u(() => [
|
|
55
|
+
(n(!0), f(V, null, E(r.value, (e, $) => (n(), d(x, L({
|
|
56
|
+
key: $,
|
|
57
|
+
label: l.$t("dct.SYS" + e.code),
|
|
58
|
+
ref_for: !0
|
|
59
|
+
}, g), {
|
|
60
|
+
default: u(() => [
|
|
61
|
+
e.v2 instanceof Object ? s("v-if", !0) : (n(), d(t, {
|
|
62
|
+
key: 0,
|
|
63
|
+
value: e.v1,
|
|
64
|
+
"onUpdate:value": (o) => e.v1 = o
|
|
65
|
+
}, null, 8, ["value", "onUpdate:value"])),
|
|
66
|
+
e.v2 instanceof Object && e.v2.field && e.v2.field == "0" ? (n(), d(t, {
|
|
67
|
+
key: 1,
|
|
68
|
+
style: _(
|
|
69
|
+
e.v2.width ? "width:" + e.v2.width + "px" : "width: 100% "
|
|
70
|
+
),
|
|
71
|
+
maxLength: e.v2.length ? e.v2.length : 100,
|
|
72
|
+
value: e.v1,
|
|
73
|
+
"onUpdate:value": (o) => e.v1 = o
|
|
74
|
+
}, null, 8, ["style", "maxLength", "value", "onUpdate:value"])) : s("v-if", !0),
|
|
75
|
+
e.v2 instanceof Object && e.v2.field && e.v2.field == "1" ? (n(), d(c, {
|
|
76
|
+
key: 2,
|
|
77
|
+
style: _(
|
|
78
|
+
e.v2.width ? "width:" + e.v2.width + "px" : "width: 100% "
|
|
79
|
+
),
|
|
80
|
+
value: e.v1,
|
|
81
|
+
"onUpdate:value": (o) => e.v1 = o
|
|
82
|
+
}, null, 8, ["style", "value", "onUpdate:value"])) : s("v-if", !0),
|
|
83
|
+
e.v2 instanceof Object && e.v2.field && e.v2.field == "2" ? (n(), d(U, {
|
|
84
|
+
key: 3,
|
|
85
|
+
checked: e.isChecked,
|
|
86
|
+
"onUpdate:checked": (o) => e.isChecked = o
|
|
87
|
+
}, null, 8, ["checked", "onUpdate:checked"])) : s("v-if", !0)
|
|
88
|
+
]),
|
|
89
|
+
_: 2
|
|
90
|
+
}, 1040, ["label"]))), 128))
|
|
91
|
+
]),
|
|
92
|
+
_: 1
|
|
93
|
+
}, 8, ["model"]),
|
|
94
|
+
m(N, {
|
|
95
|
+
onClick: S,
|
|
96
|
+
type: "primary",
|
|
97
|
+
class: "sub_btn"
|
|
98
|
+
}, {
|
|
99
|
+
default: u(() => [
|
|
100
|
+
P(Y(l.$t("param.btn_ok")), 1)
|
|
101
|
+
]),
|
|
102
|
+
_: 1
|
|
103
|
+
})
|
|
104
|
+
]);
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
}), Q = /* @__PURE__ */ F(q, [["__scopeId", "data-v-7829cd8b"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/sys/parameter/Standard.vue"]]);
|
|
108
|
+
export {
|
|
109
|
+
Q as default
|
|
110
|
+
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { defineComponent as j, ref as _, reactive as B, onMounted as I, openBlock as c, createElementBlock as f, createVNode as i, withCtx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import { _ as A } from "./index.ceea88a4.mjs";
|
|
5
|
-
import './assets/Standard.badeec91.css';const G = { class: "web-client" }, H = /* @__PURE__ */ j({
|
|
1
|
+
import { defineComponent as j, ref as _, reactive as B, onMounted as I, openBlock as c, createElementBlock as f, createVNode as i, withCtx as v, Fragment as L, renderList as E, createBlock as r, mergeProps as F, createCommentVNode as d, normalizeStyle as h, createTextVNode as P, toDisplayString as T } from "vue";
|
|
2
|
+
import { N as V, Q as Y, I as J, T as R, U as $, d as z, F as M, B as Q, _ as q } from "./index.1046a424.mjs";
|
|
3
|
+
import './assets/Standard.badeec91.css';const A = { class: "web-client" }, G = /* @__PURE__ */ j({
|
|
6
4
|
name: "Standard",
|
|
7
5
|
__name: "Standard",
|
|
8
6
|
props: {
|
|
@@ -14,58 +12,58 @@ import './assets/Standard.badeec91.css';const G = { class: "web-client" }, H = /
|
|
|
14
12
|
},
|
|
15
13
|
emits: ["ok"],
|
|
16
14
|
setup(k, { emit: y }) {
|
|
17
|
-
const b = y,
|
|
15
|
+
const b = y, p = k, w = _(), u = B({
|
|
18
16
|
parentCode: "",
|
|
19
17
|
items: {}
|
|
20
|
-
}), g = _({}), s = _([]),
|
|
18
|
+
}), g = _({}), s = _([]), S = {
|
|
21
19
|
labelCol: {
|
|
22
20
|
span: 6
|
|
23
21
|
},
|
|
24
22
|
wrapperCol: {
|
|
25
23
|
span: 18
|
|
26
24
|
}
|
|
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
25
|
}, C = async () => {
|
|
26
|
+
const { result: o } = await V({
|
|
27
|
+
parentCode: p.record.code
|
|
28
|
+
});
|
|
29
|
+
u.parentCode = p.record.code, o.forEach((n) => {
|
|
30
|
+
var a;
|
|
31
|
+
n.v2 = n.v2 ? JSON.parse(n.v2) : "", ((a = n == null ? void 0 : n.v2) == null ? void 0 : a.field) == "2" && (n.isChecked = n.v1 == "Y");
|
|
32
|
+
}), s.value = o;
|
|
33
|
+
}, m = async () => {
|
|
36
34
|
console.log(s.value, "source");
|
|
37
|
-
const
|
|
38
|
-
s.value.forEach((
|
|
35
|
+
const o = {};
|
|
36
|
+
s.value.forEach((a) => {
|
|
39
37
|
var l;
|
|
40
|
-
((l =
|
|
41
|
-
}), u.items = JSON.stringify(
|
|
42
|
-
const { result:
|
|
43
|
-
|
|
38
|
+
((l = a == null ? void 0 : a.v2) == null ? void 0 : l.field) == "2" && (a.isChecked ? a.v1 == "Y" : a.v1 == "N"), o[a.code] = a.v1;
|
|
39
|
+
}), u.items = JSON.stringify(o);
|
|
40
|
+
const { result: n } = await Y(u);
|
|
41
|
+
n && b("ok");
|
|
44
42
|
};
|
|
45
43
|
return I(() => {
|
|
46
|
-
|
|
47
|
-
}), (
|
|
48
|
-
const
|
|
49
|
-
return c(), f("div",
|
|
50
|
-
i(
|
|
44
|
+
C();
|
|
45
|
+
}), (o, n) => {
|
|
46
|
+
const a = J, l = R, U = $, x = z, N = M, O = Q;
|
|
47
|
+
return c(), f("div", A, [
|
|
48
|
+
i(N, {
|
|
51
49
|
class: "form",
|
|
52
50
|
model: g.value,
|
|
53
51
|
ref_key: "formRef",
|
|
54
52
|
ref: w
|
|
55
53
|
}, {
|
|
56
|
-
default:
|
|
57
|
-
(c(!0), f(L, null, E(s.value, (e,
|
|
58
|
-
key:
|
|
59
|
-
label:
|
|
54
|
+
default: v(() => [
|
|
55
|
+
(c(!0), f(L, null, E(s.value, (e, D) => (c(), r(x, F({
|
|
56
|
+
key: D,
|
|
57
|
+
label: o.$t("dct.SYS" + e.code),
|
|
60
58
|
ref_for: !0
|
|
61
|
-
},
|
|
62
|
-
default:
|
|
63
|
-
e.v2 instanceof Object ? d("v-if", !0) : (c(), r(
|
|
59
|
+
}, S), {
|
|
60
|
+
default: v(() => [
|
|
61
|
+
e.v2 instanceof Object ? d("v-if", !0) : (c(), r(a, {
|
|
64
62
|
key: 0,
|
|
65
63
|
value: e.v1,
|
|
66
64
|
"onUpdate:value": (t) => e.v1 = t
|
|
67
65
|
}, null, 8, ["value", "onUpdate:value"])),
|
|
68
|
-
e.v2 instanceof Object && e.v2.field && e.v2.field == "0" ? (c(), r(
|
|
66
|
+
e.v2 instanceof Object && e.v2.field && e.v2.field == "0" ? (c(), r(a, {
|
|
69
67
|
key: 1,
|
|
70
68
|
style: h(
|
|
71
69
|
e.v2.width ? "width:" + e.v2.width + "px" : "width: 100% "
|
|
@@ -93,13 +91,13 @@ import './assets/Standard.badeec91.css';const G = { class: "web-client" }, H = /
|
|
|
93
91
|
]),
|
|
94
92
|
_: 1
|
|
95
93
|
}, 8, ["model"]),
|
|
96
|
-
i(
|
|
97
|
-
onClick:
|
|
94
|
+
i(O, {
|
|
95
|
+
onClick: m,
|
|
98
96
|
type: "primary",
|
|
99
97
|
class: "sub_btn"
|
|
100
98
|
}, {
|
|
101
|
-
default:
|
|
102
|
-
P(
|
|
99
|
+
default: v(() => [
|
|
100
|
+
P(T(o.$t("param.btn_ok")), 1)
|
|
103
101
|
]),
|
|
104
102
|
_: 1
|
|
105
103
|
})
|
|
@@ -107,7 +105,7 @@ import './assets/Standard.badeec91.css';const G = { class: "web-client" }, H = /
|
|
|
107
105
|
};
|
|
108
106
|
}
|
|
109
107
|
});
|
|
110
|
-
const
|
|
108
|
+
const W = /* @__PURE__ */ q(G, [["__scopeId", "data-v-7829cd8b"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/sys/parameter/Standard.vue"]]);
|
|
111
109
|
export {
|
|
112
|
-
|
|
110
|
+
W as default
|
|
113
111
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { defineComponent as V, ref as m, reactive as $, watch as z, onMounted as j, openBlock as o, createElementBlock as i, createVNode as h, withCtx as
|
|
2
|
-
import {
|
|
3
|
-
import { g as te, s as ae } from "./index.f701b909.mjs";
|
|
1
|
+
import { defineComponent as V, ref as m, reactive as $, watch as z, onMounted as j, openBlock as o, createElementBlock as i, createVNode as h, withCtx as u, Fragment as w, renderList as D, createBlock as v, mergeProps as x, createCommentVNode as b, createElementVNode as n, normalizeStyle as N, normalizeClass as T, toDisplayString as O, createTextVNode as Q } from "vue";
|
|
2
|
+
import { u as q, N as G, O as I, Q as K, I as X, R as Y, d as Z, F as ee, B as te, _ as ae } from "./index.1046a424.mjs";
|
|
4
3
|
import './assets/WebClient.2a3e464e.css';const oe = { class: "web-client" }, se = ["src"], ne = {
|
|
5
4
|
key: 2,
|
|
6
5
|
class: "color-choose"
|
|
@@ -16,7 +15,7 @@ import './assets/WebClient.2a3e464e.css';const oe = { class: "web-client" }, se
|
|
|
16
15
|
},
|
|
17
16
|
emits: ["ok"],
|
|
18
17
|
setup(E, { emit: A }) {
|
|
19
|
-
const { t:
|
|
18
|
+
const { t: y } = q(), S = A, p = E, _ = m(0), g = [
|
|
20
19
|
"#fff",
|
|
21
20
|
"#ccc",
|
|
22
21
|
"#666",
|
|
@@ -37,9 +36,9 @@ import './assets/WebClient.2a3e464e.css';const oe = { class: "web-client" }, se
|
|
|
37
36
|
span: 18
|
|
38
37
|
}
|
|
39
38
|
}, k = async () => {
|
|
40
|
-
r.parentCode =
|
|
41
|
-
const { result: e } = await
|
|
42
|
-
parentCode:
|
|
39
|
+
r.parentCode = p.record.code;
|
|
40
|
+
const { result: e } = await G({
|
|
41
|
+
parentCode: p.record.code
|
|
43
42
|
});
|
|
44
43
|
c.value = e;
|
|
45
44
|
const a = e.find((t) => t.v2 == "HEAD_ICON");
|
|
@@ -52,38 +51,38 @@ import './assets/WebClient.2a3e464e.css';const oe = { class: "web-client" }, se
|
|
|
52
51
|
t.addEventListener("load", () => a(t.result)), t.readAsDataURL(e);
|
|
53
52
|
}, H = (e) => e.type === "image/jpeg" || e.type === "image/png" ? e.size / 1024 / 1024 < 2 ? (r.fileName = e, B(e, (l) => {
|
|
54
53
|
l.value = l;
|
|
55
|
-
}), !1) : (I.error(
|
|
54
|
+
}), !1) : (I.error(y("param.tips2")), !1) : (I.error(y("param.tips1")), !1), R = async () => {
|
|
56
55
|
console.log(c.value, "source");
|
|
57
56
|
const e = {};
|
|
58
57
|
c.value.forEach((t) => {
|
|
59
58
|
t.v2 !== "HEAD_ICON" && (e[t.code] = t.v1);
|
|
60
59
|
}), r.items = JSON.stringify(e);
|
|
61
|
-
const { result: a } = await
|
|
60
|
+
const { result: a } = await K(r);
|
|
62
61
|
a && S("ok");
|
|
63
|
-
},
|
|
62
|
+
}, U = (e) => {
|
|
64
63
|
_.value = e;
|
|
65
64
|
};
|
|
66
65
|
return z(
|
|
67
|
-
() =>
|
|
66
|
+
() => p.record,
|
|
68
67
|
() => {
|
|
69
68
|
k();
|
|
70
69
|
}
|
|
71
70
|
), j(() => {
|
|
72
71
|
k();
|
|
73
72
|
}), (e, a) => {
|
|
74
|
-
const t =
|
|
73
|
+
const t = X, l = Y, W = Z, F = ee, J = te;
|
|
75
74
|
return o(), i("div", oe, [
|
|
76
|
-
h(
|
|
75
|
+
h(F, {
|
|
77
76
|
class: "form",
|
|
78
77
|
ref: "formRef"
|
|
79
78
|
}, {
|
|
80
|
-
default:
|
|
81
|
-
(o(!0), i(
|
|
82
|
-
key:
|
|
79
|
+
default: u(() => [
|
|
80
|
+
(o(!0), i(w, null, D(c.value, (s, M) => (o(), v(W, x({
|
|
81
|
+
key: M,
|
|
83
82
|
label: e.$t("dct.PARAMS" + s.code),
|
|
84
83
|
ref_for: !0
|
|
85
84
|
}, P), {
|
|
86
|
-
default:
|
|
85
|
+
default: u(() => [
|
|
87
86
|
s.v2 != "HEAD_ICON" ? (o(), v(t, {
|
|
88
87
|
key: 0,
|
|
89
88
|
value: s.v1,
|
|
@@ -98,10 +97,10 @@ import './assets/WebClient.2a3e464e.css';const oe = { class: "web-client" }, se
|
|
|
98
97
|
"show-upload-list": !1,
|
|
99
98
|
"before-upload": H
|
|
100
99
|
}, {
|
|
101
|
-
default:
|
|
100
|
+
default: u(() => [
|
|
102
101
|
n("div", {
|
|
103
102
|
class: "bg",
|
|
104
|
-
style: N("background:" +
|
|
103
|
+
style: N("background:" + g[_.value])
|
|
105
104
|
}, [
|
|
106
105
|
n("img", {
|
|
107
106
|
src: C.value,
|
|
@@ -114,13 +113,13 @@ import './assets/WebClient.2a3e464e.css';const oe = { class: "web-client" }, se
|
|
|
114
113
|
})) : b("v-if", !0),
|
|
115
114
|
s.v2 == "HEAD_ICON" ? (o(), i("div", ne, [
|
|
116
115
|
n("div", re, [
|
|
117
|
-
(o(), i(
|
|
116
|
+
(o(), i(w, null, D(g, (d, f) => n("div", {
|
|
118
117
|
key: f,
|
|
119
118
|
class: "color-item"
|
|
120
119
|
}, [
|
|
121
120
|
n("div", {
|
|
122
121
|
style: N("background:" + d),
|
|
123
|
-
onClick: (
|
|
122
|
+
onClick: (ue) => U(f),
|
|
124
123
|
class: T(_.value == f ? "active" : "")
|
|
125
124
|
}, null, 14, ce)
|
|
126
125
|
])), 64))
|
|
@@ -133,13 +132,13 @@ import './assets/WebClient.2a3e464e.css';const oe = { class: "web-client" }, se
|
|
|
133
132
|
]),
|
|
134
133
|
_: 1
|
|
135
134
|
}, 512),
|
|
136
|
-
h(
|
|
137
|
-
onClick:
|
|
135
|
+
h(J, {
|
|
136
|
+
onClick: R,
|
|
138
137
|
type: "primary",
|
|
139
138
|
class: "sub_btn"
|
|
140
139
|
}, {
|
|
141
|
-
default:
|
|
142
|
-
|
|
140
|
+
default: u(() => [
|
|
141
|
+
Q(O(e.$t("param.btn_ok")), 1)
|
|
143
142
|
]),
|
|
144
143
|
_: 1
|
|
145
144
|
})
|
|
@@ -147,7 +146,7 @@ import './assets/WebClient.2a3e464e.css';const oe = { class: "web-client" }, se
|
|
|
147
146
|
};
|
|
148
147
|
}
|
|
149
148
|
});
|
|
150
|
-
const
|
|
149
|
+
const de = /* @__PURE__ */ ae(ie, [["__scopeId", "data-v-7c2314b0"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/sys/parameter/WebClient.vue"]]);
|
|
151
150
|
export {
|
|
152
|
-
|
|
151
|
+
de as default
|
|
153
152
|
};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { defineComponent as R, ref as f, reactive as z, watch as J, onMounted as M, openBlock as l, createElementBlock as c, createVNode as g, withCtx as i, Fragment as w, renderList as N, createBlock as m, mergeProps as j, createCommentVNode as _, createElementVNode as o, normalizeStyle as h, normalizeClass as T, toDisplayString as D, createTextVNode as q } from "vue";
|
|
2
|
+
import { V as G, a9 as K, aa as Q, ab as E, ac as X, a2 as Y, ad as Z, a3 as ee, a5 as ae, a4 as te } from "./index.1046a424.mjs";
|
|
3
|
+
import './assets/WebClient.d57f9832.2a3e464e.css';const le = { class: "web-client" }, re = ["src"], oe = {
|
|
4
|
+
key: 2,
|
|
5
|
+
class: "color-choose"
|
|
6
|
+
}, se = { class: "color" }, ne = ["onClick"], ce = { class: "tips" }, ie = /* @__PURE__ */ R({
|
|
7
|
+
name: "WebClient",
|
|
8
|
+
__name: "WebClient",
|
|
9
|
+
props: {
|
|
10
|
+
record: {
|
|
11
|
+
type: Object,
|
|
12
|
+
default: () => {
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
emits: ["ok"],
|
|
17
|
+
setup(A, { emit: I }) {
|
|
18
|
+
const { t: y } = K(), O = I, p = A, d = f(0), C = [
|
|
19
|
+
"#fff",
|
|
20
|
+
"#ccc",
|
|
21
|
+
"#666",
|
|
22
|
+
"#333",
|
|
23
|
+
"#000",
|
|
24
|
+
"#001efb",
|
|
25
|
+
"#fffe34",
|
|
26
|
+
"#ff0f00",
|
|
27
|
+
"#0dfd36"
|
|
28
|
+
], s = z({
|
|
29
|
+
parentCode: "",
|
|
30
|
+
items: {}
|
|
31
|
+
}), n = f([]), S = "/", b = f(""), H = {
|
|
32
|
+
labelCol: {
|
|
33
|
+
span: 6
|
|
34
|
+
},
|
|
35
|
+
wrapperCol: {
|
|
36
|
+
span: 18
|
|
37
|
+
}
|
|
38
|
+
}, k = async () => {
|
|
39
|
+
s.parentCode = p.record.code;
|
|
40
|
+
const { result: e } = await Q({
|
|
41
|
+
parentCode: p.record.code
|
|
42
|
+
});
|
|
43
|
+
n.value = e;
|
|
44
|
+
const t = e.find((a) => a.v2 == "HEAD_ICON");
|
|
45
|
+
if (t) {
|
|
46
|
+
const a = JSON.parse(t.v1);
|
|
47
|
+
b.value = S + "api/auth/node-icon/" + a.bucket + "/" + a.file;
|
|
48
|
+
}
|
|
49
|
+
}, $ = (e, t) => {
|
|
50
|
+
const a = new FileReader();
|
|
51
|
+
a.addEventListener("load", () => t(a.result)), a.readAsDataURL(e);
|
|
52
|
+
}, x = (e) => e.type === "image/jpeg" || e.type === "image/png" ? e.size / 1024 / 1024 < 2 ? (s.fileName = e, $(e, (t) => {
|
|
53
|
+
t.value = t;
|
|
54
|
+
}), !1) : (E.error(y("param.tips2")), !1) : (E.error(y("param.tips1")), !1), B = async () => {
|
|
55
|
+
console.log(n.value, "source");
|
|
56
|
+
const e = {};
|
|
57
|
+
n.value.forEach((a) => {
|
|
58
|
+
a.v2 !== "HEAD_ICON" && (e[a.code] = a.v1);
|
|
59
|
+
}), s.items = JSON.stringify(e);
|
|
60
|
+
const { result: t } = await X(s);
|
|
61
|
+
t && O("ok");
|
|
62
|
+
}, P = (e) => {
|
|
63
|
+
d.value = e;
|
|
64
|
+
};
|
|
65
|
+
return J(
|
|
66
|
+
() => p.record,
|
|
67
|
+
() => {
|
|
68
|
+
k();
|
|
69
|
+
}
|
|
70
|
+
), M(() => {
|
|
71
|
+
k();
|
|
72
|
+
}), (e, t) => {
|
|
73
|
+
const a = Y, U = Z, V = ee, W = ae, F = te;
|
|
74
|
+
return l(), c("div", le, [
|
|
75
|
+
g(W, {
|
|
76
|
+
class: "form",
|
|
77
|
+
ref: "formRef"
|
|
78
|
+
}, {
|
|
79
|
+
default: i(() => [
|
|
80
|
+
(l(!0), c(w, null, N(n.value, (r, L) => (l(), m(V, j({
|
|
81
|
+
key: L,
|
|
82
|
+
label: e.$t("dct.PARAMS" + r.code),
|
|
83
|
+
ref_for: !0
|
|
84
|
+
}, H), {
|
|
85
|
+
default: i(() => [
|
|
86
|
+
r.v2 != "HEAD_ICON" ? (l(), m(a, {
|
|
87
|
+
key: 0,
|
|
88
|
+
value: r.v1,
|
|
89
|
+
"onUpdate:value": (u) => r.v1 = u
|
|
90
|
+
}, null, 8, ["value", "onUpdate:value"])) : _("v-if", !0),
|
|
91
|
+
r.v2 == "HEAD_ICON" ? (l(), m(U, {
|
|
92
|
+
key: 1,
|
|
93
|
+
name: "avatar",
|
|
94
|
+
style: { width: "102px", float: "left" },
|
|
95
|
+
"list-type": "picture-card",
|
|
96
|
+
class: "avatar-uploader",
|
|
97
|
+
"show-upload-list": !1,
|
|
98
|
+
"before-upload": x
|
|
99
|
+
}, {
|
|
100
|
+
default: i(() => [
|
|
101
|
+
o("div", {
|
|
102
|
+
class: "bg",
|
|
103
|
+
style: h("background:" + C[d.value])
|
|
104
|
+
}, [
|
|
105
|
+
o("img", {
|
|
106
|
+
src: b.value,
|
|
107
|
+
alt: "avatar",
|
|
108
|
+
class: "avatar"
|
|
109
|
+
}, null, 8, re)
|
|
110
|
+
], 4)
|
|
111
|
+
]),
|
|
112
|
+
_: 1
|
|
113
|
+
})) : _("v-if", !0),
|
|
114
|
+
r.v2 == "HEAD_ICON" ? (l(), c("div", oe, [
|
|
115
|
+
o("div", se, [
|
|
116
|
+
(l(), c(w, null, N(C, (u, v) => o("div", {
|
|
117
|
+
key: v,
|
|
118
|
+
class: "color-item"
|
|
119
|
+
}, [
|
|
120
|
+
o("div", {
|
|
121
|
+
style: h("background:" + u),
|
|
122
|
+
onClick: (pe) => P(v),
|
|
123
|
+
class: T(d.value == v ? "active" : "")
|
|
124
|
+
}, null, 14, ne)
|
|
125
|
+
])), 64))
|
|
126
|
+
]),
|
|
127
|
+
o("span", ce, D(e.$t("param.tip")), 1)
|
|
128
|
+
])) : _("v-if", !0)
|
|
129
|
+
]),
|
|
130
|
+
_: 2
|
|
131
|
+
}, 1040, ["label"]))), 128))
|
|
132
|
+
]),
|
|
133
|
+
_: 1
|
|
134
|
+
}, 512),
|
|
135
|
+
g(F, {
|
|
136
|
+
onClick: B,
|
|
137
|
+
type: "primary",
|
|
138
|
+
class: "sub_btn"
|
|
139
|
+
}, {
|
|
140
|
+
default: i(() => [
|
|
141
|
+
q(D(e.$t("param.btn_ok")), 1)
|
|
142
|
+
]),
|
|
143
|
+
_: 1
|
|
144
|
+
})
|
|
145
|
+
]);
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
}), ve = /* @__PURE__ */ G(ie, [["__scopeId", "data-v-7c2314b0"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/sys/parameter/WebClient.vue"]]);
|
|
149
|
+
export {
|
|
150
|
+
ve as default
|
|
151
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
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}
|
|
@@ -0,0 +1 @@
|
|
|
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>.ant-upload[data-v-7c2314b0]{width:70px;height:70px}.ant-upload-select-picture-card i[data-v-7c2314b0]{font-size:32px;color:#999}.ant-upload-select-picture-card .ant-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}
|