7.19 评标室-报表打印页面中文档的另存为与打印按钮点击后无反应
This commit is contained in:
@ -1,12 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
|
||||
<title>招标采购中心 | 文档控件编辑器</title>
|
||||
<script type="text/javascript" src="officecontrol/jquery.js"></script>
|
||||
<script type="text/javascript" src="officecontrol/ntko4Path.20220624.js"></script>
|
||||
<link href="officecontrol/ntkoStyle.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="officecontrol/ntkoStyle.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
var path; //文档地址
|
||||
@ -57,12 +58,13 @@
|
||||
|
||||
<!--AfterPublishAsPDFToURL-->
|
||||
|
||||
<body onload="path=getQueryString('path');fileName=getQueryString('fileName');fileType=getQueryString('fileType');init(path);">
|
||||
<body
|
||||
onload="path=getQueryString('path');fileName=getQueryString('fileName');fileType=getQueryString('fileType');init(path);">
|
||||
|
||||
<script type="text/javascript" for="TANGER_OCX" event="OnDocumentOpened(File, Document)">
|
||||
<script type="text/javascript" for="TANGER_OCX" event="OnDocumentOpened(File, Document)">
|
||||
|
||||
</script>
|
||||
<div style="
|
||||
</script>
|
||||
<div style="
|
||||
background-color: #b30000;
|
||||
color:white;
|
||||
height: 56px;
|
||||
@ -70,35 +72,37 @@
|
||||
display: flex;
|
||||
position: relative;
|
||||
">
|
||||
<div style="font-size: 16px; font-weight: 600;">
|
||||
<img src="logo.svg" style="height: 30px; position: absolute; top: 13px; margin-left: 20px; margin-right: 10px;"/>
|
||||
<span style="position: absolute; left: 70px; font-size: 16px; font-weight: 600; display: inline-block;">中国联通智慧供应链平台 | 招标采购中心</span>
|
||||
<div style="font-size: 16px; font-weight: 600;">
|
||||
<img src="logo.svg" style="height: 30px; position: absolute; top: 13px; margin-left: 20px; margin-right: 10px;" />
|
||||
<span
|
||||
style="position: absolute; left: 70px; font-size: 16px; font-weight: 600; display: inline-block;">中国联通智慧供应链平台 |
|
||||
招标采购中心</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="elementPosition">
|
||||
<button type="button" class="btnStyle btnStyle02" onclick="generalProp(2)">另存为</button>
|
||||
<button type="button" class="btnStyle btnStyle02" onclick="generalProp(4)">打印</button>
|
||||
<button type="button" class="btnStyle btnStyle02" onclick="closeBTN()">关闭</button>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
<div class="elementPosition">
|
||||
<button type="button" class="btnStyle btnStyle02" onclick="generalProp(2)">另存为</button>
|
||||
<button type="button" class="btnStyle btnStyle02" onclick="generalProp(4)">打印</button>
|
||||
<button type="button" class="btnStyle btnStyle02" onclick="closeBTN()">关闭</button>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
||||
function closeBTN() {
|
||||
window.open('', '_parent', '');
|
||||
window.close();
|
||||
}
|
||||
//调用文档通用属性方法 1-打开 2-保存(另存为) 4-打印
|
||||
function generalProp(param) {
|
||||
var name = DocfileCode;
|
||||
if(fileName != null) {
|
||||
name = fileName;
|
||||
function closeBTN() {
|
||||
window.open('', '_parent', '');
|
||||
window.close();
|
||||
}
|
||||
TANGER_OCX.WebFileName = name + "." + fileType;//文档默认名称
|
||||
TANGER_OCX.ShowDialog(param)
|
||||
}
|
||||
</script>
|
||||
<div class="divBody">
|
||||
<script type="text/javascript" src="officecontrol/ntkoofficecontrol.min.20220624.js"></script>
|
||||
</div>
|
||||
//调用文档通用属性方法 1-打开 2-保存(另存为) 4-打印
|
||||
function generalProp(param) {
|
||||
var name = '新建文本文档';
|
||||
if (fileName != null) {
|
||||
name = fileName;
|
||||
}
|
||||
TANGER_OCX.WebFileName = name + "." + fileType;//文档默认名称
|
||||
TANGER_OCX.ShowDialog(param)
|
||||
}
|
||||
</script>
|
||||
<div class="divBody">
|
||||
<script type="text/javascript" src="officecontrol/ntkoofficecontrol.min.20220624.js"></script>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
Reference in New Issue
Block a user