@jeecg/online 3.5.3-beta2 → 3.5.3-vite4

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 (154) hide show
  1. package/AuthButtonConfig-2f71787c.mjs +125 -0
  2. package/AuthButtonTree-d73bccf5.mjs +156 -0
  3. package/AuthDataConfig-32cf23d2.mjs +212 -0
  4. package/AuthDataTree-03d62d3f.mjs +139 -0
  5. package/AuthFieldConfig-b1217a0c.mjs +139 -0
  6. package/AuthFieldTree-888e04a9.mjs +232 -0
  7. package/AuthManagerDrawer-f127b8a2.mjs +114 -0
  8. package/AuthSetterModal-37da78ed.mjs +261 -0
  9. package/CgformCopyList-3adab58f.mjs +245 -0
  10. package/CgformModal-6938d8c2.mjs +613 -0
  11. package/CgreportModal-77ec8c17.mjs +12 -0
  12. package/CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs +567 -0
  13. package/CheckDictTable-414313f2.mjs +211 -0
  14. package/CodeFileListModal-4831ce3d.mjs +158 -0
  15. package/CodeFileViewModal-5990dac4.mjs +244 -0
  16. package/CodeGeneratorModal-7df9e25d.mjs +234 -0
  17. package/CustomButtonList-1c9bd859.mjs +363 -0
  18. package/DBAttributeTable-cd1c41e5.mjs +473 -0
  19. package/DbToOnlineModal-dc5d2030.mjs +160 -0
  20. package/DetailForm-e4538e7a.mjs +446 -0
  21. package/EnhanceJavaModal-7f53d2ca.mjs +260 -0
  22. package/EnhanceJsHistory-c30805ce.mjs +184 -0
  23. package/EnhanceJsModal-0b133341.mjs +233 -0
  24. package/EnhanceSqlModal-33a94c83.mjs +259 -0
  25. package/ExtendConfigModal-60f2cf86.mjs +111 -0
  26. package/FieldExtendJsonModal-48f7d67f.mjs +220 -0
  27. package/FileSelectModal-64aaf623.mjs +91 -0
  28. package/ForeignKeyTable-cb1abd1d.mjs +69 -0
  29. package/IndexTable-4e94cd1f.mjs +89 -0
  30. package/JModalTip-abe1515a.mjs +46 -0
  31. package/JOnlineSearchSelect-5608a5cf.mjs +94 -0
  32. package/LeftDepart-ca7a7375.mjs +82 -0
  33. package/LeftRole-d0fa8398.mjs +86 -0
  34. package/LeftUser-0c88c240.mjs +105 -0
  35. package/LinkTableConfigModal-77d7c0b9.mjs +230 -0
  36. package/LinkTableFieldConfigModal-c5689ab0.mjs +178 -0
  37. package/LinkTableListPiece-34266919.mjs +34 -0
  38. package/ModalFormDemo-0eeea994.mjs +78 -0
  39. package/OnlCgformErpList-7a0388d8.mjs +425 -0
  40. package/OnlCgformErpSubTable-fc6ade76.mjs +388 -0
  41. package/OnlineAutoList-85e6a30d.mjs +472 -0
  42. package/OnlineAutoModal-2a146238.mjs +206 -0
  43. package/OnlineAutoTreeList-f8d0e100.mjs +495 -0
  44. package/OnlineCustomModal-456a85a6.mjs +227 -0
  45. package/OnlineDetailModal-f967f080.mjs +177 -0
  46. package/OnlineForm-630a22c2.mjs +778 -0
  47. package/OnlineFormDetail-1b216792.mjs +296 -0
  48. package/OnlineQueryForm-1c5949a7.mjs +378 -0
  49. package/OnlineSearchFormItem-7c2ea9ed.mjs +352 -0
  50. package/OnlineSelectCascade-c7baf52b.mjs +160 -0
  51. package/OnlineSubFormDetail-0aa4966c.mjs +140 -0
  52. package/PageAttributeTable-811185fd.mjs +404 -0
  53. package/ProcessOnlineForm-27be6f6f.mjs +177 -0
  54. package/QueryTable-4ba771ef.mjs +115 -0
  55. package/SuperQuery-3821f984.mjs +845 -0
  56. package/SuperQueryValComponent-471110b5.mjs +8 -0
  57. package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +101 -0
  58. package/auth.api-d3a6c4b3.mjs +39 -0
  59. package/auth.data-8be5c9e3.mjs +141 -0
  60. package/{cgform.data.js → cgform.data-cbdd88c3.mjs} +93 -62
  61. package/constant-fe20103a.mjs +6 -0
  62. package/enhance.api-138e6826.mjs +104 -0
  63. package/enhance.data-efc7e155.mjs +175 -0
  64. package/index-074b92e5.mjs +236 -0
  65. package/index-6a09a912.mjs +58 -0
  66. package/index-9d32ae88.mjs +313 -0
  67. package/main.index.js +7 -1
  68. package/package.json +1 -1
  69. package/style.css +1 -1
  70. package/useCgformList-2d6a5955.mjs +388 -0
  71. package/useExtendComponent-48d37d9b.mjs +3919 -0
  72. package/useListButton-cef1371a.mjs +656 -0
  73. package/useOnlinePopEvent-e9a042f8.mjs +19 -0
  74. package/useOnlineTest-0df0ae86.mjs +43 -0
  75. package/useSchemas-fc8d97ce.mjs +669 -0
  76. package/useTableSync-dc333087.mjs +83 -0
  77. package/AuthButtonConfig.js +0 -147
  78. package/AuthButtonTree.js +0 -183
  79. package/AuthDataConfig.js +0 -246
  80. package/AuthDataTree.js +0 -160
  81. package/AuthFieldConfig.js +0 -170
  82. package/AuthFieldTree.js +0 -281
  83. package/AuthManagerDrawer.js +0 -125
  84. package/AuthSetterModal.js +0 -316
  85. package/CgformCopyList.js +0 -266
  86. package/CgformModal.js +0 -780
  87. package/CgreportModal.js +0 -667
  88. package/CheckDictTable.js +0 -242
  89. package/CodeFileListModal.js +0 -175
  90. package/CodeFileViewModal.js +0 -325
  91. package/CodeGeneratorModal.js +0 -297
  92. package/CustomButtonList.js +0 -410
  93. package/DBAttributeTable.js +0 -526
  94. package/DbToOnlineModal.js +0 -192
  95. package/DetailForm.js +0 -608
  96. package/EnhanceJavaModal.js +0 -298
  97. package/EnhanceJsHistory.js +0 -229
  98. package/EnhanceJsModal.js +0 -293
  99. package/EnhanceSqlModal.js +0 -299
  100. package/ExtendConfigModal.js +0 -151
  101. package/FieldExtendJsonModal.js +0 -283
  102. package/FileSelectModal.js +0 -102
  103. package/ForeignKeyTable.js +0 -79
  104. package/IndexTable.js +0 -97
  105. package/JModalTip.js +0 -54
  106. package/JOnlineSearchSelect.js +0 -115
  107. package/LICENSE +0 -9
  108. package/LeftDepart.js +0 -96
  109. package/LeftRole.js +0 -98
  110. package/LeftUser.js +0 -117
  111. package/LinkTableConfigModal.js +0 -289
  112. package/LinkTableFieldConfigModal.js +0 -218
  113. package/LinkTableListPiece.js +0 -36
  114. package/ModalFormDemo.js +0 -85
  115. package/OnlineAutoList.js +0 -524
  116. package/OnlineAutoModal.js +0 -226
  117. package/OnlineAutoTreeList.js +0 -553
  118. package/OnlineCustomModal.js +0 -286
  119. package/OnlineDetailModal.js +0 -190
  120. package/OnlineForm.js +0 -1018
  121. package/OnlineFormDetail.js +0 -347
  122. package/OnlineQueryForm.js +0 -484
  123. package/OnlineSearchFormItem.js +0 -436
  124. package/OnlineSelectCascade.js +0 -228
  125. package/OnlineSubFormDetail.js +0 -166
  126. package/PageAttributeTable.js +0 -486
  127. package/ProcessOnlineForm.js +0 -208
  128. package/QueryTable.js +0 -129
  129. package/SuperQuery.js +0 -1021
  130. package/SuperQueryValComponent.js +0 -9
  131. package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -162
  132. package/_arrayPush.js +0 -278
  133. package/_baseClone.js +0 -471
  134. package/_baseSlice.js +0 -18
  135. package/_commonjsHelpers.js +0 -5
  136. package/_flatRest.js +0 -174
  137. package/auth.api.js +0 -43
  138. package/auth.data.js +0 -142
  139. package/clipboard.js +0 -565
  140. package/enhance.api.js +0 -129
  141. package/enhance.data.js +0 -196
  142. package/index.js +0 -87
  143. package/index2.js +0 -340
  144. package/index3.js +0 -264
  145. package/isArray.js +0 -47
  146. package/omit.js +0 -60
  147. package/pick.js +0 -68
  148. package/toString.js +0 -31
  149. package/useCgformList.js +0 -470
  150. package/useExtendComponent.js +0 -5205
  151. package/useListButton.js +0 -923
  152. package/useOnlineTest.js +0 -44
  153. package/useSchemas.js +0 -653
  154. package/useTableSync.js +0 -117
@@ -0,0 +1,178 @@
1
+ var R = Object.defineProperty;
2
+ var w = Object.getOwnPropertySymbols;
3
+ var q = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
4
+ var T = (n, o, t) => o in n ? R(n, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[o] = t, k = (n, o) => {
5
+ for (var t in o || (o = {}))
6
+ q.call(o, t) && T(n, t, o[t]);
7
+ if (w)
8
+ for (var t of w(o))
9
+ I.call(o, t) && T(n, t, o[t]);
10
+ return n;
11
+ };
12
+ var p = (n, o, t) => new Promise((i, s) => {
13
+ var r = (a) => {
14
+ try {
15
+ d(t.next(a));
16
+ } catch (f) {
17
+ s(f);
18
+ }
19
+ }, c = (a) => {
20
+ try {
21
+ d(t.throw(a));
22
+ } catch (f) {
23
+ s(f);
24
+ }
25
+ }, d = (a) => a.done ? i(a.value) : Promise.resolve(a.value).then(r, c);
26
+ d((t = t.apply(n, o)).next());
27
+ });
28
+ import { BasicModal as P, useModalInner as H } from "/@/components/Modal";
29
+ import { ref as b, resolveComponent as h, openBlock as J, createBlock as K, mergeProps as N, withCtx as x, createVNode as y } from "vue";
30
+ import { BasicForm as $, useForm as j } from "/@/components/Form/index";
31
+ import { defHttp as G } from "/@/utils/http/axios";
32
+ import { omit as z } from "lodash-es";
33
+ import { useMessage as D } from "/@/hooks/web/useMessage";
34
+ import { _ as E } from "./index-6a09a912.mjs";
35
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
36
+ import "vue-router";
37
+ const Q = {
38
+ name: "LinkTableFieldConfigModal",
39
+ emits: ["success", "register"],
40
+ components: {
41
+ BasicModal: P,
42
+ BasicForm: $
43
+ },
44
+ setup(n, { emit: o }) {
45
+ const t = b(!1), i = b([]), s = b([]);
46
+ let r = {}, c = {};
47
+ const { createMessage: d } = D(), [a, { closeModal: f }] = H((e) => p(this, null, function* () {
48
+ console.log("data", e), c = k({}, e.record), r = e.tableAndFieldsMap, yield C(), yield _({ dictTable: e.record.dictTable }), setTimeout(() => p(this, null, function* () {
49
+ let l = z(e.record, "dictTable");
50
+ yield _(l), yield S();
51
+ }), 200);
52
+ }));
53
+ function C() {
54
+ return p(this, null, function* () {
55
+ let e = Object.keys(r);
56
+ if (!e || e.length == 0)
57
+ i.value = [];
58
+ else {
59
+ let l = [];
60
+ for (let m of e)
61
+ l.push({
62
+ text: r[m].title,
63
+ value: m
64
+ });
65
+ i.value = l;
66
+ }
67
+ });
68
+ }
69
+ function M(e) {
70
+ return p(this, null, function* () {
71
+ if (e) {
72
+ const { table: l, fields: m } = r[e];
73
+ if (!l) {
74
+ d.warning("请先完善字段[" + e + "]关联记录的配置");
75
+ return;
76
+ }
77
+ const L = "/online/cgform/field/listByHeadCode", g = yield G.get({ url: L, params: { headCode: l } });
78
+ if (g && g.length > 0) {
79
+ let F = g.map((u) => ({
80
+ text: u.dbFieldTxt,
81
+ value: u.dbFieldName
82
+ }));
83
+ console.log("字段字典", F);
84
+ let A = m.split(",");
85
+ s.value = F.filter((u) => A.indexOf(u.value) > 0);
86
+ } else
87
+ s.value = [];
88
+ }
89
+ });
90
+ }
91
+ const O = [
92
+ {
93
+ label: "rowKey",
94
+ field: "rowKey",
95
+ component: "Input",
96
+ show: !1
97
+ },
98
+ {
99
+ label: "字段描述",
100
+ field: "dbFieldTxt",
101
+ component: "Input",
102
+ required: !0
103
+ },
104
+ {
105
+ label: "关联记录",
106
+ field: "dictTable",
107
+ component: "JSearchSelect",
108
+ required: !0,
109
+ componentProps: ({ formActionType: e }) => ({
110
+ async: !1,
111
+ popContainer: ".link-table-field-config-modal",
112
+ dictOptions: i.value,
113
+ immediateChange: !0,
114
+ onChange: (m) => p(this, null, function* () {
115
+ c.dictText && (yield e.setFieldsValue({
116
+ dictText: ""
117
+ }), yield e.clearValidate()), M(m);
118
+ })
119
+ })
120
+ },
121
+ {
122
+ label: "显示字段",
123
+ field: "dictText",
124
+ component: "JSearchSelect",
125
+ required: !0,
126
+ componentProps: {
127
+ async: !1,
128
+ popContainer: ".link-table-field-config-modal",
129
+ dictOptions: s,
130
+ onChange: (e) => {
131
+ c.dictText = e;
132
+ }
133
+ }
134
+ }
135
+ ], [v, { validate: B, setFieldsValue: _, clearValidate: S }] = j({
136
+ schemas: O,
137
+ showActionButtonGroup: !1,
138
+ labelAlign: "right"
139
+ });
140
+ function V() {
141
+ return p(this, null, function* () {
142
+ const e = yield B();
143
+ console.log("handlesub", e), o("success", e), f();
144
+ });
145
+ }
146
+ return {
147
+ registerModal: a,
148
+ spinningLoading: t,
149
+ registerForm: v,
150
+ handleSubmit: V
151
+ };
152
+ }
153
+ };
154
+ function U(n, o, t, i, s, r) {
155
+ const c = h("BasicForm"), d = h("a-spin"), a = h("BasicModal");
156
+ return J(), K(a, N({ wrapClassName: "link-table-field-config-modal" }, n.$attrs, {
157
+ title: "他表字段配置",
158
+ onRegister: i.registerModal,
159
+ keyboard: "",
160
+ canFullscreen: !1,
161
+ cancelText: "关闭",
162
+ onOk: i.handleSubmit
163
+ }), {
164
+ default: x(() => [
165
+ y(d, { spinning: i.spinningLoading }, {
166
+ default: x(() => [
167
+ y(c, { onRegister: i.registerForm }, null, 8, ["onRegister"])
168
+ ]),
169
+ _: 1
170
+ }, 8, ["spinning"])
171
+ ]),
172
+ _: 1
173
+ }, 16, ["onRegister", "onOk"]);
174
+ }
175
+ const le = /* @__PURE__ */ E(Q, [["render", U]]);
176
+ export {
177
+ le as default
178
+ };
@@ -0,0 +1,34 @@
1
+ import { propTypes as o } from "/@/utils/propTypes";
2
+ import { openBlock as r, createElementBlock as l, createElementVNode as s, toDisplayString as c } from "vue";
3
+ import { _ as p } from "./index-6a09a912.mjs";
4
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
5
+ import "/@/hooks/web/useMessage";
6
+ import "vue-router";
7
+ const d = {
8
+ name: "LinkTableListPiece",
9
+ props: {
10
+ text: o.string.def(""),
11
+ id: o.string.def("")
12
+ },
13
+ emits: ["tab"],
14
+ setup(i, { emit: e }) {
15
+ function n(t) {
16
+ t == null || t.stopPropagation(), t == null || t.preventDefault(), console.log(i.id), e("tab", i.id);
17
+ }
18
+ return {
19
+ handleClick: n
20
+ };
21
+ }
22
+ };
23
+ function _(i, e, n, t, m, f) {
24
+ return r(), l("div", {
25
+ class: "link-table-piece",
26
+ onClick: e[0] || (e[0] = (...a) => t.handleClick && t.handleClick(...a))
27
+ }, [
28
+ s("span", null, c(n.text), 1)
29
+ ]);
30
+ }
31
+ const v = /* @__PURE__ */ p(d, [["render", _], ["__scopeId", "data-v-ade036b6"]]);
32
+ export {
33
+ v as default
34
+ };
@@ -0,0 +1,78 @@
1
+ import { defineComponent as i, resolveComponent as p, openBlock as a, createElementBlock as c, createVNode as l } from "vue";
2
+ import { BasicForm as d, useForm as u } from "/@/components/Form/index";
3
+ import { defHttp as f } from "/@/utils/http/axios";
4
+ import { pick as _ } from "lodash-es";
5
+ import { _ as g } from "./index-6a09a912.mjs";
6
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
7
+ import "/@/hooks/web/useMessage";
8
+ import "vue-router";
9
+ const h = () => [
10
+ {
11
+ field: "name",
12
+ component: "Input",
13
+ label: "名称"
14
+ },
15
+ {
16
+ field: "age",
17
+ component: "InputNumber",
18
+ label: "年龄",
19
+ componentProps: {
20
+ style: {
21
+ width: "100%"
22
+ }
23
+ }
24
+ },
25
+ {
26
+ field: "sex",
27
+ label: "性别",
28
+ component: "JDictSelectTag",
29
+ componentProps: {
30
+ dictCode: "sex"
31
+ }
32
+ },
33
+ {
34
+ field: "birthday",
35
+ component: "DatePicker",
36
+ label: "生日",
37
+ componentProps: {
38
+ valueFormat: "YYYY-MM-DD",
39
+ style: {
40
+ width: "100%"
41
+ }
42
+ }
43
+ },
44
+ {
45
+ field: "email",
46
+ component: "Input",
47
+ label: "邮箱"
48
+ }
49
+ ], b = i({
50
+ components: { BasicForm: d },
51
+ props: ["id"],
52
+ setup(e) {
53
+ const [t, { setFieldsValue: r }] = u({
54
+ schemas: h(),
55
+ showActionButtonGroup: !1,
56
+ baseColProps: { span: 24 }
57
+ });
58
+ let n = { id: e.id };
59
+ return f.get({ url: "/test/jeecgDemo/queryById", params: n }, { isTransformResponse: !1 }).then((o) => {
60
+ if (o.success) {
61
+ let s = _(o.result, "name", "age", "birthday", "sex", "email");
62
+ r(s);
63
+ }
64
+ }), {
65
+ registerForm: t
66
+ };
67
+ }
68
+ }), F = { style: { margin: "50px auto", width: "800px" } };
69
+ function x(e, t, r, n, o, s) {
70
+ const m = p("BasicForm");
71
+ return a(), c("div", F, [
72
+ l(m, { onRegister: e.registerForm }, null, 8, ["onRegister"])
73
+ ]);
74
+ }
75
+ const I = /* @__PURE__ */ g(b, [["render", x]]);
76
+ export {
77
+ I as default
78
+ };