@jeecg/online 3.5.3-vite4 → 3.6.2-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/{AuthButtonConfig-2f71787c.mjs → AuthButtonConfig-244ec09f.mjs} +1 -1
  2. package/{AuthButtonTree-d73bccf5.mjs → AuthButtonTree-3aa0ed49.mjs} +1 -1
  3. package/{AuthDataConfig-32cf23d2.mjs → AuthDataConfig-83891eea.mjs} +1 -1
  4. package/{AuthDataTree-03d62d3f.mjs → AuthDataTree-94e026e3.mjs} +1 -1
  5. package/{AuthFieldConfig-b1217a0c.mjs → AuthFieldConfig-6b21915c.mjs} +1 -1
  6. package/{AuthFieldTree-888e04a9.mjs → AuthFieldTree-69864163.mjs} +1 -1
  7. package/{AuthManagerDrawer-f127b8a2.mjs → AuthManagerDrawer-300dd4e4.mjs} +4 -4
  8. package/{AuthSetterModal-37da78ed.mjs → AuthSetterModal-a414fb35.mjs} +58 -52
  9. package/{CgformCopyList-3adab58f.mjs → CgformCopyList-14b76108.mjs} +42 -39
  10. package/CgformModal-eccfc38e.mjs +611 -0
  11. package/{CgreportModal-77ec8c17.mjs → CgreportModal-2065f5a9.mjs} +2 -1
  12. package/{CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs → CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs} +170 -171
  13. package/{CheckDictTable-414313f2.mjs → CheckDictTable-134cbb83.mjs} +3 -3
  14. package/{CodeFileListModal-4831ce3d.mjs → CodeFileListModal-a6d3290d.mjs} +2 -2
  15. package/{CodeFileViewModal-5990dac4.mjs → CodeFileViewModal-373e8058.mjs} +2 -2
  16. package/{CodeGeneratorModal-7df9e25d.mjs → CodeGeneratorModal-f08a89cd.mjs} +5 -6
  17. package/{CustomButtonList-1c9bd859.mjs → CustomButtonList-02e3d897.mjs} +2 -2
  18. package/{DBAttributeTable-cd1c41e5.mjs → DBAttributeTable-370de07b.mjs} +2 -2
  19. package/{DbToOnlineModal-dc5d2030.mjs → DbToOnlineModal-9f13956f.mjs} +35 -35
  20. package/{DetailForm-e4538e7a.mjs → DetailForm-424638eb.mjs} +179 -163
  21. package/{EnhanceJavaModal-7f53d2ca.mjs → EnhanceJavaModal-f63aa2d3.mjs} +17 -13
  22. package/{EnhanceJsHistory-c30805ce.mjs → EnhanceJsHistory-352b46b1.mjs} +1 -1
  23. package/EnhanceJsModal-05c73a59.mjs +311 -0
  24. package/{EnhanceSqlModal-33a94c83.mjs → EnhanceSqlModal-5e4ae84f.mjs} +55 -46
  25. package/{ExtendConfigModal-60f2cf86.mjs → ExtendConfigModal-1dde390a.mjs} +2 -2
  26. package/FieldExtendJsonModal-a70a9ccd.mjs +219 -0
  27. package/FileSelectModal-9a02560b.mjs +103 -0
  28. package/{ForeignKeyTable-cb1abd1d.mjs → ForeignKeyTable-6a843c4b.mjs} +2 -2
  29. package/{IndexTable-4e94cd1f.mjs → IndexTable-f8af9d44.mjs} +2 -2
  30. package/JModalTip-33c7dc44.mjs +49 -0
  31. package/{JOnlineSearchSelect-5608a5cf.mjs → JOnlineSearchSelect-c287af12.mjs} +17 -16
  32. package/{LeftDepart-ca7a7375.mjs → LeftDepart-fa85523d.mjs} +1 -1
  33. package/{LeftRole-d0fa8398.mjs → LeftRole-8b8dfe21.mjs} +1 -1
  34. package/{LeftUser-0c88c240.mjs → LeftUser-dc24ef2f.mjs} +1 -1
  35. package/{LinkTableConfigModal-77d7c0b9.mjs → LinkTableConfigModal-d4fbdef2.mjs} +23 -23
  36. package/{LinkTableFieldConfigModal-c5689ab0.mjs → LinkTableFieldConfigModal-787bc55c.mjs} +44 -46
  37. package/LinkTableListPiece-8499a318.mjs +34 -0
  38. package/{ModalFormDemo-0eeea994.mjs → ModalFormDemo-977a49eb.mjs} +1 -1
  39. package/OnlCgformErpList-db45e22b.mjs +454 -0
  40. package/OnlCgformErpSubTable-54b50eec.mjs +403 -0
  41. package/OnlCgformInnerSubTable-fbca73e0.mjs +253 -0
  42. package/OnlCgformInnerTableList-782eaf04.mjs +444 -0
  43. package/OnlCgformTabList-a9e1e36a.mjs +395 -0
  44. package/OnlineAutoList-0583a910.mjs +479 -0
  45. package/{OnlineAutoModal-2a146238.mjs → OnlineAutoModal-510991eb.mjs} +59 -58
  46. package/{OnlineAutoTreeList-f8d0e100.mjs → OnlineAutoTreeList-89265688.mjs} +158 -153
  47. package/{OnlineCustomModal-456a85a6.mjs → OnlineCustomModal-518ad33c.mjs} +67 -66
  48. package/{OnlineDetailModal-f967f080.mjs → OnlineDetailModal-9675390d.mjs} +40 -39
  49. package/OnlineForm-1fa2d893.mjs +750 -0
  50. package/{OnlineFormDetail-1b216792.mjs → OnlineFormDetail-0e7294ca.mjs} +56 -55
  51. package/OnlineQueryForm-1bfc8320.mjs +386 -0
  52. package/{OnlineSearchFormItem-7c2ea9ed.mjs → OnlineSearchFormItem-0cc85a8a.mjs} +83 -87
  53. package/{OnlineSelectCascade-c7baf52b.mjs → OnlineSelectCascade-4265c95d.mjs} +31 -32
  54. package/{OnlineSubFormDetail-0aa4966c.mjs → OnlineSubFormDetail-f0d2c016.mjs} +53 -50
  55. package/OnlineTabAutoModal-6f636ee2.mjs +254 -0
  56. package/OnlineTabDetailModal-7356d3a8.mjs +223 -0
  57. package/OnlineTabForm-512d3951.mjs +766 -0
  58. package/OnlineTabFormDetail-5a70219d.mjs +324 -0
  59. package/{PageAttributeTable-811185fd.mjs → PageAttributeTable-965dc58e.mjs} +20 -20
  60. package/{ProcessOnlineForm-27be6f6f.mjs → ProcessOnlineForm-67558898.mjs} +39 -38
  61. package/{QueryTable-4ba771ef.mjs → QueryTable-eb9a5b21.mjs} +2 -2
  62. package/README.md +5 -2
  63. package/{SuperQuery-3821f984.mjs → SuperQuery-5d1ca957.mjs} +171 -173
  64. package/{SuperQueryValComponent-471110b5.mjs → SuperQueryValComponent-7ad86d4b.mjs} +1 -1
  65. package/SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs +101 -0
  66. package/cgformState-d9f8ec42.mjs +28 -0
  67. package/constant-754f1a9d.mjs +9 -0
  68. package/index-0e3ab3af.mjs +56 -0
  69. package/{index-074b92e5.mjs → index-49508cad.mjs} +4 -3
  70. package/index-b7a05eef.mjs +1496 -0
  71. package/main.index.js +1 -1
  72. package/package.json +1 -1
  73. package/style.css +1 -1
  74. package/useCgformList-423282b7.mjs +400 -0
  75. package/useCustomHook-acb00837.mjs +53 -0
  76. package/useExtendComponent-325fe3f1.mjs +3926 -0
  77. package/useListButton-cdbab702.mjs +676 -0
  78. package/useOnlinePopEvent-687070b7.mjs +19 -0
  79. package/useOnlineTest-e4bd8be3.mjs +42 -0
  80. package/{useSchemas-fc8d97ce.mjs → useSchemas-0433a403.mjs} +129 -109
  81. package/{useTableSync-dc333087.mjs → useTableSync-774c3774.mjs} +17 -13
  82. package/CgformModal-6938d8c2.mjs +0 -613
  83. package/EnhanceJsModal-0b133341.mjs +0 -233
  84. package/FieldExtendJsonModal-48f7d67f.mjs +0 -220
  85. package/FileSelectModal-64aaf623.mjs +0 -91
  86. package/JModalTip-abe1515a.mjs +0 -46
  87. package/LinkTableListPiece-34266919.mjs +0 -34
  88. package/OnlCgformErpList-7a0388d8.mjs +0 -425
  89. package/OnlCgformErpSubTable-fc6ade76.mjs +0 -388
  90. package/OnlineAutoList-85e6a30d.mjs +0 -472
  91. package/OnlineForm-630a22c2.mjs +0 -778
  92. package/OnlineQueryForm-1c5949a7.mjs +0 -378
  93. package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +0 -101
  94. package/constant-fe20103a.mjs +0 -6
  95. package/index-6a09a912.mjs +0 -58
  96. package/index-9d32ae88.mjs +0 -313
  97. package/useCgformList-2d6a5955.mjs +0 -388
  98. package/useExtendComponent-48d37d9b.mjs +0 -3919
  99. package/useListButton-cef1371a.mjs +0 -656
  100. package/useOnlinePopEvent-e9a042f8.mjs +0 -19
  101. package/useOnlineTest-0df0ae86.mjs +0 -43
@@ -1,37 +1,37 @@
1
1
  var R = Object.defineProperty;
2
- var w = Object.getOwnPropertySymbols;
2
+ var F = Object.getOwnPropertySymbols;
3
3
  var q = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
4
- var T = (n, o, t) => o in n ? R(n, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[o] = t, k = (n, o) => {
5
- for (var t in o || (o = {}))
6
- q.call(o, t) && T(n, t, o[t]);
7
- if (w)
8
- for (var t of w(o))
9
- I.call(o, t) && T(n, t, o[t]);
10
- return n;
4
+ var w = (o, a, t) => a in o ? R(o, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[a] = t, T = (o, a) => {
5
+ for (var t in a || (a = {}))
6
+ q.call(a, t) && w(o, t, a[t]);
7
+ if (F)
8
+ for (var t of F(a))
9
+ I.call(a, t) && w(o, t, a[t]);
10
+ return o;
11
11
  };
12
- var p = (n, o, t) => new Promise((i, s) => {
13
- var r = (a) => {
12
+ var p = (o, a, t) => new Promise((i, s) => {
13
+ var r = (n) => {
14
14
  try {
15
- d(t.next(a));
15
+ d(t.next(n));
16
16
  } catch (f) {
17
17
  s(f);
18
18
  }
19
- }, c = (a) => {
19
+ }, c = (n) => {
20
20
  try {
21
- d(t.throw(a));
21
+ d(t.throw(n));
22
22
  } catch (f) {
23
23
  s(f);
24
24
  }
25
- }, d = (a) => a.done ? i(a.value) : Promise.resolve(a.value).then(r, c);
26
- d((t = t.apply(n, o)).next());
25
+ }, d = (n) => n.done ? i(n.value) : Promise.resolve(n.value).then(r, c);
26
+ d((t = t.apply(o, a)).next());
27
27
  });
28
28
  import { BasicModal as P, useModalInner as H } from "/@/components/Modal";
29
- import { ref as b, resolveComponent as h, openBlock as J, createBlock as K, mergeProps as N, withCtx as x, createVNode as y } from "vue";
29
+ import { ref as b, resolveComponent as h, openBlock as J, createBlock as K, mergeProps as N, withCtx as k, createVNode as x } from "vue";
30
30
  import { BasicForm as $, useForm as j } from "/@/components/Form/index";
31
31
  import { defHttp as G } from "/@/utils/http/axios";
32
32
  import { omit as z } from "lodash-es";
33
33
  import { useMessage as D } from "/@/hooks/web/useMessage";
34
- import { _ as E } from "./index-6a09a912.mjs";
34
+ import { _ as E } from "./index-0e3ab3af.mjs";
35
35
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
36
36
  import "vue-router";
37
37
  const Q = {
@@ -41,16 +41,16 @@ const Q = {
41
41
  BasicModal: P,
42
42
  BasicForm: $
43
43
  },
44
- setup(n, { emit: o }) {
44
+ setup(o, { emit: a }) {
45
45
  const t = b(!1), i = b([]), s = b([]);
46
46
  let r = {}, c = {};
47
- const { createMessage: d } = D(), [a, { closeModal: f }] = H((e) => p(this, null, function* () {
48
- console.log("data", e), c = k({}, e.record), r = e.tableAndFieldsMap, yield C(), yield _({ dictTable: e.record.dictTable }), setTimeout(() => p(this, null, function* () {
47
+ const { createMessage: d } = D(), [n, { closeModal: f }] = H((e) => p(this, null, function* () {
48
+ c = T({}, e.record), r = e.tableAndFieldsMap, yield y(), yield _({ dictTable: e.record.dictTable }), setTimeout(() => p(this, null, function* () {
49
49
  let l = z(e.record, "dictTable");
50
- yield _(l), yield S();
50
+ yield _(l), yield B();
51
51
  }), 200);
52
52
  }));
53
- function C() {
53
+ function y() {
54
54
  return p(this, null, function* () {
55
55
  let e = Object.keys(r);
56
56
  if (!e || e.length == 0)
@@ -66,7 +66,7 @@ const Q = {
66
66
  }
67
67
  });
68
68
  }
69
- function M(e) {
69
+ function C(e) {
70
70
  return p(this, null, function* () {
71
71
  if (e) {
72
72
  const { table: l, fields: m } = r[e];
@@ -74,21 +74,19 @@ const Q = {
74
74
  d.warning("请先完善字段[" + e + "]关联记录的配置");
75
75
  return;
76
76
  }
77
- const L = "/online/cgform/field/listByHeadCode", g = yield G.get({ url: L, params: { headCode: l } });
77
+ const V = "/online/cgform/field/listByHeadCode", g = yield G.get({ url: V, params: { headCode: l } });
78
78
  if (g && g.length > 0) {
79
- let F = g.map((u) => ({
79
+ let L = g.map((u) => ({
80
80
  text: u.dbFieldTxt,
81
81
  value: u.dbFieldName
82
- }));
83
- console.log("字段字典", F);
84
- let A = m.split(",");
85
- s.value = F.filter((u) => A.indexOf(u.value) > 0);
82
+ })), A = m.split(",");
83
+ s.value = L.filter((u) => A.indexOf(u.value) > 0);
86
84
  } else
87
85
  s.value = [];
88
86
  }
89
87
  });
90
88
  }
91
- const O = [
89
+ const M = [
92
90
  {
93
91
  label: "rowKey",
94
92
  field: "rowKey",
@@ -114,7 +112,7 @@ const Q = {
114
112
  onChange: (m) => p(this, null, function* () {
115
113
  c.dictText && (yield e.setFieldsValue({
116
114
  dictText: ""
117
- }), yield e.clearValidate()), M(m);
115
+ }), yield e.clearValidate()), C(m);
118
116
  })
119
117
  })
120
118
  },
@@ -132,28 +130,28 @@ const Q = {
132
130
  }
133
131
  }
134
132
  }
135
- ], [v, { validate: B, setFieldsValue: _, clearValidate: S }] = j({
136
- schemas: O,
133
+ ], [O, { validate: v, setFieldsValue: _, clearValidate: B }] = j({
134
+ schemas: M,
137
135
  showActionButtonGroup: !1,
138
136
  labelAlign: "right"
139
137
  });
140
- function V() {
138
+ function S() {
141
139
  return p(this, null, function* () {
142
- const e = yield B();
143
- console.log("handlesub", e), o("success", e), f();
140
+ const e = yield v();
141
+ a("success", e), f();
144
142
  });
145
143
  }
146
144
  return {
147
- registerModal: a,
145
+ registerModal: n,
148
146
  spinningLoading: t,
149
- registerForm: v,
150
- handleSubmit: V
147
+ registerForm: O,
148
+ handleSubmit: S
151
149
  };
152
150
  }
153
151
  };
154
- function U(n, o, t, i, s, r) {
155
- const c = h("BasicForm"), d = h("a-spin"), a = h("BasicModal");
156
- return J(), K(a, N({ wrapClassName: "link-table-field-config-modal" }, n.$attrs, {
152
+ function U(o, a, t, i, s, r) {
153
+ const c = h("BasicForm"), d = h("a-spin"), n = h("BasicModal");
154
+ return J(), K(n, N({ wrapClassName: "link-table-field-config-modal" }, o.$attrs, {
157
155
  title: "他表字段配置",
158
156
  onRegister: i.registerModal,
159
157
  keyboard: "",
@@ -161,10 +159,10 @@ function U(n, o, t, i, s, r) {
161
159
  cancelText: "关闭",
162
160
  onOk: i.handleSubmit
163
161
  }), {
164
- default: x(() => [
165
- y(d, { spinning: i.spinningLoading }, {
166
- default: x(() => [
167
- y(c, { onRegister: i.registerForm }, null, 8, ["onRegister"])
162
+ default: k(() => [
163
+ x(d, { spinning: i.spinningLoading }, {
164
+ default: k(() => [
165
+ x(c, { onRegister: i.registerForm }, null, 8, ["onRegister"])
168
166
  ]),
169
167
  _: 1
170
168
  }, 8, ["spinning"])
@@ -0,0 +1,34 @@
1
+ import { propTypes as o } from "/@/utils/propTypes";
2
+ import { openBlock as a, createElementBlock as s, createElementVNode as l, toDisplayString as p } from "vue";
3
+ import { _ as c } from "./index-0e3ab3af.mjs";
4
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
5
+ import "/@/hooks/web/useMessage";
6
+ import "vue-router";
7
+ const d = {
8
+ name: "LinkTableListPiece",
9
+ props: {
10
+ text: o.string.def(""),
11
+ id: o.string.def("")
12
+ },
13
+ emits: ["tab"],
14
+ setup(n, { emit: e }) {
15
+ function i(t) {
16
+ t == null || t.stopPropagation(), t == null || t.preventDefault(), e("tab", n.id);
17
+ }
18
+ return {
19
+ handleClick: i
20
+ };
21
+ }
22
+ };
23
+ function _(n, e, i, t, m, f) {
24
+ return a(), s("div", {
25
+ class: "link-table-piece",
26
+ onClick: e[0] || (e[0] = (...r) => t.handleClick && t.handleClick(...r))
27
+ }, [
28
+ l("span", null, p(i.text), 1)
29
+ ]);
30
+ }
31
+ const v = /* @__PURE__ */ c(d, [["render", _], ["__scopeId", "data-v-ade036b6"]]);
32
+ export {
33
+ v as default
34
+ };
@@ -2,7 +2,7 @@ import { defineComponent as i, resolveComponent as p, openBlock as a, createElem
2
2
  import { BasicForm as d, useForm as u } from "/@/components/Form/index";
3
3
  import { defHttp as f } from "/@/utils/http/axios";
4
4
  import { pick as _ } from "lodash-es";
5
- import { _ as g } from "./index-6a09a912.mjs";
5
+ import { _ as g } from "./index-0e3ab3af.mjs";
6
6
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
7
7
  import "/@/hooks/web/useMessage";
8
8
  import "vue-router";
@@ -0,0 +1,454 @@
1
+ var T = (K, _, d) => new Promise((b, S) => {
2
+ var w = (i) => {
3
+ try {
4
+ u(d.next(i));
5
+ } catch (h) {
6
+ S(h);
7
+ }
8
+ }, L = (i) => {
9
+ try {
10
+ u(d.throw(i));
11
+ } catch (h) {
12
+ S(h);
13
+ }
14
+ }, u = (i) => i.done ? b(i.value) : Promise.resolve(i.value).then(w, L);
15
+ u((d = d.apply(K, _)).next());
16
+ });
17
+ import { ref as k, watch as $, resolveComponent as I, openBlock as l, createElementBlock as m, createElementVNode as E, createVNode as c, unref as e, createBlock as s, normalizeClass as Ne, withCtx as r, createTextVNode as g, createCommentVNode as p, Fragment as F, renderList as j, toDisplayString as M, withDirectives as $e, vShow as je, mergeProps as Ve, toHandlers as qe, resolveDynamicComponent as Ue, normalizeProps as Ge, guardReactiveProps as We } from "vue";
18
+ import { BasicTable as Xe, TableAction as Ye } from "/@/components/Table";
19
+ import { useMessage as Ze } from "/@/hooks/web/useMessage";
20
+ import eo from "./OnlineAutoModal-510991eb.mjs";
21
+ import oo from "./OnlineCustomModal-518ad33c.mjs";
22
+ import V from "./OnlineDetailModal-9675390d.mjs";
23
+ import to from "/@/components/Form/src/jeecg/components/JImportModal.vue";
24
+ import { u as no, a as io } from "./useListButton-cdbab702.mjs";
25
+ import { u as lo, a as ro, O as ao, g as so } from "./useExtendComponent-325fe3f1.mjs";
26
+ import co from "./OnlineQueryForm-1bfc8320.mjs";
27
+ import uo from "./SuperQuery-5d1ca957.mjs";
28
+ import { u as po } from "./useOnlinePopEvent-687070b7.mjs";
29
+ import mo from "./OnlCgformErpSubTable-54b50eec.mjs";
30
+ import { E as q } from "./constant-754f1a9d.mjs";
31
+ import { cloneDeep as go } from "lodash-es";
32
+ import "/@/components/Modal";
33
+ import "./OnlineForm-1fa2d893.mjs";
34
+ import "/@/components/Form/index";
35
+ import "/@/utils/http/axios";
36
+ import "/@/utils";
37
+ import "/@/components/Loading";
38
+ import "/@/components/jeecg/JVxeTable/types";
39
+ import "/@/utils/auth";
40
+ import "@ant-design/icons-vue";
41
+ import "/@/hooks/core/useContext";
42
+ import "/@/utils/mitt";
43
+ import "./useCustomHook-acb00837.mjs";
44
+ import "/@/utils/cache";
45
+ import "/@/utils/common/compUtils";
46
+ import "/@/store/modules/user";
47
+ import "./index-0e3ab3af.mjs";
48
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
49
+ import "vue-router";
50
+ import "/@/components/jeecg/comment/CommentPanel.vue";
51
+ import "./OnlineFormDetail-0e7294ca.mjs";
52
+ import "./DetailForm-424638eb.mjs";
53
+ import "/@/utils/propTypes";
54
+ import "/@/utils/dict";
55
+ import "/@/utils/dict/JDictSelectUtil";
56
+ import "/@/utils/dict/index";
57
+ import "/@/api/common/api";
58
+ import "/@/components/Form/src/utils/Area";
59
+ import "/@/components/Preview/index";
60
+ import "/@/components/Markdown";
61
+ import "./OnlineSubFormDetail-f0d2c016.mjs";
62
+ import "/@/router";
63
+ import "/@/hooks/core/onMountedOrActivated";
64
+ import "/@/store/modules/multipleTab";
65
+ import "./cgformState-d9f8ec42.mjs";
66
+ import "pinia";
67
+ import "/@/store";
68
+ import "ant-design-vue";
69
+ import "/@/hooks/system/useMethods";
70
+ import "/@/components/Form/src/componentMap";
71
+ import "/@/components/Form/src/jeecg/components/JUpload";
72
+ import "/@/views/system/user/user.api";
73
+ import "/@/utils/desform/customExpression";
74
+ import "/@/store/modules/permission";
75
+ import "/@/hooks/system/useListPage";
76
+ import "./LinkTableListPiece-8499a318.mjs";
77
+ import "./OnlineSelectCascade-4265c95d.mjs";
78
+ import "./JModalTip-33c7dc44.mjs";
79
+ import "/@/hooks/web/useAppInject";
80
+ import "@vueuse/core";
81
+ import "./SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs";
82
+ import "/@/utils/is";
83
+ const fo = { class: "p-2 cgformErpList" }, yo = { class: "content" }, _o = {
84
+ key: 0,
85
+ style: { "font-size": "12px", "font-style": "italic" }
86
+ }, bo = {
87
+ key: 0,
88
+ style: { "font-size": "12px", "font-style": "italic" }
89
+ }, ho = ["src", "onClick"], Co = ["innerHTML"], vo = ["title"], Jt = {
90
+ __name: "OnlCgformErpList",
91
+ setup(K) {
92
+ const _ = k([]), d = k(0), b = k(null), { createMessage: S } = Ze(), w = k({}), L = (t, n) => {
93
+ w.value[t] = n;
94
+ }, {
95
+ ID: u,
96
+ onlineTableContext: i,
97
+ onlineQueryFormOuter: h,
98
+ loading: O,
99
+ reload: f,
100
+ dataSource: Q,
101
+ pagination: U,
102
+ handleSpecialConfig: G,
103
+ getColumnList: W,
104
+ handleChangeInTable: X,
105
+ loadData: Y,
106
+ superQueryButtonRef: x,
107
+ superQueryStatus: Z,
108
+ handleSuperQuery: ee,
109
+ onlineExtConfigJson: J,
110
+ handleFormConfig: oe,
111
+ registerCustomModal: te,
112
+ tableReloading: ne
113
+ } = no({ themeTemplate: q });
114
+ if (!u.value)
115
+ throw S.warning("地址错误, 配置ID不存在!"), new Error("地址错误, 配置ID不存在!");
116
+ let { initCgEnhanceJs: ie } = lo(i);
117
+ const {
118
+ buttonSwitch: C,
119
+ cgLinkButtonList: ko,
120
+ cgTopButtonList: B,
121
+ importUrl: le,
122
+ registerModal: re,
123
+ handleAdd: ae,
124
+ handleEdit: So,
125
+ handleBatchDelete: se,
126
+ registerImportModal: ce,
127
+ onImportExcel: ue,
128
+ onExportExcel: pe,
129
+ cgButtonJsHandler: de,
130
+ cgButtonActionHandler: me,
131
+ cgButtonLinkHandler: wo,
132
+ handleSubmitFlow: Ro,
133
+ getDropDownActions: ge,
134
+ getActions: fe,
135
+ initButtonList: ye,
136
+ initButtonSwitch: _e,
137
+ registerDetailModal: be,
138
+ registerBpmModal: To
139
+ } = io(i, J, {
140
+ singleDelCallback: (t) => {
141
+ Array.isArray(i.selectedRowKeys) && i.selectedRowKeys.includes(t) && i.clearSelectedRow();
142
+ },
143
+ editClickCallback: (t, n) => {
144
+ Array.isArray(i.selectedRowKeys) && i.selectedRowKeys.includes(t) && n.stopPropagation();
145
+ }
146
+ }), D = k(!1);
147
+ function he() {
148
+ return T(this, null, function* () {
149
+ try {
150
+ D.value = !0, yield pe();
151
+ } finally {
152
+ setTimeout(() => D.value = !1, 1500);
153
+ }
154
+ });
155
+ }
156
+ const {
157
+ columns: Ce,
158
+ actionColumn: ve,
159
+ selectedKeys: v,
160
+ rowSelection: ke,
161
+ enableScrollBar: Se,
162
+ tableScroll: we,
163
+ downloadRowFile: Re,
164
+ getImgView: Te,
165
+ getPcaText: H,
166
+ getFormatDate: Ie,
167
+ handleColumnResult: Ee,
168
+ hrefComponent: R,
169
+ viewOnlineCellImage: Me,
170
+ hrefMainTableId: Le,
171
+ registerOnlineHrefModal: Oe,
172
+ registerPopModal: xe,
173
+ openPopModal: Be,
174
+ onlinePopModalRef: De,
175
+ popTableId: z
176
+ } = ro(i, J);
177
+ $(
178
+ v,
179
+ (t) => {
180
+ var n;
181
+ (n = v.value) != null && n.length ? b.value = Q.value.find((a) => a.id === v.value[0]) : b.value = null;
182
+ },
183
+ {
184
+ immediate: !0
185
+ }
186
+ ), $(
187
+ u,
188
+ () => {
189
+ Pe();
190
+ },
191
+ { immediate: !0 }
192
+ );
193
+ function Pe() {
194
+ return T(this, null, function* () {
195
+ O.value = !0;
196
+ let t = yield W(q);
197
+ Ae(t.main), _.value = t.subList, yield Y(), O.value = !1, i.execButtonEnhance("setup");
198
+ });
199
+ }
200
+ function Ae(t) {
201
+ let n = ie(t.enhanceJs);
202
+ i.EnhanceJS = n, ye(t.cgButtonList), _e(t.hideColumns), Ee(t, "radio"), G(t);
203
+ }
204
+ function Fe(t) {
205
+ i.queryParam = t, f({ mode: "search" });
206
+ }
207
+ function Ke() {
208
+ return T(this, arguments, function* (t = {}) {
209
+ yield so(x);
210
+ const n = go(t), { properties: a = {} } = n;
211
+ Object.entries(a).forEach(([P, A]) => {
212
+ A.view == "table" && delete a[P];
213
+ }), x.value.init(n);
214
+ });
215
+ }
216
+ function Qe(t) {
217
+ z.value = t.id;
218
+ let n = {
219
+ title: t.describe
220
+ };
221
+ t.record && t.record.id && (n.record = t.record, n.isUpdate = !0), Be(!0, n);
222
+ }
223
+ po(Qe);
224
+ const Je = (t, n) => {
225
+ ee(t, n), v.value = [];
226
+ };
227
+ return (t, n) => {
228
+ var N;
229
+ const a = I("a-button"), P = I("a-tab-pane"), A = I("a-tabs"), He = I("a-modal");
230
+ return l(), m("div", fo, [
231
+ E("div", yo, [
232
+ c(co, {
233
+ ref_key: "onlineQueryFormOuter",
234
+ ref: h,
235
+ id: e(u),
236
+ onSearch: Fe,
237
+ onLoaded: Ke
238
+ }, null, 8, ["id"]),
239
+ e(ne) ? p("", !0) : (l(), s(e(Xe), {
240
+ key: 0,
241
+ ref: "onlineTable",
242
+ rowKey: "jeecg_row_key",
243
+ canResize: !0,
244
+ bordered: !0,
245
+ showIndexColumn: !1,
246
+ loading: e(O),
247
+ columns: e(Ce),
248
+ dataSource: e(Q),
249
+ pagination: e(U),
250
+ rowSelection: e(ke),
251
+ actionColumn: e(ve),
252
+ showTableSetting: !0,
253
+ clickToRowSelect: !0,
254
+ scroll: e(we),
255
+ onTableRedo: e(f),
256
+ class: Ne({ "j-table-force-nowrap": e(Se) }),
257
+ onChange: e(X)
258
+ }, {
259
+ tableTitle: r(() => [
260
+ e(C).add ? (l(), s(a, {
261
+ key: 0,
262
+ preIcon: "ant-design:plus-outlined",
263
+ type: "primary",
264
+ onClick: e(ae)
265
+ }, {
266
+ default: r(() => [
267
+ g("新增")
268
+ ]),
269
+ _: 1
270
+ }, 8, ["onClick"])) : p("", !0),
271
+ e(C).import ? (l(), s(a, {
272
+ key: 1,
273
+ preIcon: "ant-design:import-outlined",
274
+ type: "primary",
275
+ onClick: e(ue)
276
+ }, {
277
+ default: r(() => [
278
+ g("导入")
279
+ ]),
280
+ _: 1
281
+ }, 8, ["onClick"])) : p("", !0),
282
+ e(C).export ? (l(), s(a, {
283
+ key: 2,
284
+ preIcon: "ant-design:export-outlined",
285
+ type: "primary",
286
+ loading: D.value,
287
+ onClick: he
288
+ }, {
289
+ default: r(() => [
290
+ g(" 导出")
291
+ ]),
292
+ _: 1
293
+ }, 8, ["loading"])) : p("", !0),
294
+ e(B) && e(B).length > 0 ? (l(!0), m(F, { key: 3 }, j(e(B), (o, y) => (l(), m(F, null, [
295
+ o.optType == "js" ? (l(), s(a, {
296
+ key: "cgbtn" + y,
297
+ onClick: (ze) => e(de)(o.buttonCode),
298
+ type: "primary",
299
+ preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
300
+ }, {
301
+ default: r(() => [
302
+ g(M(o.buttonName), 1)
303
+ ]),
304
+ _: 2
305
+ }, 1032, ["onClick", "preIcon"])) : o.optType == "action" ? (l(), s(a, {
306
+ key: "cgbtn" + y,
307
+ onClick: (ze) => e(me)(o.buttonCode),
308
+ type: "primary",
309
+ preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
310
+ }, {
311
+ default: r(() => [
312
+ g(M(o.buttonName), 1)
313
+ ]),
314
+ _: 2
315
+ }, 1032, ["onClick", "preIcon"])) : p("", !0)
316
+ ], 64))), 256)) : p("", !0),
317
+ e(C).batch_delete ? $e((l(), s(a, {
318
+ key: 4,
319
+ preIcon: "ant-design:delete-outlined",
320
+ onClick: e(se)
321
+ }, {
322
+ default: r(() => [
323
+ g(" 批量删除")
324
+ ]),
325
+ _: 1
326
+ }, 8, ["onClick"])), [
327
+ [je, e(v).length > 0]
328
+ ]) : p("", !0),
329
+ e(C).super_query ? (l(), s(uo, {
330
+ key: 5,
331
+ ref_key: "superQueryButtonRef",
332
+ ref: x,
333
+ online: "",
334
+ status: e(Z),
335
+ onSearch: Je
336
+ }, null, 8, ["status"])) : p("", !0)
337
+ ]),
338
+ fileSlot: r(({ text: o }) => [
339
+ o ? (l(), s(a, {
340
+ key: 1,
341
+ ghost: !0,
342
+ type: "primary",
343
+ preIcon: "ant-design:download",
344
+ size: "small",
345
+ onClick: (y) => e(Re)(o)
346
+ }, {
347
+ default: r(() => [
348
+ g(" 下载 ")
349
+ ]),
350
+ _: 2
351
+ }, 1032, ["onClick"])) : (l(), m("span", _o, "无文件"))
352
+ ]),
353
+ imgSlot: r(({ text: o }) => [
354
+ o ? (l(), m("img", {
355
+ key: 1,
356
+ src: e(Te)(o),
357
+ alt: "图片不存在",
358
+ class: "online-cell-image",
359
+ onClick: (y) => e(Me)(o)
360
+ }, null, 8, ho)) : (l(), m("span", bo, "无图片"))
361
+ ]),
362
+ htmlSlot: r(({ text: o }) => [
363
+ E("div", { innerHTML: o }, null, 8, Co)
364
+ ]),
365
+ pcaSlot: r(({ text: o }) => [
366
+ E("div", {
367
+ title: e(H)(o)
368
+ }, M(e(H)(o)), 9, vo)
369
+ ]),
370
+ dateSlot: r(({ text: o }) => [
371
+ E("span", null, M(e(Ie)(o)), 1)
372
+ ]),
373
+ action: r(({ record: o }) => [
374
+ c(e(Ye), {
375
+ actions: e(fe)(o),
376
+ dropDownActions: e(ge)(o)
377
+ }, null, 8, ["actions", "dropDownActions"])
378
+ ]),
379
+ _: 1
380
+ }, 8, ["loading", "columns", "dataSource", "pagination", "rowSelection", "actionColumn", "scroll", "onTableRedo", "class", "onChange"])),
381
+ (N = _.value) != null && N.length ? (l(), s(A, {
382
+ key: 1,
383
+ animated: "",
384
+ activeKey: d.value,
385
+ "onUpdate:activeKey": n[0] || (n[0] = (o) => d.value = o),
386
+ style: { margin: "10px" }
387
+ }, {
388
+ default: r(() => [
389
+ (l(!0), m(F, null, j(_.value, (o, y) => (l(), s(P, {
390
+ tab: o.description,
391
+ key: y,
392
+ forceRender: ""
393
+ }, {
394
+ default: r(() => [
395
+ c(mo, {
396
+ data: o,
397
+ mainTableSelectedRowRcord: b.value,
398
+ onGetSource: L
399
+ }, null, 8, ["data", "mainTableSelectedRowRcord"])
400
+ ]),
401
+ _: 2
402
+ }, 1032, ["tab"]))), 128))
403
+ ]),
404
+ _: 1
405
+ }, 8, ["activeKey"])) : p("", !0),
406
+ c(eo, {
407
+ id: e(u),
408
+ subTableSource: w.value,
409
+ onRegister: e(re),
410
+ onSuccess: e(f),
411
+ onFormConfig: e(oe)
412
+ }, null, 8, ["id", "subTableSource", "onRegister", "onSuccess", "onFormConfig"]),
413
+ c(V, {
414
+ id: e(u),
415
+ onRegister: e(be)
416
+ }, null, 8, ["id", "onRegister"]),
417
+ c(to, {
418
+ onRegister: e(ce),
419
+ url: e(le)(),
420
+ onOk: e(f),
421
+ online: ""
422
+ }, null, 8, ["onRegister", "url", "onOk"]),
423
+ c(He, Ve(e(R).model, qe(e(R).on)), {
424
+ default: r(() => [
425
+ (l(), s(Ue(e(R).is), Ge(We(e(R).params)), null, 16))
426
+ ]),
427
+ _: 1
428
+ }, 16),
429
+ c(oo, {
430
+ onRegister: e(te),
431
+ onSuccess: e(f)
432
+ }, null, 8, ["onRegister", "onSuccess"]),
433
+ c(V, {
434
+ id: e(Le),
435
+ onRegister: e(Oe),
436
+ defaultFullscreen: !1
437
+ }, null, 8, ["id", "onRegister"]),
438
+ c(ao, {
439
+ ref_key: "onlinePopModalRef",
440
+ ref: De,
441
+ id: e(z),
442
+ onRegister: e(xe),
443
+ onSuccess: e(f),
444
+ request: "",
445
+ topTip: ""
446
+ }, null, 8, ["id", "onRegister", "onSuccess"])
447
+ ])
448
+ ]);
449
+ };
450
+ }
451
+ };
452
+ export {
453
+ Jt as default
454
+ };