Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
smart
Project
Project
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
wangqinghua
smart
Commits
292b526f
Commit
292b526f
authored
Jan 30, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
455afa69
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
12 deletions
+1
-12
template.component.ts
src/main/webapp/app/overAll/template/template.component.ts
+1
-1
common.service.ts
src/main/webapp/app/shared/common/common.service.ts
+0
-11
No files found.
src/main/webapp/app/overAll/template/template.component.ts
View file @
292b526f
...
@@ -429,7 +429,7 @@ export class TemplateComponent implements OnInit {
...
@@ -429,7 +429,7 @@ export class TemplateComponent implements OnInit {
this
.
workSer
.
downloadTemplate
(
'templateExport'
,
res
.
data
).
subscribe
(
this
.
workSer
.
downloadTemplate
(
'templateExport'
,
res
.
data
).
subscribe
(
(
data
)
=>
{
(
data
)
=>
{
this
.
isDownload
=
false
;
this
.
isDownload
=
false
;
this
.
commonSer
.
download
XMLFile
(
'XML模版
'
,
data
)
this
.
commonSer
.
download
File
(
'XML模版.xml
'
,
data
)
}
}
)
)
}
else
{
}
else
{
...
...
src/main/webapp/app/shared/common/common.service.ts
View file @
292b526f
...
@@ -96,17 +96,6 @@ export class CommonService implements OnInit {
...
@@ -96,17 +96,6 @@ export class CommonService implements OnInit {
document
.
body
.
removeChild
(
link
);
document
.
body
.
removeChild
(
link
);
}
}
downloadXMLFile
(
title
,
data
:
Response
)
{
const
blob
=
new
Blob
([
data
],
{
type
:
"application/octet-stream"
});
const
url
=
window
.
URL
.
createObjectURL
(
blob
);
let
link
=
document
.
createElement
(
"a"
);
link
.
setAttribute
(
"href"
,
url
);
link
.
setAttribute
(
"download"
,
title
);
document
.
body
.
appendChild
(
link
);
link
.
click
();
document
.
body
.
removeChild
(
link
);
}
/**
/**
* 部分区域全屏
* 部分区域全屏
* @param element 全屏区域
* @param element 全屏区域
...
...
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