Merge branch 'develop' into 'FOTON'

Develop

See merge request LAWS/laws-system-front-FOTON!260
This commit is contained in:
王夏晖
2021-12-28 16:30:22 +08:00
5 changed files with 13 additions and 12 deletions
@@ -382,14 +382,13 @@ export default {
}
},
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
if (fileSuffix !== 'pdf' && fileSuffix !== 'PDF') {
this.$message.error('水印下载仅支持PDF,pdf格式文件')
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMark?fileId=" + attId;
if (attId != null && attId !== '') {
window.location.href = '/api/att/attFile/downloadFileForSarWaterMark?fileId=' + attId + '&userId=' + this.$store.getters.userInfo.userId
} else {
this.$message.error("请选择要下载的文件");
this.$message.error('请选择要下载的文件')
}
}
},
@@ -452,14 +452,13 @@ export default {
}
},
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
if (fileSuffix !== 'pdf' && fileSuffix !== 'PDF') {
this.$message.error('水印下载仅支持PDF,pdf格式文件')
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMark?fileId=" + attId;
if (attId != null && attId !== '') {
window.location.href = '/api/att/attFile/downloadFileForSarWaterMark?fileId=' + attId + '&userId=' + this.$store.getters.userInfo.userId
} else {
this.$message.error("请选择要下载的文件");
this.$message.error('请选择要下载的文件')
}
}
},
@@ -880,6 +880,7 @@ export default {
}else{
this.qdform = item.form
this.dataList =item.form.dataList
this.commentText = item.commentText
this.detailedId = item.form.detailedListId;
}
});
@@ -889,6 +889,7 @@ export default {
}else{
this.qdform = item.form
this.dataList =item.form.dataList
this.commentText = item.commentText
this.detailedId = item.form.detailedListId;
}
});
@@ -883,6 +883,7 @@ export default {
}else{
this.qdform = item.form
this.dataList =item.form.dataList
this.commentText = item.commentText
this.detailedId = item.form.detailedListId;
}
});