完善选择顶级菜单的逻辑
This commit is contained in:
@@ -389,10 +389,17 @@
|
|||||||
checkchange(data, checked) {
|
checkchange(data, checked) {
|
||||||
console.log("checkchange", data);
|
console.log("checkchange", data);
|
||||||
console.log("checkchange", checked);
|
console.log("checkchange", checked);
|
||||||
|
|
||||||
|
|
||||||
if (checked) {
|
if (checked) {
|
||||||
|
|
||||||
|
if (data.sid == 'd936f1ba-03c3-11ec-bf08-48452053aa33') {
|
||||||
|
this.form.psid = '0'
|
||||||
|
this.form.pname = '顶级菜单'
|
||||||
|
} else {
|
||||||
this.form.psid = data.sid
|
this.form.psid = data.sid
|
||||||
this.form.pname = data.name
|
this.form.pname = data.name
|
||||||
|
}
|
||||||
let arr = []
|
let arr = []
|
||||||
arr = [data.sid];
|
arr = [data.sid];
|
||||||
this.$refs.Tree.setCheckedKeys(arr);
|
this.$refs.Tree.setCheckedKeys(arr);
|
||||||
|
|||||||
Reference in New Issue
Block a user