@jeecg/online 3.7.0-beta → 3.7.1-RC
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/{AiModal-fe3988fb.mjs → AiModal-6de335e3.mjs} +1 -1
- package/AuthButtonConfig-89763932.mjs +154 -0
- package/{AuthButtonTree-589395ed.mjs → AuthButtonTree-2d87d0b3.mjs} +6 -5
- package/{AuthDataConfig-7bb0cd85.mjs → AuthDataConfig-5c3a8e6b.mjs} +11 -10
- package/{AuthDataTree-6e3bb86f.mjs → AuthDataTree-dd7a1240.mjs} +6 -6
- package/AuthFieldConfig-9f6fa06c.mjs +245 -0
- package/{AuthFieldTree-b7cd091e.mjs → AuthFieldTree-e326fc38.mjs} +2 -2
- package/{AuthManagerDrawer-5e2ed5ce.mjs → AuthManagerDrawer-76f15e8d.mjs} +9 -8
- package/{AuthSetterModal-6f74449c.mjs → AuthSetterModal-f5d2e87f.mjs} +12 -11
- package/{CgformCopyList-8077ccc6.mjs → CgformCopyList-365b3e8f.mjs} +43 -42
- package/CgformModal-21c5c387.mjs +671 -0
- package/{CgreportModal-5a23d089.mjs → CgreportModal-edefa8e3.mjs} +15 -14
- package/{CheckDictTable-b5cb0e2b.mjs → CheckDictTable-1bc8322d.mjs} +36 -33
- package/{CodeFileListModal-0e26b7e0.mjs → CodeFileListModal-24601898.mjs} +5 -4
- package/{CodeFileViewModal-9d4a5b5f.mjs → CodeFileViewModal-2fe911f4.mjs} +89 -84
- package/CodeGeneratorModal-f09fe903.mjs +282 -0
- package/{CustomButtonList-37639061.mjs → CustomButtonList-f07bc695.mjs} +108 -92
- package/{DBAttributeTable-95dc66c1.mjs → DBAttributeTable-285d40db.mjs} +79 -71
- package/DbToOnlineModal-5dcb67c3.mjs +169 -0
- package/{DetailForm-4aa2570b.mjs → DetailForm-deecbf3d.mjs} +50 -49
- package/{EnhanceJavaModal-98934198.mjs → EnhanceJavaModal-45c66cd5.mjs} +2 -2
- package/{EnhanceJsHistory-9c4acdaf.mjs → EnhanceJsHistory-fab3102e.mjs} +1 -1
- package/{EnhanceJsModal-247f640d.mjs → EnhanceJsModal-175357a1.mjs} +119 -103
- package/{EnhanceSqlModal-65b74b0f.mjs → EnhanceSqlModal-7ea1b300.mjs} +2 -2
- package/{ExtendConfigModal-00f2fb55.mjs → ExtendConfigModal-a89ae052.mjs} +2 -2
- package/{FieldExtendJsonModal-cc7fce26.mjs → FieldExtendJsonModal-32135634.mjs} +2 -2
- package/{FileSelectModal-38660e3c.mjs → FileSelectModal-1643c8b9.mjs} +1 -1
- package/{ForeignKeyTable-a78cb5ad.mjs → ForeignKeyTable-7f7e28a7.mjs} +2 -2
- package/{IndexTable-1b496559.mjs → IndexTable-cdcc2b48.mjs} +27 -19
- package/{JModalTip-4a83aaed.mjs → JModalTip-b055ab60.mjs} +1 -1
- package/JOnlineSearchSelect-22aae934.mjs +128 -0
- package/{LeftDepart-8ade4bf7.mjs → LeftDepart-d5615ed9.mjs} +1 -1
- package/{LeftRole-7d8c5acc.mjs → LeftRole-2ed8a2bf.mjs} +1 -1
- package/{LeftUser-b4d1372a.mjs → LeftUser-22baa378.mjs} +1 -1
- package/{LinkTableConfigModal-a138c85e.mjs → LinkTableConfigModal-9242d750.mjs} +1 -1
- package/{LinkTableFieldConfigModal-17b413b0.mjs → LinkTableFieldConfigModal-24adc50c.mjs} +1 -1
- package/{LinkTableListPiece-2660d709.mjs → LinkTableListPiece-f3a8e0d7.mjs} +1 -1
- package/{ModalFormDemo-0544737d.mjs → ModalFormDemo-711418db.mjs} +1 -1
- package/{OnlCgformErpList-30e416c8.mjs → OnlCgformErpList-58acdfa0.mjs} +121 -121
- package/{OnlCgformErpSubTable-9a876058.mjs → OnlCgformErpSubTable-9b1e1938.mjs} +149 -150
- package/{OnlCgformInnerSubTable-290ace5d.mjs → OnlCgformInnerSubTable-6c23781f.mjs} +96 -97
- package/{OnlCgformInnerTableList-f89b6687.mjs → OnlCgformInnerTableList-4b5e14ed.mjs} +156 -156
- package/{OnlCgformTabList-7a2f2c03.mjs → OnlCgformTabList-019ad753.mjs} +138 -138
- package/{OnlineAutoList-46c6c8b9.mjs → OnlineAutoList-48589d09.mjs} +90 -90
- package/{OnlineAutoModal-971bef13.mjs → OnlineAutoModal-c2928847.mjs} +64 -61
- package/{OnlineAutoTreeList-3b92454c.mjs → OnlineAutoTreeList-3baa1d00.mjs} +20 -19
- package/{OnlineCustomModal-594244f3.mjs → OnlineCustomModal-9e17b6ce.mjs} +8 -8
- package/{OnlineDetailModal-2a271e0b.mjs → OnlineDetailModal-d5895734.mjs} +8 -8
- package/OnlineForm-9f1153ba.mjs +985 -0
- package/{OnlineFormDetail-e036cd11.mjs → OnlineFormDetail-022ca117.mjs} +7 -7
- package/{OnlineFormUrlAdd-7fb3dcca.mjs → OnlineFormUrlAdd-9715d70a.mjs} +10 -10
- package/{OnlineFormUrlDetail-b2292137.mjs → OnlineFormUrlDetail-8f864b1a.mjs} +12 -12
- package/{OnlineFormUrlEdit-44080fb3.mjs → OnlineFormUrlEdit-ac985b36.mjs} +10 -10
- package/{OnlineFormUrlSuccess-af285b02.mjs → OnlineFormUrlSuccess-3dfc54ab.mjs} +1 -1
- package/OnlineQueryForm-eedb9a60.mjs +466 -0
- package/{OnlineSearchFormItem-6feacae6.mjs → OnlineSearchFormItem-6c557343.mjs} +2 -2
- package/{OnlineSelectCascade-471fcc76.mjs → OnlineSelectCascade-05c40fef.mjs} +1 -1
- package/{OnlineSubFormDetail-03f8ee5c.mjs → OnlineSubFormDetail-58e896ce.mjs} +7 -7
- package/{OnlineTabAutoModal-7b9bcd0b.mjs → OnlineTabAutoModal-47b18ad6.mjs} +7 -7
- package/{OnlineTabDetailModal-88143301.mjs → OnlineTabDetailModal-82de1465.mjs} +8 -8
- package/{OnlineTabForm-9ad7d29a.mjs → OnlineTabForm-27655c83.mjs} +236 -224
- package/{OnlineTabFormDetail-bbf23caa.mjs → OnlineTabFormDetail-8d0c40c0.mjs} +7 -7
- package/{PageAttributeTable-6c23547b.mjs → PageAttributeTable-25e3b7da.mjs} +156 -136
- package/{ProcessOnlineForm-b42198f5.mjs → ProcessOnlineForm-148632fe.mjs} +61 -55
- package/{QueryTable-96b3dbd0.mjs → QueryTable-f7bfca7f.mjs} +39 -36
- package/{SetSwitchOptions-a452fa0f.mjs → SetSwitchOptions-b2af757f.mjs} +1 -1
- package/SuperQuery-a8592995.mjs +967 -0
- package/auth.api-ea1d33d4.mjs +41 -0
- package/{auth.data-22948e87.mjs → auth.data-511e5197.mjs} +62 -28
- package/{enhance.data-3304d553.mjs → enhance.data-a67572e1.mjs} +8 -7
- package/index-1d1a6e56.mjs +57 -0
- package/{index-d2abb8a0.mjs → index-30e0e923.mjs} +48 -47
- package/{index-581bef24.mjs → index-f30613d1.mjs} +2 -2
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/{useCgformList-8755a94e.mjs → useCgformList-f41d4dc1.mjs} +1 -1
- package/useExtendComponent-dcae5c78.mjs +4399 -0
- package/{useListButton-7ddb9a46.mjs → useListButton-bfac4ecf.mjs} +45 -45
- package/{useSchemas-47e45edc.mjs → useSchemas-a9c75b0f.mjs} +55 -46
- package/useTableSync-d7e9f18d.mjs +89 -0
- package/AuthButtonConfig-d50a0a65.mjs +0 -134
- package/AuthFieldConfig-490fc0ab.mjs +0 -139
- package/CgformModal-36faf29a.mjs +0 -621
- package/CodeGeneratorModal-b722d976.mjs +0 -238
- package/DbToOnlineModal-f49b9530.mjs +0 -166
- package/JOnlineSearchSelect-34a37ec9.mjs +0 -95
- package/OnlineForm-018981b2.mjs +0 -924
- package/OnlineQueryForm-998c12a4.mjs +0 -444
- package/SuperQuery-cbfba908.mjs +0 -975
- package/auth.api-d3a6c4b3.mjs +0 -39
- package/index-173949bb.mjs +0 -57
- package/useExtendComponent-bb7cca20.mjs +0 -4295
- package/useTableSync-f6089e8a.mjs +0 -87
- /package/{OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs} +0 -0
|
@@ -26,7 +26,7 @@ var R = (t, o, l) => new Promise((m, v) => {
|
|
|
26
26
|
}, c = (d) => d.done ? m(d.value) : Promise.resolve(d.value).then(f, h);
|
|
27
27
|
c((l = l.apply(t, o)).next());
|
|
28
28
|
});
|
|
29
|
-
import { defineComponent as fe, ref as
|
|
29
|
+
import { defineComponent as fe, ref as w, reactive as K, unref as b, computed as ge, resolveComponent as S, openBlock as F, createBlock as O, mergeProps as he, withCtx as _, createVNode as y, createElementVNode as C, createTextVNode as P, pushScopeId as be, popScopeId as _e } from "vue";
|
|
30
30
|
import { useModalInner as ye, BasicModal as xe } from "/@/components/Modal";
|
|
31
31
|
import { useForm as Se, BasicForm as Ce } from "/@/components/Form/index";
|
|
32
32
|
import { useJvxeMethod as ve } from "/@/hooks/system/useJvxeMethods.ts";
|
|
@@ -34,8 +34,8 @@ import { JVxeTypes as i } from "/@/components/jeecg/JVxeTable/types";
|
|
|
34
34
|
import { duplicateCheckDelay as ke } from "/@/views/system/user/user.api";
|
|
35
35
|
import { defHttp as x } from "/@/utils/http/axios";
|
|
36
36
|
import { useMessage as j } from "/@/hooks/web/useMessage";
|
|
37
|
-
import { usePermissionStore as
|
|
38
|
-
import { _ as
|
|
37
|
+
import { usePermissionStore as Ie } from "/@/store/modules/permission";
|
|
38
|
+
import { _ as we } from "./index-1d1a6e56.mjs";
|
|
39
39
|
const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", Ve = "/online/cgreport/item/listByHeadId", at = (t) => x.get({ url: "/online/cgreport/head/list", params: t }), nt = (t, o) => x.delete({ url: "/online/cgreport/head/delete", params: t }, { joinParamsToUrl: !0 }).then(() => {
|
|
40
40
|
o();
|
|
41
41
|
}), it = (t, o) => {
|
|
@@ -54,7 +54,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
|
|
|
54
54
|
/* getDataSourceList */
|
|
55
55
|
}), qe = (t) => x.get({
|
|
56
56
|
url: "/online/cgreport/head/parseSql?" + t
|
|
57
|
-
}), Re =
|
|
57
|
+
}), Re = Ie(), ct = [
|
|
58
58
|
{
|
|
59
59
|
title: "报表名字",
|
|
60
60
|
align: "center",
|
|
@@ -286,7 +286,8 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
|
|
|
286
286
|
{ title: "字符类型", value: "String" },
|
|
287
287
|
{ title: "日期类型", value: "Date" },
|
|
288
288
|
{ title: "时间类型", value: "Datetime" },
|
|
289
|
-
{ title: "长整型", value: "Long" }
|
|
289
|
+
{ title: "长整型", value: "Long" },
|
|
290
|
+
{ title: "图片类型", value: "Image" }
|
|
290
291
|
]
|
|
291
292
|
},
|
|
292
293
|
{
|
|
@@ -363,11 +364,11 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
|
|
|
363
364
|
__name: "CgreportModal",
|
|
364
365
|
emits: ["register", "success"],
|
|
365
366
|
setup(t, { emit: o }) {
|
|
366
|
-
const { createMessage: l } = j(), m =
|
|
367
|
+
const { createMessage: l } = j(), m = w(!0), v = w(!0), f = w(["onlCgreportItem", "onlCgreportParam"]), h = w("onlCgreportItem"), c = w(), d = w(), V = { onlCgreportItem: d, onlCgreportParam: c }, k = K({
|
|
367
368
|
loading: !1,
|
|
368
369
|
dataSource: [],
|
|
369
370
|
columns: Me
|
|
370
|
-
}),
|
|
371
|
+
}), I = K({
|
|
371
372
|
loading: !1,
|
|
372
373
|
dataSource: [],
|
|
373
374
|
columns: Be
|
|
@@ -381,7 +382,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
|
|
|
381
382
|
// update-end--author:liaozhiyang---date:20240509---for:【QQYUN-9230】报表图表弹窗样式调整
|
|
382
383
|
}), [X, { setModalProps: L, closeModal: Y }] = ye((e) => R(this, null, function* () {
|
|
383
384
|
var r, a;
|
|
384
|
-
yield re(), L({ confirmLoading: !1, showCancelBtn: e == null ? void 0 : e.showFooter, showOkBtn: e == null ? void 0 : e.showFooter }), m.value = !!(e != null && e.isUpdate), b(m) && (yield Z(B({}, e.record)), W(Te, { headId: (r = e == null ? void 0 : e.record) == null ? void 0 : r.id }, k), W(Ve, { headId: (a = e == null ? void 0 : e.record) == null ? void 0 : a.id },
|
|
385
|
+
yield re(), L({ confirmLoading: !1, showCancelBtn: e == null ? void 0 : e.showFooter, showOkBtn: e == null ? void 0 : e.showFooter }), m.value = !!(e != null && e.isUpdate), b(m) && (yield Z(B({}, e.record)), W(Te, { headId: (r = e == null ? void 0 : e.record) == null ? void 0 : r.id }, k), W(Ve, { headId: (a = e == null ? void 0 : e.record) == null ? void 0 : a.id }, I)), H({ disabled: !(e != null && e.showFooter) });
|
|
385
386
|
})), [ee, te, W, oe] = ve(
|
|
386
387
|
ne,
|
|
387
388
|
ae,
|
|
@@ -391,7 +392,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
|
|
|
391
392
|
), le = ge(() => b(m) ? "编辑" : "新增");
|
|
392
393
|
function re() {
|
|
393
394
|
return R(this, null, function* () {
|
|
394
|
-
yield E(), h.value = "onlCgreportItem", k.dataSource = [],
|
|
395
|
+
yield E(), h.value = "onlCgreportItem", k.dataSource = [], I.dataSource = [];
|
|
395
396
|
});
|
|
396
397
|
}
|
|
397
398
|
function ae(e) {
|
|
@@ -422,7 +423,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
|
|
|
422
423
|
if (u) {
|
|
423
424
|
l.success("解析成功");
|
|
424
425
|
let { fields: n, params: p } = u, g = n.filter((q) => q.fieldName != "__row_number__"), N = d.value.getTableData(), $ = z(N, g || [], "fieldName");
|
|
425
|
-
$ = $.sort((q, M) => q.orderNum - M.orderNum),
|
|
426
|
+
$ = $.sort((q, M) => q.orderNum - M.orderNum), I.dataSource = $;
|
|
426
427
|
let se = c.value.getTableData(), D = z(se, p || [], "paramName");
|
|
427
428
|
D = D.sort((q, M) => q.orderNum - M.orderNum), k.dataSource = D;
|
|
428
429
|
}
|
|
@@ -530,9 +531,9 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
|
|
|
530
531
|
resizable: "",
|
|
531
532
|
ref_key: "onlCgreportItem",
|
|
532
533
|
ref: d,
|
|
533
|
-
loading:
|
|
534
|
-
columns:
|
|
535
|
-
dataSource:
|
|
534
|
+
loading: I.loading,
|
|
535
|
+
columns: I.columns,
|
|
536
|
+
dataSource: I.dataSource,
|
|
536
537
|
height: 390,
|
|
537
538
|
rowNumber: !0,
|
|
538
539
|
rowSelection: !0,
|
|
@@ -573,7 +574,7 @@ const { createConfirm: Pe } = j(), Te = "/online/cgreport/param/listByHeadId", V
|
|
|
573
574
|
};
|
|
574
575
|
}
|
|
575
576
|
});
|
|
576
|
-
const je = /* @__PURE__ */
|
|
577
|
+
const je = /* @__PURE__ */ we(Ke, [["__scopeId", "data-v-f79bfba3"]]), ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
577
578
|
__proto__: null,
|
|
578
579
|
default: je
|
|
579
580
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
var D = Object.defineProperty, I = Object.defineProperties;
|
|
2
2
|
var M = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var F = Object.getOwnPropertySymbols;
|
|
4
4
|
var O = Object.prototype.hasOwnProperty, P = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var V = (e, t, a) => t in e ? D(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a, x = (e, t) => {
|
|
6
6
|
for (var a in t || (t = {}))
|
|
7
|
-
O.call(t, a) &&
|
|
8
|
-
if (
|
|
9
|
-
for (var a of
|
|
10
|
-
P.call(t, a) &&
|
|
7
|
+
O.call(t, a) && V(e, a, t[a]);
|
|
8
|
+
if (F)
|
|
9
|
+
for (var a of F(t))
|
|
10
|
+
P.call(t, a) && V(e, a, t[a]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
import { defineComponent as S, ref as
|
|
12
|
+
}, R = (e, t) => I(e, M(t));
|
|
13
|
+
import { defineComponent as S, ref as E, computed as $, resolveComponent as s, openBlock as H, createBlock as J, mergeProps as q, withCtx as c, createVNode as i, normalizeClass as N, createElementVNode as T, withDirectives as z, vShow as j } from "vue";
|
|
14
14
|
import { JVxeTypes as n } from "/@/components/jeecg/JVxeTable/types";
|
|
15
|
-
import { u as K } from "./useTableSync-
|
|
15
|
+
import { u as K } from "./useTableSync-d7e9f18d.mjs";
|
|
16
16
|
import { useMessage as G } from "/@/hooks/web/useMessage";
|
|
17
17
|
import { useJPrompt as L } from "/@/components/jeecg/JPrompt";
|
|
18
18
|
import { useDesign as Q } from "/@/hooks/web/useDesign";
|
|
19
|
-
import { _ as U } from "./index-
|
|
19
|
+
import { _ as U } from "./index-1d1a6e56.mjs";
|
|
20
20
|
import "./cgform.data-475d4984.mjs";
|
|
21
21
|
import "/@/utils/dict";
|
|
22
22
|
import "/@/utils/dict/JDictSelectUtil";
|
|
@@ -30,7 +30,7 @@ const W = S({
|
|
|
30
30
|
VNodes: (e, { attrs: t }) => t.vnodes
|
|
31
31
|
},
|
|
32
32
|
setup() {
|
|
33
|
-
const { prefixCls: e } = Q("cgform-check-dict-table"), { createMessage: t } = G(), a =
|
|
33
|
+
const { prefixCls: e } = Q("cgform-check-dict-table"), { createMessage: t } = G(), a = E([
|
|
34
34
|
{ title: "字段名称", key: "dbFieldName", width: 100 },
|
|
35
35
|
{ title: "字段备注", key: "dbFieldTxt", width: 100 },
|
|
36
36
|
{
|
|
@@ -82,7 +82,7 @@ const W = S({
|
|
|
82
82
|
defaultValue: "",
|
|
83
83
|
validateRules: [{ handler: r }]
|
|
84
84
|
}
|
|
85
|
-
]), v = K(a), { tableRef:
|
|
85
|
+
]), v = K(a), { tableRef: k, tables: w } = v, p = E([
|
|
86
86
|
{ label: "空", value: "" },
|
|
87
87
|
{ label: "唯一校验", value: "only" },
|
|
88
88
|
{ label: "6到16位数字", value: "n6-16" },
|
|
@@ -126,7 +126,7 @@ const W = S({
|
|
|
126
126
|
return f(u) ? Promise.resolve() : Promise.reject("当前校验已存在");
|
|
127
127
|
}
|
|
128
128
|
function h(l) {
|
|
129
|
-
l.dbIsNull === "0" &&
|
|
129
|
+
l.dbIsNull === "0" && k.value.setValues([
|
|
130
130
|
{
|
|
131
131
|
rowKey: l.id,
|
|
132
132
|
values: { fieldMustInput: "1" }
|
|
@@ -134,10 +134,10 @@ const W = S({
|
|
|
134
134
|
]);
|
|
135
135
|
}
|
|
136
136
|
function r({ cellValue: l, row: u }, _) {
|
|
137
|
-
const { dbFieldName: A } = u, y =
|
|
137
|
+
const { dbFieldName: A } = u, y = w.pageTable.value.tableRef.getTableData(), C = y == null ? void 0 : y.find((B) => B.dbFieldName === A);
|
|
138
138
|
(C == null ? void 0 : C.fieldShowType) === "popup_dict" ? l.indexOf(",") == -1 ? _(!0) : _(!1, "popup字典组件只允许填写一个字段") : _(!0);
|
|
139
139
|
}
|
|
140
|
-
return x(
|
|
140
|
+
return R(x({}, v), {
|
|
141
141
|
prefixCls: e,
|
|
142
142
|
columns: a,
|
|
143
143
|
isCustomRegexp: f,
|
|
@@ -149,12 +149,12 @@ const W = S({
|
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
151
|
});
|
|
152
|
-
const X = {
|
|
152
|
+
const X = { class: "menu" }, Y = {
|
|
153
153
|
class: "custom-option-list rc-virtual-list-holder-inner",
|
|
154
154
|
style: { "border-top": "1px solid #dfdfdf" }
|
|
155
|
-
},
|
|
156
|
-
function
|
|
157
|
-
const p =
|
|
155
|
+
}, Z = ["onClick"];
|
|
156
|
+
function ee(e, t, a, v, k, w) {
|
|
157
|
+
const p = s("VNodes"), m = s("a-select"), d = s("a-col"), f = s("a-button"), b = s("a-row"), g = s("JVxeTable");
|
|
158
158
|
return H(), J(g, q({
|
|
159
159
|
ref: "tableRef",
|
|
160
160
|
rowNumber: "",
|
|
@@ -167,31 +167,34 @@ function Z(e, t, a, v, T, k) {
|
|
|
167
167
|
disabledRows: { dbFieldName: ["id", "has_child"] }
|
|
168
168
|
}, e.tableProps), {
|
|
169
169
|
fieldValidType: c((o) => [
|
|
170
|
-
|
|
170
|
+
i(b, {
|
|
171
171
|
type: "flex",
|
|
172
|
-
class:
|
|
172
|
+
class: N(["row-valid-type", { full: !e.isCustomRegexp(o.value) }])
|
|
173
173
|
}, {
|
|
174
174
|
default: c(() => [
|
|
175
|
-
|
|
176
|
-
class:
|
|
175
|
+
i(d, {
|
|
176
|
+
class: N(["left"])
|
|
177
177
|
}, {
|
|
178
178
|
default: c(() => [
|
|
179
|
-
|
|
179
|
+
i(m, {
|
|
180
180
|
value: o.value,
|
|
181
181
|
options: e.validTypeOptions,
|
|
182
182
|
placeholder: "空",
|
|
183
183
|
style: { width: "100%" },
|
|
184
|
-
onChange: o.triggerChange
|
|
184
|
+
onChange: o.triggerChange,
|
|
185
|
+
virtual: !1
|
|
185
186
|
}, {
|
|
186
187
|
dropdownRender: c(({ menuNode: h }) => [
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
188
|
+
T("div", X, [
|
|
189
|
+
i(p, { vnodes: h }, null, 8, ["vnodes"])
|
|
190
|
+
]),
|
|
191
|
+
z(T("div", Y, [
|
|
192
|
+
T("div", {
|
|
190
193
|
class: "ant-select-item ant-select-item-option",
|
|
191
194
|
title: "使用自定义正则表达式作为校验规则",
|
|
192
195
|
onClick: (r) => e.onAddCustomRegexp(o),
|
|
193
196
|
onMousedown: t[0] || (t[0] = (r) => r.preventDefault())
|
|
194
|
-
}, " 正则表达式 ", 40,
|
|
197
|
+
}, " 正则表达式 ", 40, Z)
|
|
195
198
|
], 512), [
|
|
196
199
|
[j, !e.isCustomRegexp(o.value)]
|
|
197
200
|
])
|
|
@@ -201,12 +204,12 @@ function Z(e, t, a, v, T, k) {
|
|
|
201
204
|
]),
|
|
202
205
|
_: 2
|
|
203
206
|
}, 1024),
|
|
204
|
-
|
|
207
|
+
i(d, {
|
|
205
208
|
class: "right",
|
|
206
209
|
title: "修改自定义正则表达式"
|
|
207
210
|
}, {
|
|
208
211
|
default: c(() => [
|
|
209
|
-
|
|
212
|
+
i(f, {
|
|
210
213
|
preIcon: "ant-design:edit",
|
|
211
214
|
onClick: () => e.onChangeCustomRegexp(o)
|
|
212
215
|
}, null, 8, ["onClick"])
|
|
@@ -220,7 +223,7 @@ function Z(e, t, a, v, T, k) {
|
|
|
220
223
|
_: 1
|
|
221
224
|
}, 16, ["class", "maxHeight", "loading", "columns", "dataSource"]);
|
|
222
225
|
}
|
|
223
|
-
const
|
|
226
|
+
const be = /* @__PURE__ */ U(W, [["render", ee], ["__scopeId", "data-v-272f2c52"]]);
|
|
224
227
|
export {
|
|
225
|
-
|
|
228
|
+
be as default
|
|
226
229
|
};
|
|
@@ -19,11 +19,12 @@ import { defHttp as R } from "/@/utils/http/axios";
|
|
|
19
19
|
import "/@/components/Form";
|
|
20
20
|
import { BasicModal as T, useModalInner as z, useModal as G } from "/@/components/Modal";
|
|
21
21
|
import { InfoCircleTwoTone as K } from "@ant-design/icons-vue";
|
|
22
|
-
import S from "./CodeFileViewModal-
|
|
22
|
+
import S from "./CodeFileViewModal-2fe911f4.mjs";
|
|
23
23
|
import { useMessage as H } from "/@/hooks/web/useMessage";
|
|
24
24
|
import { downloadByData as I } from "/@/utils/file/download";
|
|
25
|
-
import { _ as E } from "./index-
|
|
25
|
+
import { _ as E } from "./index-1d1a6e56.mjs";
|
|
26
26
|
import "ant-design-vue";
|
|
27
|
+
import "/@/hooks/web/useDesign";
|
|
27
28
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
28
29
|
import "vue-router";
|
|
29
30
|
const j = {
|
|
@@ -152,7 +153,7 @@ function Y(d, l, i, e, m, p) {
|
|
|
152
153
|
}, null, 8, ["onRegister", "onDownload", "onClose"])
|
|
153
154
|
], 64);
|
|
154
155
|
}
|
|
155
|
-
const
|
|
156
|
+
const le = /* @__PURE__ */ E(j, [["render", Y]]);
|
|
156
157
|
export {
|
|
157
|
-
|
|
158
|
+
le as default
|
|
158
159
|
};
|
|
@@ -1,46 +1,47 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var F = (o, h, s) => new Promise((w, m) => {
|
|
2
|
+
var _ = (i) => {
|
|
3
3
|
try {
|
|
4
|
-
s
|
|
4
|
+
u(s.next(i));
|
|
5
5
|
} catch (r) {
|
|
6
6
|
m(r);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, v = (i) => {
|
|
9
9
|
try {
|
|
10
|
-
s
|
|
10
|
+
u(s.throw(i));
|
|
11
11
|
} catch (r) {
|
|
12
12
|
m(r);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, u = (i) => i.done ? w(i.value) : Promise.resolve(i.value).then(_, v);
|
|
15
|
+
u((s = s.apply(o, h)).next());
|
|
16
16
|
});
|
|
17
|
-
import { defineComponent as P, ref as g, reactive as
|
|
17
|
+
import { defineComponent as P, ref as g, reactive as H, resolveComponent as f, openBlock as k, createBlock as x, withCtx as p, createVNode as C, createTextVNode as V, createElementVNode as W, normalizeStyle as j, createCommentVNode as q } from "vue";
|
|
18
18
|
import { defHttp as z } from "/@/utils/http/axios";
|
|
19
|
-
import { BasicModal as
|
|
20
|
-
import { InfoCircleTwoTone as
|
|
19
|
+
import { BasicModal as U, useModalInner as Y } from "/@/components/Modal";
|
|
20
|
+
import { InfoCircleTwoTone as Q } from "@ant-design/icons-vue";
|
|
21
21
|
import { message as $ } from "ant-design-vue";
|
|
22
|
-
import { JCodeEditor as
|
|
23
|
-
import {
|
|
22
|
+
import { JCodeEditor as X } from "/@/components/Form";
|
|
23
|
+
import { useDesign as Z } from "/@/hooks/web/useDesign";
|
|
24
|
+
import { _ as ee } from "./index-1d1a6e56.mjs";
|
|
24
25
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
25
26
|
import "/@/hooks/web/useMessage";
|
|
26
27
|
import "vue-router";
|
|
27
|
-
const
|
|
28
|
+
const te = P({
|
|
28
29
|
name: "CodeFileViewModal",
|
|
29
30
|
components: {
|
|
30
|
-
BasicModal:
|
|
31
|
-
InfoCircleTwoTone:
|
|
32
|
-
JCodeEditor:
|
|
31
|
+
BasicModal: U,
|
|
32
|
+
InfoCircleTwoTone: Q,
|
|
33
|
+
JCodeEditor: X
|
|
33
34
|
},
|
|
34
35
|
emits: ["download", "register", "close"],
|
|
35
|
-
setup(
|
|
36
|
-
const
|
|
37
|
-
let r =
|
|
38
|
-
const [
|
|
39
|
-
r =
|
|
40
|
-
}));
|
|
41
|
-
function
|
|
42
|
-
let t = G(),
|
|
43
|
-
|
|
36
|
+
setup(o, { emit: h }) {
|
|
37
|
+
const s = g([]), w = g(""), m = g([]), _ = g(!1), v = window.innerHeight - 142, u = g("java"), i = g("");
|
|
38
|
+
let r = H({});
|
|
39
|
+
const [D, { closeModal: M }] = Y((t) => F(this, null, function* () {
|
|
40
|
+
r = H({}), i.value = "", s.value = t.codeList, w.value = t.pathKey, T(), _.value = !0;
|
|
41
|
+
})), { prefixCls: y } = Z("online-codeFileViewModal");
|
|
42
|
+
function T() {
|
|
43
|
+
let t = G(), l = t[0];
|
|
44
|
+
N(l, t);
|
|
44
45
|
let n = [];
|
|
45
46
|
const e = function(d) {
|
|
46
47
|
if (d.children) {
|
|
@@ -48,53 +49,53 @@ const Z = P({
|
|
|
48
49
|
a.length == 1 ? e(a[0]) : a.length > 1 && n.push(d);
|
|
49
50
|
}
|
|
50
51
|
};
|
|
51
|
-
e(
|
|
52
|
-
|
|
52
|
+
e(l), m.value = n, setTimeout(() => {
|
|
53
|
+
b(l);
|
|
53
54
|
}, 300);
|
|
54
55
|
}
|
|
55
|
-
function
|
|
56
|
-
return
|
|
57
|
-
const
|
|
56
|
+
function b(t) {
|
|
57
|
+
return F(this, null, function* () {
|
|
58
|
+
const l = function(e) {
|
|
58
59
|
if (e.isLeaf === !0)
|
|
59
60
|
return e;
|
|
60
61
|
if (e.children)
|
|
61
|
-
return
|
|
62
|
+
return l(e.children[0]);
|
|
62
63
|
};
|
|
63
|
-
let n =
|
|
64
|
+
let n = l(t);
|
|
64
65
|
if (n && n.isLeaf === !0) {
|
|
65
66
|
let e = n.path;
|
|
66
|
-
r[e] || (yield K(e)),
|
|
67
|
+
r[e] || (yield K(e)), u.value = A(e), i.value = r[e];
|
|
67
68
|
}
|
|
68
69
|
});
|
|
69
70
|
}
|
|
70
|
-
function
|
|
71
|
-
for (let n of
|
|
72
|
-
t.key == n.pid && (t.children || (t.children = []), t.children.push(n),
|
|
71
|
+
function N(t, l) {
|
|
72
|
+
for (let n of l)
|
|
73
|
+
t.key == n.pid && (t.children || (t.children = []), t.children.push(n), N(n, l));
|
|
73
74
|
}
|
|
74
|
-
function
|
|
75
|
+
function R(t, l) {
|
|
75
76
|
let n = 0, e = "";
|
|
76
|
-
for (; n <=
|
|
77
|
+
for (; n <= l; )
|
|
77
78
|
e += t[n], n++;
|
|
78
79
|
return e;
|
|
79
80
|
}
|
|
80
81
|
function G() {
|
|
81
|
-
let t = [],
|
|
82
|
+
let t = [], l = [], n = s.value;
|
|
82
83
|
for (let e of n) {
|
|
83
84
|
let d = e.replace(new RegExp("\\\\", "g"), "/").replace("生成成功:", "").trim();
|
|
84
85
|
if (d) {
|
|
85
86
|
let a = d.split("/");
|
|
86
87
|
for (let c = 0; c < a.length; c++) {
|
|
87
|
-
let
|
|
88
|
-
if (
|
|
89
|
-
let
|
|
90
|
-
title:
|
|
88
|
+
let B = a[c], L = R(a, c);
|
|
89
|
+
if (B) {
|
|
90
|
+
let E = {
|
|
91
|
+
title: B,
|
|
91
92
|
key: L
|
|
92
93
|
};
|
|
93
|
-
if (
|
|
94
|
-
let
|
|
95
|
-
|
|
94
|
+
if (B != 0) {
|
|
95
|
+
let S = R(a, c - 1);
|
|
96
|
+
S && (E.pid = S);
|
|
96
97
|
}
|
|
97
|
-
c == a.length - 1 && (
|
|
98
|
+
c == a.length - 1 && (E.isLeaf = !0, E.path = d), (l.indexOf(L) < 0 || c == a.length - 1) && (t.push(E), l.push(L));
|
|
98
99
|
}
|
|
99
100
|
}
|
|
100
101
|
}
|
|
@@ -102,7 +103,7 @@ const Z = P({
|
|
|
102
103
|
return t;
|
|
103
104
|
}
|
|
104
105
|
function I() {
|
|
105
|
-
|
|
106
|
+
M(), h("close");
|
|
106
107
|
}
|
|
107
108
|
function J() {
|
|
108
109
|
h("download");
|
|
@@ -110,17 +111,17 @@ const Z = P({
|
|
|
110
111
|
function A(t) {
|
|
111
112
|
return t.endsWith("xml") ? "application/xml" : t.endsWith("sql") ? "text/x-sql" : t.endsWith("vue") ? "text/x-vue" : t.endsWith("ts") ? "text/typescript" : "text/x-java";
|
|
112
113
|
}
|
|
113
|
-
function O(t,
|
|
114
|
-
return
|
|
115
|
-
let n =
|
|
114
|
+
function O(t, l) {
|
|
115
|
+
return F(this, null, function* () {
|
|
116
|
+
let n = l.node.dataRef;
|
|
116
117
|
if (n.isLeaf) {
|
|
117
118
|
let e = n.path;
|
|
118
|
-
r[e] || (yield K(e)),
|
|
119
|
+
r[e] || (yield K(e)), u.value = A(e), i.value = r[e];
|
|
119
120
|
}
|
|
120
121
|
});
|
|
121
122
|
}
|
|
122
123
|
function K(t) {
|
|
123
|
-
return new Promise((
|
|
124
|
+
return new Promise((l) => {
|
|
124
125
|
let n = {
|
|
125
126
|
path: encodeURI(t),
|
|
126
127
|
pathKey: w.value
|
|
@@ -136,60 +137,64 @@ const Z = P({
|
|
|
136
137
|
let d = new Blob([e]), a = new FileReader();
|
|
137
138
|
a.readAsText(d, "utf8"), a.onload = function() {
|
|
138
139
|
let c = this.result;
|
|
139
|
-
r[t] = c,
|
|
140
|
+
r[t] = c, l(1);
|
|
140
141
|
};
|
|
141
142
|
});
|
|
142
143
|
});
|
|
143
144
|
}
|
|
144
145
|
return {
|
|
145
|
-
registerModal:
|
|
146
|
-
codeList:
|
|
146
|
+
registerModal: D,
|
|
147
|
+
codeList: s,
|
|
147
148
|
onDownloadGenerateCode: J,
|
|
148
149
|
handleClose: I,
|
|
149
150
|
treeData: m,
|
|
150
151
|
showCodeContent: O,
|
|
151
152
|
activeCodeContent: i,
|
|
152
|
-
expandStatus:
|
|
153
|
-
height:
|
|
154
|
-
language:
|
|
153
|
+
expandStatus: _,
|
|
154
|
+
height: v,
|
|
155
|
+
language: u,
|
|
156
|
+
prefixCls: y,
|
|
157
|
+
modalHeight: 1e3
|
|
155
158
|
};
|
|
156
159
|
}
|
|
157
160
|
});
|
|
158
|
-
function
|
|
159
|
-
const
|
|
160
|
-
return
|
|
161
|
-
|
|
161
|
+
function ne(o, h, s, w, m, _) {
|
|
162
|
+
const v = f("info-circle-two-tone"), u = f("a-directory-tree"), i = f("a-col"), r = f("JCodeEditor"), D = f("a-empty"), M = f("a-row"), y = f("a-button"), T = f("BasicModal");
|
|
163
|
+
return k(), x(T, {
|
|
164
|
+
height: o.modalHeight,
|
|
165
|
+
onRegister: o.registerModal,
|
|
162
166
|
okText: "",
|
|
163
167
|
cancelText: "关闭",
|
|
164
168
|
width: 1200,
|
|
165
169
|
defaultFullscreen: !0,
|
|
166
170
|
canFullscreen: !1,
|
|
167
|
-
onOk:
|
|
171
|
+
onOk: o.onDownloadGenerateCode,
|
|
172
|
+
wrapClassName: o.prefixCls
|
|
168
173
|
}, {
|
|
169
174
|
title: p(() => [
|
|
170
|
-
C(
|
|
171
|
-
|
|
175
|
+
C(v),
|
|
176
|
+
V(" 代码在线预览 ")
|
|
172
177
|
]),
|
|
173
178
|
footer: p(() => [
|
|
174
|
-
C(y, { onClick:
|
|
179
|
+
C(y, { onClick: o.handleClose }, {
|
|
175
180
|
default: p(() => [
|
|
176
|
-
|
|
181
|
+
V("关闭")
|
|
177
182
|
]),
|
|
178
183
|
_: 1
|
|
179
184
|
}, 8, ["onClick"]),
|
|
180
185
|
C(y, {
|
|
181
186
|
type: "primary",
|
|
182
|
-
onClick:
|
|
187
|
+
onClick: o.onDownloadGenerateCode
|
|
183
188
|
}, {
|
|
184
189
|
default: p(() => [
|
|
185
|
-
|
|
190
|
+
V("下载到本地")
|
|
186
191
|
]),
|
|
187
192
|
_: 1
|
|
188
193
|
}, 8, ["onClick"])
|
|
189
194
|
]),
|
|
190
195
|
default: p(() => [
|
|
191
196
|
W("div", null, [
|
|
192
|
-
C(
|
|
197
|
+
C(M, null, {
|
|
193
198
|
default: p(() => [
|
|
194
199
|
C(i, {
|
|
195
200
|
span: 6,
|
|
@@ -198,13 +203,13 @@ function ee(l, h, u, w, m, v) {
|
|
|
198
203
|
}, {
|
|
199
204
|
default: p(() => [
|
|
200
205
|
W("div", {
|
|
201
|
-
style: j({ height:
|
|
206
|
+
style: j({ height: o.height + "px", overflowY: "auto" })
|
|
202
207
|
}, [
|
|
203
|
-
|
|
208
|
+
o.treeData.length ? (k(), x(u, {
|
|
204
209
|
key: 0,
|
|
205
210
|
defaultExpandAll: !0,
|
|
206
|
-
"tree-data":
|
|
207
|
-
onSelect:
|
|
211
|
+
"tree-data": o.treeData,
|
|
212
|
+
onSelect: o.showCodeContent
|
|
208
213
|
}, null, 8, ["tree-data", "onSelect"])) : q("", !0)
|
|
209
214
|
], 4)
|
|
210
215
|
]),
|
|
@@ -215,18 +220,18 @@ function ee(l, h, u, w, m, v) {
|
|
|
215
220
|
gutter: 3
|
|
216
221
|
}, {
|
|
217
222
|
default: p(() => [
|
|
218
|
-
|
|
223
|
+
o.activeCodeContent ? (k(), x(r, {
|
|
219
224
|
key: 0,
|
|
220
|
-
value:
|
|
221
|
-
"onUpdate:value": h[0] || (h[0] = (
|
|
225
|
+
value: o.activeCodeContent,
|
|
226
|
+
"onUpdate:value": h[0] || (h[0] = (b) => o.activeCodeContent = b),
|
|
222
227
|
theme: "idea",
|
|
223
|
-
language:
|
|
228
|
+
language: o.language,
|
|
224
229
|
fullScreen: !1,
|
|
225
230
|
lineNumbers: !0,
|
|
226
|
-
height:
|
|
231
|
+
height: o.height + "px",
|
|
227
232
|
disabled: !0,
|
|
228
233
|
"language-change": !0
|
|
229
|
-
}, null, 8, ["value", "language", "height"])) : (
|
|
234
|
+
}, null, 8, ["value", "language", "height"])) : (k(), x(D, {
|
|
230
235
|
key: 1,
|
|
231
236
|
style: { "margin-top": "50px" },
|
|
232
237
|
description: "请选择左侧文件,显示详细代码"
|
|
@@ -240,9 +245,9 @@ function ee(l, h, u, w, m, v) {
|
|
|
240
245
|
])
|
|
241
246
|
]),
|
|
242
247
|
_: 1
|
|
243
|
-
}, 8, ["onRegister", "onOk"]);
|
|
248
|
+
}, 8, ["height", "onRegister", "onOk", "wrapClassName"]);
|
|
244
249
|
}
|
|
245
|
-
const
|
|
250
|
+
const me = /* @__PURE__ */ ee(te, [["render", ne]]);
|
|
246
251
|
export {
|
|
247
|
-
|
|
252
|
+
me as default
|
|
248
253
|
};
|