顾绍勇 5 年 前
コミット
fc785fd26f

+ 2
- 1
src/pages/carouselFigure/advertisingList.jsx ファイルの表示

@@ -5,6 +5,7 @@ import moment from 'moment';
5 5
 import AuthButton from '@/components/AuthButton';
6 6
 import withActions from '@/components/ActionList';
7 7
 import EditIcon from '@/components/EditIcon';
8
+import Navigate from '@/components/Navigate';
8 9
 import SelectCity from '../../components/SelectButton/CitySelect'
9 10
 import BuildSelect from '../../components/SelectButton/BuildSelect'
10 11
 import apis from '../../services/apis';
@@ -47,7 +48,7 @@ const header = (props) => {
47 48
       dataIndex: 'image',
48 49
       key: 'image',
49 50
       align: 'center',
50
-      render: (image,row) => <img onClick={toEdit(row.contentId)} src={image} className={styles.imgSmall} />,
51
+      render: (image,row) => <Navigate onClick={toEdit(row.contentId)}><img src={image} className={styles.imgSmall} /></Navigate>,
51 52
     },
52 53
     {
53 54
       title: '发布城市',

+ 2
- 1
src/pages/carouselFigure/carouselFigureList.jsx ファイルの表示

@@ -5,6 +5,7 @@ import moment from 'moment';
5 5
 import AuthButton from '@/components/AuthButton';
6 6
 import withActions from '@/components/ActionList';
7 7
 import EditIcon from '@/components/EditIcon';
8
+import Navigate from '@/components/Navigate';
8 9
 import SelectCity from '../../components/SelectButton/CitySelect'
9 10
 import BuildSelect from '../../components/SelectButton/BuildSelect'
10 11
 import apis from '../../services/apis';
@@ -47,7 +48,7 @@ const header = (props) => {
47 48
       dataIndex: 'image',
48 49
       key: 'image',
49 50
       align: 'center',
50
-      render: (x, row) => <img onClick={toEditCarouse(row.contentId)} src={row.image} className={row.showPosition === 'index' ? styles.imgIndex : row.showPosition === 'mall' ? styles.imgPerfect : ''} />,
51
+      render: (x, row) => <Navigate onClick={toEditCarouse(row.contentId)} ><img src={row.image} className={row.showPosition === 'index' ? styles.imgIndex : row.showPosition === 'mall' ? styles.imgPerfect : ''} /></Navigate>,
51 52
     },
52 53
     {
53 54
       title: '发布城市',

+ 3
- 2
src/pages/carouselFigure/customImg/list.jsx ファイルの表示

@@ -1,9 +1,10 @@
1 1
 import React, { useState, useEffect } from 'react';
2 2
 import { Form, Table } from 'antd';
3
+import router from 'umi/router';
3 4
 import AuthButton from '@/components/AuthButton';
4 5
 import withActions from '@/components/ActionList';
5 6
 import EditIcon from '@/components/EditIcon';
6
-import router from 'umi/router';
7
+import Navigate from '@/components/Navigate';
7 8
 import apis from '../../../services/apis';
8 9
 import request from '../../../utils/request'
9 10
 
@@ -52,7 +53,7 @@ function header(props) {
52 53
       <Table dataSource={data}>
53 54
         <Column title="图片" dataIndex="imgUrl" key="imgUrl"
54 55
           render={(text, record) => (
55
-            <img onClick={toEditCustom(record.imgId, record.imgType)} src={record.imgUrl} height="120px" width="150px" style={{ objectFit: 'contain' }} />
56
+            <Navigate onClick={toEditCustom(record.imgId, record.imgType)} ><img src={record.imgUrl} height="120px" width="150px" style={{ objectFit: 'contain' }} /></Navigate>
56 57
           )} />
57 58
         <Column title="类型" dataIndex="imgType" key="imgType"
58 59
           render={(text, record) => (

+ 2
- 1
src/pages/carouselFigure/propagandaList.jsx ファイルの表示

@@ -5,6 +5,7 @@ import moment from 'moment';
5 5
 import AuthButton from '@/components/AuthButton';
6 6
 import EditIcon from '@/components/EditIcon';
7 7
 import withActions from '@/components/ActionList';
8
+import Navigate from '@/components/Navigate';
8 9
 import SelectCity from '../../components/SelectButton/CitySelect'
9 10
 import BuildSelect from '../../components/SelectButton/BuildSelect'
10 11
 import apis from '../../services/apis';
@@ -47,7 +48,7 @@ const header = (props) => {
47 48
       dataIndex: 'image',
48 49
       key: 'image',
49 50
       align: 'center',
50
-      render: (image,row) => <img onClick={toEdit(row.contentId)} src={image} className={styles.propaganda} />,
51
+      render: (image,row) => <Navigate onClick={toEdit(row.contentId)} ><img src={image} className={styles.propaganda} /></Navigate>,
51 52
     },
52 53
     {
53 54
       title: '发布城市',

+ 2
- 3
src/pages/system/housingPolicy.jsx ファイルの表示

@@ -6,12 +6,11 @@ import moment from 'moment';
6 6
 import AuthButton from '@/components/AuthButton';
7 7
 import withActions from '@/components/ActionList';
8 8
 import EditIcon from '@/components/EditIcon';
9
+import Navigate from '@/components/Navigate';
9 10
 import SelectCity from '../../components/SelectButton/CitySelect';
10 11
 import apis from '../../services/apis';
11 12
 import request from '../../utils/request';
12 13
 import styles from '../style/GoodsList.less';
13
-import Navigate from '@/components/Navigate';
14
-
15 14
 
16 15
 const { Option } = Select;
17 16
 const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
@@ -53,7 +52,7 @@ const header = (props) => {
53 52
       dataIndex: 'policyImg',
54 53
       key: 'policyImg',
55 54
       align: 'center',
56
-      render: (policyImg,row) => <img onClick={toEditPolicy(row.policyId)} src={policyImg} className={styles.touxiang} />,
55
+      render: (policyImg,row) =><Navigate onClick={toEditPolicy(row.policyId)} ><img src={policyImg} className={styles.touxiang} /></Navigate> ,
57 56
     },
58 57
     {
59 58
       title: '标题',