76 lines
1.7 KiB
TypeScript
76 lines
1.7 KiB
TypeScript
export interface IncidentListParams {
|
|
dict_id?: string;
|
|
item_value?: string;
|
|
pageSize?: number;
|
|
pageNum?: number;
|
|
}
|
|
|
|
export interface accidentParams {
|
|
ticket_id?: string;
|
|
vin?: string;
|
|
carline?: string;
|
|
model?: string;
|
|
labels?: string;
|
|
accident_level?: string;
|
|
bmbs_name?: string;
|
|
rdca_reporter?: string;
|
|
software_version?: string;
|
|
affects_versions?: string;
|
|
components?: string;
|
|
fix_versions?: string;
|
|
case_description?: string;
|
|
fo_solution?: string;
|
|
assignee_name?: string;
|
|
occur_datetime?: string;
|
|
subtasks?: string;
|
|
linked_work_items?: string;
|
|
}
|
|
|
|
export async function getDictDataApi(params: IncidentListParams) {
|
|
return usePost('/accident/item-list', params)
|
|
}
|
|
|
|
|
|
export async function getAllDictCodeApi() {
|
|
return useGet('/accident/all_dict_code')
|
|
}
|
|
|
|
|
|
export async function insertDictTypetApi(params: IncidentListParams) {
|
|
return usePost('/accident/insert-dict', params)
|
|
}
|
|
|
|
|
|
export async function insertAccidentApi(params: accidentParams) {
|
|
return usePost('/accident/insert-accident', params)
|
|
}
|
|
|
|
|
|
export async function getAccidentRecordApi(params: any) {
|
|
return usePost('/accident/get-accident-record', params)
|
|
}
|
|
|
|
|
|
export async function getAccidentByIdApi(params: number) {
|
|
return usePost('/accident/get-accident-by-id', params)
|
|
}
|
|
|
|
|
|
export async function updataItemByIdApi(params: any) {
|
|
return usePost('/accident/update-item', params)
|
|
}
|
|
|
|
|
|
export async function bingImageApi(params: any) {
|
|
return usePost('/file_uploads/bind-image', params)
|
|
}
|
|
|
|
|
|
export function getImagesApi(case_id: number) {
|
|
return useGet(`/file_uploads/get-images/${case_id}`)
|
|
}
|
|
|
|
|
|
export async function getSecretKey() {
|
|
return useGet('/user/get_record')
|
|
} |