Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xichonght
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
zhangdishen
xichonght
Commits
bafe1201
Commit
bafe1201
authored
Aug 01, 2019
by
miaohaoyun
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mhy' into 'master'
Mhy See merge request
!10
parents
d8bd78ab
9a37a642
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
61 additions
and
61 deletions
+61
-61
index.js
xichongSys/src/router/index.js
+1
-1
drdcbg.vue
xichongSys/src/views/Myvue/drdcbg.vue
+20
-20
drxxbg.vue
xichongSys/src/views/Myvue/drxxbg.vue
+20
-20
dryhkbg.vue
xichongSys/src/views/Myvue/dryhkbg.vue
+20
-20
No files found.
xichongSys/src/router/index.js
View file @
bafe1201
...
...
@@ -78,7 +78,7 @@ const router = new Router({
component
:
drxxbg
},
{
path
:
"/modify
id
card"
,
path
:
"/modify
bank
card"
,
name
:
"银行卡变更"
,
component
:
dryhkbg
},
...
...
xichongSys/src/views/Myvue/drdcbg.vue
View file @
bafe1201
...
...
@@ -66,26 +66,26 @@
methods
:
{
toPdf
(
s
,
d
)
{
console
.
log
(
d
)
// axios.get(baseUrl + '/exportPdf/insuredRegistration
?id=' + d.eventId, {
//
headers: {
//
"token": Cookies.get("token")
//
},
//
responseType: 'blob' //告诉服务器我们需要的响应格式
//
})
//
.then(res => {
//
let a = document.createElement("a");
//
let blob = new Blob([res.data], {
//
type: 'application/vnd.ms-excel' //将会被放入到blob中的数组内容的MIME类型
//
});
//
a.href = URL.createObjectURL(blob); //生成一个url
// a.download = "西充县城乡居民社会养老保险参保
登记表.pdf";
//
a.click();
//
// let objectUrl = URL.createObjectURL(blob); //生成一个url
//
// window.location.href = objectUrl; //浏览器打开这个url
//
})
//
.catch(err => {
//
console.log(err);
//
});
axios
.
get
(
baseUrl
+
'/exportPdf/informationChange
?id='
+
d
.
eventId
,
{
headers
:
{
"token"
:
Cookies
.
get
(
"token"
)
},
responseType
:
'blob'
//告诉服务器我们需要的响应格式
})
.
then
(
res
=>
{
let
a
=
document
.
createElement
(
"a"
);
let
blob
=
new
Blob
([
res
.
data
],
{
type
:
'application/vnd.ms-excel'
//将会被放入到blob中的数组内容的MIME类型
});
a
.
href
=
URL
.
createObjectURL
(
blob
);
//生成一个url
a
.
download
=
"西充县城乡居民社会养老保险信息变更
登记表.pdf"
;
a
.
click
();
// let objectUrl = URL.createObjectURL(blob); //生成一个url
// window.location.href = objectUrl; //浏览器打开这个url
})
.
catch
(
err
=>
{
console
.
log
(
err
);
});
},
current_change
(
s
)
{
var
data
=
{
...
...
xichongSys/src/views/Myvue/drxxbg.vue
View file @
bafe1201
...
...
@@ -87,26 +87,26 @@
methods
:
{
toPdf
(
s
,
d
)
{
console
.
log
(
d
)
// axios.get(baseUrl + '/exportPdf/insuredRegistration
?id=' + d.eventId, {
//
headers: {
//
"token": Cookies.get("token")
//
},
//
responseType: 'blob' //告诉服务器我们需要的响应格式
//
})
//
.then(res => {
//
let a = document.createElement("a");
//
let blob = new Blob([res.data], {
//
type: 'application/vnd.ms-excel' //将会被放入到blob中的数组内容的MIME类型
//
});
//
a.href = URL.createObjectURL(blob); //生成一个url
// a.download = "西充县城乡居民社会养老保险参保
登记表.pdf";
//
a.click();
//
// let objectUrl = URL.createObjectURL(blob); //生成一个url
//
// window.location.href = objectUrl; //浏览器打开这个url
//
})
//
.catch(err => {
//
console.log(err);
//
});
axios
.
get
(
baseUrl
+
'/exportPdf/informationChange
?id='
+
d
.
eventId
,
{
headers
:
{
"token"
:
Cookies
.
get
(
"token"
)
},
responseType
:
'blob'
//告诉服务器我们需要的响应格式
})
.
then
(
res
=>
{
let
a
=
document
.
createElement
(
"a"
);
let
blob
=
new
Blob
([
res
.
data
],
{
type
:
'application/vnd.ms-excel'
//将会被放入到blob中的数组内容的MIME类型
});
a
.
href
=
URL
.
createObjectURL
(
blob
);
//生成一个url
a
.
download
=
"西充县城乡居民社会养老保险信息变更
登记表.pdf"
;
a
.
click
();
// let objectUrl = URL.createObjectURL(blob); //生成一个url
// window.location.href = objectUrl; //浏览器打开这个url
})
.
catch
(
err
=>
{
console
.
log
(
err
);
});
},
current_change
(
s
)
{
var
data
=
{
...
...
xichongSys/src/views/Myvue/dryhkbg.vue
View file @
bafe1201
...
...
@@ -66,26 +66,26 @@
methods
:
{
toPdf
(
s
,
d
)
{
console
.
log
(
d
)
// axios.get(baseUrl + '/exportPdf/insuredRegistration
?id=' + d.eventId, {
//
headers: {
//
"token": Cookies.get("token")
//
},
//
responseType: 'blob' //告诉服务器我们需要的响应格式
//
})
//
.then(res => {
//
let a = document.createElement("a");
//
let blob = new Blob([res.data], {
//
type: 'application/vnd.ms-excel' //将会被放入到blob中的数组内容的MIME类型
//
});
//
a.href = URL.createObjectURL(blob); //生成一个url
// a.download = "西充县城乡居民社会养老保险参保
登记表.pdf";
//
a.click();
//
// let objectUrl = URL.createObjectURL(blob); //生成一个url
//
// window.location.href = objectUrl; //浏览器打开这个url
//
})
//
.catch(err => {
//
console.log(err);
//
});
axios
.
get
(
baseUrl
+
'/exportPdf/informationChange
?id='
+
d
.
eventId
,
{
headers
:
{
"token"
:
Cookies
.
get
(
"token"
)
},
responseType
:
'blob'
//告诉服务器我们需要的响应格式
})
.
then
(
res
=>
{
let
a
=
document
.
createElement
(
"a"
);
let
blob
=
new
Blob
([
res
.
data
],
{
type
:
'application/vnd.ms-excel'
//将会被放入到blob中的数组内容的MIME类型
});
a
.
href
=
URL
.
createObjectURL
(
blob
);
//生成一个url
a
.
download
=
"西充县城乡居民社会养老保险信息变更
登记表.pdf"
;
a
.
click
();
// let objectUrl = URL.createObjectURL(blob); //生成一个url
// window.location.href = objectUrl; //浏览器打开这个url
})
.
catch
(
err
=>
{
console
.
log
(
err
);
});
},
current_change
(
s
)
{
var
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