| | |
| | | getDeviceList(currentPage, count, callback, errorCallback){ |
| | | this.$axios({ |
| | | method: 'get', |
| | | url:`./api/device/query/devices`, |
| | | url:`/api/device/query/devices`, |
| | | params: { |
| | | page: currentPage, |
| | | count: count |
| | |
| | | getDevice(deviceId, callback, errorCallback){ |
| | | this.$axios({ |
| | | method: 'get', |
| | | url:`./api/device/query/devices/${deviceId}`, |
| | | url:`/api/device/query/devices/${deviceId}`, |
| | | }).then((res) => { |
| | | if (typeof (callback) == "function") callback(res.data) |
| | | }).catch((error) => { |
| | |
| | | getChanel(isCatalog, catalogUnderDevice, deviceId, currentPage, count, callback, errorCallback) { |
| | | this.$axios({ |
| | | method: 'get', |
| | | url: `./api/device/query/devices/${deviceId}/channels`, |
| | | url: `/api/device/query/devices/${deviceId}/channels`, |
| | | params:{ |
| | | page: currentPage, |
| | | count: count, |
| | |
| | | getSubChannel(isCatalog, deviceId, channelId, currentPage, count, callback, errorCallback) { |
| | | this.$axios({ |
| | | method: 'get', |
| | | url: `./api/device/query/sub_channels/${deviceId}/${channelId}/channels`, |
| | | url: `/api/device/query/sub_channels/${deviceId}/${channelId}/channels`, |
| | | params:{ |
| | | page: currentPage, |
| | | count: count, |
| | |
| | | } |
| | | this.$axios({ |
| | | method: 'get', |
| | | url: `./api/device/query/tree/${deviceId}`, |
| | | url: `/api/device/query/tree/${deviceId}`, |
| | | params:{ |
| | | page: currentPage, |
| | | count: count, |