/**
* @param pageUtil 分页工具类
* @param cliCorpQuery 查询类
* @param model model
* @return String
*/
@RequestMapping(value = {"/list"}, method = RequestMethod.GET)
public String list(PageUtil<CliCorp> pageUtil, CliCorpQuery cliCorpQuery, Model model) {
PageUtil<CliCorp> corps;
try {
corps = corpClientService.queryByPage(pageUtil, cliCorpQuery);
} catch (Exception e) {
logger.error("queryByPage error:" + e.getMessage());
return "queryByPage error";
}
model.addAttribute("corps", corps);
return VIEW_PATH + "list";
}
<tr th:each="corp:${corps.contents}">
<td><span th:text="${corp.name}"></span></td>
<td><span th:text="${corp.creditCode}"></span></td>
<td><span th:text="${corp.taxNo}"></span></td>
<td><span th:text="${corp.showName}"></span></td>
<td><span th:text="${corp.bank}"></span></td>
<td><span th:text="${corp.bankAccount}"></span></td>
<td><span th:text="${corp.agent}"></span></td>
<td><span th:text="${corp.address}"></span></td>
<td><span th:text="${corp.status}"></span></td>
<td><span th:text="${corp.creator}"></span></td>
<td>
<button type="button" th:onclick="'javascript:check('+${corp.id}+',2)'">审核
</button>
<button type="button" th:onclick="'javascript:check('+${corp.id}+',3)'">拒绝
</button>
</td>
</tr>
function check(id, status) {
$.ajax({
type: "POST",
data: {id: id, status: status},
url: "/admin/corp/check",
success: function (data) {
if (data == "认证成功") {
window.location.href = ("/admin/corp/list");
} else {
alert("认证失败");
}
},
error: function (data) {
alert("认证失败");
}
});
}
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有