forked from Gitlink/forgeplus-react
update
This commit is contained in:
parent
a090acd11d
commit
431f2222ef
|
|
@ -1,6 +1,6 @@
|
|||
import React ,{ useState , useEffect , useRef , forwardRef } from 'react';
|
||||
import { findDOMNode } from 'react-dom';
|
||||
import { Dropdown , Menu , Input , message, Button, Form } from 'antd';
|
||||
import { Dropdown , Menu , Input , Button, Form } from 'antd';
|
||||
import { getImageUrl } from 'educoder';
|
||||
import AddTagsBox from './addTagsBox';
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,6 @@ function Details(props){
|
|||
|
||||
const [ orderId , setOrderId ] = useState(undefined);
|
||||
|
||||
const [ visible , setVisible ] = useState(false);
|
||||
const [ delVisible , setDelVisible] = useState(false);
|
||||
const [ edit , setEdit] = useState(false);
|
||||
const [ copy , setCopy] = useState(false);
|
||||
|
|
@ -218,11 +217,6 @@ function Details(props){
|
|||
})
|
||||
}
|
||||
|
||||
function onSuccess(){
|
||||
getSign();
|
||||
setVisible(false);
|
||||
}
|
||||
|
||||
// 可单个编辑保存右侧的项(!copy:非复制状态下)
|
||||
function saveForeach(c,s,p,t,m,b,sDate,eDate,rewardAmount){
|
||||
if(!copy){
|
||||
|
|
@ -449,7 +443,7 @@ function Details(props){
|
|||
colorFlag="2"
|
||||
removeFlag
|
||||
editFlag={details && !details.user_permission}
|
||||
onAdd={permission && permission !== "Reporter" ? ()=>{setVisible(true);getSign();} :false}
|
||||
onAdd={permission && permission !== "Reporter" ? ()=>{getSign();} :false}
|
||||
owner
|
||||
projectsId
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ function New(props){
|
|||
const feedBack = search && search.indexOf('type=feedback') !== -1;
|
||||
// 里程碑id
|
||||
const milepostId = props.match.params.milepostId;
|
||||
const [ visible , setVisible ] = useState(false);
|
||||
|
||||
|
||||
const [ statusList , setStatusList ] = useState([]);
|
||||
|
|
@ -175,13 +174,6 @@ function New(props){
|
|||
}
|
||||
|
||||
|
||||
// 标记管理弹框
|
||||
function onSuccess(){
|
||||
// 添加标记成功后需更新标记的数据数组
|
||||
getSign();
|
||||
setVisible(false);
|
||||
}
|
||||
|
||||
// 创建
|
||||
function createFunc(values,fileList,receivers_login,description){
|
||||
const { subject } = values;
|
||||
|
|
@ -227,12 +219,6 @@ function New(props){
|
|||
}
|
||||
return(
|
||||
<div>
|
||||
{/* <AddTagsBox
|
||||
owner={owner}
|
||||
projectsId={projectsId}
|
||||
visible={visible}
|
||||
onCancel={()=>setVisible(false)} onSuccess={onSuccess}
|
||||
/> */}
|
||||
<p className="font-17 color-grey-3 mt20 mb15">新建疑修</p>
|
||||
<Box>
|
||||
<LongWidth>
|
||||
|
|
@ -275,7 +261,7 @@ function New(props){
|
|||
double={3}
|
||||
colorFlag="2"
|
||||
removeFlag
|
||||
onAdd={permission && permission !== "Reporter" ? ()=>{setVisible(true);getSign();} :false}
|
||||
onAdd={permission && permission !== "Reporter" ? ()=>{getSign();} :false}
|
||||
owner={owner}
|
||||
projectsId={projectsId}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -150,6 +150,7 @@
|
|||
&.statusul{
|
||||
li{
|
||||
width: 106px;
|
||||
font-size: 15px;
|
||||
&>span{
|
||||
height:19px;
|
||||
line-height: 17px;
|
||||
|
|
@ -312,7 +313,7 @@
|
|||
margin-right: 10px;
|
||||
line-height: 20px;
|
||||
width: 45px;
|
||||
font-size: 15px;
|
||||
font-size: 14px;
|
||||
border:1px solid #fff;
|
||||
&.normals{
|
||||
border-color:#28be6c;
|
||||
|
|
|
|||
Loading…
Reference in New Issue