@das-fed/utils 6.4.0-hot.45 → 6.4.0-hot.46
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/api-services/i18n/index.js.gz +0 -0
- package/api-services/index.js +1820 -1504
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +1623 -1307
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +1631 -1319
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +1632 -1334
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +1662 -1332
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +1673 -1339
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +1634 -1318
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +1708 -1392
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +1634 -1318
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1852 -1536
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +1674 -1358
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +1635 -1319
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +1647 -1349
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +1634 -1318
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +1626 -1328
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +1645 -1329
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +1631 -1319
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +1634 -1318
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +1632 -1334
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +1654 -1338
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +1626 -1328
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +1631 -1315
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +1655 -1339
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +1654 -1338
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/getInfoFromUrl/index.js.gz +0 -0
- package/common-info/index.d.ts +1 -5
- package/common-info/index.js +58 -84
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/index.js +842 -593
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/common-info/type.d.ts +0 -14
- package/common-tools/extract-file-name/index.js +1034 -785
- package/common-tools/extract-file-name/index.js.gz +0 -0
- package/common-tools/get-url-params/index.js.gz +0 -0
- package/create-api-service/index.js +1654 -1338
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.js +976 -727
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/index.js +1354 -1105
- package/curring-http/index.js.gz +0 -0
- package/directive/auth/index.js +48 -41
- package/directive/auth/index.js.gz +0 -0
- package/esm-map.json +1 -3
- package/hooks/use-get-auth/index.js.gz +0 -0
- package/nextTiken/index.js.gz +0 -0
- package/package.json +4 -4
- package/pinyin-first-character/index.js +19799 -20879
- package/pinyin-first-character/index.js.gz +0 -0
- package/style/index.js +4 -2
- package/style/index.js.gz +0 -0
- package/use-low-code/index.js.gz +0 -0
- package/vue/hooks/use-model-value/index.d.ts +1 -5
- package/webSocket-service/index.js.gz +0 -0
package/curring-http/index.js.gz
CHANGED
|
Binary file
|
package/directive/auth/index.js
CHANGED
|
@@ -1,55 +1,62 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
if (
|
|
6
|
-
|
|
1
|
+
import { getUrlParams as i, flatTree as P } from "@das-fed/utils/common-tools";
|
|
2
|
+
import { getSubApps as v, getPageAuth as o } from "@das-fed/utils/common-info";
|
|
3
|
+
import { getEl as h } from "@das-fed/utils/directive/utils";
|
|
4
|
+
const A = (e, t) => {
|
|
5
|
+
if (!e || !t) return !1;
|
|
6
|
+
if (typeof t == "string")
|
|
7
|
+
return !!e.find((s) => s.code === t);
|
|
7
8
|
{
|
|
8
|
-
let
|
|
9
|
-
for (let
|
|
10
|
-
if (e.find((
|
|
11
|
-
|
|
9
|
+
let r = !1;
|
|
10
|
+
for (let s of t)
|
|
11
|
+
if (e.find((a) => a.code === s)) {
|
|
12
|
+
r = !0;
|
|
12
13
|
break;
|
|
13
14
|
}
|
|
14
|
-
return
|
|
15
|
+
return r;
|
|
15
16
|
}
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
}, m = (e) => {
|
|
18
|
+
var n;
|
|
19
|
+
const t = (e == null ? void 0 : e.code) ?? "", r = (e == null ? void 0 : e.path) ?? (location == null ? void 0 : location.pathname) ?? "", s = (e == null ? void 0 : e.applicationCode) ?? i(location.href, "app");
|
|
20
|
+
let l = "";
|
|
21
|
+
if (l = e != null && e.menuCode ? e.menuCode : i(location.href, "menu"), !l) {
|
|
22
|
+
const c = ((n = v().currentSubApp) == null ? void 0 : n.menus) ?? [];
|
|
23
|
+
if (c && c.length) {
|
|
24
|
+
const d = P(c).filter((f) => f == null ? void 0 : f.routeUrl);
|
|
25
|
+
if (d && d.length) {
|
|
26
|
+
const f = d.find((u) => u != null && u.applicationPath ? r == null ? void 0 : r.includes("/" + u.applicationPath + u.routeUrl) : r == null ? void 0 : r.includes(u.routeUrl));
|
|
27
|
+
f && (l = (f == null ? void 0 : f.code) ?? "");
|
|
28
|
+
}
|
|
26
29
|
}
|
|
27
|
-
|
|
30
|
+
}
|
|
31
|
+
let a = !1;
|
|
32
|
+
if (t) {
|
|
33
|
+
const c = o(l, s) ?? [];
|
|
34
|
+
a = A(c, t);
|
|
28
35
|
} else
|
|
29
|
-
|
|
30
|
-
return
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
let
|
|
37
|
-
typeof
|
|
38
|
-
const
|
|
36
|
+
a = !!o(l, s);
|
|
37
|
+
return a;
|
|
38
|
+
}, g = (e, t) => {
|
|
39
|
+
t === "hide" ? e.classList.add("is-hide") : (e.setAttribute("disabled", ""), e.classList.add("is-disabled"));
|
|
40
|
+
}, b = (e, t) => {
|
|
41
|
+
t === "hide" ? e.classList.remove("is-hide") : (e.removeAttribute("disabled"), e.classList.remove("is-disabled"));
|
|
42
|
+
}, U = (e, t) => {
|
|
43
|
+
let r = (e ? t.value : t) || {};
|
|
44
|
+
typeof r == "string" && (r = { code: r });
|
|
45
|
+
const s = (r == null ? void 0 : r.type) ?? "hide", l = m(r);
|
|
39
46
|
if (e)
|
|
40
|
-
if (!
|
|
41
|
-
|
|
42
|
-
|
|
47
|
+
if (!t.oldValue)
|
|
48
|
+
l || h(e, r).then((a) => {
|
|
49
|
+
g(a, s);
|
|
43
50
|
});
|
|
44
51
|
else {
|
|
45
|
-
const
|
|
46
|
-
if (
|
|
47
|
-
|
|
48
|
-
|
|
52
|
+
const a = m(t.oldValue), n = l;
|
|
53
|
+
if (a === n) return;
|
|
54
|
+
h(e, r).then((c) => {
|
|
55
|
+
n ? b(c, s) : g(c, s);
|
|
49
56
|
});
|
|
50
57
|
}
|
|
51
|
-
return
|
|
58
|
+
return l;
|
|
52
59
|
};
|
|
53
60
|
export {
|
|
54
|
-
|
|
61
|
+
U as vAuth
|
|
55
62
|
};
|
|
Binary file
|
package/esm-map.json
CHANGED
|
@@ -142,7 +142,5 @@
|
|
|
142
142
|
"analyApi": "/api-services/modules/iot/index",
|
|
143
143
|
"calcTextWidth": "/common-tools/calc-text-width/index",
|
|
144
144
|
"getFileExtension": "/common-tools/get-file-extension/index",
|
|
145
|
-
"getLanguages": "/common-info/index"
|
|
146
|
-
"getMenuItemInfo": "/common-info/index",
|
|
147
|
-
"getAuthobj": "/common-info/index"
|
|
145
|
+
"getLanguages": "/common-info/index"
|
|
148
146
|
}
|
|
Binary file
|
package/nextTiken/index.js.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/utils",
|
|
3
|
-
"version": "6.4.0-hot.
|
|
3
|
+
"version": "6.4.0-hot.46",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"license": "ISC",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@antv/x6": "^2.18.1",
|
|
12
|
-
"@das-fed/utils": "6.4.0-hot.
|
|
12
|
+
"@das-fed/utils": "6.4.0-hot.46",
|
|
13
13
|
"@vue/shared": "^3.4.21",
|
|
14
14
|
"@vueuse/core": "^9.6.0",
|
|
15
15
|
"axios": "^1.6.7",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"vue": "^3.4.21"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@das-fed/cli": "6.4.0-hot.
|
|
25
|
-
"@das-fed/web": "6.4.0-hot.
|
|
24
|
+
"@das-fed/cli": "6.4.0-hot.46",
|
|
25
|
+
"@das-fed/web": "6.4.0-hot.46",
|
|
26
26
|
"@types/js-cookie": "^3.0.6",
|
|
27
27
|
"@types/lodash-es": "^4.17.12",
|
|
28
28
|
"@types/qs": "^6.9.15",
|