@jeecg/online 1.0.1 → 3.4.3
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.js +15 -9
- package/AuthButtonTree.js +4 -7
- package/AuthDataConfig.js +10 -8
- package/AuthDataTree.js +4 -7
- package/AuthFieldConfig.js +16 -14
- package/AuthFieldTree.js +25 -20
- package/AuthManagerDrawer.js +2 -3
- package/AuthSetterModal.js +2 -2
- package/CgformCopyList.js +34 -24
- package/CgformModal.js +57 -50
- package/CgreportModal.js +32 -39
- package/CheckDictTable.js +146 -26
- package/CodeFileListModal.js +174 -0
- package/CodeFileViewModal.js +324 -0
- package/CodeGeneratorModal.js +42 -40
- package/CustomButtonList.js +19 -23
- package/DBAttributeTable.js +250 -14
- package/DbToOnlineModal.js +28 -27
- package/DetailForm.js +607 -0
- package/EnhanceJavaModal.js +12 -19
- package/EnhanceJsHistory.js +6 -8
- package/EnhanceJsModal.js +17 -18
- package/EnhanceSqlModal.js +12 -19
- package/ExtendConfigModal.js +26 -17
- package/FileSelectModal.js +1 -2
- package/ForeignKeyTable.js +6 -5
- package/FormSchemaFactory.js +163 -30
- package/IndexTable.js +8 -7
- package/JModalTip.js +54 -0
- package/LeftDepart.js +3 -3
- package/LeftRole.js +8 -6
- package/LeftUser.js +8 -6
- package/LinkTableConfigModal.js +288 -0
- package/LinkTableFieldConfigModal.js +217 -0
- package/LinkTableListPiece.js +36 -0
- package/ModalFormDemo.js +4 -4
- package/OnlCgReportList.js +34 -0
- package/OnlineAutoList.js +155 -58
- package/OnlineAutoModal.js +91 -132
- package/OnlineAutoTreeList.js +92 -54
- package/OnlineCustomModal.js +31 -17
- package/OnlineDetailModal.js +182 -0
- package/OnlineForm.js +272 -141
- package/OnlineFormDetail.js +324 -0
- package/OnlineQueryForm.js +72 -42
- package/OnlineSearchFormItem.js +28 -23
- package/OnlineSubFormDetail.js +165 -0
- package/OnlineSuperQuery.js +72 -76
- package/OnlineSuperQueryValComponent.js +1 -0
- package/OnlineSuperQueryValComponent.vue_vue_type_script_lang.js +1 -17
- package/PageAttributeTable.js +233 -31
- package/ProcessOnlineForm.js +41 -18
- package/QueryTable.js +6 -5
- package/README.md +3 -8
- package/_arrayPush.js +5 -3
- package/{cloneDeep.js → _baseClone.js} +5 -9
- package/_baseSlice.js +18 -0
- package/_commonjsHelpers.js +5 -0
- package/_flatRest.js +174 -0
- package/auth.data.js +1 -3
- package/cgform.data.js +18 -9
- package/enhance.api.js +27 -18
- package/index.js +358 -34
- package/index2.js +49 -48
- package/index3.js +29 -26
- package/isArray.js +1 -1
- package/main.index.js +3 -3
- package/omit.js +60 -0
- package/package.json +1 -1
- package/pick.js +3 -173
- package/style.css +1 -1
- package/toString.js +2 -2
- package/useAutoForm.js +3457 -3792
- package/useCgformList.js +44 -31
- package/{useTableColumns.js → useListButton.js} +218 -409
- package/useOnlineTest.js +5 -26827
- package/useSchemas.js +382 -234
- package/useTableSync.js +19 -7
- package/ChartAutoRender.js +0 -69
- package/ChartDoubleRender.js +0 -154
- package/ChartSingleRender.js +0 -132
- package/ChartTabsRender.js +0 -218
- package/ErrorTip.js +0 -21
- package/FieldTable.js +0 -185
- package/GraphreportAutoChart.js +0 -352
- package/GraphreportList.js +0 -239
- package/GraphreportModal.js +0 -559
- package/JOnlineSearchSelect.js +0 -107
- package/LICENSE +0 -7
- package/OnlineSelectCascade.js +0 -217
- package/OnlineSubForm.js +0 -200
- package/ParamsTable.js +0 -71
- package/graphreport.api.js +0 -23
- package/useChartRender.js +0 -405
- package/useMessageOnline.js +0 -71
package/useCgformList.js
CHANGED
|
@@ -23,12 +23,15 @@ import { useRouter } from "vue-router";
|
|
|
23
23
|
import { RadioGroup, Radio, Input } from "ant-design-vue";
|
|
24
24
|
import { useModal } from "/@/components/Modal";
|
|
25
25
|
import { useDrawer } from "/@/components/Drawer";
|
|
26
|
-
import { C as CgformPageType } from "./useOnlineTest.js";
|
|
27
26
|
import { useListPage } from "/@/hooks/system/useListPage";
|
|
28
|
-
import { useMessageOnline } from "./useMessageOnline.js";
|
|
29
27
|
import { l as list, d as doCopyOnlineView, a as doBatchRemove, b as doBatchDelete, c as doDatabaseSync, e as doCopyTable } from "./CgformModal.js";
|
|
30
28
|
import { useCopyModal } from "/@/hooks/web/useCopyModal";
|
|
31
29
|
import { isArray } from "/@/utils/is";
|
|
30
|
+
var CgformPageType = /* @__PURE__ */ ((CgformPageType2) => {
|
|
31
|
+
CgformPageType2[CgformPageType2["normal"] = 0] = "normal";
|
|
32
|
+
CgformPageType2[CgformPageType2["copy"] = 1] = "copy";
|
|
33
|
+
return CgformPageType2;
|
|
34
|
+
})(CgformPageType || {});
|
|
32
35
|
function useCgformList(options) {
|
|
33
36
|
const isNormalPage = options.pageType === CgformPageType.normal;
|
|
34
37
|
const router = useRouter();
|
|
@@ -38,7 +41,6 @@ function useCgformList(options) {
|
|
|
38
41
|
api: list,
|
|
39
42
|
columns: options.columns,
|
|
40
43
|
formConfig: {
|
|
41
|
-
labelWidth: 200,
|
|
42
44
|
schemas: options.formSchemas
|
|
43
45
|
},
|
|
44
46
|
beforeFetch: (params) => {
|
|
@@ -51,9 +53,7 @@ function useCgformList(options) {
|
|
|
51
53
|
}
|
|
52
54
|
}
|
|
53
55
|
});
|
|
54
|
-
const { tableContext, createMessage: $message } = pageContext;
|
|
55
|
-
console.log("my message is update ...");
|
|
56
|
-
const { createConfirm: $confirm } = useMessageOnline();
|
|
56
|
+
const { tableContext, createMessage: $message, createConfirm: $confirm } = pageContext;
|
|
57
57
|
const [, { reload, setLoading }, { selectedRowKeys, selectedRows }] = tableContext;
|
|
58
58
|
const [registerCgformModal, cgformModal] = useModal();
|
|
59
59
|
const [registerDbToOnlineModal, dbToOnlineModal] = useModal();
|
|
@@ -167,16 +167,21 @@ function useCgformList(options) {
|
|
|
167
167
|
const modalFunc = $confirm({
|
|
168
168
|
iconType: "info",
|
|
169
169
|
title: "\u540C\u6B65\u6570\u636E\u5E93",
|
|
170
|
-
content: () => h(
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
170
|
+
content: () => h(
|
|
171
|
+
"div",
|
|
172
|
+
{
|
|
173
|
+
style: "margin: 20px 0;"
|
|
174
|
+
},
|
|
175
|
+
h(
|
|
176
|
+
RadioGroup,
|
|
177
|
+
{
|
|
178
|
+
value: syncMethod.value,
|
|
179
|
+
disabled: disabled.value,
|
|
180
|
+
"onUpdate:value": (v) => syncMethod.value = v
|
|
181
|
+
},
|
|
182
|
+
() => [h(Radio, { value: "normal" }, () => "\u666E\u901A\u540C\u6B65\uFF08\u4FDD\u7559\u8868\u6570\u636E\uFF09"), h(Radio, { value: "force" }, () => "\u5F3A\u5236\u540C\u6B65\uFF08\u5220\u9664\u8868\uFF0C\u91CD\u65B0\u751F\u6210\uFF09")]
|
|
183
|
+
)
|
|
184
|
+
),
|
|
180
185
|
maskClosable: true,
|
|
181
186
|
okText: "\u5F00\u59CB\u540C\u6B65",
|
|
182
187
|
onOk() {
|
|
@@ -224,15 +229,19 @@ function useCgformList(options) {
|
|
|
224
229
|
const tableName = ref(record.tableName + "_copy");
|
|
225
230
|
$confirm({
|
|
226
231
|
title: "\u590D\u5236\u8868",
|
|
227
|
-
content: () => h(
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
"
|
|
234
|
-
|
|
235
|
-
|
|
232
|
+
content: () => h(
|
|
233
|
+
"div",
|
|
234
|
+
{
|
|
235
|
+
style: "margin: 20px 0;"
|
|
236
|
+
},
|
|
237
|
+
[
|
|
238
|
+
"\u8BF7\u8F93\u5165\u65B0\u8868\u540D\uFF1A",
|
|
239
|
+
h(Input, {
|
|
240
|
+
value: tableName.value,
|
|
241
|
+
"onUpdate:value": (v) => tableName.value = v
|
|
242
|
+
})
|
|
243
|
+
]
|
|
244
|
+
),
|
|
236
245
|
iconType: "info",
|
|
237
246
|
closable: true,
|
|
238
247
|
okText: "\u590D\u5236",
|
|
@@ -264,11 +273,13 @@ function useCgformList(options) {
|
|
|
264
273
|
},
|
|
265
274
|
{
|
|
266
275
|
label: "\u529F\u80FD\u6D4B\u8BD5",
|
|
276
|
+
class: ["low-app-hide"],
|
|
267
277
|
onClick: () => onGoToTest(record),
|
|
268
278
|
ifShow: () => isNormalPage ? record.isDbSynch == "Y" && record.tableType !== 3 : true
|
|
269
279
|
},
|
|
270
280
|
{
|
|
271
281
|
label: "\u914D\u7F6E\u5730\u5740",
|
|
282
|
+
class: ["low-app-hide"],
|
|
272
283
|
onClick: () => onShowOnlineUrl(record),
|
|
273
284
|
ifShow: () => isNormalPage ? record.isDbSynch == "Y" && record.tableType !== 3 : true
|
|
274
285
|
},
|
|
@@ -280,8 +291,15 @@ function useCgformList(options) {
|
|
|
280
291
|
label: "\u89D2\u8272\u6388\u6743",
|
|
281
292
|
onClick: () => authSetterModal.openModal(true, { cgformId: record.id })
|
|
282
293
|
},
|
|
294
|
+
{
|
|
295
|
+
label: "\u89C6\u56FE\u7BA1\u7406",
|
|
296
|
+
class: ["low-app-hide"],
|
|
297
|
+
onClick: () => router.push(`/online/copyform/${record.id}`),
|
|
298
|
+
ifShow: () => isNormalPage && record.hascopy == 1
|
|
299
|
+
},
|
|
283
300
|
{
|
|
284
301
|
label: "\u751F\u6210\u89C6\u56FE",
|
|
302
|
+
class: ["low-app-hide"],
|
|
285
303
|
popConfirm: {
|
|
286
304
|
title: "\u786E\u5B9A\u751F\u6210\u89C6\u56FE\u5417\uFF1F",
|
|
287
305
|
placement: "left",
|
|
@@ -297,11 +315,6 @@ function useCgformList(options) {
|
|
|
297
315
|
},
|
|
298
316
|
ifShow: () => isNormalPage
|
|
299
317
|
},
|
|
300
|
-
{
|
|
301
|
-
label: "\u89C6\u56FE\u7BA1\u7406",
|
|
302
|
-
onClick: () => router.push(`/online/copyform/${record.id}`),
|
|
303
|
-
ifShow: () => isNormalPage && record.hascopy == 1
|
|
304
|
-
},
|
|
305
318
|
{
|
|
306
319
|
label: "\u590D\u5236\u8868",
|
|
307
320
|
onClick: () => onCopyTable(record),
|
|
@@ -350,4 +363,4 @@ function useCgformList(options) {
|
|
|
350
363
|
registerCodeGeneratorModal
|
|
351
364
|
};
|
|
352
365
|
}
|
|
353
|
-
export { useCgformList as u };
|
|
366
|
+
export { CgformPageType as C, useCgformList as u };
|