关于topjui-combotree 多选节点后,提交到后台只能得到一个id问题

提问 已结 4 5478
悬赏:20飞吻
根据示例,在topjui-combotree 中,选择多个节点,为什么到后台只能得到一个tree id呢?


前端代码

<input type="text" name="deptments" data-toggle="topjui-combotree" data-options="required:true,
textField:'text',
multiple:true,
expandAll:true,
url:'/api/sadiandian-common-authority/selectDepartmentByLevel/2',
expandUrl:'/api/sadiandian-common-authority/selectLeafOfDepartment/{id}'
" />

后台得到的数据

{
"id":"476756978111222321",
"rolename":"df",
"rolecode":"sdf",
"status":"启用",
"deptments":"476756978111221760",
"remark":"sdf"

}

deptments 是我要从topjui-combotree选择的数据,不能进行多选么?求解答
回帖
回帖须知