区域管理景区逻辑调整

This commit is contained in:
Double-_-Z 2025-07-23 10:01:41 +08:00
parent 327787c0a5
commit 465960a281

View File

@ -142,16 +142,17 @@ export default {
parentId: data.parentId,
parentName: data.parentName
}])
const type = node.level === 1
const type = node.level === 1 || node.level === 2
console.log(type,node.level);
this.crud.title = type ? '区域' : '景区'
this.crud.title = node.level === 1 ? '区域' : '景区'
this.form.type = type ? 'area' : 'scenic'
this.getList(id,data)
},
handleSourceClick(){
this.active = this.list[0].id;
this.crud.title = '区域';
this.form.type = 'area';
this.getList(this.list[0].id,{type:'source'})
},
//