|
你好,配置如下!
@Controller
@RequestMapping("/nologinUserInfoController")
@JAuth(auth=Permission.SKIP_AUTH)
public class NologinUserInfoController extends BaseController {
/**
* Logger for this class
*/
private static final Logger logger = Logger.getLogger(NologinUserInfoController.class);
@Autowired
private NologinUserInfoServiceI nologinUserInfoService;
@Autowired
private SystemService systemService;
@Autowired
private Validator validator;
@Autowired
private JeecgMiniDao miniDao;
/**
* nologin_user_info列表 页面跳转
*
* @return
*/
@RequestMapping(params = "list")
public ModelAndView list(HttpServletRequest request) {
return new ModelAndView("com/jeecg/wdkj/nologin/nologinUserInfoList");
}
/**
* easyui AJAX请求数据
*
* @param request
* @param response
* @param dataGrid
* @param user
*/
@RequestMapping(params = "datagrid")
public void datagrid(NologinUserInfoEntity nologinUserInfo, HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
StringBuilder authSql = new StringBuilder();
MiniDaoPage<NologinUserInfoEntity> list = miniDao.getDepEntities(nologinUserInfo, dataGrid.getPage(), dataGrid.getRows(), authSql.toString());
dataGrid.setTotal(list.getTotal());
dataGrid.setResults(list.getResults());
TagUtil.datagrid(response, dataGrid);
}
前台不登陆访问Url localhost:8080/jeecg/nologinUserInfoController.do?list
[img]file:///C:\Users\Administrator\AppData\Roaming\Tencent\Users\496185951\QQ\WinTemp\RichOle\3EZXULS1{F86JZ@]74[M~DB.png[/img]
后台报错,
请帮忙给出解决方法,谢谢!
附jsp
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
<div region="center" style="padding:0px;border:0px">
<t:datagrid name="nologinUserInfoList" checkbox="true" pagination="true" fitColumns="true" title="企业账户查询" actionUrl="nologinUserInfoController.do?datagrid" idField="id" fit="true" queryMode="group">
<t:dgCol title="编号" field="id" queryMode="single" width="120" hidden="true"></t:dgCol>
<t:dgCol title="部门名称" field="departname" queryMode="single" query="true" width="120"></t:dgCol>
<t:dgCol title="地址" field="address" queryMode="single" query="true" width="120"></t:dgCol>
<t:dgCol title="真实姓名" field="realname" queryMode="single" query="true" width="120"></t:dgCol>
<t:dgCol title="用户账号" field="username" queryMode="single" query="true" width="120"></t:dgCol>
<t:dgCol title="用户KEY" field="userkey" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="操作" field="opt" width="100" hidden="true"></t:dgCol>
<t:dgDelOpt title="删除" url="nologinUserInfoController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/>
<t:dgToolBar title="录入" icon="icon-add" url="nologinUserInfoController.do?goAdd" funname="add"></t:dgToolBar>
<t:dgToolBar title="编辑" icon="icon-edit" url="nologinUserInfoController.do?goUpdate" funname="update"></t:dgToolBar>
<t:dgToolBar title="批量删除" icon="icon-remove" url="nologinUserInfoController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>
<t:dgToolBar title="查看" icon="icon-search" url="nologinUserInfoController.do?goUpdate" funname="detail"></t:dgToolBar>
<t:dgToolBar title="导入" icon="icon-put" funname="ImportXls"></t:dgToolBar>
<t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar>
<t:dgToolBar title="模板下载" icon="icon-putout" funname="ExportXlsByT"></t:dgToolBar>
</t:datagrid>
</div>
</div>
<script src = "webpage/com/jeecg/wdkj/nologin/nologinUserInfoList.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('div#nologinUserInfoListtb span[style="float:left;"]>a').hide();
});
//导入
function ImportXls() {
openuploadwin('Excel导入', 'nologinUserInfoController.do?upload', "nologinUserInfoList");
}
//导出
function ExportXls() {
JeecgExcelExport("nologinUserInfoController.do?exportXls","nologinUserInfoList");
}
//模板下载
function ExportXlsByT() {
JeecgExcelExport("nologinUserInfoController.do?exportXlsByT","nologinUserInfoList");
}
</script>
[img]file:///C:\Users\Administrator\AppData\Roaming\Tencent\Users\496185951\QQ\WinTemp\RichOle\3EZXULS1{F86JZ@]74[M~DB.png[/img]
|
-
|