修改了需求部分bug

This commit is contained in:
何童崇 2021-06-21 13:43:31 +08:00
parent 99c90295c0
commit 7a472651f1
3 changed files with 14 additions and 13 deletions

View File

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

View File

@ -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' ? */}

View File

@ -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">创客空间 &gt;</Link>
<Link to="/task">任务大厅 &gt;</Link>
&nbsp;<span >发布需求 </span>
&nbsp;<span >发布需求 </span>
</div>
<p className="font-18 font-bd mb15">任务需求提交</p>