230320a303 9 maanden geleden
bovenliggende
commit
060623d8c6
2 gewijzigde bestanden met toevoegingen van 8 en 3 verwijderingen
  1. 1 1
      .vscode/settings.json
  2. 7 2
      src/pagesRoom/roomPrice.jsx

+ 1 - 1
.vscode/settings.json

@@ -1,3 +1,3 @@
 {
-    "stockCode": "sh603019,sz002460,sh512480,sz300346,sh560980"
+    "stockCode": "sz301308,sz002460,sh512480,sz300346,sh560980"
 }

+ 7 - 2
src/pagesRoom/roomPrice.jsx

@@ -27,6 +27,7 @@ class Index extends Component {
     const {eId: curId} = this.$router.params
     this.state = {
       curId,
+      allData: {},
       curObj: {},
       curNav: 0,
       roomArr: [],
@@ -77,8 +78,10 @@ class Index extends Component {
       estate_id: eId,
       building_id: buildingNumList[curNav].id,
     }).then(res => {
+      const data = res.data || {}
       this.setState({
-        roomArr: res || []
+        allData: res || {},
+        roomArr: data || []
       })
       if (this.subChat) {
         this.subChat.getData({name, id: eId}, 'pt')
@@ -95,9 +98,11 @@ class Index extends Component {
       building_id: buildingNumList[curNav].id,
       estate_id: eId,
     }).then(res => {
+      const data = res.data || {}
       this.setState({
+        allData: res || {},
         curObj: buildingNumList[curNav] || {},
-        roomArr: res || []
+        roomArr: data || []
       })
     })
   }