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,205 @@
1
+ import { g as x, c as b, h as D, v as U, l as B, e as N, f as $ } from "./index-CrNYgyNm.mjs";
2
+ import { E as R } from "./el-dialog-BSTwker5.mjs";
3
+ import { _ as S, E as q } from "./picture-kPnmHaoS.mjs";
4
+ import { a as z, E as A } from "./el-form-item-BzKoZc6I.mjs";
5
+ import { defineComponent as M, ref as I, reactive as m, openBlock as P, createElementBlock as T, Fragment as j, createVNode as e, withCtx as a, createTextVNode as p, toDisplayString as u, createElementVNode as f } from "vue";
6
+ const L = { class: "h-[40px]" }, G = { class: "image-slot" }, H = { class: "dialog-footer" }, Y = /* @__PURE__ */ M({
7
+ __name: "types",
8
+ setup(J) {
9
+ const _ = I(), c = m({
10
+ visible: !1
11
+ }), n = m({
12
+ content: "获取验证码",
13
+ timers: 60,
14
+ disabled: !1
15
+ }), o = m({
16
+ name: "",
17
+ captchaId: "",
18
+ captchaCode: "",
19
+ validCode: ""
20
+ }), g = I(), v = m({
21
+ captchaCode: [{ required: !0, message: "请输入验证码", trigger: "blur" }],
22
+ name: [{ required: !0, message: "请输入邮箱或手机号", trigger: "blur" }]
23
+ // validCode: [
24
+ // { required: true, message: "请输入6位数字的验证码", trigger: "blur" },
25
+ // ],
26
+ });
27
+ function C() {
28
+ x().then(({ data: l }) => {
29
+ o.captchaId = l.captchaId, _.value = l.base64Image, c.visible = !0, o.captchaCode = "";
30
+ });
31
+ }
32
+ function V() {
33
+ C();
34
+ }
35
+ const E = async () => {
36
+ var l;
37
+ await ((l = g.value) == null ? void 0 : l.validate((t) => {
38
+ if (t) {
39
+ c.visible = !1;
40
+ const i = {
41
+ tenant: b().user.tenant,
42
+ name: o.name,
43
+ captchaId: o.captchaId,
44
+ captchaCode: o.captchaCode
45
+ };
46
+ D(i).then(({ data: d }) => {
47
+ console.log(d);
48
+ const r = window.setInterval(() => {
49
+ n.content = n.timers + "s后重新发送", n.timers--, n.disabled = !0, n.timers < 0 && (n.timers = 60, n.disabled = !1, n.content = "重新发送验证码", window.clearInterval(r));
50
+ }, 1e3);
51
+ });
52
+ }
53
+ }));
54
+ };
55
+ function w() {
56
+ const l = {
57
+ tenant: b().user.tenant,
58
+ directoryId: "jmash",
59
+ name: o.name,
60
+ validCode: o.validCode,
61
+ clientId: U.APP_CLIENT_ID,
62
+ scope: ""
63
+ };
64
+ B(l).then((t) => {
65
+ console.log(t);
66
+ });
67
+ }
68
+ return (l, t) => {
69
+ const i = N, d = z, r = $, h = A, y = S, k = q, F = R;
70
+ return P(), T(j, null, [
71
+ e(h, {
72
+ ref_key: "ruleFormRef",
73
+ ref: g,
74
+ size: "large",
75
+ model: o,
76
+ rules: v
77
+ }, {
78
+ default: a(() => [
79
+ e(d, { prop: "name" }, {
80
+ default: a(() => [
81
+ e(i, {
82
+ modelValue: o.name,
83
+ "onUpdate:modelValue": t[0] || (t[0] = (s) => o.name = s),
84
+ clearable: "",
85
+ placeholder: "请输入邮箱/已验证手机号"
86
+ }, null, 8, ["modelValue"])
87
+ ]),
88
+ _: 1
89
+ }),
90
+ e(d, { prop: "validCode" }, {
91
+ default: a(() => [
92
+ e(i, {
93
+ modelValue: o.validCode,
94
+ "onUpdate:modelValue": t[1] || (t[1] = (s) => o.validCode = s),
95
+ placeholder: "请输入验证码",
96
+ clearable: ""
97
+ }, {
98
+ append: a(() => [
99
+ e(r, {
100
+ disabled: n.disabled,
101
+ onClick: V
102
+ }, {
103
+ default: a(() => [
104
+ p(u(n.content), 1)
105
+ ]),
106
+ _: 1
107
+ }, 8, ["disabled"])
108
+ ]),
109
+ _: 1
110
+ }, 8, ["modelValue"])
111
+ ]),
112
+ _: 1
113
+ }),
114
+ e(d, null, {
115
+ default: a(() => [
116
+ e(r, {
117
+ type: "primary",
118
+ class: "w-full",
119
+ onClick: w
120
+ }, {
121
+ default: a(() => [
122
+ p(" 登录 ")
123
+ ]),
124
+ _: 1
125
+ })
126
+ ]),
127
+ _: 1
128
+ })
129
+ ]),
130
+ _: 1
131
+ }, 8, ["model", "rules"]),
132
+ e(F, {
133
+ title: "提示",
134
+ modelValue: c.visible,
135
+ "onUpdate:modelValue": t[4] || (t[4] = (s) => c.visible = s),
136
+ width: "500px"
137
+ }, {
138
+ footer: a(() => [
139
+ f("div", H, [
140
+ e(r, {
141
+ onClick: t[3] || (t[3] = (s) => c.visible = !1)
142
+ }, {
143
+ default: a(() => [
144
+ p(u(l.$t("common.cancel")), 1)
145
+ ]),
146
+ _: 1
147
+ }),
148
+ e(r, {
149
+ type: "primary",
150
+ onClick: E
151
+ }, {
152
+ default: a(() => [
153
+ p(u(l.$t("common.confirm")), 1)
154
+ ]),
155
+ _: 1
156
+ })
157
+ ])
158
+ ]),
159
+ default: a(() => [
160
+ e(h, {
161
+ ref: "pwdFormRef",
162
+ size: "large",
163
+ model: o,
164
+ rules: v
165
+ }, {
166
+ default: a(() => [
167
+ e(d, { prop: "captchaCode" }, {
168
+ default: a(() => [
169
+ e(i, {
170
+ modelValue: o.captchaCode,
171
+ "onUpdate:modelValue": t[2] || (t[2] = (s) => o.captchaCode = s),
172
+ "auto-complete": "off",
173
+ placeholder: l.$t("login.captchaCode"),
174
+ class: "w-[60%]"
175
+ }, null, 8, ["modelValue", "placeholder"]),
176
+ f("div", L, [
177
+ e(k, {
178
+ src: _.value,
179
+ onClick: C,
180
+ class: "w-[130px] h-[40px] cursor-pointer"
181
+ }, {
182
+ error: a(() => [
183
+ f("div", G, [
184
+ e(y)
185
+ ])
186
+ ]),
187
+ _: 1
188
+ }, 8, ["src"])
189
+ ])
190
+ ]),
191
+ _: 1
192
+ })
193
+ ]),
194
+ _: 1
195
+ }, 8, ["model", "rules"])
196
+ ]),
197
+ _: 1
198
+ }, 8, ["modelValue"])
199
+ ], 64);
200
+ };
201
+ }
202
+ });
203
+ export {
204
+ Y as default
205
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./updatePwd.vue_vue_type_script_setup_true_lang-_Uadc2g3.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,151 @@
1
+ import { ak as y, E as C, e as h, f as v } from "./index-CrNYgyNm.mjs";
2
+ import { E as x } from "./el-dialog-BSTwker5.mjs";
3
+ import { a as O, E as A } from "./el-form-item-BzKoZc6I.mjs";
4
+ import { defineComponent as B, ref as F, toRefs as I, reactive as f, openBlock as R, createBlock as U, unref as r, isRef as q, withCtx as a, createElementVNode as D, createVNode as t, createTextVNode as c } from "vue";
5
+ const $ = { class: "dialog-footer" }, j = /* @__PURE__ */ B({
6
+ __name: "updatePwd",
7
+ props: {
8
+ pwdVisible: {
9
+ type: Boolean,
10
+ default: !1
11
+ }
12
+ },
13
+ emits: ["dialogActionChange"],
14
+ setup(P, { emit: _ }) {
15
+ const i = F(), V = P, { pwdVisible: w } = I(V), u = _;
16
+ let l = f({
17
+ encodeOldPwd: "",
18
+ encodeNewPwd: "",
19
+ confirmPwd: ""
20
+ });
21
+ const g = f({
22
+ encodeOldPwd: [
23
+ { required: !0, validator: (d, e, o) => {
24
+ e === "" ? o(new Error("请输入旧密码")) : o();
25
+ }, trigger: "blur" }
26
+ ],
27
+ encodeNewPwd: [
28
+ { required: !0, validator: (d, e, o) => {
29
+ e === "" ? o(new Error("请输入新密码")) : /^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%?^&*,\._\+(){}])[0-9a-zA-Z!@#$%?^&*,\\._\+(){}]{8,20}$/.test(e) ? o() : o(new Error("请输入8-20位包含数字,大小写字母,特殊符号的密码"));
30
+ }, trigger: "blur" }
31
+ ],
32
+ confirmPwd: [
33
+ { required: !0, validator: (d, e, o) => {
34
+ e === "" ? o(new Error("请再一次输入新密码")) : e !== l.encodeNewPwd ? o(new Error("两次密码不一致")) : o();
35
+ }, trigger: "blur" }
36
+ ]
37
+ }), E = async () => {
38
+ var d;
39
+ await ((d = i.value) == null ? void 0 : d.validate((e) => {
40
+ if (e)
41
+ y(l.encodeOldPwd, l.encodeNewPwd).then((o) => {
42
+ o.status === 200 && (C({
43
+ message: "密码修改成功",
44
+ type: "success"
45
+ }), u("dialogActionChange", !1));
46
+ });
47
+ else
48
+ return !1;
49
+ }));
50
+ };
51
+ function p() {
52
+ var d;
53
+ (d = i.value) == null || d.resetFields(), u("dialogActionChange", !1);
54
+ }
55
+ return (d, e) => {
56
+ const o = h, s = O, N = A, m = v, b = x;
57
+ return R(), U(b, {
58
+ title: "修改密码",
59
+ modelValue: r(w),
60
+ "onUpdate:modelValue": e[3] || (e[3] = (n) => q(w) ? w.value = n : null),
61
+ width: "500px",
62
+ onClose: p
63
+ }, {
64
+ footer: a(() => [
65
+ D("div", $, [
66
+ t(m, { onClick: p }, {
67
+ default: a(() => [
68
+ c("取消")
69
+ ]),
70
+ _: 1
71
+ }),
72
+ t(m, {
73
+ type: "primary",
74
+ onClick: E
75
+ }, {
76
+ default: a(() => [
77
+ c("确认")
78
+ ]),
79
+ _: 1
80
+ })
81
+ ])
82
+ ]),
83
+ default: a(() => [
84
+ t(N, {
85
+ ref_key: "pwdRef",
86
+ ref: i,
87
+ model: r(l),
88
+ "label-width": "80px",
89
+ rules: g
90
+ }, {
91
+ default: a(() => [
92
+ t(s, {
93
+ label: "旧密码",
94
+ prop: "encodeOldPwd"
95
+ }, {
96
+ default: a(() => [
97
+ t(o, {
98
+ type: "password",
99
+ modelValue: r(l).encodeOldPwd,
100
+ "onUpdate:modelValue": e[0] || (e[0] = (n) => r(l).encodeOldPwd = n),
101
+ placeholder: "请输入旧密码",
102
+ "show-password": "",
103
+ clearable: ""
104
+ }, null, 8, ["modelValue"])
105
+ ]),
106
+ _: 1
107
+ }),
108
+ t(s, {
109
+ label: "新密码",
110
+ prop: "encodeNewPwd"
111
+ }, {
112
+ default: a(() => [
113
+ t(o, {
114
+ type: "password",
115
+ modelValue: r(l).encodeNewPwd,
116
+ "onUpdate:modelValue": e[1] || (e[1] = (n) => r(l).encodeNewPwd = n),
117
+ placeholder: "请输入新密码",
118
+ "show-password": "",
119
+ clearable: ""
120
+ }, null, 8, ["modelValue"])
121
+ ]),
122
+ _: 1
123
+ }),
124
+ t(s, {
125
+ label: "确认密码",
126
+ prop: "confirmPwd"
127
+ }, {
128
+ default: a(() => [
129
+ t(o, {
130
+ type: "password",
131
+ modelValue: r(l).confirmPwd,
132
+ "onUpdate:modelValue": e[2] || (e[2] = (n) => r(l).confirmPwd = n),
133
+ placeholder: "请再一次输入新密码",
134
+ "show-password": "",
135
+ clearable: ""
136
+ }, null, 8, ["modelValue"])
137
+ ]),
138
+ _: 1
139
+ })
140
+ ]),
141
+ _: 1
142
+ }, 8, ["model", "rules"])
143
+ ]),
144
+ _: 1
145
+ }, 8, ["modelValue"]);
146
+ };
147
+ }
148
+ });
149
+ export {
150
+ j as _
151
+ };
@@ -0,0 +1,272 @@
1
+ import { e as R, f as $, ae as I, E as D, a as A } from "./index-CrNYgyNm.mjs";
2
+ import "./el-popper-AjIjI4wK.mjs";
3
+ import { E as M } from "./el-popover-DuRdut0P.mjs";
4
+ import { E as P } from "./el-switch-C2AFgHGW.mjs";
5
+ import { openBlock as x, createElementBlock as L, createElementVNode as b, defineComponent as z, ref as u, toRefs as F, watchEffect as N, createBlock as j, withCtx as C, createVNode as _, createTextVNode as k, toDisplayString as T, unref as B, isRef as U, Fragment as q, renderList as O, normalizeClass as Q, withModifiers as G, reactive as H } from "vue";
6
+ import { _ as J } from "./index-DjkMA-Wh.mjs";
7
+ import { E as K } from "./el-form-item-BzKoZc6I.mjs";
8
+ const W = {
9
+ viewBox: "0 0 1024 1024",
10
+ width: "1.2em",
11
+ height: "1.2em"
12
+ }, X = /* @__PURE__ */ b("path", {
13
+ fill: "currentColor",
14
+ d: "m795.904 750.72l124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704a352 352 0 0 0 0 704"
15
+ }, null, -1), Y = [
16
+ X
17
+ ];
18
+ function Z(n, a) {
19
+ return x(), L("svg", W, [...Y]);
20
+ }
21
+ const ee = { name: "ep-search", render: Z }, oe = { class: "table-list" }, ne = ["onClick"], te = { class: "table-footer" }, fe = /* @__PURE__ */ z({
22
+ __name: "index",
23
+ props: {
24
+ tableLabel: {
25
+ type: Array,
26
+ default: () => []
27
+ },
28
+ parIndex: {
29
+ type: Number,
30
+ default: () => -1
31
+ }
32
+ },
33
+ emits: ["fixedChange", "isShowChange"],
34
+ setup(n, { emit: a }) {
35
+ const i = u(), t = u();
36
+ let f = u([]);
37
+ const c = n, { parIndex: o } = F(c);
38
+ t.value = o.value, console.log(o.value);
39
+ const m = a;
40
+ function y() {
41
+ m("isShowChange");
42
+ }
43
+ function v(e) {
44
+ t.value = e, m("fixedChange", t.value);
45
+ }
46
+ function g() {
47
+ i.value = "", t.value = void 0, m("fixedChange", t.value);
48
+ }
49
+ return N(() => (i.value ? f.value = c.tableLabel.filter((e) => e.label.indexOf(i.value) !== -1) : f.value = c.tableLabel.slice(
50
+ 0,
51
+ c.tableLabel.length - 1
52
+ ), f)), (e, s) => {
53
+ const d = J, w = ee, S = R, l = P, r = $, p = M;
54
+ return x(), j(p, {
55
+ placement: "bottom-end",
56
+ width: 250,
57
+ trigger: "click"
58
+ }, {
59
+ reference: C(() => [
60
+ _(d, {
61
+ "icon-class": "列表",
62
+ class: "dropdown-left"
63
+ }),
64
+ k(" " + T(e.$t("common.tableSet")), 1)
65
+ ]),
66
+ default: C(() => [
67
+ _(S, {
68
+ modelValue: B(i),
69
+ "onUpdate:modelValue": s[0] || (s[0] = (h) => U(i) ? i.value = h : null),
70
+ placeholder: e.$t("common.searchField"),
71
+ clearable: ""
72
+ }, {
73
+ prefix: C(() => [
74
+ _(w)
75
+ ]),
76
+ _: 1
77
+ }, 8, ["modelValue", "placeholder"]),
78
+ b("ul", oe, [
79
+ (x(!0), L(q, null, O(B(f), (h, E) => (x(), L("li", {
80
+ key: E,
81
+ class: Q({ "fixed-active": E <= B(t) }),
82
+ onClick: (V) => v(E)
83
+ }, [
84
+ b("span", {
85
+ onClick: s[1] || (s[1] = G(() => {
86
+ }, ["stop", "prevent"]))
87
+ }, [
88
+ _(l, {
89
+ modelValue: h.isColumn,
90
+ "onUpdate:modelValue": (V) => h.isColumn = V,
91
+ onChange: y
92
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
93
+ ]),
94
+ b("span", null, T(h.label), 1),
95
+ b("span", null, [
96
+ _(d, { "icon-class": "固定,图钉" })
97
+ ])
98
+ ], 10, ne))), 128))
99
+ ]),
100
+ b("div", te, [
101
+ _(r, {
102
+ size: "small",
103
+ plain: "",
104
+ onClick: g
105
+ }, {
106
+ default: C(() => [
107
+ k(T(e.$t("common.reset")), 1)
108
+ ]),
109
+ _: 1
110
+ })
111
+ ])
112
+ ]),
113
+ _: 1
114
+ });
115
+ };
116
+ }
117
+ });
118
+ function me(n, a, i) {
119
+ const t = u(!1), f = u([]), c = u(0), o = H(i), m = u(), y = u(K), v = u([]);
120
+ function g() {
121
+ if (typeof t > "u" || typeof a > "u" || typeof o > "u" || typeof f > "u" || typeof c > "u") {
122
+ console.error("One or more variables are undefined.");
123
+ return;
124
+ }
125
+ t.value = !0, a.list(o).then(({ data: l }) => {
126
+ if (!l || typeof l != "object") {
127
+ console.error("Invalid data received."), t.value = !1;
128
+ return;
129
+ }
130
+ f.value = l.results, t.value = !1, c.value = l.totalSize;
131
+ }).catch((l) => {
132
+ console.error("An error occurred:", l), t.value = !1;
133
+ });
134
+ }
135
+ function e() {
136
+ o.curPage && (o.curPage = 1), g();
137
+ }
138
+ function s(l) {
139
+ I.confirm(n("common.confirmDelete"), n("common.delete"), {
140
+ // 取消按钮的文本
141
+ cancelButtonText: n("common.cancel"),
142
+ // 确认按钮的文本
143
+ confirmButtonText: n("common.confirm"),
144
+ // 确认框的类型为警告
145
+ type: "warning"
146
+ // 当用户点击确认按钮时,执行删除操作
147
+ }).then(() => {
148
+ a.del(l).then((r) => {
149
+ r.status === 200 && (D({
150
+ message: n("common.deleteSuccess"),
151
+ type: "success"
152
+ }), e());
153
+ });
154
+ }).catch((r) => {
155
+ console.error("Deletion failed:", r);
156
+ });
157
+ }
158
+ function d(l) {
159
+ if (v.value.length === 0) {
160
+ D({
161
+ message: n("common.chooseDelete"),
162
+ type: "warning"
163
+ });
164
+ return;
165
+ }
166
+ const r = v.value.map((p) => p[l]);
167
+ I.confirm(n("common.confirmBatchDelete"), n("common.delete"), {
168
+ cancelButtonText: n("common.cancel"),
169
+ confirmButtonText: n("common.confirm"),
170
+ type: "warning"
171
+ }).then(() => {
172
+ a.dels(r).then((p) => {
173
+ var h;
174
+ p.status === 200 && (D({
175
+ message: n("common.successDelete") + p.data + n("common.stripData"),
176
+ type: "success"
177
+ }), e(), (h = m.value) == null || h.tableSelection());
178
+ });
179
+ }).catch((p) => {
180
+ console.error("Deletion failed:", p);
181
+ });
182
+ }
183
+ function w(l) {
184
+ if (!a) {
185
+ console.error("API is not defined!");
186
+ return;
187
+ }
188
+ a.up(l).then((r) => {
189
+ if (!r || typeof r != "object") {
190
+ console.error("Invalid response from api.down()");
191
+ return;
192
+ }
193
+ r.status === 200 && e();
194
+ });
195
+ }
196
+ function S(l) {
197
+ if (!a) {
198
+ console.error("API is not defined!");
199
+ return;
200
+ }
201
+ a.down(l).then((r) => {
202
+ if (!r || typeof r != "object") {
203
+ console.error("Invalid response from api.down()");
204
+ return;
205
+ }
206
+ r.status === 200 && e();
207
+ });
208
+ }
209
+ return {
210
+ tableData: f,
211
+ total: c,
212
+ listLoading: t,
213
+ selectionRows: v,
214
+ getList: g,
215
+ handleQuery: e,
216
+ multipleTableRef: m,
217
+ queryFormRef: y,
218
+ deleteRecord: s,
219
+ // 删除函数
220
+ deleteRecords: d,
221
+ // 批量删除
222
+ handleMoveTop: w,
223
+ // 上移
224
+ handleMoveDown: S
225
+ // 下移
226
+ };
227
+ }
228
+ function de(n, a) {
229
+ const i = u(), t = u(n), c = A().menuTableSet;
230
+ let o = [...n];
231
+ function m() {
232
+ c.length > 0 && c.forEach((e) => {
233
+ if (e.path === a && (o = e.value, Array.isArray(o))) {
234
+ const s = o.filter((d) => d.fixed === !0).length;
235
+ i.value = s > 0 ? s - 1 : 0, console.log(i.value);
236
+ }
237
+ }), o !== void 0 && (t.value = o);
238
+ }
239
+ function y(e) {
240
+ if (!o) {
241
+ console.error("tableLabel is not defined or null!");
242
+ return;
243
+ }
244
+ e >= 0 ? o.slice(0, e + 1).forEach((d) => {
245
+ d.fixed = !0;
246
+ }) : o.slice(0, o.length - 1).forEach((s) => {
247
+ s.fixed = !1, s.isColumn = !0;
248
+ }), g();
249
+ }
250
+ function v() {
251
+ g();
252
+ }
253
+ function g() {
254
+ const e = c.find((s) => s.path === a);
255
+ e ? e.value = o : c.push({
256
+ path: a,
257
+ value: o
258
+ });
259
+ }
260
+ return {
261
+ parIndex: i,
262
+ tableArray: t,
263
+ getLocalStorageContent: m,
264
+ fixedChange: y,
265
+ isShowChange: v
266
+ };
267
+ }
268
+ export {
269
+ fe as _,
270
+ de as a,
271
+ me as u
272
+ };