Parcourir la source

feature_20260121_陈列奖励案任务复制暂

zhujindu il y a 2 jours
Parent
commit
3feaf33a0f
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      src/views/deviceWithin/taskPhotoTaking.vue

+ 2 - 0
src/views/deviceWithin/taskPhotoTaking.vue

@@ -163,6 +163,7 @@ export default {
       }
     },
     getSpanArr(data) {
+      if (!data) return;
       this.spanArr = []; // tip: 后台获取完成数据后,一定要重置spanArr=[],避免出现合并混乱!!!!!
       for (let i = 0; i < data.length; i++) {
         // 当为第一行时
@@ -211,6 +212,7 @@ export default {
     },
     openDialog(item) {
       this.vanPopup = true;
+      console.log(item);
       this.getSpanArr(item.taskPhotoRecognitionResult);
       this.$nextTick(() => {
         console.log(this.spanArr);