魏熙美 5 år sedan
förälder
incheckning
695547497d

+ 1
- 1
src/pages/building/list/add/components/base.jsx Visa fil

@@ -188,7 +188,7 @@ function AddBuilding(props) {
188 188
               <TagGroup />,
189 189
             )}
190 190
           </Form.Item>
191
-          <Form.Item label="周边交通" hasFeedback>
191
+          <Form.Item label="周边商业" hasFeedback>
192 192
             {getFieldDecorator('buildingMall')(
193 193
               <TagGroup />,
194 194
             )}

+ 11
- 0
src/pages/building/list/index.jsx Visa fil

@@ -228,6 +228,14 @@ function body(props) {
228 228
     router.push({ pathname: '/building/list/add' })
229 229
   }
230 230
 
231
+  /**
232
+   * 重置搜索
233
+   */
234
+  function handleReset() {
235
+    props.form.resetFields();
236
+  }
237
+
238
+
231 239
   return (
232 240
     <>
233 241
       <Form layout="inline" onSubmit={e => handleSubmit(e, props)}>
@@ -285,6 +293,9 @@ function body(props) {
285 293
             <Button type="primary" htmlType="submit">
286 294
               搜索
287 295
             </Button>
296
+            <Button style={{ marginLeft: 8 }} onClick={handleReset}>
297
+              重置
298
+            </Button>
288 299
         </Form.Item>
289 300
       </Form>
290 301
 

+ 11
- 17
src/pages/building/type/index.jsx Visa fil

@@ -6,6 +6,7 @@ import Styles from './style.less'
6 6
 import request from '../../../utils/request';
7 7
 import apis from '../../../services/apis';
8 8
 import AuthButton from '@/components/AuthButton';
9
+import { debuglog } from 'util';
9 10
 
10 11
 function body() {
11 12
   // eslint-disable-next-line react-hooks/rules-of-hooks
@@ -51,22 +52,6 @@ function body() {
51 52
     getList({ pageNum: 1, pageSize: 10 })
52 53
   }, [])
53 54
 
54
-  function getList(params) {
55
-    request({ ...apis.buildingType.getList, params: { ...params } }).then(res => {
56
-      setData(res)
57
-    }).catch(err => {
58
-      // eslint-disable-next-line no-unused-expressions
59
-      <Alert
60
-        style={{
61
-          marginBottom: 24,
62
-        }}
63
-        message={err}
64
-        type="error"
65
-        showIcon
66
-      />
67
-    })
68
-  }
69
-
70 55
   const openNotificationWithIcon = (type, message) => {
71 56
     notification[type]({
72 57
       message,
@@ -75,6 +60,15 @@ function body() {
75 60
     });
76 61
   }
77 62
 
63
+  function getList(params) {
64
+    request({ ...apis.buildingType.getList, params: { ...params } }).then(res => {
65
+      setData(res)
66
+    }).catch(err => {
67
+      // eslint-disable-next-line no-unused-expressions
68
+      openNotificationWithIcon('error', err)
69
+    })
70
+  }
71
+
78 72
   // 分页
79 73
   function onChange(pageNumber) {
80 74
     // eslint-disable-next-line no-console
@@ -90,7 +84,7 @@ function body() {
90 84
     }).then(() => {
91 85
       openNotificationWithIcon('success', '操作成功')
92 86
     }).catch(err => {
93
-      openNotificationWithIcon('error', err)
87
+      //openNotificationWithIcon('error', err.message)
94 88
     })
95 89
   }
96 90
 

+ 2
- 2
src/pages/customer/report/index.jsx Visa fil

@@ -152,12 +152,12 @@ function body(props) {
152 152
         </Form.Item>
153 153
         <Form.Item>
154 154
           {getFieldDecorator('consultName')(
155
-            <Input placeholder="推荐人" />,
155
+            <Input placeholder="置业顾问" />,
156 156
           )}
157 157
         </Form.Item>
158 158
         <Form.Item>
159 159
           {getFieldDecorator('consultTel')(
160
-            <Input placeholder="推荐电话" />,
160
+            <Input placeholder="置业顾问电话" />,
161 161
           )}
162 162
         </Form.Item>
163 163
         <Form.Item>