人效管理-绩效管理-绩效填报-填报文件删除

dev-scheduling
ysn 1 month ago
parent c6fcb686c3
commit 39c527b91a
  1. 41
      src/views/personnelEfficiencyManagement/performanceManagement/components/reportingPerf.vue

@ -45,7 +45,7 @@ import {
readExcelBsEfficiencyTask, readExcelBsEfficiencyTask,
reportBsEfficiencyTask, reportBsEfficiencyTask,
subReportBsEfficiencyTask, subReportBsEfficiencyTask,
removeFile removeFile,
} from '@/api/performanceManagement/dataReporting'; } from '@/api/performanceManagement/dataReporting';
export default { export default {
@ -88,7 +88,7 @@ export default {
tableColumn: [], tableColumn: [],
attachId: null, attachId: null,
formData: null, formData: null,
isUploading:false, isUploading: false,
}; };
}, },
watch: { watch: {
@ -106,7 +106,7 @@ export default {
console.log('uploadColumn', uploadColumn); console.log('uploadColumn', uploadColumn);
if (uploadColumn) { if (uploadColumn) {
// this.$set(uploadColumn, 'disabled', disabled); // this.$set(uploadColumn, 'disabled', disabled);
uploadColumn.disabled = disabled uploadColumn.disabled = disabled;
} }
}, },
tableRowClassName({ row }) { tableRowClassName({ row }) {
@ -126,7 +126,7 @@ export default {
}, },
uploadBefore(file, done, loading, column) { uploadBefore(file, done, loading, column) {
console.log('1111111111111111111') console.log('1111111111111111111');
this.isUploading = true; this.isUploading = true;
this.setUploadDisabled(true); this.setUploadDisabled(true);
this.formData = file; this.formData = file;
@ -153,22 +153,23 @@ export default {
// this.$message.error(''); // this.$message.error('');
// return // return
// }, // },
uploadDelete(file, column){ uploadDelete(file, column) {
console.log('file-------------',file) console.log('file-------------', file);
// removeFile({ removeFile({
// fileName:file.name fileName: file.name,
// }).then(res =>{ }).then(res => {
// if(res.data.code === 200){ if (res.data.code === 200) {
this.isRead = false this.isRead = false;
this.attachId = null this.attachId = null;
this.formData = null this.formData = null;
this.excelForm = { excelFile: [] } this.excelForm = { excelFile: [] };
this.tableColumn = [] this.tableColumn = [];
this.tableData = [] this.tableData = [];
// }else{ this.$message.success('删除成功');
// this.$message.error(res.data.msg || '') } else {
// } this.$message.error(res.data.msg || '删除失败');
// }) }
});
}, },
readExcel() { readExcel() {
if (!this.attachId) { if (!this.attachId) {

Loading…
Cancel
Save