Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hg-smart
Commits
25a43a04
Commit
25a43a04
authored
Oct 19, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.XLS无法预览的问题
parent
6fab413e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
HGWD002A1.js
src/main/webapp/HG/WD/HGWD002A1.js
+3
-3
No files found.
src/main/webapp/HG/WD/HGWD002A1.js
View file @
25a43a04
...
@@ -61,12 +61,12 @@ function previewFile(docId, docType, docName) {
...
@@ -61,12 +61,12 @@ function previewFile(docId, docType, docName) {
$
(
"#descDiv"
).
css
(
'display'
,
'none'
);
$
(
"#descDiv"
).
css
(
'display'
,
'none'
);
if
(
isXml
(
docType
))
{
if
(
isXml
(
docType
))
{
previewXml
(
docId
);
previewXml
(
docId
);
}
else
if
(
isExcel
(
docType
))
{
previewExcel
(
docId
);
}
else
if
(
true
)
{
}
else
if
(
true
)
{
previewOnline
(
docId
,
docName
);
previewOnline
(
docId
,
docName
);
}
else
if
(
isText
(
docType
))
{
}
else
if
(
isText
(
docType
))
{
previewText
(
docId
);
previewText
(
docId
);
}
else
if
(
isExcel
(
docType
))
{
previewExcel
(
docId
);
}
else
if
(
isWord
(
docType
))
{
}
else
if
(
isWord
(
docType
))
{
previewDocx
(
docId
);
previewDocx
(
docId
);
}
else
if
(
isImage
(
docType
))
{
}
else
if
(
isImage
(
docType
))
{
...
@@ -167,7 +167,7 @@ function isExcel(docType) {
...
@@ -167,7 +167,7 @@ function isExcel(docType) {
if
(
isBlank
(
docType
))
{
if
(
isBlank
(
docType
))
{
return
false
;
return
false
;
}
}
const
extensions
=
[
'xls'
,
'xlsx'
];
const
extensions
=
[
'xls'
];
return
extensions
.
includes
(
docType
.
toLowerCase
());
return
extensions
.
includes
(
docType
.
toLowerCase
());
}
}
...
...
Write
Preview
Markdown
is supported
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