forked from Gitlink/forgeplus-react
修改了需求部分bug
This commit is contained in:
parent
99c90295c0
commit
7a472651f1
|
@ -39,6 +39,7 @@
|
|||
background: #fff;
|
||||
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.05);
|
||||
border-radius: 5px;
|
||||
overflow: auto;
|
||||
}
|
||||
.centerScreen {
|
||||
display: flex;
|
||||
|
|
|
@ -33,8 +33,8 @@ const columns = [
|
|||
{
|
||||
title: '状态',
|
||||
dataIndex: 'status',
|
||||
render:(text,record)=>{
|
||||
return <img src={winpng}/>
|
||||
render: (text, record) => {
|
||||
return <img src={winpng} />
|
||||
}
|
||||
|
||||
},
|
||||
|
@ -61,10 +61,10 @@ export default Form.create()(
|
|||
const [total, setTotal] = useState(0);
|
||||
const [orderBy, setOrderBy] = useState('');
|
||||
const [dataList, setDataList] = useState([
|
||||
{name:'测试方式',id:1},
|
||||
{name:'测试方式',id:2},
|
||||
{name:'测试方式',id:3},
|
||||
{name:'测试方式',id:4},
|
||||
{ name: '测试方式', id: 1 },
|
||||
{ name: '测试方式', id: 2 },
|
||||
{ name: '测试方式', id: 3 },
|
||||
{ name: '测试方式', id: 4 },
|
||||
]);
|
||||
const [loading, setLoading] = useState(false);
|
||||
|
||||
|
@ -98,7 +98,7 @@ export default Form.create()(
|
|||
<span>{title}</span>
|
||||
{days && <p className="color-grey-6 font-12">
|
||||
{days}天
|
||||
</p>}
|
||||
</p>}
|
||||
</li>
|
||||
)
|
||||
}, []);
|
||||
|
@ -232,13 +232,13 @@ export default Form.create()(
|
|||
<p className="color-grey-6 lineh-20 padding10-15 mb10">
|
||||
1、参赛作品一经采用,其所有权、修改权和使用权均归主办方所有,设计者不得再在任何地方使用;<br />
|
||||
2、应征者所提交的作品必须由应征者本人创作或参与创作,应征者应确认其作品的原创性,主办单位不承担因作品侵犯他人(或单位)的权利而产生的法律责任,其法律责任由应征者本人承担。
|
||||
</p>
|
||||
</p>
|
||||
|
||||
<div className="font-16 font-bd">交稿声明:</div>
|
||||
|
||||
<p className="color-grey-6 lineh-20 padding10-15 mb10">
|
||||
应征者提交的稿件必须是设计作品,广告等无效交稿一律不采用!
|
||||
</p>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* {detailData.status == '3' ? */}
|
||||
|
|
|
@ -185,7 +185,7 @@ export default Form.create()(forwardRef(({ current_user, form, showNotification,
|
|||
|
||||
// 新增或者修改后的处理函数
|
||||
const publishDeal = useCallback((status, publishMode, res) => {
|
||||
if (res.data) {
|
||||
if (res && res.data) {
|
||||
showNotification("需求保存成功!");
|
||||
if (!status) {
|
||||
history.push("/task/myTask?published=false")
|
||||
|
@ -227,12 +227,12 @@ export default Form.create()(forwardRef(({ current_user, form, showNotification,
|
|||
// 编辑
|
||||
params.id = id;
|
||||
updateTask(params).then(res => {
|
||||
publishDeal();
|
||||
publishDeal(res);
|
||||
});
|
||||
} else {
|
||||
// 新增
|
||||
addTask(params).then(res => {
|
||||
publishDeal();
|
||||
publishDeal(res);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -256,7 +256,7 @@ export default Form.create()(forwardRef(({ current_user, form, showNotification,
|
|||
<div className="head-navigation">
|
||||
<Link to="/task">创客空间 ></Link>
|
||||
<Link to="/task">任务大厅 ></Link>
|
||||
<span >发布需求 </span>
|
||||
<span >发布需求 </span>
|
||||
</div>
|
||||
<p className="font-18 font-bd mb15">任务需求提交</p>
|
||||
|
||||
|
|
Loading…
Reference in New Issue