网格排序
This commit is contained in:
		| @@ -213,7 +213,7 @@ export default { | |||||||
|           this.treeObj.treeList = res.data.filter(e => !e.parentGirdId) |           this.treeObj.treeList = res.data.filter(e => !e.parentGirdId) | ||||||
|           const parentGirdId = this.treeObj.treeList[0].id |           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) { |             if (v.id === parentGirdId) { | ||||||
|               this.treeObj.defaultExpandedKeys.push(v.id) |               this.treeObj.defaultExpandedKeys.push(v.id) | ||||||
|             } |             } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user