|
@@ -421,10 +421,10 @@ export const handleChangeSection = () => {
|
|
const formateSelectMearure = (_list: any[]): any[] => {
|
|
const formateSelectMearure = (_list: any[]): any[] => {
|
|
if (!_list.length) return [];
|
|
if (!_list.length) return [];
|
|
const list = _list.sort((a, b) => a.time - b.time);
|
|
const list = _list.sort((a, b) => a.time - b.time);
|
|
- const startXml = list[0]?.MeasureNumberXML;
|
|
|
|
- const endXml = list.last()?.MeasureNumberXML;
|
|
|
|
- const selectStartMeasure = state.times.filter((n: any) => startXml === n.MeasureNumberXML) || [];
|
|
|
|
- const selectEndMeasure = state.times.filter((n: any) => endXml === n.MeasureNumberXML) || [];
|
|
|
|
|
|
+ const startXml = list[0]?.measureOpenIndex;
|
|
|
|
+ const endXml = list.last()?.measureOpenIndex;
|
|
|
|
+ const selectStartMeasure = state.times.filter((n: any) => startXml === n.measureOpenIndex) || [];
|
|
|
|
+ const selectEndMeasure = state.times.filter((n: any) => endXml === n.measureOpenIndex) || [];
|
|
// 没有找到选段小节
|
|
// 没有找到选段小节
|
|
if (!selectStartMeasure.length || !selectEndMeasure.length) {
|
|
if (!selectStartMeasure.length || !selectEndMeasure.length) {
|
|
clearSelection();
|
|
clearSelection();
|