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,222 @@
1
+ import { c as F, E, e as S, f as j } from "./index-CrNYgyNm.mjs";
2
+ import { E as T } from "./el-dialog-BSTwker5.mjs";
3
+ import { a as B, E as M } from "./el-form-item-BzKoZc6I.mjs";
4
+ import { E as O, a as z } from "./el-radio-NC-gfUsx.mjs";
5
+ import "./el-tag-l0sNRNKZ.mjs";
6
+ import "./el-select-DAMII7lv.mjs";
7
+ import "./el-scrollbar-p0O6uID0.mjs";
8
+ import "./el-popper-AjIjI4wK.mjs";
9
+ import { E as A } from "./el-tree-select-CyDKS6nF.mjs";
10
+ import "./el-checkbox-miY6QbQ8.mjs";
11
+ import { defineComponent as G, ref as h, reactive as v, toRef as H, openBlock as J, createBlock as K, withCtx as a, createElementVNode as L, createVNode as o, createTextVNode as u, toDisplayString as f, unref as d } from "vue";
12
+ import { u as P } from "./vue-i18n-CE6tUbcO.mjs";
13
+ import { t as Q, j as W, k as X } from "./index-BnbEfNmI.mjs";
14
+ const Y = { class: "dialog-footer" }, me = /* @__PURE__ */ G({
15
+ __name: "edit",
16
+ props: {
17
+ formData: {
18
+ type: Object,
19
+ default: () => {
20
+ }
21
+ },
22
+ dialog: {
23
+ type: Object,
24
+ default: () => {
25
+ }
26
+ }
27
+ },
28
+ emits: ["dialogEvent", "refresh"],
29
+ setup(I, { emit: $ }) {
30
+ var _;
31
+ const { t: i } = P(), b = h(), y = h([]);
32
+ let t = v({
33
+ tenant: F().user.tenant,
34
+ requestId: Math.random() * 10 + "",
35
+ updateMask: "deptType,deptCode,deptName,parentId,description,status",
36
+ deptCode: "",
37
+ deptName: "",
38
+ parentId: "",
39
+ deptType: "dept",
40
+ description: "",
41
+ status: !0
42
+ });
43
+ const w = v({
44
+ deptCode: [
45
+ { required: !0, message: i("sysDept.codeRequired"), trigger: "blur" }
46
+ ],
47
+ deptName: [
48
+ { required: !0, message: i("sysDept.nameRequired"), trigger: "blur" }
49
+ ]
50
+ }), p = $, m = I, c = H(m, "dialog");
51
+ function R() {
52
+ var e;
53
+ Q((e = m.formData) == null ? void 0 : e.deptId).then(({ data: l }) => {
54
+ y.value = l.results;
55
+ });
56
+ }
57
+ (_ = m.formData) != null && _.deptId && (t = Object.assign(t, m.formData), t.parentId === "00000000-0000-0000-0000-000000000000" && (t.parentId = ""));
58
+ function g() {
59
+ p("dialogEvent", !1);
60
+ }
61
+ async function C() {
62
+ var e;
63
+ await ((e = b.value) == null ? void 0 : e.validate((l) => {
64
+ l && (t.deptId ? W(t).then((r) => {
65
+ r.status === 200 && (E({
66
+ message: i("common.submitSuccess"),
67
+ type: "success"
68
+ }), p("dialogEvent", !1), p("refresh", r.status === 200));
69
+ }) : X(t).then((r) => {
70
+ r.status === 200 && (E({
71
+ message: i("common.submitSuccess"),
72
+ type: "success"
73
+ }), p("dialogEvent", !1), p("refresh", r.status === 200));
74
+ }));
75
+ }));
76
+ }
77
+ return R(), (e, l) => {
78
+ const r = S, n = B, q = A, D = O, N = z, k = M, V = j, U = T;
79
+ return J(), K(U, {
80
+ title: c.value.title,
81
+ modelValue: c.value.visible,
82
+ "onUpdate:modelValue": l[5] || (l[5] = (s) => c.value.visible = s),
83
+ width: "800px",
84
+ onClose: g
85
+ }, {
86
+ footer: a(() => [
87
+ L("div", Y, [
88
+ o(V, { onClick: g }, {
89
+ default: a(() => [
90
+ u(f(e.$t("common.cancel")), 1)
91
+ ]),
92
+ _: 1
93
+ }),
94
+ o(V, {
95
+ type: "primary",
96
+ onClick: C
97
+ }, {
98
+ default: a(() => [
99
+ u(f(e.$t("common.confirm")), 1)
100
+ ]),
101
+ _: 1
102
+ })
103
+ ])
104
+ ]),
105
+ default: a(() => [
106
+ o(k, {
107
+ ref_key: "deptFormRef",
108
+ ref: b,
109
+ model: d(t),
110
+ rules: w,
111
+ "label-width": "160px"
112
+ }, {
113
+ default: a(() => [
114
+ o(n, {
115
+ label: e.$t("sysDept.code"),
116
+ prop: "deptCode"
117
+ }, {
118
+ default: a(() => [
119
+ o(r, {
120
+ modelValue: d(t).deptCode,
121
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => d(t).deptCode = s),
122
+ placeholder: e.$t("sysDept.codeRequired"),
123
+ maxlength: "30",
124
+ "show-word-limit": "",
125
+ clearable: ""
126
+ }, null, 8, ["modelValue", "placeholder"])
127
+ ]),
128
+ _: 1
129
+ }, 8, ["label"]),
130
+ o(n, {
131
+ label: e.$t("sysDept.name"),
132
+ prop: "deptName"
133
+ }, {
134
+ default: a(() => [
135
+ o(r, {
136
+ modelValue: d(t).deptName,
137
+ "onUpdate:modelValue": l[1] || (l[1] = (s) => d(t).deptName = s),
138
+ placeholder: e.$t("sysDept.nameRequired"),
139
+ maxlength: "30",
140
+ "show-word-limit": "",
141
+ clearable: ""
142
+ }, null, 8, ["modelValue", "placeholder"])
143
+ ]),
144
+ _: 1
145
+ }, 8, ["label"]),
146
+ o(n, {
147
+ label: e.$t("sysDept.parent"),
148
+ prop: "parentId"
149
+ }, {
150
+ default: a(() => [
151
+ o(q, {
152
+ modelValue: d(t).parentId,
153
+ "onUpdate:modelValue": l[2] || (l[2] = (s) => d(t).parentId = s),
154
+ data: y.value,
155
+ "render-after-expand": !1,
156
+ filterable: "",
157
+ clearable: "",
158
+ "check-strictly": "",
159
+ placeholder: e.$t("sysDept.parentRequired"),
160
+ style: { width: "100%" }
161
+ }, null, 8, ["modelValue", "data", "placeholder"])
162
+ ]),
163
+ _: 1
164
+ }, 8, ["label"]),
165
+ o(n, {
166
+ label: e.$t("sysDept.description"),
167
+ prop: "description"
168
+ }, {
169
+ default: a(() => [
170
+ o(r, {
171
+ modelValue: d(t).description,
172
+ "onUpdate:modelValue": l[3] || (l[3] = (s) => d(t).description = s),
173
+ type: "textarea",
174
+ autosize: { minRows: 2 },
175
+ placeholder: e.$t("sysDept.descriptionRequired"),
176
+ clearable: "",
177
+ maxlength: "200",
178
+ "show-word-limit": ""
179
+ }, null, 8, ["modelValue", "placeholder"])
180
+ ]),
181
+ _: 1
182
+ }, 8, ["label"]),
183
+ o(n, {
184
+ label: e.$t("sysDept.status"),
185
+ prop: "status"
186
+ }, {
187
+ default: a(() => [
188
+ o(N, {
189
+ modelValue: d(t).status,
190
+ "onUpdate:modelValue": l[4] || (l[4] = (s) => d(t).status = s)
191
+ }, {
192
+ default: a(() => [
193
+ o(D, { label: !0 }, {
194
+ default: a(() => [
195
+ u(f(e.$t("common.enable")), 1)
196
+ ]),
197
+ _: 1
198
+ }),
199
+ o(D, { label: !1 }, {
200
+ default: a(() => [
201
+ u(f(e.$t("common.disable")), 1)
202
+ ]),
203
+ _: 1
204
+ })
205
+ ]),
206
+ _: 1
207
+ }, 8, ["modelValue"])
208
+ ]),
209
+ _: 1
210
+ }, 8, ["label"])
211
+ ]),
212
+ _: 1
213
+ }, 8, ["model", "rules"])
214
+ ]),
215
+ _: 1
216
+ }, 8, ["title", "modelValue"]);
217
+ };
218
+ }
219
+ });
220
+ export {
221
+ me as _
222
+ };
@@ -0,0 +1,226 @@
1
+ import { ap as i, c as d, E, e as D, f as R } from "./index-CrNYgyNm.mjs";
2
+ import { E as $ } from "./el-dialog-BSTwker5.mjs";
3
+ import { a as k, E as F } from "./el-form-item-BzKoZc6I.mjs";
4
+ import { defineComponent as S, toRef as U, ref as j, reactive as O, openBlock as B, createBlock as M, withCtx as l, createElementVNode as A, createVNode as s, createTextVNode as V, toDisplayString as C, unref as u } from "vue";
5
+ import { u as P } from "./vue-i18n-CE6tUbcO.mjs";
6
+ function X(e) {
7
+ return i({
8
+ url: "/v1/rbac/operation/page",
9
+ method: "get",
10
+ params: e
11
+ });
12
+ }
13
+ function T(e) {
14
+ return i({
15
+ url: "/v1/rbac/operation",
16
+ method: "post",
17
+ data: e
18
+ });
19
+ }
20
+ function x(e) {
21
+ return i({
22
+ url: "/v1/rbac/operation",
23
+ method: "patch",
24
+ data: e
25
+ });
26
+ }
27
+ function Y(e) {
28
+ const n = {
29
+ tenant: d().user.tenant,
30
+ operationId: e
31
+ };
32
+ return i({
33
+ url: "/v1/rbac/operation/id",
34
+ method: "delete",
35
+ params: n
36
+ });
37
+ }
38
+ function Z(e) {
39
+ const n = {
40
+ tenant: d().user.tenant,
41
+ operationId: e
42
+ };
43
+ return i({
44
+ url: "/v1/rbac/operation/moveup",
45
+ method: "post",
46
+ params: n
47
+ });
48
+ }
49
+ function ee(e) {
50
+ const n = {
51
+ tenant: d().user.tenant,
52
+ operationId: e
53
+ };
54
+ return i({
55
+ url: "/v1/rbac/operation/movedown",
56
+ method: "post",
57
+ params: n
58
+ });
59
+ }
60
+ function te(e) {
61
+ const n = {
62
+ tenant: d().user.tenant,
63
+ operationId: e
64
+ };
65
+ return i({
66
+ url: "/v1/rbac/operation/batch",
67
+ method: "put",
68
+ data: n
69
+ });
70
+ }
71
+ function z(e) {
72
+ return i({
73
+ url: "/v1/rbac/operation/check",
74
+ method: "get",
75
+ params: {
76
+ tenant: d().user.tenant,
77
+ operationCode: e
78
+ }
79
+ });
80
+ }
81
+ const G = { class: "dialog-footer" }, oe = /* @__PURE__ */ S({
82
+ __name: "edit",
83
+ props: {
84
+ formData: {
85
+ type: Object,
86
+ default: () => {
87
+ }
88
+ },
89
+ dialog: {
90
+ type: Object,
91
+ default: () => {
92
+ }
93
+ }
94
+ },
95
+ emits: ["dialogEvent", "refresh"],
96
+ setup(e, { emit: n }) {
97
+ var _;
98
+ const { t: c } = P(), g = e, b = U(g, "dialog"), v = j();
99
+ let o = O({
100
+ tenant: d().user.tenant,
101
+ requestId: Math.random() * 10 + "",
102
+ operationCode: "",
103
+ operationName: "",
104
+ updateMask: "operationCode,operationName"
105
+ });
106
+ const q = O({
107
+ operationCode: [
108
+ {
109
+ required: !0,
110
+ validator: (r, a, t) => {
111
+ a === "" ? t(new Error(c("sysOperation.codeRequired"))) : o.operationId ? t() : z(a).then(({ data: f }) => {
112
+ f === !0 ? t(new Error("该编码已存在")) : t();
113
+ });
114
+ },
115
+ trigger: "blur"
116
+ }
117
+ ],
118
+ operationName: [
119
+ {
120
+ required: !0,
121
+ message: c("sysOperation.nameRequired"),
122
+ trigger: "blur"
123
+ }
124
+ ]
125
+ }), p = n, I = async () => {
126
+ var r;
127
+ await ((r = v.value) == null ? void 0 : r.validate((a) => {
128
+ a && (o.operationId ? x(o).then((t) => {
129
+ console.log(t), t.status === 200 && (E({
130
+ message: c("common.submitSuccess"),
131
+ type: "success"
132
+ }), p("dialogEvent", !1), p("refresh", t.status === 200));
133
+ }) : T(o).then((t) => {
134
+ console.log(t), t.status === 200 && (E({
135
+ message: c("common.submitSuccess"),
136
+ type: "success"
137
+ }), p("dialogEvent", !1), p("refresh", t.status === 200));
138
+ }));
139
+ }));
140
+ };
141
+ function h() {
142
+ p("dialogEvent", !1);
143
+ }
144
+ return (_ = g.formData) != null && _.operationId && (o = Object.assign(o, g.formData)), (r, a) => {
145
+ const t = D, f = k, N = F, y = R, w = $;
146
+ return B(), M(w, {
147
+ modelValue: b.value.visible,
148
+ "onUpdate:modelValue": a[2] || (a[2] = (m) => b.value.visible = m),
149
+ title: b.value.title,
150
+ width: "600px",
151
+ onClose: h
152
+ }, {
153
+ footer: l(() => [
154
+ A("div", G, [
155
+ s(y, { onClick: h }, {
156
+ default: l(() => [
157
+ V(C(r.$t("common.cancel")), 1)
158
+ ]),
159
+ _: 1
160
+ }),
161
+ s(y, {
162
+ type: "primary",
163
+ onClick: I
164
+ }, {
165
+ default: l(() => [
166
+ V(C(r.$t("common.confirm")), 1)
167
+ ]),
168
+ _: 1
169
+ })
170
+ ])
171
+ ]),
172
+ default: l(() => [
173
+ s(N, {
174
+ ref_key: "operationFormRef",
175
+ ref: v,
176
+ model: u(o),
177
+ rules: q,
178
+ "label-width": "160px"
179
+ }, {
180
+ default: l(() => [
181
+ s(f, {
182
+ label: r.$t("sysOperation.code"),
183
+ prop: "operationCode"
184
+ }, {
185
+ default: l(() => [
186
+ s(t, {
187
+ modelValue: u(o).operationCode,
188
+ "onUpdate:modelValue": a[0] || (a[0] = (m) => u(o).operationCode = m),
189
+ placeholder: r.$t("sysOperation.codeRequired"),
190
+ disabled: !!u(o).operationId,
191
+ clearable: ""
192
+ }, null, 8, ["modelValue", "placeholder", "disabled"])
193
+ ]),
194
+ _: 1
195
+ }, 8, ["label"]),
196
+ s(f, {
197
+ label: r.$t("sysOperation.name"),
198
+ prop: "operationName"
199
+ }, {
200
+ default: l(() => [
201
+ s(t, {
202
+ modelValue: u(o).operationName,
203
+ "onUpdate:modelValue": a[1] || (a[1] = (m) => u(o).operationName = m),
204
+ placeholder: r.$t("sysOperation.nameRequired"),
205
+ clearable: ""
206
+ }, null, 8, ["modelValue", "placeholder"])
207
+ ]),
208
+ _: 1
209
+ }, 8, ["label"])
210
+ ]),
211
+ _: 1
212
+ }, 8, ["model", "rules"])
213
+ ]),
214
+ _: 1
215
+ }, 8, ["modelValue", "title"]);
216
+ };
217
+ }
218
+ });
219
+ export {
220
+ oe as _,
221
+ ee as a,
222
+ te as b,
223
+ Y as d,
224
+ X as g,
225
+ Z as m
226
+ };