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

部门全部勾选后,点击确认按钮,部门信息丢失 #4646

Closed
winterbao opened this issue Mar 7, 2023 · 9 comments
Closed

部门全部勾选后,点击确认按钮,部门信息丢失 #4646

winterbao opened this issue Mar 7, 2023 · 9 comments

Comments

@winterbao
Copy link

版本号:

3.4.4

前端版本:vue3版?还是 vue2版?

vue3版

问题描述:

部门选择里,全部勾选后,点击确认按钮,没有任何信息带到父页面上

截图&代码:

764D6A23F155FBC167C24A9BC2ADA606

@zhangdaiscott
Copy link
Member

那个页面

@winterbao
Copy link
Author

就是系统只带添加用户弹窗页面,选择所属部门时

@zhangdaiscott
Copy link
Member

请图文并茂,不要让猜

@winterbao
Copy link
Author

winterbao commented Mar 7, 2023

image

@zhangdaiscott
Copy link
Member

收到

@winterbao
Copy link
Author

收到

非常感谢关注,我更新了一版图片,期待您的回复

@feihui233
Copy link

我修改了全部/全不选的代码,您可以参考
` /**

  • 勾选全部
    */
    function checkALL(checkAll:boolean) {
    // 是否设置树组件全部勾选
    if(checkAll == true){
    let inList = [];
    let labelList = [];
    function getList(res) {
    const data = unref(res);
    for (let item of data) {
    inList.push(item.id);
    labelList.push(item);
    if (item.children != null && item.children.length) {
    getList(item.children);
    }
    }
    }
    getList(treeData.value);
    checkedKeys.value = inList;
    selectRows.value = labelList;
    }
    if(checkAll == false){
    checkedKeys.value = [];
    selectRows.value = [];
    }
    }`

@zhangdaiscott
Copy link
Member

3Q

@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

4 participants