Commit d368c9c7 authored by jiangzijing's avatar jiangzijing

Merge branch 'feat-20220801' of http://120.77.149.83/root/bkunyun into feat-20220801

parents c3139e79 6ba78984
<?xml version="1.0" encoding="UTF-8"?>
<svg width="22px" height="22px" viewBox="0 0 22 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>编组</title>
<g id="上线UI" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="点击算子" transform="translate(-24.000000, -133.000000)">
<g id="编组-12" transform="translate(24.000000, 133.000000)">
<g id="编组-16" transform="translate(11.000000, 11.000000) scale(-1, 1) rotate(-90.000000) translate(-11.000000, -11.000000) ">
<rect id="矩形" x="0" y="0" width="22" height="22"></rect>
<g id="编组-14" transform="translate(5.500000, 8.250000)" stroke="#8A9099" stroke-linejoin="round" stroke-width="2">
<polyline id="路径-7备份" transform="translate(5.500000, 2.750000) scale(1, -1) translate(-5.500000, -2.750000) " points="0 5.5 5.5 2.98949133e-16 11 5.5"></polyline>
</g>
</g>
</g>
</g>
</g>
</svg>
\ No newline at end of file
...@@ -46,7 +46,7 @@ const theme = createTheme({ ...@@ -46,7 +46,7 @@ const theme = createTheme({
MuiButton: { MuiButton: {
styleOverrides: { styleOverrides: {
root: { root: {
minWidth: "48px", minWidth: "68px",
boxShadow: "none !important", boxShadow: "none !important",
"&.MuiButton-textError": { "&.MuiButton-textError": {
color: "rgba(255, 78, 78, 1)", color: "rgba(255, 78, 78, 1)",
...@@ -54,7 +54,7 @@ const theme = createTheme({ ...@@ -54,7 +54,7 @@ const theme = createTheme({
"&.MuiButton-outlinedError": { "&.MuiButton-outlinedError": {
color: "rgba(255, 78, 78, 1)", color: "rgba(255, 78, 78, 1)",
border: "1px solid rgba(255, 78, 78, 1)", border: "1px solid rgba(255, 78, 78, 1)",
"&:hover": { backgroundColor: 'transparent' }, "&:hover": { backgroundColor: "transparent" },
}, },
"& .MuiLoadingButton-loadingIndicator": { "& .MuiLoadingButton-loadingIndicator": {
color: "#fff", color: "#fff",
......
.itemBox { .itemBox {
height: 50px; height: 50px;
padding: 16px 0; padding: 16px 0;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
border-bottom: 1px solid #f0f2f5; border-bottom: 1px solid #f0f2f5;
} }
.fileNameBox { .fileNameBox {
white-space: nowrap; white-space: nowrap;
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
color: #1e2633; color: #1e2633;
max-width: 260px; max-width: 260px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
font-size: 14px; font-size: 14px;
} }
.contentBox {
display: flex;
flex-direction: column;
justify-content: space-between;
}
.speedBox { .speedBox {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
} }
.rightBox { .rightBox {
cursor: pointer; cursor: pointer;
font-size: 12px; font-size: 12px;
color: #1370ff; color: #1370ff;
} }
.leftBox { .leftBox {
display: flex; display: flex;
} }
.span { .span {
color: #8a9099; color: #8a9099;
font-size: 12px; font-size: 12px;
} }
...@@ -98,7 +98,7 @@ const FileItem = observer((props: IProps) => { ...@@ -98,7 +98,7 @@ const FileItem = observer((props: IProps) => {
<div className={styles.itemBox}> <div className={styles.itemBox}>
<div className={styles.leftBox}> <div className={styles.leftBox}>
<img src={bkunyunFile} alt="" style={{ marginRight: 16 }} /> <img src={bkunyunFile} alt="" style={{ marginRight: 16 }} />
<div> <div className={styles.contentBox}>
<div> <div>
<b className={styles.fileNameBox} title={itemInfo?.name || ""}> <b className={styles.fileNameBox} title={itemInfo?.name || ""}>
{itemInfo?.name || ""} {itemInfo?.name || ""}
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com * @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-06-10 18:05:21 * @Date: 2022-06-10 18:05:21
* @LastEditors: 吴永生 15770852798@163.com * @LastEditors: 吴永生 15770852798@163.com
* @LastEditTime: 2022-09-01 15:54:33 * @LastEditTime: 2022-09-02 10:47:33
* @FilePath: /bkunyun/src/views/ConsoleLayout/components/TransferList/index.tsx * @FilePath: /bkunyun/src/views/ConsoleLayout/components/TransferList/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
*/ */
...@@ -20,16 +20,19 @@ const TranSferList = observer(() => { ...@@ -20,16 +20,19 @@ const TranSferList = observer(() => {
const uploadInfoStore = toJS(useGlobalStore("fileListStore")); const uploadInfoStore = toJS(useGlobalStore("fileListStore"));
return ( return (
<Box style={{ width: 520, padding: 20 }}> <Box style={{ width: 520 }}>
<MyTitle title="传输列表" /> <MyTitle style={{ padding: "12px 16px" }} title="传输列表" />
<Box <Box
style={{ style={{
display: "flex", display: "flex",
justifyContent: "space-between", justifyContent: "space-between",
alignItems: "center", alignItems: "center",
padding: "0 16px",
}} }}
> >
<Box style={{ color: "#8A9099" }}>请勿在上传过程中刷新页面!</Box> <Box style={{ color: "#8A9099", fontSize: 14 }}>
请勿在上传过程中刷新页面!
</Box>
<MySelect <MySelect
variant="standard" variant="standard"
value={"default"} value={"default"}
...@@ -43,7 +46,7 @@ const TranSferList = observer(() => { ...@@ -43,7 +46,7 @@ const TranSferList = observer(() => {
size="small" size="small"
/> />
</Box> </Box>
<div style={{ height: 400, overflow: "overlay" }}> <div style={{ height: 400, overflow: "overlay", padding: "0 16px" }}>
{uploadInfoStore?.fileList.map((item) => { {uploadInfoStore?.fileList.map((item) => {
return <FileItem fileItemInfo={item} key={item.id} />; return <FileItem fileItemInfo={item} key={item.id} />;
})} })}
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
top: 0; top: 0;
height: 56px; height: 56px;
background-color: #fff; background-color: #fff;
box-shadow: 0px 3px 10px 0px rgba(0, 24, 57, 0.04); box-shadow: 0px 3px 10px 0px rgba(0, 24, 57, 0.06);
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
} }
.swFormBox { .swFormBox {
background-color: #fff; background-color: #fff;
border-right: 1xp solid rgba(235, 237, 240, 1); border-right: 1px solid #ebedf0;
width: 360px; width: 360px;
overflow-y: overlay; overflow-y: overlay;
box-sizing: border-box; box-sizing: border-box;
......
...@@ -431,7 +431,7 @@ const ProjectSubmitWork = observer(() => { ...@@ -431,7 +431,7 @@ const ProjectSubmitWork = observer(() => {
> >
<ArrowBackIosNewIcon <ArrowBackIosNewIcon
sx={{ sx={{
color: "rgba(194, 198, 204, 1)", color: "#C2C6CC",
width: "12px", width: "12px",
height: "12px", height: "12px",
}} }}
...@@ -442,16 +442,6 @@ const ProjectSubmitWork = observer(() => { ...@@ -442,16 +442,6 @@ const ProjectSubmitWork = observer(() => {
</div> </div>
{returnPermission && ( {returnPermission && (
<div className={styles.swHeaderRight}> <div className={styles.swHeaderRight}>
{/* <MyPopconfirm
title={
state === "RUNNING"
? "正在运行的任务终止后将无法重新运行,确认继续吗?"
: "任务被删除后将无法恢复,确认继续吗?"
}
onConfirm={() => {
state === "RUNNING" ? onStopJob() : onDeleteJob();
}}
> */}
<MyButton <MyButton
text={ text={
["SUBMITTED", "RUNNING"].includes(state || "") ["SUBMITTED", "RUNNING"].includes(state || "")
...@@ -459,7 +449,7 @@ const ProjectSubmitWork = observer(() => { ...@@ -459,7 +449,7 @@ const ProjectSubmitWork = observer(() => {
: "删除" : "删除"
} }
variant="outlined" variant="outlined"
color="secondary" color="error"
onClick={(e: any) => onClick={(e: any) =>
handleShowPopper( handleShowPopper(
e, e,
...@@ -468,9 +458,7 @@ const ProjectSubmitWork = observer(() => { ...@@ -468,9 +458,7 @@ const ProjectSubmitWork = observer(() => {
: "任务被删除后将无法恢复,确认继续吗?" : "任务被删除后将无法恢复,确认继续吗?"
) )
} }
// click={onStopJob}
></MyButton> ></MyButton>
{/* </MyPopconfirm> */}
</div> </div>
)} )}
</div> </div>
......
...@@ -56,7 +56,8 @@ ...@@ -56,7 +56,8 @@
border-top: 1px solid #f0f2f5; border-top: 1px solid #f0f2f5;
} }
.noProjectBox { .noProjectBox {
color: #edeff2; color: #8a9099;
font-size: 14px;
height: 48px; height: 48px;
line-height: 48px; line-height: 48px;
text-align: center; text-align: center;
......
...@@ -34,15 +34,17 @@ ...@@ -34,15 +34,17 @@
.versionBox { .versionBox {
display: inline-block; display: inline-block;
background: #f0f2f5;
color: #1e2633; color: #1e2633;
cursor: pointer;
padding: 1px 9px;
border-radius: 2px; border-radius: 2px;
font-size: 12px; font-size: 12px;
padding: 2px 8px; line-height: 20px;
background-color: #f0f2f5;
} }
.searchBox { .searchBox {
padding: 0 24px 16px 24px; padding: 0 24px 8px 24px;
} }
.footerBox { .footerBox {
...@@ -61,15 +63,6 @@ ...@@ -61,15 +63,6 @@
height: calc(100% - 48px); height: calc(100% - 48px);
position: relative; position: relative;
} }
.versionBox {
background: #e6e8eb;
color: #1e2633;
cursor: pointer;
padding: 0 8px;
border-radius: 2px;
}
.noData { .noData {
display: flex; display: flex;
justify-content: center; justify-content: center;
......
...@@ -13,6 +13,7 @@ import { IResponse } from "@/api/http"; ...@@ -13,6 +13,7 @@ import { IResponse } from "@/api/http";
import { fetchOperatorList } from "@/api/workbench_api"; import { fetchOperatorList } from "@/api/workbench_api";
import { useStores } from "@/store"; import { useStores } from "@/store";
import noTemplate from "@/assets/project/noTemplate.svg"; import noTemplate from "@/assets/project/noTemplate.svg";
import SearchInput from "@/components/BusinessComponents/SearchInput";
import styles from "./index.module.css"; import styles from "./index.module.css";
...@@ -198,7 +199,18 @@ const OperatorList = observer((props: IOperatorListProps) => { ...@@ -198,7 +199,18 @@ const OperatorList = observer((props: IOperatorListProps) => {
return ( return (
<div className={styles.operatorListBox}> <div className={styles.operatorListBox}>
<div className={styles.searchBox}> <div className={styles.searchBox}>
<OutlinedInput <SearchInput
onChange={(e) => {
if (e.target.value?.length > 30) return;
setKeyword(e.target.value);
}}
value={keyword}
placeholder="输入关键词搜索"
onKeyUp={handleEnterCode}
size="medium"
sx={{ height: 32, width: "100%" }}
/>
{/* <OutlinedInput
onChange={(e) => { onChange={(e) => {
if (e.target.value?.length > 30) return; if (e.target.value?.length > 30) return;
setKeyword(e.target.value); setKeyword(e.target.value);
...@@ -209,7 +221,7 @@ const OperatorList = observer((props: IOperatorListProps) => { ...@@ -209,7 +221,7 @@ const OperatorList = observer((props: IOperatorListProps) => {
size="small" size="small"
sx={{ height: 32, width: "100%" }} sx={{ height: 32, width: "100%" }}
endAdornment={<SearchIcon style={{ color: "#8A9099" }} />} endAdornment={<SearchIcon style={{ color: "#8A9099" }} />}
/> /> */}
</div> </div>
<div className={styles.listBox}> <div className={styles.listBox}>
{operatorListData.filter((item) => item.type === "BATCH")?.length ? ( {operatorListData.filter((item) => item.type === "BATCH")?.length ? (
......
...@@ -25,6 +25,19 @@ ...@@ -25,6 +25,19 @@
justify-content: flex-start; justify-content: flex-start;
align-items: center; align-items: center;
} }
.goBackIcon {
margin-right: 8px;
cursor: pointer;
}
/* .goBackIcon:hover:{
color: ;
} */
.goBack {
cursor: pointer;
color: #1e2633;
font-size: 14px;
font-weight: 600;
}
.swContent { .swContent {
display: flex; display: flex;
height: calc(100vh - 56px); height: calc(100vh - 56px);
...@@ -74,5 +87,5 @@ ...@@ -74,5 +87,5 @@
} }
.radiosBox { .radiosBox {
background-color: #fff; background-color: #fff;
padding: 24px; padding: 24px 24px 20px;
} }
...@@ -7,8 +7,6 @@ ...@@ -7,8 +7,6 @@
* @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 React, { useCallback, useEffect, useState, useMemo } from "react"; import React, { useCallback, useEffect, useState, useMemo } from "react";
import ArrowBackIosNewIcon from "@mui/icons-material/ArrowBackIosNew";
import IconButton from "@mui/material/IconButton";
import _ from "lodash"; import _ from "lodash";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
...@@ -26,6 +24,7 @@ import useMyRequest from "@/hooks/useMyRequest"; ...@@ -26,6 +24,7 @@ import useMyRequest from "@/hooks/useMyRequest";
import CustomOperator from "../CustomOperator"; import CustomOperator from "../CustomOperator";
import SaveCustomTemplate from "./components/SaveCustomTemplate"; import SaveCustomTemplate from "./components/SaveCustomTemplate";
import AddIcon from "@mui/icons-material/Add"; import AddIcon from "@mui/icons-material/Add";
import goback from "@/assets/project/goback.svg";
import styles from "./index.module.css"; import styles from "./index.module.css";
...@@ -189,8 +188,18 @@ const WorkFlowEdit = observer((props: IProps) => { ...@@ -189,8 +188,18 @@ const WorkFlowEdit = observer((props: IProps) => {
return ( return (
<div className={styles.swBox}> <div className={styles.swBox}>
<div className={styles.swHeader}> <div className={styles.swHeader}>
<div className={styles.swHeaderLeft}> <div
<IconButton className={styles.swHeaderLeft}
onClick={(e: any) =>
handleShowPopper(
e,
"返回后,当前页面已填写内容将不保存,确认返回吗?"
)
}
>
<img className={styles.goBackIcon} src={goback} alt="" />
<span className={styles.goBack}>返回</span>
{/* <IconButton
color="primary" color="primary"
aria-label="upload picture" aria-label="upload picture"
component="span" component="span"
...@@ -209,7 +218,8 @@ const WorkFlowEdit = observer((props: IProps) => { ...@@ -209,7 +218,8 @@ const WorkFlowEdit = observer((props: IProps) => {
height: "12px", height: "12px",
}} }}
/> />
</IconButton> 返回
</IconButton> */}
</div> </div>
<div className={styles.swHeaderRight}> <div className={styles.swHeaderRight}>
<MyButton text="保存" onClick={() => handlePreserve()}></MyButton> <MyButton text="保存" onClick={() => handlePreserve()}></MyButton>
......
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