网格排序

This commit is contained in:
yanran200730
2023-05-06 15:03:34 +08:00
parent 3087ca7ae9
commit e238a9e052

View File

@@ -213,7 +213,7 @@ export default {
this.treeObj.treeList = res.data.filter(e => !e.parentGirdId)
const parentGirdId = this.treeObj.treeList[0].id
this.treeObj.treeList.map(p => this.addChild(p, res.data.map(v => {
this.treeObj.treeList.map(p => this.addChild(p, res.data.sort((a, b)=>{ return a.girdCode - b.girdCode}).map(v => {
if (v.id === parentGirdId) {
this.treeObj.defaultExpandedKeys.push(v.id)
}