@jeecg/online 3.7.1-RC → 3.7.4
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/AccountLoginForm-d2fed52f.mjs +254 -0
- package/AiModal-fbe4b68a.mjs +84 -0
- package/AppForgetPassword-3b3bec82.mjs +310 -0
- package/AppLogin-cd2e2a87.mjs +287 -0
- package/AppLoginHeader-9b5be678.mjs +27 -0
- package/AppNameEmail-b4e32ae8.mjs +180 -0
- package/AppRegister-7117b66a.mjs +303 -0
- package/AppTenant-5817729b.mjs +373 -0
- package/AppThirdForm-d14fb5e5.mjs +189 -0
- package/AuthButtonConfig-5e3b6d72.mjs +156 -0
- package/AuthButtonTree-7b4ec967.mjs +165 -0
- package/{AuthDataConfig-5c3a8e6b.mjs → AuthDataConfig-48ee9228.mjs} +23 -23
- package/{AuthDataTree-dd7a1240.mjs → AuthDataTree-02b3ba05.mjs} +43 -43
- package/{AuthFieldConfig-9f6fa06c.mjs → AuthFieldConfig-562cc6b6.mjs} +71 -71
- package/AuthFieldTree-2d458c0c.mjs +232 -0
- package/{AuthManagerDrawer-76f15e8d.mjs → AuthManagerDrawer-38299230.mjs} +6 -6
- package/{AuthSetterModal-f5d2e87f.mjs → AuthSetterModal-78b06703.mjs} +9 -9
- package/BuiltInButtonList-bb6cf95c.mjs +10 -0
- package/BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs +338 -0
- package/CgformAddressModal-1b9cbe19.mjs +260 -0
- package/CgformCopyList-580bba0f.mjs +252 -0
- package/{CgformModal-21c5c387.mjs → CgformModal-12951453.mjs} +190 -194
- package/{CgreportModal-edefa8e3.mjs → CgreportModal-bfeb93ed.mjs} +181 -168
- package/{CheckDictTable-1bc8322d.mjs → CheckDictTable-3c1e59e0.mjs} +3 -3
- package/CodeFileListModal-71752603.mjs +159 -0
- package/{CodeFileViewModal-2fe911f4.mjs → CodeFileViewModal-eb803769.mjs} +66 -66
- package/CodeGeneratorModal-2fe1e920.mjs +281 -0
- package/CustomButtonList-22b5cdb3.mjs +274 -0
- package/{DBAttributeTable-285d40db.mjs → DBAttributeTable-eb25565c.mjs} +3 -3
- package/{DbToOnlineModal-5dcb67c3.mjs → DbToOnlineModal-049b4bbd.mjs} +53 -54
- package/{DetailForm-deecbf3d.mjs → DetailForm-c127c27f.mjs} +5 -5
- package/DropMenuItem-b1a8f47d.mjs +44 -0
- package/{EnhanceJavaModal-45c66cd5.mjs → EnhanceJavaModal-1a4d696b.mjs} +62 -62
- package/{EnhanceJsHistory-fab3102e.mjs → EnhanceJsHistory-48cf43ad.mjs} +35 -35
- package/{EnhanceJsModal-175357a1.mjs → EnhanceJsModal-0e1f15f8.mjs} +102 -102
- package/{EnhanceSqlModal-7ea1b300.mjs → EnhanceSqlModal-6a1aa471.mjs} +67 -67
- package/ErrorTip-bb616e32.mjs +7 -0
- package/ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs +60 -0
- package/{ExtendConfigModal-a89ae052.mjs → ExtendConfigModal-37af21a5.mjs} +2 -2
- package/{FieldExtendJsonModal-32135634.mjs → FieldExtendJsonModal-9441e08e.mjs} +2 -2
- package/{FileSelectModal-1643c8b9.mjs → FileSelectModal-04490919.mjs} +23 -23
- package/{ForeignKeyTable-7f7e28a7.mjs → ForeignKeyTable-06300a47.mjs} +3 -3
- package/{IndexTable-cdcc2b48.mjs → IndexTable-79bddd5c.mjs} +3 -3
- package/JModalTip-192fafa1.mjs +49 -0
- package/{JOnlineSearchSelect-22aae934.mjs → JOnlineSearchSelect-9abcf657.mjs} +1 -1
- package/{LeftDepart-d5615ed9.mjs → LeftDepart-35d78655.mjs} +1 -1
- package/LeftRole-9d88976d.mjs +86 -0
- package/{LeftUser-22baa378.mjs → LeftUser-04c89aea.mjs} +30 -30
- package/{LinkTableConfigModal-9242d750.mjs → LinkTableConfigModal-5f94ef13.mjs} +43 -31
- package/{LinkTableFieldConfigModal-24adc50c.mjs → LinkTableFieldConfigModal-40753de5.mjs} +1 -1
- package/{LinkTableListPiece-f3a8e0d7.mjs → LinkTableListPiece-179035c7.mjs} +1 -1
- package/{ModalFormDemo-711418db.mjs → ModalFormDemo-3a85920c.mjs} +1 -1
- package/OnlCgformErpList-8fd15fc1.mjs +488 -0
- package/OnlCgformErpSubTable-3515150b.mjs +441 -0
- package/{OnlCgformInnerSubTable-6c23781f.mjs → OnlCgformInnerSubTable-13e888c6.mjs} +38 -38
- package/OnlCgformInnerTableList-2e8f853c.mjs +474 -0
- package/OnlCgformTabList-583ac15f.mjs +424 -0
- package/OnlineAutoList-36ec0957.mjs +513 -0
- package/OnlineAutoModal-c0743caf.mjs +260 -0
- package/OnlineAutoTreeList-1cd718be.mjs +523 -0
- package/OnlineCustomModal-661ee850.mjs +232 -0
- package/{OnlineDetailModal-d5895734.mjs → OnlineDetailModal-785e848e.mjs} +74 -65
- package/OnlineForm-c1fb38eb.mjs +1012 -0
- package/{OnlineFormDetail-022ca117.mjs → OnlineFormDetail-50186870.mjs} +7 -7
- package/{OnlineFormUrlAdd-9715d70a.mjs → OnlineFormUrlAdd-905bf251.mjs} +9 -9
- package/{OnlineFormUrlDetail-8f864b1a.mjs → OnlineFormUrlDetail-a9dd2bfa.mjs} +11 -11
- package/{OnlineFormUrlEdit-ac985b36.mjs → OnlineFormUrlEdit-b8941f05.mjs} +9 -9
- package/OnlineFormUrlSuccess-ecaf6a21.mjs +59 -0
- package/OnlineQueryForm-ca6186a3.mjs +484 -0
- package/{OnlineSearchFormItem-6c557343.mjs → OnlineSearchFormItem-5c503a51.mjs} +82 -82
- package/{OnlineSelectCascade-05c40fef.mjs → OnlineSelectCascade-a3e686b3.mjs} +1 -1
- package/{OnlineSubFormDetail-58e896ce.mjs → OnlineSubFormDetail-be1ad3b9.mjs} +52 -53
- package/{OnlineTabAutoModal-47b18ad6.mjs → OnlineTabAutoModal-fb59b573.mjs} +108 -95
- package/{OnlineTabDetailModal-82de1465.mjs → OnlineTabDetailModal-4b9c4838.mjs} +36 -36
- package/OnlineTabForm-89389384.mjs +814 -0
- package/{OnlineTabFormDetail-8d0c40c0.mjs → OnlineTabFormDetail-72173ae4.mjs} +17 -17
- package/{PageAttributeTable-25e3b7da.mjs → PageAttributeTable-345b97fe.mjs} +108 -108
- package/PhoneLoginForm-8ca7e2d4.mjs +214 -0
- package/{ProcessOnlineForm-148632fe.mjs → ProcessOnlineForm-485b5679.mjs} +32 -32
- package/{QueryTable-f7bfca7f.mjs → QueryTable-f0a88d78.mjs} +3 -3
- package/SetSwitchOptions-cdcb22a1.mjs +62 -0
- package/ShareAddView-f713c0a5.mjs +86 -0
- package/ShareEditView-691764ad.mjs +92 -0
- package/ShareView-df344a8d.mjs +80 -0
- package/ShareView.vue_vue_type_script_setup_true_lang-560459c9.mjs +162 -0
- package/SingleView-ad0287d6.mjs +68 -0
- package/SingleView.vue_vue_type_style_index_0_lang-ce96670b.mjs +131 -0
- package/SuperQuery-2b293e3b.mjs +974 -0
- package/{SuperQueryValComponent-7ad86d4b.mjs → SuperQueryValComponent-5a9ccfd4.mjs} +1 -1
- package/{SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs → SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs} +11 -11
- package/{auth.api-ea1d33d4.mjs → auth.api-53df4c33.mjs} +17 -17
- package/{auth.data-511e5197.mjs → auth.data-626c5083.mjs} +16 -12
- package/{cgform.data-475d4984.mjs → cgform.data-0ca62d09.mjs} +4 -1
- package/{enhance.data-a67572e1.mjs → enhance.data-6601ff44.mjs} +1 -1
- package/index-181f8344.mjs +219 -0
- package/index-19eaef11.mjs +11 -0
- package/{index-30e0e923.mjs → index-3c7392a4.mjs} +272 -262
- package/{index-f30613d1.mjs → index-3ccda826.mjs} +59 -59
- package/index-5e89258d.mjs +8 -0
- package/index-93341e02.mjs +110 -0
- package/index-bef7fe2d.mjs +74 -0
- package/index-d6f9ada7.mjs +135 -0
- package/index-f3683351.mjs +57 -0
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/shareStore-7de6c7a6.mjs +67 -0
- package/style.css +1 -1
- package/useCgformList-13c8aab7.mjs +378 -0
- package/useExtendComponent-3f5734ca.mjs +4459 -0
- package/useListButton-ee23874a.mjs +719 -0
- package/{useSchemas-a9c75b0f.mjs → useSchemas-f1819e54.mjs} +72 -39
- package/{useTableSync-d7e9f18d.mjs → useTableSync-075826a1.mjs} +1 -1
- package/utils-9fce7606.mjs +16 -0
- package/AiModal-6de335e3.mjs +0 -84
- package/AuthButtonConfig-89763932.mjs +0 -154
- package/AuthButtonTree-2d87d0b3.mjs +0 -157
- package/AuthFieldTree-e326fc38.mjs +0 -232
- package/CgformCopyList-365b3e8f.mjs +0 -251
- package/CodeFileListModal-24601898.mjs +0 -159
- package/CodeGeneratorModal-f09fe903.mjs +0 -282
- package/CustomButtonList-f07bc695.mjs +0 -397
- package/JModalTip-b055ab60.mjs +0 -49
- package/LeftRole-2ed8a2bf.mjs +0 -86
- package/OnlCgformErpList-58acdfa0.mjs +0 -470
- package/OnlCgformErpSubTable-9b1e1938.mjs +0 -426
- package/OnlCgformInnerTableList-4b5e14ed.mjs +0 -458
- package/OnlCgformTabList-019ad753.mjs +0 -408
- package/OnlineAutoList-48589d09.mjs +0 -493
- package/OnlineAutoModal-c2928847.mjs +0 -239
- package/OnlineAutoTreeList-3baa1d00.mjs +0 -503
- package/OnlineCustomModal-9e17b6ce.mjs +0 -232
- package/OnlineForm-9f1153ba.mjs +0 -985
- package/OnlineFormUrlSuccess-3dfc54ab.mjs +0 -59
- package/OnlineQueryForm-eedb9a60.mjs +0 -466
- package/OnlineTabForm-27655c83.mjs +0 -817
- package/SetSwitchOptions-b2af757f.mjs +0 -62
- package/SuperQuery-a8592995.mjs +0 -967
- package/index-1d1a6e56.mjs +0 -57
- package/useCgformList-f41d4dc1.mjs +0 -426
- package/useExtendComponent-dcae5c78.mjs +0 -4399
- package/useListButton-bfac4ecf.mjs +0 -697
- /package/{OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs} +0 -0
|
@@ -0,0 +1,484 @@
|
|
|
1
|
+
var ke = Object.defineProperty, Se = Object.defineProperties;
|
|
2
|
+
var De = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var ee = Object.getOwnPropertySymbols;
|
|
4
|
+
var Ye = Object.prototype.hasOwnProperty, Oe = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var te = (h, f, l) => f in h ? ke(h, f, { enumerable: !0, configurable: !0, writable: !0, value: l }) : h[f] = l, v = (h, f) => {
|
|
6
|
+
for (var l in f || (f = {}))
|
|
7
|
+
Ye.call(f, l) && te(h, l, f[l]);
|
|
8
|
+
if (ee)
|
|
9
|
+
for (var l of ee(f))
|
|
10
|
+
Oe.call(f, l) && te(h, l, f[l]);
|
|
11
|
+
return h;
|
|
12
|
+
}, q = (h, f) => Se(h, De(f));
|
|
13
|
+
var P = (h, f, l) => new Promise((d, b) => {
|
|
14
|
+
var B = (_) => {
|
|
15
|
+
try {
|
|
16
|
+
F(l.next(_));
|
|
17
|
+
} catch (D) {
|
|
18
|
+
b(D);
|
|
19
|
+
}
|
|
20
|
+
}, j = (_) => {
|
|
21
|
+
try {
|
|
22
|
+
F(l.throw(_));
|
|
23
|
+
} catch (D) {
|
|
24
|
+
b(D);
|
|
25
|
+
}
|
|
26
|
+
}, F = (_) => _.done ? d(_.value) : Promise.resolve(_.value).then(B, j);
|
|
27
|
+
F((l = l.apply(h, f)).next());
|
|
28
|
+
});
|
|
29
|
+
import { BasicForm as Fe, useForm as xe } from "/@/components/Form/index";
|
|
30
|
+
import { ref as C, reactive as ve, watch as A, toRaw as G, resolveComponent as M, openBlock as R, createElementBlock as oe, createVNode as N, withCtx as I, mergeProps as re, createElementVNode as H, createBlock as ne, toDisplayString as W, createCommentVNode as Q, createTextVNode as Pe } from "vue";
|
|
31
|
+
import { defHttp as Ce } from "/@/utils/http/axios";
|
|
32
|
+
import { useMessage as Ie } from "/@/hooks/web/useMessage";
|
|
33
|
+
import { i as Ve, g as je, n as ae, o as Me, F as K, p as Ne, q as Le, r as se, j as V } from "./useExtendComponent-3f5734ca.mjs";
|
|
34
|
+
import { L as Be } from "./constant-fa63bd66.mjs";
|
|
35
|
+
import "/@/utils/common/compUtils";
|
|
36
|
+
import Ee from "/@/components/Form/src/jeecg/components/JRangeNumber.vue";
|
|
37
|
+
import { _ as Je } from "./index-f3683351.mjs";
|
|
38
|
+
import "/@/components/Form/src/componentMap";
|
|
39
|
+
import "/@/utils/propTypes";
|
|
40
|
+
import "@ant-design/icons-vue";
|
|
41
|
+
import "/@/components/Modal";
|
|
42
|
+
import "lodash-es";
|
|
43
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
44
|
+
import "/@/utils/is";
|
|
45
|
+
import "/@/views/system/user/user.api";
|
|
46
|
+
import "/@/store/modules/user";
|
|
47
|
+
import "/@/utils";
|
|
48
|
+
import "/@/utils/desform/customExpression";
|
|
49
|
+
import "/@/store/modules/permission";
|
|
50
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
51
|
+
import "/@/components/Table";
|
|
52
|
+
import "/@/hooks/system/useListPage";
|
|
53
|
+
import "vue-router";
|
|
54
|
+
import "/@/components/Form/src/utils/Area";
|
|
55
|
+
import "/@/components/Preview/index";
|
|
56
|
+
import "./LinkTableListPiece-179035c7.mjs";
|
|
57
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
58
|
+
import "/@/utils/auth";
|
|
59
|
+
import "/@/api/common/api";
|
|
60
|
+
import "/@/hooks/web/useAppInject";
|
|
61
|
+
import "/@/assets/images/placeholderImage.png";
|
|
62
|
+
import "./OnlineSelectCascade-a3e686b3.mjs";
|
|
63
|
+
import "/@/components/Loading";
|
|
64
|
+
import "./JModalTip-192fafa1.mjs";
|
|
65
|
+
import "ant-design-vue";
|
|
66
|
+
import "@vueuse/core";
|
|
67
|
+
const qe = {
|
|
68
|
+
name: "OnlineQueryForm",
|
|
69
|
+
components: {
|
|
70
|
+
BasicForm: Fe,
|
|
71
|
+
JRangeNumber: Ee
|
|
72
|
+
},
|
|
73
|
+
props: {
|
|
74
|
+
id: {
|
|
75
|
+
type: String,
|
|
76
|
+
default: ""
|
|
77
|
+
},
|
|
78
|
+
queryBtnCfg: {
|
|
79
|
+
type: Object,
|
|
80
|
+
default: () => ({
|
|
81
|
+
enabled: !0,
|
|
82
|
+
buttonName: "查询",
|
|
83
|
+
buttonIcon: "ant-design:search"
|
|
84
|
+
})
|
|
85
|
+
},
|
|
86
|
+
resetBtnCfg: {
|
|
87
|
+
type: Object,
|
|
88
|
+
default: () => ({
|
|
89
|
+
enabled: !0,
|
|
90
|
+
buttonName: "重置",
|
|
91
|
+
buttonIcon: "ant-design:reload"
|
|
92
|
+
})
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
emits: ["search", "loaded"],
|
|
96
|
+
setup(h, { emit: f }) {
|
|
97
|
+
const l = "/online/cgform/api/getQueryInfoVue3/", d = C(null), b = C([]), B = C({ xs: 24, sm: 24, md: 12, lg: 6, xl: 6 }), j = C(!1), F = C(!1), _ = C({}), D = C([]), { createMessage: E } = Ie(), { linkTableCard2Select: T } = Ve(), J = C(80), c = ve({
|
|
98
|
+
config: {},
|
|
99
|
+
cache: {},
|
|
100
|
+
param: {},
|
|
101
|
+
status: !1
|
|
102
|
+
});
|
|
103
|
+
A(
|
|
104
|
+
() => c.status,
|
|
105
|
+
(e) => P(this, null, function* () {
|
|
106
|
+
const { config: t, cache: o, param: r } = G(c);
|
|
107
|
+
let n = Object.assign({}, t, o, r);
|
|
108
|
+
yield le(n);
|
|
109
|
+
}),
|
|
110
|
+
{ immediate: !0, deep: !0 }
|
|
111
|
+
);
|
|
112
|
+
function y(e, t) {
|
|
113
|
+
return P(this, null, function* () {
|
|
114
|
+
c.cache = v({}, e), c.param = v({}, t), c.status = !c.status;
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
A(
|
|
118
|
+
() => h.id,
|
|
119
|
+
(e) => {
|
|
120
|
+
e ? ie() : b.value = [];
|
|
121
|
+
},
|
|
122
|
+
{ immediate: !0 }
|
|
123
|
+
);
|
|
124
|
+
function w(e) {
|
|
125
|
+
return P(this, null, function* () {
|
|
126
|
+
var a, g, k, Y;
|
|
127
|
+
let t = [], o = {}, r = Object.keys(e), n = -1;
|
|
128
|
+
for (let p of r) {
|
|
129
|
+
const i = e[p];
|
|
130
|
+
p === "sys_org_code" && (i.fieldExtendJson || (i.fieldExtendJson = '{"store":"orgCode"}'));
|
|
131
|
+
let u = i.view;
|
|
132
|
+
if (i.originView = i.view, ae[u] && (i.view = ae[u]), yield Me(p, i, o), i.mode == "group" && (u == "date" || u == "datetime" || u == "number" || u == "time")) {
|
|
133
|
+
let x = K.createSlotFormSchema(p, i);
|
|
134
|
+
t.push(x);
|
|
135
|
+
} else if (i.view === Ne) {
|
|
136
|
+
let x = Le(i, p);
|
|
137
|
+
for (let O of x) {
|
|
138
|
+
let Z = K.createFormSchema(O.key, O), $ = se(t, O.key);
|
|
139
|
+
$ == -1 ? t.push(Z) : t[$] = Z;
|
|
140
|
+
}
|
|
141
|
+
} else if (se(t, p) == -1) {
|
|
142
|
+
let O = K.createFormSchema(p, i);
|
|
143
|
+
t.push(O);
|
|
144
|
+
}
|
|
145
|
+
let S = i.fieldExtendJson;
|
|
146
|
+
S && (S = JSON.parse(S), S.labelLength && (n > -1 ? n = S.labelLength > n ? S.labelLength : n : n = S.labelLength));
|
|
147
|
+
}
|
|
148
|
+
n == -1 ? n = Be : t.forEach((p) => {
|
|
149
|
+
p.labelLength = n;
|
|
150
|
+
}), t.sort(function(p, i) {
|
|
151
|
+
return p.order - i.order;
|
|
152
|
+
});
|
|
153
|
+
let s = [];
|
|
154
|
+
t.length > 2 && (j.value = !0);
|
|
155
|
+
let m = [];
|
|
156
|
+
for (let p = 0; p < t.length; p++) {
|
|
157
|
+
let i = t[p];
|
|
158
|
+
i.setFormRef(d), i.noChange(), i.asSearchForm(), p > 1 && (m.push(i.field), i.isHidden());
|
|
159
|
+
let u = i.getFormItemSchema();
|
|
160
|
+
if (i.slot == "groupDatetime" && t.length <= 3 && (u.colProps = { xs: 24, sm: 24, md: 12, lg: 8, xl: 8 }), u.component === "JSwitch") {
|
|
161
|
+
const O = (a = u.componentProps) != null ? a : {};
|
|
162
|
+
u.componentProps = q(v({}, O), { query: !0 });
|
|
163
|
+
}
|
|
164
|
+
if (T(u), u.component === "LinkTableSelect") {
|
|
165
|
+
let O = (g = u.componentProps) != null ? g : {};
|
|
166
|
+
u.componentProps = q(v({}, O), { editBtnShow: !1 });
|
|
167
|
+
}
|
|
168
|
+
const S = (k = u.componentProps) != null ? k : {};
|
|
169
|
+
S.getPopupContainer || (u.componentProps = q(v({}, S), { getPopupContainer: () => document.body }));
|
|
170
|
+
const x = (Y = e[u.field]) != null ? Y : {};
|
|
171
|
+
x.mode == "like" && x.view === "text" && x.originView === "text" && (u.component = "JInput"), s.push(u);
|
|
172
|
+
}
|
|
173
|
+
D.value = m, b.value = s, c.config = v({}, o), c.status = !c.status, setTimeout(() => {
|
|
174
|
+
const p = n * 14 + n + 24;
|
|
175
|
+
J.value = p;
|
|
176
|
+
}, 0);
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
const L = (e) => {
|
|
180
|
+
const t = e.properties;
|
|
181
|
+
t && Object.entries(t).forEach(([o, r]) => {
|
|
182
|
+
const n = r;
|
|
183
|
+
if (["date_year", "date_month", "date_week", "date_quarter"].includes(n.view)) {
|
|
184
|
+
const s = n.fieldExtendJson ? JSON.parse(n.fieldExtendJson) : {};
|
|
185
|
+
s.picker = n.view.split("_")[1], n.fieldExtendJson = JSON.stringify(s), n.view = "date";
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
};
|
|
189
|
+
function ie() {
|
|
190
|
+
return P(this, null, function* () {
|
|
191
|
+
let e = yield ue();
|
|
192
|
+
L(e);
|
|
193
|
+
let t = me(e);
|
|
194
|
+
f("loaded", e);
|
|
195
|
+
let { formProperties: o, hasField: r } = ce(t, e);
|
|
196
|
+
if (r == !1) {
|
|
197
|
+
b.value = [];
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
yield w(o);
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
function le(e) {
|
|
204
|
+
return P(this, null, function* () {
|
|
205
|
+
yield je(d);
|
|
206
|
+
const t = he(e);
|
|
207
|
+
yield z(t), Object.keys(t).length > 0 && U();
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
function ce(e, t) {
|
|
211
|
+
const { searchFieldList: o, joinQuery: r, table: n } = t;
|
|
212
|
+
let s = !1, m = {};
|
|
213
|
+
return e && Object.keys(e).map((a) => {
|
|
214
|
+
o.indexOf(a) >= 0 && (r == !0 ? a.indexOf("@") < 0 ? (m[n + "@" + a] = e[a], s = !0) : (m[a] = e[a], s = !0) : a.indexOf("@") < 0 && (m[a] = e[a], s = !0));
|
|
215
|
+
}), {
|
|
216
|
+
formProperties: m,
|
|
217
|
+
hasField: s
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
function me(e) {
|
|
221
|
+
const { properties: t, searchFieldList: o, joinQuery: r, table: n } = e;
|
|
222
|
+
let s = {}, m = 1;
|
|
223
|
+
return Object.keys(t).map((a) => {
|
|
224
|
+
let g = t[a];
|
|
225
|
+
if (g.view == "table") {
|
|
226
|
+
let k = g.properties, Y = m * 100;
|
|
227
|
+
Object.keys(k).map((p) => {
|
|
228
|
+
let i = k[p];
|
|
229
|
+
i.order = Y + Number(i.order);
|
|
230
|
+
let u = a + "@" + p;
|
|
231
|
+
s[u] = i;
|
|
232
|
+
}), m++;
|
|
233
|
+
} else
|
|
234
|
+
g.order = Number(g.order), s[a] = g;
|
|
235
|
+
}), s;
|
|
236
|
+
}
|
|
237
|
+
function ue() {
|
|
238
|
+
let e = `${l}${h.id}`;
|
|
239
|
+
return new Promise((t) => {
|
|
240
|
+
Ce.get({ url: e }, { isTransformResponse: !1 }).then((o) => {
|
|
241
|
+
o.success ? t(o.result) : (t(!1), E.warning(o.message));
|
|
242
|
+
}).catch(() => {
|
|
243
|
+
E.warning("获取查询条件失败!"), t(!1);
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
const [fe, { resetFields: pe, setFieldsValue: z, updateSchema: de, getFieldsValue: ge }] = xe({
|
|
248
|
+
name: "online-query-form",
|
|
249
|
+
schemas: b,
|
|
250
|
+
showActionButtonGroup: !1,
|
|
251
|
+
baseColProps: B,
|
|
252
|
+
autoSubmitOnEnter: !0,
|
|
253
|
+
labelWidth: J,
|
|
254
|
+
wrapperCol: null,
|
|
255
|
+
submitFunc() {
|
|
256
|
+
U();
|
|
257
|
+
}
|
|
258
|
+
/* labelCol: ONL_QUERY_LABEL_COL,
|
|
259
|
+
wrapperCol: ONL_QUERY_WRAPPER_COL*/
|
|
260
|
+
});
|
|
261
|
+
function U() {
|
|
262
|
+
let e = ge();
|
|
263
|
+
be(e), ye(e);
|
|
264
|
+
let t = Object.assign({}, G(c.param), we(e));
|
|
265
|
+
f("search", t, !0);
|
|
266
|
+
}
|
|
267
|
+
const he = (e) => {
|
|
268
|
+
const t = v({}, e), o = b.value.filter((r) => ["groupTime", "groupDatetime", "groupNumber", "groupDate"].includes(r.slot));
|
|
269
|
+
return o.length && Object.keys(t).forEach((r) => {
|
|
270
|
+
let n;
|
|
271
|
+
if (o.find((m) => m.field === r ? (n = r, !0) : !1)) {
|
|
272
|
+
const m = t[n];
|
|
273
|
+
if (typeof m == "string") {
|
|
274
|
+
const a = m.split(",");
|
|
275
|
+
t[n] = [...a];
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}), t;
|
|
279
|
+
}, ye = (e) => {
|
|
280
|
+
if (e) {
|
|
281
|
+
const t = b.value.filter((o) => ["groupTime", "groupDatetime", "groupDate", "groupNumber"].includes(o.slot));
|
|
282
|
+
t.length && Object.keys(e).forEach((o) => {
|
|
283
|
+
let r;
|
|
284
|
+
if (t.find((s) => s.field === o ? (r = o, !0) : !1)) {
|
|
285
|
+
const s = e[r];
|
|
286
|
+
if (typeof s == "string") {
|
|
287
|
+
const m = s.split(",");
|
|
288
|
+
e[`${r}_begin`] = m[0], e[`${r}_end`] = m[1], delete e[r];
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
}, be = (e) => {
|
|
294
|
+
const t = b.value.filter((o) => {
|
|
295
|
+
var r;
|
|
296
|
+
return ((r = o.componentProps) == null ? void 0 : r.picker) && o.componentProps.picker != "default";
|
|
297
|
+
});
|
|
298
|
+
t.length && Object.keys(e).forEach((o) => {
|
|
299
|
+
let r;
|
|
300
|
+
const n = t.find((s) => s.field === o || `${s.field}_begin` === o || `${s.field}_end` === o ? (r = o, !0) : !1);
|
|
301
|
+
if (n) {
|
|
302
|
+
const s = e[r];
|
|
303
|
+
if (s) {
|
|
304
|
+
const m = (a, g, k) => {
|
|
305
|
+
const Y = n.componentProps.picker;
|
|
306
|
+
Y === "year" ? k ? e[g] = V(a).endOf("year").format("YYYY-MM-DD") : e[g] = V(a).startOf("year").format("YYYY-MM-DD") : Y === "month" ? k ? e[g] = V(a).endOf("month").format("YYYY-MM-DD") : e[g] = V(a).startOf("month").format("YYYY-MM-DD") : Y === "week" ? k ? e[g] = V(a).endOf("week").format("YYYY-MM-DD") : e[g] = V(a).startOf("week").format("YYYY-MM-DD") : Y === "quarter" && (k ? e[g] = V(a).endOf("quarter").format("YYYY-MM-DD") : e[g] = V(a).startOf("quarter").format("YYYY-MM-DD"));
|
|
307
|
+
};
|
|
308
|
+
if ((n == null ? void 0 : n.slot) === "groupDate") {
|
|
309
|
+
const a = s.split(",");
|
|
310
|
+
m(a[0], `${r}_begin`, !1), m(a[1], `${r}_end`, !0), delete e[r];
|
|
311
|
+
} else
|
|
312
|
+
m(s, r, !1);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
});
|
|
316
|
+
};
|
|
317
|
+
function X() {
|
|
318
|
+
return P(this, null, function* () {
|
|
319
|
+
yield pe();
|
|
320
|
+
const { config: e, param: t } = G(c);
|
|
321
|
+
let o = Object.assign({}, e, t);
|
|
322
|
+
return Object.keys(o).length > 0 && (yield z(o)), o;
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
function _e() {
|
|
326
|
+
return P(this, null, function* () {
|
|
327
|
+
const e = yield X();
|
|
328
|
+
f("search", e, !1);
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
function we(e) {
|
|
332
|
+
return Object.keys(e).map((t) => {
|
|
333
|
+
e[t] && e[t] instanceof Array && (e[t] = e[t].join(","));
|
|
334
|
+
}), e;
|
|
335
|
+
}
|
|
336
|
+
return A(
|
|
337
|
+
() => F.value,
|
|
338
|
+
(e) => {
|
|
339
|
+
let t = D.value;
|
|
340
|
+
if (t && t.length > 0) {
|
|
341
|
+
let o = [];
|
|
342
|
+
for (let r of t)
|
|
343
|
+
o.push({
|
|
344
|
+
field: r,
|
|
345
|
+
show: e
|
|
346
|
+
});
|
|
347
|
+
de(o);
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
{ immediate: !1 }
|
|
351
|
+
), {
|
|
352
|
+
onlineQueryFormRef: d,
|
|
353
|
+
registerForm: fe,
|
|
354
|
+
initDefaultValues: y,
|
|
355
|
+
toggleButtonShow: j,
|
|
356
|
+
toggleSearchStatus: F,
|
|
357
|
+
doSearch: U,
|
|
358
|
+
resetSearch: _e,
|
|
359
|
+
queryParams: _,
|
|
360
|
+
formSchemas: b,
|
|
361
|
+
clearSearch: X,
|
|
362
|
+
getGroupDatePlaceholder: (e) => {
|
|
363
|
+
let t = ["开始日期", "结束日期"];
|
|
364
|
+
if (e != null && e.picker)
|
|
365
|
+
switch (e == null ? void 0 : e.picker) {
|
|
366
|
+
case "year":
|
|
367
|
+
t = ["开始年份", "结束年份"];
|
|
368
|
+
break;
|
|
369
|
+
case "month":
|
|
370
|
+
t = ["开始月份", "结束月份"];
|
|
371
|
+
break;
|
|
372
|
+
case "week":
|
|
373
|
+
t = ["开始周", "结束周"];
|
|
374
|
+
break;
|
|
375
|
+
case "quarter":
|
|
376
|
+
t = ["开始季度", "结束季度"];
|
|
377
|
+
break;
|
|
378
|
+
default:
|
|
379
|
+
t = ["开始日期", "结束日期"];
|
|
380
|
+
}
|
|
381
|
+
return t;
|
|
382
|
+
}
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
}, Re = {
|
|
386
|
+
key: 0,
|
|
387
|
+
class: "jeecg-basic-table-form-container online-query-form p-0"
|
|
388
|
+
}, Qe = {
|
|
389
|
+
style: { float: "left", overflow: "hidden", "margin-left": "10px" },
|
|
390
|
+
class: "table-page-search-submitButtons"
|
|
391
|
+
};
|
|
392
|
+
function Te(h, f, l, d, b, B) {
|
|
393
|
+
const j = M("a-range-picker"), F = M("a-time-range-picker"), _ = M("JRangeNumber"), D = M("a-button"), E = M("a-icon"), T = M("a-col"), J = M("BasicForm");
|
|
394
|
+
return d.formSchemas && d.formSchemas.length > 0 ? (R(), oe("div", Re, [
|
|
395
|
+
N(J, {
|
|
396
|
+
ref: "onlineQueryFormRef",
|
|
397
|
+
onRegister: d.registerForm
|
|
398
|
+
}, {
|
|
399
|
+
groupDate: I(({ model: c, field: y, schema: w }) => [
|
|
400
|
+
N(j, re({
|
|
401
|
+
style: { width: "100%" },
|
|
402
|
+
value: c[y],
|
|
403
|
+
"onUpdate:value": (L) => c[y] = L
|
|
404
|
+
}, w.componentProps, {
|
|
405
|
+
placeholder: d.getGroupDatePlaceholder(w.componentProps),
|
|
406
|
+
valueFormat: "YYYY-MM-DD"
|
|
407
|
+
}), null, 16, ["value", "onUpdate:value", "placeholder"])
|
|
408
|
+
]),
|
|
409
|
+
groupDatetime: I(({ model: c, field: y }) => [
|
|
410
|
+
N(j, {
|
|
411
|
+
style: { width: "100%" },
|
|
412
|
+
value: c[y],
|
|
413
|
+
"onUpdate:value": (w) => c[y] = w,
|
|
414
|
+
"show-time": !0,
|
|
415
|
+
valueFormat: "YYYY-MM-DD HH:mm:ss"
|
|
416
|
+
}, null, 8, ["value", "onUpdate:value"])
|
|
417
|
+
]),
|
|
418
|
+
groupTime: I(({ model: c, field: y }) => [
|
|
419
|
+
N(F, {
|
|
420
|
+
style: { width: "100%" },
|
|
421
|
+
value: c[y],
|
|
422
|
+
"onUpdate:value": (w) => c[y] = w,
|
|
423
|
+
"value-format": "HH:mm:ss"
|
|
424
|
+
}, null, 8, ["value", "onUpdate:value"])
|
|
425
|
+
]),
|
|
426
|
+
groupNumber: I(({ model: c, field: y, schema: w }) => [
|
|
427
|
+
N(_, re({
|
|
428
|
+
value: c[y],
|
|
429
|
+
"onUpdate:value": (L) => c[y] = L
|
|
430
|
+
}, w.componentProps), null, 16, ["value", "onUpdate:value"])
|
|
431
|
+
]),
|
|
432
|
+
formFooter: I(() => [
|
|
433
|
+
N(T, {
|
|
434
|
+
md: 6,
|
|
435
|
+
sm: 8
|
|
436
|
+
}, {
|
|
437
|
+
default: I(() => [
|
|
438
|
+
H("span", Qe, [
|
|
439
|
+
l.queryBtnCfg.enabled ? (R(), ne(D, {
|
|
440
|
+
key: 0,
|
|
441
|
+
type: "primary",
|
|
442
|
+
preIcon: l.queryBtnCfg.buttonIcon,
|
|
443
|
+
onClick: d.doSearch
|
|
444
|
+
}, {
|
|
445
|
+
default: I(() => [
|
|
446
|
+
H("span", null, W(l.queryBtnCfg.buttonName), 1)
|
|
447
|
+
]),
|
|
448
|
+
_: 1
|
|
449
|
+
}, 8, ["preIcon", "onClick"])) : Q("", !0),
|
|
450
|
+
l.resetBtnCfg.enabled ? (R(), ne(D, {
|
|
451
|
+
key: 1,
|
|
452
|
+
type: "primary",
|
|
453
|
+
preIcon: l.resetBtnCfg.buttonIcon,
|
|
454
|
+
style: { "margin-left": "8px" },
|
|
455
|
+
onClick: d.resetSearch
|
|
456
|
+
}, {
|
|
457
|
+
default: I(() => [
|
|
458
|
+
H("span", null, W(l.resetBtnCfg.buttonName), 1)
|
|
459
|
+
]),
|
|
460
|
+
_: 1
|
|
461
|
+
}, 8, ["preIcon", "onClick"])) : Q("", !0),
|
|
462
|
+
d.toggleButtonShow ? (R(), oe("a", {
|
|
463
|
+
key: 2,
|
|
464
|
+
onClick: f[0] || (f[0] = (c) => d.toggleSearchStatus = !d.toggleSearchStatus),
|
|
465
|
+
style: { "margin-left": "8px" }
|
|
466
|
+
}, [
|
|
467
|
+
Pe(W(d.toggleSearchStatus ? "收起" : "展开") + " ", 1),
|
|
468
|
+
N(E, {
|
|
469
|
+
type: d.toggleSearchStatus ? "up" : "down"
|
|
470
|
+
}, null, 8, ["type"])
|
|
471
|
+
])) : Q("", !0)
|
|
472
|
+
])
|
|
473
|
+
]),
|
|
474
|
+
_: 1
|
|
475
|
+
})
|
|
476
|
+
]),
|
|
477
|
+
_: 1
|
|
478
|
+
}, 8, ["onRegister"])
|
|
479
|
+
])) : Q("", !0);
|
|
480
|
+
}
|
|
481
|
+
const Ct = /* @__PURE__ */ Je(qe, [["render", Te], ["__scopeId", "data-v-04f16c27"]]);
|
|
482
|
+
export {
|
|
483
|
+
Ct as default
|
|
484
|
+
};
|