|
@@ -1,5 +1,5 @@
|
|
import http from '@/api'
|
|
import http from '@/api'
|
|
-import {TargetDetectionVO, TargetDetectionForm, TargetDetectionQuery} from '@/api/interface/demo/TargetDetection'
|
|
|
|
|
|
+import { TargetDetectionVO, TargetDetectionForm, TargetDetectionQuery } from '@/api/interface/demo/TargetDetection'
|
|
|
|
|
|
/**
|
|
/**
|
|
* @name 查询目标检测列表
|
|
* @name 查询目标检测列表
|
|
@@ -7,7 +7,7 @@ import {TargetDetectionVO, TargetDetectionForm, TargetDetectionQuery} from '@/ap
|
|
* @returns 返回列表
|
|
* @returns 返回列表
|
|
*/
|
|
*/
|
|
export const listTargetDetectionApi = (query: TargetDetectionQuery) => {
|
|
export const listTargetDetectionApi = (query: TargetDetectionQuery) => {
|
|
- return http.get<TargetDetectionVO[]>('/demo/TargetDetection/list', query, {loading: true})
|
|
|
|
|
|
+ return http.get<TargetDetectionVO[]>('/demo/TargetDetection/list', query, { loading: true })
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -25,7 +25,7 @@ export const getTargetDetectionApi = (id: string | number) => {
|
|
* @returns returns
|
|
* @returns returns
|
|
*/
|
|
*/
|
|
export const addTargetDetectionApi = (data: TargetDetectionForm) => {
|
|
export const addTargetDetectionApi = (data: TargetDetectionForm) => {
|
|
- return http.post<any>('/demo/TargetDetection', data, {loading: false})
|
|
|
|
|
|
+ return http.post<any>('/demo/TargetDetection', data, { loading: false })
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -34,7 +34,7 @@ export const addTargetDetectionApi = (data: TargetDetectionForm) => {
|
|
* @returns returns
|
|
* @returns returns
|
|
*/
|
|
*/
|
|
export const updateTargetDetectionApi = (data: TargetDetectionForm) => {
|
|
export const updateTargetDetectionApi = (data: TargetDetectionForm) => {
|
|
- return http.put<any>('/demo/TargetDetection', data, {loading: false})
|
|
|
|
|
|
+ return http.put<any>('/demo/TargetDetection', data, { loading: false })
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -70,11 +70,14 @@ export const exportTargetDetectionApi = (data: any) => {
|
|
return http.downloadPost('/demo/TargetDetection/export', data)
|
|
return http.downloadPost('/demo/TargetDetection/export', data)
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
export const startTargetDetectionApi = (id: string | number) => {
|
|
export const startTargetDetectionApi = (id: string | number) => {
|
|
return http.get<any>(`/demo/TargetDetection/start/${id}`)
|
|
return http.get<any>(`/demo/TargetDetection/start/${id}`)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+export const stopTargetDetectionApi = (id: string | number) => {
|
|
|
|
+ return http.get('/demo/TargetDetection/stop/' + id)
|
|
|
|
+}
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* @name 下载压缩包
|
|
* @name 下载压缩包
|
|
* @returns returns
|
|
* @returns returns
|