@jeecg/online 3.5.3-vite4 → 3.6.2-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/{AuthButtonConfig-2f71787c.mjs → AuthButtonConfig-244ec09f.mjs} +1 -1
  2. package/{AuthButtonTree-d73bccf5.mjs → AuthButtonTree-3aa0ed49.mjs} +1 -1
  3. package/{AuthDataConfig-32cf23d2.mjs → AuthDataConfig-83891eea.mjs} +1 -1
  4. package/{AuthDataTree-03d62d3f.mjs → AuthDataTree-94e026e3.mjs} +1 -1
  5. package/{AuthFieldConfig-b1217a0c.mjs → AuthFieldConfig-6b21915c.mjs} +1 -1
  6. package/{AuthFieldTree-888e04a9.mjs → AuthFieldTree-69864163.mjs} +1 -1
  7. package/{AuthManagerDrawer-f127b8a2.mjs → AuthManagerDrawer-300dd4e4.mjs} +4 -4
  8. package/{AuthSetterModal-37da78ed.mjs → AuthSetterModal-a414fb35.mjs} +58 -52
  9. package/{CgformCopyList-3adab58f.mjs → CgformCopyList-14b76108.mjs} +42 -39
  10. package/CgformModal-eccfc38e.mjs +611 -0
  11. package/{CgreportModal-77ec8c17.mjs → CgreportModal-2065f5a9.mjs} +2 -1
  12. package/{CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs → CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs} +170 -171
  13. package/{CheckDictTable-414313f2.mjs → CheckDictTable-134cbb83.mjs} +3 -3
  14. package/{CodeFileListModal-4831ce3d.mjs → CodeFileListModal-a6d3290d.mjs} +2 -2
  15. package/{CodeFileViewModal-5990dac4.mjs → CodeFileViewModal-373e8058.mjs} +2 -2
  16. package/{CodeGeneratorModal-7df9e25d.mjs → CodeGeneratorModal-f08a89cd.mjs} +5 -6
  17. package/{CustomButtonList-1c9bd859.mjs → CustomButtonList-02e3d897.mjs} +2 -2
  18. package/{DBAttributeTable-cd1c41e5.mjs → DBAttributeTable-370de07b.mjs} +2 -2
  19. package/{DbToOnlineModal-dc5d2030.mjs → DbToOnlineModal-9f13956f.mjs} +35 -35
  20. package/{DetailForm-e4538e7a.mjs → DetailForm-424638eb.mjs} +179 -163
  21. package/{EnhanceJavaModal-7f53d2ca.mjs → EnhanceJavaModal-f63aa2d3.mjs} +17 -13
  22. package/{EnhanceJsHistory-c30805ce.mjs → EnhanceJsHistory-352b46b1.mjs} +1 -1
  23. package/EnhanceJsModal-05c73a59.mjs +311 -0
  24. package/{EnhanceSqlModal-33a94c83.mjs → EnhanceSqlModal-5e4ae84f.mjs} +55 -46
  25. package/{ExtendConfigModal-60f2cf86.mjs → ExtendConfigModal-1dde390a.mjs} +2 -2
  26. package/FieldExtendJsonModal-a70a9ccd.mjs +219 -0
  27. package/FileSelectModal-9a02560b.mjs +103 -0
  28. package/{ForeignKeyTable-cb1abd1d.mjs → ForeignKeyTable-6a843c4b.mjs} +2 -2
  29. package/{IndexTable-4e94cd1f.mjs → IndexTable-f8af9d44.mjs} +2 -2
  30. package/JModalTip-33c7dc44.mjs +49 -0
  31. package/{JOnlineSearchSelect-5608a5cf.mjs → JOnlineSearchSelect-c287af12.mjs} +17 -16
  32. package/{LeftDepart-ca7a7375.mjs → LeftDepart-fa85523d.mjs} +1 -1
  33. package/{LeftRole-d0fa8398.mjs → LeftRole-8b8dfe21.mjs} +1 -1
  34. package/{LeftUser-0c88c240.mjs → LeftUser-dc24ef2f.mjs} +1 -1
  35. package/{LinkTableConfigModal-77d7c0b9.mjs → LinkTableConfigModal-d4fbdef2.mjs} +23 -23
  36. package/{LinkTableFieldConfigModal-c5689ab0.mjs → LinkTableFieldConfigModal-787bc55c.mjs} +44 -46
  37. package/LinkTableListPiece-8499a318.mjs +34 -0
  38. package/{ModalFormDemo-0eeea994.mjs → ModalFormDemo-977a49eb.mjs} +1 -1
  39. package/OnlCgformErpList-db45e22b.mjs +454 -0
  40. package/OnlCgformErpSubTable-54b50eec.mjs +403 -0
  41. package/OnlCgformInnerSubTable-fbca73e0.mjs +253 -0
  42. package/OnlCgformInnerTableList-782eaf04.mjs +444 -0
  43. package/OnlCgformTabList-a9e1e36a.mjs +395 -0
  44. package/OnlineAutoList-0583a910.mjs +479 -0
  45. package/{OnlineAutoModal-2a146238.mjs → OnlineAutoModal-510991eb.mjs} +59 -58
  46. package/{OnlineAutoTreeList-f8d0e100.mjs → OnlineAutoTreeList-89265688.mjs} +158 -153
  47. package/{OnlineCustomModal-456a85a6.mjs → OnlineCustomModal-518ad33c.mjs} +67 -66
  48. package/{OnlineDetailModal-f967f080.mjs → OnlineDetailModal-9675390d.mjs} +40 -39
  49. package/OnlineForm-1fa2d893.mjs +750 -0
  50. package/{OnlineFormDetail-1b216792.mjs → OnlineFormDetail-0e7294ca.mjs} +56 -55
  51. package/OnlineQueryForm-1bfc8320.mjs +386 -0
  52. package/{OnlineSearchFormItem-7c2ea9ed.mjs → OnlineSearchFormItem-0cc85a8a.mjs} +83 -87
  53. package/{OnlineSelectCascade-c7baf52b.mjs → OnlineSelectCascade-4265c95d.mjs} +31 -32
  54. package/{OnlineSubFormDetail-0aa4966c.mjs → OnlineSubFormDetail-f0d2c016.mjs} +53 -50
  55. package/OnlineTabAutoModal-6f636ee2.mjs +254 -0
  56. package/OnlineTabDetailModal-7356d3a8.mjs +223 -0
  57. package/OnlineTabForm-512d3951.mjs +766 -0
  58. package/OnlineTabFormDetail-5a70219d.mjs +324 -0
  59. package/{PageAttributeTable-811185fd.mjs → PageAttributeTable-965dc58e.mjs} +20 -20
  60. package/{ProcessOnlineForm-27be6f6f.mjs → ProcessOnlineForm-67558898.mjs} +39 -38
  61. package/{QueryTable-4ba771ef.mjs → QueryTable-eb9a5b21.mjs} +2 -2
  62. package/README.md +5 -2
  63. package/{SuperQuery-3821f984.mjs → SuperQuery-5d1ca957.mjs} +171 -173
  64. package/{SuperQueryValComponent-471110b5.mjs → SuperQueryValComponent-7ad86d4b.mjs} +1 -1
  65. package/SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs +101 -0
  66. package/cgformState-d9f8ec42.mjs +28 -0
  67. package/constant-754f1a9d.mjs +9 -0
  68. package/index-0e3ab3af.mjs +56 -0
  69. package/{index-074b92e5.mjs → index-49508cad.mjs} +4 -3
  70. package/index-b7a05eef.mjs +1496 -0
  71. package/main.index.js +1 -1
  72. package/package.json +1 -1
  73. package/style.css +1 -1
  74. package/useCgformList-423282b7.mjs +400 -0
  75. package/useCustomHook-acb00837.mjs +53 -0
  76. package/useExtendComponent-325fe3f1.mjs +3926 -0
  77. package/useListButton-cdbab702.mjs +676 -0
  78. package/useOnlinePopEvent-687070b7.mjs +19 -0
  79. package/useOnlineTest-e4bd8be3.mjs +42 -0
  80. package/{useSchemas-fc8d97ce.mjs → useSchemas-0433a403.mjs} +129 -109
  81. package/{useTableSync-dc333087.mjs → useTableSync-774c3774.mjs} +17 -13
  82. package/CgformModal-6938d8c2.mjs +0 -613
  83. package/EnhanceJsModal-0b133341.mjs +0 -233
  84. package/FieldExtendJsonModal-48f7d67f.mjs +0 -220
  85. package/FileSelectModal-64aaf623.mjs +0 -91
  86. package/JModalTip-abe1515a.mjs +0 -46
  87. package/LinkTableListPiece-34266919.mjs +0 -34
  88. package/OnlCgformErpList-7a0388d8.mjs +0 -425
  89. package/OnlCgformErpSubTable-fc6ade76.mjs +0 -388
  90. package/OnlineAutoList-85e6a30d.mjs +0 -472
  91. package/OnlineForm-630a22c2.mjs +0 -778
  92. package/OnlineQueryForm-1c5949a7.mjs +0 -378
  93. package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +0 -101
  94. package/constant-fe20103a.mjs +0 -6
  95. package/index-6a09a912.mjs +0 -58
  96. package/index-9d32ae88.mjs +0 -313
  97. package/useCgformList-2d6a5955.mjs +0 -388
  98. package/useExtendComponent-48d37d9b.mjs +0 -3919
  99. package/useListButton-cef1371a.mjs +0 -656
  100. package/useOnlinePopEvent-e9a042f8.mjs +0 -19
  101. package/useOnlineTest-0df0ae86.mjs +0 -43
@@ -30,10 +30,10 @@ import { BasicModal as ie, useModalInner as re, useModal as se } from "/@/compon
30
30
  import { BasicForm as le, useForm as ce } from "/@/components/Form";
31
31
  import { BasicTable as ue, TableAction as me } from "/@/components/Table";
32
32
  import { useListPage as de } from "/@/hooks/system/useListPage";
33
- import { u as pe } from "./useOnlineTest-0df0ae86.mjs";
33
+ import { u as pe } from "./useOnlineTest-e4bd8be3.mjs";
34
34
  import { u as fe, a as ge } from "./enhance.data-efc7e155.mjs";
35
35
  import { a as _e, b as he, d as L } from "./enhance.api-138e6826.mjs";
36
- import { _ as be } from "./index-6a09a912.mjs";
36
+ import { _ as be } from "./index-0e3ab3af.mjs";
37
37
  import "./cgform.data-cbdd88c3.mjs";
38
38
  import "/@/utils/dict";
39
39
  import "/@/utils/dict/JDictSelectUtil";
@@ -43,7 +43,7 @@ import "/@/utils/is";
43
43
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
44
44
  import "/@/hooks/web/useMessage";
45
45
  import "vue-router";
46
- const ve = Z({
46
+ const Ce = Z({
47
47
  name: "EnhanceJavaModal",
48
48
  components: { BasicModal: ie, BasicTable: ue, BasicForm: le, TableAction: me },
49
49
  emits: ["register"],
@@ -61,7 +61,7 @@ const ve = Z({
61
61
  return Object.assign(n, { column: "orderNum", order: "asc" });
62
62
  }
63
63
  }
64
- }), [c, { reload: l }, { rowSelection: r, selectedRowKeys: u }] = h, [v, { closeModal: C }] = re((n) => p(this, null, function* () {
64
+ }), [c, { reload: l }, { rowSelection: r, selectedRowKeys: u }] = h, [C, { closeModal: v }] = re((n) => p(this, null, function* () {
65
65
  e.value = n.row.id, l();
66
66
  })), { aiTestMode: w, genEnhanceJavaData: y } = pe(), [M, d] = se(), m = k(!1), B = x({
67
67
  onRegister: M,
@@ -75,10 +75,14 @@ const ve = Z({
75
75
  let F = {};
76
76
  const { formSchemas: P } = fe(t), [V, { resetFields: $, setFieldsValue: N, validate: O }] = ce({
77
77
  schemas: P,
78
- showActionButtonGroup: !1
78
+ showActionButtonGroup: !1,
79
+ // update-begin--author:liaozhiyang---date:20231017---for:【issues/790】弹窗内文本框不居中问题
80
+ labelCol: { xs: 24, sm: 5 },
81
+ wrapperCol: { xs: 24, sm: 16 }
82
+ // update-end--author:liaozhiyang---date:20231017---for:【issues/790】弹窗内文本框不居中问题
79
83
  });
80
84
  function G() {
81
- C();
85
+ v();
82
86
  }
83
87
  function T(n) {
84
88
  return p(this, null, function* () {
@@ -142,7 +146,7 @@ const ve = Z({
142
146
  getTableAction: q,
143
147
  getDropDownAction: H,
144
148
  formModalProps: B,
145
- registerModal: v,
149
+ registerModal: C,
146
150
  registerTable: c,
147
151
  registerForm: V
148
152
  };
@@ -154,12 +158,12 @@ const ve = Z({
154
158
  };
155
159
  }
156
160
  }
157
- }), Ce = {
161
+ }), ve = {
158
162
  key: 0,
159
163
  style: { float: "left" }
160
164
  };
161
165
  function we(e, t, o, _, f, h) {
162
- const c = s("a-button"), l = s("a-icon"), r = s("a-menu-item"), u = s("a-menu"), v = s("a-dropdown"), C = s("TableAction"), w = s("BasicTable"), y = s("BasicForm"), M = s("a-spin"), d = s("BasicModal");
166
+ const c = s("a-button"), l = s("a-icon"), r = s("a-menu-item"), u = s("a-menu"), C = s("a-dropdown"), v = s("TableAction"), w = s("BasicTable"), y = s("BasicForm"), M = s("a-spin"), d = s("BasicModal");
163
167
  return D(), J(d, {
164
168
  onRegister: e.registerModal,
165
169
  title: "JAVA增强",
@@ -174,7 +178,7 @@ function we(e, t, o, _, f, h) {
174
178
  ]),
175
179
  _: 1
176
180
  }, 8, ["onClick"]),
177
- e.aiTestMode ? (D(), ne("div", Ce, [
181
+ e.aiTestMode ? (D(), ne("div", ve, [
178
182
  i(c, { onClick: e.onGenEnhanceJavaData }, {
179
183
  default: a(() => [
180
184
  g("生成测试数据")
@@ -199,7 +203,7 @@ function we(e, t, o, _, f, h) {
199
203
  ]),
200
204
  _: 1
201
205
  }, 8, ["onClick"]),
202
- e.selectedRowKeys.length > 0 ? (D(), J(v, { key: 0 }, {
206
+ e.selectedRowKeys.length > 0 ? (D(), J(C, { key: 0 }, {
203
207
  overlay: a(() => [
204
208
  i(u, null, {
205
209
  default: a(() => [
@@ -230,7 +234,7 @@ function we(e, t, o, _, f, h) {
230
234
  })) : S("", !0)
231
235
  ]),
232
236
  action: a(({ record: m }) => [
233
- i(C, {
237
+ i(v, {
234
238
  actions: e.getTableAction(m),
235
239
  dropDownActions: e.getDropDownAction(m)
236
240
  }, null, 8, ["actions", "dropDownActions"])
@@ -254,7 +258,7 @@ function we(e, t, o, _, f, h) {
254
258
  _: 1
255
259
  }, 8, ["onRegister", "onCancel"]);
256
260
  }
257
- const je = /* @__PURE__ */ be(ve, [["render", we]]);
261
+ const je = /* @__PURE__ */ be(Ce, [["render", we]]);
258
262
  export {
259
263
  je as default
260
264
  };
@@ -32,7 +32,7 @@ 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-6a09a912.mjs";
35
+ import { _ as G } from "./index-0e3ab3af.mjs";
36
36
  const B = q(), H = "enhance_", K = P({
37
37
  id: "online-cgform-enhance",
38
38
  state: () => ({
@@ -0,0 +1,311 @@
1
+ var w = (e, l, c) => new Promise((y, g) => {
2
+ var a = (t) => {
3
+ try {
4
+ u(c.next(t));
5
+ } catch (n) {
6
+ g(n);
7
+ }
8
+ }, r = (t) => {
9
+ try {
10
+ u(c.throw(t));
11
+ } catch (n) {
12
+ g(n);
13
+ }
14
+ }, u = (t) => t.done ? y(t.value) : Promise.resolve(t.value).then(a, r);
15
+ u((c = c.apply(e, l)).next());
16
+ });
17
+ import { defineComponent as I, ref as m, reactive as H, resolveComponent as v, openBlock as E, createBlock as T, withCtx as i, createVNode as f, createTextVNode as J, createCommentVNode as k } from "vue";
18
+ import { BasicModal as q, useModalInner as G, useModal as z } from "/@/components/Modal";
19
+ import { JCodeEditor as L } from "/@/components/Form";
20
+ import { u as Q } from "./useOnlineTest-e4bd8be3.mjs";
21
+ import { E as X, u as Y } from "./EnhanceJsHistory-352b46b1.mjs";
22
+ import { g as Z, s as x } from "./enhance.api-138e6826.mjs";
23
+ import { useMessage as ee } from "/@/hooks/web/useMessage";
24
+ import { _ as oe } from "./index-0e3ab3af.mjs";
25
+ import "/@/utils/dateUtil";
26
+ import "/@/store";
27
+ import "pinia";
28
+ import "/@/utils/cache";
29
+ import "/@/utils/http/axios";
30
+ import "/@/utils/is";
31
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
32
+ import "vue-router";
33
+ const R = {
34
+ list: [
35
+ //------ 列表api -------
36
+ // 属性
37
+ ".acceptHrefParams",
38
+ ".currentPage",
39
+ ".currentTableName",
40
+ ".currentTableName",
41
+ ".description",
42
+ ".hasChildrenField",
43
+ ".ID",
44
+ ".pageSize",
45
+ ".queryParam",
46
+ ".selectedRowKeys",
47
+ ".selectedRows",
48
+ ".sortField",
49
+ ".sortType",
50
+ ".total",
51
+ // 方法
52
+ ".loadData()",
53
+ ".clearSelectedRow()",
54
+ ".getLoadDataParams()",
55
+ ".isTree()",
56
+ // 事件(前置)
57
+ "beforeEdit(row){ }",
58
+ "beforeDelete(row){ }",
59
+ "console.log()"
60
+ ],
61
+ form: [
62
+ //------ 表单api -------
63
+ // 属性
64
+ ".loading",
65
+ ".isUpdate",
66
+ ".onlineFormRef",
67
+ ".refMap",
68
+ ".subActiveKey",
69
+ ".sh",
70
+ ".submitFlowFlag",
71
+ ".subFormHeight",
72
+ ".subTableHeight",
73
+ ".tableName",
74
+ ".$nextTick",
75
+ // 方法
76
+ ".addSubRows(tableName, rows)",
77
+ ".changeOptions(field, options)",
78
+ ".clearSubRows(tableName)",
79
+ ".clearThenAddRows(tableName, rows)",
80
+ ".getFieldsValue()",
81
+ ".getSubTableInstance(tableName)",
82
+ ".setFieldsValue(row)",
83
+ ".triggleChangeValues(values,id,target)",
84
+ ".triggleChangeValue(field, value)",
85
+ ".onlineFormValueChange(field, value, otherValus)",
86
+ // 提交前置事件
87
+ "beforeSubmit(row){ }",
88
+ // 表单加载事件
89
+ "loaded(){ }",
90
+ // 单表#表单值改变事件
91
+ "onlChange(){ }",
92
+ // 子表#表单值改变事件
93
+ "子表名_onlChange(){ }",
94
+ // js增强实现下拉联动
95
+ ".changeOptions()",
96
+ // JS增强 触发弹窗
97
+ // JS增强 http请求
98
+ "getAction(url, param)",
99
+ "postAction(url, param)",
100
+ "putAction(url, param)",
101
+ "deleteAction(url, param)",
102
+ "console.log()"
103
+ ],
104
+ common: [
105
+ "this",
106
+ ".openCustomModal(title,width,row,formComponent,requestUrl,hide,show)"
107
+ ]
108
+ }, ae = I({
109
+ name: "EnhanceJs",
110
+ components: { BasicModal: q, JCodeEditor: L, EnhanceJsHistory: X },
111
+ emits: ["register"],
112
+ setup() {
113
+ const { createMessage: e } = ee(), l = Y(), c = m(), y = m(), g = H({ form: {}, list: {} }), a = m("list"), r = m(""), u = m(!1), t = m(!1), n = m(""), d = H({ form: "", list: "" }), p = { form: !1, list: !1 }, b = m(!1), h = [...R.list, ...R.common], B = [...R.form, ...R.common], [D, { closeModal: N }] = G((o) => w(this, null, function* () {
114
+ U(o.row);
115
+ })), [_, K] = z(), { aiTestMode: A, genEnhanceJsData: M } = Q();
116
+ function U(o) {
117
+ r.value = o.id, t.value = !1, n.value = o.tableName;
118
+ let s = l.getEnhanceJs(r.value);
119
+ (s == null ? void 0 : s.length) > 0 ? (a.value = s[s.length - 1].type, u.value = !0) : u.value = !1, p.form = !1, p.list = !1, a.value ? S(a.value) : S("form"), b.value = !0, setTimeout(() => b.value = !1, 150);
120
+ }
121
+ function $() {
122
+ return w(this, null, function* () {
123
+ yield Promise.all([V("form"), V("list")]), N(), e.success("保存成功");
124
+ });
125
+ }
126
+ function V(o) {
127
+ return w(this, null, function* () {
128
+ let s = g[o], C = {
129
+ cgJs: d[o],
130
+ cgJsType: o
131
+ };
132
+ if (!p[o] || s.cgJs === C.cgJs)
133
+ return;
134
+ let F = !!s.id;
135
+ F && (C = Object.assign({}, s, C)), yield x(r.value, C, F), l.addEnhanceJs({
136
+ code: r.value,
137
+ str: C.cgJs,
138
+ type: C.cgJsType,
139
+ date: (/* @__PURE__ */ new Date()).getTime()
140
+ });
141
+ });
142
+ }
143
+ function O() {
144
+ N();
145
+ }
146
+ function S(o) {
147
+ return w(this, null, function* () {
148
+ a.value = o;
149
+ try {
150
+ if (!p[o]) {
151
+ let s = yield Z(r.value, o);
152
+ Object.assign(g[o], { id: null }, s), d[o] = g[o].cgJs, p[o] = !0;
153
+ }
154
+ } catch (s) {
155
+ }
156
+ setTimeout(() => {
157
+ o == "list" ? y.value.refresh() : c.value.refresh();
158
+ }, 150);
159
+ });
160
+ }
161
+ function P() {
162
+ K.openModal(!0, {
163
+ code: r.value,
164
+ type: a.value
165
+ });
166
+ }
167
+ function j(o) {
168
+ d[a.value] != o && (t.value = !0, d[a.value] = o);
169
+ }
170
+ function W() {
171
+ a.value === "form" ? M(n.value, a.value, c.value) : M(n.value, a.value, y.value);
172
+ }
173
+ return {
174
+ formEditorRef: c,
175
+ listEditorRef: y,
176
+ reloading: b,
177
+ enhanceValues: d,
178
+ enhanceType: a,
179
+ showHistory: u,
180
+ aiTestMode: A,
181
+ tableName: n,
182
+ genEnhanceJsData: M,
183
+ onGenTestData: W,
184
+ onChangeType: S,
185
+ onCodeChange: j,
186
+ onShowHistory: P,
187
+ onSubmit: $,
188
+ onCancel: O,
189
+ registerModal: D,
190
+ registerEnhanceJsHistory: _,
191
+ listKeyWords: h,
192
+ formKeyWords: B
193
+ };
194
+ }
195
+ });
196
+ function ne(e, l, c, y, g, a) {
197
+ const r = v("JCodeEditor"), u = v("a-tab-pane"), t = v("a-tabs"), n = v("a-button"), d = v("a-space"), p = v("EnhanceJsHistory"), b = v("BasicModal");
198
+ return E(), T(b, {
199
+ onRegister: e.registerModal,
200
+ title: "JS增强",
201
+ width: 800,
202
+ bodyStyle: { height: "360px" }
203
+ }, {
204
+ footer: i(() => [
205
+ f(d, null, {
206
+ default: i(() => [
207
+ f(n, { onClick: e.onCancel }, {
208
+ default: i(() => [
209
+ J("关闭")
210
+ ]),
211
+ _: 1
212
+ }, 8, ["onClick"]),
213
+ f(n, {
214
+ type: "primary",
215
+ onClick: e.onSubmit
216
+ }, {
217
+ default: i(() => [
218
+ J("确定")
219
+ ]),
220
+ _: 1
221
+ }, 8, ["onClick"])
222
+ ]),
223
+ _: 1
224
+ }),
225
+ f(d, { style: { float: "left" } }, {
226
+ default: i(() => [
227
+ e.showHistory ? (E(), T(n, {
228
+ key: 0,
229
+ onClick: e.onShowHistory
230
+ }, {
231
+ default: i(() => [
232
+ J("查看历史版本")
233
+ ]),
234
+ _: 1
235
+ }, 8, ["onClick"])) : k("", !0),
236
+ e.aiTestMode ? (E(), T(n, {
237
+ key: 1,
238
+ onClick: e.onGenTestData
239
+ }, {
240
+ default: i(() => [
241
+ J("生成测试数据")
242
+ ]),
243
+ _: 1
244
+ }, 8, ["onClick"])) : k("", !0)
245
+ ]),
246
+ _: 1
247
+ })
248
+ ]),
249
+ default: i(() => [
250
+ f(t, {
251
+ activeKey: e.enhanceType,
252
+ "onUpdate:activeKey": l[2] || (l[2] = (h) => e.enhanceType = h),
253
+ onChange: e.onChangeType
254
+ }, {
255
+ default: i(() => [
256
+ f(u, {
257
+ tab: "form",
258
+ key: "form",
259
+ forceRender: ""
260
+ }, {
261
+ default: i(() => [
262
+ !e.reloading && e.enhanceType === "form" ? (E(), T(r, {
263
+ key: 0,
264
+ ref: "formEditorRef",
265
+ value: e.enhanceValues.form,
266
+ "onUpdate:value": l[0] || (l[0] = (h) => e.enhanceValues.form = h),
267
+ language: "javascript",
268
+ fullScreen: !0,
269
+ lineNumbers: !1,
270
+ height: "240px",
271
+ "language-change": !1,
272
+ onChange: e.onCodeChange,
273
+ keywords: e.formKeyWords
274
+ }, null, 8, ["value", "onChange", "keywords"])) : k("", !0)
275
+ ]),
276
+ _: 1
277
+ }),
278
+ f(u, {
279
+ tab: "list",
280
+ key: "list",
281
+ forceRender: ""
282
+ }, {
283
+ default: i(() => [
284
+ !e.reloading && e.enhanceType === "list" ? (E(), T(r, {
285
+ key: 0,
286
+ ref: "listEditorRef",
287
+ value: e.enhanceValues.list,
288
+ "onUpdate:value": l[1] || (l[1] = (h) => e.enhanceValues.list = h),
289
+ language: "javascript",
290
+ fullScreen: !0,
291
+ lineNumbers: !1,
292
+ height: "240px",
293
+ "language-change": !1,
294
+ onChange: e.onCodeChange,
295
+ keywords: e.listKeyWords
296
+ }, null, 8, ["value", "onChange", "keywords"])) : k("", !0)
297
+ ]),
298
+ _: 1
299
+ })
300
+ ]),
301
+ _: 1
302
+ }, 8, ["activeKey", "onChange"]),
303
+ f(p, { onRegister: e.registerEnhanceJsHistory }, null, 8, ["onRegister"])
304
+ ]),
305
+ _: 1
306
+ }, 8, ["onRegister"]);
307
+ }
308
+ const we = /* @__PURE__ */ oe(ae, [["render", ne]]);
309
+ export {
310
+ we as default
311
+ };
@@ -9,7 +9,7 @@ var R = (e, t, o) => t in e ? X(e, t, { enumerable: !0, configurable: !0, writab
9
9
  Z.call(t, o) && R(e, o, t[o]);
10
10
  return e;
11
11
  };
12
- var d = (e, t, o) => new Promise((_, p) => {
12
+ var d = (e, t, o) => new Promise((g, p) => {
13
13
  var b = (i) => {
14
14
  try {
15
15
  c(o.next(i));
@@ -22,18 +22,18 @@ var d = (e, t, o) => new Promise((_, p) => {
22
22
  } catch (u) {
23
23
  p(u);
24
24
  }
25
- }, c = (i) => i.done ? _(i.value) : Promise.resolve(i.value).then(b, s);
25
+ }, c = (i) => i.done ? g(i.value) : Promise.resolve(i.value).then(b, s);
26
26
  c((o = o.apply(e, t)).next());
27
27
  });
28
- import { defineComponent as x, ref as y, reactive as ee, computed as oe, nextTick as ne, resolveComponent as r, openBlock as D, createBlock as q, withCtx as a, createVNode as l, createTextVNode as g, createElementBlock as te, createCommentVNode as L, normalizeProps as ae, guardReactiveProps as le } from "vue";
28
+ import { defineComponent as x, ref as y, reactive as ee, computed as oe, nextTick as ne, resolveComponent as r, openBlock as D, createBlock as q, withCtx as a, createVNode as l, createTextVNode as _, createElementBlock as te, createCommentVNode as L, normalizeProps as ae, guardReactiveProps as le } from "vue";
29
29
  import { BasicModal as ie, useModalInner as re, useModal as se } from "/@/components/Modal";
30
30
  import { BasicForm as ce, useForm as ue } from "/@/components/Form";
31
31
  import { BasicTable as me, TableAction as de } from "/@/components/Table";
32
32
  import { useListPage as pe } from "/@/hooks/system/useListPage";
33
- import { u as fe } from "./useOnlineTest-0df0ae86.mjs";
34
- import { b as ge, c as _e } from "./enhance.data-efc7e155.mjs";
33
+ import { u as fe } from "./useOnlineTest-e4bd8be3.mjs";
34
+ import { b as _e, c as ge } from "./enhance.data-efc7e155.mjs";
35
35
  import { c as be, e as he, f as P } from "./enhance.api-138e6826.mjs";
36
- import { _ as we } from "./index-6a09a912.mjs";
36
+ import { _ as Ce } from "./index-0e3ab3af.mjs";
37
37
  import "./cgform.data-cbdd88c3.mjs";
38
38
  import "/@/utils/dict";
39
39
  import "/@/utils/dict/JDictSelectUtil";
@@ -43,28 +43,28 @@ import "/@/utils/is";
43
43
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
44
44
  import "/@/hooks/web/useMessage";
45
45
  import "vue-router";
46
- const Ce = x({
46
+ const we = x({
47
47
  name: "EnhanceSqlModal",
48
48
  components: { BasicModal: ie, BasicTable: me, BasicForm: ce, TableAction: de },
49
49
  emits: ["register"],
50
50
  setup() {
51
- const e = y(""), t = y(""), o = y([]), { columns: _ } = _e(o), { doRequest: p, doDeleteRecord: b, tableContext: s } = pe({
51
+ const e = y(""), t = y(""), o = y([]), { columns: g } = ge(o), { doRequest: p, doDeleteRecord: b, tableContext: s } = pe({
52
52
  tableProps: {
53
53
  api: (n) => d(this, null, function* () {
54
- let { dataSource: C, btnList: W } = yield be(e.value, n);
55
- return o.value = W, C;
54
+ let { dataSource: w, btnList: J } = yield be(e.value, n);
55
+ return o.value = J, w;
56
56
  }),
57
- columns: _,
57
+ columns: g,
58
58
  canResize: !1,
59
59
  useSearchForm: !1,
60
60
  beforeFetch(n) {
61
61
  return Object.assign(n, { column: "orderNum", order: "asc" });
62
62
  }
63
63
  }
64
- }), [c, { reload: i }, { rowSelection: u, selectedRowKeys: h }] = s, [M, { closeModal: S }] = re((n) => d(this, null, function* () {
64
+ }), [c, { reload: i }, { rowSelection: u, selectedRowKeys: h }] = s, [v, { closeModal: M }] = re((n) => d(this, null, function* () {
65
65
  e.value = n.row.id, t.value = n.row.tableName, i();
66
- })), { aiTestMode: B, genEnhanceSqlData: v } = fe(), [w, m] = se(), f = y(!1), F = ee({
67
- onRegister: w,
66
+ })), { aiTestMode: S, genEnhanceSqlData: B } = fe(), [C, m] = se(), f = y(!1), F = ee({
67
+ onRegister: C,
68
68
  title: oe(() => f != null && f.value ? "修改" : "新增"),
69
69
  width: 800,
70
70
  confirmLoading: !1,
@@ -72,27 +72,32 @@ const Ce = x({
72
72
  onCancel: m.closeModal
73
73
  });
74
74
  let k = {};
75
- const { formSchemas: N } = ge(o), [$, { resetFields: O, setFieldsValue: V, validate: G }] = ue({
75
+ const { formSchemas: N } = _e(o), [$, { resetFields: O, setFieldsValue: V, validate: G }] = ue({
76
76
  schemas: N,
77
- showActionButtonGroup: !1
77
+ showActionButtonGroup: !1,
78
+ // update-begin--author:liaozhiyang---date:20231017---for:【issues/790】弹窗内文本框不居中问题
79
+ labelWidth: 80,
80
+ labelCol: null,
81
+ wrapperCol: null
82
+ // update-end--author:liaozhiyang---date:20231017---for:【issues/790】弹窗内文本框不居中问题
78
83
  });
79
- function j() {
80
- S();
84
+ function I() {
85
+ M();
81
86
  }
82
87
  function T(n) {
83
88
  return d(this, null, function* () {
84
- var C;
85
- f.value = n.isUpdate, k = A({}, (C = n.record) != null ? C : {}), m.openModal(), yield ne(), yield O(), V(k);
89
+ var w;
90
+ f.value = n.isUpdate, k = A({}, (w = n.record) != null ? w : {}), m.openModal(), yield ne(), yield O(), V(k);
86
91
  });
87
92
  }
88
- function z() {
93
+ function j() {
89
94
  T({ isUpdate: !1 });
90
95
  }
91
- function I(n) {
96
+ function z(n) {
92
97
  T({ isUpdate: !0, record: n });
93
98
  }
94
99
  function K() {
95
- v(e.value, t.value);
100
+ B(e.value, t.value);
96
101
  }
97
102
  function U() {
98
103
  return d(this, null, function* () {
@@ -114,11 +119,11 @@ const Ce = x({
114
119
  return [
115
120
  {
116
121
  label: "编辑",
117
- onClick: () => I(n)
122
+ onClick: () => z(n)
118
123
  }
119
124
  ];
120
125
  }
121
- function J(n) {
126
+ function W(n) {
122
127
  return [
123
128
  {
124
129
  label: "删除",
@@ -133,15 +138,15 @@ const Ce = x({
133
138
  return {
134
139
  rowSelection: u,
135
140
  selectedRowKeys: h,
136
- aiTestMode: B,
137
- onCancel: j,
138
- onAdd: z,
141
+ aiTestMode: S,
142
+ onCancel: I,
143
+ onAdd: j,
139
144
  onGenEnhanceSqlData: K,
140
145
  onBatchDelete: U,
141
146
  getTableAction: Q,
142
- getDropDownAction: J,
147
+ getDropDownAction: W,
143
148
  formModalProps: F,
144
- registerModal: M,
149
+ registerModal: v,
145
150
  registerTable: c,
146
151
  registerForm: $
147
152
  };
@@ -153,13 +158,14 @@ const Ce = x({
153
158
  };
154
159
  }
155
160
  }
156
- }), ye = {
161
+ });
162
+ const ye = {
157
163
  key: 0,
158
164
  style: { float: "left" }
159
165
  };
160
- function Me(e, t, o, _, p, b) {
161
- const s = r("a-button"), c = r("a-icon"), i = r("a-menu-item"), u = r("a-menu"), h = r("a-dropdown"), M = r("TableAction"), S = r("BasicTable"), B = r("BasicForm"), v = r("a-spin"), w = r("BasicModal");
162
- return D(), q(w, {
166
+ function ve(e, t, o, g, p, b) {
167
+ const s = r("a-button"), c = r("a-icon"), i = r("a-menu-item"), u = r("a-menu"), h = r("a-dropdown"), v = r("TableAction"), M = r("BasicTable"), S = r("BasicForm"), B = r("a-spin"), C = r("BasicModal");
168
+ return D(), q(C, {
163
169
  onRegister: e.registerModal,
164
170
  title: "SQL增强",
165
171
  width: 1200,
@@ -169,21 +175,21 @@ function Me(e, t, o, _, p, b) {
169
175
  footer: a(() => [
170
176
  l(s, { onClick: e.onCancel }, {
171
177
  default: a(() => [
172
- g("关闭")
178
+ _("关闭")
173
179
  ]),
174
180
  _: 1
175
181
  }, 8, ["onClick"]),
176
182
  e.aiTestMode ? (D(), te("div", ye, [
177
183
  l(s, { onClick: e.onGenEnhanceSqlData }, {
178
184
  default: a(() => [
179
- g("生成测试数据")
185
+ _("生成测试数据")
180
186
  ]),
181
187
  _: 1
182
188
  }, 8, ["onClick"])
183
189
  ])) : L("", !0)
184
190
  ]),
185
191
  default: a(() => [
186
- l(S, {
192
+ l(M, {
187
193
  onRegister: e.registerTable,
188
194
  rowSelection: e.rowSelection
189
195
  }, {
@@ -194,7 +200,7 @@ function Me(e, t, o, _, p, b) {
194
200
  preIcon: "ant-design:plus"
195
201
  }, {
196
202
  default: a(() => [
197
- g("新增")
203
+ _("新增")
198
204
  ]),
199
205
  _: 1
200
206
  }, 8, ["onClick"]),
@@ -208,7 +214,7 @@ function Me(e, t, o, _, p, b) {
208
214
  }, {
209
215
  default: a(() => [
210
216
  l(c, { type: "delete" }),
211
- g(" 删除 ")
217
+ _(" 删除 ")
212
218
  ]),
213
219
  _: 1
214
220
  }, 8, ["onClick"])
@@ -219,7 +225,7 @@ function Me(e, t, o, _, p, b) {
219
225
  default: a(() => [
220
226
  l(s, { style: { "margin-left": "8px" } }, {
221
227
  default: a(() => [
222
- g(" 批量操作 "),
228
+ _(" 批量操作 "),
223
229
  l(c, { type: "down" })
224
230
  ]),
225
231
  _: 1
@@ -229,20 +235,23 @@ function Me(e, t, o, _, p, b) {
229
235
  })) : L("", !0)
230
236
  ]),
231
237
  action: a(({ record: m }) => [
232
- l(M, {
238
+ l(v, {
233
239
  actions: e.getTableAction(m),
234
240
  dropDownActions: e.getDropDownAction(m)
235
241
  }, null, 8, ["actions", "dropDownActions"])
236
242
  ]),
237
243
  _: 1
238
244
  }, 8, ["onRegister", "rowSelection"]),
239
- l(w, ae(le(e.formModalProps)), {
245
+ l(C, ae(le(e.formModalProps)), {
240
246
  default: a(() => [
241
- l(v, {
247
+ l(B, {
242
248
  spinning: e.formModalProps.confirmLoading
243
249
  }, {
244
250
  default: a(() => [
245
- l(B, { onRegister: e.registerForm }, null, 8, ["onRegister"])
251
+ l(S, {
252
+ class: "popupForm",
253
+ onRegister: e.registerForm
254
+ }, null, 8, ["onRegister"])
246
255
  ]),
247
256
  _: 1
248
257
  }, 8, ["spinning"])
@@ -253,7 +262,7 @@ function Me(e, t, o, _, p, b) {
253
262
  _: 1
254
263
  }, 8, ["onRegister", "onCancel"]);
255
264
  }
256
- const ze = /* @__PURE__ */ we(Ce, [["render", Me]]);
265
+ const je = /* @__PURE__ */ Ce(we, [["render", ve], ["__scopeId", "data-v-0a46f791"]]);
257
266
  export {
258
- ze as default
267
+ je as default
259
268
  };