@egova/egova-api 1.0.270 → 1.1.2
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 +15 -1
- package/dist/index.common.js +21136 -57643
- package/dist/index.css +1 -1
- package/dist/index.umd.js +21141 -57648
- package/dist/index.umd.min.js +9 -16
- package/dist/static/img/empty_result.98fe48d0.svg +232 -0
- package/package.json +96 -84
- package/dist/types/src/common/index.d.ts +0 -2
- package/dist/types/src/common/object-factory.d.ts +0 -29
- package/dist/types/src/common/utils/index.d.ts +0 -1
- package/dist/types/src/common/utils/tree-data.d.ts +0 -5
- package/dist/types/src/components/code-editor/index.d.ts +0 -8
- package/dist/types/src/components/common-tree/index.d.ts +0 -56
- package/dist/types/src/components/groovy-editor/index.d.ts +0 -10
- package/dist/types/src/components/tips-form-label/index.d.ts +0 -6
- package/dist/types/src/decorator.d.ts +0 -17
- package/dist/types/src/decorators/autowired.d.ts +0 -1
- package/dist/types/src/decorators/receivable.d.ts +0 -9
- package/dist/types/src/decorators/service-handler.d.ts +0 -11
- package/dist/types/src/index.d.ts +0 -7
- package/dist/types/src/models/common/index.d.ts +0 -6
- package/dist/types/src/models/common/page-path.d.ts +0 -5
- package/dist/types/src/models/common/paging.d.ts +0 -5
- package/dist/types/src/models/common/query-model.d.ts +0 -8
- package/dist/types/src/models/common/sorts.d.ts +0 -5
- package/dist/types/src/models/common/user-info.d.ts +0 -13
- package/dist/types/src/models/index.d.ts +0 -1
- package/dist/types/src/services/base-service.d.ts +0 -37
- package/dist/types/src/services/common-service.d.ts +0 -8
- package/dist/types/src/services/index.d.ts +0 -3
- package/dist/types/src/settings/index.d.ts +0 -5
- package/dist/types/src/views/project-combine/api-project/api-project-detail/api/index.d.ts +0 -16
- package/dist/types/src/views/project-combine/api-project/api-project-detail/catalog/index.d.ts +0 -6
- package/dist/types/src/views/project-combine/api-project/api-project-detail/ddcat/index.d.ts +0 -6
- package/dist/types/src/views/project-combine/api-project/api-project-detail/index.d.ts +0 -10
- package/dist/types/src/views/project-combine/api-project/api-project-list/index.d.ts +0 -61
- package/dist/types/src/views/project-combine/api-project/index.d.ts +0 -73
- package/dist/types/src/views/project-combine/api-project/service.d.ts +0 -6
- package/dist/types/src/views/project-combine/combine-model/base-editor/index.d.ts +0 -9
- package/dist/types/src/views/project-combine/combine-model/index.d.ts +0 -64
- package/dist/types/src/views/project-combine/combine-model/request-parameter-list/index.d.ts +0 -26
- package/dist/types/src/views/project-combine/combine-model/response-parameter-list/index.d.ts +0 -4
- package/dist/types/src/views/project-combine/combine-model/test-run-modal/index.d.ts +0 -19
- package/dist/types/src/views/project-combine/data-model/data-model-doc/index.d.ts +0 -18
- package/dist/types/src/views/project-combine/data-model/data-model-list/index.d.ts +0 -53
- package/dist/types/src/views/project-combine/data-model/index.d.ts +0 -63
- package/dist/types/src/views/project-combine/data-model/service.d.ts +0 -6
- package/dist/types/src/views/project-combine/index.d.ts +0 -47
- package/dist/types/src/views/project-combine/service.d.ts +0 -14
- package/dist/types/src/views/project-combine/tree/add-node-modal/index.d.ts +0 -20
- package/dist/types/src/views/project-combine/tree/index.d.ts +0 -62
- package/dist/types/src/views/project-combine/tree/node/index.d.ts +0 -19
- package/dist/types/src/views/project-combine/tree/service.d.ts +0 -9
- package/dist/types/src/views/project-combine/tree-selector/index.d.ts +0 -21
- package/dist/types/src/views/project-combine/tree-selector/tree-node/index.d.ts +0 -7
- package/dist/types/src/views/project-comment/index.d.ts +0 -15
- package/dist/types/src/views/project-comment/item/index.d.ts +0 -10
- package/dist/types/src/views/project-comment/service.d.ts +0 -5
- package/dist/types/src/views/project-detail/after-execution-script/index.d.ts +0 -7
- package/dist/types/src/views/project-detail/after-execution-transfer/index.d.ts +0 -27
- package/dist/types/src/views/project-detail/base-editor-setting.d.ts +0 -7
- package/dist/types/src/views/project-detail/batch-api-modal/index.d.ts +0 -72
- package/dist/types/src/views/project-detail/current-variable-modal/index.d.ts +0 -5
- package/dist/types/src/views/project-detail/environment-variable-modal/index.d.ts +0 -44
- package/dist/types/src/views/project-detail/global-variable-modal/index.d.ts +0 -15
- package/dist/types/src/views/project-detail/group-select/index.d.ts +0 -15
- package/dist/types/src/views/project-detail/headers-setting/index.d.ts +0 -10
- package/dist/types/src/views/project-detail/index.d.ts +0 -39
- package/dist/types/src/views/project-detail/interface-settings/index.d.ts +0 -52
- package/dist/types/src/views/project-detail/interface-settings/model.d.ts +0 -44
- package/dist/types/src/views/project-detail/params-setting/index.d.ts +0 -46
- package/dist/types/src/views/project-detail/pre-execution-setting/index.d.ts +0 -37
- package/dist/types/src/views/project-detail/response/index.d.ts +0 -43
- package/dist/types/src/views/project-detail/security-modal/index.d.ts +0 -37
- package/dist/types/src/views/project-detail/security-setting/index.d.ts +0 -18
- package/dist/types/src/views/project-detail/security-setting-v2/index.d.ts +0 -23
- package/dist/types/src/views/project-detail/security-setting-v2/tips-form-label/index.d.ts +0 -7
- package/dist/types/src/views/project-detail/service.d.ts +0 -30
- package/dist/types/src/views/project-detail/tree/index.d.ts +0 -66
- package/dist/types/src/views/project-detail/tree-node/index.d.ts +0 -9
- package/dist/types/src/views/project-list/add-project-modal/index.d.ts +0 -6
- package/dist/types/src/views/project-list/card/index.d.ts +0 -9
- package/dist/types/src/views/project-list/confirm/index.d.ts +0 -10
- package/dist/types/src/views/project-list/index.d.ts +0 -30
- package/dist/types/src/views/project-list/service.d.ts +0 -7
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import CommonTree from "@/components/common-tree";
|
|
2
|
-
import Service from "./service";
|
|
3
|
-
import ChildService from "../service";
|
|
4
|
-
import "@/components/common-tree/index.scss";
|
|
5
|
-
import "./index.scss";
|
|
6
|
-
export default class Tree extends CommonTree {
|
|
7
|
-
service: Service;
|
|
8
|
-
childService: ChildService;
|
|
9
|
-
showAddTreeNodeModal: boolean;
|
|
10
|
-
type: string;
|
|
11
|
-
tempNode: any;
|
|
12
|
-
tempData: Array<any>;
|
|
13
|
-
showImportModal: boolean;
|
|
14
|
-
importResult: any;
|
|
15
|
-
columns: ({
|
|
16
|
-
type: string;
|
|
17
|
-
title: string;
|
|
18
|
-
align: string;
|
|
19
|
-
width: number;
|
|
20
|
-
key?: undefined;
|
|
21
|
-
tooltip?: undefined;
|
|
22
|
-
} | {
|
|
23
|
-
title: string;
|
|
24
|
-
align: string;
|
|
25
|
-
key: string;
|
|
26
|
-
tooltip: boolean;
|
|
27
|
-
type?: undefined;
|
|
28
|
-
width?: undefined;
|
|
29
|
-
})[];
|
|
30
|
-
taskCategoryID: string;
|
|
31
|
-
get uploadAction(): string;
|
|
32
|
-
get headers(): {
|
|
33
|
-
Authorization: string;
|
|
34
|
-
};
|
|
35
|
-
onImportConfirm(): Promise<void>;
|
|
36
|
-
onImportCancel(): Promise<void>;
|
|
37
|
-
onSuccess(res: any, file: File): void;
|
|
38
|
-
onBeforeUpload(file: any): boolean;
|
|
39
|
-
onFormatError(file: any): void;
|
|
40
|
-
onModelExport(id: string): Promise<void>;
|
|
41
|
-
/**
|
|
42
|
-
* 渲染子节点
|
|
43
|
-
* @param h
|
|
44
|
-
* @param param
|
|
45
|
-
*/
|
|
46
|
-
renderContent(h: any, { root, node, data }: {
|
|
47
|
-
root: any;
|
|
48
|
-
node: any;
|
|
49
|
-
data: any;
|
|
50
|
-
}): any;
|
|
51
|
-
handleNodeOprate(name: string, data: any): void;
|
|
52
|
-
onSelect(data: any, isQuery?: boolean): void;
|
|
53
|
-
initSelectItemChange(): void;
|
|
54
|
-
watchTaskID(nv: string): void;
|
|
55
|
-
onAddTreeNode(): void;
|
|
56
|
-
onAddChildNode(data: any): void;
|
|
57
|
-
onEditNode(data: any): void;
|
|
58
|
-
onDeleteNode(data: any): Promise<void>;
|
|
59
|
-
getChildren(data: any): Promise<boolean>;
|
|
60
|
-
queryTreeData(): Promise<void>;
|
|
61
|
-
mounted(): void;
|
|
62
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Component } from "@egova/flagwind-web";
|
|
2
|
-
import "./index.scss";
|
|
3
|
-
export default class TreeNode extends Component {
|
|
4
|
-
data: any;
|
|
5
|
-
importUrl: string;
|
|
6
|
-
actions: Array<any>;
|
|
7
|
-
onClick(name: string): void;
|
|
8
|
-
onClickNode(e: Event): void;
|
|
9
|
-
get uploadAction(): string;
|
|
10
|
-
get uploadParams(): {
|
|
11
|
-
categoryId: any;
|
|
12
|
-
};
|
|
13
|
-
get headers(): {
|
|
14
|
-
Authorization: string;
|
|
15
|
-
};
|
|
16
|
-
onSuccess(res: any, file: File): void;
|
|
17
|
-
onBeforeUpload(file: any): boolean;
|
|
18
|
-
onFormatError(file: any): void;
|
|
19
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import CommonService from "@/services/common-service";
|
|
2
|
-
export default class Service extends CommonService {
|
|
3
|
-
saveNode(data: any): Promise<any>;
|
|
4
|
-
deleteTreeNodeById(id: string): Promise<any>;
|
|
5
|
-
exportModel(data: any): Promise<any>;
|
|
6
|
-
isCanExportModel(data: any): Promise<any>;
|
|
7
|
-
confirmImport(id: any): Promise<any>;
|
|
8
|
-
cancelImport(id: any): Promise<any>;
|
|
9
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Component } from "@egova/flagwind-web";
|
|
2
|
-
import "./index.scss";
|
|
3
|
-
export default class TreeSelectorComponent extends Component {
|
|
4
|
-
value: string;
|
|
5
|
-
treeData: Array<any>;
|
|
6
|
-
leafName: string;
|
|
7
|
-
filterEmpty: boolean;
|
|
8
|
-
readonly: boolean;
|
|
9
|
-
tree: Array<any>;
|
|
10
|
-
inputValue: string;
|
|
11
|
-
visible: boolean;
|
|
12
|
-
current: any;
|
|
13
|
-
canChooseFolder: boolean;
|
|
14
|
-
onValueChange(nv: string): void;
|
|
15
|
-
renderContent(h: any, { root, node, data }: any): any;
|
|
16
|
-
onTreeDataChange(): void;
|
|
17
|
-
getNodeById(id: string, nodes: Array<any>): any;
|
|
18
|
-
onInputChange(): void;
|
|
19
|
-
onSelectChange(selection: Array<any>, node: any): void;
|
|
20
|
-
onClear(): void;
|
|
21
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { View } from "@egova/flagwind-web";
|
|
2
|
-
import "./index.scss";
|
|
3
|
-
import ProjectTrendsService from "./service";
|
|
4
|
-
import { Paging } from "@/models";
|
|
5
|
-
export default class ProjectComment extends View {
|
|
6
|
-
list: Array<any>;
|
|
7
|
-
itemComponent: any;
|
|
8
|
-
service: ProjectTrendsService;
|
|
9
|
-
condition: any;
|
|
10
|
-
paging: Paging;
|
|
11
|
-
mounted(): void;
|
|
12
|
-
onMore(): Promise<void>;
|
|
13
|
-
query(): Promise<any>;
|
|
14
|
-
onQuery(): void;
|
|
15
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import ApiService from "@/views/project-detail/service";
|
|
2
|
-
import { Component } from "@egova/flagwind-web";
|
|
3
|
-
import "./index.scss";
|
|
4
|
-
export default class Item extends Component {
|
|
5
|
-
source: any;
|
|
6
|
-
index: number;
|
|
7
|
-
service: ApiService;
|
|
8
|
-
onMore(): void;
|
|
9
|
-
onToApi(): Promise<void>;
|
|
10
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PostScript } from "../interface-settings/model";
|
|
2
|
-
import PreExecutionSetting from "../pre-execution-setting";
|
|
3
|
-
export default class AfterExecutionScript extends PreExecutionSetting {
|
|
4
|
-
key: "postScripts" | "preScripts";
|
|
5
|
-
model: PostScript;
|
|
6
|
-
getScript(): Promise<void>;
|
|
7
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Component } from "@egova/flagwind-web";
|
|
2
|
-
import { FieldMapping, InterfaceModel } from "../interface-settings/model";
|
|
3
|
-
import { Response } from "../response";
|
|
4
|
-
import ApiService from "../service";
|
|
5
|
-
import "./index.scss";
|
|
6
|
-
export default class AfterExecutionTransfer extends Component {
|
|
7
|
-
service: ApiService;
|
|
8
|
-
interfaceModel: InterfaceModel;
|
|
9
|
-
response: Response;
|
|
10
|
-
loading: boolean;
|
|
11
|
-
selections: Array<any>;
|
|
12
|
-
debounceUpdateFieldMappings: Function;
|
|
13
|
-
columns: Array<any>;
|
|
14
|
-
valueTypeList: Array<any>;
|
|
15
|
-
dataList: Array<FieldMapping>;
|
|
16
|
-
lastDataList: Array<FieldMapping>;
|
|
17
|
-
mounted(): Promise<void>;
|
|
18
|
-
getValueTypeList(): Promise<void>;
|
|
19
|
-
initDataList(): void;
|
|
20
|
-
onParse(): Promise<void>;
|
|
21
|
-
onChangeChecked(selection: any): void;
|
|
22
|
-
batchDelete(): void;
|
|
23
|
-
onAdd(): void;
|
|
24
|
-
onDelete(index: number): void;
|
|
25
|
-
onReset(): void;
|
|
26
|
-
updateFieldMappings(): void;
|
|
27
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { Component } from "@egova/flagwind-web";
|
|
2
|
-
import "./index.scss";
|
|
3
|
-
import ApiService from "@/views/project-detail/service";
|
|
4
|
-
export default class BatchApiModal extends Component {
|
|
5
|
-
service: ApiService;
|
|
6
|
-
value: boolean;
|
|
7
|
-
data: any;
|
|
8
|
-
projectId: string;
|
|
9
|
-
keyword: string;
|
|
10
|
-
apiList: Array<any>;
|
|
11
|
-
isEmpty: boolean;
|
|
12
|
-
allSelect: boolean;
|
|
13
|
-
variableList: Array<any>;
|
|
14
|
-
securityList: Array<any>;
|
|
15
|
-
set: any;
|
|
16
|
-
type: string;
|
|
17
|
-
formData: any;
|
|
18
|
-
get rules(): {
|
|
19
|
-
envId: {
|
|
20
|
-
required: boolean;
|
|
21
|
-
message: string;
|
|
22
|
-
trigger: string;
|
|
23
|
-
}[];
|
|
24
|
-
authId?: undefined;
|
|
25
|
-
} | {
|
|
26
|
-
authId: {
|
|
27
|
-
required: boolean;
|
|
28
|
-
message: string;
|
|
29
|
-
trigger: string;
|
|
30
|
-
}[];
|
|
31
|
-
envId?: undefined;
|
|
32
|
-
} | {
|
|
33
|
-
envId: {
|
|
34
|
-
required: boolean;
|
|
35
|
-
message: string;
|
|
36
|
-
trigger: string;
|
|
37
|
-
}[];
|
|
38
|
-
authId: {
|
|
39
|
-
required: boolean;
|
|
40
|
-
message: string;
|
|
41
|
-
trigger: string;
|
|
42
|
-
}[];
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* 过滤查询
|
|
46
|
-
* @param data
|
|
47
|
-
*/
|
|
48
|
-
onFilter(data: any): void;
|
|
49
|
-
onShowChange(show: boolean): Promise<void>;
|
|
50
|
-
onEmpty(value: any): void;
|
|
51
|
-
/**
|
|
52
|
-
* 分别获取环境变量和授权设置的数据
|
|
53
|
-
*/
|
|
54
|
-
getVariableList(): Promise<void>;
|
|
55
|
-
/**
|
|
56
|
-
* 点击每个api的复选框触发事件
|
|
57
|
-
* @param data 当前复选框状态
|
|
58
|
-
* @param item 当前操作的数据
|
|
59
|
-
*/
|
|
60
|
-
onSelect(data: any, item: any): void;
|
|
61
|
-
/**
|
|
62
|
-
* 点击全选框事件
|
|
63
|
-
* @param data 当前全选框的值
|
|
64
|
-
*/
|
|
65
|
-
onAllSelect(data: boolean): void;
|
|
66
|
-
onCancel(): void;
|
|
67
|
-
/**
|
|
68
|
-
* 保存事件
|
|
69
|
-
* @returns
|
|
70
|
-
*/
|
|
71
|
-
onSave(): Promise<void>;
|
|
72
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { Component } from "@egova/flagwind-web";
|
|
2
|
-
import "./index.scss";
|
|
3
|
-
import ApiService from "@/views/project-detail/service";
|
|
4
|
-
export default class EnvironmentVariableModal extends Component {
|
|
5
|
-
service: ApiService;
|
|
6
|
-
value: boolean;
|
|
7
|
-
projectId: string;
|
|
8
|
-
isAdd: boolean;
|
|
9
|
-
isAddOnce: boolean;
|
|
10
|
-
exitAddItem: boolean;
|
|
11
|
-
varList: Array<any>;
|
|
12
|
-
keyword: string;
|
|
13
|
-
currentItem: any;
|
|
14
|
-
isEmpty: boolean;
|
|
15
|
-
formData: any;
|
|
16
|
-
rules: any;
|
|
17
|
-
/**
|
|
18
|
-
* 防抖查询
|
|
19
|
-
*/
|
|
20
|
-
onFilter: any;
|
|
21
|
-
onShowChange(show: boolean): Promise<void>;
|
|
22
|
-
onEmpty(value: any): void;
|
|
23
|
-
/**
|
|
24
|
-
* 获取当前已有环境变量数据
|
|
25
|
-
*/
|
|
26
|
-
getVariableList(): Promise<void>;
|
|
27
|
-
/**
|
|
28
|
-
* 点击环境变量触发事件
|
|
29
|
-
* @param item 当前点击的环境变量
|
|
30
|
-
*/
|
|
31
|
-
onSelectItem(item: any): void;
|
|
32
|
-
/**
|
|
33
|
-
* 删除选中的环境变量
|
|
34
|
-
* @param item 当前选中项
|
|
35
|
-
*/
|
|
36
|
-
onDelete(item: any): Promise<void>;
|
|
37
|
-
/**
|
|
38
|
-
* 新增环境变量事件
|
|
39
|
-
* @returns
|
|
40
|
-
*/
|
|
41
|
-
onAddItem(): void;
|
|
42
|
-
onCancel(): void;
|
|
43
|
-
onSave(): Promise<void>;
|
|
44
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Component } from "@egova/flagwind-web";
|
|
2
|
-
import "./index.scss";
|
|
3
|
-
export default class GlobalVariableModal extends Component {
|
|
4
|
-
value: boolean;
|
|
5
|
-
typeList: Array<any>;
|
|
6
|
-
active: any;
|
|
7
|
-
columns: Array<any>;
|
|
8
|
-
dataList: Array<any>;
|
|
9
|
-
onCheckTpye(type: any): void;
|
|
10
|
-
onDelete(paramList: Array<any>, index: number): void;
|
|
11
|
-
onUp(paramList: Array<any>, index: number): void;
|
|
12
|
-
onDown(paramList: Array<any>, index: number): void;
|
|
13
|
-
onTop(paramList: Array<any>, index: number): void;
|
|
14
|
-
onBottom(paramList: Array<any>, index: number): void;
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Component } from "@egova/flagwind-web";
|
|
2
|
-
import "./index.scss";
|
|
3
|
-
export default class GroupSelect extends Component {
|
|
4
|
-
data: Array<any>;
|
|
5
|
-
current: any;
|
|
6
|
-
isSelector: boolean;
|
|
7
|
-
visible: boolean;
|
|
8
|
-
onSelect(arr: Array<any>, node: any): void;
|
|
9
|
-
onClear(): void;
|
|
10
|
-
renderContent(h: Function, { root, node, data }: {
|
|
11
|
-
root: Array<any>;
|
|
12
|
-
node: any;
|
|
13
|
-
data: any;
|
|
14
|
-
}): void;
|
|
15
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Component } from "@egova/flagwind-web";
|
|
2
|
-
import { InterfaceModel } from "../interface-settings/model";
|
|
3
|
-
import "./index.scss";
|
|
4
|
-
export default class HeadersSetting extends Component {
|
|
5
|
-
interfaceModel: InterfaceModel;
|
|
6
|
-
columns: Array<any>;
|
|
7
|
-
onDelete(index: number): void;
|
|
8
|
-
onAdd(): void;
|
|
9
|
-
onChangeDisabled(value: boolean, item: any): void;
|
|
10
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import ApiService from "./service";
|
|
2
|
-
import { View } from "@egova/flagwind-web";
|
|
3
|
-
import "./index.scss";
|
|
4
|
-
import SwiperType from "swiper";
|
|
5
|
-
export default class ProjectDetail extends View {
|
|
6
|
-
openInterfaceList: Array<any>;
|
|
7
|
-
active: any;
|
|
8
|
-
lengthwise: boolean;
|
|
9
|
-
showGlobalModal: boolean;
|
|
10
|
-
showCurrentModal: boolean;
|
|
11
|
-
showSecurity: boolean;
|
|
12
|
-
showEnvironmentModal: boolean;
|
|
13
|
-
service: ApiService;
|
|
14
|
-
projectId: string;
|
|
15
|
-
projectName: string;
|
|
16
|
-
split: string;
|
|
17
|
-
loading: boolean;
|
|
18
|
-
swiper: SwiperType;
|
|
19
|
-
swiperOption: any;
|
|
20
|
-
current: any;
|
|
21
|
-
onClickSlide(index: number): void;
|
|
22
|
-
onSwiperReadied(swiper: SwiperType): void;
|
|
23
|
-
getProjectInfo(): Promise<void>;
|
|
24
|
-
onCheckInterface(data: any, isResume: boolean): Promise<void>;
|
|
25
|
-
onEditInterfaceSuccess(data: any): void;
|
|
26
|
-
onDeleteInterface(data: any): void;
|
|
27
|
-
onClose(index: number): void;
|
|
28
|
-
onClickTag(data: any): void;
|
|
29
|
-
onToggleLayout(): void;
|
|
30
|
-
onSecurity(): void;
|
|
31
|
-
onOpenGlobalModal(): void;
|
|
32
|
-
onOpenCurrentModal(): void;
|
|
33
|
-
onOpenEnvModal(): void;
|
|
34
|
-
mounted(): void;
|
|
35
|
-
activated(): void;
|
|
36
|
-
onBack(): void;
|
|
37
|
-
onBatchSuccess(data: any): void;
|
|
38
|
-
onEnvironmentRefresh(): void;
|
|
39
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { Component } from "@egova/flagwind-web";
|
|
2
|
-
import { Response } from "../response";
|
|
3
|
-
import ApiService from "../service";
|
|
4
|
-
import "./index.scss";
|
|
5
|
-
import { InterfaceModel } from "./model";
|
|
6
|
-
export default class InterfaceSettings extends Component {
|
|
7
|
-
service: ApiService;
|
|
8
|
-
interfaceModel: InterfaceModel;
|
|
9
|
-
lengthwise: boolean;
|
|
10
|
-
projectId: string;
|
|
11
|
-
response: Response;
|
|
12
|
-
responseCache: Map<string, Response>;
|
|
13
|
-
loading: boolean;
|
|
14
|
-
showEnvironmentModal: boolean;
|
|
15
|
-
currentId: string;
|
|
16
|
-
paramList: Array<any>;
|
|
17
|
-
errorLine: any;
|
|
18
|
-
originId: string;
|
|
19
|
-
scriptView: boolean;
|
|
20
|
-
apiForm: any;
|
|
21
|
-
showImportModal: boolean;
|
|
22
|
-
importObj: any;
|
|
23
|
-
typeList: Array<any>;
|
|
24
|
-
requertSettingTypeList: Array<any>;
|
|
25
|
-
rules: any;
|
|
26
|
-
currentRequestSettingType: any;
|
|
27
|
-
formData: FormData;
|
|
28
|
-
mounted(): void;
|
|
29
|
-
onClickRequertSettingTpye(item: any): void;
|
|
30
|
-
onClickRequertSettingSubTpye(item: any, subItem: string): void;
|
|
31
|
-
onRun(): Promise<void>;
|
|
32
|
-
onSave(): Promise<void>;
|
|
33
|
-
interfaceModelChange(): void;
|
|
34
|
-
showImportModalChange(value: boolean): void;
|
|
35
|
-
onImport(file: any): Promise<boolean>;
|
|
36
|
-
/**
|
|
37
|
-
* 选择导入文件且名称校验弹窗通过之后的保存事件
|
|
38
|
-
* @param obj 导入文件解析之后的数据
|
|
39
|
-
* @returns
|
|
40
|
-
*/
|
|
41
|
-
saveImportData(obj: any): Promise<void>;
|
|
42
|
-
onExport(): void;
|
|
43
|
-
validateEnvName(rule: any, value: any, callback: any): Promise<void>;
|
|
44
|
-
validateAuthName(rule: any, value: any, callback: any): Promise<void>;
|
|
45
|
-
cancleModify(): void;
|
|
46
|
-
onVersion(): void;
|
|
47
|
-
onCurrentId(id: string): void;
|
|
48
|
-
getEnvironmentParamList(): Promise<void>;
|
|
49
|
-
onAddEnvParam(): void;
|
|
50
|
-
onScriptRun(): Promise<void>;
|
|
51
|
-
onScriptMax(data: any): void;
|
|
52
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export declare class InterfaceModel {
|
|
2
|
-
info: any;
|
|
3
|
-
json: string;
|
|
4
|
-
queryParams: Array<any>;
|
|
5
|
-
formParams: Array<any>;
|
|
6
|
-
requestHeaders: Array<any>;
|
|
7
|
-
preScripts: Array<PreScript>;
|
|
8
|
-
postScripts: Array<PostScript>;
|
|
9
|
-
eventScripts: Array<any>;
|
|
10
|
-
convertConfig: ConvertConfig;
|
|
11
|
-
fieldMappings: Array<FieldMapping>;
|
|
12
|
-
authentication: Authentication;
|
|
13
|
-
}
|
|
14
|
-
export declare class Authentication {
|
|
15
|
-
type: string;
|
|
16
|
-
content: string;
|
|
17
|
-
location: string;
|
|
18
|
-
locationKey: string;
|
|
19
|
-
id: string;
|
|
20
|
-
}
|
|
21
|
-
export declare class ConvertConfig {
|
|
22
|
-
convertRoot: string;
|
|
23
|
-
successCodePath: string;
|
|
24
|
-
successCode: string;
|
|
25
|
-
}
|
|
26
|
-
export declare class FieldMapping {
|
|
27
|
-
id: string;
|
|
28
|
-
paramPath: string;
|
|
29
|
-
originalParamPath: string;
|
|
30
|
-
name: string;
|
|
31
|
-
valueType: string;
|
|
32
|
-
checked: boolean;
|
|
33
|
-
}
|
|
34
|
-
export declare class PreScript {
|
|
35
|
-
id: string;
|
|
36
|
-
projectId: string;
|
|
37
|
-
apiId: string;
|
|
38
|
-
eventType: string;
|
|
39
|
-
type: string;
|
|
40
|
-
content: string;
|
|
41
|
-
}
|
|
42
|
-
export declare class PostScript extends PreScript {
|
|
43
|
-
eventType: string;
|
|
44
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import BaseEditorSetting from "../base-editor-setting";
|
|
2
|
-
import { InterfaceModel } from "../interface-settings/model";
|
|
3
|
-
import ApiService from "../service";
|
|
4
|
-
import "./index.scss";
|
|
5
|
-
export default class ParamsSetting extends BaseEditorSetting {
|
|
6
|
-
interfaceModel: InterfaceModel;
|
|
7
|
-
formData: FormData;
|
|
8
|
-
service: ApiService;
|
|
9
|
-
value: Array<string>;
|
|
10
|
-
paramColumns: Array<any>;
|
|
11
|
-
queryDataList: Array<any>;
|
|
12
|
-
requestBodyTypeList: Array<any>;
|
|
13
|
-
typeMap: any;
|
|
14
|
-
formParamTypeList: Array<any>;
|
|
15
|
-
formParamsIndex: number;
|
|
16
|
-
currentFormParamRow: any;
|
|
17
|
-
getExpand(value: string): boolean;
|
|
18
|
-
onDelete(paramList: Array<any>, id: string): void;
|
|
19
|
-
onUp(paramList: Array<any>, index: number): void;
|
|
20
|
-
onDown(paramList: Array<any>, index: number): void;
|
|
21
|
-
onTop(paramList: Array<any>, index: number): void;
|
|
22
|
-
onBottom(paramList: Array<any>, index: number): void;
|
|
23
|
-
onDeleteBodyParam(paramList: Array<any>, id: string): void;
|
|
24
|
-
onUpBodyParam(paramList: Array<any>, id?: string): void;
|
|
25
|
-
onDownBodyParam(paramList: Array<any>, id?: string): void;
|
|
26
|
-
onTopBodyParam(paramList: Array<any>, id?: string): void;
|
|
27
|
-
onBottomBodyParam(paramList: Array<any>, id?: string): void;
|
|
28
|
-
onChangeDisabled(value: boolean, item: any): void;
|
|
29
|
-
init(): void;
|
|
30
|
-
get bodyDataList(): any;
|
|
31
|
-
set bodyDataList(value: any);
|
|
32
|
-
onAddRequestParam(): void;
|
|
33
|
-
onAddBodyParam(): void;
|
|
34
|
-
get bodyType(): string;
|
|
35
|
-
set bodyType(value: string);
|
|
36
|
-
get isFormData(): boolean;
|
|
37
|
-
onBeautify(): void;
|
|
38
|
-
mounted(): Promise<void>;
|
|
39
|
-
onChangeFormParamType(index: number, row: any): void;
|
|
40
|
-
onClickRow(row: any): void;
|
|
41
|
-
onImport(file: any): Promise<never>;
|
|
42
|
-
onClearFile(row: any): void;
|
|
43
|
-
onQuerySelectionChange(rows: any): void;
|
|
44
|
-
onBodySelectionChange(rows: any): void;
|
|
45
|
-
isInArray(rows: Array<any>, id: string): boolean;
|
|
46
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import BaseEditorSetting from "../base-editor-setting";
|
|
2
|
-
import { InterfaceModel, PreScript } from "../interface-settings/model";
|
|
3
|
-
import "./index.scss";
|
|
4
|
-
import ApiService from "../service";
|
|
5
|
-
export default class PreExecutionSetting extends BaseEditorSetting {
|
|
6
|
-
interfaceModel: InterfaceModel;
|
|
7
|
-
service: ApiService;
|
|
8
|
-
errorLine: any;
|
|
9
|
-
scriptData: any;
|
|
10
|
-
viewMax: boolean;
|
|
11
|
-
tempScriptData: any;
|
|
12
|
-
model: PreScript;
|
|
13
|
-
key: "postScripts" | "preScripts";
|
|
14
|
-
diyKeywordList: Array<any>;
|
|
15
|
-
refreshEditor: boolean;
|
|
16
|
-
keyword: string;
|
|
17
|
-
errorMap: any;
|
|
18
|
-
onFilter: any;
|
|
19
|
-
mounted(): void;
|
|
20
|
-
handleError(value: any): void;
|
|
21
|
-
/**
|
|
22
|
-
* 添加错误行的错误图标
|
|
23
|
-
* @param value 当前错误行
|
|
24
|
-
* @returns
|
|
25
|
-
*/
|
|
26
|
-
displayError(value: any): void;
|
|
27
|
-
getScript(): Promise<void>;
|
|
28
|
-
onClickItem(item: any): void;
|
|
29
|
-
get script(): string;
|
|
30
|
-
set script(value: string);
|
|
31
|
-
filterTypeList(): void;
|
|
32
|
-
onQuickGroupClick(type: any): void;
|
|
33
|
-
onRun(): void;
|
|
34
|
-
onSearch(): void;
|
|
35
|
-
onSave(): void;
|
|
36
|
-
onViewMax(): void;
|
|
37
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
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
|
-
expand: boolean;
|
|
21
|
-
headerColumns: Array<any>;
|
|
22
|
-
active: any;
|
|
23
|
-
onClickResponseSettingTpye(type: any): void;
|
|
24
|
-
get content(): string;
|
|
25
|
-
get output(): string;
|
|
26
|
-
get responseHeaders(): {
|
|
27
|
-
key: string;
|
|
28
|
-
value: any;
|
|
29
|
-
}[];
|
|
30
|
-
get requestHeaders(): {
|
|
31
|
-
key: string;
|
|
32
|
-
value: any;
|
|
33
|
-
}[];
|
|
34
|
-
get cookies(): any;
|
|
35
|
-
onChangeLang(lang: "json" | "xml"): void;
|
|
36
|
-
init(): void;
|
|
37
|
-
/**
|
|
38
|
-
* 由于最大化的情况下脚本编辑器大小会根据相应输出栏展开收起而自适应大小
|
|
39
|
-
* 代码编辑器组件只有触发dom重绘才会重新变更大小,因此借用v-if对节点的操作触发重绘
|
|
40
|
-
* 通过在展开之前和之后两次全局通信告诉代码编辑器需要通过v-if出发重绘
|
|
41
|
-
*/
|
|
42
|
-
onClickCollapse(): void;
|
|
43
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Component } from "@egova/flagwind-web";
|
|
2
|
-
import "./index.scss";
|
|
3
|
-
import ApiService from "@/views/project-detail/service";
|
|
4
|
-
export default class SecurityModalComponent extends Component {
|
|
5
|
-
service: ApiService;
|
|
6
|
-
value: boolean;
|
|
7
|
-
projectID: string;
|
|
8
|
-
isAdd: boolean;
|
|
9
|
-
securityList: Array<any>;
|
|
10
|
-
keyword: string;
|
|
11
|
-
currentSecurityItem: any;
|
|
12
|
-
securityTypeList: Array<any>;
|
|
13
|
-
grantTypeList: Array<any>;
|
|
14
|
-
tokenLocationTypeList: Array<any>;
|
|
15
|
-
isAddOnce: boolean;
|
|
16
|
-
exitAddItem: boolean;
|
|
17
|
-
scriptDocShow: boolean;
|
|
18
|
-
scriptDoc: string;
|
|
19
|
-
diyKeywordList: Array<any>;
|
|
20
|
-
isEmpty: boolean;
|
|
21
|
-
onFilter: any;
|
|
22
|
-
get show(): boolean;
|
|
23
|
-
set show(value: boolean);
|
|
24
|
-
onShowChange(show: boolean): Promise<void>;
|
|
25
|
-
queryDiyKeyword(): Promise<void>;
|
|
26
|
-
getSecurityTypeList(): Promise<void>;
|
|
27
|
-
getTokenLocationTypeList(): Promise<void>;
|
|
28
|
-
getGrantTypeList(): Promise<void>;
|
|
29
|
-
getSecurityList(): Promise<void>;
|
|
30
|
-
onSelectSecurityItem(item: any): void;
|
|
31
|
-
onEmpty(value: any): void;
|
|
32
|
-
onDelete(item: any): Promise<void>;
|
|
33
|
-
onAddItem(): void;
|
|
34
|
-
onCancel(): void;
|
|
35
|
-
onSave(): Promise<void>;
|
|
36
|
-
showScriptDoc(): Promise<void>;
|
|
37
|
-
}
|