@jeecg/online 3.7.0-beta → 3.7.4-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/AccountLoginForm-84cbd344.mjs +254 -0
- package/AiModal-26903538.mjs +84 -0
- package/AppForgetPassword-52443f23.mjs +310 -0
- package/AppLogin-ecf798fa.mjs +287 -0
- package/AppLoginHeader-4432c584.mjs +27 -0
- package/AppNameEmail-3303a037.mjs +180 -0
- package/AppRegister-79a62c59.mjs +303 -0
- package/AppTenant-f0bef7ca.mjs +373 -0
- package/AppThirdForm-fd8b4604.mjs +189 -0
- package/AuthButtonConfig-d5bffca0.mjs +156 -0
- package/AuthButtonTree-b0bd6c40.mjs +165 -0
- package/{AuthDataConfig-7bb0cd85.mjs → AuthDataConfig-d3b7afa4.mjs} +30 -29
- package/{AuthDataTree-6e3bb86f.mjs → AuthDataTree-f14a98d9.mjs} +47 -47
- package/AuthFieldConfig-f1e224cc.mjs +245 -0
- package/AuthFieldTree-5cc0da05.mjs +232 -0
- package/{AuthManagerDrawer-5e2ed5ce.mjs → AuthManagerDrawer-32556109.mjs} +9 -8
- package/{AuthSetterModal-6f74449c.mjs → AuthSetterModal-364f1f67.mjs} +12 -11
- package/BuiltInButtonList-bb6cf95c.mjs +10 -0
- package/BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs +338 -0
- package/CgformAddressModal-1131274c.mjs +260 -0
- package/CgformCopyList-5fba0810.mjs +252 -0
- package/CgformModal-c4a4e0c2.mjs +667 -0
- package/{CgreportModal-5a23d089.mjs → CgreportModal-8a84aae5.mjs} +186 -172
- package/{CheckDictTable-b5cb0e2b.mjs → CheckDictTable-8a938e3a.mjs} +37 -34
- package/CodeFileListModal-a924902a.mjs +159 -0
- package/CodeFileViewModal-405e2b58.mjs +253 -0
- package/CodeGeneratorModal-2e1dc13d.mjs +281 -0
- package/CustomButtonList-c453b654.mjs +274 -0
- package/{DBAttributeTable-95dc66c1.mjs → DBAttributeTable-1a45c7b7.mjs} +80 -72
- package/DbToOnlineModal-f28ff0a3.mjs +168 -0
- package/{DetailForm-4aa2570b.mjs → DetailForm-c592b8d8.mjs} +50 -49
- package/DropMenuItem-1e49abea.mjs +44 -0
- package/{EnhanceJavaModal-98934198.mjs → EnhanceJavaModal-d5a93f2a.mjs} +62 -62
- package/{EnhanceJsHistory-9c4acdaf.mjs → EnhanceJsHistory-8ddb0657.mjs} +35 -35
- package/{EnhanceJsModal-247f640d.mjs → EnhanceJsModal-dc4f9ade.mjs} +154 -138
- package/{EnhanceSqlModal-65b74b0f.mjs → EnhanceSqlModal-984f045d.mjs} +67 -67
- package/ErrorTip-bb616e32.mjs +7 -0
- package/ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs +60 -0
- package/{ExtendConfigModal-00f2fb55.mjs → ExtendConfigModal-7d70f362.mjs} +2 -2
- package/{FieldExtendJsonModal-cc7fce26.mjs → FieldExtendJsonModal-bf04d70e.mjs} +2 -2
- package/{FileSelectModal-38660e3c.mjs → FileSelectModal-ffc69d4a.mjs} +23 -23
- package/{ForeignKeyTable-a78cb5ad.mjs → ForeignKeyTable-92decaea.mjs} +3 -3
- package/{IndexTable-1b496559.mjs → IndexTable-2ded2014.mjs} +28 -20
- package/JModalTip-a927f85d.mjs +49 -0
- package/JOnlineSearchSelect-04ec87d0.mjs +128 -0
- package/{LeftDepart-8ade4bf7.mjs → LeftDepart-52cb6743.mjs} +1 -1
- package/LeftRole-b0e0b496.mjs +86 -0
- package/{LeftUser-b4d1372a.mjs → LeftUser-dd4b10e2.mjs} +30 -30
- package/{LinkTableConfigModal-a138c85e.mjs → LinkTableConfigModal-7eeb3e58.mjs} +43 -31
- package/{LinkTableFieldConfigModal-17b413b0.mjs → LinkTableFieldConfigModal-b078fcef.mjs} +1 -1
- package/{LinkTableListPiece-2660d709.mjs → LinkTableListPiece-e016b8e6.mjs} +1 -1
- package/{ModalFormDemo-0544737d.mjs → ModalFormDemo-aaa719a7.mjs} +1 -1
- package/OnlCgformErpList-5c5acdaa.mjs +488 -0
- package/OnlCgformErpSubTable-e1b88312.mjs +441 -0
- package/{OnlCgformInnerSubTable-290ace5d.mjs → OnlCgformInnerSubTable-6b6fa15a.mjs} +106 -107
- package/OnlCgformInnerTableList-b283a525.mjs +474 -0
- package/OnlCgformTabList-91e3dd78.mjs +424 -0
- package/OnlineAutoList-84475f1b.mjs +513 -0
- package/OnlineAutoModal-95f46901.mjs +260 -0
- package/OnlineAutoTreeList-20b9ce04.mjs +523 -0
- package/OnlineCustomModal-c8b1e780.mjs +232 -0
- package/{OnlineDetailModal-2a271e0b.mjs → OnlineDetailModal-5b412bb9.mjs} +74 -65
- package/OnlineForm-58282699.mjs +1012 -0
- package/{OnlineFormDetail-e036cd11.mjs → OnlineFormDetail-fc087725.mjs} +7 -7
- package/{OnlineFormUrlAdd-7fb3dcca.mjs → OnlineFormUrlAdd-bc9105bb.mjs} +10 -10
- package/{OnlineFormUrlDetail-b2292137.mjs → OnlineFormUrlDetail-ad912560.mjs} +12 -12
- package/{OnlineFormUrlEdit-44080fb3.mjs → OnlineFormUrlEdit-f2fa79ff.mjs} +10 -10
- package/OnlineFormUrlSuccess-76813d45.mjs +59 -0
- package/OnlineQueryForm-9248341f.mjs +484 -0
- package/{OnlineSearchFormItem-6feacae6.mjs → OnlineSearchFormItem-1e437bd3.mjs} +82 -82
- package/{OnlineSelectCascade-471fcc76.mjs → OnlineSelectCascade-d631ed72.mjs} +1 -1
- package/{OnlineSubFormDetail-03f8ee5c.mjs → OnlineSubFormDetail-8be879b9.mjs} +53 -54
- package/{OnlineTabAutoModal-7b9bcd0b.mjs → OnlineTabAutoModal-c9ca3c24.mjs} +108 -95
- package/{OnlineTabDetailModal-88143301.mjs → OnlineTabDetailModal-fd4c9a72.mjs} +36 -36
- package/OnlineTabForm-1940e88b.mjs +814 -0
- package/{OnlineTabFormDetail-bbf23caa.mjs → OnlineTabFormDetail-2aa67564.mjs} +17 -17
- package/{PageAttributeTable-6c23547b.mjs → PageAttributeTable-66e7b485.mjs} +169 -149
- package/PhoneLoginForm-86437a9d.mjs +214 -0
- package/{ProcessOnlineForm-b42198f5.mjs → ProcessOnlineForm-98ede18d.mjs} +64 -58
- package/{QueryTable-96b3dbd0.mjs → QueryTable-65d3f54f.mjs} +40 -37
- package/SetSwitchOptions-f914bc17.mjs +62 -0
- package/ShareAddView-657f0f8b.mjs +86 -0
- package/ShareEditView-1b945fd3.mjs +92 -0
- package/ShareView-222ed3d8.mjs +80 -0
- package/ShareView.vue_vue_type_script_setup_true_lang-44fbeaff.mjs +162 -0
- package/SingleView-23b0cb4e.mjs +68 -0
- package/SingleView.vue_vue_type_style_index_0_lang-e0f2f6c0.mjs +131 -0
- package/SuperQuery-46032e66.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-53df4c33.mjs +41 -0
- package/{auth.data-22948e87.mjs → auth.data-626c5083.mjs} +68 -30
- package/button.data-fe45d43b.mjs +12 -0
- package/{cgform.data-475d4984.mjs → cgform.data-0ca62d09.mjs} +4 -1
- package/{enhance.data-3304d553.mjs → enhance.data-6601ff44.mjs} +9 -8
- package/index-19eaef11.mjs +11 -0
- package/index-1a2e8832.mjs +135 -0
- package/{index-581bef24.mjs → index-2fb8e07f.mjs} +59 -59
- package/index-5e89258d.mjs +8 -0
- package/index-9e1e1e53.mjs +57 -0
- package/{index-d2abb8a0.mjs → index-a039036e.mjs} +273 -262
- package/index-c5a79b0b.mjs +219 -0
- package/index-cce225be.mjs +110 -0
- package/index-f2c2d1cf.mjs +74 -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-f3cb9156.mjs +378 -0
- package/useExtendComponent-bb98e568.mjs +4460 -0
- package/useListButton-98908683.mjs +719 -0
- package/{useSchemas-47e45edc.mjs → useSchemas-b074f3a1.mjs} +88 -46
- package/useTableSync-075826a1.mjs +89 -0
- package/utils-9fce7606.mjs +16 -0
- package/AiModal-fe3988fb.mjs +0 -84
- package/AuthButtonConfig-d50a0a65.mjs +0 -134
- package/AuthButtonTree-589395ed.mjs +0 -156
- package/AuthFieldConfig-490fc0ab.mjs +0 -139
- package/AuthFieldTree-b7cd091e.mjs +0 -232
- package/CgformCopyList-8077ccc6.mjs +0 -250
- package/CgformModal-36faf29a.mjs +0 -621
- package/CodeFileListModal-0e26b7e0.mjs +0 -158
- package/CodeFileViewModal-9d4a5b5f.mjs +0 -248
- package/CodeGeneratorModal-b722d976.mjs +0 -238
- package/CustomButtonList-37639061.mjs +0 -381
- package/DbToOnlineModal-f49b9530.mjs +0 -166
- package/JModalTip-4a83aaed.mjs +0 -49
- package/JOnlineSearchSelect-34a37ec9.mjs +0 -95
- package/LeftRole-7d8c5acc.mjs +0 -86
- package/OnlCgformErpList-30e416c8.mjs +0 -470
- package/OnlCgformErpSubTable-9a876058.mjs +0 -427
- package/OnlCgformInnerTableList-f89b6687.mjs +0 -458
- package/OnlCgformTabList-7a2f2c03.mjs +0 -408
- package/OnlineAutoList-46c6c8b9.mjs +0 -493
- package/OnlineAutoModal-971bef13.mjs +0 -236
- package/OnlineAutoTreeList-3b92454c.mjs +0 -502
- package/OnlineCustomModal-594244f3.mjs +0 -232
- package/OnlineForm-018981b2.mjs +0 -924
- package/OnlineFormUrlSuccess-af285b02.mjs +0 -59
- package/OnlineQueryForm-998c12a4.mjs +0 -444
- package/OnlineTabForm-9ad7d29a.mjs +0 -805
- package/SetSwitchOptions-a452fa0f.mjs +0 -62
- package/SuperQuery-cbfba908.mjs +0 -975
- package/auth.api-d3a6c4b3.mjs +0 -39
- package/index-173949bb.mjs +0 -57
- package/useCgformList-8755a94e.mjs +0 -426
- package/useExtendComponent-bb7cca20.mjs +0 -4295
- package/useListButton-7ddb9a46.mjs +0 -697
- package/useTableSync-f6089e8a.mjs +0 -87
- /package/{OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs} +0 -0
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { defineComponent as i, resolveComponent as _, openBlock as d, createElementBlock as m, normalizeClass as u, createElementVNode as e, createVNode as c, withCtx as r, createTextVNode as a, pushScopeId as v, popScopeId as f } from "vue";
|
|
2
|
-
import { useRouter as w } from "vue-router";
|
|
3
|
-
import { _ as x } from "./index-173949bb.mjs";
|
|
4
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
5
|
-
import "/@/hooks/web/useMessage";
|
|
6
|
-
const C = (o) => (v("data-v-a18c2961"), o = o(), f(), o), g = /* @__PURE__ */ C(() => /* @__PURE__ */ e("div", { class: "contentArea" }, [
|
|
7
|
-
/* @__PURE__ */ e("svg", {
|
|
8
|
-
t: "1709697840296",
|
|
9
|
-
class: "icon",
|
|
10
|
-
viewBox: "0 0 1024 1024",
|
|
11
|
-
version: "1.1",
|
|
12
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13
|
-
"p-id": "1485"
|
|
14
|
-
}, [
|
|
15
|
-
/* @__PURE__ */ e("path", {
|
|
16
|
-
d: "M874.119618 149.859922A510.816461 510.816461 0 0 0 511.997 0.00208a509.910462 509.910462 0 0 0-362.119618 149.857842c-199.817789 199.679789-199.817789 524.581447 0 724.260236a509.969462 509.969462 0 0 0 362.119618 149.857842A508.872463 508.872463 0 0 0 874.119618 874.120158c199.836789-199.679789 199.836789-524.581447 0-724.260236zM814.94268 378.210681L470.999043 744.132295a15.359984 15.359984 0 0 1-5.887994 4.095996c-1.751998 1.180999-2.913997 2.362998-5.276994 2.913997a34.499964 34.499964 0 0 1-13.469986 2.914997 45.547952 45.547952 0 0 1-12.897986-2.303998l-4.095996-2.363997a45.291952 45.291952 0 0 1-7.009992-4.095996l-196.902793-193.789796a34.126964 34.126964 0 0 1-10.555989-25.186973c0-9.37399 3.583996-18.74698 9.98399-25.186974a36.429962 36.429962 0 0 1 50.372947 0l169.98382 167.423824L763.389735 330.220732a37.059961 37.059961 0 0 1 50.371947-1.732998 33.647965 33.647965 0 0 1 11.165988 25.186973 35.544963 35.544963 0 0 1-9.98399 24.575974v-0.04z m0 0",
|
|
17
|
-
fill: "currentColor",
|
|
18
|
-
"p-id": "1486"
|
|
19
|
-
})
|
|
20
|
-
]),
|
|
21
|
-
/* @__PURE__ */ e("h1", null, "提交成功")
|
|
22
|
-
], -1)), S = { class: "btnArea" }, h = /* @__PURE__ */ i({
|
|
23
|
-
__name: "OnlineFormUrlSuccess",
|
|
24
|
-
setup(o) {
|
|
25
|
-
const l = w(), n = () => {
|
|
26
|
-
l.go(-1);
|
|
27
|
-
};
|
|
28
|
-
return (k, t) => {
|
|
29
|
-
const s = _("a-button");
|
|
30
|
-
return d(), m("div", {
|
|
31
|
-
class: u([["p-2"], "online-wrap"])
|
|
32
|
-
}, [
|
|
33
|
-
g,
|
|
34
|
-
e("div", S, [
|
|
35
|
-
c(s, {
|
|
36
|
-
onClick: t[0] || (t[0] = (p) => n())
|
|
37
|
-
}, {
|
|
38
|
-
default: r(() => [
|
|
39
|
-
a("返回")
|
|
40
|
-
]),
|
|
41
|
-
_: 1
|
|
42
|
-
}),
|
|
43
|
-
c(s, {
|
|
44
|
-
onClick: t[1] || (t[1] = (p) => n())
|
|
45
|
-
}, {
|
|
46
|
-
default: r(() => [
|
|
47
|
-
a("关闭")
|
|
48
|
-
]),
|
|
49
|
-
_: 1
|
|
50
|
-
})
|
|
51
|
-
])
|
|
52
|
-
]);
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
const F = /* @__PURE__ */ x(h, [["__scopeId", "data-v-a18c2961"]]);
|
|
57
|
-
export {
|
|
58
|
-
F as default
|
|
59
|
-
};
|
|
@@ -1,444 +0,0 @@
|
|
|
1
|
-
var he = Object.defineProperty, _e = Object.defineProperties;
|
|
2
|
-
var ye = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var $ = Object.getOwnPropertySymbols;
|
|
4
|
-
var be = Object.prototype.hasOwnProperty, we = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var K = (h, m, f) => m in h ? he(h, m, { enumerable: !0, configurable: !0, writable: !0, value: f }) : h[m] = f, j = (h, m) => {
|
|
6
|
-
for (var f in m || (m = {}))
|
|
7
|
-
be.call(m, f) && K(h, f, m[f]);
|
|
8
|
-
if ($)
|
|
9
|
-
for (var f of $(m))
|
|
10
|
-
we.call(m, f) && K(h, f, m[f]);
|
|
11
|
-
return h;
|
|
12
|
-
}, B = (h, m) => _e(h, ye(m));
|
|
13
|
-
var D = (h, m, f) => new Promise((u, b) => {
|
|
14
|
-
var N = (w) => {
|
|
15
|
-
try {
|
|
16
|
-
F(f.next(w));
|
|
17
|
-
} catch (k) {
|
|
18
|
-
b(k);
|
|
19
|
-
}
|
|
20
|
-
}, v = (w) => {
|
|
21
|
-
try {
|
|
22
|
-
F(f.throw(w));
|
|
23
|
-
} catch (k) {
|
|
24
|
-
b(k);
|
|
25
|
-
}
|
|
26
|
-
}, F = (w) => w.done ? u(w.value) : Promise.resolve(w.value).then(N, v);
|
|
27
|
-
F((f = f.apply(h, m)).next());
|
|
28
|
-
});
|
|
29
|
-
import { BasicForm as Se, useForm as ke } from "/@/components/Form/index";
|
|
30
|
-
import { ref as Y, reactive as Oe, watch as Q, toRaw as q, resolveComponent as V, openBlock as z, createElementBlock as X, createVNode as O, withCtx as x, mergeProps as Z, createElementVNode as Fe, createTextVNode as T, toDisplayString as De, createCommentVNode as ee } from "vue";
|
|
31
|
-
import { defHttp as Ye } from "/@/utils/http/axios";
|
|
32
|
-
import { useMessage as xe } from "/@/hooks/web/useMessage";
|
|
33
|
-
import { i as Pe, g as ve, m as te, n as Ve, F as U, o as Le, p as je, q as oe, j as P } from "./useExtendComponent-bb7cca20.mjs";
|
|
34
|
-
import { L as Ee } from "./constant-fa63bd66.mjs";
|
|
35
|
-
import Me from "/@/components/Form/src/jeecg/components/JRangeNumber.vue";
|
|
36
|
-
import { _ as Ne } from "./index-173949bb.mjs";
|
|
37
|
-
import "/@/components/Form/src/componentMap";
|
|
38
|
-
import "/@/utils/propTypes";
|
|
39
|
-
import "@ant-design/icons-vue";
|
|
40
|
-
import "/@/components/Modal";
|
|
41
|
-
import "lodash-es";
|
|
42
|
-
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
43
|
-
import "/@/utils/is";
|
|
44
|
-
import "/@/views/system/user/user.api";
|
|
45
|
-
import "/@/store/modules/user";
|
|
46
|
-
import "/@/utils";
|
|
47
|
-
import "/@/utils/desform/customExpression";
|
|
48
|
-
import "/@/store/modules/permission";
|
|
49
|
-
import "/@/utils/dict/JDictSelectUtil";
|
|
50
|
-
import "/@/utils/common/compUtils";
|
|
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-2660d709.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-471fcc76.mjs";
|
|
63
|
-
import "/@/components/Loading";
|
|
64
|
-
import "./JModalTip-4a83aaed.mjs";
|
|
65
|
-
import "ant-design-vue";
|
|
66
|
-
import "@vueuse/core";
|
|
67
|
-
const Ie = {
|
|
68
|
-
name: "OnlineQueryForm",
|
|
69
|
-
components: {
|
|
70
|
-
BasicForm: Se,
|
|
71
|
-
JRangeNumber: Me
|
|
72
|
-
},
|
|
73
|
-
props: {
|
|
74
|
-
id: {
|
|
75
|
-
type: String,
|
|
76
|
-
default: ""
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
emits: ["search", "loaded"],
|
|
80
|
-
setup(h, { emit: m }) {
|
|
81
|
-
const f = "/online/cgform/api/getQueryInfoVue3/", u = Y(null), b = Y([]), N = Y({ xs: 24, sm: 24, md: 12, lg: 6, xl: 6 }), v = Y(!1), F = Y(!1), w = Y({}), k = Y([]), { createMessage: I } = xe(), { linkTableCard2Select: J } = Pe(), C = Y(80), c = Oe({
|
|
82
|
-
config: {},
|
|
83
|
-
cache: {},
|
|
84
|
-
param: {},
|
|
85
|
-
status: !1
|
|
86
|
-
});
|
|
87
|
-
Q(
|
|
88
|
-
() => c.status,
|
|
89
|
-
(e) => D(this, null, function* () {
|
|
90
|
-
const { config: t, cache: o, param: a } = q(c);
|
|
91
|
-
let n = Object.assign({}, t, o, a);
|
|
92
|
-
yield ne(n);
|
|
93
|
-
}),
|
|
94
|
-
{ immediate: !0, deep: !0 }
|
|
95
|
-
);
|
|
96
|
-
function y(e, t) {
|
|
97
|
-
return D(this, null, function* () {
|
|
98
|
-
c.cache = j({}, e), c.param = j({}, t), c.status = !c.status;
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
Q(
|
|
102
|
-
() => h.id,
|
|
103
|
-
(e) => {
|
|
104
|
-
e ? re() : b.value = [];
|
|
105
|
-
},
|
|
106
|
-
{ immediate: !0 }
|
|
107
|
-
);
|
|
108
|
-
function S(e) {
|
|
109
|
-
return D(this, null, function* () {
|
|
110
|
-
var s, g;
|
|
111
|
-
let t = [], o = {}, a = Object.keys(e), n = -1;
|
|
112
|
-
for (let i of a) {
|
|
113
|
-
const r = e[i];
|
|
114
|
-
i === "sys_org_code" && (r.fieldExtendJson || (r.fieldExtendJson = '{"store":"orgCode"}'));
|
|
115
|
-
let p = r.view;
|
|
116
|
-
if (r.originView = r.view, te[p] && (r.view = te[p]), yield Ve(i, r, o), r.mode == "group" && (p == "date" || p == "datetime" || p == "number" || p == "time")) {
|
|
117
|
-
let L = U.createSlotFormSchema(i, r);
|
|
118
|
-
t.push(L);
|
|
119
|
-
} else if (r.view === Le) {
|
|
120
|
-
let L = je(r, i);
|
|
121
|
-
for (let M of L) {
|
|
122
|
-
let H = U.createFormSchema(M.key, M), W = oe(t, M.key);
|
|
123
|
-
W == -1 ? t.push(H) : t[W] = H;
|
|
124
|
-
}
|
|
125
|
-
} else if (oe(t, i) == -1) {
|
|
126
|
-
let M = U.createFormSchema(i, r);
|
|
127
|
-
t.push(M);
|
|
128
|
-
}
|
|
129
|
-
let _ = r.fieldExtendJson;
|
|
130
|
-
_ && (_ = JSON.parse(_), _.labelLength && (n > -1 ? n = _.labelLength > n ? _.labelLength : n : n = _.labelLength));
|
|
131
|
-
}
|
|
132
|
-
n == -1 ? n = Ee : t.forEach((i) => {
|
|
133
|
-
i.labelLength = n;
|
|
134
|
-
}), t.sort(function(i, r) {
|
|
135
|
-
return i.order - r.order;
|
|
136
|
-
});
|
|
137
|
-
let l = [];
|
|
138
|
-
t.length > 2 && (v.value = !0);
|
|
139
|
-
let d = [];
|
|
140
|
-
for (let i = 0; i < t.length; i++) {
|
|
141
|
-
let r = t[i];
|
|
142
|
-
r.setFormRef(u), r.noChange(), r.asSearchForm(), i > 1 && (d.push(r.field), r.isHidden());
|
|
143
|
-
let p = r.getFormItemSchema();
|
|
144
|
-
if (r.slot == "groupDatetime" && t.length <= 3 && (p.colProps = { xs: 24, sm: 24, md: 12, lg: 8, xl: 8 }), p.component === "JSwitch") {
|
|
145
|
-
const _ = (s = p.componentProps) != null ? s : {};
|
|
146
|
-
p.componentProps = B(j({}, _), { query: !0 });
|
|
147
|
-
}
|
|
148
|
-
if (J(p), p.component === "LinkTableSelect") {
|
|
149
|
-
let _ = (g = p.componentProps) != null ? g : {};
|
|
150
|
-
p.componentProps = B(j({}, _), { editBtnShow: !1 });
|
|
151
|
-
}
|
|
152
|
-
l.push(p);
|
|
153
|
-
}
|
|
154
|
-
k.value = d, b.value = l, c.config = j({}, o), c.status = !c.status, setTimeout(() => {
|
|
155
|
-
const i = n * 14 + n + 24;
|
|
156
|
-
C.value = i;
|
|
157
|
-
}, 0);
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
const E = (e) => {
|
|
161
|
-
const t = e.properties;
|
|
162
|
-
t && Object.entries(t).forEach(([o, a]) => {
|
|
163
|
-
const n = a;
|
|
164
|
-
if (["date_year", "date_month", "date_week", "date_quarter"].includes(n.view)) {
|
|
165
|
-
const l = n.fieldExtendJson ? JSON.parse(n.fieldExtendJson) : {};
|
|
166
|
-
l.picker = n.view.split("_")[1], n.fieldExtendJson = JSON.stringify(l), n.view = "date";
|
|
167
|
-
}
|
|
168
|
-
});
|
|
169
|
-
};
|
|
170
|
-
function re() {
|
|
171
|
-
return D(this, null, function* () {
|
|
172
|
-
let e = yield ie();
|
|
173
|
-
E(e);
|
|
174
|
-
let t = se(e);
|
|
175
|
-
m("loaded", e);
|
|
176
|
-
let { formProperties: o, hasField: a } = ae(t, e);
|
|
177
|
-
if (a == !1) {
|
|
178
|
-
b.value = [];
|
|
179
|
-
return;
|
|
180
|
-
}
|
|
181
|
-
yield S(o);
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
function ne(e) {
|
|
185
|
-
return D(this, null, function* () {
|
|
186
|
-
yield ve(u), yield A(e), Object.keys(e).length > 0 && R();
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
function ae(e, t) {
|
|
190
|
-
const { searchFieldList: o, joinQuery: a, table: n } = t;
|
|
191
|
-
let l = !1, d = {};
|
|
192
|
-
return e && Object.keys(e).map((s) => {
|
|
193
|
-
o.indexOf(s) >= 0 && (a == !0 ? s.indexOf("@") < 0 ? (d[n + "@" + s] = e[s], l = !0) : (d[s] = e[s], l = !0) : s.indexOf("@") < 0 && (d[s] = e[s], l = !0));
|
|
194
|
-
}), {
|
|
195
|
-
formProperties: d,
|
|
196
|
-
hasField: l
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
function se(e) {
|
|
200
|
-
const { properties: t, searchFieldList: o, joinQuery: a, table: n } = e;
|
|
201
|
-
let l = {}, d = 1;
|
|
202
|
-
return Object.keys(t).map((s) => {
|
|
203
|
-
let g = t[s];
|
|
204
|
-
if (g.view == "table") {
|
|
205
|
-
let i = g.properties, r = d * 100;
|
|
206
|
-
Object.keys(i).map((p) => {
|
|
207
|
-
let _ = i[p];
|
|
208
|
-
_.order = r + Number(_.order);
|
|
209
|
-
let L = s + "@" + p;
|
|
210
|
-
l[L] = _;
|
|
211
|
-
}), d++;
|
|
212
|
-
} else
|
|
213
|
-
g.order = Number(g.order), l[s] = g;
|
|
214
|
-
}), l;
|
|
215
|
-
}
|
|
216
|
-
function ie() {
|
|
217
|
-
let e = `${f}${h.id}`;
|
|
218
|
-
return new Promise((t) => {
|
|
219
|
-
Ye.get({ url: e }, { isTransformResponse: !1 }).then((o) => {
|
|
220
|
-
o.success ? t(o.result) : (t(!1), I.warning(o.message));
|
|
221
|
-
}).catch(() => {
|
|
222
|
-
I.warning("获取查询条件失败!"), t(!1);
|
|
223
|
-
});
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
|
-
const [le, { resetFields: ce, setFieldsValue: A, updateSchema: me, getFieldsValue: pe }] = ke({
|
|
227
|
-
name: "online-query-form",
|
|
228
|
-
schemas: b,
|
|
229
|
-
showActionButtonGroup: !1,
|
|
230
|
-
baseColProps: N,
|
|
231
|
-
autoSubmitOnEnter: !0,
|
|
232
|
-
labelWidth: C,
|
|
233
|
-
wrapperCol: null,
|
|
234
|
-
submitFunc() {
|
|
235
|
-
R();
|
|
236
|
-
}
|
|
237
|
-
/* labelCol: ONL_QUERY_LABEL_COL,
|
|
238
|
-
wrapperCol: ONL_QUERY_WRAPPER_COL*/
|
|
239
|
-
});
|
|
240
|
-
function R() {
|
|
241
|
-
let e = pe();
|
|
242
|
-
ue(e), fe(e);
|
|
243
|
-
let t = Object.assign({}, q(c.param), ge(e));
|
|
244
|
-
m("search", t, !0);
|
|
245
|
-
}
|
|
246
|
-
const fe = (e) => {
|
|
247
|
-
if (e) {
|
|
248
|
-
const t = b.value.filter((o) => ["groupTime", "groupDatetime", "groupNumber"].includes(o.slot));
|
|
249
|
-
t.length && Object.keys(e).forEach((o) => {
|
|
250
|
-
let a;
|
|
251
|
-
if (t.find((l) => l.field === o ? (a = o, !0) : !1)) {
|
|
252
|
-
const d = e[a].split(",");
|
|
253
|
-
e[`${a}_begin`] = d[0], e[`${a}_end`] = d[1], delete e[a];
|
|
254
|
-
}
|
|
255
|
-
});
|
|
256
|
-
}
|
|
257
|
-
}, ue = (e) => {
|
|
258
|
-
const t = b.value.filter((o) => {
|
|
259
|
-
var a;
|
|
260
|
-
return ((a = o.componentProps) == null ? void 0 : a.picker) && o.componentProps.picker != "default";
|
|
261
|
-
});
|
|
262
|
-
t.length && Object.keys(e).forEach((o) => {
|
|
263
|
-
let a;
|
|
264
|
-
const n = t.find((l) => l.field === o || `${l.field}_begin` === o || `${l.field}_end` === o ? (a = o, !0) : !1);
|
|
265
|
-
if (n) {
|
|
266
|
-
const l = e[a];
|
|
267
|
-
if (l) {
|
|
268
|
-
const d = (s, g, i) => {
|
|
269
|
-
const r = n.componentProps.picker;
|
|
270
|
-
r === "year" ? i ? e[g] = P(s).endOf("year").format("YYYY-MM-DD") : e[g] = P(s).startOf("year").format("YYYY-MM-DD") : r === "month" ? i ? e[g] = P(s).endOf("month").format("YYYY-MM-DD") : e[g] = P(s).startOf("month").format("YYYY-MM-DD") : r === "week" ? i ? e[g] = P(s).endOf("week").format("YYYY-MM-DD") : e[g] = P(s).startOf("week").format("YYYY-MM-DD") : r === "quarter" && (i ? e[g] = P(s).endOf("quarter").format("YYYY-MM-DD") : e[g] = P(s).startOf("quarter").format("YYYY-MM-DD"));
|
|
271
|
-
};
|
|
272
|
-
if ((n == null ? void 0 : n.slot) === "groupDate") {
|
|
273
|
-
const s = l.split(",");
|
|
274
|
-
d(s[0], `${a}_begin`, !1), d(s[1], `${a}_end`, !0), delete e[a];
|
|
275
|
-
} else
|
|
276
|
-
d(l, a, !1);
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
});
|
|
280
|
-
};
|
|
281
|
-
function G() {
|
|
282
|
-
return D(this, null, function* () {
|
|
283
|
-
yield ce();
|
|
284
|
-
const { config: e, param: t } = q(c);
|
|
285
|
-
let o = Object.assign({}, e, t);
|
|
286
|
-
return Object.keys(o).length > 0 && (yield A(o)), o;
|
|
287
|
-
});
|
|
288
|
-
}
|
|
289
|
-
function de() {
|
|
290
|
-
return D(this, null, function* () {
|
|
291
|
-
const e = yield G();
|
|
292
|
-
m("search", e, !1);
|
|
293
|
-
});
|
|
294
|
-
}
|
|
295
|
-
function ge(e) {
|
|
296
|
-
return Object.keys(e).map((t) => {
|
|
297
|
-
e[t] && e[t] instanceof Array && (e[t] = e[t].join(","));
|
|
298
|
-
}), e;
|
|
299
|
-
}
|
|
300
|
-
return Q(
|
|
301
|
-
() => F.value,
|
|
302
|
-
(e) => {
|
|
303
|
-
let t = k.value;
|
|
304
|
-
if (t && t.length > 0) {
|
|
305
|
-
let o = [];
|
|
306
|
-
for (let a of t)
|
|
307
|
-
o.push({
|
|
308
|
-
field: a,
|
|
309
|
-
show: e
|
|
310
|
-
});
|
|
311
|
-
me(o);
|
|
312
|
-
}
|
|
313
|
-
},
|
|
314
|
-
{ immediate: !1 }
|
|
315
|
-
), {
|
|
316
|
-
onlineQueryFormRef: u,
|
|
317
|
-
registerForm: le,
|
|
318
|
-
initDefaultValues: y,
|
|
319
|
-
toggleButtonShow: v,
|
|
320
|
-
toggleSearchStatus: F,
|
|
321
|
-
doSearch: R,
|
|
322
|
-
resetSearch: de,
|
|
323
|
-
queryParams: w,
|
|
324
|
-
formSchemas: b,
|
|
325
|
-
clearSearch: G,
|
|
326
|
-
getGroupDatePlaceholder: (e) => {
|
|
327
|
-
let t = ["开始日期", "结束日期"];
|
|
328
|
-
if (e != null && e.picker)
|
|
329
|
-
switch (e == null ? void 0 : e.picker) {
|
|
330
|
-
case "year":
|
|
331
|
-
t = ["开始年份", "结束年份"];
|
|
332
|
-
break;
|
|
333
|
-
case "month":
|
|
334
|
-
t = ["开始月份", "结束月份"];
|
|
335
|
-
break;
|
|
336
|
-
case "week":
|
|
337
|
-
t = ["开始周", "结束周"];
|
|
338
|
-
break;
|
|
339
|
-
case "quarter":
|
|
340
|
-
t = ["开始季度", "结束季度"];
|
|
341
|
-
break;
|
|
342
|
-
default:
|
|
343
|
-
t = ["开始日期", "结束日期"];
|
|
344
|
-
}
|
|
345
|
-
return t;
|
|
346
|
-
}
|
|
347
|
-
};
|
|
348
|
-
}
|
|
349
|
-
}, Ce = {
|
|
350
|
-
key: 0,
|
|
351
|
-
class: "jeecg-basic-table-form-container online-query-form p-0"
|
|
352
|
-
}, Je = {
|
|
353
|
-
style: { float: "left", overflow: "hidden", "margin-left": "10px" },
|
|
354
|
-
class: "table-page-search-submitButtons"
|
|
355
|
-
};
|
|
356
|
-
function Re(h, m, f, u, b, N) {
|
|
357
|
-
const v = V("a-range-picker"), F = V("a-time-range-picker"), w = V("JRangeNumber"), k = V("a-button"), I = V("a-icon"), J = V("a-col"), C = V("BasicForm");
|
|
358
|
-
return u.formSchemas && u.formSchemas.length > 0 ? (z(), X("div", Ce, [
|
|
359
|
-
O(C, {
|
|
360
|
-
ref: "onlineQueryFormRef",
|
|
361
|
-
onRegister: u.registerForm
|
|
362
|
-
}, {
|
|
363
|
-
groupDate: x(({ model: c, field: y, schema: S }) => [
|
|
364
|
-
O(v, Z({
|
|
365
|
-
style: { width: "100%" },
|
|
366
|
-
value: c[y],
|
|
367
|
-
"onUpdate:value": (E) => c[y] = E
|
|
368
|
-
}, S.componentProps, {
|
|
369
|
-
placeholder: u.getGroupDatePlaceholder(S.componentProps)
|
|
370
|
-
}), null, 16, ["value", "onUpdate:value", "placeholder"])
|
|
371
|
-
]),
|
|
372
|
-
groupDatetime: x(({ model: c, field: y }) => [
|
|
373
|
-
O(v, {
|
|
374
|
-
style: { width: "100%" },
|
|
375
|
-
value: c[y],
|
|
376
|
-
"onUpdate:value": (S) => c[y] = S,
|
|
377
|
-
"show-time": !0
|
|
378
|
-
}, null, 8, ["value", "onUpdate:value"])
|
|
379
|
-
]),
|
|
380
|
-
groupTime: x(({ model: c, field: y }) => [
|
|
381
|
-
O(F, {
|
|
382
|
-
style: { width: "100%" },
|
|
383
|
-
value: c[y],
|
|
384
|
-
"onUpdate:value": (S) => c[y] = S,
|
|
385
|
-
"value-format": "HH:mm:ss"
|
|
386
|
-
}, null, 8, ["value", "onUpdate:value"])
|
|
387
|
-
]),
|
|
388
|
-
groupNumber: x(({ model: c, field: y, schema: S }) => [
|
|
389
|
-
O(w, Z({
|
|
390
|
-
value: c[y],
|
|
391
|
-
"onUpdate:value": (E) => c[y] = E
|
|
392
|
-
}, S.componentProps), null, 16, ["value", "onUpdate:value"])
|
|
393
|
-
]),
|
|
394
|
-
formFooter: x(() => [
|
|
395
|
-
O(J, {
|
|
396
|
-
md: 6,
|
|
397
|
-
sm: 8
|
|
398
|
-
}, {
|
|
399
|
-
default: x(() => [
|
|
400
|
-
Fe("span", Je, [
|
|
401
|
-
O(k, {
|
|
402
|
-
preIcon: "ant-design:search",
|
|
403
|
-
type: "primary",
|
|
404
|
-
onClick: u.doSearch
|
|
405
|
-
}, {
|
|
406
|
-
default: x(() => [
|
|
407
|
-
T("查询")
|
|
408
|
-
]),
|
|
409
|
-
_: 1
|
|
410
|
-
}, 8, ["onClick"]),
|
|
411
|
-
O(k, {
|
|
412
|
-
preIcon: "ant-design:reload",
|
|
413
|
-
type: "primary",
|
|
414
|
-
onClick: u.resetSearch,
|
|
415
|
-
style: { "margin-left": "8px" }
|
|
416
|
-
}, {
|
|
417
|
-
default: x(() => [
|
|
418
|
-
T("重置")
|
|
419
|
-
]),
|
|
420
|
-
_: 1
|
|
421
|
-
}, 8, ["onClick"]),
|
|
422
|
-
u.toggleButtonShow ? (z(), X("a", {
|
|
423
|
-
key: 0,
|
|
424
|
-
onClick: m[0] || (m[0] = (c) => u.toggleSearchStatus = !u.toggleSearchStatus),
|
|
425
|
-
style: { "margin-left": "8px" }
|
|
426
|
-
}, [
|
|
427
|
-
T(De(u.toggleSearchStatus ? "收起" : "展开") + " ", 1),
|
|
428
|
-
O(I, {
|
|
429
|
-
type: u.toggleSearchStatus ? "up" : "down"
|
|
430
|
-
}, null, 8, ["type"])
|
|
431
|
-
])) : ee("", !0)
|
|
432
|
-
])
|
|
433
|
-
]),
|
|
434
|
-
_: 1
|
|
435
|
-
})
|
|
436
|
-
]),
|
|
437
|
-
_: 1
|
|
438
|
-
}, 8, ["onRegister"])
|
|
439
|
-
])) : ee("", !0);
|
|
440
|
-
}
|
|
441
|
-
const Yt = /* @__PURE__ */ Ne(Ie, [["render", Re], ["__scopeId", "data-v-e39ff2e6"]]);
|
|
442
|
-
export {
|
|
443
|
-
Yt as default
|
|
444
|
-
};
|