@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
@@ -1,397 +0,0 @@
1
- var U = Object.defineProperty;
2
- var P = Object.getOwnPropertySymbols;
3
- var K = Object.prototype.hasOwnProperty, Z = Object.prototype.propertyIsEnumerable;
4
- var T = (e, o, t) => o in e ? U(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t, A = (e, o) => {
5
- for (var t in o || (o = {}))
6
- K.call(o, t) && T(e, t, o[t]);
7
- if (P)
8
- for (var t of P(o))
9
- Z.call(o, t) && T(e, t, o[t]);
10
- return e;
11
- };
12
- var C = (e, o, t) => new Promise((c, s) => {
13
- var m = (r) => {
14
- try {
15
- u(t.next(r));
16
- } catch (p) {
17
- s(p);
18
- }
19
- }, d = (r) => {
20
- try {
21
- u(t.throw(r));
22
- } catch (p) {
23
- s(p);
24
- }
25
- }, u = (r) => r.done ? c(r.value) : Promise.resolve(r.value).then(m, d);
26
- u((t = t.apply(e, o)).next());
27
- });
28
- import { defineComponent as J, ref as I, reactive as Q, computed as W, nextTick as X, resolveComponent as i, openBlock as k, createBlock as R, withCtx as l, createVNode as a, createTextVNode as w, createElementBlock as Y, createCommentVNode as F, normalizeProps as ee, guardReactiveProps as oe } from "vue";
29
- import { u as te } from "./useOnlineTest-e4bd8be3.mjs";
30
- import { useListPage as ne } from "/@/hooks/system/useListPage";
31
- import { BasicTable as le, TableAction as ae } from "/@/components/Table";
32
- import { BasicModal as re, useModalInner as ie, useModal as se } from "/@/components/Modal";
33
- import { BasicForm as ue, useForm as ce } from "/@/components/Form";
34
- import { defHttp as y } from "/@/utils/http/axios";
35
- import { _ as de } from "./index-1d1a6e56.mjs";
36
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
37
- import "/@/hooks/web/useMessage";
38
- import "vue-router";
39
- const me = (e, o) => y.get({ url: "/online/cgform/button/list/" + e, params: o });
40
- function D(e) {
41
- return y.delete(
42
- {
43
- url: "/online/cgform/button/deleteBatch",
44
- params: {
45
- ids: e.join(",")
46
- }
47
- },
48
- { joinParamsToUrl: !0 }
49
- );
50
- }
51
- const pe = (e, o) => o ? y.put({ url: "/online/cgform/button/edit", params: e }) : y.post({ url: "/online/cgform/button/add", params: e }), fe = [
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: o }) {
59
- if (e === "form") {
60
- let t = o.optPosition;
61
- return e + "(" + (t == "2" ? "底部" : "侧面") + ")";
62
- } else
63
- return e;
64
- }
65
- },
66
- { title: "按钮类型", align: "center", dataIndex: "optType" },
67
- { title: "排序", align: "center", dataIndex: "orderNum" },
68
- { title: "按钮图标", align: "center", dataIndex: "buttonIcon" },
69
- { title: "表达式", align: "center", dataIndex: "exp" },
70
- {
71
- title: "按钮状态",
72
- align: "center",
73
- dataIndex: "buttonStatus",
74
- customRender({ text: e }) {
75
- return e == 1 ? "激活" : "未激活";
76
- }
77
- }
78
- ], be = ({ redoModalHeight: e }) => [
79
- {
80
- label: "按钮编码",
81
- field: "buttonCode",
82
- component: "Input",
83
- required: !0,
84
- // update-begin--author:liaozhiyang---date:20240521---for:【TV360X-139】按钮编码加上正则校验
85
- dynamicRules: () => [
86
- {
87
- validator: (o, t) => new Promise((c, s) => {
88
- /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(t) ? c() : s("编码只能包含字母、数字、下划线 (_) 和美元符号 ($)且不能以数字开头");
89
- })
90
- },
91
- // update-begin--author:liaozhiyang---date:20240701---for:【TV360X-1693】自定义按钮编码排除sql和java系统内置编码
92
- {
93
- validator: (o, t) => new Promise((c, s) => {
94
- ["add", "edit", "delete", "import", "export", "query"].includes(t) ? s("属于系统内置编码") : c();
95
- })
96
- }
97
- // update-end--author:liaozhiyang---date:20240701---for:【TV360X-1693】自定义按钮编码排除sql和java系统内置编码
98
- ]
99
- // update-end--author:liaozhiyang---date:20240521---for:【TV360X-139】按钮编码加上正则校验
100
- },
101
- {
102
- label: "按钮名称",
103
- field: "buttonName",
104
- component: "Input",
105
- required: !0
106
- },
107
- {
108
- label: "按钮样式",
109
- field: "buttonStyle",
110
- component: "Select",
111
- componentProps: {
112
- options: [
113
- { label: "Link", value: "link" },
114
- { label: "Button", value: "button" },
115
- { label: "Form", value: "form" }
116
- ],
117
- // update-begin--author:liaozhiyang---date:20240618---for:【TV360X-1306】自定义按钮弹窗按钮样式切换是重置弹窗高度
118
- onChange: () => {
119
- e();
120
- }
121
- // update-end--author:liaozhiyang---date:20240618---for:【TV360X-1306】自定义按钮弹窗按钮样式切换是重置弹窗高度
122
- },
123
- defaultValue: "link"
124
- },
125
- {
126
- label: "按钮位置",
127
- field: "optPosition",
128
- component: "Select",
129
- componentProps: {
130
- allowClear: !1,
131
- options: [
132
- // { label: '侧面', value: '1' },
133
- { label: "底部", value: "2" }
134
- ]
135
- },
136
- defaultValue: "2",
137
- show: ({ model: o }) => o.buttonStyle === "form"
138
- },
139
- {
140
- label: "按钮类型",
141
- field: "optType",
142
- component: "Select",
143
- componentProps: {
144
- allowClear: !1,
145
- options: [
146
- { label: "Js", value: "js" },
147
- { label: "Action", value: "action" }
148
- ]
149
- },
150
- defaultValue: "js"
151
- },
152
- {
153
- label: "排序",
154
- field: "orderNum",
155
- component: "InputNumber",
156
- componentProps: {
157
- style: "width: 100%"
158
- }
159
- },
160
- {
161
- label: "按钮图标",
162
- field: "buttonIcon",
163
- // update-begin--author:liaozhiyang---date:20240528---for:【TV360X-136】按钮图标改成图标组件选择
164
- component: "IconPicker",
165
- componentProps: {
166
- clearSelect: !0,
167
- iconPrefixSave: !1
168
- },
169
- // update-end--author:liaozhiyang---date:20240528---for:【TV360X-136】按钮图标改成图标组件选择
170
- ifShow: ({ values: o, model: t }) => o.buttonStyle == "button" || o.buttonStyle == "form"
171
- },
172
- {
173
- label: "表达式",
174
- field: "exp",
175
- component: "Input",
176
- // update-begin--author:liaozhiyang---date:20240603---for:【TV360X-89】自定义按钮样式是link时,展示表达式配置
177
- ifShow: ({ values: o, model: t }) => o.buttonStyle == "link" ? !0 : (t.exp = "", !1)
178
- // update-end--author:liaozhiyang---date:20240603---for:【TV360X-89】自定义按钮样式是link时,展示表达式配置
179
- },
180
- {
181
- label: "按钮状态",
182
- field: "buttonStatus",
183
- component: "RadioButtonGroup",
184
- componentProps: {
185
- options: [
186
- { label: "激活", value: "1" },
187
- { label: "未激活", value: "0" }
188
- ]
189
- },
190
- defaultValue: "1"
191
- }
192
- ], ge = J({
193
- name: "CustomButtonList",
194
- components: { BasicModal: re, BasicTable: le, TableAction: ae, BasicForm: ue },
195
- emits: ["register"],
196
- setup() {
197
- const e = I(""), { doRequest: o, doDeleteRecord: t, tableContext: c } = ne({
198
- tableProps: {
199
- api: (n) => me(e.value, n),
200
- columns: fe,
201
- canResize: !1,
202
- useSearchForm: !1,
203
- beforeFetch(n) {
204
- return Object.assign(n, { column: "orderNum", order: "asc" });
205
- }
206
- }
207
- }), [s, { reload: m }, { rowSelection: d, selectedRowKeys: u }] = c, [r, { closeModal: p }] = ie((n) => C(this, null, function* () {
208
- e.value = n.row.id, m();
209
- })), { aiTestMode: B, genButtons: v } = te(), [h, b] = se(), f = I(!1), g = Q({
210
- onRegister: h,
211
- title: W(() => f != null && f.value ? "修改" : "新增"),
212
- width: 800,
213
- confirmLoading: !1,
214
- onOk: z,
215
- onCancel: b.closeModal
216
- });
217
- let _ = {};
218
- const [N, { resetFields: E, setFieldsValue: L, validate: V }] = ce({
219
- // update-begin--author:liaozhiyang---date:20240618---for:【TV360X-1306】自定义按钮弹窗按钮样式切换是重置弹窗高度
220
- schemas: be({ redoModalHeight: b.redoModalHeight }),
221
- // update-end--author:liaozhiyang---date:20240618---for:【TV360X-1306】自定义按钮弹窗按钮样式切换是重置弹窗高度
222
- showActionButtonGroup: !1
223
- });
224
- function S(n) {
225
- return C(this, null, function* () {
226
- var M;
227
- f.value = n.isUpdate, _ = A({}, (M = n.record) != null ? M : {}), b.openModal(), yield X(), yield E(), L(_);
228
- });
229
- }
230
- function $() {
231
- S({ isUpdate: !1 });
232
- }
233
- function j(n) {
234
- S({ isUpdate: !0, record: n });
235
- }
236
- function x() {
237
- p();
238
- }
239
- function O() {
240
- v(e.value);
241
- }
242
- function q() {
243
- return C(this, null, function* () {
244
- o(() => D(u.value));
245
- });
246
- }
247
- function z() {
248
- return C(this, null, function* () {
249
- try {
250
- g.confirmLoading = !0;
251
- let n = yield V();
252
- n = Object.assign({ cgformHeadId: e.value }, _, n), yield pe(n, f.value), m(), b.closeModal();
253
- } finally {
254
- g.confirmLoading = !1;
255
- }
256
- });
257
- }
258
- function G(n) {
259
- return [
260
- {
261
- label: "编辑",
262
- onClick: () => j(n)
263
- }
264
- ];
265
- }
266
- function H(n) {
267
- return [
268
- {
269
- label: "删除",
270
- popConfirm: {
271
- title: "确定删除吗?",
272
- placement: "left",
273
- confirm: () => t(() => D([n.id]))
274
- }
275
- }
276
- ];
277
- }
278
- return {
279
- onAdd: $,
280
- onBatchDelete: q,
281
- aiTestMode: B,
282
- onGenButtons: O,
283
- registerModal: r,
284
- registerTable: s,
285
- selectedRowKeys: u,
286
- rowSelection: d,
287
- onCancel: x,
288
- getTableAction: G,
289
- getDropDownAction: H,
290
- registerForm: N,
291
- formModalProps: g
292
- };
293
- }
294
- }), _e = {
295
- key: 0,
296
- style: { float: "left" }
297
- };
298
- function Ce(e, o, t, c, s, m) {
299
- const d = i("a-button"), u = i("a-icon"), r = i("a-menu-item"), p = i("a-menu"), B = i("a-dropdown"), v = i("TableAction"), h = i("BasicTable"), b = i("BasicForm"), f = i("a-spin"), g = i("BasicModal");
300
- return k(), R(g, {
301
- onRegister: e.registerModal,
302
- title: "自定义按钮",
303
- width: 1200,
304
- defaultFullscreen: "",
305
- onCancel: e.onCancel
306
- }, {
307
- footer: l(() => [
308
- a(d, { onClick: e.onCancel }, {
309
- default: l(() => [
310
- w("关闭")
311
- ]),
312
- _: 1
313
- }, 8, ["onClick"]),
314
- e.aiTestMode ? (k(), Y("div", _e, [
315
- a(d, { onClick: e.onGenButtons }, {
316
- default: l(() => [
317
- w("生成测试数据")
318
- ]),
319
- _: 1
320
- }, 8, ["onClick"])
321
- ])) : F("", !0)
322
- ]),
323
- default: l(() => [
324
- a(h, {
325
- onRegister: e.registerTable,
326
- rowSelection: e.rowSelection
327
- }, {
328
- tableTitle: l(() => [
329
- a(d, {
330
- onClick: e.onAdd,
331
- type: "primary",
332
- preIcon: "ant-design:plus"
333
- }, {
334
- default: l(() => [
335
- w("新增")
336
- ]),
337
- _: 1
338
- }, 8, ["onClick"]),
339
- e.selectedRowKeys.length > 0 ? (k(), R(B, { key: 0 }, {
340
- overlay: l(() => [
341
- a(p, null, {
342
- default: l(() => [
343
- a(r, {
344
- key: "1",
345
- onClick: e.onBatchDelete
346
- }, {
347
- default: l(() => [
348
- a(u, { type: "delete" }),
349
- w(" 删除 ")
350
- ]),
351
- _: 1
352
- }, 8, ["onClick"])
353
- ]),
354
- _: 1
355
- })
356
- ]),
357
- default: l(() => [
358
- a(d, { style: { "margin-left": "8px" } }, {
359
- default: l(() => [
360
- w(" 批量操作 "),
361
- a(u, { type: "down" })
362
- ]),
363
- _: 1
364
- })
365
- ]),
366
- _: 1
367
- })) : F("", !0)
368
- ]),
369
- action: l(({ record: _ }) => [
370
- a(v, {
371
- actions: e.getTableAction(_),
372
- dropDownActions: e.getDropDownAction(_)
373
- }, null, 8, ["actions", "dropDownActions"])
374
- ]),
375
- _: 1
376
- }, 8, ["onRegister", "rowSelection"]),
377
- a(g, ee(oe(e.formModalProps)), {
378
- default: l(() => [
379
- a(f, {
380
- spinning: e.formModalProps.confirmLoading
381
- }, {
382
- default: l(() => [
383
- a(b, { onRegister: e.registerForm }, null, 8, ["onRegister"])
384
- ]),
385
- _: 1
386
- }, 8, ["spinning"])
387
- ]),
388
- _: 1
389
- }, 16)
390
- ]),
391
- _: 1
392
- }, 8, ["onRegister", "onCancel"]);
393
- }
394
- const Re = /* @__PURE__ */ de(ge, [["render", Ce]]);
395
- export {
396
- Re as default
397
- };
@@ -1,49 +0,0 @@
1
- import { computed as c, openBlock as n, createElementBlock as l, normalizeClass as p, createElementVNode as t, createCommentVNode as d, pushScopeId as r, popScopeId as _ } from "vue";
2
- import { useAppInject as m } from "/@/hooks/web/useAppInject";
3
- import { _ as v } from "./index-1d1a6e56.mjs";
4
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
5
- import "/@/hooks/web/useMessage";
6
- import "vue-router";
7
- const f = {
8
- name: "JModalTip",
9
- props: {
10
- visible: {
11
- type: Boolean,
12
- default: !1
13
- }
14
- },
15
- emits: ["save", "cancel"],
16
- setup(e) {
17
- const { getIsMobile: o } = m();
18
- return {
19
- flag: c(() => e.visible),
20
- getIsMobile: o
21
- };
22
- }
23
- }, u = (e) => (r("data-v-dc9246f4"), e = e(), _(), e), g = { class: "container" }, I = { class: "outer" }, b = { class: "inner" }, $ = /* @__PURE__ */ u(() => /* @__PURE__ */ t("span", { class: "tip" }, "正在修改表单数据 ···", -1));
24
- function k(e, o, i, s, M, y) {
25
- return s.flag ? (n(), l("div", {
26
- key: 0,
27
- class: p(["jeecg-update-tip-bar", { mobile: s.getIsMobile }])
28
- }, [
29
- t("div", g, [
30
- t("div", I, [
31
- t("div", b, [
32
- $,
33
- t("div", {
34
- class: "cancel",
35
- onClick: o[0] || (o[0] = (a) => e.$emit("cancel"))
36
- }, "取消"),
37
- t("div", {
38
- class: "save",
39
- onClick: o[1] || (o[1] = (a) => e.$emit("save"))
40
- }, "保存")
41
- ])
42
- ])
43
- ])
44
- ], 2)) : d("", !0);
45
- }
46
- const j = /* @__PURE__ */ v(f, [["render", k], ["__scopeId", "data-v-dc9246f4"]]);
47
- export {
48
- j as default
49
- };
@@ -1,86 +0,0 @@
1
- var m = (r, l, o) => new Promise((i, n) => {
2
- var c = (e) => {
3
- try {
4
- a(o.next(e));
5
- } catch (t) {
6
- n(t);
7
- }
8
- }, s = (e) => {
9
- try {
10
- a(o.throw(e));
11
- } catch (t) {
12
- n(t);
13
- }
14
- }, a = (e) => e.done ? i(e.value) : Promise.resolve(e.value).then(c, s);
15
- a((o = o.apply(r, l)).next());
16
- });
17
- import { defineComponent as g, resolveComponent as _, openBlock as w, createBlock as b, withCtx as S, createElementVNode as T } from "vue";
18
- import { defHttp as h } from "/@/utils/http/axios";
19
- import { BasicTable as C } from "/@/components/Table";
20
- import { useListPage as R } from "/@/hooks/system/useListPage";
21
- import { _ as x } from "./index-1d1a6e56.mjs";
22
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
23
- import "/@/hooks/web/useMessage";
24
- import "vue-router";
25
- const B = g({
26
- name: "LeftRole",
27
- components: { BasicTable: C },
28
- emits: ["select"],
29
- setup(r, { emit: l }) {
30
- const { tableContext: o, createMessage: i } = R({
31
- tableProps: {
32
- api: a,
33
- rowKey: "id",
34
- size: "small",
35
- bordered: !0,
36
- columns: [
37
- { title: "角色编码", align: "center", dataIndex: "roleCode" },
38
- { title: "角色名称", align: "center", dataIndex: "roleName" }
39
- ],
40
- rowSelection: {
41
- type: "radio",
42
- onChange(t) {
43
- t.length > 0 && l("select", t[0]);
44
- }
45
- },
46
- canResize: !1,
47
- clickToRowSelect: !0,
48
- useSearchForm: !1,
49
- showActionColumn: !1,
50
- showTableSetting: !1
51
- }
52
- }), [n, { clearSelectedRowKeys: c }, { rowSelection: s }] = o;
53
- function a(t) {
54
- return m(this, null, function* () {
55
- let { code: p, success: f, result: u, message: d } = yield h.get(
56
- {
57
- url: "/sys/role/list",
58
- params: t
59
- },
60
- { isTransformResponse: !1 }
61
- );
62
- return f ? u : (p === 510 && i.warning(d), {});
63
- });
64
- }
65
- function e() {
66
- c();
67
- }
68
- return { rowSelection: s, registerTable: n, clearSelected: e };
69
- }
70
- }), $ = /* @__PURE__ */ T("span", null, null, -1);
71
- function y(r, l, o, i, n, c) {
72
- const s = _("BasicTable");
73
- return w(), b(s, {
74
- onRegister: r.registerTable,
75
- rowSelection: r.rowSelection
76
- }, {
77
- tableTop: S(() => [
78
- $
79
- ]),
80
- _: 1
81
- }, 8, ["onRegister", "rowSelection"]);
82
- }
83
- const E = /* @__PURE__ */ x(B, [["render", y]]);
84
- export {
85
- E as default
86
- };