@jeecg/online 3.8.2-beta → 3.9.0-beta2
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-79fa7b01.mjs → AccountLoginForm-634a76b1.mjs} +1 -1
- package/{AiModal-942b59ec.mjs → AiModal-204a2146.mjs} +1 -1
- package/{AppForgetPassword-d762e5b3.mjs → AppForgetPassword-f9a6258a.mjs} +2 -2
- package/{AppLogin-41372985.mjs → AppLogin-bf783eab.mjs} +9 -9
- package/{AppLoginHeader-3b6fa33d.mjs → AppLoginHeader-55594326.mjs} +1 -1
- package/{AppNameEmail-8dfbad62.mjs → AppNameEmail-54026ea8.mjs} +2 -2
- package/{AppRegister-433c54db.mjs → AppRegister-043efc45.mjs} +3 -3
- package/{AppTenant-e49dfa9b.mjs → AppTenant-c7bb8700.mjs} +2 -2
- package/{AppThirdForm-7b75b4fc.mjs → AppThirdForm-5e7e1144.mjs} +1 -1
- package/{AuthButtonConfig-a0f59cb5.mjs → AuthButtonConfig-4887be0d.mjs} +1 -1
- package/{AuthButtonTree-f0a5cc0b.mjs → AuthButtonTree-7e47b44b.mjs} +1 -1
- package/{AuthDataConfig-647c4a27.mjs → AuthDataConfig-3cd10ca2.mjs} +1 -1
- package/{AuthDataTree-b80a3ea5.mjs → AuthDataTree-714c259c.mjs} +1 -1
- package/{AuthFieldConfig-d36a1b2d.mjs → AuthFieldConfig-bb65f78b.mjs} +1 -1
- package/{AuthFieldTree-dba6af79.mjs → AuthFieldTree-3e38b12b.mjs} +1 -1
- package/{AuthManagerDrawer-5acbd451.mjs → AuthManagerDrawer-dee39b07.mjs} +4 -4
- package/{AuthSetterModal-95b5f616.mjs → AuthSetterModal-f176c221.mjs} +7 -7
- package/{CgformAddressModal-5d889870.mjs → CgformAddressModal-a3903b24.mjs} +1 -1
- package/{CgformCopyList-cc5f76cd.mjs → CgformCopyList-4be1000f.mjs} +37 -37
- package/{CgformModal-cebc698b.mjs → CgformModal-115710a6.mjs} +10 -10
- package/{CgreportAigcModal-d1e62385.mjs → CgreportAigcModal-3bef8abe.mjs} +1 -1
- package/{CgreportModal-2e4421e6.mjs → CgreportModal-0cc48587.mjs} +143 -139
- package/{CheckDictTable-8fb7299c.mjs → CheckDictTable-65157c48.mjs} +1 -1
- package/{CodeFileListModal-25fad54f.mjs → CodeFileListModal-305c1a62.mjs} +2 -2
- package/CodeFileViewModal-320d7acf.mjs +269 -0
- package/CodeGeneratorModal-2ba18bd1.mjs +298 -0
- package/{CustomButtonList-26490688.mjs → CustomButtonList-98db8fd2.mjs} +1 -1
- package/{DBAttributeTable-dea8ab11.mjs → DBAttributeTable-56701599.mjs} +40 -39
- package/{DbToOnlineModal-60317a16.mjs → DbToOnlineModal-a82cdeb5.mjs} +1 -1
- package/{DetailForm-b92a5e9d.mjs → DetailForm-7d4f630e.mjs} +163 -152
- package/{DropMenuItem-82213be6.mjs → DropMenuItem-b3a9cd6a.mjs} +1 -1
- package/{EnhanceJavaModal-6ebefc8b.mjs → EnhanceJavaModal-469e645e.mjs} +1 -1
- package/{EnhanceJsHistory-8d9b86ca.mjs → EnhanceJsHistory-bb6ba865.mjs} +1 -1
- package/{EnhanceJsModal-9439e6f8.mjs → EnhanceJsModal-b0527cbf.mjs} +2 -2
- package/{EnhanceSqlModal-ea4592bf.mjs → EnhanceSqlModal-c6e8bce1.mjs} +1 -1
- package/{ExtendConfigModal-f509db46.mjs → ExtendConfigModal-7b00b49a.mjs} +1 -1
- package/{FieldExtendJsonModal-73bab5b5.mjs → FieldExtendJsonModal-536e6d5b.mjs} +2 -2
- package/{FileSelectModal-49d6dade.mjs → FileSelectModal-eb026170.mjs} +1 -1
- package/{ForeignKeyTable-330963c1.mjs → ForeignKeyTable-97a5827f.mjs} +1 -1
- package/{IndexTable-c0478faa.mjs → IndexTable-4d350e4e.mjs} +1 -1
- package/{JModalTip-b1d19eaa.mjs → JModalTip-c3e6726c.mjs} +1 -1
- package/{JOnlineSearchSelect-97662e1b.mjs → JOnlineSearchSelect-ffeac61d.mjs} +1 -1
- package/{LeftDepart-4b1003f0.mjs → LeftDepart-a727aab7.mjs} +1 -1
- package/{LeftRole-8486ba4f.mjs → LeftRole-b533dcf6.mjs} +1 -1
- package/{LeftUser-09894a2f.mjs → LeftUser-aaac52cb.mjs} +1 -1
- package/{LinkTableConfigModal-cd0980e9.mjs → LinkTableConfigModal-4053b62d.mjs} +1 -1
- package/{LinkTableFieldConfigModal-f4106ab7.mjs → LinkTableFieldConfigModal-93552099.mjs} +1 -1
- package/{LinkTableListPiece-4187ad7d.mjs → LinkTableListPiece-0f4ca559.mjs} +1 -1
- package/{ModalFormDemo-4ec79769.mjs → ModalFormDemo-b8478356.mjs} +1 -1
- package/OnlCgformErpList-b0605798.mjs +527 -0
- package/{OnlCgformErpSubTable-421e2051.mjs → OnlCgformErpSubTable-89699bc9.mjs} +42 -41
- package/{OnlCgformInnerSubTable-9616ebf2.mjs → OnlCgformInnerSubTable-f2722f77.mjs} +105 -102
- package/{OnlCgformInnerTableList-5ed887e4.mjs → OnlCgformInnerTableList-992aa7e9.mjs} +20 -19
- package/{OnlCgformTabList-c03a1d0a.mjs → OnlCgformTabList-882a0e0c.mjs} +20 -19
- package/{OnlineAutoList-e5a61211.mjs → OnlineAutoList-caedb54a.mjs} +19 -18
- package/{OnlineAutoModal-38f2d522.mjs → OnlineAutoModal-a0d1a6b8.mjs} +7 -7
- package/{OnlineAutoTreeList-16fa962f.mjs → OnlineAutoTreeList-624106c1.mjs} +19 -18
- package/OnlineCustomModal-f4e17bed.mjs +246 -0
- package/{OnlineDetailModal-79085ba8.mjs → OnlineDetailModal-35394778.mjs} +44 -43
- package/OnlineForm-86b5966d.mjs +1079 -0
- package/OnlineFormDetail-4b3ad130.mjs +349 -0
- package/{OnlineFormUrlAdd-2e05ba0f.mjs → OnlineFormUrlAdd-708c91fb.mjs} +9 -9
- package/{OnlineFormUrlDetail-06b2d9e6.mjs → OnlineFormUrlDetail-5c8efaeb.mjs} +14 -13
- package/{OnlineFormUrlEdit-77ac4bba.mjs → OnlineFormUrlEdit-8f08474e.mjs} +9 -9
- package/{OnlineFormUrlSuccess-cb3f7be4.mjs → OnlineFormUrlSuccess-0c2431a4.mjs} +1 -1
- package/{OnlineQueryForm-528af6ed.mjs → OnlineQueryForm-3017a4ca.mjs} +119 -120
- package/{OnlineSearchFormItem-51eefaf4.mjs → OnlineSearchFormItem-1b54585f.mjs} +2 -2
- package/{OnlineSelectCascade-b218691c.mjs → OnlineSelectCascade-fab4426d.mjs} +61 -55
- package/{OnlineSubFormDetail-a1b7f33f.mjs → OnlineSubFormDetail-bbc48c3e.mjs} +48 -45
- package/{OnlineTabAutoModal-1c7c4ed2.mjs → OnlineTabAutoModal-b0f9fce8.mjs} +6 -6
- package/{OnlineTabDetailModal-7c45e727.mjs → OnlineTabDetailModal-401a26ad.mjs} +38 -37
- package/{OnlineTabForm-9682158f.mjs → OnlineTabForm-5c04cbc5.mjs} +22 -22
- package/OnlineTabFormDetail-2a28febf.mjs +328 -0
- package/{PageAttributeTable-21314341.mjs → PageAttributeTable-18aabf81.mjs} +5 -5
- package/{PhoneLoginForm-c3c16f16.mjs → PhoneLoginForm-4a9d7869.mjs} +18 -18
- package/ProcessOnlineForm-0ddce4fb.mjs +218 -0
- package/{QueryTable-413d1366.mjs → QueryTable-342fd89a.mjs} +1 -1
- package/{SetSwitchOptions-82fd6265.mjs → SetSwitchOptions-e1d5a6b4.mjs} +1 -1
- package/{ShareAddView-a2dba2ef.mjs → ShareAddView-a5154da3.mjs} +22 -21
- package/{ShareEditView-ecd590dc.mjs → ShareEditView-cf761cf3.mjs} +22 -21
- package/{ShareView-84f333e7.mjs → ShareView-3b2f5457.mjs} +20 -19
- package/{ShareView.vue_vue_type_script_setup_true_lang-9a3a259e.mjs → ShareView.vue_vue_type_script_setup_true_lang-9ea579c2.mjs} +2 -2
- package/{SingleView-d4f29169.mjs → SingleView-3cab20a9.mjs} +15 -14
- package/{SingleView.vue_vue_type_style_index_0_lang-40ea7e64.mjs → SingleView.vue_vue_type_style_index_0_lang-24d417dc.mjs} +4 -4
- package/{SuperQuery-290f5080.mjs → SuperQuery-270b0968.mjs} +39 -39
- package/TaskOpinionList-60cf4080.mjs +13 -0
- package/{aiModal-6e338c79.mjs → aiModal-e7362c3f.mjs} +2 -2
- package/{index-bc0d747e.mjs → index-6d1a78e2.mjs} +2 -2
- package/index-740b2c4a.mjs +57 -0
- package/{index-7bab525f.mjs → index-8fd12d0f.mjs} +3 -3
- package/{index-7890e2b4.mjs → index-b5fe9bd4.mjs} +1 -1
- package/{index-9bebbfe5.mjs → index-b811abb9.mjs} +2 -2
- package/{index-c5737cbb.mjs → index-d95bb7c2.mjs} +4 -4
- package/{index-254a82b7.mjs → index-e2c3e6f3.mjs} +129 -123
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-6d5547ff.mjs +410 -0
- package/{useExtendComponent-d1db211d.mjs → useExtendComponent-95ce0719.mjs} +405 -405
- package/{useListButton-7f9674a0.mjs → useListButton-73071548.mjs} +21 -21
- package/CodeFileViewModal-12299ab5.mjs +0 -253
- package/CodeGeneratorModal-791b1695.mjs +0 -281
- package/OnlCgformErpList-63089149.mjs +0 -498
- package/OnlineCustomModal-7e31297e.mjs +0 -232
- package/OnlineForm-0438f4bf.mjs +0 -1012
- package/OnlineFormDetail-76d243ed.mjs +0 -348
- package/OnlineTabFormDetail-b8650175.mjs +0 -327
- package/ProcessOnlineForm-d6113dec.mjs +0 -188
- package/README.md +0 -26
- package/index-30c0a14f.mjs +0 -57
- package/useCgformList-52631580.mjs +0 -395
- /package/{OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_60bd1850_lang-4ed993c7.mjs} +0 -0
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _ = (t, r, s) => new Promise((d, l) => {
|
|
2
2
|
var g = (i) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
5
|
-
} catch (
|
|
6
|
-
l(
|
|
4
|
+
f(s.next(i));
|
|
5
|
+
} catch (u) {
|
|
6
|
+
l(u);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, c = (i) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
11
|
-
} catch (
|
|
12
|
-
l(
|
|
10
|
+
f(s.throw(i));
|
|
11
|
+
} catch (u) {
|
|
12
|
+
l(u);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, f = (i) => i.done ? d(i.value) : Promise.resolve(i.value).then(g, c);
|
|
15
|
+
f((s = s.apply(t, r)).next());
|
|
16
16
|
});
|
|
17
|
-
import { defineComponent as
|
|
18
|
-
import { defHttp as
|
|
19
|
-
import { useMessage as
|
|
20
|
-
import { _ as
|
|
17
|
+
import { defineComponent as $, ref as p, watch as y, resolveComponent as C, openBlock as S, createBlock as v, withCtx as O, createElementBlock as T, Fragment as k, renderList as L, createElementVNode as B, toDisplayString as E } from "vue";
|
|
18
|
+
import { defHttp as w } from "/@/utils/http/axios";
|
|
19
|
+
import { useMessage as N } from "/@/hooks/web/useMessage";
|
|
20
|
+
import { _ as V } from "./index-740b2c4a.mjs";
|
|
21
21
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
22
22
|
import "vue-router";
|
|
23
|
-
const
|
|
23
|
+
const x = "/online/cgform/api/querySelectOptions", P = $({
|
|
24
24
|
name: "OnlineSelectCascade",
|
|
25
25
|
props: {
|
|
26
26
|
table: { type: String, default: "" },
|
|
@@ -36,11 +36,11 @@ const O = "/online/cgform/api/querySelectOptions", P = w({
|
|
|
36
36
|
placeholder: { type: String, default: "请选择" }
|
|
37
37
|
},
|
|
38
38
|
emits: ["change", "next"],
|
|
39
|
-
setup(t, { emit:
|
|
40
|
-
const { createMessage:
|
|
41
|
-
function
|
|
39
|
+
setup(t, { emit: r }) {
|
|
40
|
+
const { createMessage: s } = N(), d = p(""), l = p([]), g = p(!0);
|
|
41
|
+
function c(e) {
|
|
42
42
|
let n = e || "";
|
|
43
|
-
|
|
43
|
+
r("change", n), m(n);
|
|
44
44
|
}
|
|
45
45
|
y(
|
|
46
46
|
() => t.condition,
|
|
@@ -56,29 +56,29 @@ const O = "/online/cgform/api/querySelectOptions", P = w({
|
|
|
56
56
|
), y(
|
|
57
57
|
() => t.value,
|
|
58
58
|
(e, n) => {
|
|
59
|
-
e ? d.value = e : (d.value = [], n && (
|
|
59
|
+
e ? d.value = e : (d.value = [], n && (r("change", ""), r("next", "-1"))), e && !n && f(e);
|
|
60
60
|
},
|
|
61
61
|
{ immediate: !0 }
|
|
62
62
|
);
|
|
63
|
-
function
|
|
64
|
-
return
|
|
63
|
+
function f(e) {
|
|
64
|
+
return _(this, null, function* () {
|
|
65
65
|
if (t.idField === t.store)
|
|
66
|
-
|
|
66
|
+
r("next", e);
|
|
67
67
|
else if (t.origin === !0)
|
|
68
|
-
yield
|
|
68
|
+
yield F(), m(e);
|
|
69
69
|
else {
|
|
70
|
-
let n = yield
|
|
70
|
+
let n = yield b();
|
|
71
71
|
m(e, n);
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
function i() {
|
|
76
|
-
let e =
|
|
77
|
-
t.origin === !0 ? e.condition = t.condition : e.pidValue = t.pidValue, l.value = [],
|
|
78
|
-
n.success ? l.value = [...n.result] :
|
|
76
|
+
let e = u();
|
|
77
|
+
t.origin === !0 ? e.condition = t.condition : e.pidValue = t.pidValue, l.value = [], w.get({ url: x, params: e }, { isTransformResponse: !1 }).then((n) => {
|
|
78
|
+
n.success ? l.value = [...n.result] : s.warning("联动组件数据加载失败,请检查配置!");
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function u() {
|
|
82
82
|
return {
|
|
83
83
|
table: t.table,
|
|
84
84
|
txt: t.txt,
|
|
@@ -87,25 +87,25 @@ const O = "/online/cgform/api/querySelectOptions", P = w({
|
|
|
87
87
|
pidField: t.pidField
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function b() {
|
|
91
91
|
return new Promise((e) => {
|
|
92
92
|
if (!t.value)
|
|
93
93
|
d.value = [], e([]);
|
|
94
94
|
else {
|
|
95
|
-
let n =
|
|
96
|
-
t.isNumber === !0 ? n.condition = `${t.store} = ${t.value}` : n.condition = `${t.store} = '${t.value}'`,
|
|
97
|
-
|
|
95
|
+
let n = u();
|
|
96
|
+
t.isNumber === !0 ? n.condition = `${t.store} = ${t.value}` : n.condition = `${t.store} = '${t.value}'`, w.get({ url: x, params: n }, { isTransformResponse: !1 }).then((a) => {
|
|
97
|
+
a.success ? e(a.result) : (s.warning("联动组件数据加载失败,请检查配置!"), e([]));
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function F() {
|
|
103
103
|
return new Promise((e) => {
|
|
104
|
-
(function
|
|
105
|
-
|
|
104
|
+
(function a(o) {
|
|
105
|
+
o > 10 && e([]);
|
|
106
106
|
let h = l.value;
|
|
107
107
|
h && h.length > 0 ? e(h) : setTimeout(() => {
|
|
108
|
-
|
|
108
|
+
a(o++);
|
|
109
109
|
}, 300);
|
|
110
110
|
})(0);
|
|
111
111
|
});
|
|
@@ -113,47 +113,53 @@ const O = "/online/cgform/api/querySelectOptions", P = w({
|
|
|
113
113
|
function m(e, n = []) {
|
|
114
114
|
if (e && e.length > 0) {
|
|
115
115
|
(!n || n.length == 0) && (n = l.value);
|
|
116
|
-
let
|
|
117
|
-
if (
|
|
118
|
-
let
|
|
119
|
-
|
|
116
|
+
let a = n.filter((o) => o.store === e);
|
|
117
|
+
if (a && a.length > 0) {
|
|
118
|
+
let o = a[0].id;
|
|
119
|
+
r("next", o);
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
return {
|
|
124
124
|
selectedValue: d,
|
|
125
125
|
dictOptions: l,
|
|
126
|
-
handleChange:
|
|
126
|
+
handleChange: c,
|
|
127
|
+
filterOption: (e, n) => {
|
|
128
|
+
var o;
|
|
129
|
+
return ((o = n.children()[0]) == null ? void 0 : o.children.toLowerCase().indexOf(e.toLowerCase())) >= 0;
|
|
130
|
+
}
|
|
127
131
|
};
|
|
128
132
|
}
|
|
129
|
-
}),
|
|
130
|
-
function
|
|
131
|
-
const
|
|
132
|
-
return
|
|
133
|
+
}), I = ["title"];
|
|
134
|
+
function R(t, r, s, d, l, g) {
|
|
135
|
+
const c = C("a-select-option"), f = C("a-select");
|
|
136
|
+
return S(), v(f, {
|
|
137
|
+
"show-search": "",
|
|
138
|
+
"filter-option": t.filterOption,
|
|
133
139
|
placeholder: t.placeholder,
|
|
134
140
|
value: t.selectedValue,
|
|
135
141
|
onChange: t.handleChange,
|
|
136
142
|
allowClear: "",
|
|
137
143
|
style: { width: "100%" }
|
|
138
144
|
}, {
|
|
139
|
-
default:
|
|
140
|
-
(
|
|
141
|
-
key:
|
|
145
|
+
default: O(() => [
|
|
146
|
+
(S(!0), T(k, null, L(t.dictOptions, (i, u) => (S(), v(c, {
|
|
147
|
+
key: u,
|
|
142
148
|
value: i.store
|
|
143
149
|
}, {
|
|
144
|
-
default:
|
|
145
|
-
|
|
150
|
+
default: O(() => [
|
|
151
|
+
B("span", {
|
|
146
152
|
style: { display: "inline-block", width: "100%" },
|
|
147
153
|
title: i.label
|
|
148
|
-
},
|
|
154
|
+
}, E(i.label), 9, I)
|
|
149
155
|
]),
|
|
150
156
|
_: 2
|
|
151
157
|
}, 1032, ["value"]))), 128))
|
|
152
158
|
]),
|
|
153
159
|
_: 1
|
|
154
|
-
}, 8, ["placeholder", "value", "onChange"]);
|
|
160
|
+
}, 8, ["filter-option", "placeholder", "value", "onChange"]);
|
|
155
161
|
}
|
|
156
|
-
const
|
|
162
|
+
const A = /* @__PURE__ */ V(P, [["render", R]]);
|
|
157
163
|
export {
|
|
158
|
-
|
|
164
|
+
A as default
|
|
159
165
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var u = (t, i, m) => new Promise((e, a) => {
|
|
2
|
+
var l = (r) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
4
|
+
p(m.next(r));
|
|
5
5
|
} catch (o) {
|
|
6
6
|
a(o);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, n = (r) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
10
|
+
p(m.throw(r));
|
|
11
11
|
} catch (o) {
|
|
12
12
|
a(o);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, p = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(l, n);
|
|
15
|
+
p((m = m.apply(t, i)).next());
|
|
16
16
|
});
|
|
17
17
|
import { useMessage as h } from "/@/hooks/web/useMessage";
|
|
18
|
-
import { ref as
|
|
19
|
-
import { BasicForm as
|
|
20
|
-
import { defHttp as
|
|
21
|
-
import { m as w, g as
|
|
22
|
-
import { Loading as
|
|
23
|
-
import
|
|
24
|
-
import { _ as
|
|
18
|
+
import { ref as d, watch as b, resolveComponent as F, openBlock as S, createBlock as v } from "vue";
|
|
19
|
+
import { BasicForm as y } from "/@/components/Form/index";
|
|
20
|
+
import { defHttp as D } from "/@/utils/http/axios";
|
|
21
|
+
import { m as w, g as x } from "./useExtendComponent-95ce0719.mjs";
|
|
22
|
+
import { Loading as O } from "/@/components/Loading";
|
|
23
|
+
import $ from "./DetailForm-7d4f630e.mjs";
|
|
24
|
+
import { _ as k } from "./index-740b2c4a.mjs";
|
|
25
25
|
import "/@/components/Form/src/componentMap";
|
|
26
26
|
import "/@/utils/propTypes";
|
|
27
27
|
import "@ant-design/icons-vue";
|
|
@@ -42,25 +42,25 @@ import "/@/hooks/system/useListPage";
|
|
|
42
42
|
import "vue-router";
|
|
43
43
|
import "/@/components/Form/src/utils/Area";
|
|
44
44
|
import "/@/components/Preview/index";
|
|
45
|
-
import "./LinkTableListPiece-
|
|
45
|
+
import "./LinkTableListPiece-0f4ca559.mjs";
|
|
46
46
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
47
47
|
import "/@/utils/auth";
|
|
48
48
|
import "/@/api/common/api";
|
|
49
49
|
import "/@/hooks/web/useAppInject";
|
|
50
50
|
import "/@/assets/images/placeholderImage.png";
|
|
51
|
-
import "./OnlineSelectCascade-
|
|
52
|
-
import "./JModalTip-
|
|
51
|
+
import "./OnlineSelectCascade-fab4426d.mjs";
|
|
52
|
+
import "./JModalTip-c3e6726c.mjs";
|
|
53
53
|
import "ant-design-vue";
|
|
54
54
|
import "@vueuse/core";
|
|
55
55
|
import "/@/utils/dict";
|
|
56
56
|
import "/@/utils/dict/index";
|
|
57
57
|
import "/@/components/Markdown";
|
|
58
|
-
const
|
|
58
|
+
const B = "/online/cgform/api/subform", I = {
|
|
59
59
|
name: "OnlineSubFormDetail",
|
|
60
60
|
components: {
|
|
61
|
-
BasicForm:
|
|
62
|
-
Loading:
|
|
63
|
-
DetailForm:
|
|
61
|
+
BasicForm: y,
|
|
62
|
+
Loading: O,
|
|
63
|
+
DetailForm: $
|
|
64
64
|
},
|
|
65
65
|
props: {
|
|
66
66
|
properties: {
|
|
@@ -82,63 +82,66 @@ const O = "/online/cgform/api/subform", P = {
|
|
|
82
82
|
},
|
|
83
83
|
emits: ["formChange"],
|
|
84
84
|
setup(t) {
|
|
85
|
-
const i =
|
|
85
|
+
const i = d(!1);
|
|
86
86
|
h();
|
|
87
|
-
const m =
|
|
88
|
-
|
|
87
|
+
const m = d(""), e = d({}), { detailFormSchemas: a, createFormSchemas: l, formSpan: n } = w(t);
|
|
88
|
+
b(
|
|
89
89
|
() => t.table,
|
|
90
90
|
() => {
|
|
91
91
|
m.value = t.table;
|
|
92
92
|
},
|
|
93
93
|
{ immediate: !0 }
|
|
94
|
-
),
|
|
94
|
+
), b(
|
|
95
95
|
() => t.properties,
|
|
96
96
|
() => {
|
|
97
|
-
i.value = !1,
|
|
97
|
+
i.value = !1, l(t.properties), i.value = !0;
|
|
98
98
|
},
|
|
99
99
|
{ deep: !0, immediate: !0 }
|
|
100
|
-
),
|
|
100
|
+
), b(
|
|
101
101
|
() => t.mainId,
|
|
102
102
|
() => {
|
|
103
103
|
setTimeout(() => {
|
|
104
|
-
|
|
104
|
+
p();
|
|
105
105
|
}, 100);
|
|
106
106
|
},
|
|
107
107
|
{ immediate: !0 }
|
|
108
108
|
);
|
|
109
|
-
function
|
|
110
|
-
return
|
|
111
|
-
yield
|
|
112
|
-
const { table: o, mainId:
|
|
113
|
-
!o || !
|
|
109
|
+
function p() {
|
|
110
|
+
return u(this, null, function* () {
|
|
111
|
+
yield x(i), e.value = {};
|
|
112
|
+
const { table: o, mainId: s } = t;
|
|
113
|
+
if (!o || !s)
|
|
114
|
+
return;
|
|
115
|
+
let c = s.substring(0, s.indexOf("__"));
|
|
116
|
+
e.value = (yield r(o, c)) || {};
|
|
114
117
|
});
|
|
115
118
|
}
|
|
116
|
-
function r(o,
|
|
117
|
-
return
|
|
118
|
-
let
|
|
119
|
-
return new Promise((
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
function r(o, s) {
|
|
120
|
+
return u(this, null, function* () {
|
|
121
|
+
let c = `${B}/${o}/${s}`;
|
|
122
|
+
return new Promise((_, g) => {
|
|
123
|
+
D.get({ url: c }, { isTransformResponse: !1 }).then((f) => {
|
|
124
|
+
f.success ? _(f.result) : g(f.message);
|
|
122
125
|
});
|
|
123
|
-
}).catch((
|
|
126
|
+
}).catch((_) => Promise.resolve({}));
|
|
124
127
|
});
|
|
125
128
|
}
|
|
126
129
|
return {
|
|
127
130
|
detailFormSchemas: a,
|
|
128
131
|
subFormData: e,
|
|
129
|
-
formSpan:
|
|
132
|
+
formSpan: n
|
|
130
133
|
};
|
|
131
134
|
}
|
|
132
135
|
};
|
|
133
|
-
function
|
|
134
|
-
const
|
|
135
|
-
return S(), v(
|
|
136
|
+
function P(t, i, m, e, a, l) {
|
|
137
|
+
const n = F("detail-form");
|
|
138
|
+
return S(), v(n, {
|
|
136
139
|
schemas: e.detailFormSchemas,
|
|
137
140
|
data: e.subFormData,
|
|
138
141
|
span: e.formSpan
|
|
139
142
|
}, null, 8, ["schemas", "data", "span"]);
|
|
140
143
|
}
|
|
141
|
-
const St = /* @__PURE__ */ I
|
|
144
|
+
const St = /* @__PURE__ */ k(I, [["render", P]]);
|
|
142
145
|
export {
|
|
143
146
|
St as default
|
|
144
147
|
};
|
|
@@ -16,12 +16,12 @@ var L = (e, n, i) => new Promise((c, d) => {
|
|
|
16
16
|
});
|
|
17
17
|
import { defineComponent as oe, ref as B, watch as ne, computed as ae, resolveComponent as r, openBlock as m, createBlock as u, mergeProps as re, createSlots as le, withCtx as o, createVNode as f, createElementBlock as A, Fragment as V, renderList as j, createTextVNode as I, toDisplayString as g, createElementVNode as N, createCommentVNode as me } from "vue";
|
|
18
18
|
import { BasicModal as ie } from "/@/components/Modal";
|
|
19
|
-
import de from "./OnlineTabForm-
|
|
20
|
-
import { b as se } from "./useExtendComponent-
|
|
19
|
+
import de from "./OnlineTabForm-5c04cbc5.mjs";
|
|
20
|
+
import { b as se } from "./useExtendComponent-95ce0719.mjs";
|
|
21
21
|
import pe from "/@/components/jeecg/comment/CommentPanel.vue";
|
|
22
22
|
import { T as ue } from "./constant-fa63bd66.mjs";
|
|
23
23
|
import { useAppInject as ce } from "/@/hooks/web/useAppInject";
|
|
24
|
-
import { _ as be } from "./index-
|
|
24
|
+
import { _ as be } from "./index-740b2c4a.mjs";
|
|
25
25
|
import "/@/hooks/web/useMessage";
|
|
26
26
|
import "/@/components/Form/index";
|
|
27
27
|
import "/@/utils/http/axios";
|
|
@@ -47,11 +47,11 @@ import "/@/hooks/system/useListPage";
|
|
|
47
47
|
import "vue-router";
|
|
48
48
|
import "/@/components/Form/src/utils/Area";
|
|
49
49
|
import "/@/components/Preview/index";
|
|
50
|
-
import "./LinkTableListPiece-
|
|
50
|
+
import "./LinkTableListPiece-0f4ca559.mjs";
|
|
51
51
|
import "/@/api/common/api";
|
|
52
52
|
import "/@/assets/images/placeholderImage.png";
|
|
53
|
-
import "./OnlineSelectCascade-
|
|
54
|
-
import "./JModalTip-
|
|
53
|
+
import "./OnlineSelectCascade-fab4426d.mjs";
|
|
54
|
+
import "./JModalTip-c3e6726c.mjs";
|
|
55
55
|
import "ant-design-vue";
|
|
56
56
|
import "@vueuse/core";
|
|
57
57
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
var F = (e, t, a) => new Promise((s, i) => {
|
|
2
|
-
var
|
|
2
|
+
var b = (o) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
5
|
-
} catch (
|
|
6
|
-
i(
|
|
4
|
+
r(a.next(o));
|
|
5
|
+
} catch (n) {
|
|
6
|
+
i(n);
|
|
7
7
|
}
|
|
8
8
|
}, p = (o) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
11
|
-
} catch (
|
|
12
|
-
i(
|
|
10
|
+
r(a.throw(o));
|
|
11
|
+
} catch (n) {
|
|
12
|
+
i(n);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, r = (o) => o.done ? s(o.value) : Promise.resolve(o.value).then(b, p);
|
|
15
|
+
r((a = a.apply(e, t)).next());
|
|
16
16
|
});
|
|
17
|
-
import { defineComponent as z, ref as
|
|
17
|
+
import { defineComponent as z, ref as v, watch as G, resolveComponent as d, openBlock as I, createBlock as M, mergeProps as J, withCtx as m, createElementVNode as N, toDisplayString as R, createVNode as f, createElementBlock as K, Fragment as Q, renderList as X, createTextVNode as S } from "vue";
|
|
18
18
|
import { BasicModal as Y } from "/@/components/Modal";
|
|
19
|
-
import Z from "./OnlineTabFormDetail-
|
|
20
|
-
import { b as ee } from "./useExtendComponent-
|
|
19
|
+
import Z from "./OnlineTabFormDetail-2a28febf.mjs";
|
|
20
|
+
import { b as ee } from "./useExtendComponent-95ce0719.mjs";
|
|
21
21
|
import te from "/@/components/jeecg/comment/CommentPanel.vue";
|
|
22
22
|
import { T as oe } from "./constant-fa63bd66.mjs";
|
|
23
|
-
import { _ as ae } from "./index-
|
|
23
|
+
import { _ as ae } from "./index-740b2c4a.mjs";
|
|
24
24
|
import "/@/hooks/web/useMessage";
|
|
25
25
|
import "/@/components/Loading";
|
|
26
26
|
import "/@/utils/auth";
|
|
27
27
|
import "/@/utils";
|
|
28
28
|
import "@ant-design/icons-vue";
|
|
29
|
-
import "./DetailForm-
|
|
29
|
+
import "./DetailForm-7d4f630e.mjs";
|
|
30
30
|
import "/@/utils/propTypes";
|
|
31
31
|
import "/@/utils/dict";
|
|
32
32
|
import "/@/utils/dict/JDictSelectUtil";
|
|
@@ -37,9 +37,10 @@ import "/@/components/Form/src/utils/Area";
|
|
|
37
37
|
import "/@/utils/common/compUtils";
|
|
38
38
|
import "/@/components/Preview/index";
|
|
39
39
|
import "/@/components/Markdown";
|
|
40
|
-
import "./OnlineSubFormDetail-
|
|
40
|
+
import "./OnlineSubFormDetail-bbc48c3e.mjs";
|
|
41
41
|
import "/@/components/Form/index";
|
|
42
42
|
import "/@/hooks/web/useAppInject";
|
|
43
|
+
import "/@/utils/uuid";
|
|
43
44
|
import "/@/components/Form/src/componentMap";
|
|
44
45
|
import "lodash-es";
|
|
45
46
|
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
@@ -51,14 +52,14 @@ import "/@/store/modules/permission";
|
|
|
51
52
|
import "/@/components/Table";
|
|
52
53
|
import "/@/hooks/system/useListPage";
|
|
53
54
|
import "vue-router";
|
|
54
|
-
import "./LinkTableListPiece-
|
|
55
|
+
import "./LinkTableListPiece-0f4ca559.mjs";
|
|
55
56
|
import "/@/assets/images/placeholderImage.png";
|
|
56
|
-
import "./OnlineSelectCascade-
|
|
57
|
-
import "./JModalTip-
|
|
57
|
+
import "./OnlineSelectCascade-fab4426d.mjs";
|
|
58
|
+
import "./JModalTip-c3e6726c.mjs";
|
|
58
59
|
import "ant-design-vue";
|
|
59
60
|
import "@vueuse/core";
|
|
60
61
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
61
|
-
const
|
|
62
|
+
const re = z({
|
|
62
63
|
name: "OnlineTabDetailModal",
|
|
63
64
|
props: {
|
|
64
65
|
id: {
|
|
@@ -74,15 +75,15 @@ const ne = z({
|
|
|
74
75
|
},
|
|
75
76
|
emits: ["success", "register", "formConfig"],
|
|
76
77
|
setup(e, { emit: t }) {
|
|
77
|
-
const a =
|
|
78
|
-
function
|
|
78
|
+
const a = v(), s = v([]), i = v("-1");
|
|
79
|
+
function b() {
|
|
79
80
|
a.value && a.value.reload();
|
|
80
81
|
}
|
|
81
82
|
const {
|
|
82
83
|
title: p,
|
|
83
|
-
modalWidth:
|
|
84
|
+
modalWidth: r,
|
|
84
85
|
registerModal: o,
|
|
85
|
-
cgButtonList:
|
|
86
|
+
cgButtonList: n,
|
|
86
87
|
handleCgButtonClick: c,
|
|
87
88
|
disableSubmit: h,
|
|
88
89
|
handleSubmit: l,
|
|
@@ -100,15 +101,15 @@ const ne = z({
|
|
|
100
101
|
formDataId: j,
|
|
101
102
|
enableComment: W,
|
|
102
103
|
themeTemplate: q
|
|
103
|
-
} = ee(!1, { emit: t },
|
|
104
|
+
} = ee(!1, { emit: t }, b);
|
|
104
105
|
G(() => e.id, H, { immediate: !0 });
|
|
105
106
|
function H() {
|
|
106
107
|
return F(this, null, function* () {
|
|
107
108
|
P.value = !1, e.id && (yield D(e.id, {}, (T) => {
|
|
108
109
|
const w = [], _ = [], { head: B, schema: U } = T, { properties: x } = U;
|
|
109
|
-
w.push({ tableName: B.tableName, tableTxt: B.tableTxt }), Object.entries(x).forEach(([
|
|
110
|
-
|
|
111
|
-
}), _.sort((
|
|
110
|
+
w.push({ tableName: B.tableName, tableTxt: B.tableTxt }), Object.entries(x).forEach(([C, u]) => {
|
|
111
|
+
u.view == "tab" && _.push({ tableName: C, tableTxt: u.describe, order: u.order });
|
|
112
|
+
}), _.sort((C, u) => C.order - u.order), s.value = [...w, ..._];
|
|
112
113
|
}));
|
|
113
114
|
});
|
|
114
115
|
}
|
|
@@ -119,10 +120,10 @@ const ne = z({
|
|
|
119
120
|
registerModal: o,
|
|
120
121
|
handleSubmit: l,
|
|
121
122
|
handleCancel: k,
|
|
122
|
-
modalWidth:
|
|
123
|
+
modalWidth: r,
|
|
123
124
|
formTemplate: V,
|
|
124
125
|
disableSubmit: h,
|
|
125
|
-
cgButtonList:
|
|
126
|
+
cgButtonList: n,
|
|
126
127
|
handleCgButtonClick: c,
|
|
127
128
|
isTreeForm: O,
|
|
128
129
|
pidFieldName: $,
|
|
@@ -145,9 +146,9 @@ const ne = z({
|
|
|
145
146
|
};
|
|
146
147
|
}
|
|
147
148
|
});
|
|
148
|
-
const
|
|
149
|
-
function le(e, t, a, s, i,
|
|
150
|
-
const p = d("a-radio-button"),
|
|
149
|
+
const ne = { class: "titleArea" }, me = { class: "title" }, ie = { class: "right" };
|
|
150
|
+
function le(e, t, a, s, i, b) {
|
|
151
|
+
const p = d("a-radio-button"), r = d("a-radio-group"), o = d("a-button"), n = d("online-form-detail"), c = d("comment-panel"), h = d("BasicModal");
|
|
151
152
|
return I(), M(h, J({
|
|
152
153
|
title: e.title,
|
|
153
154
|
onCancel: t[2] || (t[2] = () => {
|
|
@@ -162,10 +163,10 @@ function le(e, t, a, s, i, u) {
|
|
|
162
163
|
wrapClassName: "jeecg-online-detail-modal"
|
|
163
164
|
}), {
|
|
164
165
|
title: m(() => [
|
|
165
|
-
N("div",
|
|
166
|
+
N("div", ne, [
|
|
166
167
|
N("div", me, R(e.title), 1),
|
|
167
168
|
N("div", ie, [
|
|
168
|
-
f(
|
|
169
|
+
f(r, {
|
|
169
170
|
value: e.tabIndex,
|
|
170
171
|
"onUpdate:value": t[0] || (t[0] = (l) => e.tabIndex = l)
|
|
171
172
|
}, {
|
|
@@ -206,7 +207,7 @@ function le(e, t, a, s, i, u) {
|
|
|
206
207
|
}, null, 8, ["tableName", "dataId"])
|
|
207
208
|
]),
|
|
208
209
|
default: m(() => [
|
|
209
|
-
f(
|
|
210
|
+
f(n, {
|
|
210
211
|
ref: "onlineFormCompRef",
|
|
211
212
|
id: e.id,
|
|
212
213
|
"form-template": e.formTemplate,
|
|
@@ -219,7 +220,7 @@ function le(e, t, a, s, i, u) {
|
|
|
219
220
|
_: 1
|
|
220
221
|
}, 16, ["title", "width", "enableComment", "onRegister"]);
|
|
221
222
|
}
|
|
222
|
-
const
|
|
223
|
+
const rt = /* @__PURE__ */ ae(re, [["render", le], ["__scopeId", "data-v-1d94bf71"]]);
|
|
223
224
|
export {
|
|
224
|
-
|
|
225
|
+
rt as default
|
|
225
226
|
};
|