mooho-base-admin-plus 2.0.27 → 2.0.29
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/package/mooho-base-admin-plus.min.esm.js +115 -313
- package/package/mooho-base-admin-plus.min.js +13 -13
- package/package.json +1 -1
- package/public/setting.js +1 -1
- package/src/api/customModel.js +0 -1
- package/src/components/view/view-table.vue +4 -3
- package/src/index.js +2 -2
- package/src/layouts/basic-layout/index.vue +2 -3
- package/src/layouts/basic-layout/menu-head/title.vue +2 -3
- package/src/layouts/basic-layout/menu-side/index.vue +2 -2
- package/src/layouts/basic-layout/menu-side/menu-title.vue +0 -1
- package/src/layouts/basic-layout/menu-side/submenu.vue +1 -1
- package/src/layouts/basic-layout/tabs/index.vue +2 -3
- package/src/libs/util.js +0 -44
- package/src/menu/sider.js +1 -1
- package/src/pages/template/viewPage.vue +1 -1
- package/src/router/dynamic.js +38 -145
- package/src/router/index.js +11 -8
- package/src/router/routes.js +89 -0
- package/src/store/modules/admin/modules/account.js +5 -9
- package/src/store/modules/admin/modules/cache.js +13 -13
- package/src/store/modules/admin/modules/i18n.js +1 -3
- package/src/store/modules/admin/modules/menu.js +2 -21
- package/src/store/modules/admin/modules/page.js +37 -60
- package/test/router/routes.js +3 -2
- package/src/layouts/basic-layout/mixins/translate-title.js +0 -11
|
@@ -6987,36 +6987,6 @@ const util$8 = {
|
|
|
6987
6987
|
cookies: cookies$2,
|
|
6988
6988
|
db: db$1
|
|
6989
6989
|
};
|
|
6990
|
-
function tTitle$1(title = "") {
|
|
6991
|
-
const $t = window ? window.$app.$t : null;
|
|
6992
|
-
if ($t) {
|
|
6993
|
-
if (title.indexOf("$t:") === 0) {
|
|
6994
|
-
return $t(title.split("$t:")[1]);
|
|
6995
|
-
} else {
|
|
6996
|
-
return title;
|
|
6997
|
-
}
|
|
6998
|
-
} else {
|
|
6999
|
-
return title;
|
|
7000
|
-
}
|
|
7001
|
-
}
|
|
7002
|
-
util$8.title = function({ title, count: count2 }) {
|
|
7003
|
-
title = tTitle$1(title);
|
|
7004
|
-
let fullTitle;
|
|
7005
|
-
if (Setting.titleSuffix === false || Setting.titleSuffix === "") {
|
|
7006
|
-
fullTitle = title ? `${title}` : "";
|
|
7007
|
-
} else {
|
|
7008
|
-
fullTitle = title ? `${title} - ${Setting.titleSuffix}` : Setting.titleSuffix;
|
|
7009
|
-
}
|
|
7010
|
-
if (count2)
|
|
7011
|
-
fullTitle = `(${count2}\u6761\u6D88\u606F)${fullTitle}`;
|
|
7012
|
-
window.document.title = fullTitle;
|
|
7013
|
-
};
|
|
7014
|
-
function requestAnimation(task) {
|
|
7015
|
-
if ("requestAnimationFrame" in window) {
|
|
7016
|
-
return window.requestAnimationFrame(task);
|
|
7017
|
-
}
|
|
7018
|
-
setTimeout(task, 16);
|
|
7019
|
-
}
|
|
7020
6990
|
/*!
|
|
7021
6991
|
* vue-router v4.1.6
|
|
7022
6992
|
* (c) 2022 Eduardo San Martin Morote
|
|
@@ -13009,12 +12979,8 @@ var account = {
|
|
|
13009
12979
|
authFailed({ dispatch: dispatch2 }) {
|
|
13010
12980
|
dispatch2("logout");
|
|
13011
12981
|
},
|
|
13012
|
-
load({ dispatch: dispatch2 }, { loadOpenedTabs = true } = {}) {
|
|
13013
|
-
|
|
13014
|
-
await dispatch2("admin/user/load", null, { root: true });
|
|
13015
|
-
await dispatch2("admin/page/openedLoad", { loadOpenedTabs }, { root: true });
|
|
13016
|
-
resolve();
|
|
13017
|
-
});
|
|
12982
|
+
async load({ dispatch: dispatch2 }, { loadOpenedTabs = true } = {}) {
|
|
12983
|
+
await dispatch2("admin/user/load", null, { root: true });
|
|
13018
12984
|
}
|
|
13019
12985
|
}
|
|
13020
12986
|
};
|
|
@@ -14828,9 +14794,6 @@ var cache$1 = {
|
|
|
14828
14794
|
state.caches[type] = [];
|
|
14829
14795
|
try {
|
|
14830
14796
|
let res2 = await modelApi.query(type, {});
|
|
14831
|
-
state.caches = {
|
|
14832
|
-
...state.caches
|
|
14833
|
-
};
|
|
14834
14797
|
state.caches[type] = res2.data;
|
|
14835
14798
|
} catch (err) {
|
|
14836
14799
|
delete state.caches[type];
|
|
@@ -14843,9 +14806,6 @@ var cache$1 = {
|
|
|
14843
14806
|
state.dicts[type] = {};
|
|
14844
14807
|
try {
|
|
14845
14808
|
let res2 = await modelApi.query("Dict", { type });
|
|
14846
|
-
state.dicts = {
|
|
14847
|
-
...state.dicts
|
|
14848
|
-
};
|
|
14849
14809
|
res2.data.forEach((item) => {
|
|
14850
14810
|
state.dicts[type][item.id] = item.displayName;
|
|
14851
14811
|
});
|
|
@@ -14860,9 +14820,6 @@ var cache$1 = {
|
|
|
14860
14820
|
state.enums[type] = {};
|
|
14861
14821
|
try {
|
|
14862
14822
|
let res2 = await enumApi.query(type);
|
|
14863
|
-
state.enums = {
|
|
14864
|
-
...state.enums
|
|
14865
|
-
};
|
|
14866
14823
|
res2.forEach((item) => {
|
|
14867
14824
|
state.enums[type][item.id] = item.name;
|
|
14868
14825
|
});
|
|
@@ -14874,13 +14831,10 @@ var cache$1 = {
|
|
|
14874
14831
|
},
|
|
14875
14832
|
async loadUserName({ state }, id) {
|
|
14876
14833
|
if (id && !(id in state.userNames)) {
|
|
14877
|
-
state.userNames[id] =
|
|
14834
|
+
state.userNames[id] = "-";
|
|
14878
14835
|
try {
|
|
14879
14836
|
let res2 = await userlApi.get(id);
|
|
14880
14837
|
if (res2) {
|
|
14881
|
-
state.userNames = {
|
|
14882
|
-
...state.userNames
|
|
14883
|
-
};
|
|
14884
14838
|
state.userNames[id] = res2.name;
|
|
14885
14839
|
}
|
|
14886
14840
|
} catch (err) {
|
|
@@ -21521,9 +21475,7 @@ var i18n = {
|
|
|
21521
21475
|
} else {
|
|
21522
21476
|
state.locale = locale2;
|
|
21523
21477
|
vm.$i18n.locale = locale2;
|
|
21524
|
-
|
|
21525
|
-
title: vm.$route.meta.title
|
|
21526
|
-
});
|
|
21478
|
+
window.document.title = window.$app.$t(vm.$route.meta.title) + " - " + Setting.info.title;
|
|
21527
21479
|
}
|
|
21528
21480
|
},
|
|
21529
21481
|
async load({ state }, app) {
|
|
@@ -22046,23 +21998,6 @@ var permissionApi = {
|
|
|
22046
21998
|
saveAs(blob, "Permission-" + format$3(new Date(), "yyyyMMddHHmmss") + ".pms");
|
|
22047
21999
|
}
|
|
22048
22000
|
};
|
|
22049
|
-
function filterMenu(menuList, access, lastList) {
|
|
22050
|
-
menuList.forEach((menu2) => {
|
|
22051
|
-
let menuAccess = menu2.auth;
|
|
22052
|
-
if (!menuAccess || includeArray(menuAccess, access)) {
|
|
22053
|
-
let newMenu = {};
|
|
22054
|
-
for (let i3 in menu2) {
|
|
22055
|
-
if (i3 !== "children")
|
|
22056
|
-
newMenu[i3] = lodash$1.exports.cloneDeep(menu2[i3]);
|
|
22057
|
-
}
|
|
22058
|
-
if (menu2.children && menu2.children.length)
|
|
22059
|
-
newMenu.children = [];
|
|
22060
|
-
lastList.push(newMenu);
|
|
22061
|
-
menu2.children && filterMenu(menu2.children, access, newMenu.children);
|
|
22062
|
-
}
|
|
22063
|
-
});
|
|
22064
|
-
return lastList;
|
|
22065
|
-
}
|
|
22066
22001
|
function convertMenu(source2) {
|
|
22067
22002
|
if (!source2) {
|
|
22068
22003
|
return null;
|
|
@@ -22095,8 +22030,8 @@ var menu = {
|
|
|
22095
22030
|
userPermissions: null
|
|
22096
22031
|
},
|
|
22097
22032
|
getters: {
|
|
22098
|
-
filterSider(state
|
|
22099
|
-
return
|
|
22033
|
+
filterSider(state) {
|
|
22034
|
+
return state.sider;
|
|
22100
22035
|
},
|
|
22101
22036
|
filterHeader(state, getters, rootState) {
|
|
22102
22037
|
const userInfo = rootState.admin.user.info;
|
|
@@ -22287,7 +22222,7 @@ var menuSider = [
|
|
|
22287
22222
|
dashboard,
|
|
22288
22223
|
{
|
|
22289
22224
|
path: "/i18n",
|
|
22290
|
-
title: "
|
|
22225
|
+
title: "menu.i18n",
|
|
22291
22226
|
header: "home",
|
|
22292
22227
|
custom: "i-icon-demo i-icon-demo-i18n"
|
|
22293
22228
|
}
|
|
@@ -22360,12 +22295,13 @@ var page = {
|
|
|
22360
22295
|
resolve();
|
|
22361
22296
|
});
|
|
22362
22297
|
},
|
|
22363
|
-
openedUpdate({ state, dispatch: dispatch2 }, { index: index2, params, query, fullPath, meta, keepMeta = false }) {
|
|
22298
|
+
openedUpdate({ state, dispatch: dispatch2 }, { index: index2, params, query, fullPath, pageName, meta, keepMeta = false }) {
|
|
22364
22299
|
return new Promise(async (resolve) => {
|
|
22365
22300
|
let page2 = state.opened[index2];
|
|
22366
22301
|
page2.params = params || page2.params;
|
|
22367
22302
|
page2.query = query || page2.query;
|
|
22368
22303
|
page2.fullPath = fullPath || page2.fullPath;
|
|
22304
|
+
page2.pageName = pageName || page2.pageName;
|
|
22369
22305
|
page2.meta = meta || page2.meta;
|
|
22370
22306
|
page2.keepMeta = keepMeta;
|
|
22371
22307
|
state.opened.splice(index2, 1, page2);
|
|
@@ -22373,7 +22309,7 @@ var page = {
|
|
|
22373
22309
|
resolve();
|
|
22374
22310
|
});
|
|
22375
22311
|
},
|
|
22376
|
-
currentUpdate({ state, dispatch: dispatch2 }, { params, query, fullPath, meta, keepMeta = false }) {
|
|
22312
|
+
currentUpdate({ state, dispatch: dispatch2 }, { params, query, fullPath, pageName, meta, keepMeta = false }) {
|
|
22377
22313
|
return new Promise(async (resolve) => {
|
|
22378
22314
|
setTimeout(async () => {
|
|
22379
22315
|
const index2 = state.opened.findIndex((item) => item.fullPath === state.current);
|
|
@@ -22381,6 +22317,7 @@ var page = {
|
|
|
22381
22317
|
page2.params = params || page2.params;
|
|
22382
22318
|
page2.query = query || page2.query;
|
|
22383
22319
|
page2.fullPath = fullPath || page2.fullPath;
|
|
22320
|
+
page2.pageName = pageName || page2.pageName;
|
|
22384
22321
|
page2.meta = meta || page2.meta;
|
|
22385
22322
|
page2.keepMeta = keepMeta;
|
|
22386
22323
|
state.opened.splice(index2, 1, page2);
|
|
@@ -22389,21 +22326,23 @@ var page = {
|
|
|
22389
22326
|
}, 0);
|
|
22390
22327
|
});
|
|
22391
22328
|
},
|
|
22392
|
-
add({ state, commit: commit2, dispatch: dispatch2 }, { tag, params, query, fullPath }) {
|
|
22329
|
+
add({ state, commit: commit2, dispatch: dispatch2 }, { tag, params, query, fullPath, pageName }) {
|
|
22393
22330
|
return new Promise(async (resolve) => {
|
|
22394
22331
|
let newTag = tag;
|
|
22395
22332
|
newTag.params = params || newTag.params;
|
|
22396
22333
|
newTag.query = query || newTag.query;
|
|
22397
22334
|
newTag.fullPath = fullPath || newTag.fullPath;
|
|
22335
|
+
newTag.pageName = pageName || newTag.pageName;
|
|
22398
22336
|
state.opened.push(newTag);
|
|
22399
22337
|
if (isKeepAlive(newTag)) {
|
|
22400
|
-
commit2("
|
|
22338
|
+
commit2("keepAliveRefresh");
|
|
22401
22339
|
}
|
|
22402
22340
|
await dispatch2("opened2db");
|
|
22403
22341
|
resolve();
|
|
22404
22342
|
});
|
|
22405
22343
|
},
|
|
22406
|
-
open({ state, commit: commit2, dispatch: dispatch2 }, { name, params, query, fullPath }) {
|
|
22344
|
+
open({ state, commit: commit2, dispatch: dispatch2 }, { name, params, query, path, fullPath }) {
|
|
22345
|
+
const pageName = router$1.getRoutes().find((item) => item.path == path).components.default.name;
|
|
22407
22346
|
return new Promise(async (resolve) => {
|
|
22408
22347
|
setTimeout(async () => {
|
|
22409
22348
|
let opened = state.opened;
|
|
@@ -22418,7 +22357,8 @@ var page = {
|
|
|
22418
22357
|
index: pageOpenedIndex,
|
|
22419
22358
|
params,
|
|
22420
22359
|
query,
|
|
22421
|
-
fullPath
|
|
22360
|
+
fullPath,
|
|
22361
|
+
pageName
|
|
22422
22362
|
});
|
|
22423
22363
|
} else {
|
|
22424
22364
|
let page2 = state.pool.find((t3) => t3.name === name);
|
|
@@ -22427,7 +22367,8 @@ var page = {
|
|
|
22427
22367
|
tag: Object.assign({}, page2),
|
|
22428
22368
|
params,
|
|
22429
22369
|
query,
|
|
22430
|
-
fullPath
|
|
22370
|
+
fullPath,
|
|
22371
|
+
pageName
|
|
22431
22372
|
});
|
|
22432
22373
|
}
|
|
22433
22374
|
}
|
|
@@ -22459,9 +22400,9 @@ var page = {
|
|
|
22459
22400
|
}
|
|
22460
22401
|
const index2 = state.opened.findIndex((page2) => page2.fullPath === tagName);
|
|
22461
22402
|
if (index2 >= 0) {
|
|
22462
|
-
commit2("keepAliveRemove", state.opened[index2].name);
|
|
22463
22403
|
state.opened.splice(index2, 1);
|
|
22464
22404
|
}
|
|
22405
|
+
commit2("keepAliveRefresh");
|
|
22465
22406
|
await dispatch2("opened2db");
|
|
22466
22407
|
if (isCurrent) {
|
|
22467
22408
|
const { name = "index", params = {}, query = {} } = newPage;
|
|
@@ -22486,8 +22427,9 @@ var page = {
|
|
|
22486
22427
|
}
|
|
22487
22428
|
});
|
|
22488
22429
|
if (currentIndex > 0) {
|
|
22489
|
-
state.opened.splice(1, currentIndex - 1)
|
|
22430
|
+
state.opened.splice(1, currentIndex - 1);
|
|
22490
22431
|
}
|
|
22432
|
+
commit2("keepAliveRefresh");
|
|
22491
22433
|
state.current = pageAim;
|
|
22492
22434
|
if (router$1.currentRoute.value.fullPath !== pageAim) {
|
|
22493
22435
|
router$1.push(pageAim);
|
|
@@ -22505,7 +22447,8 @@ var page = {
|
|
|
22505
22447
|
currentIndex = index2;
|
|
22506
22448
|
}
|
|
22507
22449
|
});
|
|
22508
|
-
state.opened.splice(currentIndex + 1)
|
|
22450
|
+
state.opened.splice(currentIndex + 1);
|
|
22451
|
+
commit2("keepAliveRefresh");
|
|
22509
22452
|
state.current = pageAim;
|
|
22510
22453
|
if (router$1.currentRoute.value.fullPath !== pageAim) {
|
|
22511
22454
|
router$1.push(pageAim);
|
|
@@ -22524,11 +22467,12 @@ var page = {
|
|
|
22524
22467
|
}
|
|
22525
22468
|
});
|
|
22526
22469
|
if (currentIndex === 0) {
|
|
22527
|
-
state.opened.splice(1)
|
|
22470
|
+
state.opened.splice(1);
|
|
22528
22471
|
} else {
|
|
22529
|
-
state.opened.splice(currentIndex + 1)
|
|
22530
|
-
state.opened.splice(1, currentIndex - 1)
|
|
22472
|
+
state.opened.splice(currentIndex + 1);
|
|
22473
|
+
state.opened.splice(1, currentIndex - 1);
|
|
22531
22474
|
}
|
|
22475
|
+
commit2("keepAliveRefresh");
|
|
22532
22476
|
state.current = pageAim;
|
|
22533
22477
|
if (router$1.currentRoute.value.fullPath !== pageAim) {
|
|
22534
22478
|
router$1.push(pageAim);
|
|
@@ -22539,7 +22483,8 @@ var page = {
|
|
|
22539
22483
|
},
|
|
22540
22484
|
closeAll({ state, commit: commit2, dispatch: dispatch2 }) {
|
|
22541
22485
|
return new Promise(async (resolve) => {
|
|
22542
|
-
state.opened.splice(1)
|
|
22486
|
+
state.opened.splice(1);
|
|
22487
|
+
commit2("keepAliveRefresh");
|
|
22543
22488
|
await dispatch2("opened2db");
|
|
22544
22489
|
if (router$1.currentRoute.value.name !== "index") {
|
|
22545
22490
|
router$1.push(
|
|
@@ -22563,42 +22508,17 @@ var page = {
|
|
|
22563
22508
|
},
|
|
22564
22509
|
mutations: {
|
|
22565
22510
|
keepAliveRefresh(state) {
|
|
22566
|
-
state.keepAlive = state.opened.filter((item) => isKeepAlive(item)).map((e3) => e3.
|
|
22567
|
-
},
|
|
22568
|
-
keepAliveRemove(state, name) {
|
|
22569
|
-
const list = [...state.keepAlive];
|
|
22570
|
-
const index2 = list.findIndex((item) => item === name);
|
|
22571
|
-
if (index2 !== -1) {
|
|
22572
|
-
list.splice(index2, 1);
|
|
22573
|
-
state.keepAlive = list;
|
|
22574
|
-
}
|
|
22575
|
-
},
|
|
22576
|
-
keepAlivePush(state, name) {
|
|
22577
|
-
const keep = [...state.keepAlive];
|
|
22578
|
-
keep.push(name);
|
|
22579
|
-
state.keepAlive = keep;
|
|
22580
|
-
},
|
|
22581
|
-
keepAliveClean(state) {
|
|
22582
|
-
state.keepAlive = [];
|
|
22511
|
+
state.keepAlive = state.opened.filter((item) => isKeepAlive(item)).map((e3) => e3.pageName);
|
|
22583
22512
|
},
|
|
22584
22513
|
currentSet(state, fullPath) {
|
|
22585
22514
|
state.current = fullPath;
|
|
22586
22515
|
},
|
|
22587
22516
|
init(state, routes) {
|
|
22588
22517
|
const pool = [];
|
|
22589
|
-
|
|
22590
|
-
|
|
22591
|
-
|
|
22592
|
-
|
|
22593
|
-
} else {
|
|
22594
|
-
if (!route.hidden) {
|
|
22595
|
-
const { meta, name, path } = route;
|
|
22596
|
-
pool.push({ meta, name, path });
|
|
22597
|
-
}
|
|
22598
|
-
}
|
|
22599
|
-
});
|
|
22600
|
-
};
|
|
22601
|
-
push2(routes);
|
|
22518
|
+
routes.forEach((route) => {
|
|
22519
|
+
const { meta, name, path } = route;
|
|
22520
|
+
pool.push({ meta, name, path });
|
|
22521
|
+
});
|
|
22602
22522
|
state.pool = pool;
|
|
22603
22523
|
}
|
|
22604
22524
|
}
|
|
@@ -22732,63 +22652,32 @@ var store = createStore({
|
|
|
22732
22652
|
}
|
|
22733
22653
|
});
|
|
22734
22654
|
var dynamic = {
|
|
22735
|
-
async init(router2, pages2
|
|
22655
|
+
async init(router2, pages2) {
|
|
22736
22656
|
let res2 = await permissionApi.queryRouter();
|
|
22737
|
-
|
|
22738
|
-
|
|
22739
|
-
|
|
22740
|
-
|
|
22741
|
-
|
|
22742
|
-
|
|
22743
|
-
|
|
22744
|
-
|
|
22745
|
-
|
|
22746
|
-
|
|
22747
|
-
|
|
22748
|
-
|
|
22749
|
-
|
|
22750
|
-
|
|
22751
|
-
meta: {
|
|
22752
|
-
title: "404"
|
|
22753
|
-
},
|
|
22754
|
-
component: () => {
|
|
22755
|
-
return new Promise((resolve) => {
|
|
22756
|
-
resolve(pages2["system/error/404.vue"]);
|
|
22757
|
-
});
|
|
22758
|
-
}
|
|
22759
|
-
},
|
|
22760
|
-
{
|
|
22761
|
-
path: "/",
|
|
22762
|
-
redirect: {
|
|
22763
|
-
name: "login"
|
|
22764
|
-
},
|
|
22765
|
-
component: layout2,
|
|
22766
|
-
children: []
|
|
22767
|
-
}
|
|
22768
|
-
];
|
|
22769
|
-
for (let i3 = 0; i3 < topPer.length; i3++) {
|
|
22770
|
-
if (!(topPer[i3].templateUrl || "").trim()) {
|
|
22771
|
-
topPer[i3] = PermissionDeep(topPer[i3], allPer);
|
|
22772
|
-
} else {
|
|
22773
|
-
let parent = routes.find((element) => {
|
|
22774
|
-
return element.path === "/";
|
|
22775
|
-
});
|
|
22776
|
-
let item = topPer[i3];
|
|
22777
|
-
let url = item.url.split("?")[0];
|
|
22778
|
-
let data2 = {};
|
|
22779
|
-
if (item.url.split("?").length > 1) {
|
|
22657
|
+
const root = router2.getRoutes().find((item) => item.path == "/");
|
|
22658
|
+
res2.forEach((item) => {
|
|
22659
|
+
var _a2;
|
|
22660
|
+
if (item.isCustomPage) {
|
|
22661
|
+
item.url += "?id=" + item.customPageID;
|
|
22662
|
+
if (item.customPage.customPageTemplate) {
|
|
22663
|
+
item.templateUrl = "template/" + item.customPage.customPageTemplate.substr(0, 1).toLowerCase() + item.customPage.customPageTemplate.substr(1) + ".vue";
|
|
22664
|
+
}
|
|
22665
|
+
}
|
|
22666
|
+
if (!!(item.templateUrl || "").trim()) {
|
|
22667
|
+
const path = ((_a2 = item.url) == null ? void 0 : _a2.split("?")[0]) || "";
|
|
22668
|
+
const name = path.replace(/\//g, "-");
|
|
22669
|
+
const data2 = {};
|
|
22670
|
+
if (item.url && item.url.split("?").length > 1) {
|
|
22780
22671
|
item.url.split("?")[1].split("&").forEach((item2) => {
|
|
22781
22672
|
if (item2.split("=").length > 1 && item2.split("=")[0].length > 0) {
|
|
22782
22673
|
data2[item2.split("=")[0]] = item2.split("=")[1];
|
|
22783
22674
|
}
|
|
22784
22675
|
});
|
|
22785
22676
|
}
|
|
22786
|
-
|
|
22787
|
-
|
|
22788
|
-
|
|
22789
|
-
name: url.replace(/\//g, "-"),
|
|
22677
|
+
root.children.push({
|
|
22678
|
+
path,
|
|
22679
|
+
name,
|
|
22790
22680
|
meta: {
|
|
22791
|
-
auth: false,
|
|
22792
22681
|
title: getNameI18n(item),
|
|
22793
22682
|
description: getDescI18n(item),
|
|
22794
22683
|
data: data2,
|
|
@@ -22799,96 +22688,25 @@ var dynamic = {
|
|
|
22799
22688
|
resolve(pages2[item.templateUrl]);
|
|
22800
22689
|
});
|
|
22801
22690
|
}
|
|
22802
|
-
};
|
|
22803
|
-
parent.children.push(node);
|
|
22691
|
+
});
|
|
22804
22692
|
}
|
|
22805
|
-
}
|
|
22806
|
-
buildPermission(pages2, topPer, routes, layout2, null);
|
|
22807
|
-
routes.forEach((route) => {
|
|
22808
|
-
router2.addRoute(route);
|
|
22809
22693
|
});
|
|
22810
|
-
|
|
22811
|
-
|
|
22812
|
-
|
|
22813
|
-
|
|
22814
|
-
|
|
22815
|
-
|
|
22816
|
-
|
|
22817
|
-
|
|
22818
|
-
|
|
22819
|
-
|
|
22820
|
-
|
|
22821
|
-
path: "/" + item.url.split("/").pop(),
|
|
22822
|
-
name: item.url.replace("app.", "").replace(/\./g, "-"),
|
|
22823
|
-
meta: {
|
|
22824
|
-
auth: false
|
|
22825
|
-
},
|
|
22826
|
-
component: layout2
|
|
22827
|
-
};
|
|
22828
|
-
routes.push(node);
|
|
22829
|
-
}
|
|
22830
|
-
} else {
|
|
22831
|
-
let url = item.url.split("?")[0];
|
|
22832
|
-
let data2 = {};
|
|
22833
|
-
if (item.url.split("?").length > 1) {
|
|
22834
|
-
item.url.split("?")[1].split("&").forEach((item2) => {
|
|
22835
|
-
if (item2.split("=").length > 1 && item2.split("=")[0].length > 0) {
|
|
22836
|
-
data2[item2.split("=")[0]] = item2.split("=")[1];
|
|
22837
|
-
}
|
|
22694
|
+
router2.removeRoute("root");
|
|
22695
|
+
router2.addRoute(root);
|
|
22696
|
+
router2.addRoute({
|
|
22697
|
+
path: "/:pathMatch(.*)",
|
|
22698
|
+
name: "404",
|
|
22699
|
+
meta: {
|
|
22700
|
+
title: "404"
|
|
22701
|
+
},
|
|
22702
|
+
component: () => {
|
|
22703
|
+
return new Promise((resolve) => {
|
|
22704
|
+
resolve(pages2["system/error/404.vue"]);
|
|
22838
22705
|
});
|
|
22839
22706
|
}
|
|
22840
|
-
|
|
22841
|
-
id: item.id,
|
|
22842
|
-
pId: item.parentID,
|
|
22843
|
-
path: url.split("/").pop(),
|
|
22844
|
-
name: url.replace(/\//g, "-"),
|
|
22845
|
-
meta: {
|
|
22846
|
-
auth: false,
|
|
22847
|
-
title: getNameI18n(item),
|
|
22848
|
-
description: getDescI18n(item),
|
|
22849
|
-
data: data2,
|
|
22850
|
-
cache: true
|
|
22851
|
-
},
|
|
22852
|
-
component: () => {
|
|
22853
|
-
return new Promise((resolve) => {
|
|
22854
|
-
resolve(pages2[item.templateUrl]);
|
|
22855
|
-
});
|
|
22856
|
-
}
|
|
22857
|
-
};
|
|
22858
|
-
if (parent == null) {
|
|
22859
|
-
parent = routes.find((p) => p.id == item.parentID);
|
|
22860
|
-
}
|
|
22861
|
-
if (parent != void 0) {
|
|
22862
|
-
if (parent.children == null) {
|
|
22863
|
-
parent.children = [];
|
|
22864
|
-
}
|
|
22865
|
-
if (parent.pId != null) {
|
|
22866
|
-
let backup = parent;
|
|
22867
|
-
parent = routes.find((p) => p.id == parent.pId);
|
|
22868
|
-
node.path = url.split("/").splice(1).join("/");
|
|
22869
|
-
parent.children.push(node);
|
|
22870
|
-
parent = backup;
|
|
22871
|
-
} else {
|
|
22872
|
-
parent.children.push(node);
|
|
22873
|
-
}
|
|
22874
|
-
}
|
|
22875
|
-
}
|
|
22876
|
-
if (item.sonPer != null) {
|
|
22877
|
-
buildPermission(pages2, item.sonPer, routes, layout2, node);
|
|
22878
|
-
}
|
|
22879
|
-
});
|
|
22880
|
-
return routes;
|
|
22881
|
-
}
|
|
22882
|
-
function PermissionDeep(per, perArry) {
|
|
22883
|
-
let sonPerArry = perArry.filter((p) => p.parentID == per.id);
|
|
22884
|
-
if (sonPerArry.length > 0) {
|
|
22885
|
-
per["sonPer"] = sonPerArry;
|
|
22886
|
-
for (let i3 = 0; i3 < sonPerArry.length; i3++) {
|
|
22887
|
-
sonPerArry[i3] = PermissionDeep(sonPerArry[i3], perArry);
|
|
22888
|
-
}
|
|
22707
|
+
});
|
|
22889
22708
|
}
|
|
22890
|
-
|
|
22891
|
-
}
|
|
22709
|
+
};
|
|
22892
22710
|
function getNameI18n(item) {
|
|
22893
22711
|
if (Setting.layout.showI18n) {
|
|
22894
22712
|
let key = "Permission_" + item.url.split("?")[0];
|
|
@@ -22921,7 +22739,7 @@ const router = createRouter({
|
|
|
22921
22739
|
routes: []
|
|
22922
22740
|
});
|
|
22923
22741
|
let inited = false;
|
|
22924
|
-
const initRouter = (pages2,
|
|
22742
|
+
const initRouter = (pages2, routes) => {
|
|
22925
22743
|
routes.forEach((route) => {
|
|
22926
22744
|
router.addRoute(route);
|
|
22927
22745
|
});
|
|
@@ -22931,9 +22749,9 @@ const initRouter = (pages2, layout2, routes) => {
|
|
|
22931
22749
|
ViewUIPlus.LoadingBar.start();
|
|
22932
22750
|
}
|
|
22933
22751
|
if (!inited) {
|
|
22934
|
-
|
|
22935
|
-
|
|
22936
|
-
store.
|
|
22752
|
+
await dynamic.init(router, pages2);
|
|
22753
|
+
store.commit("admin/page/init", router.getRoutes());
|
|
22754
|
+
store.dispatch("admin/page/openedLoad", { loadOpenedTabs: true }, { root: true });
|
|
22937
22755
|
inited = true;
|
|
22938
22756
|
next({
|
|
22939
22757
|
...to,
|
|
@@ -22960,12 +22778,10 @@ const initRouter = (pages2, layout2, routes) => {
|
|
|
22960
22778
|
router.afterEach((to) => {
|
|
22961
22779
|
if (Setting.showProgressBar)
|
|
22962
22780
|
ViewUIPlus.LoadingBar.finish();
|
|
22963
|
-
if (
|
|
22781
|
+
if (Setting.layout.tabs) {
|
|
22964
22782
|
store.dispatch("admin/page/open", to);
|
|
22965
22783
|
}
|
|
22966
|
-
|
|
22967
|
-
title: to.meta.title
|
|
22968
|
-
});
|
|
22784
|
+
window.document.title = window.$app.$t(to.meta.title) + " - " + Setting.info.title;
|
|
22969
22785
|
window.scrollTo(0, 0);
|
|
22970
22786
|
});
|
|
22971
22787
|
};
|
|
@@ -24482,7 +24298,6 @@ var customModelApi = {
|
|
|
24482
24298
|
data: data2
|
|
24483
24299
|
});
|
|
24484
24300
|
} else {
|
|
24485
|
-
console.log("4");
|
|
24486
24301
|
result2 = await service({
|
|
24487
24302
|
url: `api/${res$h}/query`,
|
|
24488
24303
|
method: "post",
|
|
@@ -34865,6 +34680,7 @@ var __glob_44_35 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
34865
34680
|
"default": reportPage
|
|
34866
34681
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
34867
34682
|
const _sfc_main$I = {
|
|
34683
|
+
name: "template-viewPage",
|
|
34868
34684
|
mixins: [mixinPage],
|
|
34869
34685
|
components: {},
|
|
34870
34686
|
data() {
|
|
@@ -41975,9 +41791,6 @@ const _sfc_main$q = {
|
|
|
41975
41791
|
}
|
|
41976
41792
|
},
|
|
41977
41793
|
activated() {
|
|
41978
|
-
if (this.viewCode && this.autoLoad) {
|
|
41979
|
-
this.loadData();
|
|
41980
|
-
}
|
|
41981
41794
|
},
|
|
41982
41795
|
props: {
|
|
41983
41796
|
title: {
|
|
@@ -44734,7 +44547,7 @@ function lastChild(el, selector2) {
|
|
|
44734
44547
|
}
|
|
44735
44548
|
return last || null;
|
|
44736
44549
|
}
|
|
44737
|
-
function index$
|
|
44550
|
+
function index$2(el, selector2) {
|
|
44738
44551
|
var index2 = 0;
|
|
44739
44552
|
if (!el || !el.parentNode) {
|
|
44740
44553
|
return -1;
|
|
@@ -45356,8 +45169,8 @@ Sortable.prototype = {
|
|
|
45356
45169
|
if (lastDownEl === target) {
|
|
45357
45170
|
return;
|
|
45358
45171
|
}
|
|
45359
|
-
oldIndex = index$
|
|
45360
|
-
oldDraggableIndex = index$
|
|
45172
|
+
oldIndex = index$2(target);
|
|
45173
|
+
oldDraggableIndex = index$2(target, options.draggable);
|
|
45361
45174
|
if (typeof filter2 === "function") {
|
|
45362
45175
|
if (filter2.call(this, evt, target, this)) {
|
|
45363
45176
|
_dispatchEvent({
|
|
@@ -45779,8 +45592,8 @@ Sortable.prototype = {
|
|
|
45779
45592
|
return completedFired = true;
|
|
45780
45593
|
}
|
|
45781
45594
|
function changed() {
|
|
45782
|
-
newIndex = index$
|
|
45783
|
-
newDraggableIndex = index$
|
|
45595
|
+
newIndex = index$2(dragEl);
|
|
45596
|
+
newDraggableIndex = index$2(dragEl, options.draggable);
|
|
45784
45597
|
_dispatchEvent({
|
|
45785
45598
|
sortable: _this,
|
|
45786
45599
|
name: "change",
|
|
@@ -45864,7 +45677,7 @@ Sortable.prototype = {
|
|
|
45864
45677
|
direction = _getSwapDirection(evt, target, targetRect, vertical, differentRowCol ? 1 : options.swapThreshold, options.invertedSwapThreshold == null ? options.swapThreshold : options.invertedSwapThreshold, isCircumstantialInvert, lastTarget === target);
|
|
45865
45678
|
var sibling;
|
|
45866
45679
|
if (direction !== 0) {
|
|
45867
|
-
var dragIndex = index$
|
|
45680
|
+
var dragIndex = index$2(dragEl);
|
|
45868
45681
|
do {
|
|
45869
45682
|
dragIndex -= direction;
|
|
45870
45683
|
sibling = parentEl.children[dragIndex];
|
|
@@ -45926,14 +45739,14 @@ Sortable.prototype = {
|
|
|
45926
45739
|
},
|
|
45927
45740
|
_onDrop: function _onDrop(evt) {
|
|
45928
45741
|
var el = this.el, options = this.options;
|
|
45929
|
-
newIndex = index$
|
|
45930
|
-
newDraggableIndex = index$
|
|
45742
|
+
newIndex = index$2(dragEl);
|
|
45743
|
+
newDraggableIndex = index$2(dragEl, options.draggable);
|
|
45931
45744
|
pluginEvent("drop", this, {
|
|
45932
45745
|
evt
|
|
45933
45746
|
});
|
|
45934
45747
|
parentEl = dragEl && dragEl.parentNode;
|
|
45935
|
-
newIndex = index$
|
|
45936
|
-
newDraggableIndex = index$
|
|
45748
|
+
newIndex = index$2(dragEl);
|
|
45749
|
+
newDraggableIndex = index$2(dragEl, options.draggable);
|
|
45937
45750
|
if (Sortable.eventCanceled) {
|
|
45938
45751
|
this._nulling();
|
|
45939
45752
|
return;
|
|
@@ -46254,7 +46067,7 @@ function _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, inv
|
|
|
46254
46067
|
return 0;
|
|
46255
46068
|
}
|
|
46256
46069
|
function _getInsertDirection(target) {
|
|
46257
|
-
if (index$
|
|
46070
|
+
if (index$2(dragEl) < index$2(target)) {
|
|
46258
46071
|
return 1;
|
|
46259
46072
|
} else {
|
|
46260
46073
|
return -1;
|
|
@@ -46302,7 +46115,7 @@ Sortable.utils = {
|
|
|
46302
46115
|
closest,
|
|
46303
46116
|
toggleClass,
|
|
46304
46117
|
clone: clone$5,
|
|
46305
|
-
index: index$
|
|
46118
|
+
index: index$2,
|
|
46306
46119
|
nextTick: _nextTick,
|
|
46307
46120
|
cancelNextTick: _cancelNextTick,
|
|
46308
46121
|
detectDirection: _detectDirection,
|
|
@@ -46620,8 +46433,8 @@ function swapNodes(n1, n2) {
|
|
|
46620
46433
|
var p1 = n1.parentNode, p2 = n2.parentNode, i1, i22;
|
|
46621
46434
|
if (!p1 || !p2 || p1.isEqualNode(n2) || p2.isEqualNode(n1))
|
|
46622
46435
|
return;
|
|
46623
|
-
i1 = index$
|
|
46624
|
-
i22 = index$
|
|
46436
|
+
i1 = index$2(n1);
|
|
46437
|
+
i22 = index$2(n2);
|
|
46625
46438
|
if (p1.isEqualNode(p2) && i1 < i22) {
|
|
46626
46439
|
i22++;
|
|
46627
46440
|
}
|
|
@@ -46731,7 +46544,7 @@ function MultiDragPlugin() {
|
|
|
46731
46544
|
multiDragSortable.multiDrag._deselectMultiDrag();
|
|
46732
46545
|
}
|
|
46733
46546
|
multiDragElements.forEach(function(multiDragElement) {
|
|
46734
|
-
multiDragElement.sortableIndex = index$
|
|
46547
|
+
multiDragElement.sortableIndex = index$2(multiDragElement);
|
|
46735
46548
|
});
|
|
46736
46549
|
multiDragElements = multiDragElements.sort(function(a3, b2) {
|
|
46737
46550
|
return a3.sortableIndex - b2.sortableIndex;
|
|
@@ -46877,7 +46690,7 @@ function MultiDragPlugin() {
|
|
|
46877
46690
|
originalEvt: evt
|
|
46878
46691
|
});
|
|
46879
46692
|
if (evt.shiftKey && lastMultiDragSelect && sortable.el.contains(lastMultiDragSelect)) {
|
|
46880
|
-
var lastIndex = index$
|
|
46693
|
+
var lastIndex = index$2(lastMultiDragSelect), currentIndex = index$2(dragEl$1);
|
|
46881
46694
|
if (~lastIndex && ~currentIndex && lastIndex !== currentIndex) {
|
|
46882
46695
|
var n2, i3;
|
|
46883
46696
|
if (currentIndex > lastIndex) {
|
|
@@ -46920,7 +46733,7 @@ function MultiDragPlugin() {
|
|
|
46920
46733
|
if (dragStarted && this.isMultiDrag) {
|
|
46921
46734
|
folding = false;
|
|
46922
46735
|
if ((parentEl2[expando].options.sort || parentEl2 !== rootEl2) && multiDragElements.length > 1) {
|
|
46923
|
-
var dragRect = getRect(dragEl$1), multiDragIndex = index$
|
|
46736
|
+
var dragRect = getRect(dragEl$1), multiDragIndex = index$2(dragEl$1, ":not(." + this.options.selectedClass + ")");
|
|
46924
46737
|
if (!initialFolding && options.animation)
|
|
46925
46738
|
dragEl$1.thisAnimationDuration = null;
|
|
46926
46739
|
toSortable.captureAnimationState();
|
|
@@ -46948,10 +46761,10 @@ function MultiDragPlugin() {
|
|
|
46948
46761
|
}
|
|
46949
46762
|
multiDragIndex++;
|
|
46950
46763
|
});
|
|
46951
|
-
if (oldIndex2 === index$
|
|
46764
|
+
if (oldIndex2 === index$2(dragEl$1)) {
|
|
46952
46765
|
var update3 = false;
|
|
46953
46766
|
multiDragElements.forEach(function(multiDragElement) {
|
|
46954
|
-
if (multiDragElement.sortableIndex !== index$
|
|
46767
|
+
if (multiDragElement.sortableIndex !== index$2(multiDragElement)) {
|
|
46955
46768
|
update3 = true;
|
|
46956
46769
|
return;
|
|
46957
46770
|
}
|
|
@@ -47053,9 +46866,9 @@ function MultiDragPlugin() {
|
|
|
47053
46866
|
if (folding && multiDragElement !== dragEl$1) {
|
|
47054
46867
|
newIndex2 = -1;
|
|
47055
46868
|
} else if (folding) {
|
|
47056
|
-
newIndex2 = index$
|
|
46869
|
+
newIndex2 = index$2(multiDragElement, ":not(." + _this3.options.selectedClass + ")");
|
|
47057
46870
|
} else {
|
|
47058
|
-
newIndex2 = index$
|
|
46871
|
+
newIndex2 = index$2(multiDragElement);
|
|
47059
46872
|
}
|
|
47060
46873
|
newIndicies.push({
|
|
47061
46874
|
multiDragElement,
|
|
@@ -52857,7 +52670,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
52857
52670
|
}, 8, ["modelValue", "mask-closable", "draggable", "width", "before-close", "footer-hide", "onOnVisibleChange"]);
|
|
52858
52671
|
}
|
|
52859
52672
|
var ModalTable = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__file", "D:/Project/Mooho/FrontEnd/mooho-base-admin-plus/src/components/view/modal-table.vue"]]);
|
|
52860
|
-
var index = "";
|
|
52673
|
+
var index$1 = "";
|
|
52861
52674
|
var _default = "";
|
|
52862
52675
|
var focus = {
|
|
52863
52676
|
update() {
|
|
@@ -52874,20 +52687,9 @@ var tabHide = {
|
|
|
52874
52687
|
});
|
|
52875
52688
|
}
|
|
52876
52689
|
};
|
|
52877
|
-
var tTitle = {
|
|
52878
|
-
methods: {
|
|
52879
|
-
tTitle(title) {
|
|
52880
|
-
if (title && title.indexOf("$t:") === 0) {
|
|
52881
|
-
return this.$t(title.split("$t:")[1]);
|
|
52882
|
-
} else {
|
|
52883
|
-
return title;
|
|
52884
|
-
}
|
|
52885
|
-
}
|
|
52886
|
-
}
|
|
52887
|
-
};
|
|
52888
52690
|
const _sfc_main$k = {
|
|
52889
52691
|
name: "iMenuHeadTitle",
|
|
52890
|
-
mixins: [
|
|
52692
|
+
mixins: [],
|
|
52891
52693
|
props: {
|
|
52892
52694
|
item: {
|
|
52893
52695
|
type: Object,
|
|
@@ -52938,7 +52740,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
52938
52740
|
src: $props.item.img
|
|
52939
52741
|
}, null, 8, _hoisted_3$7)) : createCommentVNode("v-if", true)
|
|
52940
52742
|
])) : createCommentVNode("v-if", true),
|
|
52941
|
-
createElementVNode("span", _hoisted_4$2, toDisplayString$1(_ctx
|
|
52743
|
+
createElementVNode("span", _hoisted_4$2, toDisplayString$1(_ctx.$t($props.item.title)), 1),
|
|
52942
52744
|
$props.badge && $options.badgeData ? (openBlock(), createBlock(_component_Badge, mergeProps({
|
|
52943
52745
|
key: 1,
|
|
52944
52746
|
class: "i-layout-menu-head-badge"
|
|
@@ -53330,7 +53132,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
53330
53132
|
default: withCtx(() => [
|
|
53331
53133
|
(openBlock(true), createElementBlock(Fragment, null, renderList($props.menu.children, (item, index2) => {
|
|
53332
53134
|
return openBlock(), createElementBlock(Fragment, { key: index2 }, [
|
|
53333
|
-
item.children
|
|
53135
|
+
item.children == null || !item.children.length ? (openBlock(), createBlock(_component_i_menu_side_item, {
|
|
53334
53136
|
key: 0,
|
|
53335
53137
|
menu: item
|
|
53336
53138
|
}, null, 8, ["menu"])) : (openBlock(), createBlock(_component_i_menu_side_submenu, {
|
|
@@ -53587,7 +53389,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
53587
53389
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.filterSider, (item, index2) => {
|
|
53588
53390
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
53589
53391
|
!_ctx.menuCollapse ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
53590
|
-
item.children
|
|
53392
|
+
item.children == null || !item.children.length ? (openBlock(), createBlock(_component_i_menu_side_item, {
|
|
53591
53393
|
menu: item,
|
|
53592
53394
|
key: index2
|
|
53593
53395
|
}, null, 8, ["menu"])) : (openBlock(), createBlock(_component_i_menu_side_submenu, {
|
|
@@ -53595,7 +53397,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
53595
53397
|
key: "submenu" + index2
|
|
53596
53398
|
}, null, 8, ["menu"]))
|
|
53597
53399
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
53598
|
-
item.children
|
|
53400
|
+
item.children == null || !item.children.length ? (openBlock(), createBlock(_component_Tooltip, {
|
|
53599
53401
|
content: _ctx.layout.showI18n ? _ctx.$t("Permission_" + item.code) : item.title,
|
|
53600
53402
|
placement: "right",
|
|
53601
53403
|
key: index2,
|
|
@@ -55133,7 +54935,7 @@ function random$1(len2 = 32) {
|
|
|
55133
54935
|
}
|
|
55134
54936
|
const _sfc_main$2 = {
|
|
55135
54937
|
name: "iTabs",
|
|
55136
|
-
mixins: [
|
|
54938
|
+
mixins: [],
|
|
55137
54939
|
emits: ["on-reload"],
|
|
55138
54940
|
computed: {
|
|
55139
54941
|
...mapState("admin/page", ["opened", "current"]),
|
|
@@ -55169,7 +54971,7 @@ const _sfc_main$2 = {
|
|
|
55169
54971
|
methods: {
|
|
55170
54972
|
...mapActions("admin/page", ["close", "closeLeft", "closeRight", "closeOther", "closeAll", "updateOpened"]),
|
|
55171
54973
|
tabLabel(h4, page2) {
|
|
55172
|
-
const title = h4("span", this
|
|
54974
|
+
const title = h4("span", this.$t(page2.meta ? page2.meta.title : "\u672A\u547D\u540D") || "\u672A\u547D\u540D");
|
|
55173
54975
|
let slot = [];
|
|
55174
54976
|
if (this.showTabsIcon) {
|
|
55175
54977
|
const fullPathWithoutQuery = page2.fullPath.indexOf("?") >= 0 ? page2.fullPath.split("?")[0] : page2.fullPath;
|
|
@@ -55561,7 +55363,7 @@ const _sfc_main = {
|
|
|
55561
55363
|
const scrollTop = document.body.scrollTop + document.documentElement.scrollTop;
|
|
55562
55364
|
if (!this.ticking) {
|
|
55563
55365
|
this.ticking = true;
|
|
55564
|
-
|
|
55366
|
+
requestAnimationFrame(() => {
|
|
55565
55367
|
if (this.oldScrollTop > scrollTop) {
|
|
55566
55368
|
this.headerVisible = true;
|
|
55567
55369
|
} else if (scrollTop > 300 && this.headerVisible) {
|
|
@@ -55780,7 +55582,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
55780
55582
|
_: 3
|
|
55781
55583
|
});
|
|
55782
55584
|
}
|
|
55783
|
-
var
|
|
55585
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:/Project/Mooho/FrontEnd/mooho-base-admin-plus/src/layouts/basic-layout/index.vue"]]);
|
|
55784
55586
|
/*! *****************************************************************************
|
|
55785
55587
|
Copyright (c) Microsoft Corporation.
|
|
55786
55588
|
|
|
@@ -58556,11 +58358,11 @@ var Storage = function() {
|
|
|
58556
58358
|
return Storage2;
|
|
58557
58359
|
}();
|
|
58558
58360
|
var Storage$1 = Storage;
|
|
58559
|
-
var requestAnimationFrame;
|
|
58560
|
-
requestAnimationFrame = env$1.hasGlobalWindow && (window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.msRequestAnimationFrame && window.msRequestAnimationFrame.bind(window) || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame) || function(func) {
|
|
58361
|
+
var requestAnimationFrame$1;
|
|
58362
|
+
requestAnimationFrame$1 = env$1.hasGlobalWindow && (window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.msRequestAnimationFrame && window.msRequestAnimationFrame.bind(window) || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame) || function(func) {
|
|
58561
58363
|
return setTimeout(func, 16);
|
|
58562
58364
|
};
|
|
58563
|
-
var requestAnimationFrame$
|
|
58365
|
+
var requestAnimationFrame$2 = requestAnimationFrame$1;
|
|
58564
58366
|
var easingFuncs = {
|
|
58565
58367
|
linear: function(k3) {
|
|
58566
58368
|
return k3;
|
|
@@ -60637,11 +60439,11 @@ var Animation = function(_super) {
|
|
|
60637
60439
|
this._running = true;
|
|
60638
60440
|
function step() {
|
|
60639
60441
|
if (self2._running) {
|
|
60640
|
-
requestAnimationFrame$
|
|
60442
|
+
requestAnimationFrame$2(step);
|
|
60641
60443
|
!self2._paused && self2.update();
|
|
60642
60444
|
}
|
|
60643
60445
|
}
|
|
60644
|
-
requestAnimationFrame$
|
|
60446
|
+
requestAnimationFrame$2(step);
|
|
60645
60447
|
};
|
|
60646
60448
|
Animation2.prototype.start = function() {
|
|
60647
60449
|
if (this._running) {
|
|
@@ -86686,7 +86488,7 @@ var CanvasPainter = function() {
|
|
|
86686
86488
|
}
|
|
86687
86489
|
if (!finished) {
|
|
86688
86490
|
var self_1 = this;
|
|
86689
|
-
requestAnimationFrame$
|
|
86491
|
+
requestAnimationFrame$2(function() {
|
|
86690
86492
|
self_1._paintList(list, prevList, paintAll, redrawId);
|
|
86691
86493
|
});
|
|
86692
86494
|
} else {
|
|
@@ -127518,14 +127320,14 @@ const pages = {};
|
|
|
127518
127320
|
Object.keys(files).forEach((key) => {
|
|
127519
127321
|
pages[key.replace(/(\.\/pages\/)/g, "")] = files[key].default;
|
|
127520
127322
|
});
|
|
127521
|
-
const created = async (app, pages2, routes
|
|
127323
|
+
const created = async (app, pages2, routes) => {
|
|
127522
127324
|
if (window) {
|
|
127523
127325
|
window.$app = getCurrentInstance();
|
|
127524
127326
|
window.$app.$t = i18n$1.global.t;
|
|
127525
127327
|
window.$app.$Message = app.config.globalProperties.$Message;
|
|
127526
127328
|
window.$app.$Notice = app.config.globalProperties.$Notice;
|
|
127527
127329
|
}
|
|
127528
|
-
initRouter(pages2,
|
|
127330
|
+
initRouter(pages2, routes);
|
|
127529
127331
|
store.dispatch("admin/i18n/load", app);
|
|
127530
127332
|
store.commit("admin/menu/setHeader", menuHeader);
|
|
127531
127333
|
store.dispatch("admin/account/load");
|
|
@@ -127534,4 +127336,4 @@ const created = async (app, pages2, routes, layout2 = basicLayout) => {
|
|
|
127534
127336
|
const routeChanged = (to) => {
|
|
127535
127337
|
store.dispatch("admin/menu/setMenuList", to);
|
|
127536
127338
|
};
|
|
127537
|
-
export { App, applicationApi, basicLayout, created, customModelApi, dataSourceApi, API as default, i18n$1 as i18n, initRouter, lodop, mixinPage, modelApi, pages, service as request, routeChanged, router$1 as router, Setting as setting, store, taskApi, util$8 as util };
|
|
127339
|
+
export { App, applicationApi, index as basicLayout, created, customModelApi, dataSourceApi, API as default, i18n$1 as i18n, initRouter, lodop, mixinPage, modelApi, pages, service as request, routeChanged, router$1 as router, Setting as setting, store, taskApi, util$8 as util };
|