Shannon_mu vor 1 Jahr
Ursprung
Commit
04328122cc

+ 7 - 3
energyManagement/src/views/refrigeration/energySavingPlatform/projectSummary.vue

@@ -7,13 +7,13 @@
 -->
 <template>
     <div class="project-wrap">
-        <img class="project-img" src="https://img2.baidu.com/it/u=1356439018,2198935144&fm=253&fmt=auto&app=138&f=JPEG?w=640&h=426" />
+        <img class="project-img" :src="picture" />
         <div style="width: 100%; margin: 0 40px">
             <div class="project-space-wrap">
                 <Label label="项目概括" :icon="icon" />
                 <div class="time-text">{{ time }}</div>
             </div>
-            <div class="project-company-text">南方科技大学生物楼</div>
+            <div class="project-company-text">{{projectName}}</div>
             <div class="project-space-wrap">
                 <div class="item-wrap" v-for="(item, index) in list" :key="index">
                     <div class="item-value">
@@ -69,7 +69,9 @@ export default {
                     value: '23',
                     unit : '°C'
                 }
-            ]
+            ],
+            projectName:"",
+            picture:"https://img2.baidu.com/it/u=1356439018,2198935144&fm=253&fmt=auto&app=138&f=JPEG?w=640&h=426"
         };
     },
 
@@ -92,6 +94,8 @@ export default {
                 this.list[3].value = data.totalPower;
                 this.list[4].value = data.environmentTemperature;
                 this.list[5].value = data.indoorTemperature;
+                this.projectName = data.projectName;
+                this.picture = data.picture||this.picture
             })
         }
     }