sag-ubmp-pc 1.0.37 → 1.0.39
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 +675 -666
- package/dist/sag-ubmp-pc.umd.js +7 -7
- package/package.json +4 -4
package/dist/sag-ubmp-pc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Ae, { trim as ke, debounce as jt } from "xe-utils";
|
|
2
|
-
import { inject as ge, ref as $, h as Te, getCurrentInstance as ql, nextTick as ut, reactive as te, defineComponent as J, createVNode as q, openBlock as w, createElementBlock as I, Fragment as fe, createBlock as j, unref as
|
|
2
|
+
import { inject as ge, ref as $, h as Te, getCurrentInstance as ql, nextTick as ut, reactive as te, defineComponent as J, createVNode as q, openBlock as w, createElementBlock as I, Fragment as fe, createBlock as j, unref as y, createCommentVNode as z, onMounted as oe, resolveComponent as L, isRef as ft, createSlots as we, withCtx as B, defineAsyncComponent as Dl, computed as Bl, resolveDynamicComponent as Nl, mergeProps as ee, createElementVNode as K, toDisplayString as ae, useAttrs as El, provide as Tn, useSlots as Be, watch as he, withDirectives as Mn, createTextVNode as de, renderList as Pe, renderSlot as re, vShow as Vn, toHandlers as Rl, normalizeProps as Ll, guardReactiveProps as Ul, normalizeStyle as me } from "vue";
|
|
3
3
|
import { Modal as Il, notification as kt, message as Fl, Spin as Hl } from "ant-design-vue";
|
|
4
4
|
import T from "dayjs";
|
|
5
5
|
const pt = "SAG_UBMP_PC$", st = {
|
|
@@ -213,8 +213,8 @@ const le = zt("log"), Wa = zt("warn"), mt = zt("error"), et = {
|
|
|
213
213
|
disabled: s,
|
|
214
214
|
defaultValue: p,
|
|
215
215
|
dictRoleType: d,
|
|
216
|
-
selectAll:
|
|
217
|
-
parentNode:
|
|
216
|
+
selectAll: g,
|
|
217
|
+
parentNode: S
|
|
218
218
|
} = a;
|
|
219
219
|
return {
|
|
220
220
|
field: e,
|
|
@@ -225,13 +225,13 @@ const le = zt("log"), Wa = zt("warn"), mt = zt("error"), et = {
|
|
|
225
225
|
props: {
|
|
226
226
|
request: {
|
|
227
227
|
dictType: n,
|
|
228
|
-
parentNode: c(
|
|
228
|
+
parentNode: c(S) ? S : null,
|
|
229
229
|
dictRoleType: c(d) ? d : null
|
|
230
230
|
},
|
|
231
231
|
multiple: c(o) ? o : !1,
|
|
232
232
|
clearable: c(i) ? i : !0,
|
|
233
233
|
filterable: c(u) ? u : !1,
|
|
234
|
-
selectAll: c(
|
|
234
|
+
selectAll: c(g) ? g : !0,
|
|
235
235
|
disabled: c(s) ? s : !1,
|
|
236
236
|
defaultValue: c(p) ? p : null
|
|
237
237
|
}
|
|
@@ -357,26 +357,26 @@ const le = zt("log"), Wa = zt("warn"), mt = zt("error"), et = {
|
|
|
357
357
|
componentVue: s = !0,
|
|
358
358
|
componentParams: p = {},
|
|
359
359
|
treeNode: d = !1,
|
|
360
|
-
autoLoad:
|
|
361
|
-
resizable:
|
|
360
|
+
autoLoad: g = !1,
|
|
361
|
+
resizable: S = !1,
|
|
362
362
|
showOverflow: f,
|
|
363
363
|
align: m = "center",
|
|
364
364
|
type: O,
|
|
365
|
-
fixed:
|
|
366
|
-
width:
|
|
365
|
+
fixed: b,
|
|
366
|
+
width: v
|
|
367
367
|
} = n;
|
|
368
368
|
return {
|
|
369
369
|
field: e,
|
|
370
370
|
title: t,
|
|
371
371
|
sortable: !1,
|
|
372
|
-
width: c(
|
|
372
|
+
width: c(v) ? v : c(O) ? c(i) ? i : 120 : "auto",
|
|
373
373
|
minWidth: i,
|
|
374
|
-
resizable:
|
|
374
|
+
resizable: S,
|
|
375
375
|
showOverflow: c(f) ? f : "title",
|
|
376
376
|
align: m,
|
|
377
377
|
headerAlign: "center",
|
|
378
378
|
type: c(O) ? O : null,
|
|
379
|
-
fixed: c(
|
|
379
|
+
fixed: c(b) ? b : "",
|
|
380
380
|
formatter: c(a) ? a : "",
|
|
381
381
|
treeNode: d,
|
|
382
382
|
params: {
|
|
@@ -384,7 +384,7 @@ const le = zt("log"), Wa = zt("warn"), mt = zt("error"), et = {
|
|
|
384
384
|
requestUrl: r,
|
|
385
385
|
title: o,
|
|
386
386
|
maximize: u,
|
|
387
|
-
autoLoad:
|
|
387
|
+
autoLoad: g,
|
|
388
388
|
componentVue: s,
|
|
389
389
|
componentParams: p
|
|
390
390
|
},
|
|
@@ -460,8 +460,8 @@ const le = zt("log"), Wa = zt("warn"), mt = zt("error"), et = {
|
|
|
460
460
|
componentParams: s,
|
|
461
461
|
maximize: p = !0,
|
|
462
462
|
width: d,
|
|
463
|
-
height:
|
|
464
|
-
auth:
|
|
463
|
+
height: g,
|
|
464
|
+
auth: S,
|
|
465
465
|
autoLoad: f = !0
|
|
466
466
|
} = t;
|
|
467
467
|
return {
|
|
@@ -478,8 +478,8 @@ const le = zt("log"), Wa = zt("warn"), mt = zt("error"), et = {
|
|
|
478
478
|
maximize: p,
|
|
479
479
|
autoLoad: f,
|
|
480
480
|
width: c(d) ? d : null,
|
|
481
|
-
height: c(
|
|
482
|
-
auth: c(
|
|
481
|
+
height: c(g) ? g : null,
|
|
482
|
+
auth: c(S) ? S : !0
|
|
483
483
|
};
|
|
484
484
|
}, wr = (e = "", t = {}) => {
|
|
485
485
|
const { icon: n, status: a, requestTitle: l, requestUrl: r, requestRow: o, requestRadio: i, requestConfirmContent: u, auth: s } = t;
|
|
@@ -555,14 +555,14 @@ const le = zt("log"), Wa = zt("warn"), mt = zt("error"), et = {
|
|
|
555
555
|
if (Array.isArray(a)) {
|
|
556
556
|
if (a && a.includes(i.field)) {
|
|
557
557
|
const p = u[o - 1], d = p && p[i.field] ? p[i.field] : "";
|
|
558
|
-
let
|
|
559
|
-
const
|
|
558
|
+
let g = u[o + 1];
|
|
559
|
+
const S = g && g[i.field] ? g[i.field] : "";
|
|
560
560
|
if (p && d === s && p[t] === r[t])
|
|
561
561
|
return { rowspan: 0, colspan: 0 };
|
|
562
562
|
{
|
|
563
563
|
let f = 1;
|
|
564
|
-
for (;
|
|
565
|
-
|
|
564
|
+
for (; g && S === s && g[t] === r[t]; )
|
|
565
|
+
g = u[++f + o];
|
|
566
566
|
if (f > 1)
|
|
567
567
|
return { rowspan: f, colspan: 1 };
|
|
568
568
|
}
|
|
@@ -572,23 +572,23 @@ const le = zt("log"), Wa = zt("warn"), mt = zt("error"), et = {
|
|
|
572
572
|
if (p && p[t] === r[t])
|
|
573
573
|
return { rowspan: 0, colspan: 0 };
|
|
574
574
|
{
|
|
575
|
-
let
|
|
575
|
+
let g = 1;
|
|
576
576
|
for (; d && d[t] === r[t]; )
|
|
577
|
-
d = u[++
|
|
578
|
-
if (
|
|
579
|
-
return { rowspan:
|
|
577
|
+
d = u[++g + o];
|
|
578
|
+
if (g > 1)
|
|
579
|
+
return { rowspan: g, colspan: 1 };
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
582
|
} else if (c(a[i.field])) {
|
|
583
|
-
const p = a[i.field], d = u[o - 1],
|
|
584
|
-
let
|
|
585
|
-
const f =
|
|
586
|
-
if (d &&
|
|
583
|
+
const p = a[i.field], d = u[o - 1], g = d && d[i.field] ? d[i.field] : "";
|
|
584
|
+
let S = u[o + 1];
|
|
585
|
+
const f = S && S[i.field] ? S[i.field] : "";
|
|
586
|
+
if (d && g === s && d[p] === r[p])
|
|
587
587
|
return { rowspan: 0, colspan: 0 };
|
|
588
588
|
{
|
|
589
589
|
let m = 1;
|
|
590
|
-
for (;
|
|
591
|
-
|
|
590
|
+
for (; S && f === s && S[p] === r[p]; )
|
|
591
|
+
S = u[++m + o];
|
|
592
592
|
if (m > 1)
|
|
593
593
|
return { rowspan: m, colspan: 1 };
|
|
594
594
|
}
|
|
@@ -1012,8 +1012,8 @@ function Tt(e) {
|
|
|
1012
1012
|
n.push(s);
|
|
1013
1013
|
}
|
|
1014
1014
|
return t.theme === "dark" ? Rr.map(function(p) {
|
|
1015
|
-
var d = p.index,
|
|
1016
|
-
return
|
|
1015
|
+
var d = p.index, g = p.opacity, S = Ke(Lr(Le(t.backgroundColor || "#141414"), Le(n[d]), g * 100));
|
|
1016
|
+
return S;
|
|
1017
1017
|
}) : n;
|
|
1018
1018
|
}
|
|
1019
1019
|
var xt = {
|
|
@@ -1437,24 +1437,24 @@ function Co(e, t) {
|
|
|
1437
1437
|
}
|
|
1438
1438
|
fl(Ur.primary);
|
|
1439
1439
|
var Y = function(t, n) {
|
|
1440
|
-
var a, l = Wn({}, t, n.attrs), r = l.class, o = l.icon, i = l.spin, u = l.rotate, s = l.tabindex, p = l.twoToneColor, d = l.onClick,
|
|
1441
|
-
|
|
1442
|
-
var
|
|
1440
|
+
var a, l = Wn({}, t, n.attrs), r = l.class, o = l.icon, i = l.spin, u = l.rotate, s = l.tabindex, p = l.twoToneColor, d = l.onClick, g = _o(l, vo), S = rl(), f = S.prefixCls, m = S.rootClassName, O = (a = {}, Ie(a, m.value, !!m.value), Ie(a, f.value, !0), Ie(a, "".concat(f.value, "-").concat(o.name), !!o.name), Ie(a, "".concat(f.value, "-spin"), !!i || o.name === "loading"), a), b = s;
|
|
1441
|
+
b === void 0 && d && (b = -1);
|
|
1442
|
+
var v = u ? {
|
|
1443
1443
|
msTransform: "rotate(".concat(u, "deg)"),
|
|
1444
1444
|
transform: "rotate(".concat(u, "deg)")
|
|
1445
|
-
} : void 0,
|
|
1445
|
+
} : void 0, _ = cl(p), h = bo(_, 2), P = h[0], D = h[1];
|
|
1446
1446
|
return q("span", Wn({
|
|
1447
1447
|
role: "img",
|
|
1448
1448
|
"aria-label": o.name
|
|
1449
|
-
},
|
|
1449
|
+
}, g, {
|
|
1450
1450
|
onClick: d,
|
|
1451
1451
|
class: [O, r],
|
|
1452
|
-
tabindex:
|
|
1452
|
+
tabindex: b
|
|
1453
1453
|
}), [q($e, {
|
|
1454
1454
|
icon: o,
|
|
1455
|
-
primaryColor:
|
|
1455
|
+
primaryColor: P,
|
|
1456
1456
|
secondaryColor: D,
|
|
1457
|
-
style:
|
|
1457
|
+
style: v
|
|
1458
1458
|
}, null), q(ho, null, null)]);
|
|
1459
1459
|
};
|
|
1460
1460
|
Y.props = {
|
|
@@ -2258,20 +2258,20 @@ function zi(e) {
|
|
|
2258
2258
|
const { gridRef: t, targetModal: n, gridOptions: a, pageOptions: l, formData: r, pageModal: o } = e, i = async (f) => {
|
|
2259
2259
|
if (!c(f.requestType) || typeof f.requestType == "string")
|
|
2260
2260
|
if (f.requestType === "custom") {
|
|
2261
|
-
const m = await
|
|
2261
|
+
const m = await S(f);
|
|
2262
2262
|
if (f.requestRow && !c(m))
|
|
2263
2263
|
return;
|
|
2264
2264
|
l.onButtonClickModule({ $gridRef: t.value, gridOptions: a, formData: r, item: f, data: m });
|
|
2265
2265
|
} else
|
|
2266
2266
|
d(r, f);
|
|
2267
2267
|
else {
|
|
2268
|
-
const m = await
|
|
2268
|
+
const m = await S(f);
|
|
2269
2269
|
if (f.requestRow && !c(m))
|
|
2270
2270
|
return;
|
|
2271
2271
|
f.requestType({ gridRef: t, gridOptions: a, formData: r, item: f, data: m });
|
|
2272
2272
|
}
|
|
2273
2273
|
}, u = (f, m) => {
|
|
2274
|
-
!c(f.requestType) || typeof f.requestType == "string" ? f.requestType === "custom" ? l.onButtonClickModule({ $gridRef: t.value, gridOptions: a, formData: r, item: f, row: m }) :
|
|
2274
|
+
!c(f.requestType) || typeof f.requestType == "string" ? f.requestType === "custom" ? l.onButtonClickModule({ $gridRef: t.value, gridOptions: a, formData: r, item: f, row: m }) : g(f, m) : f.requestType({ gridRef: t, gridOptions: a, formData: r, item: f, row: m });
|
|
2275
2275
|
}, s = (f, m) => {
|
|
2276
2276
|
const O = m.params.requestType;
|
|
2277
2277
|
!c(O) || typeof O == "string" ? O === "custom" ? l.onButtonClickModule({ $gridRef: t.value, gridOptions: a, formData: r, column: m, row: f }) : p(f, m) : O({ gridRef: t, gridOptions: a, formData: r, column: m, row: f });
|
|
@@ -2280,95 +2280,95 @@ function zi(e) {
|
|
|
2280
2280
|
f[A.buttonKeyName] = m.params;
|
|
2281
2281
|
else {
|
|
2282
2282
|
let O = ne(l.ctxPath, n.componentUrl);
|
|
2283
|
-
for (const
|
|
2284
|
-
O = O.replace("{" +
|
|
2283
|
+
for (const b in f)
|
|
2284
|
+
O = O.replace("{" + b + "}", f[b]);
|
|
2285
2285
|
n.componentUrl = O;
|
|
2286
2286
|
}
|
|
2287
2287
|
n.componentParams = f, n.visible = !0;
|
|
2288
2288
|
}, d = async (f, m) => {
|
|
2289
2289
|
if (t.value) {
|
|
2290
|
-
const
|
|
2291
|
-
if (m.requestRow && !c(
|
|
2290
|
+
const b = await S(m);
|
|
2291
|
+
if (m.requestRow && !c(b))
|
|
2292
2292
|
return;
|
|
2293
2293
|
if (m.requestType === Ue || m.requestType === tt) {
|
|
2294
|
-
let
|
|
2295
|
-
const
|
|
2296
|
-
if ((!
|
|
2297
|
-
const
|
|
2298
|
-
for (const
|
|
2299
|
-
const D =
|
|
2294
|
+
let v = m.requestUrl;
|
|
2295
|
+
const _ = X(m.componentVue, o.componentVue);
|
|
2296
|
+
if ((!_ || m.requestType === tt) && (v = ne(l.ctxPath, v), m.requestRow && v.split("?").length > 1)) {
|
|
2297
|
+
const h = ji(v.split("?")[1]);
|
|
2298
|
+
for (const P in h) {
|
|
2299
|
+
const D = h[P];
|
|
2300
2300
|
if (a.checkboxConfig) {
|
|
2301
2301
|
let F = [];
|
|
2302
|
-
for (const N in
|
|
2303
|
-
for (const W in
|
|
2304
|
-
W === D &&
|
|
2302
|
+
for (const N in b)
|
|
2303
|
+
for (const W in b[N])
|
|
2304
|
+
W === D && b[N][W] && (F[b[N][W]] = b[N][W]);
|
|
2305
2305
|
let U = "";
|
|
2306
2306
|
for (const N in F)
|
|
2307
2307
|
U = (U ? U + "," : "") + N;
|
|
2308
|
-
|
|
2308
|
+
v = v.replace("{" + D + "}", U);
|
|
2309
2309
|
} else
|
|
2310
|
-
|
|
2310
|
+
v = v.replace("{" + D + "}", b[D]);
|
|
2311
2311
|
}
|
|
2312
2312
|
}
|
|
2313
2313
|
if (m.requestType === Ue) {
|
|
2314
|
-
if (n.title = X(m.title, o.title), n.width = X(m.width, o.width), n.height = X(m.height, o.height), n.maximize = X(m.maximize, !1), n.autoLoad = X(m.autoLoad, !0), n.componentVue =
|
|
2314
|
+
if (n.title = X(m.title, o.title), n.width = X(m.width, o.width), n.height = X(m.height, o.height), n.maximize = X(m.maximize, !1), n.autoLoad = X(m.autoLoad, !0), n.componentVue = _, n.componentUrl = v, n.componentParams = {}, m.requestRow)
|
|
2315
2315
|
if (a.checkboxConfig)
|
|
2316
2316
|
if (m.requestRadio)
|
|
2317
|
-
|
|
2317
|
+
b[0][A.buttonKeyName] = m, n.componentParams = b[0];
|
|
2318
2318
|
else {
|
|
2319
|
-
const
|
|
2320
|
-
|
|
2319
|
+
const h = {};
|
|
2320
|
+
h[A.buttonKeyName] = m, h._X_ROWS = b, n.componentParams = h;
|
|
2321
2321
|
}
|
|
2322
2322
|
else
|
|
2323
|
-
|
|
2323
|
+
b[A.buttonKeyName] = m, n.componentParams = b;
|
|
2324
2324
|
else
|
|
2325
2325
|
n.componentParams[A.buttonKeyName] = m;
|
|
2326
2326
|
n.visible = !0;
|
|
2327
2327
|
} else
|
|
2328
|
-
window.open(
|
|
2328
|
+
window.open(v, "_blank");
|
|
2329
2329
|
} else
|
|
2330
2330
|
ct(
|
|
2331
2331
|
m.requestTitle,
|
|
2332
2332
|
() => {
|
|
2333
|
-
let
|
|
2334
|
-
if (
|
|
2333
|
+
let v = ne(l.ctxPath, m.requestUrl);
|
|
2334
|
+
if (v.split("?").length > 1) {
|
|
2335
2335
|
if (a.radioConfig)
|
|
2336
|
-
for (const
|
|
2337
|
-
|
|
2336
|
+
for (const _ in b)
|
|
2337
|
+
v = v.replace("{" + _ + "}", b[_]);
|
|
2338
2338
|
else if (a.checkboxConfig && m.requestRadio)
|
|
2339
|
-
for (const
|
|
2340
|
-
|
|
2339
|
+
for (const _ in b[0])
|
|
2340
|
+
v = v.replace("{" + _ + "}", b[0][_]);
|
|
2341
2341
|
}
|
|
2342
2342
|
Ca(
|
|
2343
2343
|
t,
|
|
2344
2344
|
a,
|
|
2345
|
-
|
|
2346
|
-
m.requestRow ?
|
|
2347
|
-
!!(a.checkboxConfig && m.requestRow &&
|
|
2345
|
+
v,
|
|
2346
|
+
m.requestRow ? b : f,
|
|
2347
|
+
!!(a.checkboxConfig && m.requestRow && b.length !== 1)
|
|
2348
2348
|
);
|
|
2349
2349
|
},
|
|
2350
2350
|
m.requestConfirmContent
|
|
2351
2351
|
);
|
|
2352
2352
|
}
|
|
2353
|
-
},
|
|
2353
|
+
}, g = (f, m) => {
|
|
2354
2354
|
if (f.requestType === Ue || f.requestType === tt) {
|
|
2355
2355
|
let O = f.requestUrl;
|
|
2356
|
-
const
|
|
2357
|
-
let
|
|
2358
|
-
if (
|
|
2359
|
-
|
|
2356
|
+
const b = X(f.componentVue, o.componentVue);
|
|
2357
|
+
let v = !1;
|
|
2358
|
+
if (b)
|
|
2359
|
+
v = !0;
|
|
2360
2360
|
else if (O = ne(l.ctxPath, O), O.split("?").length > 1)
|
|
2361
|
-
for (const
|
|
2362
|
-
if (O.indexOf("{" +
|
|
2361
|
+
for (const _ in m) {
|
|
2362
|
+
if (O.indexOf("{" + _ + "}") > -1 && (v = !0, m[_] === "")) {
|
|
2363
2363
|
De("该单据没有相应数据,无法进行本次操作");
|
|
2364
2364
|
return;
|
|
2365
2365
|
}
|
|
2366
|
-
O = O.replace("{" +
|
|
2366
|
+
O = O.replace("{" + _ + "}", m[_]);
|
|
2367
2367
|
}
|
|
2368
2368
|
else
|
|
2369
|
-
|
|
2370
|
-
if (
|
|
2371
|
-
f.requestType === Ue ? (m[A.buttonKeyName] = f, n.title = X(f.title, o.title), n.width = X(f.width, o.width), n.height = X(f.height, o.height), n.maximize = X(f.maximize, !1), n.autoLoad = X(f.autoLoad, !0), n.componentVue =
|
|
2369
|
+
v = !0;
|
|
2370
|
+
if (v)
|
|
2371
|
+
f.requestType === Ue ? (m[A.buttonKeyName] = f, n.title = X(f.title, o.title), n.width = X(f.width, o.width), n.height = X(f.height, o.height), n.maximize = X(f.maximize, !1), n.autoLoad = X(f.autoLoad, !0), n.componentVue = b, n.componentUrl = O, n.componentParams = m, n.visible = !0) : window.open(O, "_blank");
|
|
2372
2372
|
else {
|
|
2373
2373
|
De("该单据没有相应数据,无法进行本次操作");
|
|
2374
2374
|
return;
|
|
@@ -2378,13 +2378,13 @@ function zi(e) {
|
|
|
2378
2378
|
f.requestTitle,
|
|
2379
2379
|
() => {
|
|
2380
2380
|
let O = ne(l.ctxPath, f.requestUrl);
|
|
2381
|
-
for (const
|
|
2382
|
-
O = O.replace("{" +
|
|
2381
|
+
for (const b in m)
|
|
2382
|
+
O = O.replace("{" + b + "}", m[b]);
|
|
2383
2383
|
Ca(t, a, O, m);
|
|
2384
2384
|
},
|
|
2385
2385
|
f.requestConfirmContent
|
|
2386
2386
|
);
|
|
2387
|
-
},
|
|
2387
|
+
}, S = async (f) => {
|
|
2388
2388
|
if (f.requestRow) {
|
|
2389
2389
|
const m = await ml(t, a);
|
|
2390
2390
|
let O = null;
|
|
@@ -2419,20 +2419,20 @@ function qi(e) {
|
|
|
2419
2419
|
return {
|
|
2420
2420
|
downloadEvent: (m) => {
|
|
2421
2421
|
const O = t.value;
|
|
2422
|
-
O && O.validate().then((
|
|
2423
|
-
if (!
|
|
2424
|
-
let
|
|
2425
|
-
if (c(
|
|
2422
|
+
O && O.validate().then((b) => {
|
|
2423
|
+
if (!b || b.length === 0) {
|
|
2424
|
+
let v = d.requestDownload;
|
|
2425
|
+
if (c(v)) {
|
|
2426
2426
|
if (l.loading) {
|
|
2427
2427
|
De("正在导出中,请不要重复点击!");
|
|
2428
2428
|
return;
|
|
2429
2429
|
}
|
|
2430
|
-
if (p.isMerge && typeof
|
|
2430
|
+
if (p.isMerge && typeof v != "object") {
|
|
2431
2431
|
De("合并列模式请设置requestDownload参数为表格列格式");
|
|
2432
2432
|
return;
|
|
2433
2433
|
}
|
|
2434
2434
|
ct("确定要导出表格所有内容吗?", () => {
|
|
2435
|
-
const
|
|
2435
|
+
const _ = Fl.loading(
|
|
2436
2436
|
{
|
|
2437
2437
|
content: () => "下载中,请稍后... 不要连续点击下载",
|
|
2438
2438
|
style: {
|
|
@@ -2441,19 +2441,19 @@ function qi(e) {
|
|
|
2441
2441
|
},
|
|
2442
2442
|
0
|
|
2443
2443
|
);
|
|
2444
|
-
setTimeout(
|
|
2445
|
-
const
|
|
2446
|
-
if (
|
|
2447
|
-
const { filter:
|
|
2444
|
+
setTimeout(_, 2e3);
|
|
2445
|
+
const h = a.value;
|
|
2446
|
+
if (h) {
|
|
2447
|
+
const { filter: P, form: D, sort: F } = h.getProxyInfo(), N = At({
|
|
2448
2448
|
currentPage: 1,
|
|
2449
2449
|
pageSize: 25e3
|
|
2450
|
-
}, F,
|
|
2451
|
-
if (typeof
|
|
2452
|
-
|
|
2450
|
+
}, F, P, D, n, o);
|
|
2451
|
+
if (typeof v == "string") {
|
|
2452
|
+
v = ne(u.ctxPath, d.requestDownload);
|
|
2453
2453
|
let W = "";
|
|
2454
2454
|
Object.keys(N).forEach((Q) => {
|
|
2455
2455
|
c(N[Q]) && (typeof N[Q] == "string" && (W += "&" + Q + "=" + N[Q]), typeof N[Q] == "object" && Array.isArray(N[Q]) && (W += "&" + Q + "=" + N[Q].join(",")));
|
|
2456
|
-
}), le("导出表格参数", [
|
|
2456
|
+
}), le("导出表格参数", [v, W]), Vi(v + W);
|
|
2457
2457
|
} else
|
|
2458
2458
|
l.loading = !0, N.exportFlag = !0, r(N, d.requestData, !0).then(async (W) => {
|
|
2459
2459
|
if (W == null || W.rows.length == 0) {
|
|
@@ -2470,7 +2470,7 @@ function qi(e) {
|
|
|
2470
2470
|
filename: u.templateTitle + (/* @__PURE__ */ new Date()).getTime(),
|
|
2471
2471
|
sheetName: u.templateTitle,
|
|
2472
2472
|
data: W.rows,
|
|
2473
|
-
columns: c(l.params.exportColumns) ? l.params.exportColumns :
|
|
2473
|
+
columns: c(l.params.exportColumns) ? l.params.exportColumns : v,
|
|
2474
2474
|
mergeCells: i(W.rows)
|
|
2475
2475
|
};
|
|
2476
2476
|
m(Q), l.loading = !1;
|
|
@@ -2488,7 +2488,7 @@ function qi(e) {
|
|
|
2488
2488
|
return !A.templateTable.ignoreExportColumnsTitle.includes(ie?.column?.title);
|
|
2489
2489
|
}
|
|
2490
2490
|
};
|
|
2491
|
-
le("导出参数", E),
|
|
2491
|
+
le("导出参数", E), h.exportData(E).then(() => {
|
|
2492
2492
|
l.loading = !1;
|
|
2493
2493
|
});
|
|
2494
2494
|
}
|
|
@@ -2511,12 +2511,12 @@ function qi(e) {
|
|
|
2511
2511
|
},
|
|
2512
2512
|
switchColumsEvent: (m, O = !1) => {
|
|
2513
2513
|
if (c(s.tableColumnsExtra)) {
|
|
2514
|
-
const
|
|
2514
|
+
const b = s.tableColumns, v = s.tableColumnsExtra;
|
|
2515
2515
|
if (O) {
|
|
2516
|
-
const
|
|
2517
|
-
c(
|
|
2516
|
+
const _ = Jl(m, u.templateType);
|
|
2517
|
+
c(_) ? (l.params.switchType = _.switchType, l.columns = _.switchType === "1" ? b : v, l.showOverflow = _.switchShowOverflow) : (l.params.switchType = "1", l.columns = b, l.showOverflow = X(s.showOverflow, !0));
|
|
2518
2518
|
} else
|
|
2519
|
-
l.params.switchType = l.params.switchType === "1" ? "2" : "1", l.columns = l.params.switchType === "2" ?
|
|
2519
|
+
l.params.switchType = l.params.switchType === "1" ? "2" : "1", l.columns = l.params.switchType === "2" ? v : b, l.showOverflow = !l.showOverflow, Gl(m, u.templateType, {
|
|
2520
2520
|
switchType: l.params.switchType,
|
|
2521
2521
|
switchShowOverflow: l.showOverflow
|
|
2522
2522
|
});
|
|
@@ -2536,35 +2536,35 @@ const Ve = /* @__PURE__ */ J({
|
|
|
2536
2536
|
setup(e) {
|
|
2537
2537
|
const t = e;
|
|
2538
2538
|
return (n, a) => (w(), I(fe, null, [
|
|
2539
|
-
t.icon === "user" ? (w(), j(
|
|
2540
|
-
t.icon === "excel" ? (w(), j(
|
|
2541
|
-
t.icon === "download" ? (w(), j(
|
|
2542
|
-
t.icon === "save" ? (w(), j(
|
|
2543
|
-
t.icon === "edit" ? (w(), j(
|
|
2544
|
-
t.icon === "delete" ? (w(), j(
|
|
2545
|
-
t.icon === "down" ? (w(), j(
|
|
2546
|
-
t.icon === "up" ? (w(), j(
|
|
2547
|
-
t.icon === "undo" ? (w(), j(
|
|
2548
|
-
t.icon === "redo" ? (w(), j(
|
|
2549
|
-
t.icon === "copy" ? (w(), j(
|
|
2550
|
-
t.icon === "print" ? (w(), j(
|
|
2551
|
-
t.icon === "plus" ? (w(), j(
|
|
2552
|
-
t.icon === "minus" ? (w(), j(
|
|
2553
|
-
t.icon === "info" ? (w(), j(
|
|
2554
|
-
t.icon === "audit" ? (w(), j(
|
|
2555
|
-
t.icon === "schedule" ? (w(), j(
|
|
2556
|
-
t.icon === "close" ? (w(), j(
|
|
2557
|
-
t.icon === "stop" ? (w(), j(
|
|
2558
|
-
t.icon === "check" ? (w(), j(
|
|
2559
|
-
t.icon === "setting" ? (w(), j(
|
|
2560
|
-
t.icon === "menu" ? (w(), j(
|
|
2561
|
-
t.icon === "pdf" ? (w(), j(
|
|
2562
|
-
t.icon === "push" ? (w(), j(
|
|
2563
|
-
t.icon === "upload" ? (w(), j(
|
|
2564
|
-
t.icon === "search" ? (w(), j(
|
|
2565
|
-
t.icon === "sync" ? (w(), j(
|
|
2566
|
-
t.icon === "link" ? (w(), j(
|
|
2567
|
-
!t.icon || t.icon === "" ? (w(), j(
|
|
2539
|
+
t.icon === "user" ? (w(), j(y(mn), { key: 0 })) : z("", !0),
|
|
2540
|
+
t.icon === "excel" ? (w(), j(y(Gt), { key: 1 })) : z("", !0),
|
|
2541
|
+
t.icon === "download" ? (w(), j(y(Ht), { key: 2 })) : z("", !0),
|
|
2542
|
+
t.icon === "save" ? (w(), j(y(ln), { key: 3 })) : z("", !0),
|
|
2543
|
+
t.icon === "edit" ? (w(), j(y(Yt), { key: 4 })) : z("", !0),
|
|
2544
|
+
t.icon === "delete" ? (w(), j(y(Ft), { key: 5 })) : z("", !0),
|
|
2545
|
+
t.icon === "down" ? (w(), j(y(ht), { key: 6 })) : z("", !0),
|
|
2546
|
+
t.icon === "up" ? (w(), j(y(fn), { key: 7 })) : z("", !0),
|
|
2547
|
+
t.icon === "undo" ? (w(), j(y(dn), { key: 8 })) : z("", !0),
|
|
2548
|
+
t.icon === "redo" ? (w(), j(y(an), { key: 9 })) : z("", !0),
|
|
2549
|
+
t.icon === "copy" ? (w(), j(y(It), { key: 10 })) : z("", !0),
|
|
2550
|
+
t.icon === "print" ? (w(), j(y(nn), { key: 11 })) : z("", !0),
|
|
2551
|
+
t.icon === "plus" ? (w(), j(y(tn), { key: 12 })) : z("", !0),
|
|
2552
|
+
t.icon === "minus" ? (w(), j(y(en), { key: 13 })) : z("", !0),
|
|
2553
|
+
t.icon === "info" ? (w(), j(y(Qt), { key: 14 })) : z("", !0),
|
|
2554
|
+
t.icon === "audit" ? (w(), j(y(Et), { key: 15 })) : z("", !0),
|
|
2555
|
+
t.icon === "schedule" ? (w(), j(y(rn), { key: 16 })) : z("", !0),
|
|
2556
|
+
t.icon === "close" ? (w(), j(y(Lt), { key: 17 })) : z("", !0),
|
|
2557
|
+
t.icon === "stop" ? (w(), j(y(sn), { key: 18 })) : z("", !0),
|
|
2558
|
+
t.icon === "check" ? (w(), j(y(Rt), { key: 19 })) : z("", !0),
|
|
2559
|
+
t.icon === "setting" ? (w(), j(y(un), { key: 20 })) : z("", !0),
|
|
2560
|
+
t.icon === "menu" ? (w(), j(y(Kt), { key: 21 })) : z("", !0),
|
|
2561
|
+
t.icon === "pdf" ? (w(), j(y(Jt), { key: 22 })) : z("", !0),
|
|
2562
|
+
t.icon === "push" ? (w(), j(y(Ut), { key: 23 })) : z("", !0),
|
|
2563
|
+
t.icon === "upload" ? (w(), j(y(pn), { key: 24 })) : z("", !0),
|
|
2564
|
+
t.icon === "search" ? (w(), j(y(on), { key: 25 })) : z("", !0),
|
|
2565
|
+
t.icon === "sync" ? (w(), j(y(cn), { key: 26 })) : z("", !0),
|
|
2566
|
+
t.icon === "link" ? (w(), j(y(Xt), { key: 27 })) : z("", !0),
|
|
2567
|
+
!t.icon || t.icon === "" ? (w(), j(y(Zt), { key: 28 })) : z("", !0)
|
|
2568
2568
|
], 64));
|
|
2569
2569
|
}
|
|
2570
2570
|
});
|
|
@@ -2672,39 +2672,39 @@ function Fi() {
|
|
|
2672
2672
|
return function(n, a, l) {
|
|
2673
2673
|
var r = a.prototype, o = function(d) {
|
|
2674
2674
|
return d && (d.indexOf ? d : d.s);
|
|
2675
|
-
}, i = function(d,
|
|
2676
|
-
var O = d.name ? d : d.$locale(),
|
|
2677
|
-
return
|
|
2675
|
+
}, i = function(d, g, S, f, m) {
|
|
2676
|
+
var O = d.name ? d : d.$locale(), b = o(O[g]), v = o(O[S]), _ = b || v.map((function(P) {
|
|
2677
|
+
return P.slice(0, f);
|
|
2678
2678
|
}));
|
|
2679
|
-
if (!m) return
|
|
2680
|
-
var
|
|
2681
|
-
return
|
|
2682
|
-
return
|
|
2679
|
+
if (!m) return _;
|
|
2680
|
+
var h = O.weekStart;
|
|
2681
|
+
return _.map((function(P, D) {
|
|
2682
|
+
return _[(D + (h || 0)) % 7];
|
|
2683
2683
|
}));
|
|
2684
2684
|
}, u = function() {
|
|
2685
2685
|
return l.Ls[l.locale()];
|
|
2686
|
-
}, s = function(d,
|
|
2687
|
-
return d.formats[
|
|
2688
|
-
return
|
|
2686
|
+
}, s = function(d, g) {
|
|
2687
|
+
return d.formats[g] || (function(S) {
|
|
2688
|
+
return S.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(f, m, O) {
|
|
2689
2689
|
return m || O.slice(1);
|
|
2690
2690
|
}));
|
|
2691
|
-
})(d.formats[
|
|
2691
|
+
})(d.formats[g.toUpperCase()]);
|
|
2692
2692
|
}, p = function() {
|
|
2693
2693
|
var d = this;
|
|
2694
|
-
return { months: function(
|
|
2695
|
-
return
|
|
2696
|
-
}, monthsShort: function(
|
|
2697
|
-
return
|
|
2694
|
+
return { months: function(g) {
|
|
2695
|
+
return g ? g.format("MMMM") : i(d, "months");
|
|
2696
|
+
}, monthsShort: function(g) {
|
|
2697
|
+
return g ? g.format("MMM") : i(d, "monthsShort", "months", 3);
|
|
2698
2698
|
}, firstDayOfWeek: function() {
|
|
2699
2699
|
return d.$locale().weekStart || 0;
|
|
2700
|
-
}, weekdays: function(
|
|
2701
|
-
return
|
|
2702
|
-
}, weekdaysMin: function(
|
|
2703
|
-
return
|
|
2704
|
-
}, weekdaysShort: function(
|
|
2705
|
-
return
|
|
2706
|
-
}, longDateFormat: function(
|
|
2707
|
-
return s(d.$locale(),
|
|
2700
|
+
}, weekdays: function(g) {
|
|
2701
|
+
return g ? g.format("dddd") : i(d, "weekdays");
|
|
2702
|
+
}, weekdaysMin: function(g) {
|
|
2703
|
+
return g ? g.format("dd") : i(d, "weekdaysMin", "weekdays", 2);
|
|
2704
|
+
}, weekdaysShort: function(g) {
|
|
2705
|
+
return g ? g.format("ddd") : i(d, "weekdaysShort", "weekdays", 3);
|
|
2706
|
+
}, longDateFormat: function(g) {
|
|
2707
|
+
return s(d.$locale(), g);
|
|
2708
2708
|
}, meridiem: this.$locale().meridiem, ordinal: this.$locale().ordinal };
|
|
2709
2709
|
};
|
|
2710
2710
|
r.localeData = function() {
|
|
@@ -2723,8 +2723,8 @@ function Fi() {
|
|
|
2723
2723
|
return l.months();
|
|
2724
2724
|
}, monthsShort: function() {
|
|
2725
2725
|
return l.monthsShort();
|
|
2726
|
-
}, longDateFormat: function(
|
|
2727
|
-
return s(d,
|
|
2726
|
+
}, longDateFormat: function(g) {
|
|
2727
|
+
return s(d, g);
|
|
2728
2728
|
}, meridiem: d.meridiem, ordinal: d.ordinal };
|
|
2729
2729
|
}, l.months = function() {
|
|
2730
2730
|
return i(u(), "months");
|
|
@@ -2786,45 +2786,45 @@ const vt = /* @__PURE__ */ gl(Hi), Yi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
2786
2786
|
{ label: "近一年", value: [T().add(-12, r)] },
|
|
2787
2787
|
{ label: "近两年", value: [T().add(-24, r)] },
|
|
2788
2788
|
{ label: "近三年", value: [T().add(-36, r)] }
|
|
2789
|
-
],
|
|
2789
|
+
], g = [
|
|
2790
2790
|
{ label: "本年", value: [T().add(0, r)] },
|
|
2791
2791
|
{ label: "近一年", value: [T().add(-1, r)] },
|
|
2792
2792
|
{ label: "近两年", value: [T().add(-2, r)] },
|
|
2793
2793
|
{ label: "近三年", value: [T().add(-3, r)] },
|
|
2794
2794
|
{ label: "近五年", value: [T().add(-5, r)] }
|
|
2795
|
-
],
|
|
2796
|
-
le("日期区间选值",
|
|
2795
|
+
], S = $(l === "year" ? g : l === "month" ? d : p), f = n, m = (h, P) => {
|
|
2796
|
+
le("日期区间选值", P), P && P[0] == "" && P[1] == "" ? f("update:value", null) : f("update:value", P);
|
|
2797
2797
|
}, O = () => {
|
|
2798
|
-
let
|
|
2799
|
-
return s.value && s.value[0] && (
|
|
2800
|
-
},
|
|
2801
|
-
const
|
|
2802
|
-
typeof
|
|
2803
|
-
c(
|
|
2798
|
+
let h = null, P = null;
|
|
2799
|
+
return s.value && s.value[0] && (h = T(s.value[0]).format(o)), s.value && s.value[1] && (P = T(s.value[1]).format(o)), !h && !P ? null : [h, P];
|
|
2800
|
+
}, b = (h) => {
|
|
2801
|
+
const P = h ? h[0] : null, D = h ? h[1] : null;
|
|
2802
|
+
typeof P == "number" || typeof D == "number" ? s.value = [
|
|
2803
|
+
c(P) ? T().add(P, r) : null,
|
|
2804
2804
|
c(D) ? T().add(D, r) : null
|
|
2805
|
-
] : s.value = [c(
|
|
2806
|
-
},
|
|
2807
|
-
c(a.defaultValue) ?
|
|
2808
|
-
},
|
|
2805
|
+
] : s.value = [c(P) ? T(P) : null, c(D) ? T(D) : null], f("update:value", O());
|
|
2806
|
+
}, v = () => {
|
|
2807
|
+
c(a.defaultValue) ? b([a.defaultValue, null]) : b(null);
|
|
2808
|
+
}, _ = () => "dateRange";
|
|
2809
2809
|
return oe(() => {
|
|
2810
|
-
|
|
2810
|
+
v();
|
|
2811
2811
|
}), t({
|
|
2812
|
-
setValue:
|
|
2812
|
+
setValue: b,
|
|
2813
2813
|
getValue: O,
|
|
2814
|
-
resetValue:
|
|
2815
|
-
getRefType:
|
|
2816
|
-
}), (
|
|
2814
|
+
resetValue: v,
|
|
2815
|
+
getRefType: _
|
|
2816
|
+
}), (h, P) => {
|
|
2817
2817
|
const D = L("a-range-picker");
|
|
2818
2818
|
return w(), j(D, {
|
|
2819
|
-
value:
|
|
2820
|
-
"onUpdate:value":
|
|
2819
|
+
value: y(s),
|
|
2820
|
+
"onUpdate:value": P[0] || (P[0] = (F) => ft(s) ? s.value = F : s = F),
|
|
2821
2821
|
onChange: m,
|
|
2822
|
-
presets:
|
|
2823
|
-
locale:
|
|
2822
|
+
presets: S.value,
|
|
2823
|
+
locale: y(Ye),
|
|
2824
2824
|
allowEmpty: [!0, !0],
|
|
2825
|
-
format:
|
|
2826
|
-
picker:
|
|
2827
|
-
size:
|
|
2825
|
+
format: y(o),
|
|
2826
|
+
picker: y(l),
|
|
2827
|
+
size: y(u),
|
|
2828
2828
|
style: { width: "100%" }
|
|
2829
2829
|
}, null, 8, ["value", "presets", "locale", "format", "picker", "size"]);
|
|
2830
2830
|
};
|
|
@@ -2852,27 +2852,27 @@ const vt = /* @__PURE__ */ gl(Hi), Yi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
2852
2852
|
}, d = () => {
|
|
2853
2853
|
let f = null;
|
|
2854
2854
|
return s.value && (f = T(s.value).format(i)), f || null;
|
|
2855
|
-
},
|
|
2855
|
+
}, g = (f) => {
|
|
2856
2856
|
typeof f == "number" ? s.value = c(f) ? T().add(f, o) : null : s.value = c(f) ? T(f) : null, u("update:value", d());
|
|
2857
|
-
},
|
|
2858
|
-
c(a.defaultValue) ?
|
|
2857
|
+
}, S = () => {
|
|
2858
|
+
c(a.defaultValue) ? g(a.defaultValue) : g(null);
|
|
2859
2859
|
};
|
|
2860
2860
|
return oe(() => {
|
|
2861
|
-
|
|
2861
|
+
S();
|
|
2862
2862
|
}), t({
|
|
2863
|
-
setValue:
|
|
2863
|
+
setValue: g,
|
|
2864
2864
|
getValue: d,
|
|
2865
|
-
resetValue:
|
|
2865
|
+
resetValue: S
|
|
2866
2866
|
}), (f, m) => {
|
|
2867
2867
|
const O = L("a-date-picker");
|
|
2868
2868
|
return w(), j(O, {
|
|
2869
|
-
value:
|
|
2870
|
-
"onUpdate:value": m[0] || (m[0] = (
|
|
2869
|
+
value: y(s),
|
|
2870
|
+
"onUpdate:value": m[0] || (m[0] = (b) => ft(s) ? s.value = b : s = b),
|
|
2871
2871
|
onChange: p,
|
|
2872
|
-
locale:
|
|
2873
|
-
format:
|
|
2874
|
-
picker:
|
|
2875
|
-
size:
|
|
2872
|
+
locale: y(Ye),
|
|
2873
|
+
format: y(i),
|
|
2874
|
+
picker: y(o),
|
|
2875
|
+
size: y(r),
|
|
2876
2876
|
allowClear: a.clearable,
|
|
2877
2877
|
style: { width: "100%" }
|
|
2878
2878
|
}, null, 8, ["value", "locale", "format", "picker", "size", "allowClear"]);
|
|
@@ -2897,24 +2897,24 @@ const vt = /* @__PURE__ */ gl(Hi), Yi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
2897
2897
|
};
|
|
2898
2898
|
return t({
|
|
2899
2899
|
getValue: () => o.value,
|
|
2900
|
-
setValue: (
|
|
2901
|
-
o.value =
|
|
2900
|
+
setValue: (S) => {
|
|
2901
|
+
o.value = S, u("update:value", o.value);
|
|
2902
2902
|
},
|
|
2903
2903
|
resetValue: () => {
|
|
2904
2904
|
o.value = a.defaultValue || "", u("update:value", o.value);
|
|
2905
2905
|
}
|
|
2906
2906
|
}), oe(() => {
|
|
2907
2907
|
u("update:value", o.value);
|
|
2908
|
-
}), (
|
|
2908
|
+
}), (S, f) => {
|
|
2909
2909
|
const m = L("a-input");
|
|
2910
2910
|
return w(), j(m, {
|
|
2911
2911
|
value: o.value,
|
|
2912
2912
|
"onUpdate:value": f[0] || (f[0] = (O) => o.value = O),
|
|
2913
|
-
placeholder:
|
|
2913
|
+
placeholder: y(i),
|
|
2914
2914
|
disabled: a.disabled,
|
|
2915
2915
|
type: a.inputType,
|
|
2916
2916
|
onChange: s,
|
|
2917
|
-
size:
|
|
2917
|
+
size: y(r),
|
|
2918
2918
|
style: { width: "100%" }
|
|
2919
2919
|
}, null, 8, ["value", "placeholder", "disabled", "type", "size"]);
|
|
2920
2920
|
};
|
|
@@ -2935,13 +2935,13 @@ const vt = /* @__PURE__ */ gl(Hi), Yi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
2935
2935
|
},
|
|
2936
2936
|
emits: ["update:value"],
|
|
2937
2937
|
setup(e, { expose: t, emit: n }) {
|
|
2938
|
-
const a = e, l = ge(ve), r = l?.application || "", o = l?.ctxPath || "", i = l?.requestDictUrl || "", u = je(l?.size), s = $(a.multiple ? [] : null), p = n, d = $([]),
|
|
2939
|
-
let
|
|
2940
|
-
return !
|
|
2941
|
-
},
|
|
2938
|
+
const a = e, l = ge(ve), r = l?.application || "", o = l?.ctxPath || "", i = l?.requestDictUrl || "", u = je(l?.size), s = $(a.multiple ? [] : null), p = n, d = $([]), g = async () => {
|
|
2939
|
+
let v = a.request.requestUrl;
|
|
2940
|
+
return !v && r && (v = i), v ? (v = ne(o, v), await gn(r, v, a.request)) : (le("下拉框插槽未获取到请求地址"), []);
|
|
2941
|
+
}, S = (v, _) => _.label.toLowerCase().indexOf(v.toLowerCase()) >= 0, f = () => {
|
|
2942
2942
|
p("update:value", s.value);
|
|
2943
|
-
}, m = () => s.value, O = (
|
|
2944
|
-
s.value =
|
|
2943
|
+
}, m = () => s.value, O = (v) => {
|
|
2944
|
+
s.value = v, p("update:value", s.value);
|
|
2945
2945
|
};
|
|
2946
2946
|
return t({
|
|
2947
2947
|
getValue: m,
|
|
@@ -2950,15 +2950,15 @@ const vt = /* @__PURE__ */ gl(Hi), Yi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
2950
2950
|
a.multiple ? O(a.defaultValue || []) : O(a.defaultValue || null);
|
|
2951
2951
|
}
|
|
2952
2952
|
}), oe(() => {
|
|
2953
|
-
p("update:value", s.value),
|
|
2954
|
-
d.value =
|
|
2953
|
+
p("update:value", s.value), g().then((v) => {
|
|
2954
|
+
d.value = v;
|
|
2955
2955
|
});
|
|
2956
|
-
}), (
|
|
2957
|
-
const
|
|
2956
|
+
}), (v, _) => {
|
|
2957
|
+
const h = L("a-select");
|
|
2958
2958
|
return w(), I("div", Ki, [
|
|
2959
|
-
q(
|
|
2959
|
+
q(h, {
|
|
2960
2960
|
value: s.value,
|
|
2961
|
-
"onUpdate:value":
|
|
2961
|
+
"onUpdate:value": _[0] || (_[0] = (P) => s.value = P),
|
|
2962
2962
|
onChange: f,
|
|
2963
2963
|
placeholder: "--请选择--",
|
|
2964
2964
|
allowClear: a.clearable,
|
|
@@ -2966,11 +2966,11 @@ const vt = /* @__PURE__ */ gl(Hi), Yi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
2966
2966
|
"max-tag-count": a.maxTagCount,
|
|
2967
2967
|
options: d.value,
|
|
2968
2968
|
"show-search": a.filterable,
|
|
2969
|
-
"filter-option":
|
|
2969
|
+
"filter-option": S,
|
|
2970
2970
|
defaultActiveFirstOption: !a.multiple,
|
|
2971
2971
|
autoClearSearchValue: !a.filterable,
|
|
2972
2972
|
disabled: a.disabled,
|
|
2973
|
-
size:
|
|
2973
|
+
size: y(u),
|
|
2974
2974
|
style: { width: "100%" }
|
|
2975
2975
|
}, null, 8, ["value", "allowClear", "mode", "max-tag-count", "options", "show-search", "defaultActiveFirstOption", "autoClearSearchValue", "disabled", "size"])
|
|
2976
2976
|
]);
|
|
@@ -2995,58 +2995,58 @@ const vt = /* @__PURE__ */ gl(Hi), Yi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
2995
2995
|
},
|
|
2996
2996
|
emits: ["update:value"],
|
|
2997
2997
|
setup(e, { expose: t, emit: n }) {
|
|
2998
|
-
const a = e, l = ge(ve), r = l?.ctxPath || "", o = je(l?.size), i = "请输入" + a.title + "搜索", u = $(""), s = $(""), p = $([]), d = n,
|
|
2999
|
-
if (p.value = [],
|
|
3000
|
-
|
|
3001
|
-
const
|
|
3002
|
-
searchValue: ke(
|
|
2998
|
+
const a = e, l = ge(ve), r = l?.ctxPath || "", o = je(l?.size), i = "请输入" + a.title + "搜索", u = $(""), s = $(""), p = $([]), d = n, g = $(!1), S = async (h) => {
|
|
2999
|
+
if (p.value = [], h) {
|
|
3000
|
+
g.value = !0;
|
|
3001
|
+
const P = {
|
|
3002
|
+
searchValue: ke(h)
|
|
3003
3003
|
}, D = await Ee(ne(r, a.requestUrl), {
|
|
3004
3004
|
...a.requestParams,
|
|
3005
|
-
...
|
|
3005
|
+
...P
|
|
3006
3006
|
});
|
|
3007
|
-
return
|
|
3007
|
+
return g.value = !1, D;
|
|
3008
3008
|
} else
|
|
3009
3009
|
return [];
|
|
3010
|
-
}, f = jt((
|
|
3011
|
-
|
|
3012
|
-
p.value =
|
|
3010
|
+
}, f = jt((h) => {
|
|
3011
|
+
S(h).then((P) => {
|
|
3012
|
+
p.value = P;
|
|
3013
3013
|
});
|
|
3014
|
-
}, 500), m = (
|
|
3015
|
-
u.value =
|
|
3016
|
-
}, O = () => s.value,
|
|
3017
|
-
u.value =
|
|
3014
|
+
}, 500), m = (h) => {
|
|
3015
|
+
u.value = h, d("update:value", h);
|
|
3016
|
+
}, O = () => s.value, b = () => u.value, v = (h, P = null) => {
|
|
3017
|
+
u.value = h, s.value = P;
|
|
3018
3018
|
let D = p.value.filter((F) => F.value === u.value);
|
|
3019
|
-
D.length === 1 ? s.value = D[0].label :
|
|
3019
|
+
D.length === 1 ? s.value = D[0].label : S(h).then((F) => {
|
|
3020
3020
|
p.value = F;
|
|
3021
|
-
}), d("update:value",
|
|
3021
|
+
}), d("update:value", h);
|
|
3022
3022
|
};
|
|
3023
3023
|
return t({
|
|
3024
3024
|
getName: O,
|
|
3025
|
-
getValue:
|
|
3026
|
-
setValue:
|
|
3025
|
+
getValue: b,
|
|
3026
|
+
setValue: v,
|
|
3027
3027
|
resetValue: () => {
|
|
3028
|
-
|
|
3028
|
+
v(a.defaultValue, a.defaultName);
|
|
3029
3029
|
}
|
|
3030
|
-
}), (
|
|
3030
|
+
}), (h, P) => {
|
|
3031
3031
|
const D = L("a-spin"), F = L("a-select");
|
|
3032
3032
|
return w(), I("div", tu, [
|
|
3033
3033
|
q(F, {
|
|
3034
3034
|
value: u.value,
|
|
3035
|
-
"onUpdate:value":
|
|
3035
|
+
"onUpdate:value": P[0] || (P[0] = (U) => u.value = U),
|
|
3036
3036
|
placeholder: i,
|
|
3037
3037
|
disabled: a.disabled,
|
|
3038
3038
|
"filter-option": !1,
|
|
3039
3039
|
options: p.value,
|
|
3040
|
-
size:
|
|
3040
|
+
size: y(o),
|
|
3041
3041
|
"default-active-first-option": !1,
|
|
3042
3042
|
"show-arrow": !1,
|
|
3043
3043
|
onChange: m,
|
|
3044
|
-
onSearch:
|
|
3044
|
+
onSearch: y(f),
|
|
3045
3045
|
"allow-clear": "",
|
|
3046
3046
|
"show-search": "",
|
|
3047
3047
|
style: { width: "100%" }
|
|
3048
3048
|
}, we({ _: 2 }, [
|
|
3049
|
-
|
|
3049
|
+
g.value ? {
|
|
3050
3050
|
name: "notFoundContent",
|
|
3051
3051
|
fn: B(() => [
|
|
3052
3052
|
q(D, { size: "small" })
|
|
@@ -3076,41 +3076,41 @@ const vt = /* @__PURE__ */ gl(Hi), Yi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
3076
3076
|
},
|
|
3077
3077
|
emits: ["update:value"],
|
|
3078
3078
|
setup(e, { expose: t, emit: n }) {
|
|
3079
|
-
const a = e, l = ge(ve), r = l?.ctxPath || "", o = je(l?.size), i = "请输入" + a.title + "搜索", u = $(a.multiple ? [] : null), s = $(""), p = $([]), d = $([]),
|
|
3080
|
-
|
|
3081
|
-
}, O = () => s.value,
|
|
3082
|
-
u.value =
|
|
3083
|
-
let
|
|
3079
|
+
const a = e, l = ge(ve), r = l?.ctxPath || "", o = je(l?.size), i = "请输入" + a.title + "搜索", u = $(a.multiple ? [] : null), s = $(""), p = $([]), d = $([]), g = n, S = (h, P) => P.label.toLowerCase().indexOf(ke(h).toLowerCase()) >= 0, f = async () => await Ee(ne(r, a.requestUrl), a.requestParams), m = (h) => {
|
|
3080
|
+
g("update:value", h);
|
|
3081
|
+
}, O = () => s.value, b = () => u.value, v = (h) => {
|
|
3082
|
+
u.value = h, g("update:value", u.value);
|
|
3083
|
+
let P = d.value.filter((D) => D.value === u.value);
|
|
3084
3084
|
if (a.multiple) {
|
|
3085
3085
|
let D = "";
|
|
3086
|
-
|
|
3086
|
+
P.forEach((F) => {
|
|
3087
3087
|
D += F.label + ",";
|
|
3088
3088
|
}), s.value = D;
|
|
3089
3089
|
} else
|
|
3090
|
-
|
|
3090
|
+
P.length === 1 && (s.value = P[0].label);
|
|
3091
3091
|
};
|
|
3092
3092
|
return t({
|
|
3093
3093
|
getName: O,
|
|
3094
|
-
getValue:
|
|
3095
|
-
setValue:
|
|
3094
|
+
getValue: b,
|
|
3095
|
+
setValue: v,
|
|
3096
3096
|
resetValue: () => {
|
|
3097
|
-
a.multiple ?
|
|
3097
|
+
a.multiple ? v(a.defaultValue || []) : v(a.defaultValue || null);
|
|
3098
3098
|
}
|
|
3099
|
-
}), f().then((
|
|
3100
|
-
d.value =
|
|
3101
|
-
}), (
|
|
3099
|
+
}), f().then((h) => {
|
|
3100
|
+
d.value = h, p.value = h;
|
|
3101
|
+
}), (h, P) => {
|
|
3102
3102
|
const D = L("a-select");
|
|
3103
3103
|
return w(), I("div", au, [
|
|
3104
3104
|
q(D, {
|
|
3105
3105
|
value: u.value,
|
|
3106
|
-
"onUpdate:value":
|
|
3106
|
+
"onUpdate:value": P[0] || (P[0] = (F) => u.value = F),
|
|
3107
3107
|
placeholder: i,
|
|
3108
3108
|
disabled: a.disabled,
|
|
3109
3109
|
mode: a.multiple ? "multiple" : "",
|
|
3110
3110
|
defaultActiveFirstOption: !a.multiple,
|
|
3111
|
-
"filter-option":
|
|
3111
|
+
"filter-option": S,
|
|
3112
3112
|
options: p.value,
|
|
3113
|
-
size:
|
|
3113
|
+
size: y(o),
|
|
3114
3114
|
onChange: m,
|
|
3115
3115
|
"allow-clear": "",
|
|
3116
3116
|
"show-search": "",
|
|
@@ -3142,42 +3142,42 @@ const vt = /* @__PURE__ */ gl(Hi), Yi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
3142
3142
|
},
|
|
3143
3143
|
emits: ["update:value", "change"],
|
|
3144
3144
|
setup(e, { expose: t, emit: n }) {
|
|
3145
|
-
const a = e, l = ge(ve), r = l?.application || "", o = l?.ctxPath || "", i = je(l?.size), u = "请输入" + a.title + "搜索", s = a.fieldNames.label, p = a.fieldNames.value, d = $([]),
|
|
3146
|
-
const
|
|
3145
|
+
const a = e, l = ge(ve), r = l?.application || "", o = l?.ctxPath || "", i = je(l?.size), u = "请输入" + a.title + "搜索", s = a.fieldNames.label, p = a.fieldNames.value, d = $([]), g = $([]), S = async () => {
|
|
3146
|
+
const P = await pl(
|
|
3147
3147
|
ne(o, a.requestUrl),
|
|
3148
3148
|
a.requestParams,
|
|
3149
3149
|
r,
|
|
3150
3150
|
"CASCADER_" + a.cacheKey
|
|
3151
3151
|
);
|
|
3152
|
-
|
|
3153
|
-
}, f = n, m = (
|
|
3154
|
-
c(D) ? (f("update:value",
|
|
3155
|
-
}, O = (
|
|
3156
|
-
d.value =
|
|
3157
|
-
},
|
|
3152
|
+
g.value = P;
|
|
3153
|
+
}, f = n, m = (P, D) => {
|
|
3154
|
+
c(D) ? (f("update:value", P[P.length - 1]), f("change", D[D.length - 1])) : (f("update:value", null), f("change", null));
|
|
3155
|
+
}, O = (P, D) => D.some((F) => F[s].indexOf(P) > -1), b = () => g.value.filter((D) => D[p] === d.value[d.value.length - 1])[s], v = () => d.value, _ = (P) => {
|
|
3156
|
+
d.value = P, f("update:value", P);
|
|
3157
|
+
}, h = () => {
|
|
3158
3158
|
d.value = null, f("update:value", null), f("change", null);
|
|
3159
3159
|
};
|
|
3160
3160
|
return oe(() => {
|
|
3161
|
-
|
|
3161
|
+
S();
|
|
3162
3162
|
}), t({
|
|
3163
|
-
getName:
|
|
3164
|
-
getValue:
|
|
3165
|
-
setValue:
|
|
3166
|
-
resetValue:
|
|
3167
|
-
}), (
|
|
3163
|
+
getName: b,
|
|
3164
|
+
getValue: v,
|
|
3165
|
+
setValue: _,
|
|
3166
|
+
resetValue: h
|
|
3167
|
+
}), (P, D) => {
|
|
3168
3168
|
const F = L("a-cascader");
|
|
3169
3169
|
return w(), I("div", ru, [
|
|
3170
3170
|
q(F, {
|
|
3171
3171
|
value: d.value,
|
|
3172
3172
|
"onUpdate:value": D[0] || (D[0] = (U) => d.value = U),
|
|
3173
|
-
options:
|
|
3173
|
+
options: g.value,
|
|
3174
3174
|
fieldNames: a.fieldNames,
|
|
3175
3175
|
"show-search": { filter: O },
|
|
3176
3176
|
disabled: a.disabled,
|
|
3177
3177
|
clearable: a.clearable,
|
|
3178
3178
|
changeOnSelect: a.changeOnSelect,
|
|
3179
3179
|
placeholder: u,
|
|
3180
|
-
size:
|
|
3180
|
+
size: y(i),
|
|
3181
3181
|
onChange: m,
|
|
3182
3182
|
style: { width: "100%" }
|
|
3183
3183
|
}, null, 8, ["value", "options", "fieldNames", "show-search", "disabled", "clearable", "changeOnSelect", "size"])
|
|
@@ -3262,35 +3262,35 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3262
3262
|
},
|
|
3263
3263
|
emits: ["cancel", "submit"],
|
|
3264
3264
|
setup(e, { emit: t }) {
|
|
3265
|
-
const n = e, a = $("sag-vxe-page-dialog-default " + (n.mountainTop ? "" : "sag-dialog-wrap")), l = (
|
|
3265
|
+
const n = e, a = $("sag-vxe-page-dialog-default " + (n.mountainTop ? "" : "sag-dialog-wrap")), l = (b) => n.mountainTop ? document.body : A.targetModal.getDialogContainer != null && typeof A.targetModal.getDialogContainer == "function" ? A.targetModal.getDialogContainer(b) : b.parentNode, r = Bl(() => n.componentVue && typeof n.componentUrl == "string" ? du(n.componentUrl) : n.componentUrl), o = n.componentVue ? "" : n.componentUrl, i = n.mountainTop ? "calc(100vh - 88px)" : "calc(100vh - 188px)", u = t, s = () => {
|
|
3266
3266
|
u("cancel");
|
|
3267
|
-
}, p = (
|
|
3268
|
-
u("submit",
|
|
3269
|
-
}, d = $(null),
|
|
3267
|
+
}, p = (b) => {
|
|
3268
|
+
u("submit", b);
|
|
3269
|
+
}, d = $(null), g = te({
|
|
3270
3270
|
width: n.maximize ? "100%" : n.width,
|
|
3271
3271
|
height: n.maximize ? i : n.height,
|
|
3272
3272
|
maxZoomIcon: n.maximize ? "vxe-icon-maximize" : "vxe-icon-square"
|
|
3273
|
-
}),
|
|
3274
|
-
let
|
|
3275
|
-
|
|
3273
|
+
}), S = () => {
|
|
3274
|
+
let b = !d.value.fullScreen;
|
|
3275
|
+
b ? (g.maxZoomIcon = "vxe-icon-maximize", g.width = "100%", g.height = i) : (g.maxZoomIcon = "vxe-icon-square", g.width = n.width, g.height = n.height), d.value.fullScreen = b;
|
|
3276
3276
|
}, f = "vue_iframe_" + Math.round(Math.random() * 1e8), m = $(), O = () => {
|
|
3277
|
-
console.log("iframe加载完毕", f), m.value.contentWindow.addEventListener("closeSagDialogModal", function(
|
|
3278
|
-
console.log("iframe关闭触发",
|
|
3277
|
+
console.log("iframe加载完毕", f), m.value.contentWindow.addEventListener("closeSagDialogModal", function(b) {
|
|
3278
|
+
console.log("iframe关闭触发", b), s();
|
|
3279
3279
|
});
|
|
3280
3280
|
};
|
|
3281
3281
|
return oe(() => {
|
|
3282
3282
|
le("SagVxeDialog弹出参数", n), n.maximize && (d.value.fullScreen = !0);
|
|
3283
|
-
}), (
|
|
3284
|
-
const
|
|
3283
|
+
}), (b, v) => {
|
|
3284
|
+
const _ = L("vxe-button"), h = L("a-modal");
|
|
3285
3285
|
return w(), I("div", fu, [
|
|
3286
|
-
q(
|
|
3286
|
+
q(h, {
|
|
3287
3287
|
ref_key: "gridModal",
|
|
3288
3288
|
ref: d,
|
|
3289
3289
|
open: n.visible,
|
|
3290
3290
|
"get-container": l,
|
|
3291
|
-
width:
|
|
3291
|
+
width: g.width,
|
|
3292
3292
|
"body-style": {
|
|
3293
|
-
height:
|
|
3293
|
+
height: g.height,
|
|
3294
3294
|
maxHeight: "initial",
|
|
3295
3295
|
minHeight: "300px",
|
|
3296
3296
|
overflowY: "auto"
|
|
@@ -3306,10 +3306,10 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3306
3306
|
title: B(() => [
|
|
3307
3307
|
K("span", pu, ae(n.title), 1),
|
|
3308
3308
|
K("span", mu, [
|
|
3309
|
-
q(
|
|
3309
|
+
q(_, {
|
|
3310
3310
|
mode: "text",
|
|
3311
|
-
icon:
|
|
3312
|
-
onClick:
|
|
3311
|
+
icon: g.maxZoomIcon,
|
|
3312
|
+
onClick: S
|
|
3313
3313
|
}, null, 8, ["icon"])
|
|
3314
3314
|
])
|
|
3315
3315
|
]),
|
|
@@ -3323,7 +3323,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3323
3323
|
ref_key: "iframeRef",
|
|
3324
3324
|
ref: m,
|
|
3325
3325
|
id: f,
|
|
3326
|
-
src:
|
|
3326
|
+
src: y(o),
|
|
3327
3327
|
onLoad: O,
|
|
3328
3328
|
style: { width: "100%", height: "100%", border: "0 none", display: "block" }
|
|
3329
3329
|
}, null, 40, gu))
|
|
@@ -3346,10 +3346,10 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3346
3346
|
},
|
|
3347
3347
|
emits: ["update:value"],
|
|
3348
3348
|
setup(e, { expose: t, emit: n }) {
|
|
3349
|
-
const a = e, l = ge(ve), r = $(null), o = X(a.placeholder, "请输入" + a.title), i = n, u = (
|
|
3350
|
-
p(
|
|
3351
|
-
}, s = () => r.value, p = (
|
|
3352
|
-
r.value =
|
|
3349
|
+
const a = e, l = ge(ve), r = $(null), o = X(a.placeholder, "请输入" + a.title), i = n, u = (g) => {
|
|
3350
|
+
p(g.value);
|
|
3351
|
+
}, s = () => r.value, p = (g) => {
|
|
3352
|
+
r.value = g, i("update:value", r.value);
|
|
3353
3353
|
};
|
|
3354
3354
|
return t({
|
|
3355
3355
|
getValue: s,
|
|
@@ -3359,13 +3359,13 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3359
3359
|
}
|
|
3360
3360
|
}), oe(() => {
|
|
3361
3361
|
i("update:value", s());
|
|
3362
|
-
}), (
|
|
3362
|
+
}), (g, S) => {
|
|
3363
3363
|
const f = L("vxe-input", !0);
|
|
3364
3364
|
return w(), j(f, {
|
|
3365
3365
|
"model-value": r.value,
|
|
3366
|
-
placeholder:
|
|
3366
|
+
placeholder: y(o),
|
|
3367
3367
|
disabled: a.disabled,
|
|
3368
|
-
size:
|
|
3368
|
+
size: y(l)?.size,
|
|
3369
3369
|
onChange: u,
|
|
3370
3370
|
style: { width: "100%" }
|
|
3371
3371
|
}, null, 8, ["model-value", "placeholder", "disabled", "size"]);
|
|
@@ -3391,7 +3391,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3391
3391
|
},
|
|
3392
3392
|
emits: ["update:value"],
|
|
3393
3393
|
setup(e, { expose: t, emit: n }) {
|
|
3394
|
-
const a = e, l = ge(ve), r = l?.ctxPath || "", o = l?.application || "", i = l?.requestDictUrl || "", u = "请输入" + a.title + "搜索", s = $(""), p = $(""), d = $([]),
|
|
3394
|
+
const a = e, l = ge(ve), r = l?.ctxPath || "", o = l?.application || "", i = l?.requestDictUrl || "", u = "请输入" + a.title + "搜索", s = $(""), p = $(""), d = $([]), g = n, S = te({
|
|
3395
3395
|
multiple: a.multiple,
|
|
3396
3396
|
filterable: a.filterable,
|
|
3397
3397
|
clearable: a.clearable,
|
|
@@ -3399,37 +3399,37 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3399
3399
|
transfer: a.transfer,
|
|
3400
3400
|
placeholder: a.filterable ? u : "",
|
|
3401
3401
|
options: [],
|
|
3402
|
-
filterMethod({ searchValue:
|
|
3403
|
-
return
|
|
3402
|
+
filterMethod({ searchValue: h, option: P }) {
|
|
3403
|
+
return P.label.toLowerCase().indexOf(ke(h).toLowerCase()) >= 0;
|
|
3404
3404
|
}
|
|
3405
3405
|
}), f = async () => {
|
|
3406
|
-
let
|
|
3407
|
-
return !
|
|
3408
|
-
}, m = ({ value:
|
|
3409
|
-
|
|
3410
|
-
}, O = () => p.value,
|
|
3411
|
-
s.value =
|
|
3412
|
-
let
|
|
3413
|
-
|
|
3406
|
+
let h = a.request.requestUrl;
|
|
3407
|
+
return !h && o && (h = i), h ? (h = ne(r, h), await gn(o, h, a.request)) : (le("下拉框插槽未获取到请求地址"), []);
|
|
3408
|
+
}, m = ({ value: h }) => {
|
|
3409
|
+
g("update:value", h);
|
|
3410
|
+
}, O = () => p.value, b = () => s.value, v = (h) => {
|
|
3411
|
+
s.value = h, g("update:value", s.value);
|
|
3412
|
+
let P = d.value.filter((D) => D.value === s.value);
|
|
3413
|
+
P.length === 1 && (p.value = P[0].label);
|
|
3414
3414
|
};
|
|
3415
3415
|
return t({
|
|
3416
3416
|
getName: O,
|
|
3417
|
-
getValue:
|
|
3418
|
-
setValue:
|
|
3417
|
+
getValue: b,
|
|
3418
|
+
setValue: v,
|
|
3419
3419
|
resetValue: () => {
|
|
3420
|
-
|
|
3420
|
+
v(a.defaultValue);
|
|
3421
3421
|
}
|
|
3422
3422
|
}), oe(() => {
|
|
3423
|
-
f().then((
|
|
3424
|
-
!a.multiple && a.selectAll && (
|
|
3423
|
+
f().then((h) => {
|
|
3424
|
+
!a.multiple && a.selectAll && (h = [{ label: "--全部--", value: "" }].concat(h)), d.value = h, S.options = h;
|
|
3425
3425
|
});
|
|
3426
|
-
}), (
|
|
3426
|
+
}), (h, P) => {
|
|
3427
3427
|
const D = L("vxe-select", !0);
|
|
3428
3428
|
return w(), j(D, ee({
|
|
3429
3429
|
modelValue: s.value,
|
|
3430
|
-
"onUpdate:modelValue":
|
|
3431
|
-
},
|
|
3432
|
-
size:
|
|
3430
|
+
"onUpdate:modelValue": P[0] || (P[0] = (F) => s.value = F)
|
|
3431
|
+
}, S, {
|
|
3432
|
+
size: y(l)?.size,
|
|
3433
3433
|
onChange: m,
|
|
3434
3434
|
style: { width: "100%" }
|
|
3435
3435
|
}), null, 16, ["modelValue", "size"]);
|
|
@@ -3464,29 +3464,29 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3464
3464
|
options: [],
|
|
3465
3465
|
remoteConfig: {
|
|
3466
3466
|
autoLoad: !1,
|
|
3467
|
-
async queryMethod({ searchValue:
|
|
3468
|
-
const
|
|
3469
|
-
d.options =
|
|
3467
|
+
async queryMethod({ searchValue: v }) {
|
|
3468
|
+
const _ = await g(v);
|
|
3469
|
+
d.options = _, s.value = _;
|
|
3470
3470
|
}
|
|
3471
3471
|
}
|
|
3472
|
-
}),
|
|
3473
|
-
if (s.value = [],
|
|
3474
|
-
const
|
|
3475
|
-
searchValue: ke(
|
|
3472
|
+
}), g = async (v) => {
|
|
3473
|
+
if (s.value = [], v) {
|
|
3474
|
+
const _ = {
|
|
3475
|
+
searchValue: ke(v)
|
|
3476
3476
|
};
|
|
3477
3477
|
return await Ee(ne(r, a.requestUrl), {
|
|
3478
3478
|
...a.requestParams,
|
|
3479
|
-
...
|
|
3479
|
+
..._
|
|
3480
3480
|
});
|
|
3481
3481
|
} else
|
|
3482
3482
|
return [];
|
|
3483
|
-
},
|
|
3484
|
-
p("update:value",
|
|
3485
|
-
}, f = () => u.value, m = () => i.value, O = (
|
|
3486
|
-
i.value =
|
|
3487
|
-
let
|
|
3488
|
-
|
|
3489
|
-
s.value =
|
|
3483
|
+
}, S = ({ value: v }) => {
|
|
3484
|
+
p("update:value", v);
|
|
3485
|
+
}, f = () => u.value, m = () => i.value, O = (v) => {
|
|
3486
|
+
i.value = v;
|
|
3487
|
+
let _ = s.value.filter((h) => h.value === i.value);
|
|
3488
|
+
_.length === 1 ? u.value = _[0].label : g(v).then((h) => {
|
|
3489
|
+
s.value = h;
|
|
3490
3490
|
}), p("update:value", i.value);
|
|
3491
3491
|
};
|
|
3492
3492
|
return t({
|
|
@@ -3496,14 +3496,14 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3496
3496
|
resetValue: () => {
|
|
3497
3497
|
O(a.defaultValue);
|
|
3498
3498
|
}
|
|
3499
|
-
}), (
|
|
3500
|
-
const
|
|
3501
|
-
return w(), j(
|
|
3499
|
+
}), (v, _) => {
|
|
3500
|
+
const h = L("vxe-select");
|
|
3501
|
+
return w(), j(h, ee({
|
|
3502
3502
|
modelValue: i.value,
|
|
3503
|
-
"onUpdate:modelValue":
|
|
3503
|
+
"onUpdate:modelValue": _[0] || (_[0] = (P) => i.value = P)
|
|
3504
3504
|
}, d, {
|
|
3505
|
-
size:
|
|
3506
|
-
onChange:
|
|
3505
|
+
size: y(l)?.size,
|
|
3506
|
+
onChange: S,
|
|
3507
3507
|
style: { width: "100%" }
|
|
3508
3508
|
}), null, 16, ["modelValue", "size"]);
|
|
3509
3509
|
};
|
|
@@ -3534,15 +3534,15 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3534
3534
|
transfer: a.transfer,
|
|
3535
3535
|
placeholder: o,
|
|
3536
3536
|
options: [],
|
|
3537
|
-
filterMethod({ searchValue:
|
|
3538
|
-
return
|
|
3537
|
+
filterMethod({ searchValue: v, option: _ }) {
|
|
3538
|
+
return _.label.toLowerCase().indexOf(ke(v).toLowerCase()) >= 0;
|
|
3539
3539
|
}
|
|
3540
|
-
}),
|
|
3541
|
-
p("update:value",
|
|
3542
|
-
}, f = () => u.value, m = () => i.value, O = (
|
|
3543
|
-
i.value =
|
|
3544
|
-
let
|
|
3545
|
-
|
|
3540
|
+
}), g = async () => await Ee(ne(r, a.requestUrl), a.requestParams), S = ({ value: v }) => {
|
|
3541
|
+
p("update:value", v);
|
|
3542
|
+
}, f = () => u.value, m = () => i.value, O = (v) => {
|
|
3543
|
+
i.value = v, p("update:value", i.value);
|
|
3544
|
+
let _ = s.value.filter((h) => h.value === i.value);
|
|
3545
|
+
_.length === 1 && (u.value = _[0].label);
|
|
3546
3546
|
};
|
|
3547
3547
|
return t({
|
|
3548
3548
|
getName: f,
|
|
@@ -3552,17 +3552,17 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3552
3552
|
O(a.defaultValue);
|
|
3553
3553
|
}
|
|
3554
3554
|
}), oe(() => {
|
|
3555
|
-
|
|
3556
|
-
s.value =
|
|
3555
|
+
g().then((v) => {
|
|
3556
|
+
s.value = v, d.options = v;
|
|
3557
3557
|
});
|
|
3558
|
-
}), (
|
|
3559
|
-
const
|
|
3560
|
-
return w(), j(
|
|
3558
|
+
}), (v, _) => {
|
|
3559
|
+
const h = L("vxe-select");
|
|
3560
|
+
return w(), j(h, ee({
|
|
3561
3561
|
modelValue: i.value,
|
|
3562
|
-
"onUpdate:modelValue":
|
|
3562
|
+
"onUpdate:modelValue": _[0] || (_[0] = (P) => i.value = P)
|
|
3563
3563
|
}, d, {
|
|
3564
|
-
size:
|
|
3565
|
-
onChange:
|
|
3564
|
+
size: y(l)?.size,
|
|
3565
|
+
onChange: S,
|
|
3566
3566
|
style: { width: "100%" }
|
|
3567
3567
|
}), null, 16, ["modelValue", "size"]);
|
|
3568
3568
|
};
|
|
@@ -3587,19 +3587,19 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3587
3587
|
width: c(p.exportWidth) ? p.exportWidth : p.title.length * 2 + 4
|
|
3588
3588
|
});
|
|
3589
3589
|
}), i.columns = u, i.addRows(r.data), i.eachRow(function(p, d) {
|
|
3590
|
-
p.eachCell({ includeEmpty: !0 }, function(
|
|
3591
|
-
c(
|
|
3592
|
-
`) ?
|
|
3593
|
-
`),
|
|
3590
|
+
p.eachCell({ includeEmpty: !0 }, function(g, S) {
|
|
3591
|
+
c(g.value) && (g.value.toString().includes(`
|
|
3592
|
+
`) ? g.alignment = { wrapText: !0 } : g.value.toString().includes("\\n") && (g.value = g.value.toString().replaceAll("\\n", `
|
|
3593
|
+
`), g.alignment = { wrapText: !0 }));
|
|
3594
3594
|
});
|
|
3595
3595
|
}), c(r.mergeCells)) {
|
|
3596
3596
|
let p = {};
|
|
3597
3597
|
r.mergeCells.forEach((d) => {
|
|
3598
|
-
let
|
|
3599
|
-
const
|
|
3600
|
-
if (c(p[
|
|
3598
|
+
let g = d.col - s;
|
|
3599
|
+
const S = l[g];
|
|
3600
|
+
if (c(p[S]) ? p[S] = p[S] + d.rowspan : p[S] = d.rowspan + 1, d.col >= s && d.rowspan != 1) {
|
|
3601
3601
|
let f = d.row + 2;
|
|
3602
|
-
const m = "'" +
|
|
3602
|
+
const m = "'" + S + f + ":" + S + p[S] + "'";
|
|
3603
3603
|
i.mergeCells(m);
|
|
3604
3604
|
}
|
|
3605
3605
|
});
|
|
@@ -3784,7 +3784,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3784
3784
|
formButtons: M.toString(l?.templateTable?.tableButtons?.formButtons, []),
|
|
3785
3785
|
tableButtons: M.toString(l?.templateTable?.tableButtons?.tableButtons, []),
|
|
3786
3786
|
tableMoreButtons: M.toString(l?.templateTable?.tableButtons?.tableMoreButtons, [])
|
|
3787
|
-
}),
|
|
3787
|
+
}), g = te({
|
|
3788
3788
|
className: M.toString(
|
|
3789
3789
|
l?.templateTable?.toolbarConfig?.className,
|
|
3790
3790
|
A.templateTable.toolbarConfig.className
|
|
@@ -3816,14 +3816,14 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3816
3816
|
A.templateTable.toolbarConfig.slots.tools
|
|
3817
3817
|
)
|
|
3818
3818
|
}
|
|
3819
|
-
}),
|
|
3819
|
+
}), S = te({
|
|
3820
3820
|
pageSizePlacement: M.toString(l?.templateTable?.pagerConfig?.pageSizePlacement, "top")
|
|
3821
3821
|
}), f = A.application + "_" + r.templateType, m = "sag_vxe_page_div_panel_" + f;
|
|
3822
|
-
Tn(ve, r), Tn(Yi, () => document.getElementById(
|
|
3823
|
-
const O = Object.keys(Be()),
|
|
3822
|
+
Tn(ve, r), Tn(Yi, () => document.getElementById(y(m)));
|
|
3823
|
+
const O = Object.keys(Be()), b = O.filter((k) => k.startsWith("items_")), v = O.filter((k) => k.startsWith("cols_")), _ = O.filter((k) => k.startsWith("tools_")), h = $(), P = $(!0), D = $(!1), F = $("none"), U = $(["1"]), N = $(0), W = je(r.size), Q = $(), E = te({}), ie = $([]), We = $(), bt = $([]), yt = n, be = (k, C) => {
|
|
3824
3824
|
ie.value[C] = k;
|
|
3825
3825
|
}, ze = async () => {
|
|
3826
|
-
const k =
|
|
3826
|
+
const k = h.value;
|
|
3827
3827
|
if (!D.value && k) {
|
|
3828
3828
|
const C = We.value;
|
|
3829
3829
|
C ? C.validate().then((R) => {
|
|
@@ -3857,9 +3857,9 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3857
3857
|
//覆盖全局方能生效
|
|
3858
3858
|
printConfig: {},
|
|
3859
3859
|
//覆盖全局方能生效
|
|
3860
|
-
pagerConfig:
|
|
3860
|
+
pagerConfig: S,
|
|
3861
3861
|
//覆盖全局方能生效
|
|
3862
|
-
toolbarConfig:
|
|
3862
|
+
toolbarConfig: g,
|
|
3863
3863
|
proxyConfig: {
|
|
3864
3864
|
enabled: !0,
|
|
3865
3865
|
//是否启用
|
|
@@ -3887,7 +3887,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3887
3887
|
},
|
|
3888
3888
|
querySuccess: (k) => {
|
|
3889
3889
|
const { page: C, sort: R, sorts: H, filters: Z, form: se, response: _e } = k;
|
|
3890
|
-
p?.isMerge && (G.mergeCells = On(_e?.rows)), yt("search", _e, { $gridRef:
|
|
3890
|
+
p?.isMerge && (G.mergeCells = On(_e?.rows)), yt("search", _e, { $gridRef: h.value, gridOptions: G });
|
|
3891
3891
|
}
|
|
3892
3892
|
}
|
|
3893
3893
|
},
|
|
@@ -3901,7 +3901,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3901
3901
|
return St.value = !1, G.params.data;
|
|
3902
3902
|
{
|
|
3903
3903
|
D.value = !0, r.onLoadBeforeModule && r.onLoadBeforeModule({
|
|
3904
|
-
$gridRef:
|
|
3904
|
+
$gridRef: h.value,
|
|
3905
3905
|
gridOptions: G,
|
|
3906
3906
|
queryParams: k,
|
|
3907
3907
|
exportFlag: R
|
|
@@ -3929,7 +3929,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3929
3929
|
le("checkboxChange", k);
|
|
3930
3930
|
const C = p?.mergeKey;
|
|
3931
3931
|
if (C) {
|
|
3932
|
-
const R =
|
|
3932
|
+
const R = h.value;
|
|
3933
3933
|
if (R) {
|
|
3934
3934
|
const H = R.getTableData();
|
|
3935
3935
|
for (let Z in H.tableData)
|
|
@@ -3942,7 +3942,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3942
3942
|
le("radioChange", k);
|
|
3943
3943
|
const C = p?.mergeKey;
|
|
3944
3944
|
if (C) {
|
|
3945
|
-
const R =
|
|
3945
|
+
const R = h.value;
|
|
3946
3946
|
if (R) {
|
|
3947
3947
|
const H = R.getTableData();
|
|
3948
3948
|
for (let Z in H.tableData)
|
|
@@ -3965,14 +3965,14 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3965
3965
|
H.includes(k.rows[se][R]) || (Z++, H.push(k.rows[se][R])), k.rows[se][C] = Z;
|
|
3966
3966
|
}
|
|
3967
3967
|
return r.onLoadAfterModule ? r.onLoadAfterModule({
|
|
3968
|
-
$gridRef:
|
|
3968
|
+
$gridRef: h.value,
|
|
3969
3969
|
gridOptions: G,
|
|
3970
3970
|
data: k
|
|
3971
3971
|
}) : k;
|
|
3972
3972
|
}, On = (k) => {
|
|
3973
3973
|
const C = p?.mergeKey;
|
|
3974
3974
|
if (C && p.isMerge) {
|
|
3975
|
-
const R =
|
|
3975
|
+
const R = h.value;
|
|
3976
3976
|
let H = [], Z = {}, se = {};
|
|
3977
3977
|
for (let Oe = 0; Oe < k.length; Oe++) {
|
|
3978
3978
|
const ue = k[Oe], qe = k[Oe - 1];
|
|
@@ -3992,7 +3992,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3992
3992
|
return null;
|
|
3993
3993
|
}, Cl = te({
|
|
3994
3994
|
cellMenu(k) {
|
|
3995
|
-
const C =
|
|
3995
|
+
const C = h.value;
|
|
3996
3996
|
C && C.setCurrentRow(k.row);
|
|
3997
3997
|
},
|
|
3998
3998
|
menuClick(k) {
|
|
@@ -4011,7 +4011,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4011
4011
|
C && C.length > 0 && (C[0].submit = () => (a.visible = !1, ze(), !1));
|
|
4012
4012
|
}
|
|
4013
4013
|
}, { clickFormButton: Pl, clickTableButton: Ge, clickHerf: _n } = zi({
|
|
4014
|
-
gridRef:
|
|
4014
|
+
gridRef: h,
|
|
4015
4015
|
targetModal: a,
|
|
4016
4016
|
gridOptions: G,
|
|
4017
4017
|
pageOptions: r,
|
|
@@ -4020,7 +4020,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4020
4020
|
}), { downloadEvent: Cn, importEvent: kl, switchColumsEvent: xn } = qi({
|
|
4021
4021
|
formRef: We,
|
|
4022
4022
|
formData: E,
|
|
4023
|
-
gridRef:
|
|
4023
|
+
gridRef: h,
|
|
4024
4024
|
gridOptions: G,
|
|
4025
4025
|
loadData: yn,
|
|
4026
4026
|
pageOptions: r,
|
|
@@ -4056,7 +4056,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4056
4056
|
trigger: "click",
|
|
4057
4057
|
mode: "row",
|
|
4058
4058
|
showStatus: !0
|
|
4059
|
-
}), c(p) && c(p.mergeKey) && (G.cellStyle = wn, G.params.mergeField = p.mergeKey, p.isMerge ? G.columnDragConfig.dragStartMethod = () => !1 : (G.virtualYConfig = { enabled: !1 }, G.spanMethod = jn(p))),
|
|
4059
|
+
}), c(p) && c(p.mergeKey) && (G.cellStyle = wn, G.params.mergeField = p.mergeKey, p.isMerge ? G.columnDragConfig.dragStartMethod = () => !1 : (G.virtualYConfig = { enabled: !1 }, G.spanMethod = jn(p))), P.value = !1;
|
|
4060
4060
|
}, Tl = (k, C) => k && k.length > 0 ? k && C ? k.some((R) => Re(C[R.buttonName]) && Re(R.auth)) : !0 : !1;
|
|
4061
4061
|
oe(async () => {
|
|
4062
4062
|
if (le("加载页面模板", r), await Al(), u.storage) {
|
|
@@ -4076,7 +4076,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4076
4076
|
await Ze(u.formItems, ie, E);
|
|
4077
4077
|
r.onMountedModule && await r.onMountedModule({
|
|
4078
4078
|
$formRef: We.value,
|
|
4079
|
-
$gridRef:
|
|
4079
|
+
$gridRef: h.value,
|
|
4080
4080
|
gridOptions: G,
|
|
4081
4081
|
pageOptions: r,
|
|
4082
4082
|
formData: E
|
|
@@ -4104,8 +4104,8 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4104
4104
|
a.visible = !1;
|
|
4105
4105
|
const C = a.componentParams;
|
|
4106
4106
|
yt("submit", { data: k, params: C, button: C[A.buttonKeyName] });
|
|
4107
|
-
}, $l = async () => await ml(
|
|
4108
|
-
const k =
|
|
4107
|
+
}, $l = async () => await ml(h, G), jl = async () => {
|
|
4108
|
+
const k = h.value;
|
|
4109
4109
|
if (k) {
|
|
4110
4110
|
const { pager: C, filter: R, form: H, sort: Z } = k.getProxyInfo();
|
|
4111
4111
|
return At(C, Z, R, H, E, ie);
|
|
@@ -4136,7 +4136,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4136
4136
|
Mn(K("div", wu, [
|
|
4137
4137
|
q(_e, {
|
|
4138
4138
|
activeKey: U.value,
|
|
4139
|
-
"onUpdate:activeKey": C[2] || (C[2] = (
|
|
4139
|
+
"onUpdate:activeKey": C[2] || (C[2] = (x) => U.value = x),
|
|
4140
4140
|
expandIconPosition: "end",
|
|
4141
4141
|
accordion: ""
|
|
4142
4142
|
}, {
|
|
@@ -4169,8 +4169,8 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4169
4169
|
default: B(() => [
|
|
4170
4170
|
q(R, {
|
|
4171
4171
|
type: "primary",
|
|
4172
|
-
size:
|
|
4173
|
-
onClick: C[0] || (C[0] = (
|
|
4172
|
+
size: y(W),
|
|
4173
|
+
onClick: C[0] || (C[0] = (x) => ze()),
|
|
4174
4174
|
disabled: D.value
|
|
4175
4175
|
}, {
|
|
4176
4176
|
default: B(() => C[5] || (C[5] = [
|
|
@@ -4179,8 +4179,8 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4179
4179
|
_: 1
|
|
4180
4180
|
}, 8, ["size", "disabled"]),
|
|
4181
4181
|
q(R, {
|
|
4182
|
-
size:
|
|
4183
|
-
onClick: C[1] || (C[1] = (
|
|
4182
|
+
size: y(W),
|
|
4183
|
+
onClick: C[1] || (C[1] = (x) => bn())
|
|
4184
4184
|
}, {
|
|
4185
4185
|
default: B(() => C[6] || (C[6] = [
|
|
4186
4186
|
de("重置")
|
|
@@ -4191,96 +4191,96 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4191
4191
|
_: 1
|
|
4192
4192
|
})
|
|
4193
4193
|
]),
|
|
4194
|
-
dateRange: B((
|
|
4194
|
+
dateRange: B((x) => [
|
|
4195
4195
|
q(Zi, ee({
|
|
4196
|
-
value: E[
|
|
4197
|
-
"onUpdate:value": (V) => E[
|
|
4198
|
-
ref: (V) => be(V,
|
|
4199
|
-
},
|
|
4196
|
+
value: E[x.field],
|
|
4197
|
+
"onUpdate:value": (V) => E[x.field] = V,
|
|
4198
|
+
ref: (V) => be(V, x.field)
|
|
4199
|
+
}, x?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"])
|
|
4200
4200
|
]),
|
|
4201
|
-
date: B((
|
|
4201
|
+
date: B((x) => [
|
|
4202
4202
|
q(Qi, ee({
|
|
4203
|
-
value: E[
|
|
4204
|
-
"onUpdate:value": (V) => E[
|
|
4205
|
-
ref: (V) => be(V,
|
|
4206
|
-
},
|
|
4203
|
+
value: E[x.field],
|
|
4204
|
+
"onUpdate:value": (V) => E[x.field] = V,
|
|
4205
|
+
ref: (V) => be(V, x.field)
|
|
4206
|
+
}, x?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"])
|
|
4207
4207
|
]),
|
|
4208
|
-
input: B((
|
|
4208
|
+
input: B((x) => [
|
|
4209
4209
|
u.vxeSlot ? (w(), j(vu, ee({
|
|
4210
4210
|
key: 0,
|
|
4211
|
-
value: E[
|
|
4212
|
-
"onUpdate:value": (V) => E[
|
|
4213
|
-
ref: (V) => be(V,
|
|
4214
|
-
title:
|
|
4215
|
-
},
|
|
4211
|
+
value: E[x.field],
|
|
4212
|
+
"onUpdate:value": (V) => E[x.field] = V,
|
|
4213
|
+
ref: (V) => be(V, x.field),
|
|
4214
|
+
title: x?.item?.title
|
|
4215
|
+
}, x?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])) : z("", !0),
|
|
4216
4216
|
u.vxeSlot ? z("", !0) : (w(), j(Xi, ee({
|
|
4217
4217
|
key: 1,
|
|
4218
|
-
value: E[
|
|
4219
|
-
"onUpdate:value": (V) => E[
|
|
4220
|
-
ref: (V) => be(V,
|
|
4221
|
-
title:
|
|
4222
|
-
},
|
|
4218
|
+
value: E[x.field],
|
|
4219
|
+
"onUpdate:value": (V) => E[x.field] = V,
|
|
4220
|
+
ref: (V) => be(V, x.field),
|
|
4221
|
+
title: x?.item?.title
|
|
4222
|
+
}, x?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"]))
|
|
4223
4223
|
]),
|
|
4224
|
-
select: B((
|
|
4224
|
+
select: B((x) => [
|
|
4225
4225
|
u.vxeSlot ? (w(), j(bu, ee({
|
|
4226
4226
|
key: 0,
|
|
4227
|
-
value: E[
|
|
4228
|
-
"onUpdate:value": (V) => E[
|
|
4229
|
-
ref: (V) => be(V,
|
|
4230
|
-
},
|
|
4227
|
+
value: E[x.field],
|
|
4228
|
+
"onUpdate:value": (V) => E[x.field] = V,
|
|
4229
|
+
ref: (V) => be(V, x.field)
|
|
4230
|
+
}, x?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"])) : z("", !0),
|
|
4231
4231
|
u.vxeSlot ? z("", !0) : (w(), j(eu, ee({
|
|
4232
4232
|
key: 1,
|
|
4233
|
-
value: E[
|
|
4234
|
-
"onUpdate:value": (V) => E[
|
|
4235
|
-
ref: (V) => be(V,
|
|
4236
|
-
},
|
|
4233
|
+
value: E[x.field],
|
|
4234
|
+
"onUpdate:value": (V) => E[x.field] = V,
|
|
4235
|
+
ref: (V) => be(V, x.field)
|
|
4236
|
+
}, x?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value"]))
|
|
4237
4237
|
]),
|
|
4238
|
-
selectList: B((
|
|
4238
|
+
selectList: B((x) => [
|
|
4239
4239
|
u.vxeSlot ? (w(), j(Su, ee({
|
|
4240
4240
|
key: 0,
|
|
4241
|
-
value: E[
|
|
4242
|
-
"onUpdate:value": (V) => E[
|
|
4243
|
-
ref: (V) => be(V,
|
|
4244
|
-
title:
|
|
4245
|
-
},
|
|
4241
|
+
value: E[x.field],
|
|
4242
|
+
"onUpdate:value": (V) => E[x.field] = V,
|
|
4243
|
+
ref: (V) => be(V, x.field),
|
|
4244
|
+
title: x?.item?.title
|
|
4245
|
+
}, x?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])) : z("", !0),
|
|
4246
4246
|
u.vxeSlot ? z("", !0) : (w(), j(lu, ee({
|
|
4247
4247
|
key: 1,
|
|
4248
|
-
value: E[
|
|
4249
|
-
"onUpdate:value": (V) => E[
|
|
4250
|
-
ref: (V) => be(V,
|
|
4251
|
-
title:
|
|
4252
|
-
},
|
|
4248
|
+
value: E[x.field],
|
|
4249
|
+
"onUpdate:value": (V) => E[x.field] = V,
|
|
4250
|
+
ref: (V) => be(V, x.field),
|
|
4251
|
+
title: x?.item?.title
|
|
4252
|
+
}, x?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"]))
|
|
4253
4253
|
]),
|
|
4254
|
-
selectPull: B((
|
|
4254
|
+
selectPull: B((x) => [
|
|
4255
4255
|
u.vxeSlot ? (w(), j(yu, ee({
|
|
4256
4256
|
key: 0,
|
|
4257
|
-
value: E[
|
|
4258
|
-
"onUpdate:value": (V) => E[
|
|
4259
|
-
ref: (V) => be(V,
|
|
4260
|
-
title:
|
|
4261
|
-
},
|
|
4257
|
+
value: E[x.field],
|
|
4258
|
+
"onUpdate:value": (V) => E[x.field] = V,
|
|
4259
|
+
ref: (V) => be(V, x.field),
|
|
4260
|
+
title: x?.item?.title
|
|
4261
|
+
}, x?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])) : z("", !0),
|
|
4262
4262
|
u.vxeSlot ? z("", !0) : (w(), j(nu, ee({
|
|
4263
4263
|
key: 1,
|
|
4264
|
-
value: E[
|
|
4265
|
-
"onUpdate:value": (V) => E[
|
|
4266
|
-
ref: (V) => be(V,
|
|
4267
|
-
title:
|
|
4268
|
-
},
|
|
4264
|
+
value: E[x.field],
|
|
4265
|
+
"onUpdate:value": (V) => E[x.field] = V,
|
|
4266
|
+
ref: (V) => be(V, x.field),
|
|
4267
|
+
title: x?.item?.title
|
|
4268
|
+
}, x?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"]))
|
|
4269
4269
|
]),
|
|
4270
|
-
cascader: B((
|
|
4270
|
+
cascader: B((x) => [
|
|
4271
4271
|
q(ou, ee({
|
|
4272
|
-
value: E[
|
|
4273
|
-
"onUpdate:value": (V) => E[
|
|
4274
|
-
title:
|
|
4275
|
-
ref: (V) => be(V,
|
|
4276
|
-
},
|
|
4272
|
+
value: E[x.field],
|
|
4273
|
+
"onUpdate:value": (V) => E[x.field] = V,
|
|
4274
|
+
title: x?.item?.title,
|
|
4275
|
+
ref: (V) => be(V, x.field)
|
|
4276
|
+
}, x?.item?.itemRender?.props), null, 16, ["value", "onUpdate:value", "title"])
|
|
4277
4277
|
]),
|
|
4278
4278
|
_: 2
|
|
4279
4279
|
}, [
|
|
4280
|
-
Pe(b
|
|
4281
|
-
name:
|
|
4280
|
+
Pe(y(b), (x) => ({
|
|
4281
|
+
name: x,
|
|
4282
4282
|
fn: B((V) => [
|
|
4283
|
-
re(k.$slots,
|
|
4283
|
+
re(k.$slots, x, ee(V, {
|
|
4284
4284
|
value: E[V.field]
|
|
4285
4285
|
}))
|
|
4286
4286
|
])
|
|
@@ -4293,12 +4293,12 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4293
4293
|
_: 3
|
|
4294
4294
|
}, 8, ["activeKey"])
|
|
4295
4295
|
], 512), [
|
|
4296
|
-
[Vn,
|
|
4296
|
+
[Vn, y(c)(u.formItems)]
|
|
4297
4297
|
]),
|
|
4298
4298
|
K("div", _u, [
|
|
4299
4299
|
q(zl, ee({
|
|
4300
4300
|
ref_key: "gridRef",
|
|
4301
|
-
ref:
|
|
4301
|
+
ref: h
|
|
4302
4302
|
}, G, Rl(Cl), {
|
|
4303
4303
|
size: r.size,
|
|
4304
4304
|
id: f,
|
|
@@ -4309,14 +4309,14 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4309
4309
|
onCheckboxChange: Sl,
|
|
4310
4310
|
onRadioChange: Ol
|
|
4311
4311
|
}), we({
|
|
4312
|
-
operate: B(({ row:
|
|
4312
|
+
operate: B(({ row: x, column: V }) => [
|
|
4313
4313
|
K("a", {
|
|
4314
4314
|
href: "javascript:void(0)",
|
|
4315
4315
|
class: "sag-vxe-page-link",
|
|
4316
|
-
onClick: (ye) =>
|
|
4317
|
-
}, ae(
|
|
4316
|
+
onClick: (ye) => y(_n)(x, V)
|
|
4317
|
+
}, ae(x[V.property]), 9, Cu)
|
|
4318
4318
|
]),
|
|
4319
|
-
vertical: B(({ row:
|
|
4319
|
+
vertical: B(({ row: x, column: V }) => [
|
|
4320
4320
|
(w(!0), I(fe, null, Pe(V.params.childColumns, (ye) => (w(), I("div", {
|
|
4321
4321
|
key: ye.value
|
|
4322
4322
|
}, [
|
|
@@ -4326,20 +4326,20 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4326
4326
|
K("a", {
|
|
4327
4327
|
href: "javascript:void(0)",
|
|
4328
4328
|
class: "sag-vxe-page-link",
|
|
4329
|
-
onClick: (Gu) =>
|
|
4330
|
-
}, ae(
|
|
4331
|
-
])) : (w(), I("span", Au, ae(
|
|
4329
|
+
onClick: (Gu) => y(_n)(x, ye)
|
|
4330
|
+
}, ae(x[ye.field]), 9, ku)
|
|
4331
|
+
])) : (w(), I("span", Au, ae(y(M).stringFormat(x[ye.field], ye.formatter)), 1))
|
|
4332
4332
|
]))), 128))
|
|
4333
4333
|
]),
|
|
4334
|
-
button: B(({ row:
|
|
4334
|
+
button: B(({ row: x }) => [
|
|
4335
4335
|
K("div", Tu, [
|
|
4336
4336
|
(w(!0), I(fe, null, Pe(d.tableButtons, (V) => (w(), I(fe, { key: V }, [
|
|
4337
|
-
|
|
4337
|
+
y(M).toString(x[V.buttonName], !0) && y(Re)(V.auth) ? (w(), I("span", Mu, [
|
|
4338
4338
|
s.showButtonLink ? z("", !0) : (w(), j(R, {
|
|
4339
4339
|
key: 0,
|
|
4340
4340
|
size: "small",
|
|
4341
|
-
type:
|
|
4342
|
-
onClick: (ye) =>
|
|
4341
|
+
type: y(M).toString(V.status, "primary"),
|
|
4342
|
+
onClick: (ye) => y(Ge)(V, x)
|
|
4343
4343
|
}, {
|
|
4344
4344
|
icon: B(() => [
|
|
4345
4345
|
q(Ve, {
|
|
@@ -4355,7 +4355,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4355
4355
|
key: 1,
|
|
4356
4356
|
href: "javascript:void(0)",
|
|
4357
4357
|
class: "sag-vxe-page-button-link",
|
|
4358
|
-
onClick: (ye) =>
|
|
4358
|
+
onClick: (ye) => y(Ge)(V, x)
|
|
4359
4359
|
}, [
|
|
4360
4360
|
q(Ve, {
|
|
4361
4361
|
icon: V.icon
|
|
@@ -4366,7 +4366,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4366
4366
|
])) : z("", !0)
|
|
4367
4367
|
], 64))), 128))
|
|
4368
4368
|
]),
|
|
4369
|
-
Tl(d.tableMoreButtons,
|
|
4369
|
+
Tl(d.tableMoreButtons, x) ? (w(), j(qe, {
|
|
4370
4370
|
key: 0,
|
|
4371
4371
|
destroyPopupOnHide: !0
|
|
4372
4372
|
}, {
|
|
@@ -4374,11 +4374,11 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4374
4374
|
q(ue, null, {
|
|
4375
4375
|
default: B(() => [
|
|
4376
4376
|
(w(!0), I(fe, null, Pe(d.tableMoreButtons, (V) => (w(), I(fe, { key: V }, [
|
|
4377
|
-
|
|
4378
|
-
|
|
4377
|
+
y(Re)(V.auth) ? (w(), I(fe, { key: 0 }, [
|
|
4378
|
+
y(M).toString(x[V.buttonName], !0) ? (w(), j(Oe, { key: 0 }, {
|
|
4379
4379
|
default: B(() => [
|
|
4380
4380
|
K("a", {
|
|
4381
|
-
onClick: (ye) =>
|
|
4381
|
+
onClick: (ye) => y(Ge)(V, x)
|
|
4382
4382
|
}, [
|
|
4383
4383
|
q(Ve, {
|
|
4384
4384
|
icon: V.icon
|
|
@@ -4401,7 +4401,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4401
4401
|
}, {
|
|
4402
4402
|
default: B(() => [
|
|
4403
4403
|
C[9] || (C[9] = de(" 更多操作 ")),
|
|
4404
|
-
q(
|
|
4404
|
+
q(y(ht))
|
|
4405
4405
|
]),
|
|
4406
4406
|
_: 1
|
|
4407
4407
|
}, 8, ["type"])
|
|
@@ -4410,27 +4410,27 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4410
4410
|
}, 1024)) : z("", !0)
|
|
4411
4411
|
]),
|
|
4412
4412
|
toolbar_buttons: B(() => [
|
|
4413
|
-
|
|
4413
|
+
y(c)(d.formButtons) && d.formButtons.length > 0 ? (w(), j(H, {
|
|
4414
4414
|
key: 0,
|
|
4415
4415
|
wrap: !0,
|
|
4416
4416
|
style: { "margin-bottom": "0px" }
|
|
4417
4417
|
}, {
|
|
4418
4418
|
default: B(() => [
|
|
4419
|
-
(w(!0), I(fe, null, Pe(d.formButtons, (
|
|
4420
|
-
|
|
4419
|
+
(w(!0), I(fe, null, Pe(d.formButtons, (x) => (w(), I("span", { key: x }, [
|
|
4420
|
+
y(Re)(x.auth) ? (w(), j(R, {
|
|
4421
4421
|
key: 0,
|
|
4422
4422
|
round: "",
|
|
4423
|
-
size:
|
|
4424
|
-
type:
|
|
4425
|
-
onClick: (V) =>
|
|
4423
|
+
size: y(W),
|
|
4424
|
+
type: y(M).toString(x.status, "primary"),
|
|
4425
|
+
onClick: (V) => y(Pl)(x)
|
|
4426
4426
|
}, {
|
|
4427
4427
|
icon: B(() => [
|
|
4428
4428
|
q(Ve, {
|
|
4429
|
-
icon:
|
|
4429
|
+
icon: x.icon
|
|
4430
4430
|
}, null, 8, ["icon"])
|
|
4431
4431
|
]),
|
|
4432
4432
|
default: B(() => [
|
|
4433
|
-
de(" " + ae(
|
|
4433
|
+
de(" " + ae(x.buttonName), 1)
|
|
4434
4434
|
]),
|
|
4435
4435
|
_: 2
|
|
4436
4436
|
}, 1032, ["size", "type", "onClick"])) : z("", !0)
|
|
@@ -4438,14 +4438,14 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4438
4438
|
]),
|
|
4439
4439
|
_: 1
|
|
4440
4440
|
})) : z("", !0),
|
|
4441
|
-
(w(!0), I(fe, null, Pe(
|
|
4441
|
+
(w(!0), I(fe, null, Pe(y(_), (x) => re(k.$slots, x)), 256))
|
|
4442
4442
|
]),
|
|
4443
4443
|
toolbar_tools: B(() => [
|
|
4444
|
-
|
|
4444
|
+
y(c)(s.tableColumnsExtra) ? (w(), j(Ce, {
|
|
4445
4445
|
key: 0,
|
|
4446
4446
|
size: "small",
|
|
4447
4447
|
circle: !0,
|
|
4448
|
-
onClick: C[3] || (C[3] = (
|
|
4448
|
+
onClick: C[3] || (C[3] = (x) => y(xn)(r.application, !1)),
|
|
4449
4449
|
title: "切换"
|
|
4450
4450
|
}, {
|
|
4451
4451
|
default: B(() => C[10] || (C[10] = [
|
|
@@ -4453,15 +4453,15 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4453
4453
|
])),
|
|
4454
4454
|
_: 1
|
|
4455
4455
|
})) : z("", !0),
|
|
4456
|
-
|
|
4456
|
+
y(c)(o.requestDownload) && typeof o.requestDownload == "object" ? (w(), j(Ou, {
|
|
4457
4457
|
key: 1,
|
|
4458
|
-
onExport:
|
|
4458
|
+
onExport: y(Cn)
|
|
4459
4459
|
}, null, 8, ["onExport"])) : z("", !0),
|
|
4460
4460
|
o.requestDownload === !0 || typeof o.requestDownload == "string" ? (w(), j(Ce, {
|
|
4461
4461
|
key: 2,
|
|
4462
4462
|
size: "small",
|
|
4463
4463
|
circle: !0,
|
|
4464
|
-
onClick:
|
|
4464
|
+
onClick: y(Cn),
|
|
4465
4465
|
title: "下载"
|
|
4466
4466
|
}, {
|
|
4467
4467
|
default: B(() => C[11] || (C[11] = [
|
|
@@ -4473,7 +4473,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4473
4473
|
key: 3,
|
|
4474
4474
|
size: "small",
|
|
4475
4475
|
circle: !0,
|
|
4476
|
-
onClick: C[4] || (C[4] = (
|
|
4476
|
+
onClick: C[4] || (C[4] = (x) => y(kl)()),
|
|
4477
4477
|
title: "导入"
|
|
4478
4478
|
}, {
|
|
4479
4479
|
default: B(() => C[12] || (C[12] = [
|
|
@@ -4507,10 +4507,10 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4507
4507
|
]),
|
|
4508
4508
|
_: 2
|
|
4509
4509
|
}, [
|
|
4510
|
-
Pe(
|
|
4511
|
-
name:
|
|
4510
|
+
Pe(y(v), (x) => ({
|
|
4511
|
+
name: x,
|
|
4512
4512
|
fn: B((V) => [
|
|
4513
|
-
re(k.$slots,
|
|
4513
|
+
re(k.$slots, x, Ll(Ul(V)))
|
|
4514
4514
|
])
|
|
4515
4515
|
}))
|
|
4516
4516
|
]), 1040, ["size"])
|
|
@@ -4520,7 +4520,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4520
4520
|
onSubmit: Vl
|
|
4521
4521
|
}), null, 16)) : z("", !0)
|
|
4522
4522
|
], 512)), [
|
|
4523
|
-
[Vn, !
|
|
4523
|
+
[Vn, !P.value]
|
|
4524
4524
|
]);
|
|
4525
4525
|
};
|
|
4526
4526
|
}
|
|
@@ -4559,13 +4559,13 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4559
4559
|
const a = e, l = a.picker || "day", r = a.format || "YYYY-MM-DD";
|
|
4560
4560
|
let o = $();
|
|
4561
4561
|
const i = (f, m) => {
|
|
4562
|
-
|
|
4562
|
+
S(m, !0);
|
|
4563
4563
|
}, u = () => c(o.value) ? T(o.value).format(r) : null, s = (f) => {
|
|
4564
|
-
o.value = T(f),
|
|
4564
|
+
o.value = T(f), S();
|
|
4565
4565
|
}, p = (f) => {
|
|
4566
|
-
o.value = T().add(f || 0, l),
|
|
4567
|
-
}, d = (f) => !!(c(a.max) && T(f).format(r) > a.max || c(a.min) && T(f).format(r) < a.min),
|
|
4568
|
-
c(f) ? (
|
|
4566
|
+
o.value = T().add(f || 0, l), S();
|
|
4567
|
+
}, d = (f) => !!(c(a.max) && T(f).format(r) > a.max || c(a.min) && T(f).format(r) < a.min), g = n, S = (f, m = !1) => {
|
|
4568
|
+
c(f) ? (g("update:value", f), m && g("change", f)) : (g("update:value", u()), m && g("change", u()));
|
|
4569
4569
|
};
|
|
4570
4570
|
return he(
|
|
4571
4571
|
() => a.value,
|
|
@@ -4581,16 +4581,16 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4581
4581
|
}), (f, m) => {
|
|
4582
4582
|
const O = L("a-date-picker");
|
|
4583
4583
|
return w(), j(O, {
|
|
4584
|
-
value:
|
|
4585
|
-
"onUpdate:value": m[0] || (m[0] = (
|
|
4584
|
+
value: y(o),
|
|
4585
|
+
"onUpdate:value": m[0] || (m[0] = (b) => ft(o) ? o.value = b : o = b),
|
|
4586
4586
|
"show-time": a.showTime,
|
|
4587
4587
|
disabled: a.disabled,
|
|
4588
|
-
locale:
|
|
4589
|
-
format:
|
|
4588
|
+
locale: y(Ye),
|
|
4589
|
+
format: y(r),
|
|
4590
4590
|
disabledDate: d,
|
|
4591
|
-
picker:
|
|
4591
|
+
picker: y(l) === "day" ? "date" : y(l),
|
|
4592
4592
|
style: me(a.style),
|
|
4593
|
-
getPopupContainer: (
|
|
4593
|
+
getPopupContainer: (b) => y(Ne)(a.mountainTop, e.getPopupContainer, b),
|
|
4594
4594
|
onChange: i
|
|
4595
4595
|
}, null, 8, ["value", "show-time", "disabled", "locale", "format", "picker", "style", "getPopupContainer"]);
|
|
4596
4596
|
};
|
|
@@ -4642,43 +4642,43 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4642
4642
|
{ label: "近两年", value: [T().add(-2, l)] },
|
|
4643
4643
|
{ label: "近三年", value: [T().add(-3, l)] },
|
|
4644
4644
|
{ label: "近五年", value: [T().add(-5, l)] }
|
|
4645
|
-
], d = $(l === "day" ? u : l === "month" ? s : p),
|
|
4646
|
-
m(
|
|
4647
|
-
},
|
|
4648
|
-
let O = null,
|
|
4649
|
-
return i.value && i.value[0] && (O = T(i.value[0]).format(r)), i.value && i.value[1] && (
|
|
4650
|
-
}, f = (O,
|
|
4651
|
-
typeof O == "number" || typeof
|
|
4645
|
+
], d = $(l === "day" ? u : l === "month" ? s : p), g = (O, b) => {
|
|
4646
|
+
m(b, !0);
|
|
4647
|
+
}, S = () => {
|
|
4648
|
+
let O = null, b = null;
|
|
4649
|
+
return i.value && i.value[0] && (O = T(i.value[0]).format(r)), i.value && i.value[1] && (b = T(i.value[1]).format(r)), !O && !b ? null : [O, b];
|
|
4650
|
+
}, f = (O, b) => {
|
|
4651
|
+
typeof O == "number" || typeof b == "number" ? i.value = [
|
|
4652
4652
|
c(O) ? T().add(O, l) : null,
|
|
4653
|
-
c(
|
|
4654
|
-
] : i.value = [c(O) ? T(O) : null, c(
|
|
4655
|
-
}, m = (O,
|
|
4656
|
-
c(O) ? (o("update:value", O),
|
|
4653
|
+
c(b) ? T().add(b, l) : null
|
|
4654
|
+
] : i.value = [c(O) ? T(O) : null, c(b) ? T(b) : null], m();
|
|
4655
|
+
}, m = (O, b = !1) => {
|
|
4656
|
+
c(O) ? (o("update:value", O), b && o("change", O)) : (o("update:value", S()), b && o("change", S()));
|
|
4657
4657
|
};
|
|
4658
4658
|
return he(
|
|
4659
4659
|
() => a.value,
|
|
4660
|
-
(O,
|
|
4661
|
-
let
|
|
4662
|
-
c(O) && (c(O[0]) && (
|
|
4660
|
+
(O, b) => {
|
|
4661
|
+
let v = null, _ = null;
|
|
4662
|
+
c(O) && (c(O[0]) && (v = T(O[0])), c(O[1]) && (_ = T(O[1]))), i.value = [v, _];
|
|
4663
4663
|
}
|
|
4664
4664
|
), oe(() => {
|
|
4665
4665
|
c(a.value) && f(a.value[0], a.value[1]);
|
|
4666
4666
|
}), t({
|
|
4667
4667
|
setValue: f,
|
|
4668
|
-
getValue:
|
|
4669
|
-
}), (O,
|
|
4670
|
-
const
|
|
4671
|
-
return w(), j(
|
|
4668
|
+
getValue: S
|
|
4669
|
+
}), (O, b) => {
|
|
4670
|
+
const v = L("a-range-picker");
|
|
4671
|
+
return w(), j(v, {
|
|
4672
4672
|
value: i.value,
|
|
4673
|
-
"onUpdate:value":
|
|
4673
|
+
"onUpdate:value": b[0] || (b[0] = (_) => i.value = _),
|
|
4674
4674
|
presets: d.value,
|
|
4675
|
-
locale:
|
|
4675
|
+
locale: y(Ye),
|
|
4676
4676
|
allowEmpty: [!0, !0],
|
|
4677
|
-
format:
|
|
4678
|
-
picker:
|
|
4677
|
+
format: y(r),
|
|
4678
|
+
picker: y(l) === "day" ? "date" : y(l),
|
|
4679
4679
|
style: me(a.style),
|
|
4680
|
-
getPopupContainer: (
|
|
4681
|
-
onChange:
|
|
4680
|
+
getPopupContainer: (_) => y(Ne)(a.mountainTop, e.getPopupContainer, _),
|
|
4681
|
+
onChange: g
|
|
4682
4682
|
}, null, 8, ["value", "presets", "locale", "format", "picker", "style", "getPopupContainer"]);
|
|
4683
4683
|
};
|
|
4684
4684
|
}
|
|
@@ -4765,30 +4765,30 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4765
4765
|
emits: ["update:value", "change"],
|
|
4766
4766
|
setup(e, { expose: t, emit: n }) {
|
|
4767
4767
|
const a = e, l = A.application || "", r = A.ctxPath || "", o = "请输入" + a.title + "搜索", i = a.fieldNames.label, u = a.fieldNames.value, s = $([]), p = $([]), d = async () => {
|
|
4768
|
-
const
|
|
4768
|
+
const v = await pl(
|
|
4769
4769
|
ne(r, a.requestUrl),
|
|
4770
4770
|
a.requestParams,
|
|
4771
4771
|
l,
|
|
4772
4772
|
"CASCADER_" + a.cacheKey
|
|
4773
4773
|
);
|
|
4774
|
-
p.value =
|
|
4775
|
-
},
|
|
4776
|
-
c(
|
|
4777
|
-
}, f = (
|
|
4778
|
-
s.value =
|
|
4774
|
+
p.value = v;
|
|
4775
|
+
}, g = n, S = (v, _) => {
|
|
4776
|
+
c(_) ? (g("update:value", v[v.length - 1]), g("change", _[_.length - 1])) : (g("update:value", null), g("change", null));
|
|
4777
|
+
}, f = (v, _) => _.some((h) => h[i].indexOf(v) > -1), m = () => p.value.filter((_) => _[u] === s.value[s.value.length - 1])[i], O = () => s.value, b = (v) => {
|
|
4778
|
+
s.value = v, g("update:value", v);
|
|
4779
4779
|
};
|
|
4780
4780
|
return oe(() => {
|
|
4781
4781
|
d();
|
|
4782
4782
|
}), t({
|
|
4783
4783
|
getName: m,
|
|
4784
4784
|
getValue: O,
|
|
4785
|
-
setValue:
|
|
4786
|
-
}), (
|
|
4787
|
-
const
|
|
4785
|
+
setValue: b
|
|
4786
|
+
}), (v, _) => {
|
|
4787
|
+
const h = L("a-cascader");
|
|
4788
4788
|
return w(), I("div", Du, [
|
|
4789
|
-
q(
|
|
4789
|
+
q(h, {
|
|
4790
4790
|
value: s.value,
|
|
4791
|
-
"onUpdate:value":
|
|
4791
|
+
"onUpdate:value": _[0] || (_[0] = (P) => s.value = P),
|
|
4792
4792
|
options: p.value,
|
|
4793
4793
|
fieldNames: a.fieldNames,
|
|
4794
4794
|
"show-search": { filter: f },
|
|
@@ -4797,8 +4797,8 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4797
4797
|
changeOnSelect: a.changeOnSelect,
|
|
4798
4798
|
placeholder: o,
|
|
4799
4799
|
style: me(a.style),
|
|
4800
|
-
getPopupContainer: (
|
|
4801
|
-
onChange:
|
|
4800
|
+
getPopupContainer: (P) => y(Ne)(a.mountainTop, e.getPopupContainer, P),
|
|
4801
|
+
onChange: S
|
|
4802
4802
|
}, null, 8, ["value", "options", "fieldNames", "show-search", "disabled", "clearable", "changeOnSelect", "style", "getPopupContainer"])
|
|
4803
4803
|
]);
|
|
4804
4804
|
};
|
|
@@ -4842,15 +4842,15 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4842
4842
|
]),
|
|
4843
4843
|
_: 2
|
|
4844
4844
|
}, [
|
|
4845
|
-
|
|
4845
|
+
y(l).length === 1 || y(c)(t.title) ? {
|
|
4846
4846
|
name: "title",
|
|
4847
4847
|
fn: B(() => [
|
|
4848
|
-
|
|
4849
|
-
|
|
4848
|
+
y(l).length === 1 ? re(r.$slots, "title", { key: 0 }) : z("", !0),
|
|
4849
|
+
y(l).length !== 1 ? (w(), I("span", Bu, ae(t.title), 1)) : z("", !0)
|
|
4850
4850
|
]),
|
|
4851
4851
|
key: "0"
|
|
4852
4852
|
} : void 0,
|
|
4853
|
-
|
|
4853
|
+
y(a).length === 1 ? {
|
|
4854
4854
|
name: "extra",
|
|
4855
4855
|
fn: B(() => [
|
|
4856
4856
|
re(r.$slots, "extra")
|
|
@@ -4892,24 +4892,24 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4892
4892
|
},
|
|
4893
4893
|
emits: ["update:value", "change"],
|
|
4894
4894
|
setup(e, { expose: t, emit: n }) {
|
|
4895
|
-
const a = e, l = $(M.toString(a.value, null)), r = n, o = Object.keys(Be()), i = o.filter((
|
|
4896
|
-
|
|
4897
|
-
}, p = () => l.value, d = (
|
|
4898
|
-
a.formatter === "date" ? l.value = M.toDateString(
|
|
4895
|
+
const a = e, l = $(M.toString(a.value, null)), r = n, o = Object.keys(Be()), i = o.filter((S) => S === "addonAfter"), u = o.filter((S) => S === "addonBefore"), s = () => {
|
|
4896
|
+
g(!0);
|
|
4897
|
+
}, p = () => l.value, d = (S) => {
|
|
4898
|
+
a.formatter === "date" ? l.value = M.toDateString(S) : a.formatter === "datetime" ? l.value = M.toDatetimeString(S) : l.value = S, g();
|
|
4899
4899
|
};
|
|
4900
4900
|
he(
|
|
4901
4901
|
() => a.value,
|
|
4902
|
-
(
|
|
4903
|
-
|
|
4902
|
+
(S, f) => {
|
|
4903
|
+
S !== l.value && d(S);
|
|
4904
4904
|
}
|
|
4905
4905
|
);
|
|
4906
|
-
const
|
|
4907
|
-
r("update:value", l.value),
|
|
4906
|
+
const g = (S = !1) => {
|
|
4907
|
+
r("update:value", l.value), S && r("change", l.value);
|
|
4908
4908
|
};
|
|
4909
4909
|
return t({
|
|
4910
4910
|
getValue: p,
|
|
4911
4911
|
setValue: d
|
|
4912
|
-
}), (
|
|
4912
|
+
}), (S, f) => {
|
|
4913
4913
|
const m = L("a-input");
|
|
4914
4914
|
return w(), j(m, {
|
|
4915
4915
|
value: l.value,
|
|
@@ -4921,19 +4921,19 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4921
4921
|
style: me(a.style),
|
|
4922
4922
|
onChange: s
|
|
4923
4923
|
}, we({ _: 2 }, [
|
|
4924
|
-
|
|
4924
|
+
y(i).length === 1 || y(c)(a.addonAfter) ? {
|
|
4925
4925
|
name: "addonAfter",
|
|
4926
4926
|
fn: B(() => [
|
|
4927
|
-
|
|
4928
|
-
|
|
4927
|
+
y(i).length === 1 ? re(S.$slots, "addonAfter", { key: 0 }) : z("", !0),
|
|
4928
|
+
y(i).length !== 1 ? (w(), I("span", Nu, ae(a.addonAfter), 1)) : z("", !0)
|
|
4929
4929
|
]),
|
|
4930
4930
|
key: "0"
|
|
4931
4931
|
} : void 0,
|
|
4932
|
-
|
|
4932
|
+
y(u).length === 1 || y(c)(a.addonBefore) ? {
|
|
4933
4933
|
name: "addonBefore",
|
|
4934
4934
|
fn: B(() => [
|
|
4935
|
-
|
|
4936
|
-
|
|
4935
|
+
y(u).length === 1 ? re(S.$slots, "addonBefore", { key: 0 }) : z("", !0),
|
|
4936
|
+
y(u).length !== 1 ? (w(), I("span", Eu, ae(a.addonBefore), 1)) : z("", !0)
|
|
4937
4937
|
]),
|
|
4938
4938
|
key: "1"
|
|
4939
4939
|
} : void 0
|
|
@@ -4978,24 +4978,24 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4978
4978
|
},
|
|
4979
4979
|
emits: ["update:value", "change"],
|
|
4980
4980
|
setup(e, { expose: t, emit: n }) {
|
|
4981
|
-
const a = e, l = $(M.toString(a.value, null)), r = n, o = Object.keys(Be()), i = o.filter((
|
|
4982
|
-
|
|
4983
|
-
}, p = () => l.value, d = (
|
|
4984
|
-
l.value =
|
|
4981
|
+
const a = e, l = $(M.toString(a.value, null)), r = n, o = Object.keys(Be()), i = o.filter((S) => S === "addonAfter"), u = o.filter((S) => S === "addonBefore"), s = () => {
|
|
4982
|
+
g(!0);
|
|
4983
|
+
}, p = () => l.value, d = (S) => {
|
|
4984
|
+
l.value = S, g();
|
|
4985
4985
|
};
|
|
4986
4986
|
he(
|
|
4987
4987
|
() => a.value,
|
|
4988
|
-
(
|
|
4989
|
-
|
|
4988
|
+
(S, f) => {
|
|
4989
|
+
S !== l.value && d(S);
|
|
4990
4990
|
}
|
|
4991
4991
|
);
|
|
4992
|
-
const
|
|
4993
|
-
r("update:value", l.value),
|
|
4992
|
+
const g = (S = !1) => {
|
|
4993
|
+
r("update:value", l.value), S && r("change", l.value);
|
|
4994
4994
|
};
|
|
4995
4995
|
return t({
|
|
4996
4996
|
getValue: p,
|
|
4997
4997
|
setValue: d
|
|
4998
|
-
}), (
|
|
4998
|
+
}), (S, f) => {
|
|
4999
4999
|
const m = L("a-input-number");
|
|
5000
5000
|
return w(), j(m, {
|
|
5001
5001
|
value: l.value,
|
|
@@ -5011,19 +5011,19 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5011
5011
|
style: me(a.style),
|
|
5012
5012
|
onChange: s
|
|
5013
5013
|
}, we({ _: 2 }, [
|
|
5014
|
-
|
|
5014
|
+
y(i).length === 1 || y(c)(a.addonAfter) ? {
|
|
5015
5015
|
name: "addonAfter",
|
|
5016
5016
|
fn: B(() => [
|
|
5017
|
-
|
|
5018
|
-
|
|
5017
|
+
y(i).length === 1 ? re(S.$slots, "addonAfter", { key: 0 }) : z("", !0),
|
|
5018
|
+
y(i).length !== 1 ? (w(), I("span", Ru, ae(a.addonAfter), 1)) : z("", !0)
|
|
5019
5019
|
]),
|
|
5020
5020
|
key: "0"
|
|
5021
5021
|
} : void 0,
|
|
5022
|
-
|
|
5022
|
+
y(u).length === 1 || y(c)(a.addonBefore) ? {
|
|
5023
5023
|
name: "addonBefore",
|
|
5024
5024
|
fn: B(() => [
|
|
5025
|
-
|
|
5026
|
-
|
|
5025
|
+
y(u).length === 1 ? re(S.$slots, "addonBefore", { key: 0 }) : z("", !0),
|
|
5026
|
+
y(u).length !== 1 ? (w(), I("span", Lu, ae(a.addonBefore), 1)) : z("", !0)
|
|
5027
5027
|
]),
|
|
5028
5028
|
key: "1"
|
|
5029
5029
|
} : void 0
|
|
@@ -5134,10 +5134,10 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5134
5134
|
getValue: i,
|
|
5135
5135
|
setValue: u
|
|
5136
5136
|
}), (p, d) => {
|
|
5137
|
-
const
|
|
5138
|
-
return w(), j(
|
|
5137
|
+
const g = L("a-textarea");
|
|
5138
|
+
return w(), j(g, {
|
|
5139
5139
|
value: l.value,
|
|
5140
|
-
"onUpdate:value": d[0] || (d[0] = (
|
|
5140
|
+
"onUpdate:value": d[0] || (d[0] = (S) => l.value = S),
|
|
5141
5141
|
placeholder: a.placeholder,
|
|
5142
5142
|
disabled: a.disabled,
|
|
5143
5143
|
allowClear: a.allowClear,
|
|
@@ -5171,12 +5171,14 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5171
5171
|
//
|
|
5172
5172
|
disabled: { type: Boolean, default: !1 },
|
|
5173
5173
|
//
|
|
5174
|
-
maxTagCount: { type: Number, default:
|
|
5174
|
+
maxTagCount: { type: Number, default: 20 },
|
|
5175
5175
|
//
|
|
5176
5176
|
extraOptions: { type: Array, default: null },
|
|
5177
5177
|
//
|
|
5178
5178
|
mountainTop: { type: Boolean, default: !0 },
|
|
5179
5179
|
//
|
|
5180
|
+
listHeight: { type: Number, default: 256 },
|
|
5181
|
+
//
|
|
5180
5182
|
getPopupContainer: { type: Function, default: null },
|
|
5181
5183
|
//
|
|
5182
5184
|
style: { type: [String, Object], default: "width: 100%" }
|
|
@@ -5184,66 +5186,67 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5184
5186
|
},
|
|
5185
5187
|
emits: ["update:value", "update:label", "change"],
|
|
5186
5188
|
setup(e, { expose: t, emit: n }) {
|
|
5187
|
-
const a = e, l = n, r = M.toString(a.value, null), o = a.multiple ? $(c(r) ? r.split(",") : []) : $(r), i = $(a.multiple ? [] : null), u = $(a.multiple ? {} : null), s = $([]), p =
|
|
5188
|
-
const
|
|
5189
|
-
return await gn(A.application,
|
|
5190
|
-
},
|
|
5191
|
-
|
|
5192
|
-
},
|
|
5193
|
-
a.multiple ? o.value = c(
|
|
5189
|
+
const a = e, l = n, r = M.toString(a.value, null), o = a.multiple ? $(c(r) ? r.split(",") : []) : $(r), i = $(a.multiple ? [] : null), u = $(a.multiple ? {} : null), s = $([]), p = async () => {
|
|
5190
|
+
const b = ne(A.ctxPath, A.requestDictUrl);
|
|
5191
|
+
return await gn(A.application, b, a.requestParams);
|
|
5192
|
+
}, d = (b, v) => v.label.toLowerCase().indexOf(b.toLowerCase()) >= 0, g = (b, v) => {
|
|
5193
|
+
m(!0);
|
|
5194
|
+
}, S = () => o.value, f = (b) => {
|
|
5195
|
+
a.multiple ? o.value = c(b) ? b : [] : o.value = c(b) ? b : "", m();
|
|
5194
5196
|
};
|
|
5195
5197
|
he(
|
|
5196
5198
|
() => a.value,
|
|
5197
|
-
(
|
|
5198
|
-
a.multiple ? o.value = c(
|
|
5199
|
+
(b) => {
|
|
5200
|
+
a.multiple ? o.value = c(b) ? b : [] : o.value = b;
|
|
5199
5201
|
}
|
|
5200
5202
|
);
|
|
5201
|
-
const
|
|
5202
|
-
l("update:value", o.value),
|
|
5203
|
-
},
|
|
5203
|
+
const m = (b = !1) => {
|
|
5204
|
+
l("update:value", o.value), O(b);
|
|
5205
|
+
}, O = (b = !1) => {
|
|
5204
5206
|
if (c(o.value))
|
|
5205
5207
|
if (a.multiple) {
|
|
5206
|
-
const
|
|
5207
|
-
o.value.forEach((
|
|
5208
|
-
let
|
|
5209
|
-
|
|
5210
|
-
}), i.value =
|
|
5208
|
+
const v = [];
|
|
5209
|
+
o.value.forEach((_) => {
|
|
5210
|
+
let h = s.value.filter((P) => P.value === _);
|
|
5211
|
+
h.length === 1 && (v.push(h[0].label), u.value[_] = h[0]);
|
|
5212
|
+
}), i.value = v;
|
|
5211
5213
|
} else {
|
|
5212
|
-
const
|
|
5213
|
-
c(
|
|
5214
|
+
const v = s.value.filter((_) => _.value === o.value);
|
|
5215
|
+
c(v) && (i.value = v[0].label, u.value = v[0]);
|
|
5214
5216
|
}
|
|
5215
5217
|
else
|
|
5216
5218
|
i.value = a.multiple ? [] : null, u.value = a.multiple ? {} : null;
|
|
5217
|
-
l("update:label", i.value),
|
|
5219
|
+
l("update:label", i.value), b && l("change", u.value);
|
|
5218
5220
|
};
|
|
5219
5221
|
return t({
|
|
5220
|
-
getValue:
|
|
5221
|
-
setValue:
|
|
5222
|
+
getValue: S,
|
|
5223
|
+
setValue: f
|
|
5222
5224
|
}), oe(() => {
|
|
5223
|
-
|
|
5224
|
-
s.value =
|
|
5225
|
+
p().then((b) => {
|
|
5226
|
+
s.value = b, c(a.extraOptions) && a.extraOptions?.length > 0 && s.value.unshift(...a.extraOptions), c(o.value) && !c(i.value) && O();
|
|
5225
5227
|
});
|
|
5226
|
-
}), (
|
|
5227
|
-
const
|
|
5228
|
+
}), (b, v) => {
|
|
5229
|
+
const _ = L("a-select");
|
|
5228
5230
|
return w(), I("div", Uu, [
|
|
5229
|
-
q(
|
|
5230
|
-
value:
|
|
5231
|
-
"onUpdate:value":
|
|
5232
|
-
onChange:
|
|
5231
|
+
q(_, {
|
|
5232
|
+
value: y(o),
|
|
5233
|
+
"onUpdate:value": v[0] || (v[0] = (h) => ft(o) ? o.value = h : null),
|
|
5234
|
+
onChange: g,
|
|
5233
5235
|
placeholder: "--请选择--",
|
|
5234
5236
|
allowClear: a.clearable,
|
|
5235
5237
|
mode: e.multiple ? "multiple" : "",
|
|
5236
|
-
"max-tag-count":
|
|
5238
|
+
"max-tag-count": a.maxTagCount,
|
|
5237
5239
|
options: s.value,
|
|
5238
5240
|
"show-search": a.filterable,
|
|
5239
|
-
"filter-option":
|
|
5241
|
+
"filter-option": d,
|
|
5240
5242
|
defaultActiveFirstOption: !a.multiple,
|
|
5241
5243
|
autoClearSearchValue: !a.filterable,
|
|
5242
|
-
|
|
5244
|
+
listHeight: a.listHeight,
|
|
5245
|
+
getPopupContainer: (h) => y(Ne)(a.mountainTop, e.getPopupContainer, h),
|
|
5243
5246
|
disabled: e.disabled,
|
|
5244
5247
|
style: me(a.style),
|
|
5245
5248
|
size: "medium"
|
|
5246
|
-
}, null, 8, ["value", "allowClear", "mode", "max-tag-count", "options", "show-search", "defaultActiveFirstOption", "autoClearSearchValue", "getPopupContainer", "disabled", "style"])
|
|
5249
|
+
}, null, 8, ["value", "allowClear", "mode", "max-tag-count", "options", "show-search", "defaultActiveFirstOption", "autoClearSearchValue", "listHeight", "getPopupContainer", "disabled", "style"])
|
|
5247
5250
|
]);
|
|
5248
5251
|
};
|
|
5249
5252
|
}
|
|
@@ -5272,7 +5275,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5272
5275
|
//
|
|
5273
5276
|
multiple: { type: Boolean, default: !1 },
|
|
5274
5277
|
//
|
|
5275
|
-
maxTagCount: { type: Number, default:
|
|
5278
|
+
maxTagCount: { type: Number, default: 20 },
|
|
5276
5279
|
//
|
|
5277
5280
|
corpId: { type: String, default: null },
|
|
5278
5281
|
//
|
|
@@ -5280,6 +5283,8 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5280
5283
|
//
|
|
5281
5284
|
mountainTop: { type: Boolean, default: !0 },
|
|
5282
5285
|
//
|
|
5286
|
+
listHeight: { type: Number, default: 256 },
|
|
5287
|
+
//
|
|
5283
5288
|
getPopupContainer: { type: Function, default: null },
|
|
5284
5289
|
//
|
|
5285
5290
|
style: { type: [String, Object], default: "width: 100%" }
|
|
@@ -5294,11 +5299,11 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5294
5299
|
Object.assign(W, a.requestParams), i.value = [], u.value = !0;
|
|
5295
5300
|
const Q = await Ee(a.requestUrl, W);
|
|
5296
5301
|
return u.value = !1, i.value = Q, Q;
|
|
5297
|
-
},
|
|
5302
|
+
}, g = jt(() => {
|
|
5298
5303
|
d(null).then((U) => {
|
|
5299
5304
|
s("query", U);
|
|
5300
5305
|
});
|
|
5301
|
-
}, 300),
|
|
5306
|
+
}, 300), S = (U) => {
|
|
5302
5307
|
m(U).then(() => {
|
|
5303
5308
|
D(!0);
|
|
5304
5309
|
});
|
|
@@ -5313,16 +5318,16 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5313
5318
|
let N = i.value.filter((W) => W.value === U);
|
|
5314
5319
|
N.length === 1 ? (r.value = N[0].label, o.value = N[0]) : (r.value = null, o.value = null);
|
|
5315
5320
|
}
|
|
5316
|
-
}, O = () => r.value,
|
|
5321
|
+
}, O = () => r.value, b = () => l.value, v = (U) => {
|
|
5317
5322
|
m(U).then(() => {
|
|
5318
5323
|
D();
|
|
5319
5324
|
});
|
|
5320
|
-
},
|
|
5325
|
+
}, _ = () => {
|
|
5321
5326
|
l.value = a.multiple ? [] : null, r.value = a.multiple ? [] : null, o.value = a.multiple ? {} : null, D();
|
|
5322
|
-
},
|
|
5323
|
-
|
|
5324
|
-
},
|
|
5325
|
-
|
|
5327
|
+
}, h = async () => {
|
|
5328
|
+
_(), i.value = [];
|
|
5329
|
+
}, P = async () => {
|
|
5330
|
+
_(), i.value = [], await g();
|
|
5326
5331
|
}, D = (U = !1) => {
|
|
5327
5332
|
s("update:value", l.value), s("update:label", r.value), U && s("change", o.value);
|
|
5328
5333
|
}, F = (U, N) => a.multiple ? c(U) && !c(N) || !c(U) && c(N) ? !0 : !c(U) && !c(N) || U.length !== N.length ? !1 : !U.every((W, Q) => W === N[Q]) : U !== N;
|
|
@@ -5330,16 +5335,16 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5330
5335
|
() => [a.corpId, a.value],
|
|
5331
5336
|
async ([U, N], [W, Q]) => {
|
|
5332
5337
|
const E = U !== W, ie = F(N, l.value);
|
|
5333
|
-
E && (
|
|
5338
|
+
E && (_(), await d(N, "1")), ie && v(N);
|
|
5334
5339
|
}
|
|
5335
5340
|
), oe(async () => {
|
|
5336
5341
|
d(null);
|
|
5337
5342
|
}), t({
|
|
5338
5343
|
getName: O,
|
|
5339
|
-
getValue:
|
|
5340
|
-
setValue:
|
|
5341
|
-
clear:
|
|
5342
|
-
reload:
|
|
5344
|
+
getValue: b,
|
|
5345
|
+
setValue: v,
|
|
5346
|
+
clear: h,
|
|
5347
|
+
reload: P
|
|
5343
5348
|
}), (U, N) => {
|
|
5344
5349
|
const W = L("a-spin"), Q = L("a-select");
|
|
5345
5350
|
return w(), I("div", Iu, [
|
|
@@ -5354,8 +5359,9 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5354
5359
|
"max-tag-count": a.maxTagCount,
|
|
5355
5360
|
options: i.value,
|
|
5356
5361
|
allowClear: a.clearable,
|
|
5357
|
-
|
|
5358
|
-
|
|
5362
|
+
listHeight: a.listHeight,
|
|
5363
|
+
getPopupContainer: (E) => y(Ne)(a.mountainTop, e.getPopupContainer, E),
|
|
5364
|
+
onChange: S,
|
|
5359
5365
|
"show-search": ""
|
|
5360
5366
|
}, we({ _: 2 }, [
|
|
5361
5367
|
u.value ? {
|
|
@@ -5365,7 +5371,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5365
5371
|
]),
|
|
5366
5372
|
key: "0"
|
|
5367
5373
|
} : void 0
|
|
5368
|
-
]), 1032, ["value", "style", "disabled", "mode", "max-tag-count", "options", "allowClear", "getPopupContainer"])
|
|
5374
|
+
]), 1032, ["value", "style", "disabled", "mode", "max-tag-count", "options", "allowClear", "listHeight", "getPopupContainer"])
|
|
5369
5375
|
]);
|
|
5370
5376
|
};
|
|
5371
5377
|
}
|
|
@@ -5398,6 +5404,8 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5398
5404
|
//
|
|
5399
5405
|
mountainTop: { type: Boolean, default: !0 },
|
|
5400
5406
|
//
|
|
5407
|
+
listHeight: { type: Number, default: 256 },
|
|
5408
|
+
//
|
|
5401
5409
|
getPopupContainer: { type: Function, default: null },
|
|
5402
5410
|
//
|
|
5403
5411
|
style: { type: [String, Object], default: "width: 100%" }
|
|
@@ -5405,42 +5413,42 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5405
5413
|
},
|
|
5406
5414
|
emits: ["update:value", "update:label", "change"],
|
|
5407
5415
|
setup(e, { expose: t, emit: n }) {
|
|
5408
|
-
const a = e, l = $(a.value || null), r = $(a.label || ""), o = $({}), i = $([]), u = $(!1), s = n, p = "请输入" + a.title + "搜索", d = async (
|
|
5416
|
+
const a = e, l = $(a.value || null), r = $(a.label || ""), o = $({}), i = $([]), u = $(!1), s = n, p = "请输入" + a.title + "搜索", d = async (_, h = "0") => {
|
|
5409
5417
|
if (i.value = [], a.corpFilter && !c(a.corpId))
|
|
5410
5418
|
return [];
|
|
5411
|
-
if (c(
|
|
5412
|
-
let
|
|
5413
|
-
Object.assign(
|
|
5414
|
-
const D = await Ee(a.requestUrl,
|
|
5419
|
+
if (c(_)) {
|
|
5420
|
+
let P = { corpId: a.corpId, searchValue: ke(_), searchByKey: h };
|
|
5421
|
+
Object.assign(P, a.requestParams), u.value = !0;
|
|
5422
|
+
const D = await Ee(a.requestUrl, P);
|
|
5415
5423
|
return u.value = !1, i.value = D, D;
|
|
5416
5424
|
} else
|
|
5417
5425
|
return [];
|
|
5418
|
-
},
|
|
5419
|
-
l.value =
|
|
5420
|
-
|
|
5426
|
+
}, g = (_) => {
|
|
5427
|
+
l.value = _, f(_).then((h) => {
|
|
5428
|
+
v(!0);
|
|
5421
5429
|
});
|
|
5422
|
-
},
|
|
5423
|
-
d(
|
|
5424
|
-
}, 500), f = async (
|
|
5425
|
-
if (c(
|
|
5426
|
-
let
|
|
5427
|
-
return
|
|
5430
|
+
}, S = jt((_) => {
|
|
5431
|
+
d(_);
|
|
5432
|
+
}, 500), f = async (_) => {
|
|
5433
|
+
if (c(_)) {
|
|
5434
|
+
let h = i.value.filter((P) => P.value === _);
|
|
5435
|
+
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);
|
|
5428
5436
|
} else
|
|
5429
5437
|
return l.value = null, r.value = "", o.value = null, !0;
|
|
5430
|
-
}, m = () => r.value, O = () => l.value,
|
|
5431
|
-
l.value =
|
|
5432
|
-
|
|
5438
|
+
}, m = () => r.value, O = () => l.value, b = (_) => {
|
|
5439
|
+
l.value = _, f(_).then((h) => {
|
|
5440
|
+
h && v();
|
|
5433
5441
|
});
|
|
5434
|
-
},
|
|
5435
|
-
s("update:value", l.value), s("update:label", r.value),
|
|
5442
|
+
}, v = (_ = !1) => {
|
|
5443
|
+
s("update:value", l.value), s("update:label", r.value), _ && s("change", o.value);
|
|
5436
5444
|
};
|
|
5437
5445
|
return he(
|
|
5438
5446
|
() => [a.corpId, a.value],
|
|
5439
|
-
async ([
|
|
5440
|
-
const F =
|
|
5441
|
-
F && (i.value = [], r.value = null, l.value = null, o.value = null,
|
|
5442
|
-
N || d(
|
|
5443
|
-
|
|
5447
|
+
async ([_, h], [P, D]) => {
|
|
5448
|
+
const F = _ !== P, U = h !== l.value;
|
|
5449
|
+
F && (i.value = [], r.value = null, l.value = null, o.value = null, v()), U && f(h).then((N) => {
|
|
5450
|
+
N || d(h, "1").then(() => {
|
|
5451
|
+
b(h);
|
|
5444
5452
|
});
|
|
5445
5453
|
});
|
|
5446
5454
|
}
|
|
@@ -5454,34 +5462,35 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5454
5462
|
}), t({
|
|
5455
5463
|
getName: m,
|
|
5456
5464
|
getValue: O,
|
|
5457
|
-
setValue:
|
|
5458
|
-
}), (
|
|
5459
|
-
const
|
|
5465
|
+
setValue: b
|
|
5466
|
+
}), (_, h) => {
|
|
5467
|
+
const P = L("a-spin"), D = L("a-select");
|
|
5460
5468
|
return w(), I("div", Fu, [
|
|
5461
5469
|
q(D, {
|
|
5462
5470
|
value: l.value,
|
|
5463
|
-
"onUpdate:value":
|
|
5471
|
+
"onUpdate:value": h[0] || (h[0] = (F) => l.value = F),
|
|
5464
5472
|
placeholder: p,
|
|
5465
5473
|
style: me(a.style),
|
|
5466
5474
|
"filter-option": !1,
|
|
5467
5475
|
options: i.value,
|
|
5468
5476
|
disabled: a.disabled,
|
|
5469
5477
|
allowClear: a.clearable,
|
|
5478
|
+
listHeight: a.listHeight,
|
|
5470
5479
|
"default-active-first-option": !1,
|
|
5471
5480
|
"show-arrow": !1,
|
|
5472
|
-
getPopupContainer: (F) =>
|
|
5473
|
-
onChange:
|
|
5474
|
-
onSearch:
|
|
5481
|
+
getPopupContainer: (F) => y(Ne)(a.mountainTop, e.getPopupContainer, F),
|
|
5482
|
+
onChange: g,
|
|
5483
|
+
onSearch: y(S),
|
|
5475
5484
|
"show-search": ""
|
|
5476
5485
|
}, we({ _: 2 }, [
|
|
5477
5486
|
u.value ? {
|
|
5478
5487
|
name: "notFoundContent",
|
|
5479
5488
|
fn: B(() => [
|
|
5480
|
-
q(
|
|
5489
|
+
q(P, { size: "small" })
|
|
5481
5490
|
]),
|
|
5482
5491
|
key: "0"
|
|
5483
5492
|
} : void 0
|
|
5484
|
-
]), 1032, ["value", "style", "options", "disabled", "allowClear", "getPopupContainer", "onSearch"])
|
|
5493
|
+
]), 1032, ["value", "style", "options", "disabled", "allowClear", "listHeight", "getPopupContainer", "onSearch"])
|
|
5485
5494
|
]);
|
|
5486
5495
|
};
|
|
5487
5496
|
}
|
|
@@ -5513,13 +5522,13 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5513
5522
|
accordion: ""
|
|
5514
5523
|
}, {
|
|
5515
5524
|
default: B(() => [
|
|
5516
|
-
(w(!0), I(fe, null, Pe(
|
|
5525
|
+
(w(!0), I(fe, null, Pe(y(a), (d) => (w(), j(s, {
|
|
5517
5526
|
key: d,
|
|
5518
5527
|
forceRender: "",
|
|
5519
5528
|
showArrow: t.showArrow
|
|
5520
5529
|
}, {
|
|
5521
5530
|
header: B(() => [
|
|
5522
|
-
|
|
5531
|
+
y(l).length === 1 ? re(i.$slots, "header", { key: 0 }) : (w(), I("span", Hu, ae(o.value[d]), 1))
|
|
5523
5532
|
]),
|
|
5524
5533
|
default: B(() => [
|
|
5525
5534
|
re(i.$slots, d)
|
|
@@ -5622,18 +5631,18 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5622
5631
|
o.value = p;
|
|
5623
5632
|
}
|
|
5624
5633
|
), (p, d) => {
|
|
5625
|
-
const
|
|
5626
|
-
return w(), j(
|
|
5634
|
+
const g = L("a-tab-pane"), S = L("a-tabs");
|
|
5635
|
+
return w(), j(S, {
|
|
5627
5636
|
activeKey: o.value,
|
|
5628
5637
|
"onUpdate:activeKey": d[0] || (d[0] = (f) => o.value = f),
|
|
5629
5638
|
type: n.type,
|
|
5630
5639
|
"tab-position": n.position,
|
|
5631
5640
|
tabBarGutter: n.position === "left" ? 4 : 25,
|
|
5632
|
-
tabBarStyle: { margin: 0, backgroundColor:
|
|
5641
|
+
tabBarStyle: { margin: 0, backgroundColor: y(a) },
|
|
5633
5642
|
onChange: s
|
|
5634
5643
|
}, we({
|
|
5635
5644
|
default: B(() => [
|
|
5636
|
-
(w(!0), I(fe, null, Pe(
|
|
5645
|
+
(w(!0), I(fe, null, Pe(y(r), (f, m) => (w(), j(g, {
|
|
5637
5646
|
key: f,
|
|
5638
5647
|
forceRender: n.forceRender && !n.notForceRender?.includes(f),
|
|
5639
5648
|
style: me(n.position === "left" ? { paddingLeft: "0" } : {})
|
|
@@ -5642,7 +5651,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5642
5651
|
K("span", {
|
|
5643
5652
|
style: me(m === 0 && n.position === "top" ? { marginLeft: "10px" } : {})
|
|
5644
5653
|
}, [
|
|
5645
|
-
|
|
5654
|
+
y(l).includes("header") ? re(p.$slots, "header", {
|
|
5646
5655
|
key: 0,
|
|
5647
5656
|
tabKey: f
|
|
5648
5657
|
}) : (w(), I(fe, { key: 1 }, [
|
|
@@ -5659,7 +5668,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5659
5668
|
]),
|
|
5660
5669
|
_: 2
|
|
5661
5670
|
}, [
|
|
5662
|
-
|
|
5671
|
+
y(l).includes("rightExtra") ? {
|
|
5663
5672
|
name: "rightExtra",
|
|
5664
5673
|
fn: B(() => [
|
|
5665
5674
|
re(p.$slots, "rightExtra")
|