From d22f9b9278303f340e2f8efd6f5a98f0b614c05c Mon Sep 17 00:00:00 2001 From: zhanghua <314079846@qq.com> Date: 星期一, 17 十月 2022 18:03:36 +0800 Subject: [PATCH] 部门功能修改 --- src/views/systemSetting/baseSetting/authority/index.vue | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/systemSetting/baseSetting/authority/index.vue b/src/views/systemSetting/baseSetting/authority/index.vue index f430f12..21c4cc2 100644 --- a/src/views/systemSetting/baseSetting/authority/index.vue +++ b/src/views/systemSetting/baseSetting/authority/index.vue @@ -11,7 +11,7 @@ </div> <div class="addUser"> <el-button class="addBtn" type="primary" @click="dialogCreate = true">娣诲姞鐢ㄦ埛</el-button> - <el-dialog :visible.sync="dialogCreate" width="45%"> + <el-dialog :visible.sync="dialogCreate" width="45%" v-if="dialogCreate"> <createUser :refresh="getUserList" /> </el-dialog> </div> @@ -63,7 +63,7 @@ </el-table-column> </el-table> <!-- 鏌ョ湅淇敼椤甸潰 --> - <el-dialog :visible.sync="dialogUpdate" width="45%"> + <el-dialog :visible.sync="dialogUpdate" width="45%" v-if="dialogUpdate"> <updateUser :updateFlag="updateFlag" :userInfo=userInfo /> </el-dialog> <!-- 鍒嗛〉 --> @@ -94,7 +94,7 @@ updateFlag: false, userInfo: '', totalNum: 200, - pageSize: 10, + pageSize: 4, currentPage: 1, } }, @@ -129,7 +129,7 @@ item.status == 1 ? item.status = true : item.status = false; }) that.totalNum = res.data.records.length; - that.tableData = res.data.records.slice((that.currentPage - 1) * 10, that.currentPage * 10) + that.tableData = res.data.records; } }) }, @@ -186,7 +186,7 @@ item.status == 1 ? item.status = true : item.status = false; }) that.totalNum = res.data.records.length; - that.tableData = res.data.records.slice((that.currentPage - 1) * 10, that.currentPage * 10) + that.tableData = res.data.records; } }) } -- Gitblit v1.8.0