shilipojs пре 2 година
родитељ
комит
020299373a

+ 2 - 1
src/router/index.js

@@ -696,7 +696,8 @@ export const constantRoutes = [{
         component: (resolve) => require(['@/views/career/bigdataSelectCourse/iframePaper'], resolve),
         name: '',
         meta: {
-          title: 'ceshi'
+          title: 'ceshi',
+          parentPath: '/new-gaokao/bigdataSelectCourse/personalSelectCourseReport'
         }
       },
       {

+ 15 - 1
src/views/accurateTeaching/main.vue

@@ -17,7 +17,7 @@
         </el-row>
       </index-card>
       <index-card title="资源库" class="mt20 index-block">
-        <mx-image-wrap :list="library" titleClass="text-white" titlePostion="left"></mx-image-wrap>
+        <mx-image-wrap :list="libraryFormatList" titleClass="text-white" titlePostion="left"></mx-image-wrap>
       </index-card>
     </div>
   </div>
@@ -103,6 +103,20 @@ export default {
           path:item.path,
         }
       })
+    },
+    libraryFormatList(){
+      if(!this.middlebarRouters.length) return []
+      const listOptKey = Object.keys(this.listOpt)
+      let formatList = []
+      return this.middlebarRouters.filter((item) =>{
+        return this.library.findIndex(lib => lib.title == item.meta.title) != -1
+      }).map((item,idx) => {
+        return {
+          title: item.meta.title,
+          img:this.library[idx].img,
+          path:this.library.find(lib => lib.title == item.meta.title ).path,
+        }
+      })
     }
   },
   methods: {

+ 1 - 1
src/views/evaluating/main.vue

@@ -47,7 +47,7 @@
         </el-row>
       </index-card>
       <index-card title="学情报告" class="mt20 index-block">
-        <el-button type="primary">查看报告</el-button>
+        <el-button type="primary" @click="$router.push('/elective/report/test?path=https%3A%2F%2Fonline.fliphtml5.com%2Fjkrou%2Fybov%2F')">查看报告</el-button>
       </index-card>
     </div>
   </div>

+ 1 - 1
src/views/questioncenter/components/main-card/mx-image-wrap.vue

@@ -1,6 +1,6 @@
 <template>
   <el-row :gutter="20">
-    <el-col class="relative" :class="item.path ? 'pointer' : ''" :span="24/list.length" v-for="item in list" @click.native="navigator(item.path)">
+    <el-col class="relative" :class="item.path ? 'pointer' : ''" :span="8" v-for="item in list" @click.native="navigator(item.path)">
       <img  style="width:100%" :src="item.img"/>
       <p class="bold" v-if="titlePostion == 'other'" :class="[titlePostion]">{{ item.title }}</p>
       <p class="absolute bold" v-else :class="[titlePostion,titleClass]">{{ item.title }}</p>