顾绍勇 5 лет назад
Родитель
Сommit
1212ea8a99
2 измененных файлов: 11 добавлений и 6 удалений
  1. 5
    3
      src/pages/eContract/template/list.jsx
  2. 6
    3
      src/pages/h5SampleManager/h5Demand/list.jsx

+ 5
- 3
src/pages/eContract/template/list.jsx Просмотреть файл

@@ -9,6 +9,8 @@ import BuildSelect from '../../../components/SelectButton/BuildSelect'
9 9
 import apis from '../../../services/apis';
10 10
 import request from '../../../utils/request';
11 11
 import AuthButton from '@/components/AuthButton';
12
+import withActions from '@/components/ActionList';
13
+import EditIcon from '@/components/EditIcon';
12 14
 // import RaiseHelpDoc from '../edit/components/RaiseHelpDoc';
13 15
 
14 16
 const { Option } = Select;
@@ -105,11 +107,11 @@ const header = props => {
105 107
       dataIndex: '',
106 108
       key: '',
107 109
       align: 'center',
108
-      render: (text, record) => (
110
+      render: withActions((text, record) => [(
109 111
           <AuthButton name="admin.eContractTemplate.detail.get" noRight={null}>
110
-            <a style={{ color: '#66B3FF' }} onClick={toDetail(record)} >查看详情</a>
112
+            <EditIcon type="look" text="查看详情" onClick={toDetail(record)}></EditIcon>
111 113
           </AuthButton>
112
-      ),
114
+      ),])
113 115
     },
114 116
   ];
115 117
   const getSignList = dynamicId => {

+ 6
- 3
src/pages/h5SampleManager/h5Demand/list.jsx Просмотреть файл

@@ -1,9 +1,9 @@
1 1
 import React, { useState, useEffect } from 'react';
2 2
 import { Form, Input, Button, Icon, Select, message, Table, Divider, Tag, Pagination, Modal, DatePicker } from 'antd';
3 3
 import { FormattedMessage } from 'umi-plugin-react/locale';
4
-import styles from '../../style/GoodsList.less';
5 4
 import router from 'umi/router';
6 5
 import moment from 'moment';
6
+import styles from '../../style/GoodsList.less';
7 7
 import SelectCity from '../../../components/SelectButton/CitySelect'
8 8
 import BuildSelect from '../../../components/SelectButton/BuildSelect'
9 9
 import apis from '../../../services/apis';
@@ -11,6 +11,8 @@ import request from '../../../utils/request';
11 11
 import BatchDel from './components/BatchDel';
12 12
 import AddDemand from './components/AddDemand';
13 13
 import AuthButton from '@/components/AuthButton';
14
+import withActions from '@/components/ActionList';
15
+import EditIcon from '@/components/EditIcon';
14 16
 
15 17
 const { Option } = Select;
16 18
 const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
@@ -106,10 +108,11 @@ const header = props => {
106 108
       dataIndex: 'handle',
107 109
       key: 'handle',
108 110
       align: 'center',
109
-      render: (text, record) => (
111
+      render: withActions((text, record) =>[ (
110 112
         <AuthButton name="admin.h5Demand.detail.get" noRight={null}>
111
-          <a style={{ color: '#66B3FF' }} onClick={toDetail(record)} >查看详情</a>
113
+          <EditIcon type="look" text="查看详情" onClick={toDetail(record)}></EditIcon>
112 114
         </AuthButton>
115
+      )]
113 116
       ),
114 117
     },
115 118
   ];