修改了需求部分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; background: #fff;
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.05); box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.05);
border-radius: 5px; border-radius: 5px;
overflow: auto;
} }
.centerScreen { .centerScreen {
display: flex; display: flex;

View File

@ -33,8 +33,8 @@ const columns = [
{ {
title: '状态', title: '状态',
dataIndex: 'status', dataIndex: 'status',
render:(text,record)=>{ render: (text, record) => {
return <img src={winpng}/> return <img src={winpng} />
} }
}, },
@ -61,10 +61,10 @@ export default Form.create()(
const [total, setTotal] = useState(0); const [total, setTotal] = useState(0);
const [orderBy, setOrderBy] = useState(''); const [orderBy, setOrderBy] = useState('');
const [dataList, setDataList] = useState([ const [dataList, setDataList] = useState([
{name:'测试方式',id:1}, { name: '测试方式', id: 1 },
{name:'测试方式',id:2}, { name: '测试方式', id: 2 },
{name:'测试方式',id:3}, { name: '测试方式', id: 3 },
{name:'测试方式',id:4}, { name: '测试方式', id: 4 },
]); ]);
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);

View File

@ -185,7 +185,7 @@ export default Form.create()(forwardRef(({ current_user, form, showNotification,
// //
const publishDeal = useCallback((status, publishMode, res) => { const publishDeal = useCallback((status, publishMode, res) => {
if (res.data) { if (res && res.data) {
showNotification("需求保存成功!"); showNotification("需求保存成功!");
if (!status) { if (!status) {
history.push("/task/myTask?published=false") history.push("/task/myTask?published=false")
@ -227,12 +227,12 @@ export default Form.create()(forwardRef(({ current_user, form, showNotification,
// //
params.id = id; params.id = id;
updateTask(params).then(res => { updateTask(params).then(res => {
publishDeal(); publishDeal(res);
}); });
} else { } else {
// //
addTask(params).then(res => { addTask(params).then(res => {
publishDeal(); publishDeal(res);
}); });
} }
} }