Kaynağa Gözat

Merge branch 'v3.5' of http://git.ycjcjy.com/zhiyuxing/estateagents-admin-manager into v3.5

魏超 5 yıl önce
ebeveyn
işleme
201f119795

+ 3
- 2
src/pages/activity/ActivityList.jsx Dosyayı Görüntüle

@@ -223,11 +223,12 @@ const header = props => {
223 223
   }
224 224
 
225 225
   // 提交事件
226
-  const handleSubmit = (e, props) => {
226
+  const handleSubmit = e => {
227 227
     e.preventDefault();
228 228
     props.form.validateFields((err, values) => {
229 229
       if (!err) {
230 230
         console.log('提交数据: ', values)
231
+        values.time = `${moment(values.time).format('YYYY-MM-DDT00:00:00.000')}Z`
231 232
         getList({ pageNum: 1, pageSize: 10, ...values })
232 233
       }
233 234
     });
@@ -246,7 +247,7 @@ const header = props => {
246 247
     <>
247 248
       {/* style={{ display: 'none' }} */}
248 249
       <div id="qrcode"></div>
249
-      <Form layout="inline" onSubmit={e => handleSubmit(e, props)}>
250
+      <Form layout="inline" onSubmit={e => handleSubmit(e)}>
250 251
         <Form.Item>
251 252
           {getFieldDecorator('cityId')(
252 253
             <SelectCity />,

+ 1
- 1
src/pages/customer/customerlist/components/attribution.jsx Dosyayı Görüntüle

@@ -51,7 +51,7 @@ class ModalAttribution extends React.Component {
51 51
 
52 52
   getList(params) {
53 53
     console.log('params: ', params)
54
-    if (params.buildingId === '') {
54
+    if (params.buildingId === '' || params.buildingId === null || params.buildingId === undefined) {
55 55
       return
56 56
     }
57 57
     // 网路请求

+ 5
- 5
src/pages/customer/recommendCustomer/components/attribution.jsx Dosyayı Görüntüle

@@ -49,7 +49,7 @@ class ModalAttribution extends React.Component {
49 49
   }
50 50
 
51 51
   getList(params) {
52
-    if (params.buildingId === '') {
52
+    if (params.buildingId === '' || params.buildingId === null || params.buildingId === undefined) {
53 53
       return
54 54
     }
55 55
 
@@ -104,8 +104,8 @@ class ModalAttribution extends React.Component {
104 104
       // },
105 105
       {
106 106
         title: '姓名',
107
-        dataIndex: 'name',
108
-        key: 'name',
107
+        dataIndex: 'userName',
108
+        key: 'userName',
109 109
       },
110 110
       {
111 111
         title: '电话',
@@ -119,8 +119,8 @@ class ModalAttribution extends React.Component {
119 119
       },
120 120
       {
121 121
         title: '岗位',
122
-        dataIndex: 'post',
123
-        key: 'post',
122
+        dataIndex: 'position',
123
+        key: 'position',
124 124
       },
125 125
       {
126 126
         title: '操作',

+ 2
- 2
src/pages/indexEcharts/userBehavior.jsx Dosyayı Görüntüle

@@ -40,8 +40,8 @@ const header = props => {
40 40
     request({
41 41
       ...apis.indexEcharts.bizEvent.dict,
42 42
     }).then((data) => {
43
-      setEventTypes(data.records)
44
-
43
+      const eventType = ['agent', 'main']
44
+      setEventTypes(data.records.filter(item => !eventType.includes(item.typeId)))
45 45
     })
46 46
   }
47 47
   const [eventList, setEventList] = useState([])

+ 5
- 1
src/pages/indexEcharts/userSource.jsx Dosyayı Görüntüle

@@ -96,7 +96,11 @@ class Header extends React.Component {
96 96
   }
97 97
 
98 98
   datalist = () => {
99
-    this.setState({ endDate: daterange[1], startDate: daterange[0] })
99
+    console.log()
100
+    this.setState({ 
101
+      endDate: daterange[1] === '' ? new Date() : daterange[1],
102
+      startDate: daterange[0] === '' ? moment().subtract(7, 'day').toDate() : daterange[0],
103
+    })
100 104
   }
101 105
 
102 106
   onSuccess = e => {