|
|
@@ -294,7 +294,7 @@ export default {
|
|
|
this.taskPhotoRecognitionResult = item.taskPhotoRecognitionResult;
|
|
|
});
|
|
|
},
|
|
|
- async onSubmit() {
|
|
|
+ onSubmit() {
|
|
|
this.toastLoading(0, '提交中,请稍候...', true);
|
|
|
const taskPhoto = this.$refs.taskPhoto && this.$refs.taskPhoto[0];
|
|
|
let formData = {
|
|
|
@@ -317,14 +317,15 @@ export default {
|
|
|
};
|
|
|
if (this.userInfo.photoMethod == '1') {
|
|
|
formData.mediaInfos = [];
|
|
|
+ this.addCollection(formData);
|
|
|
} else {
|
|
|
this.mediaInfos = [];
|
|
|
this.syncUpload(taskPhoto.imgArr, () => {
|
|
|
this.toastLoading().clear();
|
|
|
formData.mediaInfos = this.mediaInfos;
|
|
|
+ this.addCollection(formData);
|
|
|
});
|
|
|
}
|
|
|
- await this.addCollection(formData);
|
|
|
},
|
|
|
syncUpload(imgArr, callback) {
|
|
|
if (!imgArr.length) {
|