Merge remote-tracking branch 'origin/master'
commit
70e94bd1e4
@ -0,0 +1,176 @@
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<c:set var="path" value="${pageContext.request.contextPath}"/>
|
||||
<%@ include file="/WEB-INF/jspf/common.jspf" %>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>其他管理</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta http-equiv=X-UA-Compatible IE=EmulateIE7>
|
||||
<!--[if lt IE 9]>
|
||||
<script type="text/javascript" src="${path}/static/js/html5shiv.min.js"></script>
|
||||
<script type="text/javascript" src="${path}/static/js/jquery-1.11.3.min.js"></script>
|
||||
<script type="text/javascript" src="${path}/static/js/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<script>
|
||||
var path = "${path}";
|
||||
</script>
|
||||
<style type="text/css">
|
||||
.mainDiv{
|
||||
background-color: #fff;
|
||||
}
|
||||
/**搜索区*/
|
||||
.searchDiv {
|
||||
padding-top: 10px;
|
||||
width:100%;
|
||||
height: 30px;
|
||||
}
|
||||
.dateSearchDiv{
|
||||
width:29%;
|
||||
}
|
||||
.dateSearchInput{
|
||||
width:30%;
|
||||
margin-left:5px;
|
||||
}
|
||||
.dateLabelDiv{
|
||||
width: 30%;
|
||||
text-align: right;
|
||||
}
|
||||
.searchInput{
|
||||
margin-left: 5px;
|
||||
text-align: right;
|
||||
}
|
||||
.searchElement{
|
||||
width:40%;
|
||||
}
|
||||
.searchInputElement{
|
||||
width:60%;
|
||||
}
|
||||
.labelDiv{
|
||||
margin-left: 2%;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: center;
|
||||
height: 1.5vw;
|
||||
}
|
||||
/**查询按钮组*/
|
||||
.btnsDiv{
|
||||
margin-top: 15px;
|
||||
height:35px;
|
||||
text-align: right;
|
||||
margin-right: 25px;
|
||||
}
|
||||
/**表格div*/
|
||||
.tableDiv{
|
||||
margin-left: 1%;
|
||||
margin-top: 1vw;
|
||||
}
|
||||
.modelBtns{
|
||||
width: 70%;
|
||||
height: 76%;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.control-label1{
|
||||
width:30%;
|
||||
text-align: right;
|
||||
padding-top:2px;
|
||||
font-weight: 700;
|
||||
|
||||
}
|
||||
.warningLabel{
|
||||
margin-left:102px;
|
||||
font-weight: 700;
|
||||
}
|
||||
.warningDiv{
|
||||
margin-left: 134px;
|
||||
margin-top: -20px;
|
||||
}
|
||||
/**级联病案号内容*/
|
||||
.mouseOver{
|
||||
background-color: #708090;
|
||||
color:#FFFAFA;
|
||||
}
|
||||
.mouseOut{
|
||||
background-color: #FFFAFA;
|
||||
color:#000000;
|
||||
}
|
||||
/*模态框头*/
|
||||
.modal-header{
|
||||
background-color: #199ED8;
|
||||
text-align: center;
|
||||
}
|
||||
.loading {
|
||||
width: 160px;
|
||||
height: 56px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
line-height: 56px;
|
||||
color: #fff;
|
||||
padding-left: 60px;
|
||||
font-size: 15px;
|
||||
background: #000;
|
||||
opacity: 0.7;
|
||||
z-index: 9999;
|
||||
-moz-border-radius: 20px;
|
||||
-webkit-border-radius: 20px;
|
||||
border-radius: 20px;
|
||||
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=70);
|
||||
}
|
||||
.input-sm {
|
||||
height: 35px;
|
||||
padding: 5px 10px;
|
||||
font-size: 12px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="main">
|
||||
<div class="headDiv">
|
||||
<div class="headSpanDiv">
|
||||
<span class="headspan">
|
||||
扫描审核统计
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mainDiv">
|
||||
<%--<div class="searchDiv">
|
||||
<div class="searchInput left">
|
||||
<div class="searchElement left">
|
||||
<label class="labelDiv">病案号:</label>
|
||||
</div>
|
||||
<div class="searchInputElement left">
|
||||
<input type="text" class="form-control input-sm" id="inpatientNo" style="width: 150px">
|
||||
</div>
|
||||
</div>
|
||||
<div class="searchInput left" style="margin-left: 2vw">
|
||||
<div class="searchElement left">
|
||||
<label class="labelDiv">期数:</label>
|
||||
</div>
|
||||
<div class="searchInputElement left">
|
||||
<input type="text" class="form-control input-sm" id="periods" style="width: 150px">
|
||||
</div>
|
||||
</div>
|
||||
<div class="left" style="margin-left: 3vw">
|
||||
<button type="button" class="btn btn-sm btn-primary" style="width: 5vw" onclick="refreshTable()">查询</button>
|
||||
</div>
|
||||
</div>--%>
|
||||
<!--数据表格-->
|
||||
<div id="tableDiv" class="tableDiv">
|
||||
<input type="hidden" id="checks">
|
||||
<table id="mytab" class="table text-nowrap table-bordered">
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript" src="${path}/static/js/recordManage/commomSearch/scanReview.js?t=4"></script>
|
||||
<script type="text/javascript" src="${path}/static/js/dateUtil.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,90 @@
|
||||
let pdfUrl = '';
|
||||
let pageNum = 1;
|
||||
$().ready(function (data) {
|
||||
document.getElementById('pdf-file-input').addEventListener('change', function(event) {
|
||||
const file = event.target.files[0];
|
||||
if (file) {
|
||||
const fileReader = new FileReader();
|
||||
fileReader.onload = function() {
|
||||
pdfUrl = URL.createObjectURL(new Blob([this.result], { type: 'application/pdf' }));
|
||||
document.getElementById('showMegerPdfIframe').src = `${pdfUrl}#page=${pageNum}×tamp=${Date.now()}`;
|
||||
//updatePage();
|
||||
};
|
||||
fileReader.readAsArrayBuffer(file);
|
||||
}
|
||||
});
|
||||
|
||||
// document.getElementById('download-page').addEventListener('click', function() {
|
||||
// const iframe = document.getElementById('iframe1');
|
||||
// const pdfUrl = iframe.src;
|
||||
// const pageNum = getSelectedPageNumber(); // 假设有一个函数getSelectedPageNumber()来获取当前页码
|
||||
//
|
||||
// if (pdfUrl) {
|
||||
// getBlobAsBase64(pdfUrl).then(base64Data => {
|
||||
// fetch(path + '/commom/savePdfPage', {
|
||||
// method: 'POST',
|
||||
// headers: {
|
||||
// 'Content-Type': 'application/json'
|
||||
// },
|
||||
// body: JSON.stringify({ base64Data, pageNum })
|
||||
// })
|
||||
// .then(response => response.json())
|
||||
// .then(data => {
|
||||
// if(data.status == 'success'){
|
||||
// toastr.success(data.message);
|
||||
// }
|
||||
// })
|
||||
// .catch(error => {
|
||||
// toastr.error(error);
|
||||
// });
|
||||
// })
|
||||
// }
|
||||
// });
|
||||
|
||||
// document.getElementById('next-page-btn').addEventListener('click', function() {
|
||||
// pageNum++;
|
||||
// updatePage();
|
||||
// });
|
||||
//
|
||||
// document.getElementById('prev-page-btn').addEventListener('click', function() {
|
||||
// if (pageNum > 1) {
|
||||
// pageNum--;
|
||||
// updatePage();
|
||||
// }
|
||||
// });
|
||||
});
|
||||
|
||||
function updatePage() {
|
||||
if (pdfUrl) {
|
||||
document.getElementById('current-page').textContent = pageNum;
|
||||
const iframe = document.getElementById('showMegerPdfIframe');
|
||||
// 重新创建 iframe 元素以强制重新加载
|
||||
const newIframe = document.createElement('iframe');
|
||||
newIframe.id = 'showMegerPdfIframe';
|
||||
newIframe.width = '100%';
|
||||
newIframe.height = '100%';
|
||||
newIframe.src = `${pdfUrl}#page=${pageNum}×tamp=${Date.now()}`;
|
||||
// 替换旧的 iframe 元素
|
||||
iframe.parentNode.replaceChild(newIframe, iframe)
|
||||
}
|
||||
}
|
||||
|
||||
var iframe = document.getElementById("showMegerPdfIframe");
|
||||
if (iframe.attachEvent) {
|
||||
iframe.attachEvent("onreadystatechange", function () {
|
||||
//此事件在内容没有被载入时候也会被触发,所以我们要判断状态
|
||||
//有时候会比较怪异 readyState状态会跳过 complete 所以我们loaded状态也要判断
|
||||
if (iframe.readyState === "complete" || iframe.readyState == "loaded") {
|
||||
//代码能执行到这里说明已经载入成功完毕了
|
||||
//要清除掉事件
|
||||
iframe.detachEvent("onreadystatechange", arguments.callee);
|
||||
//这里是回调函数
|
||||
}
|
||||
});
|
||||
} else {
|
||||
iframe.addEventListener("load", function () {
|
||||
$("#iframeLoad").val(1);
|
||||
//代码能执行到这里说明已经载入成功完毕了
|
||||
this.removeEventListener("load", arguments.call, false);
|
||||
}, false);
|
||||
}
|
||||
Loading…
Reference in New Issue