diff --git a/src/views/personnelEfficiencyManagement/performanceManagement/components/reportingPerf.vue b/src/views/personnelEfficiencyManagement/performanceManagement/components/reportingPerf.vue index b86e9be9..73fd8eb8 100644 --- a/src/views/personnelEfficiencyManagement/performanceManagement/components/reportingPerf.vue +++ b/src/views/personnelEfficiencyManagement/performanceManagement/components/reportingPerf.vue @@ -197,6 +197,10 @@ export default { this.$message.error('请先上传文件'); return; } + if (!this.tableData || this.tableData.length === 0) { + this.$message.error('文件内容为空'); + return; + } // 1. 判断状态 const hasPending = this.row.subTasks?.some(t => t.status === 1); const hasError = this.tableData.some(item => item.isSysUser == 0);