|
|
|
@@ -76,14 +76,12 @@ |
|
|
|
function validate() { |
|
|
|
$(".ui.form").form({ |
|
|
|
on: "blur", |
|
|
|
inline: true, |
|
|
|
fields: { |
|
|
|
boot_file: { |
|
|
|
identifier: "boot_file", |
|
|
|
rules: [ |
|
|
|
{ |
|
|
|
type: "regExp[/.+.py$/g]", |
|
|
|
prompt: "启动文件必须为.py结尾", |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
@@ -92,7 +90,6 @@ |
|
|
|
rules: [ |
|
|
|
{ |
|
|
|
type: "regExp[/^[a-zA-Z0-9-_]{1,36}$/]", |
|
|
|
prompt: "只包含大小写字母、数字、_和-,最长36个字符。", |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
@@ -101,7 +98,6 @@ |
|
|
|
rules: [ |
|
|
|
{ |
|
|
|
type: "regExp[/^[a-zA-Z0-9-_]{1,36}$/]", |
|
|
|
prompt: "只包含大小写字母、数字、_和-,最长36个字符。", |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
@@ -110,7 +106,6 @@ |
|
|
|
rules: [ |
|
|
|
{ |
|
|
|
type: "empty", |
|
|
|
prompt: "选择一个数据集", |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
|