Commit fbff58d9 authored by wangqinghua's avatar wangqinghua

message update

parent 2fa39688
...@@ -112,8 +112,6 @@ export class BConfigComponent implements OnInit { ...@@ -112,8 +112,6 @@ export class BConfigComponent implements OnInit {
e.info = ''; e.info = '';
}); });
this.toTree(null, null); this.toTree(null, null);
} else {
this.message.error(res.errMsg);
} }
} }
); );
......
...@@ -121,8 +121,6 @@ export class BOverviewComponent implements OnInit { ...@@ -121,8 +121,6 @@ export class BOverviewComponent implements OnInit {
if (res.errCode == 10000) { if (res.errCode == 10000) {
this.list = res.data; this.list = res.data;
this.echartView(); this.echartView();
} else {
this.message.error(res.errMsg);
} }
} }
); );
......
...@@ -239,7 +239,6 @@ export class EffectAnalysisComponent implements OnInit { ...@@ -239,7 +239,6 @@ export class EffectAnalysisComponent implements OnInit {
this.noData = false; this.noData = false;
} else { } else {
this.noData = true; this.noData = true;
this.message.info(res.errMsg);
} }
} }
); );
......
...@@ -244,8 +244,6 @@ export class FlowTrendComponent implements OnInit, OnDestroy { ...@@ -244,8 +244,6 @@ export class FlowTrendComponent implements OnInit, OnDestroy {
this.data.now = false; this.data.now = false;
this.flashEcharts(); this.flashEcharts();
} }
} else {
this.message.warning(res.errMsg);
} }
} }
); );
...@@ -409,8 +407,6 @@ export class FlowTrendComponent implements OnInit, OnDestroy { ...@@ -409,8 +407,6 @@ export class FlowTrendComponent implements OnInit, OnDestroy {
} }
} }
); );
} else {
this.message.warning(res.errMsg);
} }
} }
); );
...@@ -543,8 +539,6 @@ export class FlowTrendComponent implements OnInit, OnDestroy { ...@@ -543,8 +539,6 @@ export class FlowTrendComponent implements OnInit, OnDestroy {
if (res.errCode == 10000) { if (res.errCode == 10000) {
this.inList = res.data.data; this.inList = res.data.data;
this.inTotalNum = res.data.totalNum; this.inTotalNum = res.data.totalNum;
} else {
this.message.warning(res.errMsg);
} }
this.inLoading = false; this.inLoading = false;
} }
...@@ -571,8 +565,6 @@ export class FlowTrendComponent implements OnInit, OnDestroy { ...@@ -571,8 +565,6 @@ export class FlowTrendComponent implements OnInit, OnDestroy {
if (res.errCode == 10000) { if (res.errCode == 10000) {
this.outList = res.data.data; this.outList = res.data.data;
this.outTotalNum = res.data.totalNum; this.outTotalNum = res.data.totalNum;
} else {
this.message.warning(res.errMsg);
} }
this.outLoading = false; this.outLoading = false;
} }
......
...@@ -242,8 +242,6 @@ export class NeTopologyComponent implements OnInit, DoCheck, AfterViewInit, OnDe ...@@ -242,8 +242,6 @@ export class NeTopologyComponent implements OnInit, DoCheck, AfterViewInit, OnDe
(res) => { (res) => {
if (res.errCode == 10000) { if (res.errCode == 10000) {
this.options = res.data; this.options = res.data;
} else {
this.message.error(res.errMSg);
} }
} }
); );
......
...@@ -37,8 +37,6 @@ export class TopologyImgComponent implements OnInit { ...@@ -37,8 +37,6 @@ export class TopologyImgComponent implements OnInit {
if(res.errCode == 10000){ if(res.errCode == 10000){
this.iconList = res.data.data; this.iconList = res.data.data;
this.totalNum = res.data.totalNum; this.totalNum = res.data.totalNum;
}else{
this.message.error(res.errMsg);
} }
this.isLoading = false; this.isLoading = false;
} }
......
...@@ -93,8 +93,6 @@ export class NetworkCheckComponent implements OnInit { ...@@ -93,8 +93,6 @@ export class NetworkCheckComponent implements OnInit {
(res) => { (res) => {
if (res.errCode == 10000) { if (res.errCode == 10000) {
this.checkStatus = res.data; this.checkStatus = res.data;
} else {
this.message.error(res.errMsg);
} }
} }
); );
......
...@@ -98,8 +98,6 @@ export class ExamineComponent implements OnInit { ...@@ -98,8 +98,6 @@ export class ExamineComponent implements OnInit {
if(res.errCode == 10000){ if(res.errCode == 10000){
this.areadyList = res.data.data; this.areadyList = res.data.data;
this.totalNumAlready = res.data.totalCount; this.totalNumAlready = res.data.totalCount;
}else{
this.message.error(res.errMsg);
} }
} }
); );
...@@ -121,8 +119,6 @@ export class ExamineComponent implements OnInit { ...@@ -121,8 +119,6 @@ export class ExamineComponent implements OnInit {
if(res.errCode == 10000){ if(res.errCode == 10000){
this.noList = res.data.data; this.noList = res.data.data;
this.totalNumNo = res.data.totalCount; this.totalNumNo = res.data.totalCount;
}else{
this.message.error(res.errMsg);
} }
} }
); );
......
...@@ -39,7 +39,7 @@ export class AssetPartComponent implements OnInit { ...@@ -39,7 +39,7 @@ export class AssetPartComponent implements OnInit {
endTime:'', endTime:'',
}; };
constructor(private workSer:WorkService,private router:Router,private commonSer:CommonService, constructor(private workSer:WorkService,private router:Router,private commonSer:CommonService,
private messge:NzMessageService,private systemSer:SystemService) { } private message:NzMessageService,private systemSer:SystemService) { }
ngOnInit() { ngOnInit() {
this.getList(); this.getList();
...@@ -58,8 +58,6 @@ export class AssetPartComponent implements OnInit { ...@@ -58,8 +58,6 @@ export class AssetPartComponent implements OnInit {
(res)=>{ (res)=>{
if(res.errCode == 10000){ if(res.errCode == 10000){
this.parentList = res.data; this.parentList = res.data;
}else{
this.messge.error(res.errMsg);
} }
} }
) )
...@@ -98,7 +96,7 @@ export class AssetPartComponent implements OnInit { ...@@ -98,7 +96,7 @@ export class AssetPartComponent implements OnInit {
//编辑父级分类 //编辑父级分类
showPEditModal(){ showPEditModal(){
if(this.obj.type == "all"){ if(this.obj.type == "all"){
this.messge.warning("请选择需要编辑的分类"); this.message.warning("请选择需要编辑的分类");
return false; return false;
} }
this.smartTypeAsets.showEditModal("编辑分类",this.obj.type); this.smartTypeAsets.showEditModal("编辑分类",this.obj.type);
...@@ -107,11 +105,11 @@ export class AssetPartComponent implements OnInit { ...@@ -107,11 +105,11 @@ export class AssetPartComponent implements OnInit {
//删除父分类 //删除父分类
deleteParentType(){ deleteParentType(){
if(this.obj.type == "all"){ if(this.obj.type == "all"){
this.messge.warning("请选择需要删除的分类"); this.message.warning("请选择需要删除的分类");
return false; return false;
} }
if(this.childrenList.length > 0){ if(this.childrenList.length > 0){
this.messge.warning("删除失败,请先清除该分类下的子分类!"); this.message.warning("删除失败,请先清除该分类下的子分类!");
return false; return false;
} }
const data = { const data = {
...@@ -122,10 +120,10 @@ export class AssetPartComponent implements OnInit { ...@@ -122,10 +120,10 @@ export class AssetPartComponent implements OnInit {
this.workSer.deleteType(data).subscribe( this.workSer.deleteType(data).subscribe(
(res)=>{ (res)=>{
if(res.errCode == 10000){ if(res.errCode == 10000){
this.messge.success("删除成功"); this.message.success("删除成功");
this.getList(); this.getList();
}else{ }else{
this.messge.error(res.errMsg); this.message.error(res.errMsg);
} }
} }
) )
...@@ -142,7 +140,7 @@ export class AssetPartComponent implements OnInit { ...@@ -142,7 +140,7 @@ export class AssetPartComponent implements OnInit {
this.workSer.findInventory(item.id).subscribe( this.workSer.findInventory(item.id).subscribe(
(res) => { (res) => {
if(res.data.length > 0 ){ if(res.data.length > 0 ){
this.messge.warning("删除失败,请先清除资产!"); this.message.warning("删除失败,请先清除资产!");
}else{ }else{
const data = { const data = {
inventoryTypeIds:[] inventoryTypeIds:[]
...@@ -152,10 +150,10 @@ export class AssetPartComponent implements OnInit { ...@@ -152,10 +150,10 @@ export class AssetPartComponent implements OnInit {
this.workSer.deleteType(data).subscribe( this.workSer.deleteType(data).subscribe(
(res)=>{ (res)=>{
if(res.errCode == 10000){ if(res.errCode == 10000){
this.messge.success("删除成功"); this.message.success("删除成功");
this.changeType(); this.changeType();
}else{ }else{
this.messge.error(res.errMsg); this.message.error(res.errMsg);
} }
} }
) )
......
...@@ -70,8 +70,6 @@ export class InspectPlanComponent implements OnInit { ...@@ -70,8 +70,6 @@ export class InspectPlanComponent implements OnInit {
if (res.errCode == 10000) { if (res.errCode == 10000) {
this.planList = res.data.data; this.planList = res.data.data;
this.totalNum = res.data.totalNum; this.totalNum = res.data.totalNum;
} else {
this.message.error(res.errMsg);
} }
this.isLoading = false; this.isLoading = false;
} }
......
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