Commit de23a8e5 authored by 吴永生#A02208's avatar 吴永生#A02208

fix: 换仓库

parent e3389589
...@@ -154,6 +154,7 @@ const Flow = (props: IProps) => { ...@@ -154,6 +154,7 @@ const Flow = (props: IProps) => {
/** 内部维护的选择的节点Id */ /** 内部维护的选择的节点Id */
const [inSideNodeId, setInSideNodeId] = useState<string>(""); const [inSideNodeId, setInSideNodeId] = useState<string>("");
/** 删除批节点 */
const deleteSelectBatchNode = useCallback( const deleteSelectBatchNode = useCallback(
(e: any) => { (e: any) => {
if (e.keyCode === 8) { if (e.keyCode === 8) {
...@@ -168,6 +169,7 @@ const Flow = (props: IProps) => { ...@@ -168,6 +169,7 @@ const Flow = (props: IProps) => {
[inSideNodeId, setTasks, tasks] [inSideNodeId, setTasks, tasks]
); );
/** 监听鼠标按下事件 */
useEffect(() => { useEffect(() => {
window.addEventListener("keyup", deleteSelectBatchNode); window.addEventListener("keyup", deleteSelectBatchNode);
return () => { return () => {
......
...@@ -55,6 +55,7 @@ const OperatorItem = (props: IOperatorItemProps) => { ...@@ -55,6 +55,7 @@ const OperatorItem = (props: IOperatorItemProps) => {
if (bol && index === undefined) { if (bol && index === undefined) {
index = i; index = i;
} }
return !bol; return !bol;
}); });
if (index !== undefined) { if (index !== undefined) {
......
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com * @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-06-21 20:03:56 * @Date: 2022-06-21 20:03:56
* @LastEditors: 吴永生#A02208 yongsheng.wu@wholion.com * @LastEditors: 吴永生#A02208 yongsheng.wu@wholion.com
* @LastEditTime: 2022-07-09 15:11:17 * @LastEditTime: 2022-07-11 11:31:14
* @FilePath: /bkunyun/src/views/Project/ProjectSubmitWork/index.tsx * @FilePath: /bkunyun/src/views/Project/ProjectSubmitWork/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 React, { useState } from "react"; import React, { useCallback, useState } from "react";
import ArrowBackIosNewIcon from "@mui/icons-material/ArrowBackIosNew"; import ArrowBackIosNewIcon from "@mui/icons-material/ArrowBackIosNew";
import IconButton from "@mui/material/IconButton"; import IconButton from "@mui/material/IconButton";
...@@ -62,6 +62,13 @@ const WorkFlowEdit = (props: IProps) => { ...@@ -62,6 +62,13 @@ const WorkFlowEdit = (props: IProps) => {
} }
}; };
/** 选中的task 唯一标识符 */
const [selectTaskId, setSelectTaskId] = useState<string>();
/** 设置选中唯一标识符 */
const handleNodeClick = useCallback((val: string) => {
setSelectTaskId(val);
}, []);
return ( return (
<div className={styles.swBox}> <div className={styles.swBox}>
<div className={styles.swHeader}> <div className={styles.swHeader}>
......
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