Browse Source

研发质量

panxiandiao_i 5 years ago
parent
commit
9745597ac3
1 changed files with 30 additions and 26 deletions
  1. 30 26
      src/views/quality/qualityMeasurement.vue

+ 30 - 26
src/views/quality/qualityMeasurement.vue

@@ -440,11 +440,6 @@
                   label="免提测上线占比"
                   label="免提测上线占比"
                   align="center"
                   align="center"
                 />
                 />
-                <el-table-column
-                  prop="urgentPer"
-                  label="紧急上线占比"
-                  align="center"
-                />
                 <el-table-column
                 <el-table-column
                   prop="rollbackPer"
                   prop="rollbackPer"
                   align="center"
                   align="center"
@@ -452,7 +447,7 @@
                 />
                 />
               </el-table-column>
               </el-table-column>
             </el-table>
             </el-table>
-            <el-pagination style="margin-top:30px;" align="center" :current-page="curIndex" :page-sizes="[5, 10, 20]" :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper" :total="total" @size-change="handleSizeChange" @current-change="handleCurrentChange" />
+            <el-pagination class="pagination" align="center" :current-page="curIndex" :page-sizes="[5, 10, 20]" :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper" :total="total" @size-change="handleSizeChange" @current-change="handleCurrentChange" />
           </el-tab-pane>
           </el-tab-pane>
         </el-tabs>
         </el-tabs>
       </el-main>
       </el-main>
@@ -566,15 +561,23 @@ export default {
     },
     },
     // 标签页研发质量
     // 标签页研发质量
     handleClick() {
     handleClick() {
-      const pretermitSearch = { id: this.pauseId, startTime: this.timeInterval[0], endTime: this.timeInterval[1], page: this.curIndex, perPage: this.pageSize }
-      getHandlerCount(pretermitSearch).then((res) => {
-        if (res.code === 0) {
-          this.handlerData = res.data.data
-          this.total = res.data.total
-        } else {
-          this.errorFun(res.msg)
-        }
-      })
+      if (this.activeIndexSecondary === 'second') {
+        this.loadingOnlineProcess = true
+        const pretermitSearch = { id: this.pauseId, startTime: this.timeInterval[0], endTime: this.timeInterval[1], page: this.curIndex, perPage: this.pageSize }
+        getHandlerCount(pretermitSearch).then((res) => {
+          if (res.code === 0) {
+            this.handlerData = res.data.data
+            this.total = res.data.total
+          } else {
+            this.errorFun(res.msg)
+          }
+        })
+        this.loadingOnlineProcess = false
+      } else if (this.activeIndexSecondary === 'first') {
+        this.deleteAfter()
+      } else {
+        this.errorFun('获取数据失败')
+      }
     },
     },
     // 时间变化刷新页面
     // 时间变化刷新页面
     dataSearch() {
     dataSearch() {
@@ -606,10 +609,14 @@ export default {
     handleNodeClick(data) {
     handleNodeClick(data) {
       this.loadingOnlineProcess = true
       this.loadingOnlineProcess = true
       this.pauseTreeNode = data
       this.pauseTreeNode = data
+      this.pauseId = data.id
       this.pauseKey = data.type
       this.pauseKey = data.type
-      if (this.pauseKey === 3) {
+      if (this.pauseKey === 3 && this.activeIndexSecondary === 'first') {
         this.deleteAfter()
         this.deleteAfter()
         return
         return
+      } else if (this.pauseKey === 3 && this.activeIndexSecondary === 'second') {
+        this.handleClick()
+        return
       }
       }
       this.allCountAndProlemGet()
       this.allCountAndProlemGet()
     },
     },
@@ -669,16 +676,11 @@ export default {
       width 82.7%
       width 82.7%
       margin 0 0 2% 1.5%
       margin 0 0 2% 1.5%
       flex 0 1 auto !important
       flex 0 1 auto !important
-    .combine-table >>> li
-      width 65px
-      font-size 16px
-      margin-left 5px
-      padding 10px 0px 0px 0px
-    .combine-table >>> .el-menu
-      border-bottom 0px
-      margin -20px 0 15px 0
-    .combine-table >>> .is-active
-      font-weight bold
+    // .combine-table >>> li
+    //   width 65px
+    //   font-size 16px
+    //   margin-left 5px
+    //   padding 10px 0px 0px 0px
     .combine-table >>> th
     .combine-table >>> th
       background-color #fafafa !important
       background-color #fafafa !important
       font-size 10px
       font-size 10px
@@ -689,6 +691,8 @@ export default {
       justify-content space-between
       justify-content space-between
     .combine-table >>> .el-tabs__header
     .combine-table >>> .el-tabs__header
       margin 0
       margin 0
+    .pagination
+      margin-top 30px
     .abviously >>> .is-leaf
     .abviously >>> .is-leaf
       background-color #FFFEF5 !important
       background-color #FFFEF5 !important
     .fontScale >>> .el-table__header-wrapper .cell
     .fontScale >>> .el-table__header-wrapper .cell