使用json数据源做EL虚拟树形表格的数据源,发现树结构混乱.json如下
[{"value":"L100000001-1-01","parentValue":null,"label":"L100000001-1-01-压铸198793#模具 10*20*100 ","名称":"压铸198793#模具","子物料":"L100000001-1-01","原物料编号":"L100000001-1-01","使用量":"1","损耗率":"0","提前期":"0","备注":null,"规格":"10*20*100 ","单位":"套","种类":"铝合金压铸模","制程":null,"图片":null,"系列耗用量":"1","系列损耗率":"0","系列提前期":"0","BOM层级":"0","工模ID":1},
{"value":14,"parentValue":"L100000001-1-01","label":"XZMK0001-1-测试001 的点点滴滴","名称":"测试001","子物料":"eee1","原物料编号":"XZMK0001-1","使用量":2,"损耗率":0,"提前期":1,"备注":null,"规格":"的点点滴滴","单位":"PCS","种类":"模框","制程":null,"图片":null,"系列耗用量":2,"系列损耗率":0,"系列提前期":1,"BOM层级":"1","工模ID":1},
{"value":19,"parentValue":14,"label":"ID-20240816-0004-000模穴镶件 φ5cm","名称":"000模穴镶件","子物料":"ID-20240816-0004","原物料编号":"LZMR0001B1B24XJ02","主物料":"eee1","使用量":2,"损耗率":0,"提前期":1,"备注":null,"规格":"φ5cm","单位":"PCS","种类":"镶件","制程":null,"图片":null,"系列耗用量":4,"系列损耗率":0,"系列提前期":2,"BOM层级":"2","工模ID":1},
{"value":24,"parentValue":"L100000001-1-01","label":"LZMR0001B1B24-测试物料002 18645项","名称":"测试物料002","子物料":"eee2","原物料编号":"LZMR0001B1B24","使用量":4,"损耗率":0,"提前期":1,"备注":null,"规格":"18645项","单位":"PCS","种类":"模仁","制程":null,"图片":null,"系列耗用量":4,"系列损耗率":0,"系列提前期":1,"BOM层级":"1","工模ID":1},
{"value":25,"parentValue":24,"label":"eee1-测试001 的点点滴滴","名称":"测试001","子物料":"eee1","原物料编号":"XZMK0001-1","主物料":"eee2","使用量":4,"损耗率":0,"提前期":1,"备注":null,"规格":"的点点滴滴","单位":"PCS","种类":"模框","制程":null,"图片":null,"系列耗用量":16,"系列损耗率":0,"系列提前期":2,"BOM层级":"2","工模ID":1},
{"value":19,"parentValue":25,"label":"ID-20240816-0004-000模穴镶件 φ5cm","名称":"000模穴镶件","子物料":"ID-20240816-0004","原物料编号":"LZMR0001B1B24XJ02","主物料":"eee1","使用量":2,"损耗率":0,"提前期":1,"备注":null,"规格":"φ5cm","单位":"PCS","种类":"镶件","制程":null,"图片":null,"系列耗用量":32,"系列损耗率":0,"系列提前期":3,"BOM层级":3,"工模ID":1}]
大佬可以复制下我的这个结构看看,树状图是分级错乱的
|