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
8550b962
Commit
8550b962
authored
Mar 22, 2019
by
gary
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev_mysql' into dev_mysql
parents
367afd79
003d5779
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
6 deletions
+35
-6
tax-document-list.ctrl.js
...ocumentManage/tax-document-list/tax-document-list.ctrl.js
+33
-6
tax-document-list.svc.js
...DocumentManage/tax-document-list/tax-document-list.svc.js
+2
-0
No files found.
atms-web/src/main/webapp/app/taxDocumentManage/tax-document-list/tax-document-list.ctrl.js
View file @
8550b962
...
@@ -1543,8 +1543,9 @@ taxDocumentManageModule.directive('downLoadModule', function () {
...
@@ -1543,8 +1543,9 @@ taxDocumentManageModule.directive('downLoadModule', function () {
controller
:
[
'$scope'
,
'taxDocumentListService'
,
'$translate'
,
'SweetAlert'
,
controller
:
[
'$scope'
,
'taxDocumentListService'
,
'$translate'
,
'SweetAlert'
,
function
(
$scope
,
taxDocumentListService
,
$translate
,
SweetAlert
)
{
function
(
$scope
,
taxDocumentListService
,
$translate
,
SweetAlert
)
{
/* $scope.downloadAttachment = function () {
$scope
.
downloadAttachment
=
function
()
{
var checkedIDs = [
var
checkedIDs
=
[];
var
checkedUrls
=
[
// 'http://47.94.233.173:11007/static/erp_tax_system/3221D133-85B8-4E22-AE9B-DBEBD942D217?expire=1552361736&signiture=_Wz1_8Z6T8h5qnZAGpoRa8kNZeqmE7KoztKeehzYK4U=',
// 'http://47.94.233.173:11007/static/erp_tax_system/3221D133-85B8-4E22-AE9B-DBEBD942D217?expire=1552361736&signiture=_Wz1_8Z6T8h5qnZAGpoRa8kNZeqmE7KoztKeehzYK4U=',
// 'http://47.94.233.173:11007/static/erp_tax_system/3221D133-85B8-4E22-AE9B-DBEBD942D217?expire=1552361736&signiture=_Wz1_8Z6T8h5qnZAGpoRa8kNZeqmE7KoztKeehzYK4U=',
// 'http://47.94.233.173:11007/static/erp_tax_system/3221D133-85B8-4E22-AE9B-DBEBD942D217?expire=1552361736&signiture=_Wz1_8Z6T8h5qnZAGpoRa8kNZeqmE7KoztKeehzYK4U=',
// 'http://47.94.233.173:11007/static/erp_tax_system/3221D133-85B8-4E22-AE9B-DBEBD942D217?expire=1552361736&signiture=_Wz1_8Z6T8h5qnZAGpoRa8kNZeqmE7KoztKeehzYK4U=',
// 'http://47.94.233.173:11007/static/erp_tax_system/3221D133-85B8-4E22-AE9B-DBEBD942D217?expire=1552361736&signiture=_Wz1_8Z6T8h5qnZAGpoRa8kNZeqmE7KoztKeehzYK4U=',
...
@@ -1553,14 +1554,40 @@ taxDocumentManageModule.directive('downLoadModule', function () {
...
@@ -1553,14 +1554,40 @@ taxDocumentManageModule.directive('downLoadModule', function () {
$
(
"input[name='dataGridCheckBox']"
).
each
(
function
(
index
,
item
)
{
$
(
"input[name='dataGridCheckBox']"
).
each
(
function
(
index
,
item
)
{
if
(
item
.
checked
)
{
if
(
item
.
checked
)
{
var
cellId
=
$
(
item
).
attr
(
"data-id"
);
var
cellId
=
$
(
item
).
attr
(
"data-id"
);
var
cellUrl
=
$
(
item
).
attr
(
"data-url"
);
checkedIDs
.
push
(
cellId
);
checkedIDs
.
push
(
cellId
);
checkedUrls
.
push
(
cellUrl
);
}
}
});
});
if
(
checkedIDs
.
length
===
1
&&
checkedUrls
.
length
===
1
){
simpDownload
(
checkedUrls
[
0
]);
}
else
{
multiDownToZip
(
checkedIDs
);
}
};
function
simpDownload
(
url
){
if
(
!
url
)
return
SweetAlert
.
warning
(
$translate
.
instant
(
"NeedChecked"
));
// setTimeout(function () {
var
frame
=
$
(
'<iframe style="display: none;" class="multi-download"></iframe>'
);
frame
.
attr
(
'src'
,
url
);
document
.
body
.
appendChild
(
frame
[
0
]);
setTimeout
(
function
()
{
frame
.
remove
();
},
1000
);
// }, 100);
}
function
multiDownToZip
(
ids
){
if
(
!
ids
.
length
)
return
SweetAlert
.
warning
(
$translate
.
instant
(
"NeedChecked"
));
setTimeout
(
function
(){
taxDocumentListService
.
downloadAllFile
({
taxDocumentListService
.
downloadAllFile
({
"ids":checkedID
s
"ids"
:
id
s
});
});
};*/
},
500
);
$scope
.
downloadAttachment
=
function
()
{
}
/*$scope.downloadAttachment = function () {
var checkedURLs = [
var checkedURLs = [
// 'http://47.94.233.173:11007/static/erp_tax_system/3221D133-85B8-4E22-AE9B-DBEBD942D217?expire=1552361736&signiture=_Wz1_8Z6T8h5qnZAGpoRa8kNZeqmE7KoztKeehzYK4U=',
// 'http://47.94.233.173:11007/static/erp_tax_system/3221D133-85B8-4E22-AE9B-DBEBD942D217?expire=1552361736&signiture=_Wz1_8Z6T8h5qnZAGpoRa8kNZeqmE7KoztKeehzYK4U=',
// 'http://47.94.233.173:11007/static/erp_tax_system/3221D133-85B8-4E22-AE9B-DBEBD942D217?expire=1552361736&signiture=_Wz1_8Z6T8h5qnZAGpoRa8kNZeqmE7KoztKeehzYK4U=',
// 'http://47.94.233.173:11007/static/erp_tax_system/3221D133-85B8-4E22-AE9B-DBEBD942D217?expire=1552361736&signiture=_Wz1_8Z6T8h5qnZAGpoRa8kNZeqmE7KoztKeehzYK4U=',
...
@@ -1589,7 +1616,7 @@ taxDocumentManageModule.directive('downLoadModule', function () {
...
@@ -1589,7 +1616,7 @@ taxDocumentManageModule.directive('downLoadModule', function () {
}, _removeDelay);
}, _removeDelay);
}, _triggerDelay);
}, _triggerDelay);
}
}
};
};
*/
}]
}]
}
}
});
});
...
...
atms-web/src/main/webapp/app/taxDocumentManage/tax-document-list/tax-document-list.svc.js
View file @
8550b962
...
@@ -79,6 +79,7 @@ taxDocumentManageModule.factory('taxDocumentListService',
...
@@ -79,6 +79,7 @@ taxDocumentManageModule.factory('taxDocumentListService',
return
jqFetch
.
get
(
apiInterceptor
.
webApiHostUrl
+
'/businessunit/getlist'
,
params
);
return
jqFetch
.
get
(
apiInterceptor
.
webApiHostUrl
+
'/businessunit/getlist'
,
params
);
},
},
downloadAllFile
:
function
(
params
){
downloadAllFile
:
function
(
params
){
$
(
'#busy-indicator-container'
).
show
();
//post请求会自带http://etms.longi-silicon.com:8180//api/v1的前缀路径,get请求不会
//post请求会自带http://etms.longi-silicon.com:8180//api/v1的前缀路径,get请求不会
var
xhr
=
new
XMLHttpRequest
();
var
xhr
=
new
XMLHttpRequest
();
xhr
.
open
(
'POST'
,
apiInterceptor
.
webApiHostUrl
+
"/taxDoc/downloadAllFile"
,
true
);
xhr
.
open
(
'POST'
,
apiInterceptor
.
webApiHostUrl
+
"/taxDoc/downloadAllFile"
,
true
);
...
@@ -119,6 +120,7 @@ taxDocumentManageModule.factory('taxDocumentListService',
...
@@ -119,6 +120,7 @@ taxDocumentManageModule.factory('taxDocumentListService',
}
else
{
}
else
{
window
.
location
=
objectUrl
;
window
.
location
=
objectUrl
;
}
}
$
(
'#busy-indicator-container'
).
hide
();
}
}
}
}
};
};
...
...
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