@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
@@ -18,8 +18,8 @@ import { defineComponent as k, nextTick as B, resolveComponent as h, openBlock a
18
18
  import { BasicModal as U, useModalInner as V } from "/@/components/Modal";
19
19
  import { BasicForm as v, useForm as O } from "/@/components/Form";
20
20
  import { useMessage as Q } from "/@/hooks/web/useMessage";
21
- import { a as b } from "./useSchemas-fc8d97ce.mjs";
22
- import { _ as E } from "./index-6a09a912.mjs";
21
+ import { a as b } from "./useSchemas-0433a403.mjs";
22
+ import { _ as E } from "./index-0e3ab3af.mjs";
23
23
  import "ant-design-vue";
24
24
  import "@ant-design/icons-vue";
25
25
  import "/@/utils/common/compUtils";
@@ -0,0 +1,219 @@
1
+ var C = Object.defineProperty, P = Object.defineProperties;
2
+ var k = Object.getOwnPropertyDescriptors;
3
+ var v = Object.getOwnPropertySymbols;
4
+ var I = Object.prototype.hasOwnProperty, G = Object.prototype.propertyIsEnumerable;
5
+ var w = (o, t, l) => t in o ? C(o, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : o[t] = l, h = (o, t) => {
6
+ for (var l in t || (t = {}))
7
+ I.call(t, l) && w(o, l, t[l]);
8
+ if (v)
9
+ for (var l of v(t))
10
+ G.call(t, l) && w(o, l, t[l]);
11
+ return o;
12
+ }, _ = (o, t) => P(o, k(t));
13
+ var g = (o, t, l) => new Promise((m, n) => {
14
+ var a = (i) => {
15
+ try {
16
+ s(l.next(i));
17
+ } catch (d) {
18
+ n(d);
19
+ }
20
+ }, p = (i) => {
21
+ try {
22
+ s(l.throw(i));
23
+ } catch (d) {
24
+ n(d);
25
+ }
26
+ }, s = (i) => i.done ? m(i.value) : Promise.resolve(i.value).then(a, p);
27
+ s((l = l.apply(o, t)).next());
28
+ });
29
+ import { defineComponent as N, ref as f, reactive as V, toRaw as j, toRefs as K, resolveComponent as b, openBlock as $, createBlock as O, mergeProps as T, withCtx as F, createVNode as L } from "vue";
30
+ import { BasicModal as A, useModalInner as J } from "/@/components/Modal";
31
+ import { BasicForm as D, useForm as H } from "/@/components/Form/index";
32
+ import { pick as W } from "lodash-es";
33
+ import { L as S } from "./constant-754f1a9d.mjs";
34
+ import { _ as q } from "./index-0e3ab3af.mjs";
35
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
36
+ import "/@/hooks/web/useMessage";
37
+ import "vue-router";
38
+ const z = N({
39
+ name: "FieldExtendJsonModal",
40
+ components: {
41
+ BasicModal: A,
42
+ BasicForm: D
43
+ },
44
+ emits: ["success", "register"],
45
+ setup(o, { emit: t }) {
46
+ const l = f(!1);
47
+ function m() {
48
+ n.uploadnum = 0, n.showLength = "", n.popupMulti = !0, n.multiSelect = !0, n.store = "", n.text = "", n.orderRule = "", n.validateError = "", n.labelLength = S;
49
+ }
50
+ const n = V({
51
+ uploadnum: 0,
52
+ showLength: "",
53
+ popupMulti: !0,
54
+ store: "",
55
+ text: "",
56
+ multiSelect: !0,
57
+ orderRule: "",
58
+ validateError: "",
59
+ labelLength: S
60
+ }), a = f(""), p = f(""), s = f("0"), i = [
61
+ {
62
+ label: "rowKey",
63
+ field: "rowKey",
64
+ component: "Input",
65
+ show: !1
66
+ },
67
+ {
68
+ label: "文件上传数量",
69
+ field: "uploadnum",
70
+ component: "InputNumber",
71
+ componentProps: {
72
+ style: {
73
+ width: "100%"
74
+ }
75
+ },
76
+ ifShow: () => a.value === "file" || a.value === "image"
77
+ },
78
+ {
79
+ label: "是否多选",
80
+ field: "popupMulti",
81
+ component: "RadioGroup",
82
+ defaultValue: !0,
83
+ componentProps: {
84
+ options: [
85
+ { label: "否", value: !1 },
86
+ { label: "是", value: !0 }
87
+ ]
88
+ },
89
+ ifShow: () => a.value === "popup"
90
+ },
91
+ {
92
+ label: "是否多选",
93
+ field: "multiSelect",
94
+ component: "RadioGroup",
95
+ defaultValue: !0,
96
+ componentProps: {
97
+ options: [
98
+ { label: "否", value: !1 },
99
+ { label: "是", value: !0 }
100
+ ]
101
+ },
102
+ ifShow: () => a.value === "sel_user" || a.value === "sel_depart"
103
+ },
104
+ {
105
+ label: "存储字段",
106
+ field: "store",
107
+ component: "Input",
108
+ ifShow: () => a.value === "sel_user" || a.value === "sel_depart"
109
+ },
110
+ {
111
+ label: "展示字段",
112
+ field: "text",
113
+ component: "Input",
114
+ ifShow: () => a.value === "sel_user" || a.value === "sel_depart"
115
+ },
116
+ {
117
+ label: "默认排序",
118
+ field: "orderRule",
119
+ component: "RadioGroup",
120
+ defaultValue: "",
121
+ componentProps: {
122
+ options: [
123
+ { label: "降序", value: "desc" },
124
+ { label: "升序", value: "asc" },
125
+ { label: "不默认排序", value: "" }
126
+ ]
127
+ },
128
+ ifShow: () => s.value === "1"
129
+ },
130
+ {
131
+ label: "校验提示",
132
+ field: "validateError",
133
+ component: "Input",
134
+ componentProps: {
135
+ placeholder: "请输入校验提示文本"
136
+ }
137
+ },
138
+ {
139
+ label: "label长度",
140
+ field: "labelLength",
141
+ component: "InputNumber",
142
+ componentProps: {
143
+ placeholder: "请输入label长度"
144
+ }
145
+ },
146
+ {
147
+ label: "是否固定",
148
+ field: "isFixed",
149
+ component: "RadioGroup",
150
+ defaultValue: 0,
151
+ componentProps: {
152
+ options: [
153
+ { label: "是", value: 1 },
154
+ { label: "否", value: 0 }
155
+ ]
156
+ }
157
+ }
158
+ ], [d, { validate: R, setFieldsValue: x, resetFields: y }] = H({
159
+ schemas: i,
160
+ showActionButtonGroup: !1,
161
+ labelAlign: "right",
162
+ labelWidth: 100
163
+ }), [M, { closeModal: E }] = J((e) => g(this, null, function* () {
164
+ if (m(), e.jsonStr) {
165
+ let r = JSON.parse(e.jsonStr);
166
+ Object.keys(r).map((c) => {
167
+ n[c] = r[c];
168
+ });
169
+ }
170
+ a.value = e.fieldShowType, p.value = e.id, s.value = e.sortFlag;
171
+ let u = j(n);
172
+ yield y(), yield x(_(h({}, u), {
173
+ rowKey: e.id
174
+ }));
175
+ }));
176
+ function B() {
177
+ return g(this, null, function* () {
178
+ let e = yield R(), u = a.value, r = {};
179
+ u === "file" || u === "image" ? e.uploadnum && e.uploadnum > 0 && (r.uploadnum = e.uploadnum) : u === "textarea" || u === "text" ? e.showLength && e.showLength > 0 && (r.showLength = e.showLength) : u === "sel_user" || u === "sel_depart" ? r = W(e, "store", "text", "multiSelect") : u === "popup" && (r.popupMulti = e.popupMulti), s.value === "1" && e.orderRule && (r.orderRule = e.orderRule), e.validateError && (r.validateError = e.validateError), e.labelLength && (r.labelLength = e.labelLength), e.isFixed && (r.isFixed = e.isFixed);
180
+ for (let c in r)
181
+ r[c] === "" && delete r[c];
182
+ t("success", r, e.rowKey), E();
183
+ });
184
+ }
185
+ return h({
186
+ spinningLoading: l,
187
+ registerModal: M,
188
+ registerForm: d,
189
+ fieldShowType: a,
190
+ rowKey: p,
191
+ handleSubmit: B
192
+ }, K(n));
193
+ }
194
+ });
195
+ function Q(o, t, l, m, n, a) {
196
+ const p = b("BasicForm"), s = b("a-spin"), i = b("BasicModal");
197
+ return $(), O(i, T({ wrapClassName: "field-extend-config-modal" }, o.$attrs, {
198
+ title: "扩展参数配置",
199
+ onRegister: o.registerModal,
200
+ keyboard: "",
201
+ canFullscreen: !1,
202
+ cancelText: "关闭",
203
+ onOk: o.handleSubmit
204
+ }), {
205
+ default: F(() => [
206
+ L(s, { spinning: o.spinningLoading }, {
207
+ default: F(() => [
208
+ L(p, { onRegister: o.registerForm }, null, 8, ["onRegister"])
209
+ ]),
210
+ _: 1
211
+ }, 8, ["spinning"])
212
+ ]),
213
+ _: 1
214
+ }, 16, ["onRegister", "onOk"]);
215
+ }
216
+ const re = /* @__PURE__ */ q(z, [["render", Q]]);
217
+ export {
218
+ re as default
219
+ };
@@ -0,0 +1,103 @@
1
+ var u = (e, d, o) => new Promise((n, a) => {
2
+ var c = (t) => {
3
+ try {
4
+ l(o.next(t));
5
+ } catch (r) {
6
+ a(r);
7
+ }
8
+ }, i = (t) => {
9
+ try {
10
+ l(o.throw(t));
11
+ } catch (r) {
12
+ a(r);
13
+ }
14
+ }, l = (t) => t.done ? n(t.value) : Promise.resolve(t.value).then(c, i);
15
+ l((o = o.apply(e, d)).next());
16
+ });
17
+ import { defineComponent as R, ref as f, resolveComponent as p, openBlock as h, createBlock as v, withCtx as m, createVNode as g, createElementVNode as k, createTextVNode as D, createCommentVNode as w } from "vue";
18
+ import { defHttp as y } from "/@/utils/http/axios";
19
+ import { BasicModal as B, useModalInner as b } from "/@/components/Modal";
20
+ import { _ as F } from "./index-0e3ab3af.mjs";
21
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
22
+ import "/@/hooks/web/useMessage";
23
+ import "vue-router";
24
+ const E = R({
25
+ name: "FileSelectModal",
26
+ components: { BasicModal: B },
27
+ emits: ["select", "register"],
28
+ setup(e, { emit: d }) {
29
+ const o = f(!0), n = f([]), a = f(""), c = f(!1), [i, { closeModal: l }] = b(() => u(this, null, function* () {
30
+ a.value = "", n.value.length === 0 && _();
31
+ }));
32
+ function t() {
33
+ d("select", a.value), l();
34
+ }
35
+ function r() {
36
+ l();
37
+ }
38
+ function _() {
39
+ return u(this, null, function* () {
40
+ o.value = !0, n.value = yield y.get({
41
+ url: "/online/cgform/head/rootFile"
42
+ /* rootFileUrl */
43
+ }).finally(() => {
44
+ o.value = !1, c.value = !0;
45
+ });
46
+ });
47
+ }
48
+ function S(s) {
49
+ return u(this, null, function* () {
50
+ if (s.dataRef.children)
51
+ return;
52
+ let M = {
53
+ parentPath: s.dataRef.key
54
+ };
55
+ s.dataRef.children = yield y.get({ url: "/online/cgform/head/fileTree", params: M }), n.value = [...n.value];
56
+ });
57
+ }
58
+ function C(s) {
59
+ a.value = s[0];
60
+ }
61
+ return { loading: o, treeData: n, onLoadData: S, onSelect: C, onSubmit: t, onCancel: r, registerModal: i, hanldeRefresh: () => {
62
+ a.value = "", c.value = !1, _();
63
+ }, directoryTreeShow: c };
64
+ }
65
+ });
66
+ const T = { class: "btnArea" };
67
+ function V(e, d, o, n, a, c) {
68
+ const i = p("a-button"), l = p("a-directory-tree"), t = p("a-spin"), r = p("BasicModal");
69
+ return h(), v(r, {
70
+ onRegister: e.registerModal,
71
+ title: "选择目录",
72
+ width: 500,
73
+ onOk: e.onSubmit,
74
+ onCancel: e.onCancel
75
+ }, {
76
+ default: m(() => [
77
+ g(t, { spinning: e.loading }, {
78
+ default: m(() => [
79
+ k("div", T, [
80
+ g(i, { onClick: e.hanldeRefresh }, {
81
+ default: m(() => [
82
+ D("刷新")
83
+ ]),
84
+ _: 1
85
+ }, 8, ["onClick"])
86
+ ]),
87
+ e.directoryTreeShow ? (h(), v(l, {
88
+ key: 0,
89
+ treeData: e.treeData,
90
+ loadData: e.onLoadData,
91
+ onSelect: e.onSelect
92
+ }, null, 8, ["treeData", "loadData", "onSelect"])) : w("", !0)
93
+ ]),
94
+ _: 1
95
+ }, 8, ["spinning"])
96
+ ]),
97
+ _: 1
98
+ }, 8, ["onRegister", "onOk", "onCancel"]);
99
+ }
100
+ const j = /* @__PURE__ */ F(E, [["render", V], ["__scopeId", "data-v-102e9e9f"]]);
101
+ export {
102
+ j as default
103
+ };
@@ -12,8 +12,8 @@ var i = (e, t, o) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writab
12
12
  }, n = (e, t) => m(e, s(t));
13
13
  import { defineComponent as b, ref as f, resolveComponent as y, openBlock as h, createBlock as g, mergeProps as T } from "vue";
14
14
  import { JVxeTypes as l } from "/@/components/jeecg/JVxeTable/types";
15
- import { u as k } from "./useTableSync-dc333087.mjs";
16
- import { _ as w } from "./index-6a09a912.mjs";
15
+ import { u as k } from "./useTableSync-774c3774.mjs";
16
+ import { _ as w } from "./index-0e3ab3af.mjs";
17
17
  import "./cgform.data-cbdd88c3.mjs";
18
18
  import "/@/utils/dict";
19
19
  import "/@/utils/dict/JDictSelectUtil";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as f, ref as b, resolveComponent as g, openBlock as h, createBlock as y, mergeProps as $ } from "vue";
2
2
  import { JVxeTypes as a } from "/@/components/jeecg/JVxeTable/types";
3
- import { u as T } from "./useTableSync-dc333087.mjs";
4
- import { _ as v } from "./index-6a09a912.mjs";
3
+ import { u as T } from "./useTableSync-774c3774.mjs";
4
+ import { _ as v } from "./index-0e3ab3af.mjs";
5
5
  import "./cgform.data-cbdd88c3.mjs";
6
6
  import "/@/utils/dict";
7
7
  import "/@/utils/dict/JDictSelectUtil";
@@ -0,0 +1,49 @@
1
+ import { computed as c, openBlock as n, createElementBlock as l, normalizeClass as p, createElementVNode as t, createCommentVNode as d, pushScopeId as r, popScopeId as _ } from "vue";
2
+ import { useAppInject as m } from "/@/hooks/web/useAppInject";
3
+ import { _ as v } from "./index-0e3ab3af.mjs";
4
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
5
+ import "/@/hooks/web/useMessage";
6
+ import "vue-router";
7
+ const f = {
8
+ name: "JModalTip",
9
+ props: {
10
+ visible: {
11
+ type: Boolean,
12
+ default: !1
13
+ }
14
+ },
15
+ emits: ["save", "cancel"],
16
+ setup(e) {
17
+ const { getIsMobile: o } = m();
18
+ return {
19
+ flag: c(() => e.visible),
20
+ getIsMobile: o
21
+ };
22
+ }
23
+ }, u = (e) => (r("data-v-dc9246f4"), e = e(), _(), e), g = { class: "container" }, I = { class: "outer" }, b = { class: "inner" }, $ = /* @__PURE__ */ u(() => /* @__PURE__ */ t("span", { class: "tip" }, "正在修改表单数据 ···", -1));
24
+ function k(e, o, i, s, M, y) {
25
+ return s.flag ? (n(), l("div", {
26
+ key: 0,
27
+ class: p(["jeecg-update-tip-bar", { mobile: s.getIsMobile }])
28
+ }, [
29
+ t("div", g, [
30
+ t("div", I, [
31
+ t("div", b, [
32
+ $,
33
+ t("div", {
34
+ class: "cancel",
35
+ onClick: o[0] || (o[0] = (a) => e.$emit("cancel"))
36
+ }, "取消"),
37
+ t("div", {
38
+ class: "save",
39
+ onClick: o[1] || (o[1] = (a) => e.$emit("save"))
40
+ }, "保存")
41
+ ])
42
+ ])
43
+ ])
44
+ ], 2)) : d("", !0);
45
+ }
46
+ const j = /* @__PURE__ */ v(f, [["render", k], ["__scopeId", "data-v-dc9246f4"]]);
47
+ export {
48
+ j as default
49
+ };
@@ -1,11 +1,11 @@
1
1
  import { useDebounceFn as v } from "@vueuse/core";
2
2
  import { defHttp as S } from "/@/utils/http/axios";
3
3
  import { useMessage as w } from "/@/hooks/web/useMessage";
4
- import { ref as f, watch as p, resolveComponent as d, openBlock as c, createBlock as m, withCtx as h, createElementBlock as y, Fragment as q, renderList as C, createTextVNode as x, toDisplayString as k } from "vue";
5
- import { _ as O } from "./index-6a09a912.mjs";
4
+ import { ref as d, watch as f, resolveComponent as p, openBlock as c, createBlock as m, withCtx as h, createElementBlock as y, Fragment as C, renderList as x, createTextVNode as k, toDisplayString as O } from "vue";
5
+ import { _ as B } from "./index-0e3ab3af.mjs";
6
6
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
7
7
  import "vue-router";
8
- const { createMessage: B } = w(), D = {
8
+ const { createMessage: I } = w(), q = {
9
9
  name: "JOnlineSearchSelect",
10
10
  props: {
11
11
  placeholder: {
@@ -17,22 +17,23 @@ const { createMessage: B } = w(), D = {
17
17
  type: String,
18
18
  required: !1
19
19
  },
20
- sql: {
20
+ // online CgReport item id
21
+ fieldId: {
21
22
  type: String,
22
23
  required: !0
23
24
  }
24
25
  },
25
26
  emits: ["update:value"],
26
27
  setup(r, { emit: i }) {
27
- let n = f(""), t = f([]);
28
- p(
28
+ let n = d(""), t = d([]);
29
+ f(
29
30
  () => r.value,
30
31
  (e) => {
31
32
  e ? n.value = e : n.value = void 0;
32
33
  },
33
34
  { immediate: !0 }
34
- ), p(
35
- () => r.sql,
35
+ ), f(
36
+ () => r.fieldId,
36
37
  () => {
37
38
  a();
38
39
  },
@@ -42,9 +43,9 @@ const { createMessage: B } = w(), D = {
42
43
  function o(e = "") {
43
44
  let g = {
44
45
  keyword: e
45
- }, _ = "/online/cgreport/api/getReportDictList?sql=" + r.sql;
46
+ }, _ = "/online/cgreport/api/getReportDictList?fieldId=" + r.fieldId;
46
47
  S.get({ url: _, params: g }, { isTransformResponse: !1 }).then((l) => {
47
- l.success ? l.result && l.result.length > 0 ? t.value = l.result : t.value = [] : B.warning(l.message);
48
+ l.success ? l.result && l.result.length > 0 ? t.value = l.result : t.value = [] : I.warning(l.message);
48
49
  });
49
50
  }
50
51
  function s(e) {
@@ -61,8 +62,8 @@ const { createMessage: B } = w(), D = {
61
62
  };
62
63
  }
63
64
  };
64
- function F(r, i, n, t, u, o) {
65
- const s = d("a-select-option"), a = d("a-select");
65
+ function D(r, i, n, t, u, o) {
66
+ const s = p("a-select-option"), a = p("a-select");
66
67
  return c(), m(a, {
67
68
  value: t.selected,
68
69
  placeholder: n.placeholder,
@@ -76,11 +77,11 @@ function F(r, i, n, t, u, o) {
76
77
  allowClear: ""
77
78
  }, {
78
79
  default: h(() => [
79
- (c(!0), y(q, null, C(t.selectOptions, (e) => (c(), m(s, {
80
+ (c(!0), y(C, null, x(t.selectOptions, (e) => (c(), m(s, {
80
81
  key: e.value
81
82
  }, {
82
83
  default: h(() => [
83
- x(k(e.text), 1)
84
+ k(O(e.text), 1)
84
85
  ]),
85
86
  _: 2
86
87
  }, 1024))), 128))
@@ -88,7 +89,7 @@ function F(r, i, n, t, u, o) {
88
89
  _: 1
89
90
  }, 8, ["value", "placeholder", "onSearch", "onChange"]);
90
91
  }
91
- const H = /* @__PURE__ */ O(D, [["render", F]]);
92
+ const E = /* @__PURE__ */ B(q, [["render", D]]);
92
93
  export {
93
- H as default
94
+ E as default
94
95
  };
@@ -16,7 +16,7 @@ var f = (n, r, o) => new Promise((s, c) => {
16
16
  });
17
17
  import { defineComponent as h, ref as u, resolveComponent as m, openBlock as y, createElementBlock as K, createBlock as _, withCtx as D, createVNode as v, normalizeStyle as S, createCommentVNode as k } from "vue";
18
18
  import { queryTreeList as x } from "/@/api/common/api";
19
- import { _ as C } from "./index-6a09a912.mjs";
19
+ import { _ as C } from "./index-0e3ab3af.mjs";
20
20
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
21
21
  import "/@/hooks/web/useMessage";
22
22
  import "vue-router";
@@ -18,7 +18,7 @@ import { defineComponent as g, resolveComponent as _, openBlock as w, createBloc
18
18
  import { defHttp as h } from "/@/utils/http/axios";
19
19
  import { BasicTable as C } from "/@/components/Table";
20
20
  import { useListPage as R } from "/@/hooks/system/useListPage";
21
- import { _ as x } from "./index-6a09a912.mjs";
21
+ import { _ as x } from "./index-0e3ab3af.mjs";
22
22
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
23
23
  import "/@/hooks/web/useMessage";
24
24
  import "vue-router";
@@ -18,7 +18,7 @@ import { defineComponent as g, resolveComponent as w, openBlock as _, createBloc
18
18
  import { defHttp as T } from "/@/utils/http/axios";
19
19
  import { BasicTable as C } from "/@/components/Table";
20
20
  import { useListPage as x } from "/@/hooks/system/useListPage";
21
- import { _ as B } from "./index-6a09a912.mjs";
21
+ import { _ as B } from "./index-0e3ab3af.mjs";
22
22
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
23
23
  import "/@/hooks/web/useMessage";
24
24
  import "vue-router";
@@ -16,21 +16,21 @@ var m = (o, a, l) => new Promise((r, n) => {
16
16
  } catch (d) {
17
17
  n(d);
18
18
  }
19
- }, g = (t) => {
19
+ }, f = (t) => {
20
20
  try {
21
21
  s(l.throw(t));
22
22
  } catch (d) {
23
23
  n(d);
24
24
  }
25
- }, s = (t) => t.done ? r(t.value) : Promise.resolve(t.value).then(b, g);
25
+ }, s = (t) => t.done ? r(t.value) : Promise.resolve(t.value).then(b, f);
26
26
  s((l = l.apply(o, a)).next());
27
27
  });
28
28
  import { BasicModal as J, useModalInner as q } from "/@/components/Modal";
29
- import { ref as f, computed as G, resolveComponent as v, openBlock as H, createBlock as K, mergeProps as z, withCtx as k, createVNode as S } from "vue";
29
+ import { ref as u, computed as G, resolveComponent as h, openBlock as H, createBlock as K, mergeProps as z, withCtx as k, createVNode as S } from "vue";
30
30
  import { BasicForm as A, useForm as $ } from "/@/components/Form/index";
31
31
  import { defHttp as j } from "/@/utils/http/axios";
32
32
  import { omit as D } from "lodash-es";
33
- import { _ as E } from "./index-6a09a912.mjs";
33
+ import { _ as E } from "./index-0e3ab3af.mjs";
34
34
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
35
35
  import "/@/hooks/web/useMessage";
36
36
  import "vue-router";
@@ -42,26 +42,26 @@ const Q = {
42
42
  BasicForm: A
43
43
  },
44
44
  setup(o, { emit: a }) {
45
- const l = f(!1), r = f("");
45
+ const l = u(!1), r = u("");
46
46
  let n = {};
47
- const [b, { closeModal: g }] = q((e) => m(this, null, function* () {
48
- console.log("data", e), n = y({}, e.record), yield _({ dictTable: e.record.dictTable }), setTimeout(() => m(this, null, function* () {
47
+ const [b, { closeModal: f }] = q((e) => m(this, null, function* () {
48
+ n = y({}, e.record), yield v({ dictTable: e.record.dictTable }), setTimeout(() => m(this, null, function* () {
49
49
  let c = D(e.record, "dictTable");
50
- yield _(c), yield P();
50
+ yield v(c), yield P();
51
51
  }), 200), r.value = e.fieldName;
52
- })), s = f(""), t = f(""), d = f([]), F = f([]);
52
+ })), s = u(""), t = u(""), d = u([]), F = u([]);
53
53
  function T(e) {
54
54
  return m(this, null, function* () {
55
55
  if (e) {
56
56
  const c = "/online/cgform/field/listByHeadCode", p = yield j.get({ url: c, params: { headCode: e } });
57
57
  if (p && p.length > 0) {
58
- let u = p.filter((i) => i.dbFieldName != "id" && i.dbIsPersist == 1);
59
- console.log("字段字典", u), u.length > 0 ? d.value = u.map((i) => ({
58
+ let g = p.filter((i) => i.dbFieldName != "id" && i.dbIsPersist == 1);
59
+ g.length > 0 ? d.value = g.map((i) => ({
60
60
  text: i.dbFieldTxt,
61
61
  value: i.dbFieldName
62
62
  })) : d.value = [];
63
- let h = p.filter((i) => i.dbFieldName != "id" && i.fieldShowType == "image" && i.dbIsPersist == 1);
64
- console.log("图片字段", h), h.length > 0 ? F.value = h.map((i) => ({
63
+ let _ = p.filter((i) => i.dbFieldName != "id" && i.fieldShowType == "image" && i.dbIsPersist == 1);
64
+ _.length > 0 ? F.value = _.map((i) => ({
65
65
  text: i.dbFieldTxt,
66
66
  value: i.dbFieldName
67
67
  })) : F.value = [{ text: "无图片字段可以选择", value: "", key: "", disabled: !0 }];
@@ -75,10 +75,10 @@ const Q = {
75
75
  s.value = "", t.value = "", yield T(e);
76
76
  });
77
77
  }
78
- const N = G(() => {
78
+ const V = G(() => {
79
79
  let e = d.value, c = s.value, p = t.value;
80
- return e.filter((u) => u.value != c && u.value != p);
81
- }), V = [
80
+ return e.filter((g) => g.value != c && g.value != p);
81
+ }), N = [
82
82
  {
83
83
  label: "rowKey",
84
84
  field: "rowKey",
@@ -154,9 +154,9 @@ const Q = {
154
154
  component: "JSelectMultiple",
155
155
  componentProps: {
156
156
  popContainer: ".link-table-config-modal",
157
- options: N,
157
+ options: V,
158
158
  onChange: (e) => {
159
- n.otherFields = e, console.error("oldValue", n);
159
+ n.otherFields = e;
160
160
  }
161
161
  }
162
162
  },
@@ -184,15 +184,15 @@ const Q = {
184
184
  ]
185
185
  }
186
186
  }
187
- ], [B, { validate: M, setFieldsValue: _, clearValidate: P, resetFields: W }] = $({
188
- schemas: V,
187
+ ], [B, { validate: M, setFieldsValue: v, clearValidate: P, resetFields: W }] = $({
188
+ schemas: N,
189
189
  showActionButtonGroup: !1,
190
190
  labelAlign: "right"
191
191
  });
192
192
  function O() {
193
193
  return m(this, null, function* () {
194
194
  let e = yield M();
195
- e.fieldName = r.value, a("success", e), g();
195
+ e.fieldName = r.value, a("success", e), f();
196
196
  });
197
197
  }
198
198
  return {
@@ -204,7 +204,7 @@ const Q = {
204
204
  }
205
205
  };
206
206
  function U(o, a, l, r, n, b) {
207
- const g = v("BasicForm"), s = v("a-spin"), t = v("BasicModal");
207
+ const f = h("BasicForm"), s = h("a-spin"), t = h("BasicModal");
208
208
  return H(), K(t, z({ wrapClassName: "link-table-config-modal" }, o.$attrs, {
209
209
  title: "关联记录配置",
210
210
  onRegister: r.registerModal,
@@ -216,7 +216,7 @@ function U(o, a, l, r, n, b) {
216
216
  default: k(() => [
217
217
  S(s, { spinning: r.spinningLoading }, {
218
218
  default: k(() => [
219
- S(g, { onRegister: r.registerForm }, null, 8, ["onRegister"])
219
+ S(f, { onRegister: r.registerForm }, null, 8, ["onRegister"])
220
220
  ]),
221
221
  _: 1
222
222
  }, 8, ["spinning"])