Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
f017d515
Commit
f017d515
authored
Dec 06, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix] fixed export excell with loading bar
parent
2e790698
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
vat-report-view.ctrl.js
...p/common/controls/vat-report-view/vat-report-view.ctrl.js
+5
-0
No files found.
atms-web/src/main/webapp/app/common/controls/vat-report-view/vat-report-view.ctrl.js
View file @
f017d515
...
...
@@ -987,6 +987,7 @@
$q
.
all
(
promiss
).
then
(
function
()
{
//重新排序报表
$
(
'#busy-indicator-container'
).
show
();
exportReportData
=
_
.
sortBy
(
exportReportData
,
function
(
item
)
{
return
item
.
orderIndex
;
});
...
...
@@ -1020,6 +1021,7 @@
function
exportSpread
(
exportReportData
)
{
$scope
.
exportReportData
=
exportReportData
;
$timeout
(
function
()
{
$
(
'#busy-indicator-container'
).
show
();
var
mainSpread
=
new
GC
.
Spread
.
Sheets
.
Workbook
(
document
.
getElementById
(
"export"
),
{
sheetCount
:
1
});
mainSpread
.
isPaintSuspended
(
true
);
mainSpread
.
sheets
.
pop
();
...
...
@@ -1037,12 +1039,15 @@
mainSpread
.
sheets
.
push
(
currentSheet
);
}
var
excelIo
=
new
GC
.
Spread
.
Excel
.
IO
();
// here is excel IO API
excelIo
.
save
(
mainSpread
.
toJSON
(),
function
(
blob
)
{
saveAs
(
blob
,
vatSessionService
.
project
.
name
+
'-'
+
vatSessionService
.
month
+
'-纳税申报.xlsx'
);
$
(
'#busy-indicator-container'
).
hide
();
},
function
(
e
)
{
alert
(
e
);
$
(
'#busy-indicator-container'
).
hide
();
});
// vatExportService.exportReport(content).success(function (data) {
...
...
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