傅行帆 5 年之前
父節點
當前提交
1fc13df375
共有 2 個檔案被更改,包括 15 行新增8 行删除
  1. 14
    7
      src/pages/house/add/HouseBatchAdd.jsx
  2. 1
    1
      src/pages/house/edit/components/houseAdd.jsx

+ 14
- 7
src/pages/house/add/HouseBatchAdd.jsx 查看文件

@@ -1,5 +1,5 @@
1 1
 import React, { useState, useEffect } from 'react';
2
-import { Form, Input, Button, Icon, Select, Tabs, Radio, DatePicker, message, Upload, Table } from 'antd';
2
+import { Form, Input, Button, Icon, Select, Tabs, Radio, DatePicker, message, Upload, Table, Modal } from 'antd';
3 3
 import { FormattedMessage } from 'umi-plugin-react/locale';
4 4
 import moment from 'moment';
5 5
 import router from 'umi/router';
@@ -76,14 +76,21 @@ function batchSaveHouse() {
76 76
   uploadData.append('buildingId', props.location.query.buildingId)
77 77
 
78 78
   request({ ...apis.house.saveExcelValue, data: uploadData,headers: "content-type=multipart/form-data" }).then(res => {
79
-    message.info('新增房源成功!请确认全部数据正常,然后在房源详情页 销售批次栏 选择 发布状态 为“是” 将房源 发布到小程序。如需要置业顾问或用户分享,请在房源详情中配套海报图和分享图。')
80
-    router.push({
81
-      pathname: '/house/edit',
82
-      query: {
83
-        id: props.location.query.salesBatchId,
84
-        buildingId: props.location.query.buildingId,
79
+    Modal.info({
80
+      title: '新增房源成功',
81
+      content: '请确认全部数据正常,然后在房源详情页 销售批次栏 选择 发布状态 为“是” 将房源 发布到小程序。如需要置业顾问或用户分享,请在房源详情中配套海报图和分享图。',
82
+      okText: '确定',
83
+      onOk() {
84
+        router.push({
85
+          pathname: '/house/edit',
86
+          query: {
87
+            id: props.location.query.salesBatchId,
88
+            buildingId: props.location.query.buildingId,
89
+          },
90
+        });
85 91
       },
86 92
     });
93
+    
87 94
   }).catch(err => {
88 95
     // openNotificationWithIcon('error', err.message)
89 96
   })

+ 1
- 1
src/pages/house/edit/components/houseAdd.jsx 查看文件

@@ -154,7 +154,7 @@ function HouseAdd(props) {
154 154
               pattern: new RegExp('^[0-9]{1,5}([.][0-9]{1,2})?$'),
155 155
             },
156 156
           ],
157
-        })(<div><Input/><span>万元</span></div>)}
157
+        })(<Input/>)}万元
158 158
         </Form.Item>
159 159
         <Form.Item label="预选基础热度">
160 160
         {getFieldDecorator('heat', {