|
@@ -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('删除成功'));
|
|
|
})
|
|
|
},
|