Commit 2fa39688 authored by wangqinghua's avatar wangqinghua

message update

parent 42b60723
...@@ -105,7 +105,6 @@ export class ResourceAlarmComponent implements OnInit { ...@@ -105,7 +105,6 @@ export class ResourceAlarmComponent implements OnInit {
const response = res.data; const response = res.data;
this.setTopEcharts(response); this.setTopEcharts(response);
}else{ }else{
this.message.warning('告警总数TOP10暂无数据');
this.data.left = true; this.data.left = true;
} }
}else{ }else{
...@@ -170,7 +169,6 @@ export class ResourceAlarmComponent implements OnInit { ...@@ -170,7 +169,6 @@ export class ResourceAlarmComponent implements OnInit {
const response = res.data; const response = res.data;
this.setAlarmTrend(response); this.setAlarmTrend(response);
}else{ }else{
this.message.warning('告警趋势暂无数据');
this.isLoading = false; this.isLoading = false;
this.data.right = true; this.data.right = true;
} }
...@@ -259,8 +257,6 @@ export class ResourceAlarmComponent implements OnInit { ...@@ -259,8 +257,6 @@ export class ResourceAlarmComponent implements OnInit {
(res) => { (res) => {
if(res.errCode == 10000){ if(res.errCode == 10000){
this.commonList = res.data; this.commonList = res.data;
}else{
this.message.error(res.errMsg);
} }
} }
...@@ -284,10 +280,7 @@ export class ResourceAlarmComponent implements OnInit { ...@@ -284,10 +280,7 @@ export class ResourceAlarmComponent implements OnInit {
if(res.errCode == 10000){ if(res.errCode == 10000){
this.reportList = res.data.data; this.reportList = res.data.data;
this.totalNum = res.data.totalNum; this.totalNum = res.data.totalNum;
}else{
this.message.error(res.errMsg);
} }
} }
); );
} }
......
...@@ -62,8 +62,6 @@ export class ResourceUsabilComponent implements OnInit { ...@@ -62,8 +62,6 @@ export class ResourceUsabilComponent implements OnInit {
this.groupList = res.data; this.groupList = res.data;
this.obj.groupid = this.groupList[0].groupid + ''; this.obj.groupid = this.groupList[0].groupid + '';
this.search(); this.search();
} else {
this.message.error(res.errMsg);
} }
} }
); );
...@@ -82,7 +80,6 @@ export class ResourceUsabilComponent implements OnInit { ...@@ -82,7 +80,6 @@ export class ResourceUsabilComponent implements OnInit {
} else { } else {
this.data.left = true; this.data.left = true;
this.isLoading = false; this.isLoading = false;
this.message.warning('可用性TOP暂无数据');
} }
} else { } else {
this.message.error(res.errMsg); this.message.error(res.errMsg);
...@@ -143,11 +140,7 @@ export class ResourceUsabilComponent implements OnInit { ...@@ -143,11 +140,7 @@ export class ResourceUsabilComponent implements OnInit {
} else { } else {
this.data.right = true; this.data.right = true;
this.isLoading = false; this.isLoading = false;
this.message.warning('可用性Last暂无数据');
} }
} else {
this.message.error(res.errMsg);
} }
} }
); );
......
...@@ -54,8 +54,6 @@ export class WarnListComponent implements OnInit { ...@@ -54,8 +54,6 @@ export class WarnListComponent implements OnInit {
this.totalNum = res.data.totalNum; this.totalNum = res.data.totalNum;
this.total.emit(this.totalNum); this.total.emit(this.totalNum);
} }
}else{
this.message.info(res.errMsg);
} }
this.loading = false; this.loading = false;
} }
......
...@@ -181,8 +181,6 @@ export class BasicComponent implements OnInit { ...@@ -181,8 +181,6 @@ export class BasicComponent implements OnInit {
if (res.errCode == 10000) { if (res.errCode == 10000) {
this.groupList = res.data; this.groupList = res.data;
this.search(); this.search();
} else {
this.message.info(res.errMsg);
} }
} }
); );
...@@ -256,7 +254,6 @@ export class BasicComponent implements OnInit { ...@@ -256,7 +254,6 @@ export class BasicComponent implements OnInit {
this.loading = true; this.loading = true;
this.pageNum = event; this.pageNum = event;
this.searchRe(); this.searchRe();
console.log(this.groupid);
} }
//backList //backList
...@@ -274,8 +271,6 @@ export class BasicComponent implements OnInit { ...@@ -274,8 +271,6 @@ export class BasicComponent implements OnInit {
this.yellow = res.data.waring; this.yellow = res.data.waring;
this.red = res.data.serious; this.red = res.data.serious;
this.deviceNo = res.data.total; this.deviceNo = res.data.total;
} else {
this.message.info(res.Msg);
} }
} }
); );
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
"noImplicitAny": false, "noImplicitAny": false,
"skipLibCheck": true, "skipLibCheck": true,
"suppressImplicitAnyIndexErrors": true, "suppressImplicitAnyIndexErrors": true,
"outDir": "build/wx/app", "outDir": "build/www/app",
"lib": ["es7", "dom"], "lib": ["es7", "dom"],
"typeRoots": [ "typeRoots": [
"node_modules/@types" "node_modules/@types"
......
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