sag-ubmp-pc 1.0.40 → 1.0.41
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 +404 -391
- package/dist/sag-ubmp-pc.umd.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/sag-ubmp-pc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Me, { trim as Te, debounce as It } from "xe-utils";
|
|
2
|
-
import { inject as he, ref as V, h as Ve, getCurrentInstance as Rl, nextTick as dt, reactive as ee, defineComponent as Q, createVNode as D, openBlock as x, createElementBlock as W, Fragment as de, createBlock as z, unref as S, createCommentVNode as q, onMounted as ie, resolveComponent as Y, isRef as gt, createSlots as xe, withCtx as
|
|
2
|
+
import { inject as he, ref as V, h as Ve, getCurrentInstance as Rl, nextTick as dt, reactive as ee, defineComponent as Q, createVNode as D, openBlock as x, createElementBlock as W, Fragment as de, createBlock as z, unref as S, createCommentVNode as q, onMounted as ie, resolveComponent as Y, isRef as gt, createSlots as xe, withCtx as I, defineAsyncComponent as El, useCssVars as Ul, useAttrs as Xa, computed as Ct, onUnmounted as Fl, withDirectives as Vt, createElementVNode as K, toDisplayString as ae, createTextVNode as ce, vShow as $t, resolveDynamicComponent as Hl, mergeProps as te, provide as qn, useSlots as Ie, watch as ve, renderList as Ce, renderSlot as oe, toHandlers as Yl, normalizeProps as Wl, guardReactiveProps as Gl, normalizeStyle as ge } from "vue";
|
|
3
3
|
import { Modal as Jl, notification as zt, message as Zl, Spin as Ql } from "ant-design-vue";
|
|
4
4
|
import M from "dayjs";
|
|
5
5
|
const ht = "SAG_UBMP_PC$", ft = {
|
|
@@ -363,13 +363,13 @@ const le = Lt("log"), Ka = Lt("warn"), vt = Lt("error"), at = {
|
|
|
363
363
|
align: m = "center",
|
|
364
364
|
type: f,
|
|
365
365
|
fixed: v,
|
|
366
|
-
width:
|
|
366
|
+
width: g
|
|
367
367
|
} = t;
|
|
368
368
|
return {
|
|
369
369
|
field: e,
|
|
370
370
|
title: n,
|
|
371
371
|
sortable: !1,
|
|
372
|
-
width: s(
|
|
372
|
+
width: s(g) ? g : s(f) ? s(i) ? i : 120 : "auto",
|
|
373
373
|
minWidth: i,
|
|
374
374
|
resizable: _,
|
|
375
375
|
showOverflow: s(C) ? C : "title",
|
|
@@ -1439,10 +1439,10 @@ bl(Gr.primary);
|
|
|
1439
1439
|
var J = function(n, t) {
|
|
1440
1440
|
var a, l = Qn({}, n, t.attrs), r = l.class, o = l.icon, i = l.spin, u = l.rotate, c = l.tabindex, p = l.twoToneColor, d = l.onClick, y = To(l, _o), _ = dl(), C = _.prefixCls, m = _.rootClassName, f = (a = {}, He(a, m.value, !!m.value), He(a, C.value, !0), He(a, "".concat(C.value, "-").concat(o.name), !!o.name), He(a, "".concat(C.value, "-spin"), !!i || o.name === "loading"), a), v = c;
|
|
1441
1441
|
v === void 0 && d && (v = -1);
|
|
1442
|
-
var
|
|
1442
|
+
var g = u ? {
|
|
1443
1443
|
msTransform: "rotate(".concat(u, "deg)"),
|
|
1444
1444
|
transform: "rotate(".concat(u, "deg)")
|
|
1445
|
-
} : void 0, w = hl(p),
|
|
1445
|
+
} : void 0, w = hl(p), h = Co(w, 2), b = h[0], j = h[1];
|
|
1446
1446
|
return D("span", Qn({
|
|
1447
1447
|
role: "img",
|
|
1448
1448
|
"aria-label": o.name
|
|
@@ -1454,7 +1454,7 @@ var J = function(n, t) {
|
|
|
1454
1454
|
icon: o,
|
|
1455
1455
|
primaryColor: b,
|
|
1456
1456
|
secondaryColor: j,
|
|
1457
|
-
style:
|
|
1457
|
+
style: g
|
|
1458
1458
|
}, null), D(wo, null, null)]);
|
|
1459
1459
|
};
|
|
1460
1460
|
J.props = {
|
|
@@ -2277,93 +2277,99 @@ function Li(e) {
|
|
|
2277
2277
|
!s(v) || typeof v == "string" ? v === "custom" ? r.onButtonClickModule({ $gridRef: n.value, gridOptions: l, formData: o, column: f, row: m }) : d(m, f) : v({ gridRef: n, gridOptions: l, formData: o, column: f, row: m });
|
|
2278
2278
|
}, d = (m, f) => {
|
|
2279
2279
|
if (i.instanceField) {
|
|
2280
|
-
const v = {},
|
|
2281
|
-
v.instanceId = Ne + L(m[i.instanceField],
|
|
2282
|
-
const w = a.value.findIndex((g) => g.instanceId === v.instanceId && g.visible);
|
|
2283
|
-
if (s(w) && w >= 0) {
|
|
2284
|
-
Oe("已经打开该数据弹窗信息");
|
|
2285
|
-
return;
|
|
2286
|
-
}
|
|
2287
|
-
if (v.title = L(f.params.title, i.title), v.width = L(f.params.width, i.width), v.height = L(f.params.height, i.height), v.maximize = L(f.params.maximize, !1), v.autoLoad = L(f.params.autoLoad, !1), v.componentVue = L(f.params.componentVue, i.componentVue), v.componentUrl = f.params.requestUrl, v.componentVue)
|
|
2280
|
+
const v = {}, g = Math.round(Math.random() * 1e8);
|
|
2281
|
+
if (v.instanceId = Ne + L(m[i.instanceField], g), v.instanceValue = m[i.instanceField], v.title = L(f.params.title, i.title), v.width = L(f.params.width, i.width), v.height = L(f.params.height, i.height), v.maximize = L(f.params.maximize, !1), v.autoLoad = L(f.params.autoLoad, !1), v.componentVue = L(f.params.componentVue, i.componentVue), v.componentUrl = f.params.requestUrl, v.componentVue)
|
|
2288
2282
|
m[A.buttonKeyName] = f.params;
|
|
2289
2283
|
else {
|
|
2290
|
-
let
|
|
2284
|
+
let h = ne(r.ctxPath, v.componentUrl);
|
|
2291
2285
|
for (const b in m)
|
|
2292
|
-
|
|
2293
|
-
v.componentUrl =
|
|
2286
|
+
h = h.replace("{" + b + "}", m[b]);
|
|
2287
|
+
v.componentUrl = h;
|
|
2294
2288
|
}
|
|
2295
|
-
v.componentParams = m, v.visible = !0
|
|
2289
|
+
v.componentParams = m, v.visible = !0;
|
|
2290
|
+
const w = a.value.findIndex((h) => h.instanceId === v.instanceId);
|
|
2291
|
+
if (s(w) && w >= 0)
|
|
2292
|
+
if (a.value[w].visible) {
|
|
2293
|
+
Oe("已经打开该数据弹窗信息");
|
|
2294
|
+
return;
|
|
2295
|
+
} else
|
|
2296
|
+
a.value[w] = v;
|
|
2297
|
+
else
|
|
2298
|
+
a.value.push(v);
|
|
2296
2299
|
} else {
|
|
2297
2300
|
if (t.title = L(f.params.title, i.title), t.width = L(f.params.width, i.width), t.height = L(f.params.height, i.height), t.maximize = L(f.params.maximize, !1), t.autoLoad = L(f.params.autoLoad, !1), t.componentVue = L(f.params.componentVue, i.componentVue), t.componentUrl = f.params.requestUrl, t.componentVue)
|
|
2298
2301
|
m[A.buttonKeyName] = f.params;
|
|
2299
2302
|
else {
|
|
2300
2303
|
let v = ne(r.ctxPath, t.componentUrl);
|
|
2301
|
-
for (const
|
|
2302
|
-
v = v.replace("{" +
|
|
2304
|
+
for (const g in m)
|
|
2305
|
+
v = v.replace("{" + g + "}", m[g]);
|
|
2303
2306
|
t.componentUrl = v;
|
|
2304
2307
|
}
|
|
2305
2308
|
t.componentParams = m, t.visible = !0;
|
|
2306
2309
|
}
|
|
2307
2310
|
}, y = async (m, f) => {
|
|
2308
2311
|
if (n.value) {
|
|
2309
|
-
const
|
|
2310
|
-
if (f.requestRow && !s(
|
|
2312
|
+
const g = await C(f);
|
|
2313
|
+
if (f.requestRow && !s(g))
|
|
2311
2314
|
return;
|
|
2312
2315
|
if (f.requestType === Fe || f.requestType === lt) {
|
|
2313
2316
|
let w = f.requestUrl;
|
|
2314
|
-
const
|
|
2315
|
-
if ((!
|
|
2317
|
+
const h = L(f.componentVue, i.componentVue);
|
|
2318
|
+
if ((!h || f.requestType === lt) && (w = ne(r.ctxPath, w), f.requestRow && w.split("?").length > 1)) {
|
|
2316
2319
|
const b = Ii(w.split("?")[1]);
|
|
2317
2320
|
for (const j in b) {
|
|
2318
|
-
const
|
|
2321
|
+
const E = b[j];
|
|
2319
2322
|
if (l.checkboxConfig) {
|
|
2320
2323
|
let R = [];
|
|
2321
|
-
for (const
|
|
2322
|
-
for (const F in
|
|
2323
|
-
F ===
|
|
2324
|
+
for (const U in g)
|
|
2325
|
+
for (const F in g[U])
|
|
2326
|
+
F === E && g[U][F] && (R[g[U][F]] = g[U][F]);
|
|
2324
2327
|
let N = "";
|
|
2325
|
-
for (const
|
|
2326
|
-
N = (N ? N + "," : "") +
|
|
2327
|
-
w = w.replace("{" +
|
|
2328
|
+
for (const U in R)
|
|
2329
|
+
N = (N ? N + "," : "") + U;
|
|
2330
|
+
w = w.replace("{" + E + "}", N);
|
|
2328
2331
|
} else
|
|
2329
|
-
w = w.replace("{" +
|
|
2332
|
+
w = w.replace("{" + E + "}", g[E]);
|
|
2330
2333
|
}
|
|
2331
2334
|
}
|
|
2332
2335
|
if (f.requestType === Fe)
|
|
2333
2336
|
if (i.instanceField) {
|
|
2334
2337
|
const b = {};
|
|
2335
|
-
b.title = L(f.title, i.title), b.width = L(f.width, i.width), b.height = L(f.height, i.height), b.maximize = L(f.maximize, !1), b.autoLoad = L(f.autoLoad, !0), b.componentVue =
|
|
2338
|
+
b.title = L(f.title, i.title), b.width = L(f.width, i.width), b.height = L(f.height, i.height), b.maximize = L(f.maximize, !1), b.autoLoad = L(f.autoLoad, !0), b.componentVue = h, b.componentUrl = w, b.componentParams = {};
|
|
2336
2339
|
const j = Math.round(Math.random() * 1e8);
|
|
2337
2340
|
if (f.requestRow)
|
|
2338
2341
|
if (l.checkboxConfig)
|
|
2339
2342
|
if (f.requestRadio)
|
|
2340
|
-
|
|
2343
|
+
g[0][A.buttonKeyName] = f, b.componentParams = g[0], b.instanceId = Ne + L(g[0][i.instanceField], j), b.instanceValue = g[0][i.instanceField];
|
|
2341
2344
|
else {
|
|
2342
2345
|
const R = {};
|
|
2343
|
-
R[A.buttonKeyName] = f, R._X_ROWS =
|
|
2346
|
+
R[A.buttonKeyName] = f, R._X_ROWS = g, b.componentParams = R, b.instanceId = Ne + j;
|
|
2344
2347
|
}
|
|
2345
2348
|
else
|
|
2346
|
-
|
|
2349
|
+
g[A.buttonKeyName] = f, b.componentParams = g, b.instanceId = Ne + L(g[i.instanceField], j), b.instanceValue = g[i.instanceField];
|
|
2347
2350
|
else
|
|
2348
2351
|
b.instanceId = Ne + j, b.componentParams[A.buttonKeyName] = f;
|
|
2349
2352
|
b.visible = !0;
|
|
2350
|
-
const
|
|
2351
|
-
if (s(
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2353
|
+
const E = a.value.findIndex((R) => R.instanceId === b.instanceId);
|
|
2354
|
+
if (s(E) && E >= 0)
|
|
2355
|
+
if (a.value[E].visible) {
|
|
2356
|
+
Oe("已经打开该数据弹窗信息");
|
|
2357
|
+
return;
|
|
2358
|
+
} else
|
|
2359
|
+
a.value[E] = b;
|
|
2360
|
+
else
|
|
2361
|
+
a.value.push(b);
|
|
2356
2362
|
} else {
|
|
2357
|
-
if (t.title = L(f.title, i.title), t.width = L(f.width, i.width), t.height = L(f.height, i.height), t.maximize = L(f.maximize, !1), t.autoLoad = L(f.autoLoad, !0), t.componentVue =
|
|
2363
|
+
if (t.title = L(f.title, i.title), t.width = L(f.width, i.width), t.height = L(f.height, i.height), t.maximize = L(f.maximize, !1), t.autoLoad = L(f.autoLoad, !0), t.componentVue = h, t.componentUrl = w, t.componentParams = {}, f.requestRow)
|
|
2358
2364
|
if (l.checkboxConfig)
|
|
2359
2365
|
if (f.requestRadio)
|
|
2360
|
-
|
|
2366
|
+
g[0][A.buttonKeyName] = f, t.componentParams = g[0];
|
|
2361
2367
|
else {
|
|
2362
2368
|
const b = {};
|
|
2363
|
-
b[A.buttonKeyName] = f, b._X_ROWS =
|
|
2369
|
+
b[A.buttonKeyName] = f, b._X_ROWS = g, t.componentParams = b;
|
|
2364
2370
|
}
|
|
2365
2371
|
else
|
|
2366
|
-
|
|
2372
|
+
g[A.buttonKeyName] = f, t.componentParams = g;
|
|
2367
2373
|
else
|
|
2368
2374
|
t.componentParams[A.buttonKeyName] = f;
|
|
2369
2375
|
t.visible = !0;
|
|
@@ -2377,18 +2383,18 @@ function Li(e) {
|
|
|
2377
2383
|
let w = ne(r.ctxPath, f.requestUrl);
|
|
2378
2384
|
if (w.split("?").length > 1) {
|
|
2379
2385
|
if (l.radioConfig)
|
|
2380
|
-
for (const
|
|
2381
|
-
w = w.replace("{" +
|
|
2386
|
+
for (const h in g)
|
|
2387
|
+
w = w.replace("{" + h + "}", g[h]);
|
|
2382
2388
|
else if (l.checkboxConfig && f.requestRadio)
|
|
2383
|
-
for (const
|
|
2384
|
-
w = w.replace("{" +
|
|
2389
|
+
for (const h in g[0])
|
|
2390
|
+
w = w.replace("{" + h + "}", g[0][h]);
|
|
2385
2391
|
}
|
|
2386
2392
|
Aa(
|
|
2387
2393
|
n,
|
|
2388
2394
|
l,
|
|
2389
2395
|
w,
|
|
2390
|
-
f.requestRow ?
|
|
2391
|
-
!!(l.checkboxConfig && f.requestRow &&
|
|
2396
|
+
f.requestRow ? g : m,
|
|
2397
|
+
!!(l.checkboxConfig && f.requestRow && g.length !== 1)
|
|
2392
2398
|
);
|
|
2393
2399
|
},
|
|
2394
2400
|
f.requestConfirmContent
|
|
@@ -2397,33 +2403,36 @@ function Li(e) {
|
|
|
2397
2403
|
}, _ = (m, f) => {
|
|
2398
2404
|
if (m.requestType === Fe || m.requestType === lt) {
|
|
2399
2405
|
let v = m.requestUrl;
|
|
2400
|
-
const
|
|
2406
|
+
const g = L(m.componentVue, i.componentVue);
|
|
2401
2407
|
let w = !1;
|
|
2402
|
-
if (
|
|
2408
|
+
if (g)
|
|
2403
2409
|
w = !0;
|
|
2404
2410
|
else if (v = ne(r.ctxPath, v), v.split("?").length > 1)
|
|
2405
|
-
for (const
|
|
2406
|
-
if (v.indexOf("{" +
|
|
2411
|
+
for (const h in f) {
|
|
2412
|
+
if (v.indexOf("{" + h + "}") > -1 && (w = !0, f[h] === "")) {
|
|
2407
2413
|
Oe("该单据没有相应数据,无法进行本次操作");
|
|
2408
2414
|
return;
|
|
2409
2415
|
}
|
|
2410
|
-
v = v.replace("{" +
|
|
2416
|
+
v = v.replace("{" + h + "}", f[h]);
|
|
2411
2417
|
}
|
|
2412
2418
|
else
|
|
2413
2419
|
w = !0;
|
|
2414
2420
|
if (w)
|
|
2415
2421
|
if (m.requestType === Fe)
|
|
2416
2422
|
if (f[A.buttonKeyName] = m, i.instanceField) {
|
|
2417
|
-
const
|
|
2418
|
-
|
|
2419
|
-
const j = a.value.findIndex((
|
|
2420
|
-
if (s(j) && j >= 0)
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2423
|
+
const h = {}, b = Math.round(Math.random() * 1e8);
|
|
2424
|
+
h.instanceId = Ne + L(f[i.instanceField], b), h.instanceValue = f[i.instanceField], h.title = L(m.title, i.title), h.width = L(m.width, i.width), h.height = L(m.height, i.height), h.maximize = L(m.maximize, !1), h.autoLoad = L(m.autoLoad, !0), h.componentVue = g, h.componentUrl = v, h.componentParams = f, h.visible = !0;
|
|
2425
|
+
const j = a.value.findIndex((E) => E.instanceId === h.instanceId);
|
|
2426
|
+
if (s(j) && j >= 0)
|
|
2427
|
+
if (a.value[j].visible) {
|
|
2428
|
+
Oe("已经打开该数据弹窗信息");
|
|
2429
|
+
return;
|
|
2430
|
+
} else
|
|
2431
|
+
a.value[j] = h;
|
|
2432
|
+
else
|
|
2433
|
+
a.value.push(h);
|
|
2425
2434
|
} else
|
|
2426
|
-
t.title = L(m.title, i.title), t.width = L(m.width, i.width), t.height = L(m.height, i.height), t.maximize = L(m.maximize, !1), t.autoLoad = L(m.autoLoad, !0), t.componentVue =
|
|
2435
|
+
t.title = L(m.title, i.title), t.width = L(m.width, i.width), t.height = L(m.height, i.height), t.maximize = L(m.maximize, !1), t.autoLoad = L(m.autoLoad, !0), t.componentVue = g, t.componentUrl = v, t.componentParams = f, t.visible = !0;
|
|
2427
2436
|
else
|
|
2428
2437
|
window.open(v, "_blank");
|
|
2429
2438
|
else {
|
|
@@ -2435,8 +2444,8 @@ function Li(e) {
|
|
|
2435
2444
|
m.requestTitle,
|
|
2436
2445
|
() => {
|
|
2437
2446
|
let v = ne(r.ctxPath, m.requestUrl);
|
|
2438
|
-
for (const
|
|
2439
|
-
v = v.replace("{" +
|
|
2447
|
+
for (const g in f)
|
|
2448
|
+
v = v.replace("{" + g + "}", f[g]);
|
|
2440
2449
|
Aa(n, l, v, f);
|
|
2441
2450
|
},
|
|
2442
2451
|
m.requestConfirmContent
|
|
@@ -2478,13 +2487,13 @@ function Ri(e) {
|
|
|
2478
2487
|
const f = n.value;
|
|
2479
2488
|
f && f.validate().then((v) => {
|
|
2480
2489
|
if (!v || v.length === 0) {
|
|
2481
|
-
let
|
|
2482
|
-
if (s(
|
|
2490
|
+
let g = d.requestDownload;
|
|
2491
|
+
if (s(g)) {
|
|
2483
2492
|
if (l.loading) {
|
|
2484
2493
|
Oe("正在导出中,请不要重复点击!");
|
|
2485
2494
|
return;
|
|
2486
2495
|
}
|
|
2487
|
-
if (p.isMerge && typeof
|
|
2496
|
+
if (p.isMerge && typeof g != "object") {
|
|
2488
2497
|
Oe("合并列模式请设置requestDownload参数为表格列格式");
|
|
2489
2498
|
return;
|
|
2490
2499
|
}
|
|
@@ -2499,25 +2508,25 @@ function Ri(e) {
|
|
|
2499
2508
|
0
|
|
2500
2509
|
);
|
|
2501
2510
|
setTimeout(w, 2e3);
|
|
2502
|
-
const
|
|
2503
|
-
if (
|
|
2504
|
-
const { filter: b, form: j, sort:
|
|
2511
|
+
const h = a.value;
|
|
2512
|
+
if (h) {
|
|
2513
|
+
const { filter: b, form: j, sort: E } = h.getProxyInfo(), N = jt({
|
|
2505
2514
|
currentPage: 1,
|
|
2506
2515
|
pageSize: 25e3
|
|
2507
|
-
},
|
|
2508
|
-
if (typeof
|
|
2509
|
-
|
|
2510
|
-
let
|
|
2516
|
+
}, E, b, j, t, o);
|
|
2517
|
+
if (typeof g == "string") {
|
|
2518
|
+
g = ne(u.ctxPath, d.requestDownload);
|
|
2519
|
+
let U = "";
|
|
2511
2520
|
Object.keys(N).forEach((F) => {
|
|
2512
|
-
s(N[F]) && (typeof N[F] == "string" && (
|
|
2513
|
-
}), le("导出表格参数", [
|
|
2521
|
+
s(N[F]) && (typeof N[F] == "string" && (U += "&" + F + "=" + N[F]), typeof N[F] == "object" && Array.isArray(N[F]) && (U += "&" + F + "=" + N[F].join(",")));
|
|
2522
|
+
}), le("导出表格参数", [g, U]), Ni(g + U);
|
|
2514
2523
|
} else
|
|
2515
|
-
l.loading = !0, N.exportFlag = !0, r(N, d.requestData, !0).then(async (
|
|
2516
|
-
if (
|
|
2524
|
+
l.loading = !0, N.exportFlag = !0, r(N, d.requestData, !0).then(async (U) => {
|
|
2525
|
+
if (U == null || U.rows.length == 0) {
|
|
2517
2526
|
l.loading = !1;
|
|
2518
2527
|
return;
|
|
2519
2528
|
}
|
|
2520
|
-
if (
|
|
2529
|
+
if (U.recordCount >= 25e3) {
|
|
2521
2530
|
l.loading = !1, Oe("查询结果超过25000条,请重新调整查询条件后重新导出!");
|
|
2522
2531
|
return;
|
|
2523
2532
|
}
|
|
@@ -2526,13 +2535,13 @@ function Ri(e) {
|
|
|
2526
2535
|
const F = {
|
|
2527
2536
|
filename: u.templateTitle + (/* @__PURE__ */ new Date()).getTime(),
|
|
2528
2537
|
sheetName: u.templateTitle,
|
|
2529
|
-
data:
|
|
2530
|
-
columns: s(l.params.exportColumns) ? l.params.exportColumns :
|
|
2531
|
-
mergeCells: i(
|
|
2538
|
+
data: U.rows,
|
|
2539
|
+
columns: s(l.params.exportColumns) ? l.params.exportColumns : g,
|
|
2540
|
+
mergeCells: i(U.rows)
|
|
2532
2541
|
};
|
|
2533
2542
|
m(F), l.loading = !1;
|
|
2534
2543
|
} else {
|
|
2535
|
-
const F =
|
|
2544
|
+
const F = U.rows.concat([]), re = {
|
|
2536
2545
|
filename: u.templateTitle + (/* @__PURE__ */ new Date()).getTime(),
|
|
2537
2546
|
sheetName: u.templateTitle,
|
|
2538
2547
|
type: "xlsx",
|
|
@@ -2545,7 +2554,7 @@ function Ri(e) {
|
|
|
2545
2554
|
return !A.templateTable.ignoreExportColumnsTitle.includes(G?.column?.title);
|
|
2546
2555
|
}
|
|
2547
2556
|
};
|
|
2548
|
-
le("导出参数", re),
|
|
2557
|
+
le("导出参数", re), h.exportData(re).then(() => {
|
|
2549
2558
|
l.loading = !1;
|
|
2550
2559
|
});
|
|
2551
2560
|
}
|
|
@@ -2568,12 +2577,12 @@ function Ri(e) {
|
|
|
2568
2577
|
},
|
|
2569
2578
|
switchColumsEvent: (m, f = !1) => {
|
|
2570
2579
|
if (s(c.tableColumnsExtra)) {
|
|
2571
|
-
const v = c.tableColumns,
|
|
2580
|
+
const v = c.tableColumns, g = c.tableColumnsExtra;
|
|
2572
2581
|
if (f) {
|
|
2573
2582
|
const w = tr(m, u.templateType);
|
|
2574
|
-
s(w) ? (l.params.switchType = w.switchType, l.columns = w.switchType === "1" ? v :
|
|
2583
|
+
s(w) ? (l.params.switchType = w.switchType, l.columns = w.switchType === "1" ? v : g, l.showOverflow = w.switchShowOverflow) : (l.params.switchType = "1", l.columns = v, l.showOverflow = L(c.showOverflow, !0));
|
|
2575
2584
|
} else
|
|
2576
|
-
l.params.switchType = l.params.switchType === "1" ? "2" : "1", l.columns = l.params.switchType === "2" ?
|
|
2585
|
+
l.params.switchType = l.params.switchType === "1" ? "2" : "1", l.columns = l.params.switchType === "2" ? g : v, l.showOverflow = !l.showOverflow, er(m, u.templateType, {
|
|
2577
2586
|
switchType: l.params.switchType,
|
|
2578
2587
|
switchShowOverflow: l.showOverflow
|
|
2579
2588
|
});
|
|
@@ -2730,13 +2739,13 @@ function Zi() {
|
|
|
2730
2739
|
var r = a.prototype, o = function(d) {
|
|
2731
2740
|
return d && (d.indexOf ? d : d.s);
|
|
2732
2741
|
}, i = function(d, y, _, C, m) {
|
|
2733
|
-
var f = d.name ? d : d.$locale(), v = o(f[y]),
|
|
2742
|
+
var f = d.name ? d : d.$locale(), v = o(f[y]), g = o(f[_]), w = v || g.map((function(b) {
|
|
2734
2743
|
return b.slice(0, C);
|
|
2735
2744
|
}));
|
|
2736
2745
|
if (!m) return w;
|
|
2737
|
-
var
|
|
2746
|
+
var h = f.weekStart;
|
|
2738
2747
|
return w.map((function(b, j) {
|
|
2739
|
-
return w[(j + (
|
|
2748
|
+
return w[(j + (h || 0)) % 7];
|
|
2740
2749
|
}));
|
|
2741
2750
|
}, u = function() {
|
|
2742
2751
|
return l.Ls[l.locale()];
|
|
@@ -2849,32 +2858,32 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
2849
2858
|
{ label: "近两年", value: [M().add(-2, r)] },
|
|
2850
2859
|
{ label: "近三年", value: [M().add(-3, r)] },
|
|
2851
2860
|
{ label: "近五年", value: [M().add(-5, r)] }
|
|
2852
|
-
], _ = V(l === "year" ? y : l === "month" ? d : p), C = t, m = (
|
|
2861
|
+
], _ = V(l === "year" ? y : l === "month" ? d : p), C = t, m = (h, b) => {
|
|
2853
2862
|
le("日期区间选值", b), b && b[0] == "" && b[1] == "" ? C("update:value", null) : C("update:value", b);
|
|
2854
2863
|
}, f = () => {
|
|
2855
|
-
let
|
|
2856
|
-
return c.value && c.value[0] && (
|
|
2857
|
-
}, v = (
|
|
2858
|
-
const b =
|
|
2864
|
+
let h = null, b = null;
|
|
2865
|
+
return c.value && c.value[0] && (h = M(c.value[0]).format(o)), c.value && c.value[1] && (b = M(c.value[1]).format(o)), !h && !b ? null : [h, b];
|
|
2866
|
+
}, v = (h) => {
|
|
2867
|
+
const b = h ? h[0] : null, j = h ? h[1] : null;
|
|
2859
2868
|
typeof b == "number" || typeof j == "number" ? c.value = [
|
|
2860
2869
|
s(b) ? M().add(b, r) : null,
|
|
2861
2870
|
s(j) ? M().add(j, r) : null
|
|
2862
2871
|
] : c.value = [s(b) ? M(b) : null, s(j) ? M(j) : null], C("update:value", f());
|
|
2863
|
-
},
|
|
2872
|
+
}, g = () => {
|
|
2864
2873
|
s(a.defaultValue) ? v([a.defaultValue, null]) : v(null);
|
|
2865
2874
|
}, w = () => "dateRange";
|
|
2866
2875
|
return ie(() => {
|
|
2867
|
-
|
|
2876
|
+
g();
|
|
2868
2877
|
}), n({
|
|
2869
2878
|
setValue: v,
|
|
2870
2879
|
getValue: f,
|
|
2871
|
-
resetValue:
|
|
2880
|
+
resetValue: g,
|
|
2872
2881
|
getRefType: w
|
|
2873
|
-
}), (
|
|
2882
|
+
}), (h, b) => {
|
|
2874
2883
|
const j = Y("a-range-picker");
|
|
2875
2884
|
return x(), z(j, {
|
|
2876
2885
|
value: S(c),
|
|
2877
|
-
"onUpdate:value": b[0] || (b[0] = (
|
|
2886
|
+
"onUpdate:value": b[0] || (b[0] = (E) => gt(c) ? c.value = E : c = E),
|
|
2878
2887
|
onChange: m,
|
|
2879
2888
|
presets: _.value,
|
|
2880
2889
|
locale: S(Ge),
|
|
@@ -2993,12 +3002,12 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
2993
3002
|
emits: ["update:value"],
|
|
2994
3003
|
setup(e, { expose: n, emit: t }) {
|
|
2995
3004
|
const a = e, l = he(be), r = l?.application || "", o = l?.ctxPath || "", i = l?.requestDictUrl || "", u = qe(l?.size), c = V(a.multiple ? [] : null), p = t, d = V([]), y = async () => {
|
|
2996
|
-
let
|
|
2997
|
-
return !
|
|
2998
|
-
}, _ = (
|
|
3005
|
+
let g = a.request.requestUrl;
|
|
3006
|
+
return !g && r && (g = i), g ? (g = ne(o, g), await On(r, g, a.request)) : (le("下拉框插槽未获取到请求地址"), []);
|
|
3007
|
+
}, _ = (g, w) => w.label.toLowerCase().indexOf(g.toLowerCase()) >= 0, C = () => {
|
|
2999
3008
|
p("update:value", c.value);
|
|
3000
|
-
}, m = () => c.value, f = (
|
|
3001
|
-
c.value =
|
|
3009
|
+
}, m = () => c.value, f = (g) => {
|
|
3010
|
+
c.value = g, p("update:value", c.value);
|
|
3002
3011
|
};
|
|
3003
3012
|
return n({
|
|
3004
3013
|
getValue: m,
|
|
@@ -3007,13 +3016,13 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
3007
3016
|
a.multiple ? f(a.defaultValue || []) : f(a.defaultValue || null);
|
|
3008
3017
|
}
|
|
3009
3018
|
}), ie(() => {
|
|
3010
|
-
p("update:value", c.value), y().then((
|
|
3011
|
-
d.value =
|
|
3019
|
+
p("update:value", c.value), y().then((g) => {
|
|
3020
|
+
d.value = g;
|
|
3012
3021
|
});
|
|
3013
|
-
}), (
|
|
3014
|
-
const
|
|
3022
|
+
}), (g, w) => {
|
|
3023
|
+
const h = Y("a-select");
|
|
3015
3024
|
return x(), W("div", rs, [
|
|
3016
|
-
D(
|
|
3025
|
+
D(h, {
|
|
3017
3026
|
value: c.value,
|
|
3018
3027
|
"onUpdate:value": w[0] || (w[0] = (b) => c.value = b),
|
|
3019
3028
|
onChange: C,
|
|
@@ -3052,11 +3061,11 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
3052
3061
|
},
|
|
3053
3062
|
emits: ["update:value"],
|
|
3054
3063
|
setup(e, { expose: n, emit: t }) {
|
|
3055
|
-
const a = e, l = he(be), r = l?.ctxPath || "", o = qe(l?.size), i = "请输入" + a.title + "搜索", u = V(""), c = V(""), p = V([]), d = t, y = V(!1), _ = async (
|
|
3056
|
-
if (p.value = [],
|
|
3064
|
+
const a = e, l = he(be), r = l?.ctxPath || "", o = qe(l?.size), i = "请输入" + a.title + "搜索", u = V(""), c = V(""), p = V([]), d = t, y = V(!1), _ = async (h) => {
|
|
3065
|
+
if (p.value = [], h) {
|
|
3057
3066
|
y.value = !0;
|
|
3058
3067
|
const b = {
|
|
3059
|
-
searchValue: Te(
|
|
3068
|
+
searchValue: Te(h)
|
|
3060
3069
|
}, j = await Re(ne(r, a.requestUrl), {
|
|
3061
3070
|
...a.requestParams,
|
|
3062
3071
|
...b
|
|
@@ -3064,30 +3073,30 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
3064
3073
|
return y.value = !1, j;
|
|
3065
3074
|
} else
|
|
3066
3075
|
return [];
|
|
3067
|
-
}, C = It((
|
|
3068
|
-
_(
|
|
3076
|
+
}, C = It((h) => {
|
|
3077
|
+
_(h).then((b) => {
|
|
3069
3078
|
p.value = b;
|
|
3070
3079
|
});
|
|
3071
|
-
}, 500), m = (
|
|
3072
|
-
u.value =
|
|
3073
|
-
}, f = () => c.value, v = () => u.value,
|
|
3074
|
-
u.value =
|
|
3075
|
-
let j = p.value.filter((
|
|
3076
|
-
j.length === 1 ? c.value = j[0].label : _(
|
|
3077
|
-
p.value =
|
|
3078
|
-
}), d("update:value",
|
|
3080
|
+
}, 500), m = (h) => {
|
|
3081
|
+
u.value = h, d("update:value", h);
|
|
3082
|
+
}, f = () => c.value, v = () => u.value, g = (h, b = null) => {
|
|
3083
|
+
u.value = h, c.value = b;
|
|
3084
|
+
let j = p.value.filter((E) => E.value === u.value);
|
|
3085
|
+
j.length === 1 ? c.value = j[0].label : _(h).then((E) => {
|
|
3086
|
+
p.value = E;
|
|
3087
|
+
}), d("update:value", h);
|
|
3079
3088
|
};
|
|
3080
3089
|
return n({
|
|
3081
3090
|
getName: f,
|
|
3082
3091
|
getValue: v,
|
|
3083
|
-
setValue:
|
|
3092
|
+
setValue: g,
|
|
3084
3093
|
resetValue: () => {
|
|
3085
|
-
|
|
3094
|
+
g(a.defaultValue, a.defaultName);
|
|
3086
3095
|
}
|
|
3087
|
-
}), (
|
|
3088
|
-
const j = Y("a-spin"),
|
|
3096
|
+
}), (h, b) => {
|
|
3097
|
+
const j = Y("a-spin"), E = Y("a-select");
|
|
3089
3098
|
return x(), W("div", is, [
|
|
3090
|
-
D(
|
|
3099
|
+
D(E, {
|
|
3091
3100
|
value: u.value,
|
|
3092
3101
|
"onUpdate:value": b[0] || (b[0] = (R) => u.value = R),
|
|
3093
3102
|
placeholder: i,
|
|
@@ -3105,7 +3114,7 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
3105
3114
|
}, xe({ _: 2 }, [
|
|
3106
3115
|
y.value ? {
|
|
3107
3116
|
name: "notFoundContent",
|
|
3108
|
-
fn:
|
|
3117
|
+
fn: I(() => [
|
|
3109
3118
|
D(j, { size: "small" })
|
|
3110
3119
|
]),
|
|
3111
3120
|
key: "0"
|
|
@@ -3133,15 +3142,15 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
3133
3142
|
},
|
|
3134
3143
|
emits: ["update:value"],
|
|
3135
3144
|
setup(e, { expose: n, emit: t }) {
|
|
3136
|
-
const a = e, l = he(be), r = l?.ctxPath || "", o = qe(l?.size), i = "请输入" + a.title + "搜索", u = V(a.multiple ? [] : null), c = V(""), p = V([]), d = V([]), y = t, _ = (
|
|
3137
|
-
y("update:value",
|
|
3138
|
-
}, f = () => c.value, v = () => u.value,
|
|
3139
|
-
u.value =
|
|
3145
|
+
const a = e, l = he(be), r = l?.ctxPath || "", o = qe(l?.size), i = "请输入" + a.title + "搜索", u = V(a.multiple ? [] : null), c = V(""), p = V([]), d = V([]), y = t, _ = (h, b) => b.label.toLowerCase().indexOf(Te(h).toLowerCase()) >= 0, C = async () => await Re(ne(r, a.requestUrl), a.requestParams), m = (h) => {
|
|
3146
|
+
y("update:value", h);
|
|
3147
|
+
}, f = () => c.value, v = () => u.value, g = (h) => {
|
|
3148
|
+
u.value = h, y("update:value", u.value);
|
|
3140
3149
|
let b = d.value.filter((j) => j.value === u.value);
|
|
3141
3150
|
if (a.multiple) {
|
|
3142
3151
|
let j = "";
|
|
3143
|
-
b.forEach((
|
|
3144
|
-
j +=
|
|
3152
|
+
b.forEach((E) => {
|
|
3153
|
+
j += E.label + ",";
|
|
3145
3154
|
}), c.value = j;
|
|
3146
3155
|
} else
|
|
3147
3156
|
b.length === 1 && (c.value = b[0].label);
|
|
@@ -3149,18 +3158,18 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
3149
3158
|
return n({
|
|
3150
3159
|
getName: f,
|
|
3151
3160
|
getValue: v,
|
|
3152
|
-
setValue:
|
|
3161
|
+
setValue: g,
|
|
3153
3162
|
resetValue: () => {
|
|
3154
|
-
a.multiple ?
|
|
3163
|
+
a.multiple ? g(a.defaultValue || []) : g(a.defaultValue || null);
|
|
3155
3164
|
}
|
|
3156
|
-
}), C().then((
|
|
3157
|
-
d.value =
|
|
3158
|
-
}), (
|
|
3165
|
+
}), C().then((h) => {
|
|
3166
|
+
d.value = h, p.value = h;
|
|
3167
|
+
}), (h, b) => {
|
|
3159
3168
|
const j = Y("a-select");
|
|
3160
3169
|
return x(), W("div", us, [
|
|
3161
3170
|
D(j, {
|
|
3162
3171
|
value: u.value,
|
|
3163
|
-
"onUpdate:value": b[0] || (b[0] = (
|
|
3172
|
+
"onUpdate:value": b[0] || (b[0] = (E) => u.value = E),
|
|
3164
3173
|
placeholder: i,
|
|
3165
3174
|
disabled: a.disabled,
|
|
3166
3175
|
mode: a.multiple ? "multiple" : "",
|
|
@@ -3209,22 +3218,22 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", be = "CONST
|
|
|
3209
3218
|
y.value = b;
|
|
3210
3219
|
}, C = t, m = (b, j) => {
|
|
3211
3220
|
s(j) ? (C("update:value", b[b.length - 1]), C("change", j[j.length - 1])) : (C("update:value", null), C("change", null));
|
|
3212
|
-
}, f = (b, j) => j.some((
|
|
3221
|
+
}, f = (b, j) => j.some((E) => E[c].indexOf(b) > -1), v = () => y.value.filter((j) => j[p] === d.value[d.value.length - 1])[c], g = () => d.value, w = (b) => {
|
|
3213
3222
|
d.value = b, C("update:value", b);
|
|
3214
|
-
},
|
|
3223
|
+
}, h = () => {
|
|
3215
3224
|
d.value = null, C("update:value", null), C("change", null);
|
|
3216
3225
|
};
|
|
3217
3226
|
return ie(() => {
|
|
3218
3227
|
_();
|
|
3219
3228
|
}), n({
|
|
3220
3229
|
getName: v,
|
|
3221
|
-
getValue:
|
|
3230
|
+
getValue: g,
|
|
3222
3231
|
setValue: w,
|
|
3223
|
-
resetValue:
|
|
3232
|
+
resetValue: h
|
|
3224
3233
|
}), (b, j) => {
|
|
3225
|
-
const
|
|
3234
|
+
const E = Y("a-cascader");
|
|
3226
3235
|
return x(), W("div", ds, [
|
|
3227
|
-
D(
|
|
3236
|
+
D(E, {
|
|
3228
3237
|
value: d.value,
|
|
3229
3238
|
"onUpdate:value": j[0] || (j[0] = (R) => d.value = R),
|
|
3230
3239
|
options: y.value,
|
|
@@ -3299,19 +3308,20 @@ function hs(e) {
|
|
|
3299
3308
|
} else
|
|
3300
3309
|
return $a(e);
|
|
3301
3310
|
}
|
|
3302
|
-
const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }, ys = { style: { color: "red", "padding-left": "5px" } }, Ss = { style: { float: "right", "padding-right": "15px", "padding-bottom": "3px", "margin-top": "-2px" } }, Os = ["src"], ws = /* @__PURE__ */ Q({
|
|
3311
|
+
const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-title" }, ys = { style: { color: "red", "padding-left": "5px" } }, Ss = { style: { float: "right", "padding-right": "15px", "padding-bottom": "3px", "margin-top": "-2px" } }, Os = ["src"], ws = /* @__PURE__ */ Q({
|
|
3303
3312
|
name: "SagVxeDialog",
|
|
3304
3313
|
inheritAttrs: !1,
|
|
3305
3314
|
__name: "AntdModal",
|
|
3306
3315
|
emits: ["cancel", "submit"],
|
|
3307
3316
|
setup(e, { emit: n }) {
|
|
3308
3317
|
Ul((N) => ({
|
|
3309
|
-
"
|
|
3310
|
-
"
|
|
3311
|
-
|
|
3318
|
+
"761c0466": f.value,
|
|
3319
|
+
"1ad0f4ad": v.value,
|
|
3320
|
+
dfcbabf2: 500 + g()
|
|
3312
3321
|
}));
|
|
3313
3322
|
const t = ee({
|
|
3314
3323
|
instanceId: "",
|
|
3324
|
+
instanceValue: "",
|
|
3315
3325
|
visible: !1,
|
|
3316
3326
|
// 默认值
|
|
3317
3327
|
maximize: !1,
|
|
@@ -3340,32 +3350,32 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3340
3350
|
height: t.maximize ? c : t.height,
|
|
3341
3351
|
minIcon: "vxe-icon-minus",
|
|
3342
3352
|
maxZoomIcon: t.maximize ? "vxe-icon-maximize" : "vxe-icon-square"
|
|
3343
|
-
}), f = Ct(() => "20px"), v = Ct(() => (l.positions[t.instanceId] ?? 0) *
|
|
3353
|
+
}), f = Ct(() => "20px"), v = Ct(() => (l.positions[t.instanceId] ?? 0) * 100 + 20 + "px"), g = () => l.positions[t.instanceId] ?? 0, w = () => {
|
|
3344
3354
|
const N = l.positions[t.instanceId];
|
|
3345
3355
|
if (!s(N) || N === -1) {
|
|
3346
|
-
let
|
|
3356
|
+
let U = -1;
|
|
3347
3357
|
for (let F = 0; F <= 4; F++)
|
|
3348
3358
|
if (!l.count.includes(F)) {
|
|
3349
|
-
|
|
3359
|
+
U = F, l.count.push(F);
|
|
3350
3360
|
break;
|
|
3351
3361
|
}
|
|
3352
|
-
if (
|
|
3362
|
+
if (U === -1) {
|
|
3353
3363
|
Oe("最多同时隐藏5个窗口");
|
|
3354
3364
|
return;
|
|
3355
3365
|
}
|
|
3356
|
-
l.positions[t.instanceId] =
|
|
3366
|
+
l.positions[t.instanceId] = U;
|
|
3357
3367
|
}
|
|
3358
3368
|
C.value = !0, a.value = !1, t.visible = !1;
|
|
3359
|
-
},
|
|
3369
|
+
}, h = () => {
|
|
3360
3370
|
C.value = !1, t.visible = !0;
|
|
3361
3371
|
const N = l.positions;
|
|
3362
|
-
let
|
|
3363
|
-
|
|
3372
|
+
let U = l.count.findIndex((F) => F === N[t.instanceId]);
|
|
3373
|
+
U !== -1 && l.count.splice(U, 1), delete l.positions[t.instanceId];
|
|
3364
3374
|
}, b = () => {
|
|
3365
3375
|
let N = !_.value.fullScreen;
|
|
3366
3376
|
N ? (m.maxZoomIcon = "vxe-icon-maximize", m.width = "100%", m.height = c) : (m.maxZoomIcon = "vxe-icon-square", m.width = t.width, m.height = t.height), _.value.fullScreen = N;
|
|
3367
|
-
}, j = "vue_iframe_" + Math.round(Math.random() * 1e8),
|
|
3368
|
-
console.log("iframe加载完毕", j),
|
|
3377
|
+
}, j = "vue_iframe_" + Math.round(Math.random() * 1e8), E = V(), R = () => {
|
|
3378
|
+
console.log("iframe加载完毕", j), E.value.contentWindow.addEventListener("closeSagDialogModal", function(N) {
|
|
3369
3379
|
console.log("iframe关闭触发", N), d();
|
|
3370
3380
|
});
|
|
3371
3381
|
};
|
|
@@ -3373,23 +3383,23 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3373
3383
|
le("SagVxeDialog弹出参数", t), t.maximize && (_.value.fullScreen = !0);
|
|
3374
3384
|
}), Fl(() => {
|
|
3375
3385
|
if (l && l.count.length > 0) {
|
|
3376
|
-
let N = l.count.findIndex((
|
|
3386
|
+
let N = l.count.findIndex((U) => U === l.positions[t.instanceId]);
|
|
3377
3387
|
N !== -1 && l.count.splice(N, 1);
|
|
3378
3388
|
}
|
|
3379
|
-
}), (N,
|
|
3389
|
+
}), (N, U) => {
|
|
3380
3390
|
const F = Y("vxe-button"), re = Y("a-modal");
|
|
3381
3391
|
return x(), W("div", vs, [
|
|
3382
3392
|
Vt(K("div", {
|
|
3383
|
-
class: "sag-modal-minimized-bar",
|
|
3384
|
-
onClick:
|
|
3393
|
+
class: "sag-ubmp-pc-modal-minimized-bar",
|
|
3394
|
+
onClick: h
|
|
3385
3395
|
}, [
|
|
3386
|
-
K("span", bs, ae(t.title), 1),
|
|
3396
|
+
K("span", bs, ae(t.title + (S(s)(t.instanceValue) ? "【" + t.instanceValue + "】" : "")), 1),
|
|
3387
3397
|
D(F, {
|
|
3388
3398
|
mode: "text",
|
|
3389
3399
|
icon: "vxe-icon-square",
|
|
3390
3400
|
size: "small"
|
|
3391
3401
|
}, {
|
|
3392
|
-
default:
|
|
3402
|
+
default: I(() => U[0] || (U[0] = [
|
|
3393
3403
|
ce("还原")
|
|
3394
3404
|
])),
|
|
3395
3405
|
_: 1
|
|
@@ -3417,7 +3427,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3417
3427
|
destroyOnClose: a.value,
|
|
3418
3428
|
centered: ""
|
|
3419
3429
|
}, {
|
|
3420
|
-
title:
|
|
3430
|
+
title: I(() => [
|
|
3421
3431
|
K("span", ys, ae(t.title), 1),
|
|
3422
3432
|
K("span", Ss, [
|
|
3423
3433
|
S(s)(t.instanceId) && t.componentVue ? (x(), z(F, {
|
|
@@ -3435,7 +3445,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3435
3445
|
}, null, 8, ["icon"])
|
|
3436
3446
|
])
|
|
3437
3447
|
]),
|
|
3438
|
-
default:
|
|
3448
|
+
default: I(() => [
|
|
3439
3449
|
t.componentVue ? (x(), z(Hl(i.value), te({ key: 0 }, t.componentParams, {
|
|
3440
3450
|
onCancel: d,
|
|
3441
3451
|
onSubmit: y
|
|
@@ -3443,7 +3453,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3443
3453
|
t.componentVue ? q("", !0) : (x(), W("iframe", {
|
|
3444
3454
|
key: 1,
|
|
3445
3455
|
ref_key: "iframeRef",
|
|
3446
|
-
ref:
|
|
3456
|
+
ref: E,
|
|
3447
3457
|
id: j,
|
|
3448
3458
|
src: S(u),
|
|
3449
3459
|
onLoad: R,
|
|
@@ -3455,7 +3465,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3455
3465
|
]);
|
|
3456
3466
|
};
|
|
3457
3467
|
}
|
|
3458
|
-
}), za = /* @__PURE__ */ Cl(ws, [["__scopeId", "data-v-
|
|
3468
|
+
}), za = /* @__PURE__ */ Cl(ws, [["__scopeId", "data-v-fe6ed740"]]), _s = /* @__PURE__ */ Q({
|
|
3459
3469
|
__name: "VxeInput",
|
|
3460
3470
|
props: {
|
|
3461
3471
|
value: { type: String, default: null },
|
|
@@ -3521,35 +3531,35 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3521
3531
|
transfer: a.transfer,
|
|
3522
3532
|
placeholder: a.filterable ? u : "",
|
|
3523
3533
|
options: [],
|
|
3524
|
-
filterMethod({ searchValue:
|
|
3525
|
-
return b.label.toLowerCase().indexOf(Te(
|
|
3534
|
+
filterMethod({ searchValue: h, option: b }) {
|
|
3535
|
+
return b.label.toLowerCase().indexOf(Te(h).toLowerCase()) >= 0;
|
|
3526
3536
|
}
|
|
3527
3537
|
}), C = async () => {
|
|
3528
|
-
let
|
|
3529
|
-
return !
|
|
3530
|
-
}, m = ({ value:
|
|
3531
|
-
y("update:value",
|
|
3532
|
-
}, f = () => p.value, v = () => c.value,
|
|
3533
|
-
c.value =
|
|
3538
|
+
let h = a.request.requestUrl;
|
|
3539
|
+
return !h && o && (h = i), h ? (h = ne(r, h), await On(o, h, a.request)) : (le("下拉框插槽未获取到请求地址"), []);
|
|
3540
|
+
}, m = ({ value: h }) => {
|
|
3541
|
+
y("update:value", h);
|
|
3542
|
+
}, f = () => p.value, v = () => c.value, g = (h) => {
|
|
3543
|
+
c.value = h, y("update:value", c.value);
|
|
3534
3544
|
let b = d.value.filter((j) => j.value === c.value);
|
|
3535
3545
|
b.length === 1 && (p.value = b[0].label);
|
|
3536
3546
|
};
|
|
3537
3547
|
return n({
|
|
3538
3548
|
getName: f,
|
|
3539
3549
|
getValue: v,
|
|
3540
|
-
setValue:
|
|
3550
|
+
setValue: g,
|
|
3541
3551
|
resetValue: () => {
|
|
3542
|
-
|
|
3552
|
+
g(a.defaultValue);
|
|
3543
3553
|
}
|
|
3544
3554
|
}), ie(() => {
|
|
3545
|
-
C().then((
|
|
3546
|
-
!a.multiple && a.selectAll && (
|
|
3555
|
+
C().then((h) => {
|
|
3556
|
+
!a.multiple && a.selectAll && (h = [{ label: "--全部--", value: "" }].concat(h)), d.value = h, _.options = h;
|
|
3547
3557
|
});
|
|
3548
|
-
}), (
|
|
3558
|
+
}), (h, b) => {
|
|
3549
3559
|
const j = Y("vxe-select", !0);
|
|
3550
3560
|
return x(), z(j, te({
|
|
3551
3561
|
modelValue: c.value,
|
|
3552
|
-
"onUpdate:modelValue": b[0] || (b[0] = (
|
|
3562
|
+
"onUpdate:modelValue": b[0] || (b[0] = (E) => c.value = E)
|
|
3553
3563
|
}, _, {
|
|
3554
3564
|
size: S(l)?.size,
|
|
3555
3565
|
onChange: m,
|
|
@@ -3586,15 +3596,15 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3586
3596
|
options: [],
|
|
3587
3597
|
remoteConfig: {
|
|
3588
3598
|
autoLoad: !1,
|
|
3589
|
-
async queryMethod({ searchValue:
|
|
3590
|
-
const w = await y(
|
|
3599
|
+
async queryMethod({ searchValue: g }) {
|
|
3600
|
+
const w = await y(g);
|
|
3591
3601
|
d.options = w, c.value = w;
|
|
3592
3602
|
}
|
|
3593
3603
|
}
|
|
3594
|
-
}), y = async (
|
|
3595
|
-
if (c.value = [],
|
|
3604
|
+
}), y = async (g) => {
|
|
3605
|
+
if (c.value = [], g) {
|
|
3596
3606
|
const w = {
|
|
3597
|
-
searchValue: Te(
|
|
3607
|
+
searchValue: Te(g)
|
|
3598
3608
|
};
|
|
3599
3609
|
return await Re(ne(r, a.requestUrl), {
|
|
3600
3610
|
...a.requestParams,
|
|
@@ -3602,13 +3612,13 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3602
3612
|
});
|
|
3603
3613
|
} else
|
|
3604
3614
|
return [];
|
|
3605
|
-
}, _ = ({ value:
|
|
3606
|
-
p("update:value",
|
|
3607
|
-
}, C = () => u.value, m = () => i.value, f = (
|
|
3608
|
-
i.value =
|
|
3609
|
-
let w = c.value.filter((
|
|
3610
|
-
w.length === 1 ? u.value = w[0].label : y(
|
|
3611
|
-
c.value =
|
|
3615
|
+
}, _ = ({ value: g }) => {
|
|
3616
|
+
p("update:value", g);
|
|
3617
|
+
}, C = () => u.value, m = () => i.value, f = (g) => {
|
|
3618
|
+
i.value = g;
|
|
3619
|
+
let w = c.value.filter((h) => h.value === i.value);
|
|
3620
|
+
w.length === 1 ? u.value = w[0].label : y(g).then((h) => {
|
|
3621
|
+
c.value = h;
|
|
3612
3622
|
}), p("update:value", i.value);
|
|
3613
3623
|
};
|
|
3614
3624
|
return n({
|
|
@@ -3618,9 +3628,9 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3618
3628
|
resetValue: () => {
|
|
3619
3629
|
f(a.defaultValue);
|
|
3620
3630
|
}
|
|
3621
|
-
}), (
|
|
3622
|
-
const
|
|
3623
|
-
return x(), z(
|
|
3631
|
+
}), (g, w) => {
|
|
3632
|
+
const h = Y("vxe-select");
|
|
3633
|
+
return x(), z(h, te({
|
|
3624
3634
|
modelValue: i.value,
|
|
3625
3635
|
"onUpdate:modelValue": w[0] || (w[0] = (b) => i.value = b)
|
|
3626
3636
|
}, d, {
|
|
@@ -3656,14 +3666,14 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3656
3666
|
transfer: a.transfer,
|
|
3657
3667
|
placeholder: o,
|
|
3658
3668
|
options: [],
|
|
3659
|
-
filterMethod({ searchValue:
|
|
3660
|
-
return w.label.toLowerCase().indexOf(Te(
|
|
3669
|
+
filterMethod({ searchValue: g, option: w }) {
|
|
3670
|
+
return w.label.toLowerCase().indexOf(Te(g).toLowerCase()) >= 0;
|
|
3661
3671
|
}
|
|
3662
|
-
}), y = async () => await Re(ne(r, a.requestUrl), a.requestParams), _ = ({ value:
|
|
3663
|
-
p("update:value",
|
|
3664
|
-
}, C = () => u.value, m = () => i.value, f = (
|
|
3665
|
-
i.value =
|
|
3666
|
-
let w = c.value.filter((
|
|
3672
|
+
}), y = async () => await Re(ne(r, a.requestUrl), a.requestParams), _ = ({ value: g }) => {
|
|
3673
|
+
p("update:value", g);
|
|
3674
|
+
}, C = () => u.value, m = () => i.value, f = (g) => {
|
|
3675
|
+
i.value = g, p("update:value", i.value);
|
|
3676
|
+
let w = c.value.filter((h) => h.value === i.value);
|
|
3667
3677
|
w.length === 1 && (u.value = w[0].label);
|
|
3668
3678
|
};
|
|
3669
3679
|
return n({
|
|
@@ -3674,12 +3684,12 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3674
3684
|
f(a.defaultValue);
|
|
3675
3685
|
}
|
|
3676
3686
|
}), ie(() => {
|
|
3677
|
-
y().then((
|
|
3678
|
-
c.value =
|
|
3687
|
+
y().then((g) => {
|
|
3688
|
+
c.value = g, d.options = g;
|
|
3679
3689
|
});
|
|
3680
|
-
}), (
|
|
3681
|
-
const
|
|
3682
|
-
return x(), z(
|
|
3690
|
+
}), (g, w) => {
|
|
3691
|
+
const h = Y("vxe-select");
|
|
3692
|
+
return x(), z(h, te({
|
|
3683
3693
|
modelValue: i.value,
|
|
3684
3694
|
"onUpdate:modelValue": w[0] || (w[0] = (b) => i.value = b)
|
|
3685
3695
|
}, d, {
|
|
@@ -3796,7 +3806,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3796
3806
|
onClick: o[0] || (o[0] = (u) => a()),
|
|
3797
3807
|
title: "导出"
|
|
3798
3808
|
}, {
|
|
3799
|
-
default:
|
|
3809
|
+
default: I(() => o[1] || (o[1] = [
|
|
3800
3810
|
K("i", { class: "vxe-button--icon vxe-icon-download" }, null, -1)
|
|
3801
3811
|
])),
|
|
3802
3812
|
_: 1
|
|
@@ -3943,14 +3953,14 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
3943
3953
|
pageSizePlacement: T.toString(r?.templateTable?.pagerConfig?.pageSizePlacement, "top")
|
|
3944
3954
|
}), m = A.application + "_" + o.templateType, f = "sag_vxe_page_div_panel_" + m;
|
|
3945
3955
|
qn(be, o), qn(Xi, () => document.getElementById(S(f)));
|
|
3946
|
-
const v = Object.keys(Ie()),
|
|
3956
|
+
const v = Object.keys(Ie()), g = v.filter((P) => P.startsWith("items_")), w = v.filter((P) => P.startsWith("cols_")), h = v.filter((P) => P.startsWith("tools_")), b = V(), j = V(!0), E = V(!1), R = V("none"), N = V(["1"]), U = V(0), F = qe(o.size), re = V(), G = ee({}), we = V([]), Je = V(), Ot = V([]), Ze = t, ye = (P, O) => {
|
|
3947
3957
|
we.value[O] = P;
|
|
3948
3958
|
}, De = async () => {
|
|
3949
3959
|
const P = b.value;
|
|
3950
|
-
if (!
|
|
3960
|
+
if (!E.value && P) {
|
|
3951
3961
|
const O = Je.value;
|
|
3952
|
-
O ? O.validate().then((
|
|
3953
|
-
(!
|
|
3962
|
+
O ? O.validate().then((B) => {
|
|
3963
|
+
(!B || B.length === 0) && P.commitProxy("query");
|
|
3954
3964
|
}) : P.commitProxy("query");
|
|
3955
3965
|
}
|
|
3956
3966
|
}, Cn = () => {
|
|
@@ -4001,15 +4011,15 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4001
4011
|
ajax: {
|
|
4002
4012
|
// 接收 Promise 对象
|
|
4003
4013
|
query: (P) => {
|
|
4004
|
-
const { page: O, sorts:
|
|
4014
|
+
const { page: O, sorts: B, filters: H, form: X } = P, fe = jt(O, B, H, X, G, we);
|
|
4005
4015
|
if (c.storage) {
|
|
4006
|
-
const Pe = Vr(
|
|
4016
|
+
const Pe = Vr(B, H, X, G);
|
|
4007
4017
|
Dn(o.application, o.templateType, Pe);
|
|
4008
4018
|
}
|
|
4009
4019
|
return xn(fe, i.requestData, !1);
|
|
4010
4020
|
},
|
|
4011
4021
|
querySuccess: (P) => {
|
|
4012
|
-
const { page: O, sort:
|
|
4022
|
+
const { page: O, sort: B, sorts: H, filters: X, form: fe, response: Pe } = P;
|
|
4013
4023
|
d?.isMerge && (Z.mergeCells = kn(Pe?.rows)), Ze("search", Pe, { $gridRef: b.value, gridOptions: Z });
|
|
4014
4024
|
}
|
|
4015
4025
|
}
|
|
@@ -4019,27 +4029,27 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4019
4029
|
pt("确定要强制显示数据内容吗?", () => {
|
|
4020
4030
|
d?.isMerge ? Z.mergeCells = null : Z.spanMethod = Nn({}), Z.virtualYConfig = { enabled: !0 }, wt.value = !0, De();
|
|
4021
4031
|
});
|
|
4022
|
-
}, xn = async (P, O,
|
|
4032
|
+
}, xn = async (P, O, B) => {
|
|
4023
4033
|
if (R.value = "none", wt.value)
|
|
4024
4034
|
return wt.value = !1, Z.params.data;
|
|
4025
4035
|
{
|
|
4026
|
-
|
|
4036
|
+
E.value = !0, o.onLoadBeforeModule && o.onLoadBeforeModule({
|
|
4027
4037
|
$gridRef: b.value,
|
|
4028
4038
|
gridOptions: Z,
|
|
4029
4039
|
queryParams: P,
|
|
4030
|
-
exportFlag:
|
|
4040
|
+
exportFlag: B
|
|
4031
4041
|
});
|
|
4032
4042
|
const H = await We(
|
|
4033
4043
|
ne(o.ctxPath, O),
|
|
4034
4044
|
P
|
|
4035
4045
|
).finally(() => {
|
|
4036
4046
|
setTimeout(() => {
|
|
4037
|
-
|
|
4047
|
+
E.value = !1;
|
|
4038
4048
|
}, 1e3);
|
|
4039
4049
|
});
|
|
4040
4050
|
if (H.success) {
|
|
4041
4051
|
if (Z.params.dataSum = H.data?.dataSum, d?.mergeKey) {
|
|
4042
|
-
if (!
|
|
4052
|
+
if (!B && H.data.rows.length > 800)
|
|
4043
4053
|
return R.value = "more", Z.params.data = Pn(H.data), null;
|
|
4044
4054
|
d?.isMerge || (Z.virtualYConfig = { enabled: !1 });
|
|
4045
4055
|
}
|
|
@@ -4052,11 +4062,11 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4052
4062
|
le("checkboxChange", P);
|
|
4053
4063
|
const O = d?.mergeKey;
|
|
4054
4064
|
if (O) {
|
|
4055
|
-
const
|
|
4056
|
-
if (
|
|
4057
|
-
const H =
|
|
4065
|
+
const B = b.value;
|
|
4066
|
+
if (B) {
|
|
4067
|
+
const H = B.getTableData();
|
|
4058
4068
|
for (let X in H.tableData)
|
|
4059
|
-
P.row[O] === H.tableData[X][O] &&
|
|
4069
|
+
P.row[O] === H.tableData[X][O] && B.setCheckboxRow(H.tableData[X], P.checked);
|
|
4060
4070
|
}
|
|
4061
4071
|
}
|
|
4062
4072
|
}
|
|
@@ -4065,12 +4075,12 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4065
4075
|
le("radioChange", P);
|
|
4066
4076
|
const O = d?.mergeKey;
|
|
4067
4077
|
if (O) {
|
|
4068
|
-
const
|
|
4069
|
-
if (
|
|
4070
|
-
const H =
|
|
4078
|
+
const B = b.value;
|
|
4079
|
+
if (B) {
|
|
4080
|
+
const H = B.getTableData();
|
|
4071
4081
|
for (let X in H.tableData)
|
|
4072
4082
|
if (P.row[O] === H.tableData[X][O]) {
|
|
4073
|
-
|
|
4083
|
+
B.setRadioRow(H.tableData[X]);
|
|
4074
4084
|
break;
|
|
4075
4085
|
}
|
|
4076
4086
|
}
|
|
@@ -4081,11 +4091,11 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4081
4091
|
}, Ml = () => {
|
|
4082
4092
|
Z.params.currentRow = null;
|
|
4083
4093
|
}, Pn = (P) => {
|
|
4084
|
-
const O = d?.seqKey,
|
|
4085
|
-
if (
|
|
4094
|
+
const O = d?.seqKey, B = d?.mergeKey;
|
|
4095
|
+
if (B && O) {
|
|
4086
4096
|
let H = [""], X = 0 + P.pageSize * (P.pageNo - 1);
|
|
4087
4097
|
for (let fe in P.rows)
|
|
4088
|
-
H.includes(P.rows[fe][
|
|
4098
|
+
H.includes(P.rows[fe][B]) || (X++, H.push(P.rows[fe][B])), P.rows[fe][O] = X;
|
|
4089
4099
|
}
|
|
4090
4100
|
return o.onLoadAfterModule ? o.onLoadAfterModule({
|
|
4091
4101
|
$gridRef: b.value,
|
|
@@ -4095,7 +4105,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4095
4105
|
}, kn = (P) => {
|
|
4096
4106
|
const O = d?.mergeKey;
|
|
4097
4107
|
if (O && d.isMerge) {
|
|
4098
|
-
const
|
|
4108
|
+
const B = b.value;
|
|
4099
4109
|
let H = [], X = {}, fe = {};
|
|
4100
4110
|
for (let _e = 0; _e < P.length; _e++) {
|
|
4101
4111
|
const se = P[_e], Be = P[_e - 1];
|
|
@@ -4104,7 +4114,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4104
4114
|
}
|
|
4105
4115
|
let Pe = d?.fields;
|
|
4106
4116
|
for (let _e in Pe) {
|
|
4107
|
-
let se =
|
|
4117
|
+
let se = B?.getColumnByField(Pe[_e]), Be = B?.getColumnIndex(se);
|
|
4108
4118
|
for (let ke in fe)
|
|
4109
4119
|
H = H.concat([
|
|
4110
4120
|
{ row: fe[ke], col: Be, rowspan: X[ke], colspan: 1 }
|
|
@@ -4155,15 +4165,15 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4155
4165
|
pageRequest: i
|
|
4156
4166
|
}), ql = async () => {
|
|
4157
4167
|
if (s(c.formItems)) {
|
|
4158
|
-
const O = c.formItems,
|
|
4168
|
+
const O = c.formItems, B = c.formProps.foldingLength;
|
|
4159
4169
|
Object.keys(O).forEach((H, X) => {
|
|
4160
|
-
O[X].folding = !(X <
|
|
4170
|
+
O[X].folding = !(X < B);
|
|
4161
4171
|
}), Ot.value = [
|
|
4162
4172
|
{ span: 24, align: "right", children: O },
|
|
4163
4173
|
{
|
|
4164
4174
|
span: 24,
|
|
4165
4175
|
align: c.formProps.buttonAlign,
|
|
4166
|
-
collapseNode: O.length >
|
|
4176
|
+
collapseNode: O.length > B,
|
|
4167
4177
|
slots: { default: "toolbar_tools" }
|
|
4168
4178
|
}
|
|
4169
4179
|
];
|
|
@@ -4171,8 +4181,8 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4171
4181
|
if (document.documentElement.clientHeight < 680) {
|
|
4172
4182
|
const O = p.tableColumns;
|
|
4173
4183
|
Object.keys(O).forEach((H) => O[H].fixed = !1);
|
|
4174
|
-
const
|
|
4175
|
-
|
|
4184
|
+
const B = p.tableColumnsExtra;
|
|
4185
|
+
B && Object.keys(B).forEach((H) => B[H].fixed = !1);
|
|
4176
4186
|
}
|
|
4177
4187
|
Vn(o.application, !0), p.rowType === "checkbox" ? Z.checkboxConfig = { highlight: !0 } : p.rowType === "radio" ? Z.radioConfig = { highlight: !0 } : Z.rowConfig.isCurrent = !0;
|
|
4178
4188
|
const P = p.pageSizes;
|
|
@@ -4181,7 +4191,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4181
4191
|
mode: "row",
|
|
4182
4192
|
showStatus: !0
|
|
4183
4193
|
}), s(d) && s(d.mergeKey) && (Z.cellStyle = An, Z.params.mergeField = d.mergeKey, d.isMerge ? Z.columnDragConfig.dragStartMethod = () => !1 : (Z.virtualYConfig = { enabled: !1 }, Z.spanMethod = Nn(d))), j.value = !1;
|
|
4184
|
-
}, Dl = (P, O) => P && P.length > 0 ? P && O ? P.some((
|
|
4194
|
+
}, Dl = (P, O) => P && P.length > 0 ? P && O ? P.some((B) => Ee(O[B.buttonName]) && Ee(B.auth)) : !0 : !1;
|
|
4185
4195
|
ie(async () => {
|
|
4186
4196
|
if (le("加载页面模板", o), await ql(), c.storage) {
|
|
4187
4197
|
const P = nr(o.application, o.templateType);
|
|
@@ -4190,10 +4200,10 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4190
4200
|
Me.arrayEach(c.formItems, (H, X) => {
|
|
4191
4201
|
O.push(H.field);
|
|
4192
4202
|
});
|
|
4193
|
-
let
|
|
4203
|
+
let B = [];
|
|
4194
4204
|
Me.objectEach(P, (H, X) => {
|
|
4195
|
-
|
|
4196
|
-
}), Me.includeArrays(O,
|
|
4205
|
+
B.push(X);
|
|
4206
|
+
}), Me.includeArrays(O, B) ? jn(P) : await Ke(c.formItems, we, G);
|
|
4197
4207
|
} else
|
|
4198
4208
|
await Ke(c.formItems, we, G);
|
|
4199
4209
|
} else
|
|
@@ -4207,14 +4217,14 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4207
4217
|
}), $l(), await De(), $n();
|
|
4208
4218
|
});
|
|
4209
4219
|
const $n = Me.debounce(() => {
|
|
4210
|
-
le("屏幕高度出现变化,重新计算表格高度"), p.clientScale === 1 &&
|
|
4211
|
-
|
|
4220
|
+
le("屏幕高度出现变化,重新计算表格高度"), p.clientScale === 1 && U.value == 0 && (window.onresize = () => {
|
|
4221
|
+
U.value = document.body.clientWidth;
|
|
4212
4222
|
}), dt(() => {
|
|
4213
4223
|
Bn(re.value, Z, p.clientScale);
|
|
4214
4224
|
});
|
|
4215
4225
|
}, A.templateTable.lazyComputdHeightTime);
|
|
4216
4226
|
p.clientScale === 1 && ve(
|
|
4217
|
-
[N,
|
|
4227
|
+
[N, U],
|
|
4218
4228
|
() => {
|
|
4219
4229
|
$n();
|
|
4220
4230
|
},
|
|
@@ -4223,39 +4233,42 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4223
4233
|
const Nl = (P) => {
|
|
4224
4234
|
if (s(P.instanceId)) {
|
|
4225
4235
|
const O = {};
|
|
4226
|
-
O.instanceId = Ne + P.instanceId;
|
|
4227
|
-
const
|
|
4228
|
-
if (s(
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4236
|
+
O.instanceId = Ne + P.instanceId, O.title = L(P.title, A.targetModal.title), O.width = L(P.width, A.targetModal.width), O.height = L(P.height, A.targetModal.height), O.maximize = L(P.maximize, !1), O.autoLoad = L(P.autoLoad, !1), O.componentVue = L(P.componentVue, A.targetModal.componentVue), O.componentParams = P.componentParams, O.componentUrl = P.componentUrl, O.visible = !0;
|
|
4237
|
+
const B = l.value.findIndex((H) => H.instanceId === O.instanceId);
|
|
4238
|
+
if (s(B) && B >= 0)
|
|
4239
|
+
if (l.value[B].visible) {
|
|
4240
|
+
Oe("已经打开该数据弹窗信息");
|
|
4241
|
+
return;
|
|
4242
|
+
} else
|
|
4243
|
+
l.value[B] = O;
|
|
4244
|
+
else
|
|
4245
|
+
l.value.push(O);
|
|
4233
4246
|
} else
|
|
4234
4247
|
a.title = L(P.title, A.targetModal.title), a.width = L(P.width, A.targetModal.width), a.height = L(P.height, A.targetModal.height), a.maximize = L(P.maximize, !1), a.autoLoad = L(P.autoLoad, !1), a.componentVue = L(P.componentVue, A.targetModal.componentVue), a.componentParams = P.componentParams, a.componentUrl = P.componentUrl, a.visible = !0;
|
|
4235
4248
|
}, _t = (P) => {
|
|
4236
|
-
if (s(P)) {
|
|
4237
|
-
const O = l.value.findIndex((
|
|
4238
|
-
O !== -1 && (l.value[O].visible = !1, l.value[O].autoLoad && De());
|
|
4249
|
+
if (console.log("111", P, l.value), s(P)) {
|
|
4250
|
+
const O = l.value.findIndex((B) => B.instanceId === P);
|
|
4251
|
+
console.log("2222", O, l.value), O !== -1 && (l.value[O].visible = !1, l.value[O].autoLoad && De());
|
|
4239
4252
|
} else
|
|
4240
4253
|
a.visible = !1, a.autoLoad && De();
|
|
4241
4254
|
}, zn = (P, O) => {
|
|
4242
4255
|
if (s(O)) {
|
|
4243
|
-
const
|
|
4244
|
-
if (
|
|
4245
|
-
l.value[
|
|
4246
|
-
const H = l.value[
|
|
4256
|
+
const B = l.value.findIndex((H) => H.instanceId === O);
|
|
4257
|
+
if (B !== -1) {
|
|
4258
|
+
l.value[B].visible = !1;
|
|
4259
|
+
const H = l.value[B].componentParams;
|
|
4247
4260
|
Ze("submit", { data: P, params: H, button: H[A.buttonKeyName] });
|
|
4248
4261
|
}
|
|
4249
4262
|
} else {
|
|
4250
4263
|
a.visible = !1;
|
|
4251
|
-
const
|
|
4252
|
-
Ze("submit", { data: P, params:
|
|
4264
|
+
const B = a.componentParams;
|
|
4265
|
+
Ze("submit", { data: P, params: B, button: B[A.buttonKeyName] });
|
|
4253
4266
|
}
|
|
4254
4267
|
}, Bl = async () => await Sl(b, Z), Il = async () => {
|
|
4255
4268
|
const P = b.value;
|
|
4256
4269
|
if (P) {
|
|
4257
|
-
const { pager: O, filter:
|
|
4258
|
-
return jt(O, X,
|
|
4270
|
+
const { pager: O, filter: B, form: H, sort: X } = P.getProxyInfo();
|
|
4271
|
+
return jt(O, X, B, H, G, we);
|
|
4259
4272
|
} else
|
|
4260
4273
|
return null;
|
|
4261
4274
|
}, jn = (P) => {
|
|
@@ -4275,7 +4288,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4275
4288
|
Z.params.exportColumns = P;
|
|
4276
4289
|
}
|
|
4277
4290
|
}), (P, O) => {
|
|
4278
|
-
const
|
|
4291
|
+
const B = Y("a-button"), H = Y("a-space"), X = Y("vxe-form"), fe = Y("a-collapse-panel"), Pe = Y("a-collapse"), _e = Y("a-menu-item"), se = Y("a-menu"), Be = Y("a-dropdown"), ke = Y("vxe-button"), Ll = Y("vxe-grid");
|
|
4279
4292
|
return Vt((x(), W("div", {
|
|
4280
4293
|
id: f,
|
|
4281
4294
|
class: "sag-vxe-page-wrapper"
|
|
@@ -4287,7 +4300,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4287
4300
|
expandIconPosition: "end",
|
|
4288
4301
|
accordion: ""
|
|
4289
4302
|
}, {
|
|
4290
|
-
default:
|
|
4303
|
+
default: I(() => [
|
|
4291
4304
|
D(fe, {
|
|
4292
4305
|
ref_key: "formCardRef",
|
|
4293
4306
|
ref: re,
|
|
@@ -4296,7 +4309,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4296
4309
|
align: "left",
|
|
4297
4310
|
forceRender: ""
|
|
4298
4311
|
}, {
|
|
4299
|
-
default:
|
|
4312
|
+
default: I(() => [
|
|
4300
4313
|
D(X, {
|
|
4301
4314
|
ref_key: "formRef",
|
|
4302
4315
|
ref: Je,
|
|
@@ -4311,25 +4324,25 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4311
4324
|
onCollapse: xl,
|
|
4312
4325
|
class: "sag-vxe-page-form"
|
|
4313
4326
|
}, xe({
|
|
4314
|
-
toolbar_tools:
|
|
4327
|
+
toolbar_tools: I(() => [
|
|
4315
4328
|
D(H, null, {
|
|
4316
|
-
default:
|
|
4317
|
-
D(
|
|
4329
|
+
default: I(() => [
|
|
4330
|
+
D(B, {
|
|
4318
4331
|
type: "primary",
|
|
4319
4332
|
size: S(F),
|
|
4320
4333
|
onClick: O[0] || (O[0] = (k) => De()),
|
|
4321
|
-
disabled:
|
|
4334
|
+
disabled: E.value
|
|
4322
4335
|
}, {
|
|
4323
|
-
default:
|
|
4336
|
+
default: I(() => O[5] || (O[5] = [
|
|
4324
4337
|
ce(" 查询 ")
|
|
4325
4338
|
])),
|
|
4326
4339
|
_: 1
|
|
4327
4340
|
}, 8, ["size", "disabled"]),
|
|
4328
|
-
D(
|
|
4341
|
+
D(B, {
|
|
4329
4342
|
size: S(F),
|
|
4330
4343
|
onClick: O[1] || (O[1] = (k) => Cn())
|
|
4331
4344
|
}, {
|
|
4332
|
-
default:
|
|
4345
|
+
default: I(() => O[6] || (O[6] = [
|
|
4333
4346
|
ce("重置")
|
|
4334
4347
|
])),
|
|
4335
4348
|
_: 1
|
|
@@ -4338,21 +4351,21 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4338
4351
|
_: 1
|
|
4339
4352
|
})
|
|
4340
4353
|
]),
|
|
4341
|
-
dateRange:
|
|
4354
|
+
dateRange: I((k) => [
|
|
4342
4355
|
D(ns, te({
|
|
4343
4356
|
value: G[k.field],
|
|
4344
4357
|
"onUpdate:value": ($) => G[k.field] = $,
|
|
4345
4358
|
ref: ($) => ye($, k.field)
|
|
4346
4359
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"])
|
|
4347
4360
|
]),
|
|
4348
|
-
date:
|
|
4361
|
+
date: I((k) => [
|
|
4349
4362
|
D(as, te({
|
|
4350
4363
|
value: G[k.field],
|
|
4351
4364
|
"onUpdate:value": ($) => G[k.field] = $,
|
|
4352
4365
|
ref: ($) => ye($, k.field)
|
|
4353
4366
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"])
|
|
4354
4367
|
]),
|
|
4355
|
-
input:
|
|
4368
|
+
input: I((k) => [
|
|
4356
4369
|
c.vxeSlot ? (x(), z(_s, te({
|
|
4357
4370
|
key: 0,
|
|
4358
4371
|
value: G[k.field],
|
|
@@ -4368,7 +4381,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4368
4381
|
title: k?.item?.title
|
|
4369
4382
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"]))
|
|
4370
4383
|
]),
|
|
4371
|
-
select:
|
|
4384
|
+
select: I((k) => [
|
|
4372
4385
|
c.vxeSlot ? (x(), z(Cs, te({
|
|
4373
4386
|
key: 0,
|
|
4374
4387
|
value: G[k.field],
|
|
@@ -4382,7 +4395,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4382
4395
|
ref: ($) => ye($, k.field)
|
|
4383
4396
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"]))
|
|
4384
4397
|
]),
|
|
4385
|
-
selectList:
|
|
4398
|
+
selectList: I((k) => [
|
|
4386
4399
|
c.vxeSlot ? (x(), z(Ps, te({
|
|
4387
4400
|
key: 0,
|
|
4388
4401
|
value: G[k.field],
|
|
@@ -4398,7 +4411,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4398
4411
|
title: k?.item?.title
|
|
4399
4412
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"]))
|
|
4400
4413
|
]),
|
|
4401
|
-
selectPull:
|
|
4414
|
+
selectPull: I((k) => [
|
|
4402
4415
|
c.vxeSlot ? (x(), z(xs, te({
|
|
4403
4416
|
key: 0,
|
|
4404
4417
|
value: G[k.field],
|
|
@@ -4414,7 +4427,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4414
4427
|
title: k?.item?.title
|
|
4415
4428
|
}, k?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"]))
|
|
4416
4429
|
]),
|
|
4417
|
-
cascader:
|
|
4430
|
+
cascader: I((k) => [
|
|
4418
4431
|
D(fs, te({
|
|
4419
4432
|
value: G[k.field],
|
|
4420
4433
|
"onUpdate:value": ($) => G[k.field] = $,
|
|
@@ -4424,9 +4437,9 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4424
4437
|
]),
|
|
4425
4438
|
_: 2
|
|
4426
4439
|
}, [
|
|
4427
|
-
Ce(S(
|
|
4440
|
+
Ce(S(g), (k) => ({
|
|
4428
4441
|
name: k,
|
|
4429
|
-
fn:
|
|
4442
|
+
fn: I(($) => [
|
|
4430
4443
|
oe(P.$slots, k, te($, {
|
|
4431
4444
|
value: G[$.field]
|
|
4432
4445
|
}))
|
|
@@ -4456,14 +4469,14 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4456
4469
|
onCheckboxChange: kl,
|
|
4457
4470
|
onRadioChange: Al
|
|
4458
4471
|
}), xe({
|
|
4459
|
-
operate:
|
|
4472
|
+
operate: I(({ row: k, column: $ }) => [
|
|
4460
4473
|
K("a", {
|
|
4461
4474
|
href: "javascript:void(0)",
|
|
4462
4475
|
class: "sag-vxe-page-link",
|
|
4463
4476
|
onClick: (ue) => S(Tn)(k, $)
|
|
4464
4477
|
}, ae(k[$.property]), 9, Ms)
|
|
4465
4478
|
]),
|
|
4466
|
-
vertical:
|
|
4479
|
+
vertical: I(({ row: k, column: $ }) => [
|
|
4467
4480
|
(x(!0), W(de, null, Ce($.params.childColumns, (ue) => (x(), W("div", {
|
|
4468
4481
|
key: ue.value
|
|
4469
4482
|
}, [
|
|
@@ -4478,22 +4491,22 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4478
4491
|
])) : (x(), W("span", js, ae(S(T).stringFormat(k[ue.field], ue.formatter)), 1))
|
|
4479
4492
|
]))), 128))
|
|
4480
4493
|
]),
|
|
4481
|
-
button:
|
|
4494
|
+
button: I(({ row: k }) => [
|
|
4482
4495
|
K("div", qs, [
|
|
4483
4496
|
(x(!0), W(de, null, Ce(y.tableButtons, ($) => (x(), W(de, { key: $ }, [
|
|
4484
4497
|
S(T).toString(k[$.buttonName], !0) && S(Ee)($.auth) ? (x(), W("span", Ds, [
|
|
4485
|
-
p.showButtonLink ? q("", !0) : (x(), z(
|
|
4498
|
+
p.showButtonLink ? q("", !0) : (x(), z(B, {
|
|
4486
4499
|
key: 0,
|
|
4487
4500
|
size: "small",
|
|
4488
4501
|
type: S(T).toString($.status, "primary"),
|
|
4489
4502
|
onClick: (ue) => S(Qe)($, k)
|
|
4490
4503
|
}, {
|
|
4491
|
-
icon:
|
|
4504
|
+
icon: I(() => [
|
|
4492
4505
|
D(ze, {
|
|
4493
4506
|
icon: $.icon
|
|
4494
4507
|
}, null, 8, ["icon"])
|
|
4495
4508
|
]),
|
|
4496
|
-
default:
|
|
4509
|
+
default: I(() => [
|
|
4497
4510
|
ce(" " + ae($.buttonName), 1)
|
|
4498
4511
|
]),
|
|
4499
4512
|
_: 2
|
|
@@ -4517,13 +4530,13 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4517
4530
|
key: 0,
|
|
4518
4531
|
destroyPopupOnHide: !0
|
|
4519
4532
|
}, {
|
|
4520
|
-
overlay:
|
|
4533
|
+
overlay: I(() => [
|
|
4521
4534
|
D(se, null, {
|
|
4522
|
-
default:
|
|
4535
|
+
default: I(() => [
|
|
4523
4536
|
(x(!0), W(de, null, Ce(y.tableMoreButtons, ($) => (x(), W(de, { key: $ }, [
|
|
4524
4537
|
S(Ee)($.auth) ? (x(), W(de, { key: 0 }, [
|
|
4525
4538
|
S(T).toString(k[$.buttonName], !0) ? (x(), z(_e, { key: 0 }, {
|
|
4526
|
-
default:
|
|
4539
|
+
default: I(() => [
|
|
4527
4540
|
K("a", {
|
|
4528
4541
|
onClick: (ue) => S(Qe)($, k)
|
|
4529
4542
|
}, [
|
|
@@ -4541,12 +4554,12 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4541
4554
|
_: 2
|
|
4542
4555
|
}, 1024)
|
|
4543
4556
|
]),
|
|
4544
|
-
default:
|
|
4545
|
-
D(
|
|
4557
|
+
default: I(() => [
|
|
4558
|
+
D(B, {
|
|
4546
4559
|
type: p.showButtonLink ? "link" : "default",
|
|
4547
4560
|
size: "small"
|
|
4548
4561
|
}, {
|
|
4549
|
-
default:
|
|
4562
|
+
default: I(() => [
|
|
4550
4563
|
O[9] || (O[9] = ce(" 更多操作 ")),
|
|
4551
4564
|
D(S(yt))
|
|
4552
4565
|
]),
|
|
@@ -4556,27 +4569,27 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4556
4569
|
_: 2
|
|
4557
4570
|
}, 1024)) : q("", !0)
|
|
4558
4571
|
]),
|
|
4559
|
-
toolbar_buttons:
|
|
4572
|
+
toolbar_buttons: I(() => [
|
|
4560
4573
|
S(s)(y.formButtons) && y.formButtons.length > 0 ? (x(), z(H, {
|
|
4561
4574
|
key: 0,
|
|
4562
4575
|
wrap: !0,
|
|
4563
4576
|
style: { "margin-bottom": "0px" }
|
|
4564
4577
|
}, {
|
|
4565
|
-
default:
|
|
4578
|
+
default: I(() => [
|
|
4566
4579
|
(x(!0), W(de, null, Ce(y.formButtons, (k) => (x(), W("span", { key: k }, [
|
|
4567
|
-
S(Ee)(k.auth) ? (x(), z(
|
|
4580
|
+
S(Ee)(k.auth) ? (x(), z(B, {
|
|
4568
4581
|
key: 0,
|
|
4569
4582
|
round: "",
|
|
4570
4583
|
size: S(F),
|
|
4571
4584
|
type: S(T).toString(k.status, "primary"),
|
|
4572
4585
|
onClick: ($) => S(zl)(k)
|
|
4573
4586
|
}, {
|
|
4574
|
-
icon:
|
|
4587
|
+
icon: I(() => [
|
|
4575
4588
|
D(ze, {
|
|
4576
4589
|
icon: k.icon
|
|
4577
4590
|
}, null, 8, ["icon"])
|
|
4578
4591
|
]),
|
|
4579
|
-
default:
|
|
4592
|
+
default: I(() => [
|
|
4580
4593
|
ce(" " + ae(k.buttonName), 1)
|
|
4581
4594
|
]),
|
|
4582
4595
|
_: 2
|
|
@@ -4585,9 +4598,9 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4585
4598
|
]),
|
|
4586
4599
|
_: 1
|
|
4587
4600
|
})) : q("", !0),
|
|
4588
|
-
(x(!0), W(de, null, Ce(S(
|
|
4601
|
+
(x(!0), W(de, null, Ce(S(h), (k) => oe(P.$slots, k)), 256))
|
|
4589
4602
|
]),
|
|
4590
|
-
toolbar_tools:
|
|
4603
|
+
toolbar_tools: I(() => [
|
|
4591
4604
|
S(s)(p.tableColumnsExtra) ? (x(), z(ke, {
|
|
4592
4605
|
key: 0,
|
|
4593
4606
|
size: "small",
|
|
@@ -4595,7 +4608,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4595
4608
|
onClick: O[3] || (O[3] = (k) => S(Vn)(o.application, !1)),
|
|
4596
4609
|
title: "切换"
|
|
4597
4610
|
}, {
|
|
4598
|
-
default:
|
|
4611
|
+
default: I(() => O[10] || (O[10] = [
|
|
4599
4612
|
K("i", { class: "vxe-button--icon vxe-icon-refresh" }, null, -1)
|
|
4600
4613
|
])),
|
|
4601
4614
|
_: 1
|
|
@@ -4611,7 +4624,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4611
4624
|
onClick: S(Mn),
|
|
4612
4625
|
title: "下载"
|
|
4613
4626
|
}, {
|
|
4614
|
-
default:
|
|
4627
|
+
default: I(() => O[11] || (O[11] = [
|
|
4615
4628
|
K("i", { class: "vxe-button--icon vxe-icon-download" }, null, -1)
|
|
4616
4629
|
])),
|
|
4617
4630
|
_: 1
|
|
@@ -4623,13 +4636,13 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4623
4636
|
onClick: O[4] || (O[4] = (k) => S(jl)()),
|
|
4624
4637
|
title: "导入"
|
|
4625
4638
|
}, {
|
|
4626
|
-
default:
|
|
4639
|
+
default: I(() => O[12] || (O[12] = [
|
|
4627
4640
|
K("i", { class: "vxe-button--icon vxe-icon-upload" }, null, -1)
|
|
4628
4641
|
])),
|
|
4629
4642
|
_: 1
|
|
4630
4643
|
})) : q("", !0)
|
|
4631
4644
|
]),
|
|
4632
|
-
empty:
|
|
4645
|
+
empty: I(() => [
|
|
4633
4646
|
R.value === "error" ? (x(), W("h2", Is, O[13] || (O[13] = [
|
|
4634
4647
|
K("span", { style: { "font-size": "24px", color: "red" } }, "您好,数据获取出现异常,请您稍后再次尝试!", -1)
|
|
4635
4648
|
]))) : q("", !0),
|
|
@@ -4656,7 +4669,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4656
4669
|
}, [
|
|
4657
4670
|
Ce(S(w), (k) => ({
|
|
4658
4671
|
name: k,
|
|
4659
|
-
fn:
|
|
4672
|
+
fn: I(($) => [
|
|
4660
4673
|
oe(P.$slots, k, Wl(Gl($)))
|
|
4661
4674
|
])
|
|
4662
4675
|
}))
|
|
@@ -4814,8 +4827,8 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4814
4827
|
return ve(
|
|
4815
4828
|
() => a.value,
|
|
4816
4829
|
(f, v) => {
|
|
4817
|
-
let
|
|
4818
|
-
s(f) && (s(f[0]) && (
|
|
4830
|
+
let g = null, w = null;
|
|
4831
|
+
s(f) && (s(f[0]) && (g = M(f[0])), s(f[1]) && (w = M(f[1]))), i.value = [g, w];
|
|
4819
4832
|
}
|
|
4820
4833
|
), ie(() => {
|
|
4821
4834
|
s(a.value) && C(a.value[0], a.value[1]);
|
|
@@ -4823,8 +4836,8 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4823
4836
|
setValue: C,
|
|
4824
4837
|
getValue: _
|
|
4825
4838
|
}), (f, v) => {
|
|
4826
|
-
const
|
|
4827
|
-
return x(), z(
|
|
4839
|
+
const g = Y("a-range-picker");
|
|
4840
|
+
return x(), z(g, {
|
|
4828
4841
|
value: i.value,
|
|
4829
4842
|
"onUpdate:value": v[0] || (v[0] = (w) => i.value = w),
|
|
4830
4843
|
presets: d.value,
|
|
@@ -4872,13 +4885,13 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4872
4885
|
onClick: l,
|
|
4873
4886
|
disabled: t.disabled
|
|
4874
4887
|
}, {
|
|
4875
|
-
icon:
|
|
4888
|
+
icon: I(() => [
|
|
4876
4889
|
t.icon !== "none" ? (x(), z(ze, {
|
|
4877
4890
|
key: 0,
|
|
4878
4891
|
icon: t.icon
|
|
4879
4892
|
}, null, 8, ["icon"])) : q("", !0)
|
|
4880
4893
|
]),
|
|
4881
|
-
default:
|
|
4894
|
+
default: I(() => [
|
|
4882
4895
|
ce(" " + ae(t.name), 1)
|
|
4883
4896
|
]),
|
|
4884
4897
|
_: 1
|
|
@@ -4921,17 +4934,17 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4921
4934
|
emits: ["update:value", "change"],
|
|
4922
4935
|
setup(e, { expose: n, emit: t }) {
|
|
4923
4936
|
const a = e, l = A.application || "", r = A.ctxPath || "", o = "请输入" + a.title + "搜索", i = a.fieldNames.label, u = a.fieldNames.value, c = V([]), p = V([]), d = async () => {
|
|
4924
|
-
const
|
|
4937
|
+
const g = await yl(
|
|
4925
4938
|
ne(r, a.requestUrl),
|
|
4926
4939
|
a.requestParams,
|
|
4927
4940
|
l,
|
|
4928
4941
|
"CASCADER_" + a.cacheKey
|
|
4929
4942
|
);
|
|
4930
|
-
p.value =
|
|
4931
|
-
}, y = t, _ = (
|
|
4932
|
-
s(w) ? (y("update:value",
|
|
4933
|
-
}, C = (
|
|
4934
|
-
c.value =
|
|
4943
|
+
p.value = g;
|
|
4944
|
+
}, y = t, _ = (g, w) => {
|
|
4945
|
+
s(w) ? (y("update:value", g[g.length - 1]), y("change", w[w.length - 1])) : (y("update:value", null), y("change", null));
|
|
4946
|
+
}, C = (g, w) => w.some((h) => h[i].indexOf(g) > -1), m = () => p.value.filter((w) => w[u] === c.value[c.value.length - 1])[i], f = () => c.value, v = (g) => {
|
|
4947
|
+
c.value = g, y("update:value", g);
|
|
4935
4948
|
};
|
|
4936
4949
|
return ie(() => {
|
|
4937
4950
|
d();
|
|
@@ -4939,10 +4952,10 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4939
4952
|
getName: m,
|
|
4940
4953
|
getValue: f,
|
|
4941
4954
|
setValue: v
|
|
4942
|
-
}), (
|
|
4943
|
-
const
|
|
4955
|
+
}), (g, w) => {
|
|
4956
|
+
const h = Y("a-cascader");
|
|
4944
4957
|
return x(), W("div", Es, [
|
|
4945
|
-
D(
|
|
4958
|
+
D(h, {
|
|
4946
4959
|
value: c.value,
|
|
4947
4960
|
"onUpdate:value": w[0] || (w[0] = (b) => c.value = b),
|
|
4948
4961
|
options: p.value,
|
|
@@ -4993,14 +5006,14 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
4993
5006
|
hoverable: n.hoverable,
|
|
4994
5007
|
loading: n.loading
|
|
4995
5008
|
}, xe({
|
|
4996
|
-
default:
|
|
5009
|
+
default: I(() => [
|
|
4997
5010
|
oe(r.$slots, "default")
|
|
4998
5011
|
]),
|
|
4999
5012
|
_: 2
|
|
5000
5013
|
}, [
|
|
5001
5014
|
S(l).length === 1 || S(s)(n.title) ? {
|
|
5002
5015
|
name: "title",
|
|
5003
|
-
fn:
|
|
5016
|
+
fn: I(() => [
|
|
5004
5017
|
S(l).length === 1 ? oe(r.$slots, "title", { key: 0 }) : q("", !0),
|
|
5005
5018
|
S(l).length !== 1 ? (x(), W("span", Us, ae(n.title), 1)) : q("", !0)
|
|
5006
5019
|
]),
|
|
@@ -5008,7 +5021,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5008
5021
|
} : void 0,
|
|
5009
5022
|
S(a).length === 1 ? {
|
|
5010
5023
|
name: "extra",
|
|
5011
|
-
fn:
|
|
5024
|
+
fn: I(() => [
|
|
5012
5025
|
oe(r.$slots, "extra")
|
|
5013
5026
|
]),
|
|
5014
5027
|
key: "1"
|
|
@@ -5079,7 +5092,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5079
5092
|
}, xe({ _: 2 }, [
|
|
5080
5093
|
S(i).length === 1 || S(s)(a.addonAfter) ? {
|
|
5081
5094
|
name: "addonAfter",
|
|
5082
|
-
fn:
|
|
5095
|
+
fn: I(() => [
|
|
5083
5096
|
S(i).length === 1 ? oe(_.$slots, "addonAfter", { key: 0 }) : q("", !0),
|
|
5084
5097
|
S(i).length !== 1 ? (x(), W("span", Fs, ae(a.addonAfter), 1)) : q("", !0)
|
|
5085
5098
|
]),
|
|
@@ -5087,7 +5100,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5087
5100
|
} : void 0,
|
|
5088
5101
|
S(u).length === 1 || S(s)(a.addonBefore) ? {
|
|
5089
5102
|
name: "addonBefore",
|
|
5090
|
-
fn:
|
|
5103
|
+
fn: I(() => [
|
|
5091
5104
|
S(u).length === 1 ? oe(_.$slots, "addonBefore", { key: 0 }) : q("", !0),
|
|
5092
5105
|
S(u).length !== 1 ? (x(), W("span", Hs, ae(a.addonBefore), 1)) : q("", !0)
|
|
5093
5106
|
]),
|
|
@@ -5169,7 +5182,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5169
5182
|
}, xe({ _: 2 }, [
|
|
5170
5183
|
S(i).length === 1 || S(s)(a.addonAfter) ? {
|
|
5171
5184
|
name: "addonAfter",
|
|
5172
|
-
fn:
|
|
5185
|
+
fn: I(() => [
|
|
5173
5186
|
S(i).length === 1 ? oe(_.$slots, "addonAfter", { key: 0 }) : q("", !0),
|
|
5174
5187
|
S(i).length !== 1 ? (x(), W("span", Ys, ae(a.addonAfter), 1)) : q("", !0)
|
|
5175
5188
|
]),
|
|
@@ -5177,7 +5190,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5177
5190
|
} : void 0,
|
|
5178
5191
|
S(u).length === 1 || S(s)(a.addonBefore) ? {
|
|
5179
5192
|
name: "addonBefore",
|
|
5180
|
-
fn:
|
|
5193
|
+
fn: I(() => [
|
|
5181
5194
|
S(u).length === 1 ? oe(_.$slots, "addonBefore", { key: 0 }) : q("", !0),
|
|
5182
5195
|
S(u).length !== 1 ? (x(), W("span", Ws, ae(a.addonBefore), 1)) : q("", !0)
|
|
5183
5196
|
]),
|
|
@@ -5230,7 +5243,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5230
5243
|
}, xe({ _: 2 }, [
|
|
5231
5244
|
t.showSuffix && !t.disabled ? {
|
|
5232
5245
|
name: "suffix",
|
|
5233
|
-
fn:
|
|
5246
|
+
fn: I(() => [
|
|
5234
5247
|
K("a", { onClick: o }, [
|
|
5235
5248
|
D(ze, { icon: "close" })
|
|
5236
5249
|
])
|
|
@@ -5345,7 +5358,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5345
5358
|
const a = e, l = t, r = T.toString(a.value, null), o = a.multiple ? V(s(r) ? r.split(",") : []) : V(r), i = V(a.multiple ? [] : null), u = V(a.multiple ? {} : null), c = V([]), p = async () => {
|
|
5346
5359
|
const v = ne(A.ctxPath, A.requestDictUrl);
|
|
5347
5360
|
return await On(A.application, v, a.requestParams);
|
|
5348
|
-
}, d = (v,
|
|
5361
|
+
}, d = (v, g) => g.label.toLowerCase().indexOf(v.toLowerCase()) >= 0, y = (v, g) => {
|
|
5349
5362
|
m(!0);
|
|
5350
5363
|
}, _ = () => o.value, C = (v) => {
|
|
5351
5364
|
a.multiple ? o.value = s(v) ? v : [] : o.value = s(v) ? v : "", m();
|
|
@@ -5361,14 +5374,14 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5361
5374
|
}, f = (v = !1) => {
|
|
5362
5375
|
if (s(o.value))
|
|
5363
5376
|
if (a.multiple) {
|
|
5364
|
-
const
|
|
5377
|
+
const g = [];
|
|
5365
5378
|
o.value.forEach((w) => {
|
|
5366
|
-
let
|
|
5367
|
-
|
|
5368
|
-
}), i.value =
|
|
5379
|
+
let h = c.value.filter((b) => b.value === w);
|
|
5380
|
+
h.length === 1 && (g.push(h[0].label), u.value[w] = h[0]);
|
|
5381
|
+
}), i.value = g;
|
|
5369
5382
|
} else {
|
|
5370
|
-
const
|
|
5371
|
-
s(
|
|
5383
|
+
const g = c.value.filter((w) => w.value === o.value);
|
|
5384
|
+
s(g) && (i.value = g[0].label, u.value = g[0]);
|
|
5372
5385
|
}
|
|
5373
5386
|
else
|
|
5374
5387
|
i.value = a.multiple ? [] : null, u.value = a.multiple ? {} : null;
|
|
@@ -5381,12 +5394,12 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5381
5394
|
p().then((v) => {
|
|
5382
5395
|
c.value = v, s(a.extraOptions) && a.extraOptions?.length > 0 && c.value.unshift(...a.extraOptions), s(o.value) && !s(i.value) && f();
|
|
5383
5396
|
});
|
|
5384
|
-
}), (v,
|
|
5397
|
+
}), (v, g) => {
|
|
5385
5398
|
const w = Y("a-select");
|
|
5386
5399
|
return x(), W("div", Gs, [
|
|
5387
5400
|
D(w, {
|
|
5388
5401
|
value: S(o),
|
|
5389
|
-
"onUpdate:value":
|
|
5402
|
+
"onUpdate:value": g[0] || (g[0] = (h) => gt(o) ? o.value = h : null),
|
|
5390
5403
|
onChange: y,
|
|
5391
5404
|
placeholder: "--请选择--",
|
|
5392
5405
|
allowClear: a.clearable,
|
|
@@ -5398,7 +5411,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5398
5411
|
defaultActiveFirstOption: !a.multiple,
|
|
5399
5412
|
autoClearSearchValue: !a.filterable,
|
|
5400
5413
|
listHeight: a.listHeight,
|
|
5401
|
-
getPopupContainer: (
|
|
5414
|
+
getPopupContainer: (h) => S(Le)(a.mountainTop, e.getPopupContainer, h),
|
|
5402
5415
|
disabled: e.disabled,
|
|
5403
5416
|
style: ge(a.style),
|
|
5404
5417
|
size: "medium"
|
|
@@ -5451,9 +5464,9 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5451
5464
|
const a = e, l = V(a.value ? a.value : a.multiple ? [] : null), r = V(a.label ? a.label : a.multiple ? [] : null), o = V(a.multiple ? {} : null), i = V([]), u = V(!1), c = t, p = "请输入" + a.title + "搜索", d = async (R, N = "0") => {
|
|
5452
5465
|
if (a.corpFilter && !s(a.corpId))
|
|
5453
5466
|
return i.value = [], [];
|
|
5454
|
-
let
|
|
5455
|
-
Object.assign(
|
|
5456
|
-
const F = await Re(a.requestUrl,
|
|
5467
|
+
let U = { corpId: a.corpId, searchValue: R, searchByKey: N };
|
|
5468
|
+
Object.assign(U, a.requestParams), i.value = [], u.value = !0;
|
|
5469
|
+
const F = await Re(a.requestUrl, U);
|
|
5457
5470
|
return u.value = !1, i.value = F, F;
|
|
5458
5471
|
}, y = It(() => {
|
|
5459
5472
|
d(null).then((R) => {
|
|
@@ -5466,43 +5479,43 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5466
5479
|
}, C = (R, N) => N.label.toLowerCase().indexOf(Te(R).toLowerCase()) >= 0, m = async (R) => {
|
|
5467
5480
|
if (l.value = R, a.multiple) {
|
|
5468
5481
|
const N = [];
|
|
5469
|
-
l.value.forEach((
|
|
5470
|
-
let F = i.value.filter((re) => re.value ===
|
|
5471
|
-
F.length === 1 && (N.push(F[0].label), o.value[
|
|
5482
|
+
l.value.forEach((U) => {
|
|
5483
|
+
let F = i.value.filter((re) => re.value === U);
|
|
5484
|
+
F.length === 1 && (N.push(F[0].label), o.value[U] = F[0]);
|
|
5472
5485
|
}), r.value = N;
|
|
5473
5486
|
} else {
|
|
5474
|
-
let N = i.value.filter((
|
|
5487
|
+
let N = i.value.filter((U) => U.value === R);
|
|
5475
5488
|
N.length === 1 ? (r.value = N[0].label, o.value = N[0]) : (r.value = null, o.value = null);
|
|
5476
5489
|
}
|
|
5477
|
-
}, f = () => r.value, v = () => l.value,
|
|
5490
|
+
}, f = () => r.value, v = () => l.value, g = (R) => {
|
|
5478
5491
|
m(R).then(() => {
|
|
5479
5492
|
j();
|
|
5480
5493
|
});
|
|
5481
5494
|
}, w = () => {
|
|
5482
5495
|
l.value = a.multiple ? [] : null, r.value = a.multiple ? [] : null, o.value = a.multiple ? {} : null, j();
|
|
5483
|
-
},
|
|
5496
|
+
}, h = async () => {
|
|
5484
5497
|
w(), i.value = [];
|
|
5485
5498
|
}, b = async () => {
|
|
5486
5499
|
w(), i.value = [], await y();
|
|
5487
5500
|
}, j = (R = !1) => {
|
|
5488
5501
|
c("update:value", l.value), c("update:label", r.value), R && c("change", o.value);
|
|
5489
|
-
},
|
|
5502
|
+
}, E = (R, N) => a.multiple ? s(R) && !s(N) || !s(R) && s(N) ? !0 : !s(R) && !s(N) || R.length !== N.length ? !1 : !R.every((U, F) => U === N[F]) : R !== N;
|
|
5490
5503
|
return ve(
|
|
5491
5504
|
() => [a.corpId, a.value],
|
|
5492
|
-
async ([R, N], [
|
|
5493
|
-
const re = R !==
|
|
5494
|
-
re && (w(), await d(N, "1")), G &&
|
|
5505
|
+
async ([R, N], [U, F]) => {
|
|
5506
|
+
const re = R !== U, G = E(N, l.value);
|
|
5507
|
+
re && (w(), await d(N, "1")), G && g(N);
|
|
5495
5508
|
}
|
|
5496
5509
|
), ie(async () => {
|
|
5497
5510
|
d(null);
|
|
5498
5511
|
}), n({
|
|
5499
5512
|
getName: f,
|
|
5500
5513
|
getValue: v,
|
|
5501
|
-
setValue:
|
|
5502
|
-
clear:
|
|
5514
|
+
setValue: g,
|
|
5515
|
+
clear: h,
|
|
5503
5516
|
reload: b
|
|
5504
5517
|
}), (R, N) => {
|
|
5505
|
-
const
|
|
5518
|
+
const U = Y("a-spin"), F = Y("a-select");
|
|
5506
5519
|
return x(), W("div", Js, [
|
|
5507
5520
|
D(F, {
|
|
5508
5521
|
value: l.value,
|
|
@@ -5522,8 +5535,8 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5522
5535
|
}, xe({ _: 2 }, [
|
|
5523
5536
|
u.value ? {
|
|
5524
5537
|
name: "notFoundContent",
|
|
5525
|
-
fn:
|
|
5526
|
-
D(
|
|
5538
|
+
fn: I(() => [
|
|
5539
|
+
D(U, { size: "small" })
|
|
5527
5540
|
]),
|
|
5528
5541
|
key: "0"
|
|
5529
5542
|
} : void 0
|
|
@@ -5569,42 +5582,42 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5569
5582
|
},
|
|
5570
5583
|
emits: ["update:value", "update:label", "change"],
|
|
5571
5584
|
setup(e, { expose: n, emit: t }) {
|
|
5572
|
-
const a = e, l = V(a.value || null), r = V(a.label || ""), o = V({}), i = V([]), u = V(!1), c = t, p = "请输入" + a.title + "搜索", d = async (w,
|
|
5585
|
+
const a = e, l = V(a.value || null), r = V(a.label || ""), o = V({}), i = V([]), u = V(!1), c = t, p = "请输入" + a.title + "搜索", d = async (w, h = "0") => {
|
|
5573
5586
|
if (i.value = [], a.corpFilter && !s(a.corpId))
|
|
5574
5587
|
return [];
|
|
5575
5588
|
if (s(w)) {
|
|
5576
|
-
let b = { corpId: a.corpId, searchValue: Te(w), searchByKey:
|
|
5589
|
+
let b = { corpId: a.corpId, searchValue: Te(w), searchByKey: h };
|
|
5577
5590
|
Object.assign(b, a.requestParams), u.value = !0;
|
|
5578
5591
|
const j = await Re(a.requestUrl, b);
|
|
5579
5592
|
return u.value = !1, i.value = j, j;
|
|
5580
5593
|
} else
|
|
5581
5594
|
return [];
|
|
5582
5595
|
}, y = (w) => {
|
|
5583
|
-
l.value = w, C(w).then((
|
|
5584
|
-
|
|
5596
|
+
l.value = w, C(w).then((h) => {
|
|
5597
|
+
g(!0);
|
|
5585
5598
|
});
|
|
5586
5599
|
}, _ = It((w) => {
|
|
5587
5600
|
d(w);
|
|
5588
5601
|
}, 500), C = async (w) => {
|
|
5589
5602
|
if (s(w)) {
|
|
5590
|
-
let
|
|
5591
|
-
return
|
|
5603
|
+
let h = i.value.filter((b) => b.value === w);
|
|
5604
|
+
return h.length === 1 ? (l.value = h[0].value, r.value = h[0].label, o.value = h[0], !0) : (l.value = null, r.value = "", o.value = null, !1);
|
|
5592
5605
|
} else
|
|
5593
5606
|
return l.value = null, r.value = "", o.value = null, !0;
|
|
5594
5607
|
}, m = () => r.value, f = () => l.value, v = (w) => {
|
|
5595
|
-
l.value = w, C(w).then((
|
|
5596
|
-
|
|
5608
|
+
l.value = w, C(w).then((h) => {
|
|
5609
|
+
h && g();
|
|
5597
5610
|
});
|
|
5598
|
-
},
|
|
5611
|
+
}, g = (w = !1) => {
|
|
5599
5612
|
c("update:value", l.value), c("update:label", r.value), w && c("change", o.value);
|
|
5600
5613
|
};
|
|
5601
5614
|
return ve(
|
|
5602
5615
|
() => [a.corpId, a.value],
|
|
5603
|
-
async ([w,
|
|
5604
|
-
const
|
|
5605
|
-
|
|
5606
|
-
N || d(
|
|
5607
|
-
v(
|
|
5616
|
+
async ([w, h], [b, j]) => {
|
|
5617
|
+
const E = w !== b, R = h !== l.value;
|
|
5618
|
+
E && (i.value = [], r.value = null, l.value = null, o.value = null, g()), R && C(h).then((N) => {
|
|
5619
|
+
N || d(h, "1").then(() => {
|
|
5620
|
+
v(h);
|
|
5608
5621
|
});
|
|
5609
5622
|
});
|
|
5610
5623
|
}
|
|
@@ -5619,12 +5632,12 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5619
5632
|
getName: m,
|
|
5620
5633
|
getValue: f,
|
|
5621
5634
|
setValue: v
|
|
5622
|
-
}), (w,
|
|
5635
|
+
}), (w, h) => {
|
|
5623
5636
|
const b = Y("a-spin"), j = Y("a-select");
|
|
5624
5637
|
return x(), W("div", Zs, [
|
|
5625
5638
|
D(j, {
|
|
5626
5639
|
value: l.value,
|
|
5627
|
-
"onUpdate:value":
|
|
5640
|
+
"onUpdate:value": h[0] || (h[0] = (E) => l.value = E),
|
|
5628
5641
|
placeholder: p,
|
|
5629
5642
|
style: ge(a.style),
|
|
5630
5643
|
"filter-option": !1,
|
|
@@ -5634,14 +5647,14 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5634
5647
|
listHeight: a.listHeight,
|
|
5635
5648
|
"default-active-first-option": !1,
|
|
5636
5649
|
"show-arrow": !1,
|
|
5637
|
-
getPopupContainer: (
|
|
5650
|
+
getPopupContainer: (E) => S(Le)(a.mountainTop, e.getPopupContainer, E),
|
|
5638
5651
|
onChange: y,
|
|
5639
5652
|
onSearch: S(_),
|
|
5640
5653
|
"show-search": ""
|
|
5641
5654
|
}, xe({ _: 2 }, [
|
|
5642
5655
|
u.value ? {
|
|
5643
5656
|
name: "notFoundContent",
|
|
5644
|
-
fn:
|
|
5657
|
+
fn: I(() => [
|
|
5645
5658
|
D(b, { size: "small" })
|
|
5646
5659
|
]),
|
|
5647
5660
|
key: "0"
|
|
@@ -5677,16 +5690,16 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5677
5690
|
collapsible: n.showArrow ? "" : "disabled",
|
|
5678
5691
|
accordion: ""
|
|
5679
5692
|
}, {
|
|
5680
|
-
default:
|
|
5693
|
+
default: I(() => [
|
|
5681
5694
|
(x(!0), W(de, null, Ce(S(a), (d) => (x(), z(c, {
|
|
5682
5695
|
key: d,
|
|
5683
5696
|
forceRender: "",
|
|
5684
5697
|
showArrow: n.showArrow
|
|
5685
5698
|
}, {
|
|
5686
|
-
header:
|
|
5699
|
+
header: I(() => [
|
|
5687
5700
|
S(l).length === 1 ? oe(i.$slots, "header", { key: 0 }) : (x(), W("span", Qs, ae(o.value[d]), 1))
|
|
5688
5701
|
]),
|
|
5689
|
-
default:
|
|
5702
|
+
default: I(() => [
|
|
5690
5703
|
oe(i.$slots, d)
|
|
5691
5704
|
]),
|
|
5692
5705
|
_: 2
|
|
@@ -5797,13 +5810,13 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5797
5810
|
tabBarStyle: { margin: 0, backgroundColor: S(a) },
|
|
5798
5811
|
onChange: c
|
|
5799
5812
|
}, xe({
|
|
5800
|
-
default:
|
|
5813
|
+
default: I(() => [
|
|
5801
5814
|
(x(!0), W(de, null, Ce(S(r), (C, m) => (x(), z(y, {
|
|
5802
5815
|
key: C,
|
|
5803
5816
|
forceRender: t.forceRender && !t.notForceRender?.includes(C),
|
|
5804
5817
|
style: ge(t.position === "left" ? { paddingLeft: "0" } : {})
|
|
5805
5818
|
}, {
|
|
5806
|
-
tab:
|
|
5819
|
+
tab: I(() => [
|
|
5807
5820
|
K("span", {
|
|
5808
5821
|
style: ge(m === 0 && t.position === "top" ? { marginLeft: "10px" } : {})
|
|
5809
5822
|
}, [
|
|
@@ -5816,7 +5829,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5816
5829
|
], 64))
|
|
5817
5830
|
], 4)
|
|
5818
5831
|
]),
|
|
5819
|
-
default:
|
|
5832
|
+
default: I(() => [
|
|
5820
5833
|
oe(p.$slots, C)
|
|
5821
5834
|
]),
|
|
5822
5835
|
_: 2
|
|
@@ -5826,7 +5839,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-modal-minimized-title" }
|
|
|
5826
5839
|
}, [
|
|
5827
5840
|
S(l).includes("rightExtra") ? {
|
|
5828
5841
|
name: "rightExtra",
|
|
5829
|
-
fn:
|
|
5842
|
+
fn: I(() => [
|
|
5830
5843
|
oe(p.$slots, "rightExtra")
|
|
5831
5844
|
]),
|
|
5832
5845
|
key: "0"
|