liyu-pc-base 1.0.106 → 1.0.110
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.
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { reactive as I, createVNode as w, defineComponent as
|
|
2
|
-
import { m as F, q as yl, av as et, aw as bl, a6 as ie, _ as $, a8 as Ne, a5 as vl, H as Pt, i as E, h as
|
|
3
|
-
import { Modal as
|
|
4
|
-
import { n as
|
|
5
|
-
import { ExclamationCircleOutlined as
|
|
6
|
-
import { getApiData as
|
|
7
|
-
import { l as
|
|
8
|
-
import { getApiPermission as
|
|
1
|
+
import { reactive as I, createVNode as w, defineComponent as G, provide as ml, watch as fe, computed as k, onMounted as xt, onUnmounted as _l, Teleport as gl, ref as wt, TransitionGroup as $t, shallowRef as ae, render as Ze, toRaw as hl, watchEffect as qe } from "vue";
|
|
2
|
+
import { m as F, q as yl, av as et, aw as bl, a6 as ie, _ as $, a8 as Ne, a5 as vl, H as Pt, i as E, h as H, a9 as Ot, Q as Cl, g as Tt, e as It, a0 as ee, a1 as St, ad as ye, af as be, ae as ve, ag as Le, ax as Mt, f as Fe, E as xl, ay as wl, az as le, d as $l, L as Pl, aA as $e, aB as tt, u as Ol, aC as Tl, aD as Il, aE as Sl, aF as Ml, aG as At, aH as Al, aI as Vl, aJ as kl, aK as jl, ap as Dl, aq as Kl, aL as El, aM as zl, aN as ql, b as Nl, aO as Ll, aP as Fl, aQ as Rl, aR as Hl, ab as Bl } from "../../modal-tools-de1d8105.js";
|
|
3
|
+
import { Modal as ce, message as R, notification as Y } from "ant-design-vue";
|
|
4
|
+
import { n as J, z, o as W, q as U, A as Gl, B as Ul, x as Wl, C as Jl, D as Xl } from "../../init-plugin-481311d3.js";
|
|
5
|
+
import { ExclamationCircleOutlined as de } from "@ant-design/icons-vue";
|
|
6
|
+
import { getApiData as B } from "../../api/api-model.js";
|
|
7
|
+
import { l as te, c as Ql, g as Yl } from "../../lodash-18e68795.js";
|
|
8
|
+
import { getApiPermission as me, getUrl as Q } from "./utils.js";
|
|
9
9
|
const Zl = () => {
|
|
10
10
|
const e = {
|
|
11
11
|
settings: {
|
|
@@ -289,10 +289,10 @@ const Zl = () => {
|
|
|
289
289
|
default: Zl
|
|
290
290
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
291
291
|
async function ta(e) {
|
|
292
|
-
return
|
|
292
|
+
return J().post("/permission/import_apiurl", e);
|
|
293
293
|
}
|
|
294
294
|
async function lt(e) {
|
|
295
|
-
return
|
|
295
|
+
return J().post("/permission/change_apiurl_auth", e);
|
|
296
296
|
}
|
|
297
297
|
const Vt = [
|
|
298
298
|
{
|
|
@@ -301,9 +301,9 @@ const Vt = [
|
|
|
301
301
|
clazz: "primary",
|
|
302
302
|
is_show: ({ record: e }) => e.is_active && !e.is_auth,
|
|
303
303
|
cb: ({ record: e, current_org: t }) => {
|
|
304
|
-
|
|
304
|
+
ce.confirm({
|
|
305
305
|
title: "是否设为需要授权?",
|
|
306
|
-
icon: w(
|
|
306
|
+
icon: w(de),
|
|
307
307
|
onOk() {
|
|
308
308
|
return new Promise((l) => {
|
|
309
309
|
lt({
|
|
@@ -311,7 +311,7 @@ const Vt = [
|
|
|
311
311
|
apiurl_id: e.id,
|
|
312
312
|
is_auth: !0
|
|
313
313
|
}).then((a) => {
|
|
314
|
-
|
|
314
|
+
R.success("操作成功"), Object.assign(e, a), l(null), z().emit("refresh");
|
|
315
315
|
});
|
|
316
316
|
}).catch(() => console.log("Oops errors!"));
|
|
317
317
|
},
|
|
@@ -326,9 +326,9 @@ const Vt = [
|
|
|
326
326
|
clazz: "primary",
|
|
327
327
|
is_show: ({ record: e }) => e.is_active && e.is_auth,
|
|
328
328
|
cb: ({ record: e, current_org: t }) => {
|
|
329
|
-
|
|
329
|
+
ce.confirm({
|
|
330
330
|
title: "是否设为无需授权?",
|
|
331
|
-
icon: w(
|
|
331
|
+
icon: w(de),
|
|
332
332
|
onOk() {
|
|
333
333
|
return new Promise((l) => {
|
|
334
334
|
lt({
|
|
@@ -336,7 +336,7 @@ const Vt = [
|
|
|
336
336
|
apiurl_id: e.id,
|
|
337
337
|
is_auth: !1
|
|
338
338
|
}).then((a) => {
|
|
339
|
-
|
|
339
|
+
R.success("操作成功"), Object.assign(e, a), l(null), z().emit("refresh");
|
|
340
340
|
});
|
|
341
341
|
}).catch(() => console.log("Oops errors!"));
|
|
342
342
|
},
|
|
@@ -390,7 +390,7 @@ const Vt = [
|
|
|
390
390
|
e.loading = !0, ta({
|
|
391
391
|
...t
|
|
392
392
|
}).then(() => {
|
|
393
|
-
|
|
393
|
+
R.success("导入成功"), l(null);
|
|
394
394
|
}).finally(() => {
|
|
395
395
|
e.loading = !1;
|
|
396
396
|
});
|
|
@@ -687,7 +687,7 @@ const Vt = [
|
|
|
687
687
|
},
|
|
688
688
|
btn_list: Vt,
|
|
689
689
|
head_btn_list: kt,
|
|
690
|
-
event_obj:
|
|
690
|
+
event_obj: z(),
|
|
691
691
|
base_search_condition_config_list: [],
|
|
692
692
|
default_search_condition_config_list: [[]],
|
|
693
693
|
condition_group_config_list: [],
|
|
@@ -1075,17 +1075,17 @@ const Vt = [
|
|
|
1075
1075
|
order: 10
|
|
1076
1076
|
}
|
|
1077
1077
|
];
|
|
1078
|
-
let
|
|
1079
|
-
const
|
|
1080
|
-
if (!
|
|
1081
|
-
const e =
|
|
1078
|
+
let Pe = null;
|
|
1079
|
+
const ge = () => {
|
|
1080
|
+
if (!Pe) {
|
|
1081
|
+
const e = te.cloneDeep(ra), t = Gl();
|
|
1082
1082
|
for (const l of t)
|
|
1083
1083
|
e.push(l);
|
|
1084
|
-
e.sort((l, a) => l.order - a.order),
|
|
1084
|
+
e.sort((l, a) => l.order - a.order), Pe = e;
|
|
1085
1085
|
}
|
|
1086
|
-
return
|
|
1086
|
+
return Pe;
|
|
1087
1087
|
}, sa = (e) => {
|
|
1088
|
-
const t =
|
|
1088
|
+
const t = ge(), l = t.find((a) => a.value === e);
|
|
1089
1089
|
return l || t.find((a) => a.value === null);
|
|
1090
1090
|
}, jt = [
|
|
1091
1091
|
{
|
|
@@ -1095,7 +1095,7 @@ const me = () => {
|
|
|
1095
1095
|
is_show: ({ record: e }) => e.is_active,
|
|
1096
1096
|
cb: ({ record: e }) => {
|
|
1097
1097
|
var f, _, h, b;
|
|
1098
|
-
const t =
|
|
1098
|
+
const t = W(), l = [], a = [];
|
|
1099
1099
|
e.org_id_list && e.org_id_list.length > 0 && e.org_id_list.forEach((m) => {
|
|
1100
1100
|
l.push(m.id);
|
|
1101
1101
|
}), e.url_id_list && e.url_id_list.length > 0 && e.url_id_list.forEach((m) => {
|
|
@@ -1410,36 +1410,36 @@ const me = () => {
|
|
|
1410
1410
|
{ name: "菜单分组", value: 1 },
|
|
1411
1411
|
{ name: "按钮", value: 2 }
|
|
1412
1412
|
],
|
|
1413
|
-
component_type:
|
|
1413
|
+
component_type: ge()
|
|
1414
1414
|
}
|
|
1415
1415
|
},
|
|
1416
1416
|
ok: (m) => new Promise((x) => {
|
|
1417
|
-
var C, p,
|
|
1418
|
-
let
|
|
1419
|
-
m.org_ids && m.org_ids.length > 0 && (
|
|
1417
|
+
var C, p, O;
|
|
1418
|
+
let T = "", P = "";
|
|
1419
|
+
m.org_ids && m.org_ids.length > 0 && (T = m.org_ids.join(",")), m.url_ids && m.url_ids.length > 0 && (P = m.url_ids.join(","));
|
|
1420
1420
|
let M = m.state;
|
|
1421
1421
|
m.suffix && (M = M + "-" + m.suffix);
|
|
1422
1422
|
let j = null, S = null;
|
|
1423
1423
|
if (m.type == 0 && m.state && ((C = m.state) != null && C.split("-")) && ((p = m.state) == null ? void 0 : p.split("-").length) != 2) {
|
|
1424
|
-
|
|
1424
|
+
Y.info({
|
|
1425
1425
|
message: "温馨提示",
|
|
1426
1426
|
description: "路由 格式不正确!应为 <app_flag>-<model_name>"
|
|
1427
1427
|
});
|
|
1428
1428
|
return;
|
|
1429
1429
|
} else
|
|
1430
|
-
m.type == 2 ? (j = null, S = null) : (j = "/" + ((
|
|
1430
|
+
m.type == 2 ? (j = null, S = null) : (j = "/" + ((O = m.state) == null ? void 0 : O.split("-")[0]) + "/" + M, S = M);
|
|
1431
1431
|
if (e.state == M && (j = null, S = null), m.type == 0 && m.component_type !== null && (m.component = m.component_type), m.type == 0 && !m.component) {
|
|
1432
|
-
|
|
1432
|
+
Y.info({
|
|
1433
1433
|
message: "温馨提示",
|
|
1434
1434
|
description: "请填写组件地址!"
|
|
1435
1435
|
});
|
|
1436
1436
|
return;
|
|
1437
1437
|
}
|
|
1438
1438
|
const c = m.type != 2;
|
|
1439
|
-
d.loading = !0,
|
|
1439
|
+
d.loading = !0, B(
|
|
1440
1440
|
{
|
|
1441
1441
|
...m,
|
|
1442
|
-
org_ids:
|
|
1442
|
+
org_ids: T,
|
|
1443
1443
|
is_menu: c,
|
|
1444
1444
|
state: M,
|
|
1445
1445
|
menu_name: S,
|
|
@@ -1448,7 +1448,7 @@ const me = () => {
|
|
|
1448
1448
|
},
|
|
1449
1449
|
"/permission/update_menu"
|
|
1450
1450
|
).then(() => {
|
|
1451
|
-
|
|
1451
|
+
R.success("修改成功"), z().emit("refresh"), x(null);
|
|
1452
1452
|
}).finally(() => {
|
|
1453
1453
|
d.loading = !1;
|
|
1454
1454
|
});
|
|
@@ -1477,12 +1477,12 @@ const me = () => {
|
|
|
1477
1477
|
name: "新建子菜单",
|
|
1478
1478
|
clazz: "primary",
|
|
1479
1479
|
cb: ({ record: e }) => {
|
|
1480
|
-
const t =
|
|
1480
|
+
const t = W(), l = [];
|
|
1481
1481
|
e.org_id_list && e.org_id_list.length > 0 && e.org_id_list.forEach((o) => {
|
|
1482
1482
|
l.push(o.id);
|
|
1483
1483
|
});
|
|
1484
1484
|
const a = [];
|
|
1485
|
-
|
|
1485
|
+
B(
|
|
1486
1486
|
{
|
|
1487
1487
|
is_active: !0,
|
|
1488
1488
|
pageSize: 2e3
|
|
@@ -1855,7 +1855,7 @@ const me = () => {
|
|
|
1855
1855
|
{ name: "菜单分组", value: 1 },
|
|
1856
1856
|
{ name: "按钮", value: 2 }
|
|
1857
1857
|
],
|
|
1858
|
-
component_type:
|
|
1858
|
+
component_type: ge(),
|
|
1859
1859
|
org_type: [
|
|
1860
1860
|
{ name: "全部", value: 0 },
|
|
1861
1861
|
{ name: "自定义", value: 1 }
|
|
@@ -1874,7 +1874,7 @@ const me = () => {
|
|
|
1874
1874
|
o.suffix && (d = d + "-" + o.suffix);
|
|
1875
1875
|
let f, _;
|
|
1876
1876
|
if (o.type == 0 && o.state && ((b = o.state) != null && b.split("-")) && ((m = o.state) == null ? void 0 : m.split("-").length) != 2) {
|
|
1877
|
-
|
|
1877
|
+
Y.info({
|
|
1878
1878
|
message: "温馨提示",
|
|
1879
1879
|
description: "路由 格式不正确!应为 <app_flag>-<model_name>"
|
|
1880
1880
|
});
|
|
@@ -1882,15 +1882,15 @@ const me = () => {
|
|
|
1882
1882
|
} else
|
|
1883
1883
|
o.type == 2 ? (f = null, _ = null) : (f = "/" + ((x = o.state) == null ? void 0 : x.split("-")[0]) + "/" + d, _ = d);
|
|
1884
1884
|
if (o.type == 0 && o.component_type !== null && (o.component = o.component_type), o.type == 0 && !o.component) {
|
|
1885
|
-
|
|
1885
|
+
Y.info({
|
|
1886
1886
|
message: "温馨提示",
|
|
1887
1887
|
description: "请填写组件地址!"
|
|
1888
1888
|
});
|
|
1889
1889
|
return;
|
|
1890
1890
|
}
|
|
1891
1891
|
const h = o.type != 2;
|
|
1892
|
-
i.loading = !0, o.is_all_org ? yl().then((
|
|
1893
|
-
u =
|
|
1892
|
+
i.loading = !0, o.is_all_org ? yl().then((T) => {
|
|
1893
|
+
u = T.data.map((P) => P.id).join(","), et({
|
|
1894
1894
|
...o,
|
|
1895
1895
|
org_ids: u,
|
|
1896
1896
|
url_ids: s,
|
|
@@ -1899,7 +1899,7 @@ const me = () => {
|
|
|
1899
1899
|
menu_path: f,
|
|
1900
1900
|
is_menu: h
|
|
1901
1901
|
}).then(() => {
|
|
1902
|
-
|
|
1902
|
+
R.success("新增菜单成功"), z().emit("refresh");
|
|
1903
1903
|
}).finally(() => {
|
|
1904
1904
|
i.loading = !1;
|
|
1905
1905
|
});
|
|
@@ -1912,7 +1912,7 @@ const me = () => {
|
|
|
1912
1912
|
menu_path: f,
|
|
1913
1913
|
is_menu: h
|
|
1914
1914
|
}).then(() => {
|
|
1915
|
-
|
|
1915
|
+
R.success("新增菜单成功"), z().emit("refresh");
|
|
1916
1916
|
}).finally(() => {
|
|
1917
1917
|
i.loading = !1;
|
|
1918
1918
|
});
|
|
@@ -1997,31 +1997,13 @@ const me = () => {
|
|
|
1997
1997
|
], ua = {
|
|
1998
1998
|
creatCol: [],
|
|
1999
1999
|
updateCol: []
|
|
2000
|
-
},
|
|
2001
|
-
// {
|
|
2002
|
-
// name: '批量新建按钮',
|
|
2003
|
-
// clazz: 'primary',
|
|
2004
|
-
// authority: 'permissi-menu/batch_create_button',
|
|
2005
|
-
// urls: [
|
|
2006
|
-
// '/org/query_org_for_login_list',
|
|
2007
|
-
// '/permission/update_multi_menus_by_json',
|
|
2008
|
-
// '/permission/query_apiurl_list',
|
|
2009
|
-
// '/sys/query_all_global_custom_data_by_flags_list_without_org_id',
|
|
2010
|
-
// ],
|
|
2011
|
-
// model_kind: 'custom_component',
|
|
2012
|
-
// model_config: {
|
|
2013
|
-
// component: 'PermissionBatchCreate',
|
|
2014
|
-
// },
|
|
2015
|
-
// is_disabled: ({ dataSource }: { dataSource: any[] }) => {
|
|
2016
|
-
// return !dataSource || dataSource.length === 0;
|
|
2017
|
-
// },
|
|
2018
|
-
// },
|
|
2000
|
+
}, Dt = [
|
|
2019
2001
|
{
|
|
2020
2002
|
name: "新建菜单",
|
|
2021
2003
|
clazz: "primary",
|
|
2022
2004
|
cb: () => {
|
|
2023
|
-
const e =
|
|
2024
|
-
|
|
2005
|
+
const e = U(), t = W(), l = e.currentOrg, a = [];
|
|
2006
|
+
B(
|
|
2025
2007
|
{
|
|
2026
2008
|
org_id: l == null ? void 0 : l.org_id,
|
|
2027
2009
|
is_active: !0,
|
|
@@ -2396,7 +2378,7 @@ const me = () => {
|
|
|
2396
2378
|
{ name: "菜单分组", value: 1 },
|
|
2397
2379
|
{ name: "按钮", value: 2 }
|
|
2398
2380
|
],
|
|
2399
|
-
component_type:
|
|
2381
|
+
component_type: ge(),
|
|
2400
2382
|
org_type: [
|
|
2401
2383
|
{ name: "全部", value: 0 },
|
|
2402
2384
|
{ name: "自定义", value: 1 }
|
|
@@ -2408,29 +2390,29 @@ const me = () => {
|
|
|
2408
2390
|
}
|
|
2409
2391
|
},
|
|
2410
2392
|
ok: (o) => new Promise((u) => {
|
|
2411
|
-
var m, x,
|
|
2393
|
+
var m, x, T;
|
|
2412
2394
|
let s = "", d = "";
|
|
2413
2395
|
o.org_ids && o.org_ids.length > 0 && (s = o.org_ids.join(",")), o.org_type == 0 && (s = a.join(",")), o.url_ids && o.url_ids.length > 0 && (d = o.url_ids.join(","));
|
|
2414
2396
|
let f = o.state;
|
|
2415
2397
|
o.suffix && (f = f + "-" + o.suffix);
|
|
2416
2398
|
let _, h;
|
|
2417
2399
|
if (o.type == 0 && o.state && ((m = o.state) != null && m.split("-")) && ((x = o.state) == null ? void 0 : x.split("-").length) != 2) {
|
|
2418
|
-
|
|
2400
|
+
Y.info({
|
|
2419
2401
|
message: "温馨提示",
|
|
2420
2402
|
description: "路由 格式不正确!应为 <app_flag>-<model_name>"
|
|
2421
2403
|
});
|
|
2422
2404
|
return;
|
|
2423
2405
|
} else
|
|
2424
|
-
o.type == 2 ? (_ = null, h = null) : (_ = "/" + ((
|
|
2406
|
+
o.type == 2 ? (_ = null, h = null) : (_ = "/" + ((T = o.state) == null ? void 0 : T.split("-")[0]) + "/" + f, h = f);
|
|
2425
2407
|
if (o.type == 0 && o.component_type !== null && (o.component = o.component_type), o.type == 0 && !o.component) {
|
|
2426
|
-
|
|
2408
|
+
Y.info({
|
|
2427
2409
|
message: "温馨提示",
|
|
2428
2410
|
description: "请填写组件地址!"
|
|
2429
2411
|
});
|
|
2430
2412
|
return;
|
|
2431
2413
|
}
|
|
2432
2414
|
const b = o.type != 2;
|
|
2433
|
-
i.loading = !0,
|
|
2415
|
+
i.loading = !0, B(
|
|
2434
2416
|
{
|
|
2435
2417
|
...o,
|
|
2436
2418
|
org_id: l.id,
|
|
@@ -2443,7 +2425,7 @@ const me = () => {
|
|
|
2443
2425
|
},
|
|
2444
2426
|
"/permission/create_menu"
|
|
2445
2427
|
).then(() => {
|
|
2446
|
-
|
|
2428
|
+
R.success("创建成功"), z().emit("refresh"), u(null);
|
|
2447
2429
|
}).finally(() => {
|
|
2448
2430
|
i.loading = !1;
|
|
2449
2431
|
});
|
|
@@ -2466,6 +2448,84 @@ const me = () => {
|
|
|
2466
2448
|
}), F(i);
|
|
2467
2449
|
}
|
|
2468
2450
|
},
|
|
2451
|
+
{
|
|
2452
|
+
name: "批量删除",
|
|
2453
|
+
clazz: "primary",
|
|
2454
|
+
authority: "permission/batch_delete_menu",
|
|
2455
|
+
urls: [
|
|
2456
|
+
"permission/batch_delete_menu"
|
|
2457
|
+
],
|
|
2458
|
+
cb: ({ selectedRowKeys: e }) => {
|
|
2459
|
+
if (!e || e.length <= 0) {
|
|
2460
|
+
Y.info({
|
|
2461
|
+
message: "温馨提示",
|
|
2462
|
+
description: "请选择要操作的数据"
|
|
2463
|
+
});
|
|
2464
|
+
return;
|
|
2465
|
+
}
|
|
2466
|
+
const l = U().currentOrg;
|
|
2467
|
+
ce.confirm({
|
|
2468
|
+
title: () => "是否批量删除已选中数据",
|
|
2469
|
+
icon: () => w(de),
|
|
2470
|
+
onOk() {
|
|
2471
|
+
return new Promise((a) => {
|
|
2472
|
+
B(
|
|
2473
|
+
{
|
|
2474
|
+
org_id: l.id,
|
|
2475
|
+
menu_id: e
|
|
2476
|
+
},
|
|
2477
|
+
"/permission/batch_delete_menu"
|
|
2478
|
+
).then((n) => {
|
|
2479
|
+
R.success("成功删除" + n.count + "条数据"), z().emit("refresh");
|
|
2480
|
+
}).finally(() => {
|
|
2481
|
+
a(null);
|
|
2482
|
+
});
|
|
2483
|
+
}).catch(() => console.log("Oops errors!"));
|
|
2484
|
+
},
|
|
2485
|
+
onCancel() {
|
|
2486
|
+
}
|
|
2487
|
+
});
|
|
2488
|
+
}
|
|
2489
|
+
},
|
|
2490
|
+
{
|
|
2491
|
+
name: "批量恢复",
|
|
2492
|
+
clazz: "primary",
|
|
2493
|
+
authority: "permission/batch_recover_menu",
|
|
2494
|
+
urls: [
|
|
2495
|
+
"permission/batch_recover_menu"
|
|
2496
|
+
],
|
|
2497
|
+
cb: ({ selectedRowKeys: e }) => {
|
|
2498
|
+
if (!e || e.length <= 0) {
|
|
2499
|
+
Y.info({
|
|
2500
|
+
message: "温馨提示",
|
|
2501
|
+
description: "请选择要操作的数据"
|
|
2502
|
+
});
|
|
2503
|
+
return;
|
|
2504
|
+
}
|
|
2505
|
+
const l = U().currentOrg;
|
|
2506
|
+
ce.confirm({
|
|
2507
|
+
title: () => "是否批量恢复已选中数据",
|
|
2508
|
+
icon: () => w(de),
|
|
2509
|
+
onOk() {
|
|
2510
|
+
return new Promise((a) => {
|
|
2511
|
+
B(
|
|
2512
|
+
{
|
|
2513
|
+
org_id: l.id,
|
|
2514
|
+
menu_id: e
|
|
2515
|
+
},
|
|
2516
|
+
"/permission/batch_recover_menu"
|
|
2517
|
+
).then((n) => {
|
|
2518
|
+
R.success("成功恢复" + n.count + "条数据"), z().emit("refresh");
|
|
2519
|
+
}).finally(() => {
|
|
2520
|
+
a(null);
|
|
2521
|
+
});
|
|
2522
|
+
}).catch(() => console.log("Oops errors!"));
|
|
2523
|
+
},
|
|
2524
|
+
onCancel() {
|
|
2525
|
+
}
|
|
2526
|
+
});
|
|
2527
|
+
}
|
|
2528
|
+
},
|
|
2469
2529
|
{
|
|
2470
2530
|
name: "导出菜单",
|
|
2471
2531
|
clazz: "primary",
|
|
@@ -2478,7 +2538,7 @@ const me = () => {
|
|
|
2478
2538
|
name: "导入完整菜单",
|
|
2479
2539
|
clazz: "primary",
|
|
2480
2540
|
cb: () => {
|
|
2481
|
-
const t =
|
|
2541
|
+
const t = U().currentOrg, l = I({
|
|
2482
2542
|
visible: !0,
|
|
2483
2543
|
loading: !1,
|
|
2484
2544
|
title: "导入菜单",
|
|
@@ -2509,7 +2569,7 @@ const me = () => {
|
|
|
2509
2569
|
options: {},
|
|
2510
2570
|
ok: (a) => (l.loading = !0, new Promise((i) => {
|
|
2511
2571
|
bl(a).then(() => {
|
|
2512
|
-
i(null),
|
|
2572
|
+
i(null), R.success("导入菜单成功");
|
|
2513
2573
|
}).finally(() => {
|
|
2514
2574
|
l.loading = !1;
|
|
2515
2575
|
});
|
|
@@ -2530,9 +2590,9 @@ const me = () => {
|
|
|
2530
2590
|
__proto__: null,
|
|
2531
2591
|
btn_list: jt,
|
|
2532
2592
|
config: ua,
|
|
2533
|
-
head_btn_list:
|
|
2593
|
+
head_btn_list: Dt
|
|
2534
2594
|
}, Symbol.toStringTag, { value: "Module" })), da = () => {
|
|
2535
|
-
const e =
|
|
2595
|
+
const e = W(), l = U().currentOrg, a = {
|
|
2536
2596
|
settings: {
|
|
2537
2597
|
labelAlign: "right",
|
|
2538
2598
|
layout: "inline"
|
|
@@ -2816,8 +2876,8 @@ const me = () => {
|
|
|
2816
2876
|
titleList: n,
|
|
2817
2877
|
api_fields: i,
|
|
2818
2878
|
btn_list: jt,
|
|
2819
|
-
head_btn_list:
|
|
2820
|
-
event_obj:
|
|
2879
|
+
head_btn_list: Dt,
|
|
2880
|
+
event_obj: z(),
|
|
2821
2881
|
is_show_advantage: !1,
|
|
2822
2882
|
is_show_normal_search: !0,
|
|
2823
2883
|
is_only_show_advantage: !1,
|
|
@@ -3203,18 +3263,18 @@ const me = () => {
|
|
|
3203
3263
|
default: fa
|
|
3204
3264
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3205
3265
|
async function _a(e) {
|
|
3206
|
-
return
|
|
3266
|
+
return J().post("/org/create_organization_by_role_template", e);
|
|
3207
3267
|
}
|
|
3208
3268
|
async function ga(e) {
|
|
3209
|
-
return
|
|
3269
|
+
return J().post("/sys/reset_password", e);
|
|
3210
3270
|
}
|
|
3211
3271
|
async function ha(e) {
|
|
3212
|
-
return
|
|
3272
|
+
return J().post("/sys/create_user", e);
|
|
3213
3273
|
}
|
|
3214
3274
|
async function ya(e) {
|
|
3215
|
-
return
|
|
3275
|
+
return J().post("/sys/update_user", e);
|
|
3216
3276
|
}
|
|
3217
|
-
const
|
|
3277
|
+
const Kt = [], Me = {
|
|
3218
3278
|
creatCol: [],
|
|
3219
3279
|
updateCol: []
|
|
3220
3280
|
}, Et = [
|
|
@@ -3274,7 +3334,7 @@ const Dt = [], Me = {
|
|
|
3274
3334
|
e.loading = !0, _a({
|
|
3275
3335
|
...t
|
|
3276
3336
|
}).then(() => {
|
|
3277
|
-
|
|
3337
|
+
R.success("创建新账套成功"), l(null);
|
|
3278
3338
|
}).finally(() => {
|
|
3279
3339
|
e.loading = !1;
|
|
3280
3340
|
});
|
|
@@ -3285,11 +3345,11 @@ const Dt = [], Me = {
|
|
|
3285
3345
|
}
|
|
3286
3346
|
], ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3287
3347
|
__proto__: null,
|
|
3288
|
-
btn_list:
|
|
3348
|
+
btn_list: Kt,
|
|
3289
3349
|
config: Me,
|
|
3290
3350
|
head_btn_list: Et
|
|
3291
3351
|
}, Symbol.toStringTag, { value: "Module" })), va = () => {
|
|
3292
|
-
const t =
|
|
3352
|
+
const t = U().currentOrg, l = {
|
|
3293
3353
|
settings: {
|
|
3294
3354
|
labelAlign: "right",
|
|
3295
3355
|
layout: "inline"
|
|
@@ -3507,9 +3567,9 @@ const Dt = [], Me = {
|
|
|
3507
3567
|
aim_org_id: "id"
|
|
3508
3568
|
}
|
|
3509
3569
|
},
|
|
3510
|
-
btn_list:
|
|
3570
|
+
btn_list: Kt,
|
|
3511
3571
|
head_btn_list: Et,
|
|
3512
|
-
event_obj:
|
|
3572
|
+
event_obj: z(),
|
|
3513
3573
|
base_search_condition_config_list: [],
|
|
3514
3574
|
default_search_condition_config_list: [[]],
|
|
3515
3575
|
condition_group_config_list: [],
|
|
@@ -3550,25 +3610,25 @@ Re.displayName = "CloseOutlined";
|
|
|
3550
3610
|
Re.inheritAttrs = !1;
|
|
3551
3611
|
const He = Re;
|
|
3552
3612
|
var Pa = { 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" };
|
|
3553
|
-
const
|
|
3613
|
+
const Oa = Pa;
|
|
3554
3614
|
function nt(e) {
|
|
3555
3615
|
for (var t = 1; t < arguments.length; t++) {
|
|
3556
3616
|
var l = arguments[t] != null ? Object(arguments[t]) : {}, a = Object.keys(l);
|
|
3557
3617
|
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(l).filter(function(n) {
|
|
3558
3618
|
return Object.getOwnPropertyDescriptor(l, n).enumerable;
|
|
3559
3619
|
}))), a.forEach(function(n) {
|
|
3560
|
-
|
|
3620
|
+
Ta(e, n, l[n]);
|
|
3561
3621
|
});
|
|
3562
3622
|
}
|
|
3563
3623
|
return e;
|
|
3564
3624
|
}
|
|
3565
|
-
function
|
|
3625
|
+
function Ta(e, t, l) {
|
|
3566
3626
|
return t in e ? Object.defineProperty(e, t, { value: l, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = l, e;
|
|
3567
3627
|
}
|
|
3568
3628
|
var Be = function(t, l) {
|
|
3569
3629
|
var a = nt({}, t, l.attrs);
|
|
3570
3630
|
return w(ie, nt({}, a, {
|
|
3571
|
-
icon:
|
|
3631
|
+
icon: Oa
|
|
3572
3632
|
}), null);
|
|
3573
3633
|
};
|
|
3574
3634
|
Be.displayName = "CheckCircleOutlined";
|
|
@@ -3607,12 +3667,12 @@ function it(e) {
|
|
|
3607
3667
|
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(l).filter(function(n) {
|
|
3608
3668
|
return Object.getOwnPropertyDescriptor(l, n).enumerable;
|
|
3609
3669
|
}))), a.forEach(function(n) {
|
|
3610
|
-
|
|
3670
|
+
Da(e, n, l[n]);
|
|
3611
3671
|
});
|
|
3612
3672
|
}
|
|
3613
3673
|
return e;
|
|
3614
3674
|
}
|
|
3615
|
-
function
|
|
3675
|
+
function Da(e, t, l) {
|
|
3616
3676
|
return t in e ? Object.defineProperty(e, t, { value: l, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = l, e;
|
|
3617
3677
|
}
|
|
3618
3678
|
var Ue = function(t, l) {
|
|
@@ -3623,7 +3683,7 @@ var Ue = function(t, l) {
|
|
|
3623
3683
|
};
|
|
3624
3684
|
Ue.displayName = "InfoCircleOutlined";
|
|
3625
3685
|
Ue.inheritAttrs = !1;
|
|
3626
|
-
const
|
|
3686
|
+
const Ka = Ue;
|
|
3627
3687
|
var Ea = { 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" };
|
|
3628
3688
|
const za = Ea;
|
|
3629
3689
|
function rt(e) {
|
|
@@ -3673,12 +3733,12 @@ var Je = function(t, l) {
|
|
|
3673
3733
|
};
|
|
3674
3734
|
Je.displayName = "InfoCircleFilled";
|
|
3675
3735
|
Je.inheritAttrs = !1;
|
|
3676
|
-
const
|
|
3677
|
-
let
|
|
3736
|
+
const Ce = Je;
|
|
3737
|
+
let Oe = $({}, Ne.Modal);
|
|
3678
3738
|
function Ha(e) {
|
|
3679
|
-
e ?
|
|
3739
|
+
e ? Oe = $($({}, Oe), e) : Oe = $({}, Ne.Modal);
|
|
3680
3740
|
}
|
|
3681
|
-
const Ae = "internalMark",
|
|
3741
|
+
const Ae = "internalMark", _e = G({
|
|
3682
3742
|
compatConfig: {
|
|
3683
3743
|
MODE: 3
|
|
3684
3744
|
},
|
|
@@ -3700,7 +3760,7 @@ const Ae = "internalMark", fe = B({
|
|
|
3700
3760
|
}),
|
|
3701
3761
|
ANT_MARK__: Ae
|
|
3702
3762
|
});
|
|
3703
|
-
return ml("localeData", a),
|
|
3763
|
+
return ml("localeData", a), fe(() => e.locale, (n) => {
|
|
3704
3764
|
Ha(n && n.Modal), a.antLocale = $($({}, n), {
|
|
3705
3765
|
exist: !0
|
|
3706
3766
|
});
|
|
@@ -3712,10 +3772,10 @@ const Ae = "internalMark", fe = B({
|
|
|
3712
3772
|
};
|
|
3713
3773
|
}
|
|
3714
3774
|
});
|
|
3715
|
-
|
|
3716
|
-
return e.component(
|
|
3775
|
+
_e.install = function(e) {
|
|
3776
|
+
return e.component(_e.name, _e), e;
|
|
3717
3777
|
};
|
|
3718
|
-
const Ba = vl(
|
|
3778
|
+
const Ba = vl(_e), xe = G({
|
|
3719
3779
|
name: "Notice",
|
|
3720
3780
|
inheritAttrs: !1,
|
|
3721
3781
|
props: ["prefixCls", "duration", "updateMark", "noticeKey", "closeIcon", "closable", "props", "onClick", "onClose", "holder", "visible"],
|
|
@@ -3744,9 +3804,9 @@ const Ba = vl(fe), ve = B({
|
|
|
3744
3804
|
u();
|
|
3745
3805
|
}), _l(() => {
|
|
3746
3806
|
i = !0, s();
|
|
3747
|
-
}),
|
|
3748
|
-
let [b, m, x] = _, [
|
|
3749
|
-
(b !==
|
|
3807
|
+
}), fe([o, () => e.updateMark, () => e.visible], (_, h) => {
|
|
3808
|
+
let [b, m, x] = _, [T, P, M] = h;
|
|
3809
|
+
(b !== T || m !== P || x !== M && M) && f();
|
|
3750
3810
|
}, {
|
|
3751
3811
|
flush: "post"
|
|
3752
3812
|
}), () => {
|
|
@@ -3755,19 +3815,19 @@ const Ba = vl(fe), ve = B({
|
|
|
3755
3815
|
prefixCls: b,
|
|
3756
3816
|
closable: m,
|
|
3757
3817
|
closeIcon: x = (_ = a.closeIcon) === null || _ === void 0 ? void 0 : _.call(a),
|
|
3758
|
-
onClick:
|
|
3818
|
+
onClick: T,
|
|
3759
3819
|
holder: P
|
|
3760
3820
|
} = e, {
|
|
3761
3821
|
class: M,
|
|
3762
3822
|
style: j
|
|
3763
|
-
} = l, S = `${b}-notice`, c = Object.keys(l).reduce((p,
|
|
3764
|
-
class:
|
|
3823
|
+
} = l, S = `${b}-notice`, c = Object.keys(l).reduce((p, O) => ((O.startsWith("data-") || O.startsWith("aria-") || O === "role") && (p[O] = l[O]), p), {}), C = w("div", E({
|
|
3824
|
+
class: H(S, M, {
|
|
3765
3825
|
[`${S}-closable`]: m
|
|
3766
3826
|
}),
|
|
3767
3827
|
style: j,
|
|
3768
3828
|
onMouseenter: s,
|
|
3769
3829
|
onMouseleave: u,
|
|
3770
|
-
onClick:
|
|
3830
|
+
onClick: T
|
|
3771
3831
|
}, c), [w("div", {
|
|
3772
3832
|
class: `${S}-content`
|
|
3773
3833
|
}, [(h = a.default) === null || h === void 0 ? void 0 : h.call(a)]), m ? w("a", {
|
|
@@ -3800,7 +3860,7 @@ function ct() {
|
|
|
3800
3860
|
const e = ut;
|
|
3801
3861
|
return ut += 1, `rcNotification_${Ua}_${e}`;
|
|
3802
3862
|
}
|
|
3803
|
-
const Ve =
|
|
3863
|
+
const Ve = G({
|
|
3804
3864
|
name: "Notification",
|
|
3805
3865
|
inheritAttrs: !1,
|
|
3806
3866
|
props: ["prefixCls", "transitionName", "animation", "maxCount", "closeIcon", "hashId"],
|
|
@@ -3816,20 +3876,20 @@ const Ve = B({
|
|
|
3816
3876
|
animation: _ = "fade"
|
|
3817
3877
|
} = e;
|
|
3818
3878
|
let h = e.transitionName;
|
|
3819
|
-
return !h && _ && (h = `${f}-${_}`),
|
|
3879
|
+
return !h && _ && (h = `${f}-${_}`), Ot(h);
|
|
3820
3880
|
}), s = (f, _) => {
|
|
3821
3881
|
const h = f.key || ct(), b = $($({}, f), {
|
|
3822
3882
|
key: h
|
|
3823
3883
|
}), {
|
|
3824
3884
|
maxCount: m
|
|
3825
|
-
} = e, x = o.value.map((P) => P.notice.key).indexOf(h),
|
|
3826
|
-
x !== -1 ?
|
|
3885
|
+
} = e, x = o.value.map((P) => P.notice.key).indexOf(h), T = o.value.concat();
|
|
3886
|
+
x !== -1 ? T.splice(x, 1, {
|
|
3827
3887
|
notice: b,
|
|
3828
3888
|
holderCallback: _
|
|
3829
|
-
}) : (m && o.value.length >= m && (b.key =
|
|
3889
|
+
}) : (m && o.value.length >= m && (b.key = T[0].notice.key, b.updateMark = ct(), b.userPassKey = h, T.shift()), T.push({
|
|
3830
3890
|
notice: b,
|
|
3831
3891
|
holderCallback: _
|
|
3832
|
-
})), o.value =
|
|
3892
|
+
})), o.value = T;
|
|
3833
3893
|
}, d = (f) => {
|
|
3834
3894
|
o.value = hl(o.value).filter((_) => {
|
|
3835
3895
|
let {
|
|
@@ -3852,12 +3912,12 @@ const Ve = B({
|
|
|
3852
3912
|
closeIcon: h = (f = n.closeIcon) === null || f === void 0 ? void 0 : f.call(n, {
|
|
3853
3913
|
prefixCls: _
|
|
3854
3914
|
})
|
|
3855
|
-
} = e, b = o.value.map((x,
|
|
3915
|
+
} = e, b = o.value.map((x, T) => {
|
|
3856
3916
|
let {
|
|
3857
3917
|
notice: P,
|
|
3858
3918
|
holderCallback: M
|
|
3859
3919
|
} = x;
|
|
3860
|
-
const j =
|
|
3920
|
+
const j = T === o.value.length - 1 ? P.updateMark : void 0, {
|
|
3861
3921
|
key: S,
|
|
3862
3922
|
userPassKey: c
|
|
3863
3923
|
} = P, {
|
|
@@ -3871,20 +3931,20 @@ const Ve = B({
|
|
|
3871
3931
|
key: S,
|
|
3872
3932
|
noticeKey: c || S,
|
|
3873
3933
|
updateMark: j,
|
|
3874
|
-
onClose: (
|
|
3934
|
+
onClose: (O) => {
|
|
3875
3935
|
var V;
|
|
3876
|
-
d(
|
|
3936
|
+
d(O), (V = P.onClose) === null || V === void 0 || V.call(P);
|
|
3877
3937
|
},
|
|
3878
3938
|
onClick: P.onClick
|
|
3879
3939
|
});
|
|
3880
3940
|
return M ? w("div", {
|
|
3881
3941
|
key: S,
|
|
3882
3942
|
class: `${_}-hook-holder`,
|
|
3883
|
-
ref: (
|
|
3884
|
-
typeof S > "u" || (
|
|
3943
|
+
ref: (O) => {
|
|
3944
|
+
typeof S > "u" || (O ? (i.set(S, O), M(O, p)) : i.delete(S));
|
|
3885
3945
|
}
|
|
3886
|
-
}, null) : w(
|
|
3887
|
-
class:
|
|
3946
|
+
}, null) : w(xe, E(E({}, p), {}, {
|
|
3947
|
+
class: H(p.class, e.hashId)
|
|
3888
3948
|
}), {
|
|
3889
3949
|
default: () => [typeof C == "function" ? C({
|
|
3890
3950
|
prefixCls: _
|
|
@@ -3921,12 +3981,12 @@ Ve.newInstance = function(t, l) {
|
|
|
3921
3981
|
useStyle: _
|
|
3922
3982
|
} = a, h = Ga(a, ["name", "getContainer", "appContext", "prefixCls", "rootPrefixCls", "transitionName", "hasTransitionName", "useStyle"]), b = document.createElement("div");
|
|
3923
3983
|
i ? i().appendChild(b) : document.body.appendChild(b);
|
|
3924
|
-
const m =
|
|
3984
|
+
const m = G({
|
|
3925
3985
|
compatConfig: {
|
|
3926
3986
|
MODE: 3
|
|
3927
3987
|
},
|
|
3928
3988
|
name: "NotificationWrapper",
|
|
3929
|
-
setup(
|
|
3989
|
+
setup(T, P) {
|
|
3930
3990
|
let {
|
|
3931
3991
|
attrs: M
|
|
3932
3992
|
} = P;
|
|
@@ -3947,7 +4007,7 @@ Ve.newInstance = function(t, l) {
|
|
|
3947
4007
|
component: j
|
|
3948
4008
|
});
|
|
3949
4009
|
}), () => {
|
|
3950
|
-
const C = N, p = C.getRootPrefixCls(s, S.value),
|
|
4010
|
+
const C = N, p = C.getRootPrefixCls(s, S.value), O = f ? d : `${S.value}-${d}`;
|
|
3951
4011
|
return w(Rn, E(E({}, C), {}, {
|
|
3952
4012
|
prefixCls: p
|
|
3953
4013
|
}), {
|
|
@@ -3955,7 +4015,7 @@ Ve.newInstance = function(t, l) {
|
|
|
3955
4015
|
ref: j
|
|
3956
4016
|
}, M), {}, {
|
|
3957
4017
|
prefixCls: S.value,
|
|
3958
|
-
transitionName:
|
|
4018
|
+
transitionName: O,
|
|
3959
4019
|
hashId: c.value
|
|
3960
4020
|
}), null)]
|
|
3961
4021
|
});
|
|
@@ -3971,7 +4031,7 @@ function pt() {
|
|
|
3971
4031
|
const e = dt;
|
|
3972
4032
|
return dt += 1, `rcNotification_${Wa}_${e}`;
|
|
3973
4033
|
}
|
|
3974
|
-
const Ja =
|
|
4034
|
+
const Ja = G({
|
|
3975
4035
|
name: "HookNotification",
|
|
3976
4036
|
inheritAttrs: !1,
|
|
3977
4037
|
props: ["prefixCls", "transitionName", "animation", "maxCount", "closeIcon", "hashId", "remove", "notices", "getStyles", "getClassName", "onAllRemoved", "getContainer"],
|
|
@@ -3997,9 +4057,9 @@ const Ja = B({
|
|
|
3997
4057
|
f = `${e.prefixCls}-fade`;
|
|
3998
4058
|
break;
|
|
3999
4059
|
}
|
|
4000
|
-
return
|
|
4060
|
+
return Ot(f);
|
|
4001
4061
|
}), u = (f) => e.remove(f), s = wt({});
|
|
4002
|
-
|
|
4062
|
+
fe(i, () => {
|
|
4003
4063
|
const f = {};
|
|
4004
4064
|
Object.keys(s.value).forEach((_) => {
|
|
4005
4065
|
f[_] = [];
|
|
@@ -4019,13 +4079,13 @@ const Ja = B({
|
|
|
4019
4079
|
prefixCls: _
|
|
4020
4080
|
})
|
|
4021
4081
|
} = e, b = d.value.map((m) => {
|
|
4022
|
-
var x,
|
|
4023
|
-
const P = s.value[m], M = (x = e.getClassName) === null || x === void 0 ? void 0 : x.call(e, m), j = (
|
|
4082
|
+
var x, T;
|
|
4083
|
+
const P = s.value[m], M = (x = e.getClassName) === null || x === void 0 ? void 0 : x.call(e, m), j = (T = e.getStyles) === null || T === void 0 ? void 0 : T.call(e, m), S = P.map((p, O) => {
|
|
4024
4084
|
let {
|
|
4025
4085
|
notice: V,
|
|
4026
|
-
holderCallback:
|
|
4086
|
+
holderCallback: D
|
|
4027
4087
|
} = p;
|
|
4028
|
-
const
|
|
4088
|
+
const K = O === i.value.length - 1 ? V.updateMark : void 0, {
|
|
4029
4089
|
key: g,
|
|
4030
4090
|
userPassKey: y
|
|
4031
4091
|
} = V, {
|
|
@@ -4038,21 +4098,21 @@ const Ja = B({
|
|
|
4038
4098
|
}, V), V.props), {
|
|
4039
4099
|
key: g,
|
|
4040
4100
|
noticeKey: y || g,
|
|
4041
|
-
updateMark:
|
|
4101
|
+
updateMark: K,
|
|
4042
4102
|
onClose: (A) => {
|
|
4043
|
-
var
|
|
4044
|
-
u(A), (
|
|
4103
|
+
var q;
|
|
4104
|
+
u(A), (q = V.onClose) === null || q === void 0 || q.call(V);
|
|
4045
4105
|
},
|
|
4046
4106
|
onClick: V.onClick
|
|
4047
4107
|
});
|
|
4048
|
-
return
|
|
4108
|
+
return D ? w("div", {
|
|
4049
4109
|
key: g,
|
|
4050
4110
|
class: `${_}-hook-holder`,
|
|
4051
4111
|
ref: (A) => {
|
|
4052
|
-
typeof g > "u" || (A ? (n.set(g, A),
|
|
4112
|
+
typeof g > "u" || (A ? (n.set(g, A), D(A, r)) : n.delete(g));
|
|
4053
4113
|
}
|
|
4054
|
-
}, null) : w(
|
|
4055
|
-
class:
|
|
4114
|
+
}, null) : w(xe, E(E({}, r), {}, {
|
|
4115
|
+
class: H(r.class, e.hashId)
|
|
4056
4116
|
}), {
|
|
4057
4117
|
default: () => [typeof v == "function" ? v({
|
|
4058
4118
|
prefixCls: _
|
|
@@ -4159,7 +4219,7 @@ function qt() {
|
|
|
4159
4219
|
hashId: e.hashId,
|
|
4160
4220
|
onAllRemoved: u,
|
|
4161
4221
|
getContainer: t
|
|
4162
|
-
}, null), x = ae([]),
|
|
4222
|
+
}, null), x = ae([]), T = {
|
|
4163
4223
|
open: (P) => {
|
|
4164
4224
|
const M = Za(s, P);
|
|
4165
4225
|
(M.key === null || M.key === void 0) && (M.key = `vc-notification-${ft}`, ft += 1), x.value = [...x.value, {
|
|
@@ -4179,7 +4239,7 @@ function qt() {
|
|
|
4179
4239
|
}];
|
|
4180
4240
|
}
|
|
4181
4241
|
};
|
|
4182
|
-
return
|
|
4242
|
+
return fe(x, () => {
|
|
4183
4243
|
x.value.length && (x.value.forEach((P) => {
|
|
4184
4244
|
switch (P.type) {
|
|
4185
4245
|
case "open":
|
|
@@ -4193,7 +4253,7 @@ function qt() {
|
|
|
4193
4253
|
break;
|
|
4194
4254
|
}
|
|
4195
4255
|
}), x.value = []);
|
|
4196
|
-
}), [
|
|
4256
|
+
}), [T, m];
|
|
4197
4257
|
}
|
|
4198
4258
|
const en = (e) => {
|
|
4199
4259
|
const {
|
|
@@ -4213,8 +4273,8 @@ const en = (e) => {
|
|
|
4213
4273
|
borderRadiusLG: m,
|
|
4214
4274
|
zIndexPopup: x,
|
|
4215
4275
|
// Custom token
|
|
4216
|
-
messageNoticeContentPadding:
|
|
4217
|
-
} = e, P = new
|
|
4276
|
+
messageNoticeContentPadding: T
|
|
4277
|
+
} = e, P = new ee("MessageMoveIn", {
|
|
4218
4278
|
"0%": {
|
|
4219
4279
|
padding: 0,
|
|
4220
4280
|
transform: "translateY(-100%)",
|
|
@@ -4225,7 +4285,7 @@ const en = (e) => {
|
|
|
4225
4285
|
transform: "translateY(0)",
|
|
4226
4286
|
opacity: 1
|
|
4227
4287
|
}
|
|
4228
|
-
}), M = new
|
|
4288
|
+
}), M = new ee("MessageMoveOut", {
|
|
4229
4289
|
"0%": {
|
|
4230
4290
|
maxHeight: e.height,
|
|
4231
4291
|
padding: b,
|
|
@@ -4295,7 +4355,7 @@ const en = (e) => {
|
|
|
4295
4355
|
},
|
|
4296
4356
|
[`${t}-notice-content`]: {
|
|
4297
4357
|
display: "inline-block",
|
|
4298
|
-
padding:
|
|
4358
|
+
padding: T,
|
|
4299
4359
|
background: n,
|
|
4300
4360
|
borderRadius: m,
|
|
4301
4361
|
boxShadow: a,
|
|
@@ -4325,7 +4385,7 @@ const en = (e) => {
|
|
|
4325
4385
|
}
|
|
4326
4386
|
}
|
|
4327
4387
|
];
|
|
4328
|
-
}, Xe =
|
|
4388
|
+
}, Xe = Tt("Message", (e) => {
|
|
4329
4389
|
const t = It(e, {
|
|
4330
4390
|
messageNoticeContentPadding: `${(e.controlHeightLG - e.fontSize * e.lineHeight) / 2}px ${e.paddingSM}px`
|
|
4331
4391
|
});
|
|
@@ -4334,12 +4394,12 @@ const en = (e) => {
|
|
|
4334
4394
|
height: 150,
|
|
4335
4395
|
zIndexPopup: e.zIndexPopupBase + 10
|
|
4336
4396
|
})), tn = {
|
|
4337
|
-
info: w(
|
|
4338
|
-
success: w(
|
|
4339
|
-
error: w(
|
|
4340
|
-
warning: w(
|
|
4397
|
+
info: w(Ce, null, null),
|
|
4398
|
+
success: w(ye, null, null),
|
|
4399
|
+
error: w(be, null, null),
|
|
4400
|
+
warning: w(ve, null, null),
|
|
4341
4401
|
loading: w(Le, null, null)
|
|
4342
|
-
}, Nt =
|
|
4402
|
+
}, Nt = G({
|
|
4343
4403
|
name: "PureContent",
|
|
4344
4404
|
inheritAttrs: !1,
|
|
4345
4405
|
props: ["prefixCls", "type", "icon"],
|
|
@@ -4350,12 +4410,12 @@ const en = (e) => {
|
|
|
4350
4410
|
return () => {
|
|
4351
4411
|
var a;
|
|
4352
4412
|
return w("div", {
|
|
4353
|
-
class:
|
|
4413
|
+
class: H(`${e.prefixCls}-custom-content`, `${e.prefixCls}-${e.type}`)
|
|
4354
4414
|
}, [e.icon || tn[e.type], w("span", null, [(a = l.default) === null || a === void 0 ? void 0 : a.call(l)])]);
|
|
4355
4415
|
};
|
|
4356
4416
|
}
|
|
4357
4417
|
});
|
|
4358
|
-
|
|
4418
|
+
G({
|
|
4359
4419
|
name: "PurePanel",
|
|
4360
4420
|
inheritAttrs: !1,
|
|
4361
4421
|
props: ["prefixCls", "class", "type", "icon", "content"],
|
|
@@ -4368,9 +4428,9 @@ B({
|
|
|
4368
4428
|
const {
|
|
4369
4429
|
getPrefixCls: i
|
|
4370
4430
|
} = Mt(), o = k(() => e.prefixCls || i("message")), [, u] = Xe(o);
|
|
4371
|
-
return w(
|
|
4431
|
+
return w(xe, E(E({}, a), {}, {
|
|
4372
4432
|
prefixCls: o.value,
|
|
4373
|
-
class:
|
|
4433
|
+
class: H(u.value, `${o.value}-notice-pure-panel`),
|
|
4374
4434
|
noticeKey: "pure",
|
|
4375
4435
|
duration: null
|
|
4376
4436
|
}), {
|
|
@@ -4393,7 +4453,7 @@ var ln = globalThis && globalThis.__rest || function(e, t) {
|
|
|
4393
4453
|
t.indexOf(a[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[n]) && (l[a[n]] = e[a[n]]);
|
|
4394
4454
|
return l;
|
|
4395
4455
|
};
|
|
4396
|
-
const an = 8, nn = 3, on =
|
|
4456
|
+
const an = 8, nn = 3, on = G({
|
|
4397
4457
|
name: "Holder",
|
|
4398
4458
|
inheritAttrs: !1,
|
|
4399
4459
|
props: ["top", "prefixCls", "getContainer", "maxCount", "duration", "rtl", "transitionName", "onAllRemoved", "animation", "staticGetContainer"],
|
|
@@ -4407,13 +4467,13 @@ const an = 8, nn = 3, on = B({
|
|
|
4407
4467
|
getPopupContainer: o
|
|
4408
4468
|
} = Fe("message", e), u = k(() => i("message", e.prefixCls)), [, s] = Xe(u), d = () => {
|
|
4409
4469
|
var x;
|
|
4410
|
-
const
|
|
4470
|
+
const T = (x = e.top) !== null && x !== void 0 ? x : an;
|
|
4411
4471
|
return {
|
|
4412
4472
|
left: "50%",
|
|
4413
4473
|
transform: "translateX(-50%)",
|
|
4414
|
-
top: typeof
|
|
4474
|
+
top: typeof T == "number" ? `${T}px` : T
|
|
4415
4475
|
};
|
|
4416
|
-
}, f = () =>
|
|
4476
|
+
}, f = () => H(s.value, e.rtl ? `${u.value}-rtl` : ""), _ = () => {
|
|
4417
4477
|
var x;
|
|
4418
4478
|
return xl({
|
|
4419
4479
|
prefixCls: u.value,
|
|
@@ -4463,11 +4523,11 @@ function rn(e) {
|
|
|
4463
4523
|
content: b,
|
|
4464
4524
|
icon: m,
|
|
4465
4525
|
type: x,
|
|
4466
|
-
key:
|
|
4526
|
+
key: T,
|
|
4467
4527
|
class: P,
|
|
4468
4528
|
onClose: M
|
|
4469
4529
|
} = s, j = ln(s, ["content", "icon", "type", "key", "class", "onClose"]);
|
|
4470
|
-
let S =
|
|
4530
|
+
let S = T;
|
|
4471
4531
|
return S == null && (mt += 1, S = `antd-message-${mt}`), wl((c) => (d($($({}, j), {
|
|
4472
4532
|
key: S,
|
|
4473
4533
|
content: () => w(Nt, {
|
|
@@ -4479,7 +4539,7 @@ function rn(e) {
|
|
|
4479
4539
|
}),
|
|
4480
4540
|
placement: "top",
|
|
4481
4541
|
// @ts-ignore
|
|
4482
|
-
class:
|
|
4542
|
+
class: H(x && `${h}-${x}`, _, P),
|
|
4483
4543
|
onClose: () => {
|
|
4484
4544
|
M == null || M(), c();
|
|
4485
4545
|
}
|
|
@@ -4501,13 +4561,13 @@ function rn(e) {
|
|
|
4501
4561
|
};
|
|
4502
4562
|
let m, x;
|
|
4503
4563
|
typeof _ == "function" ? x = _ : (m = _, x = h);
|
|
4504
|
-
const
|
|
4564
|
+
const T = $($({
|
|
4505
4565
|
onClose: x,
|
|
4506
4566
|
duration: m
|
|
4507
4567
|
}, b), {
|
|
4508
4568
|
type: s
|
|
4509
4569
|
});
|
|
4510
|
-
return n(
|
|
4570
|
+
return n(T);
|
|
4511
4571
|
};
|
|
4512
4572
|
o[s] = d;
|
|
4513
4573
|
}), [o, () => w(on, E(E({
|
|
@@ -4553,10 +4613,10 @@ function pn(e, t) {
|
|
|
4553
4613
|
});
|
|
4554
4614
|
}
|
|
4555
4615
|
const Jt = {
|
|
4556
|
-
info:
|
|
4557
|
-
success:
|
|
4558
|
-
error:
|
|
4559
|
-
warning:
|
|
4616
|
+
info: Ce,
|
|
4617
|
+
success: ye,
|
|
4618
|
+
error: be,
|
|
4619
|
+
warning: ve,
|
|
4560
4620
|
loading: Le
|
|
4561
4621
|
}, fn = Object.keys(Jt);
|
|
4562
4622
|
function mn(e) {
|
|
@@ -4572,7 +4632,7 @@ function mn(e) {
|
|
|
4572
4632
|
let {
|
|
4573
4633
|
prefixCls: d
|
|
4574
4634
|
} = s;
|
|
4575
|
-
const f = Jt[e.type], _ = f ? w(f, null, null) : "", h =
|
|
4635
|
+
const f = Jt[e.type], _ = f ? w(f, null, null) : "", h = H(`${d}-custom-content`, {
|
|
4576
4636
|
[`${d}-${e.type}`]: e.type,
|
|
4577
4637
|
[`${d}-rtl`]: Wt === !0
|
|
4578
4638
|
});
|
|
@@ -4592,7 +4652,7 @@ function mn(e) {
|
|
|
4592
4652
|
function _n(e) {
|
|
4593
4653
|
return Object.prototype.toString.call(e) === "[object Object]" && !!e.content;
|
|
4594
4654
|
}
|
|
4595
|
-
const
|
|
4655
|
+
const pe = {
|
|
4596
4656
|
open: mn,
|
|
4597
4657
|
config: dn,
|
|
4598
4658
|
destroy(e) {
|
|
@@ -4620,15 +4680,15 @@ function gn(e, t) {
|
|
|
4620
4680
|
onClose: n
|
|
4621
4681
|
}));
|
|
4622
4682
|
}
|
|
4623
|
-
fn.forEach((e) => gn(
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
const re =
|
|
4683
|
+
fn.forEach((e) => gn(pe, e));
|
|
4684
|
+
pe.warn = pe.warning;
|
|
4685
|
+
pe.useMessage = sn;
|
|
4686
|
+
const re = pe, hn = (e) => {
|
|
4627
4687
|
const {
|
|
4628
4688
|
componentCls: t,
|
|
4629
4689
|
width: l,
|
|
4630
4690
|
notificationMarginEdge: a
|
|
4631
|
-
} = e, n = new
|
|
4691
|
+
} = e, n = new ee("antNotificationTopFadeIn", {
|
|
4632
4692
|
"0%": {
|
|
4633
4693
|
marginTop: "-100%",
|
|
4634
4694
|
opacity: 0
|
|
@@ -4637,7 +4697,7 @@ const re = ce, hn = (e) => {
|
|
|
4637
4697
|
marginTop: 0,
|
|
4638
4698
|
opacity: 1
|
|
4639
4699
|
}
|
|
4640
|
-
}), i = new
|
|
4700
|
+
}), i = new ee("antNotificationBottomFadeIn", {
|
|
4641
4701
|
"0%": {
|
|
4642
4702
|
marginBottom: "-100%",
|
|
4643
4703
|
opacity: 0
|
|
@@ -4646,7 +4706,7 @@ const re = ce, hn = (e) => {
|
|
|
4646
4706
|
marginBottom: 0,
|
|
4647
4707
|
opacity: 1
|
|
4648
4708
|
}
|
|
4649
|
-
}), o = new
|
|
4709
|
+
}), o = new ee("antNotificationLeftFadeIn", {
|
|
4650
4710
|
"0%": {
|
|
4651
4711
|
right: {
|
|
4652
4712
|
_skip_check_: !0,
|
|
@@ -4702,12 +4762,12 @@ const re = ce, hn = (e) => {
|
|
|
4702
4762
|
notificationPadding: b,
|
|
4703
4763
|
notificationMarginEdge: m,
|
|
4704
4764
|
motionDurationMid: x,
|
|
4705
|
-
motionEaseInOut:
|
|
4765
|
+
motionEaseInOut: T,
|
|
4706
4766
|
fontSize: P,
|
|
4707
4767
|
lineHeight: M,
|
|
4708
4768
|
width: j,
|
|
4709
4769
|
notificationIconSize: S
|
|
4710
|
-
} = e, c = `${l}-notice`, C = new
|
|
4770
|
+
} = e, c = `${l}-notice`, C = new ee("antNotificationFadeIn", {
|
|
4711
4771
|
"0%": {
|
|
4712
4772
|
left: {
|
|
4713
4773
|
_skip_check_: !0,
|
|
@@ -4722,7 +4782,7 @@ const re = ce, hn = (e) => {
|
|
|
4722
4782
|
},
|
|
4723
4783
|
opacity: 1
|
|
4724
4784
|
}
|
|
4725
|
-
}), p = new
|
|
4785
|
+
}), p = new ee("antNotificationFadeOut", {
|
|
4726
4786
|
"0%": {
|
|
4727
4787
|
maxHeight: e.animationMaxHeight,
|
|
4728
4788
|
marginBottom: i,
|
|
@@ -4760,13 +4820,13 @@ const re = ce, hn = (e) => {
|
|
|
4760
4820
|
// animation
|
|
4761
4821
|
[`${l}-fade-enter, ${l}-fade-appear`]: {
|
|
4762
4822
|
animationDuration: e.motionDurationMid,
|
|
4763
|
-
animationTimingFunction:
|
|
4823
|
+
animationTimingFunction: T,
|
|
4764
4824
|
animationFillMode: "both",
|
|
4765
4825
|
opacity: 0,
|
|
4766
4826
|
animationPlayState: "paused"
|
|
4767
4827
|
},
|
|
4768
4828
|
[`${l}-fade-leave`]: {
|
|
4769
|
-
animationTimingFunction:
|
|
4829
|
+
animationTimingFunction: T,
|
|
4770
4830
|
animationFillMode: "both",
|
|
4771
4831
|
animationDuration: x,
|
|
4772
4832
|
animationPlayState: "paused"
|
|
@@ -4881,7 +4941,7 @@ const re = ce, hn = (e) => {
|
|
|
4881
4941
|
}
|
|
4882
4942
|
}
|
|
4883
4943
|
];
|
|
4884
|
-
}, Qe =
|
|
4944
|
+
}, Qe = Tt("Notification", (e) => {
|
|
4885
4945
|
const t = e.paddingMD, l = e.paddingLG, a = It(e, {
|
|
4886
4946
|
// default.less variables
|
|
4887
4947
|
notificationBg: e.colorBgElevated,
|
|
@@ -4907,12 +4967,12 @@ function Xt(e, t) {
|
|
|
4907
4967
|
class: `${e}-close-icon`
|
|
4908
4968
|
}, null)]);
|
|
4909
4969
|
}
|
|
4910
|
-
w(
|
|
4970
|
+
w(Ce, null, null), w(ye, null, null), w(be, null, null), w(ve, null, null), w(Le, null, null);
|
|
4911
4971
|
const vn = {
|
|
4912
|
-
success:
|
|
4913
|
-
info:
|
|
4914
|
-
error:
|
|
4915
|
-
warning:
|
|
4972
|
+
success: ye,
|
|
4973
|
+
info: Ce,
|
|
4974
|
+
error: be,
|
|
4975
|
+
warning: ve
|
|
4916
4976
|
};
|
|
4917
4977
|
function Qt(e) {
|
|
4918
4978
|
let {
|
|
@@ -4926,7 +4986,7 @@ function Qt(e) {
|
|
|
4926
4986
|
if (l)
|
|
4927
4987
|
u = w("span", {
|
|
4928
4988
|
class: `${t}-icon`
|
|
4929
|
-
}, [
|
|
4989
|
+
}, [le(l)]);
|
|
4930
4990
|
else if (a) {
|
|
4931
4991
|
const s = vn[a];
|
|
4932
4992
|
u = w(s, {
|
|
@@ -4934,7 +4994,7 @@ function Qt(e) {
|
|
|
4934
4994
|
}, null);
|
|
4935
4995
|
}
|
|
4936
4996
|
return w("div", {
|
|
4937
|
-
class:
|
|
4997
|
+
class: H({
|
|
4938
4998
|
[`${t}-with-icon`]: u
|
|
4939
4999
|
}),
|
|
4940
5000
|
role: "alert"
|
|
@@ -4946,7 +5006,7 @@ function Qt(e) {
|
|
|
4946
5006
|
class: `${t}-btn`
|
|
4947
5007
|
}, [o])]);
|
|
4948
5008
|
}
|
|
4949
|
-
|
|
5009
|
+
G({
|
|
4950
5010
|
name: "PurePanel",
|
|
4951
5011
|
inheritAttrs: !1,
|
|
4952
5012
|
props: ["prefixCls", "icon", "type", "message", "description", "btn", "closeIcon"],
|
|
@@ -4954,9 +5014,9 @@ B({
|
|
|
4954
5014
|
const {
|
|
4955
5015
|
getPrefixCls: t
|
|
4956
5016
|
} = Fe("notification", e), l = k(() => e.prefixCls || t("notification")), a = k(() => `${l.value}-notice`), [, n] = Qe(l);
|
|
4957
|
-
return () => w(
|
|
5017
|
+
return () => w(xe, E(E({}, e), {}, {
|
|
4958
5018
|
prefixCls: l.value,
|
|
4959
|
-
class:
|
|
5019
|
+
class: H(n.value, `${a.value}-pure-panel`),
|
|
4960
5020
|
noticeKey: "pure",
|
|
4961
5021
|
duration: null,
|
|
4962
5022
|
closable: e.closable,
|
|
@@ -5039,7 +5099,7 @@ var xn = globalThis && globalThis.__rest || function(e, t) {
|
|
|
5039
5099
|
t.indexOf(a[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[n]) && (l[a[n]] = e[a[n]]);
|
|
5040
5100
|
return l;
|
|
5041
5101
|
};
|
|
5042
|
-
const _t = 24, wn = 4.5, $n =
|
|
5102
|
+
const _t = 24, wn = 4.5, $n = G({
|
|
5043
5103
|
name: "Holder",
|
|
5044
5104
|
inheritAttrs: !1,
|
|
5045
5105
|
props: ["prefixCls", "class", "type", "icon", "content", "onAllRemoved"],
|
|
@@ -5053,7 +5113,7 @@ const _t = 24, wn = 4.5, $n = B({
|
|
|
5053
5113
|
} = Fe("notification", e), i = k(() => e.prefixCls || a("notification")), o = (h) => {
|
|
5054
5114
|
var b, m;
|
|
5055
5115
|
return Yt(h, (b = e.top) !== null && b !== void 0 ? b : _t, (m = e.bottom) !== null && m !== void 0 ? m : _t);
|
|
5056
|
-
}, [, u] = Qe(i), s = () =>
|
|
5116
|
+
}, [, u] = Qe(i), s = () => H(u.value, {
|
|
5057
5117
|
[`${i.value}-rtl`]: e.rtl
|
|
5058
5118
|
}), d = () => Cn(i.value), [f, _] = qt({
|
|
5059
5119
|
prefixCls: i.value,
|
|
@@ -5090,7 +5150,7 @@ function Pn(e) {
|
|
|
5090
5150
|
description: b,
|
|
5091
5151
|
icon: m,
|
|
5092
5152
|
type: x,
|
|
5093
|
-
btn:
|
|
5153
|
+
btn: T,
|
|
5094
5154
|
class: P
|
|
5095
5155
|
} = u, M = xn(u, ["message", "description", "icon", "type", "btn", "class"]);
|
|
5096
5156
|
return s($($({
|
|
@@ -5102,10 +5162,10 @@ function Pn(e) {
|
|
|
5102
5162
|
type: x,
|
|
5103
5163
|
message: typeof h == "function" ? h() : h,
|
|
5104
5164
|
description: typeof b == "function" ? b() : b,
|
|
5105
|
-
btn: typeof
|
|
5165
|
+
btn: typeof T == "function" ? T() : T
|
|
5106
5166
|
}, null),
|
|
5107
5167
|
// @ts-ignore
|
|
5108
|
-
class:
|
|
5168
|
+
class: H(x && `${_}-${x}`, f, P)
|
|
5109
5169
|
}));
|
|
5110
5170
|
}, i = {
|
|
5111
5171
|
open: a,
|
|
@@ -5124,13 +5184,13 @@ function Pn(e) {
|
|
|
5124
5184
|
ref: t
|
|
5125
5185
|
}), null)];
|
|
5126
5186
|
}
|
|
5127
|
-
function
|
|
5187
|
+
function On(e) {
|
|
5128
5188
|
return Pn(e);
|
|
5129
5189
|
}
|
|
5130
5190
|
globalThis && globalThis.__awaiter;
|
|
5131
|
-
const
|
|
5191
|
+
const Z = {};
|
|
5132
5192
|
let Zt = 4.5, el = "24px", tl = "24px", ke = "", ll = "topRight", al = () => document.body, nl = null, je = !1, ol;
|
|
5133
|
-
function
|
|
5193
|
+
function Tn(e) {
|
|
5134
5194
|
const {
|
|
5135
5195
|
duration: t,
|
|
5136
5196
|
placement: l,
|
|
@@ -5154,14 +5214,14 @@ function In(e, t) {
|
|
|
5154
5214
|
} = e;
|
|
5155
5215
|
const {
|
|
5156
5216
|
getPrefixCls: d
|
|
5157
|
-
} = Fn(), f = d("notification", l || ke), _ = `${f}-${a}-${je}`, h =
|
|
5217
|
+
} = Fn(), f = d("notification", l || ke), _ = `${f}-${a}-${je}`, h = Z[_];
|
|
5158
5218
|
if (h) {
|
|
5159
5219
|
Promise.resolve(h).then((m) => {
|
|
5160
5220
|
t(m);
|
|
5161
5221
|
});
|
|
5162
5222
|
return;
|
|
5163
5223
|
}
|
|
5164
|
-
const b =
|
|
5224
|
+
const b = H(`${f}-${a}`, {
|
|
5165
5225
|
[`${f}-rtl`]: je === !0
|
|
5166
5226
|
});
|
|
5167
5227
|
zt.newInstance({
|
|
@@ -5178,19 +5238,19 @@ function In(e, t) {
|
|
|
5178
5238
|
} = m;
|
|
5179
5239
|
return w("span", {
|
|
5180
5240
|
class: `${x}-close-x`
|
|
5181
|
-
}, [
|
|
5241
|
+
}, [le(u, {}, w(He, {
|
|
5182
5242
|
class: `${x}-close-icon`
|
|
5183
5243
|
}, null))]);
|
|
5184
5244
|
},
|
|
5185
5245
|
maxCount: ol,
|
|
5186
5246
|
hasTransitionName: !0
|
|
5187
5247
|
}, (m) => {
|
|
5188
|
-
|
|
5248
|
+
Z[_] = m, t(m);
|
|
5189
5249
|
});
|
|
5190
5250
|
}
|
|
5191
5251
|
const Sn = {
|
|
5192
5252
|
success: Ia,
|
|
5193
|
-
info:
|
|
5253
|
+
info: Ka,
|
|
5194
5254
|
error: Na,
|
|
5195
5255
|
warning: Va
|
|
5196
5256
|
};
|
|
@@ -5213,7 +5273,7 @@ function Mn(e) {
|
|
|
5213
5273
|
if (t)
|
|
5214
5274
|
_ = () => w("span", {
|
|
5215
5275
|
class: `${f}-icon`
|
|
5216
|
-
}, [
|
|
5276
|
+
}, [le(t)]);
|
|
5217
5277
|
else if (l) {
|
|
5218
5278
|
const h = Sn[l];
|
|
5219
5279
|
_ = () => w(h, {
|
|
@@ -5226,11 +5286,11 @@ function Mn(e) {
|
|
|
5226
5286
|
class: `${f}-message`
|
|
5227
5287
|
}, [!a && _ ? w("span", {
|
|
5228
5288
|
class: `${f}-message-single-line-auto-margin`
|
|
5229
|
-
}, null) : null,
|
|
5289
|
+
}, null) : null, le(n)]), w("div", {
|
|
5230
5290
|
class: `${f}-description`
|
|
5231
|
-
}, [
|
|
5291
|
+
}, [le(a)]), i ? w("span", {
|
|
5232
5292
|
class: `${f}-btn`
|
|
5233
|
-
}, [
|
|
5293
|
+
}, [le(i)]) : null]);
|
|
5234
5294
|
},
|
|
5235
5295
|
duration: o,
|
|
5236
5296
|
closable: !0,
|
|
@@ -5245,16 +5305,16 @@ function Mn(e) {
|
|
|
5245
5305
|
const oe = {
|
|
5246
5306
|
open: Mn,
|
|
5247
5307
|
close(e) {
|
|
5248
|
-
Object.keys(
|
|
5308
|
+
Object.keys(Z).forEach((t) => Promise.resolve(Z[t]).then((l) => {
|
|
5249
5309
|
l.removeNotice(e);
|
|
5250
5310
|
}));
|
|
5251
5311
|
},
|
|
5252
|
-
config:
|
|
5312
|
+
config: Tn,
|
|
5253
5313
|
destroy() {
|
|
5254
|
-
Object.keys(
|
|
5255
|
-
Promise.resolve(
|
|
5314
|
+
Object.keys(Z).forEach((e) => {
|
|
5315
|
+
Promise.resolve(Z[e]).then((t) => {
|
|
5256
5316
|
t.destroy();
|
|
5257
|
-
}), delete
|
|
5317
|
+
}), delete Z[e];
|
|
5258
5318
|
});
|
|
5259
5319
|
}
|
|
5260
5320
|
}, An = ["success", "info", "warning", "error"];
|
|
@@ -5264,23 +5324,23 @@ An.forEach((e) => {
|
|
|
5264
5324
|
}));
|
|
5265
5325
|
});
|
|
5266
5326
|
oe.warn = oe.warning;
|
|
5267
|
-
oe.useNotification =
|
|
5327
|
+
oe.useNotification = On;
|
|
5268
5328
|
const Vn = oe, kn = `-ant-${Date.now()}-${Math.random()}`;
|
|
5269
5329
|
function jn(e, t) {
|
|
5270
5330
|
const l = {}, a = (o, u) => {
|
|
5271
5331
|
let s = o.clone();
|
|
5272
5332
|
return s = (u == null ? void 0 : u(s)) || s, s.toRgbString();
|
|
5273
5333
|
}, n = (o, u) => {
|
|
5274
|
-
const s = new
|
|
5334
|
+
const s = new $e(o), d = tt(s.toRgbString());
|
|
5275
5335
|
l[`${u}-color`] = a(s), l[`${u}-color-disabled`] = d[1], l[`${u}-color-hover`] = d[4], l[`${u}-color-active`] = d[6], l[`${u}-color-outline`] = s.clone().setAlpha(0.2).toRgbString(), l[`${u}-color-deprecated-bg`] = d[0], l[`${u}-color-deprecated-border`] = d[2];
|
|
5276
5336
|
};
|
|
5277
5337
|
if (t.primaryColor) {
|
|
5278
5338
|
n(t.primaryColor, "primary");
|
|
5279
|
-
const o = new
|
|
5339
|
+
const o = new $e(t.primaryColor), u = tt(o.toRgbString());
|
|
5280
5340
|
u.forEach((d, f) => {
|
|
5281
5341
|
l[`primary-${f + 1}`] = d;
|
|
5282
5342
|
}), l["primary-color-deprecated-l-35"] = a(o, (d) => d.lighten(35)), l["primary-color-deprecated-l-20"] = a(o, (d) => d.lighten(20)), l["primary-color-deprecated-t-20"] = a(o, (d) => d.tint(20)), l["primary-color-deprecated-t-50"] = a(o, (d) => d.tint(50)), l["primary-color-deprecated-f-12"] = a(o, (d) => d.setAlpha(d.getAlpha() * 0.12));
|
|
5283
|
-
const s = new
|
|
5343
|
+
const s = new $e(u[0]);
|
|
5284
5344
|
l["primary-color-active-deprecated-f-30"] = a(s, (d) => d.setAlpha(d.getAlpha() * 0.3)), l["primary-color-active-deprecated-d-02"] = a(s, (d) => d.darken(2));
|
|
5285
5345
|
}
|
|
5286
5346
|
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"), `
|
|
@@ -5290,13 +5350,13 @@ function jn(e, t) {
|
|
|
5290
5350
|
}
|
|
5291
5351
|
`.trim();
|
|
5292
5352
|
}
|
|
5293
|
-
function
|
|
5353
|
+
function Dn(e, t) {
|
|
5294
5354
|
const l = jn(e, t);
|
|
5295
5355
|
$l() ? Pl(l, `${kn}-dynamic-theme`) : Pt(!1, "ConfigProvider", "SSR do not support dynamic theme with css variables.");
|
|
5296
5356
|
}
|
|
5297
|
-
const
|
|
5298
|
-
const [t, l] =
|
|
5299
|
-
return
|
|
5357
|
+
const Kn = (e) => {
|
|
5358
|
+
const [t, l] = Ol();
|
|
5359
|
+
return Tl(k(() => ({
|
|
5300
5360
|
theme: t.value,
|
|
5301
5361
|
token: l.value,
|
|
5302
5362
|
hashId: "",
|
|
@@ -5308,7 +5368,7 @@ const Dn = (e) => {
|
|
|
5308
5368
|
}
|
|
5309
5369
|
})
|
|
5310
5370
|
}]);
|
|
5311
|
-
}, En =
|
|
5371
|
+
}, En = Kn;
|
|
5312
5372
|
function zn(e, t) {
|
|
5313
5373
|
const l = k(() => (e == null ? void 0 : e.value) || {}), a = k(() => l.value.inherit === !1 || !(t != null && t.value) ? Sl : t.value);
|
|
5314
5374
|
return k(() => {
|
|
@@ -5343,16 +5403,16 @@ const Ye = I({}), N = I({});
|
|
|
5343
5403
|
qe(() => {
|
|
5344
5404
|
$(N, Ye), N.prefixCls = ne(), N.iconPrefixCls = il(), N.getPrefixCls = (e, t) => t || (e ? `${N.prefixCls}-${e}` : N.prefixCls), N.getRootPrefixCls = () => N.prefixCls ? N.prefixCls : ne();
|
|
5345
5405
|
});
|
|
5346
|
-
let
|
|
5406
|
+
let Te;
|
|
5347
5407
|
const Ln = (e) => {
|
|
5348
|
-
|
|
5408
|
+
Te && Te(), Te = qe(() => {
|
|
5349
5409
|
$(Ye, I(e)), $(N, I(e));
|
|
5350
|
-
}), e.theme &&
|
|
5410
|
+
}), e.theme && Dn(ne(), e.theme);
|
|
5351
5411
|
}, Fn = () => ({
|
|
5352
5412
|
getPrefixCls: (e, t) => t || (e ? `${ne()}-${e}` : ne()),
|
|
5353
5413
|
getIconPrefixCls: il,
|
|
5354
5414
|
getRootPrefixCls: () => N.prefixCls ? N.prefixCls : ne()
|
|
5355
|
-
}), se =
|
|
5415
|
+
}), se = G({
|
|
5356
5416
|
compatConfig: {
|
|
5357
5417
|
MODE: 3
|
|
5358
5418
|
},
|
|
@@ -5365,12 +5425,12 @@ const Ln = (e) => {
|
|
|
5365
5425
|
} = t;
|
|
5366
5426
|
const a = Mt(), n = (r, A) => {
|
|
5367
5427
|
const {
|
|
5368
|
-
prefixCls:
|
|
5428
|
+
prefixCls: q = "ant"
|
|
5369
5429
|
} = e;
|
|
5370
5430
|
if (A)
|
|
5371
5431
|
return A;
|
|
5372
|
-
const
|
|
5373
|
-
return r ? `${
|
|
5432
|
+
const X = q || a.getPrefixCls("");
|
|
5433
|
+
return r ? `${X}-${r}` : X;
|
|
5374
5434
|
}, i = k(() => e.iconPrefixCls || a.iconPrefixCls.value || At), o = k(() => i.value !== a.iconPrefixCls.value), u = k(() => {
|
|
5375
5435
|
var r;
|
|
5376
5436
|
return e.csp || ((r = a.csp) === null || r === void 0 ? void 0 : r.value);
|
|
@@ -5384,7 +5444,7 @@ const Ln = (e) => {
|
|
|
5384
5444
|
var r;
|
|
5385
5445
|
return e.locale || ((r = a.locale) === null || r === void 0 ? void 0 : r.value);
|
|
5386
5446
|
});
|
|
5387
|
-
|
|
5447
|
+
fe(h, () => {
|
|
5388
5448
|
Ye.locale = h.value;
|
|
5389
5449
|
}, {
|
|
5390
5450
|
immediate: !0
|
|
@@ -5398,7 +5458,7 @@ const Ln = (e) => {
|
|
|
5398
5458
|
}), x = k(() => {
|
|
5399
5459
|
var r, A;
|
|
5400
5460
|
return (r = e.virtual) !== null && r !== void 0 ? r : (A = a.virtual) === null || A === void 0 ? void 0 : A.value;
|
|
5401
|
-
}),
|
|
5461
|
+
}), T = k(() => {
|
|
5402
5462
|
var r, A;
|
|
5403
5463
|
return (r = e.dropdownMatchSelectWidth) !== null && r !== void 0 ? r : (A = a.dropdownMatchSelectWidth) === null || A === void 0 ? void 0 : A.value;
|
|
5404
5464
|
}), P = k(() => {
|
|
@@ -5422,17 +5482,17 @@ const Ln = (e) => {
|
|
|
5422
5482
|
}), p = k(() => {
|
|
5423
5483
|
var r;
|
|
5424
5484
|
return e.select !== void 0 ? e.select : (r = a.select) === null || r === void 0 ? void 0 : r.value;
|
|
5425
|
-
}),
|
|
5485
|
+
}), O = k(() => e.componentSize), V = k(() => e.componentDisabled), D = k(() => {
|
|
5426
5486
|
var r, A;
|
|
5427
5487
|
return (r = e.wave) !== null && r !== void 0 ? r : (A = a.wave) === null || A === void 0 ? void 0 : A.value;
|
|
5428
|
-
}),
|
|
5488
|
+
}), K = {
|
|
5429
5489
|
csp: u,
|
|
5430
5490
|
autoInsertSpaceInButton: _,
|
|
5431
5491
|
locale: h,
|
|
5432
5492
|
direction: b,
|
|
5433
5493
|
space: m,
|
|
5434
5494
|
virtual: x,
|
|
5435
|
-
dropdownMatchSelectWidth:
|
|
5495
|
+
dropdownMatchSelectWidth: T,
|
|
5436
5496
|
getPrefixCls: n,
|
|
5437
5497
|
iconPrefixCls: i,
|
|
5438
5498
|
theme: k(() => {
|
|
@@ -5447,45 +5507,45 @@ const Ln = (e) => {
|
|
|
5447
5507
|
pagination: c,
|
|
5448
5508
|
form: C,
|
|
5449
5509
|
select: p,
|
|
5450
|
-
componentSize:
|
|
5510
|
+
componentSize: O,
|
|
5451
5511
|
componentDisabled: V,
|
|
5452
5512
|
transformCellText: k(() => e.transformCellText),
|
|
5453
|
-
wave:
|
|
5513
|
+
wave: D
|
|
5454
5514
|
}, g = k(() => {
|
|
5455
5515
|
const r = d.value || {}, {
|
|
5456
5516
|
algorithm: A,
|
|
5457
|
-
token:
|
|
5458
|
-
} = r,
|
|
5459
|
-
return $($({},
|
|
5460
|
-
theme:
|
|
5461
|
-
token: $($({}, Vl),
|
|
5517
|
+
token: q
|
|
5518
|
+
} = r, X = qn(r, ["algorithm", "token"]), we = A && (!Array.isArray(A) || A.length > 0) ? Al(A) : void 0;
|
|
5519
|
+
return $($({}, X), {
|
|
5520
|
+
theme: we,
|
|
5521
|
+
token: $($({}, Vl), q)
|
|
5462
5522
|
});
|
|
5463
5523
|
}), y = k(() => {
|
|
5464
5524
|
var r, A;
|
|
5465
|
-
let
|
|
5466
|
-
return h.value && (
|
|
5525
|
+
let q = {};
|
|
5526
|
+
return h.value && (q = ((r = h.value.Form) === null || r === void 0 ? void 0 : r.defaultValidateMessages) || ((A = Ne.Form) === null || A === void 0 ? void 0 : A.defaultValidateMessages) || {}), e.form && e.form.validateMessages && (q = $($({}, q), e.form.validateMessages)), q;
|
|
5467
5527
|
});
|
|
5468
|
-
kl(
|
|
5528
|
+
kl(K), jl({
|
|
5469
5529
|
validateMessages: y
|
|
5470
|
-
}),
|
|
5530
|
+
}), Dl(O), Kl(V);
|
|
5471
5531
|
const v = (r) => {
|
|
5472
|
-
var A,
|
|
5473
|
-
let
|
|
5532
|
+
var A, q;
|
|
5533
|
+
let X = o.value ? s((A = l.default) === null || A === void 0 ? void 0 : A.call(l)) : (q = l.default) === null || q === void 0 ? void 0 : q.call(l);
|
|
5474
5534
|
if (e.theme) {
|
|
5475
|
-
const
|
|
5476
|
-
return
|
|
5535
|
+
const we = function() {
|
|
5536
|
+
return X;
|
|
5477
5537
|
}();
|
|
5478
|
-
|
|
5538
|
+
X = w(ql, {
|
|
5479
5539
|
value: g.value
|
|
5480
5540
|
}, {
|
|
5481
|
-
default: () => [
|
|
5541
|
+
default: () => [we]
|
|
5482
5542
|
});
|
|
5483
5543
|
}
|
|
5484
5544
|
return w(Ba, {
|
|
5485
5545
|
locale: h.value || r,
|
|
5486
5546
|
ANT_MARK__: Ae
|
|
5487
5547
|
}, {
|
|
5488
|
-
default: () => [
|
|
5548
|
+
default: () => [X]
|
|
5489
5549
|
});
|
|
5490
5550
|
};
|
|
5491
5551
|
return qe(() => {
|
|
@@ -5495,7 +5555,7 @@ const Ln = (e) => {
|
|
|
5495
5555
|
rtl: b.value === "rtl"
|
|
5496
5556
|
}));
|
|
5497
5557
|
}), () => w(El, {
|
|
5498
|
-
children: (r, A,
|
|
5558
|
+
children: (r, A, q) => v(q)
|
|
5499
5559
|
}, null);
|
|
5500
5560
|
}
|
|
5501
5561
|
});
|
|
@@ -5505,21 +5565,21 @@ se.install = function(e) {
|
|
|
5505
5565
|
};
|
|
5506
5566
|
const Rn = se;
|
|
5507
5567
|
async function gt(e) {
|
|
5508
|
-
return
|
|
5568
|
+
return J().post("/permission/update_role", e);
|
|
5509
5569
|
}
|
|
5510
5570
|
async function Hn(e) {
|
|
5511
|
-
return
|
|
5571
|
+
return J().post("/permission/copy_role_info", e);
|
|
5512
5572
|
}
|
|
5513
5573
|
async function Bn(e) {
|
|
5514
|
-
return
|
|
5574
|
+
return J().post("/permission/import_role_by_super", e);
|
|
5515
5575
|
}
|
|
5516
|
-
const Gn = () =>
|
|
5576
|
+
const Gn = () => W().VITE_APP_HAS_PROJECT, rl = [
|
|
5517
5577
|
{
|
|
5518
5578
|
name: "修改",
|
|
5519
5579
|
type: "dropdown",
|
|
5520
5580
|
clazz: "primary",
|
|
5521
5581
|
cb: ({ record: e }) => {
|
|
5522
|
-
const l =
|
|
5582
|
+
const l = U().currentOrg, a = I({
|
|
5523
5583
|
visible: !0,
|
|
5524
5584
|
title: "修改",
|
|
5525
5585
|
loading: !1,
|
|
@@ -5577,7 +5637,7 @@ const Gn = () => U().VITE_APP_HAS_PROJECT, rl = [
|
|
|
5577
5637
|
a.loading = !0, gt({
|
|
5578
5638
|
...n
|
|
5579
5639
|
}).then((o) => {
|
|
5580
|
-
re.success("修改成功"), Object.assign(e, o),
|
|
5640
|
+
re.success("修改成功"), Object.assign(e, o), z().emit("refresh"), i(null);
|
|
5581
5641
|
}).finally(() => {
|
|
5582
5642
|
a.loading = !1;
|
|
5583
5643
|
});
|
|
@@ -5627,7 +5687,7 @@ const Gn = () => U().VITE_APP_HAS_PROJECT, rl = [
|
|
|
5627
5687
|
ok: (a) => new Promise(function(n) {
|
|
5628
5688
|
a && a.person_ids && a.person_ids.length > 0 ? a.person_ids = a.person_ids.join(",") : a.person_ids = "", gt({ org_id: t.id, aim_org_id: l.org_id, ...a }).then(
|
|
5629
5689
|
() => {
|
|
5630
|
-
re.success("修改用户成功"),
|
|
5690
|
+
re.success("修改用户成功"), z().emit("refresh"), n(!0);
|
|
5631
5691
|
}
|
|
5632
5692
|
), l.visible = !1;
|
|
5633
5693
|
})
|
|
@@ -5699,14 +5759,14 @@ const Gn = () => U().VITE_APP_HAS_PROJECT, rl = [
|
|
|
5699
5759
|
org_id: t.id,
|
|
5700
5760
|
role_id: e.id
|
|
5701
5761
|
}).then(() => {
|
|
5702
|
-
re.success("复制角色成功"),
|
|
5762
|
+
re.success("复制角色成功"), z().emit("refresh");
|
|
5703
5763
|
});
|
|
5704
5764
|
}
|
|
5705
5765
|
});
|
|
5706
5766
|
F(l);
|
|
5707
5767
|
}
|
|
5708
5768
|
}
|
|
5709
|
-
],
|
|
5769
|
+
], De = {
|
|
5710
5770
|
creatCol: [],
|
|
5711
5771
|
updateCol: []
|
|
5712
5772
|
}, sl = [
|
|
@@ -5815,18 +5875,18 @@ const Gn = () => U().VITE_APP_HAS_PROJECT, rl = [
|
|
|
5815
5875
|
], Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5816
5876
|
__proto__: null,
|
|
5817
5877
|
btn_list: rl,
|
|
5818
|
-
config:
|
|
5878
|
+
config: De,
|
|
5819
5879
|
head_btn_list: sl
|
|
5820
|
-
}, Symbol.toStringTag, { value: "Module" })), ul = [],
|
|
5880
|
+
}, Symbol.toStringTag, { value: "Module" })), ul = [], Ke = {
|
|
5821
5881
|
creatCol: [],
|
|
5822
5882
|
updateCol: []
|
|
5823
5883
|
}, cl = [], Wn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5824
5884
|
__proto__: null,
|
|
5825
5885
|
btn_list: ul,
|
|
5826
|
-
config:
|
|
5886
|
+
config: Ke,
|
|
5827
5887
|
head_btn_list: cl
|
|
5828
5888
|
}, Symbol.toStringTag, { value: "Module" })), Jn = () => {
|
|
5829
|
-
const t =
|
|
5889
|
+
const t = U().currentOrg, l = W(), a = {
|
|
5830
5890
|
settings: {
|
|
5831
5891
|
labelAlign: "right",
|
|
5832
5892
|
layout: "inline"
|
|
@@ -5889,7 +5949,7 @@ const Gn = () => U().VITE_APP_HAS_PROJECT, rl = [
|
|
|
5889
5949
|
settings: {
|
|
5890
5950
|
labelAlign: "right",
|
|
5891
5951
|
layout: "vertical",
|
|
5892
|
-
col:
|
|
5952
|
+
col: De.creatCol
|
|
5893
5953
|
},
|
|
5894
5954
|
fields: [
|
|
5895
5955
|
{
|
|
@@ -5939,7 +5999,7 @@ const Gn = () => U().VITE_APP_HAS_PROJECT, rl = [
|
|
|
5939
5999
|
settings: {
|
|
5940
6000
|
labelAlign: "right",
|
|
5941
6001
|
layout: "vertical",
|
|
5942
|
-
col:
|
|
6002
|
+
col: De.creatCol
|
|
5943
6003
|
},
|
|
5944
6004
|
fields: [
|
|
5945
6005
|
{
|
|
@@ -6089,7 +6149,7 @@ const Gn = () => U().VITE_APP_HAS_PROJECT, rl = [
|
|
|
6089
6149
|
api_fields: u,
|
|
6090
6150
|
btn_list: rl,
|
|
6091
6151
|
head_btn_list: sl,
|
|
6092
|
-
event_obj:
|
|
6152
|
+
event_obj: z(),
|
|
6093
6153
|
is_show_advantage: !1,
|
|
6094
6154
|
is_show_normal_search: !0,
|
|
6095
6155
|
is_only_show_advantage: !1,
|
|
@@ -6201,7 +6261,7 @@ const Gn = () => U().VITE_APP_HAS_PROJECT, rl = [
|
|
|
6201
6261
|
t.loading = !0, ya({
|
|
6202
6262
|
...a
|
|
6203
6263
|
}).then((i) => {
|
|
6204
|
-
|
|
6264
|
+
R.success("修改成功"), Object.assign(e, i), z().emit("refresh"), n(null);
|
|
6205
6265
|
}).finally(() => {
|
|
6206
6266
|
t.loading = !1;
|
|
6207
6267
|
});
|
|
@@ -6214,10 +6274,10 @@ const Gn = () => U().VITE_APP_HAS_PROJECT, rl = [
|
|
|
6214
6274
|
name: "重置密码",
|
|
6215
6275
|
clazz: "primary",
|
|
6216
6276
|
cb: ({ record: e }) => {
|
|
6217
|
-
|
|
6277
|
+
ce.confirm({
|
|
6218
6278
|
title: "温馨提示",
|
|
6219
6279
|
content: "是否重置 [" + e.realname + "] 的密码?",
|
|
6220
|
-
icon: () => w(
|
|
6280
|
+
icon: () => w(de),
|
|
6221
6281
|
okText: "确定",
|
|
6222
6282
|
onOk() {
|
|
6223
6283
|
return new Promise((t) => {
|
|
@@ -6225,7 +6285,7 @@ const Gn = () => U().VITE_APP_HAS_PROJECT, rl = [
|
|
|
6225
6285
|
org_id: e.org_id,
|
|
6226
6286
|
username: e.user__username
|
|
6227
6287
|
}).then(() => {
|
|
6228
|
-
|
|
6288
|
+
R.success("重置密码成功");
|
|
6229
6289
|
}).finally(() => {
|
|
6230
6290
|
t(null);
|
|
6231
6291
|
});
|
|
@@ -6337,7 +6397,7 @@ const Gn = () => U().VITE_APP_HAS_PROJECT, rl = [
|
|
|
6337
6397
|
t.loading = !0, ha({
|
|
6338
6398
|
...l
|
|
6339
6399
|
}).then((n) => {
|
|
6340
|
-
|
|
6400
|
+
R.success("修改成功"), z().emit("refresh"), a(null);
|
|
6341
6401
|
}).finally(() => {
|
|
6342
6402
|
t.loading = !1;
|
|
6343
6403
|
});
|
|
@@ -6352,7 +6412,7 @@ const Gn = () => U().VITE_APP_HAS_PROJECT, rl = [
|
|
|
6352
6412
|
config: Ee,
|
|
6353
6413
|
head_btn_list: pl
|
|
6354
6414
|
}, Symbol.toStringTag, { value: "Module" })), Yn = () => {
|
|
6355
|
-
const t =
|
|
6415
|
+
const t = U().currentOrg, l = {
|
|
6356
6416
|
settings: {
|
|
6357
6417
|
labelAlign: "right",
|
|
6358
6418
|
layout: "inline"
|
|
@@ -6651,7 +6711,7 @@ const Gn = () => U().VITE_APP_HAS_PROJECT, rl = [
|
|
|
6651
6711
|
},
|
|
6652
6712
|
btn_list: dl,
|
|
6653
6713
|
head_btn_list: pl,
|
|
6654
|
-
event_obj:
|
|
6714
|
+
event_obj: z(),
|
|
6655
6715
|
base_search_condition_config_list: [],
|
|
6656
6716
|
default_search_condition_config_list: [[]],
|
|
6657
6717
|
condition_group_config_list: [],
|
|
@@ -6666,7 +6726,7 @@ const Gn = () => U().VITE_APP_HAS_PROJECT, rl = [
|
|
|
6666
6726
|
__proto__: null,
|
|
6667
6727
|
default: Yn
|
|
6668
6728
|
}, Symbol.toStringTag, { value: "Module" })), eo = () => {
|
|
6669
|
-
const t =
|
|
6729
|
+
const t = U().currentOrg, l = {
|
|
6670
6730
|
settings: {
|
|
6671
6731
|
labelAlign: "right",
|
|
6672
6732
|
layout: "inline"
|
|
@@ -6726,7 +6786,7 @@ const Gn = () => U().VITE_APP_HAS_PROJECT, rl = [
|
|
|
6726
6786
|
settings: {
|
|
6727
6787
|
labelAlign: "right",
|
|
6728
6788
|
layout: "vertical",
|
|
6729
|
-
col:
|
|
6789
|
+
col: Ke.creatCol
|
|
6730
6790
|
},
|
|
6731
6791
|
fields: [
|
|
6732
6792
|
{
|
|
@@ -6775,7 +6835,7 @@ const Gn = () => U().VITE_APP_HAS_PROJECT, rl = [
|
|
|
6775
6835
|
settings: {
|
|
6776
6836
|
labelAlign: "right",
|
|
6777
6837
|
layout: "vertical",
|
|
6778
|
-
col:
|
|
6838
|
+
col: Ke.creatCol
|
|
6779
6839
|
},
|
|
6780
6840
|
fields: [
|
|
6781
6841
|
{
|
|
@@ -6911,7 +6971,7 @@ const Gn = () => U().VITE_APP_HAS_PROJECT, rl = [
|
|
|
6911
6971
|
},
|
|
6912
6972
|
btn_list: ul,
|
|
6913
6973
|
head_btn_list: cl,
|
|
6914
|
-
event_obj:
|
|
6974
|
+
event_obj: z(),
|
|
6915
6975
|
base_search_condition_config_list: [],
|
|
6916
6976
|
default_search_condition_config_list: [[]],
|
|
6917
6977
|
condition_group_config_list: [],
|
|
@@ -6930,37 +6990,37 @@ var fl = { exports: {} };
|
|
|
6930
6990
|
(function(e) {
|
|
6931
6991
|
(function(t) {
|
|
6932
6992
|
function l(c, C) {
|
|
6933
|
-
var p = (c & 65535) + (C & 65535),
|
|
6934
|
-
return
|
|
6993
|
+
var p = (c & 65535) + (C & 65535), O = (c >> 16) + (C >> 16) + (p >> 16);
|
|
6994
|
+
return O << 16 | p & 65535;
|
|
6935
6995
|
}
|
|
6936
6996
|
function a(c, C) {
|
|
6937
6997
|
return c << C | c >>> 32 - C;
|
|
6938
6998
|
}
|
|
6939
|
-
function n(c, C, p,
|
|
6940
|
-
return l(a(l(l(C, c), l(
|
|
6999
|
+
function n(c, C, p, O, V, D) {
|
|
7000
|
+
return l(a(l(l(C, c), l(O, D)), V), p);
|
|
6941
7001
|
}
|
|
6942
|
-
function i(c, C, p,
|
|
6943
|
-
return n(C & p | ~C &
|
|
7002
|
+
function i(c, C, p, O, V, D, K) {
|
|
7003
|
+
return n(C & p | ~C & O, c, C, V, D, K);
|
|
6944
7004
|
}
|
|
6945
|
-
function o(c, C, p,
|
|
6946
|
-
return n(C &
|
|
7005
|
+
function o(c, C, p, O, V, D, K) {
|
|
7006
|
+
return n(C & O | p & ~O, c, C, V, D, K);
|
|
6947
7007
|
}
|
|
6948
|
-
function u(c, C, p,
|
|
6949
|
-
return n(C ^ p ^
|
|
7008
|
+
function u(c, C, p, O, V, D, K) {
|
|
7009
|
+
return n(C ^ p ^ O, c, C, V, D, K);
|
|
6950
7010
|
}
|
|
6951
|
-
function s(c, C, p,
|
|
6952
|
-
return n(p ^ (C | ~
|
|
7011
|
+
function s(c, C, p, O, V, D, K) {
|
|
7012
|
+
return n(p ^ (C | ~O), c, C, V, D, K);
|
|
6953
7013
|
}
|
|
6954
7014
|
function d(c, C) {
|
|
6955
7015
|
c[C >> 5] |= 128 << C % 32, c[(C + 64 >>> 9 << 4) + 14] = C;
|
|
6956
|
-
var p,
|
|
7016
|
+
var p, O, V, D, K, g = 1732584193, y = -271733879, v = -1732584194, r = 271733878;
|
|
6957
7017
|
for (p = 0; p < c.length; p += 16)
|
|
6958
|
-
|
|
7018
|
+
O = g, V = y, D = v, K = r, g = i(g, y, v, r, c[p], 7, -680876936), r = i(r, g, y, v, c[p + 1], 12, -389564586), v = i(v, r, g, y, c[p + 2], 17, 606105819), y = i(y, v, r, g, c[p + 3], 22, -1044525330), g = i(g, y, v, r, c[p + 4], 7, -176418897), r = i(r, g, y, v, c[p + 5], 12, 1200080426), v = i(v, r, g, y, c[p + 6], 17, -1473231341), y = i(y, v, r, g, c[p + 7], 22, -45705983), g = i(g, y, v, r, c[p + 8], 7, 1770035416), r = i(r, g, y, v, c[p + 9], 12, -1958414417), v = i(v, r, g, y, c[p + 10], 17, -42063), y = i(y, v, r, g, c[p + 11], 22, -1990404162), g = i(g, y, v, r, c[p + 12], 7, 1804603682), r = i(r, g, y, v, c[p + 13], 12, -40341101), v = i(v, r, g, y, c[p + 14], 17, -1502002290), y = i(y, v, r, g, c[p + 15], 22, 1236535329), g = o(g, y, v, r, c[p + 1], 5, -165796510), r = o(r, g, y, v, c[p + 6], 9, -1069501632), v = o(v, r, g, y, c[p + 11], 14, 643717713), y = o(y, v, r, g, c[p], 20, -373897302), g = o(g, y, v, r, c[p + 5], 5, -701558691), r = o(r, g, y, v, c[p + 10], 9, 38016083), v = o(v, r, g, y, c[p + 15], 14, -660478335), y = o(y, v, r, g, c[p + 4], 20, -405537848), g = o(g, y, v, r, c[p + 9], 5, 568446438), r = o(r, g, y, v, c[p + 14], 9, -1019803690), v = o(v, r, g, y, c[p + 3], 14, -187363961), y = o(y, v, r, g, c[p + 8], 20, 1163531501), g = o(g, y, v, r, c[p + 13], 5, -1444681467), r = o(r, g, y, v, c[p + 2], 9, -51403784), v = o(v, r, g, y, c[p + 7], 14, 1735328473), y = o(y, v, r, g, c[p + 12], 20, -1926607734), g = u(g, y, v, r, c[p + 5], 4, -378558), r = u(r, g, y, v, c[p + 8], 11, -2022574463), v = u(v, r, g, y, c[p + 11], 16, 1839030562), y = u(y, v, r, g, c[p + 14], 23, -35309556), g = u(g, y, v, r, c[p + 1], 4, -1530992060), r = u(r, g, y, v, c[p + 4], 11, 1272893353), v = u(v, r, g, y, c[p + 7], 16, -155497632), y = u(y, v, r, g, c[p + 10], 23, -1094730640), g = u(g, y, v, r, c[p + 13], 4, 681279174), r = u(r, g, y, v, c[p], 11, -358537222), v = u(v, r, g, y, c[p + 3], 16, -722521979), y = u(y, v, r, g, c[p + 6], 23, 76029189), g = u(g, y, v, r, c[p + 9], 4, -640364487), r = u(r, g, y, v, c[p + 12], 11, -421815835), v = u(v, r, g, y, c[p + 15], 16, 530742520), y = u(y, v, r, g, c[p + 2], 23, -995338651), g = s(g, y, v, r, c[p], 6, -198630844), r = s(r, g, y, v, c[p + 7], 10, 1126891415), v = s(v, r, g, y, c[p + 14], 15, -1416354905), y = s(y, v, r, g, c[p + 5], 21, -57434055), g = s(g, y, v, r, c[p + 12], 6, 1700485571), r = s(r, g, y, v, c[p + 3], 10, -1894986606), v = s(v, r, g, y, c[p + 10], 15, -1051523), y = s(y, v, r, g, c[p + 1], 21, -2054922799), g = s(g, y, v, r, c[p + 8], 6, 1873313359), r = s(r, g, y, v, c[p + 15], 10, -30611744), v = s(v, r, g, y, c[p + 6], 15, -1560198380), y = s(y, v, r, g, c[p + 13], 21, 1309151649), g = s(g, y, v, r, c[p + 4], 6, -145523070), r = s(r, g, y, v, c[p + 11], 10, -1120210379), v = s(v, r, g, y, c[p + 2], 15, 718787259), y = s(y, v, r, g, c[p + 9], 21, -343485551), g = l(g, O), y = l(y, V), v = l(v, D), r = l(r, K);
|
|
6959
7019
|
return [g, y, v, r];
|
|
6960
7020
|
}
|
|
6961
7021
|
function f(c) {
|
|
6962
|
-
var C, p = "",
|
|
6963
|
-
for (C = 0; C <
|
|
7022
|
+
var C, p = "", O = c.length * 32;
|
|
7023
|
+
for (C = 0; C < O; C += 8)
|
|
6964
7024
|
p += String.fromCharCode(c[C >> 5] >>> C % 32 & 255);
|
|
6965
7025
|
return p;
|
|
6966
7026
|
}
|
|
@@ -6968,8 +7028,8 @@ var fl = { exports: {} };
|
|
|
6968
7028
|
var C, p = [];
|
|
6969
7029
|
for (p[(c.length >> 2) - 1] = void 0, C = 0; C < p.length; C += 1)
|
|
6970
7030
|
p[C] = 0;
|
|
6971
|
-
var
|
|
6972
|
-
for (C = 0; C <
|
|
7031
|
+
var O = c.length * 8;
|
|
7032
|
+
for (C = 0; C < O; C += 8)
|
|
6973
7033
|
p[C >> 5] |= (c.charCodeAt(C / 8) & 255) << C % 32;
|
|
6974
7034
|
return p;
|
|
6975
7035
|
}
|
|
@@ -6977,25 +7037,25 @@ var fl = { exports: {} };
|
|
|
6977
7037
|
return f(d(_(c), c.length * 8));
|
|
6978
7038
|
}
|
|
6979
7039
|
function b(c, C) {
|
|
6980
|
-
var p,
|
|
6981
|
-
for (V[15] =
|
|
6982
|
-
V[p] =
|
|
6983
|
-
return
|
|
7040
|
+
var p, O = _(c), V = [], D = [], K;
|
|
7041
|
+
for (V[15] = D[15] = void 0, O.length > 16 && (O = d(O, c.length * 8)), p = 0; p < 16; p += 1)
|
|
7042
|
+
V[p] = O[p] ^ 909522486, D[p] = O[p] ^ 1549556828;
|
|
7043
|
+
return K = d(V.concat(_(C)), 512 + C.length * 8), f(d(D.concat(K), 512 + 128));
|
|
6984
7044
|
}
|
|
6985
7045
|
function m(c) {
|
|
6986
|
-
var C = "0123456789abcdef", p = "",
|
|
7046
|
+
var C = "0123456789abcdef", p = "", O, V;
|
|
6987
7047
|
for (V = 0; V < c.length; V += 1)
|
|
6988
|
-
|
|
7048
|
+
O = c.charCodeAt(V), p += C.charAt(O >>> 4 & 15) + C.charAt(O & 15);
|
|
6989
7049
|
return p;
|
|
6990
7050
|
}
|
|
6991
7051
|
function x(c) {
|
|
6992
7052
|
return unescape(encodeURIComponent(c));
|
|
6993
7053
|
}
|
|
6994
|
-
function
|
|
7054
|
+
function T(c) {
|
|
6995
7055
|
return h(x(c));
|
|
6996
7056
|
}
|
|
6997
7057
|
function P(c) {
|
|
6998
|
-
return m(
|
|
7058
|
+
return m(T(c));
|
|
6999
7059
|
}
|
|
7000
7060
|
function M(c, C) {
|
|
7001
7061
|
return b(x(c), x(C));
|
|
@@ -7004,7 +7064,7 @@ var fl = { exports: {} };
|
|
|
7004
7064
|
return m(M(c, C));
|
|
7005
7065
|
}
|
|
7006
7066
|
function S(c, C, p) {
|
|
7007
|
-
return C ? p ? M(C, c) : j(C, c) : p ?
|
|
7067
|
+
return C ? p ? M(C, c) : j(C, c) : p ? T(c) : P(c);
|
|
7008
7068
|
}
|
|
7009
7069
|
e.exports ? e.exports = S : t.md5 = S;
|
|
7010
7070
|
})(Ql);
|
|
@@ -7129,7 +7189,7 @@ const ht = (e) => no(e).slice(-3), oo = (e, t, l, a) => (!e || !Array.isArray(e)
|
|
|
7129
7189
|
defaultValue: e.addModalTitle
|
|
7130
7190
|
})), e != null && e.updateTitle && (e.updateTitle = t(`${l}_${e.updateTitle}`, {
|
|
7131
7191
|
defaultValue: e.updateTitle
|
|
7132
|
-
})), e),
|
|
7192
|
+
})), e), Ie = (e, t, l, a) => (e && Array.isArray(e) && e.forEach((n) => {
|
|
7133
7193
|
n.name && (n.name = t(`${l}_${n.name}`, {
|
|
7134
7194
|
defaultValue: n.name
|
|
7135
7195
|
}));
|
|
@@ -7153,11 +7213,11 @@ const ht = (e) => no(e).slice(-3), oo = (e, t, l, a) => (!e || !Array.isArray(e)
|
|
|
7153
7213
|
formModalConfig: ze,
|
|
7154
7214
|
updateFormModalConfig: ze,
|
|
7155
7215
|
titleList: co,
|
|
7156
|
-
btn_list:
|
|
7157
|
-
head_btn_list:
|
|
7158
|
-
batch_update_list:
|
|
7216
|
+
btn_list: Ie,
|
|
7217
|
+
head_btn_list: Ie,
|
|
7218
|
+
batch_update_list: Ie
|
|
7159
7219
|
}, po = (e, t, l) => {
|
|
7160
|
-
if (!
|
|
7220
|
+
if (!W().VITE_APP_ENABLE_ZH_EN)
|
|
7161
7221
|
return e;
|
|
7162
7222
|
const n = Bl(e), i = n.i18n;
|
|
7163
7223
|
return Object.keys(n).forEach((o) => {
|
|
@@ -7179,7 +7239,7 @@ const ht = (e) => no(e).slice(-3), oo = (e, t, l, a) => (!e || !Array.isArray(e)
|
|
|
7179
7239
|
}, ue = (e, t) => {
|
|
7180
7240
|
if (!t)
|
|
7181
7241
|
return e;
|
|
7182
|
-
const l =
|
|
7242
|
+
const l = te.cloneDeep(e || []), a = /* @__PURE__ */ new Map();
|
|
7183
7243
|
l.forEach((i, o) => {
|
|
7184
7244
|
delete i._key, a.set(i.name, o);
|
|
7185
7245
|
});
|
|
@@ -7190,10 +7250,10 @@ const ht = (e) => no(e).slice(-3), oo = (e, t, l, a) => (!e || !Array.isArray(e)
|
|
|
7190
7250
|
if (o !== void 0) {
|
|
7191
7251
|
const u = l[o];
|
|
7192
7252
|
i.children && u.children && (u.children = ue(u.children, i.children));
|
|
7193
|
-
const s =
|
|
7253
|
+
const s = te.cloneDeep(i);
|
|
7194
7254
|
delete s.children, Object.assign(u, s);
|
|
7195
7255
|
} else {
|
|
7196
|
-
const u =
|
|
7256
|
+
const u = te.cloneDeep(i);
|
|
7197
7257
|
l.push(u), u.children && (u.children = ue([], u.children));
|
|
7198
7258
|
}
|
|
7199
7259
|
}), l;
|
|
@@ -7202,7 +7262,7 @@ const ht = (e) => no(e).slice(-3), oo = (e, t, l, a) => (!e || !Array.isArray(e)
|
|
|
7202
7262
|
head_btn_list: ue,
|
|
7203
7263
|
batch_update_list: ue
|
|
7204
7264
|
}, fo = (e, t) => {
|
|
7205
|
-
const l =
|
|
7265
|
+
const l = te.cloneDeep(e);
|
|
7206
7266
|
Object.keys(t).forEach((a) => {
|
|
7207
7267
|
bt[a] ? l[a] = bt[a](e[a], t[a]) : l[a] = t[a];
|
|
7208
7268
|
}), Object.assign(e, l);
|
|
@@ -7247,7 +7307,7 @@ const ht = (e) => no(e).slice(-3), oo = (e, t, l, a) => (!e || !Array.isArray(e)
|
|
|
7247
7307
|
base_search_condition_config_list: _o,
|
|
7248
7308
|
searchConfig: go
|
|
7249
7309
|
}, ho = (e, t) => {
|
|
7250
|
-
const l =
|
|
7310
|
+
const l = te.cloneDeep(e);
|
|
7251
7311
|
return Object.keys(t).forEach((a) => {
|
|
7252
7312
|
vt[a] && (e[a] = vt[a](e[a], t[a]));
|
|
7253
7313
|
}), l;
|
|
@@ -7270,8 +7330,8 @@ const ht = (e) => no(e).slice(-3), oo = (e, t, l, a) => (!e || !Array.isArray(e)
|
|
|
7270
7330
|
Object.keys(e).forEach((t) => {
|
|
7271
7331
|
Ct[t] && (e[t] = Ct[t](e[t]));
|
|
7272
7332
|
});
|
|
7273
|
-
},
|
|
7274
|
-
if (Object.keys(
|
|
7333
|
+
}, he = {}, vo = () => {
|
|
7334
|
+
if (Object.keys(he).length > 0)
|
|
7275
7335
|
return;
|
|
7276
7336
|
const e = /* @__PURE__ */ Object.assign({
|
|
7277
7337
|
"/src/components/remotePages/configs/permission/permission-apiurl-2.ts": ea,
|
|
@@ -7292,7 +7352,7 @@ const ht = (e) => no(e).slice(-3), oo = (e, t, l, a) => (!e || !Array.isArray(e)
|
|
|
7292
7352
|
}), t = Wl("remotePages");
|
|
7293
7353
|
Object.assign(e, t), Object.keys(e).forEach((l) => {
|
|
7294
7354
|
const a = l.split("/"), n = a[a.length - 1].replace(".ts", "");
|
|
7295
|
-
n.endsWith("-config") || (
|
|
7355
|
+
n.endsWith("-config") || (he[n] = e[l].default);
|
|
7296
7356
|
});
|
|
7297
7357
|
}, Mo = async ({
|
|
7298
7358
|
org_id: e,
|
|
@@ -7303,8 +7363,8 @@ const ht = (e) => no(e).slice(-3), oo = (e, t, l, a) => (!e || !Array.isArray(e)
|
|
|
7303
7363
|
is_cache: i,
|
|
7304
7364
|
history_id: o
|
|
7305
7365
|
}) => {
|
|
7306
|
-
const u =
|
|
7307
|
-
|
|
7366
|
+
const u = W(), [s, d] = await Promise.all([
|
|
7367
|
+
B(
|
|
7308
7368
|
{
|
|
7309
7369
|
org_id: e,
|
|
7310
7370
|
user_id: t,
|
|
@@ -7333,7 +7393,7 @@ const ht = (e) => no(e).slice(-3), oo = (e, t, l, a) => (!e || !Array.isArray(e)
|
|
|
7333
7393
|
modalType: l,
|
|
7334
7394
|
history_id: a
|
|
7335
7395
|
}) => {
|
|
7336
|
-
const n =
|
|
7396
|
+
const n = W(), i = l.split("-")[1], u = {
|
|
7337
7397
|
flag: l + "_config",
|
|
7338
7398
|
org_id: e
|
|
7339
7399
|
};
|
|
@@ -7348,14 +7408,14 @@ const ht = (e) => no(e).slice(-3), oo = (e, t, l, a) => (!e || !Array.isArray(e)
|
|
|
7348
7408
|
api_url: `/${t}/query_${i}_list`
|
|
7349
7409
|
}, f = {};
|
|
7350
7410
|
if ([].includes(t)) {
|
|
7351
|
-
const h = await
|
|
7411
|
+
const h = await B(
|
|
7352
7412
|
u,
|
|
7353
7413
|
"/sys/get_global_custom_data_by_flag_without_org_id"
|
|
7354
7414
|
);
|
|
7355
7415
|
return f.defaultConfig = {}, f.override = null, f.serverConfig = h || {}, f;
|
|
7356
7416
|
} else {
|
|
7357
7417
|
const [h, b, m] = await Promise.all([
|
|
7358
|
-
|
|
7418
|
+
B(
|
|
7359
7419
|
s,
|
|
7360
7420
|
`/${t}/dev_get_column_config_and_remote_config_json`,
|
|
7361
7421
|
!1,
|
|
@@ -7363,31 +7423,31 @@ const ht = (e) => no(e).slice(-3), oo = (e, t, l, a) => (!e || !Array.isArray(e)
|
|
|
7363
7423
|
skip_error: !0
|
|
7364
7424
|
}
|
|
7365
7425
|
),
|
|
7366
|
-
|
|
7426
|
+
B(d, `/${t}/override_column_config`, !1, {
|
|
7367
7427
|
skip_error: !0
|
|
7368
7428
|
}),
|
|
7369
|
-
|
|
7429
|
+
B(u, "/sys/get_global_custom_data_by_flag_without_org_id")
|
|
7370
7430
|
]);
|
|
7371
7431
|
return f.defaultConfig = h || {}, f.override = b || {}, f.serverConfig = m || {}, f;
|
|
7372
7432
|
}
|
|
7373
7433
|
}, Ao = (e, t, l, a, n) => {
|
|
7374
|
-
var
|
|
7434
|
+
var T, P, M, j, S, c, C, p;
|
|
7375
7435
|
const { use_store: i = !0, to_i18n: o = !1, enable_btn: u = !1 } = n || {};
|
|
7376
7436
|
vo();
|
|
7377
7437
|
const s = i ? Ul() : null;
|
|
7378
7438
|
let d;
|
|
7379
|
-
l && s && s.cleanPageConfig(t),
|
|
7439
|
+
l && s && s.cleanPageConfig(t), he[t] == null ? (console.log("remotePages3没有组件:" + t), s && s.setCustomConfig(t, {})) : (d = { ...he[t](a) }, s && s.setCustomConfig(t, d));
|
|
7380
7440
|
const f = I({
|
|
7381
7441
|
title: "",
|
|
7382
7442
|
addModalTitle: "新建",
|
|
7383
7443
|
updateTitle: "修改",
|
|
7384
|
-
is_create:
|
|
7444
|
+
is_create: me(e + "-" + t.split("-")[1], "create_"),
|
|
7385
7445
|
// 是否有【新建】按钮
|
|
7386
|
-
is_update:
|
|
7446
|
+
is_update: me(e + "-" + t.split("-")[1], "update_"),
|
|
7387
7447
|
// 是否有【修改】按钮
|
|
7388
|
-
is_remove:
|
|
7448
|
+
is_remove: me(e + "-" + t.split("-")[1], "delete_"),
|
|
7389
7449
|
// 是否有【删除】按钮
|
|
7390
|
-
is_recover:
|
|
7450
|
+
is_recover: me(e + "-" + t.split("-")[1], "recover_")
|
|
7391
7451
|
// 是否有【恢复】按钮
|
|
7392
7452
|
}), _ = {
|
|
7393
7453
|
rules: I({}),
|
|
@@ -7397,14 +7457,14 @@ const ht = (e) => no(e).slice(-3), oo = (e, t, l, a) => (!e || !Array.isArray(e)
|
|
|
7397
7457
|
options: {}
|
|
7398
7458
|
}, h = {
|
|
7399
7459
|
is_selection: !1,
|
|
7400
|
-
addData:
|
|
7401
|
-
updateData:
|
|
7402
|
-
recoverData:
|
|
7403
|
-
removeData:
|
|
7404
|
-
countData:
|
|
7405
|
-
queryData:
|
|
7406
|
-
queryConditionGroupData:
|
|
7407
|
-
getData:
|
|
7460
|
+
addData: Q(e + "-" + t.split("-")[1], ["create_", ""]),
|
|
7461
|
+
updateData: Q(e + "-" + t.split("-")[1], ["update_", ""]),
|
|
7462
|
+
recoverData: Q(e + "-" + t.split("-")[1], ["recover_", ""]),
|
|
7463
|
+
removeData: Q(e + "-" + t.split("-")[1], ["delete_", ""]),
|
|
7464
|
+
countData: Q(e + "-" + t.split("-")[1], ["query_", "_count"]),
|
|
7465
|
+
queryData: Q(e + "-" + t.split("-")[1], ["query_", "_list"]),
|
|
7466
|
+
queryConditionGroupData: Q(e + "-" + t.split("-")[1], ["query_", "_group"]),
|
|
7467
|
+
getData: Q(e + "-" + t.split("-")[1], ["get_", ""]),
|
|
7408
7468
|
searchConfig: _,
|
|
7409
7469
|
base_search_condition_config_list: null,
|
|
7410
7470
|
default_search_condition_config_list: null,
|
|
@@ -7468,22 +7528,22 @@ const ht = (e) => no(e).slice(-3), oo = (e, t, l, a) => (!e || !Array.isArray(e)
|
|
|
7468
7528
|
if (l)
|
|
7469
7529
|
Object.assign(h, l.defaultConfig), s && s.setDefaultConfig(t, h);
|
|
7470
7530
|
else {
|
|
7471
|
-
const
|
|
7472
|
-
|
|
7531
|
+
const O = s && s.getDefaultConfig(t);
|
|
7532
|
+
O && Object.assign(h, O);
|
|
7473
7533
|
}
|
|
7474
|
-
const b =
|
|
7534
|
+
const b = te.cloneDeep(h);
|
|
7475
7535
|
let m = null;
|
|
7476
|
-
l ? (m = l.serverConfig, s && s.setServerConfig(t, m)) : m = s && s.getServerConfig(t), !(m != null && m.default_column_field) && ((
|
|
7536
|
+
l ? (m = l.serverConfig, s && s.setServerConfig(t, m)) : m = s && s.getServerConfig(t), !(m != null && m.default_column_field) && ((T = m == null ? void 0 : m.searchConfig) != null && T.default_column_field) && ((M = (P = m == null ? void 0 : m.searchConfig) == null ? void 0 : P.default_column_field) == null ? void 0 : M.length) > 0 && (m.default_column_field = m.searchConfig.default_column_field), !u && m && (delete m.btn_list, delete m.head_btn_list, delete m.batch_update_list), Object.assign(b, m);
|
|
7477
7537
|
let x = null;
|
|
7478
7538
|
if (l ? (x = l.override, s && x && s.setOverrideConfig(t, x)) : x = s && s.getOverrideConfig(t), x && ho(b, x), d && (fo(b, d), d != null && d.default_column_field && ((j = d == null ? void 0 : d.default_column_field) == null ? void 0 : j.length) > 0 ? b.default_column_field = d == null ? void 0 : d.default_column_field : (S = d == null ? void 0 : d.searchConfig) != null && S.default_column_field && ((C = (c = d == null ? void 0 : d.searchConfig) == null ? void 0 : c.default_column_field) == null ? void 0 : C.length) > 0 && (b.default_column_field = (p = d == null ? void 0 : d.searchConfig) == null ? void 0 : p.default_column_field)), s && s.setMergedConfig(t, b), b.is_stripe) {
|
|
7479
|
-
const
|
|
7480
|
-
let
|
|
7539
|
+
const O = (D) => {
|
|
7540
|
+
let K = 0;
|
|
7481
7541
|
const g = {};
|
|
7482
|
-
return
|
|
7483
|
-
y.color_index0 = 1, (g == null ? void 0 : g[y == null ? void 0 : y[b.is_stripe]]) == null && (g[y[b.is_stripe]] =
|
|
7484
|
-
}),
|
|
7485
|
-
}, V = (
|
|
7486
|
-
b.processData =
|
|
7542
|
+
return D.forEach((y) => {
|
|
7543
|
+
y.color_index0 = 1, (g == null ? void 0 : g[y == null ? void 0 : y[b.is_stripe]]) == null && (g[y[b.is_stripe]] = K, K += 1, y.color_index0 = 0), y.color_index = g[y[b.is_stripe]];
|
|
7544
|
+
}), D;
|
|
7545
|
+
}, V = (D) => D.color_index0 == 1 ? { style: { background: "rgba(85,162,235,0.3)" } } : D.color_index % 2 == 0 ? { style: { background: "#FFFFFE" } } : { style: { background: "#FAFAFA" } };
|
|
7546
|
+
b.processData = O, b.customRow = V;
|
|
7487
7547
|
}
|
|
7488
7548
|
return bo(b), o ? po(b, a, t) : b;
|
|
7489
7549
|
};
|