@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,233 +0,0 @@
1
- var J = (e, l, c) => new Promise((C, g) => {
2
- var a = (s) => {
3
- try {
4
- u(c.next(s));
5
- } catch (o) {
6
- g(o);
7
- }
8
- }, r = (s) => {
9
- try {
10
- u(c.throw(s));
11
- } catch (o) {
12
- g(o);
13
- }
14
- }, u = (s) => s.done ? C(s.value) : Promise.resolve(s.value).then(a, r);
15
- u((c = c.apply(e, l)).next());
16
- });
17
- import { defineComponent as A, ref as d, reactive as S, resolveComponent as v, openBlock as b, createBlock as T, withCtx as i, createVNode as m, createTextVNode as k, createCommentVNode as M } from "vue";
18
- import { BasicModal as G, useModalInner as I, useModal as P } from "/@/components/Modal";
19
- import { JCodeEditor as q } from "/@/components/Form";
20
- import { u as z } from "./useOnlineTest-0df0ae86.mjs";
21
- import { E as L, u as Q } from "./EnhanceJsHistory-c30805ce.mjs";
22
- import { g as W, s as X } from "./enhance.api-138e6826.mjs";
23
- import { useMessage as Y } from "/@/hooks/web/useMessage";
24
- import { _ as Z } from "./index-6a09a912.mjs";
25
- import "/@/utils/dateUtil";
26
- import "/@/store";
27
- import "pinia";
28
- import "/@/utils/cache";
29
- import "/@/utils/http/axios";
30
- import "/@/utils/is";
31
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
32
- import "vue-router";
33
- const x = A({
34
- name: "EnhanceJs",
35
- components: { BasicModal: G, JCodeEditor: q, EnhanceJsHistory: L },
36
- emits: ["register"],
37
- setup() {
38
- const { createMessage: e } = Y(), l = Q(), c = d(), C = d(), g = S({ form: {}, list: {} }), a = d("list"), r = d(""), u = d(!1), s = d(!1), o = d(""), f = S({ form: "", list: "" }), p = { form: !1, list: !1 }, E = d(!1), [h, { closeModal: B }] = I((n) => J(this, null, function* () {
39
- $(n.row);
40
- })), [V, D] = P(), { aiTestMode: N, genEnhanceJsData: _ } = z();
41
- function $(n) {
42
- r.value = n.id, s.value = !1, o.value = n.tableName;
43
- let t = l.getEnhanceJs(r.value);
44
- (t == null ? void 0 : t.length) > 0 ? (a.value = t[t.length - 1].type, u.value = !0) : u.value = !1, p.form = !1, p.list = !1, a.value ? w(a.value) : w("form"), E.value = !0, setTimeout(() => E.value = !1, 150);
45
- }
46
- function j() {
47
- return J(this, null, function* () {
48
- yield Promise.all([H("form"), H("list")]), B(), e.success("保存成功");
49
- });
50
- }
51
- function H(n) {
52
- return J(this, null, function* () {
53
- let t = g[n], y = {
54
- cgJs: f[n],
55
- cgJsType: n
56
- };
57
- if (!p[n] || t.cgJs === y.cgJs)
58
- return;
59
- let R = !!t.id;
60
- R && (y = Object.assign({}, t, y)), yield X(r.value, y, R), l.addEnhanceJs({
61
- code: r.value,
62
- str: y.cgJs,
63
- type: y.cgJsType,
64
- date: (/* @__PURE__ */ new Date()).getTime()
65
- });
66
- });
67
- }
68
- function F() {
69
- B();
70
- }
71
- function w(n) {
72
- return J(this, null, function* () {
73
- a.value = n;
74
- try {
75
- if (!p[n]) {
76
- let t = yield W(r.value, n);
77
- Object.assign(g[n], { id: null }, t), f[n] = g[n].cgJs, p[n] = !0;
78
- }
79
- } catch (t) {
80
- console.error(t);
81
- }
82
- setTimeout(() => {
83
- n == "list" ? C.value.refresh() : c.value.refresh();
84
- }, 150);
85
- });
86
- }
87
- function U() {
88
- D.openModal(!0, {
89
- code: r.value,
90
- type: a.value
91
- });
92
- }
93
- function K(n) {
94
- f[a.value] != n && (s.value = !0, f[a.value] = n);
95
- }
96
- function O() {
97
- a.value === "form" ? _(o.value, a.value, c.value) : _(o.value, a.value, C.value);
98
- }
99
- return {
100
- formEditorRef: c,
101
- listEditorRef: C,
102
- reloading: E,
103
- enhanceValues: f,
104
- enhanceType: a,
105
- showHistory: u,
106
- aiTestMode: N,
107
- tableName: o,
108
- genEnhanceJsData: _,
109
- onGenTestData: O,
110
- onChangeType: w,
111
- onCodeChange: K,
112
- onShowHistory: U,
113
- onSubmit: j,
114
- onCancel: F,
115
- registerModal: h,
116
- registerEnhanceJsHistory: V
117
- };
118
- }
119
- });
120
- function ee(e, l, c, C, g, a) {
121
- const r = v("JCodeEditor"), u = v("a-tab-pane"), s = v("a-tabs"), o = v("a-button"), f = v("a-space"), p = v("EnhanceJsHistory"), E = v("BasicModal");
122
- return b(), T(E, {
123
- onRegister: e.registerModal,
124
- title: "JS增强",
125
- width: 800,
126
- bodyStyle: { height: "360px" }
127
- }, {
128
- footer: i(() => [
129
- m(f, null, {
130
- default: i(() => [
131
- m(o, { onClick: e.onCancel }, {
132
- default: i(() => [
133
- k("关闭")
134
- ]),
135
- _: 1
136
- }, 8, ["onClick"]),
137
- m(o, {
138
- type: "primary",
139
- onClick: e.onSubmit
140
- }, {
141
- default: i(() => [
142
- k("确定")
143
- ]),
144
- _: 1
145
- }, 8, ["onClick"])
146
- ]),
147
- _: 1
148
- }),
149
- m(f, { style: { float: "left" } }, {
150
- default: i(() => [
151
- e.showHistory ? (b(), T(o, {
152
- key: 0,
153
- onClick: e.onShowHistory
154
- }, {
155
- default: i(() => [
156
- k("查看历史版本")
157
- ]),
158
- _: 1
159
- }, 8, ["onClick"])) : M("", !0),
160
- e.aiTestMode ? (b(), T(o, {
161
- key: 1,
162
- onClick: e.onGenTestData
163
- }, {
164
- default: i(() => [
165
- k("生成测试数据")
166
- ]),
167
- _: 1
168
- }, 8, ["onClick"])) : M("", !0)
169
- ]),
170
- _: 1
171
- })
172
- ]),
173
- default: i(() => [
174
- m(s, {
175
- activeKey: e.enhanceType,
176
- "onUpdate:activeKey": l[2] || (l[2] = (h) => e.enhanceType = h),
177
- onChange: e.onChangeType
178
- }, {
179
- default: i(() => [
180
- m(u, {
181
- tab: "form",
182
- key: "form",
183
- forceRender: ""
184
- }, {
185
- default: i(() => [
186
- e.reloading ? M("", !0) : (b(), T(r, {
187
- key: 0,
188
- ref: "formEditorRef",
189
- value: e.enhanceValues.form,
190
- "onUpdate:value": l[0] || (l[0] = (h) => e.enhanceValues.form = h),
191
- language: "javascript",
192
- fullScreen: !0,
193
- lineNumbers: !1,
194
- height: "240px",
195
- "language-change": !1,
196
- onChange: e.onCodeChange
197
- }, null, 8, ["value", "onChange"]))
198
- ]),
199
- _: 1
200
- }),
201
- m(u, {
202
- tab: "list",
203
- key: "list",
204
- forceRender: ""
205
- }, {
206
- default: i(() => [
207
- e.reloading ? M("", !0) : (b(), T(r, {
208
- key: 0,
209
- ref: "listEditorRef",
210
- value: e.enhanceValues.list,
211
- "onUpdate:value": l[1] || (l[1] = (h) => e.enhanceValues.list = h),
212
- language: "javascript",
213
- fullScreen: !0,
214
- lineNumbers: !1,
215
- height: "240px",
216
- "language-change": !1,
217
- onChange: e.onCodeChange
218
- }, null, 8, ["value", "onChange"]))
219
- ]),
220
- _: 1
221
- })
222
- ]),
223
- _: 1
224
- }, 8, ["activeKey", "onChange"]),
225
- m(p, { onRegister: e.registerEnhanceJsHistory }, null, 8, ["onRegister"])
226
- ]),
227
- _: 1
228
- }, 8, ["onRegister"]);
229
- }
230
- const Ce = /* @__PURE__ */ Z(x, [["render", ee]]);
231
- export {
232
- Ce as default
233
- };
@@ -1,220 +0,0 @@
1
- var B = Object.defineProperty, C = Object.defineProperties;
2
- var P = Object.getOwnPropertyDescriptors;
3
- var v = Object.getOwnPropertySymbols;
4
- var j = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
5
- var w = (o, n, l) => n in o ? B(o, n, { enumerable: !0, configurable: !0, writable: !0, value: l }) : o[n] = l, g = (o, n) => {
6
- for (var l in n || (n = {}))
7
- j.call(n, l) && w(o, l, n[l]);
8
- if (v)
9
- for (var l of v(n))
10
- I.call(n, l) && w(o, l, n[l]);
11
- return o;
12
- }, _ = (o, n) => C(o, P(n));
13
- var h = (o, n, l) => new Promise((m, a) => {
14
- var r = (s) => {
15
- try {
16
- i(l.next(s));
17
- } catch (c) {
18
- a(c);
19
- }
20
- }, d = (s) => {
21
- try {
22
- i(l.throw(s));
23
- } catch (c) {
24
- a(c);
25
- }
26
- }, i = (s) => s.done ? m(s.value) : Promise.resolve(s.value).then(r, d);
27
- i((l = l.apply(o, n)).next());
28
- });
29
- import { defineComponent as V, ref as f, reactive as k, toRaw as G, toRefs as K, resolveComponent as b, openBlock as N, createBlock as $, mergeProps as O, withCtx as F, createVNode as S } from "vue";
30
- import { BasicModal as J, useModalInner as T } from "/@/components/Modal";
31
- import { BasicForm as A, useForm as D } from "/@/components/Form/index";
32
- import { pick as W } from "lodash-es";
33
- import { _ as q } from "./index-6a09a912.mjs";
34
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
35
- import "/@/hooks/web/useMessage";
36
- import "vue-router";
37
- const z = V({
38
- name: "FieldExtendJsonModal",
39
- components: {
40
- BasicModal: J,
41
- BasicForm: A
42
- },
43
- emits: ["success", "register"],
44
- setup(o, { emit: n }) {
45
- const l = f(!1);
46
- function m() {
47
- a.uploadnum = 0, a.showLength = "", a.popupMulti = !0, a.multiSelect = !0, a.store = "", a.text = "", a.orderRule = "", a.validateError = "", a.labelLength = 4;
48
- }
49
- const a = k({
50
- uploadnum: 0,
51
- showLength: "",
52
- popupMulti: !0,
53
- store: "",
54
- text: "",
55
- multiSelect: !0,
56
- orderRule: "",
57
- validateError: "",
58
- labelLength: 4
59
- }), r = f(""), d = f(""), i = f("0"), s = [
60
- {
61
- label: "rowKey",
62
- field: "rowKey",
63
- component: "Input",
64
- show: !1
65
- },
66
- {
67
- label: "文件上传数量",
68
- field: "uploadnum",
69
- component: "InputNumber",
70
- componentProps: {
71
- style: {
72
- width: "100%"
73
- }
74
- },
75
- ifShow: () => r.value === "file" || r.value === "image"
76
- },
77
- {
78
- label: "是否多选",
79
- field: "popupMulti",
80
- component: "RadioGroup",
81
- defaultValue: !0,
82
- componentProps: {
83
- options: [
84
- { label: "否", value: !1 },
85
- { label: "是", value: !0 }
86
- ]
87
- },
88
- ifShow: () => r.value === "popup"
89
- },
90
- {
91
- label: "是否多选",
92
- field: "multiSelect",
93
- component: "RadioGroup",
94
- defaultValue: !0,
95
- componentProps: {
96
- options: [
97
- { label: "否", value: !1 },
98
- { label: "是", value: !0 }
99
- ]
100
- },
101
- ifShow: () => r.value === "sel_user" || r.value === "sel_depart"
102
- },
103
- {
104
- label: "存储字段",
105
- field: "store",
106
- component: "Input",
107
- ifShow: () => r.value === "sel_user" || r.value === "sel_depart"
108
- },
109
- {
110
- label: "展示字段",
111
- field: "text",
112
- component: "Input",
113
- ifShow: () => r.value === "sel_user" || r.value === "sel_depart"
114
- },
115
- {
116
- label: "默认排序",
117
- field: "orderRule",
118
- component: "RadioGroup",
119
- defaultValue: "",
120
- componentProps: {
121
- options: [
122
- { label: "降序", value: "desc" },
123
- { label: "升序", value: "asc" },
124
- { label: "不默认排序", value: "" }
125
- ]
126
- },
127
- ifShow: () => i.value === "1"
128
- },
129
- {
130
- label: "校验提示",
131
- field: "validateError",
132
- component: "Input",
133
- componentProps: {
134
- placeholder: "请输入校验提示文本"
135
- }
136
- },
137
- {
138
- label: "label长度",
139
- field: "labelLength",
140
- component: "InputNumber",
141
- componentProps: {
142
- placeholder: "请输入label长度"
143
- }
144
- },
145
- {
146
- label: "是否固定",
147
- field: "isFixed",
148
- component: "RadioGroup",
149
- defaultValue: 0,
150
- componentProps: {
151
- options: [
152
- { label: "是", value: 1 },
153
- { label: "否", value: 0 }
154
- ]
155
- }
156
- }
157
- ], [c, { validate: x, setFieldsValue: R, resetFields: y }] = D({
158
- schemas: s,
159
- showActionButtonGroup: !1,
160
- labelAlign: "right",
161
- labelWidth: 100
162
- }), [L, { closeModal: M }] = T((e) => h(this, null, function* () {
163
- if (console.log("extend json", e), m(), e.jsonStr) {
164
- let t = JSON.parse(e.jsonStr);
165
- Object.keys(t).map((p) => {
166
- console.log("扩展参数:" + p + "=" + t[p]), a[p] = t[p];
167
- });
168
- }
169
- r.value = e.fieldShowType, d.value = e.id, i.value = e.sortFlag;
170
- let u = G(a);
171
- yield y(), yield R(_(g({}, u), {
172
- rowKey: e.id
173
- }));
174
- }));
175
- function E() {
176
- return h(this, null, function* () {
177
- let e = yield x();
178
- console.log("datga", e);
179
- let u = r.value, t = {};
180
- u === "file" || u === "image" ? e.uploadnum && e.uploadnum > 0 && (t.uploadnum = e.uploadnum) : u === "textarea" || u === "text" ? e.showLength && e.showLength > 0 && (t.showLength = e.showLength) : u === "sel_user" || u === "sel_depart" ? t = W(e, "store", "text", "multiSelect") : u === "popup" && (t.popupMulti = e.popupMulti), i.value === "1" && e.orderRule && (t.orderRule = e.orderRule), e.validateError && (t.validateError = e.validateError), e.labelLength && (t.labelLength = e.labelLength), e.isFixed && (t.isFixed = e.isFixed), console.log("obj....", t);
181
- for (let p in t)
182
- t[p] === "" && delete t[p];
183
- console.log(t), n("success", t, e.rowKey), M();
184
- });
185
- }
186
- return g({
187
- spinningLoading: l,
188
- registerModal: L,
189
- registerForm: c,
190
- fieldShowType: r,
191
- rowKey: d,
192
- handleSubmit: E
193
- }, K(a));
194
- }
195
- });
196
- function H(o, n, l, m, a, r) {
197
- const d = b("BasicForm"), i = b("a-spin"), s = b("BasicModal");
198
- return N(), $(s, O({ wrapClassName: "field-extend-config-modal" }, o.$attrs, {
199
- title: "扩展参数配置",
200
- onRegister: o.registerModal,
201
- keyboard: "",
202
- canFullscreen: !1,
203
- cancelText: "关闭",
204
- onOk: o.handleSubmit
205
- }), {
206
- default: F(() => [
207
- S(i, { spinning: o.spinningLoading }, {
208
- default: F(() => [
209
- S(d, { onRegister: o.registerForm }, null, 8, ["onRegister"])
210
- ]),
211
- _: 1
212
- }, 8, ["spinning"])
213
- ]),
214
- _: 1
215
- }, 16, ["onRegister", "onOk"]);
216
- }
217
- const ne = /* @__PURE__ */ q(z, [["render", H]]);
218
- export {
219
- ne as default
220
- };
@@ -1,91 +0,0 @@
1
- var d = (o, s, t) => new Promise((n, a) => {
2
- var u = (e) => {
3
- try {
4
- l(t.next(e));
5
- } catch (i) {
6
- a(i);
7
- }
8
- }, r = (e) => {
9
- try {
10
- l(t.throw(e));
11
- } catch (i) {
12
- a(i);
13
- }
14
- }, l = (e) => e.done ? n(e.value) : Promise.resolve(e.value).then(u, r);
15
- l((t = t.apply(o, s)).next());
16
- });
17
- import { defineComponent as y, ref as f, resolveComponent as p, openBlock as D, createBlock as S, withCtx as m, createVNode as g } from "vue";
18
- import { defHttp as _ } from "/@/utils/http/axios";
19
- import { BasicModal as C, useModalInner as R } from "/@/components/Modal";
20
- import { _ as k } from "./index-6a09a912.mjs";
21
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
22
- import "/@/hooks/web/useMessage";
23
- import "vue-router";
24
- const B = y({
25
- name: "FileSelectModal",
26
- components: { BasicModal: C },
27
- emits: ["select", "register"],
28
- setup(o, { emit: s }) {
29
- const t = f(!0), n = f([]), a = f(""), [u, { closeModal: r }] = R(() => d(this, null, function* () {
30
- a.value = "", n.value.length === 0 && i();
31
- }));
32
- function l() {
33
- s("select", a.value), r();
34
- }
35
- function e() {
36
- r();
37
- }
38
- function i() {
39
- return d(this, null, function* () {
40
- t.value = !0, n.value = yield _.get({
41
- url: "/online/cgform/head/rootFile"
42
- /* rootFileUrl */
43
- }).finally(() => {
44
- t.value = !1;
45
- });
46
- });
47
- }
48
- function v(c) {
49
- return d(this, null, function* () {
50
- if (c.dataRef.children)
51
- return;
52
- let M = {
53
- parentPath: c.dataRef.key
54
- };
55
- c.dataRef.children = yield _.get({ url: "/online/cgform/head/fileTree", params: M }), n.value = [...n.value];
56
- });
57
- }
58
- function h(c) {
59
- a.value = c[0];
60
- }
61
- return { loading: t, treeData: n, onLoadData: v, onSelect: h, onSubmit: l, onCancel: e, registerModal: u };
62
- }
63
- });
64
- function w(o, s, t, n, a, u) {
65
- const r = p("a-directory-tree"), l = p("a-spin"), e = p("BasicModal");
66
- return D(), S(e, {
67
- onRegister: o.registerModal,
68
- title: "选择目录",
69
- width: 500,
70
- onOk: o.onSubmit,
71
- onCancel: o.onCancel
72
- }, {
73
- default: m(() => [
74
- g(l, { spinning: o.loading }, {
75
- default: m(() => [
76
- g(r, {
77
- treeData: o.treeData,
78
- loadData: o.onLoadData,
79
- onSelect: o.onSelect
80
- }, null, 8, ["treeData", "loadData", "onSelect"])
81
- ]),
82
- _: 1
83
- }, 8, ["spinning"])
84
- ]),
85
- _: 1
86
- }, 8, ["onRegister", "onOk", "onCancel"]);
87
- }
88
- const K = /* @__PURE__ */ k(B, [["render", w]]);
89
- export {
90
- K as default
91
- };
@@ -1,46 +0,0 @@
1
- import { computed as i, openBlock as n, createElementBlock as c, createElementVNode as t, createCommentVNode as d, pushScopeId as p, popScopeId as l } from "vue";
2
- import { _ as r } from "./index-6a09a912.mjs";
3
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
4
- import "/@/hooks/web/useMessage";
5
- import "vue-router";
6
- const _ = {
7
- name: "JModalTip",
8
- props: {
9
- visible: {
10
- type: Boolean,
11
- default: !1
12
- }
13
- },
14
- emits: ["save", "cancel"],
15
- setup(e) {
16
- return {
17
- flag: i(() => e.visible)
18
- };
19
- }
20
- }, m = (e) => (p("data-v-812981d3"), e = e(), l(), e), v = {
21
- key: 0,
22
- class: "jeecg-update-tip-bar"
23
- }, u = { class: "container" }, f = { class: "outer" }, $ = { class: "inner" }, g = /* @__PURE__ */ m(() => /* @__PURE__ */ t("span", { class: "tip" }, "正在修改表单数据 ···", -1));
24
- function k(e, o, h, s, y, I) {
25
- return s.flag ? (n(), c("div", v, [
26
- t("div", u, [
27
- t("div", f, [
28
- t("div", $, [
29
- g,
30
- t("div", {
31
- class: "cancel",
32
- onClick: o[0] || (o[0] = (a) => e.$emit("cancel"))
33
- }, "取消"),
34
- t("div", {
35
- class: "save",
36
- onClick: o[1] || (o[1] = (a) => e.$emit("save"))
37
- }, "保存")
38
- ])
39
- ])
40
- ])
41
- ])) : d("", !0);
42
- }
43
- const S = /* @__PURE__ */ r(_, [["render", k], ["__scopeId", "data-v-812981d3"]]);
44
- export {
45
- S as default
46
- };
@@ -1,34 +0,0 @@
1
- import { propTypes as o } from "/@/utils/propTypes";
2
- import { openBlock as r, createElementBlock as l, createElementVNode as s, toDisplayString as c } from "vue";
3
- import { _ as p } from "./index-6a09a912.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(i, { emit: e }) {
15
- function n(t) {
16
- t == null || t.stopPropagation(), t == null || t.preventDefault(), console.log(i.id), e("tab", i.id);
17
- }
18
- return {
19
- handleClick: n
20
- };
21
- }
22
- };
23
- function _(i, e, n, t, m, f) {
24
- return r(), l("div", {
25
- class: "link-table-piece",
26
- onClick: e[0] || (e[0] = (...a) => t.handleClick && t.handleClick(...a))
27
- }, [
28
- s("span", null, c(n.text), 1)
29
- ]);
30
- }
31
- const v = /* @__PURE__ */ p(d, [["render", _], ["__scopeId", "data-v-ade036b6"]]);
32
- export {
33
- v as default
34
- };