傅行帆 5 年之前
父節點
當前提交
5edb102b01

+ 2
- 1
src/pages/customer/customerlist/customerDetail.jsx 查看文件

@@ -1,5 +1,5 @@
1 1
 import React, { useState, useEffect } from 'react';
2
-import { Form, Table, Pagination } from 'antd';
2
+import { Form, Table, Pagination, Button } from 'antd';
3 3
 import { FormattedMessage } from 'umi-plugin-react/locale';
4 4
 import styles from './style.less';
5 5
 import apis from '../../../services/apis';
@@ -115,6 +115,7 @@ function header(props) {
115 115
   ];
116 116
   return (
117 117
     <>
118
+      <Button type="danger" style={{ marginBottom: '18px' }} onClick={() => router.go(-1)}>返回</Button>
118 119
       <div className={styles.cardBox}>
119 120
         <div className={styles.rightBox}>
120 121
           <p className={styles.tit}>客户信息</p>

+ 2
- 1
src/pages/customer/customerlist/publicCustomerDetail.jsx 查看文件

@@ -1,5 +1,5 @@
1 1
 import React, { useState, useEffect } from 'react';
2
-import { Form, Table, Pagination } from 'antd';
2
+import { Form, Table, Pagination,Button } from 'antd';
3 3
 import { FormattedMessage } from 'umi-plugin-react/locale';
4 4
 import publicStyle from './publicStyle.less';
5 5
 import apis from '../../../services/apis';
@@ -117,6 +117,7 @@ function onChange(number) {
117 117
 
118 118
   return (
119 119
     <>
120
+    <Button type="danger" onClick={() => router.go(-1)} style={{ marginBottom: '18px' }}>返回</Button>
120 121
       <div className={publicStyle.cardBox}>
121 122
      {/* { console.log("data:",data),console.log("data:",dataConsultant)} */}
122 123
         <div className={publicStyle.rightBox}>