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
6f57362b
Commit
6f57362b
authored
Oct 29, 2019
by
zhangdishen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mhy' into 'master'
新增导出待审核的PDF及展示办理人和所属 See merge request
!86
parents
92c9447b
23faf233
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
266 additions
and
118 deletions
+266
-118
archivesAdministration.vue
xichongSys/src/views/Myvue/archivesAdministration.vue
+14
-7
drbjbf.vue
xichongSys/src/views/Myvue/drbjbf.vue
+16
-9
drcbdj.vue
xichongSys/src/views/Myvue/drcbdj.vue
+28
-14
drcbzx.vue
xichongSys/src/views/Myvue/drcbzx.vue
+16
-9
drdcbg.vue
xichongSys/src/views/Myvue/drdcbg.vue
+32
-18
drdysq.vue
xichongSys/src/views/Myvue/drdysq.vue
+16
-9
drtsyw.vue
xichongSys/src/views/Myvue/drtsyw.vue
+16
-9
drxxbg.vue
xichongSys/src/views/Myvue/drxxbg.vue
+32
-18
dryhkbg.vue
xichongSys/src/views/Myvue/dryhkbg.vue
+32
-18
filesOfArchive.vue
xichongSys/src/views/Myvue/filesOfArchive.vue
+2
-2
table.vue
xichongSys/src/views/Myvue/table.vue
+62
-5
No files found.
xichongSys/src/views/Myvue/archivesAdministration.vue
View file @
6f57362b
...
...
@@ -397,13 +397,20 @@
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
=
archive
.
number
+
"-"
+
archive
.
title
+
".rar"
;
a
.
click
();
if
(
res
.
data
===
null
||
res
.
data
.
size
===
0
)
{
this
.
$message
({
type
:
'success'
,
message
:
"该表格没有内容"
});
}
else
{
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
=
archive
.
number
+
"-"
+
archive
.
title
+
".rar"
;
a
.
click
();
}
this
.
loading
=
false
;
})
.
catch
(
err
=>
{
...
...
xichongSys/src/views/Myvue/drbjbf.vue
View file @
6f57362b
...
...
@@ -86,15 +86,22 @@
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
=
"西充县城乡居民社会养老保险补缴申请表"
+
Date
.
now
()
+
".pdf"
;
a
.
click
();
// let objectUrl = URL.createObjectURL(blob); //生成一个url
// window.location.href = objectUrl; //浏览器打开这个url
if
(
res
.
data
===
null
||
res
.
data
.
size
===
0
)
{
this
.
$message
({
type
:
'success'
,
message
:
"该表格没有内容"
});
}
else
{
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
=
"西充县城乡居民社会养老保险补缴申请表"
+
Date
.
now
()
+
".pdf"
;
a
.
click
();
// let objectUrl = URL.createObjectURL(blob); //生成一个url
// window.location.href = objectUrl; //浏览器打开这个url
}
this
.
loading
=
false
;
})
.
catch
(
err
=>
{
...
...
xichongSys/src/views/Myvue/drcbdj.vue
View file @
6f57362b
...
...
@@ -104,13 +104,20 @@ export default {
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
();
if
(
res
.
data
===
null
||
res
.
data
.
size
===
0
)
{
this
.
$message
({
type
:
'success'
,
message
:
"该表格没有内容"
});
}
else
{
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
();
}
this
.
loading
=
false
;
// let objectUrl = URL.createObjectURL(blob); //生成一个url
// window.location.href = objectUrl; //浏览器打开这个url
...
...
@@ -149,13 +156,20 @@ export default {
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
=
"居民养老保险表.xlsx"
;
a
.
click
();
if
(
res
.
data
===
null
||
res
.
data
.
size
===
0
)
{
this
.
$message
({
type
:
'success'
,
message
:
"该表格没有内容"
});
}
else
{
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
=
"居民养老保险表.xlsx"
;
a
.
click
();
}
this
.
loading
=
false
;
// let objectUrl = URL.createObjectURL(blob); //生成一个url
// window.location.href = objectUrl; //浏览器打开这个url
...
...
xichongSys/src/views/Myvue/drcbzx.vue
View file @
6f57362b
...
...
@@ -96,15 +96,22 @@
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
=
"西充县城乡居民社会养老保险终止注销登记表"
+
Date
.
now
()
+
".pdf"
;
a
.
click
();
// let objectUrl = URL.createObjectURL(blob); //生成一个url
// window.location.href = objectUrl; //浏览器打开这个url
if
(
res
.
data
===
null
||
res
.
data
.
size
===
0
)
{
this
.
$message
({
type
:
'success'
,
message
:
"该表格没有内容"
});
}
else
{
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
=
"西充县城乡居民社会养老保险终止注销登记表"
+
Date
.
now
()
+
".pdf"
;
a
.
click
();
// let objectUrl = URL.createObjectURL(blob); //生成一个url
// window.location.href = objectUrl; //浏览器打开这个url
}
this
.
loading
=
false
;
})
.
catch
(
err
=>
{
...
...
xichongSys/src/views/Myvue/drdcbg.vue
View file @
6f57362b
...
...
@@ -76,15 +76,22 @@
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
if
(
res
.
data
===
null
||
res
.
data
.
size
===
0
)
{
this
.
$message
({
type
:
'success'
,
message
:
"该表格没有内容"
});
}
else
{
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
}
this
.
loading
=
false
;
})
.
catch
(
err
=>
{
...
...
@@ -121,15 +128,22 @@
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
=
"缴费档次变更表"
+
Date
.
now
()
+
".xlsx"
;
a
.
click
();
// let objectUrl = URL.createObjectURL(blob); //生成一个url
// window.location.href = objectUrl; //浏览器打开这个url
if
(
res
.
data
===
null
||
res
.
data
.
size
===
0
)
{
this
.
$message
({
type
:
'success'
,
message
:
"该表格没有内容"
});
}
else
{
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
=
"缴费档次变更表"
+
Date
.
now
()
+
".xlsx"
;
a
.
click
();
// let objectUrl = URL.createObjectURL(blob); //生成一个url
// window.location.href = objectUrl; //浏览器打开这个url
}
this
.
loading
=
false
;
})
.
catch
(
err
=>
{
...
...
xichongSys/src/views/Myvue/drdysq.vue
View file @
6f57362b
...
...
@@ -71,15 +71,22 @@
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
if
(
res
.
data
===
null
||
res
.
data
.
size
===
0
)
{
this
.
$message
({
type
:
'success'
,
message
:
"该表格没有内容"
});
}
else
{
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
);
...
...
xichongSys/src/views/Myvue/drtsyw.vue
View file @
6f57362b
...
...
@@ -79,15 +79,22 @@
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
=
"西充县城乡居民社会养老保险特殊人群待遇审核表"
+
Date
.
now
()
+
".pdf"
;
a
.
click
();
// let objectUrl = URL.createObjectURL(blob); //生成一个url
// window.location.href = objectUrl; //浏览器打开这个url
if
(
res
.
data
===
null
||
res
.
data
.
size
===
0
)
{
this
.
$message
({
type
:
'success'
,
message
:
"该表格没有内容"
});
}
else
{
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
=
"西充县城乡居民社会养老保险特殊人群待遇审核表"
+
Date
.
now
()
+
".pdf"
;
a
.
click
();
// let objectUrl = URL.createObjectURL(blob); //生成一个url
// window.location.href = objectUrl; //浏览器打开这个url
}
this
.
loading
=
false
;
})
.
catch
(
err
=>
{
...
...
xichongSys/src/views/Myvue/drxxbg.vue
View file @
6f57362b
...
...
@@ -97,15 +97,22 @@
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
if
(
res
.
data
===
null
||
res
.
data
.
size
===
0
)
{
this
.
$message
({
type
:
'success'
,
message
:
"该表格没有内容"
});
}
else
{
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
}
this
.
loading
=
false
;
})
.
catch
(
err
=>
{
...
...
@@ -142,15 +149,22 @@
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
=
"人员信息修改表"
+
Date
.
now
()
+
".xlsx"
;
a
.
click
();
// let objectUrl = URL.createObjectURL(blob); //生成一个url
// window.location.href = objectUrl; //浏览器打开这个url
if
(
res
.
data
===
null
||
res
.
data
.
size
===
0
)
{
this
.
$message
({
type
:
'success'
,
message
:
"该表格没有内容"
});
}
else
{
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
=
"人员信息修改表"
+
Date
.
now
()
+
".xlsx"
;
a
.
click
();
// let objectUrl = URL.createObjectURL(blob); //生成一个url
// window.location.href = objectUrl; //浏览器打开这个url
}
this
.
loading
=
false
;
})
.
catch
(
err
=>
{
...
...
xichongSys/src/views/Myvue/dryhkbg.vue
View file @
6f57362b
...
...
@@ -76,15 +76,22 @@
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
if
(
res
.
data
===
null
||
res
.
data
.
size
===
0
)
{
this
.
$message
({
type
:
'success'
,
message
:
"该表格没有内容"
});
}
else
{
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
}
this
.
loading
=
false
;
})
.
catch
(
err
=>
{
...
...
@@ -121,15 +128,22 @@
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
=
"银行卡变更表"
+
Date
.
now
()
+
".xlsx"
;
a
.
click
();
// let objectUrl = URL.createObjectURL(blob); //生成一个url
// window.location.href = objectUrl; //浏览器打开这个url
if
(
res
.
data
===
null
||
res
.
data
.
size
===
0
)
{
this
.
$message
({
type
:
'success'
,
message
:
"该表格没有内容"
});
}
else
{
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
=
"银行卡变更表"
+
Date
.
now
()
+
".xlsx"
;
a
.
click
();
// let objectUrl = URL.createObjectURL(blob); //生成一个url
// window.location.href = objectUrl; //浏览器打开这个url
}
this
.
loading
=
false
;
})
.
catch
(
err
=>
{
...
...
xichongSys/src/views/Myvue/filesOfArchive.vue
View file @
6f57362b
...
...
@@ -12,7 +12,7 @@
<el-button
type=
"primary"
size=
"mini"
style=
"
background:#148A9B;
margin-left:10px"
style=
"margin-left:10px"
icon=
"el-icon-search"
@
click=
"paramSearch"
>
搜索
</el-button>
...
...
@@ -39,7 +39,7 @@
<el-form-item
label=
"当前档案案卷号"
label-width=
"110px"
style=
"width: 1
0
%;float: left"
>
style=
"width: 1
1
%;float: left"
>
<div
class=
"masks"
></div>
<el-input
size=
"small"
...
...
xichongSys/src/views/Myvue/table.vue
View file @
6f57362b
...
...
@@ -34,16 +34,24 @@
</el-table-column>
<el-table-column
prop=
"name"
label=
"姓名"
width=
"180"
>
label=
"姓名"
>
</el-table-column>
<el-table-column
prop=
"recordtype"
label=
"业务类型"
>
</el-table-column>
<el-table-column
prop=
"transactor"
label=
"办理人"
>
</el-table-column>
<el-table-column
prop=
"transactorDivision"
label=
"办理人所属"
>
</el-table-column>
<el-table-column
prop=
"createtime"
label=
"创建时间"
>
label=
"创建时间"
width=
"180"
>
</el-table-column>
<el-table-column
prop=
"townname"
...
...
@@ -59,7 +67,7 @@
</el-table-column>
<el-table-column
width=
"
18
0"
width=
"
24
0"
label=
"操作"
>
<template
slot-scope=
"scope"
>
<el-button
...
...
@@ -93,6 +101,11 @@
type=
"success"
>
流程
</el-button>
</el-popover>
<el-button
v-if=
"scope.row.recordtype !== '升档改办' && scope.row.recordtype !== '关系转移'"
@
click=
"exportPdf(scope.$index, scope.row)"
size=
"mini"
type=
"primary"
>
导出
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -153,7 +166,10 @@
import
{
Loading
}
from
'element-ui'
;
import
Candode
from
"../Core/candode"
import
KtButton
from
"@/views/Core/KtButton"
// import baseUrl from "../../globe/globeUrl"
import
{
baseUrl
}
from
"../../utils/global"
import
axios
from
"axios"
import
Cookies
from
"js-cookie"
;
// import baseUrl from "../../globe/globeUrl"
export
default
{
components
:{
KtButton
,
...
...
@@ -449,7 +465,48 @@
padding
:
CryptoJS
.
pad
.
Pkcs7
});
return
decrypted
.
toString
(
CryptoJS
.
enc
.
Utf8
);
},
exportPdf
(
index
,
row
)
{
if
(
row
.
recordtype
===
"关系转移"
||
row
.
recordtype
===
"升档改办"
)
{
this
.
$message
({
type
:
'warning'
,
message
:
"[关系转移]或[升档改办]无法导出"
});
return
;
}
this
.
loading
=
true
;
axios
.
get
(
baseUrl
+
'/exportPdf/unaudited'
,
{
headers
:
{
"token"
:
Cookies
.
get
(
"token"
)
},
params
:
{
"recordDataId"
:
row
.
id
,
"recordType"
:
row
.
recordtype
},
responseType
:
'blob'
//告诉服务器我们需要的响应格式
})
.
then
(
res
=>
{
if
(
res
.
data
===
null
||
res
.
data
.
size
===
0
)
{
this
.
$message
({
type
:
'success'
,
message
:
"该表格没有内容"
});
}
else
{
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
=
"未审核"
+
row
.
recordtype
+
"表"
+
Date
.
now
()
+
".pdf"
;
a
.
click
();
}
this
.
loading
=
false
;
})
.
catch
(
err
=>
{
console
.
log
(
err
);
this
.
loading
=
false
;
});
}
},
created
(){
...
...
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