From 39c527b91af1f257e949234e7e99bf680c5824e0 Mon Sep 17 00:00:00 2001 From: ysn <2126564605@qq.com> Date: Mon, 27 Apr 2026 19:11:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E6=95=88=E7=AE=A1=E7=90=86-=E7=BB=A9?= =?UTF-8?q?=E6=95=88=E7=AE=A1=E7=90=86-=E7=BB=A9=E6=95=88=E5=A1=AB?= =?UTF-8?q?=E6=8A=A5-=E5=A1=AB=E6=8A=A5=E6=96=87=E4=BB=B6=E5=88=A0?= =?UTF-8?q?=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/reportingPerf.vue | 41 ++++++++++--------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/src/views/personnelEfficiencyManagement/performanceManagement/components/reportingPerf.vue b/src/views/personnelEfficiencyManagement/performanceManagement/components/reportingPerf.vue index 7e2a2620..da97db66 100644 --- a/src/views/personnelEfficiencyManagement/performanceManagement/components/reportingPerf.vue +++ b/src/views/personnelEfficiencyManagement/performanceManagement/components/reportingPerf.vue @@ -45,7 +45,7 @@ import { readExcelBsEfficiencyTask, reportBsEfficiencyTask, subReportBsEfficiencyTask, - removeFile + removeFile, } from '@/api/performanceManagement/dataReporting'; export default { @@ -88,7 +88,7 @@ export default { tableColumn: [], attachId: null, formData: null, - isUploading:false, + isUploading: false, }; }, watch: { @@ -106,7 +106,7 @@ export default { console.log('uploadColumn', uploadColumn); if (uploadColumn) { // this.$set(uploadColumn, 'disabled', disabled); - uploadColumn.disabled = disabled + uploadColumn.disabled = disabled; } }, tableRowClassName({ row }) { @@ -126,7 +126,7 @@ export default { }, uploadBefore(file, done, loading, column) { - console.log('1111111111111111111') + console.log('1111111111111111111'); this.isUploading = true; this.setUploadDisabled(true); this.formData = file; @@ -153,22 +153,23 @@ export default { // this.$message.error('最多只能上传一个文件'); // return // }, - uploadDelete(file, column){ - console.log('file-------------',file) - // removeFile({ - // fileName:file.name - // }).then(res =>{ - // if(res.data.code === 200){ - this.isRead = false - this.attachId = null - this.formData = null - this.excelForm = { excelFile: [] } - this.tableColumn = [] - this.tableData = [] - // }else{ - // this.$message.error(res.data.msg || '删除失败') - // } - // }) + uploadDelete(file, column) { + console.log('file-------------', file); + removeFile({ + fileName: file.name, + }).then(res => { + if (res.data.code === 200) { + this.isRead = false; + this.attachId = null; + this.formData = null; + this.excelForm = { excelFile: [] }; + this.tableColumn = []; + this.tableData = []; + this.$message.success('删除成功'); + } else { + this.$message.error(res.data.msg || '删除失败'); + } + }); }, readExcel() { if (!this.attachId) {