diff --git a/src/military/index.scss b/src/military/index.scss
index 35ede431..61c5abe0 100644
--- a/src/military/index.scss
+++ b/src/military/index.scss
@@ -25,6 +25,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,任务需求提交