Browse Source

组合科目、总分时,隐藏举一反三

wangguoxi 1 tháng trước cách đây
mục cha
commit
f86026619e
2 tập tin đã thay đổi với 14 bổ sung10 xóa
  1. 2 1
      src/App.vue
  2. 12 9
      src/views/analysisReport/studentPage/mainPage.vue

+ 2 - 1
src/App.vue

@@ -18,7 +18,7 @@ export default {
     },
     methods: {
         SubmitLogin() {
-            const username = '376050cy_xiyanzuo_1';
+            const username = '500072347220704';
             const password = '123456';
             // const type = '1';
             const schoolType = sessionStorage.getItem('schoolType');
@@ -29,6 +29,7 @@ export default {
             user.loginEmailPass({
                 username: username,
                 password: encrypt(password),
+                deviceType: 'PC',
             }).then((res) => {
                 if (res.code === 200) {
                     this.$store.dispatch("user/CLEAR_LOCAL_STORAGE");//清空本地存储

+ 12 - 9
src/views/analysisReport/studentPage/mainPage.vue

@@ -24,13 +24,13 @@
                         @click="downloadWrongQuestions(1)">下载个性化提升手册</el-button>
                 </template>
                 <template v-if="isShowExportBtns">
-                    <el-button size="medium"  @click="ExportQuestions" type="primary" class="export_btn">
+                    <el-button size="medium" @click="ExportQuestions" type="primary" class="export_btn">
                         <i class="iconfont icon_export"></i> 导出精准提升试题
                     </el-button>
                 </template>
                 <el-button v-if="showOneStudOneCase && activeBtn === pathFourth" size="medium" type="primary"
                     @click="EditOneStudOneCase" style="width: 96px;">{{
-                        !isEditOneStudOneCase ? `${stuCaseIsEdited ? '编辑' : '开始编辑'}` : `${stuCaseIsEdited ? '重新提交':'提交'}`
+                        !isEditOneStudOneCase ? `${stuCaseIsEdited ? '编辑' : '开始编辑'}` : `${stuCaseIsEdited ? '重新提交' : '提交'}`
                     }}</el-button>
                 <!-- <el-button v-if="isShowPadfBtn" style="margin-left: 10px;" size="medium" type="primary" :loading="stuPdfLoading" @click="StuDownloadPDF">下载PDF</el-button> -->
             </div>
@@ -45,20 +45,23 @@
                                 <button class="mm_btn mb_10" :class="{ active: activeBtn === pathOne }"
                                     @click="toPage(pathOne)">成绩分析</button>
                                 <!-- v-if="isShowKnowledgeButtons" -->
-                                <button class="mm_btn mb_10" :class="{ active: activeBtn === pathTwo }"
-                                    @click="toPage(pathTwo)">举一反三</button>
-                                <button v-if="!isTotalScore" class="mm_btn "
-                                    :class="{ active: activeBtn === pathThree }"
-                                    @click="toPage(pathThree)">个人画像</button>
+                                <template v-if="!isTotalScore">
+                                    <button class="mm_btn mb_10" :class="{ active: activeBtn === pathTwo }"
+                                        @click="toPage(pathTwo)">举一反三</button>
+
+                                    <button class="mm_btn " :class="{ active: activeBtn === pathThree }"
+                                        @click="toPage(pathThree)">个人画像</button>
+                                </template>
                                 <button class="mm_btn" v-if="showOneStudOneCase"
                                     :class="{ active: activeBtn === pathFourth }"
                                     @click="toPage(pathFourth)">一生一案</button>
                                 <button class="mm_btn" :class="{ active: activeBtn === pathFive }"
-                                    @click="toPage(pathFive)">报告打印</button>    
+                                    @click="toPage(pathFive)">报告打印</button>
                             </div>
                             <!-- 520929546006958081 -->
                             <div class="right">
-                                <div class="page_filter" ref="filterContent" v-if="activeBtn != pathFourth && activeBtn != pathFive">
+                                <div class="page_filter" ref="filterContent"
+                                    v-if="activeBtn != pathFourth && activeBtn != pathFive">
                                     <FiltersItem :filtersData="filteredFilterData" @selectItem="ChangeFilters">
                                     </FiltersItem>
                                 </div>