refactor(router): replace routerRedux with history for navigation
This commit is contained in:
@ -315,6 +315,7 @@ input::-webkit-outer-spin-button,
|
|||||||
&.ant-menu-item-only-child {
|
&.ant-menu-item-only-child {
|
||||||
padding-left: 40px !important;
|
padding-left: 40px !important;
|
||||||
height: 56px;
|
height: 56px;
|
||||||
|
line-height: 25px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding-top: 16px;
|
padding-top: 16px;
|
||||||
padding-bottom: 16px;
|
padding-bottom: 16px;
|
||||||
|
@ -3,7 +3,6 @@ import { Link, history } from '@umijs/max';
|
|||||||
import './index.less';
|
import './index.less';
|
||||||
import styles from './index.less';
|
import styles from './index.less';
|
||||||
import { connect } from "dva";
|
import { connect } from "dva";
|
||||||
// import { routerRedux } from 'dva/router';
|
|
||||||
import React, { useState, useEffect, useReducer } from 'react';
|
import React, { useState, useEffect, useReducer } from 'react';
|
||||||
import { getSessionUserData, getRoomId, getRoomStatus, getProMethod, getSessionRoleData, getIPassDecode, getDefId, getProId, getOfflineStatusById } from '@/utils/session';
|
import { getSessionUserData, getRoomId, getRoomStatus, getProMethod, getSessionRoleData, getIPassDecode, getDefId, getProId, getOfflineStatusById } from '@/utils/session';
|
||||||
import { getURLInformation } from '@/utils/CommonUtils';
|
import { getURLInformation } from '@/utils/CommonUtils';
|
||||||
|
@ -90,10 +90,10 @@
|
|||||||
min-width: 60px;
|
min-width: 60px;
|
||||||
}
|
}
|
||||||
.horizontal-stepper .MuiStepIcon-completed {
|
.horizontal-stepper .MuiStepIcon-completed {
|
||||||
color: #b30000 !important;
|
color: @primary-color !important;
|
||||||
}
|
}
|
||||||
.horizontal-stepper .MuiStepIcon-active {
|
.horizontal-stepper .MuiStepIcon-active {
|
||||||
color: #b30000 !important;
|
color: @primary-color !important;
|
||||||
}
|
}
|
||||||
.horizontal-stepper .MuiStep-completed {
|
.horizontal-stepper .MuiStep-completed {
|
||||||
// min-width: 90px ;
|
// min-width: 90px ;
|
||||||
|
@ -226,7 +226,6 @@ class Jury extends PureComponent {
|
|||||||
// 再跳转
|
// 再跳转
|
||||||
if(txt==1){
|
if(txt==1){
|
||||||
// sessionStorage.setItem("roomId",record.id)
|
// sessionStorage.setItem("roomId",record.id)
|
||||||
// this.props.dispatch(routerRedux.push('/ProjectLayout/EvaRoom'))
|
|
||||||
// history.push('/EvaRoom')
|
// history.push('/EvaRoom')
|
||||||
window.open('/EvaRoom/Eva')
|
window.open('/EvaRoom/Eva')
|
||||||
}else{
|
}else{
|
||||||
|
@ -7,7 +7,6 @@ import { getDictBidMethodDict, getProMethod, getRoomId, getDefId, getQuotationMe
|
|||||||
import { saveLeaderId, getJuryData, checkOpenBidSupplier, getPackageList, createReviewRoom, closingReviewRoom } from './components/service';
|
import { saveLeaderId, getJuryData, checkOpenBidSupplier, getPackageList, createReviewRoom, closingReviewRoom } from './components/service';
|
||||||
import './index.less';
|
import './index.less';
|
||||||
import { connect } from "dva";
|
import { connect } from "dva";
|
||||||
// import { routerRedux } from 'dva/router';
|
|
||||||
import { getProId, getProSignDict } from '@/utils/session';
|
import { getProId, getProSignDict } from '@/utils/session';
|
||||||
import ReviewDevided from '@/pages/BidEvaluation/components/ReviewDevided';
|
import ReviewDevided from '@/pages/BidEvaluation/components/ReviewDevided';
|
||||||
import CreateReviewRoom from '@/pages/BidEvaluation/components/CreateReviewRoom';
|
import CreateReviewRoom from '@/pages/BidEvaluation/components/CreateReviewRoom';
|
||||||
@ -68,7 +67,6 @@ class manager extends PureComponent {
|
|||||||
sessionStorage.setItem("roomId", record.id)
|
sessionStorage.setItem("roomId", record.id)
|
||||||
this.savePageAndParams();
|
this.savePageAndParams();
|
||||||
history.push(`/ProjectLayout/FlowConfig`)
|
history.push(`/ProjectLayout/FlowConfig`)
|
||||||
// this.props.dispatch()
|
|
||||||
}
|
}
|
||||||
//查询评审室列表
|
//查询评审室列表
|
||||||
getManagerList = (params) => {
|
getManagerList = (params) => {
|
||||||
@ -126,7 +124,6 @@ class manager extends PureComponent {
|
|||||||
sessionStorage.setItem("openTime", record.openTime)
|
sessionStorage.setItem("openTime", record.openTime)
|
||||||
this.setState({ loading: true })
|
this.setState({ loading: true })
|
||||||
await getQuotationMethodById(record.id)
|
await getQuotationMethodById(record.id)
|
||||||
// this.props.dispatch(routerRedux.push('/ProjectLayout/EvaRoom'))
|
|
||||||
this.setState({ loading: false })
|
this.setState({ loading: false })
|
||||||
window.open(`/EvaRoom`)
|
window.open(`/EvaRoom`)
|
||||||
}
|
}
|
||||||
@ -134,7 +131,6 @@ class manager extends PureComponent {
|
|||||||
onJurySet = (record) => {
|
onJurySet = (record) => {
|
||||||
this.savePageAndParams();
|
this.savePageAndParams();
|
||||||
history.push({ pathname: '/ProjectLayout/JudgingPanel', state: { roomId: record.id, secId: record.sectionId, openTime: record.openTime } });
|
history.push({ pathname: '/ProjectLayout/JudgingPanel', state: { roomId: record.id, secId: record.sectionId, openTime: record.openTime } });
|
||||||
// this.props.dispatch(routerRedux.push(`/ProjectLayout/JudgingPanel?roomId=${record.id}&secId=${record.sectionId}&openTime=${record.openTime}`));
|
|
||||||
}
|
}
|
||||||
//创建评审室
|
//创建评审室
|
||||||
onCreateClick = async () => {
|
onCreateClick = async () => {
|
||||||
@ -429,8 +425,7 @@ class manager extends PureComponent {
|
|||||||
}
|
}
|
||||||
// 跳转组建评委会
|
// 跳转组建评委会
|
||||||
onRedirectRate = () => {
|
onRedirectRate = () => {
|
||||||
// this.props.dispatch(history.push('/JudgingPanel/list'))
|
history.push('/JudgingPanel/list')
|
||||||
history.push(`/JudgingPanel/list`)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
@ -3,7 +3,6 @@ import { Divider, Button, Form, Card, Tabs, Table, Tooltip, Input, Select, Row,
|
|||||||
import './index.less';
|
import './index.less';
|
||||||
import { connect } from "dva";
|
import { connect } from "dva";
|
||||||
import { getProId, getProMethod, getDefId, getQuotationMethodById, getSessionUserData } from '@/utils/session';
|
import { getProId, getProMethod, getDefId, getQuotationMethodById, getSessionUserData } from '@/utils/session';
|
||||||
// import { routerRedux } from 'dva/router';
|
|
||||||
import { getURLInformation } from '@/utils/CommonUtils';
|
import { getURLInformation } from '@/utils/CommonUtils';
|
||||||
import { btnAuthority } from '@/utils/authority';
|
import { btnAuthority } from '@/utils/authority';
|
||||||
import { getMaxTurnSortSupplier } from './components/service';
|
import { getMaxTurnSortSupplier } from './components/service';
|
||||||
@ -72,7 +71,6 @@ class supplier extends PureComponent {
|
|||||||
sessionStorage.setItem("isBxOneSecondCustom", "0")
|
sessionStorage.setItem("isBxOneSecondCustom", "0")
|
||||||
}
|
}
|
||||||
this.setState({ loading: false })
|
this.setState({ loading: false })
|
||||||
// this.props.dispatch(routerRedux.push('/ProjectLayout/EvaRoom'))
|
|
||||||
window.open('/EvaRoom')
|
window.open('/EvaRoom')
|
||||||
}
|
}
|
||||||
render() {
|
render() {
|
||||||
|
@ -6,7 +6,7 @@ import ProTable, { ProColumns } from '@ant-design/pro-table';
|
|||||||
import ReviewDevided from '@/pages/BidEvaluation/components/ReviewDevided';
|
import ReviewDevided from '@/pages/BidEvaluation/components/ReviewDevided';
|
||||||
import { getRoomDataById } from '@/services/common';
|
import { getRoomDataById } from '@/services/common';
|
||||||
import { ExclamationCircleOutlined } from '@ant-design/icons';
|
import { ExclamationCircleOutlined } from '@ant-design/icons';
|
||||||
|
import '@/assets/zjl_style.less'
|
||||||
/**
|
/**
|
||||||
* 评审室内页-基本信息
|
* 评审室内页-基本信息
|
||||||
* @author wuxianhui
|
* @author wuxianhui
|
||||||
|
@ -2,7 +2,6 @@ import React, {PureComponent} from 'react';
|
|||||||
import {Divider,Button,Form,Card,Tabs,Table,Tooltip,Input,Select,Row,Col,message,Modal,Pagination,Spin} from 'antd';
|
import {Divider,Button,Form,Card,Tabs,Table,Tooltip,Input,Select,Row,Col,message,Modal,Pagination,Spin} from 'antd';
|
||||||
// import './index.less';
|
// import './index.less';
|
||||||
import { connect } from "dva";
|
import { connect } from "dva";
|
||||||
// import { routerRedux } from 'dva/router';
|
|
||||||
import { getRoomId } from '@/utils/session';
|
import { getRoomId } from '@/utils/session';
|
||||||
import { getURLInformation } from '@/utils/CommonUtils';
|
import { getURLInformation } from '@/utils/CommonUtils';
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@ import React, {PureComponent} from 'react';
|
|||||||
import {Divider,Button,Form,Card,Tabs,Table,Tooltip,Input,Select,Row,Col,message,Modal,Spin,Pagination} from 'antd';
|
import {Divider,Button,Form,Card,Tabs,Table,Tooltip,Input,Select,Row,Col,message,Modal,Spin,Pagination} from 'antd';
|
||||||
// import './index.less';
|
// import './index.less';
|
||||||
import { connect } from "dva";
|
import { connect } from "dva";
|
||||||
// import { routerRedux } from 'dva/router';
|
|
||||||
import { getRoomId } from '@/utils/session';
|
import { getRoomId } from '@/utils/session';
|
||||||
import { getURLInformation } from '@/utils/CommonUtils';
|
import { getURLInformation } from '@/utils/CommonUtils';
|
||||||
import { CheckOutlined, CloseOutlined } from '@ant-design/icons';
|
import { CheckOutlined, CloseOutlined } from '@ant-design/icons';
|
||||||
|
@ -4,7 +4,6 @@ import { history } from '@umijs/max';
|
|||||||
import { connect } from 'dva';
|
import { connect } from 'dva';
|
||||||
import './index.less';
|
import './index.less';
|
||||||
import talkPng from '@/images/talk/talk.png';
|
import talkPng from '@/images/talk/talk.png';
|
||||||
// import { routerRedux } from 'dva/router';
|
|
||||||
import { RightOutlined } from '@ant-design/icons';
|
import { RightOutlined } from '@ant-design/icons';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import { jurySaveInfo, getRA } from '@/utils/session';
|
import { jurySaveInfo, getRA } from '@/utils/session';
|
||||||
|
@ -4,7 +4,6 @@ import { Row, Col, Tooltip, Card, List, DatePicker, Button, Statistic, Spin, Emp
|
|||||||
import { connect } from 'dva';
|
import { connect } from 'dva';
|
||||||
import './index.less';
|
import './index.less';
|
||||||
import talkPng from '@/images/talk/talk.png';
|
import talkPng from '@/images/talk/talk.png';
|
||||||
// import { routerRedux } from 'dva/router';
|
|
||||||
import { RightOutlined } from '@ant-design/icons';
|
import { RightOutlined } from '@ant-design/icons';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import { auctionFollowUpAProjectManager, getRA } from '@/utils/session';
|
import { auctionFollowUpAProjectManager, getRA } from '@/utils/session';
|
||||||
|
@ -87,6 +87,9 @@
|
|||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.cardtre {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.topt::-webkit-scrollbar {
|
.topt::-webkit-scrollbar {
|
||||||
width: 8px;
|
width: 8px;
|
||||||
|
@ -5,7 +5,6 @@ import { Row, Col, Tooltip, Card, List, DatePicker, Button, Statistic, Spin, Emp
|
|||||||
import { connect } from 'dva';
|
import { connect } from 'dva';
|
||||||
import './index.less';
|
import './index.less';
|
||||||
import talkPng from '@/images/talk/talk.png';
|
import talkPng from '@/images/talk/talk.png';
|
||||||
// import { routerRedux } from 'dva/router';
|
|
||||||
import { RightOutlined } from '@ant-design/icons';
|
import { RightOutlined } from '@ant-design/icons';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import { followUpAProjectManager, getSessionUserData } from '@/utils/session';
|
import { followUpAProjectManager, getSessionUserData } from '@/utils/session';
|
||||||
|
@ -4,7 +4,6 @@ import { Row, Col, Tooltip, Card, List, DatePicker, Button, Statistic, Spin, Emp
|
|||||||
import { connect } from 'dva';
|
import { connect } from 'dva';
|
||||||
import './index.less';
|
import './index.less';
|
||||||
import talkPng from '@/images/talk/talk.png';
|
import talkPng from '@/images/talk/talk.png';
|
||||||
// import { routerRedux } from 'dva/router';
|
|
||||||
import { RightOutlined } from '@ant-design/icons';
|
import { RightOutlined } from '@ant-design/icons';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import { getRA } from '@/utils/session';
|
import { getRA } from '@/utils/session';
|
||||||
|
@ -4,7 +4,6 @@ import { Row, Col, Tooltip, Card, List, DatePicker, Button, Statistic, Spin, Emp
|
|||||||
import { connect } from 'dva';
|
import { connect } from 'dva';
|
||||||
import './index.less';
|
import './index.less';
|
||||||
import talkPng from '@/images/talk/talk.png';
|
import talkPng from '@/images/talk/talk.png';
|
||||||
// import { routerRedux } from 'dva/router';
|
|
||||||
import { RightOutlined } from '@ant-design/icons';
|
import { RightOutlined } from '@ant-design/icons';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import { getRA } from '@/utils/session';
|
import { getRA } from '@/utils/session';
|
||||||
|
@ -4,7 +4,6 @@ import { Row, Col, Tooltip, Card, List, DatePicker, Button, Statistic, Spin, Emp
|
|||||||
import { connect } from 'dva';
|
import { connect } from 'dva';
|
||||||
import './index.less';
|
import './index.less';
|
||||||
import talkPng from '@/images/talk/talk.png';
|
import talkPng from '@/images/talk/talk.png';
|
||||||
// import { routerRedux } from 'dva/router';
|
|
||||||
import { RightOutlined } from '@ant-design/icons';
|
import { RightOutlined } from '@ant-design/icons';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import { getRA } from '@/utils/session';
|
import { getRA } from '@/utils/session';
|
||||||
|
@ -20,7 +20,6 @@ import {
|
|||||||
import { connect } from 'dva';
|
import { connect } from 'dva';
|
||||||
import './index.less';
|
import './index.less';
|
||||||
import talkPng from '@/images/talk/talk.png';
|
import talkPng from '@/images/talk/talk.png';
|
||||||
// import { routerRedux } from 'dva/router';
|
|
||||||
import { RightOutlined } from '@ant-design/icons';
|
import { RightOutlined } from '@ant-design/icons';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import { followUpAProjectManager, getRA, getSessionUserData } from '@/utils/session';
|
import { followUpAProjectManager, getRA, getSessionUserData } from '@/utils/session';
|
||||||
|
@ -5,7 +5,6 @@ import { history } from '@umijs/max';
|
|||||||
import { connect } from 'dva';
|
import { connect } from 'dva';
|
||||||
import './index.less';
|
import './index.less';
|
||||||
import talkPng from '@/images/talk/talk.png';
|
import talkPng from '@/images/talk/talk.png';
|
||||||
// import { routerRedux } from 'dva/router';
|
|
||||||
import { RightOutlined } from '@ant-design/icons';
|
import { RightOutlined } from '@ant-design/icons';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import { followUpAProjectSupplier, getSessionUserData, getRA } from '@/utils/session';
|
import { followUpAProjectSupplier, getSessionUserData, getRA } from '@/utils/session';
|
||||||
|
@ -2,7 +2,6 @@ import React, {PureComponent} from 'react';
|
|||||||
import {Divider,Button,Form,Card,Tabs,Table,Tooltip,Input,Select,Row,Col,message,Modal,Pagination,Spin} from 'antd';
|
import {Divider,Button,Form,Card,Tabs,Table,Tooltip,Input,Select,Row,Col,message,Modal,Pagination,Spin} from 'antd';
|
||||||
// import './index.less';
|
// import './index.less';
|
||||||
import { connect } from "dva";
|
import { connect } from "dva";
|
||||||
// import { routerRedux } from 'dva/router';
|
|
||||||
import { getRoomId } from '@/utils/session';
|
import { getRoomId } from '@/utils/session';
|
||||||
import { getURLInformation } from '@/utils/CommonUtils';
|
import { getURLInformation } from '@/utils/CommonUtils';
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@ import React, {PureComponent} from 'react';
|
|||||||
import {Divider,Button,Form,Card,Tabs,Table,Tooltip,Input,Select,Row,Col,message,Modal,Pagination,Spin} from 'antd';
|
import {Divider,Button,Form,Card,Tabs,Table,Tooltip,Input,Select,Row,Col,message,Modal,Pagination,Spin} from 'antd';
|
||||||
// import './index.less';
|
// import './index.less';
|
||||||
import { connect } from "dva";
|
import { connect } from "dva";
|
||||||
// import { routerRedux } from 'dva/router';
|
|
||||||
import { getRoomId } from '@/utils/session';
|
import { getRoomId } from '@/utils/session';
|
||||||
import { getURLInformation } from '@/utils/CommonUtils';
|
import { getURLInformation } from '@/utils/CommonUtils';
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user