liuzhihui 2 anos atrás
pai
commit
5438b6ab48

+ 6 - 4
CallCenterWeb.UI/RMYY/src/components/workOrder/dispatching/addOrEditDispatch.vue

@@ -1484,10 +1484,12 @@ export default {
1484 1484
           if (this.ruleForm.repairImageid === '') {
1485 1485
             this.ruleForm.repairImageid = ''
1486 1486
           } else {
1487
-            this.ruleForm.repairImageid = this.ruleForm.repairImageid.slice(
1488
-              0,
1489
-              this.ruleForm.repairImageid.length - 1
1490
-            )
1487
+            if(this.ruleForm.repairImageid[this.ruleForm.repairImageid.length-1] == ','){
1488
+              this.ruleForm.repairImageid = this.ruleForm.repairImageid.slice(
1489
+                0,
1490
+                this.ruleForm.repairImageid.length - 1
1491
+              )
1492
+            }        
1491 1493
           }
1492 1494
           var datas = {
1493 1495
             CallId: this.cid,

+ 7 - 4
CallCenterWeb.UI/RMYY/src/components/workOrder/repairbase/addRepairbase.vue

@@ -814,10 +814,12 @@ export default {
814 814
           if (this.ruleForm.repairImageid === '') {
815 815
             this.ruleForm.repairImageid = ''
816 816
           } else {
817
-            this.ruleForm.repairImageid = this.ruleForm.repairImageid.slice(
818
-              0,
819
-              this.ruleForm.repairImageid.length - 1
820
-            )
817
+            if(this.ruleForm.repairImageid[this.ruleForm.repairImageid.length-1] == ','){
818
+              this.ruleForm.repairImageid = this.ruleForm.repairImageid.slice(
819
+                0,
820
+                this.ruleForm.repairImageid.length - 1
821
+              )
822
+            }
821 823
           }
822 824
           if (this.iswomanage == 1) {
823 825
             this.ruleForm.assignDepart = ''
@@ -898,6 +900,7 @@ export default {
898 900
                         type: 'success',
899 901
                         duration: 500
900 902
                       })
903
+
901 904
                       this.$router.push({
902 905
                         path: '/orderManage/mySubmit'
903 906
                       })

+ 6 - 4
CallCenterWeb.UI/RMYY/src/views/faultRepairManagement/addRepairbase/index.vue

@@ -416,10 +416,12 @@ export default {
416 416
           if (this.ruleForm.repairImageid === '') {
417 417
             this.ruleForm.repairImageid = ''
418 418
           } else {
419
-            this.ruleForm.repairImageid = this.ruleForm.repairImageid.slice(
420
-              0,
421
-              this.ruleForm.repairImageid.length - 1
422
-            )
419
+            if(this.ruleForm.repairImageid[this.ruleForm.repairImageid.length-1] == ','){
420
+              this.ruleForm.repairImageid = this.ruleForm.repairImageid.slice(
421
+                0,
422
+                this.ruleForm.repairImageid.length - 1
423
+              )
424
+            }         
423 425
           }
424 426
           this.$refs.ruleForm.validate((valid) => {
425 427
             if (valid) {

+ 1 - 1
CallCenterWeb.UI/RMYY/src/views/login/index.vue

@@ -374,7 +374,7 @@
374 374
               if(res.state == 'success'){
375 375
                 this.$message.success('发送成功')
376 376
               }else{
377
-                this.$message.error('发送失败')
377
+                this.$message.error(res.message)
378 378
               }
379 379
             })
380 380
           })

+ 1 - 1
CallCenterWeb.UI/RMYYAPP/pages/login/login.vue

@@ -205,7 +205,7 @@
205 205
 					if(res.state == 'success'){
206 206
 					  this.$mHelper.toast('发送成功')
207 207
 					}else{
208
-					  this.$mHelper.toast('发送失败')
208
+					  this.$mHelper.toast(res.message)
209 209
 					}
210 210
 				})
211 211
 			},