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
9ce14ee8
Commit
9ce14ee8
authored
Aug 01, 2019
by
ytbdmhy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善导出更新信息的pdf
parent
5e646b10
Changes
4
Show 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 @
9ce14ee8
...
@@ -77,7 +77,7 @@ const router = new Router({
...
@@ -77,7 +77,7 @@ const router = new Router({
component
:
drxxbg
component
:
drxxbg
},
},
{
{
path
:
"/modify
id
card"
,
path
:
"/modify
bank
card"
,
name
:
"银行卡变更"
,
name
:
"银行卡变更"
,
component
:
dryhkbg
component
:
dryhkbg
},
},
...
...
xichongSys/src/views/Myvue/drdcbg.vue
View file @
9ce14ee8
...
@@ -66,26 +66,26 @@
...
@@ -66,26 +66,26 @@
methods
:
{
methods
:
{
toPdf
(
s
,
d
)
{
toPdf
(
s
,
d
)
{
console
.
log
(
d
)
console
.
log
(
d
)
// axios.get(baseUrl + '/exportPdf/insuredRegistration
?id=' + d.eventId, {
axios
.
get
(
baseUrl
+
'/exportPdf/informationChange
?id='
+
d
.
eventId
,
{
//
headers: {
headers
:
{
//
"token": Cookies.get("token")
"token"
:
Cookies
.
get
(
"token"
)
//
},
},
//
responseType: 'blob' //告诉服务器我们需要的响应格式
responseType
:
'blob'
//告诉服务器我们需要的响应格式
//
})
})
//
.then(res => {
.
then
(
res
=>
{
//
let a = document.createElement("a");
let
a
=
document
.
createElement
(
"a"
);
//
let blob = new Blob([res.data], {
let
blob
=
new
Blob
([
res
.
data
],
{
//
type: 'application/vnd.ms-excel' //将会被放入到blob中的数组内容的MIME类型
type
:
'application/vnd.ms-excel'
//将会被放入到blob中的数组内容的MIME类型
//
});
});
//
a.href = URL.createObjectURL(blob); //生成一个url
a
.
href
=
URL
.
createObjectURL
(
blob
);
//生成一个url
// a.download = "西充县城乡居民社会养老保险参保
登记表.pdf";
a
.
download
=
"西充县城乡居民社会养老保险信息变更
登记表.pdf"
;
//
a.click();
a
.
click
();
//
// let objectUrl = URL.createObjectURL(blob); //生成一个url
// let objectUrl = URL.createObjectURL(blob); //生成一个url
//
// window.location.href = objectUrl; //浏览器打开这个url
// window.location.href = objectUrl; //浏览器打开这个url
//
})
})
//
.catch(err => {
.
catch
(
err
=>
{
//
console.log(err);
console
.
log
(
err
);
//
});
});
},
},
current_change
(
s
)
{
current_change
(
s
)
{
var
data
=
{
var
data
=
{
...
...
xichongSys/src/views/Myvue/drxxbg.vue
View file @
9ce14ee8
...
@@ -87,26 +87,26 @@
...
@@ -87,26 +87,26 @@
methods
:
{
methods
:
{
toPdf
(
s
,
d
)
{
toPdf
(
s
,
d
)
{
console
.
log
(
d
)
console
.
log
(
d
)
// axios.get(baseUrl + '/exportPdf/insuredRegistration
?id=' + d.eventId, {
axios
.
get
(
baseUrl
+
'/exportPdf/informationChange
?id='
+
d
.
eventId
,
{
//
headers: {
headers
:
{
//
"token": Cookies.get("token")
"token"
:
Cookies
.
get
(
"token"
)
//
},
},
//
responseType: 'blob' //告诉服务器我们需要的响应格式
responseType
:
'blob'
//告诉服务器我们需要的响应格式
//
})
})
//
.then(res => {
.
then
(
res
=>
{
//
let a = document.createElement("a");
let
a
=
document
.
createElement
(
"a"
);
//
let blob = new Blob([res.data], {
let
blob
=
new
Blob
([
res
.
data
],
{
//
type: 'application/vnd.ms-excel' //将会被放入到blob中的数组内容的MIME类型
type
:
'application/vnd.ms-excel'
//将会被放入到blob中的数组内容的MIME类型
//
});
});
//
a.href = URL.createObjectURL(blob); //生成一个url
a
.
href
=
URL
.
createObjectURL
(
blob
);
//生成一个url
// a.download = "西充县城乡居民社会养老保险参保
登记表.pdf";
a
.
download
=
"西充县城乡居民社会养老保险信息变更
登记表.pdf"
;
//
a.click();
a
.
click
();
//
// let objectUrl = URL.createObjectURL(blob); //生成一个url
// let objectUrl = URL.createObjectURL(blob); //生成一个url
//
// window.location.href = objectUrl; //浏览器打开这个url
// window.location.href = objectUrl; //浏览器打开这个url
//
})
})
//
.catch(err => {
.
catch
(
err
=>
{
//
console.log(err);
console
.
log
(
err
);
//
});
});
},
},
current_change
(
s
)
{
current_change
(
s
)
{
var
data
=
{
var
data
=
{
...
...
xichongSys/src/views/Myvue/dryhkbg.vue
View file @
9ce14ee8
...
@@ -66,26 +66,26 @@
...
@@ -66,26 +66,26 @@
methods
:
{
methods
:
{
toPdf
(
s
,
d
)
{
toPdf
(
s
,
d
)
{
console
.
log
(
d
)
console
.
log
(
d
)
// axios.get(baseUrl + '/exportPdf/insuredRegistration
?id=' + d.eventId, {
axios
.
get
(
baseUrl
+
'/exportPdf/informationChange
?id='
+
d
.
eventId
,
{
//
headers: {
headers
:
{
//
"token": Cookies.get("token")
"token"
:
Cookies
.
get
(
"token"
)
//
},
},
//
responseType: 'blob' //告诉服务器我们需要的响应格式
responseType
:
'blob'
//告诉服务器我们需要的响应格式
//
})
})
//
.then(res => {
.
then
(
res
=>
{
//
let a = document.createElement("a");
let
a
=
document
.
createElement
(
"a"
);
//
let blob = new Blob([res.data], {
let
blob
=
new
Blob
([
res
.
data
],
{
//
type: 'application/vnd.ms-excel' //将会被放入到blob中的数组内容的MIME类型
type
:
'application/vnd.ms-excel'
//将会被放入到blob中的数组内容的MIME类型
//
});
});
//
a.href = URL.createObjectURL(blob); //生成一个url
a
.
href
=
URL
.
createObjectURL
(
blob
);
//生成一个url
// a.download = "西充县城乡居民社会养老保险参保
登记表.pdf";
a
.
download
=
"西充县城乡居民社会养老保险信息变更
登记表.pdf"
;
//
a.click();
a
.
click
();
//
// let objectUrl = URL.createObjectURL(blob); //生成一个url
// let objectUrl = URL.createObjectURL(blob); //生成一个url
//
// window.location.href = objectUrl; //浏览器打开这个url
// window.location.href = objectUrl; //浏览器打开这个url
//
})
})
//
.catch(err => {
.
catch
(
err
=>
{
//
console.log(err);
console
.
log
(
err
);
//
});
});
},
},
current_change
(
s
)
{
current_change
(
s
)
{
var
data
=
{
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