Lou
2023-12-08 8c844ea235546f84035e4a99a9703d797cec80bc
subPackage/workbench/views/hotelReportDetail.vue
@@ -9,7 +9,7 @@
      <view class="licence" v-if="fireImages.length">
         <box-title title="灭火器图片" class="box-title"></box-title>
         <view class="flex-wrap">
            <view v-for="(i,k) in fireImages" :key="k" class="ml-20 mt-20">
            <view v-for="(i,k) in fireImages" :key="k" class="ml-20 mt-20"   @click="previewImg(i,fireImages)">
               <u-image :src="i" width="80" height="80"></u-image>
            </view>
         </view>
@@ -17,7 +17,7 @@
      <view class="planegraph" v-if="scImageUrls.length">
         <box-title title="安全通道图片" class="box-title"></box-title>
         <view class="flex-wrap">
            <view v-for="(i,k) in scImageUrls" :key="k" class="ml-20 mt-20">
            <view v-for="(i,k) in scImageUrls" :key="k" class="ml-20 mt-20"  @click="previewImg(i,scImageUrls)">
               <u-image :src="i" width="80" height="80"></u-image>
            </view>
         </view>
@@ -25,7 +25,7 @@
      <view class="planegraph" v-if="pfImageUrls.length">
         <box-title title="技防设施图片" class="box-title"></box-title>
         <view class="flex-wrap">
            <view v-for="(i,k) in pfImageUrls" :key="k" class="ml-20 mt-20">
            <view v-for="(i,k) in pfImageUrls" :key="k" class="ml-20 mt-20"  @click="previewImg(i,pfImageUrls)">
               <u-image :src="i" width="80" height="80"></u-image>
            </view>
         </view>
@@ -33,7 +33,7 @@
      <view class="planegraph" v-if="uanImageUrls.length">
         <box-title title="未成年人入住及照片" class="box-title"></box-title>
         <view class="flex-wrap">
            <view v-for="(i,k) in uanImageUrls" :key="k" class="ml-20 mt-20">
            <view v-for="(i,k) in uanImageUrls" :key="k" class="ml-20 mt-20"  @click="previewImg(i,uanImageUrls)">
               <u-image :src="i" width="80" height="80"></u-image>
            </view>
         </view>
@@ -209,19 +209,18 @@
               this.basicData.forEach(item => {
                  item.value = data[item.name]
               })
               this.fireImages = this.setImages(data.fireImageUrls);
               this.scImageUrls = this.setImages(data.scImageUrls);
               this.pfImageUrls = this.setImages(data.pfImageUrls);
               this.uanImageUrls = this.setImages(data.uanImageUrls);
               this.fireImages = this.$setImageUrl(data.fireImageUrls);
               this.scImageUrls = this.$setImageUrl(data.scImageUrls);
               this.pfImageUrls = this.$setImageUrl(data.pfImageUrls);
               this.uanImageUrls = this.$setImageUrl(data.uanImageUrls);
            })
         },
         setImages(str) {
            if (str) {
               return str.split(",")
            } else {
               return []
            }
         previewImg(current,urls){
            uni.previewImage({
               current,urls
            })
         },
         handleConfirm(e) {