Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bkunyun
Project
Project
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
Administrator
bkunyun
Commits
f0de1db1
Commit
f0de1db1
authored
Aug 23, 2022
by
wuyongsheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 保存自定义模版校验规则修改
parent
53ba73c7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
util.ts
src/utils/util.ts
+3
-3
index.module.css
src/views/Project/ProjectJobDetail/index.module.css
+1
-1
index.tsx
...ews/Project/components/Flow/components/FlowNode/index.tsx
+2
-2
index.tsx
...iews/WorkFlowEdit/components/SaveCustomTemplate/index.tsx
+3
-3
No files found.
src/utils/util.ts
View file @
f0de1db1
/*
/*
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-06-07 18:37:53
* @Date: 2022-06-07 18:37:53
* @LastEditors: 吴永生
#A02208 yongsheng.wu@wholion
.com
* @LastEditors: 吴永生
15770852798@163
.com
* @LastEditTime: 2022-0
6-15 17:49:27
* @LastEditTime: 2022-0
8-23 11:19:11
* @FilePath: /bkunyun/src/utils/util.ts
* @FilePath: /bkunyun/src/utils/util.ts
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -67,7 +67,7 @@ export const getTokenInfo = () => {
...
@@ -67,7 +67,7 @@ export const getTokenInfo = () => {
return
val
;
return
val
;
};
};
const
IsNumberLetterChineseReg
=
new
RegExp
(
"^[A-Za-z0-9
\
u4e00-
\
u9fa5]
+
$"
);
const
IsNumberLetterChineseReg
=
new
RegExp
(
"^[A-Za-z0-9
\
u4e00-
\
u9fa5]
{1,50}
$"
);
export
const
checkIsNumberLetterChinese
=
(
string
:
string
)
=>
{
export
const
checkIsNumberLetterChinese
=
(
string
:
string
)
=>
{
return
IsNumberLetterChineseReg
.
test
(
string
);
return
IsNumberLetterChineseReg
.
test
(
string
);
...
...
src/views/Project/ProjectJobDetail/index.module.css
View file @
f0de1db1
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
font-size
:
14px
;
font-size
:
14px
;
}
}
.outputItemName
{
.outputItemName
{
max-width
:
1
90
px
;
max-width
:
1
72
px
;
white-space
:
nowrap
;
white-space
:
nowrap
;
display
:
block
;
display
:
block
;
overflow
:
hidden
;
overflow
:
hidden
;
...
...
src/views/Project/components/Flow/components/FlowNode/index.tsx
View file @
f0de1db1
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-07-12 11:29:46
* @Date: 2022-07-12 11:29:46
* @LastEditors: 吴永生 15770852798@163.com
* @LastEditors: 吴永生 15770852798@163.com
* @LastEditTime: 2022-08-22 1
6:47
:06
* @LastEditTime: 2022-08-22 1
9:16
:06
* @FilePath: /bkunyun/src/views/Project/components/Flow/components/FlowNode/index.tsx
* @FilePath: /bkunyun/src/views/Project/components/Flow/components/FlowNode/index.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -98,7 +98,7 @@ const FlowNode = (props: any) => {
...
@@ -98,7 +98,7 @@ const FlowNode = (props: any) => {
);
);
})
})
:
null
}
:
null
}
<
div
>
<
div
style=
{
{
display
:
'flex'
,
alignItems
:
'center'
}
}
>
<
span
style=
{
{
fontSize
:
'12px'
,
lineHeight
:
'24px'
}
}
>
{
title
||
""
}
{
showVersion
&&
version
}
</
span
>
<
span
style=
{
{
fontSize
:
'12px'
,
lineHeight
:
'24px'
}
}
>
{
title
||
""
}
{
showVersion
&&
version
}
</
span
>
{
flowType
!==
"edit"
&&
isCheck
?
(
{
flowType
!==
"edit"
&&
isCheck
?
(
<
span
className=
{
styles
.
successDot
}
></
span
>
<
span
className=
{
styles
.
successDot
}
></
span
>
...
...
src/views/WorkFlowEdit/components/SaveCustomTemplate/index.tsx
View file @
f0de1db1
/*
/*
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-07-15 15:47:16
* @Date: 2022-07-15 15:47:16
* @LastEditors: 吴永生
#A02208 yongsheng.wu@wholion
.com
* @LastEditors: 吴永生
15770852798@163
.com
* @LastEditTime: 2022-0
7-15 16:30:5
9
* @LastEditTime: 2022-0
8-23 11:32:1
9
* @FilePath: /bkunyun/src/views/WorkFlowEdit/components/SaveCustomTemplate/index.tsx
* @FilePath: /bkunyun/src/views/WorkFlowEdit/components/SaveCustomTemplate/index.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -107,7 +107,7 @@ const SaveCustomTemplate = (props: IProps) => {
...
@@ -107,7 +107,7 @@ const SaveCustomTemplate = (props: IProps) => {
helperText
:
"必须输入模板名称"
,
helperText
:
"必须输入模板名称"
,
});
});
return
false
;
return
false
;
}
else
if
(
title
.
length
>
15
)
{
}
else
if
(
title
.
length
>
50
)
{
setTitleHelper
({
setTitleHelper
({
error
:
true
,
error
:
true
,
helperText
:
"格式不正确,必须在15字符以内,仅限大小写字母、数字、中文"
,
helperText
:
"格式不正确,必须在15字符以内,仅限大小写字母、数字、中文"
,
...
...
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