@das-fed/utils 1.0.1 → 1.0.3
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/index.d.ts +1 -0
- package/api-services/index.js +3 -19845
- package/api-services/modules/app-manage.d.ts +2 -0
- package/api-services/modules/app-manage.js +5 -6
- package/api-services/modules/authentication.d.ts +2 -0
- package/api-services/modules/authentication.js +5 -6
- package/api-services/modules/bems.d.ts +6 -0
- package/api-services/modules/bems.js +8 -10
- package/api-services/modules/contract.d.ts +2 -0
- package/api-services/modules/contract.js +5 -6
- package/api-services/modules/duty-manage.d.ts +7 -0
- package/api-services/modules/duty-manage.js +9 -10
- package/api-services/modules/enterpriseright.d.ts +2 -0
- package/api-services/modules/enterpriseright.js +5 -6
- package/api-services/modules/file.d.ts +36 -0
- package/api-services/modules/file.js +449 -354
- package/api-services/modules/gateway-edge.d.ts +2 -0
- package/api-services/modules/gateway-edge.js +5 -6
- package/api-services/modules/index.d.ts +21 -0
- package/api-services/modules/index.js +501 -435
- package/api-services/modules/iot.d.ts +15 -0
- package/api-services/modules/iot.js +17 -18
- package/api-services/modules/justauth.d.ts +3 -0
- package/api-services/modules/justauth.js +6 -7
- package/api-services/modules/knowledge.d.ts +2 -0
- package/api-services/modules/knowledge.js +5 -6
- package/api-services/modules/link.d.ts +2 -0
- package/api-services/modules/link.js +5 -6
- package/api-services/modules/permission.d.ts +2 -0
- package/api-services/modules/permission.js +5 -6
- package/api-services/modules/platformManage.d.ts +14 -0
- package/api-services/modules/platformManage.js +12 -13
- package/api-services/modules/portal.d.ts +2 -0
- package/api-services/modules/portal.js +5 -6
- package/api-services/modules/space-manage.d.ts +2 -0
- package/api-services/modules/space-manage.js +5 -6
- package/api-services/modules/super-admin.d.ts +8 -0
- package/api-services/modules/super-admin.js +8 -9
- package/api-services/modules/supplier.d.ts +6 -0
- package/api-services/modules/supplier.js +7 -8
- package/api-services/modules/supplychain-manage.d.ts +2 -0
- package/api-services/modules/supplychain-manage.js +5 -6
- package/api-services/modules/systemConfiguration.d.ts +2 -0
- package/api-services/modules/systemConfiguration.js +5 -6
- package/api-services/modules/tool.d.ts +2 -0
- package/api-services/modules/tool.js +5 -6
- package/api-services/src/create-service.d.ts +2 -0
- package/api-services/src/create-service.js +3119 -19726
- package/api-services/src/sso.d.ts +29 -0
- package/api-services/src/sso.js +1547 -156
- package/api-services/src/util.d.ts +1 -0
- package/api-services/src/util.js +1462 -19
- package/atob/index.d.ts +2 -0
- package/atob/index.js +9 -10
- package/common-info/getIframeUrl.d.ts +9 -0
- package/common-info/getIframeUrl.js +9 -11
- package/common-info/index.d.ts +42 -0
- package/common-info/index.js +138 -272
- package/common-info/setInfoFromUrl.d.ts +8 -0
- package/common-info/setInfoFromUrl.js +60 -128
- package/common-tools/arr-tools.d.ts +15 -0
- package/common-tools/arr-tools.js +6 -13
- package/common-tools/date-format.d.ts +7 -0
- package/common-tools/date-format.js +18 -21
- package/common-tools/get-url-params.d.ts +33 -0
- package/common-tools/get-url-params.js +48 -88
- package/common-tools/handle-data.d.ts +6 -0
- package/common-tools/handle-data.js +3 -4
- package/common-tools/index.d.ts +7 -0
- package/common-tools/index.js +7 -213
- package/common-tools/nest-tree-format.d.ts +30 -0
- package/common-tools/nest-tree-format.js +22 -49
- package/common-tools/obj-tools.d.ts +7 -0
- package/common-tools/obj-tools.js +17 -18
- package/common-tools/setHtmlMinWH.d.ts +5 -0
- package/common-tools/setHtmlMinWH.js +6 -10
- package/common-tools/throttled.d.ts +7 -0
- package/common-tools/throttled.js +7 -16
- package/config/index.d.ts +2 -0
- package/config/index.js +8 -25
- package/curring-http/index.d.ts +11 -0
- package/curring-http/index.js +5150 -17289
- package/directive/auth.d.ts +8 -0
- package/directive/auth.js +54 -104
- package/directive/clickOutside.d.ts +5 -0
- package/directive/clickOutside.js +23 -49
- package/directive/hoverInside.d.ts +5 -0
- package/directive/hoverInside.js +16 -35
- package/directive/index.d.ts +3 -0
- package/directive/index.js +7 -182
- package/directive/utils.d.ts +7 -0
- package/directive/utils.js +6 -11
- package/dom-check-in/index.d.ts +6 -0
- package/dom-check-in/index.js +7 -15
- package/dom-watcher/index.d.ts +25 -0
- package/dom-watcher/index.js +7 -8
- package/hooks/popup-manager/use-zindex.d.ts +5 -0
- package/hooks/popup-manager/use-zindex.js +17 -36
- package/index.d.ts +2 -0
- package/index.js +2 -215
- package/load-js/index.d.ts +3 -0
- package/load-js/index.js +10 -20
- package/oss/index.d.ts +2 -0
- package/oss/index.js +11 -15
- package/package.json +8 -13
- package/pinyin-first-character/index.d.ts +2 -0
- package/pinyin-first-character/index.js +25011 -12217
- package/process-engine-info/index.d.ts +10 -0
- package/process-engine-info/index.js +8 -10
- package/pure-image-src/index.d.ts +2 -0
- package/pure-image-src/index.js +3 -29
- package/set-personal-info/index.d.ts +5 -0
- package/set-personal-info/index.js +1460 -16
- package/size-watcher/index.d.ts +6 -0
- package/size-watcher/index.js +17 -24
- package/style/index.d.ts +2 -0
- package/style/index.js +62 -103
- package/style/math.d.ts +9 -0
- package/style/math.js +16 -31
- package/style/style.d.ts +30 -0
- package/style/style.js +49 -72
- package/token-tools/index.d.ts +18 -0
- package/token-tools/index.js +72 -149
- package/vue/hooks/use-model-value.d.ts +3 -0
- package/vue/hooks/use-model-value.js +9 -10
- package/vue/index.d.ts +1 -0
- package/vue/index.js +3 -10
- package/webSocket-service/index.d.ts +40 -0
- package/webSocket-service/index.js +62 -138
- package/with-install/index.d.ts +10 -0
- package/with-install/index.js +5 -7
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { createService } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export { appManage };
|
|
1
|
+
import { createService as a } from "@das-fed/utils/api-services";
|
|
2
|
+
const p = "v1", o = a(`/api/app-manager/application/${p}`);
|
|
3
|
+
export {
|
|
4
|
+
o as appManage
|
|
5
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { createService } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export { authentication };
|
|
1
|
+
import { createService as e } from "@das-fed/utils/api-services";
|
|
2
|
+
const i = "v1", n = e(`/api/license/admin/${i}`);
|
|
3
|
+
export {
|
|
4
|
+
n as authentication
|
|
5
|
+
};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { createService } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { createService as e } from "@das-fed/utils/api-services";
|
|
2
|
+
const r = "v1", n = `/api/bems/data-manage/${r}`, s = {
|
|
3
|
+
energyType: e(`${n}/energy-type`),
|
|
4
|
+
energyObject: e(`${n}/energy-object`),
|
|
5
|
+
energyDimension: e(`${n}/energy-dimension`)
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
s as bemsModules
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
export { bemsModules };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { createService } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export { contract };
|
|
1
|
+
import { createService as t } from "@das-fed/utils/api-services";
|
|
2
|
+
const c = "v1", r = t(`/api/supply/contract/${c}`);
|
|
3
|
+
export {
|
|
4
|
+
r as contract
|
|
5
|
+
};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { createService } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const dutyModules = {
|
|
5
|
-
classes: createService(`/api/duty-manage/classes/${version}`),
|
|
1
|
+
import { createService as a } from "@das-fed/utils/api-services";
|
|
2
|
+
const e = "v1", t = {
|
|
3
|
+
classes: a(`/api/duty-manage/classes/${e}`),
|
|
6
4
|
// 班次管理
|
|
7
|
-
group:
|
|
5
|
+
group: a(`/api/duty-manage/group/${e}`),
|
|
8
6
|
// 分组管理
|
|
9
|
-
scheduling:
|
|
7
|
+
scheduling: a(`/api/duty-manage/scheduling/${e}`),
|
|
10
8
|
// 排班管理
|
|
11
|
-
shift:
|
|
9
|
+
shift: a(`/api/duty-manage/shift/${e}`)
|
|
12
10
|
// 交接班管理
|
|
13
11
|
};
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
export {
|
|
13
|
+
t as dutyModules
|
|
14
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { createService } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export { enterpriseright };
|
|
1
|
+
import { createService as e } from "@das-fed/utils/api-services";
|
|
2
|
+
const r = "v1", t = e(`/api/enterpriseright/permission/${r}`);
|
|
3
|
+
export {
|
|
4
|
+
t as enterpriseright
|
|
5
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
type optionsRalated = {
|
|
2
|
+
bucketName: string;
|
|
3
|
+
importFileName: string | any;
|
|
4
|
+
autoContentType?: boolean;
|
|
5
|
+
};
|
|
6
|
+
type ImExportFuncRelated = {
|
|
7
|
+
status: boolean;
|
|
8
|
+
taskId?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const useFile: () => {
|
|
11
|
+
showProgressDialog: any;
|
|
12
|
+
progressTitle: any;
|
|
13
|
+
percent: any;
|
|
14
|
+
progressStatus: any;
|
|
15
|
+
progressLoading: any;
|
|
16
|
+
progressResult: any;
|
|
17
|
+
errorFileName: any;
|
|
18
|
+
errorFileSize: any;
|
|
19
|
+
errorMessage: any;
|
|
20
|
+
errorImport: any;
|
|
21
|
+
errorFilePath: any;
|
|
22
|
+
fileImport: (importFunc: (n?: any) => Promise<ImExportFuncRelated>, file: any, options: optionsRalated, needProgress?: boolean, errPathName?: string, isBatch?: boolean) => Promise<void>;
|
|
23
|
+
fileExport: (exportFunc: () => Promise<ImExportFuncRelated>, fileName?: string, fileSuffix?: string) => Promise<void>;
|
|
24
|
+
fileAction: (exportFunc: () => Promise<ImExportFuncRelated>, fileName?: string, actionTitle?: string) => Promise<void>;
|
|
25
|
+
generateUniqueName: (fileName?: string) => string;
|
|
26
|
+
downloadFile: (path: any, filename: string, fileSuffix?: string) => void;
|
|
27
|
+
resetStataus: () => void;
|
|
28
|
+
checkProgress: (taskId: any, type: string, fileName: string, fileSuffix?: string) => Promise<void>;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* 下载文件
|
|
32
|
+
* @param path 文件链接
|
|
33
|
+
* @param filename 下载文件名
|
|
34
|
+
*/
|
|
35
|
+
export declare const downloadFile: (path: any, filename: string, fileSuffix?: string) => void;
|
|
36
|
+
export {};
|