解决自定义查询查看详情后报错

master
zengwh 6 years ago
parent 681566c847
commit 5cf299767e

@ -978,7 +978,7 @@ public class TemplateSearchController {
* @UpdateRemark: * @UpdateRemark:
* @Version: 1.0 * @Version: 1.0
*/ */
@RequestMapping(value="cutomSearchTable",produces = {"text/json;charset=UTF-8"}) @RequestMapping(value="cutomSearchTable",produces = {"text/json;charset=UTF-8"},method = RequestMethod.POST)
@ResponseBody @ResponseBody
public String cutomSearchTable(String sql, Integer page, Integer limit, HttpServletRequest request) { public String cutomSearchTable(String sql, Integer page, Integer limit, HttpServletRequest request) {
if(StringUtils.isNoneBlank(sql)) { if(StringUtils.isNoneBlank(sql)) {

@ -142,6 +142,8 @@ function freshTable(){
} }
//生成用户数据 //生成用户数据
$('#mytab').bootstrapTable({ $('#mytab').bootstrapTable({
method: 'post',
contentType:'application/x-www-form-urlencoded; charset=UTF-8',
toolbar: '#toolbar', //工具按钮用哪个容器 toolbar: '#toolbar', //工具按钮用哪个容器
striped: true, //是否显示行间隔色 striped: true, //是否显示行间隔色
cache: false, //是否使用缓存默认为true所以一般情况下需要设置一下这个属性* cache: false, //是否使用缓存默认为true所以一般情况下需要设置一下这个属性*
@ -343,7 +345,7 @@ function AddFunctionAlty(value, row, index) {
str += '<button type="button" class="btn btn-success TableView btn-sm" onclick="unlock('+patientId+')">解锁</button>'; str += '<button type="button" class="btn btn-success TableView btn-sm" onclick="unlock('+patientId+')">解锁</button>';
}else{ }else{
if((null != isShowDetail && isShowDetail == 1) || showRecord == "1"){ if((null != isShowDetail && isShowDetail == 1) || showRecord == "1"){
str += '<a type="button" href="'+returnShowDetailUrl(row.patientId)+'" class="btn btn-danger TableView btn-sm" onclick="showDetail('+patientId+')" target="_blank">查看详情</a>'; str += '<a type="button" href="'+returnShowDetailUrl(row.patientId)+'" class="btn btn-danger TableView btn-sm" target="_blank">查看详情</a>';
}else{ }else{
if(borrowingOper == 1){ if(borrowingOper == 1){
str += '<button type="button" class="btn btn-primary TableView btn-sm" onclick="borrowing('+patientId+')" data-toggle="modal" data-target="#myModal1">借阅申请</button>'; str += '<button type="button" class="btn btn-primary TableView btn-sm" onclick="borrowing('+patientId+')" data-toggle="modal" data-target="#myModal1">借阅申请</button>';

Loading…
Cancel
Save