@jeecg/online 3.6.2-GA → 3.7.0-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/AiModal-fe3988fb.mjs +84 -0
- package/AuthButtonConfig-d50a0a65.mjs +134 -0
- package/{AuthButtonTree-c2602a7c.mjs → AuthButtonTree-589395ed.mjs} +2 -2
- package/AuthDataConfig-7bb0cd85.mjs +237 -0
- package/{AuthDataTree-9dc58b20.mjs → AuthDataTree-6e3bb86f.mjs} +1 -1
- package/AuthFieldConfig-490fc0ab.mjs +139 -0
- package/{AuthFieldTree-d836be59.mjs → AuthFieldTree-b7cd091e.mjs} +1 -1
- package/AuthManagerDrawer-5e2ed5ce.mjs +118 -0
- package/AuthSetterModal-6f74449c.mjs +273 -0
- package/{CgformCopyList-86157923.mjs → CgformCopyList-8077ccc6.mjs} +47 -45
- package/{CgformModal-5cf02d51.mjs → CgformModal-36faf29a.mjs} +256 -246
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-c2ceb064.mjs → CgreportModal-5a23d089.mjs} +140 -117
- package/CheckDictTable-b5cb0e2b.mjs +226 -0
- package/{CodeFileListModal-f747daae.mjs → CodeFileListModal-0e26b7e0.mjs} +2 -2
- package/{CodeFileViewModal-a9fb2900.mjs → CodeFileViewModal-9d4a5b5f.mjs} +36 -32
- package/CodeGeneratorModal-b722d976.mjs +238 -0
- package/{CustomButtonList-b9b27a93.mjs → CustomButtonList-37639061.mjs} +118 -100
- package/{DBAttributeTable-6bdcb1e8.mjs → DBAttributeTable-95dc66c1.mjs} +110 -89
- package/{DbToOnlineModal-3705e91a.mjs → DbToOnlineModal-f49b9530.mjs} +56 -50
- package/DetailForm-4aa2570b.mjs +485 -0
- package/{EnhanceJavaModal-c13de6e0.mjs → EnhanceJavaModal-98934198.mjs} +3 -3
- package/{EnhanceJsHistory-154101f0.mjs → EnhanceJsHistory-9c4acdaf.mjs} +2 -2
- package/EnhanceJsModal-247f640d.mjs +532 -0
- package/{EnhanceSqlModal-221c22dc.mjs → EnhanceSqlModal-65b74b0f.mjs} +3 -3
- package/ExtendConfigModal-00f2fb55.mjs +117 -0
- package/FieldExtendJsonModal-cc7fce26.mjs +277 -0
- package/{FileSelectModal-de40a706.mjs → FileSelectModal-38660e3c.mjs} +1 -1
- package/{ForeignKeyTable-22989042.mjs → ForeignKeyTable-a78cb5ad.mjs} +3 -3
- package/{IndexTable-833d34ff.mjs → IndexTable-1b496559.mjs} +10 -10
- package/{JModalTip-0413ad6a.mjs → JModalTip-4a83aaed.mjs} +1 -1
- package/{JOnlineSearchSelect-9ea89e13.mjs → JOnlineSearchSelect-34a37ec9.mjs} +1 -1
- package/{LeftDepart-b0a535c0.mjs → LeftDepart-8ade4bf7.mjs} +1 -1
- package/{LeftRole-22c90d6b.mjs → LeftRole-7d8c5acc.mjs} +1 -1
- package/{LeftUser-a44d63dd.mjs → LeftUser-b4d1372a.mjs} +3 -3
- package/LinkTableConfigModal-a138c85e.mjs +240 -0
- package/{LinkTableFieldConfigModal-06693eaa.mjs → LinkTableFieldConfigModal-17b413b0.mjs} +41 -41
- package/{LinkTableListPiece-46e8af51.mjs → LinkTableListPiece-2660d709.mjs} +1 -1
- package/{ModalFormDemo-d107fa87.mjs → ModalFormDemo-0544737d.mjs} +1 -1
- package/OnlCgformErpList-30e416c8.mjs +470 -0
- package/OnlCgformErpSubTable-9a876058.mjs +427 -0
- package/OnlCgformInnerSubTable-290ace5d.mjs +266 -0
- package/OnlCgformInnerTableList-f89b6687.mjs +458 -0
- package/OnlCgformTabList-7a2f2c03.mjs +408 -0
- package/OnlineAutoList-46c6c8b9.mjs +493 -0
- package/OnlineAutoModal-971bef13.mjs +236 -0
- package/{OnlineAutoTreeList-ec27d271.mjs → OnlineAutoTreeList-3b92454c.mjs} +206 -204
- package/{OnlineCustomModal-3e6792d3.mjs → OnlineCustomModal-594244f3.mjs} +15 -11
- package/{OnlineDetailModal-f40e37e1.mjs → OnlineDetailModal-2a271e0b.mjs} +74 -64
- package/OnlineForm-018981b2.mjs +924 -0
- package/OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs +1 -0
- package/OnlineFormDetail-e036cd11.mjs +342 -0
- package/OnlineFormUrlAdd-7fb3dcca.mjs +115 -0
- package/OnlineFormUrlDetail-b2292137.mjs +119 -0
- package/OnlineFormUrlEdit-44080fb3.mjs +113 -0
- package/OnlineFormUrlSuccess-af285b02.mjs +59 -0
- package/OnlineQueryForm-998c12a4.mjs +444 -0
- package/{OnlineSearchFormItem-fe308194.mjs → OnlineSearchFormItem-6feacae6.mjs} +2 -2
- package/{OnlineSelectCascade-abc345f9.mjs → OnlineSelectCascade-471fcc76.mjs} +1 -1
- package/{OnlineSubFormDetail-02326a8c.mjs → OnlineSubFormDetail-03f8ee5c.mjs} +29 -27
- package/OnlineTabAutoModal-7b9bcd0b.mjs +306 -0
- package/{OnlineTabDetailModal-d23bd4c9.mjs → OnlineTabDetailModal-88143301.mjs} +22 -20
- package/OnlineTabForm-9ad7d29a.mjs +805 -0
- package/OnlineTabFormDetail-bbf23caa.mjs +327 -0
- package/PageAttributeTable-6c23547b.mjs +446 -0
- package/{ProcessOnlineForm-84f4d02d.mjs → ProcessOnlineForm-b42198f5.mjs} +32 -28
- package/QueryTable-96b3dbd0.mjs +144 -0
- package/SetSwitchOptions-a452fa0f.mjs +62 -0
- package/SuperQuery-cbfba908.mjs +975 -0
- package/{auth.data-8be5c9e3.mjs → auth.data-22948e87.mjs} +56 -14
- package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
- package/constant-fa63bd66.mjs +10 -0
- package/{enhance.data-efc7e155.mjs → enhance.data-3304d553.mjs} +3 -3
- package/index-173949bb.mjs +57 -0
- package/{index-0a93652b.mjs → index-581bef24.mjs} +29 -27
- package/{index-e1bda35b.mjs → index-d2abb8a0.mjs} +394 -361
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-8755a94e.mjs +426 -0
- package/useExtendComponent-bb7cca20.mjs +4295 -0
- package/useFormUrl-2ee1a82d.mjs +24 -0
- package/useListButton-7ddb9a46.mjs +697 -0
- package/{useSchemas-0433a403.mjs → useSchemas-47e45edc.mjs} +167 -86
- package/{useTableSync-774c3774.mjs → useTableSync-f6089e8a.mjs} +1 -1
- package/AuthButtonConfig-f142147a.mjs +0 -125
- package/AuthDataConfig-8e5c7b0c.mjs +0 -212
- package/AuthFieldConfig-e9a45f94.mjs +0 -139
- package/AuthManagerDrawer-5b558c23.mjs +0 -114
- package/AuthSetterModal-0cc557cf.mjs +0 -267
- package/CgreportModal-2eb9c9e1.mjs +0 -13
- package/CheckDictTable-27102064.mjs +0 -211
- package/CodeGeneratorModal-3a0e9f0e.mjs +0 -233
- package/DetailForm-cdeb54e3.mjs +0 -462
- package/EnhanceJsModal-6158804c.mjs +0 -311
- package/ExtendConfigModal-0564ef83.mjs +0 -111
- package/FieldExtendJsonModal-40d961c1.mjs +0 -219
- package/LinkTableConfigModal-5edaa08d.mjs +0 -230
- package/OnlCgformErpList-4c51cdb3.mjs +0 -454
- package/OnlCgformErpSubTable-d7081b9f.mjs +0 -403
- package/OnlCgformInnerSubTable-4c3925bb.mjs +0 -253
- package/OnlCgformInnerTableList-1e5014fa.mjs +0 -444
- package/OnlCgformTabList-c59c7cc7.mjs +0 -395
- package/OnlineAutoList-a7a9de5d.mjs +0 -479
- package/OnlineAutoModal-a33f1a63.mjs +0 -207
- package/OnlineForm-fb3a2379.mjs +0 -750
- package/OnlineFormDetail-52b1c303.mjs +0 -297
- package/OnlineQueryForm-7c70734e.mjs +0 -386
- package/OnlineTabAutoModal-6d9da8b0.mjs +0 -254
- package/OnlineTabForm-29ca07f7.mjs +0 -766
- package/OnlineTabFormDetail-aa7e1144.mjs +0 -324
- package/PageAttributeTable-d82946c5.mjs +0 -404
- package/QueryTable-d4599fca.mjs +0 -115
- package/SuperQuery-07162778.mjs +0 -843
- package/constant-754f1a9d.mjs +0 -9
- package/index-73993b18.mjs +0 -56
- package/useCgformList-b135794d.mjs +0 -400
- package/useExtendComponent-f4e29152.mjs +0 -3926
- package/useListButton-4dd33e7a.mjs +0 -676
package/constant-754f1a9d.mjs
DELETED
package/index-73993b18.mjs
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import u from "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
2
|
-
import { defineComponent as m, resolveComponent as l, openBlock as a, createElementBlock as v, createVNode as f, defineAsyncComponent as s } from "vue";
|
|
3
|
-
import { useMessage as g } from "/@/hooks/web/useMessage";
|
|
4
|
-
import { useRoute as d } from "vue-router";
|
|
5
|
-
const w = m({
|
|
6
|
-
name: "OnlCgReportList",
|
|
7
|
-
components: {
|
|
8
|
-
JPopupOnlReport: u
|
|
9
|
-
},
|
|
10
|
-
setup(e, { emit: r, refs: o }) {
|
|
11
|
-
g();
|
|
12
|
-
const t = d().path;
|
|
13
|
-
return {
|
|
14
|
-
id: t.substr(t.lastIndexOf("/") + 1)
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
}), b = (e, r) => {
|
|
18
|
-
const o = e.__vccOpts || e;
|
|
19
|
-
for (const [n, t] of r)
|
|
20
|
-
o[n] = t;
|
|
21
|
-
return o;
|
|
22
|
-
}, h = { class: "p-2" };
|
|
23
|
-
function O(e, r, o, n, t, c) {
|
|
24
|
-
const p = l("JPopupOnlReport");
|
|
25
|
-
return a(), v("div", h, [
|
|
26
|
-
f(p, {
|
|
27
|
-
id: e.id,
|
|
28
|
-
clickToRowSelect: !1
|
|
29
|
-
}, null, 8, ["id"])
|
|
30
|
-
]);
|
|
31
|
-
}
|
|
32
|
-
const i = /* @__PURE__ */ b(w, [["render", O]]), T = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
33
|
-
__proto__: null,
|
|
34
|
-
default: i
|
|
35
|
-
}, Symbol.toStringTag, { value: "Module" })), F = {
|
|
36
|
-
/**
|
|
37
|
-
* 注册组件
|
|
38
|
-
*/
|
|
39
|
-
install(e, r) {
|
|
40
|
-
e.provide("baseImport", r.baseImport), e.component("OnlCgReportList", i);
|
|
41
|
-
const o = s(() => import("./JOnlineSearchSelect-9ea89e13.mjs"));
|
|
42
|
-
e.component("JOnlineSearchSelect", o);
|
|
43
|
-
const n = s(() => import("./SuperQuery-07162778.mjs"));
|
|
44
|
-
e.component("SuperQuery", n);
|
|
45
|
-
},
|
|
46
|
-
getViews() {
|
|
47
|
-
return /* @__PURE__ */ Object.assign({ "./src/views/super/online/cgform/CgformCopyList.vue": () => import("./CgformCopyList-86157923.mjs"), "./src/views/super/online/cgform/auto/comp/JOnlineSearchSelect.vue": () => import("./JOnlineSearchSelect-9ea89e13.mjs"), "./src/views/super/online/cgform/auto/comp/OnlineForm.vue": () => import("./OnlineForm-fb3a2379.mjs"), "./src/views/super/online/cgform/auto/comp/OnlineFormDetail.vue": () => import("./OnlineFormDetail-52b1c303.mjs"), "./src/views/super/online/cgform/auto/comp/OnlinePopForm.vue": () => import("./useExtendComponent-f4e29152.mjs").then((e) => e.s), "./src/views/super/online/cgform/auto/comp/OnlinePopListModal.vue": () => import("./useExtendComponent-f4e29152.mjs").then((e) => e.w), "./src/views/super/online/cgform/auto/comp/OnlinePopModal.vue": () => import("./useExtendComponent-f4e29152.mjs").then((e) => e.t), "./src/views/super/online/cgform/auto/comp/OnlineQueryForm.vue": () => import("./OnlineQueryForm-7c70734e.mjs"), "./src/views/super/online/cgform/auto/comp/OnlineSearchFormItem.vue": () => import("./OnlineSearchFormItem-fe308194.mjs"), "./src/views/super/online/cgform/auto/comp/OnlineSelectCascade.vue": () => import("./OnlineSelectCascade-abc345f9.mjs"), "./src/views/super/online/cgform/auto/comp/OnlineSubForm.vue": () => import("./useExtendComponent-f4e29152.mjs").then((e) => e.r), "./src/views/super/online/cgform/auto/comp/OnlineSubFormDetail.vue": () => import("./OnlineSubFormDetail-02326a8c.mjs"), "./src/views/super/online/cgform/auto/comp/ProcessOnlineForm.vue": () => import("./ProcessOnlineForm-84f4d02d.mjs"), "./src/views/super/online/cgform/auto/comp/superquery/SuperQuery.vue": () => import("./SuperQuery-07162778.mjs"), "./src/views/super/online/cgform/auto/comp/superquery/SuperQueryValComponent.vue": () => import("./SuperQueryValComponent-7ad86d4b.mjs"), "./src/views/super/online/cgform/auto/default/OnlineAutoList.vue": () => import("./OnlineAutoList-a7a9de5d.mjs"), "./src/views/super/online/cgform/auto/default/OnlineAutoModal.vue": () => import("./OnlineAutoModal-a33f1a63.mjs"), "./src/views/super/online/cgform/auto/default/OnlineCustomModal.vue": () => import("./OnlineCustomModal-3e6792d3.mjs"), "./src/views/super/online/cgform/auto/default/OnlineDetailModal.vue": () => import("./OnlineDetailModal-f40e37e1.mjs"), "./src/views/super/online/cgform/auto/erp/OnlCgformErpList.vue": () => import("./OnlCgformErpList-4c51cdb3.mjs"), "./src/views/super/online/cgform/auto/erp/OnlCgformErpSubTable.vue": () => import("./OnlCgformErpSubTable-d7081b9f.mjs"), "./src/views/super/online/cgform/auto/innerTable/OnlCgformInnerSubTable.vue": () => import("./OnlCgformInnerSubTable-4c3925bb.mjs"), "./src/views/super/online/cgform/auto/innerTable/OnlCgformInnerTableList.vue": () => import("./OnlCgformInnerTableList-1e5014fa.mjs"), "./src/views/super/online/cgform/auto/tab/OnlCgformTabList.vue": () => import("./OnlCgformTabList-c59c7cc7.mjs"), "./src/views/super/online/cgform/auto/tab/modal/OnlineTabAutoModal.vue": () => import("./OnlineTabAutoModal-6d9da8b0.mjs"), "./src/views/super/online/cgform/auto/tab/modal/OnlineTabDetailModal.vue": () => import("./OnlineTabDetailModal-d23bd4c9.mjs"), "./src/views/super/online/cgform/auto/tab/modal/OnlineTabForm.vue": () => import("./OnlineTabForm-29ca07f7.mjs"), "./src/views/super/online/cgform/auto/tab/modal/OnlineTabFormDetail.vue": () => import("./OnlineTabFormDetail-aa7e1144.mjs"), "./src/views/super/online/cgform/auto/tree/OnlineAutoTreeList.vue": () => import("./OnlineAutoTreeList-ec27d271.mjs"), "./src/views/super/online/cgform/components/CgformModal.vue": () => import("./CgformModal-5cf02d51.mjs").then((e) => e.h), "./src/views/super/online/cgform/components/CodeFileListModal.vue": () => import("./CodeFileListModal-f747daae.mjs"), "./src/views/super/online/cgform/components/CodeFileViewModal.vue": () => import("./CodeFileViewModal-a9fb2900.mjs"), "./src/views/super/online/cgform/components/CodeGeneratorModal.vue": () => import("./CodeGeneratorModal-3a0e9f0e.mjs"), "./src/views/super/online/cgform/components/DbToOnlineModal.vue": () => import("./DbToOnlineModal-3705e91a.mjs"), "./src/views/super/online/cgform/components/ExtendConfigModal.vue": () => import("./ExtendConfigModal-0564ef83.mjs"), "./src/views/super/online/cgform/components/FileSelectModal.vue": () => import("./FileSelectModal-de40a706.mjs"), "./src/views/super/online/cgform/components/auth/AuthManagerDrawer.vue": () => import("./AuthManagerDrawer-5b558c23.mjs"), "./src/views/super/online/cgform/components/auth/AuthSetterModal.vue": () => import("./AuthSetterModal-0cc557cf.mjs"), "./src/views/super/online/cgform/components/auth/manager/AuthButtonConfig.vue": () => import("./AuthButtonConfig-f142147a.mjs"), "./src/views/super/online/cgform/components/auth/manager/AuthDataConfig.vue": () => import("./AuthDataConfig-8e5c7b0c.mjs"), "./src/views/super/online/cgform/components/auth/manager/AuthFieldConfig.vue": () => import("./AuthFieldConfig-e9a45f94.mjs"), "./src/views/super/online/cgform/components/auth/setter/AuthButtonTree.vue": () => import("./AuthButtonTree-c2602a7c.mjs"), "./src/views/super/online/cgform/components/auth/setter/AuthDataTree.vue": () => import("./AuthDataTree-9dc58b20.mjs"), "./src/views/super/online/cgform/components/auth/setter/AuthFieldTree.vue": () => import("./AuthFieldTree-d836be59.mjs"), "./src/views/super/online/cgform/components/auth/setter/LeftDepart.vue": () => import("./LeftDepart-b0a535c0.mjs"), "./src/views/super/online/cgform/components/auth/setter/LeftRole.vue": () => import("./LeftRole-22c90d6b.mjs"), "./src/views/super/online/cgform/components/auth/setter/LeftUser.vue": () => import("./LeftUser-a44d63dd.mjs"), "./src/views/super/online/cgform/components/button/CustomButtonList.vue": () => import("./CustomButtonList-b9b27a93.mjs"), "./src/views/super/online/cgform/components/enhance/EnhanceJavaModal.vue": () => import("./EnhanceJavaModal-c13de6e0.mjs"), "./src/views/super/online/cgform/components/enhance/EnhanceJsHistory.vue": () => import("./EnhanceJsHistory-154101f0.mjs").then((e) => e.a), "./src/views/super/online/cgform/components/enhance/EnhanceJsModal.vue": () => import("./EnhanceJsModal-6158804c.mjs"), "./src/views/super/online/cgform/components/enhance/EnhanceSqlModal.vue": () => import("./EnhanceSqlModal-221c22dc.mjs"), "./src/views/super/online/cgform/components/tables/CheckDictTable.vue": () => import("./CheckDictTable-27102064.mjs"), "./src/views/super/online/cgform/components/tables/DBAttributeTable.vue": () => import("./DBAttributeTable-6bdcb1e8.mjs"), "./src/views/super/online/cgform/components/tables/ForeignKeyTable.vue": () => import("./ForeignKeyTable-22989042.mjs"), "./src/views/super/online/cgform/components/tables/IndexTable.vue": () => import("./IndexTable-833d34ff.mjs"), "./src/views/super/online/cgform/components/tables/PageAttributeTable.vue": () => import("./PageAttributeTable-d82946c5.mjs"), "./src/views/super/online/cgform/components/tables/QueryTable.vue": () => import("./QueryTable-d4599fca.mjs"), "./src/views/super/online/cgform/extend/FieldExtendJsonModal.vue": () => import("./FieldExtendJsonModal-40d961c1.mjs"), "./src/views/super/online/cgform/extend/form/DetailForm.vue": () => import("./DetailForm-cdeb54e3.mjs"), "./src/views/super/online/cgform/extend/linkTable/JModalTip.vue": () => import("./JModalTip-0413ad6a.mjs"), "./src/views/super/online/cgform/extend/linkTable/LinkTableCard.vue": () => import("./useExtendComponent-f4e29152.mjs").then((e) => e.x), "./src/views/super/online/cgform/extend/linkTable/LinkTableConfigModal.vue": () => import("./LinkTableConfigModal-5edaa08d.mjs"), "./src/views/super/online/cgform/extend/linkTable/LinkTableFieldConfigModal.vue": () => import("./LinkTableFieldConfigModal-06693eaa.mjs"), "./src/views/super/online/cgform/extend/linkTable/LinkTableListPiece.vue": () => import("./LinkTableListPiece-46e8af51.mjs"), "./src/views/super/online/cgform/extend/linkTable/LinkTableSelect.vue": () => import("./useExtendComponent-f4e29152.mjs").then((e) => e.v), "./src/views/super/online/cgform/index.vue": () => import("./index-e1bda35b.mjs"), "./src/views/super/online/cgreport/auto/OnlCgReportList.vue": () => Promise.resolve().then(() => T), "./src/views/super/online/cgreport/components/CgreportModal.vue": () => import("./CgreportModal-2eb9c9e1.mjs"), "./src/views/super/online/cgreport/demo/ModalFormDemo.vue": () => import("./ModalFormDemo-d107fa87.mjs"), "./src/views/super/online/cgreport/index.vue": () => import("./index-0a93652b.mjs") });
|
|
48
|
-
}
|
|
49
|
-
}, x = s(() => import("./OnlineSelectCascade-abc345f9.mjs")), k = s(() => import("./useExtendComponent-f4e29152.mjs").then((e) => e.x)), _ = s(() => import("./useExtendComponent-f4e29152.mjs").then((e) => e.v));
|
|
50
|
-
export {
|
|
51
|
-
k as L,
|
|
52
|
-
x as O,
|
|
53
|
-
b as _,
|
|
54
|
-
_ as a,
|
|
55
|
-
F as i
|
|
56
|
-
};
|
|
@@ -1,400 +0,0 @@
|
|
|
1
|
-
var ge = Object.defineProperty, ye = Object.defineProperties;
|
|
2
|
-
var Te = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var D = Object.getOwnPropertySymbols;
|
|
4
|
-
var we = Object.prototype.hasOwnProperty, Se = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var U = (t, o, a) => o in t ? ge(t, o, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[o] = a, S = (t, o) => {
|
|
6
|
-
for (var a in o || (o = {}))
|
|
7
|
-
we.call(o, a) && U(t, a, o[a]);
|
|
8
|
-
if (D)
|
|
9
|
-
for (var a of D(o))
|
|
10
|
-
Se.call(o, a) && U(t, a, o[a]);
|
|
11
|
-
return t;
|
|
12
|
-
}, C = (t, o) => ye(t, Te(o));
|
|
13
|
-
var g = (t, o, a) => new Promise((m, p) => {
|
|
14
|
-
var d = (l) => {
|
|
15
|
-
try {
|
|
16
|
-
u(a.next(l));
|
|
17
|
-
} catch (s) {
|
|
18
|
-
p(s);
|
|
19
|
-
}
|
|
20
|
-
}, i = (l) => {
|
|
21
|
-
try {
|
|
22
|
-
u(a.throw(l));
|
|
23
|
-
} catch (s) {
|
|
24
|
-
p(s);
|
|
25
|
-
}
|
|
26
|
-
}, u = (l) => l.done ? m(l.value) : Promise.resolve(l.value).then(d, i);
|
|
27
|
-
u((a = a.apply(t, o)).next());
|
|
28
|
-
});
|
|
29
|
-
import { unref as Ce, isRef as Me, watch as Le, ref as k, h as y } from "vue";
|
|
30
|
-
import { useRouter as ke } from "vue-router";
|
|
31
|
-
import { RadioGroup as ve, Radio as B, Input as _e } from "ant-design-vue";
|
|
32
|
-
import { useModal as f } from "/@/components/Modal";
|
|
33
|
-
import { useDrawer as xe } from "/@/components/Drawer";
|
|
34
|
-
import { useListPage as De } from "/@/hooks/system/useListPage";
|
|
35
|
-
import { l as Ue, d as Be, a as $e, b as Ne, c as Pe, e as Re, f as Ee, g as Oe } from "./CgformModal-5cf02d51.mjs";
|
|
36
|
-
import $ from "clipboard";
|
|
37
|
-
import { useMessage as Ie } from "/@/hooks/web/useMessage";
|
|
38
|
-
import { buildUUID as Ae } from "/@/utils/uuid";
|
|
39
|
-
import { isArray as Ye } from "/@/utils/is";
|
|
40
|
-
import { u as qe } from "./cgformState-d9f8ec42.mjs";
|
|
41
|
-
var P = /* @__PURE__ */ ((t) => (t[t.normal = 0] = "normal", t[t.copy = 1] = "copy", t))(P || {});
|
|
42
|
-
const v = "copy-this-text", N = "data-clipboard-text";
|
|
43
|
-
function Je() {
|
|
44
|
-
return { createCopyModal: je };
|
|
45
|
-
}
|
|
46
|
-
const { createMessage: M, createConfirm: Ge } = Ie();
|
|
47
|
-
function je(t) {
|
|
48
|
-
var p, d, i, u, l;
|
|
49
|
-
const o = Ce(t.copyText), a = `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)
|
|
50
|
-
VALUES ('${Ae()}', NULL, '${t.copyTitle}', '${o}', '1', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 0, 1, 0, 0, 0, NULL, '1', 0, 0, 'admin', null, NULL, NULL, 0)`;
|
|
51
|
-
let m = Ge(C(S({}, t), {
|
|
52
|
-
iconType: (p = t.iconType) != null ? p : "info",
|
|
53
|
-
width: (d = t.width) != null ? d : 500,
|
|
54
|
-
title: (i = t.title) != null ? i : "复制",
|
|
55
|
-
closable: !0,
|
|
56
|
-
maskClosable: (u = t.maskClosable) != null ? u : !0,
|
|
57
|
-
cancelText: "复制SQL",
|
|
58
|
-
okText: (l = t.okText) != null ? l : "复制URL",
|
|
59
|
-
cancelButtonProps: {
|
|
60
|
-
class: "copy-this-sql",
|
|
61
|
-
"data-clipboard-text": a
|
|
62
|
-
},
|
|
63
|
-
okButtonProps: C(S({}, t.okButtonProps), {
|
|
64
|
-
class: v,
|
|
65
|
-
[N]: o
|
|
66
|
-
}),
|
|
67
|
-
onOk() {
|
|
68
|
-
return new Promise((s) => {
|
|
69
|
-
const r = new $("." + v);
|
|
70
|
-
r.on("success", () => {
|
|
71
|
-
r.destroy(), M.success("复制URL成功"), s();
|
|
72
|
-
}), r.on("error", () => {
|
|
73
|
-
M.error("该浏览器不支持自动复制"), r.destroy(), s();
|
|
74
|
-
});
|
|
75
|
-
});
|
|
76
|
-
},
|
|
77
|
-
onCancel() {
|
|
78
|
-
return new Promise((s) => {
|
|
79
|
-
const r = new $(".copy-this-sql");
|
|
80
|
-
r.on("success", () => {
|
|
81
|
-
r.destroy(), M.success("复制插入菜单SQL成功"), s();
|
|
82
|
-
}), r.on("error", () => {
|
|
83
|
-
M.error("该浏览器不支持自动复制"), r.destroy(), s();
|
|
84
|
-
});
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
}));
|
|
88
|
-
return Me(t.copyText) && Le(t.copyText, (s) => {
|
|
89
|
-
m.update({
|
|
90
|
-
okButtonProps: C(S({}, t.okButtonProps), {
|
|
91
|
-
class: v,
|
|
92
|
-
[N]: s
|
|
93
|
-
})
|
|
94
|
-
});
|
|
95
|
-
}), m;
|
|
96
|
-
}
|
|
97
|
-
function at(t) {
|
|
98
|
-
const o = t.pageType === P.normal, a = ke(), m = qe(), p = De({
|
|
99
|
-
designScope: t.designScope,
|
|
100
|
-
tableProps: {
|
|
101
|
-
api: Ue,
|
|
102
|
-
columns: t.columns,
|
|
103
|
-
formConfig: {
|
|
104
|
-
//labelWidth: 200,
|
|
105
|
-
schemas: t.formSchemas
|
|
106
|
-
},
|
|
107
|
-
beforeFetch: (e) => {
|
|
108
|
-
let n = o ? 0 : 1, c = o ? void 0 : a.currentRoute.value.params.code;
|
|
109
|
-
return Ye(e.tableType_MultiString) && (e.tableType_MultiString = e.tableType_MultiString.join(",")), Object.assign(e, { copyType: n, physicId: c });
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}), { tableContext: d, createMessage: i, createConfirm: u } = p, [, { reload: l, setLoading: s }, { selectedRowKeys: r, selectedRows: h }] = d, [R, _] = f(), [E, O] = f(), [I, A] = f(), [Y, q] = f(), [J, G] = f(), [j, F] = f(), [Q, V] = f(), [K, X] = xe(), [z, H] = f();
|
|
113
|
-
function W() {
|
|
114
|
-
_.openModal(!0, { isUpdate: !1 });
|
|
115
|
-
}
|
|
116
|
-
let b = null;
|
|
117
|
-
function Z(e) {
|
|
118
|
-
b = e, _.openModal(!0, { isUpdate: !0, record: e });
|
|
119
|
-
}
|
|
120
|
-
function ee() {
|
|
121
|
-
b != null && b.id && (m.addChangedTable(b.id), b = null), l();
|
|
122
|
-
}
|
|
123
|
-
function te(e) {
|
|
124
|
-
return g(this, null, function* () {
|
|
125
|
-
yield $e(e), l();
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
function ne(e) {
|
|
129
|
-
return g(this, null, function* () {
|
|
130
|
-
yield Ne(e), l();
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
function oe() {
|
|
134
|
-
let e = r.value;
|
|
135
|
-
if (e.length <= 0) {
|
|
136
|
-
i.warning("请先选择一条记录!");
|
|
137
|
-
return;
|
|
138
|
-
}
|
|
139
|
-
u({
|
|
140
|
-
title: "删除",
|
|
141
|
-
content: "<p>移除只会删除表单配置;<br>删除则会删除对应的数据库表以及子表且不能恢复。<br>请确认您的操作…</p>",
|
|
142
|
-
iconType: "warning",
|
|
143
|
-
closable: !0,
|
|
144
|
-
okText: "移除",
|
|
145
|
-
cancelText: "删除",
|
|
146
|
-
cancelButtonProps: { danger: !0 },
|
|
147
|
-
onOk: () => g(this, null, function* () {
|
|
148
|
-
return x(Pe, e, !0);
|
|
149
|
-
}),
|
|
150
|
-
onCancel(n) {
|
|
151
|
-
return n != null && n.triggerCancel ? Promise.resolve() : x(Re, e, !0);
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
function x(e, n, c = !1) {
|
|
156
|
-
return g(this, null, function* () {
|
|
157
|
-
try {
|
|
158
|
-
s(!0);
|
|
159
|
-
const L = yield e(n);
|
|
160
|
-
return l(), c && (r.value = []), L;
|
|
161
|
-
} finally {
|
|
162
|
-
s(!1);
|
|
163
|
-
}
|
|
164
|
-
return Promise.reject();
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
function ae() {
|
|
168
|
-
T(([e]) => q.openModal(!0, { row: e }));
|
|
169
|
-
}
|
|
170
|
-
function le() {
|
|
171
|
-
T(([e]) => G.openModal(!0, { row: e }));
|
|
172
|
-
}
|
|
173
|
-
function ie() {
|
|
174
|
-
T(([e]) => F.openModal(!0, { row: e }));
|
|
175
|
-
}
|
|
176
|
-
function se() {
|
|
177
|
-
T(([e]) => V.openModal(!0, { row: e }));
|
|
178
|
-
}
|
|
179
|
-
function re() {
|
|
180
|
-
O.openModal(!0, {});
|
|
181
|
-
}
|
|
182
|
-
function T(e, n = 1, c = 1) {
|
|
183
|
-
h.value.length < n ? i.warning(`请先至少选中 ${n} 条记录`) : h.value.length > c ? i.warning(`最多只能选中 ${n} 条记录`) : e(h.value);
|
|
184
|
-
}
|
|
185
|
-
function ce() {
|
|
186
|
-
if (h.value.length === 0)
|
|
187
|
-
i.warning("请先选中一条记录");
|
|
188
|
-
else if (h.value.length > 1)
|
|
189
|
-
i.warning("代码生成只能选中一条记录");
|
|
190
|
-
else {
|
|
191
|
-
let e = h.value[0];
|
|
192
|
-
e ? e.isDbSynch != "Y" ? i.warning("请先同步数据库!") : e.tableType == 3 ? i.warning("请选中该表对应的主表") : A.openModal(!0, { code: e.id }) : i.warning("请选中当前页的数据!");
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
function ue(e) {
|
|
196
|
-
if (e.isTree == "Y")
|
|
197
|
-
a.push({ path: "/online/cgformTreeList/" + e.id });
|
|
198
|
-
else
|
|
199
|
-
switch (e.themeTemplate) {
|
|
200
|
-
case "erp":
|
|
201
|
-
a.push({ path: "/online/cgformErpList/" + e.id });
|
|
202
|
-
break;
|
|
203
|
-
case "tab":
|
|
204
|
-
a.push({ path: "/online/cgformTabList/" + e.id });
|
|
205
|
-
break;
|
|
206
|
-
case "innerTable":
|
|
207
|
-
a.push({ path: "/online/cgformInnerTableList/" + e.id });
|
|
208
|
-
break;
|
|
209
|
-
default:
|
|
210
|
-
a.push({ path: "/online/cgformList/" + e.id });
|
|
211
|
-
break;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
function pe(e) {
|
|
215
|
-
const n = k("normal"), c = k(!1), L = u({
|
|
216
|
-
iconType: "info",
|
|
217
|
-
title: "同步数据库",
|
|
218
|
-
content: () => y(
|
|
219
|
-
"div",
|
|
220
|
-
{
|
|
221
|
-
style: "margin: 20px 0;"
|
|
222
|
-
},
|
|
223
|
-
y(
|
|
224
|
-
ve,
|
|
225
|
-
{
|
|
226
|
-
value: n.value,
|
|
227
|
-
disabled: c.value,
|
|
228
|
-
"onUpdate:value": (w) => n.value = w
|
|
229
|
-
},
|
|
230
|
-
() => [y(B, { value: "normal" }, () => "普通同步(保留表数据)"), y(B, { value: "force" }, () => "强制同步(删除表,重新生成)")]
|
|
231
|
-
)
|
|
232
|
-
),
|
|
233
|
-
maskClosable: !0,
|
|
234
|
-
okText: "开始同步",
|
|
235
|
-
onOk() {
|
|
236
|
-
return g(this, null, function* () {
|
|
237
|
-
c.value = !0, L.update({
|
|
238
|
-
maskClosable: !1,
|
|
239
|
-
keyboard: !1,
|
|
240
|
-
okText: "同步中…",
|
|
241
|
-
okButtonProps: { loading: c.value },
|
|
242
|
-
cancelButtonProps: { disabled: c.value }
|
|
243
|
-
});
|
|
244
|
-
try {
|
|
245
|
-
yield Ee(e.id, n.value);
|
|
246
|
-
} catch (w) {
|
|
247
|
-
i.warn(w.message || w);
|
|
248
|
-
} finally {
|
|
249
|
-
l();
|
|
250
|
-
}
|
|
251
|
-
});
|
|
252
|
-
}
|
|
253
|
-
});
|
|
254
|
-
}
|
|
255
|
-
const { createCopyModal: fe } = Je();
|
|
256
|
-
function me(e) {
|
|
257
|
-
let n;
|
|
258
|
-
e.themeTemplate === "erp" ? n = `/online/cgformErpList/${e.id}` : e.themeTemplate === "innerTable" ? n = `/online/cgformInnerTableList/${e.id}` : e.themeTemplate === "tab" ? n = `/online/cgformTabList/${e.id}` : e.isTree == "Y" ? n = `/online/cgformTreeList/${e.id}` : n = `/online/cgformList/${e.id}`, fe({
|
|
259
|
-
title: `菜单链接【${e.tableTxt}】`,
|
|
260
|
-
content: n,
|
|
261
|
-
copyText: n,
|
|
262
|
-
copyTitle: `${e.tableTxt}`
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
function de(e) {
|
|
266
|
-
const n = k(e.tableName + "_copy");
|
|
267
|
-
u({
|
|
268
|
-
title: "复制表",
|
|
269
|
-
content: () => y(
|
|
270
|
-
"div",
|
|
271
|
-
{
|
|
272
|
-
style: "margin: 20px 0;"
|
|
273
|
-
},
|
|
274
|
-
[
|
|
275
|
-
"请输入新表名:",
|
|
276
|
-
y(_e, {
|
|
277
|
-
value: n.value,
|
|
278
|
-
"onUpdate:value": (c) => n.value = c
|
|
279
|
-
})
|
|
280
|
-
]
|
|
281
|
-
),
|
|
282
|
-
iconType: "info",
|
|
283
|
-
closable: !0,
|
|
284
|
-
okText: "复制",
|
|
285
|
-
onOk() {
|
|
286
|
-
n.value ? n.value === e.tableName ? i.warning("新表名和旧表名不能一致") : Oe(e.id, n.value).then(l) : i.warning("请输入新表名");
|
|
287
|
-
}
|
|
288
|
-
});
|
|
289
|
-
}
|
|
290
|
-
function he(e) {
|
|
291
|
-
return [
|
|
292
|
-
{
|
|
293
|
-
label: "编辑",
|
|
294
|
-
onClick: () => Z(e)
|
|
295
|
-
}
|
|
296
|
-
];
|
|
297
|
-
}
|
|
298
|
-
function be(e) {
|
|
299
|
-
return [
|
|
300
|
-
{
|
|
301
|
-
label: "同步数据库",
|
|
302
|
-
onClick: () => pe(e),
|
|
303
|
-
ifShow: () => o && e.isDbSynch != "Y"
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
// TODO 功能测试
|
|
307
|
-
label: "功能测试",
|
|
308
|
-
class: ["low-app-hide"],
|
|
309
|
-
onClick: () => ue(e),
|
|
310
|
-
ifShow: () => o ? e.isDbSynch == "Y" && e.tableType !== 3 : !0
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
label: "配置地址",
|
|
314
|
-
class: ["low-app-hide"],
|
|
315
|
-
onClick: () => me(e),
|
|
316
|
-
ifShow: () => o ? e.isDbSynch == "Y" && e.tableType !== 3 : !0
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
label: "权限控制",
|
|
320
|
-
onClick: () => X.openDrawer(!0, { cgformId: e.id })
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
label: "角色授权",
|
|
324
|
-
onClick: () => H.openModal(!0, { cgformId: e.id })
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
label: "视图管理",
|
|
328
|
-
class: ["low-app-hide"],
|
|
329
|
-
onClick: () => a.push(`/online/copyform/${e.id}`),
|
|
330
|
-
ifShow: () => o && e.hascopy == 1
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
label: "生成视图",
|
|
334
|
-
class: ["low-app-hide"],
|
|
335
|
-
popConfirm: {
|
|
336
|
-
title: "确定生成视图吗?",
|
|
337
|
-
placement: "left",
|
|
338
|
-
confirm: () => {
|
|
339
|
-
s(!0), Be(e.id).then(() => {
|
|
340
|
-
i.success("已成功生成视图");
|
|
341
|
-
}).finally(() => {
|
|
342
|
-
s(!1), l();
|
|
343
|
-
});
|
|
344
|
-
}
|
|
345
|
-
},
|
|
346
|
-
ifShow: () => o
|
|
347
|
-
},
|
|
348
|
-
{
|
|
349
|
-
label: "复制表",
|
|
350
|
-
onClick: () => de(e),
|
|
351
|
-
ifShow: () => o
|
|
352
|
-
},
|
|
353
|
-
{
|
|
354
|
-
label: "移除",
|
|
355
|
-
popConfirm: {
|
|
356
|
-
title: "确定移除吗?",
|
|
357
|
-
placement: "left",
|
|
358
|
-
confirm: () => ne(e.id)
|
|
359
|
-
}
|
|
360
|
-
},
|
|
361
|
-
{
|
|
362
|
-
label: "删除",
|
|
363
|
-
popConfirm: {
|
|
364
|
-
title: "确定删除吗?",
|
|
365
|
-
placement: "left",
|
|
366
|
-
confirm: () => te(e.id)
|
|
367
|
-
},
|
|
368
|
-
ifShow: () => o
|
|
369
|
-
}
|
|
370
|
-
];
|
|
371
|
-
}
|
|
372
|
-
return {
|
|
373
|
-
router: a,
|
|
374
|
-
pageContext: p,
|
|
375
|
-
onAdd: W,
|
|
376
|
-
onSuccess: ee,
|
|
377
|
-
onDeleteBatch: oe,
|
|
378
|
-
onImportDbTable: re,
|
|
379
|
-
onGenerateCode: ce,
|
|
380
|
-
onShowCustomButton: ae,
|
|
381
|
-
onShowEnhanceJs: le,
|
|
382
|
-
onShowEnhanceSql: ie,
|
|
383
|
-
onShowEnhanceJava: se,
|
|
384
|
-
getTableAction: he,
|
|
385
|
-
getDropDownAction: be,
|
|
386
|
-
registerCustomButtonModal: Y,
|
|
387
|
-
registerEnhanceJsModal: J,
|
|
388
|
-
registerEnhanceSqlModal: j,
|
|
389
|
-
registerEnhanceJavaModal: Q,
|
|
390
|
-
registerAuthManagerDrawer: K,
|
|
391
|
-
registerAuthSetterModal: z,
|
|
392
|
-
registerCgformModal: R,
|
|
393
|
-
registerDbToOnlineModal: E,
|
|
394
|
-
registerCodeGeneratorModal: I
|
|
395
|
-
};
|
|
396
|
-
}
|
|
397
|
-
export {
|
|
398
|
-
P as C,
|
|
399
|
-
at as u
|
|
400
|
-
};
|