648540858
2022-07-03 72c1b36d6d2ece497e032c8434641d6576590f9d
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;