|
@@ -4,19 +4,27 @@ import { Result } from '/#/axios';
|
|
|
|
|
|
enum Api {
|
|
|
pageList = '/zfb-api/zfb/shop/staffPerm/companyList',
|
|
|
+ cameraList = '/zfb-api/zfb/cameraIncrement/staticsByCompany',
|
|
|
staffList = '/zfb-api/zfb/shop/staffPerm/list',
|
|
|
+ cameraDetailList = '/zfb-api/zfb/cameraIncrement/list',
|
|
|
preDel = '/zfb-api/zfb/shop/sys/user/preDeleteStaff',
|
|
|
roleList = '/zfb-api/zfb/shop/sys/user/roleList',
|
|
|
getRoleListByParam = '/zfb-api/zfb/shop/sys/user/getRoleListByParam',
|
|
|
staffPermSave = '/zfb-api/zfb/shop/staffPerm/save',
|
|
|
staffPermBind = '/zfb-api/zfb/shop/staffPerm/bind',
|
|
|
+ bindStaffList = '/zfb-api/zfb/shop/staffPerm/bindStaffList',
|
|
|
+ cameraBind = '/zfb-api/zfb/cameraIncrement/bindCamera',
|
|
|
staffPermUnbind = '/zfb-api/zfb/shop/staffPerm/unbind',
|
|
|
+ cameraUnbind = '/zfb-api/zfb/cameraIncrement/unbind',
|
|
|
update = '/zfb-api/zfb/shop/sys/user/update',
|
|
|
checkUser = '/zfb-api/zfb/user/checkUserExists',
|
|
|
deleteStaff = '/zfb-api/zfb/shop/sys/user/deleteStaff',
|
|
|
getNumByStaff = '/zfb-api/zfb/shop/sys/user/getNumByStaff',
|
|
|
allList = '/zfb-api/zfb/shop/staffPerm/allList',
|
|
|
+ cameraallList = '/zfb-api/zfb/cameraIncrement/list',
|
|
|
allListType = '/zfb-api/zfb/shop/staffPerm/allListType',
|
|
|
+ deviceType = '/zfb-api/zfb/cameraIncrement/incrementTypes',
|
|
|
+ addCamrea = '/zfb-api/zfb/cameraIncrement/add',
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -33,6 +41,16 @@ export const ListApi = (params: PageParams) =>
|
|
|
ignoreCancelToken: true,
|
|
|
},
|
|
|
});
|
|
|
+export const cameraListApi = (params: PageParams) =>
|
|
|
+ defHttp.post<Result>({
|
|
|
+ url: Api.cameraList,
|
|
|
+ params,
|
|
|
+ data: params,
|
|
|
+ headers: {
|
|
|
+ // @ts-ignore
|
|
|
+ ignoreCancelToken: true,
|
|
|
+ },
|
|
|
+ });
|
|
|
|
|
|
export const staffList = (params: PageParams) =>
|
|
|
defHttp.post<Result>({
|
|
@@ -45,6 +63,17 @@ export const staffList = (params: PageParams) =>
|
|
|
},
|
|
|
});
|
|
|
|
|
|
+export const cameraDetailList = (params: PageParams) =>
|
|
|
+ defHttp.post<Result>({
|
|
|
+ url: Api.cameraDetailList,
|
|
|
+ params,
|
|
|
+ data: params,
|
|
|
+ headers: {
|
|
|
+ // @ts-ignore
|
|
|
+ ignoreCancelToken: true,
|
|
|
+ },
|
|
|
+ });
|
|
|
+
|
|
|
export const getNumByStaff = (params: any) =>
|
|
|
defHttp.get<Result>({
|
|
|
url: Api.getNumByStaff,
|
|
@@ -109,6 +138,16 @@ export const unbindRights = (params) =>
|
|
|
ignoreCancelToken: true,
|
|
|
},
|
|
|
});
|
|
|
+
|
|
|
+export const unbindCamera = (params) =>
|
|
|
+ defHttp.post<Result>({
|
|
|
+ url: Api.cameraUnbind,
|
|
|
+ params,
|
|
|
+ headers: {
|
|
|
+ // @ts-ignore
|
|
|
+ ignoreCancelToken: true,
|
|
|
+ },
|
|
|
+ });
|
|
|
export const bindRights = (params) =>
|
|
|
defHttp.post<Result>({
|
|
|
url: Api.staffPermBind,
|
|
@@ -118,6 +157,25 @@ export const bindRights = (params) =>
|
|
|
ignoreCancelToken: true,
|
|
|
},
|
|
|
});
|
|
|
+export const bindStaffList = (params) =>
|
|
|
+ defHttp.get<Result>({
|
|
|
+ url: Api.bindStaffList,
|
|
|
+ params,
|
|
|
+ headers: {
|
|
|
+ // @ts-ignore
|
|
|
+ ignoreCancelToken: true,
|
|
|
+ },
|
|
|
+ });
|
|
|
+
|
|
|
+export const bindCamera = (params) =>
|
|
|
+ defHttp.post<Result>({
|
|
|
+ url: Api.cameraBind,
|
|
|
+ params,
|
|
|
+ headers: {
|
|
|
+ // @ts-ignore
|
|
|
+ ignoreCancelToken: true,
|
|
|
+ },
|
|
|
+ });
|
|
|
export const saveRights = (params) =>
|
|
|
defHttp.post<Result>({
|
|
|
url: Api.staffPermSave,
|
|
@@ -136,6 +194,17 @@ export const updateApi = (params) =>
|
|
|
ignoreCancelToken: true,
|
|
|
},
|
|
|
});
|
|
|
+
|
|
|
+export const deviceType = (params: any) =>
|
|
|
+ defHttp.get<Result>({
|
|
|
+ url: Api.deviceType,
|
|
|
+ params,
|
|
|
+ data: params,
|
|
|
+ headers: {
|
|
|
+ // @ts-ignore
|
|
|
+ ignoreCancelToken: true,
|
|
|
+ },
|
|
|
+ });
|
|
|
export const getAllList = (params: any) =>
|
|
|
defHttp.get<Result>({
|
|
|
url: Api.allList,
|
|
@@ -147,6 +216,27 @@ export const getAllList = (params: any) =>
|
|
|
},
|
|
|
});
|
|
|
|
|
|
+export const addCamrea = (params: any) =>
|
|
|
+ defHttp.post<Result>({
|
|
|
+ url: Api.addCamrea,
|
|
|
+ params,
|
|
|
+ headers: {
|
|
|
+ // @ts-ignore
|
|
|
+ ignoreCancelToken: true,
|
|
|
+ },
|
|
|
+ });
|
|
|
+
|
|
|
+export const getCameraallList = (params: any) =>
|
|
|
+ defHttp.get<Result>({
|
|
|
+ url: Api.cameraallList,
|
|
|
+ params,
|
|
|
+ data: params,
|
|
|
+ headers: {
|
|
|
+ // @ts-ignore
|
|
|
+ ignoreCancelToken: true,
|
|
|
+ },
|
|
|
+ });
|
|
|
+
|
|
|
export const allListType = (params: any) =>
|
|
|
defHttp.get<Result>({
|
|
|
url: Api.allListType,
|