傅行帆 5 лет назад
Родитель
Сommit
968c2c0633

+ 1
- 0
src/pages/activity/drainage/Detail.jsx Просмотреть файл

@@ -171,6 +171,7 @@ const header = (props) => {
171 171
           <Button style={{ marginLeft: 8 }} onClick={handleReset}>
172 172
             重置
173 173
             </Button>
174
+            <Button type="danger" onClick={() => router.go(-1)} style={{ marginBottom: '18px', marginLeft: '30px' }}>返回</Button>  
174 175
         </Form.Item>
175 176
       </Form>
176 177
       <div>

+ 2
- 1
src/pages/indexEcharts/newUsers.jsx Просмотреть файл

@@ -4,7 +4,7 @@ import { Row, Col, Menu, Dropdown } from 'antd';
4 4
 import NewUsers from './components/NewUsers'
5 5
 // import XForm, { FieldTypes } from '../../components/XForm';
6 6
 import moment from 'moment';
7
-
7
+import router from 'umi/router';
8 8
 import EChart from '../../components/EchartsTest/EChart';
9 9
 import request from '../../utils/request';
10 10
 import apis from '../../services/apis';
@@ -101,6 +101,7 @@ const header = props => {
101 101
       <Button type="primary" htmlType="submit" style={{ marginLeft: '30px' }} onClick={datalist}>
102 102
         搜索
103 103
           </Button>
104
+          <Button type="danger" onClick={() => router.go(-1)} style={{ marginBottom: '18px', marginLeft: '30px' }}>返回</Button>  
104 105
       <div>
105 106
         <NewUsers BuildSelectHide={true} endDate={endDate} startDate={startDate}  dataZoom={true} ></NewUsers>
106 107
         {/* */}

+ 2
- 1
src/pages/indexEcharts/userSource.jsx Просмотреть файл

@@ -7,7 +7,7 @@ import moment from 'moment';
7 7
 import EChart from '../../components/EchartsTest/EChart';
8 8
 import request from '../../utils/request';
9 9
 import apis from '../../services/apis';
10
-
10
+import router from 'umi/router';
11 11
 
12 12
 
13 13
 const { RangePicker } = DatePicker;
@@ -159,6 +159,7 @@ class Header extends React.Component {
159 159
         <Button type="primary" htmlType="submit" style={{ marginLeft: '30px' }} onClick={() => this.datalist()}>
160 160
           查询
161 161
         </Button>
162
+        <Button type="danger" onClick={() => router.go(-1)} style={{ marginBottom: '18px', marginLeft: '30px' }}>返回</Button>
162 163
         <div>
163 164
   
164 165
           <div style={{ display: 'flex' }}>