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

xiaoxiao2021-02-27  188

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,所以导致不能取出数据。

转载请注明原文地址: https://www.6miu.com/read-12162.html

最新回复(0)