傅行帆 před 5 roky
rodič
revize
b6f82ad505

+ 2
- 2
src/pages/activity/groupActivity/list.jsx Zobrazit soubor

94
       align: 'center',
94
       align: 'center',
95
       render: (x, row) => <><div style={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', width: '201px', title: 'content' }}>
95
       render: (x, row) => <><div style={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', width: '201px', title: 'content' }}>
96
         <Navigate onClick={getActivityDetail(row.groupActivityId)}>{row.activityName}</Navigate></div></>,
96
         <Navigate onClick={getActivityDetail(row.groupActivityId)}>{row.activityName}</Navigate></div></>,
97
-      // <span style={{color: 'blue',cursor: 'pointer'}} onClick={getActivityDetail(row.groupActivityId)}>{row.activityName}</span></div></>,
98
     },
97
     },
99
     {
98
     {
100
       title: '活动时间',
99
       title: '活动时间',
115
       key: 'participateNum',
114
       key: 'participateNum',
116
       align: 'center',
115
       align: 'center',
117
       render: (x, row) => <><div style={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', width: '201px', title: 'content' }}>
116
       render: (x, row) => <><div style={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', width: '201px', title: 'content' }}>
118
-        <span style={{ color: 'blue', cursor: 'pointer' }} onClick={getJoinPeople(row.groupActivityId)}>{row.participateNum}</span></div></>,
117
+        <Navigate onClick={getJoinPeople(row.groupActivityId)}>{row.participateNum}</Navigate>
118
+        </div></>,
119
     },
119
     },
120
     {
120
     {
121
       title: '成团数',
121
       title: '成团数',

+ 5
- 2
src/pages/activity/helpActivity/list.jsx Zobrazit soubor

5
 import AuthButton from '@/components/AuthButton';
5
 import AuthButton from '@/components/AuthButton';
6
 import withActions from '@/components/ActionList';
6
 import withActions from '@/components/ActionList';
7
 import EditIcon from '@/components/EditIcon';
7
 import EditIcon from '@/components/EditIcon';
8
+import Navigate from '@/components/Navigate';
8
 import Prompt from 'umi/prompt';
9
 import Prompt from 'umi/prompt';
9
 import SelectCity from '../../../components/SelectButton/CitySelect'
10
 import SelectCity from '../../../components/SelectButton/CitySelect'
10
 import BuildSelect from '../../../components/SelectButton/BuildSelect'
11
 import BuildSelect from '../../../components/SelectButton/BuildSelect'
82
       key: 'title',
83
       key: 'title',
83
       align: 'center',
84
       align: 'center',
84
       render: (x, row) => <><div style={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', width: '201px', title: 'content' }}>
85
       render: (x, row) => <><div style={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', width: '201px', title: 'content' }}>
85
-        <span style={{ color: 'blue', cursor: 'pointer' }} onClick={getActivityDetail(row.helpActivityId)}>{row.title}</span></div></>,
86
+        <Navigate onClick={getActivityDetail(row.helpActivityId)}>{row.title}</Navigate>
87
+        </div></>,
86
     },
88
     },
87
     {
89
     {
88
       title: '活动时间',
90
       title: '活动时间',
97
       key: 'enlistNum',
99
       key: 'enlistNum',
98
       align: 'center',
100
       align: 'center',
99
       render: (x, row) => <><div style={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', width: '201px', title: 'content' }}>
101
       render: (x, row) => <><div style={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', width: '201px', title: 'content' }}>
100
-        <span style={{ color: 'blue', cursor: 'pointer' }} onClick={getJoinPeople(row.helpActivityId)}>{row.enlistNum}</span></div></>,
102
+        <Navigate onClick={getJoinPeople(row.helpActivityId)}>{row.enlistNum}</Navigate>
103
+        </div></>,
101
     },
104
     },
102
     {
105
     {
103
       title: '助力成功数',
106
       title: '助力成功数',

+ 2
- 1
src/pages/activity/liveActivity/add/index.jsx Zobrazit soubor

11
 import CitySelect3 from '../../../../components/SelectButton/CitySelect3'
11
 import CitySelect3 from '../../../../components/SelectButton/CitySelect3'
12
 import ImageUpload from '../../../../components/XForm/ImageUpload'
12
 import ImageUpload from '../../../../components/XForm/ImageUpload'
13
 import Wangedit from '../../../../components/Wangedit/Wangedit'
13
 import Wangedit from '../../../../components/Wangedit/Wangedit'
14
+import Navigate from '@/components/Navigate';
14
 import apis from '../../../../services/apis';
15
 import apis from '../../../../services/apis';
15
 import request from '../../../../utils/request';
16
 import request from '../../../../utils/request';
16
 import AuthButton from '@/components/AuthButton';
17
 import AuthButton from '@/components/AuthButton';
121
         <Form.Item label="房间参数">
122
         <Form.Item label="房间参数">
122
           {getFieldDecorator('liveRoomParam', {
123
           {getFieldDecorator('liveRoomParam', {
123
             rules: [{ required: true, message: '请输入房间参数' }],
124
             rules: [{ required: true, message: '请输入房间参数' }],
124
-          })(<Input maxLength={1000} placeholder="点击右侧按钮查看如何获取房间参数" style={{width:'680px'}}/>)}<a onClick={openIndexImg} style={{ color: 'blue' }}> 不知道怎么填?查看说明</a>
125
+          })(<Input maxLength={1000} placeholder="点击右侧按钮查看如何获取房间参数" style={{width:'680px'}}/>)}<Navigate onClick={openIndexImg}>不知道怎么填?查看说明</Navigate>
125
         </Form.Item>
126
         </Form.Item>
126
         <Form.Item label="封面图1" help="建议尺寸:750px*420px,比例16:9,格式:jpg,用于:活动列表">
127
         <Form.Item label="封面图1" help="建议尺寸:750px*420px,比例16:9,格式:jpg,用于:活动列表">
127
               {getFieldDecorator('listImg', {
128
               {getFieldDecorator('listImg', {

+ 2
- 1
src/pages/activity/liveActivity/edit/components/base.jsx Zobrazit soubor

11
 import CitySelect3 from '../../../../../components/SelectButton/CitySelect3';
11
 import CitySelect3 from '../../../../../components/SelectButton/CitySelect3';
12
 import ImageUpload from '../../../../../components/XForm/ImageUpload'
12
 import ImageUpload from '../../../../../components/XForm/ImageUpload'
13
 import request from '../../../../../utils/request';
13
 import request from '../../../../../utils/request';
14
+import Navigate from '@/components/Navigate';
14
 
15
 
15
 const { Option } = Select;
16
 const { Option } = Select;
16
 const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
17
 const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
144
             initialValue: liveActivityData.liveRoomParam,
145
             initialValue: liveActivityData.liveRoomParam,
145
             rules: [{ required: true, message: '请输入房间参数' }],
146
             rules: [{ required: true, message: '请输入房间参数' }],
146
           })(<Input maxLength={1000} placeholder="点击右侧按钮查看如何获取房间参数" style={{width:'680px'}}/>)}
147
           })(<Input maxLength={1000} placeholder="点击右侧按钮查看如何获取房间参数" style={{width:'680px'}}/>)}
147
-          <a onClick={openIndexImg} style={{ color: 'blue' }}> 不知道怎么填?查看说明</a>
148
+          <Navigate onClick={openIndexImg}>不知道怎么填?查看说明</Navigate>
148
         </Form.Item>
149
         </Form.Item>
149
         <Form.Item label="封面图1" help="建议尺寸:750px*420px,比例16:9,格式:jpg,用于:活动列表">
150
         <Form.Item label="封面图1" help="建议尺寸:750px*420px,比例16:9,格式:jpg,用于:活动列表">
150
               {getFieldDecorator('listImg', {
151
               {getFieldDecorator('listImg', {

+ 2
- 3
src/pages/carouselFigure/LiveGroup.jsx Zobrazit soubor

1
 import React, { useState, useEffect } from 'react';
1
 import React, { useState, useEffect } from 'react';
2
 import { Form, Select, Modal, Button, Table, Divider, Tag, Input } from 'antd';
2
 import { Form, Select, Modal, Button, Table, Divider, Tag, Input } from 'antd';
3
 import { apis, fetch } from '../../utils/request';
3
 import { apis, fetch } from '../../utils/request';
4
+import Navigate from '@/components/Navigate';
4
 
5
 
5
 const { Search } = Input;
6
 const { Search } = Input;
6
 
7
 
81
       align: 'center',
82
       align: 'center',
82
       width: '20%',
83
       width: '20%',
83
       render: (text, record) => (
84
       render: (text, record) => (
84
-        <span>
85
-          <a onClick={() => setData(record.liveActivityId)} style={{ color: 'blue' }}>选择</a>
86
-        </span>
85
+        <Navigate onClick={() => setData(record.liveActivityId)}>选择</Navigate>
87
       ),
86
       ),
88
     },
87
     },
89
   ];
88
   ];

+ 2
- 3
src/pages/carouselFigure/SalesBatchGroup.jsx Zobrazit soubor

1
 import React, { useState, useEffect } from 'react';
1
 import React, { useState, useEffect } from 'react';
2
 import { Form, Select, Modal, Button, Table, Divider, Tag, Input } from 'antd';
2
 import { Form, Select, Modal, Button, Table, Divider, Tag, Input } from 'antd';
3
 import { apis, fetch } from '../../utils/request';
3
 import { apis, fetch } from '../../utils/request';
4
+import Navigate from '@/components/Navigate';
4
 
5
 
5
 const { Search } = Input;
6
 const { Search } = Input;
6
 
7
 
81
       align: 'center',
82
       align: 'center',
82
       width: '20%',
83
       width: '20%',
83
       render: (text, record) => (
84
       render: (text, record) => (
84
-        <span>
85
-          <a onClick={() => setData(record.salesBatchId)} style={{ color: 'blue' }}>选择</a>
86
-        </span>
85
+        <Navigate onClick={() => setData(record.salesBatchId)}>选择</Navigate>
87
       ),
86
       ),
88
     },
87
     },
89
   ];
88
   ];

+ 2
- 3
src/pages/carouselFigure/SelectActivity.jsx Zobrazit soubor

1
 import React, { useState, useEffect } from 'react';
1
 import React, { useState, useEffect } from 'react';
2
 import { Form, Select, Modal, Button, Table, Divider, Tag, Input } from 'antd';
2
 import { Form, Select, Modal, Button, Table, Divider, Tag, Input } from 'antd';
3
 import { apis, fetch } from '../../utils/request';
3
 import { apis, fetch } from '../../utils/request';
4
+import Navigate from '@/components/Navigate';
4
 
5
 
5
 const getActivities = fetch(apis.activity.listSelected)
6
 const getActivities = fetch(apis.activity.listSelected)
6
 const { Search } = Input;
7
 const { Search } = Input;
83
       align: 'center',
84
       align: 'center',
84
       width: '20%',
85
       width: '20%',
85
       render: (text, record) => (
86
       render: (text, record) => (
86
-        <span>
87
-          <a onClick={() => setData(record.dynamicId)} style={{ color: 'blue' }}>选择</a>
88
-        </span>
87
+        <Navigate onClick={() => setData(record.dynamicId)}>选择</Navigate>
89
       ),
88
       ),
90
     },
89
     },
91
   ];
90
   ];

+ 2
- 3
src/pages/carouselFigure/SelectGroup.jsx Zobrazit soubor

1
 import React, { useState, useEffect } from 'react';
1
 import React, { useState, useEffect } from 'react';
2
 import { Form, Select, Modal, Button, Table, Divider, Tag, Input } from 'antd';
2
 import { Form, Select, Modal, Button, Table, Divider, Tag, Input } from 'antd';
3
 import { apis, fetch } from '../../utils/request';
3
 import { apis, fetch } from '../../utils/request';
4
+import Navigate from '@/components/Navigate';
4
 
5
 
5
 const { Search } = Input;
6
 const { Search } = Input;
6
 
7
 
81
       align: 'center',
82
       align: 'center',
82
       width: '20%',
83
       width: '20%',
83
       render: (text, record) => (
84
       render: (text, record) => (
84
-        <span>
85
-          <a onClick={() => setData(record.groupActivityId)} style={{ color: 'blue' }}>选择</a>
86
-        </span>
85
+         <Navigate onClick={() => setData(record.groupActivityId)}>选择</Navigate>
87
       ),
86
       ),
88
     },
87
     },
89
   ];
88
   ];

+ 2
- 3
src/pages/carouselFigure/SelectH5.jsx Zobrazit soubor

1
 import React, { useState, useEffect } from 'react';
1
 import React, { useState, useEffect } from 'react';
2
 import { Form, Select, Modal, Button, Table, Divider, Tag, Input,Row,Col } from 'antd';
2
 import { Form, Select, Modal, Button, Table, Divider, Tag, Input,Row,Col } from 'antd';
3
 import { apis, fetch } from '../../utils/request';
3
 import { apis, fetch } from '../../utils/request';
4
+import Navigate from '@/components/Navigate';
4
 
5
 
5
 const { Column, ColumnGroup } = Table;
6
 const { Column, ColumnGroup } = Table;
6
 const getH5List = fetch(apis.h5Activity.EffectiveList)
7
 const getH5List = fetch(apis.h5Activity.EffectiveList)
86
       align: 'center',
87
       align: 'center',
87
       width: '20%',
88
       width: '20%',
88
       render: (text, record) => (
89
       render: (text, record) => (
89
-        <span>
90
-          <a onClick={() => setData(record.drainageId)} style={{ color: 'blue' }}>选择</a>
91
-        </span>
90
+        <Navigate onClick={() => setData(record.drainageId)}>选择</Navigate>
92
       ),
91
       ),
93
     },
92
     },
94
   ];
93
   ];

+ 3
- 3
src/pages/carouselFigure/SelectHelp.jsx Zobrazit soubor

2
 
2
 
3
 import { Form, Select, Modal, Button, Table, Divider, Tag, Input } from 'antd';
3
 import { Form, Select, Modal, Button, Table, Divider, Tag, Input } from 'antd';
4
 import { apis, fetch } from '../../utils/request';
4
 import { apis, fetch } from '../../utils/request';
5
+import Navigate from '@/components/Navigate';
6
+
5
 const { Search } = Input;
7
 const { Search } = Input;
6
 
8
 
7
 const getHelpList = fetch(apis.helpActivity.effectiveList)
9
 const getHelpList = fetch(apis.helpActivity.effectiveList)
81
       align: 'center',
83
       align: 'center',
82
       width: '20%',
84
       width: '20%',
83
       render: (text, record) => (
85
       render: (text, record) => (
84
-        <span>
85
-          <a onClick={() => setData(record.helpActivityId)} style={{ color: 'blue' }}>选择</a>
86
-        </span>
86
+        <Navigate onClick={() => setData(record.helpActivityId)}>选择</Navigate>
87
       ),
87
       ),
88
     },
88
     },
89
   ];
89
   ];

+ 2
- 3
src/pages/carouselFigure/SelectNews.jsx Zobrazit soubor

1
 import React, { useState, useEffect } from 'react';
1
 import React, { useState, useEffect } from 'react';
2
 import { Form, Select, Modal, Button, Table, Divider, Tag, Input } from 'antd';
2
 import { Form, Select, Modal, Button, Table, Divider, Tag, Input } from 'antd';
3
 import { apis, fetch } from '../../utils/request';
3
 import { apis, fetch } from '../../utils/request';
4
+import Navigate from '@/components/Navigate';
4
 
5
 
5
 const getNewsList = fetch(apis.news.getList)
6
 const getNewsList = fetch(apis.news.getList)
6
 const { Search } = Input;
7
 const { Search } = Input;
77
       align: 'center',
78
       align: 'center',
78
       width: '20%',
79
       width: '20%',
79
       render: (text, record) => (
80
       render: (text, record) => (
80
-        <span>
81
-          <a onClick={() => setData(record.newsId)} style={{ color: 'blue' }}>选择</a>
82
-        </span>
81
+        <Navigate onClick={() => setData(record.newsId)}>选择</Navigate>
83
       ),
82
       ),
84
     },
83
     },
85
   ];
84
   ];

+ 3
- 2
src/pages/customer/customerlist/index.jsx Zobrazit soubor

14
 import ChangeStatus from './components/changeStatus'
14
 import ChangeStatus from './components/changeStatus'
15
 import BuildSelect from '../../../components/SelectButton/BuildSelect'
15
 import BuildSelect from '../../../components/SelectButton/BuildSelect'
16
 import AuthButton from '@/components/AuthButton';
16
 import AuthButton from '@/components/AuthButton';
17
+import Navigate from '@/components/Navigate';
17
 import WxDictSelect from '@/components/SelectButton/WxDictSelect';
18
 import WxDictSelect from '@/components/SelectButton/WxDictSelect';
18
 import Prompt from 'umi/prompt';
19
 import Prompt from 'umi/prompt';
19
 
20
 
398
       align: 'center',
399
       align: 'center',
399
       width: '10%',
400
       width: '10%',
400
       // eslint-disable-next-line no-nested-ternary
401
       // eslint-disable-next-line no-nested-ternary
401
-      render: (_, record) => <><span style={{ color: 'blue', cursor: 'pointer' }} onClick={() => publicCustomerDetail(record)} >{record.name || record.nickname}</span></>,
402
+      render: (_, record) => <><Navigate onClick={() => publicCustomerDetail(record)}>{record.name || record.nickname}</Navigate></>,
402
     },
403
     },
403
     {
404
     {
404
       title: '电话',
405
       title: '电话',
481
       align: 'center',
482
       align: 'center',
482
       width: '10%',
483
       width: '10%',
483
       // eslint-disable-next-line no-nested-ternary
484
       // eslint-disable-next-line no-nested-ternary
484
-      render: (_, record) => <><span style={{ color: 'blue', cursor: 'pointer' }} onClick={() => toCustomerDateil(record)}>{customerType === 'private' ? record.name : record.nickname}</span></>,
485
+      render: (_, record) => <><Navigate onClick={() => toCustomerDateil(record)}>{customerType === 'private' ? record.name : record.nickname}</Navigate></>,
485
     },
486
     },
486
     {
487
     {
487
       title: '电话',
488
       title: '电话',

+ 4
- 3
src/pages/eContract/businessConfig/components/SelectCompany.jsx Zobrazit soubor

3
 import request from '../../../../utils/request';
3
 import request from '../../../../utils/request';
4
 import apis from '../../../../services/apis';
4
 import apis from '../../../../services/apis';
5
 import moment from 'moment';
5
 import moment from 'moment';
6
+import Navigate from '@/components/Navigate';
6
 
7
 
7
 const { Column, ColumnGroup } = Table;
8
 const { Column, ColumnGroup } = Table;
8
 const { Search } = Input;
9
 const { Search } = Input;
132
       width: '20%',
133
       width: '20%',
133
       render: (text, record) => (
134
       render: (text, record) => (
134
         <span>
135
         <span>
135
-          {record.sealNum >0 && record.authorizeStatus === '3000' && <a onClick={() => setData({id:record.companyId, name:record.companyName})} style={{ color: 'blue' }}>选择</a>}
136
+          {record.sealNum >0 && record.authorizeStatus === '3000' && <Navigate onClick={() => setData({id:record.companyId, name:record.companyName})}>选择</Navigate>}
136
         </span>
137
         </span>
137
       ),
138
       ),
138
     },
139
     },
142
 
143
 
143
   return (
144
   return (
144
     <div>
145
     <div>
145
-      <div>{group.groupName}<a style={{marginLeft:'30px', color: 'blue' }} onClick={() => setVisible(true)}>选择关联企业</a></div>
146
+      <div>{group.groupName}<Navigate onClick={() => setVisible(true)}>选择关联企业</Navigate></div>
146
       <Modal
147
       <Modal
147
         title="选择关联企业"
148
         title="选择关联企业"
148
         visible={visible}
149
         visible={visible}
168
           )}
169
           )}
169
         </Form.Item>
170
         </Form.Item>
170
         <Form.Item>
171
         <Form.Item>
171
-          <span style={{color:'#999'}}>可选企业必须已认证通过、已上传印章且授权了自动签章。</span><span><a onClick={openIndexImg} style={{ color: 'blue' }}>查看电子合同接入手册</a></span>
172
+          <span style={{color:'#999'}}>可选企业必须已认证通过、已上传印章且授权了自动签章。</span><Navigate onClick={openIndexImg}>查看电子合同接入手册</Navigate>
172
         </Form.Item>
173
         </Form.Item>
173
         <Form.Item>
174
         <Form.Item>
174
           <Button type="primary" htmlType="submit" >
175
           <Button type="primary" htmlType="submit" >

+ 3
- 4
src/pages/eContract/businessConfig/components/SelectContractTemp.jsx Zobrazit soubor

3
 import request from '../../../../utils/request';
3
 import request from '../../../../utils/request';
4
 import apis from '../../../../services/apis';
4
 import apis from '../../../../services/apis';
5
 import moment from 'moment';
5
 import moment from 'moment';
6
+import Navigate from '@/components/Navigate';
6
 
7
 
7
 const { Column, ColumnGroup } = Table;
8
 const { Column, ColumnGroup } = Table;
8
 const { Search } = Input;
9
 const { Search } = Input;
109
       align: 'center',
110
       align: 'center',
110
       width: '20%',
111
       width: '20%',
111
       render: (text, record) => (
112
       render: (text, record) => (
112
-        <span>
113
-          <a onClick={() => setData({id:record.contractTemplateId, name:record.contractTemplateName})} style={{ color: 'blue' }}>选择</a>
114
-        </span>
113
+        <Navigate onClick={() => setData({id:record.contractTemplateId, name:record.contractTemplateName})}>选择</Navigate>
115
       ),
114
       ),
116
     },
115
     },
117
   ];
116
   ];
120
 
119
 
121
   return (
120
   return (
122
     <div>
121
     <div>
123
-      <div>{group.groupName}<a style={{marginLeft:'30px', color: 'blue' }} onClick={() => setVisible(true)}>选择合同模板</a></div>
122
+      <div>{group.groupName}<Navigate onClick={() => setVisible(true)}>选择合同模板</Navigate></div>
124
       <Modal
123
       <Modal
125
         title="选择合同模板"
124
         title="选择合同模板"
126
         visible={visible}
125
         visible={visible}

+ 3
- 4
src/pages/eContract/businessConfig/components/SelectRaise.jsx Zobrazit soubor

4
 import apis from '../../../../services/apis';
4
 import apis from '../../../../services/apis';
5
 import BuildSelect from '../../../../components/SelectButton/BuildSelect'
5
 import BuildSelect from '../../../../components/SelectButton/BuildSelect'
6
 import moment from 'moment';
6
 import moment from 'moment';
7
+import Navigate from '@/components/Navigate';
7
 
8
 
8
 const { Column, ColumnGroup } = Table;
9
 const { Column, ColumnGroup } = Table;
9
 const { Search } = Input;
10
 const { Search } = Input;
130
       align: 'center',
131
       align: 'center',
131
       width: '20%',
132
       width: '20%',
132
       render: (text, record) => (
133
       render: (text, record) => (
133
-        <span>
134
-          <a onClick={() => setData({id:record.raiseId, name:record.salesBatchName})} style={{ color: 'blue' }}>选择</a>
135
-        </span>
134
+        <Navigate onClick={() => setData({id:record.raiseId, name:record.salesBatchName})}>选择</Navigate>
136
       ),
135
       ),
137
     },
136
     },
138
   ];
137
   ];
141
 
140
 
142
   return (
141
   return (
143
     <div>
142
     <div>
144
-      <div>{group.groupName}<a style={{marginLeft:'30px', color: 'blue' }} onClick={() => setVisible(true)}>{targetType != undefined && '选择关联业务'}</a></div>
143
+      <div>{group.groupName}<Navigate onClick={() => setVisible(true)}>{targetType != undefined && '选择关联业务'}</Navigate></div>
145
       <Modal
144
       <Modal
146
         title="选择关联业务"
145
         title="选择关联业务"
147
         visible={visible}
146
         visible={visible}

+ 2
- 3
src/pages/eContract/businessConfig/components/SelectSeal.jsx Zobrazit soubor

3
 import request from '../../../../utils/request';
3
 import request from '../../../../utils/request';
4
 import apis from '../../../../services/apis';
4
 import apis from '../../../../services/apis';
5
 import moment from 'moment';
5
 import moment from 'moment';
6
+import Navigate from '@/components/Navigate';
6
 
7
 
7
 const { Column, ColumnGroup } = Table;
8
 const { Column, ColumnGroup } = Table;
8
 const { Search } = Input;
9
 const { Search } = Input;
117
       align: 'center',
118
       align: 'center',
118
       width: '20%',
119
       width: '20%',
119
       render: (text, record) => (
120
       render: (text, record) => (
120
-        <span>
121
-          <a onClick={() => setData({id:record.sealId, name:record.sealName})} style={{ color: 'blue' }}>选择</a>
122
-        </span>
121
+        <Navigate onClick={() => setData({id:record.sealId, name:record.sealName})}>选择</Navigate>
123
       ),
122
       ),
124
     },
123
     },
125
   ];
124
   ];

+ 2
- 1
src/pages/h5SampleManager/h5Sample/detail.jsx Zobrazit soubor

12
 import TextArea from 'antd/lib/input/TextArea';
12
 import TextArea from 'antd/lib/input/TextArea';
13
 import copy from 'copy-to-clipboard';
13
 import copy from 'copy-to-clipboard';
14
 import copyImg from '../../../assets/copy.png';
14
 import copyImg from '../../../assets/copy.png';
15
+import Navigate from '@/components/Navigate';
15
 
16
 
16
 const { Option } = Select;
17
 const { Option } = Select;
17
 const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
18
 const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
104
         </Form.Item>}
105
         </Form.Item>}
105
         <Form.Item label="样例内容">
106
         <Form.Item label="样例内容">
106
           {demandData.sampleType === 'link' && <div><span style={{ color: 'rgba(0, 0, 0, 0.45)', fontSize: '14px' }}>点击链接查看内容</span><br/></div>}
107
           {demandData.sampleType === 'link' && <div><span style={{ color: 'rgba(0, 0, 0, 0.45)', fontSize: '14px' }}>点击链接查看内容</span><br/></div>}
107
-          {demandData.sampleType === 'rich' ? getFieldDecorator('sampleContent')(<div dangerouslySetInnerHTML={{ __html: demandData.sampleContent}}></div>) : getFieldDecorator('sampleContentLink')(<a style={{ color: "blue" }} href={demandData.sampleContentLink} target="_blank" >{demandData.sampleContentLink}</a>)}
108
+          {demandData.sampleType === 'rich' ? getFieldDecorator('sampleContent')(<div dangerouslySetInnerHTML={{ __html: demandData.sampleContent}}></div>) : getFieldDecorator('sampleContentLink')(<Navigate to={demandData.sampleContentLink}>{demandData.sampleContentLink}</Navigate>)}
108
         </Form.Item>
109
         </Form.Item>
109
         <Form.Item wrapperCol={{ span: 15, offset: 7 }}>
110
         <Form.Item wrapperCol={{ span: 15, offset: 7 }}>
110
           <div style={{ margin: '0.16rem 0 0.06rem' }}>
111
           <div style={{ margin: '0.16rem 0 0.06rem' }}>

+ 2
- 1
src/pages/house/raise/edit/components/RaiseHouse.jsx Zobrazit soubor

11
 import RoomSelect from '../../../../../components/HouseSelect/RoomSelect'
11
 import RoomSelect from '../../../../../components/HouseSelect/RoomSelect'
12
 import ApartmentSelect from '../../../../../components/HouseSelect/ApartmentSelect';
12
 import ApartmentSelect from '../../../../../components/HouseSelect/ApartmentSelect';
13
 import BasicHeat from './BasicHeat';
13
 import BasicHeat from './BasicHeat';
14
+import Navigate from '@/components/Navigate';
14
 /**
15
 /**
15
  *图片设置
16
  *图片设置
16
  *
17
  *
125
         title: '认筹实际热度',
126
         title: '认筹实际热度',
126
         dataIndex: 'raiseRealHeat',
127
         dataIndex: 'raiseRealHeat',
127
         key: 'raiseRealHeat',
128
         key: 'raiseRealHeat',
128
-        render:  (x, row) => <><span style={{color: 'blue',cursor: 'pointer'}} onClick={() => showEdi({type: "identifyingChips",houseId: row.houseId})}>{row.raiseRealHeat}</span></>,
129
+        render:  (x, row) => <Navigate onClick={() => showEdi({type: "identifyingChips",houseId: row.houseId})}>{row.raiseRealHeat}</Navigate>,
129
     },
130
     },
130
     {
131
     {
131
       title: '锁定状态',
132
       title: '锁定状态',

+ 3
- 2
src/pages/record/share/countList.jsx Zobrazit soubor

7
 import apis from '../../../services/apis';
7
 import apis from '../../../services/apis';
8
 import request from '../../../utils/request'
8
 import request from '../../../utils/request'
9
 import AuthButton from '@/components/AuthButton';
9
 import AuthButton from '@/components/AuthButton';
10
+import Navigate from '@/components/Navigate';
10
 
11
 
11
 /**
12
 /**
12
   @param {*} props
13
   @param {*} props
144
       dataIndex: 'shareCount',
145
       dataIndex: 'shareCount',
145
       key: 'shareCount',
146
       key: 'shareCount',
146
       align: 'center',
147
       align: 'center',
147
-      render: (_, record) => <><span style={{color: 'blue',cursor: 'pointer'}} onClick={() => shareCount(record.personId)} >{record.shareCount}</span></>,
148
+      render: (_, record) => <Navigate onClick={() => shareCount(record.personId)}>{record.shareCount}</Navigate>,
148
     },
149
     },
149
     {
150
     {
150
       title: '点击人数',
151
       title: '点击人数',
151
       dataIndex: 'clickNum',
152
       dataIndex: 'clickNum',
152
       key: 'clickNum',
153
       key: 'clickNum',
153
       align: 'center',
154
       align: 'center',
154
-      render: (_, record) => <><span style={{color: 'blue',cursor: 'pointer'}} onClick={() => clickCount(record.personId)} >{record.clickNum}</span></>,
155
+      render: (_, record) => <Navigate onClick={() => clickCount(record.personId)}>{record.clickNum}</Navigate>,
155
     },
156
     },
156
   ];
157
   ];
157
 
158
 

+ 2
- 1
src/pages/statistical/activity/detail.jsx Zobrazit soubor

9
 import echarts from 'echarts/lib/echarts';
9
 import echarts from 'echarts/lib/echarts';
10
 import EChart from '../../../components/EchartsTest/EChart';
10
 import EChart from '../../../components/EchartsTest/EChart';
11
 import Prompt from 'umi/prompt';
11
 import Prompt from 'umi/prompt';
12
+import Navigate from '@/components/Navigate';
12
 
13
 
13
 /**
14
 /**
14
   @param {*} props
15
   @param {*} props
102
         if (val == 0) {
103
         if (val == 0) {
103
             return <><span>{val}</span></>
104
             return <><span>{val}</span></>
104
         }
105
         }
105
-        return <><span style={{ color: 'blue', cursor: 'pointer' }} onClick={() => toDetail(record, type)} >{val}</span></>
106
+        return <Navigate onClick={() => toDetail(record, type)}>{val}</Navigate>
106
     }
107
     }
107
 
108
 
108
     //排序
109
     //排序

+ 3
- 2
src/pages/statistical/consultant/homePagePersons.jsx Zobrazit soubor

6
 import apis from '../../../services/apis';
6
 import apis from '../../../services/apis';
7
 import request from '../../../utils/request'
7
 import request from '../../../utils/request'
8
 import Prompt from 'umi/prompt';
8
 import Prompt from 'umi/prompt';
9
+import Navigate from '@/components/Navigate';
9
 
10
 
10
 /**
11
 /**
11
   @param {*} props
12
   @param {*} props
80
             dataIndex: 'name',
81
             dataIndex: 'name',
81
             key: 'name',
82
             key: 'name',
82
             align: 'center',
83
             align: 'center',
83
-            render: (_, record) => <span style={{ color: 'blue', cursor: 'pointer' }} onClick={() => toPersonDetail(record.personId)} >{record.name || record.nickname}</span>,
84
+            render: (_, record) => <Navigate onClick={() => toPersonDetail(record.personId)}>{record.name || record.nickname}</Navigate>,
84
         },
85
         },
85
         {
86
         {
86
             title: '电话',
87
             title: '电话',
100
             dataIndex: 'visitTimes',
101
             dataIndex: 'visitTimes',
101
             key: 'visitTimes',
102
             key: 'visitTimes',
102
             align: 'center',
103
             align: 'center',
103
-            render: (_, record) => <span style={{ color: 'blue', cursor: 'pointer' }} onClick={() => toHomepageNum(record.personId)} >{record.visitTimes}</span>,
104
+            render: (_, record) => <Navigate onClick={() => toHomepageNum(record.personId)}>{record.visitTimes}</Navigate>,
104
         },
105
         },
105
         {
106
         {
106
             title: '最后访问时间',
107
             title: '最后访问时间',

+ 2
- 1
src/pages/statistical/consultant/table.jsx Zobrazit soubor

6
 import apis from '../../../services/apis';
6
 import apis from '../../../services/apis';
7
 import request from '../../../utils/request'
7
 import request from '../../../utils/request'
8
 import Prompt from 'umi/prompt';
8
 import Prompt from 'umi/prompt';
9
+import Navigate from '@/components/Navigate';
9
 
10
 
10
 /**
11
 /**
11
   @param {*} props
12
   @param {*} props
96
             dataIndex: 'name',
97
             dataIndex: 'name',
97
             key: 'name',
98
             key: 'name',
98
             align: 'center',
99
             align: 'center',
99
-            render: (_, record) => <span style={{ color: 'blue', cursor: 'pointer' }} onClick={() => toPersonDetail(record.personId)} >{record.name || record.nickname}</span>,
100
+            render: (_, record) => <Navigate onClick={() => toPersonDetail(record.personId)}>{record.name || record.nickname}</Navigate>,
100
         },
101
         },
101
         {
102
         {
102
             title: '电话',
103
             title: '电话',

+ 2
- 1
src/pages/statistical/consultant/visitPersons.jsx Zobrazit soubor

6
 import apis from '../../../services/apis';
6
 import apis from '../../../services/apis';
7
 import request from '../../../utils/request'
7
 import request from '../../../utils/request'
8
 import Prompt from 'umi/prompt';
8
 import Prompt from 'umi/prompt';
9
+import Navigate from '@/components/Navigate';
9
 
10
 
10
 /**
11
 /**
11
   @param {*} props
12
   @param {*} props
94
             dataIndex: 'visitTimes',
95
             dataIndex: 'visitTimes',
95
             key: 'visitTimes',
96
             key: 'visitTimes',
96
             align: 'center',
97
             align: 'center',
97
-            render: (_, record) => <span style={{ color: 'blue', cursor: 'pointer' }} onClick={() => tovisitNum(record.name || record.nickname, record.personId, record.visitTime)} >{record.visitTimes}</span>,
98
+            render: (_, record) => <Navigate onClick={() => tovisitNum(record.name || record.nickname, record.personId, record.visitTime)}>{record.visitTimes}</Navigate>,
98
         },
99
         },
99
         {
100
         {
100
             title: '最后访问时间',
101
             title: '最后访问时间',