|
@@ -2222,7 +2222,7 @@ export default {
|
|
|
}
|
|
|
let _this=this;
|
|
|
new Promise((resolve, reject) => {
|
|
|
- if (_this.detailsList.length >= 0) {
|
|
|
+ if (_this.detailsList.length > 0) {
|
|
|
//先上传备注图片
|
|
|
let formData = new window.FormData()
|
|
|
_this.detailsList.forEach((item, index) => {
|
|
@@ -2245,17 +2245,18 @@ export default {
|
|
|
resolve('NoPIC');
|
|
|
}
|
|
|
}).then((result)=>{
|
|
|
- this.axios.post('/api/v1/bms/addTruckDetail', map).then(res => {
|
|
|
- if (res.data.status == 'succeed') {
|
|
|
- this.$message.success('修改成功!')
|
|
|
- this.setteldAllselectValue = 0
|
|
|
- this.onclick()
|
|
|
- } else {
|
|
|
- this.$message.error(res.data.data)
|
|
|
- }
|
|
|
- this.showDetailsAdd = false
|
|
|
- this.isLoading = false
|
|
|
- })
|
|
|
+ console.log(result);
|
|
|
+ this.axios.post('/api/v1/bms/addTruckDetail', map).then(res => {
|
|
|
+ if (res.data.status == 'succeed') {
|
|
|
+ this.$message.success('修改成功!')
|
|
|
+ this.setteldAllselectValue = 0
|
|
|
+ this.onclick()
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.data.data)
|
|
|
+ }
|
|
|
+ this.showDetailsAdd = false
|
|
|
+ this.isLoading = false
|
|
|
+ })
|
|
|
});
|
|
|
}
|
|
|
},
|