From eebb52c84d51ab590ff1af4603a77b93b1c3059a Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Thu, 21 Sep 2023 15:37:28 +0800 Subject: [PATCH] update --- src/forge/Information/Pages/apply.jsx | 9 +++++---- src/forge/Information/Pages/selfList.jsx | 6 ++++-- src/forge/Information/fetch.js | 3 --- src/forge/Information/index.scss | 3 +++ 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/forge/Information/Pages/apply.jsx b/src/forge/Information/Pages/apply.jsx index bbb638809..2c07bb12a 100644 --- a/src/forge/Information/Pages/apply.jsx +++ b/src/forge/Information/Pages/apply.jsx @@ -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=>{}) } diff --git a/src/forge/Information/Pages/selfList.jsx b/src/forge/Information/Pages/selfList.jsx index fce4407b5..b994abff3 100644 --- a/src/forge/Information/Pages/selfList.jsx +++ b/src/forge/Information/Pages/selfList.jsx @@ -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); diff --git a/src/forge/Information/fetch.js b/src/forge/Information/fetch.js index d7491da4e..29cc15d28 100644 --- a/src/forge/Information/fetch.js +++ b/src/forge/Information/fetch.js @@ -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, // 请求超时时间 }); diff --git a/src/forge/Information/index.scss b/src/forge/Information/index.scss index 140c0aab9..ef5c0f61f 100644 --- a/src/forge/Information/index.scss +++ b/src/forge/Information/index.scss @@ -1687,6 +1687,9 @@ top:8px; content: ""; } + &:hover{ + color: var(--primary-color); + } } .s-info{ display: flex;