@jeecg/online 3.6.2-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.
Files changed (127) hide show
  1. package/AiModal-6de335e3.mjs +84 -0
  2. package/AuthButtonConfig-89763932.mjs +154 -0
  3. package/{AuthButtonTree-3aa0ed49.mjs → AuthButtonTree-2d87d0b3.mjs} +6 -5
  4. package/AuthDataConfig-5c3a8e6b.mjs +238 -0
  5. package/{AuthDataTree-94e026e3.mjs → AuthDataTree-dd7a1240.mjs} +6 -6
  6. package/AuthFieldConfig-9f6fa06c.mjs +245 -0
  7. package/{AuthFieldTree-69864163.mjs → AuthFieldTree-e326fc38.mjs} +2 -2
  8. package/AuthManagerDrawer-76f15e8d.mjs +119 -0
  9. package/AuthSetterModal-f5d2e87f.mjs +274 -0
  10. package/{CgformCopyList-14b76108.mjs → CgformCopyList-365b3e8f.mjs} +49 -46
  11. package/CgformModal-21c5c387.mjs +671 -0
  12. package/{CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs → CgreportModal-edefa8e3.mjs} +153 -129
  13. package/CheckDictTable-1bc8322d.mjs +229 -0
  14. package/{CodeFileListModal-a6d3290d.mjs → CodeFileListModal-24601898.mjs} +5 -4
  15. package/CodeFileViewModal-2fe911f4.mjs +253 -0
  16. package/CodeGeneratorModal-f09fe903.mjs +282 -0
  17. package/CustomButtonList-f07bc695.mjs +397 -0
  18. package/{DBAttributeTable-370de07b.mjs → DBAttributeTable-285d40db.mjs} +118 -89
  19. package/DbToOnlineModal-5dcb67c3.mjs +169 -0
  20. package/DetailForm-deecbf3d.mjs +486 -0
  21. package/{EnhanceJavaModal-f63aa2d3.mjs → EnhanceJavaModal-45c66cd5.mjs} +3 -3
  22. package/{EnhanceJsHistory-352b46b1.mjs → EnhanceJsHistory-fab3102e.mjs} +2 -2
  23. package/EnhanceJsModal-175357a1.mjs +548 -0
  24. package/{EnhanceSqlModal-5e4ae84f.mjs → EnhanceSqlModal-7ea1b300.mjs} +3 -3
  25. package/ExtendConfigModal-a89ae052.mjs +117 -0
  26. package/FieldExtendJsonModal-32135634.mjs +277 -0
  27. package/{FileSelectModal-9a02560b.mjs → FileSelectModal-1643c8b9.mjs} +1 -1
  28. package/{ForeignKeyTable-6a843c4b.mjs → ForeignKeyTable-7f7e28a7.mjs} +3 -3
  29. package/{IndexTable-f8af9d44.mjs → IndexTable-cdcc2b48.mjs} +28 -20
  30. package/{JModalTip-33c7dc44.mjs → JModalTip-b055ab60.mjs} +1 -1
  31. package/JOnlineSearchSelect-22aae934.mjs +128 -0
  32. package/{LeftDepart-fa85523d.mjs → LeftDepart-d5615ed9.mjs} +1 -1
  33. package/{LeftRole-8b8dfe21.mjs → LeftRole-2ed8a2bf.mjs} +1 -1
  34. package/{LeftUser-dc24ef2f.mjs → LeftUser-22baa378.mjs} +3 -3
  35. package/LinkTableConfigModal-9242d750.mjs +240 -0
  36. package/{LinkTableFieldConfigModal-787bc55c.mjs → LinkTableFieldConfigModal-24adc50c.mjs} +41 -41
  37. package/{LinkTableListPiece-8499a318.mjs → LinkTableListPiece-f3a8e0d7.mjs} +1 -1
  38. package/{ModalFormDemo-977a49eb.mjs → ModalFormDemo-711418db.mjs} +1 -1
  39. package/OnlCgformErpList-58acdfa0.mjs +470 -0
  40. package/OnlCgformErpSubTable-9b1e1938.mjs +426 -0
  41. package/OnlCgformInnerSubTable-6c23781f.mjs +265 -0
  42. package/OnlCgformInnerTableList-4b5e14ed.mjs +458 -0
  43. package/OnlCgformTabList-019ad753.mjs +408 -0
  44. package/OnlineAutoList-48589d09.mjs +493 -0
  45. package/OnlineAutoModal-c2928847.mjs +239 -0
  46. package/{OnlineAutoTreeList-89265688.mjs → OnlineAutoTreeList-3baa1d00.mjs} +207 -204
  47. package/{OnlineCustomModal-518ad33c.mjs → OnlineCustomModal-9e17b6ce.mjs} +16 -12
  48. package/{OnlineDetailModal-9675390d.mjs → OnlineDetailModal-d5895734.mjs} +74 -64
  49. package/OnlineForm-9f1153ba.mjs +985 -0
  50. package/OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs +1 -0
  51. package/OnlineFormDetail-022ca117.mjs +342 -0
  52. package/OnlineFormUrlAdd-9715d70a.mjs +115 -0
  53. package/OnlineFormUrlDetail-8f864b1a.mjs +119 -0
  54. package/OnlineFormUrlEdit-ac985b36.mjs +113 -0
  55. package/OnlineFormUrlSuccess-3dfc54ab.mjs +59 -0
  56. package/OnlineQueryForm-eedb9a60.mjs +466 -0
  57. package/{OnlineSearchFormItem-0cc85a8a.mjs → OnlineSearchFormItem-6c557343.mjs} +2 -2
  58. package/{OnlineSelectCascade-4265c95d.mjs → OnlineSelectCascade-05c40fef.mjs} +1 -1
  59. package/{OnlineSubFormDetail-f0d2c016.mjs → OnlineSubFormDetail-58e896ce.mjs} +30 -28
  60. package/OnlineTabAutoModal-47b18ad6.mjs +306 -0
  61. package/{OnlineTabDetailModal-7356d3a8.mjs → OnlineTabDetailModal-82de1465.mjs} +22 -20
  62. package/OnlineTabForm-27655c83.mjs +817 -0
  63. package/OnlineTabFormDetail-8d0c40c0.mjs +327 -0
  64. package/PageAttributeTable-25e3b7da.mjs +466 -0
  65. package/{ProcessOnlineForm-67558898.mjs → ProcessOnlineForm-148632fe.mjs} +66 -56
  66. package/QueryTable-f7bfca7f.mjs +147 -0
  67. package/SetSwitchOptions-b2af757f.mjs +62 -0
  68. package/SuperQuery-a8592995.mjs +967 -0
  69. package/auth.api-ea1d33d4.mjs +41 -0
  70. package/auth.data-511e5197.mjs +217 -0
  71. package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
  72. package/constant-fa63bd66.mjs +10 -0
  73. package/{enhance.data-efc7e155.mjs → enhance.data-a67572e1.mjs} +11 -10
  74. package/index-1d1a6e56.mjs +57 -0
  75. package/{index-b7a05eef.mjs → index-30e0e923.mjs} +396 -362
  76. package/{index-49508cad.mjs → index-f30613d1.mjs} +29 -27
  77. package/main.index.js +1 -1
  78. package/package.json +1 -1
  79. package/style.css +1 -1
  80. package/useCgformList-f41d4dc1.mjs +426 -0
  81. package/useExtendComponent-dcae5c78.mjs +4399 -0
  82. package/useFormUrl-2ee1a82d.mjs +24 -0
  83. package/useListButton-bfac4ecf.mjs +697 -0
  84. package/{useSchemas-0433a403.mjs → useSchemas-a9c75b0f.mjs} +191 -101
  85. package/useTableSync-d7e9f18d.mjs +89 -0
  86. package/AuthButtonConfig-244ec09f.mjs +0 -125
  87. package/AuthDataConfig-83891eea.mjs +0 -212
  88. package/AuthFieldConfig-6b21915c.mjs +0 -139
  89. package/AuthManagerDrawer-300dd4e4.mjs +0 -114
  90. package/AuthSetterModal-a414fb35.mjs +0 -267
  91. package/CgformModal-eccfc38e.mjs +0 -611
  92. package/CgreportModal-2065f5a9.mjs +0 -13
  93. package/CheckDictTable-134cbb83.mjs +0 -211
  94. package/CodeFileViewModal-373e8058.mjs +0 -244
  95. package/CodeGeneratorModal-f08a89cd.mjs +0 -233
  96. package/CustomButtonList-02e3d897.mjs +0 -363
  97. package/DbToOnlineModal-9f13956f.mjs +0 -160
  98. package/DetailForm-424638eb.mjs +0 -462
  99. package/EnhanceJsModal-05c73a59.mjs +0 -311
  100. package/ExtendConfigModal-1dde390a.mjs +0 -111
  101. package/FieldExtendJsonModal-a70a9ccd.mjs +0 -219
  102. package/JOnlineSearchSelect-c287af12.mjs +0 -95
  103. package/LinkTableConfigModal-d4fbdef2.mjs +0 -230
  104. package/OnlCgformErpList-db45e22b.mjs +0 -454
  105. package/OnlCgformErpSubTable-54b50eec.mjs +0 -403
  106. package/OnlCgformInnerSubTable-fbca73e0.mjs +0 -253
  107. package/OnlCgformInnerTableList-782eaf04.mjs +0 -444
  108. package/OnlCgformTabList-a9e1e36a.mjs +0 -395
  109. package/OnlineAutoList-0583a910.mjs +0 -479
  110. package/OnlineAutoModal-510991eb.mjs +0 -207
  111. package/OnlineForm-1fa2d893.mjs +0 -750
  112. package/OnlineFormDetail-0e7294ca.mjs +0 -297
  113. package/OnlineQueryForm-1bfc8320.mjs +0 -386
  114. package/OnlineTabAutoModal-6f636ee2.mjs +0 -254
  115. package/OnlineTabForm-512d3951.mjs +0 -766
  116. package/OnlineTabFormDetail-5a70219d.mjs +0 -324
  117. package/PageAttributeTable-965dc58e.mjs +0 -404
  118. package/QueryTable-eb9a5b21.mjs +0 -115
  119. package/SuperQuery-5d1ca957.mjs +0 -843
  120. package/auth.api-d3a6c4b3.mjs +0 -39
  121. package/auth.data-8be5c9e3.mjs +0 -141
  122. package/constant-754f1a9d.mjs +0 -9
  123. package/index-0e3ab3af.mjs +0 -56
  124. package/useCgformList-423282b7.mjs +0 -400
  125. package/useExtendComponent-325fe3f1.mjs +0 -3926
  126. package/useListButton-cdbab702.mjs +0 -676
  127. package/useTableSync-774c3774.mjs +0 -87
@@ -1,39 +0,0 @@
1
- import { defHttp as o } from "/@/utils/http/axios";
2
- const l = (t, a) => o.get({ url: `/online/cgform/api/authColumn/${t}`, params: a }), r = (t) => o.put({ url: "/online/cgform/api/authColumn", params: t }), s = (t) => o.post({ url: "/online/cgform/api/authColumn", params: t }), i = (t, a) => o.get({ url: `/online/cgform/api/authButton/${t}`, params: a }), c = (t) => o.post({ url: "/online/cgform/api/authButton", params: t }), h = (t, a) => o.put({ url: `/online/cgform/api/authButton/${t}`, params: a }), p = (t, a) => o.get({ url: `/online/cgform/api/authData/${t}`, params: a }), g = (t) => o.put({ url: "/online/cgform/api/authData", params: t }), $ = (t, a) => a ? o.put({ url: "/online/cgform/api/authData", params: t }) : o.post({ url: "/online/cgform/api/authData", params: t }), m = (t, a) => o.delete({ url: `/online/cgform/api/authData/${t}`, params: a }), f = (t, a, e) => {
3
- let u = `/online/cgform/api/authPage/${t}/${a}`;
4
- return o.get({ url: u, params: e });
5
- }, d = (t, a) => {
6
- let e = `/online/cgform/api/validAuthData/${t}`;
7
- return o.get({ url: e, params: a });
8
- }, D = (t, a, e) => {
9
- let u = `/online/cgform/api/authPage/${t}/${a}`;
10
- return o.get({ url: u, params: e });
11
- }, A = (t) => o.get({ url: "/online/cgform/api/roleAuth", params: t }), B = (t, a, e) => {
12
- let u = `/online/cgform/api/roleColumnAuth/${t}/${a}`;
13
- return o.post({ url: u, params: e });
14
- }, C = (t, a, e) => {
15
- let u = `/online/cgform/api/roleDataAuth/${t}/${a}`;
16
- return o.post({ url: u, params: e });
17
- }, L = (t, a, e) => {
18
- let u = `/online/cgform/api/roleButtonAuth/${t}/${a}`;
19
- return o.post({ url: u, params: e });
20
- };
21
- export {
22
- l as a,
23
- r as b,
24
- s as c,
25
- i as d,
26
- c as e,
27
- h as f,
28
- p as g,
29
- $ as h,
30
- g as i,
31
- m as j,
32
- f as k,
33
- A as l,
34
- D as m,
35
- L as n,
36
- d as o,
37
- C as p,
38
- B as s
39
- };
@@ -1,141 +0,0 @@
1
- import { computed as s } from "vue";
2
- const n = [
3
- {
4
- title: "启用",
5
- dataIndex: "switch",
6
- width: 80,
7
- align: "center",
8
- slots: { customRender: "switch" }
9
- },
10
- {
11
- title: "字段名称",
12
- width: 200,
13
- dataIndex: "code"
14
- },
15
- {
16
- title: "字段描述",
17
- // width: 200,
18
- dataIndex: "title"
19
- },
20
- {
21
- title: "列表控制",
22
- dataIndex: "list",
23
- width: 120,
24
- slots: { customRender: "list" }
25
- },
26
- {
27
- title: "表单控制",
28
- dataIndex: "form",
29
- width: 180,
30
- slots: { customRender: "form" }
31
- }
32
- ], i = [
33
- {
34
- title: "启用",
35
- dataIndex: "switch",
36
- width: 80,
37
- slots: { customRender: "switch" }
38
- },
39
- {
40
- title: "名称",
41
- dataIndex: "title"
42
- },
43
- {
44
- title: "编码",
45
- dataIndex: "code"
46
- },
47
- {
48
- title: "权限控制",
49
- dataIndex: "control",
50
- width: 180,
51
- slots: { customRender: "control" }
52
- }
53
- ], u = [
54
- { code: "add", title: "新增", status: 0 },
55
- { code: "update", title: "编辑", status: 0 },
56
- { code: "delete", title: "删除", status: 0 },
57
- { code: "batch_delete", title: "批量删除", status: 0 },
58
- { code: "export", title: "导出", status: 0 },
59
- { code: "import", title: "导入", status: 0 },
60
- { code: "bpm", title: "提交流程", status: 0 },
61
- { code: "super_query", title: "高级查询", status: 0 }
62
- ], a = "USE_SQL_RULES", r = [
63
- {
64
- title: "启用",
65
- dataIndex: "switch",
66
- width: 80,
67
- slots: { customRender: "switch" }
68
- },
69
- {
70
- title: "规则名称",
71
- dataIndex: "ruleName",
72
- width: 130
73
- },
74
- {
75
- title: "规则描述",
76
- dataIndex: "description",
77
- customRender({ record: { ruleOperator: t, ruleValue: e, ruleColumn: d } }) {
78
- return t == a ? `自定义SQL: ${e}` : `${d} ${t} ${e}`;
79
- }
80
- }
81
- ];
82
- function c(t, e) {
83
- return { formSchemas: s(() => [
84
- {
85
- label: "规则名称",
86
- field: "ruleName",
87
- required: !0,
88
- component: "Input"
89
- },
90
- {
91
- label: "规则字段",
92
- field: "ruleColumn",
93
- component: "JSearchSelect",
94
- componentProps: {
95
- dictOptions: t.authFields,
96
- getPopupContainer: () => document.body
97
- },
98
- dynamicRules({ model: o }) {
99
- return [{ required: o.ruleOperator != a, message: "请输入规则字段" }];
100
- },
101
- show: ({ model: o }) => o.ruleOperator != a
102
- },
103
- {
104
- label: "条件规则",
105
- field: "ruleOperator",
106
- required: !0,
107
- component: "JDictSelectTag",
108
- componentProps: {
109
- dictCode: "rule_conditions",
110
- onChange: e.onRuleOperatorChange
111
- }
112
- },
113
- {
114
- label: "规则值",
115
- field: "ruleValue",
116
- required: !0,
117
- component: "Input"
118
- },
119
- {
120
- label: "状态",
121
- field: "status",
122
- required: !0,
123
- component: "RadioButtonGroup",
124
- componentProps: {
125
- options: [
126
- { label: "有效", value: 1 },
127
- { label: "无效", value: 0 }
128
- ]
129
- },
130
- defaultValue: 1
131
- }
132
- ]) };
133
- }
134
- export {
135
- a as U,
136
- n as a,
137
- i as b,
138
- u as c,
139
- r as d,
140
- c as u
141
- };
@@ -1,9 +0,0 @@
1
- const s = "erp", a = "tree", n = "normal", t = "innerTable", e = "tab", o = 6;
2
- export {
3
- s as E,
4
- t as I,
5
- o as L,
6
- n as N,
7
- e as T,
8
- a
9
- };
@@ -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-c287af12.mjs"));
42
- e.component("JOnlineSearchSelect", o);
43
- const n = s(() => import("./SuperQuery-5d1ca957.mjs"));
44
- e.component("SuperQuery", n);
45
- },
46
- getViews() {
47
- return /* @__PURE__ */ Object.assign({ "./src/views/super/online/cgform/CgformCopyList.vue": () => import("./CgformCopyList-14b76108.mjs"), "./src/views/super/online/cgform/auto/comp/JOnlineSearchSelect.vue": () => import("./JOnlineSearchSelect-c287af12.mjs"), "./src/views/super/online/cgform/auto/comp/OnlineForm.vue": () => import("./OnlineForm-1fa2d893.mjs"), "./src/views/super/online/cgform/auto/comp/OnlineFormDetail.vue": () => import("./OnlineFormDetail-0e7294ca.mjs"), "./src/views/super/online/cgform/auto/comp/OnlinePopForm.vue": () => import("./useExtendComponent-325fe3f1.mjs").then((e) => e.s), "./src/views/super/online/cgform/auto/comp/OnlinePopListModal.vue": () => import("./useExtendComponent-325fe3f1.mjs").then((e) => e.w), "./src/views/super/online/cgform/auto/comp/OnlinePopModal.vue": () => import("./useExtendComponent-325fe3f1.mjs").then((e) => e.t), "./src/views/super/online/cgform/auto/comp/OnlineQueryForm.vue": () => import("./OnlineQueryForm-1bfc8320.mjs"), "./src/views/super/online/cgform/auto/comp/OnlineSearchFormItem.vue": () => import("./OnlineSearchFormItem-0cc85a8a.mjs"), "./src/views/super/online/cgform/auto/comp/OnlineSelectCascade.vue": () => import("./OnlineSelectCascade-4265c95d.mjs"), "./src/views/super/online/cgform/auto/comp/OnlineSubForm.vue": () => import("./useExtendComponent-325fe3f1.mjs").then((e) => e.r), "./src/views/super/online/cgform/auto/comp/OnlineSubFormDetail.vue": () => import("./OnlineSubFormDetail-f0d2c016.mjs"), "./src/views/super/online/cgform/auto/comp/ProcessOnlineForm.vue": () => import("./ProcessOnlineForm-67558898.mjs"), "./src/views/super/online/cgform/auto/comp/superquery/SuperQuery.vue": () => import("./SuperQuery-5d1ca957.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-0583a910.mjs"), "./src/views/super/online/cgform/auto/default/OnlineAutoModal.vue": () => import("./OnlineAutoModal-510991eb.mjs"), "./src/views/super/online/cgform/auto/default/OnlineCustomModal.vue": () => import("./OnlineCustomModal-518ad33c.mjs"), "./src/views/super/online/cgform/auto/default/OnlineDetailModal.vue": () => import("./OnlineDetailModal-9675390d.mjs"), "./src/views/super/online/cgform/auto/erp/OnlCgformErpList.vue": () => import("./OnlCgformErpList-db45e22b.mjs"), "./src/views/super/online/cgform/auto/erp/OnlCgformErpSubTable.vue": () => import("./OnlCgformErpSubTable-54b50eec.mjs"), "./src/views/super/online/cgform/auto/innerTable/OnlCgformInnerSubTable.vue": () => import("./OnlCgformInnerSubTable-fbca73e0.mjs"), "./src/views/super/online/cgform/auto/innerTable/OnlCgformInnerTableList.vue": () => import("./OnlCgformInnerTableList-782eaf04.mjs"), "./src/views/super/online/cgform/auto/tab/OnlCgformTabList.vue": () => import("./OnlCgformTabList-a9e1e36a.mjs"), "./src/views/super/online/cgform/auto/tab/modal/OnlineTabAutoModal.vue": () => import("./OnlineTabAutoModal-6f636ee2.mjs"), "./src/views/super/online/cgform/auto/tab/modal/OnlineTabDetailModal.vue": () => import("./OnlineTabDetailModal-7356d3a8.mjs"), "./src/views/super/online/cgform/auto/tab/modal/OnlineTabForm.vue": () => import("./OnlineTabForm-512d3951.mjs"), "./src/views/super/online/cgform/auto/tab/modal/OnlineTabFormDetail.vue": () => import("./OnlineTabFormDetail-5a70219d.mjs"), "./src/views/super/online/cgform/auto/tree/OnlineAutoTreeList.vue": () => import("./OnlineAutoTreeList-89265688.mjs"), "./src/views/super/online/cgform/components/CgformModal.vue": () => import("./CgformModal-eccfc38e.mjs").then((e) => e.h), "./src/views/super/online/cgform/components/CodeFileListModal.vue": () => import("./CodeFileListModal-a6d3290d.mjs"), "./src/views/super/online/cgform/components/CodeFileViewModal.vue": () => import("./CodeFileViewModal-373e8058.mjs"), "./src/views/super/online/cgform/components/CodeGeneratorModal.vue": () => import("./CodeGeneratorModal-f08a89cd.mjs"), "./src/views/super/online/cgform/components/DbToOnlineModal.vue": () => import("./DbToOnlineModal-9f13956f.mjs"), "./src/views/super/online/cgform/components/ExtendConfigModal.vue": () => import("./ExtendConfigModal-1dde390a.mjs"), "./src/views/super/online/cgform/components/FileSelectModal.vue": () => import("./FileSelectModal-9a02560b.mjs"), "./src/views/super/online/cgform/components/auth/AuthManagerDrawer.vue": () => import("./AuthManagerDrawer-300dd4e4.mjs"), "./src/views/super/online/cgform/components/auth/AuthSetterModal.vue": () => import("./AuthSetterModal-a414fb35.mjs"), "./src/views/super/online/cgform/components/auth/manager/AuthButtonConfig.vue": () => import("./AuthButtonConfig-244ec09f.mjs"), "./src/views/super/online/cgform/components/auth/manager/AuthDataConfig.vue": () => import("./AuthDataConfig-83891eea.mjs"), "./src/views/super/online/cgform/components/auth/manager/AuthFieldConfig.vue": () => import("./AuthFieldConfig-6b21915c.mjs"), "./src/views/super/online/cgform/components/auth/setter/AuthButtonTree.vue": () => import("./AuthButtonTree-3aa0ed49.mjs"), "./src/views/super/online/cgform/components/auth/setter/AuthDataTree.vue": () => import("./AuthDataTree-94e026e3.mjs"), "./src/views/super/online/cgform/components/auth/setter/AuthFieldTree.vue": () => import("./AuthFieldTree-69864163.mjs"), "./src/views/super/online/cgform/components/auth/setter/LeftDepart.vue": () => import("./LeftDepart-fa85523d.mjs"), "./src/views/super/online/cgform/components/auth/setter/LeftRole.vue": () => import("./LeftRole-8b8dfe21.mjs"), "./src/views/super/online/cgform/components/auth/setter/LeftUser.vue": () => import("./LeftUser-dc24ef2f.mjs"), "./src/views/super/online/cgform/components/button/CustomButtonList.vue": () => import("./CustomButtonList-02e3d897.mjs"), "./src/views/super/online/cgform/components/enhance/EnhanceJavaModal.vue": () => import("./EnhanceJavaModal-f63aa2d3.mjs"), "./src/views/super/online/cgform/components/enhance/EnhanceJsHistory.vue": () => import("./EnhanceJsHistory-352b46b1.mjs").then((e) => e.a), "./src/views/super/online/cgform/components/enhance/EnhanceJsModal.vue": () => import("./EnhanceJsModal-05c73a59.mjs"), "./src/views/super/online/cgform/components/enhance/EnhanceSqlModal.vue": () => import("./EnhanceSqlModal-5e4ae84f.mjs"), "./src/views/super/online/cgform/components/tables/CheckDictTable.vue": () => import("./CheckDictTable-134cbb83.mjs"), "./src/views/super/online/cgform/components/tables/DBAttributeTable.vue": () => import("./DBAttributeTable-370de07b.mjs"), "./src/views/super/online/cgform/components/tables/ForeignKeyTable.vue": () => import("./ForeignKeyTable-6a843c4b.mjs"), "./src/views/super/online/cgform/components/tables/IndexTable.vue": () => import("./IndexTable-f8af9d44.mjs"), "./src/views/super/online/cgform/components/tables/PageAttributeTable.vue": () => import("./PageAttributeTable-965dc58e.mjs"), "./src/views/super/online/cgform/components/tables/QueryTable.vue": () => import("./QueryTable-eb9a5b21.mjs"), "./src/views/super/online/cgform/extend/FieldExtendJsonModal.vue": () => import("./FieldExtendJsonModal-a70a9ccd.mjs"), "./src/views/super/online/cgform/extend/form/DetailForm.vue": () => import("./DetailForm-424638eb.mjs"), "./src/views/super/online/cgform/extend/linkTable/JModalTip.vue": () => import("./JModalTip-33c7dc44.mjs"), "./src/views/super/online/cgform/extend/linkTable/LinkTableCard.vue": () => import("./useExtendComponent-325fe3f1.mjs").then((e) => e.x), "./src/views/super/online/cgform/extend/linkTable/LinkTableConfigModal.vue": () => import("./LinkTableConfigModal-d4fbdef2.mjs"), "./src/views/super/online/cgform/extend/linkTable/LinkTableFieldConfigModal.vue": () => import("./LinkTableFieldConfigModal-787bc55c.mjs"), "./src/views/super/online/cgform/extend/linkTable/LinkTableListPiece.vue": () => import("./LinkTableListPiece-8499a318.mjs"), "./src/views/super/online/cgform/extend/linkTable/LinkTableSelect.vue": () => import("./useExtendComponent-325fe3f1.mjs").then((e) => e.v), "./src/views/super/online/cgform/index.vue": () => import("./index-b7a05eef.mjs"), "./src/views/super/online/cgreport/auto/OnlCgReportList.vue": () => Promise.resolve().then(() => T), "./src/views/super/online/cgreport/components/CgreportModal.vue": () => import("./CgreportModal-2065f5a9.mjs"), "./src/views/super/online/cgreport/demo/ModalFormDemo.vue": () => import("./ModalFormDemo-977a49eb.mjs"), "./src/views/super/online/cgreport/index.vue": () => import("./index-49508cad.mjs") });
48
- }
49
- }, x = s(() => import("./OnlineSelectCascade-4265c95d.mjs")), k = s(() => import("./useExtendComponent-325fe3f1.mjs").then((e) => e.x)), _ = s(() => import("./useExtendComponent-325fe3f1.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-eccfc38e.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
- };