소스 검색

Merge branch 'master' of http://git.ycjcjy.com/zhiyuxing/estateagents-admin-manager

魏熙美 5 년 전
부모
커밋
0489947e07
3개의 변경된 파일13개의 추가작업 그리고 9개의 파일을 삭제
  1. 1
    1
      src/pages/channel/brokerList.jsx
  2. 6
    6
      src/pages/channel/channelList.jsx
  3. 6
    2
      src/pages/channel/editChannel.jsx

+ 1
- 1
src/pages/channel/brokerList.jsx 파일 보기

@@ -54,7 +54,7 @@ const columns = [
54 54
     dataIndex: 'sex',
55 55
     key: 'sex',
56 56
     align: 'center',
57
-    render: (text, list) => <a style={ { color: '#66B3FF' } } >{ list.sex === 1 ? '男' : '女' }</a>,
57
+    render: (text, list) => <a>{ list.sex === 1 ? '男' : '女' }</a>,
58 58
   },
59 59
   {
60 60
     title: '推荐客户',

+ 6
- 6
src/pages/channel/channelList.jsx 파일 보기

@@ -59,20 +59,20 @@ const columns = [
59 59
   },
60 60
   {
61 61
     title: '经纪人数',
62
-    dataIndex: 'agentsNum',
63
-    key: 'agentsNum',
62
+    dataIndex: 'brokerCount',
63
+    key: 'brokerCount',
64 64
     align: 'center',
65 65
   },
66 66
   {
67 67
     title: '推荐客户有效',
68
-    dataIndex: 'recommendEffective',
69
-    key: 'recommendEffective',
68
+    dataIndex: 'recommendCount',
69
+    key: 'recommendCount',
70 70
     align: 'center',
71 71
   },
72 72
   {
73 73
     title: '邀请经济人',
74
-    dataIndex: 'agentsInvite',
75
-    key: 'agentsInvite',
74
+    dataIndex: 'inviteCount',
75
+    key: 'inviteCount',
76 76
     align: 'center',
77 77
   },
78 78
   {

+ 6
- 2
src/pages/channel/editChannel.jsx 파일 보기

@@ -27,7 +27,6 @@ const header = props => {
27 27
 
28 28
   // 编辑
29 29
   function editChannel(data) {
30
-    alert(1111111)
31 30
       request({
32 31
         url: `/api/admin/channel/${props.location.query.id}`,
33 32
         method: 'PUT',
@@ -48,6 +47,11 @@ const header = props => {
48 47
       }
49 48
     });
50 49
   }
50
+  function go() {
51
+    router.push({
52
+      pathname: '/channel/channelList',
53
+    });
54
+  }
51 55
 
52 56
   const { getFieldDecorator } = props.form;
53 57
 
@@ -77,7 +81,7 @@ const header = props => {
77 81
           <Button type="primary" htmlType="submit">
78 82
             保存
79 83
           </Button>
80
-          <Button className={channels.formButton} onClick = {() => router.go(-1)} type="primary" htmlType="submit">
84
+          <Button className={channels.formButton} onClick = { go } type="primary" htmlType="submit">
81 85
             取消
82 86
           </Button>
83 87
         </Form.Item>