Pārlūkot izejas kodu

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

zhoulisen 5 gadus atpakaļ
vecāks
revīzija
f782f249e0

+ 3
- 3
src/pages/channel/newCustomer/dataRecord.jsx Parādīt failu

@@ -8,7 +8,7 @@ import AuthButton from '../../../components/AuthButton';
8 8
 
9 9
 const dataRecord = props => {
10 10
     const [data, setData] = useState({})
11
-    const { targetId, targetType, channelId, targetName, buildingId, newCustomers } = props.location.query
11
+    const { targetId, targetType, channelId, targetName, buildingId, newCustomers, startDate, endDate } = props.location.query
12 12
 
13 13
     useEffect(() => {
14 14
         getList({ pageNum: 1, pageSize: 10 })
@@ -16,7 +16,7 @@ const dataRecord = props => {
16 16
     }, [])
17 17
 
18 18
     const getList = params => {
19
-        request({ ...apis.channelList.newuserList, params: { ...params, targetId: targetId,targetType: targetType,channelId: channelId,buildingId: buildingId } }).then(data => {
19
+        request({ ...apis.channelList.newuserList, params: { ...params, targetId: targetId,targetType: targetType,channelId: channelId,buildingId: buildingId,startDate: startDate, endDate: endDate } }).then(data => {
20 20
             console.log(data,"dddddddddddd")
21 21
           setData(data)
22 22
         }).catch(e => {
@@ -71,7 +71,7 @@ const dataRecord = props => {
71 71
     const exportExcel = () => {
72 72
         // const fieldsValue = getFieldsValue()
73 73
         // console.log('fieldsValue', fieldsValue)
74
-        request({ ...apis.channelList.newuserListExport, params: { targetId: targetId,targetType: targetType,channelId: channelId,buildingId: buildingId } })
74
+        request({ ...apis.channelList.newuserListExport, params: { targetId: targetId,targetType: targetType,channelId: channelId,buildingId: buildingId,startDate: startDate, endDate: endDate } })
75 75
           .then(data => {
76 76
             if (!data) {
77 77
               return

+ 3
- 3
src/pages/channel/newCustomer/personNum.jsx Parādīt failu

@@ -17,7 +17,7 @@ const data = [
17 17
 
18 18
 const dataRecord = props => {
19 19
       const [data, setData] = useState({})
20
-      const { targetId, targetType, channelId, targetName, buildingId, visitPersons } = props.location.query
20
+      const { targetId, targetType, channelId, targetName, buildingId, visitPersons, startDate, endDate } = props.location.query
21 21
 
22 22
     useEffect(() => {
23 23
         getList({ pageNum: 1, pageSize: 10 })
@@ -26,7 +26,7 @@ const dataRecord = props => {
26 26
 
27 27
     const getList = params => {
28 28
         console.log(params)
29
-        request({ ...apis.channelList.personNumList, params: { ...params, targetId: targetId,targetType: targetType,channelId: channelId,buildingId: buildingId} }).then(data => {
29
+        request({ ...apis.channelList.personNumList, params: { ...params, targetId: targetId,targetType: targetType,channelId: channelId,buildingId: buildingId,startDate: startDate, endDate: endDate} }).then(data => {
30 30
           setData(data)
31 31
         }).catch(e => {
32 32
           console.log(e)
@@ -80,7 +80,7 @@ const dataRecord = props => {
80 80
     const exportExcel = () => {
81 81
         // const fieldsValue = getFieldsValue()
82 82
         // console.log('fieldsValue', fieldsValue)
83
-        request({ ...apis.channelList.personNumListExport, params: { targetId: targetId,targetType: targetType,channelId: channelId,buildingId: buildingId} })
83
+        request({ ...apis.channelList.personNumListExport, params: { targetId: targetId,targetType: targetType,channelId: channelId,buildingId: buildingId,startDate: startDate, endDate: endDate} })
84 84
           .then(data => {
85 85
             if (!data) {
86 86
               return

+ 3
- 3
src/pages/channel/newCustomer/visitNum.jsx Parādīt failu

@@ -17,7 +17,7 @@ const data = [
17 17
 
18 18
 const dataRecord = props => {
19 19
     const [data, setData] = useState({})
20
-    const { targetId, targetType, channelId, targetName, buildingId, visitNum } = props.location.query
20
+    const { targetId, targetType, channelId, targetName, buildingId, visitNum, startDate, endDate } = props.location.query
21 21
 
22 22
     useEffect(() => {
23 23
         getList({ pageNum: 1, pageSize: 10 })
@@ -26,7 +26,7 @@ const dataRecord = props => {
26 26
 
27 27
     const getList = params => {
28 28
         console.log(params)
29
-        request({ ...apis.channelList.visitNumList, params: { ...params, targetId: targetId,targetType: targetType,channelId: channelId,buildingId: buildingId } }).then(data => {
29
+        request({ ...apis.channelList.visitNumList, params: { ...params, targetId: targetId,targetType: targetType,channelId: channelId,buildingId: buildingId,startDate: startDate, endDate: endDate } }).then(data => {
30 30
           console.log(data)
31 31
           setData(data)
32 32
         }).catch(e => {
@@ -81,7 +81,7 @@ const dataRecord = props => {
81 81
     const exportExcel = () => {
82 82
         // const fieldsValue = getFieldsValue()
83 83
         // console.log('fieldsValue', fieldsValue)
84
-        request({ ...apis.channelList.visitNumListExport, params: { targetId: targetId,targetType: targetType,channelId: channelId,buildingId: buildingId } })
84
+        request({ ...apis.channelList.visitNumListExport, params: { targetId: targetId,targetType: targetType,channelId: channelId,buildingId: buildingId,startDate: startDate, endDate: endDate } })
85 85
           .then(data => {
86 86
             if (!data) {
87 87
               return