Commit fbff58d9 authored by wangqinghua's avatar wangqinghua

message update

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