@egova/egova-api 1.0.112 → 1.0.113
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/LICENSE +201 -201
- package/README.md +1 -1
- package/dist/index.common.js +145 -114
- package/dist/index.css +1 -1
- package/dist/index.umd.js +145 -114
- package/dist/index.umd.min.js +4 -4
- package/dist/static/img/{iconfont.559d2630.svg → iconfont.26f82952.svg} +83 -83
- package/dist/types/src/common/index.d.ts +2 -2
- package/dist/types/src/common/object-factory.d.ts +29 -29
- package/dist/types/src/common/utils/index.d.ts +1 -1
- package/dist/types/src/common/utils/tree-data.d.ts +3 -3
- package/dist/types/src/components/code-editor/index.d.ts +8 -8
- package/dist/types/src/components/common-tree/index.d.ts +52 -52
- package/dist/types/src/components/tips-form-label/index.d.ts +6 -6
- package/dist/types/src/decorator.d.ts +17 -17
- package/dist/types/src/decorators/autowired.d.ts +1 -1
- package/dist/types/src/decorators/receivable.d.ts +9 -9
- package/dist/types/src/decorators/service-handler.d.ts +11 -11
- package/dist/types/src/index.d.ts +7 -7
- package/dist/types/src/models/common/index.d.ts +6 -6
- package/dist/types/src/models/common/page-path.d.ts +5 -5
- package/dist/types/src/models/common/paging.d.ts +5 -5
- package/dist/types/src/models/common/query-model.d.ts +8 -8
- package/dist/types/src/models/common/sorts.d.ts +5 -5
- package/dist/types/src/models/common/user-info.d.ts +13 -13
- package/dist/types/src/models/index.d.ts +1 -1
- package/dist/types/src/services/base-service.d.ts +37 -37
- package/dist/types/src/services/common-service.d.ts +8 -8
- package/dist/types/src/services/index.d.ts +3 -3
- package/dist/types/src/settings/index.d.ts +5 -5
- package/dist/types/src/views/project-combine/api-project/api-project-detail/api/index.d.ts +16 -16
- package/dist/types/src/views/project-combine/api-project/api-project-detail/catalog/index.d.ts +6 -6
- package/dist/types/src/views/project-combine/api-project/api-project-detail/ddcat/index.d.ts +6 -6
- package/dist/types/src/views/project-combine/api-project/api-project-detail/index.d.ts +10 -10
- package/dist/types/src/views/project-combine/api-project/api-project-list/index.d.ts +60 -60
- package/dist/types/src/views/project-combine/api-project/index.d.ts +70 -70
- package/dist/types/src/views/project-combine/api-project/service.d.ts +6 -6
- package/dist/types/src/views/project-combine/combine-model/base-editor/index.d.ts +9 -9
- package/dist/types/src/views/project-combine/combine-model/index.d.ts +61 -61
- package/dist/types/src/views/project-combine/combine-model/request-parameter-list/index.d.ts +26 -26
- package/dist/types/src/views/project-combine/combine-model/response-parameter-list/index.d.ts +4 -4
- package/dist/types/src/views/project-combine/combine-model/test-run-modal/index.d.ts +19 -19
- package/dist/types/src/views/project-combine/data-model/data-model-doc/index.d.ts +13 -13
- package/dist/types/src/views/project-combine/data-model/data-model-list/index.d.ts +48 -48
- package/dist/types/src/views/project-combine/data-model/index.d.ts +60 -60
- package/dist/types/src/views/project-combine/data-model/service.d.ts +5 -5
- package/dist/types/src/views/project-combine/index.d.ts +44 -44
- package/dist/types/src/views/project-combine/service.d.ts +13 -13
- package/dist/types/src/views/project-combine/tree/add-node-modal/index.d.ts +20 -20
- package/dist/types/src/views/project-combine/tree/index.d.ts +40 -40
- package/dist/types/src/views/project-combine/tree/node/index.d.ts +19 -19
- package/dist/types/src/views/project-combine/tree/service.d.ts +7 -6
- package/dist/types/src/views/project-combine/tree-selector/index.d.ts +21 -21
- package/dist/types/src/views/project-combine/tree-selector/tree-node/index.d.ts +7 -7
- package/dist/types/src/views/project-comment/index.d.ts +15 -15
- package/dist/types/src/views/project-comment/item/index.d.ts +10 -10
- package/dist/types/src/views/project-comment/service.d.ts +5 -5
- package/dist/types/src/views/project-detail/after-execution-script/index.d.ts +7 -7
- package/dist/types/src/views/project-detail/after-execution-transfer/index.d.ts +27 -27
- package/dist/types/src/views/project-detail/base-editor-setting.d.ts +7 -7
- package/dist/types/src/views/project-detail/current-variable-modal/index.d.ts +5 -5
- package/dist/types/src/views/project-detail/global-variable-modal/index.d.ts +15 -15
- package/dist/types/src/views/project-detail/group-select/index.d.ts +15 -15
- package/dist/types/src/views/project-detail/headers-setting/index.d.ts +10 -10
- package/dist/types/src/views/project-detail/index.d.ts +30 -30
- package/dist/types/src/views/project-detail/interface-settings/index.d.ts +25 -25
- package/dist/types/src/views/project-detail/interface-settings/model.d.ts +43 -43
- package/dist/types/src/views/project-detail/params-setting/index.d.ts +34 -34
- package/dist/types/src/views/project-detail/pre-execution-setting/index.d.ts +16 -16
- package/dist/types/src/views/project-detail/response/index.d.ts +36 -36
- package/dist/types/src/views/project-detail/security-setting/index.d.ts +18 -18
- package/dist/types/src/views/project-detail/service.d.ts +15 -15
- package/dist/types/src/views/project-detail/tree/index.d.ts +55 -55
- package/dist/types/src/views/project-detail/tree-node/index.d.ts +9 -9
- package/dist/types/src/views/project-list/add-project-modal/index.d.ts +6 -6
- package/dist/types/src/views/project-list/card/index.d.ts +9 -9
- package/dist/types/src/views/project-list/confirm/index.d.ts +10 -10
- package/dist/types/src/views/project-list/index.d.ts +30 -30
- package/dist/types/src/views/project-list/service.d.ts +7 -7
- package/package.json +2 -2
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import BaseEditorSetting from "../base-editor-setting";
|
|
2
|
-
import "./index.scss";
|
|
3
|
-
export declare class Response {
|
|
4
|
-
code?: number;
|
|
5
|
-
time?: number;
|
|
6
|
-
size?: number;
|
|
7
|
-
content: string;
|
|
8
|
-
originalContent: string;
|
|
9
|
-
requestHeaders: any;
|
|
10
|
-
responseHeaders: any;
|
|
11
|
-
cookies: any;
|
|
12
|
-
errorMessage: string;
|
|
13
|
-
output: string;
|
|
14
|
-
}
|
|
15
|
-
export default class ResponsePanel extends BaseEditorSetting {
|
|
16
|
-
responseSettingTypeList: Array<any>;
|
|
17
|
-
lang: "json" | "xml";
|
|
18
|
-
contentType: "content" | "originalContent";
|
|
19
|
-
response: Response;
|
|
20
|
-
headerColumns: Array<any>;
|
|
21
|
-
active: any;
|
|
22
|
-
onClickResponseSettingTpye(type: any): void;
|
|
23
|
-
get content(): string;
|
|
24
|
-
get output(): string;
|
|
25
|
-
get responseHeaders(): {
|
|
26
|
-
key: string;
|
|
27
|
-
value: any;
|
|
28
|
-
}[];
|
|
29
|
-
get requestHeaders(): {
|
|
30
|
-
key: string;
|
|
31
|
-
value: any;
|
|
32
|
-
}[];
|
|
33
|
-
get cookies(): any;
|
|
34
|
-
onChangeLang(lang: "json" | "xml"): void;
|
|
35
|
-
init(): void;
|
|
36
|
-
}
|
|
1
|
+
import BaseEditorSetting from "../base-editor-setting";
|
|
2
|
+
import "./index.scss";
|
|
3
|
+
export declare class Response {
|
|
4
|
+
code?: number;
|
|
5
|
+
time?: number;
|
|
6
|
+
size?: number;
|
|
7
|
+
content: string;
|
|
8
|
+
originalContent: string;
|
|
9
|
+
requestHeaders: any;
|
|
10
|
+
responseHeaders: any;
|
|
11
|
+
cookies: any;
|
|
12
|
+
errorMessage: string;
|
|
13
|
+
output: string;
|
|
14
|
+
}
|
|
15
|
+
export default class ResponsePanel extends BaseEditorSetting {
|
|
16
|
+
responseSettingTypeList: Array<any>;
|
|
17
|
+
lang: "json" | "xml";
|
|
18
|
+
contentType: "content" | "originalContent";
|
|
19
|
+
response: Response;
|
|
20
|
+
headerColumns: Array<any>;
|
|
21
|
+
active: any;
|
|
22
|
+
onClickResponseSettingTpye(type: any): void;
|
|
23
|
+
get content(): string;
|
|
24
|
+
get output(): string;
|
|
25
|
+
get responseHeaders(): {
|
|
26
|
+
key: string;
|
|
27
|
+
value: any;
|
|
28
|
+
}[];
|
|
29
|
+
get requestHeaders(): {
|
|
30
|
+
key: string;
|
|
31
|
+
value: any;
|
|
32
|
+
}[];
|
|
33
|
+
get cookies(): any;
|
|
34
|
+
onChangeLang(lang: "json" | "xml"): void;
|
|
35
|
+
init(): void;
|
|
36
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { Component } from "@egova/flagwind-web";
|
|
2
|
-
import { InterfaceModel } from "../interface-settings/model";
|
|
3
|
-
import ApiService from "../service";
|
|
4
|
-
import "./index.scss";
|
|
5
|
-
export default class SecuritySetting extends Component {
|
|
6
|
-
interfaceModel: InterfaceModel;
|
|
7
|
-
service: ApiService;
|
|
8
|
-
securityTypeList: Array<any>;
|
|
9
|
-
tokenLocationTypeList: Array<any>;
|
|
10
|
-
grantTypeList: Array<any>;
|
|
11
|
-
model: any;
|
|
12
|
-
mounted(): void;
|
|
13
|
-
getSecurityTypeList(): Promise<void>;
|
|
14
|
-
getTokenLocationTypeList(): Promise<void>;
|
|
15
|
-
getGrantTypeList(): Promise<void>;
|
|
16
|
-
modelChange(): void;
|
|
17
|
-
onClear(): void;
|
|
18
|
-
}
|
|
1
|
+
import { Component } from "@egova/flagwind-web";
|
|
2
|
+
import { InterfaceModel } from "../interface-settings/model";
|
|
3
|
+
import ApiService from "../service";
|
|
4
|
+
import "./index.scss";
|
|
5
|
+
export default class SecuritySetting extends Component {
|
|
6
|
+
interfaceModel: InterfaceModel;
|
|
7
|
+
service: ApiService;
|
|
8
|
+
securityTypeList: Array<any>;
|
|
9
|
+
tokenLocationTypeList: Array<any>;
|
|
10
|
+
grantTypeList: Array<any>;
|
|
11
|
+
model: any;
|
|
12
|
+
mounted(): void;
|
|
13
|
+
getSecurityTypeList(): Promise<void>;
|
|
14
|
+
getTokenLocationTypeList(): Promise<void>;
|
|
15
|
+
getGrantTypeList(): Promise<void>;
|
|
16
|
+
modelChange(): void;
|
|
17
|
+
onClear(): void;
|
|
18
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { CommonService } from "@/services";
|
|
2
|
-
import { InterfaceModel } from "./interface-settings/model";
|
|
3
|
-
export default class ApiService extends CommonService {
|
|
4
|
-
getApiTree(projectId: string): Promise<any>;
|
|
5
|
-
deleteApi(id: string): Promise<any>;
|
|
6
|
-
saveApi(api: any): Promise<any>;
|
|
7
|
-
copyApi(id: string, name: string, projectId: string, categoryId: string): Promise<any>;
|
|
8
|
-
apiInfo(id: string): Promise<any>;
|
|
9
|
-
run(apiId: string, apiInfo: InterfaceModel): Promise<any>;
|
|
10
|
-
saveApiInfo(apiInfo: InterfaceModel): Promise<any>;
|
|
11
|
-
parseResponse2Fields(originalJson: string, convertRoot?: string, collapse?: boolean): Promise<any>;
|
|
12
|
-
preScript(): Promise<any>;
|
|
13
|
-
postScript(): Promise<any>;
|
|
14
|
-
projectInfo(id: string): Promise<any>;
|
|
15
|
-
}
|
|
1
|
+
import { CommonService } from "@/services";
|
|
2
|
+
import { InterfaceModel } from "./interface-settings/model";
|
|
3
|
+
export default class ApiService extends CommonService {
|
|
4
|
+
getApiTree(projectId: string): Promise<any>;
|
|
5
|
+
deleteApi(id: string): Promise<any>;
|
|
6
|
+
saveApi(api: any): Promise<any>;
|
|
7
|
+
copyApi(id: string, name: string, projectId: string, categoryId: string): Promise<any>;
|
|
8
|
+
apiInfo(id: string): Promise<any>;
|
|
9
|
+
run(apiId: string, apiInfo: InterfaceModel): Promise<any>;
|
|
10
|
+
saveApiInfo(apiInfo: InterfaceModel): Promise<any>;
|
|
11
|
+
parseResponse2Fields(originalJson: string, convertRoot?: string, collapse?: boolean): Promise<any>;
|
|
12
|
+
preScript(): Promise<any>;
|
|
13
|
+
postScript(): Promise<any>;
|
|
14
|
+
projectInfo(id: string): Promise<any>;
|
|
15
|
+
}
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { Component } from "@egova/flagwind-web";
|
|
2
|
-
import ApiService from "../service";
|
|
3
|
-
import "./index.scss";
|
|
4
|
-
export default class ProjectTree extends Component {
|
|
5
|
-
projectId: string;
|
|
6
|
-
service: ApiService;
|
|
7
|
-
data: Array<any>;
|
|
8
|
-
groupTree: Array<any>;
|
|
9
|
-
parent: any;
|
|
10
|
-
renderData: Array<any>;
|
|
11
|
-
keyword: string;
|
|
12
|
-
type: string;
|
|
13
|
-
typeList: Array<any>;
|
|
14
|
-
showInterfaceModal: boolean;
|
|
15
|
-
showGroupModal: boolean;
|
|
16
|
-
interfaceModel: any;
|
|
17
|
-
showCopyModal: boolean;
|
|
18
|
-
copyName: string;
|
|
19
|
-
group: any;
|
|
20
|
-
renderContent(h: Function, { root, node, data }: {
|
|
21
|
-
root: Array<any>;
|
|
22
|
-
node: any;
|
|
23
|
-
data: any;
|
|
24
|
-
}): void;
|
|
25
|
-
onCheckInterface(data: any): void;
|
|
26
|
-
onEditInterface(data: any): void;
|
|
27
|
-
onDeleteInterface(data: any): Promise<void>;
|
|
28
|
-
onDeleteClick(data: any): void;
|
|
29
|
-
onCopyInterface(data: any): void;
|
|
30
|
-
onCopy(): Promise<void>;
|
|
31
|
-
onCopyCancel(): void;
|
|
32
|
-
onAddInterface(group: any): void;
|
|
33
|
-
onSaveInterface(): Promise<void>;
|
|
34
|
-
onInterfaceCancel(): void;
|
|
35
|
-
onDeleteGroup(group: any): Promise<void>;
|
|
36
|
-
onEditGroup(group: any): void;
|
|
37
|
-
onAddGroup(): void;
|
|
38
|
-
/**
|
|
39
|
-
* 输入关键字对数据进行过滤
|
|
40
|
-
*/
|
|
41
|
-
onFilter(): void;
|
|
42
|
-
/**
|
|
43
|
-
* 判断一个节点是否是与关键字匹配的叶子节点,或者是包含符合条件的叶子节点的祖先节点
|
|
44
|
-
* @param node
|
|
45
|
-
*/
|
|
46
|
-
match(node: any): boolean;
|
|
47
|
-
/**
|
|
48
|
-
* 处理渲染数据,只保留与关键字匹配的叶子节点和其祖先节点
|
|
49
|
-
* @param data
|
|
50
|
-
*/
|
|
51
|
-
filterData(data: Array<any>): any[];
|
|
52
|
-
onSelectParent(group: any): void;
|
|
53
|
-
onSaveGroup(): Promise<void>;
|
|
54
|
-
init(): Promise<void>;
|
|
55
|
-
}
|
|
1
|
+
import { Component } from "@egova/flagwind-web";
|
|
2
|
+
import ApiService from "../service";
|
|
3
|
+
import "./index.scss";
|
|
4
|
+
export default class ProjectTree extends Component {
|
|
5
|
+
projectId: string;
|
|
6
|
+
service: ApiService;
|
|
7
|
+
data: Array<any>;
|
|
8
|
+
groupTree: Array<any>;
|
|
9
|
+
parent: any;
|
|
10
|
+
renderData: Array<any>;
|
|
11
|
+
keyword: string;
|
|
12
|
+
type: string;
|
|
13
|
+
typeList: Array<any>;
|
|
14
|
+
showInterfaceModal: boolean;
|
|
15
|
+
showGroupModal: boolean;
|
|
16
|
+
interfaceModel: any;
|
|
17
|
+
showCopyModal: boolean;
|
|
18
|
+
copyName: string;
|
|
19
|
+
group: any;
|
|
20
|
+
renderContent(h: Function, { root, node, data }: {
|
|
21
|
+
root: Array<any>;
|
|
22
|
+
node: any;
|
|
23
|
+
data: any;
|
|
24
|
+
}): void;
|
|
25
|
+
onCheckInterface(data: any): void;
|
|
26
|
+
onEditInterface(data: any): void;
|
|
27
|
+
onDeleteInterface(data: any): Promise<void>;
|
|
28
|
+
onDeleteClick(data: any): void;
|
|
29
|
+
onCopyInterface(data: any): void;
|
|
30
|
+
onCopy(): Promise<void>;
|
|
31
|
+
onCopyCancel(): void;
|
|
32
|
+
onAddInterface(group: any): void;
|
|
33
|
+
onSaveInterface(): Promise<void>;
|
|
34
|
+
onInterfaceCancel(): void;
|
|
35
|
+
onDeleteGroup(group: any): Promise<void>;
|
|
36
|
+
onEditGroup(group: any): void;
|
|
37
|
+
onAddGroup(): void;
|
|
38
|
+
/**
|
|
39
|
+
* 输入关键字对数据进行过滤
|
|
40
|
+
*/
|
|
41
|
+
onFilter(): void;
|
|
42
|
+
/**
|
|
43
|
+
* 判断一个节点是否是与关键字匹配的叶子节点,或者是包含符合条件的叶子节点的祖先节点
|
|
44
|
+
* @param node
|
|
45
|
+
*/
|
|
46
|
+
match(node: any): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* 处理渲染数据,只保留与关键字匹配的叶子节点和其祖先节点
|
|
49
|
+
* @param data
|
|
50
|
+
*/
|
|
51
|
+
filterData(data: Array<any>): any[];
|
|
52
|
+
onSelectParent(group: any): void;
|
|
53
|
+
onSaveGroup(): Promise<void>;
|
|
54
|
+
init(): Promise<void>;
|
|
55
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Component } from "@egova/flagwind-web";
|
|
2
|
-
import "./index.scss";
|
|
3
|
-
export default class TreeNode extends Component {
|
|
4
|
-
data: any;
|
|
5
|
-
onClick(): boolean;
|
|
6
|
-
get isLeaf(): boolean;
|
|
7
|
-
onClickAction(name: string): void;
|
|
8
|
-
onDelete(name: string): void;
|
|
9
|
-
}
|
|
1
|
+
import { Component } from "@egova/flagwind-web";
|
|
2
|
+
import "./index.scss";
|
|
3
|
+
export default class TreeNode extends Component {
|
|
4
|
+
data: any;
|
|
5
|
+
onClick(): boolean;
|
|
6
|
+
get isLeaf(): boolean;
|
|
7
|
+
onClickAction(name: string): void;
|
|
8
|
+
onDelete(name: string): void;
|
|
9
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Component } from "@egova/flagwind-web";
|
|
2
|
-
import "./index.scss";
|
|
3
|
-
export default class ProjectAddModal extends Component {
|
|
4
|
-
value: boolean;
|
|
5
|
-
data: any;
|
|
6
|
-
}
|
|
1
|
+
import { Component } from "@egova/flagwind-web";
|
|
2
|
+
import "./index.scss";
|
|
3
|
+
export default class ProjectAddModal extends Component {
|
|
4
|
+
value: boolean;
|
|
5
|
+
data: any;
|
|
6
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Component } from "@egova/flagwind-web";
|
|
2
|
-
import "./index.scss";
|
|
3
|
-
export default class ProjectCard extends Component {
|
|
4
|
-
data: any;
|
|
5
|
-
onDelete(): void;
|
|
6
|
-
onDetail(): void;
|
|
7
|
-
onEdit(): void;
|
|
8
|
-
onClick(name: string): void;
|
|
9
|
-
}
|
|
1
|
+
import { Component } from "@egova/flagwind-web";
|
|
2
|
+
import "./index.scss";
|
|
3
|
+
export default class ProjectCard extends Component {
|
|
4
|
+
data: any;
|
|
5
|
+
onDelete(): void;
|
|
6
|
+
onDetail(): void;
|
|
7
|
+
onEdit(): void;
|
|
8
|
+
onClick(name: string): void;
|
|
9
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Component } from "@egova/flagwind-web";
|
|
2
|
-
import "./index.scss";
|
|
3
|
-
export default class Confirm extends Component {
|
|
4
|
-
title: string;
|
|
5
|
-
message: string;
|
|
6
|
-
value: boolean;
|
|
7
|
-
onOpenConfirm(): void;
|
|
8
|
-
onCancel(): void;
|
|
9
|
-
onOk(): void;
|
|
10
|
-
}
|
|
1
|
+
import { Component } from "@egova/flagwind-web";
|
|
2
|
+
import "./index.scss";
|
|
3
|
+
export default class Confirm extends Component {
|
|
4
|
+
title: string;
|
|
5
|
+
message: string;
|
|
6
|
+
value: boolean;
|
|
7
|
+
onOpenConfirm(): void;
|
|
8
|
+
onCancel(): void;
|
|
9
|
+
onOk(): void;
|
|
10
|
+
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { View } from "@egova/flagwind-web";
|
|
2
|
-
import "./index.scss";
|
|
3
|
-
import ProjectService from "./service";
|
|
4
|
-
export default class ProjectList extends View {
|
|
5
|
-
type: "list" | "card";
|
|
6
|
-
condition: any;
|
|
7
|
-
dataList: Array<any>;
|
|
8
|
-
showAddModal: boolean;
|
|
9
|
-
loading: boolean;
|
|
10
|
-
columns: Array<any>;
|
|
11
|
-
service: ProjectService;
|
|
12
|
-
current: any;
|
|
13
|
-
get uploadAction(): string;
|
|
14
|
-
onCheckType(type: "list" | "card"): void;
|
|
15
|
-
onAdd(): void;
|
|
16
|
-
onDelete(row: any): Promise<void>;
|
|
17
|
-
onDetail(data: any): void;
|
|
18
|
-
onEdit(data: any): void;
|
|
19
|
-
onExport(data: any): Promise<void>;
|
|
20
|
-
onComment(): void;
|
|
21
|
-
onQuery(): Promise<void>;
|
|
22
|
-
mounted(): void;
|
|
23
|
-
onSave(): Promise<void>;
|
|
24
|
-
get headers(): {
|
|
25
|
-
Authorization: string;
|
|
26
|
-
};
|
|
27
|
-
onSuccess(res: any, file: File): void;
|
|
28
|
-
onBeforeUpload(file: any): boolean;
|
|
29
|
-
onFormatError(file: any): void;
|
|
30
|
-
}
|
|
1
|
+
import { View } from "@egova/flagwind-web";
|
|
2
|
+
import "./index.scss";
|
|
3
|
+
import ProjectService from "./service";
|
|
4
|
+
export default class ProjectList extends View {
|
|
5
|
+
type: "list" | "card";
|
|
6
|
+
condition: any;
|
|
7
|
+
dataList: Array<any>;
|
|
8
|
+
showAddModal: boolean;
|
|
9
|
+
loading: boolean;
|
|
10
|
+
columns: Array<any>;
|
|
11
|
+
service: ProjectService;
|
|
12
|
+
current: any;
|
|
13
|
+
get uploadAction(): string;
|
|
14
|
+
onCheckType(type: "list" | "card"): void;
|
|
15
|
+
onAdd(): void;
|
|
16
|
+
onDelete(row: any): Promise<void>;
|
|
17
|
+
onDetail(data: any): void;
|
|
18
|
+
onEdit(data: any): void;
|
|
19
|
+
onExport(data: any): Promise<void>;
|
|
20
|
+
onComment(): void;
|
|
21
|
+
onQuery(): Promise<void>;
|
|
22
|
+
mounted(): void;
|
|
23
|
+
onSave(): Promise<void>;
|
|
24
|
+
get headers(): {
|
|
25
|
+
Authorization: string;
|
|
26
|
+
};
|
|
27
|
+
onSuccess(res: any, file: File): void;
|
|
28
|
+
onBeforeUpload(file: any): boolean;
|
|
29
|
+
onFormatError(file: any): void;
|
|
30
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CommonService } from "@/services";
|
|
2
|
-
export default class ProjectService extends CommonService {
|
|
3
|
-
getProjectList(condition?: any): Promise<any>;
|
|
4
|
-
saveProject(project: any): Promise<any>;
|
|
5
|
-
deleteProject(id: string): Promise<any>;
|
|
6
|
-
exportProject(data: any): Promise<any>;
|
|
7
|
-
}
|
|
1
|
+
import { CommonService } from "@/services";
|
|
2
|
+
export default class ProjectService extends CommonService {
|
|
3
|
+
getProjectList(condition?: any): Promise<any>;
|
|
4
|
+
saveProject(project: any): Promise<any>;
|
|
5
|
+
deleteProject(id: string): Promise<any>;
|
|
6
|
+
exportProject(data: any): Promise<any>;
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@egova/egova-api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.113",
|
|
4
4
|
"description": "api",
|
|
5
5
|
"author": "egova",
|
|
6
6
|
"publishConfig": {
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"last 2 versions",
|
|
81
81
|
"not ie <= 8"
|
|
82
82
|
],
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "b752da1b475c00f0636b4c88caf3f0673015bc85"
|
|
84
84
|
}
|