From 2c81e688fded3106805ba0fcdd17178421f3091e Mon Sep 17 00:00:00 2001 From: xuhuajiao <13476289682@163.com> Date: Thu, 7 Jul 2022 15:18:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E5=8E=9F=E5=88=A4=E6=96=AD/=E6=A1=A3?= =?UTF-8?q?=E6=A1=88=E7=AE=A1=E7=90=86=E7=BB=9F=E4=B8=80message?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module/archivesAnjuan/index.vue | 8 +++++++- .../module/archivesJuannei/index.vue | 8 +++++++- .../module/archivesProject/index.vue | 8 +++++++- .../archivesList/module/uploadFile/index.vue | 20 ++++--------------- 4 files changed, 25 insertions(+), 19 deletions(-) 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