From 83299c220d043e3f9d0bd0ff516c54c5b8977633 Mon Sep 17 00:00:00 2001 From: wangfei <3597712270@qq.com> Date: 星期二, 09 七月 2024 14:23:29 +0800 Subject: [PATCH] 调整用户管理、权限管理、角色管理页面关闭方式,调整角色管理级联选择则器回显,大理片笼小车位置,获取接口 --- UI-Project/src/views/User/userlist.vue | 20 +++++++++++++++++--- 1 files changed, 17 insertions(+), 3 deletions(-) diff --git a/UI-Project/src/views/User/userlist.vue b/UI-Project/src/views/User/userlist.vue index 2198c37..5d79a7b 100644 --- a/UI-Project/src/views/User/userlist.vue +++ b/UI-Project/src/views/User/userlist.vue @@ -107,6 +107,20 @@ window.localStorage.setItem('id', row.id) } + +function closeDialog(row) { + add.value = false; + userName.value = ''; + nickName.value = ''; + password.value = ''; + selectedProjectNoa.value = ''; +} +function closeDialoga(row) { + adda.value = false; + userName.value = ''; + nickName.value = ''; + password.value = ''; +} // 娣诲姞 const getTableRow = async () => { try { @@ -131,7 +145,7 @@ tableData.value = response.data; } else { // 璇锋眰澶辫触锛屾樉绀洪敊璇秷鎭� - ElMessage.error(response.msg); + ElMessage.error(response.message); } } catch (error) { // 澶勭悊閿欒 @@ -281,7 +295,7 @@ <el-button type="primary" @click="getTableRow"> {{ $t('productStock.sure') }} </el-button> - <el-button @click="add = false">{{ $t('productStock.cancel') }}</el-button> + <el-button @click="closeDialog">{{ $t('productStock.cancel') }}</el-button> </div> </template> </el-dialog> @@ -328,7 +342,7 @@ <el-button type="primary" @click="getTableRowa"> {{ $t('productStock.sure') }} </el-button> - <el-button @click="adda = false">{{ $t('productStock.cancel') }}</el-button> + <el-button @click="closeDialoga">{{ $t('productStock.cancel') }}</el-button> </div> </template> </el-dialog> -- Gitblit v1.8.0