@das-fed/utils 6.4.0-hot.44 → 6.4.0-hot.45
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 +1504 -1820
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +1329 -1663
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +1318 -1634
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +1321 -1637
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +1311 -1623
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +1339 -1673
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +1318 -1634
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +1392 -1708
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +1318 -1634
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1536 -1852
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +1363 -1661
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +1332 -1630
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +1339 -1655
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +1328 -1626
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +1318 -1634
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +1335 -1633
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +1328 -1626
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +1328 -1626
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +1334 -1632
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +1338 -1654
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +1319 -1631
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +1325 -1623
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +1339 -1655
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +1338 -1654
- 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 +5 -1
- package/common-info/index.js +84 -58
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/index.js +593 -842
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/common-info/type.d.ts +14 -0
- package/common-tools/extract-file-name/index.js +785 -1034
- 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 +1348 -1646
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.js +727 -976
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/index.js +1105 -1354
- package/curring-http/index.js.gz +0 -0
- package/directive/auth/index.js +41 -48
- package/directive/auth/index.js.gz +0 -0
- package/esm-map.json +3 -1
- 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 +21049 -19969
- package/pinyin-first-character/index.js.gz +0 -0
- package/style/index.js +2 -4
- 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 +5 -1
- package/webSocket-service/index.js.gz +0 -0
package/curring-http/index.js.gz
CHANGED
|
Binary file
|
package/directive/auth/index.js
CHANGED
|
@@ -1,62 +1,55 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
if (
|
|
6
|
-
|
|
7
|
-
return !!e.find((s) => s.code === t);
|
|
1
|
+
import { getMenuItemInfo as o, getAuthobj as d } from "@das-fed/utils/common-info";
|
|
2
|
+
import { getEl as u } from "@das-fed/utils/directive/utils";
|
|
3
|
+
const m = (e, s) => {
|
|
4
|
+
if (!e || !s) return !1;
|
|
5
|
+
if (typeof s == "string")
|
|
6
|
+
return !!e.find((r) => r.endsWith(s));
|
|
8
7
|
{
|
|
9
|
-
let
|
|
10
|
-
for (let
|
|
11
|
-
if (e.find((
|
|
12
|
-
|
|
8
|
+
let t = !1;
|
|
9
|
+
for (let r of s)
|
|
10
|
+
if (e.find((i) => i.endsWith(r))) {
|
|
11
|
+
t = !0;
|
|
13
12
|
break;
|
|
14
13
|
}
|
|
15
|
-
return
|
|
14
|
+
return t;
|
|
16
15
|
}
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
f && (l = (f == null ? void 0 : f.code) ?? "");
|
|
28
|
-
}
|
|
16
|
+
}, n = (e) => {
|
|
17
|
+
const s = (e == null ? void 0 : e.code) ?? "";
|
|
18
|
+
let t = (e == null ? void 0 : e.menuCode) ?? "", r = !1;
|
|
19
|
+
if (s) {
|
|
20
|
+
let f = [];
|
|
21
|
+
if (!t)
|
|
22
|
+
f = o().authCodes ?? [];
|
|
23
|
+
else {
|
|
24
|
+
const i = d()[t];
|
|
25
|
+
i && (r = i.some((l) => l.code === s));
|
|
29
26
|
}
|
|
30
|
-
|
|
31
|
-
let a = !1;
|
|
32
|
-
if (t) {
|
|
33
|
-
const c = o(l, s) ?? [];
|
|
34
|
-
a = A(c, t);
|
|
27
|
+
r = m(f, s);
|
|
35
28
|
} else
|
|
36
|
-
|
|
37
|
-
return
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
},
|
|
43
|
-
let
|
|
44
|
-
typeof
|
|
45
|
-
const
|
|
29
|
+
t && (r = !!d()[t]);
|
|
30
|
+
return r;
|
|
31
|
+
}, c = (e, s) => {
|
|
32
|
+
s === "hide" ? e.classList.add("is-hide") : (e.setAttribute("disabled", ""), e.classList.add("is-disabled"));
|
|
33
|
+
}, h = (e, s) => {
|
|
34
|
+
s === "hide" ? e.classList.remove("is-hide") : (e.removeAttribute("disabled"), e.classList.remove("is-disabled"));
|
|
35
|
+
}, A = (e, s) => {
|
|
36
|
+
let t = (e ? s.value : s) || {};
|
|
37
|
+
typeof t == "string" && (t = { code: t });
|
|
38
|
+
const r = (t == null ? void 0 : t.type) ?? "hide", f = n(t);
|
|
46
39
|
if (e)
|
|
47
|
-
if (!
|
|
48
|
-
|
|
49
|
-
|
|
40
|
+
if (!s.oldValue)
|
|
41
|
+
f || u(e, t).then((i) => {
|
|
42
|
+
c(i, r);
|
|
50
43
|
});
|
|
51
44
|
else {
|
|
52
|
-
const
|
|
53
|
-
if (
|
|
54
|
-
|
|
55
|
-
|
|
45
|
+
const i = n(s.oldValue), l = f;
|
|
46
|
+
if (i === l) return;
|
|
47
|
+
u(e, t).then((a) => {
|
|
48
|
+
l ? h(a, r) : c(a, r);
|
|
56
49
|
});
|
|
57
50
|
}
|
|
58
|
-
return
|
|
51
|
+
return f;
|
|
59
52
|
};
|
|
60
53
|
export {
|
|
61
|
-
|
|
54
|
+
A as vAuth
|
|
62
55
|
};
|
|
Binary file
|
package/esm-map.json
CHANGED
|
@@ -142,5 +142,7 @@
|
|
|
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"
|
|
145
|
+
"getLanguages": "/common-info/index",
|
|
146
|
+
"getMenuItemInfo": "/common-info/index",
|
|
147
|
+
"getAuthobj": "/common-info/index"
|
|
146
148
|
}
|
|
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.45",
|
|
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.45",
|
|
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.45",
|
|
25
|
+
"@das-fed/web": "6.4.0-hot.45",
|
|
26
26
|
"@types/js-cookie": "^3.0.6",
|
|
27
27
|
"@types/lodash-es": "^4.17.12",
|
|
28
28
|
"@types/qs": "^6.9.15",
|