@jeecg/online 3.7.1-RC → 3.7.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 (142) hide show
  1. package/AccountLoginForm-d2fed52f.mjs +254 -0
  2. package/AiModal-fbe4b68a.mjs +84 -0
  3. package/AppForgetPassword-3b3bec82.mjs +310 -0
  4. package/AppLogin-cd2e2a87.mjs +287 -0
  5. package/AppLoginHeader-9b5be678.mjs +27 -0
  6. package/AppNameEmail-b4e32ae8.mjs +180 -0
  7. package/AppRegister-7117b66a.mjs +303 -0
  8. package/AppTenant-5817729b.mjs +373 -0
  9. package/AppThirdForm-d14fb5e5.mjs +189 -0
  10. package/AuthButtonConfig-5e3b6d72.mjs +156 -0
  11. package/AuthButtonTree-7b4ec967.mjs +165 -0
  12. package/{AuthDataConfig-5c3a8e6b.mjs → AuthDataConfig-48ee9228.mjs} +23 -23
  13. package/{AuthDataTree-dd7a1240.mjs → AuthDataTree-02b3ba05.mjs} +43 -43
  14. package/{AuthFieldConfig-9f6fa06c.mjs → AuthFieldConfig-562cc6b6.mjs} +71 -71
  15. package/AuthFieldTree-2d458c0c.mjs +232 -0
  16. package/{AuthManagerDrawer-76f15e8d.mjs → AuthManagerDrawer-38299230.mjs} +6 -6
  17. package/{AuthSetterModal-f5d2e87f.mjs → AuthSetterModal-78b06703.mjs} +9 -9
  18. package/BuiltInButtonList-bb6cf95c.mjs +10 -0
  19. package/BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs +338 -0
  20. package/CgformAddressModal-1b9cbe19.mjs +260 -0
  21. package/CgformCopyList-580bba0f.mjs +252 -0
  22. package/{CgformModal-21c5c387.mjs → CgformModal-12951453.mjs} +190 -194
  23. package/{CgreportModal-edefa8e3.mjs → CgreportModal-bfeb93ed.mjs} +181 -168
  24. package/{CheckDictTable-1bc8322d.mjs → CheckDictTable-3c1e59e0.mjs} +3 -3
  25. package/CodeFileListModal-71752603.mjs +159 -0
  26. package/{CodeFileViewModal-2fe911f4.mjs → CodeFileViewModal-eb803769.mjs} +66 -66
  27. package/CodeGeneratorModal-2fe1e920.mjs +281 -0
  28. package/CustomButtonList-22b5cdb3.mjs +274 -0
  29. package/{DBAttributeTable-285d40db.mjs → DBAttributeTable-eb25565c.mjs} +3 -3
  30. package/{DbToOnlineModal-5dcb67c3.mjs → DbToOnlineModal-049b4bbd.mjs} +53 -54
  31. package/{DetailForm-deecbf3d.mjs → DetailForm-c127c27f.mjs} +5 -5
  32. package/DropMenuItem-b1a8f47d.mjs +44 -0
  33. package/{EnhanceJavaModal-45c66cd5.mjs → EnhanceJavaModal-1a4d696b.mjs} +62 -62
  34. package/{EnhanceJsHistory-fab3102e.mjs → EnhanceJsHistory-48cf43ad.mjs} +35 -35
  35. package/{EnhanceJsModal-175357a1.mjs → EnhanceJsModal-0e1f15f8.mjs} +102 -102
  36. package/{EnhanceSqlModal-7ea1b300.mjs → EnhanceSqlModal-6a1aa471.mjs} +67 -67
  37. package/ErrorTip-bb616e32.mjs +7 -0
  38. package/ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs +60 -0
  39. package/{ExtendConfigModal-a89ae052.mjs → ExtendConfigModal-37af21a5.mjs} +2 -2
  40. package/{FieldExtendJsonModal-32135634.mjs → FieldExtendJsonModal-9441e08e.mjs} +2 -2
  41. package/{FileSelectModal-1643c8b9.mjs → FileSelectModal-04490919.mjs} +23 -23
  42. package/{ForeignKeyTable-7f7e28a7.mjs → ForeignKeyTable-06300a47.mjs} +3 -3
  43. package/{IndexTable-cdcc2b48.mjs → IndexTable-79bddd5c.mjs} +3 -3
  44. package/JModalTip-192fafa1.mjs +49 -0
  45. package/{JOnlineSearchSelect-22aae934.mjs → JOnlineSearchSelect-9abcf657.mjs} +1 -1
  46. package/{LeftDepart-d5615ed9.mjs → LeftDepart-35d78655.mjs} +1 -1
  47. package/LeftRole-9d88976d.mjs +86 -0
  48. package/{LeftUser-22baa378.mjs → LeftUser-04c89aea.mjs} +30 -30
  49. package/{LinkTableConfigModal-9242d750.mjs → LinkTableConfigModal-5f94ef13.mjs} +43 -31
  50. package/{LinkTableFieldConfigModal-24adc50c.mjs → LinkTableFieldConfigModal-40753de5.mjs} +1 -1
  51. package/{LinkTableListPiece-f3a8e0d7.mjs → LinkTableListPiece-179035c7.mjs} +1 -1
  52. package/{ModalFormDemo-711418db.mjs → ModalFormDemo-3a85920c.mjs} +1 -1
  53. package/OnlCgformErpList-8fd15fc1.mjs +488 -0
  54. package/OnlCgformErpSubTable-3515150b.mjs +441 -0
  55. package/{OnlCgformInnerSubTable-6c23781f.mjs → OnlCgformInnerSubTable-13e888c6.mjs} +38 -38
  56. package/OnlCgformInnerTableList-2e8f853c.mjs +474 -0
  57. package/OnlCgformTabList-583ac15f.mjs +424 -0
  58. package/OnlineAutoList-36ec0957.mjs +513 -0
  59. package/OnlineAutoModal-c0743caf.mjs +260 -0
  60. package/OnlineAutoTreeList-1cd718be.mjs +523 -0
  61. package/OnlineCustomModal-661ee850.mjs +232 -0
  62. package/{OnlineDetailModal-d5895734.mjs → OnlineDetailModal-785e848e.mjs} +74 -65
  63. package/OnlineForm-c1fb38eb.mjs +1012 -0
  64. package/{OnlineFormDetail-022ca117.mjs → OnlineFormDetail-50186870.mjs} +7 -7
  65. package/{OnlineFormUrlAdd-9715d70a.mjs → OnlineFormUrlAdd-905bf251.mjs} +9 -9
  66. package/{OnlineFormUrlDetail-8f864b1a.mjs → OnlineFormUrlDetail-a9dd2bfa.mjs} +11 -11
  67. package/{OnlineFormUrlEdit-ac985b36.mjs → OnlineFormUrlEdit-b8941f05.mjs} +9 -9
  68. package/OnlineFormUrlSuccess-ecaf6a21.mjs +59 -0
  69. package/OnlineQueryForm-ca6186a3.mjs +484 -0
  70. package/{OnlineSearchFormItem-6c557343.mjs → OnlineSearchFormItem-5c503a51.mjs} +82 -82
  71. package/{OnlineSelectCascade-05c40fef.mjs → OnlineSelectCascade-a3e686b3.mjs} +1 -1
  72. package/{OnlineSubFormDetail-58e896ce.mjs → OnlineSubFormDetail-be1ad3b9.mjs} +52 -53
  73. package/{OnlineTabAutoModal-47b18ad6.mjs → OnlineTabAutoModal-fb59b573.mjs} +108 -95
  74. package/{OnlineTabDetailModal-82de1465.mjs → OnlineTabDetailModal-4b9c4838.mjs} +36 -36
  75. package/OnlineTabForm-89389384.mjs +814 -0
  76. package/{OnlineTabFormDetail-8d0c40c0.mjs → OnlineTabFormDetail-72173ae4.mjs} +17 -17
  77. package/{PageAttributeTable-25e3b7da.mjs → PageAttributeTable-345b97fe.mjs} +108 -108
  78. package/PhoneLoginForm-8ca7e2d4.mjs +214 -0
  79. package/{ProcessOnlineForm-148632fe.mjs → ProcessOnlineForm-485b5679.mjs} +32 -32
  80. package/{QueryTable-f7bfca7f.mjs → QueryTable-f0a88d78.mjs} +3 -3
  81. package/SetSwitchOptions-cdcb22a1.mjs +62 -0
  82. package/ShareAddView-f713c0a5.mjs +86 -0
  83. package/ShareEditView-691764ad.mjs +92 -0
  84. package/ShareView-df344a8d.mjs +80 -0
  85. package/ShareView.vue_vue_type_script_setup_true_lang-560459c9.mjs +162 -0
  86. package/SingleView-ad0287d6.mjs +68 -0
  87. package/SingleView.vue_vue_type_style_index_0_lang-ce96670b.mjs +131 -0
  88. package/SuperQuery-2b293e3b.mjs +974 -0
  89. package/{SuperQueryValComponent-7ad86d4b.mjs → SuperQueryValComponent-5a9ccfd4.mjs} +1 -1
  90. package/{SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs → SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs} +11 -11
  91. package/{auth.api-ea1d33d4.mjs → auth.api-53df4c33.mjs} +17 -17
  92. package/{auth.data-511e5197.mjs → auth.data-626c5083.mjs} +16 -12
  93. package/{cgform.data-475d4984.mjs → cgform.data-0ca62d09.mjs} +4 -1
  94. package/{enhance.data-a67572e1.mjs → enhance.data-6601ff44.mjs} +1 -1
  95. package/index-181f8344.mjs +219 -0
  96. package/index-19eaef11.mjs +11 -0
  97. package/{index-30e0e923.mjs → index-3c7392a4.mjs} +272 -262
  98. package/{index-f30613d1.mjs → index-3ccda826.mjs} +59 -59
  99. package/index-5e89258d.mjs +8 -0
  100. package/index-93341e02.mjs +110 -0
  101. package/index-bef7fe2d.mjs +74 -0
  102. package/index-d6f9ada7.mjs +135 -0
  103. package/index-f3683351.mjs +57 -0
  104. package/main.index.js +1 -1
  105. package/package.json +1 -1
  106. package/shareStore-7de6c7a6.mjs +67 -0
  107. package/style.css +1 -1
  108. package/useCgformList-13c8aab7.mjs +378 -0
  109. package/useExtendComponent-3f5734ca.mjs +4459 -0
  110. package/useListButton-ee23874a.mjs +719 -0
  111. package/{useSchemas-a9c75b0f.mjs → useSchemas-f1819e54.mjs} +72 -39
  112. package/{useTableSync-d7e9f18d.mjs → useTableSync-075826a1.mjs} +1 -1
  113. package/utils-9fce7606.mjs +16 -0
  114. package/AiModal-6de335e3.mjs +0 -84
  115. package/AuthButtonConfig-89763932.mjs +0 -154
  116. package/AuthButtonTree-2d87d0b3.mjs +0 -157
  117. package/AuthFieldTree-e326fc38.mjs +0 -232
  118. package/CgformCopyList-365b3e8f.mjs +0 -251
  119. package/CodeFileListModal-24601898.mjs +0 -159
  120. package/CodeGeneratorModal-f09fe903.mjs +0 -282
  121. package/CustomButtonList-f07bc695.mjs +0 -397
  122. package/JModalTip-b055ab60.mjs +0 -49
  123. package/LeftRole-2ed8a2bf.mjs +0 -86
  124. package/OnlCgformErpList-58acdfa0.mjs +0 -470
  125. package/OnlCgformErpSubTable-9b1e1938.mjs +0 -426
  126. package/OnlCgformInnerTableList-4b5e14ed.mjs +0 -458
  127. package/OnlCgformTabList-019ad753.mjs +0 -408
  128. package/OnlineAutoList-48589d09.mjs +0 -493
  129. package/OnlineAutoModal-c2928847.mjs +0 -239
  130. package/OnlineAutoTreeList-3baa1d00.mjs +0 -503
  131. package/OnlineCustomModal-9e17b6ce.mjs +0 -232
  132. package/OnlineForm-9f1153ba.mjs +0 -985
  133. package/OnlineFormUrlSuccess-3dfc54ab.mjs +0 -59
  134. package/OnlineQueryForm-eedb9a60.mjs +0 -466
  135. package/OnlineTabForm-27655c83.mjs +0 -817
  136. package/SetSwitchOptions-b2af757f.mjs +0 -62
  137. package/SuperQuery-a8592995.mjs +0 -967
  138. package/index-1d1a6e56.mjs +0 -57
  139. package/useCgformList-f41d4dc1.mjs +0 -426
  140. package/useExtendComponent-dcae5c78.mjs +0 -4399
  141. package/useListButton-bfac4ecf.mjs +0 -697
  142. /package/{OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs} +0 -0
@@ -0,0 +1,232 @@
1
+ var E = (e, n, d) => new Promise((C, y) => {
2
+ var p = (u) => {
3
+ try {
4
+ l(d.next(u));
5
+ } catch (s) {
6
+ y(s);
7
+ }
8
+ }, a = (u) => {
9
+ try {
10
+ l(d.throw(u));
11
+ } catch (s) {
12
+ y(s);
13
+ }
14
+ }, l = (u) => u.done ? C(u.value) : Promise.resolve(u.value).then(p, a);
15
+ l((d = d.apply(e, n)).next());
16
+ });
17
+ import { defineComponent as P, ref as f, computed as R, watch as V, unref as $, resolveComponent as m, openBlock as _, createElementBlock as A, createBlock as b, Fragment as q, createElementVNode as H, createVNode as r, withCtx as h, createTextVNode as k } from "vue";
18
+ import { useMessage as J } from "/@/hooks/web/useMessage";
19
+ import { m as L, n as j, s as G } from "./auth.api-53df4c33.mjs";
20
+ import { DownCircleOutlined as Q, HomeOutlined as W, UpCircleOutlined as X, UndoOutlined as Y, CheckOutlined as Z } from "@ant-design/icons-vue";
21
+ import { _ as ee } from "./index-f3683351.mjs";
22
+ import "/@/utils/http/axios";
23
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
24
+ import "vue-router";
25
+ const ne = P({
26
+ name: "AuthFieldTree",
27
+ components: {
28
+ DownCircleOutlined: Q,
29
+ HomeOutlined: W,
30
+ UpCircleOutlined: X,
31
+ UndoOutlined: Y,
32
+ CheckOutlined: Z
33
+ },
34
+ props: {
35
+ cgformId: { type: String, required: !0 }
36
+ },
37
+ setup(e) {
38
+ const { createMessage: n } = J(), d = f(""), C = f(1), y = f(!0), p = f([]), a = f([]), l = f([]), u = f([]), s = f(""), O = R(() => !d.value);
39
+ V(() => e.cgformId, v, { immediate: !0 });
40
+ function v() {
41
+ return E(this, null, function* () {
42
+ if (!e.cgformId)
43
+ return;
44
+ let t = yield L(e.cgformId, C.value), o = [], i = [];
45
+ t.forEach((c) => {
46
+ i.includes(c.code) || (i.push(c.code), o.push({ key: c.code, title: c.title }));
47
+ });
48
+ for (let c of o) {
49
+ let I = [];
50
+ for (let F of t)
51
+ if (c.key === F.code) {
52
+ let M = D(F);
53
+ I.push({ key: F.id, title: M });
54
+ }
55
+ c.children = I;
56
+ }
57
+ u.value = o, p.value = [...i], l.value = i;
58
+ });
59
+ }
60
+ function D(t) {
61
+ let o = "";
62
+ return t.page == 3 ? o += "列表" : t.page == 5 && (o += "表单"), t.control == 3 ? o += "可编辑" : t.control == 5 && (o += "可见"), o;
63
+ }
64
+ function g(t, o) {
65
+ return E(this, null, function* () {
66
+ d.value = t, s.value = o, a.value = [], yield v();
67
+ let i = yield j({
68
+ roleId: t,
69
+ cgformId: e.cgformId,
70
+ type: C.value,
71
+ authMode: o
72
+ });
73
+ a.value = i.map((c) => c.authId);
74
+ });
75
+ }
76
+ function K() {
77
+ d.value = "", v();
78
+ }
79
+ function w() {
80
+ v(), g(d.value, s.value);
81
+ }
82
+ function T() {
83
+ return E(this, null, function* () {
84
+ let t = a.value.filter((o) => l.value.indexOf(o) < 0);
85
+ yield G(d.value, e.cgformId, {
86
+ authId: JSON.stringify(t),
87
+ authMode: s.value
88
+ }), n.success("保存成功");
89
+ });
90
+ }
91
+ function S() {
92
+ p.value = [...l.value];
93
+ }
94
+ function x() {
95
+ p.value = [];
96
+ }
97
+ function U(t) {
98
+ p.value = t, y.value = !1;
99
+ }
100
+ function z() {
101
+ d.value = "", a.value = [];
102
+ }
103
+ function B() {
104
+ a.value = [];
105
+ }
106
+ function N() {
107
+ const t = function(o) {
108
+ for (let i of o)
109
+ a.value.push(i.key), i.children && i.children.length > 0 && t.call(null, i.children);
110
+ };
111
+ a.value = [], t.call(null, $(u));
112
+ }
113
+ return {
114
+ loadChecked: g,
115
+ clear: z,
116
+ expandedKeys: p,
117
+ autoExpandParent: y,
118
+ checkedKeys: a,
119
+ treeData: u,
120
+ disabled: O,
121
+ onSave: T,
122
+ onExpand: U,
123
+ clearChecked: K,
124
+ onCloseAll: x,
125
+ onExpandAll: S,
126
+ onRefresh: w,
127
+ onClearSelected: B,
128
+ onSelectAll: N
129
+ };
130
+ }
131
+ });
132
+ const te = { class: "onl-auth-tree-btns" };
133
+ function oe(e, n, d, C, y, p) {
134
+ const a = m("a-empty"), l = m("a-button"), u = m("DownCircleOutlined"), s = m("UpCircleOutlined"), O = m("CheckOutlined"), v = m("UndoOutlined"), D = m("a-tree");
135
+ return _(), A("div", null, [
136
+ e.disabled ? (_(), b(a, {
137
+ key: 0,
138
+ description: "请先选中左侧角色/部门/用户"
139
+ })) : e.treeData.length === 0 ? (_(), b(a, {
140
+ key: 1,
141
+ description: "无权限信息"
142
+ })) : (_(), A(q, { key: 2 }, [
143
+ H("div", te, [
144
+ r(l, {
145
+ onClick: e.onRefresh,
146
+ size: "small",
147
+ type: "primary",
148
+ preIcon: "ant-design:redo",
149
+ ghost: ""
150
+ }, {
151
+ default: h(() => n[1] || (n[1] = [
152
+ k("刷新")
153
+ ])),
154
+ _: 1
155
+ }, 8, ["onClick"]),
156
+ r(l, {
157
+ onClick: e.onExpandAll,
158
+ size: "small",
159
+ type: "primary",
160
+ ghost: ""
161
+ }, {
162
+ default: h(() => [
163
+ r(u),
164
+ n[2] || (n[2] = k("展开"))
165
+ ]),
166
+ _: 1
167
+ }, 8, ["onClick"]),
168
+ r(l, {
169
+ onClick: e.onCloseAll,
170
+ size: "small",
171
+ type: "primary",
172
+ ghost: ""
173
+ }, {
174
+ default: h(() => [
175
+ r(s),
176
+ n[3] || (n[3] = k("折叠"))
177
+ ]),
178
+ _: 1
179
+ }, 8, ["onClick"]),
180
+ r(l, {
181
+ onClick: e.onSave,
182
+ size: "small",
183
+ type: "primary",
184
+ preIcon: "ant-design:save",
185
+ ghost: ""
186
+ }, {
187
+ default: h(() => n[4] || (n[4] = [
188
+ k("保存")
189
+ ])),
190
+ _: 1
191
+ }, 8, ["onClick"]),
192
+ r(l, {
193
+ onClick: e.onSelectAll,
194
+ size: "small",
195
+ type: "primary",
196
+ ghost: ""
197
+ }, {
198
+ default: h(() => [
199
+ r(O),
200
+ n[5] || (n[5] = k("全选"))
201
+ ]),
202
+ _: 1
203
+ }, 8, ["onClick"]),
204
+ r(l, {
205
+ onClick: e.onClearSelected,
206
+ size: "small",
207
+ type: "primary",
208
+ ghost: ""
209
+ }, {
210
+ default: h(() => [
211
+ r(v),
212
+ n[6] || (n[6] = k("重置"))
213
+ ]),
214
+ _: 1
215
+ }, 8, ["onClick"])
216
+ ]),
217
+ r(D, {
218
+ checkable: "",
219
+ checkedKeys: e.checkedKeys,
220
+ "onUpdate:checkedKeys": n[0] || (n[0] = (g) => e.checkedKeys = g),
221
+ expandedKeys: e.expandedKeys,
222
+ autoExpandParent: e.autoExpandParent,
223
+ treeData: e.treeData,
224
+ onExpand: e.onExpand
225
+ }, null, 8, ["checkedKeys", "expandedKeys", "autoExpandParent", "treeData", "onExpand"])
226
+ ], 64))
227
+ ]);
228
+ }
229
+ const fe = /* @__PURE__ */ ee(ne, [["render", oe], ["__scopeId", "data-v-e6dabb1d"]]);
230
+ export {
231
+ fe as default
232
+ };
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as b, ref as n, computed as C, resolveComponent as a, openBlock as g, createBlock as A, withCtx as u, createVNode as o, createElementBlock as D, Fragment as B, createCommentVNode as F } from "vue";
2
2
  import { BasicDrawer as I, useDrawerInner as _ } from "/@/components/Drawer";
3
- import v from "./AuthFieldConfig-9f6fa06c.mjs";
4
- import w from "./AuthButtonConfig-89763932.mjs";
5
- import T from "./AuthDataConfig-5c3a8e6b.mjs";
6
- import { _ as k } from "./index-1d1a6e56.mjs";
3
+ import v from "./AuthFieldConfig-562cc6b6.mjs";
4
+ import w from "./AuthButtonConfig-5e3b6d72.mjs";
5
+ import T from "./AuthDataConfig-48ee9228.mjs";
6
+ import { _ as k } from "./index-f3683351.mjs";
7
7
  import "/@/components/Table";
8
- import "./auth.api-ea1d33d4.mjs";
8
+ import "./auth.api-53df4c33.mjs";
9
9
  import "/@/utils/http/axios";
10
- import "./auth.data-511e5197.mjs";
10
+ import "./auth.data-626c5083.mjs";
11
11
  import "/@/utils/index";
12
12
  import "lodash-es";
13
13
  import "/@/components/Modal";
@@ -26,23 +26,23 @@ var T = (e, t, o) => new Promise((p, l) => {
26
26
  }, c = (f) => f.done ? p(f.value) : Promise.resolve(f.value).then(n, i);
27
27
  c((o = o.apply(e, t)).next());
28
28
  });
29
- import P from "./LeftRole-2ed8a2bf.mjs";
30
- import j from "./LeftDepart-d5615ed9.mjs";
31
- import q from "./LeftUser-22baa378.mjs";
32
- import z from "./AuthFieldTree-e326fc38.mjs";
33
- import G from "./AuthButtonTree-2d87d0b3.mjs";
34
- import H from "./AuthDataTree-dd7a1240.mjs";
29
+ import P from "./LeftRole-9d88976d.mjs";
30
+ import j from "./LeftDepart-35d78655.mjs";
31
+ import q from "./LeftUser-04c89aea.mjs";
32
+ import z from "./AuthFieldTree-2d458c0c.mjs";
33
+ import G from "./AuthButtonTree-7b4ec967.mjs";
34
+ import H from "./AuthDataTree-02b3ba05.mjs";
35
35
  import { defineComponent as J, ref as d, computed as Q, nextTick as L, resolveComponent as s, openBlock as b, createBlock as w, withCtx as u, createVNode as a, createElementBlock as W, Fragment as X, createCommentVNode as K } from "vue";
36
36
  import { BasicModal as Y, useModalInner as Z } from "/@/components/Modal";
37
- import { _ as x } from "./index-1d1a6e56.mjs";
37
+ import { _ as x } from "./index-f3683351.mjs";
38
38
  import "/@/utils/http/axios";
39
39
  import "/@/components/Table";
40
40
  import "/@/hooks/system/useListPage";
41
41
  import "/@/api/common/api";
42
42
  import "/@/hooks/web/useMessage";
43
- import "./auth.api-ea1d33d4.mjs";
43
+ import "./auth.api-53df4c33.mjs";
44
44
  import "@ant-design/icons-vue";
45
- import "./auth.data-511e5197.mjs";
45
+ import "./auth.data-626c5083.mjs";
46
46
  import "/@/utils/index";
47
47
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
48
48
  import "vue-router";
@@ -0,0 +1,10 @@
1
+ import { _ as o } from "./BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs";
2
+ import "vue";
3
+ import "/@/hooks/system/useListPage";
4
+ import "/@/components/Table";
5
+ import "/@/components/Modal";
6
+ import "/@/components/Form";
7
+ import "/@/utils/http/axios";
8
+ export {
9
+ o as default
10
+ };
@@ -0,0 +1,338 @@
1
+ var D = Object.defineProperty, E = Object.defineProperties;
2
+ var G = Object.getOwnPropertyDescriptors;
3
+ var R = Object.getOwnPropertySymbols;
4
+ var Z = Object.prototype.hasOwnProperty, J = Object.prototype.propertyIsEnumerable;
5
+ var h = (e, t, n) => t in e ? D(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, y = (e, t) => {
6
+ for (var n in t || (t = {}))
7
+ Z.call(t, n) && h(e, n, t[n]);
8
+ if (R)
9
+ for (var n of R(t))
10
+ J.call(t, n) && h(e, n, t[n]);
11
+ return e;
12
+ }, P = (e, t) => E(e, G(t));
13
+ var S = (e, t, n) => new Promise((a, u) => {
14
+ var d = (r) => {
15
+ try {
16
+ m(n.next(r));
17
+ } catch (f) {
18
+ u(f);
19
+ }
20
+ }, v = (r) => {
21
+ try {
22
+ m(n.throw(r));
23
+ } catch (f) {
24
+ u(f);
25
+ }
26
+ }, m = (r) => r.done ? a(r.value) : Promise.resolve(r.value).then(d, v);
27
+ m((n = n.apply(e, t)).next());
28
+ });
29
+ import { defineComponent as K, computed as I, ref as Q, reactive as W, resolveComponent as M, openBlock as X, createBlock as Y, unref as i, withCtx as s, createVNode as c, createTextVNode as ee, normalizeProps as te, guardReactiveProps as oe, createElementVNode as ne, nextTick as le } from "vue";
30
+ import { useListPage as re } from "/@/hooks/system/useListPage";
31
+ import { BasicTable as ie, TableAction as ae } from "/@/components/Table";
32
+ import { useModalInner as ue, useModal as se, BasicModal as B } from "/@/components/Modal";
33
+ import { useForm as ce, BasicForm as de } from "/@/components/Form";
34
+ import { defHttp as p } from "/@/utils/http/axios";
35
+ const Ce = (e, t) => p.get({ url: "/online/cgform/button/list/" + e, params: t });
36
+ function Re(e) {
37
+ return p.delete(
38
+ {
39
+ url: "/online/cgform/button/deleteBatch",
40
+ params: {
41
+ ids: e.join(",")
42
+ }
43
+ },
44
+ { joinParamsToUrl: !0 }
45
+ );
46
+ }
47
+ const me = (e, t) => t ? p.put({ url: "/online/cgform/button/edit", params: e }) : p.post({ url: "/online/cgform/button/add", params: e }), fe = (e, t) => p.get({ url: "/online/cgform/button/builtInList/" + e, params: t });
48
+ function pe({ text: e }) {
49
+ return e ? "ant-design:" + e : "";
50
+ }
51
+ const be = [
52
+ { title: "按钮编码", align: "center", dataIndex: "buttonCode" },
53
+ { title: "按钮名称", align: "center", dataIndex: "buttonName" },
54
+ {
55
+ title: "按钮样式",
56
+ align: "center",
57
+ dataIndex: "buttonStyle",
58
+ customRender({ text: e, record: t }) {
59
+ if (e === "form") {
60
+ let n = t.optPosition;
61
+ return e + "(" + (n == "2" ? "底部" : "侧面") + ")";
62
+ } else
63
+ return e;
64
+ }
65
+ },
66
+ { title: "按钮类型", align: "center", dataIndex: "optType" },
67
+ { title: "排序", align: "center", dataIndex: "orderNum" },
68
+ {
69
+ title: "按钮图标",
70
+ align: "center",
71
+ dataIndex: "buttonIcon",
72
+ customRender: ({ text: e }) => pe({ text: e })
73
+ },
74
+ { title: "表达式", align: "center", dataIndex: "exp" },
75
+ {
76
+ title: "按钮状态",
77
+ align: "center",
78
+ dataIndex: "buttonStatus",
79
+ customRender({ text: e }) {
80
+ return e == 1 ? "激活" : "未激活";
81
+ }
82
+ }
83
+ ], ge = ({ redoModalHeight: e }) => [
84
+ {
85
+ label: "按钮编码",
86
+ field: "buttonCode",
87
+ component: "Input",
88
+ required: !0,
89
+ // update-begin--author:liaozhiyang---date:20240521---for:【TV360X-139】按钮编码加上正则校验
90
+ dynamicRules: () => [
91
+ {
92
+ validator: (t, n) => new Promise((a, u) => {
93
+ /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(n) ? a() : u("编码只能包含字母、数字、下划线 (_) 和美元符号 ($)且不能以数字开头");
94
+ })
95
+ },
96
+ // update-begin--author:liaozhiyang---date:20240701---for:【TV360X-1693】自定义按钮编码排除sql和java系统内置编码
97
+ {
98
+ validator: (t, n) => new Promise((a, u) => {
99
+ ["add", "edit", "detail", "delete", "batch_delete", "import", "export", "query", "reset", "bpm", "super_query", "form_confirm"].includes(n) ? u("不可使用内置按钮编码,请在“管理内置按钮”中修改内置按钮") : a();
100
+ })
101
+ }
102
+ // update-end--author:liaozhiyang---date:20240701---for:【TV360X-1693】自定义按钮编码排除sql和java系统内置编码
103
+ ]
104
+ // update-end--author:liaozhiyang---date:20240521---for:【TV360X-139】按钮编码加上正则校验
105
+ },
106
+ {
107
+ label: "按钮名称",
108
+ field: "buttonName",
109
+ component: "Input",
110
+ required: !0
111
+ },
112
+ {
113
+ label: "按钮样式",
114
+ field: "buttonStyle",
115
+ component: "Select",
116
+ componentProps: {
117
+ options: [
118
+ { label: "Link", value: "link" },
119
+ { label: "Button", value: "button" },
120
+ { label: "Form", value: "form" }
121
+ ],
122
+ // update-begin--author:liaozhiyang---date:20240618---for:【TV360X-1306】自定义按钮弹窗按钮样式切换是重置弹窗高度
123
+ onChange: () => {
124
+ e();
125
+ }
126
+ // update-end--author:liaozhiyang---date:20240618---for:【TV360X-1306】自定义按钮弹窗按钮样式切换是重置弹窗高度
127
+ },
128
+ defaultValue: "link"
129
+ },
130
+ {
131
+ label: "按钮位置",
132
+ field: "optPosition",
133
+ component: "Select",
134
+ componentProps: {
135
+ allowClear: !1,
136
+ options: [
137
+ // { label: '侧面', value: '1' },
138
+ { label: "底部", value: "2" }
139
+ ]
140
+ },
141
+ defaultValue: "2",
142
+ show: ({ model: t }) => t.buttonStyle === "form"
143
+ },
144
+ {
145
+ label: "按钮类型",
146
+ field: "optType",
147
+ component: "Select",
148
+ componentProps: {
149
+ allowClear: !1,
150
+ options: [
151
+ { label: "Js", value: "js" },
152
+ { label: "Action", value: "action" }
153
+ ]
154
+ },
155
+ defaultValue: "js"
156
+ },
157
+ {
158
+ label: "排序",
159
+ field: "orderNum",
160
+ component: "InputNumber",
161
+ componentProps: {
162
+ style: "width: 100%"
163
+ }
164
+ },
165
+ {
166
+ label: "按钮图标",
167
+ field: "buttonIcon",
168
+ // update-begin--author:liaozhiyang---date:20240528---for:【TV360X-136】按钮图标改成图标组件选择
169
+ component: "IconPicker",
170
+ componentProps: {
171
+ clearSelect: !0,
172
+ iconPrefixSave: !1
173
+ },
174
+ // update-end--author:liaozhiyang---date:20240528---for:【TV360X-136】按钮图标改成图标组件选择
175
+ ifShow: ({ values: t, model: n }) => t.buttonStyle == "button" || t.buttonStyle == "form"
176
+ },
177
+ {
178
+ label: "表达式",
179
+ field: "exp",
180
+ component: "Input",
181
+ // update-begin--author:liaozhiyang---date:20240603---for:【TV360X-89】自定义按钮样式是link时,展示表达式配置
182
+ ifShow: ({ values: t, model: n }) => t.buttonStyle == "link" ? !0 : (n.exp = "", !1)
183
+ // update-end--author:liaozhiyang---date:20240603---for:【TV360X-89】自定义按钮样式是link时,展示表达式配置
184
+ },
185
+ {
186
+ label: "按钮状态",
187
+ field: "buttonStatus",
188
+ component: "RadioButtonGroup",
189
+ componentProps: {
190
+ options: [
191
+ { label: "激活", value: "1" },
192
+ { label: "未激活", value: "0" }
193
+ ]
194
+ },
195
+ defaultValue: "1"
196
+ }
197
+ ], _e = { style: { "margin-top": "20px" } }, he = /* @__PURE__ */ K({
198
+ __name: "BuiltInButtonList",
199
+ props: {
200
+ record: {
201
+ type: Object,
202
+ required: !0
203
+ }
204
+ },
205
+ emits: ["register"],
206
+ setup(e, { emit: t }) {
207
+ const n = e, a = I(() => {
208
+ var o;
209
+ return (o = n.record) == null ? void 0 : o.id;
210
+ }), u = I(() => {
211
+ var o;
212
+ return (o = n.record) == null ? void 0 : o.tableType;
213
+ }), d = I(() => u.value === 1), { tableContext: v } = re({
214
+ tableProps: {
215
+ api: (o) => S(this, null, function* () {
216
+ const l = yield fe(a.value, o);
217
+ return d.value ? l.filter((x) => !x.buttonCode.includes("sub_")) : l;
218
+ }),
219
+ columns: be.filter((o) => !["buttonStyle", "optType", "orderNum", "exp"].includes(o.dataIndex)),
220
+ canResize: !1,
221
+ useSearchForm: !1,
222
+ pagination: !1
223
+ }
224
+ }), [m, { reload: r }, { rowSelection: f }] = v, [T, { closeModal: N }] = ue(() => r()), [k, b] = se(), g = Q(!1), _ = W({
225
+ onRegister: k,
226
+ title: I(() => g != null && g.value ? "修改" : "新增"),
227
+ width: 600,
228
+ centered: !0,
229
+ confirmLoading: !1,
230
+ onOk: H,
231
+ onCancel: b.closeModal
232
+ });
233
+ let w = {};
234
+ const F = [
235
+ ...ge({ redoModalHeight: b.redoModalHeight })
236
+ ].filter((o) => ["buttonCode", "buttonName", "buttonIcon", "buttonStatus"].includes(o.field)).map((o) => o.field === "buttonCode" ? P(y({}, o), {
237
+ dynamicRules: () => [],
238
+ dynamicDisabled: () => !0
239
+ }) : o.field === "buttonIcon" ? P(y({}, o), {
240
+ ifShow: () => !0,
241
+ // 以下按钮不允许设置图标
242
+ dynamicDisabled: ({ values: l }) => ["bpm", "edit", "detail", "delete"].includes(l.buttonCode)
243
+ }) : o), [L, { resetFields: V, setFieldsValue: j, validate: A }] = ce({
244
+ // update-begin--author:liaozhiyang---date:20240618---for:【TV360X-1306】自定义按钮弹窗按钮样式切换是重置弹窗高度
245
+ schemas: F,
246
+ // update-end--author:liaozhiyang---date:20240618---for:【TV360X-1306】自定义按钮弹窗按钮样式切换是重置弹窗高度
247
+ showActionButtonGroup: !1
248
+ });
249
+ function q(o) {
250
+ return S(this, null, function* () {
251
+ var l;
252
+ g.value = o.isUpdate, w = y({}, (l = o.record) != null ? l : {}), b.openModal(), yield le(), yield V(), j(w);
253
+ });
254
+ }
255
+ function z(o) {
256
+ q({ isUpdate: !0, record: o });
257
+ }
258
+ function C() {
259
+ N();
260
+ }
261
+ function H() {
262
+ return S(this, null, function* () {
263
+ try {
264
+ _.confirmLoading = !0;
265
+ let o = yield A();
266
+ o = Object.assign({ cgformHeadId: a.value }, w, o);
267
+ const l = o.id != null;
268
+ yield me(o, l), r(), b.closeModal();
269
+ } finally {
270
+ _.confirmLoading = !1;
271
+ }
272
+ });
273
+ }
274
+ function O(o) {
275
+ return [
276
+ {
277
+ label: "编辑",
278
+ onClick: () => z(o)
279
+ }
280
+ ];
281
+ }
282
+ return (o, l) => {
283
+ const x = M("a-button"), U = M("a-spin");
284
+ return X(), Y(i(B), {
285
+ onRegister: i(T),
286
+ title: "内置按钮",
287
+ width: 1200,
288
+ onCancel: C
289
+ }, {
290
+ footer: s(() => [
291
+ c(x, { onClick: C }, {
292
+ default: s(() => l[0] || (l[0] = [
293
+ ee("关闭")
294
+ ])),
295
+ _: 1
296
+ })
297
+ ]),
298
+ default: s(() => [
299
+ c(i(ie), {
300
+ onRegister: i(m),
301
+ rowSelection: i(f)
302
+ }, {
303
+ action: s(({ record: $ }) => [
304
+ c(i(ae), {
305
+ actions: O($)
306
+ }, null, 8, ["actions"])
307
+ ]),
308
+ _: 1
309
+ }, 8, ["onRegister", "rowSelection"]),
310
+ c(i(B), te(oe(_)), {
311
+ default: s(() => [
312
+ c(U, {
313
+ spinning: _.confirmLoading
314
+ }, {
315
+ default: s(() => [
316
+ ne("div", _e, [
317
+ c(i(de), { onRegister: i(L) }, null, 8, ["onRegister"])
318
+ ])
319
+ ]),
320
+ _: 1
321
+ }, 8, ["spinning"])
322
+ ]),
323
+ _: 1
324
+ }, 16)
325
+ ]),
326
+ _: 1
327
+ }, 8, ["onRegister"]);
328
+ };
329
+ }
330
+ });
331
+ export {
332
+ he as _,
333
+ be as c,
334
+ Re as d,
335
+ ge as f,
336
+ Ce as l,
337
+ me as s
338
+ };