|
@@ -310,12 +310,13 @@ export default defineComponent({
|
|
|
});
|
|
|
|
|
|
// 判断是否可转谱 - 为空也可以转谱
|
|
|
- const checkConverTible = (isConvertibleScore: any) => {
|
|
|
+ const checkConverTible = (isConvertibleScore: any, scoreType: string) => {
|
|
|
if (
|
|
|
isConvertibleScore ||
|
|
|
isConvertibleScore === '' ||
|
|
|
isConvertibleScore === undefined ||
|
|
|
- isConvertibleScore === null
|
|
|
+ isConvertibleScore === null ||
|
|
|
+ (['JIAN', 'FIRST'].includes(scoreType) && !isConvertibleScore)
|
|
|
) {
|
|
|
return true;
|
|
|
} else {
|
|
@@ -386,7 +387,10 @@ export default defineComponent({
|
|
|
];
|
|
|
// 首调 固定调 并且 不显示可转谱 则不显示五线谱
|
|
|
if (
|
|
|
- !(['JIAN', 'FIRST'].includes(scoreType) && isConvertibleScore === false)
|
|
|
+ !(
|
|
|
+ ['JIAN', 'FIRST'].includes(scoreType) && isConvertibleScore === false
|
|
|
+ ) &&
|
|
|
+ !(isConvertibleScore === undefined || isConvertibleScore === null)
|
|
|
) {
|
|
|
action.unshift({
|
|
|
value: 'staff',
|
|
@@ -465,7 +469,7 @@ export default defineComponent({
|
|
|
? 'first'
|
|
|
: 'first';
|
|
|
data.showMusicImg = musicImgType;
|
|
|
- data.showTransBtn = checkConverTible(isConvertibleScore);
|
|
|
+ data.showTransBtn = checkConverTible(isConvertibleScore, scoreType);
|
|
|
}
|
|
|
};
|
|
|
|
|
@@ -550,7 +554,7 @@ export default defineComponent({
|
|
|
? 'first'
|
|
|
: 'first';
|
|
|
data.showMusicImg = musicImgType;
|
|
|
- data.showTransBtn = checkConverTible(isConvertibleScore);
|
|
|
+ data.showTransBtn = checkConverTible(isConvertibleScore, scoreType);
|
|
|
};
|
|
|
watch(
|
|
|
() => data.listActive,
|