Преглед на файлове

Merge branch 'feature_20251117_日报填写内容自定义配置' into uat(dev)

zhujindu преди 1 ден
родител
ревизия
6020252a97
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      src/views/week/daily.vue

+ 3 - 1
src/views/week/daily.vue

@@ -905,7 +905,9 @@ export default {
       let reportCustomData = this.$refs.reportCustom ? this.$refs.reportCustom.fromData : {} || {};
       let reportCustomAnswers = [];
       for (let i = 0; i < reportCustomData.length; i++) {
-        let customData = reportCustomData[i].sfaReportCustomCollections;
+        let customData = reportCustomData[i].sfaReportCustomCollections
+          ? reportCustomData[i].sfaReportCustomCollections
+          : [];
         for (let x = 0; x < customData.length; x++) {
           if (
             customData[x].reportCustomCollectionType == 'dx' ||