1002884655 3 år sedan
förälder
incheckning
07a35e8324

+ 5
- 1
src/pages/index/addedValueService/index.jsx Visa fil

@@ -44,7 +44,11 @@ export default function AddedValueService () {
44 44
       }
45 45
     })
46 46
     params.push({question: '创建人小程序人员', result: user?.userInfo?.person?.personId, key: 'personId' })
47
-    fetch({ url: API_HELP_FIND_HOUSE_SUBMIT, method: 'post', payload: params }).then((res) => {
47
+    let payload = {}
48
+    params.map((item) => {
49
+      payload[item.key] = item.result || item.resultId
50
+    })
51
+    fetch({ url: API_HELP_FIND_HOUSE_SUBMIT, method: 'post', payload }).then((res) => {
48 52
       setResultList(res.taBuildingList || [])
49 53
       setShowPopup(true)
50 54
     })

+ 5
- 1
src/pages/index/helpToFindHouse/index.jsx Visa fil

@@ -60,7 +60,11 @@ export default withLayout(() => {
60 60
       }
61 61
     })
62 62
     params.push({question: '创建人小程序人员', result: user?.userInfo?.person?.personId, key: 'personId' })
63
-    fetch({ url: API_HELP_FIND_HOUSE_SUBMIT, method: 'post', payload: params }).then((res) => {
63
+    let payload = {}
64
+    params.map((item) => {
65
+      payload[item.key] = item.result || item.resultId
66
+    })
67
+    fetch({ url: API_HELP_FIND_HOUSE_SUBMIT, method: 'post', payload }).then((res) => {
64 68
       setResultList(res.taBuildingList || [])
65 69
       setShowPopup(true)
66 70
     })