mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-23 23:39:47 +08:00
chore: add dynamic parentIdField support in index-tree template
This commit is contained in:
3
docs/template/index-tree.vue.vm
vendored
3
docs/template/index-tree.vue.vm
vendored
@ -47,6 +47,9 @@ const {
|
||||
params: {}
|
||||
},
|
||||
idField: '#foreach($column in $columns)#if($column.isPk == '1')$column.javaField#end#end',
|
||||
#if(${treeParentCode} && ${treeParentCode} != 'parentId')
|
||||
parentIdField: '${treeParentCode}',
|
||||
#end
|
||||
columns: () => [
|
||||
{
|
||||
type: 'selection',
|
||||
|
Reference in New Issue
Block a user