{"hidden":false,"children":[{"configs":{"itemId":"module","description":"->数据类型自动转换：\nselect 'true' as \"leaf\"，由于leaf默认为布尔型，因此字符串'true'在客户端treeStore中可自动转换为布尔值true\nselect 'true' as \"checked\" 将自动在树节点前加复选框\n->数据类型指定类型转换：\nselect 'true' as \"myType\"，在DataProvider的fields属性中配置[{type:'boolean',name:'myType'}]，强制设置myType类型为布尔型"},"expanded":true,"children":[{"configs":{"itemId":"dataprovider1","type":"tree","sql":"select DEPT_NAME as \"text\",DEPT_ID,PARENT_DEPT,0 as \"DONE_CHECK\",\ncase when (select count(*) from WB_EMPLOYEE_DEPT b where b.PARENT_DEPT=a.DEPT_ID)>0 then 'false' else 'true' end as \"leaf\"\nfrom WB_EMPLOYEE_DEPT a where PARENT_DEPT={?parentDept?} order by ORDER_INDEX"},"expanded":false,"children":[],"type":"dataprovider"}],"type":"module"}],"roles":{"demo":1},"title":"树查询","iconCls":"","inframe":false,"pageLink":""}