|
@@ -64,8 +64,24 @@ function reboot(formData) {
|
|
return request.post(constant.serverUrl + "/base/deviceInfo/reboot", formData);
|
|
return request.post(constant.serverUrl + "/base/deviceInfo/reboot", formData);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+function personLibList(deviceNo) {
|
|
|
|
+ return request.get(constant.serverUrl + `/devOps/queryPeopleLib?deviceNo=${deviceNo}`);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+function personList(formData) {
|
|
|
|
+ return request.post(constant.serverUrl + "/devOps/queryPeople",formData);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+function deletePerson(deviceNo,libId,personId){
|
|
|
|
+ var formData = new FormData();
|
|
|
|
+ formData.append("deviceNo",deviceNo);
|
|
|
|
+ formData.append("libId",libId);
|
|
|
|
+ formData.append("personId",personId);
|
|
|
|
+
|
|
|
|
+ return request.post(constant.serverUrl + "/devOps/deletePeople",formData);
|
|
|
|
+}
|
|
|
|
|
|
export default {
|
|
export default {
|
|
create, edit, add, update, remove, batchRemove, pageList, getByIpAddressAndPort, list,
|
|
create, edit, add, update, remove, batchRemove, pageList, getByIpAddressAndPort, list,
|
|
- getDeviceRule, saveDeviceRule, query, reboot
|
|
|
|
|
|
+ getDeviceRule, saveDeviceRule, query, reboot, personLibList,personList,deletePerson
|
|
}
|
|
}
|