浏览代码

周期统计点击跳转

wangziqian 5 年之前
父节点
当前提交
bc6224728d

+ 0 - 3
src/views/projectManage/projectList/css/index.css

@@ -48,9 +48,6 @@
 .bgborder .rotate {
 .bgborder .rotate {
   transform: rotate(270deg);
   transform: rotate(270deg);
 }
 }
-.bgborder .el-tabs__nav-wrap::after {
-  background-color: #FFFFFF !important;
-}
 
 
 .bgborder .el-row .el-col {
 .bgborder .el-row .el-col {
   margin: 10px 0;
   margin: 10px 0;

+ 13 - 1
src/views/quality/components/developmentCycle.vue

@@ -1,7 +1,7 @@
 <template>
 <template>
   <section>
   <section>
     <div class="chart-contain">
     <div class="chart-contain">
-      <normal-echart v-if="echartsOption" :chart-id="id" :option="echartsOption" />
+      <normal-echart v-if="echartsOption" :chart-id="id" :option="echartsOption" @onClick="toLink" />
     </div>
     </div>
   </section>
   </section>
 </template>
 </template>
@@ -20,6 +20,11 @@ export default {
       type: Array,
       type: Array,
       default: () => [],
       default: () => [],
       required: false
       required: false
+    },
+    type: {
+      type: String,
+      default: '',
+      required: false
     }
     }
   },
   },
   data() {
   data() {
@@ -86,6 +91,13 @@ export default {
           }
           }
         }]
         }]
       }
       }
+    },
+    toLink(params) {
+      if (this.type === 'require') {
+        this.$router.push({ name: '需求详情', query: { id: params.data[2] }})
+      } else if (this.type === 'task') {
+        this.$router.push({ name: '任务详情', query: { id: params.data[2] }})
+      }
     }
     }
   }
   }
 }
 }

+ 3 - 3
src/views/quality/requireStatistics.vue

@@ -136,7 +136,7 @@
           <i class="el-icon-warning-outline" />
           <i class="el-icon-warning-outline" />
           <span>仅统计状态已变更“已排期”且排期不为空的需求;横坐标表示需求交付日期,纵坐标代表研发交付周期(研发、联调、上线类型排期的总周期)</span>
           <span>仅统计状态已变更“已排期”且排期不为空的需求;横坐标表示需求交付日期,纵坐标代表研发交付周期(研发、联调、上线类型排期的总周期)</span>
         </div>
         </div>
-        <development-cycle :chart-data="developmentCycleData" />
+        <development-cycle :chart-data="developmentCycleData" type="require" />
       </div>
       </div>
       <div class="chart-item">
       <div class="chart-item">
         <h3>需求分布图</h3>
         <h3>需求分布图</h3>
@@ -463,7 +463,7 @@ export default {
   .defect-main {
   .defect-main {
     padding: 20px 20px 0 20px;
     padding: 20px 20px 0 20px;
     height:100%;
     height:100%;
-    width:calc(100%-10px);
+    width:auto;
     background:#ffffff;
     background:#ffffff;
     margin: 10px;
     margin: 10px;
     border-radius: 4px;
     border-radius: 4px;
@@ -578,7 +578,7 @@ export default {
 }
 }
 .charts-main {
 .charts-main {
   padding-bottom: 20px;
   padding-bottom: 20px;
-  width:calc(100%-10px);
+  width:auto;
   background:#ffffff;
   background:#ffffff;
   margin: 10px;
   margin: 10px;
   border-radius: 4px;
   border-radius: 4px;

+ 3 - 3
src/views/quality/taskStatistics.vue

@@ -128,7 +128,7 @@
           <i class="el-icon-warning-outline" />
           <i class="el-icon-warning-outline" />
           <span>仅统计状态已变更“已排期”且排期不为空的任务;横坐标表示任务交付日期,纵坐标代表研发交付周期(研发、联调、上线类型排期的总周期)</span>
           <span>仅统计状态已变更“已排期”且排期不为空的任务;横坐标表示任务交付日期,纵坐标代表研发交付周期(研发、联调、上线类型排期的总周期)</span>
         </div>
         </div>
-        <development-cycle :chart-data="developmentCycleData" />
+        <development-cycle :chart-data="developmentCycleData" type="task" />
       </div>
       </div>
       <div class="chart-item">
       <div class="chart-item">
         <h3>任务分布图</h3>
         <h3>任务分布图</h3>
@@ -487,7 +487,7 @@ export default {
   .defect-main {
   .defect-main {
     padding: 20px 20px 0 20px;
     padding: 20px 20px 0 20px;
     height:100%;
     height:100%;
-    width:calc(100%-10px);
+    width:auto;
     background:#ffffff;
     background:#ffffff;
     margin: 10px;
     margin: 10px;
     border-radius: 4px;
     border-radius: 4px;
@@ -602,7 +602,7 @@ export default {
 }
 }
 .charts-main {
 .charts-main {
   padding-bottom: 20px;
   padding-bottom: 20px;
-  width:calc(100%-10px);
+  width:auto;
   background:#ffffff;
   background:#ffffff;
   margin: 10px;
   margin: 10px;
   border-radius: 4px;
   border-radius: 4px;