From 7a472651f1ff46f80192c49485e16617c01bfced Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E7=AB=A5=E5=B4=87?= <792998983@qq.com> Date: Mon, 21 Jun 2021 13:43:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E9=9C=80=E6=B1=82?= =?UTF-8?q?=E9=83=A8=E5=88=86bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/military/index.scss | 1 + src/military/task/taskDetail/index.jsx | 18 +++++++++--------- src/military/task/taskEdit/index.jsx | 8 ++++---- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/military/index.scss b/src/military/index.scss index a24182fd..63ef1a5d 100644 --- a/src/military/index.scss +++ b/src/military/index.scss @@ -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; diff --git a/src/military/task/taskDetail/index.jsx b/src/military/task/taskDetail/index.jsx index cd5e260f..56b54212 100644 --- a/src/military/task/taskDetail/index.jsx +++ b/src/military/task/taskDetail/index.jsx @@ -33,8 +33,8 @@ const columns = [ { title: '状态', dataIndex: 'status', - render:(text,record)=>{ - return + render: (text, record) => { + return } }, @@ -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()( {title} {days &&

{days}天 -

} +

} ) }, []); @@ -232,13 +232,13 @@ export default Form.create()(

1、参赛作品一经采用,其所有权、修改权和使用权均归主办方所有,设计者不得再在任何地方使用;
2、应征者所提交的作品必须由应征者本人创作或参与创作,应征者应确认其作品的原创性,主办单位不承担因作品侵犯他人(或单位)的权利而产生的法律责任,其法律责任由应征者本人承担。 -

+

交稿声明:

应征者提交的稿件必须是设计作品,广告等无效交稿一律不采用! -

+

{/* {detailData.status == '3' ? */} diff --git a/src/military/task/taskEdit/index.jsx b/src/military/task/taskEdit/index.jsx index e3c50f8c..e3468e98 100644 --- a/src/military/task/taskEdit/index.jsx +++ b/src/military/task/taskEdit/index.jsx @@ -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,
创客空间 > 任务大厅 > -  发布需求 +  发布需求

任务需求提交