Toggle navigation
Toggle navigation
This project
Loading...
Sign in
monitor_v3
/
hg-monitor-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
xwx
3 years ago
Commit
54e9db614c1c354fbf4a39ab73bb1b686b4e3f7a
1 parent
59c7ed2f
文档管理——文件夹名称增加长度限制
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/document/index.js
hg-monitor-web-base/src/main/resources/static/vue3/src/components/common/document/index.js
View file @
54e9db6
...
...
@@ -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
)
{
...
...
Please
register
or
login
to post a comment