显示效果优化

This commit is contained in:
648540858
2022-06-15 16:04:36 +08:00
parent dbe6ece653
commit c2faa8c3ce
6 changed files with 49 additions and 11 deletions

View File

@@ -21,6 +21,19 @@ class DeviceService{
if (typeof (errorCallback) == "function") errorCallback(error)
});
}
getDevice(deviceId, callback, errorCallback){
this.$axios({
method: 'get',
url:`/api/device/query/devices/${deviceId}`,
}).then((res) => {
if (typeof (callback) == "function") callback(res.data)
}).catch((error) => {
console.log(error);
if (typeof (errorCallback) == "function") errorCallback(error)
});
}
getAllDeviceList(callback,endCallback, errorCallback) {
let currentPage = 1;
let count = 100;