Kaynağa Gözat

常规训练

周玉佂 1 hafta önce
ebeveyn
işleme
c3456fa8a7

+ 4 - 4
src/views/tester/components/RehabilitationEvaluation/CognitiveAbilityTask/CognitiveAbilityTaskVisualTraining/components/wordMap/index.vue

@@ -259,10 +259,10 @@ onMounted(() => {
         showScoreArea.value = false
         scoreIndex.value = -1
         tipsFlag.value = false
-        VoiceImpRef.value.videoPlay(
-          'Speech-Auditory',
-          `static/voice/cognitiveAbility/SpeechTraining/Auditory/WordImgMatching/${TopicsVal.value[currentIndex.value].correct}.mp3`
-        )
+        // VoiceImpRef.value.videoPlay(
+        //   'Speech-Auditory',
+        //   `static/voice/cognitiveAbility/SpeechTraining/Auditory/WordImgMatching/${TopicsVal.value[currentIndex.value].correct}.mp3`
+        // )
         localStorage.removeItem('tow-win-auditory-word-img-matching-show-topics')
       }
 

+ 8 - 8
src/views/tester/components/RehabilitationEvaluation/CognitiveAbilityTask/CognitiveAbilityTaskVisualTraining/components/wordWord/index.vue

@@ -197,18 +197,18 @@ onMounted(() => {
         showTopics.value = true
         currentIndex.value = Number(val.newValue!)
         useClickIndex.value = -1
-        VoiceImpRef.value.videoPlay(
-          'Speech-Auditory',
-          `static/voice/cognitiveAbility/SpeechTraining/Auditory/SentenceImgMatching/${TopicsVal.value[currentIndex.value].correct}.mp3`
-        )
+        // VoiceImpRef.value.videoPlay(
+        //   'Speech-Auditory',
+        //   `static/voice/cognitiveAbility/SpeechTraining/Auditory/SentenceImgMatching/${TopicsVal.value[currentIndex.value].correct}.mp3`
+        // )
         localStorage.removeItem('tow-win-auditory-sentence-img-matching-show-topics')
       }
 
       if (val.key === 'two-win-auditory-sentence-img-matching-item-check') {
-        VoiceImpRef.value.videoPlay(
-          'Speech-Auditory',
-          `static/voice/cognitiveAbility/SpeechTraining/Auditory/SentenceImgMatching/${val.newValue}.mp3`
-        )
+        // VoiceImpRef.value.videoPlay(
+        //   'Speech-Auditory',
+        //   `static/voice/cognitiveAbility/SpeechTraining/Auditory/SentenceImgMatching/${val.newValue}.mp3`
+        // )
         localStorage.removeItem('two-win-auditory-sentence-img-matching-item-check')
       }
 

+ 3 - 1
src/views/tester/components/RehabilitationEvaluation/CognitiveAbilityTask/CognitiveAbilityTaskVisualTraining/index.vue

@@ -232,12 +232,13 @@ const modeSelectFn = useThrottleFn((mode: number, flag: number = 0) => {
 })
 
 const startTask = useThrottleFn(() => {
+  let tempIndex = checkItems.value.findIndex((item: CheckItem) => item.active && !item.isTraining && !item.isFinish)
+
   if (modeSelect.value === 0) {
     checkItems.value[modeCurrentIndex].isTraining = true
   } else {
     // let tempIndex = checkItems.value.findIndex((item: CheckItem) => item.active && !item.isTraining && !item.isFinish)
     // checkItems.value[tempIndex].isTraining = true
-    let tempIndex = checkItems.value.findIndex((item: CheckItem) => item.active && !item.isTraining && !item.isFinish)
     console.log(tempIndex, 'tempIndex241')
     checkItems.value.forEach((item, index) => {
       item.isTraining = tempIndex === index
@@ -245,6 +246,7 @@ const startTask = useThrottleFn(() => {
   }
   taskBegin.value = true
   if (!isMainWin.value) {
+    console.log(tempIndex, 'tempIndex248')
     localStorage.setItem('two-win-auditory-task-begin', 'YES')
   }
 })