fajiao
2 years ago
10 changed files with 223 additions and 57 deletions
@ -1,22 +1,26 @@ |
|||
import {axios} from '@/utils/axios'; |
|||
import {apiUrl} from "@/api"; |
|||
import qs from 'qs'; |
|||
|
|||
enum Api { |
|||
Add = '/cmMarkGroup/add', |
|||
Update = '/cmMarkGroup/update', |
|||
Delete = '/cmMarkGroup/delete', |
|||
Get = '/cmMarkGroup/get', |
|||
GetList = '/cmMarkGroup/getList', |
|||
GetPageList = '/cmMarkGroup/getPageList', |
|||
Add = '/cmMarkLabel/add', |
|||
AddReturnId = '/cmMarkLabel/addReturnId', |
|||
Update = '/cmMarkLabel/update', |
|||
Delete = '/cmMarkLabel/delete', |
|||
Get = '/cmMarkLabel/get', |
|||
GetList = '/cmMarkLabel/getList', |
|||
GetPageList = '/cmMarkLabel/getPageList', |
|||
} |
|||
|
|||
const CisApiUrl = apiUrl.CisApiUrl; |
|||
|
|||
export const Add = (params?: any) => axios.post(CisApiUrl + Api.Add, params) |
|||
export const Add = (params?: any) => axios.post(CisApiUrl + Api.Add, qs.stringify(params)) |
|||
|
|||
export const Update = (params?: any) => axios.post(CisApiUrl + Api.Update, params) |
|||
export const AddReturnId = (params?: any) => axios.post(CisApiUrl + Api.AddReturnId, qs.stringify(params)) |
|||
|
|||
export const Delete = (params?: any) => axios.post(CisApiUrl + Api.Delete, params) |
|||
export const Update = (params?: any) => axios.post(CisApiUrl + Api.Update, qs.stringify(params)) |
|||
|
|||
export const Delete = (params?: any) => axios.post(CisApiUrl + Api.Delete, qs.stringify(params)) |
|||
|
|||
export const Get = (params?: any) => axios.get(CisApiUrl + Api.Get, {params: params}) |
|||
|
@ -1,22 +1,29 @@ |
|||
import {axios} from '@/utils/axios'; |
|||
import {apiUrl} from "@/api"; |
|||
import qs from 'qs'; |
|||
|
|||
enum Api { |
|||
ActiveCamera = '/markSearch/activeCamera', |
|||
DeActiveCamera = '/markSearch/deActiveCamera', |
|||
AddCameraMarkLabel = '/markSearch/addCameraMarkLabel', |
|||
DeleteCameraMarkLabel = '/markSearch/deleteCameraMarkLabel', |
|||
GetMarkLabelCalcResultList = '/markSearch/GetMarkLabelCalcResultList', |
|||
ActivateSearcher = '/markSearch/activateSearcher', |
|||
DeActiveSearcher = '/markSearch/deActiveSearcher', |
|||
IsExistSearcher = '/markSearch/isExistSearcher', |
|||
ActivateMarkLabel = '/markSearch/activateMarkLabel', |
|||
DeactivateMarkLabel = '/markSearch/deactivateMarkLabel', |
|||
IsExistMarkLabel = '/markSearch/isExistMarkLabel', |
|||
GetMarkLabelCalcResultList = '/markSearch/getMarkLabelCalcResultList', |
|||
} |
|||
|
|||
const CisApiUrl = apiUrl.CisApiUrl; |
|||
|
|||
export const ActiveCamera = (params?: any) => axios.post(CisApiUrl + Api.ActiveCamera, params) |
|||
export const ActiveSearcher = (params?: any) => axios.post(CisApiUrl + Api.ActivateSearcher, qs.stringify(params)) |
|||
|
|||
export const DeActiveCamera = (params?: any) => axios.post(CisApiUrl + Api.DeActiveCamera, params) |
|||
export const DeActiveSearcher = (params?: any) => axios.post(CisApiUrl + Api.DeActiveSearcher, qs.stringify(params)) |
|||
|
|||
export const AddCameraMarkLabel = (params?: any) => axios.post(CisApiUrl + Api.AddCameraMarkLabel, params) |
|||
export const IsExistSearcher = (params?: any) => axios.get(CisApiUrl + Api.IsExistSearcher, {params: params}) |
|||
|
|||
export const DeleteCameraMarkLabel = (params?: any) => axios.post(CisApiUrl + Api.DeleteCameraMarkLabel, params) |
|||
export const ActivateMarkLabel = (params?: any) => axios.post(CisApiUrl + Api.ActivateMarkLabel, qs.stringify(params)) |
|||
|
|||
export const DeactivateMarkLabel = (params?: any) => axios.post(CisApiUrl + Api.DeactivateMarkLabel, qs.stringify(params)) |
|||
|
|||
export const IsExistMarkLabel = (params?: any) => axios.get(CisApiUrl + Api.IsExistMarkLabel, {params: params}) |
|||
|
|||
export const GetMarkLabelCalcResultList = (params?: any) => axios.get(CisApiUrl + Api.GetMarkLabelCalcResultList, {params: params}) |
|||
|
@ -1,5 +1,6 @@ |
|||
export const apiUrl = { |
|||
CisApiUrl: 'http://192.168.1.119:5000/api', |
|||
WebRtcUrl: 'http://192.168.1.119:8000', |
|||
OnvifApiUrl: '' |
|||
// CisApiUrl: 'https://192.168.1.119:5001/api'
|
|||
} |
|||
|
Loading…
Reference in new issue