@jeecg/online 3.6.2-beta → 3.7.1-RC

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 (127) hide show
  1. package/AiModal-6de335e3.mjs +84 -0
  2. package/AuthButtonConfig-89763932.mjs +154 -0
  3. package/{AuthButtonTree-3aa0ed49.mjs → AuthButtonTree-2d87d0b3.mjs} +6 -5
  4. package/AuthDataConfig-5c3a8e6b.mjs +238 -0
  5. package/{AuthDataTree-94e026e3.mjs → AuthDataTree-dd7a1240.mjs} +6 -6
  6. package/AuthFieldConfig-9f6fa06c.mjs +245 -0
  7. package/{AuthFieldTree-69864163.mjs → AuthFieldTree-e326fc38.mjs} +2 -2
  8. package/AuthManagerDrawer-76f15e8d.mjs +119 -0
  9. package/AuthSetterModal-f5d2e87f.mjs +274 -0
  10. package/{CgformCopyList-14b76108.mjs → CgformCopyList-365b3e8f.mjs} +49 -46
  11. package/CgformModal-21c5c387.mjs +671 -0
  12. package/{CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs → CgreportModal-edefa8e3.mjs} +153 -129
  13. package/CheckDictTable-1bc8322d.mjs +229 -0
  14. package/{CodeFileListModal-a6d3290d.mjs → CodeFileListModal-24601898.mjs} +5 -4
  15. package/CodeFileViewModal-2fe911f4.mjs +253 -0
  16. package/CodeGeneratorModal-f09fe903.mjs +282 -0
  17. package/CustomButtonList-f07bc695.mjs +397 -0
  18. package/{DBAttributeTable-370de07b.mjs → DBAttributeTable-285d40db.mjs} +118 -89
  19. package/DbToOnlineModal-5dcb67c3.mjs +169 -0
  20. package/DetailForm-deecbf3d.mjs +486 -0
  21. package/{EnhanceJavaModal-f63aa2d3.mjs → EnhanceJavaModal-45c66cd5.mjs} +3 -3
  22. package/{EnhanceJsHistory-352b46b1.mjs → EnhanceJsHistory-fab3102e.mjs} +2 -2
  23. package/EnhanceJsModal-175357a1.mjs +548 -0
  24. package/{EnhanceSqlModal-5e4ae84f.mjs → EnhanceSqlModal-7ea1b300.mjs} +3 -3
  25. package/ExtendConfigModal-a89ae052.mjs +117 -0
  26. package/FieldExtendJsonModal-32135634.mjs +277 -0
  27. package/{FileSelectModal-9a02560b.mjs → FileSelectModal-1643c8b9.mjs} +1 -1
  28. package/{ForeignKeyTable-6a843c4b.mjs → ForeignKeyTable-7f7e28a7.mjs} +3 -3
  29. package/{IndexTable-f8af9d44.mjs → IndexTable-cdcc2b48.mjs} +28 -20
  30. package/{JModalTip-33c7dc44.mjs → JModalTip-b055ab60.mjs} +1 -1
  31. package/JOnlineSearchSelect-22aae934.mjs +128 -0
  32. package/{LeftDepart-fa85523d.mjs → LeftDepart-d5615ed9.mjs} +1 -1
  33. package/{LeftRole-8b8dfe21.mjs → LeftRole-2ed8a2bf.mjs} +1 -1
  34. package/{LeftUser-dc24ef2f.mjs → LeftUser-22baa378.mjs} +3 -3
  35. package/LinkTableConfigModal-9242d750.mjs +240 -0
  36. package/{LinkTableFieldConfigModal-787bc55c.mjs → LinkTableFieldConfigModal-24adc50c.mjs} +41 -41
  37. package/{LinkTableListPiece-8499a318.mjs → LinkTableListPiece-f3a8e0d7.mjs} +1 -1
  38. package/{ModalFormDemo-977a49eb.mjs → ModalFormDemo-711418db.mjs} +1 -1
  39. package/OnlCgformErpList-58acdfa0.mjs +470 -0
  40. package/OnlCgformErpSubTable-9b1e1938.mjs +426 -0
  41. package/OnlCgformInnerSubTable-6c23781f.mjs +265 -0
  42. package/OnlCgformInnerTableList-4b5e14ed.mjs +458 -0
  43. package/OnlCgformTabList-019ad753.mjs +408 -0
  44. package/OnlineAutoList-48589d09.mjs +493 -0
  45. package/OnlineAutoModal-c2928847.mjs +239 -0
  46. package/{OnlineAutoTreeList-89265688.mjs → OnlineAutoTreeList-3baa1d00.mjs} +207 -204
  47. package/{OnlineCustomModal-518ad33c.mjs → OnlineCustomModal-9e17b6ce.mjs} +16 -12
  48. package/{OnlineDetailModal-9675390d.mjs → OnlineDetailModal-d5895734.mjs} +74 -64
  49. package/OnlineForm-9f1153ba.mjs +985 -0
  50. package/OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs +1 -0
  51. package/OnlineFormDetail-022ca117.mjs +342 -0
  52. package/OnlineFormUrlAdd-9715d70a.mjs +115 -0
  53. package/OnlineFormUrlDetail-8f864b1a.mjs +119 -0
  54. package/OnlineFormUrlEdit-ac985b36.mjs +113 -0
  55. package/OnlineFormUrlSuccess-3dfc54ab.mjs +59 -0
  56. package/OnlineQueryForm-eedb9a60.mjs +466 -0
  57. package/{OnlineSearchFormItem-0cc85a8a.mjs → OnlineSearchFormItem-6c557343.mjs} +2 -2
  58. package/{OnlineSelectCascade-4265c95d.mjs → OnlineSelectCascade-05c40fef.mjs} +1 -1
  59. package/{OnlineSubFormDetail-f0d2c016.mjs → OnlineSubFormDetail-58e896ce.mjs} +30 -28
  60. package/OnlineTabAutoModal-47b18ad6.mjs +306 -0
  61. package/{OnlineTabDetailModal-7356d3a8.mjs → OnlineTabDetailModal-82de1465.mjs} +22 -20
  62. package/OnlineTabForm-27655c83.mjs +817 -0
  63. package/OnlineTabFormDetail-8d0c40c0.mjs +327 -0
  64. package/PageAttributeTable-25e3b7da.mjs +466 -0
  65. package/{ProcessOnlineForm-67558898.mjs → ProcessOnlineForm-148632fe.mjs} +66 -56
  66. package/QueryTable-f7bfca7f.mjs +147 -0
  67. package/SetSwitchOptions-b2af757f.mjs +62 -0
  68. package/SuperQuery-a8592995.mjs +967 -0
  69. package/auth.api-ea1d33d4.mjs +41 -0
  70. package/auth.data-511e5197.mjs +217 -0
  71. package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
  72. package/constant-fa63bd66.mjs +10 -0
  73. package/{enhance.data-efc7e155.mjs → enhance.data-a67572e1.mjs} +11 -10
  74. package/index-1d1a6e56.mjs +57 -0
  75. package/{index-b7a05eef.mjs → index-30e0e923.mjs} +396 -362
  76. package/{index-49508cad.mjs → index-f30613d1.mjs} +29 -27
  77. package/main.index.js +1 -1
  78. package/package.json +1 -1
  79. package/style.css +1 -1
  80. package/useCgformList-f41d4dc1.mjs +426 -0
  81. package/useExtendComponent-dcae5c78.mjs +4399 -0
  82. package/useFormUrl-2ee1a82d.mjs +24 -0
  83. package/useListButton-bfac4ecf.mjs +697 -0
  84. package/{useSchemas-0433a403.mjs → useSchemas-a9c75b0f.mjs} +191 -101
  85. package/useTableSync-d7e9f18d.mjs +89 -0
  86. package/AuthButtonConfig-244ec09f.mjs +0 -125
  87. package/AuthDataConfig-83891eea.mjs +0 -212
  88. package/AuthFieldConfig-6b21915c.mjs +0 -139
  89. package/AuthManagerDrawer-300dd4e4.mjs +0 -114
  90. package/AuthSetterModal-a414fb35.mjs +0 -267
  91. package/CgformModal-eccfc38e.mjs +0 -611
  92. package/CgreportModal-2065f5a9.mjs +0 -13
  93. package/CheckDictTable-134cbb83.mjs +0 -211
  94. package/CodeFileViewModal-373e8058.mjs +0 -244
  95. package/CodeGeneratorModal-f08a89cd.mjs +0 -233
  96. package/CustomButtonList-02e3d897.mjs +0 -363
  97. package/DbToOnlineModal-9f13956f.mjs +0 -160
  98. package/DetailForm-424638eb.mjs +0 -462
  99. package/EnhanceJsModal-05c73a59.mjs +0 -311
  100. package/ExtendConfigModal-1dde390a.mjs +0 -111
  101. package/FieldExtendJsonModal-a70a9ccd.mjs +0 -219
  102. package/JOnlineSearchSelect-c287af12.mjs +0 -95
  103. package/LinkTableConfigModal-d4fbdef2.mjs +0 -230
  104. package/OnlCgformErpList-db45e22b.mjs +0 -454
  105. package/OnlCgformErpSubTable-54b50eec.mjs +0 -403
  106. package/OnlCgformInnerSubTable-fbca73e0.mjs +0 -253
  107. package/OnlCgformInnerTableList-782eaf04.mjs +0 -444
  108. package/OnlCgformTabList-a9e1e36a.mjs +0 -395
  109. package/OnlineAutoList-0583a910.mjs +0 -479
  110. package/OnlineAutoModal-510991eb.mjs +0 -207
  111. package/OnlineForm-1fa2d893.mjs +0 -750
  112. package/OnlineFormDetail-0e7294ca.mjs +0 -297
  113. package/OnlineQueryForm-1bfc8320.mjs +0 -386
  114. package/OnlineTabAutoModal-6f636ee2.mjs +0 -254
  115. package/OnlineTabForm-512d3951.mjs +0 -766
  116. package/OnlineTabFormDetail-5a70219d.mjs +0 -324
  117. package/PageAttributeTable-965dc58e.mjs +0 -404
  118. package/QueryTable-eb9a5b21.mjs +0 -115
  119. package/SuperQuery-5d1ca957.mjs +0 -843
  120. package/auth.api-d3a6c4b3.mjs +0 -39
  121. package/auth.data-8be5c9e3.mjs +0 -141
  122. package/constant-754f1a9d.mjs +0 -9
  123. package/index-0e3ab3af.mjs +0 -56
  124. package/useCgformList-423282b7.mjs +0 -400
  125. package/useExtendComponent-325fe3f1.mjs +0 -3926
  126. package/useListButton-cdbab702.mjs +0 -676
  127. package/useTableSync-774c3774.mjs +0 -87
@@ -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-510991eb.mjs";
20
- import qe from "./OnlineDetailModal-9675390d.mjs";
21
- import Ne from "./OnlineCustomModal-518ad33c.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-cdbab702.mjs";
25
- import { u as to, a as io, g as lo } from "./useExtendComponent-325fe3f1.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-c2928847.mjs";
20
+ import Ne from "./OnlineDetailModal-d5895734.mjs";
21
+ import Ve from "./OnlineCustomModal-9e17b6ce.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-bfac4ecf.mjs";
25
+ import { u as io, a as lo, g as ro } from "./useExtendComponent-dcae5c78.mjs";
26
26
  import { defHttp as ao } from "/@/utils/http/axios";
27
- import ro from "./OnlineQueryForm-1bfc8320.mjs";
28
- import so from "./SuperQuery-5d1ca957.mjs";
29
- import { a as q } from "./constant-754f1a9d.mjs";
30
- import { _ as uo } from "./index-0e3ab3af.mjs";
27
+ import so from "./OnlineQueryForm-eedb9a60.mjs";
28
+ import uo from "./SuperQuery-a8592995.mjs";
29
+ import { b as N } from "./constant-fa63bd66.mjs";
30
+ import { _ as po } from "./index-1d1a6e56.mjs";
31
31
  import "/@/components/Modal";
32
- import "./OnlineForm-1fa2d893.mjs";
32
+ import "./OnlineForm-9f1153ba.mjs";
33
33
  import "/@/components/Form/index";
34
34
  import "lodash-es";
35
35
  import "/@/utils";
@@ -43,88 +43,93 @@ 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-0e7294ca.mjs";
48
- import "./DetailForm-424638eb.mjs";
46
+ import "/@/hooks/web/useAppInject";
47
+ import "/@/utils/is";
48
+ import "/@/store/modules/permission";
49
+ import "./OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs";
50
+ import "/@/components/Form/src/componentMap";
49
51
  import "/@/utils/propTypes";
50
- import "/@/utils/dict";
52
+ import "/@/components/Form/src/jeecg/components/JUpload";
53
+ import "/@/views/system/user/user.api";
54
+ import "/@/utils/desform/customExpression";
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-f3a8e0d7.mjs";
61
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
62
+ import "/@/api/common/api";
63
+ import "/@/assets/images/placeholderImage.png";
64
+ import "./OnlineSelectCascade-05c40fef.mjs";
65
+ import "./JModalTip-b055ab60.mjs";
66
+ import "ant-design-vue";
67
+ import "@vueuse/core";
68
+ import "/@/components/jeecg/comment/CommentPanel.vue";
69
+ import "./OnlineFormDetail-022ca117.mjs";
70
+ import "./DetailForm-deecbf3d.mjs";
71
+ import "/@/utils/dict";
72
+ import "/@/utils/dict/index";
56
73
  import "/@/components/Markdown";
57
- import "./OnlineSubFormDetail-f0d2c016.mjs";
58
- import "vue-router";
74
+ import "./OnlineSubFormDetail-58e896ce.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-8499a318.mjs";
74
- import "./OnlineSelectCascade-4265c95d.mjs";
75
- import "./JModalTip-33c7dc44.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 "/@/utils/index";
85
+ import "/@/hooks/web/useDesign";
86
+ const mo = {
82
87
  name: "DefaultOnlineList",
83
88
  components: {
84
89
  BasicTable: Je,
85
- TableAction: He,
86
- OnlineAutoModal: Pe,
87
- JImportModal: eo,
88
- OnlineQueryForm: ro,
89
- OnlineSuperQuery: so,
90
- OnlineCustomModal: Ne,
91
- OnlineDetailModal: qe
90
+ TableAction: Ke,
91
+ OnlineAutoModal: qe,
92
+ JImportModal: oo,
93
+ OnlineQueryForm: so,
94
+ OnlineSuperQuery: uo,
95
+ OnlineCustomModal: Ve,
96
+ OnlineDetailModal: Ne
92
97
  },
93
98
  setup() {
94
- const { createMessage: e } = Ke(), T = K(), {
99
+ const { createMessage: e } = Pe(), S = K(), {
95
100
  ID: m,
96
101
  onlineTableContext: i,
97
102
  onlineQueryFormOuter: k,
98
- loading: y,
99
- reload: c,
100
- dataSource: r,
101
- pagination: s,
102
- handleSpecialConfig: h,
103
- getColumnList: D,
103
+ loading: w,
104
+ reload: g,
105
+ dataSource: s,
106
+ pagination: d,
107
+ handleSpecialConfig: f,
108
+ getColumnList: E,
104
109
  handleChangeInTable: v,
105
- loadData: A,
106
- superQueryButtonRef: R,
107
- superQueryStatus: L,
108
- handleSuperQuery: O,
110
+ loadData: L,
111
+ superQueryButtonRef: F,
112
+ superQueryStatus: A,
113
+ handleSuperQuery: M,
109
114
  registerCustomModal: o,
110
- getTreeDataByResult: w,
111
- expandedRowKeys: u,
112
- handleExpandedRowsChange: N,
115
+ getTreeDataByResult: u,
116
+ expandedRowKeys: r,
117
+ handleExpandedRowsChange: O,
113
118
  tableReloading: V,
114
- onlineExtConfigJson: Q,
119
+ onlineExtConfigJson: _,
115
120
  handleFormConfig: z
116
- } = oo();
121
+ } = no();
117
122
  if (!m.value)
118
123
  throw e.warning("地址错误, 配置ID不存在!"), new Error("地址错误, 配置ID不存在!");
119
124
  i.isTree(!0);
120
- let { initCgEnhanceJs: j } = to(i);
125
+ let { initCgEnhanceJs: j } = io(i);
121
126
  const {
122
127
  buttonSwitch: U,
123
128
  cgLinkButtonList: W,
124
129
  cgTopButtonList: G,
125
130
  importUrl: X,
126
131
  registerModal: Y,
127
- handleAdd: $,
132
+ handleAdd: Q,
128
133
  handleEdit: Z,
129
134
  handleBatchDelete: x,
130
135
  registerImportModal: ee,
@@ -133,13 +138,13 @@ const po = {
133
138
  cgButtonJsHandler: te,
134
139
  cgButtonActionHandler: ie,
135
140
  cgButtonLinkHandler: le,
136
- handleSubmitFlow: ae,
137
- getDropDownActions: re,
141
+ handleSubmitFlow: re,
142
+ getDropDownActions: ae,
138
143
  getActions: se,
139
144
  initButtonList: ue,
140
145
  initButtonSwitch: de,
141
146
  registerDetailModal: pe
142
- } = no(i, Q), {
147
+ } = to(i, _), {
143
148
  columns: me,
144
149
  actionColumn: ce,
145
150
  selectedKeys: ge,
@@ -149,108 +154,109 @@ const po = {
149
154
  downloadRowFile: ye,
150
155
  getImgView: we,
151
156
  getPcaText: be,
152
- getFormatDate: Se,
153
- handleColumnResult: Te,
157
+ getFormatDate: Te,
158
+ handleColumnResult: Se,
154
159
  hrefComponent: ke,
155
- viewOnlineCellImage: Re
156
- } = io(i, Q);
157
- Ve(
160
+ viewOnlineCellImage: Fe,
161
+ handleClickFieldHref: Re
162
+ } = lo(i, _);
163
+ ze(
158
164
  m,
159
165
  () => {
160
- Fe();
166
+ Ie();
161
167
  },
162
168
  { immediate: !0 }
163
169
  );
164
- function Fe() {
170
+ function Ie() {
165
171
  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");
172
+ w.value = !0;
173
+ let n = yield E(N);
174
+ Be(n), yield L(), w.value = !1, i.execButtonEnhance("setup");
169
175
  });
170
176
  }
171
- function Ie(n) {
177
+ function Be(n) {
172
178
  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;
179
+ i.EnhanceJS = t, ue(n.cgButtonList), de(n.hideColumns), Se(n), f(n), i.hasChildrenField = n.hasChildrenField, i.pidField = n.pidField;
174
180
  }
175
- function Be(n, t) {
176
- i.queryParam = n, t === !0 ? c({ mode: "search" }) : J();
181
+ function De(n, t) {
182
+ i.queryParam = n, t === !0 ? g({ mode: "search" }) : $();
177
183
  }
178
184
  function Ee(n) {
179
185
  return B(this, null, function* () {
180
- yield lo(R), R.value.init(n);
186
+ yield ro(F), F.value.init(n);
181
187
  });
182
188
  }
183
- function De(n, t) {
184
- let b = u.value;
189
+ function ve(n, t) {
190
+ let b = r.value;
185
191
  if (n) {
186
- if (ve(t.id), t.children.length > 0 && t.children[0].isLoading === !0) {
187
- let F = i.hasChildrenField;
192
+ if (Le(t.id), t.children.length > 0 && t.children[0].isLoading === !0) {
193
+ let R = i.hasChildrenField;
188
194
  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];
195
+ let H = Object.assign({}, { column: _e, order: Qe });
196
+ H[i.pidField] = t.id, H[R] = t[R];
191
197
  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);
198
+ ao.get({ url: $e, params: H }, { isTransformResponse: !1 }).then((I) => {
199
+ I.success ? Number(I.result.total) > 0 ? t.children = u(I.result.records) : (t.children = "", t.hasChildrenField = "0") : e.warning(I.message);
194
200
  }).catch(() => {
195
201
  e.warning("加载子节点失败!");
196
202
  });
197
203
  }
198
204
  } else {
199
- let F = b.indexOf(t.id);
200
- F >= 0 && (u.value = b.splice(F, 1));
205
+ let R = b.indexOf(t.id);
206
+ R >= 0 && (r.value = b.splice(R, 1));
201
207
  }
202
208
  }
203
- function ve(n) {
204
- let t = u.value;
205
- t && t.indexOf(n) < 0 && t.push(n), u.value = t;
209
+ function Le(n) {
210
+ let t = r.value;
211
+ t && t.indexOf(n) < 0 && t.push(n), r.value = t;
206
212
  }
207
- function J() {
213
+ function $() {
208
214
  return B(this, null, function* () {
209
- i.isTree() === !0 && (u.value = [], T.value.collapseAll()), c();
215
+ i.isTree() === !0 && (r.value = [], S.value.collapseAll()), g();
210
216
  });
211
217
  }
212
218
  function Ae(n) {
213
- if (H.value === !0) {
219
+ if (J.value === !0) {
214
220
  let t = n[i.pidField];
215
221
  if (t) {
216
- let b = u.value;
217
- b.indexOf(t) < 0 && b.push(t), u.value = b;
222
+ let b = r.value;
223
+ b.indexOf(t) < 0 && b.push(t), r.value = b;
218
224
  }
219
225
  }
220
- c();
226
+ g();
221
227
  }
222
- const Le = (n) => ({
228
+ const Me = (n) => ({
223
229
  label: "添加下级",
224
230
  onClick: Oe.bind(null, n)
225
- }), H = K(!1);
231
+ }), J = K(!1);
226
232
  function Oe(n) {
227
- H.value = !0;
233
+ J.value = !0;
228
234
  let t = {
229
235
  [i.pidField]: n.id
230
236
  };
231
- $(t);
237
+ Q(t);
232
238
  }
233
- function Me(n) {
234
- let t = re(n, { themeTemplate: q });
235
- return t.unshift(Le(n)), t;
239
+ function He(n) {
240
+ let t = ae(n, { themeTemplate: N });
241
+ return t.unshift(Me(n)), t;
236
242
  }
237
243
  return {
238
244
  ID: m,
239
245
  // 查询区域
240
246
  onlineQueryFormOuter: k,
241
- queryWithCondition: Be,
247
+ queryWithCondition: De,
242
248
  onQueryFormLoaded: Ee,
243
- reload: c,
249
+ reload: g,
244
250
  //高级查询
245
- superQueryButtonRef: R,
246
- superQueryStatus: L,
247
- handleSuperQuery: O,
251
+ superQueryButtonRef: F,
252
+ superQueryStatus: A,
253
+ handleSuperQuery: M,
248
254
  // table区域
249
- loading: y,
255
+ loading: w,
250
256
  columns: me,
251
257
  actionColumn: ce,
252
- dataSource: r,
253
- pagination: s,
258
+ dataSource: s,
259
+ pagination: d,
254
260
  rowSelection: he,
255
261
  selectedKeys: ge,
256
262
  tableScroll: Ce,
@@ -258,7 +264,7 @@ const po = {
258
264
  handleChangeInTable: v,
259
265
  //按钮
260
266
  buttonSwitch: U,
261
- handleAdd: $,
267
+ handleAdd: Q,
262
268
  handleEdit: Z,
263
269
  onImportExcel: oe,
264
270
  onExportExcel: ne,
@@ -272,10 +278,10 @@ const po = {
272
278
  downloadRowFile: ye,
273
279
  getImgView: we,
274
280
  getPcaText: be,
275
- getFormatDate: Se,
281
+ getFormatDate: Te,
276
282
  // 操作列
277
283
  getActions: se,
278
- getTreeDropDownActions: Me,
284
+ getTreeDropDownActions: He,
279
285
  // 弹窗
280
286
  registerModal: Y,
281
287
  registerCustomModal: o,
@@ -284,17 +290,18 @@ const po = {
284
290
  handleFormConfig: z,
285
291
  //其他
286
292
  tableReloading: V,
287
- handleSubmitFlow: ae,
293
+ handleSubmitFlow: re,
288
294
  hrefComponent: ke,
289
- viewOnlineCellImage: Re,
295
+ viewOnlineCellImage: Fe,
290
296
  //树特定的配置
291
- onlineTreeTableRef: T,
297
+ onlineTreeTableRef: S,
292
298
  handlerFormSuccess: Ae,
293
- searchReset: J,
294
- handleExpand: De,
295
- expandedRowKeys: u,
296
- handleExpandedRowsChange: N,
297
- registerDetailModal: pe
299
+ searchReset: $,
300
+ handleExpand: ve,
301
+ expandedRowKeys: r,
302
+ handleExpandedRowsChange: O,
303
+ registerDetailModal: pe,
304
+ handleClickFieldHref: Re
298
305
  };
299
306
  }
300
307
  // 1引入了loadsh console.log(that.simpleDateFormat(new Date().getTime(),'yyyy-MM-dd'));
@@ -306,23 +313,23 @@ const po = {
306
313
  // TODO 积木报表打印地址
307
314
  // const reportPrintUrl = ref('')
308
315
  };
309
- const mo = { class: "p-2" }, co = {
316
+ const co = { class: "p-2" }, go = {
310
317
  key: 0,
311
318
  style: { "font-size": "12px", "font-style": "italic" }
312
- }, go = {
319
+ }, ho = {
313
320
  key: 0,
314
321
  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, {
322
+ }, fo = ["src", "onClick"], Co = ["innerHTML", "onClick"], yo = ["innerHTML"], wo = ["title"];
323
+ function bo(e, S, m, i, k, w) {
324
+ 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");
325
+ return l(), h("div", co, [
326
+ C(g, {
320
327
  ref: "onlineQueryFormOuter",
321
328
  id: e.ID,
322
329
  onSearch: e.queryWithCondition,
323
330
  onLoaded: e.onQueryFormLoaded
324
331
  }, null, 8, ["id", "onSearch", "onLoaded"]),
325
- e.tableReloading ? g("", !0) : (l(), p(D, {
332
+ e.tableReloading ? y("", !0) : (l(), c(E, {
326
333
  key: 0,
327
334
  ref: "onlineTreeTableRef",
328
335
  isTreeTable: !0,
@@ -343,158 +350,154 @@ function yo(e, T, m, i, k, y) {
343
350
  clickToRowSelect: !1,
344
351
  scroll: e.tableScroll,
345
352
  onTableRedo: e.reload,
346
- class: ze({ "j-table-force-nowrap": e.enableScrollBar }),
353
+ class: je({ "j-table-force-nowrap": e.enableScrollBar }),
347
354
  onChange: e.handleChangeInTable
348
355
  }, {
349
356
  tableTitle: a(() => [
350
- e.buttonSwitch.add ? (l(), p(r, {
357
+ e.buttonSwitch.add ? (l(), c(s, {
351
358
  key: 0,
352
359
  preIcon: "ant-design:plus-outlined",
353
360
  type: "primary",
354
361
  onClick: e.handleAdd
355
362
  }, {
356
363
  default: a(() => [
357
- C("新增")
364
+ T("新增")
358
365
  ]),
359
366
  _: 1
360
- }, 8, ["onClick"])) : g("", !0),
361
- e.buttonSwitch.import ? (l(), p(r, {
367
+ }, 8, ["onClick"])) : y("", !0),
368
+ e.buttonSwitch.export ? (l(), c(s, {
362
369
  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
370
  preIcon: "ant-design:export-outlined",
375
371
  type: "primary",
376
372
  onClick: e.onExportExcel
377
373
  }, {
378
374
  default: a(() => [
379
- C(" 导出")
375
+ T(" 导出")
380
376
  ]),
381
377
  _: 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),
378
+ }, 8, ["onClick"])) : y("", !0),
379
+ e.cgTopButtonList && e.cgTopButtonList.length > 0 ? (l(!0), h(P, { key: 2 }, Ue(e.cgTopButtonList, (o, u) => (l(), h(P, null, [
380
+ o.optType == "js" ? (l(), c(s, {
381
+ key: "cgbtn" + u,
382
+ onClick: (r) => e.cgButtonJsHandler(o.buttonCode),
387
383
  type: "primary",
388
384
  preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
389
385
  }, {
390
386
  default: a(() => [
391
- C(E(o.buttonName), 1)
387
+ T(D(o.buttonName), 1)
392
388
  ]),
393
389
  _: 2
394
- }, 1032, ["onClick", "preIcon"])) : o.optType == "action" ? (l(), p(r, {
395
- key: "cgbtn" + w,
396
- onClick: (u) => e.cgButtonActionHandler(o.buttonCode),
390
+ }, 1032, ["onClick", "preIcon"])) : o.optType == "action" ? (l(), c(s, {
391
+ key: "cgbtn" + u,
392
+ onClick: (r) => e.cgButtonActionHandler(o.buttonCode),
397
393
  type: "primary",
398
394
  preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
399
395
  }, {
400
396
  default: a(() => [
401
- C(E(o.buttonName), 1)
397
+ T(D(o.buttonName), 1)
402
398
  ]),
403
399
  _: 2
404
- }, 1032, ["onClick", "preIcon"])) : g("", !0)
405
- ], 64))), 256)) : g("", !0),
406
- e.buttonSwitch.batch_delete ? Ue((l(), p(r, {
407
- key: 4,
400
+ }, 1032, ["onClick", "preIcon"])) : y("", !0)
401
+ ], 64))), 256)) : y("", !0),
402
+ e.buttonSwitch.batch_delete ? We((l(), c(s, {
403
+ key: 3,
408
404
  preIcon: "ant-design:delete-outlined",
409
405
  onClick: e.handleBatchDelete
410
406
  }, {
411
407
  default: a(() => [
412
- C(" 批量删除")
408
+ T(" 批量删除")
413
409
  ]),
414
410
  _: 1
415
411
  }, 8, ["onClick"])), [
416
- [We, e.selectedKeys.length > 0]
417
- ]) : g("", !0),
418
- e.buttonSwitch.super_query ? (l(), p(s, {
419
- key: 5,
412
+ [Ge, e.selectedKeys.length > 0]
413
+ ]) : y("", !0),
414
+ e.buttonSwitch.super_query ? (l(), c(d, {
415
+ key: 4,
420
416
  ref: "superQueryButtonRef",
421
417
  online: "",
422
418
  status: e.superQueryStatus,
423
419
  onSearch: e.handleSuperQuery
424
- }, null, 8, ["status", "onSearch"])) : g("", !0)
420
+ }, null, 8, ["status", "onSearch"])) : y("", !0)
425
421
  ]),
426
- fileSlot: a(({ text: o }) => [
427
- o ? (l(), p(r, {
422
+ fileSlot: a(({ text: o, record: u, column: r }) => [
423
+ o ? (l(), c(s, {
428
424
  key: 1,
429
425
  ghost: !0,
430
426
  type: "primary",
431
427
  preIcon: "ant-design:download",
432
428
  size: "small",
433
- onClick: (w) => e.downloadRowFile(o)
429
+ onClick: (O) => e.downloadRowFile(o, u, r, e.ID)
434
430
  }, {
435
431
  default: a(() => [
436
- C(" 下载 ")
432
+ T(" 下载 ")
437
433
  ]),
438
434
  _: 2
439
- }, 1032, ["onClick"])) : (l(), S("span", co, "无文件"))
435
+ }, 1032, ["onClick"])) : (l(), h("span", go, "无文件"))
440
436
  ]),
441
437
  imgSlot: a(({ text: o }) => [
442
- o ? (l(), S("img", {
438
+ o ? (l(), h("img", {
443
439
  key: 1,
444
440
  src: e.getImgView(o),
445
441
  alt: "图片不存在",
446
442
  class: "online-cell-image",
447
- onClick: (w) => e.viewOnlineCellImage(o)
448
- }, null, 8, ho)) : (l(), S("span", go, "无图片"))
443
+ onClick: (u) => e.viewOnlineCellImage(o)
444
+ }, null, 8, fo)) : (l(), h("span", ho, "无图片"))
449
445
  ]),
450
- htmlSlot: a(({ text: o }) => [
451
- _("div", { innerHTML: o }, null, 8, fo)
446
+ htmlSlot: a(({ text: o, column: u, record: r }) => [
447
+ u.fieldHref ? (l(), h("a", {
448
+ key: 0,
449
+ innerHTML: o,
450
+ onClick: (O) => e.handleClickFieldHref(u.fieldHref, r)
451
+ }, null, 8, Co)) : (l(), h("div", {
452
+ key: 1,
453
+ innerHTML: o
454
+ }, null, 8, yo))
452
455
  ]),
453
456
  pcaSlot: a(({ text: o }) => [
454
- _("div", {
457
+ q("div", {
455
458
  title: e.getPcaText(o)
456
- }, E(e.getPcaText(o)), 9, Co)
459
+ }, D(e.getPcaText(o)), 9, wo)
457
460
  ]),
458
- dateSlot: a(({ text: o }) => [
459
- _("span", null, E(e.getFormatDate(o)), 1)
461
+ dateSlot: a(({ text: o, column: u }) => [
462
+ q("span", null, D(e.getFormatDate(o, u)), 1)
460
463
  ]),
461
464
  action: a(({ record: o }) => [
462
- f(h, {
465
+ C(f, {
463
466
  actions: e.getActions(o),
464
467
  dropDownActions: e.getTreeDropDownActions(o)
465
468
  }, null, 8, ["actions", "dropDownActions"])
466
469
  ]),
467
470
  _: 1
468
471
  }, 8, ["expandedRowKeys", "onExpandedRowsChange", "onExpand", "loading", "columns", "dataSource", "pagination", "rowSelection", "actionColumn", "scroll", "onTableRedo", "class", "onChange"])),
469
- f(v, {
472
+ C(v, {
470
473
  id: e.ID,
471
474
  onRegister: e.registerModal,
472
475
  onSuccess: e.handlerFormSuccess,
473
476
  onFormConfig: e.handleFormConfig
474
477
  }, null, 8, ["id", "onRegister", "onSuccess", "onFormConfig"]),
475
- f(A, {
478
+ C(L, {
476
479
  onRegister: e.registerImportModal,
477
480
  url: e.importUrl(),
478
481
  onOk: e.reload,
479
482
  online: ""
480
483
  }, null, 8, ["onRegister", "url", "onOk"]),
481
- f(R, Ge(e.hrefComponent.model, Xe(e.hrefComponent.on)), {
484
+ C(F, Xe(e.hrefComponent.model, Ye(e.hrefComponent.on)), {
482
485
  default: a(() => [
483
- (l(), p(Ye(e.hrefComponent.is), Ze(xe(e.hrefComponent.params)), null, 16))
486
+ (l(), c(Ze(e.hrefComponent.is), xe(eo(e.hrefComponent.params)), null, 16))
484
487
  ]),
485
488
  _: 1
486
489
  }, 16),
487
- f(L, {
490
+ C(A, {
488
491
  onRegister: e.registerCustomModal,
489
492
  onSuccess: e.reload
490
493
  }, null, 8, ["onRegister", "onSuccess"]),
491
- f(O, {
494
+ C(M, {
492
495
  id: e.ID,
493
496
  onRegister: e.registerDetailModal
494
497
  }, null, 8, ["id", "onRegister"])
495
498
  ]);
496
499
  }
497
- const Ln = /* @__PURE__ */ uo(po, [["render", yo]]);
500
+ const Jn = /* @__PURE__ */ po(mo, [["render", bo]]);
498
501
  export {
499
- Ln as default
502
+ Jn as default
500
503
  };