jsp不能将数据完整的显示出来

 columns:[[     //每个列具体内容  
                  {  
                      field:'id',  
                      title:'ID',
                      align: 'center',
                      width:20
                  },     
                  {    
                 field:'userInterfaceCode',
                 title:'接口用户代码',
                 width:50,
                 align: 'center',
                 editor : {  
                        type : 'validatebox',  
                        options : {  
                            required : true  
                        }  
                      }
                  },     
                  {
                 field:'userInterfaceName',
                 title:'接口用户名称',
                 width:100,
                 align: 'center',
                 editor : {  
                        type : 'validatebox',  
                        options : {  
                            required : true  
                        }  
                      }
                  },
                  {
                 field:'authorizationLabeled',
                 title:'授权标识',
                 width:100,
                 align: 'center',
                 editor : {  
                        type : 'validatebox',  
                        options : {  
                            required : true  
                        }  
                      }
                  },
                  {
                 field:'createTime',
                 title:'创建时间',
                 width:100,
                 align: 'center',
                 formatter : function(value, row, index) {
        var unixTimestamp = new Date(value);
        return unixTimestamp.format("yyyy-MM-dd hh:mm:ss");
                        }
                  },
                  {
                 field:'state',
                 title:'状态',
                 width:100,
                 align: 'center',
                 formatter:function(value,rowData,rowIndex){
                  if(value == 'Y'){
                  return '<div class="switch demo3"><input type="checkbox" checked="" οnchange=switchInterface('+rowData.id+',"N")><label><i></i></label></div>';
                  }
                  else{
                  return '<div class="switch demo3"><input type="checkbox" οnchange=switchInterface('+rowData.id+',"Y")><label><i></i></label></div>';
                  }
                  }
                  }

              ]],  



原因:entity里的字段名和上边代码部分不一致,例如:entity里有一个userInterfaceCode,jsp页面上field写成了user_interface_code,所以导致不能取出数据。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值