From 3b20cf21dbea247d19521e0b26d52fae6991d1f3 Mon Sep 17 00:00:00 2001 From: lonewolfyx <877085893@qq.com> Date: Thu, 16 Jan 2025 09:38:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=BB=E9=99=A4=20unitId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/user/index.vue | 47 +++++++++++++++------------------ 1 file changed, 21 insertions(+), 26 deletions(-) diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index ceb054e..6d7a029 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -266,19 +266,19 @@ - - - - - + + + + + + + + + + + + + - - 提示: - 法警归属部门必须选法警部,辅警归属部门必须选辅警部,法警负责人角色必须选法警(辅警)负责人,分管领导角色必须选单位领导 - @@ -547,20 +542,20 @@ watch(deptName, val => { // 获取个s人信息 const getUserInfo = async () => { await getUserProfile().then(res => { - form.value.unitId = res.data.unitId - handleUnitChange(form.value.unitId) + handleUnitChange() }) } function handleUnitChange(data) { form.value.deptId = '' listDept().then(res => { - deptOptionsEdit.value = res.data.filter( - item => item.parentId === data - ); - deptOptionsEdit.value = deptOptionsEdit.value.filter( - item => item.isUnit === false - ); + deptOptionsEdit.value = res.data + // .filter( + // item => item.parentId === data + // ); + // deptOptionsEdit.value = deptOptionsEdit.value.filter( + // item => item.isUnit === false + // ); }) }