diff --git a/src/views/archivesManage/archivesList/module/archivesAnjuan/index.vue b/src/views/archivesManage/archivesList/module/archivesAnjuan/index.vue index 3786c17..e1aeb66 100644 --- a/src/views/archivesManage/archivesList/module/archivesAnjuan/index.vue +++ b/src/views/archivesManage/archivesList/module/archivesAnjuan/index.vue @@ -611,7 +611,13 @@ export default { 'categoryId': this.categoryId } FetchReduction(params).then(data => { - this.$message.success('还原成功!') + if (data === 0) { + this.$message.error('还原失败!') + } else if (this.selections.length === data) { + this.$message.success('还原成功!') + } else if (this.selections.length > data) { + this.$message.success('部分档案还原成功!') + } this.selections = [] this.getTableList() this.restoreVisible = false diff --git a/src/views/archivesManage/archivesList/module/archivesJuannei/index.vue b/src/views/archivesManage/archivesList/module/archivesJuannei/index.vue index 26ce0b1..37eca35 100644 --- a/src/views/archivesManage/archivesList/module/archivesJuannei/index.vue +++ b/src/views/archivesManage/archivesList/module/archivesJuannei/index.vue @@ -532,7 +532,13 @@ export default { 'categoryId': this.categoryId } FetchReduction(params).then(data => { - this.$message.success('还原成功!') + if (data === 0) { + this.$message.error('还原失败!') + } else if (this.selections.length === data) { + this.$message.success('还原成功!') + } else if (this.selections.length > data) { + this.$message.success('部分档案还原成功!') + } this.selections = [] this.getTableList() this.restoreVisible = false diff --git a/src/views/archivesManage/archivesList/module/archivesProject/index.vue b/src/views/archivesManage/archivesList/module/archivesProject/index.vue index ddb9e9b..9ab1fb3 100644 --- a/src/views/archivesManage/archivesList/module/archivesProject/index.vue +++ b/src/views/archivesManage/archivesList/module/archivesProject/index.vue @@ -432,7 +432,13 @@ export default { 'categoryId': this.selectedCategory.id } FetchReduction(params).then(data => { - this.$message.success('还原成功!') + if (data === 0) { + this.$message.error('还原失败!') + } else if (this.selections.length === data) { + this.$message.success('还原成功!') + } else if (this.selections.length > data) { + this.$message.success('部分档案还原成功!') + } this.selections = [] this.getTableList() this.restoreVisible = false diff --git a/src/views/archivesManage/archivesList/module/uploadFile/index.vue b/src/views/archivesManage/archivesList/module/uploadFile/index.vue index 441d846..6ebf46d 100644 --- a/src/views/archivesManage/archivesList/module/uploadFile/index.vue +++ b/src/views/archivesManage/archivesList/module/uploadFile/index.vue @@ -197,11 +197,7 @@ export default { 'jsonString': JSON.stringify(arrayUpload) } FetchEditFile(params).then(data => { - this.$notify({ - title: '上传附件成功', - type: 'success', - duration: 2500 - }) + this.$message.success('上传附件成功!') this.crud.refresh() this.getFileList() }) @@ -244,7 +240,7 @@ export default { fetch(url).then(res => res.blob()).then(blob => { downloadFile(blob, row.file_name.split('.')[0], row.file_type) }).catch(() => { - alert('下载文件失败') + this.$message.error('下载文件失败!') }) }, // 选择删除 @@ -266,11 +262,7 @@ export default { // 删除fetch FetchDeleteFile(params).then(res => { this.crud.delAllLoading = false - this.$notify({ - title: '删除成功', - type: 'success', - duration: 2500 - }) + this.$message.success('删除成功!') this.crud.refresh() this.getFileList() }) @@ -308,11 +300,7 @@ export default { } FetchFileSort(params).then((res) => { this.sortVisible = false - this.$notify({ - title: '附件排序成功', - type: 'success', - duration: 2500 - }) + this.$message.success('附件排序成功!') }) }, // table