@jeecg/online 1.0.1 → 3.4.3

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 (95) hide show
  1. package/AuthButtonConfig.js +15 -9
  2. package/AuthButtonTree.js +4 -7
  3. package/AuthDataConfig.js +10 -8
  4. package/AuthDataTree.js +4 -7
  5. package/AuthFieldConfig.js +16 -14
  6. package/AuthFieldTree.js +25 -20
  7. package/AuthManagerDrawer.js +2 -3
  8. package/AuthSetterModal.js +2 -2
  9. package/CgformCopyList.js +34 -24
  10. package/CgformModal.js +57 -50
  11. package/CgreportModal.js +32 -39
  12. package/CheckDictTable.js +146 -26
  13. package/CodeFileListModal.js +174 -0
  14. package/CodeFileViewModal.js +324 -0
  15. package/CodeGeneratorModal.js +42 -40
  16. package/CustomButtonList.js +19 -23
  17. package/DBAttributeTable.js +250 -14
  18. package/DbToOnlineModal.js +28 -27
  19. package/DetailForm.js +607 -0
  20. package/EnhanceJavaModal.js +12 -19
  21. package/EnhanceJsHistory.js +6 -8
  22. package/EnhanceJsModal.js +17 -18
  23. package/EnhanceSqlModal.js +12 -19
  24. package/ExtendConfigModal.js +26 -17
  25. package/FileSelectModal.js +1 -2
  26. package/ForeignKeyTable.js +6 -5
  27. package/FormSchemaFactory.js +163 -30
  28. package/IndexTable.js +8 -7
  29. package/JModalTip.js +54 -0
  30. package/LeftDepart.js +3 -3
  31. package/LeftRole.js +8 -6
  32. package/LeftUser.js +8 -6
  33. package/LinkTableConfigModal.js +288 -0
  34. package/LinkTableFieldConfigModal.js +217 -0
  35. package/LinkTableListPiece.js +36 -0
  36. package/ModalFormDemo.js +4 -4
  37. package/OnlCgReportList.js +34 -0
  38. package/OnlineAutoList.js +155 -58
  39. package/OnlineAutoModal.js +91 -132
  40. package/OnlineAutoTreeList.js +92 -54
  41. package/OnlineCustomModal.js +31 -17
  42. package/OnlineDetailModal.js +182 -0
  43. package/OnlineForm.js +272 -141
  44. package/OnlineFormDetail.js +324 -0
  45. package/OnlineQueryForm.js +72 -42
  46. package/OnlineSearchFormItem.js +28 -23
  47. package/OnlineSubFormDetail.js +165 -0
  48. package/OnlineSuperQuery.js +72 -76
  49. package/OnlineSuperQueryValComponent.js +1 -0
  50. package/OnlineSuperQueryValComponent.vue_vue_type_script_lang.js +1 -17
  51. package/PageAttributeTable.js +233 -31
  52. package/ProcessOnlineForm.js +41 -18
  53. package/QueryTable.js +6 -5
  54. package/README.md +3 -8
  55. package/_arrayPush.js +5 -3
  56. package/{cloneDeep.js → _baseClone.js} +5 -9
  57. package/_baseSlice.js +18 -0
  58. package/_commonjsHelpers.js +5 -0
  59. package/_flatRest.js +174 -0
  60. package/auth.data.js +1 -3
  61. package/cgform.data.js +18 -9
  62. package/enhance.api.js +27 -18
  63. package/index.js +358 -34
  64. package/index2.js +49 -48
  65. package/index3.js +29 -26
  66. package/isArray.js +1 -1
  67. package/main.index.js +3 -3
  68. package/omit.js +60 -0
  69. package/package.json +1 -1
  70. package/pick.js +3 -173
  71. package/style.css +1 -1
  72. package/toString.js +2 -2
  73. package/useAutoForm.js +3457 -3792
  74. package/useCgformList.js +44 -31
  75. package/{useTableColumns.js → useListButton.js} +218 -409
  76. package/useOnlineTest.js +5 -26827
  77. package/useSchemas.js +382 -234
  78. package/useTableSync.js +19 -7
  79. package/ChartAutoRender.js +0 -69
  80. package/ChartDoubleRender.js +0 -154
  81. package/ChartSingleRender.js +0 -132
  82. package/ChartTabsRender.js +0 -218
  83. package/ErrorTip.js +0 -21
  84. package/FieldTable.js +0 -185
  85. package/GraphreportAutoChart.js +0 -352
  86. package/GraphreportList.js +0 -239
  87. package/GraphreportModal.js +0 -559
  88. package/JOnlineSearchSelect.js +0 -107
  89. package/LICENSE +0 -7
  90. package/OnlineSelectCascade.js +0 -217
  91. package/OnlineSubForm.js +0 -200
  92. package/ParamsTable.js +0 -71
  93. package/graphreport.api.js +0 -23
  94. package/useChartRender.js +0 -405
  95. package/useMessageOnline.js +0 -71
@@ -34,7 +34,7 @@ var __async = (__this, __arguments, generator) => {
34
34
  step((generator = generator.apply(__this, __arguments)).next());
35
35
  });
36
36
  };
37
- import { defineComponent, ref, reactive, computed, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementBlock, createCommentVNode, normalizeProps, guardReactiveProps, createTextVNode, nextTick } from "vue";
37
+ import { defineComponent, ref, reactive, computed, resolveComponent, openBlock, createBlock, withCtx, createVNode, createTextVNode, createElementBlock, createCommentVNode, normalizeProps, guardReactiveProps, nextTick } from "vue";
38
38
  import { BasicModal, useModalInner, useModal } from "/@/components/Modal";
39
39
  import { BasicForm, useForm } from "/@/components/Form";
40
40
  import { BasicTable, TableAction } from "/@/components/Table";
@@ -43,16 +43,14 @@ import { u as useOnlineTest } from "./useOnlineTest.js";
43
43
  import { u as useJavaFormSchemas, a as useJavaColumns } from "./enhance.data.js";
44
44
  import { a as getEnhanceJavaByCode, b as saveEnhanceJava, d as doEnhanceJavaBatchDelete } from "./enhance.api.js";
45
45
  import { _ as _export_sfc } from "./index.js";
46
- import "/@/utils/http/axios";
47
- import "/@/hooks/web/useMessage";
48
- import "/@/utils/cache";
49
46
  import "./cgform.data.js";
50
47
  import "/@/utils/dict";
51
48
  import "/@/utils/dict/JDictSelectUtil";
52
49
  import "/@/utils/uuid";
50
+ import "/@/utils/http/axios";
53
51
  import "/@/utils/is";
54
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
55
- import "vue-router";
52
+ import "/@/hooks/web/useMessage";
53
+ import "@vueuse/core";
56
54
  const _sfc_main = defineComponent({
57
55
  name: "EnhanceJavaModal",
58
56
  components: { BasicModal, BasicTable, BasicForm, TableAction },
@@ -81,7 +79,7 @@ const _sfc_main = defineComponent({
81
79
  code.value = data.row.id;
82
80
  reload();
83
81
  }));
84
- const { aiTestMode, genEnhanceJavaData } = useOnlineTest({}, { reload }, null);
82
+ const { aiTestMode, genEnhanceJavaData } = useOnlineTest();
85
83
  const [registerFormModal, formModal] = useModal();
86
84
  const isUpdate = ref(false);
87
85
  const formModalProps = reactive({
@@ -186,15 +184,10 @@ const _sfc_main = defineComponent({
186
184
  }
187
185
  }
188
186
  });
189
- const _hoisted_1 = /* @__PURE__ */ createTextVNode("\u65B0\u589E");
190
- const _hoisted_2 = /* @__PURE__ */ createTextVNode(" \u5220\u9664 ");
191
- const _hoisted_3 = /* @__PURE__ */ createTextVNode(" \u6279\u91CF\u64CD\u4F5C ");
192
- const _hoisted_4 = /* @__PURE__ */ createTextVNode("\u5173\u95ED");
193
- const _hoisted_5 = {
187
+ const _hoisted_1 = {
194
188
  key: 0,
195
189
  style: { "float": "left" }
196
190
  };
197
- const _hoisted_6 = /* @__PURE__ */ createTextVNode("\u751F\u6210\u6D4B\u8BD5\u6570\u636E");
198
191
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
199
192
  const _component_a_button = resolveComponent("a-button");
200
193
  const _component_a_icon = resolveComponent("a-icon");
@@ -216,14 +209,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
216
209
  footer: withCtx(() => [
217
210
  createVNode(_component_a_button, { onClick: _ctx.onCancel }, {
218
211
  default: withCtx(() => [
219
- _hoisted_4
212
+ createTextVNode("\u5173\u95ED")
220
213
  ]),
221
214
  _: 1
222
215
  }, 8, ["onClick"]),
223
- _ctx.aiTestMode ? (openBlock(), createElementBlock("div", _hoisted_5, [
216
+ _ctx.aiTestMode ? (openBlock(), createElementBlock("div", _hoisted_1, [
224
217
  createVNode(_component_a_button, { onClick: _ctx.onGenEnhanceJavaData }, {
225
218
  default: withCtx(() => [
226
- _hoisted_6
219
+ createTextVNode("\u751F\u6210\u6D4B\u8BD5\u6570\u636E")
227
220
  ]),
228
221
  _: 1
229
222
  }, 8, ["onClick"])
@@ -241,7 +234,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
241
234
  preIcon: "ant-design:plus"
242
235
  }, {
243
236
  default: withCtx(() => [
244
- _hoisted_1
237
+ createTextVNode("\u65B0\u589E")
245
238
  ]),
246
239
  _: 1
247
240
  }, 8, ["onClick"]),
@@ -255,7 +248,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
255
248
  }, {
256
249
  default: withCtx(() => [
257
250
  createVNode(_component_a_icon, { type: "delete" }),
258
- _hoisted_2
251
+ createTextVNode(" \u5220\u9664 ")
259
252
  ]),
260
253
  _: 1
261
254
  }, 8, ["onClick"])
@@ -266,7 +259,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
266
259
  default: withCtx(() => [
267
260
  createVNode(_component_a_button, { style: { "margin-left": "8px" } }, {
268
261
  default: withCtx(() => [
269
- _hoisted_3,
262
+ createTextVNode(" \u6279\u91CF\u64CD\u4F5C "),
270
263
  createVNode(_component_a_icon, { type: "down" })
271
264
  ]),
272
265
  _: 1
@@ -35,7 +35,7 @@ var __async = (__this, __arguments, generator) => {
35
35
  });
36
36
  };
37
37
  import { formatToDate } from "/@/utils/dateUtil";
38
- import { defineComponent, ref, nextTick, resolveComponent, openBlock, createBlock, withCtx, createVNode, normalizeClass, createElementVNode, toDisplayString, createTextVNode } from "vue";
38
+ import { defineComponent, ref, nextTick, resolveComponent, openBlock, createBlock, withCtx, createVNode, createTextVNode, normalizeClass, createElementVNode, toDisplayString } from "vue";
39
39
  import { BasicModal, useModalInner } from "/@/components/Modal";
40
40
  import { JCodeEditor } from "/@/components/Form";
41
41
  import "/@/store";
@@ -126,9 +126,7 @@ const _sfc_main = defineComponent({
126
126
  };
127
127
  }
128
128
  });
129
- const _hoisted_1 = /* @__PURE__ */ createTextVNode("\u4FDD\u5B58\u65F6\u95F4");
130
- const _hoisted_2 = ["onClick"];
131
- const _hoisted_3 = /* @__PURE__ */ createTextVNode("\u5173\u95ED");
129
+ const _hoisted_1 = ["onClick"];
132
130
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
133
131
  const _component_a_divider = resolveComponent("a-divider");
134
132
  const _component_a_list_item = resolveComponent("a-list-item");
@@ -152,7 +150,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
152
150
  footer: withCtx(() => [
153
151
  createVNode(_component_a_button, { onClick: _ctx.onCancel }, {
154
152
  default: withCtx(() => [
155
- _hoisted_3
153
+ createTextVNode("\u5173\u95ED")
156
154
  ]),
157
155
  _: 1
158
156
  }, 8, ["onClick"])
@@ -173,7 +171,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
173
171
  createElementVNode("div", null, [
174
172
  createVNode(_component_a_divider, { style: { "margin": "0" } }, {
175
173
  default: withCtx(() => [
176
- _hoisted_1
174
+ createTextVNode("\u4FDD\u5B58\u65F6\u95F4")
177
175
  ]),
178
176
  _: 1
179
177
  })
@@ -186,7 +184,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
186
184
  default: withCtx(() => [
187
185
  createElementVNode("a", {
188
186
  onClick: ($event) => _ctx.fullCode(item)
189
- }, toDisplayString(_ctx.getFormatDate(item.date)), 9, _hoisted_2)
187
+ }, toDisplayString(_ctx.getFormatDate(item.date)), 9, _hoisted_1)
190
188
  ]),
191
189
  _: 2
192
190
  }, 1032, ["class"])
@@ -223,7 +221,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
223
221
  _: 1
224
222
  }, 8, ["onRegister", "confirmLoading", "onCancel"]);
225
223
  }
226
- var EnhanceJsHistory = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-3b0bad10"]]);
224
+ var EnhanceJsHistory = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-3e3ee46a"]]);
227
225
  var EnhanceJsHistory$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
228
226
  __proto__: null,
229
227
  "default": EnhanceJsHistory
package/EnhanceJsModal.js CHANGED
@@ -18,7 +18,7 @@ var __async = (__this, __arguments, generator) => {
18
18
  step((generator = generator.apply(__this, __arguments)).next());
19
19
  });
20
20
  };
21
- import { defineComponent, ref, reactive, resolveComponent, openBlock, createBlock, withCtx, createVNode, createCommentVNode, createTextVNode } from "vue";
21
+ import { defineComponent, ref, reactive, resolveComponent, openBlock, createBlock, withCtx, createVNode, createTextVNode, createCommentVNode } from "vue";
22
22
  import { BasicModal, useModalInner, useModal } from "/@/components/Modal";
23
23
  import { JCodeEditor } from "/@/components/Form";
24
24
  import { u as useOnlineTest } from "./useOnlineTest.js";
@@ -26,14 +26,13 @@ import { E as EnhanceJsHistory, u as useEnhanceStore } from "./EnhanceJsHistory.
26
26
  import { g as getEnhanceJsByCode, s as saveEnhanceJs } from "./enhance.api.js";
27
27
  import { useMessage } from "/@/hooks/web/useMessage";
28
28
  import { _ as _export_sfc } from "./index.js";
29
- import "/@/utils/http/axios";
30
- import "/@/utils/cache";
31
29
  import "/@/utils/dateUtil";
32
30
  import "/@/store";
33
31
  import "pinia";
32
+ import "/@/utils/cache";
33
+ import "/@/utils/http/axios";
34
34
  import "/@/utils/is";
35
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
36
- import "vue-router";
35
+ import "@vueuse/core";
37
36
  const _sfc_main = defineComponent({
38
37
  name: "EnhanceJs",
39
38
  components: { BasicModal, JCodeEditor, EnhanceJsHistory },
@@ -56,7 +55,7 @@ const _sfc_main = defineComponent({
56
55
  show(data.row);
57
56
  }));
58
57
  const [registerEnhanceJsHistory, enhanceJsHistory] = useModal();
59
- const { aiTestMode, genEnhanceJsData } = useOnlineTest({}, {}, null);
58
+ const { aiTestMode, genEnhanceJsData } = useOnlineTest();
60
59
  function show(row) {
61
60
  code.value = row.id;
62
61
  codeChange.value = false;
@@ -80,10 +79,7 @@ const _sfc_main = defineComponent({
80
79
  }
81
80
  function onSubmit() {
82
81
  return __async(this, null, function* () {
83
- yield Promise.all([
84
- saveEnhanceJsByType("form"),
85
- saveEnhanceJsByType("list")
86
- ]);
82
+ yield Promise.all([saveEnhanceJsByType("form"), saveEnhanceJsByType("list")]);
87
83
  closeModal();
88
84
  $message.success("\u4FDD\u5B58\u6210\u529F");
89
85
  });
@@ -127,6 +123,13 @@ const _sfc_main = defineComponent({
127
123
  } catch (e) {
128
124
  console.error(e);
129
125
  }
126
+ setTimeout(() => {
127
+ if (type == "list") {
128
+ listEditorRef.value.refresh();
129
+ } else {
130
+ formEditorRef.value.refresh();
131
+ }
132
+ }, 150);
130
133
  });
131
134
  }
132
135
  function onShowHistory() {
@@ -169,10 +172,6 @@ const _sfc_main = defineComponent({
169
172
  };
170
173
  }
171
174
  });
172
- const _hoisted_1 = /* @__PURE__ */ createTextVNode("\u5173\u95ED");
173
- const _hoisted_2 = /* @__PURE__ */ createTextVNode("\u786E\u5B9A");
174
- const _hoisted_3 = /* @__PURE__ */ createTextVNode("\u67E5\u770B\u5386\u53F2\u7248\u672C");
175
- const _hoisted_4 = /* @__PURE__ */ createTextVNode("\u751F\u6210\u6D4B\u8BD5\u6570\u636E");
176
175
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
177
176
  const _component_JCodeEditor = resolveComponent("JCodeEditor");
178
177
  const _component_a_tab_pane = resolveComponent("a-tab-pane");
@@ -192,7 +191,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
192
191
  default: withCtx(() => [
193
192
  createVNode(_component_a_button, { onClick: _ctx.onCancel }, {
194
193
  default: withCtx(() => [
195
- _hoisted_1
194
+ createTextVNode("\u5173\u95ED")
196
195
  ]),
197
196
  _: 1
198
197
  }, 8, ["onClick"]),
@@ -201,7 +200,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
201
200
  onClick: _ctx.onSubmit
202
201
  }, {
203
202
  default: withCtx(() => [
204
- _hoisted_2
203
+ createTextVNode("\u786E\u5B9A")
205
204
  ]),
206
205
  _: 1
207
206
  }, 8, ["onClick"])
@@ -215,7 +214,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
215
214
  onClick: _ctx.onShowHistory
216
215
  }, {
217
216
  default: withCtx(() => [
218
- _hoisted_3
217
+ createTextVNode("\u67E5\u770B\u5386\u53F2\u7248\u672C")
219
218
  ]),
220
219
  _: 1
221
220
  }, 8, ["onClick"])) : createCommentVNode("", true),
@@ -224,7 +223,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
224
223
  onClick: _ctx.onGenTestData
225
224
  }, {
226
225
  default: withCtx(() => [
227
- _hoisted_4
226
+ createTextVNode("\u751F\u6210\u6D4B\u8BD5\u6570\u636E")
228
227
  ]),
229
228
  _: 1
230
229
  }, 8, ["onClick"])) : createCommentVNode("", true)
@@ -34,7 +34,7 @@ var __async = (__this, __arguments, generator) => {
34
34
  step((generator = generator.apply(__this, __arguments)).next());
35
35
  });
36
36
  };
37
- import { defineComponent, ref, reactive, computed, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementBlock, createCommentVNode, normalizeProps, guardReactiveProps, createTextVNode, nextTick } from "vue";
37
+ import { defineComponent, ref, reactive, computed, resolveComponent, openBlock, createBlock, withCtx, createVNode, createTextVNode, createElementBlock, createCommentVNode, normalizeProps, guardReactiveProps, nextTick } from "vue";
38
38
  import { BasicModal, useModalInner, useModal } from "/@/components/Modal";
39
39
  import { BasicForm, useForm } from "/@/components/Form";
40
40
  import { BasicTable, TableAction } from "/@/components/Table";
@@ -43,16 +43,14 @@ import { u as useOnlineTest } from "./useOnlineTest.js";
43
43
  import { b as useSqlFormSchemas, c as useSqlColumns } from "./enhance.data.js";
44
44
  import { c as getEnhanceSqlByCode, e as saveEnhanceSql, f as doEnhanceSqlBatchDelete } from "./enhance.api.js";
45
45
  import { _ as _export_sfc } from "./index.js";
46
- import "/@/utils/http/axios";
47
- import "/@/hooks/web/useMessage";
48
- import "/@/utils/cache";
49
46
  import "./cgform.data.js";
50
47
  import "/@/utils/dict";
51
48
  import "/@/utils/dict/JDictSelectUtil";
52
49
  import "/@/utils/uuid";
50
+ import "/@/utils/http/axios";
53
51
  import "/@/utils/is";
54
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
55
- import "vue-router";
52
+ import "/@/hooks/web/useMessage";
53
+ import "@vueuse/core";
56
54
  const _sfc_main = defineComponent({
57
55
  name: "EnhanceSqlModal",
58
56
  components: { BasicModal, BasicTable, BasicForm, TableAction },
@@ -83,7 +81,7 @@ const _sfc_main = defineComponent({
83
81
  tableName.value = data.row.tableName;
84
82
  reload();
85
83
  }));
86
- const { aiTestMode, genEnhanceSqlData } = useOnlineTest({}, { reload }, null);
84
+ const { aiTestMode, genEnhanceSqlData } = useOnlineTest();
87
85
  const [registerFormModal, formModal] = useModal();
88
86
  const isUpdate = ref(false);
89
87
  const formModalProps = reactive({
@@ -187,15 +185,10 @@ const _sfc_main = defineComponent({
187
185
  }
188
186
  }
189
187
  });
190
- const _hoisted_1 = /* @__PURE__ */ createTextVNode("\u65B0\u589E");
191
- const _hoisted_2 = /* @__PURE__ */ createTextVNode(" \u5220\u9664 ");
192
- const _hoisted_3 = /* @__PURE__ */ createTextVNode(" \u6279\u91CF\u64CD\u4F5C ");
193
- const _hoisted_4 = /* @__PURE__ */ createTextVNode("\u5173\u95ED");
194
- const _hoisted_5 = {
188
+ const _hoisted_1 = {
195
189
  key: 0,
196
190
  style: { "float": "left" }
197
191
  };
198
- const _hoisted_6 = /* @__PURE__ */ createTextVNode("\u751F\u6210\u6D4B\u8BD5\u6570\u636E");
199
192
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
200
193
  const _component_a_button = resolveComponent("a-button");
201
194
  const _component_a_icon = resolveComponent("a-icon");
@@ -217,14 +210,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
217
210
  footer: withCtx(() => [
218
211
  createVNode(_component_a_button, { onClick: _ctx.onCancel }, {
219
212
  default: withCtx(() => [
220
- _hoisted_4
213
+ createTextVNode("\u5173\u95ED")
221
214
  ]),
222
215
  _: 1
223
216
  }, 8, ["onClick"]),
224
- _ctx.aiTestMode ? (openBlock(), createElementBlock("div", _hoisted_5, [
217
+ _ctx.aiTestMode ? (openBlock(), createElementBlock("div", _hoisted_1, [
225
218
  createVNode(_component_a_button, { onClick: _ctx.onGenEnhanceSqlData }, {
226
219
  default: withCtx(() => [
227
- _hoisted_6
220
+ createTextVNode("\u751F\u6210\u6D4B\u8BD5\u6570\u636E")
228
221
  ]),
229
222
  _: 1
230
223
  }, 8, ["onClick"])
@@ -242,7 +235,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
242
235
  preIcon: "ant-design:plus"
243
236
  }, {
244
237
  default: withCtx(() => [
245
- _hoisted_1
238
+ createTextVNode("\u65B0\u589E")
246
239
  ]),
247
240
  _: 1
248
241
  }, 8, ["onClick"]),
@@ -256,7 +249,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
256
249
  }, {
257
250
  default: withCtx(() => [
258
251
  createVNode(_component_a_icon, { type: "delete" }),
259
- _hoisted_2
252
+ createTextVNode(" \u5220\u9664 ")
260
253
  ]),
261
254
  _: 1
262
255
  }, 8, ["onClick"])
@@ -267,7 +260,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
267
260
  default: withCtx(() => [
268
261
  createVNode(_component_a_button, { style: { "margin-left": "8px" } }, {
269
262
  default: withCtx(() => [
270
- _hoisted_3,
263
+ createTextVNode(" \u6279\u91CF\u64CD\u4F5C "),
271
264
  createVNode(_component_a_icon, { type: "down" })
272
265
  ]),
273
266
  _: 1
@@ -27,8 +27,10 @@ import { _ as _export_sfc } from "./index.js";
27
27
  import "ant-design-vue";
28
28
  import "@ant-design/icons-vue";
29
29
  import "/@/utils/common/compUtils";
30
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
31
- import "vue-router";
30
+ import "/@/hooks/web/usePermission";
31
+ import "/@/utils/helper/validator";
32
+ import "/@/utils/http/axios";
33
+ import "@vueuse/core";
32
34
  var ExtendConfigModal_vue_vue_type_style_index_0_scoped_true_lang = "";
33
35
  const _sfc_main = defineComponent({
34
36
  name: "CgformExtConfigModel",
@@ -47,7 +49,7 @@ const _sfc_main = defineComponent({
47
49
  onJoinQueryChange,
48
50
  onReportPrintShowChange
49
51
  });
50
- const [registerForm, { resetFields, setFieldsValue, clearValidate, validate }] = useForm({
52
+ const [registerForm, { resetFields, setFieldsValue, getFieldsValue, clearValidate, validate }] = useForm({
51
53
  schemas: formSchemas,
52
54
  showActionButtonGroup: false,
53
55
  labelAlign: "right"
@@ -74,7 +76,7 @@ const _sfc_main = defineComponent({
74
76
  function onIsDesformChange(value) {
75
77
  if (value === "Y") {
76
78
  let { themeTemplate } = props.parentForm.getFieldsValue(["themeTemplate"]);
77
- if (themeTemplate === "erp") {
79
+ if ("erp" === themeTemplate) {
78
80
  props.parentForm.setFieldsValue({ themeTemplate: "normal" });
79
81
  $message.warning("\u8BF7\u6CE8\u610F\uFF1Aerp\u98CE\u683C\u4E0D\u652F\u6301\u5BF9\u63A5\u8868\u5355\u8BBE\u8BA1\uFF0C\u5DF2\u81EA\u52A8\u6539\u4E3A\u9ED8\u8BA4\u98CE\u683C\uFF01");
80
82
  }
@@ -82,33 +84,40 @@ const _sfc_main = defineComponent({
82
84
  clearValidate("desFormCode");
83
85
  }
84
86
  }
87
+ const defaultReportPrintUrl = `{{ window._CONFIG['domianURL'] }}/jmreport/view/{\u79EF\u6728\u62A5\u8868ID}`;
85
88
  function onReportPrintShowChange(value) {
86
- if (value === 0) {
89
+ return __async(this, null, function* () {
90
+ let reportPrintUrl = getFieldsValue()["reportPrintUrl"];
91
+ if (value === 0) {
92
+ if (reportPrintUrl === defaultReportPrintUrl) {
93
+ yield setFieldsValue({ reportPrintUrl: "" });
94
+ }
95
+ } else if (value === 1) {
96
+ if (reportPrintUrl === "") {
97
+ yield setFieldsValue({ reportPrintUrl: defaultReportPrintUrl });
98
+ }
99
+ }
87
100
  clearValidate("reportPrintUrl");
88
- }
101
+ });
89
102
  }
90
103
  function onJoinQueryChange(value) {
91
104
  if (value === 1) {
92
- let {
93
- themeTemplate,
94
- isTree,
95
- tableType
96
- } = props.parentForm.getFieldsValue(["themeTemplate", "isTree", "tableType"]);
97
- if (themeTemplate === "erp") {
105
+ let { themeTemplate, isTree, tableType } = props.parentForm.getFieldsValue(["themeTemplate", "isTree", "tableType"]);
106
+ if ("erp" === themeTemplate) {
98
107
  $message.warning("\u8BF7\u6CE8\u610F\uFF1Aerp\u98CE\u683C\u4E0D\u652F\u6301\u8054\u5408\u67E5\u8BE2\uFF0C\u914D\u7F6E\u65E0\u6548!");
99
108
  setFieldsValue({ joinQuery: 0 });
100
109
  }
101
- if (themeTemplate === "innerTable") {
110
+ if ("innerTable" === themeTemplate) {
102
111
  $message.warning("\u8BF7\u6CE8\u610F\uFF1A\u5185\u5D4C\u98CE\u683C\u4E0D\u652F\u6301\u8054\u5408\u67E5\u8BE2\uFF0C\u914D\u7F6E\u65E0\u6548!");
103
112
  setFieldsValue({ joinQuery: 0 });
104
113
  }
105
- if (tableType === 1) {
114
+ if (1 === tableType) {
106
115
  $message.warning("\u8BF7\u6CE8\u610F\uFF1A\u5355\u8868\u4E0D\u652F\u6301\u8054\u5408\u67E5\u8BE2\uFF0C\u914D\u7F6E\u65E0\u6548!");
107
116
  setFieldsValue({ joinQuery: 0 });
108
- } else if (tableType === 3) {
117
+ } else if (3 === tableType) {
109
118
  $message.warning("\u8BF7\u6CE8\u610F\uFF1A\u5F53\u524D\u8868\u4E3A\u9644\u8868\uFF0C\u8BF7\u5728\u5BF9\u5E94\u4E3B\u8868\u914D\u7F6E!");
110
119
  setFieldsValue({ joinQuery: 0 });
111
- } else if (isTree === "Y") {
120
+ } else if ("Y" === isTree) {
112
121
  $message.warning("\u8BF7\u6CE8\u610F\uFF1A\u6811\u5F62\u5217\u8868\u4E0D\u652F\u6301\u8054\u5408\u67E5\u8BE2\uFF0C\u914D\u7F6E\u65E0\u6548!");
113
122
  setFieldsValue({ joinQuery: 0 });
114
123
  }
@@ -138,5 +147,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
138
147
  _: 1
139
148
  }, 8, ["onRegister", "onOk", "onCancel"]);
140
149
  }
141
- var ExtendConfigModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-5fbb254e"]]);
150
+ var ExtendConfigModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-63fff65e"]]);
142
151
  export { ExtendConfigModal as default };
@@ -22,9 +22,8 @@ import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx
22
22
  import { defHttp } from "/@/utils/http/axios";
23
23
  import { BasicModal, useModalInner } from "/@/components/Modal";
24
24
  import { _ as _export_sfc } from "./index.js";
25
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
26
25
  import "/@/hooks/web/useMessage";
27
- import "vue-router";
26
+ import "@vueuse/core";
28
27
  const _sfc_main = defineComponent({
29
28
  name: "FileSelectModal",
30
29
  components: { BasicModal },
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { defineComponent, ref, resolveComponent, openBlock, createBlock } from "vue";
20
+ import { defineComponent, ref, resolveComponent, openBlock, createBlock, mergeProps } from "vue";
21
21
  import { JVxeTypes } from "/@/components/jeecg/JVxeTable/types";
22
22
  import { u as useTableSync } from "./useTableSync.js";
23
23
  import { _ as _export_sfc } from "./index.js";
@@ -26,12 +26,13 @@ import "/@/utils/dict";
26
26
  import "/@/utils/dict/JDictSelectUtil";
27
27
  import "/@/utils/uuid";
28
28
  import "./pick.js";
29
+ import "./_flatRest.js";
29
30
  import "./isArray.js";
30
31
  import "./toString.js";
31
32
  import "./_arrayPush.js";
32
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
33
+ import "/@/utils/http/axios";
33
34
  import "/@/hooks/web/useMessage";
34
- import "vue-router";
35
+ import "@vueuse/core";
35
36
  const _sfc_main = defineComponent({
36
37
  name: "ForeignKeyTable",
37
38
  props: {
@@ -62,7 +63,7 @@ const _sfc_main = defineComponent({
62
63
  });
63
64
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
64
65
  const _component_JVxeTable = resolveComponent("JVxeTable");
65
- return openBlock(), createBlock(_component_JVxeTable, {
66
+ return openBlock(), createBlock(_component_JVxeTable, mergeProps({
66
67
  ref: "tableRef",
67
68
  rowNumber: "",
68
69
  keyboardEdit: "",
@@ -72,7 +73,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
72
73
  dataSource: _ctx.dataSource,
73
74
  disabled: !_ctx.actionButton,
74
75
  disabledRows: { dbFieldName: ["id", "has_child"] }
75
- }, null, 8, ["maxHeight", "loading", "columns", "dataSource", "disabled"]);
76
+ }, _ctx.tableProps), null, 16, ["maxHeight", "loading", "columns", "dataSource", "disabled"]);
76
77
  }
77
78
  var ForeignKeyTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
78
79
  export { ForeignKeyTable as default };