@jeecg/online 1.0.1 → 3.4.3-GA

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 (93) hide show
  1. package/AuthButtonConfig.js +14 -7
  2. package/AuthButtonTree.js +3 -5
  3. package/AuthDataConfig.js +9 -6
  4. package/AuthDataTree.js +3 -5
  5. package/AuthFieldConfig.js +15 -12
  6. package/AuthFieldTree.js +24 -18
  7. package/AuthManagerDrawer.js +1 -1
  8. package/AuthSetterModal.js +1 -0
  9. package/CgformCopyList.js +34 -22
  10. package/CgformModal.js +57 -50
  11. package/CgreportModal.js +32 -39
  12. package/CheckDictTable.js +144 -24
  13. package/CodeFileListModal.js +175 -0
  14. package/CodeFileViewModal.js +325 -0
  15. package/CodeGeneratorModal.js +41 -38
  16. package/CustomButtonList.js +19 -22
  17. package/DBAttributeTable.js +248 -12
  18. package/DbToOnlineModal.js +27 -25
  19. package/DetailForm.js +609 -0
  20. package/EnhanceJavaModal.js +11 -17
  21. package/EnhanceJsHistory.js +6 -8
  22. package/EnhanceJsModal.js +16 -16
  23. package/EnhanceSqlModal.js +11 -17
  24. package/ExtendConfigModal.js +24 -15
  25. package/ForeignKeyTable.js +4 -3
  26. package/FormSchemaFactory.js +163 -30
  27. package/IndexTable.js +6 -5
  28. package/JModalTip.js +54 -0
  29. package/JOnlineSearchSelect.js +18 -10
  30. package/LeftDepart.js +1 -1
  31. package/LeftRole.js +7 -4
  32. package/LeftUser.js +7 -4
  33. package/LinkTableConfigModal.js +289 -0
  34. package/LinkTableFieldConfigModal.js +218 -0
  35. package/LinkTableListPiece.js +36 -0
  36. package/ModalFormDemo.js +3 -2
  37. package/OnlineAutoList.js +154 -55
  38. package/OnlineAutoModal.js +92 -131
  39. package/OnlineAutoTreeList.js +93 -53
  40. package/OnlineCustomModal.js +30 -14
  41. package/OnlineDetailModal.js +184 -0
  42. package/OnlineForm.js +274 -141
  43. package/OnlineFormDetail.js +326 -0
  44. package/OnlineQueryForm.js +72 -40
  45. package/OnlineSearchFormItem.js +26 -18
  46. package/OnlineSelectCascade.js +37 -26
  47. package/OnlineSubFormDetail.js +167 -0
  48. package/OnlineSuperQuery.js +70 -75
  49. package/OnlineSuperQueryValComponent.js +1 -0
  50. package/OnlineSuperQueryValComponent.vue_vue_type_script_lang.js +1 -17
  51. package/PageAttributeTable.js +233 -30
  52. package/ProcessOnlineForm.js +41 -16
  53. package/QueryTable.js +4 -3
  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 +27 -8
  64. package/index2.js +48 -45
  65. package/index3.js +29 -26
  66. package/isArray.js +1 -1
  67. package/main.index.js +2 -2
  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 -3791
  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/LICENSE +0 -7
  89. package/OnlineSubForm.js +0 -200
  90. package/ParamsTable.js +0 -71
  91. package/graphreport.api.js +0 -23
  92. package/useChartRender.js +0 -405
  93. package/useMessageOnline.js +0 -71
@@ -18,32 +18,52 @@ var __async = (__this, __arguments, generator) => {
18
18
  step((generator = generator.apply(__this, __arguments)).next());
19
19
  });
20
20
  };
21
- import { defineComponent, ref, computed, unref, nextTick, watch, reactive, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, createCommentVNode, createVNode } from "vue";
22
- import { BasicModal, useModalInner } from "/@/components/Modal";
23
- import { defHttp } from "/@/utils/http/axios";
24
- import { g as getRefPromise } from "./useAutoForm.js";
25
- import { O as OnlineForm } from "./OnlineForm.js";
21
+ import { defineComponent, ref, watch, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, createCommentVNode, createVNode } from "vue";
22
+ import { BasicModal } from "/@/components/Modal";
23
+ import OnlineForm from "./OnlineForm.js";
24
+ import { k as useAutoModal } from "./useAutoForm.js";
25
+ import CommentPanel from "/@/components/jeecg/comment/CommentPanel.vue";
26
26
  import { _ as _export_sfc } from "./index.js";
27
+ import "/@/hooks/web/useMessage";
28
+ import "/@/components/Form/index";
27
29
  import "./FormSchemaFactory.js";
28
30
  import "/@/components/Form/src/jeecg/components/JUpload";
31
+ import "/@/utils/http/axios";
32
+ import "/@/utils";
33
+ import "/@/components/Loading";
34
+ import "/@/components/jeecg/JVxeTable/types";
35
+ import "/@/utils/auth";
36
+ import "@ant-design/icons-vue";
37
+ import "/@/hooks/core/useContext";
38
+ import "/@/utils/mitt";
39
+ import "./pick.js";
40
+ import "./_flatRest.js";
41
+ import "./isArray.js";
42
+ import "./toString.js";
43
+ import "./_arrayPush.js";
44
+ import "./omit.js";
45
+ import "./_baseClone.js";
46
+ import "./_baseSlice.js";
29
47
  import "/@/views/system/user/user.api";
48
+ import "./_commonjsHelpers.js";
30
49
  import "/@/store/modules/user";
31
- import "/@/utils";
32
50
  import "/@/utils/desform/customExpression";
33
51
  import "/@/components/Form/src/componentMap";
34
52
  import "./OnlineSelectCascade.js";
35
- import "/@/hooks/web/useMessage";
36
53
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
37
54
  import "vue-router";
38
- import "/@/components/Form/index";
39
- import "/@/components/Loading";
40
- import "./OnlineSubForm.js";
41
- import "./pick.js";
42
- import "./isArray.js";
43
- import "./toString.js";
44
- import "./_arrayPush.js";
45
- const singleWidth = 800;
46
- const one2ManyWidth = 1100;
55
+ import "/@/store/modules/permission";
56
+ import "/@/utils/propTypes";
57
+ import "/@/utils/dict/JDictSelectUtil";
58
+ import "/@/utils/common/compUtils";
59
+ import "/@/components/Table";
60
+ import "/@/hooks/system/useListPage";
61
+ import "/@/components/Form/src/utils/Area";
62
+ import "/@/components/Preview/index";
63
+ import "./LinkTableListPiece.js";
64
+ import "./JModalTip.js";
65
+ import "ant-design-vue";
66
+ import "@vueuse/core";
47
67
  const _sfc_main = defineComponent({
48
68
  name: "OnlineModal",
49
69
  props: {
@@ -54,46 +74,44 @@ const _sfc_main = defineComponent({
54
74
  },
55
75
  components: {
56
76
  BasicModal,
57
- OnlineForm
77
+ OnlineForm,
78
+ CommentPanel
58
79
  },
59
- emits: ["success", "register"],
80
+ emits: ["success", "register", "formConfig"],
60
81
  setup(props, { emit }) {
61
82
  console.log("\u8FDB\u5165\u8868\u5355\u5F39\u6846\u300B\u300B\u300B\u300Bmodal");
62
- const onlineFormCompRef = ref(null);
63
- const disableSubmit = ref(false);
64
- const formTemplate = ref(1);
65
- const cgButtonList = ref([]);
66
- const formRendered = ref(false);
67
- const modalMinWidth = ref(0);
68
- const isTreeForm = ref(false);
69
- const pidFieldName = ref("");
70
- const submitLoading = ref(false);
71
- const title = computed(() => {
72
- if (unref(disableSubmit) === true) {
73
- return "\u8BE6\u60C5";
74
- }
75
- if (unref(isUpdate) === true) {
76
- return "\u7F16\u8F91";
77
- }
78
- return "\u65B0\u589E";
79
- });
80
- const [registerModal, { setModalProps, closeModal }] = useModalInner((data) => __async(this, null, function* () {
81
- setModalProps({ confirmLoading: false });
82
- isUpdate.value = data.isUpdate;
83
- disableSubmit.value = data.disableSubmit || false;
84
- yield nextTick(() => __async(this, null, function* () {
85
- yield getRefPromise(formRendered);
86
- yield onlineFormCompRef.value.show(data == null ? void 0 : data.isUpdate, data == null ? void 0 : data.record, data == null ? void 0 : data.param);
87
- }));
88
- }));
89
- function renderSuccess(extConfig) {
90
- formRendered.value = true;
91
- modalMinWidth.value = extConfig.modalMinWidth;
92
- if (extConfig.modelFullscreen == 1) {
93
- setModalProps({ defaultFullscreen: true });
94
- } else {
95
- setModalProps({ defaultFullscreen: false });
96
- }
83
+ const commentPanelRef = ref();
84
+ function reloadComment() {
85
+ if (commentPanelRef.value)
86
+ commentPanelRef.value.reload();
87
+ }
88
+ const {
89
+ title,
90
+ modalWidth,
91
+ registerModal,
92
+ closeModal,
93
+ cgButtonList,
94
+ handleCgButtonClick,
95
+ disableSubmit,
96
+ handleSubmit,
97
+ submitLoading,
98
+ handleCancel,
99
+ handleFormConfig,
100
+ onlineFormCompRef,
101
+ formTemplate,
102
+ isTreeForm,
103
+ pidFieldName,
104
+ renderSuccess,
105
+ formRendered,
106
+ tableName,
107
+ formDataId,
108
+ enableComment,
109
+ onCloseEvent
110
+ } = useAutoModal(false, { emit }, reloadComment);
111
+ function handleSuccess(formData) {
112
+ emit("success", formData);
113
+ closeModal();
114
+ onCloseEvent();
97
115
  }
98
116
  watch(() => props.id, renderFormItems, { immediate: true });
99
117
  function renderFormItems() {
@@ -103,83 +121,12 @@ const _sfc_main = defineComponent({
103
121
  return;
104
122
  }
105
123
  console.log("\u91CD\u65B0\u6E32\u67D3\u8868\u5355\u300B\u300B\u300B\u300Bmodal");
106
- let result = yield loadFormItems();
107
- let dataFormTemplate = result.head.formTemplate;
108
- formTemplate.value = dataFormTemplate ? Number(dataFormTemplate) : 1;
109
- cgButtonList.value = result.cgButtonList;
110
- isTreeForm.value = result.head.isTree === "Y";
111
- pidFieldName.value = result.head.treeParentIdField || "";
112
- nextTick(() => __async(this, null, function* () {
113
- let myForm = yield getRefPromise(onlineFormCompRef);
114
- myForm.createRootProperties(result);
115
- }));
124
+ yield handleFormConfig(props.id, {});
116
125
  });
117
126
  }
118
- function loadFormItems() {
119
- let url = `/online/cgform/api/getFormItem/${props.id}`;
120
- return new Promise((resolve, reject) => {
121
- defHttp.get({ url }, { isTransformResponse: false }).then((res) => {
122
- console.log("\u8868\u5355\u7ED3\u679C\u300B\u300Bmodal:", res);
123
- if (res.success) {
124
- resolve(res.result);
125
- } else {
126
- reject(res.message);
127
- }
128
- }).catch(() => {
129
- reject();
130
- });
131
- });
132
- }
133
- const modalWidth = computed(() => {
134
- let diff = 200 * (formTemplate.value - 1);
135
- let width = (!unref(single) ? one2ManyWidth : singleWidth) + diff;
136
- width = calcModalMixWidth(width);
137
- let minWidth = modalMinWidth.value;
138
- console.log({ minWidth });
139
- if (minWidth && width < minWidth) {
140
- width = minWidth;
141
- }
142
- console.log({ width });
143
- return width;
144
- });
145
- function calcModalMixWidth(width) {
146
- let minWidth = extConfigJson.modalMinWidth;
147
- if (minWidth != null && minWidth !== "") {
148
- try {
149
- minWidth = Number.parseInt(minWidth);
150
- if (width < minWidth) {
151
- return minWidth;
152
- }
153
- } catch (e) {
154
- console.warn("error modalMinWidth value: ", minWidth);
155
- }
156
- }
157
- return width;
158
- }
159
- const isUpdate = ref(false);
160
- const single = ref(true);
161
- const extConfigJson = reactive({});
162
- function handleCgButtonClick(optType, buttonCode) {
163
- onlineFormCompRef.value.handleCgButtonClick(optType, buttonCode);
164
- }
165
- function handleSubmit() {
166
- submitLoading.value = true;
167
- setTimeout(() => {
168
- submitLoading.value = false;
169
- }, 1500);
170
- onlineFormCompRef.value.handleSubmit();
171
- }
172
- function handleCancel() {
173
- closeModal();
174
- }
175
- function handleSuccess(formData) {
176
- emit("success", formData);
177
- closeModal();
178
- }
179
127
  const that = {
180
128
  title,
181
129
  onlineFormCompRef,
182
- formRendered,
183
130
  renderSuccess,
184
131
  registerModal,
185
132
  handleSubmit,
@@ -192,21 +139,28 @@ const _sfc_main = defineComponent({
192
139
  handleCgButtonClick,
193
140
  isTreeForm,
194
141
  pidFieldName,
195
- submitLoading
142
+ submitLoading,
143
+ tableName,
144
+ formDataId,
145
+ enableComment,
146
+ commentPanelRef,
147
+ onCloseEvent
196
148
  };
197
149
  return that;
198
150
  }
199
151
  });
200
- const _hoisted_1 = /* @__PURE__ */ createTextVNode("\u786E\u5B9A");
201
- const _hoisted_2 = /* @__PURE__ */ createTextVNode("\u5173\u95ED");
202
152
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
203
153
  const _component_a_button = resolveComponent("a-button");
204
154
  const _component_online_form = resolveComponent("online-form");
155
+ const _component_comment_panel = resolveComponent("comment-panel");
205
156
  const _component_BasicModal = resolveComponent("BasicModal");
206
157
  return openBlock(), createBlock(_component_BasicModal, mergeProps({
207
158
  title: _ctx.title,
159
+ onCancel: _ctx.onCloseEvent,
160
+ enableComment: _ctx.enableComment,
208
161
  width: _ctx.modalWidth
209
162
  }, _ctx.$attrs, {
163
+ height: 600,
210
164
  onRegister: _ctx.registerModal,
211
165
  wrapClassName: "jeecg-online-modal",
212
166
  onOk: _ctx.handleSubmit
@@ -232,7 +186,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
232
186
  loading: _ctx.submitLoading
233
187
  }, {
234
188
  default: withCtx(() => [
235
- _hoisted_1
189
+ createTextVNode("\u786E\u5B9A")
236
190
  ]),
237
191
  _: 1
238
192
  }, 8, ["onClick", "loading"])) : createCommentVNode("", true),
@@ -241,11 +195,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
241
195
  onClick: _ctx.handleCancel
242
196
  }, {
243
197
  default: withCtx(() => [
244
- _hoisted_2
198
+ createTextVNode("\u5173\u95ED")
245
199
  ]),
246
200
  _: 1
247
201
  }, 8, ["onClick"])
248
202
  ]),
203
+ comment: withCtx(() => [
204
+ createVNode(_component_comment_panel, {
205
+ ref: "commentPanelRef",
206
+ tableName: _ctx.tableName,
207
+ dataId: _ctx.formDataId
208
+ }, null, 8, ["tableName", "dataId"])
209
+ ]),
249
210
  default: withCtx(() => [
250
211
  createVNode(_component_online_form, {
251
212
  ref: "onlineFormCompRef",
@@ -259,7 +220,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
259
220
  }, null, 8, ["id", "disabled", "form-template", "isTree", "pidField", "onRendered", "onSuccess"])
260
221
  ]),
261
222
  _: 1
262
- }, 16, ["title", "width", "onRegister", "onOk"]);
223
+ }, 16, ["title", "onCancel", "enableComment", "width", "onRegister", "onOk"]);
263
224
  }
264
225
  var OnlineAutoModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
265
226
  export { OnlineAutoModal as default };
@@ -21,46 +21,69 @@ var __async = (__this, __arguments, generator) => {
21
21
  import { BasicTable, TableAction } from "/@/components/Table";
22
22
  import { useMessage } from "/@/hooks/web/useMessage";
23
23
  import OnlineAutoModal from "./OnlineAutoModal.js";
24
+ import OnlineDetailModal from "./OnlineDetailModal.js";
24
25
  import OnlineCustomModal from "./OnlineCustomModal.js";
25
- import { ref, watch, resolveComponent, openBlock, createElementBlock, createVNode, normalizeClass, withCtx, createBlock, createCommentVNode, Fragment, renderList, createTextVNode, toDisplayString, withDirectives, vShow, createElementVNode, mergeProps, toHandlers, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
26
+ import { ref, watch, resolveComponent, openBlock, createElementBlock, createVNode, createBlock, normalizeClass, withCtx, createTextVNode, createCommentVNode, Fragment, renderList, toDisplayString, withDirectives, vShow, createElementVNode, mergeProps, toHandlers, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
26
27
  import JImportModal from "/@/components/Form/src/jeecg/components/JImportModal.vue";
27
- import { u as useOnlineTableContext, a as useListButton, b as useTableColumns } from "./useTableColumns.js";
28
- import { u as useEnhance } from "./OnlineForm.js";
28
+ import { u as useOnlineTableContext, a as useListButton } from "./useListButton.js";
29
+ import { c as useEnhance, j as useTableColumns, g as getRefPromise } from "./useAutoForm.js";
29
30
  import { defHttp } from "/@/utils/http/axios";
30
31
  import OnlineQueryForm from "./OnlineQueryForm.js";
31
32
  import OnlineSuperQuery from "./OnlineSuperQuery.js";
32
33
  import { _ as _export_sfc } from "./index.js";
33
34
  import "/@/components/Modal";
34
- import "./useAutoForm.js";
35
+ import "./OnlineForm.js";
36
+ import "/@/components/Form/index";
35
37
  import "./FormSchemaFactory.js";
36
38
  import "/@/components/Form/src/jeecg/components/JUpload";
39
+ import "/@/utils";
40
+ import "/@/components/Loading";
41
+ import "/@/components/jeecg/JVxeTable/types";
42
+ import "/@/utils/auth";
43
+ import "@ant-design/icons-vue";
44
+ import "/@/hooks/core/useContext";
45
+ import "/@/utils/mitt";
46
+ import "./pick.js";
47
+ import "./_flatRest.js";
48
+ import "./isArray.js";
49
+ import "./toString.js";
50
+ import "./_arrayPush.js";
51
+ import "./omit.js";
52
+ import "./_baseClone.js";
53
+ import "./_baseSlice.js";
37
54
  import "/@/views/system/user/user.api";
55
+ import "./_commonjsHelpers.js";
38
56
  import "/@/store/modules/user";
39
- import "/@/utils";
40
57
  import "/@/utils/desform/customExpression";
41
58
  import "/@/components/Form/src/componentMap";
42
59
  import "./OnlineSelectCascade.js";
43
60
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
44
61
  import "vue-router";
45
- import "/@/components/Form/index";
46
- import "/@/components/Loading";
47
- import "./OnlineSubForm.js";
48
- import "./pick.js";
49
- import "./isArray.js";
50
- import "./toString.js";
51
- import "./_arrayPush.js";
62
+ import "/@/store/modules/permission";
63
+ import "/@/utils/propTypes";
64
+ import "/@/utils/dict/JDictSelectUtil";
52
65
  import "/@/utils/common/compUtils";
66
+ import "/@/hooks/system/useListPage";
67
+ import "/@/components/Form/src/utils/Area";
68
+ import "/@/components/Preview/index";
69
+ import "./LinkTableListPiece.js";
70
+ import "./JModalTip.js";
71
+ import "ant-design-vue";
72
+ import "@vueuse/core";
73
+ import "/@/components/jeecg/comment/CommentPanel.vue";
74
+ import "./OnlineFormDetail.js";
75
+ import "./DetailForm.js";
76
+ import "/@/utils/dict";
77
+ import "/@/utils/dict/index";
78
+ import "/@/api/common/api";
79
+ import "./OnlineSubFormDetail.js";
80
+ import "/@/router";
53
81
  import "/@/utils/cache";
54
82
  import "/@/hooks/core/onMountedOrActivated";
55
- import "ant-design-vue";
56
83
  import "/@/hooks/system/useMethods";
57
- import "/@/utils/dict/JDictSelectUtil";
58
- import "/@/components/Form/src/utils/Area";
59
- import "/@/components/Preview/index";
60
84
  import "./OnlineSuperQueryValComponent.vue_vue_type_script_lang.js";
61
85
  import "/@/components/Form/src/helper";
62
86
  import "/@/utils/is";
63
- import "@ant-design/icons-vue";
64
87
  var OnlineAutoTreeList_vue_vue_type_style_index_0_lang = "";
65
88
  const _sfc_main = {
66
89
  name: "DefaultOnlineList",
@@ -71,7 +94,8 @@ const _sfc_main = {
71
94
  JImportModal,
72
95
  OnlineQueryForm,
73
96
  OnlineSuperQuery,
74
- OnlineCustomModal
97
+ OnlineCustomModal,
98
+ OnlineDetailModal
75
99
  },
76
100
  setup() {
77
101
  const { createMessage: $message } = useMessage();
@@ -94,7 +118,10 @@ const _sfc_main = {
94
118
  registerCustomModal,
95
119
  getTreeDataByResult,
96
120
  expandedRowKeys,
97
- handleExpandedRowsChange
121
+ handleExpandedRowsChange,
122
+ tableReloading,
123
+ onlineExtConfigJson,
124
+ handleFormConfig
98
125
  } = useOnlineTableContext();
99
126
  if (!ID.value) {
100
127
  $message.warning("\u5730\u5740\u9519\u8BEF, \u914D\u7F6EID\u4E0D\u5B58\u5728!");
@@ -121,8 +148,9 @@ const _sfc_main = {
121
148
  getDropDownActions,
122
149
  getActions,
123
150
  initButtonList,
124
- initButtonSwitch
125
- } = useListButton(onlineTableContext);
151
+ initButtonSwitch,
152
+ registerDetailModal
153
+ } = useListButton(onlineTableContext, onlineExtConfigJson);
126
154
  const {
127
155
  columns,
128
156
  actionColumn,
@@ -137,10 +165,14 @@ const _sfc_main = {
137
165
  handleColumnResult,
138
166
  hrefComponent,
139
167
  viewOnlineCellImage
140
- } = useTableColumns(onlineTableContext);
141
- watch(ID, () => {
142
- initAutoList();
143
- }, { immediate: true });
168
+ } = useTableColumns(onlineTableContext, onlineExtConfigJson);
169
+ watch(
170
+ ID,
171
+ () => {
172
+ initAutoList();
173
+ },
174
+ { immediate: true }
175
+ );
144
176
  function initAutoList() {
145
177
  return __async(this, null, function* () {
146
178
  loading.value = true;
@@ -170,7 +202,10 @@ const _sfc_main = {
170
202
  }
171
203
  }
172
204
  function onQueryFormLoaded(json) {
173
- superQueryButtonRef.value.init(json);
205
+ return __async(this, null, function* () {
206
+ yield getRefPromise(superQueryButtonRef);
207
+ superQueryButtonRef.value.init(json);
208
+ });
174
209
  }
175
210
  function handleExpand(expanded, record) {
176
211
  let expandedRowKeysValue = expandedRowKeys.value;
@@ -238,7 +273,7 @@ const _sfc_main = {
238
273
  }
239
274
  const addChildButton = (record) => {
240
275
  return {
241
- label: "\u6DFB\u52A0\u5B50\u8282\u70B9",
276
+ label: "\u6DFB\u52A0\u4E0B\u7EA7",
242
277
  onClick: handleAddChild.bind(null, record)
243
278
  };
244
279
  };
@@ -295,6 +330,8 @@ const _sfc_main = {
295
330
  registerCustomModal,
296
331
  registerImportModal,
297
332
  importUrl,
333
+ handleFormConfig,
334
+ tableReloading,
298
335
  handleSubmitFlow,
299
336
  hrefComponent,
300
337
  viewOnlineCellImage,
@@ -303,28 +340,24 @@ const _sfc_main = {
303
340
  searchReset,
304
341
  handleExpand,
305
342
  expandedRowKeys,
306
- handleExpandedRowsChange
343
+ handleExpandedRowsChange,
344
+ registerDetailModal
307
345
  };
308
346
  return that;
309
347
  }
310
348
  };
311
349
  const _hoisted_1 = { class: "p-2" };
312
- const _hoisted_2 = /* @__PURE__ */ createTextVNode("\u65B0\u589E");
313
- const _hoisted_3 = /* @__PURE__ */ createTextVNode("\u5BFC\u5165");
314
- const _hoisted_4 = /* @__PURE__ */ createTextVNode(" \u5BFC\u51FA");
315
- const _hoisted_5 = /* @__PURE__ */ createTextVNode(" \u6279\u91CF\u5220\u9664");
316
- const _hoisted_6 = {
350
+ const _hoisted_2 = {
317
351
  key: 0,
318
352
  style: { "font-size": "12px", "font-style": "italic" }
319
353
  };
320
- const _hoisted_7 = /* @__PURE__ */ createTextVNode(" \u4E0B\u8F7D ");
321
- const _hoisted_8 = {
354
+ const _hoisted_3 = {
322
355
  key: 0,
323
356
  style: { "font-size": "12px", "font-style": "italic" }
324
357
  };
325
- const _hoisted_9 = ["src", "onClick"];
326
- const _hoisted_10 = ["innerHTML"];
327
- const _hoisted_11 = ["title"];
358
+ const _hoisted_4 = ["src", "onClick"];
359
+ const _hoisted_5 = ["innerHTML"];
360
+ const _hoisted_6 = ["title"];
328
361
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
329
362
  const _component_online_query_form = resolveComponent("online-query-form");
330
363
  const _component_a_button = resolveComponent("a-button");
@@ -335,6 +368,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
335
368
  const _component_JImportModal = resolveComponent("JImportModal");
336
369
  const _component_a_modal = resolveComponent("a-modal");
337
370
  const _component_online_custom_modal = resolveComponent("online-custom-modal");
371
+ const _component_online_detail_modal = resolveComponent("online-detail-modal");
338
372
  return openBlock(), createElementBlock("div", _hoisted_1, [
339
373
  createVNode(_component_online_query_form, {
340
374
  ref: "onlineQueryFormOuter",
@@ -342,7 +376,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
342
376
  onSearch: _ctx.queryWithCondition,
343
377
  onLoaded: _ctx.onQueryFormLoaded
344
378
  }, null, 8, ["id", "onSearch", "onLoaded"]),
345
- createVNode(_component_BasicTable, {
379
+ !_ctx.tableReloading ? (openBlock(), createBlock(_component_BasicTable, {
380
+ key: 0,
346
381
  ref: "onlineTreeTableRef",
347
382
  isTreeTable: true,
348
383
  expandedRowKeys: _ctx.expandedRowKeys,
@@ -373,7 +408,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
373
408
  onClick: _ctx.handleAdd
374
409
  }, {
375
410
  default: withCtx(() => [
376
- _hoisted_2
411
+ createTextVNode("\u65B0\u589E")
377
412
  ]),
378
413
  _: 1
379
414
  }, 8, ["onClick"])) : createCommentVNode("", true),
@@ -384,7 +419,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
384
419
  onClick: _ctx.onImportExcel
385
420
  }, {
386
421
  default: withCtx(() => [
387
- _hoisted_3
422
+ createTextVNode("\u5BFC\u5165")
388
423
  ]),
389
424
  _: 1
390
425
  }, 8, ["onClick"])) : createCommentVNode("", true),
@@ -395,7 +430,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
395
430
  onClick: _ctx.onExportExcel
396
431
  }, {
397
432
  default: withCtx(() => [
398
- _hoisted_4
433
+ createTextVNode(" \u5BFC\u51FA")
399
434
  ]),
400
435
  _: 1
401
436
  }, 8, ["onClick"])) : createCommentVNode("", true),
@@ -430,7 +465,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
430
465
  onClick: _ctx.handleBatchDelete
431
466
  }, {
432
467
  default: withCtx(() => [
433
- _hoisted_5
468
+ createTextVNode(" \u6279\u91CF\u5220\u9664")
434
469
  ]),
435
470
  _: 1
436
471
  }, 8, ["onClick"])), [
@@ -444,7 +479,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
444
479
  }, null, 8, ["status", "onSearch"])) : createCommentVNode("", true)
445
480
  ]),
446
481
  fileSlot: withCtx(({ text }) => [
447
- !text ? (openBlock(), createElementBlock("span", _hoisted_6, "\u65E0\u6587\u4EF6")) : (openBlock(), createBlock(_component_a_button, {
482
+ !text ? (openBlock(), createElementBlock("span", _hoisted_2, "\u65E0\u6587\u4EF6")) : (openBlock(), createBlock(_component_a_button, {
448
483
  key: 1,
449
484
  ghost: true,
450
485
  type: "primary",
@@ -453,27 +488,27 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
453
488
  onClick: ($event) => _ctx.downloadRowFile(text)
454
489
  }, {
455
490
  default: withCtx(() => [
456
- _hoisted_7
491
+ createTextVNode(" \u4E0B\u8F7D ")
457
492
  ]),
458
493
  _: 2
459
494
  }, 1032, ["onClick"]))
460
495
  ]),
461
496
  imgSlot: withCtx(({ text }) => [
462
- !text ? (openBlock(), createElementBlock("span", _hoisted_8, "\u65E0\u56FE\u7247")) : (openBlock(), createElementBlock("img", {
497
+ !text ? (openBlock(), createElementBlock("span", _hoisted_3, "\u65E0\u56FE\u7247")) : (openBlock(), createElementBlock("img", {
463
498
  key: 1,
464
499
  src: _ctx.getImgView(text),
465
500
  alt: "\u56FE\u7247\u4E0D\u5B58\u5728",
466
501
  class: "online-cell-image",
467
502
  onClick: ($event) => _ctx.viewOnlineCellImage(text)
468
- }, null, 8, _hoisted_9))
503
+ }, null, 8, _hoisted_4))
469
504
  ]),
470
505
  htmlSlot: withCtx(({ text }) => [
471
- createElementVNode("div", { innerHTML: text }, null, 8, _hoisted_10)
506
+ createElementVNode("div", { innerHTML: text }, null, 8, _hoisted_5)
472
507
  ]),
473
508
  pcaSlot: withCtx(({ text }) => [
474
509
  createElementVNode("div", {
475
510
  title: _ctx.getPcaText(text)
476
- }, toDisplayString(_ctx.getPcaText(text)), 9, _hoisted_11)
511
+ }, toDisplayString(_ctx.getPcaText(text)), 9, _hoisted_6)
477
512
  ]),
478
513
  dateSlot: withCtx(({ text }) => [
479
514
  createElementVNode("span", null, toDisplayString(_ctx.getFormatDate(text)), 1)
@@ -485,12 +520,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
485
520
  }, null, 8, ["actions", "dropDownActions"])
486
521
  ]),
487
522
  _: 1
488
- }, 8, ["expandedRowKeys", "onExpandedRowsChange", "onExpand", "loading", "columns", "dataSource", "pagination", "rowSelection", "actionColumn", "scroll", "onTableRedo", "class", "onChange"]),
523
+ }, 8, ["expandedRowKeys", "onExpandedRowsChange", "onExpand", "loading", "columns", "dataSource", "pagination", "rowSelection", "actionColumn", "scroll", "onTableRedo", "class", "onChange"])) : createCommentVNode("", true),
489
524
  createVNode(_component_OnlineAutoModal, {
490
525
  id: _ctx.ID,
491
526
  onRegister: _ctx.registerModal,
492
- onSuccess: _ctx.handlerFormSuccess
493
- }, null, 8, ["id", "onRegister", "onSuccess"]),
527
+ onSuccess: _ctx.handlerFormSuccess,
528
+ onFormConfig: _ctx.handleFormConfig
529
+ }, null, 8, ["id", "onRegister", "onSuccess", "onFormConfig"]),
494
530
  createVNode(_component_JImportModal, {
495
531
  onRegister: _ctx.registerImportModal,
496
532
  url: _ctx.importUrl(),
@@ -506,7 +542,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
506
542
  createVNode(_component_online_custom_modal, {
507
543
  onRegister: _ctx.registerCustomModal,
508
544
  onSuccess: _ctx.reload
509
- }, null, 8, ["onRegister", "onSuccess"])
545
+ }, null, 8, ["onRegister", "onSuccess"]),
546
+ createVNode(_component_online_detail_modal, {
547
+ id: _ctx.ID,
548
+ onRegister: _ctx.registerDetailModal
549
+ }, null, 8, ["id", "onRegister"])
510
550
  ]);
511
551
  }
512
552
  var OnlineAutoTreeList = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);