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,134 @@
1
+ import { ap as e, c as n } from "./index-CrNYgyNm.mjs";
2
+ function p(t) {
3
+ return e({
4
+ url: "/v1/rbac/dept/list",
5
+ method: "get",
6
+ params: t
7
+ });
8
+ }
9
+ function o(t) {
10
+ return e({
11
+ url: "/v1/rbac/dept",
12
+ method: "post",
13
+ data: t
14
+ });
15
+ }
16
+ function u(t) {
17
+ return e({
18
+ url: "/v1/rbac/dept",
19
+ method: "patch",
20
+ data: t
21
+ });
22
+ }
23
+ function s(t) {
24
+ const r = {
25
+ tenant: n().user.tenant,
26
+ deptId: t
27
+ };
28
+ return e({
29
+ url: "/v1/rbac/dept/id",
30
+ method: "delete",
31
+ params: r
32
+ });
33
+ }
34
+ function c(t) {
35
+ const r = {
36
+ tenant: n().user.tenant,
37
+ deptId: t
38
+ };
39
+ return e({
40
+ url: "/v1/rbac/dept/batch",
41
+ method: "put",
42
+ data: r
43
+ });
44
+ }
45
+ function d(t) {
46
+ const r = {
47
+ tenant: n().user.tenant,
48
+ deptId: t
49
+ };
50
+ return e({
51
+ url: "/v1/rbac/dept/movedown",
52
+ method: "post",
53
+ params: r
54
+ });
55
+ }
56
+ function m(t) {
57
+ const r = {
58
+ tenant: n().user.tenant,
59
+ deptId: t
60
+ };
61
+ return e({
62
+ url: "/v1/rbac/dept/moveup",
63
+ method: "post",
64
+ params: r
65
+ });
66
+ }
67
+ function l(t) {
68
+ const r = {
69
+ tenant: n().user.tenant,
70
+ excludeId: t
71
+ };
72
+ return e({
73
+ url: "/v1/rbac/dept/treelist",
74
+ method: "get",
75
+ params: r
76
+ });
77
+ }
78
+ function i(t) {
79
+ return e({
80
+ url: "/v1/rbac/dept/lock",
81
+ method: "post",
82
+ data: t
83
+ });
84
+ }
85
+ function b(t) {
86
+ return e({
87
+ url: "/v1/rbac/dept/depts.xlsx",
88
+ method: "get",
89
+ responseType: "blob",
90
+ params: t
91
+ });
92
+ }
93
+ function h(t) {
94
+ return e({
95
+ url: "/v1/rbac/dept/import",
96
+ method: "patch",
97
+ data: t
98
+ });
99
+ }
100
+ function v() {
101
+ return e({
102
+ url: "/v1/rbac/dept/template.xlsx",
103
+ method: "get",
104
+ responseType: "blob",
105
+ params: {
106
+ tenant: n().user.tenant
107
+ }
108
+ });
109
+ }
110
+ function f(t) {
111
+ return e({
112
+ url: "/v1/rbac/dept/enable",
113
+ method: "post",
114
+ params: {
115
+ tenant: n().user.tenant,
116
+ deptId: t
117
+ }
118
+ });
119
+ }
120
+ export {
121
+ d as a,
122
+ c as b,
123
+ v as c,
124
+ s as d,
125
+ i as e,
126
+ f,
127
+ p as g,
128
+ b as h,
129
+ h as i,
130
+ u as j,
131
+ o as k,
132
+ m,
133
+ l as t
134
+ };
@@ -0,0 +1,280 @@
1
+ import { _ as oe } from "./index.vue_vue_type_script_setup_true_lang-C6yk_vUt.mjs";
2
+ import { c as te, al as le, am as ae, an as ne, e as re, f as se, y as ie } from "./index-CrNYgyNm.mjs";
3
+ import "./el-icon-l0sNRNKZ.mjs";
4
+ import { E as de, a as me } from "./el-col-BOgRUJYE.mjs";
5
+ import { u as ce, a as pe, _ as ue } from "./useColumnToggleTable-D_QF8Uy9.mjs";
6
+ import { a as be, E as fe } from "./el-form-item-BzKoZc6I.mjs";
7
+ import { defineComponent as _e, reactive as u, resolveComponent as I, resolveDirective as ye, openBlock as m, createElementBlock as k, createVNode as o, withCtx as t, withKeys as T, unref as l, createTextVNode as c, toDisplayString as p, withDirectives as C, createBlock as w, createCommentVNode as Ce, createElementVNode as he } from "vue";
8
+ import { u as ve } from "./vue-i18n-CE6tUbcO.mjs";
9
+ import { g as ke, d as we, b as ge } from "./index-C0vV2_4K.mjs";
10
+ import { _ as $e } from "./edit.vue_vue_type_script_setup_true_lang-mM66jf9N.mjs";
11
+ const Re = { class: "app-container" }, Ee = /* @__PURE__ */ he("div", { class: "clear" }, null, -1), Ie = ["onClick"], Te = ["onClick"], Pe = /* @__PURE__ */ _e({
12
+ __name: "index",
13
+ setup(Ne) {
14
+ const { t: n } = ve(), i = u({
15
+ tenant: te().user.tenant,
16
+ roleType: "job"
17
+ });
18
+ let b = u([
19
+ {
20
+ label: n("sysJob.code"),
21
+ prop: "roleCode",
22
+ width: "140",
23
+ isColumn: !0
24
+ },
25
+ {
26
+ label: n("sysJob.name"),
27
+ prop: "roleName",
28
+ width: "140",
29
+ isColumn: !0
30
+ },
31
+ {
32
+ label: n("sysJob.description"),
33
+ prop: "description",
34
+ isColumn: !0
35
+ },
36
+ {
37
+ label: n("sysJob.sort"),
38
+ width: "100",
39
+ columnType: "slot",
40
+ slotName: "sort",
41
+ isColumn: !0
42
+ },
43
+ {
44
+ label: n("common.operate"),
45
+ width: "200",
46
+ columnType: "slot",
47
+ slotName: "operation",
48
+ fixed: "right",
49
+ isColumn: !0
50
+ }
51
+ ]);
52
+ const s = u({
53
+ visible: !1,
54
+ title: ""
55
+ });
56
+ let f = u({
57
+ roleCode: "",
58
+ roleName: "",
59
+ description: ""
60
+ });
61
+ const N = u({
62
+ list: ke,
63
+ del: we,
64
+ dels: ge,
65
+ up: le,
66
+ down: ae
67
+ }), {
68
+ tableData: D,
69
+ listLoading: J,
70
+ selectionRows: V,
71
+ multipleTableRef: S,
72
+ queryFormRef: g,
73
+ handleQuery: d,
74
+ deleteRecord: j,
75
+ deleteRecords: F,
76
+ handleMoveTop: B,
77
+ // 上移
78
+ handleMoveDown: K
79
+ // 下移
80
+ } = ce(n, N, i), {
81
+ parIndex: q,
82
+ tableArray: L,
83
+ getLocalStorageContent: P,
84
+ fixedChange: U,
85
+ isShowChange: x
86
+ } = pe(b, "/system/job");
87
+ function z(e) {
88
+ V.value = e;
89
+ }
90
+ function A() {
91
+ g.value.resetFields(), d();
92
+ }
93
+ function M() {
94
+ for (const e in f)
95
+ f[e] = "";
96
+ s.visible = !0, s.title = n("common.add");
97
+ }
98
+ function Q(e) {
99
+ s.title = n("common.edit"), ne(e.roleId).then(({ data: r }) => {
100
+ f = { ...r }, s.visible = !0;
101
+ });
102
+ }
103
+ function G(e) {
104
+ s.visible = e;
105
+ }
106
+ function H(e) {
107
+ e && d();
108
+ }
109
+ return P(), b = L.value, d(), (e, r) => {
110
+ const $ = re, h = be, _ = se, O = fe, R = de, W = ue, X = me, Y = I("Bottom"), E = ie, Z = I("Top"), ee = oe, y = ye("hasPerm");
111
+ return m(), k("div", Re, [
112
+ o(O, {
113
+ ref_key: "queryFormRef",
114
+ ref: g,
115
+ model: i,
116
+ inline: !0
117
+ }, {
118
+ default: t(() => [
119
+ o(h, {
120
+ label: e.$t("sysJob.code"),
121
+ prop: "roleCode"
122
+ }, {
123
+ default: t(() => [
124
+ o($, {
125
+ modelValue: i.roleCode,
126
+ "onUpdate:modelValue": r[0] || (r[0] = (a) => i.roleCode = a),
127
+ placeholder: e.$t("sysJob.codeRequired"),
128
+ onKeyup: T(l(d), ["enter"])
129
+ }, null, 8, ["modelValue", "placeholder", "onKeyup"])
130
+ ]),
131
+ _: 1
132
+ }, 8, ["label"]),
133
+ o(h, {
134
+ label: e.$t("sysJob.name"),
135
+ prop: "likeRoleName"
136
+ }, {
137
+ default: t(() => [
138
+ o($, {
139
+ modelValue: i.likeRoleName,
140
+ "onUpdate:modelValue": r[1] || (r[1] = (a) => i.likeRoleName = a),
141
+ placeholder: e.$t("sysJob.nameRequired"),
142
+ onKeyup: T(l(d), ["enter"])
143
+ }, null, 8, ["modelValue", "placeholder", "onKeyup"])
144
+ ]),
145
+ _: 1
146
+ }, 8, ["label"]),
147
+ o(h, { class: "search-container" }, {
148
+ default: t(() => [
149
+ o(_, {
150
+ type: "primary",
151
+ onClick: l(d)
152
+ }, {
153
+ default: t(() => [
154
+ c(p(e.$t("common.search")), 1)
155
+ ]),
156
+ _: 1
157
+ }, 8, ["onClick"]),
158
+ o(_, { onClick: A }, {
159
+ default: t(() => [
160
+ c(p(e.$t("common.reset")), 1)
161
+ ]),
162
+ _: 1
163
+ })
164
+ ]),
165
+ _: 1
166
+ })
167
+ ]),
168
+ _: 1
169
+ }, 8, ["model"]),
170
+ Ee,
171
+ o(X, { justify: "space-between" }, {
172
+ default: t(() => [
173
+ o(R, { span: 19 }, {
174
+ default: t(() => [
175
+ C((m(), w(_, {
176
+ type: "primary",
177
+ onClick: M
178
+ }, {
179
+ default: t(() => [
180
+ c(p(e.$t("common.add")), 1)
181
+ ]),
182
+ _: 1
183
+ })), [
184
+ [y, ["rbac:job:add"]]
185
+ ]),
186
+ C((m(), w(_, {
187
+ type: "primary",
188
+ onClick: r[2] || (r[2] = (a) => l(F)("roleId"))
189
+ }, {
190
+ default: t(() => [
191
+ c(p(e.$t("common.batchDelete")), 1)
192
+ ]),
193
+ _: 1
194
+ })), [
195
+ [y, ["rbac:job:delete"]]
196
+ ])
197
+ ]),
198
+ _: 1
199
+ }),
200
+ o(R, {
201
+ span: 5,
202
+ class: "container-float"
203
+ }, {
204
+ default: t(() => [
205
+ o(W, {
206
+ "table-label": l(b),
207
+ "par-index": l(q),
208
+ onFixedChange: l(U),
209
+ onIsShowChange: l(x)
210
+ }, null, 8, ["table-label", "par-index", "onFixedChange", "onIsShowChange"])
211
+ ]),
212
+ _: 1
213
+ })
214
+ ]),
215
+ _: 1
216
+ }),
217
+ o(ee, {
218
+ class: "table-top",
219
+ ref_key: "multipleTableRef",
220
+ ref: S,
221
+ rowKeys: "roleId",
222
+ "table-data": l(D),
223
+ "table-label": l(b),
224
+ "list-loading": l(J),
225
+ onTableSelected: z
226
+ }, {
227
+ sort: t((a) => [
228
+ o(E, {
229
+ size: "16",
230
+ onClick: (v) => l(K)(a.data.row.roleId)
231
+ }, {
232
+ default: t(() => [
233
+ o(Y)
234
+ ]),
235
+ _: 2
236
+ }, 1032, ["onClick"]),
237
+ o(E, {
238
+ size: "16",
239
+ onClick: (v) => l(B)(a.data.row.roleId)
240
+ }, {
241
+ default: t(() => [
242
+ o(Z)
243
+ ]),
244
+ _: 2
245
+ }, 1032, ["onClick"])
246
+ ]),
247
+ operation: t((a) => [
248
+ C((m(), k("span", {
249
+ class: "el-button-color",
250
+ onClick: (v) => Q(a.data.row)
251
+ }, [
252
+ c(p(e.$t("common.edit")), 1)
253
+ ], 8, Ie)), [
254
+ [y, ["rbac:job:update"]]
255
+ ]),
256
+ C((m(), k("span", {
257
+ class: "el-button-color dropdown-left",
258
+ onClick: (v) => l(j)(a.data.row.roleId)
259
+ }, [
260
+ c(p(e.$t("common.delete")), 1)
261
+ ], 8, Te)), [
262
+ [y, ["rbac:job:delete"]]
263
+ ])
264
+ ]),
265
+ _: 1
266
+ }, 8, ["table-data", "table-label", "list-loading"]),
267
+ s.visible ? (m(), w($e, {
268
+ key: 0,
269
+ dialog: s,
270
+ "form-data": l(f),
271
+ onDialogEvent: G,
272
+ onRefresh: H
273
+ }, null, 8, ["dialog", "form-data"])) : Ce("", !0)
274
+ ]);
275
+ };
276
+ }
277
+ });
278
+ export {
279
+ Pe as default
280
+ };
@@ -0,0 +1,107 @@
1
+ import { defineComponent as v, computed as T, openBlock as l, createElementBlock as w, normalizeClass as a, unref as o, normalizeStyle as f, createElementVNode as t, renderSlot as k, createBlock as c, withModifiers as g, withCtx as r, createVNode as y, createCommentVNode as C, Transition as M } from "vue";
2
+ import { k as N, bn as V, aM as $, w as I, y as b, z as h, _ as K, K as P } from "./index-CrNYgyNm.mjs";
3
+ const F = N({
4
+ type: {
5
+ type: String,
6
+ values: ["primary", "success", "info", "warning", "danger"],
7
+ default: "primary"
8
+ },
9
+ closable: Boolean,
10
+ disableTransitions: Boolean,
11
+ hit: Boolean,
12
+ color: String,
13
+ size: {
14
+ type: String,
15
+ values: V
16
+ },
17
+ effect: {
18
+ type: String,
19
+ values: ["dark", "light", "plain"],
20
+ default: "light"
21
+ },
22
+ round: Boolean
23
+ }), j = {
24
+ close: (n) => n instanceof MouseEvent,
25
+ click: (n) => n instanceof MouseEvent
26
+ }, q = v({
27
+ name: "ElTag"
28
+ }), A = /* @__PURE__ */ v({
29
+ ...q,
30
+ props: F,
31
+ emits: j,
32
+ setup(n, { emit: i }) {
33
+ const _ = n, E = $(), s = I("tag"), p = T(() => {
34
+ const { type: e, hit: m, effect: S, closable: z, round: B } = _;
35
+ return [
36
+ s.b(),
37
+ s.is("closable", z),
38
+ s.m(e || "primary"),
39
+ s.m(E.value),
40
+ s.m(S),
41
+ s.is("hit", m),
42
+ s.is("round", B)
43
+ ];
44
+ }), u = (e) => {
45
+ i("close", e);
46
+ }, d = (e) => {
47
+ i("click", e);
48
+ };
49
+ return (e, m) => e.disableTransitions ? (l(), w("span", {
50
+ key: 0,
51
+ class: a(o(p)),
52
+ style: f({ backgroundColor: e.color }),
53
+ onClick: d
54
+ }, [
55
+ t("span", {
56
+ class: a(o(s).e("content"))
57
+ }, [
58
+ k(e.$slots, "default")
59
+ ], 2),
60
+ e.closable ? (l(), c(o(b), {
61
+ key: 0,
62
+ class: a(o(s).e("close")),
63
+ onClick: g(u, ["stop"])
64
+ }, {
65
+ default: r(() => [
66
+ y(o(h))
67
+ ]),
68
+ _: 1
69
+ }, 8, ["class", "onClick"])) : C("v-if", !0)
70
+ ], 6)) : (l(), c(M, {
71
+ key: 1,
72
+ name: `${o(s).namespace.value}-zoom-in-center`,
73
+ appear: ""
74
+ }, {
75
+ default: r(() => [
76
+ t("span", {
77
+ class: a(o(p)),
78
+ style: f({ backgroundColor: e.color }),
79
+ onClick: d
80
+ }, [
81
+ t("span", {
82
+ class: a(o(s).e("content"))
83
+ }, [
84
+ k(e.$slots, "default")
85
+ ], 2),
86
+ e.closable ? (l(), c(o(b), {
87
+ key: 0,
88
+ class: a(o(s).e("close")),
89
+ onClick: g(u, ["stop"])
90
+ }, {
91
+ default: r(() => [
92
+ y(o(h))
93
+ ]),
94
+ _: 1
95
+ }, 8, ["class", "onClick"])) : C("v-if", !0)
96
+ ], 6)
97
+ ]),
98
+ _: 3
99
+ }, 8, ["name"]));
100
+ }
101
+ });
102
+ var D = /* @__PURE__ */ K(A, [["__file", "tag.vue"]]);
103
+ const J = P(D);
104
+ export {
105
+ J as E,
106
+ F as t
107
+ };