From d0bec404f2c22ca04e8592f1a2ba0b39eab0be2f Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期一, 22 五月 2023 09:37:03 +0800
Subject: [PATCH] Default Changelist

---
 src/views/intellectInspect/inspectTaskManage/inspectTask/index.vue |   56 +++++++++++++++++++++++++++++++++++++++-----------------
 1 files changed, 39 insertions(+), 17 deletions(-)

diff --git a/src/views/intellectInspect/inspectTaskManage/inspectTask/index.vue b/src/views/intellectInspect/inspectTaskManage/inspectTask/index.vue
index e6e01c5..5feb9f9 100644
--- a/src/views/intellectInspect/inspectTaskManage/inspectTask/index.vue
+++ b/src/views/intellectInspect/inspectTaskManage/inspectTask/index.vue
@@ -1,6 +1,6 @@
 <template>
     <div class="home-container">
-        <div style="height: 100%">
+      <div style="height: 100%;display: flex;flex-direction: column;align-items: stretch;">
             <el-row class="homeCard">
                 <div class="basic-line">
                     <span>任务类型:</span>
@@ -245,17 +245,29 @@
         };
 
         //获取部门
-        const getQuotaList = async () => {
-            let res = await inspectTaskApi().getQuotaList();
-            if (res.data.code === '200') {
-                state.quotaList = res.data.data;
-            } else {
-                ElMessage({
-                    type: 'warning',
-                    message: res.data.msg
-                });
-            }
-        };
+        // const getQuotaList = async () => {
+        //     let res = await inspectTaskApi().getQuotaList();
+        //     if (res.data.code === '200') {
+        //         state.quotaList = res.data.data;
+        //     } else {
+        //         ElMessage({
+        //             type: 'warning',
+        //             message: res.data.msg
+        //         });
+        //     }
+        // };
+      //获取部门
+      const getQuotaList = async () => {
+        let res = await inspectTaskApi().getAllQuotaList();
+        if (res.data.code === '200') {
+          state.quotaList = res.data.data;
+        } else {
+          ElMessage({
+            type: 'warning',
+            message: res.data.msg
+          });
+        }
+      };
 
         //获取巡检点
         const getInspectTaskPoint = async () => {
@@ -477,12 +489,14 @@
     height: calc(100vh - 144px);
     box-sizing: border-box;
     overflow: hidden;
+    position: relative;
     .homeCard {
         width: 100%;
         padding: 20px;
         box-sizing: border-box;
         background: #fff;
         border-radius: 4px;
+        flex: 0 auto;
 
         .main-card {
             width: 100%;
@@ -497,10 +511,18 @@
                 }
             }
             .pageBtn {
-                height: 60px;
-                display: flex;
-                align-items: center;
-                justify-content: right;
+              position: absolute;
+              width: 100%;
+              z-index: 99;
+              bottom: 0;
+              right: 0;
+              height: 60px;
+              border-radius: 0 0 4px 4px;
+              padding-right: 20px;
+              background: #fff;
+              display: flex;
+              align-items: center;
+              justify-content: right;
 
                 .demo-pagination-block + .demo-pagination-block {
                     margin-top: 10px;
@@ -511,7 +533,7 @@
             }
         }
         &:last-of-type {
-            height: calc(100% - 100px);
+          flex: 1;
         }
     }
     .el-row {

--
Gitblit v1.9.2