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

【修复方法建议】depart-window部门搜索框已经存在数据的情况 下,再次进入弹窗后直接点击确定,会清空已有选择部门的操作修复 #44

Open
youxidonxx opened this issue Sep 27, 2023 · 0 comments

Comments

@youxidonxx
Copy link

版本号:Vue2版本最新
问题描述:
截图&代码:

image

然后直接点击确定,回到界面时会丢失部门
image

修复方式之一

image
image

getCheckNodes(treeData,checkIds,arr) { treeData.forEach(data=> { if(checkIds.findIndex(id=>id == data.key)!=-1) { var info = checkIds.find(id=>id == data.key) arr.push({ key:data.key, value:data.value, title:data.title }) } if(data.children && data.children.length>0) { this.getCheckNodes(data.children,checkIds,arr); } }) }

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

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