wangyucan1321 发表于 2013-11-26 12:22:39

如何在List界面添加N多标题,点击跳转或者查询当前页面

本帖最后由 wangyucan1321 于 2013-11-26 12:23 编辑

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAh4AAAA+CAIAAADrkoUCAAAObUlEQVR4nO2dfXATdRrHF4W5wcGgAucMc+PcOc6cN3fhTVtvEBCRF9GrhRNfrq2JigpKOF4kuiJQ2qMnboVOuxSE1jSt2rQQUEEILRRaTCEK5SVtQTmEWtpC6Uuatoi2wHN/7GazSTZpSja7yfp85vtHu/3tb5/n+S2/b55NUwjHVUChUCgUSkQR7VcBhUKhUCgRRbR3AwqFQqFQIopo6wZU8AKCUJJkrycKhVKkiNYuQAUv2c1AXMleTxQKpUjh5tI/yW4GEWgtsmcRXeVCoX4LIlq6ABW8uF1G9kgiJ4tor4YEacpuiuGWlKuAioolI1o6ARW83AsjdySRk0W0V0OCNGXfR8K+T0m4CqioWDLiSicwKtBpVWpGVEER5fqaJ53Fc5jwgCudcKWIUqm1SUXc1/qUImOsWp9yGLjLsce5I4eNsfwZeAdj0+2eQVIFAjHrk3R635DYGMQTtzDiTiuxxM0i2qshQZqy7yPhlpSrgIqKJfO4gNfGzTgEf2cXGMPKksQzhgKdVhVnrOB/fdiSFOc+6Jqcbzb2lDjvmb1sLKnIksT7lgmsIl3PnOX6wp4Sp1XpLIwtobVIkEW0V0OCNJVx20RCXkqtpPIKSDQ7gVO+TqtSU/lOZpv26gD0qys9xjR7yJKo1qp0lmYnNFcyrYYxUa2N1VGxPp1EbLo9n+cZiTqBDinRxFxIv9pkjFVrE03QzEZFrU7Xc8FwB/PdX9hXx2lVOgsTBnOiiOIWRtxpJZa4WUR7NSRIUxm3TSTkpdRKKq+AxGUncDLqtCo1ZXRCebqe+YL9kYlidnPXGL8PxLhJVrttQJtogstOS6JaG5Nuv+w7p4lyjeGOaxNNcLnSmJhuZyfUUYlqbUycXqWzXHZaEl3BXOaFWi5gh7xpRRK3MOJOK7HEzSLaqyFBm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jey3p2wOJ78eI3AFDZa43ojQ0PTpNBrZ99PkQh/rqQvlhYsKrV9MLNk0s6Wja98/fdFaxYFe6arGdDQZlqgazEzfqPRiNO1MDidzurq6qqqqsbGxu7u7vPV1Wd1I8EW23V41jm/7tJX18I0Vn5GobUgCCIZfXxksuZCTdGhImobNWX1tJ4bPZPzHyNWEUQa8cCWB9p72+bRen2mfuv+7Udrff9UCfNgxutjIZzV8Mb4+QWnfrlLbV3t7NR/wM91lrOFD2c++N6694I80dUxMXZmE7IWgQdi3Jsz3q1NCBytrDwz9z44EtNhfaa60HALMzC/7CbYR2HXgiCIlAT1h16O/+94PDUbAJaWLHnU8OjETyck7Ur6Ba69nZtavF/4M+S++697a3OZTsDupH/u8mre3EHP/Om51OeXfaTff2B/kGfxw3U5HxcmGzj3vW9L4Hcjv1WOHTly8vX7oTJm96qpPgEKNywCXQl2LQiCyE1Q1nKu4dzYd8bVtdQDQC/0XofrANDR3Tn5nbjy4318FEMalmYuNX1hCvRp9nAhprV0d3d/a7V+Pn/m9s/yxZsSQRBEaoL9o/oZuzIfJscnZc5NzHgtYd3rmvVvjl824+0tK/CPKiIIgiBe4H8FhiAIgogMWguCIAgiMmgtCIIgiMigtSAIgiAig9aCIAiCiAxaC4IgCCIyaC0IgiCIyKC1IAiCICKD1oIgCIKIDFoLgiAIIjL/B+Qo+JWzZjAQAAAAAElFTkSuQmCC
1、就是上面红的框框,我想加一些标题,点击的时候对当前页面的grid进行加载,字段可能不一样,也就是跳转到其他页面。
2、点击上面的红色框框,字段是一样的,也就是对当前页面的查询?
这个功能能不能做?我现在不会的是如何加框框,其他都好弄。3.3.2

wangyucan1321 发表于 2013-11-28 15:22:06

这个东西偶弄出来了.
1、首先在List界面加这些
<t:datagrid name="projectInfoList" title= '项目信息管理&nbsp; &nbsp;&nbsp; &nbsp;
<aid="state" style="cursor:pointer;" onclick="returnBase(0)" >新开</a> &nbsp; &nbsp;&nbsp;
<astyle="cursor:pointer;" onclick="returnBase(1)">开工</a>&nbsp; &nbsp;&nbsp;
<astyle="cursor:pointer;" onclick="returnBase(2)">在建</a>&nbsp; &nbsp;&nbsp;
<astyle="cursor:pointer;" onclick="returnBase(3)">竣工</a> &nbsp; &nbsp;&nbsp;
<astyle="cursor:pointer;" onclick="returnBase(4)">投产</a>                                                                                      actionUrl="projectInfoController.do?datagrid" idField="id" fit="true" checkbox="true">
2、然后写一个
function returnBase(id){
$('#projectInfoList').datagrid({
                url:'projectInfoController.do?datagrid&auditState='+id,
                pageNumber:1,       
        });
}
3、controller:
        private DataGrid dataGrid1;
@RequestMapping(params = "datagrid")
        public void datagrid(ProjectInfoEntity projectInfo,HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
                //新的dataGrid1赋值
                if(dataGrid.getField() != null && !"".equals(dataGrid.getField())){
                        dataGrid1 = dataGrid;
                }else{
                        dataGrid = dataGrid1;
                }               
               
CriteriaQuery cq = new CriteriaQuery(ProjectInfoEntity.class, dataGrid);
//查询条件组装器
org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, projectInfo,      request.getParameterMap());
this.projectInfoService.getDataGridReturn(cq, true);
TagUtil.datagrid(response, dataGrid);
页: [1]
查看完整版本: 如何在List界面添加N多标题,点击跳转或者查询当前页面