|
@@ -169,7 +169,7 @@ export default {
|
|
},
|
|
},
|
|
// 导出审计模板附件
|
|
// 导出审计模板附件
|
|
exportTemplateFiles() {
|
|
exportTemplateFiles() {
|
|
- const loading = arguments[arguments.length - 1]
|
|
|
|
|
|
+ // const loading = arguments[arguments.length - 1]
|
|
const selectedRowKeys = this.$refs.SJMBKDataTable.getSelectedRowKeys()
|
|
const selectedRowKeys = this.$refs.SJMBKDataTable.getSelectedRowKeys()
|
|
if (selectedRowKeys.length === 0) {
|
|
if (selectedRowKeys.length === 0) {
|
|
Modal.warning({
|
|
Modal.warning({
|
|
@@ -179,7 +179,7 @@ export default {
|
|
} else {
|
|
} else {
|
|
const timestamp = new Date().getTime()
|
|
const timestamp = new Date().getTime()
|
|
console.log(timestamp)
|
|
console.log(timestamp)
|
|
- loading.loadingStatus.exportdataFiles = true
|
|
|
|
|
|
+ // loading.loadingStatus.exportdataFiles = true
|
|
axios({
|
|
axios({
|
|
method: 'get',
|
|
method: 'get',
|
|
url: 'api/xcoa-mobile/v1/spic-common/exportTemplateFiles/' + selectedRowKeys,
|
|
url: 'api/xcoa-mobile/v1/spic-common/exportTemplateFiles/' + selectedRowKeys,
|
|
@@ -198,7 +198,7 @@ export default {
|
|
if ('msSaveOrOpenBlob' in navigator) {
|
|
if ('msSaveOrOpenBlob' in navigator) {
|
|
// 适配ie
|
|
// 适配ie
|
|
window.navigator.msSaveOrOpenBlob(blob, fileName)
|
|
window.navigator.msSaveOrOpenBlob(blob, fileName)
|
|
- loading.loadingStatus.exportdataFiles = false
|
|
|
|
|
|
+ // loading.loadingStatus.exportdataFiles = false
|
|
} else {
|
|
} else {
|
|
// 其他浏览器
|
|
// 其他浏览器
|
|
const blobUrl = window.URL.createObjectURL(blob)
|
|
const blobUrl = window.URL.createObjectURL(blob)
|
|
@@ -207,12 +207,12 @@ export default {
|
|
a.href = blobUrl
|
|
a.href = blobUrl
|
|
a.setAttribute('download', fileName)
|
|
a.setAttribute('download', fileName)
|
|
a.click()
|
|
a.click()
|
|
- loading.loadingStatus.exportdataFiles = false
|
|
|
|
|
|
+ // loading.loadingStatus.exportdataFiles = false
|
|
}
|
|
}
|
|
message.success('导出成功')
|
|
message.success('导出成功')
|
|
} else {
|
|
} else {
|
|
message.error('导出失败,请联系系统管理员')
|
|
message.error('导出失败,请联系系统管理员')
|
|
- loading.loadingStatus.exportdataFiles = false
|
|
|
|
|
|
+ // loading.loadingStatus.exportdataFiles = false
|
|
}
|
|
}
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|