forked from Gitlink/forgeplus-react
update
This commit is contained in:
parent
e238f9c423
commit
eebb52c84d
|
|
@ -5,11 +5,10 @@ import { postCreateZone } from '../api';
|
|||
const { TextArea } = Input;
|
||||
|
||||
const phonereg = /^([1][3456789])\d{9}$/
|
||||
const idenReg = /^[a-zA-Z][a-zA-Z0-9-_]{0,18}[a-zA-Z]$/g
|
||||
function Apply(props){
|
||||
const { form } = props;
|
||||
const { getFieldDecorator , validateFields } = form;
|
||||
|
||||
console.log(props);
|
||||
useEffect(()=>{
|
||||
document.title = '申请创建专区';
|
||||
},[])
|
||||
|
|
@ -20,8 +19,10 @@ function Apply(props){
|
|||
const zoneApplication = {...values};
|
||||
postCreateZone(zoneApplication).then(response=>{
|
||||
if(response && response.data && response.data.code===200){
|
||||
props.showNotification("提交成功!")
|
||||
props.history.push({pathname:"/"});
|
||||
props.showNotification("提交成功!");
|
||||
setTimeout(() => {
|
||||
window.location.href="/";
|
||||
}, 200);
|
||||
}
|
||||
}).catch(error=>{})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -48,7 +48,8 @@ function SelfList(props){
|
|||
getSourceMyList({
|
||||
auditStatus:status,
|
||||
zoneId:id,
|
||||
pageSize:limit
|
||||
pageSize:limit,
|
||||
pageNum:page
|
||||
}).then(result=>{
|
||||
setList(result.data.rows);
|
||||
setTotal(result.data.total);
|
||||
|
|
@ -59,7 +60,8 @@ function SelfList(props){
|
|||
function getNew(){
|
||||
getNewsMyList(id,{
|
||||
auditStatus:status===0 ? 2 : status === 2 ? 0 : 1,
|
||||
pageSize:limit
|
||||
pageSize:limit,
|
||||
pageNum:page
|
||||
}).then(result=>{
|
||||
setList(result.data.rows);
|
||||
setTotal(result.data.total);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
import axios from 'axios';
|
||||
import { message , notification } from 'antd';
|
||||
import cookie from 'react-cookies';
|
||||
|
||||
function beforeFetch(actionUrl){
|
||||
if (window.location.href.indexOf('localhost') < 0) {
|
||||
|
|
@ -8,8 +7,6 @@ function beforeFetch(actionUrl){
|
|||
}
|
||||
|
||||
const service = axios.create({
|
||||
headers:{Authorization:"0cd46d63363af9205eb7ccecff574309ce069a97"},
|
||||
// headers:{Authorization: cookie.load("autologin_trustie")},
|
||||
baseURL: actionUrl,
|
||||
timeout: 1800000, // 请求超时时间
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1687,6 +1687,9 @@
|
|||
top:8px;
|
||||
content: "";
|
||||
}
|
||||
&:hover{
|
||||
color: var(--primary-color);
|
||||
}
|
||||
}
|
||||
.s-info{
|
||||
display: flex;
|
||||
|
|
|
|||
Loading…
Reference in New Issue