From 5b2dd794ec680d47e907ff43a264a7f82c30a130 Mon Sep 17 00:00:00 2001 From: zhanghua <314079846@qq.com> Date: 星期二, 18 十月 2022 16:23:55 +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