Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pseer
gxpt_web
Commits
784e4348
Commit
784e4348
authored
May 13, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改标签管理的正则表达式
parent
8e057e3e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
index.vue
src/views/system/label/index.vue
+3
-3
No files found.
src/views/system/label/index.vue
View file @
784e4348
...
@@ -196,13 +196,13 @@ export default {
...
@@ -196,13 +196,13 @@ export default {
rules
:
{
rules
:
{
name
:
[
name
:
[
{
required
:
true
,
message
:
'请输入标签名称'
,
trigger
:
'change'
},
{
required
:
true
,
message
:
'请输入标签名称'
,
trigger
:
'change'
},
//不能输入英文
{
pattern
:
/^
[
0-9
\u
4e00-
\u
9fa5
]
+$/
,
message
:
'不能输入英文'
,
trigger
:
'change'
},
//不能含有特殊字符
//不能含有特殊字符
{
pattern
:
/^
[
a-zA-Z0-9
\u
4e00-
\u
9fa5
]
+$/
,
message
:
'不能含有特殊字符'
,
trigger
:
'change'
},
{
pattern
:
/^
[
a-zA-Z0-9
\u
4e00-
\u
9fa5
]
+$/
,
message
:
'不能含有特殊字符'
,
trigger
:
'change'
},
{
min
:
1
,
max
:
20
,
message
:
'长度在 1 到 20 个字符'
,
trigger
:
'change'
},
{
min
:
1
,
max
:
20
,
message
:
'长度在 1 到 20 个字符'
,
trigger
:
'change'
},
//字符串中间不能含有空格
//字符串中间不能含有空格
{
pattern
:
/^
\S
*$/
,
message
:
'字符串中间不能含有空格'
,
trigger
:
'change'
},
{
pattern
:
/^
\S
*$/
,
message
:
'字符串中间不能含有空格'
,
trigger
:
'change'
}
//不能输入英文
{
pattern
:
/^
[\u
4e00-
\u
9fa5
]
+$/
,
message
:
'不能输入英文'
,
trigger
:
'change'
}
],
],
}
}
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment