Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
xiaofang li
MeterSphere
Commits
e09c468e
Commit
e09c468e
authored
3 years ago
by
chenjianxing
Committed by
jianxing
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
fix: 打包报错
parent
53816888
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/src/common/js/utils.js
+0
-41
frontend/src/common/js/utils.js
with
0 additions
and
41 deletions
+0
-41
frontend/src/common/js/utils.js
+
0
-
41
View file @
e09c468e
...
...
@@ -375,53 +375,12 @@ export function windowPrint(id, zoom) {
//把获取的 局部div内容赋给body标签, 相当于重置了 body里的内容
window
.
document
.
body
.
innerHTML
=
jubuData
;
//调用打印功能
if
(
getUserAgent
()
==
"
IE
"
)
{
clearPageSetup
();
}
window
.
print
();
document
.
getElementsByTagName
(
'
body
'
)[
0
].
style
.
zoom
=
1
;
window
.
document
.
body
.
innerHTML
=
bdhtml
;
//重新给页面内容赋值;
return
false
;
}
// 打印时清除页眉页脚及打印链接
function
clearPageSetup
(){
let
hkey_root
,
hkey_path
,
hkey_key
;
hkey_root
=
"
HKEY_CURRENT_USER
"
;
hkey_path
=
"
\\
Software
\\
Microsoft
\\
Internet Explorer
\\
PageSetup
\\
"
;
try
{
let
regWsh
=
new
ActiveXObject
(
"
WScript.Shell
"
);
hkey_key
=
"
header
"
;
regWsh
.
RegWrite
(
hkey_root
+
hkey_path
+
hkey_key
,
""
);
hkey_key
=
"
footer
"
;
regWsh
.
RegWrite
(
hkey_root
+
hkey_path
+
hkey_key
,
""
);
}
catch
(
e
){}
}
function
getUserAgent
()
{
let
explorer
=
window
.
navigator
.
userAgent
;
//ie
if
(
explorer
.
indexOf
(
"
MSIE
"
)
>=
0
)
{
return
"
IE
"
;
}
//firefox
else
if
(
explorer
.
indexOf
(
"
Firefox
"
)
>=
0
)
{
return
"
Firefox
"
;
}
//Chrome
else
if
(
explorer
.
indexOf
(
"
Chrome
"
)
>=
0
){
return
"
Chrome
"
;
}
//Opera
else
if
(
explorer
.
indexOf
(
"
Opera
"
)
>=
0
){
return
"
Opera
"
;
}
//Safari
else
if
(
explorer
.
indexOf
(
"
Safari
"
)
>=
0
){
return
"
Safari
"
;
}
}
export
function
getBodyUploadFiles
(
obj
,
runData
)
{
let
bodyUploadFiles
=
[];
obj
.
bodyUploadIds
=
[];
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help