@jeecg/online 3.7.4-beta → 3.8.2-beta
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/{AccountLoginForm-84cbd344.mjs → AccountLoginForm-79fa7b01.mjs} +1 -1
- package/{AiModal-26903538.mjs → AiModal-942b59ec.mjs} +1 -1
- package/{AppForgetPassword-52443f23.mjs → AppForgetPassword-d762e5b3.mjs} +2 -2
- package/{AppLogin-ecf798fa.mjs → AppLogin-41372985.mjs} +9 -9
- package/{AppLoginHeader-4432c584.mjs → AppLoginHeader-3b6fa33d.mjs} +1 -1
- package/{AppNameEmail-3303a037.mjs → AppNameEmail-8dfbad62.mjs} +2 -2
- package/{AppRegister-79a62c59.mjs → AppRegister-433c54db.mjs} +3 -3
- package/{AppTenant-f0bef7ca.mjs → AppTenant-e49dfa9b.mjs} +2 -2
- package/{AppThirdForm-fd8b4604.mjs → AppThirdForm-7b75b4fc.mjs} +1 -1
- package/{AuthButtonConfig-d5bffca0.mjs → AuthButtonConfig-a0f59cb5.mjs} +50 -46
- package/{AuthButtonTree-b0bd6c40.mjs → AuthButtonTree-f0a5cc0b.mjs} +2 -2
- package/{AuthDataConfig-d3b7afa4.mjs → AuthDataConfig-647c4a27.mjs} +2 -2
- package/{AuthDataTree-f14a98d9.mjs → AuthDataTree-b80a3ea5.mjs} +1 -1
- package/{AuthFieldConfig-f1e224cc.mjs → AuthFieldConfig-d36a1b2d.mjs} +2 -2
- package/{AuthFieldTree-5cc0da05.mjs → AuthFieldTree-dba6af79.mjs} +1 -1
- package/{AuthManagerDrawer-32556109.mjs → AuthManagerDrawer-5acbd451.mjs} +5 -5
- package/{AuthSetterModal-364f1f67.mjs → AuthSetterModal-95b5f616.mjs} +8 -8
- package/CgformAddressModal-5d889870.mjs +263 -0
- package/CgformCopyList-cc5f76cd.mjs +259 -0
- package/{CgformModal-c4a4e0c2.mjs → CgformModal-cebc698b.mjs} +72 -69
- package/CgreportAigcModal-d1e62385.mjs +211 -0
- package/{CgreportModal-8a84aae5.mjs → CgreportModal-2e4421e6.mjs} +103 -103
- package/{CheckDictTable-8a938e3a.mjs → CheckDictTable-8fb7299c.mjs} +2 -2
- package/{CodeFileListModal-a924902a.mjs → CodeFileListModal-25fad54f.mjs} +2 -2
- package/{CodeFileViewModal-405e2b58.mjs → CodeFileViewModal-12299ab5.mjs} +1 -1
- package/{CodeGeneratorModal-2e1dc13d.mjs → CodeGeneratorModal-791b1695.mjs} +4 -4
- package/{CustomButtonList-c453b654.mjs → CustomButtonList-26490688.mjs} +1 -1
- package/DBAttributeTable-dea8ab11.mjs +546 -0
- package/{DbToOnlineModal-f28ff0a3.mjs → DbToOnlineModal-60317a16.mjs} +1 -1
- package/{DetailForm-c592b8d8.mjs → DetailForm-b92a5e9d.mjs} +6 -6
- package/{DropMenuItem-1e49abea.mjs → DropMenuItem-82213be6.mjs} +1 -1
- package/{EnhanceJavaModal-d5a93f2a.mjs → EnhanceJavaModal-6ebefc8b.mjs} +1 -1
- package/{EnhanceJsHistory-8ddb0657.mjs → EnhanceJsHistory-8d9b86ca.mjs} +2 -2
- package/{EnhanceJsModal-dc4f9ade.mjs → EnhanceJsModal-9439e6f8.mjs} +4 -3
- package/{EnhanceSqlModal-984f045d.mjs → EnhanceSqlModal-ea4592bf.mjs} +1 -1
- package/{ExtendConfigModal-7d70f362.mjs → ExtendConfigModal-f509db46.mjs} +1 -1
- package/{FieldExtendJsonModal-bf04d70e.mjs → FieldExtendJsonModal-73bab5b5.mjs} +2 -2
- package/{FileSelectModal-ffc69d4a.mjs → FileSelectModal-49d6dade.mjs} +1 -1
- package/{ForeignKeyTable-92decaea.mjs → ForeignKeyTable-330963c1.mjs} +2 -2
- package/{IndexTable-2ded2014.mjs → IndexTable-c0478faa.mjs} +2 -2
- package/{JModalTip-a927f85d.mjs → JModalTip-b1d19eaa.mjs} +1 -1
- package/{JOnlineSearchSelect-04ec87d0.mjs → JOnlineSearchSelect-97662e1b.mjs} +1 -1
- package/{LeftDepart-52cb6743.mjs → LeftDepart-4b1003f0.mjs} +1 -1
- package/{LeftRole-b0e0b496.mjs → LeftRole-8486ba4f.mjs} +1 -1
- package/{LeftUser-dd4b10e2.mjs → LeftUser-09894a2f.mjs} +1 -1
- package/{LinkTableConfigModal-7eeb3e58.mjs → LinkTableConfigModal-cd0980e9.mjs} +1 -1
- package/{LinkTableFieldConfigModal-b078fcef.mjs → LinkTableFieldConfigModal-f4106ab7.mjs} +1 -1
- package/{LinkTableListPiece-e016b8e6.mjs → LinkTableListPiece-4187ad7d.mjs} +1 -1
- package/{ModalFormDemo-aaa719a7.mjs → ModalFormDemo-4ec79769.mjs} +1 -1
- package/OnlCgformErpList-63089149.mjs +498 -0
- package/{OnlCgformErpSubTable-e1b88312.mjs → OnlCgformErpSubTable-421e2051.mjs} +18 -17
- package/{OnlCgformInnerSubTable-6b6fa15a.mjs → OnlCgformInnerSubTable-9616ebf2.mjs} +16 -15
- package/{OnlCgformInnerTableList-b283a525.mjs → OnlCgformInnerTableList-5ed887e4.mjs} +160 -154
- package/{OnlCgformTabList-91e3dd78.mjs → OnlCgformTabList-c03a1d0a.mjs} +160 -154
- package/OnlineAutoList-e5a61211.mjs +557 -0
- package/{OnlineAutoModal-95f46901.mjs → OnlineAutoModal-38f2d522.mjs} +7 -7
- package/OnlineAutoTreeList-16fa962f.mjs +531 -0
- package/{OnlineCustomModal-c8b1e780.mjs → OnlineCustomModal-7e31297e.mjs} +7 -7
- package/{OnlineDetailModal-5b412bb9.mjs → OnlineDetailModal-79085ba8.mjs} +8 -8
- package/{OnlineForm-58282699.mjs → OnlineForm-0438f4bf.mjs} +6 -6
- package/{OnlineFormDetail-fc087725.mjs → OnlineFormDetail-76d243ed.mjs} +89 -83
- package/{OnlineFormUrlAdd-bc9105bb.mjs → OnlineFormUrlAdd-2e05ba0f.mjs} +12 -11
- package/{OnlineFormUrlDetail-ad912560.mjs → OnlineFormUrlDetail-06b2d9e6.mjs} +19 -18
- package/{OnlineFormUrlEdit-f2fa79ff.mjs → OnlineFormUrlEdit-77ac4bba.mjs} +12 -11
- package/{OnlineFormUrlSuccess-76813d45.mjs → OnlineFormUrlSuccess-cb3f7be4.mjs} +1 -1
- package/{OnlineQueryForm-9248341f.mjs → OnlineQueryForm-528af6ed.mjs} +5 -5
- package/{OnlineSearchFormItem-1e437bd3.mjs → OnlineSearchFormItem-51eefaf4.mjs} +2 -2
- package/{OnlineSelectCascade-d631ed72.mjs → OnlineSelectCascade-b218691c.mjs} +1 -1
- package/{OnlineSubFormDetail-8be879b9.mjs → OnlineSubFormDetail-a1b7f33f.mjs} +6 -6
- package/{OnlineTabAutoModal-c9ca3c24.mjs → OnlineTabAutoModal-1c7c4ed2.mjs} +7 -7
- package/{OnlineTabDetailModal-fd4c9a72.mjs → OnlineTabDetailModal-7c45e727.mjs} +8 -8
- package/{OnlineTabForm-1940e88b.mjs → OnlineTabForm-9682158f.mjs} +7 -7
- package/{OnlineTabFormDetail-2aa67564.mjs → OnlineTabFormDetail-b8650175.mjs} +7 -7
- package/{PageAttributeTable-66e7b485.mjs → PageAttributeTable-21314341.mjs} +6 -6
- package/{PhoneLoginForm-86437a9d.mjs → PhoneLoginForm-c3c16f16.mjs} +62 -62
- package/{ProcessOnlineForm-98ede18d.mjs → ProcessOnlineForm-d6113dec.mjs} +7 -7
- package/{QueryTable-65d3f54f.mjs → QueryTable-413d1366.mjs} +2 -2
- package/{SetSwitchOptions-f914bc17.mjs → SetSwitchOptions-82fd6265.mjs} +1 -1
- package/{ShareAddView-657f0f8b.mjs → ShareAddView-a2dba2ef.mjs} +22 -21
- package/{ShareEditView-1b945fd3.mjs → ShareEditView-ecd590dc.mjs} +22 -21
- package/{ShareView-222ed3d8.mjs → ShareView-84f333e7.mjs} +20 -19
- package/{ShareView.vue_vue_type_script_setup_true_lang-44fbeaff.mjs → ShareView.vue_vue_type_script_setup_true_lang-9a3a259e.mjs} +2 -2
- package/{SingleView-23b0cb4e.mjs → SingleView-d4f29169.mjs} +15 -14
- package/{SingleView.vue_vue_type_style_index_0_lang-e0f2f6c0.mjs → SingleView.vue_vue_type_style_index_0_lang-40ea7e64.mjs} +4 -4
- package/{SuperQuery-46032e66.mjs → SuperQuery-290f5080.mjs} +39 -38
- package/aiModal-6e338c79.mjs +175 -0
- package/{auth.data-626c5083.mjs → auth.data-e44c7975.mjs} +10 -9
- package/{index-a039036e.mjs → index-254a82b7.mjs} +49 -48
- package/index-30c0a14f.mjs +57 -0
- package/{index-f2c2d1cf.mjs → index-7890e2b4.mjs} +1 -1
- package/{index-c5a79b0b.mjs → index-7bab525f.mjs} +3 -3
- package/{index-1a2e8832.mjs → index-9bebbfe5.mjs} +2 -2
- package/{index-cce225be.mjs → index-bc0d747e.mjs} +2 -2
- package/index-c5737cbb.mjs +268 -0
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/{useCgformList-f3cb9156.mjs → useCgformList-52631580.mjs} +105 -88
- package/{useCustomHook-acb00837.mjs → useCustomHook-3a17a690.mjs} +11 -9
- package/{useExtendComponent-bb98e568.mjs → useExtendComponent-d1db211d.mjs} +607 -607
- package/useListButton-7f9674a0.mjs +765 -0
- package/{useTableSync-075826a1.mjs → useTableSync-dbfba20e.mjs} +31 -31
- package/CgformAddressModal-1131274c.mjs +0 -260
- package/CgformCopyList-5fba0810.mjs +0 -252
- package/DBAttributeTable-1a45c7b7.mjs +0 -502
- package/OnlCgformErpList-5c5acdaa.mjs +0 -488
- package/OnlineAutoList-84475f1b.mjs +0 -513
- package/OnlineAutoTreeList-20b9ce04.mjs +0 -523
- package/index-2fb8e07f.mjs +0 -239
- package/index-9e1e1e53.mjs +0 -57
- package/useListButton-98908683.mjs +0 -719
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
var
|
|
2
|
-
var n = (
|
|
1
|
+
var y = (f, m, e) => new Promise((o, u) => {
|
|
2
|
+
var n = (l) => {
|
|
3
3
|
try {
|
|
4
|
-
s(e.next(
|
|
4
|
+
s(e.next(l));
|
|
5
5
|
} catch (b) {
|
|
6
6
|
u(b);
|
|
7
7
|
}
|
|
8
|
-
}, T = (
|
|
8
|
+
}, T = (l) => {
|
|
9
9
|
try {
|
|
10
|
-
s(e.throw(
|
|
10
|
+
s(e.throw(l));
|
|
11
11
|
} catch (b) {
|
|
12
12
|
u(b);
|
|
13
13
|
}
|
|
14
|
-
}, s = (
|
|
14
|
+
}, s = (l) => l.done ? o(l.value) : Promise.resolve(l.value).then(n, T);
|
|
15
15
|
s((e = e.apply(f, m)).next());
|
|
16
16
|
});
|
|
17
|
-
import { inject as
|
|
17
|
+
import { inject as k, ref as w, computed as g, nextTick as v } from "vue";
|
|
18
18
|
import { V as N } from "./cgform.data-0ca62d09.mjs";
|
|
19
19
|
import { pick as R } from "lodash-es";
|
|
20
20
|
function L(f) {
|
|
21
|
-
const m =
|
|
21
|
+
const m = k("tables"), e = k("fullScreenRef"), o = w(), u = w(!1), n = w([]), T = g(() => ({
|
|
22
22
|
// 正常表格高度
|
|
23
23
|
normal: e != null && e.value ? 430 : 260,
|
|
24
24
|
// 没有 toolbar 的表格高度
|
|
25
25
|
noToolbar: e != null && e.value ? 480 : 320
|
|
26
|
-
})), s = g(() => ["id"].concat(f.value.map((
|
|
26
|
+
})), s = g(() => ["id"].concat(f.value.map((i) => i.key))), l = g(() => ({
|
|
27
27
|
// 针对Online表单对虚拟滚动做出优化
|
|
28
28
|
// 虚拟滚动配置,y轴(行数)大于xx条数据时启用虚拟滚动
|
|
29
29
|
// update-begin--author:liaozhiyang---date:20231025---for:【QQYUN-6808】online编辑字段多了卡顿
|
|
@@ -38,30 +38,30 @@ function L(f) {
|
|
|
38
38
|
}
|
|
39
39
|
// update-begin--author:liaozhiyang---date:20231025---for:【QQYUN-6808】online编辑字段多了卡顿
|
|
40
40
|
}));
|
|
41
|
-
function b(
|
|
42
|
-
return
|
|
43
|
-
let a =
|
|
41
|
+
function b(i) {
|
|
42
|
+
return y(this, null, function* () {
|
|
43
|
+
let a = o.value;
|
|
44
44
|
if (yield a.fullValidateTable())
|
|
45
|
-
throw { code: N, activeKey:
|
|
45
|
+
throw { code: N, activeKey: i };
|
|
46
46
|
let D = a.getTableData().map((c) => R(c, s.value)), F = a.getDeleteData().map((c) => c.id);
|
|
47
47
|
return { tableData: D, deleteIds: F };
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
return
|
|
52
|
-
a ? (n.value = [], yield v(), yield
|
|
50
|
+
function h(i, a = !1) {
|
|
51
|
+
return y(this, null, function* () {
|
|
52
|
+
a ? (n.value = [], yield v(), yield o.value.addOrInsert(i, 0, null, { setActive: !1 }), yield v(), o.value.recalcDisableRows()) : (n.value = i, yield v(), o.value.recalcDisableRows());
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
function E(
|
|
56
|
-
let a =
|
|
55
|
+
function E(i) {
|
|
56
|
+
let a = o.value, x = i.value.tableRef, D = i.value.getRemoveIds(), F = x.getXTable().internalData.tableFullData, c = a.getXTable().internalData.tableFullData;
|
|
57
57
|
return F.forEach((r) => {
|
|
58
58
|
let p = !1;
|
|
59
|
-
if (c.forEach((
|
|
60
|
-
if (r.id ===
|
|
61
|
-
let
|
|
62
|
-
(r.dbFieldName !==
|
|
59
|
+
if (c.forEach((d) => {
|
|
60
|
+
if (r.id === d.id) {
|
|
61
|
+
let t = d.dbFieldName, I = d.dbFieldTxt;
|
|
62
|
+
(r.dbFieldName !== t || r.dbFieldTxt !== I) && a.setValues([
|
|
63
63
|
{
|
|
64
|
-
rowKey:
|
|
64
|
+
rowKey: d.id,
|
|
65
65
|
values: {
|
|
66
66
|
dbFieldName: r.dbFieldName,
|
|
67
67
|
dbFieldTxt: r.dbFieldTxt
|
|
@@ -69,20 +69,20 @@ function L(f) {
|
|
|
69
69
|
}
|
|
70
70
|
]), p = !0;
|
|
71
71
|
} else
|
|
72
|
-
D.forEach((
|
|
73
|
-
|
|
74
|
-
a.removeRowsById(
|
|
72
|
+
D.forEach((t) => {
|
|
73
|
+
t === d.id && (setTimeout(() => {
|
|
74
|
+
a.removeRowsById(t);
|
|
75
75
|
}, 0), p = !0);
|
|
76
76
|
});
|
|
77
77
|
}), !p) {
|
|
78
|
-
let
|
|
79
|
-
f.value.forEach((
|
|
80
|
-
|
|
81
|
-
}), a.addRows(
|
|
78
|
+
let d = Object.assign({}, r);
|
|
79
|
+
f.value.forEach((t) => {
|
|
80
|
+
t.key !== "dbFieldName" && t.key !== "dbFieldTxt" && d[t.key] == null && (d[t.key] = t.defaultValue);
|
|
81
|
+
}), a.addRows(d);
|
|
82
82
|
}
|
|
83
83
|
}), v();
|
|
84
84
|
}
|
|
85
|
-
return { tables: m, tableRef:
|
|
85
|
+
return { tables: m, tableRef: o, loading: u, dataSource: n, columnKeys: s, tableHeight: T, tableProps: l, syncTable: E, validateData: b, setDataSource: h };
|
|
86
86
|
}
|
|
87
87
|
export {
|
|
88
88
|
L as u
|
|
@@ -1,260 +0,0 @@
|
|
|
1
|
-
import { defineComponent as O, computed as m, ref as I, reactive as C, resolveComponent as d, openBlock as N, createElementBlock as E, Fragment as S, createVNode as a, unref as b, withCtx as t, createElementVNode as r, createTextVNode as v, createBlock as V, createCommentVNode as K, mergeProps as j } from "vue";
|
|
2
|
-
import { useModalInner as q, BasicModal as U } from "/@/components/Modal";
|
|
3
|
-
import { p as F } from "./utils-9fce7606.mjs";
|
|
4
|
-
import { copyTextToClipboard as P } from "/@/hooks/web/useCopyToClipboard";
|
|
5
|
-
import { getToken as R } from "/@/utils/auth";
|
|
6
|
-
import { useMessage as D } from "/@/hooks/web/useMessage";
|
|
7
|
-
import { buildUUID as H } from "/@/utils/uuid";
|
|
8
|
-
import { _ as J } from "./index-9e1e1e53.mjs";
|
|
9
|
-
import "./cgform.data-0ca62d09.mjs";
|
|
10
|
-
import "/@/utils/dict";
|
|
11
|
-
import "/@/utils/dict/JDictSelectUtil";
|
|
12
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
13
|
-
import "vue-router";
|
|
14
|
-
const z = { class: "content" }, Q = ["href"], G = ["href"], W = ["href"], X = /* @__PURE__ */ O({
|
|
15
|
-
__name: "CgformAddressModal",
|
|
16
|
-
setup(Y) {
|
|
17
|
-
const { createMessage: y } = D(), g = m(() => R()), c = I(["def"]), p = I(!1), i = C({
|
|
18
|
-
title: "",
|
|
19
|
-
content: "",
|
|
20
|
-
copyText: "",
|
|
21
|
-
copyTitle: "",
|
|
22
|
-
formId: ""
|
|
23
|
-
}), [T] = q((o) => {
|
|
24
|
-
Object.assign(i, o, {
|
|
25
|
-
formId: o.record.id
|
|
26
|
-
});
|
|
27
|
-
const e = F(o.record);
|
|
28
|
-
p.value = e.enableExternalLink === 1, p.value ? c.value = ["def", "external"] : c.value = ["def"];
|
|
29
|
-
}), l = m(() => {
|
|
30
|
-
const o = {};
|
|
31
|
-
if (p.value) {
|
|
32
|
-
const e = `/online/cgform/share/${i.formId}`;
|
|
33
|
-
o.add = `${e}/add`, o.edit = `${e}/u/{dataId}`, o.detail = `${e}/d/{dataId}`;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
list: i.content,
|
|
37
|
-
extLink: o
|
|
38
|
-
};
|
|
39
|
-
});
|
|
40
|
-
function h() {
|
|
41
|
-
const o = `-- 插入菜单
|
|
42
|
-
INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external)
|
|
43
|
-
VALUES ('${H()}', NULL, '${i.copyTitle}', '${i.copyText}', '1', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 0, 1, 0, 0, 0, NULL, '1', 0, 0, 'admin', null, NULL, NULL, 0)
|
|
44
|
-
`;
|
|
45
|
-
B(o);
|
|
46
|
-
}
|
|
47
|
-
function B(o) {
|
|
48
|
-
const e = P(o);
|
|
49
|
-
return e ? y.success("复制成功!") : y.error("复制失败!"), e;
|
|
50
|
-
}
|
|
51
|
-
const n = C({
|
|
52
|
-
base: "",
|
|
53
|
-
value: "",
|
|
54
|
-
visible: !1
|
|
55
|
-
}), $ = m(() => n.value ? n.base.replace(/{dataId}/, n.value) + "?token=" + g.value : void 0), w = m(() => ({
|
|
56
|
-
title: "请输入dataId",
|
|
57
|
-
minHeight: 120,
|
|
58
|
-
centered: !0,
|
|
59
|
-
canFullscreen: !1,
|
|
60
|
-
onOk: () => n.visible = !1,
|
|
61
|
-
onCancel: () => n.visible = !1
|
|
62
|
-
}));
|
|
63
|
-
function k(o) {
|
|
64
|
-
n.base = o, n.value = "", n.visible = !0;
|
|
65
|
-
}
|
|
66
|
-
function A() {
|
|
67
|
-
if (!n.value) {
|
|
68
|
-
y.warn("请输入dataId");
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
n.visible = !1;
|
|
72
|
-
}
|
|
73
|
-
return (o, e) => {
|
|
74
|
-
const u = d("a-input"), f = d("a-col"), _ = d("a-row"), x = d("a-button"), L = d("a-collapse-panel"), M = d("a-collapse");
|
|
75
|
-
return N(), E(S, null, [
|
|
76
|
-
a(b(U), {
|
|
77
|
-
onRegister: b(T),
|
|
78
|
-
title: "配置地址",
|
|
79
|
-
width: 750,
|
|
80
|
-
canFullscreen: !1,
|
|
81
|
-
showOkBtn: !1,
|
|
82
|
-
cancelText: "关闭"
|
|
83
|
-
}, {
|
|
84
|
-
default: t(() => [
|
|
85
|
-
r("div", z, [
|
|
86
|
-
a(M, {
|
|
87
|
-
activeKey: c.value,
|
|
88
|
-
"onUpdate:activeKey": e[2] || (e[2] = (s) => c.value = s),
|
|
89
|
-
class: "j-collapse",
|
|
90
|
-
bordered: !1,
|
|
91
|
-
ghost: ""
|
|
92
|
-
}, {
|
|
93
|
-
default: t(() => [
|
|
94
|
-
a(L, {
|
|
95
|
-
key: "def",
|
|
96
|
-
header: "配置地址",
|
|
97
|
-
class: "j-collapse-panel no-header"
|
|
98
|
-
}, {
|
|
99
|
-
default: t(() => [
|
|
100
|
-
a(_, { style: { "margin-bottom": "8px" } }, {
|
|
101
|
-
default: t(() => [
|
|
102
|
-
a(f, { span: 24 }, {
|
|
103
|
-
default: t(() => [
|
|
104
|
-
a(u, {
|
|
105
|
-
readOnly: !0,
|
|
106
|
-
addonBefore: "数据列表地址",
|
|
107
|
-
value: l.value.list
|
|
108
|
-
}, {
|
|
109
|
-
addonAfter: t(() => [
|
|
110
|
-
r("a", {
|
|
111
|
-
href: l.value.list,
|
|
112
|
-
target: "_blank"
|
|
113
|
-
}, "打开", 8, Q)
|
|
114
|
-
]),
|
|
115
|
-
_: 1
|
|
116
|
-
}, 8, ["value"])
|
|
117
|
-
]),
|
|
118
|
-
_: 1
|
|
119
|
-
})
|
|
120
|
-
]),
|
|
121
|
-
_: 1
|
|
122
|
-
}),
|
|
123
|
-
a(x, {
|
|
124
|
-
class: "copy-sql",
|
|
125
|
-
type: "primary",
|
|
126
|
-
size: "small",
|
|
127
|
-
onClick: h
|
|
128
|
-
}, {
|
|
129
|
-
default: t(() => e[5] || (e[5] = [
|
|
130
|
-
v("复制菜单SQL")
|
|
131
|
-
])),
|
|
132
|
-
_: 1
|
|
133
|
-
})
|
|
134
|
-
]),
|
|
135
|
-
_: 1
|
|
136
|
-
}),
|
|
137
|
-
p.value ? (N(), V(L, {
|
|
138
|
-
key: "external",
|
|
139
|
-
header: "外部链接"
|
|
140
|
-
}, {
|
|
141
|
-
default: t(() => [
|
|
142
|
-
a(_, { style: { "margin-bottom": "8px" } }, {
|
|
143
|
-
default: t(() => [
|
|
144
|
-
a(f, { span: 24 }, {
|
|
145
|
-
default: t(() => [
|
|
146
|
-
a(u, {
|
|
147
|
-
readOnly: !0,
|
|
148
|
-
addonBefore: "外部新增地址",
|
|
149
|
-
value: l.value.extLink.add
|
|
150
|
-
}, {
|
|
151
|
-
addonAfter: t(() => [
|
|
152
|
-
r("a", {
|
|
153
|
-
href: l.value.extLink.add + "?token=" + g.value,
|
|
154
|
-
target: "_blank"
|
|
155
|
-
}, "打开", 8, G)
|
|
156
|
-
]),
|
|
157
|
-
_: 1
|
|
158
|
-
}, 8, ["value"])
|
|
159
|
-
]),
|
|
160
|
-
_: 1
|
|
161
|
-
})
|
|
162
|
-
]),
|
|
163
|
-
_: 1
|
|
164
|
-
}),
|
|
165
|
-
a(_, { style: { "margin-bottom": "8px" } }, {
|
|
166
|
-
default: t(() => [
|
|
167
|
-
a(f, { span: 24 }, {
|
|
168
|
-
default: t(() => [
|
|
169
|
-
a(u, {
|
|
170
|
-
readOnly: !0,
|
|
171
|
-
addonBefore: "外部修改地址",
|
|
172
|
-
value: l.value.extLink.edit
|
|
173
|
-
}, {
|
|
174
|
-
addonAfter: t(() => [
|
|
175
|
-
r("a", {
|
|
176
|
-
onClick: e[0] || (e[0] = (s) => k(l.value.extLink.edit))
|
|
177
|
-
}, "打开")
|
|
178
|
-
]),
|
|
179
|
-
_: 1
|
|
180
|
-
}, 8, ["value"])
|
|
181
|
-
]),
|
|
182
|
-
_: 1
|
|
183
|
-
})
|
|
184
|
-
]),
|
|
185
|
-
_: 1
|
|
186
|
-
}),
|
|
187
|
-
a(_, { style: { "margin-bottom": "8px" } }, {
|
|
188
|
-
default: t(() => [
|
|
189
|
-
a(f, { span: 24 }, {
|
|
190
|
-
default: t(() => [
|
|
191
|
-
a(u, {
|
|
192
|
-
readOnly: !0,
|
|
193
|
-
addonBefore: "外部详情地址",
|
|
194
|
-
value: l.value.extLink.detail
|
|
195
|
-
}, {
|
|
196
|
-
addonAfter: t(() => [
|
|
197
|
-
r("a", {
|
|
198
|
-
onClick: e[1] || (e[1] = (s) => k(l.value.extLink.detail))
|
|
199
|
-
}, "打开")
|
|
200
|
-
]),
|
|
201
|
-
_: 1
|
|
202
|
-
}, 8, ["value"])
|
|
203
|
-
]),
|
|
204
|
-
_: 1
|
|
205
|
-
})
|
|
206
|
-
]),
|
|
207
|
-
_: 1
|
|
208
|
-
}),
|
|
209
|
-
e[6] || (e[6] = r("div", { style: { "text-align": "right", color: "red" } }, [
|
|
210
|
-
v("注意:"),
|
|
211
|
-
r("span", { style: { "font-weight": "bold" } }, "{dataId}"),
|
|
212
|
-
v(" 为数据id")
|
|
213
|
-
], -1))
|
|
214
|
-
]),
|
|
215
|
-
_: 1
|
|
216
|
-
})) : K("", !0)
|
|
217
|
-
]),
|
|
218
|
-
_: 1
|
|
219
|
-
}, 8, ["activeKey"])
|
|
220
|
-
])
|
|
221
|
-
]),
|
|
222
|
-
_: 1
|
|
223
|
-
}, 8, ["onRegister"]),
|
|
224
|
-
a(b(U), j({
|
|
225
|
-
visible: n.visible,
|
|
226
|
-
"onUpdate:visible": e[4] || (e[4] = (s) => n.visible = s)
|
|
227
|
-
}, w.value), {
|
|
228
|
-
footer: t(() => [
|
|
229
|
-
r("a", {
|
|
230
|
-
href: $.value,
|
|
231
|
-
target: "_blank"
|
|
232
|
-
}, [
|
|
233
|
-
a(x, {
|
|
234
|
-
type: "primary",
|
|
235
|
-
onClick: A
|
|
236
|
-
}, {
|
|
237
|
-
default: t(() => e[7] || (e[7] = [
|
|
238
|
-
v("确定")
|
|
239
|
-
])),
|
|
240
|
-
_: 1
|
|
241
|
-
})
|
|
242
|
-
], 8, W)
|
|
243
|
-
]),
|
|
244
|
-
default: t(() => [
|
|
245
|
-
a(u, {
|
|
246
|
-
placeholder: "请输入dataId",
|
|
247
|
-
value: n.value,
|
|
248
|
-
"onUpdate:value": e[3] || (e[3] = (s) => n.value = s)
|
|
249
|
-
}, null, 8, ["value"])
|
|
250
|
-
]),
|
|
251
|
-
_: 1
|
|
252
|
-
}, 16, ["visible"])
|
|
253
|
-
], 64);
|
|
254
|
-
};
|
|
255
|
-
}
|
|
256
|
-
});
|
|
257
|
-
const pe = /* @__PURE__ */ J(X, [["__scopeId", "data-v-f786f675"]]);
|
|
258
|
-
export {
|
|
259
|
-
pe as default
|
|
260
|
-
};
|
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
import { defineComponent as B, provide as _, watch as k, resolveComponent as e, openBlock as M, createElementBlock as S, Fragment as v, createElementVNode as I, normalizeClass as q, createVNode as t, withCtx as i, createTextVNode as m, createCommentVNode as y } from "vue";
|
|
2
|
-
import { BasicTable as L, TableAction as N } from "/@/components/Table";
|
|
3
|
-
import { C as V } from "./CgformModal-c4a4e0c2.mjs";
|
|
4
|
-
import F from "./DbToOnlineModal-f28ff0a3.mjs";
|
|
5
|
-
import O from "./CustomButtonList-c453b654.mjs";
|
|
6
|
-
import $ from "./EnhanceJsModal-dc4f9ade.mjs";
|
|
7
|
-
import P from "./EnhanceJavaModal-d5a93f2a.mjs";
|
|
8
|
-
import z from "./EnhanceSqlModal-984f045d.mjs";
|
|
9
|
-
import Q from "./AuthManagerDrawer-32556109.mjs";
|
|
10
|
-
import Y from "./AuthSetterModal-364f1f67.mjs";
|
|
11
|
-
import { C as j, u as G } from "./useCgformList-f3cb9156.mjs";
|
|
12
|
-
import { _ as H } from "./index-9e1e1e53.mjs";
|
|
13
|
-
import "/@/components/Icon";
|
|
14
|
-
import "/@/components/Modal";
|
|
15
|
-
import "/@/components/Form/index";
|
|
16
|
-
import "/@/hooks/web/useMessage";
|
|
17
|
-
import "./useSchemas-b074f3a1.mjs";
|
|
18
|
-
import "ant-design-vue";
|
|
19
|
-
import "@ant-design/icons-vue";
|
|
20
|
-
import "/@/utils/common/compUtils";
|
|
21
|
-
import "/@/hooks/web/usePermission";
|
|
22
|
-
import "/@/utils/helper/validator";
|
|
23
|
-
import "./DBAttributeTable-1a45c7b7.mjs";
|
|
24
|
-
import "/@/components/jeecg/JVxeTable/types";
|
|
25
|
-
import "./useTableSync-075826a1.mjs";
|
|
26
|
-
import "./cgform.data-0ca62d09.mjs";
|
|
27
|
-
import "/@/utils/dict";
|
|
28
|
-
import "/@/utils/dict/JDictSelectUtil";
|
|
29
|
-
import "/@/utils/uuid";
|
|
30
|
-
import "lodash-es";
|
|
31
|
-
import "./PageAttributeTable-66e7b485.mjs";
|
|
32
|
-
import "./LinkTableConfigModal-7eeb3e58.mjs";
|
|
33
|
-
import "/@/utils/http/axios";
|
|
34
|
-
import "./LinkTableFieldConfigModal-b078fcef.mjs";
|
|
35
|
-
import "./FieldExtendJsonModal-bf04d70e.mjs";
|
|
36
|
-
import "./SetSwitchOptions-f914bc17.mjs";
|
|
37
|
-
import "/@/utils/is";
|
|
38
|
-
import "./constant-fa63bd66.mjs";
|
|
39
|
-
import "./CheckDictTable-8a938e3a.mjs";
|
|
40
|
-
import "/@/components/jeecg/JPrompt";
|
|
41
|
-
import "/@/hooks/web/useDesign";
|
|
42
|
-
import "./ForeignKeyTable-92decaea.mjs";
|
|
43
|
-
import "./IndexTable-2ded2014.mjs";
|
|
44
|
-
import "./QueryTable-65d3f54f.mjs";
|
|
45
|
-
import "./ExtendConfigModal-7d70f362.mjs";
|
|
46
|
-
import "/@/components/Form";
|
|
47
|
-
import "./useOnlineTest-e4bd8be3.mjs";
|
|
48
|
-
import "/@/utils";
|
|
49
|
-
import "./useExtendComponent-bb98e568.mjs";
|
|
50
|
-
import "/@/components/Form/src/componentMap";
|
|
51
|
-
import "/@/utils/propTypes";
|
|
52
|
-
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
53
|
-
import "/@/views/system/user/user.api";
|
|
54
|
-
import "/@/store/modules/user";
|
|
55
|
-
import "/@/utils/desform/customExpression";
|
|
56
|
-
import "/@/store/modules/permission";
|
|
57
|
-
import "/@/hooks/system/useListPage";
|
|
58
|
-
import "vue-router";
|
|
59
|
-
import "/@/components/Form/src/utils/Area";
|
|
60
|
-
import "/@/components/Preview/index";
|
|
61
|
-
import "./LinkTableListPiece-e016b8e6.mjs";
|
|
62
|
-
import "/@/utils/auth";
|
|
63
|
-
import "/@/api/common/api";
|
|
64
|
-
import "/@/hooks/web/useAppInject";
|
|
65
|
-
import "/@/assets/images/placeholderImage.png";
|
|
66
|
-
import "./OnlineSelectCascade-d631ed72.mjs";
|
|
67
|
-
import "/@/components/Loading";
|
|
68
|
-
import "./JModalTip-a927f85d.mjs";
|
|
69
|
-
import "@vueuse/core";
|
|
70
|
-
import "./utils-9fce7606.mjs";
|
|
71
|
-
import "./BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs";
|
|
72
|
-
import "./EnhanceJsHistory-8ddb0657.mjs";
|
|
73
|
-
import "/@/utils/dateUtil";
|
|
74
|
-
import "/@/store";
|
|
75
|
-
import "pinia";
|
|
76
|
-
import "/@/utils/cache";
|
|
77
|
-
import "./enhance.api-138e6826.mjs";
|
|
78
|
-
import "./enhance.data-6601ff44.mjs";
|
|
79
|
-
import "/@/components/Drawer";
|
|
80
|
-
import "./AuthFieldConfig-f1e224cc.mjs";
|
|
81
|
-
import "./auth.api-53df4c33.mjs";
|
|
82
|
-
import "./auth.data-626c5083.mjs";
|
|
83
|
-
import "/@/utils/index";
|
|
84
|
-
import "./AuthButtonConfig-d5bffca0.mjs";
|
|
85
|
-
import "./AuthDataConfig-d3b7afa4.mjs";
|
|
86
|
-
import "./LeftRole-b0e0b496.mjs";
|
|
87
|
-
import "./LeftDepart-52cb6743.mjs";
|
|
88
|
-
import "./LeftUser-dd4b10e2.mjs";
|
|
89
|
-
import "./AuthFieldTree-5cc0da05.mjs";
|
|
90
|
-
import "./AuthButtonTree-b0bd6c40.mjs";
|
|
91
|
-
import "./AuthDataTree-f14a98d9.mjs";
|
|
92
|
-
import "./cgformState-d9f8ec42.mjs";
|
|
93
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
94
|
-
const K = B({
|
|
95
|
-
name: "CgformCopyList",
|
|
96
|
-
components: {
|
|
97
|
-
BasicTable: L,
|
|
98
|
-
TableAction: N,
|
|
99
|
-
CgformModal: V,
|
|
100
|
-
DbToOnlineModal: F,
|
|
101
|
-
CustomButtonList: O,
|
|
102
|
-
EnhanceJsModal: $,
|
|
103
|
-
EnhanceJavaModal: P,
|
|
104
|
-
EnhanceSqlModal: z,
|
|
105
|
-
AuthManagerDrawer: Q,
|
|
106
|
-
AuthSetterModal: Y
|
|
107
|
-
},
|
|
108
|
-
setup() {
|
|
109
|
-
const o = j.copy;
|
|
110
|
-
_("cgformPageType", o);
|
|
111
|
-
const {
|
|
112
|
-
router: r,
|
|
113
|
-
pageContext: E,
|
|
114
|
-
getTableAction: A,
|
|
115
|
-
getDropDownAction: b,
|
|
116
|
-
onShowCustomButton: w,
|
|
117
|
-
onShowEnhanceJs: a,
|
|
118
|
-
onShowEnhanceSql: p,
|
|
119
|
-
onShowEnhanceJava: l,
|
|
120
|
-
registerCustomButtonModal: s,
|
|
121
|
-
registerEnhanceJsModal: c,
|
|
122
|
-
registerEnhanceSqlModal: u,
|
|
123
|
-
registerEnhanceJavaModal: g,
|
|
124
|
-
registerAuthManagerDrawer: d,
|
|
125
|
-
registerAuthSetterModal: h,
|
|
126
|
-
registerCgformModal: f,
|
|
127
|
-
registerDbToOnlineModal: C
|
|
128
|
-
} = G({
|
|
129
|
-
pageType: o,
|
|
130
|
-
designScope: "online-cgform-list",
|
|
131
|
-
columns: [
|
|
132
|
-
{ title: "视图表名", dataIndex: "tableName" },
|
|
133
|
-
{ title: "视图表描述", dataIndex: "tableTxt" },
|
|
134
|
-
{ title: "原表版本", dataIndex: "copyVersion" },
|
|
135
|
-
{ title: "视图版本", dataIndex: "tableVersion" }
|
|
136
|
-
],
|
|
137
|
-
formSchemas: [{ label: "表名", field: "tableName", component: "JInput" }]
|
|
138
|
-
}), { prefixCls: n, tableContext: R } = E, [D, { reload: T }, { rowSelection: J }] = R;
|
|
139
|
-
return k(r.currentRoute, () => T()), {
|
|
140
|
-
prefixCls: n,
|
|
141
|
-
reload: T,
|
|
142
|
-
rowSelection: J,
|
|
143
|
-
getTableAction: A,
|
|
144
|
-
getDropDownAction: b,
|
|
145
|
-
onShowCustomButton: w,
|
|
146
|
-
onShowEnhanceJs: a,
|
|
147
|
-
onShowEnhanceSql: p,
|
|
148
|
-
onShowEnhanceJava: l,
|
|
149
|
-
registerCustomButtonModal: s,
|
|
150
|
-
registerEnhanceJsModal: c,
|
|
151
|
-
registerEnhanceSqlModal: u,
|
|
152
|
-
registerEnhanceJavaModal: g,
|
|
153
|
-
registerAuthManagerDrawer: d,
|
|
154
|
-
registerAuthSetterModal: h,
|
|
155
|
-
registerTable: D,
|
|
156
|
-
registerCgformModal: f,
|
|
157
|
-
registerDbToOnlineModal: C
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
}), U = {
|
|
161
|
-
key: 0,
|
|
162
|
-
style: { color: "limegreen" }
|
|
163
|
-
}, W = {
|
|
164
|
-
key: 1,
|
|
165
|
-
style: { color: "red" }
|
|
166
|
-
};
|
|
167
|
-
function X(o, r, E, A, b, w) {
|
|
168
|
-
const a = e("a-button"), p = e("TableAction"), l = e("BasicTable"), s = e("CgformModal"), c = e("EnhanceJsModal"), u = e("EnhanceJavaModal"), g = e("EnhanceSqlModal"), d = e("DbToOnlineModal"), h = e("CustomButtonList"), f = e("AuthManagerDrawer"), C = e("AuthSetterModal");
|
|
169
|
-
return M(), S(v, null, [
|
|
170
|
-
I("div", {
|
|
171
|
-
class: q(o.prefixCls)
|
|
172
|
-
}, [
|
|
173
|
-
t(l, {
|
|
174
|
-
onRegister: o.registerTable,
|
|
175
|
-
rowSelection: o.rowSelection
|
|
176
|
-
}, {
|
|
177
|
-
tableTitle: i(() => [
|
|
178
|
-
t(a, {
|
|
179
|
-
onClick: o.onShowCustomButton,
|
|
180
|
-
type: "primary",
|
|
181
|
-
preIcon: "ant-design:highlight"
|
|
182
|
-
}, {
|
|
183
|
-
default: i(() => r[0] || (r[0] = [
|
|
184
|
-
m("自定义按钮")
|
|
185
|
-
])),
|
|
186
|
-
_: 1
|
|
187
|
-
}, 8, ["onClick"]),
|
|
188
|
-
t(a, {
|
|
189
|
-
onClick: o.onShowEnhanceJs,
|
|
190
|
-
type: "primary",
|
|
191
|
-
preIcon: "ant-design:strikethrough"
|
|
192
|
-
}, {
|
|
193
|
-
default: i(() => r[1] || (r[1] = [
|
|
194
|
-
m("JS增强")
|
|
195
|
-
])),
|
|
196
|
-
_: 1
|
|
197
|
-
}, 8, ["onClick"]),
|
|
198
|
-
t(a, {
|
|
199
|
-
onClick: o.onShowEnhanceSql,
|
|
200
|
-
type: "primary",
|
|
201
|
-
preIcon: "ant-design:filter"
|
|
202
|
-
}, {
|
|
203
|
-
default: i(() => r[2] || (r[2] = [
|
|
204
|
-
m("SQL增强")
|
|
205
|
-
])),
|
|
206
|
-
_: 1
|
|
207
|
-
}, 8, ["onClick"]),
|
|
208
|
-
t(a, {
|
|
209
|
-
onClick: o.onShowEnhanceJava,
|
|
210
|
-
type: "primary",
|
|
211
|
-
preIcon: "ant-design:tool"
|
|
212
|
-
}, {
|
|
213
|
-
default: i(() => r[3] || (r[3] = [
|
|
214
|
-
m("Java增强")
|
|
215
|
-
])),
|
|
216
|
-
_: 1
|
|
217
|
-
}, 8, ["onClick"])
|
|
218
|
-
]),
|
|
219
|
-
dbSync: i(({ text: n }) => [
|
|
220
|
-
n === "Y" ? (M(), S("span", U, "已同步")) : y("", !0),
|
|
221
|
-
n === "N" ? (M(), S("span", W, "未同步")) : y("", !0)
|
|
222
|
-
]),
|
|
223
|
-
action: i(({ record: n }) => [
|
|
224
|
-
t(p, {
|
|
225
|
-
actions: o.getTableAction(n),
|
|
226
|
-
dropDownActions: o.getDropDownAction(n)
|
|
227
|
-
}, null, 8, ["actions", "dropDownActions"])
|
|
228
|
-
]),
|
|
229
|
-
_: 1
|
|
230
|
-
}, 8, ["onRegister", "rowSelection"])
|
|
231
|
-
], 2),
|
|
232
|
-
t(s, {
|
|
233
|
-
onRegister: o.registerCgformModal,
|
|
234
|
-
actionButton: !1,
|
|
235
|
-
onSuccess: o.reload
|
|
236
|
-
}, null, 8, ["onRegister", "onSuccess"]),
|
|
237
|
-
t(c, { onRegister: o.registerEnhanceJsModal }, null, 8, ["onRegister"]),
|
|
238
|
-
t(u, { onRegister: o.registerEnhanceJavaModal }, null, 8, ["onRegister"]),
|
|
239
|
-
t(g, { onRegister: o.registerEnhanceSqlModal }, null, 8, ["onRegister"]),
|
|
240
|
-
t(d, {
|
|
241
|
-
onRegister: o.registerDbToOnlineModal,
|
|
242
|
-
onSuccess: o.reload
|
|
243
|
-
}, null, 8, ["onRegister", "onSuccess"]),
|
|
244
|
-
t(h, { onRegister: o.registerCustomButtonModal }, null, 8, ["onRegister"]),
|
|
245
|
-
t(f, { onRegister: o.registerAuthManagerDrawer }, null, 8, ["onRegister"]),
|
|
246
|
-
t(C, { onRegister: o.registerAuthSetterModal }, null, 8, ["onRegister"])
|
|
247
|
-
], 64);
|
|
248
|
-
}
|
|
249
|
-
const Ft = /* @__PURE__ */ H(K, [["render", X]]);
|
|
250
|
-
export {
|
|
251
|
-
Ft as default
|
|
252
|
-
};
|