|
@@ -69,6 +69,11 @@ export default defineComponent({
|
|
|
|
|
|
const removeVisiable = ref(false);
|
|
|
const previewShow = ref(false);
|
|
|
+ const preivewItem = ref({
|
|
|
+ type: 'MUSIC',
|
|
|
+ content: props.item.musicId,
|
|
|
+ title: props.item.musicName
|
|
|
+ });
|
|
|
const onDetail = () => {
|
|
|
// const origin = /(localhost|192)/.test(location.host)
|
|
|
// ? 'https://dev.kt.colexiu.com'
|
|
@@ -76,6 +81,7 @@ export default defineComponent({
|
|
|
// const src = `${origin}/instrument?platform=pc&modelType=practise&id=${props.item.musicId}&Authorization=${userStore.getToken}`;
|
|
|
// window.open(src, '_blank');
|
|
|
// console.log(props.item, 'item');
|
|
|
+ // console.log(props.item, '1212');
|
|
|
previewShow.value = true;
|
|
|
};
|
|
|
|
|
@@ -147,7 +153,7 @@ export default defineComponent({
|
|
|
if (props.isDisabled) {
|
|
|
return;
|
|
|
}
|
|
|
- onDetail;
|
|
|
+ onDetail();
|
|
|
}}>
|
|
|
{props.item.trainingType === 'EVALUATION'
|
|
|
? '评测模式'
|
|
@@ -284,7 +290,10 @@ export default defineComponent({
|
|
|
</NSpace>
|
|
|
)}
|
|
|
|
|
|
- {props.isDisabled && !props.isCLassWork ? (
|
|
|
+ {/* 只有评测的时候才有 */}
|
|
|
+ {props.isDisabled &&
|
|
|
+ !props.isCLassWork &&
|
|
|
+ props.item.trainingType === 'EVALUATION' ? (
|
|
|
<>
|
|
|
<NSpace size={6}>
|
|
|
<n-button
|
|
@@ -308,7 +317,7 @@ export default defineComponent({
|
|
|
class={styles.operation}
|
|
|
onClick={(e: MouseEvent) => {
|
|
|
e.stopPropagation();
|
|
|
- removeVisiable.value = true;
|
|
|
+ onDetail();
|
|
|
}}>
|
|
|
<NTooltip showArrow={false}>
|
|
|
{{
|
|
@@ -379,11 +388,7 @@ export default defineComponent({
|
|
|
|
|
|
<CardPreview
|
|
|
v-model:show={previewShow.value}
|
|
|
- item={{
|
|
|
- type: 'MUSIC',
|
|
|
- content: props.item.musicId,
|
|
|
- title: props.item.musicName
|
|
|
- }}
|
|
|
+ item={preivewItem.value}
|
|
|
/>
|
|
|
|
|
|
<NModal
|