|
@@ -119,7 +119,7 @@ const DemandList = React.createClass({
|
|
|
render:(text,recard) => {
|
|
|
return <div className="btnRight">
|
|
|
{recard.auditStatus!='1'&&recard.auditStatus!='2'&&<Button type="primary" style={{ background: "#3fcf9e", border: "none", color: "#fff" }} onClick={(e)=>{e.stopPropagation(),this.submission(recard)}}>提交审核</Button>}
|
|
|
- {/* {recard.auditStatus!='1'&&recard.auditStatus!='2'&&<Button type="danger" onClick={(e)=>{e.stopPropagation;this.delectRow(recard)}}>删除</Button>} */}
|
|
|
+ <Button type="danger" onClick={(e)=>{e.stopPropagation();this.delectRow(recard)}}>删除</Button>
|
|
|
{recard.auditStatus!='1'&&recard.auditStatus=='2'&&<Button type="success" onClick={(e)=>{ e.stopPropagation(),this.updateFun(recard)}}>刷新发布</Button>}
|
|
|
{recard.auditStatus!='1'&&recard.auditStatus=='2'&&<Button type="danger" onClick={(e)=>{e.stopPropagation(),this.revokeFun(recard)}}>撤销发布</Button>}
|
|
|
</div>
|
|
@@ -227,13 +227,15 @@ const DemandList = React.createClass({
|
|
|
this.setState({
|
|
|
loading:true
|
|
|
})
|
|
|
+ let idArr=[];
|
|
|
+ idArr.push(recard.id)
|
|
|
$.ajax({
|
|
|
method: "POST",
|
|
|
dataType: "json",
|
|
|
crossDomain: false,
|
|
|
- url: globalConfig.context + "/api/user/demand/delete",
|
|
|
+ url: globalConfig.context + "/api/user/achievement/delete",
|
|
|
data: {
|
|
|
- ids: recard.id
|
|
|
+ ids: idArr
|
|
|
}
|
|
|
}).done(function (data) {
|
|
|
if (!data.error.length) {
|