|
@@ -144,7 +144,7 @@
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-delete"
|
|
|
- @click="handleDeleteDoc(scope.row)"
|
|
|
+ @click="handleDeleteDocSuccessor(scope.row)"
|
|
|
>{{ $t('删除') }}</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -217,7 +217,7 @@
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-delete"
|
|
|
- @click="handleDeleteDoc(scope.row)"
|
|
|
+ @click="handleDeleteDocFeedback(scope.row)"
|
|
|
>{{ $t('删除') }}</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -655,13 +655,13 @@ export default {
|
|
|
},
|
|
|
/** 附件上传成功处理 */
|
|
|
handleFileDocSuccessFeedback(response, file, fileList) {
|
|
|
- this.getFileListFeedback()
|
|
|
- this.docMentorFeedback.isUploading = false;
|
|
|
+ // this.$refs.docFeedback.clearFiles(); //上传成功之后清除历史记录
|
|
|
+ this.docFeedback.isUploading = false;
|
|
|
this.$alert(response.msg, this.$t('导入结果'), { dangerouslyUseHTMLString: true });
|
|
|
- this.docFeedback.id = row.id;
|
|
|
- this.docFeedback.queryParams.pId = row.id
|
|
|
- this.docFeedback.pId = row.id
|
|
|
- this.getFileListFeedback()
|
|
|
+ // this.docFeedback.id = row.id;
|
|
|
+ // this.docFeedback.queryParams.pId = row.id
|
|
|
+ // this.docFeedback.pId = row.id
|
|
|
+ this.getFileListFeedback();
|
|
|
},
|
|
|
handleFileDocSuccessMentor(response, file, fileList) {
|
|
|
this.docMentor.isUploading = false;
|
|
@@ -674,7 +674,33 @@ export default {
|
|
|
this.getFileListSuccessor()
|
|
|
},
|
|
|
/** 删除按钮操作 */
|
|
|
- handleDeleteDoc(row) {
|
|
|
+ handleDeleteDocFeedback(row) {
|
|
|
+ const ids = row.id || this.ids;
|
|
|
+ this.$confirm(this.$t('是否确认删除?'), this.$t('警告'), {
|
|
|
+ confirmButtonText: this.$t('确定'),
|
|
|
+ cancelButtonText: this.$t('取消'),
|
|
|
+ type: "warning"
|
|
|
+ }).then(function() {
|
|
|
+ return delCommonfile(ids);
|
|
|
+ }).then(() => {
|
|
|
+ this.getFileListFeedback()
|
|
|
+ this.msgSuccess(this.$t('删除成功'));
|
|
|
+ })
|
|
|
+ },
|
|
|
+ handleDeleteDocMentor(row) {
|
|
|
+ const ids = row.id || this.ids;
|
|
|
+ this.$confirm(this.$t('是否确认删除?'), this.$t('警告'), {
|
|
|
+ confirmButtonText: this.$t('确定'),
|
|
|
+ cancelButtonText: this.$t('取消'),
|
|
|
+ type: "warning"
|
|
|
+ }).then(function() {
|
|
|
+ return delCommonfile(ids);
|
|
|
+ }).then(() => {
|
|
|
+ this.getFileListMentor()
|
|
|
+ this.msgSuccess(this.$t('删除成功'));
|
|
|
+ })
|
|
|
+ },
|
|
|
+ handleDeleteDocSuccessor(row) {
|
|
|
const ids = row.id || this.ids;
|
|
|
this.$confirm(this.$t('是否确认删除?'), this.$t('警告'), {
|
|
|
confirmButtonText: this.$t('确定'),
|
|
@@ -683,7 +709,7 @@ export default {
|
|
|
}).then(function() {
|
|
|
return delCommonfile(ids);
|
|
|
}).then(() => {
|
|
|
- this.getFileList()
|
|
|
+ this.getFileListSuccessor()
|
|
|
this.msgSuccess(this.$t('删除成功'));
|
|
|
})
|
|
|
},
|