Browse Source

修复查询

魏熙美 5 years ago
parent
commit
1b0ad0d253

+ 1
- 1
config/config.js View File

@@ -479,7 +479,7 @@ export default {
479 479
 
480 480
   proxy: {
481 481
     '/api/': {
482
-      target: 'http://192.168.0.172:8080/',
482
+      target: 'http://localhost:8080/',
483 483
       changeOrigin: true,
484 484
       // pathRewrite: { '^/server': '' },
485 485
     },

+ 7
- 7
src/pages/building/list/add/components/base.jsx View File

@@ -11,6 +11,7 @@ import Wangedit from '../../../../../components/Wangedit/Wangedit'
11 11
 import TagGroup from './tags'
12 12
 import Amap from './amap'
13 13
 import BudildingProjectType from './buildingProjectType'
14
+import SelectCity from '../../../../../components/SelectButton/CitySelect'
14 15
 
15 16
 const { Option } = Select
16 17
 const { TabPane } = Tabs;
@@ -116,10 +117,11 @@ function AddBuilding(props) {
116 117
             {getFieldDecorator('dynamic')(<Input />)}
117 118
           </Form.Item>
118 119
           <Form.Item label="物业类型" hasFeedback>
119
-            {getFieldDecorator('buildingProperty')(
120
-              <Select mode="multiple" placeholder="物业类型" style={{ width: '1016px' }}>
121
-                <Option value="未知">未知</Option>
122
-              </Select>,
120
+            {getFieldDecorator('propertyType')(
121
+              // <Select mode="multiple" placeholder="物业类型" style={{ width: '1016px' }}>
122
+              //   <Option value="未知">未知</Option>
123
+              // </Select>,
124
+              <Input />,
123 125
             )}
124 126
           </Form.Item>
125 127
           <Form.Item label="销售状态" hasFeedback>
@@ -163,9 +165,7 @@ function AddBuilding(props) {
163 165
           </Form.Item>
164 166
           <Form.Item label="所在城市" hasFeedback>
165 167
             {getFieldDecorator('cityId')(
166
-              <Select placeholder="选择城市" style={{ width: '200px' }}>
167
-                <Option value="red">Red</Option>
168
-              </Select>,
168
+              <SelectCity />,
169 169
             )}
170 170
           </Form.Item>
171 171
           <Form.Item label="楼盘区域" hasFeedback>

+ 2
- 4
src/pages/building/list/index.jsx View File

@@ -6,6 +6,7 @@ import apis from '../../../services/apis';
6 6
 import Styles from './style.less';
7 7
 import { router } from 'umi';
8 8
 import AuthButton from '@/components/AuthButton';
9
+import SelectCity from '../../../components/SelectButton/CitySelect'
9 10
 
10 11
 
11 12
 const { Option } = Select;
@@ -266,10 +267,7 @@ function body(props) {
266 267
         </Form.Item>
267 268
         <Form.Item>
268 269
           {getFieldDecorator('cityId')(
269
-            <Select style={{ width: '180px' }} placeholder="城市" onChange={handleSelectChange}>
270
-              <Option value="male">male</Option>
271
-              <Option value="female">female</Option>
272
-            </Select>,
270
+             <SelectCity />,
273 271
           )}
274 272
         </Form.Item>
275 273
         <Form.Item>

+ 2
- 3
src/pages/customer/customerlist/index.jsx View File

@@ -9,6 +9,7 @@ import router from 'umi/router';
9 9
 import Attribution from './components/attribution'
10 10
 import IntegralRecord from './components/integralRecord'
11 11
 import ChangeStatus from './components/changeStatus'
12
+import BuildSelect from '../../../components/SelectButton/BuildSelect'
12 13
 
13 14
 
14 15
 const { Option } = Select;
@@ -207,9 +208,7 @@ function body(props) {
207 208
       <Form layout="inline" onSubmit={e => handleSubmit(e, props)}>
208 209
         <Form.Item>
209 210
           {getFieldDecorator('buildingId')(
210
-            <Select style={{ width: '180px' }} placeholder="意向项目" onChange={handleSelectChange}>
211
-              <Option value="male">male</Option>
212
-            </Select>,
211
+            <BuildSelect />,
213 212
           )}
214 213
         </Form.Item>
215 214
         <Form.Item>

+ 2
- 3
src/pages/customer/report/index.jsx View File

@@ -4,6 +4,7 @@ import moment from 'moment';
4 4
 import request from '../../../utils/request';
5 5
 import apis from '../../../services/apis';
6 6
 import Styles from './style.less';
7
+import BuildSelect from '../../../components/SelectButton/BuildSelect'
7 8
 
8 9
 
9 10
 const { Option } = Select;
@@ -148,9 +149,7 @@ function body(props) {
148 149
         </Form.Item>
149 150
         <Form.Item>
150 151
           {getFieldDecorator('buildingId')(
151
-            <Select style={{ width: '180px' }} placeholder="意向项目" onChange={handleSelectChange}>
152
-              <Option value="male">male</Option>
153
-            </Select>,
152
+            <BuildSelect />,
154 153
           )}
155 154
         </Form.Item>
156 155
         <Form.Item>