atr-components 0.2.417 → 2.0.1
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/atr-components.module.d.ts +9 -9
- package/atr-public-api.d.ts +53 -53
- package/core/animations/animations.d.ts +1 -1
- package/core/animations/fly-in.d.ts +1 -1
- package/core/animations/scroll-screen.d.ts +1 -1
- package/core/auth/auth.guard.d.ts +11 -11
- package/core/base/atr-common.d.ts +347 -347
- package/core/directive/error-img.directive.d.ts +10 -10
- package/core/directive/hq-spin.directive.d.ts +13 -13
- package/core/directive/role.directive.d.ts +16 -16
- package/core/interceptor/base.interceptor.d.ts +17 -17
- package/core/ngz-module/cus-zorro-antd.module.d.ts +75 -75
- package/core/pipe/china-num.pipe.d.ts +7 -7
- package/core/pipe/count.pipe.d.ts +7 -7
- package/core/pipe/day.pipe.d.ts +8 -8
- package/core/pipe/defaultVal.pipe.d.ts +7 -7
- package/core/pipe/dicts.pipe.d.ts +10 -10
- package/core/pipe/image-pipe.pipe.d.ts +8 -8
- package/core/pipe/is-empty.pipe.d.ts +7 -7
- package/core/pipe/is-not-empty.pipe.d.ts +7 -7
- package/core/pipe/oss.pipe.d.ts +7 -7
- package/core/pipe/ossStatic.pipe.d.ts +7 -7
- package/core/pipe/pipe-module.module.d.ts +21 -21
- package/core/pipe/remove-html.pipe.d.ts +10 -10
- package/core/pipe/safe-compute.pipe.d.ts +7 -7
- package/core/pipe/safe-html.pipe.d.ts +10 -10
- package/core/pipe/safe-url.pipe.d.ts +10 -10
- package/core/routereuse/atr-reuse-strategy.d.ts +19 -19
- package/core/services/dict/dict.service.d.ts +20 -20
- package/core/services/http.service.d.ts +31 -31
- package/core/services/menu.service.d.ts +29 -29
- package/core/services/upload-oss.service.d.ts +14 -14
- package/core/utils/ToolsUtil.d.ts +180 -180
- package/core/utils/localstorage.util.d.ts +15 -15
- package/core/utils/sessionstorage.util.d.ts +15 -15
- package/{esm2020 → esm2022}/atr-components.mjs +4 -4
- package/esm2022/atr-components.module.mjs +36 -0
- package/{esm2020 → esm2022}/atr-public-api.mjs +54 -54
- package/{esm2020 → esm2022}/core/animations/animations.mjs +9 -9
- package/{esm2020 → esm2022}/core/animations/fly-in.mjs +18 -18
- package/{esm2020 → esm2022}/core/animations/scroll-screen.mjs +22 -22
- package/{esm2020 → esm2022}/core/auth/auth.guard.mjs +37 -37
- package/esm2022/core/base/atr-common.mjs +47 -0
- package/{esm2020 → esm2022}/core/directive/error-img.directive.mjs +31 -31
- package/{esm2020 → esm2022}/core/directive/hq-spin.directive.mjs +48 -48
- package/esm2022/core/directive/role.directive.mjs +69 -0
- package/{esm2020 → esm2022}/core/interceptor/base.interceptor.mjs +165 -165
- package/{esm2020 → esm2022}/core/ngz-module/cus-zorro-antd.module.mjs +292 -292
- package/{esm2020 → esm2022}/core/pipe/china-num.pipe.mjs +36 -36
- package/{esm2020 → esm2022}/core/pipe/count.pipe.mjs +34 -34
- package/{esm2020 → esm2022}/core/pipe/day.pipe.mjs +24 -24
- package/{esm2020 → esm2022}/core/pipe/defaultVal.pipe.mjs +23 -23
- package/{esm2020 → esm2022}/core/pipe/dicts.pipe.mjs +28 -28
- package/{esm2020 → esm2022}/core/pipe/image-pipe.pipe.mjs +17 -17
- package/{esm2020 → esm2022}/core/pipe/is-empty.pipe.mjs +20 -20
- package/{esm2020 → esm2022}/core/pipe/is-not-empty.pipe.mjs +17 -17
- package/{esm2020 → esm2022}/core/pipe/oss.pipe.mjs +17 -17
- package/{esm2020 → esm2022}/core/pipe/ossStatic.pipe.mjs +17 -17
- package/esm2022/core/pipe/pipe-module.module.mjs +38 -0
- package/{esm2020 → esm2022}/core/pipe/remove-html.pipe.mjs +21 -21
- package/{esm2020 → esm2022}/core/pipe/safe-compute.pipe.mjs +23 -23
- package/{esm2020 → esm2022}/core/pipe/safe-html.pipe.mjs +20 -20
- package/{esm2020 → esm2022}/core/pipe/safe-url.pipe.mjs +20 -20
- package/esm2022/core/routereuse/atr-reuse-strategy.mjs +79 -0
- package/esm2022/core/services/dict/dict.service.mjs +152 -0
- package/{esm2020 → esm2022}/core/services/http.service.mjs +306 -306
- package/{esm2020 → esm2022}/core/services/menu.service.mjs +130 -130
- package/{esm2020 → esm2022}/core/services/upload-oss.service.mjs +74 -74
- package/esm2022/core/utils/ToolsUtil.mjs +622 -0
- package/{esm2020 → esm2022}/core/utils/localstorage.util.mjs +94 -94
- package/{esm2020 → esm2022}/core/utils/sessionstorage.util.mjs +72 -72
- package/{esm2020 → esm2022}/lib/hello/hello.component.mjs +15 -15
- package/esm2022/lib/hello/hello.module.mjs +20 -0
- package/esm2022/lib/shared/atr-shared.module.mjs +204 -0
- package/esm2022/lib/shared/echarts/echarts.component.mjs +77 -0
- package/esm2022/lib/shared/form/form.component.mjs +574 -0
- package/esm2022/lib/shared/img-canvas/img-canvas.component.mjs +132 -0
- package/esm2022/lib/shared/local-upload/local-upload.component.mjs +68 -0
- package/esm2022/lib/shared/quill-editor/quill-editor.component.mjs +248 -0
- package/esm2022/lib/shared/select-icons/select-icons.component.mjs +90 -0
- package/{esm2020 → esm2022}/lib/shared/select-tree/select-tree.component.mjs +55 -55
- package/{esm2020 → esm2022}/lib/shared/service/busi.service.mjs +69 -69
- package/{esm2020 → esm2022}/lib/shared/share.service.mjs +107 -107
- package/esm2022/lib/shared/table/table-form-item/table-form-item.component.mjs +96 -0
- package/esm2022/lib/shared/table/table-td/table-td.component.mjs +165 -0
- package/esm2022/lib/shared/table/table.component.mjs +749 -0
- package/{esm2020 → esm2022}/lib/shared/upload/upload.component.mjs +274 -274
- package/{esm2020 → esm2022}/lib/shared/validators/atr-validtors.mjs +8 -8
- package/esm2022/lib/shared/video/video.component.mjs +16 -0
- package/esm2022/lib/shared/view-form/view-form.component.mjs +181 -0
- package/{fesm2020 → fesm2022}/atr-components.mjs +5311 -5312
- package/fesm2022/atr-components.mjs.map +1 -0
- package/{atr-components.d.ts → index.d.ts} +5 -5
- package/lib/hello/hello.component.d.ts +8 -8
- package/lib/hello/hello.module.d.ts +8 -8
- package/lib/shared/atr-shared.module.d.ts +36 -33
- package/lib/shared/echarts/echarts.component.d.ts +34 -34
- package/lib/shared/form/form.component.d.ts +45 -45
- package/lib/shared/img-canvas/img-canvas.component.d.ts +28 -28
- package/lib/shared/local-upload/local-upload.component.d.ts +22 -22
- package/lib/shared/quill-editor/quill-editor.component.d.ts +45 -45
- package/lib/shared/select-icons/select-icons.component.d.ts +24 -24
- package/lib/shared/select-tree/select-tree.component.d.ts +23 -23
- package/lib/shared/service/busi.service.d.ts +20 -20
- package/lib/shared/share.service.d.ts +14 -14
- package/lib/shared/table/table-form-item/table-form-item.component.d.ts +25 -25
- package/lib/shared/table/table-td/table-td.component.d.ts +26 -26
- package/lib/shared/table/table.component.d.ts +94 -94
- package/lib/shared/upload/upload.component.d.ts +53 -53
- package/lib/shared/validators/atr-validtors.d.ts +2 -2
- package/lib/shared/video/video.component.d.ts +7 -7
- package/lib/shared/view-form/view-form.component.d.ts +28 -28
- package/package.json +14 -22
- package/esm2020/atr-components.module.mjs +0 -38
- package/esm2020/core/base/atr-common.mjs +0 -47
- package/esm2020/core/directive/role.directive.mjs +0 -69
- package/esm2020/core/pipe/pipe-module.module.mjs +0 -40
- package/esm2020/core/routereuse/atr-reuse-strategy.mjs +0 -79
- package/esm2020/core/services/dict/dict.service.mjs +0 -152
- package/esm2020/core/utils/ToolsUtil.mjs +0 -622
- package/esm2020/lib/hello/hello.module.mjs +0 -22
- package/esm2020/lib/shared/atr-shared.module.mjs +0 -199
- package/esm2020/lib/shared/echarts/echarts.component.mjs +0 -77
- package/esm2020/lib/shared/form/form.component.mjs +0 -574
- package/esm2020/lib/shared/img-canvas/img-canvas.component.mjs +0 -132
- package/esm2020/lib/shared/local-upload/local-upload.component.mjs +0 -68
- package/esm2020/lib/shared/quill-editor/quill-editor.component.mjs +0 -248
- package/esm2020/lib/shared/select-icons/select-icons.component.mjs +0 -90
- package/esm2020/lib/shared/table/table-form-item/table-form-item.component.mjs +0 -96
- package/esm2020/lib/shared/table/table-td/table-td.component.mjs +0 -165
- package/esm2020/lib/shared/table/table.component.mjs +0 -749
- package/esm2020/lib/shared/video/video.component.mjs +0 -15
- package/esm2020/lib/shared/view-form/view-form.component.mjs +0 -181
- package/fesm2015/atr-components.mjs +0 -5522
- package/fesm2015/atr-components.mjs.map +0 -1
- package/fesm2020/atr-components.mjs.map +0 -1
|
@@ -1,347 +1,347 @@
|
|
|
1
|
-
import { HttpHeaders } from "@angular/common/http";
|
|
2
|
-
import { TemplateRef } from "@angular/core";
|
|
3
|
-
export declare const atr_static_datas: {
|
|
4
|
-
/**
|
|
5
|
-
* oss地址前缀
|
|
6
|
-
*/
|
|
7
|
-
OSS_URL: string;
|
|
8
|
-
/**
|
|
9
|
-
* 静态地址
|
|
10
|
-
*/
|
|
11
|
-
STATIC_OSS_URL: string;
|
|
12
|
-
OSS_POLICY: string;
|
|
13
|
-
STORAGE_PRE: string;
|
|
14
|
-
menu_url: string;
|
|
15
|
-
OSS_GETHOST: string;
|
|
16
|
-
dic_url: string;
|
|
17
|
-
/**
|
|
18
|
-
* 登录路由
|
|
19
|
-
*/
|
|
20
|
-
login_router: string;
|
|
21
|
-
SERVER_URL: string;
|
|
22
|
-
needNormalHeade: boolean;
|
|
23
|
-
getNormalHeader: (_headers: HttpHeaders) => HttpHeaders;
|
|
24
|
-
getDefaultHeader: (_headers: HttpHeaders) => HttpHeaders;
|
|
25
|
-
};
|
|
26
|
-
export declare class commonDatas {
|
|
27
|
-
static letters: string[];
|
|
28
|
-
static icons: string[];
|
|
29
|
-
static await_Data: any;
|
|
30
|
-
}
|
|
31
|
-
export declare interface json extends Object {
|
|
32
|
-
[key: string]: any;
|
|
33
|
-
}
|
|
34
|
-
export declare interface ServerPaginationStandard {
|
|
35
|
-
currentPage: number;
|
|
36
|
-
showCount: number;
|
|
37
|
-
totalResult: number;
|
|
38
|
-
totalPage?: number;
|
|
39
|
-
}
|
|
40
|
-
export declare interface HttpResponseDataStandard {
|
|
41
|
-
state: number;
|
|
42
|
-
data: json | [{}] | object | string | any;
|
|
43
|
-
mess: string;
|
|
44
|
-
page?: ServerPaginationStandard;
|
|
45
|
-
}
|
|
46
|
-
export declare interface HttpRseponseTransformCell {
|
|
47
|
-
[key: string]: json;
|
|
48
|
-
}
|
|
49
|
-
export declare interface HttpOptions {
|
|
50
|
-
headers?: {};
|
|
51
|
-
isJsonEncode?: boolean;
|
|
52
|
-
isUrlEncode?: boolean;
|
|
53
|
-
isAutoShowMessage?: boolean;
|
|
54
|
-
isWithCredentials?: boolean;
|
|
55
|
-
isCommonHttpHeader?: boolean;
|
|
56
|
-
}
|
|
57
|
-
export declare enum UserAction {
|
|
58
|
-
ADD = 0,
|
|
59
|
-
EDIT = 1,
|
|
60
|
-
DEL = 2,
|
|
61
|
-
QUERY = 3,
|
|
62
|
-
SUPPERADD = 4
|
|
63
|
-
}
|
|
64
|
-
export declare interface EChartsOption {
|
|
65
|
-
title?: any;
|
|
66
|
-
legend?: any;
|
|
67
|
-
grid?: any;
|
|
68
|
-
brush?: any;
|
|
69
|
-
toolbox?: any;
|
|
70
|
-
tooltip?: any;
|
|
71
|
-
dataset?: any;
|
|
72
|
-
xAxis?: {
|
|
73
|
-
type?: 'category';
|
|
74
|
-
data?: string[];
|
|
75
|
-
boundaryGap?: boolean;
|
|
76
|
-
show?: boolean;
|
|
77
|
-
};
|
|
78
|
-
yAxis?: any;
|
|
79
|
-
series?: {
|
|
80
|
-
name?: string;
|
|
81
|
-
data?: any[];
|
|
82
|
-
itemStyle?: any;
|
|
83
|
-
stack?: any;
|
|
84
|
-
emphasis?: any;
|
|
85
|
-
label?: any;
|
|
86
|
-
radius?: any[];
|
|
87
|
-
smooth?: boolean;
|
|
88
|
-
seriesLayoutBy?: string;
|
|
89
|
-
type?: 'bar' | 'pie' | 'line';
|
|
90
|
-
backgroundStyle?: any;
|
|
91
|
-
}[];
|
|
92
|
-
}
|
|
93
|
-
export declare interface AtrFormOpt {
|
|
94
|
-
type: 'add' | 'edit' | 'view';
|
|
95
|
-
layout?: "full" | '1l2c' | '1l1c';
|
|
96
|
-
items: AtrFormDetail[];
|
|
97
|
-
}
|
|
98
|
-
export declare interface AtrFormDetail {
|
|
99
|
-
label: string;
|
|
100
|
-
type: 'cascader' | 'radio' | 'text' | 'image' | 'select' | 'date' | 'number' | 'telphone' | 'password' | 'checkbox' | 'dayRange' | 'editor' | 'textarea' | 'dateTime' | 'title' | 'dateRange' | 'selectc' | 'selectIcon' | 'treeSelect' | 'switch' | 'buttons';
|
|
101
|
-
key: string;
|
|
102
|
-
isHidden?: boolean;
|
|
103
|
-
allowSelectNode?: boolean;
|
|
104
|
-
defaultValue?: any;
|
|
105
|
-
value?: any;
|
|
106
|
-
dictCode?: string;
|
|
107
|
-
span?: number;
|
|
108
|
-
validators?: AtrFormValid[];
|
|
109
|
-
isRequired?: boolean | string;
|
|
110
|
-
placeholder?: string;
|
|
111
|
-
imageOpts?: ImageOpts;
|
|
112
|
-
editContent?: string;
|
|
113
|
-
height?: number;
|
|
114
|
-
disable?: boolean;
|
|
115
|
-
lspan?: number;
|
|
116
|
-
cspan?: number;
|
|
117
|
-
rows?: number;
|
|
118
|
-
operator?: string;
|
|
119
|
-
button?: formButton;
|
|
120
|
-
readonly?: boolean;
|
|
121
|
-
dateFormat?: string;
|
|
122
|
-
dictList?: CusDict[];
|
|
123
|
-
nzMode?: 'multiple' | 'tags' | 'default';
|
|
124
|
-
selectUrl?: {
|
|
125
|
-
url: string;
|
|
126
|
-
convert?: string;
|
|
127
|
-
type?: 'get' | 'post';
|
|
128
|
-
host?: 'oss' | 'serve';
|
|
129
|
-
isMultiple?: boolean;
|
|
130
|
-
ignoreDictList?: boolean;
|
|
131
|
-
};
|
|
132
|
-
treeList?: {
|
|
133
|
-
key: string;
|
|
134
|
-
title: string;
|
|
135
|
-
}[];
|
|
136
|
-
ends?: string;
|
|
137
|
-
proposal?: string;
|
|
138
|
-
temp?: TemplateRef<any>;
|
|
139
|
-
firstTemp?: TemplateRef<any>;
|
|
140
|
-
minNumber?: any;
|
|
141
|
-
maxNumber?: any;
|
|
142
|
-
notNull?: boolean;
|
|
143
|
-
nzShowTime?: boolean | {
|
|
144
|
-
nzFormat: string;
|
|
145
|
-
};
|
|
146
|
-
buttons?: formButton[];
|
|
147
|
-
}
|
|
148
|
-
export declare interface AtrFormValid {
|
|
149
|
-
type: 'required' | 'email' | 'telphone' | 'maxlength' | 'minlength' | 'pattern' | 'operator';
|
|
150
|
-
errorLabel: string;
|
|
151
|
-
maxlength?: number;
|
|
152
|
-
minlength?: number;
|
|
153
|
-
patternValue?: string;
|
|
154
|
-
}
|
|
155
|
-
export declare interface formButton {
|
|
156
|
-
name: string;
|
|
157
|
-
isShow: boolean;
|
|
158
|
-
code: string;
|
|
159
|
-
btnType?: string;
|
|
160
|
-
operator?: string;
|
|
161
|
-
}
|
|
162
|
-
export declare interface colorOperator {
|
|
163
|
-
color: string;
|
|
164
|
-
operator: string;
|
|
165
|
-
}
|
|
166
|
-
export declare interface AtrQueyrOpt {
|
|
167
|
-
actions?: TableAction[];
|
|
168
|
-
isIndex?: boolean;
|
|
169
|
-
color?: colorOperator;
|
|
170
|
-
checkBox?: {
|
|
171
|
-
isShowCheckbox?: boolean;
|
|
172
|
-
isRadio?: boolean;
|
|
173
|
-
isForbid?: boolean;
|
|
174
|
-
};
|
|
175
|
-
showNum?: number;
|
|
176
|
-
url: string;
|
|
177
|
-
sort?: string;
|
|
178
|
-
headers?: AtrQueryHeader[];
|
|
179
|
-
tables: Table[];
|
|
180
|
-
isAutoQuery?: boolean;
|
|
181
|
-
defaultParams?: json;
|
|
182
|
-
isHideQuery?: boolean;
|
|
183
|
-
}
|
|
184
|
-
export declare interface Table {
|
|
185
|
-
name: string;
|
|
186
|
-
key?: string;
|
|
187
|
-
defaultVal?: any;
|
|
188
|
-
sortKey?: string;
|
|
189
|
-
sortable?: boolean;
|
|
190
|
-
type: 'textcolor' | 'fixedText' | 'text' | 'link' | 'action' | 'image' | 'date' | 'dateTime' | 'sDateTime' | 'dict' | 'innerHtml';
|
|
191
|
-
dictCode?: string;
|
|
192
|
-
isShow?: boolean;
|
|
193
|
-
width?: string;
|
|
194
|
-
actions?: TableAction[];
|
|
195
|
-
isRowSpan?: boolean;
|
|
196
|
-
isRight?: boolean;
|
|
197
|
-
isLeft?: boolean;
|
|
198
|
-
color?: colorOperator;
|
|
199
|
-
colorShow?: string;
|
|
200
|
-
innerHtmlBack?: Function;
|
|
201
|
-
styleCallBack?: Function;
|
|
202
|
-
}
|
|
203
|
-
export declare interface AtrQueryHeader {
|
|
204
|
-
name: string;
|
|
205
|
-
type: 'cascader' | 'text' | 'number' | 'checkbox' | 'select' | 'datepicker' | 'selectCus' | 'dateRange' | 'sdate' | 'treeSelect' | 'dayRange';
|
|
206
|
-
nzMode?: 'multiple' | 'tags' | 'default';
|
|
207
|
-
key: string;
|
|
208
|
-
isShow?: boolean;
|
|
209
|
-
code?: string;
|
|
210
|
-
placeholder?: string;
|
|
211
|
-
span?: number;
|
|
212
|
-
dictCode?: string;
|
|
213
|
-
dictList?: CusDict[];
|
|
214
|
-
defaultVal?: any;
|
|
215
|
-
maxTagCount?: number;
|
|
216
|
-
lspan?: number;
|
|
217
|
-
cspan?: number;
|
|
218
|
-
disableClear?: boolean;
|
|
219
|
-
treeList?: {
|
|
220
|
-
key: string;
|
|
221
|
-
title: string;
|
|
222
|
-
}[];
|
|
223
|
-
/**
|
|
224
|
-
* 格式
|
|
225
|
-
* convert:'key|id,title|realName'(treeSelect)
|
|
226
|
-
* value|id,label|name(selectCus)
|
|
227
|
-
*/
|
|
228
|
-
selectUrl?: {
|
|
229
|
-
url: string;
|
|
230
|
-
convert: string;
|
|
231
|
-
isMultiple?: boolean;
|
|
232
|
-
};
|
|
233
|
-
icon?: {
|
|
234
|
-
isShow: boolean;
|
|
235
|
-
code: string;
|
|
236
|
-
icon: any;
|
|
237
|
-
};
|
|
238
|
-
dateMode?: 'week' | 'month' | 'year';
|
|
239
|
-
nzShowTime?: boolean | {
|
|
240
|
-
nzFormat: string;
|
|
241
|
-
};
|
|
242
|
-
nzShowNow?: boolean;
|
|
243
|
-
}
|
|
244
|
-
export declare interface TableAction {
|
|
245
|
-
name: string;
|
|
246
|
-
code: string;
|
|
247
|
-
url?: string;
|
|
248
|
-
gType?: 'normal' | 'upload';
|
|
249
|
-
data?: any;
|
|
250
|
-
firstData?: any;
|
|
251
|
-
datas?: any[];
|
|
252
|
-
icon?: string;
|
|
253
|
-
numberOfChecked?: number;
|
|
254
|
-
type?: 'rows' | 'row';
|
|
255
|
-
operator?: string;
|
|
256
|
-
buttonType?: 'primary' | 'dashed' | 'danger' | 'default' | 'link';
|
|
257
|
-
value?: any;
|
|
258
|
-
withoutRole?: boolean;
|
|
259
|
-
}
|
|
260
|
-
export declare interface FormAction {
|
|
261
|
-
name: string;
|
|
262
|
-
code: string;
|
|
263
|
-
}
|
|
264
|
-
export declare interface Dict {
|
|
265
|
-
id: string;
|
|
266
|
-
typeName: string;
|
|
267
|
-
}
|
|
268
|
-
export declare interface DictGroup {
|
|
269
|
-
groupCode: string;
|
|
270
|
-
dicts: Dict[];
|
|
271
|
-
}
|
|
272
|
-
export declare interface CusDict {
|
|
273
|
-
label: string;
|
|
274
|
-
value: string;
|
|
275
|
-
children?: any;
|
|
276
|
-
isSelect?: boolean;
|
|
277
|
-
}
|
|
278
|
-
export declare interface ImageOpts {
|
|
279
|
-
limit?: number;
|
|
280
|
-
nzSize?: number;
|
|
281
|
-
uploadDir: string;
|
|
282
|
-
removeAction?: string;
|
|
283
|
-
imageList?: any[];
|
|
284
|
-
key?: string;
|
|
285
|
-
labe?: string;
|
|
286
|
-
fileName?: string;
|
|
287
|
-
uploadType?: 'drag' | '' | 'button';
|
|
288
|
-
nzFileType?: string;
|
|
289
|
-
keepName?: boolean;
|
|
290
|
-
btnName?: string;
|
|
291
|
-
}
|
|
292
|
-
export declare interface equipTestData {
|
|
293
|
-
code: string;
|
|
294
|
-
itemName: string;
|
|
295
|
-
zhou1: number;
|
|
296
|
-
zhou2: number;
|
|
297
|
-
zhou3: number;
|
|
298
|
-
zhou4: number;
|
|
299
|
-
zhou5: number;
|
|
300
|
-
zhou6: number;
|
|
301
|
-
isWrong1?: boolean;
|
|
302
|
-
isWrong2?: boolean;
|
|
303
|
-
isWrong3?: boolean;
|
|
304
|
-
isWrong4?: boolean;
|
|
305
|
-
isWrong5?: boolean;
|
|
306
|
-
isWrong6?: boolean;
|
|
307
|
-
}
|
|
308
|
-
export declare interface SelectAction {
|
|
309
|
-
name: string;
|
|
310
|
-
code: "ngModelChange" | 'nzOpenChange';
|
|
311
|
-
data?: any;
|
|
312
|
-
key?: string;
|
|
313
|
-
}
|
|
314
|
-
export interface MenuIcon {
|
|
315
|
-
/** Type for icon */
|
|
316
|
-
type: 'class' | 'icon' | 'iconfont' | 'img';
|
|
317
|
-
/** Value for the icon, can be set Class Name, nz-icon of `nzType`, image */
|
|
318
|
-
value?: string;
|
|
319
|
-
/** Type of the ant design icon, default: `outline` */
|
|
320
|
-
theme?: 'outline' | 'twotone' | 'fill';
|
|
321
|
-
/** Rotate icon with animation, default: `false` */
|
|
322
|
-
spin?: boolean;
|
|
323
|
-
/** Only support the two-tone icon. Specific the primary color */
|
|
324
|
-
twoToneColor?: string;
|
|
325
|
-
/** Type of the icon from iconfont */
|
|
326
|
-
iconfont?: string;
|
|
327
|
-
}
|
|
328
|
-
export interface Menu {
|
|
329
|
-
text?: string;
|
|
330
|
-
link?: string;
|
|
331
|
-
realLink?: string;
|
|
332
|
-
isSelected?: Boolean;
|
|
333
|
-
isOpen?: Boolean;
|
|
334
|
-
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
335
|
-
/** Icon for the menu item, only valid for the first level menu */
|
|
336
|
-
icon?: string | MenuIcon | null;
|
|
337
|
-
/** Badget for the menu item when `group` is `true` */
|
|
338
|
-
operation?: string;
|
|
339
|
-
/** Whether shortcut menu item */
|
|
340
|
-
seq?: number;
|
|
341
|
-
level?: number;
|
|
342
|
-
/** Wheter shortcut menu root node */
|
|
343
|
-
linkType?: string;
|
|
344
|
-
/** Whether to allow reuse, need to cooperate with the `reuse-tab` component */
|
|
345
|
-
children?: Menu[];
|
|
346
|
-
isVisible?: '0' | '1';
|
|
347
|
-
}
|
|
1
|
+
import { HttpHeaders } from "@angular/common/http";
|
|
2
|
+
import { TemplateRef } from "@angular/core";
|
|
3
|
+
export declare const atr_static_datas: {
|
|
4
|
+
/**
|
|
5
|
+
* oss地址前缀
|
|
6
|
+
*/
|
|
7
|
+
OSS_URL: string;
|
|
8
|
+
/**
|
|
9
|
+
* 静态地址
|
|
10
|
+
*/
|
|
11
|
+
STATIC_OSS_URL: string;
|
|
12
|
+
OSS_POLICY: string;
|
|
13
|
+
STORAGE_PRE: string;
|
|
14
|
+
menu_url: string;
|
|
15
|
+
OSS_GETHOST: string;
|
|
16
|
+
dic_url: string;
|
|
17
|
+
/**
|
|
18
|
+
* 登录路由
|
|
19
|
+
*/
|
|
20
|
+
login_router: string;
|
|
21
|
+
SERVER_URL: string;
|
|
22
|
+
needNormalHeade: boolean;
|
|
23
|
+
getNormalHeader: (_headers: HttpHeaders) => HttpHeaders;
|
|
24
|
+
getDefaultHeader: (_headers: HttpHeaders) => HttpHeaders;
|
|
25
|
+
};
|
|
26
|
+
export declare class commonDatas {
|
|
27
|
+
static letters: string[];
|
|
28
|
+
static icons: string[];
|
|
29
|
+
static await_Data: any;
|
|
30
|
+
}
|
|
31
|
+
export declare interface json extends Object {
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
}
|
|
34
|
+
export declare interface ServerPaginationStandard {
|
|
35
|
+
currentPage: number;
|
|
36
|
+
showCount: number;
|
|
37
|
+
totalResult: number;
|
|
38
|
+
totalPage?: number;
|
|
39
|
+
}
|
|
40
|
+
export declare interface HttpResponseDataStandard {
|
|
41
|
+
state: number;
|
|
42
|
+
data: json | [{}] | object | string | any;
|
|
43
|
+
mess: string;
|
|
44
|
+
page?: ServerPaginationStandard;
|
|
45
|
+
}
|
|
46
|
+
export declare interface HttpRseponseTransformCell {
|
|
47
|
+
[key: string]: json;
|
|
48
|
+
}
|
|
49
|
+
export declare interface HttpOptions {
|
|
50
|
+
headers?: {};
|
|
51
|
+
isJsonEncode?: boolean;
|
|
52
|
+
isUrlEncode?: boolean;
|
|
53
|
+
isAutoShowMessage?: boolean;
|
|
54
|
+
isWithCredentials?: boolean;
|
|
55
|
+
isCommonHttpHeader?: boolean;
|
|
56
|
+
}
|
|
57
|
+
export declare enum UserAction {
|
|
58
|
+
ADD = 0,
|
|
59
|
+
EDIT = 1,
|
|
60
|
+
DEL = 2,
|
|
61
|
+
QUERY = 3,
|
|
62
|
+
SUPPERADD = 4
|
|
63
|
+
}
|
|
64
|
+
export declare interface EChartsOption {
|
|
65
|
+
title?: any;
|
|
66
|
+
legend?: any;
|
|
67
|
+
grid?: any;
|
|
68
|
+
brush?: any;
|
|
69
|
+
toolbox?: any;
|
|
70
|
+
tooltip?: any;
|
|
71
|
+
dataset?: any;
|
|
72
|
+
xAxis?: {
|
|
73
|
+
type?: 'category';
|
|
74
|
+
data?: string[];
|
|
75
|
+
boundaryGap?: boolean;
|
|
76
|
+
show?: boolean;
|
|
77
|
+
};
|
|
78
|
+
yAxis?: any;
|
|
79
|
+
series?: {
|
|
80
|
+
name?: string;
|
|
81
|
+
data?: any[];
|
|
82
|
+
itemStyle?: any;
|
|
83
|
+
stack?: any;
|
|
84
|
+
emphasis?: any;
|
|
85
|
+
label?: any;
|
|
86
|
+
radius?: any[];
|
|
87
|
+
smooth?: boolean;
|
|
88
|
+
seriesLayoutBy?: string;
|
|
89
|
+
type?: 'bar' | 'pie' | 'line';
|
|
90
|
+
backgroundStyle?: any;
|
|
91
|
+
}[];
|
|
92
|
+
}
|
|
93
|
+
export declare interface AtrFormOpt {
|
|
94
|
+
type: 'add' | 'edit' | 'view';
|
|
95
|
+
layout?: "full" | '1l2c' | '1l1c';
|
|
96
|
+
items: AtrFormDetail[];
|
|
97
|
+
}
|
|
98
|
+
export declare interface AtrFormDetail {
|
|
99
|
+
label: string;
|
|
100
|
+
type: 'cascader' | 'radio' | 'text' | 'image' | 'select' | 'date' | 'number' | 'telphone' | 'password' | 'checkbox' | 'dayRange' | 'editor' | 'textarea' | 'dateTime' | 'title' | 'dateRange' | 'selectc' | 'selectIcon' | 'treeSelect' | 'switch' | 'buttons';
|
|
101
|
+
key: string;
|
|
102
|
+
isHidden?: boolean;
|
|
103
|
+
allowSelectNode?: boolean;
|
|
104
|
+
defaultValue?: any;
|
|
105
|
+
value?: any;
|
|
106
|
+
dictCode?: string;
|
|
107
|
+
span?: number;
|
|
108
|
+
validators?: AtrFormValid[];
|
|
109
|
+
isRequired?: boolean | string;
|
|
110
|
+
placeholder?: string;
|
|
111
|
+
imageOpts?: ImageOpts;
|
|
112
|
+
editContent?: string;
|
|
113
|
+
height?: number;
|
|
114
|
+
disable?: boolean;
|
|
115
|
+
lspan?: number;
|
|
116
|
+
cspan?: number;
|
|
117
|
+
rows?: number;
|
|
118
|
+
operator?: string;
|
|
119
|
+
button?: formButton;
|
|
120
|
+
readonly?: boolean;
|
|
121
|
+
dateFormat?: string;
|
|
122
|
+
dictList?: CusDict[];
|
|
123
|
+
nzMode?: 'multiple' | 'tags' | 'default';
|
|
124
|
+
selectUrl?: {
|
|
125
|
+
url: string;
|
|
126
|
+
convert?: string;
|
|
127
|
+
type?: 'get' | 'post';
|
|
128
|
+
host?: 'oss' | 'serve';
|
|
129
|
+
isMultiple?: boolean;
|
|
130
|
+
ignoreDictList?: boolean;
|
|
131
|
+
};
|
|
132
|
+
treeList?: {
|
|
133
|
+
key: string;
|
|
134
|
+
title: string;
|
|
135
|
+
}[];
|
|
136
|
+
ends?: string;
|
|
137
|
+
proposal?: string;
|
|
138
|
+
temp?: TemplateRef<any>;
|
|
139
|
+
firstTemp?: TemplateRef<any>;
|
|
140
|
+
minNumber?: any;
|
|
141
|
+
maxNumber?: any;
|
|
142
|
+
notNull?: boolean;
|
|
143
|
+
nzShowTime?: boolean | {
|
|
144
|
+
nzFormat: string;
|
|
145
|
+
};
|
|
146
|
+
buttons?: formButton[];
|
|
147
|
+
}
|
|
148
|
+
export declare interface AtrFormValid {
|
|
149
|
+
type: 'required' | 'email' | 'telphone' | 'maxlength' | 'minlength' | 'pattern' | 'operator';
|
|
150
|
+
errorLabel: string;
|
|
151
|
+
maxlength?: number;
|
|
152
|
+
minlength?: number;
|
|
153
|
+
patternValue?: string;
|
|
154
|
+
}
|
|
155
|
+
export declare interface formButton {
|
|
156
|
+
name: string;
|
|
157
|
+
isShow: boolean;
|
|
158
|
+
code: string;
|
|
159
|
+
btnType?: string;
|
|
160
|
+
operator?: string;
|
|
161
|
+
}
|
|
162
|
+
export declare interface colorOperator {
|
|
163
|
+
color: string;
|
|
164
|
+
operator: string;
|
|
165
|
+
}
|
|
166
|
+
export declare interface AtrQueyrOpt {
|
|
167
|
+
actions?: TableAction[];
|
|
168
|
+
isIndex?: boolean;
|
|
169
|
+
color?: colorOperator;
|
|
170
|
+
checkBox?: {
|
|
171
|
+
isShowCheckbox?: boolean;
|
|
172
|
+
isRadio?: boolean;
|
|
173
|
+
isForbid?: boolean;
|
|
174
|
+
};
|
|
175
|
+
showNum?: number;
|
|
176
|
+
url: string;
|
|
177
|
+
sort?: string;
|
|
178
|
+
headers?: AtrQueryHeader[];
|
|
179
|
+
tables: Table[];
|
|
180
|
+
isAutoQuery?: boolean;
|
|
181
|
+
defaultParams?: json;
|
|
182
|
+
isHideQuery?: boolean;
|
|
183
|
+
}
|
|
184
|
+
export declare interface Table {
|
|
185
|
+
name: string;
|
|
186
|
+
key?: string;
|
|
187
|
+
defaultVal?: any;
|
|
188
|
+
sortKey?: string;
|
|
189
|
+
sortable?: boolean;
|
|
190
|
+
type: 'textcolor' | 'fixedText' | 'text' | 'link' | 'action' | 'image' | 'date' | 'dateTime' | 'sDateTime' | 'dict' | 'innerHtml';
|
|
191
|
+
dictCode?: string;
|
|
192
|
+
isShow?: boolean;
|
|
193
|
+
width?: string;
|
|
194
|
+
actions?: TableAction[];
|
|
195
|
+
isRowSpan?: boolean;
|
|
196
|
+
isRight?: boolean;
|
|
197
|
+
isLeft?: boolean;
|
|
198
|
+
color?: colorOperator;
|
|
199
|
+
colorShow?: string;
|
|
200
|
+
innerHtmlBack?: Function;
|
|
201
|
+
styleCallBack?: Function;
|
|
202
|
+
}
|
|
203
|
+
export declare interface AtrQueryHeader {
|
|
204
|
+
name: string;
|
|
205
|
+
type: 'cascader' | 'text' | 'number' | 'checkbox' | 'select' | 'datepicker' | 'selectCus' | 'dateRange' | 'sdate' | 'treeSelect' | 'dayRange';
|
|
206
|
+
nzMode?: 'multiple' | 'tags' | 'default';
|
|
207
|
+
key: string;
|
|
208
|
+
isShow?: boolean;
|
|
209
|
+
code?: string;
|
|
210
|
+
placeholder?: string;
|
|
211
|
+
span?: number;
|
|
212
|
+
dictCode?: string;
|
|
213
|
+
dictList?: CusDict[];
|
|
214
|
+
defaultVal?: any;
|
|
215
|
+
maxTagCount?: number;
|
|
216
|
+
lspan?: number;
|
|
217
|
+
cspan?: number;
|
|
218
|
+
disableClear?: boolean;
|
|
219
|
+
treeList?: {
|
|
220
|
+
key: string;
|
|
221
|
+
title: string;
|
|
222
|
+
}[];
|
|
223
|
+
/**
|
|
224
|
+
* 格式
|
|
225
|
+
* convert:'key|id,title|realName'(treeSelect)
|
|
226
|
+
* value|id,label|name(selectCus)
|
|
227
|
+
*/
|
|
228
|
+
selectUrl?: {
|
|
229
|
+
url: string;
|
|
230
|
+
convert: string;
|
|
231
|
+
isMultiple?: boolean;
|
|
232
|
+
};
|
|
233
|
+
icon?: {
|
|
234
|
+
isShow: boolean;
|
|
235
|
+
code: string;
|
|
236
|
+
icon: any;
|
|
237
|
+
};
|
|
238
|
+
dateMode?: 'week' | 'month' | 'year';
|
|
239
|
+
nzShowTime?: boolean | {
|
|
240
|
+
nzFormat: string;
|
|
241
|
+
};
|
|
242
|
+
nzShowNow?: boolean;
|
|
243
|
+
}
|
|
244
|
+
export declare interface TableAction {
|
|
245
|
+
name: string;
|
|
246
|
+
code: string;
|
|
247
|
+
url?: string;
|
|
248
|
+
gType?: 'normal' | 'upload';
|
|
249
|
+
data?: any;
|
|
250
|
+
firstData?: any;
|
|
251
|
+
datas?: any[];
|
|
252
|
+
icon?: string;
|
|
253
|
+
numberOfChecked?: number;
|
|
254
|
+
type?: 'rows' | 'row';
|
|
255
|
+
operator?: string;
|
|
256
|
+
buttonType?: 'primary' | 'dashed' | 'danger' | 'default' | 'link';
|
|
257
|
+
value?: any;
|
|
258
|
+
withoutRole?: boolean;
|
|
259
|
+
}
|
|
260
|
+
export declare interface FormAction {
|
|
261
|
+
name: string;
|
|
262
|
+
code: string;
|
|
263
|
+
}
|
|
264
|
+
export declare interface Dict {
|
|
265
|
+
id: string;
|
|
266
|
+
typeName: string;
|
|
267
|
+
}
|
|
268
|
+
export declare interface DictGroup {
|
|
269
|
+
groupCode: string;
|
|
270
|
+
dicts: Dict[];
|
|
271
|
+
}
|
|
272
|
+
export declare interface CusDict {
|
|
273
|
+
label: string;
|
|
274
|
+
value: string;
|
|
275
|
+
children?: any;
|
|
276
|
+
isSelect?: boolean;
|
|
277
|
+
}
|
|
278
|
+
export declare interface ImageOpts {
|
|
279
|
+
limit?: number;
|
|
280
|
+
nzSize?: number;
|
|
281
|
+
uploadDir: string;
|
|
282
|
+
removeAction?: string;
|
|
283
|
+
imageList?: any[];
|
|
284
|
+
key?: string;
|
|
285
|
+
labe?: string;
|
|
286
|
+
fileName?: string;
|
|
287
|
+
uploadType?: 'drag' | '' | 'button';
|
|
288
|
+
nzFileType?: string;
|
|
289
|
+
keepName?: boolean;
|
|
290
|
+
btnName?: string;
|
|
291
|
+
}
|
|
292
|
+
export declare interface equipTestData {
|
|
293
|
+
code: string;
|
|
294
|
+
itemName: string;
|
|
295
|
+
zhou1: number;
|
|
296
|
+
zhou2: number;
|
|
297
|
+
zhou3: number;
|
|
298
|
+
zhou4: number;
|
|
299
|
+
zhou5: number;
|
|
300
|
+
zhou6: number;
|
|
301
|
+
isWrong1?: boolean;
|
|
302
|
+
isWrong2?: boolean;
|
|
303
|
+
isWrong3?: boolean;
|
|
304
|
+
isWrong4?: boolean;
|
|
305
|
+
isWrong5?: boolean;
|
|
306
|
+
isWrong6?: boolean;
|
|
307
|
+
}
|
|
308
|
+
export declare interface SelectAction {
|
|
309
|
+
name: string;
|
|
310
|
+
code: "ngModelChange" | 'nzOpenChange';
|
|
311
|
+
data?: any;
|
|
312
|
+
key?: string;
|
|
313
|
+
}
|
|
314
|
+
export interface MenuIcon {
|
|
315
|
+
/** Type for icon */
|
|
316
|
+
type: 'class' | 'icon' | 'iconfont' | 'img';
|
|
317
|
+
/** Value for the icon, can be set Class Name, nz-icon of `nzType`, image */
|
|
318
|
+
value?: string;
|
|
319
|
+
/** Type of the ant design icon, default: `outline` */
|
|
320
|
+
theme?: 'outline' | 'twotone' | 'fill';
|
|
321
|
+
/** Rotate icon with animation, default: `false` */
|
|
322
|
+
spin?: boolean;
|
|
323
|
+
/** Only support the two-tone icon. Specific the primary color */
|
|
324
|
+
twoToneColor?: string;
|
|
325
|
+
/** Type of the icon from iconfont */
|
|
326
|
+
iconfont?: string;
|
|
327
|
+
}
|
|
328
|
+
export interface Menu {
|
|
329
|
+
text?: string;
|
|
330
|
+
link?: string;
|
|
331
|
+
realLink?: string;
|
|
332
|
+
isSelected?: Boolean;
|
|
333
|
+
isOpen?: Boolean;
|
|
334
|
+
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
335
|
+
/** Icon for the menu item, only valid for the first level menu */
|
|
336
|
+
icon?: string | MenuIcon | null;
|
|
337
|
+
/** Badget for the menu item when `group` is `true` */
|
|
338
|
+
operation?: string;
|
|
339
|
+
/** Whether shortcut menu item */
|
|
340
|
+
seq?: number;
|
|
341
|
+
level?: number;
|
|
342
|
+
/** Wheter shortcut menu root node */
|
|
343
|
+
linkType?: string;
|
|
344
|
+
/** Whether to allow reuse, need to cooperate with the `reuse-tab` component */
|
|
345
|
+
children?: Menu[];
|
|
346
|
+
isVisible?: '0' | '1';
|
|
347
|
+
}
|