顾绍勇 5 年 前
コミット
1fc08f4217

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

@@ -47,7 +47,7 @@ const header = (props) => {
47 47
       dataIndex: 'image',
48 48
       key: 'image',
49 49
       align: 'center',
50
-      render: (image) => <img src={image} className={styles.imgSmall} />,
50
+      render: (image,row) => <img onClick={toEdit(row.contentId)} src={image} className={styles.imgSmall} />,
51 51
     },
52 52
     {
53 53
       title: '发布城市',

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

@@ -47,7 +47,7 @@ const header = (props) => {
47 47
       dataIndex: 'image',
48 48
       key: 'image',
49 49
       align: 'center',
50
-      render: (x, row) => <img src={row.image} className={row.showPosition === 'index' ? styles.imgIndex : row.showPosition === 'mall' ? styles.imgPerfect : ''} />,
50
+      render: (x, row) => <img onClick={toEditCarouse(row.contentId)} src={row.image} className={row.showPosition === 'index' ? styles.imgIndex : row.showPosition === 'mall' ? styles.imgPerfect : ''} />,
51 51
     },
52 52
     {
53 53
       title: '发布城市',
@@ -98,7 +98,7 @@ const header = (props) => {
98 98
       align: 'center',
99 99
       render: withActions((x, row) => [
100 100
         <AuthButton name="admin.extendContent.publish" noRight={null}>
101
-          <EditIcon type={row.status === 1 ? 'cancel' : 'publish'} text={row.status === 1 ? '下架' : '上架'} onClick={changeStatus(row)} />
101
+          <EditIcon type={row.status === 1 ? 'down' : 'up'} text={row.status === 1 ? '下架' : '上架'} onClick={changeStatus(row)} />
102 102
         </AuthButton>,
103 103
 
104 104
         <AuthButton name="admin.extendContent.id.put" noRight={null}>

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

@@ -52,7 +52,7 @@ function header(props) {
52 52
       <Table dataSource={data}>
53 53
         <Column title="图片" dataIndex="imgUrl" key="imgUrl"
54 54
           render={(text, record) => (
55
-            <img src={record.imgUrl} height="120px" width="150px" style={{ objectFit: 'contain' }} />
55
+            <img onClick={toEditCustom(record.imgId, record.imgType)} src={record.imgUrl} height="120px" width="150px" style={{ objectFit: 'contain' }} />
56 56
           )} />
57 57
         <Column title="类型" dataIndex="imgType" key="imgType"
58 58
           render={(text, record) => (

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

@@ -47,7 +47,7 @@ const header = (props) => {
47 47
       dataIndex: 'image',
48 48
       key: 'image',
49 49
       align: 'center',
50
-      render: (image) => <img src={image} className={styles.propaganda} />,
50
+      render: (image,row) => <img onClick={toEdit(row.contentId)} src={image} className={styles.propaganda} />,
51 51
     },
52 52
     {
53 53
       title: '发布城市',

+ 3
- 0
src/pages/system/document/list.jsx ファイルの表示

@@ -5,6 +5,8 @@ import apis from '../../../services/apis';
5 5
 import { router } from 'umi';
6 6
 import moment from 'moment';
7 7
 import AuthButton from '../../../components/AuthButton';
8
+import Navigate from '@/components/Navigate';
9
+
8 10
 
9 11
 function body(props) {
10 12
   // eslint-disable-next-line react-hooks/rules-of-hooks
@@ -73,6 +75,7 @@ function body(props) {
73 75
       dataIndex: 'name',
74 76
       key: 'name',
75 77
       align: 'center',
78
+      render: (text, record) => <Navigate to={`/system/document/audit?id=${record.personId}`}>{text}</Navigate>
76 79
     },
77 80
     {
78 81
       title: '手机号',

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

@@ -53,7 +53,7 @@ const header = (props) => {
53 53
       dataIndex: 'policyImg',
54 54
       key: 'policyImg',
55 55
       align: 'center',
56
-      render: (policyImg) => <img src={policyImg} className={styles.touxiang} />,
56
+      render: (policyImg,row) => <img onClick={toEditPolicy(row.policyId)} src={policyImg} className={styles.touxiang} />,
57 57
     },
58 58
     {
59 59
       title: '标题',