Преглед изворни кода

Merge branch 'master' of http://39.105.126.192:3000/DR3_web/ioc-admin-ui

Bella пре 2 година
родитељ
комит
eddfd4c03b

+ 3 - 2
src/views/userManagement/personManagement/tables/activeUser.vue

@@ -6,7 +6,7 @@
             <el-button class="delete" @click="batchDelete">批量删除</el-button>
         </div>
         <el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" :header-cell-style="{ textAlign: 'center' }"
-            :cell-style="{ textAlign: 'center' }" height="470" style="width: 100%" @selection-change="handleSelectionChange">
+            :cell-style="{ textAlign: 'center' }" height="405" style="width: 100%" @selection-change="handleSelectionChange">
             <el-table-column type="selection" width="50">
             </el-table-column>
             <el-table-column prop="username" label="用户名">
@@ -91,7 +91,8 @@ export default {
             this.tableData = [];
             getUserList(
                 0,
-                page
+                page,
+                this.currentPageSize
             ).then((res) => {
                 if (res.data.code === 0 && res.data.data.length > 0) {
                     this.paginationData.total = res.data.total;

+ 62 - 43
src/views/userManagement/personManagement/tables/deactiveUser.vue

@@ -1,7 +1,14 @@
 <template>
     <div>
+        <div class="batch_button">
+            <el-button class="export" @click="exportData">导出数据</el-button>
+            <el-button class="disabled" @click="batchActivate">批量禁用</el-button>
+            <el-button class="delete" @click="batchDelete">批量删除</el-button>
+        </div>
         <el-table ref="multipleTable" :data="tableData" tooltip-effect="dark"
-            :header-cell-style="{ textAlign: 'center' }" :cell-style="{ textAlign: 'center' }" style="width: 98%"
+            :header-cell-style="{ textAlign: 'center' }" :cell-style="{ textAlign: 'center' }" 
+            height="405"
+            style="width: 100%"
             @selection-change="handleSelectionChange">
             <el-table-column type="selection" width="50">
             </el-table-column>
@@ -27,17 +34,10 @@
             <el-table-column prop="operation" label="操作">
                 <el-button size="mini" type="text">查看</el-button>
                 <el-button size="mini" type="text">编辑</el-button>
-                <el-button size="mini" type="text">激活</el-button>
+                <el-button size="mini" type="text">删除</el-button>
             </el-table-column>
         </el-table>
         <div class="bottom">
-            <div class="bottom_button">
-                <el-button class="delete" type="text">批量删除</el-button>
-                <el-divider direction="vertical"></el-divider>
-                <el-button class="disabled" type="text">批量激活</el-button>
-                <el-divider direction="vertical"></el-divider>
-                <el-button class="export" type="text">导出数据</el-button>
-            </div>
             <page class="page" :paginationData="paginationData"></page>
         </div>
     </div>
@@ -86,9 +86,11 @@ export default {
             this.tableData = [];
             getUserList(
                 0,
-                page
+                page,
+                this.currentPageSize
             ).then((res) => {
                 if (res.data.code === 0 && res.data.data.length > 0) {
+                    this.paginationData.total = res.data.total;
                     this.tableData = res.data.data.map((e) => {
                         return {
                             username: e.name,
@@ -121,13 +123,10 @@ export default {
 }
 
 .el-table {
-    position: absolute;
-    top: 60px;
+    position: relative;
+    top: 50px;
     left: 0;
-    margin-left: 1%;
-    height: 400px;
     border: 1px solid #f0f2f2;
-    margin-top: 10px;
     font-size: 0.95rem;
     font-family: PingFang SC;
     font-weight: 500;
@@ -178,38 +177,58 @@ export default {
     }
 }
 
-.bottom {
-    position: absolute;
-    bottom: 10px;
-    left: 50px;
-    height: 50px;
-    width: 95%;
-    line-height: 20px;
-    background-color: rgba(255, 255, 255, 1);
-    text-align: center;
+.batch_button {
+    position: relative;
+    top: 50px;
+    float: left;
+    left: 280px;
 
-    .bottom_button {
+    .export {
+        padding: 3px;
+        width: 80px;
+        height: 30px;
+        bottom: 15px;
         position: absolute;
-        left: 20px;
-        margin-top: 15px;
-
-        .delete {
-            font-size: 14px;
-            text-align: center;
-            padding: 1px;
-        }
+        color: #fff;
+        border-radius: 4px;
+        right: 190px;
+        background-color: #2ea8e6;
+    }
 
-        .disabled {
-            font-size: 14px;
-            text-align: center;
-            padding: 1px;
-        }
+    .disabled {
+        padding: 3px;
+        width: 80px;
+        height: 30px;
+        bottom: 15px;
+        position: absolute;
+        color: #fff;
+        border-radius: 4px;
+        right: 100px;
+        background-color: #2ea8e6;
+    }
 
-        .export {
-            font-size: 14px;
-            text-align: center;
-            padding: 1px;
-        }
+    .delete {
+        padding: 3px;
+        width: 80px;
+        height: 30px;
+        bottom: 15px;
+        position: absolute;
+        color: #fff;
+        border-radius: 4px;
+        right: 10px;
+        background-color: #b3b3b3;
     }
+
+}
+
+.bottom {
+    position: absolute;
+    left: 20px;
+    right: 16px;
+    bottom: 20px;
+    height: 50px;
+    line-height: 20px;
+    background-color: #ffffff;
+    text-align: center;
 }
 </style>