@witlink/usercenter 1.0.1 → 1.0.3

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.
@@ -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
+ };
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as r } from "vue";
2
- import { _ as t } from "./index.b7a4ce8c.mjs";
2
+ import { _ as t } from "./index.1046a424.mjs";
3
3
  const c = {};
4
4
  function n(o, i) {
5
5
  return e(), r("div", null, "404");
@@ -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,6 +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 v, 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 { f as Y, i as J, I as R, k as T, n as $, d as z, F as M, B as q, _ as A } from "./index.b7a4ce8c.mjs";
3
- 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({
4
4
  name: "Standard",
5
5
  __name: "Standard",
6
6
  props: {
@@ -23,7 +23,7 @@ import './assets/Standard.badeec91.css';const G = { class: "web-client" }, H = /
23
23
  span: 18
24
24
  }
25
25
  }, C = async () => {
26
- const { result: o } = await Y({
26
+ const { result: o } = await V({
27
27
  parentCode: p.record.code
28
28
  });
29
29
  u.parentCode = p.record.code, o.forEach((n) => {
@@ -37,23 +37,23 @@ import './assets/Standard.badeec91.css';const G = { class: "web-client" }, H = /
37
37
  var l;
38
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
39
  }), u.items = JSON.stringify(o);
40
- const { result: n } = await J(u);
40
+ const { result: n } = await Y(u);
41
41
  n && b("ok");
42
42
  };
43
43
  return I(() => {
44
44
  C();
45
45
  }), (o, n) => {
46
- const a = R, l = T, U = $, x = z, O = M, D = q;
47
- return c(), f("div", G, [
48
- i(O, {
46
+ const a = J, l = R, U = $, x = z, N = M, O = Q;
47
+ return c(), f("div", A, [
48
+ i(N, {
49
49
  class: "form",
50
50
  model: g.value,
51
51
  ref_key: "formRef",
52
52
  ref: w
53
53
  }, {
54
54
  default: v(() => [
55
- (c(!0), f(L, null, E(s.value, (e, N) => (c(), r(x, F({
56
- key: N,
55
+ (c(!0), f(L, null, E(s.value, (e, D) => (c(), r(x, F({
56
+ key: D,
57
57
  label: o.$t("dct.SYS" + e.code),
58
58
  ref_for: !0
59
59
  }, S), {
@@ -91,13 +91,13 @@ import './assets/Standard.badeec91.css';const G = { class: "web-client" }, H = /
91
91
  ]),
92
92
  _: 1
93
93
  }, 8, ["model"]),
94
- i(D, {
94
+ i(O, {
95
95
  onClick: m,
96
96
  type: "primary",
97
97
  class: "sub_btn"
98
98
  }, {
99
99
  default: v(() => [
100
- P(V(o.$t("param.btn_ok")), 1)
100
+ P(T(o.$t("param.btn_ok")), 1)
101
101
  ]),
102
102
  _: 1
103
103
  })
@@ -105,7 +105,7 @@ import './assets/Standard.badeec91.css';const G = { class: "web-client" }, H = /
105
105
  };
106
106
  }
107
107
  });
108
- const W = /* @__PURE__ */ A(H, [["__scopeId", "data-v-7829cd8b"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/sys/parameter/Standard.vue"]]);
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"]]);
109
109
  export {
110
110
  W as default
111
111
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as V, ref as m, reactive as $, watch as j, onMounted as z, 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 I, createTextVNode as q } from "vue";
2
- import { u as G, f as K, m as O, i as Q, I as X, j as Y, d as Z, F as ee, B as te, _ as ae } from "./index.b7a4ce8c.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";
3
3
  import './assets/WebClient.2a3e464e.css';const oe = { class: "web-client" }, se = ["src"], ne = {
4
4
  key: 2,
5
5
  class: "color-choose"
@@ -15,7 +15,7 @@ import './assets/WebClient.2a3e464e.css';const oe = { class: "web-client" }, se
15
15
  },
16
16
  emits: ["ok"],
17
17
  setup(E, { emit: A }) {
18
- const { t: y } = G(), S = A, p = E, _ = m(0), g = [
18
+ const { t: y } = q(), S = A, p = E, _ = m(0), g = [
19
19
  "#fff",
20
20
  "#ccc",
21
21
  "#666",
@@ -37,7 +37,7 @@ import './assets/WebClient.2a3e464e.css';const oe = { class: "web-client" }, se
37
37
  }
38
38
  }, k = async () => {
39
39
  r.parentCode = p.record.code;
40
- const { result: e } = await K({
40
+ const { result: e } = await G({
41
41
  parentCode: p.record.code
42
42
  });
43
43
  c.value = e;
@@ -51,34 +51,34 @@ import './assets/WebClient.2a3e464e.css';const oe = { class: "web-client" }, se
51
51
  t.addEventListener("load", () => a(t.result)), t.readAsDataURL(e);
52
52
  }, H = (e) => e.type === "image/jpeg" || e.type === "image/png" ? e.size / 1024 / 1024 < 2 ? (r.fileName = e, B(e, (l) => {
53
53
  l.value = l;
54
- }), !1) : (O.error(y("param.tips2")), !1) : (O.error(y("param.tips1")), !1), U = async () => {
54
+ }), !1) : (I.error(y("param.tips2")), !1) : (I.error(y("param.tips1")), !1), R = async () => {
55
55
  console.log(c.value, "source");
56
56
  const e = {};
57
57
  c.value.forEach((t) => {
58
58
  t.v2 !== "HEAD_ICON" && (e[t.code] = t.v1);
59
59
  }), r.items = JSON.stringify(e);
60
- const { result: a } = await Q(r);
60
+ const { result: a } = await K(r);
61
61
  a && S("ok");
62
- }, W = (e) => {
62
+ }, U = (e) => {
63
63
  _.value = e;
64
64
  };
65
- return j(
65
+ return z(
66
66
  () => p.record,
67
67
  () => {
68
68
  k();
69
69
  }
70
- ), z(() => {
70
+ ), j(() => {
71
71
  k();
72
72
  }), (e, a) => {
73
- const t = X, l = Y, F = Z, J = ee, M = te;
73
+ const t = X, l = Y, W = Z, F = ee, J = te;
74
74
  return o(), i("div", oe, [
75
- h(J, {
75
+ h(F, {
76
76
  class: "form",
77
77
  ref: "formRef"
78
78
  }, {
79
79
  default: u(() => [
80
- (o(!0), i(w, null, D(c.value, (s, R) => (o(), v(F, x({
81
- key: R,
80
+ (o(!0), i(w, null, D(c.value, (s, M) => (o(), v(W, x({
81
+ key: M,
82
82
  label: e.$t("dct.PARAMS" + s.code),
83
83
  ref_for: !0
84
84
  }, P), {
@@ -119,12 +119,12 @@ import './assets/WebClient.2a3e464e.css';const oe = { class: "web-client" }, se
119
119
  }, [
120
120
  n("div", {
121
121
  style: N("background:" + d),
122
- onClick: (ue) => W(f),
122
+ onClick: (ue) => U(f),
123
123
  class: T(_.value == f ? "active" : "")
124
124
  }, null, 14, ce)
125
125
  ])), 64))
126
126
  ]),
127
- n("span", le, I(e.$t("param.tip")), 1)
127
+ n("span", le, O(e.$t("param.tip")), 1)
128
128
  ])) : b("v-if", !0)
129
129
  ]),
130
130
  _: 2
@@ -132,13 +132,13 @@ import './assets/WebClient.2a3e464e.css';const oe = { class: "web-client" }, se
132
132
  ]),
133
133
  _: 1
134
134
  }, 512),
135
- h(M, {
136
- onClick: U,
135
+ h(J, {
136
+ onClick: R,
137
137
  type: "primary",
138
138
  class: "sub_btn"
139
139
  }, {
140
140
  default: u(() => [
141
- q(I(e.$t("param.btn_ok")), 1)
141
+ Q(O(e.$t("param.btn_ok")), 1)
142
142
  ]),
143
143
  _: 1
144
144
  })
@@ -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}