【修改】转办接口

This commit is contained in:
zhoulingpo
2023-05-16 14:18:48 +08:00
parent 0bf5e77f40
commit f69ea4a22a
5 changed files with 7 additions and 8 deletions
@@ -463,11 +463,11 @@ export default {
let realFileType = file.name.split('.')[file.name.split('.').length - 1];
const isType = (
file.type === fileType.pdf || file.type === fileType.xls || file.type === fileType.xlsx || file.type === fileType.doc || file.type === fileType.docx || file.type === fileType.ppt || file.type === fileType.pptx
|| realFileType === 'pdf' || realFileType === 'xls' || realFileType === 'xlsx' || realFileType === 'doc' || realFileType === 'docx' || realFileType === 'ppt' || realFileType === 'pptx'
|| realFileType === 'pdf' || realFileType === 'ppt' || realFileType === 'pptx'
);
const isSize = file.size / 1024 / 1024 < 200;
if (!isType) {
this.$message.error('仅能上传 pdfxlsxlsxdocdocxpptpptx 格式文件');
this.$message.error('仅能上传 pdfpptpptx 格式文件');
}
if (!isSize) {
this.$message.error('您最大可上传200M文件');
+1 -1
View File
@@ -139,7 +139,7 @@ export default {
taskId: this.taskId,
assignee: treeNode[0].USID,
userId: this.$store.getters.userInfo.usid,
pId: this.prcId,
prcId: this.prcId,
approvalOpinion:this.application
}).then(() => {
this.$message.success('转办成功')