@witlink/usercenter 1.0.0
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/README.md +155 -0
- package/dist/404.e6ab6ba0.mjs +10 -0
- package/dist/Card.71482621.mjs +1078 -0
- package/dist/DictEx.754c617b.mjs +156 -0
- package/dist/FooterToolBar.2546fb1f.mjs +33 -0
- package/dist/RegionSelect.5272534b.mjs +71 -0
- package/dist/Standard.64ae6a8d.mjs +113 -0
- package/dist/WebClient.0ac67ce0.mjs +153 -0
- package/dist/assets/FooterToolBar.d4297046.css +1 -0
- package/dist/assets/Standard.badeec91.css +1 -0
- package/dist/assets/WebClient.2a3e464e.css +1 -0
- package/dist/assets/index.01a0fb63.css +1 -0
- package/dist/assets/index.19e5ba4c.css +1 -0
- package/dist/assets/index.2164de3b.css +1 -0
- package/dist/assets/index.269f5360.css +1 -0
- package/dist/assets/index.28bdbdc3.css +1 -0
- package/dist/assets/index.3150518d.css +1 -0
- package/dist/assets/index.3a0797c4.css +1 -0
- package/dist/assets/index.53c37fa8.css +1 -0
- package/dist/assets/index.7c8e2d8f.css +1 -0
- package/dist/assets/index.b965b94b.css +1 -0
- package/dist/assets/index.fb7724ee.css +1 -0
- package/dist/index.003313e6.mjs +69436 -0
- package/dist/index.05ef920d.mjs +1129 -0
- package/dist/index.1953dbda.mjs +498 -0
- package/dist/index.1af0e30d.mjs +10 -0
- package/dist/index.2242d1a7.mjs +125 -0
- package/dist/index.2291c8e2.mjs +125 -0
- package/dist/index.3c2af165.mjs +761 -0
- package/dist/index.919ac6b4.mjs +7431 -0
- package/dist/index.941a34c0.mjs +874 -0
- package/dist/index.96479524.mjs +754 -0
- package/dist/index.9803c44f.mjs +125 -0
- package/dist/index.a000e9cf.mjs +1445 -0
- package/dist/index.b3eb7c5d.mjs +10 -0
- package/dist/index.c9138cba.mjs +1104 -0
- package/dist/index.ceea88a4.mjs +1073 -0
- package/dist/index.da7dd593.mjs +10 -0
- package/dist/index.e271ee9d.mjs +643 -0
- package/dist/index.e7802e27.mjs +786 -0
- package/dist/index.ef2e93a1.mjs +386 -0
- package/dist/index.f701b909.mjs +142 -0
- package/dist/index.f9becca6.mjs +6 -0
- package/dist/index.fa4bb855.mjs +7645 -0
- package/dist/index.html +1 -0
- package/dist/use-dict-by-type.c90c1d31.mjs +24 -0
- package/dist/usercenter.umd.js +6237 -0
- package/package.json +26 -0
- package/version.md +2 -0
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { defineComponent as M, ref as f, watch as D, onMounted as N, openBlock as o, createElementBlock as r, createBlock as k, withCtx as w, Fragment as y, renderList as B, createTextVNode as E, toDisplayString as g, createCommentVNode as v } from "vue";
|
|
2
|
+
import { D as O, aD as T, aE as V, aF as P, _ as R } from "./index.003313e6.mjs";
|
|
3
|
+
const $ = { key: 1 }, q = { key: 2 }, U = /* @__PURE__ */ M({
|
|
4
|
+
__name: "DictEx",
|
|
5
|
+
props: {
|
|
6
|
+
server: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: null
|
|
9
|
+
},
|
|
10
|
+
mode: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: "default"
|
|
13
|
+
},
|
|
14
|
+
disabled: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: !1
|
|
17
|
+
},
|
|
18
|
+
type: {
|
|
19
|
+
type: String,
|
|
20
|
+
required: !0
|
|
21
|
+
},
|
|
22
|
+
kind: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: "dict"
|
|
25
|
+
},
|
|
26
|
+
size: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "default"
|
|
29
|
+
},
|
|
30
|
+
value: {
|
|
31
|
+
type: Array,
|
|
32
|
+
default: null
|
|
33
|
+
},
|
|
34
|
+
all: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: !1
|
|
37
|
+
},
|
|
38
|
+
allowClear: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !0
|
|
41
|
+
},
|
|
42
|
+
exclude: {
|
|
43
|
+
type: Array,
|
|
44
|
+
default: null
|
|
45
|
+
},
|
|
46
|
+
placeholder: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: ""
|
|
49
|
+
},
|
|
50
|
+
enableI18nData: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: !1
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
emits: ["change", "loaded", "click", "update:value"],
|
|
56
|
+
setup(l, { expose: S, emit: A }) {
|
|
57
|
+
const { t: C } = O(), c = A, u = l, h = f(), n = f([]), b = f([]), p = f([]), m = f(!1), j = () => {
|
|
58
|
+
m.value = !0;
|
|
59
|
+
}, z = () => {
|
|
60
|
+
h.value.focus();
|
|
61
|
+
}, F = (e) => {
|
|
62
|
+
u.mode !== "multiple" && h.value.blur(), c("click"), typeof e == "string" ? (c("change", [e]), c("update:value", [e])) : (c("change", e), c("update:value", e));
|
|
63
|
+
}, I = () => u.value.map((a) => n.value[a] ? n.value[a].text : "").join(","), s = (e, a) => {
|
|
64
|
+
if (n.value[e]) {
|
|
65
|
+
let t = n.value[e], d = 0;
|
|
66
|
+
if (typeof t == "object" && (d = t.level, t = t.text), C("dct." + u.type + e) != "dct." + u.type + e && (t = C("dct." + u.type + e)), a == "html")
|
|
67
|
+
for (d > 0 && (t = "|--" + t); d-- > 0; )
|
|
68
|
+
t = "\u3000" + t;
|
|
69
|
+
return t;
|
|
70
|
+
} else
|
|
71
|
+
return "";
|
|
72
|
+
}, L = async () => {
|
|
73
|
+
const { result: e } = await V({
|
|
74
|
+
tableType: u.type,
|
|
75
|
+
server: u.server
|
|
76
|
+
});
|
|
77
|
+
if (u.all)
|
|
78
|
+
n.value = Object.assign({ "": "All" }, e);
|
|
79
|
+
else {
|
|
80
|
+
n.value = e;
|
|
81
|
+
const a = [];
|
|
82
|
+
Object.keys(n.value).sort().forEach((t) => {
|
|
83
|
+
a.push(t);
|
|
84
|
+
}), b.value = a, u.enableI18nData && b.value.forEach((t) => {
|
|
85
|
+
n.value[t].text = s(t);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
c("loaded", n.value);
|
|
89
|
+
};
|
|
90
|
+
return D(
|
|
91
|
+
() => u.value,
|
|
92
|
+
(e) => {
|
|
93
|
+
e && e[0] ? p.value = e : p.value = [];
|
|
94
|
+
}
|
|
95
|
+
), D(m, (e) => {
|
|
96
|
+
e || c("click");
|
|
97
|
+
}), S({
|
|
98
|
+
focus: z,
|
|
99
|
+
getLabel: s
|
|
100
|
+
}), N(() => {
|
|
101
|
+
L();
|
|
102
|
+
}), (e, a) => {
|
|
103
|
+
const t = T, d = P;
|
|
104
|
+
return o(), r("div", null, [
|
|
105
|
+
l.kind == "dict" ? (o(), k(d, {
|
|
106
|
+
key: 0,
|
|
107
|
+
ref_key: "aselectRef",
|
|
108
|
+
ref: h,
|
|
109
|
+
style: { width: "100%" },
|
|
110
|
+
value: p.value,
|
|
111
|
+
"onUpdate:value": a[0] || (a[0] = (i) => p.value = i),
|
|
112
|
+
getPopupContainer: (i) => i.parentNode,
|
|
113
|
+
placeholder: l.placeholder !== "" ? l.placeholder : e.$t("dict.pbl_select"),
|
|
114
|
+
mode: l.mode,
|
|
115
|
+
onChange: F,
|
|
116
|
+
disabled: l.disabled,
|
|
117
|
+
size: l.size,
|
|
118
|
+
allowClear: l.allowClear,
|
|
119
|
+
open: m.value,
|
|
120
|
+
onFocus: j,
|
|
121
|
+
onBlur: a[1] || (a[1] = (i) => m.value = !1)
|
|
122
|
+
}, {
|
|
123
|
+
default: w(() => [
|
|
124
|
+
Array.isArray(n.value) ? (o(), r(y, { key: 0 }, [
|
|
125
|
+
!l.exclude || !l.exclude.includes(e.key) ? (o(!0), r(y, { key: 0 }, B(n.value, (i, x) => (o(), k(t, {
|
|
126
|
+
key: x,
|
|
127
|
+
value: x
|
|
128
|
+
}, {
|
|
129
|
+
default: w(() => [
|
|
130
|
+
E(g(s(x, "html")), 1)
|
|
131
|
+
]),
|
|
132
|
+
_: 2
|
|
133
|
+
}, 1032, ["value"]))), 128)) : v("v-if", !0)
|
|
134
|
+
], 64)) : (o(), r(y, { key: 1 }, [
|
|
135
|
+
!l.exclude || !l.exclude.includes(e.key) ? (o(!0), r(y, { key: 0 }, B(b.value, (i) => (o(), k(t, {
|
|
136
|
+
key: i,
|
|
137
|
+
value: i
|
|
138
|
+
}, {
|
|
139
|
+
default: w(() => [
|
|
140
|
+
E(g(s(i, "html")), 1)
|
|
141
|
+
]),
|
|
142
|
+
_: 2
|
|
143
|
+
}, 1032, ["value"]))), 128)) : v("v-if", !0)
|
|
144
|
+
], 64))
|
|
145
|
+
]),
|
|
146
|
+
_: 1
|
|
147
|
+
}, 8, ["value", "getPopupContainer", "placeholder", "mode", "disabled", "size", "allowClear", "open"])) : v("v-if", !0),
|
|
148
|
+
l.kind == "text" && l.mode === "multiple" ? (o(), r("span", $, g(I()), 1)) : v("v-if", !0),
|
|
149
|
+
l.kind == "text" && l.mode !== "multiple" ? (o(), r("span", q, g(s(l.value, "html")), 1)) : v("v-if", !0)
|
|
150
|
+
]);
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
}), J = /* @__PURE__ */ R(U, [["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/components/public/DictEx.vue"]]);
|
|
154
|
+
export {
|
|
155
|
+
J as D
|
|
156
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defineComponent as n, openBlock as s, createElementBlock as l, createElementVNode as o, renderSlot as t, createTextVNode as _, toDisplayString as c } from "vue";
|
|
2
|
+
import { _ as i } from "./index.003313e6.mjs";
|
|
3
|
+
import './assets/FooterToolBar.d4297046.css';const p = { class: "ant-pro-footer-toolbar" }, d = { style: { float: "left" } }, f = { style: { "text-align": "center" } }, m = /* @__PURE__ */ n({
|
|
4
|
+
name: "FooterToolBar",
|
|
5
|
+
__name: "FooterToolBar",
|
|
6
|
+
props: {
|
|
7
|
+
prefixCls: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: "ant-pro-footer-toolbar"
|
|
10
|
+
},
|
|
11
|
+
extra: {
|
|
12
|
+
type: [String, Object],
|
|
13
|
+
default: ""
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
setup(r) {
|
|
17
|
+
const a = r;
|
|
18
|
+
return (e, u) => (s(), l("div", p, [
|
|
19
|
+
o("div", d, [
|
|
20
|
+
t(e.$slots, "extra", {}, () => [
|
|
21
|
+
_(c(a.extra), 1)
|
|
22
|
+
], !0)
|
|
23
|
+
]),
|
|
24
|
+
o("div", f, [
|
|
25
|
+
t(e.$slots, "default", {}, void 0, !0)
|
|
26
|
+
])
|
|
27
|
+
]));
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
const y = /* @__PURE__ */ i(m, [["__scopeId", "data-v-040ae207"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/components/FooterToolbar/FooterToolBar.vue"]]);
|
|
31
|
+
export {
|
|
32
|
+
y as F
|
|
33
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { defineComponent as b, ref as n, watch as v, openBlock as _, createElementBlock as w, createVNode as V } from "vue";
|
|
2
|
+
import { b0 as y, b1 as C, b2 as R, _ as S } from "./index.003313e6.mjs";
|
|
3
|
+
import { _ as k } from "./index.c9138cba.mjs";
|
|
4
|
+
const D = /* @__PURE__ */ b({
|
|
5
|
+
__name: "RegionSelect",
|
|
6
|
+
props: {
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: Array,
|
|
9
|
+
default: () => []
|
|
10
|
+
},
|
|
11
|
+
defaultVal: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: ""
|
|
14
|
+
},
|
|
15
|
+
disabled: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: !1
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
emits: ["change", "update:modelValue"],
|
|
21
|
+
setup(s, { expose: p, emit: g }) {
|
|
22
|
+
const c = g, m = s, l = n([]), a = n([]), i = n({}), r = async (e) => {
|
|
23
|
+
const { result: t } = await y({
|
|
24
|
+
code: e
|
|
25
|
+
});
|
|
26
|
+
if (a.value = t, e)
|
|
27
|
+
for (let o = 0; o < e.length / 3; o++)
|
|
28
|
+
l.value.push(e.substr(0, (o + 1) * 3));
|
|
29
|
+
}, u = () => {
|
|
30
|
+
const e = l.value;
|
|
31
|
+
c("change", e[e.length - 1]), c("update:modelValue", [e[e.length - 1]]);
|
|
32
|
+
}, d = () => {
|
|
33
|
+
a.value.length == 0 && r();
|
|
34
|
+
}, f = async (e) => {
|
|
35
|
+
const t = e[e.length - 1];
|
|
36
|
+
t.loading = !0, i.value.code = t.value;
|
|
37
|
+
const o = await C(i.value);
|
|
38
|
+
t.loading = !1, t.children = o.result, a.value = [...a.value];
|
|
39
|
+
};
|
|
40
|
+
return p({
|
|
41
|
+
onChange: u,
|
|
42
|
+
onPopupVisibleChange: d,
|
|
43
|
+
getObject: async (e) => await R({
|
|
44
|
+
code: e
|
|
45
|
+
})
|
|
46
|
+
}), v(
|
|
47
|
+
() => m.defaultVal,
|
|
48
|
+
(e) => {
|
|
49
|
+
r(e);
|
|
50
|
+
}
|
|
51
|
+
), (e, t) => {
|
|
52
|
+
const o = k;
|
|
53
|
+
return _(), w("div", null, [
|
|
54
|
+
V(o, {
|
|
55
|
+
options: a.value,
|
|
56
|
+
loadData: f,
|
|
57
|
+
allowClear: !1,
|
|
58
|
+
value: l.value,
|
|
59
|
+
"onUpdate:value": t[0] || (t[0] = (h) => l.value = h),
|
|
60
|
+
placeholder: e.$t("region.tree_placeholder"),
|
|
61
|
+
disabled: s.disabled,
|
|
62
|
+
onDropdownVisibleChange: d,
|
|
63
|
+
onChange: u
|
|
64
|
+
}, null, 8, ["options", "value", "placeholder", "disabled"])
|
|
65
|
+
]);
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
}), P = /* @__PURE__ */ S(D, [["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/components/public/RegionSelect.vue"]]);
|
|
69
|
+
export {
|
|
70
|
+
P as R
|
|
71
|
+
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { defineComponent as j, ref as _, reactive as B, onMounted as I, openBlock as c, createElementBlock as f, createVNode as i, withCtx as p, Fragment as L, renderList as E, createBlock as r, mergeProps as F, createCommentVNode as d, normalizeStyle as h, createTextVNode as P, toDisplayString as V } from "vue";
|
|
2
|
+
import { g as Y, s as J } from "./index.f701b909.mjs";
|
|
3
|
+
import { I as R, c6 as T, b as $, F as z, B as M, _ as q } from "./index.003313e6.mjs";
|
|
4
|
+
import { _ as A } from "./index.ceea88a4.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 I(() => {
|
|
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(L, null, E(s.value, (e, N) => (c(), r(x, F({
|
|
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-usercenter1/src/views/sys/parameter/Standard.vue"]]);
|
|
111
|
+
export {
|
|
112
|
+
Z as default
|
|
113
|
+
};
|
|
@@ -0,0 +1,153 @@
|
|
|
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 p, Fragment as D, renderList as w, 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 { D as G, aO as I, I as K, c4 as Q, b as X, F as Y, B as Z, _ as ee } from "./index.003313e6.mjs";
|
|
3
|
+
import { g as te, s as ae } from "./index.f701b909.mjs";
|
|
4
|
+
import './assets/WebClient.2a3e464e.css';const oe = { class: "web-client" }, se = ["src"], ne = {
|
|
5
|
+
key: 2,
|
|
6
|
+
class: "color-choose"
|
|
7
|
+
}, re = { class: "color" }, ce = ["onClick"], le = { class: "tips" }, ie = /* @__PURE__ */ V({
|
|
8
|
+
name: "WebClient",
|
|
9
|
+
__name: "WebClient",
|
|
10
|
+
props: {
|
|
11
|
+
record: {
|
|
12
|
+
type: Object,
|
|
13
|
+
default: () => {
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
emits: ["ok"],
|
|
18
|
+
setup(E, { emit: A }) {
|
|
19
|
+
const { t: g } = G(), S = A, u = E, _ = m(0), y = [
|
|
20
|
+
"#fff",
|
|
21
|
+
"#ccc",
|
|
22
|
+
"#666",
|
|
23
|
+
"#333",
|
|
24
|
+
"#000",
|
|
25
|
+
"#001efb",
|
|
26
|
+
"#fffe34",
|
|
27
|
+
"#ff0f00",
|
|
28
|
+
"#0dfd36"
|
|
29
|
+
], r = $({
|
|
30
|
+
parentCode: "",
|
|
31
|
+
items: {}
|
|
32
|
+
}), c = m([]), L = "/", C = m(""), P = {
|
|
33
|
+
labelCol: {
|
|
34
|
+
span: 6
|
|
35
|
+
},
|
|
36
|
+
wrapperCol: {
|
|
37
|
+
span: 18
|
|
38
|
+
}
|
|
39
|
+
}, k = async () => {
|
|
40
|
+
r.parentCode = u.record.code;
|
|
41
|
+
const { result: e } = await te({
|
|
42
|
+
parentCode: u.record.code
|
|
43
|
+
});
|
|
44
|
+
c.value = e;
|
|
45
|
+
const a = e.find((t) => t.v2 == "HEAD_ICON");
|
|
46
|
+
if (a) {
|
|
47
|
+
const t = JSON.parse(a.v1);
|
|
48
|
+
C.value = L + "api/auth/node-icon/" + t.bucket + "/" + t.file;
|
|
49
|
+
}
|
|
50
|
+
}, B = (e, a) => {
|
|
51
|
+
const t = new FileReader();
|
|
52
|
+
t.addEventListener("load", () => a(t.result)), t.readAsDataURL(e);
|
|
53
|
+
}, H = (e) => e.type === "image/jpeg" || e.type === "image/png" ? e.size / 1024 / 1024 < 2 ? (r.fileName = e, B(e, (l) => {
|
|
54
|
+
l.value = l;
|
|
55
|
+
}), !1) : (I.error(g("param.tips2")), !1) : (I.error(g("param.tips1")), !1), U = async () => {
|
|
56
|
+
console.log(c.value, "source");
|
|
57
|
+
const e = {};
|
|
58
|
+
c.value.forEach((t) => {
|
|
59
|
+
t.v2 !== "HEAD_ICON" && (e[t.code] = t.v1);
|
|
60
|
+
}), r.items = JSON.stringify(e);
|
|
61
|
+
const { result: a } = await ae(r);
|
|
62
|
+
a && S("ok");
|
|
63
|
+
}, W = (e) => {
|
|
64
|
+
_.value = e;
|
|
65
|
+
};
|
|
66
|
+
return z(
|
|
67
|
+
() => u.record,
|
|
68
|
+
() => {
|
|
69
|
+
k();
|
|
70
|
+
}
|
|
71
|
+
), j(() => {
|
|
72
|
+
k();
|
|
73
|
+
}), (e, a) => {
|
|
74
|
+
const t = K, l = Q, F = X, J = Y, M = Z;
|
|
75
|
+
return o(), i("div", oe, [
|
|
76
|
+
h(J, {
|
|
77
|
+
class: "form",
|
|
78
|
+
ref: "formRef"
|
|
79
|
+
}, {
|
|
80
|
+
default: p(() => [
|
|
81
|
+
(o(!0), i(D, null, w(c.value, (s, R) => (o(), v(F, x({
|
|
82
|
+
key: R,
|
|
83
|
+
label: e.$t("dct.PARAMS" + s.code),
|
|
84
|
+
ref_for: !0
|
|
85
|
+
}, P), {
|
|
86
|
+
default: p(() => [
|
|
87
|
+
s.v2 != "HEAD_ICON" ? (o(), v(t, {
|
|
88
|
+
key: 0,
|
|
89
|
+
value: s.v1,
|
|
90
|
+
"onUpdate:value": (d) => s.v1 = d
|
|
91
|
+
}, null, 8, ["value", "onUpdate:value"])) : b("v-if", !0),
|
|
92
|
+
s.v2 == "HEAD_ICON" ? (o(), v(l, {
|
|
93
|
+
key: 1,
|
|
94
|
+
name: "avatar",
|
|
95
|
+
style: { width: "102px", float: "left" },
|
|
96
|
+
"list-type": "picture-card",
|
|
97
|
+
class: "avatar-uploader",
|
|
98
|
+
"show-upload-list": !1,
|
|
99
|
+
"before-upload": H
|
|
100
|
+
}, {
|
|
101
|
+
default: p(() => [
|
|
102
|
+
n("div", {
|
|
103
|
+
class: "bg",
|
|
104
|
+
style: N("background:" + y[_.value])
|
|
105
|
+
}, [
|
|
106
|
+
n("img", {
|
|
107
|
+
src: C.value,
|
|
108
|
+
alt: "avatar",
|
|
109
|
+
class: "avatar"
|
|
110
|
+
}, null, 8, se)
|
|
111
|
+
], 4)
|
|
112
|
+
]),
|
|
113
|
+
_: 1
|
|
114
|
+
})) : b("v-if", !0),
|
|
115
|
+
s.v2 == "HEAD_ICON" ? (o(), i("div", ne, [
|
|
116
|
+
n("div", re, [
|
|
117
|
+
(o(), i(D, null, w(y, (d, f) => n("div", {
|
|
118
|
+
key: f,
|
|
119
|
+
class: "color-item"
|
|
120
|
+
}, [
|
|
121
|
+
n("div", {
|
|
122
|
+
style: N("background:" + d),
|
|
123
|
+
onClick: (pe) => W(f),
|
|
124
|
+
class: T(_.value == f ? "active" : "")
|
|
125
|
+
}, null, 14, ce)
|
|
126
|
+
])), 64))
|
|
127
|
+
]),
|
|
128
|
+
n("span", le, O(e.$t("param.tip")), 1)
|
|
129
|
+
])) : b("v-if", !0)
|
|
130
|
+
]),
|
|
131
|
+
_: 2
|
|
132
|
+
}, 1040, ["label"]))), 128))
|
|
133
|
+
]),
|
|
134
|
+
_: 1
|
|
135
|
+
}, 512),
|
|
136
|
+
h(M, {
|
|
137
|
+
onClick: U,
|
|
138
|
+
type: "primary",
|
|
139
|
+
class: "sub_btn"
|
|
140
|
+
}, {
|
|
141
|
+
default: p(() => [
|
|
142
|
+
q(O(e.$t("param.btn_ok")), 1)
|
|
143
|
+
]),
|
|
144
|
+
_: 1
|
|
145
|
+
})
|
|
146
|
+
]);
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
const fe = /* @__PURE__ */ ee(ie, [["__scopeId", "data-v-7c2314b0"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/sys/parameter/WebClient.vue"]]);
|
|
151
|
+
export {
|
|
152
|
+
fe as default
|
|
153
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ant-pro-footer-toolbar[data-v-040ae207]{position:fixed;width:100%;bottom:0;right:0;height:56px;line-height:56px;box-shadow:0 -1px 2px #00000008;background-color:#fff;border-top:1px solid #e8e8e8;z-index:9}
|
|
@@ -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}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.btn-group[data-v-ffd7f8e3]{display:inline-block}.table-page-search-wrapper[data-v-9e1f799b]{height:calc(100% - 62px);padding:10px}.inline-query-form[data-v-9e1f799b]{display:flex}.clear-formctrl-lh[data-v-9e1f799b] .ant-form-item-control{line-height:normal}.clear-formctrl-lh[data-v-9e1f799b] .ant-form-item{margin:0}.lang-warp[data-v-9e1f799b] .ant-card .ant-card-body{padding:10px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.textarea-wrapper[data-v-939f274f]{position:relative;display:block}.textarea-wrapper[data-v-939f274f] .ant-input-textarea-show-count:after{color:gray;position:absolute;font-size:12px;bottom:8px;right:12px}.modal[data-v-58074060]{margin-bottom:24px}[data-v-58074060] .ant-modal-footer{text-align:center!important}.rm-form-item-mb[data-v-58074060] .ant-form-item{margin-bottom:0}.modal[data-v-db8da10b]{margin-bottom:24px}.rm-form-item-mb[data-v-db8da10b] .ant-form-item{margin-bottom:0}[data-v-207f1e3e] .wrong1.ant-input-number{resize:none;border-color:#ff0f00!important}.pay_info[data-v-207f1e3e]{width:100%;display:flex;flex-direction:column;margin-left:13px}.pay_til[data-v-207f1e3e]{width:100%;height:80px}.pay_span[data-v-207f1e3e]{display:block;color:#333;font-weight:500}.pay_span1[data-v-207f1e3e]{margin:12px 0}.YFlag[data-v-207f1e3e]{width:10px;height:10px;border:1px solid #0c74d4;border-radius:50%;background:#0c74d4;margin-left:10px;margin-right:5px}.NFlag[data-v-207f1e3e]{width:10px;height:10px;border:1px solid #bcbcbc;border-radius:50%;background:#bcbcbc;margin-left:10px;margin-right:5px}[data-v-7ab63a77] .wrong1.ant-input-number{resize:none;border-color:#ff0f00!important}.pay_info[data-v-7ab63a77]{width:100%;display:flex;flex-direction:column;margin-left:13px}.pay_til[data-v-7ab63a77]{width:100%;height:80px}.pay_span[data-v-7ab63a77]{display:block;color:#333;font-weight:500}.pay_span1[data-v-7ab63a77]{margin:12px 0}.organ-wrap[data-v-32a76766]{display:flex;flex-direction:column;height:100%}.organ-wrap .table-wrap[data-v-32a76766]{flex:1;overflow:auto;padding-bottom:20px}.topInfo[data-v-32a76766]{margin-top:10px;margin-bottom:20px;display:flex;justify-content:space-between;align-items:center}.topInfo .topAdd[data-v-32a76766]{display:flex;align-items:center}.organ_type0[data-v-32a76766],.organ_type1[data-v-32a76766]{display:inline-block;margin-right:10px;color:#2c9cfc;background-color:#e6f7ff;border:#91d5ff 1px solid;border-radius:5px;padding:0 5px}.organ_type2[data-v-32a76766]{display:inline-block;margin-right:10px;color:#64dcd8;background-color:#e4fcfc;border:#87e8de 1px solid;border-radius:5px;padding:0 5px}.organ_type3[data-v-32a76766]{display:inline-block;margin-right:10px;color:#fc642e;background-color:#fcf4ec;border:#ffbb96 1px solid;border-radius:5px;padding:0 5px}
|