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