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
577fbd69
Commit
577fbd69
authored
Jul 20, 2022
by
chenshouchao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat-20220718' of
http://120.77.149.83/root/bkunyun
into feat-20220718
parents
0fcbb44d
0fab47b1
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
155 additions
and
124 deletions
+155
-124
api_prefix.ts
src/api/api_prefix.ts
+2
-2
MyButton.tsx
src/components/mui/MyButton.tsx
+108
-77
MyPopconfirm.tsx
src/components/mui/MyPopconfirm.tsx
+3
-3
index.tsx
src/views/ConsoleLayout/index.tsx
+3
-3
index.tsx
src/views/Project/ProjectJobDetail/index.tsx
+3
-3
index.tsx
src/views/Project/ProjectSubmitWork/index.tsx
+3
-4
index.tsx
src/views/Project/ProjectWorkbench/index.tsx
+17
-15
index.tsx
...kbench/workbenchTemplate/components/AddTemplate/index.tsx
+3
-4
addTemplate.tsx
...ectWorkbench/workbenchTemplate/components/addTemplate.tsx
+2
-2
templateBox.tsx
...ectWorkbench/workbenchTemplate/components/templateBox.tsx
+4
-4
index.tsx
...iews/Project/ProjectWorkbench/workbenchTemplate/index.tsx
+3
-3
index.tsx
src/views/WorkFlowEdit/index.tsx
+3
-3
button.tsx
src/views/mui_demo/button.tsx
+1
-1
No files found.
src/api/api_prefix.ts
View file @
577fbd69
...
...
@@ -2,7 +2,7 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-05-31 10:17:48
* @LastEditors: 吴永生#A02208 yongsheng.wu@wholion.com
* @LastEditTime: 2022-0
6-16 20:22:37
* @LastEditTime: 2022-0
7-18 15:44:35
* @FilePath: /bkunyun/src/api/api_prefix.ts
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
@@ -36,7 +36,7 @@ switch (process.env.REACT_APP_ENV) {
BACKEND_API_URI_PREFIX
=
"https://www.cloudam.cn"
;
}
else
{
BACKEND_API_URI_PREFIX
=
"http://47.
75.104.171
"
;
BACKEND_API_URI_PREFIX
=
"http://47.
57.4.97
"
;
}
break
;
}
...
...
src/components/mui/Button.tsx
→
src/components/mui/
My
Button.tsx
View file @
577fbd69
import
React
from
"react"
;
import
React
,
{
useCallback
}
from
"react"
;
import
{
makeStyles
}
from
"tss-react/mui"
;
import
{
Typography
,
Menu
,
MenuItem
,
Button
}
from
"@mui/material"
;
import
{
Typography
,
Menu
,
MenuItem
,
Button
,
ThemeProvider
,
createTheme
,
}
from
"@mui/material"
;
import
ArrowDropDownIcon
from
"@mui/icons-material/ArrowDropDown"
;
type
ButtonTagProps
=
{
text
:
string
;
//文本内容
variant
?:
"text"
|
"contained"
|
"outlined"
;
//按钮样式
c
lick
?:
any
;
//点击事件
onC
lick
?:
any
;
//点击事件
select
?:
any
[];
//选择按钮的下拉列表
fontSize
?:
string
;
//按钮文字大小
dropValue
?:
boolean
;
//选择的值
drop
?:
boolean
;
//是否开启选择
color
?:
"inherit"
|
"primary"
|
"secondary"
|
undefined
;
//按钮颜色风格
btnStyle
?:
any
;
//按钮自定义样式类
size
?:
"large"
|
"medium"
|
"small"
;
//按钮尺寸
disabled
?:
boolean
;
//是否禁用
style
?:
any
;
//按钮自定义样式
...
...
@@ -21,32 +26,108 @@ type ButtonTagProps = {
selectCallBack
?:
(
item
:
any
,
key
:
number
)
=>
void
;
//选择按钮的回调
};
const
theme
=
createTheme
({
components
:
{
MuiButton
:
{
styleOverrides
:
{
root
:
{
minWidth
:
"48px"
,
},
contained
:
{
backgroundColor
:
"#1370FF"
,
"&:hover"
:
{
backgroundColor
:
"#0459D9"
,
},
},
outlined
:
{
backgroundColor
:
"#FFFFFF"
,
border
:
"1px solid #1370FF"
,
boxShadow
:
"none !important"
,
color
:
"#1370FF"
,
"&:hover"
:
{
backgroundColor
:
"#ECF4FF "
},
},
text
:
{
backgroundColor
:
"transparent"
,
boxShadow
:
"none !important"
,
color
:
"#1370FF"
,
"&:hover"
:
{
backgroundColor
:
"#ECF4FF "
},
},
containedSecondary
:
{
backgroundColor
:
"#FF4E4E"
,
"&:hover"
:
{
backgroundColor
:
"#FF4E4E"
,
},
},
outlinedSecondary
:
{
border
:
"1px solid #FF4E4E"
,
boxShadow
:
"none !important"
,
color
:
"#FF4E4E"
,
"&:hover"
:
{
backgroundColor
:
"#FFEDED "
,
border
:
"1px solid #FF4E4E"
,
},
},
textSecondary
:
{
backgroundColor
:
"transparent"
,
boxShadow
:
"none !important"
,
color
:
"#FF4E4E"
,
"&:hover"
:
{
backgroundColor
:
"#FFEDED "
},
},
sizeSmall
:
{
"& p"
:
{
fontSize
:
"12px"
},
height
:
"28px"
,
padding
:
"0 12px"
,
},
sizeMedium
:
{
"& p"
:
{
fontSize
:
"14px"
},
height
:
"32px"
,
padding
:
"0 16px"
,
},
sizeLarge
:
{
"& p"
:
{
fontSize
:
"16px"
},
height
:
"36px"
,
padding
:
"0 16px"
,
},
},
},
MuiPaper
:
{
styleOverrides
:
{
elevation
:
{},
},
},
},
});
const
ButtonComponent
=
(
props
:
ButtonTagProps
)
=>
{
const
{
size
,
disabled
,
variant
,
color
,
img
,
btnStyle
=
{},
select
,
selectCallBack
,
}
=
props
;
const
{
size
,
disabled
,
variant
,
color
,
img
,
select
,
selectCallBack
}
=
props
;
const
{
classes
,
cx
}
=
useStyles
({});
const
[
anchorEl
,
setAnchorEl
]
=
React
.
useState
(
null
);
const
handleClick
=
(
event
:
{
currentTarget
:
React
.
SetStateAction
<
null
>
})
=>
setAnchorEl
(
event
.
currentTarget
);
const
defultClick
=
(
event
:
{
stoppropagation
:
()
=>
any
})
=>
const
handleClick
=
useCallback
(
(
event
:
{
currentTarget
:
React
.
SetStateAction
<
null
>
})
=>
{
setAnchorEl
(
event
.
currentTarget
);
},
[]
);
const
defaultClick
=
useCallback
((
event
:
{
stoppropagation
:
()
=>
any
})
=>
{
event
&&
event
.
stoppropagation
&&
event
.
stoppropagation
();
const
handleCloseOption
=
(
item
:
any
,
key
:
number
)
=>
{
setAnchorEl
(
null
);
selectCallBack
&&
selectCallBack
(
item
,
key
);
};
},
[]);
const
handleCloseOption
=
useCallback
(
(
item
:
any
,
key
:
number
)
=>
{
setAnchorEl
(
null
);
selectCallBack
&&
selectCallBack
(
item
,
key
);
},
[
selectCallBack
]
);
const
handleClose
=
()
=>
setAnchorEl
(
null
);
return
(
<>
<
ThemeProvider
theme=
{
theme
}
>
<
Button
size=
{
size
||
"medium"
}
variant=
{
variant
||
"contained"
}
...
...
@@ -54,25 +135,11 @@ const ButtonComponent = (props: ButtonTagProps) => {
disableRipple=
{
true
}
disableFocusRipple=
{
true
}
disabled=
{
disabled
||
false
}
classes=
{
{
root
:
btnStyle
.
root
||
classes
.
root
,
// disabled: btnStyle.disabled || classes.disabled,
containedSecondary
:
btnStyle
.
containedSecondary
||
classes
.
containedSecondary
,
outlined
:
btnStyle
.
outlined
||
classes
.
outlined
,
outlinedSecondary
:
btnStyle
.
outlinedSecondary
||
classes
.
outlinedSecondary
,
text
:
btnStyle
.
text
||
classes
.
text
,
textPrimary
:
btnStyle
.
textPrimary
||
classes
.
textPrimary
,
textSecondary
:
btnStyle
.
textSecondary
||
classes
.
textSecondary
,
sizeSmall
:
btnStyle
.
sizeSmall
||
classes
.
sizeSmall
,
sizeLarge
:
btnStyle
.
sizeLarge
||
classes
.
sizeLarge
,
}
}
style=
{
{
...
props
.
style
}
}
onClick=
{
props
.
select
?
handleClick
:
props
.
click
||
def
ultClick
}
onClick=
{
props
.
select
?
handleClick
:
props
.
onClick
||
defa
ultClick
}
>
{
img
||
""
}
<
Typography
style=
{
{
fontSize
:
props
.
fontSize
||
"14px"
}
}
>
<
Typography
style=
{
{
fontSize
:
props
.
fontSize
}
}
>
{
props
.
text
}
</
Typography
>
{
((
props
.
select
&&
props
.
select
.
length
>
0
)
||
props
.
drop
)
&&
(
...
...
@@ -101,7 +168,7 @@ const ButtonComponent = (props: ButtonTagProps) => {
return
(
<
MenuItem
key=
{
key
}
classes=
{
{
root
:
classes
.
menuItemRoot
}
}
//
classes=
{{
root
:
classes
.
menuItemRoot
}}
onClick=
{
()
=>
handleCloseOption
(
item
,
key
)
}
>
{
item
.
name
||
""
}
...
...
@@ -109,47 +176,11 @@ const ButtonComponent = (props: ButtonTagProps) => {
);
})
}
</
Menu
>
</>
</
ThemeProvider
>
);
};
const
useStyles
=
makeStyles
<
{}
>
()((
theme
)
=>
({
root
:
{
backgroundColor
:
"#136EFA"
,
boxShadow
:
"none !important"
,
color
:
"#ffffff"
,
"&:hover"
:
{
backgroundColor
:
"#0055D9"
},
},
containedSecondary
:
{
backgroundColor
:
"#D62C1F"
,
boxShadow
:
"none !important"
,
"&:hover"
:
{
backgroundColor
:
"#D82C1F"
},
},
outlined
:
{
backgroundColor
:
"#FFFFFF"
,
border
:
"1px solid #136EFA"
,
boxShadow
:
"none !important"
,
color
:
"#136EFA"
,
"&:hover"
:
{
backgroundColor
:
"rgba(19, 110, 250, 0.1)"
},
},
outlinedSecondary
:
{
border
:
"1px solid #D62C1F"
,
color
:
"#D62C1F"
,
"&:hover"
:
{
border
:
"1px solid #D62C1F"
,
backgroundColor
:
"rgba(214, 44, 31, 0.1)"
,
},
},
label
:
{
"& p"
:
{
fontSize
:
"13px"
}
},
text
:
{
backgroundColor
:
"transparent"
,
boxShadow
:
"none !important"
},
textPrimary
:
{
color
:
"#136EFA"
,
"&:hover"
:
{
backgroundColor
:
"#E8F1FF"
}
},
textSecondary
:
{
color
:
"#F44335"
,
"&:hover"
:
{
backgroundColor
:
"rgba(244, 67, 53, 0.1)"
},
},
sizeSmall
:
{
"& p"
:
{
fontSize
:
"12px"
}
},
sizeLarge
:
{
"& p"
:
{
fontSize
:
"14px"
}
},
menuItemRoot
:
{},
ArrowDropDownIconRoot
:
{
color
:
"#8A9099"
,
transition
:
"all 0.2s !important"
,
...
...
src/components/mui/MyPopconfirm.tsx
View file @
577fbd69
...
...
@@ -2,7 +2,7 @@
import
*
as
React
from
"react"
;
import
{
ReactNode
,
useMemo
}
from
"react"
;
import
Box
from
"@mui/material/Box"
;
import
ButtonComponent
from
"./Button"
;
import
ButtonComponent
from
"./
My
Button"
;
import
tipsIcon
from
"@/assets/project/information-outline.svg"
;
import
Popper
from
"@mui/material/Popper"
;
...
...
@@ -87,14 +87,14 @@ const MyPopconfirm = (props: IMyPopconfirmProps) => {
text=
{
cancelText
}
size=
"small"
color=
"inherit"
c
lick=
{
handleCancel
}
onC
lick=
{
handleCancel
}
style=
{
{
marginRight
:
"12px"
}
}
></
ButtonComponent
>
)
}
<
ButtonComponent
text=
{
okText
}
size=
"small"
c
lick=
{
handleOk
}
onC
lick=
{
handleOk
}
></
ButtonComponent
>
</
Box
>
</
Popper
>
...
...
src/views/ConsoleLayout/index.tsx
View file @
577fbd69
...
...
@@ -10,7 +10,7 @@ import uploadIcon from "@/assets/img/uploadIcon.svg";
import
globalText
from
"@/utils/globalText_CN"
;
import
useIndex
from
"./useIndex"
;
import
{
useStores
}
from
"@/store/index"
;
import
Button
from
"@/components/mui/Button"
;
import
Button
from
"@/components/mui/
My
Button"
;
import
logo
from
"@/assets/img/logo.svg"
;
import
MyPopover
from
"@/components/mui/MyPopover"
;
import
TranSferList
from
"./components/TransferList"
;
...
...
@@ -86,7 +86,7 @@ const ConsoleLayout = observer(() => {
text=
{
globalText
.
console
}
variant=
{
"text"
}
style=
{
{
color
:
"#565C66"
}
}
c
lick=
{
()
=>
navigate
(
"/home"
)
}
onC
lick=
{
()
=>
navigate
(
"/home"
)
}
/>
<
Box
sx=
{
{
display
:
"flex"
,
alignItems
:
"center"
}
}
>
...
...
@@ -94,7 +94,7 @@ const ConsoleLayout = observer(() => {
text=
{
globalText
.
product
}
variant=
{
"text"
}
style=
{
{
color
:
"#565C66"
}
}
c
lick=
{
handleProductClick
}
onC
lick=
{
handleProductClick
}
dropValue=
{
productOpen
}
drop=
{
true
}
/>
...
...
src/views/Project/ProjectJobDetail/index.tsx
View file @
577fbd69
...
...
@@ -2,7 +2,7 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-06-21 20:03:56
* @LastEditors: 吴永生#A02208 yongsheng.wu@wholion.com
* @LastEditTime: 2022-07-
08 15:02:08
* @LastEditTime: 2022-07-
20 14:59:52
* @FilePath: /bkunyun/src/views/Project/ProjectSubmitWork/index.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
@@ -14,7 +14,7 @@ import { useLocation, useNavigate } from "react-router-dom";
import
ArrowBackIosNewIcon
from
"@mui/icons-material/ArrowBackIosNew"
;
import
IconButton
from
"@mui/material/IconButton"
;
import
ButtonComponent
from
"@/components/mui/Button"
;
import
ButtonComponent
from
"@/components/mui/
My
Button"
;
import
useMyRequest
from
"@/hooks/useMyRequest"
;
import
{
fetchWorkFlowJob
,
getworkFlowTaskInfo
}
from
"@/api/project_api"
;
import
{
IResponse
}
from
"@/api/http"
;
...
...
@@ -356,7 +356,7 @@ const ProjectSubmitWork = observer(() => {
text=
{
state
===
"RUNNING"
?
"终止"
:
"删除"
}
variant=
"outlined"
color=
"secondary"
c
lick=
{
(
e
:
any
)
=>
onC
lick=
{
(
e
:
any
)
=>
handleShowPopper
(
e
,
state
===
"RUNNING"
...
...
src/views/Project/ProjectSubmitWork/index.tsx
View file @
577fbd69
...
...
@@ -2,7 +2,7 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-06-21 20:03:56
* @LastEditors: 吴永生#A02208 yongsheng.wu@wholion.com
* @LastEditTime: 2022-07-
13 16:24:06
* @LastEditTime: 2022-07-
20 15:00:18
* @FilePath: /bkunyun/src/views/Project/ProjectSubmitWork/index.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
@@ -16,7 +16,7 @@ import moment from "moment";
import
ConfigForm
from
"./ConfigForm"
;
import
WorkFlow
from
"./WorkFlow"
;
import
ButtonComponent
from
"@/components/mui/Button"
;
import
ButtonComponent
from
"@/components/mui/
My
Button"
;
import
{
ITemplateConfig
}
from
"./interface"
;
import
useMyRequest
from
"@/hooks/useMyRequest"
;
import
{
fetchTemplateConfigInfo
,
submitWorkFlow
}
from
"@/api/project_api"
;
...
...
@@ -274,8 +274,7 @@ const ProjectSubmitWork = observer(() => {
> */
}
<
ButtonComponent
text=
"提交任务"
// click=
{
handleSubmitForm
}
click=
{
(
e
:
any
)
=>
onClick=
{
(
e
:
any
)
=>
handleShowPopper
(
e
,
"提交前请先确认参数填写无误,确认提交吗?"
)
}
></
ButtonComponent
>
...
...
src/views/Project/ProjectWorkbench/index.tsx
View file @
577fbd69
...
...
@@ -2,7 +2,7 @@
* @Author: rocosen
* @Date: 2022-06-12 10:05:13
* @LastEditors: 吴永生#A02208 yongsheng.wu@wholion.com
* @LastEditTime: 2022-07-
04 20:23:26
* @LastEditTime: 2022-07-
20 15:04:19
* @FilePath: /bkunyun/src/views/Project/ProjectSetting/index.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
@@ -20,6 +20,8 @@ import Template from "@/assets/project/workbenchTemplate.svg";
import
Template_select
from
"@/assets/project/workbenchTemplate_select.svg"
;
import
List
from
"@/assets/project/workbenchList.svg"
;
import
List_select
from
"@/assets/project/workbenchList_select.svg"
;
import
ButtonDemo
from
"@/views/mui_demo/button"
;
import
InputDemo
from
"@/views/mui_demo/input"
;
const
ProjectWorkbench
=
observer
(()
=>
{
const
isPass
=
usePass
();
...
...
@@ -43,20 +45,20 @@ const ProjectWorkbench = observer(() => {
icon
:
List
,
iconed
:
List_select
,
},
//
{
//
label: "按钮组件",
//
value: "MUI_BUTTON",
//
component: <ButtonDemo />,
//
icon: List,
//
iconed: List_select,
//
},
//
{
//
label: "输入框组件",
//
value: "MUI_INPUT",
//
component: <InputDemo />,
//
icon: List,
//
iconed: List_select,
//
},
{
label
:
"按钮组件"
,
value
:
"MUI_BUTTON"
,
component
:
<
ButtonDemo
/>,
icon
:
List
,
iconed
:
List_select
,
},
{
label
:
"输入框组件"
,
value
:
"MUI_INPUT"
,
component
:
<
InputDemo
/>,
icon
:
List
,
iconed
:
List_select
,
},
];
},
[
isPass
]);
...
...
src/views/Project/ProjectWorkbench/workbenchTemplate/components/AddTemplate/index.tsx
View file @
577fbd69
...
...
@@ -5,7 +5,7 @@ import CloseOutlinedIcon from "@mui/icons-material/CloseOutlined";
import
{
Box
,
Typography
}
from
"@mui/material"
;
import
RadioGroupOfButtonStyle
from
"@/components/CommonComponents/RadioGroupOfButtonStyle"
;
import
SearchIcon
from
"@mui/icons-material/Search"
;
import
Button
from
"@/components/mui/Button"
;
import
Button
from
"@/components/mui/
My
Button"
;
import
OutlinedInput
from
"@mui/material/OutlinedInput"
;
import
Checkbox
from
"@mui/material/Checkbox"
;
import
useMyRequest
from
"@/hooks/useMyRequest"
;
...
...
@@ -214,8 +214,7 @@ const AddTemplate = observer((props: IAddTemplateProps) => {
handleRadio=
{
handleRadio
}
></
RadioGroupOfButtonStyle
>
<
Button
// click={addTemplateCallback}
click=
{
handleAddTemplate
}
onClick=
{
handleAddTemplate
}
size=
{
"small"
}
style=
{
{
marginLeft
:
"12px"
,
...
...
@@ -297,7 +296,7 @@ const AddTemplate = observer((props: IAddTemplateProps) => {
{
templateType
!==
"public"
&&
(
<
div
className=
{
style
.
templateLiEditBox
}
>
<
Button
c
lick=
{
()
=>
handleEditTemplate
(
item
)
}
onC
lick=
{
()
=>
handleEditTemplate
(
item
)
}
size=
{
"small"
}
style=
{
{
height
:
"32px"
,
...
...
src/views/Project/ProjectWorkbench/workbenchTemplate/components/addTemplate.tsx
View file @
577fbd69
import
{
memo
,
useCallback
,
useEffect
,
useMemo
,
useState
}
from
"react"
;
import
styles
from
"../index.module.css"
;
import
{
Box
,
Typography
}
from
"@mui/material"
;
import
Button
from
"@/components/mui/Button"
;
import
Button
from
"@/components/mui/
My
Button"
;
import
Dialog
from
"@/components/mui/MyDialog"
;
import
OutlinedInput
from
"@mui/material/OutlinedInput"
;
import
RadioGroupOfButtonStyle
from
"@/components/CommonComponents/RadioGroupOfButtonStyle"
;
...
...
@@ -90,7 +90,7 @@ const AddTemplate = (props: any) => {
handleRadio=
{
handleRadio
}
></
RadioGroupOfButtonStyle
>
<
Button
c
lick=
{
addTemplateCallback
}
onC
lick=
{
addTemplateCallback
}
size=
{
"small"
}
style=
{
{
marginLeft
:
"12px"
,
...
...
src/views/Project/ProjectWorkbench/workbenchTemplate/components/templateBox.tsx
View file @
577fbd69
...
...
@@ -2,14 +2,14 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-06-17 14:48:57
* @LastEditors: 吴永生#A02208 yongsheng.wu@wholion.com
* @LastEditTime: 2022-0
6-24 16:41:40
* @LastEditTime: 2022-0
7-20 15:01:04
* @FilePath: /bkunyun/src/views/Project/ProjectWorkbench/workbenchTemplate/components/templateBox.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import
{
memo
,
useCallback
}
from
"react"
;
import
styles
from
"../index.module.css"
;
import
{
Box
,
Typography
}
from
"@mui/material"
;
import
Button
from
"@/components/mui/Button"
;
import
Button
from
"@/components/mui/
My
Button"
;
import
usePass
from
"@/hooks/usePass"
;
import
{
useNavigate
}
from
"react-router-dom"
;
...
...
@@ -94,7 +94,7 @@ const TemplateBox = (props: any) => {
<
Button
size=
{
"small"
}
text=
{
"删除模版"
}
c
lick=
{
()
=>
{
onC
lick=
{
()
=>
{
props
.
startDialog
(
info
.
id
);
}
}
style=
{
{
backgroundColor
:
"#F0F2F5"
,
color
:
"#565C66"
}
}
...
...
@@ -104,7 +104,7 @@ const TemplateBox = (props: any) => {
<
Button
size=
{
"small"
}
text=
{
"使用模版"
}
c
lick=
{
()
=>
addTemplateBlock
(
info
.
id
)
}
onC
lick=
{
()
=>
addTemplateBlock
(
info
.
id
)
}
style=
{
{
marginLeft
:
"12px"
}
}
/>
)
}
...
...
src/views/Project/ProjectWorkbench/workbenchTemplate/index.tsx
View file @
577fbd69
...
...
@@ -2,7 +2,7 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-05-31 10:18:13
* @LastEditors: 吴永生#A02208 yongsheng.wu@wholion.com
* @LastEditTime: 2022-07-
07 14:59:11
* @LastEditTime: 2022-07-
20 15:01:29
* @FilePath: /bkunyun/src/views/Project/ProjectSetting/index.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
@@ -14,7 +14,7 @@ import { toJS } from "mobx";
import
{
observer
}
from
"mobx-react-lite"
;
import
Add
from
"@mui/icons-material/Add"
;
import
Button
from
"@/components/mui/Button"
;
import
Button
from
"@/components/mui/
My
Button"
;
import
useMyRequest
from
"@/hooks/useMyRequest"
;
import
TemplateBox
from
"./components/templateBox"
;
import
SimpleDialog
from
"./components/simpleDialog"
;
...
...
@@ -125,7 +125,7 @@ const ProjectMembers = observer(() => {
<
Button
text=
{
"添加工作流模版"
}
img=
{
<
Add
/>
}
c
lick=
{
addTemplateBlock
}
onC
lick=
{
addTemplateBlock
}
size=
{
"small"
}
/>
)
}
...
...
src/views/WorkFlowEdit/index.tsx
View file @
577fbd69
...
...
@@ -2,7 +2,7 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-06-21 20:03:56
* @LastEditors: 吴永生#A02208 yongsheng.wu@wholion.com
* @LastEditTime: 2022-07-
15 18:44:41
* @LastEditTime: 2022-07-
20 15:01:18
* @FilePath: /bkunyun/src/views/Project/ProjectSubmitWork/index.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
@@ -14,7 +14,7 @@ import { observer } from "mobx-react-lite";
import
MyPopconfirm
from
"@/components/mui/MyPopconfirm"
;
import
RadioGroupOfButtonStyle
from
"@/components/CommonComponents/RadioGroupOfButtonStyle"
;
import
ButtonComponent
from
"@/components/mui/Button"
;
import
ButtonComponent
from
"@/components/mui/
My
Button"
;
import
OperatorList
from
"./components/OperatorList"
;
import
Flow
from
"../Project/components/Flow"
;
import
ParameterSetting
from
"./components/ParameterSetting"
;
...
...
@@ -183,7 +183,7 @@ const WorkFlowEdit = observer((props: IProps) => {
<
div
className=
{
styles
.
swHeaderRight
}
>
<
ButtonComponent
text=
"保存"
c
lick=
{
()
=>
handlePreserve
()
}
onC
lick=
{
()
=>
handlePreserve
()
}
></
ButtonComponent
>
</
div
>
</
div
>
...
...
src/views/mui_demo/button.tsx
View file @
577fbd69
import
{
memo
}
from
"react"
;
import
DeleteIcon
from
"@mui/icons-material/Delete"
;
import
Button
from
"@/components/mui/Button"
;
import
Button
from
"@/components/mui/
My
Button"
;
const
ProjectMembers
=
()
=>
{
return
(
...
...
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