dingxin 5 anos atrás
pai
commit
fb23bc4342

+ 5
- 2
src/global.less Ver arquivo

@@ -98,6 +98,9 @@ ol {
98 98
   background: #FF7E48;
99 99
   border-color: #FF7E48;
100 100
 }
101
+.ant-radio-button-wrapper:not(:first-child)::before{
102
+  background: #FF7E48;
103
+}
101 104
 .ant-row.ant-form-item .ant-form-item-label.ant-col-sm-3{
102 105
   min-width: 100px;
103 106
 }
@@ -105,8 +108,8 @@ ol {
105 108
   padding: 0;
106 109
 }
107 110
 .antd-pro-pages-index-echarts-styles-pie,.antd-pro-pages-index-echarts-styles-bar{
108
-  padding: 0.1rem;
109
-  margin-bottom: 25px;
111
+  padding: 40px;
112
+  margin-bottom: 40px;
110 113
 }
111 114
 .ant-breadcrumb{
112 115
   font-size: 0.1rem;

+ 15
- 30
src/pages/Welcome.jsx Ver arquivo

@@ -1,44 +1,32 @@
1
-import React, { useEffect, useState } from 'react';
1
+import React, { Component, useState, useEffect } from 'react';
2 2
 import { Card, Typography, Alert, Row, Col } from 'antd';
3 3
 import { FormattedMessage } from 'umi-plugin-react/locale';
4 4
 import EchartsTest from '../components/EchartsTest';
5 5
 import IndexEcharts from './indexEcharts/index';
6 6
 import router from 'umi/router';
7
+import request from '../utils/request';
7 8
 import apis from '../services/apis';
8
-import request from '../utils/request'
9
-const Welcome = (props) => {
10 9
 
11
-  const option = {
12
-    xAxis: {
13
-      type: 'category',
14
-      data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
15
-    },
16
-    yAxis: {
17
-      type: 'value'
18
-    },
19
-    series: [{
20
-      data: [820, 932, 901, 934, 1290, 1330, 1320],
21
-      type: 'line'
22
-    }]
23
-  };
10
+const welcome = (props) => {
11
+
12
+  const [data, setData] = useState([])
13
+
24 14
   useEffect(() => {
25
-    echratsInfo();
15
+    getIndexEcharts()
26 16
   }, [])
27
-  const [data, setData] = useState({ records: [] })
28
-  function echratsInfo(params) {
17
+
18
+  function getIndexEcharts(params) {
29 19
     request({
30 20
       ...apis.indexEcharts.list,
31
-      params,
21
+      params
32 22
     }).then((data) => {
33 23
       setData(data)
34
-      console.log(data, "666666666666666666666666666666")
35
-
24
+      console.log(data, '11111')
36 25
     })
37 26
   }
38
-
39 27
   return (
40 28
     <>
41
-      <div style={{ display: 'flex', marginBottom: '28px' }}>
29
+      <div style={{ display: 'flex', marginBottom: '33px' }}>
42 30
         <div style={{
43 31
           textAlign: 'center', display: 'flex', justifyContent: 'center', lineHeight: '100px', background: 'linear-gradient(144deg,rgba(241,43,62,1) 0%,rgba(254,144,155,1) 100%)', height: '100px',
44 32
           boxShadow: '0px  0.11rem 14px -15px rgba(241,43,62,1)',
@@ -64,13 +52,10 @@ const Welcome = (props) => {
64 52
           <span style={{ fontSize: '52px', color: '#fff', marginLeft: '26px', fontFamily: 'fantasy', lineHeight: '100px' }}>{data.selectRecentlyCount || '0'}</span>
65 53
         </div>
66 54
       </div>
67
-      <IndexEcharts style={{ width: '100%' }}></IndexEcharts>
68
-
69
-      {/* <EchartsTest style={{ width: 500, height: 500 }}></EchartsTest> */}
70
-
55
+      <IndexEcharts style={{ width: '100%' }} onReData={(e) => redata(e)} ></IndexEcharts>
71 56
     </>
72 57
   )
73
-}
74
-export default Welcome;
75 58
 
59
+}
60
+export default welcome
76 61
 

+ 9
- 0
src/pages/activity/ActivityList.jsx Ver arquivo

@@ -202,6 +202,12 @@ const handleSubmit = (e, props) => {
202 202
     });
203 203
   }
204 204
 
205
+   //重置搜索
206
+   function handleReset() {
207
+    props.form.resetFields();
208
+  }
209
+
210
+
205 211
   const { getFieldDecorator } = props.form
206 212
   return (
207 213
 
@@ -242,6 +248,9 @@ const handleSubmit = (e, props) => {
242 248
           <Button type="primary" htmlType="submit" className={styles.searchBtn}>
243 249
             搜索
244 250
           </Button>
251
+          <Button style={{ marginLeft: 8 }} onClick={handleReset}>
252
+              重置
253
+            </Button>
245 254
         </Form.Item>
246 255
       </Form>
247 256
       <AuthButton name="admin.buildingDynamic.add.post" noRight={null}>

+ 1
- 1
src/pages/building/list/add/components/base.jsx Ver arquivo

@@ -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
             )}

+ 2
- 2
src/pages/building/list/add/components/modalImage.jsx Ver arquivo

@@ -165,14 +165,14 @@ class ModalImage extends React.Component {
165 165
               <Form.Item label="名称">
166 166
                 {getFieldDecorator('apartmentName')(<Input />)}
167 167
               </Form.Item>
168
-              {/* <Form.Item label="类型">
168
+              <Form.Item label="类型">
169 169
                 {getFieldDecorator('apartmentType')(
170 170
                   <Select placeholder="类型">
171 171
                     <Option value="apart">户型</Option>
172 172
                     <Option value="photo">相册</Option>
173 173
                   </Select>,
174 174
                 )}
175
-              </Form.Item> */}
175
+              </Form.Item>
176 176
               <Form.Item label="销售状态">
177 177
                 {getFieldDecorator('marketStatus')(
178 178
                   <Select placeholder="销售状态">

+ 11
- 0
src/pages/building/list/index.jsx Ver arquivo

@@ -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 Ver arquivo

@@ -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
 

+ 9
- 0
src/pages/carouselFigure/advertisingList.jsx Ver arquivo

@@ -164,6 +164,12 @@ const handleSubmit = (e, props) => {
164 164
     });
165 165
   }
166 166
 
167
+   //重置搜索
168
+   function handleReset() {
169
+    props.form.resetFields();
170
+  }
171
+
172
+
167 173
   const { getFieldDecorator } = props.form
168 174
   return (
169 175
 
@@ -204,6 +210,9 @@ const handleSubmit = (e, props) => {
204 210
           <Button type="primary" htmlType="submit" className={styles.searchBtn}>
205 211
             搜索
206 212
           </Button>
213
+          <Button style={{ marginLeft: 8 }} onClick={handleReset}>
214
+              重置
215
+            </Button>
207 216
         </Form.Item>
208 217
       </Form>
209 218
       <AuthButton name="admin.extendContent.post" noRight={null}>

+ 8
- 0
src/pages/carouselFigure/carouselFigureList.jsx Ver arquivo

@@ -164,6 +164,11 @@ const handleSubmit = (e, props) => {
164 164
     });
165 165
   }
166 166
 
167
+   //重置搜索
168
+   function handleReset() {
169
+    props.form.resetFields();
170
+  }
171
+
167 172
   const { getFieldDecorator } = props.form
168 173
   return (
169 174
 
@@ -204,6 +209,9 @@ const handleSubmit = (e, props) => {
204 209
           <Button type="primary" htmlType="submit" className={styles.searchBtn}>
205 210
             搜索
206 211
           </Button>
212
+          <Button style={{ marginLeft: 8 }} onClick={handleReset}>
213
+              重置
214
+            </Button>
207 215
         </Form.Item>
208 216
       </Form>
209 217
       <AuthButton name="admin.extendContent.post" noRight={null}>

+ 3
- 3
src/pages/charts/CityNums.jsx Ver arquivo

@@ -6,8 +6,8 @@ const geoOptions = {
6 6
   backgroundColor: '#fff',
7 7
   title: {
8 8
     text: '城市分布',
9
-    left: 20,
10
-    top: 20
9
+    left: 40,
10
+    top: 40
11 11
   },
12 12
   tooltip : {
13 13
       trigger: 'item',
@@ -128,7 +128,7 @@ const CityNums = (props) => {
128 128
   }
129 129
 
130 130
   return (
131
-    <div style={{ margin: ' 0 0 20px  0', width: '100%', borderRadius: '8px', boxShadow: '0px 0px 9px 1px rgba(0,0,0,0.12)', overflow: 'hidden' }}>
131
+    <div style={{ marginBottom:'40px', width: '100%', borderRadius: '12px', boxShadow: '0px 0px 9px 1px rgba(0,0,0,0.12)', overflow: 'hidden' }}>
132 132
       <Echart options={options} style={{ width: '100%', height: '600px' }} ></Echart>
133 133
     </div>
134 134
   )

+ 8
- 0
src/pages/customer/customerlist/index.jsx Ver arquivo

@@ -110,6 +110,11 @@ function body(props) {
110 110
     getList({ pageNumber: 1, pageSize: 10, customerType: value })
111 111
   }
112 112
 
113
+  function handleReset() {
114
+    props.form.resetFields();
115
+  }
116
+
117
+
113 118
   // 这里有个 Bug, 就是 Modal 弹框,会联动出现, 比如 我点击 调整归属的Model弹框, 那么 积分记录的Model弹框莫名其妙的也显示了
114 119
   // 所有这里临时解决方法是,弹出一个Modal对话框的时候,把其他的对话框给隐藏
115 120
 
@@ -257,6 +262,9 @@ function body(props) {
257 262
             <Button type="primary" htmlType="submit" >
258 263
               查询
259 264
             </Button>
265
+            <Button style={{ marginLeft: 8 }} onClick={handleReset}>
266
+              重置
267
+            </Button>
260 268
         </Form.Item>
261 269
       </Form>
262 270
 

+ 90
- 80
src/pages/customer/independentList/index.jsx Ver arquivo

@@ -18,17 +18,17 @@ class ModalTable extends React.Component {
18 18
   constructor(props) {
19 19
     super(props);
20 20
     this.state = {
21
-       dataSource: { records: [] },
22
-       visibleData: { visible: false, customerId: '', realtyConsultant: '' },
21
+      dataSource: { records: [] },
22
+      visibleData: { visible: false, customerId: '', realtyConsultant: '' },
23 23
     }
24 24
   }
25 25
 
26 26
   // 挂载之后
27
-  componentDidMount() {
27
+  componentDidMount () {
28 28
     this.getList({ pageNumber: 1, pageSize: 5 })
29 29
   }
30 30
 
31
-  componentDidUpdate(preProps, preState) {
31
+  componentDidUpdate (preProps, preState) {
32 32
     if (this.props.visibleData.customerId !== preState.visibleData.customerId) {
33 33
       this.getList({ pageNumber: 1, pageSize: 5 })
34 34
       this.setState({ visibleData: this.props.visibleData });
@@ -37,16 +37,16 @@ class ModalTable extends React.Component {
37 37
 
38 38
   // 弹框确定按钮
39 39
   // eslint-disable-next-line react/sort-comp
40
-  handleOk() {
40
+  handleOk () {
41 41
     this.setState({ visibleData: { visible: false, customerId: '', realtyConsultant: '' } })
42 42
   }
43 43
 
44 44
   // 弹框取消按钮
45
-  handleCancel() {
45
+  handleCancel () {
46 46
     this.setState({ visibleData: { visible: false, customerId: '', realtyConsultant: '' } })
47 47
   }
48 48
 
49
-  getList(params) {
49
+  getList (params) {
50 50
     console.log('this.state.visibleData', this.state.visibleData)
51 51
     const { customerId } = this.state.visibleData
52 52
     if (customerId === '' || customerId === undefined) {
@@ -69,17 +69,17 @@ class ModalTable extends React.Component {
69 69
     })
70 70
   }
71 71
 
72
-   // 分页
73
-  onChange(pageNum) {
72
+  // 分页
73
+  onChange (pageNum) {
74 74
     this.getList({ pageNumber: pageNum, pageSize: 5 })
75 75
   }
76 76
 
77
-  render() {
77
+  render () {
78 78
     const columns = [
79 79
       {
80 80
         title: '头像',
81 81
         // eslint-disable-next-line jsx-a11y/alt-text
82
-        render: (text, records) => <img src={records.picture } width={50} height={50} />,
82
+        render: (text, records) => <img src={records.picture} width={50} height={50} />,
83 83
       },
84 84
       {
85 85
         title: '用户名',
@@ -95,7 +95,7 @@ class ModalTable extends React.Component {
95 95
         title: '性别',
96 96
         dataIndex: 'sex',
97 97
         key: 'sex',
98
-        render: (text, records) => <span>{ records.sex === 1 ? '男' : '女' }</span>,
98
+        render: (text, records) => <span>{records.sex === 1 ? '男' : '女'}</span>,
99 99
       },
100 100
       {
101 101
         title: '意向项目',
@@ -111,29 +111,29 @@ class ModalTable extends React.Component {
111 111
         title: '状态',
112 112
         // eslint-disable-next-line consistent-return
113 113
         render: (text, records) => {
114
-                                    if (records.status === 1) { return '报备' }
115
-                                    if (records.status === 2) { return '到访' }
116
-                                    if (records.status === 3) { return '认购' }
117
-                                    if (records.status === 4) { return '签约' }
118
-                                    if (records.verifyStatus === 1) { return '待审核' }
119
-                                    if (records.verifyStatus === 2) { return '审核同意' }
120
-                                    if (records.verifyStatus === 3) { return '签约' }
121
-                                  },
114
+          if (records.status === 1) { return '报备' }
115
+          if (records.status === 2) { return '到访' }
116
+          if (records.status === 3) { return '认购' }
117
+          if (records.status === 4) { return '签约' }
118
+          if (records.verifyStatus === 1) { return '待审核' }
119
+          if (records.verifyStatus === 2) { return '审核同意' }
120
+          if (records.verifyStatus === 3) { return '签约' }
121
+        },
122 122
       },
123 123
     ]
124 124
     return (
125 125
       <>
126 126
         <Modal
127
-            title="推荐客户"
128
-            destroyOnClose="true"
129
-            width={900}
130
-            footer={null}
131
-            visible={this.state.visibleData.visible}
132
-            // onOk={() => this.handleOk()}
133
-            onCancel={(e) => this.handleCancel(e)}
134
-          >
135
-            <Table rowKey="independentList" dataSource={this.state.dataSource.records} columns={columns} pagination={{ total: this.state.dataSource.total, onChange: e => this.onChange(e) }} />
136
-          </Modal>
127
+          title="推荐客户"
128
+          destroyOnClose="true"
129
+          width={900}
130
+          footer={null}
131
+          visible={this.state.visibleData.visible}
132
+          // onOk={() => this.handleOk()}
133
+          onCancel={(e) => this.handleCancel(e)}
134
+        >
135
+          <Table rowKey="independentList" dataSource={this.state.dataSource.records} columns={columns} pagination={{ total: this.state.dataSource.total, onChange: e => this.onChange(e) }} />
136
+        </Modal>
137 137
       </>
138 138
     );
139 139
   }
@@ -147,18 +147,18 @@ class InviteTable extends React.Component {
147 147
   constructor(props) {
148 148
     super(props);
149 149
     this.state = {
150
-       dataSource: { records: [] },
151
-       visibleData: { visible: false, customerId: '', realtyConsultant: '' },
150
+      dataSource: { records: [] },
151
+      visibleData: { visible: false, customerId: '', realtyConsultant: '' },
152 152
     }
153 153
   }
154 154
 
155 155
   // 挂载之后
156
-  componentDidMount() {
156
+  componentDidMount () {
157 157
     const { customerId } = this.state.visibleData
158 158
     this.getList({ id: customerId, pageNumber: 1, pageSize: 5 })
159 159
   }
160 160
 
161
-  componentDidUpdate(preProps, preState) {
161
+  componentDidUpdate (preProps, preState) {
162 162
     const { customerId } = this.state.visibleData
163 163
     if (this.props.visibleData.customerId !== preState.visibleData.customerId) {
164 164
       this.getList({ id: customerId, pageNumber: 1, pageSize: 5 })
@@ -168,17 +168,17 @@ class InviteTable extends React.Component {
168 168
 
169 169
   // 弹框确定按钮
170 170
   // eslint-disable-next-line react/sort-comp
171
-  handleOk() {
171
+  handleOk () {
172 172
     this.setState({ visibleData: { visible: false, customerId: '', realtyConsultant: '' } })
173 173
   }
174 174
 
175 175
   // 弹框取消按钮
176
-  handleCancel() {
176
+  handleCancel () {
177 177
     this.setState({ visibleData: { visible: false, customerId: '', realtyConsultant: '' } })
178 178
   }
179 179
 
180
-  getList(params) {
181
-     const { customerId } = this.props.visibleData
180
+  getList (params) {
181
+    const { customerId } = this.props.visibleData
182 182
     if (customerId === '' || customerId === undefined) {
183 183
       return
184 184
     }
@@ -197,19 +197,19 @@ class InviteTable extends React.Component {
197 197
     })
198 198
   }
199 199
 
200
-   // 分页
201
-  onChange(pageNum) {
200
+  // 分页
201
+  onChange (pageNum) {
202 202
     this.getList({ pageNumber: pageNum, pageSize: 5 })
203 203
   }
204 204
 
205
-  render() {
205
+  render () {
206 206
     const columns = [
207 207
       {
208 208
         title: '头像',
209 209
         dataIndex: 'img',
210 210
         key: 'img',
211 211
         align: 'center',
212
-        render: (text, record) => <img src={record.avatarurl}  width = {50} height = {50}/>,
212
+        render: (text, record) => <img src={record.avatarurl} width={50} height={50} />,
213 213
       },
214 214
       {
215 215
         title: '用户姓名',
@@ -229,22 +229,22 @@ class InviteTable extends React.Component {
229 229
         dataIndex: 'sex',
230 230
         key: 'sex',
231 231
         align: 'center',
232
-        render: (text, list) => <span>{ list.sex === 1 ? '男' : '女' }</span>,
232
+        render: (text, list) => <span>{list.sex === 1 ? '男' : '女'}</span>,
233 233
       },
234 234
     ]
235 235
     return (
236 236
       <>
237 237
         <Modal
238
-            title="推荐客户"
239
-            destroyOnClose="true"
240
-            width={900}
241
-            footer={null}
242
-            visible={this.state.visibleData.visible}
243
-            // onOk={() => this.handleOk()}
244
-            onCancel={(e) => this.handleCancel(e)}
245
-          >
246
-            <Table rowKey="independent" dataSource={this.state.dataSource.records} columns={columns} pagination={{ total: this.state.dataSource.total, onChange: e => this.onChange(e) }} />
247
-          </Modal>
238
+          title="推荐客户"
239
+          destroyOnClose="true"
240
+          width={900}
241
+          footer={null}
242
+          visible={this.state.visibleData.visible}
243
+          // onOk={() => this.handleOk()}
244
+          onCancel={(e) => this.handleCancel(e)}
245
+        >
246
+          <Table rowKey="independent" dataSource={this.state.dataSource.records} columns={columns} pagination={{ total: this.state.dataSource.total, onChange: e => this.onChange(e) }} />
247
+        </Modal>
248 248
       </>
249 249
     );
250 250
   }
@@ -256,7 +256,7 @@ class InviteTable extends React.Component {
256 256
  * @param {*} props
257 257
  * @returns
258 258
  */
259
-function body(props) {
259
+function body (props) {
260 260
   const { getFieldDecorator } = props.form
261 261
 
262 262
   // eslint-disable-next-line react-hooks/rules-of-hooks
@@ -268,7 +268,7 @@ function body(props) {
268 268
   }, [])
269 269
 
270 270
 
271
-  function openNotificationWithIcon(type, message) {
271
+  function openNotificationWithIcon (type, message) {
272 272
     notification[type]({
273 273
       message,
274 274
       description:
@@ -276,7 +276,7 @@ function body(props) {
276 276
     });
277 277
   }
278 278
 
279
-  function getList(params) {
279
+  function getList (params) {
280 280
     // 网路请求
281 281
     request({ ...apis.customer.agents, params: { ...params } }).then(res => {
282 282
       setDataSource(res)
@@ -286,7 +286,7 @@ function body(props) {
286 286
   }
287 287
 
288 288
   // 提交事件
289
-  function handleSubmit(e) {
289
+  function handleSubmit (e) {
290 290
     e.preventDefault();
291 291
     props.form.validateFields((err, values) => {
292 292
       if (!err) {
@@ -299,29 +299,36 @@ function body(props) {
299 299
   // eslint-disable-next-line react-hooks/rules-of-hooks
300 300
   const [gInviteData, setGInviteData] = useState({ visible: false, customerId: '', realtyConsultant: '' })
301 301
   // Change 事件
302
-  function handleSelectChange(e) {
302
+  function handleSelectChange (e) {
303 303
     // eslint-disable-next-line no-console
304 304
     console.log(e)
305 305
   }
306
-  function gM(row) {
306
+  function gM (row) {
307 307
     setGVisibleData({ visible: true, customerId: row.personId, realtyConsultant: row.realtyConsultant })
308 308
 
309 309
     setGInviteData({ visible: false })
310 310
   }
311 311
 
312
-  function Invite(row) {
312
+  function Invite (row) {
313 313
     setGInviteData({ visible: true, customerId: row.personId, realtyConsultant: row.realtyConsultant })
314 314
 
315 315
     setGVisibleData({ visible: false })
316 316
   }
317 317
 
318 318
   // 分页
319
-  function onChange(pageNum) {
319
+  function onChange (pageNum) {
320 320
     // eslint-disable-next-line react-hooks/rules-of-hooks
321
-      getList({ pageNumber: pageNum, pageSize: 10 })
321
+    getList({ pageNumber: pageNum, pageSize: 10 })
322
+  }
323
+
324
+  /**
325
+    * 重置搜索
326
+    */
327
+  function handleReset () {
328
+    props.form.resetFields();
322 329
   }
323 330
 
324
-  function toAudit(cuurentId) {
331
+  function toAudit (cuurentId) {
325 332
     router.push({
326 333
       pathname: '/customer/recommendCustomer/audit',
327 334
       query: {
@@ -330,16 +337,16 @@ function body(props) {
330 337
     })
331 338
   }
332 339
 
333
-  function exportIndependen() {
340
+  function exportIndependen () {
334 341
     request({ ...apis.customer.customerRecommendAgentsExport, responseType: 'blob' })
335
-    .then(response => {
336
-      download(response)
337
-    }).catch(error => {
342
+      .then(response => {
343
+        download(response)
344
+      }).catch(error => {
338 345
 
339
-    })
346
+      })
340 347
   }
341 348
 
342
-  function download(data) {
349
+  function download (data) {
343 350
     if (!data) {
344 351
       return
345 352
     }
@@ -374,13 +381,13 @@ function body(props) {
374 381
       dataIndex: 'gender',
375 382
       key: 'gender',
376 383
       // eslint-disable-next-line no-nested-ternary
377
-      render: (_, record) => <><span>{ record.gender === '1' ? '男' : record.gender === '2' ? '女' : '未知' }</span></>,
384
+      render: (_, record) => <><span>{record.gender === '1' ? '男' : record.gender === '2' ? '女' : '未知'}</span></>,
378 385
     },
379 386
     {
380 387
       title: '类型',
381 388
       dataIndex: 'personType',
382 389
       key: 'personType',
383
-      render: (_, record) => <><span>{ record.channelName !== null ? '渠道经纪人' : '独立经纪人' }</span></>,
390
+      render: (_, record) => <><span>{record.channelName !== null ? '渠道经纪人' : '独立经纪人'}</span></>,
384 391
     },
385 392
     {
386 393
       title: '所属渠道',
@@ -412,7 +419,7 @@ function body(props) {
412 419
 
413 420
   return (
414 421
     <>
415
-      <Form layout="inline" onSubmit={e => handleSubmit(e, props)}>
422
+      <Form layout="inline" onSubmit={e => handleSubmit(e, props)} style={{ display: 'flex', alignItems: 'center' }}>
416 423
         <Form.Item>
417 424
           {getFieldDecorator('name')(
418 425
             <Input
@@ -429,19 +436,22 @@ function body(props) {
429 436
             />,
430 437
           )}
431 438
         </Form.Item>
432
-        <Form.Item>
433
-            <Button type="primary" htmlType="submit" className={Styles.SubmitButton}>
434
-              搜索
439
+        <Form.Item style={{ position: 'absolute', right: '38px' }} >
440
+          <Button type="primary" htmlType="submit" >
441
+            搜索
442
+          </Button>
443
+          <Button style={{ marginLeft: 8 }} onClick={handleReset}>
444
+            重置
435 445
             </Button>
436 446
         </Form.Item>
437 447
       </Form>
438
-      <Button type="primary" onClick={() => exportIndependen()} className={Styles.SubmitButton} style={{ marginTop: '5px', marginBottom: '5px' }}>
439
-        导出数据
448
+      <Button type="primary" onClick={() => exportIndependen()} style={{ float: 'right', margin: '20px 0' }}>
449
+        导出
440 450
       </Button>
441 451
       <Table rowKey="independentIndex" dataSource={dataSource.records} columns={columns} pagination={{ total: dataSource.total, onChange }} />
442
-            {/* 调整归属 */}
443
-        <ModalTable visibleData={gVisibleData} />
444
-        <InviteTable visibleData={gInviteData} />
452
+      {/* 调整归属 */}
453
+      <ModalTable visibleData={gVisibleData} />
454
+      <InviteTable visibleData={gInviteData} />
445 455
     </>
446 456
   );
447 457
 }

+ 2
- 2
src/pages/customer/independentList/style.less Ver arquivo

@@ -1,12 +1,12 @@
1 1
 .SubmitButton {
2 2
   background: rgba(239,39,58,1);
3
-  border-radius: 7px;
3
+  border-radius: 6px;
4 4
   border: 0px;
5 5
 }
6 6
 .SelectFrom {
7 7
   width: 180px;
8 8
   background: #ffffff;
9
-  border-radius: 7px;
9
+  border-radius: 6px;
10 10
   border: 1px solid #dbdbdb;
11 11
 }
12 12
 .addButton {

+ 16
- 5
src/pages/customer/recommendCustomer/index.jsx Ver arquivo

@@ -77,6 +77,14 @@ function body(props) {
77 77
     })
78 78
   }
79 79
 
80
+  
81
+ /**
82
+   * 重置搜索
83
+   */
84
+  function handleReset() {
85
+    props.form.resetFields();
86
+  }
87
+  
80 88
   /**
81 89
    *导出数据(推荐用户)
82 90
    *
@@ -171,7 +179,7 @@ function body(props) {
171 179
 
172 180
   return (
173 181
     <>
174
-      <Form layout="inline" onSubmit={e => handleSubmit(e, props)}>
182
+      <Form layout="inline" onSubmit={e => handleSubmit(e, props)} style={{display:'flex'}}>
175 183
         <Form.Item>
176 184
           {getFieldDecorator('name')(
177 185
             <Input
@@ -207,14 +215,17 @@ function body(props) {
207 215
             </Select>,
208 216
           )}
209 217
         </Form.Item>
210
-        <Form.Item>
211
-            <Button type="primary" htmlType="submit" className={Styles.SubmitButton}>
218
+        <Form.Item style={{ position:'absolute',right:'38px' }}>
219
+            <Button type="primary" htmlType="submit" >
212 220
               搜索
213 221
             </Button>
222
+            <Button style={{ marginLeft: 8 }} onClick={handleReset}>
223
+              重置
224
+            </Button>
214 225
         </Form.Item>
215 226
       </Form>
216
-      <Button type="primary" onClick={() => exportRecommendCustomer()} className={Styles.SubmitButton} style={{ marginTop: '5px', marginBottom: '5px' }}>
217
-        导出数据
227
+      <Button type="primary" onClick={() => exportRecommendCustomer()} style={{float:'right',margin:'20px 0'}}>
228
+        导出
218 229
       </Button>
219 230
       <Table rowKey="recommendCustomer" dataSource={dataSource.records} columns={columns} pagination={{ total: dataSource.total, onChange }} />
220 231
     </>

+ 16
- 6
src/pages/customer/report/index.jsx Ver arquivo

@@ -70,6 +70,13 @@ function body(props) {
70 70
       getList({ pageNumber: pageNum, pageSize: 9 })
71 71
   }
72 72
 
73
+ /**
74
+   * 重置搜索
75
+   */
76
+  function handleReset() {
77
+    props.form.resetFields();
78
+  }
79
+
73 80
   function exportReport() {
74 81
     request({ ...apis.customer.customerRecommendReportExport, responseType: 'blob' })
75 82
     .then(response => {
@@ -133,7 +140,7 @@ function body(props) {
133 140
 
134 141
   return (
135 142
     <>
136
-      <Form layout="inline" onSubmit={e => handleSubmit(e, props)}>
143
+      <Form layout="inline" onSubmit={e => handleSubmit(e, props)} style={{display:'flex'}}>
137 144
         <Form.Item>
138 145
           {getFieldDecorator('name')(
139 146
             <Input
@@ -152,12 +159,12 @@ function body(props) {
152 159
         </Form.Item>
153 160
         <Form.Item>
154 161
           {getFieldDecorator('consultName')(
155
-            <Input placeholder="推荐人" />,
162
+            <Input placeholder="置业顾问" />,
156 163
           )}
157 164
         </Form.Item>
158 165
         <Form.Item>
159 166
           {getFieldDecorator('consultTel')(
160
-            <Input placeholder="推荐电话" />,
167
+            <Input placeholder="置业顾问电话" />,
161 168
           )}
162 169
         </Form.Item>
163 170
         <Form.Item>
@@ -173,14 +180,17 @@ function body(props) {
173 180
             <BuildSelect />,
174 181
           )}
175 182
         </Form.Item>
176
-        <Form.Item>
183
+        <Form.Item style={{ position:'absolute',right:'38px' }}>
177 184
             <Button type="primary" htmlType="submit">
178 185
               搜索
179 186
             </Button>
187
+            <Button style={{ marginLeft: 8 }} onClick={handleReset}>
188
+              重置
189
+            </Button>
180 190
         </Form.Item>
181 191
       </Form>
182
-      <Button type="primary" onClick={() => exportReport()} className={Styles.SubmitButton} style={{ marginTop: '5px' }}>
183
-        导出数据
192
+      <Button type="primary" onClick={() => exportReport()} style={{ float:'right',margin:'20px 0' }}>
193
+        导出
184 194
       </Button>
185 195
       <Table rowKey="report" style={{marginTop:'40px'}} dataSource={dataSource.records} columns={columns} pagination={{ total: dataSource.total, onChange }} />
186 196
     </>

+ 4
- 4
src/pages/indexEcharts/components/UserBehavior.jsx Ver arquivo

@@ -116,9 +116,10 @@ const UserBehavior = props => {
116 116
       activity: props.activity,
117 117
       event: props.event,
118 118
       eventType: props.eventType,
119
+      buildingId: props.buildingId,
119 120
     })
120 121
     // getUserBehaviorProfile(formatDate(props.startDate, props.endDate))
121
-  }, [props.startDate, props.endDate, props.activity, props.event, props.eventType])
122
+  }, [props.startDate, props.endDate, props.activity, props.event, props.eventType, props.buildingId])
122 123
 
123 124
   const [recordList, setList] = useState([])
124 125
   function getUserBehaviorSummary(params) {
@@ -127,13 +128,12 @@ const UserBehavior = props => {
127 128
       params,
128 129
     }).then(data => {
129 130
       setData(data || {})
130
-      setList(data.data.records || [])
131
-
131
+      setList((data.data.records || []).filter(e => e.activity !== '客户'))
132 132
     })
133 133
   }
134 134
 
135 135
 
136
-  const seriesMaker = (data.selectUserBehavior || []).reduce((series, item) => {
136
+  const seriesMaker = (data.selectUserBehavior || []).filter(e => e.activity !== '客户').reduce((series, item) => {
137 137
     let { date, activityCount, activity } = item
138 138
     date = moment(date).format('YYYY-MM-DD')
139 139
     if (!activityCount) activityCount = 0

+ 1
- 1
src/pages/indexEcharts/components/UserSourcepie.jsx Ver arquivo

@@ -54,7 +54,7 @@ const UserSource = (props) => {
54 54
     series: [
55 55
       {
56 56
         type: 'pie',
57
-        center: ['44%', '65%'],
57
+        center: ['40%', '65%'],
58 58
         radius: ['34%', '52%'],
59 59
       },
60 60
     ],

+ 1
- 2
src/pages/indexEcharts/styles.less Ver arquivo

@@ -11,7 +11,6 @@
11 11
 .pie {
12 12
   width: 30%;
13 13
   min-width: 370px;
14
-  height: 560px;
15 14
   background: rgba(255, 255, 255, 1);
16 15
   box-shadow: 0px 0px 16px 2px rgba(0, 0, 0, 0.12);
17 16
   border-radius: 12px;
@@ -24,7 +23,7 @@
24 23
   background: rgba(255, 255, 255, 1);
25 24
   box-shadow: 0px 0px 16px 2px rgba(0, 0, 0, 0.12);
26 25
   border-radius: 12px;
27
-  margin-bottom: 25px;
26
+  margin-bottom: 40px;
28 27
   padding: 40px;
29 28
 }
30 29
 

+ 7
- 8
src/pages/indexEcharts/userBehavior.jsx Ver arquivo

@@ -121,6 +121,11 @@ function getUserBehaviorSummary(params) {
121 121
     setActivity(value)
122 122
   }
123 123
 
124
+  const [buildingId, setBuildingId] = useState('')
125
+  function handleBuildingChange(value) {
126
+    setBuildingId(value)
127
+  }
128
+
124 129
   const columns = [
125 130
     {
126 131
       title: '访问事件',
@@ -157,13 +162,7 @@ function getUserBehaviorSummary(params) {
157 162
   const dataSource = []
158 163
 
159 164
   return (<>
160
-    <div style={{
161
-      backgroundColor: '#fff',
162
-      padding: '32PX 28px',
163
-      boxShadow: '0px 0px 16px 2px rgba(0,0,0,0.12)',
164
-      borderRadius: '12px',
165
-      minHeight: '60vh'
166
-    }}>
165
+    <div>
167 166
       <div>
168 167
         <Radio.Group buttonStyle="solid" defaultValue="a">
169 168
           <Radio.Button value="a" onClick={getDataOf(7)}>最近7天</Radio.Button>
@@ -206,7 +205,7 @@ function getUserBehaviorSummary(params) {
206 205
 
207 206
 
208 207
       <div style={{ margin: '24px 0' }}>
209
-        <UserBehavior tableShow={true} BuildSelectHide={true} endDate={endDate} startDate={startDate}  eventType={eventType} activity={activity}  event={event} dataZoom={true} onReData={(e) => redata(e)}></UserBehavior>
208
+        <UserBehavior tableShow={true} BuildSelectHide={true} buildingId={buildingId} endDate={endDate} startDate={startDate}  eventType={eventType} activity={activity}  event={event} dataZoom={true} onReData={(e) => redata(e)}></UserBehavior>
210 209
       </div>
211 210
 
212 211
       {/* <Table dataSource={dataSource} columns={columns} pagination={false} scroll={{ y: 500 }} /> */}

+ 6
- 0
src/pages/integralMall/GoodsList.jsx Ver arquivo

@@ -41,6 +41,9 @@ function header(props) {
41 41
     getList({ pageNum: pageNumber, pageSize: 10 })
42 42
   }
43 43
 
44
+  function handleReset() {
45
+    props.form.resetFields();
46
+  }
44 47
 
45 48
   // 跳转到编辑商品
46 49
   const toEditGoods = (goodsId) => () => {
@@ -188,6 +191,9 @@ function header(props) {
188 191
             <Button type="primary" htmlType="submit" className={styles.searchBtn}>
189 192
               搜索
190 193
             </Button>
194
+            <Button style={{ marginLeft: 8 }} onClick={handleReset}>
195
+              重置
196
+            </Button>
191 197
         </Form.Item>
192 198
       </Form>
193 199
       <AuthButton name="admin.taGoods.add.post" noRight={null}>

+ 25
- 10
src/pages/integralMall/exchangeRecords.jsx Ver arquivo

@@ -32,6 +32,13 @@ function record(props) {
32 32
         setData(data)
33 33
     })
34 34
   }
35
+
36
+  //重置搜索
37
+  function handleReset() {
38
+    props.form.resetFields();
39
+  }
40
+
41
+
35 42
   
36 43
   // 提交事件
37 44
   const handleSubmit = (e, props) => {
@@ -155,7 +162,7 @@ function record(props) {
155 162
           </Form.Item>
156 163
           <Form.Item>
157 164
             {getFieldDecorator('personType')(
158
-              <Select style={{ width: '220px' }} placeholder="用户类型">
165
+              <Select style={{ minWidth: '1.1rem' }} placeholder="用户类型">
159 166
                 <Option value="Realty Consultant">置业顾问</Option>
160 167
                 <Option value="Sales Executive">销售主管</Option>
161 168
                 <Option value="estate agent">经纪人</Option>
@@ -164,27 +171,35 @@ function record(props) {
164 171
           </Form.Item>
165 172
           <Form.Item>
166 173
             {getFieldDecorator('status')(
167
-              <Select style={{ width: '220px' }} placeholder="状态">
174
+              <Select style={{ minWidth: '1.1rem' }} placeholder="状态">
168 175
                 <Option value="1">已领取</Option>
169 176
                 <Option value="0">未领取</Option>
170 177
               </Select>,
171 178
             )}
172 179
           </Form.Item>
173
-          <Form.Item>
180
+          
181
+          <Form.Item style={{position:'absolute',right:'38px'}}>
182
+            <Button type="primary" htmlType="submit">
183
+              搜索
184
+            </Button>
185
+            <Button style={{ marginLeft: 8 }} onClick={handleReset}>
186
+              重置
187
+            </Button>
188
+          </Form.Item>
189
+        </div>
190
+        <div style={{margin:'10px 0'}}>
191
+        <Form.Item>
192
+          <span style={{marginRight:'10px'}}>兑换时间:</span>
174 193
             {getFieldDecorator('exchangeTime')(
175
-              <RangePicker placeholder={['兑换开始时间','兑换结束时间']}/>
194
+              <RangePicker placeholder={['开始时间','结束时间']}/>
176 195
             )}
177 196
           </Form.Item>
178 197
           <Form.Item>
198
+          <span style={{marginRight:'10px'}}>领取时间:</span>
179 199
             {getFieldDecorator('receiveTime')(
180
-              <RangePicker placeholder={['领取开始时间','领取结束时间']}/>
200
+              <RangePicker placeholder={['开始时间','结束时间']}/>
181 201
             )}
182 202
           </Form.Item>
183
-          <Form.Item>
184
-            <Button type="primary" htmlType="submit" className={styles.searchBtn}>
185
-              搜索
186
-            </Button>
187
-          </Form.Item>
188 203
         </div>
189 204
       </Form>
190 205
       <Table rowKey="exchangeRecords" style={{marginTop:'40px'}} dataSource={data.records} columns={columns} pagination={false} />

+ 8
- 0
src/pages/news/list/NewsList.jsx Ver arquivo

@@ -229,6 +229,11 @@ function body(props) {
229 229
     getList({ pageNum: pageNumber, pageSize: 6 })
230 230
   }
231 231
 
232
+   //重置搜索
233
+   function handleReset() {
234
+    props.form.resetFields();
235
+  }
236
+  
232 237
   function getDate(value, dateString) {
233 238
     // moment(value).format('YYYY-MM-DD HH:mm:ss')
234 239
     console.log(value, dateString)
@@ -273,6 +278,9 @@ function body(props) {
273 278
           <Button type="primary" htmlType="submit" >
274 279
             搜索
275 280
           </Button>
281
+          <Button style={{ marginLeft: 8 }} onClick={handleReset}>
282
+              重置
283
+            </Button>
276 284
         </Form.Item>
277 285
       </Form>
278 286
       <AuthButton name="admin.taNews.post" noRight={null}>

+ 1
- 1
src/pages/news/type/NewsType.jsx Ver arquivo

@@ -129,7 +129,7 @@ function header(props) {
129 129
         </Form.Item>
130 130
       </Form>
131 131
       <AuthButton name="admin.taNewsType.post" noRight={null}>
132
-        <Button type="primary" className={styles.addBtn} onClick={toEditNews()}>新增</Button>
132
+        <Button type="danger" className={styles.addBtn} onClick={toEditNews()}>新增</Button>
133 133
       </AuthButton>
134 134
       <Table rowKey="newsType" dataSource={data.records} columns={columns} pagination={false} />
135 135
       <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>

+ 9
- 0
src/pages/staff/list/StaffList.jsx Ver arquivo

@@ -132,6 +132,11 @@ const header = (props) => {
132 132
     });
133 133
   }
134 134
 
135
+   //重置搜索
136
+   function handleReset() {
137
+    props.form.resetFields();
138
+  }
139
+
135 140
   const { getFieldDecorator } = props.form
136 141
   return (
137 142
 
@@ -168,6 +173,10 @@ const header = (props) => {
168 173
           <Button type="primary" htmlType="submit" className={styles.searchBtn}>
169 174
             搜索
170 175
           </Button>
176
+          
177
+   <Button style={{ marginLeft: 8 }} onClick={handleReset}>
178
+              重置
179
+            </Button>
171 180
         </Form.Item>
172 181
       </Form>
173 182
       <Button type="danger" style={{ margin: '20px 0', padding: '2px 36px' }} onClick={toEditStaff()}>新增</Button>

+ 1
- 1
src/pages/system/housingPolicy.jsx Ver arquivo

@@ -182,7 +182,7 @@ const handleSubmit = (e, props) => {
182 182
         </Form.Item>
183 183
       </Form>
184 184
       <AuthButton name="admin.taPolicy.post" noRight={null}>
185
-        <Button type="primary" className={styles.addBtn} onClick={toEditPolicy()}>新增</Button>
185
+        <Button type="danger" className={styles.addBtn} onClick={toEditPolicy()}>新增</Button>
186 186
       </AuthButton>
187 187
       <Table rowKey="housingPolicy" dataSource={data.records} columns={columns} pagination={false}/>
188 188
       <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>

+ 43
- 38
src/pages/system/intention.jsx Ver arquivo

@@ -1,5 +1,5 @@
1 1
 import React, { useState, useEffect } from 'react';
2
-import { Form, Input, Button, Icon, Select, Tabs, Radio, DatePicker,message,Checkbox,Row, Col } from 'antd';
2
+import { Form, Input, Button, Icon, Select, Tabs, Radio, DatePicker, message, Checkbox, Row, Col } from 'antd';
3 3
 import { FormattedMessage } from 'umi-plugin-react/locale';
4 4
 import styles from '../style/GoodsList.less';
5 5
 import moment from 'moment';
@@ -19,13 +19,13 @@ const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
19 19
  * @param {*} props
20 20
  * @returns
21 21
  */
22
- const Edit = (props) => {
23
-  const [ data, setData ] = useState([])
24
-  const [ buildingIdValue, setBuildingIdData ] = useState('')
22
+const Edit = (props) => {
23
+  const [data, setData] = useState([])
24
+  const [buildingIdValue, setBuildingIdData] = useState('')
25 25
 
26 26
   const changBuilding = (buildingId) => {
27 27
     setBuildingIdData(buildingId)
28
-    request({ ...apis.system.tdBizEventIntention, params: {pageNum: 1, pageSize: 999,buildingId}}).then((data) => {
28
+    request({ ...apis.system.tdBizEventIntention, params: { pageNum: 1, pageSize: 999, buildingId } }).then((data) => {
29 29
       console.log(data)
30 30
       setData(data.records)
31 31
     })
@@ -33,59 +33,64 @@ const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
33 33
 
34 34
   const changeBox = (x) => (e) => {
35 35
     setData(data.map((item) => {
36
-      return x.eventId === item.eventId ? {...item, checkbox: e.target.checked} : item
36
+      return x.eventId === item.eventId ? { ...item, checkbox: e.target.checked } : item
37 37
     }))
38 38
   }
39 39
 
40 40
   const changeInput = (x) => (e) => {
41 41
     setData(data.map((item) => {
42
-      return x.eventId === item.eventId ? {...item, intention: e.target.value} : item
42
+      return x.eventId === item.eventId ? { ...item, intention: e.target.value } : item
43 43
     }))
44 44
   }
45 45
 
46 46
   const submitValue = () => {
47 47
     console.log(buildingIdValue)
48
-    if(buildingIdValue === ''){
48
+    if (buildingIdValue === '') {
49 49
       return
50 50
     }
51
-    request({ ...apis.system.taBuildingIntentionAddOrUpdate, urlData: {id: buildingIdValue}, data,}).then((data) => {
51
+    request({ ...apis.system.taBuildingIntentionAddOrUpdate, urlData: { id: buildingIdValue }, data, }).then((data) => {
52 52
       message.info("保存成功")
53 53
     })
54 54
   }
55 55
 
56 56
   return (
57 57
     <>
58
-    <Row>
59
-      <Col span={12}>
60
-        <BuildSelect onChange={changBuilding}/>
61
-      </Col>
62
-    </Row>
63
-    <Row style={{margin:'10px 0'}}>
64
-      <Col span={5} offset={2}>
65
-        用户操作
66
-      </Col>
67
-      <Col span={3} offset={3}>
68
-        意向值
69
-      </Col>
70
-    </Row>
71
-    {data.map((x) => {
72
-      return <Row>
73
-                <Col span={5} offset={2}>
74
-                  <Checkbox checked={x.checkbox} onChange={changeBox(x)}>{x.eventName}</Checkbox>
75
-                </Col>
76
-                <Col span={3} offset={3}>
77
-                  <Input value={x.intention} onChange={changeInput(x)}/>
78
-                </Col>
79
-              </Row>
80
-    })}
81
-    <Row>
82
-      <AuthButton name="admin.taBuildingIntentionAddOrUpdate.buildingId.post" noRight={null}>
83
-        <Button type="primary" className={styles.searchBtn} onClick={submitValue}>确定</Button>
84
-      </AuthButton>
85
-    </Row>
58
+      <Row>
59
+        <Col span={6}>
60
+          <BuildSelect onChange={changBuilding} />
61
+        </Col>
62
+        <Col span={5} style={{ lineHeight: '30px' }}>
63
+          用户操作
64
+        </Col>
65
+        <Col span={5} offset={2} style={{ lineHeight: '30px' }}>
66
+          意向值
67
+        </Col>
68
+        <Col span={2} offset={4}>
69
+          <AuthButton name="admin.taBuildingIntentionAddOrUpdate.buildingId.post" noRight={null}>
70
+            <Button type="primary" className={styles.searchBtn} onClick={submitValue}>确定</Button>
71
+          </AuthButton>
72
+        </Col>
73
+      </Row>
74
+      {data.map((x) => {
75
+        return <Row style={{margin:'5px 0'}}>
76
+          <Col span={6}>
77
+
78
+          </Col>
79
+          <Col span={5} >
80
+            <Checkbox checked={x.checkbox} onChange={changeBox(x)}>{x.eventName}</Checkbox>
81
+          </Col>
82
+          <Col span={5} offset={2}>
83
+            <Input value={x.intention} onChange={changeInput(x)} />
84
+          </Col>
85
+          <Col span={2} offset={4}>
86
+
87
+          </Col>
88
+
89
+        </Row>
90
+      })}
86 91
     </>
87 92
   );
88
- }
93
+}
89 94
 
90 95
 
91 96
 

+ 5
- 0
src/services/apis.js Ver arquivo

@@ -263,6 +263,11 @@ export default {
263 263
     },
264 264
   },
265 265
   indexEcharts: {
266
+    list:{
267
+      method:'GET',
268
+      url: `${prefix}/indexStatistical`,
269
+      action: 'userStatistics',
270
+    },
266 271
     userResource: {
267 272
       method: 'GET',
268 273
       url: `${prefix}/selectUserResource`,