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
798c0538
Commit
798c0538
authored
Nov 03, 2022
by
chenshouchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 样式优化
parent
23993250
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
index.module.scss
...rces/UserResourcesTemplate/TemplateItem/index.module.scss
+4
-0
index.tsx
...serResources/UserResourcesTemplate/TemplateItem/index.tsx
+3
-1
index.tsx
src/views/WorkFlowEdit/index.tsx
+4
-1
No files found.
src/views/ResourceCenter/UserResources/UserResourcesTemplate/TemplateItem/index.module.scss
View file @
798c0538
...
@@ -39,6 +39,10 @@
...
@@ -39,6 +39,10 @@
color
:
rgba
(
30
,
38
,
51
,
1
);
color
:
rgba
(
30
,
38
,
51
,
1
);
margin-left
:
8px
;
margin-left
:
8px
;
font-weight
:
550
;
font-weight
:
550
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
display
:
inline-block
;
}
}
}
}
.templateDesc
{
.templateDesc
{
...
...
src/views/ResourceCenter/UserResources/UserResourcesTemplate/TemplateItem/index.tsx
View file @
798c0538
...
@@ -40,7 +40,9 @@ const TemplateItem = (props: ITemplateItemPorps) => {
...
@@ -40,7 +40,9 @@ const TemplateItem = (props: ITemplateItemPorps) => {
</
div
>
</
div
>
<
div
className=
{
style
.
templateTitleBox
}
>
<
div
className=
{
style
.
templateTitleBox
}
>
<
img
src=
{
templateIcon
}
alt=
""
/>
<
img
src=
{
templateIcon
}
alt=
""
/>
<
div
className=
{
style
.
templateTitle
}
>
{
templateInfo
.
title
}
</
div
>
<
div
className=
{
style
.
templateTitle
}
title=
{
templateInfo
.
title
}
>
{
templateInfo
.
title
}
</
div
>
</
div
>
</
div
>
<
div
className=
{
style
.
templateDesc
}
>
{
templateInfo
.
description
}
</
div
>
<
div
className=
{
style
.
templateDesc
}
>
{
templateInfo
.
description
}
</
div
>
{
footer
&&
footer
()
}
{
footer
&&
footer
()
}
...
...
src/views/WorkFlowEdit/index.tsx
View file @
798c0538
...
@@ -61,7 +61,8 @@ const WorkFlowEdit = observer((props: IProps) => {
...
@@ -61,7 +61,8 @@ const WorkFlowEdit = observer((props: IProps) => {
const
[
saveFormDialog
,
setSaveFormDialog
]
=
useState
(
false
);
// 保存弹窗显示与否控制
const
[
saveFormDialog
,
setSaveFormDialog
]
=
useState
(
false
);
// 保存弹窗显示与否控制
const
[
title
,
setTitle
]
=
useState
(
""
);
// 自定义模板名称
const
[
title
,
setTitle
]
=
useState
(
""
);
// 自定义模板名称
const
[
version
,
setVersion
]
=
useState
(
"1.0.0"
);
// 自定义模板版本
const
[
version
,
setVersion
]
=
useState
(
"1.0.0"
);
// 自定义模板版本
const
[
oldversion
,
setOldersion
]
=
useState
(
""
);
// 编辑是自定义模板的老版本
const
[
oldversion
,
setOldersion
]
=
useState
(
""
);
// 编辑时自定义模板的老版本
const
[
selfAddingEewVersion
,
setSelfAddingEewVersion
]
=
useState
(
""
);
// 编辑时自增新版本
const
[
description
,
setDescription
]
=
useState
(
""
);
// 自定义模板描述
const
[
description
,
setDescription
]
=
useState
(
""
);
// 自定义模板描述
const
[
creator
,
setCreator
]
=
useState
(
""
);
// 自定义模板创建人
const
[
creator
,
setCreator
]
=
useState
(
""
);
// 自定义模板创建人
const
[
operatingArea
,
setOperatingArea
]
=
useState
<
"form"
|
"flow"
>
(
"form"
);
// 当前操作区域
const
[
operatingArea
,
setOperatingArea
]
=
useState
<
"form"
|
"flow"
>
(
"form"
);
// 当前操作区域
...
@@ -138,6 +139,7 @@ const WorkFlowEdit = observer((props: IProps) => {
...
@@ -138,6 +139,7 @@ const WorkFlowEdit = observer((props: IProps) => {
}
}
}
}
setVersion
(
arr
.
join
(
"."
));
setVersion
(
arr
.
join
(
"."
));
setSelfAddingEewVersion
(
arr
.
join
(
"."
));
setCreator
(
res
.
data
.
creator
);
setCreator
(
res
.
data
.
creator
);
setDescription
(
res
.
data
.
description
);
setDescription
(
res
.
data
.
description
);
}
}
...
@@ -215,6 +217,7 @@ const WorkFlowEdit = observer((props: IProps) => {
...
@@ -215,6 +217,7 @@ const WorkFlowEdit = observer((props: IProps) => {
if
(
!
tasksIsCheck
)
{
if
(
!
tasksIsCheck
)
{
Message
.
error
(
"工作流校验未通过,请检查!"
);
Message
.
error
(
"工作流校验未通过,请检查!"
);
}
else
{
}
else
{
setVersion
(
selfAddingEewVersion
);
setSaveFormDialog
(
true
);
setSaveFormDialog
(
true
);
}
}
};
};
...
...
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