jQuery MiniUI

标题: DetailGrid 中显示不出来但有行数后台数据也有 [打印本页]

作者: lt2017    时间: 2018-1-29 09:28:07     标题: DetailGrid 中显示不出来但有行数后台数据也有

DetailGrid 中显示不出来但有行数后台数据也有

作者: felt    时间: 2018-1-29 11:18:07

请贴出来你后台返回的所有数据,这样需要{total:"",data:[{},{},{}]}这样的一个对象
作者: lt2017    时间: 2018-1-29 15:46:37

felt 发表于 2018-1-29 11:18
请贴出来你后台返回的所有数据,这样需要{total:"",data:[{},{},{}]}这样的一个对象 ...

很奇怪,有时候有有时候又出不来
作者: felt    时间: 2018-1-29 16:04:23

lt2017 发表于 2018-1-29 15:46
很奇怪,有时候有有时候又出不来

检查你的数据吧,如果数据正确,肯定是会出来的
作者: lt2017    时间: 2018-1-30 09:39:29

felt 发表于 2018-1-29 16:04
检查你的数据吧,如果数据正确,肯定是会出来的

{"data":[{"whd_ingold":-0.2100,"spd_in_work":0.0000,"whd_goldName22K":"","whd_goldName12K":"","spd_amt_work":0.0000,"whd_income":0.0000,"whd_memo":"","whd_wtafterdiscount":-0.2100,"whm_checkdate":"2018-01-09T17:11:59","whd_goldName9K":"","whm_stockinorderid":"SH2018010338","whd_wtafterincount":0.0000,"whd_goldName24K":"","whd_goldName14K":"","whd_goldName18K":"","whd_bukou":null},{"whd_ingold":-500.2100,"spd_in_work":0.0000,"whd_goldName22K":"","whd_goldName12K":"","spd_amt_work":0.0000,"whd_income":0.0000,"whd_memo":"","whd_wtafterdiscount":0.0000,"whm_checkdate":"2018-01-12T21:14:16","whd_goldName9K":"","whm_stockinorderid":"SI201801152","whd_wtafterincount":-500.0000,"whd_goldName24K":"","whd_goldName14K":"","whd_goldName18K":"","whd_bukou":""}],"total":2}
作者: dforce    时间: 2018-2-1 14:01:16

lt2017 发表于 2018-1-30 09:39
{"data":[{"whd_ingold":-0.2100,"spd_in_work":0.0000,"whd_goldName22K":"","whd_goldName12K":"","spd ...

楼上贴的数据没问题。
如果是这数据的话肯定会显示的,如果字段没对应也会显示2条空数据的。




欢迎光临 jQuery MiniUI (http://miniui.com/discuss/) Powered by Discuz! X2