Browse Source

feat: 报告修改

TIANYONG 2 months ago
parent
commit
66c7944933
1 changed files with 16 additions and 3 deletions
  1. 16 3
      src/page-instrument/report-new/index.tsx

+ 16 - 3
src/page-instrument/report-new/index.tsx

@@ -22,11 +22,24 @@ export default defineComponent({
 
     // 根据音符构造小节信息
     const createMeasureList = (notes: Array<any>) => {
-        let arr = [];
-        const preMeasureNumber = 1;
+        let measureList = [];
+        let addNum = 1;
+        const preMeasureIndex = 0;
         for (let index = 0; index < notes.length; index++) {
             const note = notes[index];
-            
+            const { measureRenderIndex, frequencyList, dontEvaluating, duration } = notes[index];
+            if (index === 0) {
+                measureList.push({
+                    MeasureNumberXML: measureRenderIndex + 1,
+                    frequencyList,
+                    duration: duration / 1000,
+                })
+            } else {
+
+            }
+            if ( measureRenderIndex ) {
+
+            }
         }
     }