|
@@ -583,7 +583,7 @@ export class ConfigurationCategoryComponent implements OnInit {
|
583
|
583
|
if (data.status == 200) {
|
584
|
584
|
this['activeCategory' + this.deleteType] = {};
|
585
|
585
|
this.categoryConfigList = [];
|
586
|
|
- this.showPromptModal(this.tipsMsg2, true, "");
|
|
586
|
+ this.showPromptModal(this.tipsMsg2, true, "", this.deleteType);
|
587
|
587
|
} else {
|
588
|
588
|
this.showPromptModal(this.tipsMsg2, false, data.msg);
|
589
|
589
|
}
|
|
@@ -815,7 +815,7 @@ export class ConfigurationCategoryComponent implements OnInit {
|
815
|
815
|
ifSuccess: boolean; //操作成功/失败
|
816
|
816
|
promptInfo: string; //操作结果提示信息
|
817
|
817
|
promptModalShow: boolean; //操作提示框是否展示
|
818
|
|
- showPromptModal(con, success, promptInfo?) {
|
|
818
|
+ showPromptModal(con, success, promptInfo?, deleteType?) {
|
819
|
819
|
this.promptModalShow = false;
|
820
|
820
|
this.promptContent = con;
|
821
|
821
|
this.ifSuccess = success;
|
|
@@ -837,13 +837,17 @@ export class ConfigurationCategoryComponent implements OnInit {
|
837
|
837
|
}
|
838
|
838
|
}
|
839
|
839
|
}else{
|
840
|
|
- if(this.coopType !== 0){
|
841
|
|
- this.getCategoryList(this.coopType, this.coopType === 1 ? undefined : this['activeCategory' + (this.coopType - 1)].id);
|
|
840
|
+ if(deleteType){
|
|
841
|
+ this.getCategoryList(deleteType, deleteType === 1 ? undefined : this['activeCategory' + (deleteType - 1)].id);
|
842
|
842
|
}else{
|
843
|
|
- this.getCategoryList(this.currentCategoryIndex, this.currentCategoryIndex === 1 ? undefined : this['activeCategory' + (this.currentCategoryIndex - 1)].id);
|
844
|
|
- }
|
845
|
|
- if(this.activeCategory3.id || this.activeCategory2.id || this.activeCategory1.id){
|
846
|
|
- this.getCategoryConfigList(this.activeCategory3.id || this.activeCategory2.id || this.activeCategory1.id);
|
|
843
|
+ if(this.coopType !== 0){
|
|
844
|
+ this.getCategoryList(this.coopType, this.coopType === 1 ? undefined : this['activeCategory' + (this.coopType - 1)].id);
|
|
845
|
+ }else{
|
|
846
|
+ this.getCategoryList(this.currentCategoryIndex, this.currentCategoryIndex === 1 ? undefined : this['activeCategory' + (this.currentCategoryIndex - 1)].id);
|
|
847
|
+ }
|
|
848
|
+ if(this.activeCategory3.id || this.activeCategory2.id || this.activeCategory1.id){
|
|
849
|
+ this.getCategoryConfigList(this.activeCategory3.id || this.activeCategory2.id || this.activeCategory1.id);
|
|
850
|
+ }
|
847
|
851
|
}
|
848
|
852
|
}
|
849
|
853
|
}
|