|
@@ -242,11 +242,11 @@ export default {
|
|
|
this.toastLoading(0, '加载中...', true);
|
|
this.toastLoading(0, '加载中...', true);
|
|
|
getVisitsDetailPerfectStoreByTaskId({
|
|
getVisitsDetailPerfectStoreByTaskId({
|
|
|
visitsId: this.visitsId,
|
|
visitsId: this.visitsId,
|
|
|
- taskId: this.$route.query.taskId,
|
|
|
|
|
|
|
+ taskIdList: this.$route.query.taskId,
|
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
|
this.toastLoading().clear();
|
|
this.toastLoading().clear();
|
|
|
- if (res.code == 200 && res.data) {
|
|
|
|
|
- this.formData = res.data;
|
|
|
|
|
|
|
+ if (res.code == 200 && res.data && res.data.length > 0) {
|
|
|
|
|
+ this.formData = res.data[0];
|
|
|
console.log(this.formData.taskPhotoRecognitionResult);
|
|
console.log(this.formData.taskPhotoRecognitionResult);
|
|
|
this.getSpanArr(this.formData.taskPhotoRecognitionResult);
|
|
this.getSpanArr(this.formData.taskPhotoRecognitionResult);
|
|
|
console.log(this.formData);
|
|
console.log(this.formData);
|