@jeecg/online 3.5.3-beta3 → 3.6.0-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AuthButtonConfig-b6a674fa.mjs +125 -0
- package/AuthButtonTree-09e57bc4.mjs +156 -0
- package/AuthDataConfig-6e7e61ec.mjs +212 -0
- package/AuthDataTree-e83286c5.mjs +139 -0
- package/AuthFieldConfig-f1ec2708.mjs +139 -0
- package/AuthFieldTree-bb72e21f.mjs +232 -0
- package/AuthManagerDrawer-28a2d108.mjs +114 -0
- package/AuthSetterModal-2990d553.mjs +261 -0
- package/CgformCopyList-36a4cbf0.mjs +246 -0
- package/CgformModal-7399a5ac.mjs +611 -0
- package/CgreportModal-2eb9c9e1.mjs +13 -0
- package/CgreportModal.vue_vue_type_script_setup_true_lang-c2ceb064.mjs +566 -0
- package/CheckDictTable-3a8a54b3.mjs +211 -0
- package/CodeFileListModal-72f0d3bb.mjs +158 -0
- package/CodeFileViewModal-9eb88c47.mjs +244 -0
- package/CodeGeneratorModal-a89958f5.mjs +233 -0
- package/CustomButtonList-c44aec5a.mjs +363 -0
- package/DBAttributeTable-7d285e8d.mjs +473 -0
- package/DbToOnlineModal-d23cbeb1.mjs +160 -0
- package/DetailForm-2901d215.mjs +461 -0
- package/EnhanceJavaModal-153899a9.mjs +264 -0
- package/EnhanceJsHistory-7f5db3b1.mjs +184 -0
- package/EnhanceJsModal-c2fb75b8.mjs +311 -0
- package/EnhanceSqlModal-965e9b0a.mjs +268 -0
- package/ExtendConfigModal-8f08466f.mjs +111 -0
- package/FieldExtendJsonModal-adfcf5a7.mjs +219 -0
- package/FileSelectModal-432d4521.mjs +103 -0
- package/ForeignKeyTable-faab7ccf.mjs +69 -0
- package/IndexTable-0a2d3718.mjs +89 -0
- package/JModalTip-e1938b49.mjs +46 -0
- package/JOnlineSearchSelect-7e908492.mjs +95 -0
- package/LeftDepart-54f245b3.mjs +82 -0
- package/LeftRole-c138f892.mjs +86 -0
- package/LeftUser-9c812f8a.mjs +105 -0
- package/LinkTableConfigModal-c2c5c7e6.mjs +230 -0
- package/LinkTableFieldConfigModal-a3553b1f.mjs +176 -0
- package/LinkTableListPiece-7f793b08.mjs +34 -0
- package/ModalFormDemo-65685b0e.mjs +78 -0
- package/OnlCgformErpList-52c87ed3.mjs +449 -0
- package/OnlCgformErpSubTable-6e7fb17b.mjs +398 -0
- package/OnlCgformInnerSubTable-f0727b8f.mjs +248 -0
- package/OnlCgformInnerTableList-9f89c173.mjs +430 -0
- package/OnlCgformTabList-15516315.mjs +390 -0
- package/OnlineAutoList-63a0224f.mjs +474 -0
- package/OnlineAutoModal-ffe19c3f.mjs +206 -0
- package/OnlineAutoTreeList-317c7105.mjs +495 -0
- package/OnlineCustomModal-3939ce78.mjs +227 -0
- package/OnlineDetailModal-bfb1375f.mjs +177 -0
- package/OnlineForm-069f6092.mjs +749 -0
- package/OnlineFormDetail-ad5735fb.mjs +296 -0
- package/OnlineQueryForm-0771c80f.mjs +385 -0
- package/OnlineSearchFormItem-0db5834f.mjs +348 -0
- package/OnlineSelectCascade-a05c30f4.mjs +159 -0
- package/OnlineSubFormDetail-583d01eb.mjs +142 -0
- package/OnlineTabAutoModal-747e071d.mjs +253 -0
- package/OnlineTabDetailModal-887f0174.mjs +222 -0
- package/OnlineTabForm-b1dcd4b4.mjs +765 -0
- package/OnlineTabFormDetail-8e494a96.mjs +323 -0
- package/PageAttributeTable-5966b201.mjs +404 -0
- package/ProcessOnlineForm-4382bea7.mjs +177 -0
- package/QueryTable-6e8053ad.mjs +115 -0
- package/README.md +2 -1
- package/SuperQuery-78db6998.mjs +841 -0
- package/SuperQueryValComponent-471110b5.mjs +8 -0
- package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +101 -0
- package/auth.api-d3a6c4b3.mjs +39 -0
- package/auth.data-8be5c9e3.mjs +141 -0
- package/{cgform.data.js → cgform.data-cbdd88c3.mjs} +93 -62
- package/constant-754f1a9d.mjs +9 -0
- package/enhance.api-138e6826.mjs +104 -0
- package/enhance.data-efc7e155.mjs +175 -0
- package/index-0a93652b.mjs +237 -0
- package/index-7e9a23f2.mjs +1494 -0
- package/index-b70302f2.mjs +56 -0
- package/main.index.js +7 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-0c603af1.mjs +424 -0
- package/useCustomHook-acb00837.mjs +53 -0
- package/useExtendComponent-aa1cdfc8.mjs +3917 -0
- package/useListButton-0f18bf6a.mjs +671 -0
- package/useOnlinePopEvent-687070b7.mjs +19 -0
- package/useOnlineTest-e4bd8be3.mjs +42 -0
- package/useSchemas-43429d80.mjs +685 -0
- package/useTableSync-774c3774.mjs +87 -0
- package/AuthButtonConfig.js +0 -147
- package/AuthButtonTree.js +0 -183
- package/AuthDataConfig.js +0 -246
- package/AuthDataTree.js +0 -160
- package/AuthFieldConfig.js +0 -170
- package/AuthFieldTree.js +0 -281
- package/AuthManagerDrawer.js +0 -125
- package/AuthSetterModal.js +0 -316
- package/CgformCopyList.js +0 -266
- package/CgformModal.js +0 -780
- package/CgreportModal.js +0 -667
- package/CheckDictTable.js +0 -242
- package/CodeFileListModal.js +0 -175
- package/CodeFileViewModal.js +0 -325
- package/CodeGeneratorModal.js +0 -297
- package/CustomButtonList.js +0 -410
- package/DBAttributeTable.js +0 -526
- package/DbToOnlineModal.js +0 -192
- package/DetailForm.js +0 -608
- package/EnhanceJavaModal.js +0 -298
- package/EnhanceJsHistory.js +0 -229
- package/EnhanceJsModal.js +0 -293
- package/EnhanceSqlModal.js +0 -299
- package/ExtendConfigModal.js +0 -151
- package/FieldExtendJsonModal.js +0 -283
- package/FileSelectModal.js +0 -102
- package/ForeignKeyTable.js +0 -79
- package/IndexTable.js +0 -97
- package/JModalTip.js +0 -54
- package/JOnlineSearchSelect.js +0 -115
- package/LICENSE +0 -9
- package/LeftDepart.js +0 -96
- package/LeftRole.js +0 -98
- package/LeftUser.js +0 -117
- package/LinkTableConfigModal.js +0 -289
- package/LinkTableFieldConfigModal.js +0 -218
- package/LinkTableListPiece.js +0 -36
- package/ModalFormDemo.js +0 -85
- package/OnlineAutoList.js +0 -523
- package/OnlineAutoModal.js +0 -226
- package/OnlineAutoTreeList.js +0 -552
- package/OnlineCustomModal.js +0 -286
- package/OnlineDetailModal.js +0 -190
- package/OnlineForm.js +0 -1016
- package/OnlineFormDetail.js +0 -347
- package/OnlineQueryForm.js +0 -484
- package/OnlineSearchFormItem.js +0 -436
- package/OnlineSelectCascade.js +0 -228
- package/OnlineSubFormDetail.js +0 -166
- package/PageAttributeTable.js +0 -486
- package/ProcessOnlineForm.js +0 -208
- package/QueryTable.js +0 -129
- package/SuperQuery.js +0 -1020
- package/SuperQueryValComponent.js +0 -8
- package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -168
- package/_arrayPush.js +0 -278
- package/_baseClone.js +0 -471
- package/_baseSlice.js +0 -18
- package/_commonjsHelpers.js +0 -5
- package/_flatRest.js +0 -174
- package/auth.api.js +0 -43
- package/auth.data.js +0 -142
- package/clipboard.js +0 -565
- package/enhance.api.js +0 -129
- package/enhance.data.js +0 -196
- package/index.js +0 -87
- package/index2.js +0 -340
- package/index3.js +0 -264
- package/isArray.js +0 -47
- package/omit.js +0 -60
- package/pick.js +0 -68
- package/toString.js +0 -31
- package/useCgformList.js +0 -470
- package/useExtendComponent.js +0 -5205
- package/useListButton.js +0 -923
- package/useOnlineTest.js +0 -44
- package/useSchemas.js +0 -653
- package/useTableSync.js +0 -117
|
@@ -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-b70302f2.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-b70302f2.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
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
var p = Object.defineProperty, m = Object.defineProperties;
|
|
2
|
+
var s = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var a = Object.getOwnPropertySymbols;
|
|
4
|
+
var u = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var i = (e, t, o) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, r = (e, t) => {
|
|
6
|
+
for (var o in t || (t = {}))
|
|
7
|
+
u.call(t, o) && i(e, o, t[o]);
|
|
8
|
+
if (a)
|
|
9
|
+
for (var o of a(t))
|
|
10
|
+
c.call(t, o) && i(e, o, t[o]);
|
|
11
|
+
return e;
|
|
12
|
+
}, n = (e, t) => m(e, s(t));
|
|
13
|
+
import { defineComponent as b, ref as f, resolveComponent as y, openBlock as h, createBlock as g, mergeProps as T } from "vue";
|
|
14
|
+
import { JVxeTypes as l } from "/@/components/jeecg/JVxeTable/types";
|
|
15
|
+
import { u as k } from "./useTableSync-774c3774.mjs";
|
|
16
|
+
import { _ as w } from "./index-b70302f2.mjs";
|
|
17
|
+
import "./cgform.data-cbdd88c3.mjs";
|
|
18
|
+
import "/@/utils/dict";
|
|
19
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
20
|
+
import "/@/utils/uuid";
|
|
21
|
+
import "lodash-es";
|
|
22
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
23
|
+
import "/@/hooks/web/useMessage";
|
|
24
|
+
import "vue-router";
|
|
25
|
+
const F = b({
|
|
26
|
+
name: "ForeignKeyTable",
|
|
27
|
+
props: {
|
|
28
|
+
actionButton: { type: Boolean, default: !0 }
|
|
29
|
+
},
|
|
30
|
+
setup() {
|
|
31
|
+
const e = f([
|
|
32
|
+
{ title: "字段名称", key: "dbFieldName", width: 160 },
|
|
33
|
+
{ title: "字段备注", key: "dbFieldTxt", width: 160 },
|
|
34
|
+
{
|
|
35
|
+
title: "主表名",
|
|
36
|
+
key: "mainTable",
|
|
37
|
+
width: 280,
|
|
38
|
+
type: l.input,
|
|
39
|
+
defaultValue: ""
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
title: "主表字段",
|
|
43
|
+
key: "mainField",
|
|
44
|
+
width: 280,
|
|
45
|
+
type: l.input,
|
|
46
|
+
defaultValue: ""
|
|
47
|
+
}
|
|
48
|
+
]), t = k(e);
|
|
49
|
+
return n(r({}, t), { columns: e });
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
function _(e, t, o, B, V, S) {
|
|
53
|
+
const d = y("JVxeTable");
|
|
54
|
+
return h(), g(d, T({
|
|
55
|
+
ref: "tableRef",
|
|
56
|
+
rowNumber: "",
|
|
57
|
+
keyboardEdit: "",
|
|
58
|
+
maxHeight: e.tableHeight.noToolbar,
|
|
59
|
+
loading: e.loading,
|
|
60
|
+
columns: e.columns,
|
|
61
|
+
dataSource: e.dataSource,
|
|
62
|
+
disabled: !e.actionButton,
|
|
63
|
+
disabledRows: { dbFieldName: ["id", "has_child"] }
|
|
64
|
+
}, e.tableProps), null, 16, ["maxHeight", "loading", "columns", "dataSource", "disabled"]);
|
|
65
|
+
}
|
|
66
|
+
const z = /* @__PURE__ */ w(F, [["render", _]]);
|
|
67
|
+
export {
|
|
68
|
+
z as default
|
|
69
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { defineComponent as f, ref as b, resolveComponent as g, openBlock as h, createBlock as y, mergeProps as $ } from "vue";
|
|
2
|
+
import { JVxeTypes as a } from "/@/components/jeecg/JVxeTable/types";
|
|
3
|
+
import { u as T } from "./useTableSync-774c3774.mjs";
|
|
4
|
+
import { _ as v } from "./index-b70302f2.mjs";
|
|
5
|
+
import "./cgform.data-cbdd88c3.mjs";
|
|
6
|
+
import "/@/utils/dict";
|
|
7
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
8
|
+
import "/@/utils/uuid";
|
|
9
|
+
import "lodash-es";
|
|
10
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
11
|
+
import "/@/hooks/web/useMessage";
|
|
12
|
+
import "vue-router";
|
|
13
|
+
const S = f({
|
|
14
|
+
name: "IndexTable",
|
|
15
|
+
components: {},
|
|
16
|
+
props: {
|
|
17
|
+
actionButton: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !0,
|
|
20
|
+
required: !1
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
setup() {
|
|
24
|
+
const e = b([
|
|
25
|
+
{
|
|
26
|
+
title: "索引名称",
|
|
27
|
+
key: "indexName",
|
|
28
|
+
width: 330,
|
|
29
|
+
type: a.input,
|
|
30
|
+
defaultValue: "",
|
|
31
|
+
placeholder: "请输入${title}",
|
|
32
|
+
validateRules: [{ required: !0, message: "${title}不能为空" }]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
title: "索引栏位",
|
|
36
|
+
key: "indexField",
|
|
37
|
+
width: 330,
|
|
38
|
+
type: a.selectMultiple,
|
|
39
|
+
options: [],
|
|
40
|
+
defaultValue: "",
|
|
41
|
+
placeholder: "请选择${title}",
|
|
42
|
+
validateRules: [{ required: !0, message: "请选择${title}" }]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
title: "索引类型",
|
|
46
|
+
key: "indexType",
|
|
47
|
+
width: 330,
|
|
48
|
+
type: a.select,
|
|
49
|
+
options: [
|
|
50
|
+
{ title: "normal", value: "normal" },
|
|
51
|
+
{ title: "unique", value: "unique" }
|
|
52
|
+
],
|
|
53
|
+
defaultValue: "normal",
|
|
54
|
+
placeholder: "请选择${title}",
|
|
55
|
+
validateRules: [{ required: !0, message: "请选择${title}" }]
|
|
56
|
+
}
|
|
57
|
+
]), l = T(e), { tableRef: r, loading: i, dataSource: n, tableHeight: u, tableProps: t, setDataSource: s, validateData: p } = l;
|
|
58
|
+
function m(c) {
|
|
59
|
+
let d = [];
|
|
60
|
+
c.value.tableRef.getTableData().forEach((o) => {
|
|
61
|
+
o.dbFieldName && d.push({
|
|
62
|
+
title: o.dbFieldName,
|
|
63
|
+
value: o.dbFieldName
|
|
64
|
+
});
|
|
65
|
+
}), e.value[1].options = d;
|
|
66
|
+
}
|
|
67
|
+
return { tableRef: r, loading: i, dataSource: n, columns: e, tableHeight: u, tableProps: t, syncTable: m, setDataSource: s, validateData: p };
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
function x(e, l, r, i, n, u) {
|
|
71
|
+
const t = g("JVxeTable");
|
|
72
|
+
return h(), y(t, $({
|
|
73
|
+
ref: "tableRef",
|
|
74
|
+
rowNumber: "",
|
|
75
|
+
rowSelection: "",
|
|
76
|
+
dragSort: "",
|
|
77
|
+
keyboardEdit: "",
|
|
78
|
+
sortKey: "orderNum",
|
|
79
|
+
maxHeight: e.tableHeight.normal,
|
|
80
|
+
loading: e.loading,
|
|
81
|
+
columns: e.columns,
|
|
82
|
+
dataSource: e.dataSource,
|
|
83
|
+
toolbar: e.actionButton
|
|
84
|
+
}, e.tableProps), null, 16, ["maxHeight", "loading", "columns", "dataSource", "toolbar"]);
|
|
85
|
+
}
|
|
86
|
+
const C = /* @__PURE__ */ v(S, [["render", x]]);
|
|
87
|
+
export {
|
|
88
|
+
C as default
|
|
89
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
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-b70302f2.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
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { useDebounceFn as v } from "@vueuse/core";
|
|
2
|
+
import { defHttp as S } from "/@/utils/http/axios";
|
|
3
|
+
import { useMessage as w } from "/@/hooks/web/useMessage";
|
|
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-b70302f2.mjs";
|
|
6
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
7
|
+
import "vue-router";
|
|
8
|
+
const { createMessage: I } = w(), q = {
|
|
9
|
+
name: "JOnlineSearchSelect",
|
|
10
|
+
props: {
|
|
11
|
+
placeholder: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: "",
|
|
14
|
+
required: !1
|
|
15
|
+
},
|
|
16
|
+
value: {
|
|
17
|
+
type: String,
|
|
18
|
+
required: !1
|
|
19
|
+
},
|
|
20
|
+
// online CgReport item id
|
|
21
|
+
fieldId: {
|
|
22
|
+
type: String,
|
|
23
|
+
required: !0
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
emits: ["update:value"],
|
|
27
|
+
setup(r, { emit: i }) {
|
|
28
|
+
let n = d(""), t = d([]);
|
|
29
|
+
f(
|
|
30
|
+
() => r.value,
|
|
31
|
+
(e) => {
|
|
32
|
+
e ? n.value = e : n.value = void 0;
|
|
33
|
+
},
|
|
34
|
+
{ immediate: !0 }
|
|
35
|
+
), f(
|
|
36
|
+
() => r.fieldId,
|
|
37
|
+
() => {
|
|
38
|
+
a();
|
|
39
|
+
},
|
|
40
|
+
{ immediate: !0 }
|
|
41
|
+
);
|
|
42
|
+
const u = v(o, 800);
|
|
43
|
+
function o(e = "") {
|
|
44
|
+
let g = {
|
|
45
|
+
keyword: e
|
|
46
|
+
}, _ = "/online/cgreport/api/getReportDictList?fieldId=" + r.fieldId;
|
|
47
|
+
S.get({ url: _, params: g }, { isTransformResponse: !1 }).then((l) => {
|
|
48
|
+
l.success ? l.result && l.result.length > 0 ? t.value = l.result : t.value = [] : I.warning(l.message);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function s(e) {
|
|
52
|
+
i("update:value", e), (!e || e == "") && a();
|
|
53
|
+
}
|
|
54
|
+
function a() {
|
|
55
|
+
t.value = [], o();
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
selectOptions: t,
|
|
59
|
+
handleSearch: u,
|
|
60
|
+
handleChange: s,
|
|
61
|
+
selected: n
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
function D(r, i, n, t, u, o) {
|
|
66
|
+
const s = p("a-select-option"), a = p("a-select");
|
|
67
|
+
return c(), m(a, {
|
|
68
|
+
value: t.selected,
|
|
69
|
+
placeholder: n.placeholder,
|
|
70
|
+
"show-search": "",
|
|
71
|
+
"default-active-first-option": !1,
|
|
72
|
+
"show-arrow": !0,
|
|
73
|
+
"filter-option": !1,
|
|
74
|
+
"not-found-content": null,
|
|
75
|
+
onSearch: t.handleSearch,
|
|
76
|
+
onChange: t.handleChange,
|
|
77
|
+
allowClear: ""
|
|
78
|
+
}, {
|
|
79
|
+
default: h(() => [
|
|
80
|
+
(c(!0), y(C, null, x(t.selectOptions, (e) => (c(), m(s, {
|
|
81
|
+
key: e.value
|
|
82
|
+
}, {
|
|
83
|
+
default: h(() => [
|
|
84
|
+
k(O(e.text), 1)
|
|
85
|
+
]),
|
|
86
|
+
_: 2
|
|
87
|
+
}, 1024))), 128))
|
|
88
|
+
]),
|
|
89
|
+
_: 1
|
|
90
|
+
}, 8, ["value", "placeholder", "onSearch", "onChange"]);
|
|
91
|
+
}
|
|
92
|
+
const E = /* @__PURE__ */ B(q, [["render", D]]);
|
|
93
|
+
export {
|
|
94
|
+
E as default
|
|
95
|
+
};
|