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

移除多级联动的某个选项,方法貌似有错误 #33

Open
cuishuang opened this issue May 27, 2019 · 0 comments
Open

移除多级联动的某个选项,方法貌似有错误 #33

cuishuang opened this issue May 27, 2019 · 0 comments

Comments

@cuishuang
Copy link

Common.prototype.linkageDel = function(id, val){ let dl = $(dl[xid="${id}"]); let vs = val.value.split('/'); let pid, li, index = vs.length - 1; do{ pid = vs[index]; li = dl.find(.xm-select-linkage-group${index + 1} li[xm-value="${pid}"]); if(!li.parent().next().find(li[pid=${pid}].xm-select-this).length){ li.removeClass('xm-select-this'); } index --; }while(li.length && pid != undefined); }

这里应该是 li[pid="${pid}"],
或者是将pid= vs[index]改为pid= vs[index-1]

个人微信号:cuimoman
望探讨

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