소스 검색

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

zhujindu 8 시간 전
부모
커밋
1bf848d5b0
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' ||