@jeecg/online 3.6.2-GA → 3.7.0-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/AiModal-fe3988fb.mjs +84 -0
- package/AuthButtonConfig-d50a0a65.mjs +134 -0
- package/{AuthButtonTree-c2602a7c.mjs → AuthButtonTree-589395ed.mjs} +2 -2
- package/AuthDataConfig-7bb0cd85.mjs +237 -0
- package/{AuthDataTree-9dc58b20.mjs → AuthDataTree-6e3bb86f.mjs} +1 -1
- package/AuthFieldConfig-490fc0ab.mjs +139 -0
- package/{AuthFieldTree-d836be59.mjs → AuthFieldTree-b7cd091e.mjs} +1 -1
- package/AuthManagerDrawer-5e2ed5ce.mjs +118 -0
- package/AuthSetterModal-6f74449c.mjs +273 -0
- package/{CgformCopyList-86157923.mjs → CgformCopyList-8077ccc6.mjs} +47 -45
- package/{CgformModal-5cf02d51.mjs → CgformModal-36faf29a.mjs} +256 -246
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-c2ceb064.mjs → CgreportModal-5a23d089.mjs} +140 -117
- package/CheckDictTable-b5cb0e2b.mjs +226 -0
- package/{CodeFileListModal-f747daae.mjs → CodeFileListModal-0e26b7e0.mjs} +2 -2
- package/{CodeFileViewModal-a9fb2900.mjs → CodeFileViewModal-9d4a5b5f.mjs} +36 -32
- package/CodeGeneratorModal-b722d976.mjs +238 -0
- package/{CustomButtonList-b9b27a93.mjs → CustomButtonList-37639061.mjs} +118 -100
- package/{DBAttributeTable-6bdcb1e8.mjs → DBAttributeTable-95dc66c1.mjs} +110 -89
- package/{DbToOnlineModal-3705e91a.mjs → DbToOnlineModal-f49b9530.mjs} +56 -50
- package/DetailForm-4aa2570b.mjs +485 -0
- package/{EnhanceJavaModal-c13de6e0.mjs → EnhanceJavaModal-98934198.mjs} +3 -3
- package/{EnhanceJsHistory-154101f0.mjs → EnhanceJsHistory-9c4acdaf.mjs} +2 -2
- package/EnhanceJsModal-247f640d.mjs +532 -0
- package/{EnhanceSqlModal-221c22dc.mjs → EnhanceSqlModal-65b74b0f.mjs} +3 -3
- package/ExtendConfigModal-00f2fb55.mjs +117 -0
- package/FieldExtendJsonModal-cc7fce26.mjs +277 -0
- package/{FileSelectModal-de40a706.mjs → FileSelectModal-38660e3c.mjs} +1 -1
- package/{ForeignKeyTable-22989042.mjs → ForeignKeyTable-a78cb5ad.mjs} +3 -3
- package/{IndexTable-833d34ff.mjs → IndexTable-1b496559.mjs} +10 -10
- package/{JModalTip-0413ad6a.mjs → JModalTip-4a83aaed.mjs} +1 -1
- package/{JOnlineSearchSelect-9ea89e13.mjs → JOnlineSearchSelect-34a37ec9.mjs} +1 -1
- package/{LeftDepart-b0a535c0.mjs → LeftDepart-8ade4bf7.mjs} +1 -1
- package/{LeftRole-22c90d6b.mjs → LeftRole-7d8c5acc.mjs} +1 -1
- package/{LeftUser-a44d63dd.mjs → LeftUser-b4d1372a.mjs} +3 -3
- package/LinkTableConfigModal-a138c85e.mjs +240 -0
- package/{LinkTableFieldConfigModal-06693eaa.mjs → LinkTableFieldConfigModal-17b413b0.mjs} +41 -41
- package/{LinkTableListPiece-46e8af51.mjs → LinkTableListPiece-2660d709.mjs} +1 -1
- package/{ModalFormDemo-d107fa87.mjs → ModalFormDemo-0544737d.mjs} +1 -1
- package/OnlCgformErpList-30e416c8.mjs +470 -0
- package/OnlCgformErpSubTable-9a876058.mjs +427 -0
- package/OnlCgformInnerSubTable-290ace5d.mjs +266 -0
- package/OnlCgformInnerTableList-f89b6687.mjs +458 -0
- package/OnlCgformTabList-7a2f2c03.mjs +408 -0
- package/OnlineAutoList-46c6c8b9.mjs +493 -0
- package/OnlineAutoModal-971bef13.mjs +236 -0
- package/{OnlineAutoTreeList-ec27d271.mjs → OnlineAutoTreeList-3b92454c.mjs} +206 -204
- package/{OnlineCustomModal-3e6792d3.mjs → OnlineCustomModal-594244f3.mjs} +15 -11
- package/{OnlineDetailModal-f40e37e1.mjs → OnlineDetailModal-2a271e0b.mjs} +74 -64
- package/OnlineForm-018981b2.mjs +924 -0
- package/OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs +1 -0
- package/OnlineFormDetail-e036cd11.mjs +342 -0
- package/OnlineFormUrlAdd-7fb3dcca.mjs +115 -0
- package/OnlineFormUrlDetail-b2292137.mjs +119 -0
- package/OnlineFormUrlEdit-44080fb3.mjs +113 -0
- package/OnlineFormUrlSuccess-af285b02.mjs +59 -0
- package/OnlineQueryForm-998c12a4.mjs +444 -0
- package/{OnlineSearchFormItem-fe308194.mjs → OnlineSearchFormItem-6feacae6.mjs} +2 -2
- package/{OnlineSelectCascade-abc345f9.mjs → OnlineSelectCascade-471fcc76.mjs} +1 -1
- package/{OnlineSubFormDetail-02326a8c.mjs → OnlineSubFormDetail-03f8ee5c.mjs} +29 -27
- package/OnlineTabAutoModal-7b9bcd0b.mjs +306 -0
- package/{OnlineTabDetailModal-d23bd4c9.mjs → OnlineTabDetailModal-88143301.mjs} +22 -20
- package/OnlineTabForm-9ad7d29a.mjs +805 -0
- package/OnlineTabFormDetail-bbf23caa.mjs +327 -0
- package/PageAttributeTable-6c23547b.mjs +446 -0
- package/{ProcessOnlineForm-84f4d02d.mjs → ProcessOnlineForm-b42198f5.mjs} +32 -28
- package/QueryTable-96b3dbd0.mjs +144 -0
- package/SetSwitchOptions-a452fa0f.mjs +62 -0
- package/SuperQuery-cbfba908.mjs +975 -0
- package/{auth.data-8be5c9e3.mjs → auth.data-22948e87.mjs} +56 -14
- package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
- package/constant-fa63bd66.mjs +10 -0
- package/{enhance.data-efc7e155.mjs → enhance.data-3304d553.mjs} +3 -3
- package/index-173949bb.mjs +57 -0
- package/{index-0a93652b.mjs → index-581bef24.mjs} +29 -27
- package/{index-e1bda35b.mjs → index-d2abb8a0.mjs} +394 -361
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-8755a94e.mjs +426 -0
- package/useExtendComponent-bb7cca20.mjs +4295 -0
- package/useFormUrl-2ee1a82d.mjs +24 -0
- package/useListButton-7ddb9a46.mjs +697 -0
- package/{useSchemas-0433a403.mjs → useSchemas-47e45edc.mjs} +167 -86
- package/{useTableSync-774c3774.mjs → useTableSync-f6089e8a.mjs} +1 -1
- package/AuthButtonConfig-f142147a.mjs +0 -125
- package/AuthDataConfig-8e5c7b0c.mjs +0 -212
- package/AuthFieldConfig-e9a45f94.mjs +0 -139
- package/AuthManagerDrawer-5b558c23.mjs +0 -114
- package/AuthSetterModal-0cc557cf.mjs +0 -267
- package/CgreportModal-2eb9c9e1.mjs +0 -13
- package/CheckDictTable-27102064.mjs +0 -211
- package/CodeGeneratorModal-3a0e9f0e.mjs +0 -233
- package/DetailForm-cdeb54e3.mjs +0 -462
- package/EnhanceJsModal-6158804c.mjs +0 -311
- package/ExtendConfigModal-0564ef83.mjs +0 -111
- package/FieldExtendJsonModal-40d961c1.mjs +0 -219
- package/LinkTableConfigModal-5edaa08d.mjs +0 -230
- package/OnlCgformErpList-4c51cdb3.mjs +0 -454
- package/OnlCgformErpSubTable-d7081b9f.mjs +0 -403
- package/OnlCgformInnerSubTable-4c3925bb.mjs +0 -253
- package/OnlCgformInnerTableList-1e5014fa.mjs +0 -444
- package/OnlCgformTabList-c59c7cc7.mjs +0 -395
- package/OnlineAutoList-a7a9de5d.mjs +0 -479
- package/OnlineAutoModal-a33f1a63.mjs +0 -207
- package/OnlineForm-fb3a2379.mjs +0 -750
- package/OnlineFormDetail-52b1c303.mjs +0 -297
- package/OnlineQueryForm-7c70734e.mjs +0 -386
- package/OnlineTabAutoModal-6d9da8b0.mjs +0 -254
- package/OnlineTabForm-29ca07f7.mjs +0 -766
- package/OnlineTabFormDetail-aa7e1144.mjs +0 -324
- package/PageAttributeTable-d82946c5.mjs +0 -404
- package/QueryTable-d4599fca.mjs +0 -115
- package/SuperQuery-07162778.mjs +0 -843
- package/constant-754f1a9d.mjs +0 -9
- package/index-73993b18.mjs +0 -56
- package/useCgformList-b135794d.mjs +0 -400
- package/useExtendComponent-f4e29152.mjs +0 -3926
- package/useListButton-4dd33e7a.mjs +0 -676
|
@@ -0,0 +1,485 @@
|
|
|
1
|
+
var ie = Object.defineProperty;
|
|
2
|
+
var A = Object.getOwnPropertySymbols;
|
|
3
|
+
var le = Object.prototype.hasOwnProperty, ne = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var W = (a, s, d) => s in a ? ie(a, s, { enumerable: !0, configurable: !0, writable: !0, value: d }) : a[s] = d, R = (a, s) => {
|
|
5
|
+
for (var d in s || (s = {}))
|
|
6
|
+
le.call(s, d) && W(a, d, s[d]);
|
|
7
|
+
if (A)
|
|
8
|
+
for (var d of A(s))
|
|
9
|
+
ne.call(s, d) && W(a, d, s[d]);
|
|
10
|
+
return a;
|
|
11
|
+
};
|
|
12
|
+
var _ = (a, s, d) => new Promise((k, C) => {
|
|
13
|
+
var L = (m) => {
|
|
14
|
+
try {
|
|
15
|
+
w(d.next(m));
|
|
16
|
+
} catch (D) {
|
|
17
|
+
C(D);
|
|
18
|
+
}
|
|
19
|
+
}, x = (m) => {
|
|
20
|
+
try {
|
|
21
|
+
w(d.throw(m));
|
|
22
|
+
} catch (D) {
|
|
23
|
+
C(D);
|
|
24
|
+
}
|
|
25
|
+
}, w = (m) => m.done ? k(m.value) : Promise.resolve(m.value).then(L, x);
|
|
26
|
+
w((d = d.apply(a, s)).next());
|
|
27
|
+
});
|
|
28
|
+
import { ref as ae, computed as re, watch as oe, defineComponent as se, resolveComponent as T, openBlock as f, createElementBlock as u, normalizeClass as j, createVNode as $, withCtx as q, Fragment as S, renderList as B, createBlock as K, createElementVNode as p, toDisplayString as V } from "vue";
|
|
29
|
+
import { propTypes as J } from "/@/utils/propTypes";
|
|
30
|
+
import { getDictItemsByCode as de } from "/@/utils/dict";
|
|
31
|
+
import { filterMultiDictText as I, filterDictText as ce } from "/@/utils/dict/JDictSelectUtil";
|
|
32
|
+
import { initDictOptions as H } from "/@/utils/dict/index";
|
|
33
|
+
import { loadDictItem as fe, queryDepartTreeSync as ue, getUserList as pe } from "/@/api/common/api";
|
|
34
|
+
import { defHttp as me } from "/@/utils/http/axios";
|
|
35
|
+
import { getAreaTextByCode as _e } from "/@/components/Form/src/utils/Area";
|
|
36
|
+
import { getFileAccessHttpUrl as he } from "/@/utils/common/compUtils";
|
|
37
|
+
import { createImgPreview as ge } from "/@/components/Preview/index";
|
|
38
|
+
import { useMessage as ve } from "/@/hooks/web/useMessage";
|
|
39
|
+
import { DownloadOutlined as we, EyeOutlined as ye, PaperClipOutlined as ke } from "@ant-design/icons-vue";
|
|
40
|
+
import { L as De } from "./useExtendComponent-bb7cca20.mjs";
|
|
41
|
+
import { MarkdownViewer as Fe } from "/@/components/Markdown";
|
|
42
|
+
import { getWeekMonthQuarterYear as be } from "/@/utils";
|
|
43
|
+
import { _ as Ce } from "./index-173949bb.mjs";
|
|
44
|
+
import "/@/components/Form/src/componentMap";
|
|
45
|
+
import "/@/components/Modal";
|
|
46
|
+
import "/@/components/Form/index";
|
|
47
|
+
import "lodash-es";
|
|
48
|
+
import "./constant-fa63bd66.mjs";
|
|
49
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
50
|
+
import "/@/utils/is";
|
|
51
|
+
import "/@/views/system/user/user.api";
|
|
52
|
+
import "/@/store/modules/user";
|
|
53
|
+
import "/@/utils/desform/customExpression";
|
|
54
|
+
import "/@/store/modules/permission";
|
|
55
|
+
import "/@/components/Table";
|
|
56
|
+
import "/@/hooks/system/useListPage";
|
|
57
|
+
import "vue-router";
|
|
58
|
+
import "./LinkTableListPiece-2660d709.mjs";
|
|
59
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
60
|
+
import "/@/utils/auth";
|
|
61
|
+
import "/@/hooks/web/useAppInject";
|
|
62
|
+
import "/@/assets/images/placeholderImage.png";
|
|
63
|
+
import "./OnlineSelectCascade-471fcc76.mjs";
|
|
64
|
+
import "/@/components/Loading";
|
|
65
|
+
import "./JModalTip-4a83aaed.mjs";
|
|
66
|
+
import "ant-design-vue";
|
|
67
|
+
import "@vueuse/core";
|
|
68
|
+
function xe(a) {
|
|
69
|
+
const s = {}, d = [], k = ae({}), { createMessage: C } = ve(), L = re(() => a.containerClass ? `jeecg-detail-form ${a.containerClass}` : "jeecg-detail-form");
|
|
70
|
+
oe(
|
|
71
|
+
() => a.data,
|
|
72
|
+
(e) => _(this, null, function* () {
|
|
73
|
+
if (e) {
|
|
74
|
+
let n = a.schemas, l = {};
|
|
75
|
+
if (n && n.length > 0)
|
|
76
|
+
for (let i of n) {
|
|
77
|
+
let t = i.field;
|
|
78
|
+
try {
|
|
79
|
+
l[t] = yield x(i);
|
|
80
|
+
} catch (o) {
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
k.value = l;
|
|
84
|
+
}
|
|
85
|
+
}),
|
|
86
|
+
{ deep: !0, immediate: !0 }
|
|
87
|
+
);
|
|
88
|
+
function x(e) {
|
|
89
|
+
return _(this, null, function* () {
|
|
90
|
+
let n = a.data;
|
|
91
|
+
if (n) {
|
|
92
|
+
let l = n[e.field];
|
|
93
|
+
if (!l && l !== "0" && l !== 0)
|
|
94
|
+
return "";
|
|
95
|
+
let i = l, t = e.view;
|
|
96
|
+
if (t == "list" || t == "radio" || t == "checkbox" || t == "list_multi")
|
|
97
|
+
i = yield w(e, n);
|
|
98
|
+
else if (t == "sel_search")
|
|
99
|
+
i = yield D(e, n);
|
|
100
|
+
else if (t == "cat_tree")
|
|
101
|
+
i = yield O(e, n);
|
|
102
|
+
else if (t == "link_table")
|
|
103
|
+
i = yield ee(e, n);
|
|
104
|
+
else if (t == "sel_depart")
|
|
105
|
+
i = yield c(e, n);
|
|
106
|
+
else if (t == "sel_user")
|
|
107
|
+
i = yield F(e, n);
|
|
108
|
+
else if (t == "pca")
|
|
109
|
+
i = _e(l);
|
|
110
|
+
else if (t == "link_down")
|
|
111
|
+
i = yield v(e, n);
|
|
112
|
+
else if (t == "sel_tree")
|
|
113
|
+
i = yield h(e, n);
|
|
114
|
+
else if (t == "switch")
|
|
115
|
+
i = yield E(e, n);
|
|
116
|
+
else if (t == "image" || t == "file")
|
|
117
|
+
i = Y(e, n);
|
|
118
|
+
else if (t == "popup_dict") {
|
|
119
|
+
const o = n[`${e.field}_dictText`];
|
|
120
|
+
o !== void 0 && (i = o);
|
|
121
|
+
} else if (d.indexOf(e.field) >= 0) {
|
|
122
|
+
let o = s[e.field];
|
|
123
|
+
o && o.length > 0 && (i = I(o, l));
|
|
124
|
+
}
|
|
125
|
+
return i;
|
|
126
|
+
}
|
|
127
|
+
return "";
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
function w(e, n) {
|
|
131
|
+
return _(this, null, function* () {
|
|
132
|
+
let l = m(e), i = n[e.field];
|
|
133
|
+
if (!l)
|
|
134
|
+
return i;
|
|
135
|
+
let t = de(l);
|
|
136
|
+
if (t && t.length > 0)
|
|
137
|
+
return I(t, i);
|
|
138
|
+
{
|
|
139
|
+
let o = [];
|
|
140
|
+
if (s[l] ? o = s[l] : o = (yield H(l)) || [], o && o.length > 0)
|
|
141
|
+
return s[l] = o, I(o, i);
|
|
142
|
+
}
|
|
143
|
+
return "";
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
function m(e) {
|
|
147
|
+
let n = "", { dictCode: l, dictTable: i, dictText: t } = e;
|
|
148
|
+
return i ? n = encodeURI(`${i},${t},${l}`) : n = l, n;
|
|
149
|
+
}
|
|
150
|
+
function D(e, n) {
|
|
151
|
+
return _(this, null, function* () {
|
|
152
|
+
let l = m(e), i = n[e.field];
|
|
153
|
+
if (!i)
|
|
154
|
+
return "";
|
|
155
|
+
let t = [];
|
|
156
|
+
return s[l + i] ? t = s[l + i] : t = (yield me.get({ url: `/sys/dict/loadDictItem/${l}`, params: { key: i } })) || [], t && t.length > 0 ? (s[l + i] = t, t.join(",")) : "";
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
function O(e, n) {
|
|
160
|
+
return _(this, null, function* () {
|
|
161
|
+
let l = n[e.field];
|
|
162
|
+
if (!l)
|
|
163
|
+
return "";
|
|
164
|
+
let i = (yield fe({ ids: l })) || [];
|
|
165
|
+
return i && i.length > 0 ? i.join(",") : "";
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
function c(e, n) {
|
|
169
|
+
return _(this, null, function* () {
|
|
170
|
+
let l = n[e.field];
|
|
171
|
+
if (!l)
|
|
172
|
+
return "";
|
|
173
|
+
let i = r(e), t = i.store || "id", o = i.text || "departName", g = (yield ue({ ids: l, primaryKey: t })) || [];
|
|
174
|
+
if (g && g.length > 0) {
|
|
175
|
+
let y = [];
|
|
176
|
+
for (let b of g)
|
|
177
|
+
b[o] ? y.push(b[o]) : y.push(b.title);
|
|
178
|
+
return y.join(",");
|
|
179
|
+
}
|
|
180
|
+
return "";
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
function F(e, n) {
|
|
184
|
+
return _(this, null, function* () {
|
|
185
|
+
let l = n[e.field];
|
|
186
|
+
if (!l)
|
|
187
|
+
return "";
|
|
188
|
+
let i = r(e), o = {
|
|
189
|
+
[i.store || "username"]: l
|
|
190
|
+
}, y = ((yield pe(o)) || {}).records || [];
|
|
191
|
+
if (y && y.length > 0) {
|
|
192
|
+
let b = [], M = i.text || "realname";
|
|
193
|
+
for (let N of y)
|
|
194
|
+
b.push(N[M]);
|
|
195
|
+
return b.join(",");
|
|
196
|
+
}
|
|
197
|
+
return "";
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
function r(e) {
|
|
201
|
+
let n = {}, { fieldExtendJson: l } = e;
|
|
202
|
+
if (l && typeof l == "string")
|
|
203
|
+
try {
|
|
204
|
+
let i = JSON.parse(l);
|
|
205
|
+
n = R({}, i);
|
|
206
|
+
} catch (i) {
|
|
207
|
+
}
|
|
208
|
+
return n;
|
|
209
|
+
}
|
|
210
|
+
function v(e, n) {
|
|
211
|
+
return _(this, null, function* () {
|
|
212
|
+
let { dictTable: l, field: i } = e, t = [];
|
|
213
|
+
if (s[i])
|
|
214
|
+
t = s[i];
|
|
215
|
+
else if (l) {
|
|
216
|
+
let o = JSON.parse(l);
|
|
217
|
+
if (o) {
|
|
218
|
+
let { table: g, txt: y, key: b, linkField: M } = o, N = `${g},${y},${b}`;
|
|
219
|
+
if (t = [...(yield H(N)) || []], t && t.length > 0 && (s[i] = t, M)) {
|
|
220
|
+
let te = M.split(",");
|
|
221
|
+
for (let U of te)
|
|
222
|
+
s[U] = t, d.push(U);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
if (t && t.length > 0) {
|
|
227
|
+
let o = n[i];
|
|
228
|
+
return I(t, o);
|
|
229
|
+
}
|
|
230
|
+
return "";
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
function h(e, n) {
|
|
234
|
+
return _(this, null, function* () {
|
|
235
|
+
let { dict: l, field: i } = e, t = [];
|
|
236
|
+
if (s[i] ? t = s[i] : l && (t = yield H(l)), t && t.length > 0) {
|
|
237
|
+
let o = n[i];
|
|
238
|
+
return I(t, o);
|
|
239
|
+
}
|
|
240
|
+
return "";
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
function E(e, n) {
|
|
244
|
+
return _(this, null, function* () {
|
|
245
|
+
let { fieldExtendJson: l, field: i } = e, t = ["Y", "N"];
|
|
246
|
+
l && (t = JSON.parse(l));
|
|
247
|
+
let o = [
|
|
248
|
+
{ value: t[0], text: "是" },
|
|
249
|
+
{ value: t[1], text: "否" },
|
|
250
|
+
{ value: t[0] + "", text: "是" },
|
|
251
|
+
{ value: t[1] + "", text: "否" }
|
|
252
|
+
], g = n[i];
|
|
253
|
+
return ce(o, g);
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
function P(e) {
|
|
257
|
+
return e.span ? e.span : a.span;
|
|
258
|
+
}
|
|
259
|
+
function Y(e, n) {
|
|
260
|
+
let l = n[e.field];
|
|
261
|
+
if (!l)
|
|
262
|
+
return [];
|
|
263
|
+
let i = l.split(","), t = [];
|
|
264
|
+
for (let o of i) {
|
|
265
|
+
let g = he(o) || "";
|
|
266
|
+
g && t.push(g);
|
|
267
|
+
}
|
|
268
|
+
return t;
|
|
269
|
+
}
|
|
270
|
+
function z(e) {
|
|
271
|
+
e && window.open(e);
|
|
272
|
+
}
|
|
273
|
+
function Q(e) {
|
|
274
|
+
let n = k.value[e];
|
|
275
|
+
if (!n || n.length == 0) {
|
|
276
|
+
C.warning("无图片!");
|
|
277
|
+
return;
|
|
278
|
+
}
|
|
279
|
+
ge({ imageList: n });
|
|
280
|
+
}
|
|
281
|
+
function G(e) {
|
|
282
|
+
return e ? e.substring(e.lastIndexOf("/") + 1) : "";
|
|
283
|
+
}
|
|
284
|
+
const X = ["file", "image", "markdown", "umeditor"];
|
|
285
|
+
function Z(e) {
|
|
286
|
+
return X.indexOf(e.view) >= 0 ? a.span == 12 ? "span12" : a.span == 8 ? "span8" : a.span == 6 ? "span6" : "span24" : "";
|
|
287
|
+
}
|
|
288
|
+
function ee(e, n) {
|
|
289
|
+
return _(this, null, function* () {
|
|
290
|
+
let l = n[e.field];
|
|
291
|
+
return r(e).showType == "select" ? l ? n[e.field + "_dictText"] : "" : l ? n[e.field] : "";
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
return {
|
|
295
|
+
formContainerClass: L,
|
|
296
|
+
detailFormData: k,
|
|
297
|
+
getItemSpan: P,
|
|
298
|
+
handleDownloadFile: z,
|
|
299
|
+
handleViewImage: Q,
|
|
300
|
+
getFilename: G,
|
|
301
|
+
getLabelWidthClass: Z
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
const Te = se({
|
|
305
|
+
name: "DetailForm",
|
|
306
|
+
components: {
|
|
307
|
+
DownloadOutlined: we,
|
|
308
|
+
EyeOutlined: ye,
|
|
309
|
+
PaperClipOutlined: ke,
|
|
310
|
+
LinkTableCard: De,
|
|
311
|
+
MarkdownViewer: Fe
|
|
312
|
+
},
|
|
313
|
+
props: {
|
|
314
|
+
span: J.number.def(24),
|
|
315
|
+
//表单配置
|
|
316
|
+
schemas: J.array.def([]),
|
|
317
|
+
//表单数据
|
|
318
|
+
data: J.object.def({}),
|
|
319
|
+
containerClass: J.string.def("")
|
|
320
|
+
},
|
|
321
|
+
setup(a) {
|
|
322
|
+
const { formContainerClass: s, detailFormData: d, getItemSpan: k, handleDownloadFile: C, handleViewImage: L, getFilename: x, getLabelWidthClass: w } = xe(a);
|
|
323
|
+
return {
|
|
324
|
+
formContainerClass: s,
|
|
325
|
+
detailFormData: d,
|
|
326
|
+
getItemSpan: k,
|
|
327
|
+
handleDownloadFile: C,
|
|
328
|
+
handleViewImage: L,
|
|
329
|
+
getFilename: x,
|
|
330
|
+
getLabelWidthClass: w,
|
|
331
|
+
filterLable: (c) => {
|
|
332
|
+
if (c.fieldExtendJson) {
|
|
333
|
+
const F = JSON.parse(c.fieldExtendJson);
|
|
334
|
+
if (F.labelLength && c.label.length > 4)
|
|
335
|
+
return c.label.substr(0, F.labelLength);
|
|
336
|
+
}
|
|
337
|
+
return c.label;
|
|
338
|
+
},
|
|
339
|
+
filter: (c, F, r) => {
|
|
340
|
+
if (F == "date" && typeof c == "string") {
|
|
341
|
+
if (!c)
|
|
342
|
+
return "";
|
|
343
|
+
let v = r.fieldExtendJson;
|
|
344
|
+
return v && (v = JSON.parse(v), v.picker && v.picker != "default") ? be(c)[v.picker] : c.split(" ").shift();
|
|
345
|
+
} else
|
|
346
|
+
return c;
|
|
347
|
+
},
|
|
348
|
+
textareaLineBreak: (c) => (c && c.includes(`
|
|
349
|
+
`) && (c = c.replace(/\n/g, "<br>")), c)
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
});
|
|
353
|
+
const Le = {
|
|
354
|
+
key: 1,
|
|
355
|
+
class: "detail-item"
|
|
356
|
+
}, $e = ["title"], Ie = {
|
|
357
|
+
key: 0,
|
|
358
|
+
class: "item-content"
|
|
359
|
+
}, Oe = ["innerHTML"], Ee = ["innerHTML"], Me = {
|
|
360
|
+
key: 3,
|
|
361
|
+
class: "item-content",
|
|
362
|
+
style: { display: "block", "padding-top": "10px" }
|
|
363
|
+
}, Se = { key: 0 }, Je = {
|
|
364
|
+
key: 4,
|
|
365
|
+
class: "item-content"
|
|
366
|
+
}, Ne = { class: "ant-upload-list ant-upload-list-picture-card" }, je = {
|
|
367
|
+
class: "ant-upload-list-picture-card-container",
|
|
368
|
+
style: { "margin-top": "8px" }
|
|
369
|
+
}, Be = {
|
|
370
|
+
class: "ant-upload-list-item ant-upload-list-item-done ant-upload-list-item-list-type-picture-card",
|
|
371
|
+
"data-has-actions": "true"
|
|
372
|
+
}, Ve = { class: "ant-upload-list-item-info" }, He = ["src"], Ue = { class: "ant-upload-list-item-actions" }, Ae = {
|
|
373
|
+
key: 5,
|
|
374
|
+
class: "item-content"
|
|
375
|
+
}, We = { class: "ant-upload-list ant-upload-list-text" }, Re = { class: "" }, qe = { class: "ant-upload-list-item ant-upload-list-item-done ant-upload-list-item-list-type-text" }, Ke = { class: "ant-upload-list-item-info" }, Pe = { class: "ant-upload-span" }, Ye = { class: "ant-upload-text-icon" }, ze = ["href"], Qe = { class: "ant-upload-list-item-card-actions" }, Ge = {
|
|
376
|
+
key: 6,
|
|
377
|
+
class: "item-content"
|
|
378
|
+
};
|
|
379
|
+
function Xe(a, s, d, k, C, L) {
|
|
380
|
+
const x = T("MarkdownViewer"), w = T("link-table-card"), m = T("download-outlined"), D = T("eye-outlined"), O = T("paper-clip-outlined"), c = T("a-col"), F = T("a-row");
|
|
381
|
+
return f(), u("div", {
|
|
382
|
+
class: j(a.formContainerClass)
|
|
383
|
+
}, [
|
|
384
|
+
$(F, null, {
|
|
385
|
+
default: q(() => [
|
|
386
|
+
(f(!0), u(S, null, B(a.schemas, (r, v) => (f(), K(c, {
|
|
387
|
+
key: v,
|
|
388
|
+
span: a.getItemSpan(r)
|
|
389
|
+
}, {
|
|
390
|
+
default: q(() => [
|
|
391
|
+
r.hidden ? (f(), u(S, { key: 0 }, [], 64)) : (f(), u("div", Le, [
|
|
392
|
+
p("div", {
|
|
393
|
+
class: j(["item-title", a.getLabelWidthClass(r)]),
|
|
394
|
+
title: r.label
|
|
395
|
+
}, V(a.filterLable(r)) + ": ", 11, $e),
|
|
396
|
+
r.view === "markdown" ? (f(), u("div", Ie, [
|
|
397
|
+
$(x, {
|
|
398
|
+
value: a.detailFormData[r.field],
|
|
399
|
+
"onUpdate:value": (h) => a.detailFormData[r.field] = h,
|
|
400
|
+
placeholder: ""
|
|
401
|
+
}, null, 8, ["value", "onUpdate:value"])
|
|
402
|
+
])) : r.isHtml ? (f(), u("div", {
|
|
403
|
+
key: 1,
|
|
404
|
+
class: j(["item-content", r.view]),
|
|
405
|
+
innerHTML: a.detailFormData[r.field]
|
|
406
|
+
}, null, 10, Oe)) : r.view == "textarea" ? (f(), u("div", {
|
|
407
|
+
key: 2,
|
|
408
|
+
class: "item-content",
|
|
409
|
+
innerHTML: a.textareaLineBreak(a.detailFormData[r.field])
|
|
410
|
+
}, null, 8, Ee)) : r.isCard ? (f(), u("div", Me, [
|
|
411
|
+
a.detailFormData[r.field] ? (f(), K(w, {
|
|
412
|
+
key: 1,
|
|
413
|
+
disabled: "",
|
|
414
|
+
detail: "",
|
|
415
|
+
value: a.detailFormData[r.field],
|
|
416
|
+
valueField: r.dictCode,
|
|
417
|
+
textField: r.dictText,
|
|
418
|
+
tableName: r.dictTable,
|
|
419
|
+
multi: r.multi
|
|
420
|
+
}, null, 8, ["value", "valueField", "textField", "tableName", "multi"])) : (f(), u("span", Se))
|
|
421
|
+
])) : r.isImage ? (f(), u("div", Je, [
|
|
422
|
+
p("div", Ne, [
|
|
423
|
+
(f(!0), u(S, null, B(a.detailFormData[r.field], (h) => (f(), u("div", je, [
|
|
424
|
+
p("span", null, [
|
|
425
|
+
p("div", Be, [
|
|
426
|
+
p("div", Ve, [
|
|
427
|
+
p("img", {
|
|
428
|
+
src: h,
|
|
429
|
+
alt: "图片不存在",
|
|
430
|
+
class: "ant-upload-list-item-image"
|
|
431
|
+
}, null, 8, He)
|
|
432
|
+
]),
|
|
433
|
+
p("span", Ue, [
|
|
434
|
+
$(m, {
|
|
435
|
+
onClick: (E) => a.handleDownloadFile(h)
|
|
436
|
+
}, null, 8, ["onClick"]),
|
|
437
|
+
$(D, {
|
|
438
|
+
onClick: (E) => a.handleViewImage(r.field)
|
|
439
|
+
}, null, 8, ["onClick"])
|
|
440
|
+
])
|
|
441
|
+
])
|
|
442
|
+
])
|
|
443
|
+
]))), 256))
|
|
444
|
+
])
|
|
445
|
+
])) : r.isFile ? (f(), u("div", Ae, [
|
|
446
|
+
p("div", We, [
|
|
447
|
+
(f(!0), u(S, null, B(a.detailFormData[r.field], (h) => (f(), u("div", Re, [
|
|
448
|
+
p("span", null, [
|
|
449
|
+
p("div", qe, [
|
|
450
|
+
p("div", Ke, [
|
|
451
|
+
p("span", Pe, [
|
|
452
|
+
p("div", Ye, [
|
|
453
|
+
$(O)
|
|
454
|
+
]),
|
|
455
|
+
p("a", {
|
|
456
|
+
href: h,
|
|
457
|
+
target: "_blank",
|
|
458
|
+
rel: "noopener noreferrer",
|
|
459
|
+
class: "ant-upload-list-item-name"
|
|
460
|
+
}, V(a.getFilename(h)), 9, ze),
|
|
461
|
+
p("span", Qe, [
|
|
462
|
+
$(m, {
|
|
463
|
+
onClick: (E) => a.handleDownloadFile(h)
|
|
464
|
+
}, null, 8, ["onClick"])
|
|
465
|
+
])
|
|
466
|
+
])
|
|
467
|
+
])
|
|
468
|
+
])
|
|
469
|
+
])
|
|
470
|
+
]))), 256))
|
|
471
|
+
])
|
|
472
|
+
])) : (f(), u("div", Ge, V(a.filter(a.detailFormData[r.field], r.view, r)), 1))
|
|
473
|
+
]))
|
|
474
|
+
]),
|
|
475
|
+
_: 2
|
|
476
|
+
}, 1032, ["span"]))), 128))
|
|
477
|
+
]),
|
|
478
|
+
_: 1
|
|
479
|
+
})
|
|
480
|
+
], 2);
|
|
481
|
+
}
|
|
482
|
+
const Ut = /* @__PURE__ */ Ce(Te, [["render", Xe], ["__scopeId", "data-v-176992bf"]]);
|
|
483
|
+
export {
|
|
484
|
+
Ut as default
|
|
485
|
+
};
|
|
@@ -31,10 +31,10 @@ import { BasicForm as le, useForm as ce } from "/@/components/Form";
|
|
|
31
31
|
import { BasicTable as ue, TableAction as me } from "/@/components/Table";
|
|
32
32
|
import { useListPage as de } from "/@/hooks/system/useListPage";
|
|
33
33
|
import { u as pe } from "./useOnlineTest-e4bd8be3.mjs";
|
|
34
|
-
import { u as fe, a as ge } from "./enhance.data-
|
|
34
|
+
import { u as fe, a as ge } from "./enhance.data-3304d553.mjs";
|
|
35
35
|
import { a as _e, b as he, d as L } from "./enhance.api-138e6826.mjs";
|
|
36
|
-
import { _ as be } from "./index-
|
|
37
|
-
import "./cgform.data-
|
|
36
|
+
import { _ as be } from "./index-173949bb.mjs";
|
|
37
|
+
import "./cgform.data-475d4984.mjs";
|
|
38
38
|
import "/@/utils/dict";
|
|
39
39
|
import "/@/utils/dict/JDictSelectUtil";
|
|
40
40
|
import "/@/utils/uuid";
|
|
@@ -32,7 +32,7 @@ import { JCodeEditor as z } from "/@/components/Form";
|
|
|
32
32
|
import "/@/store";
|
|
33
33
|
import { defineStore as P } from "pinia";
|
|
34
34
|
import { createLocalStorage as q } from "/@/utils/cache";
|
|
35
|
-
import { _ as G } from "./index-
|
|
35
|
+
import { _ as G } from "./index-173949bb.mjs";
|
|
36
36
|
const B = q(), H = "enhance_", K = P({
|
|
37
37
|
id: "online-cgform-enhance",
|
|
38
38
|
state: () => ({
|
|
@@ -173,7 +173,7 @@ function W(e, n, t, u, _, m) {
|
|
|
173
173
|
_: 1
|
|
174
174
|
}, 8, ["onRegister", "confirmLoading", "onCancel"]);
|
|
175
175
|
}
|
|
176
|
-
const X = /* @__PURE__ */ G(Q, [["render", W], ["__scopeId", "data-v-
|
|
176
|
+
const X = /* @__PURE__ */ G(Q, [["render", W], ["__scopeId", "data-v-a2408ade"]]), ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
177
177
|
__proto__: null,
|
|
178
178
|
default: X
|
|
179
179
|
}, Symbol.toStringTag, { value: "Module" }));
|