@jeecg/online 3.5.3-beta2 → 3.5.3-vite4
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-2f71787c.mjs +125 -0
- package/AuthButtonTree-d73bccf5.mjs +156 -0
- package/AuthDataConfig-32cf23d2.mjs +212 -0
- package/AuthDataTree-03d62d3f.mjs +139 -0
- package/AuthFieldConfig-b1217a0c.mjs +139 -0
- package/AuthFieldTree-888e04a9.mjs +232 -0
- package/AuthManagerDrawer-f127b8a2.mjs +114 -0
- package/AuthSetterModal-37da78ed.mjs +261 -0
- package/CgformCopyList-3adab58f.mjs +245 -0
- package/CgformModal-6938d8c2.mjs +613 -0
- package/CgreportModal-77ec8c17.mjs +12 -0
- package/CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs +567 -0
- package/CheckDictTable-414313f2.mjs +211 -0
- package/CodeFileListModal-4831ce3d.mjs +158 -0
- package/CodeFileViewModal-5990dac4.mjs +244 -0
- package/CodeGeneratorModal-7df9e25d.mjs +234 -0
- package/CustomButtonList-1c9bd859.mjs +363 -0
- package/DBAttributeTable-cd1c41e5.mjs +473 -0
- package/DbToOnlineModal-dc5d2030.mjs +160 -0
- package/DetailForm-e4538e7a.mjs +446 -0
- package/EnhanceJavaModal-7f53d2ca.mjs +260 -0
- package/EnhanceJsHistory-c30805ce.mjs +184 -0
- package/EnhanceJsModal-0b133341.mjs +233 -0
- package/EnhanceSqlModal-33a94c83.mjs +259 -0
- package/ExtendConfigModal-60f2cf86.mjs +111 -0
- package/FieldExtendJsonModal-48f7d67f.mjs +220 -0
- package/FileSelectModal-64aaf623.mjs +91 -0
- package/ForeignKeyTable-cb1abd1d.mjs +69 -0
- package/IndexTable-4e94cd1f.mjs +89 -0
- package/JModalTip-abe1515a.mjs +46 -0
- package/JOnlineSearchSelect-5608a5cf.mjs +94 -0
- package/LeftDepart-ca7a7375.mjs +82 -0
- package/LeftRole-d0fa8398.mjs +86 -0
- package/LeftUser-0c88c240.mjs +105 -0
- package/LinkTableConfigModal-77d7c0b9.mjs +230 -0
- package/LinkTableFieldConfigModal-c5689ab0.mjs +178 -0
- package/LinkTableListPiece-34266919.mjs +34 -0
- package/ModalFormDemo-0eeea994.mjs +78 -0
- package/OnlCgformErpList-7a0388d8.mjs +425 -0
- package/OnlCgformErpSubTable-fc6ade76.mjs +388 -0
- package/OnlineAutoList-85e6a30d.mjs +472 -0
- package/OnlineAutoModal-2a146238.mjs +206 -0
- package/OnlineAutoTreeList-f8d0e100.mjs +495 -0
- package/OnlineCustomModal-456a85a6.mjs +227 -0
- package/OnlineDetailModal-f967f080.mjs +177 -0
- package/OnlineForm-630a22c2.mjs +778 -0
- package/OnlineFormDetail-1b216792.mjs +296 -0
- package/OnlineQueryForm-1c5949a7.mjs +378 -0
- package/OnlineSearchFormItem-7c2ea9ed.mjs +352 -0
- package/OnlineSelectCascade-c7baf52b.mjs +160 -0
- package/OnlineSubFormDetail-0aa4966c.mjs +140 -0
- package/PageAttributeTable-811185fd.mjs +404 -0
- package/ProcessOnlineForm-27be6f6f.mjs +177 -0
- package/QueryTable-4ba771ef.mjs +115 -0
- package/SuperQuery-3821f984.mjs +845 -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-fe20103a.mjs +6 -0
- package/enhance.api-138e6826.mjs +104 -0
- package/enhance.data-efc7e155.mjs +175 -0
- package/index-074b92e5.mjs +236 -0
- package/index-6a09a912.mjs +58 -0
- package/index-9d32ae88.mjs +313 -0
- package/main.index.js +7 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-2d6a5955.mjs +388 -0
- package/useExtendComponent-48d37d9b.mjs +3919 -0
- package/useListButton-cef1371a.mjs +656 -0
- package/useOnlinePopEvent-e9a042f8.mjs +19 -0
- package/useOnlineTest-0df0ae86.mjs +43 -0
- package/useSchemas-fc8d97ce.mjs +669 -0
- package/useTableSync-dc333087.mjs +83 -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 -524
- package/OnlineAutoModal.js +0 -226
- package/OnlineAutoTreeList.js +0 -553
- package/OnlineCustomModal.js +0 -286
- package/OnlineDetailModal.js +0 -190
- package/OnlineForm.js +0 -1018
- 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 -1021
- package/SuperQueryValComponent.js +0 -9
- package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -162
- 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,178 @@
|
|
|
1
|
+
var R = Object.defineProperty;
|
|
2
|
+
var w = Object.getOwnPropertySymbols;
|
|
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;
|
|
11
|
+
};
|
|
12
|
+
var p = (n, o, t) => new Promise((i, s) => {
|
|
13
|
+
var r = (a) => {
|
|
14
|
+
try {
|
|
15
|
+
d(t.next(a));
|
|
16
|
+
} catch (f) {
|
|
17
|
+
s(f);
|
|
18
|
+
}
|
|
19
|
+
}, c = (a) => {
|
|
20
|
+
try {
|
|
21
|
+
d(t.throw(a));
|
|
22
|
+
} catch (f) {
|
|
23
|
+
s(f);
|
|
24
|
+
}
|
|
25
|
+
}, d = (a) => a.done ? i(a.value) : Promise.resolve(a.value).then(r, c);
|
|
26
|
+
d((t = t.apply(n, o)).next());
|
|
27
|
+
});
|
|
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";
|
|
30
|
+
import { BasicForm as $, useForm as j } from "/@/components/Form/index";
|
|
31
|
+
import { defHttp as G } from "/@/utils/http/axios";
|
|
32
|
+
import { omit as z } from "lodash-es";
|
|
33
|
+
import { useMessage as D } from "/@/hooks/web/useMessage";
|
|
34
|
+
import { _ as E } from "./index-6a09a912.mjs";
|
|
35
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
36
|
+
import "vue-router";
|
|
37
|
+
const Q = {
|
|
38
|
+
name: "LinkTableFieldConfigModal",
|
|
39
|
+
emits: ["success", "register"],
|
|
40
|
+
components: {
|
|
41
|
+
BasicModal: P,
|
|
42
|
+
BasicForm: $
|
|
43
|
+
},
|
|
44
|
+
setup(n, { emit: o }) {
|
|
45
|
+
const t = b(!1), i = b([]), s = b([]);
|
|
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* () {
|
|
49
|
+
let l = z(e.record, "dictTable");
|
|
50
|
+
yield _(l), yield S();
|
|
51
|
+
}), 200);
|
|
52
|
+
}));
|
|
53
|
+
function C() {
|
|
54
|
+
return p(this, null, function* () {
|
|
55
|
+
let e = Object.keys(r);
|
|
56
|
+
if (!e || e.length == 0)
|
|
57
|
+
i.value = [];
|
|
58
|
+
else {
|
|
59
|
+
let l = [];
|
|
60
|
+
for (let m of e)
|
|
61
|
+
l.push({
|
|
62
|
+
text: r[m].title,
|
|
63
|
+
value: m
|
|
64
|
+
});
|
|
65
|
+
i.value = l;
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
function M(e) {
|
|
70
|
+
return p(this, null, function* () {
|
|
71
|
+
if (e) {
|
|
72
|
+
const { table: l, fields: m } = r[e];
|
|
73
|
+
if (!l) {
|
|
74
|
+
d.warning("请先完善字段[" + e + "]关联记录的配置");
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
const L = "/online/cgform/field/listByHeadCode", g = yield G.get({ url: L, params: { headCode: l } });
|
|
78
|
+
if (g && g.length > 0) {
|
|
79
|
+
let F = g.map((u) => ({
|
|
80
|
+
text: u.dbFieldTxt,
|
|
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);
|
|
86
|
+
} else
|
|
87
|
+
s.value = [];
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
const O = [
|
|
92
|
+
{
|
|
93
|
+
label: "rowKey",
|
|
94
|
+
field: "rowKey",
|
|
95
|
+
component: "Input",
|
|
96
|
+
show: !1
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
label: "字段描述",
|
|
100
|
+
field: "dbFieldTxt",
|
|
101
|
+
component: "Input",
|
|
102
|
+
required: !0
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
label: "关联记录",
|
|
106
|
+
field: "dictTable",
|
|
107
|
+
component: "JSearchSelect",
|
|
108
|
+
required: !0,
|
|
109
|
+
componentProps: ({ formActionType: e }) => ({
|
|
110
|
+
async: !1,
|
|
111
|
+
popContainer: ".link-table-field-config-modal",
|
|
112
|
+
dictOptions: i.value,
|
|
113
|
+
immediateChange: !0,
|
|
114
|
+
onChange: (m) => p(this, null, function* () {
|
|
115
|
+
c.dictText && (yield e.setFieldsValue({
|
|
116
|
+
dictText: ""
|
|
117
|
+
}), yield e.clearValidate()), M(m);
|
|
118
|
+
})
|
|
119
|
+
})
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
label: "显示字段",
|
|
123
|
+
field: "dictText",
|
|
124
|
+
component: "JSearchSelect",
|
|
125
|
+
required: !0,
|
|
126
|
+
componentProps: {
|
|
127
|
+
async: !1,
|
|
128
|
+
popContainer: ".link-table-field-config-modal",
|
|
129
|
+
dictOptions: s,
|
|
130
|
+
onChange: (e) => {
|
|
131
|
+
c.dictText = e;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
], [v, { validate: B, setFieldsValue: _, clearValidate: S }] = j({
|
|
136
|
+
schemas: O,
|
|
137
|
+
showActionButtonGroup: !1,
|
|
138
|
+
labelAlign: "right"
|
|
139
|
+
});
|
|
140
|
+
function V() {
|
|
141
|
+
return p(this, null, function* () {
|
|
142
|
+
const e = yield B();
|
|
143
|
+
console.log("handlesub", e), o("success", e), f();
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
return {
|
|
147
|
+
registerModal: a,
|
|
148
|
+
spinningLoading: t,
|
|
149
|
+
registerForm: v,
|
|
150
|
+
handleSubmit: V
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
};
|
|
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, {
|
|
157
|
+
title: "他表字段配置",
|
|
158
|
+
onRegister: i.registerModal,
|
|
159
|
+
keyboard: "",
|
|
160
|
+
canFullscreen: !1,
|
|
161
|
+
cancelText: "关闭",
|
|
162
|
+
onOk: i.handleSubmit
|
|
163
|
+
}), {
|
|
164
|
+
default: x(() => [
|
|
165
|
+
y(d, { spinning: i.spinningLoading }, {
|
|
166
|
+
default: x(() => [
|
|
167
|
+
y(c, { onRegister: i.registerForm }, null, 8, ["onRegister"])
|
|
168
|
+
]),
|
|
169
|
+
_: 1
|
|
170
|
+
}, 8, ["spinning"])
|
|
171
|
+
]),
|
|
172
|
+
_: 1
|
|
173
|
+
}, 16, ["onRegister", "onOk"]);
|
|
174
|
+
}
|
|
175
|
+
const le = /* @__PURE__ */ E(Q, [["render", U]]);
|
|
176
|
+
export {
|
|
177
|
+
le as default
|
|
178
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { defineComponent as i, resolveComponent as p, openBlock as a, createElementBlock as c, createVNode as l } from "vue";
|
|
2
|
+
import { BasicForm as d, useForm as u } from "/@/components/Form/index";
|
|
3
|
+
import { defHttp as f } from "/@/utils/http/axios";
|
|
4
|
+
import { pick as _ } from "lodash-es";
|
|
5
|
+
import { _ as g } from "./index-6a09a912.mjs";
|
|
6
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
7
|
+
import "/@/hooks/web/useMessage";
|
|
8
|
+
import "vue-router";
|
|
9
|
+
const h = () => [
|
|
10
|
+
{
|
|
11
|
+
field: "name",
|
|
12
|
+
component: "Input",
|
|
13
|
+
label: "名称"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
field: "age",
|
|
17
|
+
component: "InputNumber",
|
|
18
|
+
label: "年龄",
|
|
19
|
+
componentProps: {
|
|
20
|
+
style: {
|
|
21
|
+
width: "100%"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
field: "sex",
|
|
27
|
+
label: "性别",
|
|
28
|
+
component: "JDictSelectTag",
|
|
29
|
+
componentProps: {
|
|
30
|
+
dictCode: "sex"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
field: "birthday",
|
|
35
|
+
component: "DatePicker",
|
|
36
|
+
label: "生日",
|
|
37
|
+
componentProps: {
|
|
38
|
+
valueFormat: "YYYY-MM-DD",
|
|
39
|
+
style: {
|
|
40
|
+
width: "100%"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
field: "email",
|
|
46
|
+
component: "Input",
|
|
47
|
+
label: "邮箱"
|
|
48
|
+
}
|
|
49
|
+
], b = i({
|
|
50
|
+
components: { BasicForm: d },
|
|
51
|
+
props: ["id"],
|
|
52
|
+
setup(e) {
|
|
53
|
+
const [t, { setFieldsValue: r }] = u({
|
|
54
|
+
schemas: h(),
|
|
55
|
+
showActionButtonGroup: !1,
|
|
56
|
+
baseColProps: { span: 24 }
|
|
57
|
+
});
|
|
58
|
+
let n = { id: e.id };
|
|
59
|
+
return f.get({ url: "/test/jeecgDemo/queryById", params: n }, { isTransformResponse: !1 }).then((o) => {
|
|
60
|
+
if (o.success) {
|
|
61
|
+
let s = _(o.result, "name", "age", "birthday", "sex", "email");
|
|
62
|
+
r(s);
|
|
63
|
+
}
|
|
64
|
+
}), {
|
|
65
|
+
registerForm: t
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
}), F = { style: { margin: "50px auto", width: "800px" } };
|
|
69
|
+
function x(e, t, r, n, o, s) {
|
|
70
|
+
const m = p("BasicForm");
|
|
71
|
+
return a(), c("div", F, [
|
|
72
|
+
l(m, { onRegister: e.registerForm }, null, 8, ["onRegister"])
|
|
73
|
+
]);
|
|
74
|
+
}
|
|
75
|
+
const I = /* @__PURE__ */ g(b, [["render", x]]);
|
|
76
|
+
export {
|
|
77
|
+
I as default
|
|
78
|
+
};
|