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 { ...@@ -56,15 +56,15 @@ export class GatewaySeeComponent implements OnInit {
} }
getWayData() { getWayData() {
this.isLoading = true; // this.isLoading = true;
this.api.probes.getProbesByGateway([{deviceNo: this.deviceNo}, (data) => { // this.api.probes.getProbesByGateway([{deviceNo: this.deviceNo}, (data) => {
if (data && data.constructor === Array) { // if (data && data.constructor === Array) {
this.wayData = data; // this.wayData = data;
} else { // } else {
this.message.error(data && data.message ? data.message : '获取数据失败'); // this.message.error(data && data.message ? data.message : '获取数据失败');
} // }
this.isLoading = false; // this.isLoading = false;
}]); // }]);
} }
toDetail(one) { toDetail(one) {
......
...@@ -133,15 +133,15 @@ export class SensorDetailComponent implements OnInit { ...@@ -133,15 +133,15 @@ export class SensorDetailComponent implements OnInit {
} }
getProbs() { getProbs() {
this.isLoading = true; // this.isLoading = true;
this.api.probes.getProbesByGateway([{deviceNo: this.deviceNo}, (data) => { // this.api.probes.getProbesByGateway([{deviceNo: this.deviceNo}, (data) => {
if (data && data.constructor === Array) { // if (data && data.constructor === Array) {
this.wayData = data; // this.wayData = data;
} else { // } else {
this.message.error(data && data.message ? data.message : '获取数据失败'); // this.message.error(data && data.message ? data.message : '获取数据失败');
} // }
this.isLoading = false; // this.isLoading = false;
}]); // }]);
} }
getCurrent() { 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