sag-ubmp-pc 1.0.48 → 1.0.50
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/dist/sag-ubmp-pc.es.js +152 -150
- package/dist/sag-ubmp-pc.umd.js +2 -2
- package/package.json +4 -4
package/dist/sag-ubmp-pc.es.js
CHANGED
|
@@ -160,7 +160,7 @@ const le = It("log"), Ka = It("warn"), vt = It("error"), at = {
|
|
|
160
160
|
setDictDetail: function(e, n, t = A.application) {
|
|
161
161
|
return Rt(t, e, n);
|
|
162
162
|
}
|
|
163
|
-
}, Fe = "modal", lt = "open", rr = "confirm",
|
|
163
|
+
}, Fe = "modal", lt = "open", rr = "confirm", Ne = "sag_ubmp_pc_modal_instance_", or = (e) => rl(e, "buttonName"), ir = (e) => rl(e, "componentParams"), rl = (e, n) => s(e) && s(e[A.buttonKeyName]) ? e[A.buttonKeyName][n] : null, sr = (e) => s(e) && s(e[A.buttonKeyName]) ? e[A.buttonKeyName] : {}, ur = (e) => e._X_ROWS, cr = (e, n, t = {}) => {
|
|
164
164
|
const { span: a, placeholder: l, defaultValue: r, disabled: o } = t;
|
|
165
165
|
return {
|
|
166
166
|
field: e,
|
|
@@ -305,29 +305,31 @@ const le = It("log"), Ka = It("warn"), vt = It("error"), at = {
|
|
|
305
305
|
headerAlign: "center"
|
|
306
306
|
};
|
|
307
307
|
}, br = (e = {}) => {
|
|
308
|
-
const { fixed: n = null, visible: t = !0 } = e;
|
|
308
|
+
const { fixed: n = null, visible: t = !0, treeNode: a = !1 } = e;
|
|
309
309
|
return {
|
|
310
310
|
field: "row_radio",
|
|
311
311
|
title: "",
|
|
312
|
-
minWidth: 50,
|
|
313
|
-
width: 50,
|
|
312
|
+
minWidth: a ? 60 : 50,
|
|
313
|
+
width: a ? 60 : 50,
|
|
314
314
|
fixed: n,
|
|
315
315
|
visible: t,
|
|
316
316
|
resizable: !1,
|
|
317
|
+
treeNode: a,
|
|
317
318
|
type: "radio",
|
|
318
319
|
align: "center",
|
|
319
320
|
headerAlign: "center"
|
|
320
321
|
};
|
|
321
322
|
}, yr = (e = {}) => {
|
|
322
|
-
const { fixed: n = null, visible: t = !0 } = e;
|
|
323
|
+
const { fixed: n = null, visible: t = !0, treeNode: a = !1 } = e;
|
|
323
324
|
return {
|
|
324
325
|
field: "row_check",
|
|
325
326
|
title: "",
|
|
326
|
-
minWidth: 50,
|
|
327
|
-
width: 50,
|
|
327
|
+
minWidth: a ? 60 : 50,
|
|
328
|
+
width: a ? 60 : 50,
|
|
328
329
|
fixed: n,
|
|
329
330
|
visible: t,
|
|
330
331
|
resizable: !1,
|
|
332
|
+
treeNode: a,
|
|
331
333
|
type: "checkbox",
|
|
332
334
|
align: "center",
|
|
333
335
|
headerAlign: "center"
|
|
@@ -551,7 +553,7 @@ const le = It("log"), Ka = It("warn"), vt = It("error"), at = {
|
|
|
551
553
|
getVxePageLinkParams: ir,
|
|
552
554
|
getVxePageButtonProps: sr,
|
|
553
555
|
getVxePageRows: ur
|
|
554
|
-
},
|
|
556
|
+
}, Nn = (e) => {
|
|
555
557
|
const { mergeKey: n, seqKey: t, fields: a } = e;
|
|
556
558
|
return ({ row: r, _rowIndex: o, column: i, visibleData: u }) => {
|
|
557
559
|
if (n) {
|
|
@@ -629,7 +631,7 @@ const le = It("log"), Ka = It("warn"), vt = It("error"), at = {
|
|
|
629
631
|
const { field: i, datas: u, values: c } = o;
|
|
630
632
|
l[i] = u ? u.join(",") : c ? c.join(",") : "";
|
|
631
633
|
}), l;
|
|
632
|
-
},
|
|
634
|
+
}, Bn = (e, n, t = 1) => {
|
|
633
635
|
const a = document.documentElement.clientHeight * t, l = e && e.$el ? e.$el.offsetHeight : 0, r = a - l - 50;
|
|
634
636
|
n.height = r > n.minHeight ? r : n.minHeight;
|
|
635
637
|
}, Ke = (e, n, t) => {
|
|
@@ -682,7 +684,7 @@ function Dr(e, n, t) {
|
|
|
682
684
|
}
|
|
683
685
|
return { r: a * 255, g: l * 255, b: r * 255 };
|
|
684
686
|
}
|
|
685
|
-
function
|
|
687
|
+
function Nr(e, n, t) {
|
|
686
688
|
e = pe(e, 255), n = pe(n, 255), t = pe(t, 255);
|
|
687
689
|
var a = Math.max(e, n, t), l = Math.min(e, n, t), r = 0, o = a, i = a - l, u = a === 0 ? 0 : i / a;
|
|
688
690
|
if (a === l)
|
|
@@ -703,7 +705,7 @@ function Br(e, n, t) {
|
|
|
703
705
|
}
|
|
704
706
|
return { h: r, s: u, v: o };
|
|
705
707
|
}
|
|
706
|
-
function
|
|
708
|
+
function Br(e, n, t) {
|
|
707
709
|
e = pe(e, 360) * 6, n = pe(n, 100), t = pe(t, 100);
|
|
708
710
|
var a = Math.floor(e), l = e - a, r = t * (1 - n), o = t * (1 - l * n), i = t * (1 - (1 - l) * n), u = a % 6, c = [t, o, r, r, i, t][u], m = [i, t, t, o, r, r][u], f = [r, r, i, t, t, o][u];
|
|
709
711
|
return { r: c * 255, g: m * 255, b: f * 255 };
|
|
@@ -874,7 +876,7 @@ var In = {
|
|
|
874
876
|
};
|
|
875
877
|
function Ue(e) {
|
|
876
878
|
var n = { r: 0, g: 0, b: 0 }, t = 1, a = null, l = null, r = null, o = !1, i = !1;
|
|
877
|
-
return typeof e == "string" && (e = Er(e)), typeof e == "object" && (Ae(e.r) && Ae(e.g) && Ae(e.b) ? (n = qr(e.r, e.g, e.b), o = !0, i = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : Ae(e.h) && Ae(e.s) && Ae(e.v) ? (a = et(e.s), l = et(e.v), n =
|
|
879
|
+
return typeof e == "string" && (e = Er(e)), typeof e == "object" && (Ae(e.r) && Ae(e.g) && Ae(e.b) ? (n = qr(e.r, e.g, e.b), o = !0, i = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : Ae(e.h) && Ae(e.s) && Ae(e.v) ? (a = et(e.s), l = et(e.v), n = Br(e.h, a, l), o = !0, i = "hsv") : Ae(e.h) && Ae(e.s) && Ae(e.l) && (a = et(e.s), r = et(e.l), n = Dr(e.h, a, r), o = !0, i = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (t = e.a)), t = jr(t), {
|
|
878
880
|
ok: o,
|
|
879
881
|
format: e.format || i,
|
|
880
882
|
r: Math.min(255, Math.max(n.r, 0)),
|
|
@@ -964,7 +966,7 @@ var tt = 2, Rn = 0.16, Ur = 0.05, Fr = 0.05, Hr = 0.15, ul = 5, cl = 4, Yr = [{
|
|
|
964
966
|
opacity: 0.98
|
|
965
967
|
}];
|
|
966
968
|
function En(e) {
|
|
967
|
-
var n = e.r, t = e.g, a = e.b, l =
|
|
969
|
+
var n = e.r, t = e.g, a = e.b, l = Nr(n, t, a);
|
|
968
970
|
return {
|
|
969
971
|
h: l.h * 360,
|
|
970
972
|
s: l.s,
|
|
@@ -1138,15 +1140,15 @@ function lo(e, n) {
|
|
|
1138
1140
|
function Gn(e) {
|
|
1139
1141
|
return typeof e == "object" && typeof e.name == "string" && typeof e.theme == "string" && (typeof e.icon == "object" || typeof e.icon == "function");
|
|
1140
1142
|
}
|
|
1141
|
-
function
|
|
1143
|
+
function Nt(e, n, t) {
|
|
1142
1144
|
return t ? Ve(e.tag, Wn({
|
|
1143
1145
|
key: n
|
|
1144
1146
|
}, t, e.attrs), (e.children || []).map(function(a, l) {
|
|
1145
|
-
return
|
|
1147
|
+
return Nt(a, "".concat(n, "-").concat(e.tag, "-").concat(l));
|
|
1146
1148
|
})) : Ve(e.tag, Wn({
|
|
1147
1149
|
key: n
|
|
1148
1150
|
}, e.attrs), (e.children || []).map(function(a, l) {
|
|
1149
|
-
return
|
|
1151
|
+
return Nt(a, "".concat(n, "-").concat(e.tag, "-").concat(l));
|
|
1150
1152
|
}));
|
|
1151
1153
|
}
|
|
1152
1154
|
function gl(e) {
|
|
@@ -1285,7 +1287,7 @@ var je = function(n, t) {
|
|
|
1285
1287
|
var c = l;
|
|
1286
1288
|
return c && typeof c.icon == "function" && (c = ot({}, c, {
|
|
1287
1289
|
icon: c.icon(u.primaryColor, u.secondaryColor)
|
|
1288
|
-
})),
|
|
1290
|
+
})), Nt(c.icon, "svg-".concat(c.name), ot({}, i, {
|
|
1289
1291
|
"data-icon": c.name,
|
|
1290
1292
|
width: "1em",
|
|
1291
1293
|
height: "1em",
|
|
@@ -1446,7 +1448,7 @@ var J = function(n, t) {
|
|
|
1446
1448
|
var p = u ? {
|
|
1447
1449
|
msTransform: "rotate(".concat(u, "deg)"),
|
|
1448
1450
|
transform: "rotate(".concat(u, "deg)")
|
|
1449
|
-
} : void 0, O = hl(m), b = Co(O, 2), v = b[0],
|
|
1451
|
+
} : void 0, O = hl(m), b = Co(O, 2), v = b[0], N = b[1];
|
|
1450
1452
|
return q("span", Qn({
|
|
1451
1453
|
role: "img",
|
|
1452
1454
|
"aria-label": o.name
|
|
@@ -1457,7 +1459,7 @@ var J = function(n, t) {
|
|
|
1457
1459
|
}), [q(je, {
|
|
1458
1460
|
icon: o,
|
|
1459
1461
|
primaryColor: v,
|
|
1460
|
-
secondaryColor:
|
|
1462
|
+
secondaryColor: N,
|
|
1461
1463
|
style: p
|
|
1462
1464
|
}, null), q(wo, null, null)]);
|
|
1463
1465
|
};
|
|
@@ -1540,25 +1542,25 @@ var Wt = function(n, t) {
|
|
|
1540
1542
|
};
|
|
1541
1543
|
Wt.displayName = "CloseOutlined";
|
|
1542
1544
|
Wt.inheritAttrs = !1;
|
|
1543
|
-
var
|
|
1545
|
+
var No = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z" } }, { tag: "path", attrs: { d: "M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z" } }] }, name: "cloud-upload", theme: "outlined" };
|
|
1544
1546
|
function ta(e) {
|
|
1545
1547
|
for (var n = 1; n < arguments.length; n++) {
|
|
1546
1548
|
var t = arguments[n] != null ? Object(arguments[n]) : {}, a = Object.keys(t);
|
|
1547
1549
|
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(t).filter(function(l) {
|
|
1548
1550
|
return Object.getOwnPropertyDescriptor(t, l).enumerable;
|
|
1549
1551
|
}))), a.forEach(function(l) {
|
|
1550
|
-
|
|
1552
|
+
Bo(e, l, t[l]);
|
|
1551
1553
|
});
|
|
1552
1554
|
}
|
|
1553
1555
|
return e;
|
|
1554
1556
|
}
|
|
1555
|
-
function
|
|
1557
|
+
function Bo(e, n, t) {
|
|
1556
1558
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
1557
1559
|
}
|
|
1558
1560
|
var Gt = function(n, t) {
|
|
1559
1561
|
var a = ta({}, n, t.attrs);
|
|
1560
1562
|
return q(J, ta({}, a, {
|
|
1561
|
-
icon:
|
|
1563
|
+
icon: No
|
|
1562
1564
|
}), null);
|
|
1563
1565
|
};
|
|
1564
1566
|
Gt.displayName = "CloudUploadOutlined";
|
|
@@ -2161,7 +2163,7 @@ var Sn = function(n, t) {
|
|
|
2161
2163
|
};
|
|
2162
2164
|
Sn.displayName = "UserOutlined";
|
|
2163
2165
|
Sn.inheritAttrs = !1;
|
|
2164
|
-
const
|
|
2166
|
+
const Ni = (e) => {
|
|
2165
2167
|
const n = document.createElement("iframe");
|
|
2166
2168
|
n.style.display = "none", n.style.height = "0", n.src = e, document.body.appendChild(n), setTimeout(() => {
|
|
2167
2169
|
n.remove();
|
|
@@ -2193,7 +2195,7 @@ const Bi = (e) => {
|
|
|
2193
2195
|
onCancel() {
|
|
2194
2196
|
}
|
|
2195
2197
|
});
|
|
2196
|
-
}, E = (e, n) => e != null && e !== "" ? e : n,
|
|
2198
|
+
}, E = (e, n) => e != null && e !== "" ? e : n, Bi = (e, n, t) => {
|
|
2197
2199
|
e ? zt.success({
|
|
2198
2200
|
message: "操作成功",
|
|
2199
2201
|
description: n && n !== "操作成功" ? n : ""
|
|
@@ -2250,7 +2252,7 @@ const Bi = (e) => {
|
|
|
2250
2252
|
return null;
|
|
2251
2253
|
}, Aa = (e, n, t, a, l = !1) => {
|
|
2252
2254
|
n.loading = !0, We(t, a).then((r) => {
|
|
2253
|
-
if (n.loading = !1, (A.messageResp || r.success) &&
|
|
2255
|
+
if (n.loading = !1, (A.messageResp || r.success) && Bi(r.success, r.message), r.success || l) {
|
|
2254
2256
|
const o = e.value;
|
|
2255
2257
|
o && o.commitProxy("query");
|
|
2256
2258
|
}
|
|
@@ -2282,7 +2284,7 @@ function Ii(e) {
|
|
|
2282
2284
|
}, f = (g, d) => {
|
|
2283
2285
|
if (s(d.params.instanceField)) {
|
|
2284
2286
|
const h = {};
|
|
2285
|
-
if (h.instanceValue = g[d.params.instanceField], h.instanceId =
|
|
2287
|
+
if (h.instanceValue = g[d.params.instanceField], h.instanceId = Ne + h.instanceValue, h.title = E(d.params.title, i.title), h.width = E(d.params.width, i.width), h.height = E(d.params.height, i.height), h.maximize = E(d.params.maximize, !1), h.autoLoad = E(d.params.autoLoad, !1), h.componentVue = E(d.params.componentVue, i.componentVue), h.componentUrl = d.params.requestUrl, h.componentVue)
|
|
2286
2288
|
g[A.buttonKeyName] = d.params;
|
|
2287
2289
|
else {
|
|
2288
2290
|
let O = ne(r.ctxPath, h.componentUrl);
|
|
@@ -2321,8 +2323,8 @@ function Ii(e) {
|
|
|
2321
2323
|
const b = E(d.componentVue, i.componentVue);
|
|
2322
2324
|
if ((!b || d.requestType === lt) && (O = ne(r.ctxPath, O), d.requestRow && O.split("?").length > 1)) {
|
|
2323
2325
|
const v = Li(O.split("?")[1]);
|
|
2324
|
-
for (const
|
|
2325
|
-
const D = v[
|
|
2326
|
+
for (const N in v) {
|
|
2327
|
+
const D = v[N];
|
|
2326
2328
|
if (l.checkboxConfig) {
|
|
2327
2329
|
let R = [];
|
|
2328
2330
|
for (const H in p)
|
|
@@ -2340,19 +2342,19 @@ function Ii(e) {
|
|
|
2340
2342
|
if (s(d.instanceField)) {
|
|
2341
2343
|
const v = {};
|
|
2342
2344
|
v.title = E(d.title, i.title), v.width = E(d.width, i.width), v.height = E(d.height, i.height), v.maximize = E(d.maximize, !1), v.autoLoad = E(d.autoLoad, !0), v.componentVue = b, v.componentUrl = O, v.componentParams = {};
|
|
2343
|
-
const
|
|
2345
|
+
const N = Math.round(Math.random() * 1e8);
|
|
2344
2346
|
if (d.requestRow)
|
|
2345
2347
|
if (l.checkboxConfig)
|
|
2346
2348
|
if (d.requestRadio)
|
|
2347
|
-
p[0][A.buttonKeyName] = d, v.componentParams = p[0], v.instanceValue = p[0][d.instanceField], v.instanceId =
|
|
2349
|
+
p[0][A.buttonKeyName] = d, v.componentParams = p[0], v.instanceValue = p[0][d.instanceField], v.instanceId = Ne + v.instanceValue;
|
|
2348
2350
|
else {
|
|
2349
2351
|
const R = {};
|
|
2350
|
-
R[A.buttonKeyName] = d, R._X_ROWS = p, v.componentParams = R, v.instanceId =
|
|
2352
|
+
R[A.buttonKeyName] = d, R._X_ROWS = p, v.componentParams = R, v.instanceId = Ne + N;
|
|
2351
2353
|
}
|
|
2352
2354
|
else
|
|
2353
|
-
p[A.buttonKeyName] = d, v.componentParams = p, v.instanceValue = p[d.instanceField], v.instanceId =
|
|
2355
|
+
p[A.buttonKeyName] = d, v.componentParams = p, v.instanceValue = p[d.instanceField], v.instanceId = Ne + v.instanceValue;
|
|
2354
2356
|
else
|
|
2355
|
-
v.instanceId =
|
|
2357
|
+
v.instanceId = Ne + N, v.componentParams[A.buttonKeyName] = d;
|
|
2356
2358
|
v.visible = !0;
|
|
2357
2359
|
const D = a.value.findIndex((R) => R.instanceId === v.instanceId);
|
|
2358
2360
|
if (s(D) && D >= 0)
|
|
@@ -2425,8 +2427,8 @@ function Ii(e) {
|
|
|
2425
2427
|
if (g.requestType === Fe)
|
|
2426
2428
|
if (d[A.buttonKeyName] = g, s(g.instanceField)) {
|
|
2427
2429
|
const b = {};
|
|
2428
|
-
b.instanceValue = d[g.instanceField], b.instanceId =
|
|
2429
|
-
const v = a.value.findIndex((
|
|
2430
|
+
b.instanceValue = d[g.instanceField], b.instanceId = Ne + b.instanceValue, b.title = E(g.title, i.title), b.width = E(g.width, i.width), b.height = E(g.height, i.height), b.maximize = E(g.maximize, !1), b.autoLoad = E(g.autoLoad, !0), b.componentVue = p, b.componentUrl = h, b.componentParams = d, b.visible = !0;
|
|
2431
|
+
const v = a.value.findIndex((N) => N.instanceId === b.instanceId);
|
|
2430
2432
|
if (s(v) && v >= 0)
|
|
2431
2433
|
if (a.value[v].visible) {
|
|
2432
2434
|
Se("已经打开该数据弹窗信息");
|
|
@@ -2514,16 +2516,16 @@ function Ri(e) {
|
|
|
2514
2516
|
setTimeout(O, 2e3);
|
|
2515
2517
|
const b = a.value;
|
|
2516
2518
|
if (b) {
|
|
2517
|
-
const { filter: v, form:
|
|
2519
|
+
const { filter: v, form: N, sort: D } = b.getProxyInfo(), I = jt({
|
|
2518
2520
|
currentPage: 1,
|
|
2519
2521
|
pageSize: 25e3
|
|
2520
|
-
}, D, v,
|
|
2522
|
+
}, D, v, N, t, o);
|
|
2521
2523
|
if (typeof p == "string") {
|
|
2522
2524
|
p = ne(u.ctxPath, f.requestDownload);
|
|
2523
2525
|
let H = "";
|
|
2524
2526
|
Object.keys(I).forEach((W) => {
|
|
2525
2527
|
s(I[W]) && (typeof I[W] == "string" && (H += "&" + W + "=" + I[W]), typeof I[W] == "object" && Array.isArray(I[W]) && (H += "&" + W + "=" + I[W].join(",")));
|
|
2526
|
-
}), le("导出表格参数", [p, H]),
|
|
2528
|
+
}), le("导出表格参数", [p, H]), Ni(p + H);
|
|
2527
2529
|
} else
|
|
2528
2530
|
l.loading = !0, I.exportFlag = !0, r(I, f.requestData, !0).then(async (H) => {
|
|
2529
2531
|
if (H == null || H.rows.length == 0) {
|
|
@@ -2748,8 +2750,8 @@ function Zi() {
|
|
|
2748
2750
|
}));
|
|
2749
2751
|
if (!g) return O;
|
|
2750
2752
|
var b = d.weekStart;
|
|
2751
|
-
return O.map((function(v,
|
|
2752
|
-
return O[(
|
|
2753
|
+
return O.map((function(v, N) {
|
|
2754
|
+
return O[(N + (b || 0)) % 7];
|
|
2753
2755
|
}));
|
|
2754
2756
|
}, u = function() {
|
|
2755
2757
|
return l.Ls[l.locale()];
|
|
@@ -2812,13 +2814,13 @@ function Zi() {
|
|
|
2812
2814
|
})(ut)), ut.exports;
|
|
2813
2815
|
}
|
|
2814
2816
|
var Qi = Zi();
|
|
2815
|
-
const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONSTANT_PAGE_OPTIONS", Ki = (e, n = "") => s(e) ? e : n, es = (e, n) => (n = s(n) ? n : 2, s(e) ? e.toFixed(n) : 0),
|
|
2817
|
+
const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONSTANT_PAGE_OPTIONS", Ki = (e, n = "") => s(e) ? e : n, es = (e, n) => (n = s(n) ? n : 2, s(e) ? e.toFixed(n) : 0), Bt = (e, n) => (n = s(n) ? n : 2, s(e) ? `${Me.commafy(Number(e), { digits: n })}` : e), wl = (e) => _n(e, "yyyy-MM-dd"), _l = (e) => _n(e, "yyyy-MM-dd HH:mm:ss"), _n = (e, n) => Me.toDateString(e, n), ct = (e, n) => e && e.length > n ? e.substring(0, n) + "..." : e, ts = (e, n) => typeof n == "string" ? n === "number" ? Bt(e) : n === "date" ? wl(e) : n === "datetime" ? _l(e) : ct(e, 200) : typeof n == "object" && n instanceof Array && n[0] === "number" ? Bt(e, n[1]) : ct(e, 200), V = {
|
|
2816
2818
|
toString: Ki,
|
|
2817
2819
|
toDateString: wl,
|
|
2818
2820
|
toDatetimeString: _l,
|
|
2819
2821
|
dateFormatter: _n,
|
|
2820
2822
|
toNumber: es,
|
|
2821
|
-
toMoney:
|
|
2823
|
+
toMoney: Bt,
|
|
2822
2824
|
stringFormat: ts,
|
|
2823
2825
|
truncateFormat: ct
|
|
2824
2826
|
}, ns = /* @__PURE__ */ Q({
|
|
@@ -2868,11 +2870,11 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
2868
2870
|
let b = null, v = null;
|
|
2869
2871
|
return c.value && c.value[0] && (b = T(c.value[0]).format(o)), c.value && c.value[1] && (v = T(c.value[1]).format(o)), !b && !v ? null : [b, v];
|
|
2870
2872
|
}, h = (b) => {
|
|
2871
|
-
const v = b ? b[0] : null,
|
|
2872
|
-
typeof v == "number" || typeof
|
|
2873
|
+
const v = b ? b[0] : null, N = b ? b[1] : null;
|
|
2874
|
+
typeof v == "number" || typeof N == "number" ? c.value = [
|
|
2873
2875
|
s(v) ? T().add(v, r) : null,
|
|
2874
|
-
s(
|
|
2875
|
-
] : c.value = [s(v) ? T(v) : null, s(
|
|
2876
|
+
s(N) ? T().add(N, r) : null
|
|
2877
|
+
] : c.value = [s(v) ? T(v) : null, s(N) ? T(N) : null], C("update:value", d());
|
|
2876
2878
|
}, p = () => {
|
|
2877
2879
|
s(a.defaultValue) ? h([a.defaultValue, null]) : h(null);
|
|
2878
2880
|
}, O = () => "dateRange";
|
|
@@ -2884,8 +2886,8 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
2884
2886
|
resetValue: p,
|
|
2885
2887
|
getRefType: O
|
|
2886
2888
|
}), (b, v) => {
|
|
2887
|
-
const
|
|
2888
|
-
return x(), z(
|
|
2889
|
+
const N = F("a-range-picker");
|
|
2890
|
+
return x(), z(N, {
|
|
2889
2891
|
value: S(c),
|
|
2890
2892
|
"onUpdate:value": v[0] || (v[0] = (D) => gt(c) ? c.value = D : c = D),
|
|
2891
2893
|
onChange: g,
|
|
@@ -3070,11 +3072,11 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
3070
3072
|
y.value = !0;
|
|
3071
3073
|
const v = {
|
|
3072
3074
|
searchValue: Te(b)
|
|
3073
|
-
},
|
|
3075
|
+
}, N = await Re(ne(r, a.requestUrl), {
|
|
3074
3076
|
...a.requestParams,
|
|
3075
3077
|
...v
|
|
3076
3078
|
});
|
|
3077
|
-
return y.value = !1,
|
|
3079
|
+
return y.value = !1, N;
|
|
3078
3080
|
} else
|
|
3079
3081
|
return [];
|
|
3080
3082
|
}, C = Lt((b) => {
|
|
@@ -3085,8 +3087,8 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
3085
3087
|
u.value = b, f("update:value", b);
|
|
3086
3088
|
}, d = () => c.value, h = () => u.value, p = (b, v = null) => {
|
|
3087
3089
|
u.value = b, c.value = v;
|
|
3088
|
-
let
|
|
3089
|
-
|
|
3090
|
+
let N = m.value.filter((D) => D.value === u.value);
|
|
3091
|
+
N.length === 1 ? c.value = N[0].label : _(b).then((D) => {
|
|
3090
3092
|
m.value = D;
|
|
3091
3093
|
}), f("update:value", b);
|
|
3092
3094
|
};
|
|
@@ -3098,7 +3100,7 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
3098
3100
|
p(a.defaultValue, a.defaultName);
|
|
3099
3101
|
}
|
|
3100
3102
|
}), (b, v) => {
|
|
3101
|
-
const
|
|
3103
|
+
const N = F("a-spin"), D = F("a-select");
|
|
3102
3104
|
return x(), Y("div", is, [
|
|
3103
3105
|
q(D, {
|
|
3104
3106
|
value: u.value,
|
|
@@ -3119,7 +3121,7 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
3119
3121
|
y.value ? {
|
|
3120
3122
|
name: "notFoundContent",
|
|
3121
3123
|
fn: L(() => [
|
|
3122
|
-
q(
|
|
3124
|
+
q(N, { size: "small" })
|
|
3123
3125
|
]),
|
|
3124
3126
|
key: "0"
|
|
3125
3127
|
} : void 0
|
|
@@ -3150,12 +3152,12 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
3150
3152
|
y("update:value", b);
|
|
3151
3153
|
}, d = () => c.value, h = () => u.value, p = (b) => {
|
|
3152
3154
|
u.value = b, y("update:value", u.value);
|
|
3153
|
-
let v = f.value.filter((
|
|
3155
|
+
let v = f.value.filter((N) => N.value === u.value);
|
|
3154
3156
|
if (a.multiple) {
|
|
3155
|
-
let
|
|
3157
|
+
let N = "";
|
|
3156
3158
|
v.forEach((D) => {
|
|
3157
|
-
|
|
3158
|
-
}), c.value =
|
|
3159
|
+
N += D.label + ",";
|
|
3160
|
+
}), c.value = N;
|
|
3159
3161
|
} else
|
|
3160
3162
|
v.length === 1 && (c.value = v[0].label);
|
|
3161
3163
|
};
|
|
@@ -3169,9 +3171,9 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
3169
3171
|
}), C().then((b) => {
|
|
3170
3172
|
f.value = b, m.value = b;
|
|
3171
3173
|
}), (b, v) => {
|
|
3172
|
-
const
|
|
3174
|
+
const N = F("a-select");
|
|
3173
3175
|
return x(), Y("div", us, [
|
|
3174
|
-
q(
|
|
3176
|
+
q(N, {
|
|
3175
3177
|
value: u.value,
|
|
3176
3178
|
"onUpdate:value": v[0] || (v[0] = (D) => u.value = D),
|
|
3177
3179
|
placeholder: i,
|
|
@@ -3220,9 +3222,9 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
3220
3222
|
"CASCADER_" + a.cacheKey
|
|
3221
3223
|
);
|
|
3222
3224
|
y.value = v;
|
|
3223
|
-
}, C = t, g = (v,
|
|
3224
|
-
s(
|
|
3225
|
-
}, d = (v,
|
|
3225
|
+
}, C = t, g = (v, N) => {
|
|
3226
|
+
s(N) ? (C("update:value", v[v.length - 1]), C("change", N[N.length - 1])) : (C("update:value", null), C("change", null));
|
|
3227
|
+
}, d = (v, N) => N.some((D) => D[c].indexOf(v) > -1), h = () => y.value.filter((N) => N[m] === f.value[f.value.length - 1])[c], p = () => f.value, O = (v) => {
|
|
3226
3228
|
f.value = v, C("update:value", v);
|
|
3227
3229
|
}, b = () => {
|
|
3228
3230
|
f.value = null, C("update:value", null), C("change", null);
|
|
@@ -3234,12 +3236,12 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
3234
3236
|
getValue: p,
|
|
3235
3237
|
setValue: O,
|
|
3236
3238
|
resetValue: b
|
|
3237
|
-
}), (v,
|
|
3239
|
+
}), (v, N) => {
|
|
3238
3240
|
const D = F("a-cascader");
|
|
3239
3241
|
return x(), Y("div", ds, [
|
|
3240
3242
|
q(D, {
|
|
3241
3243
|
value: f.value,
|
|
3242
|
-
"onUpdate:value":
|
|
3244
|
+
"onUpdate:value": N[0] || (N[0] = (R) => f.value = R),
|
|
3243
3245
|
options: y.value,
|
|
3244
3246
|
fieldNames: a.fieldNames,
|
|
3245
3247
|
"show-search": { filter: d },
|
|
@@ -3378,8 +3380,8 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3378
3380
|
}, v = () => {
|
|
3379
3381
|
let I = !_.value.fullScreen;
|
|
3380
3382
|
I ? (g.maxZoomIcon = "vxe-icon-maximize", g.width = "100%", g.height = c) : (g.maxZoomIcon = "vxe-icon-square", g.width = t.width, g.height = t.height), _.value.fullScreen = I;
|
|
3381
|
-
},
|
|
3382
|
-
console.log("iframe加载完毕",
|
|
3383
|
+
}, N = "vue_iframe_" + Math.round(Math.random() * 1e8), D = M(), R = () => {
|
|
3384
|
+
console.log("iframe加载完毕", N), D.value.contentWindow.addEventListener("closeSagDialogModal", function(I) {
|
|
3383
3385
|
console.log("iframe关闭触发", I), f();
|
|
3384
3386
|
});
|
|
3385
3387
|
};
|
|
@@ -3458,7 +3460,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3458
3460
|
key: 1,
|
|
3459
3461
|
ref_key: "iframeRef",
|
|
3460
3462
|
ref: D,
|
|
3461
|
-
id:
|
|
3463
|
+
id: N,
|
|
3462
3464
|
src: S(u),
|
|
3463
3465
|
onLoad: R,
|
|
3464
3466
|
style: { width: "100%", height: "100%", border: "0 none", display: "block" }
|
|
@@ -3545,7 +3547,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3545
3547
|
y("update:value", b);
|
|
3546
3548
|
}, d = () => m.value, h = () => c.value, p = (b) => {
|
|
3547
3549
|
c.value = b, y("update:value", c.value);
|
|
3548
|
-
let v = f.value.filter((
|
|
3550
|
+
let v = f.value.filter((N) => N.value === c.value);
|
|
3549
3551
|
v.length === 1 && (m.value = v[0].label);
|
|
3550
3552
|
};
|
|
3551
3553
|
return n({
|
|
@@ -3560,8 +3562,8 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3560
3562
|
!a.multiple && a.selectAll && (b = [{ label: "--全部--", value: "" }].concat(b)), f.value = b, _.options = b;
|
|
3561
3563
|
});
|
|
3562
3564
|
}), (b, v) => {
|
|
3563
|
-
const
|
|
3564
|
-
return x(), z(
|
|
3565
|
+
const N = F("vxe-select", !0);
|
|
3566
|
+
return x(), z(N, te({
|
|
3565
3567
|
modelValue: c.value,
|
|
3566
3568
|
"onUpdate:modelValue": v[0] || (v[0] = (D) => c.value = D)
|
|
3567
3569
|
}, _, {
|
|
@@ -3817,7 +3819,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3817
3819
|
});
|
|
3818
3820
|
};
|
|
3819
3821
|
}
|
|
3820
|
-
}), As = { class: "sag-vxe-page-search-wrapper" }, Ts = { class: "sag-vxe-page-table-wrapper" }, Ms = ["onClick"], Vs = { style: { "font-weight": "bold" } }, $s = { key: 0 }, zs = ["onClick"], js = { key: 1 }, qs = { style: { display: "inline" } }, Ds = { key: 0 },
|
|
3822
|
+
}), As = { class: "sag-vxe-page-search-wrapper" }, Ts = { class: "sag-vxe-page-table-wrapper" }, Ms = ["onClick"], Vs = { style: { "font-weight": "bold" } }, $s = { key: 0 }, zs = ["onClick"], js = { key: 1 }, qs = { style: { display: "inline" } }, Ds = { key: 0 }, Ns = ["onClick"], Bs = ["onClick"], Ls = { key: 0 }, Is = { key: 1 }, Rs = { key: 2 }, ja = /* @__PURE__ */ Q({
|
|
3821
3823
|
name: "SagVxePage",
|
|
3822
3824
|
inheritAttrs: !1,
|
|
3823
3825
|
__name: "SagVxePage",
|
|
@@ -3956,21 +3958,21 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3956
3958
|
pageSizePlacement: V.toString(r?.templateTable?.pagerConfig?.pageSizePlacement, "top")
|
|
3957
3959
|
}), g = A.application + "_" + o.templateType, d = "sag_vxe_page_div_panel_" + g;
|
|
3958
3960
|
qn(ve, o), qn(Xi, () => document.getElementById(S(d)));
|
|
3959
|
-
const h = Object.keys(Le()), p = h.filter((P) => P.startsWith("items_")), O = h.filter((P) => P.startsWith("cols_")), b = h.filter((P) => P.startsWith("tools_")), v = M(),
|
|
3961
|
+
const h = Object.keys(Le()), p = h.filter((P) => P.startsWith("items_")), O = h.filter((P) => P.startsWith("cols_")), b = h.filter((P) => P.startsWith("tools_")), v = M(), N = M(!0), D = M(!1), R = M("none"), I = M(["1"]), H = M(0), W = qe(o.size), Oe = M(), G = ee({}), we = M([]), Je = M(), Ot = M([]), Ze = t, be = (P, w) => {
|
|
3960
3962
|
we.value[w] = P;
|
|
3961
3963
|
}, De = async () => {
|
|
3962
3964
|
const P = v.value;
|
|
3963
3965
|
if (!D.value && P) {
|
|
3964
3966
|
const w = Je.value;
|
|
3965
|
-
w ? w.validate().then((
|
|
3966
|
-
(!
|
|
3967
|
+
w ? w.validate().then((B) => {
|
|
3968
|
+
(!B || B.length === 0) && P.commitProxy("query");
|
|
3967
3969
|
}) : P.commitProxy("query");
|
|
3968
3970
|
}
|
|
3969
3971
|
}, Cn = () => {
|
|
3970
3972
|
c.storage && Dn(o.application, o.templateType, {}), Ke(Ot.value[0].children, we, G), Ze("resetValue");
|
|
3971
3973
|
}, xl = () => {
|
|
3972
3974
|
dt(() => {
|
|
3973
|
-
|
|
3975
|
+
Bn(Oe.value, Z, m.clientScale);
|
|
3974
3976
|
});
|
|
3975
3977
|
}, Z = ee({
|
|
3976
3978
|
size: o.size,
|
|
@@ -4014,15 +4016,15 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4014
4016
|
ajax: {
|
|
4015
4017
|
// 接收 Promise 对象
|
|
4016
4018
|
query: (P) => {
|
|
4017
|
-
const { page: w, sorts:
|
|
4019
|
+
const { page: w, sorts: B, filters: U, form: X } = P, de = jt(w, B, U, X, G, we);
|
|
4018
4020
|
if (c.storage) {
|
|
4019
|
-
const Pe = Vr(
|
|
4021
|
+
const Pe = Vr(B, U, X, G);
|
|
4020
4022
|
Dn(o.application, o.templateType, Pe);
|
|
4021
4023
|
}
|
|
4022
4024
|
return xn(de, i.requestData, !1);
|
|
4023
4025
|
},
|
|
4024
4026
|
querySuccess: (P) => {
|
|
4025
|
-
const { page: w, sort:
|
|
4027
|
+
const { page: w, sort: B, sorts: U, filters: X, form: de, response: Pe } = P;
|
|
4026
4028
|
f?.isMerge && (Z.mergeCells = kn(Pe?.rows)), Ze("search", Pe, { $gridRef: v.value, gridOptions: Z });
|
|
4027
4029
|
}
|
|
4028
4030
|
}
|
|
@@ -4030,9 +4032,9 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4030
4032
|
footerMethod: m.footerMethod
|
|
4031
4033
|
}), wt = M(!1), Pl = () => {
|
|
4032
4034
|
pt("确定要强制显示数据内容吗?", () => {
|
|
4033
|
-
f?.isMerge ? Z.mergeCells = null : Z.spanMethod =
|
|
4035
|
+
f?.isMerge ? Z.mergeCells = null : Z.spanMethod = Nn({}), Z.virtualYConfig = { enabled: !0 }, wt.value = !0, De();
|
|
4034
4036
|
});
|
|
4035
|
-
}, xn = async (P, w,
|
|
4037
|
+
}, xn = async (P, w, B) => {
|
|
4036
4038
|
if (R.value = "none", wt.value)
|
|
4037
4039
|
return wt.value = !1, Z.params.data;
|
|
4038
4040
|
{
|
|
@@ -4040,7 +4042,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4040
4042
|
$gridRef: v.value,
|
|
4041
4043
|
gridOptions: Z,
|
|
4042
4044
|
queryParams: P,
|
|
4043
|
-
exportFlag:
|
|
4045
|
+
exportFlag: B
|
|
4044
4046
|
});
|
|
4045
4047
|
const U = await We(
|
|
4046
4048
|
ne(o.ctxPath, w),
|
|
@@ -4052,7 +4054,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4052
4054
|
});
|
|
4053
4055
|
if (U.success) {
|
|
4054
4056
|
if (Z.params.dataSum = U.data?.dataSum, f?.mergeKey) {
|
|
4055
|
-
if (!
|
|
4057
|
+
if (!B && U.data.rows.length > 800)
|
|
4056
4058
|
return R.value = "more", Z.params.data = Pn(U.data), null;
|
|
4057
4059
|
f?.isMerge || (Z.virtualYConfig = { enabled: !1 });
|
|
4058
4060
|
}
|
|
@@ -4065,11 +4067,11 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4065
4067
|
le("checkboxChange", P);
|
|
4066
4068
|
const w = f?.mergeKey;
|
|
4067
4069
|
if (w) {
|
|
4068
|
-
const
|
|
4069
|
-
if (
|
|
4070
|
-
const U =
|
|
4070
|
+
const B = v.value;
|
|
4071
|
+
if (B) {
|
|
4072
|
+
const U = B.getTableData();
|
|
4071
4073
|
for (let X in U.tableData)
|
|
4072
|
-
P.row[w] === U.tableData[X][w] &&
|
|
4074
|
+
P.row[w] === U.tableData[X][w] && B.setCheckboxRow(U.tableData[X], P.checked);
|
|
4073
4075
|
}
|
|
4074
4076
|
}
|
|
4075
4077
|
}
|
|
@@ -4078,12 +4080,12 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4078
4080
|
le("radioChange", P);
|
|
4079
4081
|
const w = f?.mergeKey;
|
|
4080
4082
|
if (w) {
|
|
4081
|
-
const
|
|
4082
|
-
if (
|
|
4083
|
-
const U =
|
|
4083
|
+
const B = v.value;
|
|
4084
|
+
if (B) {
|
|
4085
|
+
const U = B.getTableData();
|
|
4084
4086
|
for (let X in U.tableData)
|
|
4085
4087
|
if (P.row[w] === U.tableData[X][w]) {
|
|
4086
|
-
|
|
4088
|
+
B.setRadioRow(U.tableData[X]);
|
|
4087
4089
|
break;
|
|
4088
4090
|
}
|
|
4089
4091
|
}
|
|
@@ -4094,11 +4096,11 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4094
4096
|
}, Ml = () => {
|
|
4095
4097
|
Z.params.currentRow = null;
|
|
4096
4098
|
}, Pn = (P) => {
|
|
4097
|
-
const w = f?.seqKey,
|
|
4098
|
-
if (
|
|
4099
|
+
const w = f?.seqKey, B = f?.mergeKey;
|
|
4100
|
+
if (B && w) {
|
|
4099
4101
|
let U = [""], X = 0 + P.pageSize * (P.pageNo - 1);
|
|
4100
4102
|
for (let de in P.rows)
|
|
4101
|
-
U.includes(P.rows[de][
|
|
4103
|
+
U.includes(P.rows[de][B]) || (X++, U.push(P.rows[de][B])), P.rows[de][w] = X;
|
|
4102
4104
|
}
|
|
4103
4105
|
return o.onLoadAfterModule ? o.onLoadAfterModule({
|
|
4104
4106
|
$gridRef: v.value,
|
|
@@ -4108,19 +4110,19 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4108
4110
|
}, kn = (P) => {
|
|
4109
4111
|
const w = f?.mergeKey;
|
|
4110
4112
|
if (w && f.isMerge) {
|
|
4111
|
-
const
|
|
4113
|
+
const B = v.value;
|
|
4112
4114
|
let U = [], X = {}, de = {};
|
|
4113
4115
|
for (let _e = 0; _e < P.length; _e++) {
|
|
4114
|
-
const ie = P[_e],
|
|
4116
|
+
const ie = P[_e], Be = P[_e - 1];
|
|
4115
4117
|
let ke = P[_e + 1];
|
|
4116
|
-
s(de[ie[w]]) || (de[ie[w]] = _e + 0), s(X[ie[w]]) ? (s(ke) && ke[w] === ie[w] || s(
|
|
4118
|
+
s(de[ie[w]]) || (de[ie[w]] = _e + 0), s(X[ie[w]]) ? (s(ke) && ke[w] === ie[w] || s(Be) && Be[w] === ie[w]) && (X[ie[w]] = X[ie[w]] + 1) : X[ie[w]] = 1;
|
|
4117
4119
|
}
|
|
4118
4120
|
let Pe = f?.fields;
|
|
4119
4121
|
for (let _e in Pe) {
|
|
4120
|
-
let ie =
|
|
4122
|
+
let ie = B?.getColumnByField(Pe[_e]), Be = B?.getColumnIndex(ie);
|
|
4121
4123
|
for (let ke in de)
|
|
4122
4124
|
U = U.concat([
|
|
4123
|
-
{ row: de[ke], col:
|
|
4125
|
+
{ row: de[ke], col: Be, rowspan: X[ke], colspan: 1 }
|
|
4124
4126
|
]);
|
|
4125
4127
|
}
|
|
4126
4128
|
return U;
|
|
@@ -4168,15 +4170,15 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4168
4170
|
pageRequest: i
|
|
4169
4171
|
}), ql = async () => {
|
|
4170
4172
|
if (s(c.formItems)) {
|
|
4171
|
-
const w = c.formItems,
|
|
4173
|
+
const w = c.formItems, B = c.formProps.foldingLength;
|
|
4172
4174
|
Object.keys(w).forEach((U, X) => {
|
|
4173
|
-
w[X].folding = !(X <
|
|
4175
|
+
w[X].folding = !(X < B);
|
|
4174
4176
|
}), Ot.value = [
|
|
4175
4177
|
{ span: 24, align: "right", children: w },
|
|
4176
4178
|
{
|
|
4177
4179
|
span: 24,
|
|
4178
4180
|
align: c.formProps.buttonAlign,
|
|
4179
|
-
collapseNode: w.length >
|
|
4181
|
+
collapseNode: w.length > B,
|
|
4180
4182
|
slots: { default: "toolbar_tools" }
|
|
4181
4183
|
}
|
|
4182
4184
|
];
|
|
@@ -4184,8 +4186,8 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4184
4186
|
if (document.documentElement.clientHeight < 680) {
|
|
4185
4187
|
const w = m.tableColumns;
|
|
4186
4188
|
Object.keys(w).forEach((U) => w[U].fixed = !1);
|
|
4187
|
-
const
|
|
4188
|
-
|
|
4189
|
+
const B = m.tableColumnsExtra;
|
|
4190
|
+
B && Object.keys(B).forEach((U) => B[U].fixed = !1);
|
|
4189
4191
|
}
|
|
4190
4192
|
Vn(o.application, !0), m.rowType === "checkbox" ? Z.checkboxConfig = { highlight: !0 } : m.rowType === "radio" ? Z.radioConfig = { highlight: !0 } : Z.rowConfig.isCurrent = !0;
|
|
4191
4193
|
const P = m.pageSizes;
|
|
@@ -4193,8 +4195,8 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4193
4195
|
trigger: "click",
|
|
4194
4196
|
mode: "row",
|
|
4195
4197
|
showStatus: !0
|
|
4196
|
-
}), s(f) && s(f.mergeKey) && (Z.cellStyle = An, Z.params.mergeField = f.mergeKey, f.isMerge ? Z.columnDragConfig.dragStartMethod = () => !1 : (Z.virtualYConfig = { enabled: !1 }, Z.spanMethod =
|
|
4197
|
-
}, Dl = (P, w) => P && P.length > 0 ? P && w ? P.some((
|
|
4198
|
+
}), s(f) && s(f.mergeKey) && (Z.cellStyle = An, Z.params.mergeField = f.mergeKey, f.isMerge ? Z.columnDragConfig.dragStartMethod = () => !1 : (Z.virtualYConfig = { enabled: !1 }, Z.spanMethod = Nn(f))), N.value = !1;
|
|
4199
|
+
}, Dl = (P, w) => P && P.length > 0 ? P && w ? P.some((B) => Ee(w[B.buttonName]) && Ee(B.auth)) : !0 : !1;
|
|
4198
4200
|
oe(async () => {
|
|
4199
4201
|
if (le("加载页面模板", o), await ql(), c.storage) {
|
|
4200
4202
|
const P = nr(o.application, o.templateType);
|
|
@@ -4203,10 +4205,10 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4203
4205
|
Me.arrayEach(c.formItems, (U, X) => {
|
|
4204
4206
|
w.push(U.field);
|
|
4205
4207
|
});
|
|
4206
|
-
let
|
|
4208
|
+
let B = [];
|
|
4207
4209
|
Me.objectEach(P, (U, X) => {
|
|
4208
|
-
|
|
4209
|
-
}), Me.includeArrays(w,
|
|
4210
|
+
B.push(X);
|
|
4211
|
+
}), Me.includeArrays(w, B) ? jn(P) : await Ke(c.formItems, we, G);
|
|
4210
4212
|
} else
|
|
4211
4213
|
await Ke(c.formItems, we, G);
|
|
4212
4214
|
} else
|
|
@@ -4223,7 +4225,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4223
4225
|
le("屏幕高度出现变化,重新计算表格高度"), m.clientScale === 1 && H.value == 0 && (window.onresize = () => {
|
|
4224
4226
|
H.value = document.body.clientWidth;
|
|
4225
4227
|
}), dt(() => {
|
|
4226
|
-
|
|
4228
|
+
Bn(Oe.value, Z, m.clientScale);
|
|
4227
4229
|
});
|
|
4228
4230
|
}, A.templateTable.lazyComputdHeightTime);
|
|
4229
4231
|
m.clientScale === 1 && he(
|
|
@@ -4233,45 +4235,45 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4233
4235
|
},
|
|
4234
4236
|
{ deep: !0, immediate: !0 }
|
|
4235
4237
|
);
|
|
4236
|
-
const
|
|
4238
|
+
const Nl = (P) => {
|
|
4237
4239
|
if (s(P.instanceId)) {
|
|
4238
4240
|
const w = {};
|
|
4239
|
-
w.instanceId =
|
|
4240
|
-
const
|
|
4241
|
-
if (s(
|
|
4242
|
-
if (l.value[
|
|
4241
|
+
w.instanceId = Ne + P.instanceId, w.title = E(P.title, A.targetModal.title), w.width = E(P.width, A.targetModal.width), w.height = E(P.height, A.targetModal.height), w.maximize = E(P.maximize, !1), w.autoLoad = E(P.autoLoad, !1), w.componentVue = E(P.componentVue, A.targetModal.componentVue), w.componentParams = P.componentParams, w.componentUrl = P.componentUrl, w.visible = !0;
|
|
4242
|
+
const B = l.value.findIndex((U) => U.instanceId === w.instanceId);
|
|
4243
|
+
if (s(B) && B >= 0)
|
|
4244
|
+
if (l.value[B].visible) {
|
|
4243
4245
|
Se("已经打开该数据弹窗信息");
|
|
4244
4246
|
return;
|
|
4245
4247
|
} else
|
|
4246
|
-
l.value[
|
|
4248
|
+
l.value[B] = w;
|
|
4247
4249
|
else
|
|
4248
4250
|
l.value.push(w);
|
|
4249
4251
|
} else
|
|
4250
4252
|
a.title = E(P.title, A.targetModal.title), a.width = E(P.width, A.targetModal.width), a.height = E(P.height, A.targetModal.height), a.maximize = E(P.maximize, !1), a.autoLoad = E(P.autoLoad, !1), a.componentVue = E(P.componentVue, A.targetModal.componentVue), a.componentParams = P.componentParams, a.componentUrl = P.componentUrl, a.visible = !0;
|
|
4251
4253
|
}, _t = (P) => {
|
|
4252
4254
|
if (s(P)) {
|
|
4253
|
-
const w = l.value.findIndex((
|
|
4255
|
+
const w = l.value.findIndex((B) => B.instanceId === P);
|
|
4254
4256
|
w !== -1 && (l.value[w].visible = !1, l.value[w].autoLoad && De());
|
|
4255
4257
|
} else
|
|
4256
4258
|
a.visible = !1, a.autoLoad && De();
|
|
4257
4259
|
}, zn = (P, w) => {
|
|
4258
4260
|
if (s(w)) {
|
|
4259
|
-
const
|
|
4260
|
-
if (
|
|
4261
|
-
l.value[
|
|
4262
|
-
const U = l.value[
|
|
4261
|
+
const B = l.value.findIndex((U) => U.instanceId === w);
|
|
4262
|
+
if (B !== -1) {
|
|
4263
|
+
l.value[B].visible = !1;
|
|
4264
|
+
const U = l.value[B].componentParams;
|
|
4263
4265
|
Ze("submit", { data: P, params: U, button: U[A.buttonKeyName] });
|
|
4264
4266
|
}
|
|
4265
4267
|
} else {
|
|
4266
4268
|
a.visible = !1;
|
|
4267
|
-
const
|
|
4268
|
-
Ze("submit", { data: P, params:
|
|
4269
|
+
const B = a.componentParams;
|
|
4270
|
+
Ze("submit", { data: P, params: B, button: B[A.buttonKeyName] });
|
|
4269
4271
|
}
|
|
4270
|
-
},
|
|
4272
|
+
}, Bl = async () => await Sl(v, Z), Ll = async () => {
|
|
4271
4273
|
const P = v.value;
|
|
4272
4274
|
if (P) {
|
|
4273
|
-
const { pager: w, filter:
|
|
4274
|
-
return jt(w, X,
|
|
4275
|
+
const { pager: w, filter: B, form: U, sort: X } = P.getProxyInfo();
|
|
4276
|
+
return jt(w, X, B, U, G, we);
|
|
4275
4277
|
} else
|
|
4276
4278
|
return null;
|
|
4277
4279
|
}, jn = (P) => {
|
|
@@ -4281,17 +4283,17 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4281
4283
|
return n({
|
|
4282
4284
|
doSearch: De,
|
|
4283
4285
|
resetFrom: Cn,
|
|
4284
|
-
showViewModal:
|
|
4286
|
+
showViewModal: Nl,
|
|
4285
4287
|
hideViewModal: _t,
|
|
4286
4288
|
getMergeCellStyle: An,
|
|
4287
|
-
getRequestData:
|
|
4289
|
+
getRequestData: Bl,
|
|
4288
4290
|
getFormData: Ll,
|
|
4289
4291
|
setFormData: jn,
|
|
4290
4292
|
setExportColumns: (P) => {
|
|
4291
4293
|
Z.params.exportColumns = P;
|
|
4292
4294
|
}
|
|
4293
4295
|
}), (P, w) => {
|
|
4294
|
-
const
|
|
4296
|
+
const B = F("a-button"), U = F("a-space"), X = F("vxe-form"), de = F("a-collapse-panel"), Pe = F("a-collapse"), _e = F("a-menu-item"), ie = F("a-menu"), Be = F("a-dropdown"), ke = F("vxe-button"), Il = F("vxe-grid");
|
|
4295
4297
|
return Vt((x(), Y("div", {
|
|
4296
4298
|
id: d,
|
|
4297
4299
|
class: "sag-vxe-page-wrapper"
|
|
@@ -4330,7 +4332,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4330
4332
|
toolbar_tools: L(() => [
|
|
4331
4333
|
q(U, null, {
|
|
4332
4334
|
default: L(() => [
|
|
4333
|
-
q(
|
|
4335
|
+
q(B, {
|
|
4334
4336
|
type: "primary",
|
|
4335
4337
|
size: S(W),
|
|
4336
4338
|
onClick: w[0] || (w[0] = (k) => De()),
|
|
@@ -4341,7 +4343,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4341
4343
|
])),
|
|
4342
4344
|
_: 1
|
|
4343
4345
|
}, 8, ["size", "disabled"]),
|
|
4344
|
-
q(
|
|
4346
|
+
q(B, {
|
|
4345
4347
|
size: S(W),
|
|
4346
4348
|
onClick: w[1] || (w[1] = (k) => Cn())
|
|
4347
4349
|
}, {
|
|
@@ -4498,7 +4500,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4498
4500
|
K("div", qs, [
|
|
4499
4501
|
(x(!0), Y(ce, null, Ce(y.tableButtons, ($) => (x(), Y(ce, { key: $ }, [
|
|
4500
4502
|
S(V).toString(k[$.buttonName], !0) && S(Ee)($.auth) ? (x(), Y("span", Ds, [
|
|
4501
|
-
m.showButtonLink ? j("", !0) : (x(), z(
|
|
4503
|
+
m.showButtonLink ? j("", !0) : (x(), z(B, {
|
|
4502
4504
|
key: 0,
|
|
4503
4505
|
size: "small",
|
|
4504
4506
|
type: S(V).toString($.status, "primary"),
|
|
@@ -4524,12 +4526,12 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4524
4526
|
icon: $.icon
|
|
4525
4527
|
}, null, 8, ["icon"]),
|
|
4526
4528
|
ue(" " + ae($.buttonName), 1)
|
|
4527
|
-
], 8,
|
|
4529
|
+
], 8, Ns)) : j("", !0),
|
|
4528
4530
|
w[8] || (w[8] = ue(" "))
|
|
4529
4531
|
])) : j("", !0)
|
|
4530
4532
|
], 64))), 128))
|
|
4531
4533
|
]),
|
|
4532
|
-
Dl(y.tableMoreButtons, k) ? (x(), z(
|
|
4534
|
+
Dl(y.tableMoreButtons, k) ? (x(), z(Be, {
|
|
4533
4535
|
key: 0,
|
|
4534
4536
|
destroyPopupOnHide: !0
|
|
4535
4537
|
}, {
|
|
@@ -4547,7 +4549,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4547
4549
|
icon: $.icon
|
|
4548
4550
|
}, null, 8, ["icon"]),
|
|
4549
4551
|
ue(" " + ae($.buttonName), 1)
|
|
4550
|
-
], 8,
|
|
4552
|
+
], 8, Bs)
|
|
4551
4553
|
]),
|
|
4552
4554
|
_: 2
|
|
4553
4555
|
}, 1024)) : j("", !0)
|
|
@@ -4558,7 +4560,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4558
4560
|
}, 1024)
|
|
4559
4561
|
]),
|
|
4560
4562
|
default: L(() => [
|
|
4561
|
-
q(
|
|
4563
|
+
q(B, {
|
|
4562
4564
|
type: m.showButtonLink ? "link" : "default",
|
|
4563
4565
|
size: "small"
|
|
4564
4566
|
}, {
|
|
@@ -4580,7 +4582,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4580
4582
|
}, {
|
|
4581
4583
|
default: L(() => [
|
|
4582
4584
|
(x(!0), Y(ce, null, Ce(y.formButtons, (k) => (x(), Y("span", { key: k }, [
|
|
4583
|
-
S(Ee)(k.auth) ? (x(), z(
|
|
4585
|
+
S(Ee)(k.auth) ? (x(), z(B, {
|
|
4584
4586
|
key: 0,
|
|
4585
4587
|
round: "",
|
|
4586
4588
|
size: S(W),
|
|
@@ -4692,7 +4694,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4692
4694
|
onSubmit: zn
|
|
4693
4695
|
}), null, 16)) : j("", !0)
|
|
4694
4696
|
], 512)), [
|
|
4695
|
-
[$t, !
|
|
4697
|
+
[$t, !N.value]
|
|
4696
4698
|
]);
|
|
4697
4699
|
};
|
|
4698
4700
|
}
|
|
@@ -4858,7 +4860,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4858
4860
|
install: (e, n) => {
|
|
4859
4861
|
e.component(Da.name, Da);
|
|
4860
4862
|
}
|
|
4861
|
-
},
|
|
4863
|
+
}, Na = /* @__PURE__ */ Q({
|
|
4862
4864
|
name: "SagAntdButton",
|
|
4863
4865
|
inheritAttrs: !1,
|
|
4864
4866
|
__name: "SagAntdButton",
|
|
@@ -4903,9 +4905,9 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4903
4905
|
}
|
|
4904
4906
|
}), cu = {
|
|
4905
4907
|
install: (e, n) => {
|
|
4906
|
-
e.component(
|
|
4908
|
+
e.component(Na.name, Na);
|
|
4907
4909
|
}
|
|
4908
|
-
}, Es = { class: "sag-antd-cascader-wrapper" },
|
|
4910
|
+
}, Es = { class: "sag-antd-cascader-wrapper" }, Ba = /* @__PURE__ */ Q({
|
|
4909
4911
|
name: "SagAntdCascader",
|
|
4910
4912
|
inheritAttrs: !1,
|
|
4911
4913
|
__name: "SagAntdCascader",
|
|
@@ -4977,7 +4979,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4977
4979
|
}
|
|
4978
4980
|
}), du = {
|
|
4979
4981
|
install: (e, n) => {
|
|
4980
|
-
e.component(
|
|
4982
|
+
e.component(Ba.name, Ba);
|
|
4981
4983
|
}
|
|
4982
4984
|
}, Us = { key: 1 }, La = /* @__PURE__ */ Q({
|
|
4983
4985
|
name: "SagAntdCard",
|
|
@@ -5500,11 +5502,11 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5500
5502
|
p(), i.value = [], await y();
|
|
5501
5503
|
}, v = (D = !1) => {
|
|
5502
5504
|
c("update:value", l.value), c("update:label", r.value), D && c("change", o.value);
|
|
5503
|
-
},
|
|
5505
|
+
}, N = (D, R) => a.multiple ? s(D) && !s(R) || !s(D) && s(R) ? !0 : !s(D) && !s(R) || D.length !== R.length ? !1 : !D.every((I, H) => I === R[H]) : D !== R;
|
|
5504
5506
|
return he(
|
|
5505
5507
|
() => [a.corpId, a.value],
|
|
5506
5508
|
async ([D, R], [I, H]) => {
|
|
5507
|
-
const W = D !== I, Oe =
|
|
5509
|
+
const W = D !== I, Oe = N(R, l.value);
|
|
5508
5510
|
W && (p(), await f(R)), Oe && h(R);
|
|
5509
5511
|
}
|
|
5510
5512
|
), oe(async () => {
|
|
@@ -5614,8 +5616,8 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5614
5616
|
return he(
|
|
5615
5617
|
() => [a.corpId, a.value],
|
|
5616
5618
|
async ([p, O], [b, v]) => {
|
|
5617
|
-
const
|
|
5618
|
-
|
|
5619
|
+
const N = p !== b, D = O !== l.value;
|
|
5620
|
+
N && (i.value = [], r.value = null, l.value = null, o.value = null, h()), D && C(O).then((R) => {
|
|
5619
5621
|
R || f(O, O).then(() => {
|
|
5620
5622
|
d(O);
|
|
5621
5623
|
});
|
|
@@ -5627,7 +5629,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5627
5629
|
value: l.value,
|
|
5628
5630
|
label: r.value
|
|
5629
5631
|
}
|
|
5630
|
-
] : f(
|
|
5632
|
+
] : f(l.value, l.value));
|
|
5631
5633
|
}), n({
|
|
5632
5634
|
getSelectedOptions: g,
|
|
5633
5635
|
setValue: d
|
|
@@ -5636,7 +5638,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5636
5638
|
return x(), Y("div", Zs, [
|
|
5637
5639
|
q(v, {
|
|
5638
5640
|
value: l.value,
|
|
5639
|
-
"onUpdate:value": O[0] || (O[0] = (
|
|
5641
|
+
"onUpdate:value": O[0] || (O[0] = (N) => l.value = N),
|
|
5640
5642
|
placeholder: m,
|
|
5641
5643
|
style: me(a.style),
|
|
5642
5644
|
"filter-option": !1,
|
|
@@ -5646,7 +5648,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5646
5648
|
listHeight: a.listHeight,
|
|
5647
5649
|
"default-active-first-option": !1,
|
|
5648
5650
|
"show-arrow": !1,
|
|
5649
|
-
getPopupContainer: (
|
|
5651
|
+
getPopupContainer: (N) => S(Ie)(a.mountainTop, e.getPopupContainer, N),
|
|
5650
5652
|
onChange: y,
|
|
5651
5653
|
onSearch: S(_),
|
|
5652
5654
|
"show-search": ""
|