最初打算使用bootstrapble,但是说通了。 之后,我给了ued的图,但是bootstraptable无法实现其布局格式,需要自己根据数据动态描绘,所以没有使用它。
//按这个顺序就可以了。 否则,将进行两次初始化访问
//$((#inventorymaintable ) ).bootstraptable ) ) refresh ) );
//inittable (;
//表数据查询
//function inittable
//$$(inventorymaintable ).bootstraptable({
//URL : URL‘findyebinventory’,
//pagination: true,
//side pagination :“服务器”
//pageNumber: pageNumber,
//pageSize: pageSize,
//pageList: pageList,
//method :‘get’在、
//content type :“APP/x-www-form-urlencoded”、
//sortable: “true”
//locale: “zh-CN”、
//uniqueId: “id”是,
//详细视图: true,
//columns: [{
//field :‘userid’,
//title: ‘“用户标识”
//、{
//field :‘minimainaccountno’,
//title: ‘“主帐户”
//、{
//field :‘biz type’、
//title: ‘“业务类型”
//、{
//field :‘instid’,
//title: ‘代理商机构’
//、{
//field :‘balance.amount’,
//title: ‘账户馀额’
//、{
//field :‘available balance.amount’,
//title: ‘可用余额’
//、{
//field :‘freeze amount.amount’,
//title: ‘冻结金额’
//、{
//field :‘system amount.amount’,
//title: ‘“系统冻结金额”
//) )、
//query params :功能(params ) )。
//这里的键的名称和控制器的变量名必须匹配,这里更改,控制器也需要同样更改
//vartemp=$('#yebform ' ).serializeJsonObject );
//temp [“pagesize”]=params.limit; //页面大小
//temp [ " page number " ]=(params.offset/params.limit ) 1; //页码
//temp[“sort”]=params.sort; //对列名进行排序
//temp [“sort order”]=params.order; //排序命令(desc,asc ) ) ) ) ) ) ) ) ) )。
//返回时间;
//;
//datatype :‘JSON’、
//onLoadError: function () (/加载失败时执行
//layer.msg (“数据加载失败”、({time : 1500、icon : 2} ) )
//;
//onload success 3360功能(RES )//加载成功时执行
//initdistributintable (RES.data.yebinventorylist.lsit [0].aftransresultist; //初始化后想执行的逻辑一般不需要使用这个
//;
//data field :‘data’,//server后端: json对应的表数据key
//响应处理程序:功能(RES )//成功加载后将数据封装为bootstraptable支持的数据格式
//if (RES.length0||RES.info.ok undefined |! res.info.ok ) {
//layer.msg (() ) ) ) )。
//return {
//“rows”: [ ],
//“总”:0
//}
//}
//layer.msg (“加载成功”
//return {
//“rows”: RES.data.yebinventorylist.list [0].mftransresultist,
//“总”: RES.data.yebinventorylist.list [0].mftransresultist.count
//}
//;
//onexpandrow : function (索引、行、$详细信息) {
//initsubtable(index,row,$detail ); //内联子表
////} () ) ) ) ) )。
//() )
//}
//init subtable=function (索引,行,$详细信息) )
//var fundArchiveVo=[]
//if(row.fundarchivevo!==nullrow.fundArchiveVo!==未定义) {
//fundarchivevo=[ row.fundarchivevo ];
//}
//var cur_table=$detail.html (
’).find (‘table’);
//$(cur_table ).bootstraptable({
//URL :‘/db/log/files.do’,
//method :‘get’在、
//query params : { id : parentid },
//Ajax选项: { id : parentid },
//UniqueID:「ID”是,
//striped: true,//是否显示行距颜色
显示//分页:假,//分页
//side pagination :“客户端”
//page number : fundarchivevo.length,
//pageSize: pageSize,
//pageList: pageList,
//columns: [{
//field :‘fund name’,
//title: ‘“基金名称”
//、{
//field :‘fundnameabbr’,
//title: ‘“基金简称”
//、{
//field :‘trustee name’,
//title: ‘“基金经理”
//、{
//field :‘fund type’,
//title: ‘“基金类型”
//、{
//field :‘sharesize’,
//title: ‘“份额规模”
//、{
//field :‘assetsize’,
//title: ‘资产规模’
//、()、
//data:fundArchiveVo
//;
//functioninitdistributintable (data )//vartable=$ (# inventorydistributiontable ).bootstraptable) ) ) ) //columns 3360 [//field : ' userid ',//title: '用户ID'//},{//field : ' minimainacccountno ',/tititition /title {//field: 'bizType ',//title: '业务类型'//},{//field: 'instId ',//title3360 '代理商'///