liyu-pc-base 1.0.16 → 1.0.18
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/{SearchRender-48437a40.js → SearchRender-d7699c48.js} +11438 -12046
- package/dist/SearchRender-d7699c48.js.map +1 -0
- package/dist/components/index.js +613 -604
- package/dist/components/index.js.map +1 -1
- package/dist/components/remotePages/index.js +1683 -1430
- package/dist/components/remotePages/index.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/{lodash-14d7cb6d.js → lodash-18e68795.js} +625 -619
- package/dist/{lodash-14d7cb6d.js.map → lodash-18e68795.js.map} +1 -1
- package/dist/modal-tools-e78a01c2.js +4905 -0
- package/dist/modal-tools-e78a01c2.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/utils/function.js +1 -1
- package/dist/utils/hooks/useFetchData.js +1 -1
- package/package.json +3 -2
- package/dist/SearchRender-48437a40.js.map +0 -1
- package/dist/modal-tools-05a597e4.js +0 -4271
- package/dist/modal-tools-05a597e4.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { reactive as
|
|
3
|
-
import { m as
|
|
4
|
-
import { Modal as
|
|
5
|
-
import { ExclamationCircleOutlined as
|
|
6
|
-
import { getApiData as
|
|
7
|
-
import { getApiPermission as
|
|
8
|
-
import { l as
|
|
9
|
-
const
|
|
1
|
+
import { t as N, i as Q, j as B, m as X, v as pl, p as fl } from "../../init-plugin-3dcd1452.js";
|
|
2
|
+
import { reactive as T, createVNode as x, defineComponent as G, provide as ml, watch as de, computed as V, onMounted as vt, onUnmounted as _l, Teleport as gl, ref as Ct, TransitionGroup as xt, shallowRef as le, render as Xe, toRaw as hl, watchEffect as Ke } from "vue";
|
|
3
|
+
import { m as R, q as yl, av as Qe, aw as bl, a6 as ie, _ as $, a8 as ze, a5 as vl, H as wt, i as z, h as F, a9 as $t, Q as Cl, g as Pt, e as It, a0 as Z, a1 as Ot, ad as ge, af as he, ae as ye, ag as Ee, ax as Tt, f as Ne, E as xl, ay as wl, az as ee, d as $l, L as Pl, aA as xe, aB as Ye, u as Il, aC as Ol, aD as Tl, aE as Sl, aF as Ml, aG as St, aH as Al, aI as kl, aJ as Vl, aK as jl, ap as Dl, aq as Kl, aL as zl, aM as El, aN as Nl, b as ql, aO as Ll, aP as Rl, aQ as Fl, aR as Hl, ab as Gl } from "../../modal-tools-e78a01c2.js";
|
|
4
|
+
import { Modal as Ze, message as H, notification as te } from "ant-design-vue";
|
|
5
|
+
import { ExclamationCircleOutlined as et } from "@ant-design/icons-vue";
|
|
6
|
+
import { getApiData as U } from "../../api/api-model.js";
|
|
7
|
+
import { getApiPermission as pe, getUrl as J } from "./utils.js";
|
|
8
|
+
import { c as Bl, g as Ul, l as ae } from "../../lodash-18e68795.js";
|
|
9
|
+
const Wl = () => ({
|
|
10
10
|
baseColumns: [
|
|
11
11
|
{
|
|
12
12
|
title: "序号",
|
|
@@ -185,15 +185,15 @@ const ql = () => ({
|
|
|
185
185
|
resizable: !0
|
|
186
186
|
}
|
|
187
187
|
],
|
|
188
|
-
event_obj:
|
|
188
|
+
event_obj: N(),
|
|
189
189
|
is_show_advantage: !1,
|
|
190
190
|
is_show_normal_search: !0,
|
|
191
191
|
is_only_show_advantage: !1,
|
|
192
192
|
is_only_show_normal_search: !0
|
|
193
|
-
}),
|
|
193
|
+
}), Jl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
194
194
|
__proto__: null,
|
|
195
|
-
default:
|
|
196
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
195
|
+
default: Wl
|
|
196
|
+
}, Symbol.toStringTag, { value: "Module" })), Xl = () => {
|
|
197
197
|
const e = {
|
|
198
198
|
settings: {
|
|
199
199
|
labelAlign: "right",
|
|
@@ -247,7 +247,7 @@ const ql = () => ({
|
|
|
247
247
|
}
|
|
248
248
|
],
|
|
249
249
|
rules: {},
|
|
250
|
-
model:
|
|
250
|
+
model: T({
|
|
251
251
|
is_active: !0,
|
|
252
252
|
is_auth: "",
|
|
253
253
|
name: "",
|
|
@@ -368,7 +368,7 @@ const ql = () => ({
|
|
|
368
368
|
}
|
|
369
369
|
],
|
|
370
370
|
rules: {},
|
|
371
|
-
model:
|
|
371
|
+
model: T({
|
|
372
372
|
name: "",
|
|
373
373
|
url: "",
|
|
374
374
|
is_auth: null
|
|
@@ -471,34 +471,34 @@ const ql = () => ({
|
|
|
471
471
|
queryConditionGroupData: null,
|
|
472
472
|
isView: !1
|
|
473
473
|
};
|
|
474
|
-
},
|
|
474
|
+
}, Ql = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
475
475
|
__proto__: null,
|
|
476
|
-
default:
|
|
476
|
+
default: Xl
|
|
477
477
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
478
|
-
async function
|
|
479
|
-
return
|
|
478
|
+
async function Yl(e) {
|
|
479
|
+
return Q().post("/permission/import_apiurl", e);
|
|
480
480
|
}
|
|
481
|
-
async function
|
|
482
|
-
return
|
|
481
|
+
async function tt(e) {
|
|
482
|
+
return Q().post("/permission/change_apiurl_auth", e);
|
|
483
483
|
}
|
|
484
|
-
const
|
|
484
|
+
const Mt = [
|
|
485
485
|
{
|
|
486
486
|
name: "设为需要授权",
|
|
487
487
|
type: "dropdown",
|
|
488
488
|
clazz: "primary",
|
|
489
489
|
is_show: ({ record: e }) => e.is_active && !e.is_auth,
|
|
490
490
|
cb: ({ record: e, current_org: t }) => {
|
|
491
|
-
|
|
491
|
+
Ze.confirm({
|
|
492
492
|
title: "是否设为需要授权?",
|
|
493
|
-
icon:
|
|
493
|
+
icon: x(et),
|
|
494
494
|
onOk() {
|
|
495
495
|
return new Promise((l) => {
|
|
496
|
-
|
|
496
|
+
tt({
|
|
497
497
|
org_id: t.id,
|
|
498
498
|
apiurl_id: e.id,
|
|
499
499
|
is_auth: !0
|
|
500
500
|
}).then((a) => {
|
|
501
|
-
|
|
501
|
+
H.success("操作成功"), Object.assign(e, a), l(null), N().emit("refresh");
|
|
502
502
|
});
|
|
503
503
|
}).catch(() => console.log("Oops errors!"));
|
|
504
504
|
},
|
|
@@ -513,17 +513,17 @@ const It = [
|
|
|
513
513
|
clazz: "primary",
|
|
514
514
|
is_show: ({ record: e }) => e.is_active && e.is_auth,
|
|
515
515
|
cb: ({ record: e, current_org: t }) => {
|
|
516
|
-
|
|
516
|
+
Ze.confirm({
|
|
517
517
|
title: "是否设为无需授权?",
|
|
518
|
-
icon:
|
|
518
|
+
icon: x(et),
|
|
519
519
|
onOk() {
|
|
520
520
|
return new Promise((l) => {
|
|
521
|
-
|
|
521
|
+
tt({
|
|
522
522
|
org_id: t.id,
|
|
523
523
|
apiurl_id: e.id,
|
|
524
524
|
is_auth: !1
|
|
525
525
|
}).then((a) => {
|
|
526
|
-
|
|
526
|
+
H.success("操作成功"), Object.assign(e, a), l(null), N().emit("refresh");
|
|
527
527
|
});
|
|
528
528
|
}).catch(() => console.log("Oops errors!"));
|
|
529
529
|
},
|
|
@@ -532,16 +532,16 @@ const It = [
|
|
|
532
532
|
});
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
|
-
],
|
|
535
|
+
], Ie = {
|
|
536
536
|
creatCol: [],
|
|
537
537
|
updateCol: []
|
|
538
|
-
},
|
|
538
|
+
}, At = [
|
|
539
539
|
{
|
|
540
540
|
name: "导入接口",
|
|
541
541
|
type: "dropdown",
|
|
542
542
|
clazz: "primary",
|
|
543
543
|
cb: () => {
|
|
544
|
-
const e =
|
|
544
|
+
const e = T({
|
|
545
545
|
visible: !0,
|
|
546
546
|
title: "导入api接口json文件",
|
|
547
547
|
loading: !1,
|
|
@@ -567,31 +567,31 @@ const It = [
|
|
|
567
567
|
rules: {
|
|
568
568
|
api_json: [{ username: !0, message: "请填写账号名称" }]
|
|
569
569
|
},
|
|
570
|
-
model:
|
|
570
|
+
model: T({
|
|
571
571
|
org_id: current_org.id,
|
|
572
572
|
api_json: ""
|
|
573
573
|
})
|
|
574
574
|
},
|
|
575
575
|
options: {},
|
|
576
576
|
ok: (t) => new Promise((l) => {
|
|
577
|
-
e.loading = !0,
|
|
577
|
+
e.loading = !0, Yl({
|
|
578
578
|
...t
|
|
579
579
|
}).then(() => {
|
|
580
|
-
|
|
580
|
+
H.success("导入成功"), l(null);
|
|
581
581
|
}).finally(() => {
|
|
582
582
|
e.loading = !1;
|
|
583
583
|
});
|
|
584
584
|
})
|
|
585
585
|
});
|
|
586
|
-
|
|
586
|
+
R(e);
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
|
-
],
|
|
589
|
+
], Zl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
590
590
|
__proto__: null,
|
|
591
|
-
btn_list:
|
|
592
|
-
config:
|
|
593
|
-
head_btn_list:
|
|
594
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
591
|
+
btn_list: Mt,
|
|
592
|
+
config: Ie,
|
|
593
|
+
head_btn_list: At
|
|
594
|
+
}, Symbol.toStringTag, { value: "Module" })), ea = () => {
|
|
595
595
|
const e = {
|
|
596
596
|
settings: {
|
|
597
597
|
labelAlign: "right",
|
|
@@ -645,7 +645,7 @@ const It = [
|
|
|
645
645
|
}
|
|
646
646
|
],
|
|
647
647
|
rules: {},
|
|
648
|
-
model:
|
|
648
|
+
model: T({
|
|
649
649
|
is_active: !0,
|
|
650
650
|
is_auth: "",
|
|
651
651
|
name: "",
|
|
@@ -668,7 +668,7 @@ const It = [
|
|
|
668
668
|
settings: {
|
|
669
669
|
labelAlign: "right",
|
|
670
670
|
layout: "vertical",
|
|
671
|
-
col:
|
|
671
|
+
col: Ie.creatCol
|
|
672
672
|
},
|
|
673
673
|
fields: [
|
|
674
674
|
{
|
|
@@ -726,7 +726,7 @@ const It = [
|
|
|
726
726
|
settings: {
|
|
727
727
|
labelAlign: "right",
|
|
728
728
|
layout: "vertical",
|
|
729
|
-
col:
|
|
729
|
+
col: Ie.creatCol
|
|
730
730
|
},
|
|
731
731
|
fields: [
|
|
732
732
|
{
|
|
@@ -766,7 +766,7 @@ const It = [
|
|
|
766
766
|
}
|
|
767
767
|
],
|
|
768
768
|
rules: {},
|
|
769
|
-
model:
|
|
769
|
+
model: T({
|
|
770
770
|
name: "",
|
|
771
771
|
url: "",
|
|
772
772
|
is_auth: null
|
|
@@ -872,9 +872,9 @@ const It = [
|
|
|
872
872
|
apiurl_id: "id"
|
|
873
873
|
}
|
|
874
874
|
},
|
|
875
|
-
btn_list:
|
|
876
|
-
head_btn_list:
|
|
877
|
-
event_obj:
|
|
875
|
+
btn_list: Mt,
|
|
876
|
+
head_btn_list: At,
|
|
877
|
+
event_obj: N(),
|
|
878
878
|
base_search_condition_config_list: [],
|
|
879
879
|
default_search_condition_config_list: [[]],
|
|
880
880
|
condition_group_config_list: [],
|
|
@@ -885,10 +885,10 @@ const It = [
|
|
|
885
885
|
queryConditionGroupData: null,
|
|
886
886
|
isView: !1
|
|
887
887
|
};
|
|
888
|
-
},
|
|
888
|
+
}, ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
889
889
|
__proto__: null,
|
|
890
|
-
default:
|
|
891
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
890
|
+
default: ea
|
|
891
|
+
}, Symbol.toStringTag, { value: "Module" })), la = () => {
|
|
892
892
|
const e = {
|
|
893
893
|
settings: {
|
|
894
894
|
labelAlign: "right",
|
|
@@ -964,7 +964,7 @@ const It = [
|
|
|
964
964
|
}
|
|
965
965
|
],
|
|
966
966
|
rules: {},
|
|
967
|
-
model:
|
|
967
|
+
model: T({
|
|
968
968
|
name: "",
|
|
969
969
|
appid: "",
|
|
970
970
|
corpid: "",
|
|
@@ -1126,7 +1126,7 @@ const It = [
|
|
|
1126
1126
|
appkey: [{ required: !0, message: "请填写APPKey" }],
|
|
1127
1127
|
appsecret: [{ required: !0, message: "请填写APPSecret" }]
|
|
1128
1128
|
},
|
|
1129
|
-
model:
|
|
1129
|
+
model: T({
|
|
1130
1130
|
name: "",
|
|
1131
1131
|
corpid: "",
|
|
1132
1132
|
appid: "",
|
|
@@ -1247,32 +1247,32 @@ const It = [
|
|
|
1247
1247
|
isView: !1,
|
|
1248
1248
|
is_pagination: !1
|
|
1249
1249
|
};
|
|
1250
|
-
},
|
|
1250
|
+
}, aa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1251
1251
|
__proto__: null,
|
|
1252
|
-
default:
|
|
1253
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1252
|
+
default: la
|
|
1253
|
+
}, Symbol.toStringTag, { value: "Module" })), kt = [
|
|
1254
1254
|
{
|
|
1255
1255
|
name: "修改",
|
|
1256
1256
|
clazz: "primary",
|
|
1257
1257
|
type: "dropdown",
|
|
1258
1258
|
is_show: ({ record: e }) => e.is_active,
|
|
1259
1259
|
cb: ({ record: e }) => {
|
|
1260
|
-
var
|
|
1261
|
-
const t =
|
|
1262
|
-
e.org_id_list && e.org_id_list.length > 0 && e.org_id_list.forEach((
|
|
1263
|
-
l.push(
|
|
1264
|
-
}), e.url_id_list && e.url_id_list.length > 0 && e.url_id_list.forEach((
|
|
1265
|
-
a.push(
|
|
1260
|
+
var f, p, _, g;
|
|
1261
|
+
const t = B(), l = [], a = [];
|
|
1262
|
+
e.org_id_list && e.org_id_list.length > 0 && e.org_id_list.forEach((m) => {
|
|
1263
|
+
l.push(m.id);
|
|
1264
|
+
}), e.url_id_list && e.url_id_list.length > 0 && e.url_id_list.forEach((m) => {
|
|
1265
|
+
a.push(m.id);
|
|
1266
1266
|
});
|
|
1267
|
-
let n,
|
|
1268
|
-
e.is_menu ? e.component ? (e.component == "@/components/remotePages/index.vue" ?
|
|
1269
|
-
let
|
|
1270
|
-
if (e.state && ((
|
|
1271
|
-
const
|
|
1272
|
-
|
|
1267
|
+
let n, o;
|
|
1268
|
+
e.is_menu ? e.component ? (e.component == "@/components/remotePages/index.vue" ? o = 0 : o = 1, n = 0) : n = 1 : n = 2;
|
|
1269
|
+
let i = null, r = null;
|
|
1270
|
+
if (e.state && ((f = e.state) != null && f.split("-")) && ((_ = (p = e.state) == null ? void 0 : p.split("-")) == null ? void 0 : _.length) > 0) {
|
|
1271
|
+
const m = (g = e.state) == null ? void 0 : g.split("-");
|
|
1272
|
+
m.length == 3 ? (i = m[m.length - 1], m.pop(), r = m.join("-")) : r = e.state;
|
|
1273
1273
|
} else
|
|
1274
|
-
|
|
1275
|
-
const c =
|
|
1274
|
+
r = e.state;
|
|
1275
|
+
const c = T({
|
|
1276
1276
|
open: !0,
|
|
1277
1277
|
loading: !1,
|
|
1278
1278
|
title: "修改菜单",
|
|
@@ -1494,7 +1494,7 @@ const It = [
|
|
|
1494
1494
|
]
|
|
1495
1495
|
}
|
|
1496
1496
|
],
|
|
1497
|
-
rules:
|
|
1497
|
+
rules: T({
|
|
1498
1498
|
suffix: [
|
|
1499
1499
|
{
|
|
1500
1500
|
pattern: /^[^-]*$/,
|
|
@@ -1504,21 +1504,21 @@ const It = [
|
|
|
1504
1504
|
],
|
|
1505
1505
|
state: [{ pattern: /^[^-]+-[^-]+$/, message: "路由中间必须带有'-'" }]
|
|
1506
1506
|
}),
|
|
1507
|
-
model:
|
|
1507
|
+
model: T({
|
|
1508
1508
|
name: e.name,
|
|
1509
1509
|
menu_id: e.id,
|
|
1510
1510
|
platform: e.platform,
|
|
1511
1511
|
icon: e.icon,
|
|
1512
|
-
state:
|
|
1512
|
+
state: r,
|
|
1513
1513
|
sort: e.sort,
|
|
1514
1514
|
parent_id: e.parent_id,
|
|
1515
1515
|
component: e.component,
|
|
1516
1516
|
org_ids: l,
|
|
1517
1517
|
url_ids: a,
|
|
1518
1518
|
menu_project: e.menu_project,
|
|
1519
|
-
suffix:
|
|
1519
|
+
suffix: i,
|
|
1520
1520
|
type: n,
|
|
1521
|
-
component_type:
|
|
1521
|
+
component_type: o,
|
|
1522
1522
|
update_field_list: [
|
|
1523
1523
|
"name",
|
|
1524
1524
|
"platform",
|
|
@@ -1537,9 +1537,9 @@ const It = [
|
|
|
1537
1537
|
]
|
|
1538
1538
|
}),
|
|
1539
1539
|
watch: {
|
|
1540
|
-
type: (
|
|
1541
|
-
|
|
1542
|
-
|
|
1540
|
+
type: (m) => {
|
|
1541
|
+
m.type == 0 && setTimeout(() => {
|
|
1542
|
+
m.component_type = 0;
|
|
1543
1543
|
}, 500);
|
|
1544
1544
|
}
|
|
1545
1545
|
},
|
|
@@ -1559,42 +1559,42 @@ const It = [
|
|
|
1559
1559
|
]
|
|
1560
1560
|
}
|
|
1561
1561
|
},
|
|
1562
|
-
ok: (
|
|
1563
|
-
var
|
|
1564
|
-
let
|
|
1565
|
-
|
|
1566
|
-
let
|
|
1567
|
-
|
|
1568
|
-
let
|
|
1569
|
-
if (
|
|
1570
|
-
|
|
1562
|
+
ok: (m) => new Promise((w) => {
|
|
1563
|
+
var u, y, d;
|
|
1564
|
+
let C = "", O = "";
|
|
1565
|
+
m.org_ids && m.org_ids.length > 0 && (C = m.org_ids.join(",")), m.url_ids && m.url_ids.length > 0 && (O = m.url_ids.join(","));
|
|
1566
|
+
let P = m.state;
|
|
1567
|
+
m.suffix && (P = P + "-" + m.suffix);
|
|
1568
|
+
let A = null, j = null;
|
|
1569
|
+
if (m.type == 0 && m.state && ((u = m.state) != null && u.split("-")) && ((y = m.state) == null ? void 0 : y.split("-").length) != 2) {
|
|
1570
|
+
te.info({
|
|
1571
1571
|
message: "温馨提示",
|
|
1572
1572
|
description: "路由 格式不正确!应为 <app_flag>-<model_name>"
|
|
1573
1573
|
});
|
|
1574
1574
|
return;
|
|
1575
1575
|
} else
|
|
1576
|
-
|
|
1577
|
-
if (e.state ==
|
|
1578
|
-
|
|
1576
|
+
m.type == 2 ? (A = null, j = null) : (A = "/" + ((d = m.state) == null ? void 0 : d.split("-")[0]) + "/" + P, j = P);
|
|
1577
|
+
if (e.state == P && (A = null, j = null), m.type == 0 && m.component_type == 0 && (m.component = "@/components/remotePages/index.vue"), m.type == 0 && !m.component) {
|
|
1578
|
+
te.info({
|
|
1579
1579
|
message: "温馨提示",
|
|
1580
1580
|
description: "请填写组件地址!"
|
|
1581
1581
|
});
|
|
1582
1582
|
return;
|
|
1583
1583
|
}
|
|
1584
|
-
const
|
|
1585
|
-
c.loading = !0,
|
|
1584
|
+
const S = m.type != 2;
|
|
1585
|
+
c.loading = !0, U(
|
|
1586
1586
|
{
|
|
1587
|
-
...
|
|
1588
|
-
org_ids:
|
|
1589
|
-
is_menu:
|
|
1590
|
-
state:
|
|
1591
|
-
menu_name:
|
|
1592
|
-
menu_path:
|
|
1593
|
-
url_ids:
|
|
1587
|
+
...m,
|
|
1588
|
+
org_ids: C,
|
|
1589
|
+
is_menu: S,
|
|
1590
|
+
state: P,
|
|
1591
|
+
menu_name: j,
|
|
1592
|
+
menu_path: A,
|
|
1593
|
+
url_ids: O
|
|
1594
1594
|
},
|
|
1595
1595
|
"/permission/update_menu"
|
|
1596
1596
|
).then(() => {
|
|
1597
|
-
|
|
1597
|
+
H.success("修改成功"), N().emit("refresh"), w(null);
|
|
1598
1598
|
}).finally(() => {
|
|
1599
1599
|
c.loading = !1;
|
|
1600
1600
|
});
|
|
@@ -1616,30 +1616,30 @@ const It = [
|
|
|
1616
1616
|
valueKey: "project",
|
|
1617
1617
|
postUrl: "/i18n/query_language_project_list",
|
|
1618
1618
|
span: 12
|
|
1619
|
-
}),
|
|
1619
|
+
}), R(c);
|
|
1620
1620
|
}
|
|
1621
1621
|
},
|
|
1622
1622
|
{
|
|
1623
1623
|
name: "新建子菜单",
|
|
1624
1624
|
clazz: "primary",
|
|
1625
1625
|
cb: ({ record: e }) => {
|
|
1626
|
-
const t =
|
|
1627
|
-
e.org_id_list && e.org_id_list.length > 0 && e.org_id_list.forEach((
|
|
1628
|
-
l.push(
|
|
1626
|
+
const t = B(), l = [];
|
|
1627
|
+
e.org_id_list && e.org_id_list.length > 0 && e.org_id_list.forEach((o) => {
|
|
1628
|
+
l.push(o.id);
|
|
1629
1629
|
});
|
|
1630
1630
|
const a = [];
|
|
1631
|
-
|
|
1631
|
+
U(
|
|
1632
1632
|
{
|
|
1633
1633
|
is_active: !0,
|
|
1634
1634
|
pageSize: 2e3
|
|
1635
1635
|
},
|
|
1636
1636
|
"/org/query_org_for_login_list"
|
|
1637
|
-
).then((
|
|
1638
|
-
|
|
1639
|
-
a.push(
|
|
1637
|
+
).then((o) => {
|
|
1638
|
+
o && o.data && o.data.length > 0 && o.data.forEach((i) => {
|
|
1639
|
+
a.push(i.id);
|
|
1640
1640
|
});
|
|
1641
1641
|
});
|
|
1642
|
-
const n =
|
|
1642
|
+
const n = T({
|
|
1643
1643
|
open: !0,
|
|
1644
1644
|
loading: !1,
|
|
1645
1645
|
title: "新建子菜单",
|
|
@@ -1939,7 +1939,7 @@ const It = [
|
|
|
1939
1939
|
]
|
|
1940
1940
|
}
|
|
1941
1941
|
],
|
|
1942
|
-
rules:
|
|
1942
|
+
rules: T({
|
|
1943
1943
|
name: [{ required: !0, message: "请填写菜单名称" }],
|
|
1944
1944
|
state: [
|
|
1945
1945
|
{ required: !0, message: "请填写路由" },
|
|
@@ -1954,7 +1954,7 @@ const It = [
|
|
|
1954
1954
|
}
|
|
1955
1955
|
]
|
|
1956
1956
|
}),
|
|
1957
|
-
model:
|
|
1957
|
+
model: T({
|
|
1958
1958
|
name: null,
|
|
1959
1959
|
menu_id: null,
|
|
1960
1960
|
platform: "10",
|
|
@@ -1972,9 +1972,9 @@ const It = [
|
|
|
1972
1972
|
menu_project: e.menu_project
|
|
1973
1973
|
}),
|
|
1974
1974
|
watch: {
|
|
1975
|
-
type: (
|
|
1976
|
-
|
|
1977
|
-
|
|
1975
|
+
type: (o) => {
|
|
1976
|
+
o.type == 0 && setTimeout(() => {
|
|
1977
|
+
o.component_type = 0;
|
|
1978
1978
|
}, 500);
|
|
1979
1979
|
}
|
|
1980
1980
|
},
|
|
@@ -2002,53 +2002,53 @@ const It = [
|
|
|
2002
2002
|
]
|
|
2003
2003
|
}
|
|
2004
2004
|
},
|
|
2005
|
-
ok: (
|
|
2006
|
-
var
|
|
2007
|
-
let
|
|
2008
|
-
|
|
2009
|
-
let c =
|
|
2010
|
-
|
|
2011
|
-
let
|
|
2012
|
-
if (
|
|
2013
|
-
|
|
2005
|
+
ok: (o) => {
|
|
2006
|
+
var g, m, w;
|
|
2007
|
+
let i = "", r = "";
|
|
2008
|
+
o.org_ids && o.org_ids.length > 0 && (i = o.org_ids.join(",")), o.org_type == 0 && (i = a.join(",")), o.url_ids && o.url_ids.length > 0 && (r = o.url_ids.join(","));
|
|
2009
|
+
let c = o.state;
|
|
2010
|
+
o.suffix && (c = c + "-" + o.suffix);
|
|
2011
|
+
let f, p;
|
|
2012
|
+
if (o.type == 0 && o.state && ((g = o.state) != null && g.split("-")) && ((m = o.state) == null ? void 0 : m.split("-").length) != 2) {
|
|
2013
|
+
te.info({
|
|
2014
2014
|
message: "温馨提示",
|
|
2015
2015
|
description: "路由 格式不正确!应为 <app_flag>-<model_name>"
|
|
2016
2016
|
});
|
|
2017
2017
|
return;
|
|
2018
2018
|
} else
|
|
2019
|
-
|
|
2020
|
-
if (
|
|
2021
|
-
|
|
2019
|
+
o.type == 2 ? (f = null, p = null) : (f = "/" + ((w = o.state) == null ? void 0 : w.split("-")[0]) + "/" + c, p = c);
|
|
2020
|
+
if (o.type == 0 && o.component_type == 0 && (o.component = "@/components/remotePages/index.vue"), o.type == 0 && !o.component) {
|
|
2021
|
+
te.info({
|
|
2022
2022
|
message: "温馨提示",
|
|
2023
2023
|
description: "请填写组件地址!"
|
|
2024
2024
|
});
|
|
2025
2025
|
return;
|
|
2026
2026
|
}
|
|
2027
|
-
const
|
|
2028
|
-
n.loading = !0,
|
|
2029
|
-
|
|
2030
|
-
...
|
|
2031
|
-
org_ids:
|
|
2032
|
-
url_ids:
|
|
2027
|
+
const _ = o.type != 2;
|
|
2028
|
+
n.loading = !0, o.is_all_org ? yl().then((C) => {
|
|
2029
|
+
i = C.data.map((O) => O.id).join(","), Qe({
|
|
2030
|
+
...o,
|
|
2031
|
+
org_ids: i,
|
|
2032
|
+
url_ids: r,
|
|
2033
2033
|
state: c,
|
|
2034
|
-
menu_name:
|
|
2035
|
-
menu_path:
|
|
2036
|
-
is_menu:
|
|
2034
|
+
menu_name: p,
|
|
2035
|
+
menu_path: f,
|
|
2036
|
+
is_menu: _
|
|
2037
2037
|
}).then(() => {
|
|
2038
|
-
|
|
2038
|
+
H.success("新增菜单成功"), N().emit("refresh");
|
|
2039
2039
|
}).finally(() => {
|
|
2040
2040
|
n.loading = !1;
|
|
2041
2041
|
});
|
|
2042
|
-
}) :
|
|
2043
|
-
...
|
|
2044
|
-
org_ids:
|
|
2045
|
-
url_ids:
|
|
2042
|
+
}) : Qe({
|
|
2043
|
+
...o,
|
|
2044
|
+
org_ids: i,
|
|
2045
|
+
url_ids: r,
|
|
2046
2046
|
state: c,
|
|
2047
|
-
menu_name:
|
|
2048
|
-
menu_path:
|
|
2049
|
-
is_menu:
|
|
2047
|
+
menu_name: p,
|
|
2048
|
+
menu_path: f,
|
|
2049
|
+
is_menu: _
|
|
2050
2050
|
}).then(() => {
|
|
2051
|
-
|
|
2051
|
+
H.success("新增菜单成功"), N().emit("refresh");
|
|
2052
2052
|
}).finally(() => {
|
|
2053
2053
|
n.loading = !1;
|
|
2054
2054
|
});
|
|
@@ -2068,13 +2068,13 @@ const It = [
|
|
|
2068
2068
|
valueKey: "project",
|
|
2069
2069
|
postUrl: "/i18n/query_language_project_list",
|
|
2070
2070
|
span: 12
|
|
2071
|
-
}),
|
|
2071
|
+
}), R(n);
|
|
2072
2072
|
}
|
|
2073
2073
|
}
|
|
2074
|
-
],
|
|
2074
|
+
], na = {
|
|
2075
2075
|
creatCol: [],
|
|
2076
2076
|
updateCol: []
|
|
2077
|
-
},
|
|
2077
|
+
}, Vt = [
|
|
2078
2078
|
// {
|
|
2079
2079
|
// name: '批量新建按钮',
|
|
2080
2080
|
// clazz: 'primary',
|
|
@@ -2097,20 +2097,20 @@ const It = [
|
|
|
2097
2097
|
name: "新建菜单",
|
|
2098
2098
|
clazz: "primary",
|
|
2099
2099
|
cb: () => {
|
|
2100
|
-
const e =
|
|
2101
|
-
|
|
2100
|
+
const e = X(), t = B(), l = e.currentOrg, a = [];
|
|
2101
|
+
U(
|
|
2102
2102
|
{
|
|
2103
2103
|
org_id: l == null ? void 0 : l.org_id,
|
|
2104
2104
|
is_active: !0,
|
|
2105
2105
|
pageSize: 2e3
|
|
2106
2106
|
},
|
|
2107
2107
|
"/org/query_org_for_login_list"
|
|
2108
|
-
).then((
|
|
2109
|
-
|
|
2110
|
-
a.push(
|
|
2108
|
+
).then((o) => {
|
|
2109
|
+
o && o.data && o.data.length > 0 && o.data.forEach((i) => {
|
|
2110
|
+
a.push(i.id);
|
|
2111
2111
|
});
|
|
2112
2112
|
});
|
|
2113
|
-
const n =
|
|
2113
|
+
const n = T({
|
|
2114
2114
|
open: !0,
|
|
2115
2115
|
loading: !1,
|
|
2116
2116
|
title: "新建菜单",
|
|
@@ -2410,7 +2410,7 @@ const It = [
|
|
|
2410
2410
|
]
|
|
2411
2411
|
}
|
|
2412
2412
|
],
|
|
2413
|
-
rules:
|
|
2413
|
+
rules: T({
|
|
2414
2414
|
name: [{ required: !0, message: "请填写菜单名称" }],
|
|
2415
2415
|
state: [
|
|
2416
2416
|
{ required: !0, message: "请填写路由" },
|
|
@@ -2425,7 +2425,7 @@ const It = [
|
|
|
2425
2425
|
}
|
|
2426
2426
|
]
|
|
2427
2427
|
}),
|
|
2428
|
-
model:
|
|
2428
|
+
model: T({
|
|
2429
2429
|
name: "",
|
|
2430
2430
|
platform: "10",
|
|
2431
2431
|
state: "",
|
|
@@ -2443,9 +2443,9 @@ const It = [
|
|
|
2443
2443
|
suffix: null
|
|
2444
2444
|
}),
|
|
2445
2445
|
watch: {
|
|
2446
|
-
type: (
|
|
2447
|
-
|
|
2448
|
-
|
|
2446
|
+
type: (o) => {
|
|
2447
|
+
o.type == 0 && setTimeout(() => {
|
|
2448
|
+
o.component_type = 0;
|
|
2449
2449
|
}, 500);
|
|
2450
2450
|
}
|
|
2451
2451
|
},
|
|
@@ -2473,43 +2473,43 @@ const It = [
|
|
|
2473
2473
|
]
|
|
2474
2474
|
}
|
|
2475
2475
|
},
|
|
2476
|
-
ok: (
|
|
2477
|
-
var
|
|
2478
|
-
let
|
|
2479
|
-
|
|
2480
|
-
let
|
|
2481
|
-
|
|
2482
|
-
let
|
|
2483
|
-
if (
|
|
2484
|
-
|
|
2476
|
+
ok: (o) => new Promise((i) => {
|
|
2477
|
+
var m, w, C;
|
|
2478
|
+
let r = "", c = "";
|
|
2479
|
+
o.org_ids && o.org_ids.length > 0 && (r = o.org_ids.join(",")), o.org_type == 0 && (r = a.join(",")), o.url_ids && o.url_ids.length > 0 && (c = o.url_ids.join(","));
|
|
2480
|
+
let f = o.state;
|
|
2481
|
+
o.suffix && (f = f + "-" + o.suffix);
|
|
2482
|
+
let p, _;
|
|
2483
|
+
if (o.type == 0 && o.state && ((m = o.state) != null && m.split("-")) && ((w = o.state) == null ? void 0 : w.split("-").length) != 2) {
|
|
2484
|
+
te.info({
|
|
2485
2485
|
message: "温馨提示",
|
|
2486
2486
|
description: "路由 格式不正确!应为 <app_flag>-<model_name>"
|
|
2487
2487
|
});
|
|
2488
2488
|
return;
|
|
2489
2489
|
} else
|
|
2490
|
-
|
|
2491
|
-
if (
|
|
2492
|
-
|
|
2490
|
+
o.type == 2 ? (p = null, _ = null) : (p = "/" + ((C = o.state) == null ? void 0 : C.split("-")[0]) + "/" + f, _ = f);
|
|
2491
|
+
if (o.type == 0 && o.component_type == 0 && (o.component = "@/components/remotePages/index.vue"), o.type == 0 && !o.component) {
|
|
2492
|
+
te.info({
|
|
2493
2493
|
message: "温馨提示",
|
|
2494
2494
|
description: "请填写组件地址!"
|
|
2495
2495
|
});
|
|
2496
2496
|
return;
|
|
2497
2497
|
}
|
|
2498
|
-
const
|
|
2499
|
-
n.loading = !0,
|
|
2498
|
+
const g = o.type != 2;
|
|
2499
|
+
n.loading = !0, U(
|
|
2500
2500
|
{
|
|
2501
|
-
...
|
|
2501
|
+
...o,
|
|
2502
2502
|
org_id: l.id,
|
|
2503
|
-
is_menu:
|
|
2504
|
-
state:
|
|
2505
|
-
menu_name:
|
|
2506
|
-
menu_path:
|
|
2507
|
-
org_ids:
|
|
2503
|
+
is_menu: g,
|
|
2504
|
+
state: f,
|
|
2505
|
+
menu_name: _,
|
|
2506
|
+
menu_path: p,
|
|
2507
|
+
org_ids: r,
|
|
2508
2508
|
url_ids: c
|
|
2509
2509
|
},
|
|
2510
2510
|
"/permission/create_menu"
|
|
2511
2511
|
).then(() => {
|
|
2512
|
-
|
|
2512
|
+
H.success("创建成功"), N().emit("refresh"), i(null);
|
|
2513
2513
|
}).finally(() => {
|
|
2514
2514
|
n.loading = !1;
|
|
2515
2515
|
});
|
|
@@ -2529,7 +2529,7 @@ const It = [
|
|
|
2529
2529
|
valueKey: "project",
|
|
2530
2530
|
postUrl: "/i18n/query_language_project_list",
|
|
2531
2531
|
span: 12
|
|
2532
|
-
}),
|
|
2532
|
+
}), R(n);
|
|
2533
2533
|
}
|
|
2534
2534
|
},
|
|
2535
2535
|
{
|
|
@@ -2544,7 +2544,7 @@ const It = [
|
|
|
2544
2544
|
name: "导入完整菜单",
|
|
2545
2545
|
clazz: "primary",
|
|
2546
2546
|
cb: () => {
|
|
2547
|
-
const t =
|
|
2547
|
+
const t = X().currentOrg, l = T({
|
|
2548
2548
|
visible: !0,
|
|
2549
2549
|
loading: !1,
|
|
2550
2550
|
title: "导入菜单",
|
|
@@ -2567,21 +2567,21 @@ const It = [
|
|
|
2567
2567
|
}
|
|
2568
2568
|
],
|
|
2569
2569
|
rules: {},
|
|
2570
|
-
model:
|
|
2570
|
+
model: T({
|
|
2571
2571
|
org_id: t == null ? void 0 : t.id
|
|
2572
2572
|
}),
|
|
2573
2573
|
watch: {}
|
|
2574
2574
|
},
|
|
2575
2575
|
options: {},
|
|
2576
|
-
ok: (a) => (l.loading = !0, new Promise((
|
|
2577
|
-
|
|
2578
|
-
|
|
2576
|
+
ok: (a) => (l.loading = !0, new Promise((o) => {
|
|
2577
|
+
bl(a).then(() => {
|
|
2578
|
+
o(null), H.success("导入菜单成功");
|
|
2579
2579
|
}).finally(() => {
|
|
2580
2580
|
l.loading = !1;
|
|
2581
2581
|
});
|
|
2582
2582
|
}))
|
|
2583
2583
|
});
|
|
2584
|
-
|
|
2584
|
+
R(l);
|
|
2585
2585
|
}
|
|
2586
2586
|
},
|
|
2587
2587
|
{
|
|
@@ -2592,13 +2592,13 @@ const It = [
|
|
|
2592
2592
|
component: "ImportMenu"
|
|
2593
2593
|
}
|
|
2594
2594
|
}
|
|
2595
|
-
],
|
|
2595
|
+
], oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2596
2596
|
__proto__: null,
|
|
2597
|
-
btn_list:
|
|
2598
|
-
config:
|
|
2599
|
-
head_btn_list:
|
|
2600
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2601
|
-
const e =
|
|
2597
|
+
btn_list: kt,
|
|
2598
|
+
config: na,
|
|
2599
|
+
head_btn_list: Vt
|
|
2600
|
+
}, Symbol.toStringTag, { value: "Module" })), ia = () => {
|
|
2601
|
+
const e = B(), l = X().currentOrg, a = {
|
|
2602
2602
|
settings: {
|
|
2603
2603
|
labelAlign: "right",
|
|
2604
2604
|
layout: "inline"
|
|
@@ -2667,7 +2667,7 @@ const It = [
|
|
|
2667
2667
|
}
|
|
2668
2668
|
],
|
|
2669
2669
|
rules: {},
|
|
2670
|
-
model:
|
|
2670
|
+
model: T({
|
|
2671
2671
|
org_id: l.id,
|
|
2672
2672
|
aim_org_id: l.id,
|
|
2673
2673
|
tree_struct_simulation: !0,
|
|
@@ -2697,7 +2697,7 @@ const It = [
|
|
|
2697
2697
|
// 是否有【删除】按钮
|
|
2698
2698
|
is_recover: "permission/recover_menu"
|
|
2699
2699
|
// 是否有【恢复】按钮
|
|
2700
|
-
},
|
|
2700
|
+
}, o = {
|
|
2701
2701
|
update: {
|
|
2702
2702
|
menu_id: "id"
|
|
2703
2703
|
},
|
|
@@ -2711,7 +2711,7 @@ const It = [
|
|
|
2711
2711
|
org_id: "org_id",
|
|
2712
2712
|
menu_id: "id"
|
|
2713
2713
|
}
|
|
2714
|
-
},
|
|
2714
|
+
}, i = [
|
|
2715
2715
|
{
|
|
2716
2716
|
title: "id",
|
|
2717
2717
|
dataIndex: "id",
|
|
@@ -2849,7 +2849,7 @@ const It = [
|
|
|
2849
2849
|
fixed: "right"
|
|
2850
2850
|
}
|
|
2851
2851
|
];
|
|
2852
|
-
return e.VITE_APP_HAS_PROJECT && (
|
|
2852
|
+
return e.VITE_APP_HAS_PROJECT && (i.splice(5, 0, {
|
|
2853
2853
|
title: "模块",
|
|
2854
2854
|
dataIndex: "menu_project__name",
|
|
2855
2855
|
minWidth: 100,
|
|
@@ -2870,42 +2870,42 @@ const It = [
|
|
|
2870
2870
|
})), {
|
|
2871
2871
|
searchConfig: a,
|
|
2872
2872
|
queryData: "/permission/query_menu_list__tree",
|
|
2873
|
-
baseColumns:
|
|
2873
|
+
baseColumns: i,
|
|
2874
2874
|
titleList: n,
|
|
2875
|
-
api_fields:
|
|
2876
|
-
btn_list:
|
|
2877
|
-
head_btn_list:
|
|
2878
|
-
event_obj:
|
|
2875
|
+
api_fields: o,
|
|
2876
|
+
btn_list: kt,
|
|
2877
|
+
head_btn_list: Vt,
|
|
2878
|
+
event_obj: N(),
|
|
2879
2879
|
is_show_advantage: !1,
|
|
2880
2880
|
is_show_normal_search: !0,
|
|
2881
2881
|
is_only_show_advantage: !1,
|
|
2882
2882
|
is_only_show_normal_search: !0,
|
|
2883
2883
|
isView: !1
|
|
2884
2884
|
};
|
|
2885
|
-
},
|
|
2885
|
+
}, ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2886
2886
|
__proto__: null,
|
|
2887
|
-
default:
|
|
2887
|
+
default: ia
|
|
2888
2888
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2889
|
-
async function
|
|
2890
|
-
return
|
|
2889
|
+
async function sa(e) {
|
|
2890
|
+
return Q().post("/org/create_organization_by_role_template", e);
|
|
2891
2891
|
}
|
|
2892
|
-
async function
|
|
2893
|
-
return
|
|
2892
|
+
async function ua(e) {
|
|
2893
|
+
return Q().post("/sys/create_user", e);
|
|
2894
2894
|
}
|
|
2895
|
-
async function
|
|
2896
|
-
return
|
|
2895
|
+
async function ca(e) {
|
|
2896
|
+
return Q().post("/sys/update_user", e);
|
|
2897
2897
|
}
|
|
2898
|
-
const
|
|
2898
|
+
const jt = [], Oe = {
|
|
2899
2899
|
creatCol: [],
|
|
2900
2900
|
updateCol: []
|
|
2901
|
-
},
|
|
2901
|
+
}, Dt = [
|
|
2902
2902
|
{
|
|
2903
2903
|
name: "添加账套",
|
|
2904
2904
|
type: "dropdown",
|
|
2905
2905
|
is_show: !0,
|
|
2906
2906
|
clazz: "primary",
|
|
2907
2907
|
cb: () => {
|
|
2908
|
-
const e =
|
|
2908
|
+
const e = T({
|
|
2909
2909
|
visible: !0,
|
|
2910
2910
|
title: "新建账套",
|
|
2911
2911
|
loading: !1,
|
|
@@ -2945,32 +2945,32 @@ const kt = [], Ie = {
|
|
|
2945
2945
|
name: [{ required: !0, message: "请输入账套名称" }],
|
|
2946
2946
|
role_org_id: [{ required: !0, message: "请选择权限模板" }]
|
|
2947
2947
|
},
|
|
2948
|
-
model:
|
|
2948
|
+
model: T({
|
|
2949
2949
|
name: "",
|
|
2950
2950
|
role_org_id: ""
|
|
2951
2951
|
})
|
|
2952
2952
|
},
|
|
2953
2953
|
options: {},
|
|
2954
2954
|
ok: (t) => new Promise((l) => {
|
|
2955
|
-
e.loading = !0,
|
|
2955
|
+
e.loading = !0, sa({
|
|
2956
2956
|
...t
|
|
2957
2957
|
}).then(() => {
|
|
2958
|
-
|
|
2958
|
+
H.success("创建新账套成功"), l(null);
|
|
2959
2959
|
}).finally(() => {
|
|
2960
2960
|
e.loading = !1;
|
|
2961
2961
|
});
|
|
2962
2962
|
})
|
|
2963
2963
|
});
|
|
2964
|
-
|
|
2964
|
+
R(e);
|
|
2965
2965
|
}
|
|
2966
2966
|
}
|
|
2967
|
-
],
|
|
2967
|
+
], da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2968
2968
|
__proto__: null,
|
|
2969
|
-
btn_list:
|
|
2970
|
-
config:
|
|
2971
|
-
head_btn_list:
|
|
2972
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2973
|
-
const t =
|
|
2969
|
+
btn_list: jt,
|
|
2970
|
+
config: Oe,
|
|
2971
|
+
head_btn_list: Dt
|
|
2972
|
+
}, Symbol.toStringTag, { value: "Module" })), pa = () => {
|
|
2973
|
+
const t = X().currentOrg, l = {
|
|
2974
2974
|
settings: {
|
|
2975
2975
|
labelAlign: "right",
|
|
2976
2976
|
layout: "inline"
|
|
@@ -2989,7 +2989,7 @@ const kt = [], Ie = {
|
|
|
2989
2989
|
}
|
|
2990
2990
|
],
|
|
2991
2991
|
rules: {},
|
|
2992
|
-
model:
|
|
2992
|
+
model: T({
|
|
2993
2993
|
org_id: t.id,
|
|
2994
2994
|
aim_org_id: t.id,
|
|
2995
2995
|
is_active: !0,
|
|
@@ -3001,7 +3001,7 @@ const kt = [], Ie = {
|
|
|
3001
3001
|
settings: {
|
|
3002
3002
|
labelAlign: "right",
|
|
3003
3003
|
layout: "horizontal",
|
|
3004
|
-
col:
|
|
3004
|
+
col: Oe.creatCol
|
|
3005
3005
|
},
|
|
3006
3006
|
fields: [
|
|
3007
3007
|
{
|
|
@@ -3084,7 +3084,7 @@ const kt = [], Ie = {
|
|
|
3084
3084
|
settings: {
|
|
3085
3085
|
labelAlign: "right",
|
|
3086
3086
|
layout: "horizontal",
|
|
3087
|
-
col:
|
|
3087
|
+
col: Oe.creatCol
|
|
3088
3088
|
},
|
|
3089
3089
|
fields: [
|
|
3090
3090
|
{
|
|
@@ -3100,7 +3100,7 @@ const kt = [], Ie = {
|
|
|
3100
3100
|
}
|
|
3101
3101
|
],
|
|
3102
3102
|
rules: {},
|
|
3103
|
-
model:
|
|
3103
|
+
model: T({
|
|
3104
3104
|
org_id: t.id,
|
|
3105
3105
|
id: null,
|
|
3106
3106
|
username: "",
|
|
@@ -3187,9 +3187,9 @@ const kt = [], Ie = {
|
|
|
3187
3187
|
aim_org_id: "id"
|
|
3188
3188
|
}
|
|
3189
3189
|
},
|
|
3190
|
-
btn_list:
|
|
3191
|
-
head_btn_list:
|
|
3192
|
-
event_obj:
|
|
3190
|
+
btn_list: jt,
|
|
3191
|
+
head_btn_list: Dt,
|
|
3192
|
+
event_obj: N(),
|
|
3193
3193
|
base_search_condition_config_list: [],
|
|
3194
3194
|
default_search_condition_config_list: [[]],
|
|
3195
3195
|
condition_group_config_list: [],
|
|
@@ -3200,165 +3200,165 @@ const kt = [], Ie = {
|
|
|
3200
3200
|
queryConditionGroupData: null,
|
|
3201
3201
|
isView: !1
|
|
3202
3202
|
};
|
|
3203
|
-
},
|
|
3203
|
+
}, fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3204
3204
|
__proto__: null,
|
|
3205
|
-
default:
|
|
3205
|
+
default: pa
|
|
3206
3206
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3207
|
-
var
|
|
3208
|
-
const
|
|
3209
|
-
function
|
|
3207
|
+
var ma = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z" } }] }, name: "close", theme: "outlined" };
|
|
3208
|
+
const _a = ma;
|
|
3209
|
+
function lt(e) {
|
|
3210
3210
|
for (var t = 1; t < arguments.length; t++) {
|
|
3211
3211
|
var l = arguments[t] != null ? Object(arguments[t]) : {}, a = Object.keys(l);
|
|
3212
3212
|
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(l).filter(function(n) {
|
|
3213
3213
|
return Object.getOwnPropertyDescriptor(l, n).enumerable;
|
|
3214
3214
|
}))), a.forEach(function(n) {
|
|
3215
|
-
|
|
3215
|
+
ga(e, n, l[n]);
|
|
3216
3216
|
});
|
|
3217
3217
|
}
|
|
3218
3218
|
return e;
|
|
3219
3219
|
}
|
|
3220
|
-
function
|
|
3220
|
+
function ga(e, t, l) {
|
|
3221
3221
|
return t in e ? Object.defineProperty(e, t, { value: l, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = l, e;
|
|
3222
3222
|
}
|
|
3223
|
-
var
|
|
3224
|
-
var a =
|
|
3225
|
-
return
|
|
3226
|
-
icon:
|
|
3223
|
+
var qe = function(t, l) {
|
|
3224
|
+
var a = lt({}, t, l.attrs);
|
|
3225
|
+
return x(ie, lt({}, a, {
|
|
3226
|
+
icon: _a
|
|
3227
3227
|
}), null);
|
|
3228
3228
|
};
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
const
|
|
3232
|
-
var
|
|
3233
|
-
const
|
|
3234
|
-
function
|
|
3229
|
+
qe.displayName = "CloseOutlined";
|
|
3230
|
+
qe.inheritAttrs = !1;
|
|
3231
|
+
const Le = qe;
|
|
3232
|
+
var ha = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z" } }, { tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }] }, name: "check-circle", theme: "outlined" };
|
|
3233
|
+
const ya = ha;
|
|
3234
|
+
function at(e) {
|
|
3235
3235
|
for (var t = 1; t < arguments.length; t++) {
|
|
3236
3236
|
var l = arguments[t] != null ? Object(arguments[t]) : {}, a = Object.keys(l);
|
|
3237
3237
|
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(l).filter(function(n) {
|
|
3238
3238
|
return Object.getOwnPropertyDescriptor(l, n).enumerable;
|
|
3239
3239
|
}))), a.forEach(function(n) {
|
|
3240
|
-
|
|
3240
|
+
ba(e, n, l[n]);
|
|
3241
3241
|
});
|
|
3242
3242
|
}
|
|
3243
3243
|
return e;
|
|
3244
3244
|
}
|
|
3245
|
-
function
|
|
3245
|
+
function ba(e, t, l) {
|
|
3246
3246
|
return t in e ? Object.defineProperty(e, t, { value: l, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = l, e;
|
|
3247
3247
|
}
|
|
3248
|
-
var
|
|
3249
|
-
var a =
|
|
3250
|
-
return
|
|
3251
|
-
icon:
|
|
3248
|
+
var Re = function(t, l) {
|
|
3249
|
+
var a = at({}, t, l.attrs);
|
|
3250
|
+
return x(ie, at({}, a, {
|
|
3251
|
+
icon: ya
|
|
3252
3252
|
}), null);
|
|
3253
3253
|
};
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
const
|
|
3257
|
-
var
|
|
3258
|
-
const
|
|
3259
|
-
function
|
|
3254
|
+
Re.displayName = "CheckCircleOutlined";
|
|
3255
|
+
Re.inheritAttrs = !1;
|
|
3256
|
+
const va = Re;
|
|
3257
|
+
var Ca = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" } }] }, name: "exclamation-circle", theme: "outlined" };
|
|
3258
|
+
const xa = Ca;
|
|
3259
|
+
function nt(e) {
|
|
3260
3260
|
for (var t = 1; t < arguments.length; t++) {
|
|
3261
3261
|
var l = arguments[t] != null ? Object(arguments[t]) : {}, a = Object.keys(l);
|
|
3262
3262
|
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(l).filter(function(n) {
|
|
3263
3263
|
return Object.getOwnPropertyDescriptor(l, n).enumerable;
|
|
3264
3264
|
}))), a.forEach(function(n) {
|
|
3265
|
-
|
|
3265
|
+
wa(e, n, l[n]);
|
|
3266
3266
|
});
|
|
3267
3267
|
}
|
|
3268
3268
|
return e;
|
|
3269
3269
|
}
|
|
3270
|
-
function
|
|
3270
|
+
function wa(e, t, l) {
|
|
3271
3271
|
return t in e ? Object.defineProperty(e, t, { value: l, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = l, e;
|
|
3272
3272
|
}
|
|
3273
|
-
var
|
|
3274
|
-
var a =
|
|
3275
|
-
return
|
|
3276
|
-
icon:
|
|
3273
|
+
var Fe = function(t, l) {
|
|
3274
|
+
var a = nt({}, t, l.attrs);
|
|
3275
|
+
return x(ie, nt({}, a, {
|
|
3276
|
+
icon: xa
|
|
3277
3277
|
}), null);
|
|
3278
3278
|
};
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
const
|
|
3282
|
-
var
|
|
3283
|
-
const
|
|
3284
|
-
function
|
|
3279
|
+
Fe.displayName = "ExclamationCircleOutlined";
|
|
3280
|
+
Fe.inheritAttrs = !1;
|
|
3281
|
+
const $a = Fe;
|
|
3282
|
+
var Pa = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" } }] }, name: "info-circle", theme: "outlined" };
|
|
3283
|
+
const Ia = Pa;
|
|
3284
|
+
function ot(e) {
|
|
3285
3285
|
for (var t = 1; t < arguments.length; t++) {
|
|
3286
3286
|
var l = arguments[t] != null ? Object(arguments[t]) : {}, a = Object.keys(l);
|
|
3287
3287
|
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(l).filter(function(n) {
|
|
3288
3288
|
return Object.getOwnPropertyDescriptor(l, n).enumerable;
|
|
3289
3289
|
}))), a.forEach(function(n) {
|
|
3290
|
-
|
|
3290
|
+
Oa(e, n, l[n]);
|
|
3291
3291
|
});
|
|
3292
3292
|
}
|
|
3293
3293
|
return e;
|
|
3294
3294
|
}
|
|
3295
|
-
function
|
|
3295
|
+
function Oa(e, t, l) {
|
|
3296
3296
|
return t in e ? Object.defineProperty(e, t, { value: l, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = l, e;
|
|
3297
3297
|
}
|
|
3298
|
-
var
|
|
3299
|
-
var a =
|
|
3300
|
-
return
|
|
3301
|
-
icon:
|
|
3298
|
+
var He = function(t, l) {
|
|
3299
|
+
var a = ot({}, t, l.attrs);
|
|
3300
|
+
return x(ie, ot({}, a, {
|
|
3301
|
+
icon: Ia
|
|
3302
3302
|
}), null);
|
|
3303
3303
|
};
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
const
|
|
3307
|
-
var
|
|
3308
|
-
const
|
|
3309
|
-
function
|
|
3304
|
+
He.displayName = "InfoCircleOutlined";
|
|
3305
|
+
He.inheritAttrs = !1;
|
|
3306
|
+
const Ta = He;
|
|
3307
|
+
var Sa = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z" } }, { tag: "path", attrs: { d: "M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }] }, name: "close-circle", theme: "outlined" };
|
|
3308
|
+
const Ma = Sa;
|
|
3309
|
+
function it(e) {
|
|
3310
3310
|
for (var t = 1; t < arguments.length; t++) {
|
|
3311
3311
|
var l = arguments[t] != null ? Object(arguments[t]) : {}, a = Object.keys(l);
|
|
3312
3312
|
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(l).filter(function(n) {
|
|
3313
3313
|
return Object.getOwnPropertyDescriptor(l, n).enumerable;
|
|
3314
3314
|
}))), a.forEach(function(n) {
|
|
3315
|
-
|
|
3315
|
+
Aa(e, n, l[n]);
|
|
3316
3316
|
});
|
|
3317
3317
|
}
|
|
3318
3318
|
return e;
|
|
3319
3319
|
}
|
|
3320
|
-
function
|
|
3320
|
+
function Aa(e, t, l) {
|
|
3321
3321
|
return t in e ? Object.defineProperty(e, t, { value: l, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = l, e;
|
|
3322
3322
|
}
|
|
3323
|
-
var
|
|
3324
|
-
var a =
|
|
3325
|
-
return
|
|
3326
|
-
icon:
|
|
3323
|
+
var Ge = function(t, l) {
|
|
3324
|
+
var a = it({}, t, l.attrs);
|
|
3325
|
+
return x(ie, it({}, a, {
|
|
3326
|
+
icon: Ma
|
|
3327
3327
|
}), null);
|
|
3328
3328
|
};
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
const
|
|
3332
|
-
var
|
|
3333
|
-
const
|
|
3334
|
-
function
|
|
3329
|
+
Ge.displayName = "CloseCircleOutlined";
|
|
3330
|
+
Ge.inheritAttrs = !1;
|
|
3331
|
+
const ka = Ge;
|
|
3332
|
+
var Va = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, name: "info-circle", theme: "filled" };
|
|
3333
|
+
const ja = Va;
|
|
3334
|
+
function rt(e) {
|
|
3335
3335
|
for (var t = 1; t < arguments.length; t++) {
|
|
3336
3336
|
var l = arguments[t] != null ? Object(arguments[t]) : {}, a = Object.keys(l);
|
|
3337
3337
|
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(l).filter(function(n) {
|
|
3338
3338
|
return Object.getOwnPropertyDescriptor(l, n).enumerable;
|
|
3339
3339
|
}))), a.forEach(function(n) {
|
|
3340
|
-
|
|
3340
|
+
Da(e, n, l[n]);
|
|
3341
3341
|
});
|
|
3342
3342
|
}
|
|
3343
3343
|
return e;
|
|
3344
3344
|
}
|
|
3345
|
-
function
|
|
3345
|
+
function Da(e, t, l) {
|
|
3346
3346
|
return t in e ? Object.defineProperty(e, t, { value: l, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = l, e;
|
|
3347
3347
|
}
|
|
3348
|
-
var
|
|
3349
|
-
var a =
|
|
3350
|
-
return
|
|
3351
|
-
icon:
|
|
3348
|
+
var Be = function(t, l) {
|
|
3349
|
+
var a = rt({}, t, l.attrs);
|
|
3350
|
+
return x(ie, rt({}, a, {
|
|
3351
|
+
icon: ja
|
|
3352
3352
|
}), null);
|
|
3353
3353
|
};
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
const
|
|
3357
|
-
let we =
|
|
3358
|
-
function
|
|
3359
|
-
e ? we =
|
|
3354
|
+
Be.displayName = "InfoCircleFilled";
|
|
3355
|
+
Be.inheritAttrs = !1;
|
|
3356
|
+
const be = Be;
|
|
3357
|
+
let we = $({}, ze.Modal);
|
|
3358
|
+
function Ka(e) {
|
|
3359
|
+
e ? we = $($({}, we), e) : we = $({}, ze.Modal);
|
|
3360
3360
|
}
|
|
3361
|
-
const
|
|
3361
|
+
const Te = "internalMark", fe = G({
|
|
3362
3362
|
compatConfig: {
|
|
3363
3363
|
MODE: 3
|
|
3364
3364
|
},
|
|
@@ -3373,15 +3373,15 @@ const Oe = "internalMark", ce = R({
|
|
|
3373
3373
|
let {
|
|
3374
3374
|
slots: l
|
|
3375
3375
|
} = t;
|
|
3376
|
-
|
|
3377
|
-
const a =
|
|
3378
|
-
antLocale:
|
|
3376
|
+
wt(e.ANT_MARK__ === Te, "LocaleProvider", "`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead");
|
|
3377
|
+
const a = T({
|
|
3378
|
+
antLocale: $($({}, e.locale), {
|
|
3379
3379
|
exist: !0
|
|
3380
3380
|
}),
|
|
3381
|
-
ANT_MARK__:
|
|
3381
|
+
ANT_MARK__: Te
|
|
3382
3382
|
});
|
|
3383
|
-
return
|
|
3384
|
-
|
|
3383
|
+
return ml("localeData", a), de(() => e.locale, (n) => {
|
|
3384
|
+
Ka(n && n.Modal), a.antLocale = $($({}, n), {
|
|
3385
3385
|
exist: !0
|
|
3386
3386
|
});
|
|
3387
3387
|
}, {
|
|
@@ -3392,10 +3392,10 @@ const Oe = "internalMark", ce = R({
|
|
|
3392
3392
|
};
|
|
3393
3393
|
}
|
|
3394
3394
|
});
|
|
3395
|
-
|
|
3396
|
-
return e.component(
|
|
3395
|
+
fe.install = function(e) {
|
|
3396
|
+
return e.component(fe.name, fe), e;
|
|
3397
3397
|
};
|
|
3398
|
-
const
|
|
3398
|
+
const za = vl(fe), ve = G({
|
|
3399
3399
|
name: "Notice",
|
|
3400
3400
|
inheritAttrs: !1,
|
|
3401
3401
|
props: ["prefixCls", "duration", "updateMark", "noticeKey", "closeIcon", "closable", "props", "onClick", "onClose", "holder", "visible"],
|
|
@@ -3403,69 +3403,69 @@ const Sa = _l(ce), ye = R({
|
|
|
3403
3403
|
let {
|
|
3404
3404
|
attrs: l,
|
|
3405
3405
|
slots: a
|
|
3406
|
-
} = t, n,
|
|
3407
|
-
const
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
},
|
|
3406
|
+
} = t, n, o = !1;
|
|
3407
|
+
const i = V(() => e.duration === void 0 ? 4.5 : e.duration), r = () => {
|
|
3408
|
+
i.value && !o && (n = setTimeout(() => {
|
|
3409
|
+
f();
|
|
3410
|
+
}, i.value * 1e3));
|
|
3411
3411
|
}, c = () => {
|
|
3412
3412
|
n && (clearTimeout(n), n = null);
|
|
3413
|
-
},
|
|
3414
|
-
|
|
3413
|
+
}, f = (_) => {
|
|
3414
|
+
_ && _.stopPropagation(), c();
|
|
3415
3415
|
const {
|
|
3416
|
-
onClose:
|
|
3417
|
-
noticeKey:
|
|
3416
|
+
onClose: g,
|
|
3417
|
+
noticeKey: m
|
|
3418
3418
|
} = e;
|
|
3419
|
-
|
|
3420
|
-
},
|
|
3421
|
-
c(),
|
|
3419
|
+
g && g(m);
|
|
3420
|
+
}, p = () => {
|
|
3421
|
+
c(), r();
|
|
3422
3422
|
};
|
|
3423
|
-
return
|
|
3424
|
-
|
|
3425
|
-
}),
|
|
3426
|
-
|
|
3427
|
-
}),
|
|
3428
|
-
let [
|
|
3429
|
-
(
|
|
3423
|
+
return vt(() => {
|
|
3424
|
+
r();
|
|
3425
|
+
}), _l(() => {
|
|
3426
|
+
o = !0, c();
|
|
3427
|
+
}), de([i, () => e.updateMark, () => e.visible], (_, g) => {
|
|
3428
|
+
let [m, w, C] = _, [O, P, A] = g;
|
|
3429
|
+
(m !== O || w !== P || C !== A && A) && p();
|
|
3430
3430
|
}, {
|
|
3431
3431
|
flush: "post"
|
|
3432
3432
|
}), () => {
|
|
3433
|
-
var
|
|
3433
|
+
var _, g;
|
|
3434
3434
|
const {
|
|
3435
|
-
prefixCls:
|
|
3436
|
-
closable:
|
|
3437
|
-
closeIcon:
|
|
3438
|
-
onClick:
|
|
3439
|
-
holder:
|
|
3435
|
+
prefixCls: m,
|
|
3436
|
+
closable: w,
|
|
3437
|
+
closeIcon: C = (_ = a.closeIcon) === null || _ === void 0 ? void 0 : _.call(a),
|
|
3438
|
+
onClick: O,
|
|
3439
|
+
holder: P
|
|
3440
3440
|
} = e, {
|
|
3441
|
-
class:
|
|
3442
|
-
style:
|
|
3443
|
-
} = l,
|
|
3444
|
-
class:
|
|
3445
|
-
[`${
|
|
3441
|
+
class: A,
|
|
3442
|
+
style: j
|
|
3443
|
+
} = l, S = `${m}-notice`, u = Object.keys(l).reduce((d, I) => ((I.startsWith("data-") || I.startsWith("aria-") || I === "role") && (d[I] = l[I]), d), {}), y = x("div", z({
|
|
3444
|
+
class: F(S, A, {
|
|
3445
|
+
[`${S}-closable`]: w
|
|
3446
3446
|
}),
|
|
3447
|
-
style:
|
|
3447
|
+
style: j,
|
|
3448
3448
|
onMouseenter: c,
|
|
3449
|
-
onMouseleave:
|
|
3450
|
-
onClick:
|
|
3451
|
-
},
|
|
3452
|
-
class: `${
|
|
3453
|
-
}, [(
|
|
3449
|
+
onMouseleave: r,
|
|
3450
|
+
onClick: O
|
|
3451
|
+
}, u), [x("div", {
|
|
3452
|
+
class: `${S}-content`
|
|
3453
|
+
}, [(g = a.default) === null || g === void 0 ? void 0 : g.call(a)]), w ? x("a", {
|
|
3454
3454
|
tabindex: 0,
|
|
3455
|
-
onClick:
|
|
3456
|
-
class: `${
|
|
3457
|
-
}, [
|
|
3458
|
-
class: `${
|
|
3455
|
+
onClick: f,
|
|
3456
|
+
class: `${S}-close`
|
|
3457
|
+
}, [C || x("span", {
|
|
3458
|
+
class: `${S}-close-x`
|
|
3459
3459
|
}, null)]) : null]);
|
|
3460
|
-
return
|
|
3461
|
-
to:
|
|
3460
|
+
return P ? x(gl, {
|
|
3461
|
+
to: P
|
|
3462
3462
|
}, {
|
|
3463
|
-
default: () =>
|
|
3464
|
-
}) :
|
|
3463
|
+
default: () => y
|
|
3464
|
+
}) : y;
|
|
3465
3465
|
};
|
|
3466
3466
|
}
|
|
3467
3467
|
});
|
|
3468
|
-
var
|
|
3468
|
+
var Ea = globalThis && globalThis.__rest || function(e, t) {
|
|
3469
3469
|
var l = {};
|
|
3470
3470
|
for (var a in e)
|
|
3471
3471
|
Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (l[a] = e[a]);
|
|
@@ -3474,13 +3474,13 @@ var ka = globalThis && globalThis.__rest || function(e, t) {
|
|
|
3474
3474
|
t.indexOf(a[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[n]) && (l[a[n]] = e[a[n]]);
|
|
3475
3475
|
return l;
|
|
3476
3476
|
};
|
|
3477
|
-
let
|
|
3478
|
-
const
|
|
3479
|
-
function
|
|
3480
|
-
const e =
|
|
3481
|
-
return
|
|
3477
|
+
let st = 0;
|
|
3478
|
+
const Na = Date.now();
|
|
3479
|
+
function ut() {
|
|
3480
|
+
const e = st;
|
|
3481
|
+
return st += 1, `rcNotification_${Na}_${e}`;
|
|
3482
3482
|
}
|
|
3483
|
-
const
|
|
3483
|
+
const Se = G({
|
|
3484
3484
|
name: "Notification",
|
|
3485
3485
|
inheritAttrs: !1,
|
|
3486
3486
|
props: ["prefixCls", "transitionName", "animation", "maxCount", "closeIcon", "hashId"],
|
|
@@ -3490,168 +3490,168 @@ const Te = R({
|
|
|
3490
3490
|
expose: a,
|
|
3491
3491
|
slots: n
|
|
3492
3492
|
} = t;
|
|
3493
|
-
const
|
|
3493
|
+
const o = /* @__PURE__ */ new Map(), i = Ct([]), r = V(() => {
|
|
3494
3494
|
const {
|
|
3495
|
-
prefixCls:
|
|
3496
|
-
animation:
|
|
3495
|
+
prefixCls: p,
|
|
3496
|
+
animation: _ = "fade"
|
|
3497
3497
|
} = e;
|
|
3498
|
-
let
|
|
3499
|
-
return !
|
|
3500
|
-
}), c = (
|
|
3501
|
-
const
|
|
3502
|
-
key:
|
|
3498
|
+
let g = e.transitionName;
|
|
3499
|
+
return !g && _ && (g = `${p}-${_}`), $t(g);
|
|
3500
|
+
}), c = (p, _) => {
|
|
3501
|
+
const g = p.key || ut(), m = $($({}, p), {
|
|
3502
|
+
key: g
|
|
3503
3503
|
}), {
|
|
3504
|
-
maxCount:
|
|
3505
|
-
} = e,
|
|
3506
|
-
|
|
3507
|
-
notice:
|
|
3508
|
-
holderCallback:
|
|
3509
|
-
}) : (
|
|
3510
|
-
notice:
|
|
3511
|
-
holderCallback:
|
|
3512
|
-
})),
|
|
3513
|
-
},
|
|
3514
|
-
|
|
3504
|
+
maxCount: w
|
|
3505
|
+
} = e, C = i.value.map((P) => P.notice.key).indexOf(g), O = i.value.concat();
|
|
3506
|
+
C !== -1 ? O.splice(C, 1, {
|
|
3507
|
+
notice: m,
|
|
3508
|
+
holderCallback: _
|
|
3509
|
+
}) : (w && i.value.length >= w && (m.key = O[0].notice.key, m.updateMark = ut(), m.userPassKey = g, O.shift()), O.push({
|
|
3510
|
+
notice: m,
|
|
3511
|
+
holderCallback: _
|
|
3512
|
+
})), i.value = O;
|
|
3513
|
+
}, f = (p) => {
|
|
3514
|
+
i.value = hl(i.value).filter((_) => {
|
|
3515
3515
|
let {
|
|
3516
3516
|
notice: {
|
|
3517
|
-
key:
|
|
3518
|
-
userPassKey:
|
|
3517
|
+
key: g,
|
|
3518
|
+
userPassKey: m
|
|
3519
3519
|
}
|
|
3520
|
-
} =
|
|
3521
|
-
return (
|
|
3520
|
+
} = _;
|
|
3521
|
+
return (m || g) !== p;
|
|
3522
3522
|
});
|
|
3523
3523
|
};
|
|
3524
3524
|
return a({
|
|
3525
3525
|
add: c,
|
|
3526
|
-
remove:
|
|
3527
|
-
notices:
|
|
3526
|
+
remove: f,
|
|
3527
|
+
notices: i
|
|
3528
3528
|
}), () => {
|
|
3529
|
-
var
|
|
3529
|
+
var p;
|
|
3530
3530
|
const {
|
|
3531
|
-
prefixCls:
|
|
3532
|
-
closeIcon:
|
|
3533
|
-
prefixCls:
|
|
3531
|
+
prefixCls: _,
|
|
3532
|
+
closeIcon: g = (p = n.closeIcon) === null || p === void 0 ? void 0 : p.call(n, {
|
|
3533
|
+
prefixCls: _
|
|
3534
3534
|
})
|
|
3535
|
-
} = e,
|
|
3535
|
+
} = e, m = i.value.map((C, O) => {
|
|
3536
3536
|
let {
|
|
3537
|
-
notice:
|
|
3538
|
-
holderCallback:
|
|
3539
|
-
} =
|
|
3540
|
-
const
|
|
3541
|
-
key:
|
|
3542
|
-
userPassKey:
|
|
3543
|
-
} =
|
|
3544
|
-
content:
|
|
3545
|
-
} =
|
|
3546
|
-
prefixCls:
|
|
3547
|
-
closeIcon: typeof
|
|
3548
|
-
prefixCls:
|
|
3549
|
-
}) :
|
|
3550
|
-
},
|
|
3551
|
-
key:
|
|
3552
|
-
noticeKey:
|
|
3553
|
-
updateMark:
|
|
3554
|
-
onClose: (
|
|
3555
|
-
var
|
|
3556
|
-
|
|
3537
|
+
notice: P,
|
|
3538
|
+
holderCallback: A
|
|
3539
|
+
} = C;
|
|
3540
|
+
const j = O === i.value.length - 1 ? P.updateMark : void 0, {
|
|
3541
|
+
key: S,
|
|
3542
|
+
userPassKey: u
|
|
3543
|
+
} = P, {
|
|
3544
|
+
content: y
|
|
3545
|
+
} = P, d = $($($({
|
|
3546
|
+
prefixCls: _,
|
|
3547
|
+
closeIcon: typeof g == "function" ? g({
|
|
3548
|
+
prefixCls: _
|
|
3549
|
+
}) : g
|
|
3550
|
+
}, P), P.props), {
|
|
3551
|
+
key: S,
|
|
3552
|
+
noticeKey: u || S,
|
|
3553
|
+
updateMark: j,
|
|
3554
|
+
onClose: (I) => {
|
|
3555
|
+
var k;
|
|
3556
|
+
f(I), (k = P.onClose) === null || k === void 0 || k.call(P);
|
|
3557
3557
|
},
|
|
3558
|
-
onClick:
|
|
3558
|
+
onClick: P.onClick
|
|
3559
3559
|
});
|
|
3560
|
-
return
|
|
3561
|
-
key:
|
|
3562
|
-
class: `${
|
|
3563
|
-
ref: (
|
|
3564
|
-
typeof
|
|
3560
|
+
return A ? x("div", {
|
|
3561
|
+
key: S,
|
|
3562
|
+
class: `${_}-hook-holder`,
|
|
3563
|
+
ref: (I) => {
|
|
3564
|
+
typeof S > "u" || (I ? (o.set(S, I), A(I, d)) : o.delete(S));
|
|
3565
3565
|
}
|
|
3566
|
-
}, null) :
|
|
3567
|
-
class:
|
|
3566
|
+
}, null) : x(ve, z(z({}, d), {}, {
|
|
3567
|
+
class: F(d.class, e.hashId)
|
|
3568
3568
|
}), {
|
|
3569
|
-
default: () => [typeof
|
|
3570
|
-
prefixCls:
|
|
3571
|
-
}) :
|
|
3569
|
+
default: () => [typeof y == "function" ? y({
|
|
3570
|
+
prefixCls: _
|
|
3571
|
+
}) : y]
|
|
3572
3572
|
});
|
|
3573
|
-
}),
|
|
3574
|
-
[
|
|
3573
|
+
}), w = {
|
|
3574
|
+
[_]: 1,
|
|
3575
3575
|
[l.class]: !!l.class,
|
|
3576
3576
|
[e.hashId]: !0
|
|
3577
3577
|
};
|
|
3578
|
-
return
|
|
3579
|
-
class:
|
|
3578
|
+
return x("div", {
|
|
3579
|
+
class: w,
|
|
3580
3580
|
style: l.style || {
|
|
3581
3581
|
top: "65px",
|
|
3582
3582
|
left: "50%"
|
|
3583
3583
|
}
|
|
3584
|
-
}, [
|
|
3584
|
+
}, [x(xt, z({
|
|
3585
3585
|
tag: "div"
|
|
3586
|
-
},
|
|
3587
|
-
default: () => [
|
|
3586
|
+
}, r.value), {
|
|
3587
|
+
default: () => [m]
|
|
3588
3588
|
})]);
|
|
3589
3589
|
};
|
|
3590
3590
|
}
|
|
3591
3591
|
});
|
|
3592
|
-
|
|
3592
|
+
Se.newInstance = function(t, l) {
|
|
3593
3593
|
const a = t || {}, {
|
|
3594
3594
|
name: n = "notification",
|
|
3595
|
-
getContainer:
|
|
3596
|
-
appContext:
|
|
3597
|
-
prefixCls:
|
|
3595
|
+
getContainer: o,
|
|
3596
|
+
appContext: i,
|
|
3597
|
+
prefixCls: r,
|
|
3598
3598
|
rootPrefixCls: c,
|
|
3599
|
-
transitionName:
|
|
3600
|
-
hasTransitionName:
|
|
3601
|
-
useStyle:
|
|
3602
|
-
} = a,
|
|
3603
|
-
|
|
3604
|
-
const
|
|
3599
|
+
transitionName: f,
|
|
3600
|
+
hasTransitionName: p,
|
|
3601
|
+
useStyle: _
|
|
3602
|
+
} = a, g = Ea(a, ["name", "getContainer", "appContext", "prefixCls", "rootPrefixCls", "transitionName", "hasTransitionName", "useStyle"]), m = document.createElement("div");
|
|
3603
|
+
o ? o().appendChild(m) : document.body.appendChild(m);
|
|
3604
|
+
const w = G({
|
|
3605
3605
|
compatConfig: {
|
|
3606
3606
|
MODE: 3
|
|
3607
3607
|
},
|
|
3608
3608
|
name: "NotificationWrapper",
|
|
3609
|
-
setup(
|
|
3609
|
+
setup(O, P) {
|
|
3610
3610
|
let {
|
|
3611
|
-
attrs:
|
|
3612
|
-
} =
|
|
3613
|
-
const
|
|
3614
|
-
return
|
|
3611
|
+
attrs: A
|
|
3612
|
+
} = P;
|
|
3613
|
+
const j = le(), S = V(() => q.getPrefixCls(n, r)), [, u] = _(S);
|
|
3614
|
+
return vt(() => {
|
|
3615
3615
|
l({
|
|
3616
|
-
notice(
|
|
3617
|
-
var
|
|
3618
|
-
(
|
|
3616
|
+
notice(y) {
|
|
3617
|
+
var d;
|
|
3618
|
+
(d = j.value) === null || d === void 0 || d.add(y);
|
|
3619
3619
|
},
|
|
3620
|
-
removeNotice(
|
|
3621
|
-
var
|
|
3622
|
-
(
|
|
3620
|
+
removeNotice(y) {
|
|
3621
|
+
var d;
|
|
3622
|
+
(d = j.value) === null || d === void 0 || d.remove(y);
|
|
3623
3623
|
},
|
|
3624
3624
|
destroy() {
|
|
3625
|
-
|
|
3625
|
+
Xe(null, m), m.parentNode && m.parentNode.removeChild(m);
|
|
3626
3626
|
},
|
|
3627
|
-
component:
|
|
3627
|
+
component: j
|
|
3628
3628
|
});
|
|
3629
3629
|
}), () => {
|
|
3630
|
-
const
|
|
3631
|
-
return
|
|
3632
|
-
prefixCls:
|
|
3630
|
+
const y = q, d = y.getRootPrefixCls(c, S.value), I = p ? f : `${S.value}-${f}`;
|
|
3631
|
+
return x(Dn, z(z({}, y), {}, {
|
|
3632
|
+
prefixCls: d
|
|
3633
3633
|
}), {
|
|
3634
|
-
default: () => [
|
|
3635
|
-
ref:
|
|
3636
|
-
},
|
|
3637
|
-
prefixCls:
|
|
3638
|
-
transitionName:
|
|
3639
|
-
hashId:
|
|
3634
|
+
default: () => [x(Se, z(z({
|
|
3635
|
+
ref: j
|
|
3636
|
+
}, A), {}, {
|
|
3637
|
+
prefixCls: S.value,
|
|
3638
|
+
transitionName: I,
|
|
3639
|
+
hashId: u.value
|
|
3640
3640
|
}), null)]
|
|
3641
3641
|
});
|
|
3642
3642
|
};
|
|
3643
3643
|
}
|
|
3644
|
-
}),
|
|
3645
|
-
|
|
3644
|
+
}), C = x(w, g);
|
|
3645
|
+
C.appContext = i || C.appContext, Xe(C, m);
|
|
3646
3646
|
};
|
|
3647
|
-
const
|
|
3648
|
-
let
|
|
3649
|
-
const
|
|
3650
|
-
function
|
|
3651
|
-
const e =
|
|
3652
|
-
return
|
|
3647
|
+
const Kt = Se;
|
|
3648
|
+
let ct = 0;
|
|
3649
|
+
const qa = Date.now();
|
|
3650
|
+
function dt() {
|
|
3651
|
+
const e = ct;
|
|
3652
|
+
return ct += 1, `rcNotification_${qa}_${e}`;
|
|
3653
3653
|
}
|
|
3654
|
-
const
|
|
3654
|
+
const La = G({
|
|
3655
3655
|
name: "HookNotification",
|
|
3656
3656
|
inheritAttrs: !1,
|
|
3657
3657
|
props: ["prefixCls", "transitionName", "animation", "maxCount", "closeIcon", "hashId", "remove", "notices", "getStyles", "getClassName", "onAllRemoved", "getContainer"],
|
|
@@ -3660,119 +3660,119 @@ const Aa = R({
|
|
|
3660
3660
|
attrs: l,
|
|
3661
3661
|
slots: a
|
|
3662
3662
|
} = t;
|
|
3663
|
-
const n = /* @__PURE__ */ new Map(),
|
|
3664
|
-
let
|
|
3665
|
-
if (!
|
|
3663
|
+
const n = /* @__PURE__ */ new Map(), o = V(() => e.notices), i = V(() => {
|
|
3664
|
+
let p = e.transitionName;
|
|
3665
|
+
if (!p && e.animation)
|
|
3666
3666
|
switch (typeof e.animation) {
|
|
3667
3667
|
case "string":
|
|
3668
|
-
|
|
3668
|
+
p = e.animation;
|
|
3669
3669
|
break;
|
|
3670
3670
|
case "function":
|
|
3671
|
-
|
|
3671
|
+
p = e.animation().name;
|
|
3672
3672
|
break;
|
|
3673
3673
|
case "object":
|
|
3674
|
-
|
|
3674
|
+
p = e.animation.name;
|
|
3675
3675
|
break;
|
|
3676
3676
|
default:
|
|
3677
|
-
|
|
3677
|
+
p = `${e.prefixCls}-fade`;
|
|
3678
3678
|
break;
|
|
3679
3679
|
}
|
|
3680
|
-
return
|
|
3681
|
-
}),
|
|
3682
|
-
|
|
3683
|
-
const
|
|
3684
|
-
Object.keys(c.value).forEach((
|
|
3685
|
-
|
|
3686
|
-
}), e.notices.forEach((
|
|
3680
|
+
return $t(p);
|
|
3681
|
+
}), r = (p) => e.remove(p), c = Ct({});
|
|
3682
|
+
de(o, () => {
|
|
3683
|
+
const p = {};
|
|
3684
|
+
Object.keys(c.value).forEach((_) => {
|
|
3685
|
+
p[_] = [];
|
|
3686
|
+
}), e.notices.forEach((_) => {
|
|
3687
3687
|
const {
|
|
3688
|
-
placement:
|
|
3689
|
-
} =
|
|
3690
|
-
|
|
3691
|
-
}), c.value =
|
|
3688
|
+
placement: g = "topRight"
|
|
3689
|
+
} = _.notice;
|
|
3690
|
+
g && (p[g] = p[g] || [], p[g].push(_));
|
|
3691
|
+
}), c.value = p;
|
|
3692
3692
|
});
|
|
3693
|
-
const
|
|
3693
|
+
const f = V(() => Object.keys(c.value));
|
|
3694
3694
|
return () => {
|
|
3695
|
-
var
|
|
3695
|
+
var p;
|
|
3696
3696
|
const {
|
|
3697
|
-
prefixCls:
|
|
3698
|
-
closeIcon:
|
|
3699
|
-
prefixCls:
|
|
3697
|
+
prefixCls: _,
|
|
3698
|
+
closeIcon: g = (p = a.closeIcon) === null || p === void 0 ? void 0 : p.call(a, {
|
|
3699
|
+
prefixCls: _
|
|
3700
3700
|
})
|
|
3701
|
-
} = e,
|
|
3702
|
-
var
|
|
3703
|
-
const
|
|
3701
|
+
} = e, m = f.value.map((w) => {
|
|
3702
|
+
var C, O;
|
|
3703
|
+
const P = c.value[w], A = (C = e.getClassName) === null || C === void 0 ? void 0 : C.call(e, w), j = (O = e.getStyles) === null || O === void 0 ? void 0 : O.call(e, w), S = P.map((d, I) => {
|
|
3704
3704
|
let {
|
|
3705
|
-
notice:
|
|
3706
|
-
holderCallback:
|
|
3707
|
-
} =
|
|
3708
|
-
const
|
|
3709
|
-
key:
|
|
3710
|
-
userPassKey:
|
|
3711
|
-
} =
|
|
3712
|
-
content:
|
|
3713
|
-
} =
|
|
3714
|
-
prefixCls:
|
|
3715
|
-
closeIcon: typeof
|
|
3716
|
-
prefixCls:
|
|
3717
|
-
}) :
|
|
3718
|
-
},
|
|
3719
|
-
key:
|
|
3720
|
-
noticeKey:
|
|
3721
|
-
updateMark:
|
|
3722
|
-
onClose: (
|
|
3723
|
-
var
|
|
3724
|
-
|
|
3705
|
+
notice: k,
|
|
3706
|
+
holderCallback: D
|
|
3707
|
+
} = d;
|
|
3708
|
+
const K = I === o.value.length - 1 ? k.updateMark : void 0, {
|
|
3709
|
+
key: h,
|
|
3710
|
+
userPassKey: v
|
|
3711
|
+
} = k, {
|
|
3712
|
+
content: b
|
|
3713
|
+
} = k, s = $($($({
|
|
3714
|
+
prefixCls: _,
|
|
3715
|
+
closeIcon: typeof g == "function" ? g({
|
|
3716
|
+
prefixCls: _
|
|
3717
|
+
}) : g
|
|
3718
|
+
}, k), k.props), {
|
|
3719
|
+
key: h,
|
|
3720
|
+
noticeKey: v || h,
|
|
3721
|
+
updateMark: K,
|
|
3722
|
+
onClose: (M) => {
|
|
3723
|
+
var E;
|
|
3724
|
+
r(M), (E = k.onClose) === null || E === void 0 || E.call(k);
|
|
3725
3725
|
},
|
|
3726
|
-
onClick:
|
|
3726
|
+
onClick: k.onClick
|
|
3727
3727
|
});
|
|
3728
|
-
return
|
|
3729
|
-
key:
|
|
3730
|
-
class: `${
|
|
3731
|
-
ref: (
|
|
3732
|
-
typeof
|
|
3728
|
+
return D ? x("div", {
|
|
3729
|
+
key: h,
|
|
3730
|
+
class: `${_}-hook-holder`,
|
|
3731
|
+
ref: (M) => {
|
|
3732
|
+
typeof h > "u" || (M ? (n.set(h, M), D(M, s)) : n.delete(h));
|
|
3733
3733
|
}
|
|
3734
|
-
}, null) :
|
|
3735
|
-
class:
|
|
3734
|
+
}, null) : x(ve, z(z({}, s), {}, {
|
|
3735
|
+
class: F(s.class, e.hashId)
|
|
3736
3736
|
}), {
|
|
3737
|
-
default: () => [typeof
|
|
3738
|
-
prefixCls:
|
|
3739
|
-
}) :
|
|
3737
|
+
default: () => [typeof b == "function" ? b({
|
|
3738
|
+
prefixCls: _
|
|
3739
|
+
}) : b]
|
|
3740
3740
|
});
|
|
3741
|
-
}),
|
|
3742
|
-
[
|
|
3743
|
-
[`${
|
|
3741
|
+
}), u = {
|
|
3742
|
+
[_]: 1,
|
|
3743
|
+
[`${_}-${w}`]: 1,
|
|
3744
3744
|
[l.class]: !!l.class,
|
|
3745
3745
|
[e.hashId]: !0,
|
|
3746
|
-
[
|
|
3746
|
+
[A]: !!A
|
|
3747
3747
|
};
|
|
3748
|
-
function
|
|
3749
|
-
var
|
|
3750
|
-
|
|
3748
|
+
function y() {
|
|
3749
|
+
var d;
|
|
3750
|
+
P.length > 0 || (Reflect.deleteProperty(c.value, w), (d = e.onAllRemoved) === null || d === void 0 || d.call(e));
|
|
3751
3751
|
}
|
|
3752
|
-
return
|
|
3753
|
-
key:
|
|
3754
|
-
class:
|
|
3755
|
-
style: l.style ||
|
|
3752
|
+
return x("div", {
|
|
3753
|
+
key: w,
|
|
3754
|
+
class: u,
|
|
3755
|
+
style: l.style || j || {
|
|
3756
3756
|
top: "65px",
|
|
3757
3757
|
left: "50%"
|
|
3758
3758
|
}
|
|
3759
|
-
}, [
|
|
3759
|
+
}, [x(xt, z(z({
|
|
3760
3760
|
tag: "div"
|
|
3761
|
-
},
|
|
3762
|
-
onAfterLeave:
|
|
3761
|
+
}, i.value), {}, {
|
|
3762
|
+
onAfterLeave: y
|
|
3763
3763
|
}), {
|
|
3764
|
-
default: () => [
|
|
3764
|
+
default: () => [S]
|
|
3765
3765
|
})]);
|
|
3766
3766
|
});
|
|
3767
|
-
return
|
|
3767
|
+
return x(Cl, {
|
|
3768
3768
|
getContainer: e.getContainer
|
|
3769
3769
|
}, {
|
|
3770
|
-
default: () => [
|
|
3770
|
+
default: () => [m]
|
|
3771
3771
|
});
|
|
3772
3772
|
};
|
|
3773
3773
|
}
|
|
3774
|
-
}),
|
|
3775
|
-
var
|
|
3774
|
+
}), Ra = La;
|
|
3775
|
+
var Fa = globalThis && globalThis.__rest || function(e, t) {
|
|
3776
3776
|
var l = {};
|
|
3777
3777
|
for (var a in e)
|
|
3778
3778
|
Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (l[a] = e[a]);
|
|
@@ -3781,134 +3781,134 @@ var Va = globalThis && globalThis.__rest || function(e, t) {
|
|
|
3781
3781
|
t.indexOf(a[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[n]) && (l[a[n]] = e[a[n]]);
|
|
3782
3782
|
return l;
|
|
3783
3783
|
};
|
|
3784
|
-
const
|
|
3785
|
-
let
|
|
3786
|
-
function
|
|
3784
|
+
const Ha = () => document.body;
|
|
3785
|
+
let pt = 0;
|
|
3786
|
+
function Ga() {
|
|
3787
3787
|
const e = {};
|
|
3788
3788
|
for (var t = arguments.length, l = new Array(t), a = 0; a < t; a++)
|
|
3789
3789
|
l[a] = arguments[a];
|
|
3790
3790
|
return l.forEach((n) => {
|
|
3791
|
-
n && Object.keys(n).forEach((
|
|
3792
|
-
const
|
|
3793
|
-
|
|
3791
|
+
n && Object.keys(n).forEach((o) => {
|
|
3792
|
+
const i = n[o];
|
|
3793
|
+
i !== void 0 && (e[o] = i);
|
|
3794
3794
|
});
|
|
3795
3795
|
}), e;
|
|
3796
3796
|
}
|
|
3797
|
-
function
|
|
3797
|
+
function zt() {
|
|
3798
3798
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3799
3799
|
const {
|
|
3800
|
-
getContainer: t =
|
|
3800
|
+
getContainer: t = Ha,
|
|
3801
3801
|
motion: l,
|
|
3802
3802
|
prefixCls: a,
|
|
3803
3803
|
maxCount: n,
|
|
3804
|
-
getClassName:
|
|
3805
|
-
getStyles:
|
|
3806
|
-
onAllRemoved:
|
|
3807
|
-
} = e, c =
|
|
3808
|
-
const
|
|
3809
|
-
key:
|
|
3810
|
-
}),
|
|
3811
|
-
|
|
3812
|
-
notice:
|
|
3813
|
-
holderCallback:
|
|
3814
|
-
}) : (n &&
|
|
3815
|
-
notice:
|
|
3816
|
-
holderCallback:
|
|
3817
|
-
})),
|
|
3818
|
-
},
|
|
3819
|
-
|
|
3804
|
+
getClassName: o,
|
|
3805
|
+
getStyles: i,
|
|
3806
|
+
onAllRemoved: r
|
|
3807
|
+
} = e, c = Fa(e, ["getContainer", "motion", "prefixCls", "maxCount", "getClassName", "getStyles", "onAllRemoved"]), f = le([]), p = le(), _ = (P, A) => {
|
|
3808
|
+
const j = P.key || dt(), S = $($({}, P), {
|
|
3809
|
+
key: j
|
|
3810
|
+
}), u = f.value.map((d) => d.notice.key).indexOf(j), y = f.value.concat();
|
|
3811
|
+
u !== -1 ? y.splice(u, 1, {
|
|
3812
|
+
notice: S,
|
|
3813
|
+
holderCallback: A
|
|
3814
|
+
}) : (n && f.value.length >= n && (S.key = y[0].notice.key, S.updateMark = dt(), S.userPassKey = j, y.shift()), y.push({
|
|
3815
|
+
notice: S,
|
|
3816
|
+
holderCallback: A
|
|
3817
|
+
})), f.value = y;
|
|
3818
|
+
}, g = (P) => {
|
|
3819
|
+
f.value = f.value.filter((A) => {
|
|
3820
3820
|
let {
|
|
3821
3821
|
notice: {
|
|
3822
|
-
key:
|
|
3823
|
-
userPassKey:
|
|
3822
|
+
key: j,
|
|
3823
|
+
userPassKey: S
|
|
3824
3824
|
}
|
|
3825
|
-
} =
|
|
3826
|
-
return (
|
|
3825
|
+
} = A;
|
|
3826
|
+
return (S || j) !== P;
|
|
3827
3827
|
});
|
|
3828
|
-
},
|
|
3829
|
-
|
|
3830
|
-
},
|
|
3831
|
-
ref:
|
|
3828
|
+
}, m = () => {
|
|
3829
|
+
f.value = [];
|
|
3830
|
+
}, w = () => x(Ra, {
|
|
3831
|
+
ref: p,
|
|
3832
3832
|
prefixCls: a,
|
|
3833
3833
|
maxCount: n,
|
|
3834
|
-
notices:
|
|
3835
|
-
remove:
|
|
3836
|
-
getClassName:
|
|
3837
|
-
getStyles:
|
|
3834
|
+
notices: f.value,
|
|
3835
|
+
remove: g,
|
|
3836
|
+
getClassName: o,
|
|
3837
|
+
getStyles: i,
|
|
3838
3838
|
animation: l,
|
|
3839
3839
|
hashId: e.hashId,
|
|
3840
|
-
onAllRemoved:
|
|
3840
|
+
onAllRemoved: r,
|
|
3841
3841
|
getContainer: t
|
|
3842
|
-
}, null),
|
|
3843
|
-
open: (
|
|
3844
|
-
const
|
|
3845
|
-
(
|
|
3842
|
+
}, null), C = le([]), O = {
|
|
3843
|
+
open: (P) => {
|
|
3844
|
+
const A = Ga(c, P);
|
|
3845
|
+
(A.key === null || A.key === void 0) && (A.key = `vc-notification-${pt}`, pt += 1), C.value = [...C.value, {
|
|
3846
3846
|
type: "open",
|
|
3847
|
-
config:
|
|
3847
|
+
config: A
|
|
3848
3848
|
}];
|
|
3849
3849
|
},
|
|
3850
|
-
close: (
|
|
3851
|
-
|
|
3850
|
+
close: (P) => {
|
|
3851
|
+
C.value = [...C.value, {
|
|
3852
3852
|
type: "close",
|
|
3853
|
-
key:
|
|
3853
|
+
key: P
|
|
3854
3854
|
}];
|
|
3855
3855
|
},
|
|
3856
3856
|
destroy: () => {
|
|
3857
|
-
|
|
3857
|
+
C.value = [...C.value, {
|
|
3858
3858
|
type: "destroy"
|
|
3859
3859
|
}];
|
|
3860
3860
|
}
|
|
3861
3861
|
};
|
|
3862
|
-
return
|
|
3863
|
-
|
|
3864
|
-
switch (
|
|
3862
|
+
return de(C, () => {
|
|
3863
|
+
C.value.length && (C.value.forEach((P) => {
|
|
3864
|
+
switch (P.type) {
|
|
3865
3865
|
case "open":
|
|
3866
|
-
|
|
3866
|
+
_(P.config);
|
|
3867
3867
|
break;
|
|
3868
3868
|
case "close":
|
|
3869
|
-
|
|
3869
|
+
g(P.key);
|
|
3870
3870
|
break;
|
|
3871
3871
|
case "destroy":
|
|
3872
|
-
|
|
3872
|
+
m();
|
|
3873
3873
|
break;
|
|
3874
3874
|
}
|
|
3875
|
-
}),
|
|
3876
|
-
}), [
|
|
3875
|
+
}), C.value = []);
|
|
3876
|
+
}), [O, w];
|
|
3877
3877
|
}
|
|
3878
|
-
const
|
|
3878
|
+
const Ba = (e) => {
|
|
3879
3879
|
const {
|
|
3880
3880
|
componentCls: t,
|
|
3881
3881
|
iconCls: l,
|
|
3882
3882
|
boxShadowSecondary: a,
|
|
3883
3883
|
colorBgElevated: n,
|
|
3884
|
-
colorSuccess:
|
|
3885
|
-
colorError:
|
|
3886
|
-
colorWarning:
|
|
3884
|
+
colorSuccess: o,
|
|
3885
|
+
colorError: i,
|
|
3886
|
+
colorWarning: r,
|
|
3887
3887
|
colorInfo: c,
|
|
3888
|
-
fontSizeLG:
|
|
3889
|
-
motionEaseInOutCirc:
|
|
3890
|
-
motionDurationSlow:
|
|
3891
|
-
marginXS:
|
|
3892
|
-
paddingXS:
|
|
3893
|
-
borderRadiusLG:
|
|
3894
|
-
zIndexPopup:
|
|
3888
|
+
fontSizeLG: f,
|
|
3889
|
+
motionEaseInOutCirc: p,
|
|
3890
|
+
motionDurationSlow: _,
|
|
3891
|
+
marginXS: g,
|
|
3892
|
+
paddingXS: m,
|
|
3893
|
+
borderRadiusLG: w,
|
|
3894
|
+
zIndexPopup: C,
|
|
3895
3895
|
// Custom token
|
|
3896
|
-
messageNoticeContentPadding:
|
|
3897
|
-
} = e,
|
|
3896
|
+
messageNoticeContentPadding: O
|
|
3897
|
+
} = e, P = new Z("MessageMoveIn", {
|
|
3898
3898
|
"0%": {
|
|
3899
3899
|
padding: 0,
|
|
3900
3900
|
transform: "translateY(-100%)",
|
|
3901
3901
|
opacity: 0
|
|
3902
3902
|
},
|
|
3903
3903
|
"100%": {
|
|
3904
|
-
padding:
|
|
3904
|
+
padding: m,
|
|
3905
3905
|
transform: "translateY(0)",
|
|
3906
3906
|
opacity: 1
|
|
3907
3907
|
}
|
|
3908
|
-
}),
|
|
3908
|
+
}), A = new Z("MessageMoveOut", {
|
|
3909
3909
|
"0%": {
|
|
3910
3910
|
maxHeight: e.height,
|
|
3911
|
-
padding:
|
|
3911
|
+
padding: m,
|
|
3912
3912
|
opacity: 1
|
|
3913
3913
|
},
|
|
3914
3914
|
"100%": {
|
|
@@ -3920,14 +3920,14 @@ const Ea = (e) => {
|
|
|
3920
3920
|
return [
|
|
3921
3921
|
// ============================ Holder ============================
|
|
3922
3922
|
{
|
|
3923
|
-
[t]:
|
|
3923
|
+
[t]: $($({}, Ot(e)), {
|
|
3924
3924
|
position: "fixed",
|
|
3925
|
-
top:
|
|
3925
|
+
top: g,
|
|
3926
3926
|
left: "50%",
|
|
3927
3927
|
transform: "translateX(-50%)",
|
|
3928
3928
|
width: "100%",
|
|
3929
3929
|
pointerEvents: "none",
|
|
3930
|
-
zIndex:
|
|
3930
|
+
zIndex: C,
|
|
3931
3931
|
[`${t}-move-up`]: {
|
|
3932
3932
|
animationFillMode: "forwards"
|
|
3933
3933
|
},
|
|
@@ -3935,10 +3935,10 @@ const Ea = (e) => {
|
|
|
3935
3935
|
${t}-move-up-appear,
|
|
3936
3936
|
${t}-move-up-enter
|
|
3937
3937
|
`]: {
|
|
3938
|
-
animationName:
|
|
3939
|
-
animationDuration:
|
|
3938
|
+
animationName: P,
|
|
3939
|
+
animationDuration: _,
|
|
3940
3940
|
animationPlayState: "paused",
|
|
3941
|
-
animationTimingFunction:
|
|
3941
|
+
animationTimingFunction: p
|
|
3942
3942
|
},
|
|
3943
3943
|
[`
|
|
3944
3944
|
${t}-move-up-appear${t}-move-up-appear-active,
|
|
@@ -3947,10 +3947,10 @@ const Ea = (e) => {
|
|
|
3947
3947
|
animationPlayState: "running"
|
|
3948
3948
|
},
|
|
3949
3949
|
[`${t}-move-up-leave`]: {
|
|
3950
|
-
animationName:
|
|
3951
|
-
animationDuration:
|
|
3950
|
+
animationName: A,
|
|
3951
|
+
animationDuration: _,
|
|
3952
3952
|
animationPlayState: "paused",
|
|
3953
|
-
animationTimingFunction:
|
|
3953
|
+
animationTimingFunction: p
|
|
3954
3954
|
},
|
|
3955
3955
|
[`${t}-move-up-leave${t}-move-up-leave-active`]: {
|
|
3956
3956
|
animationPlayState: "running"
|
|
@@ -3966,29 +3966,29 @@ const Ea = (e) => {
|
|
|
3966
3966
|
// ============================ Notice ============================
|
|
3967
3967
|
{
|
|
3968
3968
|
[`${t}-notice`]: {
|
|
3969
|
-
padding:
|
|
3969
|
+
padding: m,
|
|
3970
3970
|
textAlign: "center",
|
|
3971
3971
|
[l]: {
|
|
3972
3972
|
verticalAlign: "text-bottom",
|
|
3973
|
-
marginInlineEnd:
|
|
3974
|
-
fontSize:
|
|
3973
|
+
marginInlineEnd: g,
|
|
3974
|
+
fontSize: f
|
|
3975
3975
|
},
|
|
3976
3976
|
[`${t}-notice-content`]: {
|
|
3977
3977
|
display: "inline-block",
|
|
3978
|
-
padding:
|
|
3978
|
+
padding: O,
|
|
3979
3979
|
background: n,
|
|
3980
|
-
borderRadius:
|
|
3980
|
+
borderRadius: w,
|
|
3981
3981
|
boxShadow: a,
|
|
3982
3982
|
pointerEvents: "all"
|
|
3983
3983
|
},
|
|
3984
3984
|
[`${t}-success ${l}`]: {
|
|
3985
|
-
color:
|
|
3985
|
+
color: o
|
|
3986
3986
|
},
|
|
3987
3987
|
[`${t}-error ${l}`]: {
|
|
3988
|
-
color:
|
|
3988
|
+
color: i
|
|
3989
3989
|
},
|
|
3990
3990
|
[`${t}-warning ${l}`]: {
|
|
3991
|
-
color:
|
|
3991
|
+
color: r
|
|
3992
3992
|
},
|
|
3993
3993
|
[`
|
|
3994
3994
|
${t}-info ${l},
|
|
@@ -4005,21 +4005,21 @@ const Ea = (e) => {
|
|
|
4005
4005
|
}
|
|
4006
4006
|
}
|
|
4007
4007
|
];
|
|
4008
|
-
},
|
|
4009
|
-
const t =
|
|
4008
|
+
}, Ue = Pt("Message", (e) => {
|
|
4009
|
+
const t = It(e, {
|
|
4010
4010
|
messageNoticeContentPadding: `${(e.controlHeightLG - e.fontSize * e.lineHeight) / 2}px ${e.paddingSM}px`
|
|
4011
4011
|
});
|
|
4012
|
-
return [
|
|
4012
|
+
return [Ba(t)];
|
|
4013
4013
|
}, (e) => ({
|
|
4014
4014
|
height: 150,
|
|
4015
4015
|
zIndexPopup: e.zIndexPopupBase + 10
|
|
4016
|
-
})),
|
|
4017
|
-
info:
|
|
4018
|
-
success:
|
|
4019
|
-
error:
|
|
4020
|
-
warning:
|
|
4021
|
-
loading:
|
|
4022
|
-
},
|
|
4016
|
+
})), Ua = {
|
|
4017
|
+
info: x(be, null, null),
|
|
4018
|
+
success: x(ge, null, null),
|
|
4019
|
+
error: x(he, null, null),
|
|
4020
|
+
warning: x(ye, null, null),
|
|
4021
|
+
loading: x(Ee, null, null)
|
|
4022
|
+
}, Et = G({
|
|
4023
4023
|
name: "PureContent",
|
|
4024
4024
|
inheritAttrs: !1,
|
|
4025
4025
|
props: ["prefixCls", "type", "icon"],
|
|
@@ -4029,13 +4029,13 @@ const Ea = (e) => {
|
|
|
4029
4029
|
} = t;
|
|
4030
4030
|
return () => {
|
|
4031
4031
|
var a;
|
|
4032
|
-
return
|
|
4033
|
-
class:
|
|
4034
|
-
}, [e.icon ||
|
|
4032
|
+
return x("div", {
|
|
4033
|
+
class: F(`${e.prefixCls}-custom-content`, `${e.prefixCls}-${e.type}`)
|
|
4034
|
+
}, [e.icon || Ua[e.type], x("span", null, [(a = l.default) === null || a === void 0 ? void 0 : a.call(l)])]);
|
|
4035
4035
|
};
|
|
4036
4036
|
}
|
|
4037
4037
|
});
|
|
4038
|
-
|
|
4038
|
+
G({
|
|
4039
4039
|
name: "PurePanel",
|
|
4040
4040
|
inheritAttrs: !1,
|
|
4041
4041
|
props: ["prefixCls", "class", "type", "icon", "content"],
|
|
@@ -4046,16 +4046,16 @@ R({
|
|
|
4046
4046
|
} = t;
|
|
4047
4047
|
var n;
|
|
4048
4048
|
const {
|
|
4049
|
-
getPrefixCls:
|
|
4050
|
-
} =
|
|
4051
|
-
return
|
|
4052
|
-
prefixCls:
|
|
4053
|
-
class:
|
|
4049
|
+
getPrefixCls: o
|
|
4050
|
+
} = Tt(), i = V(() => e.prefixCls || o("message")), [, r] = Ue(i);
|
|
4051
|
+
return x(ve, z(z({}, a), {}, {
|
|
4052
|
+
prefixCls: i.value,
|
|
4053
|
+
class: F(r.value, `${i.value}-notice-pure-panel`),
|
|
4054
4054
|
noticeKey: "pure",
|
|
4055
4055
|
duration: null
|
|
4056
4056
|
}), {
|
|
4057
|
-
default: () => [
|
|
4058
|
-
prefixCls:
|
|
4057
|
+
default: () => [x(Et, {
|
|
4058
|
+
prefixCls: i.value,
|
|
4059
4059
|
type: e.type,
|
|
4060
4060
|
icon: e.icon
|
|
4061
4061
|
}, {
|
|
@@ -4064,7 +4064,7 @@ R({
|
|
|
4064
4064
|
});
|
|
4065
4065
|
}
|
|
4066
4066
|
});
|
|
4067
|
-
var
|
|
4067
|
+
var Wa = globalThis && globalThis.__rest || function(e, t) {
|
|
4068
4068
|
var l = {};
|
|
4069
4069
|
for (var a in e)
|
|
4070
4070
|
Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (l[a] = e[a]);
|
|
@@ -4073,7 +4073,7 @@ var qa = globalThis && globalThis.__rest || function(e, t) {
|
|
|
4073
4073
|
t.indexOf(a[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[n]) && (l[a[n]] = e[a[n]]);
|
|
4074
4074
|
return l;
|
|
4075
4075
|
};
|
|
4076
|
-
const
|
|
4076
|
+
const Ja = 8, Xa = 3, Qa = G({
|
|
4077
4077
|
name: "Holder",
|
|
4078
4078
|
inheritAttrs: !1,
|
|
4079
4079
|
props: ["top", "prefixCls", "getContainer", "maxCount", "duration", "rtl", "transitionName", "onAllRemoved", "animation", "staticGetContainer"],
|
|
@@ -4083,215 +4083,215 @@ const Ra = 8, La = 3, Fa = R({
|
|
|
4083
4083
|
} = t;
|
|
4084
4084
|
var a, n;
|
|
4085
4085
|
const {
|
|
4086
|
-
getPrefixCls:
|
|
4087
|
-
getPopupContainer:
|
|
4088
|
-
} =
|
|
4089
|
-
var
|
|
4090
|
-
const
|
|
4086
|
+
getPrefixCls: o,
|
|
4087
|
+
getPopupContainer: i
|
|
4088
|
+
} = Ne("message", e), r = V(() => o("message", e.prefixCls)), [, c] = Ue(r), f = () => {
|
|
4089
|
+
var C;
|
|
4090
|
+
const O = (C = e.top) !== null && C !== void 0 ? C : Ja;
|
|
4091
4091
|
return {
|
|
4092
4092
|
left: "50%",
|
|
4093
4093
|
transform: "translateX(-50%)",
|
|
4094
|
-
top: typeof
|
|
4094
|
+
top: typeof O == "number" ? `${O}px` : O
|
|
4095
4095
|
};
|
|
4096
|
-
},
|
|
4097
|
-
var
|
|
4098
|
-
return
|
|
4099
|
-
prefixCls:
|
|
4100
|
-
animation: (
|
|
4096
|
+
}, p = () => F(c.value, e.rtl ? `${r.value}-rtl` : ""), _ = () => {
|
|
4097
|
+
var C;
|
|
4098
|
+
return xl({
|
|
4099
|
+
prefixCls: r.value,
|
|
4100
|
+
animation: (C = e.animation) !== null && C !== void 0 ? C : "move-up",
|
|
4101
4101
|
transitionName: e.transitionName
|
|
4102
4102
|
});
|
|
4103
|
-
},
|
|
4104
|
-
class: `${
|
|
4105
|
-
}, [
|
|
4106
|
-
class: `${
|
|
4107
|
-
}, null)]), [
|
|
4103
|
+
}, g = x("span", {
|
|
4104
|
+
class: `${r.value}-close-x`
|
|
4105
|
+
}, [x(Le, {
|
|
4106
|
+
class: `${r.value}-close-icon`
|
|
4107
|
+
}, null)]), [m, w] = zt({
|
|
4108
4108
|
//@ts-ignore
|
|
4109
|
-
getStyles:
|
|
4110
|
-
prefixCls:
|
|
4111
|
-
getClassName:
|
|
4112
|
-
motion:
|
|
4109
|
+
getStyles: f,
|
|
4110
|
+
prefixCls: r.value,
|
|
4111
|
+
getClassName: p,
|
|
4112
|
+
motion: _,
|
|
4113
4113
|
closable: !1,
|
|
4114
|
-
closeIcon:
|
|
4115
|
-
duration: (a = e.duration) !== null && a !== void 0 ? a :
|
|
4116
|
-
getContainer: (n = e.staticGetContainer) !== null && n !== void 0 ? n :
|
|
4114
|
+
closeIcon: g,
|
|
4115
|
+
duration: (a = e.duration) !== null && a !== void 0 ? a : Xa,
|
|
4116
|
+
getContainer: (n = e.staticGetContainer) !== null && n !== void 0 ? n : i.value,
|
|
4117
4117
|
maxCount: e.maxCount,
|
|
4118
4118
|
onAllRemoved: e.onAllRemoved
|
|
4119
4119
|
});
|
|
4120
|
-
return l(
|
|
4121
|
-
prefixCls:
|
|
4120
|
+
return l($($({}, m), {
|
|
4121
|
+
prefixCls: r,
|
|
4122
4122
|
hashId: c
|
|
4123
|
-
})),
|
|
4123
|
+
})), w;
|
|
4124
4124
|
}
|
|
4125
4125
|
});
|
|
4126
|
-
let
|
|
4127
|
-
function
|
|
4128
|
-
const t =
|
|
4129
|
-
var
|
|
4130
|
-
(
|
|
4126
|
+
let ft = 0;
|
|
4127
|
+
function Ya(e) {
|
|
4128
|
+
const t = le(null), l = Symbol("messageHolderKey"), a = (c) => {
|
|
4129
|
+
var f;
|
|
4130
|
+
(f = t.value) === null || f === void 0 || f.close(c);
|
|
4131
4131
|
}, n = (c) => {
|
|
4132
4132
|
if (!t.value) {
|
|
4133
|
-
const
|
|
4133
|
+
const u = () => {
|
|
4134
4134
|
};
|
|
4135
|
-
return
|
|
4136
|
-
},
|
|
4135
|
+
return u.then = () => {
|
|
4136
|
+
}, u;
|
|
4137
4137
|
}
|
|
4138
4138
|
const {
|
|
4139
|
-
open:
|
|
4140
|
-
prefixCls:
|
|
4141
|
-
hashId:
|
|
4142
|
-
} = t.value,
|
|
4143
|
-
content:
|
|
4144
|
-
icon:
|
|
4145
|
-
type:
|
|
4146
|
-
key:
|
|
4147
|
-
class:
|
|
4148
|
-
onClose:
|
|
4149
|
-
} = c,
|
|
4150
|
-
let
|
|
4151
|
-
return
|
|
4152
|
-
key:
|
|
4153
|
-
content: () =>
|
|
4154
|
-
prefixCls:
|
|
4155
|
-
type:
|
|
4156
|
-
icon: typeof
|
|
4139
|
+
open: f,
|
|
4140
|
+
prefixCls: p,
|
|
4141
|
+
hashId: _
|
|
4142
|
+
} = t.value, g = `${p}-notice`, {
|
|
4143
|
+
content: m,
|
|
4144
|
+
icon: w,
|
|
4145
|
+
type: C,
|
|
4146
|
+
key: O,
|
|
4147
|
+
class: P,
|
|
4148
|
+
onClose: A
|
|
4149
|
+
} = c, j = Wa(c, ["content", "icon", "type", "key", "class", "onClose"]);
|
|
4150
|
+
let S = O;
|
|
4151
|
+
return S == null && (ft += 1, S = `antd-message-${ft}`), wl((u) => (f($($({}, j), {
|
|
4152
|
+
key: S,
|
|
4153
|
+
content: () => x(Et, {
|
|
4154
|
+
prefixCls: p,
|
|
4155
|
+
type: C,
|
|
4156
|
+
icon: typeof w == "function" ? w() : w
|
|
4157
4157
|
}, {
|
|
4158
|
-
default: () => [typeof
|
|
4158
|
+
default: () => [typeof m == "function" ? m() : m]
|
|
4159
4159
|
}),
|
|
4160
4160
|
placement: "top",
|
|
4161
4161
|
// @ts-ignore
|
|
4162
|
-
class:
|
|
4162
|
+
class: F(C && `${g}-${C}`, _, P),
|
|
4163
4163
|
onClose: () => {
|
|
4164
|
-
|
|
4164
|
+
A == null || A(), u();
|
|
4165
4165
|
}
|
|
4166
4166
|
})), () => {
|
|
4167
|
-
a(
|
|
4167
|
+
a(S);
|
|
4168
4168
|
}));
|
|
4169
|
-
},
|
|
4169
|
+
}, i = {
|
|
4170
4170
|
open: n,
|
|
4171
4171
|
destroy: (c) => {
|
|
4172
|
-
var
|
|
4173
|
-
c !== void 0 ? a(c) : (
|
|
4172
|
+
var f;
|
|
4173
|
+
c !== void 0 ? a(c) : (f = t.value) === null || f === void 0 || f.destroy();
|
|
4174
4174
|
}
|
|
4175
4175
|
};
|
|
4176
4176
|
return ["info", "success", "warning", "error", "loading"].forEach((c) => {
|
|
4177
|
-
const
|
|
4178
|
-
let
|
|
4179
|
-
|
|
4180
|
-
content:
|
|
4177
|
+
const f = (p, _, g) => {
|
|
4178
|
+
let m;
|
|
4179
|
+
p && typeof p == "object" && "content" in p ? m = p : m = {
|
|
4180
|
+
content: p
|
|
4181
4181
|
};
|
|
4182
|
-
let
|
|
4183
|
-
typeof
|
|
4184
|
-
const
|
|
4185
|
-
onClose:
|
|
4186
|
-
duration:
|
|
4187
|
-
},
|
|
4182
|
+
let w, C;
|
|
4183
|
+
typeof _ == "function" ? C = _ : (w = _, C = g);
|
|
4184
|
+
const O = $($({
|
|
4185
|
+
onClose: C,
|
|
4186
|
+
duration: w
|
|
4187
|
+
}, m), {
|
|
4188
4188
|
type: c
|
|
4189
4189
|
});
|
|
4190
|
-
return n(
|
|
4190
|
+
return n(O);
|
|
4191
4191
|
};
|
|
4192
|
-
|
|
4193
|
-
}), [
|
|
4192
|
+
i[c] = f;
|
|
4193
|
+
}), [i, () => x(Qa, z(z({
|
|
4194
4194
|
key: l
|
|
4195
4195
|
}, e), {}, {
|
|
4196
4196
|
ref: t
|
|
4197
4197
|
}), null)];
|
|
4198
4198
|
}
|
|
4199
|
-
function
|
|
4200
|
-
return
|
|
4199
|
+
function Za(e) {
|
|
4200
|
+
return Ya(e);
|
|
4201
4201
|
}
|
|
4202
|
-
let
|
|
4203
|
-
function
|
|
4204
|
-
return
|
|
4202
|
+
let Nt = 3, qt, L, en = 1, Lt = "", Rt = "move-up", Ft = !1, Ht = () => document.body, Gt, Bt = !1;
|
|
4203
|
+
function tn() {
|
|
4204
|
+
return en++;
|
|
4205
4205
|
}
|
|
4206
|
-
function
|
|
4207
|
-
e.top !== void 0 && (
|
|
4206
|
+
function ln(e) {
|
|
4207
|
+
e.top !== void 0 && (qt = e.top, L = null), e.duration !== void 0 && (Nt = e.duration), e.prefixCls !== void 0 && (Lt = e.prefixCls), e.getContainer !== void 0 && (Ht = e.getContainer, L = null), e.transitionName !== void 0 && (Rt = e.transitionName, L = null, Ft = !0), e.maxCount !== void 0 && (Gt = e.maxCount, L = null), e.rtl !== void 0 && (Bt = e.rtl);
|
|
4208
4208
|
}
|
|
4209
|
-
function
|
|
4210
|
-
if (
|
|
4211
|
-
t(
|
|
4209
|
+
function an(e, t) {
|
|
4210
|
+
if (L) {
|
|
4211
|
+
t(L);
|
|
4212
4212
|
return;
|
|
4213
4213
|
}
|
|
4214
|
-
|
|
4214
|
+
Kt.newInstance({
|
|
4215
4215
|
appContext: e.appContext,
|
|
4216
|
-
prefixCls: e.prefixCls ||
|
|
4216
|
+
prefixCls: e.prefixCls || Lt,
|
|
4217
4217
|
rootPrefixCls: e.rootPrefixCls,
|
|
4218
|
-
transitionName:
|
|
4219
|
-
hasTransitionName:
|
|
4218
|
+
transitionName: Rt,
|
|
4219
|
+
hasTransitionName: Ft,
|
|
4220
4220
|
style: {
|
|
4221
|
-
top:
|
|
4221
|
+
top: qt
|
|
4222
4222
|
},
|
|
4223
|
-
getContainer:
|
|
4224
|
-
maxCount:
|
|
4223
|
+
getContainer: Ht || e.getPopupContainer,
|
|
4224
|
+
maxCount: Gt,
|
|
4225
4225
|
name: "message",
|
|
4226
|
-
useStyle:
|
|
4226
|
+
useStyle: Ue
|
|
4227
4227
|
}, (l) => {
|
|
4228
|
-
if (
|
|
4229
|
-
t(
|
|
4228
|
+
if (L) {
|
|
4229
|
+
t(L);
|
|
4230
4230
|
return;
|
|
4231
4231
|
}
|
|
4232
|
-
|
|
4232
|
+
L = l, t(l);
|
|
4233
4233
|
});
|
|
4234
4234
|
}
|
|
4235
|
-
const
|
|
4236
|
-
info:
|
|
4237
|
-
success:
|
|
4238
|
-
error:
|
|
4239
|
-
warning:
|
|
4240
|
-
loading:
|
|
4241
|
-
},
|
|
4242
|
-
function
|
|
4243
|
-
const t = e.duration !== void 0 ? e.duration :
|
|
4244
|
-
const
|
|
4245
|
-
|
|
4246
|
-
|
|
4235
|
+
const Ut = {
|
|
4236
|
+
info: be,
|
|
4237
|
+
success: ge,
|
|
4238
|
+
error: he,
|
|
4239
|
+
warning: ye,
|
|
4240
|
+
loading: Ee
|
|
4241
|
+
}, nn = Object.keys(Ut);
|
|
4242
|
+
function on(e) {
|
|
4243
|
+
const t = e.duration !== void 0 ? e.duration : Nt, l = e.key || tn(), a = new Promise((o) => {
|
|
4244
|
+
const i = () => (typeof e.onClose == "function" && e.onClose(), o(!0));
|
|
4245
|
+
an(e, (r) => {
|
|
4246
|
+
r.notice({
|
|
4247
4247
|
key: l,
|
|
4248
4248
|
duration: t,
|
|
4249
4249
|
style: e.style || {},
|
|
4250
4250
|
class: e.class,
|
|
4251
4251
|
content: (c) => {
|
|
4252
4252
|
let {
|
|
4253
|
-
prefixCls:
|
|
4253
|
+
prefixCls: f
|
|
4254
4254
|
} = c;
|
|
4255
|
-
const
|
|
4256
|
-
[`${
|
|
4257
|
-
[`${
|
|
4255
|
+
const p = Ut[e.type], _ = p ? x(p, null, null) : "", g = F(`${f}-custom-content`, {
|
|
4256
|
+
[`${f}-${e.type}`]: e.type,
|
|
4257
|
+
[`${f}-rtl`]: Bt === !0
|
|
4258
4258
|
});
|
|
4259
|
-
return
|
|
4260
|
-
class:
|
|
4261
|
-
}, [typeof e.icon == "function" ? e.icon() : e.icon ||
|
|
4259
|
+
return x("div", {
|
|
4260
|
+
class: g
|
|
4261
|
+
}, [typeof e.icon == "function" ? e.icon() : e.icon || _, x("span", null, [typeof e.content == "function" ? e.content() : e.content])]);
|
|
4262
4262
|
},
|
|
4263
|
-
onClose:
|
|
4263
|
+
onClose: i,
|
|
4264
4264
|
onClick: e.onClick
|
|
4265
4265
|
});
|
|
4266
4266
|
});
|
|
4267
4267
|
}), n = () => {
|
|
4268
|
-
|
|
4268
|
+
L && L.removeNotice(l);
|
|
4269
4269
|
};
|
|
4270
|
-
return n.then = (
|
|
4270
|
+
return n.then = (o, i) => a.then(o, i), n.promise = a, n;
|
|
4271
4271
|
}
|
|
4272
|
-
function
|
|
4272
|
+
function rn(e) {
|
|
4273
4273
|
return Object.prototype.toString.call(e) === "[object Object]" && !!e.content;
|
|
4274
4274
|
}
|
|
4275
|
-
const
|
|
4276
|
-
open:
|
|
4277
|
-
config:
|
|
4275
|
+
const ce = {
|
|
4276
|
+
open: on,
|
|
4277
|
+
config: ln,
|
|
4278
4278
|
destroy(e) {
|
|
4279
|
-
if (
|
|
4279
|
+
if (L)
|
|
4280
4280
|
if (e) {
|
|
4281
4281
|
const {
|
|
4282
4282
|
removeNotice: t
|
|
4283
|
-
} =
|
|
4283
|
+
} = L;
|
|
4284
4284
|
t(e);
|
|
4285
4285
|
} else {
|
|
4286
4286
|
const {
|
|
4287
4287
|
destroy: t
|
|
4288
|
-
} =
|
|
4289
|
-
t(),
|
|
4288
|
+
} = L;
|
|
4289
|
+
t(), L = null;
|
|
4290
4290
|
}
|
|
4291
4291
|
}
|
|
4292
4292
|
};
|
|
4293
|
-
function
|
|
4294
|
-
e[t] = (l, a, n) =>
|
|
4293
|
+
function sn(e, t) {
|
|
4294
|
+
e[t] = (l, a, n) => rn(l) ? e.open($($({}, l), {
|
|
4295
4295
|
type: t
|
|
4296
4296
|
})) : (typeof a == "function" && (n = a, a = void 0), e.open({
|
|
4297
4297
|
content: l,
|
|
@@ -4300,15 +4300,15 @@ function Za(e, t) {
|
|
|
4300
4300
|
onClose: n
|
|
4301
4301
|
}));
|
|
4302
4302
|
}
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
const
|
|
4303
|
+
nn.forEach((e) => sn(ce, e));
|
|
4304
|
+
ce.warn = ce.warning;
|
|
4305
|
+
ce.useMessage = Za;
|
|
4306
|
+
const re = ce, un = (e) => {
|
|
4307
4307
|
const {
|
|
4308
4308
|
componentCls: t,
|
|
4309
4309
|
width: l,
|
|
4310
4310
|
notificationMarginEdge: a
|
|
4311
|
-
} = e, n = new
|
|
4311
|
+
} = e, n = new Z("antNotificationTopFadeIn", {
|
|
4312
4312
|
"0%": {
|
|
4313
4313
|
marginTop: "-100%",
|
|
4314
4314
|
opacity: 0
|
|
@@ -4317,7 +4317,7 @@ const ie = se, en = (e) => {
|
|
|
4317
4317
|
marginTop: 0,
|
|
4318
4318
|
opacity: 1
|
|
4319
4319
|
}
|
|
4320
|
-
}),
|
|
4320
|
+
}), o = new Z("antNotificationBottomFadeIn", {
|
|
4321
4321
|
"0%": {
|
|
4322
4322
|
marginBottom: "-100%",
|
|
4323
4323
|
opacity: 0
|
|
@@ -4326,7 +4326,7 @@ const ie = se, en = (e) => {
|
|
|
4326
4326
|
marginBottom: 0,
|
|
4327
4327
|
opacity: 1
|
|
4328
4328
|
}
|
|
4329
|
-
}),
|
|
4329
|
+
}), i = new Z("antNotificationLeftFadeIn", {
|
|
4330
4330
|
"0%": {
|
|
4331
4331
|
right: {
|
|
4332
4332
|
_skip_check_: !0,
|
|
@@ -4353,45 +4353,45 @@ const ie = se, en = (e) => {
|
|
|
4353
4353
|
},
|
|
4354
4354
|
[`&${t}-bottom`]: {
|
|
4355
4355
|
[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]: {
|
|
4356
|
-
animationName:
|
|
4356
|
+
animationName: o
|
|
4357
4357
|
}
|
|
4358
4358
|
},
|
|
4359
4359
|
[`&${t}-topLeft, &${t}-bottomLeft`]: {
|
|
4360
4360
|
marginInlineEnd: 0,
|
|
4361
4361
|
marginInlineStart: a,
|
|
4362
4362
|
[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]: {
|
|
4363
|
-
animationName:
|
|
4363
|
+
animationName: i
|
|
4364
4364
|
}
|
|
4365
4365
|
}
|
|
4366
4366
|
};
|
|
4367
|
-
},
|
|
4367
|
+
}, cn = un, dn = (e) => {
|
|
4368
4368
|
const {
|
|
4369
4369
|
iconCls: t,
|
|
4370
4370
|
componentCls: l,
|
|
4371
4371
|
// .ant-notification
|
|
4372
4372
|
boxShadowSecondary: a,
|
|
4373
4373
|
fontSizeLG: n,
|
|
4374
|
-
notificationMarginBottom:
|
|
4375
|
-
borderRadiusLG:
|
|
4376
|
-
colorSuccess:
|
|
4374
|
+
notificationMarginBottom: o,
|
|
4375
|
+
borderRadiusLG: i,
|
|
4376
|
+
colorSuccess: r,
|
|
4377
4377
|
colorInfo: c,
|
|
4378
|
-
colorWarning:
|
|
4379
|
-
colorError:
|
|
4380
|
-
colorTextHeading:
|
|
4381
|
-
notificationBg:
|
|
4382
|
-
notificationPadding:
|
|
4383
|
-
notificationMarginEdge:
|
|
4384
|
-
motionDurationMid:
|
|
4385
|
-
motionEaseInOut:
|
|
4386
|
-
fontSize:
|
|
4387
|
-
lineHeight:
|
|
4388
|
-
width:
|
|
4389
|
-
notificationIconSize:
|
|
4390
|
-
} = e,
|
|
4378
|
+
colorWarning: f,
|
|
4379
|
+
colorError: p,
|
|
4380
|
+
colorTextHeading: _,
|
|
4381
|
+
notificationBg: g,
|
|
4382
|
+
notificationPadding: m,
|
|
4383
|
+
notificationMarginEdge: w,
|
|
4384
|
+
motionDurationMid: C,
|
|
4385
|
+
motionEaseInOut: O,
|
|
4386
|
+
fontSize: P,
|
|
4387
|
+
lineHeight: A,
|
|
4388
|
+
width: j,
|
|
4389
|
+
notificationIconSize: S
|
|
4390
|
+
} = e, u = `${l}-notice`, y = new Z("antNotificationFadeIn", {
|
|
4391
4391
|
"0%": {
|
|
4392
4392
|
left: {
|
|
4393
4393
|
_skip_check_: !0,
|
|
4394
|
-
value:
|
|
4394
|
+
value: j
|
|
4395
4395
|
},
|
|
4396
4396
|
opacity: 0
|
|
4397
4397
|
},
|
|
@@ -4402,10 +4402,10 @@ const ie = se, en = (e) => {
|
|
|
4402
4402
|
},
|
|
4403
4403
|
opacity: 1
|
|
4404
4404
|
}
|
|
4405
|
-
}),
|
|
4405
|
+
}), d = new Z("antNotificationFadeOut", {
|
|
4406
4406
|
"0%": {
|
|
4407
4407
|
maxHeight: e.animationMaxHeight,
|
|
4408
|
-
marginBottom:
|
|
4408
|
+
marginBottom: o,
|
|
4409
4409
|
opacity: 1
|
|
4410
4410
|
},
|
|
4411
4411
|
"100%": {
|
|
@@ -4419,10 +4419,10 @@ const ie = se, en = (e) => {
|
|
|
4419
4419
|
return [
|
|
4420
4420
|
// ============================ Holder ============================
|
|
4421
4421
|
{
|
|
4422
|
-
[l]:
|
|
4422
|
+
[l]: $($($($({}, Ot(e)), {
|
|
4423
4423
|
position: "fixed",
|
|
4424
4424
|
zIndex: e.zIndexPopup,
|
|
4425
|
-
marginInlineEnd:
|
|
4425
|
+
marginInlineEnd: w,
|
|
4426
4426
|
[`${l}-hook-holder`]: {
|
|
4427
4427
|
position: "relative"
|
|
4428
4428
|
},
|
|
@@ -4440,26 +4440,26 @@ const ie = se, en = (e) => {
|
|
|
4440
4440
|
// animation
|
|
4441
4441
|
[`${l}-fade-enter, ${l}-fade-appear`]: {
|
|
4442
4442
|
animationDuration: e.motionDurationMid,
|
|
4443
|
-
animationTimingFunction:
|
|
4443
|
+
animationTimingFunction: O,
|
|
4444
4444
|
animationFillMode: "both",
|
|
4445
4445
|
opacity: 0,
|
|
4446
4446
|
animationPlayState: "paused"
|
|
4447
4447
|
},
|
|
4448
4448
|
[`${l}-fade-leave`]: {
|
|
4449
|
-
animationTimingFunction:
|
|
4449
|
+
animationTimingFunction: O,
|
|
4450
4450
|
animationFillMode: "both",
|
|
4451
|
-
animationDuration:
|
|
4451
|
+
animationDuration: C,
|
|
4452
4452
|
animationPlayState: "paused"
|
|
4453
4453
|
},
|
|
4454
4454
|
[`${l}-fade-enter${l}-fade-enter-active, ${l}-fade-appear${l}-fade-appear-active`]: {
|
|
4455
|
-
animationName:
|
|
4455
|
+
animationName: y,
|
|
4456
4456
|
animationPlayState: "running"
|
|
4457
4457
|
},
|
|
4458
4458
|
[`${l}-fade-leave${l}-fade-leave-active`]: {
|
|
4459
|
-
animationName:
|
|
4459
|
+
animationName: d,
|
|
4460
4460
|
animationPlayState: "running"
|
|
4461
4461
|
}
|
|
4462
|
-
}),
|
|
4462
|
+
}), cn(e)), {
|
|
4463
4463
|
// RTL
|
|
4464
4464
|
"&-rtl": {
|
|
4465
4465
|
direction: "rtl",
|
|
@@ -4471,66 +4471,66 @@ const ie = se, en = (e) => {
|
|
|
4471
4471
|
},
|
|
4472
4472
|
// ============================ Notice ============================
|
|
4473
4473
|
{
|
|
4474
|
-
[
|
|
4474
|
+
[u]: {
|
|
4475
4475
|
position: "relative",
|
|
4476
|
-
width:
|
|
4477
|
-
maxWidth: `calc(100vw - ${
|
|
4478
|
-
marginBottom:
|
|
4476
|
+
width: j,
|
|
4477
|
+
maxWidth: `calc(100vw - ${w * 2}px)`,
|
|
4478
|
+
marginBottom: o,
|
|
4479
4479
|
marginInlineStart: "auto",
|
|
4480
|
-
padding:
|
|
4480
|
+
padding: m,
|
|
4481
4481
|
overflow: "hidden",
|
|
4482
|
-
lineHeight:
|
|
4482
|
+
lineHeight: A,
|
|
4483
4483
|
wordWrap: "break-word",
|
|
4484
|
-
background:
|
|
4485
|
-
borderRadius:
|
|
4484
|
+
background: g,
|
|
4485
|
+
borderRadius: i,
|
|
4486
4486
|
boxShadow: a,
|
|
4487
4487
|
[`${l}-close-icon`]: {
|
|
4488
|
-
fontSize:
|
|
4488
|
+
fontSize: P,
|
|
4489
4489
|
cursor: "pointer"
|
|
4490
4490
|
},
|
|
4491
|
-
[`${
|
|
4491
|
+
[`${u}-message`]: {
|
|
4492
4492
|
marginBottom: e.marginXS,
|
|
4493
|
-
color:
|
|
4493
|
+
color: _,
|
|
4494
4494
|
fontSize: n,
|
|
4495
4495
|
lineHeight: e.lineHeightLG
|
|
4496
4496
|
},
|
|
4497
|
-
[`${
|
|
4498
|
-
fontSize:
|
|
4497
|
+
[`${u}-description`]: {
|
|
4498
|
+
fontSize: P
|
|
4499
4499
|
},
|
|
4500
|
-
[`&${
|
|
4500
|
+
[`&${u}-closable ${u}-message`]: {
|
|
4501
4501
|
paddingInlineEnd: e.paddingLG
|
|
4502
4502
|
},
|
|
4503
|
-
[`${
|
|
4503
|
+
[`${u}-with-icon ${u}-message`]: {
|
|
4504
4504
|
marginBottom: e.marginXS,
|
|
4505
|
-
marginInlineStart: e.marginSM +
|
|
4505
|
+
marginInlineStart: e.marginSM + S,
|
|
4506
4506
|
fontSize: n
|
|
4507
4507
|
},
|
|
4508
|
-
[`${
|
|
4509
|
-
marginInlineStart: e.marginSM +
|
|
4510
|
-
fontSize:
|
|
4508
|
+
[`${u}-with-icon ${u}-description`]: {
|
|
4509
|
+
marginInlineStart: e.marginSM + S,
|
|
4510
|
+
fontSize: P
|
|
4511
4511
|
},
|
|
4512
4512
|
// Icon & color style in different selector level
|
|
4513
4513
|
// https://github.com/ant-design/ant-design/issues/16503
|
|
4514
4514
|
// https://github.com/ant-design/ant-design/issues/15512
|
|
4515
|
-
[`${
|
|
4515
|
+
[`${u}-icon`]: {
|
|
4516
4516
|
position: "absolute",
|
|
4517
|
-
fontSize:
|
|
4517
|
+
fontSize: S,
|
|
4518
4518
|
lineHeight: 0,
|
|
4519
4519
|
// icon-font
|
|
4520
4520
|
[`&-success${t}`]: {
|
|
4521
|
-
color:
|
|
4521
|
+
color: r
|
|
4522
4522
|
},
|
|
4523
4523
|
[`&-info${t}`]: {
|
|
4524
4524
|
color: c
|
|
4525
4525
|
},
|
|
4526
4526
|
[`&-warning${t}`]: {
|
|
4527
|
-
color:
|
|
4527
|
+
color: f
|
|
4528
4528
|
},
|
|
4529
4529
|
[`&-error${t}`]: {
|
|
4530
|
-
color:
|
|
4530
|
+
color: p
|
|
4531
4531
|
}
|
|
4532
4532
|
},
|
|
4533
|
-
[`${
|
|
4533
|
+
[`${u}-close`]: {
|
|
4534
4534
|
position: "absolute",
|
|
4535
4535
|
top: e.notificationPaddingVertical,
|
|
4536
4536
|
insetInlineEnd: e.notificationPaddingHorizontal,
|
|
@@ -4548,7 +4548,7 @@ const ie = se, en = (e) => {
|
|
|
4548
4548
|
backgroundColor: e.wireframe ? "transparent" : e.colorFillContent
|
|
4549
4549
|
}
|
|
4550
4550
|
},
|
|
4551
|
-
[`${
|
|
4551
|
+
[`${u}-btn`]: {
|
|
4552
4552
|
float: "right",
|
|
4553
4553
|
marginTop: e.marginSM
|
|
4554
4554
|
}
|
|
@@ -4556,13 +4556,13 @@ const ie = se, en = (e) => {
|
|
|
4556
4556
|
},
|
|
4557
4557
|
// ============================= Pure =============================
|
|
4558
4558
|
{
|
|
4559
|
-
[`${
|
|
4559
|
+
[`${u}-pure-panel`]: {
|
|
4560
4560
|
margin: 0
|
|
4561
4561
|
}
|
|
4562
4562
|
}
|
|
4563
4563
|
];
|
|
4564
|
-
},
|
|
4565
|
-
const t = e.paddingMD, l = e.paddingLG, a =
|
|
4564
|
+
}, We = Pt("Notification", (e) => {
|
|
4565
|
+
const t = e.paddingMD, l = e.paddingLG, a = It(e, {
|
|
4566
4566
|
// default.less variables
|
|
4567
4567
|
notificationBg: e.colorBgElevated,
|
|
4568
4568
|
notificationPaddingVertical: t,
|
|
@@ -4575,74 +4575,74 @@ const ie = se, en = (e) => {
|
|
|
4575
4575
|
notificationIconSize: e.fontSizeLG * e.lineHeightLG,
|
|
4576
4576
|
notificationCloseButtonSize: e.controlHeightLG * 0.55
|
|
4577
4577
|
});
|
|
4578
|
-
return [
|
|
4578
|
+
return [dn(a)];
|
|
4579
4579
|
}, (e) => ({
|
|
4580
4580
|
zIndexPopup: e.zIndexPopupBase + 50,
|
|
4581
4581
|
width: 384
|
|
4582
4582
|
}));
|
|
4583
|
-
function
|
|
4584
|
-
return t ||
|
|
4583
|
+
function Wt(e, t) {
|
|
4584
|
+
return t || x("span", {
|
|
4585
4585
|
class: `${e}-close-x`
|
|
4586
|
-
}, [
|
|
4586
|
+
}, [x(Le, {
|
|
4587
4587
|
class: `${e}-close-icon`
|
|
4588
4588
|
}, null)]);
|
|
4589
4589
|
}
|
|
4590
|
-
|
|
4591
|
-
const
|
|
4592
|
-
success:
|
|
4593
|
-
info:
|
|
4594
|
-
error:
|
|
4595
|
-
warning:
|
|
4590
|
+
x(be, null, null), x(ge, null, null), x(he, null, null), x(ye, null, null), x(Ee, null, null);
|
|
4591
|
+
const pn = {
|
|
4592
|
+
success: ge,
|
|
4593
|
+
info: be,
|
|
4594
|
+
error: he,
|
|
4595
|
+
warning: ye
|
|
4596
4596
|
};
|
|
4597
|
-
function
|
|
4597
|
+
function Jt(e) {
|
|
4598
4598
|
let {
|
|
4599
4599
|
prefixCls: t,
|
|
4600
4600
|
icon: l,
|
|
4601
4601
|
type: a,
|
|
4602
4602
|
message: n,
|
|
4603
|
-
description:
|
|
4604
|
-
btn:
|
|
4605
|
-
} = e,
|
|
4603
|
+
description: o,
|
|
4604
|
+
btn: i
|
|
4605
|
+
} = e, r = null;
|
|
4606
4606
|
if (l)
|
|
4607
|
-
|
|
4607
|
+
r = x("span", {
|
|
4608
4608
|
class: `${t}-icon`
|
|
4609
|
-
}, [
|
|
4609
|
+
}, [ee(l)]);
|
|
4610
4610
|
else if (a) {
|
|
4611
|
-
const c =
|
|
4612
|
-
|
|
4611
|
+
const c = pn[a];
|
|
4612
|
+
r = x(c, {
|
|
4613
4613
|
class: `${t}-icon ${t}-icon-${a}`
|
|
4614
4614
|
}, null);
|
|
4615
4615
|
}
|
|
4616
|
-
return
|
|
4617
|
-
class:
|
|
4618
|
-
[`${t}-with-icon`]:
|
|
4616
|
+
return x("div", {
|
|
4617
|
+
class: F({
|
|
4618
|
+
[`${t}-with-icon`]: r
|
|
4619
4619
|
}),
|
|
4620
4620
|
role: "alert"
|
|
4621
|
-
}, [
|
|
4621
|
+
}, [r, x("div", {
|
|
4622
4622
|
class: `${t}-message`
|
|
4623
|
-
}, [n]),
|
|
4623
|
+
}, [n]), x("div", {
|
|
4624
4624
|
class: `${t}-description`
|
|
4625
|
-
}, [
|
|
4625
|
+
}, [o]), i && x("div", {
|
|
4626
4626
|
class: `${t}-btn`
|
|
4627
|
-
}, [
|
|
4627
|
+
}, [i])]);
|
|
4628
4628
|
}
|
|
4629
|
-
|
|
4629
|
+
G({
|
|
4630
4630
|
name: "PurePanel",
|
|
4631
4631
|
inheritAttrs: !1,
|
|
4632
4632
|
props: ["prefixCls", "icon", "type", "message", "description", "btn", "closeIcon"],
|
|
4633
4633
|
setup(e) {
|
|
4634
4634
|
const {
|
|
4635
4635
|
getPrefixCls: t
|
|
4636
|
-
} =
|
|
4637
|
-
return () =>
|
|
4636
|
+
} = Ne("notification", e), l = V(() => e.prefixCls || t("notification")), a = V(() => `${l.value}-notice`), [, n] = We(l);
|
|
4637
|
+
return () => x(ve, z(z({}, e), {}, {
|
|
4638
4638
|
prefixCls: l.value,
|
|
4639
|
-
class:
|
|
4639
|
+
class: F(n.value, `${a.value}-pure-panel`),
|
|
4640
4640
|
noticeKey: "pure",
|
|
4641
4641
|
duration: null,
|
|
4642
4642
|
closable: e.closable,
|
|
4643
|
-
closeIcon:
|
|
4643
|
+
closeIcon: Wt(l.value, e.closeIcon)
|
|
4644
4644
|
}), {
|
|
4645
|
-
default: () => [
|
|
4645
|
+
default: () => [x(Jt, {
|
|
4646
4646
|
prefixCls: a.value,
|
|
4647
4647
|
icon: e.icon,
|
|
4648
4648
|
type: e.type,
|
|
@@ -4653,7 +4653,7 @@ R({
|
|
|
4653
4653
|
});
|
|
4654
4654
|
}
|
|
4655
4655
|
});
|
|
4656
|
-
function
|
|
4656
|
+
function Xt(e, t, l) {
|
|
4657
4657
|
let a;
|
|
4658
4658
|
switch (t = typeof t == "number" ? `${t}px` : t, l = typeof l == "number" ? `${l}px` : l, e) {
|
|
4659
4659
|
case "top":
|
|
@@ -4705,12 +4705,12 @@ function Ut(e, t, l) {
|
|
|
4705
4705
|
}
|
|
4706
4706
|
return a;
|
|
4707
4707
|
}
|
|
4708
|
-
function
|
|
4708
|
+
function fn(e) {
|
|
4709
4709
|
return {
|
|
4710
4710
|
name: `${e}-fade`
|
|
4711
4711
|
};
|
|
4712
4712
|
}
|
|
4713
|
-
var
|
|
4713
|
+
var mn = globalThis && globalThis.__rest || function(e, t) {
|
|
4714
4714
|
var l = {};
|
|
4715
4715
|
for (var a in e)
|
|
4716
4716
|
Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (l[a] = e[a]);
|
|
@@ -4719,7 +4719,7 @@ var on = globalThis && globalThis.__rest || function(e, t) {
|
|
|
4719
4719
|
t.indexOf(a[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[n]) && (l[a[n]] = e[a[n]]);
|
|
4720
4720
|
return l;
|
|
4721
4721
|
};
|
|
4722
|
-
const
|
|
4722
|
+
const mt = 24, _n = 4.5, gn = G({
|
|
4723
4723
|
name: "Holder",
|
|
4724
4724
|
inheritAttrs: !1,
|
|
4725
4725
|
props: ["prefixCls", "class", "type", "icon", "content", "onAllRemoved"],
|
|
@@ -4730,189 +4730,189 @@ const pt = 24, rn = 4.5, sn = R({
|
|
|
4730
4730
|
const {
|
|
4731
4731
|
getPrefixCls: a,
|
|
4732
4732
|
getPopupContainer: n
|
|
4733
|
-
} =
|
|
4734
|
-
var
|
|
4735
|
-
return
|
|
4736
|
-
}, [,
|
|
4737
|
-
[`${
|
|
4738
|
-
}),
|
|
4739
|
-
prefixCls:
|
|
4740
|
-
getStyles:
|
|
4733
|
+
} = Ne("notification", e), o = V(() => e.prefixCls || a("notification")), i = (g) => {
|
|
4734
|
+
var m, w;
|
|
4735
|
+
return Xt(g, (m = e.top) !== null && m !== void 0 ? m : mt, (w = e.bottom) !== null && w !== void 0 ? w : mt);
|
|
4736
|
+
}, [, r] = We(o), c = () => F(r.value, {
|
|
4737
|
+
[`${o.value}-rtl`]: e.rtl
|
|
4738
|
+
}), f = () => fn(o.value), [p, _] = zt({
|
|
4739
|
+
prefixCls: o.value,
|
|
4740
|
+
getStyles: i,
|
|
4741
4741
|
getClassName: c,
|
|
4742
|
-
motion:
|
|
4742
|
+
motion: f,
|
|
4743
4743
|
closable: !0,
|
|
4744
|
-
closeIcon:
|
|
4745
|
-
duration:
|
|
4744
|
+
closeIcon: Wt(o.value),
|
|
4745
|
+
duration: _n,
|
|
4746
4746
|
getContainer: () => {
|
|
4747
|
-
var
|
|
4748
|
-
return ((
|
|
4747
|
+
var g, m;
|
|
4748
|
+
return ((g = e.getPopupContainer) === null || g === void 0 ? void 0 : g.call(e)) || ((m = n.value) === null || m === void 0 ? void 0 : m.call(n)) || document.body;
|
|
4749
4749
|
},
|
|
4750
4750
|
maxCount: e.maxCount,
|
|
4751
|
-
hashId:
|
|
4751
|
+
hashId: r.value,
|
|
4752
4752
|
onAllRemoved: e.onAllRemoved
|
|
4753
4753
|
});
|
|
4754
|
-
return l(
|
|
4755
|
-
prefixCls:
|
|
4756
|
-
hashId:
|
|
4757
|
-
})),
|
|
4754
|
+
return l($($({}, p), {
|
|
4755
|
+
prefixCls: o.value,
|
|
4756
|
+
hashId: r
|
|
4757
|
+
})), _;
|
|
4758
4758
|
}
|
|
4759
4759
|
});
|
|
4760
|
-
function
|
|
4761
|
-
const t =
|
|
4760
|
+
function hn(e) {
|
|
4761
|
+
const t = le(null), l = Symbol("notificationHolderKey"), a = (r) => {
|
|
4762
4762
|
if (!t.value)
|
|
4763
4763
|
return;
|
|
4764
4764
|
const {
|
|
4765
4765
|
open: c,
|
|
4766
|
-
prefixCls:
|
|
4767
|
-
hashId:
|
|
4768
|
-
} = t.value,
|
|
4769
|
-
message:
|
|
4770
|
-
description:
|
|
4771
|
-
icon:
|
|
4772
|
-
type:
|
|
4773
|
-
btn:
|
|
4774
|
-
class:
|
|
4775
|
-
} =
|
|
4776
|
-
return c(
|
|
4766
|
+
prefixCls: f,
|
|
4767
|
+
hashId: p
|
|
4768
|
+
} = t.value, _ = `${f}-notice`, {
|
|
4769
|
+
message: g,
|
|
4770
|
+
description: m,
|
|
4771
|
+
icon: w,
|
|
4772
|
+
type: C,
|
|
4773
|
+
btn: O,
|
|
4774
|
+
class: P
|
|
4775
|
+
} = r, A = mn(r, ["message", "description", "icon", "type", "btn", "class"]);
|
|
4776
|
+
return c($($({
|
|
4777
4777
|
placement: "topRight"
|
|
4778
|
-
},
|
|
4779
|
-
content: () =>
|
|
4780
|
-
prefixCls:
|
|
4781
|
-
icon: typeof
|
|
4782
|
-
type:
|
|
4783
|
-
message: typeof
|
|
4784
|
-
description: typeof
|
|
4785
|
-
btn: typeof
|
|
4778
|
+
}, A), {
|
|
4779
|
+
content: () => x(Jt, {
|
|
4780
|
+
prefixCls: _,
|
|
4781
|
+
icon: typeof w == "function" ? w() : w,
|
|
4782
|
+
type: C,
|
|
4783
|
+
message: typeof g == "function" ? g() : g,
|
|
4784
|
+
description: typeof m == "function" ? m() : m,
|
|
4785
|
+
btn: typeof O == "function" ? O() : O
|
|
4786
4786
|
}, null),
|
|
4787
4787
|
// @ts-ignore
|
|
4788
|
-
class:
|
|
4788
|
+
class: F(C && `${_}-${C}`, p, P)
|
|
4789
4789
|
}));
|
|
4790
|
-
},
|
|
4790
|
+
}, o = {
|
|
4791
4791
|
open: a,
|
|
4792
|
-
destroy: (
|
|
4793
|
-
var c,
|
|
4794
|
-
|
|
4792
|
+
destroy: (r) => {
|
|
4793
|
+
var c, f;
|
|
4794
|
+
r !== void 0 ? (c = t.value) === null || c === void 0 || c.close(r) : (f = t.value) === null || f === void 0 || f.destroy();
|
|
4795
4795
|
}
|
|
4796
4796
|
};
|
|
4797
|
-
return ["success", "info", "warning", "error"].forEach((
|
|
4798
|
-
|
|
4799
|
-
type:
|
|
4797
|
+
return ["success", "info", "warning", "error"].forEach((r) => {
|
|
4798
|
+
o[r] = (c) => a($($({}, c), {
|
|
4799
|
+
type: r
|
|
4800
4800
|
}));
|
|
4801
|
-
}), [
|
|
4801
|
+
}), [o, () => x(gn, z(z({
|
|
4802
4802
|
key: l
|
|
4803
4803
|
}, e), {}, {
|
|
4804
4804
|
ref: t
|
|
4805
4805
|
}), null)];
|
|
4806
4806
|
}
|
|
4807
|
-
function
|
|
4808
|
-
return
|
|
4807
|
+
function yn(e) {
|
|
4808
|
+
return hn(e);
|
|
4809
4809
|
}
|
|
4810
4810
|
globalThis && globalThis.__awaiter;
|
|
4811
|
-
const
|
|
4812
|
-
let
|
|
4813
|
-
function
|
|
4811
|
+
const Y = {};
|
|
4812
|
+
let Qt = 4.5, Yt = "24px", Zt = "24px", Me = "", el = "topRight", tl = () => document.body, ll = null, Ae = !1, al;
|
|
4813
|
+
function bn(e) {
|
|
4814
4814
|
const {
|
|
4815
4815
|
duration: t,
|
|
4816
4816
|
placement: l,
|
|
4817
4817
|
bottom: a,
|
|
4818
4818
|
top: n,
|
|
4819
|
-
getContainer:
|
|
4820
|
-
closeIcon:
|
|
4821
|
-
prefixCls:
|
|
4819
|
+
getContainer: o,
|
|
4820
|
+
closeIcon: i,
|
|
4821
|
+
prefixCls: r
|
|
4822
4822
|
} = e;
|
|
4823
|
-
|
|
4823
|
+
r !== void 0 && (Me = r), t !== void 0 && (Qt = t), l !== void 0 && (el = l), a !== void 0 && (Zt = typeof a == "number" ? `${a}px` : a), n !== void 0 && (Yt = typeof n == "number" ? `${n}px` : n), o !== void 0 && (tl = o), i !== void 0 && (ll = i), e.rtl !== void 0 && (Ae = e.rtl), e.maxCount !== void 0 && (al = e.maxCount);
|
|
4824
4824
|
}
|
|
4825
|
-
function
|
|
4825
|
+
function vn(e, t) {
|
|
4826
4826
|
let {
|
|
4827
4827
|
prefixCls: l,
|
|
4828
|
-
placement: a =
|
|
4829
|
-
getContainer: n =
|
|
4830
|
-
top:
|
|
4831
|
-
bottom:
|
|
4832
|
-
closeIcon:
|
|
4828
|
+
placement: a = el,
|
|
4829
|
+
getContainer: n = tl,
|
|
4830
|
+
top: o,
|
|
4831
|
+
bottom: i,
|
|
4832
|
+
closeIcon: r = ll,
|
|
4833
4833
|
appContext: c
|
|
4834
4834
|
} = e;
|
|
4835
4835
|
const {
|
|
4836
|
-
getPrefixCls:
|
|
4837
|
-
} =
|
|
4838
|
-
if (
|
|
4839
|
-
Promise.resolve(
|
|
4840
|
-
t(
|
|
4836
|
+
getPrefixCls: f
|
|
4837
|
+
} = jn(), p = f("notification", l || Me), _ = `${p}-${a}-${Ae}`, g = Y[_];
|
|
4838
|
+
if (g) {
|
|
4839
|
+
Promise.resolve(g).then((w) => {
|
|
4840
|
+
t(w);
|
|
4841
4841
|
});
|
|
4842
4842
|
return;
|
|
4843
4843
|
}
|
|
4844
|
-
const
|
|
4845
|
-
[`${
|
|
4844
|
+
const m = F(`${p}-${a}`, {
|
|
4845
|
+
[`${p}-rtl`]: Ae === !0
|
|
4846
4846
|
});
|
|
4847
|
-
|
|
4847
|
+
Kt.newInstance({
|
|
4848
4848
|
name: "notification",
|
|
4849
|
-
prefixCls: l ||
|
|
4850
|
-
useStyle:
|
|
4851
|
-
class:
|
|
4852
|
-
style:
|
|
4849
|
+
prefixCls: l || Me,
|
|
4850
|
+
useStyle: We,
|
|
4851
|
+
class: m,
|
|
4852
|
+
style: Xt(a, o ?? Yt, i ?? Zt),
|
|
4853
4853
|
appContext: c,
|
|
4854
4854
|
getContainer: n,
|
|
4855
|
-
closeIcon: (
|
|
4855
|
+
closeIcon: (w) => {
|
|
4856
4856
|
let {
|
|
4857
|
-
prefixCls:
|
|
4858
|
-
} =
|
|
4859
|
-
return
|
|
4860
|
-
class: `${
|
|
4861
|
-
}, [
|
|
4862
|
-
class: `${
|
|
4857
|
+
prefixCls: C
|
|
4858
|
+
} = w;
|
|
4859
|
+
return x("span", {
|
|
4860
|
+
class: `${C}-close-x`
|
|
4861
|
+
}, [ee(r, {}, x(Le, {
|
|
4862
|
+
class: `${C}-close-icon`
|
|
4863
4863
|
}, null))]);
|
|
4864
4864
|
},
|
|
4865
|
-
maxCount:
|
|
4865
|
+
maxCount: al,
|
|
4866
4866
|
hasTransitionName: !0
|
|
4867
|
-
}, (
|
|
4868
|
-
|
|
4867
|
+
}, (w) => {
|
|
4868
|
+
Y[_] = w, t(w);
|
|
4869
4869
|
});
|
|
4870
4870
|
}
|
|
4871
|
-
const
|
|
4872
|
-
success:
|
|
4873
|
-
info:
|
|
4874
|
-
error:
|
|
4875
|
-
warning:
|
|
4871
|
+
const Cn = {
|
|
4872
|
+
success: va,
|
|
4873
|
+
info: Ta,
|
|
4874
|
+
error: ka,
|
|
4875
|
+
warning: $a
|
|
4876
4876
|
};
|
|
4877
|
-
function
|
|
4877
|
+
function xn(e) {
|
|
4878
4878
|
const {
|
|
4879
4879
|
icon: t,
|
|
4880
4880
|
type: l,
|
|
4881
4881
|
description: a,
|
|
4882
4882
|
message: n,
|
|
4883
|
-
btn:
|
|
4884
|
-
} = e,
|
|
4885
|
-
|
|
4886
|
-
|
|
4883
|
+
btn: o
|
|
4884
|
+
} = e, i = e.duration === void 0 ? Qt : e.duration;
|
|
4885
|
+
vn(e, (r) => {
|
|
4886
|
+
r.notice({
|
|
4887
4887
|
content: (c) => {
|
|
4888
4888
|
let {
|
|
4889
|
-
prefixCls:
|
|
4889
|
+
prefixCls: f
|
|
4890
4890
|
} = c;
|
|
4891
|
-
const
|
|
4892
|
-
let
|
|
4891
|
+
const p = `${f}-notice`;
|
|
4892
|
+
let _ = null;
|
|
4893
4893
|
if (t)
|
|
4894
|
-
|
|
4895
|
-
class: `${
|
|
4896
|
-
}, [
|
|
4894
|
+
_ = () => x("span", {
|
|
4895
|
+
class: `${p}-icon`
|
|
4896
|
+
}, [ee(t)]);
|
|
4897
4897
|
else if (l) {
|
|
4898
|
-
const
|
|
4899
|
-
|
|
4900
|
-
class: `${
|
|
4898
|
+
const g = Cn[l];
|
|
4899
|
+
_ = () => x(g, {
|
|
4900
|
+
class: `${p}-icon ${p}-icon-${l}`
|
|
4901
4901
|
}, null);
|
|
4902
4902
|
}
|
|
4903
|
-
return
|
|
4904
|
-
class:
|
|
4905
|
-
}, [
|
|
4906
|
-
class: `${
|
|
4907
|
-
}, [!a &&
|
|
4908
|
-
class: `${
|
|
4909
|
-
}, null) : null,
|
|
4910
|
-
class: `${
|
|
4911
|
-
}, [
|
|
4912
|
-
class: `${
|
|
4913
|
-
}, [
|
|
4903
|
+
return x("div", {
|
|
4904
|
+
class: _ ? `${p}-with-icon` : ""
|
|
4905
|
+
}, [_ && _(), x("div", {
|
|
4906
|
+
class: `${p}-message`
|
|
4907
|
+
}, [!a && _ ? x("span", {
|
|
4908
|
+
class: `${p}-message-single-line-auto-margin`
|
|
4909
|
+
}, null) : null, ee(n)]), x("div", {
|
|
4910
|
+
class: `${p}-description`
|
|
4911
|
+
}, [ee(a)]), o ? x("span", {
|
|
4912
|
+
class: `${p}-btn`
|
|
4913
|
+
}, [ee(o)]) : null]);
|
|
4914
4914
|
},
|
|
4915
|
-
duration:
|
|
4915
|
+
duration: i,
|
|
4916
4916
|
closable: !0,
|
|
4917
4917
|
onClose: e.onClose,
|
|
4918
4918
|
onClick: e.onClick,
|
|
@@ -4922,88 +4922,88 @@ function fn(e) {
|
|
|
4922
4922
|
});
|
|
4923
4923
|
});
|
|
4924
4924
|
}
|
|
4925
|
-
const
|
|
4926
|
-
open:
|
|
4925
|
+
const oe = {
|
|
4926
|
+
open: xn,
|
|
4927
4927
|
close(e) {
|
|
4928
|
-
Object.keys(
|
|
4928
|
+
Object.keys(Y).forEach((t) => Promise.resolve(Y[t]).then((l) => {
|
|
4929
4929
|
l.removeNotice(e);
|
|
4930
4930
|
}));
|
|
4931
4931
|
},
|
|
4932
|
-
config:
|
|
4932
|
+
config: bn,
|
|
4933
4933
|
destroy() {
|
|
4934
|
-
Object.keys(
|
|
4935
|
-
Promise.resolve(
|
|
4934
|
+
Object.keys(Y).forEach((e) => {
|
|
4935
|
+
Promise.resolve(Y[e]).then((t) => {
|
|
4936
4936
|
t.destroy();
|
|
4937
|
-
}), delete
|
|
4937
|
+
}), delete Y[e];
|
|
4938
4938
|
});
|
|
4939
4939
|
}
|
|
4940
|
-
},
|
|
4941
|
-
|
|
4942
|
-
|
|
4940
|
+
}, wn = ["success", "info", "warning", "error"];
|
|
4941
|
+
wn.forEach((e) => {
|
|
4942
|
+
oe[e] = (t) => oe.open($($({}, t), {
|
|
4943
4943
|
type: e
|
|
4944
4944
|
}));
|
|
4945
4945
|
});
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
const
|
|
4949
|
-
function
|
|
4950
|
-
const l = {}, a = (
|
|
4951
|
-
let c =
|
|
4952
|
-
return c = (
|
|
4953
|
-
}, n = (
|
|
4954
|
-
const c = new xe(
|
|
4955
|
-
l[`${
|
|
4946
|
+
oe.warn = oe.warning;
|
|
4947
|
+
oe.useNotification = yn;
|
|
4948
|
+
const $n = oe, Pn = `-ant-${Date.now()}-${Math.random()}`;
|
|
4949
|
+
function In(e, t) {
|
|
4950
|
+
const l = {}, a = (i, r) => {
|
|
4951
|
+
let c = i.clone();
|
|
4952
|
+
return c = (r == null ? void 0 : r(c)) || c, c.toRgbString();
|
|
4953
|
+
}, n = (i, r) => {
|
|
4954
|
+
const c = new xe(i), f = Ye(c.toRgbString());
|
|
4955
|
+
l[`${r}-color`] = a(c), l[`${r}-color-disabled`] = f[1], l[`${r}-color-hover`] = f[4], l[`${r}-color-active`] = f[6], l[`${r}-color-outline`] = c.clone().setAlpha(0.2).toRgbString(), l[`${r}-color-deprecated-bg`] = f[0], l[`${r}-color-deprecated-border`] = f[2];
|
|
4956
4956
|
};
|
|
4957
4957
|
if (t.primaryColor) {
|
|
4958
4958
|
n(t.primaryColor, "primary");
|
|
4959
|
-
const
|
|
4960
|
-
|
|
4961
|
-
l[`primary-${
|
|
4962
|
-
}), l["primary-color-deprecated-l-35"] = a(
|
|
4963
|
-
const c = new xe(
|
|
4964
|
-
l["primary-color-active-deprecated-f-30"] = a(c, (
|
|
4959
|
+
const i = new xe(t.primaryColor), r = Ye(i.toRgbString());
|
|
4960
|
+
r.forEach((f, p) => {
|
|
4961
|
+
l[`primary-${p + 1}`] = f;
|
|
4962
|
+
}), l["primary-color-deprecated-l-35"] = a(i, (f) => f.lighten(35)), l["primary-color-deprecated-l-20"] = a(i, (f) => f.lighten(20)), l["primary-color-deprecated-t-20"] = a(i, (f) => f.tint(20)), l["primary-color-deprecated-t-50"] = a(i, (f) => f.tint(50)), l["primary-color-deprecated-f-12"] = a(i, (f) => f.setAlpha(f.getAlpha() * 0.12));
|
|
4963
|
+
const c = new xe(r[0]);
|
|
4964
|
+
l["primary-color-active-deprecated-f-30"] = a(c, (f) => f.setAlpha(f.getAlpha() * 0.3)), l["primary-color-active-deprecated-d-02"] = a(c, (f) => f.darken(2));
|
|
4965
4965
|
}
|
|
4966
4966
|
return t.successColor && n(t.successColor, "success"), t.warningColor && n(t.warningColor, "warning"), t.errorColor && n(t.errorColor, "error"), t.infoColor && n(t.infoColor, "info"), `
|
|
4967
4967
|
:root {
|
|
4968
|
-
${Object.keys(l).map((
|
|
4968
|
+
${Object.keys(l).map((i) => `--${e}-${i}: ${l[i]};`).join(`
|
|
4969
4969
|
`)}
|
|
4970
4970
|
}
|
|
4971
4971
|
`.trim();
|
|
4972
4972
|
}
|
|
4973
|
-
function
|
|
4974
|
-
const l =
|
|
4975
|
-
|
|
4973
|
+
function On(e, t) {
|
|
4974
|
+
const l = In(e, t);
|
|
4975
|
+
$l() ? Pl(l, `${Pn}-dynamic-theme`) : wt(!1, "ConfigProvider", "SSR do not support dynamic theme with css variables.");
|
|
4976
4976
|
}
|
|
4977
|
-
const
|
|
4978
|
-
const [t, l] =
|
|
4979
|
-
return
|
|
4977
|
+
const Tn = (e) => {
|
|
4978
|
+
const [t, l] = Il();
|
|
4979
|
+
return Ol(V(() => ({
|
|
4980
4980
|
theme: t.value,
|
|
4981
4981
|
token: l.value,
|
|
4982
4982
|
hashId: "",
|
|
4983
4983
|
path: ["ant-design-icons", e.value]
|
|
4984
4984
|
})), () => [{
|
|
4985
|
-
[`.${e.value}`]:
|
|
4985
|
+
[`.${e.value}`]: $($({}, Tl()), {
|
|
4986
4986
|
[`.${e.value} .${e.value}-icon`]: {
|
|
4987
4987
|
display: "block"
|
|
4988
4988
|
}
|
|
4989
4989
|
})
|
|
4990
4990
|
}]);
|
|
4991
|
-
},
|
|
4992
|
-
function
|
|
4993
|
-
const l =
|
|
4994
|
-
return
|
|
4991
|
+
}, Sn = Tn;
|
|
4992
|
+
function Mn(e, t) {
|
|
4993
|
+
const l = V(() => (e == null ? void 0 : e.value) || {}), a = V(() => l.value.inherit === !1 || !(t != null && t.value) ? Sl : t.value);
|
|
4994
|
+
return V(() => {
|
|
4995
4995
|
if (!(e != null && e.value))
|
|
4996
4996
|
return t == null ? void 0 : t.value;
|
|
4997
|
-
const
|
|
4998
|
-
return Object.keys(e.value.components || {}).forEach((
|
|
4999
|
-
i
|
|
5000
|
-
}),
|
|
5001
|
-
token:
|
|
5002
|
-
components:
|
|
4997
|
+
const o = $({}, a.value.components);
|
|
4998
|
+
return Object.keys(e.value.components || {}).forEach((i) => {
|
|
4999
|
+
o[i] = $($({}, o[i]), e.value.components[i]);
|
|
5000
|
+
}), $($($({}, a.value), l.value), {
|
|
5001
|
+
token: $($({}, a.value.token), l.value.token),
|
|
5002
|
+
components: o
|
|
5003
5003
|
});
|
|
5004
5004
|
});
|
|
5005
5005
|
}
|
|
5006
|
-
var
|
|
5006
|
+
var An = globalThis && globalThis.__rest || function(e, t) {
|
|
5007
5007
|
var l = {};
|
|
5008
5008
|
for (var a in e)
|
|
5009
5009
|
Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (l[a] = e[a]);
|
|
@@ -5012,194 +5012,194 @@ var wn = globalThis && globalThis.__rest || function(e, t) {
|
|
|
5012
5012
|
t.indexOf(a[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[n]) && (l[a[n]] = e[a[n]]);
|
|
5013
5013
|
return l;
|
|
5014
5014
|
};
|
|
5015
|
-
const
|
|
5016
|
-
function
|
|
5017
|
-
return
|
|
5015
|
+
const kn = "ant";
|
|
5016
|
+
function ne() {
|
|
5017
|
+
return q.prefixCls || kn;
|
|
5018
5018
|
}
|
|
5019
|
-
function
|
|
5020
|
-
return
|
|
5019
|
+
function nl() {
|
|
5020
|
+
return q.iconPrefixCls || St;
|
|
5021
5021
|
}
|
|
5022
|
-
const
|
|
5022
|
+
const Je = T({}), q = T({});
|
|
5023
5023
|
Ke(() => {
|
|
5024
|
-
|
|
5024
|
+
$(q, Je), q.prefixCls = ne(), q.iconPrefixCls = nl(), q.getPrefixCls = (e, t) => t || (e ? `${q.prefixCls}-${e}` : q.prefixCls), q.getRootPrefixCls = () => q.prefixCls ? q.prefixCls : ne();
|
|
5025
5025
|
});
|
|
5026
|
-
let
|
|
5027
|
-
const
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
}), e.theme &&
|
|
5031
|
-
},
|
|
5032
|
-
getPrefixCls: (e, t) => t || (e ? `${
|
|
5033
|
-
getIconPrefixCls:
|
|
5034
|
-
getRootPrefixCls: () =>
|
|
5035
|
-
}),
|
|
5026
|
+
let $e;
|
|
5027
|
+
const Vn = (e) => {
|
|
5028
|
+
$e && $e(), $e = Ke(() => {
|
|
5029
|
+
$(Je, T(e)), $(q, T(e));
|
|
5030
|
+
}), e.theme && On(ne(), e.theme);
|
|
5031
|
+
}, jn = () => ({
|
|
5032
|
+
getPrefixCls: (e, t) => t || (e ? `${ne()}-${e}` : ne()),
|
|
5033
|
+
getIconPrefixCls: nl,
|
|
5034
|
+
getRootPrefixCls: () => q.prefixCls ? q.prefixCls : ne()
|
|
5035
|
+
}), se = G({
|
|
5036
5036
|
compatConfig: {
|
|
5037
5037
|
MODE: 3
|
|
5038
5038
|
},
|
|
5039
5039
|
name: "AConfigProvider",
|
|
5040
5040
|
inheritAttrs: !1,
|
|
5041
|
-
props:
|
|
5041
|
+
props: Ml(),
|
|
5042
5042
|
setup(e, t) {
|
|
5043
5043
|
let {
|
|
5044
5044
|
slots: l
|
|
5045
5045
|
} = t;
|
|
5046
|
-
const a =
|
|
5046
|
+
const a = Tt(), n = (s, M) => {
|
|
5047
5047
|
const {
|
|
5048
|
-
prefixCls:
|
|
5048
|
+
prefixCls: E = "ant"
|
|
5049
5049
|
} = e;
|
|
5050
|
-
if (
|
|
5051
|
-
return
|
|
5052
|
-
const
|
|
5053
|
-
return
|
|
5054
|
-
},
|
|
5055
|
-
var
|
|
5056
|
-
return e.csp || ((
|
|
5057
|
-
}), c =
|
|
5058
|
-
var
|
|
5059
|
-
return (
|
|
5060
|
-
})),
|
|
5061
|
-
var
|
|
5062
|
-
return (
|
|
5063
|
-
}),
|
|
5064
|
-
var
|
|
5065
|
-
return e.locale || ((
|
|
5050
|
+
if (M)
|
|
5051
|
+
return M;
|
|
5052
|
+
const W = E || a.getPrefixCls("");
|
|
5053
|
+
return s ? `${W}-${s}` : W;
|
|
5054
|
+
}, o = V(() => e.iconPrefixCls || a.iconPrefixCls.value || St), i = V(() => o.value !== a.iconPrefixCls.value), r = V(() => {
|
|
5055
|
+
var s;
|
|
5056
|
+
return e.csp || ((s = a.csp) === null || s === void 0 ? void 0 : s.value);
|
|
5057
|
+
}), c = Sn(o), f = Mn(V(() => e.theme), V(() => {
|
|
5058
|
+
var s;
|
|
5059
|
+
return (s = a.theme) === null || s === void 0 ? void 0 : s.value;
|
|
5060
|
+
})), p = (s) => (e.renderEmpty || l.renderEmpty || a.renderEmpty || El)(s), _ = V(() => {
|
|
5061
|
+
var s, M;
|
|
5062
|
+
return (s = e.autoInsertSpaceInButton) !== null && s !== void 0 ? s : (M = a.autoInsertSpaceInButton) === null || M === void 0 ? void 0 : M.value;
|
|
5063
|
+
}), g = V(() => {
|
|
5064
|
+
var s;
|
|
5065
|
+
return e.locale || ((s = a.locale) === null || s === void 0 ? void 0 : s.value);
|
|
5066
5066
|
});
|
|
5067
|
-
|
|
5068
|
-
|
|
5067
|
+
de(g, () => {
|
|
5068
|
+
Je.locale = g.value;
|
|
5069
5069
|
}, {
|
|
5070
5070
|
immediate: !0
|
|
5071
5071
|
});
|
|
5072
|
-
const
|
|
5073
|
-
var
|
|
5074
|
-
return e.direction || ((
|
|
5075
|
-
}),
|
|
5076
|
-
var
|
|
5077
|
-
return (
|
|
5078
|
-
}),
|
|
5079
|
-
var
|
|
5080
|
-
return (
|
|
5081
|
-
}),
|
|
5082
|
-
var
|
|
5083
|
-
return (
|
|
5084
|
-
}),
|
|
5085
|
-
var
|
|
5086
|
-
return e.getTargetContainer !== void 0 ? e.getTargetContainer : (
|
|
5087
|
-
}),
|
|
5088
|
-
var
|
|
5089
|
-
return e.getPopupContainer !== void 0 ? e.getPopupContainer : (
|
|
5090
|
-
}),
|
|
5091
|
-
var
|
|
5092
|
-
return e.pageHeader !== void 0 ? e.pageHeader : (
|
|
5093
|
-
}),
|
|
5094
|
-
var
|
|
5095
|
-
return e.input !== void 0 ? e.input : (
|
|
5096
|
-
}),
|
|
5097
|
-
var
|
|
5098
|
-
return e.pagination !== void 0 ? e.pagination : (
|
|
5099
|
-
}),
|
|
5100
|
-
var
|
|
5101
|
-
return e.form !== void 0 ? e.form : (
|
|
5102
|
-
}),
|
|
5103
|
-
var
|
|
5104
|
-
return e.select !== void 0 ? e.select : (
|
|
5105
|
-
}),
|
|
5106
|
-
var
|
|
5107
|
-
return (
|
|
5108
|
-
}),
|
|
5109
|
-
csp:
|
|
5110
|
-
autoInsertSpaceInButton:
|
|
5111
|
-
locale:
|
|
5112
|
-
direction:
|
|
5113
|
-
space:
|
|
5114
|
-
virtual:
|
|
5115
|
-
dropdownMatchSelectWidth:
|
|
5072
|
+
const m = V(() => {
|
|
5073
|
+
var s;
|
|
5074
|
+
return e.direction || ((s = a.direction) === null || s === void 0 ? void 0 : s.value);
|
|
5075
|
+
}), w = V(() => {
|
|
5076
|
+
var s, M;
|
|
5077
|
+
return (s = e.space) !== null && s !== void 0 ? s : (M = a.space) === null || M === void 0 ? void 0 : M.value;
|
|
5078
|
+
}), C = V(() => {
|
|
5079
|
+
var s, M;
|
|
5080
|
+
return (s = e.virtual) !== null && s !== void 0 ? s : (M = a.virtual) === null || M === void 0 ? void 0 : M.value;
|
|
5081
|
+
}), O = V(() => {
|
|
5082
|
+
var s, M;
|
|
5083
|
+
return (s = e.dropdownMatchSelectWidth) !== null && s !== void 0 ? s : (M = a.dropdownMatchSelectWidth) === null || M === void 0 ? void 0 : M.value;
|
|
5084
|
+
}), P = V(() => {
|
|
5085
|
+
var s;
|
|
5086
|
+
return e.getTargetContainer !== void 0 ? e.getTargetContainer : (s = a.getTargetContainer) === null || s === void 0 ? void 0 : s.value;
|
|
5087
|
+
}), A = V(() => {
|
|
5088
|
+
var s;
|
|
5089
|
+
return e.getPopupContainer !== void 0 ? e.getPopupContainer : (s = a.getPopupContainer) === null || s === void 0 ? void 0 : s.value;
|
|
5090
|
+
}), j = V(() => {
|
|
5091
|
+
var s;
|
|
5092
|
+
return e.pageHeader !== void 0 ? e.pageHeader : (s = a.pageHeader) === null || s === void 0 ? void 0 : s.value;
|
|
5093
|
+
}), S = V(() => {
|
|
5094
|
+
var s;
|
|
5095
|
+
return e.input !== void 0 ? e.input : (s = a.input) === null || s === void 0 ? void 0 : s.value;
|
|
5096
|
+
}), u = V(() => {
|
|
5097
|
+
var s;
|
|
5098
|
+
return e.pagination !== void 0 ? e.pagination : (s = a.pagination) === null || s === void 0 ? void 0 : s.value;
|
|
5099
|
+
}), y = V(() => {
|
|
5100
|
+
var s;
|
|
5101
|
+
return e.form !== void 0 ? e.form : (s = a.form) === null || s === void 0 ? void 0 : s.value;
|
|
5102
|
+
}), d = V(() => {
|
|
5103
|
+
var s;
|
|
5104
|
+
return e.select !== void 0 ? e.select : (s = a.select) === null || s === void 0 ? void 0 : s.value;
|
|
5105
|
+
}), I = V(() => e.componentSize), k = V(() => e.componentDisabled), D = V(() => {
|
|
5106
|
+
var s, M;
|
|
5107
|
+
return (s = e.wave) !== null && s !== void 0 ? s : (M = a.wave) === null || M === void 0 ? void 0 : M.value;
|
|
5108
|
+
}), K = {
|
|
5109
|
+
csp: r,
|
|
5110
|
+
autoInsertSpaceInButton: _,
|
|
5111
|
+
locale: g,
|
|
5112
|
+
direction: m,
|
|
5113
|
+
space: w,
|
|
5114
|
+
virtual: C,
|
|
5115
|
+
dropdownMatchSelectWidth: O,
|
|
5116
5116
|
getPrefixCls: n,
|
|
5117
|
-
iconPrefixCls:
|
|
5118
|
-
theme:
|
|
5119
|
-
var
|
|
5120
|
-
return (
|
|
5117
|
+
iconPrefixCls: o,
|
|
5118
|
+
theme: V(() => {
|
|
5119
|
+
var s, M;
|
|
5120
|
+
return (s = f.value) !== null && s !== void 0 ? s : (M = a.theme) === null || M === void 0 ? void 0 : M.value;
|
|
5121
5121
|
}),
|
|
5122
|
-
renderEmpty:
|
|
5123
|
-
getTargetContainer:
|
|
5124
|
-
getPopupContainer:
|
|
5125
|
-
pageHeader:
|
|
5126
|
-
input:
|
|
5127
|
-
pagination:
|
|
5128
|
-
form:
|
|
5129
|
-
select:
|
|
5130
|
-
componentSize:
|
|
5131
|
-
componentDisabled:
|
|
5132
|
-
transformCellText:
|
|
5133
|
-
wave:
|
|
5134
|
-
},
|
|
5135
|
-
const
|
|
5136
|
-
algorithm:
|
|
5137
|
-
token:
|
|
5138
|
-
} =
|
|
5139
|
-
return
|
|
5122
|
+
renderEmpty: p,
|
|
5123
|
+
getTargetContainer: P,
|
|
5124
|
+
getPopupContainer: A,
|
|
5125
|
+
pageHeader: j,
|
|
5126
|
+
input: S,
|
|
5127
|
+
pagination: u,
|
|
5128
|
+
form: y,
|
|
5129
|
+
select: d,
|
|
5130
|
+
componentSize: I,
|
|
5131
|
+
componentDisabled: k,
|
|
5132
|
+
transformCellText: V(() => e.transformCellText),
|
|
5133
|
+
wave: D
|
|
5134
|
+
}, h = V(() => {
|
|
5135
|
+
const s = f.value || {}, {
|
|
5136
|
+
algorithm: M,
|
|
5137
|
+
token: E
|
|
5138
|
+
} = s, W = An(s, ["algorithm", "token"]), Ce = M && (!Array.isArray(M) || M.length > 0) ? Al(M) : void 0;
|
|
5139
|
+
return $($({}, W), {
|
|
5140
5140
|
theme: Ce,
|
|
5141
|
-
token:
|
|
5141
|
+
token: $($({}, kl), E)
|
|
5142
5142
|
});
|
|
5143
|
-
}),
|
|
5144
|
-
var
|
|
5145
|
-
let
|
|
5146
|
-
return
|
|
5143
|
+
}), v = V(() => {
|
|
5144
|
+
var s, M;
|
|
5145
|
+
let E = {};
|
|
5146
|
+
return g.value && (E = ((s = g.value.Form) === null || s === void 0 ? void 0 : s.defaultValidateMessages) || ((M = ze.Form) === null || M === void 0 ? void 0 : M.defaultValidateMessages) || {}), e.form && e.form.validateMessages && (E = $($({}, E), e.form.validateMessages)), E;
|
|
5147
5147
|
});
|
|
5148
|
-
|
|
5149
|
-
validateMessages:
|
|
5150
|
-
}),
|
|
5151
|
-
const
|
|
5152
|
-
var
|
|
5153
|
-
let
|
|
5148
|
+
Vl(K), jl({
|
|
5149
|
+
validateMessages: v
|
|
5150
|
+
}), Dl(I), Kl(k);
|
|
5151
|
+
const b = (s) => {
|
|
5152
|
+
var M, E;
|
|
5153
|
+
let W = i.value ? c((M = l.default) === null || M === void 0 ? void 0 : M.call(l)) : (E = l.default) === null || E === void 0 ? void 0 : E.call(l);
|
|
5154
5154
|
if (e.theme) {
|
|
5155
5155
|
const Ce = function() {
|
|
5156
|
-
return
|
|
5156
|
+
return W;
|
|
5157
5157
|
}();
|
|
5158
|
-
|
|
5159
|
-
value:
|
|
5158
|
+
W = x(Nl, {
|
|
5159
|
+
value: h.value
|
|
5160
5160
|
}, {
|
|
5161
5161
|
default: () => [Ce]
|
|
5162
5162
|
});
|
|
5163
5163
|
}
|
|
5164
|
-
return
|
|
5165
|
-
locale:
|
|
5166
|
-
ANT_MARK__:
|
|
5164
|
+
return x(za, {
|
|
5165
|
+
locale: g.value || s,
|
|
5166
|
+
ANT_MARK__: Te
|
|
5167
5167
|
}, {
|
|
5168
|
-
default: () => [
|
|
5168
|
+
default: () => [W]
|
|
5169
5169
|
});
|
|
5170
5170
|
};
|
|
5171
5171
|
return Ke(() => {
|
|
5172
|
-
|
|
5173
|
-
rtl:
|
|
5174
|
-
}),
|
|
5175
|
-
rtl:
|
|
5172
|
+
m.value && (re.config({
|
|
5173
|
+
rtl: m.value === "rtl"
|
|
5174
|
+
}), $n.config({
|
|
5175
|
+
rtl: m.value === "rtl"
|
|
5176
5176
|
}));
|
|
5177
|
-
}), () =>
|
|
5178
|
-
children: (
|
|
5177
|
+
}), () => x(zl, {
|
|
5178
|
+
children: (s, M, E) => b(E)
|
|
5179
5179
|
}, null);
|
|
5180
5180
|
}
|
|
5181
5181
|
});
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
e.component(
|
|
5182
|
+
se.config = Vn;
|
|
5183
|
+
se.install = function(e) {
|
|
5184
|
+
e.component(se.name, se);
|
|
5185
5185
|
};
|
|
5186
|
-
const
|
|
5187
|
-
async function
|
|
5188
|
-
return
|
|
5186
|
+
const Dn = se;
|
|
5187
|
+
async function _t(e) {
|
|
5188
|
+
return Q().post("/permission/update_role", e);
|
|
5189
5189
|
}
|
|
5190
|
-
async function
|
|
5191
|
-
return
|
|
5190
|
+
async function Kn(e) {
|
|
5191
|
+
return Q().post("/permission/copy_role_info", e);
|
|
5192
5192
|
}
|
|
5193
|
-
async function
|
|
5194
|
-
return
|
|
5193
|
+
async function zn(e) {
|
|
5194
|
+
return Q().post("/permission/import_role_by_super", e);
|
|
5195
5195
|
}
|
|
5196
|
-
const
|
|
5196
|
+
const me = () => B().NODE_ENV != "production", En = () => B().VITE_APP_HAS_PROJECT, ol = [
|
|
5197
5197
|
{
|
|
5198
5198
|
name: "修改",
|
|
5199
5199
|
type: "dropdown",
|
|
5200
5200
|
clazz: "primary",
|
|
5201
5201
|
cb: ({ record: e }) => {
|
|
5202
|
-
const l =
|
|
5202
|
+
const l = X().currentOrg, a = T({
|
|
5203
5203
|
visible: !0,
|
|
5204
5204
|
title: "修改",
|
|
5205
5205
|
loading: !1,
|
|
@@ -5253,23 +5253,23 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
5253
5253
|
}
|
|
5254
5254
|
},
|
|
5255
5255
|
options: {},
|
|
5256
|
-
ok: (n) => new Promise((
|
|
5257
|
-
a.loading = !0,
|
|
5256
|
+
ok: (n) => new Promise((o) => {
|
|
5257
|
+
a.loading = !0, _t({
|
|
5258
5258
|
...n
|
|
5259
|
-
}).then((
|
|
5260
|
-
|
|
5259
|
+
}).then((i) => {
|
|
5260
|
+
re.success("修改成功"), Object.assign(e, i), N().emit("refresh"), o(null);
|
|
5261
5261
|
}).finally(() => {
|
|
5262
5262
|
a.loading = !1;
|
|
5263
5263
|
});
|
|
5264
5264
|
})
|
|
5265
5265
|
});
|
|
5266
|
-
|
|
5266
|
+
R(a);
|
|
5267
5267
|
}
|
|
5268
5268
|
},
|
|
5269
5269
|
{
|
|
5270
5270
|
name: "修改模块",
|
|
5271
5271
|
type: "dropdown",
|
|
5272
|
-
is_show: ({ record: e }) => e.is_active &&
|
|
5272
|
+
is_show: ({ record: e }) => e.is_active && me() && En(),
|
|
5273
5273
|
model_kind: "custom_component",
|
|
5274
5274
|
model_config: {
|
|
5275
5275
|
component: "MenuProjectRoleModal",
|
|
@@ -5279,9 +5279,9 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
5279
5279
|
{
|
|
5280
5280
|
name: "修改权限",
|
|
5281
5281
|
type: "dropdown",
|
|
5282
|
-
is_show: ({ record: e }) => e.is_active &&
|
|
5282
|
+
is_show: ({ record: e }) => e.is_active && me(),
|
|
5283
5283
|
cb: ({ record: e }) => {
|
|
5284
|
-
const t =
|
|
5284
|
+
const t = T({
|
|
5285
5285
|
visible: !0,
|
|
5286
5286
|
role_id: e.id,
|
|
5287
5287
|
aim_org_id: e.org_id,
|
|
@@ -5289,7 +5289,7 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
5289
5289
|
ok: (l) => {
|
|
5290
5290
|
}
|
|
5291
5291
|
});
|
|
5292
|
-
|
|
5292
|
+
R(t);
|
|
5293
5293
|
}
|
|
5294
5294
|
},
|
|
5295
5295
|
{
|
|
@@ -5297,7 +5297,7 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
5297
5297
|
type: "dropdown",
|
|
5298
5298
|
is_show: ({ record: e }) => e.is_active,
|
|
5299
5299
|
cb: ({ record: e, current_org: t }) => {
|
|
5300
|
-
const l =
|
|
5300
|
+
const l = T({
|
|
5301
5301
|
visible: !0,
|
|
5302
5302
|
title: "修改用户",
|
|
5303
5303
|
org_id: e.org_id,
|
|
@@ -5305,14 +5305,14 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
5305
5305
|
role_id: e.id,
|
|
5306
5306
|
component: "PersonModal",
|
|
5307
5307
|
ok: (a) => new Promise(function(n) {
|
|
5308
|
-
a && a.person_ids && a.person_ids.length > 0 ? a.person_ids = a.person_ids.join(",") : a.person_ids = "",
|
|
5308
|
+
a && a.person_ids && a.person_ids.length > 0 ? a.person_ids = a.person_ids.join(",") : a.person_ids = "", _t({ org_id: t.id, aim_org_id: l.org_id, ...a }).then(
|
|
5309
5309
|
() => {
|
|
5310
|
-
|
|
5310
|
+
re.success("修改用户成功"), N().emit("refresh"), n(!0);
|
|
5311
5311
|
}
|
|
5312
5312
|
), l.visible = !1;
|
|
5313
5313
|
})
|
|
5314
5314
|
});
|
|
5315
|
-
|
|
5315
|
+
R(l);
|
|
5316
5316
|
}
|
|
5317
5317
|
},
|
|
5318
5318
|
{
|
|
@@ -5320,7 +5320,7 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
5320
5320
|
type: "dropdown",
|
|
5321
5321
|
is_show: ({ record: e }) => e.is_active,
|
|
5322
5322
|
cb: ({ record: e, current_org: t }) => {
|
|
5323
|
-
const l =
|
|
5323
|
+
const l = T({
|
|
5324
5324
|
open: !0,
|
|
5325
5325
|
title: "复制角色",
|
|
5326
5326
|
form: {
|
|
@@ -5365,7 +5365,7 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
5365
5365
|
rules: {
|
|
5366
5366
|
name: [{ required: !0, message: "角色名称必须填写" }]
|
|
5367
5367
|
},
|
|
5368
|
-
model:
|
|
5368
|
+
model: T({
|
|
5369
5369
|
org_id: t.id,
|
|
5370
5370
|
name: "",
|
|
5371
5371
|
desc: "",
|
|
@@ -5374,28 +5374,28 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
5374
5374
|
},
|
|
5375
5375
|
options: {},
|
|
5376
5376
|
ok: (a) => {
|
|
5377
|
-
|
|
5377
|
+
Kn({
|
|
5378
5378
|
...a,
|
|
5379
5379
|
org_id: t.id,
|
|
5380
5380
|
role_id: e.id
|
|
5381
5381
|
}).then(() => {
|
|
5382
|
-
|
|
5382
|
+
re.success("复制角色成功"), N().emit("refresh");
|
|
5383
5383
|
});
|
|
5384
5384
|
}
|
|
5385
5385
|
});
|
|
5386
|
-
|
|
5386
|
+
R(l);
|
|
5387
5387
|
}
|
|
5388
5388
|
}
|
|
5389
|
-
],
|
|
5389
|
+
], ke = {
|
|
5390
5390
|
creatCol: [],
|
|
5391
5391
|
updateCol: []
|
|
5392
|
-
},
|
|
5392
|
+
}, il = [
|
|
5393
5393
|
{
|
|
5394
5394
|
name: "导出权限",
|
|
5395
5395
|
clazz: "primary",
|
|
5396
|
-
is_show: () =>
|
|
5396
|
+
is_show: () => me(),
|
|
5397
5397
|
cb: ({ current_org: e }) => {
|
|
5398
|
-
const t =
|
|
5398
|
+
const t = T({
|
|
5399
5399
|
visible: !0,
|
|
5400
5400
|
loading: !1,
|
|
5401
5401
|
title: "导出权限",
|
|
@@ -5419,8 +5419,8 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
5419
5419
|
modalType: "liyu_organization-query_org_for_login_list"
|
|
5420
5420
|
}
|
|
5421
5421
|
],
|
|
5422
|
-
rules:
|
|
5423
|
-
model:
|
|
5422
|
+
rules: T({}),
|
|
5423
|
+
model: T({
|
|
5424
5424
|
org_id: e == null ? void 0 : e.id,
|
|
5425
5425
|
aim_org_id: e == null ? void 0 : e.id
|
|
5426
5426
|
}),
|
|
@@ -5434,15 +5434,15 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
5434
5434
|
), n(null);
|
|
5435
5435
|
})
|
|
5436
5436
|
});
|
|
5437
|
-
|
|
5437
|
+
R(t);
|
|
5438
5438
|
}
|
|
5439
5439
|
},
|
|
5440
5440
|
{
|
|
5441
5441
|
name: "导入权限",
|
|
5442
5442
|
clazz: "primary",
|
|
5443
|
-
is_show: () =>
|
|
5443
|
+
is_show: () => me(),
|
|
5444
5444
|
cb: ({ current_org: e }) => {
|
|
5445
|
-
const t =
|
|
5445
|
+
const t = T({
|
|
5446
5446
|
visible: !0,
|
|
5447
5447
|
loading: !1,
|
|
5448
5448
|
title: "导入权限",
|
|
@@ -5477,8 +5477,8 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
5477
5477
|
placeholder: "角色JSON"
|
|
5478
5478
|
}
|
|
5479
5479
|
],
|
|
5480
|
-
rules:
|
|
5481
|
-
model:
|
|
5480
|
+
rules: T({}),
|
|
5481
|
+
model: T({
|
|
5482
5482
|
org_id: e == null ? void 0 : e.id,
|
|
5483
5483
|
aim_org_id: e == null ? void 0 : e.id
|
|
5484
5484
|
}),
|
|
@@ -5486,29 +5486,29 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
5486
5486
|
},
|
|
5487
5487
|
options: {},
|
|
5488
5488
|
ok: (l) => new Promise(function(n) {
|
|
5489
|
-
|
|
5490
|
-
t.loading = !0, n(null),
|
|
5489
|
+
zn(l).then(() => {
|
|
5490
|
+
t.loading = !0, n(null), re.success("导入权限成功");
|
|
5491
5491
|
});
|
|
5492
5492
|
})
|
|
5493
5493
|
});
|
|
5494
|
-
|
|
5494
|
+
R(t);
|
|
5495
5495
|
}
|
|
5496
5496
|
}
|
|
5497
|
-
],
|
|
5497
|
+
], Nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5498
5498
|
__proto__: null,
|
|
5499
|
-
btn_list:
|
|
5500
|
-
config:
|
|
5501
|
-
head_btn_list:
|
|
5502
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5499
|
+
btn_list: ol,
|
|
5500
|
+
config: ke,
|
|
5501
|
+
head_btn_list: il
|
|
5502
|
+
}, Symbol.toStringTag, { value: "Module" })), rl = [], Ve = {
|
|
5503
5503
|
creatCol: [],
|
|
5504
5504
|
updateCol: []
|
|
5505
|
-
},
|
|
5505
|
+
}, sl = [], qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5506
5506
|
__proto__: null,
|
|
5507
|
-
btn_list:
|
|
5508
|
-
config:
|
|
5509
|
-
head_btn_list:
|
|
5510
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5511
|
-
const t =
|
|
5507
|
+
btn_list: rl,
|
|
5508
|
+
config: Ve,
|
|
5509
|
+
head_btn_list: sl
|
|
5510
|
+
}, Symbol.toStringTag, { value: "Module" })), Ln = () => {
|
|
5511
|
+
const t = X().currentOrg, l = B(), a = {
|
|
5512
5512
|
settings: {
|
|
5513
5513
|
labelAlign: "right",
|
|
5514
5514
|
layout: "inline"
|
|
@@ -5552,7 +5552,7 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
5552
5552
|
}
|
|
5553
5553
|
],
|
|
5554
5554
|
rules: {},
|
|
5555
|
-
model:
|
|
5555
|
+
model: T({
|
|
5556
5556
|
org_id: t.id,
|
|
5557
5557
|
aim_org_id: t.id,
|
|
5558
5558
|
is_active: !0,
|
|
@@ -5571,7 +5571,7 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
5571
5571
|
settings: {
|
|
5572
5572
|
labelAlign: "right",
|
|
5573
5573
|
layout: "vertical",
|
|
5574
|
-
col:
|
|
5574
|
+
col: ke.creatCol
|
|
5575
5575
|
},
|
|
5576
5576
|
fields: [
|
|
5577
5577
|
{
|
|
@@ -5617,11 +5617,11 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
5617
5617
|
desc: ""
|
|
5618
5618
|
},
|
|
5619
5619
|
options: {}
|
|
5620
|
-
},
|
|
5620
|
+
}, o = {
|
|
5621
5621
|
settings: {
|
|
5622
5622
|
labelAlign: "right",
|
|
5623
5623
|
layout: "vertical",
|
|
5624
|
-
col:
|
|
5624
|
+
col: ke.creatCol
|
|
5625
5625
|
},
|
|
5626
5626
|
fields: [
|
|
5627
5627
|
{
|
|
@@ -5665,7 +5665,7 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
5665
5665
|
desc: ""
|
|
5666
5666
|
},
|
|
5667
5667
|
options: {}
|
|
5668
|
-
},
|
|
5668
|
+
}, i = {
|
|
5669
5669
|
title: "权限管理",
|
|
5670
5670
|
addModalTitle: "新建角色",
|
|
5671
5671
|
updateTitle: "修改",
|
|
@@ -5677,7 +5677,7 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
5677
5677
|
// userStore.CHECK_AUTH(DELETE_ROLE), // 是否有【删除】按钮
|
|
5678
5678
|
is_recover: "permission/recover_role"
|
|
5679
5679
|
// userStore.CHECK_AUTH(RECOVER_ROLE), // 是否有【恢复】按钮
|
|
5680
|
-
},
|
|
5680
|
+
}, r = {
|
|
5681
5681
|
update: {
|
|
5682
5682
|
role_id: "id"
|
|
5683
5683
|
},
|
|
@@ -5760,18 +5760,18 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
5760
5760
|
}), {
|
|
5761
5761
|
searchConfig: a,
|
|
5762
5762
|
formModalConfig: n,
|
|
5763
|
-
updateFormModalConfig:
|
|
5763
|
+
updateFormModalConfig: o,
|
|
5764
5764
|
queryData: "/permission/query_role_and_person_list",
|
|
5765
5765
|
addData: "/permission/create_role",
|
|
5766
5766
|
updateData: "/permission/update_role",
|
|
5767
5767
|
removeData: "/permission/delete_role",
|
|
5768
5768
|
recoverData: "/permission/recover_role",
|
|
5769
5769
|
baseColumns: c,
|
|
5770
|
-
titleList:
|
|
5771
|
-
api_fields:
|
|
5772
|
-
btn_list:
|
|
5773
|
-
head_btn_list:
|
|
5774
|
-
event_obj:
|
|
5770
|
+
titleList: i,
|
|
5771
|
+
api_fields: r,
|
|
5772
|
+
btn_list: ol,
|
|
5773
|
+
head_btn_list: il,
|
|
5774
|
+
event_obj: N(),
|
|
5775
5775
|
is_show_advantage: !1,
|
|
5776
5776
|
is_show_normal_search: !0,
|
|
5777
5777
|
is_only_show_advantage: !1,
|
|
@@ -5779,17 +5779,17 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
5779
5779
|
queryConditionGroupData: null,
|
|
5780
5780
|
isView: !1
|
|
5781
5781
|
};
|
|
5782
|
-
},
|
|
5782
|
+
}, Rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5783
5783
|
__proto__: null,
|
|
5784
|
-
default:
|
|
5785
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5784
|
+
default: Ln
|
|
5785
|
+
}, Symbol.toStringTag, { value: "Module" })), ul = [
|
|
5786
5786
|
{
|
|
5787
5787
|
name: "修改",
|
|
5788
5788
|
type: "dropdown",
|
|
5789
5789
|
clazz: "primary",
|
|
5790
5790
|
cb: ({ record: e }) => {
|
|
5791
5791
|
var l;
|
|
5792
|
-
const t =
|
|
5792
|
+
const t = T({
|
|
5793
5793
|
visible: !0,
|
|
5794
5794
|
title: "修改",
|
|
5795
5795
|
loading: !1,
|
|
@@ -5860,7 +5860,7 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
5860
5860
|
}
|
|
5861
5861
|
],
|
|
5862
5862
|
rules: {},
|
|
5863
|
-
model:
|
|
5863
|
+
model: T({
|
|
5864
5864
|
aim_org_id: e.org_id,
|
|
5865
5865
|
person_id: e.id,
|
|
5866
5866
|
username: e.user__username,
|
|
@@ -5879,29 +5879,29 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
5879
5879
|
]
|
|
5880
5880
|
},
|
|
5881
5881
|
ok: (a) => new Promise((n) => {
|
|
5882
|
-
t.loading = !0,
|
|
5882
|
+
t.loading = !0, ca({
|
|
5883
5883
|
...a
|
|
5884
|
-
}).then((
|
|
5885
|
-
|
|
5884
|
+
}).then((o) => {
|
|
5885
|
+
H.success("修改成功"), Object.assign(e, o), N().emit("refresh"), n(null);
|
|
5886
5886
|
}).finally(() => {
|
|
5887
5887
|
t.loading = !1;
|
|
5888
5888
|
});
|
|
5889
5889
|
})
|
|
5890
5890
|
});
|
|
5891
|
-
|
|
5891
|
+
R(t);
|
|
5892
5892
|
}
|
|
5893
5893
|
}
|
|
5894
|
-
],
|
|
5894
|
+
], je = {
|
|
5895
5895
|
creatCol: [],
|
|
5896
5896
|
updateCol: []
|
|
5897
|
-
},
|
|
5897
|
+
}, cl = [
|
|
5898
5898
|
{
|
|
5899
5899
|
name: "新建用户",
|
|
5900
5900
|
type: "dropdown",
|
|
5901
5901
|
is_show: !0,
|
|
5902
5902
|
clazz: "primary",
|
|
5903
5903
|
cb: ({ searchModel: e }) => {
|
|
5904
|
-
const t =
|
|
5904
|
+
const t = T({
|
|
5905
5905
|
visible: !0,
|
|
5906
5906
|
title: "新建用户",
|
|
5907
5907
|
loading: !1,
|
|
@@ -5972,7 +5972,7 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
5972
5972
|
}
|
|
5973
5973
|
],
|
|
5974
5974
|
rules: {},
|
|
5975
|
-
model:
|
|
5975
|
+
model: T({
|
|
5976
5976
|
aim_org_id: e.aim_org_id,
|
|
5977
5977
|
person_id: null,
|
|
5978
5978
|
username: null,
|
|
@@ -5988,25 +5988,25 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
5988
5988
|
]
|
|
5989
5989
|
},
|
|
5990
5990
|
ok: (l) => new Promise((a) => {
|
|
5991
|
-
t.loading = !0,
|
|
5991
|
+
t.loading = !0, ua({
|
|
5992
5992
|
...l
|
|
5993
5993
|
}).then((n) => {
|
|
5994
|
-
|
|
5994
|
+
H.success("修改成功"), N().emit("refresh"), a(null);
|
|
5995
5995
|
}).finally(() => {
|
|
5996
5996
|
t.loading = !1;
|
|
5997
5997
|
});
|
|
5998
5998
|
})
|
|
5999
5999
|
});
|
|
6000
|
-
|
|
6000
|
+
R(t);
|
|
6001
6001
|
}
|
|
6002
6002
|
}
|
|
6003
|
-
],
|
|
6003
|
+
], Fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6004
6004
|
__proto__: null,
|
|
6005
|
-
btn_list:
|
|
6006
|
-
config:
|
|
6007
|
-
head_btn_list:
|
|
6008
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6009
|
-
const t =
|
|
6005
|
+
btn_list: ul,
|
|
6006
|
+
config: je,
|
|
6007
|
+
head_btn_list: cl
|
|
6008
|
+
}, Symbol.toStringTag, { value: "Module" })), Hn = () => {
|
|
6009
|
+
const t = X().currentOrg, l = {
|
|
6010
6010
|
settings: {
|
|
6011
6011
|
labelAlign: "right",
|
|
6012
6012
|
layout: "inline"
|
|
@@ -6038,7 +6038,7 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
6038
6038
|
}
|
|
6039
6039
|
],
|
|
6040
6040
|
rules: {},
|
|
6041
|
-
model:
|
|
6041
|
+
model: T({
|
|
6042
6042
|
org_id: t.id,
|
|
6043
6043
|
aim_org_id: t.id,
|
|
6044
6044
|
is_active: !0,
|
|
@@ -6050,7 +6050,7 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
6050
6050
|
settings: {
|
|
6051
6051
|
labelAlign: "right",
|
|
6052
6052
|
layout: "horizontal",
|
|
6053
|
-
col:
|
|
6053
|
+
col: je.creatCol
|
|
6054
6054
|
},
|
|
6055
6055
|
fields: [
|
|
6056
6056
|
{
|
|
@@ -6133,11 +6133,11 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
6133
6133
|
settings: {
|
|
6134
6134
|
labelAlign: "right",
|
|
6135
6135
|
layout: "horizontal",
|
|
6136
|
-
col:
|
|
6136
|
+
col: je.creatCol
|
|
6137
6137
|
},
|
|
6138
6138
|
fields: [],
|
|
6139
6139
|
rules: {},
|
|
6140
|
-
model:
|
|
6140
|
+
model: T({
|
|
6141
6141
|
org_id: t.id,
|
|
6142
6142
|
id: null,
|
|
6143
6143
|
username: "",
|
|
@@ -6282,9 +6282,9 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
6282
6282
|
person_id: "id"
|
|
6283
6283
|
}
|
|
6284
6284
|
},
|
|
6285
|
-
btn_list:
|
|
6286
|
-
head_btn_list:
|
|
6287
|
-
event_obj:
|
|
6285
|
+
btn_list: ul,
|
|
6286
|
+
head_btn_list: cl,
|
|
6287
|
+
event_obj: N(),
|
|
6288
6288
|
base_search_condition_config_list: [],
|
|
6289
6289
|
default_search_condition_config_list: [[]],
|
|
6290
6290
|
condition_group_config_list: [],
|
|
@@ -6295,11 +6295,11 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
6295
6295
|
queryConditionGroupData: null,
|
|
6296
6296
|
isView: !1
|
|
6297
6297
|
};
|
|
6298
|
-
},
|
|
6298
|
+
}, Gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6299
6299
|
__proto__: null,
|
|
6300
|
-
default:
|
|
6301
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6302
|
-
const t =
|
|
6300
|
+
default: Hn
|
|
6301
|
+
}, Symbol.toStringTag, { value: "Module" })), Bn = () => {
|
|
6302
|
+
const t = X().currentOrg, l = {
|
|
6303
6303
|
settings: {
|
|
6304
6304
|
labelAlign: "right",
|
|
6305
6305
|
layout: "inline"
|
|
@@ -6343,7 +6343,7 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
6343
6343
|
}
|
|
6344
6344
|
],
|
|
6345
6345
|
rules: {},
|
|
6346
|
-
model:
|
|
6346
|
+
model: T({
|
|
6347
6347
|
org_id: t.id,
|
|
6348
6348
|
aim_org_id: t.id,
|
|
6349
6349
|
is_active: !0,
|
|
@@ -6359,7 +6359,7 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
6359
6359
|
settings: {
|
|
6360
6360
|
labelAlign: "right",
|
|
6361
6361
|
layout: "vertical",
|
|
6362
|
-
col:
|
|
6362
|
+
col: Ve.creatCol
|
|
6363
6363
|
},
|
|
6364
6364
|
fields: [
|
|
6365
6365
|
{
|
|
@@ -6404,11 +6404,11 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
6404
6404
|
name: "",
|
|
6405
6405
|
desc: ""
|
|
6406
6406
|
}
|
|
6407
|
-
},
|
|
6407
|
+
}, o = {}, i = {
|
|
6408
6408
|
settings: {
|
|
6409
6409
|
labelAlign: "right",
|
|
6410
6410
|
layout: "vertical",
|
|
6411
|
-
col:
|
|
6411
|
+
col: Ve.creatCol
|
|
6412
6412
|
},
|
|
6413
6413
|
fields: [
|
|
6414
6414
|
{
|
|
@@ -6456,14 +6456,14 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
6456
6456
|
searchConfig: l,
|
|
6457
6457
|
searchConfigOptions: a,
|
|
6458
6458
|
formModalConfig: n,
|
|
6459
|
-
formModalConfigOptions:
|
|
6460
|
-
updateFormModalConfig:
|
|
6459
|
+
formModalConfigOptions: o,
|
|
6460
|
+
updateFormModalConfig: i,
|
|
6461
6461
|
updateFormModalConfigOptions: {},
|
|
6462
|
-
queryData:
|
|
6463
|
-
addData:
|
|
6464
|
-
updateData:
|
|
6465
|
-
removeData:
|
|
6466
|
-
recoverData:
|
|
6462
|
+
queryData: ql,
|
|
6463
|
+
addData: Ll,
|
|
6464
|
+
updateData: Rl,
|
|
6465
|
+
removeData: Fl,
|
|
6466
|
+
recoverData: Hl,
|
|
6467
6467
|
baseColumns: [
|
|
6468
6468
|
{
|
|
6469
6469
|
title: "序号",
|
|
@@ -6542,9 +6542,9 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
6542
6542
|
role_id: "id"
|
|
6543
6543
|
}
|
|
6544
6544
|
},
|
|
6545
|
-
btn_list:
|
|
6546
|
-
head_btn_list:
|
|
6547
|
-
event_obj:
|
|
6545
|
+
btn_list: rl,
|
|
6546
|
+
head_btn_list: sl,
|
|
6547
|
+
event_obj: N(),
|
|
6548
6548
|
base_search_condition_config_list: [],
|
|
6549
6549
|
default_search_condition_config_list: [[]],
|
|
6550
6550
|
condition_group_config_list: [],
|
|
@@ -6555,40 +6555,291 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
6555
6555
|
queryConditionGroupData: null,
|
|
6556
6556
|
isView: !1
|
|
6557
6557
|
};
|
|
6558
|
-
},
|
|
6558
|
+
}, Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6559
6559
|
__proto__: null,
|
|
6560
|
-
default:
|
|
6561
|
-
}, Symbol.toStringTag, { value: "Module" }))
|
|
6560
|
+
default: Bn
|
|
6561
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
6562
|
+
var dl = { exports: {} };
|
|
6563
|
+
(function(e) {
|
|
6564
|
+
(function(t) {
|
|
6565
|
+
function l(u, y) {
|
|
6566
|
+
var d = (u & 65535) + (y & 65535), I = (u >> 16) + (y >> 16) + (d >> 16);
|
|
6567
|
+
return I << 16 | d & 65535;
|
|
6568
|
+
}
|
|
6569
|
+
function a(u, y) {
|
|
6570
|
+
return u << y | u >>> 32 - y;
|
|
6571
|
+
}
|
|
6572
|
+
function n(u, y, d, I, k, D) {
|
|
6573
|
+
return l(a(l(l(y, u), l(I, D)), k), d);
|
|
6574
|
+
}
|
|
6575
|
+
function o(u, y, d, I, k, D, K) {
|
|
6576
|
+
return n(y & d | ~y & I, u, y, k, D, K);
|
|
6577
|
+
}
|
|
6578
|
+
function i(u, y, d, I, k, D, K) {
|
|
6579
|
+
return n(y & I | d & ~I, u, y, k, D, K);
|
|
6580
|
+
}
|
|
6581
|
+
function r(u, y, d, I, k, D, K) {
|
|
6582
|
+
return n(y ^ d ^ I, u, y, k, D, K);
|
|
6583
|
+
}
|
|
6584
|
+
function c(u, y, d, I, k, D, K) {
|
|
6585
|
+
return n(d ^ (y | ~I), u, y, k, D, K);
|
|
6586
|
+
}
|
|
6587
|
+
function f(u, y) {
|
|
6588
|
+
u[y >> 5] |= 128 << y % 32, u[(y + 64 >>> 9 << 4) + 14] = y;
|
|
6589
|
+
var d, I, k, D, K, h = 1732584193, v = -271733879, b = -1732584194, s = 271733878;
|
|
6590
|
+
for (d = 0; d < u.length; d += 16)
|
|
6591
|
+
I = h, k = v, D = b, K = s, h = o(h, v, b, s, u[d], 7, -680876936), s = o(s, h, v, b, u[d + 1], 12, -389564586), b = o(b, s, h, v, u[d + 2], 17, 606105819), v = o(v, b, s, h, u[d + 3], 22, -1044525330), h = o(h, v, b, s, u[d + 4], 7, -176418897), s = o(s, h, v, b, u[d + 5], 12, 1200080426), b = o(b, s, h, v, u[d + 6], 17, -1473231341), v = o(v, b, s, h, u[d + 7], 22, -45705983), h = o(h, v, b, s, u[d + 8], 7, 1770035416), s = o(s, h, v, b, u[d + 9], 12, -1958414417), b = o(b, s, h, v, u[d + 10], 17, -42063), v = o(v, b, s, h, u[d + 11], 22, -1990404162), h = o(h, v, b, s, u[d + 12], 7, 1804603682), s = o(s, h, v, b, u[d + 13], 12, -40341101), b = o(b, s, h, v, u[d + 14], 17, -1502002290), v = o(v, b, s, h, u[d + 15], 22, 1236535329), h = i(h, v, b, s, u[d + 1], 5, -165796510), s = i(s, h, v, b, u[d + 6], 9, -1069501632), b = i(b, s, h, v, u[d + 11], 14, 643717713), v = i(v, b, s, h, u[d], 20, -373897302), h = i(h, v, b, s, u[d + 5], 5, -701558691), s = i(s, h, v, b, u[d + 10], 9, 38016083), b = i(b, s, h, v, u[d + 15], 14, -660478335), v = i(v, b, s, h, u[d + 4], 20, -405537848), h = i(h, v, b, s, u[d + 9], 5, 568446438), s = i(s, h, v, b, u[d + 14], 9, -1019803690), b = i(b, s, h, v, u[d + 3], 14, -187363961), v = i(v, b, s, h, u[d + 8], 20, 1163531501), h = i(h, v, b, s, u[d + 13], 5, -1444681467), s = i(s, h, v, b, u[d + 2], 9, -51403784), b = i(b, s, h, v, u[d + 7], 14, 1735328473), v = i(v, b, s, h, u[d + 12], 20, -1926607734), h = r(h, v, b, s, u[d + 5], 4, -378558), s = r(s, h, v, b, u[d + 8], 11, -2022574463), b = r(b, s, h, v, u[d + 11], 16, 1839030562), v = r(v, b, s, h, u[d + 14], 23, -35309556), h = r(h, v, b, s, u[d + 1], 4, -1530992060), s = r(s, h, v, b, u[d + 4], 11, 1272893353), b = r(b, s, h, v, u[d + 7], 16, -155497632), v = r(v, b, s, h, u[d + 10], 23, -1094730640), h = r(h, v, b, s, u[d + 13], 4, 681279174), s = r(s, h, v, b, u[d], 11, -358537222), b = r(b, s, h, v, u[d + 3], 16, -722521979), v = r(v, b, s, h, u[d + 6], 23, 76029189), h = r(h, v, b, s, u[d + 9], 4, -640364487), s = r(s, h, v, b, u[d + 12], 11, -421815835), b = r(b, s, h, v, u[d + 15], 16, 530742520), v = r(v, b, s, h, u[d + 2], 23, -995338651), h = c(h, v, b, s, u[d], 6, -198630844), s = c(s, h, v, b, u[d + 7], 10, 1126891415), b = c(b, s, h, v, u[d + 14], 15, -1416354905), v = c(v, b, s, h, u[d + 5], 21, -57434055), h = c(h, v, b, s, u[d + 12], 6, 1700485571), s = c(s, h, v, b, u[d + 3], 10, -1894986606), b = c(b, s, h, v, u[d + 10], 15, -1051523), v = c(v, b, s, h, u[d + 1], 21, -2054922799), h = c(h, v, b, s, u[d + 8], 6, 1873313359), s = c(s, h, v, b, u[d + 15], 10, -30611744), b = c(b, s, h, v, u[d + 6], 15, -1560198380), v = c(v, b, s, h, u[d + 13], 21, 1309151649), h = c(h, v, b, s, u[d + 4], 6, -145523070), s = c(s, h, v, b, u[d + 11], 10, -1120210379), b = c(b, s, h, v, u[d + 2], 15, 718787259), v = c(v, b, s, h, u[d + 9], 21, -343485551), h = l(h, I), v = l(v, k), b = l(b, D), s = l(s, K);
|
|
6592
|
+
return [h, v, b, s];
|
|
6593
|
+
}
|
|
6594
|
+
function p(u) {
|
|
6595
|
+
var y, d = "", I = u.length * 32;
|
|
6596
|
+
for (y = 0; y < I; y += 8)
|
|
6597
|
+
d += String.fromCharCode(u[y >> 5] >>> y % 32 & 255);
|
|
6598
|
+
return d;
|
|
6599
|
+
}
|
|
6600
|
+
function _(u) {
|
|
6601
|
+
var y, d = [];
|
|
6602
|
+
for (d[(u.length >> 2) - 1] = void 0, y = 0; y < d.length; y += 1)
|
|
6603
|
+
d[y] = 0;
|
|
6604
|
+
var I = u.length * 8;
|
|
6605
|
+
for (y = 0; y < I; y += 8)
|
|
6606
|
+
d[y >> 5] |= (u.charCodeAt(y / 8) & 255) << y % 32;
|
|
6607
|
+
return d;
|
|
6608
|
+
}
|
|
6609
|
+
function g(u) {
|
|
6610
|
+
return p(f(_(u), u.length * 8));
|
|
6611
|
+
}
|
|
6612
|
+
function m(u, y) {
|
|
6613
|
+
var d, I = _(u), k = [], D = [], K;
|
|
6614
|
+
for (k[15] = D[15] = void 0, I.length > 16 && (I = f(I, u.length * 8)), d = 0; d < 16; d += 1)
|
|
6615
|
+
k[d] = I[d] ^ 909522486, D[d] = I[d] ^ 1549556828;
|
|
6616
|
+
return K = f(k.concat(_(y)), 512 + y.length * 8), p(f(D.concat(K), 512 + 128));
|
|
6617
|
+
}
|
|
6618
|
+
function w(u) {
|
|
6619
|
+
var y = "0123456789abcdef", d = "", I, k;
|
|
6620
|
+
for (k = 0; k < u.length; k += 1)
|
|
6621
|
+
I = u.charCodeAt(k), d += y.charAt(I >>> 4 & 15) + y.charAt(I & 15);
|
|
6622
|
+
return d;
|
|
6623
|
+
}
|
|
6624
|
+
function C(u) {
|
|
6625
|
+
return unescape(encodeURIComponent(u));
|
|
6626
|
+
}
|
|
6627
|
+
function O(u) {
|
|
6628
|
+
return g(C(u));
|
|
6629
|
+
}
|
|
6630
|
+
function P(u) {
|
|
6631
|
+
return w(O(u));
|
|
6632
|
+
}
|
|
6633
|
+
function A(u, y) {
|
|
6634
|
+
return m(C(u), C(y));
|
|
6635
|
+
}
|
|
6636
|
+
function j(u, y) {
|
|
6637
|
+
return w(A(u, y));
|
|
6638
|
+
}
|
|
6639
|
+
function S(u, y, d) {
|
|
6640
|
+
return y ? d ? A(y, u) : j(y, u) : d ? O(u) : P(u);
|
|
6641
|
+
}
|
|
6642
|
+
e.exports ? e.exports = S : t.md5 = S;
|
|
6643
|
+
})(Bl);
|
|
6644
|
+
})(dl);
|
|
6645
|
+
var Wn = dl.exports;
|
|
6646
|
+
const Jn = /* @__PURE__ */ Ul(Wn);
|
|
6647
|
+
function Xn(e) {
|
|
6648
|
+
return Jn(e);
|
|
6649
|
+
}
|
|
6650
|
+
const gt = (e) => Xn(e).slice(-3), Qn = (e, t, l, a) => (!e || !Array.isArray(e) || e.forEach((n) => {
|
|
6651
|
+
n.title && (n.title = t(`${l}_${n.title}`, {
|
|
6652
|
+
defaultValue: n.title
|
|
6653
|
+
})), n.contentMap && Object.keys(n.contentMap).forEach((o) => {
|
|
6654
|
+
n.contentMap[o] = t(
|
|
6655
|
+
`${l}_${a(n.dataIndex)}_${n.contentMap[o]}`,
|
|
6656
|
+
{
|
|
6657
|
+
defaultValue: n.contentMap[o]
|
|
6658
|
+
}
|
|
6659
|
+
);
|
|
6660
|
+
}), n.filters && n.filters.forEach((o) => {
|
|
6661
|
+
o.text && (o.text = t(`${l}_${a(n.dataIndex)}_${o.text}`, {
|
|
6662
|
+
defaultValue: o.text
|
|
6663
|
+
}));
|
|
6664
|
+
});
|
|
6665
|
+
}), e), Yn = (e, t, l, a) => {
|
|
6666
|
+
if (e != null && e.fields && Array.isArray(e.fields) && e.fields.forEach((o) => {
|
|
6667
|
+
o.label && (o.label = t(`${l}_${o.label}`, {
|
|
6668
|
+
defaultValue: o.label
|
|
6669
|
+
})), Array.isArray(o.placeholder) ? o.placeholder = o.placeholder.map(
|
|
6670
|
+
(i) => t(`${l}_${i}`, {
|
|
6671
|
+
defaultValue: i
|
|
6672
|
+
})
|
|
6673
|
+
) : o.placeholder && (o.placeholder = t(`${l}_${o.placeholder}`, {
|
|
6674
|
+
defaultValue: o.placeholder
|
|
6675
|
+
}));
|
|
6676
|
+
}), e != null && e.options)
|
|
6677
|
+
for (const o in e.options)
|
|
6678
|
+
e.options[o].forEach((i) => {
|
|
6679
|
+
i.name && (i.name = t(`${l}_${a(o)}_${i.name}`, {
|
|
6680
|
+
defaultValue: i.name
|
|
6681
|
+
})), i.label && (i.label = t(`${l}_${a(o)}_${i.label}`, {
|
|
6682
|
+
defaultValue: i.label
|
|
6683
|
+
}));
|
|
6684
|
+
});
|
|
6685
|
+
const n = e == null ? void 0 : e.rules;
|
|
6686
|
+
return n && Object.keys(n).forEach((o) => {
|
|
6687
|
+
n[o].forEach((i) => {
|
|
6688
|
+
i.message && (i.message = t(`${l}_${i.message}`, {
|
|
6689
|
+
defaultValue: i.message
|
|
6690
|
+
}));
|
|
6691
|
+
});
|
|
6692
|
+
}), e;
|
|
6693
|
+
}, Zn = (e, t, l, a) => (e && Array.isArray(e) && e.forEach((n) => {
|
|
6694
|
+
n.name && (n.name = t(`${l}_${n.name}`, {
|
|
6695
|
+
defaultValue: n.name
|
|
6696
|
+
}));
|
|
6697
|
+
const o = n.group;
|
|
6698
|
+
o && Array.isArray(o) && o.forEach((i) => {
|
|
6699
|
+
i.label && (i.label = t(`${l}_${i.label}`, {
|
|
6700
|
+
defaultValue: i.label
|
|
6701
|
+
})), i.options && i.options.forEach((r) => {
|
|
6702
|
+
r.label && (r.label = t(
|
|
6703
|
+
`${l}_${a(i.field_name)}_${r.label}`,
|
|
6704
|
+
{
|
|
6705
|
+
defaultValue: r.label
|
|
6706
|
+
}
|
|
6707
|
+
));
|
|
6708
|
+
});
|
|
6709
|
+
});
|
|
6710
|
+
}), e), eo = (e, t, l, a) => (e && Array.isArray(e) && e.forEach((n) => {
|
|
6711
|
+
n && Array.isArray(n) && n.forEach((o) => {
|
|
6712
|
+
o.label && (o.label = t(`${l}_${o.label}`, {
|
|
6713
|
+
defaultValue: o.label
|
|
6714
|
+
}));
|
|
6715
|
+
});
|
|
6716
|
+
}), e), to = (e, t, l, a) => (e && Array.isArray(e) && e.forEach((n) => {
|
|
6717
|
+
n.label && (n.label = t(`${l}_${n.label}`, {
|
|
6718
|
+
defaultValue: n.label
|
|
6719
|
+
}));
|
|
6720
|
+
}), e), De = (e, t, l, a) => {
|
|
6721
|
+
const n = e == null ? void 0 : e.dynamicFieldList;
|
|
6722
|
+
n && Array.isArray(n) && n.forEach((r) => {
|
|
6723
|
+
r.group_name && (r.group_name = t(`${l}_${r.group_name}`, {
|
|
6724
|
+
defaultValue: r.group_name
|
|
6725
|
+
}));
|
|
6726
|
+
const c = r.children;
|
|
6727
|
+
c && Array.isArray(c) && c.forEach((f) => {
|
|
6728
|
+
f.label && (f.label = t(`${l}_${f.label}`, {
|
|
6729
|
+
defaultValue: f.label
|
|
6730
|
+
}));
|
|
6731
|
+
const p = f.placeholder;
|
|
6732
|
+
p && Array.isArray(p) ? f.placeholder = p.map(
|
|
6733
|
+
(_) => t(`${l}_${_}`, {
|
|
6734
|
+
defaultValue: _
|
|
6735
|
+
})
|
|
6736
|
+
) : p && (f.placeholder = t(`${l}_${p}`, {
|
|
6737
|
+
defaultValue: p
|
|
6738
|
+
}));
|
|
6739
|
+
});
|
|
6740
|
+
});
|
|
6741
|
+
const o = e == null ? void 0 : e.rules;
|
|
6742
|
+
o && Object.keys(o).forEach((r) => {
|
|
6743
|
+
o[r].forEach((c) => {
|
|
6744
|
+
c.message && (c.message = t(`${l}_${c.message}`, {
|
|
6745
|
+
defaultValue: c.message
|
|
6746
|
+
}));
|
|
6747
|
+
});
|
|
6748
|
+
});
|
|
6749
|
+
const i = e == null ? void 0 : e.options;
|
|
6750
|
+
return i && Object.keys(i).forEach((r) => {
|
|
6751
|
+
i[r].forEach((c) => {
|
|
6752
|
+
c.name && (c.name = t(`${l}_${a(r)}_${c.name}`, {
|
|
6753
|
+
defaultValue: c.name
|
|
6754
|
+
})), c.label && (c.label = t(`${l}_${a(r)}_${c.label}`, {
|
|
6755
|
+
defaultValue: c.label
|
|
6756
|
+
}));
|
|
6757
|
+
});
|
|
6758
|
+
}), e;
|
|
6759
|
+
}, lo = (e, t, l, a) => (e != null && e.title && (e.title = t(`${l}_${e.title}`, {
|
|
6760
|
+
defaultValue: e.title
|
|
6761
|
+
})), e != null && e.addModalTitle && (e.addModalTitle = t(`${l}_${e.addModalTitle}`, {
|
|
6762
|
+
defaultValue: e.addModalTitle
|
|
6763
|
+
})), e != null && e.updateTitle && (e.updateTitle = t(`${l}_${e.updateTitle}`, {
|
|
6764
|
+
defaultValue: e.updateTitle
|
|
6765
|
+
})), e), Pe = (e, t, l, a) => (e && Array.isArray(e) && e.forEach((n) => {
|
|
6766
|
+
n.name && (n.name = t(`${l}_${n.name}`, {
|
|
6767
|
+
defaultValue: n.name
|
|
6768
|
+
}));
|
|
6769
|
+
const o = n.model_config;
|
|
6770
|
+
o && (o.title && (o.title = t(`${l}_${o.title}`, {
|
|
6771
|
+
defaultValue: o.title
|
|
6772
|
+
})), o.content && (o.content = t(`${l}_${o.content}`, {
|
|
6773
|
+
defaultValue: o.content
|
|
6774
|
+
})), o.form && (o.form = De(
|
|
6775
|
+
o.form,
|
|
6776
|
+
t,
|
|
6777
|
+
l,
|
|
6778
|
+
a
|
|
6779
|
+
)));
|
|
6780
|
+
}), e), ht = {
|
|
6781
|
+
baseColumns: Qn,
|
|
6782
|
+
searchConfig: Yn,
|
|
6783
|
+
base_search_condition_config_list: Zn,
|
|
6784
|
+
default_search_condition_config_list: eo,
|
|
6785
|
+
condition_group_config_list: to,
|
|
6786
|
+
formModalConfig: De,
|
|
6787
|
+
updateFormModalConfig: De,
|
|
6788
|
+
titleList: lo,
|
|
6789
|
+
btn_list: Pe,
|
|
6790
|
+
head_btn_list: Pe,
|
|
6791
|
+
batch_update_list: Pe
|
|
6792
|
+
}, ao = (e, t, l) => {
|
|
6793
|
+
if (!B().VITE_APP_ENABLE_ZH_EN)
|
|
6794
|
+
return e;
|
|
6795
|
+
const n = Gl(e), o = n.i18n;
|
|
6796
|
+
return Object.keys(n).forEach((i) => {
|
|
6797
|
+
if (ht[i]) {
|
|
6798
|
+
let r = o == null ? void 0 : o.i18n_id, c = o == null ? void 0 : o.fields;
|
|
6799
|
+
r || (r = gt(l));
|
|
6800
|
+
const f = (p) => {
|
|
6801
|
+
var _;
|
|
6802
|
+
if (c) {
|
|
6803
|
+
const g = (_ = c[p]) == null ? void 0 : _.i18n_id;
|
|
6804
|
+
if (g)
|
|
6805
|
+
return g;
|
|
6806
|
+
}
|
|
6807
|
+
return gt(p);
|
|
6808
|
+
};
|
|
6809
|
+
n[i] = ht[i](n[i], t, r, f);
|
|
6810
|
+
}
|
|
6811
|
+
}), console.log("result====", n), n;
|
|
6812
|
+
}, ue = (e, t) => {
|
|
6562
6813
|
if (!t)
|
|
6563
6814
|
return e;
|
|
6564
|
-
const l =
|
|
6565
|
-
l.forEach((
|
|
6566
|
-
delete
|
|
6815
|
+
const l = ae.cloneDeep(e || []), a = /* @__PURE__ */ new Map();
|
|
6816
|
+
l.forEach((o, i) => {
|
|
6817
|
+
delete o._key, a.set(o.name, i);
|
|
6567
6818
|
});
|
|
6568
6819
|
let n = 0;
|
|
6569
|
-
return t.forEach((
|
|
6570
|
-
|
|
6571
|
-
const
|
|
6572
|
-
if (
|
|
6573
|
-
const
|
|
6574
|
-
|
|
6575
|
-
const c =
|
|
6576
|
-
delete c.children, Object.assign(
|
|
6820
|
+
return t.forEach((o) => {
|
|
6821
|
+
o.order || (o.order = n + 1), n = o.order, o._key = `custom_${o.name}_${Math.random()}`;
|
|
6822
|
+
const i = a.get(o.name);
|
|
6823
|
+
if (i !== void 0) {
|
|
6824
|
+
const r = l[i];
|
|
6825
|
+
o.children && r.children && (r.children = ue(r.children, o.children));
|
|
6826
|
+
const c = ae.cloneDeep(o);
|
|
6827
|
+
delete c.children, Object.assign(r, c);
|
|
6577
6828
|
} else {
|
|
6578
|
-
const
|
|
6579
|
-
l.push(
|
|
6829
|
+
const r = ae.cloneDeep(o);
|
|
6830
|
+
l.push(r), r.children && (r.children = ue([], r.children));
|
|
6580
6831
|
}
|
|
6581
6832
|
}), l;
|
|
6582
|
-
},
|
|
6583
|
-
btn_list:
|
|
6584
|
-
head_btn_list:
|
|
6585
|
-
batch_update_list:
|
|
6586
|
-
},
|
|
6587
|
-
const l =
|
|
6833
|
+
}, yt = {
|
|
6834
|
+
btn_list: ue,
|
|
6835
|
+
head_btn_list: ue,
|
|
6836
|
+
batch_update_list: ue
|
|
6837
|
+
}, no = (e, t) => {
|
|
6838
|
+
const l = ae.cloneDeep(e);
|
|
6588
6839
|
Object.keys(t).forEach((a) => {
|
|
6589
|
-
|
|
6840
|
+
yt[a] ? l[a] = yt[a](e[a], t[a]) : l[a] = t[a];
|
|
6590
6841
|
}), Object.assign(e, l);
|
|
6591
|
-
},
|
|
6842
|
+
}, oo = (e, t) => {
|
|
6592
6843
|
if (e)
|
|
6593
6844
|
return e.forEach((l) => {
|
|
6594
6845
|
const a = l.dataIndex;
|
|
@@ -6596,177 +6847,178 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
6596
6847
|
for (const n in t[a])
|
|
6597
6848
|
t[a][n] === null ? delete l[n] : l[n] = t[a][n];
|
|
6598
6849
|
}), e;
|
|
6599
|
-
},
|
|
6850
|
+
}, io = (e, t) => {
|
|
6600
6851
|
if (e)
|
|
6601
6852
|
return e.forEach((l) => {
|
|
6602
6853
|
const a = l.group;
|
|
6603
6854
|
a && a.forEach((n) => {
|
|
6604
|
-
const
|
|
6605
|
-
if (t[
|
|
6606
|
-
for (const
|
|
6607
|
-
t[
|
|
6855
|
+
const o = n.field_name;
|
|
6856
|
+
if (t[o])
|
|
6857
|
+
for (const i in t[o])
|
|
6858
|
+
t[o][i] === null ? delete n[i] : n[i] = t[o][i];
|
|
6608
6859
|
});
|
|
6609
6860
|
}), e;
|
|
6610
|
-
},
|
|
6861
|
+
}, ro = (e, t) => {
|
|
6611
6862
|
if (!e)
|
|
6612
6863
|
return;
|
|
6613
|
-
const l = e.fields, a = e.rules || {}, n = e.model || {},
|
|
6614
|
-
return l ? (l.forEach((
|
|
6615
|
-
var
|
|
6616
|
-
const c =
|
|
6617
|
-
if ((
|
|
6618
|
-
for (const
|
|
6619
|
-
t.fields[c][
|
|
6620
|
-
((
|
|
6864
|
+
const l = e.fields, a = e.rules || {}, n = e.model || {}, o = e.options || {};
|
|
6865
|
+
return l ? (l.forEach((r) => {
|
|
6866
|
+
var f, p, _, g;
|
|
6867
|
+
const c = r.name;
|
|
6868
|
+
if ((f = t.fields) != null && f[c])
|
|
6869
|
+
for (const m in t.fields[c])
|
|
6870
|
+
t.fields[c][m] === null ? delete r[m] : r[m] = t.fields[c][m];
|
|
6871
|
+
((p = t.rules) == null ? void 0 : p[c]) !== void 0 && (a[c] = t.rules[c]), ((_ = t.model) == null ? void 0 : _[c]) !== void 0 && (n[c] = t.model[c]), ((g = t.options) == null ? void 0 : g[c]) !== void 0 && (o[c] = t.options[c]);
|
|
6621
6872
|
}), Object.assign(e, {
|
|
6622
6873
|
fields: l,
|
|
6623
6874
|
rules: a,
|
|
6624
6875
|
model: n,
|
|
6625
|
-
options:
|
|
6876
|
+
options: o
|
|
6626
6877
|
}), e) : void 0;
|
|
6627
|
-
},
|
|
6628
|
-
baseColumns:
|
|
6629
|
-
base_search_condition_config_list:
|
|
6630
|
-
searchConfig:
|
|
6631
|
-
},
|
|
6632
|
-
const l =
|
|
6878
|
+
}, bt = {
|
|
6879
|
+
baseColumns: oo,
|
|
6880
|
+
base_search_condition_config_list: io,
|
|
6881
|
+
searchConfig: ro
|
|
6882
|
+
}, so = (e, t) => {
|
|
6883
|
+
const l = ae.cloneDeep(e);
|
|
6633
6884
|
return Object.keys(t).forEach((a) => {
|
|
6634
|
-
|
|
6885
|
+
bt[a] && (e[a] = bt[a](e[a], t[a]));
|
|
6635
6886
|
}), l;
|
|
6636
|
-
},
|
|
6637
|
-
if (Object.keys(
|
|
6887
|
+
}, _e = {}, uo = () => {
|
|
6888
|
+
if (Object.keys(_e).length > 0)
|
|
6638
6889
|
return;
|
|
6639
6890
|
const e = /* @__PURE__ */ Object.assign({
|
|
6640
|
-
"/src/components/remotePages/configs/i18n/i18n-language_project.ts":
|
|
6641
|
-
"/src/components/remotePages/configs/permission/permission-apiurl-2.ts":
|
|
6642
|
-
"/src/components/remotePages/configs/permission/permission-apiurl-config.ts":
|
|
6643
|
-
"/src/components/remotePages/configs/permission/permission-apiurl.ts":
|
|
6644
|
-
"/src/components/remotePages/configs/permission/permission-ding_appinfo.ts":
|
|
6645
|
-
"/src/components/remotePages/configs/permission/permission-menu-config.ts":
|
|
6646
|
-
"/src/components/remotePages/configs/permission/permission-menu.ts":
|
|
6647
|
-
"/src/components/remotePages/configs/permission/permission-organization-config.ts":
|
|
6648
|
-
"/src/components/remotePages/configs/permission/permission-organization.ts":
|
|
6649
|
-
"/src/components/remotePages/configs/permission/permission-role-config.ts":
|
|
6650
|
-
"/src/components/remotePages/configs/permission/permission-role-manage-config.ts":
|
|
6651
|
-
"/src/components/remotePages/configs/permission/permission-role.ts":
|
|
6652
|
-
"/src/components/remotePages/configs/permission/permission-user-config.ts":
|
|
6653
|
-
"/src/components/remotePages/configs/permission/permission-user.ts":
|
|
6654
|
-
"/src/components/remotePages/configs/permission/role-manage.ts":
|
|
6655
|
-
}), t =
|
|
6891
|
+
"/src/components/remotePages/configs/i18n/i18n-language_project.ts": Jl,
|
|
6892
|
+
"/src/components/remotePages/configs/permission/permission-apiurl-2.ts": Ql,
|
|
6893
|
+
"/src/components/remotePages/configs/permission/permission-apiurl-config.ts": Zl,
|
|
6894
|
+
"/src/components/remotePages/configs/permission/permission-apiurl.ts": ta,
|
|
6895
|
+
"/src/components/remotePages/configs/permission/permission-ding_appinfo.ts": aa,
|
|
6896
|
+
"/src/components/remotePages/configs/permission/permission-menu-config.ts": oa,
|
|
6897
|
+
"/src/components/remotePages/configs/permission/permission-menu.ts": ra,
|
|
6898
|
+
"/src/components/remotePages/configs/permission/permission-organization-config.ts": da,
|
|
6899
|
+
"/src/components/remotePages/configs/permission/permission-organization.ts": fa,
|
|
6900
|
+
"/src/components/remotePages/configs/permission/permission-role-config.ts": Nn,
|
|
6901
|
+
"/src/components/remotePages/configs/permission/permission-role-manage-config.ts": qn,
|
|
6902
|
+
"/src/components/remotePages/configs/permission/permission-role.ts": Rn,
|
|
6903
|
+
"/src/components/remotePages/configs/permission/permission-user-config.ts": Fn,
|
|
6904
|
+
"/src/components/remotePages/configs/permission/permission-user.ts": Gn,
|
|
6905
|
+
"/src/components/remotePages/configs/permission/role-manage.ts": Un
|
|
6906
|
+
}), t = fl("remotePages");
|
|
6656
6907
|
Object.assign(e, t), Object.keys(e).forEach((l) => {
|
|
6657
6908
|
const a = l.split("/"), n = a[a.length - 1].replace(".ts", "");
|
|
6658
|
-
n.endsWith("-config") || (
|
|
6909
|
+
n.endsWith("-config") || (_e[n] = e[l].default);
|
|
6659
6910
|
});
|
|
6660
|
-
},
|
|
6911
|
+
}, vo = async ({
|
|
6661
6912
|
org_id: e,
|
|
6662
6913
|
user_id: t,
|
|
6663
6914
|
app_flag: l,
|
|
6664
6915
|
modalType: a,
|
|
6665
6916
|
sort_fields: n,
|
|
6666
|
-
is_cache:
|
|
6667
|
-
history_id:
|
|
6917
|
+
is_cache: o,
|
|
6918
|
+
history_id: i
|
|
6668
6919
|
}) => {
|
|
6669
|
-
const
|
|
6670
|
-
|
|
6920
|
+
const r = B(), [c, f] = await Promise.all([
|
|
6921
|
+
U(
|
|
6671
6922
|
{
|
|
6672
6923
|
org_id: e,
|
|
6673
6924
|
user_id: t,
|
|
6674
|
-
view_project__flag:
|
|
6925
|
+
view_project__flag: r.VITE_APP_VIEW_PROJECT_FLAG,
|
|
6675
6926
|
view_menu__flag: a,
|
|
6676
|
-
history_id:
|
|
6927
|
+
history_id: i,
|
|
6677
6928
|
sort_fields: n,
|
|
6678
|
-
is_cache:
|
|
6929
|
+
is_cache: o
|
|
6679
6930
|
},
|
|
6680
6931
|
"/view/get_view_settings_for_user"
|
|
6681
6932
|
),
|
|
6682
|
-
|
|
6933
|
+
co({
|
|
6683
6934
|
org_id: e,
|
|
6684
6935
|
app_flag: l,
|
|
6685
6936
|
modalType: a,
|
|
6686
|
-
history_id:
|
|
6937
|
+
history_id: i
|
|
6687
6938
|
})
|
|
6688
6939
|
]);
|
|
6689
6940
|
return {
|
|
6690
6941
|
...c,
|
|
6691
|
-
defaultAndServerConfig:
|
|
6942
|
+
defaultAndServerConfig: f
|
|
6692
6943
|
};
|
|
6693
|
-
},
|
|
6944
|
+
}, co = async ({
|
|
6694
6945
|
org_id: e,
|
|
6695
6946
|
app_flag: t,
|
|
6696
6947
|
modalType: l,
|
|
6697
6948
|
history_id: a
|
|
6698
6949
|
}) => {
|
|
6699
|
-
const n = l.split("-")[1],
|
|
6950
|
+
const n = B(), o = l.split("-")[1], r = {
|
|
6700
6951
|
flag: l + "_config",
|
|
6701
6952
|
org_id: e
|
|
6702
6953
|
};
|
|
6703
|
-
a && (
|
|
6704
|
-
const
|
|
6954
|
+
a && (r.history_id = a);
|
|
6955
|
+
const c = {
|
|
6705
6956
|
org_id: e,
|
|
6706
|
-
model_name:
|
|
6707
|
-
|
|
6957
|
+
model_name: o,
|
|
6958
|
+
get_i18n_config: !!n.VITE_APP_ENABLE_ZH_EN
|
|
6959
|
+
}, f = {
|
|
6708
6960
|
org_id: e,
|
|
6709
|
-
model_name:
|
|
6710
|
-
api_url: `/${t}/query_${
|
|
6711
|
-
},
|
|
6961
|
+
model_name: o,
|
|
6962
|
+
api_url: `/${t}/query_${o}_list`
|
|
6963
|
+
}, p = {};
|
|
6712
6964
|
if (["permission"].includes(t)) {
|
|
6713
|
-
const
|
|
6714
|
-
|
|
6965
|
+
const g = await U(
|
|
6966
|
+
r,
|
|
6715
6967
|
"/sys/get_global_custom_data_by_flag_without_org_id"
|
|
6716
6968
|
);
|
|
6717
|
-
return
|
|
6969
|
+
return p.defaultConfig = {}, p.override = null, p.serverConfig = g || {}, p;
|
|
6718
6970
|
} else {
|
|
6719
|
-
const [
|
|
6720
|
-
|
|
6721
|
-
|
|
6971
|
+
const [g, m, w] = await Promise.all([
|
|
6972
|
+
U(
|
|
6973
|
+
c,
|
|
6722
6974
|
`/${t}/dev_get_column_config_and_remote_config_json`,
|
|
6723
6975
|
!1,
|
|
6724
6976
|
{
|
|
6725
6977
|
skip_error: !0
|
|
6726
6978
|
}
|
|
6727
6979
|
),
|
|
6728
|
-
|
|
6980
|
+
U(f, `/${t}/override_column_config`, !1, {
|
|
6729
6981
|
skip_error: !0
|
|
6730
6982
|
}),
|
|
6731
|
-
|
|
6983
|
+
U(r, "/sys/get_global_custom_data_by_flag_without_org_id")
|
|
6732
6984
|
]);
|
|
6733
|
-
return
|
|
6985
|
+
return p.defaultConfig = g || {}, p.override = m || {}, p.serverConfig = w || {}, p;
|
|
6734
6986
|
}
|
|
6735
|
-
},
|
|
6736
|
-
var
|
|
6737
|
-
|
|
6738
|
-
const i = n ?
|
|
6739
|
-
let
|
|
6740
|
-
l && i && i.cleanPageConfig(t),
|
|
6741
|
-
const
|
|
6987
|
+
}, Co = (e, t, l, a, n = !0, o = !1) => {
|
|
6988
|
+
var w, C, O, P, A, j, S, u;
|
|
6989
|
+
uo();
|
|
6990
|
+
const i = n ? pl() : null;
|
|
6991
|
+
let r;
|
|
6992
|
+
l && i && i.cleanPageConfig(t), _e[t] == null ? (console.log("remotePages3没有组件:" + t), i && i.setCustomConfig(t, {})) : (r = { ..._e[t](a) }, i && i.setCustomConfig(t, r));
|
|
6993
|
+
const c = T({
|
|
6742
6994
|
title: "",
|
|
6743
6995
|
addModalTitle: "新建",
|
|
6744
6996
|
updateTitle: "修改",
|
|
6745
|
-
is_create:
|
|
6997
|
+
is_create: pe(e + "-" + t.split("-")[1], "create_"),
|
|
6746
6998
|
// 是否有【新建】按钮
|
|
6747
|
-
is_update:
|
|
6999
|
+
is_update: pe(e + "-" + t.split("-")[1], "update_"),
|
|
6748
7000
|
// 是否有【修改】按钮
|
|
6749
|
-
is_remove:
|
|
7001
|
+
is_remove: pe(e + "-" + t.split("-")[1], "delete_"),
|
|
6750
7002
|
// 是否有【删除】按钮
|
|
6751
|
-
is_recover:
|
|
7003
|
+
is_recover: pe(e + "-" + t.split("-")[1], "recover_")
|
|
6752
7004
|
// 是否有【恢复】按钮
|
|
6753
|
-
}),
|
|
6754
|
-
rules:
|
|
7005
|
+
}), f = {
|
|
7006
|
+
rules: T({}),
|
|
6755
7007
|
fields: [],
|
|
6756
7008
|
settings: {},
|
|
6757
|
-
model:
|
|
7009
|
+
model: T({}),
|
|
6758
7010
|
options: {}
|
|
6759
|
-
},
|
|
7011
|
+
}, p = {
|
|
6760
7012
|
is_selection: !1,
|
|
6761
|
-
addData:
|
|
6762
|
-
updateData:
|
|
6763
|
-
recoverData:
|
|
6764
|
-
removeData:
|
|
6765
|
-
countData:
|
|
6766
|
-
queryData:
|
|
6767
|
-
queryConditionGroupData:
|
|
6768
|
-
getData:
|
|
6769
|
-
searchConfig:
|
|
7013
|
+
addData: J(e + "-" + t.split("-")[1], ["create_", ""]),
|
|
7014
|
+
updateData: J(e + "-" + t.split("-")[1], ["update_", ""]),
|
|
7015
|
+
recoverData: J(e + "-" + t.split("-")[1], ["recover_", ""]),
|
|
7016
|
+
removeData: J(e + "-" + t.split("-")[1], ["delete_", ""]),
|
|
7017
|
+
countData: J(e + "-" + t.split("-")[1], ["query_", "_count"]),
|
|
7018
|
+
queryData: J(e + "-" + t.split("-")[1], ["query_", "_list"]),
|
|
7019
|
+
queryConditionGroupData: J(e + "-" + t.split("-")[1], ["query_", "_group"]),
|
|
7020
|
+
getData: J(e + "-" + t.split("-")[1], ["get_", ""]),
|
|
7021
|
+
searchConfig: f,
|
|
6770
7022
|
base_search_condition_config_list: null,
|
|
6771
7023
|
default_search_condition_config_list: null,
|
|
6772
7024
|
condition_group_config_list: null,
|
|
@@ -6782,7 +7034,7 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
6782
7034
|
globalSearch: null,
|
|
6783
7035
|
formModalConfig: null,
|
|
6784
7036
|
updateFormModalConfig: null,
|
|
6785
|
-
titleList:
|
|
7037
|
+
titleList: c,
|
|
6786
7038
|
api_fields: null,
|
|
6787
7039
|
btn_list: null,
|
|
6788
7040
|
head_btn_list: null,
|
|
@@ -6823,32 +7075,33 @@ const pe = () => U().NODE_ENV != "production", kn = () => U().VITE_APP_HAS_PROJE
|
|
|
6823
7075
|
expandFunc: null,
|
|
6824
7076
|
summaryData: null,
|
|
6825
7077
|
summaryType: null,
|
|
6826
|
-
default_column_field: ["is_active"]
|
|
7078
|
+
default_column_field: ["is_active"],
|
|
7079
|
+
i18n: null
|
|
6827
7080
|
};
|
|
6828
7081
|
if (l)
|
|
6829
|
-
Object.assign(
|
|
7082
|
+
Object.assign(p, l.defaultConfig), i && i.setDefaultConfig(t, p);
|
|
6830
7083
|
else {
|
|
6831
|
-
const
|
|
6832
|
-
|
|
7084
|
+
const y = i && i.getDefaultConfig(t);
|
|
7085
|
+
y && Object.assign(p, y);
|
|
6833
7086
|
}
|
|
6834
|
-
const
|
|
6835
|
-
let
|
|
6836
|
-
l ? (
|
|
7087
|
+
const _ = ae.cloneDeep(p);
|
|
7088
|
+
let g = null;
|
|
7089
|
+
l ? (g = l.serverConfig, i && i.setServerConfig(t, g)) : g = i && i.getServerConfig(t), !(g != null && g.default_column_field) && ((w = g == null ? void 0 : g.searchConfig) != null && w.default_column_field) && ((O = (C = g == null ? void 0 : g.searchConfig) == null ? void 0 : C.default_column_field) == null ? void 0 : O.length) > 0 && (g.default_column_field = g.searchConfig.default_column_field), Object.assign(_, g), r && (no(_, r), r != null && r.default_column_field && ((P = r == null ? void 0 : r.default_column_field) == null ? void 0 : P.length) > 0 ? _.default_column_field = r == null ? void 0 : r.default_column_field : (A = r == null ? void 0 : r.searchConfig) != null && A.default_column_field && ((S = (j = r == null ? void 0 : r.searchConfig) == null ? void 0 : j.default_column_field) == null ? void 0 : S.length) > 0 && (_.default_column_field = (u = r == null ? void 0 : r.searchConfig) == null ? void 0 : u.default_column_field));
|
|
6837
7090
|
let m = null;
|
|
6838
|
-
if (l ? (m = l.override, i && m && i.setOverrideConfig(t, m)) : m = i && i.getOverrideConfig(t), m &&
|
|
6839
|
-
const
|
|
7091
|
+
if (l ? (m = l.override, i && m && i.setOverrideConfig(t, m)) : m = i && i.getOverrideConfig(t), m && so(_, m), i && i.setMergedConfig(t, _), _.is_stripe) {
|
|
7092
|
+
const y = (I) => {
|
|
6840
7093
|
let k = 0;
|
|
6841
|
-
const
|
|
6842
|
-
return
|
|
6843
|
-
|
|
6844
|
-
}),
|
|
6845
|
-
},
|
|
6846
|
-
|
|
7094
|
+
const D = {};
|
|
7095
|
+
return I.forEach((K) => {
|
|
7096
|
+
K.color_index0 = 1, (D == null ? void 0 : D[K == null ? void 0 : K[_.is_stripe]]) == null && (D[K[_.is_stripe]] = k, k += 1, K.color_index0 = 0), K.color_index = D[K[_.is_stripe]];
|
|
7097
|
+
}), I;
|
|
7098
|
+
}, d = (I) => I.color_index0 == 1 ? { style: { background: "rgba(85,162,235,0.3)" } } : I.color_index % 2 == 0 ? { style: { background: "#FFFFFE" } } : { style: { background: "#FAFAFA" } };
|
|
7099
|
+
_.processData = y, _.customRow = d;
|
|
6847
7100
|
}
|
|
6848
|
-
return
|
|
7101
|
+
return o ? ao(_, a, t) : _;
|
|
6849
7102
|
};
|
|
6850
7103
|
export {
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
|
|
7104
|
+
co as getDefaultAndServerConfig,
|
|
7105
|
+
Co as getPageConfig,
|
|
7106
|
+
vo as getViewSettingsAndPageConfig
|
|
6854
7107
|
};
|