This commit is contained in:
caishi 2023-03-09 14:53:19 +08:00
parent a090acd11d
commit 431f2222ef
4 changed files with 5 additions and 24 deletions

View File

@ -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';

View File

@ -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
/>

View File

@ -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}
/>

View File

@ -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;