@jeecg/online 3.6.2-beta → 3.7.1-RC
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/AiModal-6de335e3.mjs +84 -0
- package/AuthButtonConfig-89763932.mjs +154 -0
- package/{AuthButtonTree-3aa0ed49.mjs → AuthButtonTree-2d87d0b3.mjs} +6 -5
- package/AuthDataConfig-5c3a8e6b.mjs +238 -0
- package/{AuthDataTree-94e026e3.mjs → AuthDataTree-dd7a1240.mjs} +6 -6
- package/AuthFieldConfig-9f6fa06c.mjs +245 -0
- package/{AuthFieldTree-69864163.mjs → AuthFieldTree-e326fc38.mjs} +2 -2
- package/AuthManagerDrawer-76f15e8d.mjs +119 -0
- package/AuthSetterModal-f5d2e87f.mjs +274 -0
- package/{CgformCopyList-14b76108.mjs → CgformCopyList-365b3e8f.mjs} +49 -46
- package/CgformModal-21c5c387.mjs +671 -0
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs → CgreportModal-edefa8e3.mjs} +153 -129
- package/CheckDictTable-1bc8322d.mjs +229 -0
- package/{CodeFileListModal-a6d3290d.mjs → CodeFileListModal-24601898.mjs} +5 -4
- package/CodeFileViewModal-2fe911f4.mjs +253 -0
- package/CodeGeneratorModal-f09fe903.mjs +282 -0
- package/CustomButtonList-f07bc695.mjs +397 -0
- package/{DBAttributeTable-370de07b.mjs → DBAttributeTable-285d40db.mjs} +118 -89
- package/DbToOnlineModal-5dcb67c3.mjs +169 -0
- package/DetailForm-deecbf3d.mjs +486 -0
- package/{EnhanceJavaModal-f63aa2d3.mjs → EnhanceJavaModal-45c66cd5.mjs} +3 -3
- package/{EnhanceJsHistory-352b46b1.mjs → EnhanceJsHistory-fab3102e.mjs} +2 -2
- package/EnhanceJsModal-175357a1.mjs +548 -0
- package/{EnhanceSqlModal-5e4ae84f.mjs → EnhanceSqlModal-7ea1b300.mjs} +3 -3
- package/ExtendConfigModal-a89ae052.mjs +117 -0
- package/FieldExtendJsonModal-32135634.mjs +277 -0
- package/{FileSelectModal-9a02560b.mjs → FileSelectModal-1643c8b9.mjs} +1 -1
- package/{ForeignKeyTable-6a843c4b.mjs → ForeignKeyTable-7f7e28a7.mjs} +3 -3
- package/{IndexTable-f8af9d44.mjs → IndexTable-cdcc2b48.mjs} +28 -20
- package/{JModalTip-33c7dc44.mjs → JModalTip-b055ab60.mjs} +1 -1
- package/JOnlineSearchSelect-22aae934.mjs +128 -0
- package/{LeftDepart-fa85523d.mjs → LeftDepart-d5615ed9.mjs} +1 -1
- package/{LeftRole-8b8dfe21.mjs → LeftRole-2ed8a2bf.mjs} +1 -1
- package/{LeftUser-dc24ef2f.mjs → LeftUser-22baa378.mjs} +3 -3
- package/LinkTableConfigModal-9242d750.mjs +240 -0
- package/{LinkTableFieldConfigModal-787bc55c.mjs → LinkTableFieldConfigModal-24adc50c.mjs} +41 -41
- package/{LinkTableListPiece-8499a318.mjs → LinkTableListPiece-f3a8e0d7.mjs} +1 -1
- package/{ModalFormDemo-977a49eb.mjs → ModalFormDemo-711418db.mjs} +1 -1
- package/OnlCgformErpList-58acdfa0.mjs +470 -0
- package/OnlCgformErpSubTable-9b1e1938.mjs +426 -0
- package/OnlCgformInnerSubTable-6c23781f.mjs +265 -0
- package/OnlCgformInnerTableList-4b5e14ed.mjs +458 -0
- package/OnlCgformTabList-019ad753.mjs +408 -0
- package/OnlineAutoList-48589d09.mjs +493 -0
- package/OnlineAutoModal-c2928847.mjs +239 -0
- package/{OnlineAutoTreeList-89265688.mjs → OnlineAutoTreeList-3baa1d00.mjs} +207 -204
- package/{OnlineCustomModal-518ad33c.mjs → OnlineCustomModal-9e17b6ce.mjs} +16 -12
- package/{OnlineDetailModal-9675390d.mjs → OnlineDetailModal-d5895734.mjs} +74 -64
- package/OnlineForm-9f1153ba.mjs +985 -0
- package/OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs +1 -0
- package/OnlineFormDetail-022ca117.mjs +342 -0
- package/OnlineFormUrlAdd-9715d70a.mjs +115 -0
- package/OnlineFormUrlDetail-8f864b1a.mjs +119 -0
- package/OnlineFormUrlEdit-ac985b36.mjs +113 -0
- package/OnlineFormUrlSuccess-3dfc54ab.mjs +59 -0
- package/OnlineQueryForm-eedb9a60.mjs +466 -0
- package/{OnlineSearchFormItem-0cc85a8a.mjs → OnlineSearchFormItem-6c557343.mjs} +2 -2
- package/{OnlineSelectCascade-4265c95d.mjs → OnlineSelectCascade-05c40fef.mjs} +1 -1
- package/{OnlineSubFormDetail-f0d2c016.mjs → OnlineSubFormDetail-58e896ce.mjs} +30 -28
- package/OnlineTabAutoModal-47b18ad6.mjs +306 -0
- package/{OnlineTabDetailModal-7356d3a8.mjs → OnlineTabDetailModal-82de1465.mjs} +22 -20
- package/OnlineTabForm-27655c83.mjs +817 -0
- package/OnlineTabFormDetail-8d0c40c0.mjs +327 -0
- package/PageAttributeTable-25e3b7da.mjs +466 -0
- package/{ProcessOnlineForm-67558898.mjs → ProcessOnlineForm-148632fe.mjs} +66 -56
- package/QueryTable-f7bfca7f.mjs +147 -0
- package/SetSwitchOptions-b2af757f.mjs +62 -0
- package/SuperQuery-a8592995.mjs +967 -0
- package/auth.api-ea1d33d4.mjs +41 -0
- package/auth.data-511e5197.mjs +217 -0
- package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
- package/constant-fa63bd66.mjs +10 -0
- package/{enhance.data-efc7e155.mjs → enhance.data-a67572e1.mjs} +11 -10
- package/index-1d1a6e56.mjs +57 -0
- package/{index-b7a05eef.mjs → index-30e0e923.mjs} +396 -362
- package/{index-49508cad.mjs → index-f30613d1.mjs} +29 -27
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-f41d4dc1.mjs +426 -0
- package/useExtendComponent-dcae5c78.mjs +4399 -0
- package/useFormUrl-2ee1a82d.mjs +24 -0
- package/useListButton-bfac4ecf.mjs +697 -0
- package/{useSchemas-0433a403.mjs → useSchemas-a9c75b0f.mjs} +191 -101
- package/useTableSync-d7e9f18d.mjs +89 -0
- package/AuthButtonConfig-244ec09f.mjs +0 -125
- package/AuthDataConfig-83891eea.mjs +0 -212
- package/AuthFieldConfig-6b21915c.mjs +0 -139
- package/AuthManagerDrawer-300dd4e4.mjs +0 -114
- package/AuthSetterModal-a414fb35.mjs +0 -267
- package/CgformModal-eccfc38e.mjs +0 -611
- package/CgreportModal-2065f5a9.mjs +0 -13
- package/CheckDictTable-134cbb83.mjs +0 -211
- package/CodeFileViewModal-373e8058.mjs +0 -244
- package/CodeGeneratorModal-f08a89cd.mjs +0 -233
- package/CustomButtonList-02e3d897.mjs +0 -363
- package/DbToOnlineModal-9f13956f.mjs +0 -160
- package/DetailForm-424638eb.mjs +0 -462
- package/EnhanceJsModal-05c73a59.mjs +0 -311
- package/ExtendConfigModal-1dde390a.mjs +0 -111
- package/FieldExtendJsonModal-a70a9ccd.mjs +0 -219
- package/JOnlineSearchSelect-c287af12.mjs +0 -95
- package/LinkTableConfigModal-d4fbdef2.mjs +0 -230
- package/OnlCgformErpList-db45e22b.mjs +0 -454
- package/OnlCgformErpSubTable-54b50eec.mjs +0 -403
- package/OnlCgformInnerSubTable-fbca73e0.mjs +0 -253
- package/OnlCgformInnerTableList-782eaf04.mjs +0 -444
- package/OnlCgformTabList-a9e1e36a.mjs +0 -395
- package/OnlineAutoList-0583a910.mjs +0 -479
- package/OnlineAutoModal-510991eb.mjs +0 -207
- package/OnlineForm-1fa2d893.mjs +0 -750
- package/OnlineFormDetail-0e7294ca.mjs +0 -297
- package/OnlineQueryForm-1bfc8320.mjs +0 -386
- package/OnlineTabAutoModal-6f636ee2.mjs +0 -254
- package/OnlineTabForm-512d3951.mjs +0 -766
- package/OnlineTabFormDetail-5a70219d.mjs +0 -324
- package/PageAttributeTable-965dc58e.mjs +0 -404
- package/QueryTable-eb9a5b21.mjs +0 -115
- package/SuperQuery-5d1ca957.mjs +0 -843
- package/auth.api-d3a6c4b3.mjs +0 -39
- package/auth.data-8be5c9e3.mjs +0 -141
- package/constant-754f1a9d.mjs +0 -9
- package/index-0e3ab3af.mjs +0 -56
- package/useCgformList-423282b7.mjs +0 -400
- package/useExtendComponent-325fe3f1.mjs +0 -3926
- package/useListButton-cdbab702.mjs +0 -676
- package/useTableSync-774c3774.mjs +0 -87
|
@@ -0,0 +1,59 @@
|
|
|
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-1d1a6e56.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
|
+
};
|
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
var be = Object.defineProperty, we = Object.defineProperties;
|
|
2
|
+
var Se = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var z = Object.getOwnPropertySymbols;
|
|
4
|
+
var ke = Object.prototype.hasOwnProperty, De = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var X = (h, p, u) => p in h ? be(h, p, { enumerable: !0, configurable: !0, writable: !0, value: u }) : h[p] = u, P = (h, p) => {
|
|
6
|
+
for (var u in p || (p = {}))
|
|
7
|
+
ke.call(p, u) && X(h, u, p[u]);
|
|
8
|
+
if (z)
|
|
9
|
+
for (var u of z(p))
|
|
10
|
+
De.call(p, u) && X(h, u, p[u]);
|
|
11
|
+
return h;
|
|
12
|
+
}, B = (h, p) => we(h, Se(p));
|
|
13
|
+
var V = (h, p, u) => new Promise((d, _) => {
|
|
14
|
+
var C = (b) => {
|
|
15
|
+
try {
|
|
16
|
+
x(u.next(b));
|
|
17
|
+
} catch (D) {
|
|
18
|
+
_(D);
|
|
19
|
+
}
|
|
20
|
+
}, E = (b) => {
|
|
21
|
+
try {
|
|
22
|
+
x(u.throw(b));
|
|
23
|
+
} catch (D) {
|
|
24
|
+
_(D);
|
|
25
|
+
}
|
|
26
|
+
}, x = (b) => b.done ? d(b.value) : Promise.resolve(b.value).then(C, E);
|
|
27
|
+
x((u = u.apply(h, p)).next());
|
|
28
|
+
});
|
|
29
|
+
import { BasicForm as Ye, useForm as Oe } from "/@/components/Form/index";
|
|
30
|
+
import { ref as M, reactive as Fe, watch as q, toRaw as U, resolveComponent as I, openBlock as Z, createElementBlock as ee, createVNode as F, withCtx as j, mergeProps as te, createElementVNode as xe, createTextVNode as A, toDisplayString as ve, createCommentVNode as oe } from "vue";
|
|
31
|
+
import { defHttp as Pe } from "/@/utils/http/axios";
|
|
32
|
+
import { useMessage as Ve } from "/@/hooks/web/useMessage";
|
|
33
|
+
import { i as Me, g as je, m as re, n as Le, F as G, o as Ee, p as Ie, q as ne, j as L } from "./useExtendComponent-dcae5c78.mjs";
|
|
34
|
+
import { L as Ne } from "./constant-fa63bd66.mjs";
|
|
35
|
+
import "/@/utils/common/compUtils";
|
|
36
|
+
import Ce from "/@/components/Form/src/jeecg/components/JRangeNumber.vue";
|
|
37
|
+
import { _ as Je } from "./index-1d1a6e56.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-f3a8e0d7.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-05c40fef.mjs";
|
|
63
|
+
import "/@/components/Loading";
|
|
64
|
+
import "./JModalTip-b055ab60.mjs";
|
|
65
|
+
import "ant-design-vue";
|
|
66
|
+
import "@vueuse/core";
|
|
67
|
+
const Re = {
|
|
68
|
+
name: "OnlineQueryForm",
|
|
69
|
+
components: {
|
|
70
|
+
BasicForm: Ye,
|
|
71
|
+
JRangeNumber: Ce
|
|
72
|
+
},
|
|
73
|
+
props: {
|
|
74
|
+
id: {
|
|
75
|
+
type: String,
|
|
76
|
+
default: ""
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
emits: ["search", "loaded"],
|
|
80
|
+
setup(h, { emit: p }) {
|
|
81
|
+
const u = "/online/cgform/api/getQueryInfoVue3/", d = M(null), _ = M([]), C = M({ xs: 24, sm: 24, md: 12, lg: 6, xl: 6 }), E = M(!1), x = M(!1), b = M({}), D = M([]), { createMessage: J } = Ve(), { linkTableCard2Select: Q } = Me(), R = M(80), l = Fe({
|
|
82
|
+
config: {},
|
|
83
|
+
cache: {},
|
|
84
|
+
param: {},
|
|
85
|
+
status: !1
|
|
86
|
+
});
|
|
87
|
+
q(
|
|
88
|
+
() => l.status,
|
|
89
|
+
(e) => V(this, null, function* () {
|
|
90
|
+
const { config: t, cache: o, param: r } = U(l);
|
|
91
|
+
let n = Object.assign({}, t, o, r);
|
|
92
|
+
yield se(n);
|
|
93
|
+
}),
|
|
94
|
+
{ immediate: !0, deep: !0 }
|
|
95
|
+
);
|
|
96
|
+
function y(e, t) {
|
|
97
|
+
return V(this, null, function* () {
|
|
98
|
+
l.cache = P({}, e), l.param = P({}, t), l.status = !l.status;
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
q(
|
|
102
|
+
() => h.id,
|
|
103
|
+
(e) => {
|
|
104
|
+
e ? ae() : _.value = [];
|
|
105
|
+
},
|
|
106
|
+
{ immediate: !0 }
|
|
107
|
+
);
|
|
108
|
+
function w(e) {
|
|
109
|
+
return V(this, null, function* () {
|
|
110
|
+
var a, g, S, Y;
|
|
111
|
+
let t = [], o = {}, r = Object.keys(e), n = -1;
|
|
112
|
+
for (let f of r) {
|
|
113
|
+
const i = e[f];
|
|
114
|
+
f === "sys_org_code" && (i.fieldExtendJson || (i.fieldExtendJson = '{"store":"orgCode"}'));
|
|
115
|
+
let m = i.view;
|
|
116
|
+
if (i.originView = i.view, re[m] && (i.view = re[m]), yield Le(f, i, o), i.mode == "group" && (m == "date" || m == "datetime" || m == "number" || m == "time")) {
|
|
117
|
+
let v = G.createSlotFormSchema(f, i);
|
|
118
|
+
t.push(v);
|
|
119
|
+
} else if (i.view === Ee) {
|
|
120
|
+
let v = Ie(i, f);
|
|
121
|
+
for (let O of v) {
|
|
122
|
+
let $ = G.createFormSchema(O.key, O), K = ne(t, O.key);
|
|
123
|
+
K == -1 ? t.push($) : t[K] = $;
|
|
124
|
+
}
|
|
125
|
+
} else if (ne(t, f) == -1) {
|
|
126
|
+
let O = G.createFormSchema(f, i);
|
|
127
|
+
t.push(O);
|
|
128
|
+
}
|
|
129
|
+
let k = i.fieldExtendJson;
|
|
130
|
+
k && (k = JSON.parse(k), k.labelLength && (n > -1 ? n = k.labelLength > n ? k.labelLength : n : n = k.labelLength));
|
|
131
|
+
}
|
|
132
|
+
n == -1 ? n = Ne : t.forEach((f) => {
|
|
133
|
+
f.labelLength = n;
|
|
134
|
+
}), t.sort(function(f, i) {
|
|
135
|
+
return f.order - i.order;
|
|
136
|
+
});
|
|
137
|
+
let s = [];
|
|
138
|
+
t.length > 2 && (E.value = !0);
|
|
139
|
+
let c = [];
|
|
140
|
+
for (let f = 0; f < t.length; f++) {
|
|
141
|
+
let i = t[f];
|
|
142
|
+
i.setFormRef(d), i.noChange(), i.asSearchForm(), f > 1 && (c.push(i.field), i.isHidden());
|
|
143
|
+
let m = i.getFormItemSchema();
|
|
144
|
+
if (i.slot == "groupDatetime" && t.length <= 3 && (m.colProps = { xs: 24, sm: 24, md: 12, lg: 8, xl: 8 }), m.component === "JSwitch") {
|
|
145
|
+
const O = (a = m.componentProps) != null ? a : {};
|
|
146
|
+
m.componentProps = B(P({}, O), { query: !0 });
|
|
147
|
+
}
|
|
148
|
+
if (Q(m), m.component === "LinkTableSelect") {
|
|
149
|
+
let O = (g = m.componentProps) != null ? g : {};
|
|
150
|
+
m.componentProps = B(P({}, O), { editBtnShow: !1 });
|
|
151
|
+
}
|
|
152
|
+
const k = (S = m.componentProps) != null ? S : {};
|
|
153
|
+
k.getPopupContainer || (m.componentProps = B(P({}, k), { getPopupContainer: () => document.body }));
|
|
154
|
+
const v = (Y = e[m.field]) != null ? Y : {};
|
|
155
|
+
v.mode == "like" && v.view === "text" && v.originView === "text" && (m.component = "JInput"), s.push(m);
|
|
156
|
+
}
|
|
157
|
+
D.value = c, _.value = s, l.config = P({}, o), l.status = !l.status, setTimeout(() => {
|
|
158
|
+
const f = n * 14 + n + 24;
|
|
159
|
+
R.value = f;
|
|
160
|
+
}, 0);
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
const N = (e) => {
|
|
164
|
+
const t = e.properties;
|
|
165
|
+
t && Object.entries(t).forEach(([o, r]) => {
|
|
166
|
+
const n = r;
|
|
167
|
+
if (["date_year", "date_month", "date_week", "date_quarter"].includes(n.view)) {
|
|
168
|
+
const s = n.fieldExtendJson ? JSON.parse(n.fieldExtendJson) : {};
|
|
169
|
+
s.picker = n.view.split("_")[1], n.fieldExtendJson = JSON.stringify(s), n.view = "date";
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
};
|
|
173
|
+
function ae() {
|
|
174
|
+
return V(this, null, function* () {
|
|
175
|
+
let e = yield ce();
|
|
176
|
+
N(e);
|
|
177
|
+
let t = le(e);
|
|
178
|
+
p("loaded", e);
|
|
179
|
+
let { formProperties: o, hasField: r } = ie(t, e);
|
|
180
|
+
if (r == !1) {
|
|
181
|
+
_.value = [];
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
yield w(o);
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
function se(e) {
|
|
188
|
+
return V(this, null, function* () {
|
|
189
|
+
yield je(d);
|
|
190
|
+
const t = de(e);
|
|
191
|
+
yield H(t), Object.keys(t).length > 0 && T();
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
function ie(e, t) {
|
|
195
|
+
const { searchFieldList: o, joinQuery: r, table: n } = t;
|
|
196
|
+
let s = !1, c = {};
|
|
197
|
+
return e && Object.keys(e).map((a) => {
|
|
198
|
+
o.indexOf(a) >= 0 && (r == !0 ? a.indexOf("@") < 0 ? (c[n + "@" + a] = e[a], s = !0) : (c[a] = e[a], s = !0) : a.indexOf("@") < 0 && (c[a] = e[a], s = !0));
|
|
199
|
+
}), {
|
|
200
|
+
formProperties: c,
|
|
201
|
+
hasField: s
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
function le(e) {
|
|
205
|
+
const { properties: t, searchFieldList: o, joinQuery: r, table: n } = e;
|
|
206
|
+
let s = {}, c = 1;
|
|
207
|
+
return Object.keys(t).map((a) => {
|
|
208
|
+
let g = t[a];
|
|
209
|
+
if (g.view == "table") {
|
|
210
|
+
let S = g.properties, Y = c * 100;
|
|
211
|
+
Object.keys(S).map((f) => {
|
|
212
|
+
let i = S[f];
|
|
213
|
+
i.order = Y + Number(i.order);
|
|
214
|
+
let m = a + "@" + f;
|
|
215
|
+
s[m] = i;
|
|
216
|
+
}), c++;
|
|
217
|
+
} else
|
|
218
|
+
g.order = Number(g.order), s[a] = g;
|
|
219
|
+
}), s;
|
|
220
|
+
}
|
|
221
|
+
function ce() {
|
|
222
|
+
let e = `${u}${h.id}`;
|
|
223
|
+
return new Promise((t) => {
|
|
224
|
+
Pe.get({ url: e }, { isTransformResponse: !1 }).then((o) => {
|
|
225
|
+
o.success ? t(o.result) : (t(!1), J.warning(o.message));
|
|
226
|
+
}).catch(() => {
|
|
227
|
+
J.warning("获取查询条件失败!"), t(!1);
|
|
228
|
+
});
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
const [me, { resetFields: pe, setFieldsValue: H, updateSchema: fe, getFieldsValue: ue }] = Oe({
|
|
232
|
+
name: "online-query-form",
|
|
233
|
+
schemas: _,
|
|
234
|
+
showActionButtonGroup: !1,
|
|
235
|
+
baseColProps: C,
|
|
236
|
+
autoSubmitOnEnter: !0,
|
|
237
|
+
labelWidth: R,
|
|
238
|
+
wrapperCol: null,
|
|
239
|
+
submitFunc() {
|
|
240
|
+
T();
|
|
241
|
+
}
|
|
242
|
+
/* labelCol: ONL_QUERY_LABEL_COL,
|
|
243
|
+
wrapperCol: ONL_QUERY_WRAPPER_COL*/
|
|
244
|
+
});
|
|
245
|
+
function T() {
|
|
246
|
+
let e = ue();
|
|
247
|
+
he(e), ge(e);
|
|
248
|
+
let t = Object.assign({}, U(l.param), _e(e));
|
|
249
|
+
p("search", t, !0);
|
|
250
|
+
}
|
|
251
|
+
const de = (e) => {
|
|
252
|
+
const t = P({}, e), o = _.value.filter((r) => ["groupTime", "groupDatetime", "groupNumber", "groupDate"].includes(r.slot));
|
|
253
|
+
return o.length && Object.keys(t).forEach((r) => {
|
|
254
|
+
let n;
|
|
255
|
+
if (o.find((c) => c.field === r ? (n = r, !0) : !1)) {
|
|
256
|
+
const c = t[n];
|
|
257
|
+
if (typeof c == "string") {
|
|
258
|
+
const a = c.split(",");
|
|
259
|
+
t[n] = [...a];
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}), t;
|
|
263
|
+
}, ge = (e) => {
|
|
264
|
+
if (e) {
|
|
265
|
+
const t = _.value.filter((o) => ["groupTime", "groupDatetime", "groupDate", "groupNumber"].includes(o.slot));
|
|
266
|
+
t.length && Object.keys(e).forEach((o) => {
|
|
267
|
+
let r;
|
|
268
|
+
if (t.find((s) => s.field === o ? (r = o, !0) : !1)) {
|
|
269
|
+
const s = e[r];
|
|
270
|
+
if (typeof s == "string") {
|
|
271
|
+
const c = s.split(",");
|
|
272
|
+
e[`${r}_begin`] = c[0], e[`${r}_end`] = c[1], delete e[r];
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
}, he = (e) => {
|
|
278
|
+
const t = _.value.filter((o) => {
|
|
279
|
+
var r;
|
|
280
|
+
return ((r = o.componentProps) == null ? void 0 : r.picker) && o.componentProps.picker != "default";
|
|
281
|
+
});
|
|
282
|
+
t.length && Object.keys(e).forEach((o) => {
|
|
283
|
+
let r;
|
|
284
|
+
const n = t.find((s) => s.field === o || `${s.field}_begin` === o || `${s.field}_end` === o ? (r = o, !0) : !1);
|
|
285
|
+
if (n) {
|
|
286
|
+
const s = e[r];
|
|
287
|
+
if (s) {
|
|
288
|
+
const c = (a, g, S) => {
|
|
289
|
+
const Y = n.componentProps.picker;
|
|
290
|
+
Y === "year" ? S ? e[g] = L(a).endOf("year").format("YYYY-MM-DD") : e[g] = L(a).startOf("year").format("YYYY-MM-DD") : Y === "month" ? S ? e[g] = L(a).endOf("month").format("YYYY-MM-DD") : e[g] = L(a).startOf("month").format("YYYY-MM-DD") : Y === "week" ? S ? e[g] = L(a).endOf("week").format("YYYY-MM-DD") : e[g] = L(a).startOf("week").format("YYYY-MM-DD") : Y === "quarter" && (S ? e[g] = L(a).endOf("quarter").format("YYYY-MM-DD") : e[g] = L(a).startOf("quarter").format("YYYY-MM-DD"));
|
|
291
|
+
};
|
|
292
|
+
if ((n == null ? void 0 : n.slot) === "groupDate") {
|
|
293
|
+
const a = s.split(",");
|
|
294
|
+
c(a[0], `${r}_begin`, !1), c(a[1], `${r}_end`, !0), delete e[r];
|
|
295
|
+
} else
|
|
296
|
+
c(s, r, !1);
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
};
|
|
301
|
+
function W() {
|
|
302
|
+
return V(this, null, function* () {
|
|
303
|
+
yield pe();
|
|
304
|
+
const { config: e, param: t } = U(l);
|
|
305
|
+
let o = Object.assign({}, e, t);
|
|
306
|
+
return Object.keys(o).length > 0 && (yield H(o)), o;
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
function ye() {
|
|
310
|
+
return V(this, null, function* () {
|
|
311
|
+
const e = yield W();
|
|
312
|
+
p("search", e, !1);
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
function _e(e) {
|
|
316
|
+
return Object.keys(e).map((t) => {
|
|
317
|
+
e[t] && e[t] instanceof Array && (e[t] = e[t].join(","));
|
|
318
|
+
}), e;
|
|
319
|
+
}
|
|
320
|
+
return q(
|
|
321
|
+
() => x.value,
|
|
322
|
+
(e) => {
|
|
323
|
+
let t = D.value;
|
|
324
|
+
if (t && t.length > 0) {
|
|
325
|
+
let o = [];
|
|
326
|
+
for (let r of t)
|
|
327
|
+
o.push({
|
|
328
|
+
field: r,
|
|
329
|
+
show: e
|
|
330
|
+
});
|
|
331
|
+
fe(o);
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
{ immediate: !1 }
|
|
335
|
+
), {
|
|
336
|
+
onlineQueryFormRef: d,
|
|
337
|
+
registerForm: me,
|
|
338
|
+
initDefaultValues: y,
|
|
339
|
+
toggleButtonShow: E,
|
|
340
|
+
toggleSearchStatus: x,
|
|
341
|
+
doSearch: T,
|
|
342
|
+
resetSearch: ye,
|
|
343
|
+
queryParams: b,
|
|
344
|
+
formSchemas: _,
|
|
345
|
+
clearSearch: W,
|
|
346
|
+
getGroupDatePlaceholder: (e) => {
|
|
347
|
+
let t = ["开始日期", "结束日期"];
|
|
348
|
+
if (e != null && e.picker)
|
|
349
|
+
switch (e == null ? void 0 : e.picker) {
|
|
350
|
+
case "year":
|
|
351
|
+
t = ["开始年份", "结束年份"];
|
|
352
|
+
break;
|
|
353
|
+
case "month":
|
|
354
|
+
t = ["开始月份", "结束月份"];
|
|
355
|
+
break;
|
|
356
|
+
case "week":
|
|
357
|
+
t = ["开始周", "结束周"];
|
|
358
|
+
break;
|
|
359
|
+
case "quarter":
|
|
360
|
+
t = ["开始季度", "结束季度"];
|
|
361
|
+
break;
|
|
362
|
+
default:
|
|
363
|
+
t = ["开始日期", "结束日期"];
|
|
364
|
+
}
|
|
365
|
+
return t;
|
|
366
|
+
}
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
}, Be = {
|
|
370
|
+
key: 0,
|
|
371
|
+
class: "jeecg-basic-table-form-container online-query-form p-0"
|
|
372
|
+
}, Qe = {
|
|
373
|
+
style: { float: "left", overflow: "hidden", "margin-left": "10px" },
|
|
374
|
+
class: "table-page-search-submitButtons"
|
|
375
|
+
};
|
|
376
|
+
function Te(h, p, u, d, _, C) {
|
|
377
|
+
const E = I("a-range-picker"), x = I("a-time-range-picker"), b = I("JRangeNumber"), D = I("a-button"), J = I("a-icon"), Q = I("a-col"), R = I("BasicForm");
|
|
378
|
+
return d.formSchemas && d.formSchemas.length > 0 ? (Z(), ee("div", Be, [
|
|
379
|
+
F(R, {
|
|
380
|
+
ref: "onlineQueryFormRef",
|
|
381
|
+
onRegister: d.registerForm
|
|
382
|
+
}, {
|
|
383
|
+
groupDate: j(({ model: l, field: y, schema: w }) => [
|
|
384
|
+
F(E, te({
|
|
385
|
+
style: { width: "100%" },
|
|
386
|
+
value: l[y],
|
|
387
|
+
"onUpdate:value": (N) => l[y] = N
|
|
388
|
+
}, w.componentProps, {
|
|
389
|
+
placeholder: d.getGroupDatePlaceholder(w.componentProps),
|
|
390
|
+
valueFormat: "YYYY-MM-DD"
|
|
391
|
+
}), null, 16, ["value", "onUpdate:value", "placeholder"])
|
|
392
|
+
]),
|
|
393
|
+
groupDatetime: j(({ model: l, field: y }) => [
|
|
394
|
+
F(E, {
|
|
395
|
+
style: { width: "100%" },
|
|
396
|
+
value: l[y],
|
|
397
|
+
"onUpdate:value": (w) => l[y] = w,
|
|
398
|
+
"show-time": !0,
|
|
399
|
+
valueFormat: "YYYY-MM-DD HH:mm:ss"
|
|
400
|
+
}, null, 8, ["value", "onUpdate:value"])
|
|
401
|
+
]),
|
|
402
|
+
groupTime: j(({ model: l, field: y }) => [
|
|
403
|
+
F(x, {
|
|
404
|
+
style: { width: "100%" },
|
|
405
|
+
value: l[y],
|
|
406
|
+
"onUpdate:value": (w) => l[y] = w,
|
|
407
|
+
"value-format": "HH:mm:ss"
|
|
408
|
+
}, null, 8, ["value", "onUpdate:value"])
|
|
409
|
+
]),
|
|
410
|
+
groupNumber: j(({ model: l, field: y, schema: w }) => [
|
|
411
|
+
F(b, te({
|
|
412
|
+
value: l[y],
|
|
413
|
+
"onUpdate:value": (N) => l[y] = N
|
|
414
|
+
}, w.componentProps), null, 16, ["value", "onUpdate:value"])
|
|
415
|
+
]),
|
|
416
|
+
formFooter: j(() => [
|
|
417
|
+
F(Q, {
|
|
418
|
+
md: 6,
|
|
419
|
+
sm: 8
|
|
420
|
+
}, {
|
|
421
|
+
default: j(() => [
|
|
422
|
+
xe("span", Qe, [
|
|
423
|
+
F(D, {
|
|
424
|
+
preIcon: "ant-design:search",
|
|
425
|
+
type: "primary",
|
|
426
|
+
onClick: d.doSearch
|
|
427
|
+
}, {
|
|
428
|
+
default: j(() => [
|
|
429
|
+
A("查询")
|
|
430
|
+
]),
|
|
431
|
+
_: 1
|
|
432
|
+
}, 8, ["onClick"]),
|
|
433
|
+
F(D, {
|
|
434
|
+
preIcon: "ant-design:reload",
|
|
435
|
+
type: "primary",
|
|
436
|
+
onClick: d.resetSearch,
|
|
437
|
+
style: { "margin-left": "8px" }
|
|
438
|
+
}, {
|
|
439
|
+
default: j(() => [
|
|
440
|
+
A("重置")
|
|
441
|
+
]),
|
|
442
|
+
_: 1
|
|
443
|
+
}, 8, ["onClick"]),
|
|
444
|
+
d.toggleButtonShow ? (Z(), ee("a", {
|
|
445
|
+
key: 0,
|
|
446
|
+
onClick: p[0] || (p[0] = (l) => d.toggleSearchStatus = !d.toggleSearchStatus),
|
|
447
|
+
style: { "margin-left": "8px" }
|
|
448
|
+
}, [
|
|
449
|
+
A(ve(d.toggleSearchStatus ? "收起" : "展开") + " ", 1),
|
|
450
|
+
F(J, {
|
|
451
|
+
type: d.toggleSearchStatus ? "up" : "down"
|
|
452
|
+
}, null, 8, ["type"])
|
|
453
|
+
])) : oe("", !0)
|
|
454
|
+
])
|
|
455
|
+
]),
|
|
456
|
+
_: 1
|
|
457
|
+
})
|
|
458
|
+
]),
|
|
459
|
+
_: 1
|
|
460
|
+
}, 8, ["onRegister"])
|
|
461
|
+
])) : oe("", !0);
|
|
462
|
+
}
|
|
463
|
+
const Pt = /* @__PURE__ */ Je(Re, [["render", Te], ["__scopeId", "data-v-f8ce5622"]]);
|
|
464
|
+
export {
|
|
465
|
+
Pt as default
|
|
466
|
+
};
|
|
@@ -11,8 +11,8 @@ var N = (e, l, i) => l in e ? z(e, l, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
};
|
|
12
12
|
import { defineComponent as Q, ref as M, watch as C, useCssVars as R, resolveComponent as o, openBlock as u, createBlock as n, normalizeClass as X, withCtx as b, createElementVNode as w, toDisplayString as K, createElementBlock as p, Fragment as m, createVNode as c, renderList as Z, createTextVNode as _, mergeProps as $, pushScopeId as x, popScopeId as ee } from "vue";
|
|
13
13
|
import { JDictSelectTag as le, JTreeSelect as te, JCategorySelect as ae, JSelectUser as ue, JSelectUserByDept as ne, JSelectDept as ie, JPopup as oe, JAreaLinkage as de, JAreaSelect as re, JSelectMultiple as se } from "/@/components/Form";
|
|
14
|
-
import pe from "./JOnlineSearchSelect-
|
|
15
|
-
import { _ as me } from "./index-
|
|
14
|
+
import pe from "./JOnlineSearchSelect-22aae934.mjs";
|
|
15
|
+
import { _ as me } from "./index-1d1a6e56.mjs";
|
|
16
16
|
import "@vueuse/core";
|
|
17
17
|
import "/@/utils/http/axios";
|
|
18
18
|
import "/@/hooks/web/useMessage";
|
|
@@ -17,7 +17,7 @@ var S = (t, a, o) => new Promise((d, l) => {
|
|
|
17
17
|
import { defineComponent as w, ref as p, watch as y, resolveComponent as v, openBlock as _, createBlock as C, withCtx as x, createElementBlock as T, Fragment as k, renderList as B, createElementVNode as E, toDisplayString as N } from "vue";
|
|
18
18
|
import { defHttp as F } from "/@/utils/http/axios";
|
|
19
19
|
import { useMessage as V } from "/@/hooks/web/useMessage";
|
|
20
|
-
import { _ as L } from "./index-
|
|
20
|
+
import { _ as L } from "./index-1d1a6e56.mjs";
|
|
21
21
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
22
22
|
import "vue-router";
|
|
23
23
|
const O = "/online/cgform/api/querySelectOptions", P = w({
|
|
@@ -2,14 +2,14 @@ var g = (t, i, r) => new Promise((o, m) => {
|
|
|
2
2
|
var c = (e) => {
|
|
3
3
|
try {
|
|
4
4
|
n(r.next(e));
|
|
5
|
-
} catch (
|
|
6
|
-
m(
|
|
5
|
+
} catch (p) {
|
|
6
|
+
m(p);
|
|
7
7
|
}
|
|
8
8
|
}, a = (e) => {
|
|
9
9
|
try {
|
|
10
10
|
n(r.throw(e));
|
|
11
|
-
} catch (
|
|
12
|
-
m(
|
|
11
|
+
} catch (p) {
|
|
12
|
+
m(p);
|
|
13
13
|
}
|
|
14
14
|
}, n = (e) => e.done ? o(e.value) : Promise.resolve(e.value).then(c, a);
|
|
15
15
|
n((r = r.apply(t, i)).next());
|
|
@@ -18,47 +18,49 @@ import { useMessage as F } from "/@/hooks/web/useMessage";
|
|
|
18
18
|
import { ref as u, watch as d, resolveComponent as S, openBlock as v, createBlock as D } from "vue";
|
|
19
19
|
import { BasicForm as w } from "/@/components/Form/index";
|
|
20
20
|
import { defHttp as y } from "/@/utils/http/axios";
|
|
21
|
-
import {
|
|
22
|
-
import { Loading as
|
|
23
|
-
import
|
|
24
|
-
import { _ as
|
|
21
|
+
import { k as $, g as k } from "./useExtendComponent-dcae5c78.mjs";
|
|
22
|
+
import { Loading as x } from "/@/components/Loading";
|
|
23
|
+
import B from "./DetailForm-deecbf3d.mjs";
|
|
24
|
+
import { _ as I } from "./index-1d1a6e56.mjs";
|
|
25
25
|
import "/@/components/Form/src/componentMap";
|
|
26
26
|
import "/@/utils/propTypes";
|
|
27
27
|
import "@ant-design/icons-vue";
|
|
28
28
|
import "/@/components/Modal";
|
|
29
29
|
import "lodash-es";
|
|
30
|
-
import "./constant-
|
|
30
|
+
import "./constant-fa63bd66.mjs";
|
|
31
|
+
import "/@/utils/common/compUtils";
|
|
31
32
|
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
33
|
+
import "/@/utils/is";
|
|
32
34
|
import "/@/views/system/user/user.api";
|
|
33
35
|
import "/@/store/modules/user";
|
|
34
36
|
import "/@/utils";
|
|
35
37
|
import "/@/utils/desform/customExpression";
|
|
36
38
|
import "/@/store/modules/permission";
|
|
37
39
|
import "/@/utils/dict/JDictSelectUtil";
|
|
38
|
-
import "/@/utils/common/compUtils";
|
|
39
40
|
import "/@/components/Table";
|
|
40
41
|
import "/@/hooks/system/useListPage";
|
|
41
42
|
import "vue-router";
|
|
42
43
|
import "/@/components/Form/src/utils/Area";
|
|
43
44
|
import "/@/components/Preview/index";
|
|
44
|
-
import "./LinkTableListPiece-
|
|
45
|
-
import "
|
|
45
|
+
import "./LinkTableListPiece-f3a8e0d7.mjs";
|
|
46
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
46
47
|
import "/@/utils/auth";
|
|
47
|
-
import "
|
|
48
|
+
import "/@/api/common/api";
|
|
48
49
|
import "/@/hooks/web/useAppInject";
|
|
50
|
+
import "/@/assets/images/placeholderImage.png";
|
|
51
|
+
import "./OnlineSelectCascade-05c40fef.mjs";
|
|
52
|
+
import "./JModalTip-b055ab60.mjs";
|
|
49
53
|
import "ant-design-vue";
|
|
50
54
|
import "@vueuse/core";
|
|
51
55
|
import "/@/utils/dict";
|
|
52
56
|
import "/@/utils/dict/index";
|
|
53
|
-
import "/@/api/common/api";
|
|
54
57
|
import "/@/components/Markdown";
|
|
55
|
-
|
|
56
|
-
const R = "/online/cgform/api/subform", T = {
|
|
58
|
+
const O = "/online/cgform/api/subform", R = {
|
|
57
59
|
name: "OnlineSubFormDetail",
|
|
58
60
|
components: {
|
|
59
61
|
BasicForm: w,
|
|
60
|
-
Loading:
|
|
61
|
-
DetailForm:
|
|
62
|
+
Loading: x,
|
|
63
|
+
DetailForm: B
|
|
62
64
|
},
|
|
63
65
|
props: {
|
|
64
66
|
properties: {
|
|
@@ -104,22 +106,22 @@ const R = "/online/cgform/api/subform", T = {
|
|
|
104
106
|
);
|
|
105
107
|
function e() {
|
|
106
108
|
return g(this, null, function* () {
|
|
107
|
-
yield
|
|
108
|
-
const { table:
|
|
109
|
-
if (!
|
|
109
|
+
yield k(i), m.value = {};
|
|
110
|
+
const { table: s, mainId: l } = t;
|
|
111
|
+
if (!s || !l)
|
|
110
112
|
return;
|
|
111
|
-
let f = (yield s
|
|
113
|
+
let f = (yield p(s, l)) || {};
|
|
112
114
|
m.value = f;
|
|
113
115
|
});
|
|
114
116
|
}
|
|
115
|
-
function s
|
|
116
|
-
let f = `${
|
|
117
|
+
function p(s, l) {
|
|
118
|
+
let f = `${O}/${s}/${l}`;
|
|
117
119
|
return new Promise((_, h) => {
|
|
118
120
|
y.get({ url: f }, { isTransformResponse: !1 }).then((b) => {
|
|
119
121
|
b.success ? _(b.result) : h();
|
|
120
122
|
});
|
|
121
123
|
}).catch(() => {
|
|
122
|
-
r.warning("子表获取数据失败:" +
|
|
124
|
+
r.warning("子表获取数据失败:" + s);
|
|
123
125
|
});
|
|
124
126
|
}
|
|
125
127
|
return {
|
|
@@ -129,7 +131,7 @@ const R = "/online/cgform/api/subform", T = {
|
|
|
129
131
|
};
|
|
130
132
|
}
|
|
131
133
|
};
|
|
132
|
-
function
|
|
134
|
+
function T(t, i, r, o, m, c) {
|
|
133
135
|
const a = S("detail-form");
|
|
134
136
|
return v(), D(a, {
|
|
135
137
|
schemas: o.detailFormSchemas,
|
|
@@ -137,7 +139,7 @@ function k(t, i, r, o, m, c) {
|
|
|
137
139
|
span: o.formSpan
|
|
138
140
|
}, null, 8, ["schemas", "data", "span"]);
|
|
139
141
|
}
|
|
140
|
-
const
|
|
142
|
+
const vt = /* @__PURE__ */ I(R, [["render", T]]);
|
|
141
143
|
export {
|
|
142
|
-
|
|
144
|
+
vt as default
|
|
143
145
|
};
|