Commit 47c6c52f authored by yating.lin's avatar yating.lin

去掉网关管理详情、传感器管理详情页未使用的接口:probes.getProbesByGateway

parent 8e659610
Pipeline #906 passed with stage
in 0 seconds
......@@ -56,15 +56,15 @@ export class GatewaySeeComponent implements OnInit {
}
getWayData() {
this.isLoading = true;
this.api.probes.getProbesByGateway([{deviceNo: this.deviceNo}, (data) => {
if (data && data.constructor === Array) {
this.wayData = data;
} else {
this.message.error(data && data.message ? data.message : '获取数据失败');
}
this.isLoading = false;
}]);
// this.isLoading = true;
// this.api.probes.getProbesByGateway([{deviceNo: this.deviceNo}, (data) => {
// if (data && data.constructor === Array) {
// this.wayData = data;
// } else {
// this.message.error(data && data.message ? data.message : '获取数据失败');
// }
// this.isLoading = false;
// }]);
}
toDetail(one) {
......
......@@ -133,15 +133,15 @@ export class SensorDetailComponent implements OnInit {
}
getProbs() {
this.isLoading = true;
this.api.probes.getProbesByGateway([{deviceNo: this.deviceNo}, (data) => {
if (data && data.constructor === Array) {
this.wayData = data;
} else {
this.message.error(data && data.message ? data.message : '获取数据失败');
}
this.isLoading = false;
}]);
// this.isLoading = true;
// this.api.probes.getProbesByGateway([{deviceNo: this.deviceNo}, (data) => {
// if (data && data.constructor === Array) {
// this.wayData = data;
// } else {
// this.message.error(data && data.message ? data.message : '获取数据失败');
// }
// this.isLoading = false;
// }]);
}
getCurrent() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment