MaiXinRong il y a 5 ans
Parent
commit
cf9e1129ca
1 fichiers modifiés avec 16 ajouts et 2 suppressions
  1. 16 2
      app/lib/rpt_data_analysis.js

+ 16 - 2
app/lib/rpt_data_analysis.js

@@ -1012,8 +1012,6 @@ const gatherSelectConverse = {
         table: ['mem_gather_stage_bills'],
     },
     _commonConverse: function (helper, data, count) {
-        console.log(count);
-        console.log(data);
         const result = [];
         const reg = new RegExp('^t_[0-9]+_');
         for (let i = 0; i < count; i++) {
@@ -1032,6 +1030,22 @@ const gatherSelectConverse = {
                 result.push(nd);
             }
         }
+        // for (const d of data) {
+        //     for (let i = 0; i < count; i++) {
+        //         const curReg = new RegExp('^t_' + i + '_');
+        //         const nd = {};
+        //         for (const prop in d) {
+        //             if (reg.test(prop)) {
+        //                 if (curReg.test(prop)) {
+        //                     nd[prop.replace(curReg, 't_')] = d[prop];
+        //                 }
+        //             } else {
+        //                 nd[prop] = d[prop];
+        //             }
+        //         }
+        //         result.push(nd);
+        //     }
+        // }
         return result;
     },
     fun: function (ctx, data, fieldsKey, options, csRela) {