Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
b5b5bddf
Commit
b5b5bddf
authored
Jul 28, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
云资源申请字段验证fixed
parent
e3d25bf2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
src/components/shop-cloud/shop-cloud.vue
src/components/shop-cloud/shop-cloud.vue
+12
-0
No files found.
src/components/shop-cloud/shop-cloud.vue
View file @
b5b5bddf
...
@@ -918,6 +918,14 @@ import InfoList from "@/components/infoList";
...
@@ -918,6 +918,14 @@ import InfoList from "@/components/infoList";
import
ApassDialog
from
"
@/components/apass-dialog
"
;
import
ApassDialog
from
"
@/components/apass-dialog
"
;
import
helper
from
"
@/services/helper.js
"
;
import
helper
from
"
@/services/helper.js
"
;
var
checkName
=
(
rule
,
value
,
callback
)
=>
{
if
(
new
RegExp
(
"
^[a-z0-9]([0-9]||[a-z]||-)*$
"
).
test
(
value
))
{
callback
();
}
else
{
callback
(
new
Error
(
"
小写字母或数字开头,可以由小写字母、数字、- 组成
"
));
}
}
;
export
default
{
export
default
{
components
:
{
components
:
{
BlockRadius
,
BlockRadius
,
...
@@ -959,12 +967,16 @@ export default {
...
@@ -959,12 +967,16 @@ export default {
ruleNew
:
{
ruleNew
:
{
namespace
:
[
namespace
:
[
{
required
:
true
,
message
:
"
请输入工作区域名称
"
,
trigger
:
"
blur
"
}
,
{
required
:
true
,
message
:
"
请输入工作区域名称
"
,
trigger
:
"
blur
"
}
,
{
max
:
16
,
message
:
"
长度应小于16个字符
"
,
trigger
:
"
blur
"
}
,
{
validator
:
checkName
,
trigger
:
"
blur
"
}
,
],
],
workplace
:
[
workplace
:
[
{
required
:
true
,
message
:
"
请输入中文名称
"
,
trigger
:
"
blur
"
}
,
{
required
:
true
,
message
:
"
请输入中文名称
"
,
trigger
:
"
blur
"
}
,
{
max
:
16
,
message
:
"
长度应小于16个字符
"
,
trigger
:
"
blur
"
}
,
],
],
workplacedesc
:
[
workplacedesc
:
[
{
required
:
true
,
message
:
"
请输入描述信息
"
,
trigger
:
"
blur
"
}
,
{
required
:
true
,
message
:
"
请输入描述信息
"
,
trigger
:
"
blur
"
}
,
{
max
:
100
,
message
:
"
长度应小于100个字符
"
,
trigger
:
"
blur
"
}
,
],
],
cpu
:
[{
required
:
true
,
message
:
"
请选择CPU使用量
"
,
trigger
:
"
blur
"
}
],
cpu
:
[{
required
:
true
,
message
:
"
请选择CPU使用量
"
,
trigger
:
"
blur
"
}
],
memory
:
[
memory
:
[
...
...
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