From 4aeb79927aab9874ae13bda09f85e5d560d8ca70 Mon Sep 17 00:00:00 2001 From: Fixiaobai <fixiaobai@163.com> Date: 星期一, 04 九月 2023 15:19:42 +0800 Subject: [PATCH] 修改bug --- src/views/laboratory/role/index.vue | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/views/laboratory/role/index.vue b/src/views/laboratory/role/index.vue index c4f696c..56aaaac 100644 --- a/src/views/laboratory/role/index.vue +++ b/src/views/laboratory/role/index.vue @@ -2,14 +2,16 @@ <div> <div class="content-main"> <div class="top-bar"> - <el-form ref="form" :inline="true" :model="searchData"> + <el-form style="display: flex;align-items: center;" ref="form" :inline="true" :model="searchData"> <el-form-item label="瑙掕壊鍚嶇О锛�" class="sermargin"> <el-input v-model="searchData.roleName" class="input-form" placeholder="璇疯緭鍏ヨ鑹插悕绉�" style="width:250px"> </el-input> </el-form-item> <el-form-item class="rightBtn"> - <el-button type="primary" @click="searchRole">鏌ヨ</el-button> - <el-button type="primary" plain>閲嶇疆</el-button> + <el-col> + <el-button type="primary" @click="searchRole">鏌ヨ</el-button> + <el-button type="primary" @click="clear()" plain>閲嶇疆</el-button> + </el-col> </el-form-item> </el-form> <el-form> @@ -285,6 +287,10 @@ searchRole() { this.start() }, + clear(){ + this.searchData.roleName='' + this.start() + }, clearUPAll() { this.updateRole = { roleId: null, @@ -358,13 +364,11 @@ }, async upRole(scope) { - console.log(scope); this.updateRole.roleId = scope.row.roleId this.updateRole.roleName = scope.row.roleName this.updateRole.lastName = scope.row.roleName let menuSelect = scope.row.roleMenuList this.updateRole.lastMenuSelect = scope.row.roleMenuList - console.log(menuSelect); let res = await getMenusTree(); this.menuUpdateInfo = res.data this.menuUpdateInfo.forEach(item => { @@ -386,7 +390,6 @@ }) } }) - console.log(this.menuUpdateInfo); menuSelect.forEach(ms => { this.menuUpdateInfo.forEach(item => { if (ms.menuName === item.name) { @@ -784,6 +787,7 @@ #selectRolecheck .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::after { border-color: #fff !important; } + #selectRoleCheck .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner { background-color: #409EFF; border-color: #409EFF; -- Gitblit v1.9.3