Authored by xwx

文档管理——文件夹名称增加长度限制

... ... @@ -550,6 +550,10 @@ export default {
params.docNo = "user";
params.type = "user";
}
if (params.name.length>15){
proxy.$global.showMsg("文件名称超长!", "warning");
return;
}
// 新增
proxy.$http.get(`/inspection-report/file/file/insertFolder`, params, function (res) {
if (res && res.code == 0) {
... ... @@ -781,6 +785,10 @@ export default {
proxy.$global.showMsg("文件名称不能为空!", "warning");
return;
}
if(item.fileName.length>15){
proxy.$global.showMsg("文件名称超长!", "warning");
return;
}
// 执行改名
proxy.$http.get(url, {id: item.id, name: item.fileName}, function (res) {
if (res && res.success) {
... ...