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
5613152f
Commit
5613152f
authored
Oct 31, 2022
by
wuyongsheng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat-20221012-environment' into 'release'
Feat 20221012 environment See merge request
!168
parents
a8b40bbf
7e9b1bd1
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
7 deletions
+17
-7
resourceCenter.ts
src/api/resourceCenter.ts
+3
-3
index.tsx
src/components/mui/MyTabs/index.tsx
+10
-0
index.tsx
...sources/WorkflowOperator/components/AddOperator/index.tsx
+3
-3
index.tsx
...s/ResourceCenter/UserResources/WorkflowOperator/index.tsx
+0
-1
index.tsx
src/views/ResourceCenter/UserResources/index.tsx
+1
-0
No files found.
src/api/resourceCenter.ts
View file @
5613152f
...
...
@@ -2,7 +2,7 @@
* @Author: 吴永生 15770852798@163.com
* @Date: 2022-10-19 17:09:23
* @LastEditors: 吴永生 15770852798@163.com
* @LastEditTime: 2022-10-
27 11:23:29
* @LastEditTime: 2022-10-
31 11:22:34
* @FilePath: /bkunyun/src/api/resourceCenter.ts
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
@@ -118,9 +118,9 @@ const getWorkflowspecList = (params: {productId?: string, title?: string}) => {
// API_WORKFLOWSPEC_LIST
// 新增应用环境
const
saveOperator
=
(
params
:
any
,
isEdit
:
boolean
)
=>
{
const
saveOperator
=
(
params
:
any
)
=>
{
return
request
({
url
:
`
${
Api
.
API_SAVE_OPERATOR
}
?isEdit=
${
isEdit
}
`
,
url
:
`
${
Api
.
API_SAVE_OPERATOR
}
`
,
method
:
"post"
,
data
:
params
,
});
...
...
src/components/mui/MyTabs/index.tsx
View file @
5613152f
...
...
@@ -15,6 +15,7 @@ import { ThemeProvider, createTheme } from "@mui/material/styles";
import
{
TabContext
,
TabList
,
TabPanel
}
from
"@mui/lab"
;
import
{
Typography
}
from
"@mui/material"
;
import
classNames
from
"classnames"
;
import
{
useNavigate
}
from
"react-router-dom"
;
import
styles
from
"./index.module.css"
;
...
...
@@ -46,6 +47,8 @@ interface IProps {
tabPanelSx
?:
any
;
/** 是否允许空值 */
allowNullValue
?:
boolean
;
/** 路由地址 配合navigate和MyTabs组件的defaultValue组合使用、F5刷新也可以保存激活的tab */
navigateUrl
?:
string
;
}
const
theme
=
createTheme
({
...
...
@@ -101,8 +104,11 @@ const Tabs = (props: IProps) => {
tabPanelSx
=
{
padding
:
"20px 0 0 0"
},
title
,
titleClass
,
navigateUrl
,
}
=
props
;
const
navigate
=
useNavigate
();
const
[
tabValue
,
setTabValue
]
=
useState
(
defaultValue
?
defaultValue
...
...
@@ -116,6 +122,10 @@ const Tabs = (props: IProps) => {
const
onTabChange
=
(
val
:
string
)
=>
{
setTabValue
(
val
);
onChange
&&
onChange
(
val
);
navigateUrl
&&
navigate
(
navigateUrl
,
{
state
:
{
defaultTab
:
val
},
});
};
const
getImgSrc
=
useCallback
(
...
...
src/views/ResourceCenter/UserResources/WorkflowOperator/components/AddOperator/index.tsx
View file @
5613152f
...
...
@@ -2,7 +2,7 @@
* @Author: 吴永生 15770852798@163.com
* @Date: 2022-10-18 16:12:55
* @LastEditors: 吴永生 15770852798@163.com
* @LastEditTime: 2022-10-31
09:38:48
* @LastEditTime: 2022-10-31
11:23:34
* @FilePath: /bkunyun/src/views/ResourceCenter/UserResources/WorkflowOperator/components/AddOperator/index.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
@@ -326,7 +326,7 @@ const AddOperator = observer((props: IAddOperator) => {
body: positionTransform(params?.parameters || []),
});
} else {
runSaveOperator(params
, detailsId ? true : false
);
runSaveOperator(params);
}
}, [
batchBuildType,
...
...
@@ -499,7 +499,7 @@ const AddOperator = observer((props: IAddOperator) => {
style={{
position: "absolute",
fontSize: "14px",
bottom: "7
px",
top: "96
px",
right: "12px",
color:
Number(formData?.description?.length) >= 300
...
...
src/views/ResourceCenter/UserResources/WorkflowOperator/index.tsx
View file @
5613152f
...
...
@@ -79,7 +79,6 @@ const WorkflowOperator = observer(() => {
<
div
>
<
SearchInput
sx=
{
{
width
:
340
,
marginRight
:
"16px"
}
}
placeholder=
"输入关键词搜索"
value=
{
searchParams
.
keyword
}
onKeyUp=
{
handleKeyWordChangeKeyUp
}
onChange=
{
(
e
)
=>
{
...
...
src/views/ResourceCenter/UserResources/index.tsx
View file @
5613152f
...
...
@@ -40,6 +40,7 @@ const UserResources = () => {
tabList=
{
tabList
}
defaultValue=
{
location
?.
state
?.
defaultTab
||
"USERRESOURCES_TEMPLATE"
}
tabPanelSx=
{
{
padding
:
"0"
}
}
navigateUrl=
"/utility/resourceCenter/userResources"
/>
{
/* <OperatorDetails /> */
}
</
div
>
...
...
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