|
@@ -157,10 +157,10 @@ export default {
|
|
|
// alert('图片上传完成:'+dayDiff+'s')
|
|
|
this.saveAllDate()
|
|
|
} else {//提交失败提示
|
|
|
- this.defaultWaring()
|
|
|
+ this.defaultWaring(res)
|
|
|
}
|
|
|
}).catch((err)=>{
|
|
|
- this.defaultWaring()
|
|
|
+ this.defaultWaring(res)
|
|
|
})
|
|
|
return;
|
|
|
} else {//没有图片直接保存数据
|
|
@@ -230,13 +230,14 @@ export default {
|
|
|
this.showType = 'success'
|
|
|
this.submit = true
|
|
|
} else {
|
|
|
- this.defaultWaring()
|
|
|
+ this.defaultWaring(res)
|
|
|
}
|
|
|
}).catch((err)=>{
|
|
|
- this.defaultWaring()
|
|
|
+ this.defaultWaring(res)
|
|
|
})
|
|
|
},
|
|
|
- defaultWaring(){
|
|
|
+ defaultWaring(res){
|
|
|
+ console.log(JSON.stringify(res))
|
|
|
this.$store.commit('handleToggleShow', false);
|
|
|
this.showType = 'fail'
|
|
|
this.submit = true
|