|
|
|
|
@ -69,7 +69,8 @@ $('#mytab').bootstrapTable({
|
|
|
|
|
{
|
|
|
|
|
title:'操作',
|
|
|
|
|
formatter: function(value,row){
|
|
|
|
|
return '<a type="button" href="'+path+'/font/showRecordFont?patientId='+row.patientId+'" class="btn btn-danger TableView btn-sm" target="_blank">查看详情</a>';
|
|
|
|
|
var patientId = "'" + row.patientId + "'";
|
|
|
|
|
return '<button type="button" class="btn btn-danger TableView btn-sm" onclick="showDetail('+patientId+')">查看详情</button>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
@ -95,16 +96,15 @@ $('#mytab').bootstrapTable({
|
|
|
|
|
},
|
|
|
|
|
//双击事件
|
|
|
|
|
onDblClickRow: function (row) {
|
|
|
|
|
window.open(returnShowDetailUrl(row.patientId));
|
|
|
|
|
showDetail(row.patientId);
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
//定义查看详情的请求地址url
|
|
|
|
|
function returnShowDetailUrl(patientId){
|
|
|
|
|
return path + '/commom/showRecord174?patientId=' + patientId;
|
|
|
|
|
return path + '/font/showRecordFont?patientId=' + patientId;
|
|
|
|
|
}
|
|
|
|
|
//病案預覽
|
|
|
|
|
//查看详情
|
|
|
|
|
function showDetail(patientId){
|
|
|
|
|
//隐藏模板选项
|
|
|
|
|
window.location.href=returnShowDetailUrl(patientId);
|
|
|
|
|
window.open(returnShowDetailUrl(patientId),'fullscreen','fullscreen,scrollbars');
|
|
|
|
|
}
|
|
|
|
|
|