@jeecg/online 3.5.3-beta2 → 3.5.3-vite4
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.
- package/AuthButtonConfig-2f71787c.mjs +125 -0
- package/AuthButtonTree-d73bccf5.mjs +156 -0
- package/AuthDataConfig-32cf23d2.mjs +212 -0
- package/AuthDataTree-03d62d3f.mjs +139 -0
- package/AuthFieldConfig-b1217a0c.mjs +139 -0
- package/AuthFieldTree-888e04a9.mjs +232 -0
- package/AuthManagerDrawer-f127b8a2.mjs +114 -0
- package/AuthSetterModal-37da78ed.mjs +261 -0
- package/CgformCopyList-3adab58f.mjs +245 -0
- package/CgformModal-6938d8c2.mjs +613 -0
- package/CgreportModal-77ec8c17.mjs +12 -0
- package/CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs +567 -0
- package/CheckDictTable-414313f2.mjs +211 -0
- package/CodeFileListModal-4831ce3d.mjs +158 -0
- package/CodeFileViewModal-5990dac4.mjs +244 -0
- package/CodeGeneratorModal-7df9e25d.mjs +234 -0
- package/CustomButtonList-1c9bd859.mjs +363 -0
- package/DBAttributeTable-cd1c41e5.mjs +473 -0
- package/DbToOnlineModal-dc5d2030.mjs +160 -0
- package/DetailForm-e4538e7a.mjs +446 -0
- package/EnhanceJavaModal-7f53d2ca.mjs +260 -0
- package/EnhanceJsHistory-c30805ce.mjs +184 -0
- package/EnhanceJsModal-0b133341.mjs +233 -0
- package/EnhanceSqlModal-33a94c83.mjs +259 -0
- package/ExtendConfigModal-60f2cf86.mjs +111 -0
- package/FieldExtendJsonModal-48f7d67f.mjs +220 -0
- package/FileSelectModal-64aaf623.mjs +91 -0
- package/ForeignKeyTable-cb1abd1d.mjs +69 -0
- package/IndexTable-4e94cd1f.mjs +89 -0
- package/JModalTip-abe1515a.mjs +46 -0
- package/JOnlineSearchSelect-5608a5cf.mjs +94 -0
- package/LeftDepart-ca7a7375.mjs +82 -0
- package/LeftRole-d0fa8398.mjs +86 -0
- package/LeftUser-0c88c240.mjs +105 -0
- package/LinkTableConfigModal-77d7c0b9.mjs +230 -0
- package/LinkTableFieldConfigModal-c5689ab0.mjs +178 -0
- package/LinkTableListPiece-34266919.mjs +34 -0
- package/ModalFormDemo-0eeea994.mjs +78 -0
- package/OnlCgformErpList-7a0388d8.mjs +425 -0
- package/OnlCgformErpSubTable-fc6ade76.mjs +388 -0
- package/OnlineAutoList-85e6a30d.mjs +472 -0
- package/OnlineAutoModal-2a146238.mjs +206 -0
- package/OnlineAutoTreeList-f8d0e100.mjs +495 -0
- package/OnlineCustomModal-456a85a6.mjs +227 -0
- package/OnlineDetailModal-f967f080.mjs +177 -0
- package/OnlineForm-630a22c2.mjs +778 -0
- package/OnlineFormDetail-1b216792.mjs +296 -0
- package/OnlineQueryForm-1c5949a7.mjs +378 -0
- package/OnlineSearchFormItem-7c2ea9ed.mjs +352 -0
- package/OnlineSelectCascade-c7baf52b.mjs +160 -0
- package/OnlineSubFormDetail-0aa4966c.mjs +140 -0
- package/PageAttributeTable-811185fd.mjs +404 -0
- package/ProcessOnlineForm-27be6f6f.mjs +177 -0
- package/QueryTable-4ba771ef.mjs +115 -0
- package/SuperQuery-3821f984.mjs +845 -0
- package/SuperQueryValComponent-471110b5.mjs +8 -0
- package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +101 -0
- package/auth.api-d3a6c4b3.mjs +39 -0
- package/auth.data-8be5c9e3.mjs +141 -0
- package/{cgform.data.js → cgform.data-cbdd88c3.mjs} +93 -62
- package/constant-fe20103a.mjs +6 -0
- package/enhance.api-138e6826.mjs +104 -0
- package/enhance.data-efc7e155.mjs +175 -0
- package/index-074b92e5.mjs +236 -0
- package/index-6a09a912.mjs +58 -0
- package/index-9d32ae88.mjs +313 -0
- package/main.index.js +7 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-2d6a5955.mjs +388 -0
- package/useExtendComponent-48d37d9b.mjs +3919 -0
- package/useListButton-cef1371a.mjs +656 -0
- package/useOnlinePopEvent-e9a042f8.mjs +19 -0
- package/useOnlineTest-0df0ae86.mjs +43 -0
- package/useSchemas-fc8d97ce.mjs +669 -0
- package/useTableSync-dc333087.mjs +83 -0
- package/AuthButtonConfig.js +0 -147
- package/AuthButtonTree.js +0 -183
- package/AuthDataConfig.js +0 -246
- package/AuthDataTree.js +0 -160
- package/AuthFieldConfig.js +0 -170
- package/AuthFieldTree.js +0 -281
- package/AuthManagerDrawer.js +0 -125
- package/AuthSetterModal.js +0 -316
- package/CgformCopyList.js +0 -266
- package/CgformModal.js +0 -780
- package/CgreportModal.js +0 -667
- package/CheckDictTable.js +0 -242
- package/CodeFileListModal.js +0 -175
- package/CodeFileViewModal.js +0 -325
- package/CodeGeneratorModal.js +0 -297
- package/CustomButtonList.js +0 -410
- package/DBAttributeTable.js +0 -526
- package/DbToOnlineModal.js +0 -192
- package/DetailForm.js +0 -608
- package/EnhanceJavaModal.js +0 -298
- package/EnhanceJsHistory.js +0 -229
- package/EnhanceJsModal.js +0 -293
- package/EnhanceSqlModal.js +0 -299
- package/ExtendConfigModal.js +0 -151
- package/FieldExtendJsonModal.js +0 -283
- package/FileSelectModal.js +0 -102
- package/ForeignKeyTable.js +0 -79
- package/IndexTable.js +0 -97
- package/JModalTip.js +0 -54
- package/JOnlineSearchSelect.js +0 -115
- package/LICENSE +0 -9
- package/LeftDepart.js +0 -96
- package/LeftRole.js +0 -98
- package/LeftUser.js +0 -117
- package/LinkTableConfigModal.js +0 -289
- package/LinkTableFieldConfigModal.js +0 -218
- package/LinkTableListPiece.js +0 -36
- package/ModalFormDemo.js +0 -85
- package/OnlineAutoList.js +0 -524
- package/OnlineAutoModal.js +0 -226
- package/OnlineAutoTreeList.js +0 -553
- package/OnlineCustomModal.js +0 -286
- package/OnlineDetailModal.js +0 -190
- package/OnlineForm.js +0 -1018
- package/OnlineFormDetail.js +0 -347
- package/OnlineQueryForm.js +0 -484
- package/OnlineSearchFormItem.js +0 -436
- package/OnlineSelectCascade.js +0 -228
- package/OnlineSubFormDetail.js +0 -166
- package/PageAttributeTable.js +0 -486
- package/ProcessOnlineForm.js +0 -208
- package/QueryTable.js +0 -129
- package/SuperQuery.js +0 -1021
- package/SuperQueryValComponent.js +0 -9
- package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -162
- package/_arrayPush.js +0 -278
- package/_baseClone.js +0 -471
- package/_baseSlice.js +0 -18
- package/_commonjsHelpers.js +0 -5
- package/_flatRest.js +0 -174
- package/auth.api.js +0 -43
- package/auth.data.js +0 -142
- package/clipboard.js +0 -565
- package/enhance.api.js +0 -129
- package/enhance.data.js +0 -196
- package/index.js +0 -87
- package/index2.js +0 -340
- package/index3.js +0 -264
- package/isArray.js +0 -47
- package/omit.js +0 -60
- package/pick.js +0 -68
- package/toString.js +0 -31
- package/useCgformList.js +0 -470
- package/useExtendComponent.js +0 -5205
- package/useListButton.js +0 -923
- package/useOnlineTest.js +0 -44
- package/useSchemas.js +0 -653
- package/useTableSync.js +0 -117
package/CustomButtonList.js
DELETED
|
@@ -1,410 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
-
var __spreadValues = (a, b) => {
|
|
7
|
-
for (var prop in b || (b = {}))
|
|
8
|
-
if (__hasOwnProp.call(b, prop))
|
|
9
|
-
__defNormalProp(a, prop, b[prop]);
|
|
10
|
-
if (__getOwnPropSymbols)
|
|
11
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
-
if (__propIsEnum.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
}
|
|
15
|
-
return a;
|
|
16
|
-
};
|
|
17
|
-
var __async = (__this, __arguments, generator) => {
|
|
18
|
-
return new Promise((resolve, reject) => {
|
|
19
|
-
var fulfilled = (value) => {
|
|
20
|
-
try {
|
|
21
|
-
step(generator.next(value));
|
|
22
|
-
} catch (e) {
|
|
23
|
-
reject(e);
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
var rejected = (value) => {
|
|
27
|
-
try {
|
|
28
|
-
step(generator.throw(value));
|
|
29
|
-
} catch (e) {
|
|
30
|
-
reject(e);
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
34
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
import { defineComponent, ref, reactive, computed, resolveComponent, openBlock, createBlock, withCtx, createVNode, createTextVNode, createElementBlock, createCommentVNode, normalizeProps, guardReactiveProps, nextTick } from "vue";
|
|
38
|
-
import { u as useOnlineTest } from "./useOnlineTest.js";
|
|
39
|
-
import { useListPage } from "/@/hooks/system/useListPage";
|
|
40
|
-
import { BasicTable, TableAction } from "/@/components/Table";
|
|
41
|
-
import { BasicModal, useModalInner, useModal } from "/@/components/Modal";
|
|
42
|
-
import { BasicForm, useForm } from "/@/components/Form";
|
|
43
|
-
import { defHttp } from "/@/utils/http/axios";
|
|
44
|
-
import { _ as _export_sfc } from "./index.js";
|
|
45
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
46
|
-
import "/@/hooks/web/useMessage";
|
|
47
|
-
import "vue-router";
|
|
48
|
-
const list = (code, params) => defHttp.get({ url: "/online/cgform/button/list/" + code, params });
|
|
49
|
-
function doBatchDelete(idList) {
|
|
50
|
-
return defHttp.delete(
|
|
51
|
-
{
|
|
52
|
-
url: "/online/cgform/button/deleteBatch",
|
|
53
|
-
params: {
|
|
54
|
-
ids: idList.join(",")
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
{ joinParamsToUrl: true }
|
|
58
|
-
);
|
|
59
|
-
}
|
|
60
|
-
const saveOrUpdate = (params, isUpdate) => {
|
|
61
|
-
if (isUpdate) {
|
|
62
|
-
return defHttp.put({ url: "/online/cgform/button/edit", params });
|
|
63
|
-
} else {
|
|
64
|
-
return defHttp.post({ url: "/online/cgform/button/add", params });
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
const columns = [
|
|
68
|
-
{ title: "\u6309\u94AE\u7F16\u7801", align: "center", dataIndex: "buttonCode" },
|
|
69
|
-
{ title: "\u6309\u94AE\u540D\u79F0", align: "center", dataIndex: "buttonName" },
|
|
70
|
-
{
|
|
71
|
-
title: "\u6309\u94AE\u6837\u5F0F",
|
|
72
|
-
align: "center",
|
|
73
|
-
dataIndex: "buttonStyle",
|
|
74
|
-
customRender({ text, record }) {
|
|
75
|
-
if (text === "form") {
|
|
76
|
-
let p = record.optPosition;
|
|
77
|
-
return text + "(" + (p == "2" ? "\u5E95\u90E8" : "\u4FA7\u9762") + ")";
|
|
78
|
-
} else {
|
|
79
|
-
return text;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
{ title: "\u6309\u94AE\u7C7B\u578B", align: "center", dataIndex: "optType" },
|
|
84
|
-
{ title: "\u6392\u5E8F", align: "center", dataIndex: "orderNum" },
|
|
85
|
-
{ title: "\u6309\u94AE\u56FE\u6807", align: "center", dataIndex: "buttonIcon" },
|
|
86
|
-
{ title: "\u8868\u8FBE\u5F0F", align: "center", dataIndex: "exp" },
|
|
87
|
-
{
|
|
88
|
-
title: "\u6309\u94AE\u72B6\u6001",
|
|
89
|
-
align: "center",
|
|
90
|
-
dataIndex: "buttonStatus",
|
|
91
|
-
customRender({ text }) {
|
|
92
|
-
if (text == 1) {
|
|
93
|
-
return "\u6FC0\u6D3B";
|
|
94
|
-
} else {
|
|
95
|
-
return "\u672A\u6FC0\u6D3B";
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
];
|
|
100
|
-
const formSchemas = [
|
|
101
|
-
{
|
|
102
|
-
label: "\u6309\u94AE\u7F16\u7801",
|
|
103
|
-
field: "buttonCode",
|
|
104
|
-
component: "Input",
|
|
105
|
-
required: true
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
label: "\u6309\u94AE\u540D\u79F0",
|
|
109
|
-
field: "buttonName",
|
|
110
|
-
component: "Input",
|
|
111
|
-
required: true
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
label: "\u6309\u94AE\u6837\u5F0F",
|
|
115
|
-
field: "buttonStyle",
|
|
116
|
-
component: "Select",
|
|
117
|
-
componentProps: {
|
|
118
|
-
options: [
|
|
119
|
-
{ label: "Link", value: "link" },
|
|
120
|
-
{ label: "Button", value: "button" },
|
|
121
|
-
{ label: "Form", value: "form" }
|
|
122
|
-
]
|
|
123
|
-
},
|
|
124
|
-
defaultValue: "link"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
label: "\u6309\u94AE\u4F4D\u7F6E",
|
|
128
|
-
field: "optPosition",
|
|
129
|
-
component: "Select",
|
|
130
|
-
componentProps: {
|
|
131
|
-
options: [
|
|
132
|
-
{ label: "\u4FA7\u9762", value: "1" },
|
|
133
|
-
{ label: "\u5E95\u90E8", value: "2" }
|
|
134
|
-
]
|
|
135
|
-
},
|
|
136
|
-
defaultValue: "2",
|
|
137
|
-
show: ({ model }) => model.buttonStyle === "form"
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
label: "\u6309\u94AE\u7C7B\u578B",
|
|
141
|
-
field: "optType",
|
|
142
|
-
component: "Select",
|
|
143
|
-
componentProps: {
|
|
144
|
-
options: [
|
|
145
|
-
{ label: "Js", value: "js" },
|
|
146
|
-
{ label: "Action", value: "action" }
|
|
147
|
-
]
|
|
148
|
-
},
|
|
149
|
-
defaultValue: "js"
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
label: "\u6392\u5E8F",
|
|
153
|
-
field: "orderNum",
|
|
154
|
-
component: "InputNumber",
|
|
155
|
-
componentProps: {
|
|
156
|
-
style: "width: 100%"
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
label: "\u6309\u94AE\u56FE\u6807",
|
|
161
|
-
field: "buttonIcon",
|
|
162
|
-
component: "Input",
|
|
163
|
-
helpMessage: "a-icon type"
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
label: "\u8868\u8FBE\u5F0F",
|
|
167
|
-
field: "exp",
|
|
168
|
-
component: "Input"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
label: "\u6309\u94AE\u72B6\u6001",
|
|
172
|
-
field: "buttonStatus",
|
|
173
|
-
component: "RadioButtonGroup",
|
|
174
|
-
componentProps: {
|
|
175
|
-
options: [
|
|
176
|
-
{ label: "\u6FC0\u6D3B", value: "1" },
|
|
177
|
-
{ label: "\u672A\u6FC0\u6D3B", value: "0" }
|
|
178
|
-
]
|
|
179
|
-
},
|
|
180
|
-
defaultValue: "1"
|
|
181
|
-
}
|
|
182
|
-
];
|
|
183
|
-
const _sfc_main = defineComponent({
|
|
184
|
-
name: "CustomButtonList",
|
|
185
|
-
components: { BasicModal, BasicTable, TableAction, BasicForm },
|
|
186
|
-
emits: ["register"],
|
|
187
|
-
setup() {
|
|
188
|
-
const code = ref("");
|
|
189
|
-
const { doRequest, doDeleteRecord, tableContext } = useListPage({
|
|
190
|
-
tableProps: {
|
|
191
|
-
api: (params) => list(code.value, params),
|
|
192
|
-
columns,
|
|
193
|
-
canResize: false,
|
|
194
|
-
useSearchForm: false,
|
|
195
|
-
beforeFetch(params) {
|
|
196
|
-
return Object.assign(params, { column: "orderNum", order: "asc" });
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
});
|
|
200
|
-
const [registerTable, { reload }, { rowSelection, selectedRowKeys }] = tableContext;
|
|
201
|
-
const [registerModal, { closeModal }] = useModalInner((data) => __async(this, null, function* () {
|
|
202
|
-
code.value = data.row.id;
|
|
203
|
-
reload();
|
|
204
|
-
}));
|
|
205
|
-
const { aiTestMode, genButtons } = useOnlineTest();
|
|
206
|
-
const [registerFormModal, formModal] = useModal();
|
|
207
|
-
const isUpdate = ref(false);
|
|
208
|
-
const formModalProps = reactive({
|
|
209
|
-
onRegister: registerFormModal,
|
|
210
|
-
title: computed(() => (isUpdate == null ? void 0 : isUpdate.value) ? "\u4FEE\u6539" : "\u65B0\u589E"),
|
|
211
|
-
width: 800,
|
|
212
|
-
confirmLoading: false,
|
|
213
|
-
onOk: onSubmit,
|
|
214
|
-
onCancel: formModal.closeModal
|
|
215
|
-
});
|
|
216
|
-
let formRecord = {};
|
|
217
|
-
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
|
|
218
|
-
schemas: formSchemas,
|
|
219
|
-
showActionButtonGroup: false
|
|
220
|
-
});
|
|
221
|
-
function openFormModal(data) {
|
|
222
|
-
return __async(this, null, function* () {
|
|
223
|
-
var _a;
|
|
224
|
-
isUpdate.value = data.isUpdate;
|
|
225
|
-
formRecord = __spreadValues({}, (_a = data.record) != null ? _a : {});
|
|
226
|
-
formModal.openModal();
|
|
227
|
-
yield nextTick();
|
|
228
|
-
yield resetFields();
|
|
229
|
-
setFieldsValue(formRecord);
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
function onAdd() {
|
|
233
|
-
openFormModal({ isUpdate: false });
|
|
234
|
-
}
|
|
235
|
-
function onEdit(record) {
|
|
236
|
-
openFormModal({ isUpdate: true, record });
|
|
237
|
-
}
|
|
238
|
-
function onCancel() {
|
|
239
|
-
closeModal();
|
|
240
|
-
}
|
|
241
|
-
function onGenButtons() {
|
|
242
|
-
genButtons(code.value);
|
|
243
|
-
}
|
|
244
|
-
function onBatchDelete() {
|
|
245
|
-
return __async(this, null, function* () {
|
|
246
|
-
doRequest(() => doBatchDelete(selectedRowKeys.value));
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
function onSubmit() {
|
|
250
|
-
return __async(this, null, function* () {
|
|
251
|
-
try {
|
|
252
|
-
formModalProps.confirmLoading = true;
|
|
253
|
-
let values = yield validate();
|
|
254
|
-
values = Object.assign({ cgformHeadId: code.value }, formRecord, values);
|
|
255
|
-
yield saveOrUpdate(values, isUpdate.value);
|
|
256
|
-
reload();
|
|
257
|
-
formModal.closeModal();
|
|
258
|
-
} finally {
|
|
259
|
-
formModalProps.confirmLoading = false;
|
|
260
|
-
}
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
|
-
function getTableAction(record) {
|
|
264
|
-
return [
|
|
265
|
-
{
|
|
266
|
-
label: "\u7F16\u8F91",
|
|
267
|
-
onClick: () => onEdit(record)
|
|
268
|
-
}
|
|
269
|
-
];
|
|
270
|
-
}
|
|
271
|
-
function getDropDownAction(record) {
|
|
272
|
-
return [
|
|
273
|
-
{
|
|
274
|
-
label: "\u5220\u9664",
|
|
275
|
-
popConfirm: {
|
|
276
|
-
title: "\u786E\u5B9A\u5220\u9664\u5417\uFF1F",
|
|
277
|
-
placement: "left",
|
|
278
|
-
confirm: () => doDeleteRecord(() => doBatchDelete([record.id]))
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
];
|
|
282
|
-
}
|
|
283
|
-
return {
|
|
284
|
-
onAdd,
|
|
285
|
-
onBatchDelete,
|
|
286
|
-
aiTestMode,
|
|
287
|
-
onGenButtons,
|
|
288
|
-
registerModal,
|
|
289
|
-
registerTable,
|
|
290
|
-
selectedRowKeys,
|
|
291
|
-
rowSelection,
|
|
292
|
-
onCancel,
|
|
293
|
-
getTableAction,
|
|
294
|
-
getDropDownAction,
|
|
295
|
-
registerForm,
|
|
296
|
-
formModalProps
|
|
297
|
-
};
|
|
298
|
-
}
|
|
299
|
-
});
|
|
300
|
-
const _hoisted_1 = {
|
|
301
|
-
key: 0,
|
|
302
|
-
style: { "float": "left" }
|
|
303
|
-
};
|
|
304
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
305
|
-
const _component_a_button = resolveComponent("a-button");
|
|
306
|
-
const _component_a_icon = resolveComponent("a-icon");
|
|
307
|
-
const _component_a_menu_item = resolveComponent("a-menu-item");
|
|
308
|
-
const _component_a_menu = resolveComponent("a-menu");
|
|
309
|
-
const _component_a_dropdown = resolveComponent("a-dropdown");
|
|
310
|
-
const _component_TableAction = resolveComponent("TableAction");
|
|
311
|
-
const _component_BasicTable = resolveComponent("BasicTable");
|
|
312
|
-
const _component_BasicForm = resolveComponent("BasicForm");
|
|
313
|
-
const _component_a_spin = resolveComponent("a-spin");
|
|
314
|
-
const _component_BasicModal = resolveComponent("BasicModal");
|
|
315
|
-
return openBlock(), createBlock(_component_BasicModal, {
|
|
316
|
-
onRegister: _ctx.registerModal,
|
|
317
|
-
title: "\u81EA\u5B9A\u4E49\u6309\u94AE",
|
|
318
|
-
width: 1200,
|
|
319
|
-
defaultFullscreen: "",
|
|
320
|
-
onCancel: _ctx.onCancel
|
|
321
|
-
}, {
|
|
322
|
-
footer: withCtx(() => [
|
|
323
|
-
createVNode(_component_a_button, { onClick: _ctx.onCancel }, {
|
|
324
|
-
default: withCtx(() => [
|
|
325
|
-
createTextVNode("\u5173\u95ED")
|
|
326
|
-
]),
|
|
327
|
-
_: 1
|
|
328
|
-
}, 8, ["onClick"]),
|
|
329
|
-
_ctx.aiTestMode ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
330
|
-
createVNode(_component_a_button, { onClick: _ctx.onGenButtons }, {
|
|
331
|
-
default: withCtx(() => [
|
|
332
|
-
createTextVNode("\u751F\u6210\u6D4B\u8BD5\u6570\u636E")
|
|
333
|
-
]),
|
|
334
|
-
_: 1
|
|
335
|
-
}, 8, ["onClick"])
|
|
336
|
-
])) : createCommentVNode("", true)
|
|
337
|
-
]),
|
|
338
|
-
default: withCtx(() => [
|
|
339
|
-
createVNode(_component_BasicTable, {
|
|
340
|
-
onRegister: _ctx.registerTable,
|
|
341
|
-
rowSelection: _ctx.rowSelection
|
|
342
|
-
}, {
|
|
343
|
-
tableTitle: withCtx(() => [
|
|
344
|
-
createVNode(_component_a_button, {
|
|
345
|
-
onClick: _ctx.onAdd,
|
|
346
|
-
type: "primary",
|
|
347
|
-
preIcon: "ant-design:plus"
|
|
348
|
-
}, {
|
|
349
|
-
default: withCtx(() => [
|
|
350
|
-
createTextVNode("\u65B0\u589E")
|
|
351
|
-
]),
|
|
352
|
-
_: 1
|
|
353
|
-
}, 8, ["onClick"]),
|
|
354
|
-
_ctx.selectedRowKeys.length > 0 ? (openBlock(), createBlock(_component_a_dropdown, { key: 0 }, {
|
|
355
|
-
overlay: withCtx(() => [
|
|
356
|
-
createVNode(_component_a_menu, null, {
|
|
357
|
-
default: withCtx(() => [
|
|
358
|
-
createVNode(_component_a_menu_item, {
|
|
359
|
-
key: "1",
|
|
360
|
-
onClick: _ctx.onBatchDelete
|
|
361
|
-
}, {
|
|
362
|
-
default: withCtx(() => [
|
|
363
|
-
createVNode(_component_a_icon, { type: "delete" }),
|
|
364
|
-
createTextVNode(" \u5220\u9664 ")
|
|
365
|
-
]),
|
|
366
|
-
_: 1
|
|
367
|
-
}, 8, ["onClick"])
|
|
368
|
-
]),
|
|
369
|
-
_: 1
|
|
370
|
-
})
|
|
371
|
-
]),
|
|
372
|
-
default: withCtx(() => [
|
|
373
|
-
createVNode(_component_a_button, { style: { "margin-left": "8px" } }, {
|
|
374
|
-
default: withCtx(() => [
|
|
375
|
-
createTextVNode(" \u6279\u91CF\u64CD\u4F5C "),
|
|
376
|
-
createVNode(_component_a_icon, { type: "down" })
|
|
377
|
-
]),
|
|
378
|
-
_: 1
|
|
379
|
-
})
|
|
380
|
-
]),
|
|
381
|
-
_: 1
|
|
382
|
-
})) : createCommentVNode("", true)
|
|
383
|
-
]),
|
|
384
|
-
action: withCtx(({ record }) => [
|
|
385
|
-
createVNode(_component_TableAction, {
|
|
386
|
-
actions: _ctx.getTableAction(record),
|
|
387
|
-
dropDownActions: _ctx.getDropDownAction(record)
|
|
388
|
-
}, null, 8, ["actions", "dropDownActions"])
|
|
389
|
-
]),
|
|
390
|
-
_: 1
|
|
391
|
-
}, 8, ["onRegister", "rowSelection"]),
|
|
392
|
-
createVNode(_component_BasicModal, normalizeProps(guardReactiveProps(_ctx.formModalProps)), {
|
|
393
|
-
default: withCtx(() => [
|
|
394
|
-
createVNode(_component_a_spin, {
|
|
395
|
-
spinning: _ctx.formModalProps.confirmLoading
|
|
396
|
-
}, {
|
|
397
|
-
default: withCtx(() => [
|
|
398
|
-
createVNode(_component_BasicForm, { onRegister: _ctx.registerForm }, null, 8, ["onRegister"])
|
|
399
|
-
]),
|
|
400
|
-
_: 1
|
|
401
|
-
}, 8, ["spinning"])
|
|
402
|
-
]),
|
|
403
|
-
_: 1
|
|
404
|
-
}, 16)
|
|
405
|
-
]),
|
|
406
|
-
_: 1
|
|
407
|
-
}, 8, ["onRegister", "onCancel"]);
|
|
408
|
-
}
|
|
409
|
-
var CustomButtonList = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
410
|
-
export { CustomButtonList as default };
|