Browse Source

还原判断/档案管理统一message

master
xuhuajiao 3 years ago
parent
commit
2c81e688fd
  1. 8
      src/views/archivesManage/archivesList/module/archivesAnjuan/index.vue
  2. 8
      src/views/archivesManage/archivesList/module/archivesJuannei/index.vue
  3. 8
      src/views/archivesManage/archivesList/module/archivesProject/index.vue
  4. 20
      src/views/archivesManage/archivesList/module/uploadFile/index.vue

8
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

8
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

8
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

20
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

Loading…
Cancel
Save