From 8704f001ae849c039eb428103084601c11c3a7f3 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Thu, 18 Jul 2024 18:26:43 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E6=B3=95=E8=A7=84=E7=AC=A6=E5=90=88?= =?UTF-8?q?=E6=80=A7=E8=AF=84=E4=BC=B0=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ProcessDetailList.vue | 1 + .../modules/MainFinderCollectBaseInfo.vue | 17 +++--- .../modules/MainFinderDistributesBaseInfo.vue | 16 +++--- .../modules/MainFinderSingleAuditBaseInfo.vue | 52 ------------------- 4 files changed, 20 insertions(+), 66 deletions(-) diff --git a/src/components/ProcessDetailList.vue b/src/components/ProcessDetailList.vue index 987c36a..99aaf96 100644 --- a/src/components/ProcessDetailList.vue +++ b/src/components/ProcessDetailList.vue @@ -428,6 +428,7 @@ export default { } const query = {} query.taskName = record.taskName + query.taskId = record.taskId // 为了不影响部分节点的导出 query.snapshotId = record.snapshotId // 快照id query.nodeId = record.nodeId // 节点的id query.isLook = 1 diff --git a/src/views/workCenter/regulatoryComplianceCheckProcess/modules/MainFinderCollectBaseInfo.vue b/src/views/workCenter/regulatoryComplianceCheckProcess/modules/MainFinderCollectBaseInfo.vue index dfdb7b1..5b4b247 100644 --- a/src/views/workCenter/regulatoryComplianceCheckProcess/modules/MainFinderCollectBaseInfo.vue +++ b/src/views/workCenter/regulatoryComplianceCheckProcess/modules/MainFinderCollectBaseInfo.vue @@ -3,8 +3,8 @@
{{ $t('dispatchInformation') }}
- - + + {{ $t('export') }}
@@ -115,6 +115,11 @@ export default { default: false } }, + computed: { + exportFileName () { + return this.formInline.standardNumber + this.formInline.standardName + '符合性排查' + } + }, data () { return { loading: false, @@ -283,7 +288,7 @@ export default { ] }, url: { - exportXlsUrl: '' + exportXlsUrl: '/process/standardComplianceCheck/exportXls' } } }, @@ -326,10 +331,8 @@ export default { if (!fileName || typeof fileName !== 'string') { fileName = this.$t('exportFile') } - const param = this.getQueryParams() - if (this.selectedRowKeys && this.selectedRowKeys.length > 0) { - param.selections = this.selectedRowKeys.join(',') - } + const param = {} + param.taskId = this.$route.query.taskId console.log('导出参数', param) // 加一个大的提示 const modalLoading = this.$info({ diff --git a/src/views/workCenter/regulatoryComplianceCheckProcess/modules/MainFinderDistributesBaseInfo.vue b/src/views/workCenter/regulatoryComplianceCheckProcess/modules/MainFinderDistributesBaseInfo.vue index 54e70ee..b849576 100644 --- a/src/views/workCenter/regulatoryComplianceCheckProcess/modules/MainFinderDistributesBaseInfo.vue +++ b/src/views/workCenter/regulatoryComplianceCheckProcess/modules/MainFinderDistributesBaseInfo.vue @@ -61,8 +61,8 @@ {{ $t('import') }} - - + + {{ $t('export') }} @@ -195,6 +195,9 @@ export default { }, importExcelUrl: function () { return `${window._CONFIG.domianURL}/${this.url.importExcelUrl}` + }, + exportFileName () { + return this.formInline.standardNumber + this.formInline.standardName + '符合性排查' } }, data () { @@ -511,7 +514,8 @@ export default { }, personFormInline: {}, url: { - importExcelUrl: '' + importExcelUrl: '', + exportXlsUrl: '/process/standardComplianceCheck/exportXlsNotDistribute' }, dataSourceCopy: [] // 列表数组备份,防止切换排查任务是否下发后,填的数据带到新数组里 } @@ -760,10 +764,8 @@ export default { if (!fileName || typeof fileName !== 'string') { fileName = this.$t('exportFile') } - const param = this.getQueryParams() - if (this.selectedRowKeys && this.selectedRowKeys.length > 0) { - param.selections = this.selectedRowKeys.join(',') - } + const param = {} + param.taskId = this.$route.query.taskId console.log('导出参数', param) // 加一个大的提示 const modalLoading = this.$info({ diff --git a/src/views/workCenter/regulatoryComplianceCheckProcess/modules/MainFinderSingleAuditBaseInfo.vue b/src/views/workCenter/regulatoryComplianceCheckProcess/modules/MainFinderSingleAuditBaseInfo.vue index 56a9ca6..54ec235 100644 --- a/src/views/workCenter/regulatoryComplianceCheckProcess/modules/MainFinderSingleAuditBaseInfo.vue +++ b/src/views/workCenter/regulatoryComplianceCheckProcess/modules/MainFinderSingleAuditBaseInfo.vue @@ -2,13 +2,6 @@
{{ $t('dispatchInformation') }}
-
- - - {{ $t('export') }} - -
- 0) { - param.selections = this.selectedRowKeys.join(',') - } - console.log('导出参数', param) - // 加一个大的提示 - const modalLoading = this.$info({ - title: this.$t('tips'), - content: {this.$t('exportTip')} , - keyboard: false - }) - // 把知道了这个按钮去掉 - this.$nextTick(() => { - document.getElementsByClassName('ant-modal-confirm-btns')[0].style = 'display:none' - }) - downFile(this.url.exportXlsUrl, param).then((data) => { - if (!data) { - this.$message.warning(this.$t('fileDownloadFail')) - return - } - if (typeof window.navigator.msSaveBlob !== 'undefined') { - window.navigator.msSaveBlob(new Blob([data], { type: 'application/vnd.ms-excel' }), fileName + fileSuffix) - } else { - const url = window.URL.createObjectURL(new Blob([data], { type: 'application/vnd.ms-excel' })) - const link = document.createElement('a') - link.style.display = 'none' - link.href = url - link.setAttribute('download', fileName + fileSuffix) - document.body.appendChild(link) - link.click() - document.body.removeChild(link) // 下载完成移除元素 - window.URL.revokeObjectURL(url) // 释放掉blob对象 - } - }).finally(() => { - // 销毁这个提示 - modalLoading.destroy() - }) } } }