@partex/one-core 1.0.0
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/README.md +591 -0
- package/lib/components/auth/index.d.ts +1 -0
- package/lib/components/auth/index.vue.d.ts +3 -0
- package/lib/components/back/index.d.ts +1 -0
- package/lib/components/back/index.vue.d.ts +17 -0
- package/lib/components/common.d.ts +100 -0
- package/lib/components/components.d.ts +17 -0
- package/lib/components/create.d.ts +16 -0
- package/lib/components/dashboard/index.d.ts +1 -0
- package/lib/components/dashboard/store.d.ts +6 -0
- package/lib/components/error404/index.d.ts +1 -0
- package/lib/components/error404/index.vue.d.ts +5 -0
- package/lib/components/error500/index.d.ts +1 -0
- package/lib/components/error500/index.vue.d.ts +5 -0
- package/lib/components/footer/index.d.ts +1 -0
- package/lib/components/footer/index.vue.d.ts +15 -0
- package/lib/components/header/api.d.ts +44 -0
- package/lib/components/header/index.d.ts +4 -0
- package/lib/components/header/index.vue.d.ts +114 -0
- package/lib/components/header/interface.d.ts +14 -0
- package/lib/components/header/message.vue.d.ts +51 -0
- package/lib/components/header/pop.vue.d.ts +53 -0
- package/lib/components/header/store.d.ts +20 -0
- package/lib/components/icon.d.ts +17 -0
- package/lib/components/importer/api.d.ts +21 -0
- package/lib/components/importer/index.d.ts +1 -0
- package/lib/components/importer/index.vue.d.ts +115 -0
- package/lib/components/index.d.ts +5 -0
- package/lib/components/local/en-US.d.ts +89 -0
- package/lib/components/local/index.d.ts +175 -0
- package/lib/components/local/zh-CN.d.ts +88 -0
- package/lib/components/login/api.d.ts +7 -0
- package/lib/components/login/index.d.ts +3 -0
- package/lib/components/login/index.vue.d.ts +76 -0
- package/lib/components/login/interface.d.ts +49 -0
- package/lib/components/login/store.d.ts +47 -0
- package/lib/components/logo/index.d.ts +1 -0
- package/lib/components/logo/index.vue.d.ts +18 -0
- package/lib/components/my/api.d.ts +3 -0
- package/lib/components/my/index.d.ts +1 -0
- package/lib/components/my/index.vue.d.ts +30 -0
- package/lib/components/my/interface.d.ts +14 -0
- package/lib/components/numberRoll/index.d.ts +1 -0
- package/lib/components/numberRoll/index.vue.d.ts +47 -0
- package/lib/components/preset.d.ts +5 -0
- package/lib/components/report/api.d.ts +1 -0
- package/lib/components/report/index.d.ts +1 -0
- package/lib/components/report/index.vue.d.ts +9 -0
- package/lib/components/searchBar/index.d.ts +2 -0
- package/lib/components/searchBar/index.vue.d.ts +74 -0
- package/lib/components/searchBar/interface.d.ts +76 -0
- package/lib/components/searchBar/item.vue.d.ts +63 -0
- package/lib/components/skeleton/index.d.ts +1 -0
- package/lib/components/skeleton/index.vue.d.ts +24 -0
- package/lib/components/table/index.d.ts +1 -0
- package/lib/components/table/index.vue.d.ts +158 -0
- package/lib/index.d.ts +1 -0
- package/lib/one-core.cjs +1 -0
- package/lib/one-core.js +4982 -0
- package/lib/one-core.umd.cjs +1 -0
- package/lib/style.css +1 -0
- package/package.json +77 -0
- package/volar.d.ts +19 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from './searchBar';
|
|
2
|
+
export * from './table';
|
|
3
|
+
export * from './header';
|
|
4
|
+
export * from './footer';
|
|
5
|
+
export * from './back';
|
|
6
|
+
export * from './importer';
|
|
7
|
+
export * from './login';
|
|
8
|
+
export * from './logo';
|
|
9
|
+
export * from './my';
|
|
10
|
+
export * from './report';
|
|
11
|
+
export * from './numberRoll';
|
|
12
|
+
export * from './skeleton';
|
|
13
|
+
export * from './error404';
|
|
14
|
+
export * from './error500';
|
|
15
|
+
export * from './auth';
|
|
16
|
+
export * from './dashboard';
|
|
17
|
+
export * from './local';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
type ComponentType = any;
|
|
3
|
+
export interface InstallOptions {
|
|
4
|
+
versionMonitor?: boolean;
|
|
5
|
+
enableRedirect?: boolean;
|
|
6
|
+
local?: 'en-US' | 'zh-CN';
|
|
7
|
+
}
|
|
8
|
+
export interface OcInstance {
|
|
9
|
+
version: string;
|
|
10
|
+
install: (app: App, options?: InstallOptions) => void;
|
|
11
|
+
}
|
|
12
|
+
interface OcCreateOptions {
|
|
13
|
+
components?: ComponentType[];
|
|
14
|
+
}
|
|
15
|
+
declare function create({ components }?: OcCreateOptions): OcInstance;
|
|
16
|
+
export default create;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { scaleStore, fnComputedScale, fnListenerScale, fnSetNormalWidthAndHeight } from './store';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Oc404 } from './index.vue';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{}, {
|
|
3
|
+
goBack: () => void;
|
|
4
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Oc500 } from './index.vue';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{}, {
|
|
3
|
+
goBack: () => void;
|
|
4
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as OcFooter } from './index.vue';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{
|
|
3
|
+
version: {
|
|
4
|
+
type: PropType<string>;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
}, unknown, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
8
|
+
version: {
|
|
9
|
+
type: PropType<string>;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
}>>, {
|
|
13
|
+
version: string;
|
|
14
|
+
}, {}>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { Query, PageRecords } from '../common';
|
|
2
|
+
interface Params {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
jobType: 'EXPORT' | 'IMPORT';
|
|
5
|
+
jobTypeName?: string;
|
|
6
|
+
jobParams?: string;
|
|
7
|
+
file?: File;
|
|
8
|
+
query?: Query;
|
|
9
|
+
}
|
|
10
|
+
interface Model {
|
|
11
|
+
downloadUrl: string;
|
|
12
|
+
jobId: string;
|
|
13
|
+
jobTypeName: string;
|
|
14
|
+
commitTime: number;
|
|
15
|
+
jobName: string;
|
|
16
|
+
jobStatus: 0 | 1 | 2;
|
|
17
|
+
}
|
|
18
|
+
interface MessageModel {
|
|
19
|
+
messageId: string;
|
|
20
|
+
messageContent: string;
|
|
21
|
+
status: 0 | 1;
|
|
22
|
+
}
|
|
23
|
+
export declare const logout: () => Promise<string>;
|
|
24
|
+
export declare const clearAllMsg: () => Promise<void>;
|
|
25
|
+
export declare const updateTenant: () => Promise<void>;
|
|
26
|
+
export declare const downloadRemove: (params: string[]) => Promise<void>;
|
|
27
|
+
export declare const downloadRetry: (jobId: string) => Promise<void>;
|
|
28
|
+
export declare const downloadList: (params: Params) => Promise<PageRecords<Model[]>>;
|
|
29
|
+
export declare const fnDownload: (params: {
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
jobTypeName?: string | undefined;
|
|
32
|
+
jobParams?: string | undefined;
|
|
33
|
+
file?: File | undefined;
|
|
34
|
+
query?: Query | undefined;
|
|
35
|
+
}) => Promise<void>;
|
|
36
|
+
export declare const messagePage: (params: {
|
|
37
|
+
status: number;
|
|
38
|
+
query: Query;
|
|
39
|
+
}) => Promise<{
|
|
40
|
+
data: PageRecords<MessageModel[]>;
|
|
41
|
+
unRead: number;
|
|
42
|
+
}>;
|
|
43
|
+
export declare const messageRead: (messageId: string) => Promise<void>;
|
|
44
|
+
export {};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, VNodeChild } from 'vue';
|
|
2
|
+
import type { IHeaderMenu } from './interface';
|
|
3
|
+
declare const _default: DefineComponent<{
|
|
4
|
+
qiankun: {
|
|
5
|
+
type: PropType<boolean>;
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
8
|
+
language: {
|
|
9
|
+
type: PropType<boolean>;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
report: {
|
|
13
|
+
type: PropType<boolean>;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
menuOptions: {
|
|
17
|
+
required: true;
|
|
18
|
+
type: PropType<IHeaderMenu>;
|
|
19
|
+
default: () => never[];
|
|
20
|
+
};
|
|
21
|
+
}, {
|
|
22
|
+
userStore: {
|
|
23
|
+
ncFlg: 0 | 1;
|
|
24
|
+
systemType: 0 | 1 | 2;
|
|
25
|
+
platform_tdm: boolean;
|
|
26
|
+
platform_qms: boolean;
|
|
27
|
+
platform_twin: boolean;
|
|
28
|
+
platform_maintain: boolean;
|
|
29
|
+
platform_simple_tdm: boolean;
|
|
30
|
+
commissioner: boolean;
|
|
31
|
+
factoryId: string;
|
|
32
|
+
tenantLoginCode: string;
|
|
33
|
+
userId: string;
|
|
34
|
+
thirdUserId: string;
|
|
35
|
+
email: string;
|
|
36
|
+
password: string;
|
|
37
|
+
name: string;
|
|
38
|
+
realName: string;
|
|
39
|
+
phone: string;
|
|
40
|
+
description: string;
|
|
41
|
+
enable: boolean;
|
|
42
|
+
oeeStatus: 0 | 1;
|
|
43
|
+
tenantName: string;
|
|
44
|
+
kind: number;
|
|
45
|
+
roleId: 1 | 2;
|
|
46
|
+
authorizationGroupArray: string[];
|
|
47
|
+
authorizationMachineArray: string[];
|
|
48
|
+
iot_menu_authorization: string[];
|
|
49
|
+
tdm_menu_authorization: string[];
|
|
50
|
+
qms_menu_authorization: string[];
|
|
51
|
+
info: {
|
|
52
|
+
type: 0 | 1 | 2 | 3 | 4;
|
|
53
|
+
id: string | string[];
|
|
54
|
+
interval: number;
|
|
55
|
+
viewType: 1 | 2;
|
|
56
|
+
theme: "light" | "dark";
|
|
57
|
+
};
|
|
58
|
+
endTime: number;
|
|
59
|
+
tenantStatus: 0 | 1 | 2;
|
|
60
|
+
renewalStatus: 0 | 1;
|
|
61
|
+
industryCategory: "0" | "1";
|
|
62
|
+
};
|
|
63
|
+
headerStore: {
|
|
64
|
+
needUpdate: boolean;
|
|
65
|
+
download: boolean;
|
|
66
|
+
theme: boolean;
|
|
67
|
+
lang: "zh-CN" | "en-US" | "fr-FR";
|
|
68
|
+
platformName: string;
|
|
69
|
+
platformType: string;
|
|
70
|
+
platformUrl: string;
|
|
71
|
+
};
|
|
72
|
+
theme: Ref<boolean>;
|
|
73
|
+
activeMenu: Ref<string>;
|
|
74
|
+
lang: Ref<"zh-CN" | "en-US">;
|
|
75
|
+
platformName: Ref<string>;
|
|
76
|
+
platformOption: Ref<any>;
|
|
77
|
+
availWidth: Ref<boolean>;
|
|
78
|
+
showMenu: Ref<boolean>;
|
|
79
|
+
menuType: Ref<string>;
|
|
80
|
+
changeLang: () => void;
|
|
81
|
+
setDropdownMenu: () => any[];
|
|
82
|
+
renderMenuLabel: (option: any) => VNodeChild;
|
|
83
|
+
renderMenuLabel2: (option: any) => VNodeChild;
|
|
84
|
+
renderMenuIcon: (option: any) => VNodeChild;
|
|
85
|
+
indexClick: () => void;
|
|
86
|
+
platformClick: (key: string) => void;
|
|
87
|
+
dropdownClick: (key: string) => Promise<void>;
|
|
88
|
+
changeTheme: (value: boolean) => void;
|
|
89
|
+
closeModel: () => void;
|
|
90
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
91
|
+
qiankun: {
|
|
92
|
+
type: PropType<boolean>;
|
|
93
|
+
default: boolean;
|
|
94
|
+
};
|
|
95
|
+
language: {
|
|
96
|
+
type: PropType<boolean>;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
99
|
+
report: {
|
|
100
|
+
type: PropType<boolean>;
|
|
101
|
+
default: boolean;
|
|
102
|
+
};
|
|
103
|
+
menuOptions: {
|
|
104
|
+
required: true;
|
|
105
|
+
type: PropType<IHeaderMenu>;
|
|
106
|
+
default: () => never[];
|
|
107
|
+
};
|
|
108
|
+
}>>, {
|
|
109
|
+
qiankun: boolean;
|
|
110
|
+
language: boolean;
|
|
111
|
+
report: boolean;
|
|
112
|
+
menuOptions: IHeaderMenu;
|
|
113
|
+
}, {}>;
|
|
114
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { VNodeChild } from 'vue';
|
|
2
|
+
interface HeaderMenu {
|
|
3
|
+
label: string;
|
|
4
|
+
key: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
icon?: () => VNodeChild;
|
|
7
|
+
children?: {
|
|
8
|
+
label: string;
|
|
9
|
+
key: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}[];
|
|
12
|
+
}
|
|
13
|
+
export type IHeaderMenu = HeaderMenu[];
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ObjectKey } from '../common';
|
|
2
|
+
import { DefineComponent, Ref, VNodeChild, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<{}, {
|
|
4
|
+
badge: Ref<number>;
|
|
5
|
+
radios: Ref<number>;
|
|
6
|
+
jobName: Ref<string>;
|
|
7
|
+
loading: Ref<boolean>;
|
|
8
|
+
columns: Ref<any>;
|
|
9
|
+
coldata: Ref<{
|
|
10
|
+
messageId: string;
|
|
11
|
+
messageContent: string;
|
|
12
|
+
status: 0 | 1;
|
|
13
|
+
}[]>;
|
|
14
|
+
query: Ref<{
|
|
15
|
+
page: number;
|
|
16
|
+
pageSize?: number | undefined;
|
|
17
|
+
pageCount?: number | undefined;
|
|
18
|
+
itemCount?: number | undefined;
|
|
19
|
+
pageSizes?: number[] | undefined;
|
|
20
|
+
isGetAll?: 0 | 1 | undefined;
|
|
21
|
+
keyword?: string | undefined;
|
|
22
|
+
columnKey?: string | undefined;
|
|
23
|
+
order?: string | undefined;
|
|
24
|
+
showQuickJumper?: boolean | undefined;
|
|
25
|
+
showSizePicker?: boolean | undefined;
|
|
26
|
+
pageSlot?: number | undefined;
|
|
27
|
+
sorter?: ObjectKey<any> | undefined;
|
|
28
|
+
prefix?: ((info: {
|
|
29
|
+
startIndex: number;
|
|
30
|
+
endIndex: number;
|
|
31
|
+
page: number;
|
|
32
|
+
pageSize: number;
|
|
33
|
+
pageCount: number;
|
|
34
|
+
itemCount: number | undefined;
|
|
35
|
+
}) => VNodeChild) | undefined;
|
|
36
|
+
suffix?: ((info: {
|
|
37
|
+
startIndex: number;
|
|
38
|
+
endIndex: number;
|
|
39
|
+
page: number;
|
|
40
|
+
pageSize: number;
|
|
41
|
+
pageCount: number;
|
|
42
|
+
itemCount: number | undefined;
|
|
43
|
+
}) => VNodeChild) | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
clearAll: () => void;
|
|
46
|
+
pageChange: (page: number) => void;
|
|
47
|
+
pageSizeChange: (pageSize: number) => void;
|
|
48
|
+
init: () => void;
|
|
49
|
+
radiosChecked: (value: number) => void;
|
|
50
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
|
|
51
|
+
export default _default;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ObjectKey } from '../common';
|
|
2
|
+
import { DefineComponent, Ref, VNodeChild, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<{}, {
|
|
4
|
+
jobName: Ref<string>;
|
|
5
|
+
loading: Ref<boolean>;
|
|
6
|
+
columns: Ref<any>;
|
|
7
|
+
coldata: Ref<{
|
|
8
|
+
downloadUrl: string;
|
|
9
|
+
jobId: string;
|
|
10
|
+
jobTypeName: string;
|
|
11
|
+
commitTime: number;
|
|
12
|
+
jobName: string;
|
|
13
|
+
jobStatus: 0 | 1 | 2;
|
|
14
|
+
}[]>;
|
|
15
|
+
query: Ref<{
|
|
16
|
+
page: number;
|
|
17
|
+
pageSize?: number | undefined;
|
|
18
|
+
pageCount?: number | undefined;
|
|
19
|
+
itemCount?: number | undefined;
|
|
20
|
+
pageSizes?: number[] | undefined;
|
|
21
|
+
isGetAll?: 0 | 1 | undefined;
|
|
22
|
+
keyword?: string | undefined;
|
|
23
|
+
columnKey?: string | undefined;
|
|
24
|
+
order?: string | undefined;
|
|
25
|
+
showQuickJumper?: boolean | undefined;
|
|
26
|
+
showSizePicker?: boolean | undefined;
|
|
27
|
+
pageSlot?: number | undefined;
|
|
28
|
+
sorter?: ObjectKey<any> | undefined;
|
|
29
|
+
prefix?: ((info: {
|
|
30
|
+
startIndex: number;
|
|
31
|
+
endIndex: number;
|
|
32
|
+
page: number;
|
|
33
|
+
pageSize: number;
|
|
34
|
+
pageCount: number;
|
|
35
|
+
itemCount: number | undefined;
|
|
36
|
+
}) => VNodeChild) | undefined;
|
|
37
|
+
suffix?: ((info: {
|
|
38
|
+
startIndex: number;
|
|
39
|
+
endIndex: number;
|
|
40
|
+
page: number;
|
|
41
|
+
pageSize: number;
|
|
42
|
+
pageCount: number;
|
|
43
|
+
itemCount: number | undefined;
|
|
44
|
+
}) => VNodeChild) | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
popDownload: Ref<boolean>;
|
|
47
|
+
init: () => void;
|
|
48
|
+
pageChange: (page: number) => void;
|
|
49
|
+
pageSizeChange: (pageSize: number) => void;
|
|
50
|
+
doSearch: () => void;
|
|
51
|
+
popDownloadUpdate: (value: boolean) => void;
|
|
52
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
|
|
53
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const headerStore: {
|
|
2
|
+
needUpdate: boolean;
|
|
3
|
+
download: boolean;
|
|
4
|
+
theme: boolean;
|
|
5
|
+
lang: 'en-US' | 'zh-CN' | 'fr-FR';
|
|
6
|
+
platformName: string;
|
|
7
|
+
platformType: string;
|
|
8
|
+
platformUrl: string;
|
|
9
|
+
};
|
|
10
|
+
export declare function fnShowDownload(val: boolean): void;
|
|
11
|
+
export declare function fnSetInitLang(val: 'en-US' | 'zh-CN' | 'fr-FR'): void;
|
|
12
|
+
export declare function fnSetLang(val: 'en-US' | 'zh-CN' | 'fr-FR'): void;
|
|
13
|
+
export declare function fnSetTheme(val: boolean): void;
|
|
14
|
+
export declare function fnSetPlatform(val: {
|
|
15
|
+
platformName: string;
|
|
16
|
+
platformType: string;
|
|
17
|
+
platformUrl: string;
|
|
18
|
+
}): void;
|
|
19
|
+
export declare function fnSetPlatformName(platformName: string): void;
|
|
20
|
+
export declare function fnSetNeedUpdate(value: boolean): void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { default as IconAlert } from '../icon/Alert.vue';
|
|
2
|
+
export { default as IconClear } from '../icon/Clear.vue';
|
|
3
|
+
export { default as IconChevronLeft } from '../icon/ChevronLeft.vue';
|
|
4
|
+
export { default as IconArrowSquareDown } from '../icon/ArrowSquareDown.vue';
|
|
5
|
+
export { default as IconWeatherMoon } from '../icon/WeatherMoon.vue';
|
|
6
|
+
export { default as IconWeatherSunny } from '../icon/WeatherSunny.vue';
|
|
7
|
+
export { default as IconGridDots } from '../icon/GridDots.vue';
|
|
8
|
+
export { default as IconSearch } from '../icon/Search.vue';
|
|
9
|
+
export { default as IconArrowClockwise } from '../icon/ArrowClockwise.vue';
|
|
10
|
+
export { default as IconCalendarArrowDown } from '../icon/CalendarArrowDown.vue';
|
|
11
|
+
export { default as IconFullScreenMaximize } from '../icon/FullScreenMaximize.vue';
|
|
12
|
+
export { default as IconDelete } from '../icon/Delete.vue';
|
|
13
|
+
export { default as IconEye } from '../icon/Eye.vue';
|
|
14
|
+
export { default as IconDrafts } from '../icon/Drafts.vue';
|
|
15
|
+
export { default as IconDismiss } from '../icon/Dismiss.vue';
|
|
16
|
+
export { default as IconMailInboxAdd } from '../icon/MailInboxAdd.vue';
|
|
17
|
+
export { default as IconCloudArrowDown } from '../icon/CloudArrowDown.vue';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Query, PageRecords } from '../common';
|
|
2
|
+
interface Params {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
jobType: 'EXPORT' | 'IMPORT';
|
|
5
|
+
jobTypeName?: string;
|
|
6
|
+
jobParams?: string;
|
|
7
|
+
file?: File;
|
|
8
|
+
query?: Query;
|
|
9
|
+
}
|
|
10
|
+
interface Model {
|
|
11
|
+
downloadUrl: string;
|
|
12
|
+
jobId: string;
|
|
13
|
+
jobTypeName: string;
|
|
14
|
+
commitTime: number;
|
|
15
|
+
jobName: string;
|
|
16
|
+
jobStatus: 0 | 1 | 2;
|
|
17
|
+
}
|
|
18
|
+
export declare const downloadSubmit: (params: Params) => Promise<void>;
|
|
19
|
+
export declare const downloadList: (params: Params) => Promise<PageRecords<Model[]>>;
|
|
20
|
+
export declare const downloadSteam: (url: string, data?: {}) => Promise<Blob>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as OcImporter } from './index.vue';
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { ObjectKey } from '../common';
|
|
2
|
+
import { DefineComponent, Ref, VNodeChild, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
import type { UploadFileInfo } from 'naive-ui';
|
|
4
|
+
declare const _default: DefineComponent<{
|
|
5
|
+
show: {
|
|
6
|
+
required: true;
|
|
7
|
+
type: PropType<boolean>;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
type: {
|
|
11
|
+
required: true;
|
|
12
|
+
type: PropType<string>;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
params: {
|
|
16
|
+
required: false;
|
|
17
|
+
type: PropType<string>;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
file: {
|
|
21
|
+
required: true;
|
|
22
|
+
type: PropType<string>;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
steam: {
|
|
26
|
+
type: PropType<boolean>;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
}, {
|
|
30
|
+
modal: Ref<boolean>;
|
|
31
|
+
columns: Ref<any>;
|
|
32
|
+
coldata: Ref<{
|
|
33
|
+
downloadUrl: string;
|
|
34
|
+
jobId: string;
|
|
35
|
+
jobTypeName: string;
|
|
36
|
+
commitTime: number;
|
|
37
|
+
jobName: string;
|
|
38
|
+
jobStatus: 0 | 1 | 2;
|
|
39
|
+
}[]>;
|
|
40
|
+
query: Ref<{
|
|
41
|
+
page: number;
|
|
42
|
+
pageSize?: number | undefined;
|
|
43
|
+
pageCount?: number | undefined;
|
|
44
|
+
itemCount?: number | undefined;
|
|
45
|
+
pageSizes?: number[] | undefined;
|
|
46
|
+
isGetAll?: 0 | 1 | undefined;
|
|
47
|
+
keyword?: string | undefined;
|
|
48
|
+
columnKey?: string | undefined;
|
|
49
|
+
order?: string | undefined;
|
|
50
|
+
showQuickJumper?: boolean | undefined;
|
|
51
|
+
showSizePicker?: boolean | undefined;
|
|
52
|
+
pageSlot?: number | undefined;
|
|
53
|
+
sorter?: ObjectKey<any> | undefined;
|
|
54
|
+
prefix?: ((info: {
|
|
55
|
+
startIndex: number;
|
|
56
|
+
endIndex: number;
|
|
57
|
+
page: number;
|
|
58
|
+
pageSize: number;
|
|
59
|
+
pageCount: number;
|
|
60
|
+
itemCount: number | undefined;
|
|
61
|
+
}) => VNodeChild) | undefined;
|
|
62
|
+
suffix?: ((info: {
|
|
63
|
+
startIndex: number;
|
|
64
|
+
endIndex: number;
|
|
65
|
+
page: number;
|
|
66
|
+
pageSize: number;
|
|
67
|
+
pageCount: number;
|
|
68
|
+
itemCount: number | undefined;
|
|
69
|
+
}) => VNodeChild) | undefined;
|
|
70
|
+
}>;
|
|
71
|
+
loading: Ref<boolean>;
|
|
72
|
+
init: () => void;
|
|
73
|
+
closeModel: () => void;
|
|
74
|
+
pageChange: (page: number) => void;
|
|
75
|
+
pageSizeChange: (pageSize: number) => void;
|
|
76
|
+
beforeUpload: (options: {
|
|
77
|
+
file: UploadFileInfo;
|
|
78
|
+
fileList: UploadFileInfo[];
|
|
79
|
+
}) => Promise<void>;
|
|
80
|
+
downloadFile: () => void;
|
|
81
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:show"[], "update:show", PublicProps, Readonly<ExtractPropTypes<{
|
|
82
|
+
show: {
|
|
83
|
+
required: true;
|
|
84
|
+
type: PropType<boolean>;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
type: {
|
|
88
|
+
required: true;
|
|
89
|
+
type: PropType<string>;
|
|
90
|
+
default: string;
|
|
91
|
+
};
|
|
92
|
+
params: {
|
|
93
|
+
required: false;
|
|
94
|
+
type: PropType<string>;
|
|
95
|
+
default: string;
|
|
96
|
+
};
|
|
97
|
+
file: {
|
|
98
|
+
required: true;
|
|
99
|
+
type: PropType<string>;
|
|
100
|
+
default: string;
|
|
101
|
+
};
|
|
102
|
+
steam: {
|
|
103
|
+
type: PropType<boolean>;
|
|
104
|
+
default: boolean;
|
|
105
|
+
};
|
|
106
|
+
}>> & {
|
|
107
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
108
|
+
}, {
|
|
109
|
+
type: string;
|
|
110
|
+
params: string;
|
|
111
|
+
file: string;
|
|
112
|
+
show: boolean;
|
|
113
|
+
steam: boolean;
|
|
114
|
+
}, {}>;
|
|
115
|
+
export default _default;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
Platform: {
|
|
3
|
+
iot: string;
|
|
4
|
+
tdm: string;
|
|
5
|
+
qms: string;
|
|
6
|
+
twin: string;
|
|
7
|
+
maintain: string;
|
|
8
|
+
};
|
|
9
|
+
Notice: {
|
|
10
|
+
success: string;
|
|
11
|
+
error: string;
|
|
12
|
+
};
|
|
13
|
+
Common: {
|
|
14
|
+
validDays: string;
|
|
15
|
+
search: string;
|
|
16
|
+
refresh: string;
|
|
17
|
+
filter: string;
|
|
18
|
+
reset: string;
|
|
19
|
+
success: string;
|
|
20
|
+
failed: string;
|
|
21
|
+
processing: string;
|
|
22
|
+
action: string;
|
|
23
|
+
back: string;
|
|
24
|
+
title: string;
|
|
25
|
+
message: {
|
|
26
|
+
title: string;
|
|
27
|
+
title2: string;
|
|
28
|
+
unRead: string;
|
|
29
|
+
all: string;
|
|
30
|
+
read: string;
|
|
31
|
+
readAll: string;
|
|
32
|
+
};
|
|
33
|
+
login: {
|
|
34
|
+
mobile: string;
|
|
35
|
+
mobilePlaceholder: string;
|
|
36
|
+
mobileMessage: string;
|
|
37
|
+
password: string;
|
|
38
|
+
passwordPlaceholder: string;
|
|
39
|
+
passwordMessage: string;
|
|
40
|
+
userName: string;
|
|
41
|
+
userNamePlaceholder: string;
|
|
42
|
+
userNameMessage: string;
|
|
43
|
+
in: string;
|
|
44
|
+
};
|
|
45
|
+
my: {
|
|
46
|
+
title: string;
|
|
47
|
+
tenantCode: string;
|
|
48
|
+
tenantName: string;
|
|
49
|
+
name: string;
|
|
50
|
+
email: string;
|
|
51
|
+
emailMessage: string;
|
|
52
|
+
realName: string;
|
|
53
|
+
phone: string;
|
|
54
|
+
phoneMessage: string;
|
|
55
|
+
submit: string;
|
|
56
|
+
password: string;
|
|
57
|
+
oldPassword: string;
|
|
58
|
+
newPassword: string;
|
|
59
|
+
checkPassword: string;
|
|
60
|
+
oldPasswordMessage: string;
|
|
61
|
+
newPasswordMessage: string;
|
|
62
|
+
checkPasswordMessage: string;
|
|
63
|
+
};
|
|
64
|
+
dropdownMenu: {
|
|
65
|
+
software: string;
|
|
66
|
+
android: string;
|
|
67
|
+
ios: string;
|
|
68
|
+
chrome: string;
|
|
69
|
+
edge: string;
|
|
70
|
+
dashboard: string;
|
|
71
|
+
dashboard_IoT: string;
|
|
72
|
+
dashboard_Prt: string;
|
|
73
|
+
report: string;
|
|
74
|
+
info: string;
|
|
75
|
+
logout: string;
|
|
76
|
+
};
|
|
77
|
+
importer: {
|
|
78
|
+
title: string;
|
|
79
|
+
file: string;
|
|
80
|
+
download: string;
|
|
81
|
+
btnDownload: string;
|
|
82
|
+
fileName: string;
|
|
83
|
+
status: string;
|
|
84
|
+
createTime: string;
|
|
85
|
+
retry: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
export default _default;
|