yuwandanmian 1 år sedan
förälder
incheckning
eb2bba2a1c

+ 7 - 0
src/router/index.js

@@ -128,6 +128,13 @@ export const constantRoutes = [
         hidden: true, //不在导航栏展示
         hidden: true, //不在导航栏展示
         meta: { title: '总排名' },
         meta: { title: '总排名' },
       },
       },
+      {
+        path: '/defectProblem',
+        name: 'DefectProblem',
+        component: () => import('@/views/data/frontHome/defectProblem'),
+        hidden: true, //不在导航栏展示
+        meta: { title: '缺陷问题' },
+      },
       {
       {
         path: '/codeList',
         path: '/codeList',
         name: 'codeList',
         name: 'codeList',

+ 15 - 0
src/views/data/frontHome/defectProblem.vue

@@ -0,0 +1,15 @@
+<template>
+  <div>
+    123
+  </div>
+</template>
+
+<script>
+  export default {
+    
+  }
+</script>
+
+<style lang="scss" scoped>
+
+</style>

+ 12 - 3
src/views/data/frontHome/index.vue

@@ -139,7 +139,12 @@
       </div>
       </div>
     </div>
     </div>
     <div class="cardBox">
     <div class="cardBox">
-      <Title :title="'缺陷问题'" />
+      <div style="margin-bottom: 13px;">
+        <el-button-group>
+          <el-button style="background-color: #409EFF;color:#fff;">缺陷问题(前十)</el-button>
+          <el-button @click="toPage">缺陷问题</el-button>
+        </el-button-group>
+      </div>
       <el-select v-model="formData.problem" filterable placeholder="请选择" style="margin-right: 20px">
       <el-select v-model="formData.problem" filterable placeholder="请选择" style="margin-right: 20px">
         <el-option v-for="(item, index) in departmentList" :label="item.name" :value="item.id" :key="index"></el-option>
         <el-option v-for="(item, index) in departmentList" :label="item.name" :value="item.id" :key="index"></el-option>
       </el-select>
       </el-select>
@@ -558,6 +563,10 @@ export default {
     this.chart1.resize()
     this.chart1.resize()
   },
   },
   methods: {
   methods: {
+    // 缺陷问题
+    toPage() {
+      this.$router.push({ path: '/defectProblem' })
+    },
     // 点击缺陷病案
     // 点击缺陷病案
     funGototo(){
     funGototo(){
       this.storageSet('endTime', this.formData.endTime || '');
       this.storageSet('endTime', this.formData.endTime || '');
@@ -1589,7 +1598,7 @@ export default {
             margin: 0 11px 0 0;
             margin: 0 11px 0 0;
             .icon {
             .icon {
               width: 18px;
               width: 18px;
-              margin: 12px;
+              margin: 12px 0;
             }
             }
             .con {
             .con {
               font-size: 12px;
               font-size: 12px;
@@ -1601,7 +1610,7 @@ export default {
               font-size: 16px;
               font-size: 16px;
               font-weight: bold;
               font-weight: bold;
               color: #185da6;
               color: #185da6;
-              margin: 0 0 0 15px;
+              margin: 0 0 0 8px;
             }
             }
           }
           }
         }
         }