@jeecg/online 3.6.2-GA → 3.7.0-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 (118) hide show
  1. package/AiModal-fe3988fb.mjs +84 -0
  2. package/AuthButtonConfig-d50a0a65.mjs +134 -0
  3. package/{AuthButtonTree-c2602a7c.mjs → AuthButtonTree-589395ed.mjs} +2 -2
  4. package/AuthDataConfig-7bb0cd85.mjs +237 -0
  5. package/{AuthDataTree-9dc58b20.mjs → AuthDataTree-6e3bb86f.mjs} +1 -1
  6. package/AuthFieldConfig-490fc0ab.mjs +139 -0
  7. package/{AuthFieldTree-d836be59.mjs → AuthFieldTree-b7cd091e.mjs} +1 -1
  8. package/AuthManagerDrawer-5e2ed5ce.mjs +118 -0
  9. package/AuthSetterModal-6f74449c.mjs +273 -0
  10. package/{CgformCopyList-86157923.mjs → CgformCopyList-8077ccc6.mjs} +47 -45
  11. package/{CgformModal-5cf02d51.mjs → CgformModal-36faf29a.mjs} +256 -246
  12. package/{CgreportModal.vue_vue_type_script_setup_true_lang-c2ceb064.mjs → CgreportModal-5a23d089.mjs} +140 -117
  13. package/CheckDictTable-b5cb0e2b.mjs +226 -0
  14. package/{CodeFileListModal-f747daae.mjs → CodeFileListModal-0e26b7e0.mjs} +2 -2
  15. package/{CodeFileViewModal-a9fb2900.mjs → CodeFileViewModal-9d4a5b5f.mjs} +36 -32
  16. package/CodeGeneratorModal-b722d976.mjs +238 -0
  17. package/{CustomButtonList-b9b27a93.mjs → CustomButtonList-37639061.mjs} +118 -100
  18. package/{DBAttributeTable-6bdcb1e8.mjs → DBAttributeTable-95dc66c1.mjs} +110 -89
  19. package/{DbToOnlineModal-3705e91a.mjs → DbToOnlineModal-f49b9530.mjs} +56 -50
  20. package/DetailForm-4aa2570b.mjs +485 -0
  21. package/{EnhanceJavaModal-c13de6e0.mjs → EnhanceJavaModal-98934198.mjs} +3 -3
  22. package/{EnhanceJsHistory-154101f0.mjs → EnhanceJsHistory-9c4acdaf.mjs} +2 -2
  23. package/EnhanceJsModal-247f640d.mjs +532 -0
  24. package/{EnhanceSqlModal-221c22dc.mjs → EnhanceSqlModal-65b74b0f.mjs} +3 -3
  25. package/ExtendConfigModal-00f2fb55.mjs +117 -0
  26. package/FieldExtendJsonModal-cc7fce26.mjs +277 -0
  27. package/{FileSelectModal-de40a706.mjs → FileSelectModal-38660e3c.mjs} +1 -1
  28. package/{ForeignKeyTable-22989042.mjs → ForeignKeyTable-a78cb5ad.mjs} +3 -3
  29. package/{IndexTable-833d34ff.mjs → IndexTable-1b496559.mjs} +10 -10
  30. package/{JModalTip-0413ad6a.mjs → JModalTip-4a83aaed.mjs} +1 -1
  31. package/{JOnlineSearchSelect-9ea89e13.mjs → JOnlineSearchSelect-34a37ec9.mjs} +1 -1
  32. package/{LeftDepart-b0a535c0.mjs → LeftDepart-8ade4bf7.mjs} +1 -1
  33. package/{LeftRole-22c90d6b.mjs → LeftRole-7d8c5acc.mjs} +1 -1
  34. package/{LeftUser-a44d63dd.mjs → LeftUser-b4d1372a.mjs} +3 -3
  35. package/LinkTableConfigModal-a138c85e.mjs +240 -0
  36. package/{LinkTableFieldConfigModal-06693eaa.mjs → LinkTableFieldConfigModal-17b413b0.mjs} +41 -41
  37. package/{LinkTableListPiece-46e8af51.mjs → LinkTableListPiece-2660d709.mjs} +1 -1
  38. package/{ModalFormDemo-d107fa87.mjs → ModalFormDemo-0544737d.mjs} +1 -1
  39. package/OnlCgformErpList-30e416c8.mjs +470 -0
  40. package/OnlCgformErpSubTable-9a876058.mjs +427 -0
  41. package/OnlCgformInnerSubTable-290ace5d.mjs +266 -0
  42. package/OnlCgformInnerTableList-f89b6687.mjs +458 -0
  43. package/OnlCgformTabList-7a2f2c03.mjs +408 -0
  44. package/OnlineAutoList-46c6c8b9.mjs +493 -0
  45. package/OnlineAutoModal-971bef13.mjs +236 -0
  46. package/{OnlineAutoTreeList-ec27d271.mjs → OnlineAutoTreeList-3b92454c.mjs} +206 -204
  47. package/{OnlineCustomModal-3e6792d3.mjs → OnlineCustomModal-594244f3.mjs} +15 -11
  48. package/{OnlineDetailModal-f40e37e1.mjs → OnlineDetailModal-2a271e0b.mjs} +74 -64
  49. package/OnlineForm-018981b2.mjs +924 -0
  50. package/OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs +1 -0
  51. package/OnlineFormDetail-e036cd11.mjs +342 -0
  52. package/OnlineFormUrlAdd-7fb3dcca.mjs +115 -0
  53. package/OnlineFormUrlDetail-b2292137.mjs +119 -0
  54. package/OnlineFormUrlEdit-44080fb3.mjs +113 -0
  55. package/OnlineFormUrlSuccess-af285b02.mjs +59 -0
  56. package/OnlineQueryForm-998c12a4.mjs +444 -0
  57. package/{OnlineSearchFormItem-fe308194.mjs → OnlineSearchFormItem-6feacae6.mjs} +2 -2
  58. package/{OnlineSelectCascade-abc345f9.mjs → OnlineSelectCascade-471fcc76.mjs} +1 -1
  59. package/{OnlineSubFormDetail-02326a8c.mjs → OnlineSubFormDetail-03f8ee5c.mjs} +29 -27
  60. package/OnlineTabAutoModal-7b9bcd0b.mjs +306 -0
  61. package/{OnlineTabDetailModal-d23bd4c9.mjs → OnlineTabDetailModal-88143301.mjs} +22 -20
  62. package/OnlineTabForm-9ad7d29a.mjs +805 -0
  63. package/OnlineTabFormDetail-bbf23caa.mjs +327 -0
  64. package/PageAttributeTable-6c23547b.mjs +446 -0
  65. package/{ProcessOnlineForm-84f4d02d.mjs → ProcessOnlineForm-b42198f5.mjs} +32 -28
  66. package/QueryTable-96b3dbd0.mjs +144 -0
  67. package/SetSwitchOptions-a452fa0f.mjs +62 -0
  68. package/SuperQuery-cbfba908.mjs +975 -0
  69. package/{auth.data-8be5c9e3.mjs → auth.data-22948e87.mjs} +56 -14
  70. package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
  71. package/constant-fa63bd66.mjs +10 -0
  72. package/{enhance.data-efc7e155.mjs → enhance.data-3304d553.mjs} +3 -3
  73. package/index-173949bb.mjs +57 -0
  74. package/{index-0a93652b.mjs → index-581bef24.mjs} +29 -27
  75. package/{index-e1bda35b.mjs → index-d2abb8a0.mjs} +394 -361
  76. package/main.index.js +1 -1
  77. package/package.json +1 -1
  78. package/style.css +1 -1
  79. package/useCgformList-8755a94e.mjs +426 -0
  80. package/useExtendComponent-bb7cca20.mjs +4295 -0
  81. package/useFormUrl-2ee1a82d.mjs +24 -0
  82. package/useListButton-7ddb9a46.mjs +697 -0
  83. package/{useSchemas-0433a403.mjs → useSchemas-47e45edc.mjs} +167 -86
  84. package/{useTableSync-774c3774.mjs → useTableSync-f6089e8a.mjs} +1 -1
  85. package/AuthButtonConfig-f142147a.mjs +0 -125
  86. package/AuthDataConfig-8e5c7b0c.mjs +0 -212
  87. package/AuthFieldConfig-e9a45f94.mjs +0 -139
  88. package/AuthManagerDrawer-5b558c23.mjs +0 -114
  89. package/AuthSetterModal-0cc557cf.mjs +0 -267
  90. package/CgreportModal-2eb9c9e1.mjs +0 -13
  91. package/CheckDictTable-27102064.mjs +0 -211
  92. package/CodeGeneratorModal-3a0e9f0e.mjs +0 -233
  93. package/DetailForm-cdeb54e3.mjs +0 -462
  94. package/EnhanceJsModal-6158804c.mjs +0 -311
  95. package/ExtendConfigModal-0564ef83.mjs +0 -111
  96. package/FieldExtendJsonModal-40d961c1.mjs +0 -219
  97. package/LinkTableConfigModal-5edaa08d.mjs +0 -230
  98. package/OnlCgformErpList-4c51cdb3.mjs +0 -454
  99. package/OnlCgformErpSubTable-d7081b9f.mjs +0 -403
  100. package/OnlCgformInnerSubTable-4c3925bb.mjs +0 -253
  101. package/OnlCgformInnerTableList-1e5014fa.mjs +0 -444
  102. package/OnlCgformTabList-c59c7cc7.mjs +0 -395
  103. package/OnlineAutoList-a7a9de5d.mjs +0 -479
  104. package/OnlineAutoModal-a33f1a63.mjs +0 -207
  105. package/OnlineForm-fb3a2379.mjs +0 -750
  106. package/OnlineFormDetail-52b1c303.mjs +0 -297
  107. package/OnlineQueryForm-7c70734e.mjs +0 -386
  108. package/OnlineTabAutoModal-6d9da8b0.mjs +0 -254
  109. package/OnlineTabForm-29ca07f7.mjs +0 -766
  110. package/OnlineTabFormDetail-aa7e1144.mjs +0 -324
  111. package/PageAttributeTable-d82946c5.mjs +0 -404
  112. package/QueryTable-d4599fca.mjs +0 -115
  113. package/SuperQuery-07162778.mjs +0 -843
  114. package/constant-754f1a9d.mjs +0 -9
  115. package/index-73993b18.mjs +0 -56
  116. package/useCgformList-b135794d.mjs +0 -400
  117. package/useExtendComponent-f4e29152.mjs +0 -3926
  118. package/useListButton-4dd33e7a.mjs +0 -676
@@ -1,35 +1,35 @@
1
- var B = (e, T, m) => new Promise((i, k) => {
2
- var y = (s) => {
1
+ var B = (e, S, m) => new Promise((i, k) => {
2
+ var w = (d) => {
3
3
  try {
4
- r(m.next(s));
5
- } catch (h) {
6
- k(h);
4
+ s(m.next(d));
5
+ } catch (f) {
6
+ k(f);
7
7
  }
8
- }, c = (s) => {
8
+ }, g = (d) => {
9
9
  try {
10
- r(m.throw(s));
11
- } catch (h) {
12
- k(h);
10
+ s(m.throw(d));
11
+ } catch (f) {
12
+ k(f);
13
13
  }
14
- }, r = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(y, c);
15
- r((m = m.apply(e, T)).next());
14
+ }, s = (d) => d.done ? i(d.value) : Promise.resolve(d.value).then(w, g);
15
+ s((m = m.apply(e, S)).next());
16
16
  });
17
- import { BasicTable as Je, TableAction as He } from "/@/components/Table";
18
- import { useMessage as Ke } from "/@/hooks/web/useMessage";
19
- import Pe from "./OnlineAutoModal-a33f1a63.mjs";
20
- import qe from "./OnlineDetailModal-f40e37e1.mjs";
21
- import Ne from "./OnlineCustomModal-3e6792d3.mjs";
22
- import { ref as K, watch as Ve, resolveComponent as d, openBlock as l, createElementBlock as S, createVNode as f, createBlock as p, normalizeClass as ze, withCtx as a, createTextVNode as C, createCommentVNode as g, Fragment as P, renderList as je, toDisplayString as E, withDirectives as Ue, vShow as We, createElementVNode as _, mergeProps as Ge, toHandlers as Xe, resolveDynamicComponent as Ye, normalizeProps as Ze, guardReactiveProps as xe } from "vue";
23
- import eo from "/@/components/Form/src/jeecg/components/JImportModal.vue";
24
- import { u as oo, a as no } from "./useListButton-4dd33e7a.mjs";
25
- import { u as to, a as io, g as lo } from "./useExtendComponent-f4e29152.mjs";
17
+ import { BasicTable as Je, TableAction as Ke } from "/@/components/Table";
18
+ import { useMessage as Pe } from "/@/hooks/web/useMessage";
19
+ import qe from "./OnlineAutoModal-971bef13.mjs";
20
+ import Ne from "./OnlineDetailModal-2a271e0b.mjs";
21
+ import Ve from "./OnlineCustomModal-594244f3.mjs";
22
+ import { ref as K, watch as ze, resolveComponent as p, openBlock as l, createElementBlock as h, createVNode as C, createBlock as c, normalizeClass as je, withCtx as a, createTextVNode as T, createCommentVNode as y, Fragment as P, renderList as Ue, toDisplayString as D, withDirectives as We, vShow as Ge, createElementVNode as q, mergeProps as Xe, toHandlers as Ye, resolveDynamicComponent as Ze, normalizeProps as xe, guardReactiveProps as eo } from "vue";
23
+ import oo from "/@/components/Form/src/jeecg/components/JImportModal.vue";
24
+ import { u as no, a as to } from "./useListButton-7ddb9a46.mjs";
25
+ import { u as io, a as lo, g as ro } from "./useExtendComponent-bb7cca20.mjs";
26
26
  import { defHttp as ao } from "/@/utils/http/axios";
27
- import ro from "./OnlineQueryForm-7c70734e.mjs";
28
- import so from "./SuperQuery-07162778.mjs";
29
- import { a as q } from "./constant-754f1a9d.mjs";
30
- import { _ as uo } from "./index-73993b18.mjs";
27
+ import so from "./OnlineQueryForm-998c12a4.mjs";
28
+ import uo from "./SuperQuery-cbfba908.mjs";
29
+ import { b as N } from "./constant-fa63bd66.mjs";
30
+ import { _ as po } from "./index-173949bb.mjs";
31
31
  import "/@/components/Modal";
32
- import "./OnlineForm-fb3a2379.mjs";
32
+ import "./OnlineForm-018981b2.mjs";
33
33
  import "/@/components/Form/index";
34
34
  import "lodash-es";
35
35
  import "/@/utils";
@@ -43,88 +43,92 @@ import "./useCustomHook-acb00837.mjs";
43
43
  import "/@/utils/cache";
44
44
  import "/@/utils/common/compUtils";
45
45
  import "/@/store/modules/user";
46
- import "/@/components/jeecg/comment/CommentPanel.vue";
47
- import "./OnlineFormDetail-52b1c303.mjs";
48
- import "./DetailForm-cdeb54e3.mjs";
46
+ import "/@/hooks/web/useAppInject";
47
+ import "/@/utils/is";
48
+ import "./OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs";
49
+ import "/@/components/Form/src/componentMap";
49
50
  import "/@/utils/propTypes";
50
- import "/@/utils/dict";
51
+ import "/@/components/Form/src/jeecg/components/JUpload";
52
+ import "/@/views/system/user/user.api";
53
+ import "/@/utils/desform/customExpression";
54
+ import "/@/store/modules/permission";
51
55
  import "/@/utils/dict/JDictSelectUtil";
52
- import "/@/utils/dict/index";
53
- import "/@/api/common/api";
56
+ import "/@/hooks/system/useListPage";
57
+ import "vue-router";
54
58
  import "/@/components/Form/src/utils/Area";
55
59
  import "/@/components/Preview/index";
60
+ import "./LinkTableListPiece-2660d709.mjs";
61
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
62
+ import "/@/api/common/api";
63
+ import "/@/assets/images/placeholderImage.png";
64
+ import "./OnlineSelectCascade-471fcc76.mjs";
65
+ import "./JModalTip-4a83aaed.mjs";
66
+ import "ant-design-vue";
67
+ import "@vueuse/core";
68
+ import "/@/components/jeecg/comment/CommentPanel.vue";
69
+ import "./OnlineFormDetail-e036cd11.mjs";
70
+ import "./DetailForm-4aa2570b.mjs";
71
+ import "/@/utils/dict";
72
+ import "/@/utils/dict/index";
56
73
  import "/@/components/Markdown";
57
- import "./OnlineSubFormDetail-02326a8c.mjs";
58
- import "vue-router";
74
+ import "./OnlineSubFormDetail-03f8ee5c.mjs";
59
75
  import "/@/router";
60
76
  import "/@/hooks/core/onMountedOrActivated";
61
77
  import "/@/store/modules/multipleTab";
62
78
  import "./cgformState-d9f8ec42.mjs";
63
79
  import "pinia";
64
80
  import "/@/store";
65
- import "ant-design-vue";
66
81
  import "/@/hooks/system/useMethods";
67
- import "/@/components/Form/src/componentMap";
68
- import "/@/components/Form/src/jeecg/components/JUpload";
69
- import "/@/views/system/user/user.api";
70
- import "/@/utils/desform/customExpression";
71
- import "/@/store/modules/permission";
72
- import "/@/hooks/system/useListPage";
73
- import "./LinkTableListPiece-46e8af51.mjs";
74
- import "./OnlineSelectCascade-abc345f9.mjs";
75
- import "./JModalTip-0413ad6a.mjs";
76
- import "/@/hooks/web/useAppInject";
77
- import "@vueuse/core";
82
+ import "/@/components/Form/src/jeecg/components/JRangeNumber.vue";
78
83
  import "./SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs";
79
- import "/@/utils/is";
80
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
81
- const po = {
84
+ import "/@/hooks/web/useDesign";
85
+ const mo = {
82
86
  name: "DefaultOnlineList",
83
87
  components: {
84
88
  BasicTable: Je,
85
- TableAction: He,
86
- OnlineAutoModal: Pe,
87
- JImportModal: eo,
88
- OnlineQueryForm: ro,
89
- OnlineSuperQuery: so,
90
- OnlineCustomModal: Ne,
91
- OnlineDetailModal: qe
89
+ TableAction: Ke,
90
+ OnlineAutoModal: qe,
91
+ JImportModal: oo,
92
+ OnlineQueryForm: so,
93
+ OnlineSuperQuery: uo,
94
+ OnlineCustomModal: Ve,
95
+ OnlineDetailModal: Ne
92
96
  },
93
97
  setup() {
94
- const { createMessage: e } = Ke(), T = K(), {
98
+ const { createMessage: e } = Pe(), S = K(), {
95
99
  ID: m,
96
100
  onlineTableContext: i,
97
101
  onlineQueryFormOuter: k,
98
- loading: y,
99
- reload: c,
100
- dataSource: r,
101
- pagination: s,
102
- handleSpecialConfig: h,
103
- getColumnList: D,
102
+ loading: w,
103
+ reload: g,
104
+ dataSource: s,
105
+ pagination: d,
106
+ handleSpecialConfig: f,
107
+ getColumnList: E,
104
108
  handleChangeInTable: v,
105
- loadData: A,
106
- superQueryButtonRef: R,
107
- superQueryStatus: L,
108
- handleSuperQuery: O,
109
+ loadData: L,
110
+ superQueryButtonRef: F,
111
+ superQueryStatus: A,
112
+ handleSuperQuery: M,
109
113
  registerCustomModal: o,
110
- getTreeDataByResult: w,
111
- expandedRowKeys: u,
112
- handleExpandedRowsChange: N,
114
+ getTreeDataByResult: u,
115
+ expandedRowKeys: r,
116
+ handleExpandedRowsChange: O,
113
117
  tableReloading: V,
114
- onlineExtConfigJson: Q,
118
+ onlineExtConfigJson: _,
115
119
  handleFormConfig: z
116
- } = oo();
120
+ } = no();
117
121
  if (!m.value)
118
122
  throw e.warning("地址错误, 配置ID不存在!"), new Error("地址错误, 配置ID不存在!");
119
123
  i.isTree(!0);
120
- let { initCgEnhanceJs: j } = to(i);
124
+ let { initCgEnhanceJs: j } = io(i);
121
125
  const {
122
126
  buttonSwitch: U,
123
127
  cgLinkButtonList: W,
124
128
  cgTopButtonList: G,
125
129
  importUrl: X,
126
130
  registerModal: Y,
127
- handleAdd: $,
131
+ handleAdd: Q,
128
132
  handleEdit: Z,
129
133
  handleBatchDelete: x,
130
134
  registerImportModal: ee,
@@ -133,13 +137,13 @@ const po = {
133
137
  cgButtonJsHandler: te,
134
138
  cgButtonActionHandler: ie,
135
139
  cgButtonLinkHandler: le,
136
- handleSubmitFlow: ae,
137
- getDropDownActions: re,
140
+ handleSubmitFlow: re,
141
+ getDropDownActions: ae,
138
142
  getActions: se,
139
143
  initButtonList: ue,
140
144
  initButtonSwitch: de,
141
145
  registerDetailModal: pe
142
- } = no(i, Q), {
146
+ } = to(i, _), {
143
147
  columns: me,
144
148
  actionColumn: ce,
145
149
  selectedKeys: ge,
@@ -149,108 +153,109 @@ const po = {
149
153
  downloadRowFile: ye,
150
154
  getImgView: we,
151
155
  getPcaText: be,
152
- getFormatDate: Se,
153
- handleColumnResult: Te,
156
+ getFormatDate: Te,
157
+ handleColumnResult: Se,
154
158
  hrefComponent: ke,
155
- viewOnlineCellImage: Re
156
- } = io(i, Q);
157
- Ve(
159
+ viewOnlineCellImage: Fe,
160
+ handleClickFieldHref: Re
161
+ } = lo(i, _);
162
+ ze(
158
163
  m,
159
164
  () => {
160
- Fe();
165
+ Ie();
161
166
  },
162
167
  { immediate: !0 }
163
168
  );
164
- function Fe() {
169
+ function Ie() {
165
170
  return B(this, null, function* () {
166
- y.value = !0;
167
- let n = yield D(q);
168
- Ie(n), yield A(), y.value = !1, i.execButtonEnhance("setup");
171
+ w.value = !0;
172
+ let n = yield E(N);
173
+ Be(n), yield L(), w.value = !1, i.execButtonEnhance("setup");
169
174
  });
170
175
  }
171
- function Ie(n) {
176
+ function Be(n) {
172
177
  let t = j(n.enhanceJs);
173
- i.EnhanceJS = t, ue(n.cgButtonList), de(n.hideColumns), Te(n), h(n), i.hasChildrenField = n.hasChildrenField, i.pidField = n.pidField;
178
+ i.EnhanceJS = t, ue(n.cgButtonList), de(n.hideColumns), Se(n), f(n), i.hasChildrenField = n.hasChildrenField, i.pidField = n.pidField;
174
179
  }
175
- function Be(n, t) {
176
- i.queryParam = n, t === !0 ? c({ mode: "search" }) : J();
180
+ function De(n, t) {
181
+ i.queryParam = n, t === !0 ? g({ mode: "search" }) : $();
177
182
  }
178
183
  function Ee(n) {
179
184
  return B(this, null, function* () {
180
- yield lo(R), R.value.init(n);
185
+ yield ro(F), F.value.init(n);
181
186
  });
182
187
  }
183
- function De(n, t) {
184
- let b = u.value;
188
+ function ve(n, t) {
189
+ let b = r.value;
185
190
  if (n) {
186
- if (ve(t.id), t.children.length > 0 && t.children[0].isLoading === !0) {
187
- let F = i.hasChildrenField;
191
+ if (Le(t.id), t.children.length > 0 && t.children[0].isLoading === !0) {
192
+ let R = i.hasChildrenField;
188
193
  const { sortField: _e, sortType: Qe } = i;
189
- let M = Object.assign({}, { column: _e, order: Qe });
190
- M[i.pidField] = t.id, M[F] = t[F];
194
+ let H = Object.assign({}, { column: _e, order: Qe });
195
+ H[i.pidField] = t.id, H[R] = t[R];
191
196
  let $e = `${i.onlineUrl.getTreeData}${i.ID}`;
192
- ao.get({ url: $e, params: M }, { isTransformResponse: !1 }).then((I) => {
193
- I.success ? Number(I.result.total) > 0 ? t.children = w(I.result.records) : (t.children = "", t.hasChildrenField = "0") : e.warning(I.message);
197
+ ao.get({ url: $e, params: H }, { isTransformResponse: !1 }).then((I) => {
198
+ I.success ? Number(I.result.total) > 0 ? t.children = u(I.result.records) : (t.children = "", t.hasChildrenField = "0") : e.warning(I.message);
194
199
  }).catch(() => {
195
200
  e.warning("加载子节点失败!");
196
201
  });
197
202
  }
198
203
  } else {
199
- let F = b.indexOf(t.id);
200
- F >= 0 && (u.value = b.splice(F, 1));
204
+ let R = b.indexOf(t.id);
205
+ R >= 0 && (r.value = b.splice(R, 1));
201
206
  }
202
207
  }
203
- function ve(n) {
204
- let t = u.value;
205
- t && t.indexOf(n) < 0 && t.push(n), u.value = t;
208
+ function Le(n) {
209
+ let t = r.value;
210
+ t && t.indexOf(n) < 0 && t.push(n), r.value = t;
206
211
  }
207
- function J() {
212
+ function $() {
208
213
  return B(this, null, function* () {
209
- i.isTree() === !0 && (u.value = [], T.value.collapseAll()), c();
214
+ i.isTree() === !0 && (r.value = [], S.value.collapseAll()), g();
210
215
  });
211
216
  }
212
217
  function Ae(n) {
213
- if (H.value === !0) {
218
+ if (J.value === !0) {
214
219
  let t = n[i.pidField];
215
220
  if (t) {
216
- let b = u.value;
217
- b.indexOf(t) < 0 && b.push(t), u.value = b;
221
+ let b = r.value;
222
+ b.indexOf(t) < 0 && b.push(t), r.value = b;
218
223
  }
219
224
  }
220
- c();
225
+ g();
221
226
  }
222
- const Le = (n) => ({
227
+ const Me = (n) => ({
223
228
  label: "添加下级",
224
229
  onClick: Oe.bind(null, n)
225
- }), H = K(!1);
230
+ }), J = K(!1);
226
231
  function Oe(n) {
227
- H.value = !0;
232
+ J.value = !0;
228
233
  let t = {
229
234
  [i.pidField]: n.id
230
235
  };
231
- $(t);
236
+ Q(t);
232
237
  }
233
- function Me(n) {
234
- let t = re(n, { themeTemplate: q });
235
- return t.unshift(Le(n)), t;
238
+ function He(n) {
239
+ let t = ae(n, { themeTemplate: N });
240
+ return t.unshift(Me(n)), t;
236
241
  }
237
242
  return {
238
243
  ID: m,
239
244
  // 查询区域
240
245
  onlineQueryFormOuter: k,
241
- queryWithCondition: Be,
246
+ queryWithCondition: De,
242
247
  onQueryFormLoaded: Ee,
243
- reload: c,
248
+ reload: g,
244
249
  //高级查询
245
- superQueryButtonRef: R,
246
- superQueryStatus: L,
247
- handleSuperQuery: O,
250
+ superQueryButtonRef: F,
251
+ superQueryStatus: A,
252
+ handleSuperQuery: M,
248
253
  // table区域
249
- loading: y,
254
+ loading: w,
250
255
  columns: me,
251
256
  actionColumn: ce,
252
- dataSource: r,
253
- pagination: s,
257
+ dataSource: s,
258
+ pagination: d,
254
259
  rowSelection: he,
255
260
  selectedKeys: ge,
256
261
  tableScroll: Ce,
@@ -258,7 +263,7 @@ const po = {
258
263
  handleChangeInTable: v,
259
264
  //按钮
260
265
  buttonSwitch: U,
261
- handleAdd: $,
266
+ handleAdd: Q,
262
267
  handleEdit: Z,
263
268
  onImportExcel: oe,
264
269
  onExportExcel: ne,
@@ -272,10 +277,10 @@ const po = {
272
277
  downloadRowFile: ye,
273
278
  getImgView: we,
274
279
  getPcaText: be,
275
- getFormatDate: Se,
280
+ getFormatDate: Te,
276
281
  // 操作列
277
282
  getActions: se,
278
- getTreeDropDownActions: Me,
283
+ getTreeDropDownActions: He,
279
284
  // 弹窗
280
285
  registerModal: Y,
281
286
  registerCustomModal: o,
@@ -284,17 +289,18 @@ const po = {
284
289
  handleFormConfig: z,
285
290
  //其他
286
291
  tableReloading: V,
287
- handleSubmitFlow: ae,
292
+ handleSubmitFlow: re,
288
293
  hrefComponent: ke,
289
- viewOnlineCellImage: Re,
294
+ viewOnlineCellImage: Fe,
290
295
  //树特定的配置
291
- onlineTreeTableRef: T,
296
+ onlineTreeTableRef: S,
292
297
  handlerFormSuccess: Ae,
293
- searchReset: J,
294
- handleExpand: De,
295
- expandedRowKeys: u,
296
- handleExpandedRowsChange: N,
297
- registerDetailModal: pe
298
+ searchReset: $,
299
+ handleExpand: ve,
300
+ expandedRowKeys: r,
301
+ handleExpandedRowsChange: O,
302
+ registerDetailModal: pe,
303
+ handleClickFieldHref: Re
298
304
  };
299
305
  }
300
306
  // 1引入了loadsh console.log(that.simpleDateFormat(new Date().getTime(),'yyyy-MM-dd'));
@@ -306,23 +312,23 @@ const po = {
306
312
  // TODO 积木报表打印地址
307
313
  // const reportPrintUrl = ref('')
308
314
  };
309
- const mo = { class: "p-2" }, co = {
315
+ const co = { class: "p-2" }, go = {
310
316
  key: 0,
311
317
  style: { "font-size": "12px", "font-style": "italic" }
312
- }, go = {
318
+ }, ho = {
313
319
  key: 0,
314
320
  style: { "font-size": "12px", "font-style": "italic" }
315
- }, ho = ["src", "onClick"], fo = ["innerHTML"], Co = ["title"];
316
- function yo(e, T, m, i, k, y) {
317
- const c = d("online-query-form"), r = d("a-button"), s = d("online-super-query"), h = d("TableAction"), D = d("BasicTable"), v = d("OnlineAutoModal"), A = d("JImportModal"), R = d("a-modal"), L = d("online-custom-modal"), O = d("online-detail-modal");
318
- return l(), S("div", mo, [
319
- f(c, {
321
+ }, fo = ["src", "onClick"], Co = ["innerHTML", "onClick"], yo = ["innerHTML"], wo = ["title"];
322
+ function bo(e, S, m, i, k, w) {
323
+ const g = p("online-query-form"), s = p("a-button"), d = p("online-super-query"), f = p("TableAction"), E = p("BasicTable"), v = p("OnlineAutoModal"), L = p("JImportModal"), F = p("a-modal"), A = p("online-custom-modal"), M = p("online-detail-modal");
324
+ return l(), h("div", co, [
325
+ C(g, {
320
326
  ref: "onlineQueryFormOuter",
321
327
  id: e.ID,
322
328
  onSearch: e.queryWithCondition,
323
329
  onLoaded: e.onQueryFormLoaded
324
330
  }, null, 8, ["id", "onSearch", "onLoaded"]),
325
- e.tableReloading ? g("", !0) : (l(), p(D, {
331
+ e.tableReloading ? y("", !0) : (l(), c(E, {
326
332
  key: 0,
327
333
  ref: "onlineTreeTableRef",
328
334
  isTreeTable: !0,
@@ -343,158 +349,154 @@ function yo(e, T, m, i, k, y) {
343
349
  clickToRowSelect: !1,
344
350
  scroll: e.tableScroll,
345
351
  onTableRedo: e.reload,
346
- class: ze({ "j-table-force-nowrap": e.enableScrollBar }),
352
+ class: je({ "j-table-force-nowrap": e.enableScrollBar }),
347
353
  onChange: e.handleChangeInTable
348
354
  }, {
349
355
  tableTitle: a(() => [
350
- e.buttonSwitch.add ? (l(), p(r, {
356
+ e.buttonSwitch.add ? (l(), c(s, {
351
357
  key: 0,
352
358
  preIcon: "ant-design:plus-outlined",
353
359
  type: "primary",
354
360
  onClick: e.handleAdd
355
361
  }, {
356
362
  default: a(() => [
357
- C("新增")
363
+ T("新增")
358
364
  ]),
359
365
  _: 1
360
- }, 8, ["onClick"])) : g("", !0),
361
- e.buttonSwitch.import ? (l(), p(r, {
366
+ }, 8, ["onClick"])) : y("", !0),
367
+ e.buttonSwitch.export ? (l(), c(s, {
362
368
  key: 1,
363
- preIcon: "ant-design:import-outlined",
364
- type: "primary",
365
- onClick: e.onImportExcel
366
- }, {
367
- default: a(() => [
368
- C("导入")
369
- ]),
370
- _: 1
371
- }, 8, ["onClick"])) : g("", !0),
372
- e.buttonSwitch.export ? (l(), p(r, {
373
- key: 2,
374
369
  preIcon: "ant-design:export-outlined",
375
370
  type: "primary",
376
371
  onClick: e.onExportExcel
377
372
  }, {
378
373
  default: a(() => [
379
- C(" 导出")
374
+ T(" 导出")
380
375
  ]),
381
376
  _: 1
382
- }, 8, ["onClick"])) : g("", !0),
383
- e.cgTopButtonList && e.cgTopButtonList.length > 0 ? (l(!0), S(P, { key: 3 }, je(e.cgTopButtonList, (o, w) => (l(), S(P, null, [
384
- o.optType == "js" ? (l(), p(r, {
385
- key: "cgbtn" + w,
386
- onClick: (u) => e.cgButtonJsHandler(o.buttonCode),
377
+ }, 8, ["onClick"])) : y("", !0),
378
+ e.cgTopButtonList && e.cgTopButtonList.length > 0 ? (l(!0), h(P, { key: 2 }, Ue(e.cgTopButtonList, (o, u) => (l(), h(P, null, [
379
+ o.optType == "js" ? (l(), c(s, {
380
+ key: "cgbtn" + u,
381
+ onClick: (r) => e.cgButtonJsHandler(o.buttonCode),
387
382
  type: "primary",
388
383
  preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
389
384
  }, {
390
385
  default: a(() => [
391
- C(E(o.buttonName), 1)
386
+ T(D(o.buttonName), 1)
392
387
  ]),
393
388
  _: 2
394
- }, 1032, ["onClick", "preIcon"])) : o.optType == "action" ? (l(), p(r, {
395
- key: "cgbtn" + w,
396
- onClick: (u) => e.cgButtonActionHandler(o.buttonCode),
389
+ }, 1032, ["onClick", "preIcon"])) : o.optType == "action" ? (l(), c(s, {
390
+ key: "cgbtn" + u,
391
+ onClick: (r) => e.cgButtonActionHandler(o.buttonCode),
397
392
  type: "primary",
398
393
  preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
399
394
  }, {
400
395
  default: a(() => [
401
- C(E(o.buttonName), 1)
396
+ T(D(o.buttonName), 1)
402
397
  ]),
403
398
  _: 2
404
- }, 1032, ["onClick", "preIcon"])) : g("", !0)
405
- ], 64))), 256)) : g("", !0),
406
- e.buttonSwitch.batch_delete ? Ue((l(), p(r, {
407
- key: 4,
399
+ }, 1032, ["onClick", "preIcon"])) : y("", !0)
400
+ ], 64))), 256)) : y("", !0),
401
+ e.buttonSwitch.batch_delete ? We((l(), c(s, {
402
+ key: 3,
408
403
  preIcon: "ant-design:delete-outlined",
409
404
  onClick: e.handleBatchDelete
410
405
  }, {
411
406
  default: a(() => [
412
- C(" 批量删除")
407
+ T(" 批量删除")
413
408
  ]),
414
409
  _: 1
415
410
  }, 8, ["onClick"])), [
416
- [We, e.selectedKeys.length > 0]
417
- ]) : g("", !0),
418
- e.buttonSwitch.super_query ? (l(), p(s, {
419
- key: 5,
411
+ [Ge, e.selectedKeys.length > 0]
412
+ ]) : y("", !0),
413
+ e.buttonSwitch.super_query ? (l(), c(d, {
414
+ key: 4,
420
415
  ref: "superQueryButtonRef",
421
416
  online: "",
422
417
  status: e.superQueryStatus,
423
418
  onSearch: e.handleSuperQuery
424
- }, null, 8, ["status", "onSearch"])) : g("", !0)
419
+ }, null, 8, ["status", "onSearch"])) : y("", !0)
425
420
  ]),
426
- fileSlot: a(({ text: o }) => [
427
- o ? (l(), p(r, {
421
+ fileSlot: a(({ text: o, record: u, column: r }) => [
422
+ o ? (l(), c(s, {
428
423
  key: 1,
429
424
  ghost: !0,
430
425
  type: "primary",
431
426
  preIcon: "ant-design:download",
432
427
  size: "small",
433
- onClick: (w) => e.downloadRowFile(o)
428
+ onClick: (O) => e.downloadRowFile(o, u, r, e.ID)
434
429
  }, {
435
430
  default: a(() => [
436
- C(" 下载 ")
431
+ T(" 下载 ")
437
432
  ]),
438
433
  _: 2
439
- }, 1032, ["onClick"])) : (l(), S("span", co, "无文件"))
434
+ }, 1032, ["onClick"])) : (l(), h("span", go, "无文件"))
440
435
  ]),
441
436
  imgSlot: a(({ text: o }) => [
442
- o ? (l(), S("img", {
437
+ o ? (l(), h("img", {
443
438
  key: 1,
444
439
  src: e.getImgView(o),
445
440
  alt: "图片不存在",
446
441
  class: "online-cell-image",
447
- onClick: (w) => e.viewOnlineCellImage(o)
448
- }, null, 8, ho)) : (l(), S("span", go, "无图片"))
442
+ onClick: (u) => e.viewOnlineCellImage(o)
443
+ }, null, 8, fo)) : (l(), h("span", ho, "无图片"))
449
444
  ]),
450
- htmlSlot: a(({ text: o }) => [
451
- _("div", { innerHTML: o }, null, 8, fo)
445
+ htmlSlot: a(({ text: o, column: u, record: r }) => [
446
+ u.fieldHref ? (l(), h("a", {
447
+ key: 0,
448
+ innerHTML: o,
449
+ onClick: (O) => e.handleClickFieldHref(u.fieldHref, r)
450
+ }, null, 8, Co)) : (l(), h("div", {
451
+ key: 1,
452
+ innerHTML: o
453
+ }, null, 8, yo))
452
454
  ]),
453
455
  pcaSlot: a(({ text: o }) => [
454
- _("div", {
456
+ q("div", {
455
457
  title: e.getPcaText(o)
456
- }, E(e.getPcaText(o)), 9, Co)
458
+ }, D(e.getPcaText(o)), 9, wo)
457
459
  ]),
458
- dateSlot: a(({ text: o }) => [
459
- _("span", null, E(e.getFormatDate(o)), 1)
460
+ dateSlot: a(({ text: o, column: u }) => [
461
+ q("span", null, D(e.getFormatDate(o, u)), 1)
460
462
  ]),
461
463
  action: a(({ record: o }) => [
462
- f(h, {
464
+ C(f, {
463
465
  actions: e.getActions(o),
464
466
  dropDownActions: e.getTreeDropDownActions(o)
465
467
  }, null, 8, ["actions", "dropDownActions"])
466
468
  ]),
467
469
  _: 1
468
470
  }, 8, ["expandedRowKeys", "onExpandedRowsChange", "onExpand", "loading", "columns", "dataSource", "pagination", "rowSelection", "actionColumn", "scroll", "onTableRedo", "class", "onChange"])),
469
- f(v, {
471
+ C(v, {
470
472
  id: e.ID,
471
473
  onRegister: e.registerModal,
472
474
  onSuccess: e.handlerFormSuccess,
473
475
  onFormConfig: e.handleFormConfig
474
476
  }, null, 8, ["id", "onRegister", "onSuccess", "onFormConfig"]),
475
- f(A, {
477
+ C(L, {
476
478
  onRegister: e.registerImportModal,
477
479
  url: e.importUrl(),
478
480
  onOk: e.reload,
479
481
  online: ""
480
482
  }, null, 8, ["onRegister", "url", "onOk"]),
481
- f(R, Ge(e.hrefComponent.model, Xe(e.hrefComponent.on)), {
483
+ C(F, Xe(e.hrefComponent.model, Ye(e.hrefComponent.on)), {
482
484
  default: a(() => [
483
- (l(), p(Ye(e.hrefComponent.is), Ze(xe(e.hrefComponent.params)), null, 16))
485
+ (l(), c(Ze(e.hrefComponent.is), xe(eo(e.hrefComponent.params)), null, 16))
484
486
  ]),
485
487
  _: 1
486
488
  }, 16),
487
- f(L, {
489
+ C(A, {
488
490
  onRegister: e.registerCustomModal,
489
491
  onSuccess: e.reload
490
492
  }, null, 8, ["onRegister", "onSuccess"]),
491
- f(O, {
493
+ C(M, {
492
494
  id: e.ID,
493
495
  onRegister: e.registerDetailModal
494
496
  }, null, 8, ["id", "onRegister"])
495
497
  ]);
496
498
  }
497
- const Ln = /* @__PURE__ */ uo(po, [["render", yo]]);
499
+ const $n = /* @__PURE__ */ po(mo, [["render", bo]]);
498
500
  export {
499
- Ln as default
501
+ $n as default
500
502
  };