@utogether/udp-core 2.0.0-beta.22 → 2.0.0-beta.23
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/{403-CAQ-gKzB.js → 403-Bu1hm1tf.js} +1 -1
- package/dist/{404-Bt741znF.js → 404-BB-df9AI.js} +1 -1
- package/dist/{500-D2jT-L5U.js → 500-_ivjNAjo.js} +1 -1
- package/dist/{AuthorityInfo-rrhMImq9.js → AuthorityInfo-DTeV-2ob.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-t3TtTkNB.js → AuthorityInfo.vue_vue_type_style_index_0_lang-BlaR0Onc.js} +1 -1
- package/dist/{Company-OyHHgUiy.js → Company-B-kqHIz7.js} +3 -3
- package/dist/{CompanyPanel-D-V5PE9g.js → CompanyPanel-DyKh7m0Z.js} +1 -1
- package/dist/{Department-Do3AcdWQ.js → Department-CKsiqoIY.js} +3 -3
- package/dist/{DepartmentPanel-DIchoE6d.js → DepartmentPanel-kCSiG2Hv.js} +1 -1
- package/dist/{DesignPanel-BsiGLb2w.js → DesignPanel-dpjAWAxC.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-BsVJx8eH.js → DesignPanel.vue_vue_type_style_index_0_lang-e3mxfUBR.js} +2 -2
- package/dist/{DictView-BKnZ5JxT.js → DictView-a_uYPbX5.js} +1 -1
- package/dist/{InvOrganization-VDNOjLdb.js → InvOrganization-DRhir-02.js} +1 -1
- package/dist/{Org-C952e0fi.js → Org-CqmyMUy_.js} +1 -1
- package/dist/{Preview-dC0AaoU7.js → Preview-CXK4KxQN.js} +1 -1
- package/dist/{ReportDefine-B0ZonkeO.js → ReportDefine-BPBpVUdl.js} +1 -1
- package/dist/{ReportDesign-DR5HJeO5.js → ReportDesign-D_Cqvh_m.js} +2 -2
- package/dist/{ReportQuery-BPFvznsJ.js → ReportQuery-CPCKroWq.js} +1 -1
- package/dist/{ReportQueryFrom-CFlIzHWH.js → ReportQueryFrom-DtVN20Ou.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-C3x30JMB.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-ByBocawe.js} +1 -1
- package/dist/{ReportTemplate-BRmUyR0F.js → ReportTemplate-B3ubCMWK.js} +1 -1
- package/dist/{Role-CSIjXuu-.js → Role-Bq2GjT1k.js} +3 -3
- package/dist/{RoleAssign-C65mKTY3.js → RoleAssign-CZGTP6M1.js} +3 -3
- package/dist/{RolePanel-fXVapub8.js → RolePanel-B_2W2wLA.js} +1 -1
- package/dist/{RolePanel-T2688066.js → RolePanel-DeHHsXTQ.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-vCQj6JUM.js → RolePanel.vue_vue_type_script_setup_true_lang-D165_X8i.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-UcdeYYCU.js → RolePanel.vue_vue_type_script_setup_true_lang-F40M5JeR.js} +3 -3
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-BMX37C_H.js → ScrollPanel.vue_vue_type_style_index_0_lang-CjBEiasb.js} +1 -1
- package/dist/{Staff-BTVwMPI4.js → Staff-e7v32WE7.js} +3 -3
- package/dist/{StaffInfo-DMTV0fkA.js → StaffInfo-CO0VfxT1.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-Di6Tay8o.js → StaffInfo.vue_vue_type_script_setup_true_lang-DerORcB0.js} +1 -1
- package/dist/{StaffPanel-2NlyN2og.js → StaffPanel-ZslIuuEe.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-Dcsi9178.js → StaffPanel.vue_vue_type_script_setup_true_lang-ONDmYqiK.js} +2 -2
- package/dist/{SysUser-BPn3kj57.js → SysUser-1LJIDkLs.js} +2 -2
- package/dist/{SysUserPanel-DnQdgH26.js → SysUserPanel-DGz0upa2.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-BWhieaeS.js → SysUserPanel.vue_vue_type_script_setup_true_lang-BxDkwKk4.js} +1 -1
- package/dist/{SystemMenu-BEH6JSE4.js → SystemMenu-BJFA-7na.js} +2 -2
- package/dist/{UserInfo-BbdolDWz.js → UserInfo-DgEgNcI1.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-BWb0ey1b.js → UserInfo.vue_vue_type_style_index_0_lang-0LeXBHJO.js} +1 -1
- package/dist/{childView-D8IQ-Eik.js → childView-n3PQsXw_.js} +1 -1
- package/dist/{childView-DWjpPkND.js → childView-sWkqPxWe.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-DBXMbacv.js → childView.vue_vue_type_style_index_0_lang-DlACXm6-.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-C5JuSstn.js → childView.vue_vue_type_style_index_0_lang-XGM6istV.js} +1 -1
- package/dist/{code-rule-Ch6YNyCA.js → code-rule-B5swnIDE.js} +1 -1
- package/dist/core.es.js +1 -1
- package/dist/{cron-task--_VgTkCZ.js → cron-task-BgeQLdRW.js} +1 -1
- package/dist/{frameView-BIFR0oH0.js → frameView-B37Oqu4T.js} +1 -1
- package/dist/{index-DPTWuyo7.js → index-BLLwR2mu.js} +340 -337
- package/dist/{layout-home-adtU8Yoh.js → layout-home-mag8cpgN.js} +1 -1
- package/dist/{layoutView-qTmcDeoI.js → layoutView-D4YY2av1.js} +2 -2
- package/dist/{log-in-iYiw0kPB.js → log-in-BPUMwivh.js} +1 -1
- package/dist/{log-out-H2Kni3Qk.js → log-out-py6304lk.js} +1 -1
- package/dist/{login-C7Z-Xg5H.js → login-BITK6XJ-.js} +3 -3
- package/dist/{lov-view-CyYhwwrT.js → lov-view-Cv-0Ii-W.js} +2 -2
- package/dist/{menuInfo-BBUlFO0X.js → menuInfo-DqQdEkla.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-fUKEpjAA.js → menuInfo.vue_vue_type_style_index_0_lang-CObiQiIC.js} +1 -1
- package/dist/{pda-app-DU146LR1.js → pda-app-PLxdqt6q.js} +1 -1
- package/dist/{resource-fTfF9epk.js → resource-Dz8NFuxi.js} +1 -1
- package/dist/{su-welcome-BRFxhduP.js → su-welcome-CSWrN5Dc.js} +8 -4
- package/dist/{sys-config-Do7SIoN-.js → sys-config-BJY2IkSZ.js} +1 -1
- package/dist/{useNav-BRX5xftp.js → useNav-BT7Od00q.js} +1 -1
- package/package.json +1 -1
- package/src/api/index.ts +10 -6
- package/src/views/uhome/components/home-todo.vue +2 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as ai from "vue";
|
|
2
|
-
import { defineComponent as Ue, resolveComponent as ye, createBlock as ot, openBlock as W, withCtx as
|
|
2
|
+
import { defineComponent as Ue, resolveComponent as ye, createBlock as ot, openBlock as W, withCtx as Rt, createVNode as yt, toRaw as go, isProxy as nr, defineAsyncComponent as Aa, useAttrs as Ia, getCurrentInstance as No, ref as be, reactive as si, nextTick as Na, onUnmounted as Ma, onBeforeMount as li, createElementBlock as ie, mergeProps as Un, toHandlers as ui, unref as ci, createElementVNode as ee, normalizeClass as He, toDisplayString as mt, createCommentVNode as qe, renderSlot as or, watch as di, computed as yo, Fragment as fi, renderList as bo, normalizeStyle as un, mergeModels as rr, useModel as La, createSlots as Ba, withDirectives as Ua, vModelText as ja, h as rt, createApp as za } from "vue";
|
|
3
3
|
import { ElConfigProvider as ir } from "element-plus";
|
|
4
4
|
import { checkVersion as $a } from "version-rocket";
|
|
5
|
-
import { http as we, storageLocal as
|
|
6
|
-
import { merge as jn, toDateString as oe, clone as Re, findLastIndexOf as Ka, isEqual as sr, findIndexOf as Qa, isEmpty as
|
|
5
|
+
import { http as we, storageLocal as G, cookies as Pe, buildHierarchyTree as Mo, dbstorage as qt, isUrl as pi, openLink as qa, NProgress as Ha, VxetableRender as Va, useRender as Wa, formatRules as ar, i18nColums as Ga, warnMessage as vo, errorMessage as Ya, useGlobal as hi, deviceDetection as Xa, storageSession as Ja } from "@utogether/utils";
|
|
6
|
+
import { merge as jn, toDateString as oe, clone as Re, findLastIndexOf as Ka, isEqual as sr, findIndexOf as Qa, isEmpty as _t, getWhatDay as lt, isArray as mi, isString as at, isFunction as Za, orderBy as es, isObject as gi } from "xe-utils";
|
|
7
7
|
import { createPinia as ts, defineStore as Qt } from "pinia";
|
|
8
8
|
import { useTimeoutFn as ns } from "@vueuse/core";
|
|
9
9
|
import { createI18n as os, useI18n as Lo } from "vue-i18n";
|
|
10
10
|
import yi, { VxeUI as Ne } from "vxe-table";
|
|
11
|
-
import { VxeUI as
|
|
11
|
+
import { VxeUI as xt } from "vxe-pc-ui";
|
|
12
12
|
import { Icon as lr } from "@iconify/vue";
|
|
13
13
|
import rs from "vue-tippy";
|
|
14
14
|
import is from "element-resize-detector";
|
|
@@ -404,21 +404,24 @@ const ls = (e, t) => {
|
|
|
404
404
|
wo = Object.assign(wo, t), e.config.globalProperties.$config = Me();
|
|
405
405
|
}, Me = () => wo, us = (e = {}) => {
|
|
406
406
|
bi = e;
|
|
407
|
-
},
|
|
408
|
-
post: (e, t, n) => we.post(`${Fe()}${e}`, t, n),
|
|
409
|
-
get: (e, t, n) => we.get(`${Fe()}${e}`, t, n),
|
|
410
|
-
put: (e, t) => we.put(`${Fe()}${e}`, t),
|
|
411
|
-
delete: (e, t) => we.delete(`${Fe()}${e}`, t)
|
|
407
|
+
}, pt = () => bi, ce = () => Me().ResponsiveStorageNameSpace, cs = "menu_zh", ds = "menu_en", vi = "authorized-token", fs = "kCookies_token", ps = "kSysConfig", wi = "loginer", ep = "k-UTOGETHER-Q66!", tp = "UDP_PWSD", Zt = () => ({
|
|
408
|
+
post: (e, t, n) => we.post(`${Fe(e)}${e}`, t, n),
|
|
409
|
+
get: (e, t, n) => we.get(`${Fe(e)}${e}`, t, n),
|
|
410
|
+
put: (e, t) => we.put(`${Fe(e)}${e}`, t),
|
|
411
|
+
delete: (e, t) => we.delete(`${Fe(e)}${e}`, t)
|
|
412
412
|
}), hs = (e) => {
|
|
413
413
|
we.setRouter(e);
|
|
414
414
|
}, ms = (e) => {
|
|
415
415
|
we.setBaseUrl(e);
|
|
416
|
-
}, gs = window.location.origin + "/gateway", Fe = () =>
|
|
416
|
+
}, gs = window.location.origin + "/gateway", Fe = (e) => {
|
|
417
|
+
const t = ["/uums/", "/upfm/", "/urpt/", "/usch/"];
|
|
418
|
+
return pt().VITE_DEBUG === "true" && !t.some((n) => e.includes(n)) ? pt().VITE_DEBUG_URL : pt().VITE_BASE_URL === "origin" ? gs : pt().VITE_BASE_URL;
|
|
419
|
+
}, ys = () => ({
|
|
417
420
|
post: (e, t, n) => we.post(`${cn()}${e}`, t, n),
|
|
418
421
|
get: (e, t, n) => we.get(`${cn()}${e}`, t, n),
|
|
419
422
|
put: (e, t) => we.put(`${cn()}${e}`, t),
|
|
420
423
|
delete: (e, t) => we.delete(`${cn()}${e}`, t)
|
|
421
|
-
}), cn = () =>
|
|
424
|
+
}), cn = () => pt().VITE_DEBUG_URL, bs = Ue({
|
|
422
425
|
name: "app",
|
|
423
426
|
components: {
|
|
424
427
|
[ir.name]: ir
|
|
@@ -437,13 +440,13 @@ const ls = (e, t) => {
|
|
|
437
440
|
t[a.configCode] = a.configValue, a.fileName && (t[a.configCode] = Fe() + "/ufil" + a.configValue);
|
|
438
441
|
});
|
|
439
442
|
const n = (i = (r = e.list) == null ? void 0 : r.find((a) => a.configCode === "title")) == null ? void 0 : i.configValue;
|
|
440
|
-
t.title = n || "U-DP",
|
|
443
|
+
t.title = n || "U-DP", G.setItem(ps, t), this.pollingVersion(t.title);
|
|
441
444
|
});
|
|
442
445
|
},
|
|
443
446
|
methods: {
|
|
444
447
|
// / 版本实时更新检测,只作用于线上环境
|
|
445
448
|
pollingVersion(e) {
|
|
446
|
-
const t =
|
|
449
|
+
const t = pt().VITE_ROUTER_HISTORY;
|
|
447
450
|
$a(
|
|
448
451
|
{
|
|
449
452
|
pollingTime: 3e5,
|
|
@@ -472,15 +475,15 @@ function vs(e, t, n, o, r, i) {
|
|
|
472
475
|
"z-index": 5555,
|
|
473
476
|
locale: e.currentLocale
|
|
474
477
|
}, {
|
|
475
|
-
default:
|
|
476
|
-
|
|
478
|
+
default: Rt(() => [
|
|
479
|
+
yt(a)
|
|
477
480
|
]),
|
|
478
481
|
_: 1
|
|
479
482
|
}, 8, ["locale"]);
|
|
480
483
|
}
|
|
481
|
-
const ws = /* @__PURE__ */ zn(bs, [["render", vs]]),
|
|
484
|
+
const ws = /* @__PURE__ */ zn(bs, [["render", vs]]), vt = ts();
|
|
482
485
|
function Es(e) {
|
|
483
|
-
e.use(
|
|
486
|
+
e.use(vt);
|
|
484
487
|
}
|
|
485
488
|
const en = [
|
|
486
489
|
{
|
|
@@ -1355,34 +1358,34 @@ for (const e in dr)
|
|
|
1355
1358
|
yn[e.replace(/(\.\/module\/|\.ts)/g, "")] = dr[e].default;
|
|
1356
1359
|
const fr = Object.keys(yn).filter((e) => yn[e]).map((e) => yn[e]), Ns = {
|
|
1357
1360
|
zh: {
|
|
1358
|
-
...
|
|
1361
|
+
...G.getItem(cs),
|
|
1359
1362
|
message: jn(As, ...fr.map((e) => e.zh.message))
|
|
1360
1363
|
},
|
|
1361
1364
|
en: {
|
|
1362
|
-
...
|
|
1365
|
+
...G.getItem(ds),
|
|
1363
1366
|
message: Object.assign(Is, ...fr.map((e) => e.en.message))
|
|
1364
1367
|
}
|
|
1365
1368
|
};
|
|
1366
|
-
let
|
|
1369
|
+
let Ft = null;
|
|
1367
1370
|
function Ms(e, t = { messages: {} }) {
|
|
1368
1371
|
var n;
|
|
1369
|
-
|
|
1372
|
+
Ft = os({
|
|
1370
1373
|
legacy: !1,
|
|
1371
|
-
locale: ((n =
|
|
1374
|
+
locale: ((n = G.getItem(`${ce()}locale`)) == null ? void 0 : n.locale) ?? "zh",
|
|
1372
1375
|
fallbackLocale: "en",
|
|
1373
1376
|
globalInjection: !0,
|
|
1374
1377
|
messages: jn(Ns, t.messages)
|
|
1375
|
-
}), Ne.setLanguage("zh-CN"), e.use(
|
|
1378
|
+
}), Ne.setLanguage("zh-CN"), e.use(Ft);
|
|
1376
1379
|
}
|
|
1377
|
-
const bn = () =>
|
|
1380
|
+
const bn = () => Ft;
|
|
1378
1381
|
function xi(e = "", t = !0) {
|
|
1379
1382
|
if (!e)
|
|
1380
1383
|
return "";
|
|
1381
1384
|
if (typeof e == "object") {
|
|
1382
|
-
const n =
|
|
1385
|
+
const n = Ft.global.locale;
|
|
1383
1386
|
return e[n.value];
|
|
1384
1387
|
}
|
|
1385
|
-
return t ?
|
|
1388
|
+
return t ? Ft.global.t.call(Ft.global, e) : e;
|
|
1386
1389
|
}
|
|
1387
1390
|
const Ls = Qt("udp-system", {
|
|
1388
1391
|
state: () => ({
|
|
@@ -1503,7 +1506,7 @@ const Ls = Qt("udp-system", {
|
|
|
1503
1506
|
setDict(e) {
|
|
1504
1507
|
this.dicts = e, e == null || e.forEach((t) => {
|
|
1505
1508
|
this.dataDict[t.dictCode] = t;
|
|
1506
|
-
}),
|
|
1509
|
+
}), G.setItem("kLov", this.dataDict);
|
|
1507
1510
|
},
|
|
1508
1511
|
// 系统信息
|
|
1509
1512
|
setSystemInfo(e) {
|
|
@@ -1519,8 +1522,8 @@ const Ls = Qt("udp-system", {
|
|
|
1519
1522
|
}
|
|
1520
1523
|
}
|
|
1521
1524
|
});
|
|
1522
|
-
function
|
|
1523
|
-
return Ls(
|
|
1525
|
+
function Ht() {
|
|
1526
|
+
return Ls(vt);
|
|
1524
1527
|
}
|
|
1525
1528
|
function Bs(e, t) {
|
|
1526
1529
|
return /* @__PURE__ */ Ue({
|
|
@@ -1529,7 +1532,7 @@ function Bs(e, t) {
|
|
|
1529
1532
|
asyncComponent: t
|
|
1530
1533
|
},
|
|
1531
1534
|
setup() {
|
|
1532
|
-
return () =>
|
|
1535
|
+
return () => yt(ye("async-component"), null, null);
|
|
1533
1536
|
}
|
|
1534
1537
|
});
|
|
1535
1538
|
}
|
|
@@ -1542,7 +1545,7 @@ const Us = () => we.get(`${Fe()}/uums/roleMenu`), Di = () => we.get(`${Fe()}/upf
|
|
|
1542
1545
|
operatingSystem: Ei(t)
|
|
1543
1546
|
};
|
|
1544
1547
|
return we.request("post", `${Fe()}/upfm/v1/userMonitor`, r);
|
|
1545
|
-
}, zs = () => import("./layoutView-
|
|
1548
|
+
}, zs = () => import("./layoutView-D4YY2av1.js"), $s = () => import("./frameView-B37Oqu4T.js");
|
|
1546
1549
|
function nn(e) {
|
|
1547
1550
|
return e.forEach((t) => {
|
|
1548
1551
|
var n, o;
|
|
@@ -1592,7 +1595,7 @@ function qs() {
|
|
|
1592
1595
|
function Hs() {
|
|
1593
1596
|
var t, n;
|
|
1594
1597
|
const e = bn();
|
|
1595
|
-
(t = e.global) == null || t.mergeLocaleMessage("zh",
|
|
1598
|
+
(t = e.global) == null || t.mergeLocaleMessage("zh", kt.zh), (n = e.global) == null || n.mergeLocaleMessage("en", kt.en), G.setItem("menu_zh", kt.zh), G.setItem("menu_en", kt.en);
|
|
1596
1599
|
}
|
|
1597
1600
|
function hr(e) {
|
|
1598
1601
|
if (e != null && e.length) {
|
|
@@ -1601,7 +1604,7 @@ function hr(e) {
|
|
|
1601
1604
|
const o = [], r = [];
|
|
1602
1605
|
e[t].children.forEach((i) => {
|
|
1603
1606
|
i.menuCategory !== "1" ? o.push(i) : r.push(i);
|
|
1604
|
-
}), e[t].children = r,
|
|
1607
|
+
}), e[t].children = r, Ht().setHomeMenus(o);
|
|
1605
1608
|
}
|
|
1606
1609
|
const n = Re(Pi(e), !0);
|
|
1607
1610
|
Hs(), $n(n).map((o) => {
|
|
@@ -1620,15 +1623,15 @@ function hr(e) {
|
|
|
1620
1623
|
async function Vs(e) {
|
|
1621
1624
|
let t = [];
|
|
1622
1625
|
const n = `U-${e}-ROUTES`;
|
|
1623
|
-
return Me().CachingAsyncRoutes && await
|
|
1624
|
-
|
|
1626
|
+
return Me().CachingAsyncRoutes && await qt.getItem(n).then((o) => t = o), Di().then((o) => Ht().setDict(o)), await Us().then(async (o) => {
|
|
1627
|
+
Ht().setSystemInfo(o), await Zt().get("/uums/cusOrganization", { pageSize: 100, pageNum: 1, orgId: o.orgId }).then((r) => Ht().setInvOrgList((r == null ? void 0 : r.list) || []));
|
|
1625
1628
|
}), t != null && t.length ? new Promise((o) => {
|
|
1626
1629
|
hr(t), pr({ userName: e }).then((r) => {
|
|
1627
|
-
|
|
1630
|
+
qt.setItem(n, r);
|
|
1628
1631
|
}), o(ae);
|
|
1629
1632
|
}) : new Promise((o) => {
|
|
1630
1633
|
pr({ userName: e }).then((r) => {
|
|
1631
|
-
hr(Re(r, !0)),
|
|
1634
|
+
hr(Re(r, !0)), qt.setItem(n, r), o(ae);
|
|
1632
1635
|
});
|
|
1633
1636
|
});
|
|
1634
1637
|
}
|
|
@@ -1670,7 +1673,7 @@ function _i({ name: e }, t) {
|
|
|
1670
1673
|
}, 100);
|
|
1671
1674
|
}
|
|
1672
1675
|
}
|
|
1673
|
-
const
|
|
1676
|
+
const kt = {
|
|
1674
1677
|
zh: {},
|
|
1675
1678
|
en: {}
|
|
1676
1679
|
}, Fi = [], Pi = (e) => {
|
|
@@ -1689,7 +1692,7 @@ const Rt = {
|
|
|
1689
1692
|
// 审批流设计页面和审批页面的code写死,只需配置页面即可(保底方式)
|
|
1690
1693
|
// showLink: !['UDPFlowTask'].includes(v.menuCode) ? null : false
|
|
1691
1694
|
showLink: i.showLink !== "N"
|
|
1692
|
-
}, i.hiddenTag = null, Object.assign(i.meta, { icon: a, permissionCode: s, extraIcon: u, frameSrc: l }),
|
|
1695
|
+
}, i.hiddenTag = null, Object.assign(i.meta, { icon: a, permissionCode: s, extraIcon: u, frameSrc: l }), kt.zh[i.i18nField] = i.menuName || i.menuNameEn, kt.en[i.i18nField] = i.menuNameEn || i.menuName, i.name = i.menuCode || i.name, i.path = i.menuPath || i.path, !i.parentId)
|
|
1693
1696
|
i.component = zs;
|
|
1694
1697
|
else if ((o = i.meta) != null && o.frameSrc)
|
|
1695
1698
|
i.component = $s;
|
|
@@ -1730,15 +1733,15 @@ function Ws(e, t = !0) {
|
|
|
1730
1733
|
});
|
|
1731
1734
|
}
|
|
1732
1735
|
}
|
|
1733
|
-
function
|
|
1736
|
+
function Gs(e) {
|
|
1734
1737
|
return e != null && e.children && e.children.length > 1 ? e.redirect ? e.children.filter((t) => t.path === e.redirect)[0] : e.children[0] : e;
|
|
1735
1738
|
}
|
|
1736
1739
|
function sp(e = !1) {
|
|
1737
1740
|
var n;
|
|
1738
|
-
const t =
|
|
1741
|
+
const t = Gs((n = pe().wholeMenus[0]) == null ? void 0 : n.children[0]);
|
|
1739
1742
|
return e && ke().handleTags("push", t), t;
|
|
1740
1743
|
}
|
|
1741
|
-
function
|
|
1744
|
+
function Ys() {
|
|
1742
1745
|
return Fi;
|
|
1743
1746
|
}
|
|
1744
1747
|
const Xs = Qt("udp-permission", {
|
|
@@ -1810,18 +1813,18 @@ const Xs = Qt("udp-permission", {
|
|
|
1810
1813
|
}
|
|
1811
1814
|
});
|
|
1812
1815
|
function pe() {
|
|
1813
|
-
return Xs(
|
|
1816
|
+
return Xs(vt);
|
|
1814
1817
|
}
|
|
1815
1818
|
const Ai = Qt("udp-multiTags", {
|
|
1816
1819
|
state: () => {
|
|
1817
1820
|
var e, t;
|
|
1818
1821
|
return {
|
|
1819
1822
|
// 存储标签页信息(路由信息)
|
|
1820
|
-
multiTags: (e =
|
|
1823
|
+
multiTags: (e = G.getItem(`${ce()}configure`)) != null && e.multiTagsCache ? G.getItem(`${ce()}tags`) : [...en, ...pe().flatteningRoutes.filter((n) => {
|
|
1821
1824
|
var o;
|
|
1822
1825
|
return (o = n == null ? void 0 : n.meta) == null ? void 0 : o.fixedTag;
|
|
1823
1826
|
})],
|
|
1824
|
-
multiTagsCache: (t =
|
|
1827
|
+
multiTagsCache: (t = G.getItem(`${ce()}configure`)) == null ? void 0 : t.multiTagsCache
|
|
1825
1828
|
};
|
|
1826
1829
|
},
|
|
1827
1830
|
getters: {
|
|
@@ -1831,10 +1834,10 @@ const Ai = Qt("udp-multiTags", {
|
|
|
1831
1834
|
},
|
|
1832
1835
|
actions: {
|
|
1833
1836
|
multiTagsCacheChange(e) {
|
|
1834
|
-
this.multiTagsCache = e, e ?
|
|
1837
|
+
this.multiTagsCache = e, e ? G.setItem(`${ce()}tags`, this.multiTags) : G.removeItem(`${ce()}tags`);
|
|
1835
1838
|
},
|
|
1836
1839
|
tagsCache(e) {
|
|
1837
|
-
this.getMultiTagsCache &&
|
|
1840
|
+
this.getMultiTagsCache && G.setItem(`${ce()}tags`, e);
|
|
1838
1841
|
},
|
|
1839
1842
|
handleTags(e, t, n) {
|
|
1840
1843
|
var o, r, i, a;
|
|
@@ -1872,9 +1875,9 @@ const Ai = Qt("udp-multiTags", {
|
|
|
1872
1875
|
}
|
|
1873
1876
|
});
|
|
1874
1877
|
function ke() {
|
|
1875
|
-
return Ai(
|
|
1878
|
+
return Ai(vt);
|
|
1876
1879
|
}
|
|
1877
|
-
const Js = () => import("./layoutView-
|
|
1880
|
+
const Js = () => import("./layoutView-D4YY2av1.js"), Ks = {
|
|
1878
1881
|
path: "/",
|
|
1879
1882
|
name: "home",
|
|
1880
1883
|
component: Js,
|
|
@@ -1888,14 +1891,14 @@ const Js = () => import("./layoutView-qTmcDeoI.js"), Ks = {
|
|
|
1888
1891
|
{
|
|
1889
1892
|
path: "/welcome",
|
|
1890
1893
|
name: "UdpWelcome",
|
|
1891
|
-
component: () => import("./su-welcome-
|
|
1894
|
+
component: () => import("./su-welcome-CSWrN5Dc.js"),
|
|
1892
1895
|
meta: {
|
|
1893
1896
|
title: "message.udp.home",
|
|
1894
1897
|
keepAlive: !0
|
|
1895
1898
|
}
|
|
1896
1899
|
}
|
|
1897
1900
|
]
|
|
1898
|
-
}, Qs = () => import("./layoutView-
|
|
1901
|
+
}, Qs = () => import("./layoutView-D4YY2av1.js"), Zs = {
|
|
1899
1902
|
path: "/error",
|
|
1900
1903
|
name: "error",
|
|
1901
1904
|
component: Qs,
|
|
@@ -1910,17 +1913,17 @@ const Js = () => import("./layoutView-qTmcDeoI.js"), Ks = {
|
|
|
1910
1913
|
{
|
|
1911
1914
|
path: "/error/403",
|
|
1912
1915
|
name: "403",
|
|
1913
|
-
component: () => import("./403-
|
|
1916
|
+
component: () => import("./403-Bu1hm1tf.js"),
|
|
1914
1917
|
meta: {
|
|
1915
1918
|
title: "message.udp.fourZeroThree"
|
|
1916
1919
|
}
|
|
1917
1920
|
}
|
|
1918
1921
|
]
|
|
1919
|
-
}, el = () => import("./layoutView-
|
|
1922
|
+
}, el = () => import("./layoutView-D4YY2av1.js"), Jt = [
|
|
1920
1923
|
{
|
|
1921
1924
|
path: "/login",
|
|
1922
1925
|
name: "login",
|
|
1923
|
-
component: () => import("./login-
|
|
1926
|
+
component: () => import("./login-BITK6XJ-.js"),
|
|
1924
1927
|
meta: {
|
|
1925
1928
|
title: "message.udp.login",
|
|
1926
1929
|
showLink: !1
|
|
@@ -1929,7 +1932,7 @@ const Js = () => import("./layoutView-qTmcDeoI.js"), Ks = {
|
|
|
1929
1932
|
{
|
|
1930
1933
|
path: "/error/404",
|
|
1931
1934
|
name: "404",
|
|
1932
|
-
component: () => import("./404-
|
|
1935
|
+
component: () => import("./404-BB-df9AI.js"),
|
|
1933
1936
|
meta: {
|
|
1934
1937
|
title: "message.udp.fourZeroFour",
|
|
1935
1938
|
showLink: !1
|
|
@@ -1938,7 +1941,7 @@ const Js = () => import("./layoutView-qTmcDeoI.js"), Ks = {
|
|
|
1938
1941
|
{
|
|
1939
1942
|
path: "/error/500",
|
|
1940
1943
|
name: "500",
|
|
1941
|
-
component: () => import("./500-
|
|
1944
|
+
component: () => import("./500-_ivjNAjo.js"),
|
|
1942
1945
|
meta: {
|
|
1943
1946
|
title: "message.udp.five",
|
|
1944
1947
|
showLink: !1
|
|
@@ -1963,7 +1966,7 @@ const Js = () => import("./layoutView-qTmcDeoI.js"), Ks = {
|
|
|
1963
1966
|
}
|
|
1964
1967
|
]
|
|
1965
1968
|
}
|
|
1966
|
-
], tl = () => import("./layoutView-
|
|
1969
|
+
], tl = () => import("./layoutView-D4YY2av1.js"), nl = {
|
|
1967
1970
|
component: tl,
|
|
1968
1971
|
path: "/utask",
|
|
1969
1972
|
redirect: "/utask/task/flow-task",
|
|
@@ -1987,48 +1990,48 @@ const Js = () => import("./layoutView-qTmcDeoI.js"), Ks = {
|
|
|
1987
1990
|
}
|
|
1988
1991
|
]
|
|
1989
1992
|
}, ol = /* @__PURE__ */ Object.assign({
|
|
1990
|
-
"../views/organization/company/Company.vue": () => import("./Company-
|
|
1991
|
-
"../views/organization/company/CompanyPanel.vue": () => import("./CompanyPanel-
|
|
1992
|
-
"../views/organization/department/Department.vue": () => import("./Department-
|
|
1993
|
-
"../views/organization/department/DepartmentPanel.vue": () => import("./DepartmentPanel-
|
|
1994
|
-
"../views/organization/inv-org/InvOrganization.vue": () => import("./InvOrganization-
|
|
1995
|
-
"../views/organization/org/Org.vue": () => import("./Org-
|
|
1996
|
-
"../views/organization/staff/Staff.vue": () => import("./Staff-
|
|
1997
|
-
"../views/organization/staff/StaffInfo.vue": () => import("./StaffInfo-
|
|
1998
|
-
"../views/organization/staff/StaffPanel.vue": () => import("./StaffPanel-
|
|
1999
|
-
"../views/system/cron/cron-task.vue": () => import("./cron-task
|
|
2000
|
-
"../views/system/layout/layout-home.vue": () => import("./layout-home-
|
|
1993
|
+
"../views/organization/company/Company.vue": () => import("./Company-B-kqHIz7.js"),
|
|
1994
|
+
"../views/organization/company/CompanyPanel.vue": () => import("./CompanyPanel-DyKh7m0Z.js"),
|
|
1995
|
+
"../views/organization/department/Department.vue": () => import("./Department-CKsiqoIY.js"),
|
|
1996
|
+
"../views/organization/department/DepartmentPanel.vue": () => import("./DepartmentPanel-kCSiG2Hv.js"),
|
|
1997
|
+
"../views/organization/inv-org/InvOrganization.vue": () => import("./InvOrganization-DRhir-02.js"),
|
|
1998
|
+
"../views/organization/org/Org.vue": () => import("./Org-CqmyMUy_.js"),
|
|
1999
|
+
"../views/organization/staff/Staff.vue": () => import("./Staff-e7v32WE7.js"),
|
|
2000
|
+
"../views/organization/staff/StaffInfo.vue": () => import("./StaffInfo-CO0VfxT1.js"),
|
|
2001
|
+
"../views/organization/staff/StaffPanel.vue": () => import("./StaffPanel-ZslIuuEe.js"),
|
|
2002
|
+
"../views/system/cron/cron-task.vue": () => import("./cron-task-BgeQLdRW.js"),
|
|
2003
|
+
"../views/system/layout/layout-home.vue": () => import("./layout-home-mag8cpgN.js"),
|
|
2001
2004
|
"../views/system/menu/AuthorityPanel.vue": () => import("./AuthorityPanel-CRlAwbaI.js"),
|
|
2002
|
-
"../views/system/menu/SystemMenu.vue": () => import("./SystemMenu-
|
|
2003
|
-
"../views/system/menu/menuInfo.vue": () => import("./menuInfo-
|
|
2004
|
-
"../views/system/role-assign/RoleAssign.vue": () => import("./RoleAssign-
|
|
2005
|
-
"../views/system/role-assign/RolePanel.vue": () => import("./RolePanel-
|
|
2006
|
-
"../views/system/role/AuthorityInfo.vue": () => import("./AuthorityInfo-
|
|
2007
|
-
"../views/system/role/Role.vue": () => import("./Role-
|
|
2008
|
-
"../views/system/role/RolePanel.vue": () => import("./RolePanel-
|
|
2009
|
-
"../views/system/role/UserInfo.vue": () => import("./UserInfo-
|
|
2010
|
-
"../views/system/sys/sys-config.vue": () => import("./sys-config-
|
|
2011
|
-
"../views/system/sysUser/SysUser.vue": () => import("./SysUser-
|
|
2012
|
-
"../views/system/sysUser/SysUserPanel.vue": () => import("./SysUserPanel-
|
|
2013
|
-
"../views/uapp/pda/pda-app.vue": () => import("./pda-app-
|
|
2014
|
-
"../views/udev/coderule/code-rule.vue": () => import("./code-rule-
|
|
2015
|
-
"../views/udev/dict/DictView.vue": () => import("./DictView-
|
|
2016
|
-
"../views/udev/dict/childView.vue": () => import("./childView-
|
|
2017
|
-
"../views/udev/lov/childView.vue": () => import("./childView-
|
|
2018
|
-
"../views/udev/lov/lov-view.vue": () => import("./lov-view-
|
|
2005
|
+
"../views/system/menu/SystemMenu.vue": () => import("./SystemMenu-BJFA-7na.js"),
|
|
2006
|
+
"../views/system/menu/menuInfo.vue": () => import("./menuInfo-DqQdEkla.js"),
|
|
2007
|
+
"../views/system/role-assign/RoleAssign.vue": () => import("./RoleAssign-CZGTP6M1.js"),
|
|
2008
|
+
"../views/system/role-assign/RolePanel.vue": () => import("./RolePanel-DeHHsXTQ.js"),
|
|
2009
|
+
"../views/system/role/AuthorityInfo.vue": () => import("./AuthorityInfo-DTeV-2ob.js"),
|
|
2010
|
+
"../views/system/role/Role.vue": () => import("./Role-Bq2GjT1k.js"),
|
|
2011
|
+
"../views/system/role/RolePanel.vue": () => import("./RolePanel-B_2W2wLA.js"),
|
|
2012
|
+
"../views/system/role/UserInfo.vue": () => import("./UserInfo-DgEgNcI1.js"),
|
|
2013
|
+
"../views/system/sys/sys-config.vue": () => import("./sys-config-BJY2IkSZ.js"),
|
|
2014
|
+
"../views/system/sysUser/SysUser.vue": () => import("./SysUser-1LJIDkLs.js"),
|
|
2015
|
+
"../views/system/sysUser/SysUserPanel.vue": () => import("./SysUserPanel-DGz0upa2.js"),
|
|
2016
|
+
"../views/uapp/pda/pda-app.vue": () => import("./pda-app-PLxdqt6q.js"),
|
|
2017
|
+
"../views/udev/coderule/code-rule.vue": () => import("./code-rule-B5swnIDE.js"),
|
|
2018
|
+
"../views/udev/dict/DictView.vue": () => import("./DictView-a_uYPbX5.js"),
|
|
2019
|
+
"../views/udev/dict/childView.vue": () => import("./childView-sWkqPxWe.js"),
|
|
2020
|
+
"../views/udev/lov/childView.vue": () => import("./childView-n3PQsXw_.js"),
|
|
2021
|
+
"../views/udev/lov/lov-view.vue": () => import("./lov-view-Cv-0Ii-W.js"),
|
|
2019
2022
|
"../views/udev/wx/wecom-push.vue": () => import("./wecom-push-DR7NsNro.js"),
|
|
2020
|
-
"../views/upms/interface/log-in.vue": () => import("./log-in-
|
|
2021
|
-
"../views/upms/interface/log-out.vue": () => import("./log-out-
|
|
2023
|
+
"../views/upms/interface/log-in.vue": () => import("./log-in-BPUMwivh.js"),
|
|
2024
|
+
"../views/upms/interface/log-out.vue": () => import("./log-out-py6304lk.js"),
|
|
2022
2025
|
"../views/upms/user/login-log.vue": () => import("./login-log-BEHYT0v0.js"),
|
|
2023
2026
|
"../views/urpt/dataSet/DataSet.vue": () => import("./DataSet-DT-rGICv.js"),
|
|
2024
|
-
"../views/urpt/design/DesignPanel.vue": () => import("./DesignPanel-
|
|
2025
|
-
"../views/urpt/design/Preview.vue": () => import("./Preview-
|
|
2026
|
-
"../views/urpt/design/ReportDesign.vue": () => import("./ReportDesign-
|
|
2027
|
-
"../views/urpt/query/ReportQuery.vue": () => import("./ReportQuery-
|
|
2028
|
-
"../views/urpt/query/ReportQueryFrom.vue": () => import("./ReportQueryFrom-
|
|
2029
|
-
"../views/urpt/report-request/ReportDefine.vue": () => import("./ReportDefine-
|
|
2030
|
-
"../views/urpt/static-resource/resource.vue": () => import("./resource-
|
|
2031
|
-
"../views/urpt/template/ReportTemplate.vue": () => import("./ReportTemplate-
|
|
2027
|
+
"../views/urpt/design/DesignPanel.vue": () => import("./DesignPanel-dpjAWAxC.js"),
|
|
2028
|
+
"../views/urpt/design/Preview.vue": () => import("./Preview-CXK4KxQN.js"),
|
|
2029
|
+
"../views/urpt/design/ReportDesign.vue": () => import("./ReportDesign-D_Cqvh_m.js"),
|
|
2030
|
+
"../views/urpt/query/ReportQuery.vue": () => import("./ReportQuery-CPCKroWq.js"),
|
|
2031
|
+
"../views/urpt/query/ReportQueryFrom.vue": () => import("./ReportQueryFrom-DtVN20Ou.js"),
|
|
2032
|
+
"../views/urpt/report-request/ReportDefine.vue": () => import("./ReportDefine-BPBpVUdl.js"),
|
|
2033
|
+
"../views/urpt/static-resource/resource.vue": () => import("./resource-Dz8NFuxi.js"),
|
|
2034
|
+
"../views/urpt/template/ReportTemplate.vue": () => import("./ReportTemplate-B3ubCMWK.js")
|
|
2032
2035
|
}), rl = Jt, Bo = [Ks, Zs, nl], il = Oi(
|
|
2033
2036
|
$n(Mo(nn(Bo)))
|
|
2034
2037
|
), al = nn(Bo).concat(...Jt), lp = Object.keys(Jt).map((e) => Jt[e].path), sl = /* @__PURE__ */ new Set();
|
|
@@ -2067,7 +2070,7 @@ const fl = ["/login"], pl = (e, t, n) => {
|
|
|
2067
2070
|
ke().handleTags("push", { path: m, name: p, meta: x });
|
|
2068
2071
|
}
|
|
2069
2072
|
}
|
|
2070
|
-
|
|
2073
|
+
_t(e.name) && l.push(e.fullPath);
|
|
2071
2074
|
}), t.fullPath === "/" && e.fullPath === "/login" && !((u = e.query) != null && u.tokenExpire) ? (e.path = "/welcome", e.fullPath = "/welcome", e.name = "UdpWelcome") : t.fullPath === "/" && e.path === "/workflow/approve/index" && (e.path = "/welcome", e.fullPath = "/welcome", e.name = "UdpWelcome", e.query = {}), i();
|
|
2072
2075
|
};
|
|
2073
2076
|
Va(yi, { serviceApi: Zt(), i18n: xi });
|
|
@@ -2295,15 +2298,15 @@ function Ve(e) {
|
|
|
2295
2298
|
if (typeof window < "u" && window.navigator)
|
|
2296
2299
|
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
2297
2300
|
}
|
|
2298
|
-
var
|
|
2301
|
+
var Ge = Ve(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), on = Ve(/Edge/i), yr = Ve(/firefox/i), Vt = Ve(/safari/i) && !Ve(/chrome/i) && !Ve(/android/i), zo = Ve(/iP(ad|od|hone)/i), Ni = Ve(/chrome/i) && Ve(/android/i), Mi = {
|
|
2299
2302
|
capture: !1,
|
|
2300
2303
|
passive: !1
|
|
2301
2304
|
};
|
|
2302
2305
|
function z(e, t, n) {
|
|
2303
|
-
e.addEventListener(t, n, !
|
|
2306
|
+
e.addEventListener(t, n, !Ge && Mi);
|
|
2304
2307
|
}
|
|
2305
2308
|
function j(e, t, n) {
|
|
2306
|
-
e.removeEventListener(t, n, !
|
|
2309
|
+
e.removeEventListener(t, n, !Ge && Mi);
|
|
2307
2310
|
}
|
|
2308
2311
|
function On(e, t) {
|
|
2309
2312
|
if (t) {
|
|
@@ -2353,7 +2356,7 @@ function A(e, t, n) {
|
|
|
2353
2356
|
!(t in o) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), o[t] = n + (typeof n == "string" ? "" : "px");
|
|
2354
2357
|
}
|
|
2355
2358
|
}
|
|
2356
|
-
function
|
|
2359
|
+
function Pt(e, t) {
|
|
2357
2360
|
var n = "";
|
|
2358
2361
|
if (typeof e == "string")
|
|
2359
2362
|
n = e;
|
|
@@ -2382,7 +2385,7 @@ function Le() {
|
|
|
2382
2385
|
function re(e, t, n, o, r) {
|
|
2383
2386
|
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
2384
2387
|
var i, a, s, u, l, c, d;
|
|
2385
|
-
if (e !== window && e.parentNode && e !== Le() ? (i = e.getBoundingClientRect(), a = i.top, s = i.left, u = i.bottom, l = i.right, c = i.height, d = i.width) : (a = 0, s = 0, u = window.innerHeight, l = window.innerWidth, c = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (r = r || e.parentNode, !
|
|
2388
|
+
if (e !== window && e.parentNode && e !== Le() ? (i = e.getBoundingClientRect(), a = i.top, s = i.left, u = i.bottom, l = i.right, c = i.height, d = i.width) : (a = 0, s = 0, u = window.innerHeight, l = window.innerWidth, c = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (r = r || e.parentNode, !Ge))
|
|
2386
2389
|
do
|
|
2387
2390
|
if (r && r.getBoundingClientRect && (A(r, "transform") !== "none" || n && A(r, "position") !== "static")) {
|
|
2388
2391
|
var y = r.getBoundingClientRect();
|
|
@@ -2391,7 +2394,7 @@ function re(e, t, n, o, r) {
|
|
|
2391
2394
|
}
|
|
2392
2395
|
while (r = r.parentNode);
|
|
2393
2396
|
if (o && e !== window) {
|
|
2394
|
-
var v =
|
|
2397
|
+
var v = Pt(r || e), f = v && v.a, m = v && v.d;
|
|
2395
2398
|
v && (a /= m, s /= f, d /= f, c /= m, u = a + c, l = s + d);
|
|
2396
2399
|
}
|
|
2397
2400
|
return {
|
|
@@ -2413,7 +2416,7 @@ function vr(e, t, n) {
|
|
|
2413
2416
|
}
|
|
2414
2417
|
return !1;
|
|
2415
2418
|
}
|
|
2416
|
-
function
|
|
2419
|
+
function At(e, t, n, o) {
|
|
2417
2420
|
for (var r = 0, i = 0, a = e.children; i < a.length; ) {
|
|
2418
2421
|
if (a[i].style.display !== "none" && a[i] !== I.ghost && (o || a[i] !== I.dragged) && _e(a[i], n.draggable, e, !1)) {
|
|
2419
2422
|
if (r === t)
|
|
@@ -2441,7 +2444,7 @@ function wr(e) {
|
|
|
2441
2444
|
var t = 0, n = 0, o = Le();
|
|
2442
2445
|
if (e)
|
|
2443
2446
|
do {
|
|
2444
|
-
var r =
|
|
2447
|
+
var r = Pt(e), i = r.a, a = r.d;
|
|
2445
2448
|
t += e.scrollLeft * i, n += e.scrollTop * a;
|
|
2446
2449
|
} while (e !== o && (e = e.parentNode));
|
|
2447
2450
|
return [t, n];
|
|
@@ -2478,19 +2481,19 @@ function Fl(e, t) {
|
|
|
2478
2481
|
function Zn(e, t) {
|
|
2479
2482
|
return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
|
|
2480
2483
|
}
|
|
2481
|
-
var
|
|
2484
|
+
var Wt;
|
|
2482
2485
|
function Ui(e, t) {
|
|
2483
2486
|
return function() {
|
|
2484
|
-
if (!
|
|
2487
|
+
if (!Wt) {
|
|
2485
2488
|
var n = arguments, o = this;
|
|
2486
|
-
n.length === 1 ? e.call(o, n[0]) : e.apply(o, n),
|
|
2487
|
-
|
|
2489
|
+
n.length === 1 ? e.call(o, n[0]) : e.apply(o, n), Wt = setTimeout(function() {
|
|
2490
|
+
Wt = void 0;
|
|
2488
2491
|
}, t);
|
|
2489
2492
|
}
|
|
2490
2493
|
};
|
|
2491
2494
|
}
|
|
2492
2495
|
function Pl() {
|
|
2493
|
-
clearTimeout(
|
|
2496
|
+
clearTimeout(Wt), Wt = void 0;
|
|
2494
2497
|
}
|
|
2495
2498
|
function ji(e, t, n) {
|
|
2496
2499
|
e.scrollLeft += t, e.scrollTop += n;
|
|
@@ -2524,7 +2527,7 @@ function Al() {
|
|
|
2524
2527
|
});
|
|
2525
2528
|
var i = Be({}, e[e.length - 1].rect);
|
|
2526
2529
|
if (r.thisAnimationDuration) {
|
|
2527
|
-
var a =
|
|
2530
|
+
var a = Pt(r, !0);
|
|
2528
2531
|
a && (i.top -= a.f, i.left -= a.e);
|
|
2529
2532
|
}
|
|
2530
2533
|
r.fromRect = i;
|
|
@@ -2548,7 +2551,7 @@ function Al() {
|
|
|
2548
2551
|
}
|
|
2549
2552
|
var i = !1, a = 0;
|
|
2550
2553
|
e.forEach(function(s) {
|
|
2551
|
-
var u = 0, l = s.target, c = l.fromRect, d = re(l), y = l.prevFromRect, v = l.prevToRect, f = s.rect, m =
|
|
2554
|
+
var u = 0, l = s.target, c = l.fromRect, d = re(l), y = l.prevFromRect, v = l.prevToRect, f = s.rect, m = Pt(l, !0);
|
|
2552
2555
|
m && (d.top -= m.f, d.left -= m.e), l.toRect = d, l.thisAnimationDuration && Zn(y, d) && !Zn(c, d) && // Make sure animatingRect is on line between toRect & fromRect
|
|
2553
2556
|
(f.top - d.top) / (f.left - d.left) === (c.top - d.top) / (c.left - d.left) && (u = Nl(f, y, v, r.options)), Zn(d, c) || (l.prevFromRect = c, l.prevToRect = d, u || (u = r.options.animation), r.animate(l, f, d, u)), u && (i = !0, a = Math.max(a, u), clearTimeout(l.animationResetTimer), l.animationResetTimer = setTimeout(function() {
|
|
2554
2557
|
l.animationTime = 0, l.prevFromRect = null, l.fromRect = null, l.prevToRect = null, l.thisAnimationDuration = null;
|
|
@@ -2560,7 +2563,7 @@ function Al() {
|
|
|
2560
2563
|
animate: function(o, r, i, a) {
|
|
2561
2564
|
if (a) {
|
|
2562
2565
|
A(o, "transition", ""), A(o, "transform", "");
|
|
2563
|
-
var s =
|
|
2566
|
+
var s = Pt(this.el), u = s && s.a, l = s && s.d, c = (r.left - i.left) / (u || 1), d = (r.top - i.top) / (l || 1);
|
|
2564
2567
|
o.animatingX = !!c, o.animatingY = !!d, A(o, "transform", "translate3d(" + c + "px," + d + "px,0)"), this.forRepaintDummy = Il(o), A(o, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), A(o, "transform", "translate3d(0,0,0)"), typeof o.animated == "number" && clearTimeout(o.animated), o.animated = setTimeout(function() {
|
|
2565
2568
|
A(o, "transition", ""), A(o, "transform", ""), o.animated = !1, o.animatingX = !1, o.animatingY = !1;
|
|
2566
2569
|
}, a);
|
|
@@ -2574,16 +2577,16 @@ function Il(e) {
|
|
|
2574
2577
|
function Nl(e, t, n, o) {
|
|
2575
2578
|
return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top - n.top, 2) + Math.pow(t.left - n.left, 2)) * o.animation;
|
|
2576
2579
|
}
|
|
2577
|
-
var
|
|
2580
|
+
var Ct = [], eo = {
|
|
2578
2581
|
initializeByDefault: !0
|
|
2579
2582
|
}, rn = {
|
|
2580
2583
|
mount: function(t) {
|
|
2581
2584
|
for (var n in eo)
|
|
2582
2585
|
eo.hasOwnProperty(n) && !(n in t) && (t[n] = eo[n]);
|
|
2583
|
-
|
|
2586
|
+
Ct.forEach(function(o) {
|
|
2584
2587
|
if (o.pluginName === t.pluginName)
|
|
2585
2588
|
throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
|
|
2586
|
-
}),
|
|
2589
|
+
}), Ct.push(t);
|
|
2587
2590
|
},
|
|
2588
2591
|
pluginEvent: function(t, n, o) {
|
|
2589
2592
|
var r = this;
|
|
@@ -2591,7 +2594,7 @@ var St = [], eo = {
|
|
|
2591
2594
|
r.eventCanceled = !0;
|
|
2592
2595
|
};
|
|
2593
2596
|
var i = t + "Global";
|
|
2594
|
-
|
|
2597
|
+
Ct.forEach(function(a) {
|
|
2595
2598
|
n[a.pluginName] && (n[a.pluginName][i] && n[a.pluginName][i](Be({
|
|
2596
2599
|
sortable: n
|
|
2597
2600
|
}, o)), n.options[a.pluginName] && n[a.pluginName][t] && n[a.pluginName][t](Be({
|
|
@@ -2600,7 +2603,7 @@ var St = [], eo = {
|
|
|
2600
2603
|
});
|
|
2601
2604
|
},
|
|
2602
2605
|
initializePlugins: function(t, n, o, r) {
|
|
2603
|
-
|
|
2606
|
+
Ct.forEach(function(s) {
|
|
2604
2607
|
var u = s.pluginName;
|
|
2605
2608
|
if (!(!t.options[u] && !s.initializeByDefault)) {
|
|
2606
2609
|
var l = new s(t, n, t.options);
|
|
@@ -2615,13 +2618,13 @@ var St = [], eo = {
|
|
|
2615
2618
|
},
|
|
2616
2619
|
getEventProperties: function(t, n) {
|
|
2617
2620
|
var o = {};
|
|
2618
|
-
return
|
|
2621
|
+
return Ct.forEach(function(r) {
|
|
2619
2622
|
typeof r.eventProperties == "function" && We(o, r.eventProperties.call(n[r.pluginName], t));
|
|
2620
2623
|
}), o;
|
|
2621
2624
|
},
|
|
2622
2625
|
modifyOption: function(t, n, o) {
|
|
2623
2626
|
var r;
|
|
2624
|
-
return
|
|
2627
|
+
return Ct.forEach(function(i) {
|
|
2625
2628
|
t[i.pluginName] && i.optionListeners && typeof i.optionListeners[n] == "function" && (r = i.optionListeners[n].call(t[i.pluginName], o));
|
|
2626
2629
|
}), r;
|
|
2627
2630
|
}
|
|
@@ -2630,7 +2633,7 @@ function Ml(e) {
|
|
|
2630
2633
|
var t = e.sortable, n = e.rootEl, o = e.name, r = e.targetEl, i = e.cloneEl, a = e.toEl, s = e.fromEl, u = e.oldIndex, l = e.newIndex, c = e.oldDraggableIndex, d = e.newDraggableIndex, y = e.originalEvent, v = e.putSortable, f = e.extraEventProperties;
|
|
2631
2634
|
if (t = t || n && n[ve], !!t) {
|
|
2632
2635
|
var m, p = t.options, x = "on" + o.charAt(0).toUpperCase() + o.substr(1);
|
|
2633
|
-
window.CustomEvent && !
|
|
2636
|
+
window.CustomEvent && !Ge && !on ? m = new CustomEvent(o, {
|
|
2634
2637
|
bubbles: !0,
|
|
2635
2638
|
cancelable: !0
|
|
2636
2639
|
}) : (m = document.createEvent("Event"), m.initEvent(o, !0, !0)), m.to = a || n, m.from = s || n, m.item = r || n, m.clone = i, m.oldIndex = u, m.newIndex = l, m.oldDraggableIndex = c, m.newDraggableIndex = d, m.originalEvent = y, m.pullMode = v ? v.lastPutMode : void 0;
|
|
@@ -2651,16 +2654,16 @@ var Ll = ["evt"], ge = function(t, n) {
|
|
|
2651
2654
|
lastDownEl: wn,
|
|
2652
2655
|
cloneEl: J,
|
|
2653
2656
|
cloneHidden: nt,
|
|
2654
|
-
dragStarted:
|
|
2657
|
+
dragStarted: jt,
|
|
2655
2658
|
putSortable: se,
|
|
2656
2659
|
activeSortable: I.active,
|
|
2657
2660
|
originalEvent: r,
|
|
2658
|
-
oldIndex:
|
|
2659
|
-
oldDraggableIndex:
|
|
2661
|
+
oldIndex: Ot,
|
|
2662
|
+
oldDraggableIndex: Gt,
|
|
2660
2663
|
newIndex: Te,
|
|
2661
2664
|
newDraggableIndex: tt,
|
|
2662
2665
|
hideGhostForTarget: Wi,
|
|
2663
|
-
unhideGhostForTarget:
|
|
2666
|
+
unhideGhostForTarget: Gi,
|
|
2664
2667
|
cloneNowHidden: function() {
|
|
2665
2668
|
nt = !0;
|
|
2666
2669
|
},
|
|
@@ -2682,21 +2685,21 @@ function fe(e) {
|
|
|
2682
2685
|
cloneEl: J,
|
|
2683
2686
|
targetEl: S,
|
|
2684
2687
|
rootEl: X,
|
|
2685
|
-
oldIndex:
|
|
2686
|
-
oldDraggableIndex:
|
|
2688
|
+
oldIndex: Ot,
|
|
2689
|
+
oldDraggableIndex: Gt,
|
|
2687
2690
|
newIndex: Te,
|
|
2688
2691
|
newDraggableIndex: tt
|
|
2689
2692
|
}, e));
|
|
2690
2693
|
}
|
|
2691
|
-
var S, K, M, X, ft, wn, J, nt,
|
|
2694
|
+
var S, K, M, X, ft, wn, J, nt, Ot, Te, Gt, tt, dn, se, Dt = !1, _n = !1, Fn = [], ut, Oe, to, no, Er, Sr, jt, Tt, Yt, Xt = !1, fn = !1, En, le, oo = [], So = !1, Pn = [], qn = typeof document < "u", pn = zo, Cr = on || Ge ? "cssFloat" : "float", Bl = qn && !Ni && !zo && "draggable" in document.createElement("div"), qi = function() {
|
|
2692
2695
|
if (qn) {
|
|
2693
|
-
if (
|
|
2696
|
+
if (Ge)
|
|
2694
2697
|
return !1;
|
|
2695
2698
|
var e = document.createElement("x");
|
|
2696
2699
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
2697
2700
|
}
|
|
2698
2701
|
}(), Hi = function(t, n) {
|
|
2699
|
-
var o = A(t), r = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), i =
|
|
2702
|
+
var o = A(t), r = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), i = At(t, 0, n), a = At(t, 1, n), s = i && A(i), u = a && A(a), l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + re(i).width, c = u && parseInt(u.marginLeft) + parseInt(u.marginRight) + re(a).width;
|
|
2700
2703
|
if (o.display === "flex")
|
|
2701
2704
|
return o.flexDirection === "column" || o.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
2702
2705
|
if (o.display === "grid")
|
|
@@ -2741,7 +2744,7 @@ var S, K, M, X, ft, wn, J, nt, kt, Te, Wt, tt, dn, se, xt = !1, _n = !1, Fn = []
|
|
|
2741
2744
|
}), o.name = r.name, o.checkPull = n(r.pull, !0), o.checkPut = n(r.put), o.revertClone = r.revertClone, t.group = o;
|
|
2742
2745
|
}, Wi = function() {
|
|
2743
2746
|
!qi && M && A(M, "display", "none");
|
|
2744
|
-
},
|
|
2747
|
+
}, Gi = function() {
|
|
2745
2748
|
!qi && M && A(M, "display", "");
|
|
2746
2749
|
};
|
|
2747
2750
|
qn && !Ni && document.addEventListener("click", function(e) {
|
|
@@ -2809,7 +2812,7 @@ function I(e, t) {
|
|
|
2809
2812
|
y: 0
|
|
2810
2813
|
},
|
|
2811
2814
|
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
|
|
2812
|
-
supportPointer: I.supportPointer !== !1 && "PointerEvent" in window && (!
|
|
2815
|
+
supportPointer: I.supportPointer !== !1 && "PointerEvent" in window && (!Vt || zo),
|
|
2813
2816
|
emptyInsertThreshold: 5
|
|
2814
2817
|
};
|
|
2815
2818
|
rn.initializePlugins(this, e, n);
|
|
@@ -2824,7 +2827,7 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
2824
2827
|
{
|
|
2825
2828
|
constructor: I,
|
|
2826
2829
|
_isOutsideThisEl: function(t) {
|
|
2827
|
-
!this.el.contains(t) && t !== this.el && (
|
|
2830
|
+
!this.el.contains(t) && t !== this.el && (Tt = null);
|
|
2828
2831
|
},
|
|
2829
2832
|
_getDirection: function(t, n) {
|
|
2830
2833
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, t, n, S) : this.options.direction;
|
|
@@ -2832,8 +2835,8 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
2832
2835
|
_onTapStart: function(t) {
|
|
2833
2836
|
if (t.cancelable) {
|
|
2834
2837
|
var n = this, o = this.el, r = this.options, i = r.preventOnFilter, a = t.type, s = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, u = (s || t).target, l = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || u, c = r.filter;
|
|
2835
|
-
if (Xl(o), !S && !(/mousedown|pointerdown/.test(a) && t.button !== 0 || r.disabled) && !l.isContentEditable && !(!this.nativeDraggable &&
|
|
2836
|
-
if (
|
|
2838
|
+
if (Xl(o), !S && !(/mousedown|pointerdown/.test(a) && t.button !== 0 || r.disabled) && !l.isContentEditable && !(!this.nativeDraggable && Vt && u && u.tagName.toUpperCase() === "SELECT") && (u = _e(u, r.draggable, o, !1), !(u && u.animated) && wn !== u)) {
|
|
2839
|
+
if (Ot = De(u), Gt = De(u, r.draggable), typeof c == "function") {
|
|
2837
2840
|
if (c.call(this, t, u, this)) {
|
|
2838
2841
|
fe({
|
|
2839
2842
|
sortable: n,
|
|
@@ -2891,7 +2894,7 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
2891
2894
|
Bi(S, c.trim(), ro);
|
|
2892
2895
|
}), z(s, "dragover", ct), z(s, "mousemove", ct), z(s, "touchmove", ct), a.supportPointer ? (z(s, "pointerup", r._onDrop), !this.nativeDraggable && z(s, "pointercancel", r._onDrop)) : (z(s, "mouseup", r._onDrop), z(s, "touchend", r._onDrop), z(s, "touchcancel", r._onDrop)), yr && this.nativeDraggable && (this.options.touchStartThreshold = 4, S.draggable = !0), ge("delayStart", this, {
|
|
2893
2896
|
evt: t
|
|
2894
|
-
}), a.delay && (!a.delayOnTouchOnly || n) && (!this.nativeDraggable || !(on ||
|
|
2897
|
+
}), a.delay && (!a.delayOnTouchOnly || n) && (!this.nativeDraggable || !(on || Ge))) {
|
|
2895
2898
|
if (I.eventCanceled) {
|
|
2896
2899
|
this._onDrop();
|
|
2897
2900
|
return;
|
|
@@ -2922,7 +2925,7 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
2922
2925
|
}
|
|
2923
2926
|
},
|
|
2924
2927
|
_dragStarted: function(t, n) {
|
|
2925
|
-
if (
|
|
2928
|
+
if (Dt = !1, X && S) {
|
|
2926
2929
|
ge("dragStarted", this, {
|
|
2927
2930
|
evt: n
|
|
2928
2931
|
}), this.nativeDraggable && z(document, "dragover", zl);
|
|
@@ -2954,13 +2957,13 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
2954
2957
|
}
|
|
2955
2958
|
t = n;
|
|
2956
2959
|
} while (n = Li(n));
|
|
2957
|
-
|
|
2960
|
+
Gi();
|
|
2958
2961
|
}
|
|
2959
2962
|
},
|
|
2960
2963
|
_onTouchMove: function(t) {
|
|
2961
2964
|
if (ut) {
|
|
2962
|
-
var n = this.options, o = n.fallbackTolerance, r = n.fallbackOffset, i = t.touches ? t.touches[0] : t, a = M &&
|
|
2963
|
-
if (!I.active && !
|
|
2965
|
+
var n = this.options, o = n.fallbackTolerance, r = n.fallbackOffset, i = t.touches ? t.touches[0] : t, a = M && Pt(M, !0), s = M && a && a.a, u = M && a && a.d, l = pn && le && wr(le), c = (i.clientX - ut.clientX + r.x) / (s || 1) + (l ? l[0] - oo[0] : 0) / (s || 1), d = (i.clientY - ut.clientY + r.y) / (u || 1) + (l ? l[1] - oo[1] : 0) / (u || 1);
|
|
2966
|
+
if (!I.active && !Dt) {
|
|
2964
2967
|
if (o && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < o)
|
|
2965
2968
|
return;
|
|
2966
2969
|
this._onDragStart(t, !0);
|
|
@@ -3004,13 +3007,13 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
3004
3007
|
sortable: o,
|
|
3005
3008
|
name: "clone"
|
|
3006
3009
|
}));
|
|
3007
|
-
}), !n && Ce(S, i.dragClass, !0), n ? (_n = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (j(document, "mouseup", o._onDrop), j(document, "touchend", o._onDrop), j(document, "touchcancel", o._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(o, r, S)), z(document, "drop", o), A(S, "transform", "translateZ(0)")),
|
|
3010
|
+
}), !n && Ce(S, i.dragClass, !0), n ? (_n = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (j(document, "mouseup", o._onDrop), j(document, "touchend", o._onDrop), j(document, "touchcancel", o._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(o, r, S)), z(document, "drop", o), A(S, "transform", "translateZ(0)")), Dt = !0, o._dragStartId = Sn(o._dragStarted.bind(o, n, t)), z(document, "selectstart", o), jt = !0, window.getSelection().removeAllRanges(), Vt && A(document.body, "user-select", "none");
|
|
3008
3011
|
},
|
|
3009
3012
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
3010
3013
|
_onDragOver: function(t) {
|
|
3011
3014
|
var n = this.el, o = t.target, r, i, a, s = this.options, u = s.group, l = I.active, c = dn === u, d = s.sort, y = se || l, v, f = this, m = !1;
|
|
3012
3015
|
if (So) return;
|
|
3013
|
-
function p(Q,
|
|
3016
|
+
function p(Q, Ye) {
|
|
3014
3017
|
ge(Q, f, Be({
|
|
3015
3018
|
evt: t,
|
|
3016
3019
|
isOwner: c,
|
|
@@ -3026,7 +3029,7 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
3026
3029
|
return hn(X, n, S, r, Xe, re(Xe), t, V);
|
|
3027
3030
|
},
|
|
3028
3031
|
changed: h
|
|
3029
|
-
},
|
|
3032
|
+
}, Ye));
|
|
3030
3033
|
}
|
|
3031
3034
|
function x() {
|
|
3032
3035
|
p("dragOverAnimationCapture"), f.captureAnimationState(), f !== y && y.captureAnimationState();
|
|
@@ -3036,7 +3039,7 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
3036
3039
|
insertion: Q
|
|
3037
3040
|
}), Q && (c ? l._hideClone() : l._showClone(f), f !== y && (Ce(S, se ? se.options.ghostClass : l.options.ghostClass, !1), Ce(S, s.ghostClass, !0)), se !== f && f !== I.active ? se = f : f === I.active && se && (se = null), y === f && (f._ignoreWhileAnimating = o), f.animateAll(function() {
|
|
3038
3041
|
p("dragOverAnimationComplete"), f._ignoreWhileAnimating = null;
|
|
3039
|
-
}), f !== y && (y.animateAll(), y._ignoreWhileAnimating = null)), (o === S && !S.animated || o === n && !o.animated) && (
|
|
3042
|
+
}), f !== y && (y.animateAll(), y._ignoreWhileAnimating = null)), (o === S && !S.animated || o === n && !o.animated) && (Tt = null), !s.dragoverBubble && !t.rootEl && o !== document && (S.parentNode[ve]._isOutsideThisEl(t.target), !Q && ct(t)), !s.dragoverBubble && t.stopPropagation && t.stopPropagation(), m = !0;
|
|
3040
3043
|
}
|
|
3041
3044
|
function h() {
|
|
3042
3045
|
Te = De(S), tt = De(S, s.draggable), fe({
|
|
@@ -3062,7 +3065,7 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
3062
3065
|
if (E && n === t.target && (o = E), o && (i = re(o)), hn(X, n, S, r, o, i, t, !!o) !== !1)
|
|
3063
3066
|
return x(), E && E.nextSibling ? n.insertBefore(S, E.nextSibling) : n.appendChild(S), K = n, h(), D(!0);
|
|
3064
3067
|
} else if (E && Hl(t, v, this)) {
|
|
3065
|
-
var R =
|
|
3068
|
+
var R = At(n, 0, s, !0);
|
|
3066
3069
|
if (R === S)
|
|
3067
3070
|
return D(!1);
|
|
3068
3071
|
if (o = R, i = re(o), hn(X, n, S, r, o, i, t, !1) !== !1)
|
|
@@ -3070,7 +3073,7 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
3070
3073
|
} else if (o.parentNode === n) {
|
|
3071
3074
|
i = re(o);
|
|
3072
3075
|
var P = 0, F, N = S.parentNode !== n, b = !Ul(S.animated && S.toRect || r, o.animated && o.toRect || i, v), k = v ? "top" : "left", O = vr(o, "top", "top") || vr(S, "top", "top"), $ = O ? O.scrollTop : void 0;
|
|
3073
|
-
|
|
3076
|
+
Tt !== o && (F = i[k], Xt = !1, fn = !b && s.invertSwap || N), P = Wl(t, o, i, v, b ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, fn, Tt === o);
|
|
3074
3077
|
var U;
|
|
3075
3078
|
if (P !== 0) {
|
|
3076
3079
|
var w = De(S);
|
|
@@ -3080,7 +3083,7 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
3080
3083
|
}
|
|
3081
3084
|
if (P === 0 || U === o)
|
|
3082
3085
|
return D(!1);
|
|
3083
|
-
|
|
3086
|
+
Tt = o, Yt = P;
|
|
3084
3087
|
var _ = o.nextElementSibling, C = !1;
|
|
3085
3088
|
C = P === 1;
|
|
3086
3089
|
var B = hn(X, n, S, r, o, i, t, C);
|
|
@@ -3108,7 +3111,7 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
3108
3111
|
this._nulling();
|
|
3109
3112
|
return;
|
|
3110
3113
|
}
|
|
3111
|
-
|
|
3114
|
+
Dt = !1, fn = !1, Xt = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Co(this.cloneId), Co(this._dragStartId), this.nativeDraggable && (j(document, "drop", this), j(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Vt && A(document.body, "user-select", ""), A(S, "transform", ""), t && (jt && (t.cancelable && t.preventDefault(), !o.dropBubble && t.stopPropagation()), M && M.parentNode && M.parentNode.removeChild(M), (X === K || se && se.lastPutMode !== "clone") && J && J.parentNode && J.parentNode.removeChild(J), S && (this.nativeDraggable && j(S, "dragend", this), ro(S), S.style["will-change"] = "", jt && !Dt && Ce(S, se ? se.options.ghostClass : this.options.ghostClass, !1), Ce(S, this.options.chosenClass, !1), fe({
|
|
3112
3115
|
sortable: this,
|
|
3113
3116
|
name: "unchoose",
|
|
3114
3117
|
toEl: K,
|
|
@@ -3137,7 +3140,7 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
3137
3140
|
name: "sort",
|
|
3138
3141
|
toEl: K,
|
|
3139
3142
|
originalEvent: t
|
|
3140
|
-
})), se && se.save()) : Te !==
|
|
3143
|
+
})), se && se.save()) : Te !== Ot && Te >= 0 && (fe({
|
|
3141
3144
|
sortable: this,
|
|
3142
3145
|
name: "update",
|
|
3143
3146
|
toEl: K,
|
|
@@ -3147,7 +3150,7 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
3147
3150
|
name: "sort",
|
|
3148
3151
|
toEl: K,
|
|
3149
3152
|
originalEvent: t
|
|
3150
|
-
})), I.active && ((Te == null || Te === -1) && (Te =
|
|
3153
|
+
})), I.active && ((Te == null || Te === -1) && (Te = Ot, tt = Gt), fe({
|
|
3151
3154
|
sortable: this,
|
|
3152
3155
|
name: "end",
|
|
3153
3156
|
toEl: K,
|
|
@@ -3155,7 +3158,7 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
3155
3158
|
}), this.save()))), this._nulling();
|
|
3156
3159
|
},
|
|
3157
3160
|
_nulling: function() {
|
|
3158
|
-
ge("nulling", this), X = S = K = M = ft = J = wn = nt = ut = Oe =
|
|
3161
|
+
ge("nulling", this), X = S = K = M = ft = J = wn = nt = ut = Oe = jt = Te = tt = Ot = Gt = Tt = Yt = se = dn = I.dragged = I.ghost = I.clone = I.active = null, Pn.forEach(function(t) {
|
|
3159
3162
|
t.checked = !0;
|
|
3160
3163
|
}), Pn.length = to = no = 0;
|
|
3161
3164
|
},
|
|
@@ -3180,7 +3183,7 @@ I.prototype = /** @lends Sortable.prototype */
|
|
|
3180
3183
|
*/
|
|
3181
3184
|
toArray: function() {
|
|
3182
3185
|
for (var t = [], n, o = this.el.children, r = 0, i = o.length, a = this.options; r < i; r++)
|
|
3183
|
-
n = o[r], _e(n, a.draggable, this.el, !1) && t.push(n.getAttribute(a.dataIdAttr) ||
|
|
3186
|
+
n = o[r], _e(n, a.draggable, this.el, !1) && t.push(n.getAttribute(a.dataIdAttr) || Yl(n));
|
|
3184
3187
|
return t;
|
|
3185
3188
|
},
|
|
3186
3189
|
/**
|
|
@@ -3257,7 +3260,7 @@ function $l(e) {
|
|
|
3257
3260
|
}
|
|
3258
3261
|
function hn(e, t, n, o, r, i, a, s) {
|
|
3259
3262
|
var u, l = e[ve], c = l.options.onMove, d;
|
|
3260
|
-
return window.CustomEvent && !
|
|
3263
|
+
return window.CustomEvent && !Ge && !on ? u = new CustomEvent("move", {
|
|
3261
3264
|
bubbles: !0,
|
|
3262
3265
|
cancelable: !0
|
|
3263
3266
|
}) : (u = document.createEvent("Event"), u.initEvent("move", !0, !0)), u.to = t, u.from = e, u.dragged = n, u.draggedRect = o, u.related = r || t, u.relatedRect = i || re(t), u.willInsertAfter = s, u.originalEvent = a, e.dispatchEvent(u), c && (d = c.call(l, u, a)), d;
|
|
@@ -3269,7 +3272,7 @@ function ql() {
|
|
|
3269
3272
|
So = !1;
|
|
3270
3273
|
}
|
|
3271
3274
|
function Hl(e, t, n) {
|
|
3272
|
-
var o = re(
|
|
3275
|
+
var o = re(At(n.el, 0, n.options, !0)), r = $i(n.el, n.options, M), i = 10;
|
|
3273
3276
|
return t ? e.clientX < r.left - i || e.clientY < o.top && e.clientX < o.right : e.clientY < r.top - i || e.clientY < o.bottom && e.clientX < o.left;
|
|
3274
3277
|
}
|
|
3275
3278
|
function Vl(e, t, n) {
|
|
@@ -3280,19 +3283,19 @@ function Wl(e, t, n, o, r, i, a, s) {
|
|
|
3280
3283
|
var u = o ? e.clientY : e.clientX, l = o ? n.height : n.width, c = o ? n.top : n.left, d = o ? n.bottom : n.right, y = !1;
|
|
3281
3284
|
if (!a) {
|
|
3282
3285
|
if (s && En < l * r) {
|
|
3283
|
-
if (!
|
|
3286
|
+
if (!Xt && (Yt === 1 ? u > c + l * i / 2 : u < d - l * i / 2) && (Xt = !0), Xt)
|
|
3284
3287
|
y = !0;
|
|
3285
3288
|
else if (Yt === 1 ? u < c + En : u > d - En)
|
|
3286
3289
|
return -Yt;
|
|
3287
3290
|
} else if (u > c + l * (1 - r) / 2 && u < d - l * (1 - r) / 2)
|
|
3288
|
-
return
|
|
3291
|
+
return Gl(t);
|
|
3289
3292
|
}
|
|
3290
3293
|
return y = y || a, y && (u < c + l * i / 2 || u > d - l * i / 2) ? u > c + l / 2 ? 1 : -1 : 0;
|
|
3291
3294
|
}
|
|
3292
|
-
function
|
|
3295
|
+
function Gl(e) {
|
|
3293
3296
|
return De(S) < De(e) ? 1 : -1;
|
|
3294
3297
|
}
|
|
3295
|
-
function
|
|
3298
|
+
function Yl(e) {
|
|
3296
3299
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, o = 0; n--; )
|
|
3297
3300
|
o += t.charCodeAt(n);
|
|
3298
3301
|
return o.toString(36);
|
|
@@ -3311,7 +3314,7 @@ function Co(e) {
|
|
|
3311
3314
|
return clearTimeout(e);
|
|
3312
3315
|
}
|
|
3313
3316
|
qn && z(document, "touchmove", function(e) {
|
|
3314
|
-
(I.active ||
|
|
3317
|
+
(I.active || Dt) && e.cancelable && e.preventDefault();
|
|
3315
3318
|
});
|
|
3316
3319
|
I.utils = {
|
|
3317
3320
|
on: z,
|
|
@@ -3330,7 +3333,7 @@ I.utils = {
|
|
|
3330
3333
|
nextTick: Sn,
|
|
3331
3334
|
cancelNextTick: Co,
|
|
3332
3335
|
detectDirection: Hi,
|
|
3333
|
-
getChild:
|
|
3336
|
+
getChild: At,
|
|
3334
3337
|
expando: ve
|
|
3335
3338
|
};
|
|
3336
3339
|
I.get = function(e) {
|
|
@@ -3349,7 +3352,7 @@ I.create = function(e, t) {
|
|
|
3349
3352
|
return new I(e, t);
|
|
3350
3353
|
};
|
|
3351
3354
|
I.version = Ol;
|
|
3352
|
-
var ne = [],
|
|
3355
|
+
var ne = [], zt, To, xo = !1, io, ao, An, $t;
|
|
3353
3356
|
function Jl() {
|
|
3354
3357
|
function e() {
|
|
3355
3358
|
this.defaults = {
|
|
@@ -3375,17 +3378,17 @@ function Jl() {
|
|
|
3375
3378
|
this.sortable.nativeDraggable ? j(document, "dragover", this._handleAutoScroll) : (j(document, "pointermove", this._handleFallbackAutoScroll), j(document, "touchmove", this._handleFallbackAutoScroll), j(document, "mousemove", this._handleFallbackAutoScroll)), Tr(), Cn(), Pl();
|
|
3376
3379
|
},
|
|
3377
3380
|
nulling: function() {
|
|
3378
|
-
An = To =
|
|
3381
|
+
An = To = zt = xo = $t = io = ao = null, ne.length = 0;
|
|
3379
3382
|
},
|
|
3380
3383
|
_handleFallbackAutoScroll: function(n) {
|
|
3381
3384
|
this._handleAutoScroll(n, !0);
|
|
3382
3385
|
},
|
|
3383
3386
|
_handleAutoScroll: function(n, o) {
|
|
3384
3387
|
var r = this, i = (n.touches ? n.touches[0] : n).clientX, a = (n.touches ? n.touches[0] : n).clientY, s = document.elementFromPoint(i, a);
|
|
3385
|
-
if (An = n, o || this.options.forceAutoScrollFallback || on ||
|
|
3388
|
+
if (An = n, o || this.options.forceAutoScrollFallback || on || Ge || Vt) {
|
|
3386
3389
|
so(n, this.options, s, o);
|
|
3387
3390
|
var u = it(s, !0);
|
|
3388
|
-
xo && (
|
|
3391
|
+
xo && (!$t || i !== io || a !== ao) && ($t && Tr(), $t = setInterval(function() {
|
|
3389
3392
|
var l = it(document.elementFromPoint(i, a), !0);
|
|
3390
3393
|
l !== u && (u = l, Cn()), so(n, r.options, l, o);
|
|
3391
3394
|
}, 10), io = i, ao = a);
|
|
@@ -3408,13 +3411,13 @@ function Cn() {
|
|
|
3408
3411
|
}), ne = [];
|
|
3409
3412
|
}
|
|
3410
3413
|
function Tr() {
|
|
3411
|
-
clearInterval(
|
|
3414
|
+
clearInterval($t);
|
|
3412
3415
|
}
|
|
3413
3416
|
var so = Ui(function(e, t, n, o) {
|
|
3414
3417
|
if (t.scroll) {
|
|
3415
3418
|
var r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = t.scrollSensitivity, s = t.scrollSpeed, u = Le(), l = !1, c;
|
|
3416
|
-
To !== n && (To = n, Cn(),
|
|
3417
|
-
var d = 0, y =
|
|
3419
|
+
To !== n && (To = n, Cn(), zt = t.scroll, c = t.scrollFn, zt === !0 && (zt = it(n, !0)));
|
|
3420
|
+
var d = 0, y = zt;
|
|
3418
3421
|
do {
|
|
3419
3422
|
var v = y, f = re(v), m = f.top, p = f.bottom, x = f.left, D = f.right, h = f.width, E = f.height, R = void 0, P = void 0, F = v.scrollWidth, N = v.scrollHeight, b = A(v), k = v.scrollLeft, O = v.scrollTop;
|
|
3420
3423
|
v === u ? (R = h < F && (b.overflowX === "auto" || b.overflowX === "scroll" || b.overflowX === "visible"), P = E < N && (b.overflowY === "auto" || b.overflowY === "scroll" || b.overflowY === "visible")) : (R = h < F && (b.overflowX === "auto" || b.overflowX === "scroll"), P = E < N && (b.overflowY === "auto" || b.overflowY === "scroll"));
|
|
@@ -3432,7 +3435,7 @@ var so = Ui(function(e, t, n, o) {
|
|
|
3432
3435
|
} while (t.bubbleScroll && y !== u && (y = it(y, !1)));
|
|
3433
3436
|
xo = l;
|
|
3434
3437
|
}
|
|
3435
|
-
}, 30),
|
|
3438
|
+
}, 30), Yi = function(t) {
|
|
3436
3439
|
var n = t.originalEvent, o = t.putSortable, r = t.dragEl, i = t.activeSortable, a = t.dispatchSortableEvent, s = t.hideGhostForTarget, u = t.unhideGhostForTarget;
|
|
3437
3440
|
if (n) {
|
|
3438
3441
|
var l = o || i;
|
|
@@ -3455,10 +3458,10 @@ qo.prototype = {
|
|
|
3455
3458
|
onSpill: function(t) {
|
|
3456
3459
|
var n = t.dragEl, o = t.putSortable;
|
|
3457
3460
|
this.sortable.captureAnimationState(), o && o.captureAnimationState();
|
|
3458
|
-
var r =
|
|
3461
|
+
var r = At(this.sortable.el, this.startIndex, this.options);
|
|
3459
3462
|
r ? this.sortable.el.insertBefore(n, r) : this.sortable.el.appendChild(n), this.sortable.animateAll(), o && o.animateAll();
|
|
3460
3463
|
},
|
|
3461
|
-
drop:
|
|
3464
|
+
drop: Yi
|
|
3462
3465
|
};
|
|
3463
3466
|
We(qo, {
|
|
3464
3467
|
pluginName: "revertOnSpill"
|
|
@@ -3470,7 +3473,7 @@ Ho.prototype = {
|
|
|
3470
3473
|
var n = t.dragEl, o = t.putSortable, r = o || this.sortable;
|
|
3471
3474
|
r.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), r.animateAll();
|
|
3472
3475
|
},
|
|
3473
|
-
drop:
|
|
3476
|
+
drop: Yi
|
|
3474
3477
|
};
|
|
3475
3478
|
We(Ho, {
|
|
3476
3479
|
pluginName: "removeOnSpill"
|
|
@@ -3515,7 +3518,7 @@ const Kl = Wa(), Ql = {
|
|
|
3515
3518
|
}, xr = (e) => {
|
|
3516
3519
|
var t, n, o, r, i;
|
|
3517
3520
|
return ((t = e.itemRender) == null ? void 0 : t.name) === "#SuDateRange" ? ((o = (n = e.itemRender) == null ? void 0 : n.props) == null ? void 0 : o.type) === "daterange" || !((i = (r = e.itemRender) == null ? void 0 : r.props) != null && i.type) : !1;
|
|
3518
|
-
}, eu = "kSysConfig", Dr = "kCookies_param", lo =
|
|
3521
|
+
}, eu = "kSysConfig", Dr = "kCookies_param", lo = G.getItem(eu);
|
|
3519
3522
|
let Xi = null;
|
|
3520
3523
|
const Ji = (e, t) => (e.forEach((n) => {
|
|
3521
3524
|
var o;
|
|
@@ -3560,18 +3563,18 @@ const Ji = (e, t) => (e.forEach((n) => {
|
|
|
3560
3563
|
const o = [], { url: r } = n;
|
|
3561
3564
|
if (!r) return null;
|
|
3562
3565
|
const { insertRecords: i, updateRecords: a } = t;
|
|
3563
|
-
if (!
|
|
3566
|
+
if (!_t(i)) {
|
|
3564
3567
|
const s = Vo();
|
|
3565
3568
|
i.forEach((l) => {
|
|
3566
3569
|
var c;
|
|
3567
|
-
!
|
|
3570
|
+
!_t(n == null ? void 0 : n.defaultValue) && Object.assign(l, n.defaultValue), (c = Object.keys(s)) == null || c.forEach((d) => {
|
|
3568
3571
|
l[d] = l[d] || s[d];
|
|
3569
3572
|
});
|
|
3570
3573
|
});
|
|
3571
3574
|
const u = at(r) ? r : r.add || r.restful;
|
|
3572
3575
|
u && o.push(e.post(u, i));
|
|
3573
3576
|
}
|
|
3574
|
-
if (!
|
|
3577
|
+
if (!_t(a)) {
|
|
3575
3578
|
const s = at(r) ? r : r.save || r.restful, u = r.save ? "post" : "put";
|
|
3576
3579
|
s && o.push(e[u](s, a));
|
|
3577
3580
|
}
|
|
@@ -3581,7 +3584,7 @@ const Ji = (e, t) => (e.forEach((n) => {
|
|
|
3581
3584
|
var i, a;
|
|
3582
3585
|
return ((a = (i = r.itemRender) == null ? void 0 : i.props) == null ? void 0 : a.multiple) || r.multiple;
|
|
3583
3586
|
});
|
|
3584
|
-
if (
|
|
3587
|
+
if (_t(n)) return e;
|
|
3585
3588
|
const o = Re(e, !0);
|
|
3586
3589
|
return n.forEach((r) => {
|
|
3587
3590
|
var i;
|
|
@@ -3592,7 +3595,7 @@ const Ji = (e, t) => (e.forEach((n) => {
|
|
|
3592
3595
|
var i;
|
|
3593
3596
|
return ["#SuDateRange", "VxeDateRangePicker"].includes((i = r.itemRender) == null ? void 0 : i.name);
|
|
3594
3597
|
});
|
|
3595
|
-
if (
|
|
3598
|
+
if (_t(n)) return e;
|
|
3596
3599
|
const o = Re(e, !0);
|
|
3597
3600
|
return n.forEach((r) => {
|
|
3598
3601
|
const i = o[r.field];
|
|
@@ -3762,7 +3765,7 @@ const Ji = (e, t) => (e.forEach((n) => {
|
|
|
3762
3765
|
setup(e, { expose: t, emit: n }) {
|
|
3763
3766
|
const o = pu(Ia());
|
|
3764
3767
|
let r;
|
|
3765
|
-
const i = {}, a = No(), s = a.appContext.config.globalProperties.$hasAuthority, u = a.appContext.config.globalProperties.$debugModel, l = a.parent.type.name, c = a.appContext.config.globalProperties.$mode, d = e, { t: y } = Lo(), v = be(null), f = be(!1), m =
|
|
3768
|
+
const i = {}, a = No(), s = a.appContext.config.globalProperties.$hasAuthority, u = a.appContext.config.globalProperties.$debugModel, l = a.parent.type.name, c = a.appContext.config.globalProperties.$mode, d = e, { t: y } = Lo(), v = be(null), f = be(!1), m = Mt(), p = {
|
|
3766
3769
|
icon: "vxe-icon-setting",
|
|
3767
3770
|
name: "favorite",
|
|
3768
3771
|
events: {
|
|
@@ -3773,13 +3776,13 @@ const Ji = (e, t) => (e.forEach((n) => {
|
|
|
3773
3776
|
}, x = () => d.columns.length ? ar(d.columns, y) : {}, D = () => {
|
|
3774
3777
|
const T = d.columns;
|
|
3775
3778
|
if (o.gridId) {
|
|
3776
|
-
const H = su.filter((Z) => !T.some((xe) => xe.field === Z.field)).map((Z) => (o.format && ["lastUpdateDate", "creationDate"].includes(Z.field) && (Z.formatter = o.format, Z.width = 90), Z)),
|
|
3777
|
-
|
|
3779
|
+
const H = su.filter((Z) => !T.some((xe) => xe.field === Z.field)).map((Z) => (o.format && ["lastUpdateDate", "creationDate"].includes(Z.field) && (Z.formatter = o.format, Z.width = 90), Z)), Y = T.findIndex((Z) => Z.field === "operate");
|
|
3780
|
+
Y !== -1 ? T.splice(Y, 0, ...H) : T.push(...H);
|
|
3778
3781
|
}
|
|
3779
3782
|
const q = o.gridId ? R(T) : T;
|
|
3780
|
-
return
|
|
3783
|
+
return Ga(q, o.sortable);
|
|
3781
3784
|
};
|
|
3782
|
-
|
|
3785
|
+
qt.getItem(_r).then((T) => {
|
|
3783
3786
|
r = T, h.columns = D();
|
|
3784
3787
|
});
|
|
3785
3788
|
const h = si({
|
|
@@ -3823,10 +3826,10 @@ const Ji = (e, t) => (e.forEach((n) => {
|
|
|
3823
3826
|
}), E = () => d.items.length ? Zl(Re(d.items, !0), l && d.url ? p : l) : d.items;
|
|
3824
3827
|
function R(T) {
|
|
3825
3828
|
const q = r ? r[o.gridId] : {};
|
|
3826
|
-
return q ? T.map((H,
|
|
3827
|
-
const Z = (
|
|
3829
|
+
return q ? T.map((H, Y) => {
|
|
3830
|
+
const Z = (Y + 1) * 10;
|
|
3828
3831
|
return H._sort = q[H.field] || Z, i[H.field] = H._sort, H;
|
|
3829
|
-
}).sort((H,
|
|
3832
|
+
}).sort((H, Y) => H._sort - Y._sort) : T;
|
|
3830
3833
|
}
|
|
3831
3834
|
const P = () => {
|
|
3832
3835
|
d.items.length && (h.formConfig = {
|
|
@@ -3860,12 +3863,12 @@ const Ji = (e, t) => (e.forEach((n) => {
|
|
|
3860
3863
|
}, w = (T, q) => {
|
|
3861
3864
|
o != null && o.callback && (o != null && o.callback[T]) && (o == null || o.callback[T](q));
|
|
3862
3865
|
}, _ = async (T) => {
|
|
3863
|
-
const q = T.data, H = d.items.filter((
|
|
3866
|
+
const q = T.data, H = d.items.filter((Y) => {
|
|
3864
3867
|
var Z, xe;
|
|
3865
|
-
return (xe = (Z =
|
|
3868
|
+
return (xe = (Z = Y.itemRender) == null ? void 0 : Z.props) == null ? void 0 : xe.multiple;
|
|
3866
3869
|
});
|
|
3867
|
-
H.forEach((
|
|
3868
|
-
|
|
3870
|
+
H.forEach((Y) => {
|
|
3871
|
+
Y.itemRender.props.defaultValue ? (q[`_${Y.field}`] = Y.itemRender.props.defaultValue.split(","), q[`${Y.field}`] = Y.itemRender.props.defaultValue) : q[`_${Y.field}`] = [];
|
|
3869
3872
|
}), H.length && setTimeout(() => {
|
|
3870
3873
|
F();
|
|
3871
3874
|
}, 200);
|
|
@@ -3877,20 +3880,20 @@ const Ji = (e, t) => (e.forEach((n) => {
|
|
|
3877
3880
|
disabled: !o.gridId,
|
|
3878
3881
|
handle: ".vxe-header--column",
|
|
3879
3882
|
onEnd: async (q) => {
|
|
3880
|
-
const H = q.item,
|
|
3883
|
+
const H = q.item, Y = q.newIndex, Z = q.oldIndex, { fullColumn: xe, tableColumn: Ke } = T.getTableColumn(), Et = H.parentNode, ln = xe[Y], ze = xe[Z];
|
|
3881
3884
|
let Qe = !1, $e = "固定列";
|
|
3882
|
-
if (ln.fixed ? Qe = !1 :
|
|
3883
|
-
const Ze =
|
|
3884
|
-
return
|
|
3885
|
+
if (ln.fixed ? Qe = !1 : Y === 0 || ["checkbox", "radio"].includes(ze.type) ? ($e = "勾选列", Qe = !0) : (ze.field === "operate" || Y === xe.length - 1) && (Qe = !0, $e = "操作列"), Qe) {
|
|
3886
|
+
const Ze = Et.children[Z];
|
|
3887
|
+
return Y > Z ? Et.insertBefore(H, Ze) : Et.insertBefore(H, Ze && Ze.nextElementSibling), Ya($e + "不允许拖动!");
|
|
3885
3888
|
}
|
|
3886
|
-
const Kn = T.getColumnIndex(Ke[Z]), Qn = T.getColumnIndex(Ke[
|
|
3889
|
+
const Kn = T.getColumnIndex(Ke[Z]), Qn = T.getColumnIndex(Ke[Y]), Qo = xe.splice(Kn, 1)[0];
|
|
3887
3890
|
xe.splice(Qn, 0, Qo);
|
|
3888
|
-
const
|
|
3891
|
+
const Lt = Qn - Kn > 0 ? 1 : -1, Zo = (Qn + 1) * 10, er = (Kn + 1) * 10, tr = Zo + 1 * Lt;
|
|
3889
3892
|
for (const Ze in i) {
|
|
3890
|
-
const
|
|
3891
|
-
(
|
|
3893
|
+
const St = i[Ze];
|
|
3894
|
+
(Lt > 0 && St < tr && St > er || Lt < 0 && St > tr && St < er) && (i[Ze] = St - 10 * Lt);
|
|
3892
3895
|
}
|
|
3893
|
-
i[Qo.field] = Zo,
|
|
3896
|
+
i[Qo.field] = Zo, qt.setItem(_r, { [o.gridId]: i }), T.loadColumn(xe);
|
|
3894
3897
|
}
|
|
3895
3898
|
});
|
|
3896
3899
|
};
|
|
@@ -3906,9 +3909,9 @@ const Ji = (e, t) => (e.forEach((n) => {
|
|
|
3906
3909
|
P();
|
|
3907
3910
|
}
|
|
3908
3911
|
});
|
|
3909
|
-
const
|
|
3912
|
+
const Ye = ({ code: T }) => {
|
|
3910
3913
|
Je("buttonClick", T);
|
|
3911
|
-
},
|
|
3914
|
+
}, wt = (T) => {
|
|
3912
3915
|
Je("cellClick", T);
|
|
3913
3916
|
}, Xe = (T) => {
|
|
3914
3917
|
Je("cellDbclick", T);
|
|
@@ -3928,7 +3931,7 @@ const Ji = (e, t) => (e.forEach((n) => {
|
|
|
3928
3931
|
B();
|
|
3929
3932
|
}, 500);
|
|
3930
3933
|
});
|
|
3931
|
-
function
|
|
3934
|
+
function Mt() {
|
|
3932
3935
|
debugger;
|
|
3933
3936
|
const T = ["/uums/", "/upfm/", "/urpt/", "/usch/"];
|
|
3934
3937
|
return u && (d != null && d.url) && !T.some((q) => d.url.includes(q)) ? a.appContext.config.globalProperties.$debuggerApi : a.appContext.config.globalProperties.$serviceApi;
|
|
@@ -3942,13 +3945,13 @@ const Ji = (e, t) => (e.forEach((n) => {
|
|
|
3942
3945
|
return (T, q) => {
|
|
3943
3946
|
const H = ye("vxe-grid");
|
|
3944
3947
|
return W(), ie("div", hu, [
|
|
3945
|
-
|
|
3948
|
+
yt(H, Un({
|
|
3946
3949
|
ref_key: "xgrid",
|
|
3947
3950
|
ref: v
|
|
3948
3951
|
}, h, { class: "ut-grid-wrapper" }, ui(ci(o).events || {}), {
|
|
3949
|
-
onToolbarButtonClick:
|
|
3950
|
-
onToolbarToolClick:
|
|
3951
|
-
onCellClick:
|
|
3952
|
+
onToolbarButtonClick: Ye,
|
|
3953
|
+
onToolbarToolClick: Ye,
|
|
3954
|
+
onCellClick: wt,
|
|
3952
3955
|
onCellDblclick: Xe,
|
|
3953
3956
|
onEditActivated: V,
|
|
3954
3957
|
onFormReset: _
|
|
@@ -4001,7 +4004,7 @@ const Ji = (e, t) => (e.forEach((n) => {
|
|
|
4001
4004
|
getContent(e) {
|
|
4002
4005
|
if (!e) return e;
|
|
4003
4006
|
if (this.code) {
|
|
4004
|
-
const n =
|
|
4007
|
+
const n = G.getItem("kLov")[this.code].children.find((o) => o.dictCode === this.content);
|
|
4005
4008
|
return n ? n.dictName : e;
|
|
4006
4009
|
}
|
|
4007
4010
|
return e;
|
|
@@ -4025,7 +4028,7 @@ function bu(e, t, n, o, r, i) {
|
|
|
4025
4028
|
ee("div", {
|
|
4026
4029
|
class: He(["content-rectangle ellipsis", i.getStampBadgeClass])
|
|
4027
4030
|
}, [
|
|
4028
|
-
ee("span", yu,
|
|
4031
|
+
ee("span", yu, mt(i.getContent(n.content)), 1)
|
|
4029
4032
|
], 2)
|
|
4030
4033
|
], 2)
|
|
4031
4034
|
], 2)
|
|
@@ -4052,7 +4055,7 @@ const Zi = /* @__PURE__ */ zn(gu, [["render", bu], ["__scopeId", "data-v-9afb688
|
|
|
4052
4055
|
return (i, a) => {
|
|
4053
4056
|
const s = ye("ut-button");
|
|
4054
4057
|
return W(), ie("div", vu, [
|
|
4055
|
-
|
|
4058
|
+
yt(Zi, {
|
|
4056
4059
|
color: i.stampOptions.color || "success",
|
|
4057
4060
|
content: i.stampOptions.content,
|
|
4058
4061
|
size: i.stampOptions.size,
|
|
@@ -4062,7 +4065,7 @@ const Zi = /* @__PURE__ */ zn(gu, [["render", bu], ["__scopeId", "data-v-9afb688
|
|
|
4062
4065
|
key: 0,
|
|
4063
4066
|
class: He(["ut-content-top", i.title ? "justify-between" : "justify-end"])
|
|
4064
4067
|
}, [
|
|
4065
|
-
i.title ? (W(), ie("span", wu,
|
|
4068
|
+
i.title ? (W(), ie("span", wu, mt(i.title), 1)) : qe("", !0),
|
|
4066
4069
|
ee("div", Eu, [
|
|
4067
4070
|
or(i.$slots, "header", {}, void 0, !0),
|
|
4068
4071
|
i.showClose ? (W(), ot(s, {
|
|
@@ -4432,7 +4435,7 @@ function Mr(e) {
|
|
|
4432
4435
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1e11;
|
|
4433
4436
|
return Bu.test(e) ? Math.round(e * t) / t : e;
|
|
4434
4437
|
}
|
|
4435
|
-
function
|
|
4438
|
+
function Bt(e) {
|
|
4436
4439
|
var t = e.aspectRatio, n = e.height, o = e.width, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "none", i = Nn(o), a = Nn(n);
|
|
4437
4440
|
if (i && a) {
|
|
4438
4441
|
var s = n * t;
|
|
@@ -4535,26 +4538,26 @@ var zu = st.ArrayBuffer, uo = st.FileReader, dt = st.URL || st.webkitURL, $u = /
|
|
|
4535
4538
|
N = $[0], b = $[1];
|
|
4536
4539
|
}
|
|
4537
4540
|
D && (F = N / b);
|
|
4538
|
-
var U =
|
|
4541
|
+
var U = Bt({
|
|
4539
4542
|
aspectRatio: F,
|
|
4540
4543
|
width: h,
|
|
4541
4544
|
height: E
|
|
4542
4545
|
}, "contain");
|
|
4543
4546
|
h = U.width, E = U.height;
|
|
4544
|
-
var w =
|
|
4547
|
+
var w = Bt({
|
|
4545
4548
|
aspectRatio: F,
|
|
4546
4549
|
width: R,
|
|
4547
4550
|
height: P
|
|
4548
4551
|
}, "cover");
|
|
4549
4552
|
if (R = w.width, P = w.height, D) {
|
|
4550
|
-
var _ =
|
|
4553
|
+
var _ = Bt({
|
|
4551
4554
|
aspectRatio: F,
|
|
4552
4555
|
width: N,
|
|
4553
4556
|
height: b
|
|
4554
4557
|
}, f.resize);
|
|
4555
4558
|
N = _.width, b = _.height;
|
|
4556
4559
|
} else {
|
|
4557
|
-
var C =
|
|
4560
|
+
var C = Bt({
|
|
4558
4561
|
aspectRatio: F,
|
|
4559
4562
|
width: N,
|
|
4560
4563
|
height: b
|
|
@@ -4564,9 +4567,9 @@ var zu = st.ArrayBuffer, uo = st.FileReader, dt = st.URL || st.webkitURL, $u = /
|
|
|
4564
4567
|
b = Q === void 0 ? i : Q;
|
|
4565
4568
|
}
|
|
4566
4569
|
N = Math.floor(Mr(Math.min(Math.max(N, R), h))), b = Math.floor(Mr(Math.min(Math.max(b, P), E)));
|
|
4567
|
-
var
|
|
4570
|
+
var Ye = -N / 2, wt = -b / 2, Xe = N, V = b, he = [];
|
|
4568
4571
|
if (D) {
|
|
4569
|
-
var me = 0, je = 0,
|
|
4572
|
+
var me = 0, je = 0, Mt = r, Je = i, T = Bt({
|
|
4570
4573
|
aspectRatio: F,
|
|
4571
4574
|
width: r,
|
|
4572
4575
|
height: i
|
|
@@ -4574,29 +4577,29 @@ var zu = st.ArrayBuffer, uo = st.FileReader, dt = st.URL || st.webkitURL, $u = /
|
|
|
4574
4577
|
contain: "cover",
|
|
4575
4578
|
cover: "contain"
|
|
4576
4579
|
}[f.resize]);
|
|
4577
|
-
|
|
4580
|
+
Mt = T.width, Je = T.height, me = (r - Mt) / 2, je = (i - Je) / 2, he.push(me, je, Mt, Je);
|
|
4578
4581
|
}
|
|
4579
|
-
if (he.push(
|
|
4582
|
+
if (he.push(Ye, wt, Xe, V), x) {
|
|
4580
4583
|
var q = [b, N];
|
|
4581
4584
|
N = q[0], b = q[1];
|
|
4582
4585
|
}
|
|
4583
4586
|
m.width = N, m.height = b, Do(f.mimeType) || (f.mimeType = y.type);
|
|
4584
4587
|
var H = "transparent";
|
|
4585
4588
|
y.size > f.convertSize && f.convertTypes.indexOf(f.mimeType) >= 0 && (f.mimeType = "image/jpeg");
|
|
4586
|
-
var
|
|
4587
|
-
if (
|
|
4589
|
+
var Y = f.mimeType === "image/jpeg";
|
|
4590
|
+
if (Y && (H = "#fff"), p.fillStyle = H, p.fillRect(0, 0, N, b), f.beforeDraw && f.beforeDraw.call(this, p, m), !this.aborted && (p.save(), p.translate(N / 2, b / 2), p.rotate(s * Math.PI / 180), p.scale(l, d), p.drawImage.apply(p, [v].concat(he)), p.restore(), f.drew && f.drew.call(this, p, m), !this.aborted)) {
|
|
4588
4591
|
var Z = function(Ke) {
|
|
4589
4592
|
if (!o.aborted) {
|
|
4590
|
-
var
|
|
4593
|
+
var Et = function($e) {
|
|
4591
4594
|
return o.done({
|
|
4592
4595
|
naturalWidth: r,
|
|
4593
4596
|
naturalHeight: i,
|
|
4594
4597
|
result: $e
|
|
4595
4598
|
});
|
|
4596
4599
|
};
|
|
4597
|
-
if (Ke &&
|
|
4600
|
+
if (Ke && Y && f.retainExif && o.exif && o.exif.length > 0) {
|
|
4598
4601
|
var ln = function($e) {
|
|
4599
|
-
return
|
|
4602
|
+
return Et(Ar(Nr(ju($e, o.exif), f.mimeType)));
|
|
4600
4603
|
};
|
|
4601
4604
|
if (Ke.arrayBuffer)
|
|
4602
4605
|
Ke.arrayBuffer().then(ln).catch(function() {
|
|
@@ -4616,7 +4619,7 @@ var zu = st.ArrayBuffer, uo = st.FileReader, dt = st.URL || st.webkitURL, $u = /
|
|
|
4616
4619
|
}, ze.readAsArrayBuffer(Ke);
|
|
4617
4620
|
}
|
|
4618
4621
|
} else
|
|
4619
|
-
|
|
4622
|
+
Et(Ke);
|
|
4620
4623
|
}
|
|
4621
4624
|
};
|
|
4622
4625
|
m.toBlob ? m.toBlob(Z, f.mimeType, f.quality) : Z(Ar(m.toDataURL(f.mimeType, f.quality)));
|
|
@@ -4676,24 +4679,24 @@ function oa(e, t) {
|
|
|
4676
4679
|
return e.apply(t, arguments);
|
|
4677
4680
|
};
|
|
4678
4681
|
}
|
|
4679
|
-
const { toString: Vu } = Object.prototype, { getPrototypeOf:
|
|
4682
|
+
const { toString: Vu } = Object.prototype, { getPrototypeOf: Go } = Object, { iterator: Hn, toStringTag: ra } = Symbol, Vn = /* @__PURE__ */ ((e) => (t) => {
|
|
4680
4683
|
const n = Vu.call(t);
|
|
4681
4684
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
4682
|
-
})(/* @__PURE__ */ Object.create(null)), Ae = (e) => (e = e.toLowerCase(), (t) => Vn(t) === e), Wn = (e) => (t) => typeof t === e, { isArray:
|
|
4685
|
+
})(/* @__PURE__ */ Object.create(null)), Ae = (e) => (e = e.toLowerCase(), (t) => Vn(t) === e), Wn = (e) => (t) => typeof t === e, { isArray: It } = Array, Kt = Wn("undefined");
|
|
4683
4686
|
function Wu(e) {
|
|
4684
4687
|
return e !== null && !Kt(e) && e.constructor !== null && !Kt(e.constructor) && Ee(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
4685
4688
|
}
|
|
4686
4689
|
const ia = Ae("ArrayBuffer");
|
|
4687
|
-
function
|
|
4690
|
+
function Gu(e) {
|
|
4688
4691
|
let t;
|
|
4689
4692
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && ia(e.buffer), t;
|
|
4690
4693
|
}
|
|
4691
|
-
const
|
|
4694
|
+
const Yu = Wn("string"), Ee = Wn("function"), aa = Wn("number"), Gn = (e) => e !== null && typeof e == "object", Xu = (e) => e === !0 || e === !1, Tn = (e) => {
|
|
4692
4695
|
if (Vn(e) !== "object")
|
|
4693
4696
|
return !1;
|
|
4694
|
-
const t =
|
|
4697
|
+
const t = Go(e);
|
|
4695
4698
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ra in e) && !(Hn in e);
|
|
4696
|
-
}, Ju = Ae("Date"), Ku = Ae("File"), Qu = Ae("Blob"), Zu = Ae("FileList"), ec = (e) =>
|
|
4699
|
+
}, Ju = Ae("Date"), Ku = Ae("File"), Qu = Ae("Blob"), Zu = Ae("FileList"), ec = (e) => Gn(e) && Ee(e.pipe), tc = (e) => {
|
|
4697
4700
|
let t;
|
|
4698
4701
|
return e && (typeof FormData == "function" && e instanceof FormData || Ee(e.append) && ((t = Vn(e)) === "formdata" || // detect form-data instance
|
|
4699
4702
|
t === "object" && Ee(e.toString) && e.toString() === "[object FormData]"));
|
|
@@ -4702,7 +4705,7 @@ function an(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
4702
4705
|
if (e === null || typeof e > "u")
|
|
4703
4706
|
return;
|
|
4704
4707
|
let o, r;
|
|
4705
|
-
if (typeof e != "object" && (e = [e]),
|
|
4708
|
+
if (typeof e != "object" && (e = [e]), It(e))
|
|
4706
4709
|
for (o = 0, r = e.length; o < r; o++)
|
|
4707
4710
|
t.call(null, e[o], o, e);
|
|
4708
4711
|
else {
|
|
@@ -4721,11 +4724,11 @@ function sa(e, t) {
|
|
|
4721
4724
|
return r;
|
|
4722
4725
|
return null;
|
|
4723
4726
|
}
|
|
4724
|
-
const
|
|
4727
|
+
const ht = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, la = (e) => !Kt(e) && e !== ht;
|
|
4725
4728
|
function Ro() {
|
|
4726
4729
|
const { caseless: e } = la(this) && this || {}, t = {}, n = (o, r) => {
|
|
4727
4730
|
const i = e && sa(t, r) || r;
|
|
4728
|
-
Tn(t[i]) && Tn(o) ? t[i] = Ro(t[i], o) : Tn(o) ? t[i] = Ro({}, o) :
|
|
4731
|
+
Tn(t[i]) && Tn(o) ? t[i] = Ro(t[i], o) : Tn(o) ? t[i] = Ro({}, o) : It(o) ? t[i] = o.slice() : t[i] = o;
|
|
4729
4732
|
};
|
|
4730
4733
|
for (let o = 0, r = arguments.length; o < r; o++)
|
|
4731
4734
|
arguments[o] && an(arguments[o], n);
|
|
@@ -4744,7 +4747,7 @@ const lc = (e, t, n, { allOwnKeys: o } = {}) => (an(t, (r, i) => {
|
|
|
4744
4747
|
do {
|
|
4745
4748
|
for (r = Object.getOwnPropertyNames(e), i = r.length; i-- > 0; )
|
|
4746
4749
|
a = r[i], (!o || o(a, e, t)) && !s[a] && (t[a] = e[a], s[a] = !0);
|
|
4747
|
-
e = n !== !1 &&
|
|
4750
|
+
e = n !== !1 && Go(e);
|
|
4748
4751
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
4749
4752
|
return t;
|
|
4750
4753
|
}, fc = (e, t, n) => {
|
|
@@ -4753,14 +4756,14 @@ const lc = (e, t, n, { allOwnKeys: o } = {}) => (an(t, (r, i) => {
|
|
|
4753
4756
|
return o !== -1 && o === n;
|
|
4754
4757
|
}, pc = (e) => {
|
|
4755
4758
|
if (!e) return null;
|
|
4756
|
-
if (
|
|
4759
|
+
if (It(e)) return e;
|
|
4757
4760
|
let t = e.length;
|
|
4758
4761
|
if (!aa(t)) return null;
|
|
4759
4762
|
const n = new Array(t);
|
|
4760
4763
|
for (; t-- > 0; )
|
|
4761
4764
|
n[t] = e[t];
|
|
4762
4765
|
return n;
|
|
4763
|
-
}, hc = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" &&
|
|
4766
|
+
}, hc = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Go(Uint8Array)), mc = (e, t) => {
|
|
4764
4767
|
const o = (e && e[Hn]).call(e);
|
|
4765
4768
|
let r;
|
|
4766
4769
|
for (; (r = o.next()) && !r.done; ) {
|
|
@@ -4805,7 +4808,7 @@ const lc = (e, t, n, { allOwnKeys: o } = {}) => (an(t, (r, i) => {
|
|
|
4805
4808
|
n[i] = !0;
|
|
4806
4809
|
});
|
|
4807
4810
|
};
|
|
4808
|
-
return
|
|
4811
|
+
return It(e) ? o(e) : o(String(e).split(t)), n;
|
|
4809
4812
|
}, Sc = () => {
|
|
4810
4813
|
}, Cc = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
4811
4814
|
function Tc(e) {
|
|
@@ -4813,12 +4816,12 @@ function Tc(e) {
|
|
|
4813
4816
|
}
|
|
4814
4817
|
const xc = (e) => {
|
|
4815
4818
|
const t = new Array(10), n = (o, r) => {
|
|
4816
|
-
if (
|
|
4819
|
+
if (Gn(o)) {
|
|
4817
4820
|
if (t.indexOf(o) >= 0)
|
|
4818
4821
|
return;
|
|
4819
4822
|
if (!("toJSON" in o)) {
|
|
4820
4823
|
t[r] = o;
|
|
4821
|
-
const i =
|
|
4824
|
+
const i = It(o) ? [] : {};
|
|
4822
4825
|
return an(o, (a, s) => {
|
|
4823
4826
|
const u = n(a, r + 1);
|
|
4824
4827
|
!Kt(u) && (i[s] = u);
|
|
@@ -4828,23 +4831,23 @@ const xc = (e) => {
|
|
|
4828
4831
|
return o;
|
|
4829
4832
|
};
|
|
4830
4833
|
return n(e, 0);
|
|
4831
|
-
}, Dc = Ae("AsyncFunction"), Rc = (e) => e && (
|
|
4832
|
-
r ===
|
|
4834
|
+
}, Dc = Ae("AsyncFunction"), Rc = (e) => e && (Gn(e) || Ee(e)) && Ee(e.then) && Ee(e.catch), ca = ((e, t) => e ? setImmediate : t ? ((n, o) => (ht.addEventListener("message", ({ source: r, data: i }) => {
|
|
4835
|
+
r === ht && i === n && o.length && o.shift()();
|
|
4833
4836
|
}, !1), (r) => {
|
|
4834
|
-
o.push(r),
|
|
4837
|
+
o.push(r), ht.postMessage(n, "*");
|
|
4835
4838
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
4836
4839
|
typeof setImmediate == "function",
|
|
4837
|
-
Ee(
|
|
4838
|
-
), kc = typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
4839
|
-
isArray:
|
|
4840
|
+
Ee(ht.postMessage)
|
|
4841
|
+
), kc = typeof queueMicrotask < "u" ? queueMicrotask.bind(ht) : typeof process < "u" && process.nextTick || ca, Oc = (e) => e != null && Ee(e[Hn]), g = {
|
|
4842
|
+
isArray: It,
|
|
4840
4843
|
isArrayBuffer: ia,
|
|
4841
4844
|
isBuffer: Wu,
|
|
4842
4845
|
isFormData: tc,
|
|
4843
|
-
isArrayBufferView:
|
|
4844
|
-
isString:
|
|
4846
|
+
isArrayBufferView: Gu,
|
|
4847
|
+
isString: Yu,
|
|
4845
4848
|
isNumber: aa,
|
|
4846
4849
|
isBoolean: Xu,
|
|
4847
|
-
isObject:
|
|
4850
|
+
isObject: Gn,
|
|
4848
4851
|
isPlainObject: Tn,
|
|
4849
4852
|
isReadableStream: oc,
|
|
4850
4853
|
isRequest: rc,
|
|
@@ -4884,7 +4887,7 @@ const xc = (e) => {
|
|
|
4884
4887
|
noop: Sc,
|
|
4885
4888
|
toFiniteNumber: Cc,
|
|
4886
4889
|
findKey: sa,
|
|
4887
|
-
global:
|
|
4890
|
+
global: ht,
|
|
4888
4891
|
isContextDefined: la,
|
|
4889
4892
|
isSpecCompliantForm: Tc,
|
|
4890
4893
|
toJSONObject: xc,
|
|
@@ -4962,7 +4965,7 @@ function Fc(e) {
|
|
|
4962
4965
|
const Pc = g.toFlatObject(g, {}, null, function(t) {
|
|
4963
4966
|
return /^is[A-Z]/.test(t);
|
|
4964
4967
|
});
|
|
4965
|
-
function
|
|
4968
|
+
function Yn(e, t, n) {
|
|
4966
4969
|
if (!g.isObject(e))
|
|
4967
4970
|
throw new TypeError("target must be an object");
|
|
4968
4971
|
t = t || new FormData(), n = g.toFlatObject(n, {
|
|
@@ -5037,10 +5040,10 @@ function Ur(e) {
|
|
|
5037
5040
|
return t[o];
|
|
5038
5041
|
});
|
|
5039
5042
|
}
|
|
5040
|
-
function
|
|
5041
|
-
this._pairs = [], e &&
|
|
5043
|
+
function Yo(e, t) {
|
|
5044
|
+
this._pairs = [], e && Yn(e, this, t);
|
|
5042
5045
|
}
|
|
5043
|
-
const ha =
|
|
5046
|
+
const ha = Yo.prototype;
|
|
5044
5047
|
ha.append = function(t, n) {
|
|
5045
5048
|
this._pairs.push([t, n]);
|
|
5046
5049
|
};
|
|
@@ -5064,7 +5067,7 @@ function ma(e, t, n) {
|
|
|
5064
5067
|
});
|
|
5065
5068
|
const r = n && n.serialize;
|
|
5066
5069
|
let i;
|
|
5067
|
-
if (r ? i = r(t, n) : i = g.isURLSearchParams(t) ? t.toString() : new
|
|
5070
|
+
if (r ? i = r(t, n) : i = g.isURLSearchParams(t) ? t.toString() : new Yo(t, n).toString(o), i) {
|
|
5068
5071
|
const a = e.indexOf("#");
|
|
5069
5072
|
a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
|
|
5070
5073
|
}
|
|
@@ -5128,7 +5131,7 @@ const ga = {
|
|
|
5128
5131
|
silentJSONParsing: !0,
|
|
5129
5132
|
forcedJSONParsing: !0,
|
|
5130
5133
|
clarifyTimeoutError: !1
|
|
5131
|
-
}, Ic = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
5134
|
+
}, Ic = typeof URLSearchParams < "u" ? URLSearchParams : Yo, Nc = typeof FormData < "u" ? FormData : null, Mc = typeof Blob < "u" ? Blob : null, Lc = {
|
|
5132
5135
|
isBrowser: !0,
|
|
5133
5136
|
classes: {
|
|
5134
5137
|
URLSearchParams: Ic,
|
|
@@ -5149,7 +5152,7 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", jc
|
|
|
5149
5152
|
...Lc
|
|
5150
5153
|
};
|
|
5151
5154
|
function $c(e, t) {
|
|
5152
|
-
return
|
|
5155
|
+
return Yn(e, new de.classes.URLSearchParams(), Object.assign({
|
|
5153
5156
|
visitor: function(n, o, r, i) {
|
|
5154
5157
|
return de.isNode && g.isBuffer(n) ? (this.append(o, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
5155
5158
|
}
|
|
@@ -5211,7 +5214,7 @@ const sn = {
|
|
|
5211
5214
|
return $c(t, this.formSerializer).toString();
|
|
5212
5215
|
if ((s = g.isFileList(t)) || o.indexOf("multipart/form-data") > -1) {
|
|
5213
5216
|
const u = this.env && this.env.FormData;
|
|
5214
|
-
return
|
|
5217
|
+
return Yn(
|
|
5215
5218
|
s ? { "files[]": t } : t,
|
|
5216
5219
|
u && new u(),
|
|
5217
5220
|
this.formSerializer
|
|
@@ -5279,7 +5282,7 @@ const Wc = g.toObjectSet([
|
|
|
5279
5282
|
"referer",
|
|
5280
5283
|
"retry-after",
|
|
5281
5284
|
"user-agent"
|
|
5282
|
-
]),
|
|
5285
|
+
]), Gc = (e) => {
|
|
5283
5286
|
const t = {};
|
|
5284
5287
|
let n, o, r;
|
|
5285
5288
|
return e && e.split(`
|
|
@@ -5287,13 +5290,13 @@ const Wc = g.toObjectSet([
|
|
|
5287
5290
|
r = a.indexOf(":"), n = a.substring(0, r).trim().toLowerCase(), o = a.substring(r + 1).trim(), !(!n || t[n] && Wc[n]) && (n === "set-cookie" ? t[n] ? t[n].push(o) : t[n] = [o] : t[n] = t[n] ? t[n] + ", " + o : o);
|
|
5288
5291
|
}), t;
|
|
5289
5292
|
}, zr = Symbol("internals");
|
|
5290
|
-
function
|
|
5293
|
+
function Ut(e) {
|
|
5291
5294
|
return e && String(e).trim().toLowerCase();
|
|
5292
5295
|
}
|
|
5293
5296
|
function xn(e) {
|
|
5294
5297
|
return e === !1 || e == null ? e : g.isArray(e) ? e.map(xn) : String(e);
|
|
5295
5298
|
}
|
|
5296
|
-
function
|
|
5299
|
+
function Yc(e) {
|
|
5297
5300
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
5298
5301
|
let o;
|
|
5299
5302
|
for (; o = n.exec(e); )
|
|
@@ -5332,7 +5335,7 @@ let Se = class {
|
|
|
5332
5335
|
set(t, n, o) {
|
|
5333
5336
|
const r = this;
|
|
5334
5337
|
function i(s, u, l) {
|
|
5335
|
-
const c =
|
|
5338
|
+
const c = Ut(u);
|
|
5336
5339
|
if (!c)
|
|
5337
5340
|
throw new Error("header name must be a non-empty string");
|
|
5338
5341
|
const d = g.findKey(r, c);
|
|
@@ -5342,7 +5345,7 @@ let Se = class {
|
|
|
5342
5345
|
if (g.isPlainObject(t) || t instanceof this.constructor)
|
|
5343
5346
|
a(t, n);
|
|
5344
5347
|
else if (g.isString(t) && (t = t.trim()) && !Xc(t))
|
|
5345
|
-
a(
|
|
5348
|
+
a(Gc(t), n);
|
|
5346
5349
|
else if (g.isObject(t) && g.isIterable(t)) {
|
|
5347
5350
|
let s = {}, u, l;
|
|
5348
5351
|
for (const c of t) {
|
|
@@ -5356,14 +5359,14 @@ let Se = class {
|
|
|
5356
5359
|
return this;
|
|
5357
5360
|
}
|
|
5358
5361
|
get(t, n) {
|
|
5359
|
-
if (t =
|
|
5362
|
+
if (t = Ut(t), t) {
|
|
5360
5363
|
const o = g.findKey(this, t);
|
|
5361
5364
|
if (o) {
|
|
5362
5365
|
const r = this[o];
|
|
5363
5366
|
if (!n)
|
|
5364
5367
|
return r;
|
|
5365
5368
|
if (n === !0)
|
|
5366
|
-
return
|
|
5369
|
+
return Yc(r);
|
|
5367
5370
|
if (g.isFunction(n))
|
|
5368
5371
|
return n.call(this, r, o);
|
|
5369
5372
|
if (g.isRegExp(n))
|
|
@@ -5373,7 +5376,7 @@ let Se = class {
|
|
|
5373
5376
|
}
|
|
5374
5377
|
}
|
|
5375
5378
|
has(t, n) {
|
|
5376
|
-
if (t =
|
|
5379
|
+
if (t = Ut(t), t) {
|
|
5377
5380
|
const o = g.findKey(this, t);
|
|
5378
5381
|
return !!(o && this[o] !== void 0 && (!n || co(this, this[o], o, n)));
|
|
5379
5382
|
}
|
|
@@ -5383,7 +5386,7 @@ let Se = class {
|
|
|
5383
5386
|
const o = this;
|
|
5384
5387
|
let r = !1;
|
|
5385
5388
|
function i(a) {
|
|
5386
|
-
if (a =
|
|
5389
|
+
if (a = Ut(a), a) {
|
|
5387
5390
|
const s = g.findKey(o, a);
|
|
5388
5391
|
s && (!n || co(o, o[s], s, n)) && (delete o[s], r = !0);
|
|
5389
5392
|
}
|
|
@@ -5445,7 +5448,7 @@ let Se = class {
|
|
|
5445
5448
|
accessors: {}
|
|
5446
5449
|
}).accessors, r = this.prototype;
|
|
5447
5450
|
function i(a) {
|
|
5448
|
-
const s =
|
|
5451
|
+
const s = Ut(a);
|
|
5449
5452
|
o[s] || (Kc(r, a), o[s] = !0);
|
|
5450
5453
|
}
|
|
5451
5454
|
return g.isArray(t) ? t.forEach(i) : i(t), this;
|
|
@@ -5472,10 +5475,10 @@ function fo(e, t) {
|
|
|
5472
5475
|
function ba(e) {
|
|
5473
5476
|
return !!(e && e.__CANCEL__);
|
|
5474
5477
|
}
|
|
5475
|
-
function
|
|
5478
|
+
function Nt(e, t, n) {
|
|
5476
5479
|
L.call(this, e ?? "canceled", L.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
5477
5480
|
}
|
|
5478
|
-
g.inherits(
|
|
5481
|
+
g.inherits(Nt, L, {
|
|
5479
5482
|
__CANCEL__: !0
|
|
5480
5483
|
});
|
|
5481
5484
|
function va(e, t, n) {
|
|
@@ -5587,7 +5590,7 @@ function wa(e, t, n) {
|
|
|
5587
5590
|
return e && (o || n == !1) ? rd(e, t) : t;
|
|
5588
5591
|
}
|
|
5589
5592
|
const Hr = (e) => e instanceof Se ? { ...e } : e;
|
|
5590
|
-
function
|
|
5593
|
+
function bt(e, t) {
|
|
5591
5594
|
t = t || {};
|
|
5592
5595
|
const n = {};
|
|
5593
5596
|
function o(l, c, d, y) {
|
|
@@ -5652,7 +5655,7 @@ function yt(e, t) {
|
|
|
5652
5655
|
}), n;
|
|
5653
5656
|
}
|
|
5654
5657
|
const Ea = (e) => {
|
|
5655
|
-
const t =
|
|
5658
|
+
const t = bt({}, e);
|
|
5656
5659
|
let { data: n, withXSRFToken: o, xsrfHeaderName: r, xsrfCookieName: i, headers: a, auth: s } = t;
|
|
5657
5660
|
t.headers = a = Se.from(a), t.url = ma(wa(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), s && a.set(
|
|
5658
5661
|
"Authorization",
|
|
@@ -5720,7 +5723,7 @@ const Ea = (e) => {
|
|
|
5720
5723
|
}, i === void 0 && a.setContentType(null), "setRequestHeader" in p && g.forEach(a.toJSON(), function(E, R) {
|
|
5721
5724
|
p.setRequestHeader(R, E);
|
|
5722
5725
|
}), g.isUndefined(r.withCredentials) || (p.withCredentials = !!r.withCredentials), s && s !== "json" && (p.responseType = r.responseType), l && ([y, f] = Mn(l, !0), p.addEventListener("progress", y)), u && p.upload && ([d, v] = Mn(u), p.upload.addEventListener("progress", d), p.upload.addEventListener("loadend", v)), (r.cancelToken || r.signal) && (c = (h) => {
|
|
5723
|
-
p && (o(!h || h.type ? new
|
|
5726
|
+
p && (o(!h || h.type ? new Nt(null, e, p) : h), p.abort(), p = null);
|
|
5724
5727
|
}, r.cancelToken && r.cancelToken.subscribe(c), r.signal && (r.signal.aborted ? c() : r.signal.addEventListener("abort", c)));
|
|
5725
5728
|
const D = Qc(r.url);
|
|
5726
5729
|
if (D && de.protocols.indexOf(D) === -1) {
|
|
@@ -5737,7 +5740,7 @@ const Ea = (e) => {
|
|
|
5737
5740
|
if (!r) {
|
|
5738
5741
|
r = !0, s();
|
|
5739
5742
|
const c = l instanceof Error ? l : this.reason;
|
|
5740
|
-
o.abort(c instanceof L ? c : new
|
|
5743
|
+
o.abort(c instanceof L ? c : new Nt(c instanceof Error ? c.message : c));
|
|
5741
5744
|
}
|
|
5742
5745
|
};
|
|
5743
5746
|
let a = t && setTimeout(() => {
|
|
@@ -5951,7 +5954,7 @@ g.forEach(Fo, (e, t) => {
|
|
|
5951
5954
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
5952
5955
|
}
|
|
5953
5956
|
});
|
|
5954
|
-
const
|
|
5957
|
+
const Gr = (e) => `- ${e}`, gd = (e) => g.isFunction(e) || e === null || e === !1, Ta = {
|
|
5955
5958
|
getAdapter: (e) => {
|
|
5956
5959
|
e = g.isArray(e) ? e : [e];
|
|
5957
5960
|
const { length: t } = e;
|
|
@@ -5971,8 +5974,8 @@ const Yr = (e) => `- ${e}`, gd = (e) => g.isFunction(e) || e === null || e === !
|
|
|
5971
5974
|
([s, u]) => `adapter ${s} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
5972
5975
|
);
|
|
5973
5976
|
let a = t ? i.length > 1 ? `since :
|
|
5974
|
-
` + i.map(
|
|
5975
|
-
`) : " " +
|
|
5977
|
+
` + i.map(Gr).join(`
|
|
5978
|
+
`) : " " + Gr(i[0]) : "as no adapter specified";
|
|
5976
5979
|
throw new L(
|
|
5977
5980
|
"There is no suitable adapter to dispatch the request " + a,
|
|
5978
5981
|
"ERR_NOT_SUPPORT"
|
|
@@ -5984,9 +5987,9 @@ const Yr = (e) => `- ${e}`, gd = (e) => g.isFunction(e) || e === null || e === !
|
|
|
5984
5987
|
};
|
|
5985
5988
|
function po(e) {
|
|
5986
5989
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
5987
|
-
throw new
|
|
5990
|
+
throw new Nt(null, e);
|
|
5988
5991
|
}
|
|
5989
|
-
function
|
|
5992
|
+
function Yr(e) {
|
|
5990
5993
|
return po(e), e.headers = Se.from(e.headers), e.data = fo.call(
|
|
5991
5994
|
e,
|
|
5992
5995
|
e.transformRequest
|
|
@@ -6053,7 +6056,7 @@ const Dn = {
|
|
|
6053
6056
|
assertOptions: yd,
|
|
6054
6057
|
validators: Jn
|
|
6055
6058
|
}, Ie = Dn.validators;
|
|
6056
|
-
let
|
|
6059
|
+
let gt = class {
|
|
6057
6060
|
constructor(t) {
|
|
6058
6061
|
this.defaults = t || {}, this.interceptors = {
|
|
6059
6062
|
request: new jr(),
|
|
@@ -6086,7 +6089,7 @@ let mt = class {
|
|
|
6086
6089
|
}
|
|
6087
6090
|
}
|
|
6088
6091
|
_request(t, n) {
|
|
6089
|
-
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n =
|
|
6092
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = bt(this.defaults, n);
|
|
6090
6093
|
const { transitional: o, paramsSerializer: r, headers: i } = n;
|
|
6091
6094
|
o !== void 0 && Dn.assertOptions(o, {
|
|
6092
6095
|
silentJSONParsing: Ie.transitional(Ie.boolean),
|
|
@@ -6122,7 +6125,7 @@ let mt = class {
|
|
|
6122
6125
|
});
|
|
6123
6126
|
let c, d = 0, y;
|
|
6124
6127
|
if (!u) {
|
|
6125
|
-
const f = [
|
|
6128
|
+
const f = [Yr.bind(this), void 0];
|
|
6126
6129
|
for (f.unshift.apply(f, s), f.push.apply(f, l), y = f.length, c = Promise.resolve(n); d < y; )
|
|
6127
6130
|
c = c.then(f[d++], f[d++]);
|
|
6128
6131
|
return c;
|
|
@@ -6139,7 +6142,7 @@ let mt = class {
|
|
|
6139
6142
|
}
|
|
6140
6143
|
}
|
|
6141
6144
|
try {
|
|
6142
|
-
c =
|
|
6145
|
+
c = Yr.call(this, v);
|
|
6143
6146
|
} catch (f) {
|
|
6144
6147
|
return Promise.reject(f);
|
|
6145
6148
|
}
|
|
@@ -6148,14 +6151,14 @@ let mt = class {
|
|
|
6148
6151
|
return c;
|
|
6149
6152
|
}
|
|
6150
6153
|
getUri(t) {
|
|
6151
|
-
t =
|
|
6154
|
+
t = bt(this.defaults, t);
|
|
6152
6155
|
const n = wa(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
6153
6156
|
return ma(n, t.params, t.paramsSerializer);
|
|
6154
6157
|
}
|
|
6155
6158
|
};
|
|
6156
6159
|
g.forEach(["delete", "get", "head", "options"], function(t) {
|
|
6157
|
-
|
|
6158
|
-
return this.request(
|
|
6160
|
+
gt.prototype[t] = function(n, o) {
|
|
6161
|
+
return this.request(bt(o || {}, {
|
|
6159
6162
|
method: t,
|
|
6160
6163
|
url: n,
|
|
6161
6164
|
data: (o || {}).data
|
|
@@ -6165,7 +6168,7 @@ g.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
6165
6168
|
g.forEach(["post", "put", "patch"], function(t) {
|
|
6166
6169
|
function n(o) {
|
|
6167
6170
|
return function(i, a, s) {
|
|
6168
|
-
return this.request(
|
|
6171
|
+
return this.request(bt(s || {}, {
|
|
6169
6172
|
method: t,
|
|
6170
6173
|
headers: o ? {
|
|
6171
6174
|
"Content-Type": "multipart/form-data"
|
|
@@ -6175,7 +6178,7 @@ g.forEach(["post", "put", "patch"], function(t) {
|
|
|
6175
6178
|
}));
|
|
6176
6179
|
};
|
|
6177
6180
|
}
|
|
6178
|
-
|
|
6181
|
+
gt.prototype[t] = n(), gt.prototype[t + "Form"] = n(!0);
|
|
6179
6182
|
});
|
|
6180
6183
|
let bd = class Da {
|
|
6181
6184
|
constructor(t) {
|
|
@@ -6201,7 +6204,7 @@ let bd = class Da {
|
|
|
6201
6204
|
o.unsubscribe(i);
|
|
6202
6205
|
}, a;
|
|
6203
6206
|
}, t(function(i, a, s) {
|
|
6204
|
-
o.reason || (o.reason = new
|
|
6207
|
+
o.reason || (o.reason = new Nt(i, a, s), n(o.reason));
|
|
6205
6208
|
});
|
|
6206
6209
|
}
|
|
6207
6210
|
/**
|
|
@@ -6327,18 +6330,18 @@ Object.entries(Po).forEach(([e, t]) => {
|
|
|
6327
6330
|
Po[t] = e;
|
|
6328
6331
|
});
|
|
6329
6332
|
function Ra(e) {
|
|
6330
|
-
const t = new
|
|
6331
|
-
return g.extend(n,
|
|
6332
|
-
return Ra(
|
|
6333
|
+
const t = new gt(e), n = oa(gt.prototype.request, t);
|
|
6334
|
+
return g.extend(n, gt.prototype, t, { allOwnKeys: !0 }), g.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(r) {
|
|
6335
|
+
return Ra(bt(e, r));
|
|
6333
6336
|
}, n;
|
|
6334
6337
|
}
|
|
6335
6338
|
const te = Ra(sn);
|
|
6336
|
-
te.Axios =
|
|
6337
|
-
te.CanceledError =
|
|
6339
|
+
te.Axios = gt;
|
|
6340
|
+
te.CanceledError = Nt;
|
|
6338
6341
|
te.CancelToken = bd;
|
|
6339
6342
|
te.isCancel = ba;
|
|
6340
6343
|
te.VERSION = xa;
|
|
6341
|
-
te.toFormData =
|
|
6344
|
+
te.toFormData = Yn;
|
|
6342
6345
|
te.AxiosError = L;
|
|
6343
6346
|
te.Cancel = te.CanceledError;
|
|
6344
6347
|
te.all = function(t) {
|
|
@@ -6346,7 +6349,7 @@ te.all = function(t) {
|
|
|
6346
6349
|
};
|
|
6347
6350
|
te.spread = vd;
|
|
6348
6351
|
te.isAxiosError = wd;
|
|
6349
|
-
te.mergeConfig =
|
|
6352
|
+
te.mergeConfig = bt;
|
|
6350
6353
|
te.AxiosHeaders = Se;
|
|
6351
6354
|
te.formToJSON = (e) => ya(g.isHTMLForm(e) ? new FormData(e) : e);
|
|
6352
6355
|
te.getAdapter = Ta.getAdapter;
|
|
@@ -6461,7 +6464,7 @@ const {
|
|
|
6461
6464
|
}, D = async (b, k) => {
|
|
6462
6465
|
b.id && await i.delete("/ufil/v1/attachment", [b]), y.value.splice(k, 1), F("remove", b, y);
|
|
6463
6466
|
}, h = (b) => {
|
|
6464
|
-
|
|
6467
|
+
xt.previewImage({ activeIndex: 0, urlList: [b.url] });
|
|
6465
6468
|
}, E = (b) => {
|
|
6466
6469
|
const k = b.type || b.url.split(".").pop();
|
|
6467
6470
|
let O = "";
|
|
@@ -6562,7 +6565,7 @@ const {
|
|
|
6562
6565
|
ee("div", {
|
|
6563
6566
|
class: "px-1 ut-image",
|
|
6564
6567
|
style: un({ fontSize: b.size === "small" ? "11px" : "10px" })
|
|
6565
|
-
},
|
|
6568
|
+
}, mt(R(w)), 5)
|
|
6566
6569
|
]),
|
|
6567
6570
|
ee("i", {
|
|
6568
6571
|
class: "vxe-icon-download ut-download-icon",
|
|
@@ -6574,7 +6577,7 @@ const {
|
|
|
6574
6577
|
content: w.name,
|
|
6575
6578
|
class: "cursor-pointer"
|
|
6576
6579
|
}, {
|
|
6577
|
-
default:
|
|
6580
|
+
default: Rt(() => [
|
|
6578
6581
|
ee("div", kd, [
|
|
6579
6582
|
ee("div", Od, [
|
|
6580
6583
|
ee("i", {
|
|
@@ -6584,7 +6587,7 @@ const {
|
|
|
6584
6587
|
ee("div", {
|
|
6585
6588
|
class: "px-1 ut-image",
|
|
6586
6589
|
style: un({ fontSize: b.size === "small" ? "11px" : "10px" })
|
|
6587
|
-
},
|
|
6590
|
+
}, mt(R(w)), 5)
|
|
6588
6591
|
]),
|
|
6589
6592
|
ee("i", {
|
|
6590
6593
|
class: "vxe-icon-download ut-download-icon",
|
|
@@ -6621,11 +6624,11 @@ const {
|
|
|
6621
6624
|
roll: "",
|
|
6622
6625
|
style: { "font-size": "24px" }
|
|
6623
6626
|
})) : qe("", !0),
|
|
6624
|
-
s.value ? (W(), ie("div", Ld,
|
|
6627
|
+
s.value ? (W(), ie("div", Ld, mt(a.value), 1)) : qe("", !0)
|
|
6625
6628
|
])
|
|
6626
6629
|
], 2)) : qe("", !0)
|
|
6627
6630
|
]),
|
|
6628
|
-
|
|
6631
|
+
yt(U, Un({
|
|
6629
6632
|
ref_key: "xupload",
|
|
6630
6633
|
ref: l,
|
|
6631
6634
|
modelValue: d.value,
|
|
@@ -6811,10 +6814,10 @@ function zd() {
|
|
|
6811
6814
|
}(gn, gn.exports)), gn.exports;
|
|
6812
6815
|
}
|
|
6813
6816
|
var $d = zd();
|
|
6814
|
-
const qd = /* @__PURE__ */ jd($d), Hd = ["onUpdate:modelValue"], Vd = { key: 3 }, Wd = { key: 4 },
|
|
6817
|
+
const qd = /* @__PURE__ */ jd($d), Hd = ["onUpdate:modelValue"], Vd = { key: 3 }, Wd = { key: 4 }, Gd = {
|
|
6815
6818
|
name: "UtUpload"
|
|
6816
|
-
},
|
|
6817
|
-
...
|
|
6819
|
+
}, Yd = /* @__PURE__ */ Ue({
|
|
6820
|
+
...Gd,
|
|
6818
6821
|
props: /* @__PURE__ */ rr({
|
|
6819
6822
|
defaultParams: { default: () => ({}) },
|
|
6820
6823
|
options: { default: () => ({
|
|
@@ -6833,7 +6836,7 @@ const qd = /* @__PURE__ */ jd($d), Hd = ["onUpdate:modelValue"], Vd = { key: 3 }
|
|
|
6833
6836
|
}),
|
|
6834
6837
|
emits: /* @__PURE__ */ rr(["close"], ["update:visible"]),
|
|
6835
6838
|
setup(e, { emit: t }) {
|
|
6836
|
-
const n = e, r = No().appContext.config.globalProperties.$serviceApi, i = La(e, "visible"), { t: a } = Lo(), s = be(!1), u =
|
|
6839
|
+
const n = e, r = No().appContext.config.globalProperties.$serviceApi, i = La(e, "visible"), { t: a } = Lo(), s = be(!1), u = G.getItem("kLov");
|
|
6837
6840
|
di(
|
|
6838
6841
|
() => i.value,
|
|
6839
6842
|
(w) => {
|
|
@@ -6988,14 +6991,14 @@ const qd = /* @__PURE__ */ jd($d), Hd = ["onUpdate:modelValue"], Vd = { key: 3 }
|
|
|
6988
6991
|
}, F = async () => {
|
|
6989
6992
|
if (!f.length)
|
|
6990
6993
|
return vo(a("message.importEmpty"));
|
|
6991
|
-
if (await
|
|
6994
|
+
if (await xt.modal.confirm(a("message.importRecord")) === "confirm") {
|
|
6992
6995
|
p.loading = !0;
|
|
6993
6996
|
const { url: _ } = n;
|
|
6994
6997
|
k("toSave"), r.post(_, f).then((C) => {
|
|
6995
|
-
(C == null ? void 0 : C.status) === "error" || C != null && C.length ? (s.value = !0, b(C != null && C.length ? C : C[n.options.errListField || n.sourceList]),
|
|
6998
|
+
(C == null ? void 0 : C.status) === "error" || C != null && C.length ? (s.value = !0, b(C != null && C.length ? C : C[n.options.errListField || n.sourceList]), xt.modal.message({
|
|
6996
6999
|
content: a("message.importFailed"),
|
|
6997
7000
|
status: "error"
|
|
6998
|
-
})) : (
|
|
7001
|
+
})) : (xt.modal.message({
|
|
6999
7002
|
content: a("message.importSuccess"),
|
|
7000
7003
|
status: "success"
|
|
7001
7004
|
}), U());
|
|
@@ -7007,7 +7010,7 @@ const qd = /* @__PURE__ */ jd($d), Hd = ["onUpdate:modelValue"], Vd = { key: 3 }
|
|
|
7007
7010
|
var _;
|
|
7008
7011
|
const w = (_ = v.value) == null ? void 0 : _.getCheckboxRecords();
|
|
7009
7012
|
if (!(w != null && w.length))
|
|
7010
|
-
return
|
|
7013
|
+
return xt.modal.message({
|
|
7011
7014
|
content: a("message.selectedRecord"),
|
|
7012
7015
|
status: "warning"
|
|
7013
7016
|
});
|
|
@@ -7030,12 +7033,12 @@ const qd = /* @__PURE__ */ jd($d), Hd = ["onUpdate:modelValue"], Vd = { key: 3 }
|
|
|
7030
7033
|
});
|
|
7031
7034
|
});
|
|
7032
7035
|
}, O = () => {
|
|
7033
|
-
|
|
7036
|
+
xt.modal.alert(a("message.importTip"), a("message.udp.tip"));
|
|
7034
7037
|
}, $ = t, U = () => {
|
|
7035
7038
|
i.value = !1, $("close");
|
|
7036
7039
|
};
|
|
7037
7040
|
return (w, _) => {
|
|
7038
|
-
const C = ye("el-option"), B = ye("el-select"), Q = ye("el-date-picker"),
|
|
7041
|
+
const C = ye("el-option"), B = ye("el-select"), Q = ye("el-date-picker"), Ye = ye("vxe-pager"), wt = ye("vxe-grid"), Xe = ye("vxe-modal");
|
|
7039
7042
|
return W(), ot(Xe, {
|
|
7040
7043
|
modelValue: i.value,
|
|
7041
7044
|
"onUpdate:modelValue": _[2] || (_[2] = (V) => i.value = V),
|
|
@@ -7044,13 +7047,13 @@ const qd = /* @__PURE__ */ jd($d), Hd = ["onUpdate:modelValue"], Vd = { key: 3 }
|
|
|
7044
7047
|
remember: "",
|
|
7045
7048
|
onClose: U
|
|
7046
7049
|
}, {
|
|
7047
|
-
default:
|
|
7048
|
-
|
|
7050
|
+
default: Rt(() => [
|
|
7051
|
+
yt(wt, Un({
|
|
7049
7052
|
ref_key: "xgrid",
|
|
7050
7053
|
ref: v
|
|
7051
7054
|
}, p, ui(x)), Ba({
|
|
7052
|
-
pager:
|
|
7053
|
-
|
|
7055
|
+
pager: Rt(() => [
|
|
7056
|
+
yt(Ye, {
|
|
7054
7057
|
"current-page": c.value.currentPage,
|
|
7055
7058
|
"onUpdate:currentPage": _[0] || (_[0] = (V) => c.value.currentPage = V),
|
|
7056
7059
|
"page-size": c.value.pageSize,
|
|
@@ -7065,7 +7068,7 @@ const qd = /* @__PURE__ */ jd($d), Hd = ["onUpdate:modelValue"], Vd = { key: 3 }
|
|
|
7065
7068
|
}, [
|
|
7066
7069
|
bo(w.columns, (V) => ({
|
|
7067
7070
|
name: V.field,
|
|
7068
|
-
fn:
|
|
7071
|
+
fn: Rt(({ row: he }) => [
|
|
7069
7072
|
V.dictCode && !V.disabled ? (W(), ot(B, {
|
|
7070
7073
|
key: 0,
|
|
7071
7074
|
modelValue: he[V.field],
|
|
@@ -7073,7 +7076,7 @@ const qd = /* @__PURE__ */ jd($d), Hd = ["onUpdate:modelValue"], Vd = { key: 3 }
|
|
|
7073
7076
|
modelModifiers: { trim: !0 },
|
|
7074
7077
|
clearable: ""
|
|
7075
7078
|
}, {
|
|
7076
|
-
default:
|
|
7079
|
+
default: Rt(() => {
|
|
7077
7080
|
var me;
|
|
7078
7081
|
return [
|
|
7079
7082
|
(W(!0), ie(fi, null, bo((me = ci(u)[V.dictCode]) == null ? void 0 : me.children, (je) => (W(), ot(C, {
|
|
@@ -7102,7 +7105,7 @@ const qd = /* @__PURE__ */ jd($d), Hd = ["onUpdate:modelValue"], Vd = { key: 3 }
|
|
|
7102
7105
|
void 0,
|
|
7103
7106
|
{ trim: !0 }
|
|
7104
7107
|
]
|
|
7105
|
-
]) : s.value ? (W(), ie("span", Wd,
|
|
7108
|
+
]) : s.value ? (W(), ie("span", Wd, mt(he[V.field]), 1)) : (W(), ie("span", Vd, mt(he[V.field]), 1))
|
|
7106
7109
|
])
|
|
7107
7110
|
}))
|
|
7108
7111
|
]), 1040)
|
|
@@ -7111,7 +7114,7 @@ const qd = /* @__PURE__ */ jd($d), Hd = ["onUpdate:modelValue"], Vd = { key: 3 }
|
|
|
7111
7114
|
}, 8, ["modelValue"]);
|
|
7112
7115
|
};
|
|
7113
7116
|
}
|
|
7114
|
-
}), Xd = /* @__PURE__ */ zn(
|
|
7117
|
+
}), Xd = /* @__PURE__ */ zn(Yd, [["__scopeId", "data-v-b0d88bd0"]]), ka = Object.freeze(
|
|
7115
7118
|
{
|
|
7116
7119
|
left: 0,
|
|
7117
7120
|
top: 0,
|
|
@@ -7684,7 +7687,7 @@ ue.use(rs, {
|
|
|
7684
7687
|
defaultProps: { animation: "perspective" }
|
|
7685
7688
|
});
|
|
7686
7689
|
const If = (e) => {
|
|
7687
|
-
e.config.globalProperties.$hasAuthority = Ii, e.config.globalProperties.$debugModel =
|
|
7690
|
+
e.config.globalProperties.$hasAuthority = Ii, e.config.globalProperties.$debugModel = pt().VITE_DEBUG === "true", e.config.globalProperties.$serviceApi = Zt(), e.config.globalProperties.$debuggerApi = ys(), e.config.globalProperties.$url = Fe(), window.$i18n = xi;
|
|
7688
7691
|
}, Nf = (e) => {
|
|
7689
7692
|
Object.keys(ii).forEach((t) => {
|
|
7690
7693
|
e.directive(t, ii[t]);
|
|
@@ -7721,12 +7724,12 @@ const Lf = Qt("udp-app", {
|
|
|
7721
7724
|
var e, t;
|
|
7722
7725
|
return {
|
|
7723
7726
|
sidebar: {
|
|
7724
|
-
opened: ((e =
|
|
7727
|
+
opened: ((e = G.getItem(`${ce()}layout`)) == null ? void 0 : e.sidebarStatus) ?? Me().SidebarStatus,
|
|
7725
7728
|
withoutAnimation: !1,
|
|
7726
7729
|
isClickCollapse: !1
|
|
7727
7730
|
},
|
|
7728
7731
|
// 这里的layout用于监听容器拖拉后恢复对应的菜单布局
|
|
7729
|
-
layout: ((t =
|
|
7732
|
+
layout: ((t = G.getItem(`${ce()}layout`)) == null ? void 0 : t.layout) ?? Me().Layout,
|
|
7730
7733
|
device: Xa() ? "mobile" : "desktop"
|
|
7731
7734
|
};
|
|
7732
7735
|
},
|
|
@@ -7740,8 +7743,8 @@ const Lf = Qt("udp-app", {
|
|
|
7740
7743
|
},
|
|
7741
7744
|
actions: {
|
|
7742
7745
|
TOGGLE_SIDEBAR(e, t) {
|
|
7743
|
-
const n =
|
|
7744
|
-
n && (e && t ? (this.sidebar.withoutAnimation = !0, this.sidebar.opened = !0, n.sidebarStatus = !0) : !e && t ? (this.sidebar.withoutAnimation = !0, this.sidebar.opened = !1, n.sidebarStatus = !1) : !e && !t && (this.sidebar.withoutAnimation = !1, this.sidebar.opened = !this.sidebar.opened, this.sidebar.isClickCollapse = !this.sidebar.opened, n.sidebarStatus = this.sidebar.opened),
|
|
7746
|
+
const n = G.getItem(`${ce()}layout`);
|
|
7747
|
+
n && (e && t ? (this.sidebar.withoutAnimation = !0, this.sidebar.opened = !0, n.sidebarStatus = !0) : !e && t ? (this.sidebar.withoutAnimation = !0, this.sidebar.opened = !1, n.sidebarStatus = !1) : !e && !t && (this.sidebar.withoutAnimation = !1, this.sidebar.opened = !this.sidebar.opened, this.sidebar.isClickCollapse = !this.sidebar.opened, n.sidebarStatus = this.sidebar.opened), G.setItem(`${ce()}layout`, n));
|
|
7745
7748
|
},
|
|
7746
7749
|
async toggleSideBar(e, t) {
|
|
7747
7750
|
await this.TOGGLE_SIDEBAR(e, t);
|
|
@@ -7755,14 +7758,14 @@ const Lf = Qt("udp-app", {
|
|
|
7755
7758
|
}
|
|
7756
7759
|
});
|
|
7757
7760
|
function Bf() {
|
|
7758
|
-
return Lf(
|
|
7761
|
+
return Lf(vt);
|
|
7759
7762
|
}
|
|
7760
7763
|
const Uf = Qt("udp-epTheme", {
|
|
7761
7764
|
state: () => {
|
|
7762
7765
|
var e, t;
|
|
7763
7766
|
return {
|
|
7764
|
-
epThemeColor: ((e =
|
|
7765
|
-
epTheme: ((t =
|
|
7767
|
+
epThemeColor: ((e = G.getItem(`${ce()}-layout`)) == null ? void 0 : e.epThemeColor) ?? Me().EpThemeColor,
|
|
7768
|
+
epTheme: ((t = G.getItem(`${ce()}-layout`)) == null ? void 0 : t.theme) ?? Me().Theme
|
|
7766
7769
|
};
|
|
7767
7770
|
},
|
|
7768
7771
|
getters: {
|
|
@@ -7776,13 +7779,13 @@ const Uf = Qt("udp-epTheme", {
|
|
|
7776
7779
|
},
|
|
7777
7780
|
actions: {
|
|
7778
7781
|
setEpThemeColor(e) {
|
|
7779
|
-
const t =
|
|
7780
|
-
this.epTheme = t == null ? void 0 : t.theme, this.epThemeColor = e, t && (t.epThemeColor = e,
|
|
7782
|
+
const t = G.getItem(`${ce()}layout`);
|
|
7783
|
+
this.epTheme = t == null ? void 0 : t.theme, this.epThemeColor = e, t && (t.epThemeColor = e, G.setItem(`${ce()}layout`, t));
|
|
7781
7784
|
}
|
|
7782
7785
|
}
|
|
7783
7786
|
});
|
|
7784
7787
|
function mo() {
|
|
7785
|
-
return Uf(
|
|
7788
|
+
return Uf(vt);
|
|
7786
7789
|
}
|
|
7787
7790
|
function jf() {
|
|
7788
7791
|
var v, f;
|
|
@@ -7844,7 +7847,7 @@ function jf() {
|
|
|
7844
7847
|
i.value = m, mo().epTheme === "light" && r.value ? u("default") : u(mo().epTheme), gl(r.value ? "dark" : "light"), r.value ? (document.documentElement.classList.add("dark"), document.documentElement.classList.remove("default")) : (document.documentElement.classList.add("default"), document.documentElement.classList.remove("dark"));
|
|
7845
7848
|
}
|
|
7846
7849
|
function y() {
|
|
7847
|
-
Pe.remove(fs), Pe.remove(vi), Pe.remove(wi),
|
|
7850
|
+
Pe.remove(fs), Pe.remove(vi), Pe.remove(wi), G.clear(), Ja.clear();
|
|
7848
7851
|
const { Grey: m, Weak: p, MultiTagsCache: x, EpThemeColor: D, Layout: h } = Me();
|
|
7849
7852
|
Bf().setLayout(h), c(D), ke().multiTagsCacheChange(x), s(m, "html-grey", document.querySelector("html")), s(p, "html-weakness", document.querySelector("html")), ae.push("/login"), ke().handleTags("equal", [...en]), ul();
|
|
7850
7853
|
}
|
|
@@ -7868,7 +7871,7 @@ const Op = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7868
7871
|
delCurrentRoute: Ws,
|
|
7869
7872
|
getBrower: Si,
|
|
7870
7873
|
getPlatform: Ei,
|
|
7871
|
-
getProcessMenu:
|
|
7874
|
+
getProcessMenu: Ys,
|
|
7872
7875
|
getServiceApi: Zt,
|
|
7873
7876
|
handleAliveRoute: _i,
|
|
7874
7877
|
hasAuthority: Ii,
|
|
@@ -7876,17 +7879,17 @@ const Op = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7876
7879
|
lifeCycleEvent: tn,
|
|
7877
7880
|
remainingRouters: rl,
|
|
7878
7881
|
routerBefore: pl,
|
|
7879
|
-
store:
|
|
7882
|
+
store: vt,
|
|
7880
7883
|
useDataThemeChange: jf,
|
|
7881
7884
|
useLayout: Pa,
|
|
7882
7885
|
useMultiTagsStore: ke,
|
|
7883
7886
|
usePermissionStore: pe,
|
|
7884
|
-
useSystemStore:
|
|
7887
|
+
useSystemStore: Ht,
|
|
7885
7888
|
userMonitor: js
|
|
7886
7889
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
7887
7890
|
export {
|
|
7888
7891
|
wi as A,
|
|
7889
|
-
|
|
7892
|
+
pt as B,
|
|
7890
7893
|
ae as C,
|
|
7891
7894
|
fs as D,
|
|
7892
7895
|
ul as E,
|
|
@@ -7910,7 +7913,7 @@ export {
|
|
|
7910
7913
|
rl as W,
|
|
7911
7914
|
Ei as X,
|
|
7912
7915
|
Si as Y,
|
|
7913
|
-
|
|
7916
|
+
Ys as Z,
|
|
7914
7917
|
zn as _,
|
|
7915
7918
|
kp as a,
|
|
7916
7919
|
xf as b,
|
|
@@ -7919,7 +7922,7 @@ export {
|
|
|
7919
7922
|
pe as e,
|
|
7920
7923
|
ki as f,
|
|
7921
7924
|
Me as g,
|
|
7922
|
-
|
|
7925
|
+
Ht as h,
|
|
7923
7926
|
Zt as i,
|
|
7924
7927
|
sp as j,
|
|
7925
7928
|
ps as k,
|
|
@@ -7930,7 +7933,7 @@ export {
|
|
|
7930
7933
|
Bf as p,
|
|
7931
7934
|
Rp as q,
|
|
7932
7935
|
ce as r,
|
|
7933
|
-
|
|
7936
|
+
vt as s,
|
|
7934
7937
|
xi as t,
|
|
7935
7938
|
mo as u,
|
|
7936
7939
|
jd as v,
|