Jelajahi Sumber

控制一生一案菜单显示隐藏

liurongli 2 bulan lalu
induk
melakukan
a3e32471c3

+ 4 - 1
src/views/analysisReport/studentPage/mainPage.vue

@@ -41,7 +41,7 @@
                                 <!-- <button v-if="!isTotalScore" class="mm_btn mb_10"
                                     :class="{ active: activeBtn === pathThree }"
                                     @click="toPage(pathThree)">个人画像</button> -->
-                                <button class="mm_btn" v-if="isShowKnowledgeButtons" :class="{ active: activeBtn === pathFourth }" @click="toPage(pathFourth)">一生一案</button>    
+                                <button class="mm_btn" v-if="showOneStudOneCase" :class="{ active: activeBtn === pathFourth }" @click="toPage(pathFourth)">一生一案</button>    
                             </div>
 
                             <div class="right">
@@ -116,6 +116,9 @@ export default {
         },
         canBtnClick() {
             return this.$store.state.question.canDownloanBtnClick;
+        },
+        showOneStudOneCase(){//是否开启了一生一案显示
+            return this.$store.state.report.examSelectItem.oneStudOneCase
         }
     },
     data() {

+ 1 - 0
src/views/analysisReport/studentPage/studentCase/mainPage.vue

@@ -101,6 +101,7 @@ export default {
         position: relative;
         .module_common_title{
             position: absolute;
+            z-index: 2;
             left: 0;
             top: 0;
             font-weight: 600;