|
@@ -2073,20 +2073,10 @@ watch(
|
|
|
measureNum = nextMeasureNum
|
|
|
}
|
|
|
if (measureNum >= 0 && (measureNum === state.activeMeasureIndex || (measureNum < state.activeMeasureIndex && nextMeasureNum > state.activeMeasureIndex))) {
|
|
|
- if (state.isCbsView) {
|
|
|
- item.querySelector('.vf-custom-bg')?.setAttribute("fill", "#FFF6E1")
|
|
|
- } else {
|
|
|
- item.querySelector('.vf-custom-bg')?.setAttribute("fill", "#132D4C")
|
|
|
- item.querySelector('.vf-custom-bot')?.setAttribute("fill", "#040D1E")
|
|
|
- }
|
|
|
+ item.querySelector('.vf-custom-bg')?.setAttribute("fill", "rgba(9,159,255,0.15)")
|
|
|
// 预备小节
|
|
|
if(state.sectionFirst && measureNum === state.sectionFirst.MeasureNumberXML && state.section.length === 2){
|
|
|
- if (state.isCbsView) {
|
|
|
- item?.querySelector('.vf-custom-bg')?.setAttribute("fill", "#E3F1FF")
|
|
|
- } else {
|
|
|
- item?.querySelector('.vf-custom-bg')?.setAttribute("fill", "#71B8BD")
|
|
|
- item?.querySelector('.vf-custom-bot')?.setAttribute("fill", "#448F9C")
|
|
|
- }
|
|
|
+ item?.querySelector('.vf-custom-bg')?.setAttribute("fill", "rgba(255,193,48,0.15)")
|
|
|
}
|
|
|
} else {
|
|
|
// 有选段只清除选段处的
|
|
@@ -2099,34 +2089,17 @@ watch(
|
|
|
rightMeasureNumberXML = state.section[0].MeasureNumberXML
|
|
|
}
|
|
|
if(measureNum >= leftMeasureNumberXML && measureNum <= rightMeasureNumberXML){
|
|
|
- if (!state.isCbsView) {
|
|
|
- item.querySelector('.vf-custom-bg')?.setAttribute("fill", "#609FCF")
|
|
|
- item.querySelector('.vf-custom-bot')?.setAttribute("fill", "#2B70A5")
|
|
|
- } else {
|
|
|
- item.querySelector('.vf-custom-bg')?.setAttribute("fill", 'transparent')
|
|
|
- }
|
|
|
+ item.querySelector('.vf-custom-bg')?.setAttribute("fill", 'transparent')
|
|
|
}
|
|
|
if (measureNum >= leftMeasureNumberXML && measureNum <= rightMeasureNumberXML) {
|
|
|
- if (state.isCbsView) {
|
|
|
- item.querySelector('.vf-custom-bg')?.setAttribute("fill", "rgba(255,246,225,0.5)")
|
|
|
- }
|
|
|
+ item.querySelector('.vf-custom-bg')?.setAttribute("fill", "rgba(9,159,255,0.15)")
|
|
|
}
|
|
|
// 预备小节
|
|
|
if(state.sectionFirst && measureNum === state.sectionFirst.MeasureNumberXML){
|
|
|
- if (state.isCbsView) {
|
|
|
- item?.querySelector('.vf-custom-bg')?.setAttribute("fill", "#E3F1FF")
|
|
|
- } else {
|
|
|
- item?.querySelector('.vf-custom-bg')?.setAttribute("fill", "#71B8BD")
|
|
|
- item?.querySelector('.vf-custom-bot')?.setAttribute("fill", "#448F9C")
|
|
|
- }
|
|
|
+ item?.querySelector('.vf-custom-bg')?.setAttribute("fill", "rgba(255,193,48,0.15)")
|
|
|
}
|
|
|
} else {
|
|
|
- if (!state.isCbsView) {
|
|
|
- item.querySelector('.vf-custom-bg')?.setAttribute("fill", "#609FCF")
|
|
|
- item.querySelector('.vf-custom-bot')?.setAttribute("fill", "#2B70A5")
|
|
|
- } else {
|
|
|
- item.querySelector('.vf-custom-bg')?.setAttribute("fill", 'transparent')
|
|
|
- }
|
|
|
+ item.querySelector('.vf-custom-bg')?.setAttribute("fill", 'transparent')
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -2161,35 +2134,18 @@ watch(
|
|
|
}
|
|
|
// 小于选中置灰
|
|
|
if (measureNum < leftMeasureNumberXML) {
|
|
|
- if (!state.isCbsView) {
|
|
|
- item.querySelector('.vf-custom-bg')?.setAttribute("fill", "rgba(96,159,207,0.5)")
|
|
|
- item.querySelector('.vf-custom-bot')?.setAttribute("fill", "rgba(43,112,165,0.5)")
|
|
|
- } else {
|
|
|
- item.querySelector('.vf-custom-bg')?.setAttribute("fill", 'transparent')
|
|
|
- }
|
|
|
+ item.querySelector('.vf-custom-bg')?.setAttribute("fill", 'transparent')
|
|
|
}
|
|
|
// 大于选中置灰
|
|
|
if(measureNum > rightMeasureNumberXML){
|
|
|
- if (!state.isCbsView) {
|
|
|
- item.querySelector('.vf-custom-bg')?.setAttribute("fill", "rgba(96,159,207,0.5)")
|
|
|
- item.querySelector('.vf-custom-bot')?.setAttribute("fill", "rgba(43,112,165,0.5)")
|
|
|
- } else {
|
|
|
- item.querySelector('.vf-custom-bg')?.setAttribute("fill", 'transparent')
|
|
|
- }
|
|
|
+ item.querySelector('.vf-custom-bg')?.setAttribute("fill", 'transparent')
|
|
|
}
|
|
|
if (measureNum >= leftMeasureNumberXML && measureNum <= rightMeasureNumberXML) {
|
|
|
- if (state.isCbsView) {
|
|
|
- item.querySelector('.vf-custom-bg')?.setAttribute("fill", "rgba(255,246,225,0.5)")
|
|
|
- }
|
|
|
+ item.querySelector('.vf-custom-bg')?.setAttribute("fill", "rgba(9,159,255,0.15)")
|
|
|
}
|
|
|
// 预备小节
|
|
|
if(state.sectionFirst && measureNum === state.sectionFirst.MeasureNumberXML){
|
|
|
- if (state.isCbsView) {
|
|
|
- item?.querySelector('.vf-custom-bg')?.setAttribute("fill", "#E3F1FF")
|
|
|
- } else {
|
|
|
- item?.querySelector('.vf-custom-bg')?.setAttribute("fill", "#71B8BD")
|
|
|
- item?.querySelector('.vf-custom-bot')?.setAttribute("fill", "#448F9C")
|
|
|
- }
|
|
|
+ item?.querySelector('.vf-custom-bg')?.setAttribute("fill", "rgba(255,193,48,0.15)")
|
|
|
}
|
|
|
})
|
|
|
}else{
|
|
@@ -2208,20 +2164,9 @@ watch(
|
|
|
measureNum = nextMeasureNum
|
|
|
}
|
|
|
if (measureNum >= 0 && (measureNum === state.activeMeasureIndex || (measureNum < state.activeMeasureIndex && nextMeasureNum > state.activeMeasureIndex)) ) {
|
|
|
- if (state.isCbsView) {
|
|
|
- item.querySelector('.vf-custom-bg')?.setAttribute("fill", "transparent")
|
|
|
- } else {
|
|
|
- item.querySelector('.vf-custom-bg')?.setAttribute("fill", "#132D4C")
|
|
|
- item.querySelector('.vf-custom-bot')?.setAttribute("fill", "#040D1E")
|
|
|
- }
|
|
|
+ item.querySelector('.vf-custom-bg')?.setAttribute("fill", "rgba(9,159,255,0.15)")
|
|
|
} else {
|
|
|
- if (state.isCbsView) {
|
|
|
- item.querySelector('.vf-custom-bg')?.setAttribute("fill", "transparent")
|
|
|
- } else {
|
|
|
- item.querySelector('.vf-custom-bg')?.setAttribute("fill", "#609FCF")
|
|
|
- item.querySelector('.vf-custom-bot')?.setAttribute("fill", "#2B70A5")
|
|
|
- }
|
|
|
-
|
|
|
+ item.querySelector('.vf-custom-bg')?.setAttribute("fill", "transparent")
|
|
|
}
|
|
|
})
|
|
|
}
|