648540858
2022-06-27 26739237e2d93460eb869067a6004bfa63a1bdb8
web_src/src/components/service/DeviceService.js
@@ -21,6 +21,19 @@
      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;