Эх сурвалжийг харах

优化任务主页和缺陷分页

qinzhipeng_v 5 жил өмнө
parent
commit
579ae34984

+ 6 - 1
src/views/projectManage/bugList/details/bugTableDialog.vue

@@ -39,12 +39,13 @@
     <div align="right">
       <el-pagination
         :current-page.sync="currentPage"
-        :page-sizes="[15, 30, 45, total]"
+        :page-sizes="[15, 20, 30]"
         :page-size="pageSize"
         background
         layout="total, sizes, prev, pager, next, jumper"
         :total="total"
         @current-change="handleCurrentChange"
+        @size-change="handleSizeChange"
       />
     </div>
 
@@ -169,6 +170,10 @@ export default {
         this.drawerShow = false
       })
     },
+    handleSizeChange(val) {
+      this.pageSize = val
+      this.bugGetTableList(this.queryData, false)
+    },
     handleCurrentChange(val) { // 分页
       this.curIndex = val
       this.bugGetTableList(this.queryData, false)

+ 7 - 5
src/views/projectManage/taskList/taskIndex.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="bgborder" style="background-color:#F2F3F6;min-height:calc(100vh - 80px);padding:1% 0">
+  <div class="bgborder" style="background-color:#F2F3F6;min-height:calc(100vh - 80px);padding:10px">
     <div class="stylus-head">
       <div class="stylus-title">
         <span style="font-size: 22px;letter-spacing: 1px;font-weight: 600;color: #333B4A;padding-left: 15px">任务</span>
@@ -482,9 +482,9 @@ export default {
   .stylus-head >>> .el-form-item
     margin-bottom 0
   .stylus-head
-    width 98%
+    width 100%
     padding 1%
-    margin:0 auto 1% auto
+    margin-bottom: 10px
     background-color white
     border-radius 4px
     .stylus-title
@@ -494,18 +494,20 @@ export default {
     .stylus-more
       background rgba(252,252,252,1)
       border-radius 4px
-      padding 2% 1%
+      padding 15px
       min-height 100px
       margin-top 22px
       border 1px solid rgba(238,238,238,1)
       width 100%
   .stylus-content
-    width 98%
+    width 100%
     padding 0.3% 1% 1% 1%
     margin:0 auto
     background-color white
     border-radius 4px
+    min-height: calc(100vh - 209px);
     .stylus-hover:hover
       color #409EFF !important
       cursor pointer
 </style>
+