Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

用户编辑界面“所属部门”与“负责部门”联动出错? #1222

Closed
xiaobin620 opened this issue Apr 28, 2024 · 4 comments
Closed

Comments

@xiaobin620
Copy link

版本号:

前端vue3 3.6.3

问题描述:

当选择用户所属部门后,身份为上级时,负责部门会根据选择的所属部门进行增减。但是,当一个个取消选择所属部门(即点X 取消),所有所属部门全部取消完毕后,负责部门里面还留有所属部门最后取消的那一个。
查看了前端代码:在src/views/system/user/UserDrawer.vue 中,第210行,onSelect 事件,本来每取消一个所属部门都会触发这个事件,但是取消到最后一个所属部门时,没有触发onSelect事件。所以,此时无法给负责部门下拉菜单进行赋值。

截图&代码:

image
image
image

前端安装环境:

如果你是启动报错,请说明你的前端环境

  • 采用的是pnpm安装还是yarn: pnpm
  • node版本号:20.11.1
  • pnpm版本号:8.15.4

友情提示(为了提高issue处理效率):

  • 未按格式要求发帖,会被直接删掉;
  • 请自己初判问题描述是否清楚,是否方便我们调查处理;
  • 描述过于简单或模糊,导致无法处理的,会被直接删掉;
@xiaobin620
Copy link
Author

晚上回家改了个版本,但是貌似不是最好的解决方案!请大牛给一个好的解决方案!
image

@zhangdaiscott
Copy link
Member

ws

@xiaobin620
Copy link
Author

ws

您是在查看吗?

@1298191366
Copy link

已修复,待新版本发布

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants