weichaochao 5 yıl önce
ebeveyn
işleme
86535f8161

+ 1
- 1
config/routes.js Dosyayı Görüntüle

@@ -465,7 +465,7 @@ export default [
465 465
               },
466 466
               {
467 467
                 path: '/system/housingPolicy',
468
-                name: '购房政策',
468
+                name: '购房须知',
469 469
                 component: './system/housingPolicy',
470 470
               },
471 471
               {

+ 8
- 5
src/pages/house/edit/components/preselectionRecord.jsx Dosyayı Görüntüle

@@ -50,10 +50,9 @@ function PreselectionRecord(props) {
50 50
       getList({ pageNumber: 1, pageSize: 10 })
51 51
     }
52 52
 
53
-      // 分页
54
-  function changePageNum(pageNumber) {
55
-    // eslint-disable-next-line react-hooks/rules-of-hooks
56
-    getList({ pageNumber: pageNumber, pageSize: 10})
53
+  // 分页
54
+  const changePageNum = (pageNumber) => {
55
+    getList({ pageNum: pageNumber, pageSize: 10, salesBatchId : salesBatchId, ...props.form.getFieldsValue() })
57 56
   }
58 57
 
59 58
   const rowSelection = {
@@ -189,7 +188,11 @@ function PreselectionRecord(props) {
189 188
             </Button>
190 189
         </Form.Item>
191 190
       </Form>
192
-      <Table rowSelection={rowSelection} dataSource={data.records} columns={columns} pagination={{ total: data.total, onChange: e => this.changePageNum(e) }} rowKey="House" />
191
+      {/* <Table rowSelection={rowSelection} dataSource={data.records} columns={columns} pagination={{ total: data.total, onChange: e => this.changePageNum(e) }} rowKey="House" /> */}
192
+      <Table rowSelection={rowSelection} dataSource={data.records} columns={columns} pagination={false} rowKey="carouseFigureList"/>
193
+      <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
194
+        <Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={changePageNum} current={data.current}/>
195
+      </div>      
193 196
     </>
194 197
   )
195 198
 }

+ 2
- 2
src/pages/house/edit/components/visitRecord.jsx Dosyayı Görüntüle

@@ -85,7 +85,7 @@ const header = (props) => {
85 85
   ];
86 86
   
87 87
   const changePageNum = (pageNumber) => {
88
-      getList({ pageNum: pageNumber, pageSize: 10, salesBatchId : props.salesBatchId, ...props.form.getFieldsValue() })
88
+      getList({ pageNum: pageNumber, pageSize: 10, salesBatchId : salesBatchId, ...props.form.getFieldsValue() })
89 89
   }
90 90
 
91 91
   // 提交事件
@@ -113,7 +113,7 @@ const handleSubmit = (e, props) => {
113 113
           {getFieldDecorator('sceneType')(
114 114
             <Select style={{ width: '180px' }} placeholder="进入场景">
115 115
               <Option value="mini_program_code">扫码进入</Option>
116
-              <Option value="buddy_share">小程序分享进入</Option>
116
+              <Option value="share">小程序分享进入</Option>
117 117
               <Option value="search">自主进入</Option>
118 118
             </Select>,
119 119
           )}

+ 1
- 0
src/pages/record/share/clickCountList.jsx Dosyayı Görüntüle

@@ -117,6 +117,7 @@ function record(props) {
117 117
                     <Option value="h5_share">H5活动</Option>
118 118
                     <Option value="building_share">项目</Option>
119 119
                     <Option value="news_share">资讯</Option>
120
+                    <Option value="house_share">房源</Option>
120 121
                     <Option value="card_share">名片</Option>
121 122
                 </Select>,
122 123
                 )}

+ 8
- 8
src/pages/system/editPolicy.jsx Dosyayı Görüntüle

@@ -54,39 +54,39 @@ const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
54 54
         ],
55 55
       },
56 56
       {
57
-        label: '购房政策封面图',
57
+        label: '购房须知封面图',
58 58
         name: 'policyImg',
59 59
         type: FieldTypes.ImageUploader,
60 60
         value: policyData.policyImg,
61
-        help: '建议图片尺寸:220*176px,比例5:4,格式:jpg,用于购房百科列表',
61
+        help: '建议图片尺寸:220*176px,比例5:4,格式:jpg,用于购房须知列表',
62 62
         rules: [
63 63
           {
64 64
             required: true,
65
-            message: '请选择购房政策封面图',
65
+            message: '请选择购房须知封面图',
66 66
           },
67 67
         ],
68 68
       },
69 69
       {
70
-        label: '政策标题',
70
+        label: '购房须知标题',
71 71
         name: 'title',
72 72
         type: FieldTypes.Text,
73 73
         value: policyData.title,
74 74
         rules: [
75 75
           {
76 76
             required: true,
77
-            message: '请输入政策标题',
77
+            message: '请输入购房须知标题',
78 78
           },
79 79
         ],
80 80
       },
81 81
       {
82
-        label: '政策详情',
82
+        label: '购房须知详情',
83 83
         name: 'body',
84 84
         render: <Wangedit />,
85 85
         value: policyData.body,
86 86
         rules: [
87 87
           {
88 88
             required: true,
89
-            message: '请输入政策详情',
89
+            message: '请输入购房须知详情',
90 90
           },
91 91
         ],
92 92
       },
@@ -103,7 +103,7 @@ const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
103 103
       console.log('submit data --->', val)
104 104
       console.log(val.body, 'val.body')
105 105
       if (val.body == '<p><br></p>'){
106
-        message.info("政策详情必填")
106
+        message.info("购房须知详情必填")
107 107
         return
108 108
       }
109 109