Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-custom
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7109ba97
authored
Dec 30, 2021
by
李长胜
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
标签修改
1 parent
841b19a8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
src/common/common.js
src/views/tagsManage/index.vue
src/common/common.js
View file @
7109ba9
...
...
@@ -108,5 +108,23 @@ export const common = {
}
else
{
callback
()
}
},
/**
* 中文英文数字下划线括号,30个字符,是字符
*/
checkCharName
(
rule
,
value
,
callback
)
{
var
rxp
=
/^
[\u
4e00-
\u
9fa5_a-zA-Z0-9.
\\
()
\\
()
]
+$/
if
(
!
rule
.
required
)
{
if
(
!
value
)
{
callback
()
}
else
if
(
!
rxp
.
test
(
value
))
{
return
callback
(
new
Error
(
'请输入中文英文数字下划线或括号'
))
}
}
if
(
!
value
)
{
return
callback
(
new
Error
(
'请输入'
))
}
else
{
callback
()
}
}
}
src/views/tagsManage/index.vue
View file @
7109ba9
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment