Explorar o código

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

zhujindu hai 6 horas
pai
achega
1bf848d5b0
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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 reportCustomData = this.$refs.reportCustom ? this.$refs.reportCustom.fromData : {} || {};
       let reportCustomAnswers = [];
       let reportCustomAnswers = [];
       for (let i = 0; i < reportCustomData.length; i++) {
       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++) {
         for (let x = 0; x < customData.length; x++) {
           if (
           if (
             customData[x].reportCustomCollectionType == 'dx' ||
             customData[x].reportCustomCollectionType == 'dx' ||