Showing
1 changed file
with
8 additions
and
0 deletions
@@ -550,6 +550,10 @@ export default { | @@ -550,6 +550,10 @@ export default { | ||
550 | params.docNo = "user"; | 550 | params.docNo = "user"; |
551 | params.type = "user"; | 551 | params.type = "user"; |
552 | } | 552 | } |
553 | + if (params.name.length>15){ | ||
554 | + proxy.$global.showMsg("文件名称超长!", "warning"); | ||
555 | + return; | ||
556 | + } | ||
553 | // 新增 | 557 | // 新增 |
554 | proxy.$http.get(`/inspection-report/file/file/insertFolder`, params, function (res) { | 558 | proxy.$http.get(`/inspection-report/file/file/insertFolder`, params, function (res) { |
555 | if (res && res.code == 0) { | 559 | if (res && res.code == 0) { |
@@ -781,6 +785,10 @@ export default { | @@ -781,6 +785,10 @@ export default { | ||
781 | proxy.$global.showMsg("文件名称不能为空!", "warning"); | 785 | proxy.$global.showMsg("文件名称不能为空!", "warning"); |
782 | return; | 786 | return; |
783 | } | 787 | } |
788 | + if(item.fileName.length>15){ | ||
789 | + proxy.$global.showMsg("文件名称超长!", "warning"); | ||
790 | + return; | ||
791 | + } | ||
784 | // 执行改名 | 792 | // 执行改名 |
785 | proxy.$http.get(url, {id: item.id, name: item.fileName}, function (res) { | 793 | proxy.$http.get(url, {id: item.id, name: item.fileName}, function (res) { |
786 | if (res && res.success) { | 794 | if (res && res.success) { |
-
Please register or login to post a comment