소스 검색

错误提示

seimin 4 달 전
부모
커밋
e941a164a9

+ 4 - 4
src/app/components/incidentManagement/incident-create/incident-create.component.ts

@@ -935,7 +935,7 @@ export class IncidentCreateComponent implements OnInit {
935 935
           // this.msg.success('直接解决成功');
936 936
           this.isBuildOrderAgaginFn();
937 937
         } else {
938
-          this.msg.error('直接解决失败');
938
+          this.msg.error(result.msg || '直接解决失败');
939 939
         }
940 940
       });
941 941
   }
@@ -1049,7 +1049,7 @@ export class IncidentCreateComponent implements OnInit {
1049 1049
           // this.msg.success('建单并派单成功');
1050 1050
           this.isBuildOrderAgaginFn();
1051 1051
         } else {
1052
-          this.msg.error('建单并派单失败');
1052
+          this.msg.error(result.msg || '建单并派单失败');
1053 1053
         }
1054 1054
       });
1055 1055
   }
@@ -1123,7 +1123,7 @@ export class IncidentCreateComponent implements OnInit {
1123 1123
           // this.msg.success('暂存成功');
1124 1124
           this.isBuildOrderAgaginFn();
1125 1125
         } else {
1126
-          this.msg.error('暂存失败');
1126
+          this.msg.error(result.msg || '暂存失败');
1127 1127
         }
1128 1128
       });
1129 1129
   }
@@ -1216,7 +1216,7 @@ export class IncidentCreateComponent implements OnInit {
1216 1216
           // this.msg.success('编辑成功');
1217 1217
           this.isBuildOrderAgaginFn();
1218 1218
         } else {
1219
-          this.msg.error('编辑失败');
1219
+          this.msg.error(result.msg || '编辑失败');
1220 1220
         }
1221 1221
       });
1222 1222
   }

+ 2 - 2
src/app/components/incidentManagement/incident-handle/incident-handle.component.ts

@@ -300,7 +300,7 @@ export class IncidentHandleComponent implements OnInit {
300 300
         if (result.state == 200) {
301 301
           this.message.success('处理成功');
302 302
         } else {
303
-          this.message.error('处理失败');
303
+          this.message.error(result.msg || '处理失败');
304 304
         }
305 305
       });
306 306
     }else if(this.itsmSimpleHandle.value == 1){
@@ -348,7 +348,7 @@ export class IncidentHandleComponent implements OnInit {
348 348
         if (result.state == 200) {
349 349
           this.message.success('处理成功');
350 350
         } else {
351
-          this.message.error('处理失败');
351
+          this.message.error(result.msg || '处理失败');
352 352
         }
353 353
       });
354 354
     }

+ 1 - 1
src/app/components/incidentManagement/incident-postpone/incident-postpone.component.ts

@@ -138,7 +138,7 @@ export class IncidentPostponeComponent implements OnInit {
138 138
       if (result.state == 200) {
139 139
         this.message.success('操作成功');
140 140
       } else {
141
-        this.message.error('操作失败');
141
+        this.message.error(result.msg || '操作失败');
142 142
       }
143 143
     });
144 144
   }

+ 3 - 3
src/app/components/incidentManagement/incident-substitution/incident-substitution.component.ts

@@ -161,7 +161,7 @@ export class IncidentSubstitutionComponent implements OnInit {
161 161
         if (result.state == 200) {
162 162
           this.message.success('转派成功');
163 163
         } else {
164
-          this.message.error('转派失败');
164
+          this.message.error(result.msg || '转派失败');
165 165
         }
166 166
       });
167 167
     }else if(this.activeTabValue === 'assign'){
@@ -204,7 +204,7 @@ export class IncidentSubstitutionComponent implements OnInit {
204 204
         if (result.state == 200) {
205 205
           this.message.success('指派成功');
206 206
         } else {
207
-          this.message.error('指派失败');
207
+          this.message.error(result.msg || '指派失败');
208 208
         }
209 209
       });
210 210
     }else if(this.activeTabValue === 'reassign'){
@@ -237,7 +237,7 @@ export class IncidentSubstitutionComponent implements OnInit {
237 237
         if (result.state == 200) {
238 238
           this.message.success('退回成功');
239 239
         } else {
240
-          this.message.error('退回失败');
240
+          this.message.error(result.msg || '退回失败');
241 241
         }
242 242
       });
243 243
     }

+ 1 - 1
src/app/components/incidentManagement/incident-visit/incident-visit.component.ts

@@ -148,7 +148,7 @@ export class IncidentVisitComponent implements OnInit {
148 148
       if (result.state == 200) {
149 149
         this.message.success('回访成功');
150 150
       } else {
151
-        this.message.error('回访失败');
151
+        this.message.error(result.msg || '回访失败');
152 152
       }
153 153
     });
154 154
   }

+ 5 - 5
src/app/views/fuwutai/fuwutai.component.ts

@@ -2896,7 +2896,7 @@ export class FuwutaiComponent implements OnInit {
2896 2896
           // this.msg.success('直接解决成功');
2897 2897
           this.isBuildOrderAgaginFn();
2898 2898
         } else {
2899
-          this.msg.error('直接解决失败');
2899
+          this.msg.error(result.msg || '直接解决失败');
2900 2900
         }
2901 2901
       });
2902 2902
   }
@@ -3636,7 +3636,7 @@ export class FuwutaiComponent implements OnInit {
3636 3636
           // this.msg.success('建单并派单成功');
3637 3637
           this.isBuildOrderAgaginFn();
3638 3638
         } else {
3639
-          this.msg.error('建单并派单失败');
3639
+          this.msg.error(result.msg || '建单并派单失败');
3640 3640
         }
3641 3641
       });
3642 3642
   }
@@ -3711,7 +3711,7 @@ export class FuwutaiComponent implements OnInit {
3711 3711
           // this.msg.success('暂存成功');
3712 3712
           this.isBuildOrderAgaginFn();
3713 3713
         } else {
3714
-          this.msg.error('暂存失败');
3714
+          this.msg.error(result.msg || '暂存失败');
3715 3715
         }
3716 3716
       });
3717 3717
   }
@@ -3801,7 +3801,7 @@ export class FuwutaiComponent implements OnInit {
3801 3801
           // this.msg.success('编辑成功');
3802 3802
           this.isBuildOrderAgaginFn();
3803 3803
         } else {
3804
-          this.msg.error('编辑失败');
3804
+          this.msg.error(result.msg || '编辑失败');
3805 3805
         }
3806 3806
       });
3807 3807
   }
@@ -5031,7 +5031,7 @@ export class FuwutaiComponent implements OnInit {
5031 5031
         this.rejectModalShow = false;
5032 5032
         this.showPromptModal("不受理", true, "", "");
5033 5033
       } else {
5034
-        this.msg.error('不受理失败');
5034
+        this.msg.error(result.msg || '不受理失败');
5035 5035
       }
5036 5036
     });
5037 5037
   }

+ 1 - 1
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -4515,7 +4515,7 @@ export class HushijiandanComponent implements OnInit {
4515 4515
           this.getBxlb(this.bxlbPageIndex);
4516 4516
           this.showPromptModal("评价", true, "");
4517 4517
         } else {
4518
-          this.showPromptModal("评价", false, "");
4518
+          this.showPromptModal("评价", false, data.msg);
4519 4519
         }
4520 4520
       });
4521 4521
   }