企业 技术标准 导出功能
This commit is contained in:
@@ -608,10 +608,10 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
exportAll() {
|
exportAll() {
|
||||||
const arr = JSON.stringify(this.data)
|
const arr = JSON.stringify(this.form.infoList)
|
||||||
axios({
|
axios({
|
||||||
method: 'post',
|
method: 'post',
|
||||||
url: 'api/slrs/sar-public-idea-all/tuallStandYJCL',
|
url: 'api/lawss/actSarItemsBuss/exportAllBZZXDJSBZ',
|
||||||
data: {
|
data: {
|
||||||
json: arr
|
json: arr
|
||||||
},
|
},
|
||||||
@@ -619,7 +619,7 @@ export default {
|
|||||||
responseType: 'blob',
|
responseType: 'blob',
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
const blob = new Blob([res.data]);
|
const blob = new Blob([res.data]);
|
||||||
const fileName = '流程意见详情.xlsx';
|
const fileName = '意见信息.xlsx';
|
||||||
if ('download' in document.createElement('a')) { // 非IE下载
|
if ('download' in document.createElement('a')) { // 非IE下载
|
||||||
const elink = document.createElement('a');
|
const elink = document.createElement('a');
|
||||||
elink.download = fileName;
|
elink.download = fileName;
|
||||||
|
|||||||
Reference in New Issue
Block a user