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,288 @@
1
+ import { c as U, ao as Y, E as F, e as Z, f as ee } from "./index-CrNYgyNm.mjs";
2
+ import { E as oe } from "./el-dialog-BSTwker5.mjs";
3
+ import { a as le, E as te } from "./el-form-item-BzKoZc6I.mjs";
4
+ import { E as re, a as ae } from "./el-table-IQFrP3zv.mjs";
5
+ import { E as se, a as ne } from "./el-checkbox-miY6QbQ8.mjs";
6
+ import "./el-tooltip-l0sNRNKZ.mjs";
7
+ import "./el-popper-AjIjI4wK.mjs";
8
+ import "./el-scrollbar-p0O6uID0.mjs";
9
+ import "./el-checkbox-group-l0sNRNKZ.mjs";
10
+ import "./el-tag-l0sNRNKZ.mjs";
11
+ import { E as de, a as me } from "./el-select-DAMII7lv.mjs";
12
+ import { defineComponent as ue, ref as m, reactive as j, toRef as ie, openBlock as f, createBlock as V, unref as r, withCtx as n, createElementVNode as pe, createVNode as s, createTextVNode as g, toDisplayString as b, createElementBlock as x, Fragment as A, renderList as B, isRef as ce } from "vue";
13
+ import { u as fe } from "./vue-i18n-CE6tUbcO.mjs";
14
+ import { p as be } from "./index-CoOFKDgw.mjs";
15
+ import { m as he } from "./index-Cd3TOW5i.mjs";
16
+ import { e as ge, a as _e } from "./index-C0vV2_4K.mjs";
17
+ const ye = { class: "dialog-footer" }, Ae = /* @__PURE__ */ ue({
18
+ __name: "edit",
19
+ props: {
20
+ formData: {
21
+ type: Object,
22
+ default: () => {
23
+ }
24
+ },
25
+ dialog: {
26
+ type: Object,
27
+ default: () => {
28
+ }
29
+ }
30
+ },
31
+ emits: ["dialogEvent", "refresh"],
32
+ setup(S, { emit: T }) {
33
+ var R;
34
+ const { t: u } = fe(), v = m();
35
+ let l = j({
36
+ tenant: U().user.tenant,
37
+ requestId: Math.random() * 10 + "",
38
+ roleType: "job",
39
+ updateMask: "roleCode,roleName,description",
40
+ roleId: "",
41
+ roleCode: "",
42
+ roleName: "",
43
+ description: "",
44
+ permCodes: []
45
+ });
46
+ const M = j({
47
+ roleCode: [{ required: !0, validator: (e, o, t) => {
48
+ if (o === "")
49
+ t(new Error(u("sysJob.codeRequired")));
50
+ else {
51
+ const d = {
52
+ tenant: U().user.tenant,
53
+ roleCode: o,
54
+ addFlag: !l.roleId,
55
+ roleId: l.roleId
56
+ };
57
+ Y(d).then(({ data: E }) => {
58
+ E === !0 ? t(new Error(u("sysRole.codeExist"))) : t();
59
+ });
60
+ }
61
+ }, trigger: "blur" }],
62
+ roleName: [
63
+ { required: !0, message: u("sysJob.nameRequired"), trigger: "blur" }
64
+ ]
65
+ });
66
+ let k = m([]);
67
+ const h = m(!1), _ = m(!1), w = m();
68
+ let i = m([]);
69
+ const p = T, y = S, C = ie(y, "dialog"), O = async () => {
70
+ var e;
71
+ await ((e = v.value) == null ? void 0 : e.validate((o) => {
72
+ o && (l.roleId ? ge(l).then((t) => {
73
+ console.log(t), t.status === 200 && (F({
74
+ message: u("common.submitSuccess"),
75
+ type: "success"
76
+ }), p("dialogEvent", !1), p("refresh", t.status === 200));
77
+ }) : _e(l).then((t) => {
78
+ console.log(t), t.status === 200 && (F({
79
+ message: u("common.submitSuccess"),
80
+ type: "success"
81
+ }), p("dialogEvent", !1), p("refresh", t.status === 200));
82
+ }));
83
+ }));
84
+ };
85
+ function I() {
86
+ p("dialogEvent", !1);
87
+ }
88
+ function N() {
89
+ be(l.moduleId).then(({ data: e }) => {
90
+ w.value = e.results, J(e.results);
91
+ });
92
+ }
93
+ function L() {
94
+ he().then(({ data: e }) => {
95
+ k.value = e.results;
96
+ });
97
+ }
98
+ function z(e) {
99
+ console.log(e), N();
100
+ }
101
+ function J(e) {
102
+ for (let o = 0; o < e.length; o++) {
103
+ for (let t = 0; t < e[o].perms.length; t++)
104
+ i.value.push(e[o].perms[t].permCode);
105
+ J(e[o].children);
106
+ }
107
+ }
108
+ function P(e) {
109
+ console.log(e, i.value), l.permCodes = e ? i.value : [], _.value = !1;
110
+ }
111
+ function G(e) {
112
+ console.log(e), l.permCodes = e, console.log(l.permCodes);
113
+ const o = e.length;
114
+ h.value = o === i.value.length, _.value = o > 0 && o < i.value.length;
115
+ }
116
+ return N(), L(), (R = y.formData) != null && R.roleId && (l = Object.assign(l, y.formData)), (e, o) => {
117
+ const t = Z, d = le, E = de, H = me, q = se, $ = re, K = ne, Q = ae, W = te, D = ee, X = oe;
118
+ return f(), V(X, {
119
+ title: r(C).title,
120
+ modelValue: r(C).visible,
121
+ "onUpdate:modelValue": o[6] || (o[6] = (a) => r(C).visible = a),
122
+ width: "800px",
123
+ onClose: I
124
+ }, {
125
+ footer: n(() => [
126
+ pe("div", ye, [
127
+ s(D, { onClick: I }, {
128
+ default: n(() => [
129
+ g(b(e.$t("common.cancel")), 1)
130
+ ]),
131
+ _: 1
132
+ }),
133
+ s(D, {
134
+ type: "primary",
135
+ onClick: O
136
+ }, {
137
+ default: n(() => [
138
+ g(b(e.$t("common.confirm")), 1)
139
+ ]),
140
+ _: 1
141
+ })
142
+ ])
143
+ ]),
144
+ default: n(() => [
145
+ s(W, {
146
+ ref_key: "jobFormRef",
147
+ ref: v,
148
+ model: r(l),
149
+ rules: r(M),
150
+ "label-width": "160px"
151
+ }, {
152
+ default: n(() => [
153
+ s(d, {
154
+ label: e.$t("sysJob.code"),
155
+ prop: "roleCode"
156
+ }, {
157
+ default: n(() => [
158
+ s(t, {
159
+ modelValue: r(l).roleCode,
160
+ "onUpdate:modelValue": o[0] || (o[0] = (a) => r(l).roleCode = a),
161
+ placeholder: e.$t("sysJob.codeRequired"),
162
+ clearable: "",
163
+ maxlength: "30",
164
+ "show-word-limit": ""
165
+ }, null, 8, ["modelValue", "placeholder"])
166
+ ]),
167
+ _: 1
168
+ }, 8, ["label"]),
169
+ s(d, {
170
+ label: e.$t("sysJob.name"),
171
+ prop: "roleName"
172
+ }, {
173
+ default: n(() => [
174
+ s(t, {
175
+ modelValue: r(l).roleName,
176
+ "onUpdate:modelValue": o[1] || (o[1] = (a) => r(l).roleName = a),
177
+ placeholder: e.$t("sysJob.nameRequired"),
178
+ clearable: "",
179
+ maxlength: "30",
180
+ "show-word-limit": ""
181
+ }, null, 8, ["modelValue", "placeholder"])
182
+ ]),
183
+ _: 1
184
+ }, 8, ["label"]),
185
+ s(d, {
186
+ label: e.$t("sysJob.operatePerm"),
187
+ prop: "permCodes"
188
+ }, {
189
+ default: n(() => [
190
+ s(H, {
191
+ modelValue: r(l).moduleId,
192
+ "onUpdate:modelValue": o[2] || (o[2] = (a) => r(l).moduleId = a),
193
+ clearable: "",
194
+ placeholder: e.$t("sysJob.moduleRequired"),
195
+ style: { width: "100%" },
196
+ onChange: z
197
+ }, {
198
+ default: n(() => [
199
+ (f(!0), x(A, null, B(r(k), (a) => (f(), V(E, {
200
+ key: a.moduleId,
201
+ label: a.moduleName,
202
+ value: a.moduleId
203
+ }, null, 8, ["label", "value"]))), 128))
204
+ ]),
205
+ _: 1
206
+ }, 8, ["modelValue", "placeholder"]),
207
+ s(q, {
208
+ modelValue: r(h),
209
+ "onUpdate:modelValue": o[3] || (o[3] = (a) => ce(h) ? h.value = a : null),
210
+ indeterminate: r(_),
211
+ onChange: P
212
+ }, {
213
+ default: n(() => [
214
+ g(b(e.$t("sysJob.checkAll")) + "/" + b(e.$t("sysJob.checkNoAll")), 1)
215
+ ]),
216
+ _: 1
217
+ }, 8, ["modelValue", "indeterminate"]),
218
+ s(Q, {
219
+ data: r(w),
220
+ "row-key": "resourceId",
221
+ border: "",
222
+ "show-header": !1,
223
+ "tree-props": { children: "children", hasChildren: "hasChildren" }
224
+ }, {
225
+ default: n(() => [
226
+ s($, {
227
+ prop: "resourceName",
228
+ width: "180"
229
+ }),
230
+ s($, { prop: "resourceName" }, {
231
+ default: n((a) => [
232
+ s(K, {
233
+ modelValue: r(l).permCodes,
234
+ "onUpdate:modelValue": o[4] || (o[4] = (c) => r(l).permCodes = c),
235
+ onChange: G
236
+ }, {
237
+ default: n(() => [
238
+ (f(!0), x(A, null, B(a.row.perms, (c) => (f(), V(q, {
239
+ label: c.permCode,
240
+ key: c.permId
241
+ }, {
242
+ default: n(() => [
243
+ g(b(c.permName), 1)
244
+ ]),
245
+ _: 2
246
+ }, 1032, ["label"]))), 128))
247
+ ]),
248
+ _: 2
249
+ }, 1032, ["modelValue"])
250
+ ]),
251
+ _: 1
252
+ })
253
+ ]),
254
+ _: 1
255
+ }, 8, ["data"])
256
+ ]),
257
+ _: 1
258
+ }, 8, ["label"]),
259
+ s(d, {
260
+ label: e.$t("sysJob.description"),
261
+ prop: "description"
262
+ }, {
263
+ default: n(() => [
264
+ s(t, {
265
+ modelValue: r(l).description,
266
+ "onUpdate:modelValue": o[5] || (o[5] = (a) => r(l).description = a),
267
+ type: "textarea",
268
+ autosize: { minRows: 2 },
269
+ maxlength: "200",
270
+ "show-word-limit": "",
271
+ placeholder: e.$t("sysJob.descriptionRequired"),
272
+ clearable: ""
273
+ }, null, 8, ["modelValue", "placeholder"])
274
+ ]),
275
+ _: 1
276
+ }, 8, ["label"])
277
+ ]),
278
+ _: 1
279
+ }, 8, ["model", "rules"])
280
+ ]),
281
+ _: 1
282
+ }, 8, ["title", "modelValue"]);
283
+ };
284
+ }
285
+ });
286
+ export {
287
+ Ae as _
288
+ };
@@ -0,0 +1,61 @@
1
+ import { defineComponent as f, openBlock as a, createElementBlock as t, normalizeClass as s, unref as r, renderSlot as l, createTextVNode as d, toDisplayString as n, createCommentVNode as i, createElementVNode as p, normalizeStyle as y } from "vue";
2
+ import { k as u, m, w as c, _ as h, K as v } from "./index-CrNYgyNm.mjs";
3
+ const S = u({
4
+ header: {
5
+ type: String,
6
+ default: ""
7
+ },
8
+ footer: {
9
+ type: String,
10
+ default: ""
11
+ },
12
+ bodyStyle: {
13
+ type: m([String, Object, Array]),
14
+ default: ""
15
+ },
16
+ bodyClass: String,
17
+ shadow: {
18
+ type: String,
19
+ values: ["always", "hover", "never"],
20
+ default: "always"
21
+ }
22
+ }), b = f({
23
+ name: "ElCard"
24
+ }), C = /* @__PURE__ */ f({
25
+ ...b,
26
+ props: S,
27
+ setup(g) {
28
+ const o = c("card");
29
+ return (e, $) => (a(), t("div", {
30
+ class: s([r(o).b(), r(o).is(`${e.shadow}-shadow`)])
31
+ }, [
32
+ e.$slots.header || e.header ? (a(), t("div", {
33
+ key: 0,
34
+ class: s(r(o).e("header"))
35
+ }, [
36
+ l(e.$slots, "header", {}, () => [
37
+ d(n(e.header), 1)
38
+ ])
39
+ ], 2)) : i("v-if", !0),
40
+ p("div", {
41
+ class: s([r(o).e("body"), e.bodyClass]),
42
+ style: y(e.bodyStyle)
43
+ }, [
44
+ l(e.$slots, "default")
45
+ ], 6),
46
+ e.$slots.footer || e.footer ? (a(), t("div", {
47
+ key: 1,
48
+ class: s(r(o).e("footer"))
49
+ }, [
50
+ l(e.$slots, "footer", {}, () => [
51
+ d(n(e.footer), 1)
52
+ ])
53
+ ], 2)) : i("v-if", !0)
54
+ ], 2));
55
+ }
56
+ });
57
+ var w = /* @__PURE__ */ h(C, [["__file", "card.vue"]]);
58
+ const N = v(w);
59
+ export {
60
+ N as E
61
+ };