jmash-core 0.0.2 → 0.0.4

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.
Files changed (91) hide show
  1. package/dist/401-DoLCxv3l.mjs +103 -0
  2. package/dist/404-D1KiG-19.mjs +37 -0
  3. package/dist/BarChart-C1VgkGMN.mjs +203 -0
  4. package/dist/FileSaver.min-CbZYb_R2.mjs +77 -0
  5. package/dist/FunnelChart-Czy2TVI1.mjs +106 -0
  6. package/dist/PieChart-D4hXD0SH.mjs +4 -0
  7. package/dist/PieChart.vue_vue_type_script_setup_true_lang-BzbbPmOh.mjs +90 -0
  8. package/dist/RadarChart-BIL7VT1H.mjs +4 -0
  9. package/dist/RadarChart.vue_vue_type_script_setup_true_lang-DcuctIiI.mjs +109 -0
  10. package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
  11. package/dist/caret-bottom-Cm1qBSrY.mjs +59 -0
  12. package/dist/common-DuVBTwAv.mjs +36 -0
  13. package/dist/debounce-C0G0JMal.mjs +81 -0
  14. package/dist/dropdown2-BiRFTrOq.mjs +160 -0
  15. package/dist/edit-Bpt21Eir.mjs +833 -0
  16. package/dist/edit-CYWeo3RE.mjs +4 -0
  17. package/dist/edit-Cde8RIRN.mjs +4 -0
  18. package/dist/edit-D3-EslTs.mjs +4 -0
  19. package/dist/edit-DLx0iRHQ.mjs +469 -0
  20. package/dist/edit-NICINRFG.mjs +4 -0
  21. package/dist/edit-Vk23bJyE.mjs +4 -0
  22. package/dist/edit-sqzPOfBX.mjs +4 -0
  23. package/dist/edit.vue_vue_type_script_setup_true_lang-BYoUZaYJ.mjs +157 -0
  24. package/dist/edit.vue_vue_type_script_setup_true_lang-CFHGaytm.mjs +137 -0
  25. package/dist/edit.vue_vue_type_script_setup_true_lang-C_NNjRjK.mjs +622 -0
  26. package/dist/edit.vue_vue_type_script_setup_true_lang-DBxZMZyS.mjs +222 -0
  27. package/dist/edit.vue_vue_type_script_setup_true_lang-_tHqd9tg.mjs +226 -0
  28. package/dist/edit.vue_vue_type_script_setup_true_lang-mM66jf9N.mjs +288 -0
  29. package/dist/el-card-BIRVdEQY.mjs +61 -0
  30. package/dist/el-checkbox-group-l0sNRNKZ.mjs +1 -0
  31. package/dist/el-checkbox-miY6QbQ8.mjs +548 -0
  32. package/dist/el-col-BOgRUJYE.mjs +135 -0
  33. package/dist/el-date-picker-D9yvdcj2.mjs +3349 -0
  34. package/dist/el-dialog-BSTwker5.mjs +378 -0
  35. package/dist/el-dropdown-item-YDb2-w9y.mjs +675 -0
  36. package/dist/el-form-item-BzKoZc6I.mjs +1489 -0
  37. package/dist/el-icon-l0sNRNKZ.mjs +1 -0
  38. package/dist/el-popover-DuRdut0P.mjs +159 -0
  39. package/dist/el-popper-AjIjI4wK.mjs +1656 -0
  40. package/dist/el-progress-BPv5gfee.mjs +898 -0
  41. package/dist/el-radio-NC-gfUsx.mjs +251 -0
  42. package/dist/el-scrollbar-p0O6uID0.mjs +607 -0
  43. package/dist/el-select-DAMII7lv.mjs +1040 -0
  44. package/dist/el-switch-C2AFgHGW.mjs +254 -0
  45. package/dist/el-table-IQFrP3zv.mjs +3168 -0
  46. package/dist/el-tag-l0sNRNKZ.mjs +1 -0
  47. package/dist/el-tooltip-l0sNRNKZ.mjs +1 -0
  48. package/dist/el-tree-select-CyDKS6nF.mjs +1316 -0
  49. package/dist/importUpload.vue_vue_type_script_setup_true_lang-DWWbxFGH.mjs +117 -0
  50. package/dist/index-A3UILhe-.mjs +279 -0
  51. package/dist/index-Ax_8ZsXK.mjs +3163 -0
  52. package/dist/index-B46NFfoE.mjs +487 -0
  53. package/dist/index-BWx4KWAY.mjs +282 -0
  54. package/dist/index-BWyb1bu2.mjs +505 -0
  55. package/dist/index-BjqMDjBg.mjs +43994 -0
  56. package/dist/index-BnbEfNmI.mjs +134 -0
  57. package/dist/index-BpAihYhN.mjs +280 -0
  58. package/dist/index-Bs3AcT6R.mjs +107 -0
  59. package/dist/index-BvixCbHl.mjs +329 -0
  60. package/dist/index-C0UgbyoZ.mjs +452 -0
  61. package/dist/index-C0vV2_4K.mjs +63 -0
  62. package/dist/index-CBB_r4G5.mjs +965 -0
  63. package/dist/index-CCFtIl_h.mjs +516 -0
  64. package/dist/index-Cd3TOW5i.mjs +93 -0
  65. package/dist/index-CgNPGcHv.mjs +292 -0
  66. package/dist/index-CoOFKDgw.mjs +74 -0
  67. package/dist/index-CrNYgyNm.mjs +8800 -0
  68. package/dist/index-CurzO9C6.mjs +248 -0
  69. package/dist/index-DJ08yxAP.mjs +11 -0
  70. package/dist/index-DjkMA-Wh.mjs +40 -0
  71. package/dist/index-Url6hMpl.mjs +483 -0
  72. package/dist/index-eT2JltVa.mjs +55 -0
  73. package/dist/index-mkT_dTWL.mjs +13 -0
  74. package/dist/index-uykKwY2Z.mjs +12 -0
  75. package/dist/index-xtDIXRPY.mjs +633 -0
  76. package/dist/index.mjs +19 -273
  77. package/dist/index.vue_vue_type_script_setup_true_lang-BoxqootF.mjs +58 -0
  78. package/dist/index.vue_vue_type_script_setup_true_lang-C6yk_vUt.mjs +286 -0
  79. package/dist/isUndefined-CUQZk6oB.mjs +6 -0
  80. package/dist/moment-CMYwqyVT.mjs +2579 -0
  81. package/dist/picture-kPnmHaoS.mjs +599 -0
  82. package/dist/profile-RVQuIwXg.mjs +319 -0
  83. package/dist/refs-S3PYDmaW.mjs +9 -0
  84. package/dist/style.css +1 -1
  85. package/dist/types-CCG3Dvqs.mjs +205 -0
  86. package/dist/updatePwd-2UsTmJa5.mjs +4 -0
  87. package/dist/updatePwd.vue_vue_type_script_setup_true_lang-_Uadc2g3.mjs +151 -0
  88. package/dist/useColumnToggleTable-D_QF8Uy9.mjs +272 -0
  89. package/dist/vue-i18n-CE6tUbcO.mjs +3808 -0
  90. package/dts/tsconfig.tsbuildinfo +1 -1
  91. package/package.json +31 -2
@@ -0,0 +1,319 @@
1
+ import { v as q, Q as R, R as L, E as A, y as P, c as T, S as G, T as H, e as O, f as Q } from "./index-CrNYgyNm.mjs";
2
+ import { a as K, E as W } from "./el-form-item-BzKoZc6I.mjs";
3
+ import { E as X } from "./el-date-picker-D9yvdcj2.mjs";
4
+ import "./el-scrollbar-p0O6uID0.mjs";
5
+ import "./el-popper-AjIjI4wK.mjs";
6
+ import { _ as Z } from "./index.vue_vue_type_script_setup_true_lang-BoxqootF.mjs";
7
+ import { E as x, a as ee } from "./el-col-BOgRUJYE.mjs";
8
+ import "./el-icon-l0sNRNKZ.mjs";
9
+ import "./el-tag-l0sNRNKZ.mjs";
10
+ import "./el-select-DAMII7lv.mjs";
11
+ import { E as te } from "./el-tree-select-CyDKS6nF.mjs";
12
+ import "./el-checkbox-miY6QbQ8.mjs";
13
+ import { E as oe } from "./el-progress-BPv5gfee.mjs";
14
+ import { defineComponent as $, ref as c, toRefs as le, openBlock as d, createBlock as v, unref as o, withCtx as s, createElementBlock as I, createVNode as t, reactive as se, resolveComponent as C, createElementVNode as h, toDisplayString as D, Fragment as ae, renderList as re, createCommentVNode as ne, createTextVNode as ue } from "vue";
15
+ import { t as pe } from "./index-BnbEfNmI.mjs";
16
+ import { t as de } from "./index-C0vV2_4K.mjs";
17
+ import { _ as ce } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
18
+ const ie = ["src"], me = /* @__PURE__ */ $({
19
+ __name: "index",
20
+ props: {
21
+ pictureUrl: {
22
+ type: String,
23
+ default: ""
24
+ }
25
+ },
26
+ emits: ["imageSrc"],
27
+ setup(E, { emit: y }) {
28
+ const m = c(
29
+ q.APP_API_URL + "/v1/file/upload?tenant=" + R().user.tenant
30
+ ), _ = c({ Authorization: "Bearer " + R().token }), e = E, { pictureUrl: f } = le(e), p = c("");
31
+ console.log(f), p.value = f.value;
32
+ const g = y;
33
+ function V(i) {
34
+ i.fileSrc && (A({
35
+ message: "上传成功",
36
+ type: "success"
37
+ }), p.value = process.env.VUE_APP_API_URL + "/v1/file/image/resize/0/0/" + i.fileSrc, g("imageSrc", p.value));
38
+ }
39
+ return (i, l) => {
40
+ const a = P, U = oe;
41
+ return d(), v(U, {
42
+ class: "avatar-uploader",
43
+ action: o(m),
44
+ headers: o(_),
45
+ "show-file-list": !1,
46
+ "on-success": V
47
+ }, {
48
+ default: s(() => [
49
+ o(p) ? (d(), I("img", {
50
+ key: 0,
51
+ src: o(p),
52
+ class: "avatar"
53
+ }, null, 8, ie)) : (d(), v(a, {
54
+ key: 1,
55
+ class: "avatar-uploader-icon"
56
+ }, {
57
+ default: s(() => [
58
+ t(o(L))
59
+ ]),
60
+ _: 1
61
+ }))
62
+ ]),
63
+ _: 1
64
+ }, 8, ["action", "headers"]);
65
+ };
66
+ }
67
+ }), _e = { class: "app-container" }, fe = { class: "positon_name" }, be = { style: { position: "absolute", right: "0", top: "0" } }, he = /* @__PURE__ */ $({
68
+ __name: "profile",
69
+ setup(E) {
70
+ const y = c(), m = c(), _ = c();
71
+ let e = se({
72
+ user: {
73
+ tenant: T().user.tenant,
74
+ requestId: Math.random() * 10 + "",
75
+ updateMask: "nickName,gender,birthDate,realName,avatar",
76
+ userJobs: [
77
+ {
78
+ deptId: "",
79
+ jobId: ""
80
+ }
81
+ ]
82
+ }
83
+ });
84
+ function f() {
85
+ G().then(({ data: l }) => {
86
+ var a;
87
+ e.user = Object.assign(e.user, { ...l }), ((a = e.user.userJobs) == null ? void 0 : a.length) === 0 && (e.user.userJobs = [
88
+ {
89
+ deptId: "",
90
+ jobId: ""
91
+ }
92
+ ]);
93
+ }), pe().then(({ data: l }) => {
94
+ m.value = l.results;
95
+ }), de().then(({ data: l }) => {
96
+ _.value = l.results;
97
+ });
98
+ }
99
+ function p() {
100
+ var l;
101
+ e.user.userJobs && e.user.userJobs.length < 5 && ((l = e.user.userJobs) == null || l.push({
102
+ deptId: "",
103
+ jobId: ""
104
+ }));
105
+ }
106
+ function g(l) {
107
+ var a;
108
+ (a = e.user.userJobs) == null || a.splice(l, 1);
109
+ }
110
+ function V(l) {
111
+ e.user.avatar = l;
112
+ }
113
+ const i = () => {
114
+ H(e.user).then((l) => {
115
+ l.status === 200 && A({
116
+ message: "个人信息修改成功",
117
+ type: "success"
118
+ });
119
+ });
120
+ };
121
+ return f(), (l, a) => {
122
+ const U = me, r = K, J = te, k = x, j = C("Remove"), S = P, w = ee, M = C("CirclePlus"), N = O, Y = Z, B = X, z = Q, F = W;
123
+ return d(), I("div", _e, [
124
+ t(F, {
125
+ ref_key: "userInfoRef",
126
+ ref: y,
127
+ mode: o(e).user,
128
+ "label-width": "80px"
129
+ }, {
130
+ default: s(() => [
131
+ t(r, null, {
132
+ default: s(() => [
133
+ t(U, {
134
+ "picture-url": o(e).user.avatar,
135
+ onImageSrc: V
136
+ }, null, 8, ["picture-url"])
137
+ ]),
138
+ _: 1
139
+ }),
140
+ t(r, { label: "手机号" }, {
141
+ default: s(() => [
142
+ h("span", null, D(o(e).user.mobilePhone), 1)
143
+ ]),
144
+ _: 1
145
+ }),
146
+ t(r, { label: "邮箱" }, {
147
+ default: s(() => [
148
+ h("span", null, D(o(e).user.email), 1)
149
+ ]),
150
+ _: 1
151
+ }),
152
+ h("div", fe, [
153
+ (d(!0), I(ae, null, re(o(e).user.userJobs, (u, n) => (d(), v(w, {
154
+ key: n,
155
+ style: { width: "100%" }
156
+ }, {
157
+ default: s(() => [
158
+ t(k, { span: 12 }, {
159
+ default: s(() => [
160
+ t(r, {
161
+ label: l.$t("sysUser.department"),
162
+ prop: `userJobs.${n}.deptId`
163
+ }, {
164
+ default: s(() => [
165
+ t(J, {
166
+ modelValue: o(e).user.userJobs[n].deptId,
167
+ "onUpdate:modelValue": (b) => o(e).user.userJobs[n].deptId = b,
168
+ data: m.value,
169
+ "render-after-expand": !1,
170
+ filterable: "",
171
+ "check-strictly": "",
172
+ placeholder: l.$t("sysUser.departmentRequired"),
173
+ style: { width: "100%" }
174
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "data", "placeholder"])
175
+ ]),
176
+ _: 2
177
+ }, 1032, ["label", "prop"])
178
+ ]),
179
+ _: 2
180
+ }, 1024),
181
+ t(k, { span: 11 }, {
182
+ default: s(() => [
183
+ t(r, {
184
+ label: l.$t("sysUser.position"),
185
+ prop: `userJobs.${n}.jobId`
186
+ }, {
187
+ default: s(() => [
188
+ t(J, {
189
+ modelValue: o(e).user.userJobs[n].jobId,
190
+ "onUpdate:modelValue": (b) => o(e).user.userJobs[n].jobId = b,
191
+ data: _.value,
192
+ "render-after-expand": !1,
193
+ filterable: "",
194
+ "check-strictly": "",
195
+ placeholder: l.$t("sysUser.positionRequired"),
196
+ style: { width: "100%" }
197
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "data", "placeholder"])
198
+ ]),
199
+ _: 2
200
+ }, 1032, ["label", "prop"])
201
+ ]),
202
+ _: 2
203
+ }, 1024),
204
+ n !== 0 ? (d(), v(k, {
205
+ key: 0,
206
+ span: 1,
207
+ style: { position: "absolute", right: "0" }
208
+ }, {
209
+ default: s(() => [
210
+ t(S, {
211
+ size: "16",
212
+ onClick: (b) => g(n)
213
+ }, {
214
+ default: s(() => [
215
+ t(j)
216
+ ]),
217
+ _: 2
218
+ }, 1032, ["onClick"])
219
+ ]),
220
+ _: 2
221
+ }, 1024)) : ne("", !0)
222
+ ]),
223
+ _: 2
224
+ }, 1024))), 128)),
225
+ h("div", be, [
226
+ t(S, {
227
+ size: "16",
228
+ onClick: p
229
+ }, {
230
+ default: s(() => [
231
+ t(M)
232
+ ]),
233
+ _: 1
234
+ })
235
+ ])
236
+ ]),
237
+ t(r, {
238
+ label: "用户昵称",
239
+ prop: "nickName"
240
+ }, {
241
+ default: s(() => [
242
+ t(N, {
243
+ modelValue: o(e).user.nickName,
244
+ "onUpdate:modelValue": a[0] || (a[0] = (u) => o(e).user.nickName = u),
245
+ clearable: "",
246
+ placeholder: "请输入用户昵称"
247
+ }, null, 8, ["modelValue"])
248
+ ]),
249
+ _: 1
250
+ }),
251
+ t(r, {
252
+ label: "姓名",
253
+ prop: "realName"
254
+ }, {
255
+ default: s(() => [
256
+ t(N, {
257
+ modelValue: o(e).user.realName,
258
+ "onUpdate:modelValue": a[1] || (a[1] = (u) => o(e).user.realName = u),
259
+ clearable: "",
260
+ placeholder: "请输入姓名"
261
+ }, null, 8, ["modelValue"])
262
+ ]),
263
+ _: 1
264
+ }),
265
+ t(r, {
266
+ label: "性别",
267
+ prop: "gender"
268
+ }, {
269
+ default: s(() => [
270
+ t(Y, {
271
+ modelValue: o(e).user.gender,
272
+ "onUpdate:modelValue": a[2] || (a[2] = (u) => o(e).user.gender = u),
273
+ placeholder: "请选择性别",
274
+ "dict-type": "jmash.protobuf.Gender"
275
+ }, null, 8, ["modelValue"])
276
+ ]),
277
+ _: 1
278
+ }),
279
+ t(r, {
280
+ label: "出生日期",
281
+ prop: "birthDate"
282
+ }, {
283
+ default: s(() => [
284
+ t(B, {
285
+ modelValue: o(e).user.birthDate,
286
+ "onUpdate:modelValue": a[3] || (a[3] = (u) => o(e).user.birthDate = u),
287
+ type: "date",
288
+ placeholder: "请选择出生日期",
289
+ format: "YYYY-MM-DD",
290
+ "value-format": "YYYY-MM-DD",
291
+ style: { width: "100%" }
292
+ }, null, 8, ["modelValue"])
293
+ ]),
294
+ _: 1
295
+ }),
296
+ t(r, null, {
297
+ default: s(() => [
298
+ t(z, {
299
+ type: "primary",
300
+ onClick: i
301
+ }, {
302
+ default: s(() => [
303
+ ue("保存")
304
+ ]),
305
+ _: 1
306
+ })
307
+ ]),
308
+ _: 1
309
+ })
310
+ ]),
311
+ _: 1
312
+ }, 8, ["mode"])
313
+ ]);
314
+ };
315
+ }
316
+ }), je = /* @__PURE__ */ ce(he, [["__scopeId", "data-v-8374010b"]]);
317
+ export {
318
+ je as default
319
+ };
@@ -0,0 +1,9 @@
1
+ import { U as t } from "./index-CrNYgyNm.mjs";
2
+ const e = (...c) => (s) => {
3
+ c.forEach((o) => {
4
+ t(o) ? o(s) : o.value = s;
5
+ });
6
+ };
7
+ export {
8
+ e as c
9
+ };