- 注册时间
- 2016-6-20
- 最后登录
- 2024-8-18
- 阅读权限
- 10
- 积分
- 463
- 精华
- 0
- 帖子
- 73
|
felt 发表于 2017-3-23 15:43
把代码和数据打包上来,回复高级模式可以上传文件 - var temp = new mini.DataGrid();
- temp.set({
- style:"width:100%;",
- url:"${ctx}/zjfx/account/json",
- fitColumns:"true",
- showPager:false,
- frozenStartColumn:0,
- frozenEndColumn:3,
- columns:[
- {headerStyle:"font-weight:bolder", width:"50" , type:"indexcolumn" ,headerAlign:"center", align:"center",header:"序号"},
- {headerStyle:"font-weight:bolder", width:"50" , field:"searchDemand" ,headerAlign:"center", align:"center",renderer:"onActionRendererOper",header:"查看"},
- {headerStyle:"font-weight:bolder", width:"140" , field:"dataEnd",dateFormat:"yyyy-MM-dd HH:mm:ss",headerAlign:"center", align:"center",header:"开始时间"},
- {headerStyle:"font-weight:bolder", width:"140" , field:"dataStart" ,dateFormat:"yyyy-MM-dd HH:mm:ss",headerAlign:"center", align:"center",header:"结束时间"}
- ]
- });
- temp.render(td);
- temp.load({recordId:recordId},function(){
- });
复制代码
|
|