فهرست منبع

feature_20251117_日报填写内容自定义配置

zhujindu 12 ساعت پیش
والد
کامیت
2057a93ccb
1فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 6 2
      src/views/week/reportCustom.vue

+ 6 - 2
src/views/week/reportCustom.vue

@@ -151,7 +151,9 @@ export default {
     filterIndex(index, subIndex) {
       let count = 0;
       for (let i = 0; i < index; i++) {
-        count += this.fromData[i].sfaReportCustomCollections.length;
+        count += this.fromData[i].sfaReportCustomCollections
+          ? this.fromData[i].sfaReportCustomCollections.length
+          : 0;
       }
       return count + subIndex;
     },
@@ -163,7 +165,9 @@ export default {
         for (let i = 0; i < fromData.length; i++) {
           let arr1 = fromData[i];
           let sfaReportCustomCollections = [];
-          let customData = fromData[i].sfaReportCustomCollections;
+          let customData = fromData[i].sfaReportCustomCollections
+            ? fromData[i].sfaReportCustomCollections
+            : [];
           for (let x = 0; x < customData.length; x++) {
             // sameDayWhetherVisit 2 未拜访
             if (customData[x].sameDayWhetherVisit != '2') {