Explorar el Código

王子文 专项培养 - bug fixed: 解决了培养计划明细页面反馈、学员附件、学习资料对话框删除文件后无法刷新文件列表的问题

wangggziwen hace 3 años
padre
commit
1894c94c8d
Se han modificado 1 ficheros con 14 adiciones y 1 borrados
  1. 14 1
      ui/src/views/training/spec/plan/index.vue

+ 14 - 1
ui/src/views/training/spec/plan/index.vue

@@ -762,6 +762,8 @@ export default {
       },
       // 表格参数
       tableData: [],
+      // 对话框类型,1表示反馈附件,2表示导师上传的学习资料,3表示学员附件
+      dialogType: null
     };
   },
   watch: {
@@ -937,6 +939,7 @@ export default {
     },
     /** 反馈处理 */
     handleFeedback(row) {
+      this.dialogType = 1;
       // 加载反馈附件
       this.docFeedback.id = row.id;
       this.docFeedback.queryParams.pId = row.id
@@ -1010,6 +1013,7 @@ export default {
 
     /** 报告附件按钮操作 */
     handleDocMentor(row) {
+      this.dialogType = 2;
       this.docMentor.id = row.id;
       this.docMentor.title = row.plantName + this.$t('学习资料');
       this.docMentor.open = true;
@@ -1021,6 +1025,7 @@ export default {
       })
     },
     handleDocSuccessor(row) {
+      this.dialogType = 3;
       this.docSuccessor.id = row.id;
       this.docSuccessor.title = row.plantName + this.$t('学员附件');
       this.docSuccessor.open = true;
@@ -1085,7 +1090,15 @@ export default {
       }).then(function() {
         return delCommonfile(ids);
       }).then(() => {
-        this.getFileList()
+        if (this.dialogType == 1) {
+          this.getFileListFeedback();
+        }
+        if (this.dialogType == 2) {
+          this.getFileListMentor();
+        }
+        if (this.dialogType == 3) {
+          this.getFileListSuccessor();
+        }
         this.msgSuccess(this.$t('删除成功'));
       })
     },