Browse Source

房间设施检查不显示问题

dev
mk 3 weeks ago
parent
commit
7ad2f57cab
  1. 20
      pagesA/checkout/detail/detail.vue

20
pagesA/checkout/detail/detail.vue

@ -29,7 +29,7 @@
</view> </view>
<!-- 设备检查 --> <!-- 设备检查 -->
<view class="section-card"> <view class="section-card">
<view class="section-title">设备检查</view> <view class="section-title">房间设施检查</view>
<view <view
v-for="(item, idx) in deviceList" v-for="(item, idx) in deviceList"
:key="item.name" :key="item.name"
@ -193,15 +193,15 @@ export default {
const detail = uni.getStorageSync("checkoutDetail"); const detail = uni.getStorageSync("checkoutDetail");
this.info = detail; this.info = detail;
loadCheckOutDetail({ idCard: options.idCard }).then((res) => { loadCheckOutDetail({ idCard: options.idCard }).then((res) => {
this.deviceList = res.data.facilitiesCheckResults.map((v) => ({ // this.deviceList = res.data.facilitiesCheckResults.map((v) => ({
name: v.facilityName, // name: v.facilityName,
id: v.facilityId, // id: v.facilityId,
facilityStatus: v.checkResult, // facilityStatus: v.checkResult,
})); // }));
console.log("dev", this.deviceList); // console.log("dev", this.deviceList);
this.checkStatus = this.deviceList.map((v) => // this.checkStatus = this.deviceList.map((v) =>
v.facilityStatus.toString() // v.facilityStatus.toString()
); // );
this.waterMeterValue = res.data.waterMeterValue; this.waterMeterValue = res.data.waterMeterValue;
this.energyMeterValue = res.data.energyMeterValue; this.energyMeterValue = res.data.energyMeterValue;
this.facilitiesCheckDesc = res.data.facilitiesCheckDesc; this.facilitiesCheckDesc = res.data.facilitiesCheckDesc;

Loading…
Cancel
Save