You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.8 KiB
48 lines
1.8 KiB
import { axios } from '@/utils/axios';
|
|
import { apiUrl } from "@/axios";
|
|
import qs from "qs";
|
|
|
|
enum Api {
|
|
Add = '/cbCamera/add',
|
|
Update = '/cbCamera/update',
|
|
Delete = '/cbCamera/delete',
|
|
Get = '/cbCamera/get',
|
|
GetList = '/cbCamera/getList',
|
|
GetPageList = '/cbCamera/getPageList',
|
|
GetTreeList = '/cbCameraNode/getTree'
|
|
}
|
|
|
|
//相机参数服务
|
|
enum paramsApi{
|
|
GetList = '/cbCameraParams/getList',
|
|
Add = '/cbCameraParams/add',
|
|
Update = '/cbCameraParams/update',
|
|
Delete = '/cbCameraParams/delete',
|
|
Get = '/cbCameraParams/get',
|
|
GetPageList = '/cbCameraParams/getPageList',
|
|
}
|
|
|
|
const CisApiUrl = apiUrl.CisApiUrl;
|
|
|
|
export const Add = (params?: any) => axios.post(CisApiUrl + Api.Add, qs.stringify(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 GetList = (params?: any) => axios.get(CisApiUrl + Api.GetList, { params: params })
|
|
|
|
export const GetPageList = (params?: any) => axios.get(CisApiUrl + Api.GetPageList, { params: params })
|
|
|
|
export const GetTreeList = (params?: any) => axios.get(CisApiUrl + Api.GetTreeList, { params: params })
|
|
|
|
//相机参数服务
|
|
export const GetParamsList = (params?: any) => axios.get(CisApiUrl + paramsApi.GetList, { params: params })
|
|
|
|
export const paramsDelete = (params?: any) => axios.post(CisApiUrl + paramsApi.Delete, qs.stringify(params))
|
|
|
|
export const paramsAdd = (params?: any) => axios.post(CisApiUrl + paramsApi.Add, qs.stringify(params))
|
|
|
|
export const paramsUpdate = (params?: any) => axios.post(CisApiUrl + paramsApi.Update, qs.stringify(params))
|