Commit 7f5de3c2 authored by wuyongsheng's avatar wuyongsheng

feat: 流算子页面开发

parent 37107ee6
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com * @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-05-31 10:18:13 * @Date: 2022-05-31 10:18:13
* @LastEditors: 吴永生 15770852798@163.com * @LastEditors: 吴永生 15770852798@163.com
* @LastEditTime: 2022-10-17 16:01:41 * @LastEditTime: 2022-10-17 16:16:42
* @FilePath: /bkunyun/src/views/Project/ProjectSetting/index.tsx * @FilePath: /bkunyun/src/views/Project/ProjectSetting/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
*/ */
...@@ -14,7 +14,7 @@ import Tab from "@mui/material/Tab"; ...@@ -14,7 +14,7 @@ import Tab from "@mui/material/Tab";
import { ThemeProvider, createTheme } from "@mui/material/styles"; import { ThemeProvider, createTheme } from "@mui/material/styles";
import { TabContext, TabList, TabPanel } from "@mui/lab"; import { TabContext, TabList, TabPanel } from "@mui/lab";
import { Typography } from "@mui/material"; import { Typography } from "@mui/material";
import classnames from "classnames"; import classNames from "classnames";
import styles from "./index.module.css"; import styles from "./index.module.css";
...@@ -165,7 +165,7 @@ const Tabs = (props: IProps) => { ...@@ -165,7 +165,7 @@ const Tabs = (props: IProps) => {
> >
{title ? ( {title ? (
<span <span
className={classnames({ className={classNames({
[styles.titleBox]: true, [styles.titleBox]: true,
[titleClass]: titleClass, [titleClass]: titleClass,
})} })}
......
.indexBox {
padding: 0 4px;
}
.headerBox {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding: 0 20px;
}
.searchSelectBox {
margin-left: 12px;
}
.contentBox {
display: flex;
flex-wrap: wrap;
padding-left: 20px;
}
...@@ -2,24 +2,29 @@ ...@@ -2,24 +2,29 @@
* @Author: 吴永生 15770852798@163.com * @Author: 吴永生 15770852798@163.com
* @Date: 2022-10-17 14:35:11 * @Date: 2022-10-17 14:35:11
* @LastEditors: 吴永生 15770852798@163.com * @LastEditors: 吴永生 15770852798@163.com
* @LastEditTime: 2022-10-17 14:45:31 * @LastEditTime: 2022-10-17 17:50:30
* @FilePath: /bkunyun/src/views/ResourceCenter/UserResources/WorkflowOperator/index.tsx * @FilePath: /bkunyun/src/views/ResourceCenter/UserResources/WorkflowOperator/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
*/ */
// 应用环境 // 应用环境
import { useState } from "react"; import { useState } from "react";
import style from "./index.module.css";
import SearchInput from "@/components/BusinessComponents/SearchInput"; import SearchInput from "@/components/BusinessComponents/SearchInput";
import MySelect from "@/components/mui/MySelect"; import MySelect from "@/components/mui/MySelect";
import MyButton from "@/components/mui/MyButton"; import MyButton from "@/components/mui/MyButton";
import OperatorCard from "./components/OperatorCard";
import styles from "./index.module.css";
const UserResourcesEnvironment = () => { const WorkflowOperator = () => {
const [addOpen, setAddopen] = useState(false); const [addOpen, setAddopen] = useState(false);
return ( return (
<div className={style.environment}> <div className={styles.indexBox}>
<div className={style.top}> <div className={styles.headerBox}>
<div className={style.topLeft}> <div>
<SearchInput sx={{ width: 340, marginRight: "16px" }}></SearchInput> <SearchInput
sx={{ width: 340, marginRight: "16px" }}
placeholder="输入关键词搜索"
/>
<MySelect <MySelect
options={[ options={[
{ {
...@@ -27,23 +32,39 @@ const UserResourcesEnvironment = () => { ...@@ -27,23 +32,39 @@ const UserResourcesEnvironment = () => {
value: "a", value: "a",
}, },
]} ]}
placeholder="环境类型"
className={styles.searchSelectBox}
sx={{ width: "150px", height: "32px" }} sx={{ width: "150px", height: "32px" }}
></MySelect> />
</div> <MySelect
<div className={style.topRight}> options={[
<MyButton {
text="构建应用环境" label: "环境类型",
img={ value: "a",
<span },
style={{ fontSize: "14px", marginRight: "8px" }} ]}
className="iconfont icon-dianzan" placeholder="批/流类型"
></span> className={styles.searchSelectBox}
} sx={{ width: "150px", height: "32px" }}
></MyButton> />
</div> </div>
<MyButton
text="构建算子"
img={
<span
style={{ fontSize: "14px", marginRight: "8px" }}
className="iconfont icon-dianzan"
></span>
}
></MyButton>
</div>
<div className={styles.contentBox}>
{[1, 2, 3, 4, 5].map((item) => {
return <OperatorCard />;
})}
</div> </div>
</div> </div>
); );
}; };
export default UserResourcesEnvironment; export default WorkflowOperator;
...@@ -4,7 +4,7 @@ import UserResourcesEnvironment from "./UserResourcesEnvironment"; ...@@ -4,7 +4,7 @@ import UserResourcesEnvironment from "./UserResourcesEnvironment";
import { useMemo, useState } from "react"; import { useMemo, useState } from "react";
import classNames from "classnames"; import classNames from "classnames";
import Tabs from "@/components/mui/MyTabs"; import Tabs from "@/components/mui/MyTabs";
import WorkflowOperator from "./WorkflowOperator";
const UserResources = () => { const UserResources = () => {
const isPass = usePass(); const isPass = usePass();
const tabList = useMemo(() => { const tabList = useMemo(() => {
...@@ -18,7 +18,7 @@ const UserResources = () => { ...@@ -18,7 +18,7 @@ const UserResources = () => {
{ {
label: "工作流算子", label: "工作流算子",
value: "USERRESOURCES_FLOE", value: "USERRESOURCES_FLOE",
component: <div />, component: <WorkflowOperator />,
hide: !isPass("USERRESOURCES_FLOE"), hide: !isPass("USERRESOURCES_FLOE"),
}, },
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment