@jeecg/online 3.7.1-RC → 3.7.4-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.
Files changed (143) hide show
  1. package/AccountLoginForm-84cbd344.mjs +254 -0
  2. package/AiModal-26903538.mjs +84 -0
  3. package/AppForgetPassword-52443f23.mjs +310 -0
  4. package/AppLogin-ecf798fa.mjs +287 -0
  5. package/AppLoginHeader-4432c584.mjs +27 -0
  6. package/AppNameEmail-3303a037.mjs +180 -0
  7. package/AppRegister-79a62c59.mjs +303 -0
  8. package/AppTenant-f0bef7ca.mjs +373 -0
  9. package/AppThirdForm-fd8b4604.mjs +189 -0
  10. package/AuthButtonConfig-d5bffca0.mjs +156 -0
  11. package/AuthButtonTree-b0bd6c40.mjs +165 -0
  12. package/{AuthDataConfig-5c3a8e6b.mjs → AuthDataConfig-d3b7afa4.mjs} +23 -23
  13. package/{AuthDataTree-dd7a1240.mjs → AuthDataTree-f14a98d9.mjs} +43 -43
  14. package/{AuthFieldConfig-9f6fa06c.mjs → AuthFieldConfig-f1e224cc.mjs} +71 -71
  15. package/AuthFieldTree-5cc0da05.mjs +232 -0
  16. package/{AuthManagerDrawer-76f15e8d.mjs → AuthManagerDrawer-32556109.mjs} +6 -6
  17. package/{AuthSetterModal-f5d2e87f.mjs → AuthSetterModal-364f1f67.mjs} +9 -9
  18. package/BuiltInButtonList-bb6cf95c.mjs +10 -0
  19. package/BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs +338 -0
  20. package/CgformAddressModal-1131274c.mjs +260 -0
  21. package/CgformCopyList-5fba0810.mjs +252 -0
  22. package/{CgformModal-21c5c387.mjs → CgformModal-c4a4e0c2.mjs} +190 -194
  23. package/{CgreportModal-edefa8e3.mjs → CgreportModal-8a84aae5.mjs} +181 -168
  24. package/{CheckDictTable-1bc8322d.mjs → CheckDictTable-8a938e3a.mjs} +3 -3
  25. package/CodeFileListModal-a924902a.mjs +159 -0
  26. package/{CodeFileViewModal-2fe911f4.mjs → CodeFileViewModal-405e2b58.mjs} +66 -66
  27. package/CodeGeneratorModal-2e1dc13d.mjs +281 -0
  28. package/CustomButtonList-c453b654.mjs +274 -0
  29. package/{DBAttributeTable-285d40db.mjs → DBAttributeTable-1a45c7b7.mjs} +3 -3
  30. package/{DbToOnlineModal-5dcb67c3.mjs → DbToOnlineModal-f28ff0a3.mjs} +53 -54
  31. package/{DetailForm-deecbf3d.mjs → DetailForm-c592b8d8.mjs} +5 -5
  32. package/DropMenuItem-1e49abea.mjs +44 -0
  33. package/{EnhanceJavaModal-45c66cd5.mjs → EnhanceJavaModal-d5a93f2a.mjs} +62 -62
  34. package/{EnhanceJsHistory-fab3102e.mjs → EnhanceJsHistory-8ddb0657.mjs} +35 -35
  35. package/{EnhanceJsModal-175357a1.mjs → EnhanceJsModal-dc4f9ade.mjs} +104 -104
  36. package/{EnhanceSqlModal-7ea1b300.mjs → EnhanceSqlModal-984f045d.mjs} +67 -67
  37. package/ErrorTip-bb616e32.mjs +7 -0
  38. package/ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs +60 -0
  39. package/{ExtendConfigModal-a89ae052.mjs → ExtendConfigModal-7d70f362.mjs} +2 -2
  40. package/{FieldExtendJsonModal-32135634.mjs → FieldExtendJsonModal-bf04d70e.mjs} +2 -2
  41. package/{FileSelectModal-1643c8b9.mjs → FileSelectModal-ffc69d4a.mjs} +23 -23
  42. package/{ForeignKeyTable-7f7e28a7.mjs → ForeignKeyTable-92decaea.mjs} +3 -3
  43. package/{IndexTable-cdcc2b48.mjs → IndexTable-2ded2014.mjs} +3 -3
  44. package/JModalTip-a927f85d.mjs +49 -0
  45. package/{JOnlineSearchSelect-22aae934.mjs → JOnlineSearchSelect-04ec87d0.mjs} +1 -1
  46. package/{LeftDepart-d5615ed9.mjs → LeftDepart-52cb6743.mjs} +1 -1
  47. package/LeftRole-b0e0b496.mjs +86 -0
  48. package/{LeftUser-22baa378.mjs → LeftUser-dd4b10e2.mjs} +30 -30
  49. package/{LinkTableConfigModal-9242d750.mjs → LinkTableConfigModal-7eeb3e58.mjs} +43 -31
  50. package/{LinkTableFieldConfigModal-24adc50c.mjs → LinkTableFieldConfigModal-b078fcef.mjs} +1 -1
  51. package/{LinkTableListPiece-f3a8e0d7.mjs → LinkTableListPiece-e016b8e6.mjs} +1 -1
  52. package/{ModalFormDemo-711418db.mjs → ModalFormDemo-aaa719a7.mjs} +1 -1
  53. package/OnlCgformErpList-5c5acdaa.mjs +488 -0
  54. package/OnlCgformErpSubTable-e1b88312.mjs +441 -0
  55. package/{OnlCgformInnerSubTable-6c23781f.mjs → OnlCgformInnerSubTable-6b6fa15a.mjs} +38 -38
  56. package/OnlCgformInnerTableList-b283a525.mjs +474 -0
  57. package/OnlCgformTabList-91e3dd78.mjs +424 -0
  58. package/OnlineAutoList-84475f1b.mjs +513 -0
  59. package/OnlineAutoModal-95f46901.mjs +260 -0
  60. package/OnlineAutoTreeList-20b9ce04.mjs +523 -0
  61. package/OnlineCustomModal-c8b1e780.mjs +232 -0
  62. package/{OnlineDetailModal-d5895734.mjs → OnlineDetailModal-5b412bb9.mjs} +74 -65
  63. package/OnlineForm-58282699.mjs +1012 -0
  64. package/{OnlineFormDetail-022ca117.mjs → OnlineFormDetail-fc087725.mjs} +7 -7
  65. package/{OnlineFormUrlAdd-9715d70a.mjs → OnlineFormUrlAdd-bc9105bb.mjs} +9 -9
  66. package/{OnlineFormUrlDetail-8f864b1a.mjs → OnlineFormUrlDetail-ad912560.mjs} +11 -11
  67. package/{OnlineFormUrlEdit-ac985b36.mjs → OnlineFormUrlEdit-f2fa79ff.mjs} +9 -9
  68. package/OnlineFormUrlSuccess-76813d45.mjs +59 -0
  69. package/OnlineQueryForm-9248341f.mjs +484 -0
  70. package/{OnlineSearchFormItem-6c557343.mjs → OnlineSearchFormItem-1e437bd3.mjs} +82 -82
  71. package/{OnlineSelectCascade-05c40fef.mjs → OnlineSelectCascade-d631ed72.mjs} +1 -1
  72. package/{OnlineSubFormDetail-58e896ce.mjs → OnlineSubFormDetail-8be879b9.mjs} +52 -53
  73. package/{OnlineTabAutoModal-47b18ad6.mjs → OnlineTabAutoModal-c9ca3c24.mjs} +108 -95
  74. package/{OnlineTabDetailModal-82de1465.mjs → OnlineTabDetailModal-fd4c9a72.mjs} +36 -36
  75. package/OnlineTabForm-1940e88b.mjs +814 -0
  76. package/{OnlineTabFormDetail-8d0c40c0.mjs → OnlineTabFormDetail-2aa67564.mjs} +17 -17
  77. package/{PageAttributeTable-25e3b7da.mjs → PageAttributeTable-66e7b485.mjs} +108 -108
  78. package/PhoneLoginForm-86437a9d.mjs +214 -0
  79. package/{ProcessOnlineForm-148632fe.mjs → ProcessOnlineForm-98ede18d.mjs} +32 -32
  80. package/{QueryTable-f7bfca7f.mjs → QueryTable-65d3f54f.mjs} +3 -3
  81. package/SetSwitchOptions-f914bc17.mjs +62 -0
  82. package/ShareAddView-657f0f8b.mjs +86 -0
  83. package/ShareEditView-1b945fd3.mjs +92 -0
  84. package/ShareView-222ed3d8.mjs +80 -0
  85. package/ShareView.vue_vue_type_script_setup_true_lang-44fbeaff.mjs +162 -0
  86. package/SingleView-23b0cb4e.mjs +68 -0
  87. package/SingleView.vue_vue_type_style_index_0_lang-e0f2f6c0.mjs +131 -0
  88. package/SuperQuery-46032e66.mjs +974 -0
  89. package/{SuperQueryValComponent-7ad86d4b.mjs → SuperQueryValComponent-5a9ccfd4.mjs} +1 -1
  90. package/{SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs → SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs} +11 -11
  91. package/{auth.api-ea1d33d4.mjs → auth.api-53df4c33.mjs} +17 -17
  92. package/{auth.data-511e5197.mjs → auth.data-626c5083.mjs} +16 -12
  93. package/button.data-fe45d43b.mjs +12 -0
  94. package/{cgform.data-475d4984.mjs → cgform.data-0ca62d09.mjs} +4 -1
  95. package/{enhance.data-a67572e1.mjs → enhance.data-6601ff44.mjs} +1 -1
  96. package/index-19eaef11.mjs +11 -0
  97. package/index-1a2e8832.mjs +135 -0
  98. package/{index-f30613d1.mjs → index-2fb8e07f.mjs} +59 -59
  99. package/index-5e89258d.mjs +8 -0
  100. package/index-9e1e1e53.mjs +57 -0
  101. package/{index-30e0e923.mjs → index-a039036e.mjs} +272 -262
  102. package/index-c5a79b0b.mjs +219 -0
  103. package/index-cce225be.mjs +110 -0
  104. package/index-f2c2d1cf.mjs +74 -0
  105. package/main.index.js +1 -1
  106. package/package.json +1 -1
  107. package/shareStore-7de6c7a6.mjs +67 -0
  108. package/style.css +1 -1
  109. package/useCgformList-f3cb9156.mjs +378 -0
  110. package/useExtendComponent-bb98e568.mjs +4460 -0
  111. package/useListButton-98908683.mjs +719 -0
  112. package/{useSchemas-a9c75b0f.mjs → useSchemas-b074f3a1.mjs} +33 -0
  113. package/{useTableSync-d7e9f18d.mjs → useTableSync-075826a1.mjs} +1 -1
  114. package/utils-9fce7606.mjs +16 -0
  115. package/AiModal-6de335e3.mjs +0 -84
  116. package/AuthButtonConfig-89763932.mjs +0 -154
  117. package/AuthButtonTree-2d87d0b3.mjs +0 -157
  118. package/AuthFieldTree-e326fc38.mjs +0 -232
  119. package/CgformCopyList-365b3e8f.mjs +0 -251
  120. package/CodeFileListModal-24601898.mjs +0 -159
  121. package/CodeGeneratorModal-f09fe903.mjs +0 -282
  122. package/CustomButtonList-f07bc695.mjs +0 -397
  123. package/JModalTip-b055ab60.mjs +0 -49
  124. package/LeftRole-2ed8a2bf.mjs +0 -86
  125. package/OnlCgformErpList-58acdfa0.mjs +0 -470
  126. package/OnlCgformErpSubTable-9b1e1938.mjs +0 -426
  127. package/OnlCgformInnerTableList-4b5e14ed.mjs +0 -458
  128. package/OnlCgformTabList-019ad753.mjs +0 -408
  129. package/OnlineAutoList-48589d09.mjs +0 -493
  130. package/OnlineAutoModal-c2928847.mjs +0 -239
  131. package/OnlineAutoTreeList-3baa1d00.mjs +0 -503
  132. package/OnlineCustomModal-9e17b6ce.mjs +0 -232
  133. package/OnlineForm-9f1153ba.mjs +0 -985
  134. package/OnlineFormUrlSuccess-3dfc54ab.mjs +0 -59
  135. package/OnlineQueryForm-eedb9a60.mjs +0 -466
  136. package/OnlineTabForm-27655c83.mjs +0 -817
  137. package/SetSwitchOptions-b2af757f.mjs +0 -62
  138. package/SuperQuery-a8592995.mjs +0 -967
  139. package/index-1d1a6e56.mjs +0 -57
  140. package/useCgformList-f41d4dc1.mjs +0 -426
  141. package/useExtendComponent-dcae5c78.mjs +0 -4399
  142. package/useListButton-bfac4ecf.mjs +0 -697
  143. /package/{OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs} +0 -0
@@ -9,30 +9,30 @@ var S = (e, n, t) => n in e ? x(e, n, { enumerable: !0, configurable: !0, writab
9
9
  $.call(n, t) && S(e, t, n[t]);
10
10
  return e;
11
11
  };
12
- var M = (e, n, t) => new Promise((u, _) => {
12
+ var M = (e, n, t) => new Promise((u, f) => {
13
13
  var m = (s) => {
14
14
  try {
15
15
  r(t.next(s));
16
16
  } catch (d) {
17
- _(d);
17
+ f(d);
18
18
  }
19
19
  }, p = (s) => {
20
20
  try {
21
21
  r(t.throw(s));
22
22
  } catch (d) {
23
- _(d);
23
+ f(d);
24
24
  }
25
25
  }, r = (s) => s.done ? u(s.value) : Promise.resolve(s.value).then(m, p);
26
26
  r((t = t.apply(e, n)).next());
27
27
  });
28
28
  import { formatToDate as j } from "/@/utils/dateUtil";
29
- import { defineComponent as I, ref as g, nextTick as R, resolveComponent as c, openBlock as w, createBlock as T, withCtx as a, createVNode as i, createTextVNode as k, normalizeClass as D, createElementVNode as F, toDisplayString as V } from "vue";
29
+ import { defineComponent as I, ref as h, nextTick as R, resolveComponent as i, openBlock as w, createBlock as T, withCtx as a, createVNode as l, createTextVNode as k, normalizeClass as D, createElementVNode as F, toDisplayString as V } from "vue";
30
30
  import { BasicModal as A, useModalInner as O } from "/@/components/Modal";
31
31
  import { JCodeEditor as z } from "/@/components/Form";
32
32
  import "/@/store";
33
33
  import { defineStore as P } from "pinia";
34
34
  import { createLocalStorage as q } from "/@/utils/cache";
35
- import { _ as G } from "./index-1d1a6e56.mjs";
35
+ import { _ as G } from "./index-9e1e1e53.mjs";
36
36
  const B = q(), H = "enhance_", K = P({
37
37
  id: "online-cgform-enhance",
38
38
  state: () => ({
@@ -55,15 +55,15 @@ const B = q(), H = "enhance_", K = P({
55
55
  name: "EnhanceJsHistory",
56
56
  components: { BasicModal: A, JCodeEditor: z },
57
57
  setup() {
58
- const e = K(), n = g(), t = g(!1), u = g([]), _ = g(""), m = g(0), [p, { closeModal: r }] = O((o) => M(this, null, function* () {
58
+ const e = K(), n = h(), t = h(!1), u = h([]), f = h(""), m = h(0), [p, { closeModal: r }] = O((o) => M(this, null, function* () {
59
59
  s(o.code, o.type);
60
60
  }));
61
61
  function s(o, E) {
62
- _.value = "", u.value = [];
63
- let J = e.getEnhanceJs(o), l = [], f = 0;
64
- for (let h of J)
65
- h.type === E && (f++, l.push(Object.assign({}, h, { index: f })));
66
- l && l.length > 0 && l.sort((h, L) => L.date - h.date), u.value = [...l], R(() => y(l[0]));
62
+ f.value = "", u.value = [];
63
+ let J = e.getEnhanceJs(o), c = [], _ = 0;
64
+ for (let g of J)
65
+ g.type === E && (_++, c.push(Object.assign({}, g, { index: _ })));
66
+ c && c.length > 0 && c.sort((g, L) => L.date - g.date), u.value = [...c], R(() => y(c[0]));
67
67
  }
68
68
  function d() {
69
69
  r();
@@ -82,15 +82,15 @@ const B = q(), H = "enhance_", K = P({
82
82
  onCancel: d,
83
83
  confirmLoading: t,
84
84
  dataList: u,
85
- jsStr: _,
85
+ jsStr: f,
86
86
  activeIndex: m
87
87
  };
88
88
  }
89
89
  });
90
90
  const U = ["onClick"];
91
- function W(e, n, t, u, _, m) {
92
- const p = c("a-divider"), r = c("a-list-item"), s = c("a-list"), d = c("a-layout-sider"), C = c("JCodeEditor"), y = c("a-layout-content"), o = c("a-layout"), E = c("a-spin"), J = c("a-button"), l = c("BasicModal");
93
- return w(), T(l, {
91
+ function W(e, n, t, u, f, m) {
92
+ const p = i("a-divider"), r = i("a-list-item"), s = i("a-list"), d = i("a-layout-sider"), C = i("JCodeEditor"), y = i("a-layout-content"), o = i("a-layout"), E = i("a-spin"), J = i("a-button"), c = i("BasicModal");
93
+ return w(), T(c, {
94
94
  onRegister: e.registerModal,
95
95
  title: "JS增强历史记录",
96
96
  width: 1200,
@@ -100,43 +100,43 @@ function W(e, n, t, u, _, m) {
100
100
  onCancel: e.onCancel
101
101
  }, {
102
102
  footer: a(() => [
103
- i(J, { onClick: e.onCancel }, {
104
- default: a(() => [
103
+ l(J, { onClick: e.onCancel }, {
104
+ default: a(() => n[1] || (n[1] = [
105
105
  k("关闭")
106
- ]),
106
+ ])),
107
107
  _: 1
108
108
  }, 8, ["onClick"])
109
109
  ]),
110
110
  default: a(() => [
111
- i(E, { spinning: e.confirmLoading }, {
111
+ l(E, { spinning: e.confirmLoading }, {
112
112
  default: a(() => [
113
- i(o, null, {
113
+ l(o, null, {
114
114
  default: a(() => [
115
- i(d, { theme: "light" }, {
115
+ l(d, { theme: "light" }, {
116
116
  default: a(() => [
117
- i(s, {
117
+ l(s, {
118
118
  bordered: "",
119
119
  dataSource: e.dataList,
120
120
  class: D("enhance-list")
121
121
  }, {
122
122
  header: a(() => [
123
123
  F("div", null, [
124
- i(p, { style: { margin: "0" } }, {
125
- default: a(() => [
124
+ l(p, { style: { margin: "0" } }, {
125
+ default: a(() => n[0] || (n[0] = [
126
126
  k("保存时间")
127
- ]),
127
+ ])),
128
128
  _: 1
129
129
  })
130
130
  ])
131
131
  ]),
132
- renderItem: a(({ item: f }) => [
133
- i(r, {
134
- class: D(e.activeIndex === f.index ? "bg-blue" : "")
132
+ renderItem: a(({ item: _ }) => [
133
+ l(r, {
134
+ class: D(e.activeIndex === _.index ? "bg-blue" : "")
135
135
  }, {
136
136
  default: a(() => [
137
137
  F("a", {
138
- onClick: (h) => e.fullCode(f)
139
- }, V(e.getFormatDate(f.date)), 9, U)
138
+ onClick: (g) => e.fullCode(_)
139
+ }, V(e.getFormatDate(_.date)), 9, U)
140
140
  ]),
141
141
  _: 2
142
142
  }, 1032, ["class"])
@@ -146,11 +146,11 @@ function W(e, n, t, u, _, m) {
146
146
  ]),
147
147
  _: 1
148
148
  }),
149
- i(o, null, {
149
+ l(o, null, {
150
150
  default: a(() => [
151
- i(y, { style: { margin: "8px 8px", padding: "8px", background: "#fff", minHeight: "280px" } }, {
151
+ l(y, { style: { margin: "8px 8px", padding: "8px", background: "#fff", minHeight: "280px" } }, {
152
152
  default: a(() => [
153
- i(C, {
153
+ l(C, {
154
154
  ref: "codeEditorRef",
155
155
  language: "javascript",
156
156
  fullScreen: !0,
@@ -173,12 +173,12 @@ function W(e, n, t, u, _, m) {
173
173
  _: 1
174
174
  }, 8, ["onRegister", "confirmLoading", "onCancel"]);
175
175
  }
176
- const X = /* @__PURE__ */ G(Q, [["render", W], ["__scopeId", "data-v-a2408ade"]]), ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
176
+ const X = /* @__PURE__ */ G(Q, [["render", W], ["__scopeId", "data-v-a2408ade"]]), le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
177
177
  __proto__: null,
178
178
  default: X
179
179
  }, Symbol.toStringTag, { value: "Module" }));
180
180
  export {
181
181
  X as E,
182
- ie as a,
182
+ le as a,
183
183
  K as u
184
184
  };
@@ -1,29 +1,29 @@
1
- var C = (e, o, h) => new Promise((x, f) => {
2
- var a = (l) => {
1
+ var C = (e, t, h) => new Promise((x, f) => {
2
+ var l = (a) => {
3
3
  try {
4
- c(h.next(l));
4
+ c(h.next(a));
5
5
  } catch (u) {
6
6
  f(u);
7
7
  }
8
- }, r = (l) => {
8
+ }, r = (a) => {
9
9
  try {
10
- c(h.throw(l));
10
+ c(h.throw(a));
11
11
  } catch (u) {
12
12
  f(u);
13
13
  }
14
- }, c = (l) => l.done ? x(l.value) : Promise.resolve(l.value).then(a, r);
15
- c((h = h.apply(e, o)).next());
14
+ }, c = (a) => a.done ? x(a.value) : Promise.resolve(a.value).then(l, r);
15
+ c((h = h.apply(e, t)).next());
16
16
  });
17
- import { defineComponent as W, ref as g, reactive as M, resolveComponent as m, openBlock as w, createBlock as E, withCtx as s, createVNode as n, createTextVNode as F, createCommentVNode as _, createElementVNode as v, pushScopeId as Q, popScopeId as z } from "vue";
18
- import { BasicModal as L, useModalInner as X, useModal as Y } from "/@/components/Modal";
19
- import { JCodeEditor as Z } from "/@/components/Form";
20
- import { u as ee } from "./useOnlineTest-e4bd8be3.mjs";
21
- import { E as te, u as se } from "./EnhanceJsHistory-fab3102e.mjs";
22
- import { g as oe, s as ae } from "./enhance.api-138e6826.mjs";
23
- import { useMessage as le } from "/@/hooks/web/useMessage";
24
- import { QuestionCircleOutlined as ie } from "@ant-design/icons-vue";
25
- import { Tooltip as ne } from "ant-design-vue";
26
- import { _ as re } from "./index-1d1a6e56.mjs";
17
+ import { defineComponent as q, ref as g, reactive as M, resolveComponent as m, openBlock as w, createBlock as E, withCtx as o, createVNode as n, createTextVNode as F, createCommentVNode as A, createElementVNode as b } from "vue";
18
+ import { BasicModal as W, useModalInner as Q, useModal as z } from "/@/components/Modal";
19
+ import { JCodeEditor as L } from "/@/components/Form";
20
+ import { u as X } from "./useOnlineTest-e4bd8be3.mjs";
21
+ import { E as Y, u as Z } from "./EnhanceJsHistory-8ddb0657.mjs";
22
+ import { g as ee, s as te } from "./enhance.api-138e6826.mjs";
23
+ import { useMessage as se } from "/@/hooks/web/useMessage";
24
+ import { QuestionCircleOutlined as oe } from "@ant-design/icons-vue";
25
+ import { Tooltip as le } from "ant-design-vue";
26
+ import { _ as ae } from "./index-9e1e1e53.mjs";
27
27
  import "/@/utils/dateUtil";
28
28
  import "/@/store";
29
29
  import "pinia";
@@ -32,7 +32,7 @@ import "/@/utils/http/axios";
32
32
  import "/@/utils/is";
33
33
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
34
34
  import "vue-router";
35
- const S = {
35
+ const k = {
36
36
  list: [
37
37
  //------ 列表api -------
38
38
  // 属性
@@ -95,7 +95,7 @@ const S = {
95
95
  { text: ".isUpdate", displayText: "isUpdate", superiors: "this", desc: "是否是编辑页面,返回的是一个ref对象" },
96
96
  { text: ".onlineFormRef", displayText: "onlineFormRef", superiors: "this", desc: "主表/单表表单的ref对象" },
97
97
  { text: ".refMap", displayText: "refMap", superiors: "this", desc: "子表表单/子表table的ref对象map,key为子表表名" },
98
- { text: ".subActiveKey", displayText: "subActiveKey", desc: "子表的激活的tab索引值对应的字符串,从‘0’开始,返回的是一个ref对象" },
98
+ { text: ".subActiveKey", displayText: "subActiveKey", superiors: "this", desc: "子表的激活的tab索引值对应的字符串,从‘0’开始,返回的是一个ref对象" },
99
99
  { text: ".sh", displayText: "sh", superiors: "this", desc: "单表/主表字段的显示隐藏状态" },
100
100
  { text: ".submitFlowFlag", displayText: "submitFlowFlag", superiors: "this", desc: "是否提交表单后自动提交流程,返回一个ref对象" },
101
101
  { text: ".subFormHeight", displayText: "subFormHeight", superiors: "this", desc: "一对一子表表单的高度,不需要设置,返回一个ref对象" },
@@ -298,37 +298,37 @@ const S = {
298
298
  desc: "打开一个弹窗-参考 Js增强打开自定义弹窗"
299
299
  }
300
300
  ]
301
- }, ue = W({
301
+ }, ie = q({
302
302
  name: "EnhanceJs",
303
- components: { BasicModal: L, JCodeEditor: Z, EnhanceJsHistory: te, QuestionCircleOutlined: ie, Tooltip: ne },
303
+ components: { BasicModal: W, JCodeEditor: L, EnhanceJsHistory: Y, QuestionCircleOutlined: oe, Tooltip: le },
304
304
  emits: ["register"],
305
305
  setup() {
306
- const { createMessage: e } = le(), o = se(), h = g(), x = g(), f = M({ form: {}, list: {} }), a = g("list"), r = g(""), c = g(!1), l = g(!1), u = g(""), y = M({ form: "", list: "" }), p = { form: !1, list: !1 }, T = g(!1), k = [...S.list, ...S.common], J = [...S.form, ...S.common], d = g("240px"), [H, { closeModal: V }] = X((t) => C(this, null, function* () {
307
- $(t.row);
308
- })), [j, O] = Y(), { aiTestMode: P, genEnhanceJsData: N } = ee();
309
- function $(t) {
310
- r.value = t.id, l.value = !1, u.value = t.tableName;
311
- let i = o.getEnhanceJs(r.value);
312
- (i == null ? void 0 : i.length) > 0 ? (a.value = i[i.length - 1].type, c.value = !0) : c.value = !1, p.form = !1, p.list = !1, a.value ? R(a.value) : R("form"), T.value = !0, setTimeout(() => T.value = !1, 150);
306
+ const { createMessage: e } = se(), t = Z(), h = g(), x = g(), f = M({ form: {}, list: {} }), l = g("list"), r = g(""), c = g(!1), a = g(!1), u = g(""), y = M({ form: "", list: "" }), p = { form: !1, list: !1 }, T = g(!1), S = [...k.list, ...k.common], J = [...k.form, ...k.common], d = g("240px"), [H, { closeModal: V }] = Q((s) => C(this, null, function* () {
307
+ P(s.row);
308
+ })), [j, O] = z(), { aiTestMode: _, genEnhanceJsData: N } = X();
309
+ function P(s) {
310
+ r.value = s.id, a.value = !1, u.value = s.tableName;
311
+ let i = t.getEnhanceJs(r.value);
312
+ (i == null ? void 0 : i.length) > 0 ? (l.value = i[i.length - 1].type, c.value = !0) : c.value = !1, p.form = !1, p.list = !1, l.value ? R(l.value) : R("form"), T.value = !0, setTimeout(() => T.value = !1, 150);
313
313
  }
314
- function I() {
314
+ function $() {
315
315
  return C(this, null, function* () {
316
316
  yield Promise.all([D("form"), D("list")]), V(), e.success("保存成功");
317
317
  });
318
318
  }
319
- function D(t) {
319
+ function D(s) {
320
320
  return C(this, null, function* () {
321
- let i = f[t], b = {
322
- cgJs: y[t],
323
- cgJsType: t
321
+ let i = f[s], v = {
322
+ cgJs: y[s],
323
+ cgJsType: s
324
324
  };
325
- if (!p[t] || i.cgJs === b.cgJs)
325
+ if (!p[s] || i.cgJs === v.cgJs)
326
326
  return;
327
327
  let B = !!i.id;
328
- B && (b = Object.assign({}, i, b)), yield ae(r.value, b, B), o.addEnhanceJs({
328
+ B && (v = Object.assign({}, i, v)), yield te(r.value, v, B), t.addEnhanceJs({
329
329
  code: r.value,
330
- str: b.cgJs,
331
- type: b.cgJsType,
330
+ str: v.cgJs,
331
+ type: v.cgJsType,
332
332
  date: (/* @__PURE__ */ new Date()).getTime()
333
333
  });
334
334
  });
@@ -336,150 +336,150 @@ const S = {
336
336
  function K() {
337
337
  V();
338
338
  }
339
- function R(t) {
339
+ function R(s) {
340
340
  return C(this, null, function* () {
341
- a.value = t;
341
+ l.value = s;
342
342
  try {
343
- if (!p[t]) {
344
- let i = yield oe(r.value, t);
345
- Object.assign(f[t], { id: null }, i), y[t] = f[t].cgJs, p[t] = !0;
343
+ if (!p[s]) {
344
+ let i = yield ee(r.value, s);
345
+ Object.assign(f[s], { id: null }, i), y[s] = f[s].cgJs, p[s] = !0;
346
346
  }
347
347
  } catch (i) {
348
348
  }
349
349
  setTimeout(() => {
350
- t == "list" ? x.value.refresh() : h.value.refresh();
350
+ s == "list" ? x.value.refresh() : h.value.refresh();
351
351
  }, 150);
352
352
  });
353
353
  }
354
354
  function U() {
355
355
  O.openModal(!0, {
356
356
  code: r.value,
357
- type: a.value
357
+ type: l.value
358
358
  });
359
359
  }
360
- function G(t) {
361
- y[a.value] != t && (l.value = !0, y[a.value] = t);
360
+ function I(s) {
361
+ y[l.value] != s && (a.value = !0, y[l.value] = s);
362
362
  }
363
- function q() {
364
- a.value === "form" ? N(u.value, a.value, h.value) : N(u.value, a.value, x.value);
363
+ function G() {
364
+ l.value === "form" ? N(u.value, l.value, h.value) : N(u.value, l.value, x.value);
365
365
  }
366
366
  return {
367
367
  formEditorRef: h,
368
368
  listEditorRef: x,
369
369
  reloading: T,
370
370
  enhanceValues: y,
371
- enhanceType: a,
371
+ enhanceType: l,
372
372
  showHistory: c,
373
- aiTestMode: P,
373
+ aiTestMode: _,
374
374
  tableName: u,
375
375
  genEnhanceJsData: N,
376
- onGenTestData: q,
376
+ onGenTestData: G,
377
377
  onChangeType: R,
378
- onCodeChange: G,
378
+ onCodeChange: I,
379
379
  onShowHistory: U,
380
- onSubmit: I,
380
+ onSubmit: $,
381
381
  onCancel: K,
382
382
  registerModal: H,
383
383
  registerEnhanceJsHistory: j,
384
- listKeyWords: k,
384
+ listKeyWords: S,
385
385
  formKeyWords: J,
386
- handleGo: (t) => {
387
- window.open(`https://help.jeecg.com/online/enhanceJs/${t}.html`);
386
+ handleGo: (s) => {
387
+ window.open(`https://help.jeecg.com/java/online/enhanceJs/${s}`);
388
388
  },
389
389
  codeEditorHeight: d,
390
- handleFullScreenChange: (t) => {
391
- t ? d.value = `${document.documentElement.clientHeight - 250}px` : d.value = "240px";
390
+ handleFullScreenChange: (s) => {
391
+ s ? d.value = `${document.documentElement.clientHeight - 250}px` : d.value = "240px";
392
392
  }
393
393
  };
394
394
  }
395
395
  });
396
- const A = (e) => (Q("data-v-cb798483"), e = e(), z(), e), de = { class: "titleBox" }, ce = /* @__PURE__ */ A(() => /* @__PURE__ */ v("span", { class: "title" }, "form", -1)), pe = /* @__PURE__ */ A(() => /* @__PURE__ */ v("span", null, "表单js增强文档", -1)), he = { class: "titleBox" }, ge = /* @__PURE__ */ A(() => /* @__PURE__ */ v("span", { class: "title" }, "list", -1)), me = /* @__PURE__ */ A(() => /* @__PURE__ */ v("span", null, "列表js增强文档", -1));
397
- function fe(e, o, h, x, f, a) {
398
- const r = m("QuestionCircleOutlined"), c = m("Tooltip"), l = m("JCodeEditor"), u = m("a-tab-pane"), y = m("a-tabs"), p = m("a-button"), T = m("a-space"), k = m("EnhanceJsHistory"), J = m("BasicModal");
396
+ const ne = { class: "titleBox" }, re = { class: "titleBox" };
397
+ function ue(e, t, h, x, f, l) {
398
+ const r = m("QuestionCircleOutlined"), c = m("Tooltip"), a = m("JCodeEditor"), u = m("a-tab-pane"), y = m("a-tabs"), p = m("a-button"), T = m("a-space"), S = m("EnhanceJsHistory"), J = m("BasicModal");
399
399
  return w(), E(J, {
400
400
  onRegister: e.registerModal,
401
401
  title: "JS增强",
402
402
  width: 800,
403
403
  onFullScreen: e.handleFullScreenChange
404
404
  }, {
405
- footer: s(() => [
405
+ footer: o(() => [
406
406
  n(T, null, {
407
- default: s(() => [
407
+ default: o(() => [
408
408
  n(p, { onClick: e.onCancel }, {
409
- default: s(() => [
409
+ default: o(() => t[9] || (t[9] = [
410
410
  F("关闭")
411
- ]),
411
+ ])),
412
412
  _: 1
413
413
  }, 8, ["onClick"]),
414
414
  n(p, {
415
415
  type: "primary",
416
416
  onClick: e.onSubmit
417
417
  }, {
418
- default: s(() => [
418
+ default: o(() => t[10] || (t[10] = [
419
419
  F("确定")
420
- ]),
420
+ ])),
421
421
  _: 1
422
422
  }, 8, ["onClick"])
423
423
  ]),
424
424
  _: 1
425
425
  }),
426
426
  n(T, { style: { float: "left" } }, {
427
- default: s(() => [
427
+ default: o(() => [
428
428
  e.showHistory ? (w(), E(p, {
429
429
  key: 0,
430
430
  onClick: e.onShowHistory
431
431
  }, {
432
- default: s(() => [
432
+ default: o(() => t[11] || (t[11] = [
433
433
  F("查看历史版本")
434
- ]),
434
+ ])),
435
435
  _: 1
436
- }, 8, ["onClick"])) : _("", !0),
436
+ }, 8, ["onClick"])) : A("", !0),
437
437
  e.aiTestMode ? (w(), E(p, {
438
438
  key: 1,
439
439
  onClick: e.onGenTestData
440
440
  }, {
441
- default: s(() => [
441
+ default: o(() => t[12] || (t[12] = [
442
442
  F("生成测试数据")
443
- ]),
443
+ ])),
444
444
  _: 1
445
- }, 8, ["onClick"])) : _("", !0)
445
+ }, 8, ["onClick"])) : A("", !0)
446
446
  ]),
447
447
  _: 1
448
448
  })
449
449
  ]),
450
- default: s(() => [
450
+ default: o(() => [
451
451
  n(y, {
452
452
  activeKey: e.enhanceType,
453
- "onUpdate:activeKey": o[4] || (o[4] = (d) => e.enhanceType = d),
453
+ "onUpdate:activeKey": t[4] || (t[4] = (d) => e.enhanceType = d),
454
454
  onChange: e.onChangeType
455
455
  }, {
456
- default: s(() => [
456
+ default: o(() => [
457
457
  n(u, {
458
458
  key: "form",
459
459
  forceRender: ""
460
460
  }, {
461
- tab: s(() => [
462
- v("div", de, [
463
- ce,
461
+ tab: o(() => [
462
+ b("div", ne, [
463
+ t[6] || (t[6] = b("span", { class: "title" }, "form", -1)),
464
464
  n(c, null, {
465
- title: s(() => [
466
- pe
467
- ]),
468
- default: s(() => [
465
+ title: o(() => t[5] || (t[5] = [
466
+ b("span", null, "表单js增强文档", -1)
467
+ ])),
468
+ default: o(() => [
469
469
  n(r, {
470
- onClick: o[0] || (o[0] = (d) => e.handleGo("form"))
470
+ onClick: t[0] || (t[0] = (d) => e.handleGo("form"))
471
471
  })
472
472
  ]),
473
473
  _: 1
474
474
  })
475
475
  ])
476
476
  ]),
477
- default: s(() => [
478
- !e.reloading && e.enhanceType === "form" ? (w(), E(l, {
477
+ default: o(() => [
478
+ !e.reloading && e.enhanceType === "form" ? (w(), E(a, {
479
479
  key: 0,
480
480
  ref: "formEditorRef",
481
481
  value: e.enhanceValues.form,
482
- "onUpdate:value": o[1] || (o[1] = (d) => e.enhanceValues.form = d),
482
+ "onUpdate:value": t[1] || (t[1] = (d) => e.enhanceValues.form = d),
483
483
  language: "javascript",
484
484
  fullScreen: !0,
485
485
  lineNumbers: !1,
@@ -490,7 +490,7 @@ function fe(e, o, h, x, f, a) {
490
490
  placeholder: `代码提示技巧:
491
491
  全局对象: this.调用属性或方法
492
492
  事件方法:beforeSubmit、loaded、onlChange、getAction、postAction、putAction、deleteAction、deleteAction、openCustomModal等`
493
- }, null, 8, ["value", "height", "onChange", "keywords"])) : _("", !0)
493
+ }, null, 8, ["value", "height", "onChange", "keywords"])) : A("", !0)
494
494
  ]),
495
495
  _: 1
496
496
  }),
@@ -498,28 +498,28 @@ function fe(e, o, h, x, f, a) {
498
498
  key: "list",
499
499
  forceRender: ""
500
500
  }, {
501
- tab: s(() => [
502
- v("div", he, [
503
- ge,
501
+ tab: o(() => [
502
+ b("div", re, [
503
+ t[8] || (t[8] = b("span", { class: "title" }, "list", -1)),
504
504
  n(c, null, {
505
- title: s(() => [
506
- me
507
- ]),
508
- default: s(() => [
505
+ title: o(() => t[7] || (t[7] = [
506
+ b("span", null, "列表js增强文档", -1)
507
+ ])),
508
+ default: o(() => [
509
509
  n(r, {
510
- onClick: o[2] || (o[2] = (d) => e.handleGo("list"))
510
+ onClick: t[2] || (t[2] = (d) => e.handleGo("list"))
511
511
  })
512
512
  ]),
513
513
  _: 1
514
514
  })
515
515
  ])
516
516
  ]),
517
- default: s(() => [
518
- !e.reloading && e.enhanceType === "list" ? (w(), E(l, {
517
+ default: o(() => [
518
+ !e.reloading && e.enhanceType === "list" ? (w(), E(a, {
519
519
  key: 0,
520
520
  ref: "listEditorRef",
521
521
  value: e.enhanceValues.list,
522
- "onUpdate:value": o[3] || (o[3] = (d) => e.enhanceValues.list = d),
522
+ "onUpdate:value": t[3] || (t[3] = (d) => e.enhanceValues.list = d),
523
523
  language: "javascript",
524
524
  fullScreen: !0,
525
525
  lineNumbers: !1,
@@ -530,19 +530,19 @@ function fe(e, o, h, x, f, a) {
530
530
  placeholder: `代码提示技巧:
531
531
  全局对象: this.调用属性或方法
532
532
  事件方法:beforeDelete、beforeEdit、getAction、postAction、putAction、deleteAction、deleteAction、openCustomModal等`
533
- }, null, 8, ["value", "height", "onChange", "keywords"])) : _("", !0)
533
+ }, null, 8, ["value", "height", "onChange", "keywords"])) : A("", !0)
534
534
  ]),
535
535
  _: 1
536
536
  })
537
537
  ]),
538
538
  _: 1
539
539
  }, 8, ["activeKey", "onChange"]),
540
- n(k, { onRegister: e.registerEnhanceJsHistory }, null, 8, ["onRegister"])
540
+ n(S, { onRegister: e.registerEnhanceJsHistory }, null, 8, ["onRegister"])
541
541
  ]),
542
542
  _: 1
543
543
  }, 8, ["onRegister", "onFullScreen"]);
544
544
  }
545
- const je = /* @__PURE__ */ re(ue, [["render", fe], ["__scopeId", "data-v-cb798483"]]);
545
+ const Re = /* @__PURE__ */ ae(ie, [["render", ue], ["__scopeId", "data-v-73c97e14"]]);
546
546
  export {
547
- je as default
547
+ Re as default
548
548
  };