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

本问题是issues/1222 的问题, 新的版本3.7中,仍然没有修复。 #6380

Open
xiaobin620 opened this issue Jun 17, 2024 · 0 comments

Comments

@xiaobin620
Copy link

版本号:

前端vue3 3.7

问题描述:

当选择用户所属部门后,身份为上级时,负责部门会根据选择的所属部门进行增减。但是,当一个个取消选择所属部门(即点X 取消),所有所属部门全部取消完毕后,负责部门里面还留有所属部门最后取消的那一个。
查看了前端代码:在src/views/system/user/user.data.ts 中,第210行,onSelect 事件,本来每取消一个所属部门都会触发这个事件,但是取消到最后一个所属部门时,没有触发onSelect事件。所以,此时无法给负责部门下拉菜单进行赋值。
3.7 版本中是修改了onSelect,但是取消到最后一个时候,根本没有触发这个事件。另外,选择控件后面有个叉,点击之后,也就是全部取消之后,负责部门那里,也不会有任何变化。见下面的第4个图。

截图&代码:

image
image
image
image

前端安装环境:

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

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

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

  • 未按格式要求发帖,会被直接删掉;
  • 请自己初判问题描述是否清楚,是否方便我们调查处理;
  • 描述过于简单或模糊,导致无法处理的,会被直接删掉;
@zhangdaiscott zhangdaiscott transferred this issue from another repository Jun 21, 2024
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

1 participant