|
@@ -53,7 +53,7 @@ import Theory from './component/theory';
|
|
|
import InstrumentInfo from './component/instrument-info';
|
|
|
// import TempoPractice from '../../views/tempo-practice';
|
|
|
import SelectCoursewarePop from '@/components/select-courseware-pop';
|
|
|
-import { debounce } from "../../helpers/utils"
|
|
|
+import { debounce } from '../../helpers/utils';
|
|
|
import TempoItem from './component/tempo-item';
|
|
|
|
|
|
export default defineComponent({
|
|
@@ -323,6 +323,10 @@ export default defineComponent({
|
|
|
clearInterval(activeData.timer);
|
|
|
activeData.model = !ev.data.state;
|
|
|
}
|
|
|
+
|
|
|
+ if (ev.data?.api === 'clickTempo') {
|
|
|
+ setModelOpen();
|
|
|
+ }
|
|
|
};
|
|
|
|
|
|
onMounted(() => {
|
|
@@ -880,7 +884,7 @@ export default defineComponent({
|
|
|
|
|
|
// 加载新的章节里的课件
|
|
|
const loadNewCourseware = async (item: any) => {
|
|
|
- if( debounceSkip.value ) return;
|
|
|
+ if (debounceSkip.value) return;
|
|
|
debounceSkip.value = true;
|
|
|
data.itemList = [];
|
|
|
loadingClass.value = true;
|
|
@@ -1132,27 +1136,31 @@ export default defineComponent({
|
|
|
// />
|
|
|
)}
|
|
|
{m.type === 'THEORY' && <Theory id={m.bizId} />}
|
|
|
- {m.type === 'MUSIC_WIKI' && (
|
|
|
- <InstrumentInfo
|
|
|
- type={'wiki'}
|
|
|
- id={m.bizId}
|
|
|
- show={popupData.activeIndex === mIndex}
|
|
|
- />
|
|
|
- )}
|
|
|
- {m.type === 'INSTRUMENT' && (
|
|
|
- <InstrumentInfo
|
|
|
- type={'instrument'}
|
|
|
- id={m.bizId}
|
|
|
- show={popupData.activeIndex === mIndex}
|
|
|
- />
|
|
|
- )}
|
|
|
- {m.type === 'MUSICIAN' && (
|
|
|
- <InstrumentInfo
|
|
|
- type={'musician'}
|
|
|
- id={m.bizId}
|
|
|
- show={popupData.activeIndex === mIndex}
|
|
|
- />
|
|
|
- )}
|
|
|
+ {popupData.activeIndex === mIndex &&
|
|
|
+ <>
|
|
|
+ {m.type === 'MUSIC_WIKI' && (
|
|
|
+ <InstrumentInfo
|
|
|
+ type={'wiki'}
|
|
|
+ id={m.bizId}
|
|
|
+ show={popupData.activeIndex === mIndex}
|
|
|
+ />
|
|
|
+ )}
|
|
|
+ {m.type === 'INSTRUMENT' && (
|
|
|
+ <InstrumentInfo
|
|
|
+ type={'instrument'}
|
|
|
+ id={m.bizId}
|
|
|
+ show={popupData.activeIndex === mIndex}
|
|
|
+ />
|
|
|
+ )}
|
|
|
+ {m.type === 'MUSICIAN' && (
|
|
|
+ <InstrumentInfo
|
|
|
+ type={'musician'}
|
|
|
+ id={m.bizId}
|
|
|
+ show={popupData.activeIndex === mIndex}
|
|
|
+ />
|
|
|
+ )}
|
|
|
+ </>
|
|
|
+ }
|
|
|
</div>
|
|
|
) : (
|
|
|
<div
|